@tryghost/comments-ui 1.4.10 → 1.4.12

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.
@@ -16,20 +16,20 @@ object-assign
16
16
  *
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
- */var PS=x,ap=60103;if(Ar.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var lp=Symbol.for;ap=lp("react.element"),Ar.Fragment=lp("react.fragment")}var IS=PS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,LS=Object.prototype.hasOwnProperty,zS={key:!0,ref:!0,__self:!0,__source:!0};function cp(t,e,n){var o,r={},i=null,s=null;n!==void 0&&(i=""+n),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(s=e.ref);for(o in e)LS.call(e,o)&&!zS.hasOwnProperty(o)&&(r[o]=e[o]);if(t&&t.defaultProps)for(o in e=t.defaultProps,e)r[o]===void 0&&(r[o]=e[o]);return{$$typeof:ap,type:t,key:i,ref:s,props:r,_owner:IS.current}}Ar.jsx=cp,Ar.jsxs=cp,Hf.exports=Ar;var b=Hf.exports;const FS=({adminUrl:t,onLoad:e})=>{const n={display:"none"};return b.jsx("iframe",{"data-frame":"admin-auth",src:t+"auth-frame/",style:n,title:"auth-frame",onLoad:e})};var BS=function(t){return t instanceof RegExp},HS=function(e){var n=/[\\^$.*+?()[\]{}|]/g,o=RegExp(n.source);return e&&o.test(e)?e.replace(n,"\\$&"):e},up=function(t){return typeof t=="string"},VS=function(t){var e=[];return t.forEach(function(n){Array.isArray(n)?e=e.concat(n):e.push(n)}),e};function _S(t,e,n){var o=0,r=0;if(t==="")return t;if(!t||!up(t))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var i=e;BS(i)||(i=new RegExp("("+HS(i)+")","gi"));for(var s=t.split(i),a=1,l=s.length;a<l;a+=2){if(s[a]===void 0||s[a-1]===void 0){console.warn("reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.");continue}r=s[a].length,o+=s[a-1].length,s[a]=n(s[a],a,o),o+=r}return s}var US=function(e,n,o){return Array.isArray(e)||(e=[e]),VS(e.map(function(r){return up(r)?_S(r,n,o):r}))};const dp=At(US),hc=_.createContext({});hc.Provider;const J=()=>x.useContext(hc),YS=()=>{const e=J().dispatchAction;return n=>{e("setOrder",{order:n})}},mp=()=>{try{return J().labs||{}}catch{return{}}},fp=({isFirst:t,isPaid:e})=>{const{accentColor:n,publication:o,member:r,t:i,commentCount:s}=J(),a={backgroundColor:n},l={color:n},c=i(s===0?"Start the conversation":"Join the discussion"),u=()=>{window.location.href=e&&r?"#/portal/account/plans":"#/portal/signup"},d=()=>{window.location.href="#/portal/signin"},m=dp(i(e?"Become a paid member of {publication} to start commenting.":"Become a member of {publication} to start commenting."),"{publication}",()=>b.jsx("span",{className:"font-semibold",children:o}));return b.jsxs(b.Fragment,{children:[b.jsx("h1",{className:`mb-[8px] text-center font-sans text-2xl tracking-tight text-black dark:text-[rgba(255,255,255,0.85)] ${t?"font-semibold":"font-bold"}`,children:c}),b.jsx("p",{className:"mb-[28px] w-full px-0 text-center font-sans text-lg leading-normal text-neutral-600 sm:max-w-screen-sm sm:px-8 dark:text-[rgba(255,255,255,0.85)]",children:m}),b.jsx("button",{className:"text-md mb-[12px] inline-block rounded px-5 py-[14px] font-sans font-medium leading-none text-white transition-all hover:opacity-90","data-testid":"signup-button",style:a,type:"button",onClick:u,children:i(e&&r?"Upgrade now":"Sign up now")}),!r&&b.jsxs("p",{className:"text-md text-center font-sans text-[rgba(0,0,0,0.4)] dark:text-[rgba(255,255,255,0.5)]",children:[b.jsx("span",{className:"mr-1 inline-block text-[15px]",children:i("Already a member?")}),b.jsx("button",{className:"rounded-md text-sm font-semibold transition-all hover:opacity-90","data-testid":"signin-button",style:l,type:"button",onClick:d,children:i("Sign in")})]})]})},pp=t=>x.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M11.55 4C13.483 4 15.05 5.567 15.05 7.5C15.05 9.433 13.483 11 11.55 11C9.617 11 8.05 9.433 8.05 7.5C8.05 5.567 9.617 4 11.55 4ZM11.55 20C9.044 20 6.757 19.067 5 17.538C5.997 14.888 8.551 13 11.55 13C14.549 13 17.103 14.888 18.1 17.538C16.343 19.066 14.056 20 11.55 20Z",fill:"currentColor"})),hp="ghost-comments-";function gp(t,e){return`${t.replace(/#.*$/,"")}#${hp}${e}`}function yp(t){const e=new RegExp(`^#${hp}([a-f0-9]+)$`,"i"),n=t.match(e);return n?n[1]:null}function JS(t,e){return t.find(n=>(n==null?void 0:n.id)===e)||t.flatMap(n=>n.replies||[]).find(n=>(n==null?void 0:n.id)===e)}function bs(t){return t!==0&&!t?"":t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function KS(t,e){const n=new Date(t),o=new Date;if(isNaN(n.getTime()))return e("Just now");const r=Math.round((o.getTime()-n.getTime())/1e3);if(r<60)return e("Just now");const i=Math.round(r/60);if(i===1)return e("One min ago");if(i<60)return e("{amount} mins ago",{amount:i});const s=Math.round(i/60);if(s===1)return e("One hour ago");const a=new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate())),l=new Date(Date.UTC(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate())),c=Math.floor((l.getTime()-a.getTime())/(1e3*60*60*24));if(c===1)return e("Yesterday");if(c>1){const u=n.getDate(),d=n.toLocaleString("en-us",{month:"short"});return n.getFullYear()!==o.getFullYear()?`${u} ${d} ${n.getFullYear()}`:`${u} ${d}`}return e("{amount} hrs ago",{amount:s})}function WS(t){const e=new Date(t),n=e.toLocaleDateString("en-us",{day:"2-digit"}),o=e.toLocaleString("en-us",{month:"short"}),r=e.getFullYear(),i=(e.getHours()<10?"0":"")+e.getHours(),s=(e.getMinutes()<10?"0":"")+e.getMinutes();return`${n} ${o} ${r} ${i}:${s}`}function qS(t){if(!t)return"";const e=t.split(" ");return e.length===0?"":e.length===1?e[0].substring(0,1).toLocaleUpperCase():e[0].substring(0,1).toLocaleUpperCase()+e[e.length-1].substring(0,1).toLocaleUpperCase()}function bp(t,e){return t?t.name?t.name:e("Anonymous"):e("Deleted member")}function GS(t,e){return bp(t.member,e)}function ws(){return Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<480}const QS=t=>{let e=0,n=t.ownerDocument.defaultView;for(;n&&n!==window;){const r=n.parent;for(let i=0;i<r.frames.length;i++)if(r.frames[i]===n){for(const s of r.document.getElementsByTagName("iframe"))if(s.contentWindow===n){const a=s.getBoundingClientRect();e+=a.top+n.pageYOffset}n=r;break}}return t.getBoundingClientRect().top+window.pageYOffset+e},vs=t=>{const e=t.offsetHeight,n=QS(t),o=n+e,r=64,i=window.innerHeight,s=window.scrollY,a=s+i;if(n-r<s||o+r>a){const l=(n+o)/2;window.scrollTo({top:l-i/2,left:0,behavior:"smooth"})}};function ZS(t){const{html:e=""}=t,n=document.createElement("div");n.innerHTML=e,n.querySelectorAll("script, style, link, meta, noscript, title").forEach(r=>r.remove()),n.querySelectorAll("blockquote").forEach(r=>r.remove());let o=n.textContent||"";return o=o.replace(`
19
+ */var PS=x,ap=60103;if(Ar.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var lp=Symbol.for;ap=lp("react.element"),Ar.Fragment=lp("react.fragment")}var IS=PS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,LS=Object.prototype.hasOwnProperty,zS={key:!0,ref:!0,__self:!0,__source:!0};function cp(t,e,n){var o,r={},i=null,s=null;n!==void 0&&(i=""+n),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(s=e.ref);for(o in e)LS.call(e,o)&&!zS.hasOwnProperty(o)&&(r[o]=e[o]);if(t&&t.defaultProps)for(o in e=t.defaultProps,e)r[o]===void 0&&(r[o]=e[o]);return{$$typeof:ap,type:t,key:i,ref:s,props:r,_owner:IS.current}}Ar.jsx=cp,Ar.jsxs=cp,Hf.exports=Ar;var b=Hf.exports;const BS=({adminUrl:t,onLoad:e})=>{const n={display:"none"};return b.jsx("iframe",{"data-frame":"admin-auth",src:t+"auth-frame/",style:n,title:"auth-frame",onLoad:e})};var FS=function(t){return t instanceof RegExp},HS=function(e){var n=/[\\^$.*+?()[\]{}|]/g,o=RegExp(n.source);return e&&o.test(e)?e.replace(n,"\\$&"):e},up=function(t){return typeof t=="string"},VS=function(t){var e=[];return t.forEach(function(n){Array.isArray(n)?e=e.concat(n):e.push(n)}),e};function _S(t,e,n){var o=0,r=0;if(t==="")return t;if(!t||!up(t))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var i=e;FS(i)||(i=new RegExp("("+HS(i)+")","gi"));for(var s=t.split(i),a=1,l=s.length;a<l;a+=2){if(s[a]===void 0||s[a-1]===void 0){console.warn("reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.");continue}r=s[a].length,o+=s[a-1].length,s[a]=n(s[a],a,o),o+=r}return s}var US=function(e,n,o){return Array.isArray(e)||(e=[e]),VS(e.map(function(r){return up(r)?_S(r,n,o):r}))};const dp=At(US),hc=_.createContext({});hc.Provider;const J=()=>x.useContext(hc),YS=()=>{const e=J().dispatchAction;return n=>{e("setOrder",{order:n})}},mp=()=>{try{return J().labs||{}}catch{return{}}},fp=({isFirst:t,isPaid:e})=>{const{accentColor:n,publication:o,member:r,t:i,commentCount:s}=J(),a={backgroundColor:n},l={color:n},c=i(s===0?"Start the conversation":"Join the discussion"),u=()=>{window.location.href=e&&r?"#/portal/account/plans":"#/portal/signup"},d=()=>{window.location.href="#/portal/signin"},m=dp(i(e?"Become a paid member of {publication} to start commenting.":"Become a member of {publication} to start commenting."),"{publication}",()=>b.jsx("span",{className:"font-semibold",children:o}));return b.jsxs(b.Fragment,{children:[b.jsx("h1",{className:`mb-[8px] text-center font-sans text-2xl tracking-tight text-black dark:text-[rgba(255,255,255,0.85)] ${t?"font-semibold":"font-bold"}`,children:c}),b.jsx("p",{className:"mb-[28px] w-full px-0 text-center font-sans text-lg leading-normal text-neutral-600 sm:max-w-screen-sm sm:px-8 dark:text-[rgba(255,255,255,0.85)]",children:m}),b.jsx("button",{className:"text-md mb-[12px] inline-block rounded px-5 py-[14px] font-sans font-medium leading-none text-white transition-all hover:opacity-90","data-testid":"signup-button",style:a,type:"button",onClick:u,children:i(e&&r?"Upgrade now":"Sign up now")}),!r&&b.jsxs("p",{className:"text-md text-center font-sans text-[rgba(0,0,0,0.4)] dark:text-[rgba(255,255,255,0.5)]",children:[b.jsx("span",{className:"mr-1 inline-block text-[15px]",children:i("Already a member?")}),b.jsx("button",{className:"rounded-md text-sm font-semibold transition-all hover:opacity-90","data-testid":"signin-button",style:l,type:"button",onClick:d,children:i("Sign in")})]})]})},pp=t=>x.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M11.55 4C13.483 4 15.05 5.567 15.05 7.5C15.05 9.433 13.483 11 11.55 11C9.617 11 8.05 9.433 8.05 7.5C8.05 5.567 9.617 4 11.55 4ZM11.55 20C9.044 20 6.757 19.067 5 17.538C5.997 14.888 8.551 13 11.55 13C14.549 13 17.103 14.888 18.1 17.538C16.343 19.066 14.056 20 11.55 20Z",fill:"currentColor"})),hp="ghost-comments-";function gp(t,e){return`${t.replace(/#.*$/,"")}#${hp}${e}`}function yp(t){const e=new RegExp(`^#${hp}([a-f0-9]+)$`,"i"),n=t.match(e);return n?n[1]:null}function JS(t,e){return t.find(n=>(n==null?void 0:n.id)===e)||t.flatMap(n=>n.replies||[]).find(n=>(n==null?void 0:n.id)===e)}function bs(t){return t!==0&&!t?"":t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function KS(t,e){const n=new Date(t),o=new Date;if(isNaN(n.getTime()))return e("Just now");const r=Math.round((o.getTime()-n.getTime())/1e3);if(r<60)return e("Just now");const i=Math.round(r/60);if(i===1)return e("One min ago");if(i<60)return e("{amount} mins ago",{amount:i});const s=Math.round(i/60);if(s===1)return e("One hour ago");const a=new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate())),l=new Date(Date.UTC(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate())),c=Math.floor((l.getTime()-a.getTime())/(1e3*60*60*24));if(c===1)return e("Yesterday");if(c>1){const u=n.getDate(),d=n.toLocaleString("en-us",{month:"short"});return n.getFullYear()!==o.getFullYear()?`${u} ${d} ${n.getFullYear()}`:`${u} ${d}`}return e("{amount} hrs ago",{amount:s})}function WS(t){const e=new Date(t),n=e.toLocaleDateString("en-us",{day:"2-digit"}),o=e.toLocaleString("en-us",{month:"short"}),r=e.getFullYear(),i=(e.getHours()<10?"0":"")+e.getHours(),s=(e.getMinutes()<10?"0":"")+e.getMinutes();return`${n} ${o} ${r} ${i}:${s}`}function qS(t){if(!t)return"";const e=t.split(" ");return e.length===0?"":e.length===1?e[0].substring(0,1).toLocaleUpperCase():e[0].substring(0,1).toLocaleUpperCase()+e[e.length-1].substring(0,1).toLocaleUpperCase()}function bp(t,e){return t?t.name?t.name:e("Anonymous"):e("Deleted member")}function GS(t,e){return bp(t.member,e)}function ws(){return Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<480}const QS=t=>{let e=0,n=t.ownerDocument.defaultView;for(;n&&n!==window;){const r=n.parent;for(let i=0;i<r.frames.length;i++)if(r.frames[i]===n){for(const s of r.document.getElementsByTagName("iframe"))if(s.contentWindow===n){const a=s.getBoundingClientRect();e+=a.top+n.pageYOffset}n=r;break}}return t.getBoundingClientRect().top+window.pageYOffset+e},vs=t=>{const e=t.offsetHeight,n=QS(t),o=n+e,r=64,i=window.innerHeight,s=window.scrollY,a=s+i;if(n-r<s||o+r>a){const l=(n+o)/2;window.scrollTo({top:l-i/2,left:0,behavior:"smooth"})}};function ZS(t){const{html:e=""}=t,n=document.createElement("div");n.innerHTML=e,n.querySelectorAll("script, style, link, meta, noscript, title").forEach(r=>r.remove()),n.querySelectorAll("blockquote").forEach(r=>r.remove());let o=n.textContent||"";return o=o.replace(`
20
20
  `," "),o=o.replace(/\s+/g," "),o=o.trim(),o.substring(0,100)}function wp(){return"w-8 h-8"}const vp=()=>{const t=wp();return b.jsx("figure",{className:`relative ${t}`,"data-testid":"blank-avatar",children:b.jsx("div",{className:`flex items-center justify-center rounded-full bg-black/5 text-neutral-900/25 dark:bg-white/15 dark:text-white/30 ${t}`,children:b.jsx(pp,{className:"size-7 opacity-80"})})})},gc=({member:t})=>{const{avatarSaturation:e,t:n}=J(),o=wp(),r=bp(t,n),i=f=>{let p=0;for(let g=0;g<f.length;g++)p=f.charCodeAt(g)+((p<<5)-p);return p=Math.abs(p),p},s=(f,p,g)=>Math.floor(f%(g-p)+p),a=()=>{if(!r)return[0,0,10];const f=e===void 0||isNaN(e)?50:e,p=[0,360],g=Math.round(f/(100/30))+30,y=[g-20,g],w=i(r),v=s(w,p[0],p[1]),S=s(w,y[0],y[1]);return[v,f,S]},l=f=>`hsl(${f[0]}, ${f[1]}%, ${f[2]}%)`,c=qS(r),d={background:l(a())},m=b.jsxs(b.Fragment,{children:[r?b.jsx("div",{className:`flex items-center justify-center rounded-full ${o}`,"data-testid":"avatar-background",style:d,children:b.jsx("p",{className:"font-sans text-base font-semibold text-white",children:c})}):b.jsx("div",{className:`flex items-center justify-center rounded-full bg-neutral-900 dark:bg-white/70 ${o}`,"data-testid":"avatar-background",children:b.jsx(pp,{className:"stroke-white dark:stroke-black/60"})}),(t==null?void 0:t.avatar_image)&&b.jsx("img",{alt:"Avatar",className:`absolute left-0 top-0 rounded-full ${o}`,"data-testid":"avatar-image",src:t.avatar_image})]});return t?b.jsx("figure",{className:`relative ${o}`,"data-testid":"avatar",children:m}):b.jsx(vp,{})},XS=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 24 24",...t},x.createElement("g",{strokeLinecap:"round",strokeWidth:2,fill:"none",strokeLinejoin:"round",className:"nc-icon-wrapper"},x.createElement("polygon",{points:"7 21 2 22 3 17 18 2 22 6 7 21"})));function Ne(t){this.content=t}Ne.prototype={constructor:Ne,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var o=n&&n!=t?this.remove(n):this,r=o.find(t),i=o.content.slice();return r==-1?i.push(n||t,e):(i[r+1]=e,n&&(i[r]=n)),new Ne(i)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new Ne(n)},addToStart:function(t,e){return new Ne([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new Ne(n)},addBefore:function(t,e,n){var o=this.remove(e),r=o.content.slice(),i=o.find(t);return r.splice(i==-1?r.length:i,0,e,n),new Ne(r)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=Ne.from(t),t.size?new Ne(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Ne.from(t),t.size?new Ne(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=Ne.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}},Ne.from=function(t){if(t instanceof Ne)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new Ne(e)};function Sp(t,e,n){for(let o=0;;o++){if(o==t.childCount||o==e.childCount)return t.childCount==e.childCount?null:n;let r=t.child(o),i=e.child(o);if(r==i){n+=r.nodeSize;continue}if(!r.sameMarkup(i))return n;if(r.isText&&r.text!=i.text){for(let s=0;r.text[s]==i.text[s];s++)n++;return n}if(r.content.size||i.content.size){let s=Sp(r.content,i.content,n+1);if(s!=null)return s}n+=r.nodeSize}}function $p(t,e,n,o){for(let r=t.childCount,i=e.childCount;;){if(r==0||i==0)return r==i?null:{a:n,b:o};let s=t.child(--r),a=e.child(--i),l=s.nodeSize;if(s==a){n-=l,o-=l;continue}if(!s.sameMarkup(a))return{a:n,b:o};if(s.isText&&s.text!=a.text){let c=0,u=Math.min(s.text.length,a.text.length);for(;c<u&&s.text[s.text.length-c-1]==a.text[a.text.length-c-1];)c++,n--,o--;return{a:n,b:o}}if(s.content.size||a.content.size){let c=$p(s.content,a.content,n-1,o-1);if(c)return c}n-=l,o-=l}}class R{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let o=0;o<e.length;o++)this.size+=e[o].nodeSize}nodesBetween(e,n,o,r=0,i){for(let s=0,a=0;a<n;s++){let l=this.content[s],c=a+l.nodeSize;if(c>e&&o(l,r+a,i||null,s)!==!1&&l.content.size){let u=a+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,n-u),o,r+u)}a=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,o,r){let i="",s=!0;return this.nodesBetween(e,n,(a,l)=>{let c=a.isText?a.text.slice(Math.max(e,l)-l,n-l):a.isLeaf?r?typeof r=="function"?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&c||a.isTextblock)&&o&&(s?s=!1:i+=o),i+=c},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,o=e.firstChild,r=this.content.slice(),i=0;for(n.isText&&n.sameMarkup(o)&&(r[r.length-1]=n.withText(n.text+o.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new R(r,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let o=[],r=0;if(n>e)for(let i=0,s=0;s<n;i++){let a=this.content[i],l=s+a.nodeSize;l>e&&((s<e||l>n)&&(a.isText?a=a.cut(Math.max(0,e-s),Math.min(a.text.length,n-s)):a=a.cut(Math.max(0,e-s-1),Math.min(a.content.size,n-s-1))),o.push(a),r+=a.nodeSize),s=l}return new R(o,r)}cutByIndex(e,n){return e==n?R.empty:e==0&&n==this.content.length?this:new R(this.content.slice(e,n))}replaceChild(e,n){let o=this.content[e];if(o==n)return this;let r=this.content.slice(),i=this.size+n.nodeSize-o.nodeSize;return r[e]=n,new R(r,i)}addToStart(e){return new R([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new R(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,o=0;n<this.content.length;n++){let r=this.content[n];e(r,o,n),o+=r.nodeSize}}findDiffStart(e,n=0){return Sp(this,e,n)}findDiffEnd(e,n=this.size,o=e.size){return $p(this,e,n,o)}findIndex(e){if(e==0)return Ss(0,e);if(e==this.size)return Ss(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,o=0;;n++){let r=this.child(n),i=o+r.nodeSize;if(i>=e)return i==e?Ss(n+1,i):Ss(n,o);o=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return R.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new R(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return R.empty;let n,o=0;for(let r=0;r<e.length;r++){let i=e[r];o+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(n||(n=e.slice(0,r)),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new R(n||e,o)}static from(e){if(!e)return R.empty;if(e instanceof R)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new R([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}R.empty=new R([],0);const yc={index:0,offset:0};function Ss(t,e){return yc.index=t,yc.offset=e,yc}function $s(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let o=0;o<t.length;o++)if(!$s(t[o],e[o]))return!1}else{for(let o in t)if(!(o in e)||!$s(t[o],e[o]))return!1;for(let o in e)if(!(o in t))return!1}return!0}let re=class Lf{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,o=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))n||(n=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!o&&i.type.rank>this.type.rank&&(n||(n=e.slice(0,r)),n.push(this),o=!0),n&&n.push(i)}}return n||(n=e.slice()),o||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&$s(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let o=e.marks[n.type];if(!o)throw new RangeError(`There is no mark type ${n.type} in this schema`);let r=o.create(n.attrs);return o.checkAttrs(r.attrs),r}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let o=0;o<e.length;o++)if(!e[o].eq(n[o]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Lf.none;if(e instanceof Lf)return[e];let n=e.slice();return n.sort((o,r)=>o.type.rank-r.type.rank),n}};re.none=[];class ks extends Error{}class I{constructor(e,n,o){this.content=e,this.openStart=n,this.openEnd=o}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let o=xp(this.content,e+this.openStart,n);return o&&new I(o,this.openStart,this.openEnd)}removeBetween(e,n){return new I(kp(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return I.empty;let o=n.openStart||0,r=n.openEnd||0;if(typeof o!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new I(R.fromJSON(e,n.content),o,r)}static maxOpen(e,n=!0){let o=0,r=0;for(let i=e.firstChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.firstChild)o++;for(let i=e.lastChild;i&&!i.isLeaf&&(n||!i.type.spec.isolating);i=i.lastChild)r++;return new I(e,o,r)}}I.empty=new I(R.empty,0,0);function kp(t,e,n){let{index:o,offset:r}=t.findIndex(e),i=t.maybeChild(o),{index:s,offset:a}=t.findIndex(n);if(r==e||i.isText){if(a!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(o!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(o,i.copy(kp(i.content,e-r-1,n-r-1)))}function xp(t,e,n,o){let{index:r,offset:i}=t.findIndex(e),s=t.maybeChild(r);if(i==e||s.isText)return o&&!o.canReplace(r,r,n)?null:t.cut(0,e).append(n).append(t.cut(e));let a=xp(s.content,e-i-1,n,s);return a&&t.replaceChild(r,s.copy(a))}function e$(t,e,n){if(n.openStart>t.depth)throw new ks("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new ks("Inconsistent open depths");return Cp(t,e,n,0)}function Cp(t,e,n,o){let r=t.index(o),i=t.node(o);if(r==e.index(o)&&o<t.depth-n.openStart){let s=Cp(t,e,n,o+1);return i.copy(i.content.replaceChild(r,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==o&&e.depth==o){let s=t.parent,a=s.content;return Yn(s,a.cut(0,t.parentOffset).append(n.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=t$(n,t);return Yn(i,Np(t,s,a,e,o))}else return Yn(i,xs(t,e,o))}function Ep(t,e){if(!e.type.compatibleContent(t.type))throw new ks("Cannot join "+e.type.name+" onto "+t.type.name)}function bc(t,e,n){let o=t.node(n);return Ep(o,e.node(n)),o}function Un(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function Rr(t,e,n,o){let r=(e||t).node(n),i=0,s=e?e.index(n):r.childCount;t&&(i=t.index(n),t.depth>n?i++:t.textOffset&&(Un(t.nodeAfter,o),i++));for(let a=i;a<s;a++)Un(r.child(a),o);e&&e.depth==n&&e.textOffset&&Un(e.nodeBefore,o)}function Yn(t,e){return t.type.checkContent(e),t.copy(e)}function Np(t,e,n,o,r){let i=t.depth>r&&bc(t,e,r+1),s=o.depth>r&&bc(n,o,r+1),a=[];return Rr(null,t,r,a),i&&s&&e.index(r)==n.index(r)?(Ep(i,s),Un(Yn(i,Np(t,e,n,o,r+1)),a)):(i&&Un(Yn(i,xs(t,e,r+1)),a),Rr(e,n,r,a),s&&Un(Yn(s,xs(n,o,r+1)),a)),Rr(o,null,r,a),new R(a)}function xs(t,e,n){let o=[];if(Rr(null,t,n,o),t.depth>n){let r=bc(t,e,n+1);Un(Yn(r,xs(t,e,n+1)),o)}return Rr(e,null,n,o),new R(o)}function t$(t,e){let n=e.depth-t.openStart,r=e.node(n).copy(t.content);for(let i=n-1;i>=0;i--)r=e.node(i).copy(R.from(r));return{start:r.resolveNoCache(t.openStart+n),end:r.resolveNoCache(r.content.size-t.openEnd-n)}}class Dr{constructor(e,n,o){this.pos=e,this.path=n,this.parentOffset=o,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let o=this.pos-this.path[this.path.length-1],r=e.child(n);return o?e.child(n).cut(o):r}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let o=this.path[n*3],r=n==0?0:this.path[n*3-1]+1;for(let i=0;i<e;i++)r+=o.child(i).nodeSize;return r}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return re.none;if(this.textOffset)return e.child(n).marks;let o=e.maybeChild(n-1),r=e.maybeChild(n);if(!o){let a=o;o=r,r=a}let i=o.marks;for(var s=0;s<i.length;s++)i[s].type.spec.inclusive===!1&&(!r||!i[s].isInSet(r.marks))&&(i=i[s--].removeFromSet(i));return i}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let o=n.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<o.length;i++)o[i].type.spec.inclusive===!1&&(!r||!o[i].isInSet(r.marks))&&(o=o[i--].removeFromSet(o));return o}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let o=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);o>=0;o--)if(e.pos<=this.end(o)&&(!n||n(this.node(o))))return new Cs(this,e,o);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let o=[],r=0,i=n;for(let s=e;;){let{index:a,offset:l}=s.content.findIndex(i),c=i-l;if(o.push(s,a,r+l),!c||(s=s.child(a),s.isText))break;i=c-1,r+=l+1}return new Dr(n,o,i)}static resolveCached(e,n){let o=Ap.get(e);if(o)for(let i=0;i<o.elts.length;i++){let s=o.elts[i];if(s.pos==n)return s}else Ap.set(e,o=new n$);let r=o.elts[o.i]=Dr.resolve(e,n);return o.i=(o.i+1)%o$,r}}class n${constructor(){this.elts=[],this.i=0}}const o$=12,Ap=new WeakMap;class Cs{constructor(e,n,o){this.$from=e,this.$to=n,this.depth=o}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const r$=Object.create(null);let sn=class zf{constructor(e,n,o,r=re.none){this.type=e,this.attrs=n,this.marks=r,this.content=o||R.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,o,r=0){this.content.nodesBetween(e,n,o,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,o,r){return this.content.textBetween(e,n,o,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,o){return this.type==e&&$s(this.attrs,n||e.defaultAttrs||r$)&&re.sameSet(this.marks,o||re.none)}copy(e=null){return e==this.content?this:new zf(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new zf(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,o=!1){if(e==n)return I.empty;let r=this.resolve(e),i=this.resolve(n),s=o?0:r.sharedDepth(n),a=r.start(s),c=r.node(s).content.cut(r.pos-a,i.pos-a);return new I(c,r.depth-s,i.depth-s)}replace(e,n,o){return e$(this.resolve(e),this.resolve(n),o)}nodeAt(e){for(let n=this;;){let{index:o,offset:r}=n.content.findIndex(e);if(n=n.maybeChild(o),!n)return null;if(r==e||n.isText)return n;e-=r+1}}childAfter(e){let{index:n,offset:o}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:o}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:o}=this.content.findIndex(e);if(o<e)return{node:this.content.child(n),index:n,offset:o};let r=this.content.child(n-1);return{node:r,index:n-1,offset:o-r.nodeSize}}resolve(e){return Dr.resolveCached(this,e)}resolveNoCache(e){return Dr.resolve(this,e)}rangeHasMark(e,n,o){let r=!1;return n>e&&this.nodesBetween(e,n,i=>(o.isInSet(i.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),Op(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,o=R.empty,r=0,i=o.childCount){let s=this.contentMatchAt(e).matchFragment(o,r,i),a=s&&s.matchFragment(this.content,n);if(!a||!a.validEnd)return!1;for(let l=r;l<i;l++)if(!this.type.allowsMarks(o.child(l).marks))return!1;return!0}canReplaceWith(e,n,o,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(o),s=i&&i.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=re.none;for(let n=0;n<this.marks.length;n++){let o=this.marks[n];o.type.checkAttrs(o.attrs),e=o.addToSet(e)}if(!re.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let o;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");o=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,o)}let r=R.fromJSON(e,n.content),i=e.nodeType(n.type).create(n.attrs,r,o);return i.type.checkAttrs(i.attrs),i}};sn.prototype.text=void 0;class Es extends sn{constructor(e,n,o,r){if(super(e,n,null,r),!o)throw new RangeError("Empty text nodes are not allowed");this.text=o}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Op(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Es(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Es(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function Op(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Jn{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let o=new i$(e,n);if(o.next==null)return Jn.empty;let r=Rp(o);o.next&&o.err("Unexpected trailing text");let i=m$(d$(r));return f$(i,o),i}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,o=e.childCount){let r=this;for(let i=n;r&&i<o;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let o=0;o<e.next.length;o++)if(this.next[n].type==e.next[o].type)return!0;return!1}fillBefore(e,n=!1,o=0){let r=[this];function i(s,a){let l=s.matchFragment(e,o);if(l&&(!n||l.validEnd))return R.from(a.map(c=>c.createAndFill()));for(let c=0;c<s.next.length;c++){let{type:u,next:d}=s.next[c];if(!(u.isText||u.hasRequiredAttrs())&&r.indexOf(d)==-1){r.push(d);let m=i(d,a.concat(u));if(m)return m}}return null}return i(this,[])}findWrapping(e){for(let o=0;o<this.wrapCache.length;o+=2)if(this.wrapCache[o]==e)return this.wrapCache[o+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),o=[{match:this,type:null,via:null}];for(;o.length;){let r=o.shift(),i=r.match;if(i.matchType(e)){let s=[];for(let a=r;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<i.next.length;s++){let{type:a,next:l}=i.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in n)&&(!r.type||l.validEnd)&&(o.push({match:a.contentMatch,type:a,via:r}),n[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(o){e.push(o);for(let r=0;r<o.next.length;r++)e.indexOf(o.next[r].next)==-1&&n(o.next[r].next)}return n(this),e.map((o,r)=>{let i=r+(o.validEnd?"*":" ")+" ";for(let s=0;s<o.next.length;s++)i+=(s?", ":"")+o.next[s].type.name+"->"+e.indexOf(o.next[s].next);return i}).join(`
21
- `)}}Jn.empty=new Jn(!0);class i${constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function Rp(t){let e=[];do e.push(s$(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function s$(t){let e=[];do e.push(a$(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function a$(t){let e=u$(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=l$(t,e);else break;return e}function Dp(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function l$(t,e){let n=Dp(t),o=n;return t.eat(",")&&(t.next!="}"?o=Dp(t):o=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:o,expr:e}}function c$(t,e){let n=t.nodeTypes,o=n[e];if(o)return[o];let r=[];for(let i in n){let s=n[i];s.isInGroup(e)&&r.push(s)}return r.length==0&&t.err("No node type or group '"+e+"' found"),r}function u$(t){if(t.eat("(")){let e=Rp(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=c$(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function d$(t){let e=[[]];return r(i(t,0),n()),e;function n(){return e.push([])-1}function o(s,a,l){let c={term:l,to:a};return e[s].push(c),c}function r(s,a){s.forEach(l=>l.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((l,c)=>l.concat(i(c,a)),[]);if(s.type=="seq")for(let l=0;;l++){let c=i(s.exprs[l],a);if(l==s.exprs.length-1)return c;r(c,a=n())}else if(s.type=="star"){let l=n();return o(a,l),r(i(s.expr,l),l),[o(l)]}else if(s.type=="plus"){let l=n();return r(i(s.expr,a),l),r(i(s.expr,l),l),[o(l)]}else{if(s.type=="opt")return[o(a)].concat(i(s.expr,a));if(s.type=="range"){let l=a;for(let c=0;c<s.min;c++){let u=n();r(i(s.expr,l),u),l=u}if(s.max==-1)r(i(s.expr,l),l);else for(let c=s.min;c<s.max;c++){let u=n();o(l,u),r(i(s.expr,l),u),l=u}return[o(l)]}else{if(s.type=="name")return[o(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function Tp(t,e){return e-t}function Mp(t,e){let n=[];return o(e),n.sort(Tp);function o(r){let i=t[r];if(i.length==1&&!i[0].term)return o(i[0].to);n.push(r);for(let s=0;s<i.length;s++){let{term:a,to:l}=i[s];!a&&n.indexOf(l)==-1&&o(l)}}}function m$(t){let e=Object.create(null);return n(Mp(t,0));function n(o){let r=[];o.forEach(s=>{t[s].forEach(({term:a,to:l})=>{if(!a)return;let c;for(let u=0;u<r.length;u++)r[u][0]==a&&(c=r[u][1]);Mp(t,l).forEach(u=>{c||r.push([a,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let i=e[o.join(",")]=new Jn(o.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(Tp);i.next.push({type:r[s][0],next:e[a.join(",")]||n(a)})}return i}}function f$(t,e){for(let n=0,o=[t];n<o.length;n++){let r=o[n],i=!r.validEnd,s=[];for(let a=0;a<r.next.length;a++){let{type:l,next:c}=r.next[a];s.push(l.name),i&&!(l.isText||l.hasRequiredAttrs())&&(i=!1),o.indexOf(c)==-1&&o.push(c)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function jp(t){let e=Object.create(null);for(let n in t){let o=t[n];if(!o.hasDefault)return null;e[n]=o.default}return e}function Pp(t,e){let n=Object.create(null);for(let o in t){let r=e&&e[o];if(r===void 0){let i=t[o];if(i.hasDefault)r=i.default;else throw new RangeError("No value supplied for attribute "+o)}n[o]=r}return n}function Ip(t,e,n,o){for(let r in e)if(!(r in t))throw new RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let r in t){let i=t[r];i.validate&&i.validate(e[r])}}function Lp(t,e){let n=Object.create(null);if(e)for(let o in e)n[o]=new h$(t,o,e[o]);return n}let zp=class xS{constructor(e,n,o){this.name=e,this.schema=n,this.spec=o,this.markSet=null,this.groups=o.group?o.group.split(" "):[],this.attrs=Lp(e,o.attrs),this.defaultAttrs=jp(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(o.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Jn.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Pp(this.attrs,e)}create(e=null,n,o){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new sn(this,this.computeAttrs(e),R.from(n),re.setFrom(o))}createChecked(e=null,n,o){return n=R.from(n),this.checkContent(n),new sn(this,this.computeAttrs(e),n,re.setFrom(o))}createAndFill(e=null,n,o){if(e=this.computeAttrs(e),n=R.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let r=this.contentMatch.matchFragment(n),i=r&&r.fillBefore(R.empty,!0);return i?new sn(this,e,n.append(i),re.setFrom(o)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let o=0;o<e.childCount;o++)if(!this.allowsMarks(e.child(o).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){Ip(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let o=0;o<e.length;o++)this.allowsMarkType(e[o].type)?n&&n.push(e[o]):n||(n=e.slice(0,o));return n?n.length?n:re.none:e}static compile(e,n){let o=Object.create(null);e.forEach((i,s)=>o[i]=new xS(i,n,s));let r=n.spec.topNode||"doc";if(!o[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!o.text)throw new RangeError("Every schema needs a 'text' type");for(let i in o.text.attrs)throw new RangeError("The text node type should not have attributes");return o}};function p$(t,e,n){let o=n.split("|");return r=>{let i=r===null?"null":typeof r;if(o.indexOf(i)<0)throw new RangeError(`Expected value of type ${o} for attribute ${e} on type ${t}, got ${i}`)}}class h${constructor(e,n,o){this.hasDefault=Object.prototype.hasOwnProperty.call(o,"default"),this.default=o.default,this.validate=typeof o.validate=="string"?p$(e,n,o.validate):o.validate}get isRequired(){return!this.hasDefault}}class Ns{constructor(e,n,o,r){this.name=e,this.rank=n,this.schema=o,this.spec=r,this.attrs=Lp(e,r.attrs),this.excluded=null;let i=jp(this.attrs);this.instance=i?new re(this,i):null}create(e=null){return!e&&this.instance?this.instance:new re(this,Pp(this.attrs,e))}static compile(e,n){let o=Object.create(null),r=0;return e.forEach((i,s)=>o[i]=new Ns(i,r++,n,s)),o}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){Ip(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class Fp{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let r in e)n[r]=e[r];n.nodes=Ne.from(e.nodes),n.marks=Ne.from(e.marks||{}),this.nodes=zp.compile(this.spec.nodes,this),this.marks=Ns.compile(this.spec.marks,this);let o=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let i=this.nodes[r],s=i.spec.content||"",a=i.spec.marks;if(i.contentMatch=o[s]||(o[s]=Jn.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=a=="_"?null:a?Bp(this,a.split(" ")):a==""||!i.inlineContent?[]:null}for(let r in this.marks){let i=this.marks[r],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:Bp(this,s.split(" "))}this.nodeFromJSON=r=>sn.fromJSON(this,r),this.markFromJSON=r=>re.fromJSON(this,r),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,o,r){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof zp){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,o,r)}text(e,n){let o=this.nodes.text;return new Es(o,o.defaultAttrs,e,re.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function Bp(t,e){let n=[];for(let o=0;o<e.length;o++){let r=e[o],i=t.marks[r],s=i;if(i)n.push(i);else for(let a in t.marks){let l=t.marks[a];(r=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(r)>-1)&&n.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[o]+"'")}return n}function g$(t){return t.tag!=null}function y$(t){return t.style!=null}let Tr=class Ff{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let o=this.matchedStyles=[];n.forEach(r=>{if(g$(r))this.tags.push(r);else if(y$(r)){let i=/[^=]*/.exec(r.style)[0];o.indexOf(i)<0&&o.push(i),this.styles.push(r)}}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let i=e.nodes[r.node];return i.contentMatch.matchType(i)})}parse(e,n={}){let o=new Up(this,n,!1);return o.addAll(e,re.none,n.from,n.to),o.finish()}parseSlice(e,n={}){let o=new Up(this,n,!0);return o.addAll(e,re.none,n.from,n.to),I.maxOpen(o.finish())}matchTag(e,n,o){for(let r=o?this.tags.indexOf(o)+1:0;r<this.tags.length;r++){let i=this.tags[r];if(v$(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||n.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,n,o,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let s=this.styles[i],a=s.style;if(!(a.indexOf(e)!=0||s.context&&!o.matchesContext(s.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=n))){if(s.getAttrs){let l=s.getAttrs(n);if(l===!1)continue;s.attrs=l||void 0}return s}}}static schemaRules(e){let n=[];function o(r){let i=r.priority==null?50:r.priority,s=0;for(;s<n.length;s++){let a=n[s];if((a.priority==null?50:a.priority)<i)break}n.splice(s,0,r)}for(let r in e.marks){let i=e.marks[r].spec.parseDOM;i&&i.forEach(s=>{o(s=Yp(s)),s.mark||s.ignore||s.clearMark||(s.mark=r)})}for(let r in e.nodes){let i=e.nodes[r].spec.parseDOM;i&&i.forEach(s=>{o(s=Yp(s)),s.node||s.ignore||s.mark||(s.node=r)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Ff(e,Ff.schemaRules(e)))}};const Hp={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},b$={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Vp={ol:!0,ul:!0},Mr=1,wc=2,jr=4;function _p(t,e,n){return e!=null?(e?Mr:0)|(e==="full"?wc:0):t&&t.whitespace=="pre"?Mr|wc:n&~jr}class As{constructor(e,n,o,r,i,s){this.type=e,this.attrs=n,this.marks=o,this.solid=r,this.options=s,this.content=[],this.activeMarks=re.none,this.match=i||(s&jr?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(R.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let o=this.type.contentMatch,r;return(r=o.findWrapping(e.type))?(this.match=o,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Mr)){let o=this.content[this.content.length-1],r;if(o&&o.isText&&(r=/[ \t\r\n\u000c]+$/.exec(o.text))){let i=o;o.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-r[0].length))}}let n=R.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(R.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Hp.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Up{constructor(e,n,o){this.parser=e,this.options=n,this.isOpen=o,this.open=0,this.localPreserveWS=!1;let r=n.topNode,i,s=_p(null,n.preserveWhitespace,0)|(o?jr:0);r?i=new As(r.type,r.attrs,re.none,!0,n.topMatch||r.type.contentMatch,s):o?i=new As(null,null,re.none,!0,null,s):i=new As(e.schema.topNodeType,null,re.none,!0,null,s),this.nodes=[i],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let o=e.nodeValue,r=this.top,i=r.options&wc?"full":this.localPreserveWS||(r.options&Mr)>0,{schema:s}=this.parser;if(i==="full"||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(o)){if(i)if(i==="full")o=o.replace(/\r\n?/g,`
21
+ `)}}Jn.empty=new Jn(!0);class i${constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function Rp(t){let e=[];do e.push(s$(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function s$(t){let e=[];do e.push(a$(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function a$(t){let e=u$(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=l$(t,e);else break;return e}function Dp(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function l$(t,e){let n=Dp(t),o=n;return t.eat(",")&&(t.next!="}"?o=Dp(t):o=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:o,expr:e}}function c$(t,e){let n=t.nodeTypes,o=n[e];if(o)return[o];let r=[];for(let i in n){let s=n[i];s.isInGroup(e)&&r.push(s)}return r.length==0&&t.err("No node type or group '"+e+"' found"),r}function u$(t){if(t.eat("(")){let e=Rp(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=c$(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function d$(t){let e=[[]];return r(i(t,0),n()),e;function n(){return e.push([])-1}function o(s,a,l){let c={term:l,to:a};return e[s].push(c),c}function r(s,a){s.forEach(l=>l.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((l,c)=>l.concat(i(c,a)),[]);if(s.type=="seq")for(let l=0;;l++){let c=i(s.exprs[l],a);if(l==s.exprs.length-1)return c;r(c,a=n())}else if(s.type=="star"){let l=n();return o(a,l),r(i(s.expr,l),l),[o(l)]}else if(s.type=="plus"){let l=n();return r(i(s.expr,a),l),r(i(s.expr,l),l),[o(l)]}else{if(s.type=="opt")return[o(a)].concat(i(s.expr,a));if(s.type=="range"){let l=a;for(let c=0;c<s.min;c++){let u=n();r(i(s.expr,l),u),l=u}if(s.max==-1)r(i(s.expr,l),l);else for(let c=s.min;c<s.max;c++){let u=n();o(l,u),r(i(s.expr,l),u),l=u}return[o(l)]}else{if(s.type=="name")return[o(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function Tp(t,e){return e-t}function Mp(t,e){let n=[];return o(e),n.sort(Tp);function o(r){let i=t[r];if(i.length==1&&!i[0].term)return o(i[0].to);n.push(r);for(let s=0;s<i.length;s++){let{term:a,to:l}=i[s];!a&&n.indexOf(l)==-1&&o(l)}}}function m$(t){let e=Object.create(null);return n(Mp(t,0));function n(o){let r=[];o.forEach(s=>{t[s].forEach(({term:a,to:l})=>{if(!a)return;let c;for(let u=0;u<r.length;u++)r[u][0]==a&&(c=r[u][1]);Mp(t,l).forEach(u=>{c||r.push([a,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let i=e[o.join(",")]=new Jn(o.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(Tp);i.next.push({type:r[s][0],next:e[a.join(",")]||n(a)})}return i}}function f$(t,e){for(let n=0,o=[t];n<o.length;n++){let r=o[n],i=!r.validEnd,s=[];for(let a=0;a<r.next.length;a++){let{type:l,next:c}=r.next[a];s.push(l.name),i&&!(l.isText||l.hasRequiredAttrs())&&(i=!1),o.indexOf(c)==-1&&o.push(c)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function jp(t){let e=Object.create(null);for(let n in t){let o=t[n];if(!o.hasDefault)return null;e[n]=o.default}return e}function Pp(t,e){let n=Object.create(null);for(let o in t){let r=e&&e[o];if(r===void 0){let i=t[o];if(i.hasDefault)r=i.default;else throw new RangeError("No value supplied for attribute "+o)}n[o]=r}return n}function Ip(t,e,n,o){for(let r in e)if(!(r in t))throw new RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let r in t){let i=t[r];i.validate&&i.validate(e[r])}}function Lp(t,e){let n=Object.create(null);if(e)for(let o in e)n[o]=new h$(t,o,e[o]);return n}let zp=class xS{constructor(e,n,o){this.name=e,this.schema=n,this.spec=o,this.markSet=null,this.groups=o.group?o.group.split(" "):[],this.attrs=Lp(e,o.attrs),this.defaultAttrs=jp(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(o.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Jn.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Pp(this.attrs,e)}create(e=null,n,o){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new sn(this,this.computeAttrs(e),R.from(n),re.setFrom(o))}createChecked(e=null,n,o){return n=R.from(n),this.checkContent(n),new sn(this,this.computeAttrs(e),n,re.setFrom(o))}createAndFill(e=null,n,o){if(e=this.computeAttrs(e),n=R.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let r=this.contentMatch.matchFragment(n),i=r&&r.fillBefore(R.empty,!0);return i?new sn(this,e,n.append(i),re.setFrom(o)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let o=0;o<e.childCount;o++)if(!this.allowsMarks(e.child(o).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){Ip(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let o=0;o<e.length;o++)this.allowsMarkType(e[o].type)?n&&n.push(e[o]):n||(n=e.slice(0,o));return n?n.length?n:re.none:e}static compile(e,n){let o=Object.create(null);e.forEach((i,s)=>o[i]=new xS(i,n,s));let r=n.spec.topNode||"doc";if(!o[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!o.text)throw new RangeError("Every schema needs a 'text' type");for(let i in o.text.attrs)throw new RangeError("The text node type should not have attributes");return o}};function p$(t,e,n){let o=n.split("|");return r=>{let i=r===null?"null":typeof r;if(o.indexOf(i)<0)throw new RangeError(`Expected value of type ${o} for attribute ${e} on type ${t}, got ${i}`)}}class h${constructor(e,n,o){this.hasDefault=Object.prototype.hasOwnProperty.call(o,"default"),this.default=o.default,this.validate=typeof o.validate=="string"?p$(e,n,o.validate):o.validate}get isRequired(){return!this.hasDefault}}class Ns{constructor(e,n,o,r){this.name=e,this.rank=n,this.schema=o,this.spec=r,this.attrs=Lp(e,r.attrs),this.excluded=null;let i=jp(this.attrs);this.instance=i?new re(this,i):null}create(e=null){return!e&&this.instance?this.instance:new re(this,Pp(this.attrs,e))}static compile(e,n){let o=Object.create(null),r=0;return e.forEach((i,s)=>o[i]=new Ns(i,r++,n,s)),o}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){Ip(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class Bp{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let r in e)n[r]=e[r];n.nodes=Ne.from(e.nodes),n.marks=Ne.from(e.marks||{}),this.nodes=zp.compile(this.spec.nodes,this),this.marks=Ns.compile(this.spec.marks,this);let o=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let i=this.nodes[r],s=i.spec.content||"",a=i.spec.marks;if(i.contentMatch=o[s]||(o[s]=Jn.parse(s,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=a=="_"?null:a?Fp(this,a.split(" ")):a==""||!i.inlineContent?[]:null}for(let r in this.marks){let i=this.marks[r],s=i.spec.excludes;i.excluded=s==null?[i]:s==""?[]:Fp(this,s.split(" "))}this.nodeFromJSON=r=>sn.fromJSON(this,r),this.markFromJSON=r=>re.fromJSON(this,r),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,o,r){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof zp){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,o,r)}text(e,n){let o=this.nodes.text;return new Es(o,o.defaultAttrs,e,re.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function Fp(t,e){let n=[];for(let o=0;o<e.length;o++){let r=e[o],i=t.marks[r],s=i;if(i)n.push(i);else for(let a in t.marks){let l=t.marks[a];(r=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(r)>-1)&&n.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[o]+"'")}return n}function g$(t){return t.tag!=null}function y$(t){return t.style!=null}let Tr=class Bf{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let o=this.matchedStyles=[];n.forEach(r=>{if(g$(r))this.tags.push(r);else if(y$(r)){let i=/[^=]*/.exec(r.style)[0];o.indexOf(i)<0&&o.push(i),this.styles.push(r)}}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let i=e.nodes[r.node];return i.contentMatch.matchType(i)})}parse(e,n={}){let o=new Up(this,n,!1);return o.addAll(e,re.none,n.from,n.to),o.finish()}parseSlice(e,n={}){let o=new Up(this,n,!0);return o.addAll(e,re.none,n.from,n.to),I.maxOpen(o.finish())}matchTag(e,n,o){for(let r=o?this.tags.indexOf(o)+1:0;r<this.tags.length;r++){let i=this.tags[r];if(v$(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||n.matchesContext(i.context))){if(i.getAttrs){let s=i.getAttrs(e);if(s===!1)continue;i.attrs=s||void 0}return i}}}matchStyle(e,n,o,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let s=this.styles[i],a=s.style;if(!(a.indexOf(e)!=0||s.context&&!o.matchesContext(s.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=n))){if(s.getAttrs){let l=s.getAttrs(n);if(l===!1)continue;s.attrs=l||void 0}return s}}}static schemaRules(e){let n=[];function o(r){let i=r.priority==null?50:r.priority,s=0;for(;s<n.length;s++){let a=n[s];if((a.priority==null?50:a.priority)<i)break}n.splice(s,0,r)}for(let r in e.marks){let i=e.marks[r].spec.parseDOM;i&&i.forEach(s=>{o(s=Yp(s)),s.mark||s.ignore||s.clearMark||(s.mark=r)})}for(let r in e.nodes){let i=e.nodes[r].spec.parseDOM;i&&i.forEach(s=>{o(s=Yp(s)),s.node||s.ignore||s.mark||(s.node=r)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Bf(e,Bf.schemaRules(e)))}};const Hp={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},b$={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Vp={ol:!0,ul:!0},Mr=1,wc=2,jr=4;function _p(t,e,n){return e!=null?(e?Mr:0)|(e==="full"?wc:0):t&&t.whitespace=="pre"?Mr|wc:n&~jr}class As{constructor(e,n,o,r,i,s){this.type=e,this.attrs=n,this.marks=o,this.solid=r,this.options=s,this.content=[],this.activeMarks=re.none,this.match=i||(s&jr?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(R.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let o=this.type.contentMatch,r;return(r=o.findWrapping(e.type))?(this.match=o,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Mr)){let o=this.content[this.content.length-1],r;if(o&&o.isText&&(r=/[ \t\r\n\u000c]+$/.exec(o.text))){let i=o;o.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-r[0].length))}}let n=R.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(R.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Hp.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Up{constructor(e,n,o){this.parser=e,this.options=n,this.isOpen=o,this.open=0,this.localPreserveWS=!1;let r=n.topNode,i,s=_p(null,n.preserveWhitespace,0)|(o?jr:0);r?i=new As(r.type,r.attrs,re.none,!0,n.topMatch||r.type.contentMatch,s):o?i=new As(null,null,re.none,!0,null,s):i=new As(e.schema.topNodeType,null,re.none,!0,null,s),this.nodes=[i],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let o=e.nodeValue,r=this.top,i=r.options&wc?"full":this.localPreserveWS||(r.options&Mr)>0,{schema:s}=this.parser;if(i==="full"||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(o)){if(i)if(i==="full")o=o.replace(/\r\n?/g,`
22
22
  `);else if(s.linebreakReplacement&&/[\r\n]/.test(o)&&this.top.findWrapping(s.linebreakReplacement.create())){let a=o.split(/\r?\n|\r/);for(let l=0;l<a.length;l++)l&&this.insertNode(s.linebreakReplacement.create(),n,!0),a[l]&&this.insertNode(s.text(a[l]),n,!/\S/.test(a[l]));o=""}else o=o.replace(/\r?\n|\r/g," ");else if(o=o.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(o)&&this.open==this.nodes.length-1){let a=r.content[r.content.length-1],l=e.previousSibling;(!a||l&&l.nodeName=="BR"||a.isText&&/[ \t\r\n\u000c]$/.test(a.text))&&(o=o.slice(1))}o&&this.insertNode(s.text(o),n,!/\S/.test(o)),this.findInText(e)}else this.findInside(e)}addElement(e,n,o){let r=this.localPreserveWS,i=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),a;Vp.hasOwnProperty(s)&&this.parser.normalizeLists&&w$(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,o));e:if(l?l.ignore:b$.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,n);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let c,u=this.needsBlock;if(Hp.hasOwnProperty(s))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),c=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let d=l&&l.skip?n:this.readStyles(e,n);d&&this.addAll(e,d),c&&this.sync(i),this.needsBlock=u}else{let c=this.readStyles(e,n);c&&this.addElementByRule(e,l,c,l.consuming===!1?a:void 0)}this.localPreserveWS=r}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
23
23
  `),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(e,n){let o=e.style;if(o&&o.length)for(let r=0;r<this.parser.matchedStyles.length;r++){let i=this.parser.matchedStyles[r],s=o.getPropertyValue(i);if(s)for(let a=void 0;;){let l=this.parser.matchStyle(i,s,this,a);if(!l)break;if(l.ignore)return null;if(l.clearMark?n=n.filter(c=>!l.clearMark(c)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)a=l;else break}}return n}addElementByRule(e,n,o,r){let i,s;if(n.node)if(s=this.parser.schema.nodes[n.node],s.isLeaf)this.insertNode(s.create(n.attrs),o,e.nodeName=="BR")||this.leafFallback(e,o);else{let l=this.enter(s,n.attrs||null,o,n.preserveWhitespace);l&&(i=!0,o=l)}else{let l=this.parser.schema.marks[n.mark];o=o.concat(l.create(n.attrs))}let a=this.top;if(s&&s.isLeaf)this.findInside(e);else if(r)this.addElement(e,o,r);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,o,!1));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l,o),this.findAround(e,l,!1)}i&&this.sync(a)&&this.open--}addAll(e,n,o,r){let i=o||0;for(let s=o?e.childNodes[o]:e.firstChild,a=r==null?null:e.childNodes[r];s!=a;s=s.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(s,n);this.findAtPoint(e,i)}findPlace(e,n,o){let r,i;for(let s=this.open,a=0;s>=0;s--){let l=this.nodes[s],c=l.findWrapping(e);if(c&&(!r||r.length>c.length+a)&&(r=c,i=l,!c.length))break;if(l.solid){if(o)break;a+=2}}if(!r)return null;this.sync(i);for(let s=0;s<r.length;s++)n=this.enterInner(r[s],null,n,!1);return n}insertNode(e,n,o){if(e.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(n=this.enterInner(i,null,n))}let r=this.findPlace(e,n,o);if(r){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(e.type));let s=re.none;for(let a of r.concat(e.marks))(i.type?i.type.allowsMarkType(a.type):Jp(a.type,e.type))&&(s=a.addToSet(s));return i.content.push(e.mark(s)),!0}return!1}enter(e,n,o,r){let i=this.findPlace(e.create(n),o,!1);return i&&(i=this.enterInner(e,n,o,!0,r)),i}enterInner(e,n,o,r=!1,i){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(e);let a=_p(e,i,s.options);s.options&jr&&s.content.length==0&&(a|=jr);let l=re.none;return o=o.filter(c=>(s.type?s.type.allowsMarkType(c.type):Jp(c.type,e))?(l=c.addToSet(l),!1):!0),this.nodes.push(new As(e,n,l,r,null,a)),this.open++,o}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let n=this.open;n>=0;n--){if(this.nodes[n]==e)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=Mr)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let o=this.nodes[n].content;for(let r=o.length-1;r>=0;r--)e+=o[r].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let o=0;o<this.find.length;o++)this.find[o].node==e&&this.find[o].offset==n&&(this.find[o].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,o){if(e!=n&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&n.compareDocumentPosition(this.find[r].node)&(o?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),o=this.options.context,r=!this.isOpen&&(!o||o.parent.type==this.nodes[0].type),i=-(o?o.depth+1:0)+(r?0:1),s=(a,l)=>{for(;a>=0;a--){let c=n[a];if(c==""){if(a==n.length-1||a==0)continue;for(;l>=i;l--)if(s(a-1,l))return!0;return!1}else{let u=l>0||l==0&&r?this.nodes[l].type:o&&l>=i?o.node(l-i).type:null;if(!u||u.name!=c&&!u.isInGroup(c))return!1;l--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let o=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(o&&o.isTextblock&&o.defaultAttrs)return o}for(let n in this.parser.schema.nodes){let o=this.parser.schema.nodes[n];if(o.isTextblock&&o.defaultAttrs)return o}}}function w$(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let o=e.nodeType==1?e.nodeName.toLowerCase():null;o&&Vp.hasOwnProperty(o)&&n?(n.appendChild(e),e=n):o=="li"?n=e:o&&(n=null)}}function v$(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function Yp(t){let e={};for(let n in t)e[n]=t[n];return e}function Jp(t,e){let n=e.schema.nodes;for(let o in n){let r=n[o];if(!r.allowsMarkType(t))continue;let i=[],s=a=>{i.push(a);for(let l=0;l<a.edgeCount;l++){let{type:c,next:u}=a.edge(l);if(c==e||i.indexOf(u)<0&&s(u))return!0}};if(s(r.contentMatch))return!0}}class Kn{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},o){o||(o=vc(n).createDocumentFragment());let r=o,i=[];return e.forEach(s=>{if(i.length||s.marks.length){let a=0,l=0;for(;a<i.length&&l<s.marks.length;){let c=s.marks[l];if(!this.marks[c.type.name]){l++;continue}if(!c.eq(i[a][0])||c.type.spec.spanning===!1)break;a++,l++}for(;a<i.length;)r=i.pop()[1];for(;l<s.marks.length;){let c=s.marks[l++],u=this.serializeMark(c,s.isInline,n);u&&(i.push([c,r]),r.appendChild(u.dom),r=u.contentDOM||u.dom)}}r.appendChild(this.serializeNodeInner(s,n))}),o}serializeNodeInner(e,n){let{dom:o,contentDOM:r}=Os(vc(n),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,r)}return o}serializeNode(e,n={}){let o=this.serializeNodeInner(e,n);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,n);i&&((i.contentDOM||i.dom).appendChild(o),o=i.dom)}return o}serializeMark(e,n,o={}){let r=this.marks[e.type.name];return r&&Os(vc(o),r(e,n),null,e.attrs)}static renderSpec(e,n,o=null,r){return Os(e,n,o,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Kn(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=Kp(e.nodes);return n.text||(n.text=o=>o.text),n}static marksFromSchema(e){return Kp(e.marks)}}function Kp(t){let e={};for(let n in t){let o=t[n].spec.toDOM;o&&(e[n]=o)}return e}function vc(t){return t.document||window.document}const Wp=new WeakMap;function S$(t){let e=Wp.get(t);return e===void 0&&Wp.set(t,e=$$(t)),e}function $$(t){let e=null;function n(o){if(o&&typeof o=="object")if(Array.isArray(o))if(typeof o[0]=="string")e||(e=[]),e.push(o);else for(let r=0;r<o.length;r++)n(o[r]);else for(let r in o)n(o[r])}return n(t),e}function Os(t,e,n,o){if(typeof e=="string")return{dom:t.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let r=e[0],i;if(typeof r!="string")throw new RangeError("Invalid array passed to renderSpec");if(o&&(i=S$(o))&&i.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=r.indexOf(" ");s>0&&(n=r.slice(0,s),r=r.slice(s+1));let a,l=n?t.createElementNS(n,r):t.createElement(r),c=e[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let m=d.indexOf(" ");m>0?l.setAttributeNS(d.slice(0,m),d.slice(m+1),c[d]):d=="style"&&l.style?l.style.cssText=c[d]:l.setAttribute(d,c[d])}}for(let d=u;d<e.length;d++){let m=e[d];if(m===0){if(d<e.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:f,contentDOM:p}=Os(t,m,n,o);if(l.appendChild(f),p){if(a)throw new RangeError("Multiple content holes");a=p}}}return{dom:l,contentDOM:a}}const qp=65535,Gp=Math.pow(2,16);function k$(t,e){return t+e*Gp}function Qp(t){return t&qp}function x$(t){return(t-(t&qp))/Gp}const Zp=1,Xp=2,Rs=4,eh=8;class Sc{constructor(e,n,o){this.pos=e,this.delInfo=n,this.recover=o}get deleted(){return(this.delInfo&eh)>0}get deletedBefore(){return(this.delInfo&(Zp|Rs))>0}get deletedAfter(){return(this.delInfo&(Xp|Rs))>0}get deletedAcross(){return(this.delInfo&Rs)>0}}class nt{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&nt.empty)return nt.empty}recover(e){let n=0,o=Qp(e);if(!this.inverted)for(let r=0;r<o;r++)n+=this.ranges[r*3+2]-this.ranges[r*3+1];return this.ranges[o*3]+n+x$(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,o){let r=0,i=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?r:0);if(l>e)break;let c=this.ranges[a+i],u=this.ranges[a+s],d=l+c;if(e<=d){let m=c?e==l?-1:e==d?1:n:n,f=l+r+(m<0?0:u);if(o)return f;let p=e==(n<0?l:d)?null:k$(a/3,e-l),g=e==l?Xp:e==d?Zp:Rs;return(n<0?e!=l:e!=d)&&(g|=eh),new Sc(f,g,p)}r+=u-c}return o?e+r:new Sc(e+r,0,null)}touches(e,n){let o=0,r=Qp(n),i=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?o:0);if(l>e)break;let c=this.ranges[a+i],u=l+c;if(e<=u&&a==r*3)return!0;o+=this.ranges[a+s]-c}return!1}forEach(e){let n=this.inverted?2:1,o=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let s=this.ranges[r],a=s-(this.inverted?i:0),l=s+(this.inverted?0:i),c=this.ranges[r+n],u=this.ranges[r+o];e(a,a+c,l,l+u),i+=u-c}}invert(){return new nt(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?nt.empty:new nt(e<0?[0,-e,0]:[0,0,e])}}nt.empty=new nt([]);class Ds{constructor(e,n,o=0,r=e?e.length:0){this.mirror=n,this.from=o,this.to=r,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new Ds(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(e){for(let n=0,o=this._maps.length;n<e._maps.length;n++){let r=e.getMirror(n);this.appendMap(e._maps[n],r!=null&&r<n?o+r:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,o=this._maps.length+e._maps.length;n>=0;n--){let r=e.getMirror(n);this.appendMap(e._maps[n].invert(),r!=null&&r>n?o-r-1:void 0)}}invert(){let e=new Ds;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let o=this.from;o<this.to;o++)e=this._maps[o].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,o){let r=0;for(let i=this.from;i<this.to;i++){let s=this._maps[i],a=s.mapResult(e,n);if(a.recover!=null){let l=this.getMirror(i);if(l!=null&&l>i&&l<this.to){i=l,e=this._maps[l].recover(a.recover);continue}}r|=a.delInfo,e=a.pos}return o?e:new Sc(e,r,null)}}const $c=Object.create(null);class je{getMap(){return nt.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let o=$c[n.stepType];if(!o)throw new RangeError(`No step type ${n.stepType} defined`);return o.fromJSON(e,n)}static jsonID(e,n){if(e in $c)throw new RangeError("Duplicate use of step JSON ID "+e);return $c[e]=n,n.prototype.jsonID=e,n}}class be{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new be(e,null)}static fail(e){return new be(null,e)}static fromReplace(e,n,o,r){try{return be.ok(e.replace(n,o,r))}catch(i){if(i instanceof ks)return be.fail(i.message);throw i}}}function kc(t,e,n){let o=[];for(let r=0;r<t.childCount;r++){let i=t.child(r);i.content.size&&(i=i.copy(kc(i.content,e,i))),i.isInline&&(i=e(i,n,r)),o.push(i)}return R.fromArray(o)}class an extends je{constructor(e,n,o){super(),this.from=e,this.to=n,this.mark=o}apply(e){let n=e.slice(this.from,this.to),o=e.resolve(this.from),r=o.node(o.sharedDepth(this.to)),i=new I(kc(n.content,(s,a)=>!s.isAtom||!a.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),r),n.openStart,n.openEnd);return be.fromReplace(e,this.from,this.to,i)}invert(){return new Ot(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return n.deleted&&o.deleted||n.pos>=o.pos?null:new an(n.pos,o.pos,this.mark)}merge(e){return e instanceof an&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new an(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new an(n.from,n.to,e.markFromJSON(n.mark))}}je.jsonID("addMark",an);class Ot extends je{constructor(e,n,o){super(),this.from=e,this.to=n,this.mark=o}apply(e){let n=e.slice(this.from,this.to),o=new I(kc(n.content,r=>r.mark(this.mark.removeFromSet(r.marks)),e),n.openStart,n.openEnd);return be.fromReplace(e,this.from,this.to,o)}invert(){return new an(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return n.deleted&&o.deleted||n.pos>=o.pos?null:new Ot(n.pos,o.pos,this.mark)}merge(e){return e instanceof Ot&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Ot(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Ot(n.from,n.to,e.markFromJSON(n.mark))}}je.jsonID("removeMark",Ot);class ln extends je{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return be.fail("No node at mark step's position");let o=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return be.fromReplace(e,this.pos,this.pos+1,new I(R.from(o),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let o=this.mark.addToSet(n.marks);if(o.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(o))return new ln(this.pos,n.marks[r]);return new ln(this.pos,this.mark)}}return new Wn(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new ln(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new ln(n.pos,e.markFromJSON(n.mark))}}je.jsonID("addNodeMark",ln);class Wn extends je{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return be.fail("No node at mark step's position");let o=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return be.fromReplace(e,this.pos,this.pos+1,new I(R.from(o),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new ln(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Wn(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Wn(n.pos,e.markFromJSON(n.mark))}}je.jsonID("removeNodeMark",Wn);class Se extends je{constructor(e,n,o,r=!1){super(),this.from=e,this.to=n,this.slice=o,this.structure=r}apply(e){return this.structure&&xc(e,this.from,this.to)?be.fail("Structure replace would overwrite content"):be.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new nt([this.from,this.to-this.from,this.slice.size])}invert(e){return new Se(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return n.deletedAcross&&o.deletedAcross?null:new Se(n.pos,Math.max(n.pos,o.pos),this.slice,this.structure)}merge(e){if(!(e instanceof Se)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?I.empty:new I(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new Se(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?I.empty:new I(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new Se(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Se(n.from,n.to,I.fromJSON(e,n.slice),!!n.structure)}}je.jsonID("replace",Se);class $e extends je{constructor(e,n,o,r,i,s,a=!1){super(),this.from=e,this.to=n,this.gapFrom=o,this.gapTo=r,this.slice=i,this.insert=s,this.structure=a}apply(e){if(this.structure&&(xc(e,this.from,this.gapFrom)||xc(e,this.gapTo,this.to)))return be.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return be.fail("Gap is not a flat range");let o=this.slice.insertAt(this.insert,n.content);return o?be.fromReplace(e,this.from,this.to,o):be.fail("Content does not fit in gap")}getMap(){return new nt([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new $e(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),o=e.mapResult(this.to,-1),r=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?o.pos:e.map(this.gapTo,1);return n.deletedAcross&&o.deletedAcross||r<n.pos||i>o.pos?null:new $e(n.pos,o.pos,r,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new $e(n.from,n.to,n.gapFrom,n.gapTo,I.fromJSON(e,n.slice),n.insert,!!n.structure)}}je.jsonID("replaceAround",$e);function xc(t,e,n){let o=t.resolve(e),r=n-e,i=o.depth;for(;r>0&&i>0&&o.indexAfter(i)==o.node(i).childCount;)i--,r--;if(r>0){let s=o.node(i).maybeChild(o.indexAfter(i));for(;r>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,r--}}return!1}function C$(t,e,n,o){let r=[],i=[],s,a;t.doc.nodesBetween(e,n,(l,c,u)=>{if(!l.isInline)return;let d=l.marks;if(!o.isInSet(d)&&u.type.allowsMarkType(o.type)){let m=Math.max(c,e),f=Math.min(c+l.nodeSize,n),p=o.addToSet(d);for(let g=0;g<d.length;g++)d[g].isInSet(p)||(s&&s.to==m&&s.mark.eq(d[g])?s.to=f:r.push(s=new Ot(m,f,d[g])));a&&a.to==m?a.to=f:i.push(a=new an(m,f,o))}}),r.forEach(l=>t.step(l)),i.forEach(l=>t.step(l))}function E$(t,e,n,o){let r=[],i=0;t.doc.nodesBetween(e,n,(s,a)=>{if(!s.isInline)return;i++;let l=null;if(o instanceof Ns){let c=s.marks,u;for(;u=o.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else o?o.isInSet(s.marks)&&(l=[o]):l=s.marks;if(l&&l.length){let c=Math.min(a+s.nodeSize,n);for(let u=0;u<l.length;u++){let d=l[u],m;for(let f=0;f<r.length;f++){let p=r[f];p.step==i-1&&d.eq(r[f].style)&&(m=p)}m?(m.to=c,m.step=i):r.push({style:d,from:Math.max(a,e),to:c,step:i})}}}),r.forEach(s=>t.step(new Ot(s.from,s.to,s.style)))}function Cc(t,e,n,o=n.contentMatch,r=!0){let i=t.doc.nodeAt(e),s=[],a=e+1;for(let l=0;l<i.childCount;l++){let c=i.child(l),u=a+c.nodeSize,d=o.matchType(c.type);if(!d)s.push(new Se(a,u,I.empty));else{o=d;for(let m=0;m<c.marks.length;m++)n.allowsMarkType(c.marks[m].type)||t.step(new Ot(a,u,c.marks[m]));if(r&&c.isText&&n.whitespace!="pre"){let m,f=/\r?\n|\r/g,p;for(;m=f.exec(c.text);)p||(p=new I(R.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),s.push(new Se(a+m.index,a+m.index+m[0].length,p))}}a=u}if(!o.validEnd){let l=o.fillBefore(R.empty,!0);t.replace(a,a,new I(l,0,0))}for(let l=s.length-1;l>=0;l--)t.step(s[l])}function N$(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function No(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let o=t.depth,r=0,i=0;;--o){let s=t.$from.node(o),a=t.$from.index(o)+r,l=t.$to.indexAfter(o)-i;if(o<t.depth&&s.canReplace(a,l,n))return o;if(o==0||s.type.spec.isolating||!N$(s,a,l))break;a&&(r=1),l<s.childCount&&(i=1)}return null}function A$(t,e,n){let{$from:o,$to:r,depth:i}=e,s=o.before(i+1),a=r.after(i+1),l=s,c=a,u=R.empty,d=0;for(let p=i,g=!1;p>n;p--)g||o.index(p)>0?(g=!0,u=R.from(o.node(p).copy(u)),d++):l--;let m=R.empty,f=0;for(let p=i,g=!1;p>n;p--)g||r.after(p+1)<r.end(p)?(g=!0,m=R.from(r.node(p).copy(m)),f++):c++;t.step(new $e(l,c,s,a,new I(u.append(m),d,f),u.size-d,!0))}function Ec(t,e,n=null,o=t){let r=O$(t,e),i=r&&R$(o,e);return i?r.map(th).concat({type:e,attrs:n}).concat(i.map(th)):null}function th(t){return{type:t,attrs:null}}function O$(t,e){let{parent:n,startIndex:o,endIndex:r}=t,i=n.contentMatchAt(o).findWrapping(e);if(!i)return null;let s=i.length?i[0]:e;return n.canReplaceWith(o,r,s)?i:null}function R$(t,e){let{parent:n,startIndex:o,endIndex:r}=t,i=n.child(o),s=e.contentMatch.findWrapping(i.type);if(!s)return null;let l=(s.length?s[s.length-1]:e).contentMatch;for(let c=o;l&&c<r;c++)l=l.matchType(n.child(c).type);return!l||!l.validEnd?null:s}function D$(t,e,n){let o=R.empty;for(let s=n.length-1;s>=0;s--){if(o.size){let a=n[s].type.contentMatch.matchFragment(o);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}o=R.from(n[s].type.create(n[s].attrs,o))}let r=e.start,i=e.end;t.step(new $e(r,i,r,i,new I(o,0,0),n.length,!0))}function T$(t,e,n,o,r){if(!o.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=t.steps.length;t.doc.nodesBetween(e,n,(s,a)=>{let l=typeof r=="function"?r(s):r;if(s.isTextblock&&!s.hasMarkup(o,l)&&M$(t.doc,t.mapping.slice(i).map(a),o)){let c=null;if(o.schema.linebreakReplacement){let f=o.whitespace=="pre",p=!!o.contentMatch.matchType(o.schema.linebreakReplacement);f&&!p?c=!1:!f&&p&&(c=!0)}c===!1&&oh(t,s,a,i),Cc(t,t.mapping.slice(i).map(a,1),o,void 0,c===null);let u=t.mapping.slice(i),d=u.map(a,1),m=u.map(a+s.nodeSize,1);return t.step(new $e(d,m,d+1,m-1,new I(R.from(o.create(l,null,s.marks)),0,0),1,!0)),c===!0&&nh(t,s,a,i),!1}})}function nh(t,e,n,o){e.forEach((r,i)=>{if(r.isText){let s,a=/\r?\n|\r/g;for(;s=a.exec(r.text);){let l=t.mapping.slice(o).map(n+1+i+s.index);t.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}function oh(t,e,n,o){e.forEach((r,i)=>{if(r.type==r.type.schema.linebreakReplacement){let s=t.mapping.slice(o).map(n+1+i);t.replaceWith(s,s+1,e.type.schema.text(`
24
- `))}})}function M$(t,e,n){let o=t.resolve(e),r=o.index();return o.parent.canReplaceWith(r,r+1,n)}function j$(t,e,n,o,r){let i=t.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let s=n.create(o,null,r||i.marks);if(i.isLeaf)return t.replaceWith(e,e+i.nodeSize,s);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new $e(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new I(R.from(s),0,0),1,!0))}function _t(t,e,n=1,o){let r=t.resolve(e),i=r.depth-n,s=o&&o[o.length-1]||r.parent;if(i<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!s.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(let c=r.depth-1,u=n-2;c>i;c--,u--){let d=r.node(c),m=r.index(c);if(d.type.spec.isolating)return!1;let f=d.content.cutByIndex(m,d.childCount),p=o&&o[u+1];p&&(f=f.replaceChild(0,p.type.create(p.attrs)));let g=o&&o[u]||d;if(!d.canReplace(m+1,d.childCount)||!g.type.validContent(f))return!1}let a=r.indexAfter(i),l=o&&o[0];return r.node(i).canReplaceWith(a,a,l?l.type:r.node(i+1).type)}function P$(t,e,n=1,o){let r=t.doc.resolve(e),i=R.empty,s=R.empty;for(let a=r.depth,l=r.depth-n,c=n-1;a>l;a--,c--){i=R.from(r.node(a).copy(i));let u=o&&o[c];s=R.from(u?u.type.create(u.attrs,s):r.node(a).copy(s))}t.step(new Se(e,e,new I(i.append(s),n,n),!0))}function cn(t,e){let n=t.resolve(e),o=n.index();return rh(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(o,o+1)}function I$(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:o}=t.type.schema;for(let r=0;r<e.childCount;r++){let i=e.child(r),s=i.type==o?t.type.schema.nodes.text:i.type;if(n=n.matchType(s),!n||!t.type.allowsMarks(i.marks))return!1}return n.validEnd}function rh(t,e){return!!(t&&e&&!t.isLeaf&&I$(t,e))}function Ts(t,e,n=-1){let o=t.resolve(e);for(let r=o.depth;;r--){let i,s,a=o.index(r);if(r==o.depth?(i=o.nodeBefore,s=o.nodeAfter):n>0?(i=o.node(r+1),a++,s=o.node(r).maybeChild(a)):(i=o.node(r).maybeChild(a-1),s=o.node(r+1)),i&&!i.isTextblock&&rh(i,s)&&o.node(r).canReplace(a,a+1))return e;if(r==0)break;e=n<0?o.before(r):o.after(r)}}function L$(t,e,n){let o=null,{linebreakReplacement:r}=t.doc.type.schema,i=t.doc.resolve(e-n),s=i.node().type;if(r&&s.inlineContent){let u=s.whitespace=="pre",d=!!s.contentMatch.matchType(r);u&&!d?o=!1:!u&&d&&(o=!0)}let a=t.steps.length;if(o===!1){let u=t.doc.resolve(e+n);oh(t,u.node(),u.before(),a)}s.inlineContent&&Cc(t,e+n-1,s,i.node().contentMatchAt(i.index()),o==null);let l=t.mapping.slice(a),c=l.map(e-n);if(t.step(new Se(c,l.map(e+n,-1),I.empty,!0)),o===!0){let u=t.doc.resolve(c);nh(t,u.node(),u.before(),t.steps.length)}return t}function z$(t,e,n){let o=t.resolve(e);if(o.parent.canReplaceWith(o.index(),o.index(),n))return e;if(o.parentOffset==0)for(let r=o.depth-1;r>=0;r--){let i=o.index(r);if(o.node(r).canReplaceWith(i,i,n))return o.before(r+1);if(i>0)return null}if(o.parentOffset==o.parent.content.size)for(let r=o.depth-1;r>=0;r--){let i=o.indexAfter(r);if(o.node(r).canReplaceWith(i,i,n))return o.after(r+1);if(i<o.node(r).childCount)return null}return null}function F$(t,e,n){let o=t.resolve(e);if(!n.content.size)return e;let r=n.content;for(let i=0;i<n.openStart;i++)r=r.firstChild.content;for(let i=1;i<=(n.openStart==0&&n.size?2:1);i++)for(let s=o.depth;s>=0;s--){let a=s==o.depth?0:o.pos<=(o.start(s+1)+o.end(s+1))/2?-1:1,l=o.index(s)+(a>0?1:0),c=o.node(s),u=!1;if(i==1)u=c.canReplace(l,l,r);else{let d=c.contentMatchAt(l).findWrapping(r.firstChild.type);u=d&&c.canReplaceWith(l,l,d[0])}if(u)return a==0?o.pos:a<0?o.before(s+1):o.after(s+1)}return null}function Ms(t,e,n=e,o=I.empty){if(e==n&&!o.size)return null;let r=t.resolve(e),i=t.resolve(n);return ih(r,i,o)?new Se(e,n,o):new B$(r,i,o).fit()}function ih(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class B${constructor(e,n,o){this.$from=e,this.$to=n,this.unplaced=o,this.frontier=[],this.placed=R.empty;for(let r=0;r<=e.depth;r++){let i=e.node(r);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(r))})}for(let r=e.depth;r>0;r--)this.placed=R.from(e.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,o=this.$from,r=this.close(e<0?this.$to:o.doc.resolve(e));if(!r)return null;let i=this.placed,s=o.depth,a=r.depth;for(;s&&a&&i.childCount==1;)i=i.firstChild.content,s--,a--;let l=new I(i,s,a);return e>-1?new $e(o.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||o.pos!=this.$to.pos?new Se(o.pos,r.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,o=0,r=this.unplaced.openEnd;o<e;o++){let i=n.firstChild;if(n.childCount>1&&(r=0),i.type.spec.isolating&&r<=o){e=o;break}n=i.content}for(let n=1;n<=2;n++)for(let o=n==1?e:this.unplaced.openStart;o>=0;o--){let r,i=null;o?(i=Nc(this.unplaced.content,o-1).firstChild,r=i.content):r=this.unplaced.content;let s=r.firstChild;for(let a=this.depth;a>=0;a--){let{type:l,match:c}=this.frontier[a],u,d=null;if(n==1&&(s?c.matchType(s.type)||(d=c.fillBefore(R.from(s),!1)):i&&l.compatibleContent(i.type)))return{sliceDepth:o,frontierDepth:a,parent:i,inject:d};if(n==2&&s&&(u=c.findWrapping(s.type)))return{sliceDepth:o,frontierDepth:a,parent:i,wrap:u};if(i&&c.matchType(i.type))break}}}openMore(){let{content:e,openStart:n,openEnd:o}=this.unplaced,r=Nc(e,n);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new I(e,n+1,Math.max(o,r.size+n>=e.size-o?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:o}=this.unplaced,r=Nc(e,n);if(r.childCount<=1&&n>0){let i=e.size-n<=n+r.size;this.unplaced=new I(Pr(e,n-1,1),n-1,i?n-1:o)}else this.unplaced=new I(Pr(e,n,1),n,o)}placeNodes({sliceDepth:e,frontierDepth:n,parent:o,inject:r,wrap:i}){for(;this.depth>n;)this.closeFrontierNode();if(i)for(let g=0;g<i.length;g++)this.openFrontierNode(i[g]);let s=this.unplaced,a=o?o.content:s.content,l=s.openStart-e,c=0,u=[],{match:d,type:m}=this.frontier[n];if(r){for(let g=0;g<r.childCount;g++)u.push(r.child(g));d=d.matchFragment(r)}let f=a.size+e-(s.content.size-s.openEnd);for(;c<a.childCount;){let g=a.child(c),h=d.matchType(g.type);if(!h)break;c++,(c>1||l==0||g.content.size)&&(d=h,u.push(sh(g.mark(m.allowedMarks(g.marks)),c==1?l:0,c==a.childCount?f:-1)))}let p=c==a.childCount;p||(f=-1),this.placed=Ir(this.placed,n,R.from(u)),this.frontier[n].match=d,p&&f<0&&o&&o.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,h=a;g<f;g++){let y=h.lastChild;this.frontier.push({type:y.type,match:y.contentMatchAt(y.childCount)}),h=y.content}this.unplaced=p?e==0?I.empty:new I(Pr(s.content,e-1,1),e-1,f<0?s.openEnd:e-1):new I(Pr(s.content,e,c),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!Ac(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:o}=this.$to,r=this.$to.after(o);for(;o>1&&r==this.$to.end(--o);)++r;return r}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:o,type:r}=this.frontier[n],i=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),s=Ac(e,n,r,o,i);if(s){for(let a=n-1;a>=0;a--){let{match:l,type:c}=this.frontier[a],u=Ac(e,a,c,l,!0);if(!u||u.childCount)continue e}return{depth:n,fit:s,move:i?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Ir(this.placed,n.depth,n.fit)),e=n.move;for(let o=n.depth+1;o<=e.depth;o++){let r=e.node(o),i=r.type.contentMatch.fillBefore(r.content,!0,e.index(o));this.openFrontierNode(r.type,r.attrs,i)}return e}openFrontierNode(e,n=null,o){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=Ir(this.placed,this.depth,R.from(e.create(n,o))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(R.empty,!0);n.childCount&&(this.placed=Ir(this.placed,this.frontier.length,n))}}function Pr(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Pr(t.firstChild.content,e-1,n)))}function Ir(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Ir(t.lastChild.content,e-1,n)))}function Nc(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function sh(t,e,n){if(e<=0)return t;let o=t.content;return e>1&&(o=o.replaceChild(0,sh(o.firstChild,e-1,o.childCount==1?n-1:0))),e>0&&(o=t.type.contentMatch.fillBefore(o).append(o),n<=0&&(o=o.append(t.type.contentMatch.matchFragment(o).fillBefore(R.empty,!0)))),t.copy(o)}function Ac(t,e,n,o,r){let i=t.node(e),s=r?t.indexAfter(e):t.index(e);if(s==i.childCount&&!n.compatibleContent(i.type))return null;let a=o.fillBefore(i.content,!0,s);return a&&!H$(n,i.content,s)?a:null}function H$(t,e,n){for(let o=n;o<e.childCount;o++)if(!t.allowsMarks(e.child(o).marks))return!0;return!1}function V$(t){return t.spec.defining||t.spec.definingForContent}function _$(t,e,n,o){if(!o.size)return t.deleteRange(e,n);let r=t.doc.resolve(e),i=t.doc.resolve(n);if(ih(r,i,o))return t.step(new Se(e,n,o));let s=lh(r,i);s[s.length-1]==0&&s.pop();let a=-(r.depth+1);s.unshift(a);for(let m=r.depth,f=r.pos-1;m>0;m--,f--){let p=r.node(m).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;s.indexOf(m)>-1?a=m:r.before(m)==f&&s.splice(1,0,-m)}let l=s.indexOf(a),c=[],u=o.openStart;for(let m=o.content,f=0;;f++){let p=m.firstChild;if(c.push(p),f==o.openStart)break;m=p.content}for(let m=u-1;m>=0;m--){let f=c[m],p=V$(f.type);if(p&&!f.sameMarkup(r.node(Math.abs(a)-1)))u=m;else if(p||!f.type.isTextblock)break}for(let m=o.openStart;m>=0;m--){let f=(m+u+1)%(o.openStart+1),p=c[f];if(p)for(let g=0;g<s.length;g++){let h=s[(g+l)%s.length],y=!0;h<0&&(y=!1,h=-h);let w=r.node(h-1),v=r.index(h-1);if(w.canReplaceWith(v,v,p.type,p.marks))return t.replace(r.before(h),y?i.after(h):n,new I(ah(o.content,0,o.openStart,f),f,o.openEnd))}}let d=t.steps.length;for(let m=s.length-1;m>=0&&(t.replace(e,n,o),!(t.steps.length>d));m--){let f=s[m];f<0||(e=r.before(f),n=i.after(f))}}function ah(t,e,n,o,r){if(e<n){let i=t.firstChild;t=t.replaceChild(0,i.copy(ah(i.content,e+1,n,o,i)))}if(e>o){let i=r.contentMatchAt(0),s=i.fillBefore(t).append(t);t=s.append(i.matchFragment(s).fillBefore(R.empty,!0))}return t}function U$(t,e,n,o){if(!o.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let r=z$(t.doc,e,o.type);r!=null&&(e=n=r)}t.replaceRange(e,n,new I(R.from(o),0,0))}function Y$(t,e,n){let o=t.doc.resolve(e),r=t.doc.resolve(n),i=lh(o,r);for(let s=0;s<i.length;s++){let a=i[s],l=s==i.length-1;if(l&&a==0||o.node(a).type.contentMatch.validEnd)return t.delete(o.start(a),r.end(a));if(a>0&&(l||o.node(a-1).canReplace(o.index(a-1),r.indexAfter(a-1))))return t.delete(o.before(a),r.after(a))}for(let s=1;s<=o.depth&&s<=r.depth;s++)if(e-o.start(s)==o.depth-s&&n>o.end(s)&&r.end(s)-n!=r.depth-s&&o.start(s-1)==r.start(s-1)&&o.node(s-1).canReplace(o.index(s-1),r.index(s-1)))return t.delete(o.before(s),n);t.delete(e,n)}function lh(t,e){let n=[],o=Math.min(t.depth,e.depth);for(let r=o;r>=0;r--){let i=t.start(r);if(i<t.pos-(t.depth-r)||e.end(r)>e.pos+(e.depth-r)||t.node(r).type.spec.isolating||e.node(r).type.spec.isolating)break;(i==e.start(r)||r==t.depth&&r==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&r&&e.start(r-1)==i-1)&&n.push(r)}return n}class Ao extends je{constructor(e,n,o){super(),this.pos=e,this.attr=n,this.value=o}apply(e){let n=e.nodeAt(this.pos);if(!n)return be.fail("No node at attribute step's position");let o=Object.create(null);for(let i in n.attrs)o[i]=n.attrs[i];o[this.attr]=this.value;let r=n.type.create(o,null,n.marks);return be.fromReplace(e,this.pos,this.pos+1,new I(R.from(r),0,n.isLeaf?0:1))}getMap(){return nt.empty}invert(e){return new Ao(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Ao(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Ao(n.pos,n.attr,n.value)}}je.jsonID("attr",Ao);class Lr extends je{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let r in e.attrs)n[r]=e.attrs[r];n[this.attr]=this.value;let o=e.type.create(n,e.content,e.marks);return be.ok(o)}getMap(){return nt.empty}invert(e){return new Lr(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Lr(n.attr,n.value)}}je.jsonID("docAttr",Lr);let Oo=class extends Error{};Oo=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},Oo.prototype=Object.create(Error.prototype),Oo.prototype.constructor=Oo,Oo.prototype.name="TransformError";class ch{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Ds}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new Oo(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,n=-1e9;for(let o=0;o<this.mapping.maps.length;o++){let r=this.mapping.maps[o];o&&(e=r.map(e,1),n=r.map(n,-1)),r.forEach((i,s,a,l)=>{e=Math.min(e,a),n=Math.max(n,l)})}return e==1e9?null:{from:e,to:n}}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,o=I.empty){let r=Ms(this.doc,e,n,o);return r&&this.step(r),this}replaceWith(e,n,o){return this.replace(e,n,new I(R.from(o),0,0))}delete(e,n){return this.replace(e,n,I.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,o){return _$(this,e,n,o),this}replaceRangeWith(e,n,o){return U$(this,e,n,o),this}deleteRange(e,n){return Y$(this,e,n),this}lift(e,n){return A$(this,e,n),this}join(e,n=1){return L$(this,e,n),this}wrap(e,n){return D$(this,e,n),this}setBlockType(e,n=e,o,r=null){return T$(this,e,n,o,r),this}setNodeMarkup(e,n,o=null,r){return j$(this,e,n,o,r),this}setNodeAttribute(e,n,o){return this.step(new Ao(e,n,o)),this}setDocAttribute(e,n){return this.step(new Lr(e,n)),this}addNodeMark(e,n){return this.step(new ln(e,n)),this}removeNodeMark(e,n){let o=this.doc.nodeAt(e);if(!o)throw new RangeError("No node at position "+e);if(n instanceof re)n.isInSet(o.marks)&&this.step(new Wn(e,n));else{let r=o.marks,i,s=[];for(;i=n.isInSet(r);)s.push(new Wn(e,i)),r=i.removeFromSet(r);for(let a=s.length-1;a>=0;a--)this.step(s[a])}return this}split(e,n=1,o){return P$(this,e,n,o),this}addMark(e,n,o){return C$(this,e,n,o),this}removeMark(e,n,o){return E$(this,e,n,o),this}clearIncompatible(e,n,o){return Cc(this,e,n,o),this}}const Oc=Object.create(null);class Z{constructor(e,n,o){this.$anchor=e,this.$head=n,this.ranges=o||[new J$(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=I.empty){let o=n.content.lastChild,r=null;for(let a=0;a<n.openEnd;a++)r=o,o=o.lastChild;let i=e.steps.length,s=this.ranges;for(let a=0;a<s.length;a++){let{$from:l,$to:c}=s[a],u=e.mapping.slice(i);e.replaceRange(u.map(l.pos),u.map(c.pos),a?I.empty:n),a==0&&mh(e,i,(o?o.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,n){let o=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:s,$to:a}=r[i],l=e.mapping.slice(o),c=l.map(s.pos),u=l.map(a.pos);i?e.deleteRange(c,u):(e.replaceRangeWith(c,u,n),mh(e,o,n.isInline?-1:1))}}static findFrom(e,n,o=!1){let r=e.parent.inlineContent?new W(e):Ro(e.node(0),e.parent,e.pos,e.index(),n,o);if(r)return r;for(let i=e.depth-1;i>=0;i--){let s=n<0?Ro(e.node(0),e.node(i),e.before(i+1),e.index(i),n,o):Ro(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,n,o);if(s)return s}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new ot(e.node(0))}static atStart(e){return Ro(e,e,0,0,1)||new ot(e)}static atEnd(e){return Ro(e,e,e.content.size,e.childCount,-1)||new ot(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let o=Oc[n.type];if(!o)throw new RangeError(`No selection type ${n.type} defined`);return o.fromJSON(e,n)}static jsonID(e,n){if(e in Oc)throw new RangeError("Duplicate use of selection JSON ID "+e);return Oc[e]=n,n.prototype.jsonID=e,n}getBookmark(){return W.between(this.$anchor,this.$head).getBookmark()}}Z.prototype.visible=!0;class J${constructor(e,n){this.$from=e,this.$to=n}}let uh=!1;function dh(t){!uh&&!t.parent.inlineContent&&(uh=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class W extends Z{constructor(e,n=e){dh(e),dh(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let o=e.resolve(n.map(this.head));if(!o.parent.inlineContent)return Z.near(o);let r=e.resolve(n.map(this.anchor));return new W(r.parent.inlineContent?r:o,o)}replace(e,n=I.empty){if(super.replace(e,n),n==I.empty){let o=this.$from.marksAcross(this.$to);o&&e.ensureMarks(o)}}eq(e){return e instanceof W&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new js(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new W(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,o=n){let r=e.resolve(n);return new this(r,o==n?r:e.resolve(o))}static between(e,n,o){let r=e.pos-n.pos;if((!o||r)&&(o=r>=0?1:-1),!n.parent.inlineContent){let i=Z.findFrom(n,o,!0)||Z.findFrom(n,-o,!0);if(i)n=i.$head;else return Z.near(n,o)}return e.parent.inlineContent||(r==0?e=n:(e=(Z.findFrom(e,-o,!0)||Z.findFrom(e,o,!0)).$anchor,e.pos<n.pos!=r<0&&(e=n))),new W(e,n)}}Z.jsonID("text",W);class js{constructor(e,n){this.anchor=e,this.head=n}map(e){return new js(e.map(this.anchor),e.map(this.head))}resolve(e){return W.between(e.resolve(this.anchor),e.resolve(this.head))}}class V extends Z{constructor(e){let n=e.nodeAfter,o=e.node(0).resolve(e.pos+n.nodeSize);super(e,o),this.node=n}map(e,n){let{deleted:o,pos:r}=n.mapResult(this.anchor),i=e.resolve(r);return o?Z.near(i):new V(i)}content(){return new I(R.from(this.node),0,0)}eq(e){return e instanceof V&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Rc(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new V(e.resolve(n.anchor))}static create(e,n){return new V(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}V.prototype.visible=!1,Z.jsonID("node",V);class Rc{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:o}=e.mapResult(this.anchor);return n?new js(o,o):new Rc(o)}resolve(e){let n=e.resolve(this.anchor),o=n.nodeAfter;return o&&V.isSelectable(o)?new V(n):Z.near(n)}}class ot extends Z{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=I.empty){if(n==I.empty){e.delete(0,e.doc.content.size);let o=Z.atStart(e.doc);o.eq(e.selection)||e.setSelection(o)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new ot(e)}map(e){return new ot(e)}eq(e){return e instanceof ot}getBookmark(){return K$}}Z.jsonID("all",ot);const K$={map(){return this},resolve(t){return new ot(t)}};function Ro(t,e,n,o,r,i=!1){if(e.inlineContent)return W.create(t,n);for(let s=o-(r>0?0:1);r>0?s<e.childCount:s>=0;s+=r){let a=e.child(s);if(a.isAtom){if(!i&&V.isSelectable(a))return V.create(t,n-(r<0?a.nodeSize:0))}else{let l=Ro(t,a,n+r,r<0?a.childCount:0,r,i);if(l)return l}n+=a.nodeSize*r}return null}function mh(t,e,n){let o=t.steps.length-1;if(o<e)return;let r=t.steps[o];if(!(r instanceof Se||r instanceof $e))return;let i=t.mapping.maps[o],s;i.forEach((a,l,c,u)=>{s==null&&(s=u)}),t.setSelection(Z.near(t.doc.resolve(s),n))}const fh=1,Ps=2,ph=4;class W$ extends ch{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|fh)&~Ps,this.storedMarks=null,this}get selectionSet(){return(this.updated&fh)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Ps,this}ensureMarks(e){return re.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Ps)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~Ps,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let o=this.selection;return n&&(e=e.mark(this.storedMarks||(o.empty?o.$from.marks():o.$from.marksAcross(o.$to)||re.none))),o.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,o){let r=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(o==null&&(o=n),!e)return this.deleteRange(n,o);let i=this.storedMarks;if(!i){let s=this.doc.resolve(n);i=o==n?s.marks():s.marksAcross(this.doc.resolve(o))}return this.replaceRangeWith(n,o,r.text(e,i)),!this.selection.empty&&this.selection.to==n+e.length&&this.setSelection(Z.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=ph,this}get scrolledIntoView(){return(this.updated&ph)>0}}function hh(t,e){return!e||!t?t:t.bind(e)}class zr{constructor(e,n,o){this.name=e,this.init=hh(n.init,o),this.apply=hh(n.apply,o)}}const q$=[new zr("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new zr("selection",{init(t,e){return t.selection||Z.atStart(e.doc)},apply(t){return t.selection}}),new zr("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,o){return o.selection.$cursor?t.storedMarks:null}}),new zr("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class Dc{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=q$.slice(),n&&n.forEach(o=>{if(this.pluginsByKey[o.key])throw new RangeError("Adding different instances of a keyed plugin ("+o.key+")");this.plugins.push(o),this.pluginsByKey[o.key]=o,o.spec.state&&this.fields.push(new zr(o.key,o.spec.state,o))})}}class Do{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let o=0;o<this.config.plugins.length;o++)if(o!=n){let r=this.config.plugins[o];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],o=this.applyInner(e),r=null;for(;;){let i=!1;for(let s=0;s<this.config.plugins.length;s++){let a=this.config.plugins[s];if(a.spec.appendTransaction){let l=r?r[s].n:0,c=r?r[s].state:this,u=l<n.length&&a.spec.appendTransaction.call(a,l?n.slice(l):n,c,o);if(u&&o.filterTransaction(u,s)){if(u.setMeta("appendedTransaction",e),!r){r=[];for(let d=0;d<this.config.plugins.length;d++)r.push(d<s?{state:o,n:n.length}:{state:this,n:0})}n.push(u),o=o.applyInner(u),i=!0}r&&(r[s]={state:o,n:n.length})}}if(!i)return{state:o,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new Do(this.config),o=this.config.fields;for(let r=0;r<o.length;r++){let i=o[r];n[i.name]=i.apply(e,this[i.name],this,n)}return n}get tr(){return new W$(this)}static create(e){let n=new Dc(e.doc?e.doc.type.schema:e.schema,e.plugins),o=new Do(n);for(let r=0;r<n.fields.length;r++)o[n.fields[r].name]=n.fields[r].init(e,o);return o}reconfigure(e){let n=new Dc(this.schema,e.plugins),o=n.fields,r=new Do(n);for(let i=0;i<o.length;i++){let s=o[i].name;r[s]=this.hasOwnProperty(s)?this[s]:o[i].init(e,r)}return r}toJSON(e){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(o=>o.toJSON())),e&&typeof e=="object")for(let o in e){if(o=="doc"||o=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[o],i=r.spec.state;i&&i.toJSON&&(n[o]=i.toJSON.call(r,this[r.key]))}return n}static fromJSON(e,n,o){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let r=new Dc(e.schema,e.plugins),i=new Do(r);return r.fields.forEach(s=>{if(s.name=="doc")i.doc=sn.fromJSON(e.schema,n.doc);else if(s.name=="selection")i.selection=Z.fromJSON(i.doc,n.selection);else if(s.name=="storedMarks")n.storedMarks&&(i.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(o)for(let a in o){let l=o[a],c=l.spec.state;if(l.key==s.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,a)){i[s.name]=c.fromJSON.call(l,e,n[a],i);return}}i[s.name]=s.init(e,i)}}),i}}function gh(t,e,n){for(let o in t){let r=t[o];r instanceof Function?r=r.bind(e):o=="handleDOMEvents"&&(r=gh(r,e,{})),n[o]=r}return n}class Ke{constructor(e){this.spec=e,this.props={},e.props&&gh(e.props,this,this.props),this.key=e.key?e.key.key:yh("plugin")}getState(e){return e[this.key]}}const Tc=Object.create(null);function yh(t){return t in Tc?t+"$"+ ++Tc[t]:(Tc[t]=0,t+"$")}class kt{constructor(e="key"){this.key=yh(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Ae=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},To=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let Mc=null;const Ut=function(t,e,n){let o=Mc||(Mc=document.createRange());return o.setEnd(t,n??t.nodeValue.length),o.setStart(t,e||0),o},G$=function(){Mc=null},qn=function(t,e,n,o){return n&&(bh(t,e,n,o,-1)||bh(t,e,n,o,1))},Q$=/^(img|br|input|textarea|hr)$/i;function bh(t,e,n,o,r){for(var i;;){if(t==n&&e==o)return!0;if(e==(r<0?0:at(t))){let s=t.parentNode;if(!s||s.nodeType!=1||Fr(t)||Q$.test(t.nodeName)||t.contentEditable=="false")return!1;e=Ae(t)+(r<0?0:1),t=s}else if(t.nodeType==1){let s=t.childNodes[e+(r<0?-1:0)];if(s.nodeType==1&&s.contentEditable=="false")if(!((i=s.pmViewDesc)===null||i===void 0)&&i.ignoreForSelection)e+=r;else return!1;else t=s,e=r<0?at(t):0}else return!1}}function at(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Z$(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=at(t)}else if(t.parentNode&&!Fr(t))e=Ae(t),t=t.parentNode;else return null}}function X$(t,e){for(;;){if(t.nodeType==3&&e<t.nodeValue.length)return t;if(t.nodeType==1&&e<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[e],e=0}else if(t.parentNode&&!Fr(t))e=Ae(t)+1,t=t.parentNode;else return null}}function e1(t,e,n){for(let o=e==0,r=e==at(t);o||r;){if(t==n)return!0;let i=Ae(t);if(t=t.parentNode,!t)return!1;o=o&&i==0,r=r&&i==at(t)}}function Fr(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const Is=function(t){return t.focusNode&&qn(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function Gn(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function t1(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function n1(t,e,n){if(t.caretPositionFromPoint)try{let o=t.caretPositionFromPoint(e,n);if(o)return{node:o.offsetNode,offset:Math.min(at(o.offsetNode),o.offset)}}catch{}if(t.caretRangeFromPoint){let o=t.caretRangeFromPoint(e,n);if(o)return{node:o.startContainer,offset:Math.min(at(o.startContainer),o.startOffset)}}}const jc=typeof navigator<"u"?navigator:null,wh=typeof document<"u"?document:null,rt=jc&&jc.userAgent||"",Pc=/Edge\/(\d+)/.exec(rt),vh=/MSIE \d/.exec(rt),Ic=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(rt),We=!!(vh||Ic||Pc),un=vh?document.documentMode:Ic?+Ic[1]:Pc?+Pc[1]:0,lt=!We&&/gecko\/(\d+)/i.test(rt);lt&&+(/Firefox\/(\d+)/.exec(rt)||[0,0])[1];const Lc=!We&&/Chrome\/(\d+)/.exec(rt),Oe=!!Lc,Sh=Lc?+Lc[1]:0,Pe=!We&&!!jc&&/Safari\//.test(rt)&&!/Chrome\//.test(rt)&&!/Chromium\//.test(rt),Mo=Pe&&/Mobile\/\w+/.test(rt),ct=Mo||/Macintosh/.test(rt),$h=/Windows/.test(rt),Yt=/Android \d/.test(rt),Br=!!wh&&"webkitFontSmoothing"in wh.documentElement.style,o1=Br?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function r1(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function Jt(t,e){return typeof t=="number"?t:t[e]}function i1(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,o=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*o}}function kh(t,e,n){let o=t.someProp("scrollThreshold")||0,r=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument;for(let s=n||t.dom;s;){if(s.nodeType!=1){s=To(s);continue}let a=s,l=a==i.body,c=l?r1(i):i1(a),u=0,d=0;if(e.top<c.top+Jt(o,"top")?d=-(c.top-e.top+Jt(r,"top")):e.bottom>c.bottom-Jt(o,"bottom")&&(d=e.bottom-e.top>c.bottom-c.top?e.top+Jt(r,"top")-c.top:e.bottom-c.bottom+Jt(r,"bottom")),e.left<c.left+Jt(o,"left")?u=-(c.left-e.left+Jt(r,"left")):e.right>c.right-Jt(o,"right")&&(u=e.right-c.right+Jt(r,"right")),u||d)if(l)i.defaultView.scrollBy(u,d);else{let f=a.scrollLeft,p=a.scrollTop;d&&(a.scrollTop+=d),u&&(a.scrollLeft+=u);let g=a.scrollLeft-f,h=a.scrollTop-p;e={left:e.left-g,top:e.top-h,right:e.right-g,bottom:e.bottom-h}}let m=l?"fixed":getComputedStyle(s).position;if(/^(fixed|sticky)$/.test(m))break;s=m=="absolute"?s.offsetParent:To(s)}}function s1(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),o,r;for(let i=(e.left+e.right)/2,s=n+1;s<Math.min(innerHeight,e.bottom);s+=5){let a=t.root.elementFromPoint(i,s);if(!a||a==t.dom||!t.dom.contains(a))continue;let l=a.getBoundingClientRect();if(l.top>=n-20){o=a,r=l.top;break}}return{refDOM:o,refTop:r,stack:xh(t.dom)}}function xh(t){let e=[],n=t.ownerDocument;for(let o=t;o&&(e.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),t!=n);o=To(o));return e}function a1({refDOM:t,refTop:e,stack:n}){let o=t?t.getBoundingClientRect().top:0;Ch(n,o==0?0:o-e)}function Ch(t,e){for(let n=0;n<t.length;n++){let{dom:o,top:r,left:i}=t[n];o.scrollTop!=r+e&&(o.scrollTop=r+e),o.scrollLeft!=i&&(o.scrollLeft=i)}}let jo=null;function l1(t){if(t.setActive)return t.setActive();if(jo)return t.focus(jo);let e=xh(t);t.focus(jo==null?{get preventScroll(){return jo={preventScroll:!0},!0}}:void 0),jo||(jo=!1,Ch(e,0))}function Eh(t,e){let n,o=2e8,r,i=0,s=e.top,a=e.top,l,c;for(let u=t.firstChild,d=0;u;u=u.nextSibling,d++){let m;if(u.nodeType==1)m=u.getClientRects();else if(u.nodeType==3)m=Ut(u).getClientRects();else continue;for(let f=0;f<m.length;f++){let p=m[f];if(p.top<=s&&p.bottom>=a){s=Math.max(p.bottom,s),a=Math.min(p.top,a);let g=p.left>e.left?p.left-e.left:p.right<e.left?e.left-p.right:0;if(g<o){n=u,o=g,r=g&&n.nodeType==3?{left:p.right<e.left?p.right:p.left,top:e.top}:e,u.nodeType==1&&g&&(i=d+(e.left>=(p.left+p.right)/2?1:0));continue}}else p.top>e.top&&!l&&p.left<=e.left&&p.right>=e.left&&(l=u,c={left:Math.max(p.left,Math.min(p.right,e.left)),top:p.top});!n&&(e.left>=p.right&&e.top>=p.top||e.left>=p.left&&e.top>=p.bottom)&&(i=d+1)}}return!n&&l&&(n=l,r=c,o=0),n&&n.nodeType==3?c1(n,r):!n||o&&n.nodeType==1?{node:t,offset:i}:Eh(n,r)}function c1(t,e){let n=t.nodeValue.length,o=document.createRange(),r;for(let i=0;i<n;i++){o.setEnd(t,i+1),o.setStart(t,i);let s=dn(o,1);if(s.top!=s.bottom&&zc(e,s)){r={node:t,offset:i+(e.left>=(s.left+s.right)/2?1:0)};break}}return o.detach(),r||{node:t,offset:0}}function zc(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function u1(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function d1(t,e,n){let{node:o,offset:r}=Eh(e,n),i=-1;if(o.nodeType==1&&!o.firstChild){let s=o.getBoundingClientRect();i=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return t.docView.posFromDOM(o,r,i)}function m1(t,e,n,o){let r=-1;for(let i=e,s=!1;i!=t.dom;){let a=t.docView.nearestDesc(i,!0),l;if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent||!a.contentDOM)&&((l=a.dom.getBoundingClientRect()).width||l.height)&&(a.node.isBlock&&a.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(a.dom.nodeName)&&(!s&&l.left>o.left||l.top>o.top?r=a.posBefore:(!s&&l.right<o.left||l.bottom<o.top)&&(r=a.posAfter),s=!0),!a.contentDOM&&r<0&&!a.node.isText))return(a.node.isBlock?o.top<(l.top+l.bottom)/2:o.left<(l.left+l.right)/2)?a.posBefore:a.posAfter;i=a.dom.parentNode}return r>-1?r:t.docView.posFromDOM(e,n,-1)}function Nh(t,e,n){let o=t.childNodes.length;if(o&&n.top<n.bottom)for(let r=Math.max(0,Math.min(o-1,Math.floor(o*(e.top-n.top)/(n.bottom-n.top))-2)),i=r;;){let s=t.childNodes[i];if(s.nodeType==1){let a=s.getClientRects();for(let l=0;l<a.length;l++){let c=a[l];if(zc(e,c))return Nh(s,e,c)}}if((i=(i+1)%o)==r)break}return t}function f1(t,e){let n=t.dom.ownerDocument,o,r=0,i=n1(n,e.left,e.top);i&&({node:o,offset:r}=i);let s=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),a;if(!s||!t.dom.contains(s.nodeType!=1?s.parentNode:s)){let c=t.dom.getBoundingClientRect();if(!zc(e,c)||(s=Nh(t.dom,e,c),!s))return null}if(Pe)for(let c=s;o&&c;c=To(c))c.draggable&&(o=void 0);if(s=u1(s,e),o){if(lt&&o.nodeType==1&&(r=Math.min(r,o.childNodes.length),r<o.childNodes.length)){let u=o.childNodes[r],d;u.nodeName=="IMG"&&(d=u.getBoundingClientRect()).right<=e.left&&d.bottom>e.top&&r++}let c;Br&&r&&o.nodeType==1&&(c=o.childNodes[r-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=e.top&&r--,o==t.dom&&r==o.childNodes.length-1&&o.lastChild.nodeType==1&&e.top>o.lastChild.getBoundingClientRect().bottom?a=t.state.doc.content.size:(r==0||o.nodeType!=1||o.childNodes[r-1].nodeName!="BR")&&(a=m1(t,o,r,e))}a==null&&(a=d1(t,s,e));let l=t.docView.nearestDesc(s,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function Ah(t){return t.top<t.bottom||t.left<t.right}function dn(t,e){let n=t.getClientRects();if(n.length){let o=n[e<0?0:n.length-1];if(Ah(o))return o}return Array.prototype.find.call(n,Ah)||t.getBoundingClientRect()}const p1=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Oh(t,e,n){let{node:o,offset:r,atom:i}=t.docView.domFromPos(e,n<0?-1:1),s=Br||lt;if(o.nodeType==3)if(s&&(p1.test(o.nodeValue)||(n<0?!r:r==o.nodeValue.length))){let l=dn(Ut(o,r,r),n);if(lt&&r&&/\s/.test(o.nodeValue[r-1])&&r<o.nodeValue.length){let c=dn(Ut(o,r-1,r-1),-1);if(c.top==l.top){let u=dn(Ut(o,r,r+1),-1);if(u.top!=l.top)return Hr(u,u.left<c.left)}}return l}else{let l=r,c=r,u=n<0?1:-1;return n<0&&!r?(c++,u=-1):n>=0&&r==o.nodeValue.length?(l--,u=1):n<0?l--:c++,Hr(dn(Ut(o,l,c),u),u<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&r&&(n<0||r==at(o))){let l=o.childNodes[r-1];if(l.nodeType==1)return Fc(l.getBoundingClientRect(),!1)}if(i==null&&r<at(o)){let l=o.childNodes[r];if(l.nodeType==1)return Fc(l.getBoundingClientRect(),!0)}return Fc(o.getBoundingClientRect(),n>=0)}if(i==null&&r&&(n<0||r==at(o))){let l=o.childNodes[r-1],c=l.nodeType==3?Ut(l,at(l)-(s?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(c)return Hr(dn(c,1),!1)}if(i==null&&r<at(o)){let l=o.childNodes[r];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let c=l?l.nodeType==3?Ut(l,0,s?0:1):l.nodeType==1?l:null:null;if(c)return Hr(dn(c,-1),!0)}return Hr(dn(o.nodeType==3?Ut(o):o,-n),n>=0)}function Hr(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function Fc(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function Rh(t,e,n){let o=t.state,r=t.root.activeElement;o!=e&&t.updateState(e),r!=t.dom&&t.focus();try{return n()}finally{o!=e&&t.updateState(o),r!=t.dom&&r&&r.focus()}}function h1(t,e,n){let o=e.selection,r=n=="up"?o.$from:o.$to;return Rh(t,e,()=>{let{node:i}=t.docView.domFromPos(r.pos,n=="up"?-1:1);for(;;){let a=t.docView.nearestDesc(i,!0);if(!a)break;if(a.node.isBlock){i=a.contentDOM||a.dom;break}i=a.dom.parentNode}let s=Oh(t,r.pos,1);for(let a=i.firstChild;a;a=a.nextSibling){let l;if(a.nodeType==1)l=a.getClientRects();else if(a.nodeType==3)l=Ut(a,0,a.nodeValue.length).getClientRects();else continue;for(let c=0;c<l.length;c++){let u=l[c];if(u.bottom>u.top+1&&(n=="up"?s.top-u.top>(u.bottom-s.top)*2:u.bottom-s.bottom>(s.bottom-u.top)*2))return!1}}return!0})}const g1=/[\u0590-\u08ac]/;function y1(t,e,n){let{$head:o}=e.selection;if(!o.parent.isTextblock)return!1;let r=o.parentOffset,i=!r,s=r==o.parent.content.size,a=t.domSelection();return a?!g1.test(o.parent.textContent)||!a.modify?n=="left"||n=="backward"?i:s:Rh(t,e,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:d}=t.domSelectionRange(),m=a.caretBidiLevel;a.modify("move",n,"character");let f=o.depth?t.docView.domAfterPos(o.before()):t.dom,{focusNode:p,focusOffset:g}=t.domSelectionRange(),h=p&&!f.contains(p.nodeType==1?p:p.parentNode)||l==p&&c==g;try{a.collapse(u,d),l&&(l!=u||c!=d)&&a.extend&&a.extend(l,c)}catch{}return m!=null&&(a.caretBidiLevel=m),h}):o.pos==o.start()||o.pos==o.end()}let Dh=null,Th=null,Mh=!1;function b1(t,e,n){return Dh==e&&Th==n?Mh:(Dh=e,Th=n,Mh=n=="up"||n=="down"?h1(t,e,n):y1(t,e,n))}const ut=0,jh=1,Qn=2,Rt=3;class Vr{constructor(e,n,o,r){this.parent=e,this.children=n,this.dom=o,this.contentDOM=r,this.dirty=ut,o.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,o){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n<this.children.length;n++)e+=this.children[n].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let n=0,o=this.posAtStart;;n++){let r=this.children[n];if(r==e)return o;o+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,n,o){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(o<0){let i,s;if(e==this.contentDOM)i=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(s)+s.size:this.posAtStart}else{let i,s;if(e==this.contentDOM)i=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(s):this.posAtEnd}let r;if(e==this.dom&&this.contentDOM)r=n>Ae(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let i=e;;i=i.parentNode){if(i==this.dom){r=!1;break}if(i.previousSibling)break}if(r==null&&n==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){r=!0;break}if(i.nextSibling)break}}return r??o>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let o=!0,r=e;r;r=r.parentNode){let i=this.getDesc(r),s;if(i&&(!n||i.node))if(o&&(s=i.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))o=!1;else return i}}getDesc(e){let n=e.pmViewDesc;for(let o=n;o;o=o.parent)if(o==this)return n}posFromDOM(e,n,o){for(let r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,n,o)}return-1}descAt(e){for(let n=0,o=0;n<this.children.length;n++){let r=this.children[n],i=o+r.size;if(o==e&&i!=o){for(;!r.border&&r.children.length;)for(let s=0;s<r.children.length;s++){let a=r.children[s];if(a.size){r=a;break}}return r}if(e<i)return r.descAt(e-o-r.border);o=i}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let o=0,r=0;for(let i=0;o<this.children.length;o++){let s=this.children[o],a=i+s.size;if(a>e||s instanceof Lh){r=e-i;break}i=a}if(r)return this.children[o].domFromPos(r-this.children[o].border,n);for(let i;o&&!(i=this.children[o-1]).size&&i instanceof Ph&&i.side>=0;o--);if(n<=0){let i,s=!0;for(;i=o?this.children[o-1]:null,!(!i||i.dom.parentNode==this.contentDOM);o--,s=!1);return i&&n&&s&&!i.border&&!i.domAtom?i.domFromPos(i.size,n):{node:this.contentDOM,offset:i?Ae(i.dom)+1:0}}else{let i,s=!0;for(;i=o<this.children.length?this.children[o]:null,!(!i||i.dom.parentNode==this.contentDOM);o++,s=!1);return i&&s&&!i.border&&!i.domAtom?i.domFromPos(0,n):{node:this.contentDOM,offset:i?Ae(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,o=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let s=o,a=0;;a++){let l=this.children[a],c=s+l.size;if(r==-1&&e<=c){let u=s+l.border;if(e>=u&&n<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,u);e=s;for(let d=a;d>0;d--){let m=this.children[d-1];if(m.size&&m.dom.parentNode==this.contentDOM&&!m.emptyChildAt(1)){r=Ae(m.dom)+1;break}e-=m.size}r==-1&&(r=0)}if(r>-1&&(c>n||a==this.children.length-1)){n=c;for(let u=a+1;u<this.children.length;u++){let d=this.children[u];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(-1)){i=Ae(d.dom);break}n+=d.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=c}return{node:this.contentDOM,from:e,to:n,fromOffset:r,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:o}=this.domFromPos(e,0);if(n.nodeType!=1||o==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[o]}setSelection(e,n,o,r=!1){let i=Math.min(e,n),s=Math.max(e,n);for(let f=0,p=0;f<this.children.length;f++){let g=this.children[f],h=p+g.size;if(i>p&&s<h)return g.setSelection(e-p-g.border,n-p-g.border,o,r);p=h}let a=this.domFromPos(e,e?-1:1),l=n==e?a:this.domFromPos(n,n?-1:1),c=o.root.getSelection(),u=o.domSelectionRange(),d=!1;if((lt||Pe)&&e==n){let{node:f,offset:p}=a;if(f.nodeType==3){if(d=!!(p&&f.nodeValue[p-1]==`
25
- `),d&&p==f.nodeValue.length)for(let g=f,h;g;g=g.parentNode){if(h=g.nextSibling){h.nodeName=="BR"&&(a=l={node:h.parentNode,offset:Ae(h)+1});break}let y=g.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{let g=f.childNodes[p-1];d=g&&(g.nodeName=="BR"||g.contentEditable=="false")}}if(lt&&u.focusNode&&u.focusNode!=l.node&&u.focusNode.nodeType==1){let f=u.focusNode.childNodes[u.focusOffset];f&&f.contentEditable=="false"&&(r=!0)}if(!(r||d&&Pe)&&qn(a.node,a.offset,u.anchorNode,u.anchorOffset)&&qn(l.node,l.offset,u.focusNode,u.focusOffset))return;let m=!1;if((c.extend||e==n)&&!(d&&lt)){c.collapse(a.node,a.offset);try{e!=n&&c.extend(l.node,l.offset),m=!0}catch{}}if(!m){if(e>n){let p=a;a=l,l=p}let f=document.createRange();f.setEnd(l.node,l.offset),f.setStart(a.node,a.offset),c.removeAllRanges(),c.addRange(f)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let o=0,r=0;r<this.children.length;r++){let i=this.children[r],s=o+i.size;if(o==s?e<=s&&n>=o:e<s&&n>o){let a=o+i.border,l=s-i.border;if(e>=a&&n<=l){this.dirty=e==o||n==s?Qn:jh,e==a&&n==l&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=Rt:i.markDirty(e-a,n-a);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Qn:Rt}o=s}this.dirty=Qn}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let o=e==1?Qn:jh;n.dirty<o&&(n.dirty=o)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class Ph extends Vr{constructor(e,n,o,r){let i,s=n.type.toDOM;if(typeof s=="function"&&(s=s(o,()=>{if(!i)return r;if(i.parent)return i.parent.posBeforeChild(i)})),!n.type.spec.raw){if(s.nodeType!=1){let a=document.createElement("span");a.appendChild(s),s=a}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=n,this.widget=n,i=this}matchesWidget(e){return this.dirty==ut&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class w1 extends Vr{constructor(e,n,o,r){super(e,[],n,null),this.textDOM=o,this.text=r}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class Zn extends Vr{constructor(e,n,o,r,i){super(e,[],o,r),this.mark=n,this.spec=i}static create(e,n,o,r){let i=r.nodeViews[n.type.name],s=i&&i(n,r,o);return(!s||!s.dom)&&(s=Kn.renderSpec(document,n.type.spec.toDOM(n,o),null,n.attrs)),new Zn(e,n,s.dom,s.contentDOM||s.dom,s)}parseRule(){return this.dirty&Rt||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Rt&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=ut){let o=this.parent;for(;!o.node;)o=o.parent;o.dirty<this.dirty&&(o.dirty=this.dirty),this.dirty=ut}}slice(e,n,o){let r=Zn.create(this.parent,this.mark,!0,o),i=this.children,s=this.size;n<s&&(i=Hc(i,n,s,o)),e>0&&(i=Hc(i,0,e,o));for(let a=0;a<i.length;a++)i[a].parent=r;return r.children=i,r}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class mn extends Vr{constructor(e,n,o,r,i,s,a,l,c){super(e,[],i,s),this.node=n,this.outerDeco=o,this.innerDeco=r,this.nodeDOM=a}static create(e,n,o,r,i,s){let a=i.nodeViews[n.type.name],l,c=a&&a(n,i,()=>{if(!l)return s;if(l.parent)return l.parent.posBeforeChild(l)},o,r),u=c&&c.dom,d=c&&c.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:d}=Kn.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let m=u;return u=Bh(u,o,n),c?l=new v1(e,n,o,r,u,d||null,m,c,i,s+1):n.isText?new Ls(e,n,o,r,u,m,i):new mn(e,n,o,r,u,d||null,m,i,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let o=this.children[n];if(this.dom.contains(o.dom.parentNode)){e.contentElement=o.dom.parentNode;break}}e.contentElement||(e.getContent=()=>R.empty)}return e}matchesNode(e,n,o){return this.dirty==ut&&e.eq(this.node)&&zs(n,this.outerDeco)&&o.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let o=this.node.inlineContent,r=n,i=e.composing?this.localCompositionInfo(e,n):null,s=i&&i.pos>-1?i:null,a=i&&i.pos<0,l=new $1(this,s&&s.node,e);C1(this.node,this.innerDeco,(c,u,d)=>{c.spec.marks?l.syncToMarks(c.spec.marks,o,e,u):c.type.side>=0&&!d&&l.syncToMarks(u==this.node.childCount?re.none:this.node.child(u).marks,o,e,u),l.placeWidget(c,e,r)},(c,u,d,m)=>{l.syncToMarks(c.marks,o,e,m);let f;l.findNodeMatch(c,u,d,m)||a&&e.state.selection.from>r&&e.state.selection.to<r+c.nodeSize&&(f=l.findIndexWithChild(i.node))>-1&&l.updateNodeAt(c,u,d,f,e)||l.updateNextNode(c,u,d,e,m,r)||l.addNode(c,u,d,e,r),r+=c.nodeSize}),l.syncToMarks([],o,e,0),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==Qn)&&(s&&this.protectLocalComposition(e,s),zh(this.contentDOM,this.children,e),Mo&&E1(this.dom))}localCompositionInfo(e,n){let{from:o,to:r}=e.state.selection;if(!(e.state.selection instanceof W)||o<n||r>n+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let s=i.nodeValue,a=N1(this.node.content,s,o-n,r-n);return a<0?null:{node:i,pos:a,text:s}}else return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:o,text:r}){if(this.getDesc(n))return;let i=n;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let s=new w1(this,i,n,r);e.input.compositionNodes.push(s),this.children=Hc(this.children,o,o+r.length,e,s)}update(e,n,o,r){return this.dirty==Rt||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,o,r),!0)}updateInner(e,n,o,r){this.updateOuterDeco(n),this.node=e,this.innerDeco=o,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=ut}updateOuterDeco(e){if(zs(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,o=this.dom;this.dom=Fh(this.dom,this.nodeDOM,Bc(this.outerDeco,this.node,n),Bc(e,this.node,n)),this.dom!=o&&(o.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function Ih(t,e,n,o,r){Bh(o,e,t);let i=new mn(void 0,t,e,n,o,o,o,r,0);return i.contentDOM&&i.updateChildren(r,0),i}class Ls extends mn{constructor(e,n,o,r,i,s,a){super(e,n,o,r,i,null,s,a,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,o,r){return this.dirty==Rt||this.dirty!=ut&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=ut||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=ut,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,o){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,o)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,o){let r=this.node.cut(e,n),i=document.createTextNode(r.text);return new Ls(this.parent,r,this.outerDeco,this.innerDeco,i,i,o)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Rt)}get domAtom(){return!1}isText(e){return this.node.text==e}}class Lh extends Vr{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==ut&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class v1 extends mn{constructor(e,n,o,r,i,s,a,l,c,u){super(e,n,o,r,i,s,a,c,u),this.spec=l}update(e,n,o,r){if(this.dirty==Rt)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,n,o);return i&&this.updateInner(e,n,o,r),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,o,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,o,r){this.spec.setSelection?this.spec.setSelection(e,n,o.root):super.setSelection(e,n,o,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function zh(t,e,n){let o=t.firstChild,r=!1;for(let i=0;i<e.length;i++){let s=e[i],a=s.dom;if(a.parentNode==t){for(;a!=o;)o=Hh(o),r=!0;o=o.nextSibling}else r=!0,t.insertBefore(a,o);if(s instanceof Zn){let l=o?o.previousSibling:t.lastChild;zh(s.contentDOM,s.children,n),o=l?l.nextSibling:t.firstChild}}for(;o;)o=Hh(o),r=!0;r&&n.trackWrites==t&&(n.trackWrites=null)}const _r=function(t){t&&(this.nodeName=t)};_r.prototype=Object.create(null);const Xn=[new _r];function Bc(t,e,n){if(t.length==0)return Xn;let o=n?Xn[0]:new _r,r=[o];for(let i=0;i<t.length;i++){let s=t[i].type.attrs;if(s){s.nodeName&&r.push(o=new _r(s.nodeName));for(let a in s){let l=s[a];l!=null&&(n&&r.length==1&&r.push(o=new _r(e.isInline?"span":"div")),a=="class"?o.class=(o.class?o.class+" ":"")+l:a=="style"?o.style=(o.style?o.style+";":"")+l:a!="nodeName"&&(o[a]=l))}}}return r}function Fh(t,e,n,o){if(n==Xn&&o==Xn)return e;let r=e;for(let i=0;i<o.length;i++){let s=o[i],a=n[i];if(i){let l;a&&a.nodeName==s.nodeName&&r!=t&&(l=r.parentNode)&&l.nodeName.toLowerCase()==s.nodeName||(l=document.createElement(s.nodeName),l.pmIsDeco=!0,l.appendChild(r),a=Xn[0]),r=l}S1(r,a||Xn[0],s)}return r}function S1(t,e,n){for(let o in e)o!="class"&&o!="style"&&o!="nodeName"&&!(o in n)&&t.removeAttribute(o);for(let o in n)o!="class"&&o!="style"&&o!="nodeName"&&n[o]!=e[o]&&t.setAttribute(o,n[o]);if(e.class!=n.class){let o=e.class?e.class.split(" ").filter(Boolean):[],r=n.class?n.class.split(" ").filter(Boolean):[];for(let i=0;i<o.length;i++)r.indexOf(o[i])==-1&&t.classList.remove(o[i]);for(let i=0;i<r.length;i++)o.indexOf(r[i])==-1&&t.classList.add(r[i]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let o=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=o.exec(e.style);)t.style.removeProperty(r[1])}n.style&&(t.style.cssText+=n.style)}}function Bh(t,e,n){return Fh(t,t,Xn,Bc(e,n,t.nodeType!=1))}function zs(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function Hh(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class $1{constructor(e,n,o){this.lock=n,this.view=o,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=k1(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let o=e;o<n;o++)this.top.children[o].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,o,r){let i=0,s=this.stack.length>>1,a=Math.min(s,e.length);for(;i<a&&(i==s-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&e[i].type.spec.spanning!==!1;)i++;for(;i<s;)this.destroyRest(),this.top.dirty=ut,this.index=this.stack.pop(),this.top=this.stack.pop(),s--;for(;s<e.length;){this.stack.push(this.top,this.index+1);let l=-1,c=this.top.children.length;r<this.preMatch.index&&(c=Math.min(this.index+3,c));for(let u=this.index;u<c;u++){let d=this.top.children[u];if(d.matchesMark(e[s])&&!this.isLocked(d.dom)){l=u;break}}if(l>-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let u=Zn.create(this.top,e[s],n,o);this.top.children.splice(this.index,0,u),this.top=u,this.changed=!0}this.index=0,s++}}findNodeMatch(e,n,o,r){let i=-1,s;if(r>=this.preMatch.index&&(s=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&s.matchesNode(e,n,o))i=this.top.children.indexOf(s,this.index);else for(let a=this.index,l=Math.min(this.top.children.length,a+5);a<l;a++){let c=this.top.children[a];if(c.matchesNode(e,n,o)&&!this.preMatch.matched.has(c)){i=a;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,n,o,r,i){let s=this.top.children[r];return s.dirty==Rt&&s.dom==s.contentDOM&&(s.dirty=Qn),s.update(e,n,o,i)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(e){for(;;){let n=e.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let o=e.pmViewDesc;if(o){for(let r=this.index;r<this.top.children.length;r++)if(this.top.children[r]==o)return r}return-1}e=n}}updateNextNode(e,n,o,r,i,s){for(let a=this.index;a<this.top.children.length;a++){let l=this.top.children[a];if(l instanceof mn){let c=this.preMatch.matched.get(l);if(c!=null&&c!=i)return!1;let u=l.dom,d,m=this.isLocked(u)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=Rt&&zs(n,l.outerDeco));if(!m&&l.update(e,n,o,r))return this.destroyBetween(this.index,a),l.dom!=u&&(this.changed=!0),this.index++,!0;if(!m&&(d=this.recreateWrapper(l,e,n,o,r,s)))return this.destroyBetween(this.index,a),this.top.children[this.index]=d,d.contentDOM&&(d.dirty=Qn,d.updateChildren(r,s+1),d.dirty=ut),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,o,r,i,s){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content)||!zs(o,e.outerDeco)||!r.eq(e.innerDeco))return null;let a=mn.create(this.top,n,o,r,i,s);if(a.contentDOM){a.children=e.children,e.children=[];for(let l of a.children)l.parent=a}return e.destroy(),a}addNode(e,n,o,r,i){let s=mn.create(this.top,e,n,o,r,i);s.contentDOM&&s.updateChildren(r,i+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(e,n,o){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(r&&r.matchesWidget(e)&&(e==r.widget||!r.widget.type.toDOM.parentNode))this.index++;else{let i=new Ph(this.top,e,n,o);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof Zn;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof Ls)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Pe||Oe)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(e,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(e))this.index++;else{let o=document.createElement(e);e=="IMG"&&(o.className="ProseMirror-separator",o.alt=""),e=="BR"&&(o.className="ProseMirror-trailingBreak");let r=new Lh(this.top,[],o,null);n!=this.top?n.children.push(r):n.children.splice(this.index++,0,r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function k1(t,e){let n=e,o=n.children.length,r=t.childCount,i=new Map,s=[];e:for(;r>0;){let a;for(;;)if(o){let c=n.children[o-1];if(c instanceof Zn)n=c,o=c.children.length;else{a=c,o--;break}}else{if(n==e)break e;o=n.parent.children.indexOf(n),n=n.parent}let l=a.node;if(l){if(l!=t.child(r-1))break;--r,i.set(a,r),s.push(a)}}return{index:r,matched:i,matches:s.reverse()}}function x1(t,e){return t.type.side-e.type.side}function C1(t,e,n,o){let r=e.locals(t),i=0;if(r.length==0){for(let c=0;c<t.childCount;c++){let u=t.child(c);o(u,r,e.forChild(i,u),c),i+=u.nodeSize}return}let s=0,a=[],l=null;for(let c=0;;){let u,d;for(;s<r.length&&r[s].to==i;){let h=r[s++];h.widget&&(u?(d||(d=[u])).push(h):u=h)}if(u)if(d){d.sort(x1);for(let h=0;h<d.length;h++)n(d[h],c,!!l)}else n(u,c,!!l);let m,f;if(l)f=-1,m=l,l=null;else if(c<t.childCount)f=c,m=t.child(c++);else break;for(let h=0;h<a.length;h++)a[h].to<=i&&a.splice(h--,1);for(;s<r.length&&r[s].from<=i&&r[s].to>i;)a.push(r[s++]);let p=i+m.nodeSize;if(m.isText){let h=p;s<r.length&&r[s].from<h&&(h=r[s].from);for(let y=0;y<a.length;y++)a[y].to<h&&(h=a[y].to);h<p&&(l=m.cut(h-i),m=m.cut(0,h-i),p=h,f=-1)}else for(;s<r.length&&r[s].to<p;)s++;let g=m.isInline&&!m.isLeaf?a.filter(h=>!h.inline):a.slice();o(m,g,e.forChild(i,m),f),i=p}}function E1(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function N1(t,e,n,o){for(let r=0,i=0;r<t.childCount&&i<=o;){let s=t.child(r++),a=i;if(i+=s.nodeSize,!s.isText)continue;let l=s.text;for(;r<t.childCount;){let c=t.child(r++);if(i+=c.nodeSize,!c.isText)break;l+=c.text}if(i>=n){if(i>=o&&l.slice(o-e.length-a,o-a)==e)return o-e.length;let c=a<o?l.lastIndexOf(e,o-a-1):-1;if(c>=0&&c+e.length+a>=n)return a+c;if(n==o&&l.length>=o+e.length-a&&l.slice(o-a,o-a+e.length)==e)return o}}return-1}function Hc(t,e,n,o,r){let i=[];for(let s=0,a=0;s<t.length;s++){let l=t[s],c=a,u=a+=l.size;c>=n||u<=e?i.push(l):(c<e&&i.push(l.slice(0,e-c,o)),r&&(i.push(r),r=void 0),u>n&&i.push(l.slice(n-c,l.size,o)))}return i}function Vc(t,e=null){let n=t.domSelectionRange(),o=t.state.doc;if(!n.focusNode)return null;let r=t.docView.nearestDesc(n.focusNode),i=r&&r.size==0,s=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let a=o.resolve(s),l,c;if(Is(n)){for(l=s;r&&!r.node;)r=r.parent;let d=r.node;if(r&&d.isAtom&&V.isSelectable(d)&&r.parent&&!(d.isInline&&e1(n.focusNode,n.focusOffset,r.dom))){let m=r.posBefore;c=new V(s==m?a:o.resolve(m))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=s,m=s;for(let f=0;f<n.rangeCount;f++){let p=n.getRangeAt(f);d=Math.min(d,t.docView.posFromDOM(p.startContainer,p.startOffset,1)),m=Math.max(m,t.docView.posFromDOM(p.endContainer,p.endOffset,-1))}if(d<0)return null;[l,s]=m==t.state.selection.anchor?[m,d]:[d,m],a=o.resolve(s)}else l=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let u=o.resolve(l);if(!c){let d=e=="pointer"||t.state.selection.head<a.pos&&!i?1:-1;c=Uc(t,u,a,d)}return c}function Vh(t){return t.editable?t.hasFocus():qh(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Kt(t,e=!1){let n=t.state.selection;if(Jh(t,n),!!Vh(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&Oe){let o=t.domSelectionRange(),r=t.domObserver.currentSelection;if(o.anchorNode&&r.anchorNode&&qn(o.anchorNode,o.anchorOffset,r.anchorNode,r.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)O1(t);else{let{anchor:o,head:r}=n,i,s;_h&&!(n instanceof W)&&(n.$from.parent.inlineContent||(i=Uh(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=Uh(t,n.to))),t.docView.setSelection(o,r,t,e),_h&&(i&&Yh(i),s&&Yh(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&A1(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const _h=Pe||Oe&&Sh<63;function Uh(t,e){let{node:n,offset:o}=t.docView.domFromPos(e,0),r=o<n.childNodes.length?n.childNodes[o]:null,i=o?n.childNodes[o-1]:null;if(Pe&&r&&r.contentEditable=="false")return _c(r);if((!r||r.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(r)return _c(r);if(i)return _c(i)}}function _c(t){return t.contentEditable="true",Pe&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function Yh(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function A1(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),o=n.anchorNode,r=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=o||n.anchorOffset!=r)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!Vh(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function O1(t){let e=t.domSelection();if(!e)return;let n=t.cursorWrapper.dom,o=n.nodeName=="IMG";o?e.collapse(n.parentNode,Ae(n)+1):e.collapse(n,0),!o&&!t.state.selection.visible&&We&&un<=11&&(n.disabled=!0,n.disabled=!1)}function Jh(t,e){if(e instanceof V){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(Kh(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else Kh(t)}function Kh(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Uc(t,e,n,o){return t.someProp("createSelectionBetween",r=>r(t,e,n))||W.between(e,n,o)}function Wh(t){return t.editable&&!t.hasFocus()?!1:qh(t)}function qh(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function R1(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return qn(e.node,e.offset,n.anchorNode,n.anchorOffset)}function Yc(t,e){let{$anchor:n,$head:o}=t.selection,r=e>0?n.max(o):n.min(o),i=r.parent.inlineContent?r.depth?t.doc.resolve(e>0?r.after():r.before()):null:r;return i&&Z.findFrom(i,e)}function fn(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function Gh(t,e,n){let o=t.state.selection;if(o instanceof W)if(n.indexOf("s")>-1){let{$head:r}=o,i=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let s=t.state.doc.resolve(r.pos+i.nodeSize*(e<0?-1:1));return fn(t,new W(o.$anchor,s))}else if(o.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let r=Yc(t.state,e);return r&&r instanceof V?fn(t,r):!1}else if(!(ct&&n.indexOf("m")>-1)){let r=o.$head,i=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter,s;if(!i||i.isText)return!1;let a=e<0?r.pos-i.nodeSize:r.pos;return i.isAtom||(s=t.docView.descAt(a))&&!s.contentDOM?V.isSelectable(i)?fn(t,new V(e<0?t.state.doc.resolve(r.pos-i.nodeSize):r)):Br?fn(t,new W(t.state.doc.resolve(e<0?a:a+i.nodeSize))):!1:!1}}else return!1;else{if(o instanceof V&&o.node.isInline)return fn(t,new W(e>0?o.$to:o.$from));{let r=Yc(t.state,e);return r?fn(t,r):!1}}}function Fs(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Ur(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function Po(t,e){return e<0?D1(t):T1(t)}function D1(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let r,i,s=!1;for(lt&&n.nodeType==1&&o<Fs(n)&&Ur(n.childNodes[o],-1)&&(s=!0);;)if(o>0){if(n.nodeType!=1)break;{let a=n.childNodes[o-1];if(Ur(a,-1))r=n,i=--o;else if(a.nodeType==3)n=a,o=n.nodeValue.length;else break}}else{if(Qh(n))break;{let a=n.previousSibling;for(;a&&Ur(a,-1);)r=n.parentNode,i=Ae(a),a=a.previousSibling;if(a)n=a,o=Fs(n);else{if(n=n.parentNode,n==t.dom)break;o=0}}}s?Jc(t,n,o):r&&Jc(t,r,i)}function T1(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let r=Fs(n),i,s;for(;;)if(o<r){if(n.nodeType!=1)break;let a=n.childNodes[o];if(Ur(a,1))i=n,s=++o;else break}else{if(Qh(n))break;{let a=n.nextSibling;for(;a&&Ur(a,1);)i=a.parentNode,s=Ae(a)+1,a=a.nextSibling;if(a)n=a,o=0,r=Fs(n);else{if(n=n.parentNode,n==t.dom)break;o=r=0}}}i&&Jc(t,i,s)}function Qh(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function M1(t,e){for(;t&&e==t.childNodes.length&&!Fr(t);)e=Ae(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let n=t.childNodes[e];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=0}}function j1(t,e){for(;t&&!e&&!Fr(t);)e=Ae(t),t=t.parentNode;for(;t&&e;){let n=t.childNodes[e-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=t.childNodes.length}}function Jc(t,e,n){if(e.nodeType!=3){let i,s;(s=M1(e,n))?(e=s,n=0):(i=j1(e,n))&&(e=i,n=i.nodeValue.length)}let o=t.domSelection();if(!o)return;if(Is(o)){let i=document.createRange();i.setEnd(e,n),i.setStart(e,n),o.removeAllRanges(),o.addRange(i)}else o.extend&&o.extend(e,n);t.domObserver.setCurSelection();let{state:r}=t;setTimeout(()=>{t.state==r&&Kt(t)},50)}function Zh(t,e){let n=t.state.doc.resolve(e);if(!(Oe||$h)&&n.parent.inlineContent){let r=t.coordsAtPos(e);if(e>n.start()){let i=t.coordsAtPos(e-1),s=(i.top+i.bottom)/2;if(s>r.top&&s<r.bottom&&Math.abs(i.left-r.left)>1)return i.left<r.left?"ltr":"rtl"}if(e<n.end()){let i=t.coordsAtPos(e+1),s=(i.top+i.bottom)/2;if(s>r.top&&s<r.bottom&&Math.abs(i.left-r.left)>1)return i.left>r.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function Xh(t,e,n){let o=t.state.selection;if(o instanceof W&&!o.empty||n.indexOf("s")>-1||ct&&n.indexOf("m")>-1)return!1;let{$from:r,$to:i}=o;if(!r.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=Yc(t.state,e);if(s&&s instanceof V)return fn(t,s)}if(!r.parent.inlineContent){let s=e<0?r:i,a=o instanceof ot?Z.near(s,e):Z.findFrom(s,e);return a?fn(t,a):!1}return!1}function eg(t,e){if(!(t.state.selection instanceof W))return!0;let{$head:n,$anchor:o,empty:r}=t.state.selection;if(!n.sameParent(o))return!0;if(!r)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let s=t.state.tr;return e<0?s.delete(n.pos-i.nodeSize,n.pos):s.delete(n.pos,n.pos+i.nodeSize),t.dispatch(s),!0}return!1}function tg(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function P1(t){if(!Pe||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let o=e.firstChild;tg(t,o,"true"),setTimeout(()=>tg(t,o,"false"),20)}return!1}function I1(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function L1(t,e){let n=e.keyCode,o=I1(e);if(n==8||ct&&n==72&&o=="c")return eg(t,-1)||Po(t,-1);if(n==46&&!e.shiftKey||ct&&n==68&&o=="c")return eg(t,1)||Po(t,1);if(n==13||n==27)return!0;if(n==37||ct&&n==66&&o=="c"){let r=n==37?Zh(t,t.state.selection.from)=="ltr"?-1:1:-1;return Gh(t,r,o)||Po(t,r)}else if(n==39||ct&&n==70&&o=="c"){let r=n==39?Zh(t,t.state.selection.from)=="ltr"?1:-1:1;return Gh(t,r,o)||Po(t,r)}else{if(n==38||ct&&n==80&&o=="c")return Xh(t,-1,o)||Po(t,-1);if(n==40||ct&&n==78&&o=="c")return P1(t)||Xh(t,1,o)||Po(t,1);if(o==(ct?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Kc(t,e){t.someProp("transformCopied",f=>{e=f(e,t)});let n=[],{content:o,openStart:r,openEnd:i}=e;for(;r>1&&i>1&&o.childCount==1&&o.firstChild.childCount==1;){r--,i--;let f=o.firstChild;n.push(f.type.name,f.attrs!=f.type.defaultAttrs?f.attrs:null),o=f.content}let s=t.someProp("clipboardSerializer")||Kn.fromSchema(t.state.schema),a=cg(),l=a.createElement("div");l.appendChild(s.serializeFragment(o,{document:a}));let c=l.firstChild,u,d=0;for(;c&&c.nodeType==1&&(u=ag[c.nodeName.toLowerCase()]);){for(let f=u.length-1;f>=0;f--){let p=a.createElement(u[f]);for(;l.firstChild;)p.appendChild(l.firstChild);l.appendChild(p),d++}c=l.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${r} ${i}${d?` -${d}`:""} ${JSON.stringify(n)}`);let m=t.someProp("clipboardTextSerializer",f=>f(e,t))||e.content.textBetween(0,e.content.size,`
24
+ `))}})}function M$(t,e,n){let o=t.resolve(e),r=o.index();return o.parent.canReplaceWith(r,r+1,n)}function j$(t,e,n,o,r){let i=t.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");n||(n=i.type);let s=n.create(o,null,r||i.marks);if(i.isLeaf)return t.replaceWith(e,e+i.nodeSize,s);if(!n.validContent(i.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new $e(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new I(R.from(s),0,0),1,!0))}function _t(t,e,n=1,o){let r=t.resolve(e),i=r.depth-n,s=o&&o[o.length-1]||r.parent;if(i<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!s.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(let c=r.depth-1,u=n-2;c>i;c--,u--){let d=r.node(c),m=r.index(c);if(d.type.spec.isolating)return!1;let f=d.content.cutByIndex(m,d.childCount),p=o&&o[u+1];p&&(f=f.replaceChild(0,p.type.create(p.attrs)));let g=o&&o[u]||d;if(!d.canReplace(m+1,d.childCount)||!g.type.validContent(f))return!1}let a=r.indexAfter(i),l=o&&o[0];return r.node(i).canReplaceWith(a,a,l?l.type:r.node(i+1).type)}function P$(t,e,n=1,o){let r=t.doc.resolve(e),i=R.empty,s=R.empty;for(let a=r.depth,l=r.depth-n,c=n-1;a>l;a--,c--){i=R.from(r.node(a).copy(i));let u=o&&o[c];s=R.from(u?u.type.create(u.attrs,s):r.node(a).copy(s))}t.step(new Se(e,e,new I(i.append(s),n,n),!0))}function cn(t,e){let n=t.resolve(e),o=n.index();return rh(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(o,o+1)}function I$(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:o}=t.type.schema;for(let r=0;r<e.childCount;r++){let i=e.child(r),s=i.type==o?t.type.schema.nodes.text:i.type;if(n=n.matchType(s),!n||!t.type.allowsMarks(i.marks))return!1}return n.validEnd}function rh(t,e){return!!(t&&e&&!t.isLeaf&&I$(t,e))}function Ts(t,e,n=-1){let o=t.resolve(e);for(let r=o.depth;;r--){let i,s,a=o.index(r);if(r==o.depth?(i=o.nodeBefore,s=o.nodeAfter):n>0?(i=o.node(r+1),a++,s=o.node(r).maybeChild(a)):(i=o.node(r).maybeChild(a-1),s=o.node(r+1)),i&&!i.isTextblock&&rh(i,s)&&o.node(r).canReplace(a,a+1))return e;if(r==0)break;e=n<0?o.before(r):o.after(r)}}function L$(t,e,n){let o=null,{linebreakReplacement:r}=t.doc.type.schema,i=t.doc.resolve(e-n),s=i.node().type;if(r&&s.inlineContent){let u=s.whitespace=="pre",d=!!s.contentMatch.matchType(r);u&&!d?o=!1:!u&&d&&(o=!0)}let a=t.steps.length;if(o===!1){let u=t.doc.resolve(e+n);oh(t,u.node(),u.before(),a)}s.inlineContent&&Cc(t,e+n-1,s,i.node().contentMatchAt(i.index()),o==null);let l=t.mapping.slice(a),c=l.map(e-n);if(t.step(new Se(c,l.map(e+n,-1),I.empty,!0)),o===!0){let u=t.doc.resolve(c);nh(t,u.node(),u.before(),t.steps.length)}return t}function z$(t,e,n){let o=t.resolve(e);if(o.parent.canReplaceWith(o.index(),o.index(),n))return e;if(o.parentOffset==0)for(let r=o.depth-1;r>=0;r--){let i=o.index(r);if(o.node(r).canReplaceWith(i,i,n))return o.before(r+1);if(i>0)return null}if(o.parentOffset==o.parent.content.size)for(let r=o.depth-1;r>=0;r--){let i=o.indexAfter(r);if(o.node(r).canReplaceWith(i,i,n))return o.after(r+1);if(i<o.node(r).childCount)return null}return null}function B$(t,e,n){let o=t.resolve(e);if(!n.content.size)return e;let r=n.content;for(let i=0;i<n.openStart;i++)r=r.firstChild.content;for(let i=1;i<=(n.openStart==0&&n.size?2:1);i++)for(let s=o.depth;s>=0;s--){let a=s==o.depth?0:o.pos<=(o.start(s+1)+o.end(s+1))/2?-1:1,l=o.index(s)+(a>0?1:0),c=o.node(s),u=!1;if(i==1)u=c.canReplace(l,l,r);else{let d=c.contentMatchAt(l).findWrapping(r.firstChild.type);u=d&&c.canReplaceWith(l,l,d[0])}if(u)return a==0?o.pos:a<0?o.before(s+1):o.after(s+1)}return null}function Ms(t,e,n=e,o=I.empty){if(e==n&&!o.size)return null;let r=t.resolve(e),i=t.resolve(n);return ih(r,i,o)?new Se(e,n,o):new F$(r,i,o).fit()}function ih(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class F${constructor(e,n,o){this.$from=e,this.$to=n,this.unplaced=o,this.frontier=[],this.placed=R.empty;for(let r=0;r<=e.depth;r++){let i=e.node(r);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(r))})}for(let r=e.depth;r>0;r--)this.placed=R.from(e.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,o=this.$from,r=this.close(e<0?this.$to:o.doc.resolve(e));if(!r)return null;let i=this.placed,s=o.depth,a=r.depth;for(;s&&a&&i.childCount==1;)i=i.firstChild.content,s--,a--;let l=new I(i,s,a);return e>-1?new $e(o.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||o.pos!=this.$to.pos?new Se(o.pos,r.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,o=0,r=this.unplaced.openEnd;o<e;o++){let i=n.firstChild;if(n.childCount>1&&(r=0),i.type.spec.isolating&&r<=o){e=o;break}n=i.content}for(let n=1;n<=2;n++)for(let o=n==1?e:this.unplaced.openStart;o>=0;o--){let r,i=null;o?(i=Nc(this.unplaced.content,o-1).firstChild,r=i.content):r=this.unplaced.content;let s=r.firstChild;for(let a=this.depth;a>=0;a--){let{type:l,match:c}=this.frontier[a],u,d=null;if(n==1&&(s?c.matchType(s.type)||(d=c.fillBefore(R.from(s),!1)):i&&l.compatibleContent(i.type)))return{sliceDepth:o,frontierDepth:a,parent:i,inject:d};if(n==2&&s&&(u=c.findWrapping(s.type)))return{sliceDepth:o,frontierDepth:a,parent:i,wrap:u};if(i&&c.matchType(i.type))break}}}openMore(){let{content:e,openStart:n,openEnd:o}=this.unplaced,r=Nc(e,n);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new I(e,n+1,Math.max(o,r.size+n>=e.size-o?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:o}=this.unplaced,r=Nc(e,n);if(r.childCount<=1&&n>0){let i=e.size-n<=n+r.size;this.unplaced=new I(Pr(e,n-1,1),n-1,i?n-1:o)}else this.unplaced=new I(Pr(e,n,1),n,o)}placeNodes({sliceDepth:e,frontierDepth:n,parent:o,inject:r,wrap:i}){for(;this.depth>n;)this.closeFrontierNode();if(i)for(let g=0;g<i.length;g++)this.openFrontierNode(i[g]);let s=this.unplaced,a=o?o.content:s.content,l=s.openStart-e,c=0,u=[],{match:d,type:m}=this.frontier[n];if(r){for(let g=0;g<r.childCount;g++)u.push(r.child(g));d=d.matchFragment(r)}let f=a.size+e-(s.content.size-s.openEnd);for(;c<a.childCount;){let g=a.child(c),h=d.matchType(g.type);if(!h)break;c++,(c>1||l==0||g.content.size)&&(d=h,u.push(sh(g.mark(m.allowedMarks(g.marks)),c==1?l:0,c==a.childCount?f:-1)))}let p=c==a.childCount;p||(f=-1),this.placed=Ir(this.placed,n,R.from(u)),this.frontier[n].match=d,p&&f<0&&o&&o.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,h=a;g<f;g++){let y=h.lastChild;this.frontier.push({type:y.type,match:y.contentMatchAt(y.childCount)}),h=y.content}this.unplaced=p?e==0?I.empty:new I(Pr(s.content,e-1,1),e-1,f<0?s.openEnd:e-1):new I(Pr(s.content,e,c),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!Ac(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:o}=this.$to,r=this.$to.after(o);for(;o>1&&r==this.$to.end(--o);)++r;return r}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:o,type:r}=this.frontier[n],i=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),s=Ac(e,n,r,o,i);if(s){for(let a=n-1;a>=0;a--){let{match:l,type:c}=this.frontier[a],u=Ac(e,a,c,l,!0);if(!u||u.childCount)continue e}return{depth:n,fit:s,move:i?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Ir(this.placed,n.depth,n.fit)),e=n.move;for(let o=n.depth+1;o<=e.depth;o++){let r=e.node(o),i=r.type.contentMatch.fillBefore(r.content,!0,e.index(o));this.openFrontierNode(r.type,r.attrs,i)}return e}openFrontierNode(e,n=null,o){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=Ir(this.placed,this.depth,R.from(e.create(n,o))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(R.empty,!0);n.childCount&&(this.placed=Ir(this.placed,this.frontier.length,n))}}function Pr(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(Pr(t.firstChild.content,e-1,n)))}function Ir(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Ir(t.lastChild.content,e-1,n)))}function Nc(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function sh(t,e,n){if(e<=0)return t;let o=t.content;return e>1&&(o=o.replaceChild(0,sh(o.firstChild,e-1,o.childCount==1?n-1:0))),e>0&&(o=t.type.contentMatch.fillBefore(o).append(o),n<=0&&(o=o.append(t.type.contentMatch.matchFragment(o).fillBefore(R.empty,!0)))),t.copy(o)}function Ac(t,e,n,o,r){let i=t.node(e),s=r?t.indexAfter(e):t.index(e);if(s==i.childCount&&!n.compatibleContent(i.type))return null;let a=o.fillBefore(i.content,!0,s);return a&&!H$(n,i.content,s)?a:null}function H$(t,e,n){for(let o=n;o<e.childCount;o++)if(!t.allowsMarks(e.child(o).marks))return!0;return!1}function V$(t){return t.spec.defining||t.spec.definingForContent}function _$(t,e,n,o){if(!o.size)return t.deleteRange(e,n);let r=t.doc.resolve(e),i=t.doc.resolve(n);if(ih(r,i,o))return t.step(new Se(e,n,o));let s=lh(r,i);s[s.length-1]==0&&s.pop();let a=-(r.depth+1);s.unshift(a);for(let m=r.depth,f=r.pos-1;m>0;m--,f--){let p=r.node(m).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;s.indexOf(m)>-1?a=m:r.before(m)==f&&s.splice(1,0,-m)}let l=s.indexOf(a),c=[],u=o.openStart;for(let m=o.content,f=0;;f++){let p=m.firstChild;if(c.push(p),f==o.openStart)break;m=p.content}for(let m=u-1;m>=0;m--){let f=c[m],p=V$(f.type);if(p&&!f.sameMarkup(r.node(Math.abs(a)-1)))u=m;else if(p||!f.type.isTextblock)break}for(let m=o.openStart;m>=0;m--){let f=(m+u+1)%(o.openStart+1),p=c[f];if(p)for(let g=0;g<s.length;g++){let h=s[(g+l)%s.length],y=!0;h<0&&(y=!1,h=-h);let w=r.node(h-1),v=r.index(h-1);if(w.canReplaceWith(v,v,p.type,p.marks))return t.replace(r.before(h),y?i.after(h):n,new I(ah(o.content,0,o.openStart,f),f,o.openEnd))}}let d=t.steps.length;for(let m=s.length-1;m>=0&&(t.replace(e,n,o),!(t.steps.length>d));m--){let f=s[m];f<0||(e=r.before(f),n=i.after(f))}}function ah(t,e,n,o,r){if(e<n){let i=t.firstChild;t=t.replaceChild(0,i.copy(ah(i.content,e+1,n,o,i)))}if(e>o){let i=r.contentMatchAt(0),s=i.fillBefore(t).append(t);t=s.append(i.matchFragment(s).fillBefore(R.empty,!0))}return t}function U$(t,e,n,o){if(!o.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let r=z$(t.doc,e,o.type);r!=null&&(e=n=r)}t.replaceRange(e,n,new I(R.from(o),0,0))}function Y$(t,e,n){let o=t.doc.resolve(e),r=t.doc.resolve(n),i=lh(o,r);for(let s=0;s<i.length;s++){let a=i[s],l=s==i.length-1;if(l&&a==0||o.node(a).type.contentMatch.validEnd)return t.delete(o.start(a),r.end(a));if(a>0&&(l||o.node(a-1).canReplace(o.index(a-1),r.indexAfter(a-1))))return t.delete(o.before(a),r.after(a))}for(let s=1;s<=o.depth&&s<=r.depth;s++)if(e-o.start(s)==o.depth-s&&n>o.end(s)&&r.end(s)-n!=r.depth-s&&o.start(s-1)==r.start(s-1)&&o.node(s-1).canReplace(o.index(s-1),r.index(s-1)))return t.delete(o.before(s),n);t.delete(e,n)}function lh(t,e){let n=[],o=Math.min(t.depth,e.depth);for(let r=o;r>=0;r--){let i=t.start(r);if(i<t.pos-(t.depth-r)||e.end(r)>e.pos+(e.depth-r)||t.node(r).type.spec.isolating||e.node(r).type.spec.isolating)break;(i==e.start(r)||r==t.depth&&r==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&r&&e.start(r-1)==i-1)&&n.push(r)}return n}class Ao extends je{constructor(e,n,o){super(),this.pos=e,this.attr=n,this.value=o}apply(e){let n=e.nodeAt(this.pos);if(!n)return be.fail("No node at attribute step's position");let o=Object.create(null);for(let i in n.attrs)o[i]=n.attrs[i];o[this.attr]=this.value;let r=n.type.create(o,null,n.marks);return be.fromReplace(e,this.pos,this.pos+1,new I(R.from(r),0,n.isLeaf?0:1))}getMap(){return nt.empty}invert(e){return new Ao(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Ao(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Ao(n.pos,n.attr,n.value)}}je.jsonID("attr",Ao);class Lr extends je{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let r in e.attrs)n[r]=e.attrs[r];n[this.attr]=this.value;let o=e.type.create(n,e.content,e.marks);return be.ok(o)}getMap(){return nt.empty}invert(e){return new Lr(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Lr(n.attr,n.value)}}je.jsonID("docAttr",Lr);let Oo=class extends Error{};Oo=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},Oo.prototype=Object.create(Error.prototype),Oo.prototype.constructor=Oo,Oo.prototype.name="TransformError";class ch{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Ds}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new Oo(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,n=-1e9;for(let o=0;o<this.mapping.maps.length;o++){let r=this.mapping.maps[o];o&&(e=r.map(e,1),n=r.map(n,-1)),r.forEach((i,s,a,l)=>{e=Math.min(e,a),n=Math.max(n,l)})}return e==1e9?null:{from:e,to:n}}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,o=I.empty){let r=Ms(this.doc,e,n,o);return r&&this.step(r),this}replaceWith(e,n,o){return this.replace(e,n,new I(R.from(o),0,0))}delete(e,n){return this.replace(e,n,I.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,o){return _$(this,e,n,o),this}replaceRangeWith(e,n,o){return U$(this,e,n,o),this}deleteRange(e,n){return Y$(this,e,n),this}lift(e,n){return A$(this,e,n),this}join(e,n=1){return L$(this,e,n),this}wrap(e,n){return D$(this,e,n),this}setBlockType(e,n=e,o,r=null){return T$(this,e,n,o,r),this}setNodeMarkup(e,n,o=null,r){return j$(this,e,n,o,r),this}setNodeAttribute(e,n,o){return this.step(new Ao(e,n,o)),this}setDocAttribute(e,n){return this.step(new Lr(e,n)),this}addNodeMark(e,n){return this.step(new ln(e,n)),this}removeNodeMark(e,n){let o=this.doc.nodeAt(e);if(!o)throw new RangeError("No node at position "+e);if(n instanceof re)n.isInSet(o.marks)&&this.step(new Wn(e,n));else{let r=o.marks,i,s=[];for(;i=n.isInSet(r);)s.push(new Wn(e,i)),r=i.removeFromSet(r);for(let a=s.length-1;a>=0;a--)this.step(s[a])}return this}split(e,n=1,o){return P$(this,e,n,o),this}addMark(e,n,o){return C$(this,e,n,o),this}removeMark(e,n,o){return E$(this,e,n,o),this}clearIncompatible(e,n,o){return Cc(this,e,n,o),this}}const Oc=Object.create(null);class Z{constructor(e,n,o){this.$anchor=e,this.$head=n,this.ranges=o||[new J$(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=I.empty){let o=n.content.lastChild,r=null;for(let a=0;a<n.openEnd;a++)r=o,o=o.lastChild;let i=e.steps.length,s=this.ranges;for(let a=0;a<s.length;a++){let{$from:l,$to:c}=s[a],u=e.mapping.slice(i);e.replaceRange(u.map(l.pos),u.map(c.pos),a?I.empty:n),a==0&&mh(e,i,(o?o.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,n){let o=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:s,$to:a}=r[i],l=e.mapping.slice(o),c=l.map(s.pos),u=l.map(a.pos);i?e.deleteRange(c,u):(e.replaceRangeWith(c,u,n),mh(e,o,n.isInline?-1:1))}}static findFrom(e,n,o=!1){let r=e.parent.inlineContent?new W(e):Ro(e.node(0),e.parent,e.pos,e.index(),n,o);if(r)return r;for(let i=e.depth-1;i>=0;i--){let s=n<0?Ro(e.node(0),e.node(i),e.before(i+1),e.index(i),n,o):Ro(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,n,o);if(s)return s}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new ot(e.node(0))}static atStart(e){return Ro(e,e,0,0,1)||new ot(e)}static atEnd(e){return Ro(e,e,e.content.size,e.childCount,-1)||new ot(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let o=Oc[n.type];if(!o)throw new RangeError(`No selection type ${n.type} defined`);return o.fromJSON(e,n)}static jsonID(e,n){if(e in Oc)throw new RangeError("Duplicate use of selection JSON ID "+e);return Oc[e]=n,n.prototype.jsonID=e,n}getBookmark(){return W.between(this.$anchor,this.$head).getBookmark()}}Z.prototype.visible=!0;class J${constructor(e,n){this.$from=e,this.$to=n}}let uh=!1;function dh(t){!uh&&!t.parent.inlineContent&&(uh=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class W extends Z{constructor(e,n=e){dh(e),dh(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let o=e.resolve(n.map(this.head));if(!o.parent.inlineContent)return Z.near(o);let r=e.resolve(n.map(this.anchor));return new W(r.parent.inlineContent?r:o,o)}replace(e,n=I.empty){if(super.replace(e,n),n==I.empty){let o=this.$from.marksAcross(this.$to);o&&e.ensureMarks(o)}}eq(e){return e instanceof W&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new js(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new W(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,o=n){let r=e.resolve(n);return new this(r,o==n?r:e.resolve(o))}static between(e,n,o){let r=e.pos-n.pos;if((!o||r)&&(o=r>=0?1:-1),!n.parent.inlineContent){let i=Z.findFrom(n,o,!0)||Z.findFrom(n,-o,!0);if(i)n=i.$head;else return Z.near(n,o)}return e.parent.inlineContent||(r==0?e=n:(e=(Z.findFrom(e,-o,!0)||Z.findFrom(e,o,!0)).$anchor,e.pos<n.pos!=r<0&&(e=n))),new W(e,n)}}Z.jsonID("text",W);class js{constructor(e,n){this.anchor=e,this.head=n}map(e){return new js(e.map(this.anchor),e.map(this.head))}resolve(e){return W.between(e.resolve(this.anchor),e.resolve(this.head))}}class V extends Z{constructor(e){let n=e.nodeAfter,o=e.node(0).resolve(e.pos+n.nodeSize);super(e,o),this.node=n}map(e,n){let{deleted:o,pos:r}=n.mapResult(this.anchor),i=e.resolve(r);return o?Z.near(i):new V(i)}content(){return new I(R.from(this.node),0,0)}eq(e){return e instanceof V&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Rc(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new V(e.resolve(n.anchor))}static create(e,n){return new V(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}V.prototype.visible=!1,Z.jsonID("node",V);class Rc{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:o}=e.mapResult(this.anchor);return n?new js(o,o):new Rc(o)}resolve(e){let n=e.resolve(this.anchor),o=n.nodeAfter;return o&&V.isSelectable(o)?new V(n):Z.near(n)}}class ot extends Z{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=I.empty){if(n==I.empty){e.delete(0,e.doc.content.size);let o=Z.atStart(e.doc);o.eq(e.selection)||e.setSelection(o)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new ot(e)}map(e){return new ot(e)}eq(e){return e instanceof ot}getBookmark(){return K$}}Z.jsonID("all",ot);const K$={map(){return this},resolve(t){return new ot(t)}};function Ro(t,e,n,o,r,i=!1){if(e.inlineContent)return W.create(t,n);for(let s=o-(r>0?0:1);r>0?s<e.childCount:s>=0;s+=r){let a=e.child(s);if(a.isAtom){if(!i&&V.isSelectable(a))return V.create(t,n-(r<0?a.nodeSize:0))}else{let l=Ro(t,a,n+r,r<0?a.childCount:0,r,i);if(l)return l}n+=a.nodeSize*r}return null}function mh(t,e,n){let o=t.steps.length-1;if(o<e)return;let r=t.steps[o];if(!(r instanceof Se||r instanceof $e))return;let i=t.mapping.maps[o],s;i.forEach((a,l,c,u)=>{s==null&&(s=u)}),t.setSelection(Z.near(t.doc.resolve(s),n))}const fh=1,Ps=2,ph=4;class W$ extends ch{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|fh)&~Ps,this.storedMarks=null,this}get selectionSet(){return(this.updated&fh)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Ps,this}ensureMarks(e){return re.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Ps)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~Ps,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let o=this.selection;return n&&(e=e.mark(this.storedMarks||(o.empty?o.$from.marks():o.$from.marksAcross(o.$to)||re.none))),o.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,o){let r=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(o==null&&(o=n),!e)return this.deleteRange(n,o);let i=this.storedMarks;if(!i){let s=this.doc.resolve(n);i=o==n?s.marks():s.marksAcross(this.doc.resolve(o))}return this.replaceRangeWith(n,o,r.text(e,i)),!this.selection.empty&&this.selection.to==n+e.length&&this.setSelection(Z.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=ph,this}get scrolledIntoView(){return(this.updated&ph)>0}}function hh(t,e){return!e||!t?t:t.bind(e)}class zr{constructor(e,n,o){this.name=e,this.init=hh(n.init,o),this.apply=hh(n.apply,o)}}const q$=[new zr("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new zr("selection",{init(t,e){return t.selection||Z.atStart(e.doc)},apply(t){return t.selection}}),new zr("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,o){return o.selection.$cursor?t.storedMarks:null}}),new zr("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class Dc{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=q$.slice(),n&&n.forEach(o=>{if(this.pluginsByKey[o.key])throw new RangeError("Adding different instances of a keyed plugin ("+o.key+")");this.plugins.push(o),this.pluginsByKey[o.key]=o,o.spec.state&&this.fields.push(new zr(o.key,o.spec.state,o))})}}class Do{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let o=0;o<this.config.plugins.length;o++)if(o!=n){let r=this.config.plugins[o];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],o=this.applyInner(e),r=null;for(;;){let i=!1;for(let s=0;s<this.config.plugins.length;s++){let a=this.config.plugins[s];if(a.spec.appendTransaction){let l=r?r[s].n:0,c=r?r[s].state:this,u=l<n.length&&a.spec.appendTransaction.call(a,l?n.slice(l):n,c,o);if(u&&o.filterTransaction(u,s)){if(u.setMeta("appendedTransaction",e),!r){r=[];for(let d=0;d<this.config.plugins.length;d++)r.push(d<s?{state:o,n:n.length}:{state:this,n:0})}n.push(u),o=o.applyInner(u),i=!0}r&&(r[s]={state:o,n:n.length})}}if(!i)return{state:o,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new Do(this.config),o=this.config.fields;for(let r=0;r<o.length;r++){let i=o[r];n[i.name]=i.apply(e,this[i.name],this,n)}return n}get tr(){return new W$(this)}static create(e){let n=new Dc(e.doc?e.doc.type.schema:e.schema,e.plugins),o=new Do(n);for(let r=0;r<n.fields.length;r++)o[n.fields[r].name]=n.fields[r].init(e,o);return o}reconfigure(e){let n=new Dc(this.schema,e.plugins),o=n.fields,r=new Do(n);for(let i=0;i<o.length;i++){let s=o[i].name;r[s]=this.hasOwnProperty(s)?this[s]:o[i].init(e,r)}return r}toJSON(e){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(o=>o.toJSON())),e&&typeof e=="object")for(let o in e){if(o=="doc"||o=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[o],i=r.spec.state;i&&i.toJSON&&(n[o]=i.toJSON.call(r,this[r.key]))}return n}static fromJSON(e,n,o){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let r=new Dc(e.schema,e.plugins),i=new Do(r);return r.fields.forEach(s=>{if(s.name=="doc")i.doc=sn.fromJSON(e.schema,n.doc);else if(s.name=="selection")i.selection=Z.fromJSON(i.doc,n.selection);else if(s.name=="storedMarks")n.storedMarks&&(i.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(o)for(let a in o){let l=o[a],c=l.spec.state;if(l.key==s.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,a)){i[s.name]=c.fromJSON.call(l,e,n[a],i);return}}i[s.name]=s.init(e,i)}}),i}}function gh(t,e,n){for(let o in t){let r=t[o];r instanceof Function?r=r.bind(e):o=="handleDOMEvents"&&(r=gh(r,e,{})),n[o]=r}return n}class Ke{constructor(e){this.spec=e,this.props={},e.props&&gh(e.props,this,this.props),this.key=e.key?e.key.key:yh("plugin")}getState(e){return e[this.key]}}const Tc=Object.create(null);function yh(t){return t in Tc?t+"$"+ ++Tc[t]:(Tc[t]=0,t+"$")}class kt{constructor(e="key"){this.key=yh(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Ae=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},To=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let Mc=null;const Ut=function(t,e,n){let o=Mc||(Mc=document.createRange());return o.setEnd(t,n??t.nodeValue.length),o.setStart(t,e||0),o},G$=function(){Mc=null},qn=function(t,e,n,o){return n&&(bh(t,e,n,o,-1)||bh(t,e,n,o,1))},Q$=/^(img|br|input|textarea|hr)$/i;function bh(t,e,n,o,r){for(var i;;){if(t==n&&e==o)return!0;if(e==(r<0?0:at(t))){let s=t.parentNode;if(!s||s.nodeType!=1||Br(t)||Q$.test(t.nodeName)||t.contentEditable=="false")return!1;e=Ae(t)+(r<0?0:1),t=s}else if(t.nodeType==1){let s=t.childNodes[e+(r<0?-1:0)];if(s.nodeType==1&&s.contentEditable=="false")if(!((i=s.pmViewDesc)===null||i===void 0)&&i.ignoreForSelection)e+=r;else return!1;else t=s,e=r<0?at(t):0}else return!1}}function at(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Z$(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=at(t)}else if(t.parentNode&&!Br(t))e=Ae(t),t=t.parentNode;else return null}}function X$(t,e){for(;;){if(t.nodeType==3&&e<t.nodeValue.length)return t;if(t.nodeType==1&&e<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[e],e=0}else if(t.parentNode&&!Br(t))e=Ae(t)+1,t=t.parentNode;else return null}}function e1(t,e,n){for(let o=e==0,r=e==at(t);o||r;){if(t==n)return!0;let i=Ae(t);if(t=t.parentNode,!t)return!1;o=o&&i==0,r=r&&i==at(t)}}function Br(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const Is=function(t){return t.focusNode&&qn(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function Gn(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function t1(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function n1(t,e,n){if(t.caretPositionFromPoint)try{let o=t.caretPositionFromPoint(e,n);if(o)return{node:o.offsetNode,offset:Math.min(at(o.offsetNode),o.offset)}}catch{}if(t.caretRangeFromPoint){let o=t.caretRangeFromPoint(e,n);if(o)return{node:o.startContainer,offset:Math.min(at(o.startContainer),o.startOffset)}}}const jc=typeof navigator<"u"?navigator:null,wh=typeof document<"u"?document:null,rt=jc&&jc.userAgent||"",Pc=/Edge\/(\d+)/.exec(rt),vh=/MSIE \d/.exec(rt),Ic=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(rt),We=!!(vh||Ic||Pc),un=vh?document.documentMode:Ic?+Ic[1]:Pc?+Pc[1]:0,lt=!We&&/gecko\/(\d+)/i.test(rt);lt&&+(/Firefox\/(\d+)/.exec(rt)||[0,0])[1];const Lc=!We&&/Chrome\/(\d+)/.exec(rt),Oe=!!Lc,Sh=Lc?+Lc[1]:0,Pe=!We&&!!jc&&/Safari\//.test(rt)&&!/Chrome\//.test(rt)&&!/Chromium\//.test(rt),Mo=Pe&&/Mobile\/\w+/.test(rt),ct=Mo||/Macintosh/.test(rt),$h=/Windows/.test(rt),Yt=/Android \d/.test(rt),Fr=!!wh&&"webkitFontSmoothing"in wh.documentElement.style,o1=Fr?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function r1(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function Jt(t,e){return typeof t=="number"?t:t[e]}function i1(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,o=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*o}}function kh(t,e,n){let o=t.someProp("scrollThreshold")||0,r=t.someProp("scrollMargin")||5,i=t.dom.ownerDocument;for(let s=n||t.dom;s;){if(s.nodeType!=1){s=To(s);continue}let a=s,l=a==i.body,c=l?r1(i):i1(a),u=0,d=0;if(e.top<c.top+Jt(o,"top")?d=-(c.top-e.top+Jt(r,"top")):e.bottom>c.bottom-Jt(o,"bottom")&&(d=e.bottom-e.top>c.bottom-c.top?e.top+Jt(r,"top")-c.top:e.bottom-c.bottom+Jt(r,"bottom")),e.left<c.left+Jt(o,"left")?u=-(c.left-e.left+Jt(r,"left")):e.right>c.right-Jt(o,"right")&&(u=e.right-c.right+Jt(r,"right")),u||d)if(l)i.defaultView.scrollBy(u,d);else{let f=a.scrollLeft,p=a.scrollTop;d&&(a.scrollTop+=d),u&&(a.scrollLeft+=u);let g=a.scrollLeft-f,h=a.scrollTop-p;e={left:e.left-g,top:e.top-h,right:e.right-g,bottom:e.bottom-h}}let m=l?"fixed":getComputedStyle(s).position;if(/^(fixed|sticky)$/.test(m))break;s=m=="absolute"?s.offsetParent:To(s)}}function s1(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),o,r;for(let i=(e.left+e.right)/2,s=n+1;s<Math.min(innerHeight,e.bottom);s+=5){let a=t.root.elementFromPoint(i,s);if(!a||a==t.dom||!t.dom.contains(a))continue;let l=a.getBoundingClientRect();if(l.top>=n-20){o=a,r=l.top;break}}return{refDOM:o,refTop:r,stack:xh(t.dom)}}function xh(t){let e=[],n=t.ownerDocument;for(let o=t;o&&(e.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),t!=n);o=To(o));return e}function a1({refDOM:t,refTop:e,stack:n}){let o=t?t.getBoundingClientRect().top:0;Ch(n,o==0?0:o-e)}function Ch(t,e){for(let n=0;n<t.length;n++){let{dom:o,top:r,left:i}=t[n];o.scrollTop!=r+e&&(o.scrollTop=r+e),o.scrollLeft!=i&&(o.scrollLeft=i)}}let jo=null;function l1(t){if(t.setActive)return t.setActive();if(jo)return t.focus(jo);let e=xh(t);t.focus(jo==null?{get preventScroll(){return jo={preventScroll:!0},!0}}:void 0),jo||(jo=!1,Ch(e,0))}function Eh(t,e){let n,o=2e8,r,i=0,s=e.top,a=e.top,l,c;for(let u=t.firstChild,d=0;u;u=u.nextSibling,d++){let m;if(u.nodeType==1)m=u.getClientRects();else if(u.nodeType==3)m=Ut(u).getClientRects();else continue;for(let f=0;f<m.length;f++){let p=m[f];if(p.top<=s&&p.bottom>=a){s=Math.max(p.bottom,s),a=Math.min(p.top,a);let g=p.left>e.left?p.left-e.left:p.right<e.left?e.left-p.right:0;if(g<o){n=u,o=g,r=g&&n.nodeType==3?{left:p.right<e.left?p.right:p.left,top:e.top}:e,u.nodeType==1&&g&&(i=d+(e.left>=(p.left+p.right)/2?1:0));continue}}else p.top>e.top&&!l&&p.left<=e.left&&p.right>=e.left&&(l=u,c={left:Math.max(p.left,Math.min(p.right,e.left)),top:p.top});!n&&(e.left>=p.right&&e.top>=p.top||e.left>=p.left&&e.top>=p.bottom)&&(i=d+1)}}return!n&&l&&(n=l,r=c,o=0),n&&n.nodeType==3?c1(n,r):!n||o&&n.nodeType==1?{node:t,offset:i}:Eh(n,r)}function c1(t,e){let n=t.nodeValue.length,o=document.createRange(),r;for(let i=0;i<n;i++){o.setEnd(t,i+1),o.setStart(t,i);let s=dn(o,1);if(s.top!=s.bottom&&zc(e,s)){r={node:t,offset:i+(e.left>=(s.left+s.right)/2?1:0)};break}}return o.detach(),r||{node:t,offset:0}}function zc(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function u1(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function d1(t,e,n){let{node:o,offset:r}=Eh(e,n),i=-1;if(o.nodeType==1&&!o.firstChild){let s=o.getBoundingClientRect();i=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return t.docView.posFromDOM(o,r,i)}function m1(t,e,n,o){let r=-1;for(let i=e,s=!1;i!=t.dom;){let a=t.docView.nearestDesc(i,!0),l;if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent||!a.contentDOM)&&((l=a.dom.getBoundingClientRect()).width||l.height)&&(a.node.isBlock&&a.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(a.dom.nodeName)&&(!s&&l.left>o.left||l.top>o.top?r=a.posBefore:(!s&&l.right<o.left||l.bottom<o.top)&&(r=a.posAfter),s=!0),!a.contentDOM&&r<0&&!a.node.isText))return(a.node.isBlock?o.top<(l.top+l.bottom)/2:o.left<(l.left+l.right)/2)?a.posBefore:a.posAfter;i=a.dom.parentNode}return r>-1?r:t.docView.posFromDOM(e,n,-1)}function Nh(t,e,n){let o=t.childNodes.length;if(o&&n.top<n.bottom)for(let r=Math.max(0,Math.min(o-1,Math.floor(o*(e.top-n.top)/(n.bottom-n.top))-2)),i=r;;){let s=t.childNodes[i];if(s.nodeType==1){let a=s.getClientRects();for(let l=0;l<a.length;l++){let c=a[l];if(zc(e,c))return Nh(s,e,c)}}if((i=(i+1)%o)==r)break}return t}function f1(t,e){let n=t.dom.ownerDocument,o,r=0,i=n1(n,e.left,e.top);i&&({node:o,offset:r}=i);let s=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),a;if(!s||!t.dom.contains(s.nodeType!=1?s.parentNode:s)){let c=t.dom.getBoundingClientRect();if(!zc(e,c)||(s=Nh(t.dom,e,c),!s))return null}if(Pe)for(let c=s;o&&c;c=To(c))c.draggable&&(o=void 0);if(s=u1(s,e),o){if(lt&&o.nodeType==1&&(r=Math.min(r,o.childNodes.length),r<o.childNodes.length)){let u=o.childNodes[r],d;u.nodeName=="IMG"&&(d=u.getBoundingClientRect()).right<=e.left&&d.bottom>e.top&&r++}let c;Fr&&r&&o.nodeType==1&&(c=o.childNodes[r-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=e.top&&r--,o==t.dom&&r==o.childNodes.length-1&&o.lastChild.nodeType==1&&e.top>o.lastChild.getBoundingClientRect().bottom?a=t.state.doc.content.size:(r==0||o.nodeType!=1||o.childNodes[r-1].nodeName!="BR")&&(a=m1(t,o,r,e))}a==null&&(a=d1(t,s,e));let l=t.docView.nearestDesc(s,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function Ah(t){return t.top<t.bottom||t.left<t.right}function dn(t,e){let n=t.getClientRects();if(n.length){let o=n[e<0?0:n.length-1];if(Ah(o))return o}return Array.prototype.find.call(n,Ah)||t.getBoundingClientRect()}const p1=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Oh(t,e,n){let{node:o,offset:r,atom:i}=t.docView.domFromPos(e,n<0?-1:1),s=Fr||lt;if(o.nodeType==3)if(s&&(p1.test(o.nodeValue)||(n<0?!r:r==o.nodeValue.length))){let l=dn(Ut(o,r,r),n);if(lt&&r&&/\s/.test(o.nodeValue[r-1])&&r<o.nodeValue.length){let c=dn(Ut(o,r-1,r-1),-1);if(c.top==l.top){let u=dn(Ut(o,r,r+1),-1);if(u.top!=l.top)return Hr(u,u.left<c.left)}}return l}else{let l=r,c=r,u=n<0?1:-1;return n<0&&!r?(c++,u=-1):n>=0&&r==o.nodeValue.length?(l--,u=1):n<0?l--:c++,Hr(dn(Ut(o,l,c),u),u<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&r&&(n<0||r==at(o))){let l=o.childNodes[r-1];if(l.nodeType==1)return Bc(l.getBoundingClientRect(),!1)}if(i==null&&r<at(o)){let l=o.childNodes[r];if(l.nodeType==1)return Bc(l.getBoundingClientRect(),!0)}return Bc(o.getBoundingClientRect(),n>=0)}if(i==null&&r&&(n<0||r==at(o))){let l=o.childNodes[r-1],c=l.nodeType==3?Ut(l,at(l)-(s?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(c)return Hr(dn(c,1),!1)}if(i==null&&r<at(o)){let l=o.childNodes[r];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let c=l?l.nodeType==3?Ut(l,0,s?0:1):l.nodeType==1?l:null:null;if(c)return Hr(dn(c,-1),!0)}return Hr(dn(o.nodeType==3?Ut(o):o,-n),n>=0)}function Hr(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function Bc(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function Rh(t,e,n){let o=t.state,r=t.root.activeElement;o!=e&&t.updateState(e),r!=t.dom&&t.focus();try{return n()}finally{o!=e&&t.updateState(o),r!=t.dom&&r&&r.focus()}}function h1(t,e,n){let o=e.selection,r=n=="up"?o.$from:o.$to;return Rh(t,e,()=>{let{node:i}=t.docView.domFromPos(r.pos,n=="up"?-1:1);for(;;){let a=t.docView.nearestDesc(i,!0);if(!a)break;if(a.node.isBlock){i=a.contentDOM||a.dom;break}i=a.dom.parentNode}let s=Oh(t,r.pos,1);for(let a=i.firstChild;a;a=a.nextSibling){let l;if(a.nodeType==1)l=a.getClientRects();else if(a.nodeType==3)l=Ut(a,0,a.nodeValue.length).getClientRects();else continue;for(let c=0;c<l.length;c++){let u=l[c];if(u.bottom>u.top+1&&(n=="up"?s.top-u.top>(u.bottom-s.top)*2:u.bottom-s.bottom>(s.bottom-u.top)*2))return!1}}return!0})}const g1=/[\u0590-\u08ac]/;function y1(t,e,n){let{$head:o}=e.selection;if(!o.parent.isTextblock)return!1;let r=o.parentOffset,i=!r,s=r==o.parent.content.size,a=t.domSelection();return a?!g1.test(o.parent.textContent)||!a.modify?n=="left"||n=="backward"?i:s:Rh(t,e,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:d}=t.domSelectionRange(),m=a.caretBidiLevel;a.modify("move",n,"character");let f=o.depth?t.docView.domAfterPos(o.before()):t.dom,{focusNode:p,focusOffset:g}=t.domSelectionRange(),h=p&&!f.contains(p.nodeType==1?p:p.parentNode)||l==p&&c==g;try{a.collapse(u,d),l&&(l!=u||c!=d)&&a.extend&&a.extend(l,c)}catch{}return m!=null&&(a.caretBidiLevel=m),h}):o.pos==o.start()||o.pos==o.end()}let Dh=null,Th=null,Mh=!1;function b1(t,e,n){return Dh==e&&Th==n?Mh:(Dh=e,Th=n,Mh=n=="up"||n=="down"?h1(t,e,n):y1(t,e,n))}const ut=0,jh=1,Qn=2,Rt=3;class Vr{constructor(e,n,o,r){this.parent=e,this.children=n,this.dom=o,this.contentDOM=r,this.dirty=ut,o.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,o){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n<this.children.length;n++)e+=this.children[n].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let n=0,o=this.posAtStart;;n++){let r=this.children[n];if(r==e)return o;o+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,n,o){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(o<0){let i,s;if(e==this.contentDOM)i=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(s)+s.size:this.posAtStart}else{let i,s;if(e==this.contentDOM)i=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((s=i.pmViewDesc)&&s.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(s):this.posAtEnd}let r;if(e==this.dom&&this.contentDOM)r=n>Ae(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let i=e;;i=i.parentNode){if(i==this.dom){r=!1;break}if(i.previousSibling)break}if(r==null&&n==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){r=!0;break}if(i.nextSibling)break}}return r??o>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let o=!0,r=e;r;r=r.parentNode){let i=this.getDesc(r),s;if(i&&(!n||i.node))if(o&&(s=i.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))o=!1;else return i}}getDesc(e){let n=e.pmViewDesc;for(let o=n;o;o=o.parent)if(o==this)return n}posFromDOM(e,n,o){for(let r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,n,o)}return-1}descAt(e){for(let n=0,o=0;n<this.children.length;n++){let r=this.children[n],i=o+r.size;if(o==e&&i!=o){for(;!r.border&&r.children.length;)for(let s=0;s<r.children.length;s++){let a=r.children[s];if(a.size){r=a;break}}return r}if(e<i)return r.descAt(e-o-r.border);o=i}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let o=0,r=0;for(let i=0;o<this.children.length;o++){let s=this.children[o],a=i+s.size;if(a>e||s instanceof Lh){r=e-i;break}i=a}if(r)return this.children[o].domFromPos(r-this.children[o].border,n);for(let i;o&&!(i=this.children[o-1]).size&&i instanceof Ph&&i.side>=0;o--);if(n<=0){let i,s=!0;for(;i=o?this.children[o-1]:null,!(!i||i.dom.parentNode==this.contentDOM);o--,s=!1);return i&&n&&s&&!i.border&&!i.domAtom?i.domFromPos(i.size,n):{node:this.contentDOM,offset:i?Ae(i.dom)+1:0}}else{let i,s=!0;for(;i=o<this.children.length?this.children[o]:null,!(!i||i.dom.parentNode==this.contentDOM);o++,s=!1);return i&&s&&!i.border&&!i.domAtom?i.domFromPos(0,n):{node:this.contentDOM,offset:i?Ae(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,o=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let s=o,a=0;;a++){let l=this.children[a],c=s+l.size;if(r==-1&&e<=c){let u=s+l.border;if(e>=u&&n<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,u);e=s;for(let d=a;d>0;d--){let m=this.children[d-1];if(m.size&&m.dom.parentNode==this.contentDOM&&!m.emptyChildAt(1)){r=Ae(m.dom)+1;break}e-=m.size}r==-1&&(r=0)}if(r>-1&&(c>n||a==this.children.length-1)){n=c;for(let u=a+1;u<this.children.length;u++){let d=this.children[u];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(-1)){i=Ae(d.dom);break}n+=d.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=c}return{node:this.contentDOM,from:e,to:n,fromOffset:r,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:o}=this.domFromPos(e,0);if(n.nodeType!=1||o==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[o]}setSelection(e,n,o,r=!1){let i=Math.min(e,n),s=Math.max(e,n);for(let f=0,p=0;f<this.children.length;f++){let g=this.children[f],h=p+g.size;if(i>p&&s<h)return g.setSelection(e-p-g.border,n-p-g.border,o,r);p=h}let a=this.domFromPos(e,e?-1:1),l=n==e?a:this.domFromPos(n,n?-1:1),c=o.root.getSelection(),u=o.domSelectionRange(),d=!1;if((lt||Pe)&&e==n){let{node:f,offset:p}=a;if(f.nodeType==3){if(d=!!(p&&f.nodeValue[p-1]==`
25
+ `),d&&p==f.nodeValue.length)for(let g=f,h;g;g=g.parentNode){if(h=g.nextSibling){h.nodeName=="BR"&&(a=l={node:h.parentNode,offset:Ae(h)+1});break}let y=g.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{let g=f.childNodes[p-1];d=g&&(g.nodeName=="BR"||g.contentEditable=="false")}}if(lt&&u.focusNode&&u.focusNode!=l.node&&u.focusNode.nodeType==1){let f=u.focusNode.childNodes[u.focusOffset];f&&f.contentEditable=="false"&&(r=!0)}if(!(r||d&&Pe)&&qn(a.node,a.offset,u.anchorNode,u.anchorOffset)&&qn(l.node,l.offset,u.focusNode,u.focusOffset))return;let m=!1;if((c.extend||e==n)&&!(d&&lt)){c.collapse(a.node,a.offset);try{e!=n&&c.extend(l.node,l.offset),m=!0}catch{}}if(!m){if(e>n){let p=a;a=l,l=p}let f=document.createRange();f.setEnd(l.node,l.offset),f.setStart(a.node,a.offset),c.removeAllRanges(),c.addRange(f)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let o=0,r=0;r<this.children.length;r++){let i=this.children[r],s=o+i.size;if(o==s?e<=s&&n>=o:e<s&&n>o){let a=o+i.border,l=s-i.border;if(e>=a&&n<=l){this.dirty=e==o||n==s?Qn:jh,e==a&&n==l&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=Rt:i.markDirty(e-a,n-a);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Qn:Rt}o=s}this.dirty=Qn}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let o=e==1?Qn:jh;n.dirty<o&&(n.dirty=o)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class Ph extends Vr{constructor(e,n,o,r){let i,s=n.type.toDOM;if(typeof s=="function"&&(s=s(o,()=>{if(!i)return r;if(i.parent)return i.parent.posBeforeChild(i)})),!n.type.spec.raw){if(s.nodeType!=1){let a=document.createElement("span");a.appendChild(s),s=a}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=n,this.widget=n,i=this}matchesWidget(e){return this.dirty==ut&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class w1 extends Vr{constructor(e,n,o,r){super(e,[],n,null),this.textDOM=o,this.text=r}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class Zn extends Vr{constructor(e,n,o,r,i){super(e,[],o,r),this.mark=n,this.spec=i}static create(e,n,o,r){let i=r.nodeViews[n.type.name],s=i&&i(n,r,o);return(!s||!s.dom)&&(s=Kn.renderSpec(document,n.type.spec.toDOM(n,o),null,n.attrs)),new Zn(e,n,s.dom,s.contentDOM||s.dom,s)}parseRule(){return this.dirty&Rt||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Rt&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=ut){let o=this.parent;for(;!o.node;)o=o.parent;o.dirty<this.dirty&&(o.dirty=this.dirty),this.dirty=ut}}slice(e,n,o){let r=Zn.create(this.parent,this.mark,!0,o),i=this.children,s=this.size;n<s&&(i=Hc(i,n,s,o)),e>0&&(i=Hc(i,0,e,o));for(let a=0;a<i.length;a++)i[a].parent=r;return r.children=i,r}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class mn extends Vr{constructor(e,n,o,r,i,s,a,l,c){super(e,[],i,s),this.node=n,this.outerDeco=o,this.innerDeco=r,this.nodeDOM=a}static create(e,n,o,r,i,s){let a=i.nodeViews[n.type.name],l,c=a&&a(n,i,()=>{if(!l)return s;if(l.parent)return l.parent.posBeforeChild(l)},o,r),u=c&&c.dom,d=c&&c.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:d}=Kn.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let m=u;return u=Fh(u,o,n),c?l=new v1(e,n,o,r,u,d||null,m,c,i,s+1):n.isText?new Ls(e,n,o,r,u,m,i):new mn(e,n,o,r,u,d||null,m,i,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let o=this.children[n];if(this.dom.contains(o.dom.parentNode)){e.contentElement=o.dom.parentNode;break}}e.contentElement||(e.getContent=()=>R.empty)}return e}matchesNode(e,n,o){return this.dirty==ut&&e.eq(this.node)&&zs(n,this.outerDeco)&&o.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let o=this.node.inlineContent,r=n,i=e.composing?this.localCompositionInfo(e,n):null,s=i&&i.pos>-1?i:null,a=i&&i.pos<0,l=new $1(this,s&&s.node,e);C1(this.node,this.innerDeco,(c,u,d)=>{c.spec.marks?l.syncToMarks(c.spec.marks,o,e,u):c.type.side>=0&&!d&&l.syncToMarks(u==this.node.childCount?re.none:this.node.child(u).marks,o,e,u),l.placeWidget(c,e,r)},(c,u,d,m)=>{l.syncToMarks(c.marks,o,e,m);let f;l.findNodeMatch(c,u,d,m)||a&&e.state.selection.from>r&&e.state.selection.to<r+c.nodeSize&&(f=l.findIndexWithChild(i.node))>-1&&l.updateNodeAt(c,u,d,f,e)||l.updateNextNode(c,u,d,e,m,r)||l.addNode(c,u,d,e,r),r+=c.nodeSize}),l.syncToMarks([],o,e,0),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==Qn)&&(s&&this.protectLocalComposition(e,s),zh(this.contentDOM,this.children,e),Mo&&E1(this.dom))}localCompositionInfo(e,n){let{from:o,to:r}=e.state.selection;if(!(e.state.selection instanceof W)||o<n||r>n+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let s=i.nodeValue,a=N1(this.node.content,s,o-n,r-n);return a<0?null:{node:i,pos:a,text:s}}else return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:o,text:r}){if(this.getDesc(n))return;let i=n;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let s=new w1(this,i,n,r);e.input.compositionNodes.push(s),this.children=Hc(this.children,o,o+r.length,e,s)}update(e,n,o,r){return this.dirty==Rt||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,o,r),!0)}updateInner(e,n,o,r){this.updateOuterDeco(n),this.node=e,this.innerDeco=o,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=ut}updateOuterDeco(e){if(zs(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,o=this.dom;this.dom=Bh(this.dom,this.nodeDOM,Fc(this.outerDeco,this.node,n),Fc(e,this.node,n)),this.dom!=o&&(o.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function Ih(t,e,n,o,r){Fh(o,e,t);let i=new mn(void 0,t,e,n,o,o,o,r,0);return i.contentDOM&&i.updateChildren(r,0),i}class Ls extends mn{constructor(e,n,o,r,i,s,a){super(e,n,o,r,i,null,s,a,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,o,r){return this.dirty==Rt||this.dirty!=ut&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=ut||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=ut,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,o){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,o)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,o){let r=this.node.cut(e,n),i=document.createTextNode(r.text);return new Ls(this.parent,r,this.outerDeco,this.innerDeco,i,i,o)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=Rt)}get domAtom(){return!1}isText(e){return this.node.text==e}}class Lh extends Vr{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==ut&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class v1 extends mn{constructor(e,n,o,r,i,s,a,l,c,u){super(e,n,o,r,i,s,a,c,u),this.spec=l}update(e,n,o,r){if(this.dirty==Rt)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,n,o);return i&&this.updateInner(e,n,o,r),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,o,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,o,r){this.spec.setSelection?this.spec.setSelection(e,n,o.root):super.setSelection(e,n,o,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function zh(t,e,n){let o=t.firstChild,r=!1;for(let i=0;i<e.length;i++){let s=e[i],a=s.dom;if(a.parentNode==t){for(;a!=o;)o=Hh(o),r=!0;o=o.nextSibling}else r=!0,t.insertBefore(a,o);if(s instanceof Zn){let l=o?o.previousSibling:t.lastChild;zh(s.contentDOM,s.children,n),o=l?l.nextSibling:t.firstChild}}for(;o;)o=Hh(o),r=!0;r&&n.trackWrites==t&&(n.trackWrites=null)}const _r=function(t){t&&(this.nodeName=t)};_r.prototype=Object.create(null);const Xn=[new _r];function Fc(t,e,n){if(t.length==0)return Xn;let o=n?Xn[0]:new _r,r=[o];for(let i=0;i<t.length;i++){let s=t[i].type.attrs;if(s){s.nodeName&&r.push(o=new _r(s.nodeName));for(let a in s){let l=s[a];l!=null&&(n&&r.length==1&&r.push(o=new _r(e.isInline?"span":"div")),a=="class"?o.class=(o.class?o.class+" ":"")+l:a=="style"?o.style=(o.style?o.style+";":"")+l:a!="nodeName"&&(o[a]=l))}}}return r}function Bh(t,e,n,o){if(n==Xn&&o==Xn)return e;let r=e;for(let i=0;i<o.length;i++){let s=o[i],a=n[i];if(i){let l;a&&a.nodeName==s.nodeName&&r!=t&&(l=r.parentNode)&&l.nodeName.toLowerCase()==s.nodeName||(l=document.createElement(s.nodeName),l.pmIsDeco=!0,l.appendChild(r),a=Xn[0]),r=l}S1(r,a||Xn[0],s)}return r}function S1(t,e,n){for(let o in e)o!="class"&&o!="style"&&o!="nodeName"&&!(o in n)&&t.removeAttribute(o);for(let o in n)o!="class"&&o!="style"&&o!="nodeName"&&n[o]!=e[o]&&t.setAttribute(o,n[o]);if(e.class!=n.class){let o=e.class?e.class.split(" ").filter(Boolean):[],r=n.class?n.class.split(" ").filter(Boolean):[];for(let i=0;i<o.length;i++)r.indexOf(o[i])==-1&&t.classList.remove(o[i]);for(let i=0;i<r.length;i++)o.indexOf(r[i])==-1&&t.classList.add(r[i]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let o=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=o.exec(e.style);)t.style.removeProperty(r[1])}n.style&&(t.style.cssText+=n.style)}}function Fh(t,e,n){return Bh(t,t,Xn,Fc(e,n,t.nodeType!=1))}function zs(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function Hh(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class $1{constructor(e,n,o){this.lock=n,this.view=o,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=k1(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let o=e;o<n;o++)this.top.children[o].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,o,r){let i=0,s=this.stack.length>>1,a=Math.min(s,e.length);for(;i<a&&(i==s-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&e[i].type.spec.spanning!==!1;)i++;for(;i<s;)this.destroyRest(),this.top.dirty=ut,this.index=this.stack.pop(),this.top=this.stack.pop(),s--;for(;s<e.length;){this.stack.push(this.top,this.index+1);let l=-1,c=this.top.children.length;r<this.preMatch.index&&(c=Math.min(this.index+3,c));for(let u=this.index;u<c;u++){let d=this.top.children[u];if(d.matchesMark(e[s])&&!this.isLocked(d.dom)){l=u;break}}if(l>-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let u=Zn.create(this.top,e[s],n,o);this.top.children.splice(this.index,0,u),this.top=u,this.changed=!0}this.index=0,s++}}findNodeMatch(e,n,o,r){let i=-1,s;if(r>=this.preMatch.index&&(s=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&s.matchesNode(e,n,o))i=this.top.children.indexOf(s,this.index);else for(let a=this.index,l=Math.min(this.top.children.length,a+5);a<l;a++){let c=this.top.children[a];if(c.matchesNode(e,n,o)&&!this.preMatch.matched.has(c)){i=a;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,n,o,r,i){let s=this.top.children[r];return s.dirty==Rt&&s.dom==s.contentDOM&&(s.dirty=Qn),s.update(e,n,o,i)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(e){for(;;){let n=e.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let o=e.pmViewDesc;if(o){for(let r=this.index;r<this.top.children.length;r++)if(this.top.children[r]==o)return r}return-1}e=n}}updateNextNode(e,n,o,r,i,s){for(let a=this.index;a<this.top.children.length;a++){let l=this.top.children[a];if(l instanceof mn){let c=this.preMatch.matched.get(l);if(c!=null&&c!=i)return!1;let u=l.dom,d,m=this.isLocked(u)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=Rt&&zs(n,l.outerDeco));if(!m&&l.update(e,n,o,r))return this.destroyBetween(this.index,a),l.dom!=u&&(this.changed=!0),this.index++,!0;if(!m&&(d=this.recreateWrapper(l,e,n,o,r,s)))return this.destroyBetween(this.index,a),this.top.children[this.index]=d,d.contentDOM&&(d.dirty=Qn,d.updateChildren(r,s+1),d.dirty=ut),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,o,r,i,s){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content)||!zs(o,e.outerDeco)||!r.eq(e.innerDeco))return null;let a=mn.create(this.top,n,o,r,i,s);if(a.contentDOM){a.children=e.children,e.children=[];for(let l of a.children)l.parent=a}return e.destroy(),a}addNode(e,n,o,r,i){let s=mn.create(this.top,e,n,o,r,i);s.contentDOM&&s.updateChildren(r,i+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(e,n,o){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(r&&r.matchesWidget(e)&&(e==r.widget||!r.widget.type.toDOM.parentNode))this.index++;else{let i=new Ph(this.top,e,n,o);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof Zn;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof Ls)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Pe||Oe)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(e,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(e))this.index++;else{let o=document.createElement(e);e=="IMG"&&(o.className="ProseMirror-separator",o.alt=""),e=="BR"&&(o.className="ProseMirror-trailingBreak");let r=new Lh(this.top,[],o,null);n!=this.top?n.children.push(r):n.children.splice(this.index++,0,r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function k1(t,e){let n=e,o=n.children.length,r=t.childCount,i=new Map,s=[];e:for(;r>0;){let a;for(;;)if(o){let c=n.children[o-1];if(c instanceof Zn)n=c,o=c.children.length;else{a=c,o--;break}}else{if(n==e)break e;o=n.parent.children.indexOf(n),n=n.parent}let l=a.node;if(l){if(l!=t.child(r-1))break;--r,i.set(a,r),s.push(a)}}return{index:r,matched:i,matches:s.reverse()}}function x1(t,e){return t.type.side-e.type.side}function C1(t,e,n,o){let r=e.locals(t),i=0;if(r.length==0){for(let c=0;c<t.childCount;c++){let u=t.child(c);o(u,r,e.forChild(i,u),c),i+=u.nodeSize}return}let s=0,a=[],l=null;for(let c=0;;){let u,d;for(;s<r.length&&r[s].to==i;){let h=r[s++];h.widget&&(u?(d||(d=[u])).push(h):u=h)}if(u)if(d){d.sort(x1);for(let h=0;h<d.length;h++)n(d[h],c,!!l)}else n(u,c,!!l);let m,f;if(l)f=-1,m=l,l=null;else if(c<t.childCount)f=c,m=t.child(c++);else break;for(let h=0;h<a.length;h++)a[h].to<=i&&a.splice(h--,1);for(;s<r.length&&r[s].from<=i&&r[s].to>i;)a.push(r[s++]);let p=i+m.nodeSize;if(m.isText){let h=p;s<r.length&&r[s].from<h&&(h=r[s].from);for(let y=0;y<a.length;y++)a[y].to<h&&(h=a[y].to);h<p&&(l=m.cut(h-i),m=m.cut(0,h-i),p=h,f=-1)}else for(;s<r.length&&r[s].to<p;)s++;let g=m.isInline&&!m.isLeaf?a.filter(h=>!h.inline):a.slice();o(m,g,e.forChild(i,m),f),i=p}}function E1(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function N1(t,e,n,o){for(let r=0,i=0;r<t.childCount&&i<=o;){let s=t.child(r++),a=i;if(i+=s.nodeSize,!s.isText)continue;let l=s.text;for(;r<t.childCount;){let c=t.child(r++);if(i+=c.nodeSize,!c.isText)break;l+=c.text}if(i>=n){if(i>=o&&l.slice(o-e.length-a,o-a)==e)return o-e.length;let c=a<o?l.lastIndexOf(e,o-a-1):-1;if(c>=0&&c+e.length+a>=n)return a+c;if(n==o&&l.length>=o+e.length-a&&l.slice(o-a,o-a+e.length)==e)return o}}return-1}function Hc(t,e,n,o,r){let i=[];for(let s=0,a=0;s<t.length;s++){let l=t[s],c=a,u=a+=l.size;c>=n||u<=e?i.push(l):(c<e&&i.push(l.slice(0,e-c,o)),r&&(i.push(r),r=void 0),u>n&&i.push(l.slice(n-c,l.size,o)))}return i}function Vc(t,e=null){let n=t.domSelectionRange(),o=t.state.doc;if(!n.focusNode)return null;let r=t.docView.nearestDesc(n.focusNode),i=r&&r.size==0,s=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let a=o.resolve(s),l,c;if(Is(n)){for(l=s;r&&!r.node;)r=r.parent;let d=r.node;if(r&&d.isAtom&&V.isSelectable(d)&&r.parent&&!(d.isInline&&e1(n.focusNode,n.focusOffset,r.dom))){let m=r.posBefore;c=new V(s==m?a:o.resolve(m))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=s,m=s;for(let f=0;f<n.rangeCount;f++){let p=n.getRangeAt(f);d=Math.min(d,t.docView.posFromDOM(p.startContainer,p.startOffset,1)),m=Math.max(m,t.docView.posFromDOM(p.endContainer,p.endOffset,-1))}if(d<0)return null;[l,s]=m==t.state.selection.anchor?[m,d]:[d,m],a=o.resolve(s)}else l=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let u=o.resolve(l);if(!c){let d=e=="pointer"||t.state.selection.head<a.pos&&!i?1:-1;c=Uc(t,u,a,d)}return c}function Vh(t){return t.editable?t.hasFocus():qh(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Kt(t,e=!1){let n=t.state.selection;if(Jh(t,n),!!Vh(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&Oe){let o=t.domSelectionRange(),r=t.domObserver.currentSelection;if(o.anchorNode&&r.anchorNode&&qn(o.anchorNode,o.anchorOffset,r.anchorNode,r.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)O1(t);else{let{anchor:o,head:r}=n,i,s;_h&&!(n instanceof W)&&(n.$from.parent.inlineContent||(i=Uh(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=Uh(t,n.to))),t.docView.setSelection(o,r,t,e),_h&&(i&&Yh(i),s&&Yh(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&A1(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const _h=Pe||Oe&&Sh<63;function Uh(t,e){let{node:n,offset:o}=t.docView.domFromPos(e,0),r=o<n.childNodes.length?n.childNodes[o]:null,i=o?n.childNodes[o-1]:null;if(Pe&&r&&r.contentEditable=="false")return _c(r);if((!r||r.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(r)return _c(r);if(i)return _c(i)}}function _c(t){return t.contentEditable="true",Pe&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function Yh(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function A1(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),o=n.anchorNode,r=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=o||n.anchorOffset!=r)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!Vh(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function O1(t){let e=t.domSelection();if(!e)return;let n=t.cursorWrapper.dom,o=n.nodeName=="IMG";o?e.collapse(n.parentNode,Ae(n)+1):e.collapse(n,0),!o&&!t.state.selection.visible&&We&&un<=11&&(n.disabled=!0,n.disabled=!1)}function Jh(t,e){if(e instanceof V){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(Kh(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else Kh(t)}function Kh(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Uc(t,e,n,o){return t.someProp("createSelectionBetween",r=>r(t,e,n))||W.between(e,n,o)}function Wh(t){return t.editable&&!t.hasFocus()?!1:qh(t)}function qh(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function R1(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return qn(e.node,e.offset,n.anchorNode,n.anchorOffset)}function Yc(t,e){let{$anchor:n,$head:o}=t.selection,r=e>0?n.max(o):n.min(o),i=r.parent.inlineContent?r.depth?t.doc.resolve(e>0?r.after():r.before()):null:r;return i&&Z.findFrom(i,e)}function fn(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function Gh(t,e,n){let o=t.state.selection;if(o instanceof W)if(n.indexOf("s")>-1){let{$head:r}=o,i=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let s=t.state.doc.resolve(r.pos+i.nodeSize*(e<0?-1:1));return fn(t,new W(o.$anchor,s))}else if(o.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let r=Yc(t.state,e);return r&&r instanceof V?fn(t,r):!1}else if(!(ct&&n.indexOf("m")>-1)){let r=o.$head,i=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter,s;if(!i||i.isText)return!1;let a=e<0?r.pos-i.nodeSize:r.pos;return i.isAtom||(s=t.docView.descAt(a))&&!s.contentDOM?V.isSelectable(i)?fn(t,new V(e<0?t.state.doc.resolve(r.pos-i.nodeSize):r)):Fr?fn(t,new W(t.state.doc.resolve(e<0?a:a+i.nodeSize))):!1:!1}}else return!1;else{if(o instanceof V&&o.node.isInline)return fn(t,new W(e>0?o.$to:o.$from));{let r=Yc(t.state,e);return r?fn(t,r):!1}}}function Bs(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Ur(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function Po(t,e){return e<0?D1(t):T1(t)}function D1(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let r,i,s=!1;for(lt&&n.nodeType==1&&o<Bs(n)&&Ur(n.childNodes[o],-1)&&(s=!0);;)if(o>0){if(n.nodeType!=1)break;{let a=n.childNodes[o-1];if(Ur(a,-1))r=n,i=--o;else if(a.nodeType==3)n=a,o=n.nodeValue.length;else break}}else{if(Qh(n))break;{let a=n.previousSibling;for(;a&&Ur(a,-1);)r=n.parentNode,i=Ae(a),a=a.previousSibling;if(a)n=a,o=Bs(n);else{if(n=n.parentNode,n==t.dom)break;o=0}}}s?Jc(t,n,o):r&&Jc(t,r,i)}function T1(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let r=Bs(n),i,s;for(;;)if(o<r){if(n.nodeType!=1)break;let a=n.childNodes[o];if(Ur(a,1))i=n,s=++o;else break}else{if(Qh(n))break;{let a=n.nextSibling;for(;a&&Ur(a,1);)i=a.parentNode,s=Ae(a)+1,a=a.nextSibling;if(a)n=a,o=0,r=Bs(n);else{if(n=n.parentNode,n==t.dom)break;o=r=0}}}i&&Jc(t,i,s)}function Qh(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function M1(t,e){for(;t&&e==t.childNodes.length&&!Br(t);)e=Ae(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let n=t.childNodes[e];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=0}}function j1(t,e){for(;t&&!e&&!Br(t);)e=Ae(t),t=t.parentNode;for(;t&&e;){let n=t.childNodes[e-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=t.childNodes.length}}function Jc(t,e,n){if(e.nodeType!=3){let i,s;(s=M1(e,n))?(e=s,n=0):(i=j1(e,n))&&(e=i,n=i.nodeValue.length)}let o=t.domSelection();if(!o)return;if(Is(o)){let i=document.createRange();i.setEnd(e,n),i.setStart(e,n),o.removeAllRanges(),o.addRange(i)}else o.extend&&o.extend(e,n);t.domObserver.setCurSelection();let{state:r}=t;setTimeout(()=>{t.state==r&&Kt(t)},50)}function Zh(t,e){let n=t.state.doc.resolve(e);if(!(Oe||$h)&&n.parent.inlineContent){let r=t.coordsAtPos(e);if(e>n.start()){let i=t.coordsAtPos(e-1),s=(i.top+i.bottom)/2;if(s>r.top&&s<r.bottom&&Math.abs(i.left-r.left)>1)return i.left<r.left?"ltr":"rtl"}if(e<n.end()){let i=t.coordsAtPos(e+1),s=(i.top+i.bottom)/2;if(s>r.top&&s<r.bottom&&Math.abs(i.left-r.left)>1)return i.left>r.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function Xh(t,e,n){let o=t.state.selection;if(o instanceof W&&!o.empty||n.indexOf("s")>-1||ct&&n.indexOf("m")>-1)return!1;let{$from:r,$to:i}=o;if(!r.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=Yc(t.state,e);if(s&&s instanceof V)return fn(t,s)}if(!r.parent.inlineContent){let s=e<0?r:i,a=o instanceof ot?Z.near(s,e):Z.findFrom(s,e);return a?fn(t,a):!1}return!1}function eg(t,e){if(!(t.state.selection instanceof W))return!0;let{$head:n,$anchor:o,empty:r}=t.state.selection;if(!n.sameParent(o))return!0;if(!r)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(i&&!i.isText){let s=t.state.tr;return e<0?s.delete(n.pos-i.nodeSize,n.pos):s.delete(n.pos,n.pos+i.nodeSize),t.dispatch(s),!0}return!1}function tg(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function P1(t){if(!Pe||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let o=e.firstChild;tg(t,o,"true"),setTimeout(()=>tg(t,o,"false"),20)}return!1}function I1(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function L1(t,e){let n=e.keyCode,o=I1(e);if(n==8||ct&&n==72&&o=="c")return eg(t,-1)||Po(t,-1);if(n==46&&!e.shiftKey||ct&&n==68&&o=="c")return eg(t,1)||Po(t,1);if(n==13||n==27)return!0;if(n==37||ct&&n==66&&o=="c"){let r=n==37?Zh(t,t.state.selection.from)=="ltr"?-1:1:-1;return Gh(t,r,o)||Po(t,r)}else if(n==39||ct&&n==70&&o=="c"){let r=n==39?Zh(t,t.state.selection.from)=="ltr"?1:-1:1;return Gh(t,r,o)||Po(t,r)}else{if(n==38||ct&&n==80&&o=="c")return Xh(t,-1,o)||Po(t,-1);if(n==40||ct&&n==78&&o=="c")return P1(t)||Xh(t,1,o)||Po(t,1);if(o==(ct?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Kc(t,e){t.someProp("transformCopied",f=>{e=f(e,t)});let n=[],{content:o,openStart:r,openEnd:i}=e;for(;r>1&&i>1&&o.childCount==1&&o.firstChild.childCount==1;){r--,i--;let f=o.firstChild;n.push(f.type.name,f.attrs!=f.type.defaultAttrs?f.attrs:null),o=f.content}let s=t.someProp("clipboardSerializer")||Kn.fromSchema(t.state.schema),a=cg(),l=a.createElement("div");l.appendChild(s.serializeFragment(o,{document:a}));let c=l.firstChild,u,d=0;for(;c&&c.nodeType==1&&(u=ag[c.nodeName.toLowerCase()]);){for(let f=u.length-1;f>=0;f--){let p=a.createElement(u[f]);for(;l.firstChild;)p.appendChild(l.firstChild);l.appendChild(p),d++}c=l.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${r} ${i}${d?` -${d}`:""} ${JSON.stringify(n)}`);let m=t.someProp("clipboardTextSerializer",f=>f(e,t))||e.content.textBetween(0,e.content.size,`
26
26
 
27
27
  `);return{dom:l,text:m,slice:e}}function ng(t,e,n,o,r){let i=r.parent.type.spec.code,s,a;if(!n&&!e)return null;let l=!!e&&(o||i||!n);if(l){if(t.someProp("transformPastedText",m=>{e=m(e,i||o,t)}),i)return a=new I(R.from(t.state.schema.text(e.replace(/\r\n?/g,`
28
- `))),0,0),t.someProp("transformPasted",m=>{a=m(a,t,!0)}),a;let d=t.someProp("clipboardTextParser",m=>m(e,r,o,t));if(d)a=d;else{let m=r.marks(),{schema:f}=t.state,p=Kn.fromSchema(f);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let h=s.appendChild(document.createElement("p"));g&&h.appendChild(p.serializeNode(f.text(g,m)))})}}else t.someProp("transformPastedHTML",d=>{n=d(n,t)}),s=H1(n),Br&&V1(s);let c=s&&s.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let d=+u[3];d>0;d--){let m=s.firstChild;for(;m&&m.nodeType!=1;)m=m.nextSibling;if(!m)break;s=m}if(a||(a=(t.someProp("clipboardParser")||t.someProp("domParser")||Tr.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(l||u),context:r,ruleFromNode(m){return m.nodeName=="BR"&&!m.nextSibling&&m.parentNode&&!z1.test(m.parentNode.nodeName)?{ignore:!0}:null}})),u)a=_1(sg(a,+u[1],+u[2]),u[4]);else if(a=I.maxOpen(F1(a.content,r),!0),a.openStart||a.openEnd){let d=0,m=0;for(let f=a.content.firstChild;d<a.openStart&&!f.type.spec.isolating;d++,f=f.firstChild);for(let f=a.content.lastChild;m<a.openEnd&&!f.type.spec.isolating;m++,f=f.lastChild);a=sg(a,d,m)}return t.someProp("transformPasted",d=>{a=d(a,t,l)}),a}const z1=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function F1(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.index(n)),i,s=[];if(t.forEach(a=>{if(!s)return;let l=r.findWrapping(a.type),c;if(!l)return s=null;if(c=s.length&&i.length&&rg(l,i,a,s[s.length-1],0))s[s.length-1]=c;else{s.length&&(s[s.length-1]=ig(s[s.length-1],i.length));let u=og(a,l);s.push(u),r=r.matchType(u.type),i=l}}),s)return R.from(s)}return t}function og(t,e,n=0){for(let o=e.length-1;o>=n;o--)t=e[o].create(null,R.from(t));return t}function rg(t,e,n,o,r){if(r<t.length&&r<e.length&&t[r]==e[r]){let i=rg(t,e,n,o.lastChild,r+1);if(i)return o.copy(o.content.replaceChild(o.childCount-1,i));if(o.contentMatchAt(o.childCount).matchType(r==t.length-1?n.type:t[r+1]))return o.copy(o.content.append(R.from(og(n,t,r+1))))}}function ig(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,ig(t.lastChild,e-1)),o=t.contentMatchAt(t.childCount).fillBefore(R.empty,!0);return t.copy(n.append(o))}function Wc(t,e,n,o,r,i){let s=e<0?t.firstChild:t.lastChild,a=s.content;return t.childCount>1&&(i=0),r<o-1&&(a=Wc(a,e,n,o,r+1,i)),r>=n&&(a=e<0?s.contentMatchAt(0).fillBefore(a,i<=r).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(R.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(a))}function sg(t,e,n){return e<t.openStart&&(t=new I(Wc(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new I(Wc(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const ag={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let lg=null;function cg(){return lg||(lg=document.implementation.createHTMLDocument("title"))}let qc=null;function B1(t){let e=window.trustedTypes;return e?(qc||(qc=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),qc.createHTML(t)):t}function H1(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=cg().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(t),r;if((r=o&&ag[o[1].toLowerCase()])&&(t=r.map(i=>"<"+i+">").join("")+t+r.map(i=>"</"+i+">").reverse().join("")),n.innerHTML=B1(t),r)for(let i=0;i<r.length;i++)n=n.querySelector(r[i])||n;return n}function V1(t){let e=t.querySelectorAll(Oe?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let o=e[n];o.childNodes.length==1&&o.textContent==" "&&o.parentNode&&o.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),o)}}function _1(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,o;try{o=JSON.parse(e)}catch{return t}let{content:r,openStart:i,openEnd:s}=t;for(let a=o.length-2;a>=0;a-=2){let l=n.nodes[o[a]];if(!l||l.hasRequiredAttrs())break;r=R.from(l.create(o[a+1],r)),i++,s++}return new I(r,i,s)}const Ve={},_e={},U1={touchstart:!0,touchmove:!0};class Y1{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function J1(t){for(let e in Ve){let n=Ve[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=o=>{W1(t,o)&&!Qc(t,o)&&(t.editable||!(o.type in _e))&&n(t,o)},U1[e]?{passive:!0}:void 0)}Pe&&t.dom.addEventListener("input",()=>null),Gc(t)}function pn(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function K1(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function Gc(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=o=>Qc(t,o))})}function Qc(t,e){return t.someProp("handleDOMEvents",n=>{let o=n[e.type];return o?o(t,e)||e.defaultPrevented:!1})}function W1(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function q1(t,e){!Qc(t,e)&&Ve[e.type]&&(t.editable||!(e.type in _e))&&Ve[e.type](t,e)}_e.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!dg(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(Yt&&Oe&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),Mo&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let o=Date.now();t.input.lastIOSEnter=o,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==o&&(t.someProp("handleKeyDown",r=>r(t,Gn(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",o=>o(t,n))||L1(t,n)?n.preventDefault():pn(t,"key")},_e.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},_e.keypress=(t,e)=>{let n=e;if(dg(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||ct&&n.metaKey)return;if(t.someProp("handleKeyPress",r=>r(t,n))){n.preventDefault();return}let o=t.state.selection;if(!(o instanceof W)||!o.$from.sameParent(o.$to)){let r=String.fromCharCode(n.charCode),i=()=>t.state.tr.insertText(r).scrollIntoView();!/[\r\n]/.test(r)&&!t.someProp("handleTextInput",s=>s(t,o.$from.pos,o.$to.pos,r,i))&&t.dispatch(i()),n.preventDefault()}};function Bs(t){return{left:t.clientX,top:t.clientY}}function G1(t,e){let n=e.x-t.clientX,o=e.y-t.clientY;return n*n+o*o<100}function Zc(t,e,n,o,r){if(o==-1)return!1;let i=t.state.doc.resolve(o);for(let s=i.depth+1;s>0;s--)if(t.someProp(e,a=>s>i.depth?a(t,n,i.nodeAfter,i.before(s),r,!0):a(t,n,i.node(s),i.before(s),r,!1)))return!0;return!1}function Io(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let o=t.state.tr.setSelection(e);o.setMeta("pointer",!0),t.dispatch(o)}function Q1(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),o=n.nodeAfter;return o&&o.isAtom&&V.isSelectable(o)?(Io(t,new V(n)),!0):!1}function Z1(t,e){if(e==-1)return!1;let n=t.state.selection,o,r;n instanceof V&&(o=n.node);let i=t.state.doc.resolve(e);for(let s=i.depth+1;s>0;s--){let a=s>i.depth?i.nodeAfter:i.node(s);if(V.isSelectable(a)){o&&n.$from.depth>0&&s>=n.$from.depth&&i.before(n.$from.depth+1)==n.$from.pos?r=i.before(n.$from.depth):r=i.before(s);break}}return r!=null?(Io(t,V.create(t.state.doc,r)),!0):!1}function X1(t,e,n,o,r){return Zc(t,"handleClickOn",e,n,o)||t.someProp("handleClick",i=>i(t,e,o))||(r?Z1(t,n):Q1(t,n))}function ek(t,e,n,o){return Zc(t,"handleDoubleClickOn",e,n,o)||t.someProp("handleDoubleClick",r=>r(t,e,o))}function tk(t,e,n,o){return Zc(t,"handleTripleClickOn",e,n,o)||t.someProp("handleTripleClick",r=>r(t,e,o))||nk(t,n,o)}function nk(t,e,n){if(n.button!=0)return!1;let o=t.state.doc;if(e==-1)return o.inlineContent?(Io(t,W.create(o,0,o.content.size)),!0):!1;let r=o.resolve(e);for(let i=r.depth+1;i>0;i--){let s=i>r.depth?r.nodeAfter:r.node(i),a=r.before(i);if(s.inlineContent)Io(t,W.create(o,a+1,a+1+s.content.size));else if(V.isSelectable(s))Io(t,V.create(o,a));else continue;return!0}}function Xc(t){return Hs(t)}const ug=ct?"metaKey":"ctrlKey";Ve.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let o=Xc(t),r=Date.now(),i="singleClick";r-t.input.lastClick.time<500&&G1(n,t.input.lastClick)&&!n[ug]&&t.input.lastClick.button==n.button&&(t.input.lastClick.type=="singleClick"?i="doubleClick":t.input.lastClick.type=="doubleClick"&&(i="tripleClick")),t.input.lastClick={time:r,x:n.clientX,y:n.clientY,type:i,button:n.button};let s=t.posAtCoords(Bs(n));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new ok(t,s,n,!!o)):(i=="doubleClick"?ek:tk)(t,s.pos,s.inside,n)?n.preventDefault():pn(t,"pointer"))};class ok{constructor(e,n,o,r){this.view=e,this.pos=n,this.event=o,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!o[ug],this.allowDefault=o.shiftKey;let i,s;if(n.inside>-1)i=e.state.doc.nodeAt(n.inside),s=n.inside;else{let u=e.state.doc.resolve(n.pos);i=u.parent,s=u.depth?u.before():0}const a=r?null:o.target,l=a?e.docView.nearestDesc(a,!0):null;this.target=l&&l.nodeDOM.nodeType==1?l.nodeDOM:null;let{selection:c}=e.state;(o.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||c instanceof V&&c.from<=s&&c.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&lt&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),pn(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Kt(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(Bs(e))),this.updateAllowDefault(e),this.allowDefault||!n?pn(this.view,"pointer"):X1(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Pe&&this.mightDrag&&!this.mightDrag.node.isAtom||Oe&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Io(this.view,Z.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):pn(this.view,"pointer")}move(e){this.updateAllowDefault(e),pn(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}Ve.touchstart=t=>{t.input.lastTouch=Date.now(),Xc(t),pn(t,"pointer")},Ve.touchmove=t=>{t.input.lastTouch=Date.now(),pn(t,"pointer")},Ve.contextmenu=t=>Xc(t);function dg(t,e){return t.composing?!0:Pe&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const rk=Yt?5e3:-1;_e.compositionstart=_e.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof W&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(o=>o.type.spec.inclusive===!1)||Oe&&$h&&ik(t)))t.markCursor=t.state.storedMarks||n.marks(),Hs(t,!0),t.markCursor=null;else if(Hs(t,!e.selection.empty),lt&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let o=t.domSelectionRange();for(let r=o.focusNode,i=o.focusOffset;r&&r.nodeType==1&&i!=0;){let s=i<0?r.lastChild:r.childNodes[i-1];if(!s)break;if(s.nodeType==3){let a=t.domSelection();a&&a.collapse(s,s.nodeValue.length);break}else r=s,i=-1}}t.input.composing=!0}mg(t,rk)};function ik(t){let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(!e||e.nodeType!=1||n>=e.childNodes.length)return!1;let o=e.childNodes[n];return o.nodeType==1&&o.contentEditable=="false"}_e.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.badSafariComposition?t.domObserver.forceFlush():t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,mg(t,20))};function mg(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>Hs(t),e))}function fg(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=ak());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function sk(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=Z$(e.focusNode,e.focusOffset),o=X$(e.focusNode,e.focusOffset);if(n&&o&&n!=o){let r=o.pmViewDesc,i=t.domObserver.lastChangedTextNode;if(n==i||o==i)return i;if(!r||!r.isText(o.nodeValue))return o;if(t.input.compositionNode==o){let s=n.pmViewDesc;if(!(!s||!s.isText(n.nodeValue)))return o}}return n||o}function ak(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function Hs(t,e=!1){if(!(Yt&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),fg(t),e||t.docView&&t.docView.dirty){let n=Vc(t),o=t.state.selection;return n&&!n.eq(o)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!o.$from.node(o.$from.sharedDepth(o.to)).inlineContent?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function lk(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let o=getSelection(),r=document.createRange();r.selectNodeContents(e),t.dom.blur(),o.removeAllRanges(),o.addRange(r),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const Yr=We&&un<15||Mo&&o1<604;Ve.copy=_e.cut=(t,e)=>{let n=e,o=t.state.selection,r=n.type=="cut";if(o.empty)return;let i=Yr?null:n.clipboardData,s=o.content(),{dom:a,text:l}=Kc(t,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",l)):lk(t,a),r&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function ck(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function uk(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,o=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(o.contentEditable="true"),o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus();let r=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),o.parentNode&&o.parentNode.removeChild(o),n?Jr(t,o.value,null,r,e):Jr(t,o.textContent,o.innerHTML,r,e)},50)}function Jr(t,e,n,o,r){let i=ng(t,e,n,o,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,r,i||I.empty)))return!0;if(!i)return!1;let s=ck(i),a=s?t.state.tr.replaceSelectionWith(s,o):t.state.tr.replaceSelection(i);return t.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function pg(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}_e.paste=(t,e)=>{let n=e;if(t.composing&&!Yt)return;let o=Yr?null:n.clipboardData,r=t.input.shiftKey&&t.input.lastKeyCode!=45;o&&Jr(t,pg(o),o.getData("text/html"),r,n)?n.preventDefault():uk(t,n)};class hg{constructor(e,n,o){this.slice=e,this.move=n,this.node=o}}const dk=ct?"altKey":"ctrlKey";function gg(t,e){let n=t.someProp("dragCopies",o=>!o(e));return n??!e[dk]}Ve.dragstart=(t,e)=>{let n=e,o=t.input.mouseDown;if(o&&o.done(),!n.dataTransfer)return;let r=t.state.selection,i=r.empty?null:t.posAtCoords(Bs(n)),s;if(!(i&&i.pos>=r.from&&i.pos<=(r instanceof V?r.to-1:r.to))){if(o&&o.mightDrag)s=V.create(t.state.doc,o.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=t.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=t.docView&&(s=V.create(t.state.doc,d.posBefore))}}let a=(s||t.state.selection).content(),{dom:l,text:c,slice:u}=Kc(t,a);(!n.dataTransfer.files.length||!Oe||Sh>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Yr?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",Yr||n.dataTransfer.setData("text/plain",c),t.dragging=new hg(u,gg(t,n),s)},Ve.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},_e.dragover=_e.dragenter=(t,e)=>e.preventDefault(),_e.drop=(t,e)=>{try{mk(t,e,t.dragging)}finally{t.dragging=null}};function mk(t,e,n){if(!e.dataTransfer)return;let o=t.posAtCoords(Bs(e));if(!o)return;let r=t.state.doc.resolve(o.pos),i=n&&n.slice;i?t.someProp("transformPasted",f=>{i=f(i,t,!1)}):i=ng(t,pg(e.dataTransfer),Yr?null:e.dataTransfer.getData("text/html"),!1,r);let s=!!(n&&gg(t,e));if(t.someProp("handleDrop",f=>f(t,e,i||I.empty,s))){e.preventDefault();return}if(!i)return;e.preventDefault();let a=i?F$(t.state.doc,r.pos,i):r.pos;a==null&&(a=r.pos);let l=t.state.tr;if(s){let{node:f}=n;f?f.replace(l):l.deleteSelection()}let c=l.mapping.map(a),u=i.openStart==0&&i.openEnd==0&&i.content.childCount==1,d=l.doc;if(u?l.replaceRangeWith(c,c,i.content.firstChild):l.replaceRange(c,c,i),l.doc.eq(d))return;let m=l.doc.resolve(c);if(u&&V.isSelectable(i.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(i.content.firstChild))l.setSelection(new V(m));else{let f=l.mapping.map(a);l.mapping.maps[l.mapping.maps.length-1].forEach((p,g,h,y)=>f=y),l.setSelection(Uc(t,m,l.doc.resolve(f)))}t.focus(),t.dispatch(l.setMeta("uiEvent","drop"))}Ve.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&Kt(t)},20))},Ve.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},Ve.beforeinput=(t,e)=>{if(Oe&&Yt&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:o}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=o||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",i=>i(t,Gn(8,"Backspace")))))return;let{$cursor:r}=t.state.selection;r&&r.pos>0&&t.dispatch(t.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let t in _e)Ve[t]=_e[t];function Kr(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class Vs{constructor(e,n){this.toDOM=e,this.spec=n||eo,this.side=this.spec.side||0}map(e,n,o,r){let{pos:i,deleted:s}=e.mapResult(n.from+r,this.side<0?-1:1);return s?null:new dt(i-o,i-o,this)}valid(){return!0}eq(e){return this==e||e instanceof Vs&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Kr(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class hn{constructor(e,n){this.attrs=e,this.spec=n||eo}map(e,n,o,r){let i=e.map(n.from+r,this.spec.inclusiveStart?-1:1)-o,s=e.map(n.to+r,this.spec.inclusiveEnd?1:-1)-o;return i>=s?null:new dt(i,s,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof hn&&Kr(this.attrs,e.attrs)&&Kr(this.spec,e.spec)}static is(e){return e.type instanceof hn}destroy(){}}class eu{constructor(e,n){this.attrs=e,this.spec=n||eo}map(e,n,o,r){let i=e.mapResult(n.from+r,1);if(i.deleted)return null;let s=e.mapResult(n.to+r,-1);return s.deleted||s.pos<=i.pos?null:new dt(i.pos-o,s.pos-o,this)}valid(e,n){let{index:o,offset:r}=e.content.findIndex(n.from),i;return r==n.from&&!(i=e.child(o)).isText&&r+i.nodeSize==n.to}eq(e){return this==e||e instanceof eu&&Kr(this.attrs,e.attrs)&&Kr(this.spec,e.spec)}destroy(){}}class dt{constructor(e,n,o){this.from=e,this.to=n,this.type=o}copy(e,n){return new dt(e,n,this.type)}eq(e,n=0){return this.type.eq(e.type)&&this.from+n==e.from&&this.to+n==e.to}map(e,n,o){return this.type.map(e,this,n,o)}static widget(e,n,o){return new dt(e,e,new Vs(n,o))}static inline(e,n,o,r){return new dt(e,n,new hn(o,r))}static node(e,n,o,r){return new dt(e,n,new eu(o,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof hn}get widget(){return this.type instanceof Vs}}const Lo=[],eo={};class we{constructor(e,n){this.local=e.length?e:Lo,this.children=n.length?n:Lo}static create(e,n){return n.length?_s(n,e,0,eo):Ie}find(e,n,o){let r=[];return this.findInner(e??0,n??1e9,r,0,o),r}findInner(e,n,o,r,i){for(let s=0;s<this.local.length;s++){let a=this.local[s];a.from<=n&&a.to>=e&&(!i||i(a.spec))&&o.push(a.copy(a.from+r,a.to+r))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<n&&this.children[s+1]>e){let a=this.children[s]+1;this.children[s+2].findInner(e-a,n-a,o,r+a,i)}}map(e,n,o){return this==Ie||e.maps.length==0?this:this.mapInner(e,n,0,0,o||eo)}mapInner(e,n,o,r,i){let s;for(let a=0;a<this.local.length;a++){let l=this.local[a].map(e,o,r);l&&l.type.valid(n,l)?(s||(s=[])).push(l):i.onRemove&&i.onRemove(this.local[a].spec)}return this.children.length?fk(this.children,s||[],e,n,o,r,i):s?new we(s.sort(to),Lo):Ie}add(e,n){return n.length?this==Ie?we.create(e,n):this.addInner(e,n,0):this}addInner(e,n,o){let r,i=0;e.forEach((a,l)=>{let c=l+o,u;if(u=bg(n,a,c)){for(r||(r=this.children.slice());i<r.length&&r[i]<l;)i+=3;r[i]==l?r[i+2]=r[i+2].addInner(a,u,c+1):r.splice(i,0,l,l+a.nodeSize,_s(u,a,c+1,eo)),i+=3}});let s=yg(i?wg(n):n,-o);for(let a=0;a<s.length;a++)s[a].type.valid(e,s[a])||s.splice(a--,1);return new we(s.length?this.local.concat(s).sort(to):this.local,r||this.children)}remove(e){return e.length==0||this==Ie?this:this.removeInner(e,0)}removeInner(e,n){let o=this.children,r=this.local;for(let i=0;i<o.length;i+=3){let s,a=o[i]+n,l=o[i+1]+n;for(let u=0,d;u<e.length;u++)(d=e[u])&&d.from>a&&d.to<l&&(e[u]=null,(s||(s=[])).push(d));if(!s)continue;o==this.children&&(o=this.children.slice());let c=o[i+2].removeInner(s,a+1);c!=Ie?o[i+2]=c:(o.splice(i,3),i-=3)}if(r.length){for(let i=0,s;i<e.length;i++)if(s=e[i])for(let a=0;a<r.length;a++)r[a].eq(s,n)&&(r==this.local&&(r=this.local.slice()),r.splice(a--,1))}return o==this.children&&r==this.local?this:r.length||o.length?new we(r,o):Ie}forChild(e,n){if(this==Ie)return this;if(n.isLeaf)return we.empty;let o,r;for(let a=0;a<this.children.length;a+=3)if(this.children[a]>=e){this.children[a]==e&&(o=this.children[a+2]);break}let i=e+1,s=i+n.content.size;for(let a=0;a<this.local.length;a++){let l=this.local[a];if(l.from<s&&l.to>i&&l.type instanceof hn){let c=Math.max(i,l.from)-i,u=Math.min(s,l.to)-i;c<u&&(r||(r=[])).push(l.copy(c,u))}}if(r){let a=new we(r.sort(to),Lo);return o?new gn([a,o]):a}return o||Ie}eq(e){if(this==e)return!0;if(!(e instanceof we)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(e.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0}locals(e){return tu(this.localsInner(e))}localsInner(e){if(this==Ie)return Lo;if(e.inlineContent||!this.local.some(hn.is))return this.local;let n=[];for(let o=0;o<this.local.length;o++)this.local[o].type instanceof hn||n.push(this.local[o]);return n}forEachSet(e){e(this)}}we.empty=new we([],[]),we.removeOverlap=tu;const Ie=we.empty;class gn{constructor(e){this.members=e}map(e,n){const o=this.members.map(r=>r.map(e,n,eo));return gn.from(o)}forChild(e,n){if(n.isLeaf)return we.empty;let o=[];for(let r=0;r<this.members.length;r++){let i=this.members[r].forChild(e,n);i!=Ie&&(i instanceof gn?o=o.concat(i.members):o.push(i))}return gn.from(o)}eq(e){if(!(e instanceof gn)||e.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(e.members[n]))return!1;return!0}locals(e){let n,o=!0;for(let r=0;r<this.members.length;r++){let i=this.members[r].localsInner(e);if(i.length)if(!n)n=i;else{o&&(n=n.slice(),o=!1);for(let s=0;s<i.length;s++)n.push(i[s])}}return n?tu(o?n:n.sort(to)):Lo}static from(e){switch(e.length){case 0:return Ie;case 1:return e[0];default:return new gn(e.every(n=>n instanceof we)?e:e.reduce((n,o)=>n.concat(o instanceof we?o:o.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(e)}}function fk(t,e,n,o,r,i,s){let a=t.slice();for(let c=0,u=i;c<n.maps.length;c++){let d=0;n.maps[c].forEach((m,f,p,g)=>{let h=g-p-(f-m);for(let y=0;y<a.length;y+=3){let w=a[y+1];if(w<0||m>w+u-d)continue;let v=a[y]+u-d;f>=v?a[y+1]=m<=v?-2:-1:m>=u&&h&&(a[y]+=h,a[y+1]+=h)}d+=h}),u=n.maps[c].map(u,-1)}let l=!1;for(let c=0;c<a.length;c+=3)if(a[c+1]<0){if(a[c+1]==-2){l=!0,a[c+1]=-1;continue}let u=n.map(t[c]+i),d=u-r;if(d<0||d>=o.content.size){l=!0;continue}let m=n.map(t[c+1]+i,-1),f=m-r,{index:p,offset:g}=o.content.findIndex(d),h=o.maybeChild(p);if(h&&g==d&&g+h.nodeSize==f){let y=a[c+2].mapInner(n,h,u+1,t[c]+i+1,s);y!=Ie?(a[c]=d,a[c+1]=f,a[c+2]=y):(a[c+1]=-2,l=!0)}else l=!0}if(l){let c=pk(a,t,e,n,r,i,s),u=_s(c,o,0,s);e=u.local;for(let d=0;d<a.length;d+=3)a[d+1]<0&&(a.splice(d,3),d-=3);for(let d=0,m=0;d<u.children.length;d+=3){let f=u.children[d];for(;m<a.length&&a[m]<f;)m+=3;a.splice(m,0,u.children[d],u.children[d+1],u.children[d+2])}}return new we(e.sort(to),a)}function yg(t,e){if(!e||!t.length)return t;let n=[];for(let o=0;o<t.length;o++){let r=t[o];n.push(new dt(r.from+e,r.to+e,r.type))}return n}function pk(t,e,n,o,r,i,s){function a(l,c){for(let u=0;u<l.local.length;u++){let d=l.local[u].map(o,r,c);d?n.push(d):s.onRemove&&s.onRemove(l.local[u].spec)}for(let u=0;u<l.children.length;u+=3)a(l.children[u+2],l.children[u]+c+1)}for(let l=0;l<t.length;l+=3)t[l+1]==-1&&a(t[l+2],e[l]+i+1);return n}function bg(t,e,n){if(e.isLeaf)return null;let o=n+e.nodeSize,r=null;for(let i=0,s;i<t.length;i++)(s=t[i])&&s.from>n&&s.to<o&&((r||(r=[])).push(s),t[i]=null);return r}function wg(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function _s(t,e,n,o){let r=[],i=!1;e.forEach((a,l)=>{let c=bg(t,a,l+n);if(c){i=!0;let u=_s(c,a,n+l+1,o);u!=Ie&&r.push(l,l+a.nodeSize,u)}});let s=yg(i?wg(t):t,-n).sort(to);for(let a=0;a<s.length;a++)s[a].type.valid(e,s[a])||(o.onRemove&&o.onRemove(s[a].spec),s.splice(a--,1));return s.length||r.length?new we(s,r):Ie}function to(t,e){return t.from-e.from||t.to-e.to}function tu(t){let e=t;for(let n=0;n<e.length-1;n++){let o=e[n];if(o.from!=o.to)for(let r=n+1;r<e.length;r++){let i=e[r];if(i.from==o.from){i.to!=o.to&&(e==t&&(e=t.slice()),e[r]=i.copy(i.from,o.to),vg(e,r+1,i.copy(o.to,i.to)));continue}else{i.from<o.to&&(e==t&&(e=t.slice()),e[n]=o.copy(o.from,i.from),vg(e,r,o.copy(i.from,o.to)));break}}}return e}function vg(t,e,n){for(;e<t.length&&to(n,t[e])>0;)e++;t.splice(e,0,n)}function nu(t){let e=[];return t.someProp("decorations",n=>{let o=n(t.state);o&&o!=Ie&&e.push(o)}),t.cursorWrapper&&e.push(we.create(t.state.doc,[t.cursorWrapper.deco])),gn.from(e)}const hk={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},gk=We&&un<=11;class yk{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class bk{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new yk,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(o=>{for(let r=0;r<o.length;r++)this.queue.push(o[r]);We&&un<=11&&o.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():Pe&&e.composing&&o.some(r=>r.type=="childList"&&r.target.nodeName=="TR")?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),gk&&(this.onCharData=o=>{this.queue.push({target:o.target,type:"characterData",oldValue:o.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,hk)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;n<e.length;n++)this.queue.push(e[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Wh(this.view)){if(this.suppressingSelectionUpdates)return Kt(this.view);if(We&&un<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&qn(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,o;for(let i=e.focusNode;i;i=To(i))n.add(i);for(let i=e.anchorNode;i;i=To(i))if(n.has(i)){o=i;break}let r=o&&this.view.docView.nearestDesc(o);if(r&&r.ignoreMutation({type:"selection",target:o.nodeType==3?o.parentNode:o}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let o=e.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(o)&&Wh(e)&&!this.ignoreSelectionChange(o),i=-1,s=-1,a=!1,l=[];if(e.editable)for(let u=0;u<n.length;u++){let d=this.registerMutation(n[u],l);d&&(i=i<0?d.from:Math.min(d.from,i),s=s<0?d.to:Math.max(d.to,s),d.typeOver&&(a=!0))}if(l.some(u=>u.nodeName=="BR")&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46)){for(let u of l)if(u.nodeName=="BR"&&u.parentNode){let d=u.nextSibling;for(;d&&d.nodeType==1;){if(d.contentEditable=="false"){u.parentNode.removeChild(u);break}d=d.firstChild}}}else if(lt&&l.length){let u=l.filter(d=>d.nodeName=="BR");if(u.length==2){let[d,m]=u;d.parentNode&&d.parentNode.parentNode==m.parentNode?m.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let m of u){let f=m.parentNode;f&&f.nodeName=="LI"&&(!d||Sk(e,d)!=f)&&m.remove()}}}let c=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Is(o)&&(c=Vc(e))&&c.eq(Z.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Kt(e),this.currentSelection.set(o),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,s),wk(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,$k(e,l)),this.handleDOMChange(i,s,a,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(o)||Kt(e),this.currentSelection.set(o))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let o=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(o==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!o||o.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;u<e.addedNodes.length;u++){let d=e.addedNodes[u];n.push(d),d.nodeType==3&&(this.lastChangedTextNode=d)}if(o.contentDOM&&o.contentDOM!=o.dom&&!o.contentDOM.contains(e.target))return{from:o.posBefore,to:o.posAfter};let r=e.previousSibling,i=e.nextSibling;if(We&&un<=11&&e.addedNodes.length)for(let u=0;u<e.addedNodes.length;u++){let{previousSibling:d,nextSibling:m}=e.addedNodes[u];(!d||Array.prototype.indexOf.call(e.addedNodes,d)<0)&&(r=d),(!m||Array.prototype.indexOf.call(e.addedNodes,m)<0)&&(i=m)}let s=r&&r.parentNode==e.target?Ae(r)+1:0,a=o.localPosFromDOM(e.target,s,-1),l=i&&i.parentNode==e.target?Ae(i):e.target.childNodes.length,c=o.localPosFromDOM(e.target,l,1);return{from:a,to:c}}else return e.type=="attributes"?{from:o.posAtStart-o.border,to:o.posAtEnd+o.border}:(this.lastChangedTextNode=e.target,{from:o.posAtStart,to:o.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let Sg=new WeakMap,$g=!1;function wk(t){if(!Sg.has(t)&&(Sg.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=lt,$g)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),$g=!0}}function kg(t,e){let n=e.startContainer,o=e.startOffset,r=e.endContainer,i=e.endOffset,s=t.domAtPos(t.state.selection.anchor);return qn(s.node,s.offset,r,i)&&([n,o,r,i]=[r,i,n,o]),{anchorNode:n,anchorOffset:o,focusNode:r,focusOffset:i}}function vk(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return kg(t,r)}let n;function o(r){r.preventDefault(),r.stopImmediatePropagation(),n=r.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",o,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",o,!0),n?kg(t,n):null}function Sk(t,e){for(let n=e.parentNode;n&&n!=t.dom;n=n.parentNode){let o=t.docView.nearestDesc(n,!0);if(o&&o.node.isBlock)return n}return null}function $k(t,e){var n;let{focusNode:o,focusOffset:r}=t.domSelectionRange();for(let i of e)if(((n=i.parentNode)===null||n===void 0?void 0:n.nodeName)=="TR"){let s=i.nextSibling;for(;s&&s.nodeName!="TD"&&s.nodeName!="TH";)s=s.nextSibling;if(s){let a=s;for(;;){let l=a.firstChild;if(!l||l.nodeType!=1||l.contentEditable=="false"||/^(BR|IMG)$/.test(l.nodeName))break;a=l}a.insertBefore(i,a.firstChild),o==i&&t.domSelection().collapse(i,r)}else i.parentNode.removeChild(i)}}function kk(t,e,n){let{node:o,fromOffset:r,toOffset:i,from:s,to:a}=t.docView.parseRange(e,n),l=t.domSelectionRange(),c,u=l.anchorNode;if(u&&t.dom.contains(u.nodeType==1?u:u.parentNode)&&(c=[{node:u,offset:l.anchorOffset}],Is(l)||c.push({node:l.focusNode,offset:l.focusOffset})),Oe&&t.input.lastKeyCode===8)for(let h=i;h>r;h--){let y=o.childNodes[h-1],w=y.pmViewDesc;if(y.nodeName=="BR"&&!w){i=h;break}if(!w||w.size)break}let d=t.state.doc,m=t.someProp("domParser")||Tr.fromSchema(t.state.schema),f=d.resolve(s),p=null,g=m.parse(o,{topNode:f.parent,topMatch:f.parent.contentMatchAt(f.index()),topOpen:!0,from:r,to:i,preserveWhitespace:f.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:xk,context:f});if(c&&c[0].pos!=null){let h=c[0].pos,y=c[1]&&c[1].pos;y==null&&(y=h),p={anchor:h+s,head:y+s}}return{doc:g,sel:p,from:s,to:a}}function xk(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(Pe&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||Pe&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const Ck=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Ek(t,e,n,o,r){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let k=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,N=Vc(t,k);if(N&&!t.state.selection.eq(N)){if(Oe&&Yt&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",H=>H(t,Gn(13,"Enter"))))return;let O=t.state.tr.setSelection(N);k=="pointer"?O.setMeta("pointer",!0):k=="key"&&O.scrollIntoView(),i&&O.setMeta("composition",i),t.dispatch(O)}return}let s=t.state.doc.resolve(e),a=s.sharedDepth(n);e=s.before(a+1),n=t.state.doc.resolve(n).after(a+1);let l=t.state.selection,c=kk(t,e,n),u=t.state.doc,d=u.slice(c.from,c.to),m,f;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(m=t.state.selection.to,f="end"):(m=t.state.selection.from,f="start"),t.input.lastKeyCode=null;let p=Ok(d.content,c.doc.content,c.from,m,f);if(p&&t.input.domChangeCount++,(Mo&&t.input.lastIOSEnter>Date.now()-225||Yt)&&r.some(k=>k.nodeType==1&&!Ck.test(k.nodeName))&&(!p||p.endA>=p.endB)&&t.someProp("handleKeyDown",k=>k(t,Gn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!p)if(o&&l instanceof W&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))p={start:l.from,endA:l.to,endB:l.to};else{if(c.sel){let k=xg(t,t.state.doc,c.sel);if(k&&!k.eq(t.state.selection)){let N=t.state.tr.setSelection(k);i&&N.setMeta("composition",i),t.dispatch(N)}}return}t.state.selection.from<t.state.selection.to&&p.start==p.endB&&t.state.selection instanceof W&&(p.start>t.state.selection.from&&p.start<=t.state.selection.from+2&&t.state.selection.from>=c.from?p.start=t.state.selection.from:p.endA<t.state.selection.to&&p.endA>=t.state.selection.to-2&&t.state.selection.to<=c.to&&(p.endB+=t.state.selection.to-p.endA,p.endA=t.state.selection.to)),We&&un<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>c.from&&c.doc.textBetween(p.start-c.from-1,p.start-c.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let g=c.doc.resolveNoCache(p.start-c.from),h=c.doc.resolveNoCache(p.endB-c.from),y=u.resolve(p.start),w=g.sameParent(h)&&g.parent.inlineContent&&y.end()>=p.endA;if((Mo&&t.input.lastIOSEnter>Date.now()-225&&(!w||r.some(k=>k.nodeName=="DIV"||k.nodeName=="P"))||!w&&g.pos<c.doc.content.size&&(!g.sameParent(h)||!g.parent.inlineContent)&&g.pos<h.pos&&!/\S/.test(c.doc.textBetween(g.pos,h.pos,"","")))&&t.someProp("handleKeyDown",k=>k(t,Gn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>p.start&&Ak(u,p.start,p.endA,g,h)&&t.someProp("handleKeyDown",k=>k(t,Gn(8,"Backspace")))){Yt&&Oe&&t.domObserver.suppressSelectionUpdates();return}Oe&&p.endB==p.start&&(t.input.lastChromeDelete=Date.now()),Yt&&!w&&g.start()!=h.start()&&h.parentOffset==0&&g.depth==h.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==p.endA&&(p.endB-=2,h=c.doc.resolveNoCache(p.endB-c.from),setTimeout(()=>{t.someProp("handleKeyDown",function(k){return k(t,Gn(13,"Enter"))})},20));let v=p.start,S=p.endA,C=k=>{let N=k||t.state.tr.replace(v,S,c.doc.slice(p.start-c.from,p.endB-c.from));if(c.sel){let O=xg(t,N.doc,c.sel);O&&!(Oe&&t.composing&&O.empty&&(p.start!=p.endB||t.input.lastChromeDelete<Date.now()-100)&&(O.head==v||O.head==N.mapping.map(S)-1)||We&&O.empty&&O.head==v)&&N.setSelection(O)}return i&&N.setMeta("composition",i),N.scrollIntoView()},$;if(w)if(g.pos==h.pos){We&&un<=11&&g.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Kt(t),20));let k=C(t.state.tr.delete(v,S)),N=u.resolve(p.start).marksAcross(u.resolve(p.endA));N&&k.ensureMarks(N),t.dispatch(k)}else if(p.endA==p.endB&&($=Nk(g.parent.content.cut(g.parentOffset,h.parentOffset),y.parent.content.cut(y.parentOffset,p.endA-y.start())))){let k=C(t.state.tr);$.type=="add"?k.addMark(v,S,$.mark):k.removeMark(v,S,$.mark),t.dispatch(k)}else if(g.parent.child(g.index()).isText&&g.index()==h.index()-(h.textOffset?0:1)){let k=g.parent.textBetween(g.parentOffset,h.parentOffset),N=()=>C(t.state.tr.insertText(k,v,S));t.someProp("handleTextInput",O=>O(t,v,S,k,N))||t.dispatch(N())}else t.dispatch(C());else t.dispatch(C())}function xg(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:Uc(t,e.resolve(n.anchor),e.resolve(n.head))}function Nk(t,e){let n=t.firstChild.marks,o=e.firstChild.marks,r=n,i=o,s,a,l;for(let u=0;u<o.length;u++)r=o[u].removeFromSet(r);for(let u=0;u<n.length;u++)i=n[u].removeFromSet(i);if(r.length==1&&i.length==0)a=r[0],s="add",l=u=>u.mark(a.addToSet(u.marks));else if(r.length==0&&i.length==1)a=i[0],s="remove",l=u=>u.mark(a.removeFromSet(u.marks));else return null;let c=[];for(let u=0;u<e.childCount;u++)c.push(l(e.child(u)));if(R.from(c).eq(t))return{mark:a,type:s}}function Ak(t,e,n,o,r){if(n-e<=r.pos-o.pos||ou(o,!0,!1)<r.pos)return!1;let i=t.resolve(e);if(!o.parent.isTextblock){let a=i.nodeAfter;return a!=null&&n==e+a.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=t.resolve(ou(i,!0,!0));return!s.parent.isTextblock||s.pos>n||ou(s,!0,!1)<n?!1:o.parent.content.cut(o.parentOffset).eq(s.parent.content)}function ou(t,e,n){let o=t.depth,r=e?t.end():t.pos;for(;o>0&&(e||t.indexAfter(o)==t.node(o).childCount);)o--,r++,e=!1;if(n){let i=t.node(o).maybeChild(t.indexAfter(o));for(;i&&!i.isLeaf;)i=i.firstChild,r++}return r}function Ok(t,e,n,o,r){let i=t.findDiffStart(e,n);if(i==null)return null;let{a:s,b:a}=t.findDiffEnd(e,n+t.size,n+e.size);if(r=="end"){let l=Math.max(0,i-Math.min(s,a));o-=s+l-i}if(s<i&&t.size<e.size){let l=o<=i&&o>=s?i-o:0;i-=l,i&&i<e.size&&Cg(e.textBetween(i-1,i+1))&&(i+=l?1:-1),a=i+(a-s),s=i}else if(a<i){let l=o<=i&&o>=a?i-o:0;i-=l,i&&i<t.size&&Cg(t.textBetween(i-1,i+1))&&(i+=l?1:-1),s=i+(s-a),a=i}return{start:i,endA:s,endB:a}}function Cg(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),n=t.charCodeAt(1);return e>=56320&&e<=57343&&n>=55296&&n<=56319}class Eg{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new Y1,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(Dg),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=Og(this),Ag(this),this.nodeViews=Rg(this),this.docView=Ih(this.state.doc,Ng(this),nu(this),this.dom,this),this.domObserver=new bk(this,(o,r,i,s)=>Ek(this,o,r,i,s)),this.domObserver.start(),J1(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Gc(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Dg),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let o in this._props)n[o]=this._props[o];n.state=this.state;for(let o in e)n[o]=e[o];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var o;let r=this.state,i=!1,s=!1;e.storedMarks&&this.composing&&(fg(this),s=!0),this.state=e;let a=r.plugins!=e.plugins||this._props.plugins!=n.plugins;if(a||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let f=Rg(this);Dk(f,this.nodeViews)&&(this.nodeViews=f,i=!0)}(a||n.handleDOMEvents!=this._props.handleDOMEvents)&&Gc(this),this.editable=Og(this),Ag(this);let l=nu(this),c=Ng(this),u=r.plugins!=e.plugins&&!r.doc.eq(e.doc)?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",d=i||!this.docView.matchesNode(e.doc,c,l);(d||!e.selection.eq(r.selection))&&(s=!0);let m=u=="preserve"&&s&&this.dom.style.overflowAnchor==null&&s1(this);if(s){this.domObserver.stop();let f=d&&(We||Oe)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&Rk(r.selection,e.selection);if(d){let p=Oe?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=sk(this)),(i||!this.docView.update(e.doc,c,l,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=Ih(e.doc,c,l,this.dom,this)),p&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(f=!0)}f||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&R1(this))?Kt(this,f):(Jh(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),!((o=this.dragging)===null||o===void 0)&&o.node&&!r.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,r),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():m&&a1(m)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof V){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&kh(this,n.getBoundingClientRect(),e)}else kh(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let o=this.directPlugins[n];o.spec.view&&this.pluginViews.push(o.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let o=this.state.plugins[n];o.spec.view&&this.pluginViews.push(o.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let o=this.pluginViews[n];o.update&&o.update(this,e)}}updateDraggedNode(e,n){let o=e.node,r=-1;if(o.from<this.state.doc.content.size&&this.state.doc.nodeAt(o.from)==o.node)r=o.from;else{let i=o.from+(this.state.doc.content.size-n.doc.content.size);(i>0&&i<this.state.doc.content.size&&this.state.doc.nodeAt(i))==o.node&&(r=i)}this.dragging=new hg(e.slice,e.move,r<0?void 0:V.create(this.state.doc,r))}someProp(e,n){let o=this._props&&this._props[e],r;if(o!=null&&(r=n?n(o):o))return r;for(let s=0;s<this.directPlugins.length;s++){let a=this.directPlugins[s].props[e];if(a!=null&&(r=n?n(a):a))return r}let i=this.state.plugins;if(i)for(let s=0;s<i.length;s++){let a=i[s].props[e];if(a!=null&&(r=n?n(a):a))return r}}hasFocus(){if(We){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&l1(this.dom),Kt(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return f1(this,e)}coordsAtPos(e,n=1){return Oh(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,o=-1){let r=this.docView.posFromDOM(e,n,o);if(r==null)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,n){return b1(this,n||this.state,e)}pasteHTML(e,n){return Jr(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Jr(this,e,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(e){return Kc(this,e)}destroy(){this.docView&&(K1(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],nu(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,G$())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return q1(this,e)}domSelectionRange(){let e=this.domSelection();return e?Pe&&this.root.nodeType===11&&t1(this.dom.ownerDocument)==this.dom&&vk(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}Eg.prototype.dispatch=function(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))};function Ng(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let o in n)o=="class"?e.class+=" "+n[o]:o=="style"?e.style=(e.style?e.style+";":"")+n[o]:!e[o]&&o!="contenteditable"&&o!="nodeName"&&(e[o]=String(n[o]))}),e.translate||(e.translate="no"),[dt.node(0,t.state.doc.content.size,e)]}function Ag(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:dt.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function Og(t){return!t.someProp("editable",e=>e(t.state)===!1)}function Rk(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function Rg(t){let e=Object.create(null);function n(o){for(let r in o)Object.prototype.hasOwnProperty.call(e,r)||(e[r]=o[r])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function Dk(t,e){let n=0,o=0;for(let r in t){if(t[r]!=e[r])return!0;n++}for(let r in e)o++;return n!=o}function Dg(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var yn={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Us={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Tk=typeof navigator<"u"&&/Macintosh/.test(navigator.userAgent),Mk=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Re=0;Re<10;Re++)yn[48+Re]=yn[96+Re]=String(Re);for(var Re=1;Re<=24;Re++)yn[Re+111]="F"+Re;for(var Re=65;Re<=90;Re++)yn[Re]=String.fromCharCode(Re+32),Us[Re]=String.fromCharCode(Re);for(var ru in yn)Us.hasOwnProperty(ru)||(Us[ru]=yn[ru]);function jk(t){var e=Tk&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Mk&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?Us:yn)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const Pk=typeof navigator<"u"&&/Macintosh|iPhone|iPad|iPod/.test(navigator.userAgent),Ik=typeof navigator<"u"&&/Win/.test(navigator.platform);function Lk(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let o,r,i,s;for(let a=0;a<e.length-1;a++){let l=e[a];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))o=!0;else if(/^(c|ctrl|control)$/i.test(l))r=!0;else if(/^s(hift)?$/i.test(l))i=!0;else if(/^mod$/i.test(l))Pk?s=!0:r=!0;else throw new Error("Unrecognized modifier name: "+l)}return o&&(n="Alt-"+n),r&&(n="Ctrl-"+n),s&&(n="Meta-"+n),i&&(n="Shift-"+n),n}function zk(t){let e=Object.create(null);for(let n in t)e[Lk(n)]=t[n];return e}function iu(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function Fk(t){return new Ke({props:{handleKeyDown:Bk(t)}})}function Bk(t){let e=zk(t);return function(n,o){let r=jk(o),i,s=e[iu(r,o)];if(s&&s(n.state,n.dispatch,n))return!0;if(r.length==1&&r!=" "){if(o.shiftKey){let a=e[iu(r,o,!1)];if(a&&a(n.state,n.dispatch,n))return!0}if((o.altKey||o.metaKey||o.ctrlKey)&&!(Ik&&o.ctrlKey&&o.altKey)&&(i=yn[o.keyCode])&&i!=r){let a=e[iu(i,o)];if(a&&a(n.state,n.dispatch,n))return!0}}return!1}}const su=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function Tg(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const Mg=(t,e,n)=>{let o=Tg(t,n);if(!o)return!1;let r=au(o);if(!r){let s=o.blockRange(),a=s&&No(s);return a==null?!1:(e&&e(t.tr.lift(s,a).scrollIntoView()),!0)}let i=r.nodeBefore;if(Vg(t,r,e,-1))return!0;if(o.parent.content.size==0&&(zo(i,"end")||V.isSelectable(i)))for(let s=o.depth;;s--){let a=Ms(t.doc,o.before(s),o.after(s),I.empty);if(a&&a.slice.size<a.to-a.from){if(e){let l=t.tr.step(a);l.setSelection(zo(i,"end")?Z.findFrom(l.doc.resolve(l.mapping.map(r.pos,-1)),-1):V.create(l.doc,r.pos-i.nodeSize)),e(l.scrollIntoView())}return!0}if(s==1||o.node(s-1).childCount>1)break}return i.isAtom&&r.depth==o.depth-1?(e&&e(t.tr.delete(r.pos-i.nodeSize,r.pos).scrollIntoView()),!0):!1},Hk=(t,e,n)=>{let o=Tg(t,n);if(!o)return!1;let r=au(o);return r?jg(t,r,e):!1},Vk=(t,e,n)=>{let o=Ig(t,n);if(!o)return!1;let r=lu(o);return r?jg(t,r,e):!1};function jg(t,e,n){let o=e.nodeBefore,r=o,i=e.pos-1;for(;!r.isTextblock;i--){if(r.type.spec.isolating)return!1;let u=r.lastChild;if(!u)return!1;r=u}let s=e.nodeAfter,a=s,l=e.pos+1;for(;!a.isTextblock;l++){if(a.type.spec.isolating)return!1;let u=a.firstChild;if(!u)return!1;a=u}let c=Ms(t.doc,i,l,I.empty);if(!c||c.from!=i||c instanceof Se&&c.slice.size>=l-i)return!1;if(n){let u=t.tr.step(c);u.setSelection(W.create(u.doc,i)),n(u.scrollIntoView())}return!0}function zo(t,e,n=!1){for(let o=t;o;o=e=="start"?o.firstChild:o.lastChild){if(o.isTextblock)return!0;if(n&&o.childCount!=1)return!1}return!1}const Pg=(t,e,n)=>{let{$head:o,empty:r}=t.selection,i=o;if(!r)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):o.parentOffset>0)return!1;i=au(o)}let s=i&&i.nodeBefore;return!s||!V.isSelectable(s)?!1:(e&&e(t.tr.setSelection(V.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function au(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function Ig(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const Lg=(t,e,n)=>{let o=Ig(t,n);if(!o)return!1;let r=lu(o);if(!r)return!1;let i=r.nodeAfter;if(Vg(t,r,e,1))return!0;if(o.parent.content.size==0&&(zo(i,"start")||V.isSelectable(i))){let s=Ms(t.doc,o.before(),o.after(),I.empty);if(s&&s.slice.size<s.to-s.from){if(e){let a=t.tr.step(s);a.setSelection(zo(i,"start")?Z.findFrom(a.doc.resolve(a.mapping.map(r.pos)),1):V.create(a.doc,a.mapping.map(r.pos))),e(a.scrollIntoView())}return!0}}return i.isAtom&&r.depth==o.depth-1?(e&&e(t.tr.delete(r.pos,r.pos+i.nodeSize).scrollIntoView()),!0):!1},zg=(t,e,n)=>{let{$head:o,empty:r}=t.selection,i=o;if(!r)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):o.parentOffset<o.parent.content.size)return!1;i=lu(o)}let s=i&&i.nodeAfter;return!s||!V.isSelectable(s)?!1:(e&&e(t.tr.setSelection(V.create(t.doc,i.pos)).scrollIntoView()),!0)};function lu(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}const _k=(t,e)=>{let n=t.selection,o=n instanceof V,r;if(o){if(n.node.isTextblock||!cn(t.doc,n.from))return!1;r=n.from}else if(r=Ts(t.doc,n.from,-1),r==null)return!1;if(e){let i=t.tr.join(r);o&&i.setSelection(V.create(i.doc,r-t.doc.resolve(r).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},Uk=(t,e)=>{let n=t.selection,o;if(n instanceof V){if(n.node.isTextblock||!cn(t.doc,n.to))return!1;o=n.to}else if(o=Ts(t.doc,n.to,1),o==null)return!1;return e&&e(t.tr.join(o).scrollIntoView()),!0},Yk=(t,e)=>{let{$from:n,$to:o}=t.selection,r=n.blockRange(o),i=r&&No(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)},Fg=(t,e)=>{let{$head:n,$anchor:o}=t.selection;return!n.parent.type.spec.code||!n.sameParent(o)?!1:(e&&e(t.tr.insertText(`
29
- `).scrollIntoView()),!0)};function cu(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const Jk=(t,e)=>{let{$head:n,$anchor:o}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(o))return!1;let r=n.node(-1),i=n.indexAfter(-1),s=cu(r.contentMatchAt(i));if(!s||!r.canReplaceWith(i,i,s))return!1;if(e){let a=n.after(),l=t.tr.replaceWith(a,a,s.createAndFill());l.setSelection(Z.near(l.doc.resolve(a),1)),e(l.scrollIntoView())}return!0},Bg=(t,e)=>{let n=t.selection,{$from:o,$to:r}=n;if(n instanceof ot||o.parent.inlineContent||r.parent.inlineContent)return!1;let i=cu(r.parent.contentMatchAt(r.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let s=(!o.parentOffset&&r.index()<r.parent.childCount?o:r).pos,a=t.tr.insert(s,i.createAndFill());a.setSelection(W.create(a.doc,s+1)),e(a.scrollIntoView())}return!0},Hg=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if(_t(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let o=n.blockRange(),r=o&&No(o);return r==null?!1:(e&&e(t.tr.lift(o,r).scrollIntoView()),!0)};function Kk(t){return(e,n)=>{let{$from:o,$to:r}=e.selection;if(e.selection instanceof V&&e.selection.node.isBlock)return!o.parentOffset||!_t(e.doc,o.pos)?!1:(n&&n(e.tr.split(o.pos).scrollIntoView()),!0);if(!o.depth)return!1;let i=[],s,a,l=!1,c=!1;for(let f=o.depth;;f--)if(o.node(f).isBlock){l=o.end(f)==o.pos+(o.depth-f),c=o.start(f)==o.pos-(o.depth-f),a=cu(o.node(f-1).contentMatchAt(o.indexAfter(f-1))),i.unshift(l&&a?{type:a}:null),s=f;break}else{if(f==1)return!1;i.unshift(null)}let u=e.tr;(e.selection instanceof W||e.selection instanceof ot)&&u.deleteSelection();let d=u.mapping.map(o.pos),m=_t(u.doc,d,i.length,i);if(m||(i[0]=a?{type:a}:null,m=_t(u.doc,d,i.length,i)),!m)return!1;if(u.split(d,i.length,i),!l&&c&&o.node(s).type!=a){let f=u.mapping.map(o.before(s)),p=u.doc.resolve(f);a&&o.node(s-1).canReplaceWith(p.index(),p.index()+1,a)&&u.setNodeMarkup(u.mapping.map(o.before(s)),a)}return n&&n(u.scrollIntoView()),!0}}const Wk=Kk(),qk=(t,e)=>{let{$from:n,to:o}=t.selection,r,i=n.sharedDepth(o);return i==0?!1:(r=n.before(i),e&&e(t.tr.setSelection(V.create(t.doc,r))),!0)};function Gk(t,e,n){let o=e.nodeBefore,r=e.nodeAfter,i=e.index();return!o||!r||!o.type.compatibleContent(r.type)?!1:!o.content.size&&e.parent.canReplace(i-1,i)?(n&&n(t.tr.delete(e.pos-o.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(r.isTextblock||cn(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function Vg(t,e,n,o){let r=e.nodeBefore,i=e.nodeAfter,s,a,l=r.type.spec.isolating||i.type.spec.isolating;if(!l&&Gk(t,e,n))return!0;let c=!l&&e.parent.canReplace(e.index(),e.index()+1);if(c&&(s=(a=r.contentMatchAt(r.childCount)).findWrapping(i.type))&&a.matchType(s[0]||i.type).validEnd){if(n){let f=e.pos+i.nodeSize,p=R.empty;for(let y=s.length-1;y>=0;y--)p=R.from(s[y].create(null,p));p=R.from(r.copy(p));let g=t.tr.step(new $e(e.pos-1,f,e.pos,f,new I(p,1,0),s.length,!0)),h=g.doc.resolve(f+2*s.length);h.nodeAfter&&h.nodeAfter.type==r.type&&cn(g.doc,h.pos)&&g.join(h.pos),n(g.scrollIntoView())}return!0}let u=i.type.spec.isolating||o>0&&l?null:Z.findFrom(e,1),d=u&&u.$from.blockRange(u.$to),m=d&&No(d);if(m!=null&&m>=e.depth)return n&&n(t.tr.lift(d,m).scrollIntoView()),!0;if(c&&zo(i,"start",!0)&&zo(r,"end")){let f=r,p=[];for(;p.push(f),!f.isTextblock;)f=f.lastChild;let g=i,h=1;for(;!g.isTextblock;g=g.firstChild)h++;if(f.canReplace(f.childCount,f.childCount,g.content)){if(n){let y=R.empty;for(let v=p.length-1;v>=0;v--)y=R.from(p[v].copy(y));let w=t.tr.step(new $e(e.pos-p.length,e.pos+i.nodeSize,e.pos+h,e.pos+i.nodeSize-h,new I(y,p.length,0),0,!0));n(w.scrollIntoView())}return!0}}return!1}function _g(t){return function(e,n){let o=e.selection,r=t<0?o.$from:o.$to,i=r.depth;for(;r.node(i).isInline;){if(!i)return!1;i--}return r.node(i).isTextblock?(n&&n(e.tr.setSelection(W.create(e.doc,t<0?r.start(i):r.end(i)))),!0):!1}}const Qk=_g(-1),Zk=_g(1);function Xk(t,e=null){return function(n,o){let{$from:r,$to:i}=n.selection,s=r.blockRange(i),a=s&&Ec(s,t,e);return a?(o&&o(n.tr.wrap(s,a).scrollIntoView()),!0):!1}}function Ug(t,e=null){return function(n,o){let r=!1;for(let i=0;i<n.selection.ranges.length&&!r;i++){let{$from:{pos:s},$to:{pos:a}}=n.selection.ranges[i];n.doc.nodesBetween(s,a,(l,c)=>{if(r)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)r=!0;else{let u=n.doc.resolve(c),d=u.index();r=u.parent.canReplaceWith(d,d+1,t)}})}if(!r)return!1;if(o){let i=n.tr;for(let s=0;s<n.selection.ranges.length;s++){let{$from:{pos:a},$to:{pos:l}}=n.selection.ranges[s];i.setBlockType(a,l,t,e)}o(i.scrollIntoView())}return!0}}function uu(...t){return function(e,n,o){for(let r=0;r<t.length;r++)if(t[r](e,n,o))return!0;return!1}}uu(su,Mg,Pg),uu(su,Lg,zg),uu(Fg,Bg,Hg,Wk),typeof navigator<"u"?/Macintosh|iPhone|iPad|iPod/.test(navigator.userAgent):typeof os<"u"&&os.platform&&os.platform()=="darwin";function ex(t,e=null){return function(n,o){let{$from:r,$to:i}=n.selection,s=r.blockRange(i);if(!s)return!1;let a=o?n.tr:null;return tx(a,s,t,e)?(o&&o(a.scrollIntoView()),!0):!1}}function tx(t,e,n,o=null){let r=!1,i=e,s=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(n)&&e.startIndex==0){if(e.$from.index(e.depth-1)==0)return!1;let l=s.resolve(e.start-2);i=new Cs(l,l,e.depth),e.endIndex<e.parent.childCount&&(e=new Cs(e.$from,s.resolve(e.$to.end(e.depth)),e.depth)),r=!0}let a=Ec(i,n,o,e);return a?(t&&nx(t,e,a,r,n),!0):!1}function nx(t,e,n,o,r){let i=R.empty;for(let u=n.length-1;u>=0;u--)i=R.from(n[u].type.create(n[u].attrs,i));t.step(new $e(e.start-(o?2:0),e.end,e.start,e.end,new I(i,0,0),n.length,!0));let s=0;for(let u=0;u<n.length;u++)n[u].type==r&&(s=u+1);let a=n.length-s,l=e.start+n.length-(o?2:0),c=e.parent;for(let u=e.startIndex,d=e.endIndex,m=!0;u<d;u++,m=!1)!m&&_t(t.doc,l,a)&&(t.split(l,a),l+=2*a),l+=c.child(u).nodeSize;return t}function ox(t){return function(e,n){let{$from:o,$to:r}=e.selection,i=o.blockRange(r,s=>s.childCount>0&&s.firstChild.type==t);return i?n?o.node(i.depth-1).type==t?rx(e,n,t,i):ix(e,n,i):!0:!1}}function rx(t,e,n,o){let r=t.tr,i=o.end,s=o.$to.end(o.depth);i<s&&(r.step(new $e(i-1,s,i,s,new I(R.from(n.create(null,o.parent.copy())),1,0),1,!0)),o=new Cs(r.doc.resolve(o.$from.pos),r.doc.resolve(s),o.depth));const a=No(o);if(a==null)return!1;r.lift(o,a);let l=r.doc.resolve(r.mapping.map(i,-1)-1);return cn(r.doc,l.pos)&&l.nodeBefore.type==l.nodeAfter.type&&r.join(l.pos),e(r.scrollIntoView()),!0}function ix(t,e,n){let o=t.tr,r=n.parent;for(let f=n.end,p=n.endIndex-1,g=n.startIndex;p>g;p--)f-=r.child(p).nodeSize,o.delete(f-1,f+1);let i=o.doc.resolve(n.start),s=i.nodeAfter;if(o.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let a=n.startIndex==0,l=n.endIndex==r.childCount,c=i.node(-1),u=i.index(-1);if(!c.canReplace(u+(a?0:1),u+1,s.content.append(l?R.empty:R.from(r))))return!1;let d=i.pos,m=d+s.nodeSize;return o.step(new $e(d-(a?1:0),m+(l?1:0),d+1,m-1,new I((a?R.empty:R.from(r.copy(R.empty))).append(l?R.empty:R.from(r.copy(R.empty))),a?0:1,l?0:1),a?0:1)),e(o.scrollIntoView()),!0}function sx(t){return function(e,n){let{$from:o,$to:r}=e.selection,i=o.blockRange(r,c=>c.childCount>0&&c.firstChild.type==t);if(!i)return!1;let s=i.startIndex;if(s==0)return!1;let a=i.parent,l=a.child(s-1);if(l.type!=t)return!1;if(n){let c=l.lastChild&&l.lastChild.type==a.type,u=R.from(c?t.create():null),d=new I(R.from(t.create(null,R.from(a.type.create(null,u)))),c?3:1,0),m=i.start,f=i.end;n(e.tr.step(new $e(m-(c?3:1),f,m,f,d,1,!0)).scrollIntoView())}return!0}}function Ys(t){const{state:e,transaction:n}=t;let{selection:o}=n,{doc:r}=n,{storedMarks:i}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return i},get selection(){return o},get doc(){return r},get tr(){return o=n.selection,r=n.doc,i=n.storedMarks,n}}}class Js{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:n,state:o}=this,{view:r}=n,{tr:i}=o,s=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([a,l])=>[a,(...u)=>{const d=l(...u)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(i),d}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,n=!0){const{rawCommands:o,editor:r,state:i}=this,{view:s}=r,a=[],l=!!e,c=e||i.tr,u=()=>(!l&&n&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(c),a.every(m=>m===!0)),d={...Object.fromEntries(Object.entries(o).map(([m,f])=>[m,(...g)=>{const h=this.buildProps(c,n),y=f(...g)(h);return a.push(y),d}])),run:u};return d}createCan(e){const{rawCommands:n,state:o}=this,r=!1,i=e||o.tr,s=this.buildProps(i,r);return{...Object.fromEntries(Object.entries(n).map(([l,c])=>[l,(...u)=>c(...u)({...s,dispatch:void 0})])),chain:()=>this.createChain(i,r)}}buildProps(e,n=!0){const{rawCommands:o,editor:r,state:i}=this,{view:s}=r,a={tr:e,editor:r,view:s,state:Ys({state:i,transaction:e}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(e,n),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(o).map(([l,c])=>[l,(...u)=>c(...u)(a)]))}};return a}}let ax=class{constructor(){this.callbacks={}}on(e,n){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(n),this}emit(e,...n){const o=this.callbacks[e];return o&&o.forEach(r=>r.apply(this,n)),this}off(e,n){const o=this.callbacks[e];return o&&(n?this.callbacks[e]=o.filter(r=>r!==n):delete this.callbacks[e]),this}once(e,n){const o=(...r)=>{this.off(e,o),n.apply(this,r)};return this.on(e,o)}removeAllListeners(){this.callbacks={}}};function F(t,e,n){return t.config[e]===void 0&&t.parent?F(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?F(t.parent,e,n):null}):t.config[e]}function Ks(t){const e=t.filter(r=>r.type==="extension"),n=t.filter(r=>r.type==="node"),o=t.filter(r=>r.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:o}}function Yg(t){const e=[],{nodeExtensions:n,markExtensions:o}=Ks(t),r=[...n,...o],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage,extensions:r},l=F(s,"addGlobalAttributes",a);if(!l)return;l().forEach(u=>{u.types.forEach(d=>{Object.entries(u.attributes).forEach(([m,f])=>{e.push({type:d,name:m,attribute:{...i,...f}})})})})}),r.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage},l=F(s,"addAttributes",a);if(!l)return;const c=l();Object.entries(c).forEach(([u,d])=>{const m={...i,...d};typeof(m==null?void 0:m.default)=="function"&&(m.default=m.default()),m!=null&&m.isRequired&&(m==null?void 0:m.default)===void 0&&delete m.default,e.push({type:s.name,name:u,attribute:m})})}),e}function ke(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function Fo(...t){return t.filter(e=>!!e).reduce((e,n)=>{const o={...e};return Object.entries(n).forEach(([r,i])=>{if(!o[r]){o[r]=i;return}if(r==="class"){const a=i?String(i).split(" "):[],l=o[r]?o[r].split(" "):[],c=a.filter(u=>!l.includes(u));o[r]=[...l,...c].join(" ")}else if(r==="style"){const a=i?i.split(";").map(u=>u.trim()).filter(Boolean):[],l=o[r]?o[r].split(";").map(u=>u.trim()).filter(Boolean):[],c=new Map;l.forEach(u=>{const[d,m]=u.split(":").map(f=>f.trim());c.set(d,m)}),a.forEach(u=>{const[d,m]=u.split(":").map(f=>f.trim());c.set(d,m)}),o[r]=Array.from(c.entries()).map(([u,d])=>`${u}: ${d}`).join("; ")}else o[r]=i}),o},{})}function du(t,e){return e.filter(n=>n.type===t.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,o)=>Fo(n,o),{})}function Jg(t){return typeof t=="function"}function X(t,e=void 0,...n){return Jg(t)?e?t.bind(e)(...n):t(...n):t}function lx(t={}){return Object.keys(t).length===0&&t.constructor===Object}function cx(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function Kg(t,e){return"style"in t?t:{...t,getAttrs:n=>{const o=t.getAttrs?t.getAttrs(n):t.attrs;if(o===!1)return!1;const r=e.reduce((i,s)=>{const a=s.attribute.parseHTML?s.attribute.parseHTML(n):cx(n.getAttribute(s.name));return a==null?i:{...i,[s.name]:a}},{});return{...o,...r}}}}function Wg(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&lx(n)?!1:n!=null))}function ux(t,e){var n;const o=Yg(t),{nodeExtensions:r,markExtensions:i}=Ks(t),s=(n=r.find(c=>F(c,"topNode")))===null||n===void 0?void 0:n.name,a=Object.fromEntries(r.map(c=>{const u=o.filter(y=>y.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},m=t.reduce((y,w)=>{const v=F(w,"extendNodeSchema",d);return{...y,...v?v(c):{}}},{}),f=Wg({...m,content:X(F(c,"content",d)),marks:X(F(c,"marks",d)),group:X(F(c,"group",d)),inline:X(F(c,"inline",d)),atom:X(F(c,"atom",d)),selectable:X(F(c,"selectable",d)),draggable:X(F(c,"draggable",d)),code:X(F(c,"code",d)),whitespace:X(F(c,"whitespace",d)),linebreakReplacement:X(F(c,"linebreakReplacement",d)),defining:X(F(c,"defining",d)),isolating:X(F(c,"isolating",d)),attrs:Object.fromEntries(u.map(y=>{var w;return[y.name,{default:(w=y==null?void 0:y.attribute)===null||w===void 0?void 0:w.default}]}))}),p=X(F(c,"parseHTML",d));p&&(f.parseDOM=p.map(y=>Kg(y,u)));const g=F(c,"renderHTML",d);g&&(f.toDOM=y=>g({node:y,HTMLAttributes:du(y,u)}));const h=F(c,"renderText",d);return h&&(f.toText=h),[c.name,f]})),l=Object.fromEntries(i.map(c=>{const u=o.filter(h=>h.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},m=t.reduce((h,y)=>{const w=F(y,"extendMarkSchema",d);return{...h,...w?w(c):{}}},{}),f=Wg({...m,inclusive:X(F(c,"inclusive",d)),excludes:X(F(c,"excludes",d)),group:X(F(c,"group",d)),spanning:X(F(c,"spanning",d)),code:X(F(c,"code",d)),attrs:Object.fromEntries(u.map(h=>{var y;return[h.name,{default:(y=h==null?void 0:h.attribute)===null||y===void 0?void 0:y.default}]}))}),p=X(F(c,"parseHTML",d));p&&(f.parseDOM=p.map(h=>Kg(h,u)));const g=F(c,"renderHTML",d);return g&&(f.toDOM=h=>g({mark:h,HTMLAttributes:du(h,u)})),[c.name,f]}));return new Fp({topNode:s,nodes:a,marks:l})}function mu(t,e){return e.nodes[t]||e.marks[t]||null}function qg(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}function fu(t,e){const n=Kn.fromSchema(e).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}const dx=(t,e=500)=>{let n="";const o=t.parentOffset;return t.parent.nodesBetween(Math.max(0,o-e),o,(r,i,s,a)=>{var l,c;const u=((c=(l=r.type.spec).toText)===null||c===void 0?void 0:c.call(l,{node:r,pos:i,parent:s,index:a}))||r.textContent||"%leaf%";n+=r.isAtom&&!r.isText?u:u.slice(0,Math.max(0,o-i))}),n};function pu(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class mx{constructor(e){this.find=e.find,this.handler=e.handler}}const fx=(t,e)=>{if(pu(e))return e.exec(t);const n=e(t);if(!n)return null;const o=[n.text];return o.index=n.index,o.input=t,o.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),o.push(n.replaceWith)),o};function Ws(t){var e;const{editor:n,from:o,to:r,text:i,rules:s,plugin:a}=t,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(o);if(c.parent.type.spec.code||!((e=c.nodeBefore||c.nodeAfter)===null||e===void 0)&&e.marks.find(m=>m.type.spec.code))return!1;let u=!1;const d=dx(c)+i;return s.forEach(m=>{if(u)return;const f=fx(d,m.find);if(!f)return;const p=l.state.tr,g=Ys({state:l.state,transaction:p}),h={from:o-(f[0].length-i.length),to:r},{commands:y,chain:w,can:v}=new Js({editor:n,state:g});m.handler({state:g,range:h,match:f,commands:y,chain:w,can:v})===null||!p.steps.length||(p.setMeta(a,{transform:p,from:o,to:r,text:i}),l.dispatch(p),u=!0)}),u}function px(t){const{editor:e,rules:n}=t,o=new Ke({state:{init(){return null},apply(r,i,s){const a=r.getMeta(o);if(a)return a;const l=r.getMeta("applyInputRules");return!!l&&setTimeout(()=>{let{text:u}=l;typeof u=="string"?u=u:u=fu(R.from(u),s.schema);const{from:d}=l,m=d+u.length;Ws({editor:e,from:d,to:m,text:u,rules:n,plugin:o})}),r.selectionSet||r.docChanged?null:i}},props:{handleTextInput(r,i,s,a){return Ws({editor:e,from:i,to:s,text:a,rules:n,plugin:o})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:i}=r.state.selection;i&&Ws({editor:e,from:i.pos,to:i.pos,text:"",rules:n,plugin:o})}),!1)},handleKeyDown(r,i){if(i.key!=="Enter")return!1;const{$cursor:s}=r.state.selection;return s?Ws({editor:e,from:s.pos,to:s.pos,text:`
30
- `,rules:n,plugin:o}):!1}},isInputRules:!0});return o}function hx(t){return Object.prototype.toString.call(t).slice(8,-1)}function qs(t){return hx(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function Gs(t,e){const n={...t};return qs(t)&&qs(e)&&Object.keys(e).forEach(o=>{qs(e[o])&&qs(t[o])?n[o]=Gs(t[o],e[o]):n[o]=e[o]}),n}class Wr{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=X(F(this,"addOptions",{name:this.name}))),this.storage=X(F(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Wr(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Gs(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new Wr(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=X(F(n,"addOptions",{name:n.name})),n.storage=X(F(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:e,mark:n}){const{tr:o}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){const s=r.marks();if(!!!s.find(c=>(c==null?void 0:c.type.name)===n.name))return!1;const l=s.find(c=>(c==null?void 0:c.type.name)===n.name);return l&&o.removeStoredMark(l),o.insertText(" ",r.pos),e.view.dispatch(o),!0}return!1}}function gx(t){return typeof t=="number"}class yx{constructor(e){this.find=e.find,this.handler=e.handler}}const bx=(t,e,n)=>{if(pu(e))return[...t.matchAll(e)];const o=e(t,n);return o?o.map(r=>{const i=[r.text];return i.index=r.index,i.input=t,i.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),i.push(r.replaceWith)),i}):[]};function wx(t){const{editor:e,state:n,from:o,to:r,rule:i,pasteEvent:s,dropEvent:a}=t,{commands:l,chain:c,can:u}=new Js({editor:e,state:n}),d=[];return n.doc.nodesBetween(o,r,(f,p)=>{if(!f.isTextblock||f.type.spec.code)return;const g=Math.max(o,p),h=Math.min(r,p+f.content.size),y=f.textBetween(g-p,h-p,void 0,"");bx(y,i.find,s).forEach(v=>{if(v.index===void 0)return;const S=g+v.index+1,C=S+v[0].length,$={from:n.tr.mapping.map(S),to:n.tr.mapping.map(C)},k=i.handler({state:n,range:$,match:v,commands:l,chain:c,can:u,pasteEvent:s,dropEvent:a});d.push(k)})}),d.every(f=>f!==null)}let Qs=null;const vx=t=>{var e;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=n.clipboardData)===null||e===void 0||e.setData("text/html",t),n};function Sx(t){const{editor:e,rules:n}=t;let o=null,r=!1,i=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,a;try{a=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{a=null}const l=({state:u,from:d,to:m,rule:f,pasteEvt:p})=>{const g=u.tr,h=Ys({state:u,transaction:g});if(!(!wx({editor:e,state:h,from:Math.max(d-1,0),to:m.b-1,rule:f,pasteEvent:p,dropEvent:a})||!g.steps.length)){try{a=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{a=null}return s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,g}};return n.map(u=>new Ke({view(d){const m=p=>{var g;o=!((g=d.dom.parentElement)===null||g===void 0)&&g.contains(p.target)?d.dom.parentElement:null,o&&(Qs=e)},f=()=>{Qs&&(Qs=null)};return window.addEventListener("dragstart",m),window.addEventListener("dragend",f),{destroy(){window.removeEventListener("dragstart",m),window.removeEventListener("dragend",f)}}},props:{handleDOMEvents:{drop:(d,m)=>{if(i=o===d.dom.parentElement,a=m,!i){const f=Qs;f!=null&&f.isEditable&&setTimeout(()=>{const p=f.state.selection;p&&f.commands.deleteRange({from:p.from,to:p.to})},10)}return!1},paste:(d,m)=>{var f;const p=(f=m.clipboardData)===null||f===void 0?void 0:f.getData("text/html");return s=m,r=!!(p!=null&&p.includes("data-pm-slice")),!1}}},appendTransaction:(d,m,f)=>{const p=d[0],g=p.getMeta("uiEvent")==="paste"&&!r,h=p.getMeta("uiEvent")==="drop"&&!i,y=p.getMeta("applyPasteRules"),w=!!y;if(!g&&!h&&!w)return;if(w){let{text:C}=y;typeof C=="string"?C=C:C=fu(R.from(C),f.schema);const{from:$}=y,k=$+C.length,N=vx(C);return l({rule:u,state:f,from:$,to:{b:k},pasteEvt:N})}const v=m.doc.content.findDiffStart(f.doc.content),S=m.doc.content.findDiffEnd(f.doc.content);if(!(!gx(v)||!S||v===S.b))return l({rule:u,state:f,from:v,to:S,pasteEvt:s})}}))}function $x(t){const e=t.filter((n,o)=>t.indexOf(n)!==o);return Array.from(new Set(e))}class Bo{constructor(e,n){this.splittableMarks=[],this.editor=n,this.extensions=Bo.resolve(e),this.schema=ux(this.extensions,n),this.setupExtensions()}static resolve(e){const n=Bo.sort(Bo.flatten(e)),o=$x(n.map(r=>r.name));return o.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${o.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),n}static flatten(e){return e.map(n=>{const o={name:n.name,options:n.options,storage:n.storage},r=F(n,"addExtensions",o);return r?[n,...this.flatten(r())]:n}).flat(10)}static sort(e){return e.sort((o,r)=>{const i=F(o,"priority")||100,s=F(r,"priority")||100;return i>s?-1:i<s?1:0})}get commands(){return this.extensions.reduce((e,n)=>{const o={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:mu(n.name,this.schema)},r=F(n,"addCommands",o);return r?{...e,...r()}:e},{})}get plugins(){const{editor:e}=this,n=Bo.sort([...this.extensions].reverse()),o=[],r=[],i=n.map(s=>{const a={name:s.name,options:s.options,storage:s.storage,editor:e,type:mu(s.name,this.schema)},l=[],c=F(s,"addKeyboardShortcuts",a);let u={};if(s.type==="mark"&&F(s,"exitable",a)&&(u.ArrowRight=()=>Wr.handleExit({editor:e,mark:s})),c){const g=Object.fromEntries(Object.entries(c()).map(([h,y])=>[h,()=>y({editor:e})]));u={...u,...g}}const d=Fk(u);l.push(d);const m=F(s,"addInputRules",a);qg(s,e.options.enableInputRules)&&m&&o.push(...m());const f=F(s,"addPasteRules",a);qg(s,e.options.enablePasteRules)&&f&&r.push(...f());const p=F(s,"addProseMirrorPlugins",a);if(p){const g=p();l.push(...g)}return l}).flat();return[px({editor:e,rules:o}),...Sx({editor:e,rules:r}),...i]}get attributes(){return Yg(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:n}=Ks(this.extensions);return Object.fromEntries(n.filter(o=>!!F(o,"addNodeView")).map(o=>{const r=this.attributes.filter(l=>l.type===o.name),i={name:o.name,options:o.options,storage:o.storage,editor:e,type:ke(o.name,this.schema)},s=F(o,"addNodeView",i);if(!s)return[];const a=(l,c,u,d,m)=>{const f=du(l,r);return s()({node:l,view:c,getPos:u,decorations:d,innerDecorations:m,editor:e,extension:o,HTMLAttributes:f})};return[o.name,a]}))}setupExtensions(){this.extensions.forEach(e=>{var n;this.editor.extensionStorage[e.name]=e.storage;const o={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:mu(e.name,this.schema)};e.type==="mark"&&(!((n=X(F(e,"keepOnSplit",o)))!==null&&n!==void 0)||n)&&this.splittableMarks.push(e.name);const r=F(e,"onBeforeCreate",o),i=F(e,"onCreate",o),s=F(e,"onUpdate",o),a=F(e,"onSelectionUpdate",o),l=F(e,"onTransaction",o),c=F(e,"onFocus",o),u=F(e,"onBlur",o),d=F(e,"onDestroy",o);r&&this.editor.on("beforeCreate",r),i&&this.editor.on("create",i),s&&this.editor.on("update",s),a&&this.editor.on("selectionUpdate",a),l&&this.editor.on("transaction",l),c&&this.editor.on("focus",c),u&&this.editor.on("blur",u),d&&this.editor.on("destroy",d)})}}class mt{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=X(F(this,"addOptions",{name:this.name}))),this.storage=X(F(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new mt(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Gs(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new mt({...this.config,...e});return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=X(F(n,"addOptions",{name:n.name})),n.storage=X(F(n,"addStorage",{name:n.name,options:n.options})),n}}function Gg(t,e,n){const{from:o,to:r}=e,{blockSeparator:i=`
28
+ `))),0,0),t.someProp("transformPasted",m=>{a=m(a,t,!0)}),a;let d=t.someProp("clipboardTextParser",m=>m(e,r,o,t));if(d)a=d;else{let m=r.marks(),{schema:f}=t.state,p=Kn.fromSchema(f);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let h=s.appendChild(document.createElement("p"));g&&h.appendChild(p.serializeNode(f.text(g,m)))})}}else t.someProp("transformPastedHTML",d=>{n=d(n,t)}),s=H1(n),Fr&&V1(s);let c=s&&s.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let d=+u[3];d>0;d--){let m=s.firstChild;for(;m&&m.nodeType!=1;)m=m.nextSibling;if(!m)break;s=m}if(a||(a=(t.someProp("clipboardParser")||t.someProp("domParser")||Tr.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(l||u),context:r,ruleFromNode(m){return m.nodeName=="BR"&&!m.nextSibling&&m.parentNode&&!z1.test(m.parentNode.nodeName)?{ignore:!0}:null}})),u)a=_1(sg(a,+u[1],+u[2]),u[4]);else if(a=I.maxOpen(B1(a.content,r),!0),a.openStart||a.openEnd){let d=0,m=0;for(let f=a.content.firstChild;d<a.openStart&&!f.type.spec.isolating;d++,f=f.firstChild);for(let f=a.content.lastChild;m<a.openEnd&&!f.type.spec.isolating;m++,f=f.lastChild);a=sg(a,d,m)}return t.someProp("transformPasted",d=>{a=d(a,t,l)}),a}const z1=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function B1(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.index(n)),i,s=[];if(t.forEach(a=>{if(!s)return;let l=r.findWrapping(a.type),c;if(!l)return s=null;if(c=s.length&&i.length&&rg(l,i,a,s[s.length-1],0))s[s.length-1]=c;else{s.length&&(s[s.length-1]=ig(s[s.length-1],i.length));let u=og(a,l);s.push(u),r=r.matchType(u.type),i=l}}),s)return R.from(s)}return t}function og(t,e,n=0){for(let o=e.length-1;o>=n;o--)t=e[o].create(null,R.from(t));return t}function rg(t,e,n,o,r){if(r<t.length&&r<e.length&&t[r]==e[r]){let i=rg(t,e,n,o.lastChild,r+1);if(i)return o.copy(o.content.replaceChild(o.childCount-1,i));if(o.contentMatchAt(o.childCount).matchType(r==t.length-1?n.type:t[r+1]))return o.copy(o.content.append(R.from(og(n,t,r+1))))}}function ig(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,ig(t.lastChild,e-1)),o=t.contentMatchAt(t.childCount).fillBefore(R.empty,!0);return t.copy(n.append(o))}function Wc(t,e,n,o,r,i){let s=e<0?t.firstChild:t.lastChild,a=s.content;return t.childCount>1&&(i=0),r<o-1&&(a=Wc(a,e,n,o,r+1,i)),r>=n&&(a=e<0?s.contentMatchAt(0).fillBefore(a,i<=r).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(R.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(a))}function sg(t,e,n){return e<t.openStart&&(t=new I(Wc(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new I(Wc(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const ag={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let lg=null;function cg(){return lg||(lg=document.implementation.createHTMLDocument("title"))}let qc=null;function F1(t){let e=window.trustedTypes;return e?(qc||(qc=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),qc.createHTML(t)):t}function H1(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=cg().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(t),r;if((r=o&&ag[o[1].toLowerCase()])&&(t=r.map(i=>"<"+i+">").join("")+t+r.map(i=>"</"+i+">").reverse().join("")),n.innerHTML=F1(t),r)for(let i=0;i<r.length;i++)n=n.querySelector(r[i])||n;return n}function V1(t){let e=t.querySelectorAll(Oe?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let o=e[n];o.childNodes.length==1&&o.textContent==" "&&o.parentNode&&o.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),o)}}function _1(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,o;try{o=JSON.parse(e)}catch{return t}let{content:r,openStart:i,openEnd:s}=t;for(let a=o.length-2;a>=0;a-=2){let l=n.nodes[o[a]];if(!l||l.hasRequiredAttrs())break;r=R.from(l.create(o[a+1],r)),i++,s++}return new I(r,i,s)}const Ve={},_e={},U1={touchstart:!0,touchmove:!0};class Y1{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function J1(t){for(let e in Ve){let n=Ve[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=o=>{W1(t,o)&&!Qc(t,o)&&(t.editable||!(o.type in _e))&&n(t,o)},U1[e]?{passive:!0}:void 0)}Pe&&t.dom.addEventListener("input",()=>null),Gc(t)}function pn(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function K1(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function Gc(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=o=>Qc(t,o))})}function Qc(t,e){return t.someProp("handleDOMEvents",n=>{let o=n[e.type];return o?o(t,e)||e.defaultPrevented:!1})}function W1(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function q1(t,e){!Qc(t,e)&&Ve[e.type]&&(t.editable||!(e.type in _e))&&Ve[e.type](t,e)}_e.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!dg(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(Yt&&Oe&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),Mo&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let o=Date.now();t.input.lastIOSEnter=o,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==o&&(t.someProp("handleKeyDown",r=>r(t,Gn(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",o=>o(t,n))||L1(t,n)?n.preventDefault():pn(t,"key")},_e.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},_e.keypress=(t,e)=>{let n=e;if(dg(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||ct&&n.metaKey)return;if(t.someProp("handleKeyPress",r=>r(t,n))){n.preventDefault();return}let o=t.state.selection;if(!(o instanceof W)||!o.$from.sameParent(o.$to)){let r=String.fromCharCode(n.charCode),i=()=>t.state.tr.insertText(r).scrollIntoView();!/[\r\n]/.test(r)&&!t.someProp("handleTextInput",s=>s(t,o.$from.pos,o.$to.pos,r,i))&&t.dispatch(i()),n.preventDefault()}};function Fs(t){return{left:t.clientX,top:t.clientY}}function G1(t,e){let n=e.x-t.clientX,o=e.y-t.clientY;return n*n+o*o<100}function Zc(t,e,n,o,r){if(o==-1)return!1;let i=t.state.doc.resolve(o);for(let s=i.depth+1;s>0;s--)if(t.someProp(e,a=>s>i.depth?a(t,n,i.nodeAfter,i.before(s),r,!0):a(t,n,i.node(s),i.before(s),r,!1)))return!0;return!1}function Io(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let o=t.state.tr.setSelection(e);o.setMeta("pointer",!0),t.dispatch(o)}function Q1(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),o=n.nodeAfter;return o&&o.isAtom&&V.isSelectable(o)?(Io(t,new V(n)),!0):!1}function Z1(t,e){if(e==-1)return!1;let n=t.state.selection,o,r;n instanceof V&&(o=n.node);let i=t.state.doc.resolve(e);for(let s=i.depth+1;s>0;s--){let a=s>i.depth?i.nodeAfter:i.node(s);if(V.isSelectable(a)){o&&n.$from.depth>0&&s>=n.$from.depth&&i.before(n.$from.depth+1)==n.$from.pos?r=i.before(n.$from.depth):r=i.before(s);break}}return r!=null?(Io(t,V.create(t.state.doc,r)),!0):!1}function X1(t,e,n,o,r){return Zc(t,"handleClickOn",e,n,o)||t.someProp("handleClick",i=>i(t,e,o))||(r?Z1(t,n):Q1(t,n))}function ek(t,e,n,o){return Zc(t,"handleDoubleClickOn",e,n,o)||t.someProp("handleDoubleClick",r=>r(t,e,o))}function tk(t,e,n,o){return Zc(t,"handleTripleClickOn",e,n,o)||t.someProp("handleTripleClick",r=>r(t,e,o))||nk(t,n,o)}function nk(t,e,n){if(n.button!=0)return!1;let o=t.state.doc;if(e==-1)return o.inlineContent?(Io(t,W.create(o,0,o.content.size)),!0):!1;let r=o.resolve(e);for(let i=r.depth+1;i>0;i--){let s=i>r.depth?r.nodeAfter:r.node(i),a=r.before(i);if(s.inlineContent)Io(t,W.create(o,a+1,a+1+s.content.size));else if(V.isSelectable(s))Io(t,V.create(o,a));else continue;return!0}}function Xc(t){return Hs(t)}const ug=ct?"metaKey":"ctrlKey";Ve.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let o=Xc(t),r=Date.now(),i="singleClick";r-t.input.lastClick.time<500&&G1(n,t.input.lastClick)&&!n[ug]&&t.input.lastClick.button==n.button&&(t.input.lastClick.type=="singleClick"?i="doubleClick":t.input.lastClick.type=="doubleClick"&&(i="tripleClick")),t.input.lastClick={time:r,x:n.clientX,y:n.clientY,type:i,button:n.button};let s=t.posAtCoords(Fs(n));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new ok(t,s,n,!!o)):(i=="doubleClick"?ek:tk)(t,s.pos,s.inside,n)?n.preventDefault():pn(t,"pointer"))};class ok{constructor(e,n,o,r){this.view=e,this.pos=n,this.event=o,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!o[ug],this.allowDefault=o.shiftKey;let i,s;if(n.inside>-1)i=e.state.doc.nodeAt(n.inside),s=n.inside;else{let u=e.state.doc.resolve(n.pos);i=u.parent,s=u.depth?u.before():0}const a=r?null:o.target,l=a?e.docView.nearestDesc(a,!0):null;this.target=l&&l.nodeDOM.nodeType==1?l.nodeDOM:null;let{selection:c}=e.state;(o.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||c instanceof V&&c.from<=s&&c.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&lt&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),pn(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Kt(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(Fs(e))),this.updateAllowDefault(e),this.allowDefault||!n?pn(this.view,"pointer"):X1(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Pe&&this.mightDrag&&!this.mightDrag.node.isAtom||Oe&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Io(this.view,Z.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):pn(this.view,"pointer")}move(e){this.updateAllowDefault(e),pn(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}Ve.touchstart=t=>{t.input.lastTouch=Date.now(),Xc(t),pn(t,"pointer")},Ve.touchmove=t=>{t.input.lastTouch=Date.now(),pn(t,"pointer")},Ve.contextmenu=t=>Xc(t);function dg(t,e){return t.composing?!0:Pe&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const rk=Yt?5e3:-1;_e.compositionstart=_e.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof W&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(o=>o.type.spec.inclusive===!1)||Oe&&$h&&ik(t)))t.markCursor=t.state.storedMarks||n.marks(),Hs(t,!0),t.markCursor=null;else if(Hs(t,!e.selection.empty),lt&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let o=t.domSelectionRange();for(let r=o.focusNode,i=o.focusOffset;r&&r.nodeType==1&&i!=0;){let s=i<0?r.lastChild:r.childNodes[i-1];if(!s)break;if(s.nodeType==3){let a=t.domSelection();a&&a.collapse(s,s.nodeValue.length);break}else r=s,i=-1}}t.input.composing=!0}mg(t,rk)};function ik(t){let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(!e||e.nodeType!=1||n>=e.childNodes.length)return!1;let o=e.childNodes[n];return o.nodeType==1&&o.contentEditable=="false"}_e.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.badSafariComposition?t.domObserver.forceFlush():t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,mg(t,20))};function mg(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>Hs(t),e))}function fg(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=ak());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function sk(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=Z$(e.focusNode,e.focusOffset),o=X$(e.focusNode,e.focusOffset);if(n&&o&&n!=o){let r=o.pmViewDesc,i=t.domObserver.lastChangedTextNode;if(n==i||o==i)return i;if(!r||!r.isText(o.nodeValue))return o;if(t.input.compositionNode==o){let s=n.pmViewDesc;if(!(!s||!s.isText(n.nodeValue)))return o}}return n||o}function ak(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function Hs(t,e=!1){if(!(Yt&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),fg(t),e||t.docView&&t.docView.dirty){let n=Vc(t),o=t.state.selection;return n&&!n.eq(o)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!o.$from.node(o.$from.sharedDepth(o.to)).inlineContent?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function lk(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let o=getSelection(),r=document.createRange();r.selectNodeContents(e),t.dom.blur(),o.removeAllRanges(),o.addRange(r),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const Yr=We&&un<15||Mo&&o1<604;Ve.copy=_e.cut=(t,e)=>{let n=e,o=t.state.selection,r=n.type=="cut";if(o.empty)return;let i=Yr?null:n.clipboardData,s=o.content(),{dom:a,text:l}=Kc(t,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",l)):lk(t,a),r&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function ck(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function uk(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,o=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(o.contentEditable="true"),o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus();let r=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),o.parentNode&&o.parentNode.removeChild(o),n?Jr(t,o.value,null,r,e):Jr(t,o.textContent,o.innerHTML,r,e)},50)}function Jr(t,e,n,o,r){let i=ng(t,e,n,o,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,r,i||I.empty)))return!0;if(!i)return!1;let s=ck(i),a=s?t.state.tr.replaceSelectionWith(s,o):t.state.tr.replaceSelection(i);return t.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function pg(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}_e.paste=(t,e)=>{let n=e;if(t.composing&&!Yt)return;let o=Yr?null:n.clipboardData,r=t.input.shiftKey&&t.input.lastKeyCode!=45;o&&Jr(t,pg(o),o.getData("text/html"),r,n)?n.preventDefault():uk(t,n)};class hg{constructor(e,n,o){this.slice=e,this.move=n,this.node=o}}const dk=ct?"altKey":"ctrlKey";function gg(t,e){let n=t.someProp("dragCopies",o=>!o(e));return n??!e[dk]}Ve.dragstart=(t,e)=>{let n=e,o=t.input.mouseDown;if(o&&o.done(),!n.dataTransfer)return;let r=t.state.selection,i=r.empty?null:t.posAtCoords(Fs(n)),s;if(!(i&&i.pos>=r.from&&i.pos<=(r instanceof V?r.to-1:r.to))){if(o&&o.mightDrag)s=V.create(t.state.doc,o.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=t.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=t.docView&&(s=V.create(t.state.doc,d.posBefore))}}let a=(s||t.state.selection).content(),{dom:l,text:c,slice:u}=Kc(t,a);(!n.dataTransfer.files.length||!Oe||Sh>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Yr?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",Yr||n.dataTransfer.setData("text/plain",c),t.dragging=new hg(u,gg(t,n),s)},Ve.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},_e.dragover=_e.dragenter=(t,e)=>e.preventDefault(),_e.drop=(t,e)=>{try{mk(t,e,t.dragging)}finally{t.dragging=null}};function mk(t,e,n){if(!e.dataTransfer)return;let o=t.posAtCoords(Fs(e));if(!o)return;let r=t.state.doc.resolve(o.pos),i=n&&n.slice;i?t.someProp("transformPasted",f=>{i=f(i,t,!1)}):i=ng(t,pg(e.dataTransfer),Yr?null:e.dataTransfer.getData("text/html"),!1,r);let s=!!(n&&gg(t,e));if(t.someProp("handleDrop",f=>f(t,e,i||I.empty,s))){e.preventDefault();return}if(!i)return;e.preventDefault();let a=i?B$(t.state.doc,r.pos,i):r.pos;a==null&&(a=r.pos);let l=t.state.tr;if(s){let{node:f}=n;f?f.replace(l):l.deleteSelection()}let c=l.mapping.map(a),u=i.openStart==0&&i.openEnd==0&&i.content.childCount==1,d=l.doc;if(u?l.replaceRangeWith(c,c,i.content.firstChild):l.replaceRange(c,c,i),l.doc.eq(d))return;let m=l.doc.resolve(c);if(u&&V.isSelectable(i.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(i.content.firstChild))l.setSelection(new V(m));else{let f=l.mapping.map(a);l.mapping.maps[l.mapping.maps.length-1].forEach((p,g,h,y)=>f=y),l.setSelection(Uc(t,m,l.doc.resolve(f)))}t.focus(),t.dispatch(l.setMeta("uiEvent","drop"))}Ve.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&Kt(t)},20))},Ve.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},Ve.beforeinput=(t,e)=>{if(Oe&&Yt&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:o}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=o||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",i=>i(t,Gn(8,"Backspace")))))return;let{$cursor:r}=t.state.selection;r&&r.pos>0&&t.dispatch(t.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let t in _e)Ve[t]=_e[t];function Kr(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class Vs{constructor(e,n){this.toDOM=e,this.spec=n||eo,this.side=this.spec.side||0}map(e,n,o,r){let{pos:i,deleted:s}=e.mapResult(n.from+r,this.side<0?-1:1);return s?null:new dt(i-o,i-o,this)}valid(){return!0}eq(e){return this==e||e instanceof Vs&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Kr(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class hn{constructor(e,n){this.attrs=e,this.spec=n||eo}map(e,n,o,r){let i=e.map(n.from+r,this.spec.inclusiveStart?-1:1)-o,s=e.map(n.to+r,this.spec.inclusiveEnd?1:-1)-o;return i>=s?null:new dt(i,s,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof hn&&Kr(this.attrs,e.attrs)&&Kr(this.spec,e.spec)}static is(e){return e.type instanceof hn}destroy(){}}class eu{constructor(e,n){this.attrs=e,this.spec=n||eo}map(e,n,o,r){let i=e.mapResult(n.from+r,1);if(i.deleted)return null;let s=e.mapResult(n.to+r,-1);return s.deleted||s.pos<=i.pos?null:new dt(i.pos-o,s.pos-o,this)}valid(e,n){let{index:o,offset:r}=e.content.findIndex(n.from),i;return r==n.from&&!(i=e.child(o)).isText&&r+i.nodeSize==n.to}eq(e){return this==e||e instanceof eu&&Kr(this.attrs,e.attrs)&&Kr(this.spec,e.spec)}destroy(){}}class dt{constructor(e,n,o){this.from=e,this.to=n,this.type=o}copy(e,n){return new dt(e,n,this.type)}eq(e,n=0){return this.type.eq(e.type)&&this.from+n==e.from&&this.to+n==e.to}map(e,n,o){return this.type.map(e,this,n,o)}static widget(e,n,o){return new dt(e,e,new Vs(n,o))}static inline(e,n,o,r){return new dt(e,n,new hn(o,r))}static node(e,n,o,r){return new dt(e,n,new eu(o,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof hn}get widget(){return this.type instanceof Vs}}const Lo=[],eo={};class we{constructor(e,n){this.local=e.length?e:Lo,this.children=n.length?n:Lo}static create(e,n){return n.length?_s(n,e,0,eo):Ie}find(e,n,o){let r=[];return this.findInner(e??0,n??1e9,r,0,o),r}findInner(e,n,o,r,i){for(let s=0;s<this.local.length;s++){let a=this.local[s];a.from<=n&&a.to>=e&&(!i||i(a.spec))&&o.push(a.copy(a.from+r,a.to+r))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<n&&this.children[s+1]>e){let a=this.children[s]+1;this.children[s+2].findInner(e-a,n-a,o,r+a,i)}}map(e,n,o){return this==Ie||e.maps.length==0?this:this.mapInner(e,n,0,0,o||eo)}mapInner(e,n,o,r,i){let s;for(let a=0;a<this.local.length;a++){let l=this.local[a].map(e,o,r);l&&l.type.valid(n,l)?(s||(s=[])).push(l):i.onRemove&&i.onRemove(this.local[a].spec)}return this.children.length?fk(this.children,s||[],e,n,o,r,i):s?new we(s.sort(to),Lo):Ie}add(e,n){return n.length?this==Ie?we.create(e,n):this.addInner(e,n,0):this}addInner(e,n,o){let r,i=0;e.forEach((a,l)=>{let c=l+o,u;if(u=bg(n,a,c)){for(r||(r=this.children.slice());i<r.length&&r[i]<l;)i+=3;r[i]==l?r[i+2]=r[i+2].addInner(a,u,c+1):r.splice(i,0,l,l+a.nodeSize,_s(u,a,c+1,eo)),i+=3}});let s=yg(i?wg(n):n,-o);for(let a=0;a<s.length;a++)s[a].type.valid(e,s[a])||s.splice(a--,1);return new we(s.length?this.local.concat(s).sort(to):this.local,r||this.children)}remove(e){return e.length==0||this==Ie?this:this.removeInner(e,0)}removeInner(e,n){let o=this.children,r=this.local;for(let i=0;i<o.length;i+=3){let s,a=o[i]+n,l=o[i+1]+n;for(let u=0,d;u<e.length;u++)(d=e[u])&&d.from>a&&d.to<l&&(e[u]=null,(s||(s=[])).push(d));if(!s)continue;o==this.children&&(o=this.children.slice());let c=o[i+2].removeInner(s,a+1);c!=Ie?o[i+2]=c:(o.splice(i,3),i-=3)}if(r.length){for(let i=0,s;i<e.length;i++)if(s=e[i])for(let a=0;a<r.length;a++)r[a].eq(s,n)&&(r==this.local&&(r=this.local.slice()),r.splice(a--,1))}return o==this.children&&r==this.local?this:r.length||o.length?new we(r,o):Ie}forChild(e,n){if(this==Ie)return this;if(n.isLeaf)return we.empty;let o,r;for(let a=0;a<this.children.length;a+=3)if(this.children[a]>=e){this.children[a]==e&&(o=this.children[a+2]);break}let i=e+1,s=i+n.content.size;for(let a=0;a<this.local.length;a++){let l=this.local[a];if(l.from<s&&l.to>i&&l.type instanceof hn){let c=Math.max(i,l.from)-i,u=Math.min(s,l.to)-i;c<u&&(r||(r=[])).push(l.copy(c,u))}}if(r){let a=new we(r.sort(to),Lo);return o?new gn([a,o]):a}return o||Ie}eq(e){if(this==e)return!0;if(!(e instanceof we)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(e.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0}locals(e){return tu(this.localsInner(e))}localsInner(e){if(this==Ie)return Lo;if(e.inlineContent||!this.local.some(hn.is))return this.local;let n=[];for(let o=0;o<this.local.length;o++)this.local[o].type instanceof hn||n.push(this.local[o]);return n}forEachSet(e){e(this)}}we.empty=new we([],[]),we.removeOverlap=tu;const Ie=we.empty;class gn{constructor(e){this.members=e}map(e,n){const o=this.members.map(r=>r.map(e,n,eo));return gn.from(o)}forChild(e,n){if(n.isLeaf)return we.empty;let o=[];for(let r=0;r<this.members.length;r++){let i=this.members[r].forChild(e,n);i!=Ie&&(i instanceof gn?o=o.concat(i.members):o.push(i))}return gn.from(o)}eq(e){if(!(e instanceof gn)||e.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(e.members[n]))return!1;return!0}locals(e){let n,o=!0;for(let r=0;r<this.members.length;r++){let i=this.members[r].localsInner(e);if(i.length)if(!n)n=i;else{o&&(n=n.slice(),o=!1);for(let s=0;s<i.length;s++)n.push(i[s])}}return n?tu(o?n:n.sort(to)):Lo}static from(e){switch(e.length){case 0:return Ie;case 1:return e[0];default:return new gn(e.every(n=>n instanceof we)?e:e.reduce((n,o)=>n.concat(o instanceof we?o:o.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(e)}}function fk(t,e,n,o,r,i,s){let a=t.slice();for(let c=0,u=i;c<n.maps.length;c++){let d=0;n.maps[c].forEach((m,f,p,g)=>{let h=g-p-(f-m);for(let y=0;y<a.length;y+=3){let w=a[y+1];if(w<0||m>w+u-d)continue;let v=a[y]+u-d;f>=v?a[y+1]=m<=v?-2:-1:m>=u&&h&&(a[y]+=h,a[y+1]+=h)}d+=h}),u=n.maps[c].map(u,-1)}let l=!1;for(let c=0;c<a.length;c+=3)if(a[c+1]<0){if(a[c+1]==-2){l=!0,a[c+1]=-1;continue}let u=n.map(t[c]+i),d=u-r;if(d<0||d>=o.content.size){l=!0;continue}let m=n.map(t[c+1]+i,-1),f=m-r,{index:p,offset:g}=o.content.findIndex(d),h=o.maybeChild(p);if(h&&g==d&&g+h.nodeSize==f){let y=a[c+2].mapInner(n,h,u+1,t[c]+i+1,s);y!=Ie?(a[c]=d,a[c+1]=f,a[c+2]=y):(a[c+1]=-2,l=!0)}else l=!0}if(l){let c=pk(a,t,e,n,r,i,s),u=_s(c,o,0,s);e=u.local;for(let d=0;d<a.length;d+=3)a[d+1]<0&&(a.splice(d,3),d-=3);for(let d=0,m=0;d<u.children.length;d+=3){let f=u.children[d];for(;m<a.length&&a[m]<f;)m+=3;a.splice(m,0,u.children[d],u.children[d+1],u.children[d+2])}}return new we(e.sort(to),a)}function yg(t,e){if(!e||!t.length)return t;let n=[];for(let o=0;o<t.length;o++){let r=t[o];n.push(new dt(r.from+e,r.to+e,r.type))}return n}function pk(t,e,n,o,r,i,s){function a(l,c){for(let u=0;u<l.local.length;u++){let d=l.local[u].map(o,r,c);d?n.push(d):s.onRemove&&s.onRemove(l.local[u].spec)}for(let u=0;u<l.children.length;u+=3)a(l.children[u+2],l.children[u]+c+1)}for(let l=0;l<t.length;l+=3)t[l+1]==-1&&a(t[l+2],e[l]+i+1);return n}function bg(t,e,n){if(e.isLeaf)return null;let o=n+e.nodeSize,r=null;for(let i=0,s;i<t.length;i++)(s=t[i])&&s.from>n&&s.to<o&&((r||(r=[])).push(s),t[i]=null);return r}function wg(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function _s(t,e,n,o){let r=[],i=!1;e.forEach((a,l)=>{let c=bg(t,a,l+n);if(c){i=!0;let u=_s(c,a,n+l+1,o);u!=Ie&&r.push(l,l+a.nodeSize,u)}});let s=yg(i?wg(t):t,-n).sort(to);for(let a=0;a<s.length;a++)s[a].type.valid(e,s[a])||(o.onRemove&&o.onRemove(s[a].spec),s.splice(a--,1));return s.length||r.length?new we(s,r):Ie}function to(t,e){return t.from-e.from||t.to-e.to}function tu(t){let e=t;for(let n=0;n<e.length-1;n++){let o=e[n];if(o.from!=o.to)for(let r=n+1;r<e.length;r++){let i=e[r];if(i.from==o.from){i.to!=o.to&&(e==t&&(e=t.slice()),e[r]=i.copy(i.from,o.to),vg(e,r+1,i.copy(o.to,i.to)));continue}else{i.from<o.to&&(e==t&&(e=t.slice()),e[n]=o.copy(o.from,i.from),vg(e,r,o.copy(i.from,o.to)));break}}}return e}function vg(t,e,n){for(;e<t.length&&to(n,t[e])>0;)e++;t.splice(e,0,n)}function nu(t){let e=[];return t.someProp("decorations",n=>{let o=n(t.state);o&&o!=Ie&&e.push(o)}),t.cursorWrapper&&e.push(we.create(t.state.doc,[t.cursorWrapper.deco])),gn.from(e)}const hk={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},gk=We&&un<=11;class yk{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class bk{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new yk,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(o=>{for(let r=0;r<o.length;r++)this.queue.push(o[r]);We&&un<=11&&o.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():Pe&&e.composing&&o.some(r=>r.type=="childList"&&r.target.nodeName=="TR")?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),gk&&(this.onCharData=o=>{this.queue.push({target:o.target,type:"characterData",oldValue:o.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,hk)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;n<e.length;n++)this.queue.push(e[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Wh(this.view)){if(this.suppressingSelectionUpdates)return Kt(this.view);if(We&&un<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&qn(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,o;for(let i=e.focusNode;i;i=To(i))n.add(i);for(let i=e.anchorNode;i;i=To(i))if(n.has(i)){o=i;break}let r=o&&this.view.docView.nearestDesc(o);if(r&&r.ignoreMutation({type:"selection",target:o.nodeType==3?o.parentNode:o}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let o=e.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(o)&&Wh(e)&&!this.ignoreSelectionChange(o),i=-1,s=-1,a=!1,l=[];if(e.editable)for(let u=0;u<n.length;u++){let d=this.registerMutation(n[u],l);d&&(i=i<0?d.from:Math.min(d.from,i),s=s<0?d.to:Math.max(d.to,s),d.typeOver&&(a=!0))}if(l.some(u=>u.nodeName=="BR")&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46)){for(let u of l)if(u.nodeName=="BR"&&u.parentNode){let d=u.nextSibling;for(;d&&d.nodeType==1;){if(d.contentEditable=="false"){u.parentNode.removeChild(u);break}d=d.firstChild}}}else if(lt&&l.length){let u=l.filter(d=>d.nodeName=="BR");if(u.length==2){let[d,m]=u;d.parentNode&&d.parentNode.parentNode==m.parentNode?m.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let m of u){let f=m.parentNode;f&&f.nodeName=="LI"&&(!d||Sk(e,d)!=f)&&m.remove()}}}let c=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Is(o)&&(c=Vc(e))&&c.eq(Z.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Kt(e),this.currentSelection.set(o),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,s),wk(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,$k(e,l)),this.handleDOMChange(i,s,a,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(o)||Kt(e),this.currentSelection.set(o))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let o=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(o==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!o||o.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;u<e.addedNodes.length;u++){let d=e.addedNodes[u];n.push(d),d.nodeType==3&&(this.lastChangedTextNode=d)}if(o.contentDOM&&o.contentDOM!=o.dom&&!o.contentDOM.contains(e.target))return{from:o.posBefore,to:o.posAfter};let r=e.previousSibling,i=e.nextSibling;if(We&&un<=11&&e.addedNodes.length)for(let u=0;u<e.addedNodes.length;u++){let{previousSibling:d,nextSibling:m}=e.addedNodes[u];(!d||Array.prototype.indexOf.call(e.addedNodes,d)<0)&&(r=d),(!m||Array.prototype.indexOf.call(e.addedNodes,m)<0)&&(i=m)}let s=r&&r.parentNode==e.target?Ae(r)+1:0,a=o.localPosFromDOM(e.target,s,-1),l=i&&i.parentNode==e.target?Ae(i):e.target.childNodes.length,c=o.localPosFromDOM(e.target,l,1);return{from:a,to:c}}else return e.type=="attributes"?{from:o.posAtStart-o.border,to:o.posAtEnd+o.border}:(this.lastChangedTextNode=e.target,{from:o.posAtStart,to:o.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let Sg=new WeakMap,$g=!1;function wk(t){if(!Sg.has(t)&&(Sg.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=lt,$g)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),$g=!0}}function kg(t,e){let n=e.startContainer,o=e.startOffset,r=e.endContainer,i=e.endOffset,s=t.domAtPos(t.state.selection.anchor);return qn(s.node,s.offset,r,i)&&([n,o,r,i]=[r,i,n,o]),{anchorNode:n,anchorOffset:o,focusNode:r,focusOffset:i}}function vk(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return kg(t,r)}let n;function o(r){r.preventDefault(),r.stopImmediatePropagation(),n=r.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",o,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",o,!0),n?kg(t,n):null}function Sk(t,e){for(let n=e.parentNode;n&&n!=t.dom;n=n.parentNode){let o=t.docView.nearestDesc(n,!0);if(o&&o.node.isBlock)return n}return null}function $k(t,e){var n;let{focusNode:o,focusOffset:r}=t.domSelectionRange();for(let i of e)if(((n=i.parentNode)===null||n===void 0?void 0:n.nodeName)=="TR"){let s=i.nextSibling;for(;s&&s.nodeName!="TD"&&s.nodeName!="TH";)s=s.nextSibling;if(s){let a=s;for(;;){let l=a.firstChild;if(!l||l.nodeType!=1||l.contentEditable=="false"||/^(BR|IMG)$/.test(l.nodeName))break;a=l}a.insertBefore(i,a.firstChild),o==i&&t.domSelection().collapse(i,r)}else i.parentNode.removeChild(i)}}function kk(t,e,n){let{node:o,fromOffset:r,toOffset:i,from:s,to:a}=t.docView.parseRange(e,n),l=t.domSelectionRange(),c,u=l.anchorNode;if(u&&t.dom.contains(u.nodeType==1?u:u.parentNode)&&(c=[{node:u,offset:l.anchorOffset}],Is(l)||c.push({node:l.focusNode,offset:l.focusOffset})),Oe&&t.input.lastKeyCode===8)for(let h=i;h>r;h--){let y=o.childNodes[h-1],w=y.pmViewDesc;if(y.nodeName=="BR"&&!w){i=h;break}if(!w||w.size)break}let d=t.state.doc,m=t.someProp("domParser")||Tr.fromSchema(t.state.schema),f=d.resolve(s),p=null,g=m.parse(o,{topNode:f.parent,topMatch:f.parent.contentMatchAt(f.index()),topOpen:!0,from:r,to:i,preserveWhitespace:f.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:xk,context:f});if(c&&c[0].pos!=null){let h=c[0].pos,y=c[1]&&c[1].pos;y==null&&(y=h),p={anchor:h+s,head:y+s}}return{doc:g,sel:p,from:s,to:a}}function xk(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(Pe&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||Pe&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const Ck=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function Ek(t,e,n,o,r){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let k=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,N=Vc(t,k);if(N&&!t.state.selection.eq(N)){if(Oe&&Yt&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",H=>H(t,Gn(13,"Enter"))))return;let O=t.state.tr.setSelection(N);k=="pointer"?O.setMeta("pointer",!0):k=="key"&&O.scrollIntoView(),i&&O.setMeta("composition",i),t.dispatch(O)}return}let s=t.state.doc.resolve(e),a=s.sharedDepth(n);e=s.before(a+1),n=t.state.doc.resolve(n).after(a+1);let l=t.state.selection,c=kk(t,e,n),u=t.state.doc,d=u.slice(c.from,c.to),m,f;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(m=t.state.selection.to,f="end"):(m=t.state.selection.from,f="start"),t.input.lastKeyCode=null;let p=Ok(d.content,c.doc.content,c.from,m,f);if(p&&t.input.domChangeCount++,(Mo&&t.input.lastIOSEnter>Date.now()-225||Yt)&&r.some(k=>k.nodeType==1&&!Ck.test(k.nodeName))&&(!p||p.endA>=p.endB)&&t.someProp("handleKeyDown",k=>k(t,Gn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!p)if(o&&l instanceof W&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))p={start:l.from,endA:l.to,endB:l.to};else{if(c.sel){let k=xg(t,t.state.doc,c.sel);if(k&&!k.eq(t.state.selection)){let N=t.state.tr.setSelection(k);i&&N.setMeta("composition",i),t.dispatch(N)}}return}t.state.selection.from<t.state.selection.to&&p.start==p.endB&&t.state.selection instanceof W&&(p.start>t.state.selection.from&&p.start<=t.state.selection.from+2&&t.state.selection.from>=c.from?p.start=t.state.selection.from:p.endA<t.state.selection.to&&p.endA>=t.state.selection.to-2&&t.state.selection.to<=c.to&&(p.endB+=t.state.selection.to-p.endA,p.endA=t.state.selection.to)),We&&un<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>c.from&&c.doc.textBetween(p.start-c.from-1,p.start-c.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let g=c.doc.resolveNoCache(p.start-c.from),h=c.doc.resolveNoCache(p.endB-c.from),y=u.resolve(p.start),w=g.sameParent(h)&&g.parent.inlineContent&&y.end()>=p.endA;if((Mo&&t.input.lastIOSEnter>Date.now()-225&&(!w||r.some(k=>k.nodeName=="DIV"||k.nodeName=="P"))||!w&&g.pos<c.doc.content.size&&(!g.sameParent(h)||!g.parent.inlineContent)&&g.pos<h.pos&&!/\S/.test(c.doc.textBetween(g.pos,h.pos,"","")))&&t.someProp("handleKeyDown",k=>k(t,Gn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>p.start&&Ak(u,p.start,p.endA,g,h)&&t.someProp("handleKeyDown",k=>k(t,Gn(8,"Backspace")))){Yt&&Oe&&t.domObserver.suppressSelectionUpdates();return}Oe&&p.endB==p.start&&(t.input.lastChromeDelete=Date.now()),Yt&&!w&&g.start()!=h.start()&&h.parentOffset==0&&g.depth==h.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==p.endA&&(p.endB-=2,h=c.doc.resolveNoCache(p.endB-c.from),setTimeout(()=>{t.someProp("handleKeyDown",function(k){return k(t,Gn(13,"Enter"))})},20));let v=p.start,S=p.endA,C=k=>{let N=k||t.state.tr.replace(v,S,c.doc.slice(p.start-c.from,p.endB-c.from));if(c.sel){let O=xg(t,N.doc,c.sel);O&&!(Oe&&t.composing&&O.empty&&(p.start!=p.endB||t.input.lastChromeDelete<Date.now()-100)&&(O.head==v||O.head==N.mapping.map(S)-1)||We&&O.empty&&O.head==v)&&N.setSelection(O)}return i&&N.setMeta("composition",i),N.scrollIntoView()},$;if(w)if(g.pos==h.pos){We&&un<=11&&g.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Kt(t),20));let k=C(t.state.tr.delete(v,S)),N=u.resolve(p.start).marksAcross(u.resolve(p.endA));N&&k.ensureMarks(N),t.dispatch(k)}else if(p.endA==p.endB&&($=Nk(g.parent.content.cut(g.parentOffset,h.parentOffset),y.parent.content.cut(y.parentOffset,p.endA-y.start())))){let k=C(t.state.tr);$.type=="add"?k.addMark(v,S,$.mark):k.removeMark(v,S,$.mark),t.dispatch(k)}else if(g.parent.child(g.index()).isText&&g.index()==h.index()-(h.textOffset?0:1)){let k=g.parent.textBetween(g.parentOffset,h.parentOffset),N=()=>C(t.state.tr.insertText(k,v,S));t.someProp("handleTextInput",O=>O(t,v,S,k,N))||t.dispatch(N())}else t.dispatch(C());else t.dispatch(C())}function xg(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:Uc(t,e.resolve(n.anchor),e.resolve(n.head))}function Nk(t,e){let n=t.firstChild.marks,o=e.firstChild.marks,r=n,i=o,s,a,l;for(let u=0;u<o.length;u++)r=o[u].removeFromSet(r);for(let u=0;u<n.length;u++)i=n[u].removeFromSet(i);if(r.length==1&&i.length==0)a=r[0],s="add",l=u=>u.mark(a.addToSet(u.marks));else if(r.length==0&&i.length==1)a=i[0],s="remove",l=u=>u.mark(a.removeFromSet(u.marks));else return null;let c=[];for(let u=0;u<e.childCount;u++)c.push(l(e.child(u)));if(R.from(c).eq(t))return{mark:a,type:s}}function Ak(t,e,n,o,r){if(n-e<=r.pos-o.pos||ou(o,!0,!1)<r.pos)return!1;let i=t.resolve(e);if(!o.parent.isTextblock){let a=i.nodeAfter;return a!=null&&n==e+a.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let s=t.resolve(ou(i,!0,!0));return!s.parent.isTextblock||s.pos>n||ou(s,!0,!1)<n?!1:o.parent.content.cut(o.parentOffset).eq(s.parent.content)}function ou(t,e,n){let o=t.depth,r=e?t.end():t.pos;for(;o>0&&(e||t.indexAfter(o)==t.node(o).childCount);)o--,r++,e=!1;if(n){let i=t.node(o).maybeChild(t.indexAfter(o));for(;i&&!i.isLeaf;)i=i.firstChild,r++}return r}function Ok(t,e,n,o,r){let i=t.findDiffStart(e,n);if(i==null)return null;let{a:s,b:a}=t.findDiffEnd(e,n+t.size,n+e.size);if(r=="end"){let l=Math.max(0,i-Math.min(s,a));o-=s+l-i}if(s<i&&t.size<e.size){let l=o<=i&&o>=s?i-o:0;i-=l,i&&i<e.size&&Cg(e.textBetween(i-1,i+1))&&(i+=l?1:-1),a=i+(a-s),s=i}else if(a<i){let l=o<=i&&o>=a?i-o:0;i-=l,i&&i<t.size&&Cg(t.textBetween(i-1,i+1))&&(i+=l?1:-1),s=i+(s-a),a=i}return{start:i,endA:s,endB:a}}function Cg(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),n=t.charCodeAt(1);return e>=56320&&e<=57343&&n>=55296&&n<=56319}class Eg{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new Y1,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(Dg),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=Og(this),Ag(this),this.nodeViews=Rg(this),this.docView=Ih(this.state.doc,Ng(this),nu(this),this.dom,this),this.domObserver=new bk(this,(o,r,i,s)=>Ek(this,o,r,i,s)),this.domObserver.start(),J1(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Gc(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Dg),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let o in this._props)n[o]=this._props[o];n.state=this.state;for(let o in e)n[o]=e[o];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var o;let r=this.state,i=!1,s=!1;e.storedMarks&&this.composing&&(fg(this),s=!0),this.state=e;let a=r.plugins!=e.plugins||this._props.plugins!=n.plugins;if(a||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let f=Rg(this);Dk(f,this.nodeViews)&&(this.nodeViews=f,i=!0)}(a||n.handleDOMEvents!=this._props.handleDOMEvents)&&Gc(this),this.editable=Og(this),Ag(this);let l=nu(this),c=Ng(this),u=r.plugins!=e.plugins&&!r.doc.eq(e.doc)?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",d=i||!this.docView.matchesNode(e.doc,c,l);(d||!e.selection.eq(r.selection))&&(s=!0);let m=u=="preserve"&&s&&this.dom.style.overflowAnchor==null&&s1(this);if(s){this.domObserver.stop();let f=d&&(We||Oe)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&Rk(r.selection,e.selection);if(d){let p=Oe?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=sk(this)),(i||!this.docView.update(e.doc,c,l,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=Ih(e.doc,c,l,this.dom,this)),p&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(f=!0)}f||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&R1(this))?Kt(this,f):(Jh(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),!((o=this.dragging)===null||o===void 0)&&o.node&&!r.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,r),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():m&&a1(m)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof V){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&kh(this,n.getBoundingClientRect(),e)}else kh(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let o=this.directPlugins[n];o.spec.view&&this.pluginViews.push(o.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let o=this.state.plugins[n];o.spec.view&&this.pluginViews.push(o.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let o=this.pluginViews[n];o.update&&o.update(this,e)}}updateDraggedNode(e,n){let o=e.node,r=-1;if(o.from<this.state.doc.content.size&&this.state.doc.nodeAt(o.from)==o.node)r=o.from;else{let i=o.from+(this.state.doc.content.size-n.doc.content.size);(i>0&&i<this.state.doc.content.size&&this.state.doc.nodeAt(i))==o.node&&(r=i)}this.dragging=new hg(e.slice,e.move,r<0?void 0:V.create(this.state.doc,r))}someProp(e,n){let o=this._props&&this._props[e],r;if(o!=null&&(r=n?n(o):o))return r;for(let s=0;s<this.directPlugins.length;s++){let a=this.directPlugins[s].props[e];if(a!=null&&(r=n?n(a):a))return r}let i=this.state.plugins;if(i)for(let s=0;s<i.length;s++){let a=i[s].props[e];if(a!=null&&(r=n?n(a):a))return r}}hasFocus(){if(We){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&l1(this.dom),Kt(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return f1(this,e)}coordsAtPos(e,n=1){return Oh(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,o=-1){let r=this.docView.posFromDOM(e,n,o);if(r==null)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,n){return b1(this,n||this.state,e)}pasteHTML(e,n){return Jr(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Jr(this,e,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(e){return Kc(this,e)}destroy(){this.docView&&(K1(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],nu(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,G$())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return q1(this,e)}domSelectionRange(){let e=this.domSelection();return e?Pe&&this.root.nodeType===11&&t1(this.dom.ownerDocument)==this.dom&&vk(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}Eg.prototype.dispatch=function(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))};function Ng(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let o in n)o=="class"?e.class+=" "+n[o]:o=="style"?e.style=(e.style?e.style+";":"")+n[o]:!e[o]&&o!="contenteditable"&&o!="nodeName"&&(e[o]=String(n[o]))}),e.translate||(e.translate="no"),[dt.node(0,t.state.doc.content.size,e)]}function Ag(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:dt.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function Og(t){return!t.someProp("editable",e=>e(t.state)===!1)}function Rk(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function Rg(t){let e=Object.create(null);function n(o){for(let r in o)Object.prototype.hasOwnProperty.call(e,r)||(e[r]=o[r])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function Dk(t,e){let n=0,o=0;for(let r in t){if(t[r]!=e[r])return!0;n++}for(let r in e)o++;return n!=o}function Dg(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var yn={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Us={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Tk=typeof navigator<"u"&&/Macintosh/.test(navigator.userAgent),Mk=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Re=0;Re<10;Re++)yn[48+Re]=yn[96+Re]=String(Re);for(var Re=1;Re<=24;Re++)yn[Re+111]="F"+Re;for(var Re=65;Re<=90;Re++)yn[Re]=String.fromCharCode(Re+32),Us[Re]=String.fromCharCode(Re);for(var ru in yn)Us.hasOwnProperty(ru)||(Us[ru]=yn[ru]);function jk(t){var e=Tk&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Mk&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?Us:yn)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const Pk=typeof navigator<"u"&&/Macintosh|iPhone|iPad|iPod/.test(navigator.userAgent),Ik=typeof navigator<"u"&&/Win/.test(navigator.platform);function Lk(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let o,r,i,s;for(let a=0;a<e.length-1;a++){let l=e[a];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))o=!0;else if(/^(c|ctrl|control)$/i.test(l))r=!0;else if(/^s(hift)?$/i.test(l))i=!0;else if(/^mod$/i.test(l))Pk?s=!0:r=!0;else throw new Error("Unrecognized modifier name: "+l)}return o&&(n="Alt-"+n),r&&(n="Ctrl-"+n),s&&(n="Meta-"+n),i&&(n="Shift-"+n),n}function zk(t){let e=Object.create(null);for(let n in t)e[Lk(n)]=t[n];return e}function iu(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function Bk(t){return new Ke({props:{handleKeyDown:Fk(t)}})}function Fk(t){let e=zk(t);return function(n,o){let r=jk(o),i,s=e[iu(r,o)];if(s&&s(n.state,n.dispatch,n))return!0;if(r.length==1&&r!=" "){if(o.shiftKey){let a=e[iu(r,o,!1)];if(a&&a(n.state,n.dispatch,n))return!0}if((o.altKey||o.metaKey||o.ctrlKey)&&!(Ik&&o.ctrlKey&&o.altKey)&&(i=yn[o.keyCode])&&i!=r){let a=e[iu(i,o)];if(a&&a(n.state,n.dispatch,n))return!0}}return!1}}const su=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function Tg(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const Mg=(t,e,n)=>{let o=Tg(t,n);if(!o)return!1;let r=au(o);if(!r){let s=o.blockRange(),a=s&&No(s);return a==null?!1:(e&&e(t.tr.lift(s,a).scrollIntoView()),!0)}let i=r.nodeBefore;if(Vg(t,r,e,-1))return!0;if(o.parent.content.size==0&&(zo(i,"end")||V.isSelectable(i)))for(let s=o.depth;;s--){let a=Ms(t.doc,o.before(s),o.after(s),I.empty);if(a&&a.slice.size<a.to-a.from){if(e){let l=t.tr.step(a);l.setSelection(zo(i,"end")?Z.findFrom(l.doc.resolve(l.mapping.map(r.pos,-1)),-1):V.create(l.doc,r.pos-i.nodeSize)),e(l.scrollIntoView())}return!0}if(s==1||o.node(s-1).childCount>1)break}return i.isAtom&&r.depth==o.depth-1?(e&&e(t.tr.delete(r.pos-i.nodeSize,r.pos).scrollIntoView()),!0):!1},Hk=(t,e,n)=>{let o=Tg(t,n);if(!o)return!1;let r=au(o);return r?jg(t,r,e):!1},Vk=(t,e,n)=>{let o=Ig(t,n);if(!o)return!1;let r=lu(o);return r?jg(t,r,e):!1};function jg(t,e,n){let o=e.nodeBefore,r=o,i=e.pos-1;for(;!r.isTextblock;i--){if(r.type.spec.isolating)return!1;let u=r.lastChild;if(!u)return!1;r=u}let s=e.nodeAfter,a=s,l=e.pos+1;for(;!a.isTextblock;l++){if(a.type.spec.isolating)return!1;let u=a.firstChild;if(!u)return!1;a=u}let c=Ms(t.doc,i,l,I.empty);if(!c||c.from!=i||c instanceof Se&&c.slice.size>=l-i)return!1;if(n){let u=t.tr.step(c);u.setSelection(W.create(u.doc,i)),n(u.scrollIntoView())}return!0}function zo(t,e,n=!1){for(let o=t;o;o=e=="start"?o.firstChild:o.lastChild){if(o.isTextblock)return!0;if(n&&o.childCount!=1)return!1}return!1}const Pg=(t,e,n)=>{let{$head:o,empty:r}=t.selection,i=o;if(!r)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):o.parentOffset>0)return!1;i=au(o)}let s=i&&i.nodeBefore;return!s||!V.isSelectable(s)?!1:(e&&e(t.tr.setSelection(V.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function au(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function Ig(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const Lg=(t,e,n)=>{let o=Ig(t,n);if(!o)return!1;let r=lu(o);if(!r)return!1;let i=r.nodeAfter;if(Vg(t,r,e,1))return!0;if(o.parent.content.size==0&&(zo(i,"start")||V.isSelectable(i))){let s=Ms(t.doc,o.before(),o.after(),I.empty);if(s&&s.slice.size<s.to-s.from){if(e){let a=t.tr.step(s);a.setSelection(zo(i,"start")?Z.findFrom(a.doc.resolve(a.mapping.map(r.pos)),1):V.create(a.doc,a.mapping.map(r.pos))),e(a.scrollIntoView())}return!0}}return i.isAtom&&r.depth==o.depth-1?(e&&e(t.tr.delete(r.pos,r.pos+i.nodeSize).scrollIntoView()),!0):!1},zg=(t,e,n)=>{let{$head:o,empty:r}=t.selection,i=o;if(!r)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):o.parentOffset<o.parent.content.size)return!1;i=lu(o)}let s=i&&i.nodeAfter;return!s||!V.isSelectable(s)?!1:(e&&e(t.tr.setSelection(V.create(t.doc,i.pos)).scrollIntoView()),!0)};function lu(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}const _k=(t,e)=>{let n=t.selection,o=n instanceof V,r;if(o){if(n.node.isTextblock||!cn(t.doc,n.from))return!1;r=n.from}else if(r=Ts(t.doc,n.from,-1),r==null)return!1;if(e){let i=t.tr.join(r);o&&i.setSelection(V.create(i.doc,r-t.doc.resolve(r).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},Uk=(t,e)=>{let n=t.selection,o;if(n instanceof V){if(n.node.isTextblock||!cn(t.doc,n.to))return!1;o=n.to}else if(o=Ts(t.doc,n.to,1),o==null)return!1;return e&&e(t.tr.join(o).scrollIntoView()),!0},Yk=(t,e)=>{let{$from:n,$to:o}=t.selection,r=n.blockRange(o),i=r&&No(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)},Bg=(t,e)=>{let{$head:n,$anchor:o}=t.selection;return!n.parent.type.spec.code||!n.sameParent(o)?!1:(e&&e(t.tr.insertText(`
29
+ `).scrollIntoView()),!0)};function cu(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const Jk=(t,e)=>{let{$head:n,$anchor:o}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(o))return!1;let r=n.node(-1),i=n.indexAfter(-1),s=cu(r.contentMatchAt(i));if(!s||!r.canReplaceWith(i,i,s))return!1;if(e){let a=n.after(),l=t.tr.replaceWith(a,a,s.createAndFill());l.setSelection(Z.near(l.doc.resolve(a),1)),e(l.scrollIntoView())}return!0},Fg=(t,e)=>{let n=t.selection,{$from:o,$to:r}=n;if(n instanceof ot||o.parent.inlineContent||r.parent.inlineContent)return!1;let i=cu(r.parent.contentMatchAt(r.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let s=(!o.parentOffset&&r.index()<r.parent.childCount?o:r).pos,a=t.tr.insert(s,i.createAndFill());a.setSelection(W.create(a.doc,s+1)),e(a.scrollIntoView())}return!0},Hg=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if(_t(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let o=n.blockRange(),r=o&&No(o);return r==null?!1:(e&&e(t.tr.lift(o,r).scrollIntoView()),!0)};function Kk(t){return(e,n)=>{let{$from:o,$to:r}=e.selection;if(e.selection instanceof V&&e.selection.node.isBlock)return!o.parentOffset||!_t(e.doc,o.pos)?!1:(n&&n(e.tr.split(o.pos).scrollIntoView()),!0);if(!o.depth)return!1;let i=[],s,a,l=!1,c=!1;for(let f=o.depth;;f--)if(o.node(f).isBlock){l=o.end(f)==o.pos+(o.depth-f),c=o.start(f)==o.pos-(o.depth-f),a=cu(o.node(f-1).contentMatchAt(o.indexAfter(f-1))),i.unshift(l&&a?{type:a}:null),s=f;break}else{if(f==1)return!1;i.unshift(null)}let u=e.tr;(e.selection instanceof W||e.selection instanceof ot)&&u.deleteSelection();let d=u.mapping.map(o.pos),m=_t(u.doc,d,i.length,i);if(m||(i[0]=a?{type:a}:null,m=_t(u.doc,d,i.length,i)),!m)return!1;if(u.split(d,i.length,i),!l&&c&&o.node(s).type!=a){let f=u.mapping.map(o.before(s)),p=u.doc.resolve(f);a&&o.node(s-1).canReplaceWith(p.index(),p.index()+1,a)&&u.setNodeMarkup(u.mapping.map(o.before(s)),a)}return n&&n(u.scrollIntoView()),!0}}const Wk=Kk(),qk=(t,e)=>{let{$from:n,to:o}=t.selection,r,i=n.sharedDepth(o);return i==0?!1:(r=n.before(i),e&&e(t.tr.setSelection(V.create(t.doc,r))),!0)};function Gk(t,e,n){let o=e.nodeBefore,r=e.nodeAfter,i=e.index();return!o||!r||!o.type.compatibleContent(r.type)?!1:!o.content.size&&e.parent.canReplace(i-1,i)?(n&&n(t.tr.delete(e.pos-o.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(r.isTextblock||cn(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function Vg(t,e,n,o){let r=e.nodeBefore,i=e.nodeAfter,s,a,l=r.type.spec.isolating||i.type.spec.isolating;if(!l&&Gk(t,e,n))return!0;let c=!l&&e.parent.canReplace(e.index(),e.index()+1);if(c&&(s=(a=r.contentMatchAt(r.childCount)).findWrapping(i.type))&&a.matchType(s[0]||i.type).validEnd){if(n){let f=e.pos+i.nodeSize,p=R.empty;for(let y=s.length-1;y>=0;y--)p=R.from(s[y].create(null,p));p=R.from(r.copy(p));let g=t.tr.step(new $e(e.pos-1,f,e.pos,f,new I(p,1,0),s.length,!0)),h=g.doc.resolve(f+2*s.length);h.nodeAfter&&h.nodeAfter.type==r.type&&cn(g.doc,h.pos)&&g.join(h.pos),n(g.scrollIntoView())}return!0}let u=i.type.spec.isolating||o>0&&l?null:Z.findFrom(e,1),d=u&&u.$from.blockRange(u.$to),m=d&&No(d);if(m!=null&&m>=e.depth)return n&&n(t.tr.lift(d,m).scrollIntoView()),!0;if(c&&zo(i,"start",!0)&&zo(r,"end")){let f=r,p=[];for(;p.push(f),!f.isTextblock;)f=f.lastChild;let g=i,h=1;for(;!g.isTextblock;g=g.firstChild)h++;if(f.canReplace(f.childCount,f.childCount,g.content)){if(n){let y=R.empty;for(let v=p.length-1;v>=0;v--)y=R.from(p[v].copy(y));let w=t.tr.step(new $e(e.pos-p.length,e.pos+i.nodeSize,e.pos+h,e.pos+i.nodeSize-h,new I(y,p.length,0),0,!0));n(w.scrollIntoView())}return!0}}return!1}function _g(t){return function(e,n){let o=e.selection,r=t<0?o.$from:o.$to,i=r.depth;for(;r.node(i).isInline;){if(!i)return!1;i--}return r.node(i).isTextblock?(n&&n(e.tr.setSelection(W.create(e.doc,t<0?r.start(i):r.end(i)))),!0):!1}}const Qk=_g(-1),Zk=_g(1);function Xk(t,e=null){return function(n,o){let{$from:r,$to:i}=n.selection,s=r.blockRange(i),a=s&&Ec(s,t,e);return a?(o&&o(n.tr.wrap(s,a).scrollIntoView()),!0):!1}}function Ug(t,e=null){return function(n,o){let r=!1;for(let i=0;i<n.selection.ranges.length&&!r;i++){let{$from:{pos:s},$to:{pos:a}}=n.selection.ranges[i];n.doc.nodesBetween(s,a,(l,c)=>{if(r)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)r=!0;else{let u=n.doc.resolve(c),d=u.index();r=u.parent.canReplaceWith(d,d+1,t)}})}if(!r)return!1;if(o){let i=n.tr;for(let s=0;s<n.selection.ranges.length;s++){let{$from:{pos:a},$to:{pos:l}}=n.selection.ranges[s];i.setBlockType(a,l,t,e)}o(i.scrollIntoView())}return!0}}function uu(...t){return function(e,n,o){for(let r=0;r<t.length;r++)if(t[r](e,n,o))return!0;return!1}}uu(su,Mg,Pg),uu(su,Lg,zg),uu(Bg,Fg,Hg,Wk),typeof navigator<"u"?/Macintosh|iPhone|iPad|iPod/.test(navigator.userAgent):typeof os<"u"&&os.platform&&os.platform()=="darwin";function ex(t,e=null){return function(n,o){let{$from:r,$to:i}=n.selection,s=r.blockRange(i);if(!s)return!1;let a=o?n.tr:null;return tx(a,s,t,e)?(o&&o(a.scrollIntoView()),!0):!1}}function tx(t,e,n,o=null){let r=!1,i=e,s=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(n)&&e.startIndex==0){if(e.$from.index(e.depth-1)==0)return!1;let l=s.resolve(e.start-2);i=new Cs(l,l,e.depth),e.endIndex<e.parent.childCount&&(e=new Cs(e.$from,s.resolve(e.$to.end(e.depth)),e.depth)),r=!0}let a=Ec(i,n,o,e);return a?(t&&nx(t,e,a,r,n),!0):!1}function nx(t,e,n,o,r){let i=R.empty;for(let u=n.length-1;u>=0;u--)i=R.from(n[u].type.create(n[u].attrs,i));t.step(new $e(e.start-(o?2:0),e.end,e.start,e.end,new I(i,0,0),n.length,!0));let s=0;for(let u=0;u<n.length;u++)n[u].type==r&&(s=u+1);let a=n.length-s,l=e.start+n.length-(o?2:0),c=e.parent;for(let u=e.startIndex,d=e.endIndex,m=!0;u<d;u++,m=!1)!m&&_t(t.doc,l,a)&&(t.split(l,a),l+=2*a),l+=c.child(u).nodeSize;return t}function ox(t){return function(e,n){let{$from:o,$to:r}=e.selection,i=o.blockRange(r,s=>s.childCount>0&&s.firstChild.type==t);return i?n?o.node(i.depth-1).type==t?rx(e,n,t,i):ix(e,n,i):!0:!1}}function rx(t,e,n,o){let r=t.tr,i=o.end,s=o.$to.end(o.depth);i<s&&(r.step(new $e(i-1,s,i,s,new I(R.from(n.create(null,o.parent.copy())),1,0),1,!0)),o=new Cs(r.doc.resolve(o.$from.pos),r.doc.resolve(s),o.depth));const a=No(o);if(a==null)return!1;r.lift(o,a);let l=r.doc.resolve(r.mapping.map(i,-1)-1);return cn(r.doc,l.pos)&&l.nodeBefore.type==l.nodeAfter.type&&r.join(l.pos),e(r.scrollIntoView()),!0}function ix(t,e,n){let o=t.tr,r=n.parent;for(let f=n.end,p=n.endIndex-1,g=n.startIndex;p>g;p--)f-=r.child(p).nodeSize,o.delete(f-1,f+1);let i=o.doc.resolve(n.start),s=i.nodeAfter;if(o.mapping.map(n.end)!=n.start+i.nodeAfter.nodeSize)return!1;let a=n.startIndex==0,l=n.endIndex==r.childCount,c=i.node(-1),u=i.index(-1);if(!c.canReplace(u+(a?0:1),u+1,s.content.append(l?R.empty:R.from(r))))return!1;let d=i.pos,m=d+s.nodeSize;return o.step(new $e(d-(a?1:0),m+(l?1:0),d+1,m-1,new I((a?R.empty:R.from(r.copy(R.empty))).append(l?R.empty:R.from(r.copy(R.empty))),a?0:1,l?0:1),a?0:1)),e(o.scrollIntoView()),!0}function sx(t){return function(e,n){let{$from:o,$to:r}=e.selection,i=o.blockRange(r,c=>c.childCount>0&&c.firstChild.type==t);if(!i)return!1;let s=i.startIndex;if(s==0)return!1;let a=i.parent,l=a.child(s-1);if(l.type!=t)return!1;if(n){let c=l.lastChild&&l.lastChild.type==a.type,u=R.from(c?t.create():null),d=new I(R.from(t.create(null,R.from(a.type.create(null,u)))),c?3:1,0),m=i.start,f=i.end;n(e.tr.step(new $e(m-(c?3:1),f,m,f,d,1,!0)).scrollIntoView())}return!0}}function Ys(t){const{state:e,transaction:n}=t;let{selection:o}=n,{doc:r}=n,{storedMarks:i}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return i},get selection(){return o},get doc(){return r},get tr(){return o=n.selection,r=n.doc,i=n.storedMarks,n}}}class Js{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:n,state:o}=this,{view:r}=n,{tr:i}=o,s=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([a,l])=>[a,(...u)=>{const d=l(...u)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(i),d}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,n=!0){const{rawCommands:o,editor:r,state:i}=this,{view:s}=r,a=[],l=!!e,c=e||i.tr,u=()=>(!l&&n&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(c),a.every(m=>m===!0)),d={...Object.fromEntries(Object.entries(o).map(([m,f])=>[m,(...g)=>{const h=this.buildProps(c,n),y=f(...g)(h);return a.push(y),d}])),run:u};return d}createCan(e){const{rawCommands:n,state:o}=this,r=!1,i=e||o.tr,s=this.buildProps(i,r);return{...Object.fromEntries(Object.entries(n).map(([l,c])=>[l,(...u)=>c(...u)({...s,dispatch:void 0})])),chain:()=>this.createChain(i,r)}}buildProps(e,n=!0){const{rawCommands:o,editor:r,state:i}=this,{view:s}=r,a={tr:e,editor:r,view:s,state:Ys({state:i,transaction:e}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(e,n),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(o).map(([l,c])=>[l,(...u)=>c(...u)(a)]))}};return a}}let ax=class{constructor(){this.callbacks={}}on(e,n){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(n),this}emit(e,...n){const o=this.callbacks[e];return o&&o.forEach(r=>r.apply(this,n)),this}off(e,n){const o=this.callbacks[e];return o&&(n?this.callbacks[e]=o.filter(r=>r!==n):delete this.callbacks[e]),this}once(e,n){const o=(...r)=>{this.off(e,o),n.apply(this,r)};return this.on(e,o)}removeAllListeners(){this.callbacks={}}};function B(t,e,n){return t.config[e]===void 0&&t.parent?B(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?B(t.parent,e,n):null}):t.config[e]}function Ks(t){const e=t.filter(r=>r.type==="extension"),n=t.filter(r=>r.type==="node"),o=t.filter(r=>r.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:o}}function Yg(t){const e=[],{nodeExtensions:n,markExtensions:o}=Ks(t),r=[...n,...o],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage,extensions:r},l=B(s,"addGlobalAttributes",a);if(!l)return;l().forEach(u=>{u.types.forEach(d=>{Object.entries(u.attributes).forEach(([m,f])=>{e.push({type:d,name:m,attribute:{...i,...f}})})})})}),r.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage},l=B(s,"addAttributes",a);if(!l)return;const c=l();Object.entries(c).forEach(([u,d])=>{const m={...i,...d};typeof(m==null?void 0:m.default)=="function"&&(m.default=m.default()),m!=null&&m.isRequired&&(m==null?void 0:m.default)===void 0&&delete m.default,e.push({type:s.name,name:u,attribute:m})})}),e}function ke(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function Bo(...t){return t.filter(e=>!!e).reduce((e,n)=>{const o={...e};return Object.entries(n).forEach(([r,i])=>{if(!o[r]){o[r]=i;return}if(r==="class"){const a=i?String(i).split(" "):[],l=o[r]?o[r].split(" "):[],c=a.filter(u=>!l.includes(u));o[r]=[...l,...c].join(" ")}else if(r==="style"){const a=i?i.split(";").map(u=>u.trim()).filter(Boolean):[],l=o[r]?o[r].split(";").map(u=>u.trim()).filter(Boolean):[],c=new Map;l.forEach(u=>{const[d,m]=u.split(":").map(f=>f.trim());c.set(d,m)}),a.forEach(u=>{const[d,m]=u.split(":").map(f=>f.trim());c.set(d,m)}),o[r]=Array.from(c.entries()).map(([u,d])=>`${u}: ${d}`).join("; ")}else o[r]=i}),o},{})}function du(t,e){return e.filter(n=>n.type===t.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,o)=>Bo(n,o),{})}function Jg(t){return typeof t=="function"}function X(t,e=void 0,...n){return Jg(t)?e?t.bind(e)(...n):t(...n):t}function lx(t={}){return Object.keys(t).length===0&&t.constructor===Object}function cx(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function Kg(t,e){return"style"in t?t:{...t,getAttrs:n=>{const o=t.getAttrs?t.getAttrs(n):t.attrs;if(o===!1)return!1;const r=e.reduce((i,s)=>{const a=s.attribute.parseHTML?s.attribute.parseHTML(n):cx(n.getAttribute(s.name));return a==null?i:{...i,[s.name]:a}},{});return{...o,...r}}}}function Wg(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&lx(n)?!1:n!=null))}function ux(t,e){var n;const o=Yg(t),{nodeExtensions:r,markExtensions:i}=Ks(t),s=(n=r.find(c=>B(c,"topNode")))===null||n===void 0?void 0:n.name,a=Object.fromEntries(r.map(c=>{const u=o.filter(y=>y.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},m=t.reduce((y,w)=>{const v=B(w,"extendNodeSchema",d);return{...y,...v?v(c):{}}},{}),f=Wg({...m,content:X(B(c,"content",d)),marks:X(B(c,"marks",d)),group:X(B(c,"group",d)),inline:X(B(c,"inline",d)),atom:X(B(c,"atom",d)),selectable:X(B(c,"selectable",d)),draggable:X(B(c,"draggable",d)),code:X(B(c,"code",d)),whitespace:X(B(c,"whitespace",d)),linebreakReplacement:X(B(c,"linebreakReplacement",d)),defining:X(B(c,"defining",d)),isolating:X(B(c,"isolating",d)),attrs:Object.fromEntries(u.map(y=>{var w;return[y.name,{default:(w=y==null?void 0:y.attribute)===null||w===void 0?void 0:w.default}]}))}),p=X(B(c,"parseHTML",d));p&&(f.parseDOM=p.map(y=>Kg(y,u)));const g=B(c,"renderHTML",d);g&&(f.toDOM=y=>g({node:y,HTMLAttributes:du(y,u)}));const h=B(c,"renderText",d);return h&&(f.toText=h),[c.name,f]})),l=Object.fromEntries(i.map(c=>{const u=o.filter(h=>h.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},m=t.reduce((h,y)=>{const w=B(y,"extendMarkSchema",d);return{...h,...w?w(c):{}}},{}),f=Wg({...m,inclusive:X(B(c,"inclusive",d)),excludes:X(B(c,"excludes",d)),group:X(B(c,"group",d)),spanning:X(B(c,"spanning",d)),code:X(B(c,"code",d)),attrs:Object.fromEntries(u.map(h=>{var y;return[h.name,{default:(y=h==null?void 0:h.attribute)===null||y===void 0?void 0:y.default}]}))}),p=X(B(c,"parseHTML",d));p&&(f.parseDOM=p.map(h=>Kg(h,u)));const g=B(c,"renderHTML",d);return g&&(f.toDOM=h=>g({mark:h,HTMLAttributes:du(h,u)})),[c.name,f]}));return new Bp({topNode:s,nodes:a,marks:l})}function mu(t,e){return e.nodes[t]||e.marks[t]||null}function qg(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}function fu(t,e){const n=Kn.fromSchema(e).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}const dx=(t,e=500)=>{let n="";const o=t.parentOffset;return t.parent.nodesBetween(Math.max(0,o-e),o,(r,i,s,a)=>{var l,c;const u=((c=(l=r.type.spec).toText)===null||c===void 0?void 0:c.call(l,{node:r,pos:i,parent:s,index:a}))||r.textContent||"%leaf%";n+=r.isAtom&&!r.isText?u:u.slice(0,Math.max(0,o-i))}),n};function pu(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class mx{constructor(e){this.find=e.find,this.handler=e.handler}}const fx=(t,e)=>{if(pu(e))return e.exec(t);const n=e(t);if(!n)return null;const o=[n.text];return o.index=n.index,o.input=t,o.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),o.push(n.replaceWith)),o};function Ws(t){var e;const{editor:n,from:o,to:r,text:i,rules:s,plugin:a}=t,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(o);if(c.parent.type.spec.code||!((e=c.nodeBefore||c.nodeAfter)===null||e===void 0)&&e.marks.find(m=>m.type.spec.code))return!1;let u=!1;const d=dx(c)+i;return s.forEach(m=>{if(u)return;const f=fx(d,m.find);if(!f)return;const p=l.state.tr,g=Ys({state:l.state,transaction:p}),h={from:o-(f[0].length-i.length),to:r},{commands:y,chain:w,can:v}=new Js({editor:n,state:g});m.handler({state:g,range:h,match:f,commands:y,chain:w,can:v})===null||!p.steps.length||(p.setMeta(a,{transform:p,from:o,to:r,text:i}),l.dispatch(p),u=!0)}),u}function px(t){const{editor:e,rules:n}=t,o=new Ke({state:{init(){return null},apply(r,i,s){const a=r.getMeta(o);if(a)return a;const l=r.getMeta("applyInputRules");return!!l&&setTimeout(()=>{let{text:u}=l;typeof u=="string"?u=u:u=fu(R.from(u),s.schema);const{from:d}=l,m=d+u.length;Ws({editor:e,from:d,to:m,text:u,rules:n,plugin:o})}),r.selectionSet||r.docChanged?null:i}},props:{handleTextInput(r,i,s,a){return Ws({editor:e,from:i,to:s,text:a,rules:n,plugin:o})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:i}=r.state.selection;i&&Ws({editor:e,from:i.pos,to:i.pos,text:"",rules:n,plugin:o})}),!1)},handleKeyDown(r,i){if(i.key!=="Enter")return!1;const{$cursor:s}=r.state.selection;return s?Ws({editor:e,from:s.pos,to:s.pos,text:`
30
+ `,rules:n,plugin:o}):!1}},isInputRules:!0});return o}function hx(t){return Object.prototype.toString.call(t).slice(8,-1)}function qs(t){return hx(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function Gs(t,e){const n={...t};return qs(t)&&qs(e)&&Object.keys(e).forEach(o=>{qs(e[o])&&qs(t[o])?n[o]=Gs(t[o],e[o]):n[o]=e[o]}),n}class Wr{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=X(B(this,"addOptions",{name:this.name}))),this.storage=X(B(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Wr(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Gs(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new Wr(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=X(B(n,"addOptions",{name:n.name})),n.storage=X(B(n,"addStorage",{name:n.name,options:n.options})),n}static handleExit({editor:e,mark:n}){const{tr:o}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){const s=r.marks();if(!!!s.find(c=>(c==null?void 0:c.type.name)===n.name))return!1;const l=s.find(c=>(c==null?void 0:c.type.name)===n.name);return l&&o.removeStoredMark(l),o.insertText(" ",r.pos),e.view.dispatch(o),!0}return!1}}function gx(t){return typeof t=="number"}class yx{constructor(e){this.find=e.find,this.handler=e.handler}}const bx=(t,e,n)=>{if(pu(e))return[...t.matchAll(e)];const o=e(t,n);return o?o.map(r=>{const i=[r.text];return i.index=r.index,i.input=t,i.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),i.push(r.replaceWith)),i}):[]};function wx(t){const{editor:e,state:n,from:o,to:r,rule:i,pasteEvent:s,dropEvent:a}=t,{commands:l,chain:c,can:u}=new Js({editor:e,state:n}),d=[];return n.doc.nodesBetween(o,r,(f,p)=>{if(!f.isTextblock||f.type.spec.code)return;const g=Math.max(o,p),h=Math.min(r,p+f.content.size),y=f.textBetween(g-p,h-p,void 0,"");bx(y,i.find,s).forEach(v=>{if(v.index===void 0)return;const S=g+v.index+1,C=S+v[0].length,$={from:n.tr.mapping.map(S),to:n.tr.mapping.map(C)},k=i.handler({state:n,range:$,match:v,commands:l,chain:c,can:u,pasteEvent:s,dropEvent:a});d.push(k)})}),d.every(f=>f!==null)}let Qs=null;const vx=t=>{var e;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=n.clipboardData)===null||e===void 0||e.setData("text/html",t),n};function Sx(t){const{editor:e,rules:n}=t;let o=null,r=!1,i=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,a;try{a=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{a=null}const l=({state:u,from:d,to:m,rule:f,pasteEvt:p})=>{const g=u.tr,h=Ys({state:u,transaction:g});if(!(!wx({editor:e,state:h,from:Math.max(d-1,0),to:m.b-1,rule:f,pasteEvent:p,dropEvent:a})||!g.steps.length)){try{a=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{a=null}return s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,g}};return n.map(u=>new Ke({view(d){const m=p=>{var g;o=!((g=d.dom.parentElement)===null||g===void 0)&&g.contains(p.target)?d.dom.parentElement:null,o&&(Qs=e)},f=()=>{Qs&&(Qs=null)};return window.addEventListener("dragstart",m),window.addEventListener("dragend",f),{destroy(){window.removeEventListener("dragstart",m),window.removeEventListener("dragend",f)}}},props:{handleDOMEvents:{drop:(d,m)=>{if(i=o===d.dom.parentElement,a=m,!i){const f=Qs;f!=null&&f.isEditable&&setTimeout(()=>{const p=f.state.selection;p&&f.commands.deleteRange({from:p.from,to:p.to})},10)}return!1},paste:(d,m)=>{var f;const p=(f=m.clipboardData)===null||f===void 0?void 0:f.getData("text/html");return s=m,r=!!(p!=null&&p.includes("data-pm-slice")),!1}}},appendTransaction:(d,m,f)=>{const p=d[0],g=p.getMeta("uiEvent")==="paste"&&!r,h=p.getMeta("uiEvent")==="drop"&&!i,y=p.getMeta("applyPasteRules"),w=!!y;if(!g&&!h&&!w)return;if(w){let{text:C}=y;typeof C=="string"?C=C:C=fu(R.from(C),f.schema);const{from:$}=y,k=$+C.length,N=vx(C);return l({rule:u,state:f,from:$,to:{b:k},pasteEvt:N})}const v=m.doc.content.findDiffStart(f.doc.content),S=m.doc.content.findDiffEnd(f.doc.content);if(!(!gx(v)||!S||v===S.b))return l({rule:u,state:f,from:v,to:S,pasteEvt:s})}}))}function $x(t){const e=t.filter((n,o)=>t.indexOf(n)!==o);return Array.from(new Set(e))}class Fo{constructor(e,n){this.splittableMarks=[],this.editor=n,this.extensions=Fo.resolve(e),this.schema=ux(this.extensions,n),this.setupExtensions()}static resolve(e){const n=Fo.sort(Fo.flatten(e)),o=$x(n.map(r=>r.name));return o.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${o.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),n}static flatten(e){return e.map(n=>{const o={name:n.name,options:n.options,storage:n.storage},r=B(n,"addExtensions",o);return r?[n,...this.flatten(r())]:n}).flat(10)}static sort(e){return e.sort((o,r)=>{const i=B(o,"priority")||100,s=B(r,"priority")||100;return i>s?-1:i<s?1:0})}get commands(){return this.extensions.reduce((e,n)=>{const o={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:mu(n.name,this.schema)},r=B(n,"addCommands",o);return r?{...e,...r()}:e},{})}get plugins(){const{editor:e}=this,n=Fo.sort([...this.extensions].reverse()),o=[],r=[],i=n.map(s=>{const a={name:s.name,options:s.options,storage:s.storage,editor:e,type:mu(s.name,this.schema)},l=[],c=B(s,"addKeyboardShortcuts",a);let u={};if(s.type==="mark"&&B(s,"exitable",a)&&(u.ArrowRight=()=>Wr.handleExit({editor:e,mark:s})),c){const g=Object.fromEntries(Object.entries(c()).map(([h,y])=>[h,()=>y({editor:e})]));u={...u,...g}}const d=Bk(u);l.push(d);const m=B(s,"addInputRules",a);qg(s,e.options.enableInputRules)&&m&&o.push(...m());const f=B(s,"addPasteRules",a);qg(s,e.options.enablePasteRules)&&f&&r.push(...f());const p=B(s,"addProseMirrorPlugins",a);if(p){const g=p();l.push(...g)}return l}).flat();return[px({editor:e,rules:o}),...Sx({editor:e,rules:r}),...i]}get attributes(){return Yg(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:n}=Ks(this.extensions);return Object.fromEntries(n.filter(o=>!!B(o,"addNodeView")).map(o=>{const r=this.attributes.filter(l=>l.type===o.name),i={name:o.name,options:o.options,storage:o.storage,editor:e,type:ke(o.name,this.schema)},s=B(o,"addNodeView",i);if(!s)return[];const a=(l,c,u,d,m)=>{const f=du(l,r);return s()({node:l,view:c,getPos:u,decorations:d,innerDecorations:m,editor:e,extension:o,HTMLAttributes:f})};return[o.name,a]}))}setupExtensions(){this.extensions.forEach(e=>{var n;this.editor.extensionStorage[e.name]=e.storage;const o={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:mu(e.name,this.schema)};e.type==="mark"&&(!((n=X(B(e,"keepOnSplit",o)))!==null&&n!==void 0)||n)&&this.splittableMarks.push(e.name);const r=B(e,"onBeforeCreate",o),i=B(e,"onCreate",o),s=B(e,"onUpdate",o),a=B(e,"onSelectionUpdate",o),l=B(e,"onTransaction",o),c=B(e,"onFocus",o),u=B(e,"onBlur",o),d=B(e,"onDestroy",o);r&&this.editor.on("beforeCreate",r),i&&this.editor.on("create",i),s&&this.editor.on("update",s),a&&this.editor.on("selectionUpdate",a),l&&this.editor.on("transaction",l),c&&this.editor.on("focus",c),u&&this.editor.on("blur",u),d&&this.editor.on("destroy",d)})}}class mt{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=X(B(this,"addOptions",{name:this.name}))),this.storage=X(B(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new mt(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Gs(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new mt({...this.config,...e});return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=X(B(n,"addOptions",{name:n.name})),n.storage=X(B(n,"addStorage",{name:n.name,options:n.options})),n}}function Gg(t,e,n){const{from:o,to:r}=e,{blockSeparator:i=`
31
31
 
32
- `,textSerializers:s={}}=n||{};let a="";return t.nodesBetween(o,r,(l,c,u,d)=>{var m;l.isBlock&&c>o&&(a+=i);const f=s==null?void 0:s[l.type.name];if(f)return u&&(a+=f({node:l,pos:c,parent:u,index:d,range:e})),!1;l.isText&&(a+=(m=l==null?void 0:l.text)===null||m===void 0?void 0:m.slice(Math.max(o,c)-c,r-c))}),a}function Qg(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const kx=mt.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Ke({key:new kt("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:o,selection:r}=e,{ranges:i}=r,s=Math.min(...i.map(u=>u.$from.pos)),a=Math.max(...i.map(u=>u.$to.pos)),l=Qg(n);return Gg(o,{from:s,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),xx=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window==null?void 0:window.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),Cx=(t=!1)=>({commands:e})=>e.setContent("",t),Ex=()=>({state:t,tr:e,dispatch:n})=>{const{selection:o}=e,{ranges:r}=o;return n&&r.forEach(({$from:i,$to:s})=>{t.doc.nodesBetween(i.pos,s.pos,(a,l)=>{if(a.type.isText)return;const{doc:c,mapping:u}=e,d=c.resolve(u.map(l)),m=c.resolve(u.map(l+a.nodeSize)),f=d.blockRange(m);if(!f)return;const p=No(f);if(a.type.isTextblock){const{defaultType:g}=d.parent.contentMatchAt(d.index());e.setNodeMarkup(f.start,g)}(p||p===0)&&e.lift(f,p)})}),!0},Nx=t=>e=>t(e),Ax=()=>({state:t,dispatch:e})=>Bg(t,e),Ox=(t,e)=>({editor:n,tr:o})=>{const{state:r}=n,i=r.doc.slice(t.from,t.to);o.deleteRange(t.from,t.to);const s=o.mapping.map(e);return o.insert(s,i.content),o.setSelection(new W(o.doc.resolve(Math.max(s-1,0)))),!0},Rx=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,o=n.$anchor.node();if(o.content.size>0)return!1;const r=t.selection.$anchor;for(let i=r.depth;i>0;i-=1)if(r.node(i).type===o.type){if(e){const a=r.before(i),l=r.after(i);t.delete(a,l).scrollIntoView()}return!0}return!1},Dx=t=>({tr:e,state:n,dispatch:o})=>{const r=ke(t,n.schema),i=e.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===r){if(o){const l=i.before(s),c=i.after(s);e.delete(l,c).scrollIntoView()}return!0}return!1},Tx=t=>({tr:e,dispatch:n})=>{const{from:o,to:r}=t;return n&&e.delete(o,r),!0},Mx=()=>({state:t,dispatch:e})=>su(t,e),jx=()=>({commands:t})=>t.keyboardShortcut("Enter"),Px=()=>({state:t,dispatch:e})=>Jk(t,e);function Zs(t,e,n={strict:!0}){const o=Object.keys(e);return o.length?o.every(r=>n.strict?e[r]===t[r]:pu(e[r])?e[r].test(t[r]):e[r]===t[r]):!0}function Zg(t,e,n={}){return t.find(o=>o.type===e&&Zs(Object.fromEntries(Object.keys(n).map(r=>[r,o.attrs[r]])),n))}function Xg(t,e,n={}){return!!Zg(t,e,n)}function hu(t,e,n){var o;if(!t||!e)return;let r=t.parent.childAfter(t.parentOffset);if((!r.node||!r.node.marks.some(u=>u.type===e))&&(r=t.parent.childBefore(t.parentOffset)),!r.node||!r.node.marks.some(u=>u.type===e)||(n=n||((o=r.node.marks[0])===null||o===void 0?void 0:o.attrs),!Zg([...r.node.marks],e,n)))return;let s=r.index,a=t.start()+r.offset,l=s+1,c=a+r.node.nodeSize;for(;s>0&&Xg([...t.parent.child(s-1).marks],e,n);)s-=1,a-=t.parent.child(s).nodeSize;for(;l<t.parent.childCount&&Xg([...t.parent.child(l).marks],e,n);)c+=t.parent.child(l).nodeSize,l+=1;return{from:a,to:c}}function bn(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}const Ix=(t,e={})=>({tr:n,state:o,dispatch:r})=>{const i=bn(t,o.schema),{doc:s,selection:a}=n,{$from:l,from:c,to:u}=a;if(r){const d=hu(l,i,e);if(d&&d.from<=c&&d.to>=u){const m=W.create(s,d.from,d.to);n.setSelection(m)}}return!0},Lx=t=>e=>{const n=typeof t=="function"?t(e):t;for(let o=0;o<n.length;o+=1)if(n[o](e))return!0;return!1};function ey(t){return t instanceof W}function no(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function ty(t,e=null){if(!e)return null;const n=Z.atStart(t),o=Z.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return o;const r=n.from,i=o.to;return e==="all"?W.create(t,no(0,r,i),no(t.content.size,r,i)):W.create(t,no(e,r,i),no(e,r,i))}function zx(){return/android/i.test(navigator.userAgent)}function gu(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].length===0||/iPhone|iPod/.test(navigator.userAgent)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const Fx=(t=null,e={})=>({editor:n,view:o,tr:r,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{(gu()||zx())&&o.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(o.focus(),e!=null&&e.scrollIntoView&&n.commands.scrollIntoView())})};if(o.hasFocus()&&t===null||t===!1)return!0;if(i&&t===null&&!ey(n.state.selection))return s(),!0;const a=ty(r.doc,t)||n.state.selection,l=n.state.selection.eq(a);return i&&(l||r.setSelection(a),l&&r.storedMarks&&r.setStoredMarks(r.storedMarks),s()),!0},Bx=(t,e)=>n=>t.every((o,r)=>e(o,{...n,index:r})),Hx=(t,e)=>({tr:n,commands:o})=>o.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),ny=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const o=e[n];o.nodeType===3&&o.nodeValue&&/^(\n\s\s|\n)$/.test(o.nodeValue)?t.removeChild(o):o.nodeType===1&&ny(o)}return t};function Xs(t){const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return ny(n)}function qr(t,e,n){if(t instanceof sn||t instanceof R)return t;n={slice:!0,parseOptions:{},...n};const o=typeof t=="object"&&t!==null,r=typeof t=="string";if(o)try{if(Array.isArray(t)&&t.length>0)return R.fromArray(t.map(a=>e.nodeFromJSON(a)));const s=e.nodeFromJSON(t);return n.errorOnInvalidContent&&s.check(),s}catch(i){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:i});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",i),qr("",e,n)}if(r){if(n.errorOnInvalidContent){let s=!1,a="";const l=new Fp({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:c=>(s=!0,a=typeof c=="string"?c:c.outerHTML,null)}]}})});if(n.slice?Tr.fromSchema(l).parseSlice(Xs(t),n.parseOptions):Tr.fromSchema(l).parse(Xs(t),n.parseOptions),n.errorOnInvalidContent&&s)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${a}`)})}const i=Tr.fromSchema(e);return n.slice?i.parseSlice(Xs(t),n.parseOptions).content:i.parse(Xs(t),n.parseOptions)}return qr("",e,n)}function Vx(t,e,n){const o=t.steps.length-1;if(o<e)return;const r=t.steps[o];if(!(r instanceof Se||r instanceof $e))return;const i=t.mapping.maps[o];let s=0;i.forEach((a,l,c,u)=>{s===0&&(s=u)}),t.setSelection(Z.near(t.doc.resolve(s),n))}const _x=t=>!("type"in t),Ux=(t,e,n)=>({tr:o,dispatch:r,editor:i})=>{var s;if(r){n={parseOptions:i.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let a;const l=h=>{i.emit("contentError",{editor:i,error:h,disableCollaboration:()=>{i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}})},c={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!i.options.enableContentCheck&&i.options.emitContentError)try{qr(e,i.schema,{parseOptions:c,errorOnInvalidContent:!0})}catch(h){l(h)}try{a=qr(e,i.schema,{parseOptions:c,errorOnInvalidContent:(s=n.errorOnInvalidContent)!==null&&s!==void 0?s:i.options.enableContentCheck})}catch(h){return l(h),!1}let{from:u,to:d}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},m=!0,f=!0;if((_x(a)?a:[a]).forEach(h=>{h.check(),m=m?h.isText&&h.marks.length===0:!1,f=f?h.isBlock:!1}),u===d&&f){const{parent:h}=o.doc.resolve(u);h.isTextblock&&!h.type.spec.code&&!h.childCount&&(u-=1,d+=1)}let g;if(m){if(Array.isArray(e))g=e.map(h=>h.text||"").join("");else if(e instanceof R){let h="";e.forEach(y=>{y.text&&(h+=y.text)}),g=h}else typeof e=="object"&&e&&e.text?g=e.text:g=e;o.insertText(g,u,d)}else g=a,o.replaceWith(u,d,g);n.updateSelection&&Vx(o,o.steps.length-1,-1),n.applyInputRules&&o.setMeta("applyInputRules",{from:u,text:g}),n.applyPasteRules&&o.setMeta("applyPasteRules",{from:u,text:g})}return!0},Yx=()=>({state:t,dispatch:e})=>_k(t,e),Jx=()=>({state:t,dispatch:e})=>Uk(t,e),Kx=()=>({state:t,dispatch:e})=>Mg(t,e),Wx=()=>({state:t,dispatch:e})=>Lg(t,e),qx=()=>({state:t,dispatch:e,tr:n})=>{try{const o=Ts(t.doc,t.selection.$from.pos,-1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},Gx=()=>({state:t,dispatch:e,tr:n})=>{try{const o=Ts(t.doc,t.selection.$from.pos,1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},Qx=()=>({state:t,dispatch:e})=>Hk(t,e),Zx=()=>({state:t,dispatch:e})=>Vk(t,e);function oy(){return typeof navigator<"u"?/Macintosh/.test(navigator.userAgent):!1}function Xx(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let o,r,i,s;for(let a=0;a<e.length-1;a+=1){const l=e[a];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))o=!0;else if(/^(c|ctrl|control)$/i.test(l))r=!0;else if(/^s(hift)?$/i.test(l))i=!0;else if(/^mod$/i.test(l))gu()||oy()?s=!0:r=!0;else throw new Error(`Unrecognized modifier name: ${l}`)}return o&&(n=`Alt-${n}`),r&&(n=`Ctrl-${n}`),s&&(n=`Meta-${n}`),i&&(n=`Shift-${n}`),n}const eC=t=>({editor:e,view:n,tr:o,dispatch:r})=>{const i=Xx(t).split(/-(?!$)/),s=i.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),a=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),l=e.captureTransaction(()=>{n.someProp("handleKeyDown",c=>c(n,a))});return l==null||l.steps.forEach(c=>{const u=c.map(o.mapping);u&&r&&o.maybeStep(u)}),!0};function Gr(t,e,n={}){const{from:o,to:r,empty:i}=t.selection,s=e?ke(e,t.schema):null,a=[];t.doc.nodesBetween(o,r,(d,m)=>{if(d.isText)return;const f=Math.max(o,m),p=Math.min(r,m+d.nodeSize);a.push({node:d,from:f,to:p})});const l=r-o,c=a.filter(d=>s?s.name===d.node.type.name:!0).filter(d=>Zs(d.node.attrs,n,{strict:!1}));return i?!!c.length:c.reduce((d,m)=>d+m.to-m.from,0)>=l}const tC=(t,e={})=>({state:n,dispatch:o})=>{const r=ke(t,n.schema);return Gr(n,r,e)?Yk(n,o):!1},nC=()=>({state:t,dispatch:e})=>Hg(t,e),oC=t=>({state:e,dispatch:n})=>{const o=ke(t,e.schema);return ox(o)(e,n)},rC=()=>({state:t,dispatch:e})=>Fg(t,e);function ea(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function ry(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((o,r)=>(n.includes(r)||(o[r]=t[r]),o),{})}const iC=(t,e)=>({tr:n,state:o,dispatch:r})=>{let i=null,s=null;const a=ea(typeof t=="string"?t:t.name,o.schema);return a?(a==="node"&&(i=ke(t,o.schema)),a==="mark"&&(s=bn(t,o.schema)),r&&n.selection.ranges.forEach(l=>{o.doc.nodesBetween(l.$from.pos,l.$to.pos,(c,u)=>{i&&i===c.type&&n.setNodeMarkup(u,void 0,ry(c.attrs,e)),s&&c.marks.length&&c.marks.forEach(d=>{s===d.type&&n.addMark(u,u+c.nodeSize,s.create(ry(d.attrs,e)))})})}),!0):!1},sC=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),aC=()=>({tr:t,dispatch:e})=>{if(e){const n=new ot(t.doc);t.setSelection(n)}return!0},lC=()=>({state:t,dispatch:e})=>Pg(t,e),cC=()=>({state:t,dispatch:e})=>zg(t,e),uC=()=>({state:t,dispatch:e})=>qk(t,e),dC=()=>({state:t,dispatch:e})=>Zk(t,e),mC=()=>({state:t,dispatch:e})=>Qk(t,e);function yu(t,e,n={},o={}){return qr(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:o.errorOnInvalidContent})}const fC=(t,e=!1,n={},o={})=>({editor:r,tr:i,dispatch:s,commands:a})=>{var l,c;const{doc:u}=i;if(n.preserveWhitespace!=="full"){const d=yu(t,r.schema,n,{errorOnInvalidContent:(l=o.errorOnInvalidContent)!==null&&l!==void 0?l:r.options.enableContentCheck});return s&&i.replaceWith(0,u.content.size,d).setMeta("preventUpdate",!e),!0}return s&&i.setMeta("preventUpdate",!e),a.insertContentAt({from:0,to:u.content.size},t,{parseOptions:n,errorOnInvalidContent:(c=o.errorOnInvalidContent)!==null&&c!==void 0?c:r.options.enableContentCheck})};function iy(t,e){const n=bn(e,t.schema),{from:o,to:r,empty:i}=t.selection,s=[];i?(t.storedMarks&&s.push(...t.storedMarks),s.push(...t.selection.$head.marks())):t.doc.nodesBetween(o,r,l=>{s.push(...l.marks)});const a=s.find(l=>l.type.name===n.name);return a?{...a.attrs}:{}}function pC(t,e){const n=new ch(t);return e.forEach(o=>{o.steps.forEach(r=>{n.step(r)})}),n}function hC(t){for(let e=0;e<t.edgeCount;e+=1){const{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function gC(t,e,n){const o=[];return t.nodesBetween(e.from,e.to,(r,i)=>{n(r)&&o.push({node:r,pos:i})}),o}function yC(t,e){for(let n=t.depth;n>0;n-=1){const o=t.node(n);if(e(o))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:o}}}function bu(t){return e=>yC(e.$from,t)}function bC(t,e){const n={from:0,to:t.content.size};return Gg(t,n,e)}function wC(t,e){const n=ke(e,t.schema),{from:o,to:r}=t.selection,i=[];t.doc.nodesBetween(o,r,a=>{i.push(a)});const s=i.reverse().find(a=>a.type.name===n.name);return s?{...s.attrs}:{}}function sy(t,e){const n=ea(typeof e=="string"?e:e.name,t.schema);return n==="node"?wC(t,e):n==="mark"?iy(t,e):{}}function vC(t,e=JSON.stringify){const n={};return t.filter(o=>{const r=e(o);return Object.prototype.hasOwnProperty.call(n,r)?!1:n[r]=!0})}function SC(t){const e=vC(t);return e.length===1?e:e.filter((n,o)=>!e.filter((i,s)=>s!==o).some(i=>n.oldRange.from>=i.oldRange.from&&n.oldRange.to<=i.oldRange.to&&n.newRange.from>=i.newRange.from&&n.newRange.to<=i.newRange.to))}function $C(t){const{mapping:e,steps:n}=t,o=[];return e.maps.forEach((r,i)=>{const s=[];if(r.ranges.length)r.forEach((a,l)=>{s.push({from:a,to:l})});else{const{from:a,to:l}=n[i];if(a===void 0||l===void 0)return;s.push({from:a,to:l})}s.forEach(({from:a,to:l})=>{const c=e.slice(i).map(a,-1),u=e.slice(i).map(l),d=e.invert().map(c,-1),m=e.invert().map(u);o.push({oldRange:{from:d,to:m},newRange:{from:c,to:u}})})}),SC(o)}function ay(t,e,n){const o=[];return t===e?n.resolve(t).marks().forEach(r=>{const i=n.resolve(t),s=hu(i,r.type);s&&o.push({mark:r,...s})}):n.nodesBetween(t,e,(r,i)=>{!r||(r==null?void 0:r.nodeSize)===void 0||o.push(...r.marks.map(s=>({from:i,to:i+r.nodeSize,mark:s})))}),o}function ta(t,e,n){return Object.fromEntries(Object.entries(n).filter(([o])=>{const r=t.find(i=>i.type===e&&i.name===o);return r?r.attribute.keepOnSplit:!1}))}function wu(t,e,n={}){const{empty:o,ranges:r}=t.selection,i=e?bn(e,t.schema):null;if(o)return!!(t.storedMarks||t.selection.$from.marks()).filter(d=>i?i.name===d.type.name:!0).find(d=>Zs(d.attrs,n,{strict:!1}));let s=0;const a=[];if(r.forEach(({$from:d,$to:m})=>{const f=d.pos,p=m.pos;t.doc.nodesBetween(f,p,(g,h)=>{if(!g.isText&&!g.marks.length)return;const y=Math.max(f,h),w=Math.min(p,h+g.nodeSize),v=w-y;s+=v,a.push(...g.marks.map(S=>({mark:S,from:y,to:w})))})}),s===0)return!1;const l=a.filter(d=>i?i.name===d.mark.type.name:!0).filter(d=>Zs(d.mark.attrs,n,{strict:!1})).reduce((d,m)=>d+m.to-m.from,0),c=a.filter(d=>i?d.mark.type!==i&&d.mark.type.excludes(i):!0).reduce((d,m)=>d+m.to-m.from,0);return(l>0?l+c:l)>=s}function kC(t,e,n={}){if(!e)return Gr(t,null,n)||wu(t,null,n);const o=ea(e,t.schema);return o==="node"?Gr(t,e,n):o==="mark"?wu(t,e,n):!1}function ly(t,e){const{nodeExtensions:n}=Ks(e),o=n.find(s=>s.name===t);if(!o)return!1;const r={name:o.name,options:o.options,storage:o.storage},i=X(F(o,"group",r));return typeof i!="string"?!1:i.split(" ").includes("list")}function na(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){var o;if(n){if(t.type.name==="hardBreak")return!0;if(t.isText)return/^\s*$/m.test((o=t.text)!==null&&o!==void 0?o:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;if(e){let r=!0;return t.content.forEach(i=>{r!==!1&&(na(i,{ignoreWhitespace:n,checkChildren:e})||(r=!1))}),r}return!1}function xC(t,e,n){var o;const{selection:r}=e;let i=null;if(ey(r)&&(i=r.$cursor),i){const a=(o=t.storedMarks)!==null&&o!==void 0?o:i.marks();return!!n.isInSet(a)||!a.some(l=>l.type.excludes(n))}const{ranges:s}=r;return s.some(({$from:a,$to:l})=>{let c=a.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(a.pos,l.pos,(u,d,m)=>{if(c)return!1;if(u.isInline){const f=!m||m.type.allowsMarkType(n),p=!!n.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(n));c=f&&p}return!c}),c})}const CC=(t,e={})=>({tr:n,state:o,dispatch:r})=>{const{selection:i}=n,{empty:s,ranges:a}=i,l=bn(t,o.schema);if(r)if(s){const c=iy(o,l);n.addStoredMark(l.create({...c,...e}))}else a.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;o.doc.nodesBetween(u,d,(m,f)=>{const p=Math.max(f,u),g=Math.min(f+m.nodeSize,d);m.marks.find(y=>y.type===l)?m.marks.forEach(y=>{l===y.type&&n.addMark(p,g,l.create({...y.attrs,...e}))}):n.addMark(p,g,l.create(e))})});return xC(o,n,l)},EC=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),NC=(t,e={})=>({state:n,dispatch:o,chain:r})=>{const i=ke(t,n.schema);let s;return n.selection.$anchor.sameParent(n.selection.$head)&&(s=n.selection.$anchor.parent.attrs),i.isTextblock?r().command(({commands:a})=>Ug(i,{...s,...e})(n)?!0:a.clearNodes()).command(({state:a})=>Ug(i,{...s,...e})(a,o)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},AC=t=>({tr:e,dispatch:n})=>{if(n){const{doc:o}=e,r=no(t,0,o.content.size),i=V.create(o,r);e.setSelection(i)}return!0},OC=t=>({tr:e,dispatch:n})=>{if(n){const{doc:o}=e,{from:r,to:i}=typeof t=="number"?{from:t,to:t}:t,s=W.atStart(o).from,a=W.atEnd(o).to,l=no(r,s,a),c=no(i,s,a),u=W.create(o,l,c);e.setSelection(u)}return!0},RC=t=>({state:e,dispatch:n})=>{const o=ke(t,e.schema);return sx(o)(e,n)};function cy(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const o=n.filter(r=>e==null?void 0:e.includes(r.type.name));t.tr.ensureMarks(o)}}const DC=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:o,editor:r})=>{const{selection:i,doc:s}=e,{$from:a,$to:l}=i,c=r.extensionManager.attributes,u=ta(c,a.node().type.name,a.node().attrs);if(i instanceof V&&i.node.isBlock)return!a.parentOffset||!_t(s,a.pos)?!1:(o&&(t&&cy(n,r.extensionManager.splittableMarks),e.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;const d=l.parentOffset===l.parent.content.size,m=a.depth===0?void 0:hC(a.node(-1).contentMatchAt(a.indexAfter(-1)));let f=d&&m?[{type:m,attrs:u}]:void 0,p=_t(e.doc,e.mapping.map(a.pos),1,f);if(!f&&!p&&_t(e.doc,e.mapping.map(a.pos),1,m?[{type:m}]:void 0)&&(p=!0,f=m?[{type:m,attrs:u}]:void 0),o){if(p&&(i instanceof W&&e.deleteSelection(),e.split(e.mapping.map(a.pos),1,f),m&&!d&&!a.parentOffset&&a.parent.type!==m)){const g=e.mapping.map(a.before()),h=e.doc.resolve(g);a.node(-1).canReplaceWith(h.index(),h.index()+1,m)&&e.setNodeMarkup(e.mapping.map(a.before()),m)}t&&cy(n,r.extensionManager.splittableMarks),e.scrollIntoView()}return p},TC=(t,e={})=>({tr:n,state:o,dispatch:r,editor:i})=>{var s;const a=ke(t,o.schema),{$from:l,$to:c}=o.selection,u=o.selection.node;if(u&&u.isBlock||l.depth<2||!l.sameParent(c))return!1;const d=l.node(-1);if(d.type!==a)return!1;const m=i.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==a||l.index(-2)!==l.node(-2).childCount-1)return!1;if(r){let y=R.empty;const w=l.index(-1)?1:l.index(-2)?2:3;for(let N=l.depth-w;N>=l.depth-3;N-=1)y=R.from(l.node(N).copy(y));const v=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,S={...ta(m,l.node().type.name,l.node().attrs),...e},C=((s=a.contentMatch.defaultType)===null||s===void 0?void 0:s.createAndFill(S))||void 0;y=y.append(R.from(a.createAndFill(null,C)||void 0));const $=l.before(l.depth-(w-1));n.replace($,l.after(-v),new I(y,4-w,0));let k=-1;n.doc.nodesBetween($,n.doc.content.size,(N,O)=>{if(k>-1)return!1;N.isTextblock&&N.content.size===0&&(k=O+1)}),k>-1&&n.setSelection(W.near(n.doc.resolve(k))),n.scrollIntoView()}return!0}const f=c.pos===l.end()?d.contentMatchAt(0).defaultType:null,p={...ta(m,d.type.name,d.attrs),...e},g={...ta(m,l.node().type.name,l.node().attrs),...e};n.delete(l.pos,c.pos);const h=f?[{type:a,attrs:p},{type:f,attrs:g}]:[{type:a,attrs:p}];if(!_t(n.doc,l.pos,2))return!1;if(r){const{selection:y,storedMarks:w}=o,{splittableMarks:v}=i.extensionManager,S=w||y.$to.parentOffset&&y.$from.marks();if(n.split(l.pos,2,h).scrollIntoView(),!S||!r)return!0;const C=S.filter($=>v.includes($.type.name));n.ensureMarks(C)}return!0},vu=(t,e)=>{const n=bu(s=>s.type===e)(t.selection);if(!n)return!0;const o=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(o===void 0)return!0;const r=t.doc.nodeAt(o);return n.node.type===(r==null?void 0:r.type)&&cn(t.doc,n.pos)&&t.join(n.pos),!0},Su=(t,e)=>{const n=bu(s=>s.type===e)(t.selection);if(!n)return!0;const o=t.doc.resolve(n.start).after(n.depth);if(o===void 0)return!0;const r=t.doc.nodeAt(o);return n.node.type===(r==null?void 0:r.type)&&cn(t.doc,o)&&t.join(o),!0};var MC=Object.freeze({__proto__:null,blur:xx,clearContent:Cx,clearNodes:Ex,command:Nx,createParagraphNear:Ax,cut:Ox,deleteCurrentNode:Rx,deleteNode:Dx,deleteRange:Tx,deleteSelection:Mx,enter:jx,exitCode:Px,extendMarkRange:Ix,first:Lx,focus:Fx,forEach:Bx,insertContent:Hx,insertContentAt:Ux,joinBackward:Kx,joinDown:Jx,joinForward:Wx,joinItemBackward:qx,joinItemForward:Gx,joinTextblockBackward:Qx,joinTextblockForward:Zx,joinUp:Yx,keyboardShortcut:eC,lift:tC,liftEmptyBlock:nC,liftListItem:oC,newlineInCode:rC,resetAttributes:iC,scrollIntoView:sC,selectAll:aC,selectNodeBackward:lC,selectNodeForward:cC,selectParentNode:uC,selectTextblockEnd:dC,selectTextblockStart:mC,setContent:fC,setMark:CC,setMeta:EC,setNode:NC,setNodeSelection:AC,setTextSelection:OC,sinkListItem:RC,splitBlock:DC,splitListItem:TC,toggleList:(t,e,n,o={})=>({editor:r,tr:i,state:s,dispatch:a,chain:l,commands:c,can:u})=>{const{extensions:d,splittableMarks:m}=r.extensionManager,f=ke(t,s.schema),p=ke(e,s.schema),{selection:g,storedMarks:h}=s,{$from:y,$to:w}=g,v=y.blockRange(w),S=h||g.$to.parentOffset&&g.$from.marks();if(!v)return!1;const C=bu($=>ly($.type.name,d))(g);if(v.depth>=1&&C&&v.depth-C.depth<=1){if(C.node.type===f)return c.liftListItem(p);if(ly(C.node.type.name,d)&&f.validContent(C.node.content)&&a)return l().command(()=>(i.setNodeMarkup(C.pos,f),!0)).command(()=>vu(i,f)).command(()=>Su(i,f)).run()}return!n||!S||!a?l().command(()=>u().wrapInList(f,o)?!0:c.clearNodes()).wrapInList(f,o).command(()=>vu(i,f)).command(()=>Su(i,f)).run():l().command(()=>{const $=u().wrapInList(f,o),k=S.filter(N=>m.includes(N.type.name));return i.ensureMarks(k),$?!0:c.clearNodes()}).wrapInList(f,o).command(()=>vu(i,f)).command(()=>Su(i,f)).run()},toggleMark:(t,e={},n={})=>({state:o,commands:r})=>{const{extendEmptyMarkRange:i=!1}=n,s=bn(t,o.schema);return wu(o,s,e)?r.unsetMark(s,{extendEmptyMarkRange:i}):r.setMark(s,e)},toggleNode:(t,e,n={})=>({state:o,commands:r})=>{const i=ke(t,o.schema),s=ke(e,o.schema),a=Gr(o,i,n);let l;return o.selection.$anchor.sameParent(o.selection.$head)&&(l=o.selection.$anchor.parent.attrs),a?r.setNode(s,l):r.setNode(i,{...l,...n})},toggleWrap:(t,e={})=>({state:n,commands:o})=>{const r=ke(t,n.schema);return Gr(n,r,e)?o.lift(r):o.wrapIn(r,e)},undoInputRule:()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let o=0;o<n.length;o+=1){const r=n[o];let i;if(r.spec.isInputRules&&(i=r.getState(t))){if(e){const s=t.tr,a=i.transform;for(let l=a.steps.length-1;l>=0;l-=1)s.step(a.steps[l].invert(a.docs[l]));if(i.text){const l=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,t.schema.text(i.text,l))}else s.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:o,ranges:r}=n;return o||e&&r.forEach(i=>{t.removeMark(i.$from.pos,i.$to.pos)}),!0},unsetMark:(t,e={})=>({tr:n,state:o,dispatch:r})=>{var i;const{extendEmptyMarkRange:s=!1}=e,{selection:a}=n,l=bn(t,o.schema),{$from:c,empty:u,ranges:d}=a;if(!r)return!0;if(u&&s){let{from:m,to:f}=a;const p=(i=c.marks().find(h=>h.type===l))===null||i===void 0?void 0:i.attrs,g=hu(c,l,p);g&&(m=g.from,f=g.to),n.removeMark(m,f,l)}else d.forEach(m=>{n.removeMark(m.$from.pos,m.$to.pos,l)});return n.removeStoredMark(l),!0},updateAttributes:(t,e={})=>({tr:n,state:o,dispatch:r})=>{let i=null,s=null;const a=ea(typeof t=="string"?t:t.name,o.schema);return a?(a==="node"&&(i=ke(t,o.schema)),a==="mark"&&(s=bn(t,o.schema)),r&&n.selection.ranges.forEach(l=>{const c=l.$from.pos,u=l.$to.pos;let d,m,f,p;n.selection.empty?o.doc.nodesBetween(c,u,(g,h)=>{i&&i===g.type&&(f=Math.max(h,c),p=Math.min(h+g.nodeSize,u),d=h,m=g)}):o.doc.nodesBetween(c,u,(g,h)=>{h<c&&i&&i===g.type&&(f=Math.max(h,c),p=Math.min(h+g.nodeSize,u),d=h,m=g),h>=c&&h<=u&&(i&&i===g.type&&n.setNodeMarkup(h,void 0,{...g.attrs,...e}),s&&g.marks.length&&g.marks.forEach(y=>{if(s===y.type){const w=Math.max(h,c),v=Math.min(h+g.nodeSize,u);n.addMark(w,v,s.create({...y.attrs,...e}))}}))}),m&&(d!==void 0&&n.setNodeMarkup(d,void 0,{...m.attrs,...e}),s&&m.marks.length&&m.marks.forEach(g=>{s===g.type&&n.addMark(f,p,s.create({...g.attrs,...e}))}))}),!0):!1},wrapIn:(t,e={})=>({state:n,dispatch:o})=>{const r=ke(t,n.schema);return Xk(r,e)(n,o)},wrapInList:(t,e={})=>({state:n,dispatch:o})=>{const r=ke(t,n.schema);return ex(r,e)(n,o)}});const jC=mt.create({name:"commands",addCommands(){return{...MC}}}),PC=mt.create({name:"drop",addProseMirrorPlugins(){return[new Ke({key:new kt("tiptapDrop"),props:{handleDrop:(t,e,n,o)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:o})}}})]}}),IC=mt.create({name:"editable",addProseMirrorPlugins(){return[new Ke({key:new kt("editable"),props:{editable:()=>this.editor.options.editable}})]}}),LC=new kt("focusEvents"),zC=mt.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new Ke({key:LC,props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const o=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(o),!1},blur:(e,n)=>{t.isFocused=!1;const o=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(o),!1}}}})]}}),FC=mt.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{const{selection:l,doc:c}=a,{empty:u,$anchor:d}=l,{pos:m,parent:f}=d,p=d.parent.isTextblock&&m>0?a.doc.resolve(m-1):d,g=p.parent.type.spec.isolating,h=d.pos-d.parentOffset,y=g&&p.parent.childCount===1?h===d.pos:Z.atStart(c).from===m;return!u||!f.type.isTextblock||f.textContent.length||!y||y&&d.parent.type.name==="paragraph"?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),o={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},r={...o},i={...o,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return gu()||oy()?i:r},addProseMirrorPlugins(){return[new Ke({key:new kt("clearDocument"),appendTransaction:(t,e,n)=>{if(t.some(g=>g.getMeta("composition")))return;const o=t.some(g=>g.docChanged)&&!e.doc.eq(n.doc),r=t.some(g=>g.getMeta("preventClearDocument"));if(!o||r)return;const{empty:i,from:s,to:a}=e.selection,l=Z.atStart(e.doc).from,c=Z.atEnd(e.doc).to;if(i||!(s===l&&a===c)||!na(n.doc))return;const m=n.tr,f=Ys({state:n,transaction:m}),{commands:p}=new Js({editor:this.editor,state:f});if(p.clearNodes(),!!m.steps.length)return m}})]}}),BC=mt.create({name:"paste",addProseMirrorPlugins(){return[new Ke({key:new kt("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),HC=mt.create({name:"tabindex",addProseMirrorPlugins(){return[new Ke({key:new kt("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class oo{get name(){return this.node.type.name}constructor(e,n,o=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=o,this.resolvedPos=e,this.editor=n,this.currentNode=r}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!==null&&e!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let n=this.from,o=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,o=this.to-1}this.editor.commands.insertContentAt({from:n,to:o},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(e);return new oo(n,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new oo(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new oo(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,o)=>{const r=n.isBlock&&!n.isTextblock,i=n.isAtom&&!n.isText,s=this.pos+o+(i?0:1);if(s<0||s>this.resolvedPos.doc.nodeSize-2)return;const a=this.resolvedPos.doc.resolve(s);if(!r&&a.depth<=this.depth)return;const l=new oo(a,this.editor,r,r?n:null);r&&(l.actualDepth=this.depth+1),e.push(new oo(a,this.editor,r,r?n:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,n={}){let o=null,r=this.parent;for(;r&&!o;){if(r.node.type.name===e)if(Object.keys(n).length>0){const i=r.node.attrs,s=Object.keys(n);for(let a=0;a<s.length;a+=1){const l=s[a];if(i[l]!==n[l])break}}else o=r;r=r.parent}return o}querySelector(e,n={}){return this.querySelectorAll(e,n,!0)[0]||null}querySelectorAll(e,n={},o=!1){let r=[];if(!this.children||this.children.length===0)return r;const i=Object.keys(n);return this.children.forEach(s=>{o&&r.length>0||(s.node.type.name===e&&i.every(l=>n[l]===s.node.attrs[l])&&r.push(s),!(o&&r.length>0)&&(r=r.concat(s.querySelectorAll(e,n,o))))}),r}setAttribute(e){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(n)}}const VC=`.ProseMirror {
32
+ `,textSerializers:s={}}=n||{};let a="";return t.nodesBetween(o,r,(l,c,u,d)=>{var m;l.isBlock&&c>o&&(a+=i);const f=s==null?void 0:s[l.type.name];if(f)return u&&(a+=f({node:l,pos:c,parent:u,index:d,range:e})),!1;l.isText&&(a+=(m=l==null?void 0:l.text)===null||m===void 0?void 0:m.slice(Math.max(o,c)-c,r-c))}),a}function Qg(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const kx=mt.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Ke({key:new kt("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:o,selection:r}=e,{ranges:i}=r,s=Math.min(...i.map(u=>u.$from.pos)),a=Math.max(...i.map(u=>u.$to.pos)),l=Qg(n);return Gg(o,{from:s,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),xx=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window==null?void 0:window.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),Cx=(t=!1)=>({commands:e})=>e.setContent("",t),Ex=()=>({state:t,tr:e,dispatch:n})=>{const{selection:o}=e,{ranges:r}=o;return n&&r.forEach(({$from:i,$to:s})=>{t.doc.nodesBetween(i.pos,s.pos,(a,l)=>{if(a.type.isText)return;const{doc:c,mapping:u}=e,d=c.resolve(u.map(l)),m=c.resolve(u.map(l+a.nodeSize)),f=d.blockRange(m);if(!f)return;const p=No(f);if(a.type.isTextblock){const{defaultType:g}=d.parent.contentMatchAt(d.index());e.setNodeMarkup(f.start,g)}(p||p===0)&&e.lift(f,p)})}),!0},Nx=t=>e=>t(e),Ax=()=>({state:t,dispatch:e})=>Fg(t,e),Ox=(t,e)=>({editor:n,tr:o})=>{const{state:r}=n,i=r.doc.slice(t.from,t.to);o.deleteRange(t.from,t.to);const s=o.mapping.map(e);return o.insert(s,i.content),o.setSelection(new W(o.doc.resolve(Math.max(s-1,0)))),!0},Rx=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,o=n.$anchor.node();if(o.content.size>0)return!1;const r=t.selection.$anchor;for(let i=r.depth;i>0;i-=1)if(r.node(i).type===o.type){if(e){const a=r.before(i),l=r.after(i);t.delete(a,l).scrollIntoView()}return!0}return!1},Dx=t=>({tr:e,state:n,dispatch:o})=>{const r=ke(t,n.schema),i=e.selection.$anchor;for(let s=i.depth;s>0;s-=1)if(i.node(s).type===r){if(o){const l=i.before(s),c=i.after(s);e.delete(l,c).scrollIntoView()}return!0}return!1},Tx=t=>({tr:e,dispatch:n})=>{const{from:o,to:r}=t;return n&&e.delete(o,r),!0},Mx=()=>({state:t,dispatch:e})=>su(t,e),jx=()=>({commands:t})=>t.keyboardShortcut("Enter"),Px=()=>({state:t,dispatch:e})=>Jk(t,e);function Zs(t,e,n={strict:!0}){const o=Object.keys(e);return o.length?o.every(r=>n.strict?e[r]===t[r]:pu(e[r])?e[r].test(t[r]):e[r]===t[r]):!0}function Zg(t,e,n={}){return t.find(o=>o.type===e&&Zs(Object.fromEntries(Object.keys(n).map(r=>[r,o.attrs[r]])),n))}function Xg(t,e,n={}){return!!Zg(t,e,n)}function hu(t,e,n){var o;if(!t||!e)return;let r=t.parent.childAfter(t.parentOffset);if((!r.node||!r.node.marks.some(u=>u.type===e))&&(r=t.parent.childBefore(t.parentOffset)),!r.node||!r.node.marks.some(u=>u.type===e)||(n=n||((o=r.node.marks[0])===null||o===void 0?void 0:o.attrs),!Zg([...r.node.marks],e,n)))return;let s=r.index,a=t.start()+r.offset,l=s+1,c=a+r.node.nodeSize;for(;s>0&&Xg([...t.parent.child(s-1).marks],e,n);)s-=1,a-=t.parent.child(s).nodeSize;for(;l<t.parent.childCount&&Xg([...t.parent.child(l).marks],e,n);)c+=t.parent.child(l).nodeSize,l+=1;return{from:a,to:c}}function bn(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}const Ix=(t,e={})=>({tr:n,state:o,dispatch:r})=>{const i=bn(t,o.schema),{doc:s,selection:a}=n,{$from:l,from:c,to:u}=a;if(r){const d=hu(l,i,e);if(d&&d.from<=c&&d.to>=u){const m=W.create(s,d.from,d.to);n.setSelection(m)}}return!0},Lx=t=>e=>{const n=typeof t=="function"?t(e):t;for(let o=0;o<n.length;o+=1)if(n[o](e))return!0;return!1};function ey(t){return t instanceof W}function no(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function ty(t,e=null){if(!e)return null;const n=Z.atStart(t),o=Z.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return o;const r=n.from,i=o.to;return e==="all"?W.create(t,no(0,r,i),no(t.content.size,r,i)):W.create(t,no(e,r,i),no(e,r,i))}function zx(){return/android/i.test(navigator.userAgent)}function gu(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].length===0||/iPhone|iPod/.test(navigator.userAgent)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const Bx=(t=null,e={})=>({editor:n,view:o,tr:r,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{(gu()||zx())&&o.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(o.focus(),e!=null&&e.scrollIntoView&&n.commands.scrollIntoView())})};if(o.hasFocus()&&t===null||t===!1)return!0;if(i&&t===null&&!ey(n.state.selection))return s(),!0;const a=ty(r.doc,t)||n.state.selection,l=n.state.selection.eq(a);return i&&(l||r.setSelection(a),l&&r.storedMarks&&r.setStoredMarks(r.storedMarks),s()),!0},Fx=(t,e)=>n=>t.every((o,r)=>e(o,{...n,index:r})),Hx=(t,e)=>({tr:n,commands:o})=>o.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),ny=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const o=e[n];o.nodeType===3&&o.nodeValue&&/^(\n\s\s|\n)$/.test(o.nodeValue)?t.removeChild(o):o.nodeType===1&&ny(o)}return t};function Xs(t){const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return ny(n)}function qr(t,e,n){if(t instanceof sn||t instanceof R)return t;n={slice:!0,parseOptions:{},...n};const o=typeof t=="object"&&t!==null,r=typeof t=="string";if(o)try{if(Array.isArray(t)&&t.length>0)return R.fromArray(t.map(a=>e.nodeFromJSON(a)));const s=e.nodeFromJSON(t);return n.errorOnInvalidContent&&s.check(),s}catch(i){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:i});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",i),qr("",e,n)}if(r){if(n.errorOnInvalidContent){let s=!1,a="";const l=new Bp({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:c=>(s=!0,a=typeof c=="string"?c:c.outerHTML,null)}]}})});if(n.slice?Tr.fromSchema(l).parseSlice(Xs(t),n.parseOptions):Tr.fromSchema(l).parse(Xs(t),n.parseOptions),n.errorOnInvalidContent&&s)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${a}`)})}const i=Tr.fromSchema(e);return n.slice?i.parseSlice(Xs(t),n.parseOptions).content:i.parse(Xs(t),n.parseOptions)}return qr("",e,n)}function Vx(t,e,n){const o=t.steps.length-1;if(o<e)return;const r=t.steps[o];if(!(r instanceof Se||r instanceof $e))return;const i=t.mapping.maps[o];let s=0;i.forEach((a,l,c,u)=>{s===0&&(s=u)}),t.setSelection(Z.near(t.doc.resolve(s),n))}const _x=t=>!("type"in t),Ux=(t,e,n)=>({tr:o,dispatch:r,editor:i})=>{var s;if(r){n={parseOptions:i.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let a;const l=h=>{i.emit("contentError",{editor:i,error:h,disableCollaboration:()=>{i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}})},c={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!i.options.enableContentCheck&&i.options.emitContentError)try{qr(e,i.schema,{parseOptions:c,errorOnInvalidContent:!0})}catch(h){l(h)}try{a=qr(e,i.schema,{parseOptions:c,errorOnInvalidContent:(s=n.errorOnInvalidContent)!==null&&s!==void 0?s:i.options.enableContentCheck})}catch(h){return l(h),!1}let{from:u,to:d}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},m=!0,f=!0;if((_x(a)?a:[a]).forEach(h=>{h.check(),m=m?h.isText&&h.marks.length===0:!1,f=f?h.isBlock:!1}),u===d&&f){const{parent:h}=o.doc.resolve(u);h.isTextblock&&!h.type.spec.code&&!h.childCount&&(u-=1,d+=1)}let g;if(m){if(Array.isArray(e))g=e.map(h=>h.text||"").join("");else if(e instanceof R){let h="";e.forEach(y=>{y.text&&(h+=y.text)}),g=h}else typeof e=="object"&&e&&e.text?g=e.text:g=e;o.insertText(g,u,d)}else g=a,o.replaceWith(u,d,g);n.updateSelection&&Vx(o,o.steps.length-1,-1),n.applyInputRules&&o.setMeta("applyInputRules",{from:u,text:g}),n.applyPasteRules&&o.setMeta("applyPasteRules",{from:u,text:g})}return!0},Yx=()=>({state:t,dispatch:e})=>_k(t,e),Jx=()=>({state:t,dispatch:e})=>Uk(t,e),Kx=()=>({state:t,dispatch:e})=>Mg(t,e),Wx=()=>({state:t,dispatch:e})=>Lg(t,e),qx=()=>({state:t,dispatch:e,tr:n})=>{try{const o=Ts(t.doc,t.selection.$from.pos,-1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},Gx=()=>({state:t,dispatch:e,tr:n})=>{try{const o=Ts(t.doc,t.selection.$from.pos,1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},Qx=()=>({state:t,dispatch:e})=>Hk(t,e),Zx=()=>({state:t,dispatch:e})=>Vk(t,e);function oy(){return typeof navigator<"u"?/Macintosh/.test(navigator.userAgent):!1}function Xx(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let o,r,i,s;for(let a=0;a<e.length-1;a+=1){const l=e[a];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))o=!0;else if(/^(c|ctrl|control)$/i.test(l))r=!0;else if(/^s(hift)?$/i.test(l))i=!0;else if(/^mod$/i.test(l))gu()||oy()?s=!0:r=!0;else throw new Error(`Unrecognized modifier name: ${l}`)}return o&&(n=`Alt-${n}`),r&&(n=`Ctrl-${n}`),s&&(n=`Meta-${n}`),i&&(n=`Shift-${n}`),n}const eC=t=>({editor:e,view:n,tr:o,dispatch:r})=>{const i=Xx(t).split(/-(?!$)/),s=i.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),a=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),l=e.captureTransaction(()=>{n.someProp("handleKeyDown",c=>c(n,a))});return l==null||l.steps.forEach(c=>{const u=c.map(o.mapping);u&&r&&o.maybeStep(u)}),!0};function Gr(t,e,n={}){const{from:o,to:r,empty:i}=t.selection,s=e?ke(e,t.schema):null,a=[];t.doc.nodesBetween(o,r,(d,m)=>{if(d.isText)return;const f=Math.max(o,m),p=Math.min(r,m+d.nodeSize);a.push({node:d,from:f,to:p})});const l=r-o,c=a.filter(d=>s?s.name===d.node.type.name:!0).filter(d=>Zs(d.node.attrs,n,{strict:!1}));return i?!!c.length:c.reduce((d,m)=>d+m.to-m.from,0)>=l}const tC=(t,e={})=>({state:n,dispatch:o})=>{const r=ke(t,n.schema);return Gr(n,r,e)?Yk(n,o):!1},nC=()=>({state:t,dispatch:e})=>Hg(t,e),oC=t=>({state:e,dispatch:n})=>{const o=ke(t,e.schema);return ox(o)(e,n)},rC=()=>({state:t,dispatch:e})=>Bg(t,e);function ea(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function ry(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((o,r)=>(n.includes(r)||(o[r]=t[r]),o),{})}const iC=(t,e)=>({tr:n,state:o,dispatch:r})=>{let i=null,s=null;const a=ea(typeof t=="string"?t:t.name,o.schema);return a?(a==="node"&&(i=ke(t,o.schema)),a==="mark"&&(s=bn(t,o.schema)),r&&n.selection.ranges.forEach(l=>{o.doc.nodesBetween(l.$from.pos,l.$to.pos,(c,u)=>{i&&i===c.type&&n.setNodeMarkup(u,void 0,ry(c.attrs,e)),s&&c.marks.length&&c.marks.forEach(d=>{s===d.type&&n.addMark(u,u+c.nodeSize,s.create(ry(d.attrs,e)))})})}),!0):!1},sC=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),aC=()=>({tr:t,dispatch:e})=>{if(e){const n=new ot(t.doc);t.setSelection(n)}return!0},lC=()=>({state:t,dispatch:e})=>Pg(t,e),cC=()=>({state:t,dispatch:e})=>zg(t,e),uC=()=>({state:t,dispatch:e})=>qk(t,e),dC=()=>({state:t,dispatch:e})=>Zk(t,e),mC=()=>({state:t,dispatch:e})=>Qk(t,e);function yu(t,e,n={},o={}){return qr(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:o.errorOnInvalidContent})}const fC=(t,e=!1,n={},o={})=>({editor:r,tr:i,dispatch:s,commands:a})=>{var l,c;const{doc:u}=i;if(n.preserveWhitespace!=="full"){const d=yu(t,r.schema,n,{errorOnInvalidContent:(l=o.errorOnInvalidContent)!==null&&l!==void 0?l:r.options.enableContentCheck});return s&&i.replaceWith(0,u.content.size,d).setMeta("preventUpdate",!e),!0}return s&&i.setMeta("preventUpdate",!e),a.insertContentAt({from:0,to:u.content.size},t,{parseOptions:n,errorOnInvalidContent:(c=o.errorOnInvalidContent)!==null&&c!==void 0?c:r.options.enableContentCheck})};function iy(t,e){const n=bn(e,t.schema),{from:o,to:r,empty:i}=t.selection,s=[];i?(t.storedMarks&&s.push(...t.storedMarks),s.push(...t.selection.$head.marks())):t.doc.nodesBetween(o,r,l=>{s.push(...l.marks)});const a=s.find(l=>l.type.name===n.name);return a?{...a.attrs}:{}}function pC(t,e){const n=new ch(t);return e.forEach(o=>{o.steps.forEach(r=>{n.step(r)})}),n}function hC(t){for(let e=0;e<t.edgeCount;e+=1){const{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function gC(t,e,n){const o=[];return t.nodesBetween(e.from,e.to,(r,i)=>{n(r)&&o.push({node:r,pos:i})}),o}function yC(t,e){for(let n=t.depth;n>0;n-=1){const o=t.node(n);if(e(o))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:o}}}function bu(t){return e=>yC(e.$from,t)}function bC(t,e){const n={from:0,to:t.content.size};return Gg(t,n,e)}function wC(t,e){const n=ke(e,t.schema),{from:o,to:r}=t.selection,i=[];t.doc.nodesBetween(o,r,a=>{i.push(a)});const s=i.reverse().find(a=>a.type.name===n.name);return s?{...s.attrs}:{}}function sy(t,e){const n=ea(typeof e=="string"?e:e.name,t.schema);return n==="node"?wC(t,e):n==="mark"?iy(t,e):{}}function vC(t,e=JSON.stringify){const n={};return t.filter(o=>{const r=e(o);return Object.prototype.hasOwnProperty.call(n,r)?!1:n[r]=!0})}function SC(t){const e=vC(t);return e.length===1?e:e.filter((n,o)=>!e.filter((i,s)=>s!==o).some(i=>n.oldRange.from>=i.oldRange.from&&n.oldRange.to<=i.oldRange.to&&n.newRange.from>=i.newRange.from&&n.newRange.to<=i.newRange.to))}function $C(t){const{mapping:e,steps:n}=t,o=[];return e.maps.forEach((r,i)=>{const s=[];if(r.ranges.length)r.forEach((a,l)=>{s.push({from:a,to:l})});else{const{from:a,to:l}=n[i];if(a===void 0||l===void 0)return;s.push({from:a,to:l})}s.forEach(({from:a,to:l})=>{const c=e.slice(i).map(a,-1),u=e.slice(i).map(l),d=e.invert().map(c,-1),m=e.invert().map(u);o.push({oldRange:{from:d,to:m},newRange:{from:c,to:u}})})}),SC(o)}function ay(t,e,n){const o=[];return t===e?n.resolve(t).marks().forEach(r=>{const i=n.resolve(t),s=hu(i,r.type);s&&o.push({mark:r,...s})}):n.nodesBetween(t,e,(r,i)=>{!r||(r==null?void 0:r.nodeSize)===void 0||o.push(...r.marks.map(s=>({from:i,to:i+r.nodeSize,mark:s})))}),o}function ta(t,e,n){return Object.fromEntries(Object.entries(n).filter(([o])=>{const r=t.find(i=>i.type===e&&i.name===o);return r?r.attribute.keepOnSplit:!1}))}function wu(t,e,n={}){const{empty:o,ranges:r}=t.selection,i=e?bn(e,t.schema):null;if(o)return!!(t.storedMarks||t.selection.$from.marks()).filter(d=>i?i.name===d.type.name:!0).find(d=>Zs(d.attrs,n,{strict:!1}));let s=0;const a=[];if(r.forEach(({$from:d,$to:m})=>{const f=d.pos,p=m.pos;t.doc.nodesBetween(f,p,(g,h)=>{if(!g.isText&&!g.marks.length)return;const y=Math.max(f,h),w=Math.min(p,h+g.nodeSize),v=w-y;s+=v,a.push(...g.marks.map(S=>({mark:S,from:y,to:w})))})}),s===0)return!1;const l=a.filter(d=>i?i.name===d.mark.type.name:!0).filter(d=>Zs(d.mark.attrs,n,{strict:!1})).reduce((d,m)=>d+m.to-m.from,0),c=a.filter(d=>i?d.mark.type!==i&&d.mark.type.excludes(i):!0).reduce((d,m)=>d+m.to-m.from,0);return(l>0?l+c:l)>=s}function kC(t,e,n={}){if(!e)return Gr(t,null,n)||wu(t,null,n);const o=ea(e,t.schema);return o==="node"?Gr(t,e,n):o==="mark"?wu(t,e,n):!1}function ly(t,e){const{nodeExtensions:n}=Ks(e),o=n.find(s=>s.name===t);if(!o)return!1;const r={name:o.name,options:o.options,storage:o.storage},i=X(B(o,"group",r));return typeof i!="string"?!1:i.split(" ").includes("list")}function na(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){var o;if(n){if(t.type.name==="hardBreak")return!0;if(t.isText)return/^\s*$/m.test((o=t.text)!==null&&o!==void 0?o:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;if(e){let r=!0;return t.content.forEach(i=>{r!==!1&&(na(i,{ignoreWhitespace:n,checkChildren:e})||(r=!1))}),r}return!1}function xC(t,e,n){var o;const{selection:r}=e;let i=null;if(ey(r)&&(i=r.$cursor),i){const a=(o=t.storedMarks)!==null&&o!==void 0?o:i.marks();return!!n.isInSet(a)||!a.some(l=>l.type.excludes(n))}const{ranges:s}=r;return s.some(({$from:a,$to:l})=>{let c=a.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(a.pos,l.pos,(u,d,m)=>{if(c)return!1;if(u.isInline){const f=!m||m.type.allowsMarkType(n),p=!!n.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(n));c=f&&p}return!c}),c})}const CC=(t,e={})=>({tr:n,state:o,dispatch:r})=>{const{selection:i}=n,{empty:s,ranges:a}=i,l=bn(t,o.schema);if(r)if(s){const c=iy(o,l);n.addStoredMark(l.create({...c,...e}))}else a.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;o.doc.nodesBetween(u,d,(m,f)=>{const p=Math.max(f,u),g=Math.min(f+m.nodeSize,d);m.marks.find(y=>y.type===l)?m.marks.forEach(y=>{l===y.type&&n.addMark(p,g,l.create({...y.attrs,...e}))}):n.addMark(p,g,l.create(e))})});return xC(o,n,l)},EC=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),NC=(t,e={})=>({state:n,dispatch:o,chain:r})=>{const i=ke(t,n.schema);let s;return n.selection.$anchor.sameParent(n.selection.$head)&&(s=n.selection.$anchor.parent.attrs),i.isTextblock?r().command(({commands:a})=>Ug(i,{...s,...e})(n)?!0:a.clearNodes()).command(({state:a})=>Ug(i,{...s,...e})(a,o)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},AC=t=>({tr:e,dispatch:n})=>{if(n){const{doc:o}=e,r=no(t,0,o.content.size),i=V.create(o,r);e.setSelection(i)}return!0},OC=t=>({tr:e,dispatch:n})=>{if(n){const{doc:o}=e,{from:r,to:i}=typeof t=="number"?{from:t,to:t}:t,s=W.atStart(o).from,a=W.atEnd(o).to,l=no(r,s,a),c=no(i,s,a),u=W.create(o,l,c);e.setSelection(u)}return!0},RC=t=>({state:e,dispatch:n})=>{const o=ke(t,e.schema);return sx(o)(e,n)};function cy(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const o=n.filter(r=>e==null?void 0:e.includes(r.type.name));t.tr.ensureMarks(o)}}const DC=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:o,editor:r})=>{const{selection:i,doc:s}=e,{$from:a,$to:l}=i,c=r.extensionManager.attributes,u=ta(c,a.node().type.name,a.node().attrs);if(i instanceof V&&i.node.isBlock)return!a.parentOffset||!_t(s,a.pos)?!1:(o&&(t&&cy(n,r.extensionManager.splittableMarks),e.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;const d=l.parentOffset===l.parent.content.size,m=a.depth===0?void 0:hC(a.node(-1).contentMatchAt(a.indexAfter(-1)));let f=d&&m?[{type:m,attrs:u}]:void 0,p=_t(e.doc,e.mapping.map(a.pos),1,f);if(!f&&!p&&_t(e.doc,e.mapping.map(a.pos),1,m?[{type:m}]:void 0)&&(p=!0,f=m?[{type:m,attrs:u}]:void 0),o){if(p&&(i instanceof W&&e.deleteSelection(),e.split(e.mapping.map(a.pos),1,f),m&&!d&&!a.parentOffset&&a.parent.type!==m)){const g=e.mapping.map(a.before()),h=e.doc.resolve(g);a.node(-1).canReplaceWith(h.index(),h.index()+1,m)&&e.setNodeMarkup(e.mapping.map(a.before()),m)}t&&cy(n,r.extensionManager.splittableMarks),e.scrollIntoView()}return p},TC=(t,e={})=>({tr:n,state:o,dispatch:r,editor:i})=>{var s;const a=ke(t,o.schema),{$from:l,$to:c}=o.selection,u=o.selection.node;if(u&&u.isBlock||l.depth<2||!l.sameParent(c))return!1;const d=l.node(-1);if(d.type!==a)return!1;const m=i.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==a||l.index(-2)!==l.node(-2).childCount-1)return!1;if(r){let y=R.empty;const w=l.index(-1)?1:l.index(-2)?2:3;for(let N=l.depth-w;N>=l.depth-3;N-=1)y=R.from(l.node(N).copy(y));const v=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,S={...ta(m,l.node().type.name,l.node().attrs),...e},C=((s=a.contentMatch.defaultType)===null||s===void 0?void 0:s.createAndFill(S))||void 0;y=y.append(R.from(a.createAndFill(null,C)||void 0));const $=l.before(l.depth-(w-1));n.replace($,l.after(-v),new I(y,4-w,0));let k=-1;n.doc.nodesBetween($,n.doc.content.size,(N,O)=>{if(k>-1)return!1;N.isTextblock&&N.content.size===0&&(k=O+1)}),k>-1&&n.setSelection(W.near(n.doc.resolve(k))),n.scrollIntoView()}return!0}const f=c.pos===l.end()?d.contentMatchAt(0).defaultType:null,p={...ta(m,d.type.name,d.attrs),...e},g={...ta(m,l.node().type.name,l.node().attrs),...e};n.delete(l.pos,c.pos);const h=f?[{type:a,attrs:p},{type:f,attrs:g}]:[{type:a,attrs:p}];if(!_t(n.doc,l.pos,2))return!1;if(r){const{selection:y,storedMarks:w}=o,{splittableMarks:v}=i.extensionManager,S=w||y.$to.parentOffset&&y.$from.marks();if(n.split(l.pos,2,h).scrollIntoView(),!S||!r)return!0;const C=S.filter($=>v.includes($.type.name));n.ensureMarks(C)}return!0},vu=(t,e)=>{const n=bu(s=>s.type===e)(t.selection);if(!n)return!0;const o=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(o===void 0)return!0;const r=t.doc.nodeAt(o);return n.node.type===(r==null?void 0:r.type)&&cn(t.doc,n.pos)&&t.join(n.pos),!0},Su=(t,e)=>{const n=bu(s=>s.type===e)(t.selection);if(!n)return!0;const o=t.doc.resolve(n.start).after(n.depth);if(o===void 0)return!0;const r=t.doc.nodeAt(o);return n.node.type===(r==null?void 0:r.type)&&cn(t.doc,o)&&t.join(o),!0};var MC=Object.freeze({__proto__:null,blur:xx,clearContent:Cx,clearNodes:Ex,command:Nx,createParagraphNear:Ax,cut:Ox,deleteCurrentNode:Rx,deleteNode:Dx,deleteRange:Tx,deleteSelection:Mx,enter:jx,exitCode:Px,extendMarkRange:Ix,first:Lx,focus:Bx,forEach:Fx,insertContent:Hx,insertContentAt:Ux,joinBackward:Kx,joinDown:Jx,joinForward:Wx,joinItemBackward:qx,joinItemForward:Gx,joinTextblockBackward:Qx,joinTextblockForward:Zx,joinUp:Yx,keyboardShortcut:eC,lift:tC,liftEmptyBlock:nC,liftListItem:oC,newlineInCode:rC,resetAttributes:iC,scrollIntoView:sC,selectAll:aC,selectNodeBackward:lC,selectNodeForward:cC,selectParentNode:uC,selectTextblockEnd:dC,selectTextblockStart:mC,setContent:fC,setMark:CC,setMeta:EC,setNode:NC,setNodeSelection:AC,setTextSelection:OC,sinkListItem:RC,splitBlock:DC,splitListItem:TC,toggleList:(t,e,n,o={})=>({editor:r,tr:i,state:s,dispatch:a,chain:l,commands:c,can:u})=>{const{extensions:d,splittableMarks:m}=r.extensionManager,f=ke(t,s.schema),p=ke(e,s.schema),{selection:g,storedMarks:h}=s,{$from:y,$to:w}=g,v=y.blockRange(w),S=h||g.$to.parentOffset&&g.$from.marks();if(!v)return!1;const C=bu($=>ly($.type.name,d))(g);if(v.depth>=1&&C&&v.depth-C.depth<=1){if(C.node.type===f)return c.liftListItem(p);if(ly(C.node.type.name,d)&&f.validContent(C.node.content)&&a)return l().command(()=>(i.setNodeMarkup(C.pos,f),!0)).command(()=>vu(i,f)).command(()=>Su(i,f)).run()}return!n||!S||!a?l().command(()=>u().wrapInList(f,o)?!0:c.clearNodes()).wrapInList(f,o).command(()=>vu(i,f)).command(()=>Su(i,f)).run():l().command(()=>{const $=u().wrapInList(f,o),k=S.filter(N=>m.includes(N.type.name));return i.ensureMarks(k),$?!0:c.clearNodes()}).wrapInList(f,o).command(()=>vu(i,f)).command(()=>Su(i,f)).run()},toggleMark:(t,e={},n={})=>({state:o,commands:r})=>{const{extendEmptyMarkRange:i=!1}=n,s=bn(t,o.schema);return wu(o,s,e)?r.unsetMark(s,{extendEmptyMarkRange:i}):r.setMark(s,e)},toggleNode:(t,e,n={})=>({state:o,commands:r})=>{const i=ke(t,o.schema),s=ke(e,o.schema),a=Gr(o,i,n);let l;return o.selection.$anchor.sameParent(o.selection.$head)&&(l=o.selection.$anchor.parent.attrs),a?r.setNode(s,l):r.setNode(i,{...l,...n})},toggleWrap:(t,e={})=>({state:n,commands:o})=>{const r=ke(t,n.schema);return Gr(n,r,e)?o.lift(r):o.wrapIn(r,e)},undoInputRule:()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let o=0;o<n.length;o+=1){const r=n[o];let i;if(r.spec.isInputRules&&(i=r.getState(t))){if(e){const s=t.tr,a=i.transform;for(let l=a.steps.length-1;l>=0;l-=1)s.step(a.steps[l].invert(a.docs[l]));if(i.text){const l=s.doc.resolve(i.from).marks();s.replaceWith(i.from,i.to,t.schema.text(i.text,l))}else s.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:o,ranges:r}=n;return o||e&&r.forEach(i=>{t.removeMark(i.$from.pos,i.$to.pos)}),!0},unsetMark:(t,e={})=>({tr:n,state:o,dispatch:r})=>{var i;const{extendEmptyMarkRange:s=!1}=e,{selection:a}=n,l=bn(t,o.schema),{$from:c,empty:u,ranges:d}=a;if(!r)return!0;if(u&&s){let{from:m,to:f}=a;const p=(i=c.marks().find(h=>h.type===l))===null||i===void 0?void 0:i.attrs,g=hu(c,l,p);g&&(m=g.from,f=g.to),n.removeMark(m,f,l)}else d.forEach(m=>{n.removeMark(m.$from.pos,m.$to.pos,l)});return n.removeStoredMark(l),!0},updateAttributes:(t,e={})=>({tr:n,state:o,dispatch:r})=>{let i=null,s=null;const a=ea(typeof t=="string"?t:t.name,o.schema);return a?(a==="node"&&(i=ke(t,o.schema)),a==="mark"&&(s=bn(t,o.schema)),r&&n.selection.ranges.forEach(l=>{const c=l.$from.pos,u=l.$to.pos;let d,m,f,p;n.selection.empty?o.doc.nodesBetween(c,u,(g,h)=>{i&&i===g.type&&(f=Math.max(h,c),p=Math.min(h+g.nodeSize,u),d=h,m=g)}):o.doc.nodesBetween(c,u,(g,h)=>{h<c&&i&&i===g.type&&(f=Math.max(h,c),p=Math.min(h+g.nodeSize,u),d=h,m=g),h>=c&&h<=u&&(i&&i===g.type&&n.setNodeMarkup(h,void 0,{...g.attrs,...e}),s&&g.marks.length&&g.marks.forEach(y=>{if(s===y.type){const w=Math.max(h,c),v=Math.min(h+g.nodeSize,u);n.addMark(w,v,s.create({...y.attrs,...e}))}}))}),m&&(d!==void 0&&n.setNodeMarkup(d,void 0,{...m.attrs,...e}),s&&m.marks.length&&m.marks.forEach(g=>{s===g.type&&n.addMark(f,p,s.create({...g.attrs,...e}))}))}),!0):!1},wrapIn:(t,e={})=>({state:n,dispatch:o})=>{const r=ke(t,n.schema);return Xk(r,e)(n,o)},wrapInList:(t,e={})=>({state:n,dispatch:o})=>{const r=ke(t,n.schema);return ex(r,e)(n,o)}});const jC=mt.create({name:"commands",addCommands(){return{...MC}}}),PC=mt.create({name:"drop",addProseMirrorPlugins(){return[new Ke({key:new kt("tiptapDrop"),props:{handleDrop:(t,e,n,o)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:o})}}})]}}),IC=mt.create({name:"editable",addProseMirrorPlugins(){return[new Ke({key:new kt("editable"),props:{editable:()=>this.editor.options.editable}})]}}),LC=new kt("focusEvents"),zC=mt.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new Ke({key:LC,props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const o=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(o),!1},blur:(e,n)=>{t.isFocused=!1;const o=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(o),!1}}}})]}}),BC=mt.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{const{selection:l,doc:c}=a,{empty:u,$anchor:d}=l,{pos:m,parent:f}=d,p=d.parent.isTextblock&&m>0?a.doc.resolve(m-1):d,g=p.parent.type.spec.isolating,h=d.pos-d.parentOffset,y=g&&p.parent.childCount===1?h===d.pos:Z.atStart(c).from===m;return!u||!f.type.isTextblock||f.textContent.length||!y||y&&d.parent.type.name==="paragraph"?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),o={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},r={...o},i={...o,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return gu()||oy()?i:r},addProseMirrorPlugins(){return[new Ke({key:new kt("clearDocument"),appendTransaction:(t,e,n)=>{if(t.some(g=>g.getMeta("composition")))return;const o=t.some(g=>g.docChanged)&&!e.doc.eq(n.doc),r=t.some(g=>g.getMeta("preventClearDocument"));if(!o||r)return;const{empty:i,from:s,to:a}=e.selection,l=Z.atStart(e.doc).from,c=Z.atEnd(e.doc).to;if(i||!(s===l&&a===c)||!na(n.doc))return;const m=n.tr,f=Ys({state:n,transaction:m}),{commands:p}=new Js({editor:this.editor,state:f});if(p.clearNodes(),!!m.steps.length)return m}})]}}),FC=mt.create({name:"paste",addProseMirrorPlugins(){return[new Ke({key:new kt("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),HC=mt.create({name:"tabindex",addProseMirrorPlugins(){return[new Ke({key:new kt("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class oo{get name(){return this.node.type.name}constructor(e,n,o=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=o,this.resolvedPos=e,this.editor=n,this.currentNode=r}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!==null&&e!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let n=this.from,o=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,o=this.to-1}this.editor.commands.insertContentAt({from:n,to:o},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(e);return new oo(n,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new oo(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new oo(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,o)=>{const r=n.isBlock&&!n.isTextblock,i=n.isAtom&&!n.isText,s=this.pos+o+(i?0:1);if(s<0||s>this.resolvedPos.doc.nodeSize-2)return;const a=this.resolvedPos.doc.resolve(s);if(!r&&a.depth<=this.depth)return;const l=new oo(a,this.editor,r,r?n:null);r&&(l.actualDepth=this.depth+1),e.push(new oo(a,this.editor,r,r?n:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,n={}){let o=null,r=this.parent;for(;r&&!o;){if(r.node.type.name===e)if(Object.keys(n).length>0){const i=r.node.attrs,s=Object.keys(n);for(let a=0;a<s.length;a+=1){const l=s[a];if(i[l]!==n[l])break}}else o=r;r=r.parent}return o}querySelector(e,n={}){return this.querySelectorAll(e,n,!0)[0]||null}querySelectorAll(e,n={},o=!1){let r=[];if(!this.children||this.children.length===0)return r;const i=Object.keys(n);return this.children.forEach(s=>{o&&r.length>0||(s.node.type.name===e&&i.every(l=>n[l]===s.node.attrs[l])&&r.push(s),!(o&&r.length>0)&&(r=r.concat(s.querySelectorAll(e,n,o))))}),r}setAttribute(e){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(n)}}const VC=`.ProseMirror {
33
33
  position: relative;
34
34
  }
35
35
 
@@ -103,16 +103,16 @@ img.ProseMirror-separator {
103
103
 
104
104
  .tippy-box[data-animation=fade][data-state=hidden] {
105
105
  opacity: 0
106
- }`;function _C(t,e,n){const o=document.querySelector("style[data-tiptap-style]");if(o!==null)return o;const r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.setAttribute("data-tiptap-style",""),r.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(r),r}class UC extends ax{constructor(e={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:n})=>{throw n},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:n,slice:o,moved:r})=>this.options.onDrop(n,o,r)),this.on("paste",({event:n,slice:o})=>this.options.onPaste(n,o)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=_C(VC,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,n=!0){this.setOptions({editable:e}),n&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,n){const o=Jg(n)?n(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:o});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;const n=this.state.plugins;let o=n;if([].concat(e).forEach(i=>{const s=typeof i=="string"?`${i}$`:i.key;o=o.filter(a=>!a.key.startsWith(s))}),n.length===o.length)return;const r=this.state.reconfigure({plugins:o});return this.view.updateState(r),r}createExtensionManager(){var e,n;const r=[...this.options.enableCoreExtensions?[IC,kx.configure({blockSeparator:(n=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||n===void 0?void 0:n.blockSeparator}),jC,zC,FC,HC,PC,BC].filter(i=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[i.name]!==!1:!0):[],...this.options.extensions].filter(i=>["extension","node","mark"].includes(i==null?void 0:i.type));this.extensionManager=new Bo(r,this)}createCommandManager(){this.commandManager=new Js({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){var e;let n;try{n=yu(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(s){if(!(s instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(s.message))throw s;this.emit("contentError",{editor:this,error:s,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(a=>a.name!=="collaboration"),this.createExtensionManager()}}),n=yu(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const o=ty(n,this.options.autofocus);this.view=new Eg(this.options.element,{...this.options.editorProps,attributes:{role:"textbox",...(e=this.options.editorProps)===null||e===void 0?void 0:e.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:Do.create({doc:n,selection:o||void 0})});const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const i=this.view.dom;i.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const n=this.capturedTransaction;return this.capturedTransaction=null,n}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(s=>{var a;return(a=this.capturedTransaction)===null||a===void 0?void 0:a.step(s)});return}const n=this.state.apply(e),o=!this.state.selection.eq(n.selection);this.emit("beforeTransaction",{editor:this,transaction:e,nextState:n}),this.view.updateState(n),this.emit("transaction",{editor:this,transaction:e}),o&&this.emit("selectionUpdate",{editor:this,transaction:e});const r=e.getMeta("focus"),i=e.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:e}),i&&this.emit("blur",{editor:this,event:i.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return sy(this.state,e)}isActive(e,n){const o=typeof e=="string"?e:null,r=typeof e=="string"?n:e;return kC(this.state,o,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return fu(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=`
106
+ }`;function _C(t,e,n){const o=document.querySelector("style[data-tiptap-style]");if(o!==null)return o;const r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.setAttribute("data-tiptap-style",""),r.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(r),r}class UC extends ax{constructor(e={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:n})=>{throw n},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("contentError",this.options.onContentError),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:n,slice:o,moved:r})=>this.options.onDrop(n,o,r)),this.on("paste",({event:n,slice:o})=>this.options.onPaste(n,o)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=_C(VC,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,n=!0){this.setOptions({editable:e}),n&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,n){const o=Jg(n)?n(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:o});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;const n=this.state.plugins;let o=n;if([].concat(e).forEach(i=>{const s=typeof i=="string"?`${i}$`:i.key;o=o.filter(a=>!a.key.startsWith(s))}),n.length===o.length)return;const r=this.state.reconfigure({plugins:o});return this.view.updateState(r),r}createExtensionManager(){var e,n;const r=[...this.options.enableCoreExtensions?[IC,kx.configure({blockSeparator:(n=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||n===void 0?void 0:n.blockSeparator}),jC,zC,BC,HC,PC,FC].filter(i=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[i.name]!==!1:!0):[],...this.options.extensions].filter(i=>["extension","node","mark"].includes(i==null?void 0:i.type));this.extensionManager=new Fo(r,this)}createCommandManager(){this.commandManager=new Js({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){var e;let n;try{n=yu(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(s){if(!(s instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(s.message))throw s;this.emit("contentError",{editor:this,error:s,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(a=>a.name!=="collaboration"),this.createExtensionManager()}}),n=yu(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const o=ty(n,this.options.autofocus);this.view=new Eg(this.options.element,{...this.options.editorProps,attributes:{role:"textbox",...(e=this.options.editorProps)===null||e===void 0?void 0:e.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:Do.create({doc:n,selection:o||void 0})});const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const i=this.view.dom;i.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const n=this.capturedTransaction;return this.capturedTransaction=null,n}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(s=>{var a;return(a=this.capturedTransaction)===null||a===void 0?void 0:a.step(s)});return}const n=this.state.apply(e),o=!this.state.selection.eq(n.selection);this.emit("beforeTransaction",{editor:this,transaction:e,nextState:n}),this.view.updateState(n),this.emit("transaction",{editor:this,transaction:e}),o&&this.emit("selectionUpdate",{editor:this,transaction:e});const r=e.getMeta("focus"),i=e.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:e}),i&&this.emit("blur",{editor:this,event:i.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return sy(this.state,e)}isActive(e,n){const o=typeof e=="string"?e:null,r=typeof e=="string"?n:e;return kC(this.state,o,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return fu(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=`
107
107
 
108
- `,textSerializers:o={}}=e||{};return bC(this.state.doc,{blockSeparator:n,textSerializers:{...Qg(this.schema),...o}})}get isEmpty(){return na(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,n){var o;return((o=this.$doc)===null||o===void 0?void 0:o.querySelector(e,n))||null}$nodes(e,n){var o;return((o=this.$doc)===null||o===void 0?void 0:o.querySelectorAll(e,n))||null}$pos(e){const n=this.state.doc.resolve(e);return new oo(n,this)}get $doc(){return this.$pos(0)}}function YC(t){return new mx({find:t.find,handler:({state:e,range:n,match:o,chain:r})=>{const i=X(t.getAttributes,void 0,o)||{},s=e.tr.delete(n.from,n.to),l=s.doc.resolve(n.from).blockRange(),c=l&&Ec(l,t.type,i);if(!c)return null;if(s.wrap(l,c),t.keepMarks&&t.editor){const{selection:d,storedMarks:m}=e,{splittableMarks:f}=t.editor.extensionManager,p=m||d.$to.parentOffset&&d.$from.marks();if(p){const g=p.filter(h=>f.includes(h.type.name));s.ensureMarks(g)}}if(t.keepAttributes){const d=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(d,i).run()}const u=s.doc.resolve(n.from-1).nodeBefore;u&&u.type===t.type&&cn(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(o,u))&&s.join(n.from-1)}})}let Qr=class Bf{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=X(F(this,"addOptions",{name:this.name}))),this.storage=X(F(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Bf(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Gs(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new Bf(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=X(F(n,"addOptions",{name:n.name})),n.storage=X(F(n,"addStorage",{name:n.name,options:n.options})),n}};function JC(t){return new yx({find:t.find,handler:({state:e,range:n,match:o,pasteEvent:r})=>{const i=X(t.getAttributes,void 0,o,r);if(i===!1||i===null)return null;const{tr:s}=e,a=o[o.length-1],l=o[0];let c=n.to;if(a){const u=l.search(/\S/),d=n.from+l.indexOf(a),m=d+a.length;if(ay(n.from,n.to,e.doc).filter(p=>p.mark.type.excluded.find(h=>h===t.type&&h!==p.mark.type)).filter(p=>p.to>d).length)return null;m<n.to&&s.delete(m,n.to),d>n.from&&s.delete(n.from+u,d),c=n.from+u+a.length,s.addMark(n.from+u,c,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}var uy={exports:{}},ft={},dy={exports:{}},my={};/** @license React v0.20.2
108
+ `,textSerializers:o={}}=e||{};return bC(this.state.doc,{blockSeparator:n,textSerializers:{...Qg(this.schema),...o}})}get isEmpty(){return na(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){if(this.emit("destroy"),this.view){const e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,n){var o;return((o=this.$doc)===null||o===void 0?void 0:o.querySelector(e,n))||null}$nodes(e,n){var o;return((o=this.$doc)===null||o===void 0?void 0:o.querySelectorAll(e,n))||null}$pos(e){const n=this.state.doc.resolve(e);return new oo(n,this)}get $doc(){return this.$pos(0)}}function YC(t){return new mx({find:t.find,handler:({state:e,range:n,match:o,chain:r})=>{const i=X(t.getAttributes,void 0,o)||{},s=e.tr.delete(n.from,n.to),l=s.doc.resolve(n.from).blockRange(),c=l&&Ec(l,t.type,i);if(!c)return null;if(s.wrap(l,c),t.keepMarks&&t.editor){const{selection:d,storedMarks:m}=e,{splittableMarks:f}=t.editor.extensionManager,p=m||d.$to.parentOffset&&d.$from.marks();if(p){const g=p.filter(h=>f.includes(h.type.name));s.ensureMarks(g)}}if(t.keepAttributes){const d=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(d,i).run()}const u=s.doc.resolve(n.from-1).nodeBefore;u&&u.type===t.type&&cn(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(o,u))&&s.join(n.from-1)}})}let Qr=class Ff{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=X(B(this,"addOptions",{name:this.name}))),this.storage=X(B(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Ff(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Gs(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new Ff(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=X(B(n,"addOptions",{name:n.name})),n.storage=X(B(n,"addStorage",{name:n.name,options:n.options})),n}};function JC(t){return new yx({find:t.find,handler:({state:e,range:n,match:o,pasteEvent:r})=>{const i=X(t.getAttributes,void 0,o,r);if(i===!1||i===null)return null;const{tr:s}=e,a=o[o.length-1],l=o[0];let c=n.to;if(a){const u=l.search(/\S/),d=n.from+l.indexOf(a),m=d+a.length;if(ay(n.from,n.to,e.doc).filter(p=>p.mark.type.excluded.find(h=>h===t.type&&h!==p.mark.type)).filter(p=>p.to>d).length)return null;m<n.to&&s.delete(m,n.to),d>n.from&&s.delete(n.from+u,d),c=n.from+u+a.length,s.addMark(n.from+u,c,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}var uy={exports:{}},ft={},dy={exports:{}},my={};/** @license React v0.20.2
109
109
  * scheduler.production.min.js
110
110
  *
111
111
  * Copyright (c) Facebook, Inc. and its affiliates.
112
112
  *
113
113
  * This source code is licensed under the MIT license found in the
114
114
  * LICENSE file in the root directory of this source tree.
115
- */(function(t){var e,n,o,r;if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();t.unstable_now=function(){return s.now()-a}}if(typeof window>"u"||typeof MessageChannel!="function"){var l=null,c=null,u=function(){if(l!==null)try{var D=t.unstable_now();l(!0,D),l=null}catch(P){throw setTimeout(u,0),P}};e=function(D){l!==null?setTimeout(e,0,D):(l=D,setTimeout(u,0))},n=function(D,P){c=setTimeout(D,P)},o=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},r=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,m=window.clearTimeout;if(typeof console<"u"){var f=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof f!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var p=!1,g=null,h=-1,y=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},r=function(){},t.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<D?Math.floor(1e3/D):5};var v=new MessageChannel,S=v.port2;v.port1.onmessage=function(){if(g!==null){var D=t.unstable_now();w=D+y;try{g(!0,D)?S.postMessage(null):(p=!1,g=null)}catch(P){throw S.postMessage(null),P}}else p=!1},e=function(D){g=D,p||(p=!0,S.postMessage(null))},n=function(D,P){h=d(function(){D(t.unstable_now())},P)},o=function(){m(h),h=-1}}function C(D,P){var L=D.length;D.push(P);e:for(;;){var B=L-1>>>1,Q=D[B];if(Q!==void 0&&0<N(Q,P))D[B]=P,D[L]=Q,L=B;else break e}}function $(D){return D=D[0],D===void 0?null:D}function k(D){var P=D[0];if(P!==void 0){var L=D.pop();if(L!==P){D[0]=L;e:for(var B=0,Q=D.length;B<Q;){var He=2*(B+1)-1,St=D[He],xo=He+1,Ht=D[xo];if(St!==void 0&&0>N(St,L))Ht!==void 0&&0>N(Ht,St)?(D[B]=Ht,D[xo]=L,B=xo):(D[B]=St,D[He]=L,B=He);else if(Ht!==void 0&&0>N(Ht,L))D[B]=Ht,D[xo]=L,B=xo;else break e}}return P}return null}function N(D,P){var L=D.sortIndex-P.sortIndex;return L!==0?L:D.id-P.id}var O=[],H=[],ie=1,ne=null,oe=3,ye=!1,de=!1,me=!1;function E(D){for(var P=$(H);P!==null;){if(P.callback===null)k(H);else if(P.startTime<=D)k(H),P.sortIndex=P.expirationTime,C(O,P);else break;P=$(H)}}function A(D){if(me=!1,E(D),!de)if($(O)!==null)de=!0,e(j);else{var P=$(H);P!==null&&n(A,P.startTime-D)}}function j(D,P){de=!1,me&&(me=!1,o()),ye=!0;var L=oe;try{for(E(P),ne=$(O);ne!==null&&(!(ne.expirationTime>P)||D&&!t.unstable_shouldYield());){var B=ne.callback;if(typeof B=="function"){ne.callback=null,oe=ne.priorityLevel;var Q=B(ne.expirationTime<=P);P=t.unstable_now(),typeof Q=="function"?ne.callback=Q:ne===$(O)&&k(O),E(P)}else k(O);ne=$(O)}if(ne!==null)var He=!0;else{var St=$(H);St!==null&&n(A,St.startTime-P),He=!1}return He}finally{ne=null,oe=L,ye=!1}}var q=r;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(D){D.callback=null},t.unstable_continueExecution=function(){de||ye||(de=!0,e(j))},t.unstable_getCurrentPriorityLevel=function(){return oe},t.unstable_getFirstCallbackNode=function(){return $(O)},t.unstable_next=function(D){switch(oe){case 1:case 2:case 3:var P=3;break;default:P=oe}var L=oe;oe=P;try{return D()}finally{oe=L}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=q,t.unstable_runWithPriority=function(D,P){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var L=oe;oe=D;try{return P()}finally{oe=L}},t.unstable_scheduleCallback=function(D,P,L){var B=t.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?B+L:B):L=B,D){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=L+Q,D={id:ie++,callback:P,priorityLevel:D,startTime:L,expirationTime:Q,sortIndex:-1},L>B?(D.sortIndex=L,C(H,D),$(O)===null&&D===$(H)&&(me?o():me=!0,n(A,L-B))):(D.sortIndex=Q,C(O,D),de||ye||(de=!0,e(j))),D},t.unstable_wrapCallback=function(D){var P=oe;return function(){var L=oe;oe=P;try{return D.apply(this,arguments)}finally{oe=L}}}})(my),dy.exports=my;var KC=dy.exports;/** @license React v17.0.2
115
+ */(function(t){var e,n,o,r;if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,a=s.now();t.unstable_now=function(){return s.now()-a}}if(typeof window>"u"||typeof MessageChannel!="function"){var l=null,c=null,u=function(){if(l!==null)try{var D=t.unstable_now();l(!0,D),l=null}catch(P){throw setTimeout(u,0),P}};e=function(D){l!==null?setTimeout(e,0,D):(l=D,setTimeout(u,0))},n=function(D,P){c=setTimeout(D,P)},o=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},r=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,m=window.clearTimeout;if(typeof console<"u"){var f=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof f!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var p=!1,g=null,h=-1,y=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},r=function(){},t.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<D?Math.floor(1e3/D):5};var v=new MessageChannel,S=v.port2;v.port1.onmessage=function(){if(g!==null){var D=t.unstable_now();w=D+y;try{g(!0,D)?S.postMessage(null):(p=!1,g=null)}catch(P){throw S.postMessage(null),P}}else p=!1},e=function(D){g=D,p||(p=!0,S.postMessage(null))},n=function(D,P){h=d(function(){D(t.unstable_now())},P)},o=function(){m(h),h=-1}}function C(D,P){var L=D.length;D.push(P);e:for(;;){var F=L-1>>>1,Q=D[F];if(Q!==void 0&&0<N(Q,P))D[F]=P,D[L]=Q,L=F;else break e}}function $(D){return D=D[0],D===void 0?null:D}function k(D){var P=D[0];if(P!==void 0){var L=D.pop();if(L!==P){D[0]=L;e:for(var F=0,Q=D.length;F<Q;){var He=2*(F+1)-1,St=D[He],xo=He+1,Ht=D[xo];if(St!==void 0&&0>N(St,L))Ht!==void 0&&0>N(Ht,St)?(D[F]=Ht,D[xo]=L,F=xo):(D[F]=St,D[He]=L,F=He);else if(Ht!==void 0&&0>N(Ht,L))D[F]=Ht,D[xo]=L,F=xo;else break e}}return P}return null}function N(D,P){var L=D.sortIndex-P.sortIndex;return L!==0?L:D.id-P.id}var O=[],H=[],ie=1,ne=null,oe=3,ye=!1,de=!1,me=!1;function E(D){for(var P=$(H);P!==null;){if(P.callback===null)k(H);else if(P.startTime<=D)k(H),P.sortIndex=P.expirationTime,C(O,P);else break;P=$(H)}}function A(D){if(me=!1,E(D),!de)if($(O)!==null)de=!0,e(j);else{var P=$(H);P!==null&&n(A,P.startTime-D)}}function j(D,P){de=!1,me&&(me=!1,o()),ye=!0;var L=oe;try{for(E(P),ne=$(O);ne!==null&&(!(ne.expirationTime>P)||D&&!t.unstable_shouldYield());){var F=ne.callback;if(typeof F=="function"){ne.callback=null,oe=ne.priorityLevel;var Q=F(ne.expirationTime<=P);P=t.unstable_now(),typeof Q=="function"?ne.callback=Q:ne===$(O)&&k(O),E(P)}else k(O);ne=$(O)}if(ne!==null)var He=!0;else{var St=$(H);St!==null&&n(A,St.startTime-P),He=!1}return He}finally{ne=null,oe=L,ye=!1}}var q=r;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(D){D.callback=null},t.unstable_continueExecution=function(){de||ye||(de=!0,e(j))},t.unstable_getCurrentPriorityLevel=function(){return oe},t.unstable_getFirstCallbackNode=function(){return $(O)},t.unstable_next=function(D){switch(oe){case 1:case 2:case 3:var P=3;break;default:P=oe}var L=oe;oe=P;try{return D()}finally{oe=L}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=q,t.unstable_runWithPriority=function(D,P){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var L=oe;oe=D;try{return P()}finally{oe=L}},t.unstable_scheduleCallback=function(D,P,L){var F=t.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?F+L:F):L=F,D){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=L+Q,D={id:ie++,callback:P,priorityLevel:D,startTime:L,expirationTime:Q,sortIndex:-1},L>F?(D.sortIndex=L,C(H,D),$(O)===null&&D===$(H)&&(me?o():me=!0,n(A,L-F))):(D.sortIndex=Q,C(O,D),de||ye||(de=!0,e(j))),D},t.unstable_wrapCallback=function(D){var P=oe;return function(){var L=oe;oe=P;try{return D.apply(this,arguments)}finally{oe=L}}}})(my),dy.exports=my;var KC=dy.exports;/** @license React v17.0.2
116
116
  * react-dom.production.min.js
117
117
  *
118
118
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -123,11 +123,11 @@ img.ProseMirror-separator {
123
123
  `+Mu+t}var ju=!1;function aa(t,e){if(!t||ju)return"";ju=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(l){var o=l}Reflect.construct(t,[],e)}else{try{e.call()}catch(l){o=l}t.call(e.prototype)}else{try{throw Error()}catch(l){o=l}t()}}catch(l){if(l&&o&&typeof l.stack=="string"){for(var r=l.stack.split(`
124
124
  `),i=o.stack.split(`
125
125
  `),s=r.length-1,a=i.length-1;1<=s&&0<=a&&r[s]!==i[a];)a--;for(;1<=s&&0<=a;s--,a--)if(r[s]!==i[a]){if(s!==1||a!==1)do if(s--,a--,0>a||r[s]!==i[a])return`
126
- `+r[s].replace(" at new "," at ");while(1<=s&&0<=a);break}}}finally{ju=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?oi(t):""}function ZC(t){switch(t.tag){case 5:return oi(t.type);case 16:return oi("Lazy");case 13:return oi("Suspense");case 19:return oi("SuspenseList");case 0:case 2:case 15:return t=aa(t.type,!1),t;case 11:return t=aa(t.type.render,!1),t;case 22:return t=aa(t.type._render,!1),t;case 1:return t=aa(t.type,!0),t;default:return""}}function Vo(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case wn:return"Fragment";case so:return"Portal";case ei:return"Profiler";case Cu:return"StrictMode";case ti:return"Suspense";case ia:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Nu:return(t.displayName||"Context")+".Consumer";case Eu:return(t._context.displayName||"Context")+".Provider";case ra:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case sa:return Vo(t.type);case Ou:return Vo(t._render);case Au:e=t._payload,t=t._init;try{return Vo(t(e))}catch{}}return null}function vn(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function wy(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function XC(t){var e=wy(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),o=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(s){o=""+s,i.call(this,s)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(s){o=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function la(t){t._valueTracker||(t._valueTracker=XC(t))}function vy(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),o="";return t&&(o=wy(t)?t.checked?"true":"false":t.value),t=o,t!==n?(e.setValue(t),!0):!1}function ca(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}}function Pu(t,e){var n=e.checked;return ue({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Sy(t,e){var n=e.defaultValue==null?"":e.defaultValue,o=e.checked!=null?e.checked:e.defaultChecked;n=vn(e.value!=null?e.value:n),t._wrapperState={initialChecked:o,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function $y(t,e){e=e.checked,e!=null&&xu(t,"checked",e,!1)}function Iu(t,e){$y(t,e);var n=vn(e.value),o=e.type;if(n!=null)o==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(o==="submit"||o==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Lu(t,e.type,n):e.hasOwnProperty("defaultValue")&&Lu(t,e.type,vn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function ky(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var o=e.type;if(!(o!=="submit"&&o!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Lu(t,e,n){(e!=="number"||ca(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function eE(t){var e="";return oa.Children.forEach(t,function(n){n!=null&&(e+=n)}),e}function zu(t,e){return t=ue({children:void 0},e),(e=eE(e.children))&&(t.children=e),t}function _o(t,e,n,o){if(t=t.options,e){e={};for(var r=0;r<n.length;r++)e["$"+n[r]]=!0;for(n=0;n<t.length;n++)r=e.hasOwnProperty("$"+t[n].value),t[n].selected!==r&&(t[n].selected=r),r&&o&&(t[n].defaultSelected=!0)}else{for(n=""+vn(n),e=null,r=0;r<t.length;r++){if(t[r].value===n){t[r].selected=!0,o&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function Fu(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(M(91));return ue({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function xy(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(M(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(M(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:vn(n)}}function Cy(t,e){var n=vn(e.value),o=vn(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),o!=null&&(t.defaultValue=""+o)}function Ey(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}var Bu={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function Ny(t){switch(t){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 Hu(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Ny(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var ua,Ay=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,o,r){MSApp.execUnsafeLocalFunction(function(){return t(e,n,o,r)})}:t}(function(t,e){if(t.namespaceURI!==Bu.svg||"innerHTML"in t)t.innerHTML=e;else{for(ua=ua||document.createElement("div"),ua.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=ua.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function ri(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var ii={animationIterationCount:!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},tE=["Webkit","ms","Moz","O"];Object.keys(ii).forEach(function(t){tE.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),ii[e]=ii[t]})});function Oy(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||ii.hasOwnProperty(t)&&ii[t]?(""+e).trim():e+"px"}function Ry(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var o=n.indexOf("--")===0,r=Oy(n,e[n],o);n==="float"&&(n="cssFloat"),o?t.setProperty(n,r):t[n]=r}}var nE=ue({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 Vu(t,e){if(e){if(nE[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(M(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(M(60));if(!(typeof e.dangerouslySetInnerHTML=="object"&&"__html"in e.dangerouslySetInnerHTML))throw Error(M(61))}if(e.style!=null&&typeof e.style!="object")throw Error(M(62))}}function _u(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Uu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Yu=null,Uo=null,Yo=null;function Dy(t){if(t=xi(t)){if(typeof Yu!="function")throw Error(M(280));var e=t.stateNode;e&&(e=Aa(e),Yu(t.stateNode,t.type,e))}}function Ty(t){Uo?Yo?Yo.push(t):Yo=[t]:Uo=t}function My(){if(Uo){var t=Uo,e=Yo;if(Yo=Uo=null,Dy(t),e)for(t=0;t<e.length;t++)Dy(e[t])}}function Ju(t,e){return t(e)}function jy(t,e,n,o,r){return t(e,n,o,r)}function Ku(){}var Py=Ju,ao=!1,Wu=!1;function qu(){(Uo!==null||Yo!==null)&&(Ku(),My())}function oE(t,e,n){if(Wu)return t(e,n);Wu=!0;try{return Py(t,e,n)}finally{Wu=!1,qu()}}function si(t,e){var n=t.stateNode;if(n===null)return null;var o=Aa(n);if(o===null)return null;n=o[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(t=t.type,o=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!o;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(M(231,e,typeof n));return n}var Gu=!1;if(Wt)try{var ai={};Object.defineProperty(ai,"passive",{get:function(){Gu=!0}}),window.addEventListener("test",ai,ai),window.removeEventListener("test",ai,ai)}catch{Gu=!1}function rE(t,e,n,o,r,i,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{e.apply(n,c)}catch(u){this.onError(u)}}var li=!1,da=null,ma=!1,Qu=null,iE={onError:function(t){li=!0,da=t}};function sE(t,e,n,o,r,i,s,a,l){li=!1,da=null,rE.apply(iE,arguments)}function aE(t,e,n,o,r,i,s,a,l){if(sE.apply(this,arguments),li){if(li){var c=da;li=!1,da=null}else throw Error(M(198));ma||(ma=!0,Qu=c)}}function lo(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&1026&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function Iy(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Ly(t){if(lo(t)!==t)throw Error(M(188))}function lE(t){var e=t.alternate;if(!e){if(e=lo(t),e===null)throw Error(M(188));return e!==t?null:t}for(var n=t,o=e;;){var r=n.return;if(r===null)break;var i=r.alternate;if(i===null){if(o=r.return,o!==null){n=o;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===n)return Ly(r),t;if(i===o)return Ly(r),e;i=i.sibling}throw Error(M(188))}if(n.return!==o.return)n=r,o=i;else{for(var s=!1,a=r.child;a;){if(a===n){s=!0,n=r,o=i;break}if(a===o){s=!0,o=r,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,o=r;break}if(a===o){s=!0,o=i,n=r;break}a=a.sibling}if(!s)throw Error(M(189))}}if(n.alternate!==o)throw Error(M(190))}if(n.tag!==3)throw Error(M(188));return n.stateNode.current===n?t:e}function zy(t){if(t=lE(t),!t)return null;for(var e=t;;){if(e.tag===5||e.tag===6)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function Fy(t,e){for(var n=t.alternate;e!==null;){if(e===t||e===n)return!0;e=e.return}return!1}var By,Zu,Hy,Vy,Xu=!1,Dt=[],Sn=null,$n=null,kn=null,ci=new Map,ui=new Map,di=[],_y="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 ed(t,e,n,o,r){return{blockedOn:t,domEventName:e,eventSystemFlags:n|16,nativeEvent:r,targetContainers:[o]}}function Uy(t,e){switch(t){case"focusin":case"focusout":Sn=null;break;case"dragenter":case"dragleave":$n=null;break;case"mouseover":case"mouseout":kn=null;break;case"pointerover":case"pointerout":ci.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ui.delete(e.pointerId)}}function mi(t,e,n,o,r,i){return t===null||t.nativeEvent!==i?(t=ed(e,n,o,r,i),e!==null&&(e=xi(e),e!==null&&Zu(e)),t):(t.eventSystemFlags|=o,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function cE(t,e,n,o,r){switch(e){case"focusin":return Sn=mi(Sn,t,e,n,o,r),!0;case"dragenter":return $n=mi($n,t,e,n,o,r),!0;case"mouseover":return kn=mi(kn,t,e,n,o,r),!0;case"pointerover":var i=r.pointerId;return ci.set(i,mi(ci.get(i)||null,t,e,n,o,r)),!0;case"gotpointercapture":return i=r.pointerId,ui.set(i,mi(ui.get(i)||null,t,e,n,o,r)),!0}return!1}function uE(t){var e=co(t.target);if(e!==null){var n=lo(e);if(n!==null){if(e=n.tag,e===13){if(e=Iy(n),e!==null){t.blockedOn=e,Vy(t.lanePriority,function(){xe.unstable_runWithPriority(t.priority,function(){Hy(n)})});return}}else if(e===3&&n.stateNode.hydrate){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function fa(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=sd(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n!==null)return e=xi(n),e!==null&&Zu(e),t.blockedOn=n,!1;e.shift()}return!0}function Yy(t,e,n){fa(t)&&n.delete(e)}function dE(){for(Xu=!1;0<Dt.length;){var t=Dt[0];if(t.blockedOn!==null){t=xi(t.blockedOn),t!==null&&By(t);break}for(var e=t.targetContainers;0<e.length;){var n=sd(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n!==null){t.blockedOn=n;break}e.shift()}t.blockedOn===null&&Dt.shift()}Sn!==null&&fa(Sn)&&(Sn=null),$n!==null&&fa($n)&&($n=null),kn!==null&&fa(kn)&&(kn=null),ci.forEach(Yy),ui.forEach(Yy)}function fi(t,e){t.blockedOn===e&&(t.blockedOn=null,Xu||(Xu=!0,xe.unstable_scheduleCallback(xe.unstable_NormalPriority,dE)))}function Jy(t){function e(r){return fi(r,t)}if(0<Dt.length){fi(Dt[0],t);for(var n=1;n<Dt.length;n++){var o=Dt[n];o.blockedOn===t&&(o.blockedOn=null)}}for(Sn!==null&&fi(Sn,t),$n!==null&&fi($n,t),kn!==null&&fi(kn,t),ci.forEach(e),ui.forEach(e),n=0;n<di.length;n++)o=di[n],o.blockedOn===t&&(o.blockedOn=null);for(;0<di.length&&(n=di[0],n.blockedOn===null);)uE(n),n.blockedOn===null&&di.shift()}function pa(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Jo={animationend:pa("Animation","AnimationEnd"),animationiteration:pa("Animation","AnimationIteration"),animationstart:pa("Animation","AnimationStart"),transitionend:pa("Transition","TransitionEnd")},td={},Ky={};Wt&&(Ky=document.createElement("div").style,"AnimationEvent"in window||(delete Jo.animationend.animation,delete Jo.animationiteration.animation,delete Jo.animationstart.animation),"TransitionEvent"in window||delete Jo.transitionend.transition);function ha(t){if(td[t])return td[t];if(!Jo[t])return t;var e=Jo[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Ky)return td[t]=e[n];return t}var Wy=ha("animationend"),qy=ha("animationiteration"),Gy=ha("animationstart"),Qy=ha("transitionend"),Zy=new Map,nd=new Map,mE=["abort","abort",Wy,"animationEnd",qy,"animationIteration",Gy,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Qy,"transitionEnd","waiting","waiting"];function od(t,e){for(var n=0;n<t.length;n+=2){var o=t[n],r=t[n+1];r="on"+(r[0].toUpperCase()+r.slice(1)),nd.set(o,e),Zy.set(o,r),ro(r,[o])}}var fE=xe.unstable_now;fE();var se=8;function Ko(t){if(1&t)return se=15,1;if(2&t)return se=14,2;if(4&t)return se=13,4;var e=24&t;return e!==0?(se=12,e):t&32?(se=11,32):(e=192&t,e!==0?(se=10,e):t&256?(se=9,256):(e=3584&t,e!==0?(se=8,e):t&4096?(se=7,4096):(e=4186112&t,e!==0?(se=6,e):(e=62914560&t,e!==0?(se=5,e):t&67108864?(se=4,67108864):t&134217728?(se=3,134217728):(e=805306368&t,e!==0?(se=2,e):1073741824&t?(se=1,1073741824):(se=8,t))))))}function pE(t){switch(t){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function hE(t){switch(t){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(M(358,t))}}function pi(t,e){var n=t.pendingLanes;if(n===0)return se=0;var o=0,r=0,i=t.expiredLanes,s=t.suspendedLanes,a=t.pingedLanes;if(i!==0)o=i,r=se=15;else if(i=n&134217727,i!==0){var l=i&~s;l!==0?(o=Ko(l),r=se):(a&=i,a!==0&&(o=Ko(a),r=se))}else i=n&~s,i!==0?(o=Ko(i),r=se):a!==0&&(o=Ko(a),r=se);if(o===0)return 0;if(o=31-xn(o),o=n&((0>o?0:1<<o)<<1)-1,e!==0&&e!==o&&!(e&s)){if(Ko(e),r<=se)return e;se=r}if(e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=o;0<e;)n=31-xn(e),r=1<<n,o|=t[n],e&=~r;return o}function Xy(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function ga(t,e){switch(t){case 15:return 1;case 14:return 2;case 12:return t=Wo(24&~e),t===0?ga(10,e):t;case 10:return t=Wo(192&~e),t===0?ga(8,e):t;case 8:return t=Wo(3584&~e),t===0&&(t=Wo(4186112&~e),t===0&&(t=512)),t;case 2:return e=Wo(805306368&~e),e===0&&(e=268435456),e}throw Error(M(358,t))}function Wo(t){return t&-t}function rd(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ya(t,e,n){t.pendingLanes|=e;var o=e-1;t.suspendedLanes&=o,t.pingedLanes&=o,t=t.eventTimes,e=31-xn(e),t[e]=n}var xn=Math.clz32?Math.clz32:bE,gE=Math.log,yE=Math.LN2;function bE(t){return t===0?32:31-(gE(t)/yE|0)|0}var wE=xe.unstable_UserBlockingPriority,vE=xe.unstable_runWithPriority,ba=!0;function SE(t,e,n,o){ao||Ku();var r=id,i=ao;ao=!0;try{jy(r,t,e,n,o)}finally{(ao=i)||qu()}}function $E(t,e,n,o){vE(wE,id.bind(null,t,e,n,o))}function id(t,e,n,o){if(ba){var r;if((r=(e&4)===0)&&0<Dt.length&&-1<_y.indexOf(t))t=ed(null,t,e,n,o),Dt.push(t);else{var i=sd(t,e,n,o);if(i===null)r&&Uy(t,o);else{if(r){if(-1<_y.indexOf(t)){t=ed(i,t,e,n,o),Dt.push(t);return}if(cE(i,t,e,n,o))return;Uy(t,o)}Ab(t,e,o,null,n)}}}}function sd(t,e,n,o){var r=Uu(o);if(r=co(r),r!==null){var i=lo(r);if(i===null)r=null;else{var s=i.tag;if(s===13){if(r=Iy(i),r!==null)return r;r=null}else if(s===3){if(i.stateNode.hydrate)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null)}}return Ab(t,e,o,r,n),null}var Cn=null,ad=null,wa=null;function eb(){if(wa)return wa;var t,e=ad,n=e.length,o,r="value"in Cn?Cn.value:Cn.textContent,i=r.length;for(t=0;t<n&&e[t]===r[t];t++);var s=n-t;for(o=1;o<=s&&e[n-o]===r[i-o];o++);return wa=r.slice(t,1<o?1-o:void 0)}function va(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Sa(){return!0}function tb(){return!1}function it(t){function e(n,o,r,i,s){this._reactName=n,this._targetInst=r,this.type=o,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in t)t.hasOwnProperty(a)&&(n=t[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Sa:tb,this.isPropagationStopped=tb,this}return ue(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Sa)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Sa)},persist:function(){},isPersistent:Sa}),e}var qo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ld=it(qo),hi=ue({},qo,{view:0,detail:0}),kE=it(hi),cd,ud,gi,$a=ue({},hi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:md,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==gi&&(gi&&t.type==="mousemove"?(cd=t.screenX-gi.screenX,ud=t.screenY-gi.screenY):ud=cd=0,gi=t),cd)},movementY:function(t){return"movementY"in t?t.movementY:ud}}),nb=it($a),xE=ue({},$a,{dataTransfer:0}),CE=it(xE),EE=ue({},hi,{relatedTarget:0}),dd=it(EE),NE=ue({},qo,{animationName:0,elapsedTime:0,pseudoElement:0}),AE=it(NE),OE=ue({},qo,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),RE=it(OE),DE=ue({},qo,{data:0}),ob=it(DE),TE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ME={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"},jE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function PE(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=jE[t])?!!e[t]:!1}function md(){return PE}var IE=ue({},hi,{key:function(t){if(t.key){var e=TE[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=va(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?ME[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:md,charCode:function(t){return t.type==="keypress"?va(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?va(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),LE=it(IE),zE=ue({},$a,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rb=it(zE),FE=ue({},hi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:md}),BE=it(FE),HE=ue({},qo,{propertyName:0,elapsedTime:0,pseudoElement:0}),VE=it(HE),_E=ue({},$a,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),UE=it(_E),YE=[9,13,27,32],fd=Wt&&"CompositionEvent"in window,yi=null;Wt&&"documentMode"in document&&(yi=document.documentMode);var JE=Wt&&"TextEvent"in window&&!yi,ib=Wt&&(!fd||yi&&8<yi&&11>=yi),sb=" ",ab=!1;function lb(t,e){switch(t){case"keyup":return YE.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cb(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Go=!1;function KE(t,e){switch(t){case"compositionend":return cb(e);case"keypress":return e.which!==32?null:(ab=!0,sb);case"textInput":return t=e.data,t===sb&&ab?null:t;default:return null}}function WE(t,e){if(Go)return t==="compositionend"||!fd&&lb(t,e)?(t=eb(),wa=ad=Cn=null,Go=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return ib&&e.locale!=="ko"?null:e.data;default:return null}}var qE={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 ub(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!qE[t.type]:e==="textarea"}function db(t,e,n,o){Ty(o),e=xa(e,"onChange"),0<e.length&&(n=new ld("onChange","change",null,n,o),t.push({event:n,listeners:e}))}var bi=null,wi=null;function GE(t){kb(t,0)}function ka(t){var e=tr(t);if(vy(e))return t}function QE(t,e){if(t==="change")return e}var mb=!1;if(Wt){var pd;if(Wt){var hd="oninput"in document;if(!hd){var fb=document.createElement("div");fb.setAttribute("oninput","return;"),hd=typeof fb.oninput=="function"}pd=hd}else pd=!1;mb=pd&&(!document.documentMode||9<document.documentMode)}function pb(){bi&&(bi.detachEvent("onpropertychange",hb),wi=bi=null)}function hb(t){if(t.propertyName==="value"&&ka(wi)){var e=[];if(db(e,wi,t,Uu(t)),t=GE,ao)t(e);else{ao=!0;try{Ju(t,e)}finally{ao=!1,qu()}}}}function ZE(t,e,n){t==="focusin"?(pb(),bi=e,wi=n,bi.attachEvent("onpropertychange",hb)):t==="focusout"&&pb()}function XE(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ka(wi)}function eN(t,e){if(t==="click")return ka(e)}function tN(t,e){if(t==="input"||t==="change")return ka(e)}function nN(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var pt=typeof Object.is=="function"?Object.is:nN,oN=Object.prototype.hasOwnProperty;function vi(t,e){if(pt(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!oN.call(e,n[o])||!pt(t[n[o]],e[n[o]]))return!1;return!0}function gb(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function yb(t,e){var n=gb(t);t=0;for(var o;n;){if(n.nodeType===3){if(o=t+n.textContent.length,t<=e&&o>=e)return{node:n,offset:e-t};t=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=gb(n)}}function bb(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?bb(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function wb(){for(var t=window,e=ca();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=ca(t.document)}return e}function gd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var rN=Wt&&"documentMode"in document&&11>=document.documentMode,Qo=null,yd=null,Si=null,bd=!1;function vb(t,e,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bd||Qo==null||Qo!==ca(o)||(o=Qo,"selectionStart"in o&&gd(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Si&&vi(Si,o)||(Si=o,o=xa(yd,"onSelect"),0<o.length&&(e=new ld("onSelect","select",null,e,n),t.push({event:e,listeners:o}),e.target=Qo)))}od("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),od("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),od(mE,2);for(var Sb="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),wd=0;wd<Sb.length;wd++)nd.set(Sb[wd],0);Ho("onMouseEnter",["mouseout","mouseover"]),Ho("onMouseLeave",["mouseout","mouseover"]),Ho("onPointerEnter",["pointerout","pointerover"]),Ho("onPointerLeave",["pointerout","pointerover"]),ro("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ro("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ro("onBeforeInput",["compositionend","keypress","textInput","paste"]),ro("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ro("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ro("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $i="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),iN=new Set("cancel close invalid load scroll toggle".split(" ").concat($i));function $b(t,e,n){var o=t.type||"unknown-event";t.currentTarget=n,aE(o,e,void 0,t),t.currentTarget=null}function kb(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var o=t[n],r=o.event;o=o.listeners;e:{var i=void 0;if(e)for(var s=o.length-1;0<=s;s--){var a=o[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==i&&r.isPropagationStopped())break e;$b(r,a,c),i=l}else for(s=0;s<o.length;s++){if(a=o[s],l=a.instance,c=a.currentTarget,a=a.listener,l!==i&&r.isPropagationStopped())break e;$b(r,a,c),i=l}}}if(ma)throw t=Qu,ma=!1,Qu=null,t}function ae(t,e){var n=jb(e),o=t+"__bubble";n.has(o)||(Nb(e,t,2,!1),n.add(o))}var xb="_reactListening"+Math.random().toString(36).slice(2);function Cb(t){t[xb]||(t[xb]=!0,fy.forEach(function(e){iN.has(e)||Eb(e,!1,t,null),Eb(e,!0,t,null)}))}function Eb(t,e,n,o){var r=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,i=n;t==="selectionchange"&&n.nodeType!==9&&(i=n.ownerDocument);var s=jb(i),a=t+"__"+(e?"capture":"bubble");s.has(a)||(e&&(r|=4),Nb(i,t,r,e),s.add(a))}function Nb(t,e,n,o){var r=nd.get(e);switch(r===void 0?2:r){case 0:r=SE;break;case 1:r=$E;break;default:r=id}n=r.bind(null,e,n,t),r=void 0,!Gu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),o?r!==void 0?t.addEventListener(e,n,{capture:!0,passive:r}):t.addEventListener(e,n,!0):r!==void 0?t.addEventListener(e,n,{passive:r}):t.addEventListener(e,n,!1)}function Ab(t,e,n,o,r){var i=o;if(!(e&1)&&!(e&2)&&o!==null)e:for(;;){if(o===null)return;var s=o.tag;if(s===3||s===4){var a=o.stateNode.containerInfo;if(a===r||a.nodeType===8&&a.parentNode===r)break;if(s===4)for(s=o.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===r||l.nodeType===8&&l.parentNode===r))return;s=s.return}for(;a!==null;){if(s=co(a),s===null)return;if(l=s.tag,l===5||l===6){o=i=s;continue e}a=a.parentNode}}o=o.return}oE(function(){var c=i,u=Uu(n),d=[];e:{var m=Zy.get(t);if(m!==void 0){var f=ld,p=t;switch(t){case"keypress":if(va(n)===0)break e;case"keydown":case"keyup":f=LE;break;case"focusin":p="focus",f=dd;break;case"focusout":p="blur",f=dd;break;case"beforeblur":case"afterblur":f=dd;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=nb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=CE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=BE;break;case Wy:case qy:case Gy:f=AE;break;case Qy:f=VE;break;case"scroll":f=kE;break;case"wheel":f=UE;break;case"copy":case"cut":case"paste":f=RE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=rb}var g=(e&4)!==0,h=!g&&t==="scroll",y=g?m!==null?m+"Capture":null:m;g=[];for(var w=c,v;w!==null;){v=w;var S=v.stateNode;if(v.tag===5&&S!==null&&(v=S,y!==null&&(S=si(w,y),S!=null&&g.push(ki(w,S,v)))),h)break;w=w.return}0<g.length&&(m=new f(m,p,null,n,u),d.push({event:m,listeners:g}))}}if(!(e&7)){e:{if(m=t==="mouseover"||t==="pointerover",f=t==="mouseout"||t==="pointerout",m&&!(e&16)&&(p=n.relatedTarget||n.fromElement)&&(co(p)||p[er]))break e;if((f||m)&&(m=u.window===u?u:(m=u.ownerDocument)?m.defaultView||m.parentWindow:window,f?(p=n.relatedTarget||n.toElement,f=c,p=p?co(p):null,p!==null&&(h=lo(p),p!==h||p.tag!==5&&p.tag!==6)&&(p=null)):(f=null,p=c),f!==p)){if(g=nb,S="onMouseLeave",y="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(g=rb,S="onPointerLeave",y="onPointerEnter",w="pointer"),h=f==null?m:tr(f),v=p==null?m:tr(p),m=new g(S,w+"leave",f,n,u),m.target=h,m.relatedTarget=v,S=null,co(u)===c&&(g=new g(y,w+"enter",p,n,u),g.target=v,g.relatedTarget=h,S=g),h=S,f&&p)t:{for(g=f,y=p,w=0,v=g;v;v=Zo(v))w++;for(v=0,S=y;S;S=Zo(S))v++;for(;0<w-v;)g=Zo(g),w--;for(;0<v-w;)y=Zo(y),v--;for(;w--;){if(g===y||y!==null&&g===y.alternate)break t;g=Zo(g),y=Zo(y)}g=null}else g=null;f!==null&&Ob(d,m,f,g,!1),p!==null&&h!==null&&Ob(d,h,p,g,!0)}}e:{if(m=c?tr(c):window,f=m.nodeName&&m.nodeName.toLowerCase(),f==="select"||f==="input"&&m.type==="file")var C=QE;else if(ub(m))if(mb)C=tN;else{C=XE;var $=ZE}else(f=m.nodeName)&&f.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(C=eN);if(C&&(C=C(t,c))){db(d,C,n,u);break e}$&&$(t,m,c),t==="focusout"&&($=m._wrapperState)&&$.controlled&&m.type==="number"&&Lu(m,"number",m.value)}switch($=c?tr(c):window,t){case"focusin":(ub($)||$.contentEditable==="true")&&(Qo=$,yd=c,Si=null);break;case"focusout":Si=yd=Qo=null;break;case"mousedown":bd=!0;break;case"contextmenu":case"mouseup":case"dragend":bd=!1,vb(d,n,u);break;case"selectionchange":if(rN)break;case"keydown":case"keyup":vb(d,n,u)}var k;if(fd)e:{switch(t){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else Go?lb(t,n)&&(N="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(ib&&n.locale!=="ko"&&(Go||N!=="onCompositionStart"?N==="onCompositionEnd"&&Go&&(k=eb()):(Cn=u,ad="value"in Cn?Cn.value:Cn.textContent,Go=!0)),$=xa(c,N),0<$.length&&(N=new ob(N,t,null,n,u),d.push({event:N,listeners:$}),k?N.data=k:(k=cb(n),k!==null&&(N.data=k)))),(k=JE?KE(t,n):WE(t,n))&&(c=xa(c,"onBeforeInput"),0<c.length&&(u=new ob("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=k))}kb(d,e)})}function ki(t,e,n){return{instance:t,listener:e,currentTarget:n}}function xa(t,e){for(var n=e+"Capture",o=[];t!==null;){var r=t,i=r.stateNode;r.tag===5&&i!==null&&(r=i,i=si(t,n),i!=null&&o.unshift(ki(t,i,r)),i=si(t,e),i!=null&&o.push(ki(t,i,r))),t=t.return}return o}function Zo(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Ob(t,e,n,o,r){for(var i=e._reactName,s=[];n!==null&&n!==o;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===o)break;a.tag===5&&c!==null&&(a=c,r?(l=si(n,i),l!=null&&s.unshift(ki(n,l,a))):r||(l=si(n,i),l!=null&&s.push(ki(n,l,a)))),n=n.return}s.length!==0&&t.push({event:e,listeners:s})}function Ca(){}var vd=null,Sd=null;function Rb(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function $d(t,e){return t==="textarea"||t==="option"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Db=typeof setTimeout=="function"?setTimeout:void 0,sN=typeof clearTimeout=="function"?clearTimeout:void 0;function kd(t){t.nodeType===1?t.textContent="":t.nodeType===9&&(t=t.body,t!=null&&(t.textContent=""))}function Xo(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break}return t}function Tb(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var xd=0;function aN(t){return{$$typeof:Ru,toString:t,valueOf:t}}var Ea=Math.random().toString(36).slice(2),En="__reactFiber$"+Ea,Na="__reactProps$"+Ea,er="__reactContainer$"+Ea,Mb="__reactEvents$"+Ea;function co(t){var e=t[En];if(e)return e;for(var n=t.parentNode;n;){if(e=n[er]||n[En]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Tb(t);t!==null;){if(n=t[En])return n;t=Tb(t)}return e}t=n,n=t.parentNode}return null}function xi(t){return t=t[En]||t[er],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function tr(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(M(33))}function Aa(t){return t[Na]||null}function jb(t){var e=t[Mb];return e===void 0&&(e=t[Mb]=new Set),e}var Cd=[],nr=-1;function Nn(t){return{current:t}}function le(t){0>nr||(t.current=Cd[nr],Cd[nr]=null,nr--)}function fe(t,e){nr++,Cd[nr]=t.current,t.current=e}var An={},Le=Nn(An),qe=Nn(!1),uo=An;function or(t,e){var n=t.type.contextTypes;if(!n)return An;var o=t.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===e)return o.__reactInternalMemoizedMaskedChildContext;var r={},i;for(i in n)r[i]=e[i];return o&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=r),r}function Ge(t){return t=t.childContextTypes,t!=null}function Oa(){le(qe),le(Le)}function Pb(t,e,n){if(Le.current!==An)throw Error(M(168));fe(Le,e),fe(qe,n)}function Ib(t,e,n){var o=t.stateNode;if(t=e.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var r in o)if(!(r in t))throw Error(M(108,Vo(e)||"Unknown",r));return ue({},n,o)}function Ra(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||An,uo=Le.current,fe(Le,t),fe(qe,qe.current),!0}function Lb(t,e,n){var o=t.stateNode;if(!o)throw Error(M(169));n?(t=Ib(t,e,uo),o.__reactInternalMemoizedMergedChildContext=t,le(qe),le(Le),fe(Le,t)):le(qe),fe(qe,n)}var Ed=null,mo=null,lN=xe.unstable_runWithPriority,Nd=xe.unstable_scheduleCallback,Ad=xe.unstable_cancelCallback,cN=xe.unstable_shouldYield,zb=xe.unstable_requestPaint,Od=xe.unstable_now,uN=xe.unstable_getCurrentPriorityLevel,Da=xe.unstable_ImmediatePriority,Fb=xe.unstable_UserBlockingPriority,Bb=xe.unstable_NormalPriority,Hb=xe.unstable_LowPriority,Vb=xe.unstable_IdlePriority,Rd={},dN=zb!==void 0?zb:function(){},qt=null,Ta=null,Dd=!1,_b=Od(),ze=1e4>_b?Od:function(){return Od()-_b};function rr(){switch(uN()){case Da:return 99;case Fb:return 98;case Bb:return 97;case Hb:return 96;case Vb:return 95;default:throw Error(M(332))}}function Ub(t){switch(t){case 99:return Da;case 98:return Fb;case 97:return Bb;case 96:return Hb;case 95:return Vb;default:throw Error(M(332))}}function fo(t,e){return t=Ub(t),lN(t,e)}function Ci(t,e,n){return t=Ub(t),Nd(t,e,n)}function Tt(){if(Ta!==null){var t=Ta;Ta=null,Ad(t)}Yb()}function Yb(){if(!Dd&&qt!==null){Dd=!0;var t=0;try{var e=qt;fo(99,function(){for(;t<e.length;t++){var n=e[t];do n=n(!0);while(n!==null)}}),qt=null}catch(n){throw qt!==null&&(qt=qt.slice(t+1)),Nd(Da,Tt),n}finally{Dd=!1}}}var mN=io.ReactCurrentBatchConfig;function xt(t,e){if(t&&t.defaultProps){e=ue({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}var Ma=Nn(null),ja=null,ir=null,Pa=null;function Td(){Pa=ir=ja=null}function Md(t){var e=Ma.current;le(Ma),t.type._context._currentValue=e}function Jb(t,e){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)===e){if(n===null||(n.childLanes&e)===e)break;n.childLanes|=e}else t.childLanes|=e,n!==null&&(n.childLanes|=e);t=t.return}}function sr(t,e){ja=t,Pa=ir=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Ct=!0),t.firstContext=null)}function ht(t,e){if(Pa!==t&&e!==!1&&e!==0)if((typeof e!="number"||e===1073741823)&&(Pa=t,e=1073741823),e={context:t,observedBits:e,next:null},ir===null){if(ja===null)throw Error(M(308));ir=e,ja.dependencies={lanes:0,firstContext:e,responders:null}}else ir=ir.next=e;return t._currentValue}var On=!1;function jd(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Kb(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Rn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Dn(t,e){if(t=t.updateQueue,t!==null){t=t.shared;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}}function Wb(t,e){var n=t.updateQueue,o=t.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var r=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?r=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?r=i=e:i=i.next=e}else r=i=e;n={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:o.shared,effects:o.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Ei(t,e,n,o){var r=t.updateQueue;On=!1;var i=r.firstBaseUpdate,s=r.lastBaseUpdate,a=r.shared.pending;if(a!==null){r.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?i=c:s.next=c,s=l;var u=t.alternate;if(u!==null){u=u.updateQueue;var d=u.lastBaseUpdate;d!==s&&(d===null?u.firstBaseUpdate=c:d.next=c,u.lastBaseUpdate=l)}}if(i!==null){d=r.baseState,s=0,u=c=l=null;do{a=i.lane;var m=i.eventTime;if((o&a)===a){u!==null&&(u=u.next={eventTime:m,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var f=t,p=i;switch(a=e,m=n,p.tag){case 1:if(f=p.payload,typeof f=="function"){d=f.call(m,d,a);break e}d=f;break e;case 3:f.flags=f.flags&-4097|64;case 0:if(f=p.payload,a=typeof f=="function"?f.call(m,d,a):f,a==null)break e;d=ue({},d,a);break e;case 2:On=!0}}i.callback!==null&&(t.flags|=32,a=r.effects,a===null?r.effects=[i]:a.push(i))}else m={eventTime:m,lane:a,tag:i.tag,payload:i.payload,callback:i.callback,next:null},u===null?(c=u=m,l=d):u=u.next=m,s|=a;if(i=i.next,i===null){if(a=r.shared.pending,a===null)break;i=a.next,a.next=null,r.lastBaseUpdate=a,r.shared.pending=null}}while(!0);u===null&&(l=d),r.baseState=l,r.firstBaseUpdate=c,r.lastBaseUpdate=u,zi|=s,t.lanes=s,t.memoizedState=d}}function qb(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var o=t[e],r=o.callback;if(r!==null){if(o.callback=null,o=n,typeof r!="function")throw Error(M(191,r));r.call(o)}}}var Gb=new oa.Component().refs;function Ia(t,e,n,o){e=t.memoizedState,n=n(o,e),n=n==null?e:ue({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var La={isMounted:function(t){return(t=t._reactInternals)?lo(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var o=st(),r=jn(t),i=Rn(o,r);i.payload=e,n!=null&&(i.callback=n),Dn(t,i),Pn(t,r,o)},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var o=st(),r=jn(t),i=Rn(o,r);i.tag=1,i.payload=e,n!=null&&(i.callback=n),Dn(t,i),Pn(t,r,o)},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=st(),o=jn(t),r=Rn(n,o);r.tag=2,e!=null&&(r.callback=e),Dn(t,r),Pn(t,o,n)}};function Qb(t,e,n,o,r,i,s){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(o,i,s):e.prototype&&e.prototype.isPureReactComponent?!vi(n,o)||!vi(r,i):!0}function Zb(t,e,n){var o=!1,r=An,i=e.contextType;return typeof i=="object"&&i!==null?i=ht(i):(r=Ge(e)?uo:Le.current,o=e.contextTypes,i=(o=o!=null)?or(t,r):An),e=new e(n,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=La,t.stateNode=e,e._reactInternals=t,o&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=i),e}function Xb(t,e,n,o){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,o),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,o),e.state!==t&&La.enqueueReplaceState(e,e.state,null)}function Pd(t,e,n,o){var r=t.stateNode;r.props=n,r.state=t.memoizedState,r.refs=Gb,jd(t);var i=e.contextType;typeof i=="object"&&i!==null?r.context=ht(i):(i=Ge(e)?uo:Le.current,r.context=or(t,i)),Ei(t,n,r,o),r.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(Ia(t,e,i,n),r.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(e=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),e!==r.state&&La.enqueueReplaceState(r,r.state,null),Ei(t,n,r,o),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4)}var za=Array.isArray;function Ni(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(M(309));var o=n.stateNode}if(!o)throw Error(M(147,t));var r=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===r?e.ref:(e=function(i){var s=o.refs;s===Gb&&(s=o.refs={}),i===null?delete s[r]:s[r]=i},e._stringRef=r,e)}if(typeof t!="string")throw Error(M(284));if(!n._owner)throw Error(M(290,t))}return t}function Fa(t,e){if(t.type!=="textarea")throw Error(M(31,Object.prototype.toString.call(e)==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":e))}function e0(t){function e(h,y){if(t){var w=h.lastEffect;w!==null?(w.nextEffect=y,h.lastEffect=y):h.firstEffect=h.lastEffect=y,y.nextEffect=null,y.flags=8}}function n(h,y){if(!t)return null;for(;y!==null;)e(h,y),y=y.sibling;return null}function o(h,y){for(h=new Map;y!==null;)y.key!==null?h.set(y.key,y):h.set(y.index,y),y=y.sibling;return h}function r(h,y){return h=zn(h,y),h.index=0,h.sibling=null,h}function i(h,y,w){return h.index=w,t?(w=h.alternate,w!==null?(w=w.index,w<y?(h.flags=2,y):w):(h.flags=2,y)):y}function s(h){return t&&h.alternate===null&&(h.flags=2),h}function a(h,y,w,v){return y===null||y.tag!==6?(y=ym(w,h.mode,v),y.return=h,y):(y=r(y,w),y.return=h,y)}function l(h,y,w,v){return y!==null&&y.elementType===w.type?(v=r(y,w.props),v.ref=Ni(h,y,w),v.return=h,v):(v=ol(w.type,w.key,w.props,null,h.mode,v),v.ref=Ni(h,y,w),v.return=h,v)}function c(h,y,w,v){return y===null||y.tag!==4||y.stateNode.containerInfo!==w.containerInfo||y.stateNode.implementation!==w.implementation?(y=bm(w,h.mode,v),y.return=h,y):(y=r(y,w.children||[]),y.return=h,y)}function u(h,y,w,v,S){return y===null||y.tag!==7?(y=pr(w,h.mode,v,S),y.return=h,y):(y=r(y,w),y.return=h,y)}function d(h,y,w){if(typeof y=="string"||typeof y=="number")return y=ym(""+y,h.mode,w),y.return=h,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Xr:return w=ol(y.type,y.key,y.props,null,h.mode,w),w.ref=Ni(h,null,y),w.return=h,w;case so:return y=bm(y,h.mode,w),y.return=h,y}if(za(y)||ni(y))return y=pr(y,h.mode,w,null),y.return=h,y;Fa(h,y)}return null}function m(h,y,w,v){var S=y!==null?y.key:null;if(typeof w=="string"||typeof w=="number")return S!==null?null:a(h,y,""+w,v);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Xr:return w.key===S?w.type===wn?u(h,y,w.props.children,v,S):l(h,y,w,v):null;case so:return w.key===S?c(h,y,w,v):null}if(za(w)||ni(w))return S!==null?null:u(h,y,w,v,null);Fa(h,w)}return null}function f(h,y,w,v,S){if(typeof v=="string"||typeof v=="number")return h=h.get(w)||null,a(y,h,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Xr:return h=h.get(v.key===null?w:v.key)||null,v.type===wn?u(y,h,v.props.children,S,v.key):l(y,h,v,S);case so:return h=h.get(v.key===null?w:v.key)||null,c(y,h,v,S)}if(za(v)||ni(v))return h=h.get(w)||null,u(y,h,v,S,null);Fa(y,v)}return null}function p(h,y,w,v){for(var S=null,C=null,$=y,k=y=0,N=null;$!==null&&k<w.length;k++){$.index>k?(N=$,$=null):N=$.sibling;var O=m(h,$,w[k],v);if(O===null){$===null&&($=N);break}t&&$&&O.alternate===null&&e(h,$),y=i(O,y,k),C===null?S=O:C.sibling=O,C=O,$=N}if(k===w.length)return n(h,$),S;if($===null){for(;k<w.length;k++)$=d(h,w[k],v),$!==null&&(y=i($,y,k),C===null?S=$:C.sibling=$,C=$);return S}for($=o(h,$);k<w.length;k++)N=f($,h,k,w[k],v),N!==null&&(t&&N.alternate!==null&&$.delete(N.key===null?k:N.key),y=i(N,y,k),C===null?S=N:C.sibling=N,C=N);return t&&$.forEach(function(H){return e(h,H)}),S}function g(h,y,w,v){var S=ni(w);if(typeof S!="function")throw Error(M(150));if(w=S.call(w),w==null)throw Error(M(151));for(var C=S=null,$=y,k=y=0,N=null,O=w.next();$!==null&&!O.done;k++,O=w.next()){$.index>k?(N=$,$=null):N=$.sibling;var H=m(h,$,O.value,v);if(H===null){$===null&&($=N);break}t&&$&&H.alternate===null&&e(h,$),y=i(H,y,k),C===null?S=H:C.sibling=H,C=H,$=N}if(O.done)return n(h,$),S;if($===null){for(;!O.done;k++,O=w.next())O=d(h,O.value,v),O!==null&&(y=i(O,y,k),C===null?S=O:C.sibling=O,C=O);return S}for($=o(h,$);!O.done;k++,O=w.next())O=f($,h,k,O.value,v),O!==null&&(t&&O.alternate!==null&&$.delete(O.key===null?k:O.key),y=i(O,y,k),C===null?S=O:C.sibling=O,C=O);return t&&$.forEach(function(ie){return e(h,ie)}),S}return function(h,y,w,v){var S=typeof w=="object"&&w!==null&&w.type===wn&&w.key===null;S&&(w=w.props.children);var C=typeof w=="object"&&w!==null;if(C)switch(w.$$typeof){case Xr:e:{for(C=w.key,S=y;S!==null;){if(S.key===C){switch(S.tag){case 7:if(w.type===wn){n(h,S.sibling),y=r(S,w.props.children),y.return=h,h=y;break e}break;default:if(S.elementType===w.type){n(h,S.sibling),y=r(S,w.props),y.ref=Ni(h,S,w),y.return=h,h=y;break e}}n(h,S);break}else e(h,S);S=S.sibling}w.type===wn?(y=pr(w.props.children,h.mode,v,w.key),y.return=h,h=y):(v=ol(w.type,w.key,w.props,null,h.mode,v),v.ref=Ni(h,y,w),v.return=h,h=v)}return s(h);case so:e:{for(S=w.key;y!==null;){if(y.key===S)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(h,y.sibling),y=r(y,w.children||[]),y.return=h,h=y;break e}else{n(h,y);break}else e(h,y);y=y.sibling}y=bm(w,h.mode,v),y.return=h,h=y}return s(h)}if(typeof w=="string"||typeof w=="number")return w=""+w,y!==null&&y.tag===6?(n(h,y.sibling),y=r(y,w),y.return=h,h=y):(n(h,y),y=ym(w,h.mode,v),y.return=h,h=y),s(h);if(za(w))return p(h,y,w,v);if(ni(w))return g(h,y,w,v);if(C&&Fa(h,w),typeof w>"u"&&!S)switch(h.tag){case 1:case 22:case 0:case 11:case 15:throw Error(M(152,Vo(h.type)||"Component"))}return n(h,y)}}var Ba=e0(!0),t0=e0(!1),Ai={},Mt=Nn(Ai),Oi=Nn(Ai),Ri=Nn(Ai);function po(t){if(t===Ai)throw Error(M(174));return t}function Id(t,e){switch(fe(Ri,e),fe(Oi,t),fe(Mt,Ai),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Hu(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Hu(e,t)}le(Mt),fe(Mt,e)}function ar(){le(Mt),le(Oi),le(Ri)}function n0(t){po(Ri.current);var e=po(Mt.current),n=Hu(e,t.type);e!==n&&(fe(Oi,t),fe(Mt,n))}function Ld(t){Oi.current===t&&(le(Mt),le(Oi))}var pe=Nn(0);function Ha(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&64)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Gt=null,Tn=null,jt=!1;function o0(t,e){var n=bt(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=e,n.return=t,n.flags=8,t.lastEffect!==null?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function r0(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,!0):!1;case 13:return!1;default:return!1}}function zd(t){if(jt){var e=Tn;if(e){var n=e;if(!r0(t,e)){if(e=Xo(n.nextSibling),!e||!r0(t,e)){t.flags=t.flags&-1025|2,jt=!1,Gt=t;return}o0(Gt,n)}Gt=t,Tn=Xo(e.firstChild)}else t.flags=t.flags&-1025|2,jt=!1,Gt=t}}function i0(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Gt=t}function Va(t){if(t!==Gt)return!1;if(!jt)return i0(t),jt=!0,!1;var e=t.type;if(t.tag!==5||e!=="head"&&e!=="body"&&!$d(e,t.memoizedProps))for(e=Tn;e;)o0(t,e),e=Xo(e.nextSibling);if(i0(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(M(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){Tn=Xo(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}Tn=null}}else Tn=Gt?Xo(t.stateNode.nextSibling):null;return!0}function Fd(){Tn=Gt=null,jt=!1}var lr=[];function Bd(){for(var t=0;t<lr.length;t++)lr[t]._workInProgressVersionPrimary=null;lr.length=0}var Di=io.ReactCurrentDispatcher,gt=io.ReactCurrentBatchConfig,Ti=0,ge=null,Fe=null,Te=null,_a=!1,Mi=!1;function Qe(){throw Error(M(321))}function Hd(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!pt(t[n],e[n]))return!1;return!0}function Vd(t,e,n,o,r,i){if(Ti=i,ge=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Di.current=t===null||t.memoizedState===null?pN:hN,t=n(o,r),Mi){i=0;do{if(Mi=!1,!(25>i))throw Error(M(301));i+=1,Te=Fe=null,e.updateQueue=null,Di.current=gN,t=n(o,r)}while(Mi)}if(Di.current=Ka,e=Fe!==null&&Fe.next!==null,Ti=0,Te=Fe=ge=null,_a=!1,e)throw Error(M(300));return t}function ho(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Te===null?ge.memoizedState=Te=t:Te=Te.next=t,Te}function go(){if(Fe===null){var t=ge.alternate;t=t!==null?t.memoizedState:null}else t=Fe.next;var e=Te===null?ge.memoizedState:Te.next;if(e!==null)Te=e,Fe=t;else{if(t===null)throw Error(M(310));Fe=t,t={memoizedState:Fe.memoizedState,baseState:Fe.baseState,baseQueue:Fe.baseQueue,queue:Fe.queue,next:null},Te===null?ge.memoizedState=Te=t:Te=Te.next=t}return Te}function Pt(t,e){return typeof e=="function"?e(t):e}function ji(t){var e=go(),n=e.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=t;var o=Fe,r=o.baseQueue,i=n.pending;if(i!==null){if(r!==null){var s=r.next;r.next=i.next,i.next=s}o.baseQueue=r=i,n.pending=null}if(r!==null){r=r.next,o=o.baseState;var a=s=i=null,l=r;do{var c=l.lane;if((Ti&c)===c)a!==null&&(a=a.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),o=l.eagerReducer===t?l.eagerState:t(o,l.action);else{var u={lane:c,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};a===null?(s=a=u,i=o):a=a.next=u,ge.lanes|=c,zi|=c}l=l.next}while(l!==null&&l!==r);a===null?i=o:a.next=s,pt(o,e.memoizedState)||(Ct=!0),e.memoizedState=o,e.baseState=i,e.baseQueue=a,n.lastRenderedState=o}return[e.memoizedState,n.dispatch]}function Pi(t){var e=go(),n=e.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=t;var o=n.dispatch,r=n.pending,i=e.memoizedState;if(r!==null){n.pending=null;var s=r=r.next;do i=t(i,s.action),s=s.next;while(s!==r);pt(i,e.memoizedState)||(Ct=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,o]}function s0(t,e,n){var o=e._getVersion;o=o(e._source);var r=e._workInProgressVersionPrimary;if(r!==null?t=r===o:(t=t.mutableReadLanes,(t=(Ti&t)===t)&&(e._workInProgressVersionPrimary=o,lr.push(e))),t)return n(e._source);throw lr.push(e),Error(M(350))}function a0(t,e,n,o){var r=Ye;if(r===null)throw Error(M(349));var i=e._getVersion,s=i(e._source),a=Di.current,l=a.useState(function(){return s0(r,e,n)}),c=l[1],u=l[0];l=Te;var d=t.memoizedState,m=d.refs,f=m.getSnapshot,p=d.source;d=d.subscribe;var g=ge;return t.memoizedState={refs:m,source:e,subscribe:o},a.useEffect(function(){m.getSnapshot=n,m.setSnapshot=c;var h=i(e._source);if(!pt(s,h)){h=n(e._source),pt(u,h)||(c(h),h=jn(g),r.mutableReadLanes|=h&r.pendingLanes),h=r.mutableReadLanes,r.entangledLanes|=h;for(var y=r.entanglements,w=h;0<w;){var v=31-xn(w),S=1<<v;y[v]|=h,w&=~S}}},[n,e,o]),a.useEffect(function(){return o(e._source,function(){var h=m.getSnapshot,y=m.setSnapshot;try{y(h(e._source));var w=jn(g);r.mutableReadLanes|=w&r.pendingLanes}catch(v){y(function(){throw v})}})},[e,o]),pt(f,n)&&pt(p,e)&&pt(d,o)||(t={pending:null,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:u},t.dispatch=c=Jd.bind(null,ge,t),l.queue=t,l.baseQueue=null,u=s0(r,e,n),l.memoizedState=l.baseState=u),u}function l0(t,e,n){var o=go();return a0(o,t,e,n)}function Ii(t){var e=ho();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t=e.queue={pending:null,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:t},t=t.dispatch=Jd.bind(null,ge,t),[e.memoizedState,t]}function Ua(t,e,n,o){return t={tag:t,create:e,destroy:n,deps:o,next:null},e=ge.updateQueue,e===null?(e={lastEffect:null},ge.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(o=n.next,n.next=t,t.next=o,e.lastEffect=t)),t}function c0(t){var e=ho();return t={current:t},e.memoizedState=t}function Ya(){return go().memoizedState}function _d(t,e,n,o){var r=ho();ge.flags|=t,r.memoizedState=Ua(1|e,n,void 0,o===void 0?null:o)}function Ud(t,e,n,o){var r=go();o=o===void 0?null:o;var i=void 0;if(Fe!==null){var s=Fe.memoizedState;if(i=s.destroy,o!==null&&Hd(o,s.deps)){Ua(e,n,i,o);return}}ge.flags|=t,r.memoizedState=Ua(1|e,n,i,o)}function u0(t,e){return _d(516,4,t,e)}function Ja(t,e){return Ud(516,4,t,e)}function d0(t,e){return Ud(4,2,t,e)}function m0(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function f0(t,e,n){return n=n!=null?n.concat([t]):null,Ud(4,2,m0.bind(null,e,t),n)}function Yd(){}function p0(t,e){var n=go();e=e===void 0?null:e;var o=n.memoizedState;return o!==null&&e!==null&&Hd(e,o[1])?o[0]:(n.memoizedState=[t,e],t)}function h0(t,e){var n=go();e=e===void 0?null:e;var o=n.memoizedState;return o!==null&&e!==null&&Hd(e,o[1])?o[0]:(t=t(),n.memoizedState=[t,e],t)}function fN(t,e){var n=rr();fo(98>n?98:n,function(){t(!0)}),fo(97<n?97:n,function(){var o=gt.transition;gt.transition=1;try{t(!1),e()}finally{gt.transition=o}})}function Jd(t,e,n){var o=st(),r=jn(t),i={lane:r,action:n,eagerReducer:null,eagerState:null,next:null},s=e.pending;if(s===null?i.next=i:(i.next=s.next,s.next=i),e.pending=i,s=t.alternate,t===ge||s!==null&&s===ge)Mi=_a=!0;else{if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var a=e.lastRenderedState,l=s(a,n);if(i.eagerReducer=s,i.eagerState=l,pt(l,a))return}catch{}finally{}Pn(t,r,o)}}var Ka={readContext:ht,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useMutableSource:Qe,useOpaqueIdentifier:Qe,unstable_isNewReconciler:!1},pN={readContext:ht,useCallback:function(t,e){return ho().memoizedState=[t,e===void 0?null:e],t},useContext:ht,useEffect:u0,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,_d(4,2,m0.bind(null,e,t),n)},useLayoutEffect:function(t,e){return _d(4,2,t,e)},useMemo:function(t,e){var n=ho();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var o=ho();return e=n!==void 0?n(e):e,o.memoizedState=o.baseState=e,t=o.queue={pending:null,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},t=t.dispatch=Jd.bind(null,ge,t),[o.memoizedState,t]},useRef:c0,useState:Ii,useDebugValue:Yd,useDeferredValue:function(t){var e=Ii(t),n=e[0],o=e[1];return u0(function(){var r=gt.transition;gt.transition=1;try{o(t)}finally{gt.transition=r}},[t]),n},useTransition:function(){var t=Ii(!1),e=t[0];return t=fN.bind(null,t[1]),c0(t),[t,e]},useMutableSource:function(t,e,n){var o=ho();return o.memoizedState={refs:{getSnapshot:e,setSnapshot:null},source:t,subscribe:n},a0(o,t,e,n)},useOpaqueIdentifier:function(){if(jt){var t=!1,e=aN(function(){throw t||(t=!0,n("r:"+(xd++).toString(36))),Error(M(355))}),n=Ii(e)[1];return!(ge.mode&2)&&(ge.flags|=516,Ua(5,function(){n("r:"+(xd++).toString(36))},void 0,null)),e}return e="r:"+(xd++).toString(36),Ii(e),e},unstable_isNewReconciler:!1},hN={readContext:ht,useCallback:p0,useContext:ht,useEffect:Ja,useImperativeHandle:f0,useLayoutEffect:d0,useMemo:h0,useReducer:ji,useRef:Ya,useState:function(){return ji(Pt)},useDebugValue:Yd,useDeferredValue:function(t){var e=ji(Pt),n=e[0],o=e[1];return Ja(function(){var r=gt.transition;gt.transition=1;try{o(t)}finally{gt.transition=r}},[t]),n},useTransition:function(){var t=ji(Pt)[0];return[Ya().current,t]},useMutableSource:l0,useOpaqueIdentifier:function(){return ji(Pt)[0]},unstable_isNewReconciler:!1},gN={readContext:ht,useCallback:p0,useContext:ht,useEffect:Ja,useImperativeHandle:f0,useLayoutEffect:d0,useMemo:h0,useReducer:Pi,useRef:Ya,useState:function(){return Pi(Pt)},useDebugValue:Yd,useDeferredValue:function(t){var e=Pi(Pt),n=e[0],o=e[1];return Ja(function(){var r=gt.transition;gt.transition=1;try{o(t)}finally{gt.transition=r}},[t]),n},useTransition:function(){var t=Pi(Pt)[0];return[Ya().current,t]},useMutableSource:l0,useOpaqueIdentifier:function(){return Pi(Pt)[0]},unstable_isNewReconciler:!1},yN=io.ReactCurrentOwner,Ct=!1;function Ze(t,e,n,o){e.child=t===null?t0(e,null,n,o):Ba(e,t.child,n,o)}function g0(t,e,n,o,r){n=n.render;var i=e.ref;return sr(e,r),o=Vd(t,e,n,o,i,r),t!==null&&!Ct?(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~r,Qt(t,e,r)):(e.flags|=1,Ze(t,e,o,r),e.child)}function y0(t,e,n,o,r,i){if(t===null){var s=n.type;return typeof s=="function"&&!hm(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=s,b0(t,e,s,o,r,i)):(t=ol(n.type,null,o,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}return s=t.child,!(r&i)&&(r=s.memoizedProps,n=n.compare,n=n!==null?n:vi,n(r,o)&&t.ref===e.ref)?Qt(t,e,i):(e.flags|=1,t=zn(s,o),t.ref=e.ref,t.return=e,e.child=t)}function b0(t,e,n,o,r,i){if(t!==null&&vi(t.memoizedProps,o)&&t.ref===e.ref)if(Ct=!1,(i&r)!==0)t.flags&16384&&(Ct=!0);else return e.lanes=t.lanes,Qt(t,e,i);return Wd(t,e,n,o,i)}function Kd(t,e,n){var o=e.pendingProps,r=o.children,i=t!==null?t.memoizedState:null;if(o.mode==="hidden"||o.mode==="unstable-defer-without-hiding")if(!(e.mode&4))e.memoizedState={baseLanes:0},nl(e,n);else if(n&1073741824)e.memoizedState={baseLanes:0},nl(e,i!==null?i.baseLanes:n);else return t=i!==null?i.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t},nl(e,t),null;else i!==null?(o=i.baseLanes|n,e.memoizedState=null):o=n,nl(e,o);return Ze(t,e,r,n),e.child}function w0(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=128)}function Wd(t,e,n,o,r){var i=Ge(n)?uo:Le.current;return i=or(e,i),sr(e,r),n=Vd(t,e,n,o,i,r),t!==null&&!Ct?(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~r,Qt(t,e,r)):(e.flags|=1,Ze(t,e,n,r),e.child)}function v0(t,e,n,o,r){if(Ge(n)){var i=!0;Ra(e)}else i=!1;if(sr(e,r),e.stateNode===null)t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),Zb(e,n,o),Pd(e,n,o,r),o=!0;else if(t===null){var s=e.stateNode,a=e.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=ht(c):(c=Ge(n)?uo:Le.current,c=or(e,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==o||l!==c)&&Xb(e,s,o,c),On=!1;var m=e.memoizedState;s.state=m,Ei(e,o,s,r),l=e.memoizedState,a!==o||m!==l||qe.current||On?(typeof u=="function"&&(Ia(e,n,u,o),l=e.memoizedState),(a=On||Qb(e,n,a,o,m,l,c))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(e.flags|=4)):(typeof s.componentDidMount=="function"&&(e.flags|=4),e.memoizedProps=o,e.memoizedState=l),s.props=o,s.state=l,s.context=c,o=a):(typeof s.componentDidMount=="function"&&(e.flags|=4),o=!1)}else{s=e.stateNode,Kb(t,e),a=e.memoizedProps,c=e.type===e.elementType?a:xt(e.type,a),s.props=c,d=e.pendingProps,m=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=ht(l):(l=Ge(n)?uo:Le.current,l=or(e,l));var f=n.getDerivedStateFromProps;(u=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||m!==l)&&Xb(e,s,o,l),On=!1,m=e.memoizedState,s.state=m,Ei(e,o,s,r);var p=e.memoizedState;a!==d||m!==p||qe.current||On?(typeof f=="function"&&(Ia(e,n,f,o),p=e.memoizedState),(c=On||Qb(e,n,c,o,m,p,l))?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(o,p,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(o,p,l)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=256)):(typeof s.componentDidUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=256),e.memoizedProps=o,e.memoizedState=p),s.props=o,s.state=p,s.context=l,o=c):(typeof s.componentDidUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=256),o=!1)}return qd(t,e,n,o,i,r)}function qd(t,e,n,o,r,i){w0(t,e);var s=(e.flags&64)!==0;if(!o&&!s)return r&&Lb(e,n,!1),Qt(t,e,i);o=e.stateNode,yN.current=e;var a=s&&typeof n.getDerivedStateFromError!="function"?null:o.render();return e.flags|=1,t!==null&&s?(e.child=Ba(e,t.child,null,i),e.child=Ba(e,null,a,i)):Ze(t,e,a,i),e.memoizedState=o.state,r&&Lb(e,n,!0),e.child}function S0(t){var e=t.stateNode;e.pendingContext?Pb(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Pb(t,e.context,!1),Id(t,e.containerInfo)}var Wa={dehydrated:null,retryLane:0};function $0(t,e,n){var o=e.pendingProps,r=pe.current,i=!1,s;return(s=(e.flags&64)!==0)||(s=t!==null&&t.memoizedState===null?!1:(r&2)!==0),s?(i=!0,e.flags&=-65):t!==null&&t.memoizedState===null||o.fallback===void 0||o.unstable_avoidThisFallback===!0||(r|=1),fe(pe,r&1),t===null?(o.fallback!==void 0&&zd(e),t=o.children,r=o.fallback,i?(t=k0(e,t,r,n),e.child.memoizedState={baseLanes:n},e.memoizedState=Wa,t):typeof o.unstable_expectedLoadTime=="number"?(t=k0(e,t,r,n),e.child.memoizedState={baseLanes:n},e.memoizedState=Wa,e.lanes=33554432,t):(n=gm({mode:"visible",children:t},e.mode,n,null),n.return=e,e.child=n)):t.memoizedState!==null?i?(o=C0(t,e,o.children,o.fallback,n),i=e.child,r=t.child.memoizedState,i.memoizedState=r===null?{baseLanes:n}:{baseLanes:r.baseLanes|n},i.childLanes=t.childLanes&~n,e.memoizedState=Wa,o):(n=x0(t,e,o.children,n),e.memoizedState=null,n):i?(o=C0(t,e,o.children,o.fallback,n),i=e.child,r=t.child.memoizedState,i.memoizedState=r===null?{baseLanes:n}:{baseLanes:r.baseLanes|n},i.childLanes=t.childLanes&~n,e.memoizedState=Wa,o):(n=x0(t,e,o.children,n),e.memoizedState=null,n)}function k0(t,e,n,o){var r=t.mode,i=t.child;return e={mode:"hidden",children:e},!(r&2)&&i!==null?(i.childLanes=0,i.pendingProps=e):i=gm(e,r,0,null),n=pr(n,r,o,null),i.return=t,n.return=t,i.sibling=n,t.child=i,n}function x0(t,e,n,o){var r=t.child;return t=r.sibling,n=zn(r,{mode:"visible",children:n}),!(e.mode&2)&&(n.lanes=o),n.return=e,n.sibling=null,t!==null&&(t.nextEffect=null,t.flags=8,e.firstEffect=e.lastEffect=t),e.child=n}function C0(t,e,n,o,r){var i=e.mode,s=t.child;t=s.sibling;var a={mode:"hidden",children:n};return!(i&2)&&e.child!==s?(n=e.child,n.childLanes=0,n.pendingProps=a,s=n.lastEffect,s!==null?(e.firstEffect=n.firstEffect,e.lastEffect=s,s.nextEffect=null):e.firstEffect=e.lastEffect=null):n=zn(s,a),t!==null?o=zn(t,o):(o=pr(o,i,r,null),o.flags|=2),o.return=e,n.return=e,n.sibling=o,e.child=n,o}function E0(t,e){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Jb(t.return,e)}function Gd(t,e,n,o,r,i){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:r,lastEffect:i}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=o,s.tail=n,s.tailMode=r,s.lastEffect=i)}function N0(t,e,n){var o=e.pendingProps,r=o.revealOrder,i=o.tail;if(Ze(t,e,o.children,n),o=pe.current,o&2)o=o&1|2,e.flags|=64;else{if(t!==null&&t.flags&64)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&E0(t,n);else if(t.tag===19)E0(t,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}o&=1}if(fe(pe,o),!(e.mode&2))e.memoizedState=null;else switch(r){case"forwards":for(n=e.child,r=null;n!==null;)t=n.alternate,t!==null&&Ha(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),Gd(e,!1,r,n,i,e.lastEffect);break;case"backwards":for(n=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&Ha(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}Gd(e,!0,n,null,i,e.lastEffect);break;case"together":Gd(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}return e.child}function Qt(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),zi|=e.lanes,n&e.childLanes){if(t!==null&&e.child!==t.child)throw Error(M(153));if(e.child!==null){for(t=e.child,n=zn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=zn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}return null}var A0,Qd,O0,R0;A0=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&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;n=n.return}n.sibling.return=n.return,n=n.sibling}},Qd=function(){},O0=function(t,e,n,o){var r=t.memoizedProps;if(r!==o){t=e.stateNode,po(Mt.current);var i=null;switch(n){case"input":r=Pu(t,r),o=Pu(t,o),i=[];break;case"option":r=zu(t,r),o=zu(t,o),i=[];break;case"select":r=ue({},r,{value:void 0}),o=ue({},o,{value:void 0}),i=[];break;case"textarea":r=Fu(t,r),o=Fu(t,o),i=[];break;default:typeof r.onClick!="function"&&typeof o.onClick=="function"&&(t.onclick=Ca)}Vu(n,o);var s;n=null;for(c in r)if(!o.hasOwnProperty(c)&&r.hasOwnProperty(c)&&r[c]!=null)if(c==="style"){var a=r[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Zr.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in o){var l=o[c];if(a=r!=null?r[c]:void 0,o.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Zr.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&ae("scroll",t),i||a===l||(i=[])):typeof l=="object"&&l!==null&&l.$$typeof===Ru?l.toString():(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(e.updateQueue=c)&&(e.flags|=4)}},R0=function(t,e,n,o){n!==o&&(e.flags|=4)};function Li(t,e){if(!jt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:o.sibling=null}}function bN(t,e,n){var o=e.pendingProps;switch(e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Ge(e.type)&&Oa(),null;case 3:return ar(),le(qe),le(Le),Bd(),o=e.stateNode,o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(Va(e)?e.flags|=4:o.hydrate||(e.flags|=256)),Qd(e),null;case 5:Ld(e);var r=po(Ri.current);if(n=e.type,t!==null&&e.stateNode!=null)O0(t,e,n,o,r),t.ref!==e.ref&&(e.flags|=128);else{if(!o){if(e.stateNode===null)throw Error(M(166));return null}if(t=po(Mt.current),Va(e)){o=e.stateNode,n=e.type;var i=e.memoizedProps;switch(o[En]=e,o[Na]=i,n){case"dialog":ae("cancel",o),ae("close",o);break;case"iframe":case"object":case"embed":ae("load",o);break;case"video":case"audio":for(t=0;t<$i.length;t++)ae($i[t],o);break;case"source":ae("error",o);break;case"img":case"image":case"link":ae("error",o),ae("load",o);break;case"details":ae("toggle",o);break;case"input":Sy(o,i),ae("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},ae("invalid",o);break;case"textarea":xy(o,i),ae("invalid",o)}Vu(n,i),t=null;for(var s in i)i.hasOwnProperty(s)&&(r=i[s],s==="children"?typeof r=="string"?o.textContent!==r&&(t=["children",r]):typeof r=="number"&&o.textContent!==""+r&&(t=["children",""+r]):Zr.hasOwnProperty(s)&&r!=null&&s==="onScroll"&&ae("scroll",o));switch(n){case"input":la(o),ky(o,i,!0);break;case"textarea":la(o),Ey(o);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(o.onclick=Ca)}o=t,e.updateQueue=o,o!==null&&(e.flags|=4)}else{switch(s=r.nodeType===9?r:r.ownerDocument,t===Bu.html&&(t=Ny(n)),t===Bu.html?n==="script"?(t=s.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof o.is=="string"?t=s.createElement(n,{is:o.is}):(t=s.createElement(n),n==="select"&&(s=t,o.multiple?s.multiple=!0:o.size&&(s.size=o.size))):t=s.createElementNS(t,n),t[En]=e,t[Na]=o,A0(t,e,!1,!1),e.stateNode=t,s=_u(n,o),n){case"dialog":ae("cancel",t),ae("close",t),r=o;break;case"iframe":case"object":case"embed":ae("load",t),r=o;break;case"video":case"audio":for(r=0;r<$i.length;r++)ae($i[r],t);r=o;break;case"source":ae("error",t),r=o;break;case"img":case"image":case"link":ae("error",t),ae("load",t),r=o;break;case"details":ae("toggle",t),r=o;break;case"input":Sy(t,o),r=Pu(t,o),ae("invalid",t);break;case"option":r=zu(t,o);break;case"select":t._wrapperState={wasMultiple:!!o.multiple},r=ue({},o,{value:void 0}),ae("invalid",t);break;case"textarea":xy(t,o),r=Fu(t,o),ae("invalid",t);break;default:r=o}Vu(n,r);var a=r;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Ry(t,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Ay(t,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&ri(t,l):typeof l=="number"&&ri(t,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Zr.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ae("scroll",t):l!=null&&xu(t,i,l,s))}switch(n){case"input":la(t),ky(t,o,!1);break;case"textarea":la(t),Ey(t);break;case"option":o.value!=null&&t.setAttribute("value",""+vn(o.value));break;case"select":t.multiple=!!o.multiple,i=o.value,i!=null?_o(t,!!o.multiple,i,!1):o.defaultValue!=null&&_o(t,!!o.multiple,o.defaultValue,!0);break;default:typeof r.onClick=="function"&&(t.onclick=Ca)}Rb(n,o)&&(e.flags|=4)}e.ref!==null&&(e.flags|=128)}return null;case 6:if(t&&e.stateNode!=null)R0(t,e,t.memoizedProps,o);else{if(typeof o!="string"&&e.stateNode===null)throw Error(M(166));n=po(Ri.current),po(Mt.current),Va(e)?(o=e.stateNode,n=e.memoizedProps,o[En]=e,o.nodeValue!==n&&(e.flags|=4)):(o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[En]=e,e.stateNode=o)}return null;case 13:return le(pe),o=e.memoizedState,e.flags&64?(e.lanes=n,e):(o=o!==null,n=!1,t===null?e.memoizedProps.fallback!==void 0&&Va(e):n=t.memoizedState!==null,o&&!n&&e.mode&2&&(t===null&&e.memoizedProps.unstable_avoidThisFallback!==!0||pe.current&1?Me===0&&(Me=3):((Me===0||Me===3)&&(Me=4),Ye===null||!(zi&134217727)&&!(ur&134217727)||mr(Ye,Be))),(o||n)&&(e.flags|=4),null);case 4:return ar(),Qd(e),t===null&&Cb(e.stateNode.containerInfo),null;case 10:return Md(e),null;case 17:return Ge(e.type)&&Oa(),null;case 19:if(le(pe),o=e.memoizedState,o===null)return null;if(i=(e.flags&64)!==0,s=o.rendering,s===null)if(i)Li(o,!1);else{if(Me!==0||t!==null&&t.flags&64)for(t=e.child;t!==null;){if(s=Ha(t),s!==null){for(e.flags|=64,Li(o,!1),i=s.updateQueue,i!==null&&(e.updateQueue=i,e.flags|=4),o.lastEffect===null&&(e.firstEffect=null),e.lastEffect=o.lastEffect,o=n,n=e.child;n!==null;)i=n,t=o,i.flags&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,s=i.alternate,s===null?(i.childLanes=0,i.lanes=t,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,t=s.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return fe(pe,pe.current&1|2),e.child}t=t.sibling}o.tail!==null&&ze()>lm&&(e.flags|=64,i=!0,Li(o,!1),e.lanes=33554432)}else{if(!i)if(t=Ha(s),t!==null){if(e.flags|=64,i=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Li(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!jt)return e=e.lastEffect=o.lastEffect,e!==null&&(e.nextEffect=null),null}else 2*ze()-o.renderingStartTime>lm&&n!==1073741824&&(e.flags|=64,i=!0,Li(o,!1),e.lanes=33554432);o.isBackwards?(s.sibling=e.child,e.child=s):(n=o.last,n!==null?n.sibling=s:e.child=s,o.last=s)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.lastEffect=e.lastEffect,o.renderingStartTime=ze(),n.sibling=null,e=pe.current,fe(pe,i?e&1|2:e&1),n):null;case 23:case 24:return pm(),t!==null&&t.memoizedState!==null!=(e.memoizedState!==null)&&o.mode!=="unstable-defer-without-hiding"&&(e.flags|=4),null}throw Error(M(156,e.tag))}function wN(t){switch(t.tag){case 1:Ge(t.type)&&Oa();var e=t.flags;return e&4096?(t.flags=e&-4097|64,t):null;case 3:if(ar(),le(qe),le(Le),Bd(),e=t.flags,e&64)throw Error(M(285));return t.flags=e&-4097|64,t;case 5:return Ld(t),null;case 13:return le(pe),e=t.flags,e&4096?(t.flags=e&-4097|64,t):null;case 19:return le(pe),null;case 4:return ar(),null;case 10:return Md(t),null;case 23:case 24:return pm(),null;default:return null}}function Zd(t,e){try{var n="",o=e;do n+=ZC(o),o=o.return;while(o);var r=n}catch(i){r=`
126
+ `+r[s].replace(" at new "," at ");while(1<=s&&0<=a);break}}}finally{ju=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?oi(t):""}function ZC(t){switch(t.tag){case 5:return oi(t.type);case 16:return oi("Lazy");case 13:return oi("Suspense");case 19:return oi("SuspenseList");case 0:case 2:case 15:return t=aa(t.type,!1),t;case 11:return t=aa(t.type.render,!1),t;case 22:return t=aa(t.type._render,!1),t;case 1:return t=aa(t.type,!0),t;default:return""}}function Vo(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case wn:return"Fragment";case so:return"Portal";case ei:return"Profiler";case Cu:return"StrictMode";case ti:return"Suspense";case ia:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Nu:return(t.displayName||"Context")+".Consumer";case Eu:return(t._context.displayName||"Context")+".Provider";case ra:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case sa:return Vo(t.type);case Ou:return Vo(t._render);case Au:e=t._payload,t=t._init;try{return Vo(t(e))}catch{}}return null}function vn(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function wy(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function XC(t){var e=wy(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),o=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,i=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(s){o=""+s,i.call(this,s)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(s){o=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function la(t){t._valueTracker||(t._valueTracker=XC(t))}function vy(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),o="";return t&&(o=wy(t)?t.checked?"true":"false":t.value),t=o,t!==n?(e.setValue(t),!0):!1}function ca(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}}function Pu(t,e){var n=e.checked;return ue({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Sy(t,e){var n=e.defaultValue==null?"":e.defaultValue,o=e.checked!=null?e.checked:e.defaultChecked;n=vn(e.value!=null?e.value:n),t._wrapperState={initialChecked:o,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function $y(t,e){e=e.checked,e!=null&&xu(t,"checked",e,!1)}function Iu(t,e){$y(t,e);var n=vn(e.value),o=e.type;if(n!=null)o==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(o==="submit"||o==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Lu(t,e.type,n):e.hasOwnProperty("defaultValue")&&Lu(t,e.type,vn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function ky(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var o=e.type;if(!(o!=="submit"&&o!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Lu(t,e,n){(e!=="number"||ca(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function eE(t){var e="";return oa.Children.forEach(t,function(n){n!=null&&(e+=n)}),e}function zu(t,e){return t=ue({children:void 0},e),(e=eE(e.children))&&(t.children=e),t}function _o(t,e,n,o){if(t=t.options,e){e={};for(var r=0;r<n.length;r++)e["$"+n[r]]=!0;for(n=0;n<t.length;n++)r=e.hasOwnProperty("$"+t[n].value),t[n].selected!==r&&(t[n].selected=r),r&&o&&(t[n].defaultSelected=!0)}else{for(n=""+vn(n),e=null,r=0;r<t.length;r++){if(t[r].value===n){t[r].selected=!0,o&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function Bu(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(M(91));return ue({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function xy(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(M(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(M(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:vn(n)}}function Cy(t,e){var n=vn(e.value),o=vn(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),o!=null&&(t.defaultValue=""+o)}function Ey(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}var Fu={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function Ny(t){switch(t){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 Hu(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Ny(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var ua,Ay=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,o,r){MSApp.execUnsafeLocalFunction(function(){return t(e,n,o,r)})}:t}(function(t,e){if(t.namespaceURI!==Fu.svg||"innerHTML"in t)t.innerHTML=e;else{for(ua=ua||document.createElement("div"),ua.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=ua.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function ri(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var ii={animationIterationCount:!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},tE=["Webkit","ms","Moz","O"];Object.keys(ii).forEach(function(t){tE.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),ii[e]=ii[t]})});function Oy(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||ii.hasOwnProperty(t)&&ii[t]?(""+e).trim():e+"px"}function Ry(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var o=n.indexOf("--")===0,r=Oy(n,e[n],o);n==="float"&&(n="cssFloat"),o?t.setProperty(n,r):t[n]=r}}var nE=ue({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 Vu(t,e){if(e){if(nE[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(M(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(M(60));if(!(typeof e.dangerouslySetInnerHTML=="object"&&"__html"in e.dangerouslySetInnerHTML))throw Error(M(61))}if(e.style!=null&&typeof e.style!="object")throw Error(M(62))}}function _u(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Uu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Yu=null,Uo=null,Yo=null;function Dy(t){if(t=xi(t)){if(typeof Yu!="function")throw Error(M(280));var e=t.stateNode;e&&(e=Aa(e),Yu(t.stateNode,t.type,e))}}function Ty(t){Uo?Yo?Yo.push(t):Yo=[t]:Uo=t}function My(){if(Uo){var t=Uo,e=Yo;if(Yo=Uo=null,Dy(t),e)for(t=0;t<e.length;t++)Dy(e[t])}}function Ju(t,e){return t(e)}function jy(t,e,n,o,r){return t(e,n,o,r)}function Ku(){}var Py=Ju,ao=!1,Wu=!1;function qu(){(Uo!==null||Yo!==null)&&(Ku(),My())}function oE(t,e,n){if(Wu)return t(e,n);Wu=!0;try{return Py(t,e,n)}finally{Wu=!1,qu()}}function si(t,e){var n=t.stateNode;if(n===null)return null;var o=Aa(n);if(o===null)return null;n=o[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(t=t.type,o=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!o;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(M(231,e,typeof n));return n}var Gu=!1;if(Wt)try{var ai={};Object.defineProperty(ai,"passive",{get:function(){Gu=!0}}),window.addEventListener("test",ai,ai),window.removeEventListener("test",ai,ai)}catch{Gu=!1}function rE(t,e,n,o,r,i,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{e.apply(n,c)}catch(u){this.onError(u)}}var li=!1,da=null,ma=!1,Qu=null,iE={onError:function(t){li=!0,da=t}};function sE(t,e,n,o,r,i,s,a,l){li=!1,da=null,rE.apply(iE,arguments)}function aE(t,e,n,o,r,i,s,a,l){if(sE.apply(this,arguments),li){if(li){var c=da;li=!1,da=null}else throw Error(M(198));ma||(ma=!0,Qu=c)}}function lo(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&1026&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function Iy(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Ly(t){if(lo(t)!==t)throw Error(M(188))}function lE(t){var e=t.alternate;if(!e){if(e=lo(t),e===null)throw Error(M(188));return e!==t?null:t}for(var n=t,o=e;;){var r=n.return;if(r===null)break;var i=r.alternate;if(i===null){if(o=r.return,o!==null){n=o;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===n)return Ly(r),t;if(i===o)return Ly(r),e;i=i.sibling}throw Error(M(188))}if(n.return!==o.return)n=r,o=i;else{for(var s=!1,a=r.child;a;){if(a===n){s=!0,n=r,o=i;break}if(a===o){s=!0,o=r,n=i;break}a=a.sibling}if(!s){for(a=i.child;a;){if(a===n){s=!0,n=i,o=r;break}if(a===o){s=!0,o=i,n=r;break}a=a.sibling}if(!s)throw Error(M(189))}}if(n.alternate!==o)throw Error(M(190))}if(n.tag!==3)throw Error(M(188));return n.stateNode.current===n?t:e}function zy(t){if(t=lE(t),!t)return null;for(var e=t;;){if(e.tag===5||e.tag===6)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function By(t,e){for(var n=t.alternate;e!==null;){if(e===t||e===n)return!0;e=e.return}return!1}var Fy,Zu,Hy,Vy,Xu=!1,Dt=[],Sn=null,$n=null,kn=null,ci=new Map,ui=new Map,di=[],_y="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 ed(t,e,n,o,r){return{blockedOn:t,domEventName:e,eventSystemFlags:n|16,nativeEvent:r,targetContainers:[o]}}function Uy(t,e){switch(t){case"focusin":case"focusout":Sn=null;break;case"dragenter":case"dragleave":$n=null;break;case"mouseover":case"mouseout":kn=null;break;case"pointerover":case"pointerout":ci.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ui.delete(e.pointerId)}}function mi(t,e,n,o,r,i){return t===null||t.nativeEvent!==i?(t=ed(e,n,o,r,i),e!==null&&(e=xi(e),e!==null&&Zu(e)),t):(t.eventSystemFlags|=o,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function cE(t,e,n,o,r){switch(e){case"focusin":return Sn=mi(Sn,t,e,n,o,r),!0;case"dragenter":return $n=mi($n,t,e,n,o,r),!0;case"mouseover":return kn=mi(kn,t,e,n,o,r),!0;case"pointerover":var i=r.pointerId;return ci.set(i,mi(ci.get(i)||null,t,e,n,o,r)),!0;case"gotpointercapture":return i=r.pointerId,ui.set(i,mi(ui.get(i)||null,t,e,n,o,r)),!0}return!1}function uE(t){var e=co(t.target);if(e!==null){var n=lo(e);if(n!==null){if(e=n.tag,e===13){if(e=Iy(n),e!==null){t.blockedOn=e,Vy(t.lanePriority,function(){xe.unstable_runWithPriority(t.priority,function(){Hy(n)})});return}}else if(e===3&&n.stateNode.hydrate){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function fa(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=sd(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n!==null)return e=xi(n),e!==null&&Zu(e),t.blockedOn=n,!1;e.shift()}return!0}function Yy(t,e,n){fa(t)&&n.delete(e)}function dE(){for(Xu=!1;0<Dt.length;){var t=Dt[0];if(t.blockedOn!==null){t=xi(t.blockedOn),t!==null&&Fy(t);break}for(var e=t.targetContainers;0<e.length;){var n=sd(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n!==null){t.blockedOn=n;break}e.shift()}t.blockedOn===null&&Dt.shift()}Sn!==null&&fa(Sn)&&(Sn=null),$n!==null&&fa($n)&&($n=null),kn!==null&&fa(kn)&&(kn=null),ci.forEach(Yy),ui.forEach(Yy)}function fi(t,e){t.blockedOn===e&&(t.blockedOn=null,Xu||(Xu=!0,xe.unstable_scheduleCallback(xe.unstable_NormalPriority,dE)))}function Jy(t){function e(r){return fi(r,t)}if(0<Dt.length){fi(Dt[0],t);for(var n=1;n<Dt.length;n++){var o=Dt[n];o.blockedOn===t&&(o.blockedOn=null)}}for(Sn!==null&&fi(Sn,t),$n!==null&&fi($n,t),kn!==null&&fi(kn,t),ci.forEach(e),ui.forEach(e),n=0;n<di.length;n++)o=di[n],o.blockedOn===t&&(o.blockedOn=null);for(;0<di.length&&(n=di[0],n.blockedOn===null);)uE(n),n.blockedOn===null&&di.shift()}function pa(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Jo={animationend:pa("Animation","AnimationEnd"),animationiteration:pa("Animation","AnimationIteration"),animationstart:pa("Animation","AnimationStart"),transitionend:pa("Transition","TransitionEnd")},td={},Ky={};Wt&&(Ky=document.createElement("div").style,"AnimationEvent"in window||(delete Jo.animationend.animation,delete Jo.animationiteration.animation,delete Jo.animationstart.animation),"TransitionEvent"in window||delete Jo.transitionend.transition);function ha(t){if(td[t])return td[t];if(!Jo[t])return t;var e=Jo[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Ky)return td[t]=e[n];return t}var Wy=ha("animationend"),qy=ha("animationiteration"),Gy=ha("animationstart"),Qy=ha("transitionend"),Zy=new Map,nd=new Map,mE=["abort","abort",Wy,"animationEnd",qy,"animationIteration",Gy,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Qy,"transitionEnd","waiting","waiting"];function od(t,e){for(var n=0;n<t.length;n+=2){var o=t[n],r=t[n+1];r="on"+(r[0].toUpperCase()+r.slice(1)),nd.set(o,e),Zy.set(o,r),ro(r,[o])}}var fE=xe.unstable_now;fE();var se=8;function Ko(t){if(1&t)return se=15,1;if(2&t)return se=14,2;if(4&t)return se=13,4;var e=24&t;return e!==0?(se=12,e):t&32?(se=11,32):(e=192&t,e!==0?(se=10,e):t&256?(se=9,256):(e=3584&t,e!==0?(se=8,e):t&4096?(se=7,4096):(e=4186112&t,e!==0?(se=6,e):(e=62914560&t,e!==0?(se=5,e):t&67108864?(se=4,67108864):t&134217728?(se=3,134217728):(e=805306368&t,e!==0?(se=2,e):1073741824&t?(se=1,1073741824):(se=8,t))))))}function pE(t){switch(t){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function hE(t){switch(t){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(M(358,t))}}function pi(t,e){var n=t.pendingLanes;if(n===0)return se=0;var o=0,r=0,i=t.expiredLanes,s=t.suspendedLanes,a=t.pingedLanes;if(i!==0)o=i,r=se=15;else if(i=n&134217727,i!==0){var l=i&~s;l!==0?(o=Ko(l),r=se):(a&=i,a!==0&&(o=Ko(a),r=se))}else i=n&~s,i!==0?(o=Ko(i),r=se):a!==0&&(o=Ko(a),r=se);if(o===0)return 0;if(o=31-xn(o),o=n&((0>o?0:1<<o)<<1)-1,e!==0&&e!==o&&!(e&s)){if(Ko(e),r<=se)return e;se=r}if(e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=o;0<e;)n=31-xn(e),r=1<<n,o|=t[n],e&=~r;return o}function Xy(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function ga(t,e){switch(t){case 15:return 1;case 14:return 2;case 12:return t=Wo(24&~e),t===0?ga(10,e):t;case 10:return t=Wo(192&~e),t===0?ga(8,e):t;case 8:return t=Wo(3584&~e),t===0&&(t=Wo(4186112&~e),t===0&&(t=512)),t;case 2:return e=Wo(805306368&~e),e===0&&(e=268435456),e}throw Error(M(358,t))}function Wo(t){return t&-t}function rd(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ya(t,e,n){t.pendingLanes|=e;var o=e-1;t.suspendedLanes&=o,t.pingedLanes&=o,t=t.eventTimes,e=31-xn(e),t[e]=n}var xn=Math.clz32?Math.clz32:bE,gE=Math.log,yE=Math.LN2;function bE(t){return t===0?32:31-(gE(t)/yE|0)|0}var wE=xe.unstable_UserBlockingPriority,vE=xe.unstable_runWithPriority,ba=!0;function SE(t,e,n,o){ao||Ku();var r=id,i=ao;ao=!0;try{jy(r,t,e,n,o)}finally{(ao=i)||qu()}}function $E(t,e,n,o){vE(wE,id.bind(null,t,e,n,o))}function id(t,e,n,o){if(ba){var r;if((r=(e&4)===0)&&0<Dt.length&&-1<_y.indexOf(t))t=ed(null,t,e,n,o),Dt.push(t);else{var i=sd(t,e,n,o);if(i===null)r&&Uy(t,o);else{if(r){if(-1<_y.indexOf(t)){t=ed(i,t,e,n,o),Dt.push(t);return}if(cE(i,t,e,n,o))return;Uy(t,o)}Ab(t,e,o,null,n)}}}}function sd(t,e,n,o){var r=Uu(o);if(r=co(r),r!==null){var i=lo(r);if(i===null)r=null;else{var s=i.tag;if(s===13){if(r=Iy(i),r!==null)return r;r=null}else if(s===3){if(i.stateNode.hydrate)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null)}}return Ab(t,e,o,r,n),null}var Cn=null,ad=null,wa=null;function eb(){if(wa)return wa;var t,e=ad,n=e.length,o,r="value"in Cn?Cn.value:Cn.textContent,i=r.length;for(t=0;t<n&&e[t]===r[t];t++);var s=n-t;for(o=1;o<=s&&e[n-o]===r[i-o];o++);return wa=r.slice(t,1<o?1-o:void 0)}function va(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Sa(){return!0}function tb(){return!1}function it(t){function e(n,o,r,i,s){this._reactName=n,this._targetInst=r,this.type=o,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var a in t)t.hasOwnProperty(a)&&(n=t[a],this[a]=n?n(i):i[a]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Sa:tb,this.isPropagationStopped=tb,this}return ue(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Sa)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Sa)},persist:function(){},isPersistent:Sa}),e}var qo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ld=it(qo),hi=ue({},qo,{view:0,detail:0}),kE=it(hi),cd,ud,gi,$a=ue({},hi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:md,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==gi&&(gi&&t.type==="mousemove"?(cd=t.screenX-gi.screenX,ud=t.screenY-gi.screenY):ud=cd=0,gi=t),cd)},movementY:function(t){return"movementY"in t?t.movementY:ud}}),nb=it($a),xE=ue({},$a,{dataTransfer:0}),CE=it(xE),EE=ue({},hi,{relatedTarget:0}),dd=it(EE),NE=ue({},qo,{animationName:0,elapsedTime:0,pseudoElement:0}),AE=it(NE),OE=ue({},qo,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),RE=it(OE),DE=ue({},qo,{data:0}),ob=it(DE),TE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ME={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"},jE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function PE(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=jE[t])?!!e[t]:!1}function md(){return PE}var IE=ue({},hi,{key:function(t){if(t.key){var e=TE[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=va(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?ME[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:md,charCode:function(t){return t.type==="keypress"?va(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?va(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),LE=it(IE),zE=ue({},$a,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rb=it(zE),BE=ue({},hi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:md}),FE=it(BE),HE=ue({},qo,{propertyName:0,elapsedTime:0,pseudoElement:0}),VE=it(HE),_E=ue({},$a,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),UE=it(_E),YE=[9,13,27,32],fd=Wt&&"CompositionEvent"in window,yi=null;Wt&&"documentMode"in document&&(yi=document.documentMode);var JE=Wt&&"TextEvent"in window&&!yi,ib=Wt&&(!fd||yi&&8<yi&&11>=yi),sb=" ",ab=!1;function lb(t,e){switch(t){case"keyup":return YE.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cb(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Go=!1;function KE(t,e){switch(t){case"compositionend":return cb(e);case"keypress":return e.which!==32?null:(ab=!0,sb);case"textInput":return t=e.data,t===sb&&ab?null:t;default:return null}}function WE(t,e){if(Go)return t==="compositionend"||!fd&&lb(t,e)?(t=eb(),wa=ad=Cn=null,Go=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return ib&&e.locale!=="ko"?null:e.data;default:return null}}var qE={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 ub(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!qE[t.type]:e==="textarea"}function db(t,e,n,o){Ty(o),e=xa(e,"onChange"),0<e.length&&(n=new ld("onChange","change",null,n,o),t.push({event:n,listeners:e}))}var bi=null,wi=null;function GE(t){kb(t,0)}function ka(t){var e=tr(t);if(vy(e))return t}function QE(t,e){if(t==="change")return e}var mb=!1;if(Wt){var pd;if(Wt){var hd="oninput"in document;if(!hd){var fb=document.createElement("div");fb.setAttribute("oninput","return;"),hd=typeof fb.oninput=="function"}pd=hd}else pd=!1;mb=pd&&(!document.documentMode||9<document.documentMode)}function pb(){bi&&(bi.detachEvent("onpropertychange",hb),wi=bi=null)}function hb(t){if(t.propertyName==="value"&&ka(wi)){var e=[];if(db(e,wi,t,Uu(t)),t=GE,ao)t(e);else{ao=!0;try{Ju(t,e)}finally{ao=!1,qu()}}}}function ZE(t,e,n){t==="focusin"?(pb(),bi=e,wi=n,bi.attachEvent("onpropertychange",hb)):t==="focusout"&&pb()}function XE(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ka(wi)}function eN(t,e){if(t==="click")return ka(e)}function tN(t,e){if(t==="input"||t==="change")return ka(e)}function nN(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var pt=typeof Object.is=="function"?Object.is:nN,oN=Object.prototype.hasOwnProperty;function vi(t,e){if(pt(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!oN.call(e,n[o])||!pt(t[n[o]],e[n[o]]))return!1;return!0}function gb(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function yb(t,e){var n=gb(t);t=0;for(var o;n;){if(n.nodeType===3){if(o=t+n.textContent.length,t<=e&&o>=e)return{node:n,offset:e-t};t=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=gb(n)}}function bb(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?bb(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function wb(){for(var t=window,e=ca();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=ca(t.document)}return e}function gd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var rN=Wt&&"documentMode"in document&&11>=document.documentMode,Qo=null,yd=null,Si=null,bd=!1;function vb(t,e,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bd||Qo==null||Qo!==ca(o)||(o=Qo,"selectionStart"in o&&gd(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Si&&vi(Si,o)||(Si=o,o=xa(yd,"onSelect"),0<o.length&&(e=new ld("onSelect","select",null,e,n),t.push({event:e,listeners:o}),e.target=Qo)))}od("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),od("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),od(mE,2);for(var Sb="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),wd=0;wd<Sb.length;wd++)nd.set(Sb[wd],0);Ho("onMouseEnter",["mouseout","mouseover"]),Ho("onMouseLeave",["mouseout","mouseover"]),Ho("onPointerEnter",["pointerout","pointerover"]),Ho("onPointerLeave",["pointerout","pointerover"]),ro("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ro("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ro("onBeforeInput",["compositionend","keypress","textInput","paste"]),ro("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ro("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ro("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $i="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),iN=new Set("cancel close invalid load scroll toggle".split(" ").concat($i));function $b(t,e,n){var o=t.type||"unknown-event";t.currentTarget=n,aE(o,e,void 0,t),t.currentTarget=null}function kb(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var o=t[n],r=o.event;o=o.listeners;e:{var i=void 0;if(e)for(var s=o.length-1;0<=s;s--){var a=o[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==i&&r.isPropagationStopped())break e;$b(r,a,c),i=l}else for(s=0;s<o.length;s++){if(a=o[s],l=a.instance,c=a.currentTarget,a=a.listener,l!==i&&r.isPropagationStopped())break e;$b(r,a,c),i=l}}}if(ma)throw t=Qu,ma=!1,Qu=null,t}function ae(t,e){var n=jb(e),o=t+"__bubble";n.has(o)||(Nb(e,t,2,!1),n.add(o))}var xb="_reactListening"+Math.random().toString(36).slice(2);function Cb(t){t[xb]||(t[xb]=!0,fy.forEach(function(e){iN.has(e)||Eb(e,!1,t,null),Eb(e,!0,t,null)}))}function Eb(t,e,n,o){var r=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,i=n;t==="selectionchange"&&n.nodeType!==9&&(i=n.ownerDocument);var s=jb(i),a=t+"__"+(e?"capture":"bubble");s.has(a)||(e&&(r|=4),Nb(i,t,r,e),s.add(a))}function Nb(t,e,n,o){var r=nd.get(e);switch(r===void 0?2:r){case 0:r=SE;break;case 1:r=$E;break;default:r=id}n=r.bind(null,e,n,t),r=void 0,!Gu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),o?r!==void 0?t.addEventListener(e,n,{capture:!0,passive:r}):t.addEventListener(e,n,!0):r!==void 0?t.addEventListener(e,n,{passive:r}):t.addEventListener(e,n,!1)}function Ab(t,e,n,o,r){var i=o;if(!(e&1)&&!(e&2)&&o!==null)e:for(;;){if(o===null)return;var s=o.tag;if(s===3||s===4){var a=o.stateNode.containerInfo;if(a===r||a.nodeType===8&&a.parentNode===r)break;if(s===4)for(s=o.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===r||l.nodeType===8&&l.parentNode===r))return;s=s.return}for(;a!==null;){if(s=co(a),s===null)return;if(l=s.tag,l===5||l===6){o=i=s;continue e}a=a.parentNode}}o=o.return}oE(function(){var c=i,u=Uu(n),d=[];e:{var m=Zy.get(t);if(m!==void 0){var f=ld,p=t;switch(t){case"keypress":if(va(n)===0)break e;case"keydown":case"keyup":f=LE;break;case"focusin":p="focus",f=dd;break;case"focusout":p="blur",f=dd;break;case"beforeblur":case"afterblur":f=dd;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=nb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=CE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=FE;break;case Wy:case qy:case Gy:f=AE;break;case Qy:f=VE;break;case"scroll":f=kE;break;case"wheel":f=UE;break;case"copy":case"cut":case"paste":f=RE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=rb}var g=(e&4)!==0,h=!g&&t==="scroll",y=g?m!==null?m+"Capture":null:m;g=[];for(var w=c,v;w!==null;){v=w;var S=v.stateNode;if(v.tag===5&&S!==null&&(v=S,y!==null&&(S=si(w,y),S!=null&&g.push(ki(w,S,v)))),h)break;w=w.return}0<g.length&&(m=new f(m,p,null,n,u),d.push({event:m,listeners:g}))}}if(!(e&7)){e:{if(m=t==="mouseover"||t==="pointerover",f=t==="mouseout"||t==="pointerout",m&&!(e&16)&&(p=n.relatedTarget||n.fromElement)&&(co(p)||p[er]))break e;if((f||m)&&(m=u.window===u?u:(m=u.ownerDocument)?m.defaultView||m.parentWindow:window,f?(p=n.relatedTarget||n.toElement,f=c,p=p?co(p):null,p!==null&&(h=lo(p),p!==h||p.tag!==5&&p.tag!==6)&&(p=null)):(f=null,p=c),f!==p)){if(g=nb,S="onMouseLeave",y="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(g=rb,S="onPointerLeave",y="onPointerEnter",w="pointer"),h=f==null?m:tr(f),v=p==null?m:tr(p),m=new g(S,w+"leave",f,n,u),m.target=h,m.relatedTarget=v,S=null,co(u)===c&&(g=new g(y,w+"enter",p,n,u),g.target=v,g.relatedTarget=h,S=g),h=S,f&&p)t:{for(g=f,y=p,w=0,v=g;v;v=Zo(v))w++;for(v=0,S=y;S;S=Zo(S))v++;for(;0<w-v;)g=Zo(g),w--;for(;0<v-w;)y=Zo(y),v--;for(;w--;){if(g===y||y!==null&&g===y.alternate)break t;g=Zo(g),y=Zo(y)}g=null}else g=null;f!==null&&Ob(d,m,f,g,!1),p!==null&&h!==null&&Ob(d,h,p,g,!0)}}e:{if(m=c?tr(c):window,f=m.nodeName&&m.nodeName.toLowerCase(),f==="select"||f==="input"&&m.type==="file")var C=QE;else if(ub(m))if(mb)C=tN;else{C=XE;var $=ZE}else(f=m.nodeName)&&f.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(C=eN);if(C&&(C=C(t,c))){db(d,C,n,u);break e}$&&$(t,m,c),t==="focusout"&&($=m._wrapperState)&&$.controlled&&m.type==="number"&&Lu(m,"number",m.value)}switch($=c?tr(c):window,t){case"focusin":(ub($)||$.contentEditable==="true")&&(Qo=$,yd=c,Si=null);break;case"focusout":Si=yd=Qo=null;break;case"mousedown":bd=!0;break;case"contextmenu":case"mouseup":case"dragend":bd=!1,vb(d,n,u);break;case"selectionchange":if(rN)break;case"keydown":case"keyup":vb(d,n,u)}var k;if(fd)e:{switch(t){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else Go?lb(t,n)&&(N="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(ib&&n.locale!=="ko"&&(Go||N!=="onCompositionStart"?N==="onCompositionEnd"&&Go&&(k=eb()):(Cn=u,ad="value"in Cn?Cn.value:Cn.textContent,Go=!0)),$=xa(c,N),0<$.length&&(N=new ob(N,t,null,n,u),d.push({event:N,listeners:$}),k?N.data=k:(k=cb(n),k!==null&&(N.data=k)))),(k=JE?KE(t,n):WE(t,n))&&(c=xa(c,"onBeforeInput"),0<c.length&&(u=new ob("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=k))}kb(d,e)})}function ki(t,e,n){return{instance:t,listener:e,currentTarget:n}}function xa(t,e){for(var n=e+"Capture",o=[];t!==null;){var r=t,i=r.stateNode;r.tag===5&&i!==null&&(r=i,i=si(t,n),i!=null&&o.unshift(ki(t,i,r)),i=si(t,e),i!=null&&o.push(ki(t,i,r))),t=t.return}return o}function Zo(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Ob(t,e,n,o,r){for(var i=e._reactName,s=[];n!==null&&n!==o;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===o)break;a.tag===5&&c!==null&&(a=c,r?(l=si(n,i),l!=null&&s.unshift(ki(n,l,a))):r||(l=si(n,i),l!=null&&s.push(ki(n,l,a)))),n=n.return}s.length!==0&&t.push({event:e,listeners:s})}function Ca(){}var vd=null,Sd=null;function Rb(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function $d(t,e){return t==="textarea"||t==="option"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Db=typeof setTimeout=="function"?setTimeout:void 0,sN=typeof clearTimeout=="function"?clearTimeout:void 0;function kd(t){t.nodeType===1?t.textContent="":t.nodeType===9&&(t=t.body,t!=null&&(t.textContent=""))}function Xo(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break}return t}function Tb(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var xd=0;function aN(t){return{$$typeof:Ru,toString:t,valueOf:t}}var Ea=Math.random().toString(36).slice(2),En="__reactFiber$"+Ea,Na="__reactProps$"+Ea,er="__reactContainer$"+Ea,Mb="__reactEvents$"+Ea;function co(t){var e=t[En];if(e)return e;for(var n=t.parentNode;n;){if(e=n[er]||n[En]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Tb(t);t!==null;){if(n=t[En])return n;t=Tb(t)}return e}t=n,n=t.parentNode}return null}function xi(t){return t=t[En]||t[er],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function tr(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(M(33))}function Aa(t){return t[Na]||null}function jb(t){var e=t[Mb];return e===void 0&&(e=t[Mb]=new Set),e}var Cd=[],nr=-1;function Nn(t){return{current:t}}function le(t){0>nr||(t.current=Cd[nr],Cd[nr]=null,nr--)}function fe(t,e){nr++,Cd[nr]=t.current,t.current=e}var An={},Le=Nn(An),qe=Nn(!1),uo=An;function or(t,e){var n=t.type.contextTypes;if(!n)return An;var o=t.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===e)return o.__reactInternalMemoizedMaskedChildContext;var r={},i;for(i in n)r[i]=e[i];return o&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=r),r}function Ge(t){return t=t.childContextTypes,t!=null}function Oa(){le(qe),le(Le)}function Pb(t,e,n){if(Le.current!==An)throw Error(M(168));fe(Le,e),fe(qe,n)}function Ib(t,e,n){var o=t.stateNode;if(t=e.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var r in o)if(!(r in t))throw Error(M(108,Vo(e)||"Unknown",r));return ue({},n,o)}function Ra(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||An,uo=Le.current,fe(Le,t),fe(qe,qe.current),!0}function Lb(t,e,n){var o=t.stateNode;if(!o)throw Error(M(169));n?(t=Ib(t,e,uo),o.__reactInternalMemoizedMergedChildContext=t,le(qe),le(Le),fe(Le,t)):le(qe),fe(qe,n)}var Ed=null,mo=null,lN=xe.unstable_runWithPriority,Nd=xe.unstable_scheduleCallback,Ad=xe.unstable_cancelCallback,cN=xe.unstable_shouldYield,zb=xe.unstable_requestPaint,Od=xe.unstable_now,uN=xe.unstable_getCurrentPriorityLevel,Da=xe.unstable_ImmediatePriority,Bb=xe.unstable_UserBlockingPriority,Fb=xe.unstable_NormalPriority,Hb=xe.unstable_LowPriority,Vb=xe.unstable_IdlePriority,Rd={},dN=zb!==void 0?zb:function(){},qt=null,Ta=null,Dd=!1,_b=Od(),ze=1e4>_b?Od:function(){return Od()-_b};function rr(){switch(uN()){case Da:return 99;case Bb:return 98;case Fb:return 97;case Hb:return 96;case Vb:return 95;default:throw Error(M(332))}}function Ub(t){switch(t){case 99:return Da;case 98:return Bb;case 97:return Fb;case 96:return Hb;case 95:return Vb;default:throw Error(M(332))}}function fo(t,e){return t=Ub(t),lN(t,e)}function Ci(t,e,n){return t=Ub(t),Nd(t,e,n)}function Tt(){if(Ta!==null){var t=Ta;Ta=null,Ad(t)}Yb()}function Yb(){if(!Dd&&qt!==null){Dd=!0;var t=0;try{var e=qt;fo(99,function(){for(;t<e.length;t++){var n=e[t];do n=n(!0);while(n!==null)}}),qt=null}catch(n){throw qt!==null&&(qt=qt.slice(t+1)),Nd(Da,Tt),n}finally{Dd=!1}}}var mN=io.ReactCurrentBatchConfig;function xt(t,e){if(t&&t.defaultProps){e=ue({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}var Ma=Nn(null),ja=null,ir=null,Pa=null;function Td(){Pa=ir=ja=null}function Md(t){var e=Ma.current;le(Ma),t.type._context._currentValue=e}function Jb(t,e){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)===e){if(n===null||(n.childLanes&e)===e)break;n.childLanes|=e}else t.childLanes|=e,n!==null&&(n.childLanes|=e);t=t.return}}function sr(t,e){ja=t,Pa=ir=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Ct=!0),t.firstContext=null)}function ht(t,e){if(Pa!==t&&e!==!1&&e!==0)if((typeof e!="number"||e===1073741823)&&(Pa=t,e=1073741823),e={context:t,observedBits:e,next:null},ir===null){if(ja===null)throw Error(M(308));ir=e,ja.dependencies={lanes:0,firstContext:e,responders:null}}else ir=ir.next=e;return t._currentValue}var On=!1;function jd(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Kb(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Rn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Dn(t,e){if(t=t.updateQueue,t!==null){t=t.shared;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}}function Wb(t,e){var n=t.updateQueue,o=t.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var r=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?r=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?r=i=e:i=i.next=e}else r=i=e;n={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:o.shared,effects:o.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Ei(t,e,n,o){var r=t.updateQueue;On=!1;var i=r.firstBaseUpdate,s=r.lastBaseUpdate,a=r.shared.pending;if(a!==null){r.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?i=c:s.next=c,s=l;var u=t.alternate;if(u!==null){u=u.updateQueue;var d=u.lastBaseUpdate;d!==s&&(d===null?u.firstBaseUpdate=c:d.next=c,u.lastBaseUpdate=l)}}if(i!==null){d=r.baseState,s=0,u=c=l=null;do{a=i.lane;var m=i.eventTime;if((o&a)===a){u!==null&&(u=u.next={eventTime:m,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var f=t,p=i;switch(a=e,m=n,p.tag){case 1:if(f=p.payload,typeof f=="function"){d=f.call(m,d,a);break e}d=f;break e;case 3:f.flags=f.flags&-4097|64;case 0:if(f=p.payload,a=typeof f=="function"?f.call(m,d,a):f,a==null)break e;d=ue({},d,a);break e;case 2:On=!0}}i.callback!==null&&(t.flags|=32,a=r.effects,a===null?r.effects=[i]:a.push(i))}else m={eventTime:m,lane:a,tag:i.tag,payload:i.payload,callback:i.callback,next:null},u===null?(c=u=m,l=d):u=u.next=m,s|=a;if(i=i.next,i===null){if(a=r.shared.pending,a===null)break;i=a.next,a.next=null,r.lastBaseUpdate=a,r.shared.pending=null}}while(!0);u===null&&(l=d),r.baseState=l,r.firstBaseUpdate=c,r.lastBaseUpdate=u,zi|=s,t.lanes=s,t.memoizedState=d}}function qb(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var o=t[e],r=o.callback;if(r!==null){if(o.callback=null,o=n,typeof r!="function")throw Error(M(191,r));r.call(o)}}}var Gb=new oa.Component().refs;function Ia(t,e,n,o){e=t.memoizedState,n=n(o,e),n=n==null?e:ue({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var La={isMounted:function(t){return(t=t._reactInternals)?lo(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var o=st(),r=jn(t),i=Rn(o,r);i.payload=e,n!=null&&(i.callback=n),Dn(t,i),Pn(t,r,o)},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var o=st(),r=jn(t),i=Rn(o,r);i.tag=1,i.payload=e,n!=null&&(i.callback=n),Dn(t,i),Pn(t,r,o)},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=st(),o=jn(t),r=Rn(n,o);r.tag=2,e!=null&&(r.callback=e),Dn(t,r),Pn(t,o,n)}};function Qb(t,e,n,o,r,i,s){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(o,i,s):e.prototype&&e.prototype.isPureReactComponent?!vi(n,o)||!vi(r,i):!0}function Zb(t,e,n){var o=!1,r=An,i=e.contextType;return typeof i=="object"&&i!==null?i=ht(i):(r=Ge(e)?uo:Le.current,o=e.contextTypes,i=(o=o!=null)?or(t,r):An),e=new e(n,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=La,t.stateNode=e,e._reactInternals=t,o&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=i),e}function Xb(t,e,n,o){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,o),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,o),e.state!==t&&La.enqueueReplaceState(e,e.state,null)}function Pd(t,e,n,o){var r=t.stateNode;r.props=n,r.state=t.memoizedState,r.refs=Gb,jd(t);var i=e.contextType;typeof i=="object"&&i!==null?r.context=ht(i):(i=Ge(e)?uo:Le.current,r.context=or(t,i)),Ei(t,n,r,o),r.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(Ia(t,e,i,n),r.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(e=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),e!==r.state&&La.enqueueReplaceState(r,r.state,null),Ei(t,n,r,o),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4)}var za=Array.isArray;function Ni(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(M(309));var o=n.stateNode}if(!o)throw Error(M(147,t));var r=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===r?e.ref:(e=function(i){var s=o.refs;s===Gb&&(s=o.refs={}),i===null?delete s[r]:s[r]=i},e._stringRef=r,e)}if(typeof t!="string")throw Error(M(284));if(!n._owner)throw Error(M(290,t))}return t}function Ba(t,e){if(t.type!=="textarea")throw Error(M(31,Object.prototype.toString.call(e)==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":e))}function e0(t){function e(h,y){if(t){var w=h.lastEffect;w!==null?(w.nextEffect=y,h.lastEffect=y):h.firstEffect=h.lastEffect=y,y.nextEffect=null,y.flags=8}}function n(h,y){if(!t)return null;for(;y!==null;)e(h,y),y=y.sibling;return null}function o(h,y){for(h=new Map;y!==null;)y.key!==null?h.set(y.key,y):h.set(y.index,y),y=y.sibling;return h}function r(h,y){return h=zn(h,y),h.index=0,h.sibling=null,h}function i(h,y,w){return h.index=w,t?(w=h.alternate,w!==null?(w=w.index,w<y?(h.flags=2,y):w):(h.flags=2,y)):y}function s(h){return t&&h.alternate===null&&(h.flags=2),h}function a(h,y,w,v){return y===null||y.tag!==6?(y=ym(w,h.mode,v),y.return=h,y):(y=r(y,w),y.return=h,y)}function l(h,y,w,v){return y!==null&&y.elementType===w.type?(v=r(y,w.props),v.ref=Ni(h,y,w),v.return=h,v):(v=ol(w.type,w.key,w.props,null,h.mode,v),v.ref=Ni(h,y,w),v.return=h,v)}function c(h,y,w,v){return y===null||y.tag!==4||y.stateNode.containerInfo!==w.containerInfo||y.stateNode.implementation!==w.implementation?(y=bm(w,h.mode,v),y.return=h,y):(y=r(y,w.children||[]),y.return=h,y)}function u(h,y,w,v,S){return y===null||y.tag!==7?(y=pr(w,h.mode,v,S),y.return=h,y):(y=r(y,w),y.return=h,y)}function d(h,y,w){if(typeof y=="string"||typeof y=="number")return y=ym(""+y,h.mode,w),y.return=h,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Xr:return w=ol(y.type,y.key,y.props,null,h.mode,w),w.ref=Ni(h,null,y),w.return=h,w;case so:return y=bm(y,h.mode,w),y.return=h,y}if(za(y)||ni(y))return y=pr(y,h.mode,w,null),y.return=h,y;Ba(h,y)}return null}function m(h,y,w,v){var S=y!==null?y.key:null;if(typeof w=="string"||typeof w=="number")return S!==null?null:a(h,y,""+w,v);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Xr:return w.key===S?w.type===wn?u(h,y,w.props.children,v,S):l(h,y,w,v):null;case so:return w.key===S?c(h,y,w,v):null}if(za(w)||ni(w))return S!==null?null:u(h,y,w,v,null);Ba(h,w)}return null}function f(h,y,w,v,S){if(typeof v=="string"||typeof v=="number")return h=h.get(w)||null,a(y,h,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Xr:return h=h.get(v.key===null?w:v.key)||null,v.type===wn?u(y,h,v.props.children,S,v.key):l(y,h,v,S);case so:return h=h.get(v.key===null?w:v.key)||null,c(y,h,v,S)}if(za(v)||ni(v))return h=h.get(w)||null,u(y,h,v,S,null);Ba(y,v)}return null}function p(h,y,w,v){for(var S=null,C=null,$=y,k=y=0,N=null;$!==null&&k<w.length;k++){$.index>k?(N=$,$=null):N=$.sibling;var O=m(h,$,w[k],v);if(O===null){$===null&&($=N);break}t&&$&&O.alternate===null&&e(h,$),y=i(O,y,k),C===null?S=O:C.sibling=O,C=O,$=N}if(k===w.length)return n(h,$),S;if($===null){for(;k<w.length;k++)$=d(h,w[k],v),$!==null&&(y=i($,y,k),C===null?S=$:C.sibling=$,C=$);return S}for($=o(h,$);k<w.length;k++)N=f($,h,k,w[k],v),N!==null&&(t&&N.alternate!==null&&$.delete(N.key===null?k:N.key),y=i(N,y,k),C===null?S=N:C.sibling=N,C=N);return t&&$.forEach(function(H){return e(h,H)}),S}function g(h,y,w,v){var S=ni(w);if(typeof S!="function")throw Error(M(150));if(w=S.call(w),w==null)throw Error(M(151));for(var C=S=null,$=y,k=y=0,N=null,O=w.next();$!==null&&!O.done;k++,O=w.next()){$.index>k?(N=$,$=null):N=$.sibling;var H=m(h,$,O.value,v);if(H===null){$===null&&($=N);break}t&&$&&H.alternate===null&&e(h,$),y=i(H,y,k),C===null?S=H:C.sibling=H,C=H,$=N}if(O.done)return n(h,$),S;if($===null){for(;!O.done;k++,O=w.next())O=d(h,O.value,v),O!==null&&(y=i(O,y,k),C===null?S=O:C.sibling=O,C=O);return S}for($=o(h,$);!O.done;k++,O=w.next())O=f($,h,k,O.value,v),O!==null&&(t&&O.alternate!==null&&$.delete(O.key===null?k:O.key),y=i(O,y,k),C===null?S=O:C.sibling=O,C=O);return t&&$.forEach(function(ie){return e(h,ie)}),S}return function(h,y,w,v){var S=typeof w=="object"&&w!==null&&w.type===wn&&w.key===null;S&&(w=w.props.children);var C=typeof w=="object"&&w!==null;if(C)switch(w.$$typeof){case Xr:e:{for(C=w.key,S=y;S!==null;){if(S.key===C){switch(S.tag){case 7:if(w.type===wn){n(h,S.sibling),y=r(S,w.props.children),y.return=h,h=y;break e}break;default:if(S.elementType===w.type){n(h,S.sibling),y=r(S,w.props),y.ref=Ni(h,S,w),y.return=h,h=y;break e}}n(h,S);break}else e(h,S);S=S.sibling}w.type===wn?(y=pr(w.props.children,h.mode,v,w.key),y.return=h,h=y):(v=ol(w.type,w.key,w.props,null,h.mode,v),v.ref=Ni(h,y,w),v.return=h,h=v)}return s(h);case so:e:{for(S=w.key;y!==null;){if(y.key===S)if(y.tag===4&&y.stateNode.containerInfo===w.containerInfo&&y.stateNode.implementation===w.implementation){n(h,y.sibling),y=r(y,w.children||[]),y.return=h,h=y;break e}else{n(h,y);break}else e(h,y);y=y.sibling}y=bm(w,h.mode,v),y.return=h,h=y}return s(h)}if(typeof w=="string"||typeof w=="number")return w=""+w,y!==null&&y.tag===6?(n(h,y.sibling),y=r(y,w),y.return=h,h=y):(n(h,y),y=ym(w,h.mode,v),y.return=h,h=y),s(h);if(za(w))return p(h,y,w,v);if(ni(w))return g(h,y,w,v);if(C&&Ba(h,w),typeof w>"u"&&!S)switch(h.tag){case 1:case 22:case 0:case 11:case 15:throw Error(M(152,Vo(h.type)||"Component"))}return n(h,y)}}var Fa=e0(!0),t0=e0(!1),Ai={},Mt=Nn(Ai),Oi=Nn(Ai),Ri=Nn(Ai);function po(t){if(t===Ai)throw Error(M(174));return t}function Id(t,e){switch(fe(Ri,e),fe(Oi,t),fe(Mt,Ai),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Hu(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Hu(e,t)}le(Mt),fe(Mt,e)}function ar(){le(Mt),le(Oi),le(Ri)}function n0(t){po(Ri.current);var e=po(Mt.current),n=Hu(e,t.type);e!==n&&(fe(Oi,t),fe(Mt,n))}function Ld(t){Oi.current===t&&(le(Mt),le(Oi))}var pe=Nn(0);function Ha(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&64)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Gt=null,Tn=null,jt=!1;function o0(t,e){var n=bt(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=e,n.return=t,n.flags=8,t.lastEffect!==null?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function r0(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,!0):!1;case 13:return!1;default:return!1}}function zd(t){if(jt){var e=Tn;if(e){var n=e;if(!r0(t,e)){if(e=Xo(n.nextSibling),!e||!r0(t,e)){t.flags=t.flags&-1025|2,jt=!1,Gt=t;return}o0(Gt,n)}Gt=t,Tn=Xo(e.firstChild)}else t.flags=t.flags&-1025|2,jt=!1,Gt=t}}function i0(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Gt=t}function Va(t){if(t!==Gt)return!1;if(!jt)return i0(t),jt=!0,!1;var e=t.type;if(t.tag!==5||e!=="head"&&e!=="body"&&!$d(e,t.memoizedProps))for(e=Tn;e;)o0(t,e),e=Xo(e.nextSibling);if(i0(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(M(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){Tn=Xo(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}Tn=null}}else Tn=Gt?Xo(t.stateNode.nextSibling):null;return!0}function Bd(){Tn=Gt=null,jt=!1}var lr=[];function Fd(){for(var t=0;t<lr.length;t++)lr[t]._workInProgressVersionPrimary=null;lr.length=0}var Di=io.ReactCurrentDispatcher,gt=io.ReactCurrentBatchConfig,Ti=0,ge=null,Be=null,Te=null,_a=!1,Mi=!1;function Qe(){throw Error(M(321))}function Hd(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!pt(t[n],e[n]))return!1;return!0}function Vd(t,e,n,o,r,i){if(Ti=i,ge=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Di.current=t===null||t.memoizedState===null?pN:hN,t=n(o,r),Mi){i=0;do{if(Mi=!1,!(25>i))throw Error(M(301));i+=1,Te=Be=null,e.updateQueue=null,Di.current=gN,t=n(o,r)}while(Mi)}if(Di.current=Ka,e=Be!==null&&Be.next!==null,Ti=0,Te=Be=ge=null,_a=!1,e)throw Error(M(300));return t}function ho(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Te===null?ge.memoizedState=Te=t:Te=Te.next=t,Te}function go(){if(Be===null){var t=ge.alternate;t=t!==null?t.memoizedState:null}else t=Be.next;var e=Te===null?ge.memoizedState:Te.next;if(e!==null)Te=e,Be=t;else{if(t===null)throw Error(M(310));Be=t,t={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},Te===null?ge.memoizedState=Te=t:Te=Te.next=t}return Te}function Pt(t,e){return typeof e=="function"?e(t):e}function ji(t){var e=go(),n=e.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=t;var o=Be,r=o.baseQueue,i=n.pending;if(i!==null){if(r!==null){var s=r.next;r.next=i.next,i.next=s}o.baseQueue=r=i,n.pending=null}if(r!==null){r=r.next,o=o.baseState;var a=s=i=null,l=r;do{var c=l.lane;if((Ti&c)===c)a!==null&&(a=a.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),o=l.eagerReducer===t?l.eagerState:t(o,l.action);else{var u={lane:c,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};a===null?(s=a=u,i=o):a=a.next=u,ge.lanes|=c,zi|=c}l=l.next}while(l!==null&&l!==r);a===null?i=o:a.next=s,pt(o,e.memoizedState)||(Ct=!0),e.memoizedState=o,e.baseState=i,e.baseQueue=a,n.lastRenderedState=o}return[e.memoizedState,n.dispatch]}function Pi(t){var e=go(),n=e.queue;if(n===null)throw Error(M(311));n.lastRenderedReducer=t;var o=n.dispatch,r=n.pending,i=e.memoizedState;if(r!==null){n.pending=null;var s=r=r.next;do i=t(i,s.action),s=s.next;while(s!==r);pt(i,e.memoizedState)||(Ct=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,o]}function s0(t,e,n){var o=e._getVersion;o=o(e._source);var r=e._workInProgressVersionPrimary;if(r!==null?t=r===o:(t=t.mutableReadLanes,(t=(Ti&t)===t)&&(e._workInProgressVersionPrimary=o,lr.push(e))),t)return n(e._source);throw lr.push(e),Error(M(350))}function a0(t,e,n,o){var r=Ye;if(r===null)throw Error(M(349));var i=e._getVersion,s=i(e._source),a=Di.current,l=a.useState(function(){return s0(r,e,n)}),c=l[1],u=l[0];l=Te;var d=t.memoizedState,m=d.refs,f=m.getSnapshot,p=d.source;d=d.subscribe;var g=ge;return t.memoizedState={refs:m,source:e,subscribe:o},a.useEffect(function(){m.getSnapshot=n,m.setSnapshot=c;var h=i(e._source);if(!pt(s,h)){h=n(e._source),pt(u,h)||(c(h),h=jn(g),r.mutableReadLanes|=h&r.pendingLanes),h=r.mutableReadLanes,r.entangledLanes|=h;for(var y=r.entanglements,w=h;0<w;){var v=31-xn(w),S=1<<v;y[v]|=h,w&=~S}}},[n,e,o]),a.useEffect(function(){return o(e._source,function(){var h=m.getSnapshot,y=m.setSnapshot;try{y(h(e._source));var w=jn(g);r.mutableReadLanes|=w&r.pendingLanes}catch(v){y(function(){throw v})}})},[e,o]),pt(f,n)&&pt(p,e)&&pt(d,o)||(t={pending:null,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:u},t.dispatch=c=Jd.bind(null,ge,t),l.queue=t,l.baseQueue=null,u=s0(r,e,n),l.memoizedState=l.baseState=u),u}function l0(t,e,n){var o=go();return a0(o,t,e,n)}function Ii(t){var e=ho();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t=e.queue={pending:null,dispatch:null,lastRenderedReducer:Pt,lastRenderedState:t},t=t.dispatch=Jd.bind(null,ge,t),[e.memoizedState,t]}function Ua(t,e,n,o){return t={tag:t,create:e,destroy:n,deps:o,next:null},e=ge.updateQueue,e===null?(e={lastEffect:null},ge.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(o=n.next,n.next=t,t.next=o,e.lastEffect=t)),t}function c0(t){var e=ho();return t={current:t},e.memoizedState=t}function Ya(){return go().memoizedState}function _d(t,e,n,o){var r=ho();ge.flags|=t,r.memoizedState=Ua(1|e,n,void 0,o===void 0?null:o)}function Ud(t,e,n,o){var r=go();o=o===void 0?null:o;var i=void 0;if(Be!==null){var s=Be.memoizedState;if(i=s.destroy,o!==null&&Hd(o,s.deps)){Ua(e,n,i,o);return}}ge.flags|=t,r.memoizedState=Ua(1|e,n,i,o)}function u0(t,e){return _d(516,4,t,e)}function Ja(t,e){return Ud(516,4,t,e)}function d0(t,e){return Ud(4,2,t,e)}function m0(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function f0(t,e,n){return n=n!=null?n.concat([t]):null,Ud(4,2,m0.bind(null,e,t),n)}function Yd(){}function p0(t,e){var n=go();e=e===void 0?null:e;var o=n.memoizedState;return o!==null&&e!==null&&Hd(e,o[1])?o[0]:(n.memoizedState=[t,e],t)}function h0(t,e){var n=go();e=e===void 0?null:e;var o=n.memoizedState;return o!==null&&e!==null&&Hd(e,o[1])?o[0]:(t=t(),n.memoizedState=[t,e],t)}function fN(t,e){var n=rr();fo(98>n?98:n,function(){t(!0)}),fo(97<n?97:n,function(){var o=gt.transition;gt.transition=1;try{t(!1),e()}finally{gt.transition=o}})}function Jd(t,e,n){var o=st(),r=jn(t),i={lane:r,action:n,eagerReducer:null,eagerState:null,next:null},s=e.pending;if(s===null?i.next=i:(i.next=s.next,s.next=i),e.pending=i,s=t.alternate,t===ge||s!==null&&s===ge)Mi=_a=!0;else{if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var a=e.lastRenderedState,l=s(a,n);if(i.eagerReducer=s,i.eagerState=l,pt(l,a))return}catch{}finally{}Pn(t,r,o)}}var Ka={readContext:ht,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useMutableSource:Qe,useOpaqueIdentifier:Qe,unstable_isNewReconciler:!1},pN={readContext:ht,useCallback:function(t,e){return ho().memoizedState=[t,e===void 0?null:e],t},useContext:ht,useEffect:u0,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,_d(4,2,m0.bind(null,e,t),n)},useLayoutEffect:function(t,e){return _d(4,2,t,e)},useMemo:function(t,e){var n=ho();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var o=ho();return e=n!==void 0?n(e):e,o.memoizedState=o.baseState=e,t=o.queue={pending:null,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},t=t.dispatch=Jd.bind(null,ge,t),[o.memoizedState,t]},useRef:c0,useState:Ii,useDebugValue:Yd,useDeferredValue:function(t){var e=Ii(t),n=e[0],o=e[1];return u0(function(){var r=gt.transition;gt.transition=1;try{o(t)}finally{gt.transition=r}},[t]),n},useTransition:function(){var t=Ii(!1),e=t[0];return t=fN.bind(null,t[1]),c0(t),[t,e]},useMutableSource:function(t,e,n){var o=ho();return o.memoizedState={refs:{getSnapshot:e,setSnapshot:null},source:t,subscribe:n},a0(o,t,e,n)},useOpaqueIdentifier:function(){if(jt){var t=!1,e=aN(function(){throw t||(t=!0,n("r:"+(xd++).toString(36))),Error(M(355))}),n=Ii(e)[1];return!(ge.mode&2)&&(ge.flags|=516,Ua(5,function(){n("r:"+(xd++).toString(36))},void 0,null)),e}return e="r:"+(xd++).toString(36),Ii(e),e},unstable_isNewReconciler:!1},hN={readContext:ht,useCallback:p0,useContext:ht,useEffect:Ja,useImperativeHandle:f0,useLayoutEffect:d0,useMemo:h0,useReducer:ji,useRef:Ya,useState:function(){return ji(Pt)},useDebugValue:Yd,useDeferredValue:function(t){var e=ji(Pt),n=e[0],o=e[1];return Ja(function(){var r=gt.transition;gt.transition=1;try{o(t)}finally{gt.transition=r}},[t]),n},useTransition:function(){var t=ji(Pt)[0];return[Ya().current,t]},useMutableSource:l0,useOpaqueIdentifier:function(){return ji(Pt)[0]},unstable_isNewReconciler:!1},gN={readContext:ht,useCallback:p0,useContext:ht,useEffect:Ja,useImperativeHandle:f0,useLayoutEffect:d0,useMemo:h0,useReducer:Pi,useRef:Ya,useState:function(){return Pi(Pt)},useDebugValue:Yd,useDeferredValue:function(t){var e=Pi(Pt),n=e[0],o=e[1];return Ja(function(){var r=gt.transition;gt.transition=1;try{o(t)}finally{gt.transition=r}},[t]),n},useTransition:function(){var t=Pi(Pt)[0];return[Ya().current,t]},useMutableSource:l0,useOpaqueIdentifier:function(){return Pi(Pt)[0]},unstable_isNewReconciler:!1},yN=io.ReactCurrentOwner,Ct=!1;function Ze(t,e,n,o){e.child=t===null?t0(e,null,n,o):Fa(e,t.child,n,o)}function g0(t,e,n,o,r){n=n.render;var i=e.ref;return sr(e,r),o=Vd(t,e,n,o,i,r),t!==null&&!Ct?(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~r,Qt(t,e,r)):(e.flags|=1,Ze(t,e,o,r),e.child)}function y0(t,e,n,o,r,i){if(t===null){var s=n.type;return typeof s=="function"&&!hm(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=s,b0(t,e,s,o,r,i)):(t=ol(n.type,null,o,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}return s=t.child,!(r&i)&&(r=s.memoizedProps,n=n.compare,n=n!==null?n:vi,n(r,o)&&t.ref===e.ref)?Qt(t,e,i):(e.flags|=1,t=zn(s,o),t.ref=e.ref,t.return=e,e.child=t)}function b0(t,e,n,o,r,i){if(t!==null&&vi(t.memoizedProps,o)&&t.ref===e.ref)if(Ct=!1,(i&r)!==0)t.flags&16384&&(Ct=!0);else return e.lanes=t.lanes,Qt(t,e,i);return Wd(t,e,n,o,i)}function Kd(t,e,n){var o=e.pendingProps,r=o.children,i=t!==null?t.memoizedState:null;if(o.mode==="hidden"||o.mode==="unstable-defer-without-hiding")if(!(e.mode&4))e.memoizedState={baseLanes:0},nl(e,n);else if(n&1073741824)e.memoizedState={baseLanes:0},nl(e,i!==null?i.baseLanes:n);else return t=i!==null?i.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t},nl(e,t),null;else i!==null?(o=i.baseLanes|n,e.memoizedState=null):o=n,nl(e,o);return Ze(t,e,r,n),e.child}function w0(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=128)}function Wd(t,e,n,o,r){var i=Ge(n)?uo:Le.current;return i=or(e,i),sr(e,r),n=Vd(t,e,n,o,i,r),t!==null&&!Ct?(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~r,Qt(t,e,r)):(e.flags|=1,Ze(t,e,n,r),e.child)}function v0(t,e,n,o,r){if(Ge(n)){var i=!0;Ra(e)}else i=!1;if(sr(e,r),e.stateNode===null)t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),Zb(e,n,o),Pd(e,n,o,r),o=!0;else if(t===null){var s=e.stateNode,a=e.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=ht(c):(c=Ge(n)?uo:Le.current,c=or(e,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";d||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==o||l!==c)&&Xb(e,s,o,c),On=!1;var m=e.memoizedState;s.state=m,Ei(e,o,s,r),l=e.memoizedState,a!==o||m!==l||qe.current||On?(typeof u=="function"&&(Ia(e,n,u,o),l=e.memoizedState),(a=On||Qb(e,n,a,o,m,l,c))?(d||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(e.flags|=4)):(typeof s.componentDidMount=="function"&&(e.flags|=4),e.memoizedProps=o,e.memoizedState=l),s.props=o,s.state=l,s.context=c,o=a):(typeof s.componentDidMount=="function"&&(e.flags|=4),o=!1)}else{s=e.stateNode,Kb(t,e),a=e.memoizedProps,c=e.type===e.elementType?a:xt(e.type,a),s.props=c,d=e.pendingProps,m=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=ht(l):(l=Ge(n)?uo:Le.current,l=or(e,l));var f=n.getDerivedStateFromProps;(u=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==d||m!==l)&&Xb(e,s,o,l),On=!1,m=e.memoizedState,s.state=m,Ei(e,o,s,r);var p=e.memoizedState;a!==d||m!==p||qe.current||On?(typeof f=="function"&&(Ia(e,n,f,o),p=e.memoizedState),(c=On||Qb(e,n,c,o,m,p,l))?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(o,p,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(o,p,l)),typeof s.componentDidUpdate=="function"&&(e.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(e.flags|=256)):(typeof s.componentDidUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=256),e.memoizedProps=o,e.memoizedState=p),s.props=o,s.state=p,s.context=l,o=c):(typeof s.componentDidUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=256),o=!1)}return qd(t,e,n,o,i,r)}function qd(t,e,n,o,r,i){w0(t,e);var s=(e.flags&64)!==0;if(!o&&!s)return r&&Lb(e,n,!1),Qt(t,e,i);o=e.stateNode,yN.current=e;var a=s&&typeof n.getDerivedStateFromError!="function"?null:o.render();return e.flags|=1,t!==null&&s?(e.child=Fa(e,t.child,null,i),e.child=Fa(e,null,a,i)):Ze(t,e,a,i),e.memoizedState=o.state,r&&Lb(e,n,!0),e.child}function S0(t){var e=t.stateNode;e.pendingContext?Pb(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Pb(t,e.context,!1),Id(t,e.containerInfo)}var Wa={dehydrated:null,retryLane:0};function $0(t,e,n){var o=e.pendingProps,r=pe.current,i=!1,s;return(s=(e.flags&64)!==0)||(s=t!==null&&t.memoizedState===null?!1:(r&2)!==0),s?(i=!0,e.flags&=-65):t!==null&&t.memoizedState===null||o.fallback===void 0||o.unstable_avoidThisFallback===!0||(r|=1),fe(pe,r&1),t===null?(o.fallback!==void 0&&zd(e),t=o.children,r=o.fallback,i?(t=k0(e,t,r,n),e.child.memoizedState={baseLanes:n},e.memoizedState=Wa,t):typeof o.unstable_expectedLoadTime=="number"?(t=k0(e,t,r,n),e.child.memoizedState={baseLanes:n},e.memoizedState=Wa,e.lanes=33554432,t):(n=gm({mode:"visible",children:t},e.mode,n,null),n.return=e,e.child=n)):t.memoizedState!==null?i?(o=C0(t,e,o.children,o.fallback,n),i=e.child,r=t.child.memoizedState,i.memoizedState=r===null?{baseLanes:n}:{baseLanes:r.baseLanes|n},i.childLanes=t.childLanes&~n,e.memoizedState=Wa,o):(n=x0(t,e,o.children,n),e.memoizedState=null,n):i?(o=C0(t,e,o.children,o.fallback,n),i=e.child,r=t.child.memoizedState,i.memoizedState=r===null?{baseLanes:n}:{baseLanes:r.baseLanes|n},i.childLanes=t.childLanes&~n,e.memoizedState=Wa,o):(n=x0(t,e,o.children,n),e.memoizedState=null,n)}function k0(t,e,n,o){var r=t.mode,i=t.child;return e={mode:"hidden",children:e},!(r&2)&&i!==null?(i.childLanes=0,i.pendingProps=e):i=gm(e,r,0,null),n=pr(n,r,o,null),i.return=t,n.return=t,i.sibling=n,t.child=i,n}function x0(t,e,n,o){var r=t.child;return t=r.sibling,n=zn(r,{mode:"visible",children:n}),!(e.mode&2)&&(n.lanes=o),n.return=e,n.sibling=null,t!==null&&(t.nextEffect=null,t.flags=8,e.firstEffect=e.lastEffect=t),e.child=n}function C0(t,e,n,o,r){var i=e.mode,s=t.child;t=s.sibling;var a={mode:"hidden",children:n};return!(i&2)&&e.child!==s?(n=e.child,n.childLanes=0,n.pendingProps=a,s=n.lastEffect,s!==null?(e.firstEffect=n.firstEffect,e.lastEffect=s,s.nextEffect=null):e.firstEffect=e.lastEffect=null):n=zn(s,a),t!==null?o=zn(t,o):(o=pr(o,i,r,null),o.flags|=2),o.return=e,n.return=e,n.sibling=o,e.child=n,o}function E0(t,e){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Jb(t.return,e)}function Gd(t,e,n,o,r,i){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:r,lastEffect:i}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=o,s.tail=n,s.tailMode=r,s.lastEffect=i)}function N0(t,e,n){var o=e.pendingProps,r=o.revealOrder,i=o.tail;if(Ze(t,e,o.children,n),o=pe.current,o&2)o=o&1|2,e.flags|=64;else{if(t!==null&&t.flags&64)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&E0(t,n);else if(t.tag===19)E0(t,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}o&=1}if(fe(pe,o),!(e.mode&2))e.memoizedState=null;else switch(r){case"forwards":for(n=e.child,r=null;n!==null;)t=n.alternate,t!==null&&Ha(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),Gd(e,!1,r,n,i,e.lastEffect);break;case"backwards":for(n=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&Ha(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}Gd(e,!0,n,null,i,e.lastEffect);break;case"together":Gd(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}return e.child}function Qt(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),zi|=e.lanes,n&e.childLanes){if(t!==null&&e.child!==t.child)throw Error(M(153));if(e.child!==null){for(t=e.child,n=zn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=zn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}return null}var A0,Qd,O0,R0;A0=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&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;n=n.return}n.sibling.return=n.return,n=n.sibling}},Qd=function(){},O0=function(t,e,n,o){var r=t.memoizedProps;if(r!==o){t=e.stateNode,po(Mt.current);var i=null;switch(n){case"input":r=Pu(t,r),o=Pu(t,o),i=[];break;case"option":r=zu(t,r),o=zu(t,o),i=[];break;case"select":r=ue({},r,{value:void 0}),o=ue({},o,{value:void 0}),i=[];break;case"textarea":r=Bu(t,r),o=Bu(t,o),i=[];break;default:typeof r.onClick!="function"&&typeof o.onClick=="function"&&(t.onclick=Ca)}Vu(n,o);var s;n=null;for(c in r)if(!o.hasOwnProperty(c)&&r.hasOwnProperty(c)&&r[c]!=null)if(c==="style"){var a=r[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Zr.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in o){var l=o[c];if(a=r!=null?r[c]:void 0,o.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(i||(i=[]),i.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Zr.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&ae("scroll",t),i||a===l||(i=[])):typeof l=="object"&&l!==null&&l.$$typeof===Ru?l.toString():(i=i||[]).push(c,l))}n&&(i=i||[]).push("style",n);var c=i;(e.updateQueue=c)&&(e.flags|=4)}},R0=function(t,e,n,o){n!==o&&(e.flags|=4)};function Li(t,e){if(!jt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:o.sibling=null}}function bN(t,e,n){var o=e.pendingProps;switch(e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Ge(e.type)&&Oa(),null;case 3:return ar(),le(qe),le(Le),Fd(),o=e.stateNode,o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(Va(e)?e.flags|=4:o.hydrate||(e.flags|=256)),Qd(e),null;case 5:Ld(e);var r=po(Ri.current);if(n=e.type,t!==null&&e.stateNode!=null)O0(t,e,n,o,r),t.ref!==e.ref&&(e.flags|=128);else{if(!o){if(e.stateNode===null)throw Error(M(166));return null}if(t=po(Mt.current),Va(e)){o=e.stateNode,n=e.type;var i=e.memoizedProps;switch(o[En]=e,o[Na]=i,n){case"dialog":ae("cancel",o),ae("close",o);break;case"iframe":case"object":case"embed":ae("load",o);break;case"video":case"audio":for(t=0;t<$i.length;t++)ae($i[t],o);break;case"source":ae("error",o);break;case"img":case"image":case"link":ae("error",o),ae("load",o);break;case"details":ae("toggle",o);break;case"input":Sy(o,i),ae("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},ae("invalid",o);break;case"textarea":xy(o,i),ae("invalid",o)}Vu(n,i),t=null;for(var s in i)i.hasOwnProperty(s)&&(r=i[s],s==="children"?typeof r=="string"?o.textContent!==r&&(t=["children",r]):typeof r=="number"&&o.textContent!==""+r&&(t=["children",""+r]):Zr.hasOwnProperty(s)&&r!=null&&s==="onScroll"&&ae("scroll",o));switch(n){case"input":la(o),ky(o,i,!0);break;case"textarea":la(o),Ey(o);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(o.onclick=Ca)}o=t,e.updateQueue=o,o!==null&&(e.flags|=4)}else{switch(s=r.nodeType===9?r:r.ownerDocument,t===Fu.html&&(t=Ny(n)),t===Fu.html?n==="script"?(t=s.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof o.is=="string"?t=s.createElement(n,{is:o.is}):(t=s.createElement(n),n==="select"&&(s=t,o.multiple?s.multiple=!0:o.size&&(s.size=o.size))):t=s.createElementNS(t,n),t[En]=e,t[Na]=o,A0(t,e,!1,!1),e.stateNode=t,s=_u(n,o),n){case"dialog":ae("cancel",t),ae("close",t),r=o;break;case"iframe":case"object":case"embed":ae("load",t),r=o;break;case"video":case"audio":for(r=0;r<$i.length;r++)ae($i[r],t);r=o;break;case"source":ae("error",t),r=o;break;case"img":case"image":case"link":ae("error",t),ae("load",t),r=o;break;case"details":ae("toggle",t),r=o;break;case"input":Sy(t,o),r=Pu(t,o),ae("invalid",t);break;case"option":r=zu(t,o);break;case"select":t._wrapperState={wasMultiple:!!o.multiple},r=ue({},o,{value:void 0}),ae("invalid",t);break;case"textarea":xy(t,o),r=Bu(t,o),ae("invalid",t);break;default:r=o}Vu(n,r);var a=r;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?Ry(t,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Ay(t,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&ri(t,l):typeof l=="number"&&ri(t,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Zr.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ae("scroll",t):l!=null&&xu(t,i,l,s))}switch(n){case"input":la(t),ky(t,o,!1);break;case"textarea":la(t),Ey(t);break;case"option":o.value!=null&&t.setAttribute("value",""+vn(o.value));break;case"select":t.multiple=!!o.multiple,i=o.value,i!=null?_o(t,!!o.multiple,i,!1):o.defaultValue!=null&&_o(t,!!o.multiple,o.defaultValue,!0);break;default:typeof r.onClick=="function"&&(t.onclick=Ca)}Rb(n,o)&&(e.flags|=4)}e.ref!==null&&(e.flags|=128)}return null;case 6:if(t&&e.stateNode!=null)R0(t,e,t.memoizedProps,o);else{if(typeof o!="string"&&e.stateNode===null)throw Error(M(166));n=po(Ri.current),po(Mt.current),Va(e)?(o=e.stateNode,n=e.memoizedProps,o[En]=e,o.nodeValue!==n&&(e.flags|=4)):(o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[En]=e,e.stateNode=o)}return null;case 13:return le(pe),o=e.memoizedState,e.flags&64?(e.lanes=n,e):(o=o!==null,n=!1,t===null?e.memoizedProps.fallback!==void 0&&Va(e):n=t.memoizedState!==null,o&&!n&&e.mode&2&&(t===null&&e.memoizedProps.unstable_avoidThisFallback!==!0||pe.current&1?Me===0&&(Me=3):((Me===0||Me===3)&&(Me=4),Ye===null||!(zi&134217727)&&!(ur&134217727)||mr(Ye,Fe))),(o||n)&&(e.flags|=4),null);case 4:return ar(),Qd(e),t===null&&Cb(e.stateNode.containerInfo),null;case 10:return Md(e),null;case 17:return Ge(e.type)&&Oa(),null;case 19:if(le(pe),o=e.memoizedState,o===null)return null;if(i=(e.flags&64)!==0,s=o.rendering,s===null)if(i)Li(o,!1);else{if(Me!==0||t!==null&&t.flags&64)for(t=e.child;t!==null;){if(s=Ha(t),s!==null){for(e.flags|=64,Li(o,!1),i=s.updateQueue,i!==null&&(e.updateQueue=i,e.flags|=4),o.lastEffect===null&&(e.firstEffect=null),e.lastEffect=o.lastEffect,o=n,n=e.child;n!==null;)i=n,t=o,i.flags&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,s=i.alternate,s===null?(i.childLanes=0,i.lanes=t,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=s.childLanes,i.lanes=s.lanes,i.child=s.child,i.memoizedProps=s.memoizedProps,i.memoizedState=s.memoizedState,i.updateQueue=s.updateQueue,i.type=s.type,t=s.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return fe(pe,pe.current&1|2),e.child}t=t.sibling}o.tail!==null&&ze()>lm&&(e.flags|=64,i=!0,Li(o,!1),e.lanes=33554432)}else{if(!i)if(t=Ha(s),t!==null){if(e.flags|=64,i=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Li(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!jt)return e=e.lastEffect=o.lastEffect,e!==null&&(e.nextEffect=null),null}else 2*ze()-o.renderingStartTime>lm&&n!==1073741824&&(e.flags|=64,i=!0,Li(o,!1),e.lanes=33554432);o.isBackwards?(s.sibling=e.child,e.child=s):(n=o.last,n!==null?n.sibling=s:e.child=s,o.last=s)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.lastEffect=e.lastEffect,o.renderingStartTime=ze(),n.sibling=null,e=pe.current,fe(pe,i?e&1|2:e&1),n):null;case 23:case 24:return pm(),t!==null&&t.memoizedState!==null!=(e.memoizedState!==null)&&o.mode!=="unstable-defer-without-hiding"&&(e.flags|=4),null}throw Error(M(156,e.tag))}function wN(t){switch(t.tag){case 1:Ge(t.type)&&Oa();var e=t.flags;return e&4096?(t.flags=e&-4097|64,t):null;case 3:if(ar(),le(qe),le(Le),Fd(),e=t.flags,e&64)throw Error(M(285));return t.flags=e&-4097|64,t;case 5:return Ld(t),null;case 13:return le(pe),e=t.flags,e&4096?(t.flags=e&-4097|64,t):null;case 19:return le(pe),null;case 4:return ar(),null;case 10:return Md(t),null;case 23:case 24:return pm(),null;default:return null}}function Zd(t,e){try{var n="",o=e;do n+=ZC(o),o=o.return;while(o);var r=n}catch(i){r=`
127
127
  Error generating stack: `+i.message+`
128
- `+i.stack}return{value:t,source:e,stack:r}}function Xd(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var vN=typeof WeakMap=="function"?WeakMap:Map;function D0(t,e,n){n=Rn(-1,n),n.tag=3,n.payload={element:null};var o=e.value;return n.callback=function(){Qa||(Qa=!0,cm=o),Xd(t,e)},n}function T0(t,e,n){n=Rn(-1,n),n.tag=3;var o=t.type.getDerivedStateFromError;if(typeof o=="function"){var r=e.value;n.payload=function(){return Xd(t,e),o(r)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){typeof o!="function"&&(It===null?It=new Set([this]):It.add(this),Xd(t,e));var s=e.stack;this.componentDidCatch(e.value,{componentStack:s!==null?s:""})}),n}var SN=typeof WeakSet=="function"?WeakSet:Set;function M0(t){var e=t.ref;if(e!==null)if(typeof e=="function")try{e(null)}catch(n){Ln(t,n)}else e.current=null}function $N(t,e){switch(e.tag){case 0:case 11:case 15:case 22:return;case 1:if(e.flags&256&&t!==null){var n=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e=t.getSnapshotBeforeUpdate(e.elementType===e.type?n:xt(e.type,n),o),t.__reactInternalSnapshotBeforeUpdate=e}return;case 3:e.flags&256&&kd(e.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(M(163))}function kN(t,e,n){switch(n.tag){case 0:case 11:case 15:case 22:if(e=n.updateQueue,e=e!==null?e.lastEffect:null,e!==null){t=e=e.next;do{if((t.tag&3)===3){var o=t.create;t.destroy=o()}t=t.next}while(t!==e)}if(e=n.updateQueue,e=e!==null?e.lastEffect:null,e!==null){t=e=e.next;do{var r=t;o=r.next,r=r.tag,r&4&&r&1&&(W0(n,t),DN(n,t)),t=o}while(t!==e)}return;case 1:t=n.stateNode,n.flags&4&&(e===null?t.componentDidMount():(o=n.elementType===n.type?e.memoizedProps:xt(n.type,e.memoizedProps),t.componentDidUpdate(o,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate))),e=n.updateQueue,e!==null&&qb(n,e,t);return;case 3:if(e=n.updateQueue,e!==null){if(t=null,n.child!==null)switch(n.child.tag){case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}qb(n,e,t)}return;case 5:t=n.stateNode,e===null&&n.flags&4&&Rb(n.type,n.memoizedProps)&&t.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&Jy(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(M(163))}function j0(t,e){for(var n=t;;){if(n.tag===5){var o=n.stateNode;if(e)o=o.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{o=n.stateNode;var r=n.memoizedProps.style;r=r!=null&&r.hasOwnProperty("display")?r.display:null,o.style.display=Oy("display",r)}}else if(n.tag===6)n.stateNode.nodeValue=e?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function P0(t,e){if(mo&&typeof mo.onCommitFiberUnmount=="function")try{mo.onCommitFiberUnmount(Ed,e)}catch{}switch(e.tag){case 0:case 11:case 14:case 15:case 22:if(t=e.updateQueue,t!==null&&(t=t.lastEffect,t!==null)){var n=t=t.next;do{var o=n,r=o.destroy;if(o=o.tag,r!==void 0)if(o&4)W0(e,n);else{o=e;try{r()}catch(i){Ln(o,i)}}n=n.next}while(n!==t)}break;case 1:if(M0(e),t=e.stateNode,typeof t.componentWillUnmount=="function")try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(i){Ln(e,i)}break;case 5:M0(e);break;case 4:F0(t,e)}}function I0(t){t.alternate=null,t.child=null,t.dependencies=null,t.firstEffect=null,t.lastEffect=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.return=null,t.updateQueue=null}function L0(t){return t.tag===5||t.tag===3||t.tag===4}function z0(t){e:{for(var e=t.return;e!==null;){if(L0(e))break e;e=e.return}throw Error(M(160))}var n=e;switch(e=n.stateNode,n.tag){case 5:var o=!1;break;case 3:e=e.containerInfo,o=!0;break;case 4:e=e.containerInfo,o=!0;break;default:throw Error(M(161))}n.flags&16&&(ri(e,""),n.flags&=-17);e:t:for(n=t;;){for(;n.sibling===null;){if(n.return===null||L0(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}o?em(t,n,e):tm(t,n,e)}function em(t,e,n){var o=t.tag,r=o===5||o===6;if(r)t=r?t.stateNode:t.stateNode.instance,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Ca));else if(o!==4&&(t=t.child,t!==null))for(em(t,e,n),t=t.sibling;t!==null;)em(t,e,n),t=t.sibling}function tm(t,e,n){var o=t.tag,r=o===5||o===6;if(r)t=r?t.stateNode:t.stateNode.instance,e?n.insertBefore(t,e):n.appendChild(t);else if(o!==4&&(t=t.child,t!==null))for(tm(t,e,n),t=t.sibling;t!==null;)tm(t,e,n),t=t.sibling}function F0(t,e){for(var n=e,o=!1,r,i;;){if(!o){o=n.return;e:for(;;){if(o===null)throw Error(M(160));switch(r=o.stateNode,o.tag){case 5:i=!1;break e;case 3:r=r.containerInfo,i=!0;break e;case 4:r=r.containerInfo,i=!0;break e}o=o.return}o=!0}if(n.tag===5||n.tag===6){e:for(var s=t,a=n,l=a;;)if(P0(s,l),l.child!==null&&l.tag!==4)l.child.return=l,l=l.child;else{if(l===a)break e;for(;l.sibling===null;){if(l.return===null||l.return===a)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}i?(s=r,a=n.stateNode,s.nodeType===8?s.parentNode.removeChild(a):s.removeChild(a)):r.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){r=n.stateNode.containerInfo,i=!0,n.child.return=n,n=n.child;continue}}else if(P0(t,n),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;n=n.return,n.tag===4&&(o=!1)}n.sibling.return=n.return,n=n.sibling}}function nm(t,e){switch(e.tag){case 0:case 11:case 14:case 15:case 22:var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do(o.tag&3)===3&&(t=o.destroy,o.destroy=void 0,t!==void 0&&t()),o=o.next;while(o!==n)}return;case 1:return;case 5:if(n=e.stateNode,n!=null){o=e.memoizedProps;var r=t!==null?t.memoizedProps:o;t=e.type;var i=e.updateQueue;if(e.updateQueue=null,i!==null){for(n[Na]=o,t==="input"&&o.type==="radio"&&o.name!=null&&$y(n,o),_u(t,r),e=_u(t,o),r=0;r<i.length;r+=2){var s=i[r],a=i[r+1];s==="style"?Ry(n,a):s==="dangerouslySetInnerHTML"?Ay(n,a):s==="children"?ri(n,a):xu(n,s,a,e)}switch(t){case"input":Iu(n,o);break;case"textarea":Cy(n,o);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,i=o.value,i!=null?_o(n,!!o.multiple,i,!1):t!==!!o.multiple&&(o.defaultValue!=null?_o(n,!!o.multiple,o.defaultValue,!0):_o(n,!!o.multiple,o.multiple?[]:"",!1))}}}return;case 6:if(e.stateNode===null)throw Error(M(162));e.stateNode.nodeValue=e.memoizedProps;return;case 3:n=e.stateNode,n.hydrate&&(n.hydrate=!1,Jy(n.containerInfo));return;case 12:return;case 13:e.memoizedState!==null&&(am=ze(),j0(e.child,!0)),B0(e);return;case 19:B0(e);return;case 17:return;case 23:case 24:j0(e,e.memoizedState!==null);return}throw Error(M(163))}function B0(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new SN),e.forEach(function(o){var r=jN.bind(null,t,o);n.has(o)||(n.add(o),o.then(r,r))})}}function xN(t,e){return t!==null&&(t=t.memoizedState,t===null||t.dehydrated!==null)?(e=e.memoizedState,e!==null&&e.dehydrated===null):!1}var CN=Math.ceil,qa=io.ReactCurrentDispatcher,om=io.ReactCurrentOwner,U=0,Ye=null,ve=null,Be=0,yo=0,rm=Nn(0),Me=0,Ga=null,cr=0,zi=0,ur=0,im=0,sm=null,am=0,lm=1/0;function dr(){lm=ze()+500}var z=null,Qa=!1,cm=null,It=null,Mn=!1,Fi=null,Bi=90,um=[],dm=[],Zt=null,Hi=0,mm=null,Za=-1,Xt=0,Xa=0,Vi=null,el=!1;function st(){return U&48?ze():Za!==-1?Za:Za=ze()}function jn(t){if(t=t.mode,!(t&2))return 1;if(!(t&4))return rr()===99?1:2;if(Xt===0&&(Xt=cr),mN.transition!==0){Xa!==0&&(Xa=sm!==null?sm.pendingLanes:0),t=Xt;var e=4186112&~Xa;return e&=-e,e===0&&(t=4186112&~t,e=t&-t,e===0&&(e=8192)),e}return t=rr(),U&4&&t===98?t=ga(12,Xt):(t=pE(t),t=ga(t,Xt)),t}function Pn(t,e,n){if(50<Hi)throw Hi=0,mm=null,Error(M(185));if(t=tl(t,e),t===null)return null;ya(t,e,n),t===Ye&&(ur|=e,Me===4&&mr(t,Be));var o=rr();e===1?U&8&&!(U&48)?fm(t):(yt(t,n),U===0&&(dr(),Tt())):(!(U&4)||o!==98&&o!==99||(Zt===null?Zt=new Set([t]):Zt.add(t)),yt(t,n)),sm=t}function tl(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}function yt(t,e){for(var n=t.callbackNode,o=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,s=t.pendingLanes;0<s;){var a=31-xn(s),l=1<<a,c=i[a];if(c===-1){if(!(l&o)||l&r){c=e,Ko(l);var u=se;i[a]=10<=u?c+250:6<=u?c+5e3:-1}}else c<=e&&(t.expiredLanes|=l);s&=~l}if(o=pi(t,t===Ye?Be:0),e=se,o===0)n!==null&&(n!==Rd&&Ad(n),t.callbackNode=null,t.callbackPriority=0);else{if(n!==null){if(t.callbackPriority===e)return;n!==Rd&&Ad(n)}e===15?(n=fm.bind(null,t),qt===null?(qt=[n],Ta=Nd(Da,Yb)):qt.push(n),n=Rd):e===14?n=Ci(99,fm.bind(null,t)):(n=hE(e),n=Ci(n,H0.bind(null,t))),t.callbackPriority=e,t.callbackNode=n}}function H0(t){if(Za=-1,Xa=Xt=0,U&48)throw Error(M(327));var e=t.callbackNode;if(In()&&t.callbackNode!==e)return null;var n=pi(t,t===Ye?Be:0);if(n===0)return null;var o=n,r=U;U|=16;var i=Y0();(Ye!==t||Be!==o)&&(dr(),fr(t,o));do try{AN();break}catch(a){U0(t,a)}while(!0);if(Td(),qa.current=i,U=r,ve!==null?o=0:(Ye=null,Be=0,o=Me),cr&ur)fr(t,0);else if(o!==0){if(o===2&&(U|=64,t.hydrate&&(t.hydrate=!1,kd(t.containerInfo)),n=Xy(t),n!==0&&(o=_i(t,n))),o===1)throw e=Ga,fr(t,0),mr(t,n),yt(t,ze()),e;switch(t.finishedWork=t.current.alternate,t.finishedLanes=n,o){case 0:case 1:throw Error(M(345));case 2:bo(t);break;case 3:if(mr(t,n),(n&62914560)===n&&(o=am+500-ze(),10<o)){if(pi(t,0)!==0)break;if(r=t.suspendedLanes,(r&n)!==n){st(),t.pingedLanes|=t.suspendedLanes&r;break}t.timeoutHandle=Db(bo.bind(null,t),o);break}bo(t);break;case 4:if(mr(t,n),(n&4186112)===n)break;for(o=t.eventTimes,r=-1;0<n;){var s=31-xn(n);i=1<<s,s=o[s],s>r&&(r=s),n&=~i}if(n=r,n=ze()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*CN(n/1960))-n,10<n){t.timeoutHandle=Db(bo.bind(null,t),n);break}bo(t);break;case 5:bo(t);break;default:throw Error(M(329))}}return yt(t,ze()),t.callbackNode===e?H0.bind(null,t):null}function mr(t,e){for(e&=~im,e&=~ur,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-xn(e),o=1<<n;t[n]=-1,e&=~o}}function fm(t){if(U&48)throw Error(M(327));if(In(),t===Ye&&t.expiredLanes&Be){var e=Be,n=_i(t,e);cr&ur&&(e=pi(t,e),n=_i(t,e))}else e=pi(t,0),n=_i(t,e);if(t.tag!==0&&n===2&&(U|=64,t.hydrate&&(t.hydrate=!1,kd(t.containerInfo)),e=Xy(t),e!==0&&(n=_i(t,e))),n===1)throw n=Ga,fr(t,0),mr(t,e),yt(t,ze()),n;return t.finishedWork=t.current.alternate,t.finishedLanes=e,bo(t),yt(t,ze()),null}function EN(){if(Zt!==null){var t=Zt;Zt=null,t.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,yt(e,ze())})}Tt()}function V0(t,e){var n=U;U|=1;try{return t(e)}finally{U=n,U===0&&(dr(),Tt())}}function _0(t,e){var n=U;U&=-2,U|=8;try{return t(e)}finally{U=n,U===0&&(dr(),Tt())}}function nl(t,e){fe(rm,yo),yo|=e,cr|=e}function pm(){yo=rm.current,le(rm)}function fr(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,sN(n)),ve!==null)for(n=ve.return;n!==null;){var o=n;switch(o.tag){case 1:o=o.type.childContextTypes,o!=null&&Oa();break;case 3:ar(),le(qe),le(Le),Bd();break;case 5:Ld(o);break;case 4:ar();break;case 13:le(pe);break;case 19:le(pe);break;case 10:Md(o);break;case 23:case 24:pm()}n=n.return}Ye=t,ve=zn(t.current,null),Be=yo=cr=e,Me=0,Ga=null,im=ur=zi=0}function U0(t,e){do{var n=ve;try{if(Td(),Di.current=Ka,_a){for(var o=ge.memoizedState;o!==null;){var r=o.queue;r!==null&&(r.pending=null),o=o.next}_a=!1}if(Ti=0,Te=Fe=ge=null,Mi=!1,om.current=null,n===null||n.return===null){Me=1,Ga=e,ve=null;break}e:{var i=t,s=n.return,a=n,l=e;if(e=Be,a.flags|=2048,a.firstEffect=a.lastEffect=null,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l;if(!(a.mode&2)){var u=a.alternate;u?(a.updateQueue=u.updateQueue,a.memoizedState=u.memoizedState,a.lanes=u.lanes):(a.updateQueue=null,a.memoizedState=null)}var d=(pe.current&1)!==0,m=s;do{var f;if(f=m.tag===13){var p=m.memoizedState;if(p!==null)f=p.dehydrated!==null;else{var g=m.memoizedProps;f=g.fallback===void 0?!1:g.unstable_avoidThisFallback!==!0?!0:!d}}if(f){var h=m.updateQueue;if(h===null){var y=new Set;y.add(c),m.updateQueue=y}else h.add(c);if(!(m.mode&2)){if(m.flags|=64,a.flags|=16384,a.flags&=-2981,a.tag===1)if(a.alternate===null)a.tag=17;else{var w=Rn(-1,1);w.tag=2,Dn(a,w)}a.lanes|=1;break e}l=void 0,a=e;var v=i.pingCache;if(v===null?(v=i.pingCache=new vN,l=new Set,v.set(c,l)):(l=v.get(c),l===void 0&&(l=new Set,v.set(c,l))),!l.has(a)){l.add(a);var S=MN.bind(null,i,c,a);c.then(S,S)}m.flags|=4096,m.lanes=e;break e}m=m.return}while(m!==null);l=Error((Vo(a.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
128
+ `+i.stack}return{value:t,source:e,stack:r}}function Xd(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var vN=typeof WeakMap=="function"?WeakMap:Map;function D0(t,e,n){n=Rn(-1,n),n.tag=3,n.payload={element:null};var o=e.value;return n.callback=function(){Qa||(Qa=!0,cm=o),Xd(t,e)},n}function T0(t,e,n){n=Rn(-1,n),n.tag=3;var o=t.type.getDerivedStateFromError;if(typeof o=="function"){var r=e.value;n.payload=function(){return Xd(t,e),o(r)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){typeof o!="function"&&(It===null?It=new Set([this]):It.add(this),Xd(t,e));var s=e.stack;this.componentDidCatch(e.value,{componentStack:s!==null?s:""})}),n}var SN=typeof WeakSet=="function"?WeakSet:Set;function M0(t){var e=t.ref;if(e!==null)if(typeof e=="function")try{e(null)}catch(n){Ln(t,n)}else e.current=null}function $N(t,e){switch(e.tag){case 0:case 11:case 15:case 22:return;case 1:if(e.flags&256&&t!==null){var n=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e=t.getSnapshotBeforeUpdate(e.elementType===e.type?n:xt(e.type,n),o),t.__reactInternalSnapshotBeforeUpdate=e}return;case 3:e.flags&256&&kd(e.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(M(163))}function kN(t,e,n){switch(n.tag){case 0:case 11:case 15:case 22:if(e=n.updateQueue,e=e!==null?e.lastEffect:null,e!==null){t=e=e.next;do{if((t.tag&3)===3){var o=t.create;t.destroy=o()}t=t.next}while(t!==e)}if(e=n.updateQueue,e=e!==null?e.lastEffect:null,e!==null){t=e=e.next;do{var r=t;o=r.next,r=r.tag,r&4&&r&1&&(W0(n,t),DN(n,t)),t=o}while(t!==e)}return;case 1:t=n.stateNode,n.flags&4&&(e===null?t.componentDidMount():(o=n.elementType===n.type?e.memoizedProps:xt(n.type,e.memoizedProps),t.componentDidUpdate(o,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate))),e=n.updateQueue,e!==null&&qb(n,e,t);return;case 3:if(e=n.updateQueue,e!==null){if(t=null,n.child!==null)switch(n.child.tag){case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}qb(n,e,t)}return;case 5:t=n.stateNode,e===null&&n.flags&4&&Rb(n.type,n.memoizedProps)&&t.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&Jy(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(M(163))}function j0(t,e){for(var n=t;;){if(n.tag===5){var o=n.stateNode;if(e)o=o.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{o=n.stateNode;var r=n.memoizedProps.style;r=r!=null&&r.hasOwnProperty("display")?r.display:null,o.style.display=Oy("display",r)}}else if(n.tag===6)n.stateNode.nodeValue=e?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function P0(t,e){if(mo&&typeof mo.onCommitFiberUnmount=="function")try{mo.onCommitFiberUnmount(Ed,e)}catch{}switch(e.tag){case 0:case 11:case 14:case 15:case 22:if(t=e.updateQueue,t!==null&&(t=t.lastEffect,t!==null)){var n=t=t.next;do{var o=n,r=o.destroy;if(o=o.tag,r!==void 0)if(o&4)W0(e,n);else{o=e;try{r()}catch(i){Ln(o,i)}}n=n.next}while(n!==t)}break;case 1:if(M0(e),t=e.stateNode,typeof t.componentWillUnmount=="function")try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(i){Ln(e,i)}break;case 5:M0(e);break;case 4:B0(t,e)}}function I0(t){t.alternate=null,t.child=null,t.dependencies=null,t.firstEffect=null,t.lastEffect=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.return=null,t.updateQueue=null}function L0(t){return t.tag===5||t.tag===3||t.tag===4}function z0(t){e:{for(var e=t.return;e!==null;){if(L0(e))break e;e=e.return}throw Error(M(160))}var n=e;switch(e=n.stateNode,n.tag){case 5:var o=!1;break;case 3:e=e.containerInfo,o=!0;break;case 4:e=e.containerInfo,o=!0;break;default:throw Error(M(161))}n.flags&16&&(ri(e,""),n.flags&=-17);e:t:for(n=t;;){for(;n.sibling===null;){if(n.return===null||L0(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}o?em(t,n,e):tm(t,n,e)}function em(t,e,n){var o=t.tag,r=o===5||o===6;if(r)t=r?t.stateNode:t.stateNode.instance,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Ca));else if(o!==4&&(t=t.child,t!==null))for(em(t,e,n),t=t.sibling;t!==null;)em(t,e,n),t=t.sibling}function tm(t,e,n){var o=t.tag,r=o===5||o===6;if(r)t=r?t.stateNode:t.stateNode.instance,e?n.insertBefore(t,e):n.appendChild(t);else if(o!==4&&(t=t.child,t!==null))for(tm(t,e,n),t=t.sibling;t!==null;)tm(t,e,n),t=t.sibling}function B0(t,e){for(var n=e,o=!1,r,i;;){if(!o){o=n.return;e:for(;;){if(o===null)throw Error(M(160));switch(r=o.stateNode,o.tag){case 5:i=!1;break e;case 3:r=r.containerInfo,i=!0;break e;case 4:r=r.containerInfo,i=!0;break e}o=o.return}o=!0}if(n.tag===5||n.tag===6){e:for(var s=t,a=n,l=a;;)if(P0(s,l),l.child!==null&&l.tag!==4)l.child.return=l,l=l.child;else{if(l===a)break e;for(;l.sibling===null;){if(l.return===null||l.return===a)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}i?(s=r,a=n.stateNode,s.nodeType===8?s.parentNode.removeChild(a):s.removeChild(a)):r.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){r=n.stateNode.containerInfo,i=!0,n.child.return=n,n=n.child;continue}}else if(P0(t,n),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;n=n.return,n.tag===4&&(o=!1)}n.sibling.return=n.return,n=n.sibling}}function nm(t,e){switch(e.tag){case 0:case 11:case 14:case 15:case 22:var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do(o.tag&3)===3&&(t=o.destroy,o.destroy=void 0,t!==void 0&&t()),o=o.next;while(o!==n)}return;case 1:return;case 5:if(n=e.stateNode,n!=null){o=e.memoizedProps;var r=t!==null?t.memoizedProps:o;t=e.type;var i=e.updateQueue;if(e.updateQueue=null,i!==null){for(n[Na]=o,t==="input"&&o.type==="radio"&&o.name!=null&&$y(n,o),_u(t,r),e=_u(t,o),r=0;r<i.length;r+=2){var s=i[r],a=i[r+1];s==="style"?Ry(n,a):s==="dangerouslySetInnerHTML"?Ay(n,a):s==="children"?ri(n,a):xu(n,s,a,e)}switch(t){case"input":Iu(n,o);break;case"textarea":Cy(n,o);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,i=o.value,i!=null?_o(n,!!o.multiple,i,!1):t!==!!o.multiple&&(o.defaultValue!=null?_o(n,!!o.multiple,o.defaultValue,!0):_o(n,!!o.multiple,o.multiple?[]:"",!1))}}}return;case 6:if(e.stateNode===null)throw Error(M(162));e.stateNode.nodeValue=e.memoizedProps;return;case 3:n=e.stateNode,n.hydrate&&(n.hydrate=!1,Jy(n.containerInfo));return;case 12:return;case 13:e.memoizedState!==null&&(am=ze(),j0(e.child,!0)),F0(e);return;case 19:F0(e);return;case 17:return;case 23:case 24:j0(e,e.memoizedState!==null);return}throw Error(M(163))}function F0(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new SN),e.forEach(function(o){var r=jN.bind(null,t,o);n.has(o)||(n.add(o),o.then(r,r))})}}function xN(t,e){return t!==null&&(t=t.memoizedState,t===null||t.dehydrated!==null)?(e=e.memoizedState,e!==null&&e.dehydrated===null):!1}var CN=Math.ceil,qa=io.ReactCurrentDispatcher,om=io.ReactCurrentOwner,U=0,Ye=null,ve=null,Fe=0,yo=0,rm=Nn(0),Me=0,Ga=null,cr=0,zi=0,ur=0,im=0,sm=null,am=0,lm=1/0;function dr(){lm=ze()+500}var z=null,Qa=!1,cm=null,It=null,Mn=!1,Bi=null,Fi=90,um=[],dm=[],Zt=null,Hi=0,mm=null,Za=-1,Xt=0,Xa=0,Vi=null,el=!1;function st(){return U&48?ze():Za!==-1?Za:Za=ze()}function jn(t){if(t=t.mode,!(t&2))return 1;if(!(t&4))return rr()===99?1:2;if(Xt===0&&(Xt=cr),mN.transition!==0){Xa!==0&&(Xa=sm!==null?sm.pendingLanes:0),t=Xt;var e=4186112&~Xa;return e&=-e,e===0&&(t=4186112&~t,e=t&-t,e===0&&(e=8192)),e}return t=rr(),U&4&&t===98?t=ga(12,Xt):(t=pE(t),t=ga(t,Xt)),t}function Pn(t,e,n){if(50<Hi)throw Hi=0,mm=null,Error(M(185));if(t=tl(t,e),t===null)return null;ya(t,e,n),t===Ye&&(ur|=e,Me===4&&mr(t,Fe));var o=rr();e===1?U&8&&!(U&48)?fm(t):(yt(t,n),U===0&&(dr(),Tt())):(!(U&4)||o!==98&&o!==99||(Zt===null?Zt=new Set([t]):Zt.add(t)),yt(t,n)),sm=t}function tl(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}function yt(t,e){for(var n=t.callbackNode,o=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,s=t.pendingLanes;0<s;){var a=31-xn(s),l=1<<a,c=i[a];if(c===-1){if(!(l&o)||l&r){c=e,Ko(l);var u=se;i[a]=10<=u?c+250:6<=u?c+5e3:-1}}else c<=e&&(t.expiredLanes|=l);s&=~l}if(o=pi(t,t===Ye?Fe:0),e=se,o===0)n!==null&&(n!==Rd&&Ad(n),t.callbackNode=null,t.callbackPriority=0);else{if(n!==null){if(t.callbackPriority===e)return;n!==Rd&&Ad(n)}e===15?(n=fm.bind(null,t),qt===null?(qt=[n],Ta=Nd(Da,Yb)):qt.push(n),n=Rd):e===14?n=Ci(99,fm.bind(null,t)):(n=hE(e),n=Ci(n,H0.bind(null,t))),t.callbackPriority=e,t.callbackNode=n}}function H0(t){if(Za=-1,Xa=Xt=0,U&48)throw Error(M(327));var e=t.callbackNode;if(In()&&t.callbackNode!==e)return null;var n=pi(t,t===Ye?Fe:0);if(n===0)return null;var o=n,r=U;U|=16;var i=Y0();(Ye!==t||Fe!==o)&&(dr(),fr(t,o));do try{AN();break}catch(a){U0(t,a)}while(!0);if(Td(),qa.current=i,U=r,ve!==null?o=0:(Ye=null,Fe=0,o=Me),cr&ur)fr(t,0);else if(o!==0){if(o===2&&(U|=64,t.hydrate&&(t.hydrate=!1,kd(t.containerInfo)),n=Xy(t),n!==0&&(o=_i(t,n))),o===1)throw e=Ga,fr(t,0),mr(t,n),yt(t,ze()),e;switch(t.finishedWork=t.current.alternate,t.finishedLanes=n,o){case 0:case 1:throw Error(M(345));case 2:bo(t);break;case 3:if(mr(t,n),(n&62914560)===n&&(o=am+500-ze(),10<o)){if(pi(t,0)!==0)break;if(r=t.suspendedLanes,(r&n)!==n){st(),t.pingedLanes|=t.suspendedLanes&r;break}t.timeoutHandle=Db(bo.bind(null,t),o);break}bo(t);break;case 4:if(mr(t,n),(n&4186112)===n)break;for(o=t.eventTimes,r=-1;0<n;){var s=31-xn(n);i=1<<s,s=o[s],s>r&&(r=s),n&=~i}if(n=r,n=ze()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*CN(n/1960))-n,10<n){t.timeoutHandle=Db(bo.bind(null,t),n);break}bo(t);break;case 5:bo(t);break;default:throw Error(M(329))}}return yt(t,ze()),t.callbackNode===e?H0.bind(null,t):null}function mr(t,e){for(e&=~im,e&=~ur,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-xn(e),o=1<<n;t[n]=-1,e&=~o}}function fm(t){if(U&48)throw Error(M(327));if(In(),t===Ye&&t.expiredLanes&Fe){var e=Fe,n=_i(t,e);cr&ur&&(e=pi(t,e),n=_i(t,e))}else e=pi(t,0),n=_i(t,e);if(t.tag!==0&&n===2&&(U|=64,t.hydrate&&(t.hydrate=!1,kd(t.containerInfo)),e=Xy(t),e!==0&&(n=_i(t,e))),n===1)throw n=Ga,fr(t,0),mr(t,e),yt(t,ze()),n;return t.finishedWork=t.current.alternate,t.finishedLanes=e,bo(t),yt(t,ze()),null}function EN(){if(Zt!==null){var t=Zt;Zt=null,t.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,yt(e,ze())})}Tt()}function V0(t,e){var n=U;U|=1;try{return t(e)}finally{U=n,U===0&&(dr(),Tt())}}function _0(t,e){var n=U;U&=-2,U|=8;try{return t(e)}finally{U=n,U===0&&(dr(),Tt())}}function nl(t,e){fe(rm,yo),yo|=e,cr|=e}function pm(){yo=rm.current,le(rm)}function fr(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,sN(n)),ve!==null)for(n=ve.return;n!==null;){var o=n;switch(o.tag){case 1:o=o.type.childContextTypes,o!=null&&Oa();break;case 3:ar(),le(qe),le(Le),Fd();break;case 5:Ld(o);break;case 4:ar();break;case 13:le(pe);break;case 19:le(pe);break;case 10:Md(o);break;case 23:case 24:pm()}n=n.return}Ye=t,ve=zn(t.current,null),Fe=yo=cr=e,Me=0,Ga=null,im=ur=zi=0}function U0(t,e){do{var n=ve;try{if(Td(),Di.current=Ka,_a){for(var o=ge.memoizedState;o!==null;){var r=o.queue;r!==null&&(r.pending=null),o=o.next}_a=!1}if(Ti=0,Te=Be=ge=null,Mi=!1,om.current=null,n===null||n.return===null){Me=1,Ga=e,ve=null;break}e:{var i=t,s=n.return,a=n,l=e;if(e=Fe,a.flags|=2048,a.firstEffect=a.lastEffect=null,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l;if(!(a.mode&2)){var u=a.alternate;u?(a.updateQueue=u.updateQueue,a.memoizedState=u.memoizedState,a.lanes=u.lanes):(a.updateQueue=null,a.memoizedState=null)}var d=(pe.current&1)!==0,m=s;do{var f;if(f=m.tag===13){var p=m.memoizedState;if(p!==null)f=p.dehydrated!==null;else{var g=m.memoizedProps;f=g.fallback===void 0?!1:g.unstable_avoidThisFallback!==!0?!0:!d}}if(f){var h=m.updateQueue;if(h===null){var y=new Set;y.add(c),m.updateQueue=y}else h.add(c);if(!(m.mode&2)){if(m.flags|=64,a.flags|=16384,a.flags&=-2981,a.tag===1)if(a.alternate===null)a.tag=17;else{var w=Rn(-1,1);w.tag=2,Dn(a,w)}a.lanes|=1;break e}l=void 0,a=e;var v=i.pingCache;if(v===null?(v=i.pingCache=new vN,l=new Set,v.set(c,l)):(l=v.get(c),l===void 0&&(l=new Set,v.set(c,l))),!l.has(a)){l.add(a);var S=MN.bind(null,i,c,a);c.then(S,S)}m.flags|=4096,m.lanes=e;break e}m=m.return}while(m!==null);l=Error((Vo(a.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
129
129
 
130
- Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Me!==5&&(Me=2),l=Zd(l,a),m=s;do{switch(m.tag){case 3:i=l,m.flags|=4096,e&=-e,m.lanes|=e;var C=D0(m,i,e);Wb(m,C);break e;case 1:i=l;var $=m.type,k=m.stateNode;if(!(m.flags&64)&&(typeof $.getDerivedStateFromError=="function"||k!==null&&typeof k.componentDidCatch=="function"&&(It===null||!It.has(k)))){m.flags|=4096,e&=-e,m.lanes|=e;var N=T0(m,i,e);Wb(m,N);break e}}m=m.return}while(m!==null)}K0(n)}catch(O){e=O,ve===n&&n!==null&&(ve=n=n.return);continue}break}while(!0)}function Y0(){var t=qa.current;return qa.current=Ka,t===null?Ka:t}function _i(t,e){var n=U;U|=16;var o=Y0();Ye===t&&Be===e||fr(t,e);do try{NN();break}catch(r){U0(t,r)}while(!0);if(Td(),U=n,qa.current=o,ve!==null)throw Error(M(261));return Ye=null,Be=0,Me}function NN(){for(;ve!==null;)J0(ve)}function AN(){for(;ve!==null&&!cN();)J0(ve)}function J0(t){var e=G0(t.alternate,t,yo);t.memoizedProps=t.pendingProps,e===null?K0(t):ve=e,om.current=null}function K0(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&2048){if(n=wN(e),n!==null){n.flags&=2047,ve=n;return}t!==null&&(t.firstEffect=t.lastEffect=null,t.flags|=2048)}else{if(n=bN(n,e,yo),n!==null){ve=n;return}if(n=e,n.tag!==24&&n.tag!==23||n.memoizedState===null||yo&1073741824||!(n.mode&4)){for(var o=0,r=n.child;r!==null;)o|=r.lanes|r.childLanes,r=r.sibling;n.childLanes=o}t!==null&&!(t.flags&2048)&&(t.firstEffect===null&&(t.firstEffect=e.firstEffect),e.lastEffect!==null&&(t.lastEffect!==null&&(t.lastEffect.nextEffect=e.firstEffect),t.lastEffect=e.lastEffect),1<e.flags&&(t.lastEffect!==null?t.lastEffect.nextEffect=e:t.firstEffect=e,t.lastEffect=e))}if(e=e.sibling,e!==null){ve=e;return}ve=e=t}while(e!==null);Me===0&&(Me=5)}function bo(t){var e=rr();return fo(99,ON.bind(null,t,e)),null}function ON(t,e){do In();while(Fi!==null);if(U&48)throw Error(M(327));var n=t.finishedWork;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(M(177));t.callbackNode=null;var o=n.lanes|n.childLanes,r=o,i=t.pendingLanes&~r;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=r,t.mutableReadLanes&=r,t.entangledLanes&=r,r=t.entanglements;for(var s=t.eventTimes,a=t.expirationTimes;0<i;){var l=31-xn(i),c=1<<l;r[l]=0,s[l]=-1,a[l]=-1,i&=~c}if(Zt!==null&&!(o&24)&&Zt.has(t)&&Zt.delete(t),t===Ye&&(ve=Ye=null,Be=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,o!==null){if(r=U,U|=32,om.current=null,vd=ba,s=wb(),gd(s)){if("selectionStart"in s)a={start:s.selectionStart,end:s.selectionEnd};else e:if(a=(a=s.ownerDocument)&&a.defaultView||window,(c=a.getSelection&&a.getSelection())&&c.rangeCount!==0){a=c.anchorNode,i=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{a.nodeType,l.nodeType}catch{a=null;break e}var u=0,d=-1,m=-1,f=0,p=0,g=s,h=null;t:for(;;){for(var y;g!==a||i!==0&&g.nodeType!==3||(d=u+i),g!==l||c!==0&&g.nodeType!==3||(m=u+c),g.nodeType===3&&(u+=g.nodeValue.length),(y=g.firstChild)!==null;)h=g,g=y;for(;;){if(g===s)break t;if(h===a&&++f===i&&(d=u),h===l&&++p===c&&(m=u),(y=g.nextSibling)!==null)break;g=h,h=g.parentNode}g=y}a=d===-1||m===-1?null:{start:d,end:m}}else a=null;a=a||{start:0,end:0}}else a=null;Sd={focusedElem:s,selectionRange:a},ba=!1,Vi=null,el=!1,z=o;do try{RN()}catch(O){if(z===null)throw Error(M(330));Ln(z,O),z=z.nextEffect}while(z!==null);Vi=null,z=o;do try{for(s=t;z!==null;){var w=z.flags;if(w&16&&ri(z.stateNode,""),w&128){var v=z.alternate;if(v!==null){var S=v.ref;S!==null&&(typeof S=="function"?S(null):S.current=null)}}switch(w&1038){case 2:z0(z),z.flags&=-3;break;case 6:z0(z),z.flags&=-3,nm(z.alternate,z);break;case 1024:z.flags&=-1025;break;case 1028:z.flags&=-1025,nm(z.alternate,z);break;case 4:nm(z.alternate,z);break;case 8:a=z,F0(s,a);var C=a.alternate;I0(a),C!==null&&I0(C)}z=z.nextEffect}}catch(O){if(z===null)throw Error(M(330));Ln(z,O),z=z.nextEffect}while(z!==null);if(S=Sd,v=wb(),w=S.focusedElem,s=S.selectionRange,v!==w&&w&&w.ownerDocument&&bb(w.ownerDocument.documentElement,w)){for(s!==null&&gd(w)&&(v=s.start,S=s.end,S===void 0&&(S=v),"selectionStart"in w?(w.selectionStart=v,w.selectionEnd=Math.min(S,w.value.length)):(S=(v=w.ownerDocument||document)&&v.defaultView||window,S.getSelection&&(S=S.getSelection(),a=w.textContent.length,C=Math.min(s.start,a),s=s.end===void 0?C:Math.min(s.end,a),!S.extend&&C>s&&(a=s,s=C,C=a),a=yb(w,C),i=yb(w,s),a&&i&&(S.rangeCount!==1||S.anchorNode!==a.node||S.anchorOffset!==a.offset||S.focusNode!==i.node||S.focusOffset!==i.offset)&&(v=v.createRange(),v.setStart(a.node,a.offset),S.removeAllRanges(),C>s?(S.addRange(v),S.extend(i.node,i.offset)):(v.setEnd(i.node,i.offset),S.addRange(v)))))),v=[],S=w;S=S.parentNode;)S.nodeType===1&&v.push({element:S,left:S.scrollLeft,top:S.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<v.length;w++)S=v[w],S.element.scrollLeft=S.left,S.element.scrollTop=S.top}ba=!!vd,Sd=vd=null,t.current=n,z=o;do try{for(w=t;z!==null;){var $=z.flags;if($&36&&kN(w,z.alternate,z),$&128){v=void 0;var k=z.ref;if(k!==null){var N=z.stateNode;switch(z.tag){case 5:v=N;break;default:v=N}typeof k=="function"?k(v):k.current=v}}z=z.nextEffect}}catch(O){if(z===null)throw Error(M(330));Ln(z,O),z=z.nextEffect}while(z!==null);z=null,dN(),U=r}else t.current=n;if(Mn)Mn=!1,Fi=t,Bi=e;else for(z=o;z!==null;)e=z.nextEffect,z.nextEffect=null,z.flags&8&&($=z,$.sibling=null,$.stateNode=null),z=e;if(o=t.pendingLanes,o===0&&(It=null),o===1?t===mm?Hi++:(Hi=0,mm=t):Hi=0,n=n.stateNode,mo&&typeof mo.onCommitFiberRoot=="function")try{mo.onCommitFiberRoot(Ed,n,void 0,(n.current.flags&64)===64)}catch{}if(yt(t,ze()),Qa)throw Qa=!1,t=cm,cm=null,t;return U&8||Tt(),null}function RN(){for(;z!==null;){var t=z.alternate;el||Vi===null||(z.flags&8?Fy(z,Vi)&&(el=!0):z.tag===13&&xN(t,z)&&Fy(z,Vi)&&(el=!0));var e=z.flags;e&256&&$N(t,z),!(e&512)||Mn||(Mn=!0,Ci(97,function(){return In(),null})),z=z.nextEffect}}function In(){if(Bi!==90){var t=97<Bi?97:Bi;return Bi=90,fo(t,TN)}return!1}function DN(t,e){um.push(e,t),Mn||(Mn=!0,Ci(97,function(){return In(),null}))}function W0(t,e){dm.push(e,t),Mn||(Mn=!0,Ci(97,function(){return In(),null}))}function TN(){if(Fi===null)return!1;var t=Fi;if(Fi=null,U&48)throw Error(M(331));var e=U;U|=32;var n=dm;dm=[];for(var o=0;o<n.length;o+=2){var r=n[o],i=n[o+1],s=r.destroy;if(r.destroy=void 0,typeof s=="function")try{s()}catch(l){if(i===null)throw Error(M(330));Ln(i,l)}}for(n=um,um=[],o=0;o<n.length;o+=2){r=n[o],i=n[o+1];try{var a=r.create;r.destroy=a()}catch(l){if(i===null)throw Error(M(330));Ln(i,l)}}for(a=t.current.firstEffect;a!==null;)t=a.nextEffect,a.nextEffect=null,a.flags&8&&(a.sibling=null,a.stateNode=null),a=t;return U=e,Tt(),!0}function q0(t,e,n){e=Zd(n,e),e=D0(t,e,1),Dn(t,e),e=st(),t=tl(t,1),t!==null&&(ya(t,1,e),yt(t,e))}function Ln(t,e){if(t.tag===3)q0(t,t,e);else for(var n=t.return;n!==null;){if(n.tag===3){q0(n,t,e);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(It===null||!It.has(o))){t=Zd(e,t);var r=T0(n,t,1);if(Dn(n,r),r=st(),n=tl(n,1),n!==null)ya(n,1,r),yt(n,r);else if(typeof o.componentDidCatch=="function"&&(It===null||!It.has(o)))try{o.componentDidCatch(e,t)}catch{}break}}n=n.return}}function MN(t,e,n){var o=t.pingCache;o!==null&&o.delete(e),e=st(),t.pingedLanes|=t.suspendedLanes&n,Ye===t&&(Be&n)===n&&(Me===4||Me===3&&(Be&62914560)===Be&&500>ze()-am?fr(t,0):im|=n),yt(t,e)}function jN(t,e){var n=t.stateNode;n!==null&&n.delete(e),e=0,e===0&&(e=t.mode,e&2?e&4?(Xt===0&&(Xt=cr),e=Wo(62914560&~Xt),e===0&&(e=4194304)):e=rr()===99?1:2:e=1),n=st(),t=tl(t,e),t!==null&&(ya(t,e,n),yt(t,n))}var G0;G0=function(t,e,n){var o=e.lanes;if(t!==null)if(t.memoizedProps!==e.pendingProps||qe.current)Ct=!0;else if(n&o)Ct=!!(t.flags&16384);else{switch(Ct=!1,e.tag){case 3:S0(e),Fd();break;case 5:n0(e);break;case 1:Ge(e.type)&&Ra(e);break;case 4:Id(e,e.stateNode.containerInfo);break;case 10:o=e.memoizedProps.value;var r=e.type._context;fe(Ma,r._currentValue),r._currentValue=o;break;case 13:if(e.memoizedState!==null)return n&e.child.childLanes?$0(t,e,n):(fe(pe,pe.current&1),e=Qt(t,e,n),e!==null?e.sibling:null);fe(pe,pe.current&1);break;case 19:if(o=(n&e.childLanes)!==0,t.flags&64){if(o)return N0(t,e,n);e.flags|=64}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),fe(pe,pe.current),o)break;return null;case 23:case 24:return e.lanes=0,Kd(t,e,n)}return Qt(t,e,n)}else Ct=!1;switch(e.lanes=0,e.tag){case 2:if(o=e.type,t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),t=e.pendingProps,r=or(e,Le.current),sr(e,n),r=Vd(null,e,o,t,r,n),e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,Ge(o)){var i=!0;Ra(e)}else i=!1;e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,jd(e);var s=o.getDerivedStateFromProps;typeof s=="function"&&Ia(e,o,s,t),r.updater=La,e.stateNode=r,r._reactInternals=e,Pd(e,o,t,n),e=qd(null,e,o,!0,i,n)}else e.tag=0,Ze(null,e,r,n),e=e.child;return e;case 16:r=e.elementType;e:{switch(t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=IN(r),t=xt(r,t),i){case 0:e=Wd(null,e,r,t,n);break e;case 1:e=v0(null,e,r,t,n);break e;case 11:e=g0(null,e,r,t,n);break e;case 14:e=y0(null,e,r,xt(r.type,t),o,n);break e}throw Error(M(306,r,""))}return e;case 0:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:xt(o,r),Wd(t,e,o,r,n);case 1:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:xt(o,r),v0(t,e,o,r,n);case 3:if(S0(e),o=e.updateQueue,t===null||o===null)throw Error(M(282));if(o=e.pendingProps,r=e.memoizedState,r=r!==null?r.element:null,Kb(t,e),Ei(e,o,null,n),o=e.memoizedState.element,o===r)Fd(),e=Qt(t,e,n);else{if(r=e.stateNode,(i=r.hydrate)&&(Tn=Xo(e.stateNode.containerInfo.firstChild),Gt=e,i=jt=!0),i){if(t=r.mutableSourceEagerHydrationData,t!=null)for(r=0;r<t.length;r+=2)i=t[r],i._workInProgressVersionPrimary=t[r+1],lr.push(i);for(n=t0(e,null,o,n),e.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else Ze(t,e,o,n),Fd();e=e.child}return e;case 5:return n0(e),t===null&&zd(e),o=e.type,r=e.pendingProps,i=t!==null?t.memoizedProps:null,s=r.children,$d(o,r)?s=null:i!==null&&$d(o,i)&&(e.flags|=16),w0(t,e),Ze(t,e,s,n),e.child;case 6:return t===null&&zd(e),null;case 13:return $0(t,e,n);case 4:return Id(e,e.stateNode.containerInfo),o=e.pendingProps,t===null?e.child=Ba(e,null,o,n):Ze(t,e,o,n),e.child;case 11:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:xt(o,r),g0(t,e,o,r,n);case 7:return Ze(t,e,e.pendingProps,n),e.child;case 8:return Ze(t,e,e.pendingProps.children,n),e.child;case 12:return Ze(t,e,e.pendingProps.children,n),e.child;case 10:e:{o=e.type._context,r=e.pendingProps,s=e.memoizedProps,i=r.value;var a=e.type._context;if(fe(Ma,a._currentValue),a._currentValue=i,s!==null)if(a=s.value,i=pt(a,i)?0:(typeof o._calculateChangedBits=="function"?o._calculateChangedBits(a,i):1073741823)|0,i===0){if(s.children===r.children&&!qe.current){e=Qt(t,e,n);break e}}else for(a=e.child,a!==null&&(a.return=e);a!==null;){var l=a.dependencies;if(l!==null){s=a.child;for(var c=l.firstContext;c!==null;){if(c.context===o&&c.observedBits&i){a.tag===1&&(c=Rn(-1,n&-n),c.tag=2,Dn(a,c)),a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),Jb(a.return,n),l.lanes|=n;break}c=c.next}}else s=a.tag===10&&a.type===e.type?null:a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}Ze(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,i=e.pendingProps,o=i.children,sr(e,n),r=ht(r,i.unstable_observedBits),o=o(r),e.flags|=1,Ze(t,e,o,n),e.child;case 14:return r=e.type,i=xt(r,e.pendingProps),i=xt(r.type,i),y0(t,e,r,i,o,n);case 15:return b0(t,e,e.type,e.pendingProps,o,n);case 17:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:xt(o,r),t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),e.tag=1,Ge(o)?(t=!0,Ra(e)):t=!1,sr(e,n),Zb(e,o,r),Pd(e,o,r,n),qd(null,e,o,!0,t,n);case 19:return N0(t,e,n);case 23:return Kd(t,e,n);case 24:return Kd(t,e,n)}throw Error(M(156,e.tag))};function PN(t,e,n,o){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(t,e,n,o){return new PN(t,e,n,o)}function hm(t){return t=t.prototype,!(!t||!t.isReactComponent)}function IN(t){if(typeof t=="function")return hm(t)?1:0;if(t!=null){if(t=t.$$typeof,t===ra)return 11;if(t===sa)return 14}return 2}function zn(t,e){var n=t.alternate;return n===null?(n=bt(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function ol(t,e,n,o,r,i){var s=2;if(o=t,typeof t=="function")hm(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case wn:return pr(n.children,r,i,e);case yy:s=8,r|=16;break;case Cu:s=8,r|=1;break;case ei:return t=bt(12,n,e,r|8),t.elementType=ei,t.type=ei,t.lanes=i,t;case ti:return t=bt(13,n,e,r),t.type=ti,t.elementType=ti,t.lanes=i,t;case ia:return t=bt(19,n,e,r),t.elementType=ia,t.lanes=i,t;case Du:return gm(n,r,i,e);case Tu:return t=bt(24,n,e,r),t.elementType=Tu,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Eu:s=10;break e;case Nu:s=9;break e;case ra:s=11;break e;case sa:s=14;break e;case Au:s=16,o=null;break e;case Ou:s=22;break e}throw Error(M(130,t==null?t:typeof t,""))}return e=bt(s,n,e,r),e.elementType=t,e.type=o,e.lanes=i,e}function pr(t,e,n,o){return t=bt(7,t,o,e),t.lanes=n,t}function gm(t,e,n,o){return t=bt(23,t,o,e),t.elementType=Du,t.lanes=n,t}function ym(t,e,n){return t=bt(6,t,null,e),t.lanes=n,t}function bm(t,e,n){return e=bt(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function LN(t,e,n){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=rd(0),this.expirationTimes=rd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rd(0),this.mutableSourceEagerHydrationData=null}function zN(t,e,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:so,key:o==null?null:""+o,children:t,containerInfo:e,implementation:n}}function rl(t,e,n,o){var r=e.current,i=st(),s=jn(r);e:if(n){n=n._reactInternals;t:{if(lo(n)!==n||n.tag!==1)throw Error(M(170));var a=n;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(Ge(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(a!==null);throw Error(M(171))}if(n.tag===1){var l=n.type;if(Ge(l)){n=Ib(n,l,a);break e}}n=a}else n=An;return e.context===null?e.context=n:e.pendingContext=n,e=Rn(i,s),e.payload={element:t},o=o===void 0?null:o,o!==null&&(e.callback=o),Dn(r,e),Pn(r,s,i),s}function wm(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function Q0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function vm(t,e){Q0(t,e),(t=t.alternate)&&Q0(t,e)}function FN(){return null}function Sm(t,e,n){var o=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new LN(t,e,n!=null&&n.hydrate===!0),e=bt(3,null,null,e===2?7:e===1?3:0),n.current=e,e.stateNode=n,jd(e),t[er]=n.current,Cb(t.nodeType===8?t.parentNode:t),o)for(t=0;t<o.length;t++){e=o[t];var r=e._getVersion;r=r(e._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[e,r]:n.mutableSourceEagerHydrationData.push(e,r)}this._internalRoot=n}Sm.prototype.render=function(t){rl(t,this._internalRoot,null,null)},Sm.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;rl(null,t,null,function(){e[er]=null})};function Ui(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function BN(t,e){if(e||(e=t?t.nodeType===9?t.documentElement:t.firstChild:null,e=!(!e||e.nodeType!==1||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new Sm(t,0,e?{hydrate:!0}:void 0)}function il(t,e,n,o,r){var i=n._reactRootContainer;if(i){var s=i._internalRoot;if(typeof r=="function"){var a=r;r=function(){var c=wm(s);a.call(c)}}rl(e,s,t,r)}else{if(i=n._reactRootContainer=BN(n,o),s=i._internalRoot,typeof r=="function"){var l=r;r=function(){var c=wm(s);l.call(c)}}_0(function(){rl(e,s,t,r)})}return wm(s)}By=function(t){if(t.tag===13){var e=st();Pn(t,4,e),vm(t,4)}},Zu=function(t){if(t.tag===13){var e=st();Pn(t,67108864,e),vm(t,67108864)}},Hy=function(t){if(t.tag===13){var e=st(),n=jn(t);Pn(t,n,e),vm(t,n)}},Vy=function(t,e){return e()},Yu=function(t,e,n){switch(e){case"input":if(Iu(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var o=n[e];if(o!==t&&o.form===t.form){var r=Aa(o);if(!r)throw Error(M(90));vy(o),Iu(o,r)}}}break;case"textarea":Cy(t,n);break;case"select":e=n.value,e!=null&&_o(t,!!n.multiple,e,!1)}},Ju=V0,jy=function(t,e,n,o,r){var i=U;U|=4;try{return fo(98,t.bind(null,e,n,o,r))}finally{U=i,U===0&&(dr(),Tt())}},Ku=function(){!(U&49)&&(EN(),In())},Py=function(t,e){var n=U;U|=2;try{return t(e)}finally{U=n,U===0&&(dr(),Tt())}};function Z0(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ui(e))throw Error(M(200));return zN(t,e,null,n)}var HN={Events:[xi,tr,Aa,Ty,My,In,{current:!1}]},Yi={findFiberByHostInstance:co,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},VN={bundleType:Yi.bundleType,version:Yi.version,rendererPackageName:Yi.rendererPackageName,rendererConfig:Yi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:io.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=zy(t),t===null?null:t.stateNode},findFiberByHostInstance:Yi.findFiberByHostInstance||FN,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var sl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sl.isDisabled&&sl.supportsFiber)try{Ed=sl.inject(VN),mo=sl}catch{}}ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=HN,ft.createPortal=Z0,ft.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(M(188)):Error(M(268,Object.keys(t)));return t=zy(e),t=t===null?null:t.stateNode,t},ft.flushSync=function(t,e){var n=U;if(n&48)return t(e);U|=1;try{if(t)return fo(99,t.bind(null,e))}finally{U=n,Tt()}},ft.hydrate=function(t,e,n){if(!Ui(e))throw Error(M(200));return il(null,t,e,!0,n)},ft.render=function(t,e,n){if(!Ui(e))throw Error(M(200));return il(null,t,e,!1,n)},ft.unmountComponentAtNode=function(t){if(!Ui(t))throw Error(M(40));return t._reactRootContainer?(_0(function(){il(null,null,t,!1,function(){t._reactRootContainer=null,t[er]=null})}),!0):!1},ft.unstable_batchedUpdates=V0,ft.unstable_createPortal=function(t,e){return Z0(t,e,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},ft.unstable_renderSubtreeIntoContainer=function(t,e,n,o){if(!Ui(n))throw Error(M(200));if(t==null||t._reactInternals===void 0)throw Error(M(38));return il(t,e,n,!1,o)},ft.version="17.0.2";function X0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(X0)}catch(t){console.error(t)}}X0(),uy.exports=ft;var $m=uy.exports;const ew=At($m);function _N(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var tw={exports:{}},km={};/**
130
+ Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Me!==5&&(Me=2),l=Zd(l,a),m=s;do{switch(m.tag){case 3:i=l,m.flags|=4096,e&=-e,m.lanes|=e;var C=D0(m,i,e);Wb(m,C);break e;case 1:i=l;var $=m.type,k=m.stateNode;if(!(m.flags&64)&&(typeof $.getDerivedStateFromError=="function"||k!==null&&typeof k.componentDidCatch=="function"&&(It===null||!It.has(k)))){m.flags|=4096,e&=-e,m.lanes|=e;var N=T0(m,i,e);Wb(m,N);break e}}m=m.return}while(m!==null)}K0(n)}catch(O){e=O,ve===n&&n!==null&&(ve=n=n.return);continue}break}while(!0)}function Y0(){var t=qa.current;return qa.current=Ka,t===null?Ka:t}function _i(t,e){var n=U;U|=16;var o=Y0();Ye===t&&Fe===e||fr(t,e);do try{NN();break}catch(r){U0(t,r)}while(!0);if(Td(),U=n,qa.current=o,ve!==null)throw Error(M(261));return Ye=null,Fe=0,Me}function NN(){for(;ve!==null;)J0(ve)}function AN(){for(;ve!==null&&!cN();)J0(ve)}function J0(t){var e=G0(t.alternate,t,yo);t.memoizedProps=t.pendingProps,e===null?K0(t):ve=e,om.current=null}function K0(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&2048){if(n=wN(e),n!==null){n.flags&=2047,ve=n;return}t!==null&&(t.firstEffect=t.lastEffect=null,t.flags|=2048)}else{if(n=bN(n,e,yo),n!==null){ve=n;return}if(n=e,n.tag!==24&&n.tag!==23||n.memoizedState===null||yo&1073741824||!(n.mode&4)){for(var o=0,r=n.child;r!==null;)o|=r.lanes|r.childLanes,r=r.sibling;n.childLanes=o}t!==null&&!(t.flags&2048)&&(t.firstEffect===null&&(t.firstEffect=e.firstEffect),e.lastEffect!==null&&(t.lastEffect!==null&&(t.lastEffect.nextEffect=e.firstEffect),t.lastEffect=e.lastEffect),1<e.flags&&(t.lastEffect!==null?t.lastEffect.nextEffect=e:t.firstEffect=e,t.lastEffect=e))}if(e=e.sibling,e!==null){ve=e;return}ve=e=t}while(e!==null);Me===0&&(Me=5)}function bo(t){var e=rr();return fo(99,ON.bind(null,t,e)),null}function ON(t,e){do In();while(Bi!==null);if(U&48)throw Error(M(327));var n=t.finishedWork;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(M(177));t.callbackNode=null;var o=n.lanes|n.childLanes,r=o,i=t.pendingLanes&~r;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=r,t.mutableReadLanes&=r,t.entangledLanes&=r,r=t.entanglements;for(var s=t.eventTimes,a=t.expirationTimes;0<i;){var l=31-xn(i),c=1<<l;r[l]=0,s[l]=-1,a[l]=-1,i&=~c}if(Zt!==null&&!(o&24)&&Zt.has(t)&&Zt.delete(t),t===Ye&&(ve=Ye=null,Fe=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,o!==null){if(r=U,U|=32,om.current=null,vd=ba,s=wb(),gd(s)){if("selectionStart"in s)a={start:s.selectionStart,end:s.selectionEnd};else e:if(a=(a=s.ownerDocument)&&a.defaultView||window,(c=a.getSelection&&a.getSelection())&&c.rangeCount!==0){a=c.anchorNode,i=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{a.nodeType,l.nodeType}catch{a=null;break e}var u=0,d=-1,m=-1,f=0,p=0,g=s,h=null;t:for(;;){for(var y;g!==a||i!==0&&g.nodeType!==3||(d=u+i),g!==l||c!==0&&g.nodeType!==3||(m=u+c),g.nodeType===3&&(u+=g.nodeValue.length),(y=g.firstChild)!==null;)h=g,g=y;for(;;){if(g===s)break t;if(h===a&&++f===i&&(d=u),h===l&&++p===c&&(m=u),(y=g.nextSibling)!==null)break;g=h,h=g.parentNode}g=y}a=d===-1||m===-1?null:{start:d,end:m}}else a=null;a=a||{start:0,end:0}}else a=null;Sd={focusedElem:s,selectionRange:a},ba=!1,Vi=null,el=!1,z=o;do try{RN()}catch(O){if(z===null)throw Error(M(330));Ln(z,O),z=z.nextEffect}while(z!==null);Vi=null,z=o;do try{for(s=t;z!==null;){var w=z.flags;if(w&16&&ri(z.stateNode,""),w&128){var v=z.alternate;if(v!==null){var S=v.ref;S!==null&&(typeof S=="function"?S(null):S.current=null)}}switch(w&1038){case 2:z0(z),z.flags&=-3;break;case 6:z0(z),z.flags&=-3,nm(z.alternate,z);break;case 1024:z.flags&=-1025;break;case 1028:z.flags&=-1025,nm(z.alternate,z);break;case 4:nm(z.alternate,z);break;case 8:a=z,B0(s,a);var C=a.alternate;I0(a),C!==null&&I0(C)}z=z.nextEffect}}catch(O){if(z===null)throw Error(M(330));Ln(z,O),z=z.nextEffect}while(z!==null);if(S=Sd,v=wb(),w=S.focusedElem,s=S.selectionRange,v!==w&&w&&w.ownerDocument&&bb(w.ownerDocument.documentElement,w)){for(s!==null&&gd(w)&&(v=s.start,S=s.end,S===void 0&&(S=v),"selectionStart"in w?(w.selectionStart=v,w.selectionEnd=Math.min(S,w.value.length)):(S=(v=w.ownerDocument||document)&&v.defaultView||window,S.getSelection&&(S=S.getSelection(),a=w.textContent.length,C=Math.min(s.start,a),s=s.end===void 0?C:Math.min(s.end,a),!S.extend&&C>s&&(a=s,s=C,C=a),a=yb(w,C),i=yb(w,s),a&&i&&(S.rangeCount!==1||S.anchorNode!==a.node||S.anchorOffset!==a.offset||S.focusNode!==i.node||S.focusOffset!==i.offset)&&(v=v.createRange(),v.setStart(a.node,a.offset),S.removeAllRanges(),C>s?(S.addRange(v),S.extend(i.node,i.offset)):(v.setEnd(i.node,i.offset),S.addRange(v)))))),v=[],S=w;S=S.parentNode;)S.nodeType===1&&v.push({element:S,left:S.scrollLeft,top:S.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<v.length;w++)S=v[w],S.element.scrollLeft=S.left,S.element.scrollTop=S.top}ba=!!vd,Sd=vd=null,t.current=n,z=o;do try{for(w=t;z!==null;){var $=z.flags;if($&36&&kN(w,z.alternate,z),$&128){v=void 0;var k=z.ref;if(k!==null){var N=z.stateNode;switch(z.tag){case 5:v=N;break;default:v=N}typeof k=="function"?k(v):k.current=v}}z=z.nextEffect}}catch(O){if(z===null)throw Error(M(330));Ln(z,O),z=z.nextEffect}while(z!==null);z=null,dN(),U=r}else t.current=n;if(Mn)Mn=!1,Bi=t,Fi=e;else for(z=o;z!==null;)e=z.nextEffect,z.nextEffect=null,z.flags&8&&($=z,$.sibling=null,$.stateNode=null),z=e;if(o=t.pendingLanes,o===0&&(It=null),o===1?t===mm?Hi++:(Hi=0,mm=t):Hi=0,n=n.stateNode,mo&&typeof mo.onCommitFiberRoot=="function")try{mo.onCommitFiberRoot(Ed,n,void 0,(n.current.flags&64)===64)}catch{}if(yt(t,ze()),Qa)throw Qa=!1,t=cm,cm=null,t;return U&8||Tt(),null}function RN(){for(;z!==null;){var t=z.alternate;el||Vi===null||(z.flags&8?By(z,Vi)&&(el=!0):z.tag===13&&xN(t,z)&&By(z,Vi)&&(el=!0));var e=z.flags;e&256&&$N(t,z),!(e&512)||Mn||(Mn=!0,Ci(97,function(){return In(),null})),z=z.nextEffect}}function In(){if(Fi!==90){var t=97<Fi?97:Fi;return Fi=90,fo(t,TN)}return!1}function DN(t,e){um.push(e,t),Mn||(Mn=!0,Ci(97,function(){return In(),null}))}function W0(t,e){dm.push(e,t),Mn||(Mn=!0,Ci(97,function(){return In(),null}))}function TN(){if(Bi===null)return!1;var t=Bi;if(Bi=null,U&48)throw Error(M(331));var e=U;U|=32;var n=dm;dm=[];for(var o=0;o<n.length;o+=2){var r=n[o],i=n[o+1],s=r.destroy;if(r.destroy=void 0,typeof s=="function")try{s()}catch(l){if(i===null)throw Error(M(330));Ln(i,l)}}for(n=um,um=[],o=0;o<n.length;o+=2){r=n[o],i=n[o+1];try{var a=r.create;r.destroy=a()}catch(l){if(i===null)throw Error(M(330));Ln(i,l)}}for(a=t.current.firstEffect;a!==null;)t=a.nextEffect,a.nextEffect=null,a.flags&8&&(a.sibling=null,a.stateNode=null),a=t;return U=e,Tt(),!0}function q0(t,e,n){e=Zd(n,e),e=D0(t,e,1),Dn(t,e),e=st(),t=tl(t,1),t!==null&&(ya(t,1,e),yt(t,e))}function Ln(t,e){if(t.tag===3)q0(t,t,e);else for(var n=t.return;n!==null;){if(n.tag===3){q0(n,t,e);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(It===null||!It.has(o))){t=Zd(e,t);var r=T0(n,t,1);if(Dn(n,r),r=st(),n=tl(n,1),n!==null)ya(n,1,r),yt(n,r);else if(typeof o.componentDidCatch=="function"&&(It===null||!It.has(o)))try{o.componentDidCatch(e,t)}catch{}break}}n=n.return}}function MN(t,e,n){var o=t.pingCache;o!==null&&o.delete(e),e=st(),t.pingedLanes|=t.suspendedLanes&n,Ye===t&&(Fe&n)===n&&(Me===4||Me===3&&(Fe&62914560)===Fe&&500>ze()-am?fr(t,0):im|=n),yt(t,e)}function jN(t,e){var n=t.stateNode;n!==null&&n.delete(e),e=0,e===0&&(e=t.mode,e&2?e&4?(Xt===0&&(Xt=cr),e=Wo(62914560&~Xt),e===0&&(e=4194304)):e=rr()===99?1:2:e=1),n=st(),t=tl(t,e),t!==null&&(ya(t,e,n),yt(t,n))}var G0;G0=function(t,e,n){var o=e.lanes;if(t!==null)if(t.memoizedProps!==e.pendingProps||qe.current)Ct=!0;else if(n&o)Ct=!!(t.flags&16384);else{switch(Ct=!1,e.tag){case 3:S0(e),Bd();break;case 5:n0(e);break;case 1:Ge(e.type)&&Ra(e);break;case 4:Id(e,e.stateNode.containerInfo);break;case 10:o=e.memoizedProps.value;var r=e.type._context;fe(Ma,r._currentValue),r._currentValue=o;break;case 13:if(e.memoizedState!==null)return n&e.child.childLanes?$0(t,e,n):(fe(pe,pe.current&1),e=Qt(t,e,n),e!==null?e.sibling:null);fe(pe,pe.current&1);break;case 19:if(o=(n&e.childLanes)!==0,t.flags&64){if(o)return N0(t,e,n);e.flags|=64}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),fe(pe,pe.current),o)break;return null;case 23:case 24:return e.lanes=0,Kd(t,e,n)}return Qt(t,e,n)}else Ct=!1;switch(e.lanes=0,e.tag){case 2:if(o=e.type,t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),t=e.pendingProps,r=or(e,Le.current),sr(e,n),r=Vd(null,e,o,t,r,n),e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,Ge(o)){var i=!0;Ra(e)}else i=!1;e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,jd(e);var s=o.getDerivedStateFromProps;typeof s=="function"&&Ia(e,o,s,t),r.updater=La,e.stateNode=r,r._reactInternals=e,Pd(e,o,t,n),e=qd(null,e,o,!0,i,n)}else e.tag=0,Ze(null,e,r,n),e=e.child;return e;case 16:r=e.elementType;e:{switch(t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=IN(r),t=xt(r,t),i){case 0:e=Wd(null,e,r,t,n);break e;case 1:e=v0(null,e,r,t,n);break e;case 11:e=g0(null,e,r,t,n);break e;case 14:e=y0(null,e,r,xt(r.type,t),o,n);break e}throw Error(M(306,r,""))}return e;case 0:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:xt(o,r),Wd(t,e,o,r,n);case 1:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:xt(o,r),v0(t,e,o,r,n);case 3:if(S0(e),o=e.updateQueue,t===null||o===null)throw Error(M(282));if(o=e.pendingProps,r=e.memoizedState,r=r!==null?r.element:null,Kb(t,e),Ei(e,o,null,n),o=e.memoizedState.element,o===r)Bd(),e=Qt(t,e,n);else{if(r=e.stateNode,(i=r.hydrate)&&(Tn=Xo(e.stateNode.containerInfo.firstChild),Gt=e,i=jt=!0),i){if(t=r.mutableSourceEagerHydrationData,t!=null)for(r=0;r<t.length;r+=2)i=t[r],i._workInProgressVersionPrimary=t[r+1],lr.push(i);for(n=t0(e,null,o,n),e.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else Ze(t,e,o,n),Bd();e=e.child}return e;case 5:return n0(e),t===null&&zd(e),o=e.type,r=e.pendingProps,i=t!==null?t.memoizedProps:null,s=r.children,$d(o,r)?s=null:i!==null&&$d(o,i)&&(e.flags|=16),w0(t,e),Ze(t,e,s,n),e.child;case 6:return t===null&&zd(e),null;case 13:return $0(t,e,n);case 4:return Id(e,e.stateNode.containerInfo),o=e.pendingProps,t===null?e.child=Fa(e,null,o,n):Ze(t,e,o,n),e.child;case 11:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:xt(o,r),g0(t,e,o,r,n);case 7:return Ze(t,e,e.pendingProps,n),e.child;case 8:return Ze(t,e,e.pendingProps.children,n),e.child;case 12:return Ze(t,e,e.pendingProps.children,n),e.child;case 10:e:{o=e.type._context,r=e.pendingProps,s=e.memoizedProps,i=r.value;var a=e.type._context;if(fe(Ma,a._currentValue),a._currentValue=i,s!==null)if(a=s.value,i=pt(a,i)?0:(typeof o._calculateChangedBits=="function"?o._calculateChangedBits(a,i):1073741823)|0,i===0){if(s.children===r.children&&!qe.current){e=Qt(t,e,n);break e}}else for(a=e.child,a!==null&&(a.return=e);a!==null;){var l=a.dependencies;if(l!==null){s=a.child;for(var c=l.firstContext;c!==null;){if(c.context===o&&c.observedBits&i){a.tag===1&&(c=Rn(-1,n&-n),c.tag=2,Dn(a,c)),a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),Jb(a.return,n),l.lanes|=n;break}c=c.next}}else s=a.tag===10&&a.type===e.type?null:a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}Ze(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,i=e.pendingProps,o=i.children,sr(e,n),r=ht(r,i.unstable_observedBits),o=o(r),e.flags|=1,Ze(t,e,o,n),e.child;case 14:return r=e.type,i=xt(r,e.pendingProps),i=xt(r.type,i),y0(t,e,r,i,o,n);case 15:return b0(t,e,e.type,e.pendingProps,o,n);case 17:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:xt(o,r),t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),e.tag=1,Ge(o)?(t=!0,Ra(e)):t=!1,sr(e,n),Zb(e,o,r),Pd(e,o,r,n),qd(null,e,o,!0,t,n);case 19:return N0(t,e,n);case 23:return Kd(t,e,n);case 24:return Kd(t,e,n)}throw Error(M(156,e.tag))};function PN(t,e,n,o){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(t,e,n,o){return new PN(t,e,n,o)}function hm(t){return t=t.prototype,!(!t||!t.isReactComponent)}function IN(t){if(typeof t=="function")return hm(t)?1:0;if(t!=null){if(t=t.$$typeof,t===ra)return 11;if(t===sa)return 14}return 2}function zn(t,e){var n=t.alternate;return n===null?(n=bt(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function ol(t,e,n,o,r,i){var s=2;if(o=t,typeof t=="function")hm(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case wn:return pr(n.children,r,i,e);case yy:s=8,r|=16;break;case Cu:s=8,r|=1;break;case ei:return t=bt(12,n,e,r|8),t.elementType=ei,t.type=ei,t.lanes=i,t;case ti:return t=bt(13,n,e,r),t.type=ti,t.elementType=ti,t.lanes=i,t;case ia:return t=bt(19,n,e,r),t.elementType=ia,t.lanes=i,t;case Du:return gm(n,r,i,e);case Tu:return t=bt(24,n,e,r),t.elementType=Tu,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Eu:s=10;break e;case Nu:s=9;break e;case ra:s=11;break e;case sa:s=14;break e;case Au:s=16,o=null;break e;case Ou:s=22;break e}throw Error(M(130,t==null?t:typeof t,""))}return e=bt(s,n,e,r),e.elementType=t,e.type=o,e.lanes=i,e}function pr(t,e,n,o){return t=bt(7,t,o,e),t.lanes=n,t}function gm(t,e,n,o){return t=bt(23,t,o,e),t.elementType=Du,t.lanes=n,t}function ym(t,e,n){return t=bt(6,t,null,e),t.lanes=n,t}function bm(t,e,n){return e=bt(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function LN(t,e,n){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=rd(0),this.expirationTimes=rd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rd(0),this.mutableSourceEagerHydrationData=null}function zN(t,e,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:so,key:o==null?null:""+o,children:t,containerInfo:e,implementation:n}}function rl(t,e,n,o){var r=e.current,i=st(),s=jn(r);e:if(n){n=n._reactInternals;t:{if(lo(n)!==n||n.tag!==1)throw Error(M(170));var a=n;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(Ge(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(a!==null);throw Error(M(171))}if(n.tag===1){var l=n.type;if(Ge(l)){n=Ib(n,l,a);break e}}n=a}else n=An;return e.context===null?e.context=n:e.pendingContext=n,e=Rn(i,s),e.payload={element:t},o=o===void 0?null:o,o!==null&&(e.callback=o),Dn(r,e),Pn(r,s,i),s}function wm(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function Q0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function vm(t,e){Q0(t,e),(t=t.alternate)&&Q0(t,e)}function BN(){return null}function Sm(t,e,n){var o=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new LN(t,e,n!=null&&n.hydrate===!0),e=bt(3,null,null,e===2?7:e===1?3:0),n.current=e,e.stateNode=n,jd(e),t[er]=n.current,Cb(t.nodeType===8?t.parentNode:t),o)for(t=0;t<o.length;t++){e=o[t];var r=e._getVersion;r=r(e._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[e,r]:n.mutableSourceEagerHydrationData.push(e,r)}this._internalRoot=n}Sm.prototype.render=function(t){rl(t,this._internalRoot,null,null)},Sm.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;rl(null,t,null,function(){e[er]=null})};function Ui(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function FN(t,e){if(e||(e=t?t.nodeType===9?t.documentElement:t.firstChild:null,e=!(!e||e.nodeType!==1||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new Sm(t,0,e?{hydrate:!0}:void 0)}function il(t,e,n,o,r){var i=n._reactRootContainer;if(i){var s=i._internalRoot;if(typeof r=="function"){var a=r;r=function(){var c=wm(s);a.call(c)}}rl(e,s,t,r)}else{if(i=n._reactRootContainer=FN(n,o),s=i._internalRoot,typeof r=="function"){var l=r;r=function(){var c=wm(s);l.call(c)}}_0(function(){rl(e,s,t,r)})}return wm(s)}Fy=function(t){if(t.tag===13){var e=st();Pn(t,4,e),vm(t,4)}},Zu=function(t){if(t.tag===13){var e=st();Pn(t,67108864,e),vm(t,67108864)}},Hy=function(t){if(t.tag===13){var e=st(),n=jn(t);Pn(t,n,e),vm(t,n)}},Vy=function(t,e){return e()},Yu=function(t,e,n){switch(e){case"input":if(Iu(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var o=n[e];if(o!==t&&o.form===t.form){var r=Aa(o);if(!r)throw Error(M(90));vy(o),Iu(o,r)}}}break;case"textarea":Cy(t,n);break;case"select":e=n.value,e!=null&&_o(t,!!n.multiple,e,!1)}},Ju=V0,jy=function(t,e,n,o,r){var i=U;U|=4;try{return fo(98,t.bind(null,e,n,o,r))}finally{U=i,U===0&&(dr(),Tt())}},Ku=function(){!(U&49)&&(EN(),In())},Py=function(t,e){var n=U;U|=2;try{return t(e)}finally{U=n,U===0&&(dr(),Tt())}};function Z0(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ui(e))throw Error(M(200));return zN(t,e,null,n)}var HN={Events:[xi,tr,Aa,Ty,My,In,{current:!1}]},Yi={findFiberByHostInstance:co,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},VN={bundleType:Yi.bundleType,version:Yi.version,rendererPackageName:Yi.rendererPackageName,rendererConfig:Yi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:io.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=zy(t),t===null?null:t.stateNode},findFiberByHostInstance:Yi.findFiberByHostInstance||BN,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var sl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sl.isDisabled&&sl.supportsFiber)try{Ed=sl.inject(VN),mo=sl}catch{}}ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=HN,ft.createPortal=Z0,ft.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(M(188)):Error(M(268,Object.keys(t)));return t=zy(e),t=t===null?null:t.stateNode,t},ft.flushSync=function(t,e){var n=U;if(n&48)return t(e);U|=1;try{if(t)return fo(99,t.bind(null,e))}finally{U=n,Tt()}},ft.hydrate=function(t,e,n){if(!Ui(e))throw Error(M(200));return il(null,t,e,!0,n)},ft.render=function(t,e,n){if(!Ui(e))throw Error(M(200));return il(null,t,e,!1,n)},ft.unmountComponentAtNode=function(t){if(!Ui(t))throw Error(M(40));return t._reactRootContainer?(_0(function(){il(null,null,t,!1,function(){t._reactRootContainer=null,t[er]=null})}),!0):!1},ft.unstable_batchedUpdates=V0,ft.unstable_createPortal=function(t,e){return Z0(t,e,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},ft.unstable_renderSubtreeIntoContainer=function(t,e,n,o){if(!Ui(n))throw Error(M(200));if(t==null||t._reactInternals===void 0)throw Error(M(38));return il(t,e,n,!1,o)},ft.version="17.0.2";function X0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(X0)}catch(t){console.error(t)}}X0(),uy.exports=ft;var $m=uy.exports;const ew=At($m);function _N(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var tw={exports:{}},km={};/**
131
131
  * @license React
132
132
  * use-sync-external-store-shim.production.min.js
133
133
  *
@@ -143,22 +143,22 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
143
143
  *
144
144
  * This source code is licensed under the MIT license found in the
145
145
  * LICENSE file in the root directory of this source tree.
146
- */var rw;function XN(){if(rw)return Cm;rw=1;var t=_,e=xm;function n(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var o=typeof Object.is=="function"?Object.is:n,r=e.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,l=t.useDebugValue;return Cm.useSyncExternalStoreWithSelector=function(c,u,d,m,f){var p=i(null);if(p.current===null){var g={hasValue:!1,value:null};p.current=g}else g=p.current;p=a(function(){function y($){if(!w){if(w=!0,v=$,$=m($),f!==void 0&&g.hasValue){var k=g.value;if(f(k,$))return S=k}return S=$}if(k=S,o(v,$))return k;var N=m($);return f!==void 0&&f(k,N)?k:(v=$,S=N)}var w=!1,v,S,C=d===void 0?null:d;return[function(){return y(u())},C===null?void 0:function(){return y(C())}]},[u,d,m,f]);var h=r(c,p[0],p[1]);return s(function(){g.hasValue=!0,g.value=h},[h]),l(h),h},Cm}ow.exports=XN();var eA=ow.exports;const tA=typeof window<"u"?x.useLayoutEffect:x.useEffect;class nA{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){const n=()=>{this.transactionNumber+=1,this.subscribers.forEach(r=>r())},o=this.editor;return o.on("transaction",n),()=>{o.off("transaction",n)}}}}function oA(t){var e;const[n]=x.useState(()=>new nA(t.editor)),o=eA.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,t.selector,(e=t.equalityFn)!==null&&e!==void 0?e:ZN);return tA(()=>n.watch(t.editor),[t.editor,n]),x.useDebugValue(o),o}const rA=!1,Em=typeof window>"u",iA=Em||!!(typeof window<"u"&&window.next);class Nm{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(n=>n())}getInitialEditor(){return this.options.current.immediatelyRender===void 0?Em||iA?null:this.createEditor():(this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null)}createEditor(){const e={...this.options.current,onBeforeCreate:(...o)=>{var r,i;return(i=(r=this.options.current).onBeforeCreate)===null||i===void 0?void 0:i.call(r,...o)},onBlur:(...o)=>{var r,i;return(i=(r=this.options.current).onBlur)===null||i===void 0?void 0:i.call(r,...o)},onCreate:(...o)=>{var r,i;return(i=(r=this.options.current).onCreate)===null||i===void 0?void 0:i.call(r,...o)},onDestroy:(...o)=>{var r,i;return(i=(r=this.options.current).onDestroy)===null||i===void 0?void 0:i.call(r,...o)},onFocus:(...o)=>{var r,i;return(i=(r=this.options.current).onFocus)===null||i===void 0?void 0:i.call(r,...o)},onSelectionUpdate:(...o)=>{var r,i;return(i=(r=this.options.current).onSelectionUpdate)===null||i===void 0?void 0:i.call(r,...o)},onTransaction:(...o)=>{var r,i;return(i=(r=this.options.current).onTransaction)===null||i===void 0?void 0:i.call(r,...o)},onUpdate:(...o)=>{var r,i;return(i=(r=this.options.current).onUpdate)===null||i===void 0?void 0:i.call(r,...o)},onContentError:(...o)=>{var r,i;return(i=(r=this.options.current).onContentError)===null||i===void 0?void 0:i.call(r,...o)},onDrop:(...o)=>{var r,i;return(i=(r=this.options.current).onDrop)===null||i===void 0?void 0:i.call(r,...o)},onPaste:(...o)=>{var r,i;return(i=(r=this.options.current).onPaste)===null||i===void 0?void 0:i.call(r,...o)}};return new UC(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,n){return Object.keys(e).every(o=>["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(o)?!0:o==="extensions"&&e.extensions&&n.extensions?e.extensions.length!==n.extensions.length?!1:e.extensions.every((r,i)=>{var s;return r===((s=n.extensions)===null||s===void 0?void 0:s[i])}):e[o]===n[o])}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&e.length===0?Nm.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(e),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((o,r)=>o===e[r]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){const e=this.instanceId,n=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){n&&n.setOptions(this.options.current);return}n&&!n.isDestroyed&&(n.destroy(),this.instanceId===e&&this.setEditor(null))},1)}}function sA(t={},e=[]){const n=x.useRef(t);n.current=t;const[o]=x.useState(()=>new Nm(n)),r=xm.useSyncExternalStore(o.subscribe,o.getEditor,o.getServerSnapshot);return x.useDebugValue(r),x.useEffect(o.onRender(e)),oA({editor:r,selector:({transactionNumber:i})=>t.shouldRerenderOnTransaction===!1?null:t.immediatelyRender&&i===0?0:i+1}),r}x.createContext({editor:null}).Consumer;const aA=x.createContext({onDragStart:void 0}),lA=()=>x.useContext(aA);_.forwardRef((t,e)=>{const{onDragStart:n}=lA(),o=t.as||"div";return _.createElement(o,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...t.style}})});const al=t=>x.createElement("svg",{id:"loader-1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 50 50",style:{enableBackground:"new 0 0 50 50"},xmlSpace:"preserve",...t},x.createElement("path",{d:"M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"},x.createElement("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"0.6s",repeatCount:"indefinite"})));var cA=Object.defineProperty,uA=(t,e,n)=>e in t?cA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Am=(t,e,n)=>(uA(t,typeof e!="symbol"?e+"":e,n),n);let dA=class{constructor(){Am(this,"current",this.detect()),Am(this,"handoffState","pending"),Am(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},ll=new dA,Ji=(t,e)=>{ll.isServer?x.useEffect(t,e):x.useLayoutEffect(t,e)};function hr(t){let e=x.useRef(t);return Ji(()=>{e.current=t},[t]),e}let en=function(t){let e=hr(t);return _.useCallback((...n)=>e.current(...n),[e])};function mA(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(e=>setTimeout(()=>{throw e}))}function Ki(){let t=[],e={addEventListener(n,o,r,i){return n.addEventListener(o,r,i),e.add(()=>n.removeEventListener(o,r,i))},requestAnimationFrame(...n){let o=requestAnimationFrame(...n);return e.add(()=>cancelAnimationFrame(o))},nextFrame(...n){return e.requestAnimationFrame(()=>e.requestAnimationFrame(...n))},setTimeout(...n){let o=setTimeout(...n);return e.add(()=>clearTimeout(o))},microTask(...n){let o={current:!0};return mA(()=>{o.current&&n[0]()}),e.add(()=>{o.current=!1})},style(n,o,r){let i=n.style.getPropertyValue(o);return Object.assign(n.style,{[o]:r}),this.add(()=>{Object.assign(n.style,{[o]:i})})},group(n){let o=Ki();return n(o),this.add(()=>o.dispose())},add(n){return t.push(n),()=>{let o=t.indexOf(n);if(o>=0)for(let r of t.splice(o,1))r()}},dispose(){for(let n of t.splice(0))n()}};return e}function iw(){let[t]=x.useState(Ki);return x.useEffect(()=>()=>t.dispose(),[t]),t}function fA(){let t=typeof document>"u";return"useSyncExternalStore"in sp?(e=>e.useSyncExternalStore)(sp)(()=>()=>{},()=>!1,()=>!t):!1}function sw(){let t=fA(),[e,n]=x.useState(ll.isHandoffComplete);return e&&ll.isHandoffComplete===!1&&n(!1),x.useEffect(()=>{e!==!0&&n(!0)},[e]),x.useEffect(()=>ll.handoff(),[]),t?!1:e}function Lt(t,e,...n){if(t in e){let r=e[t];return typeof r=="function"?r(...n):r}let o=new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,Lt),o}let pA=Symbol();function aw(...t){let e=x.useRef(t);x.useEffect(()=>{e.current=t},[t]);let n=en(o=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(o):r.current=o)});return t.every(o=>o==null||(o==null?void 0:o[pA]))?void 0:n}function cl(...t){return Array.from(new Set(t.flatMap(e=>typeof e=="string"?e.split(" "):[]))).filter(Boolean).join(" ")}var lw=(t=>(t[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t))(lw||{}),Fn=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(Fn||{});function cw({ourProps:t,theirProps:e,slot:n,defaultTag:o,features:r,visible:i=!0,name:s,mergeRefs:a}){a=a??hA;let l=uw(e,t);if(i)return ul(l,n,o,s,a);let c=r??0;if(c&2){let{static:u=!1,...d}=l;if(u)return ul(d,n,o,s,a)}if(c&1){let{unmount:u=!0,...d}=l;return Lt(u?0:1,{0(){return null},1(){return ul({...d,hidden:!0,style:{display:"none"}},n,o,s,a)}})}return ul(l,n,o,s,a)}function ul(t,e={},n,o,r){let{as:i=n,children:s,refName:a="ref",...l}=Rm(t,["unmount","static"]),c=t.ref!==void 0?{[a]:t.ref}:{},u=typeof s=="function"?s(e):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(e));let d={};if(e){let m=!1,f=[];for(let[p,g]of Object.entries(e))typeof g=="boolean"&&(m=!0),g===!0&&f.push(p);m&&(d["data-headlessui-state"]=f.join(" "))}if(i===x.Fragment&&Object.keys(dw(l)).length>0){if(!x.isValidElement(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(g=>` - ${g}`).join(`
146
+ */var rw;function XN(){if(rw)return Cm;rw=1;var t=_,e=xm;function n(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var o=typeof Object.is=="function"?Object.is:n,r=e.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,l=t.useDebugValue;return Cm.useSyncExternalStoreWithSelector=function(c,u,d,m,f){var p=i(null);if(p.current===null){var g={hasValue:!1,value:null};p.current=g}else g=p.current;p=a(function(){function y($){if(!w){if(w=!0,v=$,$=m($),f!==void 0&&g.hasValue){var k=g.value;if(f(k,$))return S=k}return S=$}if(k=S,o(v,$))return k;var N=m($);return f!==void 0&&f(k,N)?k:(v=$,S=N)}var w=!1,v,S,C=d===void 0?null:d;return[function(){return y(u())},C===null?void 0:function(){return y(C())}]},[u,d,m,f]);var h=r(c,p[0],p[1]);return s(function(){g.hasValue=!0,g.value=h},[h]),l(h),h},Cm}ow.exports=XN();var eA=ow.exports;const tA=typeof window<"u"?x.useLayoutEffect:x.useEffect;class nA{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){const n=()=>{this.transactionNumber+=1,this.subscribers.forEach(r=>r())},o=this.editor;return o.on("transaction",n),()=>{o.off("transaction",n)}}}}function oA(t){var e;const[n]=x.useState(()=>new nA(t.editor)),o=eA.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,t.selector,(e=t.equalityFn)!==null&&e!==void 0?e:ZN);return tA(()=>n.watch(t.editor),[t.editor,n]),x.useDebugValue(o),o}const rA=!1,Em=typeof window>"u",iA=Em||!!(typeof window<"u"&&window.next);class Nm{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(n=>n())}getInitialEditor(){return this.options.current.immediatelyRender===void 0?Em||iA?null:this.createEditor():(this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null)}createEditor(){const e={...this.options.current,onBeforeCreate:(...o)=>{var r,i;return(i=(r=this.options.current).onBeforeCreate)===null||i===void 0?void 0:i.call(r,...o)},onBlur:(...o)=>{var r,i;return(i=(r=this.options.current).onBlur)===null||i===void 0?void 0:i.call(r,...o)},onCreate:(...o)=>{var r,i;return(i=(r=this.options.current).onCreate)===null||i===void 0?void 0:i.call(r,...o)},onDestroy:(...o)=>{var r,i;return(i=(r=this.options.current).onDestroy)===null||i===void 0?void 0:i.call(r,...o)},onFocus:(...o)=>{var r,i;return(i=(r=this.options.current).onFocus)===null||i===void 0?void 0:i.call(r,...o)},onSelectionUpdate:(...o)=>{var r,i;return(i=(r=this.options.current).onSelectionUpdate)===null||i===void 0?void 0:i.call(r,...o)},onTransaction:(...o)=>{var r,i;return(i=(r=this.options.current).onTransaction)===null||i===void 0?void 0:i.call(r,...o)},onUpdate:(...o)=>{var r,i;return(i=(r=this.options.current).onUpdate)===null||i===void 0?void 0:i.call(r,...o)},onContentError:(...o)=>{var r,i;return(i=(r=this.options.current).onContentError)===null||i===void 0?void 0:i.call(r,...o)},onDrop:(...o)=>{var r,i;return(i=(r=this.options.current).onDrop)===null||i===void 0?void 0:i.call(r,...o)},onPaste:(...o)=>{var r,i;return(i=(r=this.options.current).onPaste)===null||i===void 0?void 0:i.call(r,...o)}};return new UC(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,n){return Object.keys(e).every(o=>["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(o)?!0:o==="extensions"&&e.extensions&&n.extensions?e.extensions.length!==n.extensions.length?!1:e.extensions.every((r,i)=>{var s;return r===((s=n.extensions)===null||s===void 0?void 0:s[i])}):e[o]===n[o])}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&e.length===0?Nm.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(e),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((o,r)=>o===e[r]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){const e=this.instanceId,n=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){n&&n.setOptions(this.options.current);return}n&&!n.isDestroyed&&(n.destroy(),this.instanceId===e&&this.setEditor(null))},1)}}function sA(t={},e=[]){const n=x.useRef(t);n.current=t;const[o]=x.useState(()=>new Nm(n)),r=xm.useSyncExternalStore(o.subscribe,o.getEditor,o.getServerSnapshot);return x.useDebugValue(r),x.useEffect(o.onRender(e)),oA({editor:r,selector:({transactionNumber:i})=>t.shouldRerenderOnTransaction===!1?null:t.immediatelyRender&&i===0?0:i+1}),r}x.createContext({editor:null}).Consumer;const aA=x.createContext({onDragStart:void 0}),lA=()=>x.useContext(aA);_.forwardRef((t,e)=>{const{onDragStart:n}=lA(),o=t.as||"div";return _.createElement(o,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...t.style}})});const al=t=>x.createElement("svg",{id:"loader-1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"40px",height:"40px",viewBox:"0 0 50 50",style:{enableBackground:"new 0 0 50 50"},xmlSpace:"preserve",...t},x.createElement("path",{d:"M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z"},x.createElement("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"0.6s",repeatCount:"indefinite"})));var cA=Object.defineProperty,uA=(t,e,n)=>e in t?cA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Am=(t,e,n)=>(uA(t,typeof e!="symbol"?e+"":e,n),n);let dA=class{constructor(){Am(this,"current",this.detect()),Am(this,"handoffState","pending"),Am(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},ll=new dA,Ji=(t,e)=>{ll.isServer?x.useEffect(t,e):x.useLayoutEffect(t,e)};function hr(t){let e=x.useRef(t);return Ji(()=>{e.current=t},[t]),e}let en=function(t){let e=hr(t);return _.useCallback((...n)=>e.current(...n),[e])};function mA(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(e=>setTimeout(()=>{throw e}))}function Ki(){let t=[],e={addEventListener(n,o,r,i){return n.addEventListener(o,r,i),e.add(()=>n.removeEventListener(o,r,i))},requestAnimationFrame(...n){let o=requestAnimationFrame(...n);return e.add(()=>cancelAnimationFrame(o))},nextFrame(...n){return e.requestAnimationFrame(()=>e.requestAnimationFrame(...n))},setTimeout(...n){let o=setTimeout(...n);return e.add(()=>clearTimeout(o))},microTask(...n){let o={current:!0};return mA(()=>{o.current&&n[0]()}),e.add(()=>{o.current=!1})},style(n,o,r){let i=n.style.getPropertyValue(o);return Object.assign(n.style,{[o]:r}),this.add(()=>{Object.assign(n.style,{[o]:i})})},group(n){let o=Ki();return n(o),this.add(()=>o.dispose())},add(n){return t.push(n),()=>{let o=t.indexOf(n);if(o>=0)for(let r of t.splice(o,1))r()}},dispose(){for(let n of t.splice(0))n()}};return e}function iw(){let[t]=x.useState(Ki);return x.useEffect(()=>()=>t.dispose(),[t]),t}function fA(){let t=typeof document>"u";return"useSyncExternalStore"in sp?(e=>e.useSyncExternalStore)(sp)(()=>()=>{},()=>!1,()=>!t):!1}function sw(){let t=fA(),[e,n]=x.useState(ll.isHandoffComplete);return e&&ll.isHandoffComplete===!1&&n(!1),x.useEffect(()=>{e!==!0&&n(!0)},[e]),x.useEffect(()=>ll.handoff(),[]),t?!1:e}function Lt(t,e,...n){if(t in e){let r=e[t];return typeof r=="function"?r(...n):r}let o=new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,Lt),o}let pA=Symbol();function aw(...t){let e=x.useRef(t);x.useEffect(()=>{e.current=t},[t]);let n=en(o=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(o):r.current=o)});return t.every(o=>o==null||(o==null?void 0:o[pA]))?void 0:n}function cl(...t){return Array.from(new Set(t.flatMap(e=>typeof e=="string"?e.split(" "):[]))).filter(Boolean).join(" ")}var lw=(t=>(t[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t))(lw||{}),Bn=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(Bn||{});function cw({ourProps:t,theirProps:e,slot:n,defaultTag:o,features:r,visible:i=!0,name:s,mergeRefs:a}){a=a??hA;let l=uw(e,t);if(i)return ul(l,n,o,s,a);let c=r??0;if(c&2){let{static:u=!1,...d}=l;if(u)return ul(d,n,o,s,a)}if(c&1){let{unmount:u=!0,...d}=l;return Lt(u?0:1,{0(){return null},1(){return ul({...d,hidden:!0,style:{display:"none"}},n,o,s,a)}})}return ul(l,n,o,s,a)}function ul(t,e={},n,o,r){let{as:i=n,children:s,refName:a="ref",...l}=Rm(t,["unmount","static"]),c=t.ref!==void 0?{[a]:t.ref}:{},u=typeof s=="function"?s(e):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(e));let d={};if(e){let m=!1,f=[];for(let[p,g]of Object.entries(e))typeof g=="boolean"&&(m=!0),g===!0&&f.push(p);m&&(d["data-headlessui-state"]=f.join(" "))}if(i===x.Fragment&&Object.keys(dw(l)).length>0){if(!x.isValidElement(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(g=>` - ${g}`).join(`
147
147
  `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(g=>` - ${g}`).join(`
148
148
  `)].join(`
149
- `));let m=u.props,f=typeof(m==null?void 0:m.className)=="function"?(...g)=>cl(m==null?void 0:m.className(...g),l.className):cl(m==null?void 0:m.className,l.className),p=f?{className:f}:{};return x.cloneElement(u,Object.assign({},uw(u.props,dw(Rm(l,["ref"]))),d,c,{ref:r(u.ref,c.ref)},p))}return x.createElement(i,Object.assign({},Rm(l,["ref"]),i!==x.Fragment&&c,i!==x.Fragment&&d),u)}function hA(...t){return t.every(e=>e==null)?void 0:e=>{for(let n of t)n!=null&&(typeof n=="function"?n(e):n.current=e)}}function uw(...t){if(t.length===0)return{};if(t.length===1)return t[0];let e={},n={};for(let o of t)for(let r in o)r.startsWith("on")&&typeof o[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(o[r])):e[r]=o[r];if(e.disabled||e["aria-disabled"])return Object.assign(e,Object.fromEntries(Object.keys(n).map(o=>[o,void 0])));for(let o in n)Object.assign(e,{[o](r,...i){let s=n[o];for(let a of s){if((r instanceof Event||(r==null?void 0:r.nativeEvent)instanceof Event)&&r.defaultPrevented)return;a(r,...i)}}});return e}function Om(t){var e;return Object.assign(x.forwardRef(t),{displayName:(e=t.displayName)!=null?e:t.name})}function dw(t){let e=Object.assign({},t);for(let n in e)e[n]===void 0&&delete e[n];return e}function Rm(t,e=[]){let n=Object.assign({},t);for(let o of e)o in n&&delete n[o];return n}let Dm=x.createContext(null);Dm.displayName="OpenClosedContext";var tn=(t=>(t[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t))(tn||{});function mw(){return x.useContext(Dm)}function gA({value:t,children:e}){return _.createElement(Dm.Provider,{value:t},e)}function Tm(){let t=x.useRef(!1);return Ji(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function yA(t=0){let[e,n]=x.useState(t),o=Tm(),r=x.useCallback(l=>{o.current&&n(c=>c|l)},[e,o]),i=x.useCallback(l=>!!(e&l),[e]),s=x.useCallback(l=>{o.current&&n(c=>c&~l)},[n,o]),a=x.useCallback(l=>{o.current&&n(c=>c^l)},[n]);return{flags:e,addFlag:r,hasFlag:i,removeFlag:s,toggleFlag:a}}function bA(t){let e={called:!1};return(...n)=>{if(!e.called)return e.called=!0,t(...n)}}function Mm(t,...e){t&&e.length>0&&t.classList.add(...e)}function jm(t,...e){t&&e.length>0&&t.classList.remove(...e)}function wA(t,e){let n=Ki();if(!t)return n.dispose;let{transitionDuration:o,transitionDelay:r}=getComputedStyle(t),[i,s]=[o,r].map(l=>{let[c=0]=l.split(",").filter(Boolean).map(u=>u.includes("ms")?parseFloat(u):parseFloat(u)*1e3).sort((u,d)=>d-u);return c}),a=i+s;if(a!==0){n.group(c=>{c.setTimeout(()=>{e(),c.dispose()},a),c.addEventListener(t,"transitionrun",u=>{u.target===u.currentTarget&&c.dispose()})});let l=n.addEventListener(t,"transitionend",c=>{c.target===c.currentTarget&&(e(),l())})}else e();return n.add(()=>e()),n.dispose}function vA(t,e,n,o){let r=n?"enter":"leave",i=Ki(),s=o!==void 0?bA(o):()=>{};r==="enter"&&(t.removeAttribute("hidden"),t.style.display="");let a=Lt(r,{enter:()=>e.enter,leave:()=>e.leave}),l=Lt(r,{enter:()=>e.enterTo,leave:()=>e.leaveTo}),c=Lt(r,{enter:()=>e.enterFrom,leave:()=>e.leaveFrom});return jm(t,...e.base,...e.enter,...e.enterTo,...e.enterFrom,...e.leave,...e.leaveFrom,...e.leaveTo,...e.entered),Mm(t,...e.base,...a,...c),i.nextFrame(()=>{jm(t,...e.base,...a,...c),Mm(t,...e.base,...a,...l),wA(t,()=>(jm(t,...e.base,...a),Mm(t,...e.base,...e.entered),s()))}),i.dispose}function SA({immediate:t,container:e,direction:n,classes:o,onStart:r,onStop:i}){let s=Tm(),a=iw(),l=hr(n);Ji(()=>{t&&(l.current="enter")},[t]),Ji(()=>{let c=Ki();a.add(c.dispose);let u=e.current;if(u&&l.current!=="idle"&&s.current)return c.dispose(),r.current(l.current),c.add(vA(u,o.current,l.current==="enter",()=>{c.dispose(),i.current(l.current)})),c.dispose},[n])}function Bn(t=""){return t.split(/\s+/).filter(e=>e.length>1)}let dl=x.createContext(null);dl.displayName="TransitionContext";var $A=(t=>(t.Visible="visible",t.Hidden="hidden",t))($A||{});function kA(){let t=x.useContext(dl);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}function xA(){let t=x.useContext(ml);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}let ml=x.createContext(null);ml.displayName="NestingContext";function fl(t){return"children"in t?fl(t.children):t.current.filter(({el:e})=>e.current!==null).filter(({state:e})=>e==="visible").length>0}function fw(t,e){let n=hr(t),o=x.useRef([]),r=Tm(),i=iw(),s=en((f,p=Fn.Hidden)=>{let g=o.current.findIndex(({el:h})=>h===f);g!==-1&&(Lt(p,{[Fn.Unmount](){o.current.splice(g,1)},[Fn.Hidden](){o.current[g].state="hidden"}}),i.microTask(()=>{var h;!fl(o)&&r.current&&((h=n.current)==null||h.call(n))}))}),a=en(f=>{let p=o.current.find(({el:g})=>g===f);return p?p.state!=="visible"&&(p.state="visible"):o.current.push({el:f,state:"visible"}),()=>s(f,Fn.Unmount)}),l=x.useRef([]),c=x.useRef(Promise.resolve()),u=x.useRef({enter:[],leave:[],idle:[]}),d=en((f,p,g)=>{l.current.splice(0),e&&(e.chains.current[p]=e.chains.current[p].filter(([h])=>h!==f)),e==null||e.chains.current[p].push([f,new Promise(h=>{l.current.push(h)})]),e==null||e.chains.current[p].push([f,new Promise(h=>{Promise.all(u.current[p].map(([y,w])=>w)).then(()=>h())})]),p==="enter"?c.current=c.current.then(()=>e==null?void 0:e.wait.current).then(()=>g(p)):g(p)}),m=en((f,p,g)=>{Promise.all(u.current[p].splice(0).map(([h,y])=>y)).then(()=>{var h;(h=l.current.shift())==null||h()}).then(()=>g(p))});return x.useMemo(()=>({children:o,register:a,unregister:s,onStart:d,onStop:m,wait:c,chains:u}),[a,s,o,d,m,u,c])}function CA(){}let EA=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function pw(t){var e;let n={};for(let o of EA)n[o]=(e=t[o])!=null?e:CA;return n}function NA(t){let e=x.useRef(pw(t));return x.useEffect(()=>{e.current=pw(t)},[t]),e}let AA="div",hw=lw.RenderStrategy;function OA(t,e){var n,o;let{beforeEnter:r,afterEnter:i,beforeLeave:s,afterLeave:a,enter:l,enterFrom:c,enterTo:u,entered:d,leave:m,leaveFrom:f,leaveTo:p,...g}=t,h=x.useRef(null),y=aw(h,e),w=(n=g.unmount)==null||n?Fn.Unmount:Fn.Hidden,{show:v,appear:S,initial:C}=kA(),[$,k]=x.useState(v?"visible":"hidden"),N=xA(),{register:O,unregister:H}=N;x.useEffect(()=>O(h),[O,h]),x.useEffect(()=>{if(w===Fn.Hidden&&h.current){if(v&&$!=="visible"){k("visible");return}return Lt($,{hidden:()=>H(h),visible:()=>O(h)})}},[$,h,O,H,v,w]);let ie=hr({base:Bn(g.className),enter:Bn(l),enterFrom:Bn(c),enterTo:Bn(u),entered:Bn(d),leave:Bn(m),leaveFrom:Bn(f),leaveTo:Bn(p)}),ne=NA({beforeEnter:r,afterEnter:i,beforeLeave:s,afterLeave:a}),oe=sw();x.useEffect(()=>{if(oe&&$==="visible"&&h.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,$,oe]);let ye=C&&!S,de=S&&v&&C,me=!oe||ye?"idle":v?"enter":"leave",E=yA(0),A=en(B=>Lt(B,{enter:()=>{E.addFlag(tn.Opening),ne.current.beforeEnter()},leave:()=>{E.addFlag(tn.Closing),ne.current.beforeLeave()},idle:()=>{}})),j=en(B=>Lt(B,{enter:()=>{E.removeFlag(tn.Opening),ne.current.afterEnter()},leave:()=>{E.removeFlag(tn.Closing),ne.current.afterLeave()},idle:()=>{}})),q=fw(()=>{k("hidden"),H(h)},N),D=x.useRef(!1);SA({immediate:de,container:h,classes:ie,direction:me,onStart:hr(B=>{D.current=!0,q.onStart(h,B,A)}),onStop:hr(B=>{D.current=!1,q.onStop(h,B,j),B==="leave"&&!fl(q)&&(k("hidden"),H(h))})});let P=g,L={ref:y};return de?P={...P,className:cl(g.className,...ie.current.enter,...ie.current.enterFrom)}:D.current&&(P.className=cl(g.className,(o=h.current)==null?void 0:o.className),P.className===""&&delete P.className),_.createElement(ml.Provider,{value:q},_.createElement(gA,{value:Lt($,{visible:tn.Open,hidden:tn.Closed})|E.flags},cw({ourProps:L,theirProps:P,defaultTag:AA,features:hw,visible:$==="visible",name:"Transition.Child"})))}function RA(t,e){let{show:n,appear:o=!1,unmount:r=!0,...i}=t,s=x.useRef(null),a=aw(s,e);sw();let l=mw();if(n===void 0&&l!==null&&(n=(l&tn.Open)===tn.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=x.useState(n?"visible":"hidden"),d=fw(()=>{u("hidden")}),[m,f]=x.useState(!0),p=x.useRef([n]);Ji(()=>{m!==!1&&p.current[p.current.length-1]!==n&&(p.current.push(n),f(!1))},[p,n]);let g=x.useMemo(()=>({show:n,appear:o,initial:m}),[n,o,m]);x.useEffect(()=>{if(n)u("visible");else if(!fl(d))u("hidden");else{let v=s.current;if(!v)return;let S=v.getBoundingClientRect();S.x===0&&S.y===0&&S.width===0&&S.height===0&&u("hidden")}},[n,d]);let h={unmount:r},y=en(()=>{var v;m&&f(!1),(v=t.beforeEnter)==null||v.call(t)}),w=en(()=>{var v;m&&f(!1),(v=t.beforeLeave)==null||v.call(t)});return _.createElement(ml.Provider,{value:d},_.createElement(dl.Provider,{value:g},cw({ourProps:{...h,as:x.Fragment,children:_.createElement(gw,{ref:a,...h,...i,beforeEnter:y,beforeLeave:w})},theirProps:{},defaultTag:x.Fragment,features:hw,visible:c==="visible",name:"Transition"})))}function DA(t,e){let n=x.useContext(dl)!==null,o=mw()!==null;return _.createElement(_.Fragment,null,!n&&o?_.createElement(Pm,{ref:e,...t}):_.createElement(gw,{ref:e,...t}))}let Pm=Om(RA),gw=Om(OA),TA=Om(DA),wo=Object.assign(Pm,{Child:TA,Root:Pm});const MA=/^\s*>\s$/,jA=Qr.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",Fo(this.options.HTMLAttributes,t),0]},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[YC({find:MA,type:this.type})]}}),PA=Qr.create({name:"doc",topNode:!0,content:"block+"}),IA=Qr.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",Fo(this.options.HTMLAttributes,t)]},renderText(){return`
150
- `},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:o})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:r,storedMarks:i}=n;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:a}=o.extensionManager,l=i||r.$to.parentOffset&&r.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&l&&s){const d=l.filter(m=>a.includes(m.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),LA="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",zA="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",Im="numeric",Lm="ascii",zm="alpha",Wi="asciinumeric",qi="alphanumeric",Fm="domain",yw="emoji",FA="scheme",BA="slashscheme",Bm="whitespace";function HA(t,e){return t in e||(e[t]=[]),e[t]}function vo(t,e,n){e[Im]&&(e[Wi]=!0,e[qi]=!0),e[Lm]&&(e[Wi]=!0,e[zm]=!0),e[Wi]&&(e[qi]=!0),e[zm]&&(e[qi]=!0),e[qi]&&(e[Fm]=!0),e[yw]&&(e[Fm]=!0);for(const o in e){const r=HA(o,n);r.indexOf(t)<0&&r.push(t)}}function VA(t,e){const n={};for(const o in e)e[o].indexOf(t)>=0&&(n[o]=!0);return n}function Xe(t=null){this.j={},this.jr=[],this.jd=null,this.t=t}Xe.groups={},Xe.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let o=0;o<e.jr.length;o++){const r=e.jr[o][0],i=e.jr[o][1];if(i&&r.test(t))return i}return e.jd},has(t,e=!1){return e?t in this.j:!!this.go(t)},ta(t,e,n,o){for(let r=0;r<t.length;r++)this.tt(t[r],e,n,o)},tr(t,e,n,o){o=o||Xe.groups;let r;return e&&e.j?r=e:(r=new Xe(e),n&&o&&vo(e,n,o)),this.jr.push([t,r]),r},ts(t,e,n,o){let r=this;const i=t.length;if(!i)return r;for(let s=0;s<i-1;s++)r=r.tt(t[s]);return r.tt(t[i-1],e,n,o)},tt(t,e,n,o){o=o||Xe.groups;const r=this;if(e&&e.j)return r.j[t]=e,e;const i=e;let s,a=r.go(t);if(a?(s=new Xe,Object.assign(s.j,a.j),s.jr.push.apply(s.jr,a.jr),s.jd=a.jd,s.t=a.t):s=new Xe,i){if(o)if(s.t&&typeof s.t=="string"){const l=Object.assign(VA(s.t,o),n);vo(i,l,o)}else n&&vo(i,n,o);s.t=i}return r.j[t]=s,s}};const K=(t,e,n,o,r)=>t.ta(e,n,o,r),he=(t,e,n,o,r)=>t.tr(e,n,o,r),bw=(t,e,n,o,r)=>t.ts(e,n,o,r),T=(t,e,n,o,r)=>t.tt(e,n,o,r),nn="WORD",Hm="UWORD",ww="ASCIINUMERICAL",vw="ALPHANUMERICAL",Gi="LOCALHOST",Vm="TLD",_m="UTLD",pl="SCHEME",gr="SLASH_SCHEME",Um="NUM",Ym="WS",Jm="NL",Qi="OPENBRACE",Zi="CLOSEBRACE",hl="OPENBRACKET",gl="CLOSEBRACKET",yl="OPENPAREN",bl="CLOSEPAREN",wl="OPENANGLEBRACKET",vl="CLOSEANGLEBRACKET",Sl="FULLWIDTHLEFTPAREN",$l="FULLWIDTHRIGHTPAREN",kl="LEFTCORNERBRACKET",xl="RIGHTCORNERBRACKET",Cl="LEFTWHITECORNERBRACKET",El="RIGHTWHITECORNERBRACKET",Nl="FULLWIDTHLESSTHAN",Al="FULLWIDTHGREATERTHAN",Ol="AMPERSAND",Rl="APOSTROPHE",Dl="ASTERISK",Hn="AT",Tl="BACKSLASH",Ml="BACKTICK",jl="CARET",Vn="COLON",Km="COMMA",Pl="DOLLAR",zt="DOT",Il="EQUALS",Wm="EXCLAMATION",wt="HYPHEN",Xi="PERCENT",Ll="PIPE",zl="PLUS",Fl="POUND",es="QUERY",qm="QUOTE",Sw="FULLWIDTHMIDDLEDOT",Gm="SEMI",Ft="SLASH",ts="TILDE",Bl="UNDERSCORE",$w="EMOJI",Hl="SYM";var kw=Object.freeze({__proto__:null,ALPHANUMERICAL:vw,AMPERSAND:Ol,APOSTROPHE:Rl,ASCIINUMERICAL:ww,ASTERISK:Dl,AT:Hn,BACKSLASH:Tl,BACKTICK:Ml,CARET:jl,CLOSEANGLEBRACKET:vl,CLOSEBRACE:Zi,CLOSEBRACKET:gl,CLOSEPAREN:bl,COLON:Vn,COMMA:Km,DOLLAR:Pl,DOT:zt,EMOJI:$w,EQUALS:Il,EXCLAMATION:Wm,FULLWIDTHGREATERTHAN:Al,FULLWIDTHLEFTPAREN:Sl,FULLWIDTHLESSTHAN:Nl,FULLWIDTHMIDDLEDOT:Sw,FULLWIDTHRIGHTPAREN:$l,HYPHEN:wt,LEFTCORNERBRACKET:kl,LEFTWHITECORNERBRACKET:Cl,LOCALHOST:Gi,NL:Jm,NUM:Um,OPENANGLEBRACKET:wl,OPENBRACE:Qi,OPENBRACKET:hl,OPENPAREN:yl,PERCENT:Xi,PIPE:Ll,PLUS:zl,POUND:Fl,QUERY:es,QUOTE:qm,RIGHTCORNERBRACKET:xl,RIGHTWHITECORNERBRACKET:El,SCHEME:pl,SEMI:Gm,SLASH:Ft,SLASH_SCHEME:gr,SYM:Hl,TILDE:ts,TLD:Vm,UNDERSCORE:Bl,UTLD:_m,UWORD:Hm,WORD:nn,WS:Ym});const on=/[a-z]/,ns=new RegExp("\\p{L}","u"),Qm=new RegExp("\\p{Emoji}","u"),rn=/\d/,Zm=/\s/,xw="\r",Xm=`
151
- `,_A="️",UA="‍",ef="";let Vl=null,_l=null;function YA(t=[]){const e={};Xe.groups=e;const n=new Xe;Vl==null&&(Vl=Ew(LA)),_l==null&&(_l=Ew(zA)),T(n,"'",Rl),T(n,"{",Qi),T(n,"}",Zi),T(n,"[",hl),T(n,"]",gl),T(n,"(",yl),T(n,")",bl),T(n,"<",wl),T(n,">",vl),T(n,"(",Sl),T(n,")",$l),T(n,"「",kl),T(n,"」",xl),T(n,"『",Cl),T(n,"』",El),T(n,"<",Nl),T(n,">",Al),T(n,"&",Ol),T(n,"*",Dl),T(n,"@",Hn),T(n,"`",Ml),T(n,"^",jl),T(n,":",Vn),T(n,",",Km),T(n,"$",Pl),T(n,".",zt),T(n,"=",Il),T(n,"!",Wm),T(n,"-",wt),T(n,"%",Xi),T(n,"|",Ll),T(n,"+",zl),T(n,"#",Fl),T(n,"?",es),T(n,'"',qm),T(n,"/",Ft),T(n,";",Gm),T(n,"~",ts),T(n,"_",Bl),T(n,"\\",Tl),T(n,"・",Sw);const o=he(n,rn,Um,{[Im]:!0});he(o,rn,o);const r=he(o,on,ww,{[Wi]:!0}),i=he(o,ns,vw,{[qi]:!0}),s=he(n,on,nn,{[Lm]:!0});he(s,rn,r),he(s,on,s),he(r,rn,r),he(r,on,r);const a=he(n,ns,Hm,{[zm]:!0});he(a,on),he(a,rn,i),he(a,ns,a),he(i,rn,i),he(i,on),he(i,ns,i);const l=T(n,Xm,Jm,{[Bm]:!0}),c=T(n,xw,Ym,{[Bm]:!0}),u=he(n,Zm,Ym,{[Bm]:!0});T(n,ef,u),T(c,Xm,l),T(c,ef,u),he(c,Zm,u),T(u,xw),T(u,Xm),he(u,Zm,u),T(u,ef,u);const d=he(n,Qm,$w,{[yw]:!0});T(d,"#"),he(d,Qm,d),T(d,_A,d);const m=T(d,UA);T(m,"#"),he(m,Qm,d);const f=[[on,s],[rn,r]],p=[[on,null],[ns,a],[rn,i]];for(let g=0;g<Vl.length;g++)_n(n,Vl[g],Vm,nn,f);for(let g=0;g<_l.length;g++)_n(n,_l[g],_m,Hm,p);vo(Vm,{tld:!0,ascii:!0},e),vo(_m,{utld:!0,alpha:!0},e),_n(n,"file",pl,nn,f),_n(n,"mailto",pl,nn,f),_n(n,"http",gr,nn,f),_n(n,"https",gr,nn,f),_n(n,"ftp",gr,nn,f),_n(n,"ftps",gr,nn,f),vo(pl,{scheme:!0,ascii:!0},e),vo(gr,{slashscheme:!0,ascii:!0},e),t=t.sort((g,h)=>g[0]>h[0]?1:-1);for(let g=0;g<t.length;g++){const h=t[g][0],w=t[g][1]?{[FA]:!0}:{[BA]:!0};h.indexOf("-")>=0?w[Fm]=!0:on.test(h)?rn.test(h)?w[Wi]=!0:w[Lm]=!0:w[Im]=!0,bw(n,h,h,w)}return bw(n,"localhost",Gi,{ascii:!0}),n.jd=new Xe(Hl),{start:n,tokens:Object.assign({groups:e},kw)}}function Cw(t,e){const n=JA(e.replace(/[A-Z]/g,a=>a.toLowerCase())),o=n.length,r=[];let i=0,s=0;for(;s<o;){let a=t,l=null,c=0,u=null,d=-1,m=-1;for(;s<o&&(l=a.go(n[s]));)a=l,a.accepts()?(d=0,m=0,u=a):d>=0&&(d+=n[s].length,m++),c+=n[s].length,i+=n[s].length,s++;i-=d,s-=m,c-=d,r.push({t:u.t,v:e.slice(i-c,i),s:i-c,e:i})}return r}function JA(t){const e=[],n=t.length;let o=0;for(;o<n;){let r=t.charCodeAt(o),i,s=r<55296||r>56319||o+1===n||(i=t.charCodeAt(o+1))<56320||i>57343?t[o]:t.slice(o,o+2);e.push(s),o+=s.length}return e}function _n(t,e,n,o,r){let i;const s=e.length;for(let a=0;a<s-1;a++){const l=e[a];t.j[l]?i=t.j[l]:(i=new Xe(o),i.jr=r.slice(),t.j[l]=i),t=i}return i=new Xe(n),i.jr=r.slice(),t.j[e[s-1]]=i,i}function Ew(t){const e=[],n=[];let o=0,r="0123456789";for(;o<t.length;){let i=0;for(;r.indexOf(t[o+i])>=0;)i++;if(i>0){e.push(n.join(""));for(let s=parseInt(t.substring(o,o+i),10);s>0;s--)n.pop();o+=i}else n.push(t[o]),o++}return e}const rs={defaultProtocol:"http",events:null,format:Nw,formatHref:Nw,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function tf(t,e=null){let n=Object.assign({},rs);t&&(n=Object.assign(n,t instanceof tf?t.o:t));const o=n.ignoreTags,r=[];for(let i=0;i<o.length;i++)r.push(o[i].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=r}tf.prototype={o:rs,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const o=e!=null;let r=this.o[t];return r&&(typeof r=="object"?(r=n.t in r?r[n.t]:rs[t],typeof r=="function"&&o&&(r=r(e,n))):typeof r=="function"&&o&&(r=r(e,n.t,n)),r)},getObj(t,e,n){let o=this.o[t];return typeof o=="function"&&e!=null&&(o=o(e,n.t,n)),o},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function Nw(t){return t}function Aw(t,e){this.t="token",this.v=t,this.tk=e}Aw.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),o=t.get("format",e,this);return n&&o.length>n?o.substring(0,n)+"…":o},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t=rs.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),o=t.get("formatHref",n,this),r=t.get("tagName",n,e),i=this.toFormattedString(t),s={},a=t.get("className",n,e),l=t.get("target",n,e),c=t.get("rel",n,e),u=t.getObj("attributes",n,e),d=t.getObj("events",n,e);return s.href=o,a&&(s.class=a),l&&(s.target=l),c&&(s.rel=c),u&&Object.assign(s,u),{tagName:r,attributes:s,content:i,eventListeners:d}}};function Ul(t,e){class n extends Aw{constructor(r,i){super(r,i),this.t=t}}for(const o in e)n.prototype[o]=e[o];return n.t=t,n}const Ow=Ul("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Rw=Ul("text"),KA=Ul("nl"),Yl=Ul("url",{isLink:!0,toHref(t=rs.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==Gi&&t[1].t===Vn}}),vt=t=>new Xe(t);function WA({groups:t}){const e=t.domain.concat([Ol,Dl,Hn,Tl,Ml,jl,Pl,Il,wt,Um,Xi,Ll,zl,Fl,Ft,Hl,ts,Bl]),n=[Rl,Vn,Km,zt,Wm,Xi,es,qm,Gm,wl,vl,Qi,Zi,gl,hl,yl,bl,Sl,$l,kl,xl,Cl,El,Nl,Al],o=[Ol,Rl,Dl,Tl,Ml,jl,Pl,Il,wt,Qi,Zi,Xi,Ll,zl,Fl,es,Ft,Hl,ts,Bl],r=vt(),i=T(r,ts);K(i,o,i),K(i,t.domain,i);const s=vt(),a=vt(),l=vt();K(r,t.domain,s),K(r,t.scheme,a),K(r,t.slashscheme,l),K(s,o,i),K(s,t.domain,s);const c=T(s,Hn);T(i,Hn,c),T(a,Hn,c),T(l,Hn,c);const u=T(i,zt);K(u,o,i),K(u,t.domain,i);const d=vt();K(c,t.domain,d),K(d,t.domain,d);const m=T(d,zt);K(m,t.domain,d);const f=vt(Ow);K(m,t.tld,f),K(m,t.utld,f),T(c,Gi,f);const p=T(d,wt);T(p,wt,p),K(p,t.domain,d),K(f,t.domain,d),T(f,zt,m),T(f,wt,p);const g=T(f,Vn);K(g,t.numeric,Ow);const h=T(s,wt),y=T(s,zt);T(h,wt,h),K(h,t.domain,s),K(y,o,i),K(y,t.domain,s);const w=vt(Yl);K(y,t.tld,w),K(y,t.utld,w),K(w,t.domain,s),K(w,o,i),T(w,zt,y),T(w,wt,h),T(w,Hn,c);const v=T(w,Vn),S=vt(Yl);K(v,t.numeric,S);const C=vt(Yl),$=vt();K(C,e,C),K(C,n,$),K($,e,C),K($,n,$),T(w,Ft,C),T(S,Ft,C);const k=T(a,Vn),N=T(l,Vn),O=T(N,Ft),H=T(O,Ft);K(a,t.domain,s),T(a,zt,y),T(a,wt,h),K(l,t.domain,s),T(l,zt,y),T(l,wt,h),K(k,t.domain,C),T(k,Ft,C),T(k,es,C),K(H,t.domain,C),K(H,e,C),T(H,Ft,C);const ie=[[Qi,Zi],[hl,gl],[yl,bl],[wl,vl],[Sl,$l],[kl,xl],[Cl,El],[Nl,Al]];for(let ne=0;ne<ie.length;ne++){const[oe,ye]=ie[ne],de=T(C,oe);T($,oe,de),T(de,ye,C);const me=vt(Yl);K(de,e,me);const E=vt();K(de,n),K(me,e,me),K(me,n,E),K(E,e,me),K(E,n,E),T(me,ye,C),T(E,ye,C)}return T(r,Gi,w),T(r,Jm,KA),{start:r,tokens:kw}}function qA(t,e,n){let o=n.length,r=0,i=[],s=[];for(;r<o;){let a=t,l=null,c=null,u=0,d=null,m=-1;for(;r<o&&!(l=a.go(n[r].t));)s.push(n[r++]);for(;r<o&&(c=l||a.go(n[r].t));)l=null,a=c,a.accepts()?(m=0,d=a):m>=0&&m++,r++,u++;if(m<0)r-=u,r<o&&(s.push(n[r]),r++);else{s.length>0&&(i.push(nf(Rw,e,s)),s=[]),r-=m,u-=m;const f=d.t,p=n.slice(r-u,r);i.push(nf(f,e,p))}}return s.length>0&&i.push(nf(Rw,e,s)),i}function nf(t,e,n){const o=n[0].s,r=n[n.length-1].e,i=e.slice(o,r);return new t(i,n)}const GA=typeof console<"u"&&console&&console.warn||(()=>{}),QA="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",ce={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function ZA(){return Xe.groups={},ce.scanner=null,ce.parser=null,ce.tokenQueue=[],ce.pluginQueue=[],ce.customSchemes=[],ce.initialized=!1,ce}function Dw(t,e=!1){if(ce.initialized&&GA(`linkifyjs: already initialized - will not register custom scheme "${t}" ${QA}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
149
+ `));let m=u.props,f=typeof(m==null?void 0:m.className)=="function"?(...g)=>cl(m==null?void 0:m.className(...g),l.className):cl(m==null?void 0:m.className,l.className),p=f?{className:f}:{};return x.cloneElement(u,Object.assign({},uw(u.props,dw(Rm(l,["ref"]))),d,c,{ref:r(u.ref,c.ref)},p))}return x.createElement(i,Object.assign({},Rm(l,["ref"]),i!==x.Fragment&&c,i!==x.Fragment&&d),u)}function hA(...t){return t.every(e=>e==null)?void 0:e=>{for(let n of t)n!=null&&(typeof n=="function"?n(e):n.current=e)}}function uw(...t){if(t.length===0)return{};if(t.length===1)return t[0];let e={},n={};for(let o of t)for(let r in o)r.startsWith("on")&&typeof o[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(o[r])):e[r]=o[r];if(e.disabled||e["aria-disabled"])return Object.assign(e,Object.fromEntries(Object.keys(n).map(o=>[o,void 0])));for(let o in n)Object.assign(e,{[o](r,...i){let s=n[o];for(let a of s){if((r instanceof Event||(r==null?void 0:r.nativeEvent)instanceof Event)&&r.defaultPrevented)return;a(r,...i)}}});return e}function Om(t){var e;return Object.assign(x.forwardRef(t),{displayName:(e=t.displayName)!=null?e:t.name})}function dw(t){let e=Object.assign({},t);for(let n in e)e[n]===void 0&&delete e[n];return e}function Rm(t,e=[]){let n=Object.assign({},t);for(let o of e)o in n&&delete n[o];return n}let Dm=x.createContext(null);Dm.displayName="OpenClosedContext";var tn=(t=>(t[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t))(tn||{});function mw(){return x.useContext(Dm)}function gA({value:t,children:e}){return _.createElement(Dm.Provider,{value:t},e)}function Tm(){let t=x.useRef(!1);return Ji(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function yA(t=0){let[e,n]=x.useState(t),o=Tm(),r=x.useCallback(l=>{o.current&&n(c=>c|l)},[e,o]),i=x.useCallback(l=>!!(e&l),[e]),s=x.useCallback(l=>{o.current&&n(c=>c&~l)},[n,o]),a=x.useCallback(l=>{o.current&&n(c=>c^l)},[n]);return{flags:e,addFlag:r,hasFlag:i,removeFlag:s,toggleFlag:a}}function bA(t){let e={called:!1};return(...n)=>{if(!e.called)return e.called=!0,t(...n)}}function Mm(t,...e){t&&e.length>0&&t.classList.add(...e)}function jm(t,...e){t&&e.length>0&&t.classList.remove(...e)}function wA(t,e){let n=Ki();if(!t)return n.dispose;let{transitionDuration:o,transitionDelay:r}=getComputedStyle(t),[i,s]=[o,r].map(l=>{let[c=0]=l.split(",").filter(Boolean).map(u=>u.includes("ms")?parseFloat(u):parseFloat(u)*1e3).sort((u,d)=>d-u);return c}),a=i+s;if(a!==0){n.group(c=>{c.setTimeout(()=>{e(),c.dispose()},a),c.addEventListener(t,"transitionrun",u=>{u.target===u.currentTarget&&c.dispose()})});let l=n.addEventListener(t,"transitionend",c=>{c.target===c.currentTarget&&(e(),l())})}else e();return n.add(()=>e()),n.dispose}function vA(t,e,n,o){let r=n?"enter":"leave",i=Ki(),s=o!==void 0?bA(o):()=>{};r==="enter"&&(t.removeAttribute("hidden"),t.style.display="");let a=Lt(r,{enter:()=>e.enter,leave:()=>e.leave}),l=Lt(r,{enter:()=>e.enterTo,leave:()=>e.leaveTo}),c=Lt(r,{enter:()=>e.enterFrom,leave:()=>e.leaveFrom});return jm(t,...e.base,...e.enter,...e.enterTo,...e.enterFrom,...e.leave,...e.leaveFrom,...e.leaveTo,...e.entered),Mm(t,...e.base,...a,...c),i.nextFrame(()=>{jm(t,...e.base,...a,...c),Mm(t,...e.base,...a,...l),wA(t,()=>(jm(t,...e.base,...a),Mm(t,...e.base,...e.entered),s()))}),i.dispose}function SA({immediate:t,container:e,direction:n,classes:o,onStart:r,onStop:i}){let s=Tm(),a=iw(),l=hr(n);Ji(()=>{t&&(l.current="enter")},[t]),Ji(()=>{let c=Ki();a.add(c.dispose);let u=e.current;if(u&&l.current!=="idle"&&s.current)return c.dispose(),r.current(l.current),c.add(vA(u,o.current,l.current==="enter",()=>{c.dispose(),i.current(l.current)})),c.dispose},[n])}function Fn(t=""){return t.split(/\s+/).filter(e=>e.length>1)}let dl=x.createContext(null);dl.displayName="TransitionContext";var $A=(t=>(t.Visible="visible",t.Hidden="hidden",t))($A||{});function kA(){let t=x.useContext(dl);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}function xA(){let t=x.useContext(ml);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}let ml=x.createContext(null);ml.displayName="NestingContext";function fl(t){return"children"in t?fl(t.children):t.current.filter(({el:e})=>e.current!==null).filter(({state:e})=>e==="visible").length>0}function fw(t,e){let n=hr(t),o=x.useRef([]),r=Tm(),i=iw(),s=en((f,p=Bn.Hidden)=>{let g=o.current.findIndex(({el:h})=>h===f);g!==-1&&(Lt(p,{[Bn.Unmount](){o.current.splice(g,1)},[Bn.Hidden](){o.current[g].state="hidden"}}),i.microTask(()=>{var h;!fl(o)&&r.current&&((h=n.current)==null||h.call(n))}))}),a=en(f=>{let p=o.current.find(({el:g})=>g===f);return p?p.state!=="visible"&&(p.state="visible"):o.current.push({el:f,state:"visible"}),()=>s(f,Bn.Unmount)}),l=x.useRef([]),c=x.useRef(Promise.resolve()),u=x.useRef({enter:[],leave:[],idle:[]}),d=en((f,p,g)=>{l.current.splice(0),e&&(e.chains.current[p]=e.chains.current[p].filter(([h])=>h!==f)),e==null||e.chains.current[p].push([f,new Promise(h=>{l.current.push(h)})]),e==null||e.chains.current[p].push([f,new Promise(h=>{Promise.all(u.current[p].map(([y,w])=>w)).then(()=>h())})]),p==="enter"?c.current=c.current.then(()=>e==null?void 0:e.wait.current).then(()=>g(p)):g(p)}),m=en((f,p,g)=>{Promise.all(u.current[p].splice(0).map(([h,y])=>y)).then(()=>{var h;(h=l.current.shift())==null||h()}).then(()=>g(p))});return x.useMemo(()=>({children:o,register:a,unregister:s,onStart:d,onStop:m,wait:c,chains:u}),[a,s,o,d,m,u,c])}function CA(){}let EA=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function pw(t){var e;let n={};for(let o of EA)n[o]=(e=t[o])!=null?e:CA;return n}function NA(t){let e=x.useRef(pw(t));return x.useEffect(()=>{e.current=pw(t)},[t]),e}let AA="div",hw=lw.RenderStrategy;function OA(t,e){var n,o;let{beforeEnter:r,afterEnter:i,beforeLeave:s,afterLeave:a,enter:l,enterFrom:c,enterTo:u,entered:d,leave:m,leaveFrom:f,leaveTo:p,...g}=t,h=x.useRef(null),y=aw(h,e),w=(n=g.unmount)==null||n?Bn.Unmount:Bn.Hidden,{show:v,appear:S,initial:C}=kA(),[$,k]=x.useState(v?"visible":"hidden"),N=xA(),{register:O,unregister:H}=N;x.useEffect(()=>O(h),[O,h]),x.useEffect(()=>{if(w===Bn.Hidden&&h.current){if(v&&$!=="visible"){k("visible");return}return Lt($,{hidden:()=>H(h),visible:()=>O(h)})}},[$,h,O,H,v,w]);let ie=hr({base:Fn(g.className),enter:Fn(l),enterFrom:Fn(c),enterTo:Fn(u),entered:Fn(d),leave:Fn(m),leaveFrom:Fn(f),leaveTo:Fn(p)}),ne=NA({beforeEnter:r,afterEnter:i,beforeLeave:s,afterLeave:a}),oe=sw();x.useEffect(()=>{if(oe&&$==="visible"&&h.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,$,oe]);let ye=C&&!S,de=S&&v&&C,me=!oe||ye?"idle":v?"enter":"leave",E=yA(0),A=en(F=>Lt(F,{enter:()=>{E.addFlag(tn.Opening),ne.current.beforeEnter()},leave:()=>{E.addFlag(tn.Closing),ne.current.beforeLeave()},idle:()=>{}})),j=en(F=>Lt(F,{enter:()=>{E.removeFlag(tn.Opening),ne.current.afterEnter()},leave:()=>{E.removeFlag(tn.Closing),ne.current.afterLeave()},idle:()=>{}})),q=fw(()=>{k("hidden"),H(h)},N),D=x.useRef(!1);SA({immediate:de,container:h,classes:ie,direction:me,onStart:hr(F=>{D.current=!0,q.onStart(h,F,A)}),onStop:hr(F=>{D.current=!1,q.onStop(h,F,j),F==="leave"&&!fl(q)&&(k("hidden"),H(h))})});let P=g,L={ref:y};return de?P={...P,className:cl(g.className,...ie.current.enter,...ie.current.enterFrom)}:D.current&&(P.className=cl(g.className,(o=h.current)==null?void 0:o.className),P.className===""&&delete P.className),_.createElement(ml.Provider,{value:q},_.createElement(gA,{value:Lt($,{visible:tn.Open,hidden:tn.Closed})|E.flags},cw({ourProps:L,theirProps:P,defaultTag:AA,features:hw,visible:$==="visible",name:"Transition.Child"})))}function RA(t,e){let{show:n,appear:o=!1,unmount:r=!0,...i}=t,s=x.useRef(null),a=aw(s,e);sw();let l=mw();if(n===void 0&&l!==null&&(n=(l&tn.Open)===tn.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=x.useState(n?"visible":"hidden"),d=fw(()=>{u("hidden")}),[m,f]=x.useState(!0),p=x.useRef([n]);Ji(()=>{m!==!1&&p.current[p.current.length-1]!==n&&(p.current.push(n),f(!1))},[p,n]);let g=x.useMemo(()=>({show:n,appear:o,initial:m}),[n,o,m]);x.useEffect(()=>{if(n)u("visible");else if(!fl(d))u("hidden");else{let v=s.current;if(!v)return;let S=v.getBoundingClientRect();S.x===0&&S.y===0&&S.width===0&&S.height===0&&u("hidden")}},[n,d]);let h={unmount:r},y=en(()=>{var v;m&&f(!1),(v=t.beforeEnter)==null||v.call(t)}),w=en(()=>{var v;m&&f(!1),(v=t.beforeLeave)==null||v.call(t)});return _.createElement(ml.Provider,{value:d},_.createElement(dl.Provider,{value:g},cw({ourProps:{...h,as:x.Fragment,children:_.createElement(gw,{ref:a,...h,...i,beforeEnter:y,beforeLeave:w})},theirProps:{},defaultTag:x.Fragment,features:hw,visible:c==="visible",name:"Transition"})))}function DA(t,e){let n=x.useContext(dl)!==null,o=mw()!==null;return _.createElement(_.Fragment,null,!n&&o?_.createElement(Pm,{ref:e,...t}):_.createElement(gw,{ref:e,...t}))}let Pm=Om(RA),gw=Om(OA),TA=Om(DA),wo=Object.assign(Pm,{Child:TA,Root:Pm});const MA=/^\s*>\s$/,jA=Qr.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",Bo(this.options.HTMLAttributes,t),0]},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[YC({find:MA,type:this.type})]}}),PA=Qr.create({name:"doc",topNode:!0,content:"block+"}),IA=Qr.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",Bo(this.options.HTMLAttributes,t)]},renderText(){return`
150
+ `},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:o})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:r,storedMarks:i}=n;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:a}=o.extensionManager,l=i||r.$to.parentOffset&&r.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&l&&s){const d=l.filter(m=>a.includes(m.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),LA="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",zA="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",Im="numeric",Lm="ascii",zm="alpha",Wi="asciinumeric",qi="alphanumeric",Bm="domain",yw="emoji",BA="scheme",FA="slashscheme",Fm="whitespace";function HA(t,e){return t in e||(e[t]=[]),e[t]}function vo(t,e,n){e[Im]&&(e[Wi]=!0,e[qi]=!0),e[Lm]&&(e[Wi]=!0,e[zm]=!0),e[Wi]&&(e[qi]=!0),e[zm]&&(e[qi]=!0),e[qi]&&(e[Bm]=!0),e[yw]&&(e[Bm]=!0);for(const o in e){const r=HA(o,n);r.indexOf(t)<0&&r.push(t)}}function VA(t,e){const n={};for(const o in e)e[o].indexOf(t)>=0&&(n[o]=!0);return n}function Xe(t=null){this.j={},this.jr=[],this.jd=null,this.t=t}Xe.groups={},Xe.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let o=0;o<e.jr.length;o++){const r=e.jr[o][0],i=e.jr[o][1];if(i&&r.test(t))return i}return e.jd},has(t,e=!1){return e?t in this.j:!!this.go(t)},ta(t,e,n,o){for(let r=0;r<t.length;r++)this.tt(t[r],e,n,o)},tr(t,e,n,o){o=o||Xe.groups;let r;return e&&e.j?r=e:(r=new Xe(e),n&&o&&vo(e,n,o)),this.jr.push([t,r]),r},ts(t,e,n,o){let r=this;const i=t.length;if(!i)return r;for(let s=0;s<i-1;s++)r=r.tt(t[s]);return r.tt(t[i-1],e,n,o)},tt(t,e,n,o){o=o||Xe.groups;const r=this;if(e&&e.j)return r.j[t]=e,e;const i=e;let s,a=r.go(t);if(a?(s=new Xe,Object.assign(s.j,a.j),s.jr.push.apply(s.jr,a.jr),s.jd=a.jd,s.t=a.t):s=new Xe,i){if(o)if(s.t&&typeof s.t=="string"){const l=Object.assign(VA(s.t,o),n);vo(i,l,o)}else n&&vo(i,n,o);s.t=i}return r.j[t]=s,s}};const K=(t,e,n,o,r)=>t.ta(e,n,o,r),he=(t,e,n,o,r)=>t.tr(e,n,o,r),bw=(t,e,n,o,r)=>t.ts(e,n,o,r),T=(t,e,n,o,r)=>t.tt(e,n,o,r),nn="WORD",Hm="UWORD",ww="ASCIINUMERICAL",vw="ALPHANUMERICAL",Gi="LOCALHOST",Vm="TLD",_m="UTLD",pl="SCHEME",gr="SLASH_SCHEME",Um="NUM",Ym="WS",Jm="NL",Qi="OPENBRACE",Zi="CLOSEBRACE",hl="OPENBRACKET",gl="CLOSEBRACKET",yl="OPENPAREN",bl="CLOSEPAREN",wl="OPENANGLEBRACKET",vl="CLOSEANGLEBRACKET",Sl="FULLWIDTHLEFTPAREN",$l="FULLWIDTHRIGHTPAREN",kl="LEFTCORNERBRACKET",xl="RIGHTCORNERBRACKET",Cl="LEFTWHITECORNERBRACKET",El="RIGHTWHITECORNERBRACKET",Nl="FULLWIDTHLESSTHAN",Al="FULLWIDTHGREATERTHAN",Ol="AMPERSAND",Rl="APOSTROPHE",Dl="ASTERISK",Hn="AT",Tl="BACKSLASH",Ml="BACKTICK",jl="CARET",Vn="COLON",Km="COMMA",Pl="DOLLAR",zt="DOT",Il="EQUALS",Wm="EXCLAMATION",wt="HYPHEN",Xi="PERCENT",Ll="PIPE",zl="PLUS",Bl="POUND",es="QUERY",qm="QUOTE",Sw="FULLWIDTHMIDDLEDOT",Gm="SEMI",Bt="SLASH",ts="TILDE",Fl="UNDERSCORE",$w="EMOJI",Hl="SYM";var kw=Object.freeze({__proto__:null,ALPHANUMERICAL:vw,AMPERSAND:Ol,APOSTROPHE:Rl,ASCIINUMERICAL:ww,ASTERISK:Dl,AT:Hn,BACKSLASH:Tl,BACKTICK:Ml,CARET:jl,CLOSEANGLEBRACKET:vl,CLOSEBRACE:Zi,CLOSEBRACKET:gl,CLOSEPAREN:bl,COLON:Vn,COMMA:Km,DOLLAR:Pl,DOT:zt,EMOJI:$w,EQUALS:Il,EXCLAMATION:Wm,FULLWIDTHGREATERTHAN:Al,FULLWIDTHLEFTPAREN:Sl,FULLWIDTHLESSTHAN:Nl,FULLWIDTHMIDDLEDOT:Sw,FULLWIDTHRIGHTPAREN:$l,HYPHEN:wt,LEFTCORNERBRACKET:kl,LEFTWHITECORNERBRACKET:Cl,LOCALHOST:Gi,NL:Jm,NUM:Um,OPENANGLEBRACKET:wl,OPENBRACE:Qi,OPENBRACKET:hl,OPENPAREN:yl,PERCENT:Xi,PIPE:Ll,PLUS:zl,POUND:Bl,QUERY:es,QUOTE:qm,RIGHTCORNERBRACKET:xl,RIGHTWHITECORNERBRACKET:El,SCHEME:pl,SEMI:Gm,SLASH:Bt,SLASH_SCHEME:gr,SYM:Hl,TILDE:ts,TLD:Vm,UNDERSCORE:Fl,UTLD:_m,UWORD:Hm,WORD:nn,WS:Ym});const on=/[a-z]/,ns=new RegExp("\\p{L}","u"),Qm=new RegExp("\\p{Emoji}","u"),rn=/\d/,Zm=/\s/,xw="\r",Xm=`
151
+ `,_A="️",UA="‍",ef="";let Vl=null,_l=null;function YA(t=[]){const e={};Xe.groups=e;const n=new Xe;Vl==null&&(Vl=Ew(LA)),_l==null&&(_l=Ew(zA)),T(n,"'",Rl),T(n,"{",Qi),T(n,"}",Zi),T(n,"[",hl),T(n,"]",gl),T(n,"(",yl),T(n,")",bl),T(n,"<",wl),T(n,">",vl),T(n,"(",Sl),T(n,")",$l),T(n,"「",kl),T(n,"」",xl),T(n,"『",Cl),T(n,"』",El),T(n,"<",Nl),T(n,">",Al),T(n,"&",Ol),T(n,"*",Dl),T(n,"@",Hn),T(n,"`",Ml),T(n,"^",jl),T(n,":",Vn),T(n,",",Km),T(n,"$",Pl),T(n,".",zt),T(n,"=",Il),T(n,"!",Wm),T(n,"-",wt),T(n,"%",Xi),T(n,"|",Ll),T(n,"+",zl),T(n,"#",Bl),T(n,"?",es),T(n,'"',qm),T(n,"/",Bt),T(n,";",Gm),T(n,"~",ts),T(n,"_",Fl),T(n,"\\",Tl),T(n,"・",Sw);const o=he(n,rn,Um,{[Im]:!0});he(o,rn,o);const r=he(o,on,ww,{[Wi]:!0}),i=he(o,ns,vw,{[qi]:!0}),s=he(n,on,nn,{[Lm]:!0});he(s,rn,r),he(s,on,s),he(r,rn,r),he(r,on,r);const a=he(n,ns,Hm,{[zm]:!0});he(a,on),he(a,rn,i),he(a,ns,a),he(i,rn,i),he(i,on),he(i,ns,i);const l=T(n,Xm,Jm,{[Fm]:!0}),c=T(n,xw,Ym,{[Fm]:!0}),u=he(n,Zm,Ym,{[Fm]:!0});T(n,ef,u),T(c,Xm,l),T(c,ef,u),he(c,Zm,u),T(u,xw),T(u,Xm),he(u,Zm,u),T(u,ef,u);const d=he(n,Qm,$w,{[yw]:!0});T(d,"#"),he(d,Qm,d),T(d,_A,d);const m=T(d,UA);T(m,"#"),he(m,Qm,d);const f=[[on,s],[rn,r]],p=[[on,null],[ns,a],[rn,i]];for(let g=0;g<Vl.length;g++)_n(n,Vl[g],Vm,nn,f);for(let g=0;g<_l.length;g++)_n(n,_l[g],_m,Hm,p);vo(Vm,{tld:!0,ascii:!0},e),vo(_m,{utld:!0,alpha:!0},e),_n(n,"file",pl,nn,f),_n(n,"mailto",pl,nn,f),_n(n,"http",gr,nn,f),_n(n,"https",gr,nn,f),_n(n,"ftp",gr,nn,f),_n(n,"ftps",gr,nn,f),vo(pl,{scheme:!0,ascii:!0},e),vo(gr,{slashscheme:!0,ascii:!0},e),t=t.sort((g,h)=>g[0]>h[0]?1:-1);for(let g=0;g<t.length;g++){const h=t[g][0],w=t[g][1]?{[BA]:!0}:{[FA]:!0};h.indexOf("-")>=0?w[Bm]=!0:on.test(h)?rn.test(h)?w[Wi]=!0:w[Lm]=!0:w[Im]=!0,bw(n,h,h,w)}return bw(n,"localhost",Gi,{ascii:!0}),n.jd=new Xe(Hl),{start:n,tokens:Object.assign({groups:e},kw)}}function Cw(t,e){const n=JA(e.replace(/[A-Z]/g,a=>a.toLowerCase())),o=n.length,r=[];let i=0,s=0;for(;s<o;){let a=t,l=null,c=0,u=null,d=-1,m=-1;for(;s<o&&(l=a.go(n[s]));)a=l,a.accepts()?(d=0,m=0,u=a):d>=0&&(d+=n[s].length,m++),c+=n[s].length,i+=n[s].length,s++;i-=d,s-=m,c-=d,r.push({t:u.t,v:e.slice(i-c,i),s:i-c,e:i})}return r}function JA(t){const e=[],n=t.length;let o=0;for(;o<n;){let r=t.charCodeAt(o),i,s=r<55296||r>56319||o+1===n||(i=t.charCodeAt(o+1))<56320||i>57343?t[o]:t.slice(o,o+2);e.push(s),o+=s.length}return e}function _n(t,e,n,o,r){let i;const s=e.length;for(let a=0;a<s-1;a++){const l=e[a];t.j[l]?i=t.j[l]:(i=new Xe(o),i.jr=r.slice(),t.j[l]=i),t=i}return i=new Xe(n),i.jr=r.slice(),t.j[e[s-1]]=i,i}function Ew(t){const e=[],n=[];let o=0,r="0123456789";for(;o<t.length;){let i=0;for(;r.indexOf(t[o+i])>=0;)i++;if(i>0){e.push(n.join(""));for(let s=parseInt(t.substring(o,o+i),10);s>0;s--)n.pop();o+=i}else n.push(t[o]),o++}return e}const rs={defaultProtocol:"http",events:null,format:Nw,formatHref:Nw,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function tf(t,e=null){let n=Object.assign({},rs);t&&(n=Object.assign(n,t instanceof tf?t.o:t));const o=n.ignoreTags,r=[];for(let i=0;i<o.length;i++)r.push(o[i].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=r}tf.prototype={o:rs,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const o=e!=null;let r=this.o[t];return r&&(typeof r=="object"?(r=n.t in r?r[n.t]:rs[t],typeof r=="function"&&o&&(r=r(e,n))):typeof r=="function"&&o&&(r=r(e,n.t,n)),r)},getObj(t,e,n){let o=this.o[t];return typeof o=="function"&&e!=null&&(o=o(e,n.t,n)),o},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function Nw(t){return t}function Aw(t,e){this.t="token",this.v=t,this.tk=e}Aw.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),o=t.get("format",e,this);return n&&o.length>n?o.substring(0,n)+"…":o},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t=rs.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),o=t.get("formatHref",n,this),r=t.get("tagName",n,e),i=this.toFormattedString(t),s={},a=t.get("className",n,e),l=t.get("target",n,e),c=t.get("rel",n,e),u=t.getObj("attributes",n,e),d=t.getObj("events",n,e);return s.href=o,a&&(s.class=a),l&&(s.target=l),c&&(s.rel=c),u&&Object.assign(s,u),{tagName:r,attributes:s,content:i,eventListeners:d}}};function Ul(t,e){class n extends Aw{constructor(r,i){super(r,i),this.t=t}}for(const o in e)n.prototype[o]=e[o];return n.t=t,n}const Ow=Ul("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Rw=Ul("text"),KA=Ul("nl"),Yl=Ul("url",{isLink:!0,toHref(t=rs.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==Gi&&t[1].t===Vn}}),vt=t=>new Xe(t);function WA({groups:t}){const e=t.domain.concat([Ol,Dl,Hn,Tl,Ml,jl,Pl,Il,wt,Um,Xi,Ll,zl,Bl,Bt,Hl,ts,Fl]),n=[Rl,Vn,Km,zt,Wm,Xi,es,qm,Gm,wl,vl,Qi,Zi,gl,hl,yl,bl,Sl,$l,kl,xl,Cl,El,Nl,Al],o=[Ol,Rl,Dl,Tl,Ml,jl,Pl,Il,wt,Qi,Zi,Xi,Ll,zl,Bl,es,Bt,Hl,ts,Fl],r=vt(),i=T(r,ts);K(i,o,i),K(i,t.domain,i);const s=vt(),a=vt(),l=vt();K(r,t.domain,s),K(r,t.scheme,a),K(r,t.slashscheme,l),K(s,o,i),K(s,t.domain,s);const c=T(s,Hn);T(i,Hn,c),T(a,Hn,c),T(l,Hn,c);const u=T(i,zt);K(u,o,i),K(u,t.domain,i);const d=vt();K(c,t.domain,d),K(d,t.domain,d);const m=T(d,zt);K(m,t.domain,d);const f=vt(Ow);K(m,t.tld,f),K(m,t.utld,f),T(c,Gi,f);const p=T(d,wt);T(p,wt,p),K(p,t.domain,d),K(f,t.domain,d),T(f,zt,m),T(f,wt,p);const g=T(f,Vn);K(g,t.numeric,Ow);const h=T(s,wt),y=T(s,zt);T(h,wt,h),K(h,t.domain,s),K(y,o,i),K(y,t.domain,s);const w=vt(Yl);K(y,t.tld,w),K(y,t.utld,w),K(w,t.domain,s),K(w,o,i),T(w,zt,y),T(w,wt,h),T(w,Hn,c);const v=T(w,Vn),S=vt(Yl);K(v,t.numeric,S);const C=vt(Yl),$=vt();K(C,e,C),K(C,n,$),K($,e,C),K($,n,$),T(w,Bt,C),T(S,Bt,C);const k=T(a,Vn),N=T(l,Vn),O=T(N,Bt),H=T(O,Bt);K(a,t.domain,s),T(a,zt,y),T(a,wt,h),K(l,t.domain,s),T(l,zt,y),T(l,wt,h),K(k,t.domain,C),T(k,Bt,C),T(k,es,C),K(H,t.domain,C),K(H,e,C),T(H,Bt,C);const ie=[[Qi,Zi],[hl,gl],[yl,bl],[wl,vl],[Sl,$l],[kl,xl],[Cl,El],[Nl,Al]];for(let ne=0;ne<ie.length;ne++){const[oe,ye]=ie[ne],de=T(C,oe);T($,oe,de),T(de,ye,C);const me=vt(Yl);K(de,e,me);const E=vt();K(de,n),K(me,e,me),K(me,n,E),K(E,e,me),K(E,n,E),T(me,ye,C),T(E,ye,C)}return T(r,Gi,w),T(r,Jm,KA),{start:r,tokens:kw}}function qA(t,e,n){let o=n.length,r=0,i=[],s=[];for(;r<o;){let a=t,l=null,c=null,u=0,d=null,m=-1;for(;r<o&&!(l=a.go(n[r].t));)s.push(n[r++]);for(;r<o&&(c=l||a.go(n[r].t));)l=null,a=c,a.accepts()?(m=0,d=a):m>=0&&m++,r++,u++;if(m<0)r-=u,r<o&&(s.push(n[r]),r++);else{s.length>0&&(i.push(nf(Rw,e,s)),s=[]),r-=m,u-=m;const f=d.t,p=n.slice(r-u,r);i.push(nf(f,e,p))}}return s.length>0&&i.push(nf(Rw,e,s)),i}function nf(t,e,n){const o=n[0].s,r=n[n.length-1].e,i=e.slice(o,r);return new t(i,n)}const GA=typeof console<"u"&&console&&console.warn||(()=>{}),QA="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",ce={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function ZA(){return Xe.groups={},ce.scanner=null,ce.parser=null,ce.tokenQueue=[],ce.pluginQueue=[],ce.customSchemes=[],ce.initialized=!1,ce}function Dw(t,e=!1){if(ce.initialized&&GA(`linkifyjs: already initialized - will not register custom scheme "${t}" ${QA}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
152
152
  1. Must only contain digits, lowercase ASCII letters or "-"
153
153
  2. Cannot start or end with "-"
154
- 3. "-" cannot repeat`);ce.customSchemes.push([t,e])}function XA(){ce.scanner=YA(ce.customSchemes);for(let t=0;t<ce.tokenQueue.length;t++)ce.tokenQueue[t][1]({scanner:ce.scanner});ce.parser=WA(ce.scanner.tokens);for(let t=0;t<ce.pluginQueue.length;t++)ce.pluginQueue[t][1]({scanner:ce.scanner,parser:ce.parser});return ce.initialized=!0,ce}function of(t){return ce.initialized||XA(),qA(ce.parser.start,t,Cw(ce.scanner.start,t))}of.scan=Cw;function Tw(t,e=null,n=null){if(e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const o=new tf(n),r=of(t),i=[];for(let s=0;s<r.length;s++){const a=r[s];a.isLink&&(!e||a.t===e)&&o.check(a)&&i.push(a.toFormattedObject(o))}return i}const rf="[\0-   ᠎ -\u2029  ]",eO=new RegExp(rf),tO=new RegExp(`${rf}$`),nO=new RegExp(rf,"g");function oO(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function rO(t){return new Ke({key:new kt("autolink"),appendTransaction:(e,n,o)=>{const r=e.some(c=>c.docChanged)&&!n.doc.eq(o.doc),i=e.some(c=>c.getMeta("preventAutolink"));if(!r||i)return;const{tr:s}=o,a=pC(n.doc,[...e]);if($C(a).forEach(({newRange:c})=>{const u=gC(o.doc,c,f=>f.isTextblock);let d,m;if(u.length>1)d=u[0],m=o.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ");else if(u.length){const f=o.doc.textBetween(c.from,c.to," "," ");if(!tO.test(f))return;d=u[0],m=o.doc.textBetween(d.pos,c.to,void 0," ")}if(d&&m){const f=m.split(eO).filter(Boolean);if(f.length<=0)return!1;const p=f[f.length-1],g=d.pos+m.lastIndexOf(p);if(!p)return!1;const h=of(p).map(y=>y.toObject(t.defaultProtocol));if(!oO(h))return!1;h.filter(y=>y.isLink).map(y=>({...y,from:g+y.start+1,to:g+y.end+1})).filter(y=>o.schema.marks.code?!o.doc.rangeHasMark(y.from,y.to,o.schema.marks.code):!0).filter(y=>t.validate(y.value)).filter(y=>t.shouldAutoLink(y.value)).forEach(y=>{ay(y.from,y.to,o.doc).some(w=>w.mark.type===t.type)||s.addMark(y.from,y.to,t.type.create({href:y.href}))})}}),!!s.steps.length)return s}})}function iO(t){return new Ke({key:new kt("handleClickLink"),props:{handleClick:(e,n,o)=>{var r,i;if(o.button!==0||!e.editable)return!1;let s=o.target;const a=[];for(;s.nodeName!=="DIV";)a.push(s),s=s.parentNode;if(!a.find(m=>m.nodeName==="A"))return!1;const l=sy(e.state,t.type.name),c=o.target,u=(r=c==null?void 0:c.href)!==null&&r!==void 0?r:l.href,d=(i=c==null?void 0:c.target)!==null&&i!==void 0?i:l.target;return c&&u?(window.open(u,d),!0):!1}}})}function sO(t){return new Ke({key:new kt("handlePasteLink"),props:{handlePaste:(e,n,o)=>{const{state:r}=e,{selection:i}=r,{empty:s}=i;if(s)return!1;let a="";o.content.forEach(c=>{a+=c.textContent});const l=Tw(a,{defaultProtocol:t.defaultProtocol}).find(c=>c.isLink&&c.value===a);return!a||!l?!1:t.editor.commands.setMark(t.type,{href:l.href})}}})}function So(t,e){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(o=>{const r=typeof o=="string"?o:o.scheme;r&&n.push(r)}),!t||t.replace(nO,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}const aO=Wr.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if(typeof t=="string"){Dw(t);return}Dw(t.scheme,t.optionalSlashes)})},onDestroy(){ZA()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(t,e)=>!!So(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>!!t}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:n=>!!So(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!So(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Fo(this.options.HTMLAttributes,t),0]:["a",Fo(this.options.HTMLAttributes,{...t,href:""}),0]},addCommands(){return{setLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:o=>!!So(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,t).setMeta("preventAutolink",!0).run():!1},toggleLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:o=>!!So(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run():!1},unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[JC({find:t=>{const e=[];if(t){const{protocols:n,defaultProtocol:o}=this.options,r=Tw(t).filter(i=>i.isLink&&this.options.isAllowedUri(i.value,{defaultValidate:s=>!!So(s,n),protocols:n,defaultProtocol:o}));r.length&&r.forEach(i=>e.push({text:i.value,data:{href:i.href},index:i.start}))}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[],{protocols:e,defaultProtocol:n}=this.options;return this.options.autolink&&t.push(rO({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:o=>this.options.isAllowedUri(o,{defaultValidate:r=>!!So(r,e),protocols:e,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&t.push(iO({type:this.type})),this.options.linkOnPaste&&t.push(sO({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),t}}),lO=Qr.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Fo(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),cO=mt.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Ke({key:new kt("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:o}=e,r=[];if(!n)return null;const i=this.editor.isEmpty;return t.descendants((s,a)=>{const l=o>=a&&o<=a+s.nodeSize,c=!s.isLeaf&&na(s);if((l||!this.options.showOnlyCurrent)&&c){const u=[this.options.emptyNodeClass];i&&u.push(this.options.emptyEditorClass);const d=dt.node(a,a+s.nodeSize,{class:u.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:s,pos:a,hasAnchor:l}):this.options.placeholder});r.push(d)}return this.options.includeChildren}),we.create(t,r)}}})]}}),uO=Qr.create({name:"text",group:"inline"});function dO({placeholder:t,autofocus:e=!1,content:n=""}){return{extensions:[PA,uO,lO,aO.configure({openOnClick:!1}),cO.configure({placeholder:t,showOnlyWhenEditable:!1}),jA.configure({}),IA.configure({})],content:n,autofocus:e,editorProps:{attributes:{class:"gh-comment-content focus:outline-0","data-testid":"editor"}},parseOptions:{preserveWhitespace:"full"}}}function mO(t,e){const n=x.useRef(null),o=x.useCallback(r=>{n.current,r&&t&&t(r),n.current=r},[t,e]);return[n,o]}function fO(t){const{popup:e}=J();return(e==null?void 0:e.type)===t}function pO(t){const{t:e}=J();return x.useMemo(()=>KS(t,e),[t])}function sf(t,e=!1){const[n,o]=x.useState(e),r=x.useMemo(()=>({...dO(t)}),[t]),i=sA(r,[r]);return x.useEffect(()=>{if(i){const s=()=>{const a=!i.isEmpty;o(a)};return i.on("update",s),i.on("transaction",s),s(),()=>{i.off("update",s),i.off("transaction",s)}}},[i]),{editor:i,hasContent:n}}function hO(t,e){const n=x.useCallback(()=>{if(t.current)for(const i of Object.values(e))t.current.classList.add(...i.default.split(" ")),t.current.classList.remove(...i.outOfViewport.split(" "))},[t,e]),o=x.useCallback(i=>{if(t.current)for(const[s,a]of Object.entries(e))i[s]?(t.current.classList.add(...a.outOfViewport.split(" ")),t.current.classList.remove(...a.default.split(" "))):(t.current.classList.add(...a.default.split(" ")),t.current.classList.remove(...a.outOfViewport.split(" ")))},[t,e]),r=x.useCallback(()=>{if(t.current){const i=t.current.ownerDocument,s=i.defaultView||window;n();const a=t.current.getBoundingClientRect(),l={top:a.top<0,bottom:a.bottom>(s.innerHeight||i.documentElement.clientHeight),left:a.left<0,right:a.right>(s.innerWidth||i.documentElement.clientWidth)};o(l)}},[t]);x.useLayoutEffect(()=>{r()},[t]),x.useEffect(()=>(window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}),[])}const gO=({comment:t,submit:e,progress:n,setProgress:o,close:r,isOpen:i,editor:s,submitText:a,submitSize:l,openForm:c})=>{const{dispatchAction:u,t:d}=J();let m=null;x.useEffect(()=>{if(s&&c){const g=()=>{const h=t&&c.type==="edit"?s.getHTML()!==t.html:!s.isEmpty;c.hasUnsavedChanges!==h&&u("setCommentFormHasUnsavedChanges",{id:c.id,hasUnsavedChanges:h})};return s.on("update",g),s.on("transaction",g),g(),()=>{s.off("update",g),s.off("transaction",g)}}},[s,t,c,u]),n==="sending"&&(m=b.jsx(al,{className:"size-[24px] fill-white","data-testid":"button-spinner"}));const f=x.useCallback(g=>{if(s!=null&&s.isFocused){g.stopPropagation();return}},[s]),p=x.useCallback(async()=>{if(!(!s||s.isEmpty)){o("sending");try{await e({html:s.getHTML()})}catch{o("error");return}return r?r():(o("sent"),s.chain().clearContent().blur().run()),!1}},[o,s,e,r]);return x.useEffect(()=>{const g=h=>{if(h.metaKey||h.ctrlKey){h.key==="Enter"&&(s!=null&&s.isFocused)&&(p(),s==null||s.commands.blur());return}if(h.key==="Escape"){s!=null&&s.isFocused&&(r?r():s==null||s.commands.blur());return}};return window.addEventListener("keydown",g,{passive:!0}),()=>{window.removeEventListener("keydown",g,{passive:!0})}},[s,r,p]),b.jsxs(b.Fragment,{children:[b.jsx("div",{className:`text-md min-h-[120px] w-full rounded-lg border border-black/10 bg-white/75 p-2 pb-[68px] font-sans leading-normal transition-all delay-100 duration-150 focus:outline-0 sm:px-3 sm:text-lg dark:bg-white/10 dark:text-neutral-300 ${i?"cursor-text":"cursor-pointer"}`,"data-testid":"form-editor",children:b.jsx(GN,{editor:s,onMouseDown:f,onTouchStart:f})}),b.jsxs("div",{className:"absolute bottom-1 right-1 flex space-x-4 transition-[opacity] duration-150 sm:bottom-2 sm:right-2",children:[r&&b.jsx("button",{className:"ml-2.5 font-sans text-sm font-medium text-neutral-900/50 outline-0 transition-all hover:text-neutral-900/70 dark:text-white/60 dark:hover:text-white/75",type:"button",onClick:r,children:d("Cancel")}),b.jsxs("button",{className:`flex w-auto items-center justify-center ${l==="medium"&&"sm:min-w-[100px]"} ${l==="small"&&"sm:min-w-[64px]"} h-[40px] rounded-md bg-[var(--gh-accent-color)] px-3 py-2 text-center font-sans text-base font-medium text-white outline-0 transition-colors duration-200 hover:brightness-105 disabled:bg-black/5 disabled:text-neutral-900/30 sm:text-sm dark:disabled:bg-white/15 dark:disabled:text-white/35`,"data-testid":"submit-form-button",disabled:!s||s.isEmpty,type:"button",onClick:p,children:[m&&b.jsx("span",{className:"mr-1",children:m}),a&&b.jsx("span",{children:a})]})]})]})},yO=({show:t,name:e,expertise:n,replyingToText:o,editName:r,editExpertise:i})=>{const{t:s}=J(),a=!!o;return b.jsxs(wo,{"data-testid":"form-header",enter:"transition duration-500 delay-100 ease-in-out",enterFrom:"opacity-0 -translate-x-2",enterTo:"opacity-100 translate-x-0",leave:"transition-none duration-0",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:t,children:[b.jsxs("div",{className:"flex flex-wrap",children:[b.jsx("div",{className:"w-full font-sans text-base font-bold leading-snug text-neutral-900 sm:w-auto sm:text-sm dark:text-white/85","data-testid":"member-name",onMouseDown:r,children:e||"Anonymous"}),b.jsx("div",{className:"flex items-baseline justify-start",children:b.jsxs("button",{className:`group flex items-center justify-start whitespace-nowrap text-left font-sans text-base leading-snug text-neutral-900/50 transition duration-150 hover:text-black/75 sm:text-sm dark:text-white/60 dark:hover:text-white/75 ${!n&&"text-black/30 hover:text-black/50 dark:text-white/30 dark:hover:text-white/50"}`,"data-testid":"expertise-button",type:"button",onMouseDown:i,children:[b.jsxs("span",{children:[b.jsx("span",{className:"mx-[0.3em] hidden sm:inline",children:"·"}),n||s("Add your expertise")]}),n&&b.jsx(XS,{className:"ml-1 size-[12px] translate-x-[-6px] stroke-black/50 opacity-0 transition-all duration-100 ease-out group-hover:translate-x-0 group-hover:stroke-black/75 group-hover:opacity-100 dark:stroke-white/60 dark:group-hover:stroke-white/75"})]})})]}),a&&b.jsxs("div",{className:"mt-0.5 line-clamp-1 font-sans text-base leading-snug text-neutral-900/50 sm:text-sm dark:text-white/60","data-testid":"replying-to",children:[b.jsxs("span",{children:[s("Reply to"),":"]})," ",b.jsx("span",{className:"font-semibold text-neutral-900/60 dark:text-white/70",children:o})]})]})},af=({comment:t,submit:e,submitText:n,submitSize:o,close:r,editor:i,reduced:s,isOpen:a,openForm:l})=>{const{member:c}=J(),u=fO("addDetailsPopup"),[d,m]=x.useState("default"),f=x.useRef(null),p=c==null?void 0:c.name;(d==="sending"||p&&u)&&(a=!0);const g=h=>{if(i!=null&&i.isFocused){h.preventDefault();return}};return x.useEffect(()=>{i&&i.setEditable(!!p&&d!=="sending")},[i,p,d]),b.jsx("form",{ref:f,"data-testid":"form",onMouseDown:g,onTouchStart:g,children:b.jsx(gO,{close:r,comment:t,editor:i,isOpen:a,openForm:l,progress:d,reduced:s,setProgress:m,submit:e,submitSize:o,submitText:n})})},Mw=({editor:t,isOpen:e,reduced:n,openForm:o,children:r})=>{const{member:i,dispatchAction:s}=J(),a=i==null?void 0:i.name,l=i==null?void 0:i.expertise;let c="";e&&(c=!!(o!=null&&o.in_reply_to_snippet)?"pl-[1px] pt-[68px] sm:pl-[44px] sm:pt-[56px]":"pl-[1px] pt-[48px] sm:pl-[44px] sm:pt-[40px]");const u=x.useCallback(p=>{var g;(g=t==null?void 0:t.commands)==null||g.blur(),s("openPopup",{type:"addDetailsPopup",expertiseAutofocus:p.expertiseAutofocus??!1,callback:function(h){t&&h&&(t.setEditable(!0),t.commands.focus())}})},[t,s]),d=x.useCallback(()=>{u({expertiseAutofocus:!1})},[u]),m=x.useCallback(()=>{u({expertiseAutofocus:!0})},[u]),f=x.useCallback(()=>{if(t&&!t.isFocused){if(!a){d();return}t.commands.focus()}},[t,d,a]);return b.jsx("div",{className:`-mx-2 mt-[-10px] rounded-md transition duration-200 ${e?"cursor-default":"cursor-pointer"}`,children:b.jsxs("div",{className:"relative w-full",onClick:f,children:[b.jsx("div",{className:"pr-[1px] font-sans leading-normal dark:text-neutral-300",children:b.jsx("div",{className:`relative mb-7 w-full pl-[40px] transition-[padding] delay-100 duration-150 sm:pl-[44px] ${n&&"pl-0"} ${c}`,children:r})}),b.jsxs("div",{className:"absolute left-0 top-1 flex h-11 w-full items-start justify-start sm:h-12",children:[b.jsx("div",{className:"pointer-events-none mr-2 grow-0 sm:mr-3",children:b.jsx(gc,{member:i})}),b.jsx("div",{className:"grow-1 mt-0.5 w-full",children:b.jsx(yO,{editExpertise:m,editName:d,expertise:l,name:a,replyingToId:o==null?void 0:o.in_reply_to_id,replyingToText:o==null?void 0:o.in_reply_to_snippet,show:e})})]})]})})},bO=({comment:t,openForm:e,parent:n})=>{const{dispatchAction:o,t:r}=J(),i=x.useMemo(()=>({placeholder:r("Edit this comment"),autofocus:!1,content:t.html}),[t]),{editor:s}=sf(i);x.useEffect(()=>{s&&s.chain().focus().command(({tr:c,commands:u})=>u.setTextSelection({from:c.doc.content.size,to:c.doc.content.size})).run()},[s]);const a=x.useCallback(async({html:c})=>{await o("editComment",{comment:{id:t.id,html:c},parent:n})},[n,t,o]),l=x.useCallback(()=>{o("closeCommentForm",e.id)},[o,e]);return b.jsx("div",{className:"relative w-full",children:b.jsx(af,{close:l,comment:t,editor:s,isOpen:!0,openForm:e,reduced:ws(),submit:a,submitSize:"small",submitText:r("Save")})})},jw=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"black",...t},x.createElement("path",{d:"M8.00025 13.8739L2.46073 8.09636C1.97388 7.60989 1.65255 6.98248 1.54231 6.30312C1.43208 5.62376 1.53853 4.92694 1.84658 4.31148V4.31148C2.07887 3.84703 2.41819 3.44443 2.83659 3.13684C3.25499 2.82925 3.74049 2.62547 4.25308 2.54231C4.76567 2.45914 5.29069 2.49896 5.78488 2.65849C6.27906 2.81802 6.72827 3.09269 7.09549 3.45987L8.00025 4.36406L8.90502 3.45987C9.27224 3.09269 9.72145 2.81802 10.2156 2.65849C10.7098 2.49896 11.2348 2.45914 11.7474 2.54231C12.26 2.62547 12.7455 2.82925 13.1639 3.13684C13.5823 3.44443 13.9216 3.84703 14.1539 4.31148C14.4616 4.9267 14.5678 5.62311 14.4577 6.30208C14.3476 6.98105 14.0267 7.60817 13.5404 8.09462L8.00025 13.8739Z",strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round"})),wO=({comment:t})=>{const{dispatchAction:e,isMember:n,hasRequiredTier:o}=J(),[r,i]=x.useState(""),[s,a]=x.useState(!1),l=n&&o,c=async()=>{if(!l){e("openPopup",{type:"ctaPopup"});return}t.liked?(a(!0),await e("unlikeComment",t),a(!1)):(a(!0),await e("likeComment",t),i("animate-heartbeat"),setTimeout(()=>{i("")},400),a(!1))};return b.jsxs("button",{className:`duration-50 group flex cursor-pointer items-center font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${t.liked?"text-black/90 dark:text-white/90":"text-black/50 hover:text-black/75 dark:text-white/60 dark:hover:text-white/75"}`,"data-testid":"like-button",disabled:s,type:"button",onClick:c,children:[b.jsx(jw,{className:r+` mr-[6px] ${t.liked?"fill-black dark:fill-white stroke-black dark:stroke-white":"stroke-black/50 group-hover:stroke-black/75 dark:stroke-white/60 dark:group-hover:stroke-white/75"} ${!t.liked&&l&&"group-hover:stroke-black/75 dark:group-hover:stroke-white/75"} transition duration-50 ease-linear`}),t.count.likes]})},vO=({count:t,liked:e})=>b.jsxs("span",{className:`flex items-center font-sans text-base sm:text-sm ${e?"text-black/90 dark:text-white/90":"text-black/50 dark:text-white/60"}`,"data-testid":"like-count",children:[b.jsx(jw,{className:`mr-[6px] ${e?"fill-black stroke-black dark:fill-white dark:stroke-white":"stroke-black/50 dark:stroke-white/60"}`}),t]}),Pw=({comment:t,close:e})=>{const{dispatchAction:n,t:o,adminUrl:r}=J(),i=mp(),s=()=>{n("hideComment",t),e()},a=()=>{n("showComment",t),e()},l=t.status!=="published",c=r?`${r}#/comments/?id=is:${t.id}`:null;return b.jsxs("div",{className:"flex w-full flex-col gap-0.5",children:[l?b.jsxs("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700","data-testid":"show-button",type:"button",onClick:a,children:[b.jsx("span",{className:"hidden sm:inline",children:o("Show comment")}),b.jsx("span",{className:"sm:hidden",children:o("Show")})]}):b.jsxs("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] text-red-600 transition-colors hover:bg-neutral-100 dark:text-red-500 dark:hover:bg-neutral-700","data-testid":"hide-button",type:"button",onClick:s,children:[b.jsx("span",{className:"hidden sm:inline",children:o("Hide comment")}),b.jsx("span",{className:"sm:hidden",children:o("Hide")})]}),(i==null?void 0:i.commentModeration)&&c&&b.jsx("a",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700","data-testid":"view-in-admin-button",href:c,rel:"noopener noreferrer",target:"_blank",onClick:e,children:o("View in admin")})]})},SO=({comment:t,close:e,toggleEdit:n})=>{const{dispatchAction:o,t:r}=J(),i=()=>{o("openPopup",{type:"deletePopup",comment:t}),e()};return b.jsxs("div",{className:"flex w-full flex-col gap-0.5",children:[b.jsx("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700","data-testid":"edit",type:"button",onClick:n,children:r("Edit")}),b.jsx("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] text-red-600 transition-colors hover:bg-neutral-100 dark:text-red-500 dark:hover:bg-neutral-700","data-testid":"delete",type:"button",onClick:i,children:r("Delete")})]})},$O=({comment:t,close:e})=>{const{dispatchAction:n,t:o}=J(),r=()=>{n("openPopup",{type:"reportPopup",comment:t}),e()};return b.jsx("div",{className:"flex w-full flex-col gap-0.5",children:b.jsxs("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700",type:"button",onClick:r,children:[b.jsx("span",{className:"hidden sm:inline",children:o("Report comment")}),b.jsx("span",{className:"sm:hidden",children:o("Report")})]})})},kO=({comment:t,close:e,toggleEdit:n})=>{var u;const{member:o,isAdmin:r}=J(),i=o&&((u=t.member)==null?void 0:u.uuid)===(o==null?void 0:o.uuid),s=x.useRef(null),a=x.useRef(null);hO(a,{bottom:{default:"top-0",outOfViewport:"bottom-full mb-6"}}),x.useEffect(()=>{var f,p;const d=()=>{e()};window.addEventListener("click",d,{passive:!0});const m=(p=(f=s.current)==null?void 0:f.ownerDocument)==null?void 0:p.defaultView;return m&&m!==window&&m.addEventListener("click",d,{passive:!0}),()=>{window.removeEventListener("click",d,{passive:!0}),m&&m!==window&&m.removeEventListener("click",d,{passive:!0})}},[e]),x.useEffect(()=>{const d=m=>{m.key==="Escape"&&e()};return window.addEventListener("keydown",d,{passive:!0}),()=>{window.removeEventListener("keydown",d,{passive:!0})}},[e]);const l=d=>{d.stopPropagation()};let c=null;if(t.status==="published")i?c=b.jsx(SO,{close:e,comment:t,toggleEdit:n}):r?c=b.jsx(Pw,{close:e,comment:t}):c=b.jsx($O,{close:e,comment:t});else if(r)c=b.jsx(Pw,{close:e,comment:t});else return null;return b.jsx("div",{ref:s,className:"relative","data-testid":"comment-context-menu",onClick:l,children:b.jsx("div",{ref:a,className:"absolute z-10 min-w-min whitespace-nowrap rounded bg-white p-1 font-sans text-sm shadow-lg outline-0 sm:min-w-[80px] dark:bg-neutral-800 dark:text-white","data-testid":"comment-context-menu-inner",children:c})})},xO=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M3 12C3.82843 12 4.5 11.3284 4.5 10.5C4.5 9.67157 3.82843 9 3 9C2.17157 9 1.5 9.67157 1.5 10.5C1.5 11.3284 2.17157 12 3 12Z"}),x.createElement("path",{d:"M8 12C8.82843 12 9.5 11.3284 9.5 10.5C9.5 9.67157 8.82843 9 8 9C7.17157 9 6.5 9.67157 6.5 10.5C6.5 11.3284 7.17157 12 8 12Z"}),x.createElement("path",{d:"M13 12C13.8284 12 14.5 11.3284 14.5 10.5C14.5 9.67157 13.8284 9 13 9C12.1716 9 11.5 9.67157 11.5 10.5C11.5 11.3284 12.1716 12 13 12Z"})),lf=({comment:t,toggleEdit:e})=>{const[n,o]=x.useState(!1),r=()=>{o(s=>!s)},i=()=>{o(!1)};return b.jsxs("div",{"data-testid":"more-button",children:[b.jsx("button",{className:"outline-0",type:"button",onClick:r,children:b.jsx(xO,{className:`duration-50 gh-comments-icon gh-comments-icon-more outline-0 transition ease-linear hover:fill-black/75 dark:hover:fill-white/75 ${n?"fill-black/75 dark:fill-white/75":"fill-black/50 dark:fill-white/60"}`})}),n?b.jsx(kO,{close:i,comment:t,toggleEdit:e}):null]})},CO=({loadMore:t,count:e})=>{const{t:n}=J(),o=e===1?n("Show 1 more reply"):n("Show {amount} more replies",{amount:bs(e)}),r=n("{amount} more",{amount:bs(e)});return b.jsx("div",{className:"flex w-full items-center justify-start","data-testid":"replies-pagination",children:b.jsx("button",{className:"text-md group mb-10 ml-[48px] flex w-auto items-center px-0 pb-2 pt-0 text-left font-sans font-semibold text-neutral-700 sm:mb-12 dark:text-white ","data-testid":"reply-pagination-button",type:"button",onClick:t,children:b.jsxs("span",{className:"flex h-[40px] w-auto items-center justify-center whitespace-nowrap rounded-[6px] bg-black/5 px-4 py-2 text-center font-sans text-sm font-semibold text-neutral-700 outline-0 transition-all duration-150 hover:bg-black/10 dark:bg-white/15 dark:text-neutral-300 dark:hover:bg-white/20 dark:hover:text-neutral-100",children:["↓ ",b.jsx("span",{className:"ml-1 hidden sm:inline",children:o}),b.jsx("span",{className:"ml-1 inline sm:hidden",children:r})," "]})})})},Iw=3,EO=({comment:t})=>{const{dispatchAction:e,commentIdToScrollTo:n}=J(),o=x.useRef(new Set(t.replies.map(f=>f.id))),[r,i]=x.useState(()=>!!n&&t.replies.slice(Iw).some(f=>f.id===n)),s=t.replies.some(f=>!o.current.has(f.id)),a=r||s,l=t.count.replies>t.replies.length,c=a?t.replies:t.replies.slice(0,Iw),u=t.replies.length-c.length,d=l?t.count.replies-c.length:u,m=()=>{l&&e("loadMoreReplies",{comment:t,limit:"all"}),i(!0)};return b.jsxs("div",{children:[c.map(f=>b.jsx(Lw,{comment:f,parent:t},f.id)),d>0&&b.jsx(CO,{count:d,loadMore:m})]})},NO=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"black",width:16,height:16,viewBox:"0 0 16 16",...t},x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.3,d:"M1.333 7.206 6.539 2v3.254c3.645 0 8.461 1.432 8.461 7.81-1.757-2.994-3.58-3.905-8.46-3.905v3.254L1.332 7.206Z"})),AO=({disabled:t,isReplying:e,openReplyForm:n})=>{const{t:o,dispatchAction:r,isMember:i,hasRequiredTier:s}=J(),a=i&&s,l=()=>{if(!a){r("openPopup",{type:"ctaPopup"});return}n()};return b.jsxs("button",{className:`duration-50 group flex items-center font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${e?"text-black/90 dark:text-white/90":"text-black/50 hover:text-black/75 dark:text-white/60 dark:hover:text-white/75"}`,"data-testid":"reply-button",disabled:!!t,type:"button",onClick:l,children:[b.jsx(NO,{className:`mr-[6px] ${e?"fill-black dark:fill-white":"stroke-black/50 group-hover:stroke-black/75 dark:stroke-white/60 dark:group-hover:stroke-white/75"} duration-50 transition ease-linear`}),o("Reply")]})},OO=({openForm:t,parent:e})=>{const{postId:n,dispatchAction:o,t:r}=J(),[,i]=mO(vs),s=x.useMemo(()=>({placeholder:r("Reply to comment"),autofocus:!0}),[]),{editor:a}=sf(s),l=x.useCallback(async({html:d})=>{await o("addReply",{parent:e,reply:{post_id:n,in_reply_to_id:t.in_reply_to_id,status:"published",html:d}})},[e,n,t,o]),c=x.useCallback(()=>{o("closeCommentForm",t.id)},[o,t]),u=b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"hidden sm:inline",children:r("Add reply")}),b.jsx("span",{className:"sm:hidden",children:r("Reply")})]});return b.jsx("div",{ref:i,"data-testid":"reply-form",children:b.jsx("div",{className:"mt-[-16px] pr-2",children:b.jsx(Mw,{editor:a,isOpen:!0,openForm:t,reduced:ws(),children:b.jsx(af,{close:c,editor:a,isOpen:!0,openForm:t,reduced:ws(),submit:l,submitSize:"medium",submitText:u})})})})},Lw=({comment:t,parent:e})=>{const{commentsIsLoading:n}=J();return b.jsx(wo,{className:`${n?"animate-pulse":""}`,"data-testid":"animated-comment",enter:"transition-opacity duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",id:t.id,leave:"transition-opacity duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:!0,appear:!0,children:b.jsx(RO,{comment:t,parent:e})})},RO=({comment:t,parent:e})=>{const{dispatchAction:n,isAdmin:o}=J(),{showDeletedMessage:r,showHiddenMessage:i,showCommentContent:s}=DO(t,o),a=x.useCallback(()=>{const l={id:t.id,type:"edit",hasUnsavedChanges:!1,in_reply_to_id:t.in_reply_to_id,in_reply_to_snippet:t.in_reply_to_snippet};n("openCommentForm",l)},[t.id,n]);return r||i?b.jsx(MO,{comment:t,openEditMode:a}):s&&!i?b.jsx(TO,{comment:t,openEditMode:a,parent:e}):null},DO=(t,e)=>{const n=t.replies&&t.replies.length>0,o=t.status==="deleted",r=t.status==="hidden";return{showDeletedMessage:o&&n,showHiddenMessage:n&&r&&!e,showCommentContent:!o&&(e||t.status==="published")}},TO=({comment:t,parent:e,openEditMode:n})=>{var y;const{dispatchAction:o,openCommentForms:r,isAdmin:i,commentIdToHighlight:s}=J(),l=i&&t.status==="hidden"?"opacity-30":"",c=r.find(w=>w.id===t.id&&w.type==="edit"),u=!!c,d=r.find(w=>(w.id===t.id||w.parent_id===t.id)&&w.type==="reply"),m=d&&(!d.parent_id||d.parent_id===t.id),f=!!(d&&d.id===t.id),p=x.useCallback(async()=>{if(d&&d.id===t.id)o("closeCommentForm",d.id);else{const w={};e&&(w.in_reply_to_id=t.id,w.in_reply_to_snippet=ZS(t));const v={id:t.id,parent_id:e==null?void 0:e.id,type:"reply",hasUnsavedChanges:!1,...w};await o("openCommentForm",v)}},[t,e,d,o]),g=m||t.replies&&t.replies.length>0,h=b.jsx(gc,{member:t.member});return b.jsxs(Hw,{avatar:h,className:l,hasReplies:g,memberUuid:(y=t.member)==null?void 0:y.uuid,children:[b.jsx("div",{children:u?b.jsxs(b.Fragment,{children:[b.jsx(Bw,{className:l,comment:t}),b.jsx(bO,{comment:t,openForm:c,parent:e})]}):b.jsxs(b.Fragment,{children:[b.jsx(Bw,{className:l,comment:t}),b.jsx(zO,{className:l,html:t.html,isHighlighted:t.id===s}),b.jsx(FO,{comment:t,highlightReplyButton:f,openEditMode:n,openReplyForm:p,parent:e})]})}),b.jsx(zw,{comment:t}),m&&b.jsx(Fw,{comment:t,openForm:d})]})},MO=({comment:t,openEditMode:e})=>{const{isAdmin:n,openCommentForms:o,t:r}=J(),i=n&&t.status!=="deleted"?b.jsx(gc,{member:t.member}):b.jsx(vp,{}),s=t.replies&&t.replies.length>0,a=t.status==="hidden"?r("This comment has been hidden."):t.status==="deleted"?r("This comment has been removed."):"",l=o.find(d=>(d.id===t.id||d.parent_id===t.id)&&d.type==="reply"),c=l&&(!l.parent_id||l.parent_id===t.id),u=n&&t.status==="hidden";return b.jsxs(Hw,{avatar:i,hasReplies:s,children:[b.jsx("div",{className:"mt-[-3px] flex items-start",children:b.jsxs("div",{className:"flex h-10 flex-row items-center gap-4 pb-[8px] pr-4",children:[b.jsx("p",{className:"text-md mt-[4px] font-sans leading-normal text-neutral-900/40 sm:text-lg dark:text-white/60",children:a}),u&&b.jsx("div",{className:"mt-[4px]",children:b.jsx(lf,{comment:t,toggleEdit:e})})]})}),b.jsx(zw,{comment:t}),c&&b.jsx(Fw,{comment:t,openForm:l})]})},jO=({comment:t})=>{var o;const{member:e}=J(),n=e&&t.member&&t.member.uuid===e.uuid?e.expertise:(o=t==null?void 0:t.member)==null?void 0:o.expertise;return n?b.jsxs("span",{className:"[overflow-wrap:anywhere]",children:[b.jsx("span",{className:"mx-[0.3em] hidden sm:inline-block",children:"·"}),n]}):null},PO=({comment:t})=>{const{t:e}=J();return t.edited_at?b.jsxs("span",{children:[" (",e("edited"),")"]}):null},zw=({comment:t,className:e=""})=>t.replies&&t.replies.length>0?b.jsx("div",{className:`-ml-2 mb-4 mt-7 sm:mb-0 sm:mt-8 ${e}`,children:b.jsx(EO,{comment:t})}):null,Fw=({comment:t,openForm:e})=>b.jsx("div",{className:"my-8 sm:my-10",children:b.jsx(OO,{openForm:e,parent:t})}),IO=({comment:t})=>{const{t:e}=J(),n=GS(t,e);return b.jsx("h4",{className:"font-sans text-base font-bold leading-snug text-neutral-900 sm:text-sm dark:text-white/85",children:n})},LO=({comment:t})=>{const{comments:e,t:n,pageUrl:o}=J(),r=JS(e,t.in_reply_to_id);let i=t.in_reply_to_snippet;(!r||r.status!=="published")&&(i=`[${n("removed")}]`);const s=r&&r.status==="published",a="font-medium text-neutral-900/60 break-all transition-colors dark:text-white/70",l=`${a} hover:text-neutral-900/75 dark:hover:text-white/85`;return s?b.jsx("a",{className:l,"data-testid":"comment-in-reply-to",href:gp(o,t.in_reply_to_id),target:"_parent",children:i}):b.jsx("span",{className:a,"data-testid":"comment-in-reply-to",children:i})},Bw=({comment:t,className:e=""})=>{var c;const{member:n,t:o,pageUrl:r}=J(),i=pO(t.created_at),s=n&&t.member&&t.member.uuid===n.uuid?n.expertise:(c=t==null?void 0:t.member)==null?void 0:c.expertise,a=t.in_reply_to_id&&t.in_reply_to_snippet,l=b.jsxs("a",{className:"hover:underline",href:gp(r,t.id),target:"_parent",title:WS(t.created_at),children:[b.jsx("span",{className:"mx-[0.3em]",children:"·"}),i]});return b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:`mt-0.5 flex flex-wrap items-start sm:flex-row ${s?"flex-col":"flex-row"} ${a?"mb-0.5":"mb-2"} ${e}`,children:[b.jsx(IO,{comment:t}),b.jsx("div",{className:"flex items-baseline pr-4 font-sans text-base leading-snug text-neutral-900/50 sm:text-sm dark:text-white/60",children:b.jsxs("span",{children:[b.jsx(jO,{comment:t}),l,b.jsx(PO,{comment:t})]})})]}),a&&b.jsxs("div",{className:"mb-2 line-clamp-1 font-sans text-base leading-snug text-neutral-900/50 sm:text-sm dark:text-white/60",children:[b.jsx("span",{children:o("Replied to")}),": ",b.jsx(LO,{comment:t})]})]})},zO=({html:t,className:e="",isHighlighted:n})=>{let o=t;if(n){const s=new DOMParser().parseFromString(t,"text/html");s.querySelectorAll("p").forEach(l=>{const c=s.createElement("mark");for(c.className="animate-[highlight_2.5s_ease-out] [animation-delay:1s] bg-yellow-300/40 -my-0.5 py-0.5 dark:text-white/85 dark:bg-yellow-500/40";l.firstChild;)c.appendChild(l.firstChild);l.appendChild(c)}),o=s.body.innerHTML}const r={__html:o};return b.jsx("div",{className:`mt mb-2 flex flex-row items-center gap-4 pr-4 ${e}`,children:b.jsx("div",{dangerouslySetInnerHTML:r,className:"gh-comment-content text-md -mx-1 text-pretty rounded-md px-1 font-sans leading-normal text-neutral-900 [overflow-wrap:anywhere] sm:text-lg dark:text-white/85","data-testid":"comment-content"})})},FO=({comment:t,openReplyForm:e,highlightReplyButton:n,openEditMode:o,className:r=""})=>{var y;const{member:i,t:s,isMember:a,isAdmin:l,isCommentingDisabled:c}=J(),u=t.status==="published",d=i&&((y=t.member)==null?void 0:y.uuid)===(i==null?void 0:i.uuid),m=!c,f=!c,h=(l||a&&u)&&!(c&&d);return l&&t.status==="hidden"?b.jsxs("div",{className:`flex items-center gap-4 ${r}`,children:[b.jsx("span",{className:"font-sans text-base leading-snug text-red-600 sm:text-sm",children:s("Hidden for members")}),b.jsx(lf,{comment:t,toggleEdit:o})]}):b.jsxs("div",{className:`flex items-center gap-4 ${r}`,children:[m?b.jsx(wO,{comment:t}):b.jsx(vO,{count:t.count.likes,liked:t.liked}),f&&b.jsx(AO,{isReplying:n,openReplyForm:e}),h&&b.jsx(lf,{comment:t,toggleEdit:o})]})},BO=({hasReplies:t})=>t?b.jsx("div",{className:"mb-2 h-full w-px grow rounded bg-gradient-to-b from-neutral-900/15 from-70% to-transparent dark:from-white/20 dark:from-70%","data-testid":"replies-line"}):null,Hw=({children:t,avatar:e,hasReplies:n,className:o="",memberUuid:r=""})=>b.jsxs("div",{className:`flex w-full flex-row ${n===!0?"mb-0":"mb-7"}`,"data-member-uuid":r,"data-testid":"comment-component",children:[b.jsxs("div",{className:"mr-2 flex flex-col items-center justify-start sm:mr-3",children:[b.jsx("div",{className:`flex-0 mb-3 sm:mb-4 ${o}`,children:e}),b.jsx(BO,{hasReplies:n})]}),b.jsx("div",{className:"grow",children:t})]});var Vw={exports:{}},HO="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",VO=HO,_O=VO;function _w(){}function Uw(){}Uw.resetWarningCache=_w;var UO=function(){function t(o,r,i,s,a,l){if(l!==_O){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Uw,resetWarningCache:_w};return n.PropTypes=n,n};Vw.exports=UO();var YO=Vw.exports;const cf=At(YO);function Yw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function is(t){"@babel/helpers - typeof";return is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},is(t)}function JO(t,e){if(is(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(is(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function KO(t){var e=JO(t,"string");return is(e)=="symbol"?e:e+""}function WO(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,KO(o.key),o)}}function Jw(t,e,n){return e&&WO(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function qO(t,e){if(t==null)return{};var n={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(e.indexOf(o)!==-1)continue;n[o]=t[o]}return n}function GO(t,e){if(t==null)return{};var n,o,r=qO(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var uf="TOKEN_PLACEHOLDER",Jl="TOKEN_OPEN_TAG",df="TOKEN_CLOSE_TAG",mf="TOKEN_SELF_TAG",Kl="TOKEN_TEXT",Kw="NODE_FRAGMENT",Ww="NODE_TAG_ELEMENT",qw="NODE_VOID_ELEMENT",Gw="NODE_PLACEHOLDER",Qw="NODE_TEXT",QO=["type","children"],Je=function(){function t(e){var n=e.type,o=e.children,r=GO(e,QO);Yw(this,t),this.type=n,this.children=o||[];for(var i in r)this[i]=r[i];r.token&&(this.string=r.token.string)}return Jw(t,[{key:"appendChild",value:function(n){this.children.push(n)}},{key:"isLeaf",get:function(){return this.children.length===0}}]),t}();Je.createTagNode=function(t,e){return new Je({type:Ww,children:e,name:t.name,token:t})},Je.createFragmentNode=function(t){return new Je({type:Kw,children:t})},Je.createVoidNode=function(t){return new Je({type:qw,name:t.name,token:t})},Je.createTextNode=function(t){return new Je({type:Qw,text:t.string,token:t})},Je.createPlaceholderNode=function(t){return new Je({type:Gw,name:t.name,token:t})};var ZO=[{type:uf,regex:/{\s*(\w+)\s*}/g},{type:Jl,regex:/<(\w+)>/g},{type:df,regex:/<\/(\w+)>/g},{type:mf,regex:/<(\w+)\s*\/>/g}];function XO(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=eR(t))||e){n&&(t=n);var o=0,r=function(){};return{s:r,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(c){throw c},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
155
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,a;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return i=c.done,c},e:function(c){s=!0,a=c},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function eR(t,e){if(t){if(typeof t=="string")return Zw(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zw(t,e)}}function Zw(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function tR(t,e){var n=[],o=XO(e),r;try{for(o.s();!(r=o.n()).done;)for(var i=r.value,s=i.type,a=i.regex,l;(l=a.exec(t))!==null;)n.push({type:s,string:l[0],name:l[1],start:l.index,end:l.index+l[0].length})}catch(f){o.e(f)}finally{o.f()}n.sort(function(f,p){return f.start-p.start});var c=[],u=0;n.forEach(function(f){if(f.start===u){u=f.end;return}var p=f.start,g=t.substring(u,p);c.push({type:Kl,string:g,text:g,start:u,end:p}),u=f.end});var d=t.substring(u);d!==""&&c.push({type:Kl,string:d,start:u,end:t.length});var m=[].concat(c,n).sort(function(f,p){return f.start-p.start});return m}function nR(t,e){e||(e=ZO);var n=tR(t,e),o=new oR(n);return o.parse()}var ss="Syntax error. Please check if each open tag is closed correctly",Xw={type:"EPSILON"},oR=function(){function t(e){Yw(this,t),this.tokens=[].concat(e),this.tags=[]}return Jw(t,[{key:"parse",value:function(){var n=this.document();if(!this.predict(Xw.type))throw new Error(ss);return n}},{key:"document",value:function(){var n=this.elementOrData();return Je.createFragmentNode(n)}},{key:"element",value:function(){var n=this.openTag(),o=this.elementOrData();return this.endTag(),Je.createTagNode(n,o)}},{key:"openTag",value:function(){if(!this.predict(Jl))throw new Error(ss);return this.pushTag(this.lookahead),this.match(Jl)}},{key:"elementOrData",value:function(){var n=[];if(this.predict(Jl)&&(n.push(this.element()),n=n.concat(this.elementOrData())),this.predict(mf,Kl,uf)){var o=this.match(this.lookahead.type),r;switch(o.type){case mf:r=Je.createVoidNode(o);break;case Kl:r=Je.createTextNode(o);break;case uf:r=Je.createPlaceholderNode(o);break}n.push(r),n=n.concat(this.elementOrData())}return n}},{key:"endTag",value:function(){if(!this.predict(df))throw new Error(ss);var n=this.tags.pop();if(n.name!==this.lookahead.name)throw new Error(ss);this.match(df)}},{key:"lookahead",get:function(){return this.tokens.length===0?Xw:this.tokens[0]}},{key:"predict",value:function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return o.includes(this.lookahead.type)}},{key:"match",value:function(n){if(!this.predict(n))throw new Error(ss);var o=this.tokens.shift();return o}},{key:"pushTag",value:function(n){this.tags.push(n)}}]),t}(),rR=function t(e,n,o){var r=e.children.map(function(l,c){return _.createElement(_.Fragment,{key:o+c},t(l,n,o))});switch(e.type){case Qw:return e.text;case Kw:return _.createElement(_.Fragment,null,r);case qw:{var i=n[e.name];return typeof i=="function"?i():i||_.createElement(e.name,null)}case Ww:{var s=n[e.name];if(s===void 0)return _.createElement(e.name,null,r);if(typeof s=="function")return s(r);if(_.isValidElement(s)){if(_.Children.count(s.props.children)!==0)throw new Error("when passing an element as value, the element should not contains children");return _.cloneElement(s,{children:r})}throw new Error('Invalid mapping value for "'.concat(e.name,'". Only element or render function are accepted'))}case Gw:{var a=n[e.name];return a===void 0?(console.warn('missing "'.concat(e.name,'" in mapping')),e.string):typeof a=="function"?a():a}default:return}};function ev(t){var e=t.string,n=t.syntax,o=t.mapping,r=o===void 0?{}:o,i=t.graceful,s=i===void 0?!0:i;try{var a=nR(e,n);return rR(a,r,e)}catch(l){if(s)return console.error(l),e;throw l}}ev.propTypes={string:cf.string.isRequired,mapping:cf.object,graceful:cf.bool};const iR=()=>{const{accentColor:t,supportEmail:e,t:n}=J(),o={color:t};return b.jsxs(b.Fragment,{children:[b.jsx("h1",{className:"mb-2 text-center font-sans text-2xl font-semibold tracking-tight text-neutral-900 dark:text-white/85",children:n("Commenting disabled")}),b.jsx("p",{className:"w-full text-balance text-center text-lg leading-normal text-neutral-900 sm:px-8 dark:text-white/85",children:e?b.jsx(ev,{mapping:{a:b.jsx("a",{className:"font-semibold hover:opacity-90",href:`mailto:${e}`,style:o})},string:n("You can't post comments in this publication. <a>Contact support</a> for more information.")}):n("You can't post comments in this publication.")})]})},sR=({showCount:t,count:e})=>{const{t:n}=J();return t?e===1?b.jsx("div",{className:"text-md text-neutral-900/50 sm:text-lg dark:text-white/50","data-testid":"count",children:n("1 comment")}):b.jsx("div",{className:"text-md text-neutral-900/50 sm:text-lg dark:text-white/50","data-testid":"count",children:n("{amount} comments",{amount:bs(e)})}):null},aR=({title:t})=>{const{t:e}=J();return t===null?b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"sm:hidden",children:e("Discussion")}),b.jsx("span",{className:"hidden sm:inline",children:e("Member discussion")})]}):b.jsx(b.Fragment,{children:t})},lR=({title:t,showCount:e,count:n})=>!t&&!e&&t!==null?null:b.jsxs("div",{className:"mb-7 flex w-full items-baseline justify-between font-sans",children:[b.jsx("h2",{className:"text-[2.2rem] font-bold tracking-tight text-neutral-900 sm:text-2xl dark:text-white","data-testid":"title",children:b.jsx(aR,{title:t})}),b.jsx(sR,{count:n,showCount:e})]}),cR=({commentsCount:t})=>{const{postId:e,dispatchAction:n,t:o}=J(),r=x.useMemo(()=>({placeholder:o(t===0?"Start the conversation":"Join the discussion"),autofocus:!1}),[t]),{editor:i,hasContent:s}=sf(r),a=x.useCallback(async({html:d})=>{await n("addComment",{post_id:e,status:"published",html:d}),i==null||i.commands.clearContent()},[e,n,i]),l=x.useRef(null);x.useEffect(()=>{if(!i)return;const d=m=>{var g;if(!i||m.metaKey||m.ctrlKey)return;let f=document.activeElement;for(;f&&f.tagName==="IFRAME"&&f.contentDocument;)f=((g=f.contentDocument)==null?void 0:g.activeElement)??null;const p=f&&(f.tagName==="INPUT"||f.tagName==="TEXTAREA"||f.tagName==="IFRAME"||f.contentEditable==="true");if(m.key==="c"&&!(i!=null&&i.isFocused)&&!p){i==null||i.commands.focus(),l.current&&vs(l.current);return}};return window.addEventListener("keydown",d,{passive:!0}),()=>{window.removeEventListener("keydown",d,{passive:!0})}},[i]);const c={submitText:b.jsxs(b.Fragment,{children:[b.jsxs("span",{className:"hidden sm:inline",children:[o("Add comment")," "]}),b.jsx("span",{className:"sm:hidden",children:o("Comment")})]}),submitSize:"large",submit:a},u=(i==null?void 0:i.isFocused)||s;return b.jsx("div",{ref:l,className:"px-3 pb-2 pt-3","data-testid":"main-form",children:b.jsx(Mw,{editor:i,isOpen:u,reduced:!1,children:b.jsx(af,{editor:i,isOpen:u,reduced:!1,...c})})})},uR=()=>{const{pagination:t,dispatchAction:e,t:n}=J(),o=()=>{e("loadMoreComments",{})};if(!t)return null;const r=t.total-t.page*t.limit;if(r<=0)return null;const i=n("Load more ({amount})",{amount:bs(r)});return b.jsx("button",{className:"text-md group mb-10 flex items-center px-0 pb-2 pt-0 text-left font-sans font-semibold text-neutral-700 dark:text-white","data-testid":"pagination-component",type:"button",onClick:o,children:b.jsx("span",{className:"flex h-[40px] items-center justify-center whitespace-nowrap rounded-[6px] bg-black/5 px-4 py-2 text-center font-sans text-sm font-semibold text-neutral-700 outline-0 transition-all duration-150 hover:bg-black/10 dark:bg-white/15 dark:text-neutral-300 dark:hover:bg-white/20 dark:hover:text-neutral-100",children:i})})},yr="ghost-comments-root",dR=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},x.createElement("path",{d:"M23.25,7.311,12.53,18.03a.749.749,0,0,1-1.06,0L.75,7.311",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",fillRule:"evenodd"})),mR=()=>{var u;const{t}=J(),e=YS(),[n,o]=x.useState(!1),[r,i]=x.useState("count__likes desc, created_at desc"),s=x.useRef(null),a=[{value:"count__likes desc, created_at desc",label:t("Best")},{value:"created_at desc",label:t("Newest")},{value:"created_at asc",label:t("Oldest")}],l=d=>{i(d),e(d),o(!1)};x.useEffect(()=>{var f,p;const d=()=>{o(!1)};window.addEventListener("click",d,{passive:!0});const m=(p=(f=s.current)==null?void 0:f.ownerDocument)==null?void 0:p.defaultView;return m&&m!==window&&m.addEventListener("click",d,{passive:!0}),()=>{window.removeEventListener("click",d,{passive:!0}),m&&m!==window&&m.removeEventListener("click",d,{passive:!0})}},[]);const c=d=>{d.stopPropagation()};return b.jsxs("div",{ref:s,className:"relative z-20","data-testid":"comments-sorting-form",onClick:c,children:[b.jsxs("button",{className:"flex w-full items-center justify-between gap-2 text-sm font-medium text-neutral-900 focus-visible:outline-none dark:text-neutral-100",type:"button",onClick:()=>o(!n),children:[(u=a.find(d=>d.value===r))==null?void 0:u.label,b.jsx("span",{className:"size-2 stroke-[3px]",children:b.jsx(dR,{})})]}),n&&b.jsx("div",{className:"absolute -left-4 mt-1.5 w-36 origin-top-right rounded-md bg-white shadow-lg dark:bg-neutral-800",children:b.jsx("div",{"aria-labelledby":"options-menu","aria-orientation":"vertical",className:"py-1","data-testid":"comments-sorting-form-dropdown",role:"menu",children:a.map(d=>b.jsx("button",{className:"block w-full px-4 py-1.5 text-left text-sm text-neutral-600 transition-all hover:text-neutral-900 dark:text-neutral-200 dark:hover:text-white",role:"menuitem",type:"button",onClick:()=>l(d.value),children:d.label},d.value))})})]})};function tv(t){const e=t.defaultView;if(!(e!=null&&e.parent)||e.parent===e)return null;try{const n=e.parent.document.getElementsByTagName("iframe");for(const o of n)if(o.contentWindow===e)return o}catch{}return null}const fR=500;function nv(t,e){const n=t.clientHeight;let o=!1;const r=()=>{o||(o=!0,i.disconnect(),e())},i=new ResizeObserver(()=>{t.clientHeight!==n&&r()});i.observe(t);const s=setTimeout(r,fR);return()=>{clearTimeout(s),i.disconnect()}}const pR=()=>{const t=mp(),{pagination:e,comments:n,commentCount:o,title:r,showCount:i,commentsIsLoading:s,t:a,dispatchAction:l,commentIdToScrollTo:c,showMissingCommentNotice:u,isMember:d,isPaidOnly:m,hasRequiredTier:f,isCommentingDisabled:p}=J(),g=x.useRef(null),h=x.useCallback((k,N)=>{k.scrollIntoView({behavior:"smooth",block:"center"}),l("highlightComment",{commentId:N}),l("setScrollTarget",null)},[l]);x.useEffect(()=>{const k=document.getElementById(yr);k&&window.location.hash==="#ghost-comments"&&window.scrollY===0&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{k.scrollIntoView()})})},[]),x.useEffect(()=>{const k=window.parent;if(!k)return;const N=()=>{const O=yp(k.location.hash);if(O&&g.current){const ie=g.current.ownerDocument.getElementById(O);ie&&h(ie,O)}};return k.addEventListener("hashchange",N),()=>k.removeEventListener("hashchange",N)},[h]),x.useEffect(()=>{if(!c||s||!g.current)return;const k=g.current.ownerDocument,N=k.getElementById(c);if(!N)return;const O=tv(k);if(O)return nv(O,()=>{h(N,c)});h(N,c)},[c,s,n,h]),x.useEffect(()=>{if(!u||s)return;const k=document.getElementById(yr);if(!k)return;const N=tv(k.ownerDocument);if(N)return nv(N,()=>{vs(k)});vs(k)},[u,s]);const y=(e==null?void 0:e.total)===0,w=d&&f&&!p,v=w,S=!w&&p,C=!w&&!p,$=n.map(k=>b.jsx(Lw,{comment:k},k.id));return b.jsxs(b.Fragment,{children:[b.jsx(lR,{count:o,showCount:i,title:r}),u&&b.jsx("div",{className:"mb-6 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 font-sans text-sm text-amber-900 dark:border-amber-500/40 dark:bg-amber-500/15 dark:text-amber-100","data-testid":"missing-comment-notice",children:a("The linked comment is no longer available.")}),b.jsxs("div",{children:[v&&b.jsx(cR,{commentsCount:n.length}),S&&b.jsx("section",{className:"flex flex-col items-center py-6 sm:px-8 sm:py-10","data-testid":"commenting-disabled-box",children:b.jsx(iR,{})}),C&&b.jsx("section",{className:"flex flex-col items-center py-6 sm:px-8 sm:py-10","data-testid":"cta-box",children:b.jsx(fp,{isFirst:y,isPaid:m})})]}),o>1&&b.jsx("div",{className:"z-20 mb-7 mt-3",children:b.jsxs("span",{className:"flex items-center gap-1.5 text-sm font-medium text-neutral-900 dark:text-neutral-100",children:[a("Sort by"),": ",b.jsx(mR,{})]})}),b.jsx("div",{ref:g,className:`z-10 transition-opacity duration-100 ${s?"opacity-50":""}`,"data-testid":"comment-elements",children:$}),b.jsx(uR,{}),t!=null&&t.testFlag?b.jsx("div",{"data-testid":"this-comes-from-a-flag",style:{display:"none"}}):null]})};function hR(){return b.jsx("div",{className:"flex h-32 w-full items-center justify-center","data-testid":"loading",children:b.jsx(al,{className:"mb-6 size-12 fill-neutral-300/80 dark:fill-white/60"})})}const gR=({done:t})=>{const e=(c,u,d)=>{const m=[c,u,d].map(function(f){return f/=255,f<=.03928?f/12.92:Math.pow((f+.055)/1.055,2.4)});return m[0]*.2126+m[1]*.7152+m[2]*.0722},n=(c,u)=>{const d=e(c[0],c[1],c[2]),m=e(u[0],u[1],u[2]),f=Math.max(d,m),p=Math.min(d,m);return(f+.05)/(p+.05)},{accentColor:o,colorScheme:r}=J(),i=x.useCallback(()=>{if(r==="light")return!1;if(r==="dark")return!0;{const c=document.getElementById(yr);if(!c||!c.parentElement)return!1;const u=getComputedStyle(c.parentElement).getPropertyValue("color"),d=u.substring(u.indexOf("(")+1,u.lastIndexOf(")")).split(/,\s*/),m=parseInt(d[0]),f=parseInt(d[1]),p=parseInt(d[2]);return n([255,255,255],[m,f,p])<5}},[r,n]),[s,a]=x.useState(i()?"dark":"");x.useEffect(()=>{a(i()?"dark":"")},[r,i]),x.useEffect(()=>{const c=document.getElementById(yr);if(c!=null&&c.parentElement){const u=new MutationObserver(()=>{a(i()?"dark":"")});return u.observe(c.parentElement,{attributes:!0,attributeFilter:["style","class"]}),()=>{u.disconnect()}}},[i]);const l={"--gh-accent-color":o??"black",paddingTop:0,paddingBottom:24};return b.jsx("section",{className:"ghost-display "+s,"data-loaded":t,"data-testid":"content-box",style:l,children:t?b.jsx(pR,{}):b.jsx(hR,{})})};class yR extends x.Component{constructor(n){super(n);Nr(this,"node");Nr(this,"iframeHtml");Nr(this,"iframeHead");Nr(this,"iframeRoot");Nr(this,"handleLoad",()=>{this.setupFrameBaseStyle()});this.setNode=this.setNode.bind(this),this.node=null}componentDidMount(){this.node.addEventListener("load",this.handleLoad)}componentWillUnmount(){this.node.removeEventListener("load",this.handleLoad)}setupFrameBaseStyle(){var n,o;this.node.contentDocument&&(this.iframeHtml=this.node.contentDocument.documentElement,this.iframeHead=this.node.contentDocument.head,this.iframeRoot=this.node.contentDocument.body,this.forceUpdate(),this.props.onResize&&((o=(n=new ResizeObserver(r=>{window.requestAnimationFrame(()=>{this.props.onResize(this.iframeRoot)})}))==null?void 0:n.observe)==null||o.call(n,this.iframeRoot)),this.node.contentWindow.addEventListener("keydown",r=>{window.dispatchEvent(new KeyboardEvent("keydown",r))}))}setNode(n){this.node=n,this.props.innerRef&&(this.props.innerRef.current=n)}render(){const{children:n,head:o,title:r="",style:i={},...s}=this.props;return b.jsxs("iframe",{srcDoc:"<!DOCTYPE html>",...s,ref:this.setNode,frameBorder:"0",style:i,title:r,children:[this.iframeHead&&$m.createPortal(o,this.iframeHead),this.iframeRoot&&$m.createPortal(n,this.iframeRoot)]})}}const bR=x.forwardRef(function(e,n){return b.jsx(yR,{...e,innerRef:n})}),wR='*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 481px){.container{max-width:481px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1400px){.container{max-width:1400px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-left-4{left:-1.6rem}.bottom-1{bottom:.4rem}.bottom-full{bottom:100%}.left-0{left:0}.right-1{right:.4rem}.right-6{right:2.4rem}.top-0{top:0}.top-1{top:.4rem}.top-5{top:2rem}.z-10{z-index:10}.z-20{z-index:20}.-mx-1{margin-left:-.4rem;margin-right:-.4rem}.-mx-2{margin-left:-.8rem;margin-right:-.8rem}.-my-0\\.5{margin-top:-.2rem;margin-bottom:-.2rem}.mx-\\[0\\.3em\\]{margin-left:.3em;margin-right:.3em}.my-8{margin-top:3.2rem;margin-bottom:3.2rem}.-ml-2{margin-left:-.8rem}.mb-0{margin-bottom:0}.mb-0\\.5{margin-bottom:.2rem}.mb-1{margin-bottom:.4rem}.mb-1\\.5{margin-bottom:.6rem}.mb-10{margin-bottom:4rem}.mb-2{margin-bottom:.8rem}.mb-3{margin-bottom:1.2rem}.mb-4{margin-bottom:1.6rem}.mb-6{margin-bottom:2.4rem}.mb-7{margin-bottom:2.8rem}.mb-\\[12px\\]{margin-bottom:12px}.mb-\\[28px\\]{margin-bottom:28px}.mb-\\[8px\\]{margin-bottom:8px}.ml-1{margin-left:.4rem}.ml-2\\.5{margin-left:1rem}.ml-\\[48px\\]{margin-left:48px}.mr-1{margin-right:.4rem}.mr-2{margin-right:.8rem}.mr-\\[6px\\]{margin-right:6px}.mt-0\\.5{margin-top:.2rem}.mt-1\\.5{margin-top:.6rem}.mt-10{margin-top:4rem}.mt-3{margin-top:1.2rem}.mt-6{margin-top:2.4rem}.mt-7{margin-top:2.8rem}.mt-8{margin-top:3.2rem}.mt-\\[-10px\\]{margin-top:-10px}.mt-\\[-16px\\]{margin-top:-16px}.mt-\\[-1px\\]{margin-top:-1px}.mt-\\[-3px\\]{margin-top:-3px}.mt-\\[4px\\]{margin-top:4px}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.contents{display:contents}.hidden{display:none}.size-10{width:4rem;height:4rem}.size-12{width:4.8rem;height:4.8rem}.size-2{width:.8rem;height:.8rem}.size-5{width:2rem;height:2rem}.size-7{width:2.8rem;height:2.8rem}.size-\\[12px\\]{width:12px;height:12px}.size-\\[16px\\]{width:16px;height:16px}.size-\\[24px\\]{width:24px;height:24px}.h-10{height:4rem}.h-11{height:4.4rem}.h-32{height:12.8rem}.h-8{height:3.2rem}.h-\\[40px\\]{height:40px}.h-\\[42px\\]{height:42px}.h-\\[44px\\]{height:44px}.h-full{height:100%}.h-screen{height:100vh}.min-h-\\[120px\\]{min-height:120px}.w-36{width:14.4rem}.w-8{width:3.2rem}.w-\\[50\\%\\]{width:50%}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.min-w-min{min-width:min-content}.grow{flex-grow:1}.grow-0{flex-grow:0}.origin-top-right{transform-origin:top right}.-translate-x-2{--tw-translate-x: -.8rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[-6px\\]{--tw-translate-x: -6px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-2{--tw-translate-y: .8rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y: 1.6rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes highlight{to{background-color:transparent}}.animate-\\[highlight_2\\.5s_ease-out\\]{animation:highlight 2.5s ease-out}@keyframes heartbeat{0%,to{transform:scale(1)}50%{transform:scale(1.3)}}.animate-heartbeat{animation:heartbeat .35s ease-in-out forwards}.animate-pulse{animation:pulse 1.5s cubic-bezier(.4,0,.6,1) infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\\.5{gap:.2rem}.gap-1\\.5{gap:.6rem}.gap-2{gap:.8rem}.gap-3{gap:1.2rem}.gap-4{gap:1.6rem}.gap-9{gap:3.6rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.6rem * var(--tw-space-x-reverse));margin-left:calc(1.6rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.text-balance{text-wrap:balance}.text-pretty{text-wrap:pretty}.break-all{word-break:break-all}.rounded{border-radius:.4rem}.rounded-\\[6px\\]{border-radius:6px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.8rem}.rounded-md{border-radius:.6rem}.border{border-width:1px}.border-2{border-width:2px}.border-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}.border-black\\/10{border-color:#0000001a}.border-neutral-200{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity, 1))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.bg-\\[var\\(--gh-accent-color\\)\\]{background-color:var(--gh-accent-color)}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-black\\/5{background-color:#0000000d}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.bg-neutral-800{--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.bg-neutral-900{--tw-bg-opacity: 1;background-color:rgb(23 23 23 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\\/75{background-color:#ffffffbf}.bg-yellow-300\\/40{background-color:#fde04766}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-\\[rgba\\(0\\,0\\,0\\,0\\.2\\)\\]{--tw-gradient-from: rgba(0,0,0,.2) var(--tw-gradient-from-position);--tw-gradient-to: rgba(0, 0, 0, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-neutral-900\\/15{--tw-gradient-from: rgb(23 23 23 / .15) var(--tw-gradient-from-position);--tw-gradient-to: rgb(23 23 23 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-70\\%{--tw-gradient-from-position: 70%}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.bg-cover{background-size:cover}.bg-no-repeat{background-repeat:no-repeat}.fill-black{fill:#000}.fill-black\\/50{fill:#00000080}.fill-black\\/75{fill:#000000bf}.fill-neutral-300\\/80{fill:#d4d4d4cc}.fill-white{fill:#fff}.stroke-black{stroke:#000}.stroke-black\\/50{stroke:#00000080}.stroke-white{stroke:#fff}.stroke-\\[3px\\]{stroke-width:3px}.p-0{padding:0}.p-1{padding:.4rem}.p-2{padding:.8rem}.p-\\[28px\\]{padding:28px}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.4rem;padding-right:.4rem}.px-2{padding-left:.8rem;padding-right:.8rem}.px-2\\.5{padding-left:1rem;padding-right:1rem}.px-3{padding-left:1.2rem;padding-right:1.2rem}.px-4{padding-left:1.6rem;padding-right:1.6rem}.px-5{padding-left:2rem;padding-right:2rem}.px-8{padding-left:3.2rem;padding-right:3.2rem}.py-0\\.5{padding-top:.2rem;padding-bottom:.2rem}.py-1{padding-top:.4rem;padding-bottom:.4rem}.py-1\\.5{padding-top:.6rem;padding-bottom:.6rem}.py-2{padding-top:.8rem;padding-bottom:.8rem}.py-3{padding-top:1.2rem;padding-bottom:1.2rem}.py-6{padding-top:2.4rem;padding-bottom:2.4rem}.py-\\[14px\\]{padding-top:14px;padding-bottom:14px}.pb-2{padding-bottom:.8rem}.pb-3{padding-bottom:1.2rem}.pb-\\[68px\\]{padding-bottom:68px}.pb-\\[8px\\]{padding-bottom:8px}.pl-0{padding-left:0}.pl-\\[1px\\]{padding-left:1px}.pl-\\[40px\\]{padding-left:40px}.pr-0{padding-right:0}.pr-2{padding-right:.8rem}.pr-4{padding-right:1.6rem}.pr-\\[1px\\]{padding-right:1px}.pt-0{padding-top:0}.pt-10{padding-top:4rem}.pt-3{padding-top:1.2rem}.pt-6{padding-top:2.4rem}.pt-\\[48px\\]{padding-top:48px}.pt-\\[68px\\]{padding-top:68px}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:2.4rem}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-\\[16px\\]{font-size:16px}.text-\\[2\\.2rem\\]{font-size:2.2rem}.text-base{font-size:1.3rem}.text-lg{font-size:1.65rem}.text-md{font-size:1.5rem}.text-sm{font-size:1.4rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-9{line-height:2.25rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-snug{line-height:1.375}.tracking-tight{letter-spacing:-.018em}.text-\\[rgba\\(0\\,0\\,0\\,0\\.4\\)\\]{color:#0006}.text-amber-900{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-black\\/30{color:#0000004d}.text-black\\/50{color:#00000080}.text-black\\/90{color:#000000e6}.text-neutral-400{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity, 1))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity, 1))}.text-neutral-600{--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity, 1))}.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity, 1))}.text-neutral-900{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.text-neutral-900\\/25{color:#17171740}.text-neutral-900\\/40{color:#17171766}.text-neutral-900\\/50{color:#17171780}.text-neutral-900\\/60{color:#17171799}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-80{opacity:.8}.shadow-lg{--tw-shadow: rgba(0, 0, 0, .06) 0px 0px 0px 1px, rgba(0, 0, 0, .04) 0px 2px 2px -1px, rgba(0, 0, 0, .04) 0px 3px 3px -1px, rgba(0, 0, 0, .03) 0px 5px 5px -2px, rgba(0, 0, 0, .03) 0px 10px 10px -3px, rgba(0, 0, 0, .03) 0px 24px 24px -8px;--tw-shadow-colored: 0px 0px 0px 1px var(--tw-shadow-color), 0px 2px 2px -1px var(--tw-shadow-color), 0px 3px 3px -1px var(--tw-shadow-color), 0px 5px 5px -2px var(--tw-shadow-color), 0px 10px 10px -3px var(--tw-shadow-color), 0px 24px 24px -8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-modal{--tw-shadow: 0 3.8px 2.2px rgba(0, 0, 0, .028), 0 9.2px 5.3px rgba(0, 0, 0, .04), 0 17.3px 10px rgba(0, 0, 0, .05), 0 30.8px 17.9px rgba(0, 0, 0, .06), 0 57.7px 33.4px rgba(0, 0, 0, .072), 0 138px 80px rgba(0, 0, 0, .1);--tw-shadow-colored: 0 3.8px 2.2px var(--tw-shadow-color), 0 9.2px 5.3px var(--tw-shadow-color), 0 17.3px 10px var(--tw-shadow-color), 0 30.8px 17.9px var(--tw-shadow-color), 0 57.7px 33.4px var(--tw-shadow-color), 0 138px 80px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-0{outline-width:0px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-\\[2px\\]{--tw-backdrop-blur: blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[border-color\\]{transition-property:border-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[padding\\]{transition-property:padding;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-none{transition-property:none}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.delay-100{transition-delay:.1s}.delay-150{transition-delay:.15s}.delay-\\[400ms\\]{transition-delay:.4s}.duration-0{transition-duration:0s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:1s\\]{animation-delay:1s}.\\[overflow-wrap\\:anywhere\\]{overflow-wrap:anywhere}body,html{overflow:hidden}:host{all:initial!important}html{font-size:62.5%}body{font-size:1.5rem}.gh-comment-content p:empty:after{content:" "}.gh-comment-content a{word-break:break-word;text-decoration:underline;color:var(--gh-accent-color)}.gh-comment-content blockquote{border-left:3px solid var(--gh-accent-color);padding-left:1rem;margin:0 0 1.2rem}.gh-comment-content p{margin:0 0 1.2rem}.gh-comment-content p:last-child,.gh-comment-content blockquote:last-child{margin:0}.gh-comment-content p.is-editor-empty:first-child:before{color:#0000004d!important}.dark .gh-comment-content p.is-editor-empty:first-child:before{color:#fff6!important}.ProseMirror p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;height:0;pointer-events:none;--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}.ProseMirror *{white-space:pre-wrap;word-wrap:break-word}[contenteditable]:focus{outline:0px solid transparent}.ghost-display{display:block!important}.hover\\:bg-black\\/10:hover{background-color:#0000001a}.hover\\:bg-neutral-100:hover{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.hover\\:fill-black\\/75:hover{fill:#000000bf}.hover\\:text-black\\/50:hover{color:#00000080}.hover\\:text-black\\/75:hover{color:#000000bf}.hover\\:text-neutral-900:hover{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.hover\\:text-neutral-900\\/70:hover{color:#171717b3}.hover\\:text-neutral-900\\/75:hover{color:#171717bf}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-40:hover{opacity:.4}.hover\\:opacity-90:hover{opacity:.9}.hover\\:brightness-105:hover{--tw-brightness: brightness(1.05);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:border-neutral-300:focus{--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity, 1))}.focus\\:border-red-500:focus{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.focus\\:outline-0:focus{outline-width:0px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.disabled\\:bg-black\\/5:disabled{background-color:#0000000d}.disabled\\:text-neutral-900\\/30:disabled{color:#1717174d}.group:hover .group-hover\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\\:stroke-black\\/75{stroke:#000000bf}.group:hover .group-hover\\:opacity-100{opacity:1}.dark\\:border-amber-500\\/40:is(.dark *){border-color:#f59e0b66}.dark\\:bg-amber-500\\/15:is(.dark *){background-color:#f59e0b26}.dark\\:bg-neutral-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.dark\\:bg-white\\/10:is(.dark *){background-color:#ffffff1a}.dark\\:bg-white\\/15:is(.dark *){background-color:#ffffff26}.dark\\:bg-white\\/70:is(.dark *){background-color:#ffffffb3}.dark\\:bg-yellow-500\\/40:is(.dark *){background-color:#eab30866}.dark\\:from-white\\/20:is(.dark *){--tw-gradient-from: rgb(255 255 255 / .2) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\\:from-70\\%:is(.dark *){--tw-gradient-from-position: 70%}.dark\\:fill-white:is(.dark *){fill:#fff}.dark\\:fill-white\\/60:is(.dark *){fill:#fff9}.dark\\:fill-white\\/75:is(.dark *){fill:#ffffffbf}.dark\\:stroke-black\\/60:is(.dark *){stroke:#0009}.dark\\:stroke-white:is(.dark *){stroke:#fff}.dark\\:stroke-white\\/60:is(.dark *){stroke:#fff9}.dark\\:text-\\[rgba\\(255\\,255\\,255\\,0\\.5\\)\\]:is(.dark *){color:#ffffff80}.dark\\:text-\\[rgba\\(255\\,255\\,255\\,0\\.85\\)\\]:is(.dark *){color:#ffffffd9}.dark\\:text-amber-100:is(.dark *){--tw-text-opacity: 1;color:rgb(254 243 199 / var(--tw-text-opacity, 1))}.dark\\:text-neutral-100:is(.dark *){--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity, 1))}.dark\\:text-neutral-200:is(.dark *){--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity, 1))}.dark\\:text-neutral-300:is(.dark *){--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity, 1))}.dark\\:text-neutral-400:is(.dark *){--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity, 1))}.dark\\:text-red-500:is(.dark *){--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.dark\\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\\:text-white\\/30:is(.dark *){color:#ffffff4d}.dark\\:text-white\\/50:is(.dark *){color:#ffffff80}.dark\\:text-white\\/60:is(.dark *){color:#fff9}.dark\\:text-white\\/70:is(.dark *){color:#ffffffb3}.dark\\:text-white\\/85:is(.dark *){color:#ffffffd9}.dark\\:text-white\\/90:is(.dark *){color:#ffffffe6}.dark\\:hover\\:bg-neutral-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity, 1))}.dark\\:hover\\:bg-white\\/20:hover:is(.dark *){background-color:#fff3}.dark\\:hover\\:fill-white\\/75:hover:is(.dark *){fill:#ffffffbf}.dark\\:hover\\:text-neutral-100:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity, 1))}.dark\\:hover\\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\\:hover\\:text-white\\/50:hover:is(.dark *){color:#ffffff80}.dark\\:hover\\:text-white\\/75:hover:is(.dark *){color:#ffffffbf}.dark\\:hover\\:text-white\\/85:hover:is(.dark *){color:#ffffffd9}.dark\\:disabled\\:bg-white\\/15:disabled:is(.dark *){background-color:#ffffff26}.dark\\:disabled\\:text-white\\/35:disabled:is(.dark *){color:#ffffff59}.group:hover .dark\\:group-hover\\:stroke-white\\/75:is(.dark *){stroke:#ffffffbf}@media (min-width: 481px){.sm\\:bottom-2{bottom:.8rem}.sm\\:right-2{right:.8rem}.sm\\:right-8{right:3.2rem}.sm\\:top-9{top:3.6rem}.sm\\:my-10{margin-top:4rem;margin-bottom:4rem}.sm\\:mb-0{margin-bottom:0}.sm\\:mb-12{margin-bottom:4.8rem}.sm\\:mb-4{margin-bottom:1.6rem}.sm\\:mr-3{margin-right:1.2rem}.sm\\:mt-8{margin-top:3.2rem}.sm\\:block{display:block}.sm\\:inline-block{display:inline-block}.sm\\:inline{display:inline}.sm\\:hidden{display:none}.sm\\:h-12{height:4.8rem}.sm\\:h-auto{height:auto}.sm\\:w-\\[500px\\]{width:500px}.sm\\:w-\\[720px\\]{width:720px}.sm\\:w-auto{width:auto}.sm\\:w-fit{width:fit-content}.sm\\:min-w-\\[100px\\]{min-width:100px}.sm\\:min-w-\\[64px\\]{min-width:64px}.sm\\:min-w-\\[80px\\]{min-width:80px}.sm\\:flex-row{flex-direction:row}.sm\\:justify-normal{justify-content:normal}.sm\\:rounded-xl{border-radius:1.2rem}.sm\\:p-0{padding:0}.sm\\:p-8{padding:3.2rem}.sm\\:px-3{padding-left:1.2rem;padding-right:1.2rem}.sm\\:px-8{padding-left:3.2rem;padding-right:3.2rem}.sm\\:py-10{padding-top:4rem;padding-bottom:4rem}.sm\\:pl-0{padding-left:0}.sm\\:pl-\\[44px\\]{padding-left:44px}.sm\\:pr-10{padding-right:4rem}.sm\\:pr-4{padding-right:1.6rem}.sm\\:pt-0{padding-top:0}.sm\\:pt-\\[40px\\]{padding-top:40px}.sm\\:pt-\\[4vmin\\]{padding-top:4vmin}.sm\\:pt-\\[56px\\]{padding-top:56px}.sm\\:text-left{text-align:left}.sm\\:text-2xl{font-size:2.4rem}.sm\\:text-lg{font-size:1.65rem}.sm\\:text-sm{font-size:1.4rem}}',ov=_.forwardRef(function({children:e,onResize:n,style:o,title:r},i){const s=b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:wR}}),b.jsx("meta",{content:"width=device-width, initial-scale=1.0, maximum-scale=1.0",name:"viewport"})]});return b.jsx(bR,{ref:i,head:s,style:o,title:r,onResize:n,children:e})}),vR=_.forwardRef(function({children:e,style:n,title:o},r){const[i,s]=x.useState(n),a=x.useCallback(l=>{s(c=>({...c,height:`${l.scrollHeight}px`}))},[]);return b.jsx(ov,{ref:r,style:i,title:o,onResize:a,children:e})}),SR=_.forwardRef(function({children:e},n){const o={width:"100%",height:"400px"};return b.jsx(vR,{ref:n,style:o,title:"comments-frame",children:e})}),$R=({children:t,title:e})=>{const n={zIndex:"3999999",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",overflow:"hidden"};return b.jsx(ov,{style:n,title:e,children:t})},kR=({show:t,children:e,title:n,callback:o})=>{const{dispatchAction:r}=J(),i=()=>{r("closePopup",{}),o&&o(!1)};return x.useEffect(()=>{const s=a=>{a.key==="Escape"&&i()};return window.addEventListener("keydown",s,{passive:!0}),()=>{window.removeEventListener("keydown",s,{passive:!0})}}),b.jsx(wo,{appear:!0,show:t,children:b.jsx($R,{title:n,children:b.jsx("div",{children:b.jsx(wo.Child,{enter:"transition duration-200 linear",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition duration-200 linear",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:b.jsx("div",{className:"to-rgba(0,0,0,0.1) fixed left-0 top-0 flex h-screen w-screen justify-center overflow-hidden bg-gradient-to-b from-[rgba(0,0,0,0.2)] pt-0 backdrop-blur-[2px] sm:pt-[4vmin]",onMouseDown:i,children:b.jsx(wo.Child,{enter:"transition duration-200 delay-150 linear",enterFrom:"translate-y-4 opacity-0",enterTo:"translate-y-0 opacity-100",leave:"transition duration-200 linear",leaveFrom:"translate-y-0 opacity-100",leaveTo:"translate-y-4 opacity-0",children:e})})})})})})},xR=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"gh-portal-closeicon",alt:"Close",...t},x.createElement("defs",null,x.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px !important;}")),x.createElement("path",{className:"a",d:"M.75 23.249l22.5-22.5M23.25 23.249L.75.749"})),Wl=({close:t})=>b.jsx("button",{className:"absolute right-6 top-5 opacity-30 transition-opacity duration-100 ease-out hover:opacity-40 sm:right-8 sm:top-9",type:"button",onClick:t,children:b.jsx(xR,{className:"size-5 p-1 pr-0"})}),CR=t=>{const e=x.useRef(null),n=x.useRef(null),{dispatchAction:o,member:r,accentColor:i,t:s}=J(),[a,l]=x.useState(r.name??""),[c,u]=x.useState(r.expertise??""),d=50;let m=d;r.expertise&&(m-=r.expertise.length);const[f,p]=x.useState(m),[g,h]=x.useState({name:"",expertise:""}),y=$=>{$.stopPropagation()},w=$=>{o("closePopup",{}),t.callback($)},v=async()=>{var $;a.trim()!==""?(await o("updateMember",{name:a,expertise:c}),w(!0)):(h({name:s("Enter your name"),expertise:""}),l(""),($=e.current)==null||$.focus())};x.useEffect(()=>{if(!ws()){const $=setTimeout(()=>{var k,N;t.expertiseAutofocus?(k=n.current)==null||k.focus():(N=e.current)==null||N.focus()},200);return()=>{clearTimeout($)}}},[e,n,t.expertiseAutofocus]);const S=()=>{const $=O=>b.jsx(wo,{enter:"transition duration-200 delay-[400ms] ease-out",enterFrom:"opacity-0 translate-y-2",enterTo:"opacity-100 translate-y-0",leave:"transition duration-200 ease-in",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-2",appear:!0,children:b.jsxs("div",{className:"flex flex-row items-center justify-start gap-3 pr-4",children:[b.jsx("div",{className:"size-10 rounded-full border-2 border-white bg-cover bg-no-repeat",style:{backgroundImage:`url(${O.avatar})`}}),b.jsxs("div",{className:"flex flex-col items-start justify-center",children:[b.jsx("div",{className:"font-sans text-base font-semibold tracking-tight text-white",children:O.name}),b.jsx("div",{className:"font-sans text-sm tracking-tight text-neutral-400",children:O.expertise})]})]})},O.name),k=[],N=[{avatar:"https://randomuser.me/api/portraits/men/32.jpg",name:"James Fletcher",expertise:s("Full-time parent")},{avatar:"https://randomuser.me/api/portraits/women/30.jpg",name:"Naomi Schiff",expertise:s("Founder @ Acme Inc")},{avatar:"https://randomuser.me/api/portraits/men/4.jpg",name:"Franz Tost",expertise:s("Neurosurgeon")},{avatar:"https://randomuser.me/api/portraits/women/51.jpg",name:"Katrina Klosp",expertise:s("Local resident")}];for(let O=0;O<N.length;O++)k.push($(N[O]));return k},C=dp(s("{amount} characters left"),"{amount}",()=>b.jsx("b",{children:f}));return b.jsx("div",{className:"shadow-modal relative h-screen w-screen overflow-hidden rounded-none bg-white p-[28px] text-center sm:h-auto sm:w-[720px] sm:rounded-xl sm:p-0","data-testid":"profile-modal",onMouseDown:y,children:b.jsxs("div",{className:"flex",children:[b.jsx("div",{className:"hidden w-[50%] flex-col items-center justify-center bg-neutral-800 sm:block sm:p-8",children:b.jsx("div",{className:"mt-[-1px] flex flex-col gap-9 text-left",children:S()})}),b.jsxs("div",{className:"p-0 sm:p-8",children:[b.jsxs("h1",{className:"mb-1 text-center font-sans text-2xl font-bold tracking-tight text-black sm:text-left",children:[s("Complete your profile"),b.jsx("span",{className:"hidden sm:inline",children:"."})]}),b.jsx("p",{className:"text-md pr-0 text-center font-sans leading-snug text-neutral-500 sm:pr-10 sm:text-left",children:s("Add context to your comment, share your name and expertise to foster a healthy discussion.")}),b.jsxs("section",{className:"mt-8 text-left",children:[b.jsxs("div",{className:"mb-2 flex flex-row justify-between",children:[b.jsx("label",{className:"font-sans text-base font-semibold",htmlFor:"comments-name",children:s("Name")}),b.jsx(wo,{enter:"transition duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition duration-100 ease-out",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:!!g.name,children:b.jsx("div",{className:"font-sans text-sm text-red-500",children:g.name})})]}),b.jsx("input",{ref:e,className:`flex h-[42px] w-full items-center rounded border border-neutral-200 px-3 font-sans text-[16px] outline-0 transition-[border-color] duration-200 focus:border-neutral-300 ${g.name&&"border-red-500 focus:border-red-500"}`,"data-testid":"name-input",id:"comments-name",maxLength:64,name:"name",placeholder:s("Jamie Larson"),type:"text",value:a,onChange:$=>{l($.currentTarget.value)},onKeyDown:$=>{$.key==="Enter"&&(l($.currentTarget.value),v().catch(console.error))}}),b.jsxs("div",{className:"mb-2 mt-6 flex flex-row justify-between",children:[b.jsx("label",{className:"font-sans text-base font-semibold",htmlFor:"comments-name",children:s("Expertise")}),b.jsx("div",{className:`font-sans text-base text-neutral-400 ${f===0&&"text-red-500"}`,children:C})]}),b.jsx("input",{ref:n,className:`flex h-[42px] w-full items-center rounded border border-neutral-200 px-3 font-sans text-[16px] outline-0 transition-[border-color] duration-200 focus:border-neutral-300 ${f===0&&"border-red-500 focus:border-red-500"}`,"data-testid":"expertise-input",id:"comments-expertise",maxLength:d,name:"expertise",placeholder:s("Head of Marketing at Acme, Inc"),type:"text",value:c,onChange:$=>{const k=$.currentTarget.value;p(d-k.length),u(k)},onKeyDown:$=>{$.key==="Enter"&&(u($.currentTarget.value),v().catch(console.error))}}),b.jsx("button",{className:"text-md mt-10 flex h-[42px] w-full items-center justify-center rounded-md px-8 font-sans font-semibold text-white opacity-100 transition-opacity duration-200 ease-linear hover:opacity-90","data-testid":"save-button",style:{backgroundColor:i??"#000000"},type:"button",onClick:()=>{v().catch(console.error)},children:s("Save")})]})]}),b.jsx(Wl,{close:()=>w(!1)})]})})},ER=()=>{const{dispatchAction:t,isMember:e,isPaidOnly:n}=J(),o=s=>{s.stopPropagation()},r=()=>{t("closePopup",{})},i=!e;return b.jsx("div",{className:"shadow-modal relative h-screen w-screen rounded-none bg-white p-[28px] text-center sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left",onClick:r,onMouseDown:o,children:b.jsxs("div",{className:"flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0",children:[b.jsx("div",{className:"flex flex-col items-center pb-3 pt-6","data-testid":"cta-box",children:b.jsx(fp,{isFirst:i,isPaid:n})}),b.jsx(Wl,{close:r})]})})},rv=t=>x.createElement("svg",{width:"26px",height:"26px",viewBox:"-1 -1 26 26",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...t},x.createElement("g",{id:"check-circle",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},x.createElement("path",{className:"animated-check-circle",d:"M19.6004116,2.71490714 C17.5353801,1.0196018 14.8927356,0 12,0 C5.38938053,0 0,5.38938053 0,12 C0,18.6106195 5.38938053,24 12,24 C18.6106195,24 24,18.6106195 24,12 C24,9.71681416 23.3628319,7.59292035 22.2743363,5.78761062 L11.0442478,17.0442478 L5.49557522,11.4955752",id:"Shape",stroke:"#FFFFFF",strokeWidth:2}))),NR={addDetailsPopup:CR,reportPopup:({comment:t})=>{const{dispatchAction:e,t:n}=J(),[o,r]=x.useState("default");let i="bg-red-600";o==="sent"&&(i="bg-green-600");let s=n("Report");const a=s;o==="sending"?s=n("Sending"):o==="sent"&&(s=n("Sent"));const l=b.jsx(al,{className:"mr-2 size-[24px] fill-white"}),c=b.jsx(rv,{className:"mr-2 size-[16px]"});let u=null;o==="sending"?u=l:o==="sent"&&(u=c);const d=p=>{p.stopPropagation()},m=()=>{e("closePopup",{})},f=p=>{p.stopPropagation(),r("sending"),setTimeout(()=>{r("sent"),e("reportComment",t),setTimeout(()=>{m()},750)},1e3)};return b.jsx("div",{className:"shadow-modal relative h-screen w-screen rounded-none bg-white p-[28px] text-center sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left",onMouseDown:d,children:b.jsxs("div",{className:"flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0",children:[b.jsx("h1",{className:"mb-1.5 font-sans text-[2.2rem] font-bold tracking-tight text-black",children:b.jsx("span",{children:n("Report this comment?")})}),b.jsx("p",{className:"text-md px-4 font-sans leading-9 text-black sm:pl-0 sm:pr-4",children:n("Your request will be sent to the owner of this site.")}),b.jsxs("div",{className:"mt-auto flex flex-col items-center justify-start gap-4 sm:mt-8 sm:flex-row",children:[b.jsxs("button",{className:`text-md flex h-[44px] w-full items-center justify-center rounded-md px-4 font-sans font-medium text-white transition duration-200 ease-linear sm:w-fit ${i} opacity-100 hover:opacity-90`,style:{backgroundColor:i??"#000000"},type:"button",onClick:f,children:[b.jsxs("span",{className:"invisible whitespace-nowrap",children:[a,b.jsx("br",{}),b.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[l,n("Sending")]}),b.jsx("br",{}),b.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[c,n("Sent")]})]}),b.jsxs("span",{className:"absolute flex h-[44px] items-center justify-center whitespace-nowrap",children:[u,s]})]}),b.jsx("button",{className:"text-md h-[44px] w-full px-2 font-sans font-medium text-neutral-500 sm:w-fit dark:text-neutral-400",type:"button",onClick:m,children:n("Cancel")})]}),b.jsx(Wl,{close:m})]})})},ctaPopup:ER,deletePopup:({comment:t})=>{const{dispatchAction:e,t:n}=J(),[o,r]=x.useState("default"),[i,s]=x.useState(!1);let a="bg-red-600";o==="sent"&&(a="bg-green-600");let l=n("Delete");const c=l;o==="sending"?l=n("Deleting"):o==="sent"&&(l=n("Deleted"));const u=b.jsx(al,{className:"mr-2 size-[24px] fill-white"}),d=b.jsx(rv,{className:"mr-2 size-[16px]"});let m=null;o==="sending"?m=u:o==="sent"&&(m=d);const f=h=>{h.stopPropagation()},p=()=>{e("closePopup",{})},g=h=>{h.stopPropagation(),!i&&(s(!0),r("sending"),setTimeout(()=>{r("sent"),e("deleteComment",t),setTimeout(()=>{p()},750)},1e3))};return b.jsx("div",{className:"shadow-modal relative h-screen w-screen rounded-none bg-white p-[28px] text-center sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left","data-testid":"delete-popup",onMouseDown:f,children:b.jsxs("div",{className:"flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0",children:[b.jsx("h1",{className:"mb-1.5 font-sans text-[2.2rem] font-bold tracking-tight text-black",children:b.jsx("span",{children:n("Are you sure?")})}),b.jsx("p",{className:"text-md px-4 font-sans leading-9 text-black sm:pl-0 sm:pr-4",children:n("Once deleted, this comment can’t be recovered.")}),b.jsxs("div",{className:"mt-auto flex flex-col items-center justify-start gap-4 sm:mt-8 sm:flex-row",children:[b.jsxs("button",{className:`text-md flex h-[44px] w-full items-center justify-center rounded-md px-4 font-sans font-medium text-white transition duration-200 ease-linear sm:w-fit ${a} opacity-100 hover:opacity-90`,"data-testid":"delete-popup-confirm",disabled:i,type:"button",onClick:g,children:[b.jsxs("span",{className:"invisible whitespace-nowrap",children:[c,b.jsx("br",{}),b.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[u,n("Deleting")]}),b.jsx("br",{}),b.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[d,n("Deleted")]})]}),b.jsxs("span",{className:"absolute flex h-[44px] items-center justify-center whitespace-nowrap",children:[m,l]})]}),b.jsx("button",{className:"text-md h-[44px] w-full px-2 font-sans font-medium text-neutral-500 sm:w-fit dark:text-neutral-400",type:"button",onClick:p,children:n("Cancel")})]}),b.jsx(Wl,{close:p})]})})}},AR=()=>{const{popup:t}=J(),[e,n]=x.useState(t);if(x.useEffect(()=>{if(t!==null&&n(t),t===null){const a=setTimeout(()=>{n(null)},250);return()=>{clearTimeout(a)}}},[t,n]),!e||!e.type)return null;const{type:o,...r}=t??e,i=NR[o];if(!i)return console.warn("Unknown popup of type ",o),null;const s=t===e;return b.jsx(b.Fragment,{children:b.jsx(kR,{callback:r.callback,show:s,title:o,children:b.jsx(i,{...r})})})};var br={exports:{}};const OR={"{amount} characters left":"{amount} karakters oor","{amount} comments":"{amount} kommentaar","{amount} hrs ago":"{amount} ure gelede","{amount} mins ago":"{amount} minute gelede","{amount} more":"{amount} meer","1 comment":"1 kommentaar","Add comment":"Voeg kommentaar by","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Voeg konteks by jou kommentaar, deel jou naam en kundigheid om 'n gesonde bespreking te bevorder.","Add reply":"Voeg antwoord by","Add your expertise":"","Already a member?":"Reeds 'n lid?",Anonymous:"Anoniem","Are you sure?":"","Become a member of {publication} to start commenting.":"Word 'n lid van {publication} om kommentaar te lewer.","Become a paid member of {publication} to start commenting.":"Word 'n betaalde lid van {publication} om kommentaar te lewer.",Best:"",Cancel:"Kanselleer",Comment:"Kommentaar","Commenting disabled":"","Complete your profile":"Voltooi jou profiel",Delete:"Skrap",Deleted:"","Deleted member":"Geskrapte lid",Deleting:"",Discussion:"Bespreking",Edit:"Redigeer","Edit this comment":"Redigeer hierdie kommentaar",edited:"geredigeer","Enter your name":"Voer jou naam in",Expertise:"Kundigheid","Founder @ Acme Inc":"Stigter @ Acme Inc","Full-time parent":"Voltydse ouer","Head of Marketing at Acme, Inc":"Hoof van Bemarking by Acme, Inc","Hidden for members":"",Hide:"Versteek","Hide comment":"Versteek kommentaar","Jamie Larson":"Jamie Larson","Join the discussion":"Sluit aan by die bespreking","Just now":"Sopas","Load more ({amount})":"","Local resident":"Plaaslike inwoner","Member discussion":"Lidmaat bespreking",Name:"Naam",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Een uur gelede","One min ago":"Een minuut gelede",removed:"","Replied to":"",Reply:"Antwoord","Reply to":"","Reply to comment":"Antwoord op kommentaar",Report:"Rapporteer","Report comment":"Rapporteer kommentaar","Report this comment?":"Rapporteer hierdie kommentaar?",Save:"Stoor",Sending:"Besig om te stuur",Sent:"Gestuur",Show:"Wys","Show {amount} more replies":"Wys {amount} meer antwoorde","Show 1 more reply":"Wys nog 1 antwoord","Show comment":"Wys kommentaar","Sign in":"Teken in","Sign up now":"Sluit nou aan","Sort by":"","Start the conversation":"Begin die gesprek","The linked comment is no longer available.":"","This comment has been hidden.":"Hierdie kommentaar is weggesteek.","This comment has been removed.":"Hierdie kommentaar is verwyder.","Upgrade now":"Gradeer nou op","View in admin":"",Yesterday:"Gister","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Jou versoek sal aan die eienaar van hierdie webwerf gestuur word."},RR={"{amount} characters left":"الحروف المتبقية : {amount}","{amount} comments":"{amount} تعليق/ات","{amount} hrs ago":"منذ {amount} ساعات","{amount} mins ago":"منذ {amount} دقيقة","{amount} more":"{amount} المزيد","1 comment":"تعليق واحد","Add comment":"اضف تعليق","Add context to your comment, share your name and expertise to foster a healthy discussion.":"قم بإضافة سياق لتعليقك، شارك اسمك و مجال خبرتك لكي نرعى محادثة مثمرة","Add reply":"ردّ","Add your expertise":"","Already a member?":"هل انت مسجل بالفعل؟",Anonymous:"مجهول","Are you sure?":"","Become a member of {publication} to start commenting.":"يجب أن تصبح عضوًا فى {publication} لتستطيع التعليق","Become a paid member of {publication} to start commenting.":"يجب ان تكون عضويتك مدفوعة فى {publication} لكي تستطيع التعليق",Best:"",Cancel:"إلغاء",Comment:"تعليق","Commenting disabled":"","Complete your profile":"إكمال ملفك الشخصى",Delete:"حذف",Deleted:"","Deleted member":"الاعضاء المحذوفين",Deleting:"",Discussion:"النقاش",Edit:"تعديل","Edit this comment":"عدّل هذا التعليق",edited:"تم التعديل","Enter your name":"اكتب اسمك",Expertise:"مجال تخصصك","Founder @ Acme Inc":"مؤسس لدى شركة أكمي","Full-time parent":"أب بدوام كامل","Head of Marketing at Acme, Inc":"رئيس وحدة التسويق لدى شركة أكمى","Hidden for members":"",Hide:"اخفاء","Hide comment":"اخف التعليق","Jamie Larson":"فلان الفلانى","Join the discussion":"انضم للمحادثة","Just now":"الآن","Load more ({amount})":"","Local resident":"مقيم محلى","Member discussion":"مناقشة الاعضاء",Name:"الاسم",Neurosurgeon:"جراح المخ و الاعصاب",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"منذ ساعة واحدة","One min ago":" منذ دقيقة واحدة",removed:"","Replied to":"",Reply:"رد","Reply to":"","Reply to comment":"رد على هذا التعليق",Report:"الإبلاغ","Report comment":"ابلغ عن هذا التعليق","Report this comment?":"الإبلاغ عن التعليق؟",Save:"حفظ",Sending:"جارى الارسال",Sent:"تم الارسال",Show:"اظهر","Show {amount} more replies":"اظهر {amount} ردود","Show 1 more reply":"اظهر تعليق وحيد","Show comment":"اظهر التعليق","Sign in":"تسجيل الدخول","Sign up now":"قم بالتسجيل الآن","Sort by":"ترتيب بحسب","Start the conversation":"ابدأ النقاش","The linked comment is no longer available.":"","This comment has been hidden.":"تم اخفاء هذا التعليق","This comment has been removed.":"تم حذف هذا التعليق","Upgrade now":"قم بالترقية الآن","View in admin":"",Yesterday:"أمس","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"سيتم ارسال طلبك لصاحب الموقع"},DR={"{amount} characters left":"Остават {amount} знака","{amount} comments":"{amount} коментара","{amount} hrs ago":"Преди {amount} часа","{amount} mins ago":"Преди {amount} минути","{amount} more":"Още {amount}","1 comment":"1 коментар","Add comment":"Нов коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Добавете контекст към коментара си, споделете името си и опита си, за да насърчите полезна дискусия.","Add reply":"Отговор","Add your expertise":"Добавете компетенции","Already a member?":"Вече сте абонат?",Anonymous:"Анонимен","Are you sure?":"Убедени ли сте?","Become a member of {publication} to start commenting.":"Абонирайте се за {publication}, за да коментирате.","Become a paid member of {publication} to start commenting.":"Станете плащащ абонат на {publication}, за да коментирате.",Best:"Най-добрите",Cancel:"Отказ",Comment:"Коментар","Commenting disabled":"Коментирането е изключено","Complete your profile":"Попълнете профила си",Delete:"Изтриване",Deleted:"Изтрито","Deleted member":"Изтрит абонат",Deleting:"Изтриване",Discussion:"Дискусия",Edit:"Редактиране","Edit this comment":"Редактиране на коментара",edited:"редактиран","Enter your name":"Попълнете името си",Expertise:"Компетенции","Founder @ Acme Inc":"Основател на Компания ООД","Full-time parent":"Родител на пълно работно време","Head of Marketing at Acme, Inc":"Директор маркетинг в Компания ООД","Hidden for members":"Скрит за абонати",Hide:"Скриване","Hide comment":"Скриване на коментара","Jamie Larson":"Иван Иванов","Join the discussion":"Участвайте в дискусията","Just now":"Току-що","Load more ({amount})":"Още ({amount})","Local resident":"Местен жител","Member discussion":"Дискусия за абонатите",Name:"Име",Neurosurgeon:"Неврохирург",Newest:"Най-нови",Oldest:"Най-стари","Once deleted, this comment can’t be recovered.":"Веднъж изтрит, коментарът не може да бъде възстановен.","One hour ago":"Преди час","One min ago":"Преди минута",removed:"премахнат","Replied to":"Отговорено на",Reply:"Отговор","Reply to":"Отговор на","Reply to comment":"Отговор на коментара",Report:"Докладване","Report comment":"Докладване на коментара","Report this comment?":"Ще докладвате ли коментара?",Save:"Запис",Sending:"Изпращане",Sent:"Изпратен",Show:"Показване","Show {amount} more replies":"Покажи още {amount} отговора","Show 1 more reply":"Покажи още един отговор","Show comment":"Покажи коментар","Sign in":"Вход","Sign up now":"Регистрация","Sort by":"Сортиране по","Start the conversation":"Започнете дискусия","The linked comment is no longer available.":"Посоченият коментар вече не е наличен.","This comment has been hidden.":"Този коментар е скрит.","This comment has been removed.":"Този коментар е премахнат.","Upgrade now":"Надградете сега","View in admin":"Преглед в админ панела",Yesterday:"Вчера","You can't post comments in this publication.":"Не може да коментирате под тази публикация.","You can't post comments in this publication. <a>Contact support</a> for more information.":"Не може да коментирате под тази публикация. <a>Връзка с поддръжката</a> за повече информация.","Your request will be sent to the owner of this site.":"Искането ще бъде изпратено до собственика на сайта."},TR={"{amount} characters left":"{amount} অক্ষর বাকি","{amount} comments":"{amount} মন্তব্য","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"{amount}টি আরও","1 comment":"১টি মন্তব্য","Add comment":"মন্তব্য যোগ করুন","Add context to your comment, share your name and expertise to foster a healthy discussion.":"আপনার মন্তব্যে প্রসঙ্গ যোগ করুন, একটি সুস্থ আলোচনা করতে আপনার নাম ও অভিজ্ঞতা শেয়ার করুন।","Add reply":"উত্তর যোগ করুন","Add your expertise":"","Already a member?":"ইত:পূর্বে সদস্য?",Anonymous:"অজ্ঞাতনামা","Are you sure?":"","Become a member of {publication} to start commenting.":"{publication} এর সদস্য হন মন্তব্য করার জন্য।","Become a paid member of {publication} to start commenting.":"{publication} এর পেইড সদস্য হন মন্তব্য করার জন্য।",Best:"",Cancel:"বাতিল করুন",Comment:"মন্তব্য","Commenting disabled":"","Complete your profile":"আপনার প্রোফাইল সম্পূর্ণ করুন",Delete:"মুছে ফেলুন",Deleted:"","Deleted member":"মুছে ফেলা সদস্য",Deleting:"",Discussion:"আলোচনা",Edit:"সম্পাদনা","Edit this comment":"এই মন্তব্য সম্পাদনা করুন",edited:"","Enter your name":"আপনার নাম লিখুন",Expertise:"বিশেষজ্ঞতা","Founder @ Acme Inc":"প্রতিষ্ঠাতা @ বাংলাদেশ ট্রেড হাব","Full-time parent":"পূর্ণকালীন অভিভাবক","Head of Marketing at Acme, Inc":"মার্কেটিং প্রধান @ বাংলাদেশ ট্রেড হাব","Hidden for members":"",Hide:"লুকান","Hide comment":"মন্তব্য লুকান","Jamie Larson":"শাহ নেওয়াজ","Join the discussion":"আলোচনায় যোগ দিন","Just now":"এখনই","Load more ({amount})":"","Local resident":"স্থানীয় বাসিন্দা","Member discussion":"সদস্য আলোচনা",Name:"নাম",Neurosurgeon:"নিউরোসার্জন",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"এক ঘণ্টা পূর্বে","One min ago":"",removed:"","Replied to":"",Reply:"উত্তর","Reply to":"","Reply to comment":"মন্তব্যের উত্তর দিন",Report:"প্রতিবেদন","Report comment":"মন্তব্য প্রতিবেদন করুন","Report this comment?":"এই মন্তব্য প্রতিবেদন করবেন?",Save:"সংরক্ষণ করুন",Sending:"পাঠানো হচ্ছে",Sent:"পাঠানো হয়েছে",Show:"দেখান","Show {amount} more replies":" আরো {amount}টি উত্তর দেখান","Show 1 more reply":"১টি আরো উত্তর দেখান","Show comment":"মন্তব্য দেখান","Sign in":"সাইন ইন করুন","Sign up now":"এখনই সাইন আপ করুন","Sort by":"","Start the conversation":"আলোচনা শুরু করুন","The linked comment is no longer available.":"","This comment has been hidden.":"এই মন্তব্য লুকানো হয়েছে।","This comment has been removed.":"এই মন্তব্য মুছে ফেলা হয়েছে।","Upgrade now":"এখনই আপগ্রেড করুন","View in admin":"",Yesterday:"গতকাল","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"আপনার অনুরোধ সাইটের মালিকের কাছে পাঠানো হবে।"},MR={"{amount} characters left":"Preostalo {amount} karaktera","{amount} comments":"{amount} komentara","{amount} hrs ago":"Prije {amount} sati","{amount} mins ago":"Prije {amount} minuta","{amount} more":"Još {amount}","1 comment":"1 komentar","Add comment":"Dodaj komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dodaj kontekst svom komentaru, podijeli svoje ime i stručnost u svrhu kvalitetnije diskusije.","Add reply":"Objavi komentar","Add your expertise":"","Already a member?":"Već si član?",Anonymous:"Anoniman","Are you sure?":"","Become a member of {publication} to start commenting.":"Postani član portala {publication} za pristup diskusiji.","Become a paid member of {publication} to start commenting.":"Postani plaćeni član portala {publication} za pristup diskusiji.",Best:"",Cancel:"Otkaži",Comment:"Komentar","Commenting disabled":"","Complete your profile":"Dovrši svoj profil",Delete:"Obriši",Deleted:"","Deleted member":"Obrisan član",Deleting:"",Discussion:"Diskusija",Edit:"Uredi","Edit this comment":"Uredi komentar",edited:"uređeno","Enter your name":"Unesi ime",Expertise:"Stručnost","Founder @ Acme Inc":"Acme Inc osnivač","Full-time parent":"Full time roditelj","Head of Marketing at Acme, Inc":"Šef marketinga u kompaniji Acme d.o.o","Hidden for members":"",Hide:"Sakrij","Hide comment":"Sakrij komentar","Jamie Larson":"Vanja Larsić","Join the discussion":"Pridruži se diskusiji","Just now":"Upravo sada","Load more ({amount})":"","Local resident":"Lokalni stanovnik","Member discussion":"Diskusija članova",Name:"Ime",Neurosurgeon:"Neurohirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Prije jedan sat","One min ago":"Prije jedan minut",removed:"","Replied to":"",Reply:"Odgovori","Reply to":"","Reply to comment":"Odgovori na komentar",Report:"Prijavi","Report comment":"Prijavi komentar","Report this comment?":"Prijavi ovaj komentar?",Save:"Sačuvaj",Sending:"Šaljem",Sent:"Poslano",Show:"Prikaži","Show {amount} more replies":"Prikaži još {amount} odgovora","Show 1 more reply":"Prikaži još jedan odgovor","Show comment":"Prikaži komentar","Sign in":"Prijavi se","Sign up now":"Postani član","Sort by":"","Start the conversation":"Započni diskusiju","The linked comment is no longer available.":"","This comment has been hidden.":"Ovaj komentar je sakriven.","This comment has been removed.":"Ovaj komentar je uklonjen.","Upgrade now":"Nadogradi račun sada","View in admin":"",Yesterday:"Jučer","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Tvoj zahtjev je poslan vlasniku stranice."},jR={"{amount} characters left":"{amount} caràcters restants","{amount} comments":"{amount} comentaris","{amount} hrs ago":"Fa {amount} hores","{amount} mins ago":"Fa {amount} minuts","{amount} more":"{amount} més","1 comment":"Un comentari","Add comment":"Afegeix un comentari","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Afegeix context al teu comentari, comparteix el teu nom i experiència per fomentar una discussió sana.","Add reply":"Afegeix una resposta","Add your expertise":"","Already a member?":"Ja n'ets membre?",Anonymous:"Anònim","Are you sure?":"N'estàs segur?","Become a member of {publication} to start commenting.":"Fes-te membre de {publication} per començar a comentar.","Become a paid member of {publication} to start commenting.":"Fes-te membre de pagament de {publication} per començar a comentar",Best:"",Cancel:"Cancel·la",Comment:"Comentari","Commenting disabled":"","Complete your profile":"Completa el teu perfil",Delete:"Esborra",Deleted:"Esborrat","Deleted member":"Membre esborrat",Deleting:"Esborrant",Discussion:"Debat",Edit:"Edita","Edit this comment":"Edita aquest comentari",edited:"editat","Enter your name":"Escriu el teu nom",Expertise:"Expertesa","Founder @ Acme Inc":"Fundador @ Acme Inc","Full-time parent":"Pare a temps complet","Head of Marketing at Acme, Inc":"Cap de màrqueting a Acme, Inc","Hidden for members":"Ocult pels membres",Hide:"Oculta","Hide comment":"Oculta el comentari","Jamie Larson":"Jamie Larson","Join the discussion":"Uneix-te al debat","Just now":"Just ara","Load more ({amount})":"","Local resident":"Resident local","Member discussion":"Debat de membres",Name:"Nom",Neurosurgeon:"Neurocirurgià",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Un cop esborrat, aquest comentari no es pot recuperar","One hour ago":"Fa una hora","One min ago":"Fa un minut",removed:"Esborrat","Replied to":"Respost a",Reply:"Respon","Reply to":"Respon a","Reply to comment":"Respon al comentari",Report:"Reporta","Report comment":"Reporta comentari","Report this comment?":"Reporta aquest comentari?",Save:"Desa",Sending:"Enviant",Sent:"Enviat",Show:"Mostra","Show {amount} more replies":"Mostra {amount} respostes més","Show 1 more reply":"Mostra 1 resposta més","Show comment":"Mostra comentari","Sign in":"Inicia sessió","Sign up now":"Registra't ara","Sort by":"Ordena per","Start the conversation":"Comença la conversa","The linked comment is no longer available.":"","This comment has been hidden.":"Aquest comentari s'ha ocultat.","This comment has been removed.":"Aquest comentari s'ha esborrat.","Upgrade now":"Actualitza ara","View in admin":"",Yesterday:"Ahir","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"La teva sol·licitud s'enviarà al propietari d'aquest lloc."},PR={"{amount} characters left":"Zbývá {amount} znaků","{amount} comments":"{amount} komentářů","{amount} hrs ago":"Před {amount} hodinami","{amount} mins ago":"Před {amount} minutami","{amount} more":"Dalších {amount}","1 comment":"1 komentář","Add comment":"Přidat komentář","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Pro podporu zdravé diskuse přidejte ke svému komentáři kontext, své jméno a odbornost.","Add reply":"Přidat odpověď","Add your expertise":"","Already a member?":"Už jste členem?",Anonymous:"Anonymní","Are you sure?":"","Become a member of {publication} to start commenting.":"Staňte se členem {publication}, abyste mohli začít komentovat.","Become a paid member of {publication} to start commenting.":"Staňte se placeným členem {publication}, abyste mohli začít komentovat.",Best:"",Cancel:"Zrušit",Comment:"Komentář","Commenting disabled":"","Complete your profile":"Dokončete svůj profil",Delete:"Smazat",Deleted:"","Deleted member":"Smazaný člen",Deleting:"",Discussion:"Diskuse",Edit:"Upravit","Edit this comment":"Upravit tento komentář",edited:"upraveno","Enter your name":"Zadejte své jméno",Expertise:"Odbornost","Founder @ Acme Inc":"Zakladatel @ Acme Inc","Full-time parent":"Rodič na plný úvazek","Head of Marketing at Acme, Inc":"Vedoucí marketingu v Acme, Inc","Hidden for members":"",Hide:"Skrýt","Hide comment":"Skrýt komentář","Jamie Larson":"Jamie Larson","Join the discussion":"Připojte se k diskusi","Just now":"Právě teď","Load more ({amount})":"","Local resident":"Místní obyvatel","Member discussion":"Diskuse členů",Name:"Jméno",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Před jednou hodinou","One min ago":"Před jednou minutou",removed:"","Replied to":"",Reply:"Odpovědět","Reply to":"","Reply to comment":"Odpovědět na komentář",Report:"Nahlásit","Report comment":"Nahlásit komentář","Report this comment?":"Nahlásit tento komentář?",Save:"Uložit",Sending:"Odesílání",Sent:"Odesláno",Show:"Zobrazit","Show {amount} more replies":"Zobrazit {amount} dalších odpovědí","Show 1 more reply":"Zobrazit 1 další odpověď","Show comment":"Zobrazit komentář","Sign in":"Přihlásit se","Sign up now":"Zaregistrujte se nyní","Sort by":"","Start the conversation":"Začněte konverzaci","The linked comment is no longer available.":"","This comment has been hidden.":"Tento komentář byl skryt.","This comment has been removed.":"Tento komentář byl odstraněn.","Upgrade now":"Upgradovat","View in admin":"",Yesterday:"Včera","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Vaše žádost bude odeslána vlastníkovi tohoto webu."},IR={"{amount} characters left":"{amount} tegn tilbage","{amount} comments":"{amount} kommentarer","{amount} hrs ago":"{amount} timer siden","{amount} mins ago":"{amount} minutter siden","{amount} more":"{amount} mere","1 comment":"1 kommentar","Add comment":"Tilføj kommentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Tilføj kontekst til din kommentar, del dit navn og ekspertise for at fremme en sund diskussion.","Add reply":"Tilføj svar","Add your expertise":"","Already a member?":"Allerede medlem?",Anonymous:"Anonym","Are you sure?":"Er du sikker?","Become a member of {publication} to start commenting.":"Bliv medlem af {publication} for at kunne skrive kommentarer.","Become a paid member of {publication} to start commenting.":"Bliv betalende medlem af {publication} for at kunne skrive kommentarer.",Best:"",Cancel:"Annuller",Comment:"Kommentér","Commenting disabled":"","Complete your profile":"Færdiggør din profil",Delete:"Slet",Deleted:"Slettet","Deleted member":"Slettet medlem",Deleting:"Sletter",Discussion:"Diskussion",Edit:"Rediger","Edit this comment":"Rediger denne kommentar",edited:"redigeret","Enter your name":"Indtast dit navn",Expertise:"Ekspertise","Founder @ Acme Inc":"Grundlægger @ Acme Inc","Full-time parent":"Forældre på fuld tid","Head of Marketing at Acme, Inc":"Chef for marking hos Acme, Inc","Hidden for members":"Skjult for medlemmer",Hide:"Skjul","Hide comment":"Skjul kommentar","Jamie Larson":"Jamie Larson","Join the discussion":"Bliv en del af diskussionen","Just now":"Lige nu","Load more ({amount})":"Indlæs mere ({amount})","Local resident":"Lokal borger","Member discussion":"Medlemsdiskussion",Name:"Navn",Neurosurgeon:"Neurokirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Når den først er slettet, kan denne kommentar ikke gendannes.","One hour ago":"En time siden","One min ago":"Et minut siden",removed:"fjernet","Replied to":"Svarede",Reply:"Svar","Reply to":"Svar","Reply to comment":"Svar på kommentar",Report:"Rapportér","Report comment":"Rapportér kommentar","Report this comment?":"Rapportér denne kommentar?",Save:"Gem",Sending:"Sender",Sent:"Sendt",Show:"Vis","Show {amount} more replies":"Vis {amount} flere svar","Show 1 more reply":"Vis 1 mere svar","Show comment":"Vis kommentar","Sign in":"Log ind","Sign up now":"Tilmed dig nu","Sort by":"Sorter efter","Start the conversation":"Start samtalen","The linked comment is no longer available.":"","This comment has been hidden.":"Denne kommentar er blevet skjult.","This comment has been removed.":"Denne kommentar er blevet fjernet.","Upgrade now":"Opgrader nu","View in admin":"",Yesterday:"I går","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Din anmodning vil blive sendt til ejeren af dette site."},LR={"{amount} characters left":"{amount} Zeichen übrig","{amount} comments":"{amount} Kommentare","{amount} hrs ago":"Vor {amount} Stunden","{amount} mins ago":"Vor {amount} Minuten","{amount} more":"{amount} weitere","1 comment":"1 Kommentar","Add comment":"Kommentar hinzufügen","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Füge deinem Kommentar Kontext hinzu, teile deinen Namen und deine Expertise, um eine gesunde Diskussion zu fördern.","Add reply":"Antwort hinzufügen","Add your expertise":"Ergänze deine Expertise","Already a member?":"Bist du bereits Mitglied?",Anonymous:"Anonym","Are you sure?":"Bist du sicher?","Become a member of {publication} to start commenting.":"Werde Mitglied bei {publication}, um Kommentare zu schreiben.","Become a paid member of {publication} to start commenting.":"Werde zahlendes Mitglied bei {publication}, um Kommentare zu schreiben.",Best:"Beste",Cancel:"Abbrechen",Comment:"Kommentar","Commenting disabled":"","Complete your profile":"Vervollständige dein Profil",Delete:"Löschen",Deleted:"Gelöscht","Deleted member":"Gelöschtes Mitglied",Deleting:"Wird gelöscht",Discussion:"Diskussion",Edit:"Bearbeiten","Edit this comment":"Diesen Kommentar bearbeiten",edited:"bearbeitet","Enter your name":"Gib deinen Namen ein",Expertise:"Expertise","Founder @ Acme Inc":"Gründer bei Acme Inc","Full-time parent":"Vollzeit-Elternteil","Head of Marketing at Acme, Inc":"Leiter Marketing bei Acme, Inc","Hidden for members":"Für Mitglieder verborgen",Hide:"Verbergen","Hide comment":"Kommentar verbergen","Jamie Larson":"Jamie Larson","Join the discussion":"Nimm an der Diskussion teil","Just now":"Gerade eben","Load more ({amount})":"Weitere laden ({amount})","Local resident":"Ortsansässiger","Member discussion":"Mitgliederdiskussion",Name:"Name",Neurosurgeon:"Neurochirurg",Newest:"Neuste",Oldest:"Älteste","Once deleted, this comment can’t be recovered.":"Der Kommentar kann nicht wiederhergestellt werden, sobald er gelöscht wurde.","One hour ago":"Vor einer Stunde","One min ago":"Vor einer Minute",removed:"entfernt","Replied to":"Antwort auf",Reply:"Antworten","Reply to":"Antwort auf","Reply to comment":"Auf Kommentar antworten",Report:"Melden","Report comment":"Kommentar melden","Report this comment?":"Diesen Kommentar melden?",Save:"Speichern",Sending:"Senden",Sent:"Gesendet",Show:"Anzeigen","Show {amount} more replies":"{amount} weitere Antworten anzeigen","Show 1 more reply":"1 weitere Antwort anzeigen","Show comment":"Kommentar anzeigen","Sign in":"Einloggen","Sign up now":"Jetzt registrieren","Sort by":"Sortiere nach","Start the conversation":"Beginne das Gespräch","The linked comment is no longer available.":"","This comment has been hidden.":"Dieser Kommentar wurde ausgeblendet.","This comment has been removed.":"Dieser Kommentar wurde entfernt.","Upgrade now":"Jetzt upgraden","View in admin":"",Yesterday:"Gestern","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Deine Anfrage wird an den Besitzer dieser Website gesendet."},zR={"{amount} characters left":"{amount} Zeichen übrig","{amount} comments":"{amount} Kommentare","{amount} hrs ago":"Vor {amount} Stunden","{amount} mins ago":"Vor {amount} Minuten","{amount} more":"{amount} mehr","1 comment":"1 Kommentar","Add comment":"Kommentar hinzufügen","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Fügen Sie Kontext zu Ihrem Kommentar hinzu, teilen Sie Ihren Namen und Ihre Expertise, um eine gesunde Diskussion zu fördern.","Add reply":"Antwort hinzufügen","Add your expertise":"Fügen Sie Ihr Fachwissen hinzu","Already a member?":"Bereits ein Mitglied?",Anonymous:"Anonym","Are you sure?":"Sind Sie sicher?","Become a member of {publication} to start commenting.":"Werden Sie ein Mitglied bei {publication}, um Kommentare zu schreiben.","Become a paid member of {publication} to start commenting.":"Werden Sie ein zahlendes Mitglied bei {publication}, um Kommentare zu schreiben.",Best:"Beste",Cancel:"Abbrechen",Comment:"Kommentar","Commenting disabled":"Kommentare deaktiviert","Complete your profile":"Vervollständigen Sie Ihr Profil",Delete:"Löschen",Deleted:"Gelöscht","Deleted member":"Gelöschtes Mitglied",Deleting:"Löschen",Discussion:"Diskussion",Edit:"Bearbeiten","Edit this comment":"Kommentar bearbeiten",edited:"bearbeitet","Enter your name":"Geben Sie Ihren Namen ein",Expertise:"Expertise","Founder @ Acme Inc":"Gründer bei Acme Inc","Full-time parent":"Vollzeit-Elternteil","Head of Marketing at Acme, Inc":"Leiter Marketing bei Acme, Inc","Hidden for members":"Verborgen für Mitglieder",Hide:"Verbergen","Hide comment":"Kommentar verbergen","Jamie Larson":"Jamie Larson","Join the discussion":"An der Diskussion teilnehmen","Just now":"Gerade eben","Load more ({amount})":"Mehr laden ({amount})","Local resident":"Anwohner","Member discussion":"Mitgliederdiskussion",Name:"Name",Neurosurgeon:"Neurochirurg",Newest:"Neueste",Oldest:"Älteste","Once deleted, this comment can’t be recovered.":"Der Kommentar kann nicht wiederhergestellt werden, wenn er gelöscht wurde.","One hour ago":"Vor einer Stunde","One min ago":"Vor einer Minute",removed:"entfernt","Replied to":"Antwortet auf",Reply:"Antworten","Reply to":"Antwort auf","Reply to comment":"Auf Kommentar antworten",Report:"Melden","Report comment":"Kommentar melden","Report this comment?":"Diesen Kommentar melden?",Save:"Speichern",Sending:"Senden",Sent:"Gesendet",Show:"Anzeigen","Show {amount} more replies":"{amount} weitere Antworten anzeigen","Show 1 more reply":"1 weitere Antwort anzeigen","Show comment":"Kommentar anzeigen","Sign in":"Anmelden","Sign up now":"Jetzt registrieren","Sort by":"Sortiere nach","Start the conversation":"Beginnen Sie das Gespräch","The linked comment is no longer available.":"Der verlinkte Kommentar ist nicht mehr verfügbar.","This comment has been hidden.":"Dieser Kommentar wurde ausgeblendet.","This comment has been removed.":"Dieser Kommentar wurde entfernt.","Upgrade now":"Jetzt upgraden","View in admin":"Im Admin anzeigen",Yesterday:"Gestern","You can't post comments in this publication.":"Sie können in dieser Publikation keine Kommentare schreiben.","You can't post comments in this publication. <a>Contact support</a> for more information.":"Sie können in dieser Publikation keine Kommentare schreiben. <a>Kontaktieren Sie den Support</a> für weitere Informationen.","Your request will be sent to the owner of this site.":"Ihre Anfrage wird an den Seitenbesitzer gesendet."},FR={"{amount} characters left":"Απομένουν {amount} χαρακτήρες","{amount} comments":"{amount} σχόλια","{amount} hrs ago":"πριν από {amount} ώρες","{amount} mins ago":"πριν από {amount} λεπτά","{amount} more":"{amount} περισσότερα","1 comment":"1 σχόλιο","Add comment":"Προσθήκη σχολίου","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Προσθέστε περιεχόμενο στο σχόλιό σας, μοιραστείτε το όνομα και την εξειδίκευσή σας για να προωθήσετε μια υγιή συζήτηση.","Add reply":"Προσθήκη απάντησης","Add your expertise":"","Already a member?":"Ήδη μέλος;",Anonymous:"Ανώνυμος","Are you sure?":"","Become a member of {publication} to start commenting.":"Γίνετε μέλος του {publication} για να ξεκινήσετε να σχολιάζετε.","Become a paid member of {publication} to start commenting.":"Γίνετε premium μέλος του {publication} για να ξεκινήσετε να σχολιάζετε.",Best:"",Cancel:"Ακύρωση",Comment:"Σχόλιο","Commenting disabled":"","Complete your profile":"Ολοκληρώστε το προφίλ σας",Delete:"Διαγραφή",Deleted:"","Deleted member":"Διαγραμμένο μέλος",Deleting:"",Discussion:"Συζήτηση",Edit:"Επεξεργασία","Edit this comment":"Επεξεργασία αυτού του σχολίου",edited:"Επεξεργασμένο","Enter your name":"Εισάγετε το όνομά σας",Expertise:"Εξειδίκευση","Founder @ Acme Inc":"Ιδρυτής @ Acme Inc","Full-time parent":"Γονέας πλήρους απασχόλησης","Head of Marketing at Acme, Inc":"Επικεφαλής Μάρκετινγκ στην Acme, Inc","Hidden for members":"",Hide:"Απόκρυψη","Hide comment":"Απόκρυψη σχολίου","Jamie Larson":"Τζέιμι Λάρσον","Join the discussion":"Συμμετοχή στη συζήτηση","Just now":"Μόλις τώρα","Load more ({amount})":"","Local resident":"Τοπικός κάτοικος","Member discussion":"Συζήτηση μελών",Name:"Όνομα",Neurosurgeon:"Νευροχειρουργός",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Πριν από μία ώρα","One min ago":"Πριν από ένα λεπτό",removed:"","Replied to":"",Reply:"Απάντηση","Reply to":"","Reply to comment":"Απάντηση στο σχόλιο",Report:"Αναφορά","Report comment":"Αναφορά σχολίου","Report this comment?":"Αναφορά αυτού του σχολίου;",Save:"Αποθήκευση",Sending:"Αποστολή",Sent:"Απεστάλη",Show:"Εμφάνιση","Show {amount} more replies":"Εμφάνιση {amount} περισσότερων απαντήσεων","Show 1 more reply":"Εμφάνιση 1 ακόμα απάντησης","Show comment":"Εμφάνιση σχολίου","Sign in":"Σύνδεση","Sign up now":"Εγγραφείτε τώρα","Sort by":"","Start the conversation":"Ξεκινήστε τη συζήτηση","The linked comment is no longer available.":"","This comment has been hidden.":"Αυτό το σχόλιο έχει κρυφτεί.","This comment has been removed.":"Αυτό το σχόλιο έχει αφαιρεθεί.","Upgrade now":"Αναβάθμιση τώρα","View in admin":"",Yesterday:"Χθες","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Το αίτημά σας θα σταλεί στον ιδιοκτήτη αυτού του ιστότοπου."},BR={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":""},HR={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":""},VR={"{amount} characters left":"{amount} caracteres restantes","{amount} comments":"{amount} comentarios","{amount} hrs ago":"Hace {amount} horas","{amount} mins ago":"Hace {amount} minutos","{amount} more":"{amount} más","1 comment":"1 comentario","Add comment":"Añadir comentario","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Añade contexto a tu comentario, comparte tu nombre y experiencia para fomentar un debate sano.","Add reply":"Añadir respuesta","Add your expertise":"Añadir tu experiencia","Already a member?":"¿Ya eres miembro?",Anonymous:"Anónimo","Are you sure?":"¿Estás seguro?","Become a member of {publication} to start commenting.":"Hazte miembro de {publication} para poder comentar.","Become a paid member of {publication} to start commenting.":"Hazte miembro de pago para poder comentar en {publication}.",Best:"Mejores",Cancel:"Cancelar",Comment:"Comentar","Commenting disabled":"","Complete your profile":"Completa tu perfil",Delete:"Eliminar",Deleted:"Eliminado","Deleted member":"Eliminar miembro",Deleting:"Eliminando",Discussion:"Discusión",Edit:"Editar","Edit this comment":"Editar este comentario",edited:"editado","Enter your name":"Introduce tu nombre",Expertise:"Experiencia","Founder @ Acme Inc":"Fundador @ Acme Inc","Full-time parent":"Padre a tiempo completo","Head of Marketing at Acme, Inc":"Jefe de Marketing en Acme, Inc","Hidden for members":"Oculto para miembros",Hide:"Ocultar","Hide comment":"Ocultar comentario","Jamie Larson":"Carlos Rodriguez","Join the discussion":"Únete a la discusión","Just now":"Justo ahora","Load more ({amount})":"Cargar más ({amount})","Local resident":"Residente local","Member discussion":"Discusión de los miembros",Name:"Nombre",Neurosurgeon:"Neurocirujano",Newest:"Más nuevos",Oldest:"Más antiguos","Once deleted, this comment can’t be recovered.":"Este comentario no se puede recuperar una vez eliminado.","One hour ago":"Hace una hora","One min ago":"Hace un minuto",removed:"eliminado","Replied to":"En respuesta a",Reply:"Responder","Reply to":"Responder a","Reply to comment":"Responder al comentario",Report:"Reportar","Report comment":"Reportar comentario","Report this comment?":"¿Reportar este comentario?",Save:"Guardar",Sending:"Enviando",Sent:"Enviado",Show:"Mostrar","Show {amount} more replies":"Mostrar {amount} respuestas más","Show 1 more reply":"Mostrar 1 respuesta más","Show comment":"Mostrar comentario","Sign in":"Inicia sesión","Sign up now":"Regístrate ahora","Sort by":"Ordenar por","Start the conversation":"Comienza la conversación","The linked comment is no longer available.":"","This comment has been hidden.":"Este comentario ha sido ocultado.","This comment has been removed.":"Este comentario ha sido borrado.","Upgrade now":"Actualiza tu cuenta ahora","View in admin":"",Yesterday:"Ayer","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Tu petición será enviada al dueño de este sitio web."},_R={"{amount} characters left":"{amount} tähemärki jäänud","{amount} comments":"{amount} kommentaari","{amount} hrs ago":"{amount} tundi tagasi","{amount} mins ago":"{amount} minutit tagasi","{amount} more":"{amount} veel","1 comment":"1 kommentaar","Add comment":"Lisa kommentaar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Lisa oma kommentaarile konteksti, jaga oma nime ja kogemusi, et soodustada tervislikku arutelu.","Add reply":"Lisa vastus","Add your expertise":"","Already a member?":"Juba liige?",Anonymous:"Anonüümne","Are you sure?":"","Become a member of {publication} to start commenting.":"Kommenteerimise alustamiseks saage {publication} liikmeks.","Become a paid member of {publication} to start commenting.":"Kommenteerimise alustamiseks saage {publication} tasuliseks liikmeks.",Best:"",Cancel:"Tühista",Comment:"Kommentaar","Commenting disabled":"","Complete your profile":"Täida oma profiil",Delete:"Kustuta",Deleted:"","Deleted member":"Kustutatud liige",Deleting:"",Discussion:"Arutelu",Edit:"Muuda","Edit this comment":"Muuda seda kommentaari",edited:"muudetud","Enter your name":"Sisesta oma nimi",Expertise:"Oskused","Founder @ Acme Inc":"Asutaja @ Acme Inc","Full-time parent":"Täiskohaga lapsevanem","Head of Marketing at Acme, Inc":"Turundusjuht Acme, Inc-s","Hidden for members":"",Hide:"Peida","Hide comment":"Peida kommentaar","Jamie Larson":"Jamie Larson","Join the discussion":"Liitu aruteluga","Just now":"Just praegu","Load more ({amount})":"","Local resident":"Kohalik elanik","Member discussion":"Liikmete arutelu",Name:"Nimi",Neurosurgeon:"Neurokirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Üks tund tagasi","One min ago":"Üks minut tagasi",removed:"","Replied to":"",Reply:"Vasta","Reply to":"","Reply to comment":"Vasta kommentaarile",Report:"Teata","Report comment":"Teata kommentaarist","Report this comment?":"Teatada sellest kommentaarist?",Save:"Salvesta",Sending:"Saatmine",Sent:"Saadetud",Show:"Näita","Show {amount} more replies":"Näita {amount} vastust veel","Show 1 more reply":"Näita 1 vastus veel","Show comment":"Näita kommentaari","Sign in":"Logi sisse","Sign up now":"Registreeru nüüd","Sort by":"","Start the conversation":"Alusta vestlust","The linked comment is no longer available.":"","This comment has been hidden.":"See kommentaar on peidetud.","This comment has been removed.":"See kommentaar on eemaldatud.","Upgrade now":"Uuenda nüüd","View in admin":"",Yesterday:"Eile","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Teie taotlus saadetakse selle saidi omanikule."},UR={"{amount} characters left":"{amount} geratzen dira","{amount} comments":"{amount} iruzkin","{amount} hrs ago":"Duela {amount} ordu","{amount} mins ago":"Duela {amount} minutu","{amount} more":"{amount} gehiago","1 comment":"Iruzkin 1","Add comment":"Egin iruzkina","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Gehitu testuingurua zure iruzkinari, partekatu zure izena eta ezagutza eztabaida sanoa sustatzeko.","Add reply":"Erantzun","Add your expertise":"Gehitu zure ezagutza","Already a member?":"Kidea al zara?",Anonymous:"Anonimoa","Are you sure?":"Ziur al zaude?","Become a member of {publication} to start commenting.":"Egin zaitez {publication}(e)ko kide iruzkinak egiteko.","Become a paid member of {publication} to start commenting.":"Egin zaitez {publication}(e)ko ordainpeko kide iruzkinak egiteko.",Best:"Onena",Cancel:"Utzi",Comment:"Egin iruzkina","Commenting disabled":"","Complete your profile":"Bete zure profila",Delete:"Ezabatu",Deleted:"Ezabatuta","Deleted member":"Ezabatutako kidea",Deleting:"Ezabatzen",Discussion:"Eztabaida",Edit:"Editatu","Edit this comment":"Editatu iruzkina",edited:"editatua","Enter your name":"Sartu zure izena",Expertise:"Ezagutza","Founder @ Acme Inc":"FAGOR kooperatibaren fundatzailea","Full-time parent":"Lanaldi osoko gurasoa","Head of Marketing at Acme, Inc":"FAGOR kooperatibako marketin-zuzendaria","Hidden for members":"Ezkutatuta kideentzat",Hide:"Ezkutatu","Hide comment":"Ezkutatu iruzkina","Jamie Larson":"Lur Axpe","Join the discussion":"Batu eztabaidara","Just now":"Oraintxe bertan","Load more ({amount})":"Kargatu gehiago ({amount})","Local resident":"Bertoko bizilaguna","Member discussion":"Kideen eztabaida",Name:"Izena",Neurosurgeon:"Neurozirujaua",Newest:"Berriena",Oldest:"Zaharrena","Once deleted, this comment can’t be recovered.":"Ezabatuz gero, ezingo da berreskuratu.","One hour ago":"Duela ordubete","One min ago":"Duela minutu bat",removed:"kenduta","Replied to":"Honi erantzun dio",Reply:"Erantzun","Reply to":"Erantzun honi","Reply to comment":"Erantzun iruzkin honi",Report:"Salatu","Report comment":"Salatu iruzkina","Report this comment?":"Iruzkin hau salatu nahi al duzu?",Save:"Gorde",Sending:"Bidaltzen",Sent:"Bidalita",Show:"Erakutsi","Show {amount} more replies":"Erakutsi {amount} erantzun gehiago","Show 1 more reply":"Erakutsi erantzun bat gehiago","Show comment":"Erakutsi iruzkina","Sign in":"Hasi saioa","Sign up now":"Eman izena orain","Sort by":"Antolatu honen arabera","Start the conversation":"Hasi eztabaida","The linked comment is no longer available.":"","This comment has been hidden.":"Iruzkin hau ezkutatu da.","This comment has been removed.":"Iruzkin hau kendu da.","Upgrade now":"Ordaindu orain","View in admin":"",Yesterday:"Atzo","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Eskaera gune honetako arduradunari bidaliko zaio."},YR={"{amount} characters left":"{amount} حرف باقی‌مانده است","{amount} comments":"{amount} دیدگاه","{amount} hrs ago":"{amount} ساعت پیش","{amount} mins ago":"{amount} دقیقه پیش","{amount} more":"{amount} بیشتر","1 comment":"یک دیدگاه","Add comment":"دیدگاهی بفرستید","Add context to your comment, share your name and expertise to foster a healthy discussion.":"به دیدگاه خود موضوعیت ببخشید و با به اشتراک‌گذاری نام و تخصص خود یک گفتمان سالم ایجاد کنید.","Add reply":"پاسخی بدهید","Add your expertise":"","Already a member?":"عضو هستید؟",Anonymous:"ناشناس","Are you sure?":"","Become a member of {publication} to start commenting.":"عضو وب‌سایت {publication} شوید تا مجوز ارسال دیدگاه دریافت کنید.","Become a paid member of {publication} to start commenting.":"حق اشتراک وب‌سایت {publication} را پرداخت کنید تا مجوز ارسال دیدگاه دریافت کنید.",Best:"",Cancel:"انصراف",Comment:"دیدگاه","Commenting disabled":"","Complete your profile":"نمایه خود را کامل کنید",Delete:"پاک کردن",Deleted:"","Deleted member":"حساب پاک‌شده",Deleting:"",Discussion:"گفتمان",Edit:"ویرایش","Edit this comment":"ویرایش این دیدگاه",edited:"ویرایش‌شده","Enter your name":"نام خود را بنویسید",Expertise:"تخصص","Founder @ Acme Inc":"مدیر عامل یک شرکت خیالی","Full-time parent":" خانه‌دار تمام وقت","Head of Marketing at Acme, Inc":"سرپرست بخش بازاریابی یک شرکت خیالی","Hidden for members":"",Hide:"مخفی کردن","Hide comment":"مخفی کردن دیدگاه","Jamie Larson":"جیمی لارسن","Join the discussion":"به گفتمان بپیوندید","Just now":"پیوستن","Load more ({amount})":"","Local resident":"ساکن محلی","Member discussion":"گفتمان کاربران",Name:"نام",Neurosurgeon:"جراح مغز و اعصاب",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"یک ساعت پیش","One min ago":"یک دقیقه پیش",removed:"","Replied to":"",Reply:"پاسخ دادن","Reply to":"","Reply to comment":"پاسخ دادن به دیدگاه",Report:"گزارش","Report comment":"گزارش دیدگاه","Report this comment?":"می‌خواهید این دیدگاه را گزارش کنید؟",Save:"ذخیره کردن",Sending:"در حال ارسال",Sent:"ارسال شد",Show:"نمایش","Show {amount} more replies":"نمایش {amount} پاسخ بیشتر","Show 1 more reply":"نمایش یک دیدگاه بیشتر","Show comment":"نمایش دیدگاه","Sign in":"ورود به حساب","Sign up now":"ایجاد حساب","Sort by":"","Start the conversation":"گفت‌وگویی شروع کنید","The linked comment is no longer available.":"","This comment has been hidden.":"این دیدگاه مخفی شده است","This comment has been removed.":"این دیدگاه پاک شده است","Upgrade now":"ارتقاء دهید","View in admin":"",Yesterday:"دیروز","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"درخواست شما برای مدیر این وب‌سایت ارسال خواهد شد."},JR={"{amount} characters left":"{amount} merkkiä jäljellä","{amount} comments":"{amount} kommenttia","{amount} hrs ago":"{amount} tuntia sitten","{amount} mins ago":"{amount} minuuttia sitten","{amount} more":"{amount} vielä lisää","1 comment":"1 kommentti","Add comment":"Lisää kommentti","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Lisää sisältöä kommenttiisi, jaa nimesi ja osaamisesi saadaksesi aikaan tervettä keskustelua.","Add reply":"Lisää vastaus","Add your expertise":"Lisää osaamisesi","Already a member?":"Oletko jo jäsen?",Anonymous:"Anonyymi","Are you sure?":"Oletko varma?","Become a member of {publication} to start commenting.":"Liity sivun {publication} jäseneksi pystyäksesi kommentoimaan.","Become a paid member of {publication} to start commenting.":"Ota maksullinen jäsenyys sivulle {publication}, jotta pystyt kommentoimaan.",Best:"Parhaat",Cancel:"Peruuta",Comment:"Kommentti","Commenting disabled":"","Complete your profile":"Täydennä profiilisi",Delete:"Poista",Deleted:"Poistettu","Deleted member":"Poista jäsen",Deleting:"Poistetaan",Discussion:"Keskustelu",Edit:"Editoi","Edit this comment":"Editoi tätä kommenttia",edited:"editoitu","Enter your name":"Syötä nimesi",Expertise:"Osaaminen","Founder @ Acme Inc":"Perustaja","Full-time parent":"Kokoaikainen vanhempi","Head of Marketing at Acme, Inc":"Markkinointijohtaja","Hidden for members":"Piilotettu jäseniltä",Hide:"Piilota","Hide comment":"Piilota kommentti","Jamie Larson":"Jamie Larson","Join the discussion":"Liity keskusteluun","Just now":"Juuri nyt","Load more ({amount})":"Lataa lisää ({amount})","Local resident":"Paikallinen","Member discussion":"Jäsenten keskustelu",Name:"Nimi",Neurosurgeon:"Neurokirurgi",Newest:"Uusin",Oldest:"Vanhin","Once deleted, this comment can’t be recovered.":"Jos poistat kommentin, sitä ei voi enää palauttaa.","One hour ago":"Tunti sitten","One min ago":"Minuutti sitten",removed:"poistettu","Replied to":"Vastattu:",Reply:"Vastaa","Reply to":"Vastaa:","Reply to comment":"Vastaa kommenttiin",Report:"Ilmianna","Report comment":"Ilmianna kommentti","Report this comment?":"Haluatko ilmiantaa tämän kommentin?",Save:"Tallenna",Sending:"Lähetetään",Sent:"Lähetetty",Show:"Näytä","Show {amount} more replies":"Näytä {amount} vastausta lisää ","Show 1 more reply":"Näytä 1 vastaus lisää","Show comment":"Näytä kommentti","Sign in":"Kirjaudu sisään","Sign up now":"Rekisteröidy nyt","Sort by":"Lajitteluperuste","Start the conversation":"Aloita keskustelu","The linked comment is no longer available.":"","This comment has been hidden.":"Tämä kommentti on piilotettu.","This comment has been removed.":"Tämä kommentti on poistettu.","Upgrade now":"Korota nyt","View in admin":"",Yesterday:"Eilen","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Sinun pyyntösi lähetetään sivun omistajalle."},KR={"{amount} characters left":"{amount} caractères restants","{amount} comments":"{amount} commentaires","{amount} hrs ago":"Il y a {amount} heures","{amount} mins ago":"Il y a {amount} minutes","{amount} more":"{amount} supplémentaire(s)","1 comment":"1 commentaire","Add comment":"Ajouter un commentaire","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Ajoutez un contexte à votre commentaire. Partagez votre nom et vos compétences pour favoriser une discussion saine.","Add reply":"Ajouter une réponse","Add your expertise":"Ajoutez vos compétences","Already a member?":"Déjà abonné(e) ?",Anonymous:"Anonyme","Are you sure?":"Êtes-vous certain(e) ?","Become a member of {publication} to start commenting.":"Abonnez-vous gratuitement à {publication} pour commencer à commenter.","Become a paid member of {publication} to start commenting.":"Choisissez un abonnement payant à {publication} pour commencer à commenter.",Best:"Meilleur",Cancel:"Annuler",Comment:"Commentaire","Commenting disabled":"","Complete your profile":"Complétez votre profil",Delete:"Supprimer",Deleted:"Supprimé","Deleted member":"Abonné(e) supprimé(e)",Deleting:"Suppression en cours",Discussion:"Discussion",Edit:"Modifier","Edit this comment":"Modifier ce commentaire",edited:"modifié","Enter your name":"Entrez votre nom",Expertise:"Compétences","Founder @ Acme Inc":"Fondateur @ Acme Inc","Full-time parent":"Parent à plein temps","Head of Marketing at Acme, Inc":"Responsable du marketing chez Acme, Inc","Hidden for members":"Masqué pour les abonnés",Hide:"Masquer","Hide comment":"Masquer le commentaire","Jamie Larson":"Jean Martin","Join the discussion":"Rejoindre la discussion","Just now":"À l'instant","Load more ({amount})":"Afficher plus ({amount})","Local resident":"Résident local","Member discussion":"Discussion entre abonnés",Name:"Nom",Neurosurgeon:"Neurochirurgien",Newest:"Plus récent",Oldest:"Plus ancien","Once deleted, this comment can’t be recovered.":"Une fois supprimé, ce commentaire ne pourra pas être restauré.","One hour ago":"Il y a une heure","One min ago":"Il y a une minute",removed:"supprimé","Replied to":"Répondu à",Reply:"Répondre","Reply to":"Répondre à","Reply to comment":"Répondre au commentaire",Report:"Signaler","Report comment":"Signaler le commentaire","Report this comment?":"Signaler ce commentaire ?",Save:"Enregistrer",Sending:"Envoi en cours",Sent:"Envoyé",Show:"Afficher","Show {amount} more replies":"Afficher {amount} réponses supplémentaires","Show 1 more reply":"Afficher 1 réponse supplémentaire","Show comment":"Afficher le commentaire","Sign in":"Se connecter","Sign up now":"S'inscrire maintenant","Sort by":"Trier par","Start the conversation":"Commencer la conversation","The linked comment is no longer available.":"","This comment has been hidden.":"Ce commentaire a été masqué.","This comment has been removed.":"Ce commentaire a été supprimé.","Upgrade now":"Mettre à jour maintenant","View in admin":"",Yesterday:"Hier","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Votre demande sera transférée au propriétaire de ce site."},WR={"{amount} characters left":"caractaran air fhàgail: {amount}","{amount} comments":"beachdan: {amount}","{amount} hrs ago":"o chionn {amount}u","{amount} mins ago":"o chionn {amount}m","{amount} more":"{amount} a bharrachd","1 comment":"1 bheachd","Add comment":"Fàg beachd air","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Cuir co-theacsa ris a' bheachd agad, cuir d' ainm is sàr-eòlas ris gus deasbad fallain a brosnachadh.","Add reply":"Cuir freagairt ris","Add your expertise":"","Already a member?":"’Eil thu nad bhall mar-thà?",Anonymous:"Gun ainm","Are you sure?":"A bheil thu cinnteach?","Become a member of {publication} to start commenting.":"Clàraich nad bhall an làrach-lìn, {publication}, gus beachd fhàgail air.","Become a paid member of {publication} to start commenting.":"Clàraich nad bhall phrìomhach an làrach-lìn, {publication}, gus beachd fhàgail air.",Best:"",Cancel:"Sguir dheth",Comment:"Beachd","Commenting disabled":"","Complete your profile":"Lìon a-steach a' phròifil agad",Delete:"Sguab às",Deleted:"Air a sguabadh às","Deleted member":"Ball air a sguabadh às",Deleting:"'Ga sguabadh às",Discussion:"Deasbad",Edit:"Deasaich","Edit this comment":"Deasaich am beachd seo",edited:"Air a dheasachadh","Enter your name":"Cuir a-steach d’ ainm",Expertise:"Sàr-eòlas","Founder @ Acme Inc":"Neach-stèidheachaidh @ Acme Inc","Full-time parent":"Pàrant làn-ùine","Head of Marketing at Acme, Inc":"Àrd-cheann Margaidheachd aig Acme, Inc","Hidden for members":"Air am falach bho bhuill",Hide:"Cuir am falach","Hide comment":"Cuir am beachd am falach","Jamie Larson":"Seamaidh Larson","Join the discussion":"Gabh pàirt san deasbad","Just now":"An-dràsta","Load more ({amount})":"Lùchdaich barrachd {amount}","Local resident":"Neach-còmhnaidh ionadail","Member discussion":"Deasbad",Name:"Ainm",Neurosurgeon:"Niùro-làmh-lèigh",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Cha ghabh a aiseag an dèidh sguabadh às","One hour ago":"O chionn uair a thìde","One min ago":"O chionn mionaid",removed:"air a sguabadh às","Replied to":"Air freagairt fhaighinn",Reply:"Cuir freagairt","Reply to":"Cuir freagairt gu","Reply to comment":"Cuir freagairt ri beachd",Report:"Dèan aithris air","Report comment":"Dèan aithris air beachd","Report this comment?":"’Eil thu airson aithris a dhèanamh air a’ bheachd seo?",Save:"Sabhail",Sending:"’Ga chur",Sent:"Air a chur",Show:"Seall","Show {amount} more replies":"An àireamh de bheachdan a bharrachd a chìthear: {amount}","Show 1 more reply":"Seall beachd a bharrachd","Show comment":"Seall am beachd","Sign in":"Clàraich a-steach","Sign up now":"Clàraich a-nis","Sort by":"Seòrsaich a-rèir","Start the conversation":"Tòisich an deasbad","The linked comment is no longer available.":"","This comment has been hidden.":"Chaidh am beachd seo a chur am falach.","This comment has been removed.":"Chaidh am beachd seo a sguabadh às.","Upgrade now":"Àrdaich a-nis","View in admin":"",Yesterday:"An-dè","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Thèid an iarrtas agad a chur gu neach-seilbh an làrach-lìn seo."},qR={"{amount} characters left":"נותרו עוד {amount} תווים","{amount} comments":"{amount} תגובות","{amount} hrs ago":"לפני {amount} שעות","{amount} mins ago":"לפני {amount} דקות","{amount} more":"עוד {amount}","1 comment":"תגובה אחת","Add comment":"הוסיפו תגובה","Add context to your comment, share your name and expertise to foster a healthy discussion.":"הוסיפו תוכן לתגובה שלכם, שתפו את שמכם ואת התמחותכם כדי לקדם דיון בריא.","Add reply":"הוסיפו תגובה","Add your expertise":"","Already a member?":"כבר רשומים?",Anonymous:"אנונימי","Are you sure?":"","Become a member of {publication} to start commenting.":"הירשמו כחברי {publication} כדי להתחיל להגיב.","Become a paid member of {publication} to start commenting.":"הירשמו כחברי משלמים של {publication} כדי להתחיל להגיב.",Best:"",Cancel:"ביטול",Comment:"תגובה","Commenting disabled":"","Complete your profile":"השלימו את הפרופיל שלכם",Delete:"מחיקה",Deleted:"","Deleted member":"חבר שנמחק",Deleting:"",Discussion:"דיון",Edit:"עריכה","Edit this comment":"ערכו תגובה זו",edited:"נערך","Enter your name":"כתבו את שמכם",Expertise:"ניסיון","Founder @ Acme Inc":"מייסד @ Acme Inc","Full-time parent":"הורה במשרה מלאה","Head of Marketing at Acme, Inc":"ראש אגף שיווק ב- Acme, Inc","Hidden for members":"",Hide:"הסתר","Hide comment":"הסתר תגובה","Jamie Larson":"ג׳יימי לרסון","Join the discussion":"הצטרפו לדיון","Just now":"ממש עכשיו","Load more ({amount})":"","Local resident":"תושב מקומי","Member discussion":"דיון חברים רשומים",Name:"שם",Neurosurgeon:"נוֹיְרוֹכִירוּרְג",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"לפני שעה","One min ago":"לפני דקה",removed:"","Replied to":"",Reply:"תגובה","Reply to":"","Reply to comment":"הגיבו לתגובה",Report:"דיווח","Report comment":"דווחו על תגובה","Report this comment?":"האם לדווח על תגובה זו?",Save:"שמירה",Sending:"שליחה",Sent:"שלחנו",Show:"להציג","Show {amount} more replies":"להציג עוד {amount} תגובות","Show 1 more reply":"להציג תגובה נוספת","Show comment":"להציג תגובה","Sign in":"היכנסו","Sign up now":"הירשמו עכשיו","Sort by":"למיין לפי","Start the conversation":"התחילו את השיחה","The linked comment is no longer available.":"","This comment has been hidden.":"התגובה הזו הוסתרה.","This comment has been removed.":"התגובה הזו הוסרה.","Upgrade now":"שדרגו עכשיו","View in admin":"",Yesterday:"אתמול","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"בקשתך תישלח לבעלים של האתר הזה."},GR={"{amount} characters left":"{amount} अक्षर बाकी","{amount} comments":"{amount} टिप्पणियाँ","{amount} hrs ago":"{amount} घंटे पहले","{amount} mins ago":"{amount} मिनट पहले","{amount} more":"{amount} और","1 comment":"1 टिप्पणी","Add comment":"टिप्पणी जोड़ें","Add context to your comment, share your name and expertise to foster a healthy discussion.":"अपनी टिप्पणी में संदर्भ जोड़ें, स्वस्थ चर्चा के लिए अपना नाम और विशेषज्ञता साझा करें।","Add reply":"जवाब जोड़ें","Add your expertise":"अपनी विशेषज्ञता जोड़ें","Already a member?":"पहले से सदस्य हैं?",Anonymous:"अनाम","Are you sure?":"क्या आप सुनिश्चित हैं?","Become a member of {publication} to start commenting.":"टिप्पणी शुरू करने के लिए {publication} का सदस्य बनें।","Become a paid member of {publication} to start commenting.":"टिप्पणी शुरू करने के लिए {publication} के भुगतान सदस्य बनें।",Best:"सर्वश्रेष्ठ",Cancel:"रद्द करें",Comment:"टिप्पणी","Commenting disabled":"","Complete your profile":"अपनी प्रोफ़ाइल पूरी करें",Delete:"हटाएं",Deleted:"हटा दिया गया","Deleted member":"हटाए गए सदस्य",Deleting:"हटाया जा रहा है",Discussion:"चर्चा",Edit:"संपादित करें","Edit this comment":"इस टिप्पणी को संपादित करें",edited:"संपादित किया गया","Enter your name":"अपना नाम दर्ज करें",Expertise:"विशेषज्ञता","Founder @ Acme Inc":"संस्थापक @ Acme Inc","Full-time parent":"पूर्णकालिक माता-पिता","Head of Marketing at Acme, Inc":"Acme, Inc में विपणन प्रमुख","Hidden for members":"सदस्यों के लिए छिपाया गया",Hide:"छिपाएं","Hide comment":"टिप्पणी छिपाएं","Jamie Larson":"राहुल शर्मा","Join the discussion":"चर्चा में शामिल हों","Just now":"अभी","Load more ({amount})":"और लोड करें ({amount})","Local resident":"स्थानीय निवासी","Member discussion":"सदस्य चर्चा",Name:"नाम",Neurosurgeon:"न्यूरोसर्जन",Newest:"नवीनतम",Oldest:"सबसे पुराना","Once deleted, this comment can’t be recovered.":"एक बार हटाए जाने के बाद, इस टिप्पणी को पुनः प्राप्त नहीं किया जा सकता।","One hour ago":"एक घंटा पहले","One min ago":"एक मिनट पहले",removed:"हटा दिया गया","Replied to":"को जवाब दिया",Reply:"जवाब दें","Reply to":"को जवाब दें","Reply to comment":"टिप्पणी का जवाब दें",Report:"रिपोर्ट","Report comment":"टिप्पणी की रिपोर्ट करें","Report this comment?":"क्या आप इस टिप्पणी की रिपोर्ट करना चाहते हैं?",Save:"सहेजें",Sending:"भेजा जा रहा है",Sent:"भेजा गया",Show:"दिखाएं","Show {amount} more replies":"{amount} और जवाब दिखाएं","Show 1 more reply":"1 और जवाब दिखाएं","Show comment":"टिप्पणी दिखाएं","Sign in":"साइन इन करें","Sign up now":"अभी साइनअप करें","Sort by":"क्रमबद्ध करें","Start the conversation":"बातचीत शुरू करें","The linked comment is no longer available.":"","This comment has been hidden.":"इस टिप्पणी को छिपा दिया गया है।","This comment has been removed.":"इस टिप्पणी को हटा दिया गया है।","Upgrade now":"अब उन्नत करें","View in admin":"",Yesterday:"कल","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"आपका अनुरोध इस साइट के मालिक को भेजा जाएगा।"},QR={"{amount} characters left":"{amount} znakova preostalo","{amount} comments":"{amount} komentara","{amount} hrs ago":"Prije {amount} sati","{amount} mins ago":"Prije {amount} minuta","{amount} more":"{amount} više","1 comment":"1 komentar","Add comment":"Dodaj komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dajte kontekts vašem komentaru, podijelite vaše ime i znanje za unaprijeđenje svake rasprave.","Add reply":"Dodaj odgovor","Add your expertise":"","Already a member?":"Već si član?",Anonymous:"Anonimus","Are you sure?":"","Become a member of {publication} to start commenting.":"Postani član {publication} za mogućnost komentiranja.","Become a paid member of {publication} to start commenting.":"Plati pretplatu na {publication} za mogućnost komentiranja.",Best:"",Cancel:"Prekini",Comment:"Komentar","Commenting disabled":"","Complete your profile":"Dovrši svoj profil",Delete:"Obriši",Deleted:"","Deleted member":"Obrisan član",Deleting:"",Discussion:"Rasprava",Edit:"Uredi","Edit this comment":"Uredi ovaj komentar",edited:"uređen","Enter your name":"Unesite vaše ime",Expertise:"Stručnost","Founder @ Acme Inc":"Osnivač Acme Inc","Full-time parent":"Full-time Roditelj","Head of Marketing at Acme, Inc":"Voditelj marketinga Acme, Inc","Hidden for members":"",Hide:"Sakrij","Hide comment":"Sakrij komentar","Jamie Larson":"Jamie Larson","Join the discussion":"Pridruži se raspravi","Just now":"Upravo sada","Load more ({amount})":"","Local resident":"Lokalni stanovnik","Member discussion":"Rasprava članova",Name:"Ime",Neurosurgeon:"Neurokirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Prije jednog sata","One min ago":"Prije jedne minute",removed:"","Replied to":"",Reply:"Odgovori","Reply to":"","Reply to comment":"Odgovori na komentar",Report:"Prijavi","Report comment":"Prijavi komentar","Report this comment?":"Prijaviti ovaj komentar?",Save:"Spremi",Sending:"Slanje",Sent:"Poslano",Show:"Prikaži","Show {amount} more replies":"Prikaži još {amount} odgovora","Show 1 more reply":"Prikaži još jedan odgovor","Show comment":"Prikaži komentar","Sign in":"Prijava","Sign up now":"Registriraj se sada","Sort by":"","Start the conversation":"Pokreni razgovor","The linked comment is no longer available.":"","This comment has been hidden.":"Ovaj komentar je skriven","This comment has been removed.":"Ovaj komentar je maknut","Upgrade now":"Nadogradite sada","View in admin":"",Yesterday:"Jučer","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Vaš zahtjev će se poslati vasniku ovih web stranica."},ZR={"{amount} characters left":"{amount} karakter maradt","{amount} comments":"{amount} hozzászólás","{amount} hrs ago":"{amount} órája","{amount} mins ago":"{amount} perce","{amount} more":"{amount} még","1 comment":"1 hozzászólás","Add comment":"Hozzászólás","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Segítsd a beszélgetést azzal, hogy megadod a nevedet és azt, hogy mihez értesz.","Add reply":"Válasz","Add your expertise":"Add meg a szakterületedet","Already a member?":"Van már fiókod?",Anonymous:"Anonim","Are you sure?":"Biztos vagy benne?","Become a member of {publication} to start commenting.":"Csatlakozz a támogató {publication} közösséghez, hogy hozzászólhass a tartalmakhoz.","Become a paid member of {publication} to start commenting.":"Csatlakozz a fizető {publication} közösséghez, hogy hozzászólhass a tartalmakhoz.",Best:"Legjobb",Cancel:"Mégse",Comment:"Hozzászólás","Commenting disabled":"","Complete your profile":"Profil befejezése",Delete:"Törlés",Deleted:"Törölt","Deleted member":"Törölt tag",Deleting:"Törölni",Discussion:"Hozzászólások",Edit:"Szerkesztés","Edit this comment":"Hozzászólás szerkesztése",edited:"szerkesztve","Enter your name":"Add meg a nevedet",Expertise:"Foglalkozás","Founder @ Acme Inc":"A(z) @ Sirály Kft. alapítója","Full-time parent":"Főállású szülő","Head of Marketing at Acme, Inc":"Marketingvezető — Sirály Kft.","Hidden for members":"A tagok számára elrejtve",Hide:"Elrejtés","Hide comment":"Hozzászólás elrejtése","Jamie Larson":"Kiss Sára","Join the discussion":"Csatlakozz a beszélgetéshez","Just now":"Épp most","Load more ({amount})":"Továbbiak betöltése ({amount})","Local resident":"Helyi lakos","Member discussion":"Tagok beszélgetése",Name:"Név",Neurosurgeon:"Idegsebész",Newest:"Legújabb",Oldest:"Legrégebbi","Once deleted, this comment can’t be recovered.":"A törlés után ez a hozzászólás nem állítható vissza.","One hour ago":"Egy órája","One min ago":"Egy perce",removed:"eltávolítva","Replied to":"Válaszolt erre",Reply:"Válasz","Reply to":"Válasz","Reply to comment":"Válasz a hozzászólásra",Report:"Jelentés","Report comment":"Hozzászólás jelentése","Report this comment?":"Szeretnéd jelenteni ezt a hozzászólást?",Save:"Mentés",Sending:"Küldés",Sent:"Elküldve",Show:"Mutat","Show {amount} more replies":"Mutass még {amount} választ","Show 1 more reply":"Mutass még egy választ","Show comment":"Hozzászólás mutatása","Sign in":"Bejelentkezés","Sign up now":"Regisztrálj most","Sort by":"Rendezés","Start the conversation":"Kezdd el a beszélgetést","The linked comment is no longer available.":"","This comment has been hidden.":"Ezt a hozzászólást elrejtettük.","This comment has been removed.":"Ezt a hozzászólást töröltük.","Upgrade now":"Előfizetéssel te is hozzászólhatsz","View in admin":"",Yesterday:"Tegnap","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"A kérésedet továbbítjuk a weboldal tulajdonosának."},XR={"{amount} characters left":"{amount} karakter tersisa","{amount} comments":"{amount} komentar","{amount} hrs ago":"{amount} jam yang lalu","{amount} mins ago":"{amount} menit yang lalu","{amount} more":"{amount} lagi","1 comment":"1 komentar","Add comment":"Tambahkan komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Tambahkan konteks pada komentar Anda, bagikan nama dan keahlian Anda untuk mendorong diskusi yang sehat.","Add reply":"Tambahkan balasan","Add your expertise":"Tambahkan keahlian Anda","Already a member?":"Sudah menjadi anggota?",Anonymous:"Anonim","Are you sure?":"Apakah Anda yakin?","Become a member of {publication} to start commenting.":"Jadilah anggota di {publication} untuk mulai berkomentar.","Become a paid member of {publication} to start commenting.":"Jadilah anggota berbayar di {publication} untuk mulai berkomentar.",Best:"Terbaik",Cancel:"Batal",Comment:"Komentar","Commenting disabled":"","Complete your profile":"Lengkapi profil Anda",Delete:"Hapus",Deleted:"Terhapus","Deleted member":"Anggota dihapus",Deleting:"Menghapus...",Discussion:"Diskusi",Edit:"Edit","Edit this comment":"Edit komentar ini",edited:"diedit","Enter your name":"Masukkan nama Anda",Expertise:"Keahlian","Founder @ Acme Inc":"Founder @ Acme Inc","Full-time parent":"Orang tua penuh waktu","Head of Marketing at Acme, Inc":"Direktur Pemasaran di Acme, Inc","Hidden for members":"Tersembunyi bagi anggota",Hide:"Sembunyikan","Hide comment":"Sembunyikan komentar","Jamie Larson":"Sutan T. Alisjahbana","Join the discussion":"Bergabung dalam diskusi","Just now":"Baru saja","Load more ({amount})":"Tampilkan {amount} lagi","Local resident":"Penduduk lokal","Member discussion":"Diskusi anggota",Name:"Nama",Neurosurgeon:"Ahli Bedah Saraf",Newest:"Paling baru",Oldest:"Paling lama","Once deleted, this comment can’t be recovered.":"Setelah dihapus, komentar ini tidak dapat dipulihkan.","One hour ago":"Satu jam yang lalu","One min ago":"Satu menit yang lalu",removed:"","Replied to":"",Reply:"Balas","Reply to":"","Reply to comment":"Balas komentar",Report:"Laporkan","Report comment":"Laporkan komentar","Report this comment?":"Laporkan komentar ini?",Save:"Simpan",Sending:"Mengirim",Sent:"Terkirim",Show:"Tampilkan","Show {amount} more replies":"Tampilkan {amount} balasan lainnya","Show 1 more reply":"Tampilkan 1 balasan lainnya","Show comment":"Tampilkan komentar","Sign in":"Masuk","Sign up now":"Daftar sekarang","Sort by":"Urutkan berdasarkan","Start the conversation":"Mulai percakapan","The linked comment is no longer available.":"","This comment has been hidden.":"Komentar ini telah disembunyikan.","This comment has been removed.":"Komentar ini telah dihapus.","Upgrade now":"Daftar sekarang","View in admin":"",Yesterday:"Kemarin","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Permintaan Anda akan dikirim kepada pemilik situs ini."},eD={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":""},tD={"{amount} characters left":"{amount} caratteri rimanenti","{amount} comments":"{amount} commenti","{amount} hrs ago":"{amount} ore fa","{amount} mins ago":"{amount} minuti fa","{amount} more":"{amount} in più","1 comment":"1 commento","Add comment":"Aggiungi commento","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Aggiungi dettagli al tuo commento, condividi il tuo nome e le tue competenze per incoraggiare una conversazione sana.","Add reply":"Aggiungi risposta","Add your expertise":"Aggiungi le tue competenze","Already a member?":"Sei già iscritto?",Anonymous:"Anonimo","Are you sure?":"Sei sicuro?","Become a member of {publication} to start commenting.":"Iscriviti a {publication} per poter commentare.","Become a paid member of {publication} to start commenting.":"Abbonati a {publication} per poter commentare.",Best:"Migliori",Cancel:"Annulla",Comment:"Commenta","Commenting disabled":"Commenti disabilitati","Complete your profile":"Completa il tuo profilo",Delete:"Elimina",Deleted:"Eliminato","Deleted member":"Utente eliminato",Deleting:"Eliminazione in corso",Discussion:"Discussione",Edit:"Modifica","Edit this comment":"Modifica questo commento",edited:"modificato","Enter your name":"Inserisci il tuo nome",Expertise:"Competenze","Founder @ Acme Inc":"Megadirettore Galattico","Full-time parent":"Genitore a tempo pieno","Head of Marketing at Acme, Inc":"Ragioniere presso Megaditta","Hidden for members":"Nascosto per gli abbonati",Hide:"Nascondi","Hide comment":"Nascondi commento","Jamie Larson":"Andrea Rossi","Join the discussion":"Partecipa alla discussione","Just now":"Adesso","Load more ({amount})":"Caricane altri {amount}","Local resident":"Paesano","Member discussion":"Commenti",Name:"Nome",Neurosurgeon:"Neurochirurgo",Newest:"Più recenti",Oldest:"Più vecchi","Once deleted, this comment can’t be recovered.":"Una volta cancellato, non potrai più recuperare questo commento","One hour ago":"Un'ora fa","One min ago":"Un minuto fa",removed:"rimosso","Replied to":"Ha risposto a",Reply:"Rispondi","Reply to":"Rispondi a","Reply to comment":"Rispondi al commento",Report:"Segnala","Report comment":"Segnala commento","Report this comment?":"Segnalare questo commento?",Save:"Salva",Sending:"Invio",Sent:"Inviato",Show:"Mostra","Show {amount} more replies":"Mostra altre {amount} risposte","Show 1 more reply":"Mostra un'altra risposta","Show comment":"Mostra commento","Sign in":"Accedi","Sign up now":"Iscriviti ora","Sort by":"Ordina per","Start the conversation":"Commenta per primo","The linked comment is no longer available.":"Il commento collegato non è più disponibile.","This comment has been hidden.":"Questo commento è stato nascosto.","This comment has been removed.":"Questo commento è stato rimosso.","Upgrade now":"Abbonati ora","View in admin":"Visualizza nell'area admin",Yesterday:"Ieri","You can't post comments in this publication.":"Non puoi postare commenti in questa pubblicazione.","You can't post comments in this publication. <a>Contact support</a> for more information.":"Non puoi postare commenti in questa pubblicazione. <a>Contatta il supporto</a> per maggiori informazioni.","Your request will be sent to the owner of this site.":"La tua richiesta sarà inviata al proprietario del sito."},nD={"{amount} characters left":"残り{amount}文字","{amount} comments":"{amount}のコメント","{amount} hrs ago":"{amount}時間前","{amount} mins ago":"{amount}分前","{amount} more":"さらに{amount}個","1 comment":"1のコメント","Add comment":"コメントする","Add context to your comment, share your name and expertise to foster a healthy discussion.":"コメントはよく説明し、名前と専門分野を共有することで健全な議論をすすめましょう。","Add reply":"返信する","Add your expertise":"","Already a member?":"メンバーですか?",Anonymous:"匿名","Are you sure?":"","Become a member of {publication} to start commenting.":"{publication}のメンバーになってコメントを始めましょう。","Become a paid member of {publication} to start commenting.":"{publication}の有料メンバーになってコメントを始めましょう。",Best:"",Cancel:"キャンセル",Comment:"コメント","Commenting disabled":"","Complete your profile":"プロフィールを完成させる",Delete:"削除",Deleted:"","Deleted member":"削除されたメンバー",Deleting:"",Discussion:"議論",Edit:"編集","Edit this comment":"このコメントを編集する",edited:"編集済み","Enter your name":"名前を記入",Expertise:"専門分野","Founder @ Acme Inc":"創業者 @ Acme Inc","Full-time parent":"専業主婦・主夫","Head of Marketing at Acme, Inc":"マーケティング責任者 @ Acme, Inc","Hidden for members":"",Hide:"非表示にする","Hide comment":"コメントを非表示にする","Jamie Larson":"ジェイミー・ラーソン","Join the discussion":"議論に参加する","Just now":"今すぐ参加する","Load more ({amount})":"","Local resident":"地元住民","Member discussion":"メンバーによる議論",Name:"名前",Neurosurgeon:"脳神経外科医",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"1時間前","One min ago":"1分前",removed:"","Replied to":"",Reply:"返信する","Reply to":"","Reply to comment":"コメントに返信する",Report:"通報する","Report comment":"コメントを通報する","Report this comment?":"このコメントを通報しますか?",Save:"保存",Sending:"送信中",Sent:"送信完了",Show:"表示する","Show {amount} more replies":"{amount}個の返信を表示する","Show 1 more reply":"返信をもう1つ表示する","Show comment":"コメントを表示する","Sign in":"ログイン","Sign up now":"今すぐ新規登録する","Sort by":"","Start the conversation":"会話を始める","The linked comment is no longer available.":"","This comment has been hidden.":"このコメントは非表示にされました。","This comment has been removed.":"このコメントは削除されました。","Upgrade now":"今すぐアップデートする","View in admin":"",Yesterday:"昨日","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"あなたのリクエストはこのサイトの管理者に送信されます。"},oD={"{amount} characters left":"{amount}글자 남음","{amount} comments":"{amount}개의 댓글","{amount} hrs ago":"{amount}시간 전","{amount} mins ago":"{amount}분 전","{amount} more":"{amount}개 더보기","1 comment":"1개의 댓글","Add comment":"댓글 추가","Add context to your comment, share your name and expertise to foster a healthy discussion.":"건설적인 토론을 위해 댓글에 맥락을 추가하고, 이름과 전문 분야를 공유해 주세요.","Add reply":"답변 추가","Add your expertise":"","Already a member?":"이미 회원이신가요?",Anonymous:"익명","Are you sure?":"","Become a member of {publication} to start commenting.":"{publication}의 회원이 되어 댓글을 작성해 주세요.","Become a paid member of {publication} to start commenting.":"{publication}의 유료 회원이 되어 댓글을 작성해 주세요.",Best:"",Cancel:"취소",Comment:"댓글","Commenting disabled":"","Complete your profile":"프로필을 완성해 주세요",Delete:"삭제",Deleted:"","Deleted member":"삭제된 회원",Deleting:"",Discussion:"댓글",Edit:"수정","Edit this comment":"댓글 수정",edited:"수정됨","Enter your name":"이름을 입력해 주세요",Expertise:"전문분야","Founder @ Acme Inc":"Acme Inc 창업자","Full-time parent":"전업 부모","Head of Marketing at Acme, Inc":"Acme Inc 마케팅 책임자","Hidden for members":"",Hide:"숨기기","Hide comment":"댓글 숨기기","Jamie Larson":"제이미 라슨","Join the discussion":"댓글에 참여해 주세요","Just now":"방금 전","Load more ({amount})":"","Local resident":"지역 주민","Member discussion":"회원들의 댓글",Name:"이름",Neurosurgeon:"신경외과 의사",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"1시간 전","One min ago":"1분 전",removed:"","Replied to":"",Reply:"답변","Reply to":"","Reply to comment":"댓글에 답변",Report:"신고","Report comment":"댓글 신고","Report this comment?":"이 댓글을 신고하시겠어요?",Save:"저장",Sending:"전송중",Sent:"전송됨",Show:"보기","Show {amount} more replies":"{amount}개의 댓글 더 보기","Show 1 more reply":"1개의 댓글 더 보기","Show comment":"댓글 보기","Sign in":"로그인","Sign up now":"회원가입","Sort by":"정렬 기준","Start the conversation":"댓글을 작성해 주세요","The linked comment is no longer available.":"","This comment has been hidden.":"숨김처리 된 댓글이에요.","This comment has been removed.":"삭제 된 댓글이에요.","Upgrade now":"업그레이드","View in admin":"",Yesterday:"어제","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"운영자에게 요구사항이 전달되었어요."},rD={"{amount} characters left":"{amount} таңба қалды","{amount} comments":"{amount} пікір","{amount} hrs ago":"{amount} сағат бұрын","{amount} mins ago":"{amount} минут бұрын","{amount} more":"тағы {amount}","1 comment":"1 пікір","Add comment":"Пікір қосу","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Талқы қызық болуы үшін өзіңіз туралы мәліметтерді қосыңыз.","Add reply":"Жауап қосу","Add your expertise":"","Already a member?":"Әлдеқашан қосылдыңыз ба?",Anonymous:"Аноним","Are you sure?":"","Become a member of {publication} to start commenting.":"Пікір қалдыру үшін {publication} сайтына аккаунт қажет.","Become a paid member of {publication} to start commenting.":"Пікір қалдыру үшін {publication} сайтына ақылы аккаунт қажет.",Best:"",Cancel:"Бас тарту",Comment:"Пікір","Commenting disabled":"","Complete your profile":"Профиліңізді толтырыңыз",Delete:"Жою",Deleted:"","Deleted member":"Жойылған аккаунт",Deleting:"",Discussion:"Талқы",Edit:"Өңдеу","Edit this comment":"Бұл пікірді өңдеу",edited:"Өңделді","Enter your name":"Есіміңізді жазыңыз",Expertise:"Қызмет","Founder @ Acme Inc":"@ Acme Inc құрылтайшысы","Full-time parent":"Толық күн жұмыс істейтін ата-ана","Head of Marketing at Acme, Inc":"@ Acme маркетинг жетекшісі ","Hidden for members":"",Hide:"Жасыру","Hide comment":"Пікірді жасыру","Jamie Larson":"Пәленше Түгеншиев","Join the discussion":"Талқыға қосылу","Just now":"Дәл қазір","Load more ({amount})":"","Local resident":"Жергілікті тұрғын","Member discussion":"Мүшелер талқысы",Name:"Есімі",Neurosurgeon:"Нейрохирург",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Бір сағат бұрын","One min ago":"Бір минут бұрын",removed:"","Replied to":"",Reply:"Жауап беру","Reply to":"","Reply to comment":"Пікірге жауап беру",Report:"Шағымдану","Report comment":"Пікірге шағымдану","Report this comment?":"Осы пікірге шағым жіберілсін бе?",Save:"Сақтау",Sending:"Жіберілуде",Sent:"Жіберілді",Show:"Көрсету","Show {amount} more replies":"Тағы {amount} жауапты көрсету","Show 1 more reply":"Тағы 1 жауап көрсету","Show comment":"Пікірді көрсету","Sign in":"Кіру","Sign up now":"Қазір тіркелу","Sort by":"","Start the conversation":"Талқыны бастау","The linked comment is no longer available.":"","This comment has been hidden.":"Бұл пікір жасырылды.","This comment has been removed.":"Бұл пікір өшірілді.","Upgrade now":"Жаңарту ","View in admin":"",Yesterday:"Кеше","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Өтінішіңіз сайт иесіне жіберіледі."},iD={"{amount} characters left":"{amount} likę simboliai","{amount} comments":"{amount} komentarai","{amount} hrs ago":"Prieš {amount} val.","{amount} mins ago":"Prieš {amount} min.","{amount} more":"{amount} daugiau","1 comment":"1 komentaras","Add comment":"Rašyti komentarą","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Papildykite savo komentarą, prisistatykite ir pasidalinkite savo turimomis žiniomis, kad paskatintumėte prasmingą diskusiją.","Add reply":"Atsakyti","Add your expertise":"","Already a member?":"Jau turite paskyrą?",Anonymous:"Anoniminis","Are you sure?":"","Become a member of {publication} to start commenting.":"Užsiregistruokite {publication}, kad galėtumėte komentuoti.","Become a paid member of {publication} to start commenting.":"Tapkite {publication} prenumeratoriumi, kad galėtumėte komentuoti.",Best:"",Cancel:"Atšaukti",Comment:"Komentuoti","Commenting disabled":"","Complete your profile":"Pabaikite kurti savo profilį!",Delete:"Ištrinti",Deleted:"","Deleted member":"Pašalintas narys",Deleting:"",Discussion:"Diskusija",Edit:"Redaguoti","Edit this comment":"Redaguoti šį komentarą",edited:"redaguotas","Enter your name":"Įrašykite savo vardą",Expertise:"Specializacija","Founder @ Acme Inc":"Istorikas","Full-time parent":"Vaiką prižiūrintis tėvas","Head of Marketing at Acme, Inc":"Tyrinėtojas","Hidden for members":"",Hide:"Paslėpti","Hide comment":"Paslėpti komentarą","Jamie Larson":"Vardenis Pavardenis","Join the discussion":"Prisijunkite prie diskusijos","Just now":"Ką tik","Load more ({amount})":"","Local resident":"Vietinis gyventojas","Member discussion":"Komentarai",Name:"Vardas",Neurosurgeon:"Neurochirurgas",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Prieš valandą","One min ago":"Prieš minutę",removed:"","Replied to":"",Reply:"Atsakyti","Reply to":"","Reply to comment":"Atsakyti į komentarą",Report:"Pranešti","Report comment":"Pranešti apie komentarą","Report this comment?":"Pranešti apie šį komentarą?",Save:"Išsaugoti",Sending:"Siunčiama",Sent:"Išsiųsta",Show:"Rodyti","Show {amount} more replies":"Rodyti daugiau atsakymų ({amount})","Show 1 more reply":"Rodyti dar 1 atsakymą","Show comment":"Rodyti komentarą","Sign in":"Prisijungti","Sign up now":"Registruotis","Sort by":"","Start the conversation":"Parašykite pirmąjį komentarą","The linked comment is no longer available.":"","This comment has been hidden.":"Šis komentaras buvo paslėptas.","This comment has been removed.":"Šis komentaras buvo pašalintas.","Upgrade now":"Prenumeruokite","View in admin":"",Yesterday:"Vakar","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Jūsų pranešimas bus išsiųstas svetainės savininkui."},sD={"{amount} characters left":"Atlikušas {amount} rakstzīmes","{amount} comments":"{amount} komentāri","{amount} hrs ago":"pirms {amount} stundām","{amount} mins ago":"Pirms {amount} minūtēm","{amount} more":"Vēl {amount}","1 comment":"1 komentārs","Add comment":"Pievienot komentāru","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Pievienojiet savam komentāram kontekstu, kopīgojiet savu vārdu un zināšanas, lai veicinātu veselīgu diskusiju.","Add reply":"Pievienot atbildi","Add your expertise":"","Already a member?":"Vai jau esat dalībnieks?",Anonymous:"Anonīms","Are you sure?":"Vai esat pārliecināts?","Become a member of {publication} to start commenting.":"Kļūstiet par {publication} dalībnieku, lai sāktu komentēt.","Become a paid member of {publication} to start commenting.":"Kļūstiet par apmaksātu {publication} dalībnieku, lai sāktu komentēt.",Best:"",Cancel:"Atcelt",Comment:"Komentēt","Commenting disabled":"","Complete your profile":"Pabeidziet savu profilu",Delete:"Dzēst",Deleted:"Izdzēsts","Deleted member":"Dzēsts dalībnieks",Deleting:"Dzēšana",Discussion:"Diskusija",Edit:"Rediģēt","Edit this comment":"Rediģēt šo komentāru",edited:"rediģēts","Enter your name":"Ievadiet savu vārdu",Expertise:"Ekspertīze","Founder @ Acme Inc":"Dibinātājs @ Acme Inc","Full-time parent":"Pilnas slodzes vecāks","Head of Marketing at Acme, Inc":"Mārketinga vadītājs uzņēmumā Acme, Inc","Hidden for members":"Paslēpts dalībniekiem",Hide:"Slēpt","Hide comment":"Slēpt komentāru","Jamie Larson":"Jānis Reikulis","Join the discussion":"Pievienojieties diskusijai","Just now":"Tikai tagad","Load more ({amount})":"","Local resident":"Vietējais iedzīvotājs","Member discussion":"Biedru diskusija",Name:"Vārds",Neurosurgeon:"Neiroķirurgs",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Pēc dzēšanas šo komentāru nevar atgūt.","One hour ago":"Pirms stundas","One min ago":"Pirms minūtes",removed:"noņemts","Replied to":"Atbildēja uz",Reply:"Atbildēt","Reply to":"Atbildēt uz","Reply to comment":"Atbildēt uz komentāru",Report:"Ziņojums","Report comment":"Ziņot par komentāru","Report this comment?":"Vai ziņot par šo komentāru?",Save:"Saglabāt",Sending:"Notiek nosūtīšana",Sent:"Nosūtīts",Show:"Rādīt","Show {amount} more replies":"Rādīt vēl {amount} atbildes","Show 1 more reply":"Rādīt vēl 1 atbildi","Show comment":"Rādīt komentāru","Sign in":"Pierakstīties","Sign up now":"Reģistrējieties tūlīt","Sort by":"Kārtot pēc","Start the conversation":"Sāciet sarunu","The linked comment is no longer available.":"","This comment has been hidden.":"Šis komentārs ir paslēpts.","This comment has been removed.":"Šis komentārs ir noņemts.","Upgrade now":"Jauniniet tūlīt","View in admin":"",Yesterday:"Vakar","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Jūsu pieprasījums tiks nosūtīts šīs vietnes īpašniekam."},aD={"{amount} characters left":"Преостануваат {amount} знаци.","{amount} comments":"{amount} коментари","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"Уште {amount}","1 comment":"1 коментар","Add comment":"Додајте коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додајте контекст за вашиот коментар, споделете го вашето име и експертиза за да одржите пристојна дискусија.","Add reply":"Одговорете","Add your expertise":"","Already a member?":"Веќе сте член?",Anonymous:"Анонимен","Are you sure?":"","Become a member of {publication} to start commenting.":"Станете член на {publication} за да можете да коментирате.","Become a paid member of {publication} to start commenting.":"Станете претплатен член на {publication} за да можеш да коментирате.",Best:"",Cancel:"Откажете",Comment:"Коментирајте","Commenting disabled":"","Complete your profile":"Комплетирајте го вашиот профил",Delete:"Избришете",Deleted:"","Deleted member":"Избришан член",Deleting:"",Discussion:"Разговор",Edit:"Изменете","Edit this comment":"Изменете го овој коментар",edited:"","Enter your name":"Внесете го вашето име",Expertise:"Експертиза","Founder @ Acme Inc":"Основач @ Примерна Компанија","Full-time parent":"Родител","Head of Marketing at Acme, Inc":"Раководител на Маркетинг во Примерна Компанија","Hidden for members":"",Hide:"Скријте","Hide comment":"Скријте го коментарот","Jamie Larson":"Петар Петровски","Join the discussion":"Приклучете се во разговорот","Just now":"Штотуку","Load more ({amount})":"","Local resident":"Локал жител","Member discussion":"Разговор на членовите",Name:"Име",Neurosurgeon:"Неврохирург",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Пред еден час","One min ago":"",removed:"","Replied to":"",Reply:"Одговорете","Reply to":"","Reply to comment":"Одговор на коментарот",Report:"Пријавете","Report comment":"Пријавете коментар","Report this comment?":"Пријавете го овој коментар?",Save:"Зачувајте",Sending:"Се испраќа",Sent:"Испратено",Show:"Покажи","Show {amount} more replies":"Покажи уште {amount} одговори","Show 1 more reply":"Покажи уште 1 одговор","Show comment":"Покажи коментар","Sign in":"Најавете се","Sign up now":"Регистрирајте се","Sort by":"","Start the conversation":"Започнете го разговорот","The linked comment is no longer available.":"","This comment has been hidden.":"Овој коментар беше скриен.","This comment has been removed.":"Овој коментар беше отстранет.","Upgrade now":"Надградете","View in admin":"",Yesterday:"Вчера","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Вашето барање ќе биде испратено на сопственикот на оваа страница."},lD={"{amount} characters left":"{amount} тэмдэгт үлдсэн","{amount} comments":"{amount} сэтгэгдэл","{amount} hrs ago":"{amount} цагийн өмнө","{amount} mins ago":"{amount} минутын өмнө","{amount} more":"{amount} илүү","1 comment":"1 сэтгэгдэл","Add comment":"Сэтгэгдэл нэмэх","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Сэтгэгдэлдээ илүү мэдээлэл оруулан, нэр болон мэргэжлээ хуваалцаж, үр бүтээлтэй хэлэлцүүлэг өрнүүлнэ үү.","Add reply":"Хариу нэмэх","Add your expertise":"","Already a member?":"Бүртгэлтэй юу?",Anonymous:"Нууц","Are you sure?":"Та итгэлтэй байна уу?","Become a member of {publication} to start commenting.":"Сэтгэгдэл бичихийн тулд {publication}-н гишүүн болно уу.","Become a paid member of {publication} to start commenting.":"Сэтгэгдэл бичихийн тулд {publication}-н төлбөртэй гишүүн болно уу.",Best:"",Cancel:"Цуцлах",Comment:"Сэтгэгдэл","Commenting disabled":"","Complete your profile":"Профайлаа бүрэн бөглөнө үү",Delete:"Устгах",Deleted:"Устгагдсан","Deleted member":"Устгагдсан гишүүн",Deleting:"Устгаж байна",Discussion:"Хэлэлцүүлэг",Edit:"Засах","Edit this comment":"Энэхүү сэтгэгдлийг засах",edited:"засагдсан","Enter your name":"Нэрээ оруулна уу",Expertise:"Мэргэжил","Founder @ Acme Inc":"Acme Inc-н үүсгэн байгуулагч","Full-time parent":"Бүтэн цагийн эцэг/эх","Head of Marketing at Acme, Inc":"Acme, Inc-н маркетингийн удирдлага","Hidden for members":"Гишүүдээс нуугдсан",Hide:"Нуух","Hide comment":"Сэтгэгдлийг нуух","Jamie Larson":"Доржийн Бат","Join the discussion":"Хэлэлцүүлэгт нэгдэх","Just now":"Дөнгөж сая","Load more ({amount})":"Дахин харах ({amount})","Local resident":"Орон нутгийн оршин суугч","Member discussion":"Гишүүдийн хэлэлцүүлэг",Name:"Нэр",Neurosurgeon:"Мэдрэлийн мэс засалч",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Устгасны дараа энэ сэтгэгдлийг сэргээх боломжгүй.","One hour ago":"Нэг цагийн өмнө","One min ago":"Нэг минутын өмнө",removed:"хасагдсан","Replied to":"Хариулсан",Reply:"Хариулах","Reply to":"Хариулах","Reply to comment":"Сэтгэгдэлд хариулах",Report:"Мэдэгдэх","Report comment":"Сэтгэгдлийг мэдэгдэх","Report this comment?":"Энэ сэтгэгдлийг мэдэгдэх үү?",Save:"Хадгалах",Sending:"Илгээж байна",Sent:"Илгээгдсэн",Show:"Харуулах","Show {amount} more replies":"{amount} хариултыг харуулах","Show 1 more reply":"1 хариултыг харуулах","Show comment":"Сэтгэгдлийг харуулах","Sign in":"Нэвтрэх","Sign up now":"Одоо бүртгүүлэх","Sort by":"Эрэмбэлэх","Start the conversation":"Яриаг эхлүүлэх","The linked comment is no longer available.":"","This comment has been hidden.":"Энэ сэтгэгдэл нуугдсан.","This comment has been removed.":"Энэ сэтгэгдэл хасагдсан.","Upgrade now":"Одоо шинэчлэх","View in admin":"",Yesterday:"Өчигдөр","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Таны хүсэлт энэ сайтын эзэмшигч рүү илгээгдэнэ."},cD={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":""},uD={"{amount} characters left":"{amount} tegn igjen","{amount} comments":"{amount} kommentarer","{amount} hrs ago":"{amount} timer siden","{amount} mins ago":"{amount} minutter siden","{amount} more":"{amount} mer","1 comment":"1 kommentar","Add comment":"Legg til kommentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Legg til kontekst i kommentaren din, del navnet ditt og ekspertisen din for å fremme en god diskusjon.","Add reply":"Legg til svar","Add your expertise":"","Already a member?":"Allerede medlem?",Anonymous:"Anonym","Are you sure?":"Er du sikker?","Become a member of {publication} to start commenting.":"Bli medlem av {publication} for å begynne å kommentere.","Become a paid member of {publication} to start commenting.":"Bli et betalende medlem av {publication} for å begynne å kommentere.",Best:"",Cancel:"Avbryt",Comment:"Kommentar","Commenting disabled":"","Complete your profile":"Fullfør profilen din",Delete:"Slett",Deleted:"Slettet","Deleted member":"Slettet medlem",Deleting:"Sletter",Discussion:"Diskusjon",Edit:"Rediger","Edit this comment":"Rediger denne kommentaren",edited:"redigert","Enter your name":"Skriv inn navnet ditt",Expertise:"Ekspertise","Founder @ Acme Inc":"Grunnlegger @ Acme Inc","Full-time parent":"Forelder på heltid","Head of Marketing at Acme, Inc":"Markedsføringsleder hos Acme Inc","Hidden for members":"Skjult for medlemmer",Hide:"Skjul","Hide comment":"Skjul kommentar","Jamie Larson":"Jamie Larson","Join the discussion":"Delta i diskusjonen","Just now":"Akkurat nå","Load more ({amount})":"Last inn flere ({amount})","Local resident":"Lokal innbygger","Member discussion":"Medlemsdiskusjon",Name:"Navn",Neurosurgeon:"Nevrokirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"En time siden","One min ago":"Ett minutt siden",removed:"fjernet","Replied to":"Svarte",Reply:"Svar","Reply to":"Svar på","Reply to comment":"Svar på kommentar",Report:"Rapporter","Report comment":"Rapporter kommentar","Report this comment?":"Rapportere denne kommentaren?",Save:"Lagre",Sending:"Sender",Sent:"Sendt",Show:"Vis","Show {amount} more replies":"Vis {amount} flere svar","Show 1 more reply":"Vis ett svar til","Show comment":"Vis kommentar","Sign in":"Logg inn","Sign up now":"Registrer deg nå","Sort by":"Sorter etter","Start the conversation":"Start samtalen","The linked comment is no longer available.":"","This comment has been hidden.":"Denne kommentaren er skjult.","This comment has been removed.":"Denne kommentaren er fjernet.","Upgrade now":"Oppgrader nå","View in admin":"",Yesterday:"I går","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Din forespørsel vil bli sendt til eieren av dette nettstedet."},dD={"{amount} characters left":"{amount} अक्षर बाँकी","{amount} comments":"{amount} प्रतिक्रियाहरू","{amount} hrs ago":"{amount} घण्टा अघि","{amount} mins ago":"{amount} मिनेट अघि","{amount} more":"{amount} थप","1 comment":"१ प्रतिक्रिया","Add comment":"प्रतिक्रिया थप्नुहोस्","Add context to your comment, share your name and expertise to foster a healthy discussion.":"आफ्नो प्रतिक्रियालाई सन्दर्भ दिनुहोस्, स्वस्थ छलफलको लागि आफ्नो नाम र विशेषज्ञता साझा गर्नुहोस्।","Add reply":"प्रत्युत्तर थप्नुहोस्","Add your expertise":"आफ्नो विशेषज्ञता थप्नुहोस्","Already a member?":"पहिले नै सदस्य हुनुहुन्छ?",Anonymous:"अज्ञात","Are you sure?":"के तपाईं निश्चित हुनुहुन्छ?","Become a member of {publication} to start commenting.":"प्रतिक्रिया सुरु गर्न {publication} को सदस्य बन्नुहोस्।","Become a paid member of {publication} to start commenting.":"प्रतिक्रिया सुरु गर्न {publication} को सशुल्क सदस्य बन्नुहोस्।",Best:"उत्तम",Cancel:"रद्द गर्नुहोस्",Comment:"प्रतिक्रिया","Commenting disabled":"","Complete your profile":"आफ्नो प्रोफाइल पूरा गर्नुहोस्",Delete:"मेटाउनुहोस्",Deleted:"मेटाइयो","Deleted member":"मेटाइएको सदस्य",Deleting:"मेटाइँदैछ",Discussion:"छलफल",Edit:"सम्पादन","Edit this comment":"यो प्रतिक्रिया सम्पादन गर्नुहोस्",edited:"सम्पादित","Enter your name":"आफ्नो नाम प्रविष्ट गर्नुहोस्",Expertise:"विशेषज्ञता","Founder @ Acme Inc":"संस्थापक @ Acme Inc","Full-time parent":"पूर्ण-कालीन अभिभावक","Head of Marketing at Acme, Inc":"Acme, Inc मा मार्केटिङ प्रमुख","Hidden for members":"सदस्यहरूका लागि लुकाइएको",Hide:"लुकाउनुहोस्","Hide comment":"प्रतिक्रिया लुकाउनुहोस्","Jamie Larson":"जेमी लार्सन","Join the discussion":"छलफलमा सामेल हुनुहोस्","Just now":"भर्खरै","Load more ({amount})":"थप लोड गर्नुहोस् ({amount})","Local resident":"स्थानीय बासिन्दा","Member discussion":"सदस्य छलफल",Name:"नाम",Neurosurgeon:"न्यूरोसर्जन",Newest:"सबैभन्दा नयाँ",Oldest:"सबैभन्दा पुरानो","Once deleted, this comment can’t be recovered.":"एक पटक मेटाइएपछि, यो प्रतिक्रिया पुन: प्राप्त गर्न सकिँदैन।","One hour ago":"एक घण्टा अघि","One min ago":"एक मिनेट अघि",removed:"हटाइयो","Replied to":"प्रत्युत्तर दिइयो",Reply:"प्रत्युत्तर दिनुहोस्","Reply to":"प्रत्युत्तर दिनुहोस्","Reply to comment":"प्रतिक्रियाको प्रत्युत्तर दिनुहोस्",Report:"रिपोर्ट गर्नुहोस्","Report comment":"प्रतिक्रिया रिपोर्ट गर्नुहोस्","Report this comment?":"यो प्रतिक्रिया रिपोर्ट गर्नुहुन्छ?",Save:"बचत गर्नुहोस्",Sending:"पठाइँदैछ",Sent:"पठाइयो",Show:"देखाउनुहोस्","Show {amount} more replies":"थप {amount} प्रत्युत्तरहरू देखाउनुहोस्","Show 1 more reply":"थप १ प्रत्युत्तर देखाउनुहोस्","Show comment":"प्रतिक्रिया देखाउनुहोस्","Sign in":"साइन इन गर्नुहोस्","Sign up now":"अहिले दर्ता गर्नुहोस्","Sort by":"क्रमबद्ध गर्नुहोस्","Start the conversation":"कुराकानी सुरु गर्नुहोस्","The linked comment is no longer available.":"","This comment has been hidden.":"यो प्रतिक्रिया लुकाइएको छ।","This comment has been removed.":"यो प्रतिक्रिया हटाइएको छ।","Upgrade now":"अहिले अपग्रेड गर्नुहोस्","View in admin":"",Yesterday:"हिजो","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"तपाईंको अनुरोध यस साइटको मालिकलाई पठाइनेछ।"},mD={"{amount} characters left":"Nog {amount} tekens over","{amount} comments":"{amount} reacties","{amount} hrs ago":"{amount} uur geleden","{amount} mins ago":"{amount} min geleden","{amount} more":"Nog {amount}","1 comment":"Eén reactie","Add comment":"Versturen","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Voeg context toe aan je reactie, deel je naam en expertise om een gezonde discussie te bevorderen.","Add reply":"Beantwoorden","Add your expertise":"","Already a member?":"Al lid?",Anonymous:"Anoniem","Are you sure?":"Weet je het zeker?","Become a member of {publication} to start commenting.":"Word lid van {publication} om te kunnen reageren.","Become a paid member of {publication} to start commenting.":"Word betalend lid van {publication} om te kunnen reageren.",Best:"",Cancel:"Annuleren",Comment:"Verstuur","Commenting disabled":"","Complete your profile":"Vervolledig jouw profiel",Delete:"Verwijderen",Deleted:"Verwijderd","Deleted member":"Verwijderd lid",Deleting:"Wordt verwijderd",Discussion:"Gesprek",Edit:"Bewerken","Edit this comment":"Bewerk deze reactie",edited:"bewerkt","Enter your name":"Vul je naam in",Expertise:"Expertise","Founder @ Acme Inc":"Oprichter, Acme BV","Full-time parent":"Full-time ouder","Head of Marketing at Acme, Inc":"Acme BV, Hoofd Marketing","Hidden for members":"Verborgen voor leden",Hide:"Verbergen","Hide comment":"Verberg reactie","Jamie Larson":"Jan Jansen","Join the discussion":"Doe mee aan het gesprek","Just now":"Zojuist","Load more ({amount})":"Laad meer ({amount})","Local resident":"Lokale bewoner","Member discussion":"Gesprek",Name:"Naam",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Eenmaal verwijderd, kan deze reactie niet meer worden hersteld.","One hour ago":"Eén uur geleden","One min ago":"Eén min geleden",removed:"verwijderd","Replied to":"Geantwoord op",Reply:"Beantwoorden","Reply to":"Antwoord op","Reply to comment":"Beantwoord deze reactie",Report:"Melden","Report comment":"Meld reactie","Report this comment?":"Meld deze reactie?",Save:"Opslaan",Sending:"Verzenden",Sent:"Verzonden",Show:"Tonen","Show {amount} more replies":"Toon {amount} extra antwoorden","Show 1 more reply":"Toon nog 1 antwoord","Show comment":"Toon reactie","Sign in":"Inloggen","Sign up now":"Registreren","Sort by":"Sorteren op","Start the conversation":"Begin het gesprek","The linked comment is no longer available.":"","This comment has been hidden.":"Deze reactie is verborgen.","This comment has been removed.":"Deze reactie is verwijderd.","Upgrade now":"Upgrade nu","View in admin":"",Yesterday:"Gisteren","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Jouw melding zal worden verzonden naar de eigenaar van deze site."},fD={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":""},pD={"{amount} characters left":"{amount} ਅੱਖਰ ਬਾਕੀ","{amount} comments":"{amount} ਟਿੱਪਣੀਆਂ","{amount} hrs ago":"{amount} ਘੰਟੇ ਪਹਿਲਾਂ","{amount} mins ago":"{amount} ਮਿੰਟ ਪਹਿਲਾਂ","{amount} more":"{amount} ਹੋਰ","1 comment":"1 ਟਿੱਪਣੀ","Add comment":"ਟਿੱਪਣੀ ਸ਼ਾਮਲ ਕਰੋ","Add context to your comment, share your name and expertise to foster a healthy discussion.":"ਆਪਣੀ ਟਿੱਪਣੀ ਵਿੱਚ ਸੰਦਰਭ ਸ਼ਾਮਲ ਕਰੋ, ਸਿਹਤਮੰਦ ਵਿਚਾਰ-ਵਟਾਂਦਰੇ ਨੂੰ ਉਤਸ਼ਾਹਿਤ ਕਰਨ ਲਈ ਆਪਣਾ ਨਾਮ ਅਤੇ ਮੁਹਾਰਤ ਸਾਂਝੀ ਕਰੋ।","Add reply":"ਜਵਾਬ ਸ਼ਾਮਲ ਕਰੋ","Add your expertise":"ਆਪਣੀ ਮੁਹਾਰਤ ਸ਼ਾਮਲ ਕਰੋ","Already a member?":"ਪਹਿਲਾਂ ਤੋਂ ਹੀ ਮੈਂਬਰ ਹੋ?",Anonymous:"ਗੁਮਨਾਮ","Are you sure?":"ਕੀ ਤੁਹਾਨੂੰ ਯਕੀਨ ਹੈ?","Become a member of {publication} to start commenting.":"{publication} ਦੇ ਮੈਂਬਰ ਬਣੋ ਅਤੇ ਟਿੱਪਣੀ ਕਰਨਾ ਸ਼ੁਰੂ ਕਰੋ।","Become a paid member of {publication} to start commenting.":"{publication} ਦੇ ਸਹਿਯੋਗੀ ਮੈਂਬਰ ਬਣੋ ਅਤੇ ਟਿੱਪਣੀ ਕਰਨਾ ਸ਼ੁਰੂ ਕਰੋ।",Best:"ਸਭ ਤੋਂ ਵਧੀਆ",Cancel:"ਰੱਦ ਕਰੋ",Comment:"ਟਿੱਪਣੀ","Commenting disabled":"","Complete your profile":"ਆਪਣਾ ਨਿੱਜੀ ਪੰਨਾ ਪੂਰਾ ਕਰੋ",Delete:"ਮਿਟਾਓ",Deleted:"ਮਿਟਾਇਆ ਗਿਆ","Deleted member":"ਮਿਟਾਇਆ ਗਿਆ ਮੈਂਬਰ",Deleting:"ਮਿਟਾਇਆ ਜਾ ਰਿਹਾ ਹੈ",Discussion:"ਵਿਚਾਰ-ਵਟਾਂਦਰਾ",Edit:"ਸੰਪਾਦਿਤ ਕਰੋ","Edit this comment":"ਇਸ ਟਿੱਪਣੀ ਨੂੰ ਸੰਪਾਦਿਤ ਕਰੋ",edited:"ਸੰਪਾਦਿਤ","Enter your name":"ਆਪਣਾ ਨਾਮ ਦਰਜ ਕਰੋ",Expertise:"ਮੁਹਾਰਤ","Founder @ Acme Inc":"ਸੰਸਥਾਪਕ @ ਫਲਾਣੀ ਕੰਪਨੀ","Full-time parent":"ਘਰੇਲੂ ਮਾਪਾ","Head of Marketing at Acme, Inc":"ਮਾਰਕੀਟਿੰਗ ਮੁਖੀ, ਫਲਾਣੀ ਕੰਪਨੀ ਵਿਖੇ","Hidden for members":"ਮੈਂਬਰਾਂ ਲਈ ਛੁਪਾਇਆ ਗਿਆ",Hide:"ਛੁਪਾਓ","Hide comment":"ਟਿੱਪਣੀ ਛੁਪਾਓ","Jamie Larson":"ਫਲਾਣਾ ਫਲਾਣੀ","Join the discussion":"ਵਿਚਾਰ-ਵਟਾਂਦਰੇ ਵਿੱਚ ਸ਼ਾਮਲ ਹੋਵੋ","Just now":"ਹੁਣੇ ਹੁਣੇ","Load more ({amount})":"ਹੋਰ ਲੋਡ ਕਰੋ ({amount})","Local resident":"ਸਥਾਨਕ ਨਿਵਾਸੀ","Member discussion":"ਮੈਂਬਰ ਵਿਚਾਰ-ਵਟਾਂਦਰਾ",Name:"ਨਾਮ",Neurosurgeon:"ਨਿਊਰੋਸਰਜਨ",Newest:"ਸਭ ਤੋਂ ਨਵਾਂ",Oldest:"ਸਭ ਤੋਂ ਪੁਰਾਣਾ","Once deleted, this comment can’t be recovered.":"ਇੱਕ ਵਾਰ ਮਿਟਾਉਣ ਤੋਂ ਬਾਅਦ, ਇਹ ਟਿੱਪਣੀ ਮੁੜ ਪ੍ਰਾਪਤ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕਦੀ।","One hour ago":"ਇੱਕ ਘੰਟਾ ਪਹਿਲਾਂ","One min ago":"ਇੱਕ ਮਿੰਟ ਪਹਿਲਾਂ",removed:"ਹਟਾਇਆ ਗਿਆ","Replied to":"ਨੂੰ ਜਵਾਬ ਦਿੱਤਾ",Reply:"ਜਵਾਬ","Reply to":"ਨੂੰ ਜਵਾਬ ਦਿਓ","Reply to comment":"ਟਿੱਪਣੀ ਦਾ ਜਵਾਬ ਦਿਓ",Report:"ਰਿਪੋਰਟ ਕਰੋ","Report comment":"ਟਿੱਪਣੀ ਦੀ ਰਿਪੋਰਟ ਕਰੋ","Report this comment?":"ਕੀ ਇਸ ਟਿੱਪਣੀ ਦੀ ਰਿਪੋਰਟ ਕਰਨੀ ਹੈ?",Save:"ਸੁਰੱਖਿਅਤ ਕਰੋ",Sending:"ਭੇਜਿਆ ਜਾ ਰਿਹਾ ਹੈ",Sent:"ਭੇਜ ਦਿੱਤਾ ਗਿਆ",Show:"ਦਿਖਾਓ","Show {amount} more replies":"{amount} ਹੋਰ ਜਵਾਬ ਦਿਖਾਓ","Show 1 more reply":"1 ਹੋਰ ਜਵਾਬ ਦਿਖਾਓ","Show comment":"ਟਿੱਪਣੀ ਦਿਖਾਓ","Sign in":"ਸਾਈਨ ਇਨ ਕਰੋ","Sign up now":"ਹੁਣੇ ਸਾਈਨ ਅੱਪ ਕਰੋ","Sort by":"ਇਸ ਅਨੁਸਾਰ ਕ੍ਰਮਬੱਧ ਕਰੋ","Start the conversation":"ਗੱਲਬਾਤ ਸ਼ੁਰੂ ਕਰੋ","The linked comment is no longer available.":"","This comment has been hidden.":"ਇਹ ਟਿੱਪਣੀ ਛੁਪਾ ਦਿੱਤੀ ਗਈ ਹੈ।","This comment has been removed.":"ਇਹ ਟਿੱਪਣੀ ਹਟਾ ਦਿੱਤੀ ਗਈ ਹੈ।","Upgrade now":"ਹੁਣੇ ਅੱਪਗਰੇਡ ਕਰੋ","View in admin":"",Yesterday:"ਕੱਲ੍ਹ","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"ਤੁਹਾਡੀ ਬੇਨਤੀ ਇਸ ਸਾਈਟ ਦੇ ਸੰਚਾਲਕ ਨੂੰ ਭੇਜੀ ਜਾਵੇਗੀ।"},hD={"{amount} characters left":"Pozostało {amount} znaków","{amount} comments":"{amount} komentarzy","{amount} hrs ago":"{amount} godzin temu","{amount} mins ago":"{amount} minut temu","{amount} more":"{amount} więcej","1 comment":"1 komentarz","Add comment":"Dodaj komentarz","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dodaj więcej informacji do Twojego komentarza, następnie udostępnij proszę Twoje imię i doświadczenie w celu wzbogacenia jakości dyskusji.","Add reply":"Dodaj odpowiedź","Add your expertise":"","Already a member?":"Posiadasz już konto?",Anonymous:"Anonimowy","Are you sure?":"Czy jesteś pewien?","Become a member of {publication} to start commenting.":"Dołącz do społeczności {publication}, by zacząć komentować.","Become a paid member of {publication} to start commenting.":"Dołącz do społeczności płatnych subskrybentów {publication}, by zacząć komentować.",Best:"",Cancel:"Anuluj",Comment:"Skomentuj","Commenting disabled":"","Complete your profile":"Skompletuj Twój profil",Delete:"Usuń",Deleted:"Usunięto","Deleted member":"Usunięte konto",Deleting:"Usuwanie",Discussion:"Dyskusja",Edit:"Edytuj","Edit this comment":"Edytuj komentarz",edited:"edytowano","Enter your name":"Podaj Twoje imię",Expertise:"Doświadczenie","Founder @ Acme Inc":"Founder @ Acme Inc","Full-time parent":"Pełnoetatowy rodzic","Head of Marketing at Acme, Inc":"Head of Marketing at Acme, Inc","Hidden for members":"Ukryte dla członków",Hide:"Ukryj","Hide comment":"Ukryj komentarz","Jamie Larson":"Jamie Larson","Join the discussion":"Dołącz do dyskusji","Just now":"Przed chwilą","Load more ({amount})":"Załaduj więcej ({amount})","Local resident":"Lokalny rezydent","Member discussion":"Członek dyskusji",Name:"Imię",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Po usunięciu, nie będzie możliwe przywrócenie tego komentarza","One hour ago":"Godzinę temu","One min ago":"Minutę temu",removed:"usunięte","Replied to":"Odpowiedź na",Reply:"Odpowiedz","Reply to":"Odpowiedz na","Reply to comment":"Napisz odpowiedź do komentarza",Report:"Zgłoś","Report comment":"Zgłoś komentarz","Report this comment?":"Czy chcesz zgłosić ten komentarz?",Save:"Zapisz",Sending:"Wysyłanie",Sent:"Wysłano",Show:"Pokaż","Show {amount} more replies":"Pokaż {amount} kolejnych odpowiedzi","Show 1 more reply":"Pokaż następną odpowiedź","Show comment":"Pokaż komentarz","Sign in":"Zaloguj się","Sign up now":"Zarejestruj się","Sort by":"Sortuj według","Start the conversation":"Rozpocznij dyskusję","The linked comment is no longer available.":"","This comment has been hidden.":"Komentarz został ukryty.","This comment has been removed.":"Komentarz został usunięty.","Upgrade now":"Ulepsz teraz","View in admin":"",Yesterday:"Wczoraj","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Twoje zgłoszenie zostało przesłane do administratora strony."},gD={"{amount} characters left":"Faltam {amount} caracteres ","{amount} comments":"{amount} comentários","{amount} hrs ago":"{amount} horas atrás","{amount} mins ago":"{amount} minutos atrás","{amount} more":"mais","1 comment":"Um comentário","Add comment":"Adicionar comentário","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Adicione o seu comentário, partilhe o seu nome e expriência de modo a promover uma discussão saudável.","Add reply":"Adicionar resposta","Add your expertise":"","Already a member?":"Já é membro?",Anonymous:"Anónimo","Are you sure?":"Tem a certeza?","Become a member of {publication} to start commenting.":"Torne-se um membro do {publication} para comentar.","Become a paid member of {publication} to start commenting.":"Torne-se um membro pago do {publication} para comentar. ",Best:"Melhores",Cancel:"Cancelar",Comment:"Comentar","Commenting disabled":"","Complete your profile":"Complete o seu perfil",Delete:"Eliminar",Deleted:"Eliminado","Deleted member":"Membro eliminado",Deleting:"Eliminando",Discussion:"Discussão",Edit:"Editar","Edit this comment":"Editar este comentário",edited:"editado","Enter your name":"Insira o seu nome",Expertise:"Perícia","Founder @ Acme Inc":"Fundador @ Amce Inc","Full-time parent":"Pai a tempo inteiro","Head of Marketing at Acme, Inc":"Responsável do Marketing @ Amce, Inc","Hidden for members":"Oculto para membros",Hide:"Esconder","Hide comment":"Esconder comentário","Jamie Larson":"Jane Doe","Join the discussion":"Junte-se à discussão","Just now":"Agora","Load more ({amount})":"","Local resident":"Residente local","Member discussion":"Discussão para membros",Name:"Nome",Neurosurgeon:"neurocirurgião",Newest:"Mais recentes",Oldest:"Mais antigos","Once deleted, this comment can’t be recovered.":"","One hour ago":"uma hora atrás","One min ago":"um minuto atrás",removed:"removido","Replied to":"Respondeu a",Reply:"Responder","Reply to":"Responder a","Reply to comment":"Responder ao comentário",Report:"Reportar","Report comment":"Reportar comentário","Report this comment?":"Reportar este comentário?",Save:"Guardar",Sending:"Enviar",Sent:"Enviado",Show:"Mostrar","Show {amount} more replies":"Mostrar mais {amount} respostas","Show 1 more reply":"Mostrar mais uma resposta","Show comment":"Mostrar comentário","Sign in":"Registar","Sign up now":"Registar agora","Sort by":"Organizar por","Start the conversation":"Comece a conversa","The linked comment is no longer available.":"","This comment has been hidden.":"Este comentário foi ocultado","This comment has been removed.":"Este comentário foi removido","Upgrade now":"Atualize agora","View in admin":"",Yesterday:"Ontem","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"O seu pedido será enviado para o dono deste site."},yD={"{amount} characters left":"{amount} caracteres restantes","{amount} comments":"{amount} comentários","{amount} hrs ago":"{amount} horas atrás","{amount} mins ago":"{amount} minutos atrás","{amount} more":"{amount} mais","1 comment":"1 comentário","Add comment":"Adicionar comentário","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Adicione contexto ao seu comentário, compartilhe seu nome e sua especialidade para promover uma discussão saudável.","Add reply":"Adicionar resposta","Add your expertise":"Adicione sua especialidade","Already a member?":"Já é um membro?",Anonymous:"Anônimo","Are you sure?":"Você tem certeza?","Become a member of {publication} to start commenting.":"Torne-se um membro de {publication} para começar a comentar.","Become a paid member of {publication} to start commenting.":"Torne-se um membro pago de {publication} para começar a comentar.",Best:"Melhores",Cancel:"Cancelar",Comment:"Comentar","Commenting disabled":"","Complete your profile":"Complete seu perfil",Delete:"Excluir",Deleted:"Excluído","Deleted member":"Membro excluído",Deleting:"Excluindo",Discussion:"Discussão",Edit:"Editar","Edit this comment":"Editar este comentário",edited:"editado","Enter your name":"Digite seu nome",Expertise:"Especialidade","Founder @ Acme Inc":"Fundador @ Acme Inc","Full-time parent":"Pai/Mãe em tempo integral","Head of Marketing at Acme, Inc":"Chefe de Marketing na Acme, Inc","Hidden for members":"Oculto para membros",Hide:"Ocultar","Hide comment":"Ocultar comentário","Jamie Larson":"Cris Silva","Join the discussion":"Participe da discussão","Just now":"Agora mesmo","Load more ({amount})":"Carregar mais ({amount})","Local resident":"Residente local","Member discussion":"Discussão entre membros",Name:"Nome",Neurosurgeon:"Neurocirurgião",Newest:"Mais Recentes",Oldest:"Mais Antigos","Once deleted, this comment can’t be recovered.":"Após ser excluído, esse comentário não poderá ser recuperado.","One hour ago":"Uma hora atrás","One min ago":"Um minuto atrás",removed:"removido","Replied to":"Respondeu a",Reply:"Responder","Reply to":"Responder a","Reply to comment":"Responder ao comentário",Report:"Denunciar","Report comment":"Denunciar comentário","Report this comment?":"Denunciar este comentário?",Save:"Salvar",Sending:"Enviando",Sent:"Enviado",Show:"Exibir","Show {amount} more replies":"Exibir mais {amount} respostas","Show 1 more reply":"Exibir 1 resposta adicional","Show comment":"Exibir comentário","Sign in":"Entrar","Sign up now":"Inscreva-se agora","Sort by":"Ordenar por","Start the conversation":"Iniciar a conversa","The linked comment is no longer available.":"","This comment has been hidden.":"Este comentário foi ocultado.","This comment has been removed.":"Este comentário foi removido.","Upgrade now":"Atualize agora","View in admin":"",Yesterday:"Ontem","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Sua solicitação será enviada ao proprietário deste site."},bD={"{amount} characters left":"{amount} caractere rămase","{amount} comments":"{amount} comentarii","{amount} hrs ago":"acum {amount} ore","{amount} mins ago":"acum {amount} minute","{amount} more":"încă {amount}","1 comment":"1 comentariu","Add comment":"Adaugă comentariu","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Adăugați context comentariului dumneavoastră, împărtășiți-vă numele și expertiza pentru a favoriza o discuție sănătoasă.","Add reply":"Adaugă răspuns","Add your expertise":"","Already a member?":"Deja membru?",Anonymous:"Anonim","Are you sure?":"","Become a member of {publication} to start commenting.":"Deveniți membru al {publication} pentru a începe să comentați.","Become a paid member of {publication} to start commenting.":"Deveniți membru plătit al {publication} pentru a începe să comentați.",Best:"",Cancel:"Anulează",Comment:"Comentează","Commenting disabled":"","Complete your profile":"Completează-ți profilul",Delete:"Șterge",Deleted:"","Deleted member":"Membru șters",Deleting:"",Discussion:"Discuție",Edit:"Editează","Edit this comment":"Editează acest comentariu",edited:"editat","Enter your name":"Introduceți numele dumneavoastră",Expertise:"Expertiză","Founder @ Acme Inc":"Fondator @ Acme Inc","Full-time parent":"Părinte cu normă întreagă","Head of Marketing at Acme, Inc":"Șef de Marketing la Acme, Inc","Hidden for members":"",Hide:"Ascunde","Hide comment":"Ascunde comentariul","Jamie Larson":"Jamie Larson","Join the discussion":"Alătură-te discuției","Just now":"Chiar acum","Load more ({amount})":"","Local resident":"Rezident local","Member discussion":"Discuție membrii",Name:"Nume",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Acum o oră","One min ago":"Acum un minut",removed:"","Replied to":"",Reply:"Răspunde","Reply to":"","Reply to comment":"Răspunde la comentariu",Report:"Raportează","Report comment":"Raportează comentariul","Report this comment?":"Raportezi acest comentariu?",Save:"Salvează",Sending:"Se trimite",Sent:"Trimis",Show:"Arată","Show {amount} more replies":"Arată încă {amount} răspunsuri","Show 1 more reply":"Arată încă un răspuns","Show comment":"Arată comentariul","Sign in":"Autentificare","Sign up now":"Înregistrează-te acum","Sort by":"Ordonează după","Start the conversation":"Începe conversația","The linked comment is no longer available.":"","This comment has been hidden.":"Acest comentariu a fost ascuns.","This comment has been removed.":"Acest comentariu a fost eliminat.","Upgrade now":"Actualizează acum","View in admin":"",Yesterday:"Ieri","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Cererea dumneavoastră va fi trimisă proprietarului acestui site."},wD={"{amount} characters left":"{amount} символа(ов) осталось","{amount} comments":"{amount} комментария(ев)","{amount} hrs ago":"{amount} ч. назад","{amount} mins ago":"{amount} мин. назад","{amount} more":"ещё {amount}","1 comment":"1 комментарий","Add comment":"Добавить комментарий","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Дополните свой комментарий контекстом, добавив подробности о себе и своём опыте, чтобы обсуждение стало более интересным.","Add reply":"Добавить ответ","Add your expertise":"Добавить свой опыт","Already a member?":"Уже присоединились?",Anonymous:"Анонимный","Are you sure?":"Вы уверены?","Become a member of {publication} to start commenting.":"Присоединяйтесь к {publication} чтобы начать комментировать.","Become a paid member of {publication} to start commenting.":"Станьте платным участником {publication} чтобы начать комментировать.",Best:"Лучший",Cancel:"Отмена",Comment:"Комментарий","Commenting disabled":"","Complete your profile":"Заполните свой профиль",Delete:"Удалить",Deleted:"Удалено","Deleted member":"Удалённый участник",Deleting:"Удаление",Discussion:"Обсуждение",Edit:"Редактировать","Edit this comment":"Редактировать этот комментарий",edited:"Отредактированно","Enter your name":"Введите ваше имя",Expertise:"Деятельность","Founder @ Acme Inc":"Основатель @ Корпорация «Акме»","Full-time parent":"Родитель, работающий полный рабочий день","Head of Marketing at Acme, Inc":"Руководитель отдела маркетинга в Корпорации «Акме»","Hidden for members":"Скрыто для участников",Hide:"Скрыть","Hide comment":"Скрыть комментарий","Jamie Larson":"Павел Бид","Join the discussion":"Присоединиться к обсуждению","Just now":"Сейчас","Load more ({amount})":"Загрузить ещё ({amount})","Local resident":"Местный житель","Member discussion":"Обсуждение участников",Name:"Имя",Neurosurgeon:"Нейрохирург",Newest:"Сначала новые",Oldest:"Сначала старые","Once deleted, this comment can’t be recovered.":"После удаления этот комментарий не может быть восстановлен.","One hour ago":"Час назад","One min ago":"Минуту назад",removed:"удалён","Replied to":"Ответ на",Reply:"Ответить","Reply to":"Ответить на","Reply to comment":"Ответить на комментарий",Report:"Пожаловаться","Report comment":"Пожаловаться на комментарий","Report this comment?":"Пожаловаться на этот комментарий?",Save:"Сохранить",Sending:"Отправка",Sent:"Отправлено",Show:"Показать","Show {amount} more replies":"Показать ещё {amount} ответа(ов)","Show 1 more reply":"Показать ответ","Show comment":"Показать комментарий","Sign in":"Войти","Sign up now":"Зарегистрироваться","Sort by":"Сортировать по","Start the conversation":"Начать обсуждение","The linked comment is no longer available.":"","This comment has been hidden.":"Этот комментарий скрыт","This comment has been removed.":"Этот комментарий был удалён","Upgrade now":"Улучшить подписку","View in admin":"",Yesterday:"Вчера","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Ваш запрос будет отправлен владельцу сайта."},vD={"{amount} characters left":"තව වචන {amount} යි.","{amount} comments":"අදහ​ස් {amount} යි.","{amount} hrs ago":"පැය {amount} ට පෙ​ර","{amount} mins ago":"මිනිත්තු {amount} ට පෙ​ර","{amount} more":"","1 comment":"1 අදහසයි.","Add comment":"අදහස් එකතු කරන්​න","Add context to your comment, share your name and expertise to foster a healthy discussion.":"ඉතා හො​ඳ සාකච්ඡාවක් රැගෙ​න යාම සඳහා ඔබේ අදහසට අන්තර්ගත​ය එක් කර ඔබේ නම සහ විශේෂඥතාව බෙදා ගන්න","Add reply":"ප්‍රතිචාර එකතු කරන්​න","Add your expertise":"","Already a member?":"දැනටමත් සාමාජිකයෙක්ද ?",Anonymous:"නිර්නාමික","Are you sure?":"","Become a member of {publication} to start commenting.":"අදහස් දැක්වීම ආරම්භ කිරීමට {publication} හි සාමාජිකයෙකු වන්න","Become a paid member of {publication} to start commenting.":"අදහස් දැක්වීම ආරම්භ කිරීමට {publication} හි ගෙවීම් කරන ල​ද සාමාජිකයෙකු වන්න",Best:"",Cancel:"අවලංගු කරන්​න​",Comment:"අදහ​ස","Commenting disabled":"","Complete your profile":"ඔබගේ ගිණුම සම්පූර්ණ කරන්​න",Delete:"Delete කරන්​න",Deleted:"","Deleted member":"සාමාජිකයාව delete කරන්​න",Deleting:"",Discussion:"සාකච්ඡා​ව",Edit:"සංස්කරණය කරන්න","Edit this comment":"අදහස සංස්කරණය කරන්න",edited:"සංස්කරණය කරන ලද.","Enter your name":"ඔබගේ නම සඳහන් කරන්​න",Expertise:"විශේෂඥතාව","Founder @ Acme Inc":"Acme Inc හි නිර්මාතෘ","Full-time parent":"පූර්ණ කාලීන භාරකරුව​න්","Head of Marketing at Acme, Inc":"Acme, Inc හි අලෙවි ප්‍රධානී","Hidden for members":"",Hide:"සඟවන්න","Hide comment":"අදහස සඟවන්න","Jamie Larson":"ජේමි ලාර්සන්","Join the discussion":"සාකච්ඡාවට එක්වන්න","Just now":"මේ දැ​න්","Load more ({amount})":"","Local resident":"දේශීය පදිංචි","Member discussion":"සාමාජික සාකච්ඡාව",Name:"න​ම",Neurosurgeon:"ස්නායු ශ​ල්‍ය වෛ​ද්‍ය",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"පැයකට පෙ​ර","One min ago":"මිනිත්තුවකට පෙ​ර",removed:"","Replied to":"",Reply:"ප්‍රතිචාර දක්වන්​න","Reply to":"","Reply to comment":"අදහසට ‍රතිචාර දක්වන්​න",Report:"වාර්තා කරන්​න","Report comment":"අදහසට වාර්තා කරන්​න","Report this comment?":"මෙම අදහසට වාර්තා කරන්නෙහිද ?",Save:"සුරකින්​න",Sending:"යවමි​න්",Sent:"යැව්වා",Show:"පෙන්වන්​න","Show {amount} more replies":"තවත් පිළිතුරු {amount} පෙන්වන්න","Show 1 more reply":"තවත් පිළිතුරු 1ක් පෙන්වන්න","Show comment":"අදහස පෙන්වන්න","Sign in":"Sign in වෙන්​න","Sign up now":"දැන්ම Sign up වෙන්​න","Sort by":"","Start the conversation":"සංවාදය ආරම්භ කරන්න","The linked comment is no longer available.":"","This comment has been hidden.":"මෙම අදහස සඟවා ඇත.","This comment has been removed.":"මෙම අදහස ඉවත් කර ඇත.","Upgrade now":"දැන් upgrade කරන්න","View in admin":"",Yesterday:"ඊ​යෙ","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"ඔබගේ ඉල්ලීම මෙම අඩවියේ හිමිකරු වෙත යවනු ලැබේ."},SD={"{amount} characters left":"Zostáva {amount} znakov","{amount} comments":"{amount} komentárov","{amount} hrs ago":"Pred {amount} hodinami","{amount} mins ago":"Pred {amount} minútami","{amount} more":"{amount} ďalších","1 comment":"1 komentár","Add comment":"Pridať komentár","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Pridajte kontext do vášho komentára, zdielajte svoje meno, a odbornosť pre podporu zdravej diskusie.","Add reply":"Pridať odpoveď","Add your expertise":"","Already a member?":"Už ste členom?",Anonymous:"Anonym","Are you sure?":"Ste si istý?","Become a member of {publication} to start commenting.":"Staňte sa členom {publication}, aby ste mohli začať komentovať","Become a paid member of {publication} to start commenting.":"Staňte sa plateným členom {publication}, aby ste mohli začať komentovať",Best:"",Cancel:"Zrušiť",Comment:"Komentár","Commenting disabled":"","Complete your profile":"Dokončite váš profil",Delete:"Vymazať",Deleted:"Vymazané","Deleted member":"Vymazaný člen",Deleting:"Vymazávam",Discussion:"Diskusia",Edit:"Upraviť","Edit this comment":"Upraviť komentár",edited:"upravený","Enter your name":"Zadajte vaše meno",Expertise:"Odbornosť","Founder @ Acme Inc":"Zakladateľ @ Acme Inc","Full-time parent":"Rodič na plný úväzok","Head of Marketing at Acme, Inc":"Vedúci marketingu v spoločnosti Acme, Inc","Hidden for members":"Skryté pre členov",Hide:"Skryť","Hide comment":"Skryť komentár","Jamie Larson":"Jamie Larson","Join the discussion":"Zapojiť sa do diskusie","Just now":"Teraz","Load more ({amount})":"","Local resident":"Miestny obyvateľ","Member discussion":"Členská diskusia",Name:"Meno",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Po odstránení nebude možné tento komentár obnoviť.","One hour ago":"Pred hodinou","One min ago":"Pred minútou",removed:"odstránené","Replied to":"Odpoveď na",Reply:"Odpovedať","Reply to":"Odpovedať na","Reply to comment":"Odpovedať na komentár",Report:"Nahlásiť","Report comment":"Nahlásiť komentár","Report this comment?":"Nahlásiť tento komentár?",Save:"Uložiť",Sending:"Odosielanie",Sent:"Odoslané",Show:"Zobraziť","Show {amount} more replies":"Zobraziť {amount} ďalších odpoveďí","Show 1 more reply":"Zobraziť 1 ďalšiu odpoveď","Show comment":"Zobraziť komentár","Sign in":"Prihlásiť","Sign up now":"Registrovať sa","Sort by":"Triediť podľa","Start the conversation":"Začať konverzáciu","The linked comment is no longer available.":"","This comment has been hidden.":"Tento komentár bol skrytý.","This comment has been removed.":"Tento komentár bol vymazaný.","Upgrade now":"Upraviť členstvo","View in admin":"",Yesterday:"Včera","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Vaša požiadavka bude odoslaná vlastníkovi stránky."},$D={"{amount} characters left":"Še {amount} znakov","{amount} comments":"{amount} komentarjev","{amount} hrs ago":"Pred {amount} urami","{amount} mins ago":"Pred {amount} minutami","{amount} more":"Še {amount}","1 comment":"1 komentar","Add comment":"Dodajte komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dodajte kontekst svojemu komentarju, delite svoje ime in strokovno znanje za spodbujanje zdrave razprave.","Add reply":"Dodajte odgovor","Add your expertise":"","Already a member?":"Ste že član?",Anonymous:"Anonimno","Are you sure?":"Ste prepričani?","Become a member of {publication} to start commenting.":"Postanite član {publication}, da lahko začnete komentirati.","Become a paid member of {publication} to start commenting.":"Postanite plačljiv član {publication}, da lahko začnete komentirati.",Best:"",Cancel:"Prekliči",Comment:"Komentiraj","Commenting disabled":"","Complete your profile":"Dokončajte svoj profil",Delete:"Izbriši",Deleted:"Izbrisano","Deleted member":"Izbrisan član",Deleting:"Brisanje",Discussion:"Razprava",Edit:"Uredi","Edit this comment":"Uredi ta komentar",edited:"urejeno","Enter your name":"Vnesite svoje ime",Expertise:"Strokovno znanje","Founder @ Acme Inc":"Ustanovitelj pri Acme Inc","Full-time parent":"Starš s polnim delovnim časom","Head of Marketing at Acme, Inc":"Vodja marketinga pri Acme, Inc","Hidden for members":"Skrito za člane",Hide:"Skrij","Hide comment":"Skrij komentar","Jamie Larson":"Janez Novak","Join the discussion":"Pridružite se razpravi","Just now":"Pravkar","Load more ({amount})":"Naloži več ({amount})","Local resident":"Lokalni prebivalec","Member discussion":"Razprava članov",Name:"Ime",Neurosurgeon:"Nevrokirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Ko je komentar izbrisan, ga ni mogoče več obnoviti.","One hour ago":"Pred eno uro","One min ago":"Pred eno minuto",removed:"odstranjeno","Replied to":"Odgovorjeno na",Reply:"Odgovori","Reply to":"Odgovori na","Reply to comment":"Odgovori na komentar",Report:"Prijavi","Report comment":"Prijavi komentar","Report this comment?":"Želite prijaviti ta komentar?",Save:"Shrani",Sending:"Pošiljanje",Sent:"Poslano",Show:"Prikaži","Show {amount} more replies":"Prikaži še {amount} odgovorov","Show 1 more reply":"Prikaži še 1 odgovor","Show comment":"Prikaži komentar","Sign in":"Prijavite se","Sign up now":"Registrirajte se zdaj","Sort by":"Razvrsti po","Start the conversation":"Začnite pogovor","The linked comment is no longer available.":"","This comment has been hidden.":"Ta komentar je bil skrit.","This comment has been removed.":"Ta komentar je bil odstranjen.","Upgrade now":"Nadgradite zdaj","View in admin":"",Yesterday:"Včeraj","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Vaša zahteva bo poslana lastniku te strani."},kD={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":""},xD={"{amount} characters left":"preostalo je {amount} karaktera","{amount} comments":"{amount} komentara","{amount} hrs ago":"pre {amount} sati","{amount} mins ago":"pre {amount} minuta","{amount} more":"još {amount}","1 comment":"1 komentar","Add comment":"Dodajte komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dodajte kontekst svom komentaru, podelite svoje ime i ekspertizu kako biste podstakli zdravu diskusiju.","Add reply":"Dodajte odgovor","Add your expertise":"Dodajte ekspertizu","Already a member?":"Već ste član?",Anonymous:"Anonimno","Are you sure?":"Da li ste sigurni?","Become a member of {publication} to start commenting.":"Postanite član {publication} da biste počeli sa komentarisanjem.","Become a paid member of {publication} to start commenting.":"Postanite plaćeni član {publication} da biste počeli sa komentarisanjem.",Best:"Najbolje",Cancel:"Otkažite",Comment:"Komentar","Commenting disabled":"Komentarisanje onemogućeno","Complete your profile":"Popunite svoj profil",Delete:"Obrišite",Deleted:"Obrisano","Deleted member":"Obrisan član",Deleting:"Brisanje",Discussion:"Diskusija",Edit:"Uredite","Edit this comment":"Uredite ovaj komentar",edited:"uređeno","Enter your name":"Unesite svoje ime",Expertise:"Ekspertiza","Founder @ Acme Inc":"Osnivač @ Acme Inc","Full-time parent":"Roditelj punim radnim vremenom","Head of Marketing at Acme, Inc":"Šef marketinga u Acme, Inc","Hidden for members":"Sakriveno za članove",Hide:"Sakrijte","Hide comment":"Sakrijte komentar","Jamie Larson":"Pera Perić","Join the discussion":"Pridružite se diskusiji","Just now":"Upravo sada","Load more ({amount})":"Učitajte još ({amount})","Local resident":"Lokalni stanovnik","Member discussion":"Diskusija članova",Name:"Ime",Neurosurgeon:"Neurohirurg",Newest:"Najnovije",Oldest:"Najstarije","Once deleted, this comment can’t be recovered.":"Kada se obriše, ovaj komentar ne može biti vraćen.","One hour ago":"Pre sat","One min ago":"Pre minut",removed:"uklonjeno","Replied to":"Odgovoreno korisniku",Reply:"Odgovorite","Reply to":"Odgovorite korisniku","Reply to comment":"Odgovorite na komentar",Report:"Prijavite","Report comment":"Prijavite komentar","Report this comment?":"Prijavite ovaj komentar?",Save:"Sačuvajte",Sending:"Slanje",Sent:"Poslato",Show:"Prikažite","Show {amount} more replies":"Prikažite još {amount} odgovora","Show 1 more reply":"Prikažite još 1 odgovor","Show comment":"Prikažite komentar","Sign in":"Prijavite se","Sign up now":"Registrujte se sada","Sort by":"Sortirajte po","Start the conversation":"Počnite razgovor","The linked comment is no longer available.":"","This comment has been hidden.":"Ovaj komentar je sakriven.","This comment has been removed.":"Ovaj komentar je uklonjen.","Upgrade now":"Nadogradite sada","View in admin":"Pogledajte u admin",Yesterday:"Juče","You can't post comments in this publication.":"Ne možete objavljivati komentare u ovoj publikaciji.","You can't post comments in this publication. <a>Contact support</a> for more information.":"Ne možete objavljivati komentare u ovoj publikaciji. <a>Kontaktirajte podršku</a> za više informacija.","Your request will be sent to the owner of this site.":"Vaš zahtev će biti poslat vlasniku ovog sajta."},CD={"{amount} characters left":"преостало је {amount} карактера","{amount} comments":"{amount} коментара","{amount} hrs ago":"пре {amount} сати","{amount} mins ago":"пре {amount} минута","{amount} more":"још {amount}","1 comment":"1 коментар","Add comment":"Додајте коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додајте контекст свом коментару, поделите своје име и експертизу како бисте подстакли здраву дискусију.","Add reply":"Додајте одговор","Add your expertise":"Додајте експертизу","Already a member?":"Већ сте члан?",Anonymous:"Анонимно","Are you sure?":"Да ли сте сигурни?","Become a member of {publication} to start commenting.":"Постаните члан {publication} да бисте почели са коментарисањем.","Become a paid member of {publication} to start commenting.":"Постаните плаћени члан {publication} да бисте почели са коментарисањем.",Best:"Најбоље",Cancel:"Откажите",Comment:"Коментар","Commenting disabled":"Коментарисање онемогућено","Complete your profile":"Попуните свој профил",Delete:"Обришите",Deleted:"Обрисано","Deleted member":"Обрисан члан",Deleting:"Брисање",Discussion:"Дискусија",Edit:"Уредите","Edit this comment":"Уредите овај коментар",edited:"уређено","Enter your name":"Унесите своје име",Expertise:"Експертиза","Founder @ Acme Inc":"Оснивач @ Acme Inc","Full-time parent":"Родитељ пуним радним временом","Head of Marketing at Acme, Inc":"Шеф маркетинга у Acme, Inc","Hidden for members":"Сакривено за чланове",Hide:"Сакријте","Hide comment":"Сакријте коментар","Jamie Larson":"Пера Перић","Join the discussion":"Придружите се дискусији","Just now":"Управо сада","Load more ({amount})":"Учитајте још ({amount})","Local resident":"Локални становник","Member discussion":"Дискусија чланова",Name:"Име",Neurosurgeon:"Неурохирург",Newest:"Најновије",Oldest:"Најстарије","Once deleted, this comment can’t be recovered.":"Када се обрише, овај коментар не може бити враћен.","One hour ago":"Пре сат","One min ago":"Пре минут",removed:"уклоњено","Replied to":"Одговорено кориснику",Reply:"Одговорите","Reply to":"Одговорите кориснику","Reply to comment":"Одговорите на коментар",Report:"Пријавите","Report comment":"Пријавите коментар","Report this comment?":"Пријавите овај коментар?",Save:"Сачувајте",Sending:"Слање",Sent:"Послато",Show:"Прикажите","Show {amount} more replies":"Прикажите још {amount} одговора","Show 1 more reply":"Прикажите још 1 одговор","Show comment":"Прикажите коментар","Sign in":"Пријавите се","Sign up now":"Региструјте се сада","Sort by":"Сортирајте по","Start the conversation":"Почните разговор","The linked comment is no longer available.":"","This comment has been hidden.":"Овај коментар је сакривен.","This comment has been removed.":"Овај коментар је уклоњен.","Upgrade now":"Надоградите сада","View in admin":"Погледајте у админ",Yesterday:"Јуче","You can't post comments in this publication.":"Не можете објављивати коментаре у овој публикацији.","You can't post comments in this publication. <a>Contact support</a> for more information.":"Не можете објављивати коментаре у овој публикацији. <a>Контактирајте подршку</a> за више информација.","Your request will be sent to the owner of this site.":"Ваш захтев ће бити послат власнику овог сајта."},ED={"{amount} characters left":"{amount} tecken kvar","{amount} comments":"{amount} kommentarer","{amount} hrs ago":"{amount} timmar sedan","{amount} mins ago":"{amount} minuter sedan","{amount} more":"{amount} fler","1 comment":"1 kommentar","Add comment":"Lägg till kommentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Lägg till kontext till din kommentar, som ditt namn, din expertis för att skapa ett bra forum.","Add reply":"Lägg till svar","Add your expertise":"Lägg till din expertis","Already a member?":"Redan medlem?",Anonymous:"Anonym","Are you sure?":"Är du säker?","Become a member of {publication} to start commenting.":"Registrera dig på {publication} för att börja kommentera.","Become a paid member of {publication} to start commenting.":"Bli betalande medlem på {publication} för att börja kommentera ",Best:"Mest populär",Cancel:"Avbryt",Comment:"Kommentar","Commenting disabled":"","Complete your profile":"Fyll i hela din profil",Delete:"Ta bort",Deleted:"Borttaget","Deleted member":"Borttagen medlem",Deleting:"Tar bort",Discussion:"Diskussion",Edit:"Ändra","Edit this comment":"Ändra den här kommentaren",edited:"Ändrad","Enter your name":"Skriv ditt namn",Expertise:"Expertis","Founder @ Acme Inc":"Grundare av Företaget AB","Full-time parent":"Hemmaförälder","Head of Marketing at Acme, Inc":"Marknadsföringschef på Företaget AB","Hidden for members":"Dolt för medlemmar",Hide:"Dölj","Hide comment":"Dölj kommentar","Jamie Larson":"Anders Andersson","Join the discussion":"Var med i diskussionen","Just now":"Nu precis","Load more ({amount})":"Ladda in fler ({amount})","Local resident":"Lokalboende","Member discussion":"Medlemsdiskussion",Name:"Namn",Neurosurgeon:"Neurokirurg",Newest:"Nyast",Oldest:"Äldst","Once deleted, this comment can’t be recovered.":"Kommentaren kan ej återskapas efter borttagning","One hour ago":"En timme sedan","One min ago":"En minut sedan",removed:"borttagen","Replied to":"Svarade",Reply:"Svar","Reply to":"Svara","Reply to comment":"Svara på kommentar",Report:"Anmäl","Report comment":"Anmäl kommentar","Report this comment?":"Anmäl den här kommentaren?",Save:"Spara",Sending:"Skickar",Sent:"Skickad",Show:"Visa","Show {amount} more replies":"Visa {amount} fler svar","Show 1 more reply":"Visa 1 kommentar till","Show comment":"Visa kommentar","Sign in":"Logga in","Sign up now":"Registrera dig nu","Sort by":"Sortera efter","Start the conversation":"Inled konversationen","The linked comment is no longer available.":"","This comment has been hidden.":"Denna kommentar har dolts","This comment has been removed.":"Denna kommentar är borttagen","Upgrade now":"Uppgradera nu","View in admin":"",Yesterday:"I går","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Din anmälan skickas till ansvarig för webbplatsen"},ND={"{amount} characters left":"{amount} herufi zimebaki","{amount} comments":"{amount} maoni","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"{amount} zaidi","1 comment":"maoni 1","Add comment":"Ongeza maoni","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Ongeza muktadha kwa maoni yako, shiriki jina lako na utaalamu ili kuendeleza mjadala wenye afya.","Add reply":"Ongeza jibu","Add your expertise":"","Already a member?":"Tayari ni mwanachama?",Anonymous:"Asiyetambulika","Are you sure?":"","Become a member of {publication} to start commenting.":"Jiunge kama mwanachama wa {publication} ili kuanza kutoa maoni.","Become a paid member of {publication} to start commenting.":"Jiunge kama mwanachama anayelipa wa {publication} ili kuanza kutoa maoni.",Best:"",Cancel:"Ghairi",Comment:"Maoni","Commenting disabled":"","Complete your profile":"Kamilisha wasifu wako",Delete:"Futa",Deleted:"","Deleted member":"Mwanachama aliyefutwa",Deleting:"",Discussion:"Majadiliano",Edit:"Hariri","Edit this comment":"Hariri maoni haya",edited:"","Enter your name":"Weka jina lako",Expertise:"Utaalamu","Founder @ Acme Inc":"Mwanzilishi @ Acme Inc","Full-time parent":"Mzazi wa muda wote","Head of Marketing at Acme, Inc":"Mkuu wa Masoko katika Acme, Inc","Hidden for members":"",Hide:"Ficha","Hide comment":"Ficha maoni","Jamie Larson":"Jamie Larson","Join the discussion":"Jiunge na mjadala","Just now":"Hivi sasa","Load more ({amount})":"","Local resident":"Mkazi wa eneo","Member discussion":"Mjadala wa wanachama",Name:"Jina",Neurosurgeon:"Daktari wa ubongo",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Saa moja iliyopita","One min ago":"",removed:"","Replied to":"",Reply:"Jibu","Reply to":"","Reply to comment":"Jibu maoni",Report:"Ripoti","Report comment":"Ripoti maoni","Report this comment?":"Unataka kuripoti maoni haya?",Save:"Hifadhi",Sending:"Inatuma",Sent:"Imetumwa",Show:"Onyesha","Show {amount} more replies":"Onyesha majibu {amount} zaidi","Show 1 more reply":"Onyesha jibu 1 zaidi","Show comment":"Onyesha maoni","Sign in":"Ingia","Sign up now":"Jisajili sasa","Sort by":"","Start the conversation":"Anzisha mazungumzo","The linked comment is no longer available.":"","This comment has been hidden.":"Maoni haya yamefichwa.","This comment has been removed.":"Maoni haya yameondolewa.","Upgrade now":"Boresha sasa","View in admin":"",Yesterday:"Jana","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Ombi lako litatumwa kwa mmiliki wa tovuti hii."},AD={"{amount} characters left":"{amount} எழுத்துக்கள் எஞ்சியுள்ளன","{amount} comments":"{amount} கருத்துக்கள்","{amount} hrs ago":"{amount} மணி நேரத்திற்கு முன்பு","{amount} mins ago":"{amount} நிமிடங்களுக்கு முன்பு","{amount} more":"{amount} மேலும்","1 comment":"1 கருத்து","Add comment":"கருத்தைச் சேர்க்கவும்","Add context to your comment, share your name and expertise to foster a healthy discussion.":"உங்கள் கருத்துக்கு சூழலைச் சேர்க்கவும், ஆரோக்கியமான விவாதத்தை வளர்க்க உங்கள் பெயரையும் நிபுணத்துவத்தையும் பகிர்ந்து கொள்ளுங்கள்.","Add reply":"பதில் சேர்க்கவும்","Add your expertise":"","Already a member?":"ஏற்கனவே உறுப்பினரா?",Anonymous:"அடையாளம் தெரியாத","Are you sure?":"","Become a member of {publication} to start commenting.":"கருத்துத் தெரிவிக்க {publication} இல் உறுப்பினராகுங்கள்.","Become a paid member of {publication} to start commenting.":"கருத்துத் தெரிவிக்க {publication} இல் கட்டண உறுப்பினராகுங்கள்.",Best:"",Cancel:"ரத்து செய்",Comment:"கருத்து","Commenting disabled":"","Complete your profile":"உங்கள் சுயவிவரத்தை பூர்த்தி செய்யவும்",Delete:"நீக்கவும்",Deleted:"","Deleted member":"நீக்கப்பட்ட உறுப்பினர்",Deleting:"",Discussion:"கலந்துரையாடல்",Edit:"திருத்தவும்","Edit this comment":"இந்தக் கருத்தைத் திருத்தவும்",edited:"திருத்தப்பட்டது","Enter your name":"உங்கள் பெயரை உள்ளிடுக",Expertise:"நிபுணத்துவம்","Founder @ Acme Inc":"நிறுவனர் @ Acme Inc","Full-time parent":"முழுநேர பெற்றோர்","Head of Marketing at Acme, Inc":"Acme Inc நிறுவனத்தின் சந்தைப்படுத்தல் தலைவர்","Hidden for members":"",Hide:"மறைக்கவும்","Hide comment":"கருத்தை மறை","Jamie Larson":"ஜேமி லார்சன்","Join the discussion":"கலந்துரையாடலில் சேரவும்","Just now":"சற்றுமுன்னர்தான்","Load more ({amount})":"","Local resident":"உள்ளூர்வாசி","Member discussion":"உறுப்பினர் கருத்து",Name:"பெயர்",Neurosurgeon:"நரம்பியல் அறுவை சிகிச்சை நிபுணர்",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"ஒரு மணி முன்பு","One min ago":"ஒரு நிமிடம் முன்பு",removed:"","Replied to":"",Reply:"பதிலளிக்கவும்","Reply to":"","Reply to comment":"கருத்துக்கு பதிலளிக்கவும்",Report:"புகாரளி","Report comment":"கருத்தைப் புகாரளி","Report this comment?":"இந்தக் கருத்தைப் புகாரளிக்கவா?",Save:"சேமிக்க",Sending:"அனுப்புகிறது",Sent:"அனுப்பப்பட்டது",Show:"காட்டு","Show {amount} more replies":"முந்தைய {amount} மேலும் பதில்கள்க் காட்டு","Show 1 more reply":"மேலும் 1 பதிலைக் காட்டு","Show comment":"கருத்தைக் காட்டு","Sign in":"உள்நுழைக","Sign up now":"இப்பொழுதே பதிவு செய்யுங்கள்","Sort by":"","Start the conversation":"உரையாடலைத் தொடங்குங்கள்","The linked comment is no longer available.":"","This comment has been hidden.":"இந்தக் கருத்து மறைக்கப்பட்டது.","This comment has been removed.":"இந்தக் கருத்து நீக்கப்பட்டது.","Upgrade now":"இப்போதே மேம்படுத்தவும்","View in admin":"",Yesterday:"நேற்று","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"உங்கள் கோரிக்கை இந்த தளத்தின் உரிமையாளருக்கு அனுப்பப்படும்."},OD={"{amount} characters left":"คงเหลือ {amount} ตัวอักษร","{amount} comments":"{amount} ความคิดเห็น","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"อีก {amount}","1 comment":"1 ความคิดเห็น","Add comment":"แสดงความคิดเห็น","Add context to your comment, share your name and expertise to foster a healthy discussion.":"เพิ่มข้อมูลเสริมในความคิดเห็นของคุณ แชร์ชื่อและความเชี่ยวชาญเพื่อสนับสนุนการพูดคุยที่ดี","Add reply":"ตอบกลับ","Add your expertise":"","Already a member?":"เป็นสมาชิกอยู่แล้ว?",Anonymous:"ไม่ระบุชื่อ","Are you sure?":"","Become a member of {publication} to start commenting.":"เป็นสมาชิกของ {publication} เพื่อเริ่มแสดงความคิดเห็น","Become a paid member of {publication} to start commenting.":"เป็นสมาชิกแบบชำระเงินของ {publication} เพื่อเริ่มแสดงความคิดเห็น",Best:"",Cancel:"ยกเลิก",Comment:"ความคิดเห็น","Commenting disabled":"","Complete your profile":"กรอกโปรไฟล์ของคุณให้สมบูรณ์",Delete:"ลบ",Deleted:"","Deleted member":"ผู้ใช้ที่ถูกลบ",Deleting:"",Discussion:"การสนทนา",Edit:"แก้ไข","Edit this comment":"แก้ไขความคิดเห็นนี้",edited:"","Enter your name":"ระบุชื่อของคุณ",Expertise:"ความเชี่ยวชาญ","Founder @ Acme Inc":"ผู้ก่อตั้ง @ Acme Inc","Full-time parent":"ผู้ปกครองเต็มเวลา","Head of Marketing at Acme, Inc":"หัวหน้าฝ่ายการตลาด ณ Acme, Inc","Hidden for members":"",Hide:"ซ่อน","Hide comment":"ซ่อนข้อความ","Jamie Larson":"กนกพัฒน์ สัณห์ฤทัย","Join the discussion":"เข้าร่วมการสนทนา","Just now":"ตอนนี้","Load more ({amount})":"","Local resident":"ผู้อยู่อาศัยในท้องถิ่น","Member discussion":"การสนทนาของสมาชิก",Name:"ชื่อ",Neurosurgeon:"ศัลยแพทย์ระบบประสาท",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"1 ชั่วโมงที่แล้ว","One min ago":"",removed:"","Replied to":"",Reply:"ตอบกลับ","Reply to":"","Reply to comment":"ตอบกลับความคิดเห็น",Report:"รายงาน","Report comment":"รายงานความคิดเห็น","Report this comment?":"รายงานความคิดเห็นนี้?",Save:"บันทึก",Sending:"กำลังส่ง",Sent:"ส่งแล้ว",Show:"แสดง","Show {amount} more replies":"แสดง {amount} การตอบกลับเพิ่มเติม","Show 1 more reply":"แสดงอีก 1 การตอบกลับ","Show comment":"ดูความคิดเห็น","Sign in":"ลงชื่อเข้าใช้","Sign up now":"สมัครใช้งานตอนนี้เลย","Sort by":"","Start the conversation":"เริ่มการสนทนา","The linked comment is no longer available.":"","This comment has been hidden.":"ความคิดเห็นนี้ถูกซ่อน","This comment has been removed.":"ความคิดเห็นนี้ถูกลบ","Upgrade now":"อัพเกรดตอนนี้เลย","View in admin":"",Yesterday:"เมื่อวาน","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"คำขอของคุณจะถูกส่งไปยังผู้ดูแลเว็บไซต์"},RD={"{amount} characters left":"{amount} karakter kaldı","{amount} comments":"{amount} yorum","{amount} hrs ago":"{amount} saat önce","{amount} mins ago":"{amount} dakika önce","{amount} more":"Daha fazla {amount}","1 comment":"1 yorum","Add comment":"Yorum ekle","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Yorumunuza bağlam ekleyin, adınızı ve uzmanlık alanınızı paylaşarak sağlıklı bir tartışmayı teşvik edin.","Add reply":"Yanıt ekle","Add your expertise":"Uzmanlığınızı ekleyin","Already a member?":"Zaten üye misiniz?",Anonymous:"Anonim","Are you sure?":"Emin misin?","Become a member of {publication} to start commenting.":"Yorum yapmaya başlamak için {publication} sitesinde hesap oluşturun.","Become a paid member of {publication} to start commenting.":"Yorum yapmaya başlamak için {publication} sitesinde ücretli hesap oluşturun.",Best:"En iyi",Cancel:"İptal et",Comment:"Yorum ekle","Commenting disabled":"","Complete your profile":"Profilinizi tamamlayın",Delete:"Sil",Deleted:"Silindi","Deleted member":"Silinen üye",Deleting:"Siliniyor",Discussion:"Yorumlar",Edit:"Düzenle","Edit this comment":"Bu yorumu düzenle",edited:"düzenlendi","Enter your name":"Adınızı girin",Expertise:"Uzmanlık","Founder @ Acme Inc":"Kurucu @ Firma Ünvan","Full-time parent":"Tam zamanlı ebeveyn","Head of Marketing at Acme, Inc":"Firma, Ünvan'da Pazarlama Müdürü","Hidden for members":"Üyeler için gizli",Hide:"Gizle","Hide comment":"Yorumu gizle","Jamie Larson":"Ahmet Yılmaz","Join the discussion":"Tartışmaya katıl","Just now":"Şu anda","Load more ({amount})":"Daha fazla yükle ({amount})","Local resident":"Yerel sakini","Member discussion":"Üye tartışması",Name:"Ad",Neurosurgeon:"Beyin cerrahı",Newest:"En yeni",Oldest:"En eski","Once deleted, this comment can’t be recovered.":"Bu yorum silindikten sonra kurtarılamaz.","One hour ago":"Bir saat önce","One min ago":"Bir dakika önce",removed:"kaldırıldı","Replied to":"Cevaplandı",Reply:"Cevapla","Reply to":"Cevapla","Reply to comment":"Yoruma cevap ver",Report:"Rapor et","Report comment":"Yorumu rapor et","Report this comment?":"Bu yorum rapor edilsin mi?",Save:"Kaydet",Sending:"Gönderiliyor",Sent:"Gönderildi",Show:"Göster","Show {amount} more replies":"{amount} daha fazla yanıt göster","Show 1 more reply":"1 cevap daha göster","Show comment":"Yorumu göster","Sign in":"Giriş yap","Sign up now":"Şimdi kayıt ol","Sort by":"Sırala","Start the conversation":"Bu konu hakkında düşüncelerini paylaş","The linked comment is no longer available.":"","This comment has been hidden.":"Bu yorum gizlendi.","This comment has been removed.":"Bu yorum kaldırıldı.","Upgrade now":"Şimdi yükselt","View in admin":"",Yesterday:"Dün","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Talebiniz bu sitenin sahibine gönderilecektir."},DD={"{amount} characters left":"{amount} символів залишилось","{amount} comments":"{amount} коментарів","{amount} hrs ago":"{amount} годин тому","{amount} mins ago":"{amount} хвилин тому","{amount} more":"ще {amount}","1 comment":"1 коментар","Add comment":"Додати коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додайте контекст до свого коментаря, поділіться своїм іменем і досвідом, щоб сприяти здоровій дискусії.","Add reply":"Додати відповідь","Add your expertise":"","Already a member?":"Ви є учасником?",Anonymous:"Анонім","Are you sure?":"","Become a member of {publication} to start commenting.":"Станьте учасником {publication} щоб почати коментувати.","Become a paid member of {publication} to start commenting.":"Станьте платним учасником {publication} щоб почати коментувати.",Best:"",Cancel:"Відмінити",Comment:"Коментувати","Commenting disabled":"","Complete your profile":"Заповніть свій профіль",Delete:"Видалити",Deleted:"","Deleted member":"Видалений учасник",Deleting:"",Discussion:"Обговорення",Edit:"Редагувати","Edit this comment":"Редагувати цей коментар",edited:"Відредагований","Enter your name":"Введіть своє імʼя",Expertise:"Експертність","Founder @ Acme Inc":"Засновник @ Acme Inc","Full-time parent":"Виховую дітей","Head of Marketing at Acme, Inc":"Голова продажів в Acme, Inc","Hidden for members":"",Hide:"Сховати","Hide comment":"Сховати коментар","Jamie Larson":"Ваше імʼя","Join the discussion":"Долучитися до обговорення","Just now":"Прямо зараз","Load more ({amount})":"","Local resident":"Місцевий експерт","Member discussion":"Обговорення учасників",Name:"Імʼя",Neurosurgeon:"Нейрохірург",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Одну годину тому","One min ago":"Одну хвилину тому",removed:"","Replied to":"",Reply:"Відповісти","Reply to":"","Reply to comment":"Відповісти на коментар",Report:"Поскаржитися","Report comment":"Поскаржитися на коментар","Report this comment?":"Поскаржитися на цей коментар?",Save:"Зберегти",Sending:"Відправка",Sent:"Відправлено",Show:"Показати","Show {amount} more replies":"Показати ще {amount} відповідей","Show 1 more reply":"Показати ще одну відповідь","Show comment":"Показати коментар","Sign in":"Увійти","Sign up now":"Зареєструватись зараз","Sort by":"","Start the conversation":"Почніть розмову","The linked comment is no longer available.":"","This comment has been hidden.":"Цей коментар було приховано.","This comment has been removed.":"Цей коментар було видалено.","Upgrade now":"Оновити зараз","View in admin":"",Yesterday:"Вчора","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Ваш запит буде надіслано власнику цього сайту."},TD={"{amount} characters left":"{amount} حروف باقی ہیں","{amount} comments":"{amount} تبادلے","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"1 تبادلہ","Add comment":"تبادلہ شامل کریں","Add context to your comment, share your name and expertise to foster a healthy discussion.":"اپنے تبادلے میں سیاق و سباق شامل کریں، اچھی گفتگو کو بڑھانے کے لئے اپنا نام اور ماہریت شیئر کریں۔","Add reply":"جواب شامل کریں","Add your expertise":"","Already a member?":"پہلے ہی رکن ہیں؟",Anonymous:"ناشناس","Are you sure?":"","Become a member of {publication} to start commenting.":"تبادلہ شروع کرنے کے لئے {publication} کا رکن بنیں۔","Become a paid member of {publication} to start commenting.":"تبادلہ شروع کرنے کے لئے {publication} کا ادائیگی رکن بنیں۔",Best:"",Cancel:"منسوخ کریں",Comment:"تبادلہ","Commenting disabled":"","Complete your profile":"اپنا پروفائل مکمل کریں",Delete:"حذف کریں",Deleted:"","Deleted member":"حذف شدہ رکن",Deleting:"",Discussion:"تبادلہ",Edit:"ترتیب دیں","Edit this comment":"اس تبادلے کو ترتیب دیں",edited:"","Enter your name":"اپنا نام درج کریں",Expertise:"اہلیت","Founder @ Acme Inc":"ناظم @ Acme Inc","Full-time parent":"پورے وقت کا والد یا والدہ","Head of Marketing at Acme, Inc":"Acme، Inc کے مارکیٹنگ کا سربراہ","Hidden for members":"",Hide:"چھپائیں","Hide comment":"تبادلہ چھپائیں","Jamie Larson":"جیمی لارسن","Join the discussion":"تبادلے میں شامل ہوں","Just now":"ابھی","Load more ({amount})":"","Local resident":"مقامی رہائشی","Member discussion":"رکن کا تبادلہ",Name:"نام",Neurosurgeon:"نیوروسرجن",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"ایک گھنٹہ پہلے","One min ago":"",removed:"","Replied to":"",Reply:"جواب","Reply to":"","Reply to comment":"تبادلے کا جواب دیں",Report:"رپورٹ","Report comment":"تبادلے کی رپورٹ","Report this comment?":"کیا آپ اس تبادلے کو رپورٹ کرنا چاہتے ہیں؟",Save:"محفوظ کریں",Sending:"بھیج رہا ہے",Sent:"بھیجا گیا",Show:"دکھائیں","Show {amount} more replies":"{amount} مزید جوابات دکھائیں","Show 1 more reply":"1 مزید جواب دکھائیں","Show comment":"تبادلہ دکھائیں","Sign in":"سائن ان کریں","Sign up now":"ابھی رجسٹر ہوں","Sort by":"","Start the conversation":"بات چیت شروع کریں","The linked comment is no longer available.":"","This comment has been hidden.":"یہ تبادلہ چھپا گیا ہے۔","This comment has been removed.":"یہ تبادلہ ہٹا دیا گیا ہے۔","Upgrade now":"اب اپ گریڈ کریں","View in admin":"",Yesterday:"کل","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"آپ کا درخواست اس سائٹ کے مالک کو بھیجا جائے گا۔"},MD={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":""},jD={"{amount} characters left":"{amount} ký tự còn lại","{amount} comments":"{amount} bình luận","{amount} hrs ago":"{amount} giờ trước","{amount} mins ago":"{amount} phút trước","{amount} more":"{amount} nữa","1 comment":"1 bình luận","Add comment":"Thêm bình luận","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Thêm ngữ cảnh, tên và chuyên môn của bạn để thúc đẩy cuộc thảo luận lành mạnh.","Add reply":"Trả lời","Add your expertise":"Thêm chuyên môn của bạn","Already a member?":"Đã là thành viên?",Anonymous:"Ẩn danh","Are you sure?":"Bạn có chắc không?","Become a member of {publication} to start commenting.":"Trở thành thành viên của {publication} để có thể bình luận.","Become a paid member of {publication} to start commenting.":"Trở thành thành viên trả phí của {publication} để có thể bình luận.",Best:"Hay nhất",Cancel:"Hủy",Comment:"Bình luận","Commenting disabled":"","Complete your profile":"Hoàn tất hồ sơ của bạn",Delete:"Xóa",Deleted:"Đã xóa","Deleted member":"Thành viên đã xóa",Deleting:"Đang xóa",Discussion:"Thảo luận",Edit:"Sửa","Edit this comment":"Sửa bình luận này",edited:"đã sửa","Enter your name":"Nhập tên của bạn",Expertise:"Chuyên môn","Founder @ Acme Inc":"Nhà sáng lập @ Acme Inc","Full-time parent":"Phụ huynh toàn thời gian","Head of Marketing at Acme, Inc":"Trưởng phòng Marketing tại Acme, Inc","Hidden for members":"Ẩn với thành viên",Hide:"Ẩn","Hide comment":"Ẩn bình luận","Jamie Larson":"Nguyễn Minh Châu","Join the discussion":"Tham gia thảo luận","Just now":"Vừa xong","Load more ({amount})":"Hiện thêm ({amount})","Local resident":"Cư dân địa phương","Member discussion":"Thảo luận của thành viên",Name:"Tên",Neurosurgeon:"Bác sĩ phẫu thuật thần kinh",Newest:"Mới nhất",Oldest:"Cũ nhất","Once deleted, this comment can’t be recovered.":"Một khi đã xóa, bình luận này không thể khôi phục.","One hour ago":"Một giờ trước","One min ago":"Một phút trước",removed:"đã xóa","Replied to":"Đã trả lời",Reply:"Trả lời","Reply to":"Trả lời","Reply to comment":"Trả lời bình luận",Report:"Báo cáo","Report comment":"Báo cáo bình luận","Report this comment?":"Báo cáo bình luận này?",Save:"Lưu",Sending:"Đang gửi",Sent:"Đã gửi",Show:"Hiển thị","Show {amount} more replies":"Xem thêm {amount} trả lời khác","Show 1 more reply":"Xem thêm 1 trả lời","Show comment":"Xem bình luận","Sign in":"Đăng nhập","Sign up now":"Đăng ký ngay","Sort by":"Xếp theo","Start the conversation":"Bắt đầu cuộc trò chuyện","The linked comment is no longer available.":"","This comment has been hidden.":"Bình luận này đã bị ẩn.","This comment has been removed.":"Bình luận này đã bị xóa.","Upgrade now":"Nâng cấp","View in admin":"",Yesterday:"Hôm qua","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Yêu cầu của bạn sẽ được gửi đến chủ sở hữu trang web này."},PD={"{amount} characters left":"还剩{amount}字","{amount} comments":"{amount}条评论","{amount} hrs ago":"{amount}小时前","{amount} mins ago":"{amount}分钟前","{amount} more":"还剩{amount}条评论","1 comment":"一条评论","Add comment":"添加评论","Add context to your comment, share your name and expertise to foster a healthy discussion.":"为评论补充更多的上下文信息、例如您的姓名与专业背景有助于营造健康的讨论氛围。","Add reply":"回复","Add your expertise":"添加您的专业背景","Already a member?":"已经是会员?",Anonymous:"匿名","Are you sure?":"确认?","Become a member of {publication} to start commenting.":"成为{publication}的会员以开始评论。","Become a paid member of {publication} to start commenting.":"成为{publication}的付费会员以开始评论。",Best:"最多赞",Cancel:"取消",Comment:"评论","Commenting disabled":"","Complete your profile":"完善您的个人资料",Delete:"删除",Deleted:"已删除","Deleted member":"删除会员",Deleting:"删除中",Discussion:"讨论",Edit:"编辑","Edit this comment":"编辑此条评论",edited:"已编辑","Enter your name":"输入您的名字",Expertise:"专业背景","Founder @ Acme Inc":"Acme Inc的创建者","Full-time parent":"全职父母","Head of Marketing at Acme, Inc":"Acme, Inc市场部负责人","Hidden for members":"对会员隐藏",Hide:"隐藏","Hide comment":"隐藏评论","Jamie Larson":"阿宇","Join the discussion":"加入讨论","Just now":"刚刚","Load more ({amount})":"加载更多({amount})条","Local resident":"本地居民","Member discussion":"会员讨论",Name:"名字",Neurosurgeon:"神经外科医生",Newest:"最新",Oldest:"最早","Once deleted, this comment can’t be recovered.":"此评论一经删除后将无法复原。","One hour ago":"一小时前","One min ago":"一分钟前",removed:"已移除","Replied to":"已回复",Reply:"回复","Reply to":"回复","Reply to comment":"回复评论",Report:"举报","Report comment":"举报评论","Report this comment?":"举报此评论?",Save:"保存",Sending:"正在发送",Sent:"已发送",Show:"显示","Show {amount} more replies":"显示更多{amount}条评论","Show 1 more reply":"显示下一条评论","Show comment":"显示评论","Sign in":"登录","Sign up now":"立刻注册","Sort by":"排序方式","Start the conversation":"开始对话","The linked comment is no longer available.":"","This comment has been hidden.":"该条评论已被隐藏。","This comment has been removed.":"该条评论已被移除。","Upgrade now":"立刻升级","View in admin":"",Yesterday:"昨天","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"您的请求将被发送给站点所有者。"},ID={"{amount} characters left":"還剩{amount}個字","{amount} comments":"{amount}則留言","{amount} hrs ago":"{amount}小時前","{amount} mins ago":"{amount}分鐘前","{amount} more":"還剩{amount}則留言","1 comment":"一則留言","Add comment":"留言","Add context to your comment, share your name and expertise to foster a healthy discussion.":"為您的留言補充背景,說明您的稱呼與專業背景都有助於健康的討論氛圍。","Add reply":"回覆","Add your expertise":"新增您的專業背景","Already a member?":"已經是會員?",Anonymous:"匿名","Are you sure?":"您確定嗎?","Become a member of {publication} to start commenting.":"成為{publication}的會員以開始留言。","Become a paid member of {publication} to start commenting.":"成為{publication}的付費會員以開始留言。",Best:"最多讚",Cancel:"取消",Comment:"留言","Commenting disabled":"未開放留言","Complete your profile":"完成您的註冊資訊",Delete:"刪除",Deleted:"已刪除","Deleted member":"刪除會員",Deleting:"刪除中",Discussion:"討論",Edit:"編輯","Edit this comment":"編輯此則留言",edited:"已編輯","Enter your name":"輸入您的稱呼",Expertise:"專業背景","Founder @ Acme Inc":"Acme Inc的創辦人","Full-time parent":"全職父母","Head of Marketing at Acme, Inc":"Acme, Inc市場部負責人","Hidden for members":"對會員隱藏",Hide:"隱藏","Hide comment":"隱藏留言","Jamie Larson":"阿宇","Join the discussion":"加入討論","Just now":"剛剛","Load more ({amount})":"載入更多({amount})","Local resident":"本地居民","Member discussion":"會員討論",Name:"稱呼",Neurosurgeon:"神經外科醫生",Newest:"最新",Oldest:"最早","Once deleted, this comment can’t be recovered.":"此留言一經刪除後將無法復原。","One hour ago":"一小時前","One min ago":"一分鐘前",removed:"已移除","Replied to":"已回覆",Reply:"回覆","Reply to":"回覆","Reply to comment":"回覆留言",Report:"檢舉","Report comment":"檢舉留言","Report this comment?":"檢舉此留言?",Save:"儲存",Sending:"正在發送",Sent:"已發送",Show:"顯示","Show {amount} more replies":"顯示後續 {amount} 則留言","Show 1 more reply":"顯示下一則留言","Show comment":"顯示留言","Sign in":"登入","Sign up now":"立即註冊","Sort by":"排序方式","Start the conversation":"開始對話","The linked comment is no longer available.":"連結的留言已不存在。","This comment has been hidden.":"該則留言已被隱藏。","This comment has been removed.":"該則留言已被移除。","Upgrade now":"立即升級","View in admin":"從管理後台檢視",Yesterday:"昨天","You can't post comments in this publication.":"您無法在此刊物留言。","You can't post comments in this publication. <a>Contact support</a> for more information.":"您無法在此刊物留言。<a>聯繫客服</a> 以取得更多資訊。","Your request will be sent to the owner of this site.":"您的請求將被發送給網站所有者。"};var iv;function sv(){return iv||(iv={"/ghost/i18n/locales/af/comments.json":function(){return OR},"/ghost/i18n/locales/ar/comments.json":function(){return RR},"/ghost/i18n/locales/bg/comments.json":function(){return DR},"/ghost/i18n/locales/bn/comments.json":function(){return TR},"/ghost/i18n/locales/bs/comments.json":function(){return MR},"/ghost/i18n/locales/ca/comments.json":function(){return jR},"/ghost/i18n/locales/cs/comments.json":function(){return PR},"/ghost/i18n/locales/da/comments.json":function(){return IR},"/ghost/i18n/locales/de/comments.json":function(){return LR},"/ghost/i18n/locales/de-CH/comments.json":function(){return zR},"/ghost/i18n/locales/el/comments.json":function(){return FR},"/ghost/i18n/locales/en/comments.json":function(){return BR},"/ghost/i18n/locales/eo/comments.json":function(){return HR},"/ghost/i18n/locales/es/comments.json":function(){return VR},"/ghost/i18n/locales/et/comments.json":function(){return _R},"/ghost/i18n/locales/eu/comments.json":function(){return UR},"/ghost/i18n/locales/fa/comments.json":function(){return YR},"/ghost/i18n/locales/fi/comments.json":function(){return JR},"/ghost/i18n/locales/fr/comments.json":function(){return KR},"/ghost/i18n/locales/gd/comments.json":function(){return WR},"/ghost/i18n/locales/he/comments.json":function(){return qR},"/ghost/i18n/locales/hi/comments.json":function(){return GR},"/ghost/i18n/locales/hr/comments.json":function(){return QR},"/ghost/i18n/locales/hu/comments.json":function(){return ZR},"/ghost/i18n/locales/id/comments.json":function(){return XR},"/ghost/i18n/locales/is/comments.json":function(){return eD},"/ghost/i18n/locales/it/comments.json":function(){return tD},"/ghost/i18n/locales/ja/comments.json":function(){return nD},"/ghost/i18n/locales/ko/comments.json":function(){return oD},"/ghost/i18n/locales/kz/comments.json":function(){return rD},"/ghost/i18n/locales/lt/comments.json":function(){return iD},"/ghost/i18n/locales/lv/comments.json":function(){return sD},"/ghost/i18n/locales/mk/comments.json":function(){return aD},"/ghost/i18n/locales/mn/comments.json":function(){return lD},"/ghost/i18n/locales/ms/comments.json":function(){return cD},"/ghost/i18n/locales/nb/comments.json":function(){return uD},"/ghost/i18n/locales/ne/comments.json":function(){return dD},"/ghost/i18n/locales/nl/comments.json":function(){return mD},"/ghost/i18n/locales/nn/comments.json":function(){return fD},"/ghost/i18n/locales/pa/comments.json":function(){return pD},"/ghost/i18n/locales/pl/comments.json":function(){return hD},"/ghost/i18n/locales/pt/comments.json":function(){return gD},"/ghost/i18n/locales/pt-BR/comments.json":function(){return yD},"/ghost/i18n/locales/ro/comments.json":function(){return bD},"/ghost/i18n/locales/ru/comments.json":function(){return wD},"/ghost/i18n/locales/si/comments.json":function(){return vD},"/ghost/i18n/locales/sk/comments.json":function(){return SD},"/ghost/i18n/locales/sl/comments.json":function(){return $D},"/ghost/i18n/locales/sq/comments.json":function(){return kD},"/ghost/i18n/locales/sr/comments.json":function(){return xD},"/ghost/i18n/locales/sr-Cyrl/comments.json":function(){return CD},"/ghost/i18n/locales/sv/comments.json":function(){return ED},"/ghost/i18n/locales/sw/comments.json":function(){return ND},"/ghost/i18n/locales/ta/comments.json":function(){return AD},"/ghost/i18n/locales/th/comments.json":function(){return OD},"/ghost/i18n/locales/tr/comments.json":function(){return RD},"/ghost/i18n/locales/uk/comments.json":function(){return DD},"/ghost/i18n/locales/ur/comments.json":function(){return TD},"/ghost/i18n/locales/uz/comments.json":function(){return MD},"/ghost/i18n/locales/vi/comments.json":function(){return jD},"/ghost/i18n/locales/zh/comments.json":function(){return PD},"/ghost/i18n/locales/zh-Hant/comments.json":function(){return ID}})}function $o(t){function e(n){var o=av(n,t);if(o!==null)return sv()[o]();throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}return e.resolve=function(n){var o=av(n,t);return o!==null?o:require.resolve(n)},e}function av(t,e){var n=LD(t);t=ql(t);var o;t[0]==="/"&&(e="");for(var r=sv(),i=["",".js",".json"];n?o=ql(e+"/node_modules/"+t):o=ql(e+"/"+t),!o.endsWith("/..");){for(var s=0;s<i.length;s++){var a=o+i[s];if(r[a])return a}if(!n)break;var l=ql(e+"/..");if(l===e)break;e=l}return null}function LD(t){var e=t[0];if(e==="/"||e==="\\")return!1;var n=t[1],o=t[2];return!(e==="."&&(!n||n==="/"||n==="\\")||e==="."&&n==="."&&(!o||o==="/"||o==="\\")||n===":"&&(o==="/"||o==="\\"))}function ql(t){t=t.replace(/\\/g,"/");for(var e=t.split("/"),n=e[0]==="",o=1;o<e.length;o++)(e[o]==="."||e[o]==="")&&e.splice(o--,1);for(var o=1;o<e.length;o++)e[o]===".."&&o>0&&e[o-1]!==".."&&e[o-1]!=="."&&(e.splice(--o,2),o--);return t=e.join("/"),n&&t[0]!=="/"?t="/"+t:t.length===0&&(t="."),t}var as={exports:{}};const Y=t=>typeof t=="string",ls=()=>{let t,e;const n=new Promise((o,r)=>{t=o,e=r});return n.resolve=t,n.reject=e,n},lv=t=>t==null?"":""+t,zD=(t,e,n)=>{t.forEach(o=>{e[o]&&(n[o]=e[o])})},FD=/###/g,cv=t=>t&&t.indexOf("###")>-1?t.replace(FD,"."):t,uv=t=>!t||Y(t),cs=(t,e,n)=>{const o=Y(e)?e.split("."):e;let r=0;for(;r<o.length-1;){if(uv(t))return{};const i=cv(o[r]);!t[i]&&n&&(t[i]=new n),Object.prototype.hasOwnProperty.call(t,i)?t=t[i]:t={},++r}return uv(t)?{}:{obj:t,k:cv(o[r])}},dv=(t,e,n)=>{const{obj:o,k:r}=cs(t,e,Object);if(o!==void 0||e.length===1){o[r]=n;return}let i=e[e.length-1],s=e.slice(0,e.length-1),a=cs(t,s,Object);for(;a.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=cs(t,s,Object),a&&a.obj&&typeof a.obj[`${a.k}.${i}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},BD=(t,e,n,o)=>{const{obj:r,k:i}=cs(t,e,Object);r[i]=r[i]||[],r[i].push(n)},Gl=(t,e)=>{const{obj:n,k:o}=cs(t,e);if(n)return n[o]},HD=(t,e,n)=>{const o=Gl(t,n);return o!==void 0?o:Gl(e,n)},mv=(t,e,n)=>{for(const o in e)o!=="__proto__"&&o!=="constructor"&&(o in t?Y(t[o])||t[o]instanceof String||Y(e[o])||e[o]instanceof String?n&&(t[o]=e[o]):mv(t[o],e[o],n):t[o]=e[o]);return t},wr=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var VD={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const _D=t=>Y(t)?t.replace(/[&<>"'\/]/g,e=>VD[e]):t;class UD{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const o=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,o),this.regExpQueue.push(e),o}}const YD=[" ",",","?","!",";"],JD=new UD(20),KD=(t,e,n)=>{e=e||"",n=n||"";const o=YD.filter(s=>e.indexOf(s)<0&&n.indexOf(s)<0);if(o.length===0)return!0;const r=JD.getRegExp(`(${o.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!r.test(t);if(!i){const s=t.indexOf(n);s>0&&!r.test(t.substring(0,s))&&(i=!0)}return i},ff=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const o=e.split(n);let r=t;for(let i=0;i<o.length;){if(!r||typeof r!="object")return;let s,a="";for(let l=i;l<o.length;++l)if(l!==i&&(a+=n),a+=o[l],s=r[a],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<o.length-1)continue;i+=l-i+1;break}r=s}return r},Ql=t=>t&&t.replace("_","-"),WD={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class Zl{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||WD,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return this.forward(n,"log","",!0)}warn(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return this.forward(n,"warn","",!0)}error(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return this.forward(n,"error","")}deprecate(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,o,r){return r&&!this.debug?null:(Y(e[0])&&(e[0]=`${o}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new Zl(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Zl(this.logger,e)}}var Bt=new Zl;class Xl{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(o=>{this.observers[o]||(this.observers[o]=new Map);const r=this.observers[o].get(n)||0;this.observers[o].set(n,r+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a.apply(a,[e,...o])})}}class fv extends Xl{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,n],o&&(Array.isArray(o)?a.push(...o):Y(o)&&i?a.push(...o.split(i)):a.push(o)));const l=Gl(this.data,a);return!l&&!n&&!o&&e.indexOf(".")>-1&&(e=a[0],n=a[1],o=a.slice(2).join(".")),l||!s||!Y(o)?l:ff(this.data&&this.data[e]&&this.data[e][n],o,i)}addResource(e,n,o,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[e,n];o&&(a=a.concat(s?o.split(s):o)),e.indexOf(".")>-1&&(a=e.split("."),r=n,n=a[1]),this.addNamespaces(n),dv(this.data,a,r),i.silent||this.emit("added",e,n,o,r)}addResources(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in o)(Y(o[i])||Array.isArray(o[i]))&&this.addResource(e,n,i,o[i],{silent:!0});r.silent||this.emit("added",e,n,o)}addResourceBundle(e,n,o,r,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[e,n];e.indexOf(".")>-1&&(a=e.split("."),r=o,o=n,n=a[1]),this.addNamespaces(n);let l=Gl(this.data,a)||{};s.skipCopy||(o=JSON.parse(JSON.stringify(o))),r?mv(l,o,i):l={...l,...o},dv(this.data,a,l),s.silent||this.emit("added",e,n,o)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,n)}:this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var pv={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,o,r){return t.forEach(i=>{this.processors[i]&&(e=this.processors[i].process(e,n,o,r))}),e}};const hv={};class ec extends Xl{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),zD(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Bt.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const o=this.resolve(e,n);return o&&o.res!==void 0}extractFromKey(e,n){let o=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");const r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const s=o&&e.indexOf(o)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!KD(e,o,r);if(s&&!a){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:Y(i)?[i]:i};const c=e.split(o);(o!==r||o===r&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),e=c.join(r)}return{key:e,namespaces:Y(i)?[i]:i}}translate(e,n,o){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(e[e.length-1],n),l=a[a.length-1],c=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(u){const S=n.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${S}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${S}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s}const d=this.resolve(e,n);let m=d&&d.res;const f=d&&d.usedKey||s,p=d&&d.exactUsedKey||s,g=Object.prototype.toString.apply(m),h=["[object Number]","[object Function]","[object RegExp]"],y=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,v=!Y(m)&&typeof m!="boolean"&&typeof m!="number";if(w&&m&&v&&h.indexOf(g)<0&&!(Y(y)&&Array.isArray(m))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,m,{...n,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(d.res=S,d.usedParams=this.getUsedParamsDetails(n),d):S}if(i){const S=Array.isArray(m),C=S?[]:{},$=S?p:f;for(const k in m)if(Object.prototype.hasOwnProperty.call(m,k)){const N=`${$}${i}${k}`;C[k]=this.translate(N,{...n,joinArrays:!1,ns:a}),C[k]===N&&(C[k]=m[k])}m=C}}else if(w&&Y(y)&&Array.isArray(m))m=m.join(y),m&&(m=this.extendTranslation(m,e,n,o));else{let S=!1,C=!1;const $=n.count!==void 0&&!Y(n.count),k=ec.hasDefaultValue(n),N=$?this.pluralResolver.getSuffix(c,n.count,n):"",O=n.ordinal&&$?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",H=$&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),ie=H&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${N}`]||n[`defaultValue${O}`]||n.defaultValue;!this.isValidLookup(m)&&k&&(S=!0,m=ie),this.isValidLookup(m)||(C=!0,m=s);const oe=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:m,ye=k&&ie!==m&&this.options.updateMissing;if(C||S||ye){if(this.logger.log(ye?"updateKey":"missingKey",c,l,s,ye?ie:m),i){const A=this.resolve(s,{...n,keySeparator:!1});A&&A.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let de=[];const me=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&me&&me[0])for(let A=0;A<me.length;A++)de.push(me[A]);else this.options.saveMissingTo==="all"?de=this.languageUtils.toResolveHierarchy(n.lng||this.language):de.push(n.lng||this.language);const E=(A,j,q)=>{const D=k&&q!==m?q:oe;this.options.missingKeyHandler?this.options.missingKeyHandler(A,l,j,D,ye,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(A,l,j,D,ye,n),this.emit("missingKey",A,l,j,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&$?de.forEach(A=>{const j=this.pluralResolver.getSuffixes(A,n);H&&n[`defaultValue${this.options.pluralSeparator}zero`]&&j.indexOf(`${this.options.pluralSeparator}zero`)<0&&j.push(`${this.options.pluralSeparator}zero`),j.forEach(q=>{E([A],s+q,n[`defaultValue${q}`]||ie)})}):E(de,s,ie))}m=this.extendTranslation(m,e,n,d,o),C&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}:${s}`),(C||S)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,S?m:void 0):m=this.options.parseMissingKeyHandler(m))}return r?(d.res=m,d.usedParams=this.getUsedParamsDetails(n),d):m}extendTranslation(e,n,o,r,i){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init({...o,interpolation:{...this.options.interpolation,...o.interpolation}});const c=Y(e)&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(c){const m=e.match(this.interpolator.nestingRegexp);u=m&&m.length}let d=o.replace&&!Y(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),e=this.interpolator.interpolate(e,d,o.lng||this.language||r.usedLng,o),c){const m=e.match(this.interpolator.nestingRegexp),f=m&&m.length;u<f&&(o.nest=!1)}!o.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(o.lng=this.language||r.usedLng),o.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var m=arguments.length,f=new Array(m),p=0;p<m;p++)f[p]=arguments[p];return i&&i[0]===f[0]&&!o.context?(s.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${n[0]}`),null):s.translate(...f,n)},o)),o.interpolation&&this.interpolator.reset()}const a=o.postProcess||this.options.postProcess,l=Y(a)?[a]:a;return e!=null&&l&&l.length&&o.applyPostProcessor!==!1&&(e=pv.handle(l,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),e}resolve(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,r,i,s,a;return Y(e)&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(o))return;const c=this.extractFromKey(l,n),u=c.key;r=u;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const m=n.count!==void 0&&!Y(n.count),f=m&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),p=n.context!==void 0&&(Y(n.context)||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(h=>{this.isValidLookup(o)||(a=h,!hv[`${g[0]}-${h}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(hv[`${g[0]}-${h}`]=!0,this.logger.warn(`key "${r}" for languages "${g.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(y=>{if(this.isValidLookup(o))return;s=y;const w=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(w,u,y,h,n);else{let S;m&&(S=this.pluralResolver.getSuffix(y,n.count,n));const C=`${this.options.pluralSeparator}zero`,$=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(w.push(u+S),n.ordinal&&S.indexOf($)===0&&w.push(u+S.replace($,this.options.pluralSeparator)),f&&w.push(u+C)),p){const k=`${u}${this.options.contextSeparator}${n.context}`;w.push(k),m&&(w.push(k+S),n.ordinal&&S.indexOf($)===0&&w.push(k+S.replace($,this.options.pluralSeparator)),f&&w.push(k+C))}}let v;for(;v=w.pop();)this.isValidLookup(o)||(i=v,o=this.getResource(y,h,v,n))}))})}),{res:o,usedKey:r,exactUsedKey:i,usedLng:s,usedNS:a}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,o,r):this.resourceStore.getResource(e,n,o,r)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=e.replace&&!Y(e.replace);let r=o?e.replace:e;if(o&&typeof e.count<"u"&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!o){r={...r};for(const i of n)delete r[i]}return r}static hasDefaultValue(e){const n="defaultValue";for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&n===o.substring(0,n.length)&&e[o]!==void 0)return!0;return!1}}const pf=t=>t.charAt(0).toUpperCase()+t.slice(1);class gv{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Bt.create("languageUtils")}getScriptPartFromCode(e){if(e=Ql(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=Ql(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(Y(e)&&e.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let r=Intl.getCanonicalLocales(e)[0];if(r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r)return r}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let o=e.split("-");return this.options.lowerCaseLng?o=o.map(r=>r.toLowerCase()):o.length===2?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),n.indexOf(o[1].toLowerCase())>-1&&(o[1]=pf(o[1].toLowerCase()))):o.length===3&&(o[0]=o[0].toLowerCase(),o[1].length===2&&(o[1]=o[1].toUpperCase()),o[0]!=="sgn"&&o[2].length===2&&(o[2]=o[2].toUpperCase()),n.indexOf(o[1].toLowerCase())>-1&&(o[1]=pf(o[1].toLowerCase())),n.indexOf(o[2].toLowerCase())>-1&&(o[2]=pf(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(o=>{if(n)return;const r=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&e.forEach(o=>{if(n)return;const r=this.getLanguagePartFromCode(o);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(i=>{if(i===r)return i;if(!(i.indexOf("-")<0&&r.indexOf("-")<0)&&(i.indexOf("-")>0&&r.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===r||i.indexOf(r)===0&&r.length>1))return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),Y(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let o=e[n];return o||(o=e[this.getScriptPartFromCode(n)]),o||(o=e[this.formatLanguageCode(n)]),o||(o=e[this.getLanguagePartFromCode(n)]),o||(o=e.default),o||[]}toResolveHierarchy(e,n){const o=this.getFallbackCodes(n||this.options.fallbackLng||[],e),r=[],i=s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return Y(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):Y(e)&&i(this.formatLanguageCode(e)),o.forEach(s=>{r.indexOf(s)<0&&i(this.formatLanguageCode(s))}),r}}let qD=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],GD={1:t=>+(t>1),2:t=>+(t!=1),3:t=>0,4:t=>t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,5:t=>t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5,6:t=>t==1?0:t>=2&&t<=4?1:2,7:t=>t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,8:t=>t==1?0:t==2?1:t!=8&&t!=11?2:3,9:t=>+(t>=2),10:t=>t==1?0:t==2?1:t<7?2:t<11?3:4,11:t=>t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3,12:t=>+(t%10!=1||t%100==11),13:t=>+(t!==0),14:t=>t==1?0:t==2?1:t==3?2:3,15:t=>t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2,16:t=>t%10==1&&t%100!=11?0:t!==0?1:2,17:t=>t==1||t%10==1&&t%100!=11?0:1,18:t=>t==0?0:t==1?1:2,19:t=>t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3,20:t=>t==1?0:t==0||t%100>0&&t%100<20?1:2,21:t=>t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0,22:t=>t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3};const QD=["v1","v2","v3"],ZD=["v4"],yv={zero:0,one:1,two:2,few:3,many:4,other:5},XD=()=>{const t={};return qD.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:GD[e.fc]}})}),t};class eT{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=Bt.create("pluralResolver"),(!this.options.compatibilityJSON||ZD.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=XD(),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const o=Ql(e==="dev"?"en":e),r=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:o,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let s;try{s=new Intl.PluralRules(o,{type:r})}catch{if(!e.match(/-|_/))return;const l=this.languageUtils.getLanguagePartFromCode(e);s=this.getRule(l,n)}return this.pluralRulesCache[i]=s,s}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=this.getRule(e,n);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}getPluralFormsOfKey(e,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,o).map(r=>`${n}${r}`)}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=this.getRule(e,n);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort((r,i)=>yv[r]-yv[i]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):o.numbers.map(r=>this.getSuffix(e,r,n)):[]}getSuffix(e,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=this.getRule(e,o);return r?this.shouldUseIntlApi()?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,n){const o=e.noAbs?e.plurals(n):e.plurals(Math.abs(n));let r=e.numbers[o];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));const i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?i():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}shouldUseIntlApi(){return!QD.includes(this.options.compatibilityJSON)}}const bv=function(t,e,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=HD(t,e,n);return!i&&r&&Y(n)&&(i=ff(t,n,o),i===void 0&&(i=ff(e,n,o))),i},hf=t=>t.replace(/\$/g,"$$$$");class tT{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Bt.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:o,useRawValueToEscape:r,prefix:i,prefixEscaped:s,suffix:a,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:m,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:g,nestingOptionsSeparator:h,maxReplaces:y,alwaysFormat:w}=e.interpolation;this.escape=n!==void 0?n:_D,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=i?wr(i):s||"{{",this.suffix=a?wr(a):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=m?wr(m):f||wr("$t("),this.nestingSuffix=p?wr(p):g||wr(")"),this.nestingOptionsSeparator=h||",",this.maxReplaces=y||1e3,this.alwaysFormat=w!==void 0?w:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,o)=>n&&n.source===o?(n.lastIndex=0,n):new RegExp(o,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,n,o,r){let i,s,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=f=>{if(f.indexOf(this.formatSeparator)<0){const y=bv(n,l,f,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,o,{...r,...n,interpolationkey:f}):y}const p=f.split(this.formatSeparator),g=p.shift().trim(),h=p.join(this.formatSeparator).trim();return this.format(bv(n,l,g,this.options.keySeparator,this.options.ignoreJSONStructure),h,o,{...r,...n,interpolationkey:g})};this.resetRegExp();const u=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:f=>hf(f)},{regex:this.regexp,safeValue:f=>this.escapeValue?hf(this.escape(f)):hf(f)}].forEach(f=>{for(a=0;i=f.regex.exec(e);){const p=i[1].trim();if(s=c(p),s===void 0)if(typeof u=="function"){const h=u(e,i,r);s=Y(h)?h:""}else if(r&&Object.prototype.hasOwnProperty.call(r,p))s="";else if(d){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${p} for interpolating ${e}`),s="";else!Y(s)&&!this.useRawValueToEscape&&(s=lv(s));const g=f.safeValue(s);if(e=e.replace(i[0],g),d?(f.regex.lastIndex+=s.length,f.regex.lastIndex-=i[0].length):f.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,s;const a=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const d=l.split(new RegExp(`${u}[ ]*{`));let m=`{${d[1]}`;l=d[0],m=this.interpolate(m,s);const f=m.match(/'/g),p=m.match(/"/g);(f&&f.length%2===0&&!p||p.length%2!==0)&&(m=m.replace(/'/g,'"'));try{s=JSON.parse(m),c&&(s={...c,...s})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${u}${m}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l};for(;r=this.nestingRegexp.exec(e);){let l=[];s={...o},s=s.replace&&!Y(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){const u=r[1].split(this.formatSeparator).map(d=>d.trim());r[1]=u.shift(),l=u,c=!0}if(i=n(a.call(this,r[1].trim(),s),s),i&&r[0]===e&&!Y(i))return i;Y(i)||(i=lv(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=""),c&&(i=l.reduce((u,d)=>this.format(u,d,o.lng,{...o,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}const nT=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const o=t.split("(");e=o[0].toLowerCase().trim();const r=o[1].substring(0,o[1].length-1);e==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):e==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){const[a,...l]=s.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=a.trim();n[u]||(n[u]=c),c==="false"&&(n[u]=!1),c==="true"&&(n[u]=!0),isNaN(c)||(n[u]=parseInt(c,10))}})}return{formatName:e,formatOptions:n}},vr=t=>{const e={};return(n,o,r)=>{let i=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(i={...i,[r.interpolationkey]:void 0});const s=o+JSON.stringify(i);let a=e[s];return a||(a=t(Ql(o),r),e[s]=a),a(n)}};class oT{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Bt.create("formatter"),this.options=e,this.formats={number:vr((n,o)=>{const r=new Intl.NumberFormat(n,{...o});return i=>r.format(i)}),currency:vr((n,o)=>{const r=new Intl.NumberFormat(n,{...o,style:"currency"});return i=>r.format(i)}),datetime:vr((n,o)=>{const r=new Intl.DateTimeFormat(n,{...o});return i=>r.format(i)}),relativetime:vr((n,o)=>{const r=new Intl.RelativeTimeFormat(n,{...o});return i=>r.format(i,o.range||"day")}),list:vr((n,o)=>{const r=new Intl.ListFormat(n,{...o});return i=>r.format(i)})},this.init(e)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=vr(n)}format(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(a=>a.indexOf(")")>-1)){const a=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,a)].join(this.formatSeparator)}return i.reduce((a,l)=>{const{formatName:c,formatOptions:u}=nT(l);if(this.formats[c]){let d=a;try{const m=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},f=m.locale||m.lng||r.locale||r.lng||o;d=this.formats[c](a,f,{...u,...r,...m})}catch(m){this.logger.warn(m)}return d}else this.logger.warn(`there was no format function for ${c}`);return a},e)}}const rT=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class iT extends Xl{constructor(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=o,this.languageUtils=o.languageUtils,this.options=r,this.logger=Bt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(o,r.backend,r)}queueLoad(e,n,o,r){const i={},s={},a={},l={};return e.forEach(c=>{let u=!0;n.forEach(d=>{const m=`${c}|${d}`;!o.reload&&this.store.hasResourceBundle(c,d)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?s[m]===void 0&&(s[m]=!0):(this.state[m]=1,u=!1,s[m]===void 0&&(s[m]=!0),i[m]===void 0&&(i[m]=!0),l[d]===void 0&&(l[d]=!0)))}),u||(a[c]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,n,o){const r=e.split("|"),i=r[0],s=r[1];n&&this.emit("failedLoading",i,s,n),!n&&o&&this.store.addResourceBundle(i,s,o,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&o&&(this.state[e]=0);const a={};this.queue.forEach(l=>{BD(l.loaded,[i],s),rT(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{a[c]||(a[c]={});const u=l.loaded[c];u.length&&u.forEach(d=>{a[c][d]===void 0&&(a[c][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:o,tried:r,wait:i,callback:s});return}this.readingCalls++;const a=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&u&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,o,r+1,i*2,s)},i);return}s(c,u)},l=this.backend[o].bind(this.backend);if(l.length===2){try{const c=l(e,n);c&&typeof c.then=="function"?c.then(u=>a(null,u)).catch(a):a(null,c)}catch(c){a(c)}return}return l(e,n,a)}prepareLoading(e,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Y(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Y(n)&&(n=[n]);const i=this.queueLoad(e,n,o,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(e,n,o){this.prepareLoading(e,n,{},o)}reload(e,n,o){this.prepareLoading(e,n,{reload:!0},o)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const o=e.split("|"),r=o[0],i=o[1];this.read(r,i,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${n}loading namespace ${i} for language ${r} failed`,s),!s&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${r}`,a),this.loaded(e,s,a)})}saveMissing(e,n,o,r,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${o}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if(this.backend&&this.backend.create){const l={...s,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(e,n,o,r,l):u=c(e,n,o,r),u&&typeof u.then=="function"?u.then(d=>a(null,d)).catch(a):a(null,u)}catch(u){a(u)}else c(e,n,o,r,a,l)}!e||!e[0]||this.store.addResource(e[0],n,o,r)}}}const wv=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),Y(t[1])&&(e.defaultValue=t[1]),Y(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(o=>{e[o]=n[o]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),vv=t=>(Y(t.ns)&&(t.ns=[t.ns]),Y(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),Y(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),tc=()=>{},sT=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class us extends Xl{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=vv(e),this.services={},this.logger=Bt,this.modules={external:[]},sT(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(o=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(Y(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const r=wv();this.options={...r,...this.options,...vv(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Bt.init(i(this.modules.logger),this.options):Bt.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=oT);const d=new gv(this.options);this.store=new fv(this.options.resources,this.options);const m=this.services;m.logger=Bt,m.resourceStore=this.store,m.languageUtils=d,m.pluralResolver=new eT(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(m.formatter=i(u),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new tT(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new iT(i(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(f){for(var p=arguments.length,g=new Array(p>1?p-1:0),h=1;h<p;h++)g[h-1]=arguments[h];e.emit(f,...g)}),this.modules.languageDetector&&(m.languageDetector=i(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=i(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new ec(this.services,this.options),this.translator.on("*",function(f){for(var p=arguments.length,g=new Array(p>1?p-1:0),h=1;h<p;h++)g[h-1]=arguments[h];e.emit(f,...g)}),this.modules.external.forEach(f=>{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,o||(o=tc),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return e.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return e.store[u](...arguments),e}});const l=ls(),c=()=>{const u=(d,m)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(m),o(d,m)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tc;const r=Y(e)?e:this.language;if(typeof e=="function"&&(o=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();const i=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(c=>{c!=="cimode"&&i.indexOf(c)<0&&i.push(c)})};r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(a=>s(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(a)})}else o(null)}reloadResources(e,n,o){const r=ls();return typeof e=="function"&&(o=e,e=void 0),typeof n=="function"&&(o=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),o||(o=tc),this.services.backendConnector.reload(e,n,i=>{r.resolve(),o(i)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&pv.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let n=0;n<this.languages.length;n++){const o=this.languages[n];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}changeLanguage(e,n){var o=this;this.isLanguageChangingTo=e;const r=ls();this.emit("languageChanging",e);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,c)=>{c?(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,r.resolve(function(){return o.t(...arguments)}),n&&n(l,function(){return o.t(...arguments)})},a=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const c=Y(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,u=>{s(u,c)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),r}getFixedT(e,n,o){var r=this;const i=function(s,a){let l;if(typeof a!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),d=2;d<c;d++)u[d-2]=arguments[d];l=r.options.overloadTranslationOptionHandler([s,a].concat(u))}else l={...a};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||o||i.keyPrefix);const m=r.options.keySeparator||".";let f;return l.keyPrefix&&Array.isArray(s)?f=s.map(p=>`${l.keyPrefix}${m}${p}`):f=l.keyPrefix?`${l.keyPrefix}${m}${s}`:s,r.t(f,l)};return Y(e)?i.lng=e:i.lngs=e,i.ns=n,i.keyPrefix=o,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const o=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const c=this.services.backendConnector.state[`${a}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const a=n.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(o,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(o,e)&&(!r||s(i,e)))}loadNamespaces(e,n){const o=ls();return this.options.ns?(Y(e)&&(e=[e]),e.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{o.resolve(),n&&n(r)}),o):(n&&n(),Promise.resolve())}loadLanguages(e,n){const o=ls();Y(e)&&(e=[e]);const r=this.options.preload||[],i=e.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return i.length?(this.options.preload=r.concat(i),this.loadResources(s=>{o.resolve(),n&&n(s)}),o):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=this.services&&this.services.languageUtils||new gv(wv());return n.indexOf(o.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new us(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tc;const o=e.forkResourceStore;o&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new us(r);return(e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},o&&(i.store=new fv(this.store.data,r),i.services.resourceStore=i.store),i.translator=new ec(i.services,r),i.translator.on("*",function(a){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];i.emit(a,...c)}),i.init(r,n),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Sv=us.createInstance();Sv.createInstance=us.createInstance;var aT=Sv;const Sr=CS(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var gf={exports:{}},yf={},$v={exports:{}};(function(t){var e=Sr,n=Sr;function o(i){return n.existsSync(e.join(i,"package.json"))}function r(i,s){if(i=i||t.parent.filename,s=s||o,typeof i=="string"&&(i[i.length-1]!==e.sep&&(i+=e.sep),i=i.split(e.sep)),!i.length)throw new Error("package.json not found in path");i.pop();var a=i.join(e.sep);try{if(s(a))return a}catch{}return r(i,s)}t.exports=r})($v);var lT=$v.exports,kv={exports:{}},xv=Object.prototype.toString,Cv=function(e){var n=xv.call(e),o=n==="[object Arguments]";return o||(o=n!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&xv.call(e.callee)==="[object Function]"),o},bf,Ev;function cT(){if(Ev)return bf;Ev=1;var t;if(!Object.keys){var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,o=Cv,r=Object.prototype.propertyIsEnumerable,i=!r.call({toString:null},"toString"),s=r.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(m){var f=m.constructor;return f&&f.prototype===m},c={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},u=function(){if(typeof window>"u")return!1;for(var m in window)try{if(!c["$"+m]&&e.call(window,m)&&window[m]!==null&&typeof window[m]=="object")try{l(window[m])}catch{return!0}}catch{return!0}return!1}(),d=function(m){if(typeof window>"u"||!u)return l(m);try{return l(m)}catch{return!1}};t=function(f){var p=f!==null&&typeof f=="object",g=n.call(f)==="[object Function]",h=o(f),y=p&&n.call(f)==="[object String]",w=[];if(!p&&!g&&!h)throw new TypeError("Object.keys called on a non-object");var v=s&&g;if(y&&f.length>0&&!e.call(f,0))for(var S=0;S<f.length;++S)w.push(String(S));if(h&&f.length>0)for(var C=0;C<f.length;++C)w.push(String(C));else for(var $ in f)!(v&&$==="prototype")&&e.call(f,$)&&w.push(String($));if(i)for(var k=d(f),N=0;N<a.length;++N)!(k&&a[N]==="constructor")&&e.call(f,a[N])&&w.push(a[N]);return w}}return bf=t,bf}var uT=Array.prototype.slice,dT=Cv,Nv=Object.keys,nc=Nv?function(e){return Nv(e)}:cT(),Av=Object.keys;nc.shim=function(){if(Object.keys){var e=function(){var n=Object.keys(arguments);return n&&n.length===arguments.length}(1,2);e||(Object.keys=function(o){return dT(o)?Av(uT.call(o)):Av(o)})}else Object.keys=nc;return Object.keys||nc};var mT=nc,Ov=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var r=42;e[n]=r;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,n);if(a.value!==r||a.enumerable!==!0)return!1}return!0},wf=Object,fT=Error,pT=EvalError,hT=RangeError,gT=ReferenceError,yT=SyntaxError,Rv=TypeError,bT=URIError,wT=Math.abs,vT=Math.floor,ST=Math.max,$T=Math.min,kT=Math.pow,xT=Math.round,CT=Number.isNaN||function(e){return e!==e},ET=CT,NT=function(e){return ET(e)||e===0?e:e<0?-1:1},AT=Object.getOwnPropertyDescriptor,oc=AT;if(oc)try{oc([],"length")}catch{oc=null}var Dv=oc,rc=Object.defineProperty||!1;if(rc)try{rc({},"a",{value:1})}catch{rc=!1}var OT=rc,vf,Tv;function RT(){if(Tv)return vf;Tv=1;var t=typeof Symbol<"u"&&Symbol,e=Ov;return vf=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},vf}var Sf,Mv;function jv(){return Mv||(Mv=1,Sf=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Sf}var $f,Pv;function Iv(){if(Pv)return $f;Pv=1;var t=wf;return $f=t.getPrototypeOf||null,$f}var DT="Function.prototype.bind called on incompatible ",TT=Object.prototype.toString,MT=Math.max,jT="[object Function]",Lv=function(e,n){for(var o=[],r=0;r<e.length;r+=1)o[r]=e[r];for(var i=0;i<n.length;i+=1)o[i+e.length]=n[i];return o},PT=function(e,n){for(var o=[],r=n,i=0;r<e.length;r+=1,i+=1)o[i]=e[r];return o},IT=function(t,e){for(var n="",o=0;o<t.length;o+=1)n+=t[o],o+1<t.length&&(n+=e);return n},LT=function(e){var n=this;if(typeof n!="function"||TT.apply(n)!==jT)throw new TypeError(DT+n);for(var o=PT(arguments,1),r,i=function(){if(this instanceof r){var u=n.apply(this,Lv(o,arguments));return Object(u)===u?u:this}return n.apply(e,Lv(o,arguments))},s=MT(0,n.length-o.length),a=[],l=0;l<s;l++)a[l]="$"+l;if(r=Function("binder","return function ("+IT(a,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var c=function(){};c.prototype=n.prototype,r.prototype=new c,c.prototype=null}return r},zT=LT,ic=Function.prototype.bind||zT,kf=Function.prototype.call,xf,zv;function Fv(){return zv||(zv=1,xf=Function.prototype.apply),xf}var FT=typeof Reflect<"u"&&Reflect&&Reflect.apply,BT=ic,HT=Fv(),VT=kf,_T=FT,UT=_T||BT.call(VT,HT),YT=ic,JT=Rv,KT=kf,WT=UT,Bv=function(e){if(e.length<1||typeof e[0]!="function")throw new JT("a function is required");return WT(YT,KT,e)},Cf,Hv;function qT(){if(Hv)return Cf;Hv=1;var t=Bv,e=Dv,n;try{n=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var o=!!n&&e&&e(Object.prototype,"__proto__"),r=Object,i=r.getPrototypeOf;return Cf=o&&typeof o.get=="function"?t([o.get]):typeof i=="function"?function(a){return i(a==null?a:r(a))}:!1,Cf}var Ef,Vv;function GT(){if(Vv)return Ef;Vv=1;var t=jv(),e=Iv(),n=qT();return Ef=t?function(r){return t(r)}:e?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return e(r)}:n?function(r){return n(r)}:null,Ef}var Nf,_v;function QT(){if(_v)return Nf;_v=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,n=ic;return Nf=n.call(t,e),Nf}var G,ZT=wf,XT=fT,e2=pT,t2=hT,n2=gT,$r=yT,kr=Rv,o2=bT,r2=wT,i2=vT,s2=ST,a2=$T,l2=kT,c2=xT,u2=NT,Uv=Function,Af=function(t){try{return Uv('"use strict"; return ('+t+").constructor;")()}catch{}},ds=Dv,d2=OT,Of=function(){throw new kr},m2=ds?function(){try{return arguments.callee,Of}catch{try{return ds(arguments,"callee").get}catch{return Of}}}():Of,xr=RT()(),Ee=GT(),f2=Iv(),p2=jv(),Yv=Fv(),ms=kf,Cr={},h2=typeof Uint8Array>"u"||!Ee?G:Ee(Uint8Array),ko={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?G:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?G:ArrayBuffer,"%ArrayIteratorPrototype%":xr&&Ee?Ee([][Symbol.iterator]()):G,"%AsyncFromSyncIteratorPrototype%":G,"%AsyncFunction%":Cr,"%AsyncGenerator%":Cr,"%AsyncGeneratorFunction%":Cr,"%AsyncIteratorPrototype%":Cr,"%Atomics%":typeof Atomics>"u"?G:Atomics,"%BigInt%":typeof BigInt>"u"?G:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?G:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?G:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?G:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":XT,"%eval%":eval,"%EvalError%":e2,"%Float16Array%":typeof Float16Array>"u"?G:Float16Array,"%Float32Array%":typeof Float32Array>"u"?G:Float32Array,"%Float64Array%":typeof Float64Array>"u"?G:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?G:FinalizationRegistry,"%Function%":Uv,"%GeneratorFunction%":Cr,"%Int8Array%":typeof Int8Array>"u"?G:Int8Array,"%Int16Array%":typeof Int16Array>"u"?G:Int16Array,"%Int32Array%":typeof Int32Array>"u"?G:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":xr&&Ee?Ee(Ee([][Symbol.iterator]())):G,"%JSON%":typeof JSON=="object"?JSON:G,"%Map%":typeof Map>"u"?G:Map,"%MapIteratorPrototype%":typeof Map>"u"||!xr||!Ee?G:Ee(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":ZT,"%Object.getOwnPropertyDescriptor%":ds,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?G:Promise,"%Proxy%":typeof Proxy>"u"?G:Proxy,"%RangeError%":t2,"%ReferenceError%":n2,"%Reflect%":typeof Reflect>"u"?G:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?G:Set,"%SetIteratorPrototype%":typeof Set>"u"||!xr||!Ee?G:Ee(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?G:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":xr&&Ee?Ee(""[Symbol.iterator]()):G,"%Symbol%":xr?Symbol:G,"%SyntaxError%":$r,"%ThrowTypeError%":m2,"%TypedArray%":h2,"%TypeError%":kr,"%Uint8Array%":typeof Uint8Array>"u"?G:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?G:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?G:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?G:Uint32Array,"%URIError%":o2,"%WeakMap%":typeof WeakMap>"u"?G:WeakMap,"%WeakRef%":typeof WeakRef>"u"?G:WeakRef,"%WeakSet%":typeof WeakSet>"u"?G:WeakSet,"%Function.prototype.call%":ms,"%Function.prototype.apply%":Yv,"%Object.defineProperty%":d2,"%Object.getPrototypeOf%":f2,"%Math.abs%":r2,"%Math.floor%":i2,"%Math.max%":s2,"%Math.min%":a2,"%Math.pow%":l2,"%Math.round%":c2,"%Math.sign%":u2,"%Reflect.getPrototypeOf%":p2};if(Ee)try{null.error}catch(t){var g2=Ee(Ee(t));ko["%Error.prototype%"]=g2}var y2=function t(e){var n;if(e==="%AsyncFunction%")n=Af("async function () {}");else if(e==="%GeneratorFunction%")n=Af("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=Af("async function* () {}");else if(e==="%AsyncGenerator%"){var o=t("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if(e==="%AsyncIteratorPrototype%"){var r=t("%AsyncGenerator%");r&&Ee&&(n=Ee(r.prototype))}return ko[e]=n,n},Jv={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},fs=ic,sc=QT(),b2=fs.call(ms,Array.prototype.concat),w2=fs.call(Yv,Array.prototype.splice),Kv=fs.call(ms,String.prototype.replace),ac=fs.call(ms,String.prototype.slice),v2=fs.call(ms,RegExp.prototype.exec),S2=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$2=/\\(\\)?/g,k2=function(e){var n=ac(e,0,1),o=ac(e,-1);if(n==="%"&&o!=="%")throw new $r("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&n!=="%")throw new $r("invalid intrinsic syntax, expected opening `%`");var r=[];return Kv(e,S2,function(i,s,a,l){r[r.length]=a?Kv(l,$2,"$1"):s||i}),r},x2=function(e,n){var o=e,r;if(sc(Jv,o)&&(r=Jv[o],o="%"+r[0]+"%"),sc(ko,o)){var i=ko[o];if(i===Cr&&(i=y2(o)),typeof i>"u"&&!n)throw new kr("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:i}}throw new $r("intrinsic "+e+" does not exist!")},C2=function(e,n){if(typeof e!="string"||e.length===0)throw new kr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new kr('"allowMissing" argument must be a boolean');if(v2(/^%?[^%]*%?$/,e)===null)throw new $r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=k2(e),r=o.length>0?o[0]:"",i=x2("%"+r+"%",n),s=i.name,a=i.value,l=!1,c=i.alias;c&&(r=c[0],w2(o,b2([0,1],c)));for(var u=1,d=!0;u<o.length;u+=1){var m=o[u],f=ac(m,0,1),p=ac(m,-1);if((f==='"'||f==="'"||f==="`"||p==='"'||p==="'"||p==="`")&&f!==p)throw new $r("property names with quotes must have matching quotes");if((m==="constructor"||!d)&&(l=!0),r+="."+m,s="%"+r+"%",sc(ko,s))a=ko[s];else if(a!=null){if(!(m in a)){if(!n)throw new kr("base intrinsic for "+e+" exists, but the property is not available.");return}if(ds&&u+1>=o.length){var g=ds(a,m);d=!!g,d&&"get"in g&&!("originalValue"in g.get)?a=g.get:a=a[m]}else d=sc(a,m),a=a[m];d&&!l&&(ko[s]=a)}}return a},Wv=C2,qv=Bv,E2=qv([Wv("%String.prototype.indexOf%")]),N2=function(e,n){var o=Wv(e,!!n);return typeof o=="function"&&E2(e,".prototype.")>-1?qv([o]):o},A2=mT,Gv=Ov(),Qv=N2,lc=wf,O2=Qv("Array.prototype.push"),Zv=Qv("Object.prototype.propertyIsEnumerable"),R2=Gv?lc.getOwnPropertySymbols:null,D2=function(e,n){if(e==null)throw new TypeError("target must be an object");var o=lc(e);if(arguments.length===1)return o;for(var r=1;r<arguments.length;++r){var i=lc(arguments[r]),s=A2(i),a=Gv&&(lc.getOwnPropertySymbols||R2);if(a)for(var l=a(i),c=0;c<l.length;++c){var u=l[c];Zv(i,u)&&O2(s,u)}for(var d=0;d<s.length;++d){var m=s[d];if(Zv(i,m)){var f=i[m];o[m]=f}}}return o},Rf=D2,T2=function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),n={},o=0;o<e.length;++o)n[e[o]]=e[o];var r=Object.assign({},n),i="";for(var s in r)i+=s;return t!==i},M2=function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch{return t[1]==="y"}return!1},j2=function(){return!Object.assign||T2()||M2()?Rf:Object.assign},Xv={},P2=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},Df={exports:{}};typeof Object.create=="function"?Df.exports=function(e,n){e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Df.exports=function(e,n){e.super_=n;var o=function(){};o.prototype=n.prototype,e.prototype=new o,e.prototype.constructor=e};var I2=Df.exports;(function(t){var e=/%[sdj%]/g;t.format=function(E){if(!v(E)){for(var A=[],j=0;j<arguments.length;j++)A.push(r(arguments[j]));return A.join(" ")}for(var j=1,q=arguments,D=q.length,P=String(E).replace(e,function(B){if(B==="%%")return"%";if(j>=D)return B;switch(B){case"%s":return String(q[j++]);case"%d":return Number(q[j++]);case"%j":try{return JSON.stringify(q[j++])}catch{return"[Circular]"}default:return B}}),L=q[j];j<D;L=q[++j])h(L)||!k(L)?P+=" "+L:P+=" "+r(L);return P},t.deprecate=function(E,A){if(C(tt.process))return function(){return t.deprecate(E,A).apply(this,arguments)};if(process.noDeprecation===!0)return E;var j=!1;function q(){if(!j){if(process.throwDeprecation)throw new Error(A);process.traceDeprecation?console.trace(A):console.error(A),j=!0}return E.apply(this,arguments)}return q};var n={},o;t.debuglog=function(E){if(C(o)&&(o=process.env.NODE_DEBUG||""),E=E.toUpperCase(),!n[E])if(new RegExp("\\b"+E+"\\b","i").test(o)){var A=process.pid;n[E]=function(){var j=t.format.apply(t,arguments);console.error("%s %d: %s",E,A,j)}}else n[E]=function(){};return n[E]};function r(E,A){var j={seen:[],stylize:s};return arguments.length>=3&&(j.depth=arguments[2]),arguments.length>=4&&(j.colors=arguments[3]),g(A)?j.showHidden=A:A&&t._extend(j,A),C(j.showHidden)&&(j.showHidden=!1),C(j.depth)&&(j.depth=2),C(j.colors)&&(j.colors=!1),C(j.customInspect)&&(j.customInspect=!0),j.colors&&(j.stylize=i),l(j,E,j.depth)}t.inspect=r,r.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},r.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function i(E,A){var j=r.styles[A];return j?"\x1B["+r.colors[j][0]+"m"+E+"\x1B["+r.colors[j][1]+"m":E}function s(E,A){return E}function a(E){var A={};return E.forEach(function(j,q){A[j]=!0}),A}function l(E,A,j){if(E.customInspect&&A&&H(A.inspect)&&A.inspect!==t.inspect&&!(A.constructor&&A.constructor.prototype===A)){var q=A.inspect(j,E);return v(q)||(q=l(E,q,j)),q}var D=c(E,A);if(D)return D;var P=Object.keys(A),L=a(P);if(E.showHidden&&(P=Object.getOwnPropertyNames(A)),O(A)&&(P.indexOf("message")>=0||P.indexOf("description")>=0))return u(A);if(P.length===0){if(H(A)){var B=A.name?": "+A.name:"";return E.stylize("[Function"+B+"]","special")}if($(A))return E.stylize(RegExp.prototype.toString.call(A),"regexp");if(N(A))return E.stylize(Date.prototype.toString.call(A),"date");if(O(A))return u(A)}var Q="",He=!1,St=["{","}"];if(p(A)&&(He=!0,St=["[","]"]),H(A)){var xo=A.name?": "+A.name:"";Q=" [Function"+xo+"]"}if($(A)&&(Q=" "+RegExp.prototype.toString.call(A)),N(A)&&(Q=" "+Date.prototype.toUTCString.call(A)),O(A)&&(Q=" "+u(A)),P.length===0&&(!He||A.length==0))return St[0]+Q+St[1];if(j<0)return $(A)?E.stylize(RegExp.prototype.toString.call(A),"regexp"):E.stylize("[Object]","special");E.seen.push(A);var Ht;return He?Ht=d(E,A,j,L,P):Ht=P.map(function(YM){return m(E,A,j,L,YM,He)}),E.seen.pop(),f(Ht,Q,St)}function c(E,A){if(C(A))return E.stylize("undefined","undefined");if(v(A)){var j="'"+JSON.stringify(A).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return E.stylize(j,"string")}if(w(A))return E.stylize(""+A,"number");if(g(A))return E.stylize(""+A,"boolean");if(h(A))return E.stylize("null","null")}function u(E){return"["+Error.prototype.toString.call(E)+"]"}function d(E,A,j,q,D){for(var P=[],L=0,B=A.length;L<B;++L)me(A,String(L))?P.push(m(E,A,j,q,String(L),!0)):P.push("");return D.forEach(function(Q){Q.match(/^\d+$/)||P.push(m(E,A,j,q,Q,!0))}),P}function m(E,A,j,q,D,P){var L,B,Q;if(Q=Object.getOwnPropertyDescriptor(A,D)||{value:A[D]},Q.get?Q.set?B=E.stylize("[Getter/Setter]","special"):B=E.stylize("[Getter]","special"):Q.set&&(B=E.stylize("[Setter]","special")),me(q,D)||(L="["+D+"]"),B||(E.seen.indexOf(Q.value)<0?(h(j)?B=l(E,Q.value,null):B=l(E,Q.value,j-1),B.indexOf(`
156
- `)>-1&&(P?B=B.split(`
154
+ 3. "-" cannot repeat`);ce.customSchemes.push([t,e])}function XA(){ce.scanner=YA(ce.customSchemes);for(let t=0;t<ce.tokenQueue.length;t++)ce.tokenQueue[t][1]({scanner:ce.scanner});ce.parser=WA(ce.scanner.tokens);for(let t=0;t<ce.pluginQueue.length;t++)ce.pluginQueue[t][1]({scanner:ce.scanner,parser:ce.parser});return ce.initialized=!0,ce}function of(t){return ce.initialized||XA(),qA(ce.parser.start,t,Cw(ce.scanner.start,t))}of.scan=Cw;function Tw(t,e=null,n=null){if(e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const o=new tf(n),r=of(t),i=[];for(let s=0;s<r.length;s++){const a=r[s];a.isLink&&(!e||a.t===e)&&o.check(a)&&i.push(a.toFormattedObject(o))}return i}const rf="[\0-   ᠎ -\u2029  ]",eO=new RegExp(rf),tO=new RegExp(`${rf}$`),nO=new RegExp(rf,"g");function oO(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function rO(t){return new Ke({key:new kt("autolink"),appendTransaction:(e,n,o)=>{const r=e.some(c=>c.docChanged)&&!n.doc.eq(o.doc),i=e.some(c=>c.getMeta("preventAutolink"));if(!r||i)return;const{tr:s}=o,a=pC(n.doc,[...e]);if($C(a).forEach(({newRange:c})=>{const u=gC(o.doc,c,f=>f.isTextblock);let d,m;if(u.length>1)d=u[0],m=o.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ");else if(u.length){const f=o.doc.textBetween(c.from,c.to," "," ");if(!tO.test(f))return;d=u[0],m=o.doc.textBetween(d.pos,c.to,void 0," ")}if(d&&m){const f=m.split(eO).filter(Boolean);if(f.length<=0)return!1;const p=f[f.length-1],g=d.pos+m.lastIndexOf(p);if(!p)return!1;const h=of(p).map(y=>y.toObject(t.defaultProtocol));if(!oO(h))return!1;h.filter(y=>y.isLink).map(y=>({...y,from:g+y.start+1,to:g+y.end+1})).filter(y=>o.schema.marks.code?!o.doc.rangeHasMark(y.from,y.to,o.schema.marks.code):!0).filter(y=>t.validate(y.value)).filter(y=>t.shouldAutoLink(y.value)).forEach(y=>{ay(y.from,y.to,o.doc).some(w=>w.mark.type===t.type)||s.addMark(y.from,y.to,t.type.create({href:y.href}))})}}),!!s.steps.length)return s}})}function iO(t){return new Ke({key:new kt("handleClickLink"),props:{handleClick:(e,n,o)=>{var r,i;if(o.button!==0||!e.editable)return!1;let s=o.target;const a=[];for(;s.nodeName!=="DIV";)a.push(s),s=s.parentNode;if(!a.find(m=>m.nodeName==="A"))return!1;const l=sy(e.state,t.type.name),c=o.target,u=(r=c==null?void 0:c.href)!==null&&r!==void 0?r:l.href,d=(i=c==null?void 0:c.target)!==null&&i!==void 0?i:l.target;return c&&u?(window.open(u,d),!0):!1}}})}function sO(t){return new Ke({key:new kt("handlePasteLink"),props:{handlePaste:(e,n,o)=>{const{state:r}=e,{selection:i}=r,{empty:s}=i;if(s)return!1;let a="";o.content.forEach(c=>{a+=c.textContent});const l=Tw(a,{defaultProtocol:t.defaultProtocol}).find(c=>c.isLink&&c.value===a);return!a||!l?!1:t.editor.commands.setMark(t.type,{href:l.href})}}})}function So(t,e){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(o=>{const r=typeof o=="string"?o:o.scheme;r&&n.push(r)}),!t||t.replace(nO,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}const aO=Wr.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(t=>{if(typeof t=="string"){Dw(t);return}Dw(t.scheme,t.optionalSlashes)})},onDestroy(){ZA()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:"http",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},isAllowedUri:(t,e)=>!!So(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>!!t}},addAttributes(){return{href:{default:null,parseHTML(t){return t.getAttribute("href")}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:"a[href]",getAttrs:t=>{const e=t.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:n=>!!So(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!So(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Bo(this.options.HTMLAttributes,t),0]:["a",Bo(this.options.HTMLAttributes,{...t,href:""}),0]},addCommands(){return{setLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:o=>!!So(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,t).setMeta("preventAutolink",!0).run():!1},toggleLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:o=>!!So(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run():!1},unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[JC({find:t=>{const e=[];if(t){const{protocols:n,defaultProtocol:o}=this.options,r=Tw(t).filter(i=>i.isLink&&this.options.isAllowedUri(i.value,{defaultValidate:s=>!!So(s,n),protocols:n,defaultProtocol:o}));r.length&&r.forEach(i=>e.push({text:i.value,data:{href:i.href},index:i.start}))}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[],{protocols:e,defaultProtocol:n}=this.options;return this.options.autolink&&t.push(rO({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:o=>this.options.isAllowedUri(o,{defaultValidate:r=>!!So(r,e),protocols:e,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&t.push(iO({type:this.type})),this.options.linkOnPaste&&t.push(sO({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),t}}),lO=Qr.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Bo(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),cO=mt.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Ke({key:new kt("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:o}=e,r=[];if(!n)return null;const i=this.editor.isEmpty;return t.descendants((s,a)=>{const l=o>=a&&o<=a+s.nodeSize,c=!s.isLeaf&&na(s);if((l||!this.options.showOnlyCurrent)&&c){const u=[this.options.emptyNodeClass];i&&u.push(this.options.emptyEditorClass);const d=dt.node(a,a+s.nodeSize,{class:u.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:s,pos:a,hasAnchor:l}):this.options.placeholder});r.push(d)}return this.options.includeChildren}),we.create(t,r)}}})]}}),uO=Qr.create({name:"text",group:"inline"});function dO({placeholder:t,autofocus:e=!1,content:n=""}){return{extensions:[PA,uO,lO,aO.configure({openOnClick:!1}),cO.configure({placeholder:t,showOnlyWhenEditable:!1}),jA.configure({}),IA.configure({})],content:n,autofocus:e,editorProps:{attributes:{class:"gh-comment-content focus:outline-0","data-testid":"editor"}},parseOptions:{preserveWhitespace:"full"}}}function mO(t,e){const n=x.useRef(null),o=x.useCallback(r=>{n.current,r&&t&&t(r),n.current=r},[t,e]);return[n,o]}function fO(t){const{popup:e}=J();return(e==null?void 0:e.type)===t}function pO(t){const{t:e}=J();return x.useMemo(()=>KS(t,e),[t])}function sf(t,e=!1){const[n,o]=x.useState(e),r=x.useMemo(()=>({...dO(t)}),[t]),i=sA(r,[r]);return x.useEffect(()=>{if(i){const s=()=>{const a=!i.isEmpty;o(a)};return i.on("update",s),i.on("transaction",s),s(),()=>{i.off("update",s),i.off("transaction",s)}}},[i]),{editor:i,hasContent:n}}function hO(t,e){const n=x.useCallback(()=>{if(t.current)for(const i of Object.values(e))t.current.classList.add(...i.default.split(" ")),t.current.classList.remove(...i.outOfViewport.split(" "))},[t,e]),o=x.useCallback(i=>{if(t.current)for(const[s,a]of Object.entries(e))i[s]?(t.current.classList.add(...a.outOfViewport.split(" ")),t.current.classList.remove(...a.default.split(" "))):(t.current.classList.add(...a.default.split(" ")),t.current.classList.remove(...a.outOfViewport.split(" ")))},[t,e]),r=x.useCallback(()=>{if(t.current){const i=t.current.ownerDocument,s=i.defaultView||window;n();const a=t.current.getBoundingClientRect(),l={top:a.top<0,bottom:a.bottom>(s.innerHeight||i.documentElement.clientHeight),left:a.left<0,right:a.right>(s.innerWidth||i.documentElement.clientWidth)};o(l)}},[t]);x.useLayoutEffect(()=>{r()},[t]),x.useEffect(()=>(window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}),[])}const gO=({comment:t,submit:e,progress:n,setProgress:o,close:r,isOpen:i,editor:s,submitText:a,submitSize:l,openForm:c})=>{const{dispatchAction:u,t:d}=J();let m=null;x.useEffect(()=>{if(s&&c){const g=()=>{const h=t&&c.type==="edit"?s.getHTML()!==t.html:!s.isEmpty;c.hasUnsavedChanges!==h&&u("setCommentFormHasUnsavedChanges",{id:c.id,hasUnsavedChanges:h})};return s.on("update",g),s.on("transaction",g),g(),()=>{s.off("update",g),s.off("transaction",g)}}},[s,t,c,u]),n==="sending"&&(m=b.jsx(al,{className:"size-[24px] fill-white","data-testid":"button-spinner"}));const f=x.useCallback(g=>{if(s!=null&&s.isFocused){g.stopPropagation();return}},[s]),p=x.useCallback(async()=>{if(!(!s||s.isEmpty)){o("sending");try{await e({html:s.getHTML()})}catch{o("error");return}return r?r():(o("sent"),s.chain().clearContent().blur().run()),!1}},[o,s,e,r]);return x.useEffect(()=>{const g=h=>{if(h.metaKey||h.ctrlKey){h.key==="Enter"&&(s!=null&&s.isFocused)&&(p(),s==null||s.commands.blur());return}if(h.key==="Escape"){s!=null&&s.isFocused&&(r?r():s==null||s.commands.blur());return}};return window.addEventListener("keydown",g,{passive:!0}),()=>{window.removeEventListener("keydown",g,{passive:!0})}},[s,r,p]),b.jsxs(b.Fragment,{children:[b.jsx("div",{className:`text-md min-h-[120px] w-full rounded-lg border border-black/10 bg-white/75 p-2 pb-[68px] font-sans leading-normal transition-all delay-100 duration-150 focus:outline-0 sm:px-3 sm:text-lg dark:bg-white/10 dark:text-neutral-300 ${i?"cursor-text":"cursor-pointer"}`,"data-testid":"form-editor",children:b.jsx(GN,{editor:s,onMouseDown:f,onTouchStart:f})}),b.jsxs("div",{className:"absolute bottom-1 right-1 flex space-x-4 transition-[opacity] duration-150 sm:bottom-2 sm:right-2",children:[r&&b.jsx("button",{className:"ml-2.5 font-sans text-sm font-medium text-neutral-900/50 outline-0 transition-all hover:text-neutral-900/70 dark:text-white/60 dark:hover:text-white/75",type:"button",onClick:r,children:d("Cancel")}),b.jsxs("button",{className:`flex w-auto items-center justify-center ${l==="medium"&&"sm:min-w-[100px]"} ${l==="small"&&"sm:min-w-[64px]"} h-[40px] rounded-md bg-[var(--gh-accent-color)] px-3 py-2 text-center font-sans text-base font-medium text-white outline-0 transition-colors duration-200 hover:brightness-105 disabled:bg-black/5 disabled:text-neutral-900/30 sm:text-sm dark:disabled:bg-white/15 dark:disabled:text-white/35`,"data-testid":"submit-form-button",disabled:!s||s.isEmpty,type:"button",onClick:p,children:[m&&b.jsx("span",{className:"mr-1",children:m}),a&&b.jsx("span",{children:a})]})]})]})},yO=({show:t,name:e,expertise:n,replyingToText:o,editName:r,editExpertise:i})=>{const{t:s}=J(),a=!!o;return b.jsxs(wo,{"data-testid":"form-header",enter:"transition duration-500 delay-100 ease-in-out",enterFrom:"opacity-0 -translate-x-2",enterTo:"opacity-100 translate-x-0",leave:"transition-none duration-0",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:t,children:[b.jsxs("div",{className:"flex flex-wrap",children:[b.jsx("div",{className:"w-full font-sans text-base font-bold leading-snug text-neutral-900 sm:w-auto sm:text-sm dark:text-white/85","data-testid":"member-name",onMouseDown:r,children:e||"Anonymous"}),b.jsx("div",{className:"flex items-baseline justify-start",children:b.jsxs("button",{className:`group flex items-center justify-start whitespace-nowrap text-left font-sans text-base leading-snug text-neutral-900/50 transition duration-150 hover:text-black/75 sm:text-sm dark:text-white/60 dark:hover:text-white/75 ${!n&&"text-black/30 hover:text-black/50 dark:text-white/30 dark:hover:text-white/50"}`,"data-testid":"expertise-button",type:"button",onMouseDown:i,children:[b.jsxs("span",{children:[b.jsx("span",{className:"mx-[0.3em] hidden sm:inline",children:"·"}),n||s("Add your expertise")]}),n&&b.jsx(XS,{className:"ml-1 size-[12px] translate-x-[-6px] stroke-black/50 opacity-0 transition-all duration-100 ease-out group-hover:translate-x-0 group-hover:stroke-black/75 group-hover:opacity-100 dark:stroke-white/60 dark:group-hover:stroke-white/75"})]})})]}),a&&b.jsxs("div",{className:"mt-0.5 line-clamp-1 font-sans text-base leading-snug text-neutral-900/50 sm:text-sm dark:text-white/60","data-testid":"replying-to",children:[b.jsxs("span",{children:[s("Reply to"),":"]})," ",b.jsx("span",{className:"font-semibold text-neutral-900/60 dark:text-white/70",children:o})]})]})},af=({comment:t,submit:e,submitText:n,submitSize:o,close:r,editor:i,reduced:s,isOpen:a,openForm:l})=>{const{member:c}=J(),u=fO("addDetailsPopup"),[d,m]=x.useState("default"),f=x.useRef(null),p=c==null?void 0:c.name;(d==="sending"||p&&u)&&(a=!0);const g=h=>{if(i!=null&&i.isFocused){h.preventDefault();return}};return x.useEffect(()=>{i&&i.setEditable(!!p&&d!=="sending")},[i,p,d]),b.jsx("form",{ref:f,"data-testid":"form",onMouseDown:g,onTouchStart:g,children:b.jsx(gO,{close:r,comment:t,editor:i,isOpen:a,openForm:l,progress:d,reduced:s,setProgress:m,submit:e,submitSize:o,submitText:n})})},Mw=({editor:t,isOpen:e,reduced:n,openForm:o,children:r})=>{const{member:i,dispatchAction:s}=J(),a=i==null?void 0:i.name,l=i==null?void 0:i.expertise;let c="";e&&(c=!!(o!=null&&o.in_reply_to_snippet)?"pl-[1px] pt-[68px] sm:pl-[44px] sm:pt-[56px]":"pl-[1px] pt-[48px] sm:pl-[44px] sm:pt-[40px]");const u=x.useCallback(p=>{var g;(g=t==null?void 0:t.commands)==null||g.blur(),s("openPopup",{type:"addDetailsPopup",expertiseAutofocus:p.expertiseAutofocus??!1,callback:function(h){t&&h&&(t.setEditable(!0),t.commands.focus())}})},[t,s]),d=x.useCallback(()=>{u({expertiseAutofocus:!1})},[u]),m=x.useCallback(()=>{u({expertiseAutofocus:!0})},[u]),f=x.useCallback(()=>{if(t&&!t.isFocused){if(!a){d();return}t.commands.focus()}},[t,d,a]);return b.jsx("div",{className:`-mx-2 mt-[-10px] rounded-md transition duration-200 ${e?"cursor-default":"cursor-pointer"}`,children:b.jsxs("div",{className:"relative w-full",onClick:f,children:[b.jsx("div",{className:"pr-[1px] font-sans leading-normal dark:text-neutral-300",children:b.jsx("div",{className:`relative mb-7 w-full pl-[40px] transition-[padding] delay-100 duration-150 sm:pl-[44px] ${n&&"pl-0"} ${c}`,children:r})}),b.jsxs("div",{className:"absolute left-0 top-1 flex h-11 w-full items-start justify-start sm:h-12",children:[b.jsx("div",{className:"pointer-events-none mr-2 grow-0 sm:mr-3",children:b.jsx(gc,{member:i})}),b.jsx("div",{className:"grow-1 mt-0.5 w-full",children:b.jsx(yO,{editExpertise:m,editName:d,expertise:l,name:a,replyingToId:o==null?void 0:o.in_reply_to_id,replyingToText:o==null?void 0:o.in_reply_to_snippet,show:e})})]})]})})},bO=({comment:t,openForm:e,parent:n})=>{const{dispatchAction:o,t:r}=J(),i=x.useMemo(()=>({placeholder:r("Edit this comment"),autofocus:!1,content:t.html}),[t]),{editor:s}=sf(i);x.useEffect(()=>{s&&s.chain().focus().command(({tr:c,commands:u})=>u.setTextSelection({from:c.doc.content.size,to:c.doc.content.size})).run()},[s]);const a=x.useCallback(async({html:c})=>{await o("editComment",{comment:{id:t.id,html:c},parent:n})},[n,t,o]),l=x.useCallback(()=>{o("closeCommentForm",e.id)},[o,e]);return b.jsx("div",{className:"relative w-full",children:b.jsx(af,{close:l,comment:t,editor:s,isOpen:!0,openForm:e,reduced:ws(),submit:a,submitSize:"small",submitText:r("Save")})})},jw=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"black",...t},x.createElement("path",{d:"M8.00025 13.8739L2.46073 8.09636C1.97388 7.60989 1.65255 6.98248 1.54231 6.30312C1.43208 5.62376 1.53853 4.92694 1.84658 4.31148V4.31148C2.07887 3.84703 2.41819 3.44443 2.83659 3.13684C3.25499 2.82925 3.74049 2.62547 4.25308 2.54231C4.76567 2.45914 5.29069 2.49896 5.78488 2.65849C6.27906 2.81802 6.72827 3.09269 7.09549 3.45987L8.00025 4.36406L8.90502 3.45987C9.27224 3.09269 9.72145 2.81802 10.2156 2.65849C10.7098 2.49896 11.2348 2.45914 11.7474 2.54231C12.26 2.62547 12.7455 2.82925 13.1639 3.13684C13.5823 3.44443 13.9216 3.84703 14.1539 4.31148C14.4616 4.9267 14.5678 5.62311 14.4577 6.30208C14.3476 6.98105 14.0267 7.60817 13.5404 8.09462L8.00025 13.8739Z",strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round"})),wO=({comment:t})=>{const{dispatchAction:e,isMember:n,hasRequiredTier:o}=J(),[r,i]=x.useState(""),[s,a]=x.useState(!1),l=n&&o,c=async()=>{if(!l){e("openPopup",{type:"ctaPopup"});return}t.liked?(a(!0),await e("unlikeComment",t),a(!1)):(a(!0),await e("likeComment",t),i("animate-heartbeat"),setTimeout(()=>{i("")},400),a(!1))};return b.jsxs("button",{className:`duration-50 group flex cursor-pointer items-center font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${t.liked?"text-black/90 dark:text-white/90":"text-black/50 hover:text-black/75 dark:text-white/60 dark:hover:text-white/75"}`,"data-testid":"like-button",disabled:s,type:"button",onClick:c,children:[b.jsx(jw,{className:r+` mr-[6px] ${t.liked?"fill-black dark:fill-white stroke-black dark:stroke-white":"stroke-black/50 group-hover:stroke-black/75 dark:stroke-white/60 dark:group-hover:stroke-white/75"} ${!t.liked&&l&&"group-hover:stroke-black/75 dark:group-hover:stroke-white/75"} transition duration-50 ease-linear`}),t.count.likes]})},vO=({count:t,liked:e})=>b.jsxs("span",{className:`flex items-center font-sans text-base sm:text-sm ${e?"text-black/90 dark:text-white/90":"text-black/50 dark:text-white/60"}`,"data-testid":"like-count",children:[b.jsx(jw,{className:`mr-[6px] ${e?"fill-black stroke-black dark:fill-white dark:stroke-white":"stroke-black/50 dark:stroke-white/60"}`}),t]}),Pw=({comment:t,close:e})=>{const{dispatchAction:n,t:o,adminUrl:r}=J(),i=mp(),s=()=>{n("hideComment",t),e()},a=()=>{n("showComment",t),e()},l=t.status!=="published",c=r?`${r}#/comments/?id=is:${t.id}`:null;return b.jsxs("div",{className:"flex w-full flex-col gap-0.5",children:[l?b.jsxs("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700","data-testid":"show-button",type:"button",onClick:a,children:[b.jsx("span",{className:"hidden sm:inline",children:o("Show comment")}),b.jsx("span",{className:"sm:hidden",children:o("Show")})]}):b.jsxs("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] text-red-600 transition-colors hover:bg-neutral-100 dark:text-red-500 dark:hover:bg-neutral-700","data-testid":"hide-button",type:"button",onClick:s,children:[b.jsx("span",{className:"hidden sm:inline",children:o("Hide comment")}),b.jsx("span",{className:"sm:hidden",children:o("Hide")})]}),(i==null?void 0:i.commentModeration)&&c&&b.jsx("a",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700","data-testid":"view-in-admin-button",href:c,rel:"noopener noreferrer",target:"_blank",onClick:e,children:o("View in admin")})]})},SO=({comment:t,close:e,toggleEdit:n})=>{const{dispatchAction:o,t:r}=J(),i=()=>{o("openPopup",{type:"deletePopup",comment:t}),e()};return b.jsxs("div",{className:"flex w-full flex-col gap-0.5",children:[b.jsx("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700","data-testid":"edit",type:"button",onClick:n,children:r("Edit")}),b.jsx("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] text-red-600 transition-colors hover:bg-neutral-100 dark:text-red-500 dark:hover:bg-neutral-700","data-testid":"delete",type:"button",onClick:i,children:r("Delete")})]})},$O=({comment:t,close:e})=>{const{dispatchAction:n,t:o}=J(),r=()=>{n("openPopup",{type:"reportPopup",comment:t}),e()};return b.jsx("div",{className:"flex w-full flex-col gap-0.5",children:b.jsxs("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700",type:"button",onClick:r,children:[b.jsx("span",{className:"hidden sm:inline",children:o("Report comment")}),b.jsx("span",{className:"sm:hidden",children:o("Report")})]})})},kO=({comment:t,close:e,toggleEdit:n})=>{var u;const{member:o,isAdmin:r}=J(),i=o&&((u=t.member)==null?void 0:u.uuid)===(o==null?void 0:o.uuid),s=x.useRef(null),a=x.useRef(null);hO(a,{bottom:{default:"top-0",outOfViewport:"bottom-full mb-6"}}),x.useEffect(()=>{var f,p;const d=()=>{e()};window.addEventListener("click",d,{passive:!0});const m=(p=(f=s.current)==null?void 0:f.ownerDocument)==null?void 0:p.defaultView;return m&&m!==window&&m.addEventListener("click",d,{passive:!0}),()=>{window.removeEventListener("click",d,{passive:!0}),m&&m!==window&&m.removeEventListener("click",d,{passive:!0})}},[e]),x.useEffect(()=>{const d=m=>{m.key==="Escape"&&e()};return window.addEventListener("keydown",d,{passive:!0}),()=>{window.removeEventListener("keydown",d,{passive:!0})}},[e]);const l=d=>{d.stopPropagation()};let c=null;if(t.status==="published")i?c=b.jsx(SO,{close:e,comment:t,toggleEdit:n}):r?c=b.jsx(Pw,{close:e,comment:t}):c=b.jsx($O,{close:e,comment:t});else if(r)c=b.jsx(Pw,{close:e,comment:t});else return null;return b.jsx("div",{ref:s,className:"relative","data-testid":"comment-context-menu",onClick:l,children:b.jsx("div",{ref:a,className:"absolute z-10 min-w-min whitespace-nowrap rounded bg-white p-1 font-sans text-sm shadow-lg outline-0 sm:min-w-[80px] dark:bg-neutral-800 dark:text-white","data-testid":"comment-context-menu-inner",children:c})})},xO=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M3 12C3.82843 12 4.5 11.3284 4.5 10.5C4.5 9.67157 3.82843 9 3 9C2.17157 9 1.5 9.67157 1.5 10.5C1.5 11.3284 2.17157 12 3 12Z"}),x.createElement("path",{d:"M8 12C8.82843 12 9.5 11.3284 9.5 10.5C9.5 9.67157 8.82843 9 8 9C7.17157 9 6.5 9.67157 6.5 10.5C6.5 11.3284 7.17157 12 8 12Z"}),x.createElement("path",{d:"M13 12C13.8284 12 14.5 11.3284 14.5 10.5C14.5 9.67157 13.8284 9 13 9C12.1716 9 11.5 9.67157 11.5 10.5C11.5 11.3284 12.1716 12 13 12Z"})),lf=({comment:t,toggleEdit:e})=>{const[n,o]=x.useState(!1),r=()=>{o(s=>!s)},i=()=>{o(!1)};return b.jsxs("div",{"data-testid":"more-button",children:[b.jsx("button",{className:"outline-0",type:"button",onClick:r,children:b.jsx(xO,{className:`duration-50 gh-comments-icon gh-comments-icon-more outline-0 transition ease-linear hover:fill-black/75 dark:hover:fill-white/75 ${n?"fill-black/75 dark:fill-white/75":"fill-black/50 dark:fill-white/60"}`})}),n?b.jsx(kO,{close:i,comment:t,toggleEdit:e}):null]})},CO=({loadMore:t,count:e})=>{const{t:n}=J(),o=e===1?n("Show 1 more reply"):n("Show {amount} more replies",{amount:bs(e)}),r=n("{amount} more",{amount:bs(e)});return b.jsx("div",{className:"flex w-full items-center justify-start","data-testid":"replies-pagination",children:b.jsx("button",{className:"text-md group mb-10 ml-[48px] flex w-auto items-center px-0 pb-2 pt-0 text-left font-sans font-semibold text-neutral-700 sm:mb-12 dark:text-white ","data-testid":"reply-pagination-button",type:"button",onClick:t,children:b.jsxs("span",{className:"flex h-[40px] w-auto items-center justify-center whitespace-nowrap rounded-[6px] bg-black/5 px-4 py-2 text-center font-sans text-sm font-semibold text-neutral-700 outline-0 transition-all duration-150 hover:bg-black/10 dark:bg-white/15 dark:text-neutral-300 dark:hover:bg-white/20 dark:hover:text-neutral-100",children:["↓ ",b.jsx("span",{className:"ml-1 hidden sm:inline",children:o}),b.jsx("span",{className:"ml-1 inline sm:hidden",children:r})," "]})})})},Iw=3,EO=({comment:t})=>{const{dispatchAction:e,commentIdToScrollTo:n}=J(),o=x.useRef(new Set(t.replies.map(f=>f.id))),[r,i]=x.useState(()=>!!n&&t.replies.slice(Iw).some(f=>f.id===n)),s=t.replies.some(f=>!o.current.has(f.id)),a=r||s,l=t.count.replies>t.replies.length,c=a?t.replies:t.replies.slice(0,Iw),u=t.replies.length-c.length,d=l?t.count.replies-c.length:u,m=()=>{l&&e("loadMoreReplies",{comment:t,limit:"all"}),i(!0)};return b.jsxs("div",{children:[c.map(f=>b.jsx(Lw,{comment:f,parent:t},f.id)),d>0&&b.jsx(CO,{count:d,loadMore:m})]})},NO=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"black",width:16,height:16,viewBox:"0 0 16 16",...t},x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.3,d:"M1.333 7.206 6.539 2v3.254c3.645 0 8.461 1.432 8.461 7.81-1.757-2.994-3.58-3.905-8.46-3.905v3.254L1.332 7.206Z"})),AO=({disabled:t,isReplying:e,openReplyForm:n})=>{const{t:o,dispatchAction:r,isMember:i,hasRequiredTier:s}=J(),a=i&&s,l=()=>{if(!a){r("openPopup",{type:"ctaPopup"});return}n()};return b.jsxs("button",{className:`duration-50 group flex items-center font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${e?"text-black/90 dark:text-white/90":"text-black/50 hover:text-black/75 dark:text-white/60 dark:hover:text-white/75"}`,"data-testid":"reply-button",disabled:!!t,type:"button",onClick:l,children:[b.jsx(NO,{className:`mr-[6px] ${e?"fill-black dark:fill-white":"stroke-black/50 group-hover:stroke-black/75 dark:stroke-white/60 dark:group-hover:stroke-white/75"} duration-50 transition ease-linear`}),o("Reply")]})},OO=({openForm:t,parent:e})=>{const{postId:n,dispatchAction:o,t:r}=J(),[,i]=mO(vs),s=x.useMemo(()=>({placeholder:r("Reply to comment"),autofocus:!0}),[]),{editor:a}=sf(s),l=x.useCallback(async({html:d})=>{await o("addReply",{parent:e,reply:{post_id:n,in_reply_to_id:t.in_reply_to_id,status:"published",html:d}})},[e,n,t,o]),c=x.useCallback(()=>{o("closeCommentForm",t.id)},[o,t]),u=b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"hidden sm:inline",children:r("Add reply")}),b.jsx("span",{className:"sm:hidden",children:r("Reply")})]});return b.jsx("div",{ref:i,"data-testid":"reply-form",children:b.jsx("div",{className:"mt-[-16px] pr-2",children:b.jsx(Mw,{editor:a,isOpen:!0,openForm:t,reduced:ws(),children:b.jsx(af,{close:c,editor:a,isOpen:!0,openForm:t,reduced:ws(),submit:l,submitSize:"medium",submitText:u})})})})},Lw=({comment:t,parent:e})=>{const{commentsIsLoading:n}=J();return b.jsx(wo,{className:`${n?"animate-pulse":""}`,"data-testid":"animated-comment",enter:"transition-opacity duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",id:t.id,leave:"transition-opacity duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:!0,appear:!0,children:b.jsx(RO,{comment:t,parent:e})})},RO=({comment:t,parent:e})=>{const{dispatchAction:n,isAdmin:o}=J(),{showDeletedMessage:r,showHiddenMessage:i,showCommentContent:s}=DO(t,o),a=x.useCallback(()=>{const l={id:t.id,type:"edit",hasUnsavedChanges:!1,in_reply_to_id:t.in_reply_to_id,in_reply_to_snippet:t.in_reply_to_snippet};n("openCommentForm",l)},[t.id,n]);return r||i?b.jsx(MO,{comment:t,openEditMode:a}):s&&!i?b.jsx(TO,{comment:t,openEditMode:a,parent:e}):null},DO=(t,e)=>{const n=t.replies&&t.replies.length>0,o=t.status==="deleted",r=t.status==="hidden";return{showDeletedMessage:o&&n,showHiddenMessage:n&&r&&!e,showCommentContent:!o&&(e||t.status==="published")}},TO=({comment:t,parent:e,openEditMode:n})=>{var y;const{dispatchAction:o,openCommentForms:r,isAdmin:i,commentIdToHighlight:s}=J(),l=i&&t.status==="hidden"?"opacity-30":"",c=r.find(w=>w.id===t.id&&w.type==="edit"),u=!!c,d=r.find(w=>(w.id===t.id||w.parent_id===t.id)&&w.type==="reply"),m=d&&(!d.parent_id||d.parent_id===t.id),f=!!(d&&d.id===t.id),p=x.useCallback(async()=>{if(d&&d.id===t.id)o("closeCommentForm",d.id);else{const w={};e&&(w.in_reply_to_id=t.id,w.in_reply_to_snippet=ZS(t));const v={id:t.id,parent_id:e==null?void 0:e.id,type:"reply",hasUnsavedChanges:!1,...w};await o("openCommentForm",v)}},[t,e,d,o]),g=m||t.replies&&t.replies.length>0,h=b.jsx(gc,{member:t.member});return b.jsxs(Hw,{avatar:h,className:l,hasReplies:g,memberUuid:(y=t.member)==null?void 0:y.uuid,children:[b.jsx("div",{children:u?b.jsxs(b.Fragment,{children:[b.jsx(Fw,{className:l,comment:t}),b.jsx(bO,{comment:t,openForm:c,parent:e})]}):b.jsxs(b.Fragment,{children:[b.jsx(Fw,{className:l,comment:t}),b.jsx(zO,{className:l,html:t.html,isHighlighted:t.id===s}),b.jsx(BO,{comment:t,highlightReplyButton:f,openEditMode:n,openReplyForm:p,parent:e})]})}),b.jsx(zw,{comment:t}),m&&b.jsx(Bw,{comment:t,openForm:d})]})},MO=({comment:t,openEditMode:e})=>{const{isAdmin:n,openCommentForms:o,t:r}=J(),i=n&&t.status!=="deleted"?b.jsx(gc,{member:t.member}):b.jsx(vp,{}),s=t.replies&&t.replies.length>0,a=t.status==="hidden"?r("This comment has been hidden."):t.status==="deleted"?r("This comment has been removed."):"",l=o.find(d=>(d.id===t.id||d.parent_id===t.id)&&d.type==="reply"),c=l&&(!l.parent_id||l.parent_id===t.id),u=n&&t.status==="hidden";return b.jsxs(Hw,{avatar:i,hasReplies:s,children:[b.jsx("div",{className:"mt-[-3px] flex items-start",children:b.jsxs("div",{className:"flex h-10 flex-row items-center gap-4 pb-[8px] pr-4",children:[b.jsx("p",{className:"text-md mt-[4px] font-sans leading-normal text-neutral-900/40 sm:text-lg dark:text-white/60",children:a}),u&&b.jsx("div",{className:"mt-[4px]",children:b.jsx(lf,{comment:t,toggleEdit:e})})]})}),b.jsx(zw,{comment:t}),c&&b.jsx(Bw,{comment:t,openForm:l})]})},jO=({comment:t})=>{var o;const{member:e}=J(),n=e&&t.member&&t.member.uuid===e.uuid?e.expertise:(o=t==null?void 0:t.member)==null?void 0:o.expertise;return n?b.jsxs("span",{className:"[overflow-wrap:anywhere]",children:[b.jsx("span",{className:"mx-[0.3em] hidden sm:inline-block",children:"·"}),n]}):null},PO=({comment:t})=>{const{t:e}=J();return t.edited_at?b.jsxs("span",{children:[" (",e("edited"),")"]}):null},zw=({comment:t,className:e=""})=>t.replies&&t.replies.length>0?b.jsx("div",{className:`-ml-2 mb-4 mt-7 sm:mb-0 sm:mt-8 ${e}`,children:b.jsx(EO,{comment:t})}):null,Bw=({comment:t,openForm:e})=>b.jsx("div",{className:"my-8 sm:my-10",children:b.jsx(OO,{openForm:e,parent:t})}),IO=({comment:t})=>{const{t:e}=J(),n=GS(t,e);return b.jsx("h4",{className:"font-sans text-base font-bold leading-snug text-neutral-900 sm:text-sm dark:text-white/85",children:n})},LO=({comment:t})=>{const{comments:e,t:n,pageUrl:o}=J(),r=JS(e,t.in_reply_to_id);let i=t.in_reply_to_snippet;(!r||r.status!=="published")&&(i=`[${n("removed")}]`);const s=r&&r.status==="published",a="font-medium text-neutral-900/60 break-all transition-colors dark:text-white/70",l=`${a} hover:text-neutral-900/75 dark:hover:text-white/85`;return s?b.jsx("a",{className:l,"data-testid":"comment-in-reply-to",href:gp(o,t.in_reply_to_id),target:"_parent",children:i}):b.jsx("span",{className:a,"data-testid":"comment-in-reply-to",children:i})},Fw=({comment:t,className:e=""})=>{var c;const{member:n,t:o,pageUrl:r}=J(),i=pO(t.created_at),s=n&&t.member&&t.member.uuid===n.uuid?n.expertise:(c=t==null?void 0:t.member)==null?void 0:c.expertise,a=t.in_reply_to_id&&t.in_reply_to_snippet,l=b.jsxs("a",{className:"hover:underline",href:gp(r,t.id),target:"_parent",title:WS(t.created_at),children:[b.jsx("span",{className:"mx-[0.3em]",children:"·"}),i]});return b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:`mt-0.5 flex flex-wrap items-start sm:flex-row ${s?"flex-col":"flex-row"} ${a?"mb-0.5":"mb-2"} ${e}`,children:[b.jsx(IO,{comment:t}),b.jsx("div",{className:"flex items-baseline pr-4 font-sans text-base leading-snug text-neutral-900/50 sm:text-sm dark:text-white/60",children:b.jsxs("span",{children:[b.jsx(jO,{comment:t}),l,b.jsx(PO,{comment:t})]})})]}),a&&b.jsxs("div",{className:"mb-2 line-clamp-1 font-sans text-base leading-snug text-neutral-900/50 sm:text-sm dark:text-white/60",children:[b.jsx("span",{children:o("Replied to")}),": ",b.jsx(LO,{comment:t})]})]})},zO=({html:t,className:e="",isHighlighted:n})=>{let o=t;if(n){const s=new DOMParser().parseFromString(t,"text/html");s.querySelectorAll("p").forEach(l=>{const c=s.createElement("mark");for(c.className="animate-[highlight_2.5s_ease-out] [animation-delay:1s] bg-yellow-300/40 -my-0.5 py-0.5 dark:text-white/85 dark:bg-yellow-500/40";l.firstChild;)c.appendChild(l.firstChild);l.appendChild(c)}),o=s.body.innerHTML}const r={__html:o};return b.jsx("div",{className:`mt mb-2 flex flex-row items-center gap-4 pr-4 ${e}`,children:b.jsx("div",{dangerouslySetInnerHTML:r,className:"gh-comment-content text-md -mx-1 text-pretty rounded-md px-1 font-sans leading-normal text-neutral-900 [overflow-wrap:anywhere] sm:text-lg dark:text-white/85","data-testid":"comment-content"})})},BO=({comment:t,openReplyForm:e,highlightReplyButton:n,openEditMode:o,className:r=""})=>{var y;const{member:i,t:s,isMember:a,isAdmin:l,isCommentingDisabled:c}=J(),u=t.status==="published",d=i&&((y=t.member)==null?void 0:y.uuid)===(i==null?void 0:i.uuid),m=!c,f=!c,h=(l||a&&u)&&!(c&&d);return l&&t.status==="hidden"?b.jsxs("div",{className:`flex items-center gap-4 ${r}`,children:[b.jsx("span",{className:"font-sans text-base leading-snug text-red-600 sm:text-sm",children:s("Hidden for members")}),b.jsx(lf,{comment:t,toggleEdit:o})]}):b.jsxs("div",{className:`flex items-center gap-4 ${r}`,children:[m?b.jsx(wO,{comment:t}):b.jsx(vO,{count:t.count.likes,liked:t.liked}),f&&b.jsx(AO,{isReplying:n,openReplyForm:e}),h&&b.jsx(lf,{comment:t,toggleEdit:o})]})},FO=({hasReplies:t})=>t?b.jsx("div",{className:"mb-2 h-full w-px grow rounded bg-gradient-to-b from-neutral-900/15 from-70% to-transparent dark:from-white/20 dark:from-70%","data-testid":"replies-line"}):null,Hw=({children:t,avatar:e,hasReplies:n,className:o="",memberUuid:r=""})=>b.jsxs("div",{className:`flex w-full flex-row ${n===!0?"mb-0":"mb-7"}`,"data-member-uuid":r,"data-testid":"comment-component",children:[b.jsxs("div",{className:"mr-2 flex flex-col items-center justify-start sm:mr-3",children:[b.jsx("div",{className:`flex-0 mb-3 sm:mb-4 ${o}`,children:e}),b.jsx(FO,{hasReplies:n})]}),b.jsx("div",{className:"grow",children:t})]});var Vw={exports:{}},HO="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",VO=HO,_O=VO;function _w(){}function Uw(){}Uw.resetWarningCache=_w;var UO=function(){function t(o,r,i,s,a,l){if(l!==_O){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Uw,resetWarningCache:_w};return n.PropTypes=n,n};Vw.exports=UO();var YO=Vw.exports;const cf=At(YO);function Yw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function is(t){"@babel/helpers - typeof";return is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},is(t)}function JO(t,e){if(is(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e);if(is(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}function KO(t){var e=JO(t,"string");return is(e)=="symbol"?e:e+""}function WO(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,KO(o.key),o)}}function Jw(t,e,n){return e&&WO(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function qO(t,e){if(t==null)return{};var n={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(e.indexOf(o)!==-1)continue;n[o]=t[o]}return n}function GO(t,e){if(t==null)return{};var n,o,r=qO(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)===-1&&{}.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var uf="TOKEN_PLACEHOLDER",Jl="TOKEN_OPEN_TAG",df="TOKEN_CLOSE_TAG",mf="TOKEN_SELF_TAG",Kl="TOKEN_TEXT",Kw="NODE_FRAGMENT",Ww="NODE_TAG_ELEMENT",qw="NODE_VOID_ELEMENT",Gw="NODE_PLACEHOLDER",Qw="NODE_TEXT",QO=["type","children"],Je=function(){function t(e){var n=e.type,o=e.children,r=GO(e,QO);Yw(this,t),this.type=n,this.children=o||[];for(var i in r)this[i]=r[i];r.token&&(this.string=r.token.string)}return Jw(t,[{key:"appendChild",value:function(n){this.children.push(n)}},{key:"isLeaf",get:function(){return this.children.length===0}}]),t}();Je.createTagNode=function(t,e){return new Je({type:Ww,children:e,name:t.name,token:t})},Je.createFragmentNode=function(t){return new Je({type:Kw,children:t})},Je.createVoidNode=function(t){return new Je({type:qw,name:t.name,token:t})},Je.createTextNode=function(t){return new Je({type:Qw,text:t.string,token:t})},Je.createPlaceholderNode=function(t){return new Je({type:Gw,name:t.name,token:t})};var ZO=[{type:uf,regex:/{\s*(\w+)\s*}/g},{type:Jl,regex:/<(\w+)>/g},{type:df,regex:/<\/(\w+)>/g},{type:mf,regex:/<(\w+)\s*\/>/g}];function XO(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=eR(t))||e){n&&(t=n);var o=0,r=function(){};return{s:r,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(c){throw c},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
155
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,a;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return i=c.done,c},e:function(c){s=!0,a=c},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function eR(t,e){if(t){if(typeof t=="string")return Zw(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zw(t,e)}}function Zw(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function tR(t,e){var n=[],o=XO(e),r;try{for(o.s();!(r=o.n()).done;)for(var i=r.value,s=i.type,a=i.regex,l;(l=a.exec(t))!==null;)n.push({type:s,string:l[0],name:l[1],start:l.index,end:l.index+l[0].length})}catch(f){o.e(f)}finally{o.f()}n.sort(function(f,p){return f.start-p.start});var c=[],u=0;n.forEach(function(f){if(f.start===u){u=f.end;return}var p=f.start,g=t.substring(u,p);c.push({type:Kl,string:g,text:g,start:u,end:p}),u=f.end});var d=t.substring(u);d!==""&&c.push({type:Kl,string:d,start:u,end:t.length});var m=[].concat(c,n).sort(function(f,p){return f.start-p.start});return m}function nR(t,e){e||(e=ZO);var n=tR(t,e),o=new oR(n);return o.parse()}var ss="Syntax error. Please check if each open tag is closed correctly",Xw={type:"EPSILON"},oR=function(){function t(e){Yw(this,t),this.tokens=[].concat(e),this.tags=[]}return Jw(t,[{key:"parse",value:function(){var n=this.document();if(!this.predict(Xw.type))throw new Error(ss);return n}},{key:"document",value:function(){var n=this.elementOrData();return Je.createFragmentNode(n)}},{key:"element",value:function(){var n=this.openTag(),o=this.elementOrData();return this.endTag(),Je.createTagNode(n,o)}},{key:"openTag",value:function(){if(!this.predict(Jl))throw new Error(ss);return this.pushTag(this.lookahead),this.match(Jl)}},{key:"elementOrData",value:function(){var n=[];if(this.predict(Jl)&&(n.push(this.element()),n=n.concat(this.elementOrData())),this.predict(mf,Kl,uf)){var o=this.match(this.lookahead.type),r;switch(o.type){case mf:r=Je.createVoidNode(o);break;case Kl:r=Je.createTextNode(o);break;case uf:r=Je.createPlaceholderNode(o);break}n.push(r),n=n.concat(this.elementOrData())}return n}},{key:"endTag",value:function(){if(!this.predict(df))throw new Error(ss);var n=this.tags.pop();if(n.name!==this.lookahead.name)throw new Error(ss);this.match(df)}},{key:"lookahead",get:function(){return this.tokens.length===0?Xw:this.tokens[0]}},{key:"predict",value:function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return o.includes(this.lookahead.type)}},{key:"match",value:function(n){if(!this.predict(n))throw new Error(ss);var o=this.tokens.shift();return o}},{key:"pushTag",value:function(n){this.tags.push(n)}}]),t}(),rR=function t(e,n,o){var r=e.children.map(function(l,c){return _.createElement(_.Fragment,{key:o+c},t(l,n,o))});switch(e.type){case Qw:return e.text;case Kw:return _.createElement(_.Fragment,null,r);case qw:{var i=n[e.name];return typeof i=="function"?i():i||_.createElement(e.name,null)}case Ww:{var s=n[e.name];if(s===void 0)return _.createElement(e.name,null,r);if(typeof s=="function")return s(r);if(_.isValidElement(s)){if(_.Children.count(s.props.children)!==0)throw new Error("when passing an element as value, the element should not contains children");return _.cloneElement(s,{children:r})}throw new Error('Invalid mapping value for "'.concat(e.name,'". Only element or render function are accepted'))}case Gw:{var a=n[e.name];return a===void 0?(console.warn('missing "'.concat(e.name,'" in mapping')),e.string):typeof a=="function"?a():a}default:return}};function ev(t){var e=t.string,n=t.syntax,o=t.mapping,r=o===void 0?{}:o,i=t.graceful,s=i===void 0?!0:i;try{var a=nR(e,n);return rR(a,r,e)}catch(l){if(s)return console.error(l),e;throw l}}ev.propTypes={string:cf.string.isRequired,mapping:cf.object,graceful:cf.bool};const iR=()=>{const{accentColor:t,supportEmail:e,t:n}=J(),o={color:t};return b.jsxs(b.Fragment,{children:[b.jsx("h1",{className:"mb-2 text-center font-sans text-2xl font-semibold tracking-tight text-neutral-900 dark:text-white/85",children:n("Commenting disabled")}),b.jsx("p",{className:"w-full text-balance text-center text-lg leading-normal text-neutral-900 sm:px-8 dark:text-white/85",children:e?b.jsx(ev,{mapping:{a:b.jsx("a",{className:"font-semibold hover:opacity-90",href:`mailto:${e}`,style:o})},string:n("You can't post comments in this publication. <a>Contact support</a> for more information.")}):n("You can't post comments in this publication.")})]})},sR=({showCount:t,count:e})=>{const{t:n}=J();return t?e===1?b.jsx("div",{className:"text-md text-neutral-900/50 sm:text-lg dark:text-white/50","data-testid":"count",children:n("1 comment")}):b.jsx("div",{className:"text-md text-neutral-900/50 sm:text-lg dark:text-white/50","data-testid":"count",children:n("{amount} comments",{amount:bs(e)})}):null},aR=({title:t})=>{const{t:e}=J();return t===null?b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"sm:hidden",children:e("Discussion")}),b.jsx("span",{className:"hidden sm:inline",children:e("Member discussion")})]}):b.jsx(b.Fragment,{children:t})},lR=({title:t,showCount:e,count:n})=>!t&&!e&&t!==null?null:b.jsxs("div",{className:"mb-7 flex w-full items-baseline justify-between font-sans",children:[b.jsx("h2",{className:"text-[2.2rem] font-bold tracking-tight text-neutral-900 sm:text-2xl dark:text-white","data-testid":"title",children:b.jsx(aR,{title:t})}),b.jsx(sR,{count:n,showCount:e})]}),cR=({commentsCount:t})=>{const{postId:e,dispatchAction:n,t:o}=J(),r=x.useMemo(()=>({placeholder:o(t===0?"Start the conversation":"Join the discussion"),autofocus:!1}),[t]),{editor:i,hasContent:s}=sf(r),a=x.useCallback(async({html:d})=>{await n("addComment",{post_id:e,status:"published",html:d}),i==null||i.commands.clearContent()},[e,n,i]),l=x.useRef(null);x.useEffect(()=>{if(!i)return;const d=m=>{var g;if(!i||m.metaKey||m.ctrlKey)return;let f=document.activeElement;for(;f&&f.tagName==="IFRAME"&&f.contentDocument;)f=((g=f.contentDocument)==null?void 0:g.activeElement)??null;const p=f&&(f.tagName==="INPUT"||f.tagName==="TEXTAREA"||f.tagName==="IFRAME"||f.contentEditable==="true");if(m.key==="c"&&!(i!=null&&i.isFocused)&&!p){i==null||i.commands.focus(),l.current&&vs(l.current);return}};return window.addEventListener("keydown",d,{passive:!0}),()=>{window.removeEventListener("keydown",d,{passive:!0})}},[i]);const c={submitText:b.jsxs(b.Fragment,{children:[b.jsxs("span",{className:"hidden sm:inline",children:[o("Add comment")," "]}),b.jsx("span",{className:"sm:hidden",children:o("Comment")})]}),submitSize:"large",submit:a},u=(i==null?void 0:i.isFocused)||s;return b.jsx("div",{ref:l,className:"px-3 pb-2 pt-3","data-testid":"main-form",children:b.jsx(Mw,{editor:i,isOpen:u,reduced:!1,children:b.jsx(af,{editor:i,isOpen:u,reduced:!1,...c})})})},uR=()=>{const{pagination:t,dispatchAction:e,t:n}=J(),o=()=>{e("loadMoreComments",{})};if(!t)return null;const r=t.total-t.page*t.limit;if(r<=0)return null;const i=n("Load more ({amount})",{amount:bs(r)});return b.jsx("button",{className:"text-md group mb-10 flex items-center px-0 pb-2 pt-0 text-left font-sans font-semibold text-neutral-700 dark:text-white","data-testid":"pagination-component",type:"button",onClick:o,children:b.jsx("span",{className:"flex h-[40px] items-center justify-center whitespace-nowrap rounded-[6px] bg-black/5 px-4 py-2 text-center font-sans text-sm font-semibold text-neutral-700 outline-0 transition-all duration-150 hover:bg-black/10 dark:bg-white/15 dark:text-neutral-300 dark:hover:bg-white/20 dark:hover:text-neutral-100",children:i})})},yr="ghost-comments-root",dR=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},x.createElement("path",{d:"M23.25,7.311,12.53,18.03a.749.749,0,0,1-1.06,0L.75,7.311",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",fillRule:"evenodd"})),mR=()=>{var u;const{t}=J(),e=YS(),[n,o]=x.useState(!1),[r,i]=x.useState("count__likes desc, created_at desc"),s=x.useRef(null),a=[{value:"count__likes desc, created_at desc",label:t("Best")},{value:"created_at desc",label:t("Newest")},{value:"created_at asc",label:t("Oldest")}],l=d=>{i(d),e(d),o(!1)};x.useEffect(()=>{var f,p;const d=()=>{o(!1)};window.addEventListener("click",d,{passive:!0});const m=(p=(f=s.current)==null?void 0:f.ownerDocument)==null?void 0:p.defaultView;return m&&m!==window&&m.addEventListener("click",d,{passive:!0}),()=>{window.removeEventListener("click",d,{passive:!0}),m&&m!==window&&m.removeEventListener("click",d,{passive:!0})}},[]);const c=d=>{d.stopPropagation()};return b.jsxs("div",{ref:s,className:"relative z-20","data-testid":"comments-sorting-form",onClick:c,children:[b.jsxs("button",{className:"flex w-full items-center justify-between gap-2 text-sm font-medium text-neutral-900 focus-visible:outline-none dark:text-neutral-100",type:"button",onClick:()=>o(!n),children:[(u=a.find(d=>d.value===r))==null?void 0:u.label,b.jsx("span",{className:"size-2 stroke-[3px]",children:b.jsx(dR,{})})]}),n&&b.jsx("div",{className:"absolute -left-4 mt-1.5 w-36 origin-top-right rounded-md bg-white shadow-lg dark:bg-neutral-800",children:b.jsx("div",{"aria-labelledby":"options-menu","aria-orientation":"vertical",className:"py-1","data-testid":"comments-sorting-form-dropdown",role:"menu",children:a.map(d=>b.jsx("button",{className:"block w-full px-4 py-1.5 text-left text-sm text-neutral-600 transition-all hover:text-neutral-900 dark:text-neutral-200 dark:hover:text-white",role:"menuitem",type:"button",onClick:()=>l(d.value),children:d.label},d.value))})})]})};function tv(t){const e=t.defaultView;if(!(e!=null&&e.parent)||e.parent===e)return null;try{const n=e.parent.document.getElementsByTagName("iframe");for(const o of n)if(o.contentWindow===e)return o}catch{}return null}const fR=500;function nv(t,e){const n=t.clientHeight;let o=!1;const r=()=>{o||(o=!0,i.disconnect(),e())},i=new ResizeObserver(()=>{t.clientHeight!==n&&r()});i.observe(t);const s=setTimeout(r,fR);return()=>{clearTimeout(s),i.disconnect()}}const pR=()=>{const t=mp(),{pagination:e,comments:n,commentCount:o,title:r,showCount:i,commentsIsLoading:s,t:a,dispatchAction:l,commentIdToScrollTo:c,showMissingCommentNotice:u,isMember:d,isPaidOnly:m,hasRequiredTier:f,isCommentingDisabled:p}=J(),g=x.useRef(null),h=x.useCallback((k,N)=>{k.scrollIntoView({behavior:"smooth",block:"center"}),l("highlightComment",{commentId:N}),l("setScrollTarget",null)},[l]);x.useEffect(()=>{const k=document.getElementById(yr);k&&window.location.hash==="#ghost-comments"&&window.scrollY===0&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{k.scrollIntoView()})})},[]),x.useEffect(()=>{const k=window.parent;if(!k)return;const N=()=>{const O=yp(k.location.hash);if(O&&g.current){const ie=g.current.ownerDocument.getElementById(O);ie&&h(ie,O)}};return k.addEventListener("hashchange",N),()=>k.removeEventListener("hashchange",N)},[h]),x.useEffect(()=>{if(!c||s||!g.current)return;const k=g.current.ownerDocument,N=k.getElementById(c);if(!N)return;const O=tv(k);if(O)return nv(O,()=>{h(N,c)});h(N,c)},[c,s,n,h]),x.useEffect(()=>{if(!u||s)return;const k=document.getElementById(yr);if(!k)return;const N=tv(k.ownerDocument);if(N)return nv(N,()=>{vs(k)});vs(k)},[u,s]);const y=(e==null?void 0:e.total)===0,w=d&&f&&!p,v=w,S=!w&&p,C=!w&&!p,$=n.map(k=>b.jsx(Lw,{comment:k},k.id));return b.jsxs(b.Fragment,{children:[b.jsx(lR,{count:o,showCount:i,title:r}),u&&b.jsx("div",{className:"mb-6 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 font-sans text-sm text-amber-900 dark:border-amber-500/40 dark:bg-amber-500/15 dark:text-amber-100","data-testid":"missing-comment-notice",children:a("The linked comment is no longer available.")}),b.jsxs("div",{children:[v&&b.jsx(cR,{commentsCount:n.length}),S&&b.jsx("section",{className:"flex flex-col items-center py-6 sm:px-8 sm:py-10","data-testid":"commenting-disabled-box",children:b.jsx(iR,{})}),C&&b.jsx("section",{className:"flex flex-col items-center py-6 sm:px-8 sm:py-10","data-testid":"cta-box",children:b.jsx(fp,{isFirst:y,isPaid:m})})]}),o>1&&b.jsx("div",{className:"z-20 mb-7 mt-3",children:b.jsxs("span",{className:"flex items-center gap-1.5 text-sm font-medium text-neutral-900 dark:text-neutral-100",children:[a("Sort by"),": ",b.jsx(mR,{})]})}),b.jsx("div",{ref:g,className:`z-10 transition-opacity duration-100 ${s?"opacity-50":""}`,"data-testid":"comment-elements",children:$}),b.jsx(uR,{}),t!=null&&t.testFlag?b.jsx("div",{"data-testid":"this-comes-from-a-flag",style:{display:"none"}}):null]})};function hR(){return b.jsx("div",{className:"flex h-32 w-full items-center justify-center","data-testid":"loading",children:b.jsx(al,{className:"mb-6 size-12 fill-neutral-300/80 dark:fill-white/60"})})}const gR=({done:t})=>{const e=(c,u,d)=>{const m=[c,u,d].map(function(f){return f/=255,f<=.03928?f/12.92:Math.pow((f+.055)/1.055,2.4)});return m[0]*.2126+m[1]*.7152+m[2]*.0722},n=(c,u)=>{const d=e(c[0],c[1],c[2]),m=e(u[0],u[1],u[2]),f=Math.max(d,m),p=Math.min(d,m);return(f+.05)/(p+.05)},{accentColor:o,colorScheme:r}=J(),i=x.useCallback(()=>{if(r==="light")return!1;if(r==="dark")return!0;{const c=document.getElementById(yr);if(!c||!c.parentElement)return!1;const u=getComputedStyle(c.parentElement).getPropertyValue("color"),d=u.substring(u.indexOf("(")+1,u.lastIndexOf(")")).split(/,\s*/),m=parseInt(d[0]),f=parseInt(d[1]),p=parseInt(d[2]);return n([255,255,255],[m,f,p])<5}},[r,n]),[s,a]=x.useState(i()?"dark":"");x.useEffect(()=>{a(i()?"dark":"")},[r,i]),x.useEffect(()=>{const c=document.getElementById(yr);if(c!=null&&c.parentElement){const u=new MutationObserver(()=>{a(i()?"dark":"")});return u.observe(c.parentElement,{attributes:!0,attributeFilter:["style","class"]}),()=>{u.disconnect()}}},[i]);const l={"--gh-accent-color":o??"black",paddingTop:0,paddingBottom:24};return b.jsx("section",{className:"ghost-display "+s,"data-loaded":t,"data-testid":"content-box",style:l,children:t?b.jsx(pR,{}):b.jsx(hR,{})})};class yR extends x.Component{constructor(n){super(n);Nr(this,"node");Nr(this,"iframeHtml");Nr(this,"iframeHead");Nr(this,"iframeRoot");Nr(this,"handleLoad",()=>{this.setupFrameBaseStyle()});this.setNode=this.setNode.bind(this),this.node=null}componentDidMount(){this.node.addEventListener("load",this.handleLoad)}componentWillUnmount(){this.node.removeEventListener("load",this.handleLoad)}setupFrameBaseStyle(){var n,o;this.node.contentDocument&&(this.iframeHtml=this.node.contentDocument.documentElement,this.iframeHead=this.node.contentDocument.head,this.iframeRoot=this.node.contentDocument.body,this.forceUpdate(),this.props.onResize&&((o=(n=new ResizeObserver(r=>{window.requestAnimationFrame(()=>{this.props.onResize(this.iframeRoot)})}))==null?void 0:n.observe)==null||o.call(n,this.iframeRoot)),this.node.contentWindow.addEventListener("keydown",r=>{window.dispatchEvent(new KeyboardEvent("keydown",r))}))}setNode(n){this.node=n,this.props.innerRef&&(this.props.innerRef.current=n)}render(){const{children:n,head:o,title:r="",style:i={},...s}=this.props;return b.jsxs("iframe",{srcDoc:"<!DOCTYPE html>",...s,ref:this.setNode,frameBorder:"0",style:i,title:r,children:[this.iframeHead&&$m.createPortal(o,this.iframeHead),this.iframeRoot&&$m.createPortal(n,this.iframeRoot)]})}}const bR=x.forwardRef(function(e,n){return b.jsx(yR,{...e,innerRef:n})}),wR='*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 481px){.container{max-width:481px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1400px){.container{max-width:1400px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-left-4{left:-1.6rem}.bottom-1{bottom:.4rem}.bottom-full{bottom:100%}.left-0{left:0}.right-1{right:.4rem}.right-6{right:2.4rem}.top-0{top:0}.top-1{top:.4rem}.top-5{top:2rem}.z-10{z-index:10}.z-20{z-index:20}.-mx-1{margin-left:-.4rem;margin-right:-.4rem}.-mx-2{margin-left:-.8rem;margin-right:-.8rem}.-my-0\\.5{margin-top:-.2rem;margin-bottom:-.2rem}.mx-\\[0\\.3em\\]{margin-left:.3em;margin-right:.3em}.my-8{margin-top:3.2rem;margin-bottom:3.2rem}.-ml-2{margin-left:-.8rem}.mb-0{margin-bottom:0}.mb-0\\.5{margin-bottom:.2rem}.mb-1{margin-bottom:.4rem}.mb-1\\.5{margin-bottom:.6rem}.mb-10{margin-bottom:4rem}.mb-2{margin-bottom:.8rem}.mb-3{margin-bottom:1.2rem}.mb-4{margin-bottom:1.6rem}.mb-6{margin-bottom:2.4rem}.mb-7{margin-bottom:2.8rem}.mb-\\[12px\\]{margin-bottom:12px}.mb-\\[28px\\]{margin-bottom:28px}.mb-\\[8px\\]{margin-bottom:8px}.ml-1{margin-left:.4rem}.ml-2\\.5{margin-left:1rem}.ml-\\[48px\\]{margin-left:48px}.mr-1{margin-right:.4rem}.mr-2{margin-right:.8rem}.mr-\\[6px\\]{margin-right:6px}.mt-0\\.5{margin-top:.2rem}.mt-1\\.5{margin-top:.6rem}.mt-10{margin-top:4rem}.mt-3{margin-top:1.2rem}.mt-6{margin-top:2.4rem}.mt-7{margin-top:2.8rem}.mt-8{margin-top:3.2rem}.mt-\\[-10px\\]{margin-top:-10px}.mt-\\[-16px\\]{margin-top:-16px}.mt-\\[-1px\\]{margin-top:-1px}.mt-\\[-3px\\]{margin-top:-3px}.mt-\\[4px\\]{margin-top:4px}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.contents{display:contents}.hidden{display:none}.size-10{width:4rem;height:4rem}.size-12{width:4.8rem;height:4.8rem}.size-2{width:.8rem;height:.8rem}.size-5{width:2rem;height:2rem}.size-7{width:2.8rem;height:2.8rem}.size-\\[12px\\]{width:12px;height:12px}.size-\\[16px\\]{width:16px;height:16px}.size-\\[24px\\]{width:24px;height:24px}.h-10{height:4rem}.h-11{height:4.4rem}.h-32{height:12.8rem}.h-8{height:3.2rem}.h-\\[40px\\]{height:40px}.h-\\[42px\\]{height:42px}.h-\\[44px\\]{height:44px}.h-full{height:100%}.h-screen{height:100vh}.min-h-\\[120px\\]{min-height:120px}.w-36{width:14.4rem}.w-8{width:3.2rem}.w-\\[50\\%\\]{width:50%}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.min-w-min{min-width:min-content}.grow{flex-grow:1}.grow-0{flex-grow:0}.origin-top-right{transform-origin:top right}.-translate-x-2{--tw-translate-x: -.8rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[-6px\\]{--tw-translate-x: -6px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-2{--tw-translate-y: .8rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y: 1.6rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes highlight{to{background-color:transparent}}.animate-\\[highlight_2\\.5s_ease-out\\]{animation:highlight 2.5s ease-out}@keyframes heartbeat{0%,to{transform:scale(1)}50%{transform:scale(1.3)}}.animate-heartbeat{animation:heartbeat .35s ease-in-out forwards}.animate-pulse{animation:pulse 1.5s cubic-bezier(.4,0,.6,1) infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\\.5{gap:.2rem}.gap-1\\.5{gap:.6rem}.gap-2{gap:.8rem}.gap-3{gap:1.2rem}.gap-4{gap:1.6rem}.gap-9{gap:3.6rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.6rem * var(--tw-space-x-reverse));margin-left:calc(1.6rem * calc(1 - var(--tw-space-x-reverse)))}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.text-balance{text-wrap:balance}.text-pretty{text-wrap:pretty}.break-all{word-break:break-all}.rounded{border-radius:.4rem}.rounded-\\[6px\\]{border-radius:6px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.8rem}.rounded-md{border-radius:.6rem}.border{border-width:1px}.border-2{border-width:2px}.border-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}.border-black\\/10{border-color:#0000001a}.border-neutral-200{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity, 1))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.bg-\\[var\\(--gh-accent-color\\)\\]{background-color:var(--gh-accent-color)}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-black\\/5{background-color:#0000000d}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.bg-neutral-800{--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.bg-neutral-900{--tw-bg-opacity: 1;background-color:rgb(23 23 23 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-white\\/75{background-color:#ffffffbf}.bg-yellow-300\\/40{background-color:#fde04766}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-\\[rgba\\(0\\,0\\,0\\,0\\.2\\)\\]{--tw-gradient-from: rgba(0,0,0,.2) var(--tw-gradient-from-position);--tw-gradient-to: rgba(0, 0, 0, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-neutral-900\\/15{--tw-gradient-from: rgb(23 23 23 / .15) var(--tw-gradient-from-position);--tw-gradient-to: rgb(23 23 23 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-70\\%{--tw-gradient-from-position: 70%}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.bg-cover{background-size:cover}.bg-no-repeat{background-repeat:no-repeat}.fill-black{fill:#000}.fill-black\\/50{fill:#00000080}.fill-black\\/75{fill:#000000bf}.fill-neutral-300\\/80{fill:#d4d4d4cc}.fill-white{fill:#fff}.stroke-black{stroke:#000}.stroke-black\\/50{stroke:#00000080}.stroke-white{stroke:#fff}.stroke-\\[3px\\]{stroke-width:3px}.p-0{padding:0}.p-1{padding:.4rem}.p-2{padding:.8rem}.p-\\[28px\\]{padding:28px}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.4rem;padding-right:.4rem}.px-2{padding-left:.8rem;padding-right:.8rem}.px-2\\.5{padding-left:1rem;padding-right:1rem}.px-3{padding-left:1.2rem;padding-right:1.2rem}.px-4{padding-left:1.6rem;padding-right:1.6rem}.px-5{padding-left:2rem;padding-right:2rem}.px-8{padding-left:3.2rem;padding-right:3.2rem}.py-0\\.5{padding-top:.2rem;padding-bottom:.2rem}.py-1{padding-top:.4rem;padding-bottom:.4rem}.py-1\\.5{padding-top:.6rem;padding-bottom:.6rem}.py-2{padding-top:.8rem;padding-bottom:.8rem}.py-3{padding-top:1.2rem;padding-bottom:1.2rem}.py-6{padding-top:2.4rem;padding-bottom:2.4rem}.py-\\[14px\\]{padding-top:14px;padding-bottom:14px}.pb-2{padding-bottom:.8rem}.pb-3{padding-bottom:1.2rem}.pb-\\[68px\\]{padding-bottom:68px}.pb-\\[8px\\]{padding-bottom:8px}.pl-0{padding-left:0}.pl-\\[1px\\]{padding-left:1px}.pl-\\[40px\\]{padding-left:40px}.pr-0{padding-right:0}.pr-2{padding-right:.8rem}.pr-4{padding-right:1.6rem}.pr-\\[1px\\]{padding-right:1px}.pt-0{padding-top:0}.pt-10{padding-top:4rem}.pt-3{padding-top:1.2rem}.pt-6{padding-top:2.4rem}.pt-\\[48px\\]{padding-top:48px}.pt-\\[68px\\]{padding-top:68px}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:2.4rem}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-\\[16px\\]{font-size:16px}.text-\\[2\\.2rem\\]{font-size:2.2rem}.text-base{font-size:1.3rem}.text-lg{font-size:1.65rem}.text-md{font-size:1.5rem}.text-sm{font-size:1.4rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-9{line-height:2.25rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-snug{line-height:1.375}.tracking-tight{letter-spacing:-.018em}.text-\\[rgba\\(0\\,0\\,0\\,0\\.4\\)\\]{color:#0006}.text-amber-900{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-black\\/30{color:#0000004d}.text-black\\/50{color:#00000080}.text-black\\/90{color:#000000e6}.text-neutral-400{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity, 1))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity, 1))}.text-neutral-600{--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity, 1))}.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity, 1))}.text-neutral-900{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.text-neutral-900\\/25{color:#17171740}.text-neutral-900\\/40{color:#17171766}.text-neutral-900\\/50{color:#17171780}.text-neutral-900\\/60{color:#17171799}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-80{opacity:.8}.shadow-lg{--tw-shadow: rgba(0, 0, 0, .06) 0px 0px 0px 1px, rgba(0, 0, 0, .04) 0px 2px 2px -1px, rgba(0, 0, 0, .04) 0px 3px 3px -1px, rgba(0, 0, 0, .03) 0px 5px 5px -2px, rgba(0, 0, 0, .03) 0px 10px 10px -3px, rgba(0, 0, 0, .03) 0px 24px 24px -8px;--tw-shadow-colored: 0px 0px 0px 1px var(--tw-shadow-color), 0px 2px 2px -1px var(--tw-shadow-color), 0px 3px 3px -1px var(--tw-shadow-color), 0px 5px 5px -2px var(--tw-shadow-color), 0px 10px 10px -3px var(--tw-shadow-color), 0px 24px 24px -8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-modal{--tw-shadow: 0 3.8px 2.2px rgba(0, 0, 0, .028), 0 9.2px 5.3px rgba(0, 0, 0, .04), 0 17.3px 10px rgba(0, 0, 0, .05), 0 30.8px 17.9px rgba(0, 0, 0, .06), 0 57.7px 33.4px rgba(0, 0, 0, .072), 0 138px 80px rgba(0, 0, 0, .1);--tw-shadow-colored: 0 3.8px 2.2px var(--tw-shadow-color), 0 9.2px 5.3px var(--tw-shadow-color), 0 17.3px 10px var(--tw-shadow-color), 0 30.8px 17.9px var(--tw-shadow-color), 0 57.7px 33.4px var(--tw-shadow-color), 0 138px 80px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-0{outline-width:0px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-\\[2px\\]{--tw-backdrop-blur: blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[border-color\\]{transition-property:border-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[padding\\]{transition-property:padding;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-none{transition-property:none}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.delay-100{transition-delay:.1s}.delay-150{transition-delay:.15s}.delay-\\[400ms\\]{transition-delay:.4s}.duration-0{transition-duration:0s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:1s\\]{animation-delay:1s}.\\[overflow-wrap\\:anywhere\\]{overflow-wrap:anywhere}body,html{overflow:hidden}:host{all:initial!important}html{font-size:62.5%}body{font-size:1.5rem}.gh-comment-content p:empty:after{content:" "}.gh-comment-content a{word-break:break-word;text-decoration:underline;color:var(--gh-accent-color)}.gh-comment-content blockquote{border-left:3px solid var(--gh-accent-color);padding-left:1rem;margin:0 0 1.2rem}.gh-comment-content p{margin:0 0 1.2rem}.gh-comment-content p:last-child,.gh-comment-content blockquote:last-child{margin:0}.gh-comment-content p.is-editor-empty:first-child:before{color:#0000004d!important}.dark .gh-comment-content p.is-editor-empty:first-child:before{color:#fff6!important}.ProseMirror p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;height:0;pointer-events:none;--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}.ProseMirror *{white-space:pre-wrap;word-wrap:break-word}[contenteditable]:focus{outline:0px solid transparent}.ghost-display{display:block!important}.hover\\:bg-black\\/10:hover{background-color:#0000001a}.hover\\:bg-neutral-100:hover{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.hover\\:fill-black\\/75:hover{fill:#000000bf}.hover\\:text-black\\/50:hover{color:#00000080}.hover\\:text-black\\/75:hover{color:#000000bf}.hover\\:text-neutral-900:hover{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.hover\\:text-neutral-900\\/70:hover{color:#171717b3}.hover\\:text-neutral-900\\/75:hover{color:#171717bf}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-40:hover{opacity:.4}.hover\\:opacity-90:hover{opacity:.9}.hover\\:brightness-105:hover{--tw-brightness: brightness(1.05);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:border-neutral-300:focus{--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity, 1))}.focus\\:border-red-500:focus{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.focus\\:outline-0:focus{outline-width:0px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.disabled\\:bg-black\\/5:disabled{background-color:#0000000d}.disabled\\:text-neutral-900\\/30:disabled{color:#1717174d}.group:hover .group-hover\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\\:stroke-black\\/75{stroke:#000000bf}.group:hover .group-hover\\:opacity-100{opacity:1}.dark\\:border-amber-500\\/40:is(.dark *){border-color:#f59e0b66}.dark\\:bg-amber-500\\/15:is(.dark *){background-color:#f59e0b26}.dark\\:bg-neutral-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.dark\\:bg-white\\/10:is(.dark *){background-color:#ffffff1a}.dark\\:bg-white\\/15:is(.dark *){background-color:#ffffff26}.dark\\:bg-white\\/70:is(.dark *){background-color:#ffffffb3}.dark\\:bg-yellow-500\\/40:is(.dark *){background-color:#eab30866}.dark\\:from-white\\/20:is(.dark *){--tw-gradient-from: rgb(255 255 255 / .2) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\\:from-70\\%:is(.dark *){--tw-gradient-from-position: 70%}.dark\\:fill-white:is(.dark *){fill:#fff}.dark\\:fill-white\\/60:is(.dark *){fill:#fff9}.dark\\:fill-white\\/75:is(.dark *){fill:#ffffffbf}.dark\\:stroke-black\\/60:is(.dark *){stroke:#0009}.dark\\:stroke-white:is(.dark *){stroke:#fff}.dark\\:stroke-white\\/60:is(.dark *){stroke:#fff9}.dark\\:text-\\[rgba\\(255\\,255\\,255\\,0\\.5\\)\\]:is(.dark *){color:#ffffff80}.dark\\:text-\\[rgba\\(255\\,255\\,255\\,0\\.85\\)\\]:is(.dark *){color:#ffffffd9}.dark\\:text-amber-100:is(.dark *){--tw-text-opacity: 1;color:rgb(254 243 199 / var(--tw-text-opacity, 1))}.dark\\:text-neutral-100:is(.dark *){--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity, 1))}.dark\\:text-neutral-200:is(.dark *){--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity, 1))}.dark\\:text-neutral-300:is(.dark *){--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity, 1))}.dark\\:text-neutral-400:is(.dark *){--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity, 1))}.dark\\:text-red-500:is(.dark *){--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.dark\\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\\:text-white\\/30:is(.dark *){color:#ffffff4d}.dark\\:text-white\\/50:is(.dark *){color:#ffffff80}.dark\\:text-white\\/60:is(.dark *){color:#fff9}.dark\\:text-white\\/70:is(.dark *){color:#ffffffb3}.dark\\:text-white\\/85:is(.dark *){color:#ffffffd9}.dark\\:text-white\\/90:is(.dark *){color:#ffffffe6}.dark\\:hover\\:bg-neutral-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity, 1))}.dark\\:hover\\:bg-white\\/20:hover:is(.dark *){background-color:#fff3}.dark\\:hover\\:fill-white\\/75:hover:is(.dark *){fill:#ffffffbf}.dark\\:hover\\:text-neutral-100:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity, 1))}.dark\\:hover\\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\\:hover\\:text-white\\/50:hover:is(.dark *){color:#ffffff80}.dark\\:hover\\:text-white\\/75:hover:is(.dark *){color:#ffffffbf}.dark\\:hover\\:text-white\\/85:hover:is(.dark *){color:#ffffffd9}.dark\\:disabled\\:bg-white\\/15:disabled:is(.dark *){background-color:#ffffff26}.dark\\:disabled\\:text-white\\/35:disabled:is(.dark *){color:#ffffff59}.group:hover .dark\\:group-hover\\:stroke-white\\/75:is(.dark *){stroke:#ffffffbf}@media (min-width: 481px){.sm\\:bottom-2{bottom:.8rem}.sm\\:right-2{right:.8rem}.sm\\:right-8{right:3.2rem}.sm\\:top-9{top:3.6rem}.sm\\:my-10{margin-top:4rem;margin-bottom:4rem}.sm\\:mb-0{margin-bottom:0}.sm\\:mb-12{margin-bottom:4.8rem}.sm\\:mb-4{margin-bottom:1.6rem}.sm\\:mr-3{margin-right:1.2rem}.sm\\:mt-8{margin-top:3.2rem}.sm\\:block{display:block}.sm\\:inline-block{display:inline-block}.sm\\:inline{display:inline}.sm\\:hidden{display:none}.sm\\:h-12{height:4.8rem}.sm\\:h-auto{height:auto}.sm\\:w-\\[500px\\]{width:500px}.sm\\:w-\\[720px\\]{width:720px}.sm\\:w-auto{width:auto}.sm\\:w-fit{width:fit-content}.sm\\:min-w-\\[100px\\]{min-width:100px}.sm\\:min-w-\\[64px\\]{min-width:64px}.sm\\:min-w-\\[80px\\]{min-width:80px}.sm\\:flex-row{flex-direction:row}.sm\\:justify-normal{justify-content:normal}.sm\\:rounded-xl{border-radius:1.2rem}.sm\\:p-0{padding:0}.sm\\:p-8{padding:3.2rem}.sm\\:px-3{padding-left:1.2rem;padding-right:1.2rem}.sm\\:px-8{padding-left:3.2rem;padding-right:3.2rem}.sm\\:py-10{padding-top:4rem;padding-bottom:4rem}.sm\\:pl-0{padding-left:0}.sm\\:pl-\\[44px\\]{padding-left:44px}.sm\\:pr-10{padding-right:4rem}.sm\\:pr-4{padding-right:1.6rem}.sm\\:pt-0{padding-top:0}.sm\\:pt-\\[40px\\]{padding-top:40px}.sm\\:pt-\\[4vmin\\]{padding-top:4vmin}.sm\\:pt-\\[56px\\]{padding-top:56px}.sm\\:text-left{text-align:left}.sm\\:text-2xl{font-size:2.4rem}.sm\\:text-lg{font-size:1.65rem}.sm\\:text-sm{font-size:1.4rem}}',ov=_.forwardRef(function({children:e,onResize:n,style:o,title:r},i){const s=b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:wR}}),b.jsx("meta",{content:"width=device-width, initial-scale=1.0, maximum-scale=1.0",name:"viewport"})]});return b.jsx(bR,{ref:i,head:s,style:o,title:r,onResize:n,children:e})}),vR=_.forwardRef(function({children:e,style:n,title:o},r){const[i,s]=x.useState(n),a=x.useCallback(l=>{s(c=>({...c,height:`${l.scrollHeight}px`}))},[]);return b.jsx(ov,{ref:r,style:i,title:o,onResize:a,children:e})}),SR=_.forwardRef(function({children:e},n){const o={width:"100%",height:"400px"};return b.jsx(vR,{ref:n,style:o,title:"comments-frame",children:e})}),$R=({children:t,title:e})=>{const n={zIndex:"3999999",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",overflow:"hidden"};return b.jsx(ov,{style:n,title:e,children:t})},kR=({show:t,children:e,title:n,callback:o})=>{const{dispatchAction:r}=J(),i=()=>{r("closePopup",{}),o&&o(!1)};return x.useEffect(()=>{const s=a=>{a.key==="Escape"&&i()};return window.addEventListener("keydown",s,{passive:!0}),()=>{window.removeEventListener("keydown",s,{passive:!0})}}),b.jsx(wo,{appear:!0,show:t,children:b.jsx($R,{title:n,children:b.jsx("div",{children:b.jsx(wo.Child,{enter:"transition duration-200 linear",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition duration-200 linear",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:b.jsx("div",{className:"to-rgba(0,0,0,0.1) fixed left-0 top-0 flex h-screen w-screen justify-center overflow-hidden bg-gradient-to-b from-[rgba(0,0,0,0.2)] pt-0 backdrop-blur-[2px] sm:pt-[4vmin]",onMouseDown:i,children:b.jsx(wo.Child,{enter:"transition duration-200 delay-150 linear",enterFrom:"translate-y-4 opacity-0",enterTo:"translate-y-0 opacity-100",leave:"transition duration-200 linear",leaveFrom:"translate-y-0 opacity-100",leaveTo:"translate-y-4 opacity-0",children:e})})})})})})},xR=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"gh-portal-closeicon",alt:"Close",...t},x.createElement("defs",null,x.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px !important;}")),x.createElement("path",{className:"a",d:"M.75 23.249l22.5-22.5M23.25 23.249L.75.749"})),Wl=({close:t})=>b.jsx("button",{className:"absolute right-6 top-5 opacity-30 transition-opacity duration-100 ease-out hover:opacity-40 sm:right-8 sm:top-9",type:"button",onClick:t,children:b.jsx(xR,{className:"size-5 p-1 pr-0"})}),CR=t=>{const e=x.useRef(null),n=x.useRef(null),{dispatchAction:o,member:r,accentColor:i,t:s}=J(),[a,l]=x.useState(r.name??""),[c,u]=x.useState(r.expertise??""),d=50;let m=d;r.expertise&&(m-=r.expertise.length);const[f,p]=x.useState(m),[g,h]=x.useState({name:"",expertise:""}),y=$=>{$.stopPropagation()},w=$=>{o("closePopup",{}),t.callback($)},v=async()=>{var $;a.trim()!==""?(await o("updateMember",{name:a,expertise:c}),w(!0)):(h({name:s("Enter your name"),expertise:""}),l(""),($=e.current)==null||$.focus())};x.useEffect(()=>{if(!ws()){const $=setTimeout(()=>{var k,N;t.expertiseAutofocus?(k=n.current)==null||k.focus():(N=e.current)==null||N.focus()},200);return()=>{clearTimeout($)}}},[e,n,t.expertiseAutofocus]);const S=()=>{const $=O=>b.jsx(wo,{enter:"transition duration-200 delay-[400ms] ease-out",enterFrom:"opacity-0 translate-y-2",enterTo:"opacity-100 translate-y-0",leave:"transition duration-200 ease-in",leaveFrom:"opacity-100 translate-y-0",leaveTo:"opacity-0 translate-y-2",appear:!0,children:b.jsxs("div",{className:"flex flex-row items-center justify-start gap-3 pr-4",children:[b.jsx("div",{className:"size-10 rounded-full border-2 border-white bg-cover bg-no-repeat",style:{backgroundImage:`url(${O.avatar})`}}),b.jsxs("div",{className:"flex flex-col items-start justify-center",children:[b.jsx("div",{className:"font-sans text-base font-semibold tracking-tight text-white",children:O.name}),b.jsx("div",{className:"font-sans text-sm tracking-tight text-neutral-400",children:O.expertise})]})]})},O.name),k=[],N=[{avatar:"https://randomuser.me/api/portraits/men/32.jpg",name:"James Fletcher",expertise:s("Full-time parent")},{avatar:"https://randomuser.me/api/portraits/women/30.jpg",name:"Naomi Schiff",expertise:s("Founder @ Acme Inc")},{avatar:"https://randomuser.me/api/portraits/men/4.jpg",name:"Franz Tost",expertise:s("Neurosurgeon")},{avatar:"https://randomuser.me/api/portraits/women/51.jpg",name:"Katrina Klosp",expertise:s("Local resident")}];for(let O=0;O<N.length;O++)k.push($(N[O]));return k},C=dp(s("{amount} characters left"),"{amount}",()=>b.jsx("b",{children:f}));return b.jsx("div",{className:"shadow-modal relative h-screen w-screen overflow-hidden rounded-none bg-white p-[28px] text-center sm:h-auto sm:w-[720px] sm:rounded-xl sm:p-0","data-testid":"profile-modal",onMouseDown:y,children:b.jsxs("div",{className:"flex",children:[b.jsx("div",{className:"hidden w-[50%] flex-col items-center justify-center bg-neutral-800 sm:block sm:p-8",children:b.jsx("div",{className:"mt-[-1px] flex flex-col gap-9 text-left",children:S()})}),b.jsxs("div",{className:"p-0 sm:p-8",children:[b.jsxs("h1",{className:"mb-1 text-center font-sans text-2xl font-bold tracking-tight text-black sm:text-left",children:[s("Complete your profile"),b.jsx("span",{className:"hidden sm:inline",children:"."})]}),b.jsx("p",{className:"text-md pr-0 text-center font-sans leading-snug text-neutral-500 sm:pr-10 sm:text-left",children:s("Add context to your comment, share your name and expertise to foster a healthy discussion.")}),b.jsxs("section",{className:"mt-8 text-left",children:[b.jsxs("div",{className:"mb-2 flex flex-row justify-between",children:[b.jsx("label",{className:"font-sans text-base font-semibold",htmlFor:"comments-name",children:s("Name")}),b.jsx(wo,{enter:"transition duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition duration-100 ease-out",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:!!g.name,children:b.jsx("div",{className:"font-sans text-sm text-red-500",children:g.name})})]}),b.jsx("input",{ref:e,className:`flex h-[42px] w-full items-center rounded border border-neutral-200 px-3 font-sans text-[16px] outline-0 transition-[border-color] duration-200 focus:border-neutral-300 ${g.name&&"border-red-500 focus:border-red-500"}`,"data-testid":"name-input",id:"comments-name",maxLength:64,name:"name",placeholder:s("Jamie Larson"),type:"text",value:a,onChange:$=>{l($.currentTarget.value)},onKeyDown:$=>{$.key==="Enter"&&(l($.currentTarget.value),v().catch(console.error))}}),b.jsxs("div",{className:"mb-2 mt-6 flex flex-row justify-between",children:[b.jsx("label",{className:"font-sans text-base font-semibold",htmlFor:"comments-name",children:s("Expertise")}),b.jsx("div",{className:`font-sans text-base text-neutral-400 ${f===0&&"text-red-500"}`,children:C})]}),b.jsx("input",{ref:n,className:`flex h-[42px] w-full items-center rounded border border-neutral-200 px-3 font-sans text-[16px] outline-0 transition-[border-color] duration-200 focus:border-neutral-300 ${f===0&&"border-red-500 focus:border-red-500"}`,"data-testid":"expertise-input",id:"comments-expertise",maxLength:d,name:"expertise",placeholder:s("Head of Marketing at Acme, Inc"),type:"text",value:c,onChange:$=>{const k=$.currentTarget.value;p(d-k.length),u(k)},onKeyDown:$=>{$.key==="Enter"&&(u($.currentTarget.value),v().catch(console.error))}}),b.jsx("button",{className:"text-md mt-10 flex h-[42px] w-full items-center justify-center rounded-md px-8 font-sans font-semibold text-white opacity-100 transition-opacity duration-200 ease-linear hover:opacity-90","data-testid":"save-button",style:{backgroundColor:i??"#000000"},type:"button",onClick:()=>{v().catch(console.error)},children:s("Save")})]})]}),b.jsx(Wl,{close:()=>w(!1)})]})})},ER=()=>{const{dispatchAction:t,isMember:e,isPaidOnly:n}=J(),o=s=>{s.stopPropagation()},r=()=>{t("closePopup",{})},i=!e;return b.jsx("div",{className:"shadow-modal relative h-screen w-screen rounded-none bg-white p-[28px] text-center sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left",onClick:r,onMouseDown:o,children:b.jsxs("div",{className:"flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0",children:[b.jsx("div",{className:"flex flex-col items-center pb-3 pt-6","data-testid":"cta-box",children:b.jsx(fp,{isFirst:i,isPaid:n})}),b.jsx(Wl,{close:r})]})})},rv=t=>x.createElement("svg",{width:"26px",height:"26px",viewBox:"-1 -1 26 26",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...t},x.createElement("g",{id:"check-circle",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},x.createElement("path",{className:"animated-check-circle",d:"M19.6004116,2.71490714 C17.5353801,1.0196018 14.8927356,0 12,0 C5.38938053,0 0,5.38938053 0,12 C0,18.6106195 5.38938053,24 12,24 C18.6106195,24 24,18.6106195 24,12 C24,9.71681416 23.3628319,7.59292035 22.2743363,5.78761062 L11.0442478,17.0442478 L5.49557522,11.4955752",id:"Shape",stroke:"#FFFFFF",strokeWidth:2}))),NR={addDetailsPopup:CR,reportPopup:({comment:t})=>{const{dispatchAction:e,t:n}=J(),[o,r]=x.useState("default");let i="bg-red-600";o==="sent"&&(i="bg-green-600");let s=n("Report");const a=s;o==="sending"?s=n("Sending"):o==="sent"&&(s=n("Sent"));const l=b.jsx(al,{className:"mr-2 size-[24px] fill-white"}),c=b.jsx(rv,{className:"mr-2 size-[16px]"});let u=null;o==="sending"?u=l:o==="sent"&&(u=c);const d=p=>{p.stopPropagation()},m=()=>{e("closePopup",{})},f=p=>{p.stopPropagation(),r("sending"),setTimeout(()=>{r("sent"),e("reportComment",t),setTimeout(()=>{m()},750)},1e3)};return b.jsx("div",{className:"shadow-modal relative h-screen w-screen rounded-none bg-white p-[28px] text-center sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left",onMouseDown:d,children:b.jsxs("div",{className:"flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0",children:[b.jsx("h1",{className:"mb-1.5 font-sans text-[2.2rem] font-bold tracking-tight text-black",children:b.jsx("span",{children:n("Report this comment?")})}),b.jsx("p",{className:"text-md px-4 font-sans leading-9 text-black sm:pl-0 sm:pr-4",children:n("Your request will be sent to the owner of this site.")}),b.jsxs("div",{className:"mt-auto flex flex-col items-center justify-start gap-4 sm:mt-8 sm:flex-row",children:[b.jsxs("button",{className:`text-md flex h-[44px] w-full items-center justify-center rounded-md px-4 font-sans font-medium text-white transition duration-200 ease-linear sm:w-fit ${i} opacity-100 hover:opacity-90`,style:{backgroundColor:i??"#000000"},type:"button",onClick:f,children:[b.jsxs("span",{className:"invisible whitespace-nowrap",children:[a,b.jsx("br",{}),b.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[l,n("Sending")]}),b.jsx("br",{}),b.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[c,n("Sent")]})]}),b.jsxs("span",{className:"absolute flex h-[44px] items-center justify-center whitespace-nowrap",children:[u,s]})]}),b.jsx("button",{className:"text-md h-[44px] w-full px-2 font-sans font-medium text-neutral-500 sm:w-fit dark:text-neutral-400",type:"button",onClick:m,children:n("Cancel")})]}),b.jsx(Wl,{close:m})]})})},ctaPopup:ER,deletePopup:({comment:t})=>{const{dispatchAction:e,t:n}=J(),[o,r]=x.useState("default"),[i,s]=x.useState(!1);let a="bg-red-600";o==="sent"&&(a="bg-green-600");let l=n("Delete");const c=l;o==="sending"?l=n("Deleting"):o==="sent"&&(l=n("Deleted"));const u=b.jsx(al,{className:"mr-2 size-[24px] fill-white"}),d=b.jsx(rv,{className:"mr-2 size-[16px]"});let m=null;o==="sending"?m=u:o==="sent"&&(m=d);const f=h=>{h.stopPropagation()},p=()=>{e("closePopup",{})},g=h=>{h.stopPropagation(),!i&&(s(!0),r("sending"),setTimeout(()=>{r("sent"),e("deleteComment",t),setTimeout(()=>{p()},750)},1e3))};return b.jsx("div",{className:"shadow-modal relative h-screen w-screen rounded-none bg-white p-[28px] text-center sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left","data-testid":"delete-popup",onMouseDown:f,children:b.jsxs("div",{className:"flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0",children:[b.jsx("h1",{className:"mb-1.5 font-sans text-[2.2rem] font-bold tracking-tight text-black",children:b.jsx("span",{children:n("Are you sure?")})}),b.jsx("p",{className:"text-md px-4 font-sans leading-9 text-black sm:pl-0 sm:pr-4",children:n("Once deleted, this comment can’t be recovered.")}),b.jsxs("div",{className:"mt-auto flex flex-col items-center justify-start gap-4 sm:mt-8 sm:flex-row",children:[b.jsxs("button",{className:`text-md flex h-[44px] w-full items-center justify-center rounded-md px-4 font-sans font-medium text-white transition duration-200 ease-linear sm:w-fit ${a} opacity-100 hover:opacity-90`,"data-testid":"delete-popup-confirm",disabled:i,type:"button",onClick:g,children:[b.jsxs("span",{className:"invisible whitespace-nowrap",children:[c,b.jsx("br",{}),b.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[u,n("Deleting")]}),b.jsx("br",{}),b.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[d,n("Deleted")]})]}),b.jsxs("span",{className:"absolute flex h-[44px] items-center justify-center whitespace-nowrap",children:[m,l]})]}),b.jsx("button",{className:"text-md h-[44px] w-full px-2 font-sans font-medium text-neutral-500 sm:w-fit dark:text-neutral-400",type:"button",onClick:p,children:n("Cancel")})]}),b.jsx(Wl,{close:p})]})})}},AR=()=>{const{popup:t}=J(),[e,n]=x.useState(t);if(x.useEffect(()=>{if(t!==null&&n(t),t===null){const a=setTimeout(()=>{n(null)},250);return()=>{clearTimeout(a)}}},[t,n]),!e||!e.type)return null;const{type:o,...r}=t??e,i=NR[o];if(!i)return console.warn("Unknown popup of type ",o),null;const s=t===e;return b.jsx(b.Fragment,{children:b.jsx(kR,{callback:r.callback,show:s,title:o,children:b.jsx(i,{...r})})})};var br={exports:{}};const OR={"{amount} characters left":"{amount} karakters oor","{amount} comments":"{amount} kommentaar","{amount} hrs ago":"{amount} ure gelede","{amount} mins ago":"{amount} minute gelede","{amount} more":"{amount} meer","1 comment":"1 kommentaar","Add comment":"Voeg kommentaar by","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Voeg konteks by jou kommentaar, deel jou naam en kundigheid om 'n gesonde bespreking te bevorder.","Add reply":"Voeg antwoord by","Add your expertise":"","Already a member?":"Reeds 'n lid?",Anonymous:"Anoniem","Are you sure?":"","Become a member of {publication} to start commenting.":"Word 'n lid van {publication} om kommentaar te lewer.","Become a paid member of {publication} to start commenting.":"Word 'n betaalde lid van {publication} om kommentaar te lewer.",Best:"",Cancel:"Kanselleer",Comment:"Kommentaar","Commenting disabled":"","Complete your profile":"Voltooi jou profiel",Delete:"Skrap",Deleted:"","Deleted member":"Geskrapte lid",Deleting:"",Discussion:"Bespreking",Edit:"Redigeer","Edit this comment":"Redigeer hierdie kommentaar",edited:"geredigeer","Enter your name":"Voer jou naam in",Expertise:"Kundigheid","Founder @ Acme Inc":"Stigter @ Acme Inc","Full-time parent":"Voltydse ouer","Head of Marketing at Acme, Inc":"Hoof van Bemarking by Acme, Inc","Hidden for members":"",Hide:"Versteek","Hide comment":"Versteek kommentaar","Jamie Larson":"Jamie Larson","Join the discussion":"Sluit aan by die bespreking","Just now":"Sopas","Load more ({amount})":"","Local resident":"Plaaslike inwoner","Member discussion":"Lidmaat bespreking",Name:"Naam",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Een uur gelede","One min ago":"Een minuut gelede",removed:"","Replied to":"",Reply:"Antwoord","Reply to":"","Reply to comment":"Antwoord op kommentaar",Report:"Rapporteer","Report comment":"Rapporteer kommentaar","Report this comment?":"Rapporteer hierdie kommentaar?",Save:"Stoor",Sending:"Besig om te stuur",Sent:"Gestuur",Show:"Wys","Show {amount} more replies":"Wys {amount} meer antwoorde","Show 1 more reply":"Wys nog 1 antwoord","Show comment":"Wys kommentaar","Sign in":"Teken in","Sign up now":"Sluit nou aan","Sort by":"","Start the conversation":"Begin die gesprek","The linked comment is no longer available.":"","This comment has been hidden.":"Hierdie kommentaar is weggesteek.","This comment has been removed.":"Hierdie kommentaar is verwyder.","Upgrade now":"Gradeer nou op","View in admin":"",Yesterday:"Gister","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Jou versoek sal aan die eienaar van hierdie webwerf gestuur word."},RR={"{amount} characters left":"الحروف المتبقية : {amount}","{amount} comments":"{amount} تعليق/ات","{amount} hrs ago":"منذ {amount} ساعات","{amount} mins ago":"منذ {amount} دقيقة","{amount} more":"{amount} المزيد","1 comment":"تعليق واحد","Add comment":"اضف تعليق","Add context to your comment, share your name and expertise to foster a healthy discussion.":"قم بإضافة سياق لتعليقك، شارك اسمك و مجال خبرتك لكي نرعى محادثة مثمرة","Add reply":"ردّ","Add your expertise":"","Already a member?":"هل انت مسجل بالفعل؟",Anonymous:"مجهول","Are you sure?":"","Become a member of {publication} to start commenting.":"يجب أن تصبح عضوًا فى {publication} لتستطيع التعليق","Become a paid member of {publication} to start commenting.":"يجب ان تكون عضويتك مدفوعة فى {publication} لكي تستطيع التعليق",Best:"",Cancel:"إلغاء",Comment:"تعليق","Commenting disabled":"","Complete your profile":"إكمال ملفك الشخصى",Delete:"حذف",Deleted:"","Deleted member":"الاعضاء المحذوفين",Deleting:"",Discussion:"النقاش",Edit:"تعديل","Edit this comment":"عدّل هذا التعليق",edited:"تم التعديل","Enter your name":"اكتب اسمك",Expertise:"مجال تخصصك","Founder @ Acme Inc":"مؤسس لدى شركة أكمي","Full-time parent":"أب بدوام كامل","Head of Marketing at Acme, Inc":"رئيس وحدة التسويق لدى شركة أكمى","Hidden for members":"",Hide:"اخفاء","Hide comment":"اخف التعليق","Jamie Larson":"فلان الفلانى","Join the discussion":"انضم للمحادثة","Just now":"الآن","Load more ({amount})":"","Local resident":"مقيم محلى","Member discussion":"مناقشة الاعضاء",Name:"الاسم",Neurosurgeon:"جراح المخ و الاعصاب",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"منذ ساعة واحدة","One min ago":" منذ دقيقة واحدة",removed:"","Replied to":"",Reply:"رد","Reply to":"","Reply to comment":"رد على هذا التعليق",Report:"الإبلاغ","Report comment":"ابلغ عن هذا التعليق","Report this comment?":"الإبلاغ عن التعليق؟",Save:"حفظ",Sending:"جارى الارسال",Sent:"تم الارسال",Show:"اظهر","Show {amount} more replies":"اظهر {amount} ردود","Show 1 more reply":"اظهر تعليق وحيد","Show comment":"اظهر التعليق","Sign in":"تسجيل الدخول","Sign up now":"قم بالتسجيل الآن","Sort by":"ترتيب بحسب","Start the conversation":"ابدأ النقاش","The linked comment is no longer available.":"","This comment has been hidden.":"تم اخفاء هذا التعليق","This comment has been removed.":"تم حذف هذا التعليق","Upgrade now":"قم بالترقية الآن","View in admin":"",Yesterday:"أمس","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"سيتم ارسال طلبك لصاحب الموقع"},DR={"{amount} characters left":"Остават {amount} знака","{amount} comments":"{amount} коментара","{amount} hrs ago":"Преди {amount} часа","{amount} mins ago":"Преди {amount} минути","{amount} more":"Още {amount}","1 comment":"1 коментар","Add comment":"Нов коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Добавете контекст към коментара си, споделете името си и опита си, за да насърчите полезна дискусия.","Add reply":"Отговор","Add your expertise":"Добавете компетенции","Already a member?":"Вече сте абонат?",Anonymous:"Анонимен","Are you sure?":"Убедени ли сте?","Become a member of {publication} to start commenting.":"Абонирайте се за {publication}, за да коментирате.","Become a paid member of {publication} to start commenting.":"Станете плащащ абонат на {publication}, за да коментирате.",Best:"Най-добрите",Cancel:"Отказ",Comment:"Коментар","Commenting disabled":"Коментирането е изключено","Complete your profile":"Попълнете профила си",Delete:"Изтриване",Deleted:"Изтрито","Deleted member":"Изтрит абонат",Deleting:"Изтриване",Discussion:"Дискусия",Edit:"Редактиране","Edit this comment":"Редактиране на коментара",edited:"редактиран","Enter your name":"Попълнете името си",Expertise:"Компетенции","Founder @ Acme Inc":"Основател на Компания ООД","Full-time parent":"Родител на пълно работно време","Head of Marketing at Acme, Inc":"Директор маркетинг в Компания ООД","Hidden for members":"Скрит за абонати",Hide:"Скриване","Hide comment":"Скриване на коментара","Jamie Larson":"Иван Иванов","Join the discussion":"Участвайте в дискусията","Just now":"Току-що","Load more ({amount})":"Още ({amount})","Local resident":"Местен жител","Member discussion":"Дискусия за абонатите",Name:"Име",Neurosurgeon:"Неврохирург",Newest:"Най-нови",Oldest:"Най-стари","Once deleted, this comment can’t be recovered.":"Веднъж изтрит, коментарът не може да бъде възстановен.","One hour ago":"Преди час","One min ago":"Преди минута",removed:"премахнат","Replied to":"Отговорено на",Reply:"Отговор","Reply to":"Отговор на","Reply to comment":"Отговор на коментара",Report:"Докладване","Report comment":"Докладване на коментара","Report this comment?":"Ще докладвате ли коментара?",Save:"Запис",Sending:"Изпращане",Sent:"Изпратен",Show:"Показване","Show {amount} more replies":"Покажи още {amount} отговора","Show 1 more reply":"Покажи още един отговор","Show comment":"Покажи коментар","Sign in":"Вход","Sign up now":"Регистрация","Sort by":"Сортиране по","Start the conversation":"Започнете дискусия","The linked comment is no longer available.":"Посоченият коментар вече не е наличен.","This comment has been hidden.":"Този коментар е скрит.","This comment has been removed.":"Този коментар е премахнат.","Upgrade now":"Надградете сега","View in admin":"Преглед в админ панела",Yesterday:"Вчера","You can't post comments in this publication.":"Не може да коментирате под тази публикация.","You can't post comments in this publication. <a>Contact support</a> for more information.":"Не може да коментирате под тази публикация. <a>Връзка с поддръжката</a> за повече информация.","Your request will be sent to the owner of this site.":"Искането ще бъде изпратено до собственика на сайта."},TR={"{amount} characters left":"{amount} অক্ষর বাকি","{amount} comments":"{amount} মন্তব্য","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"{amount}টি আরও","1 comment":"১টি মন্তব্য","Add comment":"মন্তব্য যোগ করুন","Add context to your comment, share your name and expertise to foster a healthy discussion.":"আপনার মন্তব্যে প্রসঙ্গ যোগ করুন, একটি সুস্থ আলোচনা করতে আপনার নাম ও অভিজ্ঞতা শেয়ার করুন।","Add reply":"উত্তর যোগ করুন","Add your expertise":"","Already a member?":"ইত:পূর্বে সদস্য?",Anonymous:"অজ্ঞাতনামা","Are you sure?":"","Become a member of {publication} to start commenting.":"{publication} এর সদস্য হন মন্তব্য করার জন্য।","Become a paid member of {publication} to start commenting.":"{publication} এর পেইড সদস্য হন মন্তব্য করার জন্য।",Best:"",Cancel:"বাতিল করুন",Comment:"মন্তব্য","Commenting disabled":"","Complete your profile":"আপনার প্রোফাইল সম্পূর্ণ করুন",Delete:"মুছে ফেলুন",Deleted:"","Deleted member":"মুছে ফেলা সদস্য",Deleting:"",Discussion:"আলোচনা",Edit:"সম্পাদনা","Edit this comment":"এই মন্তব্য সম্পাদনা করুন",edited:"","Enter your name":"আপনার নাম লিখুন",Expertise:"বিশেষজ্ঞতা","Founder @ Acme Inc":"প্রতিষ্ঠাতা @ বাংলাদেশ ট্রেড হাব","Full-time parent":"পূর্ণকালীন অভিভাবক","Head of Marketing at Acme, Inc":"মার্কেটিং প্রধান @ বাংলাদেশ ট্রেড হাব","Hidden for members":"",Hide:"লুকান","Hide comment":"মন্তব্য লুকান","Jamie Larson":"শাহ নেওয়াজ","Join the discussion":"আলোচনায় যোগ দিন","Just now":"এখনই","Load more ({amount})":"","Local resident":"স্থানীয় বাসিন্দা","Member discussion":"সদস্য আলোচনা",Name:"নাম",Neurosurgeon:"নিউরোসার্জন",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"এক ঘণ্টা পূর্বে","One min ago":"",removed:"","Replied to":"",Reply:"উত্তর","Reply to":"","Reply to comment":"মন্তব্যের উত্তর দিন",Report:"প্রতিবেদন","Report comment":"মন্তব্য প্রতিবেদন করুন","Report this comment?":"এই মন্তব্য প্রতিবেদন করবেন?",Save:"সংরক্ষণ করুন",Sending:"পাঠানো হচ্ছে",Sent:"পাঠানো হয়েছে",Show:"দেখান","Show {amount} more replies":" আরো {amount}টি উত্তর দেখান","Show 1 more reply":"১টি আরো উত্তর দেখান","Show comment":"মন্তব্য দেখান","Sign in":"সাইন ইন করুন","Sign up now":"এখনই সাইন আপ করুন","Sort by":"","Start the conversation":"আলোচনা শুরু করুন","The linked comment is no longer available.":"","This comment has been hidden.":"এই মন্তব্য লুকানো হয়েছে।","This comment has been removed.":"এই মন্তব্য মুছে ফেলা হয়েছে।","Upgrade now":"এখনই আপগ্রেড করুন","View in admin":"",Yesterday:"গতকাল","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"আপনার অনুরোধ সাইটের মালিকের কাছে পাঠানো হবে।"},MR={"{amount} characters left":"Preostalo {amount} karaktera","{amount} comments":"{amount} komentara","{amount} hrs ago":"Prije {amount} sati","{amount} mins ago":"Prije {amount} minuta","{amount} more":"Još {amount}","1 comment":"1 komentar","Add comment":"Dodaj komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dodaj kontekst svom komentaru, podijeli svoje ime i stručnost u svrhu kvalitetnije diskusije.","Add reply":"Objavi komentar","Add your expertise":"","Already a member?":"Već si član?",Anonymous:"Anoniman","Are you sure?":"","Become a member of {publication} to start commenting.":"Postani član portala {publication} za pristup diskusiji.","Become a paid member of {publication} to start commenting.":"Postani plaćeni član portala {publication} za pristup diskusiji.",Best:"",Cancel:"Otkaži",Comment:"Komentar","Commenting disabled":"","Complete your profile":"Dovrši svoj profil",Delete:"Obriši",Deleted:"","Deleted member":"Obrisan član",Deleting:"",Discussion:"Diskusija",Edit:"Uredi","Edit this comment":"Uredi komentar",edited:"uređeno","Enter your name":"Unesi ime",Expertise:"Stručnost","Founder @ Acme Inc":"Acme Inc osnivač","Full-time parent":"Full time roditelj","Head of Marketing at Acme, Inc":"Šef marketinga u kompaniji Acme d.o.o","Hidden for members":"",Hide:"Sakrij","Hide comment":"Sakrij komentar","Jamie Larson":"Vanja Larsić","Join the discussion":"Pridruži se diskusiji","Just now":"Upravo sada","Load more ({amount})":"","Local resident":"Lokalni stanovnik","Member discussion":"Diskusija članova",Name:"Ime",Neurosurgeon:"Neurohirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Prije jedan sat","One min ago":"Prije jedan minut",removed:"","Replied to":"",Reply:"Odgovori","Reply to":"","Reply to comment":"Odgovori na komentar",Report:"Prijavi","Report comment":"Prijavi komentar","Report this comment?":"Prijavi ovaj komentar?",Save:"Sačuvaj",Sending:"Šaljem",Sent:"Poslano",Show:"Prikaži","Show {amount} more replies":"Prikaži još {amount} odgovora","Show 1 more reply":"Prikaži još jedan odgovor","Show comment":"Prikaži komentar","Sign in":"Prijavi se","Sign up now":"Postani član","Sort by":"","Start the conversation":"Započni diskusiju","The linked comment is no longer available.":"","This comment has been hidden.":"Ovaj komentar je sakriven.","This comment has been removed.":"Ovaj komentar je uklonjen.","Upgrade now":"Nadogradi račun sada","View in admin":"",Yesterday:"Jučer","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Tvoj zahtjev je poslan vlasniku stranice."},jR={"{amount} characters left":"{amount} caràcters restants","{amount} comments":"{amount} comentaris","{amount} hrs ago":"Fa {amount} hores","{amount} mins ago":"Fa {amount} minuts","{amount} more":"{amount} més","1 comment":"Un comentari","Add comment":"Afegeix un comentari","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Afegeix context al teu comentari, comparteix el teu nom i experiència per fomentar una discussió sana.","Add reply":"Afegeix una resposta","Add your expertise":"","Already a member?":"Ja n'ets membre?",Anonymous:"Anònim","Are you sure?":"N'estàs segur?","Become a member of {publication} to start commenting.":"Fes-te membre de {publication} per començar a comentar.","Become a paid member of {publication} to start commenting.":"Fes-te membre de pagament de {publication} per començar a comentar",Best:"",Cancel:"Cancel·la",Comment:"Comentari","Commenting disabled":"","Complete your profile":"Completa el teu perfil",Delete:"Esborra",Deleted:"Esborrat","Deleted member":"Membre esborrat",Deleting:"Esborrant",Discussion:"Debat",Edit:"Edita","Edit this comment":"Edita aquest comentari",edited:"editat","Enter your name":"Escriu el teu nom",Expertise:"Expertesa","Founder @ Acme Inc":"Fundador @ Acme Inc","Full-time parent":"Pare a temps complet","Head of Marketing at Acme, Inc":"Cap de màrqueting a Acme, Inc","Hidden for members":"Ocult pels membres",Hide:"Oculta","Hide comment":"Oculta el comentari","Jamie Larson":"Jamie Larson","Join the discussion":"Uneix-te al debat","Just now":"Just ara","Load more ({amount})":"","Local resident":"Resident local","Member discussion":"Debat de membres",Name:"Nom",Neurosurgeon:"Neurocirurgià",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Un cop esborrat, aquest comentari no es pot recuperar","One hour ago":"Fa una hora","One min ago":"Fa un minut",removed:"Esborrat","Replied to":"Respost a",Reply:"Respon","Reply to":"Respon a","Reply to comment":"Respon al comentari",Report:"Reporta","Report comment":"Reporta comentari","Report this comment?":"Reporta aquest comentari?",Save:"Desa",Sending:"Enviant",Sent:"Enviat",Show:"Mostra","Show {amount} more replies":"Mostra {amount} respostes més","Show 1 more reply":"Mostra 1 resposta més","Show comment":"Mostra comentari","Sign in":"Inicia sessió","Sign up now":"Registra't ara","Sort by":"Ordena per","Start the conversation":"Comença la conversa","The linked comment is no longer available.":"","This comment has been hidden.":"Aquest comentari s'ha ocultat.","This comment has been removed.":"Aquest comentari s'ha esborrat.","Upgrade now":"Actualitza ara","View in admin":"",Yesterday:"Ahir","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"La teva sol·licitud s'enviarà al propietari d'aquest lloc."},PR={"{amount} characters left":"Zbývá {amount} znaků","{amount} comments":"{amount} komentářů","{amount} hrs ago":"Před {amount} hodinami","{amount} mins ago":"Před {amount} minutami","{amount} more":"Dalších {amount}","1 comment":"1 komentář","Add comment":"Přidat komentář","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Pro podporu zdravé diskuse přidejte ke svému komentáři kontext, své jméno a odbornost.","Add reply":"Přidat odpověď","Add your expertise":"","Already a member?":"Už jste členem?",Anonymous:"Anonymní","Are you sure?":"","Become a member of {publication} to start commenting.":"Staňte se členem {publication}, abyste mohli začít komentovat.","Become a paid member of {publication} to start commenting.":"Staňte se placeným členem {publication}, abyste mohli začít komentovat.",Best:"",Cancel:"Zrušit",Comment:"Komentář","Commenting disabled":"","Complete your profile":"Dokončete svůj profil",Delete:"Smazat",Deleted:"","Deleted member":"Smazaný člen",Deleting:"",Discussion:"Diskuse",Edit:"Upravit","Edit this comment":"Upravit tento komentář",edited:"upraveno","Enter your name":"Zadejte své jméno",Expertise:"Odbornost","Founder @ Acme Inc":"Zakladatel @ Acme Inc","Full-time parent":"Rodič na plný úvazek","Head of Marketing at Acme, Inc":"Vedoucí marketingu v Acme, Inc","Hidden for members":"",Hide:"Skrýt","Hide comment":"Skrýt komentář","Jamie Larson":"Jamie Larson","Join the discussion":"Připojte se k diskusi","Just now":"Právě teď","Load more ({amount})":"","Local resident":"Místní obyvatel","Member discussion":"Diskuse členů",Name:"Jméno",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Před jednou hodinou","One min ago":"Před jednou minutou",removed:"","Replied to":"",Reply:"Odpovědět","Reply to":"","Reply to comment":"Odpovědět na komentář",Report:"Nahlásit","Report comment":"Nahlásit komentář","Report this comment?":"Nahlásit tento komentář?",Save:"Uložit",Sending:"Odesílání",Sent:"Odesláno",Show:"Zobrazit","Show {amount} more replies":"Zobrazit {amount} dalších odpovědí","Show 1 more reply":"Zobrazit 1 další odpověď","Show comment":"Zobrazit komentář","Sign in":"Přihlásit se","Sign up now":"Zaregistrujte se nyní","Sort by":"","Start the conversation":"Začněte konverzaci","The linked comment is no longer available.":"","This comment has been hidden.":"Tento komentář byl skryt.","This comment has been removed.":"Tento komentář byl odstraněn.","Upgrade now":"Upgradovat","View in admin":"",Yesterday:"Včera","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Vaše žádost bude odeslána vlastníkovi tohoto webu."},IR={"{amount} characters left":"{amount} tegn tilbage","{amount} comments":"{amount} kommentarer","{amount} hrs ago":"{amount} timer siden","{amount} mins ago":"{amount} minutter siden","{amount} more":"{amount} mere","1 comment":"1 kommentar","Add comment":"Tilføj kommentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Tilføj kontekst til din kommentar, del dit navn og ekspertise for at fremme en sund diskussion.","Add reply":"Tilføj svar","Add your expertise":"","Already a member?":"Allerede medlem?",Anonymous:"Anonym","Are you sure?":"Er du sikker?","Become a member of {publication} to start commenting.":"Bliv medlem af {publication} for at kunne skrive kommentarer.","Become a paid member of {publication} to start commenting.":"Bliv betalende medlem af {publication} for at kunne skrive kommentarer.",Best:"",Cancel:"Annuller",Comment:"Kommentér","Commenting disabled":"","Complete your profile":"Færdiggør din profil",Delete:"Slet",Deleted:"Slettet","Deleted member":"Slettet medlem",Deleting:"Sletter",Discussion:"Diskussion",Edit:"Rediger","Edit this comment":"Rediger denne kommentar",edited:"redigeret","Enter your name":"Indtast dit navn",Expertise:"Ekspertise","Founder @ Acme Inc":"Grundlægger @ Acme Inc","Full-time parent":"Forældre på fuld tid","Head of Marketing at Acme, Inc":"Chef for marking hos Acme, Inc","Hidden for members":"Skjult for medlemmer",Hide:"Skjul","Hide comment":"Skjul kommentar","Jamie Larson":"Jamie Larson","Join the discussion":"Bliv en del af diskussionen","Just now":"Lige nu","Load more ({amount})":"Indlæs mere ({amount})","Local resident":"Lokal borger","Member discussion":"Medlemsdiskussion",Name:"Navn",Neurosurgeon:"Neurokirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Når den først er slettet, kan denne kommentar ikke gendannes.","One hour ago":"En time siden","One min ago":"Et minut siden",removed:"fjernet","Replied to":"Svarede",Reply:"Svar","Reply to":"Svar","Reply to comment":"Svar på kommentar",Report:"Rapportér","Report comment":"Rapportér kommentar","Report this comment?":"Rapportér denne kommentar?",Save:"Gem",Sending:"Sender",Sent:"Sendt",Show:"Vis","Show {amount} more replies":"Vis {amount} flere svar","Show 1 more reply":"Vis 1 mere svar","Show comment":"Vis kommentar","Sign in":"Log ind","Sign up now":"Tilmed dig nu","Sort by":"Sorter efter","Start the conversation":"Start samtalen","The linked comment is no longer available.":"","This comment has been hidden.":"Denne kommentar er blevet skjult.","This comment has been removed.":"Denne kommentar er blevet fjernet.","Upgrade now":"Opgrader nu","View in admin":"",Yesterday:"I går","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Din anmodning vil blive sendt til ejeren af dette site."},LR={"{amount} characters left":"{amount} Zeichen übrig","{amount} comments":"{amount} Kommentare","{amount} hrs ago":"Vor {amount} Stunden","{amount} mins ago":"Vor {amount} Minuten","{amount} more":"{amount} weitere","1 comment":"1 Kommentar","Add comment":"Kommentar hinzufügen","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Füge deinem Kommentar Kontext hinzu, teile deinen Namen und deine Expertise, um eine gesunde Diskussion zu fördern.","Add reply":"Antwort hinzufügen","Add your expertise":"Ergänze deine Expertise","Already a member?":"Bist du bereits Mitglied?",Anonymous:"Anonym","Are you sure?":"Bist du sicher?","Become a member of {publication} to start commenting.":"Werde Mitglied bei {publication}, um Kommentare zu schreiben.","Become a paid member of {publication} to start commenting.":"Werde zahlendes Mitglied bei {publication}, um Kommentare zu schreiben.",Best:"Beste",Cancel:"Abbrechen",Comment:"Kommentar","Commenting disabled":"","Complete your profile":"Vervollständige dein Profil",Delete:"Löschen",Deleted:"Gelöscht","Deleted member":"Gelöschtes Mitglied",Deleting:"Wird gelöscht",Discussion:"Diskussion",Edit:"Bearbeiten","Edit this comment":"Diesen Kommentar bearbeiten",edited:"bearbeitet","Enter your name":"Gib deinen Namen ein",Expertise:"Expertise","Founder @ Acme Inc":"Gründer bei Acme Inc","Full-time parent":"Vollzeit-Elternteil","Head of Marketing at Acme, Inc":"Leiter Marketing bei Acme, Inc","Hidden for members":"Für Mitglieder verborgen",Hide:"Verbergen","Hide comment":"Kommentar verbergen","Jamie Larson":"Jamie Larson","Join the discussion":"Nimm an der Diskussion teil","Just now":"Gerade eben","Load more ({amount})":"Weitere laden ({amount})","Local resident":"Ortsansässiger","Member discussion":"Mitgliederdiskussion",Name:"Name",Neurosurgeon:"Neurochirurg",Newest:"Neuste",Oldest:"Älteste","Once deleted, this comment can’t be recovered.":"Der Kommentar kann nicht wiederhergestellt werden, sobald er gelöscht wurde.","One hour ago":"Vor einer Stunde","One min ago":"Vor einer Minute",removed:"entfernt","Replied to":"Antwort auf",Reply:"Antworten","Reply to":"Antwort auf","Reply to comment":"Auf Kommentar antworten",Report:"Melden","Report comment":"Kommentar melden","Report this comment?":"Diesen Kommentar melden?",Save:"Speichern",Sending:"Senden",Sent:"Gesendet",Show:"Anzeigen","Show {amount} more replies":"{amount} weitere Antworten anzeigen","Show 1 more reply":"1 weitere Antwort anzeigen","Show comment":"Kommentar anzeigen","Sign in":"Einloggen","Sign up now":"Jetzt registrieren","Sort by":"Sortiere nach","Start the conversation":"Beginne das Gespräch","The linked comment is no longer available.":"","This comment has been hidden.":"Dieser Kommentar wurde ausgeblendet.","This comment has been removed.":"Dieser Kommentar wurde entfernt.","Upgrade now":"Jetzt upgraden","View in admin":"",Yesterday:"Gestern","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Deine Anfrage wird an den Besitzer dieser Website gesendet."},zR={"{amount} characters left":"{amount} Zeichen übrig","{amount} comments":"{amount} Kommentare","{amount} hrs ago":"Vor {amount} Stunden","{amount} mins ago":"Vor {amount} Minuten","{amount} more":"{amount} mehr","1 comment":"1 Kommentar","Add comment":"Kommentar hinzufügen","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Fügen Sie Kontext zu Ihrem Kommentar hinzu, teilen Sie Ihren Namen und Ihre Expertise, um eine gesunde Diskussion zu fördern.","Add reply":"Antwort hinzufügen","Add your expertise":"Fügen Sie Ihr Fachwissen hinzu","Already a member?":"Bereits ein Mitglied?",Anonymous:"Anonym","Are you sure?":"Sind Sie sicher?","Become a member of {publication} to start commenting.":"Werden Sie ein Mitglied bei {publication}, um Kommentare zu schreiben.","Become a paid member of {publication} to start commenting.":"Werden Sie ein zahlendes Mitglied bei {publication}, um Kommentare zu schreiben.",Best:"Beste",Cancel:"Abbrechen",Comment:"Kommentar","Commenting disabled":"Kommentare deaktiviert","Complete your profile":"Vervollständigen Sie Ihr Profil",Delete:"Löschen",Deleted:"Gelöscht","Deleted member":"Gelöschtes Mitglied",Deleting:"Löschen",Discussion:"Diskussion",Edit:"Bearbeiten","Edit this comment":"Kommentar bearbeiten",edited:"bearbeitet","Enter your name":"Geben Sie Ihren Namen ein",Expertise:"Expertise","Founder @ Acme Inc":"Gründer bei Acme Inc","Full-time parent":"Vollzeit-Elternteil","Head of Marketing at Acme, Inc":"Leiter Marketing bei Acme, Inc","Hidden for members":"Verborgen für Mitglieder",Hide:"Verbergen","Hide comment":"Kommentar verbergen","Jamie Larson":"Jamie Larson","Join the discussion":"An der Diskussion teilnehmen","Just now":"Gerade eben","Load more ({amount})":"Mehr laden ({amount})","Local resident":"Anwohner","Member discussion":"Mitgliederdiskussion",Name:"Name",Neurosurgeon:"Neurochirurg",Newest:"Neueste",Oldest:"Älteste","Once deleted, this comment can’t be recovered.":"Der Kommentar kann nicht wiederhergestellt werden, wenn er gelöscht wurde.","One hour ago":"Vor einer Stunde","One min ago":"Vor einer Minute",removed:"entfernt","Replied to":"Antwortet auf",Reply:"Antworten","Reply to":"Antwort auf","Reply to comment":"Auf Kommentar antworten",Report:"Melden","Report comment":"Kommentar melden","Report this comment?":"Diesen Kommentar melden?",Save:"Speichern",Sending:"Senden",Sent:"Gesendet",Show:"Anzeigen","Show {amount} more replies":"{amount} weitere Antworten anzeigen","Show 1 more reply":"1 weitere Antwort anzeigen","Show comment":"Kommentar anzeigen","Sign in":"Anmelden","Sign up now":"Jetzt registrieren","Sort by":"Sortiere nach","Start the conversation":"Beginnen Sie das Gespräch","The linked comment is no longer available.":"Der verlinkte Kommentar ist nicht mehr verfügbar.","This comment has been hidden.":"Dieser Kommentar wurde ausgeblendet.","This comment has been removed.":"Dieser Kommentar wurde entfernt.","Upgrade now":"Jetzt upgraden","View in admin":"Im Admin anzeigen",Yesterday:"Gestern","You can't post comments in this publication.":"Sie können in dieser Publikation keine Kommentare schreiben.","You can't post comments in this publication. <a>Contact support</a> for more information.":"Sie können in dieser Publikation keine Kommentare schreiben. <a>Kontaktieren Sie den Support</a> für weitere Informationen.","Your request will be sent to the owner of this site.":"Ihre Anfrage wird an den Seitenbesitzer gesendet."},BR={"{amount} characters left":"Απομένουν {amount} χαρακτήρες","{amount} comments":"{amount} σχόλια","{amount} hrs ago":"πριν από {amount} ώρες","{amount} mins ago":"πριν από {amount} λεπτά","{amount} more":"{amount} περισσότερα","1 comment":"1 σχόλιο","Add comment":"Προσθήκη σχολίου","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Προσθέστε περιεχόμενο στο σχόλιό σας, μοιραστείτε το όνομα και την εξειδίκευσή σας για να προωθήσετε μια υγιή συζήτηση.","Add reply":"Προσθήκη απάντησης","Add your expertise":"","Already a member?":"Ήδη μέλος;",Anonymous:"Ανώνυμος","Are you sure?":"","Become a member of {publication} to start commenting.":"Γίνετε μέλος του {publication} για να ξεκινήσετε να σχολιάζετε.","Become a paid member of {publication} to start commenting.":"Γίνετε premium μέλος του {publication} για να ξεκινήσετε να σχολιάζετε.",Best:"",Cancel:"Ακύρωση",Comment:"Σχόλιο","Commenting disabled":"","Complete your profile":"Ολοκληρώστε το προφίλ σας",Delete:"Διαγραφή",Deleted:"","Deleted member":"Διαγραμμένο μέλος",Deleting:"",Discussion:"Συζήτηση",Edit:"Επεξεργασία","Edit this comment":"Επεξεργασία αυτού του σχολίου",edited:"Επεξεργασμένο","Enter your name":"Εισάγετε το όνομά σας",Expertise:"Εξειδίκευση","Founder @ Acme Inc":"Ιδρυτής @ Acme Inc","Full-time parent":"Γονέας πλήρους απασχόλησης","Head of Marketing at Acme, Inc":"Επικεφαλής Μάρκετινγκ στην Acme, Inc","Hidden for members":"",Hide:"Απόκρυψη","Hide comment":"Απόκρυψη σχολίου","Jamie Larson":"Τζέιμι Λάρσον","Join the discussion":"Συμμετοχή στη συζήτηση","Just now":"Μόλις τώρα","Load more ({amount})":"","Local resident":"Τοπικός κάτοικος","Member discussion":"Συζήτηση μελών",Name:"Όνομα",Neurosurgeon:"Νευροχειρουργός",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Πριν από μία ώρα","One min ago":"Πριν από ένα λεπτό",removed:"","Replied to":"",Reply:"Απάντηση","Reply to":"","Reply to comment":"Απάντηση στο σχόλιο",Report:"Αναφορά","Report comment":"Αναφορά σχολίου","Report this comment?":"Αναφορά αυτού του σχολίου;",Save:"Αποθήκευση",Sending:"Αποστολή",Sent:"Απεστάλη",Show:"Εμφάνιση","Show {amount} more replies":"Εμφάνιση {amount} περισσότερων απαντήσεων","Show 1 more reply":"Εμφάνιση 1 ακόμα απάντησης","Show comment":"Εμφάνιση σχολίου","Sign in":"Σύνδεση","Sign up now":"Εγγραφείτε τώρα","Sort by":"","Start the conversation":"Ξεκινήστε τη συζήτηση","The linked comment is no longer available.":"","This comment has been hidden.":"Αυτό το σχόλιο έχει κρυφτεί.","This comment has been removed.":"Αυτό το σχόλιο έχει αφαιρεθεί.","Upgrade now":"Αναβάθμιση τώρα","View in admin":"",Yesterday:"Χθες","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Το αίτημά σας θα σταλεί στον ιδιοκτήτη αυτού του ιστότοπου."},FR={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":""},HR={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":""},VR={"{amount} characters left":"{amount} caracteres restantes","{amount} comments":"{amount} comentarios","{amount} hrs ago":"Hace {amount} horas","{amount} mins ago":"Hace {amount} minutos","{amount} more":"{amount} más","1 comment":"1 comentario","Add comment":"Añadir comentario","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Añade contexto a tu comentario, comparte tu nombre y experiencia para fomentar un debate sano.","Add reply":"Añadir respuesta","Add your expertise":"Añadir tu experiencia","Already a member?":"¿Ya eres miembro?",Anonymous:"Anónimo","Are you sure?":"¿Estás seguro?","Become a member of {publication} to start commenting.":"Hazte miembro de {publication} para poder comentar.","Become a paid member of {publication} to start commenting.":"Hazte miembro de pago para poder comentar en {publication}.",Best:"Mejores",Cancel:"Cancelar",Comment:"Comentar","Commenting disabled":"","Complete your profile":"Completa tu perfil",Delete:"Eliminar",Deleted:"Eliminado","Deleted member":"Eliminar miembro",Deleting:"Eliminando",Discussion:"Discusión",Edit:"Editar","Edit this comment":"Editar este comentario",edited:"editado","Enter your name":"Introduce tu nombre",Expertise:"Experiencia","Founder @ Acme Inc":"Fundador @ Acme Inc","Full-time parent":"Padre a tiempo completo","Head of Marketing at Acme, Inc":"Jefe de Marketing en Acme, Inc","Hidden for members":"Oculto para miembros",Hide:"Ocultar","Hide comment":"Ocultar comentario","Jamie Larson":"Carlos Rodriguez","Join the discussion":"Únete a la discusión","Just now":"Justo ahora","Load more ({amount})":"Cargar más ({amount})","Local resident":"Residente local","Member discussion":"Discusión de los miembros",Name:"Nombre",Neurosurgeon:"Neurocirujano",Newest:"Más nuevos",Oldest:"Más antiguos","Once deleted, this comment can’t be recovered.":"Este comentario no se puede recuperar una vez eliminado.","One hour ago":"Hace una hora","One min ago":"Hace un minuto",removed:"eliminado","Replied to":"En respuesta a",Reply:"Responder","Reply to":"Responder a","Reply to comment":"Responder al comentario",Report:"Reportar","Report comment":"Reportar comentario","Report this comment?":"¿Reportar este comentario?",Save:"Guardar",Sending:"Enviando",Sent:"Enviado",Show:"Mostrar","Show {amount} more replies":"Mostrar {amount} respuestas más","Show 1 more reply":"Mostrar 1 respuesta más","Show comment":"Mostrar comentario","Sign in":"Inicia sesión","Sign up now":"Regístrate ahora","Sort by":"Ordenar por","Start the conversation":"Comienza la conversación","The linked comment is no longer available.":"","This comment has been hidden.":"Este comentario ha sido ocultado.","This comment has been removed.":"Este comentario ha sido borrado.","Upgrade now":"Actualiza tu cuenta ahora","View in admin":"",Yesterday:"Ayer","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Tu petición será enviada al dueño de este sitio web."},_R={"{amount} characters left":"{amount} tähemärki jäänud","{amount} comments":"{amount} kommentaari","{amount} hrs ago":"{amount} tundi tagasi","{amount} mins ago":"{amount} minutit tagasi","{amount} more":"{amount} veel","1 comment":"1 kommentaar","Add comment":"Lisa kommentaar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Lisa oma kommentaarile konteksti, jaga oma nime ja kogemusi, et soodustada tervislikku arutelu.","Add reply":"Lisa vastus","Add your expertise":"","Already a member?":"Juba liige?",Anonymous:"Anonüümne","Are you sure?":"","Become a member of {publication} to start commenting.":"Kommenteerimise alustamiseks saage {publication} liikmeks.","Become a paid member of {publication} to start commenting.":"Kommenteerimise alustamiseks saage {publication} tasuliseks liikmeks.",Best:"",Cancel:"Tühista",Comment:"Kommentaar","Commenting disabled":"","Complete your profile":"Täida oma profiil",Delete:"Kustuta",Deleted:"","Deleted member":"Kustutatud liige",Deleting:"",Discussion:"Arutelu",Edit:"Muuda","Edit this comment":"Muuda seda kommentaari",edited:"muudetud","Enter your name":"Sisesta oma nimi",Expertise:"Oskused","Founder @ Acme Inc":"Asutaja @ Acme Inc","Full-time parent":"Täiskohaga lapsevanem","Head of Marketing at Acme, Inc":"Turundusjuht Acme, Inc-s","Hidden for members":"",Hide:"Peida","Hide comment":"Peida kommentaar","Jamie Larson":"Jamie Larson","Join the discussion":"Liitu aruteluga","Just now":"Just praegu","Load more ({amount})":"","Local resident":"Kohalik elanik","Member discussion":"Liikmete arutelu",Name:"Nimi",Neurosurgeon:"Neurokirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Üks tund tagasi","One min ago":"Üks minut tagasi",removed:"","Replied to":"",Reply:"Vasta","Reply to":"","Reply to comment":"Vasta kommentaarile",Report:"Teata","Report comment":"Teata kommentaarist","Report this comment?":"Teatada sellest kommentaarist?",Save:"Salvesta",Sending:"Saatmine",Sent:"Saadetud",Show:"Näita","Show {amount} more replies":"Näita {amount} vastust veel","Show 1 more reply":"Näita 1 vastus veel","Show comment":"Näita kommentaari","Sign in":"Logi sisse","Sign up now":"Registreeru nüüd","Sort by":"","Start the conversation":"Alusta vestlust","The linked comment is no longer available.":"","This comment has been hidden.":"See kommentaar on peidetud.","This comment has been removed.":"See kommentaar on eemaldatud.","Upgrade now":"Uuenda nüüd","View in admin":"",Yesterday:"Eile","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Teie taotlus saadetakse selle saidi omanikule."},UR={"{amount} characters left":"{amount} geratzen dira","{amount} comments":"{amount} iruzkin","{amount} hrs ago":"Duela {amount} ordu","{amount} mins ago":"Duela {amount} minutu","{amount} more":"{amount} gehiago","1 comment":"Iruzkin 1","Add comment":"Egin iruzkina","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Gehitu testuingurua zure iruzkinari, partekatu zure izena eta ezagutza eztabaida sanoa sustatzeko.","Add reply":"Erantzun","Add your expertise":"Gehitu zure ezagutza","Already a member?":"Kidea al zara?",Anonymous:"Anonimoa","Are you sure?":"Ziur al zaude?","Become a member of {publication} to start commenting.":"Egin zaitez {publication}(e)ko kide iruzkinak egiteko.","Become a paid member of {publication} to start commenting.":"Egin zaitez {publication}(e)ko ordainpeko kide iruzkinak egiteko.",Best:"Onena",Cancel:"Utzi",Comment:"Egin iruzkina","Commenting disabled":"","Complete your profile":"Bete zure profila",Delete:"Ezabatu",Deleted:"Ezabatuta","Deleted member":"Ezabatutako kidea",Deleting:"Ezabatzen",Discussion:"Eztabaida",Edit:"Editatu","Edit this comment":"Editatu iruzkina",edited:"editatua","Enter your name":"Sartu zure izena",Expertise:"Ezagutza","Founder @ Acme Inc":"FAGOR kooperatibaren fundatzailea","Full-time parent":"Lanaldi osoko gurasoa","Head of Marketing at Acme, Inc":"FAGOR kooperatibako marketin-zuzendaria","Hidden for members":"Ezkutatuta kideentzat",Hide:"Ezkutatu","Hide comment":"Ezkutatu iruzkina","Jamie Larson":"Lur Axpe","Join the discussion":"Batu eztabaidara","Just now":"Oraintxe bertan","Load more ({amount})":"Kargatu gehiago ({amount})","Local resident":"Bertoko bizilaguna","Member discussion":"Kideen eztabaida",Name:"Izena",Neurosurgeon:"Neurozirujaua",Newest:"Berriena",Oldest:"Zaharrena","Once deleted, this comment can’t be recovered.":"Ezabatuz gero, ezingo da berreskuratu.","One hour ago":"Duela ordubete","One min ago":"Duela minutu bat",removed:"kenduta","Replied to":"Honi erantzun dio",Reply:"Erantzun","Reply to":"Erantzun honi","Reply to comment":"Erantzun iruzkin honi",Report:"Salatu","Report comment":"Salatu iruzkina","Report this comment?":"Iruzkin hau salatu nahi al duzu?",Save:"Gorde",Sending:"Bidaltzen",Sent:"Bidalita",Show:"Erakutsi","Show {amount} more replies":"Erakutsi {amount} erantzun gehiago","Show 1 more reply":"Erakutsi erantzun bat gehiago","Show comment":"Erakutsi iruzkina","Sign in":"Hasi saioa","Sign up now":"Eman izena orain","Sort by":"Antolatu honen arabera","Start the conversation":"Hasi eztabaida","The linked comment is no longer available.":"","This comment has been hidden.":"Iruzkin hau ezkutatu da.","This comment has been removed.":"Iruzkin hau kendu da.","Upgrade now":"Ordaindu orain","View in admin":"",Yesterday:"Atzo","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Eskaera gune honetako arduradunari bidaliko zaio."},YR={"{amount} characters left":"{amount} حرف باقی‌مانده است","{amount} comments":"{amount} دیدگاه","{amount} hrs ago":"{amount} ساعت پیش","{amount} mins ago":"{amount} دقیقه پیش","{amount} more":"{amount} بیشتر","1 comment":"یک دیدگاه","Add comment":"دیدگاهی بفرستید","Add context to your comment, share your name and expertise to foster a healthy discussion.":"به دیدگاه خود موضوعیت ببخشید و با به اشتراک‌گذاری نام و تخصص خود یک گفتمان سالم ایجاد کنید.","Add reply":"پاسخی بدهید","Add your expertise":"","Already a member?":"عضو هستید؟",Anonymous:"ناشناس","Are you sure?":"","Become a member of {publication} to start commenting.":"عضو وب‌سایت {publication} شوید تا مجوز ارسال دیدگاه دریافت کنید.","Become a paid member of {publication} to start commenting.":"حق اشتراک وب‌سایت {publication} را پرداخت کنید تا مجوز ارسال دیدگاه دریافت کنید.",Best:"",Cancel:"انصراف",Comment:"دیدگاه","Commenting disabled":"","Complete your profile":"نمایه خود را کامل کنید",Delete:"پاک کردن",Deleted:"","Deleted member":"حساب پاک‌شده",Deleting:"",Discussion:"گفتمان",Edit:"ویرایش","Edit this comment":"ویرایش این دیدگاه",edited:"ویرایش‌شده","Enter your name":"نام خود را بنویسید",Expertise:"تخصص","Founder @ Acme Inc":"مدیر عامل یک شرکت خیالی","Full-time parent":" خانه‌دار تمام وقت","Head of Marketing at Acme, Inc":"سرپرست بخش بازاریابی یک شرکت خیالی","Hidden for members":"",Hide:"مخفی کردن","Hide comment":"مخفی کردن دیدگاه","Jamie Larson":"جیمی لارسن","Join the discussion":"به گفتمان بپیوندید","Just now":"پیوستن","Load more ({amount})":"","Local resident":"ساکن محلی","Member discussion":"گفتمان کاربران",Name:"نام",Neurosurgeon:"جراح مغز و اعصاب",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"یک ساعت پیش","One min ago":"یک دقیقه پیش",removed:"","Replied to":"",Reply:"پاسخ دادن","Reply to":"","Reply to comment":"پاسخ دادن به دیدگاه",Report:"گزارش","Report comment":"گزارش دیدگاه","Report this comment?":"می‌خواهید این دیدگاه را گزارش کنید؟",Save:"ذخیره کردن",Sending:"در حال ارسال",Sent:"ارسال شد",Show:"نمایش","Show {amount} more replies":"نمایش {amount} پاسخ بیشتر","Show 1 more reply":"نمایش یک دیدگاه بیشتر","Show comment":"نمایش دیدگاه","Sign in":"ورود به حساب","Sign up now":"ایجاد حساب","Sort by":"","Start the conversation":"گفت‌وگویی شروع کنید","The linked comment is no longer available.":"","This comment has been hidden.":"این دیدگاه مخفی شده است","This comment has been removed.":"این دیدگاه پاک شده است","Upgrade now":"ارتقاء دهید","View in admin":"",Yesterday:"دیروز","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"درخواست شما برای مدیر این وب‌سایت ارسال خواهد شد."},JR={"{amount} characters left":"{amount} merkkiä jäljellä","{amount} comments":"{amount} kommenttia","{amount} hrs ago":"{amount} tuntia sitten","{amount} mins ago":"{amount} minuuttia sitten","{amount} more":"{amount} vielä lisää","1 comment":"1 kommentti","Add comment":"Lisää kommentti","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Lisää sisältöä kommenttiisi, jaa nimesi ja osaamisesi saadaksesi aikaan tervettä keskustelua.","Add reply":"Lisää vastaus","Add your expertise":"Lisää osaamisesi","Already a member?":"Oletko jo jäsen?",Anonymous:"Anonyymi","Are you sure?":"Oletko varma?","Become a member of {publication} to start commenting.":"Liity sivun {publication} jäseneksi pystyäksesi kommentoimaan.","Become a paid member of {publication} to start commenting.":"Ota maksullinen jäsenyys sivulle {publication}, jotta pystyt kommentoimaan.",Best:"Parhaat",Cancel:"Peruuta",Comment:"Kommentti","Commenting disabled":"","Complete your profile":"Täydennä profiilisi",Delete:"Poista",Deleted:"Poistettu","Deleted member":"Poista jäsen",Deleting:"Poistetaan",Discussion:"Keskustelu",Edit:"Editoi","Edit this comment":"Editoi tätä kommenttia",edited:"editoitu","Enter your name":"Syötä nimesi",Expertise:"Osaaminen","Founder @ Acme Inc":"Perustaja","Full-time parent":"Kokoaikainen vanhempi","Head of Marketing at Acme, Inc":"Markkinointijohtaja","Hidden for members":"Piilotettu jäseniltä",Hide:"Piilota","Hide comment":"Piilota kommentti","Jamie Larson":"Jamie Larson","Join the discussion":"Liity keskusteluun","Just now":"Juuri nyt","Load more ({amount})":"Lataa lisää ({amount})","Local resident":"Paikallinen","Member discussion":"Jäsenten keskustelu",Name:"Nimi",Neurosurgeon:"Neurokirurgi",Newest:"Uusin",Oldest:"Vanhin","Once deleted, this comment can’t be recovered.":"Jos poistat kommentin, sitä ei voi enää palauttaa.","One hour ago":"Tunti sitten","One min ago":"Minuutti sitten",removed:"poistettu","Replied to":"Vastattu:",Reply:"Vastaa","Reply to":"Vastaa:","Reply to comment":"Vastaa kommenttiin",Report:"Ilmianna","Report comment":"Ilmianna kommentti","Report this comment?":"Haluatko ilmiantaa tämän kommentin?",Save:"Tallenna",Sending:"Lähetetään",Sent:"Lähetetty",Show:"Näytä","Show {amount} more replies":"Näytä {amount} vastausta lisää ","Show 1 more reply":"Näytä 1 vastaus lisää","Show comment":"Näytä kommentti","Sign in":"Kirjaudu sisään","Sign up now":"Rekisteröidy nyt","Sort by":"Lajitteluperuste","Start the conversation":"Aloita keskustelu","The linked comment is no longer available.":"","This comment has been hidden.":"Tämä kommentti on piilotettu.","This comment has been removed.":"Tämä kommentti on poistettu.","Upgrade now":"Korota nyt","View in admin":"",Yesterday:"Eilen","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Sinun pyyntösi lähetetään sivun omistajalle."},KR={"{amount} characters left":"{amount} caractères restants","{amount} comments":"{amount} commentaires","{amount} hrs ago":"Il y a {amount} heures","{amount} mins ago":"Il y a {amount} minutes","{amount} more":"{amount} supplémentaire(s)","1 comment":"1 commentaire","Add comment":"Ajouter un commentaire","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Ajoutez un contexte à votre commentaire. Partagez votre nom et vos compétences pour favoriser une discussion saine.","Add reply":"Ajouter une réponse","Add your expertise":"Ajoutez vos compétences","Already a member?":"Déjà abonné(e) ?",Anonymous:"Anonyme","Are you sure?":"Êtes-vous certain(e) ?","Become a member of {publication} to start commenting.":"Abonnez-vous gratuitement à {publication} pour commencer à commenter.","Become a paid member of {publication} to start commenting.":"Choisissez un abonnement payant à {publication} pour commencer à commenter.",Best:"Meilleur",Cancel:"Annuler",Comment:"Commentaire","Commenting disabled":"","Complete your profile":"Complétez votre profil",Delete:"Supprimer",Deleted:"Supprimé","Deleted member":"Abonné(e) supprimé(e)",Deleting:"Suppression en cours",Discussion:"Discussion",Edit:"Modifier","Edit this comment":"Modifier ce commentaire",edited:"modifié","Enter your name":"Entrez votre nom",Expertise:"Compétences","Founder @ Acme Inc":"Fondateur @ Acme Inc","Full-time parent":"Parent à plein temps","Head of Marketing at Acme, Inc":"Responsable du marketing chez Acme, Inc","Hidden for members":"Masqué pour les abonnés",Hide:"Masquer","Hide comment":"Masquer le commentaire","Jamie Larson":"Jean Martin","Join the discussion":"Rejoindre la discussion","Just now":"À l'instant","Load more ({amount})":"Afficher plus ({amount})","Local resident":"Résident local","Member discussion":"Discussion entre abonnés",Name:"Nom",Neurosurgeon:"Neurochirurgien",Newest:"Plus récent",Oldest:"Plus ancien","Once deleted, this comment can’t be recovered.":"Une fois supprimé, ce commentaire ne pourra pas être restauré.","One hour ago":"Il y a une heure","One min ago":"Il y a une minute",removed:"supprimé","Replied to":"Répondu à",Reply:"Répondre","Reply to":"Répondre à","Reply to comment":"Répondre au commentaire",Report:"Signaler","Report comment":"Signaler le commentaire","Report this comment?":"Signaler ce commentaire ?",Save:"Enregistrer",Sending:"Envoi en cours",Sent:"Envoyé",Show:"Afficher","Show {amount} more replies":"Afficher {amount} réponses supplémentaires","Show 1 more reply":"Afficher 1 réponse supplémentaire","Show comment":"Afficher le commentaire","Sign in":"Se connecter","Sign up now":"S'inscrire maintenant","Sort by":"Trier par","Start the conversation":"Commencer la conversation","The linked comment is no longer available.":"","This comment has been hidden.":"Ce commentaire a été masqué.","This comment has been removed.":"Ce commentaire a été supprimé.","Upgrade now":"Mettre à jour maintenant","View in admin":"",Yesterday:"Hier","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Votre demande sera transférée au propriétaire de ce site."},WR={"{amount} characters left":"caractaran air fhàgail: {amount}","{amount} comments":"beachdan: {amount}","{amount} hrs ago":"o chionn {amount}u","{amount} mins ago":"o chionn {amount}m","{amount} more":"{amount} a bharrachd","1 comment":"1 bheachd","Add comment":"Fàg beachd air","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Cuir co-theacsa ris a' bheachd agad, cuir d' ainm is sàr-eòlas ris gus deasbad fallain a brosnachadh.","Add reply":"Cuir freagairt ris","Add your expertise":"","Already a member?":"’Eil thu nad bhall mar-thà?",Anonymous:"Gun ainm","Are you sure?":"A bheil thu cinnteach?","Become a member of {publication} to start commenting.":"Clàraich nad bhall an làrach-lìn, {publication}, gus beachd fhàgail air.","Become a paid member of {publication} to start commenting.":"Clàraich nad bhall phrìomhach an làrach-lìn, {publication}, gus beachd fhàgail air.",Best:"",Cancel:"Sguir dheth",Comment:"Beachd","Commenting disabled":"","Complete your profile":"Lìon a-steach a' phròifil agad",Delete:"Sguab às",Deleted:"Air a sguabadh às","Deleted member":"Ball air a sguabadh às",Deleting:"'Ga sguabadh às",Discussion:"Deasbad",Edit:"Deasaich","Edit this comment":"Deasaich am beachd seo",edited:"Air a dheasachadh","Enter your name":"Cuir a-steach d’ ainm",Expertise:"Sàr-eòlas","Founder @ Acme Inc":"Neach-stèidheachaidh @ Acme Inc","Full-time parent":"Pàrant làn-ùine","Head of Marketing at Acme, Inc":"Àrd-cheann Margaidheachd aig Acme, Inc","Hidden for members":"Air am falach bho bhuill",Hide:"Cuir am falach","Hide comment":"Cuir am beachd am falach","Jamie Larson":"Seamaidh Larson","Join the discussion":"Gabh pàirt san deasbad","Just now":"An-dràsta","Load more ({amount})":"Lùchdaich barrachd {amount}","Local resident":"Neach-còmhnaidh ionadail","Member discussion":"Deasbad",Name:"Ainm",Neurosurgeon:"Niùro-làmh-lèigh",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Cha ghabh a aiseag an dèidh sguabadh às","One hour ago":"O chionn uair a thìde","One min ago":"O chionn mionaid",removed:"air a sguabadh às","Replied to":"Air freagairt fhaighinn",Reply:"Cuir freagairt","Reply to":"Cuir freagairt gu","Reply to comment":"Cuir freagairt ri beachd",Report:"Dèan aithris air","Report comment":"Dèan aithris air beachd","Report this comment?":"’Eil thu airson aithris a dhèanamh air a’ bheachd seo?",Save:"Sabhail",Sending:"’Ga chur",Sent:"Air a chur",Show:"Seall","Show {amount} more replies":"An àireamh de bheachdan a bharrachd a chìthear: {amount}","Show 1 more reply":"Seall beachd a bharrachd","Show comment":"Seall am beachd","Sign in":"Clàraich a-steach","Sign up now":"Clàraich a-nis","Sort by":"Seòrsaich a-rèir","Start the conversation":"Tòisich an deasbad","The linked comment is no longer available.":"","This comment has been hidden.":"Chaidh am beachd seo a chur am falach.","This comment has been removed.":"Chaidh am beachd seo a sguabadh às.","Upgrade now":"Àrdaich a-nis","View in admin":"",Yesterday:"An-dè","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Thèid an iarrtas agad a chur gu neach-seilbh an làrach-lìn seo."},qR={"{amount} characters left":"נותרו עוד {amount} תווים","{amount} comments":"{amount} תגובות","{amount} hrs ago":"לפני {amount} שעות","{amount} mins ago":"לפני {amount} דקות","{amount} more":"עוד {amount}","1 comment":"תגובה אחת","Add comment":"הוסיפו תגובה","Add context to your comment, share your name and expertise to foster a healthy discussion.":"הוסיפו תוכן לתגובה שלכם, שתפו את שמכם ואת התמחותכם כדי לקדם דיון בריא.","Add reply":"הוסיפו תגובה","Add your expertise":"","Already a member?":"כבר רשומים?",Anonymous:"אנונימי","Are you sure?":"","Become a member of {publication} to start commenting.":"הירשמו כחברי {publication} כדי להתחיל להגיב.","Become a paid member of {publication} to start commenting.":"הירשמו כחברי משלמים של {publication} כדי להתחיל להגיב.",Best:"",Cancel:"ביטול",Comment:"תגובה","Commenting disabled":"","Complete your profile":"השלימו את הפרופיל שלכם",Delete:"מחיקה",Deleted:"","Deleted member":"חבר שנמחק",Deleting:"",Discussion:"דיון",Edit:"עריכה","Edit this comment":"ערכו תגובה זו",edited:"נערך","Enter your name":"כתבו את שמכם",Expertise:"ניסיון","Founder @ Acme Inc":"מייסד @ Acme Inc","Full-time parent":"הורה במשרה מלאה","Head of Marketing at Acme, Inc":"ראש אגף שיווק ב- Acme, Inc","Hidden for members":"",Hide:"הסתר","Hide comment":"הסתר תגובה","Jamie Larson":"ג׳יימי לרסון","Join the discussion":"הצטרפו לדיון","Just now":"ממש עכשיו","Load more ({amount})":"","Local resident":"תושב מקומי","Member discussion":"דיון חברים רשומים",Name:"שם",Neurosurgeon:"נוֹיְרוֹכִירוּרְג",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"לפני שעה","One min ago":"לפני דקה",removed:"","Replied to":"",Reply:"תגובה","Reply to":"","Reply to comment":"הגיבו לתגובה",Report:"דיווח","Report comment":"דווחו על תגובה","Report this comment?":"האם לדווח על תגובה זו?",Save:"שמירה",Sending:"שליחה",Sent:"שלחנו",Show:"להציג","Show {amount} more replies":"להציג עוד {amount} תגובות","Show 1 more reply":"להציג תגובה נוספת","Show comment":"להציג תגובה","Sign in":"היכנסו","Sign up now":"הירשמו עכשיו","Sort by":"למיין לפי","Start the conversation":"התחילו את השיחה","The linked comment is no longer available.":"","This comment has been hidden.":"התגובה הזו הוסתרה.","This comment has been removed.":"התגובה הזו הוסרה.","Upgrade now":"שדרגו עכשיו","View in admin":"",Yesterday:"אתמול","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"בקשתך תישלח לבעלים של האתר הזה."},GR={"{amount} characters left":"{amount} अक्षर बाकी","{amount} comments":"{amount} टिप्पणियाँ","{amount} hrs ago":"{amount} घंटे पहले","{amount} mins ago":"{amount} मिनट पहले","{amount} more":"{amount} और","1 comment":"1 टिप्पणी","Add comment":"टिप्पणी जोड़ें","Add context to your comment, share your name and expertise to foster a healthy discussion.":"अपनी टिप्पणी में संदर्भ जोड़ें, स्वस्थ चर्चा के लिए अपना नाम और विशेषज्ञता साझा करें।","Add reply":"जवाब जोड़ें","Add your expertise":"अपनी विशेषज्ञता जोड़ें","Already a member?":"पहले से सदस्य हैं?",Anonymous:"अनाम","Are you sure?":"क्या आप सुनिश्चित हैं?","Become a member of {publication} to start commenting.":"टिप्पणी शुरू करने के लिए {publication} का सदस्य बनें।","Become a paid member of {publication} to start commenting.":"टिप्पणी शुरू करने के लिए {publication} के भुगतान सदस्य बनें।",Best:"सर्वश्रेष्ठ",Cancel:"रद्द करें",Comment:"टिप्पणी","Commenting disabled":"","Complete your profile":"अपनी प्रोफ़ाइल पूरी करें",Delete:"हटाएं",Deleted:"हटा दिया गया","Deleted member":"हटाए गए सदस्य",Deleting:"हटाया जा रहा है",Discussion:"चर्चा",Edit:"संपादित करें","Edit this comment":"इस टिप्पणी को संपादित करें",edited:"संपादित किया गया","Enter your name":"अपना नाम दर्ज करें",Expertise:"विशेषज्ञता","Founder @ Acme Inc":"संस्थापक @ Acme Inc","Full-time parent":"पूर्णकालिक माता-पिता","Head of Marketing at Acme, Inc":"Acme, Inc में विपणन प्रमुख","Hidden for members":"सदस्यों के लिए छिपाया गया",Hide:"छिपाएं","Hide comment":"टिप्पणी छिपाएं","Jamie Larson":"राहुल शर्मा","Join the discussion":"चर्चा में शामिल हों","Just now":"अभी","Load more ({amount})":"और लोड करें ({amount})","Local resident":"स्थानीय निवासी","Member discussion":"सदस्य चर्चा",Name:"नाम",Neurosurgeon:"न्यूरोसर्जन",Newest:"नवीनतम",Oldest:"सबसे पुराना","Once deleted, this comment can’t be recovered.":"एक बार हटाए जाने के बाद, इस टिप्पणी को पुनः प्राप्त नहीं किया जा सकता।","One hour ago":"एक घंटा पहले","One min ago":"एक मिनट पहले",removed:"हटा दिया गया","Replied to":"को जवाब दिया",Reply:"जवाब दें","Reply to":"को जवाब दें","Reply to comment":"टिप्पणी का जवाब दें",Report:"रिपोर्ट","Report comment":"टिप्पणी की रिपोर्ट करें","Report this comment?":"क्या आप इस टिप्पणी की रिपोर्ट करना चाहते हैं?",Save:"सहेजें",Sending:"भेजा जा रहा है",Sent:"भेजा गया",Show:"दिखाएं","Show {amount} more replies":"{amount} और जवाब दिखाएं","Show 1 more reply":"1 और जवाब दिखाएं","Show comment":"टिप्पणी दिखाएं","Sign in":"साइन इन करें","Sign up now":"अभी साइनअप करें","Sort by":"क्रमबद्ध करें","Start the conversation":"बातचीत शुरू करें","The linked comment is no longer available.":"","This comment has been hidden.":"इस टिप्पणी को छिपा दिया गया है।","This comment has been removed.":"इस टिप्पणी को हटा दिया गया है।","Upgrade now":"अब उन्नत करें","View in admin":"",Yesterday:"कल","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"आपका अनुरोध इस साइट के मालिक को भेजा जाएगा।"},QR={"{amount} characters left":"{amount} znakova preostalo","{amount} comments":"{amount} komentara","{amount} hrs ago":"Prije {amount} sati","{amount} mins ago":"Prije {amount} minuta","{amount} more":"{amount} više","1 comment":"1 komentar","Add comment":"Dodaj komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dajte kontekts vašem komentaru, podijelite vaše ime i znanje za unaprijeđenje svake rasprave.","Add reply":"Dodaj odgovor","Add your expertise":"","Already a member?":"Već si član?",Anonymous:"Anonimus","Are you sure?":"","Become a member of {publication} to start commenting.":"Postani član {publication} za mogućnost komentiranja.","Become a paid member of {publication} to start commenting.":"Plati pretplatu na {publication} za mogućnost komentiranja.",Best:"",Cancel:"Prekini",Comment:"Komentar","Commenting disabled":"","Complete your profile":"Dovrši svoj profil",Delete:"Obriši",Deleted:"","Deleted member":"Obrisan član",Deleting:"",Discussion:"Rasprava",Edit:"Uredi","Edit this comment":"Uredi ovaj komentar",edited:"uređen","Enter your name":"Unesite vaše ime",Expertise:"Stručnost","Founder @ Acme Inc":"Osnivač Acme Inc","Full-time parent":"Full-time Roditelj","Head of Marketing at Acme, Inc":"Voditelj marketinga Acme, Inc","Hidden for members":"",Hide:"Sakrij","Hide comment":"Sakrij komentar","Jamie Larson":"Jamie Larson","Join the discussion":"Pridruži se raspravi","Just now":"Upravo sada","Load more ({amount})":"","Local resident":"Lokalni stanovnik","Member discussion":"Rasprava članova",Name:"Ime",Neurosurgeon:"Neurokirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Prije jednog sata","One min ago":"Prije jedne minute",removed:"","Replied to":"",Reply:"Odgovori","Reply to":"","Reply to comment":"Odgovori na komentar",Report:"Prijavi","Report comment":"Prijavi komentar","Report this comment?":"Prijaviti ovaj komentar?",Save:"Spremi",Sending:"Slanje",Sent:"Poslano",Show:"Prikaži","Show {amount} more replies":"Prikaži još {amount} odgovora","Show 1 more reply":"Prikaži još jedan odgovor","Show comment":"Prikaži komentar","Sign in":"Prijava","Sign up now":"Registriraj se sada","Sort by":"","Start the conversation":"Pokreni razgovor","The linked comment is no longer available.":"","This comment has been hidden.":"Ovaj komentar je skriven","This comment has been removed.":"Ovaj komentar je maknut","Upgrade now":"Nadogradite sada","View in admin":"",Yesterday:"Jučer","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Vaš zahtjev će se poslati vasniku ovih web stranica."},ZR={"{amount} characters left":"{amount} karakter maradt","{amount} comments":"{amount} hozzászólás","{amount} hrs ago":"{amount} órája","{amount} mins ago":"{amount} perce","{amount} more":"{amount} még","1 comment":"1 hozzászólás","Add comment":"Hozzászólás","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Segítsd a beszélgetést azzal, hogy megadod a nevedet és azt, hogy mihez értesz.","Add reply":"Válasz","Add your expertise":"Add meg a szakterületedet","Already a member?":"Van már fiókod?",Anonymous:"Anonim","Are you sure?":"Biztos vagy benne?","Become a member of {publication} to start commenting.":"Csatlakozz a támogató {publication} közösséghez, hogy hozzászólhass a tartalmakhoz.","Become a paid member of {publication} to start commenting.":"Csatlakozz a fizető {publication} közösséghez, hogy hozzászólhass a tartalmakhoz.",Best:"Legjobb",Cancel:"Mégse",Comment:"Hozzászólás","Commenting disabled":"","Complete your profile":"Profil befejezése",Delete:"Törlés",Deleted:"Törölt","Deleted member":"Törölt tag",Deleting:"Törölni",Discussion:"Hozzászólások",Edit:"Szerkesztés","Edit this comment":"Hozzászólás szerkesztése",edited:"szerkesztve","Enter your name":"Add meg a nevedet",Expertise:"Foglalkozás","Founder @ Acme Inc":"A(z) @ Sirály Kft. alapítója","Full-time parent":"Főállású szülő","Head of Marketing at Acme, Inc":"Marketingvezető — Sirály Kft.","Hidden for members":"A tagok számára elrejtve",Hide:"Elrejtés","Hide comment":"Hozzászólás elrejtése","Jamie Larson":"Kiss Sára","Join the discussion":"Csatlakozz a beszélgetéshez","Just now":"Épp most","Load more ({amount})":"Továbbiak betöltése ({amount})","Local resident":"Helyi lakos","Member discussion":"Tagok beszélgetése",Name:"Név",Neurosurgeon:"Idegsebész",Newest:"Legújabb",Oldest:"Legrégebbi","Once deleted, this comment can’t be recovered.":"A törlés után ez a hozzászólás nem állítható vissza.","One hour ago":"Egy órája","One min ago":"Egy perce",removed:"eltávolítva","Replied to":"Válaszolt erre",Reply:"Válasz","Reply to":"Válasz","Reply to comment":"Válasz a hozzászólásra",Report:"Jelentés","Report comment":"Hozzászólás jelentése","Report this comment?":"Szeretnéd jelenteni ezt a hozzászólást?",Save:"Mentés",Sending:"Küldés",Sent:"Elküldve",Show:"Mutat","Show {amount} more replies":"Mutass még {amount} választ","Show 1 more reply":"Mutass még egy választ","Show comment":"Hozzászólás mutatása","Sign in":"Bejelentkezés","Sign up now":"Regisztrálj most","Sort by":"Rendezés","Start the conversation":"Kezdd el a beszélgetést","The linked comment is no longer available.":"","This comment has been hidden.":"Ezt a hozzászólást elrejtettük.","This comment has been removed.":"Ezt a hozzászólást töröltük.","Upgrade now":"Előfizetéssel te is hozzászólhatsz","View in admin":"",Yesterday:"Tegnap","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"A kérésedet továbbítjuk a weboldal tulajdonosának."},XR={"{amount} characters left":"{amount} karakter tersisa","{amount} comments":"{amount} komentar","{amount} hrs ago":"{amount} jam yang lalu","{amount} mins ago":"{amount} menit yang lalu","{amount} more":"{amount} lagi","1 comment":"1 komentar","Add comment":"Tambahkan komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Tambahkan konteks pada komentar Anda, bagikan nama dan keahlian Anda untuk mendorong diskusi yang sehat.","Add reply":"Tambahkan balasan","Add your expertise":"Tambahkan keahlian Anda","Already a member?":"Sudah menjadi anggota?",Anonymous:"Anonim","Are you sure?":"Apakah Anda yakin?","Become a member of {publication} to start commenting.":"Jadilah anggota di {publication} untuk mulai berkomentar.","Become a paid member of {publication} to start commenting.":"Jadilah anggota berbayar di {publication} untuk mulai berkomentar.",Best:"Terbaik",Cancel:"Batal",Comment:"Komentar","Commenting disabled":"","Complete your profile":"Lengkapi profil Anda",Delete:"Hapus",Deleted:"Terhapus","Deleted member":"Anggota dihapus",Deleting:"Menghapus...",Discussion:"Diskusi",Edit:"Edit","Edit this comment":"Edit komentar ini",edited:"diedit","Enter your name":"Masukkan nama Anda",Expertise:"Keahlian","Founder @ Acme Inc":"Founder @ Acme Inc","Full-time parent":"Orang tua penuh waktu","Head of Marketing at Acme, Inc":"Direktur Pemasaran di Acme, Inc","Hidden for members":"Tersembunyi bagi anggota",Hide:"Sembunyikan","Hide comment":"Sembunyikan komentar","Jamie Larson":"Sutan T. Alisjahbana","Join the discussion":"Bergabung dalam diskusi","Just now":"Baru saja","Load more ({amount})":"Tampilkan {amount} lagi","Local resident":"Penduduk lokal","Member discussion":"Diskusi anggota",Name:"Nama",Neurosurgeon:"Ahli Bedah Saraf",Newest:"Paling baru",Oldest:"Paling lama","Once deleted, this comment can’t be recovered.":"Setelah dihapus, komentar ini tidak dapat dipulihkan.","One hour ago":"Satu jam yang lalu","One min ago":"Satu menit yang lalu",removed:"","Replied to":"",Reply:"Balas","Reply to":"","Reply to comment":"Balas komentar",Report:"Laporkan","Report comment":"Laporkan komentar","Report this comment?":"Laporkan komentar ini?",Save:"Simpan",Sending:"Mengirim",Sent:"Terkirim",Show:"Tampilkan","Show {amount} more replies":"Tampilkan {amount} balasan lainnya","Show 1 more reply":"Tampilkan 1 balasan lainnya","Show comment":"Tampilkan komentar","Sign in":"Masuk","Sign up now":"Daftar sekarang","Sort by":"Urutkan berdasarkan","Start the conversation":"Mulai percakapan","The linked comment is no longer available.":"","This comment has been hidden.":"Komentar ini telah disembunyikan.","This comment has been removed.":"Komentar ini telah dihapus.","Upgrade now":"Daftar sekarang","View in admin":"",Yesterday:"Kemarin","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Permintaan Anda akan dikirim kepada pemilik situs ini."},eD={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":""},tD={"{amount} characters left":"{amount} caratteri rimanenti","{amount} comments":"{amount} commenti","{amount} hrs ago":"{amount} ore fa","{amount} mins ago":"{amount} minuti fa","{amount} more":"{amount} in più","1 comment":"1 commento","Add comment":"Aggiungi commento","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Aggiungi dettagli al tuo commento, condividi il tuo nome e le tue competenze per incoraggiare una conversazione sana.","Add reply":"Aggiungi risposta","Add your expertise":"Aggiungi le tue competenze","Already a member?":"Sei già iscritto?",Anonymous:"Anonimo","Are you sure?":"Sei sicuro?","Become a member of {publication} to start commenting.":"Iscriviti a {publication} per poter commentare.","Become a paid member of {publication} to start commenting.":"Abbonati a {publication} per poter commentare.",Best:"Migliori",Cancel:"Annulla",Comment:"Commenta","Commenting disabled":"Commenti disabilitati","Complete your profile":"Completa il tuo profilo",Delete:"Elimina",Deleted:"Eliminato","Deleted member":"Utente eliminato",Deleting:"Eliminazione in corso",Discussion:"Discussione",Edit:"Modifica","Edit this comment":"Modifica questo commento",edited:"modificato","Enter your name":"Inserisci il tuo nome",Expertise:"Competenze","Founder @ Acme Inc":"Megadirettore Galattico","Full-time parent":"Genitore a tempo pieno","Head of Marketing at Acme, Inc":"Ragioniere presso Megaditta","Hidden for members":"Nascosto per gli abbonati",Hide:"Nascondi","Hide comment":"Nascondi commento","Jamie Larson":"Andrea Rossi","Join the discussion":"Partecipa alla discussione","Just now":"Adesso","Load more ({amount})":"Caricane altri {amount}","Local resident":"Paesano","Member discussion":"Commenti",Name:"Nome",Neurosurgeon:"Neurochirurgo",Newest:"Più recenti",Oldest:"Più vecchi","Once deleted, this comment can’t be recovered.":"Una volta cancellato, non potrai più recuperare questo commento","One hour ago":"Un'ora fa","One min ago":"Un minuto fa",removed:"rimosso","Replied to":"Ha risposto a",Reply:"Rispondi","Reply to":"Rispondi a","Reply to comment":"Rispondi al commento",Report:"Segnala","Report comment":"Segnala commento","Report this comment?":"Segnalare questo commento?",Save:"Salva",Sending:"Invio",Sent:"Inviato",Show:"Mostra","Show {amount} more replies":"Mostra altre {amount} risposte","Show 1 more reply":"Mostra un'altra risposta","Show comment":"Mostra commento","Sign in":"Accedi","Sign up now":"Iscriviti ora","Sort by":"Ordina per","Start the conversation":"Commenta per primo","The linked comment is no longer available.":"Il commento collegato non è più disponibile.","This comment has been hidden.":"Questo commento è stato nascosto.","This comment has been removed.":"Questo commento è stato rimosso.","Upgrade now":"Abbonati ora","View in admin":"Visualizza nell'area admin",Yesterday:"Ieri","You can't post comments in this publication.":"Non puoi postare commenti in questa pubblicazione.","You can't post comments in this publication. <a>Contact support</a> for more information.":"Non puoi postare commenti in questa pubblicazione. <a>Contatta il supporto</a> per maggiori informazioni.","Your request will be sent to the owner of this site.":"La tua richiesta sarà inviata al proprietario del sito."},nD={"{amount} characters left":"残り{amount}文字","{amount} comments":"{amount}のコメント","{amount} hrs ago":"{amount}時間前","{amount} mins ago":"{amount}分前","{amount} more":"さらに{amount}個","1 comment":"1のコメント","Add comment":"コメントする","Add context to your comment, share your name and expertise to foster a healthy discussion.":"コメントはよく説明し、名前と専門分野を共有することで健全な議論をすすめましょう。","Add reply":"返信する","Add your expertise":"","Already a member?":"メンバーですか?",Anonymous:"匿名","Are you sure?":"","Become a member of {publication} to start commenting.":"{publication}のメンバーになってコメントを始めましょう。","Become a paid member of {publication} to start commenting.":"{publication}の有料メンバーになってコメントを始めましょう。",Best:"",Cancel:"キャンセル",Comment:"コメント","Commenting disabled":"","Complete your profile":"プロフィールを完成させる",Delete:"削除",Deleted:"","Deleted member":"削除されたメンバー",Deleting:"",Discussion:"議論",Edit:"編集","Edit this comment":"このコメントを編集する",edited:"編集済み","Enter your name":"名前を記入",Expertise:"専門分野","Founder @ Acme Inc":"創業者 @ Acme Inc","Full-time parent":"専業主婦・主夫","Head of Marketing at Acme, Inc":"マーケティング責任者 @ Acme, Inc","Hidden for members":"",Hide:"非表示にする","Hide comment":"コメントを非表示にする","Jamie Larson":"ジェイミー・ラーソン","Join the discussion":"議論に参加する","Just now":"今すぐ参加する","Load more ({amount})":"","Local resident":"地元住民","Member discussion":"メンバーによる議論",Name:"名前",Neurosurgeon:"脳神経外科医",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"1時間前","One min ago":"1分前",removed:"","Replied to":"",Reply:"返信する","Reply to":"","Reply to comment":"コメントに返信する",Report:"通報する","Report comment":"コメントを通報する","Report this comment?":"このコメントを通報しますか?",Save:"保存",Sending:"送信中",Sent:"送信完了",Show:"表示する","Show {amount} more replies":"{amount}個の返信を表示する","Show 1 more reply":"返信をもう1つ表示する","Show comment":"コメントを表示する","Sign in":"ログイン","Sign up now":"今すぐ新規登録する","Sort by":"","Start the conversation":"会話を始める","The linked comment is no longer available.":"","This comment has been hidden.":"このコメントは非表示にされました。","This comment has been removed.":"このコメントは削除されました。","Upgrade now":"今すぐアップデートする","View in admin":"",Yesterday:"昨日","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"あなたのリクエストはこのサイトの管理者に送信されます。"},oD={"{amount} characters left":"{amount}글자 남음","{amount} comments":"{amount}개의 댓글","{amount} hrs ago":"{amount}시간 전","{amount} mins ago":"{amount}분 전","{amount} more":"{amount}개 더보기","1 comment":"1개의 댓글","Add comment":"댓글 추가","Add context to your comment, share your name and expertise to foster a healthy discussion.":"건설적인 토론을 위해 댓글에 맥락을 추가하고, 이름과 전문 분야를 공유해 주세요.","Add reply":"답변 추가","Add your expertise":"","Already a member?":"이미 회원이신가요?",Anonymous:"익명","Are you sure?":"","Become a member of {publication} to start commenting.":"{publication}의 회원이 되어 댓글을 작성해 주세요.","Become a paid member of {publication} to start commenting.":"{publication}의 유료 회원이 되어 댓글을 작성해 주세요.",Best:"",Cancel:"취소",Comment:"댓글","Commenting disabled":"","Complete your profile":"프로필을 완성해 주세요",Delete:"삭제",Deleted:"","Deleted member":"삭제된 회원",Deleting:"",Discussion:"댓글",Edit:"수정","Edit this comment":"댓글 수정",edited:"수정됨","Enter your name":"이름을 입력해 주세요",Expertise:"전문분야","Founder @ Acme Inc":"Acme Inc 창업자","Full-time parent":"전업 부모","Head of Marketing at Acme, Inc":"Acme Inc 마케팅 책임자","Hidden for members":"",Hide:"숨기기","Hide comment":"댓글 숨기기","Jamie Larson":"제이미 라슨","Join the discussion":"댓글에 참여해 주세요","Just now":"방금 전","Load more ({amount})":"","Local resident":"지역 주민","Member discussion":"회원들의 댓글",Name:"이름",Neurosurgeon:"신경외과 의사",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"1시간 전","One min ago":"1분 전",removed:"","Replied to":"",Reply:"답변","Reply to":"","Reply to comment":"댓글에 답변",Report:"신고","Report comment":"댓글 신고","Report this comment?":"이 댓글을 신고하시겠어요?",Save:"저장",Sending:"전송중",Sent:"전송됨",Show:"보기","Show {amount} more replies":"{amount}개의 댓글 더 보기","Show 1 more reply":"1개의 댓글 더 보기","Show comment":"댓글 보기","Sign in":"로그인","Sign up now":"회원가입","Sort by":"정렬 기준","Start the conversation":"댓글을 작성해 주세요","The linked comment is no longer available.":"","This comment has been hidden.":"숨김처리 된 댓글이에요.","This comment has been removed.":"삭제 된 댓글이에요.","Upgrade now":"업그레이드","View in admin":"",Yesterday:"어제","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"운영자에게 요구사항이 전달되었어요."},rD={"{amount} characters left":"{amount} таңба қалды","{amount} comments":"{amount} пікір","{amount} hrs ago":"{amount} сағат бұрын","{amount} mins ago":"{amount} минут бұрын","{amount} more":"тағы {amount}","1 comment":"1 пікір","Add comment":"Пікір қосу","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Талқы қызық болуы үшін өзіңіз туралы мәліметтерді қосыңыз.","Add reply":"Жауап қосу","Add your expertise":"","Already a member?":"Әлдеқашан қосылдыңыз ба?",Anonymous:"Аноним","Are you sure?":"","Become a member of {publication} to start commenting.":"Пікір қалдыру үшін {publication} сайтына аккаунт қажет.","Become a paid member of {publication} to start commenting.":"Пікір қалдыру үшін {publication} сайтына ақылы аккаунт қажет.",Best:"",Cancel:"Бас тарту",Comment:"Пікір","Commenting disabled":"","Complete your profile":"Профиліңізді толтырыңыз",Delete:"Жою",Deleted:"","Deleted member":"Жойылған аккаунт",Deleting:"",Discussion:"Талқы",Edit:"Өңдеу","Edit this comment":"Бұл пікірді өңдеу",edited:"Өңделді","Enter your name":"Есіміңізді жазыңыз",Expertise:"Қызмет","Founder @ Acme Inc":"@ Acme Inc құрылтайшысы","Full-time parent":"Толық күн жұмыс істейтін ата-ана","Head of Marketing at Acme, Inc":"@ Acme маркетинг жетекшісі ","Hidden for members":"",Hide:"Жасыру","Hide comment":"Пікірді жасыру","Jamie Larson":"Пәленше Түгеншиев","Join the discussion":"Талқыға қосылу","Just now":"Дәл қазір","Load more ({amount})":"","Local resident":"Жергілікті тұрғын","Member discussion":"Мүшелер талқысы",Name:"Есімі",Neurosurgeon:"Нейрохирург",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Бір сағат бұрын","One min ago":"Бір минут бұрын",removed:"","Replied to":"",Reply:"Жауап беру","Reply to":"","Reply to comment":"Пікірге жауап беру",Report:"Шағымдану","Report comment":"Пікірге шағымдану","Report this comment?":"Осы пікірге шағым жіберілсін бе?",Save:"Сақтау",Sending:"Жіберілуде",Sent:"Жіберілді",Show:"Көрсету","Show {amount} more replies":"Тағы {amount} жауапты көрсету","Show 1 more reply":"Тағы 1 жауап көрсету","Show comment":"Пікірді көрсету","Sign in":"Кіру","Sign up now":"Қазір тіркелу","Sort by":"","Start the conversation":"Талқыны бастау","The linked comment is no longer available.":"","This comment has been hidden.":"Бұл пікір жасырылды.","This comment has been removed.":"Бұл пікір өшірілді.","Upgrade now":"Жаңарту ","View in admin":"",Yesterday:"Кеше","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Өтінішіңіз сайт иесіне жіберіледі."},iD={"{amount} characters left":"{amount} likę simboliai","{amount} comments":"{amount} komentarai","{amount} hrs ago":"Prieš {amount} val.","{amount} mins ago":"Prieš {amount} min.","{amount} more":"{amount} daugiau","1 comment":"1 komentaras","Add comment":"Rašyti komentarą","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Papildykite savo komentarą, prisistatykite ir pasidalinkite savo turimomis žiniomis, kad paskatintumėte prasmingą diskusiją.","Add reply":"Atsakyti","Add your expertise":"","Already a member?":"Jau turite paskyrą?",Anonymous:"Anoniminis","Are you sure?":"","Become a member of {publication} to start commenting.":"Užsiregistruokite {publication}, kad galėtumėte komentuoti.","Become a paid member of {publication} to start commenting.":"Tapkite {publication} prenumeratoriumi, kad galėtumėte komentuoti.",Best:"",Cancel:"Atšaukti",Comment:"Komentuoti","Commenting disabled":"","Complete your profile":"Pabaikite kurti savo profilį!",Delete:"Ištrinti",Deleted:"","Deleted member":"Pašalintas narys",Deleting:"",Discussion:"Diskusija",Edit:"Redaguoti","Edit this comment":"Redaguoti šį komentarą",edited:"redaguotas","Enter your name":"Įrašykite savo vardą",Expertise:"Specializacija","Founder @ Acme Inc":"Istorikas","Full-time parent":"Vaiką prižiūrintis tėvas","Head of Marketing at Acme, Inc":"Tyrinėtojas","Hidden for members":"",Hide:"Paslėpti","Hide comment":"Paslėpti komentarą","Jamie Larson":"Vardenis Pavardenis","Join the discussion":"Prisijunkite prie diskusijos","Just now":"Ką tik","Load more ({amount})":"","Local resident":"Vietinis gyventojas","Member discussion":"Komentarai",Name:"Vardas",Neurosurgeon:"Neurochirurgas",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Prieš valandą","One min ago":"Prieš minutę",removed:"","Replied to":"",Reply:"Atsakyti","Reply to":"","Reply to comment":"Atsakyti į komentarą",Report:"Pranešti","Report comment":"Pranešti apie komentarą","Report this comment?":"Pranešti apie šį komentarą?",Save:"Išsaugoti",Sending:"Siunčiama",Sent:"Išsiųsta",Show:"Rodyti","Show {amount} more replies":"Rodyti daugiau atsakymų ({amount})","Show 1 more reply":"Rodyti dar 1 atsakymą","Show comment":"Rodyti komentarą","Sign in":"Prisijungti","Sign up now":"Registruotis","Sort by":"","Start the conversation":"Parašykite pirmąjį komentarą","The linked comment is no longer available.":"","This comment has been hidden.":"Šis komentaras buvo paslėptas.","This comment has been removed.":"Šis komentaras buvo pašalintas.","Upgrade now":"Prenumeruokite","View in admin":"",Yesterday:"Vakar","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Jūsų pranešimas bus išsiųstas svetainės savininkui."},sD={"{amount} characters left":"Atlikušas {amount} rakstzīmes","{amount} comments":"{amount} komentāri","{amount} hrs ago":"pirms {amount} stundām","{amount} mins ago":"Pirms {amount} minūtēm","{amount} more":"Vēl {amount}","1 comment":"1 komentārs","Add comment":"Pievienot komentāru","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Pievienojiet savam komentāram kontekstu, kopīgojiet savu vārdu un zināšanas, lai veicinātu veselīgu diskusiju.","Add reply":"Pievienot atbildi","Add your expertise":"","Already a member?":"Vai jau esat dalībnieks?",Anonymous:"Anonīms","Are you sure?":"Vai esat pārliecināts?","Become a member of {publication} to start commenting.":"Kļūstiet par {publication} dalībnieku, lai sāktu komentēt.","Become a paid member of {publication} to start commenting.":"Kļūstiet par apmaksātu {publication} dalībnieku, lai sāktu komentēt.",Best:"",Cancel:"Atcelt",Comment:"Komentēt","Commenting disabled":"","Complete your profile":"Pabeidziet savu profilu",Delete:"Dzēst",Deleted:"Izdzēsts","Deleted member":"Dzēsts dalībnieks",Deleting:"Dzēšana",Discussion:"Diskusija",Edit:"Rediģēt","Edit this comment":"Rediģēt šo komentāru",edited:"rediģēts","Enter your name":"Ievadiet savu vārdu",Expertise:"Ekspertīze","Founder @ Acme Inc":"Dibinātājs @ Acme Inc","Full-time parent":"Pilnas slodzes vecāks","Head of Marketing at Acme, Inc":"Mārketinga vadītājs uzņēmumā Acme, Inc","Hidden for members":"Paslēpts dalībniekiem",Hide:"Slēpt","Hide comment":"Slēpt komentāru","Jamie Larson":"Jānis Reikulis","Join the discussion":"Pievienojieties diskusijai","Just now":"Tikai tagad","Load more ({amount})":"","Local resident":"Vietējais iedzīvotājs","Member discussion":"Biedru diskusija",Name:"Vārds",Neurosurgeon:"Neiroķirurgs",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Pēc dzēšanas šo komentāru nevar atgūt.","One hour ago":"Pirms stundas","One min ago":"Pirms minūtes",removed:"noņemts","Replied to":"Atbildēja uz",Reply:"Atbildēt","Reply to":"Atbildēt uz","Reply to comment":"Atbildēt uz komentāru",Report:"Ziņojums","Report comment":"Ziņot par komentāru","Report this comment?":"Vai ziņot par šo komentāru?",Save:"Saglabāt",Sending:"Notiek nosūtīšana",Sent:"Nosūtīts",Show:"Rādīt","Show {amount} more replies":"Rādīt vēl {amount} atbildes","Show 1 more reply":"Rādīt vēl 1 atbildi","Show comment":"Rādīt komentāru","Sign in":"Pierakstīties","Sign up now":"Reģistrējieties tūlīt","Sort by":"Kārtot pēc","Start the conversation":"Sāciet sarunu","The linked comment is no longer available.":"","This comment has been hidden.":"Šis komentārs ir paslēpts.","This comment has been removed.":"Šis komentārs ir noņemts.","Upgrade now":"Jauniniet tūlīt","View in admin":"",Yesterday:"Vakar","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Jūsu pieprasījums tiks nosūtīts šīs vietnes īpašniekam."},aD={"{amount} characters left":"Преостануваат {amount} знаци.","{amount} comments":"{amount} коментари","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"Уште {amount}","1 comment":"1 коментар","Add comment":"Додајте коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додајте контекст за вашиот коментар, споделете го вашето име и експертиза за да одржите пристојна дискусија.","Add reply":"Одговорете","Add your expertise":"","Already a member?":"Веќе сте член?",Anonymous:"Анонимен","Are you sure?":"","Become a member of {publication} to start commenting.":"Станете член на {publication} за да можете да коментирате.","Become a paid member of {publication} to start commenting.":"Станете претплатен член на {publication} за да можеш да коментирате.",Best:"",Cancel:"Откажете",Comment:"Коментирајте","Commenting disabled":"","Complete your profile":"Комплетирајте го вашиот профил",Delete:"Избришете",Deleted:"","Deleted member":"Избришан член",Deleting:"",Discussion:"Разговор",Edit:"Изменете","Edit this comment":"Изменете го овој коментар",edited:"","Enter your name":"Внесете го вашето име",Expertise:"Експертиза","Founder @ Acme Inc":"Основач @ Примерна Компанија","Full-time parent":"Родител","Head of Marketing at Acme, Inc":"Раководител на Маркетинг во Примерна Компанија","Hidden for members":"",Hide:"Скријте","Hide comment":"Скријте го коментарот","Jamie Larson":"Петар Петровски","Join the discussion":"Приклучете се во разговорот","Just now":"Штотуку","Load more ({amount})":"","Local resident":"Локал жител","Member discussion":"Разговор на членовите",Name:"Име",Neurosurgeon:"Неврохирург",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Пред еден час","One min ago":"",removed:"","Replied to":"",Reply:"Одговорете","Reply to":"","Reply to comment":"Одговор на коментарот",Report:"Пријавете","Report comment":"Пријавете коментар","Report this comment?":"Пријавете го овој коментар?",Save:"Зачувајте",Sending:"Се испраќа",Sent:"Испратено",Show:"Покажи","Show {amount} more replies":"Покажи уште {amount} одговори","Show 1 more reply":"Покажи уште 1 одговор","Show comment":"Покажи коментар","Sign in":"Најавете се","Sign up now":"Регистрирајте се","Sort by":"","Start the conversation":"Започнете го разговорот","The linked comment is no longer available.":"","This comment has been hidden.":"Овој коментар беше скриен.","This comment has been removed.":"Овој коментар беше отстранет.","Upgrade now":"Надградете","View in admin":"",Yesterday:"Вчера","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Вашето барање ќе биде испратено на сопственикот на оваа страница."},lD={"{amount} characters left":"{amount} тэмдэгт үлдсэн","{amount} comments":"{amount} сэтгэгдэл","{amount} hrs ago":"{amount} цагийн өмнө","{amount} mins ago":"{amount} минутын өмнө","{amount} more":"{amount} илүү","1 comment":"1 сэтгэгдэл","Add comment":"Сэтгэгдэл нэмэх","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Сэтгэгдэлдээ илүү мэдээлэл оруулан, нэр болон мэргэжлээ хуваалцаж, үр бүтээлтэй хэлэлцүүлэг өрнүүлнэ үү.","Add reply":"Хариу нэмэх","Add your expertise":"","Already a member?":"Бүртгэлтэй юу?",Anonymous:"Нууц","Are you sure?":"Та итгэлтэй байна уу?","Become a member of {publication} to start commenting.":"Сэтгэгдэл бичихийн тулд {publication}-н гишүүн болно уу.","Become a paid member of {publication} to start commenting.":"Сэтгэгдэл бичихийн тулд {publication}-н төлбөртэй гишүүн болно уу.",Best:"",Cancel:"Цуцлах",Comment:"Сэтгэгдэл","Commenting disabled":"","Complete your profile":"Профайлаа бүрэн бөглөнө үү",Delete:"Устгах",Deleted:"Устгагдсан","Deleted member":"Устгагдсан гишүүн",Deleting:"Устгаж байна",Discussion:"Хэлэлцүүлэг",Edit:"Засах","Edit this comment":"Энэхүү сэтгэгдлийг засах",edited:"засагдсан","Enter your name":"Нэрээ оруулна уу",Expertise:"Мэргэжил","Founder @ Acme Inc":"Acme Inc-н үүсгэн байгуулагч","Full-time parent":"Бүтэн цагийн эцэг/эх","Head of Marketing at Acme, Inc":"Acme, Inc-н маркетингийн удирдлага","Hidden for members":"Гишүүдээс нуугдсан",Hide:"Нуух","Hide comment":"Сэтгэгдлийг нуух","Jamie Larson":"Доржийн Бат","Join the discussion":"Хэлэлцүүлэгт нэгдэх","Just now":"Дөнгөж сая","Load more ({amount})":"Дахин харах ({amount})","Local resident":"Орон нутгийн оршин суугч","Member discussion":"Гишүүдийн хэлэлцүүлэг",Name:"Нэр",Neurosurgeon:"Мэдрэлийн мэс засалч",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Устгасны дараа энэ сэтгэгдлийг сэргээх боломжгүй.","One hour ago":"Нэг цагийн өмнө","One min ago":"Нэг минутын өмнө",removed:"хасагдсан","Replied to":"Хариулсан",Reply:"Хариулах","Reply to":"Хариулах","Reply to comment":"Сэтгэгдэлд хариулах",Report:"Мэдэгдэх","Report comment":"Сэтгэгдлийг мэдэгдэх","Report this comment?":"Энэ сэтгэгдлийг мэдэгдэх үү?",Save:"Хадгалах",Sending:"Илгээж байна",Sent:"Илгээгдсэн",Show:"Харуулах","Show {amount} more replies":"{amount} хариултыг харуулах","Show 1 more reply":"1 хариултыг харуулах","Show comment":"Сэтгэгдлийг харуулах","Sign in":"Нэвтрэх","Sign up now":"Одоо бүртгүүлэх","Sort by":"Эрэмбэлэх","Start the conversation":"Яриаг эхлүүлэх","The linked comment is no longer available.":"","This comment has been hidden.":"Энэ сэтгэгдэл нуугдсан.","This comment has been removed.":"Энэ сэтгэгдэл хасагдсан.","Upgrade now":"Одоо шинэчлэх","View in admin":"",Yesterday:"Өчигдөр","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Таны хүсэлт энэ сайтын эзэмшигч рүү илгээгдэнэ."},cD={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":""},uD={"{amount} characters left":"{amount} tegn igjen","{amount} comments":"{amount} kommentarer","{amount} hrs ago":"{amount} timer siden","{amount} mins ago":"{amount} minutter siden","{amount} more":"{amount} mer","1 comment":"1 kommentar","Add comment":"Legg til kommentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Legg til kontekst i kommentaren din, del navnet ditt og ekspertisen din for å fremme en god diskusjon.","Add reply":"Legg til svar","Add your expertise":"","Already a member?":"Allerede medlem?",Anonymous:"Anonym","Are you sure?":"Er du sikker?","Become a member of {publication} to start commenting.":"Bli medlem av {publication} for å begynne å kommentere.","Become a paid member of {publication} to start commenting.":"Bli et betalende medlem av {publication} for å begynne å kommentere.",Best:"",Cancel:"Avbryt",Comment:"Kommentar","Commenting disabled":"","Complete your profile":"Fullfør profilen din",Delete:"Slett",Deleted:"Slettet","Deleted member":"Slettet medlem",Deleting:"Sletter",Discussion:"Diskusjon",Edit:"Rediger","Edit this comment":"Rediger denne kommentaren",edited:"redigert","Enter your name":"Skriv inn navnet ditt",Expertise:"Ekspertise","Founder @ Acme Inc":"Grunnlegger @ Acme Inc","Full-time parent":"Forelder på heltid","Head of Marketing at Acme, Inc":"Markedsføringsleder hos Acme Inc","Hidden for members":"Skjult for medlemmer",Hide:"Skjul","Hide comment":"Skjul kommentar","Jamie Larson":"Jamie Larson","Join the discussion":"Delta i diskusjonen","Just now":"Akkurat nå","Load more ({amount})":"Last inn flere ({amount})","Local resident":"Lokal innbygger","Member discussion":"Medlemsdiskusjon",Name:"Navn",Neurosurgeon:"Nevrokirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"En time siden","One min ago":"Ett minutt siden",removed:"fjernet","Replied to":"Svarte",Reply:"Svar","Reply to":"Svar på","Reply to comment":"Svar på kommentar",Report:"Rapporter","Report comment":"Rapporter kommentar","Report this comment?":"Rapportere denne kommentaren?",Save:"Lagre",Sending:"Sender",Sent:"Sendt",Show:"Vis","Show {amount} more replies":"Vis {amount} flere svar","Show 1 more reply":"Vis ett svar til","Show comment":"Vis kommentar","Sign in":"Logg inn","Sign up now":"Registrer deg nå","Sort by":"Sorter etter","Start the conversation":"Start samtalen","The linked comment is no longer available.":"","This comment has been hidden.":"Denne kommentaren er skjult.","This comment has been removed.":"Denne kommentaren er fjernet.","Upgrade now":"Oppgrader nå","View in admin":"",Yesterday:"I går","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Din forespørsel vil bli sendt til eieren av dette nettstedet."},dD={"{amount} characters left":"{amount} अक्षर बाँकी","{amount} comments":"{amount} प्रतिक्रियाहरू","{amount} hrs ago":"{amount} घण्टा अघि","{amount} mins ago":"{amount} मिनेट अघि","{amount} more":"{amount} थप","1 comment":"१ प्रतिक्रिया","Add comment":"प्रतिक्रिया थप्नुहोस्","Add context to your comment, share your name and expertise to foster a healthy discussion.":"आफ्नो प्रतिक्रियालाई सन्दर्भ दिनुहोस्, स्वस्थ छलफलको लागि आफ्नो नाम र विशेषज्ञता साझा गर्नुहोस्।","Add reply":"प्रत्युत्तर थप्नुहोस्","Add your expertise":"आफ्नो विशेषज्ञता थप्नुहोस्","Already a member?":"पहिले नै सदस्य हुनुहुन्छ?",Anonymous:"अज्ञात","Are you sure?":"के तपाईं निश्चित हुनुहुन्छ?","Become a member of {publication} to start commenting.":"प्रतिक्रिया सुरु गर्न {publication} को सदस्य बन्नुहोस्।","Become a paid member of {publication} to start commenting.":"प्रतिक्रिया सुरु गर्न {publication} को सशुल्क सदस्य बन्नुहोस्।",Best:"उत्तम",Cancel:"रद्द गर्नुहोस्",Comment:"प्रतिक्रिया","Commenting disabled":"","Complete your profile":"आफ्नो प्रोफाइल पूरा गर्नुहोस्",Delete:"मेटाउनुहोस्",Deleted:"मेटाइयो","Deleted member":"मेटाइएको सदस्य",Deleting:"मेटाइँदैछ",Discussion:"छलफल",Edit:"सम्पादन","Edit this comment":"यो प्रतिक्रिया सम्पादन गर्नुहोस्",edited:"सम्पादित","Enter your name":"आफ्नो नाम प्रविष्ट गर्नुहोस्",Expertise:"विशेषज्ञता","Founder @ Acme Inc":"संस्थापक @ Acme Inc","Full-time parent":"पूर्ण-कालीन अभिभावक","Head of Marketing at Acme, Inc":"Acme, Inc मा मार्केटिङ प्रमुख","Hidden for members":"सदस्यहरूका लागि लुकाइएको",Hide:"लुकाउनुहोस्","Hide comment":"प्रतिक्रिया लुकाउनुहोस्","Jamie Larson":"जेमी लार्सन","Join the discussion":"छलफलमा सामेल हुनुहोस्","Just now":"भर्खरै","Load more ({amount})":"थप लोड गर्नुहोस् ({amount})","Local resident":"स्थानीय बासिन्दा","Member discussion":"सदस्य छलफल",Name:"नाम",Neurosurgeon:"न्यूरोसर्जन",Newest:"सबैभन्दा नयाँ",Oldest:"सबैभन्दा पुरानो","Once deleted, this comment can’t be recovered.":"एक पटक मेटाइएपछि, यो प्रतिक्रिया पुन: प्राप्त गर्न सकिँदैन।","One hour ago":"एक घण्टा अघि","One min ago":"एक मिनेट अघि",removed:"हटाइयो","Replied to":"प्रत्युत्तर दिइयो",Reply:"प्रत्युत्तर दिनुहोस्","Reply to":"प्रत्युत्तर दिनुहोस्","Reply to comment":"प्रतिक्रियाको प्रत्युत्तर दिनुहोस्",Report:"रिपोर्ट गर्नुहोस्","Report comment":"प्रतिक्रिया रिपोर्ट गर्नुहोस्","Report this comment?":"यो प्रतिक्रिया रिपोर्ट गर्नुहुन्छ?",Save:"बचत गर्नुहोस्",Sending:"पठाइँदैछ",Sent:"पठाइयो",Show:"देखाउनुहोस्","Show {amount} more replies":"थप {amount} प्रत्युत्तरहरू देखाउनुहोस्","Show 1 more reply":"थप १ प्रत्युत्तर देखाउनुहोस्","Show comment":"प्रतिक्रिया देखाउनुहोस्","Sign in":"साइन इन गर्नुहोस्","Sign up now":"अहिले दर्ता गर्नुहोस्","Sort by":"क्रमबद्ध गर्नुहोस्","Start the conversation":"कुराकानी सुरु गर्नुहोस्","The linked comment is no longer available.":"","This comment has been hidden.":"यो प्रतिक्रिया लुकाइएको छ।","This comment has been removed.":"यो प्रतिक्रिया हटाइएको छ।","Upgrade now":"अहिले अपग्रेड गर्नुहोस्","View in admin":"",Yesterday:"हिजो","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"तपाईंको अनुरोध यस साइटको मालिकलाई पठाइनेछ।"},mD={"{amount} characters left":"Nog {amount} tekens over","{amount} comments":"{amount} reacties","{amount} hrs ago":"{amount} uur geleden","{amount} mins ago":"{amount} min geleden","{amount} more":"Nog {amount}","1 comment":"Eén reactie","Add comment":"Versturen","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Voeg context toe aan je reactie, deel je naam en expertise om een gezonde discussie te bevorderen.","Add reply":"Beantwoorden","Add your expertise":"","Already a member?":"Al lid?",Anonymous:"Anoniem","Are you sure?":"Weet je het zeker?","Become a member of {publication} to start commenting.":"Word lid van {publication} om te kunnen reageren.","Become a paid member of {publication} to start commenting.":"Word betalend lid van {publication} om te kunnen reageren.",Best:"",Cancel:"Annuleren",Comment:"Verstuur","Commenting disabled":"","Complete your profile":"Vervolledig jouw profiel",Delete:"Verwijderen",Deleted:"Verwijderd","Deleted member":"Verwijderd lid",Deleting:"Wordt verwijderd",Discussion:"Gesprek",Edit:"Bewerken","Edit this comment":"Bewerk deze reactie",edited:"bewerkt","Enter your name":"Vul je naam in",Expertise:"Expertise","Founder @ Acme Inc":"Oprichter, Acme BV","Full-time parent":"Full-time ouder","Head of Marketing at Acme, Inc":"Acme BV, Hoofd Marketing","Hidden for members":"Verborgen voor leden",Hide:"Verbergen","Hide comment":"Verberg reactie","Jamie Larson":"Jan Jansen","Join the discussion":"Doe mee aan het gesprek","Just now":"Zojuist","Load more ({amount})":"Laad meer ({amount})","Local resident":"Lokale bewoner","Member discussion":"Gesprek",Name:"Naam",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Eenmaal verwijderd, kan deze reactie niet meer worden hersteld.","One hour ago":"Eén uur geleden","One min ago":"Eén min geleden",removed:"verwijderd","Replied to":"Geantwoord op",Reply:"Beantwoorden","Reply to":"Antwoord op","Reply to comment":"Beantwoord deze reactie",Report:"Melden","Report comment":"Meld reactie","Report this comment?":"Meld deze reactie?",Save:"Opslaan",Sending:"Verzenden",Sent:"Verzonden",Show:"Tonen","Show {amount} more replies":"Toon {amount} extra antwoorden","Show 1 more reply":"Toon nog 1 antwoord","Show comment":"Toon reactie","Sign in":"Inloggen","Sign up now":"Registreren","Sort by":"Sorteren op","Start the conversation":"Begin het gesprek","The linked comment is no longer available.":"","This comment has been hidden.":"Deze reactie is verborgen.","This comment has been removed.":"Deze reactie is verwijderd.","Upgrade now":"Upgrade nu","View in admin":"",Yesterday:"Gisteren","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Jouw melding zal worden verzonden naar de eigenaar van deze site."},fD={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":""},pD={"{amount} characters left":"{amount} ਅੱਖਰ ਬਾਕੀ","{amount} comments":"{amount} ਟਿੱਪਣੀਆਂ","{amount} hrs ago":"{amount} ਘੰਟੇ ਪਹਿਲਾਂ","{amount} mins ago":"{amount} ਮਿੰਟ ਪਹਿਲਾਂ","{amount} more":"{amount} ਹੋਰ","1 comment":"1 ਟਿੱਪਣੀ","Add comment":"ਟਿੱਪਣੀ ਸ਼ਾਮਲ ਕਰੋ","Add context to your comment, share your name and expertise to foster a healthy discussion.":"ਆਪਣੀ ਟਿੱਪਣੀ ਵਿੱਚ ਸੰਦਰਭ ਸ਼ਾਮਲ ਕਰੋ, ਸਿਹਤਮੰਦ ਵਿਚਾਰ-ਵਟਾਂਦਰੇ ਨੂੰ ਉਤਸ਼ਾਹਿਤ ਕਰਨ ਲਈ ਆਪਣਾ ਨਾਮ ਅਤੇ ਮੁਹਾਰਤ ਸਾਂਝੀ ਕਰੋ।","Add reply":"ਜਵਾਬ ਸ਼ਾਮਲ ਕਰੋ","Add your expertise":"ਆਪਣੀ ਮੁਹਾਰਤ ਸ਼ਾਮਲ ਕਰੋ","Already a member?":"ਪਹਿਲਾਂ ਤੋਂ ਹੀ ਮੈਂਬਰ ਹੋ?",Anonymous:"ਗੁਮਨਾਮ","Are you sure?":"ਕੀ ਤੁਹਾਨੂੰ ਯਕੀਨ ਹੈ?","Become a member of {publication} to start commenting.":"{publication} ਦੇ ਮੈਂਬਰ ਬਣੋ ਅਤੇ ਟਿੱਪਣੀ ਕਰਨਾ ਸ਼ੁਰੂ ਕਰੋ।","Become a paid member of {publication} to start commenting.":"{publication} ਦੇ ਸਹਿਯੋਗੀ ਮੈਂਬਰ ਬਣੋ ਅਤੇ ਟਿੱਪਣੀ ਕਰਨਾ ਸ਼ੁਰੂ ਕਰੋ।",Best:"ਸਭ ਤੋਂ ਵਧੀਆ",Cancel:"ਰੱਦ ਕਰੋ",Comment:"ਟਿੱਪਣੀ","Commenting disabled":"","Complete your profile":"ਆਪਣਾ ਨਿੱਜੀ ਪੰਨਾ ਪੂਰਾ ਕਰੋ",Delete:"ਮਿਟਾਓ",Deleted:"ਮਿਟਾਇਆ ਗਿਆ","Deleted member":"ਮਿਟਾਇਆ ਗਿਆ ਮੈਂਬਰ",Deleting:"ਮਿਟਾਇਆ ਜਾ ਰਿਹਾ ਹੈ",Discussion:"ਵਿਚਾਰ-ਵਟਾਂਦਰਾ",Edit:"ਸੰਪਾਦਿਤ ਕਰੋ","Edit this comment":"ਇਸ ਟਿੱਪਣੀ ਨੂੰ ਸੰਪਾਦਿਤ ਕਰੋ",edited:"ਸੰਪਾਦਿਤ","Enter your name":"ਆਪਣਾ ਨਾਮ ਦਰਜ ਕਰੋ",Expertise:"ਮੁਹਾਰਤ","Founder @ Acme Inc":"ਸੰਸਥਾਪਕ @ ਫਲਾਣੀ ਕੰਪਨੀ","Full-time parent":"ਘਰੇਲੂ ਮਾਪਾ","Head of Marketing at Acme, Inc":"ਮਾਰਕੀਟਿੰਗ ਮੁਖੀ, ਫਲਾਣੀ ਕੰਪਨੀ ਵਿਖੇ","Hidden for members":"ਮੈਂਬਰਾਂ ਲਈ ਛੁਪਾਇਆ ਗਿਆ",Hide:"ਛੁਪਾਓ","Hide comment":"ਟਿੱਪਣੀ ਛੁਪਾਓ","Jamie Larson":"ਫਲਾਣਾ ਫਲਾਣੀ","Join the discussion":"ਵਿਚਾਰ-ਵਟਾਂਦਰੇ ਵਿੱਚ ਸ਼ਾਮਲ ਹੋਵੋ","Just now":"ਹੁਣੇ ਹੁਣੇ","Load more ({amount})":"ਹੋਰ ਲੋਡ ਕਰੋ ({amount})","Local resident":"ਸਥਾਨਕ ਨਿਵਾਸੀ","Member discussion":"ਮੈਂਬਰ ਵਿਚਾਰ-ਵਟਾਂਦਰਾ",Name:"ਨਾਮ",Neurosurgeon:"ਨਿਊਰੋਸਰਜਨ",Newest:"ਸਭ ਤੋਂ ਨਵਾਂ",Oldest:"ਸਭ ਤੋਂ ਪੁਰਾਣਾ","Once deleted, this comment can’t be recovered.":"ਇੱਕ ਵਾਰ ਮਿਟਾਉਣ ਤੋਂ ਬਾਅਦ, ਇਹ ਟਿੱਪਣੀ ਮੁੜ ਪ੍ਰਾਪਤ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕਦੀ।","One hour ago":"ਇੱਕ ਘੰਟਾ ਪਹਿਲਾਂ","One min ago":"ਇੱਕ ਮਿੰਟ ਪਹਿਲਾਂ",removed:"ਹਟਾਇਆ ਗਿਆ","Replied to":"ਨੂੰ ਜਵਾਬ ਦਿੱਤਾ",Reply:"ਜਵਾਬ","Reply to":"ਨੂੰ ਜਵਾਬ ਦਿਓ","Reply to comment":"ਟਿੱਪਣੀ ਦਾ ਜਵਾਬ ਦਿਓ",Report:"ਰਿਪੋਰਟ ਕਰੋ","Report comment":"ਟਿੱਪਣੀ ਦੀ ਰਿਪੋਰਟ ਕਰੋ","Report this comment?":"ਕੀ ਇਸ ਟਿੱਪਣੀ ਦੀ ਰਿਪੋਰਟ ਕਰਨੀ ਹੈ?",Save:"ਸੁਰੱਖਿਅਤ ਕਰੋ",Sending:"ਭੇਜਿਆ ਜਾ ਰਿਹਾ ਹੈ",Sent:"ਭੇਜ ਦਿੱਤਾ ਗਿਆ",Show:"ਦਿਖਾਓ","Show {amount} more replies":"{amount} ਹੋਰ ਜਵਾਬ ਦਿਖਾਓ","Show 1 more reply":"1 ਹੋਰ ਜਵਾਬ ਦਿਖਾਓ","Show comment":"ਟਿੱਪਣੀ ਦਿਖਾਓ","Sign in":"ਸਾਈਨ ਇਨ ਕਰੋ","Sign up now":"ਹੁਣੇ ਸਾਈਨ ਅੱਪ ਕਰੋ","Sort by":"ਇਸ ਅਨੁਸਾਰ ਕ੍ਰਮਬੱਧ ਕਰੋ","Start the conversation":"ਗੱਲਬਾਤ ਸ਼ੁਰੂ ਕਰੋ","The linked comment is no longer available.":"","This comment has been hidden.":"ਇਹ ਟਿੱਪਣੀ ਛੁਪਾ ਦਿੱਤੀ ਗਈ ਹੈ।","This comment has been removed.":"ਇਹ ਟਿੱਪਣੀ ਹਟਾ ਦਿੱਤੀ ਗਈ ਹੈ।","Upgrade now":"ਹੁਣੇ ਅੱਪਗਰੇਡ ਕਰੋ","View in admin":"",Yesterday:"ਕੱਲ੍ਹ","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"ਤੁਹਾਡੀ ਬੇਨਤੀ ਇਸ ਸਾਈਟ ਦੇ ਸੰਚਾਲਕ ਨੂੰ ਭੇਜੀ ਜਾਵੇਗੀ।"},hD={"{amount} characters left":"Pozostało {amount} znaków","{amount} comments":"{amount} komentarzy","{amount} hrs ago":"{amount} godzin temu","{amount} mins ago":"{amount} minut temu","{amount} more":"{amount} więcej","1 comment":"1 komentarz","Add comment":"Dodaj komentarz","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dodaj więcej informacji do Twojego komentarza, następnie udostępnij proszę Twoje imię i doświadczenie w celu wzbogacenia jakości dyskusji.","Add reply":"Dodaj odpowiedź","Add your expertise":"","Already a member?":"Posiadasz już konto?",Anonymous:"Anonimowy","Are you sure?":"Czy jesteś pewien?","Become a member of {publication} to start commenting.":"Dołącz do społeczności {publication}, by zacząć komentować.","Become a paid member of {publication} to start commenting.":"Dołącz do społeczności płatnych subskrybentów {publication}, by zacząć komentować.",Best:"",Cancel:"Anuluj",Comment:"Skomentuj","Commenting disabled":"","Complete your profile":"Skompletuj Twój profil",Delete:"Usuń",Deleted:"Usunięto","Deleted member":"Usunięte konto",Deleting:"Usuwanie",Discussion:"Dyskusja",Edit:"Edytuj","Edit this comment":"Edytuj komentarz",edited:"edytowano","Enter your name":"Podaj Twoje imię",Expertise:"Doświadczenie","Founder @ Acme Inc":"Founder @ Acme Inc","Full-time parent":"Pełnoetatowy rodzic","Head of Marketing at Acme, Inc":"Head of Marketing at Acme, Inc","Hidden for members":"Ukryte dla członków",Hide:"Ukryj","Hide comment":"Ukryj komentarz","Jamie Larson":"Jamie Larson","Join the discussion":"Dołącz do dyskusji","Just now":"Przed chwilą","Load more ({amount})":"Załaduj więcej ({amount})","Local resident":"Lokalny rezydent","Member discussion":"Członek dyskusji",Name:"Imię",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Po usunięciu, nie będzie możliwe przywrócenie tego komentarza","One hour ago":"Godzinę temu","One min ago":"Minutę temu",removed:"usunięte","Replied to":"Odpowiedź na",Reply:"Odpowiedz","Reply to":"Odpowiedz na","Reply to comment":"Napisz odpowiedź do komentarza",Report:"Zgłoś","Report comment":"Zgłoś komentarz","Report this comment?":"Czy chcesz zgłosić ten komentarz?",Save:"Zapisz",Sending:"Wysyłanie",Sent:"Wysłano",Show:"Pokaż","Show {amount} more replies":"Pokaż {amount} kolejnych odpowiedzi","Show 1 more reply":"Pokaż następną odpowiedź","Show comment":"Pokaż komentarz","Sign in":"Zaloguj się","Sign up now":"Zarejestruj się","Sort by":"Sortuj według","Start the conversation":"Rozpocznij dyskusję","The linked comment is no longer available.":"","This comment has been hidden.":"Komentarz został ukryty.","This comment has been removed.":"Komentarz został usunięty.","Upgrade now":"Ulepsz teraz","View in admin":"",Yesterday:"Wczoraj","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Twoje zgłoszenie zostało przesłane do administratora strony."},gD={"{amount} characters left":"Faltam {amount} caracteres ","{amount} comments":"{amount} comentários","{amount} hrs ago":"{amount} horas atrás","{amount} mins ago":"{amount} minutos atrás","{amount} more":"mais","1 comment":"Um comentário","Add comment":"Adicionar comentário","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Adicione o seu comentário, partilhe o seu nome e expriência de modo a promover uma discussão saudável.","Add reply":"Adicionar resposta","Add your expertise":"","Already a member?":"Já é membro?",Anonymous:"Anónimo","Are you sure?":"Tem a certeza?","Become a member of {publication} to start commenting.":"Torne-se um membro do {publication} para comentar.","Become a paid member of {publication} to start commenting.":"Torne-se um membro pago do {publication} para comentar. ",Best:"Melhores",Cancel:"Cancelar",Comment:"Comentar","Commenting disabled":"","Complete your profile":"Complete o seu perfil",Delete:"Eliminar",Deleted:"Eliminado","Deleted member":"Membro eliminado",Deleting:"Eliminando",Discussion:"Discussão",Edit:"Editar","Edit this comment":"Editar este comentário",edited:"editado","Enter your name":"Insira o seu nome",Expertise:"Perícia","Founder @ Acme Inc":"Fundador @ Amce Inc","Full-time parent":"Pai a tempo inteiro","Head of Marketing at Acme, Inc":"Responsável do Marketing @ Amce, Inc","Hidden for members":"Oculto para membros",Hide:"Esconder","Hide comment":"Esconder comentário","Jamie Larson":"Jane Doe","Join the discussion":"Junte-se à discussão","Just now":"Agora","Load more ({amount})":"","Local resident":"Residente local","Member discussion":"Discussão para membros",Name:"Nome",Neurosurgeon:"neurocirurgião",Newest:"Mais recentes",Oldest:"Mais antigos","Once deleted, this comment can’t be recovered.":"","One hour ago":"uma hora atrás","One min ago":"um minuto atrás",removed:"removido","Replied to":"Respondeu a",Reply:"Responder","Reply to":"Responder a","Reply to comment":"Responder ao comentário",Report:"Reportar","Report comment":"Reportar comentário","Report this comment?":"Reportar este comentário?",Save:"Guardar",Sending:"Enviar",Sent:"Enviado",Show:"Mostrar","Show {amount} more replies":"Mostrar mais {amount} respostas","Show 1 more reply":"Mostrar mais uma resposta","Show comment":"Mostrar comentário","Sign in":"Registar","Sign up now":"Registar agora","Sort by":"Organizar por","Start the conversation":"Comece a conversa","The linked comment is no longer available.":"","This comment has been hidden.":"Este comentário foi ocultado","This comment has been removed.":"Este comentário foi removido","Upgrade now":"Atualize agora","View in admin":"",Yesterday:"Ontem","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"O seu pedido será enviado para o dono deste site."},yD={"{amount} characters left":"{amount} caracteres restantes","{amount} comments":"{amount} comentários","{amount} hrs ago":"{amount} horas atrás","{amount} mins ago":"{amount} minutos atrás","{amount} more":"{amount} mais","1 comment":"1 comentário","Add comment":"Adicionar comentário","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Adicione contexto ao seu comentário, compartilhe seu nome e sua especialidade para promover uma discussão saudável.","Add reply":"Adicionar resposta","Add your expertise":"Adicione sua especialidade","Already a member?":"Já é um membro?",Anonymous:"Anônimo","Are you sure?":"Você tem certeza?","Become a member of {publication} to start commenting.":"Torne-se um membro de {publication} para começar a comentar.","Become a paid member of {publication} to start commenting.":"Torne-se um membro pago de {publication} para começar a comentar.",Best:"Melhores",Cancel:"Cancelar",Comment:"Comentar","Commenting disabled":"","Complete your profile":"Complete seu perfil",Delete:"Excluir",Deleted:"Excluído","Deleted member":"Membro excluído",Deleting:"Excluindo",Discussion:"Discussão",Edit:"Editar","Edit this comment":"Editar este comentário",edited:"editado","Enter your name":"Digite seu nome",Expertise:"Especialidade","Founder @ Acme Inc":"Fundador @ Acme Inc","Full-time parent":"Pai/Mãe em tempo integral","Head of Marketing at Acme, Inc":"Chefe de Marketing na Acme, Inc","Hidden for members":"Oculto para membros",Hide:"Ocultar","Hide comment":"Ocultar comentário","Jamie Larson":"Cris Silva","Join the discussion":"Participe da discussão","Just now":"Agora mesmo","Load more ({amount})":"Carregar mais ({amount})","Local resident":"Residente local","Member discussion":"Discussão entre membros",Name:"Nome",Neurosurgeon:"Neurocirurgião",Newest:"Mais Recentes",Oldest:"Mais Antigos","Once deleted, this comment can’t be recovered.":"Após ser excluído, esse comentário não poderá ser recuperado.","One hour ago":"Uma hora atrás","One min ago":"Um minuto atrás",removed:"removido","Replied to":"Respondeu a",Reply:"Responder","Reply to":"Responder a","Reply to comment":"Responder ao comentário",Report:"Denunciar","Report comment":"Denunciar comentário","Report this comment?":"Denunciar este comentário?",Save:"Salvar",Sending:"Enviando",Sent:"Enviado",Show:"Exibir","Show {amount} more replies":"Exibir mais {amount} respostas","Show 1 more reply":"Exibir 1 resposta adicional","Show comment":"Exibir comentário","Sign in":"Entrar","Sign up now":"Inscreva-se agora","Sort by":"Ordenar por","Start the conversation":"Iniciar a conversa","The linked comment is no longer available.":"","This comment has been hidden.":"Este comentário foi ocultado.","This comment has been removed.":"Este comentário foi removido.","Upgrade now":"Atualize agora","View in admin":"",Yesterday:"Ontem","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Sua solicitação será enviada ao proprietário deste site."},bD={"{amount} characters left":"{amount} caractere rămase","{amount} comments":"{amount} comentarii","{amount} hrs ago":"acum {amount} ore","{amount} mins ago":"acum {amount} minute","{amount} more":"încă {amount}","1 comment":"1 comentariu","Add comment":"Adaugă comentariu","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Adăugați context comentariului dumneavoastră, împărtășiți-vă numele și expertiza pentru a favoriza o discuție sănătoasă.","Add reply":"Adaugă răspuns","Add your expertise":"","Already a member?":"Deja membru?",Anonymous:"Anonim","Are you sure?":"","Become a member of {publication} to start commenting.":"Deveniți membru al {publication} pentru a începe să comentați.","Become a paid member of {publication} to start commenting.":"Deveniți membru plătit al {publication} pentru a începe să comentați.",Best:"",Cancel:"Anulează",Comment:"Comentează","Commenting disabled":"","Complete your profile":"Completează-ți profilul",Delete:"Șterge",Deleted:"","Deleted member":"Membru șters",Deleting:"",Discussion:"Discuție",Edit:"Editează","Edit this comment":"Editează acest comentariu",edited:"editat","Enter your name":"Introduceți numele dumneavoastră",Expertise:"Expertiză","Founder @ Acme Inc":"Fondator @ Acme Inc","Full-time parent":"Părinte cu normă întreagă","Head of Marketing at Acme, Inc":"Șef de Marketing la Acme, Inc","Hidden for members":"",Hide:"Ascunde","Hide comment":"Ascunde comentariul","Jamie Larson":"Jamie Larson","Join the discussion":"Alătură-te discuției","Just now":"Chiar acum","Load more ({amount})":"","Local resident":"Rezident local","Member discussion":"Discuție membrii",Name:"Nume",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Acum o oră","One min ago":"Acum un minut",removed:"","Replied to":"",Reply:"Răspunde","Reply to":"","Reply to comment":"Răspunde la comentariu",Report:"Raportează","Report comment":"Raportează comentariul","Report this comment?":"Raportezi acest comentariu?",Save:"Salvează",Sending:"Se trimite",Sent:"Trimis",Show:"Arată","Show {amount} more replies":"Arată încă {amount} răspunsuri","Show 1 more reply":"Arată încă un răspuns","Show comment":"Arată comentariul","Sign in":"Autentificare","Sign up now":"Înregistrează-te acum","Sort by":"Ordonează după","Start the conversation":"Începe conversația","The linked comment is no longer available.":"","This comment has been hidden.":"Acest comentariu a fost ascuns.","This comment has been removed.":"Acest comentariu a fost eliminat.","Upgrade now":"Actualizează acum","View in admin":"",Yesterday:"Ieri","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Cererea dumneavoastră va fi trimisă proprietarului acestui site."},wD={"{amount} characters left":"{amount} символа(ов) осталось","{amount} comments":"{amount} комментария(ев)","{amount} hrs ago":"{amount} ч. назад","{amount} mins ago":"{amount} мин. назад","{amount} more":"ещё {amount}","1 comment":"1 комментарий","Add comment":"Добавить комментарий","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Дополните свой комментарий контекстом, добавив подробности о себе и своём опыте, чтобы обсуждение стало более интересным.","Add reply":"Добавить ответ","Add your expertise":"Добавить свой опыт","Already a member?":"Уже присоединились?",Anonymous:"Анонимный","Are you sure?":"Вы уверены?","Become a member of {publication} to start commenting.":"Присоединяйтесь к {publication} чтобы начать комментировать.","Become a paid member of {publication} to start commenting.":"Станьте платным участником {publication} чтобы начать комментировать.",Best:"Лучший",Cancel:"Отмена",Comment:"Комментарий","Commenting disabled":"","Complete your profile":"Заполните свой профиль",Delete:"Удалить",Deleted:"Удалено","Deleted member":"Удалённый участник",Deleting:"Удаление",Discussion:"Обсуждение",Edit:"Редактировать","Edit this comment":"Редактировать этот комментарий",edited:"Отредактированно","Enter your name":"Введите ваше имя",Expertise:"Деятельность","Founder @ Acme Inc":"Основатель @ Корпорация «Акме»","Full-time parent":"Родитель, работающий полный рабочий день","Head of Marketing at Acme, Inc":"Руководитель отдела маркетинга в Корпорации «Акме»","Hidden for members":"Скрыто для участников",Hide:"Скрыть","Hide comment":"Скрыть комментарий","Jamie Larson":"Павел Бид","Join the discussion":"Присоединиться к обсуждению","Just now":"Сейчас","Load more ({amount})":"Загрузить ещё ({amount})","Local resident":"Местный житель","Member discussion":"Обсуждение участников",Name:"Имя",Neurosurgeon:"Нейрохирург",Newest:"Сначала новые",Oldest:"Сначала старые","Once deleted, this comment can’t be recovered.":"После удаления этот комментарий не может быть восстановлен.","One hour ago":"Час назад","One min ago":"Минуту назад",removed:"удалён","Replied to":"Ответ на",Reply:"Ответить","Reply to":"Ответить на","Reply to comment":"Ответить на комментарий",Report:"Пожаловаться","Report comment":"Пожаловаться на комментарий","Report this comment?":"Пожаловаться на этот комментарий?",Save:"Сохранить",Sending:"Отправка",Sent:"Отправлено",Show:"Показать","Show {amount} more replies":"Показать ещё {amount} ответа(ов)","Show 1 more reply":"Показать ответ","Show comment":"Показать комментарий","Sign in":"Войти","Sign up now":"Зарегистрироваться","Sort by":"Сортировать по","Start the conversation":"Начать обсуждение","The linked comment is no longer available.":"","This comment has been hidden.":"Этот комментарий скрыт","This comment has been removed.":"Этот комментарий был удалён","Upgrade now":"Улучшить подписку","View in admin":"",Yesterday:"Вчера","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Ваш запрос будет отправлен владельцу сайта."},vD={"{amount} characters left":"තව වචන {amount} යි.","{amount} comments":"අදහ​ස් {amount} යි.","{amount} hrs ago":"පැය {amount} ට පෙ​ර","{amount} mins ago":"මිනිත්තු {amount} ට පෙ​ර","{amount} more":"","1 comment":"1 අදහසයි.","Add comment":"අදහස් එකතු කරන්​න","Add context to your comment, share your name and expertise to foster a healthy discussion.":"ඉතා හො​ඳ සාකච්ඡාවක් රැගෙ​න යාම සඳහා ඔබේ අදහසට අන්තර්ගත​ය එක් කර ඔබේ නම සහ විශේෂඥතාව බෙදා ගන්න","Add reply":"ප්‍රතිචාර එකතු කරන්​න","Add your expertise":"","Already a member?":"දැනටමත් සාමාජිකයෙක්ද ?",Anonymous:"නිර්නාමික","Are you sure?":"","Become a member of {publication} to start commenting.":"අදහස් දැක්වීම ආරම්භ කිරීමට {publication} හි සාමාජිකයෙකු වන්න","Become a paid member of {publication} to start commenting.":"අදහස් දැක්වීම ආරම්භ කිරීමට {publication} හි ගෙවීම් කරන ල​ද සාමාජිකයෙකු වන්න",Best:"",Cancel:"අවලංගු කරන්​න​",Comment:"අදහ​ස","Commenting disabled":"","Complete your profile":"ඔබගේ ගිණුම සම්පූර්ණ කරන්​න",Delete:"Delete කරන්​න",Deleted:"","Deleted member":"සාමාජිකයාව delete කරන්​න",Deleting:"",Discussion:"සාකච්ඡා​ව",Edit:"සංස්කරණය කරන්න","Edit this comment":"අදහස සංස්කරණය කරන්න",edited:"සංස්කරණය කරන ලද.","Enter your name":"ඔබගේ නම සඳහන් කරන්​න",Expertise:"විශේෂඥතාව","Founder @ Acme Inc":"Acme Inc හි නිර්මාතෘ","Full-time parent":"පූර්ණ කාලීන භාරකරුව​න්","Head of Marketing at Acme, Inc":"Acme, Inc හි අලෙවි ප්‍රධානී","Hidden for members":"",Hide:"සඟවන්න","Hide comment":"අදහස සඟවන්න","Jamie Larson":"ජේමි ලාර්සන්","Join the discussion":"සාකච්ඡාවට එක්වන්න","Just now":"මේ දැ​න්","Load more ({amount})":"","Local resident":"දේශීය පදිංචි","Member discussion":"සාමාජික සාකච්ඡාව",Name:"න​ම",Neurosurgeon:"ස්නායු ශ​ල්‍ය වෛ​ද්‍ය",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"පැයකට පෙ​ර","One min ago":"මිනිත්තුවකට පෙ​ර",removed:"","Replied to":"",Reply:"ප්‍රතිචාර දක්වන්​න","Reply to":"","Reply to comment":"අදහසට ‍රතිචාර දක්වන්​න",Report:"වාර්තා කරන්​න","Report comment":"අදහසට වාර්තා කරන්​න","Report this comment?":"මෙම අදහසට වාර්තා කරන්නෙහිද ?",Save:"සුරකින්​න",Sending:"යවමි​න්",Sent:"යැව්වා",Show:"පෙන්වන්​න","Show {amount} more replies":"තවත් පිළිතුරු {amount} පෙන්වන්න","Show 1 more reply":"තවත් පිළිතුරු 1ක් පෙන්වන්න","Show comment":"අදහස පෙන්වන්න","Sign in":"Sign in වෙන්​න","Sign up now":"දැන්ම Sign up වෙන්​න","Sort by":"","Start the conversation":"සංවාදය ආරම්භ කරන්න","The linked comment is no longer available.":"","This comment has been hidden.":"මෙම අදහස සඟවා ඇත.","This comment has been removed.":"මෙම අදහස ඉවත් කර ඇත.","Upgrade now":"දැන් upgrade කරන්න","View in admin":"",Yesterday:"ඊ​යෙ","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"ඔබගේ ඉල්ලීම මෙම අඩවියේ හිමිකරු වෙත යවනු ලැබේ."},SD={"{amount} characters left":"Zostáva {amount} znakov","{amount} comments":"{amount} komentárov","{amount} hrs ago":"Pred {amount} hodinami","{amount} mins ago":"Pred {amount} minútami","{amount} more":"{amount} ďalších","1 comment":"1 komentár","Add comment":"Pridať komentár","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Pridajte kontext do vášho komentára, zdielajte svoje meno, a odbornosť pre podporu zdravej diskusie.","Add reply":"Pridať odpoveď","Add your expertise":"","Already a member?":"Už ste členom?",Anonymous:"Anonym","Are you sure?":"Ste si istý?","Become a member of {publication} to start commenting.":"Staňte sa členom {publication}, aby ste mohli začať komentovať","Become a paid member of {publication} to start commenting.":"Staňte sa plateným členom {publication}, aby ste mohli začať komentovať",Best:"",Cancel:"Zrušiť",Comment:"Komentár","Commenting disabled":"","Complete your profile":"Dokončite váš profil",Delete:"Vymazať",Deleted:"Vymazané","Deleted member":"Vymazaný člen",Deleting:"Vymazávam",Discussion:"Diskusia",Edit:"Upraviť","Edit this comment":"Upraviť komentár",edited:"upravený","Enter your name":"Zadajte vaše meno",Expertise:"Odbornosť","Founder @ Acme Inc":"Zakladateľ @ Acme Inc","Full-time parent":"Rodič na plný úväzok","Head of Marketing at Acme, Inc":"Vedúci marketingu v spoločnosti Acme, Inc","Hidden for members":"Skryté pre členov",Hide:"Skryť","Hide comment":"Skryť komentár","Jamie Larson":"Jamie Larson","Join the discussion":"Zapojiť sa do diskusie","Just now":"Teraz","Load more ({amount})":"","Local resident":"Miestny obyvateľ","Member discussion":"Členská diskusia",Name:"Meno",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Po odstránení nebude možné tento komentár obnoviť.","One hour ago":"Pred hodinou","One min ago":"Pred minútou",removed:"odstránené","Replied to":"Odpoveď na",Reply:"Odpovedať","Reply to":"Odpovedať na","Reply to comment":"Odpovedať na komentár",Report:"Nahlásiť","Report comment":"Nahlásiť komentár","Report this comment?":"Nahlásiť tento komentár?",Save:"Uložiť",Sending:"Odosielanie",Sent:"Odoslané",Show:"Zobraziť","Show {amount} more replies":"Zobraziť {amount} ďalších odpoveďí","Show 1 more reply":"Zobraziť 1 ďalšiu odpoveď","Show comment":"Zobraziť komentár","Sign in":"Prihlásiť","Sign up now":"Registrovať sa","Sort by":"Triediť podľa","Start the conversation":"Začať konverzáciu","The linked comment is no longer available.":"","This comment has been hidden.":"Tento komentár bol skrytý.","This comment has been removed.":"Tento komentár bol vymazaný.","Upgrade now":"Upraviť členstvo","View in admin":"",Yesterday:"Včera","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Vaša požiadavka bude odoslaná vlastníkovi stránky."},$D={"{amount} characters left":"Še {amount} znakov","{amount} comments":"{amount} komentarjev","{amount} hrs ago":"Pred {amount} urami","{amount} mins ago":"Pred {amount} minutami","{amount} more":"Še {amount}","1 comment":"1 komentar","Add comment":"Dodajte komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dodajte kontekst svojemu komentarju, delite svoje ime in strokovno znanje za spodbujanje zdrave razprave.","Add reply":"Dodajte odgovor","Add your expertise":"","Already a member?":"Ste že član?",Anonymous:"Anonimno","Are you sure?":"Ste prepričani?","Become a member of {publication} to start commenting.":"Postanite član {publication}, da lahko začnete komentirati.","Become a paid member of {publication} to start commenting.":"Postanite plačljiv član {publication}, da lahko začnete komentirati.",Best:"",Cancel:"Prekliči",Comment:"Komentiraj","Commenting disabled":"","Complete your profile":"Dokončajte svoj profil",Delete:"Izbriši",Deleted:"Izbrisano","Deleted member":"Izbrisan član",Deleting:"Brisanje",Discussion:"Razprava",Edit:"Uredi","Edit this comment":"Uredi ta komentar",edited:"urejeno","Enter your name":"Vnesite svoje ime",Expertise:"Strokovno znanje","Founder @ Acme Inc":"Ustanovitelj pri Acme Inc","Full-time parent":"Starš s polnim delovnim časom","Head of Marketing at Acme, Inc":"Vodja marketinga pri Acme, Inc","Hidden for members":"Skrito za člane",Hide:"Skrij","Hide comment":"Skrij komentar","Jamie Larson":"Janez Novak","Join the discussion":"Pridružite se razpravi","Just now":"Pravkar","Load more ({amount})":"Naloži več ({amount})","Local resident":"Lokalni prebivalec","Member discussion":"Razprava članov",Name:"Ime",Neurosurgeon:"Nevrokirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Ko je komentar izbrisan, ga ni mogoče več obnoviti.","One hour ago":"Pred eno uro","One min ago":"Pred eno minuto",removed:"odstranjeno","Replied to":"Odgovorjeno na",Reply:"Odgovori","Reply to":"Odgovori na","Reply to comment":"Odgovori na komentar",Report:"Prijavi","Report comment":"Prijavi komentar","Report this comment?":"Želite prijaviti ta komentar?",Save:"Shrani",Sending:"Pošiljanje",Sent:"Poslano",Show:"Prikaži","Show {amount} more replies":"Prikaži še {amount} odgovorov","Show 1 more reply":"Prikaži še 1 odgovor","Show comment":"Prikaži komentar","Sign in":"Prijavite se","Sign up now":"Registrirajte se zdaj","Sort by":"Razvrsti po","Start the conversation":"Začnite pogovor","The linked comment is no longer available.":"","This comment has been hidden.":"Ta komentar je bil skrit.","This comment has been removed.":"Ta komentar je bil odstranjen.","Upgrade now":"Nadgradite zdaj","View in admin":"",Yesterday:"Včeraj","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Vaša zahteva bo poslana lastniku te strani."},kD={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":""},xD={"{amount} characters left":"preostalo je {amount} karaktera","{amount} comments":"{amount} komentara","{amount} hrs ago":"pre {amount} sati","{amount} mins ago":"pre {amount} minuta","{amount} more":"još {amount}","1 comment":"1 komentar","Add comment":"Dodajte komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dodajte kontekst svom komentaru, podelite svoje ime i ekspertizu kako biste podstakli zdravu diskusiju.","Add reply":"Dodajte odgovor","Add your expertise":"Dodajte ekspertizu","Already a member?":"Već ste član?",Anonymous:"Anonimno","Are you sure?":"Da li ste sigurni?","Become a member of {publication} to start commenting.":"Postanite član {publication} da biste počeli sa komentarisanjem.","Become a paid member of {publication} to start commenting.":"Postanite plaćeni član {publication} da biste počeli sa komentarisanjem.",Best:"Najbolje",Cancel:"Otkažite",Comment:"Komentar","Commenting disabled":"Komentarisanje onemogućeno","Complete your profile":"Popunite svoj profil",Delete:"Obrišite",Deleted:"Obrisano","Deleted member":"Obrisan član",Deleting:"Brisanje",Discussion:"Diskusija",Edit:"Uredite","Edit this comment":"Uredite ovaj komentar",edited:"uređeno","Enter your name":"Unesite svoje ime",Expertise:"Ekspertiza","Founder @ Acme Inc":"Osnivač @ Acme Inc","Full-time parent":"Roditelj punim radnim vremenom","Head of Marketing at Acme, Inc":"Šef marketinga u Acme, Inc","Hidden for members":"Sakriveno za članove",Hide:"Sakrijte","Hide comment":"Sakrijte komentar","Jamie Larson":"Pera Perić","Join the discussion":"Pridružite se diskusiji","Just now":"Upravo sada","Load more ({amount})":"Učitajte još ({amount})","Local resident":"Lokalni stanovnik","Member discussion":"Diskusija članova",Name:"Ime",Neurosurgeon:"Neurohirurg",Newest:"Najnovije",Oldest:"Najstarije","Once deleted, this comment can’t be recovered.":"Kada se obriše, ovaj komentar ne može biti vraćen.","One hour ago":"Pre sat","One min ago":"Pre minut",removed:"uklonjeno","Replied to":"Odgovoreno korisniku",Reply:"Odgovorite","Reply to":"Odgovorite korisniku","Reply to comment":"Odgovorite na komentar",Report:"Prijavite","Report comment":"Prijavite komentar","Report this comment?":"Prijavite ovaj komentar?",Save:"Sačuvajte",Sending:"Slanje",Sent:"Poslato",Show:"Prikažite","Show {amount} more replies":"Prikažite još {amount} odgovora","Show 1 more reply":"Prikažite još 1 odgovor","Show comment":"Prikažite komentar","Sign in":"Prijavite se","Sign up now":"Registrujte se sada","Sort by":"Sortirajte po","Start the conversation":"Počnite razgovor","The linked comment is no longer available.":"","This comment has been hidden.":"Ovaj komentar je sakriven.","This comment has been removed.":"Ovaj komentar je uklonjen.","Upgrade now":"Nadogradite sada","View in admin":"Pogledajte u admin",Yesterday:"Juče","You can't post comments in this publication.":"Ne možete objavljivati komentare u ovoj publikaciji.","You can't post comments in this publication. <a>Contact support</a> for more information.":"Ne možete objavljivati komentare u ovoj publikaciji. <a>Kontaktirajte podršku</a> za više informacija.","Your request will be sent to the owner of this site.":"Vaš zahtev će biti poslat vlasniku ovog sajta."},CD={"{amount} characters left":"преостало је {amount} карактера","{amount} comments":"{amount} коментара","{amount} hrs ago":"пре {amount} сати","{amount} mins ago":"пре {amount} минута","{amount} more":"још {amount}","1 comment":"1 коментар","Add comment":"Додајте коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додајте контекст свом коментару, поделите своје име и експертизу како бисте подстакли здраву дискусију.","Add reply":"Додајте одговор","Add your expertise":"Додајте експертизу","Already a member?":"Већ сте члан?",Anonymous:"Анонимно","Are you sure?":"Да ли сте сигурни?","Become a member of {publication} to start commenting.":"Постаните члан {publication} да бисте почели са коментарисањем.","Become a paid member of {publication} to start commenting.":"Постаните плаћени члан {publication} да бисте почели са коментарисањем.",Best:"Најбоље",Cancel:"Откажите",Comment:"Коментар","Commenting disabled":"Коментарисање онемогућено","Complete your profile":"Попуните свој профил",Delete:"Обришите",Deleted:"Обрисано","Deleted member":"Обрисан члан",Deleting:"Брисање",Discussion:"Дискусија",Edit:"Уредите","Edit this comment":"Уредите овај коментар",edited:"уређено","Enter your name":"Унесите своје име",Expertise:"Експертиза","Founder @ Acme Inc":"Оснивач @ Acme Inc","Full-time parent":"Родитељ пуним радним временом","Head of Marketing at Acme, Inc":"Шеф маркетинга у Acme, Inc","Hidden for members":"Сакривено за чланове",Hide:"Сакријте","Hide comment":"Сакријте коментар","Jamie Larson":"Пера Перић","Join the discussion":"Придружите се дискусији","Just now":"Управо сада","Load more ({amount})":"Учитајте још ({amount})","Local resident":"Локални становник","Member discussion":"Дискусија чланова",Name:"Име",Neurosurgeon:"Неурохирург",Newest:"Најновије",Oldest:"Најстарије","Once deleted, this comment can’t be recovered.":"Када се обрише, овај коментар не може бити враћен.","One hour ago":"Пре сат","One min ago":"Пре минут",removed:"уклоњено","Replied to":"Одговорено кориснику",Reply:"Одговорите","Reply to":"Одговорите кориснику","Reply to comment":"Одговорите на коментар",Report:"Пријавите","Report comment":"Пријавите коментар","Report this comment?":"Пријавите овај коментар?",Save:"Сачувајте",Sending:"Слање",Sent:"Послато",Show:"Прикажите","Show {amount} more replies":"Прикажите још {amount} одговора","Show 1 more reply":"Прикажите још 1 одговор","Show comment":"Прикажите коментар","Sign in":"Пријавите се","Sign up now":"Региструјте се сада","Sort by":"Сортирајте по","Start the conversation":"Почните разговор","The linked comment is no longer available.":"","This comment has been hidden.":"Овај коментар је сакривен.","This comment has been removed.":"Овај коментар је уклоњен.","Upgrade now":"Надоградите сада","View in admin":"Погледајте у админ",Yesterday:"Јуче","You can't post comments in this publication.":"Не можете објављивати коментаре у овој публикацији.","You can't post comments in this publication. <a>Contact support</a> for more information.":"Не можете објављивати коментаре у овој публикацији. <a>Контактирајте подршку</a> за више информација.","Your request will be sent to the owner of this site.":"Ваш захтев ће бити послат власнику овог сајта."},ED={"{amount} characters left":"{amount} tecken kvar","{amount} comments":"{amount} kommentarer","{amount} hrs ago":"{amount} timmar sedan","{amount} mins ago":"{amount} minuter sedan","{amount} more":"{amount} fler","1 comment":"1 kommentar","Add comment":"Lägg till kommentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Lägg till kontext till din kommentar, som ditt namn, din expertis för att skapa ett bra forum.","Add reply":"Lägg till svar","Add your expertise":"Lägg till din expertis","Already a member?":"Redan medlem?",Anonymous:"Anonym","Are you sure?":"Är du säker?","Become a member of {publication} to start commenting.":"Registrera dig på {publication} för att börja kommentera.","Become a paid member of {publication} to start commenting.":"Bli betalande medlem på {publication} för att börja kommentera ",Best:"Mest populär",Cancel:"Avbryt",Comment:"Kommentar","Commenting disabled":"","Complete your profile":"Fyll i hela din profil",Delete:"Ta bort",Deleted:"Borttaget","Deleted member":"Borttagen medlem",Deleting:"Tar bort",Discussion:"Diskussion",Edit:"Ändra","Edit this comment":"Ändra den här kommentaren",edited:"Ändrad","Enter your name":"Skriv ditt namn",Expertise:"Expertis","Founder @ Acme Inc":"Grundare av Företaget AB","Full-time parent":"Hemmaförälder","Head of Marketing at Acme, Inc":"Marknadsföringschef på Företaget AB","Hidden for members":"Dolt för medlemmar",Hide:"Dölj","Hide comment":"Dölj kommentar","Jamie Larson":"Anders Andersson","Join the discussion":"Var med i diskussionen","Just now":"Nu precis","Load more ({amount})":"Ladda in fler ({amount})","Local resident":"Lokalboende","Member discussion":"Medlemsdiskussion",Name:"Namn",Neurosurgeon:"Neurokirurg",Newest:"Nyast",Oldest:"Äldst","Once deleted, this comment can’t be recovered.":"Kommentaren kan ej återskapas efter borttagning","One hour ago":"En timme sedan","One min ago":"En minut sedan",removed:"borttagen","Replied to":"Svarade",Reply:"Svar","Reply to":"Svara","Reply to comment":"Svara på kommentar",Report:"Anmäl","Report comment":"Anmäl kommentar","Report this comment?":"Anmäl den här kommentaren?",Save:"Spara",Sending:"Skickar",Sent:"Skickad",Show:"Visa","Show {amount} more replies":"Visa {amount} fler svar","Show 1 more reply":"Visa 1 kommentar till","Show comment":"Visa kommentar","Sign in":"Logga in","Sign up now":"Registrera dig nu","Sort by":"Sortera efter","Start the conversation":"Inled konversationen","The linked comment is no longer available.":"","This comment has been hidden.":"Denna kommentar har dolts","This comment has been removed.":"Denna kommentar är borttagen","Upgrade now":"Uppgradera nu","View in admin":"",Yesterday:"I går","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Din anmälan skickas till ansvarig för webbplatsen"},ND={"{amount} characters left":"{amount} herufi zimebaki","{amount} comments":"{amount} maoni","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"{amount} zaidi","1 comment":"maoni 1","Add comment":"Ongeza maoni","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Ongeza muktadha kwa maoni yako, shiriki jina lako na utaalamu ili kuendeleza mjadala wenye afya.","Add reply":"Ongeza jibu","Add your expertise":"","Already a member?":"Tayari ni mwanachama?",Anonymous:"Asiyetambulika","Are you sure?":"","Become a member of {publication} to start commenting.":"Jiunge kama mwanachama wa {publication} ili kuanza kutoa maoni.","Become a paid member of {publication} to start commenting.":"Jiunge kama mwanachama anayelipa wa {publication} ili kuanza kutoa maoni.",Best:"",Cancel:"Ghairi",Comment:"Maoni","Commenting disabled":"","Complete your profile":"Kamilisha wasifu wako",Delete:"Futa",Deleted:"","Deleted member":"Mwanachama aliyefutwa",Deleting:"",Discussion:"Majadiliano",Edit:"Hariri","Edit this comment":"Hariri maoni haya",edited:"","Enter your name":"Weka jina lako",Expertise:"Utaalamu","Founder @ Acme Inc":"Mwanzilishi @ Acme Inc","Full-time parent":"Mzazi wa muda wote","Head of Marketing at Acme, Inc":"Mkuu wa Masoko katika Acme, Inc","Hidden for members":"",Hide:"Ficha","Hide comment":"Ficha maoni","Jamie Larson":"Jamie Larson","Join the discussion":"Jiunge na mjadala","Just now":"Hivi sasa","Load more ({amount})":"","Local resident":"Mkazi wa eneo","Member discussion":"Mjadala wa wanachama",Name:"Jina",Neurosurgeon:"Daktari wa ubongo",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Saa moja iliyopita","One min ago":"",removed:"","Replied to":"",Reply:"Jibu","Reply to":"","Reply to comment":"Jibu maoni",Report:"Ripoti","Report comment":"Ripoti maoni","Report this comment?":"Unataka kuripoti maoni haya?",Save:"Hifadhi",Sending:"Inatuma",Sent:"Imetumwa",Show:"Onyesha","Show {amount} more replies":"Onyesha majibu {amount} zaidi","Show 1 more reply":"Onyesha jibu 1 zaidi","Show comment":"Onyesha maoni","Sign in":"Ingia","Sign up now":"Jisajili sasa","Sort by":"","Start the conversation":"Anzisha mazungumzo","The linked comment is no longer available.":"","This comment has been hidden.":"Maoni haya yamefichwa.","This comment has been removed.":"Maoni haya yameondolewa.","Upgrade now":"Boresha sasa","View in admin":"",Yesterday:"Jana","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Ombi lako litatumwa kwa mmiliki wa tovuti hii."},AD={"{amount} characters left":"{amount} எழுத்துக்கள் எஞ்சியுள்ளன","{amount} comments":"{amount} கருத்துக்கள்","{amount} hrs ago":"{amount} மணி நேரத்திற்கு முன்பு","{amount} mins ago":"{amount} நிமிடங்களுக்கு முன்பு","{amount} more":"{amount} மேலும்","1 comment":"1 கருத்து","Add comment":"கருத்தைச் சேர்க்கவும்","Add context to your comment, share your name and expertise to foster a healthy discussion.":"உங்கள் கருத்துக்கு சூழலைச் சேர்க்கவும், ஆரோக்கியமான விவாதத்தை வளர்க்க உங்கள் பெயரையும் நிபுணத்துவத்தையும் பகிர்ந்து கொள்ளுங்கள்.","Add reply":"பதில் சேர்க்கவும்","Add your expertise":"","Already a member?":"ஏற்கனவே உறுப்பினரா?",Anonymous:"அடையாளம் தெரியாத","Are you sure?":"","Become a member of {publication} to start commenting.":"கருத்துத் தெரிவிக்க {publication} இல் உறுப்பினராகுங்கள்.","Become a paid member of {publication} to start commenting.":"கருத்துத் தெரிவிக்க {publication} இல் கட்டண உறுப்பினராகுங்கள்.",Best:"",Cancel:"ரத்து செய்",Comment:"கருத்து","Commenting disabled":"","Complete your profile":"உங்கள் சுயவிவரத்தை பூர்த்தி செய்யவும்",Delete:"நீக்கவும்",Deleted:"","Deleted member":"நீக்கப்பட்ட உறுப்பினர்",Deleting:"",Discussion:"கலந்துரையாடல்",Edit:"திருத்தவும்","Edit this comment":"இந்தக் கருத்தைத் திருத்தவும்",edited:"திருத்தப்பட்டது","Enter your name":"உங்கள் பெயரை உள்ளிடுக",Expertise:"நிபுணத்துவம்","Founder @ Acme Inc":"நிறுவனர் @ Acme Inc","Full-time parent":"முழுநேர பெற்றோர்","Head of Marketing at Acme, Inc":"Acme Inc நிறுவனத்தின் சந்தைப்படுத்தல் தலைவர்","Hidden for members":"",Hide:"மறைக்கவும்","Hide comment":"கருத்தை மறை","Jamie Larson":"ஜேமி லார்சன்","Join the discussion":"கலந்துரையாடலில் சேரவும்","Just now":"சற்றுமுன்னர்தான்","Load more ({amount})":"","Local resident":"உள்ளூர்வாசி","Member discussion":"உறுப்பினர் கருத்து",Name:"பெயர்",Neurosurgeon:"நரம்பியல் அறுவை சிகிச்சை நிபுணர்",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"ஒரு மணி முன்பு","One min ago":"ஒரு நிமிடம் முன்பு",removed:"","Replied to":"",Reply:"பதிலளிக்கவும்","Reply to":"","Reply to comment":"கருத்துக்கு பதிலளிக்கவும்",Report:"புகாரளி","Report comment":"கருத்தைப் புகாரளி","Report this comment?":"இந்தக் கருத்தைப் புகாரளிக்கவா?",Save:"சேமிக்க",Sending:"அனுப்புகிறது",Sent:"அனுப்பப்பட்டது",Show:"காட்டு","Show {amount} more replies":"முந்தைய {amount} மேலும் பதில்கள்க் காட்டு","Show 1 more reply":"மேலும் 1 பதிலைக் காட்டு","Show comment":"கருத்தைக் காட்டு","Sign in":"உள்நுழைக","Sign up now":"இப்பொழுதே பதிவு செய்யுங்கள்","Sort by":"","Start the conversation":"உரையாடலைத் தொடங்குங்கள்","The linked comment is no longer available.":"","This comment has been hidden.":"இந்தக் கருத்து மறைக்கப்பட்டது.","This comment has been removed.":"இந்தக் கருத்து நீக்கப்பட்டது.","Upgrade now":"இப்போதே மேம்படுத்தவும்","View in admin":"",Yesterday:"நேற்று","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"உங்கள் கோரிக்கை இந்த தளத்தின் உரிமையாளருக்கு அனுப்பப்படும்."},OD={"{amount} characters left":"คงเหลือ {amount} ตัวอักษร","{amount} comments":"{amount} ความคิดเห็น","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"อีก {amount}","1 comment":"1 ความคิดเห็น","Add comment":"แสดงความคิดเห็น","Add context to your comment, share your name and expertise to foster a healthy discussion.":"เพิ่มข้อมูลเสริมในความคิดเห็นของคุณ แชร์ชื่อและความเชี่ยวชาญเพื่อสนับสนุนการพูดคุยที่ดี","Add reply":"ตอบกลับ","Add your expertise":"","Already a member?":"เป็นสมาชิกอยู่แล้ว?",Anonymous:"ไม่ระบุชื่อ","Are you sure?":"","Become a member of {publication} to start commenting.":"เป็นสมาชิกของ {publication} เพื่อเริ่มแสดงความคิดเห็น","Become a paid member of {publication} to start commenting.":"เป็นสมาชิกแบบชำระเงินของ {publication} เพื่อเริ่มแสดงความคิดเห็น",Best:"",Cancel:"ยกเลิก",Comment:"ความคิดเห็น","Commenting disabled":"","Complete your profile":"กรอกโปรไฟล์ของคุณให้สมบูรณ์",Delete:"ลบ",Deleted:"","Deleted member":"ผู้ใช้ที่ถูกลบ",Deleting:"",Discussion:"การสนทนา",Edit:"แก้ไข","Edit this comment":"แก้ไขความคิดเห็นนี้",edited:"","Enter your name":"ระบุชื่อของคุณ",Expertise:"ความเชี่ยวชาญ","Founder @ Acme Inc":"ผู้ก่อตั้ง @ Acme Inc","Full-time parent":"ผู้ปกครองเต็มเวลา","Head of Marketing at Acme, Inc":"หัวหน้าฝ่ายการตลาด ณ Acme, Inc","Hidden for members":"",Hide:"ซ่อน","Hide comment":"ซ่อนข้อความ","Jamie Larson":"กนกพัฒน์ สัณห์ฤทัย","Join the discussion":"เข้าร่วมการสนทนา","Just now":"ตอนนี้","Load more ({amount})":"","Local resident":"ผู้อยู่อาศัยในท้องถิ่น","Member discussion":"การสนทนาของสมาชิก",Name:"ชื่อ",Neurosurgeon:"ศัลยแพทย์ระบบประสาท",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"1 ชั่วโมงที่แล้ว","One min ago":"",removed:"","Replied to":"",Reply:"ตอบกลับ","Reply to":"","Reply to comment":"ตอบกลับความคิดเห็น",Report:"รายงาน","Report comment":"รายงานความคิดเห็น","Report this comment?":"รายงานความคิดเห็นนี้?",Save:"บันทึก",Sending:"กำลังส่ง",Sent:"ส่งแล้ว",Show:"แสดง","Show {amount} more replies":"แสดง {amount} การตอบกลับเพิ่มเติม","Show 1 more reply":"แสดงอีก 1 การตอบกลับ","Show comment":"ดูความคิดเห็น","Sign in":"ลงชื่อเข้าใช้","Sign up now":"สมัครใช้งานตอนนี้เลย","Sort by":"","Start the conversation":"เริ่มการสนทนา","The linked comment is no longer available.":"","This comment has been hidden.":"ความคิดเห็นนี้ถูกซ่อน","This comment has been removed.":"ความคิดเห็นนี้ถูกลบ","Upgrade now":"อัพเกรดตอนนี้เลย","View in admin":"",Yesterday:"เมื่อวาน","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"คำขอของคุณจะถูกส่งไปยังผู้ดูแลเว็บไซต์"},RD={"{amount} characters left":"{amount} karakter kaldı","{amount} comments":"{amount} yorum","{amount} hrs ago":"{amount} saat önce","{amount} mins ago":"{amount} dakika önce","{amount} more":"Daha fazla {amount}","1 comment":"1 yorum","Add comment":"Yorum ekle","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Yorumunuza bağlam ekleyin, adınızı ve uzmanlık alanınızı paylaşarak sağlıklı bir tartışmayı teşvik edin.","Add reply":"Yanıt ekle","Add your expertise":"Uzmanlığınızı ekleyin","Already a member?":"Zaten üye misiniz?",Anonymous:"Anonim","Are you sure?":"Emin misin?","Become a member of {publication} to start commenting.":"Yorum yapmaya başlamak için {publication} sitesinde hesap oluşturun.","Become a paid member of {publication} to start commenting.":"Yorum yapmaya başlamak için {publication} sitesinde ücretli hesap oluşturun.",Best:"En iyi",Cancel:"İptal et",Comment:"Yorum ekle","Commenting disabled":"","Complete your profile":"Profilinizi tamamlayın",Delete:"Sil",Deleted:"Silindi","Deleted member":"Silinen üye",Deleting:"Siliniyor",Discussion:"Yorumlar",Edit:"Düzenle","Edit this comment":"Bu yorumu düzenle",edited:"düzenlendi","Enter your name":"Adınızı girin",Expertise:"Uzmanlık","Founder @ Acme Inc":"Kurucu @ Firma Ünvan","Full-time parent":"Tam zamanlı ebeveyn","Head of Marketing at Acme, Inc":"Firma, Ünvan'da Pazarlama Müdürü","Hidden for members":"Üyeler için gizli",Hide:"Gizle","Hide comment":"Yorumu gizle","Jamie Larson":"Ahmet Yılmaz","Join the discussion":"Tartışmaya katıl","Just now":"Şu anda","Load more ({amount})":"Daha fazla yükle ({amount})","Local resident":"Yerel sakini","Member discussion":"Üye tartışması",Name:"Ad",Neurosurgeon:"Beyin cerrahı",Newest:"En yeni",Oldest:"En eski","Once deleted, this comment can’t be recovered.":"Bu yorum silindikten sonra kurtarılamaz.","One hour ago":"Bir saat önce","One min ago":"Bir dakika önce",removed:"kaldırıldı","Replied to":"Cevaplandı",Reply:"Cevapla","Reply to":"Cevapla","Reply to comment":"Yoruma cevap ver",Report:"Rapor et","Report comment":"Yorumu rapor et","Report this comment?":"Bu yorum rapor edilsin mi?",Save:"Kaydet",Sending:"Gönderiliyor",Sent:"Gönderildi",Show:"Göster","Show {amount} more replies":"{amount} daha fazla yanıt göster","Show 1 more reply":"1 cevap daha göster","Show comment":"Yorumu göster","Sign in":"Giriş yap","Sign up now":"Şimdi kayıt ol","Sort by":"Sırala","Start the conversation":"Bu konu hakkında düşüncelerini paylaş","The linked comment is no longer available.":"","This comment has been hidden.":"Bu yorum gizlendi.","This comment has been removed.":"Bu yorum kaldırıldı.","Upgrade now":"Şimdi yükselt","View in admin":"",Yesterday:"Dün","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Talebiniz bu sitenin sahibine gönderilecektir."},DD={"{amount} characters left":"{amount} символів залишилось","{amount} comments":"{amount} коментарів","{amount} hrs ago":"{amount} годин тому","{amount} mins ago":"{amount} хвилин тому","{amount} more":"ще {amount}","1 comment":"1 коментар","Add comment":"Додати коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додайте контекст до свого коментаря, поділіться своїм іменем і досвідом, щоб сприяти здоровій дискусії.","Add reply":"Додати відповідь","Add your expertise":"","Already a member?":"Ви є учасником?",Anonymous:"Анонім","Are you sure?":"","Become a member of {publication} to start commenting.":"Станьте учасником {publication} щоб почати коментувати.","Become a paid member of {publication} to start commenting.":"Станьте платним учасником {publication} щоб почати коментувати.",Best:"",Cancel:"Відмінити",Comment:"Коментувати","Commenting disabled":"","Complete your profile":"Заповніть свій профіль",Delete:"Видалити",Deleted:"","Deleted member":"Видалений учасник",Deleting:"",Discussion:"Обговорення",Edit:"Редагувати","Edit this comment":"Редагувати цей коментар",edited:"Відредагований","Enter your name":"Введіть своє імʼя",Expertise:"Експертність","Founder @ Acme Inc":"Засновник @ Acme Inc","Full-time parent":"Виховую дітей","Head of Marketing at Acme, Inc":"Голова продажів в Acme, Inc","Hidden for members":"",Hide:"Сховати","Hide comment":"Сховати коментар","Jamie Larson":"Ваше імʼя","Join the discussion":"Долучитися до обговорення","Just now":"Прямо зараз","Load more ({amount})":"","Local resident":"Місцевий експерт","Member discussion":"Обговорення учасників",Name:"Імʼя",Neurosurgeon:"Нейрохірург",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Одну годину тому","One min ago":"Одну хвилину тому",removed:"","Replied to":"",Reply:"Відповісти","Reply to":"","Reply to comment":"Відповісти на коментар",Report:"Поскаржитися","Report comment":"Поскаржитися на коментар","Report this comment?":"Поскаржитися на цей коментар?",Save:"Зберегти",Sending:"Відправка",Sent:"Відправлено",Show:"Показати","Show {amount} more replies":"Показати ще {amount} відповідей","Show 1 more reply":"Показати ще одну відповідь","Show comment":"Показати коментар","Sign in":"Увійти","Sign up now":"Зареєструватись зараз","Sort by":"","Start the conversation":"Почніть розмову","The linked comment is no longer available.":"","This comment has been hidden.":"Цей коментар було приховано.","This comment has been removed.":"Цей коментар було видалено.","Upgrade now":"Оновити зараз","View in admin":"",Yesterday:"Вчора","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Ваш запит буде надіслано власнику цього сайту."},TD={"{amount} characters left":"{amount} حروف باقی ہیں","{amount} comments":"{amount} تبادلے","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"1 تبادلہ","Add comment":"تبادلہ شامل کریں","Add context to your comment, share your name and expertise to foster a healthy discussion.":"اپنے تبادلے میں سیاق و سباق شامل کریں، اچھی گفتگو کو بڑھانے کے لئے اپنا نام اور ماہریت شیئر کریں۔","Add reply":"جواب شامل کریں","Add your expertise":"","Already a member?":"پہلے ہی رکن ہیں؟",Anonymous:"ناشناس","Are you sure?":"","Become a member of {publication} to start commenting.":"تبادلہ شروع کرنے کے لئے {publication} کا رکن بنیں۔","Become a paid member of {publication} to start commenting.":"تبادلہ شروع کرنے کے لئے {publication} کا ادائیگی رکن بنیں۔",Best:"",Cancel:"منسوخ کریں",Comment:"تبادلہ","Commenting disabled":"","Complete your profile":"اپنا پروفائل مکمل کریں",Delete:"حذف کریں",Deleted:"","Deleted member":"حذف شدہ رکن",Deleting:"",Discussion:"تبادلہ",Edit:"ترتیب دیں","Edit this comment":"اس تبادلے کو ترتیب دیں",edited:"","Enter your name":"اپنا نام درج کریں",Expertise:"اہلیت","Founder @ Acme Inc":"ناظم @ Acme Inc","Full-time parent":"پورے وقت کا والد یا والدہ","Head of Marketing at Acme, Inc":"Acme، Inc کے مارکیٹنگ کا سربراہ","Hidden for members":"",Hide:"چھپائیں","Hide comment":"تبادلہ چھپائیں","Jamie Larson":"جیمی لارسن","Join the discussion":"تبادلے میں شامل ہوں","Just now":"ابھی","Load more ({amount})":"","Local resident":"مقامی رہائشی","Member discussion":"رکن کا تبادلہ",Name:"نام",Neurosurgeon:"نیوروسرجن",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"ایک گھنٹہ پہلے","One min ago":"",removed:"","Replied to":"",Reply:"جواب","Reply to":"","Reply to comment":"تبادلے کا جواب دیں",Report:"رپورٹ","Report comment":"تبادلے کی رپورٹ","Report this comment?":"کیا آپ اس تبادلے کو رپورٹ کرنا چاہتے ہیں؟",Save:"محفوظ کریں",Sending:"بھیج رہا ہے",Sent:"بھیجا گیا",Show:"دکھائیں","Show {amount} more replies":"{amount} مزید جوابات دکھائیں","Show 1 more reply":"1 مزید جواب دکھائیں","Show comment":"تبادلہ دکھائیں","Sign in":"سائن ان کریں","Sign up now":"ابھی رجسٹر ہوں","Sort by":"","Start the conversation":"بات چیت شروع کریں","The linked comment is no longer available.":"","This comment has been hidden.":"یہ تبادلہ چھپا گیا ہے۔","This comment has been removed.":"یہ تبادلہ ہٹا دیا گیا ہے۔","Upgrade now":"اب اپ گریڈ کریں","View in admin":"",Yesterday:"کل","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"آپ کا درخواست اس سائٹ کے مالک کو بھیجا جائے گا۔"},MD={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":""},jD={"{amount} characters left":"{amount} ký tự còn lại","{amount} comments":"{amount} bình luận","{amount} hrs ago":"{amount} giờ trước","{amount} mins ago":"{amount} phút trước","{amount} more":"{amount} nữa","1 comment":"1 bình luận","Add comment":"Thêm bình luận","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Thêm ngữ cảnh, tên và chuyên môn của bạn để thúc đẩy cuộc thảo luận lành mạnh.","Add reply":"Trả lời","Add your expertise":"Thêm chuyên môn của bạn","Already a member?":"Đã là thành viên?",Anonymous:"Ẩn danh","Are you sure?":"Bạn có chắc không?","Become a member of {publication} to start commenting.":"Trở thành thành viên của {publication} để có thể bình luận.","Become a paid member of {publication} to start commenting.":"Trở thành thành viên trả phí của {publication} để có thể bình luận.",Best:"Hay nhất",Cancel:"Hủy",Comment:"Bình luận","Commenting disabled":"Bình luận đã bị tắt","Complete your profile":"Hoàn tất hồ sơ của bạn",Delete:"Xóa",Deleted:"Đã xóa","Deleted member":"Thành viên đã xóa",Deleting:"Đang xóa",Discussion:"Thảo luận",Edit:"Sửa","Edit this comment":"Sửa bình luận này",edited:"đã sửa","Enter your name":"Nhập tên của bạn",Expertise:"Chuyên môn","Founder @ Acme Inc":"Nhà sáng lập @ Acme Inc","Full-time parent":"Phụ huynh toàn thời gian","Head of Marketing at Acme, Inc":"Trưởng phòng Marketing tại Acme, Inc","Hidden for members":"Ẩn với thành viên",Hide:"Ẩn","Hide comment":"Ẩn bình luận","Jamie Larson":"Nguyễn Minh Châu","Join the discussion":"Tham gia thảo luận","Just now":"Vừa xong","Load more ({amount})":"Hiện thêm ({amount})","Local resident":"Cư dân địa phương","Member discussion":"Thảo luận của thành viên",Name:"Tên",Neurosurgeon:"Bác sĩ phẫu thuật thần kinh",Newest:"Mới nhất",Oldest:"Cũ nhất","Once deleted, this comment can’t be recovered.":"Một khi đã xóa, bình luận này không thể khôi phục.","One hour ago":"Một giờ trước","One min ago":"Một phút trước",removed:"đã xóa","Replied to":"Đã trả lời",Reply:"Trả lời","Reply to":"Trả lời","Reply to comment":"Trả lời bình luận",Report:"Báo cáo","Report comment":"Báo cáo bình luận","Report this comment?":"Báo cáo bình luận này?",Save:"Lưu",Sending:"Đang gửi",Sent:"Đã gửi",Show:"Hiển thị","Show {amount} more replies":"Xem thêm {amount} trả lời khác","Show 1 more reply":"Xem thêm 1 trả lời","Show comment":"Xem bình luận","Sign in":"Đăng nhập","Sign up now":"Đăng ký ngay","Sort by":"Xếp theo","Start the conversation":"Bắt đầu cuộc trò chuyện","The linked comment is no longer available.":"Liên kết bình luận này không còn nữa.","This comment has been hidden.":"Bình luận này đã bị ẩn.","This comment has been removed.":"Bình luận này đã bị xóa.","Upgrade now":"Nâng cấp","View in admin":"Xem trong bảng quản trị",Yesterday:"Hôm qua","You can't post comments in this publication.":"Bạn không thể bình luận trên trang web này.","You can't post comments in this publication. <a>Contact support</a> for more information.":"Bạn không thể bình luận trên trang web này. <a>Liên hệ hỗ trợ</a> để biết thêm chi tiết.","Your request will be sent to the owner of this site.":"Yêu cầu của bạn sẽ được gửi đến chủ sở hữu trang web này."},PD={"{amount} characters left":"还剩{amount}字","{amount} comments":"{amount}条评论","{amount} hrs ago":"{amount}小时前","{amount} mins ago":"{amount}分钟前","{amount} more":"还剩{amount}条评论","1 comment":"一条评论","Add comment":"添加评论","Add context to your comment, share your name and expertise to foster a healthy discussion.":"为评论补充更多的上下文信息、例如您的姓名与专业背景有助于营造健康的讨论氛围。","Add reply":"回复","Add your expertise":"添加您的专业背景","Already a member?":"已经是会员?",Anonymous:"匿名","Are you sure?":"确认?","Become a member of {publication} to start commenting.":"成为{publication}的会员以开始评论。","Become a paid member of {publication} to start commenting.":"成为{publication}的付费会员以开始评论。",Best:"最多赞",Cancel:"取消",Comment:"评论","Commenting disabled":"","Complete your profile":"完善您的个人资料",Delete:"删除",Deleted:"已删除","Deleted member":"删除会员",Deleting:"删除中",Discussion:"讨论",Edit:"编辑","Edit this comment":"编辑此条评论",edited:"已编辑","Enter your name":"输入您的名字",Expertise:"专业背景","Founder @ Acme Inc":"Acme Inc的创建者","Full-time parent":"全职父母","Head of Marketing at Acme, Inc":"Acme, Inc市场部负责人","Hidden for members":"对会员隐藏",Hide:"隐藏","Hide comment":"隐藏评论","Jamie Larson":"阿宇","Join the discussion":"加入讨论","Just now":"刚刚","Load more ({amount})":"加载更多({amount})条","Local resident":"本地居民","Member discussion":"会员讨论",Name:"名字",Neurosurgeon:"神经外科医生",Newest:"最新",Oldest:"最早","Once deleted, this comment can’t be recovered.":"此评论一经删除后将无法复原。","One hour ago":"一小时前","One min ago":"一分钟前",removed:"已移除","Replied to":"已回复",Reply:"回复","Reply to":"回复","Reply to comment":"回复评论",Report:"举报","Report comment":"举报评论","Report this comment?":"举报此评论?",Save:"保存",Sending:"正在发送",Sent:"已发送",Show:"显示","Show {amount} more replies":"显示更多{amount}条评论","Show 1 more reply":"显示下一条评论","Show comment":"显示评论","Sign in":"登录","Sign up now":"立刻注册","Sort by":"排序方式","Start the conversation":"开始对话","The linked comment is no longer available.":"","This comment has been hidden.":"该条评论已被隐藏。","This comment has been removed.":"该条评论已被移除。","Upgrade now":"立刻升级","View in admin":"",Yesterday:"昨天","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"您的请求将被发送给站点所有者。"},ID={"{amount} characters left":"還剩{amount}個字","{amount} comments":"{amount}則留言","{amount} hrs ago":"{amount}小時前","{amount} mins ago":"{amount}分鐘前","{amount} more":"還剩{amount}則留言","1 comment":"一則留言","Add comment":"留言","Add context to your comment, share your name and expertise to foster a healthy discussion.":"為您的留言補充背景,說明您的稱呼與專業背景都有助於健康的討論氛圍。","Add reply":"回覆","Add your expertise":"新增您的專業背景","Already a member?":"已經是會員?",Anonymous:"匿名","Are you sure?":"您確定嗎?","Become a member of {publication} to start commenting.":"成為{publication}的會員以開始留言。","Become a paid member of {publication} to start commenting.":"成為{publication}的付費會員以開始留言。",Best:"最多讚",Cancel:"取消",Comment:"留言","Commenting disabled":"未開放留言","Complete your profile":"完成您的註冊資訊",Delete:"刪除",Deleted:"已刪除","Deleted member":"刪除會員",Deleting:"刪除中",Discussion:"討論",Edit:"編輯","Edit this comment":"編輯此則留言",edited:"已編輯","Enter your name":"輸入您的稱呼",Expertise:"專業背景","Founder @ Acme Inc":"Acme Inc的創辦人","Full-time parent":"全職父母","Head of Marketing at Acme, Inc":"Acme, Inc市場部負責人","Hidden for members":"對會員隱藏",Hide:"隱藏","Hide comment":"隱藏留言","Jamie Larson":"阿宇","Join the discussion":"加入討論","Just now":"剛剛","Load more ({amount})":"載入更多({amount})","Local resident":"本地居民","Member discussion":"會員討論",Name:"稱呼",Neurosurgeon:"神經外科醫生",Newest:"最新",Oldest:"最早","Once deleted, this comment can’t be recovered.":"此留言一經刪除後將無法復原。","One hour ago":"一小時前","One min ago":"一分鐘前",removed:"已移除","Replied to":"已回覆",Reply:"回覆","Reply to":"回覆","Reply to comment":"回覆留言",Report:"檢舉","Report comment":"檢舉留言","Report this comment?":"檢舉此留言?",Save:"儲存",Sending:"正在發送",Sent:"已發送",Show:"顯示","Show {amount} more replies":"顯示後續 {amount} 則留言","Show 1 more reply":"顯示下一則留言","Show comment":"顯示留言","Sign in":"登入","Sign up now":"立即註冊","Sort by":"排序方式","Start the conversation":"開始對話","The linked comment is no longer available.":"連結的留言已不存在。","This comment has been hidden.":"該則留言已被隱藏。","This comment has been removed.":"該則留言已被移除。","Upgrade now":"立即升級","View in admin":"從管理後台檢視",Yesterday:"昨天","You can't post comments in this publication.":"您無法在此刊物留言。","You can't post comments in this publication. <a>Contact support</a> for more information.":"您無法在此刊物留言。<a>聯繫客服</a> 以取得更多資訊。","Your request will be sent to the owner of this site.":"您的請求將被發送給網站所有者。"};var iv;function sv(){return iv||(iv={"/ghost/i18n/locales/af/comments.json":function(){return OR},"/ghost/i18n/locales/ar/comments.json":function(){return RR},"/ghost/i18n/locales/bg/comments.json":function(){return DR},"/ghost/i18n/locales/bn/comments.json":function(){return TR},"/ghost/i18n/locales/bs/comments.json":function(){return MR},"/ghost/i18n/locales/ca/comments.json":function(){return jR},"/ghost/i18n/locales/cs/comments.json":function(){return PR},"/ghost/i18n/locales/da/comments.json":function(){return IR},"/ghost/i18n/locales/de/comments.json":function(){return LR},"/ghost/i18n/locales/de-CH/comments.json":function(){return zR},"/ghost/i18n/locales/el/comments.json":function(){return BR},"/ghost/i18n/locales/en/comments.json":function(){return FR},"/ghost/i18n/locales/eo/comments.json":function(){return HR},"/ghost/i18n/locales/es/comments.json":function(){return VR},"/ghost/i18n/locales/et/comments.json":function(){return _R},"/ghost/i18n/locales/eu/comments.json":function(){return UR},"/ghost/i18n/locales/fa/comments.json":function(){return YR},"/ghost/i18n/locales/fi/comments.json":function(){return JR},"/ghost/i18n/locales/fr/comments.json":function(){return KR},"/ghost/i18n/locales/gd/comments.json":function(){return WR},"/ghost/i18n/locales/he/comments.json":function(){return qR},"/ghost/i18n/locales/hi/comments.json":function(){return GR},"/ghost/i18n/locales/hr/comments.json":function(){return QR},"/ghost/i18n/locales/hu/comments.json":function(){return ZR},"/ghost/i18n/locales/id/comments.json":function(){return XR},"/ghost/i18n/locales/is/comments.json":function(){return eD},"/ghost/i18n/locales/it/comments.json":function(){return tD},"/ghost/i18n/locales/ja/comments.json":function(){return nD},"/ghost/i18n/locales/ko/comments.json":function(){return oD},"/ghost/i18n/locales/kz/comments.json":function(){return rD},"/ghost/i18n/locales/lt/comments.json":function(){return iD},"/ghost/i18n/locales/lv/comments.json":function(){return sD},"/ghost/i18n/locales/mk/comments.json":function(){return aD},"/ghost/i18n/locales/mn/comments.json":function(){return lD},"/ghost/i18n/locales/ms/comments.json":function(){return cD},"/ghost/i18n/locales/nb/comments.json":function(){return uD},"/ghost/i18n/locales/ne/comments.json":function(){return dD},"/ghost/i18n/locales/nl/comments.json":function(){return mD},"/ghost/i18n/locales/nn/comments.json":function(){return fD},"/ghost/i18n/locales/pa/comments.json":function(){return pD},"/ghost/i18n/locales/pl/comments.json":function(){return hD},"/ghost/i18n/locales/pt/comments.json":function(){return gD},"/ghost/i18n/locales/pt-BR/comments.json":function(){return yD},"/ghost/i18n/locales/ro/comments.json":function(){return bD},"/ghost/i18n/locales/ru/comments.json":function(){return wD},"/ghost/i18n/locales/si/comments.json":function(){return vD},"/ghost/i18n/locales/sk/comments.json":function(){return SD},"/ghost/i18n/locales/sl/comments.json":function(){return $D},"/ghost/i18n/locales/sq/comments.json":function(){return kD},"/ghost/i18n/locales/sr/comments.json":function(){return xD},"/ghost/i18n/locales/sr-Cyrl/comments.json":function(){return CD},"/ghost/i18n/locales/sv/comments.json":function(){return ED},"/ghost/i18n/locales/sw/comments.json":function(){return ND},"/ghost/i18n/locales/ta/comments.json":function(){return AD},"/ghost/i18n/locales/th/comments.json":function(){return OD},"/ghost/i18n/locales/tr/comments.json":function(){return RD},"/ghost/i18n/locales/uk/comments.json":function(){return DD},"/ghost/i18n/locales/ur/comments.json":function(){return TD},"/ghost/i18n/locales/uz/comments.json":function(){return MD},"/ghost/i18n/locales/vi/comments.json":function(){return jD},"/ghost/i18n/locales/zh/comments.json":function(){return PD},"/ghost/i18n/locales/zh-Hant/comments.json":function(){return ID}})}function $o(t){function e(n){var o=av(n,t);if(o!==null)return sv()[o]();throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}return e.resolve=function(n){var o=av(n,t);return o!==null?o:require.resolve(n)},e}function av(t,e){var n=LD(t);t=ql(t);var o;t[0]==="/"&&(e="");for(var r=sv(),i=["",".js",".json"];n?o=ql(e+"/node_modules/"+t):o=ql(e+"/"+t),!o.endsWith("/..");){for(var s=0;s<i.length;s++){var a=o+i[s];if(r[a])return a}if(!n)break;var l=ql(e+"/..");if(l===e)break;e=l}return null}function LD(t){var e=t[0];if(e==="/"||e==="\\")return!1;var n=t[1],o=t[2];return!(e==="."&&(!n||n==="/"||n==="\\")||e==="."&&n==="."&&(!o||o==="/"||o==="\\")||n===":"&&(o==="/"||o==="\\"))}function ql(t){t=t.replace(/\\/g,"/");for(var e=t.split("/"),n=e[0]==="",o=1;o<e.length;o++)(e[o]==="."||e[o]==="")&&e.splice(o--,1);for(var o=1;o<e.length;o++)e[o]===".."&&o>0&&e[o-1]!==".."&&e[o-1]!=="."&&(e.splice(--o,2),o--);return t=e.join("/"),n&&t[0]!=="/"?t="/"+t:t.length===0&&(t="."),t}var as={exports:{}};const Y=t=>typeof t=="string",ls=()=>{let t,e;const n=new Promise((o,r)=>{t=o,e=r});return n.resolve=t,n.reject=e,n},lv=t=>t==null?"":""+t,zD=(t,e,n)=>{t.forEach(o=>{e[o]&&(n[o]=e[o])})},BD=/###/g,cv=t=>t&&t.indexOf("###")>-1?t.replace(BD,"."):t,uv=t=>!t||Y(t),cs=(t,e,n)=>{const o=Y(e)?e.split("."):e;let r=0;for(;r<o.length-1;){if(uv(t))return{};const i=cv(o[r]);!t[i]&&n&&(t[i]=new n),Object.prototype.hasOwnProperty.call(t,i)?t=t[i]:t={},++r}return uv(t)?{}:{obj:t,k:cv(o[r])}},dv=(t,e,n)=>{const{obj:o,k:r}=cs(t,e,Object);if(o!==void 0||e.length===1){o[r]=n;return}let i=e[e.length-1],s=e.slice(0,e.length-1),a=cs(t,s,Object);for(;a.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=cs(t,s,Object),a&&a.obj&&typeof a.obj[`${a.k}.${i}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},FD=(t,e,n,o)=>{const{obj:r,k:i}=cs(t,e,Object);r[i]=r[i]||[],r[i].push(n)},Gl=(t,e)=>{const{obj:n,k:o}=cs(t,e);if(n)return n[o]},HD=(t,e,n)=>{const o=Gl(t,n);return o!==void 0?o:Gl(e,n)},mv=(t,e,n)=>{for(const o in e)o!=="__proto__"&&o!=="constructor"&&(o in t?Y(t[o])||t[o]instanceof String||Y(e[o])||e[o]instanceof String?n&&(t[o]=e[o]):mv(t[o],e[o],n):t[o]=e[o]);return t},wr=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var VD={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const _D=t=>Y(t)?t.replace(/[&<>"'\/]/g,e=>VD[e]):t;class UD{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const o=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,o),this.regExpQueue.push(e),o}}const YD=[" ",",","?","!",";"],JD=new UD(20),KD=(t,e,n)=>{e=e||"",n=n||"";const o=YD.filter(s=>e.indexOf(s)<0&&n.indexOf(s)<0);if(o.length===0)return!0;const r=JD.getRegExp(`(${o.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!r.test(t);if(!i){const s=t.indexOf(n);s>0&&!r.test(t.substring(0,s))&&(i=!0)}return i},ff=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const o=e.split(n);let r=t;for(let i=0;i<o.length;){if(!r||typeof r!="object")return;let s,a="";for(let l=i;l<o.length;++l)if(l!==i&&(a+=n),a+=o[l],s=r[a],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&l<o.length-1)continue;i+=l-i+1;break}r=s}return r},Ql=t=>t&&t.replace("_","-"),WD={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class Zl{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||WD,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return this.forward(n,"log","",!0)}warn(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return this.forward(n,"warn","",!0)}error(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return this.forward(n,"error","")}deprecate(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,o,r){return r&&!this.debug?null:(Y(e[0])&&(e[0]=`${o}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new Zl(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Zl(this.logger,e)}}var Ft=new Zl;class Xl{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(o=>{this.observers[o]||(this.observers[o]=new Map);const r=this.observers[o].get(n)||0;this.observers[o].set(n,r+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[a,l]=s;for(let c=0;c<l;c++)a.apply(a,[e,...o])})}}class fv extends Xl{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,n],o&&(Array.isArray(o)?a.push(...o):Y(o)&&i?a.push(...o.split(i)):a.push(o)));const l=Gl(this.data,a);return!l&&!n&&!o&&e.indexOf(".")>-1&&(e=a[0],n=a[1],o=a.slice(2).join(".")),l||!s||!Y(o)?l:ff(this.data&&this.data[e]&&this.data[e][n],o,i)}addResource(e,n,o,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let a=[e,n];o&&(a=a.concat(s?o.split(s):o)),e.indexOf(".")>-1&&(a=e.split("."),r=n,n=a[1]),this.addNamespaces(n),dv(this.data,a,r),i.silent||this.emit("added",e,n,o,r)}addResources(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in o)(Y(o[i])||Array.isArray(o[i]))&&this.addResource(e,n,i,o[i],{silent:!0});r.silent||this.emit("added",e,n,o)}addResourceBundle(e,n,o,r,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[e,n];e.indexOf(".")>-1&&(a=e.split("."),r=o,o=n,n=a[1]),this.addNamespaces(n);let l=Gl(this.data,a)||{};s.skipCopy||(o=JSON.parse(JSON.stringify(o))),r?mv(l,o,i):l={...l,...o},dv(this.data,a,l),s.silent||this.emit("added",e,n,o)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,n)}:this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var pv={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,o,r){return t.forEach(i=>{this.processors[i]&&(e=this.processors[i].process(e,n,o,r))}),e}};const hv={};class ec extends Xl{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),zD(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ft.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const o=this.resolve(e,n);return o&&o.res!==void 0}extractFromKey(e,n){let o=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");const r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const s=o&&e.indexOf(o)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!KD(e,o,r);if(s&&!a){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:Y(i)?[i]:i};const c=e.split(o);(o!==r||o===r&&this.options.ns.indexOf(c[0])>-1)&&(i=c.shift()),e=c.join(r)}return{key:e,namespaces:Y(i)?[i]:i}}translate(e,n,o){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:a}=this.extractFromKey(e[e.length-1],n),l=a[a.length-1],c=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(u){const S=n.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${S}${s}`,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${S}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s}const d=this.resolve(e,n);let m=d&&d.res;const f=d&&d.usedKey||s,p=d&&d.exactUsedKey||s,g=Object.prototype.toString.apply(m),h=["[object Number]","[object Function]","[object RegExp]"],y=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,v=!Y(m)&&typeof m!="boolean"&&typeof m!="number";if(w&&m&&v&&h.indexOf(g)<0&&!(Y(y)&&Array.isArray(m))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const S=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,m,{...n,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(d.res=S,d.usedParams=this.getUsedParamsDetails(n),d):S}if(i){const S=Array.isArray(m),C=S?[]:{},$=S?p:f;for(const k in m)if(Object.prototype.hasOwnProperty.call(m,k)){const N=`${$}${i}${k}`;C[k]=this.translate(N,{...n,joinArrays:!1,ns:a}),C[k]===N&&(C[k]=m[k])}m=C}}else if(w&&Y(y)&&Array.isArray(m))m=m.join(y),m&&(m=this.extendTranslation(m,e,n,o));else{let S=!1,C=!1;const $=n.count!==void 0&&!Y(n.count),k=ec.hasDefaultValue(n),N=$?this.pluralResolver.getSuffix(c,n.count,n):"",O=n.ordinal&&$?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",H=$&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),ie=H&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${N}`]||n[`defaultValue${O}`]||n.defaultValue;!this.isValidLookup(m)&&k&&(S=!0,m=ie),this.isValidLookup(m)||(C=!0,m=s);const oe=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:m,ye=k&&ie!==m&&this.options.updateMissing;if(C||S||ye){if(this.logger.log(ye?"updateKey":"missingKey",c,l,s,ye?ie:m),i){const A=this.resolve(s,{...n,keySeparator:!1});A&&A.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let de=[];const me=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&me&&me[0])for(let A=0;A<me.length;A++)de.push(me[A]);else this.options.saveMissingTo==="all"?de=this.languageUtils.toResolveHierarchy(n.lng||this.language):de.push(n.lng||this.language);const E=(A,j,q)=>{const D=k&&q!==m?q:oe;this.options.missingKeyHandler?this.options.missingKeyHandler(A,l,j,D,ye,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(A,l,j,D,ye,n),this.emit("missingKey",A,l,j,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&$?de.forEach(A=>{const j=this.pluralResolver.getSuffixes(A,n);H&&n[`defaultValue${this.options.pluralSeparator}zero`]&&j.indexOf(`${this.options.pluralSeparator}zero`)<0&&j.push(`${this.options.pluralSeparator}zero`),j.forEach(q=>{E([A],s+q,n[`defaultValue${q}`]||ie)})}):E(de,s,ie))}m=this.extendTranslation(m,e,n,d,o),C&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}:${s}`),(C||S)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,S?m:void 0):m=this.options.parseMissingKeyHandler(m))}return r?(d.res=m,d.usedParams=this.getUsedParamsDetails(n),d):m}extendTranslation(e,n,o,r,i){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init({...o,interpolation:{...this.options.interpolation,...o.interpolation}});const c=Y(e)&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(c){const m=e.match(this.interpolator.nestingRegexp);u=m&&m.length}let d=o.replace&&!Y(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),e=this.interpolator.interpolate(e,d,o.lng||this.language||r.usedLng,o),c){const m=e.match(this.interpolator.nestingRegexp),f=m&&m.length;u<f&&(o.nest=!1)}!o.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(o.lng=this.language||r.usedLng),o.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var m=arguments.length,f=new Array(m),p=0;p<m;p++)f[p]=arguments[p];return i&&i[0]===f[0]&&!o.context?(s.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${n[0]}`),null):s.translate(...f,n)},o)),o.interpolation&&this.interpolator.reset()}const a=o.postProcess||this.options.postProcess,l=Y(a)?[a]:a;return e!=null&&l&&l.length&&o.applyPostProcessor!==!1&&(e=pv.handle(l,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),e}resolve(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,r,i,s,a;return Y(e)&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(o))return;const c=this.extractFromKey(l,n),u=c.key;r=u;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const m=n.count!==void 0&&!Y(n.count),f=m&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),p=n.context!==void 0&&(Y(n.context)||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(h=>{this.isValidLookup(o)||(a=h,!hv[`${g[0]}-${h}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(hv[`${g[0]}-${h}`]=!0,this.logger.warn(`key "${r}" for languages "${g.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(y=>{if(this.isValidLookup(o))return;s=y;const w=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(w,u,y,h,n);else{let S;m&&(S=this.pluralResolver.getSuffix(y,n.count,n));const C=`${this.options.pluralSeparator}zero`,$=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(w.push(u+S),n.ordinal&&S.indexOf($)===0&&w.push(u+S.replace($,this.options.pluralSeparator)),f&&w.push(u+C)),p){const k=`${u}${this.options.contextSeparator}${n.context}`;w.push(k),m&&(w.push(k+S),n.ordinal&&S.indexOf($)===0&&w.push(k+S.replace($,this.options.pluralSeparator)),f&&w.push(k+C))}}let v;for(;v=w.pop();)this.isValidLookup(o)||(i=v,o=this.getResource(y,h,v,n))}))})}),{res:o,usedKey:r,exactUsedKey:i,usedLng:s,usedNS:a}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,o,r):this.resourceStore.getResource(e,n,o,r)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=e.replace&&!Y(e.replace);let r=o?e.replace:e;if(o&&typeof e.count<"u"&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!o){r={...r};for(const i of n)delete r[i]}return r}static hasDefaultValue(e){const n="defaultValue";for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&n===o.substring(0,n.length)&&e[o]!==void 0)return!0;return!1}}const pf=t=>t.charAt(0).toUpperCase()+t.slice(1);class gv{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ft.create("languageUtils")}getScriptPartFromCode(e){if(e=Ql(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=Ql(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(Y(e)&&e.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let r=Intl.getCanonicalLocales(e)[0];if(r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r)return r}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let o=e.split("-");return this.options.lowerCaseLng?o=o.map(r=>r.toLowerCase()):o.length===2?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),n.indexOf(o[1].toLowerCase())>-1&&(o[1]=pf(o[1].toLowerCase()))):o.length===3&&(o[0]=o[0].toLowerCase(),o[1].length===2&&(o[1]=o[1].toUpperCase()),o[0]!=="sgn"&&o[2].length===2&&(o[2]=o[2].toUpperCase()),n.indexOf(o[1].toLowerCase())>-1&&(o[1]=pf(o[1].toLowerCase())),n.indexOf(o[2].toLowerCase())>-1&&(o[2]=pf(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(o=>{if(n)return;const r=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&e.forEach(o=>{if(n)return;const r=this.getLanguagePartFromCode(o);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(i=>{if(i===r)return i;if(!(i.indexOf("-")<0&&r.indexOf("-")<0)&&(i.indexOf("-")>0&&r.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===r||i.indexOf(r)===0&&r.length>1))return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),Y(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let o=e[n];return o||(o=e[this.getScriptPartFromCode(n)]),o||(o=e[this.formatLanguageCode(n)]),o||(o=e[this.getLanguagePartFromCode(n)]),o||(o=e.default),o||[]}toResolveHierarchy(e,n){const o=this.getFallbackCodes(n||this.options.fallbackLng||[],e),r=[],i=s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return Y(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):Y(e)&&i(this.formatLanguageCode(e)),o.forEach(s=>{r.indexOf(s)<0&&i(this.formatLanguageCode(s))}),r}}let qD=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],GD={1:t=>+(t>1),2:t=>+(t!=1),3:t=>0,4:t=>t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,5:t=>t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5,6:t=>t==1?0:t>=2&&t<=4?1:2,7:t=>t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,8:t=>t==1?0:t==2?1:t!=8&&t!=11?2:3,9:t=>+(t>=2),10:t=>t==1?0:t==2?1:t<7?2:t<11?3:4,11:t=>t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3,12:t=>+(t%10!=1||t%100==11),13:t=>+(t!==0),14:t=>t==1?0:t==2?1:t==3?2:3,15:t=>t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2,16:t=>t%10==1&&t%100!=11?0:t!==0?1:2,17:t=>t==1||t%10==1&&t%100!=11?0:1,18:t=>t==0?0:t==1?1:2,19:t=>t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3,20:t=>t==1?0:t==0||t%100>0&&t%100<20?1:2,21:t=>t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0,22:t=>t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3};const QD=["v1","v2","v3"],ZD=["v4"],yv={zero:0,one:1,two:2,few:3,many:4,other:5},XD=()=>{const t={};return qD.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:GD[e.fc]}})}),t};class eT{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=Ft.create("pluralResolver"),(!this.options.compatibilityJSON||ZD.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=XD(),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const o=Ql(e==="dev"?"en":e),r=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:o,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let s;try{s=new Intl.PluralRules(o,{type:r})}catch{if(!e.match(/-|_/))return;const l=this.languageUtils.getLanguagePartFromCode(e);s=this.getRule(l,n)}return this.pluralRulesCache[i]=s,s}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=this.getRule(e,n);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}getPluralFormsOfKey(e,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,o).map(r=>`${n}${r}`)}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=this.getRule(e,n);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort((r,i)=>yv[r]-yv[i]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):o.numbers.map(r=>this.getSuffix(e,r,n)):[]}getSuffix(e,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=this.getRule(e,o);return r?this.shouldUseIntlApi()?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,n){const o=e.noAbs?e.plurals(n):e.plurals(Math.abs(n));let r=e.numbers[o];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));const i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?i():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}shouldUseIntlApi(){return!QD.includes(this.options.compatibilityJSON)}}const bv=function(t,e,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=HD(t,e,n);return!i&&r&&Y(n)&&(i=ff(t,n,o),i===void 0&&(i=ff(e,n,o))),i},hf=t=>t.replace(/\$/g,"$$$$");class tT{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ft.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:o,useRawValueToEscape:r,prefix:i,prefixEscaped:s,suffix:a,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:m,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:g,nestingOptionsSeparator:h,maxReplaces:y,alwaysFormat:w}=e.interpolation;this.escape=n!==void 0?n:_D,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=i?wr(i):s||"{{",this.suffix=a?wr(a):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=m?wr(m):f||wr("$t("),this.nestingSuffix=p?wr(p):g||wr(")"),this.nestingOptionsSeparator=h||",",this.maxReplaces=y||1e3,this.alwaysFormat=w!==void 0?w:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,o)=>n&&n.source===o?(n.lastIndex=0,n):new RegExp(o,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,n,o,r){let i,s,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=f=>{if(f.indexOf(this.formatSeparator)<0){const y=bv(n,l,f,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,o,{...r,...n,interpolationkey:f}):y}const p=f.split(this.formatSeparator),g=p.shift().trim(),h=p.join(this.formatSeparator).trim();return this.format(bv(n,l,g,this.options.keySeparator,this.options.ignoreJSONStructure),h,o,{...r,...n,interpolationkey:g})};this.resetRegExp();const u=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:f=>hf(f)},{regex:this.regexp,safeValue:f=>this.escapeValue?hf(this.escape(f)):hf(f)}].forEach(f=>{for(a=0;i=f.regex.exec(e);){const p=i[1].trim();if(s=c(p),s===void 0)if(typeof u=="function"){const h=u(e,i,r);s=Y(h)?h:""}else if(r&&Object.prototype.hasOwnProperty.call(r,p))s="";else if(d){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${p} for interpolating ${e}`),s="";else!Y(s)&&!this.useRawValueToEscape&&(s=lv(s));const g=f.safeValue(s);if(e=e.replace(i[0],g),d?(f.regex.lastIndex+=s.length,f.regex.lastIndex-=i[0].length):f.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,s;const a=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const d=l.split(new RegExp(`${u}[ ]*{`));let m=`{${d[1]}`;l=d[0],m=this.interpolate(m,s);const f=m.match(/'/g),p=m.match(/"/g);(f&&f.length%2===0&&!p||p.length%2!==0)&&(m=m.replace(/'/g,'"'));try{s=JSON.parse(m),c&&(s={...c,...s})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${u}${m}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,l};for(;r=this.nestingRegexp.exec(e);){let l=[];s={...o},s=s.replace&&!Y(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){const u=r[1].split(this.formatSeparator).map(d=>d.trim());r[1]=u.shift(),l=u,c=!0}if(i=n(a.call(this,r[1].trim(),s),s),i&&r[0]===e&&!Y(i))return i;Y(i)||(i=lv(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=""),c&&(i=l.reduce((u,d)=>this.format(u,d,o.lng,{...o,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}const nT=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const o=t.split("(");e=o[0].toLowerCase().trim();const r=o[1].substring(0,o[1].length-1);e==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):e==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){const[a,...l]=s.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=a.trim();n[u]||(n[u]=c),c==="false"&&(n[u]=!1),c==="true"&&(n[u]=!0),isNaN(c)||(n[u]=parseInt(c,10))}})}return{formatName:e,formatOptions:n}},vr=t=>{const e={};return(n,o,r)=>{let i=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(i={...i,[r.interpolationkey]:void 0});const s=o+JSON.stringify(i);let a=e[s];return a||(a=t(Ql(o),r),e[s]=a),a(n)}};class oT{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ft.create("formatter"),this.options=e,this.formats={number:vr((n,o)=>{const r=new Intl.NumberFormat(n,{...o});return i=>r.format(i)}),currency:vr((n,o)=>{const r=new Intl.NumberFormat(n,{...o,style:"currency"});return i=>r.format(i)}),datetime:vr((n,o)=>{const r=new Intl.DateTimeFormat(n,{...o});return i=>r.format(i)}),relativetime:vr((n,o)=>{const r=new Intl.RelativeTimeFormat(n,{...o});return i=>r.format(i,o.range||"day")}),list:vr((n,o)=>{const r=new Intl.ListFormat(n,{...o});return i=>r.format(i)})},this.init(e)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=vr(n)}format(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(a=>a.indexOf(")")>-1)){const a=i.findIndex(l=>l.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,a)].join(this.formatSeparator)}return i.reduce((a,l)=>{const{formatName:c,formatOptions:u}=nT(l);if(this.formats[c]){let d=a;try{const m=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},f=m.locale||m.lng||r.locale||r.lng||o;d=this.formats[c](a,f,{...u,...r,...m})}catch(m){this.logger.warn(m)}return d}else this.logger.warn(`there was no format function for ${c}`);return a},e)}}const rT=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class iT extends Xl{constructor(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=o,this.languageUtils=o.languageUtils,this.options=r,this.logger=Ft.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(o,r.backend,r)}queueLoad(e,n,o,r){const i={},s={},a={},l={};return e.forEach(c=>{let u=!0;n.forEach(d=>{const m=`${c}|${d}`;!o.reload&&this.store.hasResourceBundle(c,d)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?s[m]===void 0&&(s[m]=!0):(this.state[m]=1,u=!1,s[m]===void 0&&(s[m]=!0),i[m]===void 0&&(i[m]=!0),l[d]===void 0&&(l[d]=!0)))}),u||(a[c]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,n,o){const r=e.split("|"),i=r[0],s=r[1];n&&this.emit("failedLoading",i,s,n),!n&&o&&this.store.addResourceBundle(i,s,o,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&o&&(this.state[e]=0);const a={};this.queue.forEach(l=>{FD(l.loaded,[i],s),rT(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{a[c]||(a[c]={});const u=l.loaded[c];u.length&&u.forEach(d=>{a[c][d]===void 0&&(a[c][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!e.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:o,tried:r,wait:i,callback:s});return}this.readingCalls++;const a=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&u&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,o,r+1,i*2,s)},i);return}s(c,u)},l=this.backend[o].bind(this.backend);if(l.length===2){try{const c=l(e,n);c&&typeof c.then=="function"?c.then(u=>a(null,u)).catch(a):a(null,c)}catch(c){a(c)}return}return l(e,n,a)}prepareLoading(e,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Y(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Y(n)&&(n=[n]);const i=this.queueLoad(e,n,o,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(e,n,o){this.prepareLoading(e,n,{},o)}reload(e,n,o){this.prepareLoading(e,n,{reload:!0},o)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const o=e.split("|"),r=o[0],i=o[1];this.read(r,i,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${n}loading namespace ${i} for language ${r} failed`,s),!s&&a&&this.logger.log(`${n}loaded namespace ${i} for language ${r}`,a),this.loaded(e,s,a)})}saveMissing(e,n,o,r,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${o}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if(this.backend&&this.backend.create){const l={...s,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(e,n,o,r,l):u=c(e,n,o,r),u&&typeof u.then=="function"?u.then(d=>a(null,d)).catch(a):a(null,u)}catch(u){a(u)}else c(e,n,o,r,a,l)}!e||!e[0]||this.store.addResource(e[0],n,o,r)}}}const wv=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),Y(t[1])&&(e.defaultValue=t[1]),Y(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(o=>{e[o]=n[o]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),vv=t=>(Y(t.ns)&&(t.ns=[t.ns]),Y(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),Y(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),tc=()=>{},sT=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class us extends Xl{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=vv(e),this.services={},this.logger=Ft,this.modules={external:[]},sT(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(o=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(Y(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const r=wv();this.options={...r,...this.options,...vv(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Ft.init(i(this.modules.logger),this.options):Ft.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=oT);const d=new gv(this.options);this.store=new fv(this.options.resources,this.options);const m=this.services;m.logger=Ft,m.resourceStore=this.store,m.languageUtils=d,m.pluralResolver=new eT(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(m.formatter=i(u),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new tT(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new iT(i(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(f){for(var p=arguments.length,g=new Array(p>1?p-1:0),h=1;h<p;h++)g[h-1]=arguments[h];e.emit(f,...g)}),this.modules.languageDetector&&(m.languageDetector=i(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=i(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new ec(this.services,this.options),this.translator.on("*",function(f){for(var p=arguments.length,g=new Array(p>1?p-1:0),h=1;h<p;h++)g[h-1]=arguments[h];e.emit(f,...g)}),this.modules.external.forEach(f=>{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,o||(o=tc),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(u=>{this[u]=function(){return e.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return e.store[u](...arguments),e}});const l=ls(),c=()=>{const u=(d,m)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(m),o(d,m)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tc;const r=Y(e)?e:this.language;if(typeof e=="function"&&(o=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();const i=[],s=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(c=>{c!=="cimode"&&i.indexOf(c)<0&&i.push(c)})};r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>s(l)),this.options.preload&&this.options.preload.forEach(a=>s(a)),this.services.backendConnector.load(i,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(a)})}else o(null)}reloadResources(e,n,o){const r=ls();return typeof e=="function"&&(o=e,e=void 0),typeof n=="function"&&(o=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),o||(o=tc),this.services.backendConnector.reload(e,n,i=>{r.resolve(),o(i)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&pv.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let n=0;n<this.languages.length;n++){const o=this.languages[n];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}changeLanguage(e,n){var o=this;this.isLanguageChangingTo=e;const r=ls();this.emit("languageChanging",e);const i=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},s=(l,c)=>{c?(i(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,r.resolve(function(){return o.t(...arguments)}),n&&n(l,function(){return o.t(...arguments)})},a=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const c=Y(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||i(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,u=>{s(u,c)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),r}getFixedT(e,n,o){var r=this;const i=function(s,a){let l;if(typeof a!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),d=2;d<c;d++)u[d-2]=arguments[d];l=r.options.overloadTranslationOptionHandler([s,a].concat(u))}else l={...a};l.lng=l.lng||i.lng,l.lngs=l.lngs||i.lngs,l.ns=l.ns||i.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||o||i.keyPrefix);const m=r.options.keySeparator||".";let f;return l.keyPrefix&&Array.isArray(s)?f=s.map(p=>`${l.keyPrefix}${m}${p}`):f=l.keyPrefix?`${l.keyPrefix}${m}${s}`:s,r.t(f,l)};return Y(e)?i.lng=e:i.lngs=e,i.ns=n,i.keyPrefix=o,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const o=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const s=(a,l)=>{const c=this.services.backendConnector.state[`${a}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const a=n.precheck(this,s);if(a!==void 0)return a}return!!(this.hasResourceBundle(o,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(o,e)&&(!r||s(i,e)))}loadNamespaces(e,n){const o=ls();return this.options.ns?(Y(e)&&(e=[e]),e.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{o.resolve(),n&&n(r)}),o):(n&&n(),Promise.resolve())}loadLanguages(e,n){const o=ls();Y(e)&&(e=[e]);const r=this.options.preload||[],i=e.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return i.length?(this.options.preload=r.concat(i),this.loadResources(s=>{o.resolve(),n&&n(s)}),o):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=this.services&&this.services.languageUtils||new gv(wv());return n.indexOf(o.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new us(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:tc;const o=e.forkResourceStore;o&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new us(r);return(e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},o&&(i.store=new fv(this.store.data,r),i.services.resourceStore=i.store),i.translator=new ec(i.services,r),i.translator.on("*",function(a){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];i.emit(a,...c)}),i.init(r,n),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Sv=us.createInstance();Sv.createInstance=us.createInstance;var aT=Sv;const Sr=CS(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var gf={exports:{}},yf={},$v={exports:{}};(function(t){var e=Sr,n=Sr;function o(i){return n.existsSync(e.join(i,"package.json"))}function r(i,s){if(i=i||t.parent.filename,s=s||o,typeof i=="string"&&(i[i.length-1]!==e.sep&&(i+=e.sep),i=i.split(e.sep)),!i.length)throw new Error("package.json not found in path");i.pop();var a=i.join(e.sep);try{if(s(a))return a}catch{}return r(i,s)}t.exports=r})($v);var lT=$v.exports,kv={exports:{}},xv=Object.prototype.toString,Cv=function(e){var n=xv.call(e),o=n==="[object Arguments]";return o||(o=n!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&xv.call(e.callee)==="[object Function]"),o},bf,Ev;function cT(){if(Ev)return bf;Ev=1;var t;if(!Object.keys){var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,o=Cv,r=Object.prototype.propertyIsEnumerable,i=!r.call({toString:null},"toString"),s=r.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(m){var f=m.constructor;return f&&f.prototype===m},c={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},u=function(){if(typeof window>"u")return!1;for(var m in window)try{if(!c["$"+m]&&e.call(window,m)&&window[m]!==null&&typeof window[m]=="object")try{l(window[m])}catch{return!0}}catch{return!0}return!1}(),d=function(m){if(typeof window>"u"||!u)return l(m);try{return l(m)}catch{return!1}};t=function(f){var p=f!==null&&typeof f=="object",g=n.call(f)==="[object Function]",h=o(f),y=p&&n.call(f)==="[object String]",w=[];if(!p&&!g&&!h)throw new TypeError("Object.keys called on a non-object");var v=s&&g;if(y&&f.length>0&&!e.call(f,0))for(var S=0;S<f.length;++S)w.push(String(S));if(h&&f.length>0)for(var C=0;C<f.length;++C)w.push(String(C));else for(var $ in f)!(v&&$==="prototype")&&e.call(f,$)&&w.push(String($));if(i)for(var k=d(f),N=0;N<a.length;++N)!(k&&a[N]==="constructor")&&e.call(f,a[N])&&w.push(a[N]);return w}}return bf=t,bf}var uT=Array.prototype.slice,dT=Cv,Nv=Object.keys,nc=Nv?function(e){return Nv(e)}:cT(),Av=Object.keys;nc.shim=function(){if(Object.keys){var e=function(){var n=Object.keys(arguments);return n&&n.length===arguments.length}(1,2);e||(Object.keys=function(o){return dT(o)?Av(uT.call(o)):Av(o)})}else Object.keys=nc;return Object.keys||nc};var mT=nc,Ov=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),o=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var r=42;e[n]=r;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,n);if(a.value!==r||a.enumerable!==!0)return!1}return!0},wf=Object,fT=Error,pT=EvalError,hT=RangeError,gT=ReferenceError,yT=SyntaxError,Rv=TypeError,bT=URIError,wT=Math.abs,vT=Math.floor,ST=Math.max,$T=Math.min,kT=Math.pow,xT=Math.round,CT=Number.isNaN||function(e){return e!==e},ET=CT,NT=function(e){return ET(e)||e===0?e:e<0?-1:1},AT=Object.getOwnPropertyDescriptor,oc=AT;if(oc)try{oc([],"length")}catch{oc=null}var Dv=oc,rc=Object.defineProperty||!1;if(rc)try{rc({},"a",{value:1})}catch{rc=!1}var OT=rc,vf,Tv;function RT(){if(Tv)return vf;Tv=1;var t=typeof Symbol<"u"&&Symbol,e=Ov;return vf=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},vf}var Sf,Mv;function jv(){return Mv||(Mv=1,Sf=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Sf}var $f,Pv;function Iv(){if(Pv)return $f;Pv=1;var t=wf;return $f=t.getPrototypeOf||null,$f}var DT="Function.prototype.bind called on incompatible ",TT=Object.prototype.toString,MT=Math.max,jT="[object Function]",Lv=function(e,n){for(var o=[],r=0;r<e.length;r+=1)o[r]=e[r];for(var i=0;i<n.length;i+=1)o[i+e.length]=n[i];return o},PT=function(e,n){for(var o=[],r=n,i=0;r<e.length;r+=1,i+=1)o[i]=e[r];return o},IT=function(t,e){for(var n="",o=0;o<t.length;o+=1)n+=t[o],o+1<t.length&&(n+=e);return n},LT=function(e){var n=this;if(typeof n!="function"||TT.apply(n)!==jT)throw new TypeError(DT+n);for(var o=PT(arguments,1),r,i=function(){if(this instanceof r){var u=n.apply(this,Lv(o,arguments));return Object(u)===u?u:this}return n.apply(e,Lv(o,arguments))},s=MT(0,n.length-o.length),a=[],l=0;l<s;l++)a[l]="$"+l;if(r=Function("binder","return function ("+IT(a,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var c=function(){};c.prototype=n.prototype,r.prototype=new c,c.prototype=null}return r},zT=LT,ic=Function.prototype.bind||zT,kf=Function.prototype.call,xf,zv;function Bv(){return zv||(zv=1,xf=Function.prototype.apply),xf}var BT=typeof Reflect<"u"&&Reflect&&Reflect.apply,FT=ic,HT=Bv(),VT=kf,_T=BT,UT=_T||FT.call(VT,HT),YT=ic,JT=Rv,KT=kf,WT=UT,Fv=function(e){if(e.length<1||typeof e[0]!="function")throw new JT("a function is required");return WT(YT,KT,e)},Cf,Hv;function qT(){if(Hv)return Cf;Hv=1;var t=Fv,e=Dv,n;try{n=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var o=!!n&&e&&e(Object.prototype,"__proto__"),r=Object,i=r.getPrototypeOf;return Cf=o&&typeof o.get=="function"?t([o.get]):typeof i=="function"?function(a){return i(a==null?a:r(a))}:!1,Cf}var Ef,Vv;function GT(){if(Vv)return Ef;Vv=1;var t=jv(),e=Iv(),n=qT();return Ef=t?function(r){return t(r)}:e?function(r){if(!r||typeof r!="object"&&typeof r!="function")throw new TypeError("getProto: not an object");return e(r)}:n?function(r){return n(r)}:null,Ef}var Nf,_v;function QT(){if(_v)return Nf;_v=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,n=ic;return Nf=n.call(t,e),Nf}var G,ZT=wf,XT=fT,e2=pT,t2=hT,n2=gT,$r=yT,kr=Rv,o2=bT,r2=wT,i2=vT,s2=ST,a2=$T,l2=kT,c2=xT,u2=NT,Uv=Function,Af=function(t){try{return Uv('"use strict"; return ('+t+").constructor;")()}catch{}},ds=Dv,d2=OT,Of=function(){throw new kr},m2=ds?function(){try{return arguments.callee,Of}catch{try{return ds(arguments,"callee").get}catch{return Of}}}():Of,xr=RT()(),Ee=GT(),f2=Iv(),p2=jv(),Yv=Bv(),ms=kf,Cr={},h2=typeof Uint8Array>"u"||!Ee?G:Ee(Uint8Array),ko={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?G:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?G:ArrayBuffer,"%ArrayIteratorPrototype%":xr&&Ee?Ee([][Symbol.iterator]()):G,"%AsyncFromSyncIteratorPrototype%":G,"%AsyncFunction%":Cr,"%AsyncGenerator%":Cr,"%AsyncGeneratorFunction%":Cr,"%AsyncIteratorPrototype%":Cr,"%Atomics%":typeof Atomics>"u"?G:Atomics,"%BigInt%":typeof BigInt>"u"?G:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?G:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?G:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?G:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":XT,"%eval%":eval,"%EvalError%":e2,"%Float16Array%":typeof Float16Array>"u"?G:Float16Array,"%Float32Array%":typeof Float32Array>"u"?G:Float32Array,"%Float64Array%":typeof Float64Array>"u"?G:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?G:FinalizationRegistry,"%Function%":Uv,"%GeneratorFunction%":Cr,"%Int8Array%":typeof Int8Array>"u"?G:Int8Array,"%Int16Array%":typeof Int16Array>"u"?G:Int16Array,"%Int32Array%":typeof Int32Array>"u"?G:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":xr&&Ee?Ee(Ee([][Symbol.iterator]())):G,"%JSON%":typeof JSON=="object"?JSON:G,"%Map%":typeof Map>"u"?G:Map,"%MapIteratorPrototype%":typeof Map>"u"||!xr||!Ee?G:Ee(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":ZT,"%Object.getOwnPropertyDescriptor%":ds,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?G:Promise,"%Proxy%":typeof Proxy>"u"?G:Proxy,"%RangeError%":t2,"%ReferenceError%":n2,"%Reflect%":typeof Reflect>"u"?G:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?G:Set,"%SetIteratorPrototype%":typeof Set>"u"||!xr||!Ee?G:Ee(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?G:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":xr&&Ee?Ee(""[Symbol.iterator]()):G,"%Symbol%":xr?Symbol:G,"%SyntaxError%":$r,"%ThrowTypeError%":m2,"%TypedArray%":h2,"%TypeError%":kr,"%Uint8Array%":typeof Uint8Array>"u"?G:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?G:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?G:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?G:Uint32Array,"%URIError%":o2,"%WeakMap%":typeof WeakMap>"u"?G:WeakMap,"%WeakRef%":typeof WeakRef>"u"?G:WeakRef,"%WeakSet%":typeof WeakSet>"u"?G:WeakSet,"%Function.prototype.call%":ms,"%Function.prototype.apply%":Yv,"%Object.defineProperty%":d2,"%Object.getPrototypeOf%":f2,"%Math.abs%":r2,"%Math.floor%":i2,"%Math.max%":s2,"%Math.min%":a2,"%Math.pow%":l2,"%Math.round%":c2,"%Math.sign%":u2,"%Reflect.getPrototypeOf%":p2};if(Ee)try{null.error}catch(t){var g2=Ee(Ee(t));ko["%Error.prototype%"]=g2}var y2=function t(e){var n;if(e==="%AsyncFunction%")n=Af("async function () {}");else if(e==="%GeneratorFunction%")n=Af("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=Af("async function* () {}");else if(e==="%AsyncGenerator%"){var o=t("%AsyncGeneratorFunction%");o&&(n=o.prototype)}else if(e==="%AsyncIteratorPrototype%"){var r=t("%AsyncGenerator%");r&&Ee&&(n=Ee(r.prototype))}return ko[e]=n,n},Jv={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},fs=ic,sc=QT(),b2=fs.call(ms,Array.prototype.concat),w2=fs.call(Yv,Array.prototype.splice),Kv=fs.call(ms,String.prototype.replace),ac=fs.call(ms,String.prototype.slice),v2=fs.call(ms,RegExp.prototype.exec),S2=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$2=/\\(\\)?/g,k2=function(e){var n=ac(e,0,1),o=ac(e,-1);if(n==="%"&&o!=="%")throw new $r("invalid intrinsic syntax, expected closing `%`");if(o==="%"&&n!=="%")throw new $r("invalid intrinsic syntax, expected opening `%`");var r=[];return Kv(e,S2,function(i,s,a,l){r[r.length]=a?Kv(l,$2,"$1"):s||i}),r},x2=function(e,n){var o=e,r;if(sc(Jv,o)&&(r=Jv[o],o="%"+r[0]+"%"),sc(ko,o)){var i=ko[o];if(i===Cr&&(i=y2(o)),typeof i>"u"&&!n)throw new kr("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:i}}throw new $r("intrinsic "+e+" does not exist!")},C2=function(e,n){if(typeof e!="string"||e.length===0)throw new kr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new kr('"allowMissing" argument must be a boolean');if(v2(/^%?[^%]*%?$/,e)===null)throw new $r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var o=k2(e),r=o.length>0?o[0]:"",i=x2("%"+r+"%",n),s=i.name,a=i.value,l=!1,c=i.alias;c&&(r=c[0],w2(o,b2([0,1],c)));for(var u=1,d=!0;u<o.length;u+=1){var m=o[u],f=ac(m,0,1),p=ac(m,-1);if((f==='"'||f==="'"||f==="`"||p==='"'||p==="'"||p==="`")&&f!==p)throw new $r("property names with quotes must have matching quotes");if((m==="constructor"||!d)&&(l=!0),r+="."+m,s="%"+r+"%",sc(ko,s))a=ko[s];else if(a!=null){if(!(m in a)){if(!n)throw new kr("base intrinsic for "+e+" exists, but the property is not available.");return}if(ds&&u+1>=o.length){var g=ds(a,m);d=!!g,d&&"get"in g&&!("originalValue"in g.get)?a=g.get:a=a[m]}else d=sc(a,m),a=a[m];d&&!l&&(ko[s]=a)}}return a},Wv=C2,qv=Fv,E2=qv([Wv("%String.prototype.indexOf%")]),N2=function(e,n){var o=Wv(e,!!n);return typeof o=="function"&&E2(e,".prototype.")>-1?qv([o]):o},A2=mT,Gv=Ov(),Qv=N2,lc=wf,O2=Qv("Array.prototype.push"),Zv=Qv("Object.prototype.propertyIsEnumerable"),R2=Gv?lc.getOwnPropertySymbols:null,D2=function(e,n){if(e==null)throw new TypeError("target must be an object");var o=lc(e);if(arguments.length===1)return o;for(var r=1;r<arguments.length;++r){var i=lc(arguments[r]),s=A2(i),a=Gv&&(lc.getOwnPropertySymbols||R2);if(a)for(var l=a(i),c=0;c<l.length;++c){var u=l[c];Zv(i,u)&&O2(s,u)}for(var d=0;d<s.length;++d){var m=s[d];if(Zv(i,m)){var f=i[m];o[m]=f}}}return o},Rf=D2,T2=function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),n={},o=0;o<e.length;++o)n[e[o]]=e[o];var r=Object.assign({},n),i="";for(var s in r)i+=s;return t!==i},M2=function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch{return t[1]==="y"}return!1},j2=function(){return!Object.assign||T2()||M2()?Rf:Object.assign},Xv={},P2=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"},Df={exports:{}};typeof Object.create=="function"?Df.exports=function(e,n){e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Df.exports=function(e,n){e.super_=n;var o=function(){};o.prototype=n.prototype,e.prototype=new o,e.prototype.constructor=e};var I2=Df.exports;(function(t){var e=/%[sdj%]/g;t.format=function(E){if(!v(E)){for(var A=[],j=0;j<arguments.length;j++)A.push(r(arguments[j]));return A.join(" ")}for(var j=1,q=arguments,D=q.length,P=String(E).replace(e,function(F){if(F==="%%")return"%";if(j>=D)return F;switch(F){case"%s":return String(q[j++]);case"%d":return Number(q[j++]);case"%j":try{return JSON.stringify(q[j++])}catch{return"[Circular]"}default:return F}}),L=q[j];j<D;L=q[++j])h(L)||!k(L)?P+=" "+L:P+=" "+r(L);return P},t.deprecate=function(E,A){if(C(tt.process))return function(){return t.deprecate(E,A).apply(this,arguments)};if(process.noDeprecation===!0)return E;var j=!1;function q(){if(!j){if(process.throwDeprecation)throw new Error(A);process.traceDeprecation?console.trace(A):console.error(A),j=!0}return E.apply(this,arguments)}return q};var n={},o;t.debuglog=function(E){if(C(o)&&(o=process.env.NODE_DEBUG||""),E=E.toUpperCase(),!n[E])if(new RegExp("\\b"+E+"\\b","i").test(o)){var A=process.pid;n[E]=function(){var j=t.format.apply(t,arguments);console.error("%s %d: %s",E,A,j)}}else n[E]=function(){};return n[E]};function r(E,A){var j={seen:[],stylize:s};return arguments.length>=3&&(j.depth=arguments[2]),arguments.length>=4&&(j.colors=arguments[3]),g(A)?j.showHidden=A:A&&t._extend(j,A),C(j.showHidden)&&(j.showHidden=!1),C(j.depth)&&(j.depth=2),C(j.colors)&&(j.colors=!1),C(j.customInspect)&&(j.customInspect=!0),j.colors&&(j.stylize=i),l(j,E,j.depth)}t.inspect=r,r.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},r.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function i(E,A){var j=r.styles[A];return j?"\x1B["+r.colors[j][0]+"m"+E+"\x1B["+r.colors[j][1]+"m":E}function s(E,A){return E}function a(E){var A={};return E.forEach(function(j,q){A[j]=!0}),A}function l(E,A,j){if(E.customInspect&&A&&H(A.inspect)&&A.inspect!==t.inspect&&!(A.constructor&&A.constructor.prototype===A)){var q=A.inspect(j,E);return v(q)||(q=l(E,q,j)),q}var D=c(E,A);if(D)return D;var P=Object.keys(A),L=a(P);if(E.showHidden&&(P=Object.getOwnPropertyNames(A)),O(A)&&(P.indexOf("message")>=0||P.indexOf("description")>=0))return u(A);if(P.length===0){if(H(A)){var F=A.name?": "+A.name:"";return E.stylize("[Function"+F+"]","special")}if($(A))return E.stylize(RegExp.prototype.toString.call(A),"regexp");if(N(A))return E.stylize(Date.prototype.toString.call(A),"date");if(O(A))return u(A)}var Q="",He=!1,St=["{","}"];if(p(A)&&(He=!0,St=["[","]"]),H(A)){var xo=A.name?": "+A.name:"";Q=" [Function"+xo+"]"}if($(A)&&(Q=" "+RegExp.prototype.toString.call(A)),N(A)&&(Q=" "+Date.prototype.toUTCString.call(A)),O(A)&&(Q=" "+u(A)),P.length===0&&(!He||A.length==0))return St[0]+Q+St[1];if(j<0)return $(A)?E.stylize(RegExp.prototype.toString.call(A),"regexp"):E.stylize("[Object]","special");E.seen.push(A);var Ht;return He?Ht=d(E,A,j,L,P):Ht=P.map(function(YM){return m(E,A,j,L,YM,He)}),E.seen.pop(),f(Ht,Q,St)}function c(E,A){if(C(A))return E.stylize("undefined","undefined");if(v(A)){var j="'"+JSON.stringify(A).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return E.stylize(j,"string")}if(w(A))return E.stylize(""+A,"number");if(g(A))return E.stylize(""+A,"boolean");if(h(A))return E.stylize("null","null")}function u(E){return"["+Error.prototype.toString.call(E)+"]"}function d(E,A,j,q,D){for(var P=[],L=0,F=A.length;L<F;++L)me(A,String(L))?P.push(m(E,A,j,q,String(L),!0)):P.push("");return D.forEach(function(Q){Q.match(/^\d+$/)||P.push(m(E,A,j,q,Q,!0))}),P}function m(E,A,j,q,D,P){var L,F,Q;if(Q=Object.getOwnPropertyDescriptor(A,D)||{value:A[D]},Q.get?Q.set?F=E.stylize("[Getter/Setter]","special"):F=E.stylize("[Getter]","special"):Q.set&&(F=E.stylize("[Setter]","special")),me(q,D)||(L="["+D+"]"),F||(E.seen.indexOf(Q.value)<0?(h(j)?F=l(E,Q.value,null):F=l(E,Q.value,j-1),F.indexOf(`
156
+ `)>-1&&(P?F=F.split(`
157
157
  `).map(function(He){return" "+He}).join(`
158
- `).substr(2):B=`
159
- `+B.split(`
158
+ `).substr(2):F=`
159
+ `+F.split(`
160
160
  `).map(function(He){return" "+He}).join(`
161
- `))):B=E.stylize("[Circular]","special")),C(L)){if(P&&D.match(/^\d+$/))return B;L=JSON.stringify(""+D),L.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(L=L.substr(1,L.length-2),L=E.stylize(L,"name")):(L=L.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),L=E.stylize(L,"string"))}return L+": "+B}function f(E,A,j){var q=E.reduce(function(D,P){return P.indexOf(`
161
+ `))):F=E.stylize("[Circular]","special")),C(L)){if(P&&D.match(/^\d+$/))return F;L=JSON.stringify(""+D),L.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(L=L.substr(1,L.length-2),L=E.stylize(L,"name")):(L=L.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),L=E.stylize(L,"string"))}return L+": "+F}function f(E,A,j){var q=E.reduce(function(D,P){return P.indexOf(`
162
162
  `)>=0,D+P.replace(/\u001b\[\d\d?m/g,"").length+1},0);return q>60?j[0]+(A===""?"":A+`
163
163
  `)+" "+E.join(`,
164
164
  `)+" "+j[1]:j[0]+A+" "+E.join(", ")+" "+j[1]}function p(E){return Array.isArray(E)}t.isArray=p;function g(E){return typeof E=="boolean"}t.isBoolean=g;function h(E){return E===null}t.isNull=h;function y(E){return E==null}t.isNullOrUndefined=y;function w(E){return typeof E=="number"}t.isNumber=w;function v(E){return typeof E=="string"}t.isString=v;function S(E){return typeof E=="symbol"}t.isSymbol=S;function C(E){return E===void 0}t.isUndefined=C;function $(E){return k(E)&&ne(E)==="[object RegExp]"}t.isRegExp=$;function k(E){return typeof E=="object"&&E!==null}t.isObject=k;function N(E){return k(E)&&ne(E)==="[object Date]"}t.isDate=N;function O(E){return k(E)&&(ne(E)==="[object Error]"||E instanceof Error)}t.isError=O;function H(E){return typeof E=="function"}t.isFunction=H;function ie(E){return E===null||typeof E=="boolean"||typeof E=="number"||typeof E=="string"||typeof E=="symbol"||typeof E>"u"}t.isPrimitive=ie,t.isBuffer=P2;function ne(E){return Object.prototype.toString.call(E)}function oe(E){return E<10?"0"+E.toString(10):E.toString(10)}var ye=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function de(){var E=new Date,A=[oe(E.getHours()),oe(E.getMinutes()),oe(E.getSeconds())].join(":");return[E.getDate(),ye[E.getMonth()],A].join(" ")}t.log=function(){console.log("%s - %s",de(),t.format.apply(t,arguments))},t.inherits=I2,t._extend=function(E,A){if(!A||!k(A))return E;for(var j=Object.keys(A),q=j.length;q--;)E[j[q]]=A[j[q]];return E};function me(E,A){return Object.prototype.hasOwnProperty.call(E,A)}})(Xv);var L2=j2();/*!
@@ -166,7 +166,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
166
166
  *
167
167
  * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
168
168
  * @license MIT
169
- */function eS(t,e){if(t===e)return 0;for(var n=t.length,o=e.length,r=0,i=Math.min(n,o);r<i;++r)if(t[r]!==e[r]){n=t[r],o=e[r];break}return n<o?-1:o<n?1:0}function ps(t){return tt.Buffer&&typeof tt.Buffer.isBuffer=="function"?tt.Buffer.isBuffer(t):!!(t!=null&&t._isBuffer)}var Et=Xv,z2=Object.prototype.hasOwnProperty,tS=Array.prototype.slice,nS=function(){return(function(){}).name==="foo"}();function oS(t){return Object.prototype.toString.call(t)}function rS(t){return ps(t)||typeof tt.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t?!!(t instanceof DataView||t.buffer&&t.buffer instanceof ArrayBuffer):!1}var te=kv.exports=lS,F2=/\s*function\s+([^\(\s]*)\s*/;function iS(t){if(Et.isFunction(t)){if(nS)return t.name;var e=t.toString(),n=e.match(F2);return n&&n[1]}}te.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=B2(this),this.generatedMessage=!0);var n=e.stackStartFunction||et;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var o=new Error;if(o.stack){var r=o.stack,i=iS(n),s=r.indexOf(`
169
+ */function eS(t,e){if(t===e)return 0;for(var n=t.length,o=e.length,r=0,i=Math.min(n,o);r<i;++r)if(t[r]!==e[r]){n=t[r],o=e[r];break}return n<o?-1:o<n?1:0}function ps(t){return tt.Buffer&&typeof tt.Buffer.isBuffer=="function"?tt.Buffer.isBuffer(t):!!(t!=null&&t._isBuffer)}var Et=Xv,z2=Object.prototype.hasOwnProperty,tS=Array.prototype.slice,nS=function(){return(function(){}).name==="foo"}();function oS(t){return Object.prototype.toString.call(t)}function rS(t){return ps(t)||typeof tt.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t?!!(t instanceof DataView||t.buffer&&t.buffer instanceof ArrayBuffer):!1}var te=kv.exports=lS,B2=/\s*function\s+([^\(\s]*)\s*/;function iS(t){if(Et.isFunction(t)){if(nS)return t.name;var e=t.toString(),n=e.match(B2);return n&&n[1]}}te.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=F2(this),this.generatedMessage=!0);var n=e.stackStartFunction||et;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var o=new Error;if(o.stack){var r=o.stack,i=iS(n),s=r.indexOf(`
170
170
  `+i);if(s>=0){var a=r.indexOf(`
171
- `,s+1);r=r.substring(a+1)}this.stack=r}}},Et.inherits(te.AssertionError,Error);function sS(t,e){return typeof t=="string"?t.length<e?t:t.slice(0,e):t}function aS(t){if(nS||!Et.isFunction(t))return Et.inspect(t);var e=iS(t),n=e?": "+e:"";return"[Function"+n+"]"}function B2(t){return sS(aS(t.actual),128)+" "+t.operator+" "+sS(aS(t.expected),128)}function et(t,e,n,o,r){throw new te.AssertionError({message:n,actual:t,expected:e,operator:o,stackStartFunction:r})}te.fail=et;function lS(t,e){t||et(t,!0,e,"==",te.ok)}te.ok=lS,te.equal=function(e,n,o){e!=n&&et(e,n,o,"==",te.equal)},te.notEqual=function(e,n,o){e==n&&et(e,n,o,"!=",te.notEqual)},te.deepEqual=function(e,n,o){Er(e,n,!1)||et(e,n,o,"deepEqual",te.deepEqual)},te.deepStrictEqual=function(e,n,o){Er(e,n,!0)||et(e,n,o,"deepStrictEqual",te.deepStrictEqual)};function Er(t,e,n,o){if(t===e)return!0;if(ps(t)&&ps(e))return eS(t,e)===0;if(Et.isDate(t)&&Et.isDate(e))return t.getTime()===e.getTime();if(Et.isRegExp(t)&&Et.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if((t===null||typeof t!="object")&&(e===null||typeof e!="object"))return n?t===e:t==e;if(rS(t)&&rS(e)&&oS(t)===oS(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return eS(new Uint8Array(t.buffer),new Uint8Array(e.buffer))===0;if(ps(t)!==ps(e))return!1;o=o||{actual:[],expected:[]};var r=o.actual.indexOf(t);return r!==-1&&r===o.expected.indexOf(e)?!0:(o.actual.push(t),o.expected.push(e),H2(t,e,n,o))}function cS(t){return Object.prototype.toString.call(t)=="[object Arguments]"}function H2(t,e,n,o){if(t==null||e===null||e===void 0)return!1;if(Et.isPrimitive(t)||Et.isPrimitive(e))return t===e;if(n&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var r=cS(t),i=cS(e);if(r&&!i||!r&&i)return!1;if(r)return t=tS.call(t),e=tS.call(e),Er(t,e,n);var s=pS(t),a=pS(e),l,c;if(s.length!==a.length)return!1;for(s.sort(),a.sort(),c=s.length-1;c>=0;c--)if(s[c]!==a[c])return!1;for(c=s.length-1;c>=0;c--)if(l=s[c],!Er(t[l],e[l],n,o))return!1;return!0}te.notDeepEqual=function(e,n,o){Er(e,n,!1)&&et(e,n,o,"notDeepEqual",te.notDeepEqual)},te.notDeepStrictEqual=uS;function uS(t,e,n){Er(t,e,!0)&&et(t,e,n,"notDeepStrictEqual",uS)}te.strictEqual=function(e,n,o){e!==n&&et(e,n,o,"===",te.strictEqual)},te.notStrictEqual=function(e,n,o){e===n&&et(e,n,o,"!==",te.notStrictEqual)};function dS(t,e){if(!t||!e)return!1;if(Object.prototype.toString.call(e)=="[object RegExp]")return e.test(t);try{if(t instanceof e)return!0}catch{}return Error.isPrototypeOf(e)?!1:e.call({},t)===!0}function V2(t){var e;try{t()}catch(n){e=n}return e}function mS(t,e,n,o){var r;if(typeof e!="function")throw new TypeError('"block" argument must be a function');typeof n=="string"&&(o=n,n=null),r=V2(e),o=(n&&n.name?" ("+n.name+").":".")+(o?" "+o:"."),t&&!r&&et(r,n,"Missing expected exception"+o);var i=typeof o=="string",s=!t&&Et.isError(r),a=!t&&r&&!n;if((s&&i&&dS(r,n)||a)&&et(r,n,"Got unwanted exception"+o),t&&r&&n&&!dS(r,n)||!t&&r)throw r}te.throws=function(t,e,n){mS(!0,t,e,n)},te.doesNotThrow=function(t,e,n){mS(!1,t,e,n)},te.ifError=function(t){if(t)throw t};function fS(t,e){t||et(t,!0,e,"==",fS)}te.strict=L2(fS,te,{equal:te.strictEqual,deepEqual:te.deepStrictEqual,notEqual:te.notStrictEqual,notDeepEqual:te.notDeepStrictEqual}),te.strict.strict=te.strict;var pS=Object.keys||function(t){var e=[];for(var n in t)z2.call(t,n)&&e.push(n);return e},_2=kv.exports,U2=_2,Y2=function(t){var e,n,o,r,i;for(e=Error.prepareStackTrace,Error.prepareStackTrace=function(s,a){return Error.prepareStackTrace=e,a},n=new Error().stack,i=0;i<n.length&&n[i].getFileName()!==__filename;)i++;U2(i<n.length,"Unexpected: unable to find caller/index.js in the stack"),t=!t||isNaN(t)?1:t>n.length-2?n.length-2:t,n=n.slice(i+t+1);do r=n.shift(),o=r&&r.getFileName();while(n.length&&o==="module.js");return o};const J2=Sr,K2=Sr,hS=lT,W2=Y2;yf.getCallerRoot=function(){try{return hS(W2(2))}catch{return}},yf.getProcessRoot=function(){let e=process.cwd();const n=K2.join(e,"current");try{J2.statSync(n).isDirectory()&&(e=n)}catch{}try{return hS(e)}catch{return}};var q2=yf,Tf={exports:{}},Mf,gS;function G2(){if(gS)return Mf;gS=1;var t=1e3,e=t*60,n=e*60,o=n*24,r=o*7,i=o*365.25;Mf=function(u,d){d=d||{};var m=typeof u;if(m==="string"&&u.length>0)return s(u);if(m==="number"&&isFinite(u))return d.long?l(u):a(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function s(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var m=parseFloat(d[1]),f=(d[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return m*i;case"weeks":case"week":case"w":return m*r;case"days":case"day":case"d":return m*o;case"hours":case"hour":case"hrs":case"hr":case"h":return m*n;case"minutes":case"minute":case"mins":case"min":case"m":return m*e;case"seconds":case"second":case"secs":case"sec":case"s":return m*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return}}}}function a(u){var d=Math.abs(u);return d>=o?Math.round(u/o)+"d":d>=n?Math.round(u/n)+"h":d>=e?Math.round(u/e)+"m":d>=t?Math.round(u/t)+"s":u+"ms"}function l(u){var d=Math.abs(u);return d>=o?c(u,d,o,"day"):d>=n?c(u,d,n,"hour"):d>=e?c(u,d,e,"minute"):d>=t?c(u,d,t,"second"):u+" ms"}function c(u,d,m,f){var p=d>=m*1.5;return Math.round(u/m)+" "+f+(p?"s":"")}return Mf}function Q2(t){n.debug=n,n.default=n,n.coerce=l,n.disable=s,n.enable=r,n.enabled=a,n.humanize=G2(),n.destroy=c,Object.keys(t).forEach(u=>{n[u]=t[u]}),n.names=[],n.skips=[],n.formatters={};function e(u){let d=0;for(let m=0;m<u.length;m++)d=(d<<5)-d+u.charCodeAt(m),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=e;function n(u){let d,m=null,f,p;function g(...h){if(!g.enabled)return;const y=g,w=Number(new Date),v=w-(d||w);y.diff=v,y.prev=d,y.curr=w,d=w,h[0]=n.coerce(h[0]),typeof h[0]!="string"&&h.unshift("%O");let S=0;h[0]=h[0].replace(/%([a-zA-Z%])/g,($,k)=>{if($==="%%")return"%";S++;const N=n.formatters[k];if(typeof N=="function"){const O=h[S];$=N.call(y,O),h.splice(S,1),S--}return $}),n.formatArgs.call(y,h),(y.log||n.log).apply(y,h)}return g.namespace=u,g.useColors=n.useColors(),g.color=n.selectColor(u),g.extend=o,g.destroy=n.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(f!==n.namespaces&&(f=n.namespaces,p=n.enabled(u)),p),set:h=>{m=h}}),typeof n.init=="function"&&n.init(g),g}function o(u,d){const m=n(this.namespace+(typeof d>"u"?":":d)+u);return m.log=this.log,m}function r(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];const d=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const m of d)m[0]==="-"?n.skips.push(m.slice(1)):n.names.push(m)}function i(u,d){let m=0,f=0,p=-1,g=0;for(;m<u.length;)if(f<d.length&&(d[f]===u[m]||d[f]==="*"))d[f]==="*"?(p=f,g=m,f++):(m++,f++);else if(p!==-1)f=p+1,g++,m=g;else return!1;for(;f<d.length&&d[f]==="*";)f++;return f===d.length}function s(){const u=[...n.names,...n.skips.map(d=>"-"+d)].join(",");return n.enable(""),u}function a(u){for(const d of n.skips)if(i(u,d))return!1;for(const d of n.names)if(i(u,d))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var Z2=Q2;(function(t,e){e.formatArgs=o,e.save=r,e.load=i,e.useColors=n,e.storage=s(),e.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let l;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(l=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(l[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(u++,m==="%c"&&(d=u))}),l.splice(d,0,c)}e.log=console.debug||console.log||(()=>{});function r(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function i(){let l;try{l=e.storage.getItem("debug")||e.storage.getItem("DEBUG")}catch{}return!l&&typeof process<"u"&&"env"in process&&(l=process.env.DEBUG),l}function s(){try{return localStorage}catch{}}t.exports=Z2(e);const{formatters:a}=t.exports;a.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}})(Tf,Tf.exports);var X2=Tf.exports;const eM=q2,yS=X2;gf.exports=function(e){const n=eM.getCallerRoot();let o;try{const r=$o("/node_modules/.pnpm/@tryghost+debug@2.1.0/node_modules/@tryghost/debug/lib")(n+"/package.json");r.alias?o=r.alias:o=r.name}catch{o="undefined"}return yS(o+":"+e)},gf.exports._base=yS;var tM=gf.exports,nM=tM;const oM=[{code:"af",label:"Afrikaans"},{code:"ar",label:"Arabic"},{code:"bg",label:"Bulgarian"},{code:"bn",label:"Bengali"},{code:"bs",label:"Bosnian"},{code:"ca",label:"Catalan"},{code:"cs",label:"Czech"},{code:"da",label:"Danish"},{code:"de",label:"German"},{code:"de-CH",label:"Swiss German"},{code:"el",label:"Greek"},{code:"en",label:"English"},{code:"eo",label:"Esperanto"},{code:"es",label:"Spanish"},{code:"et",label:"Estonian"},{code:"eu",label:"Basque"},{code:"fa",label:"Persian/Farsi"},{code:"fi",label:"Finnish"},{code:"fr",label:"French"},{code:"gd",label:"Gaelic (Scottish)"},{code:"he",label:"Hebrew"},{code:"hi",label:"Hindi"},{code:"hr",label:"Croatian"},{code:"hu",label:"Hungarian"},{code:"id",label:"Indonesian"},{code:"is",label:"Icelandic"},{code:"it",label:"Italian"},{code:"ja",label:"Japanese"},{code:"ko",label:"Korean"},{code:"kz",label:"Kazakh"},{code:"lt",label:"Lithuanian"},{code:"lv",label:"Latvian"},{code:"mk",label:"Macedonian"},{code:"mn",label:"Mongolian"},{code:"ms",label:"Malay"},{code:"nb",label:"Norwegian Bokmål"},{code:"ne",label:"Nepali"},{code:"nl",label:"Dutch"},{code:"nn",label:"Norwegian Nynorsk"},{code:"pa",label:"Punjabi"},{code:"pl",label:"Polish"},{code:"pt",label:"Portuguese"},{code:"pt-BR",label:"Portuguese (Brazil)"},{code:"ro",label:"Romanian"},{code:"ru",label:"Russian"},{code:"si",label:"Sinhala"},{code:"sk",label:"Slovak"},{code:"sl",label:"Slovenian"},{code:"sq",label:"Albanian"},{code:"sr",label:"Serbian"},{code:"sr-Cyrl",label:"Serbian (Cyrillic)"},{code:"sv",label:"Swedish"},{code:"sw",label:"Swahili"},{code:"ta",label:"Tamil"},{code:"th",label:"Thai"},{code:"tr",label:"Turkish"},{code:"uk",label:"Ukrainian"},{code:"ur",label:"Urdu"},{code:"uz",label:"Uzbek"},{code:"vi",label:"Vietnamese"},{code:"zh",label:"Chinese"},{code:"zh-Hant",label:"Traditional Chinese"}],rM=aT,bS=Sr,jf=Sr,Pf=nM("i18n"),wS=oM,vS=wS.map(t=>t.code);function SS(t,e){return t.reduce((n,o)=>{let r;try{r=$o("/ghost/i18n/lib")(`../locales/${o}/${e}.json`)}catch{r=$o("/ghost/i18n/lib")(`../locales/en/${e}.json`)}return n[o]={[e]:{...r,...r.default&&typeof r.default=="object"?r.default:{}}},n},{})}function iM(t,e){if(!e)return{[t]:{theme:{}}};let n=[];try{n=jf.readdirSync(e).filter(i=>i.endsWith(".json")).map(i=>i.replace(".json",""))}catch{n=[t,"en"]}return[...new Set([t,...n,"en"])].reduce((r,i)=>{let s,a=!1;const l=bS.join(e,`${i}.json`);if(jf.existsSync(l))try{delete require.cache[$o("/ghost/i18n/lib").resolve(l)],s=$o("/ghost/i18n/lib")(l)}catch{Pf(`Error loading theme locale file: ${i}`),a=!0}else a=!0;if(a)if(i!=="en")try{const c=bS.join(e,"en.json");jf.existsSync(c)?(delete require.cache[$o("/ghost/i18n/lib").resolve(c)],s=$o("/ghost/i18n/lib")(c)):s={}}catch{s={}}else Pf("Theme en.json file not found"),s={};return r[i]={theme:{...s,...s.default&&typeof s.default=="object"?s.default:{}}},r},{})}as.exports=(t="en",e="portal",n={})=>{const o=rM.createInstance(),r={prefix:"{",suffix:"}"};e==="theme"&&(r.escapeValue=!1);let i;return e!=="theme"?i=SS(vS,e):(Pf(`generateThemeResources: ${t}, ${n.themePath}`),i=iM(t,n.themePath)),o.init({lng:t,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:{no:["nb","en"],default:["en"]},ns:e,defaultNS:e,interpolation:r,resources:i}),o},as.exports.SUPPORTED_LOCALES=vS,as.exports.LOCALE_DATA=wS,as.exports.generateResources=SS;var sM=as.exports;const hs=sM;br.exports=hs,br.exports.default=hs,br.exports.LOCALE_DATA=hs.LOCALE_DATA,br.exports.SUPPORTED_LOCALES=hs.SUPPORTED_LOCALES,br.exports.generateResources=hs.generateResources;var aM=br.exports;const lM=At(aM);function cM({siteUrl:t=window.location.origin,apiUrl:e,apiKey:n}){const o="members/api";function r({type:c,resource:u,params:d=""}){return`${t.replace(/\/$/,"")}/${o}/${u}/${d}`}function i({resource:c,params:u={}}){if(e&&n){const d=new URLSearchParams({...u,key:n});return`${e.replace(/\/$/,"")}/${c}/?${d.toString()}`}return""}function s({url:c,method:u="GET",headers:d={},credentials:m=void 0,body:f=void 0}){return fetch(c,{method:u,headers:d,credentials:m,body:f})}let a=null;const l={site:{settings(){const c=i({resource:"settings"});return s({url:c,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(u){if(u.ok)return u.json();throw new Error("Failed to fetch site data")})}},member:{identity(){const c=r({type:"members",resource:"session"});return s({url:c,credentials:"same-origin"}).then(function(u){return!u.ok||u.status===204?null:u.text()})},sessionData(){const c=r({type:"members",resource:"member"});return s({url:c,credentials:"same-origin"}).then(function(u){return!u.ok||u.status===204?null:u.json()})},update({name:c,expertise:u}){const d=r({type:"members",resource:"member"});return s({url:d,method:"PUT",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({name:c,expertise:u})}).then(function(f){return f.ok?f.json():null})}},comments:{async count({postId:c}){const u=c?`?ids=${c}`:"",d=r({type:"members",resource:"comments/counts",params:u}),f=await(await s({url:d,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"})).json();return c?f[c]:f},browse({page:c,postId:u,order:d}){let m=null;a&&!d&&(m=`created_at:<=${a}`);const f=new URLSearchParams;f.set("limit","20"),m&&f.set("filter",m),f.set("page",c.toString()),d&&f.set("order",d);const p=r({type:"members",resource:`comments/post/${u}`,params:`?${f.toString()}`}),g=s({url:p,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"}).then(function(h){if(h.ok)return h.json();throw new Error("Failed to fetch comments")});return a||g.then(h=>{const y=h.comments[0];y&&(a=y.created_at)}),g},async replies({commentId:c,afterReplyId:u,limit:d}){var g,h,y;if(d==="all"){const w=[];let v=u,S=!0;for(;S;){const C=await this.replies({commentId:c,afterReplyId:v,limit:100});w.push(...C.comments),S=!!((h=(g=C.meta)==null?void 0:g.pagination)!=null&&h.next)&&C.comments.length>0,C.comments.length>0&&(v=(y=C.comments[C.comments.length-1])==null?void 0:y.id)}return{comments:w,meta:{pagination:{next:!1}}}}const m=new URLSearchParams;m.set("limit",(d??5).toString()),u&&m.set("filter",`id:>'${u}'`);const f=r({type:"members",resource:`comments/${c}/replies`,params:`?${m.toString()}`}),p=await s({url:f,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"});if(p.ok)return p.json();throw new Error("Failed to fetch replies")},add({comment:c}){const u={comments:[c]},d=r({type:"members",resource:"comments"});return s({url:d,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)}).then(function(m){if(m.ok)return m.json();throw new Error("Failed to add comment")})},edit({comment:c}){const u={comments:[c]},d=r({type:"members",resource:`comments/${c.id}`});return s({url:d,method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)}).then(function(m){if(m.ok)return m.json();throw new Error("Failed to edit comment")})},read(c){const u=r({type:"members",resource:`comments/${c}`});return s({url:u,method:"GET",credentials:"same-origin"}).then(function(d){if(d.ok)return d.json();throw new Error("Failed to read comment")})},like({comment:c}){const u=r({type:"members",resource:`comments/${c.id}/like`});return s({url:u,method:"POST",headers:{"Content-Type":"application/json"}}).then(function(d){if(d.ok)return"Success";throw new Error("Failed to like comment")})},unlike({comment:c}){const u={comments:[c]},d=r({type:"members",resource:`comments/${c.id}/like`});return s({url:d,method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)}).then(function(m){if(m.ok)return"Success";throw new Error("Failed to unlike comment")})},report({comment:c}){const u=r({type:"members",resource:`comments/${c.id}/report`});return s({url:u,method:"POST",headers:{"Content-Type":"application/json"}}).then(function(d){if(d.ok)return"Success";throw new Error("Failed to report comment")})}},init:()=>{}};return l.init=async()=>{const[c]=await Promise.all([l.member.sessionData()]);let u={},d=null;try{const m=await l.site.settings();m.settings.labs&&Object.assign(u,m.settings.labs),d=m.settings.support_email_address||null}catch{u={}}return{member:c,labs:u,supportEmail:d}},l}async function uM({state:t,api:e,options:n,order:o}){var l;let r=1;t.pagination&&t.pagination.page&&(r=t.pagination.page+1);let i;return t.admin&&t.adminApi?i=await t.adminApi.browse({page:r,postId:n.postId,order:o||t.order,memberUuid:(l=t.member)==null?void 0:l.uuid}):i=await e.comments.browse({page:r,postId:n.postId,order:o||t.order}),{comments:[...t.comments,...i.comments].filter((c,u,d)=>d.findIndex(m=>m.id===c.id)===u),pagination:i.meta.pagination}}function dM({data:t}){return{commentsIsLoading:t}}async function mM({state:t,data:{order:e},options:n,api:o,dispatchAction:r}){var i;r("setCommentsIsLoading",!0);try{let s;return t.admin&&t.adminApi?s=await t.adminApi.browse({page:1,postId:n.postId,order:e,memberUuid:(i=t.member)==null?void 0:i.uuid}):s=await o.comments.browse({page:1,postId:n.postId,order:e}),{comments:[...s.comments],pagination:s.meta.pagination,order:e,commentsIsLoading:!1}}catch(s){throw console.error("Failed to set order:",s),t.commentsIsLoading=!1,s}}async function $S({state:t,api:e,data:{comment:n,limit:o},isReply:r}){var l,c,u,d;const i=async(m,f)=>{var p;return t.admin&&t.adminApi&&!r?await t.adminApi.replies({commentId:n.id,afterReplyId:m,limit:f,memberUuid:(p=t.member)==null?void 0:p.uuid}):await e.comments.replies({commentId:n.id,afterReplyId:m,limit:f})};let s=n.replies&&n.replies.length>0?(l=n.replies[n.replies.length-1])==null?void 0:l.id:void 0,a=[];if(o==="all"){let m=!0;for(;m;){const f=await i(s,100);a.push(...f.comments),m=!!((u=(c=f.meta)==null?void 0:c.pagination)!=null&&u.next),f.comments&&f.comments.length>0?s=(d=f.comments[f.comments.length-1])==null?void 0:d.id:m=!1}}else a=(await i(s,o||100)).comments;return{comments:t.comments.map(m=>m.id===n.id?{...n,replies:[...n.replies,...a]}:m)}}async function fM({state:t,api:e,data:n}){const r=(await e.comments.add({comment:n})).comments[0];return{comments:[r,...t.comments],commentCount:t.commentCount+1,commentIdToScrollTo:r.id}}async function pM({state:t,api:e,data:{reply:n,parent:o}}){const i=(await e.comments.add({comment:{...n,parent_id:o.id}})).comments[0],s=await e.comments.replies({commentId:o.id,limit:"all"});return{comments:t.comments.map(a=>a.id===o.id?{...a,replies:s.comments,count:{...a.count,replies:s.comments.length}}:a),commentCount:t.commentCount+1,commentIdToScrollTo:i.id}}async function hM({state:t,data:e}){return t.adminApi&&await t.adminApi.hideComment(e.id),{comments:t.comments.map(n=>{const o=n.replies.map(r=>r.id===e.id?{...r,status:"hidden"}:r);return n.id===e.id?{...n,status:"hidden",replies:o}:{...n,replies:o}}),commentCount:t.commentCount-1}}async function gM({state:t,api:e,data:n}){var i;t.adminApi&&await t.adminApi.showComment({id:n.id});let o;t.admin&&t.adminApi?o=await t.adminApi.read({commentId:n.id,memberUuid:(i=t.member)==null?void 0:i.uuid}):o=await e.comments.read(n.id);const r=o.comments[0];return{comments:t.comments.map(s=>{const a=s.replies.map(l=>l.id===n.id?r:l);return s.id===n.id?r:{...s,replies:a}}),commentCount:t.commentCount+1}}async function yM({state:t,data:e}){return{comments:t.comments.map(n=>{const o=n.replies.map(r=>r.id===e.id?{...r,liked:e.liked,count:{...r.count,likes:e.liked?r.count.likes+1:r.count.likes-1}}:r);return n.id===e.id?{...n,liked:e.liked,replies:o,count:{...n.count,likes:e.liked?n.count.likes+1:n.count.likes-1}}:{...n,replies:o}})}}async function bM({api:t,data:e,dispatchAction:n}){n("updateCommentLikeState",{id:e.id,liked:!0});try{return await t.comments.like({comment:e}),{}}catch{n("updateCommentLikeState",{id:e.id,liked:!1})}}async function wM({api:t,data:e,dispatchAction:n}){n("updateCommentLikeState",{id:e.id,liked:!1});try{return await t.comments.unlike({comment:e}),{}}catch{n("updateCommentLikeState",{id:e.id,liked:!0})}}async function vM({api:t,data:e}){return await t.comments.report({comment:e}),{}}async function SM({state:t,api:e,data:n,dispatchAction:o}){await e.comments.edit({comment:{id:n.id,status:"deleted"}});const r=t.comments.find(i=>i.id===n.id);return r&&(!r.replies||r.replies.length===0)?(o("setOrder",{order:t.order}),null):{comments:t.comments.map(i=>{var u;if(i.id===n.id)return i.replies.length>0?{...i,status:"deleted"}:null;const s=i.replies.length,a=i.replies.filter(d=>d.id!==n.id),l=s!==a.length,c={...i,replies:a};return l&&((u=i.count)!=null&&u.replies)&&(i.count.replies=i.count.replies-1),c}).filter(Boolean),commentCount:t.commentCount-1}}async function $M({state:t,api:e,data:{comment:n,parent:o}}){return n=(await e.comments.edit({comment:n})).comments[0],{comments:t.comments.map(i=>o&&o.id===i.id?{...i,replies:i.replies.map(s=>s.id===n.id?n:s)}:i.id===n.id?n:i)}}async function kM({data:t,state:e,api:n}){var l,c;const{name:o,expertise:r}=t,i={},s=(l=e==null?void 0:e.member)==null?void 0:l.name;o&&s!==o&&(i.name=o);const a=(c=e==null?void 0:e.member)==null?void 0:c.expertise;if(r!==void 0&&a!==r&&(i.expertise=r),Object.keys(i).length>0)try{const u=await n.member.update(i);if(!u)throw new Error("Failed to update member");return{member:u,success:!0}}catch(u){return{success:!1,error:u}}return null}function xM({data:t}){return{popup:t}}function CM(){return{popup:null}}async function EM({data:t,api:e,state:n}){let o={};const r=t.parent_id||t.id;if(t.type==="reply"&&!n.openCommentForms.some(a=>a.id===r||a.parent_id===r)){const a=n.comments.find(l=>l.id===r);if(a)try{const l=await $S({state:n,api:e,data:{comment:a,limit:"all"},isReply:!0});o={...o,...l}}catch(l){console.error("[Comments] Failed to load replies before opening form:",l)}}const i=n.openCommentForms.filter(a=>a.hasUnsavedChanges),s=i.findIndex(a=>a.id===t.id);return s>-1?(i[s]=t,{openCommentForms:i,...o}):{openCommentForms:[...i,t],...o}}function NM({data:t}){return{commentIdToHighlight:t}}function AM({data:{commentId:t},dispatchAction:e}){return setTimeout(()=>{e("setHighlightComment",null)},3e3),{commentIdToHighlight:t}}function OM({data:{id:t,hasUnsavedChanges:e},state:n}){return{openCommentForms:n.openCommentForms.map(r=>r.id===t?{...r,hasUnsavedChanges:e}:{...r})}}function RM({data:t,state:e}){return{openCommentForms:e.openCommentForms.filter(n=>n.id!==t)}}function DM({data:t}){return{commentIdToScrollTo:t}}const kS={openPopup:xM,closePopup:CM,closeCommentForm:RM,setCommentFormHasUnsavedChanges:OM,setScrollTarget:DM},TM={addComment:fM,editComment:$M,hideComment:hM,deleteComment:SM,showComment:gM,likeComment:bM,unlikeComment:wM,reportComment:vM,addReply:pM,loadMoreComments:uM,loadMoreReplies:$S,openCommentForm:EM,updateMember:kM,setOrder:mM,highlightComment:AM,setHighlightComment:NM,setCommentsIsLoading:dM,updateCommentLikeState:yM};function MM(t){return!!kS[t]}async function jM({action:t,data:e,state:n,api:o,adminApi:r,options:i,dispatchAction:s}){const a=TM[t];return a?await a({data:e,state:n,api:o,adminApi:r,options:i,dispatchAction:s})||{}:{}}function PM({action:t,data:e,state:n,api:o,adminApi:r,options:i}){const s=kS[t];return s?s({data:e,state:n,api:o,adminApi:r,options:i})||{}:{}}function IM({adminUrl:t}){const e=document.querySelector('iframe[data-frame="admin-auth"]');let n=1;const o={},r=new URL(t).origin;let i=null;window.addEventListener("message",function(l){if(l.origin!==r)return;let c=null;try{c=JSON.parse(l.data)}catch{return}const u=o[c.uid];u&&(delete o[c.uid],u(c.error,c.result))});function s(l,c){return new Promise((u,d)=>{function m(f,p){return f?d(f):u(p)}n+=1,o[n]=m,e.contentWindow.postMessage(JSON.stringify({uid:n,action:l,...c}),r)})}return{async getUser(){const l=await s("getUser");return!l||!l.users?null:l.users[0]},async hideComment(l){return await s("hideComment",{id:l})},async showComment({id:l}){return await s("showComment",{id:l})},async browse({page:l,postId:c,order:u,memberUuid:d}){let m=null;i&&!u&&(m=`created_at:<=${i}`);const f=new URLSearchParams;f.set("limit","20"),m&&f.set("filter",m),f.set("page",l.toString()),u&&f.set("order",u),d&&f.set("impersonate_member_uuid",d);const p=await s("browseComments",{postId:c,params:f.toString()});if(!i){const g=p.comments[0];g&&(i=g.created_at)}return p},async replies({commentId:l,afterReplyId:c,limit:u,memberUuid:d}){const m=new URLSearchParams;return u&&m.set("limit",u.toString()),c&&m.set("filter",`id:>'${c}'`),d&&m.set("impersonate_member_uuid",d),await s("getReplies",{commentId:l,params:m.toString()})},async read({commentId:l,memberUuid:c}){const u=new URLSearchParams;return c&&u.set("impersonate_member_uuid",c),await s("readComment",{commentId:l,...u.toString()&&{params:u.toString()}})}}}function LM(t){const e=_.useCallback(()=>{const i=t.dataset,s=i.ghostComments||window.location.origin,a=i.key,l=i.api,c=i.admin,u=i.postId||"",d=i.colorScheme,m=i.avatarSaturation?parseInt(i.avatarSaturation):void 0,f=i.accentColor??"#000000",p=i.commentsEnabled,g=i.title==="null"?null:i.title??"",h=i.count==="true",y=i.publication??"";return{locale:i.locale??"en",siteUrl:s,apiKey:a,apiUrl:l,postId:u,adminUrl:c,colorScheme:d,avatarSaturation:m,accentColor:f,commentsEnabled:p,title:g,showCount:h,publication:y}},[t]),n=x.useMemo(()=>e(),[]),[o,r]=_.useState(n);return _.useEffect(()=>{const i=new MutationObserver(s=>{s.some(a=>a.type==="attributes")&&r(e())});return i.observe(t,{attributes:!0}),()=>{i.disconnect()}},[t,e]),o}const zM=["Owner","Administrator","Super Editor"];function If(t,e){return t.some(n=>{var o;return n.id===e||((o=n.replies)==null?void 0:o.some(r=>r.id===e))})}const FM=({scriptTag:t,initialCommentId:e,pageUrl:n})=>{const o=LM(t),[r,i]=x.useState({initStatus:"running",member:null,admin:null,comments:[],pagination:null,commentCount:0,openCommentForms:[],popup:null,labs:{},order:"count__likes desc, created_at desc",adminApi:null,commentsIsLoading:!1,commentIdToHighlight:null,commentIdToScrollTo:e,showMissingCommentNotice:!1,pageUrl:n,supportEmail:null,isMember:!1,isAdmin:!1,isPaidOnly:!1,hasRequiredTier:!0,isCommentingDisabled:!1}),s=_.createRef(),a=_.useMemo(()=>cM({siteUrl:o.siteUrl,apiUrl:o.apiUrl,apiKey:o.apiKey}),[o]),l=x.useCallback(v=>{i(S=>(typeof v=="function"&&(v=v(S)),{...S,...v}))},[i]),c=x.useCallback(async(v,S)=>{if(MM(v)){l(C=>PM({action:v,data:S,state:C,api:a,adminApi:C.adminApi,options:o}));return}return new Promise(C=>{l($=>(jM({action:v,data:S,state:$,api:a,adminApi:$.adminApi,options:o,dispatchAction:c}).then(k=>{const N={...k};C(N),l(N)}).catch(console.error),{}))})},[a,o]),u=x.useMemo(()=>lM(o.locale,"comments"),[o.locale]),d={...o,...r,t:u.t,dispatchAction:c,openFormCount:x.useMemo(()=>r.openCommentForms.length,[r.openCommentForms])},m=async()=>{var v;if(!(r.adminApi||!o.adminUrl))try{const S=IM({adminUrl:o.adminUrl});let C=null;try{if(C=await S.getUser(),(!C||!C.roles.some($=>zM.includes($.name)))&&(C=null),C){const $=await S.browse({page:1,postId:o.postId,order:r.order,memberUuid:(v=r.member)==null?void 0:v.uuid});l(k=>k.pagination&&k.pagination.page>1||e?{adminApi:S,admin:C,isAdmin:!0}:{adminApi:S,admin:C,isAdmin:!0,comments:$.comments,pagination:$.meta.pagination})}}catch($){console.warn("[Comments] Failed to fetch admin endpoint:",$)}l({adminApi:S,admin:C,isAdmin:!!C})}catch(S){console.error("[Comments] Failed to initialize admin authentication:",S)}},f=async()=>{const v=a.comments.browse({page:1,postId:o.postId,order:r.order}),S=a.comments.count({postId:o.postId}),[C,$]=await Promise.all([v,S]);return{comments:C.comments,pagination:C.meta.pagination,count:$}},p=async v=>{var S;try{const $=(S=(await a.comments.read(v)).comments)==null?void 0:S[0];return $&&$.status==="published"?$:null}catch{return null}},g=async(v,S,C,$)=>{let k=C,N=$;for(;!If(k,v)&&N.page<N.pages&&!(S&&k.some(H=>H.id===S));){const O=await a.comments.browse({page:N.page+1,postId:o.postId,order:r.order});k=[...k,...O.comments],N=O.meta.pagination}return{comments:k,pagination:N}},h=async(v,S,C,$)=>{const k=S.parent_id,{comments:N,pagination:O}=await g(v,k,C,$);let H=N;if(k&&!If(H,v)){const{comments:ie}=await a.comments.replies({commentId:k,limit:"all"});H=H.map(ne=>ne.id===k?{...ne,replies:ie}:ne)}return{comments:H,pagination:O,found:If(H,v)}},y=async()=>{try{const{member:v,labs:S,supportEmail:C}=await a.init(),{count:$,comments:k,pagination:N}=await f();let O=k,H=N,ie=!1;if(e&&H){const E=await p(e);if(E){const A=await h(e,E,O,H);O=A.comments,H=A.pagination,ie=A.found}}const oe=!!v,ye=o.commentsEnabled==="paid",me=!!(v!=null&&v.paid)||!ye;l({member:v,initStatus:"success",comments:O,pagination:H,commentCount:$,order:"count__likes desc, created_at desc",labs:S,commentsIsLoading:!1,commentIdToHighlight:null,commentIdToScrollTo:ie?e:null,showMissingCommentNotice:!!e&&!ie,supportEmail:C,isMember:oe,isPaidOnly:ye,hasRequiredTier:me,isCommentingDisabled:(v==null?void 0:v.can_comment)===!1})}catch(v){console.error("[Comments] Failed to initialize:",v),l({initStatus:"failed"})}};x.useEffect(()=>{if(e){y();return}const v=new IntersectionObserver(S=>{S.forEach(C=>{C.isIntersecting&&(y(),s.current&&v.unobserve(s.current))})},{root:null,rootMargin:"0px",threshold:.1});return s.current&&v.observe(s.current),()=>{s.current&&v.unobserve(s.current)}},[s.current,e]);const w=r.initStatus==="success";return b.jsxs(hc.Provider,{value:d,children:[b.jsx(SR,{ref:s,children:b.jsx(gR,{done:w})}),r.comments.length>0?b.jsx(FS,{adminUrl:o.adminUrl,onLoad:m}):null,b.jsx(AR,{})]})};function BM(){let t=document.currentScript;if(!t)throw new Error("[Comments-UI] Cannot find current script tag");return t}function HM(t){if(t.previousElementSibling&&t.previousElementSibling.id===yr)return t.previousElementSibling;if(!t.parentElement)throw new Error("[Comments-UI] Script tag does not have a parent element");const e=document.createElement("div");return e.id=yr,t.parentElement.insertBefore(e,t),e}function VM(){const t=new URL(window.location.href);t.searchParams.get("token")&&(t.searchParams.delete("token"),window.history.replaceState({},document.title,t.href))}function _M(){const t=new URL(window.location.href);return t.hash="",t.toString()}function UM(){const t=BM(),e=HM(t),n=yp(window.location.hash),o=_M();try{VM(),ew.render(b.jsx(_.StrictMode,{children:b.jsx(FM,{initialCommentId:n,pageUrl:o,scriptTag:t})}),e)}catch(r){console.error(r)}}UM()});
171
+ `,s+1);r=r.substring(a+1)}this.stack=r}}},Et.inherits(te.AssertionError,Error);function sS(t,e){return typeof t=="string"?t.length<e?t:t.slice(0,e):t}function aS(t){if(nS||!Et.isFunction(t))return Et.inspect(t);var e=iS(t),n=e?": "+e:"";return"[Function"+n+"]"}function F2(t){return sS(aS(t.actual),128)+" "+t.operator+" "+sS(aS(t.expected),128)}function et(t,e,n,o,r){throw new te.AssertionError({message:n,actual:t,expected:e,operator:o,stackStartFunction:r})}te.fail=et;function lS(t,e){t||et(t,!0,e,"==",te.ok)}te.ok=lS,te.equal=function(e,n,o){e!=n&&et(e,n,o,"==",te.equal)},te.notEqual=function(e,n,o){e==n&&et(e,n,o,"!=",te.notEqual)},te.deepEqual=function(e,n,o){Er(e,n,!1)||et(e,n,o,"deepEqual",te.deepEqual)},te.deepStrictEqual=function(e,n,o){Er(e,n,!0)||et(e,n,o,"deepStrictEqual",te.deepStrictEqual)};function Er(t,e,n,o){if(t===e)return!0;if(ps(t)&&ps(e))return eS(t,e)===0;if(Et.isDate(t)&&Et.isDate(e))return t.getTime()===e.getTime();if(Et.isRegExp(t)&&Et.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if((t===null||typeof t!="object")&&(e===null||typeof e!="object"))return n?t===e:t==e;if(rS(t)&&rS(e)&&oS(t)===oS(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return eS(new Uint8Array(t.buffer),new Uint8Array(e.buffer))===0;if(ps(t)!==ps(e))return!1;o=o||{actual:[],expected:[]};var r=o.actual.indexOf(t);return r!==-1&&r===o.expected.indexOf(e)?!0:(o.actual.push(t),o.expected.push(e),H2(t,e,n,o))}function cS(t){return Object.prototype.toString.call(t)=="[object Arguments]"}function H2(t,e,n,o){if(t==null||e===null||e===void 0)return!1;if(Et.isPrimitive(t)||Et.isPrimitive(e))return t===e;if(n&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var r=cS(t),i=cS(e);if(r&&!i||!r&&i)return!1;if(r)return t=tS.call(t),e=tS.call(e),Er(t,e,n);var s=pS(t),a=pS(e),l,c;if(s.length!==a.length)return!1;for(s.sort(),a.sort(),c=s.length-1;c>=0;c--)if(s[c]!==a[c])return!1;for(c=s.length-1;c>=0;c--)if(l=s[c],!Er(t[l],e[l],n,o))return!1;return!0}te.notDeepEqual=function(e,n,o){Er(e,n,!1)&&et(e,n,o,"notDeepEqual",te.notDeepEqual)},te.notDeepStrictEqual=uS;function uS(t,e,n){Er(t,e,!0)&&et(t,e,n,"notDeepStrictEqual",uS)}te.strictEqual=function(e,n,o){e!==n&&et(e,n,o,"===",te.strictEqual)},te.notStrictEqual=function(e,n,o){e===n&&et(e,n,o,"!==",te.notStrictEqual)};function dS(t,e){if(!t||!e)return!1;if(Object.prototype.toString.call(e)=="[object RegExp]")return e.test(t);try{if(t instanceof e)return!0}catch{}return Error.isPrototypeOf(e)?!1:e.call({},t)===!0}function V2(t){var e;try{t()}catch(n){e=n}return e}function mS(t,e,n,o){var r;if(typeof e!="function")throw new TypeError('"block" argument must be a function');typeof n=="string"&&(o=n,n=null),r=V2(e),o=(n&&n.name?" ("+n.name+").":".")+(o?" "+o:"."),t&&!r&&et(r,n,"Missing expected exception"+o);var i=typeof o=="string",s=!t&&Et.isError(r),a=!t&&r&&!n;if((s&&i&&dS(r,n)||a)&&et(r,n,"Got unwanted exception"+o),t&&r&&n&&!dS(r,n)||!t&&r)throw r}te.throws=function(t,e,n){mS(!0,t,e,n)},te.doesNotThrow=function(t,e,n){mS(!1,t,e,n)},te.ifError=function(t){if(t)throw t};function fS(t,e){t||et(t,!0,e,"==",fS)}te.strict=L2(fS,te,{equal:te.strictEqual,deepEqual:te.deepStrictEqual,notEqual:te.notStrictEqual,notDeepEqual:te.notDeepStrictEqual}),te.strict.strict=te.strict;var pS=Object.keys||function(t){var e=[];for(var n in t)z2.call(t,n)&&e.push(n);return e},_2=kv.exports,U2=_2,Y2=function(t){var e,n,o,r,i;for(e=Error.prepareStackTrace,Error.prepareStackTrace=function(s,a){return Error.prepareStackTrace=e,a},n=new Error().stack,i=0;i<n.length&&n[i].getFileName()!==__filename;)i++;U2(i<n.length,"Unexpected: unable to find caller/index.js in the stack"),t=!t||isNaN(t)?1:t>n.length-2?n.length-2:t,n=n.slice(i+t+1);do r=n.shift(),o=r&&r.getFileName();while(n.length&&o==="module.js");return o};const J2=Sr,K2=Sr,hS=lT,W2=Y2;yf.getCallerRoot=function(){try{return hS(W2(2))}catch{return}},yf.getProcessRoot=function(){let e=process.cwd();const n=K2.join(e,"current");try{J2.statSync(n).isDirectory()&&(e=n)}catch{}try{return hS(e)}catch{return}};var q2=yf,Tf={exports:{}},Mf,gS;function G2(){if(gS)return Mf;gS=1;var t=1e3,e=t*60,n=e*60,o=n*24,r=o*7,i=o*365.25;Mf=function(u,d){d=d||{};var m=typeof u;if(m==="string"&&u.length>0)return s(u);if(m==="number"&&isFinite(u))return d.long?l(u):a(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function s(u){if(u=String(u),!(u.length>100)){var d=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(d){var m=parseFloat(d[1]),f=(d[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return m*i;case"weeks":case"week":case"w":return m*r;case"days":case"day":case"d":return m*o;case"hours":case"hour":case"hrs":case"hr":case"h":return m*n;case"minutes":case"minute":case"mins":case"min":case"m":return m*e;case"seconds":case"second":case"secs":case"sec":case"s":return m*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return m;default:return}}}}function a(u){var d=Math.abs(u);return d>=o?Math.round(u/o)+"d":d>=n?Math.round(u/n)+"h":d>=e?Math.round(u/e)+"m":d>=t?Math.round(u/t)+"s":u+"ms"}function l(u){var d=Math.abs(u);return d>=o?c(u,d,o,"day"):d>=n?c(u,d,n,"hour"):d>=e?c(u,d,e,"minute"):d>=t?c(u,d,t,"second"):u+" ms"}function c(u,d,m,f){var p=d>=m*1.5;return Math.round(u/m)+" "+f+(p?"s":"")}return Mf}function Q2(t){n.debug=n,n.default=n,n.coerce=l,n.disable=s,n.enable=r,n.enabled=a,n.humanize=G2(),n.destroy=c,Object.keys(t).forEach(u=>{n[u]=t[u]}),n.names=[],n.skips=[],n.formatters={};function e(u){let d=0;for(let m=0;m<u.length;m++)d=(d<<5)-d+u.charCodeAt(m),d|=0;return n.colors[Math.abs(d)%n.colors.length]}n.selectColor=e;function n(u){let d,m=null,f,p;function g(...h){if(!g.enabled)return;const y=g,w=Number(new Date),v=w-(d||w);y.diff=v,y.prev=d,y.curr=w,d=w,h[0]=n.coerce(h[0]),typeof h[0]!="string"&&h.unshift("%O");let S=0;h[0]=h[0].replace(/%([a-zA-Z%])/g,($,k)=>{if($==="%%")return"%";S++;const N=n.formatters[k];if(typeof N=="function"){const O=h[S];$=N.call(y,O),h.splice(S,1),S--}return $}),n.formatArgs.call(y,h),(y.log||n.log).apply(y,h)}return g.namespace=u,g.useColors=n.useColors(),g.color=n.selectColor(u),g.extend=o,g.destroy=n.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(f!==n.namespaces&&(f=n.namespaces,p=n.enabled(u)),p),set:h=>{m=h}}),typeof n.init=="function"&&n.init(g),g}function o(u,d){const m=n(this.namespace+(typeof d>"u"?":":d)+u);return m.log=this.log,m}function r(u){n.save(u),n.namespaces=u,n.names=[],n.skips=[];const d=(typeof u=="string"?u:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const m of d)m[0]==="-"?n.skips.push(m.slice(1)):n.names.push(m)}function i(u,d){let m=0,f=0,p=-1,g=0;for(;m<u.length;)if(f<d.length&&(d[f]===u[m]||d[f]==="*"))d[f]==="*"?(p=f,g=m,f++):(m++,f++);else if(p!==-1)f=p+1,g++,m=g;else return!1;for(;f<d.length&&d[f]==="*";)f++;return f===d.length}function s(){const u=[...n.names,...n.skips.map(d=>"-"+d)].join(",");return n.enable(""),u}function a(u){for(const d of n.skips)if(i(u,d))return!1;for(const d of n.names)if(i(u,d))return!0;return!1}function l(u){return u instanceof Error?u.stack||u.message:u}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var Z2=Q2;(function(t,e){e.formatArgs=o,e.save=r,e.load=i,e.useColors=n,e.storage=s(),e.destroy=(()=>{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let l;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(l=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(l[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,d=0;l[0].replace(/%[a-zA-Z%]/g,m=>{m!=="%%"&&(u++,m==="%c"&&(d=u))}),l.splice(d,0,c)}e.log=console.debug||console.log||(()=>{});function r(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function i(){let l;try{l=e.storage.getItem("debug")||e.storage.getItem("DEBUG")}catch{}return!l&&typeof process<"u"&&"env"in process&&(l=process.env.DEBUG),l}function s(){try{return localStorage}catch{}}t.exports=Z2(e);const{formatters:a}=t.exports;a.j=function(l){try{return JSON.stringify(l)}catch(c){return"[UnexpectedJSONParseError]: "+c.message}}})(Tf,Tf.exports);var X2=Tf.exports;const eM=q2,yS=X2;gf.exports=function(e){const n=eM.getCallerRoot();let o;try{const r=$o("/node_modules/.pnpm/@tryghost+debug@2.1.0/node_modules/@tryghost/debug/lib")(n+"/package.json");r.alias?o=r.alias:o=r.name}catch{o="undefined"}return yS(o+":"+e)},gf.exports._base=yS;var tM=gf.exports,nM=tM;const oM=[{code:"af",label:"Afrikaans"},{code:"ar",label:"Arabic"},{code:"bg",label:"Bulgarian"},{code:"bn",label:"Bengali"},{code:"bs",label:"Bosnian"},{code:"ca",label:"Catalan"},{code:"cs",label:"Czech"},{code:"da",label:"Danish"},{code:"de",label:"German"},{code:"de-CH",label:"Swiss German"},{code:"el",label:"Greek"},{code:"en",label:"English"},{code:"eo",label:"Esperanto"},{code:"es",label:"Spanish"},{code:"et",label:"Estonian"},{code:"eu",label:"Basque"},{code:"fa",label:"Persian/Farsi"},{code:"fi",label:"Finnish"},{code:"fr",label:"French"},{code:"gd",label:"Gaelic (Scottish)"},{code:"he",label:"Hebrew"},{code:"hi",label:"Hindi"},{code:"hr",label:"Croatian"},{code:"hu",label:"Hungarian"},{code:"id",label:"Indonesian"},{code:"is",label:"Icelandic"},{code:"it",label:"Italian"},{code:"ja",label:"Japanese"},{code:"ko",label:"Korean"},{code:"kz",label:"Kazakh"},{code:"lt",label:"Lithuanian"},{code:"lv",label:"Latvian"},{code:"mk",label:"Macedonian"},{code:"mn",label:"Mongolian"},{code:"ms",label:"Malay"},{code:"nb",label:"Norwegian Bokmål"},{code:"ne",label:"Nepali"},{code:"nl",label:"Dutch"},{code:"nn",label:"Norwegian Nynorsk"},{code:"pa",label:"Punjabi"},{code:"pl",label:"Polish"},{code:"pt",label:"Portuguese"},{code:"pt-BR",label:"Portuguese (Brazil)"},{code:"ro",label:"Romanian"},{code:"ru",label:"Russian"},{code:"si",label:"Sinhala"},{code:"sk",label:"Slovak"},{code:"sl",label:"Slovenian"},{code:"sq",label:"Albanian"},{code:"sr",label:"Serbian"},{code:"sr-Cyrl",label:"Serbian (Cyrillic)"},{code:"sv",label:"Swedish"},{code:"sw",label:"Swahili"},{code:"ta",label:"Tamil"},{code:"th",label:"Thai"},{code:"tr",label:"Turkish"},{code:"uk",label:"Ukrainian"},{code:"ur",label:"Urdu"},{code:"uz",label:"Uzbek"},{code:"vi",label:"Vietnamese"},{code:"zh",label:"Chinese"},{code:"zh-Hant",label:"Traditional Chinese"}],rM=aT,bS=Sr,jf=Sr,Pf=nM("i18n"),wS=oM,vS=wS.map(t=>t.code);function SS(t,e){return t.reduce((n,o)=>{let r;try{r=$o("/ghost/i18n/lib")(`../locales/${o}/${e}.json`)}catch{r=$o("/ghost/i18n/lib")(`../locales/en/${e}.json`)}return n[o]={[e]:{...r,...r.default&&typeof r.default=="object"?r.default:{}}},n},{})}function iM(t,e){if(!e)return{[t]:{theme:{}}};let n=[];try{n=jf.readdirSync(e).filter(i=>i.endsWith(".json")).map(i=>i.replace(".json",""))}catch{n=[t,"en"]}return[...new Set([t,...n,"en"])].reduce((r,i)=>{let s,a=!1;const l=bS.join(e,`${i}.json`);if(jf.existsSync(l))try{delete require.cache[$o("/ghost/i18n/lib").resolve(l)],s=$o("/ghost/i18n/lib")(l)}catch{Pf(`Error loading theme locale file: ${i}`),a=!0}else a=!0;if(a)if(i!=="en")try{const c=bS.join(e,"en.json");jf.existsSync(c)?(delete require.cache[$o("/ghost/i18n/lib").resolve(c)],s=$o("/ghost/i18n/lib")(c)):s={}}catch{s={}}else Pf("Theme en.json file not found"),s={};return r[i]={theme:{...s,...s.default&&typeof s.default=="object"?s.default:{}}},r},{})}as.exports=(t="en",e="portal",n={})=>{const o=rM.createInstance(),r={prefix:"{",suffix:"}"};e==="theme"&&(r.escapeValue=!1);let i;return e!=="theme"?i=SS(vS,e):(Pf(`generateThemeResources: ${t}, ${n.themePath}`),i=iM(t,n.themePath)),o.init({lng:t,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:{no:["nb","en"],default:["en"]},ns:e,defaultNS:e,interpolation:r,resources:i}),o},as.exports.SUPPORTED_LOCALES=vS,as.exports.LOCALE_DATA=wS,as.exports.generateResources=SS;var sM=as.exports;const hs=sM;br.exports=hs,br.exports.default=hs,br.exports.LOCALE_DATA=hs.LOCALE_DATA,br.exports.SUPPORTED_LOCALES=hs.SUPPORTED_LOCALES,br.exports.generateResources=hs.generateResources;var aM=br.exports;const lM=At(aM);function cM({siteUrl:t=window.location.origin,apiUrl:e,apiKey:n}){const o="members/api";function r({type:c,resource:u,params:d=""}){return`${t.replace(/\/$/,"")}/${o}/${u}/${d}`}function i({resource:c,params:u={}}){if(e&&n){const d=new URLSearchParams({...u,key:n});return`${e.replace(/\/$/,"")}/${c}/?${d.toString()}`}return""}function s({url:c,method:u="GET",headers:d={},credentials:m=void 0,body:f=void 0}){return fetch(c,{method:u,headers:d,credentials:m,body:f})}let a=null;const l={site:{settings(){const c=i({resource:"settings"});return s({url:c,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(u){if(u.ok)return u.json();throw new Error("Failed to fetch site data")})}},member:{identity(){const c=r({type:"members",resource:"session"});return s({url:c,credentials:"same-origin"}).then(function(u){return!u.ok||u.status===204?null:u.text()})},sessionData(){const c=r({type:"members",resource:"member"});return s({url:c,credentials:"same-origin"}).then(function(u){return!u.ok||u.status===204?null:u.json()})},update({name:c,expertise:u}){const d=r({type:"members",resource:"member"});return s({url:d,method:"PUT",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({name:c,expertise:u})}).then(function(f){return f.ok?f.json():null})}},comments:{async count({postId:c}){const u=c?`?ids=${c}`:"",d=r({type:"members",resource:"comments/counts",params:u}),f=await(await s({url:d,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"})).json();return c?f[c]:f},browse({page:c,postId:u,order:d}){let m=null;a&&!d&&(m=`created_at:<=${a}`);const f=new URLSearchParams;f.set("limit","20"),m&&f.set("filter",m),f.set("page",c.toString()),d&&f.set("order",d);const p=r({type:"members",resource:`comments/post/${u}`,params:`?${f.toString()}`}),g=s({url:p,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"}).then(function(h){if(h.ok)return h.json();throw new Error("Failed to fetch comments")});return a||g.then(h=>{const y=h.comments[0];y&&(a=y.created_at)}),g},async replies({commentId:c,afterReplyId:u,limit:d}){var g,h,y;if(d==="all"){const w=[];let v=u,S=!0;for(;S;){const C=await this.replies({commentId:c,afterReplyId:v,limit:100});w.push(...C.comments),S=!!((h=(g=C.meta)==null?void 0:g.pagination)!=null&&h.next)&&C.comments.length>0,C.comments.length>0&&(v=(y=C.comments[C.comments.length-1])==null?void 0:y.id)}return{comments:w,meta:{pagination:{next:!1}}}}const m=new URLSearchParams;m.set("limit",(d??5).toString()),u&&m.set("filter",`id:>'${u}'`);const f=r({type:"members",resource:`comments/${c}/replies`,params:`?${m.toString()}`}),p=await s({url:f,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"});if(p.ok)return p.json();throw new Error("Failed to fetch replies")},add({comment:c}){const u={comments:[c]},d=r({type:"members",resource:"comments"});return s({url:d,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)}).then(function(m){if(m.ok)return m.json();throw new Error("Failed to add comment")})},edit({comment:c}){const u={comments:[c]},d=r({type:"members",resource:`comments/${c.id}`});return s({url:d,method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)}).then(function(m){if(m.ok)return m.json();throw new Error("Failed to edit comment")})},read(c){const u=r({type:"members",resource:`comments/${c}`});return s({url:u,method:"GET",credentials:"same-origin"}).then(function(d){if(d.ok)return d.json();throw new Error("Failed to read comment")})},like({comment:c}){const u=r({type:"members",resource:`comments/${c.id}/like`});return s({url:u,method:"POST",headers:{"Content-Type":"application/json"}}).then(function(d){if(d.ok)return"Success";throw new Error("Failed to like comment")})},unlike({comment:c}){const u={comments:[c]},d=r({type:"members",resource:`comments/${c.id}/like`});return s({url:d,method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)}).then(function(m){if(m.ok)return"Success";throw new Error("Failed to unlike comment")})},report({comment:c}){const u=r({type:"members",resource:`comments/${c.id}/report`});return s({url:u,method:"POST",headers:{"Content-Type":"application/json"}}).then(function(d){if(d.ok)return"Success";throw new Error("Failed to report comment")})}},init:()=>{}};return l.init=async()=>{const[c]=await Promise.all([l.member.sessionData()]);let u={},d=null;try{const m=await l.site.settings();m.settings.labs&&Object.assign(u,m.settings.labs),d=m.settings.support_email_address||null}catch{u={}}return{member:c,labs:u,supportEmail:d}},l}async function uM({state:t,api:e,options:n,order:o}){var l;let r=1;t.pagination&&t.pagination.page&&(r=t.pagination.page+1);let i;return t.admin&&t.adminApi?i=await t.adminApi.browse({page:r,postId:n.postId,order:o||t.order,memberUuid:(l=t.member)==null?void 0:l.uuid}):i=await e.comments.browse({page:r,postId:n.postId,order:o||t.order}),{comments:[...t.comments,...i.comments].filter((c,u,d)=>d.findIndex(m=>m.id===c.id)===u),pagination:i.meta.pagination}}function dM({data:t}){return{commentsIsLoading:t}}async function mM({state:t,data:{order:e},options:n,api:o,dispatchAction:r}){var i;r("setCommentsIsLoading",!0);try{let s;return t.admin&&t.adminApi?s=await t.adminApi.browse({page:1,postId:n.postId,order:e,memberUuid:(i=t.member)==null?void 0:i.uuid}):s=await o.comments.browse({page:1,postId:n.postId,order:e}),{comments:[...s.comments],pagination:s.meta.pagination,order:e,commentsIsLoading:!1}}catch(s){throw console.error("Failed to set order:",s),t.commentsIsLoading=!1,s}}async function $S({state:t,api:e,data:{comment:n,limit:o},isReply:r}){var l,c,u,d;const i=async(m,f)=>{var p;return t.admin&&t.adminApi&&!r?await t.adminApi.replies({commentId:n.id,afterReplyId:m,limit:f,memberUuid:(p=t.member)==null?void 0:p.uuid}):await e.comments.replies({commentId:n.id,afterReplyId:m,limit:f})};let s=n.replies&&n.replies.length>0?(l=n.replies[n.replies.length-1])==null?void 0:l.id:void 0,a=[];if(o==="all"){let m=!0;for(;m;){const f=await i(s,100);a.push(...f.comments),m=!!((u=(c=f.meta)==null?void 0:c.pagination)!=null&&u.next),f.comments&&f.comments.length>0?s=(d=f.comments[f.comments.length-1])==null?void 0:d.id:m=!1}}else a=(await i(s,o||100)).comments;return{comments:t.comments.map(m=>m.id===n.id?{...n,replies:[...n.replies,...a]}:m)}}async function fM({state:t,api:e,data:n}){const r=(await e.comments.add({comment:n})).comments[0];return{comments:[r,...t.comments],commentCount:t.commentCount+1,commentIdToScrollTo:r.id}}async function pM({state:t,api:e,data:{reply:n,parent:o}}){const i=(await e.comments.add({comment:{...n,parent_id:o.id}})).comments[0],s=await e.comments.replies({commentId:o.id,limit:"all"});return{comments:t.comments.map(a=>a.id===o.id?{...a,replies:s.comments,count:{...a.count,replies:s.comments.length}}:a),commentCount:t.commentCount+1,commentIdToScrollTo:i.id}}async function hM({state:t,data:e}){return t.adminApi&&await t.adminApi.hideComment(e.id),{comments:t.comments.map(n=>{const o=n.replies.map(r=>r.id===e.id?{...r,status:"hidden"}:r);return n.id===e.id?{...n,status:"hidden",replies:o}:{...n,replies:o}}),commentCount:t.commentCount-1}}async function gM({state:t,api:e,data:n}){var i;t.adminApi&&await t.adminApi.showComment({id:n.id});let o;t.admin&&t.adminApi?o=await t.adminApi.read({commentId:n.id,memberUuid:(i=t.member)==null?void 0:i.uuid}):o=await e.comments.read(n.id);const r=o.comments[0];return{comments:t.comments.map(s=>{const a=s.replies.map(l=>l.id===n.id?r:l);return s.id===n.id?r:{...s,replies:a}}),commentCount:t.commentCount+1}}async function yM({state:t,data:e}){return{comments:t.comments.map(n=>{const o=n.replies.map(r=>r.id===e.id?{...r,liked:e.liked,count:{...r.count,likes:e.liked?r.count.likes+1:r.count.likes-1}}:r);return n.id===e.id?{...n,liked:e.liked,replies:o,count:{...n.count,likes:e.liked?n.count.likes+1:n.count.likes-1}}:{...n,replies:o}})}}async function bM({api:t,data:e,dispatchAction:n}){n("updateCommentLikeState",{id:e.id,liked:!0});try{return await t.comments.like({comment:e}),{}}catch{n("updateCommentLikeState",{id:e.id,liked:!1})}}async function wM({api:t,data:e,dispatchAction:n}){n("updateCommentLikeState",{id:e.id,liked:!1});try{return await t.comments.unlike({comment:e}),{}}catch{n("updateCommentLikeState",{id:e.id,liked:!0})}}async function vM({api:t,data:e}){return await t.comments.report({comment:e}),{}}async function SM({state:t,api:e,data:n,dispatchAction:o}){await e.comments.edit({comment:{id:n.id,status:"deleted"}});const r=t.comments.find(i=>i.id===n.id);return r&&(!r.replies||r.replies.length===0)?(o("setOrder",{order:t.order}),null):{comments:t.comments.map(i=>{var u;if(i.id===n.id)return i.replies.length>0?{...i,status:"deleted"}:null;const s=i.replies.length,a=i.replies.filter(d=>d.id!==n.id),l=s!==a.length,c={...i,replies:a};return l&&((u=i.count)!=null&&u.replies)&&(i.count.replies=i.count.replies-1),c}).filter(Boolean),commentCount:t.commentCount-1}}async function $M({state:t,api:e,data:{comment:n,parent:o}}){return n=(await e.comments.edit({comment:n})).comments[0],{comments:t.comments.map(i=>o&&o.id===i.id?{...i,replies:i.replies.map(s=>s.id===n.id?n:s)}:i.id===n.id?n:i)}}async function kM({data:t,state:e,api:n}){var l,c;const{name:o,expertise:r}=t,i={},s=(l=e==null?void 0:e.member)==null?void 0:l.name;o&&s!==o&&(i.name=o);const a=(c=e==null?void 0:e.member)==null?void 0:c.expertise;if(r!==void 0&&a!==r&&(i.expertise=r),Object.keys(i).length>0)try{const u=await n.member.update(i);if(!u)throw new Error("Failed to update member");return{member:u,success:!0}}catch(u){return{success:!1,error:u}}return null}function xM({data:t}){return{popup:t}}function CM(){return{popup:null}}async function EM({data:t,api:e,state:n}){let o={};const r=t.parent_id||t.id;if(t.type==="reply"&&!n.openCommentForms.some(a=>a.id===r||a.parent_id===r)){const a=n.comments.find(l=>l.id===r);if(a)try{const l=await $S({state:n,api:e,data:{comment:a,limit:"all"},isReply:!0});o={...o,...l}}catch(l){console.error("[Comments] Failed to load replies before opening form:",l)}}const i=n.openCommentForms.filter(a=>a.hasUnsavedChanges),s=i.findIndex(a=>a.id===t.id);return s>-1?(i[s]=t,{openCommentForms:i,...o}):{openCommentForms:[...i,t],...o}}function NM({data:t}){return{commentIdToHighlight:t}}function AM({data:{commentId:t},dispatchAction:e}){return setTimeout(()=>{e("setHighlightComment",null)},3e3),{commentIdToHighlight:t}}function OM({data:{id:t,hasUnsavedChanges:e},state:n}){return{openCommentForms:n.openCommentForms.map(r=>r.id===t?{...r,hasUnsavedChanges:e}:{...r})}}function RM({data:t,state:e}){return{openCommentForms:e.openCommentForms.filter(n=>n.id!==t)}}function DM({data:t}){return{commentIdToScrollTo:t}}const kS={openPopup:xM,closePopup:CM,closeCommentForm:RM,setCommentFormHasUnsavedChanges:OM,setScrollTarget:DM},TM={addComment:fM,editComment:$M,hideComment:hM,deleteComment:SM,showComment:gM,likeComment:bM,unlikeComment:wM,reportComment:vM,addReply:pM,loadMoreComments:uM,loadMoreReplies:$S,openCommentForm:EM,updateMember:kM,setOrder:mM,highlightComment:AM,setHighlightComment:NM,setCommentsIsLoading:dM,updateCommentLikeState:yM};function MM(t){return!!kS[t]}async function jM({action:t,data:e,state:n,api:o,adminApi:r,options:i,dispatchAction:s}){const a=TM[t];return a?await a({data:e,state:n,api:o,adminApi:r,options:i,dispatchAction:s})||{}:{}}function PM({action:t,data:e,state:n,api:o,adminApi:r,options:i}){const s=kS[t];return s?s({data:e,state:n,api:o,adminApi:r,options:i})||{}:{}}function IM({adminUrl:t}){const e=document.querySelector('iframe[data-frame="admin-auth"]');let n=1;const o={},r=new URL(t).origin;let i=null;window.addEventListener("message",function(l){if(l.origin!==r)return;let c=null;try{c=JSON.parse(l.data)}catch{return}const u=o[c.uid];u&&(delete o[c.uid],u(c.error,c.result))});function s(l,c){return new Promise((u,d)=>{function m(f,p){return f?d(f):u(p)}n+=1,o[n]=m,e.contentWindow.postMessage(JSON.stringify({uid:n,action:l,...c}),r)})}return{async getUser(){const l=await s("getUser");return!l||!l.users?null:l.users[0]},async hideComment(l){return await s("hideComment",{id:l})},async showComment({id:l}){return await s("showComment",{id:l})},async browse({page:l,postId:c,order:u,memberUuid:d}){let m=null;i&&!u&&(m=`created_at:<=${i}`);const f=new URLSearchParams;f.set("limit","20"),m&&f.set("filter",m),f.set("page",l.toString()),u&&f.set("order",u),d&&f.set("impersonate_member_uuid",d);const p=await s("browseComments",{postId:c,params:f.toString()});if(!i){const g=p.comments[0];g&&(i=g.created_at)}return p},async replies({commentId:l,afterReplyId:c,limit:u,memberUuid:d}){const m=new URLSearchParams;return u&&m.set("limit",u.toString()),c&&m.set("filter",`id:>'${c}'`),d&&m.set("impersonate_member_uuid",d),await s("getReplies",{commentId:l,params:m.toString()})},async read({commentId:l,memberUuid:c}){const u=new URLSearchParams;return c&&u.set("impersonate_member_uuid",c),await s("readComment",{commentId:l,...u.toString()&&{params:u.toString()}})}}}function LM(t){const e=_.useCallback(()=>{const i=t.dataset,s=i.ghostComments||window.location.origin,a=i.key,l=i.api,c=i.admin,u=i.postId||"",d=i.colorScheme,m=i.avatarSaturation?parseInt(i.avatarSaturation):void 0,f=i.accentColor??"#000000",p=i.commentsEnabled,g=i.title==="null"?null:i.title??"",h=i.count==="true",y=i.publication??"";return{locale:i.locale??"en",siteUrl:s,apiKey:a,apiUrl:l,postId:u,adminUrl:c,colorScheme:d,avatarSaturation:m,accentColor:f,commentsEnabled:p,title:g,showCount:h,publication:y}},[t]),n=x.useMemo(()=>e(),[]),[o,r]=_.useState(n);return _.useEffect(()=>{const i=new MutationObserver(s=>{s.some(a=>a.type==="attributes")&&r(e())});return i.observe(t,{attributes:!0}),()=>{i.disconnect()}},[t,e]),o}const zM=["Owner","Administrator","Super Editor"];function If(t,e){return t.some(n=>{var o;return n.id===e||((o=n.replies)==null?void 0:o.some(r=>r.id===e))})}const BM=({scriptTag:t,initialCommentId:e,pageUrl:n})=>{const o=LM(t),[r,i]=x.useState({initStatus:"running",member:null,admin:null,comments:[],pagination:null,commentCount:0,openCommentForms:[],popup:null,labs:{},order:"count__likes desc, created_at desc",adminApi:null,commentsIsLoading:!1,commentIdToHighlight:null,commentIdToScrollTo:e,showMissingCommentNotice:!1,pageUrl:n,supportEmail:null,isMember:!1,isAdmin:!1,isPaidOnly:!1,hasRequiredTier:!0,isCommentingDisabled:!1}),s=_.createRef(),a=_.useMemo(()=>cM({siteUrl:o.siteUrl,apiUrl:o.apiUrl,apiKey:o.apiKey}),[o]),l=x.useCallback(v=>{i(S=>(typeof v=="function"&&(v=v(S)),{...S,...v}))},[i]),c=x.useCallback(async(v,S)=>{if(MM(v)){l(C=>PM({action:v,data:S,state:C,api:a,adminApi:C.adminApi,options:o}));return}return new Promise(C=>{l($=>(jM({action:v,data:S,state:$,api:a,adminApi:$.adminApi,options:o,dispatchAction:c}).then(k=>{const N={...k};C(N),l(N)}).catch(console.error),{}))})},[a,o]),u=x.useMemo(()=>lM(o.locale,"comments"),[o.locale]),d={...o,...r,t:u.t,dispatchAction:c,openFormCount:x.useMemo(()=>r.openCommentForms.length,[r.openCommentForms])},m=async()=>{var v;if(!(r.adminApi||!o.adminUrl))try{const S=IM({adminUrl:o.adminUrl});let C=null;try{if(C=await S.getUser(),(!C||!C.roles.some($=>zM.includes($.name)))&&(C=null),C){const $=await S.browse({page:1,postId:o.postId,order:r.order,memberUuid:(v=r.member)==null?void 0:v.uuid});l(k=>k.pagination&&k.pagination.page>1||e?{adminApi:S,admin:C,isAdmin:!0}:{adminApi:S,admin:C,isAdmin:!0,comments:$.comments,pagination:$.meta.pagination})}}catch($){console.warn("[Comments] Failed to fetch admin endpoint:",$)}l({adminApi:S,admin:C,isAdmin:!!C})}catch(S){console.error("[Comments] Failed to initialize admin authentication:",S)}},f=async()=>{const v=a.comments.browse({page:1,postId:o.postId,order:r.order}),S=a.comments.count({postId:o.postId}),[C,$]=await Promise.all([v,S]);return{comments:C.comments,pagination:C.meta.pagination,count:$}},p=async v=>{var S;try{const $=(S=(await a.comments.read(v)).comments)==null?void 0:S[0];return $&&$.status==="published"?$:null}catch{return null}},g=async(v,S,C,$)=>{let k=C,N=$;for(;!If(k,v)&&N.page<N.pages&&!(S&&k.some(H=>H.id===S));){const O=await a.comments.browse({page:N.page+1,postId:o.postId,order:r.order});k=[...k,...O.comments],N=O.meta.pagination}return{comments:k,pagination:N}},h=async(v,S,C,$)=>{const k=S.parent_id,{comments:N,pagination:O}=await g(v,k,C,$);let H=N;if(k&&!If(H,v)){const{comments:ie}=await a.comments.replies({commentId:k,limit:"all"});H=H.map(ne=>ne.id===k?{...ne,replies:ie}:ne)}return{comments:H,pagination:O,found:If(H,v)}},y=async()=>{try{const{member:v,labs:S,supportEmail:C}=await a.init(),{count:$,comments:k,pagination:N}=await f();let O=k,H=N,ie=!1;if(e&&H){const E=await p(e);if(E){const A=await h(e,E,O,H);O=A.comments,H=A.pagination,ie=A.found}}const oe=!!v,ye=o.commentsEnabled==="paid",me=!!(v!=null&&v.paid)||!ye;l({member:v,initStatus:"success",comments:O,pagination:H,commentCount:$,order:"count__likes desc, created_at desc",labs:S,commentsIsLoading:!1,commentIdToHighlight:null,commentIdToScrollTo:ie?e:null,showMissingCommentNotice:!!e&&!ie,supportEmail:C,isMember:oe,isPaidOnly:ye,hasRequiredTier:me,isCommentingDisabled:(v==null?void 0:v.can_comment)===!1})}catch(v){console.error("[Comments] Failed to initialize:",v),l({initStatus:"failed"})}};x.useEffect(()=>{if(e){y();return}const v=new IntersectionObserver(S=>{S.forEach(C=>{C.isIntersecting&&(y(),s.current&&v.unobserve(s.current))})},{root:null,rootMargin:"0px",threshold:.1});return s.current&&v.observe(s.current),()=>{s.current&&v.unobserve(s.current)}},[s.current,e]);const w=r.initStatus==="success";return b.jsxs(hc.Provider,{value:d,children:[b.jsx(SR,{ref:s,children:b.jsx(gR,{done:w})}),r.comments.length>0?b.jsx(BS,{adminUrl:o.adminUrl,onLoad:m}):null,b.jsx(AR,{})]})};function FM(){let t=document.currentScript;if(!t)throw new Error("[Comments-UI] Cannot find current script tag");return t}function HM(t){if(t.previousElementSibling&&t.previousElementSibling.id===yr)return t.previousElementSibling;if(!t.parentElement)throw new Error("[Comments-UI] Script tag does not have a parent element");const e=document.createElement("div");return e.id=yr,t.parentElement.insertBefore(e,t),e}function VM(){const t=new URL(window.location.href);t.searchParams.get("token")&&(t.searchParams.delete("token"),window.history.replaceState({},document.title,t.href))}function _M(){const t=new URL(window.location.href);return t.hash="",t.toString()}function UM(){const t=FM(),e=HM(t),n=yp(window.location.hash),o=_M();try{VM(),ew.render(b.jsx(_.StrictMode,{children:b.jsx(BM,{initialCommentId:n,pageUrl:o,scriptTag:t})}),e)}catch(r){console.error(r)}}UM()});
172
172
  //# sourceMappingURL=comments-ui.min.js.map