@tryghost/comments-ui 0.20.0 → 0.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,34 +1,34 @@
1
- (function(yt){typeof define=="function"&&define.amd?define(yt):yt()})(function(){"use strict";var aO=Object.defineProperty;var lO=(yt,Qe,_t)=>Qe in yt?aO(yt,Qe,{enumerable:!0,configurable:!0,writable:!0,value:_t}):yt[Qe]=_t;var gr=(yt,Qe,_t)=>(lO(yt,typeof Qe!="symbol"?Qe+"":Qe,_t),_t);function yt(t,e){for(var n=0;n<e.length;n++){const o=e[n];if(typeof o!="string"&&!Array.isArray(o)){for(const r in o)if(r!=="default"&&!(r in t)){const i=Object.getOwnPropertyDescriptor(o,r);i&&Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>o[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function Qe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var _t={exports:{}},yr={};/*
1
+ (function(wt){typeof define=="function"&&define.amd?define(wt):wt()})(function(){"use strict";var lO=Object.defineProperty;var uO=(wt,Ze,Yt)=>Ze in wt?lO(wt,Ze,{enumerable:!0,configurable:!0,writable:!0,value:Yt}):wt[Ze]=Yt;var yr=(wt,Ze,Yt)=>(uO(wt,typeof Ze!="symbol"?Ze+"":Ze,Yt),Yt);function wt(t,e){for(var n=0;n<e.length;n++){const o=e[n];if(typeof o!="string"&&!Array.isArray(o)){for(const r in o)if(r!=="default"&&!(r in t)){const i=Object.getOwnPropertyDescriptor(o,r);i&&Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>o[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function Ze(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Yt={exports:{}},wr={};/*
2
2
  object-assign
3
3
  (c) Sindre Sorhus
4
4
  @license MIT
5
- */var am=Object.getOwnPropertySymbols,w1=Object.prototype.hasOwnProperty,S1=Object.prototype.propertyIsEnumerable;function v1(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function k1(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var o=Object.getOwnPropertyNames(e).map(function(i){return e[i]});if(o.join("")!=="0123456789")return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(i){r[i]=i}),Object.keys(Object.assign({},r)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var lm=k1()?Object.assign:function(t,e){for(var n,o=v1(t),r,i=1;i<arguments.length;i++){n=Object(arguments[i]);for(var s in n)w1.call(n,s)&&(o[s]=n[s]);if(am){r=am(n);for(var a=0;a<r.length;a++)S1.call(n,r[a])&&(o[r[a]]=n[r[a]])}}return o},um={exports:{}},Y={};/** @license React v17.0.2
5
+ */var lm=Object.getOwnPropertySymbols,v1=Object.prototype.hasOwnProperty,b1=Object.prototype.propertyIsEnumerable;function k1(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function x1(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var o=Object.getOwnPropertyNames(e).map(function(i){return e[i]});if(o.join("")!=="0123456789")return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(i){r[i]=i}),Object.keys(Object.assign({},r)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var um=x1()?Object.assign:function(t,e){for(var n,o=k1(t),r,i=1;i<arguments.length;i++){n=Object(arguments[i]);for(var s in n)v1.call(n,s)&&(o[s]=n[s]);if(lm){r=lm(n);for(var a=0;a<r.length;a++)b1.call(n,r[a])&&(o[r[a]]=n[r[a]])}}return o},cm={exports:{}},K={};/** @license React v17.0.2
6
6
  * react.production.min.js
7
7
  *
8
8
  * Copyright (c) Facebook, Inc. and its affiliates.
9
9
  *
10
10
  * This source code is licensed under the MIT license found in the
11
11
  * LICENSE file in the root directory of this source tree.
12
- */var yl=lm,ho=60103,cm=60106;Y.Fragment=60107,Y.StrictMode=60108,Y.Profiler=60114;var dm=60109,mm=60110,fm=60112;Y.Suspense=60113;var pm=60115,hm=60116;if(typeof Symbol=="function"&&Symbol.for){var ct=Symbol.for;ho=ct("react.element"),cm=ct("react.portal"),Y.Fragment=ct("react.fragment"),Y.StrictMode=ct("react.strict_mode"),Y.Profiler=ct("react.profiler"),dm=ct("react.provider"),mm=ct("react.context"),fm=ct("react.forward_ref"),Y.Suspense=ct("react.suspense"),pm=ct("react.memo"),hm=ct("react.lazy")}var gm=typeof Symbol=="function"&&Symbol.iterator;function b1(t){return t===null||typeof t!="object"?null:(t=gm&&t[gm]||t["@@iterator"],typeof t=="function"?t:null)}function wr(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ym={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},wm={};function go(t,e,n){this.props=t,this.context=e,this.refs=wm,this.updater=n||ym}go.prototype.isReactComponent={},go.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error(wr(85));this.updater.enqueueSetState(this,t,e,"setState")},go.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Sm(){}Sm.prototype=go.prototype;function wl(t,e,n){this.props=t,this.context=e,this.refs=wm,this.updater=n||ym}var Sl=wl.prototype=new Sm;Sl.constructor=wl,yl(Sl,go.prototype),Sl.isPureReactComponent=!0;var vl={current:null},vm=Object.prototype.hasOwnProperty,km={key:!0,ref:!0,__self:!0,__source:!0};function bm(t,e,n){var o,r={},i=null,s=null;if(e!=null)for(o in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(i=""+e.key),e)vm.call(e,o)&&!km.hasOwnProperty(o)&&(r[o]=e[o]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}if(t&&t.defaultProps)for(o in a=t.defaultProps,a)r[o]===void 0&&(r[o]=a[o]);return{$$typeof:ho,type:t,key:i,ref:s,props:r,_owner:vl.current}}function x1(t,e){return{$$typeof:ho,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function kl(t){return typeof t=="object"&&t!==null&&t.$$typeof===ho}function $1(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var xm=/\/+/g;function bl(t,e){return typeof t=="object"&&t!==null&&t.key!=null?$1(""+t.key):e.toString(36)}function _i(t,e,n,o,r){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var s=!1;if(t===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case ho:case cm:s=!0}}if(s)return s=t,r=r(s),t=o===""?"."+bl(s,0):o,Array.isArray(r)?(n="",t!=null&&(n=t.replace(xm,"$&/")+"/"),_i(r,e,n,"",function(u){return u})):r!=null&&(kl(r)&&(r=x1(r,n+(!r.key||s&&s.key===r.key?"":(""+r.key).replace(xm,"$&/")+"/")+t)),e.push(r)),1;if(s=0,o=o===""?".":o+":",Array.isArray(t))for(var a=0;a<t.length;a++){i=t[a];var l=o+bl(i,a);s+=_i(i,e,n,l,r)}else if(l=b1(t),typeof l=="function")for(t=l.call(t),a=0;!(i=t.next()).done;)i=i.value,l=o+bl(i,a++),s+=_i(i,e,n,l,r);else if(i==="object")throw e=""+t,Error(wr(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e));return s}function Yi(t,e,n){if(t==null)return t;var o=[],r=0;return _i(t,o,"","",function(i){return e.call(n,i,r++)}),o}function C1(t){if(t._status===-1){var e=t._result;e=e(),t._status=0,t._result=e,e.then(function(n){t._status===0&&(n=n.default,t._status=1,t._result=n)},function(n){t._status===0&&(t._status=2,t._result=n)})}if(t._status===1)return t._result;throw t._result}var $m={current:null};function Dt(){var t=$m.current;if(t===null)throw Error(wr(321));return t}var E1={ReactCurrentDispatcher:$m,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:vl,IsSomeRendererActing:{current:!1},assign:yl};Y.Children={map:Yi,forEach:function(t,e,n){Yi(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Yi(t,function(){e++}),e},toArray:function(t){return Yi(t,function(e){return e})||[]},only:function(t){if(!kl(t))throw Error(wr(143));return t}},Y.Component=go,Y.PureComponent=wl,Y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=E1,Y.cloneElement=function(t,e,n){if(t==null)throw Error(wr(267,t));var o=yl({},t.props),r=t.key,i=t.ref,s=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,s=vl.current),e.key!==void 0&&(r=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)vm.call(e,l)&&!km.hasOwnProperty(l)&&(o[l]=e[l]===void 0&&a!==void 0?a[l]:e[l])}var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];o.children=a}return{$$typeof:ho,type:t.type,key:r,ref:i,props:o,_owner:s}},Y.createContext=function(t,e){return e===void 0&&(e=null),t={$$typeof:mm,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider={$$typeof:dm,_context:t},t.Consumer=t},Y.createElement=bm,Y.createFactory=function(t){var e=bm.bind(null,t);return e.type=t,e},Y.createRef=function(){return{current:null}},Y.forwardRef=function(t){return{$$typeof:fm,render:t}},Y.isValidElement=kl,Y.lazy=function(t){return{$$typeof:hm,_payload:{_status:-1,_result:t},_init:C1}},Y.memo=function(t,e){return{$$typeof:pm,type:t,compare:e===void 0?null:e}},Y.useCallback=function(t,e){return Dt().useCallback(t,e)},Y.useContext=function(t,e){return Dt().useContext(t,e)},Y.useDebugValue=function(){},Y.useEffect=function(t,e){return Dt().useEffect(t,e)},Y.useImperativeHandle=function(t,e,n){return Dt().useImperativeHandle(t,e,n)},Y.useLayoutEffect=function(t,e){return Dt().useLayoutEffect(t,e)},Y.useMemo=function(t,e){return Dt().useMemo(t,e)},Y.useReducer=function(t,e,n){return Dt().useReducer(t,e,n)},Y.useRef=function(t){return Dt().useRef(t)},Y.useState=function(t){return Dt().useState(t)},Y.version="17.0.2",um.exports=Y;var x=um.exports;const H=Qe(x),Cm=yt({__proto__:null,default:H},[x]);/** @license React v17.0.2
12
+ */var wl=um,go=60103,dm=60106;K.Fragment=60107,K.StrictMode=60108,K.Profiler=60114;var mm=60109,fm=60110,pm=60112;K.Suspense=60113;var hm=60115,gm=60116;if(typeof Symbol=="function"&&Symbol.for){var dt=Symbol.for;go=dt("react.element"),dm=dt("react.portal"),K.Fragment=dt("react.fragment"),K.StrictMode=dt("react.strict_mode"),K.Profiler=dt("react.profiler"),mm=dt("react.provider"),fm=dt("react.context"),pm=dt("react.forward_ref"),K.Suspense=dt("react.suspense"),hm=dt("react.memo"),gm=dt("react.lazy")}var ym=typeof Symbol=="function"&&Symbol.iterator;function $1(t){return t===null||typeof t!="object"?null:(t=ym&&t[ym]||t["@@iterator"],typeof t=="function"?t:null)}function Sr(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var wm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Sm={};function yo(t,e,n){this.props=t,this.context=e,this.refs=Sm,this.updater=n||wm}yo.prototype.isReactComponent={},yo.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error(Sr(85));this.updater.enqueueSetState(this,t,e,"setState")},yo.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function vm(){}vm.prototype=yo.prototype;function Sl(t,e,n){this.props=t,this.context=e,this.refs=Sm,this.updater=n||wm}var vl=Sl.prototype=new vm;vl.constructor=Sl,wl(vl,yo.prototype),vl.isPureReactComponent=!0;var bl={current:null},bm=Object.prototype.hasOwnProperty,km={key:!0,ref:!0,__self:!0,__source:!0};function xm(t,e,n){var o,r={},i=null,s=null;if(e!=null)for(o in e.ref!==void 0&&(s=e.ref),e.key!==void 0&&(i=""+e.key),e)bm.call(e,o)&&!km.hasOwnProperty(o)&&(r[o]=e[o]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}if(t&&t.defaultProps)for(o in a=t.defaultProps,a)r[o]===void 0&&(r[o]=a[o]);return{$$typeof:go,type:t,key:i,ref:s,props:r,_owner:bl.current}}function C1(t,e){return{$$typeof:go,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function kl(t){return typeof t=="object"&&t!==null&&t.$$typeof===go}function E1(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var $m=/\/+/g;function xl(t,e){return typeof t=="object"&&t!==null&&t.key!=null?E1(""+t.key):e.toString(36)}function Yi(t,e,n,o,r){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var s=!1;if(t===null)s=!0;else switch(i){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case go:case dm:s=!0}}if(s)return s=t,r=r(s),t=o===""?"."+xl(s,0):o,Array.isArray(r)?(n="",t!=null&&(n=t.replace($m,"$&/")+"/"),Yi(r,e,n,"",function(u){return u})):r!=null&&(kl(r)&&(r=C1(r,n+(!r.key||s&&s.key===r.key?"":(""+r.key).replace($m,"$&/")+"/")+t)),e.push(r)),1;if(s=0,o=o===""?".":o+":",Array.isArray(t))for(var a=0;a<t.length;a++){i=t[a];var l=o+xl(i,a);s+=Yi(i,e,n,l,r)}else if(l=$1(t),typeof l=="function")for(t=l.call(t),a=0;!(i=t.next()).done;)i=i.value,l=o+xl(i,a++),s+=Yi(i,e,n,l,r);else if(i==="object")throw e=""+t,Error(Sr(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e));return s}function Ki(t,e,n){if(t==null)return t;var o=[],r=0;return Yi(t,o,"","",function(i){return e.call(n,i,r++)}),o}function N1(t){if(t._status===-1){var e=t._result;e=e(),t._status=0,t._result=e,e.then(function(n){t._status===0&&(n=n.default,t._status=1,t._result=n)},function(n){t._status===0&&(t._status=2,t._result=n)})}if(t._status===1)return t._result;throw t._result}var Cm={current:null};function Tt(){var t=Cm.current;if(t===null)throw Error(Sr(321));return t}var O1={ReactCurrentDispatcher:Cm,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:bl,IsSomeRendererActing:{current:!1},assign:wl};K.Children={map:Ki,forEach:function(t,e,n){Ki(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Ki(t,function(){e++}),e},toArray:function(t){return Ki(t,function(e){return e})||[]},only:function(t){if(!kl(t))throw Error(Sr(143));return t}},K.Component=yo,K.PureComponent=Sl,K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O1,K.cloneElement=function(t,e,n){if(t==null)throw Error(Sr(267,t));var o=wl({},t.props),r=t.key,i=t.ref,s=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,s=bl.current),e.key!==void 0&&(r=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)bm.call(e,l)&&!km.hasOwnProperty(l)&&(o[l]=e[l]===void 0&&a!==void 0?a[l]:e[l])}var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];o.children=a}return{$$typeof:go,type:t.type,key:r,ref:i,props:o,_owner:s}},K.createContext=function(t,e){return e===void 0&&(e=null),t={$$typeof:fm,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider={$$typeof:mm,_context:t},t.Consumer=t},K.createElement=xm,K.createFactory=function(t){var e=xm.bind(null,t);return e.type=t,e},K.createRef=function(){return{current:null}},K.forwardRef=function(t){return{$$typeof:pm,render:t}},K.isValidElement=kl,K.lazy=function(t){return{$$typeof:gm,_payload:{_status:-1,_result:t},_init:N1}},K.memo=function(t,e){return{$$typeof:hm,type:t,compare:e===void 0?null:e}},K.useCallback=function(t,e){return Tt().useCallback(t,e)},K.useContext=function(t,e){return Tt().useContext(t,e)},K.useDebugValue=function(){},K.useEffect=function(t,e){return Tt().useEffect(t,e)},K.useImperativeHandle=function(t,e,n){return Tt().useImperativeHandle(t,e,n)},K.useLayoutEffect=function(t,e){return Tt().useLayoutEffect(t,e)},K.useMemo=function(t,e){return Tt().useMemo(t,e)},K.useReducer=function(t,e,n){return Tt().useReducer(t,e,n)},K.useRef=function(t){return Tt().useRef(t)},K.useState=function(t){return Tt().useState(t)},K.version="17.0.2",cm.exports=K;var x=cm.exports;const V=Ze(x),Em=wt({__proto__:null,default:V},[x]);/** @license React v17.0.2
13
13
  * react-jsx-runtime.production.min.js
14
14
  *
15
15
  * Copyright (c) Facebook, Inc. and its affiliates.
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 N1=x,Em=60103;if(yr.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Nm=Symbol.for;Em=Nm("react.element"),yr.Fragment=Nm("react.fragment")}var O1=N1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,A1=Object.prototype.hasOwnProperty,R1={key:!0,ref:!0,__self:!0,__source:!0};function Om(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)A1.call(e,o)&&!R1.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:Em,type:t,key:i,ref:s,props:r,_owner:O1.current}}yr.jsx=Om,yr.jsxs=Om,_t.exports=yr;var S=_t.exports;const M1=({adminUrl:t,onLoad:e})=>{const n={display:"none"};return S.jsx("iframe",{"data-frame":"admin-auth",src:t+"auth-frame/",style:n,title:"auth-frame",onLoad:e})};var D1=function(t){return t instanceof RegExp},T1=function(e){var n=/[\\^$.*+?()[\]{}|]/g,o=RegExp(n.source);return e&&o.test(e)?e.replace(n,"\\$&"):e},Am=function(t){return typeof t=="string"},j1=function(t){var e=[];return t.forEach(function(n){Array.isArray(n)?e=e.concat(n):e.push(n)}),e};function P1(t,e,n){var o=0,r=0;if(t==="")return t;if(!t||!Am(t))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var i=e;D1(i)||(i=new RegExp("("+T1(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 I1=function(e,n,o){return Array.isArray(e)||(e=[e]),j1(e.map(function(r){return Am(r)?P1(r,n,o):r}))};const Rm=Qe(I1),xl=H.createContext({});xl.Provider;const V=()=>x.useContext(xl),Mm=()=>{try{return V().labs||{}}catch{return{}}},L1=({isFirst:t,isPaid:e})=>{const{accentColor:n,commentCount:o,publication:r,member:i,t:s}=V(),a={backgroundColor:n},l={color:n},u=s(t?"Start the conversation":"Join the discussion"),c=()=>{window.location.href=e&&i?"#/portal/account/plans":"#/portal/signup"},m=()=>{window.location.href="#/portal/signin"},d=Rm(s(e?"Become a paid member of {{publication}} to start commenting.":"Become a member of {{publication}} to start commenting."),"{{publication}}",()=>S.jsx("span",{className:"font-semibold",children:r}));return S.jsxs("section",{className:`flex flex-col items-center pt-[40px] ${i?"pb-[32px]":"pb-[48px]"} ${!t&&"mt-4"} ${!i&&o?"border-t":"border-none"} border-[rgba(0,0,0,0.075)] sm:px-8 dark:border-[rgba(255,255,255,0.1)]`,"data-testid":"cta-box",children:[S.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:u}),S.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:d}),S.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:c,children:s(e&&i?"Upgrade now":"Sign up now")}),!i&&S.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:[S.jsx("span",{className:"mr-1 inline-block text-[15px]",children:s("Already a member?")}),S.jsx("button",{className:"rounded-md text-sm font-semibold transition-all hover:opacity-90","data-testid":"signin-button",style:l,type:"button",onClick:m,children:s("Sign in")})]})]})},Dm=t=>x.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M7 9.5C7 10.1566 7.12933 10.8068 7.3806 11.4134C7.63188 12.02 8.00017 12.5712 8.46447 13.0355C8.92876 13.4998 9.47995 13.8681 10.0866 14.1194C10.6932 14.3707 11.3434 14.5 12 14.5C12.6566 14.5 13.3068 14.3707 13.9134 14.1194C14.52 13.8681 15.0712 13.4998 15.5355 13.0355C15.9998 12.5712 16.3681 12.02 16.6194 11.4134C16.8707 10.8068 17 10.1566 17 9.5C17 8.84339 16.8707 8.19321 16.6194 7.58658C16.3681 6.97995 15.9998 6.42876 15.5355 5.96447C15.0712 5.50017 14.52 5.13188 13.9134 4.8806C13.3068 4.62933 12.6566 4.5 12 4.5C11.3434 4.5 10.6932 4.62933 10.0866 4.8806C9.47995 5.13188 8.92876 5.50017 8.46447 5.96447C8.00017 6.42876 7.63188 6.97995 7.3806 7.58658C7.12933 8.19321 7 8.84339 7 9.5V9.5Z",stroke:"white",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("circle",{cx:12,cy:12,r:11.375,stroke:"white",strokeWidth:1.25}),x.createElement("path",{d:"M19.5 20C19.092 19.6069 18.4941 19.2498 17.7403 18.9489C16.9864 18.6481 16.0915 18.4094 15.1066 18.2466C14.1217 18.0838 13.0661 18 12 18C10.9339 18 9.87831 18.0838 8.8934 18.2466C7.90848 18.4094 7.01357 18.6481 6.25975 18.9489C5.50593 19.2498 4.90796 19.6069 4.5 20",stroke:"white",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}));function Ki(t){return t!==0&&!t?"":t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function z1(t,e){const n=new Date(t),o=new Date;let r=Math.round((o.getTime()-n.getTime())/1e3);if(r<5)return e("Just now");if(r<60)return e("{{amount}} seconds ago",{amount:r});if(r=r/60,r<60)return Math.floor(r)===1?e("One min ago"):e("{{amount}} mins ago",{amount:Math.floor(r)});const i=new Date(o.getFullYear(),o.getMonth(),o.getDate()-1);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()&&n.getDate()===i.getDate()?e("Yesterday"):(r=r/60,r<24?Math.floor(r)===1?e("One hour ago"):e("{{amount}} hrs ago",{amount:Math.floor(r)}):(r=r/24,r<7?Math.floor(r)===1?e("One day ago"):e("{{amount}} days ago",{amount:Math.floor(r)}):(r=r/7,r<4?Math.floor(r)===1?e("One week ago"):e("{{amount}} weeks ago",{amount:Math.floor(r)}):(r=r*7/30,r<12?Math.floor(r)===1?e("One month ago"):e("{{amount}} months ago",{amount:Math.floor(r)}):(r=r*30/365,Math.floor(r)===1?e("One year ago"):e("{{amount}} years ago",{amount:Math.floor(r)}))))))}function F1(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 B1(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 Tm(t,e){return t?t.name?t.name:e("Anonymous"):e("Deleted member")}function H1(t,e){return Tm(t.member,e)}function V1(t,e){return B1(Tm(t.member,e))}function jm(){return Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<480}function U1(t){return t.status==="published"}const J1=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},Pm=t=>{const e=t.offsetHeight,n=J1(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 Im(){return"w-8 h-8"}const _1=()=>{const t=Im();return S.jsx("figure",{className:`relative ${t}`,children:S.jsx("div",{className:`flex items-center justify-center rounded-full bg-[rgba(0,0,0,0.085)] dark:bg-[rgba(255,255,255,0.15)] ${t}`,children:S.jsx(Dm,{className:"stroke-white opacity-80"})})})},Lm=({comment:t})=>{var y;const{member:e,avatarSaturation:n,t:o}=V(),r=Im(),i=(e==null?void 0:e.name)??((y=t==null?void 0:t.member)==null?void 0:y.name),s=h=>{let g=0;for(let w=0;w<h.length;w++)g=h.charCodeAt(w)+((g<<5)-g);return g=Math.abs(g),g},a=(h,g,w)=>Math.floor(h%(w-g)+g),l=()=>{const h=t?t.member:e;if(!h||!h.name)return[0,0,10];const g=n===void 0||isNaN(n)?50:n,w=[0,360],v=Math.round(g/(100/30))+30,E=[v-20,v],k=s(h.name),$=a(k,w[0],w[1]),R=a(k,E[0],E[1]);return[$,g,R]},u=h=>`hsl(${h[0]}, ${h[1]}%, ${h[2]}%)`,c=t&&V1(t,o)||"",m=t?t.member:e,f={background:u(l())},p=S.jsxs(S.Fragment,{children:[i?S.jsx("div",{className:`flex items-center justify-center rounded-full ${r}`,"data-testid":"avatar-background",style:f,children:S.jsx("p",{className:"font-sans text-base font-semibold text-white",children:c})}):S.jsx("div",{className:`flex items-center justify-center rounded-full bg-neutral-900 dark:bg-[rgba(255,255,255,0.7)] ${r}`,"data-testid":"avatar-background",children:S.jsx(Dm,{className:"stroke-white dark:stroke-[rgba(0,0,0,0.6)]"})}),m&&S.jsx("img",{alt:"Avatar",className:`absolute left-0 top-0 rounded-full ${r}`,src:m.avatar_image})]});return S.jsx("figure",{className:`relative ${r}`,children:p})},Y1=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 ke(t){this.content=t}ke.prototype={constructor:ke,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 ke(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 ke(n)},addToStart:function(t,e){return new ke([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new ke(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 ke(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=ke.from(t),t.size?new ke(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=ke.from(t),t.size?new ke(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=ke.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}},ke.from=function(t){if(t instanceof ke)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new ke(e)};function zm(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=zm(r.content,i.content,n+1);if(s!=null)return s}n+=r.nodeSize}}function Fm(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 u=0,c=Math.min(s.text.length,a.text.length);for(;u<c&&s.text[s.text.length-u-1]==a.text[a.text.length-u-1];)u++,n--,o--;return{a:n,b:o}}if(s.content.size||a.content.size){let u=Fm(s.content,a.content,n-1,o-1);if(u)return u}n-=l,o-=l}}class N{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],u=a+l.nodeSize;if(u>e&&o(l,r+a,i||null,s)!==!1&&l.content.size){let c=a+1;l.nodesBetween(Math.max(0,e-c),Math.min(l.content.size,n-c),o,r+c)}a=u}}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 u=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&&u||a.isTextblock)&&o&&(s?s=!1:i+=o),i+=u},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 N(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 N(o,r)}cutByIndex(e,n){return e==n?N.empty:e==0&&n==this.content.length?this:new N(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 N(r,i)}addToStart(e){return new N([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new N(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 zm(this,e,n)}findDiffEnd(e,n=this.size,o=e.size){return Fm(this,e,n,o)}findIndex(e,n=-1){if(e==0)return Wi(0,e);if(e==this.size)return Wi(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let o=0,r=0;;o++){let i=this.child(o),s=r+i.nodeSize;if(s>=e)return s==e||n>0?Wi(o+1,s):Wi(o,r);r=s}}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 N.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new N(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return N.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 N(n||e,o)}static from(e){if(!e)return N.empty;if(e instanceof N)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new N([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}N.empty=new N([],0);const $l={index:0,offset:0};function Wi(t,e){return $l.index=t,$l.offset=e,$l}function qi(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(!qi(t[o],e[o]))return!1}else{for(let o in t)if(!(o in e)||!qi(t[o],e[o]))return!1;for(let o in e)if(!(o in t))return!1}return!0}let W=class im{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&&qi(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 im.none;if(e instanceof im)return[e];let n=e.slice();return n.sort((o,r)=>o.type.rank-r.type.rank),n}};W.none=[];class Gi extends Error{}class D{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=Hm(this.content,e+this.openStart,n);return o&&new D(o,this.openStart,this.openEnd)}removeBetween(e,n){return new D(Bm(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 D.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 D(N.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 D(e,o,r)}}D.empty=new D(N.empty,0,0);function Bm(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(Bm(i.content,e-r-1,n-r-1)))}function Hm(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=Hm(s.content,e-i-1,n);return a&&t.replaceChild(r,s.copy(a))}function K1(t,e,n){if(n.openStart>t.depth)throw new Gi("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Gi("Inconsistent open depths");return Vm(t,e,n,0)}function Vm(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=Vm(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 jn(s,a.cut(0,t.parentOffset).append(n.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=W1(n,t);return jn(i,Jm(t,s,a,e,o))}else return jn(i,Qi(t,e,o))}function Um(t,e){if(!e.type.compatibleContent(t.type))throw new Gi("Cannot join "+e.type.name+" onto "+t.type.name)}function Cl(t,e,n){let o=t.node(n);return Um(o,e.node(n)),o}function Tn(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 Sr(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&&(Tn(t.nodeAfter,o),i++));for(let a=i;a<s;a++)Tn(r.child(a),o);e&&e.depth==n&&e.textOffset&&Tn(e.nodeBefore,o)}function jn(t,e){return t.type.checkContent(e),t.copy(e)}function Jm(t,e,n,o,r){let i=t.depth>r&&Cl(t,e,r+1),s=o.depth>r&&Cl(n,o,r+1),a=[];return Sr(null,t,r,a),i&&s&&e.index(r)==n.index(r)?(Um(i,s),Tn(jn(i,Jm(t,e,n,o,r+1)),a)):(i&&Tn(jn(i,Qi(t,e,r+1)),a),Sr(e,n,r,a),s&&Tn(jn(s,Qi(n,o,r+1)),a)),Sr(o,null,r,a),new N(a)}function Qi(t,e,n){let o=[];if(Sr(null,t,n,o),t.depth>n){let r=Cl(t,e,n+1);Tn(jn(r,Qi(t,e,n+1)),o)}return Sr(e,null,n,o),new N(o)}function W1(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(N.from(r));return{start:r.resolveNoCache(t.openStart+n),end:r.resolveNoCache(r.content.size-t.openEnd-n)}}class vr{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 W.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 Zi(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),u=i-l;if(o.push(s,a,r+l),!u||(s=s.child(a),s.isText))break;i=u-1,r+=l+1}return new vr(n,o,i)}static resolveCached(e,n){let o=_m.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 _m.set(e,o=new q1);let r=o.elts[o.i]=vr.resolve(e,n);return o.i=(o.i+1)%G1,r}}class q1{constructor(){this.elts=[],this.i=0}}const G1=12,_m=new WeakMap;class Zi{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 Q1=Object.create(null);let Pn=class sm{constructor(e,n,o,r=W.none){this.type=e,this.attrs=n,this.marks=r,this.content=o||N.empty}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&&qi(this.attrs,n||e.defaultAttrs||Q1)&&W.sameSet(this.marks,o||W.none)}copy(e=null){return e==this.content?this:new sm(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new sm(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 D.empty;let r=this.resolve(e),i=this.resolve(n),s=o?0:r.sharedDepth(n),a=r.start(s),u=r.node(s).content.cut(r.pos-a,i.pos-a);return new D(u,r.depth-s,i.depth-s)}replace(e,n,o){return K1(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 vr.resolveCached(this,e)}resolveNoCache(e){return vr.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()+")"),Ym(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=N.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=W.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(!W.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=N.fromJSON(e,n.content),i=e.nodeType(n.type).create(n.attrs,r,o);return i.type.checkAttrs(i.attrs),i}};Pn.prototype.text=void 0;class Xi extends Pn{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):Ym(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 Xi(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Xi(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 Ym(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class In{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let o=new Z1(e,n);if(o.next==null)return In.empty;let r=Km(o);o.next&&o.err("Unexpected trailing text");let i=iw(rw(r));return sw(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 N.from(a.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:c,next:m}=s.next[u];if(!(c.isText||c.hasRequiredAttrs())&&r.indexOf(m)==-1){r.push(m);let d=i(m,a.concat(c));if(d)return d}}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(`
20
- `)}}In.empty=new In(!0);class Z1{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 Km(t){let e=[];do e.push(X1(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function X1(t){let e=[];do e.push(ew(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function ew(t){let e=ow(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=tw(t,e);else break;return e}function Wm(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function tw(t,e){let n=Wm(t),o=n;return t.eat(",")&&(t.next!="}"?o=Wm(t):o=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:o,expr:e}}function nw(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.groups.indexOf(e)>-1&&r.push(s)}return r.length==0&&t.err("No node type or group '"+e+"' found"),r}function ow(t){if(t.eat("(")){let e=Km(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=nw(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function rw(t){let e=[[]];return r(i(t,0),n()),e;function n(){return e.push([])-1}function o(s,a,l){let u={term:l,to:a};return e[s].push(u),u}function r(s,a){s.forEach(l=>l.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((l,u)=>l.concat(i(u,a)),[]);if(s.type=="seq")for(let l=0;;l++){let u=i(s.exprs[l],a);if(l==s.exprs.length-1)return u;r(u,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 u=0;u<s.min;u++){let c=n();r(i(s.expr,l),c),l=c}if(s.max==-1)r(i(s.expr,l),l);else for(let u=s.min;u<s.max;u++){let c=n();o(l,c),r(i(s.expr,l),c),l=c}return[o(l)]}else{if(s.type=="name")return[o(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function qm(t,e){return e-t}function Gm(t,e){let n=[];return o(e),n.sort(qm);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 iw(t){let e=Object.create(null);return n(Gm(t,0));function n(o){let r=[];o.forEach(s=>{t[s].forEach(({term:a,to:l})=>{if(!a)return;let u;for(let c=0;c<r.length;c++)r[c][0]==a&&(u=r[c][1]);Gm(t,l).forEach(c=>{u||r.push([a,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let i=e[o.join(",")]=new In(o.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(qm);i.next.push({type:r[s][0],next:e[a.join(",")]||n(a)})}return i}}function sw(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:u}=r.next[a];s.push(l.name),i&&!(l.isText||l.hasRequiredAttrs())&&(i=!1),o.indexOf(u)==-1&&o.push(u)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Qm(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 Zm(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 Xm(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 ef(t,e){let n=Object.create(null);if(e)for(let o in e)n[o]=new lw(t,o,e[o]);return n}let tf=class y1{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=ef(e,o.attrs),this.defaultAttrs=Qm(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==In.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}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:Zm(this.attrs,e)}create(e=null,n,o){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Pn(this,this.computeAttrs(e),N.from(n),W.setFrom(o))}createChecked(e=null,n,o){return n=N.from(n),this.checkContent(n),new Pn(this,this.computeAttrs(e),n,W.setFrom(o))}createAndFill(e=null,n,o){if(e=this.computeAttrs(e),n=N.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(N.empty,!0);return i?new Pn(this,e,n.append(i),W.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){Xm(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:W.none:e}static compile(e,n){let o=Object.create(null);e.forEach((i,s)=>o[i]=new y1(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 aw(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 lw{constructor(e,n,o){this.hasDefault=Object.prototype.hasOwnProperty.call(o,"default"),this.default=o.default,this.validate=typeof o.validate=="string"?aw(e,n,o.validate):o.validate}get isRequired(){return!this.hasDefault}}class es{constructor(e,n,o,r){this.name=e,this.rank=n,this.schema=o,this.spec=r,this.attrs=ef(e,r.attrs),this.excluded=null;let i=Qm(this.attrs);this.instance=i?new W(this,i):null}create(e=null){return!e&&this.instance?this.instance:new W(this,Zm(this.attrs,e))}static compile(e,n){let o=Object.create(null),r=0;return e.forEach((i,s)=>o[i]=new es(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){Xm(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class nf{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=ke.from(e.nodes),n.marks=ke.from(e.marks||{}),this.nodes=tf.compile(this.spec.nodes,this),this.marks=es.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]=In.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?of(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==""?[]:of(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),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 tf){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 Xi(o,o.defaultAttrs,e,W.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return Pn.fromJSON(this,e)}markFromJSON(e){return W.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function of(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 uw(t){return t.tag!=null}function cw(t){return t.style!=null}class Yt{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let o=this.matchedStyles=[];n.forEach(r=>{if(uw(r))this.tags.push(r);else if(cw(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 lf(this,n,!1);return o.addAll(e,W.none,n.from,n.to),o.finish()}parseSlice(e,n={}){let o=new lf(this,n,!0);return o.addAll(e,W.none,n.from,n.to),D.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(fw(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=uf(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=uf(s)),s.node||s.ignore||s.mark||(s.node=r)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Yt(e,Yt.schemaRules(e)))}}const rf={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},dw={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},sf={ol:!0,ul:!0},ts=1,ns=2,kr=4;function af(t,e,n){return e!=null?(e?ts:0)|(e==="full"?ns:0):t&&t.whitespace=="pre"?ts|ns:n&~kr}class rs{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=W.none,this.match=i||(s&kr?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(N.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&ts)){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=N.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(N.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&&!rf.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class lf{constructor(e,n,o){this.parser=e,this.options=n,this.isOpen=o,this.open=0;let r=n.topNode,i,s=af(null,n.preserveWhitespace,0)|(o?kr:0);r?i=new rs(r.type,r.attrs,W.none,!0,n.topMatch||r.type.contentMatch,s):o?i=new rs(null,null,W.none,!0,null,s):i=new rs(e.schema.topNodeType,null,W.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;if(r.options&ns||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(o)){if(r.options&ts)r.options&ns?o=o.replace(/\r\n?/g,`
21
- `):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 i=r.content[r.content.length-1],s=e.previousSibling;(!i||s&&s.nodeName=="BR"||i.isText&&/[ \t\r\n\u000c]$/.test(i.text))&&(o=o.slice(1))}o&&this.insertNode(this.parser.schema.text(o),n),this.findInText(e)}else this.findInside(e)}addElement(e,n,o){let r=e.nodeName.toLowerCase(),i;sf.hasOwnProperty(r)&&this.parser.normalizeLists&&mw(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(i=this.parser.matchTag(e,this,o));if(s?s.ignore:dw.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e,n);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let a,l=this.top,u=this.needsBlock;if(rf.hasOwnProperty(r))l.content.length&&l.content[0].isInline&&this.open&&(this.open--,l=this.top),a=!0,l.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);return}let c=s&&s.skip?n:this.readStyles(e,n);c&&this.addAll(e,c),a&&this.sync(l),this.needsBlock=u}else{let a=this.readStyles(e,n);a&&this.addElementByRule(e,s,a,s.consuming===!1?i:void 0)}}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
22
- `),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n)}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(u=>!l.clearMark(u)):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)||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));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)}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){let o,r;for(let i=this.open;i>=0;i--){let s=this.nodes[i],a=s.findWrapping(e);if(a&&(!o||o.length>a.length)&&(o=a,r=s,!a.length)||s.solid)break}if(!o)return null;this.sync(r);for(let i=0;i<o.length;i++)n=this.enterInner(o[i],null,n,!1);return n}insertNode(e,n){if(e.isInline&&this.needsBlock&&!this.top.type){let r=this.textblockFromContext();r&&(n=this.enterInner(r,null,n))}let o=this.findPlace(e,n);if(o){this.closeExtra();let r=this.top;r.match&&(r.match=r.match.matchType(e.type));let i=W.none;for(let s of o.concat(e.marks))(r.type?r.type.allowsMarkType(s.type):cf(s.type,e.type))&&(i=s.addToSet(i));return r.content.push(e.mark(i)),!0}return!1}enter(e,n,o,r){let i=this.findPlace(e.create(n),o);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=af(e,i,s.options);s.options&kr&&s.content.length==0&&(a|=kr);let l=W.none;return o=o.filter(u=>(s.type?s.type.allowsMarkType(u.type):cf(u.type,e))?(l=u.addToSet(l),!1):!0),this.nodes.push(new rs(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;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 u=n[a];if(u==""){if(a==n.length-1||a==0)continue;for(;l>=i;l--)if(s(a-1,l))return!0;return!1}else{let c=l>0||l==0&&r?this.nodes[l].type:o&&l>=i?o.node(l-i).type:null;if(!c||c.name!=u&&c.groups.indexOf(u)==-1)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 mw(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let o=e.nodeType==1?e.nodeName.toLowerCase():null;o&&sf.hasOwnProperty(o)&&n?(n.appendChild(e),e=n):o=="li"?n=e:o&&(n=null)}}function fw(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function uf(t){let e={};for(let n in t)e[n]=t[n];return e}function cf(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:u,next:c}=a.edge(l);if(u==e||i.indexOf(c)<0&&s(c))return!0}};if(s(r.contentMatch))return!0}}class Ln{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},o){o||(o=El(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 u=s.marks[l];if(!this.marks[u.type.name]){l++;continue}if(!u.eq(i[a][0])||u.type.spec.spanning===!1)break;a++,l++}for(;a<i.length;)r=i.pop()[1];for(;l<s.marks.length;){let u=s.marks[l++],c=this.serializeMark(u,s.isInline,n);c&&(i.push([u,r]),r.appendChild(c.dom),r=c.contentDOM||c.dom)}}r.appendChild(this.serializeNodeInner(s,n))}),o}serializeNodeInner(e,n){let{dom:o,contentDOM:r}=is(El(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&&is(El(o),r(e,n),null,e.attrs)}static renderSpec(e,n,o=null,r){return is(e,n,o,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Ln(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=df(e.nodes);return n.text||(n.text=o=>o.text),n}static marksFromSchema(e){return df(e.marks)}}function df(t){let e={};for(let n in t){let o=t[n].spec.toDOM;o&&(e[n]=o)}return e}function El(t){return t.document||window.document}const mf=new WeakMap;function pw(t){let e=mf.get(t);return e===void 0&&mf.set(t,e=hw(t)),e}function hw(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 is(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=pw(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),u=e[1],c=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){c=2;for(let m in u)if(u[m]!=null){let d=m.indexOf(" ");d>0?l.setAttributeNS(m.slice(0,d),m.slice(d+1),u[m]):l.setAttribute(m,u[m])}}for(let m=c;m<e.length;m++){let d=e[m];if(d===0){if(m<e.length-1||m>c)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}=is(t,d,n,o);if(l.appendChild(f),p){if(a)throw new RangeError("Multiple content holes");a=p}}}return{dom:l,contentDOM:a}}const ff=65535,pf=Math.pow(2,16);function gw(t,e){return t+e*pf}function hf(t){return t&ff}function yw(t){return(t-(t&ff))/pf}const gf=1,yf=2,ss=4,wf=8;class Nl{constructor(e,n,o){this.pos=e,this.delInfo=n,this.recover=o}get deleted(){return(this.delInfo&wf)>0}get deletedBefore(){return(this.delInfo&(gf|ss))>0}get deletedAfter(){return(this.delInfo&(yf|ss))>0}get deletedAcross(){return(this.delInfo&ss)>0}}class We{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&We.empty)return We.empty}recover(e){let n=0,o=hf(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+yw(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 u=this.ranges[a+i],c=this.ranges[a+s],m=l+u;if(e<=m){let d=u?e==l?-1:e==m?1:n:n,f=l+r+(d<0?0:c);if(o)return f;let p=e==(n<0?l:m)?null:gw(a/3,e-l),y=e==l?yf:e==m?gf:ss;return(n<0?e!=l:e!=m)&&(y|=wf),new Nl(f,y,p)}r+=c-u}return o?e+r:new Nl(e+r,0,null)}touches(e,n){let o=0,r=hf(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 u=this.ranges[a+i],c=l+u;if(e<=c&&a==r*3)return!0;o+=this.ranges[a+s]-u}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),u=this.ranges[r+n],c=this.ranges[r+o];e(a,a+u,l,l+c),i+=c-u}}invert(){return new We(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?We.empty:new We(e<0?[0,-e,0]:[0,0,e])}}We.empty=new We([]);class br{constructor(e=[],n,o=0,r=e.length){this.maps=e,this.mirror=n,this.from=o,this.to=r}slice(e=0,n=this.maps.length){return new br(this.maps,this.mirror,e,n)}copy(){return new br(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,n){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 br;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 Nl(e,r,null)}}const Ol=Object.create(null);class Ae{getMap(){return We.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let o=Ol[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 Ol)throw new RangeError("Duplicate use of step JSON ID "+e);return Ol[e]=n,n.prototype.jsonID=e,n}}class ue{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new ue(e,null)}static fail(e){return new ue(null,e)}static fromReplace(e,n,o,r){try{return ue.ok(e.replace(n,o,r))}catch(i){if(i instanceof Gi)return ue.fail(i.message);throw i}}}function Al(t,e,n){let o=[];for(let r=0;r<t.childCount;r++){let i=t.child(r);i.content.size&&(i=i.copy(Al(i.content,e,i))),i.isInline&&(i=e(i,n,r)),o.push(i)}return N.fromArray(o)}class Kt extends Ae{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 D(Al(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 ue.fromReplace(e,this.from,this.to,i)}invert(){return new wt(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 Kt(n.pos,o.pos,this.mark)}merge(e){return e instanceof Kt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Kt(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 Kt(n.from,n.to,e.markFromJSON(n.mark))}}Ae.jsonID("addMark",Kt);class wt extends Ae{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 D(Al(n.content,r=>r.mark(this.mark.removeFromSet(r.marks)),e),n.openStart,n.openEnd);return ue.fromReplace(e,this.from,this.to,o)}invert(){return new Kt(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 wt(n.pos,o.pos,this.mark)}merge(e){return e instanceof wt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new wt(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 wt(n.from,n.to,e.markFromJSON(n.mark))}}Ae.jsonID("removeMark",wt);class Wt extends Ae{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ue.fail("No node at mark step's position");let o=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return ue.fromReplace(e,this.pos,this.pos+1,new D(N.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 Wt(this.pos,n.marks[r]);return new Wt(this.pos,this.mark)}}return new yo(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Wt(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 Wt(n.pos,e.markFromJSON(n.mark))}}Ae.jsonID("addNodeMark",Wt);class yo extends Ae{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ue.fail("No node at mark step's position");let o=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return ue.fromReplace(e,this.pos,this.pos+1,new D(N.from(o),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Wt(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new yo(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 yo(n.pos,e.markFromJSON(n.mark))}}Ae.jsonID("removeNodeMark",yo);class pe extends Ae{constructor(e,n,o,r=!1){super(),this.from=e,this.to=n,this.slice=o,this.structure=r}apply(e){return this.structure&&Rl(e,this.from,this.to)?ue.fail("Structure replace would overwrite content"):ue.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new We([this.from,this.to-this.from,this.slice.size])}invert(e){return new pe(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 pe(n.pos,Math.max(n.pos,o.pos),this.slice)}merge(e){if(!(e instanceof pe)||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?D.empty:new D(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new pe(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?D.empty:new D(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new pe(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 pe(n.from,n.to,D.fromJSON(e,n.slice),!!n.structure)}}Ae.jsonID("replace",pe);class he extends Ae{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&&(Rl(e,this.from,this.gapFrom)||Rl(e,this.gapTo,this.to)))return ue.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return ue.fail("Gap is not a flat range");let o=this.slice.insertAt(this.insert,n.content);return o?ue.fromReplace(e,this.from,this.to,o):ue.fail("Content does not fit in gap")}getMap(){return new We([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 he(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 he(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 he(n.from,n.to,n.gapFrom,n.gapTo,D.fromJSON(e,n.slice),n.insert,!!n.structure)}}Ae.jsonID("replaceAround",he);function Rl(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 ww(t,e,n,o){let r=[],i=[],s,a;t.doc.nodesBetween(e,n,(l,u,c)=>{if(!l.isInline)return;let m=l.marks;if(!o.isInSet(m)&&c.type.allowsMarkType(o.type)){let d=Math.max(u,e),f=Math.min(u+l.nodeSize,n),p=o.addToSet(m);for(let y=0;y<m.length;y++)m[y].isInSet(p)||(s&&s.to==d&&s.mark.eq(m[y])?s.to=f:r.push(s=new wt(d,f,m[y])));a&&a.to==d?a.to=f:i.push(a=new Kt(d,f,o))}}),r.forEach(l=>t.step(l)),i.forEach(l=>t.step(l))}function Sw(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 es){let u=s.marks,c;for(;c=o.isInSet(u);)(l||(l=[])).push(c),u=c.removeFromSet(u)}else o?o.isInSet(s.marks)&&(l=[o]):l=s.marks;if(l&&l.length){let u=Math.min(a+s.nodeSize,n);for(let c=0;c<l.length;c++){let m=l[c],d;for(let f=0;f<r.length;f++){let p=r[f];p.step==i-1&&m.eq(r[f].style)&&(d=p)}d?(d.to=u,d.step=i):r.push({style:m,from:Math.max(a,e),to:u,step:i})}}}),r.forEach(s=>t.step(new wt(s.from,s.to,s.style)))}function Sf(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 u=i.child(l),c=a+u.nodeSize,m=o.matchType(u.type);if(!m)s.push(new pe(a,c,D.empty));else{o=m;for(let d=0;d<u.marks.length;d++)n.allowsMarkType(u.marks[d].type)||t.step(new wt(a,c,u.marks[d]));if(r&&u.isText&&n.whitespace!="pre"){let d,f=/\r?\n|\r/g,p;for(;d=f.exec(u.text);)p||(p=new D(N.from(n.schema.text(" ",n.allowedMarks(u.marks))),0,0)),s.push(new pe(a+d.index,a+d.index+d[0].length,p))}}a=c}if(!o.validEnd){let l=o.fillBefore(N.empty,!0);t.replace(a,a,new D(l,0,0))}for(let l=s.length-1;l>=0;l--)t.step(s[l])}function vw(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function wo(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let o=t.depth;;--o){let r=t.$from.node(o),i=t.$from.index(o),s=t.$to.indexAfter(o);if(o<t.depth&&r.canReplace(i,s,n))return o;if(o==0||r.type.spec.isolating||!vw(r,i,s))break}return null}function kw(t,e,n){let{$from:o,$to:r,depth:i}=e,s=o.before(i+1),a=r.after(i+1),l=s,u=a,c=N.empty,m=0;for(let p=i,y=!1;p>n;p--)y||o.index(p)>0?(y=!0,c=N.from(o.node(p).copy(c)),m++):l--;let d=N.empty,f=0;for(let p=i,y=!1;p>n;p--)y||r.after(p+1)<r.end(p)?(y=!0,d=N.from(r.node(p).copy(d)),f++):u++;t.step(new he(l,u,s,a,new D(c.append(d),m,f),c.size-m,!0))}function Ml(t,e,n=null,o=t){let r=bw(t,e),i=r&&xw(o,e);return i?r.map(vf).concat({type:e,attrs:n}).concat(i.map(vf)):null}function vf(t){return{type:t,attrs:null}}function bw(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 xw(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 u=o;l&&u<r;u++)l=l.matchType(n.child(u).type);return!l||!l.validEnd?null:s}function $w(t,e,n){let o=N.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=N.from(n[s].type.create(n[s].attrs,o))}let r=e.start,i=e.end;t.step(new he(r,i,r,i,new D(o,0,0),n.length,!0))}function Cw(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)&&Ow(t.doc,t.mapping.slice(i).map(a),o)){let u=null;if(o.schema.linebreakReplacement){let f=o.whitespace=="pre",p=!!o.contentMatch.matchType(o.schema.linebreakReplacement);f&&!p?u=!1:!f&&p&&(u=!0)}u===!1&&Nw(t,s,a,i),Sf(t,t.mapping.slice(i).map(a,1),o,void 0,u===null);let c=t.mapping.slice(i),m=c.map(a,1),d=c.map(a+s.nodeSize,1);return t.step(new he(m,d,m+1,d-1,new D(N.from(o.create(l,null,s.marks)),0,0),1,!0)),u===!0&&Ew(t,s,a,i),!1}})}function Ew(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 Nw(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(`
23
- `))}})}function Ow(t,e,n){let o=t.resolve(e),r=o.index();return o.parent.canReplaceWith(r,r+1,n)}function Aw(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 he(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new D(N.from(s),0,0),1,!0))}function So(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 u=r.depth-1,c=n-2;u>i;u--,c--){let m=r.node(u),d=r.index(u);if(m.type.spec.isolating)return!1;let f=m.content.cutByIndex(d,m.childCount),p=o&&o[c+1];p&&(f=f.replaceChild(0,p.type.create(p.attrs)));let y=o&&o[c]||m;if(!m.canReplace(d+1,m.childCount)||!y.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 Rw(t,e,n=1,o){let r=t.doc.resolve(e),i=N.empty,s=N.empty;for(let a=r.depth,l=r.depth-n,u=n-1;a>l;a--,u--){i=N.from(r.node(a).copy(i));let c=o&&o[u];s=N.from(c?c.type.create(c.attrs,s):r.node(a).copy(s))}t.step(new pe(e,e,new D(i.append(s),n,n),!0))}function qt(t,e){let n=t.resolve(e),o=n.index();return kf(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(o,o+1)}function kf(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function as(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&&kf(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 Mw(t,e,n){let o=new pe(e-n,e+n,D.empty,!0);t.step(o)}function Dw(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 Tw(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),u=o.node(s),c=!1;if(i==1)c=u.canReplace(l,l,r);else{let m=u.contentMatchAt(l).findWrapping(r.firstChild.type);c=m&&u.canReplaceWith(l,l,m[0])}if(c)return a==0?o.pos:a<0?o.before(s+1):o.after(s+1)}return null}function ls(t,e,n=e,o=D.empty){if(e==n&&!o.size)return null;let r=t.resolve(e),i=t.resolve(n);return bf(r,i,o)?new pe(e,n,o):new jw(r,i,o).fit()}function bf(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class jw{constructor(e,n,o){this.$from=e,this.$to=n,this.unplaced=o,this.frontier=[],this.placed=N.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=N.from(e.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):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 D(i,s,a);return e>-1?new he(o.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||o.pos!=this.$to.pos?new pe(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=Dl(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:u}=this.frontier[a],c,m=null;if(n==1&&(s?u.matchType(s.type)||(m=u.fillBefore(N.from(s),!1)):i&&l.compatibleContent(i.type)))return{sliceDepth:o,frontierDepth:a,parent:i,inject:m};if(n==2&&s&&(c=u.findWrapping(s.type)))return{sliceDepth:o,frontierDepth:a,parent:i,wrap:c};if(i&&u.matchType(i.type))break}}}openMore(){let{content:e,openStart:n,openEnd:o}=this.unplaced,r=Dl(e,n);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new D(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=Dl(e,n);if(r.childCount<=1&&n>0){let i=e.size-n<=n+r.size;this.unplaced=new D(xr(e,n-1,1),n-1,i?n-1:o)}else this.unplaced=new D(xr(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 y=0;y<i.length;y++)this.openFrontierNode(i[y]);let s=this.unplaced,a=o?o.content:s.content,l=s.openStart-e,u=0,c=[],{match:m,type:d}=this.frontier[n];if(r){for(let y=0;y<r.childCount;y++)c.push(r.child(y));m=m.matchFragment(r)}let f=a.size+e-(s.content.size-s.openEnd);for(;u<a.childCount;){let y=a.child(u),h=m.matchType(y.type);if(!h)break;u++,(u>1||l==0||y.content.size)&&(m=h,c.push(xf(y.mark(d.allowedMarks(y.marks)),u==1?l:0,u==a.childCount?f:-1)))}let p=u==a.childCount;p||(f=-1),this.placed=$r(this.placed,n,N.from(c)),this.frontier[n].match=m,p&&f<0&&o&&o.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let y=0,h=a;y<f;y++){let g=h.lastChild;this.frontier.push({type:g.type,match:g.contentMatchAt(g.childCount)}),h=g.content}this.unplaced=p?e==0?D.empty:new D(xr(s.content,e-1,1),e-1,f<0?s.openEnd:e-1):new D(xr(s.content,e,u),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!Tl(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=Tl(e,n,r,o,i);if(s){for(let a=n-1;a>=0;a--){let{match:l,type:u}=this.frontier[a],c=Tl(e,a,u,l,!0);if(!c||c.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=$r(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=$r(this.placed,this.depth,N.from(e.create(n,o))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(N.empty,!0);n.childCount&&(this.placed=$r(this.placed,this.frontier.length,n))}}function xr(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(xr(t.firstChild.content,e-1,n)))}function $r(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy($r(t.lastChild.content,e-1,n)))}function Dl(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function xf(t,e,n){if(e<=0)return t;let o=t.content;return e>1&&(o=o.replaceChild(0,xf(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(N.empty,!0)))),t.copy(o)}function Tl(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&&!Pw(n,i.content,s)?a:null}function Pw(t,e,n){for(let o=n;o<e.childCount;o++)if(!t.allowsMarks(e.child(o).marks))return!0;return!1}function Iw(t){return t.spec.defining||t.spec.definingForContent}function Lw(t,e,n,o){if(!o.size)return t.deleteRange(e,n);let r=t.doc.resolve(e),i=t.doc.resolve(n);if(bf(r,i,o))return t.step(new pe(e,n,o));let s=Cf(r,t.doc.resolve(n));s[s.length-1]==0&&s.pop();let a=-(r.depth+1);s.unshift(a);for(let d=r.depth,f=r.pos-1;d>0;d--,f--){let p=r.node(d).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;s.indexOf(d)>-1?a=d:r.before(d)==f&&s.splice(1,0,-d)}let l=s.indexOf(a),u=[],c=o.openStart;for(let d=o.content,f=0;;f++){let p=d.firstChild;if(u.push(p),f==o.openStart)break;d=p.content}for(let d=c-1;d>=0;d--){let f=u[d],p=Iw(f.type);if(p&&!f.sameMarkup(r.node(Math.abs(a)-1)))c=d;else if(p||!f.type.isTextblock)break}for(let d=o.openStart;d>=0;d--){let f=(d+c+1)%(o.openStart+1),p=u[f];if(p)for(let y=0;y<s.length;y++){let h=s[(y+l)%s.length],g=!0;h<0&&(g=!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),g?i.after(h):n,new D($f(o.content,0,o.openStart,f),f,o.openEnd))}}let m=t.steps.length;for(let d=s.length-1;d>=0&&(t.replace(e,n,o),!(t.steps.length>m));d--){let f=s[d];f<0||(e=r.before(f),n=i.after(f))}}function $f(t,e,n,o,r){if(e<n){let i=t.firstChild;t=t.replaceChild(0,i.copy($f(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(N.empty,!0))}return t}function zw(t,e,n,o){if(!o.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let r=Dw(t.doc,e,o.type);r!=null&&(e=n=r)}t.replaceRange(e,n,new D(N.from(o),0,0))}function Fw(t,e,n){let o=t.doc.resolve(e),r=t.doc.resolve(n),i=Cf(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)return t.delete(o.before(s),n);t.delete(e,n)}function Cf(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 vo extends Ae{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 ue.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 ue.fromReplace(e,this.pos,this.pos+1,new D(N.from(r),0,n.isLeaf?0:1))}getMap(){return We.empty}invert(e){return new vo(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 vo(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 vo(n.pos,n.attr,n.value)}}Ae.jsonID("attr",vo);class Cr extends Ae{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 ue.ok(o)}getMap(){return We.empty}invert(e){return new Cr(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 Cr(n.attr,n.value)}}Ae.jsonID("docAttr",Cr);let ko=class extends Error{};ko=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},ko.prototype=Object.create(Error.prototype),ko.prototype.constructor=ko,ko.prototype.name="TransformError";class Ef{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new br}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new ko(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}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=D.empty){let r=ls(this.doc,e,n,o);return r&&this.step(r),this}replaceWith(e,n,o){return this.replace(e,n,new D(N.from(o),0,0))}delete(e,n){return this.replace(e,n,D.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,o){return Lw(this,e,n,o),this}replaceRangeWith(e,n,o){return zw(this,e,n,o),this}deleteRange(e,n){return Fw(this,e,n),this}lift(e,n){return kw(this,e,n),this}join(e,n=1){return Mw(this,e,n),this}wrap(e,n){return $w(this,e,n),this}setBlockType(e,n=e,o,r=null){return Cw(this,e,n,o,r),this}setNodeMarkup(e,n,o=null,r){return Aw(this,e,n,o,r),this}setNodeAttribute(e,n,o){return this.step(new vo(e,n,o)),this}setDocAttribute(e,n){return this.step(new Cr(e,n)),this}addNodeMark(e,n){return this.step(new Wt(e,n)),this}removeNodeMark(e,n){if(!(n instanceof W)){let o=this.doc.nodeAt(e);if(!o)throw new RangeError("No node at position "+e);if(n=n.isInSet(o.marks),!n)return this}return this.step(new yo(e,n)),this}split(e,n=1,o){return Rw(this,e,n,o),this}addMark(e,n,o){return ww(this,e,n,o),this}removeMark(e,n,o){return Sw(this,e,n,o),this}clearIncompatible(e,n,o){return Sf(this,e,n,o),this}}const jl=Object.create(null);class U{constructor(e,n,o){this.$anchor=e,this.$head=n,this.ranges=o||[new Bw(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=D.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:u}=s[a],c=e.mapping.slice(i);e.replaceRange(c.map(l.pos),c.map(u.pos),a?D.empty:n),a==0&&Af(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),u=l.map(s.pos),c=l.map(a.pos);i?e.deleteRange(u,c):(e.replaceRangeWith(u,c,n),Af(e,o,n.isInline?-1:1))}}static findFrom(e,n,o=!1){let r=e.parent.inlineContent?new B(e):bo(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?bo(e.node(0),e.node(i),e.before(i+1),e.index(i),n,o):bo(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 dt(e.node(0))}static atStart(e){return bo(e,e,0,0,1)||new dt(e)}static atEnd(e){return bo(e,e,e.content.size,e.childCount,-1)||new dt(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let o=jl[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 jl)throw new RangeError("Duplicate use of selection JSON ID "+e);return jl[e]=n,n.prototype.jsonID=e,n}getBookmark(){return B.between(this.$anchor,this.$head).getBookmark()}}U.prototype.visible=!0;class Bw{constructor(e,n){this.$from=e,this.$to=n}}let Nf=!1;function Of(t){!Nf&&!t.parent.inlineContent&&(Nf=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class B extends U{constructor(e,n=e){Of(e),Of(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 U.near(o);let r=e.resolve(n.map(this.anchor));return new B(r.parent.inlineContent?r:o,o)}replace(e,n=D.empty){if(super.replace(e,n),n==D.empty){let o=this.$from.marksAcross(this.$to);o&&e.ensureMarks(o)}}eq(e){return e instanceof B&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new us(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 B(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=U.findFrom(n,o,!0)||U.findFrom(n,-o,!0);if(i)n=i.$head;else return U.near(n,o)}return e.parent.inlineContent||(r==0?e=n:(e=(U.findFrom(e,-o,!0)||U.findFrom(e,o,!0)).$anchor,e.pos<n.pos!=r<0&&(e=n))),new B(e,n)}}U.jsonID("text",B);class us{constructor(e,n){this.anchor=e,this.head=n}map(e){return new us(e.map(this.anchor),e.map(this.head))}resolve(e){return B.between(e.resolve(this.anchor),e.resolve(this.head))}}class L extends U{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?U.near(i):new L(i)}content(){return new D(N.from(this.node),0,0)}eq(e){return e instanceof L&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Pl(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new L(e.resolve(n.anchor))}static create(e,n){return new L(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}L.prototype.visible=!1,U.jsonID("node",L);class Pl{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:o}=e.mapResult(this.anchor);return n?new us(o,o):new Pl(o)}resolve(e){let n=e.resolve(this.anchor),o=n.nodeAfter;return o&&L.isSelectable(o)?new L(n):U.near(n)}}class dt extends U{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=D.empty){if(n==D.empty){e.delete(0,e.doc.content.size);let o=U.atStart(e.doc);o.eq(e.selection)||e.setSelection(o)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new dt(e)}map(e){return new dt(e)}eq(e){return e instanceof dt}getBookmark(){return Hw}}U.jsonID("all",dt);const Hw={map(){return this},resolve(t){return new dt(t)}};function bo(t,e,n,o,r,i=!1){if(e.inlineContent)return B.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&&L.isSelectable(a))return L.create(t,n-(r<0?a.nodeSize:0))}else{let l=bo(t,a,n+r,r<0?a.childCount:0,r,i);if(l)return l}n+=a.nodeSize*r}return null}function Af(t,e,n){let o=t.steps.length-1;if(o<e)return;let r=t.steps[o];if(!(r instanceof pe||r instanceof he))return;let i=t.mapping.maps[o],s;i.forEach((a,l,u,c)=>{s==null&&(s=c)}),t.setSelection(U.near(t.doc.resolve(s),n))}const Rf=1,cs=2,Mf=4;class Vw extends Ef{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|Rf)&~cs,this.storedMarks=null,this}get selectionSet(){return(this.updated&Rf)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=cs,this}ensureMarks(e){return W.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&cs)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~cs,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)||W.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),o=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.setSelection(U.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|=Mf,this}get scrolledIntoView(){return(this.updated&Mf)>0}}function Df(t,e){return!e||!t?t:t.bind(e)}class Er{constructor(e,n,o){this.name=e,this.init=Df(n.init,o),this.apply=Df(n.apply,o)}}const Uw=[new Er("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Er("selection",{init(t,e){return t.selection||U.atStart(e.doc)},apply(t){return t.selection}}),new Er("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,o){return o.selection.$cursor?t.storedMarks:null}}),new Er("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class Il{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Uw.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 Er(o.key,o.spec.state,o))})}}class xo{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,u=r?r[s].state:this,c=l<n.length&&a.spec.appendTransaction.call(a,l?n.slice(l):n,u,o);if(c&&o.filterTransaction(c,s)){if(c.setMeta("appendedTransaction",e),!r){r=[];for(let m=0;m<this.config.plugins.length;m++)r.push(m<s?{state:o,n:n.length}:{state:this,n:0})}n.push(c),o=o.applyInner(c),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 xo(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 Vw(this)}static create(e){let n=new Il(e.doc?e.doc.type.schema:e.schema,e.plugins),o=new xo(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 Il(this.schema,e.plugins),o=n.fields,r=new xo(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 Il(e.schema,e.plugins),i=new xo(r);return r.fields.forEach(s=>{if(s.name=="doc")i.doc=Pn.fromJSON(e.schema,n.doc);else if(s.name=="selection")i.selection=U.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],u=l.spec.state;if(l.key==s.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,a)){i[s.name]=u.fromJSON.call(l,e,n[a],i);return}}i[s.name]=s.init(e,i)}}),i}}function Tf(t,e,n){for(let o in t){let r=t[o];r instanceof Function?r=r.bind(e):o=="handleDOMEvents"&&(r=Tf(r,e,{})),n[o]=r}return n}class He{constructor(e){this.spec=e,this.props={},e.props&&Tf(e.props,this,this.props),this.key=e.key?e.key.key:jf("plugin")}getState(e){return e[this.key]}}const Ll=Object.create(null);function jf(t){return t in Ll?t+"$"+ ++Ll[t]:(Ll[t]=0,t+"$")}class mt{constructor(e="key"){this.key=jf(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const be=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Nr=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let zl=null;const Tt=function(t,e,n){let o=zl||(zl=document.createRange());return o.setEnd(t,n??t.nodeValue.length),o.setStart(t,e||0),o},Jw=function(){zl=null},zn=function(t,e,n,o){return n&&(Pf(t,e,n,o,-1)||Pf(t,e,n,o,1))},_w=/^(img|br|input|textarea|hr)$/i;function Pf(t,e,n,o,r){for(;;){if(t==n&&e==o)return!0;if(e==(r<0?0:Ze(t))){let i=t.parentNode;if(!i||i.nodeType!=1||Or(t)||_w.test(t.nodeName)||t.contentEditable=="false")return!1;e=be(t)+(r<0?0:1),t=i}else if(t.nodeType==1){if(t=t.childNodes[e+(r<0?-1:0)],t.contentEditable=="false")return!1;e=r<0?Ze(t):0}else return!1}}function Ze(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Yw(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=Ze(t)}else if(t.parentNode&&!Or(t))e=be(t),t=t.parentNode;else return null}}function Kw(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&&!Or(t))e=be(t)+1,t=t.parentNode;else return null}}function Ww(t,e,n){for(let o=e==0,r=e==Ze(t);o||r;){if(t==n)return!0;let i=be(t);if(t=t.parentNode,!t)return!1;o=o&&i==0,r=r&&i==Ze(t)}}function Or(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 ds=function(t){return t.focusNode&&zn(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function Fn(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function qw(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Gw(t,e,n){if(t.caretPositionFromPoint)try{let o=t.caretPositionFromPoint(e,n);if(o)return{node:o.offsetNode,offset:Math.min(Ze(o.offsetNode),o.offset)}}catch{}if(t.caretRangeFromPoint){let o=t.caretRangeFromPoint(e,n);if(o)return{node:o.startContainer,offset:Math.min(Ze(o.startContainer),o.startOffset)}}}const St=typeof navigator<"u"?navigator:null,If=typeof document<"u"?document:null,Gt=St&&St.userAgent||"",Fl=/Edge\/(\d+)/.exec(Gt),Lf=/MSIE \d/.exec(Gt),Bl=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Gt),Ve=!!(Lf||Bl||Fl),Qt=Lf?document.documentMode:Bl?+Bl[1]:Fl?+Fl[1]:0,ft=!Ve&&/gecko\/(\d+)/i.test(Gt);ft&&+(/Firefox\/(\d+)/.exec(Gt)||[0,0])[1];const Hl=!Ve&&/Chrome\/(\d+)/.exec(Gt),Re=!!Hl,zf=Hl?+Hl[1]:0,Ie=!Ve&&!!St&&/Apple Computer/.test(St.vendor),$o=Ie&&(/Mobile\/\w+/.test(Gt)||!!St&&St.maxTouchPoints>2),Xe=$o||(St?/Mac/.test(St.platform):!1),Qw=St?/Win/.test(St.platform):!1,pt=/Android \d/.test(Gt),Ar=!!If&&"webkitFontSmoothing"in If.documentElement.style,Zw=Ar?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Xw(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 eS(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 Ff(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;s=Nr(s)){if(s.nodeType!=1)continue;let a=s,l=a==i.body,u=l?Xw(i):eS(a),c=0,m=0;if(e.top<u.top+jt(o,"top")?m=-(u.top-e.top+jt(r,"top")):e.bottom>u.bottom-jt(o,"bottom")&&(m=e.bottom-e.top>u.bottom-u.top?e.top+jt(r,"top")-u.top:e.bottom-u.bottom+jt(r,"bottom")),e.left<u.left+jt(o,"left")?c=-(u.left-e.left+jt(r,"left")):e.right>u.right-jt(o,"right")&&(c=e.right-u.right+jt(r,"right")),c||m)if(l)i.defaultView.scrollBy(c,m);else{let d=a.scrollLeft,f=a.scrollTop;m&&(a.scrollTop+=m),c&&(a.scrollLeft+=c);let p=a.scrollLeft-d,y=a.scrollTop-f;e={left:e.left-p,top:e.top-y,right:e.right-p,bottom:e.bottom-y}}if(l||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function tS(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:Bf(t.dom)}}function Bf(t){let e=[],n=t.ownerDocument;for(let o=t;o&&(e.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),t!=n);o=Nr(o));return e}function nS({refDOM:t,refTop:e,stack:n}){let o=t?t.getBoundingClientRect().top:0;Hf(n,o==0?0:o-e)}function Hf(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 Co=null;function oS(t){if(t.setActive)return t.setActive();if(Co)return t.focus(Co);let e=Bf(t);t.focus(Co==null?{get preventScroll(){return Co={preventScroll:!0},!0}}:void 0),Co||(Co=!1,Hf(e,0))}function Vf(t,e){let n,o=2e8,r,i=0,s=e.top,a=e.top,l,u;for(let c=t.firstChild,m=0;c;c=c.nextSibling,m++){let d;if(c.nodeType==1)d=c.getClientRects();else if(c.nodeType==3)d=Tt(c).getClientRects();else continue;for(let f=0;f<d.length;f++){let p=d[f];if(p.top<=s&&p.bottom>=a){s=Math.max(p.bottom,s),a=Math.min(p.top,a);let y=p.left>e.left?p.left-e.left:p.right<e.left?e.left-p.right:0;if(y<o){n=c,o=y,r=y&&n.nodeType==3?{left:p.right<e.left?p.right:p.left,top:e.top}:e,c.nodeType==1&&y&&(i=m+(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=c,u={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=m+1)}}return!n&&l&&(n=l,r=u,o=0),n&&n.nodeType==3?rS(n,r):!n||o&&n.nodeType==1?{node:t,offset:i}:Vf(n,r)}function rS(t,e){let n=t.nodeValue.length,o=document.createRange();for(let r=0;r<n;r++){o.setEnd(t,r+1),o.setStart(t,r);let i=Zt(o,1);if(i.top!=i.bottom&&Vl(e,i))return{node:t,offset:r+(e.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function Vl(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function iS(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function sS(t,e,n){let{node:o,offset:r}=Vf(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 aS(t,e,n,o){let r=-1;for(let i=e,s=!1;i!=t.dom;){let a=t.docView.nearestDesc(i,!0);if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent||!a.contentDOM)){let l=a.dom.getBoundingClientRect();if(a.node.isBlock&&a.parent&&(!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 Uf(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 u=a[l];if(Vl(e,u))return Uf(s,e,u)}}if((i=(i+1)%o)==r)break}return t}function lS(t,e){let n=t.dom.ownerDocument,o,r=0,i=Gw(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 u=t.dom.getBoundingClientRect();if(!Vl(e,u)||(s=Uf(t.dom,e,u),!s))return null}if(Ie)for(let u=s;o&&u;u=Nr(u))u.draggable&&(o=void 0);if(s=iS(s,e),o){if(ft&&o.nodeType==1&&(r=Math.min(r,o.childNodes.length),r<o.childNodes.length)){let c=o.childNodes[r],m;c.nodeName=="IMG"&&(m=c.getBoundingClientRect()).right<=e.left&&m.bottom>e.top&&r++}let u;Ar&&r&&o.nodeType==1&&(u=o.childNodes[r-1]).nodeType==1&&u.contentEditable=="false"&&u.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=aS(t,o,r,e))}a==null&&(a=sS(t,s,e));let l=t.docView.nearestDesc(s,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function Jf(t){return t.top<t.bottom||t.left<t.right}function Zt(t,e){let n=t.getClientRects();if(n.length){let o=n[e<0?0:n.length-1];if(Jf(o))return o}return Array.prototype.find.call(n,Jf)||t.getBoundingClientRect()}const uS=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function _f(t,e,n){let{node:o,offset:r,atom:i}=t.docView.domFromPos(e,n<0?-1:1),s=Ar||ft;if(o.nodeType==3)if(s&&(uS.test(o.nodeValue)||(n<0?!r:r==o.nodeValue.length))){let l=Zt(Tt(o,r,r),n);if(ft&&r&&/\s/.test(o.nodeValue[r-1])&&r<o.nodeValue.length){let u=Zt(Tt(o,r-1,r-1),-1);if(u.top==l.top){let c=Zt(Tt(o,r,r+1),-1);if(c.top!=l.top)return Rr(c,c.left<u.left)}}return l}else{let l=r,u=r,c=n<0?1:-1;return n<0&&!r?(u++,c=-1):n>=0&&r==o.nodeValue.length?(l--,c=1):n<0?l--:u++,Rr(Zt(Tt(o,l,u),c),c<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&r&&(n<0||r==Ze(o))){let l=o.childNodes[r-1];if(l.nodeType==1)return Ul(l.getBoundingClientRect(),!1)}if(i==null&&r<Ze(o)){let l=o.childNodes[r];if(l.nodeType==1)return Ul(l.getBoundingClientRect(),!0)}return Ul(o.getBoundingClientRect(),n>=0)}if(i==null&&r&&(n<0||r==Ze(o))){let l=o.childNodes[r-1],u=l.nodeType==3?Tt(l,Ze(l)-(s?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(u)return Rr(Zt(u,1),!1)}if(i==null&&r<Ze(o)){let l=o.childNodes[r];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let u=l?l.nodeType==3?Tt(l,0,s?0:1):l.nodeType==1?l:null:null;if(u)return Rr(Zt(u,-1),!0)}return Rr(Zt(o.nodeType==3?Tt(o):o,-n),n>=0)}function Rr(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 Ul(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 Yf(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 cS(t,e,n){let o=e.selection,r=n=="up"?o.$from:o.$to;return Yf(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=_f(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=Tt(a,0,a.nodeValue.length).getClientRects();else continue;for(let u=0;u<l.length;u++){let c=l[u];if(c.bottom>c.top+1&&(n=="up"?s.top-c.top>(c.bottom-s.top)*2:c.bottom-s.bottom>(s.bottom-c.top)*2))return!1}}return!0})}const dS=/[\u0590-\u08ac]/;function mS(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?!dS.test(o.parent.textContent)||!a.modify?n=="left"||n=="backward"?i:s:Yf(t,e,()=>{let{focusNode:l,focusOffset:u,anchorNode:c,anchorOffset:m}=t.domSelectionRange(),d=a.caretBidiLevel;a.modify("move",n,"character");let f=o.depth?t.docView.domAfterPos(o.before()):t.dom,{focusNode:p,focusOffset:y}=t.domSelectionRange(),h=p&&!f.contains(p.nodeType==1?p:p.parentNode)||l==p&&u==y;try{a.collapse(c,m),l&&(l!=c||u!=m)&&a.extend&&a.extend(l,u)}catch{}return d!=null&&(a.caretBidiLevel=d),h}):o.pos==o.start()||o.pos==o.end()}let Kf=null,Wf=null,qf=!1;function fS(t,e,n){return Kf==e&&Wf==n?qf:(Kf=e,Wf=n,qf=n=="up"||n=="down"?cS(t,e,n):mS(t,e,n))}const et=0,Gf=1,Bn=2,vt=3;class Mr{constructor(e,n,o,r){this.parent=e,this.children=n,this.dom=o,this.contentDOM=r,this.dirty=et,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>be(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;)r=r.children[0];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 Xf){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 Qf&&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?be(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?be(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],u=s+l.size;if(r==-1&&e<=u){let c=s+l.border;if(e>=c&&n<=u-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,c);e=s;for(let m=a;m>0;m--){let d=this.children[m-1];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(1)){r=be(d.dom)+1;break}e-=d.size}r==-1&&(r=0)}if(r>-1&&(u>n||a==this.children.length-1)){n=u;for(let c=a+1;c<this.children.length;c++){let m=this.children[c];if(m.size&&m.dom.parentNode==this.contentDOM&&!m.emptyChildAt(-1)){i=be(m.dom);break}n+=m.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=u}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 d=0,f=0;d<this.children.length;d++){let p=this.children[d],y=f+p.size;if(i>f&&s<y)return p.setSelection(e-f-p.border,n-f-p.border,o,r);f=y}let a=this.domFromPos(e,e?-1:1),l=n==e?a:this.domFromPos(n,n?-1:1),u=o.getSelection(),c=!1;if((ft||Ie)&&e==n){let{node:d,offset:f}=a;if(d.nodeType==3){if(c=!!(f&&d.nodeValue[f-1]==`
24
- `),c&&f==d.nodeValue.length)for(let p=d,y;p;p=p.parentNode){if(y=p.nextSibling){y.nodeName=="BR"&&(a=l={node:y.parentNode,offset:be(y)+1});break}let h=p.pmViewDesc;if(h&&h.node&&h.node.isBlock)break}}else{let p=d.childNodes[f-1];c=p&&(p.nodeName=="BR"||p.contentEditable=="false")}}if(ft&&u.focusNode&&u.focusNode!=l.node&&u.focusNode.nodeType==1){let d=u.focusNode.childNodes[u.focusOffset];d&&d.contentEditable=="false"&&(r=!0)}if(!(r||c&&Ie)&&zn(a.node,a.offset,u.anchorNode,u.anchorOffset)&&zn(l.node,l.offset,u.focusNode,u.focusOffset))return;let m=!1;if((u.extend||e==n)&&!c){u.collapse(a.node,a.offset);try{e!=n&&u.extend(l.node,l.offset),m=!0}catch{}}if(!m){if(e>n){let f=a;a=l,l=f}let d=document.createRange();d.setEnd(l.node,l.offset),d.setStart(a.node,a.offset),u.removeAllRanges(),u.addRange(d)}}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?Bn:Gf,e==a&&n==l&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=vt:i.markDirty(e-a,n-a);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Bn:vt}o=s}this.dirty=Bn}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let o=e==1?Bn:Gf;n.dirty<o&&(n.dirty=o)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(e){return!1}}class Qf extends Mr{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==et&&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 side(){return this.widget.type.side}}class pS extends Mr{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 Hn extends Mr{constructor(e,n,o,r){super(e,[],o,r),this.mark=n}static create(e,n,o,r){let i=r.nodeViews[n.type.name],s=i&&i(n,r,o);return(!s||!s.dom)&&(s=Ln.renderSpec(document,n.type.spec.toDOM(n,o),null,n.attrs)),new Hn(e,n,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&vt||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=vt&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=et){let o=this.parent;for(;!o.node;)o=o.parent;o.dirty<this.dirty&&(o.dirty=this.dirty),this.dirty=et}}slice(e,n,o){let r=Hn.create(this.parent,this.mark,!0,o),i=this.children,s=this.size;n<s&&(i=_l(i,n,s,o)),e>0&&(i=_l(i,0,e,o));for(let a=0;a<i.length;a++)i[a].parent=r;return r.children=i,r}}class Xt extends Mr{constructor(e,n,o,r,i,s,a,l,u){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,u=a&&a(n,i,()=>{if(!l)return s;if(l.parent)return l.parent.posBeforeChild(l)},o,r),c=u&&u.dom,m=u&&u.contentDOM;if(n.isText){if(!c)c=document.createTextNode(n.text);else if(c.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else c||({dom:c,contentDOM:m}=Ln.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!m&&!n.isText&&c.nodeName!="BR"&&(c.hasAttribute("contenteditable")||(c.contentEditable="false"),n.type.spec.draggable&&(c.draggable=!0));let d=c;return c=np(c,o,n),u?l=new hS(e,n,o,r,c,m||null,d,u,i,s+1):n.isText?new ms(e,n,o,r,c,d,i):new Xt(e,n,o,r,c,m||null,d,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=()=>N.empty)}return e}matchesNode(e,n,o){return this.dirty==et&&e.eq(this.node)&&fs(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 yS(this,s&&s.node,e);vS(this.node,this.innerDeco,(u,c,m)=>{u.spec.marks?l.syncToMarks(u.spec.marks,o,e):u.type.side>=0&&!m&&l.syncToMarks(c==this.node.childCount?W.none:this.node.child(c).marks,o,e),l.placeWidget(u,e,r)},(u,c,m,d)=>{l.syncToMarks(u.marks,o,e);let f;l.findNodeMatch(u,c,m,d)||a&&e.state.selection.from>r&&e.state.selection.to<r+u.nodeSize&&(f=l.findIndexWithChild(i.node))>-1&&l.updateNodeAt(u,c,m,f,e)||l.updateNextNode(u,c,m,e,d,r)||l.addNode(u,c,m,e,r),r+=u.nodeSize}),l.syncToMarks([],o,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==Bn)&&(s&&this.protectLocalComposition(e,s),ep(this.contentDOM,this.children,e),$o&&kS(this.dom))}localCompositionInfo(e,n){let{from:o,to:r}=e.state.selection;if(!(e.state.selection instanceof B)||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=bS(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 pS(this,i,n,r);e.input.compositionNodes.push(s),this.children=_l(this.children,o,o+r.length,e,s)}update(e,n,o,r){return this.dirty==vt||!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=et}updateOuterDeco(e){if(fs(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,o=this.dom;this.dom=tp(this.dom,this.nodeDOM,Jl(this.outerDeco,this.node,n),Jl(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.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function Zf(t,e,n,o,r){np(o,e,t);let i=new Xt(void 0,t,e,n,o,o,o,r,0);return i.contentDOM&&i.updateChildren(r,0),i}class ms extends Xt{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==vt||this.dirty!=et&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=et||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=et,!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 ms(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=vt)}get domAtom(){return!1}isText(e){return this.node.text==e}}class Xf extends Mr{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==et&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class hS extends Xt{constructor(e,n,o,r,i,s,a,l,u,c){super(e,n,o,r,i,s,a,u,c),this.spec=l}update(e,n,o,r){if(this.dirty==vt)return!1;if(this.spec.update){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):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 ep(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=op(o),r=!0;o=o.nextSibling}else r=!0,t.insertBefore(a,o);if(s instanceof Hn){let l=o?o.previousSibling:t.lastChild;ep(s.contentDOM,s.children,n),o=l?l.nextSibling:t.firstChild}}for(;o;)o=op(o),r=!0;r&&n.trackWrites==t&&(n.trackWrites=null)}const Dr=function(t){t&&(this.nodeName=t)};Dr.prototype=Object.create(null);const Vn=[new Dr];function Jl(t,e,n){if(t.length==0)return Vn;let o=n?Vn[0]:new Dr,r=[o];for(let i=0;i<t.length;i++){let s=t[i].type.attrs;if(s){s.nodeName&&r.push(o=new Dr(s.nodeName));for(let a in s){let l=s[a];l!=null&&(n&&r.length==1&&r.push(o=new Dr(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 tp(t,e,n,o){if(n==Vn&&o==Vn)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=Vn[0]),r=l}gS(r,a||Vn[0],s)}return r}function gS(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 np(t,e,n){return tp(t,t,Vn,Jl(e,n,t.nodeType!=1))}function fs(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 op(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class yS{constructor(e,n,o){this.lock=n,this.view=o,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=wS(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){let r=0,i=this.stack.length>>1,s=Math.min(i,e.length);for(;r<s&&(r==i-1?this.top:this.stack[r+1<<1]).matchesMark(e[r])&&e[r].type.spec.spanning!==!1;)r++;for(;r<i;)this.destroyRest(),this.top.dirty=et,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);let a=-1;for(let l=this.index;l<Math.min(this.index+3,this.top.children.length);l++){let u=this.top.children[l];if(u.matchesMark(e[i])&&!this.isLocked(u.dom)){a=l;break}}if(a>-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let l=Hn.create(this.top,e[i],n,o);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,i++}}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 u=this.top.children[a];if(u.matchesNode(e,n,o)&&!this.preMatch.matched.has(u)){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==vt&&s.dom==s.contentDOM&&(s.dirty=Bn),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 Xt){let u=this.preMatch.matched.get(l);if(u!=null&&u!=i)return!1;let c=l.dom,m,d=this.isLocked(c)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=vt&&fs(n,l.outerDeco));if(!d&&l.update(e,n,o,r))return this.destroyBetween(this.index,a),l.dom!=c&&(this.changed=!0),this.index++,!0;if(!d&&(m=this.recreateWrapper(l,e,n,o,r,s)))return this.destroyBetween(this.index,a),this.top.children[this.index]=m,m.contentDOM&&(m.dirty=Bn,m.updateChildren(r,s+1),m.dirty=et),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)||!fs(o,e.outerDeco)||!r.eq(e.innerDeco))return null;let a=Xt.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=Xt.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 Qf(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 Hn;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof ms)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Ie||Re)&&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 Xf(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 wS(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 u=n.children[o-1];if(u instanceof Hn)n=u,o=u.children.length;else{a=u,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 SS(t,e){return t.type.side-e.type.side}function vS(t,e,n,o){let r=e.locals(t),i=0;if(r.length==0){for(let u=0;u<t.childCount;u++){let c=t.child(u);o(c,r,e.forChild(i,c),u),i+=c.nodeSize}return}let s=0,a=[],l=null;for(let u=0;;){let c,m;for(;s<r.length&&r[s].to==i;){let h=r[s++];h.widget&&(c?(m||(m=[c])).push(h):c=h)}if(c)if(m){m.sort(SS);for(let h=0;h<m.length;h++)n(m[h],u,!!l)}else n(c,u,!!l);let d,f;if(l)f=-1,d=l,l=null;else if(u<t.childCount)f=u,d=t.child(u++);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+d.nodeSize;if(d.isText){let h=p;s<r.length&&r[s].from<h&&(h=r[s].from);for(let g=0;g<a.length;g++)a[g].to<h&&(h=a[g].to);h<p&&(l=d.cut(h-i),d=d.cut(0,h-i),p=h,f=-1)}else for(;s<r.length&&r[s].to<p;)s++;let y=d.isInline&&!d.isLeaf?a.filter(h=>!h.inline):a.slice();o(d,y,e.forChild(i,d),f),i=p}}function kS(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 bS(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 u=t.child(r++);if(i+=u.nodeSize,!u.isText)break;l+=u.text}if(i>=n){if(i>=o&&l.slice(o-e.length-a,o-a)==e)return o-e.length;let u=a<o?l.lastIndexOf(e,o-a-1):-1;if(u>=0&&u+e.length+a>=n)return a+u;if(n==o&&l.length>=o+e.length-a&&l.slice(o-a,o-a+e.length)==e)return o}}return-1}function _l(t,e,n,o,r){let i=[];for(let s=0,a=0;s<t.length;s++){let l=t[s],u=a,c=a+=l.size;u>=n||c<=e?i.push(l):(u<e&&i.push(l.slice(0,e-u,o)),r&&(i.push(r),r=void 0),c>n&&i.push(l.slice(n-u,l.size,o)))}return i}function Yl(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,u;if(ds(n)){for(l=s;r&&!r.node;)r=r.parent;let m=r.node;if(r&&m.isAtom&&L.isSelectable(m)&&r.parent&&!(m.isInline&&Ww(n.focusNode,n.focusOffset,r.dom))){let d=r.posBefore;u=new L(s==d?a:o.resolve(d))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let m=s,d=s;for(let f=0;f<n.rangeCount;f++){let p=n.getRangeAt(f);m=Math.min(m,t.docView.posFromDOM(p.startContainer,p.startOffset,1)),d=Math.max(d,t.docView.posFromDOM(p.endContainer,p.endOffset,-1))}if(m<0)return null;[l,s]=d==t.state.selection.anchor?[d,m]:[m,d],a=o.resolve(s)}else l=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let c=o.resolve(l);if(!u){let m=e=="pointer"||t.state.selection.head<a.pos&&!i?1:-1;u=Wl(t,c,a,m)}return u}function rp(t){return t.editable?t.hasFocus():dp(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Pt(t,e=!1){let n=t.state.selection;if(lp(t,n),!!rp(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&Re){let o=t.domSelectionRange(),r=t.domObserver.currentSelection;if(o.anchorNode&&r.anchorNode&&zn(o.anchorNode,o.anchorOffset,r.anchorNode,r.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)$S(t);else{let{anchor:o,head:r}=n,i,s;ip&&!(n instanceof B)&&(n.$from.parent.inlineContent||(i=sp(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=sp(t,n.to))),t.docView.setSelection(o,r,t.root,e),ip&&(i&&ap(i),s&&ap(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&xS(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const ip=Ie||Re&&zf<63;function sp(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(Ie&&r&&r.contentEditable=="false")return Kl(r);if((!r||r.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(r)return Kl(r);if(i)return Kl(i)}}function Kl(t){return t.contentEditable="true",Ie&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function ap(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function xS(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(()=>{(!rp(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function $S(t){let e=t.domSelection(),n=document.createRange();if(!e)return;let o=t.cursorWrapper.dom,r=o.nodeName=="IMG";r?n.setStart(o.parentNode,be(o)+1):n.setStart(o,0),n.collapse(!0),e.removeAllRanges(),e.addRange(n),!r&&!t.state.selection.visible&&Ve&&Qt<=11&&(o.disabled=!0,o.disabled=!1)}function lp(t,e){if(e instanceof L){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(up(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else up(t)}function up(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function Wl(t,e,n,o){return t.someProp("createSelectionBetween",r=>r(t,e,n))||B.between(e,n,o)}function cp(t){return t.editable&&!t.hasFocus()?!1:dp(t)}function dp(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 CS(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return zn(e.node,e.offset,n.anchorNode,n.anchorOffset)}function ql(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&&U.findFrom(i,e)}function en(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function mp(t,e,n){let o=t.state.selection;if(o instanceof B)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 en(t,new B(o.$anchor,s))}else if(o.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let r=ql(t.state,e);return r&&r instanceof L?en(t,r):!1}else if(!(Xe&&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?L.isSelectable(i)?en(t,new L(e<0?t.state.doc.resolve(r.pos-i.nodeSize):r)):Ar?en(t,new B(t.state.doc.resolve(e<0?a:a+i.nodeSize))):!1:!1}}else return!1;else{if(o instanceof L&&o.node.isInline)return en(t,new B(e>0?o.$to:o.$from));{let r=ql(t.state,e);return r?en(t,r):!1}}}function ps(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Tr(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function Eo(t,e){return e<0?ES(t):NS(t)}function ES(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let r,i,s=!1;for(ft&&n.nodeType==1&&o<ps(n)&&Tr(n.childNodes[o],-1)&&(s=!0);;)if(o>0){if(n.nodeType!=1)break;{let a=n.childNodes[o-1];if(Tr(a,-1))r=n,i=--o;else if(a.nodeType==3)n=a,o=n.nodeValue.length;else break}}else{if(fp(n))break;{let a=n.previousSibling;for(;a&&Tr(a,-1);)r=n.parentNode,i=be(a),a=a.previousSibling;if(a)n=a,o=ps(n);else{if(n=n.parentNode,n==t.dom)break;o=0}}}s?Gl(t,n,o):r&&Gl(t,r,i)}function NS(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let r=ps(n),i,s;for(;;)if(o<r){if(n.nodeType!=1)break;let a=n.childNodes[o];if(Tr(a,1))i=n,s=++o;else break}else{if(fp(n))break;{let a=n.nextSibling;for(;a&&Tr(a,1);)i=a.parentNode,s=be(a)+1,a=a.nextSibling;if(a)n=a,o=0,r=ps(n);else{if(n=n.parentNode,n==t.dom)break;o=r=0}}}i&&Gl(t,i,s)}function fp(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function OS(t,e){for(;t&&e==t.childNodes.length&&!Or(t);)e=be(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 AS(t,e){for(;t&&!e&&!Or(t);)e=be(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 Gl(t,e,n){if(e.nodeType!=3){let i,s;(s=OS(e,n))?(e=s,n=0):(i=AS(e,n))&&(e=i,n=i.nodeValue.length)}let o=t.domSelection();if(!o)return;if(ds(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&&Pt(t)},50)}function pp(t,e){let n=t.state.doc.resolve(e);if(!(Re||Qw)&&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 hp(t,e,n){let o=t.state.selection;if(o instanceof B&&!o.empty||n.indexOf("s")>-1||Xe&&n.indexOf("m")>-1)return!1;let{$from:r,$to:i}=o;if(!r.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=ql(t.state,e);if(s&&s instanceof L)return en(t,s)}if(!r.parent.inlineContent){let s=e<0?r:i,a=o instanceof dt?U.near(s,e):U.findFrom(s,e);return a?en(t,a):!1}return!1}function gp(t,e){if(!(t.state.selection instanceof B))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 yp(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function RS(t){if(!Ie||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;yp(t,o,"true"),setTimeout(()=>yp(t,o,"false"),20)}return!1}function MS(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function DS(t,e){let n=e.keyCode,o=MS(e);if(n==8||Xe&&n==72&&o=="c")return gp(t,-1)||Eo(t,-1);if(n==46&&!e.shiftKey||Xe&&n==68&&o=="c")return gp(t,1)||Eo(t,1);if(n==13||n==27)return!0;if(n==37||Xe&&n==66&&o=="c"){let r=n==37?pp(t,t.state.selection.from)=="ltr"?-1:1:-1;return mp(t,r,o)||Eo(t,r)}else if(n==39||Xe&&n==70&&o=="c"){let r=n==39?pp(t,t.state.selection.from)=="ltr"?1:-1:1;return mp(t,r,o)||Eo(t,r)}else{if(n==38||Xe&&n==80&&o=="c")return hp(t,-1,o)||Eo(t,-1);if(n==40||Xe&&n==78&&o=="c")return RS(t)||hp(t,1,o)||Eo(t,1);if(o==(Xe?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function wp(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")||Ln.fromSchema(t.state.schema),a=Ep(),l=a.createElement("div");l.appendChild(s.serializeFragment(o,{document:a}));let u=l.firstChild,c,m=0;for(;u&&u.nodeType==1&&(c=$p[u.nodeName.toLowerCase()]);){for(let f=c.length-1;f>=0;f--){let p=a.createElement(c[f]);for(;l.firstChild;)p.appendChild(l.firstChild);l.appendChild(p),m++}u=l.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${r} ${i}${m?` -${m}`:""} ${JSON.stringify(n)}`);let d=t.someProp("clipboardTextSerializer",f=>f(e,t))||e.content.textBetween(0,e.content.size,`
25
-
26
- `);return{dom:l,text:d,slice:e}}function Sp(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",d=>{e=d(e,i||o,t)}),i)return e?new D(N.from(t.state.schema.text(e.replace(/\r\n?/g,`
27
- `))),0,0):D.empty;let m=t.someProp("clipboardTextParser",d=>d(e,r,o,t));if(m)a=m;else{let d=r.marks(),{schema:f}=t.state,p=Ln.fromSchema(f);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(y=>{let h=s.appendChild(document.createElement("p"));y&&h.appendChild(p.serializeNode(f.text(y,d)))})}}else t.someProp("transformPastedHTML",m=>{n=m(n,t)}),s=IS(n),Ar&&LS(s);let u=s&&s.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let m=+c[3];m>0;m--){let d=s.firstChild;for(;d&&d.nodeType!=1;)d=d.nextSibling;if(!d)break;s=d}if(a||(a=(t.someProp("clipboardParser")||t.someProp("domParser")||Yt.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(l||c),context:r,ruleFromNode(d){return d.nodeName=="BR"&&!d.nextSibling&&d.parentNode&&!TS.test(d.parentNode.nodeName)?{ignore:!0}:null}})),c)a=zS(xp(a,+c[1],+c[2]),c[4]);else if(a=D.maxOpen(jS(a.content,r),!0),a.openStart||a.openEnd){let m=0,d=0;for(let f=a.content.firstChild;m<a.openStart&&!f.type.spec.isolating;m++,f=f.firstChild);for(let f=a.content.lastChild;d<a.openEnd&&!f.type.spec.isolating;d++,f=f.lastChild);a=xp(a,m,d)}return t.someProp("transformPasted",m=>{a=m(a,t)}),a}const TS=/^(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 jS(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),u;if(!l)return s=null;if(u=s.length&&i.length&&kp(l,i,a,s[s.length-1],0))s[s.length-1]=u;else{s.length&&(s[s.length-1]=bp(s[s.length-1],i.length));let c=vp(a,l);s.push(c),r=r.matchType(c.type),i=l}}),s)return N.from(s)}return t}function vp(t,e,n=0){for(let o=e.length-1;o>=n;o--)t=e[o].create(null,N.from(t));return t}function kp(t,e,n,o,r){if(r<t.length&&r<e.length&&t[r]==e[r]){let i=kp(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(N.from(vp(n,t,r+1))))}}function bp(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,bp(t.lastChild,e-1)),o=t.contentMatchAt(t.childCount).fillBefore(N.empty,!0);return t.copy(n.append(o))}function Ql(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=Ql(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(N.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(a))}function xp(t,e,n){return e<t.openStart&&(t=new D(Ql(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new D(Ql(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const $p={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 Cp=null;function Ep(){return Cp||(Cp=document.implementation.createHTMLDocument("title"))}function PS(t){let e=window.trustedTypes;return e?e.createPolicy("detachedDocument",{createHTML:n=>n}).createHTML(t):t}function IS(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=Ep().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(t),r;if((r=o&&$p[o[1].toLowerCase()])&&(t=r.map(i=>"<"+i+">").join("")+t+r.map(i=>"</"+i+">").reverse().join("")),n.innerHTML=PS(t),r)for(let i=0;i<r.length;i++)n=n.querySelector(r[i])||n;return n}function LS(t){let e=t.querySelectorAll(Re?"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 zS(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=N.from(l.create(o[a+1],r)),i++,s++}return new D(r,i,s)}const Le={},ze={},FS={touchstart:!0,touchmove:!0};class BS{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function HS(t){for(let e in Le){let n=Le[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=o=>{US(t,o)&&!Xl(t,o)&&(t.editable||!(o.type in ze))&&n(t,o)},FS[e]?{passive:!0}:void 0)}Ie&&t.dom.addEventListener("input",()=>null),Zl(t)}function tn(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function VS(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 Zl(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=o=>Xl(t,o))})}function Xl(t,e){return t.someProp("handleDOMEvents",n=>{let o=n[e.type];return o?o(t,e)||e.defaultPrevented:!1})}function US(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 JS(t,e){!Xl(t,e)&&Le[e.type]&&(t.editable||!(e.type in ze))&&Le[e.type](t,e)}ze.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!Op(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(pt&&Re&&n.keyCode==13)))if(t.domObserver.selectionChanged(t.domSelectionRange())?t.domObserver.flush():n.keyCode!=229&&t.domObserver.forceFlush(),$o&&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,Fn(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",o=>o(t,n))||DS(t,n)?n.preventDefault():tn(t,"key")},ze.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},ze.keypress=(t,e)=>{let n=e;if(Op(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||Xe&&n.metaKey)return;if(t.someProp("handleKeyPress",r=>r(t,n))){n.preventDefault();return}let o=t.state.selection;if(!(o instanceof B)||!o.$from.sameParent(o.$to)){let r=String.fromCharCode(n.charCode);!/[\r\n]/.test(r)&&!t.someProp("handleTextInput",i=>i(t,o.$from.pos,o.$to.pos,r))&&t.dispatch(t.state.tr.insertText(r).scrollIntoView()),n.preventDefault()}};function hs(t){return{left:t.clientX,top:t.clientY}}function _S(t,e){let n=e.x-t.clientX,o=e.y-t.clientY;return n*n+o*o<100}function eu(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 No(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let o=t.state.tr.setSelection(e);n=="pointer"&&o.setMeta("pointer",!0),t.dispatch(o)}function YS(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),o=n.nodeAfter;return o&&o.isAtom&&L.isSelectable(o)?(No(t,new L(n),"pointer"),!0):!1}function KS(t,e){if(e==-1)return!1;let n=t.state.selection,o,r;n instanceof L&&(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(L.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?(No(t,L.create(t.state.doc,r),"pointer"),!0):!1}function WS(t,e,n,o,r){return eu(t,"handleClickOn",e,n,o)||t.someProp("handleClick",i=>i(t,e,o))||(r?KS(t,n):YS(t,n))}function qS(t,e,n,o){return eu(t,"handleDoubleClickOn",e,n,o)||t.someProp("handleDoubleClick",r=>r(t,e,o))}function GS(t,e,n,o){return eu(t,"handleTripleClickOn",e,n,o)||t.someProp("handleTripleClick",r=>r(t,e,o))||QS(t,n,o)}function QS(t,e,n){if(n.button!=0)return!1;let o=t.state.doc;if(e==-1)return o.inlineContent?(No(t,B.create(o,0,o.content.size),"pointer"),!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)No(t,B.create(o,a+1,a+1+s.content.size),"pointer");else if(L.isSelectable(s))No(t,L.create(o,a),"pointer");else continue;return!0}}function tu(t){return gs(t)}const Np=Xe?"metaKey":"ctrlKey";Le.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let o=tu(t),r=Date.now(),i="singleClick";r-t.input.lastClick.time<500&&_S(n,t.input.lastClick)&&!n[Np]&&(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};let s=t.posAtCoords(hs(n));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new ZS(t,s,n,!!o)):(i=="doubleClick"?qS:GS)(t,s.pos,s.inside,n)?n.preventDefault():tn(t,"pointer"))};class ZS{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[Np],this.allowDefault=o.shiftKey;let i,s;if(n.inside>-1)i=e.state.doc.nodeAt(n.inside),s=n.inside;else{let c=e.state.doc.resolve(n.pos);i=c.parent,s=c.depth?c.before():0}const a=r?null:o.target,l=a?e.docView.nearestDesc(a,!0):null;this.target=l&&l.dom.nodeType==1?l.dom:null;let{selection:u}=e.state;(o.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||u instanceof L&&u.from<=s&&u.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&ft&&!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)),tn(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(()=>Pt(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(hs(e))),this.updateAllowDefault(e),this.allowDefault||!n?tn(this.view,"pointer"):WS(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Ie&&this.mightDrag&&!this.mightDrag.node.isAtom||Re&&!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)?(No(this.view,U.near(this.view.state.doc.resolve(n.pos)),"pointer"),e.preventDefault()):tn(this.view,"pointer")}move(e){this.updateAllowDefault(e),tn(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)}}Le.touchstart=t=>{t.input.lastTouch=Date.now(),tu(t),tn(t,"pointer")},Le.touchmove=t=>{t.input.lastTouch=Date.now(),tn(t,"pointer")},Le.contextmenu=t=>tu(t);function Op(t,e){return t.composing?!0:Ie&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const XS=pt?5e3:-1;ze.compositionstart=ze.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof B&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(o=>o.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),gs(t,!0),t.markCursor=null;else if(gs(t,!e.selection.empty),ft&&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}Ap(t,XS)},ze.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.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,Ap(t,20))};function Ap(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>gs(t),e))}function Rp(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=tv());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function ev(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=Yw(e.focusNode,e.focusOffset),o=Kw(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 tv(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function gs(t,e=!1){if(!(pt&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),Rp(t),e||t.docView&&t.docView.dirty){let n=Yl(t);return n&&!n.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!t.state.selection.empty?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function nv(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 jr=Ve&&Qt<15||$o&&Zw<604;Le.copy=ze.cut=(t,e)=>{let n=e,o=t.state.selection,r=n.type=="cut";if(o.empty)return;let i=jr?null:n.clipboardData,s=o.content(),{dom:a,text:l}=wp(t,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",l)):nv(t,a),r&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function ov(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function rv(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?Pr(t,o.value,null,r,e):Pr(t,o.textContent,o.innerHTML,r,e)},50)}function Pr(t,e,n,o,r){let i=Sp(t,e,n,o,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,r,i||D.empty)))return!0;if(!i)return!1;let s=ov(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 Mp(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," "):""}ze.paste=(t,e)=>{let n=e;if(t.composing&&!pt)return;let o=jr?null:n.clipboardData,r=t.input.shiftKey&&t.input.lastKeyCode!=45;o&&Pr(t,Mp(o),o.getData("text/html"),r,n)?n.preventDefault():rv(t,n)};class Dp{constructor(e,n,o){this.slice=e,this.move=n,this.node=o}}const Tp=Xe?"altKey":"ctrlKey";Le.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(hs(n)),s;if(!(i&&i.pos>=r.from&&i.pos<=(r instanceof L?r.to-1:r.to))){if(o&&o.mightDrag)s=L.create(t.state.doc,o.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let m=t.docView.nearestDesc(n.target,!0);m&&m.node.type.spec.draggable&&m!=t.docView&&(s=L.create(t.state.doc,m.posBefore))}}let a=(s||t.state.selection).content(),{dom:l,text:u,slice:c}=wp(t,a);(!n.dataTransfer.files.length||!Re||zf>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(jr?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",jr||n.dataTransfer.setData("text/plain",u),t.dragging=new Dp(c,!n[Tp],s)},Le.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},ze.dragover=ze.dragenter=(t,e)=>e.preventDefault(),ze.drop=(t,e)=>{let n=e,o=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let r=t.posAtCoords(hs(n));if(!r)return;let i=t.state.doc.resolve(r.pos),s=o&&o.slice;s?t.someProp("transformPasted",p=>{s=p(s,t)}):s=Sp(t,Mp(n.dataTransfer),jr?null:n.dataTransfer.getData("text/html"),!1,i);let a=!!(o&&!n[Tp]);if(t.someProp("handleDrop",p=>p(t,n,s||D.empty,a))){n.preventDefault();return}if(!s)return;n.preventDefault();let l=s?Tw(t.state.doc,i.pos,s):i.pos;l==null&&(l=i.pos);let u=t.state.tr;if(a){let{node:p}=o;p?p.replace(u):u.deleteSelection()}let c=u.mapping.map(l),m=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,d=u.doc;if(m?u.replaceRangeWith(c,c,s.content.firstChild):u.replaceRange(c,c,s),u.doc.eq(d))return;let f=u.doc.resolve(c);if(m&&L.isSelectable(s.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(s.content.firstChild))u.setSelection(new L(f));else{let p=u.mapping.map(l);u.mapping.maps[u.mapping.maps.length-1].forEach((y,h,g,w)=>p=w),u.setSelection(Wl(t,f,u.doc.resolve(p)))}t.focus(),t.dispatch(u.setMeta("uiEvent","drop"))},Le.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())&&Pt(t)},20))},Le.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)},Le.beforeinput=(t,e)=>{if(Re&&pt&&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,Fn(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 ze)Le[t]=ze[t];function Ir(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 ys{constructor(e,n){this.toDOM=e,this.spec=n||Un,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 tt(i-o,i-o,this)}valid(){return!0}eq(e){return this==e||e instanceof ys&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Ir(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class nn{constructor(e,n){this.attrs=e,this.spec=n||Un}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 tt(i,s,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof nn&&Ir(this.attrs,e.attrs)&&Ir(this.spec,e.spec)}static is(e){return e.type instanceof nn}destroy(){}}class nu{constructor(e,n){this.attrs=e,this.spec=n||Un}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 tt(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 nu&&Ir(this.attrs,e.attrs)&&Ir(this.spec,e.spec)}destroy(){}}class tt{constructor(e,n,o){this.from=e,this.to=n,this.type=o}copy(e,n){return new tt(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 tt(e,e,new ys(n,o))}static inline(e,n,o,r){return new tt(e,n,new nn(o,r))}static node(e,n,o,r){return new tt(e,n,new nu(o,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof nn}get widget(){return this.type instanceof ys}}const Oo=[],Un={};class de{constructor(e,n){this.local=e.length?e:Oo,this.children=n.length?n:Oo}static create(e,n){return n.length?ws(n,e,0,Un):Me}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==Me||e.maps.length==0?this:this.mapInner(e,n,0,0,o||Un)}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?iv(this.children,s||[],e,n,o,r,i):s?new de(s.sort(Jn),Oo):Me}add(e,n){return n.length?this==Me?de.create(e,n):this.addInner(e,n,0):this}addInner(e,n,o){let r,i=0;e.forEach((a,l)=>{let u=l+o,c;if(c=Pp(n,a,u)){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,c,u+1):r.splice(i,0,l,l+a.nodeSize,ws(c,a,u+1,Un)),i+=3}});let s=jp(i?Ip(n):n,-o);for(let a=0;a<s.length;a++)s[a].type.valid(e,s[a])||s.splice(a--,1);return new de(s.length?this.local.concat(s).sort(Jn):this.local,r||this.children)}remove(e){return e.length==0||this==Me?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 c=0,m;c<e.length;c++)(m=e[c])&&m.from>a&&m.to<l&&(e[c]=null,(s||(s=[])).push(m));if(!s)continue;o==this.children&&(o=this.children.slice());let u=o[i+2].removeInner(s,a+1);u!=Me?o[i+2]=u:(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 de(r,o):Me}forChild(e,n){if(this==Me)return this;if(n.isLeaf)return de.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 nn){let u=Math.max(i,l.from)-i,c=Math.min(s,l.to)-i;u<c&&(r||(r=[])).push(l.copy(u,c))}}if(r){let a=new de(r.sort(Jn),Oo);return o?new on([a,o]):a}return o||Me}eq(e){if(this==e)return!0;if(!(e instanceof de)||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 ou(this.localsInner(e))}localsInner(e){if(this==Me)return Oo;if(e.inlineContent||!this.local.some(nn.is))return this.local;let n=[];for(let o=0;o<this.local.length;o++)this.local[o].type instanceof nn||n.push(this.local[o]);return n}forEachSet(e){e(this)}}de.empty=new de([],[]),de.removeOverlap=ou;const Me=de.empty;class on{constructor(e){this.members=e}map(e,n){const o=this.members.map(r=>r.map(e,n,Un));return on.from(o)}forChild(e,n){if(n.isLeaf)return de.empty;let o=[];for(let r=0;r<this.members.length;r++){let i=this.members[r].forChild(e,n);i!=Me&&(i instanceof on?o=o.concat(i.members):o.push(i))}return on.from(o)}eq(e){if(!(e instanceof on)||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?ou(o?n:n.sort(Jn)):Oo}static from(e){switch(e.length){case 0:return Me;case 1:return e[0];default:return new on(e.every(n=>n instanceof de)?e:e.reduce((n,o)=>n.concat(o instanceof de?o:o.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(e)}}function iv(t,e,n,o,r,i,s){let a=t.slice();for(let u=0,c=i;u<n.maps.length;u++){let m=0;n.maps[u].forEach((d,f,p,y)=>{let h=y-p-(f-d);for(let g=0;g<a.length;g+=3){let w=a[g+1];if(w<0||d>w+c-m)continue;let v=a[g]+c-m;f>=v?a[g+1]=d<=v?-2:-1:d>=c&&h&&(a[g]+=h,a[g+1]+=h)}m+=h}),c=n.maps[u].map(c,-1)}let l=!1;for(let u=0;u<a.length;u+=3)if(a[u+1]<0){if(a[u+1]==-2){l=!0,a[u+1]=-1;continue}let c=n.map(t[u]+i),m=c-r;if(m<0||m>=o.content.size){l=!0;continue}let d=n.map(t[u+1]+i,-1),f=d-r,{index:p,offset:y}=o.content.findIndex(m),h=o.maybeChild(p);if(h&&y==m&&y+h.nodeSize==f){let g=a[u+2].mapInner(n,h,c+1,t[u]+i+1,s);g!=Me?(a[u]=m,a[u+1]=f,a[u+2]=g):(a[u+1]=-2,l=!0)}else l=!0}if(l){let u=sv(a,t,e,n,r,i,s),c=ws(u,o,0,s);e=c.local;for(let m=0;m<a.length;m+=3)a[m+1]<0&&(a.splice(m,3),m-=3);for(let m=0,d=0;m<c.children.length;m+=3){let f=c.children[m];for(;d<a.length&&a[d]<f;)d+=3;a.splice(d,0,c.children[m],c.children[m+1],c.children[m+2])}}return new de(e.sort(Jn),a)}function jp(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 tt(r.from+e,r.to+e,r.type))}return n}function sv(t,e,n,o,r,i,s){function a(l,u){for(let c=0;c<l.local.length;c++){let m=l.local[c].map(o,r,u);m?n.push(m):s.onRemove&&s.onRemove(l.local[c].spec)}for(let c=0;c<l.children.length;c+=3)a(l.children[c+2],l.children[c]+u+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 Pp(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 Ip(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function ws(t,e,n,o){let r=[],i=!1;e.forEach((a,l)=>{let u=Pp(t,a,l+n);if(u){i=!0;let c=ws(u,a,n+l+1,o);c!=Me&&r.push(l,l+a.nodeSize,c)}});let s=jp(i?Ip(t):t,-n).sort(Jn);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 de(s,r):Me}function Jn(t,e){return t.from-e.from||t.to-e.to}function ou(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),Lp(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),Lp(e,r,o.copy(i.from,o.to)));break}}}return e}function Lp(t,e,n){for(;e<t.length&&Jn(n,t[e])>0;)e++;t.splice(e,0,n)}function ru(t){let e=[];return t.someProp("decorations",n=>{let o=n(t.state);o&&o!=Me&&e.push(o)}),t.cursorWrapper&&e.push(de.create(t.state.doc,[t.cursorWrapper.deco])),on.from(e)}const av={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},lv=Ve&&Qt<=11;class uv{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 cv{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new uv,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]);Ve&&Qt<=11&&o.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),lv&&(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,av)),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(cp(this.view)){if(this.suppressingSelectionUpdates)return Pt(this.view);if(Ve&&Qt<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&zn(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=Nr(i))n.add(i);for(let i=e.anchorNode;i;i=Nr(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}selectionChanged(e){return!this.suppressingSelectionUpdates&&!this.currentSelection.eq(e)&&cp(this.view)&&!this.ignoreSelectionChange(e)}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.selectionChanged(o),i=-1,s=-1,a=!1,l=[];if(e.editable)for(let c=0;c<n.length;c++){let m=this.registerMutation(n[c],l);m&&(i=i<0?m.from:Math.min(m.from,i),s=s<0?m.to:Math.max(m.to,s),m.typeOver&&(a=!0))}if(ft&&l.length){let c=l.filter(m=>m.nodeName=="BR");if(c.length==2){let[m,d]=c;m.parentNode&&m.parentNode.parentNode==d.parentNode?d.remove():m.remove()}else{let{focusNode:m}=this.currentSelection;for(let d of c){let f=d.parentNode;f&&f.nodeName=="LI"&&(!m||fv(e,m)!=f)&&d.remove()}}}let u=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&ds(o)&&(u=Yl(e))&&u.eq(U.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Pt(e),this.currentSelection.set(o),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,s),dv(e)),this.handleDOMChange(i,s,a,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(o)||Pt(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 c=0;c<e.addedNodes.length;c++){let m=e.addedNodes[c];n.push(m),m.nodeType==3&&(this.lastChangedTextNode=m)}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(Ve&&Qt<=11&&e.addedNodes.length)for(let c=0;c<e.addedNodes.length;c++){let{previousSibling:m,nextSibling:d}=e.addedNodes[c];(!m||Array.prototype.indexOf.call(e.addedNodes,m)<0)&&(r=m),(!d||Array.prototype.indexOf.call(e.addedNodes,d)<0)&&(i=d)}let s=r&&r.parentNode==e.target?be(r)+1:0,a=o.localPosFromDOM(e.target,s,-1),l=i&&i.parentNode==e.target?be(i):e.target.childNodes.length,u=o.localPosFromDOM(e.target,l,1);return{from:a,to:u}}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 zp=new WeakMap,Fp=!1;function dv(t){if(!zp.has(t)&&(zp.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=ft,Fp)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."),Fp=!0}}function Bp(t,e){let n=e.startContainer,o=e.startOffset,r=e.endContainer,i=e.endOffset,s=t.domAtPos(t.state.selection.anchor);return zn(s.node,s.offset,r,i)&&([n,o,r,i]=[r,i,n,o]),{anchorNode:n,anchorOffset:o,focusNode:r,focusOffset:i}}function mv(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return Bp(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?Bp(t,n):null}function fv(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 pv(t,e,n){let{node:o,fromOffset:r,toOffset:i,from:s,to:a}=t.docView.parseRange(e,n),l=t.domSelectionRange(),u,c=l.anchorNode;if(c&&t.dom.contains(c.nodeType==1?c:c.parentNode)&&(u=[{node:c,offset:l.anchorOffset}],ds(l)||u.push({node:l.focusNode,offset:l.focusOffset})),Re&&t.input.lastKeyCode===8)for(let h=i;h>r;h--){let g=o.childNodes[h-1],w=g.pmViewDesc;if(g.nodeName=="BR"&&!w){i=h;break}if(!w||w.size)break}let m=t.state.doc,d=t.someProp("domParser")||Yt.fromSchema(t.state.schema),f=m.resolve(s),p=null,y=d.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:u,ruleFromNode:hv,context:f});if(u&&u[0].pos!=null){let h=u[0].pos,g=u[1]&&u[1].pos;g==null&&(g=h),p={anchor:h+s,head:g+s}}return{doc:y,sel:p,from:s,to:a}}function hv(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(Ie&&/^(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||Ie&&/^(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 gv=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function yv(t,e,n,o,r){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let C=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,J=Yl(t,C);if(J&&!t.state.selection.eq(J)){if(Re&&pt&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",Z=>Z(t,Fn(13,"Enter"))))return;let ie=t.state.tr.setSelection(J);C=="pointer"?ie.setMeta("pointer",!0):C=="key"&&ie.scrollIntoView(),i&&ie.setMeta("composition",i),t.dispatch(ie)}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,u=pv(t,e,n),c=t.state.doc,m=c.slice(u.from,u.to),d,f;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(d=t.state.selection.to,f="end"):(d=t.state.selection.from,f="start"),t.input.lastKeyCode=null;let p=vv(m.content,u.doc.content,u.from,d,f);if(p&&t.input.domChangeCount++,($o&&t.input.lastIOSEnter>Date.now()-225||pt)&&r.some(C=>C.nodeType==1&&!gv.test(C.nodeName))&&(!p||p.endA>=p.endB)&&t.someProp("handleKeyDown",C=>C(t,Fn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!p)if(o&&l instanceof B&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))p={start:l.from,endA:l.to,endB:l.to};else{if(u.sel){let C=Hp(t,t.state.doc,u.sel);if(C&&!C.eq(t.state.selection)){let J=t.state.tr.setSelection(C);i&&J.setMeta("composition",i),t.dispatch(J)}}return}t.state.selection.from<t.state.selection.to&&p.start==p.endB&&t.state.selection instanceof B&&(p.start>t.state.selection.from&&p.start<=t.state.selection.from+2&&t.state.selection.from>=u.from?p.start=t.state.selection.from:p.endA<t.state.selection.to&&p.endA>=t.state.selection.to-2&&t.state.selection.to<=u.to&&(p.endB+=t.state.selection.to-p.endA,p.endA=t.state.selection.to)),Ve&&Qt<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>u.from&&u.doc.textBetween(p.start-u.from-1,p.start-u.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let y=u.doc.resolveNoCache(p.start-u.from),h=u.doc.resolveNoCache(p.endB-u.from),g=c.resolve(p.start),w=y.sameParent(h)&&y.parent.inlineContent&&g.end()>=p.endA,v;if(($o&&t.input.lastIOSEnter>Date.now()-225&&(!w||r.some(C=>C.nodeName=="DIV"||C.nodeName=="P"))||!w&&y.pos<u.doc.content.size&&!y.sameParent(h)&&(v=U.findFrom(u.doc.resolve(y.pos+1),1,!0))&&v.head==h.pos)&&t.someProp("handleKeyDown",C=>C(t,Fn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>p.start&&Sv(c,p.start,p.endA,y,h)&&t.someProp("handleKeyDown",C=>C(t,Fn(8,"Backspace")))){pt&&Re&&t.domObserver.suppressSelectionUpdates();return}Re&&pt&&p.endB==p.start&&(t.input.lastAndroidDelete=Date.now()),pt&&!w&&y.start()!=h.start()&&h.parentOffset==0&&y.depth==h.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==p.endA&&(p.endB-=2,h=u.doc.resolveNoCache(p.endB-u.from),setTimeout(()=>{t.someProp("handleKeyDown",function(C){return C(t,Fn(13,"Enter"))})},20));let b=p.start,E=p.endA,k,$,R;if(w){if(y.pos==h.pos)Ve&&Qt<=11&&y.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Pt(t),20)),k=t.state.tr.delete(b,E),$=c.resolve(p.start).marksAcross(c.resolve(p.endA));else if(p.endA==p.endB&&(R=wv(y.parent.content.cut(y.parentOffset,h.parentOffset),g.parent.content.cut(g.parentOffset,p.endA-g.start()))))k=t.state.tr,R.type=="add"?k.addMark(b,E,R.mark):k.removeMark(b,E,R.mark);else if(y.parent.child(y.index()).isText&&y.index()==h.index()-(h.textOffset?0:1)){let C=y.parent.textBetween(y.parentOffset,h.parentOffset);if(t.someProp("handleTextInput",J=>J(t,b,E,C)))return;k=t.state.tr.insertText(C,b,E)}}if(k||(k=t.state.tr.replace(b,E,u.doc.slice(p.start-u.from,p.endB-u.from))),u.sel){let C=Hp(t,k.doc,u.sel);C&&!(Re&&pt&&t.composing&&C.empty&&(p.start!=p.endB||t.input.lastAndroidDelete<Date.now()-100)&&(C.head==b||C.head==k.mapping.map(E)-1)||Ve&&C.empty&&C.head==b)&&k.setSelection(C)}$&&k.ensureMarks($),i&&k.setMeta("composition",i),t.dispatch(k.scrollIntoView())}function Hp(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:Wl(t,e.resolve(n.anchor),e.resolve(n.head))}function wv(t,e){let n=t.firstChild.marks,o=e.firstChild.marks,r=n,i=o,s,a,l;for(let c=0;c<o.length;c++)r=o[c].removeFromSet(r);for(let c=0;c<n.length;c++)i=n[c].removeFromSet(i);if(r.length==1&&i.length==0)a=r[0],s="add",l=c=>c.mark(a.addToSet(c.marks));else if(r.length==0&&i.length==1)a=i[0],s="remove",l=c=>c.mark(a.removeFromSet(c.marks));else return null;let u=[];for(let c=0;c<e.childCount;c++)u.push(l(e.child(c)));if(N.from(u).eq(t))return{mark:a,type:s}}function Sv(t,e,n,o,r){if(n-e<=r.pos-o.pos||iu(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(iu(i,!0,!0));return!s.parent.isTextblock||s.pos>n||iu(s,!0,!1)<n?!1:o.parent.content.cut(o.parentOffset).eq(s.parent.content)}function iu(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 vv(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&&Vp(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&&Vp(t.textBetween(i-1,i+1))&&(i+=l?1:-1),s=i+(s-a),a=i}return{start:i,endA:s,endB:a}}function Vp(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 kv{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 BS,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(Kp),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=_p(this),Jp(this),this.nodeViews=Yp(this),this.docView=Zf(this.state.doc,Up(this),ru(this),this.dom,this),this.domObserver=new cv(this,(o,r,i,s)=>yv(this,o,r,i,s)),this.domObserver.start(),HS(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&&Zl(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Kp),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&&(Rp(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=Yp(this);xv(f,this.nodeViews)&&(this.nodeViews=f,i=!0)}(a||n.handleDOMEvents!=this._props.handleDOMEvents)&&Zl(this),this.editable=_p(this),Jp(this);let l=ru(this),u=Up(this),c=r.plugins!=e.plugins&&!r.doc.eq(e.doc)?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",m=i||!this.docView.matchesNode(e.doc,u,l);(m||!e.selection.eq(r.selection))&&(s=!0);let d=c=="preserve"&&s&&this.dom.style.overflowAnchor==null&&tS(this);if(s){this.domObserver.stop();let f=m&&(Ve||Re)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&bv(r.selection,e.selection);if(m){let p=Re?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=ev(this)),(i||!this.docView.update(e.doc,u,l,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=Zf(e.doc,u,l,this.dom,this)),p&&!this.trackWrites&&(f=!0)}f||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&CS(this))?Pt(this,f):(lp(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),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():d&&nS(d)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof L){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&Ff(this,n.getBoundingClientRect(),e)}else Ff(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(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&&this.state.doc.nodeAt(i))==o.node&&(r=i)}this.dragging=new Dp(e.slice,e.move,r<0?void 0:L.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(Ve){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&&oS(this.dom),Pt(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 lS(this,e)}coordsAtPos(e,n=1){return _f(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 fS(this,n||this.state,e)}pasteHTML(e,n){return Pr(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Pr(this,e,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(VS(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],ru(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,Jw())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return JS(this,e)}dispatch(e){let n=this._props.dispatchTransaction;n?n.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){let e=this.domSelection();return e?Ie&&this.root.nodeType===11&&qw(this.dom.ownerDocument)==this.dom&&mv(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function Up(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"),[tt.node(0,t.state.doc.content.size,e)]}function Jp(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:tt.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function _p(t){return!t.someProp("editable",e=>e(t.state)===!1)}function bv(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 Yp(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 xv(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 Kp(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 rn={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:"'"},Ss={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},$v=typeof navigator<"u"&&/Mac/.test(navigator.platform),Cv=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),xe=0;xe<10;xe++)rn[48+xe]=rn[96+xe]=String(xe);for(var xe=1;xe<=24;xe++)rn[xe+111]="F"+xe;for(var xe=65;xe<=90;xe++)rn[xe]=String.fromCharCode(xe+32),Ss[xe]=String.fromCharCode(xe);for(var su in rn)Ss.hasOwnProperty(su)||(Ss[su]=rn[su]);function Ev(t){var e=$v&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Cv&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?Ss:rn)[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 Nv=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function Ov(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))Nv?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 Av(t){let e=Object.create(null);for(let n in t)e[Ov(n)]=t[n];return e}function au(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 Rv(t){return new He({props:{handleKeyDown:Mv(t)}})}function Mv(t){let e=Av(t);return function(n,o){let r=Ev(o),i,s=e[au(r,o)];if(s&&s(n.state,n.dispatch,n))return!0;if(r.length==1&&r!=" "){if(o.shiftKey){let a=e[au(r,o,!1)];if(a&&a(n.state,n.dispatch,n))return!0}if((o.shiftKey||o.altKey||o.metaKey||r.charCodeAt(0)>127)&&(i=rn[o.keyCode])&&i!=r){let a=e[au(i,o)];if(a&&a(n.state,n.dispatch,n))return!0}}return!1}}const Dv=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function Wp(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const Tv=(t,e,n)=>{let o=Wp(t,n);if(!o)return!1;let r=lu(o);if(!r){let s=o.blockRange(),a=s&&wo(s);return a==null?!1:(e&&e(t.tr.lift(s,a).scrollIntoView()),!0)}let i=r.nodeBefore;if(Zp(t,r,e,-1))return!0;if(o.parent.content.size==0&&(Ao(i,"end")||L.isSelectable(i)))for(let s=o.depth;;s--){let a=ls(t.doc,o.before(s),o.after(s),D.empty);if(a&&a.slice.size<a.to-a.from){if(e){let l=t.tr.step(a);l.setSelection(Ao(i,"end")?U.findFrom(l.doc.resolve(l.mapping.map(r.pos,-1)),-1):L.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},jv=(t,e,n)=>{let o=Wp(t,n);if(!o)return!1;let r=lu(o);return r?qp(t,r,e):!1},Pv=(t,e,n)=>{let o=Gp(t,n);if(!o)return!1;let r=uu(o);return r?qp(t,r,e):!1};function qp(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 c=r.lastChild;if(!c)return!1;r=c}let s=e.nodeAfter,a=s,l=e.pos+1;for(;!a.isTextblock;l++){if(a.type.spec.isolating)return!1;let c=a.firstChild;if(!c)return!1;a=c}let u=ls(t.doc,i,l,D.empty);if(!u||u.from!=i||u instanceof pe&&u.slice.size>=l-i)return!1;if(n){let c=t.tr.step(u);c.setSelection(B.create(c.doc,i)),n(c.scrollIntoView())}return!0}function Ao(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 Iv=(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=lu(o)}let s=i&&i.nodeBefore;return!s||!L.isSelectable(s)?!1:(e&&e(t.tr.setSelection(L.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function lu(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 Gp(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const Lv=(t,e,n)=>{let o=Gp(t,n);if(!o)return!1;let r=uu(o);if(!r)return!1;let i=r.nodeAfter;if(Zp(t,r,e,1))return!0;if(o.parent.content.size==0&&(Ao(i,"start")||L.isSelectable(i))){let s=ls(t.doc,o.before(),o.after(),D.empty);if(s&&s.slice.size<s.to-s.from){if(e){let a=t.tr.step(s);a.setSelection(Ao(i,"start")?U.findFrom(a.doc.resolve(a.mapping.map(r.pos)),1):L.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},zv=(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=uu(o)}let s=i&&i.nodeAfter;return!s||!L.isSelectable(s)?!1:(e&&e(t.tr.setSelection(L.create(t.doc,i.pos)).scrollIntoView()),!0)};function uu(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 Fv=(t,e)=>{let n=t.selection,o=n instanceof L,r;if(o){if(n.node.isTextblock||!qt(t.doc,n.from))return!1;r=n.from}else if(r=as(t.doc,n.from,-1),r==null)return!1;if(e){let i=t.tr.join(r);o&&i.setSelection(L.create(i.doc,r-t.doc.resolve(r).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},Bv=(t,e)=>{let n=t.selection,o;if(n instanceof L){if(n.node.isTextblock||!qt(t.doc,n.to))return!1;o=n.to}else if(o=as(t.doc,n.to,1),o==null)return!1;return e&&e(t.tr.join(o).scrollIntoView()),!0},Hv=(t,e)=>{let{$from:n,$to:o}=t.selection,r=n.blockRange(o),i=r&&wo(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)},Vv=(t,e)=>{let{$head:n,$anchor:o}=t.selection;return!n.parent.type.spec.code||!n.sameParent(o)?!1:(e&&e(t.tr.insertText(`
28
- `).scrollIntoView()),!0)};function Qp(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 Uv=(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=Qp(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(U.near(l.doc.resolve(a),1)),e(l.scrollIntoView())}return!0},Jv=(t,e)=>{let n=t.selection,{$from:o,$to:r}=n;if(n instanceof dt||o.parent.inlineContent||r.parent.inlineContent)return!1;let i=Qp(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(B.create(a.doc,s+1)),e(a.scrollIntoView())}return!0},_v=(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(So(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let o=n.blockRange(),r=o&&wo(o);return r==null?!1:(e&&e(t.tr.lift(o,r).scrollIntoView()),!0)},Yv=(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(L.create(t.doc,r))),!0)};function Kv(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||qt(t.doc,e.pos))?!1:(n&&n(t.tr.clearIncompatible(e.pos,o.type,o.contentMatchAt(o.childCount)).join(e.pos).scrollIntoView()),!0)}function Zp(t,e,n,o){let r=e.nodeBefore,i=e.nodeAfter,s,a,l=r.type.spec.isolating||i.type.spec.isolating;if(!l&&Kv(t,e,n))return!0;let u=!l&&e.parent.canReplace(e.index(),e.index()+1);if(u&&(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=N.empty;for(let g=s.length-1;g>=0;g--)p=N.from(s[g].create(null,p));p=N.from(r.copy(p));let y=t.tr.step(new he(e.pos-1,f,e.pos,f,new D(p,1,0),s.length,!0)),h=f+2*s.length;qt(y.doc,h)&&y.join(h),n(y.scrollIntoView())}return!0}let c=i.type.spec.isolating||o>0&&l?null:U.findFrom(e,1),m=c&&c.$from.blockRange(c.$to),d=m&&wo(m);if(d!=null&&d>=e.depth)return n&&n(t.tr.lift(m,d).scrollIntoView()),!0;if(u&&Ao(i,"start",!0)&&Ao(r,"end")){let f=r,p=[];for(;p.push(f),!f.isTextblock;)f=f.lastChild;let y=i,h=1;for(;!y.isTextblock;y=y.firstChild)h++;if(f.canReplace(f.childCount,f.childCount,y.content)){if(n){let g=N.empty;for(let v=p.length-1;v>=0;v--)g=N.from(p[v].copy(g));let w=t.tr.step(new he(e.pos-p.length,e.pos+i.nodeSize,e.pos+h,e.pos+i.nodeSize-h,new D(g,p.length,0),0,!0));n(w.scrollIntoView())}return!0}}return!1}function Xp(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(B.create(e.doc,t<0?r.start(i):r.end(i)))),!0):!1}}const Wv=Xp(-1),qv=Xp(1);function Gv(t,e=null){return function(n,o){let{$from:r,$to:i}=n.selection,s=r.blockRange(i),a=s&&Ml(s,t,e);return a?(o&&o(n.tr.wrap(s,a).scrollIntoView()),!0):!1}}function eh(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,u)=>{if(r)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)r=!0;else{let c=n.doc.resolve(u),m=c.index();r=c.parent.canReplaceWith(m,m+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}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function Qv(t,e=null){return function(n,o){let{$from:r,$to:i}=n.selection,s=r.blockRange(i),a=!1,l=s;if(!s)return!1;if(s.depth>=2&&r.node(s.depth-1).type.compatibleContent(t)&&s.startIndex==0){if(r.index(s.depth-1)==0)return!1;let c=n.doc.resolve(s.start-2);l=new Zi(c,c,s.depth),s.endIndex<s.parent.childCount&&(s=new Zi(r,n.doc.resolve(i.end(s.depth)),s.depth)),a=!0}let u=Ml(l,t,e,s);return u?(o&&o(Zv(n.tr,s,u,a,t).scrollIntoView()),!0):!1}}function Zv(t,e,n,o,r){let i=N.empty;for(let c=n.length-1;c>=0;c--)i=N.from(n[c].type.create(n[c].attrs,i));t.step(new he(e.start-(o?2:0),e.end,e.start,e.end,new D(i,0,0),n.length,!0));let s=0;for(let c=0;c<n.length;c++)n[c].type==r&&(s=c+1);let a=n.length-s,l=e.start+n.length-(o?2:0),u=e.parent;for(let c=e.startIndex,m=e.endIndex,d=!0;c<m;c++,d=!1)!d&&So(t.doc,l,a)&&(t.split(l,a),l+=2*a),l+=u.child(c).nodeSize;return t}function Xv(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?ek(e,n,t,i):tk(e,n,i):!0:!1}}function ek(t,e,n,o){let r=t.tr,i=o.end,s=o.$to.end(o.depth);i<s&&(r.step(new he(i-1,s,i,s,new D(N.from(n.create(null,o.parent.copy())),1,0),1,!0)),o=new Zi(r.doc.resolve(o.$from.pos),r.doc.resolve(s),o.depth));const a=wo(o);if(a==null)return!1;r.lift(o,a);let l=r.mapping.map(i,-1)-1;return qt(r.doc,l)&&r.join(l),e(r.scrollIntoView()),!0}function tk(t,e,n){let o=t.tr,r=n.parent;for(let f=n.end,p=n.endIndex-1,y=n.startIndex;p>y;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,u=i.node(-1),c=i.index(-1);if(!u.canReplace(c+(a?0:1),c+1,s.content.append(l?N.empty:N.from(r))))return!1;let m=i.pos,d=m+s.nodeSize;return o.step(new he(m-(a?1:0),d+(l?1:0),m+1,d-1,new D((a?N.empty:N.from(r.copy(N.empty))).append(l?N.empty:N.from(r.copy(N.empty))),a?0:1,l?0:1),a?0:1)),e(o.scrollIntoView()),!0}function nk(t){return function(e,n){let{$from:o,$to:r}=e.selection,i=o.blockRange(r,u=>u.childCount>0&&u.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 u=l.lastChild&&l.lastChild.type==a.type,c=N.from(u?t.create():null),m=new D(N.from(t.create(null,N.from(a.type.create(null,c)))),u?3:1,0),d=i.start,f=i.end;n(e.tr.step(new he(d-(u?3:1),f,d,f,m,1,!0)).scrollIntoView())}return!0}}function vs(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 ks{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,(...c)=>{const m=l(...c)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(i),m}]))}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,u=e||i.tr,c=()=>(!l&&n&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(u),a.every(d=>d===!0)),m={...Object.fromEntries(Object.entries(o).map(([d,f])=>[d,(...y)=>{const h=this.buildProps(u,n),g=f(...y)(h);return a.push(g),m}])),run:c};return m}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,u])=>[l,(...c)=>u(...c)({...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:vs({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,u])=>[l,(...c)=>u(...c)(a)]))}};return a}}let ok=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}removeAllListeners(){this.callbacks={}}};function j(t,e,n){return t.config[e]===void 0&&t.parent?j(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?j(t.parent,e,n):null}):t.config[e]}function bs(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 th(t){const e=[],{nodeExtensions:n,markExtensions:o}=bs(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=j(s,"addGlobalAttributes",a);if(!l)return;l().forEach(c=>{c.types.forEach(m=>{Object.entries(c.attributes).forEach(([d,f])=>{e.push({type:m,name:d,attribute:{...i,...f}})})})})}),r.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage},l=j(s,"addAttributes",a);if(!l)return;const u=l();Object.entries(u).forEach(([c,m])=>{const d={...i,...m};typeof(d==null?void 0:d.default)=="function"&&(d.default=d.default()),d!=null&&d.isRequired&&(d==null?void 0:d.default)===void 0&&delete d.default,e.push({type:s.name,name:c,attribute:d})})}),e}function ge(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 Ro(...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?i.split(" "):[],l=o[r]?o[r].split(" "):[],u=a.filter(c=>!l.includes(c));o[r]=[...l,...u].join(" ")}else if(r==="style"){const a=i?i.split(";").map(c=>c.trim()).filter(Boolean):[],l=o[r]?o[r].split(";").map(c=>c.trim()).filter(Boolean):[],u=new Map;l.forEach(c=>{const[m,d]=c.split(":").map(f=>f.trim());u.set(m,d)}),a.forEach(c=>{const[m,d]=c.split(":").map(f=>f.trim());u.set(m,d)}),o[r]=Array.from(u.entries()).map(([c,m])=>`${c}: ${m}`).join("; ")}else o[r]=i}),o},{})}function cu(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)=>Ro(n,o),{})}function nh(t){return typeof t=="function"}function _(t,e=void 0,...n){return nh(t)?e?t.bind(e)(...n):t(...n):t}function rk(t={}){return Object.keys(t).length===0&&t.constructor===Object}function ik(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function oh(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):ik(n.getAttribute(s.name));return a==null?i:{...i,[s.name]:a}},{});return{...o,...r}}}}function rh(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&rk(n)?!1:n!=null))}function sk(t,e){var n;const o=th(t),{nodeExtensions:r,markExtensions:i}=bs(t),s=(n=r.find(u=>j(u,"topNode")))===null||n===void 0?void 0:n.name,a=Object.fromEntries(r.map(u=>{const c=o.filter(g=>g.type===u.name),m={name:u.name,options:u.options,storage:u.storage,editor:e},d=t.reduce((g,w)=>{const v=j(w,"extendNodeSchema",m);return{...g,...v?v(u):{}}},{}),f=rh({...d,content:_(j(u,"content",m)),marks:_(j(u,"marks",m)),group:_(j(u,"group",m)),inline:_(j(u,"inline",m)),atom:_(j(u,"atom",m)),selectable:_(j(u,"selectable",m)),draggable:_(j(u,"draggable",m)),code:_(j(u,"code",m)),whitespace:_(j(u,"whitespace",m)),defining:_(j(u,"defining",m)),isolating:_(j(u,"isolating",m)),attrs:Object.fromEntries(c.map(g=>{var w;return[g.name,{default:(w=g==null?void 0:g.attribute)===null||w===void 0?void 0:w.default}]}))}),p=_(j(u,"parseHTML",m));p&&(f.parseDOM=p.map(g=>oh(g,c)));const y=j(u,"renderHTML",m);y&&(f.toDOM=g=>y({node:g,HTMLAttributes:cu(g,c)}));const h=j(u,"renderText",m);return h&&(f.toText=h),[u.name,f]})),l=Object.fromEntries(i.map(u=>{const c=o.filter(h=>h.type===u.name),m={name:u.name,options:u.options,storage:u.storage,editor:e},d=t.reduce((h,g)=>{const w=j(g,"extendMarkSchema",m);return{...h,...w?w(u):{}}},{}),f=rh({...d,inclusive:_(j(u,"inclusive",m)),excludes:_(j(u,"excludes",m)),group:_(j(u,"group",m)),spanning:_(j(u,"spanning",m)),code:_(j(u,"code",m)),attrs:Object.fromEntries(c.map(h=>{var g;return[h.name,{default:(g=h==null?void 0:h.attribute)===null||g===void 0?void 0:g.default}]}))}),p=_(j(u,"parseHTML",m));p&&(f.parseDOM=p.map(h=>oh(h,c)));const y=j(u,"renderHTML",m);return y&&(f.toDOM=h=>y({mark:h,HTMLAttributes:cu(h,c)})),[u.name,f]}));return new nf({topNode:s,nodes:a,marks:l})}function du(t,e){return e.nodes[t]||e.marks[t]||null}function ih(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}const ak=(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,u;const c=((u=(l=r.type.spec).toText)===null||u===void 0?void 0:u.call(l,{node:r,pos:i,parent:s,index:a}))||r.textContent||"%leaf%";n+=r.isAtom&&!r.isText?c:c.slice(0,Math.max(0,o-i))}),n};function mu(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class lk{constructor(e){this.find=e.find,this.handler=e.handler}}const uk=(t,e)=>{if(mu(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 xs(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 u=l.state.doc.resolve(o);if(u.parent.type.spec.code||!((e=u.nodeBefore||u.nodeAfter)===null||e===void 0)&&e.marks.find(d=>d.type.spec.code))return!1;let c=!1;const m=ak(u)+i;return s.forEach(d=>{if(c)return;const f=uk(m,d.find);if(!f)return;const p=l.state.tr,y=vs({state:l.state,transaction:p}),h={from:o-(f[0].length-i.length),to:r},{commands:g,chain:w,can:v}=new ks({editor:n,state:y});d.handler({state:y,range:h,match:f,commands:g,chain:w,can:v})===null||!p.steps.length||(p.setMeta(a,{transform:p,from:o,to:r,text:i}),l.dispatch(p),c=!0)}),c}function ck(t){const{editor:e,rules:n}=t,o=new He({state:{init(){return null},apply(r,i){const s=r.getMeta(o);if(s)return s;const a=r.getMeta("applyInputRules");return!!a&&setTimeout(()=>{const{from:u,text:c}=a,m=u+c.length;xs({editor:e,from:u,to:m,text:c,rules:n,plugin:o})}),r.selectionSet||r.docChanged?null:i}},props:{handleTextInput(r,i,s,a){return xs({editor:e,from:i,to:s,text:a,rules:n,plugin:o})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:i}=r.state.selection;i&&xs({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?xs({editor:e,from:s.pos,to:s.pos,text:`
29
- `,rules:n,plugin:o}):!1}},isInputRules:!0});return o}function dk(t){return Object.prototype.toString.call(t).slice(8,-1)}function $s(t){return dk(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function Cs(t,e){const n={...t};return $s(t)&&$s(e)&&Object.keys(e).forEach(o=>{$s(e[o])&&$s(t[o])?n[o]=Cs(t[o],e[o]):n[o]=e[o]}),n}class Lr{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=_(j(this,"addOptions",{name:this.name}))),this.storage=_(j(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Lr(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Cs(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new Lr(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=_(j(n,"addOptions",{name:n.name})),n.storage=_(j(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(u=>(u==null?void 0:u.type.name)===n.name))return!1;const l=s.find(u=>(u==null?void 0:u.type.name)===n.name);return l&&o.removeStoredMark(l),o.insertText(" ",r.pos),e.view.dispatch(o),!0}return!1}}function mk(t){return typeof t=="number"}class fk{constructor(e){this.find=e.find,this.handler=e.handler}}const pk=(t,e,n)=>{if(mu(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 hk(t){const{editor:e,state:n,from:o,to:r,rule:i,pasteEvent:s,dropEvent:a}=t,{commands:l,chain:u,can:c}=new ks({editor:e,state:n}),m=[];return n.doc.nodesBetween(o,r,(f,p)=>{if(!f.isTextblock||f.type.spec.code)return;const y=Math.max(o,p),h=Math.min(r,p+f.content.size),g=f.textBetween(y-p,h-p,void 0,"");pk(g,i.find,s).forEach(v=>{if(v.index===void 0)return;const b=y+v.index+1,E=b+v[0].length,k={from:n.tr.mapping.map(b),to:n.tr.mapping.map(E)},$=i.handler({state:n,range:k,match:v,commands:l,chain:u,can:c,pasteEvent:s,dropEvent:a});m.push($)})}),m.every(f=>f!==null)}const gk=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 yk(t){const{editor:e,rules:n}=t;let o=null,r=!1,i=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,a=typeof DragEvent<"u"?new DragEvent("drop"):null;const l=({state:c,from:m,to:d,rule:f,pasteEvt:p})=>{const y=c.tr,h=vs({state:c,transaction:y});if(!(!hk({editor:e,state:h,from:Math.max(m-1,0),to:d.b-1,rule:f,pasteEvent:p,dropEvent:a})||!y.steps.length))return a=typeof DragEvent<"u"?new DragEvent("drop"):null,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,y};return n.map(c=>new He({view(m){const d=f=>{var p;o=!((p=m.dom.parentElement)===null||p===void 0)&&p.contains(f.target)?m.dom.parentElement:null};return window.addEventListener("dragstart",d),{destroy(){window.removeEventListener("dragstart",d)}}},props:{handleDOMEvents:{drop:(m,d)=>(i=o===m.dom.parentElement,a=d,!1),paste:(m,d)=>{var f;const p=(f=d.clipboardData)===null||f===void 0?void 0:f.getData("text/html");return s=d,r=!!(p!=null&&p.includes("data-pm-slice")),!1}}},appendTransaction:(m,d,f)=>{const p=m[0],y=p.getMeta("uiEvent")==="paste"&&!r,h=p.getMeta("uiEvent")==="drop"&&!i,g=p.getMeta("applyPasteRules"),w=!!g;if(!y&&!h&&!w)return;if(w){const{from:E,text:k}=g,$=E+k.length,R=gk(k);return l({rule:c,state:f,from:E,to:{b:$},pasteEvt:R})}const v=d.doc.content.findDiffStart(f.doc.content),b=d.doc.content.findDiffEnd(f.doc.content);if(!(!mk(v)||!b||v===b.b))return l({rule:c,state:f,from:v,to:b,pasteEvt:s})}}))}function wk(t){const e=t.filter((n,o)=>t.indexOf(n)!==o);return Array.from(new Set(e))}class Mo{constructor(e,n){this.splittableMarks=[],this.editor=n,this.extensions=Mo.resolve(e),this.schema=sk(this.extensions,n),this.setupExtensions()}static resolve(e){const n=Mo.sort(Mo.flatten(e)),o=wk(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=j(n,"addExtensions",o);return r?[n,...this.flatten(r())]:n}).flat(10)}static sort(e){return e.sort((o,r)=>{const i=j(o,"priority")||100,s=j(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:du(n.name,this.schema)},r=j(n,"addCommands",o);return r?{...e,...r()}:e},{})}get plugins(){const{editor:e}=this,n=Mo.sort([...this.extensions].reverse()),o=[],r=[],i=n.map(s=>{const a={name:s.name,options:s.options,storage:s.storage,editor:e,type:du(s.name,this.schema)},l=[],u=j(s,"addKeyboardShortcuts",a);let c={};if(s.type==="mark"&&j(s,"exitable",a)&&(c.ArrowRight=()=>Lr.handleExit({editor:e,mark:s})),u){const y=Object.fromEntries(Object.entries(u()).map(([h,g])=>[h,()=>g({editor:e})]));c={...c,...y}}const m=Rv(c);l.push(m);const d=j(s,"addInputRules",a);ih(s,e.options.enableInputRules)&&d&&o.push(...d());const f=j(s,"addPasteRules",a);ih(s,e.options.enablePasteRules)&&f&&r.push(...f());const p=j(s,"addProseMirrorPlugins",a);if(p){const y=p();l.push(...y)}return l}).flat();return[ck({editor:e,rules:o}),...yk({editor:e,rules:r}),...i]}get attributes(){return th(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:n}=bs(this.extensions);return Object.fromEntries(n.filter(o=>!!j(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:ge(o.name,this.schema)},s=j(o,"addNodeView",i);if(!s)return[];const a=(l,u,c,m,d)=>{const f=cu(l,r);return s()({node:l,view:u,getPos:c,decorations:m,innerDecorations:d,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:du(e.name,this.schema)};e.type==="mark"&&(!((n=_(j(e,"keepOnSplit",o)))!==null&&n!==void 0)||n)&&this.splittableMarks.push(e.name);const r=j(e,"onBeforeCreate",o),i=j(e,"onCreate",o),s=j(e,"onUpdate",o),a=j(e,"onSelectionUpdate",o),l=j(e,"onTransaction",o),u=j(e,"onFocus",o),c=j(e,"onBlur",o),m=j(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),u&&this.editor.on("focus",u),c&&this.editor.on("blur",c),m&&this.editor.on("destroy",m)})}}class nt{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=_(j(this,"addOptions",{name:this.name}))),this.storage=_(j(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new nt(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Cs(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new nt({...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=_(j(n,"addOptions",{name:n.name})),n.storage=_(j(n,"addStorage",{name:n.name,options:n.options})),n}}function sh(t,e,n){const{from:o,to:r}=e,{blockSeparator:i=`
30
-
31
- `,textSerializers:s={}}=n||{};let a="";return t.nodesBetween(o,r,(l,u,c,m)=>{var d;l.isBlock&&u>o&&(a+=i);const f=s==null?void 0:s[l.type.name];if(f)return c&&(a+=f({node:l,pos:u,parent:c,index:m,range:e})),!1;l.isText&&(a+=(d=l==null?void 0:l.text)===null||d===void 0?void 0:d.slice(Math.max(o,u)-u,r-u))}),a}function ah(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const Sk=nt.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new He({key:new mt("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(c=>c.$from.pos)),a=Math.max(...i.map(c=>c.$to.pos)),l=ah(n);return sh(o,{from:s,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),vk=()=>({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),kk=(t=!1)=>({commands:e})=>e.setContent("",t),bk=()=>({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:u,mapping:c}=e,m=u.resolve(c.map(l)),d=u.resolve(c.map(l+a.nodeSize)),f=m.blockRange(d);if(!f)return;const p=wo(f);if(a.type.isTextblock){const{defaultType:y}=m.parent.contentMatchAt(m.index());e.setNodeMarkup(f.start,y)}(p||p===0)&&e.lift(f,p)})}),!0},xk=t=>e=>t(e),$k=()=>({state:t,dispatch:e})=>Jv(t,e),Ck=(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 B(o.doc.resolve(s-1))),!0},Ek=()=>({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},Nk=t=>({tr:e,state:n,dispatch:o})=>{const r=ge(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),u=i.after(s);e.delete(l,u).scrollIntoView()}return!0}return!1},Ok=t=>({tr:e,dispatch:n})=>{const{from:o,to:r}=t;return n&&e.delete(o,r),!0},Ak=()=>({state:t,dispatch:e})=>Dv(t,e),Rk=()=>({commands:t})=>t.keyboardShortcut("Enter"),Mk=()=>({state:t,dispatch:e})=>Uv(t,e);function Es(t,e,n={strict:!0}){const o=Object.keys(e);return o.length?o.every(r=>n.strict?e[r]===t[r]:mu(e[r])?e[r].test(t[r]):e[r]===t[r]):!0}function fu(t,e,n={}){return t.find(o=>o.type===e&&Es(o.attrs,n))}function Dk(t,e,n={}){return!!fu(t,e,n)}function pu(t,e,n={}){if(!t||!e)return;let o=t.parent.childAfter(t.parentOffset);if(t.parentOffset===o.offset&&o.offset!==0&&(o=t.parent.childBefore(t.parentOffset)),!o.node)return;const r=fu([...o.node.marks],e,n);if(!r)return;let i=o.index,s=t.start()+o.offset,a=i+1,l=s+o.node.nodeSize;for(fu([...o.node.marks],e,n);i>0&&r.isInSet(t.parent.child(i-1).marks);)i-=1,s-=t.parent.child(i).nodeSize;for(;a<t.parent.childCount&&Dk([...t.parent.child(a).marks],e,n);)l+=t.parent.child(a).nodeSize,a+=1;return{from:s,to:l}}function sn(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 Tk=(t,e={})=>({tr:n,state:o,dispatch:r})=>{const i=sn(t,o.schema),{doc:s,selection:a}=n,{$from:l,from:u,to:c}=a;if(r){const m=pu(l,i,e);if(m&&m.from<=u&&m.to>=c){const d=B.create(s,m.from,m.to);n.setSelection(d)}}return!0},jk=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 lh(t){return t instanceof B}function _n(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function uh(t,e=null){if(!e)return null;const n=U.atStart(t),o=U.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return o;const r=n.from,i=o.to;return e==="all"?B.create(t,_n(0,r,i),_n(t.content.size,r,i)):B.create(t,_n(e,r,i),_n(e,r,i))}function hu(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const Pk=(t=null,e={})=>({editor:n,view:o,tr:r,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{hu()&&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&&!lh(n.state.selection))return s(),!0;const a=uh(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},Ik=(t,e)=>n=>t.every((o,r)=>e(o,{...n,index:r})),Lk=(t,e)=>({tr:n,commands:o})=>o.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),ch=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&&ch(o)}return t};function Ns(t){const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return ch(n)}function Os(t,e,n){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 N.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),Os("",e,n)}if(r){if(n.errorOnInvalidContent){let s=!1,a="";const l=new nf({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:u=>(s=!0,a=typeof u=="string"?u:u.outerHTML,null)}]}})});if(n.slice?Yt.fromSchema(l).parseSlice(Ns(t),n.parseOptions):Yt.fromSchema(l).parse(Ns(t),n.parseOptions),n.errorOnInvalidContent&&s)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${a}`)})}const i=Yt.fromSchema(e);return n.slice?i.parseSlice(Ns(t),n.parseOptions).content:i.parse(Ns(t),n.parseOptions)}return Os("",e,n)}function zk(t,e,n){const o=t.steps.length-1;if(o<e)return;const r=t.steps[o];if(!(r instanceof pe||r instanceof he))return;const i=t.mapping.maps[o];let s=0;i.forEach((a,l,u,c)=>{s===0&&(s=c)}),t.setSelection(U.near(t.doc.resolve(s),n))}const Fk=t=>!("type"in t),Bk=(t,e,n)=>({tr:o,dispatch:r,editor:i})=>{var s;if(r){n={parseOptions:{},updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let a;try{a=Os(e,i.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions},errorOnInvalidContent:(s=n.errorOnInvalidContent)!==null&&s!==void 0?s:i.options.enableContentCheck})}catch(p){return i.emit("contentError",{editor:i,error:p,disableCollaboration:()=>{console.error("[tiptap error]: Unable to disable collaboration at this point in time")}}),!1}let{from:l,to:u}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},c=!0,m=!0;if((Fk(a)?a:[a]).forEach(p=>{p.check(),c=c?p.isText&&p.marks.length===0:!1,m=m?p.isBlock:!1}),l===u&&m){const{parent:p}=o.doc.resolve(l);p.isTextblock&&!p.type.spec.code&&!p.childCount&&(l-=1,u+=1)}let f;c?(Array.isArray(e)?f=e.map(p=>p.text||"").join(""):typeof e=="object"&&e&&e.text?f=e.text:f=e,o.insertText(f,l,u)):(f=a,o.replaceWith(l,u,f)),n.updateSelection&&zk(o,o.steps.length-1,-1),n.applyInputRules&&o.setMeta("applyInputRules",{from:l,text:f}),n.applyPasteRules&&o.setMeta("applyPasteRules",{from:l,text:f})}return!0},Hk=()=>({state:t,dispatch:e})=>Fv(t,e),Vk=()=>({state:t,dispatch:e})=>Bv(t,e),Uk=()=>({state:t,dispatch:e})=>Tv(t,e),Jk=()=>({state:t,dispatch:e})=>Lv(t,e),_k=()=>({state:t,dispatch:e,tr:n})=>{try{const o=as(t.doc,t.selection.$from.pos,-1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},Yk=()=>({state:t,dispatch:e,tr:n})=>{try{const o=as(t.doc,t.selection.$from.pos,1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},Kk=()=>({state:t,dispatch:e})=>jv(t,e),Wk=()=>({state:t,dispatch:e})=>Pv(t,e);function dh(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function qk(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))hu()||dh()?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 Gk=t=>({editor:e,view:n,tr:o,dispatch:r})=>{const i=qk(t).split(/-(?!$)/),s=i.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),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",u=>u(n,a))});return l==null||l.steps.forEach(u=>{const c=u.map(o.mapping);c&&r&&o.maybeStep(c)}),!0};function zr(t,e,n={}){const{from:o,to:r,empty:i}=t.selection,s=e?ge(e,t.schema):null,a=[];t.doc.nodesBetween(o,r,(m,d)=>{if(m.isText)return;const f=Math.max(o,d),p=Math.min(r,d+m.nodeSize);a.push({node:m,from:f,to:p})});const l=r-o,u=a.filter(m=>s?s.name===m.node.type.name:!0).filter(m=>Es(m.node.attrs,n,{strict:!1}));return i?!!u.length:u.reduce((m,d)=>m+d.to-d.from,0)>=l}const Qk=(t,e={})=>({state:n,dispatch:o})=>{const r=ge(t,n.schema);return zr(n,r,e)?Hv(n,o):!1},Zk=()=>({state:t,dispatch:e})=>_v(t,e),Xk=t=>({state:e,dispatch:n})=>{const o=ge(t,e.schema);return Xv(o)(e,n)},eb=()=>({state:t,dispatch:e})=>Vv(t,e);function As(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function mh(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 tb=(t,e)=>({tr:n,state:o,dispatch:r})=>{let i=null,s=null;const a=As(typeof t=="string"?t:t.name,o.schema);return a?(a==="node"&&(i=ge(t,o.schema)),a==="mark"&&(s=sn(t,o.schema)),r&&n.selection.ranges.forEach(l=>{o.doc.nodesBetween(l.$from.pos,l.$to.pos,(u,c)=>{i&&i===u.type&&n.setNodeMarkup(c,void 0,mh(u.attrs,e)),s&&u.marks.length&&u.marks.forEach(m=>{s===m.type&&n.addMark(c,c+u.nodeSize,s.create(mh(m.attrs,e)))})})}),!0):!1},nb=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),ob=()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),rb=()=>({state:t,dispatch:e})=>Iv(t,e),ib=()=>({state:t,dispatch:e})=>zv(t,e),sb=()=>({state:t,dispatch:e})=>Yv(t,e),ab=()=>({state:t,dispatch:e})=>qv(t,e),lb=()=>({state:t,dispatch:e})=>Wv(t,e);function gu(t,e,n={},o={}){return Os(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:o.errorOnInvalidContent})}const ub=(t,e=!1,n={},o={})=>({editor:r,tr:i,dispatch:s,commands:a})=>{var l,u;const{doc:c}=i;if(n.preserveWhitespace!=="full"){const m=gu(t,r.schema,n,{errorOnInvalidContent:(l=o.errorOnInvalidContent)!==null&&l!==void 0?l:r.options.enableContentCheck});return s&&i.replaceWith(0,c.content.size,m).setMeta("preventUpdate",!e),!0}return s&&i.setMeta("preventUpdate",!e),a.insertContentAt({from:0,to:c.content.size},t,{parseOptions:n,errorOnInvalidContent:(u=o.errorOnInvalidContent)!==null&&u!==void 0?u:r.options.enableContentCheck})};function fh(t,e){const n=sn(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 cb(t,e){const n=new Ef(t);return e.forEach(o=>{o.steps.forEach(r=>{n.step(r)})}),n}function db(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 mb(t,e,n){const o=[];return t.nodesBetween(e.from,e.to,(r,i)=>{n(r)&&o.push({node:r,pos:i})}),o}function fb(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 yu(t){return e=>fb(e.$from,t)}function pb(t,e){const n=Ln.fromSchema(e).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}function hb(t,e){const n={from:0,to:t.content.size};return sh(t,n,e)}function gb(t,e){const n=ge(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 ph(t,e){const n=As(typeof e=="string"?e:e.name,t.schema);return n==="node"?gb(t,e):n==="mark"?fh(t,e):{}}function yb(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 wb(t){const e=yb(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 Sb(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 u=e.slice(i).map(a,-1),c=e.slice(i).map(l),m=e.invert().map(u,-1),d=e.invert().map(c);o.push({oldRange:{from:m,to:d},newRange:{from:u,to:c}})})}),wb(o)}function hh(t,e,n){const o=[];return t===e?n.resolve(t).marks().forEach(r=>{const i=n.resolve(t),s=pu(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 Rs(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?sn(e,t.schema):null;if(o)return!!(t.storedMarks||t.selection.$from.marks()).filter(m=>i?i.name===m.type.name:!0).find(m=>Es(m.attrs,n,{strict:!1}));let s=0;const a=[];if(r.forEach(({$from:m,$to:d})=>{const f=m.pos,p=d.pos;t.doc.nodesBetween(f,p,(y,h)=>{if(!y.isText&&!y.marks.length)return;const g=Math.max(f,h),w=Math.min(p,h+y.nodeSize),v=w-g;s+=v,a.push(...y.marks.map(b=>({mark:b,from:g,to:w})))})}),s===0)return!1;const l=a.filter(m=>i?i.name===m.mark.type.name:!0).filter(m=>Es(m.mark.attrs,n,{strict:!1})).reduce((m,d)=>m+d.to-d.from,0),u=a.filter(m=>i?m.mark.type!==i&&m.mark.type.excludes(i):!0).reduce((m,d)=>m+d.to-d.from,0);return(l>0?l+u:l)>=s}function vb(t,e,n={}){if(!e)return zr(t,null,n)||wu(t,null,n);const o=As(e,t.schema);return o==="node"?zr(t,e,n):o==="mark"?wu(t,e,n):!1}function gh(t,e){const{nodeExtensions:n}=bs(e),o=n.find(s=>s.name===t);if(!o)return!1;const r={name:o.name,options:o.options,storage:o.storage},i=_(j(o,"group",r));return typeof i!="string"?!1:i.split(" ").includes("list")}function Ms(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&&(Ms(i,{ignoreWhitespace:n,checkChildren:e})||(r=!1))}),r}return!1}function kb(t,e,n){var o;const{selection:r}=e;let i=null;if(lh(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 u=a.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(a.pos,l.pos,(c,m,d)=>{if(u)return!1;if(c.isInline){const f=!d||d.type.allowsMarkType(n),p=!!n.isInSet(c.marks)||!c.marks.some(y=>y.type.excludes(n));u=f&&p}return!u}),u})}const bb=(t,e={})=>({tr:n,state:o,dispatch:r})=>{const{selection:i}=n,{empty:s,ranges:a}=i,l=sn(t,o.schema);if(r)if(s){const u=fh(o,l);n.addStoredMark(l.create({...u,...e}))}else a.forEach(u=>{const c=u.$from.pos,m=u.$to.pos;o.doc.nodesBetween(c,m,(d,f)=>{const p=Math.max(f,c),y=Math.min(f+d.nodeSize,m);d.marks.find(g=>g.type===l)?d.marks.forEach(g=>{l===g.type&&n.addMark(p,y,l.create({...g.attrs,...e}))}):n.addMark(p,y,l.create(e))})});return kb(o,n,l)},xb=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),$b=(t,e={})=>({state:n,dispatch:o,chain:r})=>{const i=ge(t,n.schema);return i.isTextblock?r().command(({commands:s})=>eh(i,e)(n)?!0:s.clearNodes()).command(({state:s})=>eh(i,e)(s,o)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},Cb=t=>({tr:e,dispatch:n})=>{if(n){const{doc:o}=e,r=_n(t,0,o.content.size),i=L.create(o,r);e.setSelection(i)}return!0},Eb=t=>({tr:e,dispatch:n})=>{if(n){const{doc:o}=e,{from:r,to:i}=typeof t=="number"?{from:t,to:t}:t,s=B.atStart(o).from,a=B.atEnd(o).to,l=_n(r,s,a),u=_n(i,s,a),c=B.create(o,l,u);e.setSelection(c)}return!0},Nb=t=>({state:e,dispatch:n})=>{const o=ge(t,e.schema);return nk(o)(e,n)};function yh(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 Ob=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:o,editor:r})=>{const{selection:i,doc:s}=e,{$from:a,$to:l}=i,u=r.extensionManager.attributes,c=Rs(u,a.node().type.name,a.node().attrs);if(i instanceof L&&i.node.isBlock)return!a.parentOffset||!So(s,a.pos)?!1:(o&&(t&&yh(n,r.extensionManager.splittableMarks),e.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;const m=l.parentOffset===l.parent.content.size,d=a.depth===0?void 0:db(a.node(-1).contentMatchAt(a.indexAfter(-1)));let f=m&&d?[{type:d,attrs:c}]:void 0,p=So(e.doc,e.mapping.map(a.pos),1,f);if(!f&&!p&&So(e.doc,e.mapping.map(a.pos),1,d?[{type:d}]:void 0)&&(p=!0,f=d?[{type:d,attrs:c}]:void 0),o){if(p&&(i instanceof B&&e.deleteSelection(),e.split(e.mapping.map(a.pos),1,f),d&&!m&&!a.parentOffset&&a.parent.type!==d)){const y=e.mapping.map(a.before()),h=e.doc.resolve(y);a.node(-1).canReplaceWith(h.index(),h.index()+1,d)&&e.setNodeMarkup(e.mapping.map(a.before()),d)}t&&yh(n,r.extensionManager.splittableMarks),e.scrollIntoView()}return p},Ab=(t,e={})=>({tr:n,state:o,dispatch:r,editor:i})=>{var s;const a=ge(t,o.schema),{$from:l,$to:u}=o.selection,c=o.selection.node;if(c&&c.isBlock||l.depth<2||!l.sameParent(u))return!1;const m=l.node(-1);if(m.type!==a)return!1;const d=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 g=N.empty;const w=l.index(-1)?1:l.index(-2)?2:3;for(let R=l.depth-w;R>=l.depth-3;R-=1)g=N.from(l.node(R).copy(g));const v=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,b={...Rs(d,l.node().type.name,l.node().attrs),...e},E=((s=a.contentMatch.defaultType)===null||s===void 0?void 0:s.createAndFill(b))||void 0;g=g.append(N.from(a.createAndFill(null,E)||void 0));const k=l.before(l.depth-(w-1));n.replace(k,l.after(-v),new D(g,4-w,0));let $=-1;n.doc.nodesBetween(k,n.doc.content.size,(R,C)=>{if($>-1)return!1;R.isTextblock&&R.content.size===0&&($=C+1)}),$>-1&&n.setSelection(B.near(n.doc.resolve($))),n.scrollIntoView()}return!0}const f=u.pos===l.end()?m.contentMatchAt(0).defaultType:null,p={...Rs(d,m.type.name,m.attrs),...e},y={...Rs(d,l.node().type.name,l.node().attrs),...e};n.delete(l.pos,u.pos);const h=f?[{type:a,attrs:p},{type:f,attrs:y}]:[{type:a,attrs:p}];if(!So(n.doc,l.pos,2))return!1;if(r){const{selection:g,storedMarks:w}=o,{splittableMarks:v}=i.extensionManager,b=w||g.$to.parentOffset&&g.$from.marks();if(n.split(l.pos,2,h).scrollIntoView(),!b||!r)return!0;const E=b.filter(k=>v.includes(k.type.name));n.ensureMarks(E)}return!0},Su=(t,e)=>{const n=yu(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)&&qt(t.doc,n.pos)&&t.join(n.pos),!0},vu=(t,e)=>{const n=yu(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)&&qt(t.doc,o)&&t.join(o),!0};var Rb=Object.freeze({__proto__:null,blur:vk,clearContent:kk,clearNodes:bk,command:xk,createParagraphNear:$k,cut:Ck,deleteCurrentNode:Ek,deleteNode:Nk,deleteRange:Ok,deleteSelection:Ak,enter:Rk,exitCode:Mk,extendMarkRange:Tk,first:jk,focus:Pk,forEach:Ik,insertContent:Lk,insertContentAt:Bk,joinBackward:Uk,joinDown:Vk,joinForward:Jk,joinItemBackward:_k,joinItemForward:Yk,joinTextblockBackward:Kk,joinTextblockForward:Wk,joinUp:Hk,keyboardShortcut:Gk,lift:Qk,liftEmptyBlock:Zk,liftListItem:Xk,newlineInCode:eb,resetAttributes:tb,scrollIntoView:nb,selectAll:ob,selectNodeBackward:rb,selectNodeForward:ib,selectParentNode:sb,selectTextblockEnd:ab,selectTextblockStart:lb,setContent:ub,setMark:bb,setMeta:xb,setNode:$b,setNodeSelection:Cb,setTextSelection:Eb,sinkListItem:Nb,splitBlock:Ob,splitListItem:Ab,toggleList:(t,e,n,o={})=>({editor:r,tr:i,state:s,dispatch:a,chain:l,commands:u,can:c})=>{const{extensions:m,splittableMarks:d}=r.extensionManager,f=ge(t,s.schema),p=ge(e,s.schema),{selection:y,storedMarks:h}=s,{$from:g,$to:w}=y,v=g.blockRange(w),b=h||y.$to.parentOffset&&y.$from.marks();if(!v)return!1;const E=yu(k=>gh(k.type.name,m))(y);if(v.depth>=1&&E&&v.depth-E.depth<=1){if(E.node.type===f)return u.liftListItem(p);if(gh(E.node.type.name,m)&&f.validContent(E.node.content)&&a)return l().command(()=>(i.setNodeMarkup(E.pos,f),!0)).command(()=>Su(i,f)).command(()=>vu(i,f)).run()}return!n||!b||!a?l().command(()=>c().wrapInList(f,o)?!0:u.clearNodes()).wrapInList(f,o).command(()=>Su(i,f)).command(()=>vu(i,f)).run():l().command(()=>{const k=c().wrapInList(f,o),$=b.filter(R=>d.includes(R.type.name));return i.ensureMarks($),k?!0:u.clearNodes()}).wrapInList(f,o).command(()=>Su(i,f)).command(()=>vu(i,f)).run()},toggleMark:(t,e={},n={})=>({state:o,commands:r})=>{const{extendEmptyMarkRange:i=!1}=n,s=sn(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=ge(t,o.schema),s=ge(e,o.schema),a=zr(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=ge(t,n.schema);return zr(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=sn(t,o.schema),{$from:u,empty:c,ranges:m}=a;if(!r)return!0;if(c&&s){let{from:d,to:f}=a;const p=(i=u.marks().find(h=>h.type===l))===null||i===void 0?void 0:i.attrs,y=pu(u,l,p);y&&(d=y.from,f=y.to),n.removeMark(d,f,l)}else m.forEach(d=>{n.removeMark(d.$from.pos,d.$to.pos,l)});return n.removeStoredMark(l),!0},updateAttributes:(t,e={})=>({tr:n,state:o,dispatch:r})=>{let i=null,s=null;const a=As(typeof t=="string"?t:t.name,o.schema);return a?(a==="node"&&(i=ge(t,o.schema)),a==="mark"&&(s=sn(t,o.schema)),r&&n.selection.ranges.forEach(l=>{const u=l.$from.pos,c=l.$to.pos;o.doc.nodesBetween(u,c,(m,d)=>{i&&i===m.type&&n.setNodeMarkup(d,void 0,{...m.attrs,...e}),s&&m.marks.length&&m.marks.forEach(f=>{if(s===f.type){const p=Math.max(d,u),y=Math.min(d+m.nodeSize,c);n.addMark(p,y,s.create({...f.attrs,...e}))}})})}),!0):!1},wrapIn:(t,e={})=>({state:n,dispatch:o})=>{const r=ge(t,n.schema);return Gv(r,e)(n,o)},wrapInList:(t,e={})=>({state:n,dispatch:o})=>{const r=ge(t,n.schema);return Qv(r,e)(n,o)}});const Mb=nt.create({name:"commands",addCommands(){return{...Rb}}}),Db=nt.create({name:"drop",addProseMirrorPlugins(){return[new He({key:new mt("tiptapDrop"),props:{handleDrop:(t,e,n,o)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:o})}}})]}}),Tb=nt.create({name:"editable",addProseMirrorPlugins(){return[new He({key:new mt("editable"),props:{editable:()=>this.editor.options.editable}})]}}),jb=nt.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new He({key:new mt("focusEvents"),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}}}})]}}),Pb=nt.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{const{selection:l,doc:u}=a,{empty:c,$anchor:m}=l,{pos:d,parent:f}=m,p=m.parent.isTextblock&&d>0?a.doc.resolve(d-1):m,y=p.parent.type.spec.isolating,h=m.pos-m.parentOffset,g=y&&p.parent.childCount===1?h===m.pos:U.atStart(u).from===d;return!c||!f.type.isTextblock||f.textContent.length||!g||g&&m.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 hu()||dh()?i:r},addProseMirrorPlugins(){return[new He({key:new mt("clearDocument"),appendTransaction:(t,e,n)=>{const o=t.some(y=>y.docChanged)&&!e.doc.eq(n.doc),r=t.some(y=>y.getMeta("preventClearDocument"));if(!o||r)return;const{empty:i,from:s,to:a}=e.selection,l=U.atStart(e.doc).from,u=U.atEnd(e.doc).to;if(i||!(s===l&&a===u)||!Ms(n.doc))return;const d=n.tr,f=vs({state:n,transaction:d}),{commands:p}=new ks({editor:this.editor,state:f});if(p.clearNodes(),!!d.steps.length)return d}})]}}),Ib=nt.create({name:"paste",addProseMirrorPlugins(){return[new He({key:new mt("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),Lb=nt.create({name:"tabindex",addProseMirrorPlugins(){return[new He({key:new mt("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class Yn{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 Yn(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 Yn(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 Yn(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,o)=>{const r=n.isBlock&&!n.isTextblock,i=this.pos+o+1,s=this.resolvedPos.doc.resolve(i);if(!r&&s.depth<=this.depth)return;const a=new Yn(s,this.editor,r,r?n:null);r&&(a.actualDepth=this.depth+1),e.push(new Yn(s,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 n=this.editor.state.selection;this.editor.chain().setTextSelection(this.from).updateAttributes(this.node.type.name,e).setTextSelection(n.from).run()}}const zb=`.ProseMirror {
19
+ */var A1=x,Nm=60103;if(wr.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Om=Symbol.for;Nm=Om("react.element"),wr.Fragment=Om("react.fragment")}var R1=A1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,M1=Object.prototype.hasOwnProperty,D1={key:!0,ref:!0,__self:!0,__source:!0};function Am(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)M1.call(e,o)&&!D1.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:Nm,type:t,key:i,ref:s,props:r,_owner:R1.current}}wr.jsx=Am,wr.jsxs=Am,Yt.exports=wr;var S=Yt.exports;const T1=({adminUrl:t,onLoad:e})=>{const n={display:"none"};return S.jsx("iframe",{"data-frame":"admin-auth",src:t+"auth-frame/",style:n,title:"auth-frame",onLoad:e})};var j1=function(t){return t instanceof RegExp},P1=function(e){var n=/[\\^$.*+?()[\]{}|]/g,o=RegExp(n.source);return e&&o.test(e)?e.replace(n,"\\$&"):e},Rm=function(t){return typeof t=="string"},I1=function(t){var e=[];return t.forEach(function(n){Array.isArray(n)?e=e.concat(n):e.push(n)}),e};function L1(t,e,n){var o=0,r=0;if(t==="")return t;if(!t||!Rm(t))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var i=e;j1(i)||(i=new RegExp("("+P1(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 z1=function(e,n,o){return Array.isArray(e)||(e=[e]),I1(e.map(function(r){return Rm(r)?L1(r,n,o):r}))};const Mm=Ze(z1),$l=V.createContext({});$l.Provider;const U=()=>x.useContext($l),Dm=()=>{try{return U().labs||{}}catch{return{}}},F1=({isFirst:t,isPaid:e})=>{const{accentColor:n,commentCount:o,publication:r,member:i,t:s}=U(),a={backgroundColor:n},l={color:n},u=s(t?"Start the conversation":"Join the discussion"),c=()=>{window.location.href=e&&i?"#/portal/account/plans":"#/portal/signup"},m=()=>{window.location.href="#/portal/signin"},d=Mm(s(e?"Become a paid member of {{publication}} to start commenting.":"Become a member of {{publication}} to start commenting."),"{{publication}}",()=>S.jsx("span",{className:"font-semibold",children:r}));return S.jsxs("section",{className:`flex flex-col items-center pt-[40px] ${i?"pb-[32px]":"pb-[48px]"} ${!t&&"mt-4"} ${!i&&o?"border-t":"border-none"} border-[rgba(0,0,0,0.075)] sm:px-8 dark:border-[rgba(255,255,255,0.1)]`,"data-testid":"cta-box",children:[S.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:u}),S.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:d}),S.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:c,children:s(e&&i?"Upgrade now":"Sign up now")}),!i&&S.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:[S.jsx("span",{className:"mr-1 inline-block text-[15px]",children:s("Already a member?")}),S.jsx("button",{className:"rounded-md text-sm font-semibold transition-all hover:opacity-90","data-testid":"signin-button",style:l,type:"button",onClick:m,children:s("Sign in")})]})]})},Tm=t=>x.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M7 9.5C7 10.1566 7.12933 10.8068 7.3806 11.4134C7.63188 12.02 8.00017 12.5712 8.46447 13.0355C8.92876 13.4998 9.47995 13.8681 10.0866 14.1194C10.6932 14.3707 11.3434 14.5 12 14.5C12.6566 14.5 13.3068 14.3707 13.9134 14.1194C14.52 13.8681 15.0712 13.4998 15.5355 13.0355C15.9998 12.5712 16.3681 12.02 16.6194 11.4134C16.8707 10.8068 17 10.1566 17 9.5C17 8.84339 16.8707 8.19321 16.6194 7.58658C16.3681 6.97995 15.9998 6.42876 15.5355 5.96447C15.0712 5.50017 14.52 5.13188 13.9134 4.8806C13.3068 4.62933 12.6566 4.5 12 4.5C11.3434 4.5 10.6932 4.62933 10.0866 4.8806C9.47995 5.13188 8.92876 5.50017 8.46447 5.96447C8.00017 6.42876 7.63188 6.97995 7.3806 7.58658C7.12933 8.19321 7 8.84339 7 9.5V9.5Z",stroke:"white",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("circle",{cx:12,cy:12,r:11.375,stroke:"white",strokeWidth:1.25}),x.createElement("path",{d:"M19.5 20C19.092 19.6069 18.4941 19.2498 17.7403 18.9489C16.9864 18.6481 16.0915 18.4094 15.1066 18.2466C14.1217 18.0838 13.0661 18 12 18C10.9339 18 9.87831 18.0838 8.8934 18.2466C7.90848 18.4094 7.01357 18.6481 6.25975 18.9489C5.50593 19.2498 4.90796 19.6069 4.5 20",stroke:"white",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"}));function Wi(t){return t!==0&&!t?"":t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function B1(t,e){const n=new Date(t),o=new Date;let r=Math.round((o.getTime()-n.getTime())/1e3);if(r<5)return e("Just now");if(r<60)return e("{{amount}} seconds ago",{amount:r});if(r=r/60,r<60)return Math.floor(r)===1?e("One min ago"):e("{{amount}} mins ago",{amount:Math.floor(r)});const i=new Date(o.getFullYear(),o.getMonth(),o.getDate()-1);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()&&n.getDate()===i.getDate()?e("Yesterday"):(r=r/60,r<24?Math.floor(r)===1?e("One hour ago"):e("{{amount}} hrs ago",{amount:Math.floor(r)}):(r=r/24,r<7?Math.floor(r)===1?e("One day ago"):e("{{amount}} days ago",{amount:Math.floor(r)}):(r=r/7,r<4?Math.floor(r)===1?e("One week ago"):e("{{amount}} weeks ago",{amount:Math.floor(r)}):(r=r*7/30,r<12?Math.floor(r)===1?e("One month ago"):e("{{amount}} months ago",{amount:Math.floor(r)}):(r=r*30/365,Math.floor(r)===1?e("One year ago"):e("{{amount}} years ago",{amount:Math.floor(r)}))))))}function H1(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 jm(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 Pm(t,e){return t?t.name?t.name:e("Anonymous"):e("Deleted member")}function V1(t,e){return Pm(t.member,e)}function U1(t,e){return jm(Pm(t.member,e))}function Im(){return Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<480}function J1(t){return t.status==="published"}const _1=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},Lm=t=>{const e=t.offsetHeight,n=_1(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 zm(){return"w-8 h-8"}const Y1=()=>{const t=zm();return S.jsx("figure",{className:`relative ${t}`,children:S.jsx("div",{className:`flex items-center justify-center rounded-full bg-[rgba(0,0,0,0.085)] dark:bg-[rgba(255,255,255,0.15)] ${t}`,children:S.jsx(Tm,{className:"stroke-white opacity-80"})})})},Fm=({comment:t})=>{var y;const{member:e,avatarSaturation:n,t:o}=U(),r=zm(),i=(e==null?void 0:e.name)??((y=t==null?void 0:t.member)==null?void 0:y.name),s=h=>{let g=0;for(let w=0;w<h.length;w++)g=h.charCodeAt(w)+((g<<5)-g);return g=Math.abs(g),g},a=(h,g,w)=>Math.floor(h%(w-g)+g),l=()=>{const h=t?t.member:e;if(!h||!h.name)return[0,0,10];const g=n===void 0||isNaN(n)?50:n,w=[0,360],v=Math.round(g/(100/30))+30,E=[v-20,v],b=s(h.name),$=a(b,w[0],w[1]),R=a(b,E[0],E[1]);return[$,g,R]},u=h=>`hsl(${h[0]}, ${h[1]}%, ${h[2]}%)`,c=t&&U1(t,o)||e&&jm(e.name||"")||"",m=t?t.member:e,f={background:u(l())},p=S.jsxs(S.Fragment,{children:[i?S.jsx("div",{className:`flex items-center justify-center rounded-full ${r}`,"data-testid":"avatar-background",style:f,children:S.jsx("p",{className:"font-sans text-base font-semibold text-white",children:c})}):S.jsx("div",{className:`flex items-center justify-center rounded-full bg-neutral-900 dark:bg-[rgba(255,255,255,0.7)] ${r}`,"data-testid":"avatar-background",children:S.jsx(Tm,{className:"stroke-white dark:stroke-[rgba(0,0,0,0.6)]"})}),m&&S.jsx("img",{alt:"Avatar",className:`absolute left-0 top-0 rounded-full ${r}`,src:m.avatar_image})]});return S.jsx("figure",{className:`relative ${r}`,children:p})},K1=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 ke(t){this.content=t}ke.prototype={constructor:ke,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 ke(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 ke(n)},addToStart:function(t,e){return new ke([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new ke(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 ke(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=ke.from(t),t.size?new ke(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=ke.from(t),t.size?new ke(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=ke.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}},ke.from=function(t){if(t instanceof ke)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new ke(e)};function Bm(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=Bm(r.content,i.content,n+1);if(s!=null)return s}n+=r.nodeSize}}function Hm(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 u=0,c=Math.min(s.text.length,a.text.length);for(;u<c&&s.text[s.text.length-u-1]==a.text[a.text.length-u-1];)u++,n--,o--;return{a:n,b:o}}if(s.content.size||a.content.size){let u=Hm(s.content,a.content,n-1,o-1);if(u)return u}n-=l,o-=l}}class N{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],u=a+l.nodeSize;if(u>e&&o(l,r+a,i||null,s)!==!1&&l.content.size){let c=a+1;l.nodesBetween(Math.max(0,e-c),Math.min(l.content.size,n-c),o,r+c)}a=u}}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 u=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&&u||a.isTextblock)&&o&&(s?s=!1:i+=o),i+=u},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 N(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 N(o,r)}cutByIndex(e,n){return e==n?N.empty:e==0&&n==this.content.length?this:new N(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 N(r,i)}addToStart(e){return new N([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new N(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 Bm(this,e,n)}findDiffEnd(e,n=this.size,o=e.size){return Hm(this,e,n,o)}findIndex(e,n=-1){if(e==0)return qi(0,e);if(e==this.size)return qi(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let o=0,r=0;;o++){let i=this.child(o),s=r+i.nodeSize;if(s>=e)return s==e||n>0?qi(o+1,s):qi(o,r);r=s}}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 N.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new N(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return N.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 N(n||e,o)}static from(e){if(!e)return N.empty;if(e instanceof N)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new N([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}N.empty=new N([],0);const Cl={index:0,offset:0};function qi(t,e){return Cl.index=t,Cl.offset=e,Cl}function Gi(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(!Gi(t[o],e[o]))return!1}else{for(let o in t)if(!(o in e)||!Gi(t[o],e[o]))return!1;for(let o in e)if(!(o in t))return!1}return!0}let q=class sm{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&&Gi(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 sm.none;if(e instanceof sm)return[e];let n=e.slice();return n.sort((o,r)=>o.type.rank-r.type.rank),n}};q.none=[];class Qi extends Error{}class D{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=Um(this.content,e+this.openStart,n);return o&&new D(o,this.openStart,this.openEnd)}removeBetween(e,n){return new D(Vm(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 D.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 D(N.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 D(e,o,r)}}D.empty=new D(N.empty,0,0);function Vm(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(Vm(i.content,e-r-1,n-r-1)))}function Um(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=Um(s.content,e-i-1,n);return a&&t.replaceChild(r,s.copy(a))}function W1(t,e,n){if(n.openStart>t.depth)throw new Qi("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new Qi("Inconsistent open depths");return Jm(t,e,n,0)}function Jm(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=Jm(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 Pn(s,a.cut(0,t.parentOffset).append(n.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=q1(n,t);return Pn(i,Ym(t,s,a,e,o))}else return Pn(i,Zi(t,e,o))}function _m(t,e){if(!e.type.compatibleContent(t.type))throw new Qi("Cannot join "+e.type.name+" onto "+t.type.name)}function El(t,e,n){let o=t.node(n);return _m(o,e.node(n)),o}function jn(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 vr(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&&(jn(t.nodeAfter,o),i++));for(let a=i;a<s;a++)jn(r.child(a),o);e&&e.depth==n&&e.textOffset&&jn(e.nodeBefore,o)}function Pn(t,e){return t.type.checkContent(e),t.copy(e)}function Ym(t,e,n,o,r){let i=t.depth>r&&El(t,e,r+1),s=o.depth>r&&El(n,o,r+1),a=[];return vr(null,t,r,a),i&&s&&e.index(r)==n.index(r)?(_m(i,s),jn(Pn(i,Ym(t,e,n,o,r+1)),a)):(i&&jn(Pn(i,Zi(t,e,r+1)),a),vr(e,n,r,a),s&&jn(Pn(s,Zi(n,o,r+1)),a)),vr(o,null,r,a),new N(a)}function Zi(t,e,n){let o=[];if(vr(null,t,n,o),t.depth>n){let r=El(t,e,n+1);jn(Pn(r,Zi(t,e,n+1)),o)}return vr(e,null,n,o),new N(o)}function q1(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(N.from(r));return{start:r.resolveNoCache(t.openStart+n),end:r.resolveNoCache(r.content.size-t.openEnd-n)}}class br{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 q.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 Xi(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),u=i-l;if(o.push(s,a,r+l),!u||(s=s.child(a),s.isText))break;i=u-1,r+=l+1}return new br(n,o,i)}static resolveCached(e,n){let o=Km.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 Km.set(e,o=new G1);let r=o.elts[o.i]=br.resolve(e,n);return o.i=(o.i+1)%Q1,r}}class G1{constructor(){this.elts=[],this.i=0}}const Q1=12,Km=new WeakMap;class Xi{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 Z1=Object.create(null);let In=class am{constructor(e,n,o,r=q.none){this.type=e,this.attrs=n,this.marks=r,this.content=o||N.empty}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&&Gi(this.attrs,n||e.defaultAttrs||Z1)&&q.sameSet(this.marks,o||q.none)}copy(e=null){return e==this.content?this:new am(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new am(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 D.empty;let r=this.resolve(e),i=this.resolve(n),s=o?0:r.sharedDepth(n),a=r.start(s),u=r.node(s).content.cut(r.pos-a,i.pos-a);return new D(u,r.depth-s,i.depth-s)}replace(e,n,o){return W1(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 br.resolveCached(this,e)}resolveNoCache(e){return br.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()+")"),Wm(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=N.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=q.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(!q.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=N.fromJSON(e,n.content),i=e.nodeType(n.type).create(n.attrs,r,o);return i.type.checkAttrs(i.attrs),i}};In.prototype.text=void 0;class es extends In{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):Wm(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 Wm(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Ln{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let o=new X1(e,n);if(o.next==null)return Ln.empty;let r=qm(o);o.next&&o.err("Unexpected trailing text");let i=sw(iw(r));return aw(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 N.from(a.map(u=>u.createAndFill()));for(let u=0;u<s.next.length;u++){let{type:c,next:m}=s.next[u];if(!(c.isText||c.hasRequiredAttrs())&&r.indexOf(m)==-1){r.push(m);let d=i(m,a.concat(c));if(d)return d}}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(`
20
+ `)}}Ln.empty=new Ln(!0);class X1{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 qm(t){let e=[];do e.push(ew(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function ew(t){let e=[];do e.push(tw(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function tw(t){let e=rw(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=nw(t,e);else break;return e}function Gm(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function nw(t,e){let n=Gm(t),o=n;return t.eat(",")&&(t.next!="}"?o=Gm(t):o=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:o,expr:e}}function ow(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.groups.indexOf(e)>-1&&r.push(s)}return r.length==0&&t.err("No node type or group '"+e+"' found"),r}function rw(t){if(t.eat("(")){let e=qm(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=ow(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 iw(t){let e=[[]];return r(i(t,0),n()),e;function n(){return e.push([])-1}function o(s,a,l){let u={term:l,to:a};return e[s].push(u),u}function r(s,a){s.forEach(l=>l.to=a)}function i(s,a){if(s.type=="choice")return s.exprs.reduce((l,u)=>l.concat(i(u,a)),[]);if(s.type=="seq")for(let l=0;;l++){let u=i(s.exprs[l],a);if(l==s.exprs.length-1)return u;r(u,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 u=0;u<s.min;u++){let c=n();r(i(s.expr,l),c),l=c}if(s.max==-1)r(i(s.expr,l),l);else for(let u=s.min;u<s.max;u++){let c=n();o(l,c),r(i(s.expr,l),c),l=c}return[o(l)]}else{if(s.type=="name")return[o(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function Qm(t,e){return e-t}function Zm(t,e){let n=[];return o(e),n.sort(Qm);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 sw(t){let e=Object.create(null);return n(Zm(t,0));function n(o){let r=[];o.forEach(s=>{t[s].forEach(({term:a,to:l})=>{if(!a)return;let u;for(let c=0;c<r.length;c++)r[c][0]==a&&(u=r[c][1]);Zm(t,l).forEach(c=>{u||r.push([a,u=[]]),u.indexOf(c)==-1&&u.push(c)})})});let i=e[o.join(",")]=new Ln(o.indexOf(t.length-1)>-1);for(let s=0;s<r.length;s++){let a=r[s][1].sort(Qm);i.next.push({type:r[s][0],next:e[a.join(",")]||n(a)})}return i}}function aw(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:u}=r.next[a];s.push(l.name),i&&!(l.isText||l.hasRequiredAttrs())&&(i=!1),o.indexOf(u)==-1&&o.push(u)}i&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Xm(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 ef(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 tf(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 nf(t,e){let n=Object.create(null);if(e)for(let o in e)n[o]=new uw(t,o,e[o]);return n}let of=class S1{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=nf(e,o.attrs),this.defaultAttrs=Xm(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==Ln.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}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:ef(this.attrs,e)}create(e=null,n,o){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new In(this,this.computeAttrs(e),N.from(n),q.setFrom(o))}createChecked(e=null,n,o){return n=N.from(n),this.checkContent(n),new In(this,this.computeAttrs(e),n,q.setFrom(o))}createAndFill(e=null,n,o){if(e=this.computeAttrs(e),n=N.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(N.empty,!0);return i?new In(this,e,n.append(i),q.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){tf(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:q.none:e}static compile(e,n){let o=Object.create(null);e.forEach((i,s)=>o[i]=new S1(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 lw(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 uw{constructor(e,n,o){this.hasDefault=Object.prototype.hasOwnProperty.call(o,"default"),this.default=o.default,this.validate=typeof o.validate=="string"?lw(e,n,o.validate):o.validate}get isRequired(){return!this.hasDefault}}class ts{constructor(e,n,o,r){this.name=e,this.rank=n,this.schema=o,this.spec=r,this.attrs=nf(e,r.attrs),this.excluded=null;let i=Xm(this.attrs);this.instance=i?new q(this,i):null}create(e=null){return!e&&this.instance?this.instance:new q(this,ef(this.attrs,e))}static compile(e,n){let o=Object.create(null),r=0;return e.forEach((i,s)=>o[i]=new ts(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){tf(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class rf{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=ke.from(e.nodes),n.marks=ke.from(e.marks||{}),this.nodes=of.compile(this.spec.nodes,this),this.marks=ts.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]=Ln.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?sf(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==""?[]:sf(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),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 of){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,q.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return In.fromJSON(this,e)}markFromJSON(e){return q.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function sf(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 cw(t){return t.tag!=null}function dw(t){return t.style!=null}class Kt{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let o=this.matchedStyles=[];n.forEach(r=>{if(cw(r))this.tags.push(r);else if(dw(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 cf(this,n,!1);return o.addAll(e,q.none,n.from,n.to),o.finish()}parseSlice(e,n={}){let o=new cf(this,n,!0);return o.addAll(e,q.none,n.from,n.to),D.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(pw(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=df(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=df(s)),s.node||s.ignore||s.mark||(s.node=r)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Kt(e,Kt.schemaRules(e)))}}const af={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},mw={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},lf={ol:!0,ul:!0},ns=1,rs=2,kr=4;function uf(t,e,n){return e!=null?(e?ns:0)|(e==="full"?rs:0):t&&t.whitespace=="pre"?ns|rs:n&~kr}class is{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=q.none,this.match=i||(s&kr?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(N.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&ns)){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=N.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(N.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&&!af.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class cf{constructor(e,n,o){this.parser=e,this.options=n,this.isOpen=o,this.open=0;let r=n.topNode,i,s=uf(null,n.preserveWhitespace,0)|(o?kr:0);r?i=new is(r.type,r.attrs,q.none,!0,n.topMatch||r.type.contentMatch,s):o?i=new is(null,null,q.none,!0,null,s):i=new is(e.schema.topNodeType,null,q.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;if(r.options&rs||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(o)){if(r.options&ns)r.options&rs?o=o.replace(/\r\n?/g,`
21
+ `):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 i=r.content[r.content.length-1],s=e.previousSibling;(!i||s&&s.nodeName=="BR"||i.isText&&/[ \t\r\n\u000c]$/.test(i.text))&&(o=o.slice(1))}o&&this.insertNode(this.parser.schema.text(o),n),this.findInText(e)}else this.findInside(e)}addElement(e,n,o){let r=e.nodeName.toLowerCase(),i;lf.hasOwnProperty(r)&&this.parser.normalizeLists&&fw(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(i=this.parser.matchTag(e,this,o));if(s?s.ignore:mw.hasOwnProperty(r))this.findInside(e),this.ignoreFallback(e,n);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let a,l=this.top,u=this.needsBlock;if(af.hasOwnProperty(r))l.content.length&&l.content[0].isInline&&this.open&&(this.open--,l=this.top),a=!0,l.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);return}let c=s&&s.skip?n:this.readStyles(e,n);c&&this.addAll(e,c),a&&this.sync(l),this.needsBlock=u}else{let a=this.readStyles(e,n);a&&this.addElementByRule(e,s,a,s.consuming===!1?i:void 0)}}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
22
+ `),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n)}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(u=>!l.clearMark(u)):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)||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));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)}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){let o,r;for(let i=this.open;i>=0;i--){let s=this.nodes[i],a=s.findWrapping(e);if(a&&(!o||o.length>a.length)&&(o=a,r=s,!a.length)||s.solid)break}if(!o)return null;this.sync(r);for(let i=0;i<o.length;i++)n=this.enterInner(o[i],null,n,!1);return n}insertNode(e,n){if(e.isInline&&this.needsBlock&&!this.top.type){let r=this.textblockFromContext();r&&(n=this.enterInner(r,null,n))}let o=this.findPlace(e,n);if(o){this.closeExtra();let r=this.top;r.match&&(r.match=r.match.matchType(e.type));let i=q.none;for(let s of o.concat(e.marks))(r.type?r.type.allowsMarkType(s.type):mf(s.type,e.type))&&(i=s.addToSet(i));return r.content.push(e.mark(i)),!0}return!1}enter(e,n,o,r){let i=this.findPlace(e.create(n),o);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=uf(e,i,s.options);s.options&kr&&s.content.length==0&&(a|=kr);let l=q.none;return o=o.filter(u=>(s.type?s.type.allowsMarkType(u.type):mf(u.type,e))?(l=u.addToSet(l),!1):!0),this.nodes.push(new is(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;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 u=n[a];if(u==""){if(a==n.length-1||a==0)continue;for(;l>=i;l--)if(s(a-1,l))return!0;return!1}else{let c=l>0||l==0&&r?this.nodes[l].type:o&&l>=i?o.node(l-i).type:null;if(!c||c.name!=u&&c.groups.indexOf(u)==-1)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 fw(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let o=e.nodeType==1?e.nodeName.toLowerCase():null;o&&lf.hasOwnProperty(o)&&n?(n.appendChild(e),e=n):o=="li"?n=e:o&&(n=null)}}function pw(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function df(t){let e={};for(let n in t)e[n]=t[n];return e}function mf(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:u,next:c}=a.edge(l);if(u==e||i.indexOf(c)<0&&s(c))return!0}};if(s(r.contentMatch))return!0}}class zn{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},o){o||(o=Nl(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 u=s.marks[l];if(!this.marks[u.type.name]){l++;continue}if(!u.eq(i[a][0])||u.type.spec.spanning===!1)break;a++,l++}for(;a<i.length;)r=i.pop()[1];for(;l<s.marks.length;){let u=s.marks[l++],c=this.serializeMark(u,s.isInline,n);c&&(i.push([u,r]),r.appendChild(c.dom),r=c.contentDOM||c.dom)}}r.appendChild(this.serializeNodeInner(s,n))}),o}serializeNodeInner(e,n){let{dom:o,contentDOM:r}=ss(Nl(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&&ss(Nl(o),r(e,n),null,e.attrs)}static renderSpec(e,n,o=null,r){return ss(e,n,o,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new zn(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=ff(e.nodes);return n.text||(n.text=o=>o.text),n}static marksFromSchema(e){return ff(e.marks)}}function ff(t){let e={};for(let n in t){let o=t[n].spec.toDOM;o&&(e[n]=o)}return e}function Nl(t){return t.document||window.document}const pf=new WeakMap;function hw(t){let e=pf.get(t);return e===void 0&&pf.set(t,e=gw(t)),e}function gw(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 ss(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=hw(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),u=e[1],c=1;if(u&&typeof u=="object"&&u.nodeType==null&&!Array.isArray(u)){c=2;for(let m in u)if(u[m]!=null){let d=m.indexOf(" ");d>0?l.setAttributeNS(m.slice(0,d),m.slice(d+1),u[m]):l.setAttribute(m,u[m])}}for(let m=c;m<e.length;m++){let d=e[m];if(d===0){if(m<e.length-1||m>c)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}=ss(t,d,n,o);if(l.appendChild(f),p){if(a)throw new RangeError("Multiple content holes");a=p}}}return{dom:l,contentDOM:a}}const hf=65535,gf=Math.pow(2,16);function yw(t,e){return t+e*gf}function yf(t){return t&hf}function ww(t){return(t-(t&hf))/gf}const wf=1,Sf=2,as=4,vf=8;class Ol{constructor(e,n,o){this.pos=e,this.delInfo=n,this.recover=o}get deleted(){return(this.delInfo&vf)>0}get deletedBefore(){return(this.delInfo&(wf|as))>0}get deletedAfter(){return(this.delInfo&(Sf|as))>0}get deletedAcross(){return(this.delInfo&as)>0}}class qe{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&qe.empty)return qe.empty}recover(e){let n=0,o=yf(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+ww(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 u=this.ranges[a+i],c=this.ranges[a+s],m=l+u;if(e<=m){let d=u?e==l?-1:e==m?1:n:n,f=l+r+(d<0?0:c);if(o)return f;let p=e==(n<0?l:m)?null:yw(a/3,e-l),y=e==l?Sf:e==m?wf:as;return(n<0?e!=l:e!=m)&&(y|=vf),new Ol(f,y,p)}r+=c-u}return o?e+r:new Ol(e+r,0,null)}touches(e,n){let o=0,r=yf(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 u=this.ranges[a+i],c=l+u;if(e<=c&&a==r*3)return!0;o+=this.ranges[a+s]-u}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),u=this.ranges[r+n],c=this.ranges[r+o];e(a,a+u,l,l+c),i+=c-u}}invert(){return new qe(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?qe.empty:new qe(e<0?[0,-e,0]:[0,0,e])}}qe.empty=new qe([]);class xr{constructor(e=[],n,o=0,r=e.length){this.maps=e,this.mirror=n,this.from=o,this.to=r}slice(e=0,n=this.maps.length){return new xr(this.maps,this.mirror,e,n)}copy(){return new xr(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,n){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 xr;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 Ol(e,r,null)}}const Al=Object.create(null);class Re{getMap(){return qe.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let o=Al[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 Al)throw new RangeError("Duplicate use of step JSON ID "+e);return Al[e]=n,n.prototype.jsonID=e,n}}class ce{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new ce(e,null)}static fail(e){return new ce(null,e)}static fromReplace(e,n,o,r){try{return ce.ok(e.replace(n,o,r))}catch(i){if(i instanceof Qi)return ce.fail(i.message);throw i}}}function Rl(t,e,n){let o=[];for(let r=0;r<t.childCount;r++){let i=t.child(r);i.content.size&&(i=i.copy(Rl(i.content,e,i))),i.isInline&&(i=e(i,n,r)),o.push(i)}return N.fromArray(o)}class Wt extends Re{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 D(Rl(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 ce.fromReplace(e,this.from,this.to,i)}invert(){return new St(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 Wt(n.pos,o.pos,this.mark)}merge(e){return e instanceof Wt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Wt(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 Wt(n.from,n.to,e.markFromJSON(n.mark))}}Re.jsonID("addMark",Wt);class St extends Re{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 D(Rl(n.content,r=>r.mark(this.mark.removeFromSet(r.marks)),e),n.openStart,n.openEnd);return ce.fromReplace(e,this.from,this.to,o)}invert(){return new Wt(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 St(n.pos,o.pos,this.mark)}merge(e){return e instanceof St&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new St(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 St(n.from,n.to,e.markFromJSON(n.mark))}}Re.jsonID("removeMark",St);class qt extends Re{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ce.fail("No node at mark step's position");let o=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return ce.fromReplace(e,this.pos,this.pos+1,new D(N.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 qt(this.pos,n.marks[r]);return new qt(this.pos,this.mark)}}return new wo(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new qt(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 qt(n.pos,e.markFromJSON(n.mark))}}Re.jsonID("addNodeMark",qt);class wo extends Re{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ce.fail("No node at mark step's position");let o=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return ce.fromReplace(e,this.pos,this.pos+1,new D(N.from(o),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new qt(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new wo(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 wo(n.pos,e.markFromJSON(n.mark))}}Re.jsonID("removeNodeMark",wo);class he extends Re{constructor(e,n,o,r=!1){super(),this.from=e,this.to=n,this.slice=o,this.structure=r}apply(e){return this.structure&&Ml(e,this.from,this.to)?ce.fail("Structure replace would overwrite content"):ce.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new qe([this.from,this.to-this.from,this.slice.size])}invert(e){return new he(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 he(n.pos,Math.max(n.pos,o.pos),this.slice)}merge(e){if(!(e instanceof he)||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?D.empty:new D(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new he(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?D.empty:new D(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new he(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 he(n.from,n.to,D.fromJSON(e,n.slice),!!n.structure)}}Re.jsonID("replace",he);class ge extends Re{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&&(Ml(e,this.from,this.gapFrom)||Ml(e,this.gapTo,this.to)))return ce.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return ce.fail("Gap is not a flat range");let o=this.slice.insertAt(this.insert,n.content);return o?ce.fromReplace(e,this.from,this.to,o):ce.fail("Content does not fit in gap")}getMap(){return new qe([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 ge(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 ge(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 ge(n.from,n.to,n.gapFrom,n.gapTo,D.fromJSON(e,n.slice),n.insert,!!n.structure)}}Re.jsonID("replaceAround",ge);function Ml(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 Sw(t,e,n,o){let r=[],i=[],s,a;t.doc.nodesBetween(e,n,(l,u,c)=>{if(!l.isInline)return;let m=l.marks;if(!o.isInSet(m)&&c.type.allowsMarkType(o.type)){let d=Math.max(u,e),f=Math.min(u+l.nodeSize,n),p=o.addToSet(m);for(let y=0;y<m.length;y++)m[y].isInSet(p)||(s&&s.to==d&&s.mark.eq(m[y])?s.to=f:r.push(s=new St(d,f,m[y])));a&&a.to==d?a.to=f:i.push(a=new Wt(d,f,o))}}),r.forEach(l=>t.step(l)),i.forEach(l=>t.step(l))}function vw(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 ts){let u=s.marks,c;for(;c=o.isInSet(u);)(l||(l=[])).push(c),u=c.removeFromSet(u)}else o?o.isInSet(s.marks)&&(l=[o]):l=s.marks;if(l&&l.length){let u=Math.min(a+s.nodeSize,n);for(let c=0;c<l.length;c++){let m=l[c],d;for(let f=0;f<r.length;f++){let p=r[f];p.step==i-1&&m.eq(r[f].style)&&(d=p)}d?(d.to=u,d.step=i):r.push({style:m,from:Math.max(a,e),to:u,step:i})}}}),r.forEach(s=>t.step(new St(s.from,s.to,s.style)))}function bf(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 u=i.child(l),c=a+u.nodeSize,m=o.matchType(u.type);if(!m)s.push(new he(a,c,D.empty));else{o=m;for(let d=0;d<u.marks.length;d++)n.allowsMarkType(u.marks[d].type)||t.step(new St(a,c,u.marks[d]));if(r&&u.isText&&n.whitespace!="pre"){let d,f=/\r?\n|\r/g,p;for(;d=f.exec(u.text);)p||(p=new D(N.from(n.schema.text(" ",n.allowedMarks(u.marks))),0,0)),s.push(new he(a+d.index,a+d.index+d[0].length,p))}}a=c}if(!o.validEnd){let l=o.fillBefore(N.empty,!0);t.replace(a,a,new D(l,0,0))}for(let l=s.length-1;l>=0;l--)t.step(s[l])}function bw(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function So(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let o=t.depth;;--o){let r=t.$from.node(o),i=t.$from.index(o),s=t.$to.indexAfter(o);if(o<t.depth&&r.canReplace(i,s,n))return o;if(o==0||r.type.spec.isolating||!bw(r,i,s))break}return null}function kw(t,e,n){let{$from:o,$to:r,depth:i}=e,s=o.before(i+1),a=r.after(i+1),l=s,u=a,c=N.empty,m=0;for(let p=i,y=!1;p>n;p--)y||o.index(p)>0?(y=!0,c=N.from(o.node(p).copy(c)),m++):l--;let d=N.empty,f=0;for(let p=i,y=!1;p>n;p--)y||r.after(p+1)<r.end(p)?(y=!0,d=N.from(r.node(p).copy(d)),f++):u++;t.step(new ge(l,u,s,a,new D(c.append(d),m,f),c.size-m,!0))}function Dl(t,e,n=null,o=t){let r=xw(t,e),i=r&&$w(o,e);return i?r.map(kf).concat({type:e,attrs:n}).concat(i.map(kf)):null}function kf(t){return{type:t,attrs:null}}function xw(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 $w(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 u=o;l&&u<r;u++)l=l.matchType(n.child(u).type);return!l||!l.validEnd?null:s}function Cw(t,e,n){let o=N.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=N.from(n[s].type.create(n[s].attrs,o))}let r=e.start,i=e.end;t.step(new ge(r,i,r,i,new D(o,0,0),n.length,!0))}function Ew(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)&&Aw(t.doc,t.mapping.slice(i).map(a),o)){let u=null;if(o.schema.linebreakReplacement){let f=o.whitespace=="pre",p=!!o.contentMatch.matchType(o.schema.linebreakReplacement);f&&!p?u=!1:!f&&p&&(u=!0)}u===!1&&Ow(t,s,a,i),bf(t,t.mapping.slice(i).map(a,1),o,void 0,u===null);let c=t.mapping.slice(i),m=c.map(a,1),d=c.map(a+s.nodeSize,1);return t.step(new ge(m,d,m+1,d-1,new D(N.from(o.create(l,null,s.marks)),0,0),1,!0)),u===!0&&Nw(t,s,a,i),!1}})}function Nw(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 Ow(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(`
23
+ `))}})}function Aw(t,e,n){let o=t.resolve(e),r=o.index();return o.parent.canReplaceWith(r,r+1,n)}function Rw(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 ge(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new D(N.from(s),0,0),1,!0))}function vo(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 u=r.depth-1,c=n-2;u>i;u--,c--){let m=r.node(u),d=r.index(u);if(m.type.spec.isolating)return!1;let f=m.content.cutByIndex(d,m.childCount),p=o&&o[c+1];p&&(f=f.replaceChild(0,p.type.create(p.attrs)));let y=o&&o[c]||m;if(!m.canReplace(d+1,m.childCount)||!y.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 Mw(t,e,n=1,o){let r=t.doc.resolve(e),i=N.empty,s=N.empty;for(let a=r.depth,l=r.depth-n,u=n-1;a>l;a--,u--){i=N.from(r.node(a).copy(i));let c=o&&o[u];s=N.from(c?c.type.create(c.attrs,s):r.node(a).copy(s))}t.step(new he(e,e,new D(i.append(s),n,n),!0))}function Gt(t,e){let n=t.resolve(e),o=n.index();return xf(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(o,o+1)}function xf(t,e){return!!(t&&e&&!t.isLeaf&&t.canAppend(e))}function ls(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&&xf(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 Dw(t,e,n){let o=new he(e-n,e+n,D.empty,!0);t.step(o)}function Tw(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 jw(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),u=o.node(s),c=!1;if(i==1)c=u.canReplace(l,l,r);else{let m=u.contentMatchAt(l).findWrapping(r.firstChild.type);c=m&&u.canReplaceWith(l,l,m[0])}if(c)return a==0?o.pos:a<0?o.before(s+1):o.after(s+1)}return null}function us(t,e,n=e,o=D.empty){if(e==n&&!o.size)return null;let r=t.resolve(e),i=t.resolve(n);return $f(r,i,o)?new he(e,n,o):new Pw(r,i,o).fit()}function $f(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class Pw{constructor(e,n,o){this.$from=e,this.$to=n,this.unplaced=o,this.frontier=[],this.placed=N.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=N.from(e.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let u=this.findFittable();u?this.placeNodes(u):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 D(i,s,a);return e>-1?new ge(o.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||o.pos!=this.$to.pos?new he(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=Tl(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:u}=this.frontier[a],c,m=null;if(n==1&&(s?u.matchType(s.type)||(m=u.fillBefore(N.from(s),!1)):i&&l.compatibleContent(i.type)))return{sliceDepth:o,frontierDepth:a,parent:i,inject:m};if(n==2&&s&&(c=u.findWrapping(s.type)))return{sliceDepth:o,frontierDepth:a,parent:i,wrap:c};if(i&&u.matchType(i.type))break}}}openMore(){let{content:e,openStart:n,openEnd:o}=this.unplaced,r=Tl(e,n);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new D(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=Tl(e,n);if(r.childCount<=1&&n>0){let i=e.size-n<=n+r.size;this.unplaced=new D($r(e,n-1,1),n-1,i?n-1:o)}else this.unplaced=new D($r(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 y=0;y<i.length;y++)this.openFrontierNode(i[y]);let s=this.unplaced,a=o?o.content:s.content,l=s.openStart-e,u=0,c=[],{match:m,type:d}=this.frontier[n];if(r){for(let y=0;y<r.childCount;y++)c.push(r.child(y));m=m.matchFragment(r)}let f=a.size+e-(s.content.size-s.openEnd);for(;u<a.childCount;){let y=a.child(u),h=m.matchType(y.type);if(!h)break;u++,(u>1||l==0||y.content.size)&&(m=h,c.push(Cf(y.mark(d.allowedMarks(y.marks)),u==1?l:0,u==a.childCount?f:-1)))}let p=u==a.childCount;p||(f=-1),this.placed=Cr(this.placed,n,N.from(c)),this.frontier[n].match=m,p&&f<0&&o&&o.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let y=0,h=a;y<f;y++){let g=h.lastChild;this.frontier.push({type:g.type,match:g.contentMatchAt(g.childCount)}),h=g.content}this.unplaced=p?e==0?D.empty:new D($r(s.content,e-1,1),e-1,f<0?s.openEnd:e-1):new D($r(s.content,e,u),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!jl(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=jl(e,n,r,o,i);if(s){for(let a=n-1;a>=0;a--){let{match:l,type:u}=this.frontier[a],c=jl(e,a,u,l,!0);if(!c||c.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=Cr(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=Cr(this.placed,this.depth,N.from(e.create(n,o))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(N.empty,!0);n.childCount&&(this.placed=Cr(this.placed,this.frontier.length,n))}}function $r(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy($r(t.firstChild.content,e-1,n)))}function Cr(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Cr(t.lastChild.content,e-1,n)))}function Tl(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function Cf(t,e,n){if(e<=0)return t;let o=t.content;return e>1&&(o=o.replaceChild(0,Cf(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(N.empty,!0)))),t.copy(o)}function jl(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&&!Iw(n,i.content,s)?a:null}function Iw(t,e,n){for(let o=n;o<e.childCount;o++)if(!t.allowsMarks(e.child(o).marks))return!0;return!1}function Lw(t){return t.spec.defining||t.spec.definingForContent}function zw(t,e,n,o){if(!o.size)return t.deleteRange(e,n);let r=t.doc.resolve(e),i=t.doc.resolve(n);if($f(r,i,o))return t.step(new he(e,n,o));let s=Nf(r,t.doc.resolve(n));s[s.length-1]==0&&s.pop();let a=-(r.depth+1);s.unshift(a);for(let d=r.depth,f=r.pos-1;d>0;d--,f--){let p=r.node(d).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;s.indexOf(d)>-1?a=d:r.before(d)==f&&s.splice(1,0,-d)}let l=s.indexOf(a),u=[],c=o.openStart;for(let d=o.content,f=0;;f++){let p=d.firstChild;if(u.push(p),f==o.openStart)break;d=p.content}for(let d=c-1;d>=0;d--){let f=u[d],p=Lw(f.type);if(p&&!f.sameMarkup(r.node(Math.abs(a)-1)))c=d;else if(p||!f.type.isTextblock)break}for(let d=o.openStart;d>=0;d--){let f=(d+c+1)%(o.openStart+1),p=u[f];if(p)for(let y=0;y<s.length;y++){let h=s[(y+l)%s.length],g=!0;h<0&&(g=!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),g?i.after(h):n,new D(Ef(o.content,0,o.openStart,f),f,o.openEnd))}}let m=t.steps.length;for(let d=s.length-1;d>=0&&(t.replace(e,n,o),!(t.steps.length>m));d--){let f=s[d];f<0||(e=r.before(f),n=i.after(f))}}function Ef(t,e,n,o,r){if(e<n){let i=t.firstChild;t=t.replaceChild(0,i.copy(Ef(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(N.empty,!0))}return t}function Fw(t,e,n,o){if(!o.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let r=Tw(t.doc,e,o.type);r!=null&&(e=n=r)}t.replaceRange(e,n,new D(N.from(o),0,0))}function Bw(t,e,n){let o=t.doc.resolve(e),r=t.doc.resolve(n),i=Nf(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)return t.delete(o.before(s),n);t.delete(e,n)}function Nf(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 bo extends Re{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 ce.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 ce.fromReplace(e,this.pos,this.pos+1,new D(N.from(r),0,n.isLeaf?0:1))}getMap(){return qe.empty}invert(e){return new bo(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 bo(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 bo(n.pos,n.attr,n.value)}}Re.jsonID("attr",bo);class Er extends Re{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 ce.ok(o)}getMap(){return qe.empty}invert(e){return new Er(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 Er(n.attr,n.value)}}Re.jsonID("docAttr",Er);let ko=class extends Error{};ko=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},ko.prototype=Object.create(Error.prototype),ko.prototype.constructor=ko,ko.prototype.name="TransformError";class Of{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new xr}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new ko(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}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=D.empty){let r=us(this.doc,e,n,o);return r&&this.step(r),this}replaceWith(e,n,o){return this.replace(e,n,new D(N.from(o),0,0))}delete(e,n){return this.replace(e,n,D.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,o){return zw(this,e,n,o),this}replaceRangeWith(e,n,o){return Fw(this,e,n,o),this}deleteRange(e,n){return Bw(this,e,n),this}lift(e,n){return kw(this,e,n),this}join(e,n=1){return Dw(this,e,n),this}wrap(e,n){return Cw(this,e,n),this}setBlockType(e,n=e,o,r=null){return Ew(this,e,n,o,r),this}setNodeMarkup(e,n,o=null,r){return Rw(this,e,n,o,r),this}setNodeAttribute(e,n,o){return this.step(new bo(e,n,o)),this}setDocAttribute(e,n){return this.step(new Er(e,n)),this}addNodeMark(e,n){return this.step(new qt(e,n)),this}removeNodeMark(e,n){if(!(n instanceof q)){let o=this.doc.nodeAt(e);if(!o)throw new RangeError("No node at position "+e);if(n=n.isInSet(o.marks),!n)return this}return this.step(new wo(e,n)),this}split(e,n=1,o){return Mw(this,e,n,o),this}addMark(e,n,o){return Sw(this,e,n,o),this}removeMark(e,n,o){return vw(this,e,n,o),this}clearIncompatible(e,n,o){return bf(this,e,n,o),this}}const Pl=Object.create(null);class J{constructor(e,n,o){this.$anchor=e,this.$head=n,this.ranges=o||[new Hw(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=D.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:u}=s[a],c=e.mapping.slice(i);e.replaceRange(c.map(l.pos),c.map(u.pos),a?D.empty:n),a==0&&Mf(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),u=l.map(s.pos),c=l.map(a.pos);i?e.deleteRange(u,c):(e.replaceRangeWith(u,c,n),Mf(e,o,n.isInline?-1:1))}}static findFrom(e,n,o=!1){let r=e.parent.inlineContent?new H(e):xo(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?xo(e.node(0),e.node(i),e.before(i+1),e.index(i),n,o):xo(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 mt(e.node(0))}static atStart(e){return xo(e,e,0,0,1)||new mt(e)}static atEnd(e){return xo(e,e,e.content.size,e.childCount,-1)||new mt(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let o=Pl[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 Pl)throw new RangeError("Duplicate use of selection JSON ID "+e);return Pl[e]=n,n.prototype.jsonID=e,n}getBookmark(){return H.between(this.$anchor,this.$head).getBookmark()}}J.prototype.visible=!0;class Hw{constructor(e,n){this.$from=e,this.$to=n}}let Af=!1;function Rf(t){!Af&&!t.parent.inlineContent&&(Af=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class H extends J{constructor(e,n=e){Rf(e),Rf(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 J.near(o);let r=e.resolve(n.map(this.anchor));return new H(r.parent.inlineContent?r:o,o)}replace(e,n=D.empty){if(super.replace(e,n),n==D.empty){let o=this.$from.marksAcross(this.$to);o&&e.ensureMarks(o)}}eq(e){return e instanceof H&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new cs(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 H(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=J.findFrom(n,o,!0)||J.findFrom(n,-o,!0);if(i)n=i.$head;else return J.near(n,o)}return e.parent.inlineContent||(r==0?e=n:(e=(J.findFrom(e,-o,!0)||J.findFrom(e,o,!0)).$anchor,e.pos<n.pos!=r<0&&(e=n))),new H(e,n)}}J.jsonID("text",H);class cs{constructor(e,n){this.anchor=e,this.head=n}map(e){return new cs(e.map(this.anchor),e.map(this.head))}resolve(e){return H.between(e.resolve(this.anchor),e.resolve(this.head))}}class L extends J{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?J.near(i):new L(i)}content(){return new D(N.from(this.node),0,0)}eq(e){return e instanceof L&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Il(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new L(e.resolve(n.anchor))}static create(e,n){return new L(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}L.prototype.visible=!1,J.jsonID("node",L);class Il{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:o}=e.mapResult(this.anchor);return n?new cs(o,o):new Il(o)}resolve(e){let n=e.resolve(this.anchor),o=n.nodeAfter;return o&&L.isSelectable(o)?new L(n):J.near(n)}}class mt extends J{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=D.empty){if(n==D.empty){e.delete(0,e.doc.content.size);let o=J.atStart(e.doc);o.eq(e.selection)||e.setSelection(o)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new mt(e)}map(e){return new mt(e)}eq(e){return e instanceof mt}getBookmark(){return Vw}}J.jsonID("all",mt);const Vw={map(){return this},resolve(t){return new mt(t)}};function xo(t,e,n,o,r,i=!1){if(e.inlineContent)return H.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&&L.isSelectable(a))return L.create(t,n-(r<0?a.nodeSize:0))}else{let l=xo(t,a,n+r,r<0?a.childCount:0,r,i);if(l)return l}n+=a.nodeSize*r}return null}function Mf(t,e,n){let o=t.steps.length-1;if(o<e)return;let r=t.steps[o];if(!(r instanceof he||r instanceof ge))return;let i=t.mapping.maps[o],s;i.forEach((a,l,u,c)=>{s==null&&(s=c)}),t.setSelection(J.near(t.doc.resolve(s),n))}const Df=1,ds=2,Tf=4;class Uw extends Of{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|Df)&~ds,this.storedMarks=null,this}get selectionSet(){return(this.updated&Df)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=ds,this}ensureMarks(e){return q.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&ds)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~ds,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)||q.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),o=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.setSelection(J.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|=Tf,this}get scrolledIntoView(){return(this.updated&Tf)>0}}function jf(t,e){return!e||!t?t:t.bind(e)}class Nr{constructor(e,n,o){this.name=e,this.init=jf(n.init,o),this.apply=jf(n.apply,o)}}const Jw=[new Nr("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new Nr("selection",{init(t,e){return t.selection||J.atStart(e.doc)},apply(t){return t.selection}}),new Nr("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,o){return o.selection.$cursor?t.storedMarks:null}}),new Nr("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class Ll{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Jw.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 Nr(o.key,o.spec.state,o))})}}class $o{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,u=r?r[s].state:this,c=l<n.length&&a.spec.appendTransaction.call(a,l?n.slice(l):n,u,o);if(c&&o.filterTransaction(c,s)){if(c.setMeta("appendedTransaction",e),!r){r=[];for(let m=0;m<this.config.plugins.length;m++)r.push(m<s?{state:o,n:n.length}:{state:this,n:0})}n.push(c),o=o.applyInner(c),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 $o(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 Uw(this)}static create(e){let n=new Ll(e.doc?e.doc.type.schema:e.schema,e.plugins),o=new $o(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 Ll(this.schema,e.plugins),o=n.fields,r=new $o(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 Ll(e.schema,e.plugins),i=new $o(r);return r.fields.forEach(s=>{if(s.name=="doc")i.doc=In.fromJSON(e.schema,n.doc);else if(s.name=="selection")i.selection=J.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],u=l.spec.state;if(l.key==s.name&&u&&u.fromJSON&&Object.prototype.hasOwnProperty.call(n,a)){i[s.name]=u.fromJSON.call(l,e,n[a],i);return}}i[s.name]=s.init(e,i)}}),i}}function Pf(t,e,n){for(let o in t){let r=t[o];r instanceof Function?r=r.bind(e):o=="handleDOMEvents"&&(r=Pf(r,e,{})),n[o]=r}return n}class Ve{constructor(e){this.spec=e,this.props={},e.props&&Pf(e.props,this,this.props),this.key=e.key?e.key.key:If("plugin")}getState(e){return e[this.key]}}const zl=Object.create(null);function If(t){return t in zl?t+"$"+ ++zl[t]:(zl[t]=0,t+"$")}class ft{constructor(e="key"){this.key=If(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const xe=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Or=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let Fl=null;const jt=function(t,e,n){let o=Fl||(Fl=document.createRange());return o.setEnd(t,n??t.nodeValue.length),o.setStart(t,e||0),o},_w=function(){Fl=null},Fn=function(t,e,n,o){return n&&(Lf(t,e,n,o,-1)||Lf(t,e,n,o,1))},Yw=/^(img|br|input|textarea|hr)$/i;function Lf(t,e,n,o,r){for(;;){if(t==n&&e==o)return!0;if(e==(r<0?0:Xe(t))){let i=t.parentNode;if(!i||i.nodeType!=1||Ar(t)||Yw.test(t.nodeName)||t.contentEditable=="false")return!1;e=xe(t)+(r<0?0:1),t=i}else if(t.nodeType==1){if(t=t.childNodes[e+(r<0?-1:0)],t.contentEditable=="false")return!1;e=r<0?Xe(t):0}else return!1}}function Xe(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Kw(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=Xe(t)}else if(t.parentNode&&!Ar(t))e=xe(t),t=t.parentNode;else return null}}function Ww(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&&!Ar(t))e=xe(t)+1,t=t.parentNode;else return null}}function qw(t,e,n){for(let o=e==0,r=e==Xe(t);o||r;){if(t==n)return!0;let i=xe(t);if(t=t.parentNode,!t)return!1;o=o&&i==0,r=r&&i==Xe(t)}}function Ar(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 ms=function(t){return t.focusNode&&Fn(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function Bn(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function Gw(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Qw(t,e,n){if(t.caretPositionFromPoint)try{let o=t.caretPositionFromPoint(e,n);if(o)return{node:o.offsetNode,offset:Math.min(Xe(o.offsetNode),o.offset)}}catch{}if(t.caretRangeFromPoint){let o=t.caretRangeFromPoint(e,n);if(o)return{node:o.startContainer,offset:Math.min(Xe(o.startContainer),o.startOffset)}}}const vt=typeof navigator<"u"?navigator:null,zf=typeof document<"u"?document:null,Qt=vt&&vt.userAgent||"",Bl=/Edge\/(\d+)/.exec(Qt),Ff=/MSIE \d/.exec(Qt),Hl=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Qt),Ue=!!(Ff||Hl||Bl),Zt=Ff?document.documentMode:Hl?+Hl[1]:Bl?+Bl[1]:0,pt=!Ue&&/gecko\/(\d+)/i.test(Qt);pt&&+(/Firefox\/(\d+)/.exec(Qt)||[0,0])[1];const Vl=!Ue&&/Chrome\/(\d+)/.exec(Qt),Me=!!Vl,Bf=Vl?+Vl[1]:0,Le=!Ue&&!!vt&&/Apple Computer/.test(vt.vendor),Co=Le&&(/Mobile\/\w+/.test(Qt)||!!vt&&vt.maxTouchPoints>2),et=Co||(vt?/Mac/.test(vt.platform):!1),Zw=vt?/Win/.test(vt.platform):!1,ht=/Android \d/.test(Qt),Rr=!!zf&&"webkitFontSmoothing"in zf.documentElement.style,Xw=Rr?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function eS(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 Pt(t,e){return typeof t=="number"?t:t[e]}function tS(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 Hf(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;s=Or(s)){if(s.nodeType!=1)continue;let a=s,l=a==i.body,u=l?eS(i):tS(a),c=0,m=0;if(e.top<u.top+Pt(o,"top")?m=-(u.top-e.top+Pt(r,"top")):e.bottom>u.bottom-Pt(o,"bottom")&&(m=e.bottom-e.top>u.bottom-u.top?e.top+Pt(r,"top")-u.top:e.bottom-u.bottom+Pt(r,"bottom")),e.left<u.left+Pt(o,"left")?c=-(u.left-e.left+Pt(r,"left")):e.right>u.right-Pt(o,"right")&&(c=e.right-u.right+Pt(r,"right")),c||m)if(l)i.defaultView.scrollBy(c,m);else{let d=a.scrollLeft,f=a.scrollTop;m&&(a.scrollTop+=m),c&&(a.scrollLeft+=c);let p=a.scrollLeft-d,y=a.scrollTop-f;e={left:e.left-p,top:e.top-y,right:e.right-p,bottom:e.bottom-y}}if(l||/^(fixed|sticky)$/.test(getComputedStyle(s).position))break}}function nS(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:Vf(t.dom)}}function Vf(t){let e=[],n=t.ownerDocument;for(let o=t;o&&(e.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),t!=n);o=Or(o));return e}function oS({refDOM:t,refTop:e,stack:n}){let o=t?t.getBoundingClientRect().top:0;Uf(n,o==0?0:o-e)}function Uf(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 Eo=null;function rS(t){if(t.setActive)return t.setActive();if(Eo)return t.focus(Eo);let e=Vf(t);t.focus(Eo==null?{get preventScroll(){return Eo={preventScroll:!0},!0}}:void 0),Eo||(Eo=!1,Uf(e,0))}function Jf(t,e){let n,o=2e8,r,i=0,s=e.top,a=e.top,l,u;for(let c=t.firstChild,m=0;c;c=c.nextSibling,m++){let d;if(c.nodeType==1)d=c.getClientRects();else if(c.nodeType==3)d=jt(c).getClientRects();else continue;for(let f=0;f<d.length;f++){let p=d[f];if(p.top<=s&&p.bottom>=a){s=Math.max(p.bottom,s),a=Math.min(p.top,a);let y=p.left>e.left?p.left-e.left:p.right<e.left?e.left-p.right:0;if(y<o){n=c,o=y,r=y&&n.nodeType==3?{left:p.right<e.left?p.right:p.left,top:e.top}:e,c.nodeType==1&&y&&(i=m+(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=c,u={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=m+1)}}return!n&&l&&(n=l,r=u,o=0),n&&n.nodeType==3?iS(n,r):!n||o&&n.nodeType==1?{node:t,offset:i}:Jf(n,r)}function iS(t,e){let n=t.nodeValue.length,o=document.createRange();for(let r=0;r<n;r++){o.setEnd(t,r+1),o.setStart(t,r);let i=Xt(o,1);if(i.top!=i.bottom&&Ul(e,i))return{node:t,offset:r+(e.left>=(i.left+i.right)/2?1:0)}}return{node:t,offset:0}}function Ul(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function sS(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function aS(t,e,n){let{node:o,offset:r}=Jf(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 lS(t,e,n,o){let r=-1;for(let i=e,s=!1;i!=t.dom;){let a=t.docView.nearestDesc(i,!0);if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent||!a.contentDOM)){let l=a.dom.getBoundingClientRect();if(a.node.isBlock&&a.parent&&(!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 _f(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 u=a[l];if(Ul(e,u))return _f(s,e,u)}}if((i=(i+1)%o)==r)break}return t}function uS(t,e){let n=t.dom.ownerDocument,o,r=0,i=Qw(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 u=t.dom.getBoundingClientRect();if(!Ul(e,u)||(s=_f(t.dom,e,u),!s))return null}if(Le)for(let u=s;o&&u;u=Or(u))u.draggable&&(o=void 0);if(s=sS(s,e),o){if(pt&&o.nodeType==1&&(r=Math.min(r,o.childNodes.length),r<o.childNodes.length)){let c=o.childNodes[r],m;c.nodeName=="IMG"&&(m=c.getBoundingClientRect()).right<=e.left&&m.bottom>e.top&&r++}let u;Rr&&r&&o.nodeType==1&&(u=o.childNodes[r-1]).nodeType==1&&u.contentEditable=="false"&&u.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=lS(t,o,r,e))}a==null&&(a=aS(t,s,e));let l=t.docView.nearestDesc(s,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function Yf(t){return t.top<t.bottom||t.left<t.right}function Xt(t,e){let n=t.getClientRects();if(n.length){let o=n[e<0?0:n.length-1];if(Yf(o))return o}return Array.prototype.find.call(n,Yf)||t.getBoundingClientRect()}const cS=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Kf(t,e,n){let{node:o,offset:r,atom:i}=t.docView.domFromPos(e,n<0?-1:1),s=Rr||pt;if(o.nodeType==3)if(s&&(cS.test(o.nodeValue)||(n<0?!r:r==o.nodeValue.length))){let l=Xt(jt(o,r,r),n);if(pt&&r&&/\s/.test(o.nodeValue[r-1])&&r<o.nodeValue.length){let u=Xt(jt(o,r-1,r-1),-1);if(u.top==l.top){let c=Xt(jt(o,r,r+1),-1);if(c.top!=l.top)return Mr(c,c.left<u.left)}}return l}else{let l=r,u=r,c=n<0?1:-1;return n<0&&!r?(u++,c=-1):n>=0&&r==o.nodeValue.length?(l--,c=1):n<0?l--:u++,Mr(Xt(jt(o,l,u),c),c<0)}if(!t.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&r&&(n<0||r==Xe(o))){let l=o.childNodes[r-1];if(l.nodeType==1)return Jl(l.getBoundingClientRect(),!1)}if(i==null&&r<Xe(o)){let l=o.childNodes[r];if(l.nodeType==1)return Jl(l.getBoundingClientRect(),!0)}return Jl(o.getBoundingClientRect(),n>=0)}if(i==null&&r&&(n<0||r==Xe(o))){let l=o.childNodes[r-1],u=l.nodeType==3?jt(l,Xe(l)-(s?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(u)return Mr(Xt(u,1),!1)}if(i==null&&r<Xe(o)){let l=o.childNodes[r];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let u=l?l.nodeType==3?jt(l,0,s?0:1):l.nodeType==1?l:null:null;if(u)return Mr(Xt(u,-1),!0)}return Mr(Xt(o.nodeType==3?jt(o):o,-n),n>=0)}function Mr(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 Jl(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 Wf(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 dS(t,e,n){let o=e.selection,r=n=="up"?o.$from:o.$to;return Wf(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=Kf(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=jt(a,0,a.nodeValue.length).getClientRects();else continue;for(let u=0;u<l.length;u++){let c=l[u];if(c.bottom>c.top+1&&(n=="up"?s.top-c.top>(c.bottom-s.top)*2:c.bottom-s.bottom>(s.bottom-c.top)*2))return!1}}return!0})}const mS=/[\u0590-\u08ac]/;function fS(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?!mS.test(o.parent.textContent)||!a.modify?n=="left"||n=="backward"?i:s:Wf(t,e,()=>{let{focusNode:l,focusOffset:u,anchorNode:c,anchorOffset:m}=t.domSelectionRange(),d=a.caretBidiLevel;a.modify("move",n,"character");let f=o.depth?t.docView.domAfterPos(o.before()):t.dom,{focusNode:p,focusOffset:y}=t.domSelectionRange(),h=p&&!f.contains(p.nodeType==1?p:p.parentNode)||l==p&&u==y;try{a.collapse(c,m),l&&(l!=c||u!=m)&&a.extend&&a.extend(l,u)}catch{}return d!=null&&(a.caretBidiLevel=d),h}):o.pos==o.start()||o.pos==o.end()}let qf=null,Gf=null,Qf=!1;function pS(t,e,n){return qf==e&&Gf==n?Qf:(qf=e,Gf=n,Qf=n=="up"||n=="down"?dS(t,e,n):fS(t,e,n))}const tt=0,Zf=1,Hn=2,bt=3;class Dr{constructor(e,n,o,r){this.parent=e,this.children=n,this.dom=o,this.contentDOM=r,this.dirty=tt,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>xe(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;)r=r.children[0];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 tp){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 Xf&&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?xe(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?xe(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],u=s+l.size;if(r==-1&&e<=u){let c=s+l.border;if(e>=c&&n<=u-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,c);e=s;for(let m=a;m>0;m--){let d=this.children[m-1];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(1)){r=xe(d.dom)+1;break}e-=d.size}r==-1&&(r=0)}if(r>-1&&(u>n||a==this.children.length-1)){n=u;for(let c=a+1;c<this.children.length;c++){let m=this.children[c];if(m.size&&m.dom.parentNode==this.contentDOM&&!m.emptyChildAt(-1)){i=xe(m.dom);break}n+=m.size}i==-1&&(i=this.contentDOM.childNodes.length);break}s=u}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 d=0,f=0;d<this.children.length;d++){let p=this.children[d],y=f+p.size;if(i>f&&s<y)return p.setSelection(e-f-p.border,n-f-p.border,o,r);f=y}let a=this.domFromPos(e,e?-1:1),l=n==e?a:this.domFromPos(n,n?-1:1),u=o.getSelection(),c=!1;if((pt||Le)&&e==n){let{node:d,offset:f}=a;if(d.nodeType==3){if(c=!!(f&&d.nodeValue[f-1]==`
24
+ `),c&&f==d.nodeValue.length)for(let p=d,y;p;p=p.parentNode){if(y=p.nextSibling){y.nodeName=="BR"&&(a=l={node:y.parentNode,offset:xe(y)+1});break}let h=p.pmViewDesc;if(h&&h.node&&h.node.isBlock)break}}else{let p=d.childNodes[f-1];c=p&&(p.nodeName=="BR"||p.contentEditable=="false")}}if(pt&&u.focusNode&&u.focusNode!=l.node&&u.focusNode.nodeType==1){let d=u.focusNode.childNodes[u.focusOffset];d&&d.contentEditable=="false"&&(r=!0)}if(!(r||c&&Le)&&Fn(a.node,a.offset,u.anchorNode,u.anchorOffset)&&Fn(l.node,l.offset,u.focusNode,u.focusOffset))return;let m=!1;if((u.extend||e==n)&&!c){u.collapse(a.node,a.offset);try{e!=n&&u.extend(l.node,l.offset),m=!0}catch{}}if(!m){if(e>n){let f=a;a=l,l=f}let d=document.createRange();d.setEnd(l.node,l.offset),d.setStart(a.node,a.offset),u.removeAllRanges(),u.addRange(d)}}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?Hn:Zf,e==a&&n==l&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=bt:i.markDirty(e-a,n-a);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Hn:bt}o=s}this.dirty=Hn}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let o=e==1?Hn:Zf;n.dirty<o&&(n.dirty=o)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(e){return!1}}class Xf extends Dr{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==tt&&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 side(){return this.widget.type.side}}class hS extends Dr{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 Vn extends Dr{constructor(e,n,o,r){super(e,[],o,r),this.mark=n}static create(e,n,o,r){let i=r.nodeViews[n.type.name],s=i&&i(n,r,o);return(!s||!s.dom)&&(s=zn.renderSpec(document,n.type.spec.toDOM(n,o),null,n.attrs)),new Vn(e,n,s.dom,s.contentDOM||s.dom)}parseRule(){return this.dirty&bt||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=bt&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=tt){let o=this.parent;for(;!o.node;)o=o.parent;o.dirty<this.dirty&&(o.dirty=this.dirty),this.dirty=tt}}slice(e,n,o){let r=Vn.create(this.parent,this.mark,!0,o),i=this.children,s=this.size;n<s&&(i=Yl(i,n,s,o)),e>0&&(i=Yl(i,0,e,o));for(let a=0;a<i.length;a++)i[a].parent=r;return r.children=i,r}}class en extends Dr{constructor(e,n,o,r,i,s,a,l,u){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,u=a&&a(n,i,()=>{if(!l)return s;if(l.parent)return l.parent.posBeforeChild(l)},o,r),c=u&&u.dom,m=u&&u.contentDOM;if(n.isText){if(!c)c=document.createTextNode(n.text);else if(c.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else c||({dom:c,contentDOM:m}=zn.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!m&&!n.isText&&c.nodeName!="BR"&&(c.hasAttribute("contenteditable")||(c.contentEditable="false"),n.type.spec.draggable&&(c.draggable=!0));let d=c;return c=rp(c,o,n),u?l=new gS(e,n,o,r,c,m||null,d,u,i,s+1):n.isText?new fs(e,n,o,r,c,d,i):new en(e,n,o,r,c,m||null,d,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=()=>N.empty)}return e}matchesNode(e,n,o){return this.dirty==tt&&e.eq(this.node)&&ps(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 wS(this,s&&s.node,e);bS(this.node,this.innerDeco,(u,c,m)=>{u.spec.marks?l.syncToMarks(u.spec.marks,o,e):u.type.side>=0&&!m&&l.syncToMarks(c==this.node.childCount?q.none:this.node.child(c).marks,o,e),l.placeWidget(u,e,r)},(u,c,m,d)=>{l.syncToMarks(u.marks,o,e);let f;l.findNodeMatch(u,c,m,d)||a&&e.state.selection.from>r&&e.state.selection.to<r+u.nodeSize&&(f=l.findIndexWithChild(i.node))>-1&&l.updateNodeAt(u,c,m,f,e)||l.updateNextNode(u,c,m,e,d,r)||l.addNode(u,c,m,e,r),r+=u.nodeSize}),l.syncToMarks([],o,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==Hn)&&(s&&this.protectLocalComposition(e,s),np(this.contentDOM,this.children,e),Co&&kS(this.dom))}localCompositionInfo(e,n){let{from:o,to:r}=e.state.selection;if(!(e.state.selection instanceof H)||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=xS(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 hS(this,i,n,r);e.input.compositionNodes.push(s),this.children=Yl(this.children,o,o+r.length,e,s)}update(e,n,o,r){return this.dirty==bt||!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=tt}updateOuterDeco(e){if(ps(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,o=this.dom;this.dom=op(this.dom,this.nodeDOM,_l(this.outerDeco,this.node,n),_l(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.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function ep(t,e,n,o,r){rp(o,e,t);let i=new en(void 0,t,e,n,o,o,o,r,0);return i.contentDOM&&i.updateChildren(r,0),i}class fs extends en{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==bt||this.dirty!=tt&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=tt||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=tt,!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 fs(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=bt)}get domAtom(){return!1}isText(e){return this.node.text==e}}class tp extends Dr{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==tt&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class gS extends en{constructor(e,n,o,r,i,s,a,l,u,c){super(e,n,o,r,i,s,a,u,c),this.spec=l}update(e,n,o,r){if(this.dirty==bt)return!1;if(this.spec.update){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):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 np(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=ip(o),r=!0;o=o.nextSibling}else r=!0,t.insertBefore(a,o);if(s instanceof Vn){let l=o?o.previousSibling:t.lastChild;np(s.contentDOM,s.children,n),o=l?l.nextSibling:t.firstChild}}for(;o;)o=ip(o),r=!0;r&&n.trackWrites==t&&(n.trackWrites=null)}const Tr=function(t){t&&(this.nodeName=t)};Tr.prototype=Object.create(null);const Un=[new Tr];function _l(t,e,n){if(t.length==0)return Un;let o=n?Un[0]:new Tr,r=[o];for(let i=0;i<t.length;i++){let s=t[i].type.attrs;if(s){s.nodeName&&r.push(o=new Tr(s.nodeName));for(let a in s){let l=s[a];l!=null&&(n&&r.length==1&&r.push(o=new Tr(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 op(t,e,n,o){if(n==Un&&o==Un)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=Un[0]),r=l}yS(r,a||Un[0],s)}return r}function yS(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 rp(t,e,n){return op(t,t,Un,_l(e,n,t.nodeType!=1))}function ps(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 ip(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class wS{constructor(e,n,o){this.lock=n,this.view=o,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=SS(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){let r=0,i=this.stack.length>>1,s=Math.min(i,e.length);for(;r<s&&(r==i-1?this.top:this.stack[r+1<<1]).matchesMark(e[r])&&e[r].type.spec.spanning!==!1;)r++;for(;r<i;)this.destroyRest(),this.top.dirty=tt,this.index=this.stack.pop(),this.top=this.stack.pop(),i--;for(;i<e.length;){this.stack.push(this.top,this.index+1);let a=-1;for(let l=this.index;l<Math.min(this.index+3,this.top.children.length);l++){let u=this.top.children[l];if(u.matchesMark(e[i])&&!this.isLocked(u.dom)){a=l;break}}if(a>-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let l=Vn.create(this.top,e[i],n,o);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,i++}}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 u=this.top.children[a];if(u.matchesNode(e,n,o)&&!this.preMatch.matched.has(u)){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==bt&&s.dom==s.contentDOM&&(s.dirty=Hn),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 en){let u=this.preMatch.matched.get(l);if(u!=null&&u!=i)return!1;let c=l.dom,m,d=this.isLocked(c)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=bt&&ps(n,l.outerDeco));if(!d&&l.update(e,n,o,r))return this.destroyBetween(this.index,a),l.dom!=c&&(this.changed=!0),this.index++,!0;if(!d&&(m=this.recreateWrapper(l,e,n,o,r,s)))return this.destroyBetween(this.index,a),this.top.children[this.index]=m,m.contentDOM&&(m.dirty=Hn,m.updateChildren(r,s+1),m.dirty=tt),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)||!ps(o,e.outerDeco)||!r.eq(e.innerDeco))return null;let a=en.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=en.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 Xf(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 Vn;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof fs)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Le||Me)&&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 tp(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 SS(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 u=n.children[o-1];if(u instanceof Vn)n=u,o=u.children.length;else{a=u,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 vS(t,e){return t.type.side-e.type.side}function bS(t,e,n,o){let r=e.locals(t),i=0;if(r.length==0){for(let u=0;u<t.childCount;u++){let c=t.child(u);o(c,r,e.forChild(i,c),u),i+=c.nodeSize}return}let s=0,a=[],l=null;for(let u=0;;){let c,m;for(;s<r.length&&r[s].to==i;){let h=r[s++];h.widget&&(c?(m||(m=[c])).push(h):c=h)}if(c)if(m){m.sort(vS);for(let h=0;h<m.length;h++)n(m[h],u,!!l)}else n(c,u,!!l);let d,f;if(l)f=-1,d=l,l=null;else if(u<t.childCount)f=u,d=t.child(u++);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+d.nodeSize;if(d.isText){let h=p;s<r.length&&r[s].from<h&&(h=r[s].from);for(let g=0;g<a.length;g++)a[g].to<h&&(h=a[g].to);h<p&&(l=d.cut(h-i),d=d.cut(0,h-i),p=h,f=-1)}else for(;s<r.length&&r[s].to<p;)s++;let y=d.isInline&&!d.isLeaf?a.filter(h=>!h.inline):a.slice();o(d,y,e.forChild(i,d),f),i=p}}function kS(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 xS(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 u=t.child(r++);if(i+=u.nodeSize,!u.isText)break;l+=u.text}if(i>=n){if(i>=o&&l.slice(o-e.length-a,o-a)==e)return o-e.length;let u=a<o?l.lastIndexOf(e,o-a-1):-1;if(u>=0&&u+e.length+a>=n)return a+u;if(n==o&&l.length>=o+e.length-a&&l.slice(o-a,o-a+e.length)==e)return o}}return-1}function Yl(t,e,n,o,r){let i=[];for(let s=0,a=0;s<t.length;s++){let l=t[s],u=a,c=a+=l.size;u>=n||c<=e?i.push(l):(u<e&&i.push(l.slice(0,e-u,o)),r&&(i.push(r),r=void 0),c>n&&i.push(l.slice(n-u,l.size,o)))}return i}function Kl(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,u;if(ms(n)){for(l=s;r&&!r.node;)r=r.parent;let m=r.node;if(r&&m.isAtom&&L.isSelectable(m)&&r.parent&&!(m.isInline&&qw(n.focusNode,n.focusOffset,r.dom))){let d=r.posBefore;u=new L(s==d?a:o.resolve(d))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let m=s,d=s;for(let f=0;f<n.rangeCount;f++){let p=n.getRangeAt(f);m=Math.min(m,t.docView.posFromDOM(p.startContainer,p.startOffset,1)),d=Math.max(d,t.docView.posFromDOM(p.endContainer,p.endOffset,-1))}if(m<0)return null;[l,s]=d==t.state.selection.anchor?[d,m]:[m,d],a=o.resolve(s)}else l=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let c=o.resolve(l);if(!u){let m=e=="pointer"||t.state.selection.head<a.pos&&!i?1:-1;u=ql(t,c,a,m)}return u}function sp(t){return t.editable?t.hasFocus():fp(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function It(t,e=!1){let n=t.state.selection;if(cp(t,n),!!sp(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&Me){let o=t.domSelectionRange(),r=t.domObserver.currentSelection;if(o.anchorNode&&r.anchorNode&&Fn(o.anchorNode,o.anchorOffset,r.anchorNode,r.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)CS(t);else{let{anchor:o,head:r}=n,i,s;ap&&!(n instanceof H)&&(n.$from.parent.inlineContent||(i=lp(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=lp(t,n.to))),t.docView.setSelection(o,r,t.root,e),ap&&(i&&up(i),s&&up(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&$S(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const ap=Le||Me&&Bf<63;function lp(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(Le&&r&&r.contentEditable=="false")return Wl(r);if((!r||r.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(r)return Wl(r);if(i)return Wl(i)}}function Wl(t){return t.contentEditable="true",Le&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function up(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function $S(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(()=>{(!sp(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function CS(t){let e=t.domSelection(),n=document.createRange();if(!e)return;let o=t.cursorWrapper.dom,r=o.nodeName=="IMG";r?n.setStart(o.parentNode,xe(o)+1):n.setStart(o,0),n.collapse(!0),e.removeAllRanges(),e.addRange(n),!r&&!t.state.selection.visible&&Ue&&Zt<=11&&(o.disabled=!0,o.disabled=!1)}function cp(t,e){if(e instanceof L){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(dp(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else dp(t)}function dp(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function ql(t,e,n,o){return t.someProp("createSelectionBetween",r=>r(t,e,n))||H.between(e,n,o)}function mp(t){return t.editable&&!t.hasFocus()?!1:fp(t)}function fp(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 ES(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return Fn(e.node,e.offset,n.anchorNode,n.anchorOffset)}function Gl(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&&J.findFrom(i,e)}function tn(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function pp(t,e,n){let o=t.state.selection;if(o instanceof H)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 tn(t,new H(o.$anchor,s))}else if(o.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let r=Gl(t.state,e);return r&&r instanceof L?tn(t,r):!1}else if(!(et&&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?L.isSelectable(i)?tn(t,new L(e<0?t.state.doc.resolve(r.pos-i.nodeSize):r)):Rr?tn(t,new H(t.state.doc.resolve(e<0?a:a+i.nodeSize))):!1:!1}}else return!1;else{if(o instanceof L&&o.node.isInline)return tn(t,new H(e>0?o.$to:o.$from));{let r=Gl(t.state,e);return r?tn(t,r):!1}}}function hs(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function jr(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function No(t,e){return e<0?NS(t):OS(t)}function NS(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let r,i,s=!1;for(pt&&n.nodeType==1&&o<hs(n)&&jr(n.childNodes[o],-1)&&(s=!0);;)if(o>0){if(n.nodeType!=1)break;{let a=n.childNodes[o-1];if(jr(a,-1))r=n,i=--o;else if(a.nodeType==3)n=a,o=n.nodeValue.length;else break}}else{if(hp(n))break;{let a=n.previousSibling;for(;a&&jr(a,-1);)r=n.parentNode,i=xe(a),a=a.previousSibling;if(a)n=a,o=hs(n);else{if(n=n.parentNode,n==t.dom)break;o=0}}}s?Ql(t,n,o):r&&Ql(t,r,i)}function OS(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let r=hs(n),i,s;for(;;)if(o<r){if(n.nodeType!=1)break;let a=n.childNodes[o];if(jr(a,1))i=n,s=++o;else break}else{if(hp(n))break;{let a=n.nextSibling;for(;a&&jr(a,1);)i=a.parentNode,s=xe(a)+1,a=a.nextSibling;if(a)n=a,o=0,r=hs(n);else{if(n=n.parentNode,n==t.dom)break;o=r=0}}}i&&Ql(t,i,s)}function hp(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function AS(t,e){for(;t&&e==t.childNodes.length&&!Ar(t);)e=xe(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 RS(t,e){for(;t&&!e&&!Ar(t);)e=xe(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 Ql(t,e,n){if(e.nodeType!=3){let i,s;(s=AS(e,n))?(e=s,n=0):(i=RS(e,n))&&(e=i,n=i.nodeValue.length)}let o=t.domSelection();if(!o)return;if(ms(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&&It(t)},50)}function gp(t,e){let n=t.state.doc.resolve(e);if(!(Me||Zw)&&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 yp(t,e,n){let o=t.state.selection;if(o instanceof H&&!o.empty||n.indexOf("s")>-1||et&&n.indexOf("m")>-1)return!1;let{$from:r,$to:i}=o;if(!r.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=Gl(t.state,e);if(s&&s instanceof L)return tn(t,s)}if(!r.parent.inlineContent){let s=e<0?r:i,a=o instanceof mt?J.near(s,e):J.findFrom(s,e);return a?tn(t,a):!1}return!1}function wp(t,e){if(!(t.state.selection instanceof H))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 Sp(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function MS(t){if(!Le||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;Sp(t,o,"true"),setTimeout(()=>Sp(t,o,"false"),20)}return!1}function DS(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function TS(t,e){let n=e.keyCode,o=DS(e);if(n==8||et&&n==72&&o=="c")return wp(t,-1)||No(t,-1);if(n==46&&!e.shiftKey||et&&n==68&&o=="c")return wp(t,1)||No(t,1);if(n==13||n==27)return!0;if(n==37||et&&n==66&&o=="c"){let r=n==37?gp(t,t.state.selection.from)=="ltr"?-1:1:-1;return pp(t,r,o)||No(t,r)}else if(n==39||et&&n==70&&o=="c"){let r=n==39?gp(t,t.state.selection.from)=="ltr"?1:-1:1;return pp(t,r,o)||No(t,r)}else{if(n==38||et&&n==80&&o=="c")return yp(t,-1,o)||No(t,-1);if(n==40||et&&n==78&&o=="c")return MS(t)||yp(t,1,o)||No(t,1);if(o==(et?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function vp(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")||zn.fromSchema(t.state.schema),a=Op(),l=a.createElement("div");l.appendChild(s.serializeFragment(o,{document:a}));let u=l.firstChild,c,m=0;for(;u&&u.nodeType==1&&(c=Ep[u.nodeName.toLowerCase()]);){for(let f=c.length-1;f>=0;f--){let p=a.createElement(c[f]);for(;l.firstChild;)p.appendChild(l.firstChild);l.appendChild(p),m++}u=l.firstChild}u&&u.nodeType==1&&u.setAttribute("data-pm-slice",`${r} ${i}${m?` -${m}`:""} ${JSON.stringify(n)}`);let d=t.someProp("clipboardTextSerializer",f=>f(e,t))||e.content.textBetween(0,e.content.size,`
25
+
26
+ `);return{dom:l,text:d,slice:e}}function bp(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",d=>{e=d(e,i||o,t)}),i)return e?new D(N.from(t.state.schema.text(e.replace(/\r\n?/g,`
27
+ `))),0,0):D.empty;let m=t.someProp("clipboardTextParser",d=>d(e,r,o,t));if(m)a=m;else{let d=r.marks(),{schema:f}=t.state,p=zn.fromSchema(f);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(y=>{let h=s.appendChild(document.createElement("p"));y&&h.appendChild(p.serializeNode(f.text(y,d)))})}}else t.someProp("transformPastedHTML",m=>{n=m(n,t)}),s=LS(n),Rr&&zS(s);let u=s&&s.querySelector("[data-pm-slice]"),c=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(c&&c[3])for(let m=+c[3];m>0;m--){let d=s.firstChild;for(;d&&d.nodeType!=1;)d=d.nextSibling;if(!d)break;s=d}if(a||(a=(t.someProp("clipboardParser")||t.someProp("domParser")||Kt.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(l||c),context:r,ruleFromNode(d){return d.nodeName=="BR"&&!d.nextSibling&&d.parentNode&&!jS.test(d.parentNode.nodeName)?{ignore:!0}:null}})),c)a=FS(Cp(a,+c[1],+c[2]),c[4]);else if(a=D.maxOpen(PS(a.content,r),!0),a.openStart||a.openEnd){let m=0,d=0;for(let f=a.content.firstChild;m<a.openStart&&!f.type.spec.isolating;m++,f=f.firstChild);for(let f=a.content.lastChild;d<a.openEnd&&!f.type.spec.isolating;d++,f=f.lastChild);a=Cp(a,m,d)}return t.someProp("transformPasted",m=>{a=m(a,t)}),a}const jS=/^(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 PS(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),u;if(!l)return s=null;if(u=s.length&&i.length&&xp(l,i,a,s[s.length-1],0))s[s.length-1]=u;else{s.length&&(s[s.length-1]=$p(s[s.length-1],i.length));let c=kp(a,l);s.push(c),r=r.matchType(c.type),i=l}}),s)return N.from(s)}return t}function kp(t,e,n=0){for(let o=e.length-1;o>=n;o--)t=e[o].create(null,N.from(t));return t}function xp(t,e,n,o,r){if(r<t.length&&r<e.length&&t[r]==e[r]){let i=xp(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(N.from(kp(n,t,r+1))))}}function $p(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,$p(t.lastChild,e-1)),o=t.contentMatchAt(t.childCount).fillBefore(N.empty,!0);return t.copy(n.append(o))}function Zl(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=Zl(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(N.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(a))}function Cp(t,e,n){return e<t.openStart&&(t=new D(Zl(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new D(Zl(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const Ep={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 Np=null;function Op(){return Np||(Np=document.implementation.createHTMLDocument("title"))}function IS(t){let e=window.trustedTypes;return e?e.createPolicy("detachedDocument",{createHTML:n=>n}).createHTML(t):t}function LS(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=Op().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(t),r;if((r=o&&Ep[o[1].toLowerCase()])&&(t=r.map(i=>"<"+i+">").join("")+t+r.map(i=>"</"+i+">").reverse().join("")),n.innerHTML=IS(t),r)for(let i=0;i<r.length;i++)n=n.querySelector(r[i])||n;return n}function zS(t){let e=t.querySelectorAll(Me?"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 FS(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=N.from(l.create(o[a+1],r)),i++,s++}return new D(r,i,s)}const ze={},Fe={},BS={touchstart:!0,touchmove:!0};class HS{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function VS(t){for(let e in ze){let n=ze[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=o=>{JS(t,o)&&!eu(t,o)&&(t.editable||!(o.type in Fe))&&n(t,o)},BS[e]?{passive:!0}:void 0)}Le&&t.dom.addEventListener("input",()=>null),Xl(t)}function nn(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function US(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 Xl(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=o=>eu(t,o))})}function eu(t,e){return t.someProp("handleDOMEvents",n=>{let o=n[e.type];return o?o(t,e)||e.defaultPrevented:!1})}function JS(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 _S(t,e){!eu(t,e)&&ze[e.type]&&(t.editable||!(e.type in Fe))&&ze[e.type](t,e)}Fe.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!Rp(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(ht&&Me&&n.keyCode==13)))if(t.domObserver.selectionChanged(t.domSelectionRange())?t.domObserver.flush():n.keyCode!=229&&t.domObserver.forceFlush(),Co&&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,Bn(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",o=>o(t,n))||TS(t,n)?n.preventDefault():nn(t,"key")},Fe.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},Fe.keypress=(t,e)=>{let n=e;if(Rp(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||et&&n.metaKey)return;if(t.someProp("handleKeyPress",r=>r(t,n))){n.preventDefault();return}let o=t.state.selection;if(!(o instanceof H)||!o.$from.sameParent(o.$to)){let r=String.fromCharCode(n.charCode);!/[\r\n]/.test(r)&&!t.someProp("handleTextInput",i=>i(t,o.$from.pos,o.$to.pos,r))&&t.dispatch(t.state.tr.insertText(r).scrollIntoView()),n.preventDefault()}};function gs(t){return{left:t.clientX,top:t.clientY}}function YS(t,e){let n=e.x-t.clientX,o=e.y-t.clientY;return n*n+o*o<100}function tu(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 Oo(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let o=t.state.tr.setSelection(e);n=="pointer"&&o.setMeta("pointer",!0),t.dispatch(o)}function KS(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),o=n.nodeAfter;return o&&o.isAtom&&L.isSelectable(o)?(Oo(t,new L(n),"pointer"),!0):!1}function WS(t,e){if(e==-1)return!1;let n=t.state.selection,o,r;n instanceof L&&(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(L.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?(Oo(t,L.create(t.state.doc,r),"pointer"),!0):!1}function qS(t,e,n,o,r){return tu(t,"handleClickOn",e,n,o)||t.someProp("handleClick",i=>i(t,e,o))||(r?WS(t,n):KS(t,n))}function GS(t,e,n,o){return tu(t,"handleDoubleClickOn",e,n,o)||t.someProp("handleDoubleClick",r=>r(t,e,o))}function QS(t,e,n,o){return tu(t,"handleTripleClickOn",e,n,o)||t.someProp("handleTripleClick",r=>r(t,e,o))||ZS(t,n,o)}function ZS(t,e,n){if(n.button!=0)return!1;let o=t.state.doc;if(e==-1)return o.inlineContent?(Oo(t,H.create(o,0,o.content.size),"pointer"),!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)Oo(t,H.create(o,a+1,a+1+s.content.size),"pointer");else if(L.isSelectable(s))Oo(t,L.create(o,a),"pointer");else continue;return!0}}function nu(t){return ys(t)}const Ap=et?"metaKey":"ctrlKey";ze.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let o=nu(t),r=Date.now(),i="singleClick";r-t.input.lastClick.time<500&&YS(n,t.input.lastClick)&&!n[Ap]&&(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};let s=t.posAtCoords(gs(n));s&&(i=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new XS(t,s,n,!!o)):(i=="doubleClick"?GS:QS)(t,s.pos,s.inside,n)?n.preventDefault():nn(t,"pointer"))};class XS{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[Ap],this.allowDefault=o.shiftKey;let i,s;if(n.inside>-1)i=e.state.doc.nodeAt(n.inside),s=n.inside;else{let c=e.state.doc.resolve(n.pos);i=c.parent,s=c.depth?c.before():0}const a=r?null:o.target,l=a?e.docView.nearestDesc(a,!0):null;this.target=l&&l.dom.nodeType==1?l.dom:null;let{selection:u}=e.state;(o.button==0&&i.type.spec.draggable&&i.type.spec.selectable!==!1||u instanceof L&&u.from<=s&&u.to>s)&&(this.mightDrag={node:i,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&pt&&!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)),nn(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(()=>It(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(gs(e))),this.updateAllowDefault(e),this.allowDefault||!n?nn(this.view,"pointer"):qS(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Le&&this.mightDrag&&!this.mightDrag.node.isAtom||Me&&!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)?(Oo(this.view,J.near(this.view.state.doc.resolve(n.pos)),"pointer"),e.preventDefault()):nn(this.view,"pointer")}move(e){this.updateAllowDefault(e),nn(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)}}ze.touchstart=t=>{t.input.lastTouch=Date.now(),nu(t),nn(t,"pointer")},ze.touchmove=t=>{t.input.lastTouch=Date.now(),nn(t,"pointer")},ze.contextmenu=t=>nu(t);function Rp(t,e){return t.composing?!0:Le&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const ev=ht?5e3:-1;Fe.compositionstart=Fe.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof H&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(o=>o.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),ys(t,!0),t.markCursor=null;else if(ys(t,!e.selection.empty),pt&&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}Mp(t,ev)},Fe.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.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,Mp(t,20))};function Mp(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>ys(t),e))}function Dp(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=nv());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function tv(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=Kw(e.focusNode,e.focusOffset),o=Ww(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 nv(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function ys(t,e=!1){if(!(ht&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),Dp(t),e||t.docView&&t.docView.dirty){let n=Kl(t);return n&&!n.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!t.state.selection.empty?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function ov(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 Pr=Ue&&Zt<15||Co&&Xw<604;ze.copy=Fe.cut=(t,e)=>{let n=e,o=t.state.selection,r=n.type=="cut";if(o.empty)return;let i=Pr?null:n.clipboardData,s=o.content(),{dom:a,text:l}=vp(t,s);i?(n.preventDefault(),i.clearData(),i.setData("text/html",a.innerHTML),i.setData("text/plain",l)):ov(t,a),r&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function rv(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function iv(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?Ir(t,o.value,null,r,e):Ir(t,o.textContent,o.innerHTML,r,e)},50)}function Ir(t,e,n,o,r){let i=bp(t,e,n,o,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,r,i||D.empty)))return!0;if(!i)return!1;let s=rv(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 Tp(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," "):""}Fe.paste=(t,e)=>{let n=e;if(t.composing&&!ht)return;let o=Pr?null:n.clipboardData,r=t.input.shiftKey&&t.input.lastKeyCode!=45;o&&Ir(t,Tp(o),o.getData("text/html"),r,n)?n.preventDefault():iv(t,n)};class jp{constructor(e,n,o){this.slice=e,this.move=n,this.node=o}}const Pp=et?"altKey":"ctrlKey";ze.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(gs(n)),s;if(!(i&&i.pos>=r.from&&i.pos<=(r instanceof L?r.to-1:r.to))){if(o&&o.mightDrag)s=L.create(t.state.doc,o.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let m=t.docView.nearestDesc(n.target,!0);m&&m.node.type.spec.draggable&&m!=t.docView&&(s=L.create(t.state.doc,m.posBefore))}}let a=(s||t.state.selection).content(),{dom:l,text:u,slice:c}=vp(t,a);(!n.dataTransfer.files.length||!Me||Bf>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Pr?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",Pr||n.dataTransfer.setData("text/plain",u),t.dragging=new jp(c,!n[Pp],s)},ze.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},Fe.dragover=Fe.dragenter=(t,e)=>e.preventDefault(),Fe.drop=(t,e)=>{let n=e,o=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let r=t.posAtCoords(gs(n));if(!r)return;let i=t.state.doc.resolve(r.pos),s=o&&o.slice;s?t.someProp("transformPasted",p=>{s=p(s,t)}):s=bp(t,Tp(n.dataTransfer),Pr?null:n.dataTransfer.getData("text/html"),!1,i);let a=!!(o&&!n[Pp]);if(t.someProp("handleDrop",p=>p(t,n,s||D.empty,a))){n.preventDefault();return}if(!s)return;n.preventDefault();let l=s?jw(t.state.doc,i.pos,s):i.pos;l==null&&(l=i.pos);let u=t.state.tr;if(a){let{node:p}=o;p?p.replace(u):u.deleteSelection()}let c=u.mapping.map(l),m=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,d=u.doc;if(m?u.replaceRangeWith(c,c,s.content.firstChild):u.replaceRange(c,c,s),u.doc.eq(d))return;let f=u.doc.resolve(c);if(m&&L.isSelectable(s.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(s.content.firstChild))u.setSelection(new L(f));else{let p=u.mapping.map(l);u.mapping.maps[u.mapping.maps.length-1].forEach((y,h,g,w)=>p=w),u.setSelection(ql(t,f,u.doc.resolve(p)))}t.focus(),t.dispatch(u.setMeta("uiEvent","drop"))},ze.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())&&It(t)},20))},ze.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)},ze.beforeinput=(t,e)=>{if(Me&&ht&&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,Bn(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 Fe)ze[t]=Fe[t];function Lr(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 ws{constructor(e,n){this.toDOM=e,this.spec=n||Jn,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 nt(i-o,i-o,this)}valid(){return!0}eq(e){return this==e||e instanceof ws&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Lr(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class on{constructor(e,n){this.attrs=e,this.spec=n||Jn}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 nt(i,s,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof on&&Lr(this.attrs,e.attrs)&&Lr(this.spec,e.spec)}static is(e){return e.type instanceof on}destroy(){}}class ou{constructor(e,n){this.attrs=e,this.spec=n||Jn}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 nt(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 ou&&Lr(this.attrs,e.attrs)&&Lr(this.spec,e.spec)}destroy(){}}class nt{constructor(e,n,o){this.from=e,this.to=n,this.type=o}copy(e,n){return new nt(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 nt(e,e,new ws(n,o))}static inline(e,n,o,r){return new nt(e,n,new on(o,r))}static node(e,n,o,r){return new nt(e,n,new ou(o,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof on}get widget(){return this.type instanceof ws}}const Ao=[],Jn={};class me{constructor(e,n){this.local=e.length?e:Ao,this.children=n.length?n:Ao}static create(e,n){return n.length?Ss(n,e,0,Jn):De}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==De||e.maps.length==0?this:this.mapInner(e,n,0,0,o||Jn)}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?sv(this.children,s||[],e,n,o,r,i):s?new me(s.sort(_n),Ao):De}add(e,n){return n.length?this==De?me.create(e,n):this.addInner(e,n,0):this}addInner(e,n,o){let r,i=0;e.forEach((a,l)=>{let u=l+o,c;if(c=Lp(n,a,u)){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,c,u+1):r.splice(i,0,l,l+a.nodeSize,Ss(c,a,u+1,Jn)),i+=3}});let s=Ip(i?zp(n):n,-o);for(let a=0;a<s.length;a++)s[a].type.valid(e,s[a])||s.splice(a--,1);return new me(s.length?this.local.concat(s).sort(_n):this.local,r||this.children)}remove(e){return e.length==0||this==De?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 c=0,m;c<e.length;c++)(m=e[c])&&m.from>a&&m.to<l&&(e[c]=null,(s||(s=[])).push(m));if(!s)continue;o==this.children&&(o=this.children.slice());let u=o[i+2].removeInner(s,a+1);u!=De?o[i+2]=u:(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 me(r,o):De}forChild(e,n){if(this==De)return this;if(n.isLeaf)return me.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 on){let u=Math.max(i,l.from)-i,c=Math.min(s,l.to)-i;u<c&&(r||(r=[])).push(l.copy(u,c))}}if(r){let a=new me(r.sort(_n),Ao);return o?new rn([a,o]):a}return o||De}eq(e){if(this==e)return!0;if(!(e instanceof me)||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 ru(this.localsInner(e))}localsInner(e){if(this==De)return Ao;if(e.inlineContent||!this.local.some(on.is))return this.local;let n=[];for(let o=0;o<this.local.length;o++)this.local[o].type instanceof on||n.push(this.local[o]);return n}forEachSet(e){e(this)}}me.empty=new me([],[]),me.removeOverlap=ru;const De=me.empty;class rn{constructor(e){this.members=e}map(e,n){const o=this.members.map(r=>r.map(e,n,Jn));return rn.from(o)}forChild(e,n){if(n.isLeaf)return me.empty;let o=[];for(let r=0;r<this.members.length;r++){let i=this.members[r].forChild(e,n);i!=De&&(i instanceof rn?o=o.concat(i.members):o.push(i))}return rn.from(o)}eq(e){if(!(e instanceof rn)||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?ru(o?n:n.sort(_n)):Ao}static from(e){switch(e.length){case 0:return De;case 1:return e[0];default:return new rn(e.every(n=>n instanceof me)?e:e.reduce((n,o)=>n.concat(o instanceof me?o:o.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(e)}}function sv(t,e,n,o,r,i,s){let a=t.slice();for(let u=0,c=i;u<n.maps.length;u++){let m=0;n.maps[u].forEach((d,f,p,y)=>{let h=y-p-(f-d);for(let g=0;g<a.length;g+=3){let w=a[g+1];if(w<0||d>w+c-m)continue;let v=a[g]+c-m;f>=v?a[g+1]=d<=v?-2:-1:d>=c&&h&&(a[g]+=h,a[g+1]+=h)}m+=h}),c=n.maps[u].map(c,-1)}let l=!1;for(let u=0;u<a.length;u+=3)if(a[u+1]<0){if(a[u+1]==-2){l=!0,a[u+1]=-1;continue}let c=n.map(t[u]+i),m=c-r;if(m<0||m>=o.content.size){l=!0;continue}let d=n.map(t[u+1]+i,-1),f=d-r,{index:p,offset:y}=o.content.findIndex(m),h=o.maybeChild(p);if(h&&y==m&&y+h.nodeSize==f){let g=a[u+2].mapInner(n,h,c+1,t[u]+i+1,s);g!=De?(a[u]=m,a[u+1]=f,a[u+2]=g):(a[u+1]=-2,l=!0)}else l=!0}if(l){let u=av(a,t,e,n,r,i,s),c=Ss(u,o,0,s);e=c.local;for(let m=0;m<a.length;m+=3)a[m+1]<0&&(a.splice(m,3),m-=3);for(let m=0,d=0;m<c.children.length;m+=3){let f=c.children[m];for(;d<a.length&&a[d]<f;)d+=3;a.splice(d,0,c.children[m],c.children[m+1],c.children[m+2])}}return new me(e.sort(_n),a)}function Ip(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 nt(r.from+e,r.to+e,r.type))}return n}function av(t,e,n,o,r,i,s){function a(l,u){for(let c=0;c<l.local.length;c++){let m=l.local[c].map(o,r,u);m?n.push(m):s.onRemove&&s.onRemove(l.local[c].spec)}for(let c=0;c<l.children.length;c+=3)a(l.children[c+2],l.children[c]+u+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 Lp(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 zp(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function Ss(t,e,n,o){let r=[],i=!1;e.forEach((a,l)=>{let u=Lp(t,a,l+n);if(u){i=!0;let c=Ss(u,a,n+l+1,o);c!=De&&r.push(l,l+a.nodeSize,c)}});let s=Ip(i?zp(t):t,-n).sort(_n);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 me(s,r):De}function _n(t,e){return t.from-e.from||t.to-e.to}function ru(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),Fp(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),Fp(e,r,o.copy(i.from,o.to)));break}}}return e}function Fp(t,e,n){for(;e<t.length&&_n(n,t[e])>0;)e++;t.splice(e,0,n)}function iu(t){let e=[];return t.someProp("decorations",n=>{let o=n(t.state);o&&o!=De&&e.push(o)}),t.cursorWrapper&&e.push(me.create(t.state.doc,[t.cursorWrapper.deco])),rn.from(e)}const lv={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},uv=Ue&&Zt<=11;class cv{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 dv{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new cv,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]);Ue&&Zt<=11&&o.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),uv&&(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,lv)),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(mp(this.view)){if(this.suppressingSelectionUpdates)return It(this.view);if(Ue&&Zt<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Fn(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=Or(i))n.add(i);for(let i=e.anchorNode;i;i=Or(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}selectionChanged(e){return!this.suppressingSelectionUpdates&&!this.currentSelection.eq(e)&&mp(this.view)&&!this.ignoreSelectionChange(e)}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.selectionChanged(o),i=-1,s=-1,a=!1,l=[];if(e.editable)for(let c=0;c<n.length;c++){let m=this.registerMutation(n[c],l);m&&(i=i<0?m.from:Math.min(m.from,i),s=s<0?m.to:Math.max(m.to,s),m.typeOver&&(a=!0))}if(pt&&l.length){let c=l.filter(m=>m.nodeName=="BR");if(c.length==2){let[m,d]=c;m.parentNode&&m.parentNode.parentNode==d.parentNode?d.remove():m.remove()}else{let{focusNode:m}=this.currentSelection;for(let d of c){let f=d.parentNode;f&&f.nodeName=="LI"&&(!m||pv(e,m)!=f)&&d.remove()}}}let u=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&ms(o)&&(u=Kl(e))&&u.eq(J.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,It(e),this.currentSelection.set(o),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,s),mv(e)),this.handleDOMChange(i,s,a,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(o)||It(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 c=0;c<e.addedNodes.length;c++){let m=e.addedNodes[c];n.push(m),m.nodeType==3&&(this.lastChangedTextNode=m)}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(Ue&&Zt<=11&&e.addedNodes.length)for(let c=0;c<e.addedNodes.length;c++){let{previousSibling:m,nextSibling:d}=e.addedNodes[c];(!m||Array.prototype.indexOf.call(e.addedNodes,m)<0)&&(r=m),(!d||Array.prototype.indexOf.call(e.addedNodes,d)<0)&&(i=d)}let s=r&&r.parentNode==e.target?xe(r)+1:0,a=o.localPosFromDOM(e.target,s,-1),l=i&&i.parentNode==e.target?xe(i):e.target.childNodes.length,u=o.localPosFromDOM(e.target,l,1);return{from:a,to:u}}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 Bp=new WeakMap,Hp=!1;function mv(t){if(!Bp.has(t)&&(Bp.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=pt,Hp)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."),Hp=!0}}function Vp(t,e){let n=e.startContainer,o=e.startOffset,r=e.endContainer,i=e.endOffset,s=t.domAtPos(t.state.selection.anchor);return Fn(s.node,s.offset,r,i)&&([n,o,r,i]=[r,i,n,o]),{anchorNode:n,anchorOffset:o,focusNode:r,focusOffset:i}}function fv(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return Vp(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?Vp(t,n):null}function pv(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 hv(t,e,n){let{node:o,fromOffset:r,toOffset:i,from:s,to:a}=t.docView.parseRange(e,n),l=t.domSelectionRange(),u,c=l.anchorNode;if(c&&t.dom.contains(c.nodeType==1?c:c.parentNode)&&(u=[{node:c,offset:l.anchorOffset}],ms(l)||u.push({node:l.focusNode,offset:l.focusOffset})),Me&&t.input.lastKeyCode===8)for(let h=i;h>r;h--){let g=o.childNodes[h-1],w=g.pmViewDesc;if(g.nodeName=="BR"&&!w){i=h;break}if(!w||w.size)break}let m=t.state.doc,d=t.someProp("domParser")||Kt.fromSchema(t.state.schema),f=m.resolve(s),p=null,y=d.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:u,ruleFromNode:gv,context:f});if(u&&u[0].pos!=null){let h=u[0].pos,g=u[1]&&u[1].pos;g==null&&(g=h),p={anchor:h+s,head:g+s}}return{doc:y,sel:p,from:s,to:a}}function gv(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(Le&&/^(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||Le&&/^(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 yv=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function wv(t,e,n,o,r){let i=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let C=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,_=Kl(t,C);if(_&&!t.state.selection.eq(_)){if(Me&&ht&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",X=>X(t,Bn(13,"Enter"))))return;let se=t.state.tr.setSelection(_);C=="pointer"?se.setMeta("pointer",!0):C=="key"&&se.scrollIntoView(),i&&se.setMeta("composition",i),t.dispatch(se)}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,u=hv(t,e,n),c=t.state.doc,m=c.slice(u.from,u.to),d,f;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(d=t.state.selection.to,f="end"):(d=t.state.selection.from,f="start"),t.input.lastKeyCode=null;let p=bv(m.content,u.doc.content,u.from,d,f);if(p&&t.input.domChangeCount++,(Co&&t.input.lastIOSEnter>Date.now()-225||ht)&&r.some(C=>C.nodeType==1&&!yv.test(C.nodeName))&&(!p||p.endA>=p.endB)&&t.someProp("handleKeyDown",C=>C(t,Bn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!p)if(o&&l instanceof H&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(u.sel&&u.sel.anchor!=u.sel.head))p={start:l.from,endA:l.to,endB:l.to};else{if(u.sel){let C=Up(t,t.state.doc,u.sel);if(C&&!C.eq(t.state.selection)){let _=t.state.tr.setSelection(C);i&&_.setMeta("composition",i),t.dispatch(_)}}return}t.state.selection.from<t.state.selection.to&&p.start==p.endB&&t.state.selection instanceof H&&(p.start>t.state.selection.from&&p.start<=t.state.selection.from+2&&t.state.selection.from>=u.from?p.start=t.state.selection.from:p.endA<t.state.selection.to&&p.endA>=t.state.selection.to-2&&t.state.selection.to<=u.to&&(p.endB+=t.state.selection.to-p.endA,p.endA=t.state.selection.to)),Ue&&Zt<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>u.from&&u.doc.textBetween(p.start-u.from-1,p.start-u.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let y=u.doc.resolveNoCache(p.start-u.from),h=u.doc.resolveNoCache(p.endB-u.from),g=c.resolve(p.start),w=y.sameParent(h)&&y.parent.inlineContent&&g.end()>=p.endA,v;if((Co&&t.input.lastIOSEnter>Date.now()-225&&(!w||r.some(C=>C.nodeName=="DIV"||C.nodeName=="P"))||!w&&y.pos<u.doc.content.size&&!y.sameParent(h)&&(v=J.findFrom(u.doc.resolve(y.pos+1),1,!0))&&v.head==h.pos)&&t.someProp("handleKeyDown",C=>C(t,Bn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>p.start&&vv(c,p.start,p.endA,y,h)&&t.someProp("handleKeyDown",C=>C(t,Bn(8,"Backspace")))){ht&&Me&&t.domObserver.suppressSelectionUpdates();return}Me&&ht&&p.endB==p.start&&(t.input.lastAndroidDelete=Date.now()),ht&&!w&&y.start()!=h.start()&&h.parentOffset==0&&y.depth==h.depth&&u.sel&&u.sel.anchor==u.sel.head&&u.sel.head==p.endA&&(p.endB-=2,h=u.doc.resolveNoCache(p.endB-u.from),setTimeout(()=>{t.someProp("handleKeyDown",function(C){return C(t,Bn(13,"Enter"))})},20));let k=p.start,E=p.endA,b,$,R;if(w){if(y.pos==h.pos)Ue&&Zt<=11&&y.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>It(t),20)),b=t.state.tr.delete(k,E),$=c.resolve(p.start).marksAcross(c.resolve(p.endA));else if(p.endA==p.endB&&(R=Sv(y.parent.content.cut(y.parentOffset,h.parentOffset),g.parent.content.cut(g.parentOffset,p.endA-g.start()))))b=t.state.tr,R.type=="add"?b.addMark(k,E,R.mark):b.removeMark(k,E,R.mark);else if(y.parent.child(y.index()).isText&&y.index()==h.index()-(h.textOffset?0:1)){let C=y.parent.textBetween(y.parentOffset,h.parentOffset);if(t.someProp("handleTextInput",_=>_(t,k,E,C)))return;b=t.state.tr.insertText(C,k,E)}}if(b||(b=t.state.tr.replace(k,E,u.doc.slice(p.start-u.from,p.endB-u.from))),u.sel){let C=Up(t,b.doc,u.sel);C&&!(Me&&ht&&t.composing&&C.empty&&(p.start!=p.endB||t.input.lastAndroidDelete<Date.now()-100)&&(C.head==k||C.head==b.mapping.map(E)-1)||Ue&&C.empty&&C.head==k)&&b.setSelection(C)}$&&b.ensureMarks($),i&&b.setMeta("composition",i),t.dispatch(b.scrollIntoView())}function Up(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:ql(t,e.resolve(n.anchor),e.resolve(n.head))}function Sv(t,e){let n=t.firstChild.marks,o=e.firstChild.marks,r=n,i=o,s,a,l;for(let c=0;c<o.length;c++)r=o[c].removeFromSet(r);for(let c=0;c<n.length;c++)i=n[c].removeFromSet(i);if(r.length==1&&i.length==0)a=r[0],s="add",l=c=>c.mark(a.addToSet(c.marks));else if(r.length==0&&i.length==1)a=i[0],s="remove",l=c=>c.mark(a.removeFromSet(c.marks));else return null;let u=[];for(let c=0;c<e.childCount;c++)u.push(l(e.child(c)));if(N.from(u).eq(t))return{mark:a,type:s}}function vv(t,e,n,o,r){if(n-e<=r.pos-o.pos||su(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(su(i,!0,!0));return!s.parent.isTextblock||s.pos>n||su(s,!0,!1)<n?!1:o.parent.content.cut(o.parentOffset).eq(s.parent.content)}function su(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 bv(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&&Jp(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&&Jp(t.textBetween(i-1,i+1))&&(i+=l?1:-1),s=i+(s-a),a=i}return{start:i,endA:s,endB:a}}function Jp(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 kv{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 HS,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(qp),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=Kp(this),Yp(this),this.nodeViews=Wp(this),this.docView=ep(this.state.doc,_p(this),iu(this),this.dom,this),this.domObserver=new dv(this,(o,r,i,s)=>wv(this,o,r,i,s)),this.domObserver.start(),VS(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&&Xl(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(qp),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&&(Dp(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=Wp(this);$v(f,this.nodeViews)&&(this.nodeViews=f,i=!0)}(a||n.handleDOMEvents!=this._props.handleDOMEvents)&&Xl(this),this.editable=Kp(this),Yp(this);let l=iu(this),u=_p(this),c=r.plugins!=e.plugins&&!r.doc.eq(e.doc)?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",m=i||!this.docView.matchesNode(e.doc,u,l);(m||!e.selection.eq(r.selection))&&(s=!0);let d=c=="preserve"&&s&&this.dom.style.overflowAnchor==null&&nS(this);if(s){this.domObserver.stop();let f=m&&(Ue||Me)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&xv(r.selection,e.selection);if(m){let p=Me?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=tv(this)),(i||!this.docView.update(e.doc,u,l,this))&&(this.docView.updateOuterDeco(u),this.docView.destroy(),this.docView=ep(e.doc,u,l,this.dom,this)),p&&!this.trackWrites&&(f=!0)}f||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&ES(this))?It(this,f):(cp(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),c=="reset"?this.dom.scrollTop=0:c=="to selection"?this.scrollToSelection():d&&oS(d)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof L){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&Hf(this,n.getBoundingClientRect(),e)}else Hf(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(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&&this.state.doc.nodeAt(i))==o.node&&(r=i)}this.dragging=new jp(e.slice,e.move,r<0?void 0:L.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(Ue){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&&rS(this.dom),It(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 uS(this,e)}coordsAtPos(e,n=1){return Kf(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 pS(this,n||this.state,e)}pasteHTML(e,n){return Ir(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Ir(this,e,null,!0,n||new ClipboardEvent("paste"))}destroy(){this.docView&&(US(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],iu(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,_w())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return _S(this,e)}dispatch(e){let n=this._props.dispatchTransaction;n?n.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){let e=this.domSelection();return e?Le&&this.root.nodeType===11&&Gw(this.dom.ownerDocument)==this.dom&&fv(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function _p(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"),[nt.node(0,t.state.doc.content.size,e)]}function Yp(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:nt.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function Kp(t){return!t.someProp("editable",e=>e(t.state)===!1)}function xv(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 Wp(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 $v(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 qp(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 sn={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:"'"},vs={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Cv=typeof navigator<"u"&&/Mac/.test(navigator.platform),Ev=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),$e=0;$e<10;$e++)sn[48+$e]=sn[96+$e]=String($e);for(var $e=1;$e<=24;$e++)sn[$e+111]="F"+$e;for(var $e=65;$e<=90;$e++)sn[$e]=String.fromCharCode($e+32),vs[$e]=String.fromCharCode($e);for(var au in sn)vs.hasOwnProperty(au)||(vs[au]=sn[au]);function Nv(t){var e=Cv&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Ev&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?vs:sn)[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 Ov=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function Av(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))Ov?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 Rv(t){let e=Object.create(null);for(let n in t)e[Av(n)]=t[n];return e}function lu(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 Mv(t){return new Ve({props:{handleKeyDown:Dv(t)}})}function Dv(t){let e=Rv(t);return function(n,o){let r=Nv(o),i,s=e[lu(r,o)];if(s&&s(n.state,n.dispatch,n))return!0;if(r.length==1&&r!=" "){if(o.shiftKey){let a=e[lu(r,o,!1)];if(a&&a(n.state,n.dispatch,n))return!0}if((o.shiftKey||o.altKey||o.metaKey||r.charCodeAt(0)>127)&&(i=sn[o.keyCode])&&i!=r){let a=e[lu(i,o)];if(a&&a(n.state,n.dispatch,n))return!0}}return!1}}const Tv=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function Gp(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const jv=(t,e,n)=>{let o=Gp(t,n);if(!o)return!1;let r=uu(o);if(!r){let s=o.blockRange(),a=s&&So(s);return a==null?!1:(e&&e(t.tr.lift(s,a).scrollIntoView()),!0)}let i=r.nodeBefore;if(eh(t,r,e,-1))return!0;if(o.parent.content.size==0&&(Ro(i,"end")||L.isSelectable(i)))for(let s=o.depth;;s--){let a=us(t.doc,o.before(s),o.after(s),D.empty);if(a&&a.slice.size<a.to-a.from){if(e){let l=t.tr.step(a);l.setSelection(Ro(i,"end")?J.findFrom(l.doc.resolve(l.mapping.map(r.pos,-1)),-1):L.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},Pv=(t,e,n)=>{let o=Gp(t,n);if(!o)return!1;let r=uu(o);return r?Qp(t,r,e):!1},Iv=(t,e,n)=>{let o=Zp(t,n);if(!o)return!1;let r=cu(o);return r?Qp(t,r,e):!1};function Qp(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 c=r.lastChild;if(!c)return!1;r=c}let s=e.nodeAfter,a=s,l=e.pos+1;for(;!a.isTextblock;l++){if(a.type.spec.isolating)return!1;let c=a.firstChild;if(!c)return!1;a=c}let u=us(t.doc,i,l,D.empty);if(!u||u.from!=i||u instanceof he&&u.slice.size>=l-i)return!1;if(n){let c=t.tr.step(u);c.setSelection(H.create(c.doc,i)),n(c.scrollIntoView())}return!0}function Ro(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 Lv=(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=uu(o)}let s=i&&i.nodeBefore;return!s||!L.isSelectable(s)?!1:(e&&e(t.tr.setSelection(L.create(t.doc,i.pos-s.nodeSize)).scrollIntoView()),!0)};function uu(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 Zp(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const zv=(t,e,n)=>{let o=Zp(t,n);if(!o)return!1;let r=cu(o);if(!r)return!1;let i=r.nodeAfter;if(eh(t,r,e,1))return!0;if(o.parent.content.size==0&&(Ro(i,"start")||L.isSelectable(i))){let s=us(t.doc,o.before(),o.after(),D.empty);if(s&&s.slice.size<s.to-s.from){if(e){let a=t.tr.step(s);a.setSelection(Ro(i,"start")?J.findFrom(a.doc.resolve(a.mapping.map(r.pos)),1):L.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},Fv=(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=cu(o)}let s=i&&i.nodeAfter;return!s||!L.isSelectable(s)?!1:(e&&e(t.tr.setSelection(L.create(t.doc,i.pos)).scrollIntoView()),!0)};function cu(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 Bv=(t,e)=>{let n=t.selection,o=n instanceof L,r;if(o){if(n.node.isTextblock||!Gt(t.doc,n.from))return!1;r=n.from}else if(r=ls(t.doc,n.from,-1),r==null)return!1;if(e){let i=t.tr.join(r);o&&i.setSelection(L.create(i.doc,r-t.doc.resolve(r).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},Hv=(t,e)=>{let n=t.selection,o;if(n instanceof L){if(n.node.isTextblock||!Gt(t.doc,n.to))return!1;o=n.to}else if(o=ls(t.doc,n.to,1),o==null)return!1;return e&&e(t.tr.join(o).scrollIntoView()),!0},Vv=(t,e)=>{let{$from:n,$to:o}=t.selection,r=n.blockRange(o),i=r&&So(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)},Uv=(t,e)=>{let{$head:n,$anchor:o}=t.selection;return!n.parent.type.spec.code||!n.sameParent(o)?!1:(e&&e(t.tr.insertText(`
28
+ `).scrollIntoView()),!0)};function Xp(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 Jv=(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=Xp(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(J.near(l.doc.resolve(a),1)),e(l.scrollIntoView())}return!0},_v=(t,e)=>{let n=t.selection,{$from:o,$to:r}=n;if(n instanceof mt||o.parent.inlineContent||r.parent.inlineContent)return!1;let i=Xp(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(H.create(a.doc,s+1)),e(a.scrollIntoView())}return!0},Yv=(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(vo(t.doc,i))return e&&e(t.tr.split(i).scrollIntoView()),!0}let o=n.blockRange(),r=o&&So(o);return r==null?!1:(e&&e(t.tr.lift(o,r).scrollIntoView()),!0)},Kv=(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(L.create(t.doc,r))),!0)};function Wv(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||Gt(t.doc,e.pos))?!1:(n&&n(t.tr.clearIncompatible(e.pos,o.type,o.contentMatchAt(o.childCount)).join(e.pos).scrollIntoView()),!0)}function eh(t,e,n,o){let r=e.nodeBefore,i=e.nodeAfter,s,a,l=r.type.spec.isolating||i.type.spec.isolating;if(!l&&Wv(t,e,n))return!0;let u=!l&&e.parent.canReplace(e.index(),e.index()+1);if(u&&(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=N.empty;for(let g=s.length-1;g>=0;g--)p=N.from(s[g].create(null,p));p=N.from(r.copy(p));let y=t.tr.step(new ge(e.pos-1,f,e.pos,f,new D(p,1,0),s.length,!0)),h=f+2*s.length;Gt(y.doc,h)&&y.join(h),n(y.scrollIntoView())}return!0}let c=i.type.spec.isolating||o>0&&l?null:J.findFrom(e,1),m=c&&c.$from.blockRange(c.$to),d=m&&So(m);if(d!=null&&d>=e.depth)return n&&n(t.tr.lift(m,d).scrollIntoView()),!0;if(u&&Ro(i,"start",!0)&&Ro(r,"end")){let f=r,p=[];for(;p.push(f),!f.isTextblock;)f=f.lastChild;let y=i,h=1;for(;!y.isTextblock;y=y.firstChild)h++;if(f.canReplace(f.childCount,f.childCount,y.content)){if(n){let g=N.empty;for(let v=p.length-1;v>=0;v--)g=N.from(p[v].copy(g));let w=t.tr.step(new ge(e.pos-p.length,e.pos+i.nodeSize,e.pos+h,e.pos+i.nodeSize-h,new D(g,p.length,0),0,!0));n(w.scrollIntoView())}return!0}}return!1}function th(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(H.create(e.doc,t<0?r.start(i):r.end(i)))),!0):!1}}const qv=th(-1),Gv=th(1);function Qv(t,e=null){return function(n,o){let{$from:r,$to:i}=n.selection,s=r.blockRange(i),a=s&&Dl(s,t,e);return a?(o&&o(n.tr.wrap(s,a).scrollIntoView()),!0):!1}}function nh(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,u)=>{if(r)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)r=!0;else{let c=n.doc.resolve(u),m=c.index();r=c.parent.canReplaceWith(m,m+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}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function Zv(t,e=null){return function(n,o){let{$from:r,$to:i}=n.selection,s=r.blockRange(i),a=!1,l=s;if(!s)return!1;if(s.depth>=2&&r.node(s.depth-1).type.compatibleContent(t)&&s.startIndex==0){if(r.index(s.depth-1)==0)return!1;let c=n.doc.resolve(s.start-2);l=new Xi(c,c,s.depth),s.endIndex<s.parent.childCount&&(s=new Xi(r,n.doc.resolve(i.end(s.depth)),s.depth)),a=!0}let u=Dl(l,t,e,s);return u?(o&&o(Xv(n.tr,s,u,a,t).scrollIntoView()),!0):!1}}function Xv(t,e,n,o,r){let i=N.empty;for(let c=n.length-1;c>=0;c--)i=N.from(n[c].type.create(n[c].attrs,i));t.step(new ge(e.start-(o?2:0),e.end,e.start,e.end,new D(i,0,0),n.length,!0));let s=0;for(let c=0;c<n.length;c++)n[c].type==r&&(s=c+1);let a=n.length-s,l=e.start+n.length-(o?2:0),u=e.parent;for(let c=e.startIndex,m=e.endIndex,d=!0;c<m;c++,d=!1)!d&&vo(t.doc,l,a)&&(t.split(l,a),l+=2*a),l+=u.child(c).nodeSize;return t}function eb(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?tb(e,n,t,i):nb(e,n,i):!0:!1}}function tb(t,e,n,o){let r=t.tr,i=o.end,s=o.$to.end(o.depth);i<s&&(r.step(new ge(i-1,s,i,s,new D(N.from(n.create(null,o.parent.copy())),1,0),1,!0)),o=new Xi(r.doc.resolve(o.$from.pos),r.doc.resolve(s),o.depth));const a=So(o);if(a==null)return!1;r.lift(o,a);let l=r.mapping.map(i,-1)-1;return Gt(r.doc,l)&&r.join(l),e(r.scrollIntoView()),!0}function nb(t,e,n){let o=t.tr,r=n.parent;for(let f=n.end,p=n.endIndex-1,y=n.startIndex;p>y;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,u=i.node(-1),c=i.index(-1);if(!u.canReplace(c+(a?0:1),c+1,s.content.append(l?N.empty:N.from(r))))return!1;let m=i.pos,d=m+s.nodeSize;return o.step(new ge(m-(a?1:0),d+(l?1:0),m+1,d-1,new D((a?N.empty:N.from(r.copy(N.empty))).append(l?N.empty:N.from(r.copy(N.empty))),a?0:1,l?0:1),a?0:1)),e(o.scrollIntoView()),!0}function ob(t){return function(e,n){let{$from:o,$to:r}=e.selection,i=o.blockRange(r,u=>u.childCount>0&&u.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 u=l.lastChild&&l.lastChild.type==a.type,c=N.from(u?t.create():null),m=new D(N.from(t.create(null,N.from(a.type.create(null,c)))),u?3:1,0),d=i.start,f=i.end;n(e.tr.step(new ge(d-(u?3:1),f,d,f,m,1,!0)).scrollIntoView())}return!0}}function bs(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 ks{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,(...c)=>{const m=l(...c)(s);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(i),m}]))}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,u=e||i.tr,c=()=>(!l&&n&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(u),a.every(d=>d===!0)),m={...Object.fromEntries(Object.entries(o).map(([d,f])=>[d,(...y)=>{const h=this.buildProps(u,n),g=f(...y)(h);return a.push(g),m}])),run:c};return m}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,u])=>[l,(...c)=>u(...c)({...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:bs({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,u])=>[l,(...c)=>u(...c)(a)]))}};return a}}let rb=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}removeAllListeners(){this.callbacks={}}};function j(t,e,n){return t.config[e]===void 0&&t.parent?j(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?j(t.parent,e,n):null}):t.config[e]}function xs(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 oh(t){const e=[],{nodeExtensions:n,markExtensions:o}=xs(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=j(s,"addGlobalAttributes",a);if(!l)return;l().forEach(c=>{c.types.forEach(m=>{Object.entries(c.attributes).forEach(([d,f])=>{e.push({type:m,name:d,attribute:{...i,...f}})})})})}),r.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage},l=j(s,"addAttributes",a);if(!l)return;const u=l();Object.entries(u).forEach(([c,m])=>{const d={...i,...m};typeof(d==null?void 0:d.default)=="function"&&(d.default=d.default()),d!=null&&d.isRequired&&(d==null?void 0:d.default)===void 0&&delete d.default,e.push({type:s.name,name:c,attribute:d})})}),e}function ye(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 Mo(...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?i.split(" "):[],l=o[r]?o[r].split(" "):[],u=a.filter(c=>!l.includes(c));o[r]=[...l,...u].join(" ")}else if(r==="style"){const a=i?i.split(";").map(c=>c.trim()).filter(Boolean):[],l=o[r]?o[r].split(";").map(c=>c.trim()).filter(Boolean):[],u=new Map;l.forEach(c=>{const[m,d]=c.split(":").map(f=>f.trim());u.set(m,d)}),a.forEach(c=>{const[m,d]=c.split(":").map(f=>f.trim());u.set(m,d)}),o[r]=Array.from(u.entries()).map(([c,m])=>`${c}: ${m}`).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)=>Mo(n,o),{})}function rh(t){return typeof t=="function"}function Y(t,e=void 0,...n){return rh(t)?e?t.bind(e)(...n):t(...n):t}function ib(t={}){return Object.keys(t).length===0&&t.constructor===Object}function sb(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function ih(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):sb(n.getAttribute(s.name));return a==null?i:{...i,[s.name]:a}},{});return{...o,...r}}}}function sh(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&ib(n)?!1:n!=null))}function ab(t,e){var n;const o=oh(t),{nodeExtensions:r,markExtensions:i}=xs(t),s=(n=r.find(u=>j(u,"topNode")))===null||n===void 0?void 0:n.name,a=Object.fromEntries(r.map(u=>{const c=o.filter(g=>g.type===u.name),m={name:u.name,options:u.options,storage:u.storage,editor:e},d=t.reduce((g,w)=>{const v=j(w,"extendNodeSchema",m);return{...g,...v?v(u):{}}},{}),f=sh({...d,content:Y(j(u,"content",m)),marks:Y(j(u,"marks",m)),group:Y(j(u,"group",m)),inline:Y(j(u,"inline",m)),atom:Y(j(u,"atom",m)),selectable:Y(j(u,"selectable",m)),draggable:Y(j(u,"draggable",m)),code:Y(j(u,"code",m)),whitespace:Y(j(u,"whitespace",m)),defining:Y(j(u,"defining",m)),isolating:Y(j(u,"isolating",m)),attrs:Object.fromEntries(c.map(g=>{var w;return[g.name,{default:(w=g==null?void 0:g.attribute)===null||w===void 0?void 0:w.default}]}))}),p=Y(j(u,"parseHTML",m));p&&(f.parseDOM=p.map(g=>ih(g,c)));const y=j(u,"renderHTML",m);y&&(f.toDOM=g=>y({node:g,HTMLAttributes:du(g,c)}));const h=j(u,"renderText",m);return h&&(f.toText=h),[u.name,f]})),l=Object.fromEntries(i.map(u=>{const c=o.filter(h=>h.type===u.name),m={name:u.name,options:u.options,storage:u.storage,editor:e},d=t.reduce((h,g)=>{const w=j(g,"extendMarkSchema",m);return{...h,...w?w(u):{}}},{}),f=sh({...d,inclusive:Y(j(u,"inclusive",m)),excludes:Y(j(u,"excludes",m)),group:Y(j(u,"group",m)),spanning:Y(j(u,"spanning",m)),code:Y(j(u,"code",m)),attrs:Object.fromEntries(c.map(h=>{var g;return[h.name,{default:(g=h==null?void 0:h.attribute)===null||g===void 0?void 0:g.default}]}))}),p=Y(j(u,"parseHTML",m));p&&(f.parseDOM=p.map(h=>ih(h,c)));const y=j(u,"renderHTML",m);return y&&(f.toDOM=h=>y({mark:h,HTMLAttributes:du(h,c)})),[u.name,f]}));return new rf({topNode:s,nodes:a,marks:l})}function mu(t,e){return e.nodes[t]||e.marks[t]||null}function ah(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}const lb=(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,u;const c=((u=(l=r.type.spec).toText)===null||u===void 0?void 0:u.call(l,{node:r,pos:i,parent:s,index:a}))||r.textContent||"%leaf%";n+=r.isAtom&&!r.isText?c:c.slice(0,Math.max(0,o-i))}),n};function fu(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class ub{constructor(e){this.find=e.find,this.handler=e.handler}}const cb=(t,e)=>{if(fu(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 $s(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 u=l.state.doc.resolve(o);if(u.parent.type.spec.code||!((e=u.nodeBefore||u.nodeAfter)===null||e===void 0)&&e.marks.find(d=>d.type.spec.code))return!1;let c=!1;const m=lb(u)+i;return s.forEach(d=>{if(c)return;const f=cb(m,d.find);if(!f)return;const p=l.state.tr,y=bs({state:l.state,transaction:p}),h={from:o-(f[0].length-i.length),to:r},{commands:g,chain:w,can:v}=new ks({editor:n,state:y});d.handler({state:y,range:h,match:f,commands:g,chain:w,can:v})===null||!p.steps.length||(p.setMeta(a,{transform:p,from:o,to:r,text:i}),l.dispatch(p),c=!0)}),c}function db(t){const{editor:e,rules:n}=t,o=new Ve({state:{init(){return null},apply(r,i){const s=r.getMeta(o);if(s)return s;const a=r.getMeta("applyInputRules");return!!a&&setTimeout(()=>{const{from:u,text:c}=a,m=u+c.length;$s({editor:e,from:u,to:m,text:c,rules:n,plugin:o})}),r.selectionSet||r.docChanged?null:i}},props:{handleTextInput(r,i,s,a){return $s({editor:e,from:i,to:s,text:a,rules:n,plugin:o})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:i}=r.state.selection;i&&$s({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?$s({editor:e,from:s.pos,to:s.pos,text:`
29
+ `,rules:n,plugin:o}):!1}},isInputRules:!0});return o}function mb(t){return Object.prototype.toString.call(t).slice(8,-1)}function Cs(t){return mb(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function Es(t,e){const n={...t};return Cs(t)&&Cs(e)&&Object.keys(e).forEach(o=>{Cs(e[o])&&Cs(t[o])?n[o]=Es(t[o],e[o]):n[o]=e[o]}),n}class zr{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=Y(j(this,"addOptions",{name:this.name}))),this.storage=Y(j(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new zr(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Es(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new zr(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=Y(j(n,"addOptions",{name:n.name})),n.storage=Y(j(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(u=>(u==null?void 0:u.type.name)===n.name))return!1;const l=s.find(u=>(u==null?void 0:u.type.name)===n.name);return l&&o.removeStoredMark(l),o.insertText(" ",r.pos),e.view.dispatch(o),!0}return!1}}function fb(t){return typeof t=="number"}class pb{constructor(e){this.find=e.find,this.handler=e.handler}}const hb=(t,e,n)=>{if(fu(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 gb(t){const{editor:e,state:n,from:o,to:r,rule:i,pasteEvent:s,dropEvent:a}=t,{commands:l,chain:u,can:c}=new ks({editor:e,state:n}),m=[];return n.doc.nodesBetween(o,r,(f,p)=>{if(!f.isTextblock||f.type.spec.code)return;const y=Math.max(o,p),h=Math.min(r,p+f.content.size),g=f.textBetween(y-p,h-p,void 0,"");hb(g,i.find,s).forEach(v=>{if(v.index===void 0)return;const k=y+v.index+1,E=k+v[0].length,b={from:n.tr.mapping.map(k),to:n.tr.mapping.map(E)},$=i.handler({state:n,range:b,match:v,commands:l,chain:u,can:c,pasteEvent:s,dropEvent:a});m.push($)})}),m.every(f=>f!==null)}const yb=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 wb(t){const{editor:e,rules:n}=t;let o=null,r=!1,i=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,a=typeof DragEvent<"u"?new DragEvent("drop"):null;const l=({state:c,from:m,to:d,rule:f,pasteEvt:p})=>{const y=c.tr,h=bs({state:c,transaction:y});if(!(!gb({editor:e,state:h,from:Math.max(m-1,0),to:d.b-1,rule:f,pasteEvent:p,dropEvent:a})||!y.steps.length))return a=typeof DragEvent<"u"?new DragEvent("drop"):null,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,y};return n.map(c=>new Ve({view(m){const d=f=>{var p;o=!((p=m.dom.parentElement)===null||p===void 0)&&p.contains(f.target)?m.dom.parentElement:null};return window.addEventListener("dragstart",d),{destroy(){window.removeEventListener("dragstart",d)}}},props:{handleDOMEvents:{drop:(m,d)=>(i=o===m.dom.parentElement,a=d,!1),paste:(m,d)=>{var f;const p=(f=d.clipboardData)===null||f===void 0?void 0:f.getData("text/html");return s=d,r=!!(p!=null&&p.includes("data-pm-slice")),!1}}},appendTransaction:(m,d,f)=>{const p=m[0],y=p.getMeta("uiEvent")==="paste"&&!r,h=p.getMeta("uiEvent")==="drop"&&!i,g=p.getMeta("applyPasteRules"),w=!!g;if(!y&&!h&&!w)return;if(w){const{from:E,text:b}=g,$=E+b.length,R=yb(b);return l({rule:c,state:f,from:E,to:{b:$},pasteEvt:R})}const v=d.doc.content.findDiffStart(f.doc.content),k=d.doc.content.findDiffEnd(f.doc.content);if(!(!fb(v)||!k||v===k.b))return l({rule:c,state:f,from:v,to:k,pasteEvt:s})}}))}function Sb(t){const e=t.filter((n,o)=>t.indexOf(n)!==o);return Array.from(new Set(e))}class Do{constructor(e,n){this.splittableMarks=[],this.editor=n,this.extensions=Do.resolve(e),this.schema=ab(this.extensions,n),this.setupExtensions()}static resolve(e){const n=Do.sort(Do.flatten(e)),o=Sb(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=j(n,"addExtensions",o);return r?[n,...this.flatten(r())]:n}).flat(10)}static sort(e){return e.sort((o,r)=>{const i=j(o,"priority")||100,s=j(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=j(n,"addCommands",o);return r?{...e,...r()}:e},{})}get plugins(){const{editor:e}=this,n=Do.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=[],u=j(s,"addKeyboardShortcuts",a);let c={};if(s.type==="mark"&&j(s,"exitable",a)&&(c.ArrowRight=()=>zr.handleExit({editor:e,mark:s})),u){const y=Object.fromEntries(Object.entries(u()).map(([h,g])=>[h,()=>g({editor:e})]));c={...c,...y}}const m=Mv(c);l.push(m);const d=j(s,"addInputRules",a);ah(s,e.options.enableInputRules)&&d&&o.push(...d());const f=j(s,"addPasteRules",a);ah(s,e.options.enablePasteRules)&&f&&r.push(...f());const p=j(s,"addProseMirrorPlugins",a);if(p){const y=p();l.push(...y)}return l}).flat();return[db({editor:e,rules:o}),...wb({editor:e,rules:r}),...i]}get attributes(){return oh(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:n}=xs(this.extensions);return Object.fromEntries(n.filter(o=>!!j(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:ye(o.name,this.schema)},s=j(o,"addNodeView",i);if(!s)return[];const a=(l,u,c,m,d)=>{const f=du(l,r);return s()({node:l,view:u,getPos:c,decorations:m,innerDecorations:d,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=Y(j(e,"keepOnSplit",o)))!==null&&n!==void 0)||n)&&this.splittableMarks.push(e.name);const r=j(e,"onBeforeCreate",o),i=j(e,"onCreate",o),s=j(e,"onUpdate",o),a=j(e,"onSelectionUpdate",o),l=j(e,"onTransaction",o),u=j(e,"onFocus",o),c=j(e,"onBlur",o),m=j(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),u&&this.editor.on("focus",u),c&&this.editor.on("blur",c),m&&this.editor.on("destroy",m)})}}class ot{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=Y(j(this,"addOptions",{name:this.name}))),this.storage=Y(j(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new ot(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Es(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new ot({...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=Y(j(n,"addOptions",{name:n.name})),n.storage=Y(j(n,"addStorage",{name:n.name,options:n.options})),n}}function lh(t,e,n){const{from:o,to:r}=e,{blockSeparator:i=`
30
+
31
+ `,textSerializers:s={}}=n||{};let a="";return t.nodesBetween(o,r,(l,u,c,m)=>{var d;l.isBlock&&u>o&&(a+=i);const f=s==null?void 0:s[l.type.name];if(f)return c&&(a+=f({node:l,pos:u,parent:c,index:m,range:e})),!1;l.isText&&(a+=(d=l==null?void 0:l.text)===null||d===void 0?void 0:d.slice(Math.max(o,u)-u,r-u))}),a}function uh(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const vb=ot.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Ve({key:new ft("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(c=>c.$from.pos)),a=Math.max(...i.map(c=>c.$to.pos)),l=uh(n);return lh(o,{from:s,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),bb=()=>({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),kb=(t=!1)=>({commands:e})=>e.setContent("",t),xb=()=>({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:u,mapping:c}=e,m=u.resolve(c.map(l)),d=u.resolve(c.map(l+a.nodeSize)),f=m.blockRange(d);if(!f)return;const p=So(f);if(a.type.isTextblock){const{defaultType:y}=m.parent.contentMatchAt(m.index());e.setNodeMarkup(f.start,y)}(p||p===0)&&e.lift(f,p)})}),!0},$b=t=>e=>t(e),Cb=()=>({state:t,dispatch:e})=>_v(t,e),Eb=(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 H(o.doc.resolve(s-1))),!0},Nb=()=>({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},Ob=t=>({tr:e,state:n,dispatch:o})=>{const r=ye(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),u=i.after(s);e.delete(l,u).scrollIntoView()}return!0}return!1},Ab=t=>({tr:e,dispatch:n})=>{const{from:o,to:r}=t;return n&&e.delete(o,r),!0},Rb=()=>({state:t,dispatch:e})=>Tv(t,e),Mb=()=>({commands:t})=>t.keyboardShortcut("Enter"),Db=()=>({state:t,dispatch:e})=>Jv(t,e);function Ns(t,e,n={strict:!0}){const o=Object.keys(e);return o.length?o.every(r=>n.strict?e[r]===t[r]:fu(e[r])?e[r].test(t[r]):e[r]===t[r]):!0}function pu(t,e,n={}){return t.find(o=>o.type===e&&Ns(o.attrs,n))}function Tb(t,e,n={}){return!!pu(t,e,n)}function hu(t,e,n={}){if(!t||!e)return;let o=t.parent.childAfter(t.parentOffset);if((!o.node||!o.node.marks.some(u=>u.type===e))&&(o=t.parent.childBefore(t.parentOffset)),!o.node||!o.node.marks.some(u=>u.type===e))return;const r=pu([...o.node.marks],e,n);if(!r)return;let i=o.index,s=t.start()+o.offset,a=i+1,l=s+o.node.nodeSize;for(pu([...o.node.marks],e,n);i>0&&r.isInSet(t.parent.child(i-1).marks);)i-=1,s-=t.parent.child(i).nodeSize;for(;a<t.parent.childCount&&Tb([...t.parent.child(a).marks],e,n);)l+=t.parent.child(a).nodeSize,a+=1;return{from:s,to:l}}function an(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 jb=(t,e={})=>({tr:n,state:o,dispatch:r})=>{const i=an(t,o.schema),{doc:s,selection:a}=n,{$from:l,from:u,to:c}=a;if(r){const m=hu(l,i,e);if(m&&m.from<=u&&m.to>=c){const d=H.create(s,m.from,m.to);n.setSelection(d)}}return!0},Pb=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 ch(t){return t instanceof H}function Yn(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function dh(t,e=null){if(!e)return null;const n=J.atStart(t),o=J.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return o;const r=n.from,i=o.to;return e==="all"?H.create(t,Yn(0,r,i),Yn(t.content.size,r,i)):H.create(t,Yn(e,r,i),Yn(e,r,i))}function gu(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const Ib=(t=null,e={})=>({editor:n,view:o,tr:r,dispatch:i})=>{e={scrollIntoView:!0,...e};const s=()=>{gu()&&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&&!ch(n.state.selection))return s(),!0;const a=dh(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},Lb=(t,e)=>n=>t.every((o,r)=>e(o,{...n,index:r})),zb=(t,e)=>({tr:n,commands:o})=>o.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),mh=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&&mh(o)}return t};function Os(t){const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return mh(n)}function As(t,e,n){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 N.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),As("",e,n)}if(r){if(n.errorOnInvalidContent){let s=!1,a="";const l=new rf({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:u=>(s=!0,a=typeof u=="string"?u:u.outerHTML,null)}]}})});if(n.slice?Kt.fromSchema(l).parseSlice(Os(t),n.parseOptions):Kt.fromSchema(l).parse(Os(t),n.parseOptions),n.errorOnInvalidContent&&s)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${a}`)})}const i=Kt.fromSchema(e);return n.slice?i.parseSlice(Os(t),n.parseOptions).content:i.parse(Os(t),n.parseOptions)}return As("",e,n)}function Fb(t,e,n){const o=t.steps.length-1;if(o<e)return;const r=t.steps[o];if(!(r instanceof he||r instanceof ge))return;const i=t.mapping.maps[o];let s=0;i.forEach((a,l,u,c)=>{s===0&&(s=c)}),t.setSelection(J.near(t.doc.resolve(s),n))}const Bb=t=>!("type"in t),Hb=(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;try{a=As(e,i.schema,{parseOptions:{preserveWhitespace:"full",...n.parseOptions},errorOnInvalidContent:(s=n.errorOnInvalidContent)!==null&&s!==void 0?s:i.options.enableContentCheck})}catch(p){return i.emit("contentError",{editor:i,error:p,disableCollaboration:()=>{i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}}),!1}let{from:l,to:u}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},c=!0,m=!0;if((Bb(a)?a:[a]).forEach(p=>{p.check(),c=c?p.isText&&p.marks.length===0:!1,m=m?p.isBlock:!1}),l===u&&m){const{parent:p}=o.doc.resolve(l);p.isTextblock&&!p.type.spec.code&&!p.childCount&&(l-=1,u+=1)}let f;c?(Array.isArray(e)?f=e.map(p=>p.text||"").join(""):typeof e=="object"&&e&&e.text?f=e.text:f=e,o.insertText(f,l,u)):(f=a,o.replaceWith(l,u,f)),n.updateSelection&&Fb(o,o.steps.length-1,-1),n.applyInputRules&&o.setMeta("applyInputRules",{from:l,text:f}),n.applyPasteRules&&o.setMeta("applyPasteRules",{from:l,text:f})}return!0},Vb=()=>({state:t,dispatch:e})=>Bv(t,e),Ub=()=>({state:t,dispatch:e})=>Hv(t,e),Jb=()=>({state:t,dispatch:e})=>jv(t,e),_b=()=>({state:t,dispatch:e})=>zv(t,e),Yb=()=>({state:t,dispatch:e,tr:n})=>{try{const o=ls(t.doc,t.selection.$from.pos,-1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},Kb=()=>({state:t,dispatch:e,tr:n})=>{try{const o=ls(t.doc,t.selection.$from.pos,1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},Wb=()=>({state:t,dispatch:e})=>Pv(t,e),qb=()=>({state:t,dispatch:e})=>Iv(t,e);function fh(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function Gb(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()||fh()?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 Qb=t=>({editor:e,view:n,tr:o,dispatch:r})=>{const i=Gb(t).split(/-(?!$)/),s=i.find(u=>!["Alt","Ctrl","Meta","Shift"].includes(u)),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",u=>u(n,a))});return l==null||l.steps.forEach(u=>{const c=u.map(o.mapping);c&&r&&o.maybeStep(c)}),!0};function Fr(t,e,n={}){const{from:o,to:r,empty:i}=t.selection,s=e?ye(e,t.schema):null,a=[];t.doc.nodesBetween(o,r,(m,d)=>{if(m.isText)return;const f=Math.max(o,d),p=Math.min(r,d+m.nodeSize);a.push({node:m,from:f,to:p})});const l=r-o,u=a.filter(m=>s?s.name===m.node.type.name:!0).filter(m=>Ns(m.node.attrs,n,{strict:!1}));return i?!!u.length:u.reduce((m,d)=>m+d.to-d.from,0)>=l}const Zb=(t,e={})=>({state:n,dispatch:o})=>{const r=ye(t,n.schema);return Fr(n,r,e)?Vv(n,o):!1},Xb=()=>({state:t,dispatch:e})=>Yv(t,e),ek=t=>({state:e,dispatch:n})=>{const o=ye(t,e.schema);return eb(o)(e,n)},tk=()=>({state:t,dispatch:e})=>Uv(t,e);function Rs(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function ph(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 nk=(t,e)=>({tr:n,state:o,dispatch:r})=>{let i=null,s=null;const a=Rs(typeof t=="string"?t:t.name,o.schema);return a?(a==="node"&&(i=ye(t,o.schema)),a==="mark"&&(s=an(t,o.schema)),r&&n.selection.ranges.forEach(l=>{o.doc.nodesBetween(l.$from.pos,l.$to.pos,(u,c)=>{i&&i===u.type&&n.setNodeMarkup(c,void 0,ph(u.attrs,e)),s&&u.marks.length&&u.marks.forEach(m=>{s===m.type&&n.addMark(c,c+u.nodeSize,s.create(ph(m.attrs,e)))})})}),!0):!1},ok=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),rk=()=>({tr:t,commands:e})=>e.setTextSelection({from:0,to:t.doc.content.size}),ik=()=>({state:t,dispatch:e})=>Lv(t,e),sk=()=>({state:t,dispatch:e})=>Fv(t,e),ak=()=>({state:t,dispatch:e})=>Kv(t,e),lk=()=>({state:t,dispatch:e})=>Gv(t,e),uk=()=>({state:t,dispatch:e})=>qv(t,e);function yu(t,e,n={},o={}){return As(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:o.errorOnInvalidContent})}const ck=(t,e=!1,n={},o={})=>({editor:r,tr:i,dispatch:s,commands:a})=>{var l,u;const{doc:c}=i;if(n.preserveWhitespace!=="full"){const m=yu(t,r.schema,n,{errorOnInvalidContent:(l=o.errorOnInvalidContent)!==null&&l!==void 0?l:r.options.enableContentCheck});return s&&i.replaceWith(0,c.content.size,m).setMeta("preventUpdate",!e),!0}return s&&i.setMeta("preventUpdate",!e),a.insertContentAt({from:0,to:c.content.size},t,{parseOptions:n,errorOnInvalidContent:(u=o.errorOnInvalidContent)!==null&&u!==void 0?u:r.options.enableContentCheck})};function hh(t,e){const n=an(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 dk(t,e){const n=new Of(t);return e.forEach(o=>{o.steps.forEach(r=>{n.step(r)})}),n}function mk(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 fk(t,e,n){const o=[];return t.nodesBetween(e.from,e.to,(r,i)=>{n(r)&&o.push({node:r,pos:i})}),o}function pk(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 wu(t){return e=>pk(e.$from,t)}function hk(t,e){const n=zn.fromSchema(e).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}function gk(t,e){const n={from:0,to:t.content.size};return lh(t,n,e)}function yk(t,e){const n=ye(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 gh(t,e){const n=Rs(typeof e=="string"?e:e.name,t.schema);return n==="node"?yk(t,e):n==="mark"?hh(t,e):{}}function wk(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 Sk(t){const e=wk(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 vk(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 u=e.slice(i).map(a,-1),c=e.slice(i).map(l),m=e.invert().map(u,-1),d=e.invert().map(c);o.push({oldRange:{from:m,to:d},newRange:{from:u,to:c}})})}),Sk(o)}function yh(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 Ms(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 Su(t,e,n={}){const{empty:o,ranges:r}=t.selection,i=e?an(e,t.schema):null;if(o)return!!(t.storedMarks||t.selection.$from.marks()).filter(m=>i?i.name===m.type.name:!0).find(m=>Ns(m.attrs,n,{strict:!1}));let s=0;const a=[];if(r.forEach(({$from:m,$to:d})=>{const f=m.pos,p=d.pos;t.doc.nodesBetween(f,p,(y,h)=>{if(!y.isText&&!y.marks.length)return;const g=Math.max(f,h),w=Math.min(p,h+y.nodeSize),v=w-g;s+=v,a.push(...y.marks.map(k=>({mark:k,from:g,to:w})))})}),s===0)return!1;const l=a.filter(m=>i?i.name===m.mark.type.name:!0).filter(m=>Ns(m.mark.attrs,n,{strict:!1})).reduce((m,d)=>m+d.to-d.from,0),u=a.filter(m=>i?m.mark.type!==i&&m.mark.type.excludes(i):!0).reduce((m,d)=>m+d.to-d.from,0);return(l>0?l+u:l)>=s}function bk(t,e,n={}){if(!e)return Fr(t,null,n)||Su(t,null,n);const o=Rs(e,t.schema);return o==="node"?Fr(t,e,n):o==="mark"?Su(t,e,n):!1}function wh(t,e){const{nodeExtensions:n}=xs(e),o=n.find(s=>s.name===t);if(!o)return!1;const r={name:o.name,options:o.options,storage:o.storage},i=Y(j(o,"group",r));return typeof i!="string"?!1:i.split(" ").includes("list")}function Ds(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&&(Ds(i,{ignoreWhitespace:n,checkChildren:e})||(r=!1))}),r}return!1}function kk(t,e,n){var o;const{selection:r}=e;let i=null;if(ch(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 u=a.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(a.pos,l.pos,(c,m,d)=>{if(u)return!1;if(c.isInline){const f=!d||d.type.allowsMarkType(n),p=!!n.isInSet(c.marks)||!c.marks.some(y=>y.type.excludes(n));u=f&&p}return!u}),u})}const xk=(t,e={})=>({tr:n,state:o,dispatch:r})=>{const{selection:i}=n,{empty:s,ranges:a}=i,l=an(t,o.schema);if(r)if(s){const u=hh(o,l);n.addStoredMark(l.create({...u,...e}))}else a.forEach(u=>{const c=u.$from.pos,m=u.$to.pos;o.doc.nodesBetween(c,m,(d,f)=>{const p=Math.max(f,c),y=Math.min(f+d.nodeSize,m);d.marks.find(g=>g.type===l)?d.marks.forEach(g=>{l===g.type&&n.addMark(p,y,l.create({...g.attrs,...e}))}):n.addMark(p,y,l.create(e))})});return kk(o,n,l)},$k=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),Ck=(t,e={})=>({state:n,dispatch:o,chain:r})=>{const i=ye(t,n.schema);return i.isTextblock?r().command(({commands:s})=>nh(i,e)(n)?!0:s.clearNodes()).command(({state:s})=>nh(i,e)(s,o)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},Ek=t=>({tr:e,dispatch:n})=>{if(n){const{doc:o}=e,r=Yn(t,0,o.content.size),i=L.create(o,r);e.setSelection(i)}return!0},Nk=t=>({tr:e,dispatch:n})=>{if(n){const{doc:o}=e,{from:r,to:i}=typeof t=="number"?{from:t,to:t}:t,s=H.atStart(o).from,a=H.atEnd(o).to,l=Yn(r,s,a),u=Yn(i,s,a),c=H.create(o,l,u);e.setSelection(c)}return!0},Ok=t=>({state:e,dispatch:n})=>{const o=ye(t,e.schema);return ob(o)(e,n)};function Sh(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 Ak=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:o,editor:r})=>{const{selection:i,doc:s}=e,{$from:a,$to:l}=i,u=r.extensionManager.attributes,c=Ms(u,a.node().type.name,a.node().attrs);if(i instanceof L&&i.node.isBlock)return!a.parentOffset||!vo(s,a.pos)?!1:(o&&(t&&Sh(n,r.extensionManager.splittableMarks),e.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;const m=l.parentOffset===l.parent.content.size,d=a.depth===0?void 0:mk(a.node(-1).contentMatchAt(a.indexAfter(-1)));let f=m&&d?[{type:d,attrs:c}]:void 0,p=vo(e.doc,e.mapping.map(a.pos),1,f);if(!f&&!p&&vo(e.doc,e.mapping.map(a.pos),1,d?[{type:d}]:void 0)&&(p=!0,f=d?[{type:d,attrs:c}]:void 0),o){if(p&&(i instanceof H&&e.deleteSelection(),e.split(e.mapping.map(a.pos),1,f),d&&!m&&!a.parentOffset&&a.parent.type!==d)){const y=e.mapping.map(a.before()),h=e.doc.resolve(y);a.node(-1).canReplaceWith(h.index(),h.index()+1,d)&&e.setNodeMarkup(e.mapping.map(a.before()),d)}t&&Sh(n,r.extensionManager.splittableMarks),e.scrollIntoView()}return p},Rk=(t,e={})=>({tr:n,state:o,dispatch:r,editor:i})=>{var s;const a=ye(t,o.schema),{$from:l,$to:u}=o.selection,c=o.selection.node;if(c&&c.isBlock||l.depth<2||!l.sameParent(u))return!1;const m=l.node(-1);if(m.type!==a)return!1;const d=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 g=N.empty;const w=l.index(-1)?1:l.index(-2)?2:3;for(let R=l.depth-w;R>=l.depth-3;R-=1)g=N.from(l.node(R).copy(g));const v=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,k={...Ms(d,l.node().type.name,l.node().attrs),...e},E=((s=a.contentMatch.defaultType)===null||s===void 0?void 0:s.createAndFill(k))||void 0;g=g.append(N.from(a.createAndFill(null,E)||void 0));const b=l.before(l.depth-(w-1));n.replace(b,l.after(-v),new D(g,4-w,0));let $=-1;n.doc.nodesBetween(b,n.doc.content.size,(R,C)=>{if($>-1)return!1;R.isTextblock&&R.content.size===0&&($=C+1)}),$>-1&&n.setSelection(H.near(n.doc.resolve($))),n.scrollIntoView()}return!0}const f=u.pos===l.end()?m.contentMatchAt(0).defaultType:null,p={...Ms(d,m.type.name,m.attrs),...e},y={...Ms(d,l.node().type.name,l.node().attrs),...e};n.delete(l.pos,u.pos);const h=f?[{type:a,attrs:p},{type:f,attrs:y}]:[{type:a,attrs:p}];if(!vo(n.doc,l.pos,2))return!1;if(r){const{selection:g,storedMarks:w}=o,{splittableMarks:v}=i.extensionManager,k=w||g.$to.parentOffset&&g.$from.marks();if(n.split(l.pos,2,h).scrollIntoView(),!k||!r)return!0;const E=k.filter(b=>v.includes(b.type.name));n.ensureMarks(E)}return!0},vu=(t,e)=>{const n=wu(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)&&Gt(t.doc,n.pos)&&t.join(n.pos),!0},bu=(t,e)=>{const n=wu(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)&&Gt(t.doc,o)&&t.join(o),!0};var Mk=Object.freeze({__proto__:null,blur:bb,clearContent:kb,clearNodes:xb,command:$b,createParagraphNear:Cb,cut:Eb,deleteCurrentNode:Nb,deleteNode:Ob,deleteRange:Ab,deleteSelection:Rb,enter:Mb,exitCode:Db,extendMarkRange:jb,first:Pb,focus:Ib,forEach:Lb,insertContent:zb,insertContentAt:Hb,joinBackward:Jb,joinDown:Ub,joinForward:_b,joinItemBackward:Yb,joinItemForward:Kb,joinTextblockBackward:Wb,joinTextblockForward:qb,joinUp:Vb,keyboardShortcut:Qb,lift:Zb,liftEmptyBlock:Xb,liftListItem:ek,newlineInCode:tk,resetAttributes:nk,scrollIntoView:ok,selectAll:rk,selectNodeBackward:ik,selectNodeForward:sk,selectParentNode:ak,selectTextblockEnd:lk,selectTextblockStart:uk,setContent:ck,setMark:xk,setMeta:$k,setNode:Ck,setNodeSelection:Ek,setTextSelection:Nk,sinkListItem:Ok,splitBlock:Ak,splitListItem:Rk,toggleList:(t,e,n,o={})=>({editor:r,tr:i,state:s,dispatch:a,chain:l,commands:u,can:c})=>{const{extensions:m,splittableMarks:d}=r.extensionManager,f=ye(t,s.schema),p=ye(e,s.schema),{selection:y,storedMarks:h}=s,{$from:g,$to:w}=y,v=g.blockRange(w),k=h||y.$to.parentOffset&&y.$from.marks();if(!v)return!1;const E=wu(b=>wh(b.type.name,m))(y);if(v.depth>=1&&E&&v.depth-E.depth<=1){if(E.node.type===f)return u.liftListItem(p);if(wh(E.node.type.name,m)&&f.validContent(E.node.content)&&a)return l().command(()=>(i.setNodeMarkup(E.pos,f),!0)).command(()=>vu(i,f)).command(()=>bu(i,f)).run()}return!n||!k||!a?l().command(()=>c().wrapInList(f,o)?!0:u.clearNodes()).wrapInList(f,o).command(()=>vu(i,f)).command(()=>bu(i,f)).run():l().command(()=>{const b=c().wrapInList(f,o),$=k.filter(R=>d.includes(R.type.name));return i.ensureMarks($),b?!0:u.clearNodes()}).wrapInList(f,o).command(()=>vu(i,f)).command(()=>bu(i,f)).run()},toggleMark:(t,e={},n={})=>({state:o,commands:r})=>{const{extendEmptyMarkRange:i=!1}=n,s=an(t,o.schema);return Su(o,s,e)?r.unsetMark(s,{extendEmptyMarkRange:i}):r.setMark(s,e)},toggleNode:(t,e,n={})=>({state:o,commands:r})=>{const i=ye(t,o.schema),s=ye(e,o.schema),a=Fr(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=ye(t,n.schema);return Fr(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=an(t,o.schema),{$from:u,empty:c,ranges:m}=a;if(!r)return!0;if(c&&s){let{from:d,to:f}=a;const p=(i=u.marks().find(h=>h.type===l))===null||i===void 0?void 0:i.attrs,y=hu(u,l,p);y&&(d=y.from,f=y.to),n.removeMark(d,f,l)}else m.forEach(d=>{n.removeMark(d.$from.pos,d.$to.pos,l)});return n.removeStoredMark(l),!0},updateAttributes:(t,e={})=>({tr:n,state:o,dispatch:r})=>{let i=null,s=null;const a=Rs(typeof t=="string"?t:t.name,o.schema);return a?(a==="node"&&(i=ye(t,o.schema)),a==="mark"&&(s=an(t,o.schema)),r&&n.selection.ranges.forEach(l=>{const u=l.$from.pos,c=l.$to.pos;o.doc.nodesBetween(u,c,(m,d)=>{i&&i===m.type&&n.setNodeMarkup(d,void 0,{...m.attrs,...e}),s&&m.marks.length&&m.marks.forEach(f=>{if(s===f.type){const p=Math.max(d,u),y=Math.min(d+m.nodeSize,c);n.addMark(p,y,s.create({...f.attrs,...e}))}})})}),!0):!1},wrapIn:(t,e={})=>({state:n,dispatch:o})=>{const r=ye(t,n.schema);return Qv(r,e)(n,o)},wrapInList:(t,e={})=>({state:n,dispatch:o})=>{const r=ye(t,n.schema);return Zv(r,e)(n,o)}});const Dk=ot.create({name:"commands",addCommands(){return{...Mk}}}),Tk=ot.create({name:"drop",addProseMirrorPlugins(){return[new Ve({key:new ft("tiptapDrop"),props:{handleDrop:(t,e,n,o)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:o})}}})]}}),jk=ot.create({name:"editable",addProseMirrorPlugins(){return[new Ve({key:new ft("editable"),props:{editable:()=>this.editor.options.editable}})]}}),Pk=ot.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new Ve({key:new ft("focusEvents"),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}}}})]}}),Ik=ot.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{const{selection:l,doc:u}=a,{empty:c,$anchor:m}=l,{pos:d,parent:f}=m,p=m.parent.isTextblock&&d>0?a.doc.resolve(d-1):m,y=p.parent.type.spec.isolating,h=m.pos-m.parentOffset,g=y&&p.parent.childCount===1?h===m.pos:J.atStart(u).from===d;return!c||!f.type.isTextblock||f.textContent.length||!g||g&&m.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()||fh()?i:r},addProseMirrorPlugins(){return[new Ve({key:new ft("clearDocument"),appendTransaction:(t,e,n)=>{const o=t.some(y=>y.docChanged)&&!e.doc.eq(n.doc),r=t.some(y=>y.getMeta("preventClearDocument"));if(!o||r)return;const{empty:i,from:s,to:a}=e.selection,l=J.atStart(e.doc).from,u=J.atEnd(e.doc).to;if(i||!(s===l&&a===u)||!Ds(n.doc))return;const d=n.tr,f=bs({state:n,transaction:d}),{commands:p}=new ks({editor:this.editor,state:f});if(p.clearNodes(),!!d.steps.length)return d}})]}}),Lk=ot.create({name:"paste",addProseMirrorPlugins(){return[new Ve({key:new ft("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),zk=ot.create({name:"tabindex",addProseMirrorPlugins(){return[new Ve({key:new ft("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class Kn{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 Kn(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 Kn(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 Kn(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),a=this.resolvedPos.doc.resolve(s);if(!r&&a.depth<=this.depth)return;const l=new Kn(a,this.editor,r,r?n:null);r&&(l.actualDepth=this.depth+1),e.push(new Kn(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 Fk=`.ProseMirror {
32
32
  position: relative;
33
33
  }
34
34
 
@@ -102,31 +102,31 @@ img.ProseMirror-separator {
102
102
 
103
103
  .tippy-box[data-animation=fade][data-state=hidden] {
104
104
  opacity: 0
105
- }`;function Fb(t,e,n){const o=document.querySelector(`style[data-tiptap-style${n?`-${n}`:""}]`);if(o!==null)return o;const r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.setAttribute(`data-tiptap-style${n?`-${n}`:""}`,""),r.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(r),r}class Bb extends ok{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,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=Fb(zb,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=nh(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=typeof e=="string"?`${e}$`:e.key,o=this.state.reconfigure({plugins:this.state.plugins.filter(r=>!r.key.startsWith(n))});return this.view.updateState(o),o}createExtensionManager(){var e,n;const r=[...this.options.enableCoreExtensions?[Tb,Sk.configure({blockSeparator:(n=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||n===void 0?void 0:n.blockSeparator}),Mb,jb,Pb,Lb,Db,Ib].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 Mo(r,this)}createCommandManager(){this.commandManager=new ks({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){let e;try{e=gu(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(i){if(!(i instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(i.message))throw i;this.emit("contentError",{editor:this,error:i,disableCollaboration:()=>{this.options.extensions=this.options.extensions.filter(s=>s.name!=="collaboration"),this.createExtensionManager()}}),e=gu(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const n=uh(e,this.options.autofocus);this.view=new kv(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:xo.create({doc:e,selection:n||void 0})});const o=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(o),this.createNodeViews(),this.prependClass();const r=this.view.dom;r.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 ph(this.state,e)}isActive(e,n){const o=typeof e=="string"?e:null,r=typeof e=="string"?n:e;return vb(this.state,o,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return pb(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=`
105
+ }`;function Bk(t,e,n){const o=document.querySelector(`style[data-tiptap-style${n?`-${n}`:""}]`);if(o!==null)return o;const r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.setAttribute(`data-tiptap-style${n?`-${n}`:""}`,""),r.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(r),r}class Hk extends rb{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,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=Bk(Fk,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=rh(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=n.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?[jk,vb.configure({blockSeparator:(n=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||n===void 0?void 0:n.blockSeparator}),Dk,Pk,Ik,zk,Tk,Lk].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 Do(r,this)}createCommandManager(){this.commandManager=new ks({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){let e;try{e=yu(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(i){if(!(i instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(i.message))throw i;this.emit("contentError",{editor:this,error:i,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(s=>s.name!=="collaboration"),this.createExtensionManager()}}),e=yu(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const n=dh(e,this.options.autofocus);this.view=new kv(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:$o.create({doc:e,selection:n||void 0})}),this.view.dom.setAttribute("role","textbox"),this.view.dom.getAttribute("aria-label")||this.view.dom.setAttribute("aria-label","Rich-Text Editor");const o=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(o),this.createNodeViews(),this.prependClass();const r=this.view.dom;r.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 gh(this.state,e)}isActive(e,n){const o=typeof e=="string"?e:null,r=typeof e=="string"?n:e;return bk(this.state,o,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return hk(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=`
106
106
 
107
- `,textSerializers:o={}}=e||{};return hb(this.state.doc,{blockSeparator:n,textSerializers:{...ah(this.schema),...o}})}get isEmpty(){return Ms(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 Yn(n,this)}get $doc(){return this.$pos(0)}}function Hb(t){return new lk({find:t.find,handler:({state:e,range:n,match:o,chain:r})=>{const i=_(t.getAttributes,void 0,o)||{},s=e.tr.delete(n.from,n.to),l=s.doc.resolve(n.from).blockRange(),u=l&&Ml(l,t.type,i);if(!u)return null;if(s.wrap(l,u),t.keepMarks&&t.editor){const{selection:m,storedMarks:d}=e,{splittableMarks:f}=t.editor.extensionManager,p=d||m.$to.parentOffset&&m.$from.marks();if(p){const y=p.filter(h=>f.includes(h.type.name));s.ensureMarks(y)}}if(t.keepAttributes){const m=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(m,i).run()}const c=s.doc.resolve(n.from-1).nodeBefore;c&&c.type===t.type&&qt(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(o,c))&&s.join(n.from-1)}})}class an{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=_(j(this,"addOptions",{name:this.name}))),this.storage=_(j(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new an(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Cs(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new an(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=_(j(n,"addOptions",{name:n.name})),n.storage=_(j(n,"addStorage",{name:n.name,options:n.options})),n}}function Vb(t){return new fk({find:t.find,handler:({state:e,range:n,match:o,pasteEvent:r})=>{const i=_(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 u=n.to;if(a){const c=l.search(/\S/),m=n.from+l.indexOf(a),d=m+a.length;if(hh(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>m).length)return null;d<n.to&&s.delete(d,n.to),m>n.from&&s.delete(n.from+c,m),u=n.from+c+a.length,s.addMark(n.from+c,u,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}var wh={exports:{}},ot={},Sh={exports:{}},vh={};/** @license React v0.20.2
107
+ `,textSerializers:o={}}=e||{};return gk(this.state.doc,{blockSeparator:n,textSerializers:{...uh(this.schema),...o}})}get isEmpty(){return Ds(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 Kn(n,this)}get $doc(){return this.$pos(0)}}function Vk(t){return new ub({find:t.find,handler:({state:e,range:n,match:o,chain:r})=>{const i=Y(t.getAttributes,void 0,o)||{},s=e.tr.delete(n.from,n.to),l=s.doc.resolve(n.from).blockRange(),u=l&&Dl(l,t.type,i);if(!u)return null;if(s.wrap(l,u),t.keepMarks&&t.editor){const{selection:m,storedMarks:d}=e,{splittableMarks:f}=t.editor.extensionManager,p=d||m.$to.parentOffset&&m.$from.marks();if(p){const y=p.filter(h=>f.includes(h.type.name));s.ensureMarks(y)}}if(t.keepAttributes){const m=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(m,i).run()}const c=s.doc.resolve(n.from-1).nodeBefore;c&&c.type===t.type&&Gt(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(o,c))&&s.join(n.from-1)}})}class ln{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=Y(j(this,"addOptions",{name:this.name}))),this.storage=Y(j(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new ln(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Es(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new ln(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=Y(j(n,"addOptions",{name:n.name})),n.storage=Y(j(n,"addStorage",{name:n.name,options:n.options})),n}}function Uk(t){return new pb({find:t.find,handler:({state:e,range:n,match:o,pasteEvent:r})=>{const i=Y(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 u=n.to;if(a){const c=l.search(/\S/),m=n.from+l.indexOf(a),d=m+a.length;if(yh(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>m).length)return null;d<n.to&&s.delete(d,n.to),m>n.from&&s.delete(n.from+c,m),u=n.from+c+a.length,s.addMark(n.from+c,u,t.type.create(i||{})),s.removeStoredMark(t.type)}}})}var vh={exports:{}},rt={},bh={exports:{}},kh={};/** @license React v0.20.2
108
108
  * scheduler.production.min.js
109
109
  *
110
110
  * Copyright (c) Facebook, Inc. and its affiliates.
111
111
  *
112
112
  * This source code is licensed under the MIT license found in the
113
113
  * LICENSE file in the root directory of this source tree.
114
- */(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,u=null,c=function(){if(l!==null)try{var M=t.unstable_now();l(!0,M),l=null}catch(I){throw setTimeout(c,0),I}};e=function(M){l!==null?setTimeout(e,0,M):(l=M,setTimeout(c,0))},n=function(M,I){u=setTimeout(M,I)},o=function(){clearTimeout(u)},t.unstable_shouldYield=function(){return!1},r=t.unstable_forceFrameRate=function(){}}else{var m=window.setTimeout,d=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,y=null,h=-1,g=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},r=function(){},t.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):g=0<M?Math.floor(1e3/M):5};var v=new MessageChannel,b=v.port2;v.port1.onmessage=function(){if(y!==null){var M=t.unstable_now();w=M+g;try{y(!0,M)?b.postMessage(null):(p=!1,y=null)}catch(I){throw b.postMessage(null),I}}else p=!1},e=function(M){y=M,p||(p=!0,b.postMessage(null))},n=function(M,I){h=m(function(){M(t.unstable_now())},I)},o=function(){d(h),h=-1}}function E(M,I){var F=M.length;M.push(I);e:for(;;){var K=F-1>>>1,Oe=M[K];if(Oe!==void 0&&0<R(Oe,I))M[K]=I,M[F]=Oe,F=K;else break e}}function k(M){return M=M[0],M===void 0?null:M}function $(M){var I=M[0];if(I!==void 0){var F=M.pop();if(F!==I){M[0]=F;e:for(var K=0,Oe=M.length;K<Oe;){var fo=2*(K+1)-1,po=M[fo],Ji=fo+1,hr=M[Ji];if(po!==void 0&&0>R(po,F))hr!==void 0&&0>R(hr,po)?(M[K]=hr,M[Ji]=F,K=Ji):(M[K]=po,M[fo]=F,K=fo);else if(hr!==void 0&&0>R(hr,F))M[K]=hr,M[Ji]=F,K=Ji;else break e}}return I}return null}function R(M,I){var F=M.sortIndex-I.sortIndex;return F!==0?F:M.id-I.id}var C=[],J=[],ie=1,Z=null,q=3,Ne=!1,ae=!1,fe=!1;function ce(M){for(var I=k(J);I!==null;){if(I.callback===null)$(J);else if(I.startTime<=M)$(J),I.sortIndex=I.expirationTime,E(C,I);else break;I=k(J)}}function G(M){if(fe=!1,ce(M),!ae)if(k(C)!==null)ae=!0,e(le);else{var I=k(J);I!==null&&n(G,I.startTime-M)}}function le(M,I){ae=!1,fe&&(fe=!1,o()),Ne=!0;var F=q;try{for(ce(I),Z=k(C);Z!==null&&(!(Z.expirationTime>I)||M&&!t.unstable_shouldYield());){var K=Z.callback;if(typeof K=="function"){Z.callback=null,q=Z.priorityLevel;var Oe=K(Z.expirationTime<=I);I=t.unstable_now(),typeof Oe=="function"?Z.callback=Oe:Z===k(C)&&$(C),ce(I)}else $(C);Z=k(C)}if(Z!==null)var fo=!0;else{var po=k(J);po!==null&&n(G,po.startTime-I),fo=!1}return fo}finally{Z=null,q=F,Ne=!1}}var ve=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(M){M.callback=null},t.unstable_continueExecution=function(){ae||Ne||(ae=!0,e(le))},t.unstable_getCurrentPriorityLevel=function(){return q},t.unstable_getFirstCallbackNode=function(){return k(C)},t.unstable_next=function(M){switch(q){case 1:case 2:case 3:var I=3;break;default:I=q}var F=q;q=I;try{return M()}finally{q=F}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=ve,t.unstable_runWithPriority=function(M,I){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var F=q;q=M;try{return I()}finally{q=F}},t.unstable_scheduleCallback=function(M,I,F){var K=t.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?K+F:K):F=K,M){case 1:var Oe=-1;break;case 2:Oe=250;break;case 5:Oe=1073741823;break;case 4:Oe=1e4;break;default:Oe=5e3}return Oe=F+Oe,M={id:ie++,callback:I,priorityLevel:M,startTime:F,expirationTime:Oe,sortIndex:-1},F>K?(M.sortIndex=F,E(J,M),k(C)===null&&M===k(J)&&(fe?o():fe=!0,n(G,F-K))):(M.sortIndex=Oe,E(C,M),ae||Ne||(ae=!0,e(le))),M},t.unstable_wrapCallback=function(M){var I=q;return function(){var F=q;q=I;try{return M.apply(this,arguments)}finally{q=F}}}})(vh),Sh.exports=vh;var Ub=Sh.exports;/** @license React v17.0.2
114
+ */(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,u=null,c=function(){if(l!==null)try{var M=t.unstable_now();l(!0,M),l=null}catch(I){throw setTimeout(c,0),I}};e=function(M){l!==null?setTimeout(e,0,M):(l=M,setTimeout(c,0))},n=function(M,I){u=setTimeout(M,I)},o=function(){clearTimeout(u)},t.unstable_shouldYield=function(){return!1},r=t.unstable_forceFrameRate=function(){}}else{var m=window.setTimeout,d=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,y=null,h=-1,g=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},r=function(){},t.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):g=0<M?Math.floor(1e3/M):5};var v=new MessageChannel,k=v.port2;v.port1.onmessage=function(){if(y!==null){var M=t.unstable_now();w=M+g;try{y(!0,M)?k.postMessage(null):(p=!1,y=null)}catch(I){throw k.postMessage(null),I}}else p=!1},e=function(M){y=M,p||(p=!0,k.postMessage(null))},n=function(M,I){h=m(function(){M(t.unstable_now())},I)},o=function(){d(h),h=-1}}function E(M,I){var B=M.length;M.push(I);e:for(;;){var W=B-1>>>1,Ae=M[W];if(Ae!==void 0&&0<R(Ae,I))M[W]=I,M[B]=Ae,B=W;else break e}}function b(M){return M=M[0],M===void 0?null:M}function $(M){var I=M[0];if(I!==void 0){var B=M.pop();if(B!==I){M[0]=B;e:for(var W=0,Ae=M.length;W<Ae;){var po=2*(W+1)-1,ho=M[po],_i=po+1,gr=M[_i];if(ho!==void 0&&0>R(ho,B))gr!==void 0&&0>R(gr,ho)?(M[W]=gr,M[_i]=B,W=_i):(M[W]=ho,M[po]=B,W=po);else if(gr!==void 0&&0>R(gr,B))M[W]=gr,M[_i]=B,W=_i;else break e}}return I}return null}function R(M,I){var B=M.sortIndex-I.sortIndex;return B!==0?B:M.id-I.id}var C=[],_=[],se=1,X=null,G=3,Oe=!1,le=!1,pe=!1;function de(M){for(var I=b(_);I!==null;){if(I.callback===null)$(_);else if(I.startTime<=M)$(_),I.sortIndex=I.expirationTime,E(C,I);else break;I=b(_)}}function Q(M){if(pe=!1,de(M),!le)if(b(C)!==null)le=!0,e(ue);else{var I=b(_);I!==null&&n(Q,I.startTime-M)}}function ue(M,I){le=!1,pe&&(pe=!1,o()),Oe=!0;var B=G;try{for(de(I),X=b(C);X!==null&&(!(X.expirationTime>I)||M&&!t.unstable_shouldYield());){var W=X.callback;if(typeof W=="function"){X.callback=null,G=X.priorityLevel;var Ae=W(X.expirationTime<=I);I=t.unstable_now(),typeof Ae=="function"?X.callback=Ae:X===b(C)&&$(C),de(I)}else $(C);X=b(C)}if(X!==null)var po=!0;else{var ho=b(_);ho!==null&&n(Q,ho.startTime-I),po=!1}return po}finally{X=null,G=B,Oe=!1}}var be=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(M){M.callback=null},t.unstable_continueExecution=function(){le||Oe||(le=!0,e(ue))},t.unstable_getCurrentPriorityLevel=function(){return G},t.unstable_getFirstCallbackNode=function(){return b(C)},t.unstable_next=function(M){switch(G){case 1:case 2:case 3:var I=3;break;default:I=G}var B=G;G=I;try{return M()}finally{G=B}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=be,t.unstable_runWithPriority=function(M,I){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var B=G;G=M;try{return I()}finally{G=B}},t.unstable_scheduleCallback=function(M,I,B){var W=t.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?W+B:W):B=W,M){case 1:var Ae=-1;break;case 2:Ae=250;break;case 5:Ae=1073741823;break;case 4:Ae=1e4;break;default:Ae=5e3}return Ae=B+Ae,M={id:se++,callback:I,priorityLevel:M,startTime:B,expirationTime:Ae,sortIndex:-1},B>W?(M.sortIndex=B,E(_,M),b(C)===null&&M===b(_)&&(pe?o():pe=!0,n(Q,B-W))):(M.sortIndex=Ae,E(C,M),le||Oe||(le=!0,e(ue))),M},t.unstable_wrapCallback=function(M){var I=G;return function(){var B=G;G=I;try{return M.apply(this,arguments)}finally{G=B}}}})(kh),bh.exports=kh;var Jk=bh.exports;/** @license React v17.0.2
115
115
  * react-dom.production.min.js
116
116
  *
117
117
  * Copyright (c) Facebook, Inc. and its affiliates.
118
118
  *
119
119
  * This source code is licensed under the MIT license found in the
120
120
  * LICENSE file in the root directory of this source tree.
121
- */var Ds=x,te=lm,ye=Ub;function A(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!Ds)throw Error(A(227));var kh=new Set,Fr={};function Kn(t,e){Do(t,e),Do(t+"Capture",e)}function Do(t,e){for(Fr[t]=e,t=0;t<e.length;t++)kh.add(e[t])}var It=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jb=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,bh=Object.prototype.hasOwnProperty,xh={},$h={};function _b(t){return bh.call($h,t)?!0:bh.call(xh,t)?!1:Jb.test(t)?$h[t]=!0:(xh[t]=!0,!1)}function Yb(t,e,n,o){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function Kb(t,e,n,o){if(e===null||typeof e>"u"||Yb(t,e,n,o))return!0;if(o)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Fe(t,e,n,o,r,i,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=s}var $e={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){$e[t]=new Fe(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];$e[e]=new Fe(e,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){$e[t]=new Fe(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){$e[t]=new Fe(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){$e[t]=new Fe(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){$e[t]=new Fe(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){$e[t]=new Fe(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){$e[t]=new Fe(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){$e[t]=new Fe(t,5,!1,t.toLowerCase(),null,!1,!1)});var ku=/[\-:]([a-z])/g;function bu(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(ku,bu);$e[e]=new Fe(e,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(ku,bu);$e[e]=new Fe(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(ku,bu);$e[e]=new Fe(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){$e[t]=new Fe(t,1,!1,t.toLowerCase(),null,!1,!1)}),$e.xlinkHref=new Fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){$e[t]=new Fe(t,1,!1,t.toLowerCase(),null,!0,!0)});function xu(t,e,n,o){var r=$e.hasOwnProperty(e)?$e[e]:null,i=r!==null?r.type===0:o?!1:!(!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N");i||(Kb(e,n,r,o)&&(n=null),o||r===null?_b(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):r.mustUseProperty?t[r.propertyName]=n===null?r.type===3?!1:"":n:(e=r.attributeName,o=r.attributeNamespace,n===null?t.removeAttribute(e):(r=r.type,n=r===3||r===4&&n===!0?"":""+n,o?t.setAttributeNS(o,e,n):t.setAttribute(e,n))))}var Wn=Ds.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Br=60103,qn=60106,ln=60107,$u=60108,Hr=60114,Cu=60109,Eu=60110,Ts=60112,Vr=60113,js=60120,Ps=60115,Nu=60116,Ou=60121,Au=60128,Ch=60129,Ru=60130,Mu=60131;if(typeof Symbol=="function"&&Symbol.for){var we=Symbol.for;Br=we("react.element"),qn=we("react.portal"),ln=we("react.fragment"),$u=we("react.strict_mode"),Hr=we("react.profiler"),Cu=we("react.provider"),Eu=we("react.context"),Ts=we("react.forward_ref"),Vr=we("react.suspense"),js=we("react.suspense_list"),Ps=we("react.memo"),Nu=we("react.lazy"),Ou=we("react.block"),we("react.scope"),Au=we("react.opaque.id"),Ch=we("react.debug_trace_mode"),Ru=we("react.offscreen"),Mu=we("react.legacy_hidden")}var Eh=typeof Symbol=="function"&&Symbol.iterator;function Ur(t){return t===null||typeof t!="object"?null:(t=Eh&&t[Eh]||t["@@iterator"],typeof t=="function"?t:null)}var Du;function Jr(t){if(Du===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Du=e&&e[1]||""}return`
122
- `+Du+t}var Tu=!1;function Is(t,e){if(!t||Tu)return"";Tu=!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(`
121
+ */var Ts=x,ne=um,we=Jk;function A(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!Ts)throw Error(A(227));var xh=new Set,Br={};function Wn(t,e){To(t,e),To(t+"Capture",e)}function To(t,e){for(Br[t]=e,t=0;t<e.length;t++)xh.add(e[t])}var Lt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_k=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,$h=Object.prototype.hasOwnProperty,Ch={},Eh={};function Yk(t){return $h.call(Eh,t)?!0:$h.call(Ch,t)?!1:_k.test(t)?Eh[t]=!0:(Ch[t]=!0,!1)}function Kk(t,e,n,o){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function Wk(t,e,n,o){if(e===null||typeof e>"u"||Kk(t,e,n,o))return!0;if(o)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Be(t,e,n,o,r,i,s){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=s}var Ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Ce[t]=new Be(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Ce[e]=new Be(e,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ce[t]=new Be(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Ce[t]=new Be(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Ce[t]=new Be(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){Ce[t]=new Be(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){Ce[t]=new Be(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){Ce[t]=new Be(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){Ce[t]=new Be(t,5,!1,t.toLowerCase(),null,!1,!1)});var ku=/[\-:]([a-z])/g;function xu(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(ku,xu);Ce[e]=new Be(e,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(ku,xu);Ce[e]=new Be(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(ku,xu);Ce[e]=new Be(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){Ce[t]=new Be(t,1,!1,t.toLowerCase(),null,!1,!1)}),Ce.xlinkHref=new Be("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){Ce[t]=new Be(t,1,!1,t.toLowerCase(),null,!0,!0)});function $u(t,e,n,o){var r=Ce.hasOwnProperty(e)?Ce[e]:null,i=r!==null?r.type===0:o?!1:!(!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N");i||(Wk(e,n,r,o)&&(n=null),o||r===null?Yk(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):r.mustUseProperty?t[r.propertyName]=n===null?r.type===3?!1:"":n:(e=r.attributeName,o=r.attributeNamespace,n===null?t.removeAttribute(e):(r=r.type,n=r===3||r===4&&n===!0?"":""+n,o?t.setAttributeNS(o,e,n):t.setAttribute(e,n))))}var qn=Ts.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Hr=60103,Gn=60106,un=60107,Cu=60108,Vr=60114,Eu=60109,Nu=60110,js=60112,Ur=60113,Ps=60120,Is=60115,Ou=60116,Au=60121,Ru=60128,Nh=60129,Mu=60130,Du=60131;if(typeof Symbol=="function"&&Symbol.for){var Se=Symbol.for;Hr=Se("react.element"),Gn=Se("react.portal"),un=Se("react.fragment"),Cu=Se("react.strict_mode"),Vr=Se("react.profiler"),Eu=Se("react.provider"),Nu=Se("react.context"),js=Se("react.forward_ref"),Ur=Se("react.suspense"),Ps=Se("react.suspense_list"),Is=Se("react.memo"),Ou=Se("react.lazy"),Au=Se("react.block"),Se("react.scope"),Ru=Se("react.opaque.id"),Nh=Se("react.debug_trace_mode"),Mu=Se("react.offscreen"),Du=Se("react.legacy_hidden")}var Oh=typeof Symbol=="function"&&Symbol.iterator;function Jr(t){return t===null||typeof t!="object"?null:(t=Oh&&t[Oh]||t["@@iterator"],typeof t=="function"?t:null)}var Tu;function _r(t){if(Tu===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Tu=e&&e[1]||""}return`
122
+ `+Tu+t}var ju=!1;function Ls(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(`
123
123
  `),i=o.stack.split(`
124
124
  `),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`
125
- `+r[s].replace(" at new "," at ");while(1<=s&&0<=a);break}}}finally{Tu=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Jr(t):""}function Wb(t){switch(t.tag){case 5:return Jr(t.type);case 16:return Jr("Lazy");case 13:return Jr("Suspense");case 19:return Jr("SuspenseList");case 0:case 2:case 15:return t=Is(t.type,!1),t;case 11:return t=Is(t.type.render,!1),t;case 22:return t=Is(t.type._render,!1),t;case 1:return t=Is(t.type,!0),t;default:return""}}function To(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 ln:return"Fragment";case qn:return"Portal";case Hr:return"Profiler";case $u:return"StrictMode";case Vr:return"Suspense";case js:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Eu:return(t.displayName||"Context")+".Consumer";case Cu:return(t._context.displayName||"Context")+".Provider";case Ts:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case Ps:return To(t.type);case Ou:return To(t._render);case Nu:e=t._payload,t=t._init;try{return To(t(e))}catch{}}return null}function un(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function Nh(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function qb(t){var e=Nh(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 Ls(t){t._valueTracker||(t._valueTracker=qb(t))}function Oh(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),o="";return t&&(o=Nh(t)?t.checked?"true":"false":t.value),t=o,t!==n?(e.setValue(t),!0):!1}function zs(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 ju(t,e){var n=e.checked;return te({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Ah(t,e){var n=e.defaultValue==null?"":e.defaultValue,o=e.checked!=null?e.checked:e.defaultChecked;n=un(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 Rh(t,e){e=e.checked,e!=null&&xu(t,"checked",e,!1)}function Pu(t,e){Rh(t,e);var n=un(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")?Iu(t,e.type,n):e.hasOwnProperty("defaultValue")&&Iu(t,e.type,un(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Mh(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 Iu(t,e,n){(e!=="number"||zs(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function Gb(t){var e="";return Ds.Children.forEach(t,function(n){n!=null&&(e+=n)}),e}function Lu(t,e){return t=te({children:void 0},e),(e=Gb(e.children))&&(t.children=e),t}function jo(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=""+un(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 zu(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(A(91));return te({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Dh(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(A(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(A(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:un(n)}}function Th(t,e){var n=un(e.value),o=un(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 jh(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}var Fu={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Ph(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 Bu(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Ph(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Fs,Ih=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(Fs=Fs||document.createElement("div"),Fs.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Fs.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function _r(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Yr={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},Qb=["Webkit","ms","Moz","O"];Object.keys(Yr).forEach(function(t){Qb.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Yr[e]=Yr[t]})});function Lh(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Yr.hasOwnProperty(t)&&Yr[t]?(""+e).trim():e+"px"}function zh(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var o=n.indexOf("--")===0,r=Lh(n,e[n],o);n==="float"&&(n="cssFloat"),o?t.setProperty(n,r):t[n]=r}}var Zb=te({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 Hu(t,e){if(e){if(Zb[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(A(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(A(60));if(!(typeof e.dangerouslySetInnerHTML=="object"&&"__html"in e.dangerouslySetInnerHTML))throw Error(A(61))}if(e.style!=null&&typeof e.style!="object")throw Error(A(62))}}function Vu(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 Ju=null,Po=null,Io=null;function Fh(t){if(t=di(t)){if(typeof Ju!="function")throw Error(A(280));var e=t.stateNode;e&&(e=oa(e),Ju(t.stateNode,t.type,e))}}function Bh(t){Po?Io?Io.push(t):Io=[t]:Po=t}function Hh(){if(Po){var t=Po,e=Io;if(Io=Po=null,Fh(t),e)for(t=0;t<e.length;t++)Fh(e[t])}}function _u(t,e){return t(e)}function Vh(t,e,n,o,r){return t(e,n,o,r)}function Yu(){}var Uh=_u,Gn=!1,Ku=!1;function Wu(){(Po!==null||Io!==null)&&(Yu(),Hh())}function Xb(t,e,n){if(Ku)return t(e,n);Ku=!0;try{return Uh(t,e,n)}finally{Ku=!1,Wu()}}function Kr(t,e){var n=t.stateNode;if(n===null)return null;var o=oa(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(A(231,e,typeof n));return n}var qu=!1;if(It)try{var Wr={};Object.defineProperty(Wr,"passive",{get:function(){qu=!0}}),window.addEventListener("test",Wr,Wr),window.removeEventListener("test",Wr,Wr)}catch{qu=!1}function ex(t,e,n,o,r,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(c){this.onError(c)}}var qr=!1,Bs=null,Hs=!1,Gu=null,tx={onError:function(t){qr=!0,Bs=t}};function nx(t,e,n,o,r,i,s,a,l){qr=!1,Bs=null,ex.apply(tx,arguments)}function ox(t,e,n,o,r,i,s,a,l){if(nx.apply(this,arguments),qr){if(qr){var u=Bs;qr=!1,Bs=null}else throw Error(A(198));Hs||(Hs=!0,Gu=u)}}function Qn(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 Jh(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 _h(t){if(Qn(t)!==t)throw Error(A(188))}function rx(t){var e=t.alternate;if(!e){if(e=Qn(t),e===null)throw Error(A(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 _h(r),t;if(i===o)return _h(r),e;i=i.sibling}throw Error(A(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(A(189))}}if(n.alternate!==o)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?t:e}function Yh(t){if(t=rx(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 Kh(t,e){for(var n=t.alternate;e!==null;){if(e===t||e===n)return!0;e=e.return}return!1}var Wh,Qu,qh,Gh,Zu=!1,kt=[],cn=null,dn=null,mn=null,Gr=new Map,Qr=new Map,Zr=[],Qh="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 Xu(t,e,n,o,r){return{blockedOn:t,domEventName:e,eventSystemFlags:n|16,nativeEvent:r,targetContainers:[o]}}function Zh(t,e){switch(t){case"focusin":case"focusout":cn=null;break;case"dragenter":case"dragleave":dn=null;break;case"mouseover":case"mouseout":mn=null;break;case"pointerover":case"pointerout":Gr.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qr.delete(e.pointerId)}}function Xr(t,e,n,o,r,i){return t===null||t.nativeEvent!==i?(t=Xu(e,n,o,r,i),e!==null&&(e=di(e),e!==null&&Qu(e)),t):(t.eventSystemFlags|=o,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function ix(t,e,n,o,r){switch(e){case"focusin":return cn=Xr(cn,t,e,n,o,r),!0;case"dragenter":return dn=Xr(dn,t,e,n,o,r),!0;case"mouseover":return mn=Xr(mn,t,e,n,o,r),!0;case"pointerover":var i=r.pointerId;return Gr.set(i,Xr(Gr.get(i)||null,t,e,n,o,r)),!0;case"gotpointercapture":return i=r.pointerId,Qr.set(i,Xr(Qr.get(i)||null,t,e,n,o,r)),!0}return!1}function sx(t){var e=Zn(t.target);if(e!==null){var n=Qn(e);if(n!==null){if(e=n.tag,e===13){if(e=Jh(n),e!==null){t.blockedOn=e,Gh(t.lanePriority,function(){ye.unstable_runWithPriority(t.priority,function(){qh(n)})});return}}else if(e===3&&n.stateNode.hydrate){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Vs(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=ic(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n!==null)return e=di(n),e!==null&&Qu(e),t.blockedOn=n,!1;e.shift()}return!0}function Xh(t,e,n){Vs(t)&&n.delete(e)}function ax(){for(Zu=!1;0<kt.length;){var t=kt[0];if(t.blockedOn!==null){t=di(t.blockedOn),t!==null&&Wh(t);break}for(var e=t.targetContainers;0<e.length;){var n=ic(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n!==null){t.blockedOn=n;break}e.shift()}t.blockedOn===null&&kt.shift()}cn!==null&&Vs(cn)&&(cn=null),dn!==null&&Vs(dn)&&(dn=null),mn!==null&&Vs(mn)&&(mn=null),Gr.forEach(Xh),Qr.forEach(Xh)}function ei(t,e){t.blockedOn===e&&(t.blockedOn=null,Zu||(Zu=!0,ye.unstable_scheduleCallback(ye.unstable_NormalPriority,ax)))}function eg(t){function e(r){return ei(r,t)}if(0<kt.length){ei(kt[0],t);for(var n=1;n<kt.length;n++){var o=kt[n];o.blockedOn===t&&(o.blockedOn=null)}}for(cn!==null&&ei(cn,t),dn!==null&&ei(dn,t),mn!==null&&ei(mn,t),Gr.forEach(e),Qr.forEach(e),n=0;n<Zr.length;n++)o=Zr[n],o.blockedOn===t&&(o.blockedOn=null);for(;0<Zr.length&&(n=Zr[0],n.blockedOn===null);)sx(n),n.blockedOn===null&&Zr.shift()}function Us(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Lo={animationend:Us("Animation","AnimationEnd"),animationiteration:Us("Animation","AnimationIteration"),animationstart:Us("Animation","AnimationStart"),transitionend:Us("Transition","TransitionEnd")},ec={},tg={};It&&(tg=document.createElement("div").style,"AnimationEvent"in window||(delete Lo.animationend.animation,delete Lo.animationiteration.animation,delete Lo.animationstart.animation),"TransitionEvent"in window||delete Lo.transitionend.transition);function Js(t){if(ec[t])return ec[t];if(!Lo[t])return t;var e=Lo[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in tg)return ec[t]=e[n];return t}var ng=Js("animationend"),og=Js("animationiteration"),rg=Js("animationstart"),ig=Js("transitionend"),sg=new Map,tc=new Map,lx=["abort","abort",ng,"animationEnd",og,"animationIteration",rg,"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",ig,"transitionEnd","waiting","waiting"];function nc(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)),tc.set(o,e),sg.set(o,r),Kn(r,[o])}}var ux=ye.unstable_now;ux();var Q=8;function zo(t){if(1&t)return Q=15,1;if(2&t)return Q=14,2;if(4&t)return Q=13,4;var e=24&t;return e!==0?(Q=12,e):t&32?(Q=11,32):(e=192&t,e!==0?(Q=10,e):t&256?(Q=9,256):(e=3584&t,e!==0?(Q=8,e):t&4096?(Q=7,4096):(e=4186112&t,e!==0?(Q=6,e):(e=62914560&t,e!==0?(Q=5,e):t&67108864?(Q=4,67108864):t&134217728?(Q=3,134217728):(e=805306368&t,e!==0?(Q=2,e):1073741824&t?(Q=1,1073741824):(Q=8,t))))))}function cx(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 dx(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(A(358,t))}}function ti(t,e){var n=t.pendingLanes;if(n===0)return Q=0;var o=0,r=0,i=t.expiredLanes,s=t.suspendedLanes,a=t.pingedLanes;if(i!==0)o=i,r=Q=15;else if(i=n&134217727,i!==0){var l=i&~s;l!==0?(o=zo(l),r=Q):(a&=i,a!==0&&(o=zo(a),r=Q))}else i=n&~s,i!==0?(o=zo(i),r=Q):a!==0&&(o=zo(a),r=Q);if(o===0)return 0;if(o=31-fn(o),o=n&((0>o?0:1<<o)<<1)-1,e!==0&&e!==o&&!(e&s)){if(zo(e),r<=Q)return e;Q=r}if(e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=o;0<e;)n=31-fn(e),r=1<<n,o|=t[n],e&=~r;return o}function ag(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function _s(t,e){switch(t){case 15:return 1;case 14:return 2;case 12:return t=Fo(24&~e),t===0?_s(10,e):t;case 10:return t=Fo(192&~e),t===0?_s(8,e):t;case 8:return t=Fo(3584&~e),t===0&&(t=Fo(4186112&~e),t===0&&(t=512)),t;case 2:return e=Fo(805306368&~e),e===0&&(e=268435456),e}throw Error(A(358,t))}function Fo(t){return t&-t}function oc(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Ys(t,e,n){t.pendingLanes|=e;var o=e-1;t.suspendedLanes&=o,t.pingedLanes&=o,t=t.eventTimes,e=31-fn(e),t[e]=n}var fn=Math.clz32?Math.clz32:px,mx=Math.log,fx=Math.LN2;function px(t){return t===0?32:31-(mx(t)/fx|0)|0}var hx=ye.unstable_UserBlockingPriority,gx=ye.unstable_runWithPriority,Ks=!0;function yx(t,e,n,o){Gn||Yu();var r=rc,i=Gn;Gn=!0;try{Vh(r,t,e,n,o)}finally{(Gn=i)||Wu()}}function wx(t,e,n,o){gx(hx,rc.bind(null,t,e,n,o))}function rc(t,e,n,o){if(Ks){var r;if((r=(e&4)===0)&&0<kt.length&&-1<Qh.indexOf(t))t=Xu(null,t,e,n,o),kt.push(t);else{var i=ic(t,e,n,o);if(i===null)r&&Zh(t,o);else{if(r){if(-1<Qh.indexOf(t)){t=Xu(i,t,e,n,o),kt.push(t);return}if(ix(i,t,e,n,o))return;Zh(t,o)}Lg(t,e,o,null,n)}}}}function ic(t,e,n,o){var r=Uu(o);if(r=Zn(r),r!==null){var i=Qn(r);if(i===null)r=null;else{var s=i.tag;if(s===13){if(r=Jh(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 Lg(t,e,o,r,n),null}var pn=null,sc=null,Ws=null;function lg(){if(Ws)return Ws;var t,e=sc,n=e.length,o,r="value"in pn?pn.value:pn.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 Ws=r.slice(t,1<o?1-o:void 0)}function qs(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 Gs(){return!0}function ug(){return!1}function qe(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)?Gs:ug,this.isPropagationStopped=ug,this}return te(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=Gs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Gs)},persist:function(){},isPersistent:Gs}),e}var Bo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ac=qe(Bo),ni=te({},Bo,{view:0,detail:0}),Sx=qe(ni),lc,uc,oi,Qs=te({},ni,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dc,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!==oi&&(oi&&t.type==="mousemove"?(lc=t.screenX-oi.screenX,uc=t.screenY-oi.screenY):uc=lc=0,oi=t),lc)},movementY:function(t){return"movementY"in t?t.movementY:uc}}),cg=qe(Qs),vx=te({},Qs,{dataTransfer:0}),kx=qe(vx),bx=te({},ni,{relatedTarget:0}),cc=qe(bx),xx=te({},Bo,{animationName:0,elapsedTime:0,pseudoElement:0}),$x=qe(xx),Cx=te({},Bo,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Ex=qe(Cx),Nx=te({},Bo,{data:0}),dg=qe(Nx),Ox={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ax={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"},Rx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mx(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Rx[t])?!!e[t]:!1}function dc(){return Mx}var Dx=te({},ni,{key:function(t){if(t.key){var e=Ox[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=qs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Ax[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dc,charCode:function(t){return t.type==="keypress"?qs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?qs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Tx=qe(Dx),jx=te({},Qs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mg=qe(jx),Px=te({},ni,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dc}),Ix=qe(Px),Lx=te({},Bo,{propertyName:0,elapsedTime:0,pseudoElement:0}),zx=qe(Lx),Fx=te({},Qs,{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}),Bx=qe(Fx),Hx=[9,13,27,32],mc=It&&"CompositionEvent"in window,ri=null;It&&"documentMode"in document&&(ri=document.documentMode);var Vx=It&&"TextEvent"in window&&!ri,fg=It&&(!mc||ri&&8<ri&&11>=ri),pg=String.fromCharCode(32),hg=!1;function gg(t,e){switch(t){case"keyup":return Hx.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yg(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ho=!1;function Ux(t,e){switch(t){case"compositionend":return yg(e);case"keypress":return e.which!==32?null:(hg=!0,pg);case"textInput":return t=e.data,t===pg&&hg?null:t;default:return null}}function Jx(t,e){if(Ho)return t==="compositionend"||!mc&&gg(t,e)?(t=lg(),Ws=sc=pn=null,Ho=!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 fg&&e.locale!=="ko"?null:e.data;default:return null}}var _x={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 wg(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!_x[t.type]:e==="textarea"}function Sg(t,e,n,o){Bh(o),e=Xs(e,"onChange"),0<e.length&&(n=new ac("onChange","change",null,n,o),t.push({event:n,listeners:e}))}var ii=null,si=null;function Yx(t){Dg(t,0)}function Zs(t){var e=Yo(t);if(Oh(e))return t}function Kx(t,e){if(t==="change")return e}var vg=!1;if(It){var fc;if(It){var pc="oninput"in document;if(!pc){var kg=document.createElement("div");kg.setAttribute("oninput","return;"),pc=typeof kg.oninput=="function"}fc=pc}else fc=!1;vg=fc&&(!document.documentMode||9<document.documentMode)}function bg(){ii&&(ii.detachEvent("onpropertychange",xg),si=ii=null)}function xg(t){if(t.propertyName==="value"&&Zs(si)){var e=[];if(Sg(e,si,t,Uu(t)),t=Yx,Gn)t(e);else{Gn=!0;try{_u(t,e)}finally{Gn=!1,Wu()}}}}function Wx(t,e,n){t==="focusin"?(bg(),ii=e,si=n,ii.attachEvent("onpropertychange",xg)):t==="focusout"&&bg()}function qx(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Zs(si)}function Gx(t,e){if(t==="click")return Zs(e)}function Qx(t,e){if(t==="input"||t==="change")return Zs(e)}function Zx(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var rt=typeof Object.is=="function"?Object.is:Zx,Xx=Object.prototype.hasOwnProperty;function ai(t,e){if(rt(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(!Xx.call(e,n[o])||!rt(t[n[o]],e[n[o]]))return!1;return!0}function $g(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Cg(t,e){var n=$g(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=$g(n)}}function Eg(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Eg(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Ng(){for(var t=window,e=zs();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=zs(t.document)}return e}function hc(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 e$=It&&"documentMode"in document&&11>=document.documentMode,Vo=null,gc=null,li=null,yc=!1;function Og(t,e,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;yc||Vo==null||Vo!==zs(o)||(o=Vo,"selectionStart"in o&&hc(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}),li&&ai(li,o)||(li=o,o=Xs(gc,"onSelect"),0<o.length&&(e=new ac("onSelect","select",null,e,n),t.push({event:e,listeners:o}),e.target=Vo)))}nc("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),nc("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),nc(lx,2);for(var Ag="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),wc=0;wc<Ag.length;wc++)tc.set(Ag[wc],0);Do("onMouseEnter",["mouseout","mouseover"]),Do("onMouseLeave",["mouseout","mouseover"]),Do("onPointerEnter",["pointerout","pointerover"]),Do("onPointerLeave",["pointerout","pointerover"]),Kn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Kn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Kn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Kn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Kn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Kn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ui="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Rg=new Set("cancel close invalid load scroll toggle".split(" ").concat(ui));function Mg(t,e,n){var o=t.type||"unknown-event";t.currentTarget=n,ox(o,e,void 0,t),t.currentTarget=null}function Dg(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,u=a.currentTarget;if(a=a.listener,l!==i&&r.isPropagationStopped())break e;Mg(r,a,u),i=l}else for(s=0;s<o.length;s++){if(a=o[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&r.isPropagationStopped())break e;Mg(r,a,u),i=l}}}if(Hs)throw t=Gu,Hs=!1,Gu=null,t}function X(t,e){var n=Ug(e),o=t+"__bubble";n.has(o)||(Ig(e,t,2,!1),n.add(o))}var Tg="_reactListening"+Math.random().toString(36).slice(2);function jg(t){t[Tg]||(t[Tg]=!0,kh.forEach(function(e){Rg.has(e)||Pg(e,!1,t,null),Pg(e,!0,t,null)}))}function Pg(t,e,n,o){var r=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,i=n;if(t==="selectionchange"&&n.nodeType!==9&&(i=n.ownerDocument),o!==null&&!e&&Rg.has(t)){if(t!=="scroll")return;r|=2,i=o}var s=Ug(i),a=t+"__"+(e?"capture":"bubble");s.has(a)||(e&&(r|=4),Ig(i,t,r,e),s.add(a))}function Ig(t,e,n,o){var r=tc.get(e);switch(r===void 0?2:r){case 0:r=yx;break;case 1:r=wx;break;default:r=rc}n=r.bind(null,e,n,t),r=void 0,!qu||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 Lg(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=Zn(a),s===null)return;if(l=s.tag,l===5||l===6){o=i=s;continue e}a=a.parentNode}}o=o.return}Xb(function(){var u=i,c=Uu(n),m=[];e:{var d=sg.get(t);if(d!==void 0){var f=ac,p=t;switch(t){case"keypress":if(qs(n)===0)break e;case"keydown":case"keyup":f=Tx;break;case"focusin":p="focus",f=cc;break;case"focusout":p="blur",f=cc;break;case"beforeblur":case"afterblur":f=cc;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=cg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=kx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=Ix;break;case ng:case og:case rg:f=$x;break;case ig:f=zx;break;case"scroll":f=Sx;break;case"wheel":f=Bx;break;case"copy":case"cut":case"paste":f=Ex;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=mg}var y=(e&4)!==0,h=!y&&t==="scroll",g=y?d!==null?d+"Capture":null:d;y=[];for(var w=u,v;w!==null;){v=w;var b=v.stateNode;if(v.tag===5&&b!==null&&(v=b,g!==null&&(b=Kr(w,g),b!=null&&y.push(ci(w,b,v)))),h)break;w=w.return}0<y.length&&(d=new f(d,p,null,n,c),m.push({event:d,listeners:y}))}}if(!(e&7)){e:{if(d=t==="mouseover"||t==="pointerover",f=t==="mouseout"||t==="pointerout",d&&!(e&16)&&(p=n.relatedTarget||n.fromElement)&&(Zn(p)||p[_o]))break e;if((f||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,f?(p=n.relatedTarget||n.toElement,f=u,p=p?Zn(p):null,p!==null&&(h=Qn(p),p!==h||p.tag!==5&&p.tag!==6)&&(p=null)):(f=null,p=u),f!==p)){if(y=cg,b="onMouseLeave",g="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(y=mg,b="onPointerLeave",g="onPointerEnter",w="pointer"),h=f==null?d:Yo(f),v=p==null?d:Yo(p),d=new y(b,w+"leave",f,n,c),d.target=h,d.relatedTarget=v,b=null,Zn(c)===u&&(y=new y(g,w+"enter",p,n,c),y.target=v,y.relatedTarget=h,b=y),h=b,f&&p)t:{for(y=f,g=p,w=0,v=y;v;v=Uo(v))w++;for(v=0,b=g;b;b=Uo(b))v++;for(;0<w-v;)y=Uo(y),w--;for(;0<v-w;)g=Uo(g),v--;for(;w--;){if(y===g||g!==null&&y===g.alternate)break t;y=Uo(y),g=Uo(g)}y=null}else y=null;f!==null&&zg(m,d,f,y,!1),p!==null&&h!==null&&zg(m,h,p,y,!0)}}e:{if(d=u?Yo(u):window,f=d.nodeName&&d.nodeName.toLowerCase(),f==="select"||f==="input"&&d.type==="file")var E=Kx;else if(wg(d))if(vg)E=Qx;else{E=qx;var k=Wx}else(f=d.nodeName)&&f.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(E=Gx);if(E&&(E=E(t,u))){Sg(m,E,n,c);break e}k&&k(t,d,u),t==="focusout"&&(k=d._wrapperState)&&k.controlled&&d.type==="number"&&Iu(d,"number",d.value)}switch(k=u?Yo(u):window,t){case"focusin":(wg(k)||k.contentEditable==="true")&&(Vo=k,gc=u,li=null);break;case"focusout":li=gc=Vo=null;break;case"mousedown":yc=!0;break;case"contextmenu":case"mouseup":case"dragend":yc=!1,Og(m,n,c);break;case"selectionchange":if(e$)break;case"keydown":case"keyup":Og(m,n,c)}var $;if(mc)e:{switch(t){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else Ho?gg(t,n)&&(R="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(fg&&n.locale!=="ko"&&(Ho||R!=="onCompositionStart"?R==="onCompositionEnd"&&Ho&&($=lg()):(pn=c,sc="value"in pn?pn.value:pn.textContent,Ho=!0)),k=Xs(u,R),0<k.length&&(R=new dg(R,t,null,n,c),m.push({event:R,listeners:k}),$?R.data=$:($=yg(n),$!==null&&(R.data=$)))),($=Vx?Ux(t,n):Jx(t,n))&&(u=Xs(u,"onBeforeInput"),0<u.length&&(c=new dg("onBeforeInput","beforeinput",null,n,c),m.push({event:c,listeners:u}),c.data=$))}Dg(m,e)})}function ci(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Xs(t,e){for(var n=e+"Capture",o=[];t!==null;){var r=t,i=r.stateNode;r.tag===5&&i!==null&&(r=i,i=Kr(t,n),i!=null&&o.unshift(ci(t,i,r)),i=Kr(t,e),i!=null&&o.push(ci(t,i,r))),t=t.return}return o}function Uo(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function zg(t,e,n,o,r){for(var i=e._reactName,s=[];n!==null&&n!==o;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===o)break;a.tag===5&&u!==null&&(a=u,r?(l=Kr(n,i),l!=null&&s.unshift(ci(n,l,a))):r||(l=Kr(n,i),l!=null&&s.push(ci(n,l,a)))),n=n.return}s.length!==0&&t.push({event:e,listeners:s})}function ea(){}var Sc=null,vc=null;function Fg(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function kc(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 Bg=typeof setTimeout=="function"?setTimeout:void 0,t$=typeof clearTimeout=="function"?clearTimeout:void 0;function bc(t){t.nodeType===1?t.textContent="":t.nodeType===9&&(t=t.body,t!=null&&(t.textContent=""))}function Jo(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break}return t}function Hg(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 xc=0;function n$(t){return{$$typeof:Au,toString:t,valueOf:t}}var ta=Math.random().toString(36).slice(2),hn="__reactFiber$"+ta,na="__reactProps$"+ta,_o="__reactContainer$"+ta,Vg="__reactEvents$"+ta;function Zn(t){var e=t[hn];if(e)return e;for(var n=t.parentNode;n;){if(e=n[_o]||n[hn]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Hg(t);t!==null;){if(n=t[hn])return n;t=Hg(t)}return e}t=n,n=t.parentNode}return null}function di(t){return t=t[hn]||t[_o],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Yo(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(A(33))}function oa(t){return t[na]||null}function Ug(t){var e=t[Vg];return e===void 0&&(e=t[Vg]=new Set),e}var $c=[],Ko=-1;function gn(t){return{current:t}}function ee(t){0>Ko||(t.current=$c[Ko],$c[Ko]=null,Ko--)}function oe(t,e){Ko++,$c[Ko]=t.current,t.current=e}var yn={},De=gn(yn),Ue=gn(!1),Xn=yn;function Wo(t,e){var n=t.type.contextTypes;if(!n)return yn;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 Je(t){return t=t.childContextTypes,t!=null}function ra(){ee(Ue),ee(De)}function Jg(t,e,n){if(De.current!==yn)throw Error(A(168));oe(De,e),oe(Ue,n)}function _g(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(A(108,To(e)||"Unknown",r));return te({},n,o)}function ia(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||yn,Xn=De.current,oe(De,t),oe(Ue,Ue.current),!0}function Yg(t,e,n){var o=t.stateNode;if(!o)throw Error(A(169));n?(t=_g(t,e,Xn),o.__reactInternalMemoizedMergedChildContext=t,ee(Ue),ee(De),oe(De,t)):ee(Ue),oe(Ue,n)}var Cc=null,eo=null,o$=ye.unstable_runWithPriority,Ec=ye.unstable_scheduleCallback,Nc=ye.unstable_cancelCallback,r$=ye.unstable_shouldYield,Kg=ye.unstable_requestPaint,Oc=ye.unstable_now,i$=ye.unstable_getCurrentPriorityLevel,sa=ye.unstable_ImmediatePriority,Wg=ye.unstable_UserBlockingPriority,qg=ye.unstable_NormalPriority,Gg=ye.unstable_LowPriority,Qg=ye.unstable_IdlePriority,Ac={},s$=Kg!==void 0?Kg:function(){},Lt=null,aa=null,Rc=!1,Zg=Oc(),Te=1e4>Zg?Oc:function(){return Oc()-Zg};function qo(){switch(i$()){case sa:return 99;case Wg:return 98;case qg:return 97;case Gg:return 96;case Qg:return 95;default:throw Error(A(332))}}function Xg(t){switch(t){case 99:return sa;case 98:return Wg;case 97:return qg;case 96:return Gg;case 95:return Qg;default:throw Error(A(332))}}function to(t,e){return t=Xg(t),o$(t,e)}function mi(t,e,n){return t=Xg(t),Ec(t,e,n)}function bt(){if(aa!==null){var t=aa;aa=null,Nc(t)}ey()}function ey(){if(!Rc&&Lt!==null){Rc=!0;var t=0;try{var e=Lt;to(99,function(){for(;t<e.length;t++){var n=e[t];do n=n(!0);while(n!==null)}}),Lt=null}catch(n){throw Lt!==null&&(Lt=Lt.slice(t+1)),Ec(sa,bt),n}finally{Rc=!1}}}var a$=Wn.ReactCurrentBatchConfig;function ht(t,e){if(t&&t.defaultProps){e=te({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}var la=gn(null),ua=null,Go=null,ca=null;function Mc(){ca=Go=ua=null}function Dc(t){var e=la.current;ee(la),t.type._context._currentValue=e}function ty(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 Qo(t,e){ua=t,ca=Go=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(gt=!0),t.firstContext=null)}function it(t,e){if(ca!==t&&e!==!1&&e!==0)if((typeof e!="number"||e===1073741823)&&(ca=t,e=1073741823),e={context:t,observedBits:e,next:null},Go===null){if(ua===null)throw Error(A(308));Go=e,ua.dependencies={lanes:0,firstContext:e,responders:null}}else Go=Go.next=e;return t._currentValue}var wn=!1;function Tc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ny(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 Sn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function vn(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 oy(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 fi(t,e,n,o){var r=t.updateQueue;wn=!1;var i=r.firstBaseUpdate,s=r.lastBaseUpdate,a=r.shared.pending;if(a!==null){r.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=t.alternate;if(c!==null){c=c.updateQueue;var m=c.lastBaseUpdate;m!==s&&(m===null?c.firstBaseUpdate=u:m.next=u,c.lastBaseUpdate=l)}}if(i!==null){m=r.baseState,s=0,c=u=l=null;do{a=i.lane;var d=i.eventTime;if((o&a)===a){c!==null&&(c=c.next={eventTime:d,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var f=t,p=i;switch(a=e,d=n,p.tag){case 1:if(f=p.payload,typeof f=="function"){m=f.call(d,m,a);break e}m=f;break e;case 3:f.flags=f.flags&-4097|64;case 0:if(f=p.payload,a=typeof f=="function"?f.call(d,m,a):f,a==null)break e;m=te({},m,a);break e;case 2:wn=!0}}i.callback!==null&&(t.flags|=32,a=r.effects,a===null?r.effects=[i]:a.push(i))}else d={eventTime:d,lane:a,tag:i.tag,payload:i.payload,callback:i.callback,next:null},c===null?(u=c=d,l=m):c=c.next=d,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(1);c===null&&(l=m),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,Ci|=s,t.lanes=s,t.memoizedState=m}}function ry(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(A(191,r));r.call(o)}}}var iy=new Ds.Component().refs;function da(t,e,n,o){e=t.memoizedState,n=n(o,e),n=n==null?e:te({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var ma={isMounted:function(t){return(t=t._reactInternals)?Qn(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var o=Ge(),r=xn(t),i=Sn(o,r);i.payload=e,n!=null&&(i.callback=n),vn(t,i),$n(t,r,o)},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var o=Ge(),r=xn(t),i=Sn(o,r);i.tag=1,i.payload=e,n!=null&&(i.callback=n),vn(t,i),$n(t,r,o)},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ge(),o=xn(t),r=Sn(n,o);r.tag=2,e!=null&&(r.callback=e),vn(t,r),$n(t,o,n)}};function sy(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?!ai(n,o)||!ai(r,i):!0}function ay(t,e,n){var o=!1,r=yn,i=e.contextType;return typeof i=="object"&&i!==null?i=it(i):(r=Je(e)?Xn:De.current,o=e.contextTypes,i=(o=o!=null)?Wo(t,r):yn),e=new e(n,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=ma,t.stateNode=e,e._reactInternals=t,o&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=i),e}function ly(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&&ma.enqueueReplaceState(e,e.state,null)}function jc(t,e,n,o){var r=t.stateNode;r.props=n,r.state=t.memoizedState,r.refs=iy,Tc(t);var i=e.contextType;typeof i=="object"&&i!==null?r.context=it(i):(i=Je(e)?Xn:De.current,r.context=Wo(t,i)),fi(t,n,r,o),r.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(da(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&&ma.enqueueReplaceState(r,r.state,null),fi(t,n,r,o),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4)}var fa=Array.isArray;function pi(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(A(309));var o=n.stateNode}if(!o)throw Error(A(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===iy&&(s=o.refs={}),i===null?delete s[r]:s[r]=i},e._stringRef=r,e)}if(typeof t!="string")throw Error(A(284));if(!n._owner)throw Error(A(290,t))}return t}function pa(t,e){if(t.type!=="textarea")throw Error(A(31,Object.prototype.toString.call(e)==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":e))}function uy(t){function e(h,g){if(t){var w=h.lastEffect;w!==null?(w.nextEffect=g,h.lastEffect=g):h.firstEffect=h.lastEffect=g,g.nextEffect=null,g.flags=8}}function n(h,g){if(!t)return null;for(;g!==null;)e(h,g),g=g.sibling;return null}function o(h,g){for(h=new Map;g!==null;)g.key!==null?h.set(g.key,g):h.set(g.index,g),g=g.sibling;return h}function r(h,g){return h=Nn(h,g),h.index=0,h.sibling=null,h}function i(h,g,w){return h.index=w,t?(w=h.alternate,w!==null?(w=w.index,w<g?(h.flags=2,g):w):(h.flags=2,g)):g}function s(h){return t&&h.alternate===null&&(h.flags=2),h}function a(h,g,w,v){return g===null||g.tag!==6?(g=gd(w,h.mode,v),g.return=h,g):(g=r(g,w),g.return=h,g)}function l(h,g,w,v){return g!==null&&g.elementType===w.type?(v=r(g,w.props),v.ref=pi(h,g,w),v.return=h,v):(v=Da(w.type,w.key,w.props,null,h.mode,v),v.ref=pi(h,g,w),v.return=h,v)}function u(h,g,w,v){return g===null||g.tag!==4||g.stateNode.containerInfo!==w.containerInfo||g.stateNode.implementation!==w.implementation?(g=yd(w,h.mode,v),g.return=h,g):(g=r(g,w.children||[]),g.return=h,g)}function c(h,g,w,v,b){return g===null||g.tag!==7?(g=ir(w,h.mode,v,b),g.return=h,g):(g=r(g,w),g.return=h,g)}function m(h,g,w){if(typeof g=="string"||typeof g=="number")return g=gd(""+g,h.mode,w),g.return=h,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Br:return w=Da(g.type,g.key,g.props,null,h.mode,w),w.ref=pi(h,null,g),w.return=h,w;case qn:return g=yd(g,h.mode,w),g.return=h,g}if(fa(g)||Ur(g))return g=ir(g,h.mode,w,null),g.return=h,g;pa(h,g)}return null}function d(h,g,w,v){var b=g!==null?g.key:null;if(typeof w=="string"||typeof w=="number")return b!==null?null:a(h,g,""+w,v);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Br:return w.key===b?w.type===ln?c(h,g,w.props.children,v,b):l(h,g,w,v):null;case qn:return w.key===b?u(h,g,w,v):null}if(fa(w)||Ur(w))return b!==null?null:c(h,g,w,v,null);pa(h,w)}return null}function f(h,g,w,v,b){if(typeof v=="string"||typeof v=="number")return h=h.get(w)||null,a(g,h,""+v,b);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Br:return h=h.get(v.key===null?w:v.key)||null,v.type===ln?c(g,h,v.props.children,b,v.key):l(g,h,v,b);case qn:return h=h.get(v.key===null?w:v.key)||null,u(g,h,v,b)}if(fa(v)||Ur(v))return h=h.get(w)||null,c(g,h,v,b,null);pa(g,v)}return null}function p(h,g,w,v){for(var b=null,E=null,k=g,$=g=0,R=null;k!==null&&$<w.length;$++){k.index>$?(R=k,k=null):R=k.sibling;var C=d(h,k,w[$],v);if(C===null){k===null&&(k=R);break}t&&k&&C.alternate===null&&e(h,k),g=i(C,g,$),E===null?b=C:E.sibling=C,E=C,k=R}if($===w.length)return n(h,k),b;if(k===null){for(;$<w.length;$++)k=m(h,w[$],v),k!==null&&(g=i(k,g,$),E===null?b=k:E.sibling=k,E=k);return b}for(k=o(h,k);$<w.length;$++)R=f(k,h,$,w[$],v),R!==null&&(t&&R.alternate!==null&&k.delete(R.key===null?$:R.key),g=i(R,g,$),E===null?b=R:E.sibling=R,E=R);return t&&k.forEach(function(J){return e(h,J)}),b}function y(h,g,w,v){var b=Ur(w);if(typeof b!="function")throw Error(A(150));if(w=b.call(w),w==null)throw Error(A(151));for(var E=b=null,k=g,$=g=0,R=null,C=w.next();k!==null&&!C.done;$++,C=w.next()){k.index>$?(R=k,k=null):R=k.sibling;var J=d(h,k,C.value,v);if(J===null){k===null&&(k=R);break}t&&k&&J.alternate===null&&e(h,k),g=i(J,g,$),E===null?b=J:E.sibling=J,E=J,k=R}if(C.done)return n(h,k),b;if(k===null){for(;!C.done;$++,C=w.next())C=m(h,C.value,v),C!==null&&(g=i(C,g,$),E===null?b=C:E.sibling=C,E=C);return b}for(k=o(h,k);!C.done;$++,C=w.next())C=f(k,h,$,C.value,v),C!==null&&(t&&C.alternate!==null&&k.delete(C.key===null?$:C.key),g=i(C,g,$),E===null?b=C:E.sibling=C,E=C);return t&&k.forEach(function(ie){return e(h,ie)}),b}return function(h,g,w,v){var b=typeof w=="object"&&w!==null&&w.type===ln&&w.key===null;b&&(w=w.props.children);var E=typeof w=="object"&&w!==null;if(E)switch(w.$$typeof){case Br:e:{for(E=w.key,b=g;b!==null;){if(b.key===E){switch(b.tag){case 7:if(w.type===ln){n(h,b.sibling),g=r(b,w.props.children),g.return=h,h=g;break e}break;default:if(b.elementType===w.type){n(h,b.sibling),g=r(b,w.props),g.ref=pi(h,b,w),g.return=h,h=g;break e}}n(h,b);break}else e(h,b);b=b.sibling}w.type===ln?(g=ir(w.props.children,h.mode,v,w.key),g.return=h,h=g):(v=Da(w.type,w.key,w.props,null,h.mode,v),v.ref=pi(h,g,w),v.return=h,h=v)}return s(h);case qn:e:{for(b=w.key;g!==null;){if(g.key===b)if(g.tag===4&&g.stateNode.containerInfo===w.containerInfo&&g.stateNode.implementation===w.implementation){n(h,g.sibling),g=r(g,w.children||[]),g.return=h,h=g;break e}else{n(h,g);break}else e(h,g);g=g.sibling}g=yd(w,h.mode,v),g.return=h,h=g}return s(h)}if(typeof w=="string"||typeof w=="number")return w=""+w,g!==null&&g.tag===6?(n(h,g.sibling),g=r(g,w),g.return=h,h=g):(n(h,g),g=gd(w,h.mode,v),g.return=h,h=g),s(h);if(fa(w))return p(h,g,w,v);if(Ur(w))return y(h,g,w,v);if(E&&pa(h,w),typeof w>"u"&&!b)switch(h.tag){case 1:case 22:case 0:case 11:case 15:throw Error(A(152,To(h.type)||"Component"))}return n(h,g)}}var ha=uy(!0),cy=uy(!1),hi={},xt=gn(hi),gi=gn(hi),yi=gn(hi);function no(t){if(t===hi)throw Error(A(174));return t}function Pc(t,e){switch(oe(yi,e),oe(gi,t),oe(xt,hi),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Bu(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Bu(e,t)}ee(xt),oe(xt,e)}function Zo(){ee(xt),ee(gi),ee(yi)}function dy(t){no(yi.current);var e=no(xt.current),n=Bu(e,t.type);e!==n&&(oe(gi,t),oe(xt,n))}function Ic(t){gi.current===t&&(ee(xt),ee(gi))}var re=gn(0);function ga(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 zt=null,kn=null,$t=!1;function my(t,e){var n=lt(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 fy(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 Lc(t){if($t){var e=kn;if(e){var n=e;if(!fy(t,e)){if(e=Jo(n.nextSibling),!e||!fy(t,e)){t.flags=t.flags&-1025|2,$t=!1,zt=t;return}my(zt,n)}zt=t,kn=Jo(e.firstChild)}else t.flags=t.flags&-1025|2,$t=!1,zt=t}}function py(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;zt=t}function ya(t){if(t!==zt)return!1;if(!$t)return py(t),$t=!0,!1;var e=t.type;if(t.tag!==5||e!=="head"&&e!=="body"&&!kc(e,t.memoizedProps))for(e=kn;e;)my(t,e),e=Jo(e.nextSibling);if(py(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(A(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){kn=Jo(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}kn=null}}else kn=zt?Jo(t.stateNode.nextSibling):null;return!0}function zc(){kn=zt=null,$t=!1}var Xo=[];function Fc(){for(var t=0;t<Xo.length;t++)Xo[t]._workInProgressVersionPrimary=null;Xo.length=0}var wi=Wn.ReactCurrentDispatcher,st=Wn.ReactCurrentBatchConfig,Si=0,se=null,je=null,Ce=null,wa=!1,vi=!1;function _e(){throw Error(A(321))}function Bc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!rt(t[n],e[n]))return!1;return!0}function Hc(t,e,n,o,r,i){if(Si=i,se=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,wi.current=t===null||t.memoizedState===null?u$:c$,t=n(o,r),vi){i=0;do{if(vi=!1,!(25>i))throw Error(A(301));i+=1,Ce=je=null,e.updateQueue=null,wi.current=d$,t=n(o,r)}while(vi)}if(wi.current=ba,e=je!==null&&je.next!==null,Si=0,Ce=je=se=null,wa=!1,e)throw Error(A(300));return t}function oo(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ce===null?se.memoizedState=Ce=t:Ce=Ce.next=t,Ce}function ro(){if(je===null){var t=se.alternate;t=t!==null?t.memoizedState:null}else t=je.next;var e=Ce===null?se.memoizedState:Ce.next;if(e!==null)Ce=e,je=t;else{if(t===null)throw Error(A(310));je=t,t={memoizedState:je.memoizedState,baseState:je.baseState,baseQueue:je.baseQueue,queue:je.queue,next:null},Ce===null?se.memoizedState=Ce=t:Ce=Ce.next=t}return Ce}function Ct(t,e){return typeof e=="function"?e(t):e}function ki(t){var e=ro(),n=e.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=t;var o=je,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 u=l.lane;if((Si&u)===u)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 c={lane:u,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};a===null?(s=a=c,i=o):a=a.next=c,se.lanes|=u,Ci|=u}l=l.next}while(l!==null&&l!==r);a===null?i=o:a.next=s,rt(o,e.memoizedState)||(gt=!0),e.memoizedState=o,e.baseState=i,e.baseQueue=a,n.lastRenderedState=o}return[e.memoizedState,n.dispatch]}function bi(t){var e=ro(),n=e.queue;if(n===null)throw Error(A(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);rt(i,e.memoizedState)||(gt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,o]}function hy(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=(Si&t)===t)&&(e._workInProgressVersionPrimary=o,Xo.push(e))),t)return n(e._source);throw Xo.push(e),Error(A(350))}function gy(t,e,n,o){var r=Be;if(r===null)throw Error(A(349));var i=e._getVersion,s=i(e._source),a=wi.current,l=a.useState(function(){return hy(r,e,n)}),u=l[1],c=l[0];l=Ce;var m=t.memoizedState,d=m.refs,f=d.getSnapshot,p=m.source;m=m.subscribe;var y=se;return t.memoizedState={refs:d,source:e,subscribe:o},a.useEffect(function(){d.getSnapshot=n,d.setSnapshot=u;var h=i(e._source);if(!rt(s,h)){h=n(e._source),rt(c,h)||(u(h),h=xn(y),r.mutableReadLanes|=h&r.pendingLanes),h=r.mutableReadLanes,r.entangledLanes|=h;for(var g=r.entanglements,w=h;0<w;){var v=31-fn(w),b=1<<v;g[v]|=h,w&=~b}}},[n,e,o]),a.useEffect(function(){return o(e._source,function(){var h=d.getSnapshot,g=d.setSnapshot;try{g(h(e._source));var w=xn(y);r.mutableReadLanes|=w&r.pendingLanes}catch(v){g(function(){throw v})}})},[e,o]),rt(f,n)&&rt(p,e)&&rt(m,o)||(t={pending:null,dispatch:null,lastRenderedReducer:Ct,lastRenderedState:c},t.dispatch=u=_c.bind(null,se,t),l.queue=t,l.baseQueue=null,c=hy(r,e,n),l.memoizedState=l.baseState=c),c}function yy(t,e,n){var o=ro();return gy(o,t,e,n)}function xi(t){var e=oo();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t=e.queue={pending:null,dispatch:null,lastRenderedReducer:Ct,lastRenderedState:t},t=t.dispatch=_c.bind(null,se,t),[e.memoizedState,t]}function Sa(t,e,n,o){return t={tag:t,create:e,destroy:n,deps:o,next:null},e=se.updateQueue,e===null?(e={lastEffect:null},se.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 wy(t){var e=oo();return t={current:t},e.memoizedState=t}function va(){return ro().memoizedState}function Vc(t,e,n,o){var r=oo();se.flags|=t,r.memoizedState=Sa(1|e,n,void 0,o===void 0?null:o)}function Uc(t,e,n,o){var r=ro();o=o===void 0?null:o;var i=void 0;if(je!==null){var s=je.memoizedState;if(i=s.destroy,o!==null&&Bc(o,s.deps)){Sa(e,n,i,o);return}}se.flags|=t,r.memoizedState=Sa(1|e,n,i,o)}function Sy(t,e){return Vc(516,4,t,e)}function ka(t,e){return Uc(516,4,t,e)}function vy(t,e){return Uc(4,2,t,e)}function ky(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 by(t,e,n){return n=n!=null?n.concat([t]):null,Uc(4,2,ky.bind(null,e,t),n)}function Jc(){}function xy(t,e){var n=ro();e=e===void 0?null:e;var o=n.memoizedState;return o!==null&&e!==null&&Bc(e,o[1])?o[0]:(n.memoizedState=[t,e],t)}function $y(t,e){var n=ro();e=e===void 0?null:e;var o=n.memoizedState;return o!==null&&e!==null&&Bc(e,o[1])?o[0]:(t=t(),n.memoizedState=[t,e],t)}function l$(t,e){var n=qo();to(98>n?98:n,function(){t(!0)}),to(97<n?97:n,function(){var o=st.transition;st.transition=1;try{t(!1),e()}finally{st.transition=o}})}function _c(t,e,n){var o=Ge(),r=xn(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===se||s!==null&&s===se)vi=wa=!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,rt(l,a))return}catch{}finally{}$n(t,r,o)}}var ba={readContext:it,useCallback:_e,useContext:_e,useEffect:_e,useImperativeHandle:_e,useLayoutEffect:_e,useMemo:_e,useReducer:_e,useRef:_e,useState:_e,useDebugValue:_e,useDeferredValue:_e,useTransition:_e,useMutableSource:_e,useOpaqueIdentifier:_e,unstable_isNewReconciler:!1},u$={readContext:it,useCallback:function(t,e){return oo().memoizedState=[t,e===void 0?null:e],t},useContext:it,useEffect:Sy,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Vc(4,2,ky.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Vc(4,2,t,e)},useMemo:function(t,e){var n=oo();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var o=oo();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=_c.bind(null,se,t),[o.memoizedState,t]},useRef:wy,useState:xi,useDebugValue:Jc,useDeferredValue:function(t){var e=xi(t),n=e[0],o=e[1];return Sy(function(){var r=st.transition;st.transition=1;try{o(t)}finally{st.transition=r}},[t]),n},useTransition:function(){var t=xi(!1),e=t[0];return t=l$.bind(null,t[1]),wy(t),[t,e]},useMutableSource:function(t,e,n){var o=oo();return o.memoizedState={refs:{getSnapshot:e,setSnapshot:null},source:t,subscribe:n},gy(o,t,e,n)},useOpaqueIdentifier:function(){if($t){var t=!1,e=n$(function(){throw t||(t=!0,n("r:"+(xc++).toString(36))),Error(A(355))}),n=xi(e)[1];return!(se.mode&2)&&(se.flags|=516,Sa(5,function(){n("r:"+(xc++).toString(36))},void 0,null)),e}return e="r:"+(xc++).toString(36),xi(e),e},unstable_isNewReconciler:!1},c$={readContext:it,useCallback:xy,useContext:it,useEffect:ka,useImperativeHandle:by,useLayoutEffect:vy,useMemo:$y,useReducer:ki,useRef:va,useState:function(){return ki(Ct)},useDebugValue:Jc,useDeferredValue:function(t){var e=ki(Ct),n=e[0],o=e[1];return ka(function(){var r=st.transition;st.transition=1;try{o(t)}finally{st.transition=r}},[t]),n},useTransition:function(){var t=ki(Ct)[0];return[va().current,t]},useMutableSource:yy,useOpaqueIdentifier:function(){return ki(Ct)[0]},unstable_isNewReconciler:!1},d$={readContext:it,useCallback:xy,useContext:it,useEffect:ka,useImperativeHandle:by,useLayoutEffect:vy,useMemo:$y,useReducer:bi,useRef:va,useState:function(){return bi(Ct)},useDebugValue:Jc,useDeferredValue:function(t){var e=bi(Ct),n=e[0],o=e[1];return ka(function(){var r=st.transition;st.transition=1;try{o(t)}finally{st.transition=r}},[t]),n},useTransition:function(){var t=bi(Ct)[0];return[va().current,t]},useMutableSource:yy,useOpaqueIdentifier:function(){return bi(Ct)[0]},unstable_isNewReconciler:!1},m$=Wn.ReactCurrentOwner,gt=!1;function Ye(t,e,n,o){e.child=t===null?cy(e,null,n,o):ha(e,t.child,n,o)}function Cy(t,e,n,o,r){n=n.render;var i=e.ref;return Qo(e,r),o=Hc(t,e,n,o,i,r),t!==null&&!gt?(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~r,Ft(t,e,r)):(e.flags|=1,Ye(t,e,o,r),e.child)}function Ey(t,e,n,o,r,i){if(t===null){var s=n.type;return typeof s=="function"&&!pd(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=s,Ny(t,e,s,o,r,i)):(t=Da(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:ai,n(r,o)&&t.ref===e.ref)?Ft(t,e,i):(e.flags|=1,t=Nn(s,o),t.ref=e.ref,t.return=e,e.child=t)}function Ny(t,e,n,o,r,i){if(t!==null&&ai(t.memoizedProps,o)&&t.ref===e.ref)if(gt=!1,(i&r)!==0)t.flags&16384&&(gt=!0);else return e.lanes=t.lanes,Ft(t,e,i);return Kc(t,e,n,o,i)}function Yc(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},Ma(e,n);else if(n&1073741824)e.memoizedState={baseLanes:0},Ma(e,i!==null?i.baseLanes:n);else return t=i!==null?i.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t},Ma(e,t),null;else i!==null?(o=i.baseLanes|n,e.memoizedState=null):o=n,Ma(e,o);return Ye(t,e,r,n),e.child}function Oy(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=128)}function Kc(t,e,n,o,r){var i=Je(n)?Xn:De.current;return i=Wo(e,i),Qo(e,r),n=Hc(t,e,n,o,i,r),t!==null&&!gt?(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~r,Ft(t,e,r)):(e.flags|=1,Ye(t,e,n,r),e.child)}function Ay(t,e,n,o,r){if(Je(n)){var i=!0;ia(e)}else i=!1;if(Qo(e,r),e.stateNode===null)t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),ay(e,n,o),jc(e,n,o,r),o=!0;else if(t===null){var s=e.stateNode,a=e.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=it(u):(u=Je(n)?Xn:De.current,u=Wo(e,u));var c=n.getDerivedStateFromProps,m=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";m||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==o||l!==u)&&ly(e,s,o,u),wn=!1;var d=e.memoizedState;s.state=d,fi(e,o,s,r),l=e.memoizedState,a!==o||d!==l||Ue.current||wn?(typeof c=="function"&&(da(e,n,c,o),l=e.memoizedState),(a=wn||sy(e,n,a,o,d,l,u))?(m||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=u,o=a):(typeof s.componentDidMount=="function"&&(e.flags|=4),o=!1)}else{s=e.stateNode,ny(t,e),a=e.memoizedProps,u=e.type===e.elementType?a:ht(e.type,a),s.props=u,m=e.pendingProps,d=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=it(l):(l=Je(n)?Xn:De.current,l=Wo(e,l));var f=n.getDerivedStateFromProps;(c=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==m||d!==l)&&ly(e,s,o,l),wn=!1,d=e.memoizedState,s.state=d,fi(e,o,s,r);var p=e.memoizedState;a!==m||d!==p||Ue.current||wn?(typeof f=="function"&&(da(e,n,f,o),p=e.memoizedState),(u=wn||sy(e,n,u,o,d,p,l))?(c||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&&d===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=256),e.memoizedProps=o,e.memoizedState=p),s.props=o,s.state=p,s.context=l,o=u):(typeof s.componentDidUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=256),o=!1)}return Wc(t,e,n,o,i,r)}function Wc(t,e,n,o,r,i){Oy(t,e);var s=(e.flags&64)!==0;if(!o&&!s)return r&&Yg(e,n,!1),Ft(t,e,i);o=e.stateNode,m$.current=e;var a=s&&typeof n.getDerivedStateFromError!="function"?null:o.render();return e.flags|=1,t!==null&&s?(e.child=ha(e,t.child,null,i),e.child=ha(e,null,a,i)):Ye(t,e,a,i),e.memoizedState=o.state,r&&Yg(e,n,!0),e.child}function Ry(t){var e=t.stateNode;e.pendingContext?Jg(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Jg(t,e.context,!1),Pc(t,e.containerInfo)}var xa={dehydrated:null,retryLane:0};function My(t,e,n){var o=e.pendingProps,r=re.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),oe(re,r&1),t===null?(o.fallback!==void 0&&Lc(e),t=o.children,r=o.fallback,i?(t=Dy(e,t,r,n),e.child.memoizedState={baseLanes:n},e.memoizedState=xa,t):typeof o.unstable_expectedLoadTime=="number"?(t=Dy(e,t,r,n),e.child.memoizedState={baseLanes:n},e.memoizedState=xa,e.lanes=33554432,t):(n=hd({mode:"visible",children:t},e.mode,n,null),n.return=e,e.child=n)):t.memoizedState!==null?i?(o=jy(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=xa,o):(n=Ty(t,e,o.children,n),e.memoizedState=null,n):i?(o=jy(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=xa,o):(n=Ty(t,e,o.children,n),e.memoizedState=null,n)}function Dy(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=hd(e,r,0,null),n=ir(n,r,o,null),i.return=t,n.return=t,i.sibling=n,t.child=i,n}function Ty(t,e,n,o){var r=t.child;return t=r.sibling,n=Nn(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 jy(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=Nn(s,a),t!==null?o=Nn(t,o):(o=ir(o,i,r,null),o.flags|=2),o.return=e,n.return=e,n.sibling=o,e.child=n,o}function Py(t,e){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),ty(t.return,e)}function qc(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 Iy(t,e,n){var o=e.pendingProps,r=o.revealOrder,i=o.tail;if(Ye(t,e,o.children,n),o=re.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&&Py(t,n);else if(t.tag===19)Py(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(oe(re,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&&ga(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),qc(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&&ga(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}qc(e,!0,n,null,i,e.lastEffect);break;case"together":qc(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}return e.child}function Ft(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Ci|=e.lanes,n&e.childLanes){if(t!==null&&e.child!==t.child)throw Error(A(153));if(e.child!==null){for(t=e.child,n=Nn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Nn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}return null}var Ly,Gc,zy,Fy;Ly=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}},Gc=function(){},zy=function(t,e,n,o){var r=t.memoizedProps;if(r!==o){t=e.stateNode,no(xt.current);var i=null;switch(n){case"input":r=ju(t,r),o=ju(t,o),i=[];break;case"option":r=Lu(t,r),o=Lu(t,o),i=[];break;case"select":r=te({},r,{value:void 0}),o=te({},o,{value:void 0}),i=[];break;case"textarea":r=zu(t,r),o=zu(t,o),i=[];break;default:typeof r.onClick!="function"&&typeof o.onClick=="function"&&(t.onclick=ea)}Hu(n,o);var s;n=null;for(u in r)if(!o.hasOwnProperty(u)&&r.hasOwnProperty(u)&&r[u]!=null)if(u==="style"){var a=r[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Fr.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in o){var l=o[u];if(a=r!=null?r[u]:void 0,o.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="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(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Fr.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&X("scroll",t),i||a===l||(i=[])):typeof l=="object"&&l!==null&&l.$$typeof===Au?l.toString():(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(e.updateQueue=u)&&(e.flags|=4)}},Fy=function(t,e,n,o){n!==o&&(e.flags|=4)};function $i(t,e){if(!$t)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 f$(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 Je(e.type)&&ra(),null;case 3:return Zo(),ee(Ue),ee(De),Fc(),o=e.stateNode,o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(ya(e)?e.flags|=4:o.hydrate||(e.flags|=256)),Gc(e),null;case 5:Ic(e);var r=no(yi.current);if(n=e.type,t!==null&&e.stateNode!=null)zy(t,e,n,o,r),t.ref!==e.ref&&(e.flags|=128);else{if(!o){if(e.stateNode===null)throw Error(A(166));return null}if(t=no(xt.current),ya(e)){o=e.stateNode,n=e.type;var i=e.memoizedProps;switch(o[hn]=e,o[na]=i,n){case"dialog":X("cancel",o),X("close",o);break;case"iframe":case"object":case"embed":X("load",o);break;case"video":case"audio":for(t=0;t<ui.length;t++)X(ui[t],o);break;case"source":X("error",o);break;case"img":case"image":case"link":X("error",o),X("load",o);break;case"details":X("toggle",o);break;case"input":Ah(o,i),X("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},X("invalid",o);break;case"textarea":Dh(o,i),X("invalid",o)}Hu(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]):Fr.hasOwnProperty(s)&&r!=null&&s==="onScroll"&&X("scroll",o));switch(n){case"input":Ls(o),Mh(o,i,!0);break;case"textarea":Ls(o),jh(o);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(o.onclick=ea)}o=t,e.updateQueue=o,o!==null&&(e.flags|=4)}else{switch(s=r.nodeType===9?r:r.ownerDocument,t===Fu.html&&(t=Ph(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[hn]=e,t[na]=o,Ly(t,e,!1,!1),e.stateNode=t,s=Vu(n,o),n){case"dialog":X("cancel",t),X("close",t),r=o;break;case"iframe":case"object":case"embed":X("load",t),r=o;break;case"video":case"audio":for(r=0;r<ui.length;r++)X(ui[r],t);r=o;break;case"source":X("error",t),r=o;break;case"img":case"image":case"link":X("error",t),X("load",t),r=o;break;case"details":X("toggle",t),r=o;break;case"input":Ah(t,o),r=ju(t,o),X("invalid",t);break;case"option":r=Lu(t,o);break;case"select":t._wrapperState={wasMultiple:!!o.multiple},r=te({},o,{value:void 0}),X("invalid",t);break;case"textarea":Dh(t,o),r=zu(t,o),X("invalid",t);break;default:r=o}Hu(n,r);var a=r;for(i in a)if(a.hasOwnProperty(i)){var l=a[i];i==="style"?zh(t,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Ih(t,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&_r(t,l):typeof l=="number"&&_r(t,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Fr.hasOwnProperty(i)?l!=null&&i==="onScroll"&&X("scroll",t):l!=null&&xu(t,i,l,s))}switch(n){case"input":Ls(t),Mh(t,o,!1);break;case"textarea":Ls(t),jh(t);break;case"option":o.value!=null&&t.setAttribute("value",""+un(o.value));break;case"select":t.multiple=!!o.multiple,i=o.value,i!=null?jo(t,!!o.multiple,i,!1):o.defaultValue!=null&&jo(t,!!o.multiple,o.defaultValue,!0);break;default:typeof r.onClick=="function"&&(t.onclick=ea)}Fg(n,o)&&(e.flags|=4)}e.ref!==null&&(e.flags|=128)}return null;case 6:if(t&&e.stateNode!=null)Fy(t,e,t.memoizedProps,o);else{if(typeof o!="string"&&e.stateNode===null)throw Error(A(166));n=no(yi.current),no(xt.current),ya(e)?(o=e.stateNode,n=e.memoizedProps,o[hn]=e,o.nodeValue!==n&&(e.flags|=4)):(o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[hn]=e,e.stateNode=o)}return null;case 13:return ee(re),o=e.memoizedState,e.flags&64?(e.lanes=n,e):(o=o!==null,n=!1,t===null?e.memoizedProps.fallback!==void 0&&ya(e):n=t.memoizedState!==null,o&&!n&&e.mode&2&&(t===null&&e.memoizedProps.unstable_avoidThisFallback!==!0||re.current&1?Ee===0&&(Ee=3):((Ee===0||Ee===3)&&(Ee=4),Be===null||!(Ci&134217727)&&!(tr&134217727)||or(Be,Pe))),(o||n)&&(e.flags|=4),null);case 4:return Zo(),Gc(e),t===null&&jg(e.stateNode.containerInfo),null;case 10:return Dc(e),null;case 17:return Je(e.type)&&ra(),null;case 19:if(ee(re),o=e.memoizedState,o===null)return null;if(i=(e.flags&64)!==0,s=o.rendering,s===null)if(i)$i(o,!1);else{if(Ee!==0||t!==null&&t.flags&64)for(t=e.child;t!==null;){if(s=ga(t),s!==null){for(e.flags|=64,$i(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 oe(re,re.current&1|2),e.child}t=t.sibling}o.tail!==null&&Te()>ad&&(e.flags|=64,i=!0,$i(o,!1),e.lanes=33554432)}else{if(!i)if(t=ga(s),t!==null){if(e.flags|=64,i=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),$i(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!$t)return e=e.lastEffect=o.lastEffect,e!==null&&(e.nextEffect=null),null}else 2*Te()-o.renderingStartTime>ad&&n!==1073741824&&(e.flags|=64,i=!0,$i(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=Te(),n.sibling=null,e=re.current,oe(re,i?e&1|2:e&1),n):null;case 23:case 24:return fd(),t!==null&&t.memoizedState!==null!=(e.memoizedState!==null)&&o.mode!=="unstable-defer-without-hiding"&&(e.flags|=4),null}throw Error(A(156,e.tag))}function p$(t){switch(t.tag){case 1:Je(t.type)&&ra();var e=t.flags;return e&4096?(t.flags=e&-4097|64,t):null;case 3:if(Zo(),ee(Ue),ee(De),Fc(),e=t.flags,e&64)throw Error(A(285));return t.flags=e&-4097|64,t;case 5:return Ic(t),null;case 13:return ee(re),e=t.flags,e&4096?(t.flags=e&-4097|64,t):null;case 19:return ee(re),null;case 4:return Zo(),null;case 10:return Dc(t),null;case 23:case 24:return fd(),null;default:return null}}function Qc(t,e){try{var n="",o=e;do n+=Wb(o),o=o.return;while(o);var r=n}catch(i){r=`
125
+ `+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:"")?_r(t):""}function qk(t){switch(t.tag){case 5:return _r(t.type);case 16:return _r("Lazy");case 13:return _r("Suspense");case 19:return _r("SuspenseList");case 0:case 2:case 15:return t=Ls(t.type,!1),t;case 11:return t=Ls(t.type.render,!1),t;case 22:return t=Ls(t.type._render,!1),t;case 1:return t=Ls(t.type,!0),t;default:return""}}function jo(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 un:return"Fragment";case Gn:return"Portal";case Vr:return"Profiler";case Cu:return"StrictMode";case Ur:return"Suspense";case Ps: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 js:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case Is:return jo(t.type);case Au:return jo(t._render);case Ou:e=t._payload,t=t._init;try{return jo(t(e))}catch{}}return null}function cn(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function Ah(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Gk(t){var e=Ah(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 zs(t){t._valueTracker||(t._valueTracker=Gk(t))}function Rh(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),o="";return t&&(o=Ah(t)?t.checked?"true":"false":t.value),t=o,t!==n?(e.setValue(t),!0):!1}function Fs(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 ne({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Mh(t,e){var n=e.defaultValue==null?"":e.defaultValue,o=e.checked!=null?e.checked:e.defaultChecked;n=cn(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 Dh(t,e){e=e.checked,e!=null&&$u(t,"checked",e,!1)}function Iu(t,e){Dh(t,e);var n=cn(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,cn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Th(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"||Fs(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function Qk(t){var e="";return Ts.Children.forEach(t,function(n){n!=null&&(e+=n)}),e}function zu(t,e){return t=ne({children:void 0},e),(e=Qk(e.children))&&(t.children=e),t}function Po(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=""+cn(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(A(91));return ne({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function jh(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(A(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(A(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:cn(n)}}function Ph(t,e){var n=cn(e.value),o=cn(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 Ih(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}var Bu={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Lh(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"?Lh(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Bs,zh=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(Bs=Bs||document.createElement("div"),Bs.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Bs.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Yr(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Kr={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},Zk=["Webkit","ms","Moz","O"];Object.keys(Kr).forEach(function(t){Zk.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Kr[e]=Kr[t]})});function Fh(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Kr.hasOwnProperty(t)&&Kr[t]?(""+e).trim():e+"px"}function Bh(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var o=n.indexOf("--")===0,r=Fh(n,e[n],o);n==="float"&&(n="cssFloat"),o?t.setProperty(n,r):t[n]=r}}var Xk=ne({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(Xk[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(A(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(A(60));if(!(typeof e.dangerouslySetInnerHTML=="object"&&"__html"in e.dangerouslySetInnerHTML))throw Error(A(61))}if(e.style!=null&&typeof e.style!="object")throw Error(A(62))}}function Uu(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 Ju(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var _u=null,Io=null,Lo=null;function Hh(t){if(t=mi(t)){if(typeof _u!="function")throw Error(A(280));var e=t.stateNode;e&&(e=ra(e),_u(t.stateNode,t.type,e))}}function Vh(t){Io?Lo?Lo.push(t):Lo=[t]:Io=t}function Uh(){if(Io){var t=Io,e=Lo;if(Lo=Io=null,Hh(t),e)for(t=0;t<e.length;t++)Hh(e[t])}}function Yu(t,e){return t(e)}function Jh(t,e,n,o,r){return t(e,n,o,r)}function Ku(){}var _h=Yu,Qn=!1,Wu=!1;function qu(){(Io!==null||Lo!==null)&&(Ku(),Uh())}function ex(t,e,n){if(Wu)return t(e,n);Wu=!0;try{return _h(t,e,n)}finally{Wu=!1,qu()}}function Wr(t,e){var n=t.stateNode;if(n===null)return null;var o=ra(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(A(231,e,typeof n));return n}var Gu=!1;if(Lt)try{var qr={};Object.defineProperty(qr,"passive",{get:function(){Gu=!0}}),window.addEventListener("test",qr,qr),window.removeEventListener("test",qr,qr)}catch{Gu=!1}function tx(t,e,n,o,r,i,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(c){this.onError(c)}}var Gr=!1,Hs=null,Vs=!1,Qu=null,nx={onError:function(t){Gr=!0,Hs=t}};function ox(t,e,n,o,r,i,s,a,l){Gr=!1,Hs=null,tx.apply(nx,arguments)}function rx(t,e,n,o,r,i,s,a,l){if(ox.apply(this,arguments),Gr){if(Gr){var u=Hs;Gr=!1,Hs=null}else throw Error(A(198));Vs||(Vs=!0,Qu=u)}}function Zn(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 Yh(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 Kh(t){if(Zn(t)!==t)throw Error(A(188))}function ix(t){var e=t.alternate;if(!e){if(e=Zn(t),e===null)throw Error(A(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 Kh(r),t;if(i===o)return Kh(r),e;i=i.sibling}throw Error(A(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(A(189))}}if(n.alternate!==o)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?t:e}function Wh(t){if(t=ix(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 qh(t,e){for(var n=t.alternate;e!==null;){if(e===t||e===n)return!0;e=e.return}return!1}var Gh,Zu,Qh,Zh,Xu=!1,kt=[],dn=null,mn=null,fn=null,Qr=new Map,Zr=new Map,Xr=[],Xh="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 ec(t,e,n,o,r){return{blockedOn:t,domEventName:e,eventSystemFlags:n|16,nativeEvent:r,targetContainers:[o]}}function eg(t,e){switch(t){case"focusin":case"focusout":dn=null;break;case"dragenter":case"dragleave":mn=null;break;case"mouseover":case"mouseout":fn=null;break;case"pointerover":case"pointerout":Qr.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zr.delete(e.pointerId)}}function ei(t,e,n,o,r,i){return t===null||t.nativeEvent!==i?(t=ec(e,n,o,r,i),e!==null&&(e=mi(e),e!==null&&Zu(e)),t):(t.eventSystemFlags|=o,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function sx(t,e,n,o,r){switch(e){case"focusin":return dn=ei(dn,t,e,n,o,r),!0;case"dragenter":return mn=ei(mn,t,e,n,o,r),!0;case"mouseover":return fn=ei(fn,t,e,n,o,r),!0;case"pointerover":var i=r.pointerId;return Qr.set(i,ei(Qr.get(i)||null,t,e,n,o,r)),!0;case"gotpointercapture":return i=r.pointerId,Zr.set(i,ei(Zr.get(i)||null,t,e,n,o,r)),!0}return!1}function ax(t){var e=Xn(t.target);if(e!==null){var n=Zn(e);if(n!==null){if(e=n.tag,e===13){if(e=Yh(n),e!==null){t.blockedOn=e,Zh(t.lanePriority,function(){we.unstable_runWithPriority(t.priority,function(){Qh(n)})});return}}else if(e===3&&n.stateNode.hydrate){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Us(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=sc(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n!==null)return e=mi(n),e!==null&&Zu(e),t.blockedOn=n,!1;e.shift()}return!0}function tg(t,e,n){Us(t)&&n.delete(e)}function lx(){for(Xu=!1;0<kt.length;){var t=kt[0];if(t.blockedOn!==null){t=mi(t.blockedOn),t!==null&&Gh(t);break}for(var e=t.targetContainers;0<e.length;){var n=sc(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n!==null){t.blockedOn=n;break}e.shift()}t.blockedOn===null&&kt.shift()}dn!==null&&Us(dn)&&(dn=null),mn!==null&&Us(mn)&&(mn=null),fn!==null&&Us(fn)&&(fn=null),Qr.forEach(tg),Zr.forEach(tg)}function ti(t,e){t.blockedOn===e&&(t.blockedOn=null,Xu||(Xu=!0,we.unstable_scheduleCallback(we.unstable_NormalPriority,lx)))}function ng(t){function e(r){return ti(r,t)}if(0<kt.length){ti(kt[0],t);for(var n=1;n<kt.length;n++){var o=kt[n];o.blockedOn===t&&(o.blockedOn=null)}}for(dn!==null&&ti(dn,t),mn!==null&&ti(mn,t),fn!==null&&ti(fn,t),Qr.forEach(e),Zr.forEach(e),n=0;n<Xr.length;n++)o=Xr[n],o.blockedOn===t&&(o.blockedOn=null);for(;0<Xr.length&&(n=Xr[0],n.blockedOn===null);)ax(n),n.blockedOn===null&&Xr.shift()}function Js(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var zo={animationend:Js("Animation","AnimationEnd"),animationiteration:Js("Animation","AnimationIteration"),animationstart:Js("Animation","AnimationStart"),transitionend:Js("Transition","TransitionEnd")},tc={},og={};Lt&&(og=document.createElement("div").style,"AnimationEvent"in window||(delete zo.animationend.animation,delete zo.animationiteration.animation,delete zo.animationstart.animation),"TransitionEvent"in window||delete zo.transitionend.transition);function _s(t){if(tc[t])return tc[t];if(!zo[t])return t;var e=zo[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in og)return tc[t]=e[n];return t}var rg=_s("animationend"),ig=_s("animationiteration"),sg=_s("animationstart"),ag=_s("transitionend"),lg=new Map,nc=new Map,ux=["abort","abort",rg,"animationEnd",ig,"animationIteration",sg,"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",ag,"transitionEnd","waiting","waiting"];function oc(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)),nc.set(o,e),lg.set(o,r),Wn(r,[o])}}var cx=we.unstable_now;cx();var Z=8;function Fo(t){if(1&t)return Z=15,1;if(2&t)return Z=14,2;if(4&t)return Z=13,4;var e=24&t;return e!==0?(Z=12,e):t&32?(Z=11,32):(e=192&t,e!==0?(Z=10,e):t&256?(Z=9,256):(e=3584&t,e!==0?(Z=8,e):t&4096?(Z=7,4096):(e=4186112&t,e!==0?(Z=6,e):(e=62914560&t,e!==0?(Z=5,e):t&67108864?(Z=4,67108864):t&134217728?(Z=3,134217728):(e=805306368&t,e!==0?(Z=2,e):1073741824&t?(Z=1,1073741824):(Z=8,t))))))}function dx(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 mx(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(A(358,t))}}function ni(t,e){var n=t.pendingLanes;if(n===0)return Z=0;var o=0,r=0,i=t.expiredLanes,s=t.suspendedLanes,a=t.pingedLanes;if(i!==0)o=i,r=Z=15;else if(i=n&134217727,i!==0){var l=i&~s;l!==0?(o=Fo(l),r=Z):(a&=i,a!==0&&(o=Fo(a),r=Z))}else i=n&~s,i!==0?(o=Fo(i),r=Z):a!==0&&(o=Fo(a),r=Z);if(o===0)return 0;if(o=31-pn(o),o=n&((0>o?0:1<<o)<<1)-1,e!==0&&e!==o&&!(e&s)){if(Fo(e),r<=Z)return e;Z=r}if(e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=o;0<e;)n=31-pn(e),r=1<<n,o|=t[n],e&=~r;return o}function ug(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Ys(t,e){switch(t){case 15:return 1;case 14:return 2;case 12:return t=Bo(24&~e),t===0?Ys(10,e):t;case 10:return t=Bo(192&~e),t===0?Ys(8,e):t;case 8:return t=Bo(3584&~e),t===0&&(t=Bo(4186112&~e),t===0&&(t=512)),t;case 2:return e=Bo(805306368&~e),e===0&&(e=268435456),e}throw Error(A(358,t))}function Bo(t){return t&-t}function rc(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Ks(t,e,n){t.pendingLanes|=e;var o=e-1;t.suspendedLanes&=o,t.pingedLanes&=o,t=t.eventTimes,e=31-pn(e),t[e]=n}var pn=Math.clz32?Math.clz32:hx,fx=Math.log,px=Math.LN2;function hx(t){return t===0?32:31-(fx(t)/px|0)|0}var gx=we.unstable_UserBlockingPriority,yx=we.unstable_runWithPriority,Ws=!0;function wx(t,e,n,o){Qn||Ku();var r=ic,i=Qn;Qn=!0;try{Jh(r,t,e,n,o)}finally{(Qn=i)||qu()}}function Sx(t,e,n,o){yx(gx,ic.bind(null,t,e,n,o))}function ic(t,e,n,o){if(Ws){var r;if((r=(e&4)===0)&&0<kt.length&&-1<Xh.indexOf(t))t=ec(null,t,e,n,o),kt.push(t);else{var i=sc(t,e,n,o);if(i===null)r&&eg(t,o);else{if(r){if(-1<Xh.indexOf(t)){t=ec(i,t,e,n,o),kt.push(t);return}if(sx(i,t,e,n,o))return;eg(t,o)}Fg(t,e,o,null,n)}}}}function sc(t,e,n,o){var r=Ju(o);if(r=Xn(r),r!==null){var i=Zn(r);if(i===null)r=null;else{var s=i.tag;if(s===13){if(r=Yh(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 Fg(t,e,o,r,n),null}var hn=null,ac=null,qs=null;function cg(){if(qs)return qs;var t,e=ac,n=e.length,o,r="value"in hn?hn.value:hn.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 qs=r.slice(t,1<o?1-o:void 0)}function Gs(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 Qs(){return!0}function dg(){return!1}function Ge(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)?Qs:dg,this.isPropagationStopped=dg,this}return ne(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=Qs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Qs)},persist:function(){},isPersistent:Qs}),e}var Ho={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lc=Ge(Ho),oi=ne({},Ho,{view:0,detail:0}),vx=Ge(oi),uc,cc,ri,Zs=ne({},oi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:mc,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!==ri&&(ri&&t.type==="mousemove"?(uc=t.screenX-ri.screenX,cc=t.screenY-ri.screenY):cc=uc=0,ri=t),uc)},movementY:function(t){return"movementY"in t?t.movementY:cc}}),mg=Ge(Zs),bx=ne({},Zs,{dataTransfer:0}),kx=Ge(bx),xx=ne({},oi,{relatedTarget:0}),dc=Ge(xx),$x=ne({},Ho,{animationName:0,elapsedTime:0,pseudoElement:0}),Cx=Ge($x),Ex=ne({},Ho,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Nx=Ge(Ex),Ox=ne({},Ho,{data:0}),fg=Ge(Ox),Ax={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rx={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"},Mx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Dx(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Mx[t])?!!e[t]:!1}function mc(){return Dx}var Tx=ne({},oi,{key:function(t){if(t.key){var e=Ax[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Gs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Rx[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:mc,charCode:function(t){return t.type==="keypress"?Gs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Gs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),jx=Ge(Tx),Px=ne({},Zs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pg=Ge(Px),Ix=ne({},oi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:mc}),Lx=Ge(Ix),zx=ne({},Ho,{propertyName:0,elapsedTime:0,pseudoElement:0}),Fx=Ge(zx),Bx=ne({},Zs,{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}),Hx=Ge(Bx),Vx=[9,13,27,32],fc=Lt&&"CompositionEvent"in window,ii=null;Lt&&"documentMode"in document&&(ii=document.documentMode);var Ux=Lt&&"TextEvent"in window&&!ii,hg=Lt&&(!fc||ii&&8<ii&&11>=ii),gg=String.fromCharCode(32),yg=!1;function wg(t,e){switch(t){case"keyup":return Vx.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sg(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Vo=!1;function Jx(t,e){switch(t){case"compositionend":return Sg(e);case"keypress":return e.which!==32?null:(yg=!0,gg);case"textInput":return t=e.data,t===gg&&yg?null:t;default:return null}}function _x(t,e){if(Vo)return t==="compositionend"||!fc&&wg(t,e)?(t=cg(),qs=ac=hn=null,Vo=!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 hg&&e.locale!=="ko"?null:e.data;default:return null}}var Yx={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 vg(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Yx[t.type]:e==="textarea"}function bg(t,e,n,o){Vh(o),e=ea(e,"onChange"),0<e.length&&(n=new lc("onChange","change",null,n,o),t.push({event:n,listeners:e}))}var si=null,ai=null;function Kx(t){jg(t,0)}function Xs(t){var e=Ko(t);if(Rh(e))return t}function Wx(t,e){if(t==="change")return e}var kg=!1;if(Lt){var pc;if(Lt){var hc="oninput"in document;if(!hc){var xg=document.createElement("div");xg.setAttribute("oninput","return;"),hc=typeof xg.oninput=="function"}pc=hc}else pc=!1;kg=pc&&(!document.documentMode||9<document.documentMode)}function $g(){si&&(si.detachEvent("onpropertychange",Cg),ai=si=null)}function Cg(t){if(t.propertyName==="value"&&Xs(ai)){var e=[];if(bg(e,ai,t,Ju(t)),t=Kx,Qn)t(e);else{Qn=!0;try{Yu(t,e)}finally{Qn=!1,qu()}}}}function qx(t,e,n){t==="focusin"?($g(),si=e,ai=n,si.attachEvent("onpropertychange",Cg)):t==="focusout"&&$g()}function Gx(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Xs(ai)}function Qx(t,e){if(t==="click")return Xs(e)}function Zx(t,e){if(t==="input"||t==="change")return Xs(e)}function Xx(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var it=typeof Object.is=="function"?Object.is:Xx,e$=Object.prototype.hasOwnProperty;function li(t,e){if(it(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(!e$.call(e,n[o])||!it(t[n[o]],e[n[o]]))return!1;return!0}function Eg(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ng(t,e){var n=Eg(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=Eg(n)}}function Og(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Og(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Ag(){for(var t=window,e=Fs();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Fs(t.document)}return e}function gc(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 t$=Lt&&"documentMode"in document&&11>=document.documentMode,Uo=null,yc=null,ui=null,wc=!1;function Rg(t,e,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wc||Uo==null||Uo!==Fs(o)||(o=Uo,"selectionStart"in o&&gc(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}),ui&&li(ui,o)||(ui=o,o=ea(yc,"onSelect"),0<o.length&&(e=new lc("onSelect","select",null,e,n),t.push({event:e,listeners:o}),e.target=Uo)))}oc("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),oc("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),oc(ux,2);for(var Mg="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Sc=0;Sc<Mg.length;Sc++)nc.set(Mg[Sc],0);To("onMouseEnter",["mouseout","mouseover"]),To("onMouseLeave",["mouseout","mouseover"]),To("onPointerEnter",["pointerout","pointerover"]),To("onPointerLeave",["pointerout","pointerover"]),Wn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Wn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Wn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Wn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Wn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Wn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ci="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dg=new Set("cancel close invalid load scroll toggle".split(" ").concat(ci));function Tg(t,e,n){var o=t.type||"unknown-event";t.currentTarget=n,rx(o,e,void 0,t),t.currentTarget=null}function jg(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,u=a.currentTarget;if(a=a.listener,l!==i&&r.isPropagationStopped())break e;Tg(r,a,u),i=l}else for(s=0;s<o.length;s++){if(a=o[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==i&&r.isPropagationStopped())break e;Tg(r,a,u),i=l}}}if(Vs)throw t=Qu,Vs=!1,Qu=null,t}function ee(t,e){var n=_g(e),o=t+"__bubble";n.has(o)||(zg(e,t,2,!1),n.add(o))}var Pg="_reactListening"+Math.random().toString(36).slice(2);function Ig(t){t[Pg]||(t[Pg]=!0,xh.forEach(function(e){Dg.has(e)||Lg(e,!1,t,null),Lg(e,!0,t,null)}))}function Lg(t,e,n,o){var r=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,i=n;if(t==="selectionchange"&&n.nodeType!==9&&(i=n.ownerDocument),o!==null&&!e&&Dg.has(t)){if(t!=="scroll")return;r|=2,i=o}var s=_g(i),a=t+"__"+(e?"capture":"bubble");s.has(a)||(e&&(r|=4),zg(i,t,r,e),s.add(a))}function zg(t,e,n,o){var r=nc.get(e);switch(r===void 0?2:r){case 0:r=wx;break;case 1:r=Sx;break;default:r=ic}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 Fg(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=Xn(a),s===null)return;if(l=s.tag,l===5||l===6){o=i=s;continue e}a=a.parentNode}}o=o.return}ex(function(){var u=i,c=Ju(n),m=[];e:{var d=lg.get(t);if(d!==void 0){var f=lc,p=t;switch(t){case"keypress":if(Gs(n)===0)break e;case"keydown":case"keyup":f=jx;break;case"focusin":p="focus",f=dc;break;case"focusout":p="blur",f=dc;break;case"beforeblur":case"afterblur":f=dc;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=mg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=kx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=Lx;break;case rg:case ig:case sg:f=Cx;break;case ag:f=Fx;break;case"scroll":f=vx;break;case"wheel":f=Hx;break;case"copy":case"cut":case"paste":f=Nx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=pg}var y=(e&4)!==0,h=!y&&t==="scroll",g=y?d!==null?d+"Capture":null:d;y=[];for(var w=u,v;w!==null;){v=w;var k=v.stateNode;if(v.tag===5&&k!==null&&(v=k,g!==null&&(k=Wr(w,g),k!=null&&y.push(di(w,k,v)))),h)break;w=w.return}0<y.length&&(d=new f(d,p,null,n,c),m.push({event:d,listeners:y}))}}if(!(e&7)){e:{if(d=t==="mouseover"||t==="pointerover",f=t==="mouseout"||t==="pointerout",d&&!(e&16)&&(p=n.relatedTarget||n.fromElement)&&(Xn(p)||p[Yo]))break e;if((f||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,f?(p=n.relatedTarget||n.toElement,f=u,p=p?Xn(p):null,p!==null&&(h=Zn(p),p!==h||p.tag!==5&&p.tag!==6)&&(p=null)):(f=null,p=u),f!==p)){if(y=mg,k="onMouseLeave",g="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(y=pg,k="onPointerLeave",g="onPointerEnter",w="pointer"),h=f==null?d:Ko(f),v=p==null?d:Ko(p),d=new y(k,w+"leave",f,n,c),d.target=h,d.relatedTarget=v,k=null,Xn(c)===u&&(y=new y(g,w+"enter",p,n,c),y.target=v,y.relatedTarget=h,k=y),h=k,f&&p)t:{for(y=f,g=p,w=0,v=y;v;v=Jo(v))w++;for(v=0,k=g;k;k=Jo(k))v++;for(;0<w-v;)y=Jo(y),w--;for(;0<v-w;)g=Jo(g),v--;for(;w--;){if(y===g||g!==null&&y===g.alternate)break t;y=Jo(y),g=Jo(g)}y=null}else y=null;f!==null&&Bg(m,d,f,y,!1),p!==null&&h!==null&&Bg(m,h,p,y,!0)}}e:{if(d=u?Ko(u):window,f=d.nodeName&&d.nodeName.toLowerCase(),f==="select"||f==="input"&&d.type==="file")var E=Wx;else if(vg(d))if(kg)E=Zx;else{E=Gx;var b=qx}else(f=d.nodeName)&&f.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(E=Qx);if(E&&(E=E(t,u))){bg(m,E,n,c);break e}b&&b(t,d,u),t==="focusout"&&(b=d._wrapperState)&&b.controlled&&d.type==="number"&&Lu(d,"number",d.value)}switch(b=u?Ko(u):window,t){case"focusin":(vg(b)||b.contentEditable==="true")&&(Uo=b,yc=u,ui=null);break;case"focusout":ui=yc=Uo=null;break;case"mousedown":wc=!0;break;case"contextmenu":case"mouseup":case"dragend":wc=!1,Rg(m,n,c);break;case"selectionchange":if(t$)break;case"keydown":case"keyup":Rg(m,n,c)}var $;if(fc)e:{switch(t){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else Vo?wg(t,n)&&(R="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(hg&&n.locale!=="ko"&&(Vo||R!=="onCompositionStart"?R==="onCompositionEnd"&&Vo&&($=cg()):(hn=c,ac="value"in hn?hn.value:hn.textContent,Vo=!0)),b=ea(u,R),0<b.length&&(R=new fg(R,t,null,n,c),m.push({event:R,listeners:b}),$?R.data=$:($=Sg(n),$!==null&&(R.data=$)))),($=Ux?Jx(t,n):_x(t,n))&&(u=ea(u,"onBeforeInput"),0<u.length&&(c=new fg("onBeforeInput","beforeinput",null,n,c),m.push({event:c,listeners:u}),c.data=$))}jg(m,e)})}function di(t,e,n){return{instance:t,listener:e,currentTarget:n}}function ea(t,e){for(var n=e+"Capture",o=[];t!==null;){var r=t,i=r.stateNode;r.tag===5&&i!==null&&(r=i,i=Wr(t,n),i!=null&&o.unshift(di(t,i,r)),i=Wr(t,e),i!=null&&o.push(di(t,i,r))),t=t.return}return o}function Jo(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Bg(t,e,n,o,r){for(var i=e._reactName,s=[];n!==null&&n!==o;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===o)break;a.tag===5&&u!==null&&(a=u,r?(l=Wr(n,i),l!=null&&s.unshift(di(n,l,a))):r||(l=Wr(n,i),l!=null&&s.push(di(n,l,a)))),n=n.return}s.length!==0&&t.push({event:e,listeners:s})}function ta(){}var vc=null,bc=null;function Hg(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function kc(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 Vg=typeof setTimeout=="function"?setTimeout:void 0,n$=typeof clearTimeout=="function"?clearTimeout:void 0;function xc(t){t.nodeType===1?t.textContent="":t.nodeType===9&&(t=t.body,t!=null&&(t.textContent=""))}function _o(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break}return t}function Ug(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 $c=0;function o$(t){return{$$typeof:Ru,toString:t,valueOf:t}}var na=Math.random().toString(36).slice(2),gn="__reactFiber$"+na,oa="__reactProps$"+na,Yo="__reactContainer$"+na,Jg="__reactEvents$"+na;function Xn(t){var e=t[gn];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Yo]||n[gn]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Ug(t);t!==null;){if(n=t[gn])return n;t=Ug(t)}return e}t=n,n=t.parentNode}return null}function mi(t){return t=t[gn]||t[Yo],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Ko(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(A(33))}function ra(t){return t[oa]||null}function _g(t){var e=t[Jg];return e===void 0&&(e=t[Jg]=new Set),e}var Cc=[],Wo=-1;function yn(t){return{current:t}}function te(t){0>Wo||(t.current=Cc[Wo],Cc[Wo]=null,Wo--)}function re(t,e){Wo++,Cc[Wo]=t.current,t.current=e}var wn={},Te=yn(wn),Je=yn(!1),eo=wn;function qo(t,e){var n=t.type.contextTypes;if(!n)return wn;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 _e(t){return t=t.childContextTypes,t!=null}function ia(){te(Je),te(Te)}function Yg(t,e,n){if(Te.current!==wn)throw Error(A(168));re(Te,e),re(Je,n)}function Kg(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(A(108,jo(e)||"Unknown",r));return ne({},n,o)}function sa(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||wn,eo=Te.current,re(Te,t),re(Je,Je.current),!0}function Wg(t,e,n){var o=t.stateNode;if(!o)throw Error(A(169));n?(t=Kg(t,e,eo),o.__reactInternalMemoizedMergedChildContext=t,te(Je),te(Te),re(Te,t)):te(Je),re(Je,n)}var Ec=null,to=null,r$=we.unstable_runWithPriority,Nc=we.unstable_scheduleCallback,Oc=we.unstable_cancelCallback,i$=we.unstable_shouldYield,qg=we.unstable_requestPaint,Ac=we.unstable_now,s$=we.unstable_getCurrentPriorityLevel,aa=we.unstable_ImmediatePriority,Gg=we.unstable_UserBlockingPriority,Qg=we.unstable_NormalPriority,Zg=we.unstable_LowPriority,Xg=we.unstable_IdlePriority,Rc={},a$=qg!==void 0?qg:function(){},zt=null,la=null,Mc=!1,ey=Ac(),je=1e4>ey?Ac:function(){return Ac()-ey};function Go(){switch(s$()){case aa:return 99;case Gg:return 98;case Qg:return 97;case Zg:return 96;case Xg:return 95;default:throw Error(A(332))}}function ty(t){switch(t){case 99:return aa;case 98:return Gg;case 97:return Qg;case 96:return Zg;case 95:return Xg;default:throw Error(A(332))}}function no(t,e){return t=ty(t),r$(t,e)}function fi(t,e,n){return t=ty(t),Nc(t,e,n)}function xt(){if(la!==null){var t=la;la=null,Oc(t)}ny()}function ny(){if(!Mc&&zt!==null){Mc=!0;var t=0;try{var e=zt;no(99,function(){for(;t<e.length;t++){var n=e[t];do n=n(!0);while(n!==null)}}),zt=null}catch(n){throw zt!==null&&(zt=zt.slice(t+1)),Nc(aa,xt),n}finally{Mc=!1}}}var l$=qn.ReactCurrentBatchConfig;function gt(t,e){if(t&&t.defaultProps){e=ne({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}var ua=yn(null),ca=null,Qo=null,da=null;function Dc(){da=Qo=ca=null}function Tc(t){var e=ua.current;te(ua),t.type._context._currentValue=e}function oy(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 Zo(t,e){ca=t,da=Qo=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(yt=!0),t.firstContext=null)}function st(t,e){if(da!==t&&e!==!1&&e!==0)if((typeof e!="number"||e===1073741823)&&(da=t,e=1073741823),e={context:t,observedBits:e,next:null},Qo===null){if(ca===null)throw Error(A(308));Qo=e,ca.dependencies={lanes:0,firstContext:e,responders:null}}else Qo=Qo.next=e;return t._currentValue}var Sn=!1;function jc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ry(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 vn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function bn(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 iy(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 pi(t,e,n,o){var r=t.updateQueue;Sn=!1;var i=r.firstBaseUpdate,s=r.lastBaseUpdate,a=r.shared.pending;if(a!==null){r.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?i=u:s.next=u,s=l;var c=t.alternate;if(c!==null){c=c.updateQueue;var m=c.lastBaseUpdate;m!==s&&(m===null?c.firstBaseUpdate=u:m.next=u,c.lastBaseUpdate=l)}}if(i!==null){m=r.baseState,s=0,c=u=l=null;do{a=i.lane;var d=i.eventTime;if((o&a)===a){c!==null&&(c=c.next={eventTime:d,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var f=t,p=i;switch(a=e,d=n,p.tag){case 1:if(f=p.payload,typeof f=="function"){m=f.call(d,m,a);break e}m=f;break e;case 3:f.flags=f.flags&-4097|64;case 0:if(f=p.payload,a=typeof f=="function"?f.call(d,m,a):f,a==null)break e;m=ne({},m,a);break e;case 2:Sn=!0}}i.callback!==null&&(t.flags|=32,a=r.effects,a===null?r.effects=[i]:a.push(i))}else d={eventTime:d,lane:a,tag:i.tag,payload:i.payload,callback:i.callback,next:null},c===null?(u=c=d,l=m):c=c.next=d,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(1);c===null&&(l=m),r.baseState=l,r.firstBaseUpdate=u,r.lastBaseUpdate=c,Ei|=s,t.lanes=s,t.memoizedState=m}}function sy(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(A(191,r));r.call(o)}}}var ay=new Ts.Component().refs;function ma(t,e,n,o){e=t.memoizedState,n=n(o,e),n=n==null?e:ne({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var fa={isMounted:function(t){return(t=t._reactInternals)?Zn(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var o=Qe(),r=$n(t),i=vn(o,r);i.payload=e,n!=null&&(i.callback=n),bn(t,i),Cn(t,r,o)},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var o=Qe(),r=$n(t),i=vn(o,r);i.tag=1,i.payload=e,n!=null&&(i.callback=n),bn(t,i),Cn(t,r,o)},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Qe(),o=$n(t),r=vn(n,o);r.tag=2,e!=null&&(r.callback=e),bn(t,r),Cn(t,o,n)}};function ly(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?!li(n,o)||!li(r,i):!0}function uy(t,e,n){var o=!1,r=wn,i=e.contextType;return typeof i=="object"&&i!==null?i=st(i):(r=_e(e)?eo:Te.current,o=e.contextTypes,i=(o=o!=null)?qo(t,r):wn),e=new e(n,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=fa,t.stateNode=e,e._reactInternals=t,o&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=i),e}function cy(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&&fa.enqueueReplaceState(e,e.state,null)}function Pc(t,e,n,o){var r=t.stateNode;r.props=n,r.state=t.memoizedState,r.refs=ay,jc(t);var i=e.contextType;typeof i=="object"&&i!==null?r.context=st(i):(i=_e(e)?eo:Te.current,r.context=qo(t,i)),pi(t,n,r,o),r.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(ma(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&&fa.enqueueReplaceState(r,r.state,null),pi(t,n,r,o),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4)}var pa=Array.isArray;function hi(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(A(309));var o=n.stateNode}if(!o)throw Error(A(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===ay&&(s=o.refs={}),i===null?delete s[r]:s[r]=i},e._stringRef=r,e)}if(typeof t!="string")throw Error(A(284));if(!n._owner)throw Error(A(290,t))}return t}function ha(t,e){if(t.type!=="textarea")throw Error(A(31,Object.prototype.toString.call(e)==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":e))}function dy(t){function e(h,g){if(t){var w=h.lastEffect;w!==null?(w.nextEffect=g,h.lastEffect=g):h.firstEffect=h.lastEffect=g,g.nextEffect=null,g.flags=8}}function n(h,g){if(!t)return null;for(;g!==null;)e(h,g),g=g.sibling;return null}function o(h,g){for(h=new Map;g!==null;)g.key!==null?h.set(g.key,g):h.set(g.index,g),g=g.sibling;return h}function r(h,g){return h=On(h,g),h.index=0,h.sibling=null,h}function i(h,g,w){return h.index=w,t?(w=h.alternate,w!==null?(w=w.index,w<g?(h.flags=2,g):w):(h.flags=2,g)):g}function s(h){return t&&h.alternate===null&&(h.flags=2),h}function a(h,g,w,v){return g===null||g.tag!==6?(g=yd(w,h.mode,v),g.return=h,g):(g=r(g,w),g.return=h,g)}function l(h,g,w,v){return g!==null&&g.elementType===w.type?(v=r(g,w.props),v.ref=hi(h,g,w),v.return=h,v):(v=Ta(w.type,w.key,w.props,null,h.mode,v),v.ref=hi(h,g,w),v.return=h,v)}function u(h,g,w,v){return g===null||g.tag!==4||g.stateNode.containerInfo!==w.containerInfo||g.stateNode.implementation!==w.implementation?(g=wd(w,h.mode,v),g.return=h,g):(g=r(g,w.children||[]),g.return=h,g)}function c(h,g,w,v,k){return g===null||g.tag!==7?(g=sr(w,h.mode,v,k),g.return=h,g):(g=r(g,w),g.return=h,g)}function m(h,g,w){if(typeof g=="string"||typeof g=="number")return g=yd(""+g,h.mode,w),g.return=h,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Hr:return w=Ta(g.type,g.key,g.props,null,h.mode,w),w.ref=hi(h,null,g),w.return=h,w;case Gn:return g=wd(g,h.mode,w),g.return=h,g}if(pa(g)||Jr(g))return g=sr(g,h.mode,w,null),g.return=h,g;ha(h,g)}return null}function d(h,g,w,v){var k=g!==null?g.key:null;if(typeof w=="string"||typeof w=="number")return k!==null?null:a(h,g,""+w,v);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Hr:return w.key===k?w.type===un?c(h,g,w.props.children,v,k):l(h,g,w,v):null;case Gn:return w.key===k?u(h,g,w,v):null}if(pa(w)||Jr(w))return k!==null?null:c(h,g,w,v,null);ha(h,w)}return null}function f(h,g,w,v,k){if(typeof v=="string"||typeof v=="number")return h=h.get(w)||null,a(g,h,""+v,k);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Hr:return h=h.get(v.key===null?w:v.key)||null,v.type===un?c(g,h,v.props.children,k,v.key):l(g,h,v,k);case Gn:return h=h.get(v.key===null?w:v.key)||null,u(g,h,v,k)}if(pa(v)||Jr(v))return h=h.get(w)||null,c(g,h,v,k,null);ha(g,v)}return null}function p(h,g,w,v){for(var k=null,E=null,b=g,$=g=0,R=null;b!==null&&$<w.length;$++){b.index>$?(R=b,b=null):R=b.sibling;var C=d(h,b,w[$],v);if(C===null){b===null&&(b=R);break}t&&b&&C.alternate===null&&e(h,b),g=i(C,g,$),E===null?k=C:E.sibling=C,E=C,b=R}if($===w.length)return n(h,b),k;if(b===null){for(;$<w.length;$++)b=m(h,w[$],v),b!==null&&(g=i(b,g,$),E===null?k=b:E.sibling=b,E=b);return k}for(b=o(h,b);$<w.length;$++)R=f(b,h,$,w[$],v),R!==null&&(t&&R.alternate!==null&&b.delete(R.key===null?$:R.key),g=i(R,g,$),E===null?k=R:E.sibling=R,E=R);return t&&b.forEach(function(_){return e(h,_)}),k}function y(h,g,w,v){var k=Jr(w);if(typeof k!="function")throw Error(A(150));if(w=k.call(w),w==null)throw Error(A(151));for(var E=k=null,b=g,$=g=0,R=null,C=w.next();b!==null&&!C.done;$++,C=w.next()){b.index>$?(R=b,b=null):R=b.sibling;var _=d(h,b,C.value,v);if(_===null){b===null&&(b=R);break}t&&b&&_.alternate===null&&e(h,b),g=i(_,g,$),E===null?k=_:E.sibling=_,E=_,b=R}if(C.done)return n(h,b),k;if(b===null){for(;!C.done;$++,C=w.next())C=m(h,C.value,v),C!==null&&(g=i(C,g,$),E===null?k=C:E.sibling=C,E=C);return k}for(b=o(h,b);!C.done;$++,C=w.next())C=f(b,h,$,C.value,v),C!==null&&(t&&C.alternate!==null&&b.delete(C.key===null?$:C.key),g=i(C,g,$),E===null?k=C:E.sibling=C,E=C);return t&&b.forEach(function(se){return e(h,se)}),k}return function(h,g,w,v){var k=typeof w=="object"&&w!==null&&w.type===un&&w.key===null;k&&(w=w.props.children);var E=typeof w=="object"&&w!==null;if(E)switch(w.$$typeof){case Hr:e:{for(E=w.key,k=g;k!==null;){if(k.key===E){switch(k.tag){case 7:if(w.type===un){n(h,k.sibling),g=r(k,w.props.children),g.return=h,h=g;break e}break;default:if(k.elementType===w.type){n(h,k.sibling),g=r(k,w.props),g.ref=hi(h,k,w),g.return=h,h=g;break e}}n(h,k);break}else e(h,k);k=k.sibling}w.type===un?(g=sr(w.props.children,h.mode,v,w.key),g.return=h,h=g):(v=Ta(w.type,w.key,w.props,null,h.mode,v),v.ref=hi(h,g,w),v.return=h,h=v)}return s(h);case Gn:e:{for(k=w.key;g!==null;){if(g.key===k)if(g.tag===4&&g.stateNode.containerInfo===w.containerInfo&&g.stateNode.implementation===w.implementation){n(h,g.sibling),g=r(g,w.children||[]),g.return=h,h=g;break e}else{n(h,g);break}else e(h,g);g=g.sibling}g=wd(w,h.mode,v),g.return=h,h=g}return s(h)}if(typeof w=="string"||typeof w=="number")return w=""+w,g!==null&&g.tag===6?(n(h,g.sibling),g=r(g,w),g.return=h,h=g):(n(h,g),g=yd(w,h.mode,v),g.return=h,h=g),s(h);if(pa(w))return p(h,g,w,v);if(Jr(w))return y(h,g,w,v);if(E&&ha(h,w),typeof w>"u"&&!k)switch(h.tag){case 1:case 22:case 0:case 11:case 15:throw Error(A(152,jo(h.type)||"Component"))}return n(h,g)}}var ga=dy(!0),my=dy(!1),gi={},$t=yn(gi),yi=yn(gi),wi=yn(gi);function oo(t){if(t===gi)throw Error(A(174));return t}function Ic(t,e){switch(re(wi,e),re(yi,t),re($t,gi),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)}te($t),re($t,e)}function Xo(){te($t),te(yi),te(wi)}function fy(t){oo(wi.current);var e=oo($t.current),n=Hu(e,t.type);e!==n&&(re(yi,t),re($t,n))}function Lc(t){yi.current===t&&(te($t),te(yi))}var ie=yn(0);function ya(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 Ft=null,kn=null,Ct=!1;function py(t,e){var n=ut(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 hy(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 zc(t){if(Ct){var e=kn;if(e){var n=e;if(!hy(t,e)){if(e=_o(n.nextSibling),!e||!hy(t,e)){t.flags=t.flags&-1025|2,Ct=!1,Ft=t;return}py(Ft,n)}Ft=t,kn=_o(e.firstChild)}else t.flags=t.flags&-1025|2,Ct=!1,Ft=t}}function gy(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Ft=t}function wa(t){if(t!==Ft)return!1;if(!Ct)return gy(t),Ct=!0,!1;var e=t.type;if(t.tag!==5||e!=="head"&&e!=="body"&&!kc(e,t.memoizedProps))for(e=kn;e;)py(t,e),e=_o(e.nextSibling);if(gy(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(A(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){kn=_o(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}kn=null}}else kn=Ft?_o(t.stateNode.nextSibling):null;return!0}function Fc(){kn=Ft=null,Ct=!1}var er=[];function Bc(){for(var t=0;t<er.length;t++)er[t]._workInProgressVersionPrimary=null;er.length=0}var Si=qn.ReactCurrentDispatcher,at=qn.ReactCurrentBatchConfig,vi=0,ae=null,Pe=null,Ee=null,Sa=!1,bi=!1;function Ye(){throw Error(A(321))}function Hc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!it(t[n],e[n]))return!1;return!0}function Vc(t,e,n,o,r,i){if(vi=i,ae=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Si.current=t===null||t.memoizedState===null?c$:d$,t=n(o,r),bi){i=0;do{if(bi=!1,!(25>i))throw Error(A(301));i+=1,Ee=Pe=null,e.updateQueue=null,Si.current=m$,t=n(o,r)}while(bi)}if(Si.current=xa,e=Pe!==null&&Pe.next!==null,vi=0,Ee=Pe=ae=null,Sa=!1,e)throw Error(A(300));return t}function ro(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ee===null?ae.memoizedState=Ee=t:Ee=Ee.next=t,Ee}function io(){if(Pe===null){var t=ae.alternate;t=t!==null?t.memoizedState:null}else t=Pe.next;var e=Ee===null?ae.memoizedState:Ee.next;if(e!==null)Ee=e,Pe=t;else{if(t===null)throw Error(A(310));Pe=t,t={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},Ee===null?ae.memoizedState=Ee=t:Ee=Ee.next=t}return Ee}function Et(t,e){return typeof e=="function"?e(t):e}function ki(t){var e=io(),n=e.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=t;var o=Pe,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 u=l.lane;if((vi&u)===u)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 c={lane:u,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};a===null?(s=a=c,i=o):a=a.next=c,ae.lanes|=u,Ei|=u}l=l.next}while(l!==null&&l!==r);a===null?i=o:a.next=s,it(o,e.memoizedState)||(yt=!0),e.memoizedState=o,e.baseState=i,e.baseQueue=a,n.lastRenderedState=o}return[e.memoizedState,n.dispatch]}function xi(t){var e=io(),n=e.queue;if(n===null)throw Error(A(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);it(i,e.memoizedState)||(yt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i}return[i,o]}function yy(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=(vi&t)===t)&&(e._workInProgressVersionPrimary=o,er.push(e))),t)return n(e._source);throw er.push(e),Error(A(350))}function wy(t,e,n,o){var r=He;if(r===null)throw Error(A(349));var i=e._getVersion,s=i(e._source),a=Si.current,l=a.useState(function(){return yy(r,e,n)}),u=l[1],c=l[0];l=Ee;var m=t.memoizedState,d=m.refs,f=d.getSnapshot,p=m.source;m=m.subscribe;var y=ae;return t.memoizedState={refs:d,source:e,subscribe:o},a.useEffect(function(){d.getSnapshot=n,d.setSnapshot=u;var h=i(e._source);if(!it(s,h)){h=n(e._source),it(c,h)||(u(h),h=$n(y),r.mutableReadLanes|=h&r.pendingLanes),h=r.mutableReadLanes,r.entangledLanes|=h;for(var g=r.entanglements,w=h;0<w;){var v=31-pn(w),k=1<<v;g[v]|=h,w&=~k}}},[n,e,o]),a.useEffect(function(){return o(e._source,function(){var h=d.getSnapshot,g=d.setSnapshot;try{g(h(e._source));var w=$n(y);r.mutableReadLanes|=w&r.pendingLanes}catch(v){g(function(){throw v})}})},[e,o]),it(f,n)&&it(p,e)&&it(m,o)||(t={pending:null,dispatch:null,lastRenderedReducer:Et,lastRenderedState:c},t.dispatch=u=Yc.bind(null,ae,t),l.queue=t,l.baseQueue=null,c=yy(r,e,n),l.memoizedState=l.baseState=c),c}function Sy(t,e,n){var o=io();return wy(o,t,e,n)}function $i(t){var e=ro();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t=e.queue={pending:null,dispatch:null,lastRenderedReducer:Et,lastRenderedState:t},t=t.dispatch=Yc.bind(null,ae,t),[e.memoizedState,t]}function va(t,e,n,o){return t={tag:t,create:e,destroy:n,deps:o,next:null},e=ae.updateQueue,e===null?(e={lastEffect:null},ae.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 vy(t){var e=ro();return t={current:t},e.memoizedState=t}function ba(){return io().memoizedState}function Uc(t,e,n,o){var r=ro();ae.flags|=t,r.memoizedState=va(1|e,n,void 0,o===void 0?null:o)}function Jc(t,e,n,o){var r=io();o=o===void 0?null:o;var i=void 0;if(Pe!==null){var s=Pe.memoizedState;if(i=s.destroy,o!==null&&Hc(o,s.deps)){va(e,n,i,o);return}}ae.flags|=t,r.memoizedState=va(1|e,n,i,o)}function by(t,e){return Uc(516,4,t,e)}function ka(t,e){return Jc(516,4,t,e)}function ky(t,e){return Jc(4,2,t,e)}function xy(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 $y(t,e,n){return n=n!=null?n.concat([t]):null,Jc(4,2,xy.bind(null,e,t),n)}function _c(){}function Cy(t,e){var n=io();e=e===void 0?null:e;var o=n.memoizedState;return o!==null&&e!==null&&Hc(e,o[1])?o[0]:(n.memoizedState=[t,e],t)}function Ey(t,e){var n=io();e=e===void 0?null:e;var o=n.memoizedState;return o!==null&&e!==null&&Hc(e,o[1])?o[0]:(t=t(),n.memoizedState=[t,e],t)}function u$(t,e){var n=Go();no(98>n?98:n,function(){t(!0)}),no(97<n?97:n,function(){var o=at.transition;at.transition=1;try{t(!1),e()}finally{at.transition=o}})}function Yc(t,e,n){var o=Qe(),r=$n(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===ae||s!==null&&s===ae)bi=Sa=!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,it(l,a))return}catch{}finally{}Cn(t,r,o)}}var xa={readContext:st,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useMutableSource:Ye,useOpaqueIdentifier:Ye,unstable_isNewReconciler:!1},c$={readContext:st,useCallback:function(t,e){return ro().memoizedState=[t,e===void 0?null:e],t},useContext:st,useEffect:by,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,Uc(4,2,xy.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Uc(4,2,t,e)},useMemo:function(t,e){var n=ro();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var o=ro();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=Yc.bind(null,ae,t),[o.memoizedState,t]},useRef:vy,useState:$i,useDebugValue:_c,useDeferredValue:function(t){var e=$i(t),n=e[0],o=e[1];return by(function(){var r=at.transition;at.transition=1;try{o(t)}finally{at.transition=r}},[t]),n},useTransition:function(){var t=$i(!1),e=t[0];return t=u$.bind(null,t[1]),vy(t),[t,e]},useMutableSource:function(t,e,n){var o=ro();return o.memoizedState={refs:{getSnapshot:e,setSnapshot:null},source:t,subscribe:n},wy(o,t,e,n)},useOpaqueIdentifier:function(){if(Ct){var t=!1,e=o$(function(){throw t||(t=!0,n("r:"+($c++).toString(36))),Error(A(355))}),n=$i(e)[1];return!(ae.mode&2)&&(ae.flags|=516,va(5,function(){n("r:"+($c++).toString(36))},void 0,null)),e}return e="r:"+($c++).toString(36),$i(e),e},unstable_isNewReconciler:!1},d$={readContext:st,useCallback:Cy,useContext:st,useEffect:ka,useImperativeHandle:$y,useLayoutEffect:ky,useMemo:Ey,useReducer:ki,useRef:ba,useState:function(){return ki(Et)},useDebugValue:_c,useDeferredValue:function(t){var e=ki(Et),n=e[0],o=e[1];return ka(function(){var r=at.transition;at.transition=1;try{o(t)}finally{at.transition=r}},[t]),n},useTransition:function(){var t=ki(Et)[0];return[ba().current,t]},useMutableSource:Sy,useOpaqueIdentifier:function(){return ki(Et)[0]},unstable_isNewReconciler:!1},m$={readContext:st,useCallback:Cy,useContext:st,useEffect:ka,useImperativeHandle:$y,useLayoutEffect:ky,useMemo:Ey,useReducer:xi,useRef:ba,useState:function(){return xi(Et)},useDebugValue:_c,useDeferredValue:function(t){var e=xi(Et),n=e[0],o=e[1];return ka(function(){var r=at.transition;at.transition=1;try{o(t)}finally{at.transition=r}},[t]),n},useTransition:function(){var t=xi(Et)[0];return[ba().current,t]},useMutableSource:Sy,useOpaqueIdentifier:function(){return xi(Et)[0]},unstable_isNewReconciler:!1},f$=qn.ReactCurrentOwner,yt=!1;function Ke(t,e,n,o){e.child=t===null?my(e,null,n,o):ga(e,t.child,n,o)}function Ny(t,e,n,o,r){n=n.render;var i=e.ref;return Zo(e,r),o=Vc(t,e,n,o,i,r),t!==null&&!yt?(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~r,Bt(t,e,r)):(e.flags|=1,Ke(t,e,o,r),e.child)}function Oy(t,e,n,o,r,i){if(t===null){var s=n.type;return typeof s=="function"&&!hd(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=s,Ay(t,e,s,o,r,i)):(t=Ta(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:li,n(r,o)&&t.ref===e.ref)?Bt(t,e,i):(e.flags|=1,t=On(s,o),t.ref=e.ref,t.return=e,e.child=t)}function Ay(t,e,n,o,r,i){if(t!==null&&li(t.memoizedProps,o)&&t.ref===e.ref)if(yt=!1,(i&r)!==0)t.flags&16384&&(yt=!0);else return e.lanes=t.lanes,Bt(t,e,i);return Wc(t,e,n,o,i)}function Kc(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},Da(e,n);else if(n&1073741824)e.memoizedState={baseLanes:0},Da(e,i!==null?i.baseLanes:n);else return t=i!==null?i.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t},Da(e,t),null;else i!==null?(o=i.baseLanes|n,e.memoizedState=null):o=n,Da(e,o);return Ke(t,e,r,n),e.child}function Ry(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=128)}function Wc(t,e,n,o,r){var i=_e(n)?eo:Te.current;return i=qo(e,i),Zo(e,r),n=Vc(t,e,n,o,i,r),t!==null&&!yt?(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~r,Bt(t,e,r)):(e.flags|=1,Ke(t,e,n,r),e.child)}function My(t,e,n,o,r){if(_e(n)){var i=!0;sa(e)}else i=!1;if(Zo(e,r),e.stateNode===null)t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),uy(e,n,o),Pc(e,n,o,r),o=!0;else if(t===null){var s=e.stateNode,a=e.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=st(u):(u=_e(n)?eo:Te.current,u=qo(e,u));var c=n.getDerivedStateFromProps,m=typeof c=="function"||typeof s.getSnapshotBeforeUpdate=="function";m||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==o||l!==u)&&cy(e,s,o,u),Sn=!1;var d=e.memoizedState;s.state=d,pi(e,o,s,r),l=e.memoizedState,a!==o||d!==l||Je.current||Sn?(typeof c=="function"&&(ma(e,n,c,o),l=e.memoizedState),(a=Sn||ly(e,n,a,o,d,l,u))?(m||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=u,o=a):(typeof s.componentDidMount=="function"&&(e.flags|=4),o=!1)}else{s=e.stateNode,ry(t,e),a=e.memoizedProps,u=e.type===e.elementType?a:gt(e.type,a),s.props=u,m=e.pendingProps,d=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=st(l):(l=_e(n)?eo:Te.current,l=qo(e,l));var f=n.getDerivedStateFromProps;(c=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==m||d!==l)&&cy(e,s,o,l),Sn=!1,d=e.memoizedState,s.state=d,pi(e,o,s,r);var p=e.memoizedState;a!==m||d!==p||Je.current||Sn?(typeof f=="function"&&(ma(e,n,f,o),p=e.memoizedState),(u=Sn||ly(e,n,u,o,d,p,l))?(c||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&&d===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=256),e.memoizedProps=o,e.memoizedState=p),s.props=o,s.state=p,s.context=l,o=u):(typeof s.componentDidUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=256),o=!1)}return qc(t,e,n,o,i,r)}function qc(t,e,n,o,r,i){Ry(t,e);var s=(e.flags&64)!==0;if(!o&&!s)return r&&Wg(e,n,!1),Bt(t,e,i);o=e.stateNode,f$.current=e;var a=s&&typeof n.getDerivedStateFromError!="function"?null:o.render();return e.flags|=1,t!==null&&s?(e.child=ga(e,t.child,null,i),e.child=ga(e,null,a,i)):Ke(t,e,a,i),e.memoizedState=o.state,r&&Wg(e,n,!0),e.child}function Dy(t){var e=t.stateNode;e.pendingContext?Yg(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Yg(t,e.context,!1),Ic(t,e.containerInfo)}var $a={dehydrated:null,retryLane:0};function Ty(t,e,n){var o=e.pendingProps,r=ie.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),re(ie,r&1),t===null?(o.fallback!==void 0&&zc(e),t=o.children,r=o.fallback,i?(t=jy(e,t,r,n),e.child.memoizedState={baseLanes:n},e.memoizedState=$a,t):typeof o.unstable_expectedLoadTime=="number"?(t=jy(e,t,r,n),e.child.memoizedState={baseLanes:n},e.memoizedState=$a,e.lanes=33554432,t):(n=gd({mode:"visible",children:t},e.mode,n,null),n.return=e,e.child=n)):t.memoizedState!==null?i?(o=Iy(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=$a,o):(n=Py(t,e,o.children,n),e.memoizedState=null,n):i?(o=Iy(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=$a,o):(n=Py(t,e,o.children,n),e.memoizedState=null,n)}function jy(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=gd(e,r,0,null),n=sr(n,r,o,null),i.return=t,n.return=t,i.sibling=n,t.child=i,n}function Py(t,e,n,o){var r=t.child;return t=r.sibling,n=On(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 Iy(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=On(s,a),t!==null?o=On(t,o):(o=sr(o,i,r,null),o.flags|=2),o.return=e,n.return=e,n.sibling=o,e.child=n,o}function Ly(t,e){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),oy(t.return,e)}function Gc(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 zy(t,e,n){var o=e.pendingProps,r=o.revealOrder,i=o.tail;if(Ke(t,e,o.children,n),o=ie.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&&Ly(t,n);else if(t.tag===19)Ly(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(re(ie,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&&ya(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),Gc(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&&ya(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}Gc(e,!0,n,null,i,e.lastEffect);break;case"together":Gc(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}return e.child}function Bt(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Ei|=e.lanes,n&e.childLanes){if(t!==null&&e.child!==t.child)throw Error(A(153));if(e.child!==null){for(t=e.child,n=On(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=On(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}return null}var Fy,Qc,By,Hy;Fy=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}},Qc=function(){},By=function(t,e,n,o){var r=t.memoizedProps;if(r!==o){t=e.stateNode,oo($t.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=ne({},r,{value:void 0}),o=ne({},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=ta)}Vu(n,o);var s;n=null;for(u in r)if(!o.hasOwnProperty(u)&&r.hasOwnProperty(u)&&r[u]!=null)if(u==="style"){var a=r[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Br.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in o){var l=o[u];if(a=r!=null?r[u]:void 0,o.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="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(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Br.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ee("scroll",t),i||a===l||(i=[])):typeof l=="object"&&l!==null&&l.$$typeof===Ru?l.toString():(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(e.updateQueue=u)&&(e.flags|=4)}},Hy=function(t,e,n,o){n!==o&&(e.flags|=4)};function Ci(t,e){if(!Ct)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 p$(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 _e(e.type)&&ia(),null;case 3:return Xo(),te(Je),te(Te),Bc(),o=e.stateNode,o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(wa(e)?e.flags|=4:o.hydrate||(e.flags|=256)),Qc(e),null;case 5:Lc(e);var r=oo(wi.current);if(n=e.type,t!==null&&e.stateNode!=null)By(t,e,n,o,r),t.ref!==e.ref&&(e.flags|=128);else{if(!o){if(e.stateNode===null)throw Error(A(166));return null}if(t=oo($t.current),wa(e)){o=e.stateNode,n=e.type;var i=e.memoizedProps;switch(o[gn]=e,o[oa]=i,n){case"dialog":ee("cancel",o),ee("close",o);break;case"iframe":case"object":case"embed":ee("load",o);break;case"video":case"audio":for(t=0;t<ci.length;t++)ee(ci[t],o);break;case"source":ee("error",o);break;case"img":case"image":case"link":ee("error",o),ee("load",o);break;case"details":ee("toggle",o);break;case"input":Mh(o,i),ee("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!i.multiple},ee("invalid",o);break;case"textarea":jh(o,i),ee("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]):Br.hasOwnProperty(s)&&r!=null&&s==="onScroll"&&ee("scroll",o));switch(n){case"input":zs(o),Th(o,i,!0);break;case"textarea":zs(o),Ih(o);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(o.onclick=ta)}o=t,e.updateQueue=o,o!==null&&(e.flags|=4)}else{switch(s=r.nodeType===9?r:r.ownerDocument,t===Bu.html&&(t=Lh(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[gn]=e,t[oa]=o,Fy(t,e,!1,!1),e.stateNode=t,s=Uu(n,o),n){case"dialog":ee("cancel",t),ee("close",t),r=o;break;case"iframe":case"object":case"embed":ee("load",t),r=o;break;case"video":case"audio":for(r=0;r<ci.length;r++)ee(ci[r],t);r=o;break;case"source":ee("error",t),r=o;break;case"img":case"image":case"link":ee("error",t),ee("load",t),r=o;break;case"details":ee("toggle",t),r=o;break;case"input":Mh(t,o),r=Pu(t,o),ee("invalid",t);break;case"option":r=zu(t,o);break;case"select":t._wrapperState={wasMultiple:!!o.multiple},r=ne({},o,{value:void 0}),ee("invalid",t);break;case"textarea":jh(t,o),r=Fu(t,o),ee("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"?Bh(t,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&zh(t,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Yr(t,l):typeof l=="number"&&Yr(t,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Br.hasOwnProperty(i)?l!=null&&i==="onScroll"&&ee("scroll",t):l!=null&&$u(t,i,l,s))}switch(n){case"input":zs(t),Th(t,o,!1);break;case"textarea":zs(t),Ih(t);break;case"option":o.value!=null&&t.setAttribute("value",""+cn(o.value));break;case"select":t.multiple=!!o.multiple,i=o.value,i!=null?Po(t,!!o.multiple,i,!1):o.defaultValue!=null&&Po(t,!!o.multiple,o.defaultValue,!0);break;default:typeof r.onClick=="function"&&(t.onclick=ta)}Hg(n,o)&&(e.flags|=4)}e.ref!==null&&(e.flags|=128)}return null;case 6:if(t&&e.stateNode!=null)Hy(t,e,t.memoizedProps,o);else{if(typeof o!="string"&&e.stateNode===null)throw Error(A(166));n=oo(wi.current),oo($t.current),wa(e)?(o=e.stateNode,n=e.memoizedProps,o[gn]=e,o.nodeValue!==n&&(e.flags|=4)):(o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[gn]=e,e.stateNode=o)}return null;case 13:return te(ie),o=e.memoizedState,e.flags&64?(e.lanes=n,e):(o=o!==null,n=!1,t===null?e.memoizedProps.fallback!==void 0&&wa(e):n=t.memoizedState!==null,o&&!n&&e.mode&2&&(t===null&&e.memoizedProps.unstable_avoidThisFallback!==!0||ie.current&1?Ne===0&&(Ne=3):((Ne===0||Ne===3)&&(Ne=4),He===null||!(Ei&134217727)&&!(nr&134217727)||rr(He,Ie))),(o||n)&&(e.flags|=4),null);case 4:return Xo(),Qc(e),t===null&&Ig(e.stateNode.containerInfo),null;case 10:return Tc(e),null;case 17:return _e(e.type)&&ia(),null;case 19:if(te(ie),o=e.memoizedState,o===null)return null;if(i=(e.flags&64)!==0,s=o.rendering,s===null)if(i)Ci(o,!1);else{if(Ne!==0||t!==null&&t.flags&64)for(t=e.child;t!==null;){if(s=ya(t),s!==null){for(e.flags|=64,Ci(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 re(ie,ie.current&1|2),e.child}t=t.sibling}o.tail!==null&&je()>ld&&(e.flags|=64,i=!0,Ci(o,!1),e.lanes=33554432)}else{if(!i)if(t=ya(s),t!==null){if(e.flags|=64,i=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Ci(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Ct)return e=e.lastEffect=o.lastEffect,e!==null&&(e.nextEffect=null),null}else 2*je()-o.renderingStartTime>ld&&n!==1073741824&&(e.flags|=64,i=!0,Ci(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=je(),n.sibling=null,e=ie.current,re(ie,i?e&1|2:e&1),n):null;case 23:case 24:return pd(),t!==null&&t.memoizedState!==null!=(e.memoizedState!==null)&&o.mode!=="unstable-defer-without-hiding"&&(e.flags|=4),null}throw Error(A(156,e.tag))}function h$(t){switch(t.tag){case 1:_e(t.type)&&ia();var e=t.flags;return e&4096?(t.flags=e&-4097|64,t):null;case 3:if(Xo(),te(Je),te(Te),Bc(),e=t.flags,e&64)throw Error(A(285));return t.flags=e&-4097|64,t;case 5:return Lc(t),null;case 13:return te(ie),e=t.flags,e&4096?(t.flags=e&-4097|64,t):null;case 19:return te(ie),null;case 4:return Xo(),null;case 10:return Tc(t),null;case 23:case 24:return pd(),null;default:return null}}function Zc(t,e){try{var n="",o=e;do n+=qk(o),o=o.return;while(o);var r=n}catch(i){r=`
126
126
  Error generating stack: `+i.message+`
127
- `+i.stack}return{value:t,source:e,stack:r}}function Zc(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var h$=typeof WeakMap=="function"?WeakMap:Map;function By(t,e,n){n=Sn(-1,n),n.tag=3,n.payload={element:null};var o=e.value;return n.callback=function(){Ea||(Ea=!0,ld=o),Zc(t,e)},n}function Hy(t,e,n){n=Sn(-1,n),n.tag=3;var o=t.type.getDerivedStateFromError;if(typeof o=="function"){var r=e.value;n.payload=function(){return Zc(t,e),o(r)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){typeof o!="function"&&(Et===null?Et=new Set([this]):Et.add(this),Zc(t,e));var s=e.stack;this.componentDidCatch(e.value,{componentStack:s!==null?s:""})}),n}var g$=typeof WeakSet=="function"?WeakSet:Set;function Vy(t){var e=t.ref;if(e!==null)if(typeof e=="function")try{e(null)}catch(n){En(t,n)}else e.current=null}function y$(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:ht(e.type,n),o),t.__reactInternalSnapshotBeforeUpdate=e}return;case 3:e.flags&256&&bc(e.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(A(163))}function w$(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&&(o0(n,t),E$(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:ht(n.type,e.memoizedProps),t.componentDidUpdate(o,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate))),e=n.updateQueue,e!==null&&ry(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}ry(n,e,t)}return;case 5:t=n.stateNode,e===null&&n.flags&4&&Fg(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&&eg(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(A(163))}function Uy(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=Lh("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 Jy(t,e){if(eo&&typeof eo.onCommitFiberUnmount=="function")try{eo.onCommitFiberUnmount(Cc,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)o0(e,n);else{o=e;try{r()}catch(i){En(o,i)}}n=n.next}while(n!==t)}break;case 1:if(Vy(e),t=e.stateNode,typeof t.componentWillUnmount=="function")try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(i){En(e,i)}break;case 5:Vy(e);break;case 4:Wy(t,e)}}function _y(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 Yy(t){return t.tag===5||t.tag===3||t.tag===4}function Ky(t){e:{for(var e=t.return;e!==null;){if(Yy(e))break e;e=e.return}throw Error(A(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(A(161))}n.flags&16&&(_r(e,""),n.flags&=-17);e:t:for(n=t;;){for(;n.sibling===null;){if(n.return===null||Yy(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?Xc(t,n,e):ed(t,n,e)}function Xc(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=ea));else if(o!==4&&(t=t.child,t!==null))for(Xc(t,e,n),t=t.sibling;t!==null;)Xc(t,e,n),t=t.sibling}function ed(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(ed(t,e,n),t=t.sibling;t!==null;)ed(t,e,n),t=t.sibling}function Wy(t,e){for(var n=e,o=!1,r,i;;){if(!o){o=n.return;e:for(;;){if(o===null)throw Error(A(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(Jy(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(Jy(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 td(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&&Rh(n,o),Vu(t,r),e=Vu(t,o),r=0;r<i.length;r+=2){var s=i[r],a=i[r+1];s==="style"?zh(n,a):s==="dangerouslySetInnerHTML"?Ih(n,a):s==="children"?_r(n,a):xu(n,s,a,e)}switch(t){case"input":Pu(n,o);break;case"textarea":Th(n,o);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,i=o.value,i!=null?jo(n,!!o.multiple,i,!1):t!==!!o.multiple&&(o.defaultValue!=null?jo(n,!!o.multiple,o.defaultValue,!0):jo(n,!!o.multiple,o.multiple?[]:"",!1))}}}return;case 6:if(e.stateNode===null)throw Error(A(162));e.stateNode.nodeValue=e.memoizedProps;return;case 3:n=e.stateNode,n.hydrate&&(n.hydrate=!1,eg(n.containerInfo));return;case 12:return;case 13:e.memoizedState!==null&&(sd=Te(),Uy(e.child,!0)),qy(e);return;case 19:qy(e);return;case 17:return;case 23:case 24:Uy(e,e.memoizedState!==null);return}throw Error(A(163))}function qy(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new g$),e.forEach(function(o){var r=A$.bind(null,t,o);n.has(o)||(n.add(o),o.then(r,r))})}}function S$(t,e){return t!==null&&(t=t.memoizedState,t===null||t.dehydrated!==null)?(e=e.memoizedState,e!==null&&e.dehydrated===null):!1}var v$=Math.ceil,$a=Wn.ReactCurrentDispatcher,nd=Wn.ReactCurrentOwner,z=0,Be=null,me=null,Pe=0,io=0,od=gn(0),Ee=0,Ca=null,er=0,Ci=0,tr=0,rd=0,id=null,sd=0,ad=1/0;function nr(){ad=Te()+500}var T=null,Ea=!1,ld=null,Et=null,bn=!1,Ei=null,Ni=90,ud=[],cd=[],Bt=null,Oi=0,dd=null,Na=-1,Ht=0,Oa=0,Ai=null,Aa=!1;function Ge(){return z&48?Te():Na!==-1?Na:Na=Te()}function xn(t){if(t=t.mode,!(t&2))return 1;if(!(t&4))return qo()===99?1:2;if(Ht===0&&(Ht=er),a$.transition!==0){Oa!==0&&(Oa=id!==null?id.pendingLanes:0),t=Ht;var e=4186112&~Oa;return e&=-e,e===0&&(t=4186112&~t,e=t&-t,e===0&&(e=8192)),e}return t=qo(),z&4&&t===98?t=_s(12,Ht):(t=cx(t),t=_s(t,Ht)),t}function $n(t,e,n){if(50<Oi)throw Oi=0,dd=null,Error(A(185));if(t=Ra(t,e),t===null)return null;Ys(t,e,n),t===Be&&(tr|=e,Ee===4&&or(t,Pe));var o=qo();e===1?z&8&&!(z&48)?md(t):(at(t,n),z===0&&(nr(),bt())):(!(z&4)||o!==98&&o!==99||(Bt===null?Bt=new Set([t]):Bt.add(t)),at(t,n)),id=t}function Ra(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 at(t,e){for(var n=t.callbackNode,o=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,s=t.pendingLanes;0<s;){var a=31-fn(s),l=1<<a,u=i[a];if(u===-1){if(!(l&o)||l&r){u=e,zo(l);var c=Q;i[a]=10<=c?u+250:6<=c?u+5e3:-1}}else u<=e&&(t.expiredLanes|=l);s&=~l}if(o=ti(t,t===Be?Pe:0),e=Q,o===0)n!==null&&(n!==Ac&&Nc(n),t.callbackNode=null,t.callbackPriority=0);else{if(n!==null){if(t.callbackPriority===e)return;n!==Ac&&Nc(n)}e===15?(n=md.bind(null,t),Lt===null?(Lt=[n],aa=Ec(sa,ey)):Lt.push(n),n=Ac):e===14?n=mi(99,md.bind(null,t)):(n=dx(e),n=mi(n,Gy.bind(null,t))),t.callbackPriority=e,t.callbackNode=n}}function Gy(t){if(Na=-1,Oa=Ht=0,z&48)throw Error(A(327));var e=t.callbackNode;if(Cn()&&t.callbackNode!==e)return null;var n=ti(t,t===Be?Pe:0);if(n===0)return null;var o=n,r=z;z|=16;var i=e0();(Be!==t||Pe!==o)&&(nr(),rr(t,o));do try{x$();break}catch(a){Xy(t,a)}while(1);if(Mc(),$a.current=i,z=r,me!==null?o=0:(Be=null,Pe=0,o=Ee),er&tr)rr(t,0);else if(o!==0){if(o===2&&(z|=64,t.hydrate&&(t.hydrate=!1,bc(t.containerInfo)),n=ag(t),n!==0&&(o=Ri(t,n))),o===1)throw e=Ca,rr(t,0),or(t,n),at(t,Te()),e;switch(t.finishedWork=t.current.alternate,t.finishedLanes=n,o){case 0:case 1:throw Error(A(345));case 2:so(t);break;case 3:if(or(t,n),(n&62914560)===n&&(o=sd+500-Te(),10<o)){if(ti(t,0)!==0)break;if(r=t.suspendedLanes,(r&n)!==n){Ge(),t.pingedLanes|=t.suspendedLanes&r;break}t.timeoutHandle=Bg(so.bind(null,t),o);break}so(t);break;case 4:if(or(t,n),(n&4186112)===n)break;for(o=t.eventTimes,r=-1;0<n;){var s=31-fn(n);i=1<<s,s=o[s],s>r&&(r=s),n&=~i}if(n=r,n=Te()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*v$(n/1960))-n,10<n){t.timeoutHandle=Bg(so.bind(null,t),n);break}so(t);break;case 5:so(t);break;default:throw Error(A(329))}}return at(t,Te()),t.callbackNode===e?Gy.bind(null,t):null}function or(t,e){for(e&=~rd,e&=~tr,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-fn(e),o=1<<n;t[n]=-1,e&=~o}}function md(t){if(z&48)throw Error(A(327));if(Cn(),t===Be&&t.expiredLanes&Pe){var e=Pe,n=Ri(t,e);er&tr&&(e=ti(t,e),n=Ri(t,e))}else e=ti(t,0),n=Ri(t,e);if(t.tag!==0&&n===2&&(z|=64,t.hydrate&&(t.hydrate=!1,bc(t.containerInfo)),e=ag(t),e!==0&&(n=Ri(t,e))),n===1)throw n=Ca,rr(t,0),or(t,e),at(t,Te()),n;return t.finishedWork=t.current.alternate,t.finishedLanes=e,so(t),at(t,Te()),null}function k$(){if(Bt!==null){var t=Bt;Bt=null,t.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,at(e,Te())})}bt()}function Qy(t,e){var n=z;z|=1;try{return t(e)}finally{z=n,z===0&&(nr(),bt())}}function Zy(t,e){var n=z;z&=-2,z|=8;try{return t(e)}finally{z=n,z===0&&(nr(),bt())}}function Ma(t,e){oe(od,io),io|=e,er|=e}function fd(){io=od.current,ee(od)}function rr(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,t$(n)),me!==null)for(n=me.return;n!==null;){var o=n;switch(o.tag){case 1:o=o.type.childContextTypes,o!=null&&ra();break;case 3:Zo(),ee(Ue),ee(De),Fc();break;case 5:Ic(o);break;case 4:Zo();break;case 13:ee(re);break;case 19:ee(re);break;case 10:Dc(o);break;case 23:case 24:fd()}n=n.return}Be=t,me=Nn(t.current,null),Pe=io=er=e,Ee=0,Ca=null,rd=tr=Ci=0}function Xy(t,e){do{var n=me;try{if(Mc(),wi.current=ba,wa){for(var o=se.memoizedState;o!==null;){var r=o.queue;r!==null&&(r.pending=null),o=o.next}wa=!1}if(Si=0,Ce=je=se=null,vi=!1,nd.current=null,n===null||n.return===null){Ee=1,Ca=e,me=null;break}e:{var i=t,s=n.return,a=n,l=e;if(e=Pe,a.flags|=2048,a.firstEffect=a.lastEffect=null,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l;if(!(a.mode&2)){var c=a.alternate;c?(a.updateQueue=c.updateQueue,a.memoizedState=c.memoizedState,a.lanes=c.lanes):(a.updateQueue=null,a.memoizedState=null)}var m=(re.current&1)!==0,d=s;do{var f;if(f=d.tag===13){var p=d.memoizedState;if(p!==null)f=p.dehydrated!==null;else{var y=d.memoizedProps;f=y.fallback===void 0?!1:y.unstable_avoidThisFallback!==!0?!0:!m}}if(f){var h=d.updateQueue;if(h===null){var g=new Set;g.add(u),d.updateQueue=g}else h.add(u);if(!(d.mode&2)){if(d.flags|=64,a.flags|=16384,a.flags&=-2981,a.tag===1)if(a.alternate===null)a.tag=17;else{var w=Sn(-1,1);w.tag=2,vn(a,w)}a.lanes|=1;break e}l=void 0,a=e;var v=i.pingCache;if(v===null?(v=i.pingCache=new h$,l=new Set,v.set(u,l)):(l=v.get(u),l===void 0&&(l=new Set,v.set(u,l))),!l.has(a)){l.add(a);var b=O$.bind(null,i,u,a);u.then(b,b)}d.flags|=4096,d.lanes=e;break e}d=d.return}while(d!==null);l=Error((To(a.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
127
+ `+i.stack}return{value:t,source:e,stack:r}}function Xc(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var g$=typeof WeakMap=="function"?WeakMap:Map;function Vy(t,e,n){n=vn(-1,n),n.tag=3,n.payload={element:null};var o=e.value;return n.callback=function(){Na||(Na=!0,ud=o),Xc(t,e)},n}function Uy(t,e,n){n=vn(-1,n),n.tag=3;var o=t.type.getDerivedStateFromError;if(typeof o=="function"){var r=e.value;n.payload=function(){return Xc(t,e),o(r)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){typeof o!="function"&&(Nt===null?Nt=new Set([this]):Nt.add(this),Xc(t,e));var s=e.stack;this.componentDidCatch(e.value,{componentStack:s!==null?s:""})}),n}var y$=typeof WeakSet=="function"?WeakSet:Set;function Jy(t){var e=t.ref;if(e!==null)if(typeof e=="function")try{e(null)}catch(n){Nn(t,n)}else e.current=null}function w$(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:gt(e.type,n),o),t.__reactInternalSnapshotBeforeUpdate=e}return;case 3:e.flags&256&&xc(e.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(A(163))}function S$(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&&(i0(n,t),N$(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:gt(n.type,e.memoizedProps),t.componentDidUpdate(o,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate))),e=n.updateQueue,e!==null&&sy(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}sy(n,e,t)}return;case 5:t=n.stateNode,e===null&&n.flags&4&&Hg(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&&ng(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(A(163))}function _y(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=Fh("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 Yy(t,e){if(to&&typeof to.onCommitFiberUnmount=="function")try{to.onCommitFiberUnmount(Ec,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)i0(e,n);else{o=e;try{r()}catch(i){Nn(o,i)}}n=n.next}while(n!==t)}break;case 1:if(Jy(e),t=e.stateNode,typeof t.componentWillUnmount=="function")try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(i){Nn(e,i)}break;case 5:Jy(e);break;case 4:Gy(t,e)}}function Ky(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 Wy(t){return t.tag===5||t.tag===3||t.tag===4}function qy(t){e:{for(var e=t.return;e!==null;){if(Wy(e))break e;e=e.return}throw Error(A(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(A(161))}n.flags&16&&(Yr(e,""),n.flags&=-17);e:t:for(n=t;;){for(;n.sibling===null;){if(n.return===null||Wy(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?ed(t,n,e):td(t,n,e)}function ed(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=ta));else if(o!==4&&(t=t.child,t!==null))for(ed(t,e,n),t=t.sibling;t!==null;)ed(t,e,n),t=t.sibling}function td(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(td(t,e,n),t=t.sibling;t!==null;)td(t,e,n),t=t.sibling}function Gy(t,e){for(var n=e,o=!1,r,i;;){if(!o){o=n.return;e:for(;;){if(o===null)throw Error(A(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(Yy(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(Yy(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 nd(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[oa]=o,t==="input"&&o.type==="radio"&&o.name!=null&&Dh(n,o),Uu(t,r),e=Uu(t,o),r=0;r<i.length;r+=2){var s=i[r],a=i[r+1];s==="style"?Bh(n,a):s==="dangerouslySetInnerHTML"?zh(n,a):s==="children"?Yr(n,a):$u(n,s,a,e)}switch(t){case"input":Iu(n,o);break;case"textarea":Ph(n,o);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,i=o.value,i!=null?Po(n,!!o.multiple,i,!1):t!==!!o.multiple&&(o.defaultValue!=null?Po(n,!!o.multiple,o.defaultValue,!0):Po(n,!!o.multiple,o.multiple?[]:"",!1))}}}return;case 6:if(e.stateNode===null)throw Error(A(162));e.stateNode.nodeValue=e.memoizedProps;return;case 3:n=e.stateNode,n.hydrate&&(n.hydrate=!1,ng(n.containerInfo));return;case 12:return;case 13:e.memoizedState!==null&&(ad=je(),_y(e.child,!0)),Qy(e);return;case 19:Qy(e);return;case 17:return;case 23:case 24:_y(e,e.memoizedState!==null);return}throw Error(A(163))}function Qy(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new y$),e.forEach(function(o){var r=R$.bind(null,t,o);n.has(o)||(n.add(o),o.then(r,r))})}}function v$(t,e){return t!==null&&(t=t.memoizedState,t===null||t.dehydrated!==null)?(e=e.memoizedState,e!==null&&e.dehydrated===null):!1}var b$=Math.ceil,Ca=qn.ReactCurrentDispatcher,od=qn.ReactCurrentOwner,z=0,He=null,fe=null,Ie=0,so=0,rd=yn(0),Ne=0,Ea=null,tr=0,Ei=0,nr=0,id=0,sd=null,ad=0,ld=1/0;function or(){ld=je()+500}var T=null,Na=!1,ud=null,Nt=null,xn=!1,Ni=null,Oi=90,cd=[],dd=[],Ht=null,Ai=0,md=null,Oa=-1,Vt=0,Aa=0,Ri=null,Ra=!1;function Qe(){return z&48?je():Oa!==-1?Oa:Oa=je()}function $n(t){if(t=t.mode,!(t&2))return 1;if(!(t&4))return Go()===99?1:2;if(Vt===0&&(Vt=tr),l$.transition!==0){Aa!==0&&(Aa=sd!==null?sd.pendingLanes:0),t=Vt;var e=4186112&~Aa;return e&=-e,e===0&&(t=4186112&~t,e=t&-t,e===0&&(e=8192)),e}return t=Go(),z&4&&t===98?t=Ys(12,Vt):(t=dx(t),t=Ys(t,Vt)),t}function Cn(t,e,n){if(50<Ai)throw Ai=0,md=null,Error(A(185));if(t=Ma(t,e),t===null)return null;Ks(t,e,n),t===He&&(nr|=e,Ne===4&&rr(t,Ie));var o=Go();e===1?z&8&&!(z&48)?fd(t):(lt(t,n),z===0&&(or(),xt())):(!(z&4)||o!==98&&o!==99||(Ht===null?Ht=new Set([t]):Ht.add(t)),lt(t,n)),sd=t}function Ma(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 lt(t,e){for(var n=t.callbackNode,o=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,s=t.pendingLanes;0<s;){var a=31-pn(s),l=1<<a,u=i[a];if(u===-1){if(!(l&o)||l&r){u=e,Fo(l);var c=Z;i[a]=10<=c?u+250:6<=c?u+5e3:-1}}else u<=e&&(t.expiredLanes|=l);s&=~l}if(o=ni(t,t===He?Ie:0),e=Z,o===0)n!==null&&(n!==Rc&&Oc(n),t.callbackNode=null,t.callbackPriority=0);else{if(n!==null){if(t.callbackPriority===e)return;n!==Rc&&Oc(n)}e===15?(n=fd.bind(null,t),zt===null?(zt=[n],la=Nc(aa,ny)):zt.push(n),n=Rc):e===14?n=fi(99,fd.bind(null,t)):(n=mx(e),n=fi(n,Zy.bind(null,t))),t.callbackPriority=e,t.callbackNode=n}}function Zy(t){if(Oa=-1,Aa=Vt=0,z&48)throw Error(A(327));var e=t.callbackNode;if(En()&&t.callbackNode!==e)return null;var n=ni(t,t===He?Ie:0);if(n===0)return null;var o=n,r=z;z|=16;var i=n0();(He!==t||Ie!==o)&&(or(),ir(t,o));do try{$$();break}catch(a){t0(t,a)}while(1);if(Dc(),Ca.current=i,z=r,fe!==null?o=0:(He=null,Ie=0,o=Ne),tr&nr)ir(t,0);else if(o!==0){if(o===2&&(z|=64,t.hydrate&&(t.hydrate=!1,xc(t.containerInfo)),n=ug(t),n!==0&&(o=Mi(t,n))),o===1)throw e=Ea,ir(t,0),rr(t,n),lt(t,je()),e;switch(t.finishedWork=t.current.alternate,t.finishedLanes=n,o){case 0:case 1:throw Error(A(345));case 2:ao(t);break;case 3:if(rr(t,n),(n&62914560)===n&&(o=ad+500-je(),10<o)){if(ni(t,0)!==0)break;if(r=t.suspendedLanes,(r&n)!==n){Qe(),t.pingedLanes|=t.suspendedLanes&r;break}t.timeoutHandle=Vg(ao.bind(null,t),o);break}ao(t);break;case 4:if(rr(t,n),(n&4186112)===n)break;for(o=t.eventTimes,r=-1;0<n;){var s=31-pn(n);i=1<<s,s=o[s],s>r&&(r=s),n&=~i}if(n=r,n=je()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*b$(n/1960))-n,10<n){t.timeoutHandle=Vg(ao.bind(null,t),n);break}ao(t);break;case 5:ao(t);break;default:throw Error(A(329))}}return lt(t,je()),t.callbackNode===e?Zy.bind(null,t):null}function rr(t,e){for(e&=~id,e&=~nr,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-pn(e),o=1<<n;t[n]=-1,e&=~o}}function fd(t){if(z&48)throw Error(A(327));if(En(),t===He&&t.expiredLanes&Ie){var e=Ie,n=Mi(t,e);tr&nr&&(e=ni(t,e),n=Mi(t,e))}else e=ni(t,0),n=Mi(t,e);if(t.tag!==0&&n===2&&(z|=64,t.hydrate&&(t.hydrate=!1,xc(t.containerInfo)),e=ug(t),e!==0&&(n=Mi(t,e))),n===1)throw n=Ea,ir(t,0),rr(t,e),lt(t,je()),n;return t.finishedWork=t.current.alternate,t.finishedLanes=e,ao(t),lt(t,je()),null}function k$(){if(Ht!==null){var t=Ht;Ht=null,t.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,lt(e,je())})}xt()}function Xy(t,e){var n=z;z|=1;try{return t(e)}finally{z=n,z===0&&(or(),xt())}}function e0(t,e){var n=z;z&=-2,z|=8;try{return t(e)}finally{z=n,z===0&&(or(),xt())}}function Da(t,e){re(rd,so),so|=e,tr|=e}function pd(){so=rd.current,te(rd)}function ir(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,n$(n)),fe!==null)for(n=fe.return;n!==null;){var o=n;switch(o.tag){case 1:o=o.type.childContextTypes,o!=null&&ia();break;case 3:Xo(),te(Je),te(Te),Bc();break;case 5:Lc(o);break;case 4:Xo();break;case 13:te(ie);break;case 19:te(ie);break;case 10:Tc(o);break;case 23:case 24:pd()}n=n.return}He=t,fe=On(t.current,null),Ie=so=tr=e,Ne=0,Ea=null,id=nr=Ei=0}function t0(t,e){do{var n=fe;try{if(Dc(),Si.current=xa,Sa){for(var o=ae.memoizedState;o!==null;){var r=o.queue;r!==null&&(r.pending=null),o=o.next}Sa=!1}if(vi=0,Ee=Pe=ae=null,bi=!1,od.current=null,n===null||n.return===null){Ne=1,Ea=e,fe=null;break}e:{var i=t,s=n.return,a=n,l=e;if(e=Ie,a.flags|=2048,a.firstEffect=a.lastEffect=null,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l;if(!(a.mode&2)){var c=a.alternate;c?(a.updateQueue=c.updateQueue,a.memoizedState=c.memoizedState,a.lanes=c.lanes):(a.updateQueue=null,a.memoizedState=null)}var m=(ie.current&1)!==0,d=s;do{var f;if(f=d.tag===13){var p=d.memoizedState;if(p!==null)f=p.dehydrated!==null;else{var y=d.memoizedProps;f=y.fallback===void 0?!1:y.unstable_avoidThisFallback!==!0?!0:!m}}if(f){var h=d.updateQueue;if(h===null){var g=new Set;g.add(u),d.updateQueue=g}else h.add(u);if(!(d.mode&2)){if(d.flags|=64,a.flags|=16384,a.flags&=-2981,a.tag===1)if(a.alternate===null)a.tag=17;else{var w=vn(-1,1);w.tag=2,bn(a,w)}a.lanes|=1;break e}l=void 0,a=e;var v=i.pingCache;if(v===null?(v=i.pingCache=new g$,l=new Set,v.set(u,l)):(l=v.get(u),l===void 0&&(l=new Set,v.set(u,l))),!l.has(a)){l.add(a);var k=A$.bind(null,i,u,a);u.then(k,k)}d.flags|=4096,d.lanes=e;break e}d=d.return}while(d!==null);l=Error((jo(a.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
128
128
 
129
- Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Ee!==5&&(Ee=2),l=Qc(l,a),d=s;do{switch(d.tag){case 3:i=l,d.flags|=4096,e&=-e,d.lanes|=e;var E=By(d,i,e);oy(d,E);break e;case 1:i=l;var k=d.type,$=d.stateNode;if(!(d.flags&64)&&(typeof k.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(Et===null||!Et.has($)))){d.flags|=4096,e&=-e,d.lanes|=e;var R=Hy(d,i,e);oy(d,R);break e}}d=d.return}while(d!==null)}n0(n)}catch(C){e=C,me===n&&n!==null&&(me=n=n.return);continue}break}while(1)}function e0(){var t=$a.current;return $a.current=ba,t===null?ba:t}function Ri(t,e){var n=z;z|=16;var o=e0();Be===t&&Pe===e||rr(t,e);do try{b$();break}catch(r){Xy(t,r)}while(1);if(Mc(),z=n,$a.current=o,me!==null)throw Error(A(261));return Be=null,Pe=0,Ee}function b$(){for(;me!==null;)t0(me)}function x$(){for(;me!==null&&!r$();)t0(me)}function t0(t){var e=i0(t.alternate,t,io);t.memoizedProps=t.pendingProps,e===null?n0(t):me=e,nd.current=null}function n0(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&2048){if(n=p$(e),n!==null){n.flags&=2047,me=n;return}t!==null&&(t.firstEffect=t.lastEffect=null,t.flags|=2048)}else{if(n=f$(n,e,io),n!==null){me=n;return}if(n=e,n.tag!==24&&n.tag!==23||n.memoizedState===null||io&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){me=e;return}me=e=t}while(e!==null);Ee===0&&(Ee=5)}function so(t){var e=qo();return to(99,$$.bind(null,t,e)),null}function $$(t,e){do Cn();while(Ei!==null);if(z&48)throw Error(A(327));var n=t.finishedWork;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(A(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-fn(i),u=1<<l;r[l]=0,s[l]=-1,a[l]=-1,i&=~u}if(Bt!==null&&!(o&24)&&Bt.has(t)&&Bt.delete(t),t===Be&&(me=Be=null,Pe=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,o!==null){if(r=z,z|=32,nd.current=null,Sc=Ks,s=Ng(),hc(s)){if("selectionStart"in s)a={start:s.selectionStart,end:s.selectionEnd};else e:if(a=(a=s.ownerDocument)&&a.defaultView||window,(u=a.getSelection&&a.getSelection())&&u.rangeCount!==0){a=u.anchorNode,i=u.anchorOffset,l=u.focusNode,u=u.focusOffset;try{a.nodeType,l.nodeType}catch{a=null;break e}var c=0,m=-1,d=-1,f=0,p=0,y=s,h=null;t:for(;;){for(var g;y!==a||i!==0&&y.nodeType!==3||(m=c+i),y!==l||u!==0&&y.nodeType!==3||(d=c+u),y.nodeType===3&&(c+=y.nodeValue.length),(g=y.firstChild)!==null;)h=y,y=g;for(;;){if(y===s)break t;if(h===a&&++f===i&&(m=c),h===l&&++p===u&&(d=c),(g=y.nextSibling)!==null)break;y=h,h=y.parentNode}y=g}a=m===-1||d===-1?null:{start:m,end:d}}else a=null;a=a||{start:0,end:0}}else a=null;vc={focusedElem:s,selectionRange:a},Ks=!1,Ai=null,Aa=!1,T=o;do try{C$()}catch(C){if(T===null)throw Error(A(330));En(T,C),T=T.nextEffect}while(T!==null);Ai=null,T=o;do try{for(s=t;T!==null;){var w=T.flags;if(w&16&&_r(T.stateNode,""),w&128){var v=T.alternate;if(v!==null){var b=v.ref;b!==null&&(typeof b=="function"?b(null):b.current=null)}}switch(w&1038){case 2:Ky(T),T.flags&=-3;break;case 6:Ky(T),T.flags&=-3,td(T.alternate,T);break;case 1024:T.flags&=-1025;break;case 1028:T.flags&=-1025,td(T.alternate,T);break;case 4:td(T.alternate,T);break;case 8:a=T,Wy(s,a);var E=a.alternate;_y(a),E!==null&&_y(E)}T=T.nextEffect}}catch(C){if(T===null)throw Error(A(330));En(T,C),T=T.nextEffect}while(T!==null);if(b=vc,v=Ng(),w=b.focusedElem,s=b.selectionRange,v!==w&&w&&w.ownerDocument&&Eg(w.ownerDocument.documentElement,w)){for(s!==null&&hc(w)&&(v=s.start,b=s.end,b===void 0&&(b=v),"selectionStart"in w?(w.selectionStart=v,w.selectionEnd=Math.min(b,w.value.length)):(b=(v=w.ownerDocument||document)&&v.defaultView||window,b.getSelection&&(b=b.getSelection(),a=w.textContent.length,E=Math.min(s.start,a),s=s.end===void 0?E:Math.min(s.end,a),!b.extend&&E>s&&(a=s,s=E,E=a),a=Cg(w,E),i=Cg(w,s),a&&i&&(b.rangeCount!==1||b.anchorNode!==a.node||b.anchorOffset!==a.offset||b.focusNode!==i.node||b.focusOffset!==i.offset)&&(v=v.createRange(),v.setStart(a.node,a.offset),b.removeAllRanges(),E>s?(b.addRange(v),b.extend(i.node,i.offset)):(v.setEnd(i.node,i.offset),b.addRange(v)))))),v=[],b=w;b=b.parentNode;)b.nodeType===1&&v.push({element:b,left:b.scrollLeft,top:b.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<v.length;w++)b=v[w],b.element.scrollLeft=b.left,b.element.scrollTop=b.top}Ks=!!Sc,vc=Sc=null,t.current=n,T=o;do try{for(w=t;T!==null;){var k=T.flags;if(k&36&&w$(w,T.alternate,T),k&128){v=void 0;var $=T.ref;if($!==null){var R=T.stateNode;switch(T.tag){case 5:v=R;break;default:v=R}typeof $=="function"?$(v):$.current=v}}T=T.nextEffect}}catch(C){if(T===null)throw Error(A(330));En(T,C),T=T.nextEffect}while(T!==null);T=null,s$(),z=r}else t.current=n;if(bn)bn=!1,Ei=t,Ni=e;else for(T=o;T!==null;)e=T.nextEffect,T.nextEffect=null,T.flags&8&&(k=T,k.sibling=null,k.stateNode=null),T=e;if(o=t.pendingLanes,o===0&&(Et=null),o===1?t===dd?Oi++:(Oi=0,dd=t):Oi=0,n=n.stateNode,eo&&typeof eo.onCommitFiberRoot=="function")try{eo.onCommitFiberRoot(Cc,n,void 0,(n.current.flags&64)===64)}catch{}if(at(t,Te()),Ea)throw Ea=!1,t=ld,ld=null,t;return z&8||bt(),null}function C$(){for(;T!==null;){var t=T.alternate;Aa||Ai===null||(T.flags&8?Kh(T,Ai)&&(Aa=!0):T.tag===13&&S$(t,T)&&Kh(T,Ai)&&(Aa=!0));var e=T.flags;e&256&&y$(t,T),!(e&512)||bn||(bn=!0,mi(97,function(){return Cn(),null})),T=T.nextEffect}}function Cn(){if(Ni!==90){var t=97<Ni?97:Ni;return Ni=90,to(t,N$)}return!1}function E$(t,e){ud.push(e,t),bn||(bn=!0,mi(97,function(){return Cn(),null}))}function o0(t,e){cd.push(e,t),bn||(bn=!0,mi(97,function(){return Cn(),null}))}function N$(){if(Ei===null)return!1;var t=Ei;if(Ei=null,z&48)throw Error(A(331));var e=z;z|=32;var n=cd;cd=[];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(A(330));En(i,l)}}for(n=ud,ud=[],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(A(330));En(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 z=e,bt(),!0}function r0(t,e,n){e=Qc(n,e),e=By(t,e,1),vn(t,e),e=Ge(),t=Ra(t,1),t!==null&&(Ys(t,1,e),at(t,e))}function En(t,e){if(t.tag===3)r0(t,t,e);else for(var n=t.return;n!==null;){if(n.tag===3){r0(n,t,e);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Et===null||!Et.has(o))){t=Qc(e,t);var r=Hy(n,t,1);if(vn(n,r),r=Ge(),n=Ra(n,1),n!==null)Ys(n,1,r),at(n,r);else if(typeof o.componentDidCatch=="function"&&(Et===null||!Et.has(o)))try{o.componentDidCatch(e,t)}catch{}break}}n=n.return}}function O$(t,e,n){var o=t.pingCache;o!==null&&o.delete(e),e=Ge(),t.pingedLanes|=t.suspendedLanes&n,Be===t&&(Pe&n)===n&&(Ee===4||Ee===3&&(Pe&62914560)===Pe&&500>Te()-sd?rr(t,0):rd|=n),at(t,e)}function A$(t,e){var n=t.stateNode;n!==null&&n.delete(e),e=0,e===0&&(e=t.mode,e&2?e&4?(Ht===0&&(Ht=er),e=Fo(62914560&~Ht),e===0&&(e=4194304)):e=qo()===99?1:2:e=1),n=Ge(),t=Ra(t,e),t!==null&&(Ys(t,e,n),at(t,n))}var i0;i0=function(t,e,n){var o=e.lanes;if(t!==null)if(t.memoizedProps!==e.pendingProps||Ue.current)gt=!0;else if(n&o)gt=!!(t.flags&16384);else{switch(gt=!1,e.tag){case 3:Ry(e),zc();break;case 5:dy(e);break;case 1:Je(e.type)&&ia(e);break;case 4:Pc(e,e.stateNode.containerInfo);break;case 10:o=e.memoizedProps.value;var r=e.type._context;oe(la,r._currentValue),r._currentValue=o;break;case 13:if(e.memoizedState!==null)return n&e.child.childLanes?My(t,e,n):(oe(re,re.current&1),e=Ft(t,e,n),e!==null?e.sibling:null);oe(re,re.current&1);break;case 19:if(o=(n&e.childLanes)!==0,t.flags&64){if(o)return Iy(t,e,n);e.flags|=64}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),oe(re,re.current),o)break;return null;case 23:case 24:return e.lanes=0,Yc(t,e,n)}return Ft(t,e,n)}else gt=!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=Wo(e,De.current),Qo(e,n),r=Hc(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,Je(o)){var i=!0;ia(e)}else i=!1;e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,Tc(e);var s=o.getDerivedStateFromProps;typeof s=="function"&&da(e,o,s,t),r.updater=ma,e.stateNode=r,r._reactInternals=e,jc(e,o,t,n),e=Wc(null,e,o,!0,i,n)}else e.tag=0,Ye(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=M$(r),t=ht(r,t),i){case 0:e=Kc(null,e,r,t,n);break e;case 1:e=Ay(null,e,r,t,n);break e;case 11:e=Cy(null,e,r,t,n);break e;case 14:e=Ey(null,e,r,ht(r.type,t),o,n);break e}throw Error(A(306,r,""))}return e;case 0:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:ht(o,r),Kc(t,e,o,r,n);case 1:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:ht(o,r),Ay(t,e,o,r,n);case 3:if(Ry(e),o=e.updateQueue,t===null||o===null)throw Error(A(282));if(o=e.pendingProps,r=e.memoizedState,r=r!==null?r.element:null,ny(t,e),fi(e,o,null,n),o=e.memoizedState.element,o===r)zc(),e=Ft(t,e,n);else{if(r=e.stateNode,(i=r.hydrate)&&(kn=Jo(e.stateNode.containerInfo.firstChild),zt=e,i=$t=!0),i){if(t=r.mutableSourceEagerHydrationData,t!=null)for(r=0;r<t.length;r+=2)i=t[r],i._workInProgressVersionPrimary=t[r+1],Xo.push(i);for(n=cy(e,null,o,n),e.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else Ye(t,e,o,n),zc();e=e.child}return e;case 5:return dy(e),t===null&&Lc(e),o=e.type,r=e.pendingProps,i=t!==null?t.memoizedProps:null,s=r.children,kc(o,r)?s=null:i!==null&&kc(o,i)&&(e.flags|=16),Oy(t,e),Ye(t,e,s,n),e.child;case 6:return t===null&&Lc(e),null;case 13:return My(t,e,n);case 4:return Pc(e,e.stateNode.containerInfo),o=e.pendingProps,t===null?e.child=ha(e,null,o,n):Ye(t,e,o,n),e.child;case 11:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:ht(o,r),Cy(t,e,o,r,n);case 7:return Ye(t,e,e.pendingProps,n),e.child;case 8:return Ye(t,e,e.pendingProps.children,n),e.child;case 12:return Ye(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(oe(la,a._currentValue),a._currentValue=i,s!==null)if(a=s.value,i=rt(a,i)?0:(typeof o._calculateChangedBits=="function"?o._calculateChangedBits(a,i):1073741823)|0,i===0){if(s.children===r.children&&!Ue.current){e=Ft(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 u=l.firstContext;u!==null;){if(u.context===o&&u.observedBits&i){a.tag===1&&(u=Sn(-1,n&-n),u.tag=2,vn(a,u)),a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),ty(a.return,n),l.lanes|=n;break}u=u.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}Ye(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,i=e.pendingProps,o=i.children,Qo(e,n),r=it(r,i.unstable_observedBits),o=o(r),e.flags|=1,Ye(t,e,o,n),e.child;case 14:return r=e.type,i=ht(r,e.pendingProps),i=ht(r.type,i),Ey(t,e,r,i,o,n);case 15:return Ny(t,e,e.type,e.pendingProps,o,n);case 17:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:ht(o,r),t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),e.tag=1,Je(o)?(t=!0,ia(e)):t=!1,Qo(e,n),ay(e,o,r),jc(e,o,r,n),Wc(null,e,o,!0,t,n);case 19:return Iy(t,e,n);case 23:return Yc(t,e,n);case 24:return Yc(t,e,n)}throw Error(A(156,e.tag))};function R$(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 lt(t,e,n,o){return new R$(t,e,n,o)}function pd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function M$(t){if(typeof t=="function")return pd(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Ts)return 11;if(t===Ps)return 14}return 2}function Nn(t,e){var n=t.alternate;return n===null?(n=lt(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 Da(t,e,n,o,r,i){var s=2;if(o=t,typeof t=="function")pd(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case ln:return ir(n.children,r,i,e);case Ch:s=8,r|=16;break;case $u:s=8,r|=1;break;case Hr:return t=lt(12,n,e,r|8),t.elementType=Hr,t.type=Hr,t.lanes=i,t;case Vr:return t=lt(13,n,e,r),t.type=Vr,t.elementType=Vr,t.lanes=i,t;case js:return t=lt(19,n,e,r),t.elementType=js,t.lanes=i,t;case Ru:return hd(n,r,i,e);case Mu:return t=lt(24,n,e,r),t.elementType=Mu,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Cu:s=10;break e;case Eu:s=9;break e;case Ts:s=11;break e;case Ps:s=14;break e;case Nu:s=16,o=null;break e;case Ou:s=22;break e}throw Error(A(130,t==null?t:typeof t,""))}return e=lt(s,n,e,r),e.elementType=t,e.type=o,e.lanes=i,e}function ir(t,e,n,o){return t=lt(7,t,o,e),t.lanes=n,t}function hd(t,e,n,o){return t=lt(23,t,o,e),t.elementType=Ru,t.lanes=n,t}function gd(t,e,n){return t=lt(6,t,null,e),t.lanes=n,t}function yd(t,e,n){return e=lt(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function D$(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=oc(0),this.expirationTimes=oc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=oc(0),this.mutableSourceEagerHydrationData=null}function T$(t,e,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:qn,key:o==null?null:""+o,children:t,containerInfo:e,implementation:n}}function Ta(t,e,n,o){var r=e.current,i=Ge(),s=xn(r);e:if(n){n=n._reactInternals;t:{if(Qn(n)!==n||n.tag!==1)throw Error(A(170));var a=n;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(Je(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(a!==null);throw Error(A(171))}if(n.tag===1){var l=n.type;if(Je(l)){n=_g(n,l,a);break e}}n=a}else n=yn;return e.context===null?e.context=n:e.pendingContext=n,e=Sn(i,s),e.payload={element:t},o=o===void 0?null:o,o!==null&&(e.callback=o),vn(r,e),$n(r,s,i),s}function wd(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 s0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Sd(t,e){s0(t,e),(t=t.alternate)&&s0(t,e)}function j$(){return null}function vd(t,e,n){var o=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new D$(t,e,n!=null&&n.hydrate===!0),e=lt(3,null,null,e===2?7:e===1?3:0),n.current=e,e.stateNode=n,Tc(e),t[_o]=n.current,jg(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}vd.prototype.render=function(t){Ta(t,this._internalRoot,null,null)},vd.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;Ta(null,t,null,function(){e[_o]=null})};function Mi(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function P$(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 vd(t,0,e?{hydrate:!0}:void 0)}function ja(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 u=wd(s);a.call(u)}}Ta(e,s,t,r)}else{if(i=n._reactRootContainer=P$(n,o),s=i._internalRoot,typeof r=="function"){var l=r;r=function(){var u=wd(s);l.call(u)}}Zy(function(){Ta(e,s,t,r)})}return wd(s)}Wh=function(t){if(t.tag===13){var e=Ge();$n(t,4,e),Sd(t,4)}},Qu=function(t){if(t.tag===13){var e=Ge();$n(t,67108864,e),Sd(t,67108864)}},qh=function(t){if(t.tag===13){var e=Ge(),n=xn(t);$n(t,n,e),Sd(t,n)}},Gh=function(t,e){return e()},Ju=function(t,e,n){switch(e){case"input":if(Pu(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=oa(o);if(!r)throw Error(A(90));Oh(o),Pu(o,r)}}}break;case"textarea":Th(t,n);break;case"select":e=n.value,e!=null&&jo(t,!!n.multiple,e,!1)}},_u=Qy,Vh=function(t,e,n,o,r){var i=z;z|=4;try{return to(98,t.bind(null,e,n,o,r))}finally{z=i,z===0&&(nr(),bt())}},Yu=function(){!(z&49)&&(k$(),Cn())},Uh=function(t,e){var n=z;z|=2;try{return t(e)}finally{z=n,z===0&&(nr(),bt())}};function a0(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Mi(e))throw Error(A(200));return T$(t,e,null,n)}var I$={Events:[di,Yo,oa,Bh,Hh,Cn,{current:!1}]},Di={findFiberByHostInstance:Zn,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},L$={bundleType:Di.bundleType,version:Di.version,rendererPackageName:Di.rendererPackageName,rendererConfig:Di.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Wn.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Yh(t),t===null?null:t.stateNode},findFiberByHostInstance:Di.findFiberByHostInstance||j$,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pa=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pa.isDisabled&&Pa.supportsFiber)try{Cc=Pa.inject(L$),eo=Pa}catch{}}ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I$,ot.createPortal=a0,ot.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(A(188)):Error(A(268,Object.keys(t)));return t=Yh(e),t=t===null?null:t.stateNode,t},ot.flushSync=function(t,e){var n=z;if(n&48)return t(e);z|=1;try{if(t)return to(99,t.bind(null,e))}finally{z=n,bt()}},ot.hydrate=function(t,e,n){if(!Mi(e))throw Error(A(200));return ja(null,t,e,!0,n)},ot.render=function(t,e,n){if(!Mi(e))throw Error(A(200));return ja(null,t,e,!1,n)},ot.unmountComponentAtNode=function(t){if(!Mi(t))throw Error(A(40));return t._reactRootContainer?(Zy(function(){ja(null,null,t,!1,function(){t._reactRootContainer=null,t[_o]=null})}),!0):!1},ot.unstable_batchedUpdates=Qy,ot.unstable_createPortal=function(t,e){return a0(t,e,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},ot.unstable_renderSubtreeIntoContainer=function(t,e,n,o){if(!Mi(n))throw Error(A(200));if(t==null||t._reactInternals===void 0)throw Error(A(38));return ja(t,e,n,!1,o)},ot.version="17.0.2";function l0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l0)}catch(t){console.error(t)}}l0(),wh.exports=ot;var kd=wh.exports;const u0=Qe(kd);function z$(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var c0={exports:{}},bd={};/**
129
+ Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Ne!==5&&(Ne=2),l=Zc(l,a),d=s;do{switch(d.tag){case 3:i=l,d.flags|=4096,e&=-e,d.lanes|=e;var E=Vy(d,i,e);iy(d,E);break e;case 1:i=l;var b=d.type,$=d.stateNode;if(!(d.flags&64)&&(typeof b.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(Nt===null||!Nt.has($)))){d.flags|=4096,e&=-e,d.lanes|=e;var R=Uy(d,i,e);iy(d,R);break e}}d=d.return}while(d!==null)}r0(n)}catch(C){e=C,fe===n&&n!==null&&(fe=n=n.return);continue}break}while(1)}function n0(){var t=Ca.current;return Ca.current=xa,t===null?xa:t}function Mi(t,e){var n=z;z|=16;var o=n0();He===t&&Ie===e||ir(t,e);do try{x$();break}catch(r){t0(t,r)}while(1);if(Dc(),z=n,Ca.current=o,fe!==null)throw Error(A(261));return He=null,Ie=0,Ne}function x$(){for(;fe!==null;)o0(fe)}function $$(){for(;fe!==null&&!i$();)o0(fe)}function o0(t){var e=a0(t.alternate,t,so);t.memoizedProps=t.pendingProps,e===null?r0(t):fe=e,od.current=null}function r0(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&2048){if(n=h$(e),n!==null){n.flags&=2047,fe=n;return}t!==null&&(t.firstEffect=t.lastEffect=null,t.flags|=2048)}else{if(n=p$(n,e,so),n!==null){fe=n;return}if(n=e,n.tag!==24&&n.tag!==23||n.memoizedState===null||so&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){fe=e;return}fe=e=t}while(e!==null);Ne===0&&(Ne=5)}function ao(t){var e=Go();return no(99,C$.bind(null,t,e)),null}function C$(t,e){do En();while(Ni!==null);if(z&48)throw Error(A(327));var n=t.finishedWork;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(A(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-pn(i),u=1<<l;r[l]=0,s[l]=-1,a[l]=-1,i&=~u}if(Ht!==null&&!(o&24)&&Ht.has(t)&&Ht.delete(t),t===He&&(fe=He=null,Ie=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,o!==null){if(r=z,z|=32,od.current=null,vc=Ws,s=Ag(),gc(s)){if("selectionStart"in s)a={start:s.selectionStart,end:s.selectionEnd};else e:if(a=(a=s.ownerDocument)&&a.defaultView||window,(u=a.getSelection&&a.getSelection())&&u.rangeCount!==0){a=u.anchorNode,i=u.anchorOffset,l=u.focusNode,u=u.focusOffset;try{a.nodeType,l.nodeType}catch{a=null;break e}var c=0,m=-1,d=-1,f=0,p=0,y=s,h=null;t:for(;;){for(var g;y!==a||i!==0&&y.nodeType!==3||(m=c+i),y!==l||u!==0&&y.nodeType!==3||(d=c+u),y.nodeType===3&&(c+=y.nodeValue.length),(g=y.firstChild)!==null;)h=y,y=g;for(;;){if(y===s)break t;if(h===a&&++f===i&&(m=c),h===l&&++p===u&&(d=c),(g=y.nextSibling)!==null)break;y=h,h=y.parentNode}y=g}a=m===-1||d===-1?null:{start:m,end:d}}else a=null;a=a||{start:0,end:0}}else a=null;bc={focusedElem:s,selectionRange:a},Ws=!1,Ri=null,Ra=!1,T=o;do try{E$()}catch(C){if(T===null)throw Error(A(330));Nn(T,C),T=T.nextEffect}while(T!==null);Ri=null,T=o;do try{for(s=t;T!==null;){var w=T.flags;if(w&16&&Yr(T.stateNode,""),w&128){var v=T.alternate;if(v!==null){var k=v.ref;k!==null&&(typeof k=="function"?k(null):k.current=null)}}switch(w&1038){case 2:qy(T),T.flags&=-3;break;case 6:qy(T),T.flags&=-3,nd(T.alternate,T);break;case 1024:T.flags&=-1025;break;case 1028:T.flags&=-1025,nd(T.alternate,T);break;case 4:nd(T.alternate,T);break;case 8:a=T,Gy(s,a);var E=a.alternate;Ky(a),E!==null&&Ky(E)}T=T.nextEffect}}catch(C){if(T===null)throw Error(A(330));Nn(T,C),T=T.nextEffect}while(T!==null);if(k=bc,v=Ag(),w=k.focusedElem,s=k.selectionRange,v!==w&&w&&w.ownerDocument&&Og(w.ownerDocument.documentElement,w)){for(s!==null&&gc(w)&&(v=s.start,k=s.end,k===void 0&&(k=v),"selectionStart"in w?(w.selectionStart=v,w.selectionEnd=Math.min(k,w.value.length)):(k=(v=w.ownerDocument||document)&&v.defaultView||window,k.getSelection&&(k=k.getSelection(),a=w.textContent.length,E=Math.min(s.start,a),s=s.end===void 0?E:Math.min(s.end,a),!k.extend&&E>s&&(a=s,s=E,E=a),a=Ng(w,E),i=Ng(w,s),a&&i&&(k.rangeCount!==1||k.anchorNode!==a.node||k.anchorOffset!==a.offset||k.focusNode!==i.node||k.focusOffset!==i.offset)&&(v=v.createRange(),v.setStart(a.node,a.offset),k.removeAllRanges(),E>s?(k.addRange(v),k.extend(i.node,i.offset)):(v.setEnd(i.node,i.offset),k.addRange(v)))))),v=[],k=w;k=k.parentNode;)k.nodeType===1&&v.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<v.length;w++)k=v[w],k.element.scrollLeft=k.left,k.element.scrollTop=k.top}Ws=!!vc,bc=vc=null,t.current=n,T=o;do try{for(w=t;T!==null;){var b=T.flags;if(b&36&&S$(w,T.alternate,T),b&128){v=void 0;var $=T.ref;if($!==null){var R=T.stateNode;switch(T.tag){case 5:v=R;break;default:v=R}typeof $=="function"?$(v):$.current=v}}T=T.nextEffect}}catch(C){if(T===null)throw Error(A(330));Nn(T,C),T=T.nextEffect}while(T!==null);T=null,a$(),z=r}else t.current=n;if(xn)xn=!1,Ni=t,Oi=e;else for(T=o;T!==null;)e=T.nextEffect,T.nextEffect=null,T.flags&8&&(b=T,b.sibling=null,b.stateNode=null),T=e;if(o=t.pendingLanes,o===0&&(Nt=null),o===1?t===md?Ai++:(Ai=0,md=t):Ai=0,n=n.stateNode,to&&typeof to.onCommitFiberRoot=="function")try{to.onCommitFiberRoot(Ec,n,void 0,(n.current.flags&64)===64)}catch{}if(lt(t,je()),Na)throw Na=!1,t=ud,ud=null,t;return z&8||xt(),null}function E$(){for(;T!==null;){var t=T.alternate;Ra||Ri===null||(T.flags&8?qh(T,Ri)&&(Ra=!0):T.tag===13&&v$(t,T)&&qh(T,Ri)&&(Ra=!0));var e=T.flags;e&256&&w$(t,T),!(e&512)||xn||(xn=!0,fi(97,function(){return En(),null})),T=T.nextEffect}}function En(){if(Oi!==90){var t=97<Oi?97:Oi;return Oi=90,no(t,O$)}return!1}function N$(t,e){cd.push(e,t),xn||(xn=!0,fi(97,function(){return En(),null}))}function i0(t,e){dd.push(e,t),xn||(xn=!0,fi(97,function(){return En(),null}))}function O$(){if(Ni===null)return!1;var t=Ni;if(Ni=null,z&48)throw Error(A(331));var e=z;z|=32;var n=dd;dd=[];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(A(330));Nn(i,l)}}for(n=cd,cd=[],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(A(330));Nn(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 z=e,xt(),!0}function s0(t,e,n){e=Zc(n,e),e=Vy(t,e,1),bn(t,e),e=Qe(),t=Ma(t,1),t!==null&&(Ks(t,1,e),lt(t,e))}function Nn(t,e){if(t.tag===3)s0(t,t,e);else for(var n=t.return;n!==null;){if(n.tag===3){s0(n,t,e);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Nt===null||!Nt.has(o))){t=Zc(e,t);var r=Uy(n,t,1);if(bn(n,r),r=Qe(),n=Ma(n,1),n!==null)Ks(n,1,r),lt(n,r);else if(typeof o.componentDidCatch=="function"&&(Nt===null||!Nt.has(o)))try{o.componentDidCatch(e,t)}catch{}break}}n=n.return}}function A$(t,e,n){var o=t.pingCache;o!==null&&o.delete(e),e=Qe(),t.pingedLanes|=t.suspendedLanes&n,He===t&&(Ie&n)===n&&(Ne===4||Ne===3&&(Ie&62914560)===Ie&&500>je()-ad?ir(t,0):id|=n),lt(t,e)}function R$(t,e){var n=t.stateNode;n!==null&&n.delete(e),e=0,e===0&&(e=t.mode,e&2?e&4?(Vt===0&&(Vt=tr),e=Bo(62914560&~Vt),e===0&&(e=4194304)):e=Go()===99?1:2:e=1),n=Qe(),t=Ma(t,e),t!==null&&(Ks(t,e,n),lt(t,n))}var a0;a0=function(t,e,n){var o=e.lanes;if(t!==null)if(t.memoizedProps!==e.pendingProps||Je.current)yt=!0;else if(n&o)yt=!!(t.flags&16384);else{switch(yt=!1,e.tag){case 3:Dy(e),Fc();break;case 5:fy(e);break;case 1:_e(e.type)&&sa(e);break;case 4:Ic(e,e.stateNode.containerInfo);break;case 10:o=e.memoizedProps.value;var r=e.type._context;re(ua,r._currentValue),r._currentValue=o;break;case 13:if(e.memoizedState!==null)return n&e.child.childLanes?Ty(t,e,n):(re(ie,ie.current&1),e=Bt(t,e,n),e!==null?e.sibling:null);re(ie,ie.current&1);break;case 19:if(o=(n&e.childLanes)!==0,t.flags&64){if(o)return zy(t,e,n);e.flags|=64}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),re(ie,ie.current),o)break;return null;case 23:case 24:return e.lanes=0,Kc(t,e,n)}return Bt(t,e,n)}else yt=!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=qo(e,Te.current),Zo(e,n),r=Vc(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,_e(o)){var i=!0;sa(e)}else i=!1;e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,jc(e);var s=o.getDerivedStateFromProps;typeof s=="function"&&ma(e,o,s,t),r.updater=fa,e.stateNode=r,r._reactInternals=e,Pc(e,o,t,n),e=qc(null,e,o,!0,i,n)}else e.tag=0,Ke(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=D$(r),t=gt(r,t),i){case 0:e=Wc(null,e,r,t,n);break e;case 1:e=My(null,e,r,t,n);break e;case 11:e=Ny(null,e,r,t,n);break e;case 14:e=Oy(null,e,r,gt(r.type,t),o,n);break e}throw Error(A(306,r,""))}return e;case 0:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:gt(o,r),Wc(t,e,o,r,n);case 1:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:gt(o,r),My(t,e,o,r,n);case 3:if(Dy(e),o=e.updateQueue,t===null||o===null)throw Error(A(282));if(o=e.pendingProps,r=e.memoizedState,r=r!==null?r.element:null,ry(t,e),pi(e,o,null,n),o=e.memoizedState.element,o===r)Fc(),e=Bt(t,e,n);else{if(r=e.stateNode,(i=r.hydrate)&&(kn=_o(e.stateNode.containerInfo.firstChild),Ft=e,i=Ct=!0),i){if(t=r.mutableSourceEagerHydrationData,t!=null)for(r=0;r<t.length;r+=2)i=t[r],i._workInProgressVersionPrimary=t[r+1],er.push(i);for(n=my(e,null,o,n),e.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else Ke(t,e,o,n),Fc();e=e.child}return e;case 5:return fy(e),t===null&&zc(e),o=e.type,r=e.pendingProps,i=t!==null?t.memoizedProps:null,s=r.children,kc(o,r)?s=null:i!==null&&kc(o,i)&&(e.flags|=16),Ry(t,e),Ke(t,e,s,n),e.child;case 6:return t===null&&zc(e),null;case 13:return Ty(t,e,n);case 4:return Ic(e,e.stateNode.containerInfo),o=e.pendingProps,t===null?e.child=ga(e,null,o,n):Ke(t,e,o,n),e.child;case 11:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:gt(o,r),Ny(t,e,o,r,n);case 7:return Ke(t,e,e.pendingProps,n),e.child;case 8:return Ke(t,e,e.pendingProps.children,n),e.child;case 12:return Ke(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(re(ua,a._currentValue),a._currentValue=i,s!==null)if(a=s.value,i=it(a,i)?0:(typeof o._calculateChangedBits=="function"?o._calculateChangedBits(a,i):1073741823)|0,i===0){if(s.children===r.children&&!Je.current){e=Bt(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 u=l.firstContext;u!==null;){if(u.context===o&&u.observedBits&i){a.tag===1&&(u=vn(-1,n&-n),u.tag=2,bn(a,u)),a.lanes|=n,u=a.alternate,u!==null&&(u.lanes|=n),oy(a.return,n),l.lanes|=n;break}u=u.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}Ke(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,i=e.pendingProps,o=i.children,Zo(e,n),r=st(r,i.unstable_observedBits),o=o(r),e.flags|=1,Ke(t,e,o,n),e.child;case 14:return r=e.type,i=gt(r,e.pendingProps),i=gt(r.type,i),Oy(t,e,r,i,o,n);case 15:return Ay(t,e,e.type,e.pendingProps,o,n);case 17:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:gt(o,r),t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),e.tag=1,_e(o)?(t=!0,sa(e)):t=!1,Zo(e,n),uy(e,o,r),Pc(e,o,r,n),qc(null,e,o,!0,t,n);case 19:return zy(t,e,n);case 23:return Kc(t,e,n);case 24:return Kc(t,e,n)}throw Error(A(156,e.tag))};function M$(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 ut(t,e,n,o){return new M$(t,e,n,o)}function hd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function D$(t){if(typeof t=="function")return hd(t)?1:0;if(t!=null){if(t=t.$$typeof,t===js)return 11;if(t===Is)return 14}return 2}function On(t,e){var n=t.alternate;return n===null?(n=ut(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 Ta(t,e,n,o,r,i){var s=2;if(o=t,typeof t=="function")hd(t)&&(s=1);else if(typeof t=="string")s=5;else e:switch(t){case un:return sr(n.children,r,i,e);case Nh:s=8,r|=16;break;case Cu:s=8,r|=1;break;case Vr:return t=ut(12,n,e,r|8),t.elementType=Vr,t.type=Vr,t.lanes=i,t;case Ur:return t=ut(13,n,e,r),t.type=Ur,t.elementType=Ur,t.lanes=i,t;case Ps:return t=ut(19,n,e,r),t.elementType=Ps,t.lanes=i,t;case Mu:return gd(n,r,i,e);case Du:return t=ut(24,n,e,r),t.elementType=Du,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 js:s=11;break e;case Is:s=14;break e;case Ou:s=16,o=null;break e;case Au:s=22;break e}throw Error(A(130,t==null?t:typeof t,""))}return e=ut(s,n,e,r),e.elementType=t,e.type=o,e.lanes=i,e}function sr(t,e,n,o){return t=ut(7,t,o,e),t.lanes=n,t}function gd(t,e,n,o){return t=ut(23,t,o,e),t.elementType=Mu,t.lanes=n,t}function yd(t,e,n){return t=ut(6,t,null,e),t.lanes=n,t}function wd(t,e,n){return e=ut(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function T$(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=rc(0),this.expirationTimes=rc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rc(0),this.mutableSourceEagerHydrationData=null}function j$(t,e,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Gn,key:o==null?null:""+o,children:t,containerInfo:e,implementation:n}}function ja(t,e,n,o){var r=e.current,i=Qe(),s=$n(r);e:if(n){n=n._reactInternals;t:{if(Zn(n)!==n||n.tag!==1)throw Error(A(170));var a=n;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(_e(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(a!==null);throw Error(A(171))}if(n.tag===1){var l=n.type;if(_e(l)){n=Kg(n,l,a);break e}}n=a}else n=wn;return e.context===null?e.context=n:e.pendingContext=n,e=vn(i,s),e.payload={element:t},o=o===void 0?null:o,o!==null&&(e.callback=o),bn(r,e),Cn(r,s,i),s}function Sd(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 l0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function vd(t,e){l0(t,e),(t=t.alternate)&&l0(t,e)}function P$(){return null}function bd(t,e,n){var o=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new T$(t,e,n!=null&&n.hydrate===!0),e=ut(3,null,null,e===2?7:e===1?3:0),n.current=e,e.stateNode=n,jc(e),t[Yo]=n.current,Ig(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}bd.prototype.render=function(t){ja(t,this._internalRoot,null,null)},bd.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;ja(null,t,null,function(){e[Yo]=null})};function Di(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function I$(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 bd(t,0,e?{hydrate:!0}:void 0)}function Pa(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 u=Sd(s);a.call(u)}}ja(e,s,t,r)}else{if(i=n._reactRootContainer=I$(n,o),s=i._internalRoot,typeof r=="function"){var l=r;r=function(){var u=Sd(s);l.call(u)}}e0(function(){ja(e,s,t,r)})}return Sd(s)}Gh=function(t){if(t.tag===13){var e=Qe();Cn(t,4,e),vd(t,4)}},Zu=function(t){if(t.tag===13){var e=Qe();Cn(t,67108864,e),vd(t,67108864)}},Qh=function(t){if(t.tag===13){var e=Qe(),n=$n(t);Cn(t,n,e),vd(t,n)}},Zh=function(t,e){return e()},_u=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=ra(o);if(!r)throw Error(A(90));Rh(o),Iu(o,r)}}}break;case"textarea":Ph(t,n);break;case"select":e=n.value,e!=null&&Po(t,!!n.multiple,e,!1)}},Yu=Xy,Jh=function(t,e,n,o,r){var i=z;z|=4;try{return no(98,t.bind(null,e,n,o,r))}finally{z=i,z===0&&(or(),xt())}},Ku=function(){!(z&49)&&(k$(),En())},_h=function(t,e){var n=z;z|=2;try{return t(e)}finally{z=n,z===0&&(or(),xt())}};function u0(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Di(e))throw Error(A(200));return j$(t,e,null,n)}var L$={Events:[mi,Ko,ra,Vh,Uh,En,{current:!1}]},Ti={findFiberByHostInstance:Xn,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},z$={bundleType:Ti.bundleType,version:Ti.version,rendererPackageName:Ti.rendererPackageName,rendererConfig:Ti.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:qn.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Wh(t),t===null?null:t.stateNode},findFiberByHostInstance:Ti.findFiberByHostInstance||P$,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ia=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ia.isDisabled&&Ia.supportsFiber)try{Ec=Ia.inject(z$),to=Ia}catch{}}rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L$,rt.createPortal=u0,rt.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(A(188)):Error(A(268,Object.keys(t)));return t=Wh(e),t=t===null?null:t.stateNode,t},rt.flushSync=function(t,e){var n=z;if(n&48)return t(e);z|=1;try{if(t)return no(99,t.bind(null,e))}finally{z=n,xt()}},rt.hydrate=function(t,e,n){if(!Di(e))throw Error(A(200));return Pa(null,t,e,!0,n)},rt.render=function(t,e,n){if(!Di(e))throw Error(A(200));return Pa(null,t,e,!1,n)},rt.unmountComponentAtNode=function(t){if(!Di(t))throw Error(A(40));return t._reactRootContainer?(e0(function(){Pa(null,null,t,!1,function(){t._reactRootContainer=null,t[Yo]=null})}),!0):!1},rt.unstable_batchedUpdates=Xy,rt.unstable_createPortal=function(t,e){return u0(t,e,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},rt.unstable_renderSubtreeIntoContainer=function(t,e,n,o){if(!Di(n))throw Error(A(200));if(t==null||t._reactInternals===void 0)throw Error(A(38));return Pa(t,e,n,!1,o)},rt.version="17.0.2";function c0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c0)}catch(t){console.error(t)}}c0(),vh.exports=rt;var kd=vh.exports;const d0=Ze(kd);function F$(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var m0={exports:{}},xd={};/**
130
130
  * @license React
131
131
  * use-sync-external-store-shim.production.min.js
132
132
  *
@@ -134,7 +134,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
134
134
  *
135
135
  * This source code is licensed under the MIT license found in the
136
136
  * LICENSE file in the root directory of this source tree.
137
- */var d0;function F$(){if(d0)return bd;d0=1;var t=H;function e(m,d){return m===d&&(m!==0||1/m===1/d)||m!==m&&d!==d}var n=typeof Object.is=="function"?Object.is:e,o=t.useState,r=t.useEffect,i=t.useLayoutEffect,s=t.useDebugValue;function a(m,d){var f=d(),p=o({inst:{value:f,getSnapshot:d}}),y=p[0].inst,h=p[1];return i(function(){y.value=f,y.getSnapshot=d,l(y)&&h({inst:y})},[m,f,d]),r(function(){return l(y)&&h({inst:y}),m(function(){l(y)&&h({inst:y})})},[m]),s(f),f}function l(m){var d=m.getSnapshot;m=m.value;try{var f=d();return!n(m,f)}catch{return!0}}function u(m,d){return d()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return bd.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:c,bd}c0.exports=F$();var xd=c0.exports;const B$=(...t)=>e=>{t.forEach(n=>{typeof n=="function"?n(e):n&&(n.current=e)})},H$=({contentComponent:t})=>{const e=xd.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return H.createElement(H.Fragment,null,Object.values(e))};function V$(){const t=new Set;let e={};return{subscribe(n){return t.add(n),()=>{t.delete(n)}},getSnapshot(){return e},getServerSnapshot(){return e},setRenderer(n,o){e={...e,[n]:u0.createPortal(o.reactElement,o.element,n)},t.forEach(r=>r())},removeRenderer(n){const o={...e};delete o[n],e=o,t.forEach(r=>r())}}}class U$ extends H.Component{constructor(e){var n;super(e),this.editorContentRef=H.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!(!((n=e.editor)===null||n===void 0)&&n.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){const e=this.props.editor;if(e&&!e.isDestroyed&&e.options.element){if(e.contentComponent)return;const n=this.editorContentRef.current;n.append(...e.options.element.childNodes),e.setOptions({element:n}),e.contentComponent=V$(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=e.contentComponent.subscribe(()=>{this.setState(o=>o.hasContentComponentInitialized?o:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),e.createNodeViews(),this.initialized=!0}}componentWillUnmount(){const e=this.props.editor;if(!e||(this.initialized=!1,e.isDestroyed||e.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),e.contentComponent=null,!e.options.element.firstChild))return;const n=document.createElement("div");n.append(...e.options.element.childNodes),e.setOptions({element:n})}render(){const{editor:e,innerRef:n,...o}=this.props;return H.createElement(H.Fragment,null,H.createElement("div",{ref:B$(n,this.editorContentRef),...o}),(e==null?void 0:e.contentComponent)&&H.createElement(H$,{contentComponent:e.contentComponent}))}}const J$=x.forwardRef((t,e)=>{const n=H.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[t.editor]);return H.createElement(U$,{key:n,innerRef:e,...t})}),_$=H.memo(J$);var Y$=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var o,r,i;if(Array.isArray(e)){if(o=e.length,o!=n.length)return!1;for(r=o;r--!==0;)if(!t(e[r],n[r]))return!1;return!0}if(e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(r of e.entries())if(!n.has(r[0]))return!1;for(r of e.entries())if(!t(r[1],n.get(r[0])))return!1;return!0}if(e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(r of e.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(n)){if(o=e.length,o!=n.length)return!1;for(r=o;r--!==0;)if(e[r]!==n[r])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(i=Object.keys(e),o=i.length,o!==Object.keys(n).length)return!1;for(r=o;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;r--!==0;){var s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n},K$=z$(Y$),m0={exports:{}},$d={};/**
137
+ */var f0;function B$(){if(f0)return xd;f0=1;var t=V;function e(m,d){return m===d&&(m!==0||1/m===1/d)||m!==m&&d!==d}var n=typeof Object.is=="function"?Object.is:e,o=t.useState,r=t.useEffect,i=t.useLayoutEffect,s=t.useDebugValue;function a(m,d){var f=d(),p=o({inst:{value:f,getSnapshot:d}}),y=p[0].inst,h=p[1];return i(function(){y.value=f,y.getSnapshot=d,l(y)&&h({inst:y})},[m,f,d]),r(function(){return l(y)&&h({inst:y}),m(function(){l(y)&&h({inst:y})})},[m]),s(f),f}function l(m){var d=m.getSnapshot;m=m.value;try{var f=d();return!n(m,f)}catch{return!0}}function u(m,d){return d()}var c=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return xd.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:c,xd}m0.exports=B$();var $d=m0.exports;const H$=(...t)=>e=>{t.forEach(n=>{typeof n=="function"?n(e):n&&(n.current=e)})},V$=({contentComponent:t})=>{const e=$d.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return V.createElement(V.Fragment,null,Object.values(e))};function U$(){const t=new Set;let e={};return{subscribe(n){return t.add(n),()=>{t.delete(n)}},getSnapshot(){return e},getServerSnapshot(){return e},setRenderer(n,o){e={...e,[n]:d0.createPortal(o.reactElement,o.element,n)},t.forEach(r=>r())},removeRenderer(n){const o={...e};delete o[n],e=o,t.forEach(r=>r())}}}class J$ extends V.Component{constructor(e){var n;super(e),this.editorContentRef=V.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!(!((n=e.editor)===null||n===void 0)&&n.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){const e=this.props.editor;if(e&&!e.isDestroyed&&e.options.element){if(e.contentComponent)return;const n=this.editorContentRef.current;n.append(...e.options.element.childNodes),e.setOptions({element:n}),e.contentComponent=U$(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=e.contentComponent.subscribe(()=>{this.setState(o=>o.hasContentComponentInitialized?o:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),e.createNodeViews(),this.initialized=!0}}componentWillUnmount(){const e=this.props.editor;if(!e||(this.initialized=!1,e.isDestroyed||e.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),e.contentComponent=null,!e.options.element.firstChild))return;const n=document.createElement("div");n.append(...e.options.element.childNodes),e.setOptions({element:n})}render(){const{editor:e,innerRef:n,...o}=this.props;return V.createElement(V.Fragment,null,V.createElement("div",{ref:H$(n,this.editorContentRef),...o}),(e==null?void 0:e.contentComponent)&&V.createElement(V$,{contentComponent:e.contentComponent}))}}const _$=x.forwardRef((t,e)=>{const n=V.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[t.editor]);return V.createElement(J$,{key:n,innerRef:e,...t})}),Y$=V.memo(_$);var K$=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var o,r,i;if(Array.isArray(e)){if(o=e.length,o!=n.length)return!1;for(r=o;r--!==0;)if(!t(e[r],n[r]))return!1;return!0}if(e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(r of e.entries())if(!n.has(r[0]))return!1;for(r of e.entries())if(!t(r[1],n.get(r[0])))return!1;return!0}if(e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(r of e.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(n)){if(o=e.length,o!=n.length)return!1;for(r=o;r--!==0;)if(e[r]!==n[r])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(i=Object.keys(e),o=i.length,o!==Object.keys(n).length)return!1;for(r=o;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[r]))return!1;for(r=o;r--!==0;){var s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!t(e[s],n[s]))return!1}return!0}return e!==e&&n!==n},W$=F$(K$),p0={exports:{}},Cd={};/**
138
138
  * @license React
139
139
  * use-sync-external-store-shim/with-selector.production.min.js
140
140
  *
@@ -142,15 +142,15 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
142
142
  *
143
143
  * This source code is licensed under the MIT license found in the
144
144
  * LICENSE file in the root directory of this source tree.
145
- */var f0;function W$(){if(f0)return $d;f0=1;var t=H,e=xd;function n(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}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 $d.useSyncExternalStoreWithSelector=function(u,c,m,d,f){var p=i(null);if(p.current===null){var y={hasValue:!1,value:null};p.current=y}else y=p.current;p=a(function(){function g(k){if(!w){if(w=!0,v=k,k=d(k),f!==void 0&&y.hasValue){var $=y.value;if(f($,k))return b=$}return b=k}if($=b,o(v,k))return $;var R=d(k);return f!==void 0&&f($,R)?$:(v=k,b=R)}var w=!1,v,b,E=m===void 0?null:m;return[function(){return g(c())},E===null?void 0:function(){return g(E())}]},[c,m,d,f]);var h=r(u,p[0],p[1]);return s(function(){y.hasValue=!0,y.value=h},[h]),l(h),h},$d}m0.exports=W$();var q$=m0.exports;class G${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 Q$(t){var e;const[n]=x.useState(()=>new G$(t.editor)),o=q$.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,t.selector,(e=t.equalityFn)!==null&&e!==void 0?e:K$);return x.useEffect(()=>n.watch(t.editor),[t.editor,n]),x.useDebugValue(o),o}const Z$=!1,Cd=typeof window>"u",X$=Cd||!!(typeof window<"u"&&window.next);class eC{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(){if(this.options.current.immediatelyRender===void 0)return Cd||X$?null:this.createEditor();if(this.options.current.immediatelyRender&&Cd&&Z$)throw new Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");return 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 Bb(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&e.length===0?this.editor.setOptions(this.options.current):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 Ed(t={},e=[]){const n=x.useRef(t);n.current=t;const[o]=x.useState(()=>new eC(n)),r=xd.useSyncExternalStore(o.subscribe,o.getEditor,o.getServerSnapshot);return x.useDebugValue(r),x.useEffect(o.onRender(e)),Q$({editor:r,selector:({transactionNumber:i})=>t.shouldRerenderOnTransaction===!1?null:t.immediatelyRender&&i===0?0:i+1}),r}x.createContext({editor:null}).Consumer;const tC=x.createContext({onDragStart:void 0}),nC=()=>x.useContext(tC);H.forwardRef((t,e)=>{const{onDragStart:n}=nC(),o=t.as||"div";return H.createElement(o,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...t.style}})});const Nd=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 oC=Object.defineProperty,rC=(t,e,n)=>e in t?oC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Od=(t,e,n)=>(rC(t,typeof e!="symbol"?e+"":e,n),n);let iC=class{constructor(){Od(this,"current",this.detect()),Od(this,"handoffState","pending"),Od(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"}},Ia=new iC,Ti=(t,e)=>{Ia.isServer?x.useEffect(t,e):x.useLayoutEffect(t,e)};function sr(t){let e=x.useRef(t);return Ti(()=>{e.current=t},[t]),e}let Vt=function(t){let e=sr(t);return H.useCallback((...n)=>e.current(...n),[e])};function sC(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(e=>setTimeout(()=>{throw e}))}function ji(){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 sC(()=>{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=ji();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 p0(){let[t]=x.useState(ji);return x.useEffect(()=>()=>t.dispose(),[t]),t}function aC(){let t=typeof document>"u";return"useSyncExternalStore"in Cm?(e=>e.useSyncExternalStore)(Cm)(()=>()=>{},()=>!1,()=>!t):!1}function h0(){let t=aC(),[e,n]=x.useState(Ia.isHandoffComplete);return e&&Ia.isHandoffComplete===!1&&n(!1),x.useEffect(()=>{e!==!0&&n(!0)},[e]),x.useEffect(()=>Ia.handoff(),[]),t?!1:e}function Nt(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,Nt),o}let lC=Symbol();function g0(...t){let e=x.useRef(t);x.useEffect(()=>{e.current=t},[t]);let n=Vt(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[lC]))?void 0:n}function La(...t){return Array.from(new Set(t.flatMap(e=>typeof e=="string"?e.split(" "):[]))).filter(Boolean).join(" ")}var y0=(t=>(t[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t))(y0||{}),On=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(On||{});function w0({ourProps:t,theirProps:e,slot:n,defaultTag:o,features:r,visible:i=!0,name:s,mergeRefs:a}){a=a??uC;let l=S0(e,t);if(i)return za(l,n,o,s,a);let u=r??0;if(u&2){let{static:c=!1,...m}=l;if(c)return za(m,n,o,s,a)}if(u&1){let{unmount:c=!0,...m}=l;return Nt(c?0:1,{0(){return null},1(){return za({...m,hidden:!0,style:{display:"none"}},n,o,s,a)}})}return za(l,n,o,s,a)}function za(t,e={},n,o,r){let{as:i=n,children:s,refName:a="ref",...l}=Rd(t,["unmount","static"]),u=t.ref!==void 0?{[a]:t.ref}:{},c=typeof s=="function"?s(e):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(e));let m={};if(e){let d=!1,f=[];for(let[p,y]of Object.entries(e))typeof y=="boolean"&&(d=!0),y===!0&&f.push(p);d&&(m["data-headlessui-state"]=f.join(" "))}if(i===x.Fragment&&Object.keys(v0(l)).length>0){if(!x.isValidElement(c)||Array.isArray(c)&&c.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(y=>` - ${y}`).join(`
145
+ */var h0;function q$(){if(h0)return Cd;h0=1;var t=V,e=$d;function n(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}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 Cd.useSyncExternalStoreWithSelector=function(u,c,m,d,f){var p=i(null);if(p.current===null){var y={hasValue:!1,value:null};p.current=y}else y=p.current;p=a(function(){function g(b){if(!w){if(w=!0,v=b,b=d(b),f!==void 0&&y.hasValue){var $=y.value;if(f($,b))return k=$}return k=b}if($=k,o(v,b))return $;var R=d(b);return f!==void 0&&f($,R)?$:(v=b,k=R)}var w=!1,v,k,E=m===void 0?null:m;return[function(){return g(c())},E===null?void 0:function(){return g(E())}]},[c,m,d,f]);var h=r(u,p[0],p[1]);return s(function(){y.hasValue=!0,y.value=h},[h]),l(h),h},Cd}p0.exports=q$();var G$=p0.exports;class Q${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 Z$(t){var e;const[n]=x.useState(()=>new Q$(t.editor)),o=G$.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,t.selector,(e=t.equalityFn)!==null&&e!==void 0?e:W$);return x.useEffect(()=>n.watch(t.editor),[t.editor,n]),x.useDebugValue(o),o}const X$=!1,Ed=typeof window>"u",eC=Ed||!!(typeof window<"u"&&window.next);class tC{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(){if(this.options.current.immediatelyRender===void 0)return Ed||eC?null:this.createEditor();if(this.options.current.immediatelyRender&&Ed&&X$)throw new Error("Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches.");return 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 Hk(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&e.length===0?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 Nd(t={},e=[]){const n=x.useRef(t);n.current=t;const[o]=x.useState(()=>new tC(n)),r=$d.useSyncExternalStore(o.subscribe,o.getEditor,o.getServerSnapshot);return x.useDebugValue(r),x.useEffect(o.onRender(e)),Z$({editor:r,selector:({transactionNumber:i})=>t.shouldRerenderOnTransaction===!1?null:t.immediatelyRender&&i===0?0:i+1}),r}x.createContext({editor:null}).Consumer;const nC=x.createContext({onDragStart:void 0}),oC=()=>x.useContext(nC);V.forwardRef((t,e)=>{const{onDragStart:n}=oC(),o=t.as||"div";return V.createElement(o,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...t.style}})});const Od=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 rC=Object.defineProperty,iC=(t,e,n)=>e in t?rC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ad=(t,e,n)=>(iC(t,typeof e!="symbol"?e+"":e,n),n);let sC=class{constructor(){Ad(this,"current",this.detect()),Ad(this,"handoffState","pending"),Ad(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"}},La=new sC,ji=(t,e)=>{La.isServer?x.useEffect(t,e):x.useLayoutEffect(t,e)};function ar(t){let e=x.useRef(t);return ji(()=>{e.current=t},[t]),e}let Ut=function(t){let e=ar(t);return V.useCallback((...n)=>e.current(...n),[e])};function aC(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(e=>setTimeout(()=>{throw e}))}function Pi(){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 aC(()=>{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=Pi();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 g0(){let[t]=x.useState(Pi);return x.useEffect(()=>()=>t.dispose(),[t]),t}function lC(){let t=typeof document>"u";return"useSyncExternalStore"in Em?(e=>e.useSyncExternalStore)(Em)(()=>()=>{},()=>!1,()=>!t):!1}function y0(){let t=lC(),[e,n]=x.useState(La.isHandoffComplete);return e&&La.isHandoffComplete===!1&&n(!1),x.useEffect(()=>{e!==!0&&n(!0)},[e]),x.useEffect(()=>La.handoff(),[]),t?!1:e}function Ot(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,Ot),o}let uC=Symbol();function w0(...t){let e=x.useRef(t);x.useEffect(()=>{e.current=t},[t]);let n=Ut(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[uC]))?void 0:n}function za(...t){return Array.from(new Set(t.flatMap(e=>typeof e=="string"?e.split(" "):[]))).filter(Boolean).join(" ")}var S0=(t=>(t[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t))(S0||{}),An=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(An||{});function v0({ourProps:t,theirProps:e,slot:n,defaultTag:o,features:r,visible:i=!0,name:s,mergeRefs:a}){a=a??cC;let l=b0(e,t);if(i)return Fa(l,n,o,s,a);let u=r??0;if(u&2){let{static:c=!1,...m}=l;if(c)return Fa(m,n,o,s,a)}if(u&1){let{unmount:c=!0,...m}=l;return Ot(c?0:1,{0(){return null},1(){return Fa({...m,hidden:!0,style:{display:"none"}},n,o,s,a)}})}return Fa(l,n,o,s,a)}function Fa(t,e={},n,o,r){let{as:i=n,children:s,refName:a="ref",...l}=Md(t,["unmount","static"]),u=t.ref!==void 0?{[a]:t.ref}:{},c=typeof s=="function"?s(e):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(e));let m={};if(e){let d=!1,f=[];for(let[p,y]of Object.entries(e))typeof y=="boolean"&&(d=!0),y===!0&&f.push(p);d&&(m["data-headlessui-state"]=f.join(" "))}if(i===x.Fragment&&Object.keys(k0(l)).length>0){if(!x.isValidElement(c)||Array.isArray(c)&&c.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(y=>` - ${y}`).join(`
146
146
  `),"","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(y=>` - ${y}`).join(`
147
147
  `)].join(`
148
- `));let d=c.props,f=typeof(d==null?void 0:d.className)=="function"?(...y)=>La(d==null?void 0:d.className(...y),l.className):La(d==null?void 0:d.className,l.className),p=f?{className:f}:{};return x.cloneElement(c,Object.assign({},S0(c.props,v0(Rd(l,["ref"]))),m,u,{ref:r(c.ref,u.ref)},p))}return x.createElement(i,Object.assign({},Rd(l,["ref"]),i!==x.Fragment&&u,i!==x.Fragment&&m),c)}function uC(...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 S0(...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 Ad(t){var e;return Object.assign(x.forwardRef(t),{displayName:(e=t.displayName)!=null?e:t.name})}function v0(t){let e=Object.assign({},t);for(let n in e)e[n]===void 0&&delete e[n];return e}function Rd(t,e=[]){let n=Object.assign({},t);for(let o of e)o in n&&delete n[o];return n}let Md=x.createContext(null);Md.displayName="OpenClosedContext";var Ut=(t=>(t[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t))(Ut||{});function k0(){return x.useContext(Md)}function cC({value:t,children:e}){return H.createElement(Md.Provider,{value:t},e)}function Dd(){let t=x.useRef(!1);return Ti(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function dC(t=0){let[e,n]=x.useState(t),o=Dd(),r=x.useCallback(l=>{o.current&&n(u=>u|l)},[e,o]),i=x.useCallback(l=>!!(e&l),[e]),s=x.useCallback(l=>{o.current&&n(u=>u&~l)},[n,o]),a=x.useCallback(l=>{o.current&&n(u=>u^l)},[n]);return{flags:e,addFlag:r,hasFlag:i,removeFlag:s,toggleFlag:a}}function mC(t){let e={called:!1};return(...n)=>{if(!e.called)return e.called=!0,t(...n)}}function Td(t,...e){t&&e.length>0&&t.classList.add(...e)}function jd(t,...e){t&&e.length>0&&t.classList.remove(...e)}function fC(t,e){let n=ji();if(!t)return n.dispose;let{transitionDuration:o,transitionDelay:r}=getComputedStyle(t),[i,s]=[o,r].map(l=>{let[u=0]=l.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,m)=>m-c);return u}),a=i+s;if(a!==0){n.group(u=>{u.setTimeout(()=>{e(),u.dispose()},a),u.addEventListener(t,"transitionrun",c=>{c.target===c.currentTarget&&u.dispose()})});let l=n.addEventListener(t,"transitionend",u=>{u.target===u.currentTarget&&(e(),l())})}else e();return n.add(()=>e()),n.dispose}function pC(t,e,n,o){let r=n?"enter":"leave",i=ji(),s=o!==void 0?mC(o):()=>{};r==="enter"&&(t.removeAttribute("hidden"),t.style.display="");let a=Nt(r,{enter:()=>e.enter,leave:()=>e.leave}),l=Nt(r,{enter:()=>e.enterTo,leave:()=>e.leaveTo}),u=Nt(r,{enter:()=>e.enterFrom,leave:()=>e.leaveFrom});return jd(t,...e.base,...e.enter,...e.enterTo,...e.enterFrom,...e.leave,...e.leaveFrom,...e.leaveTo,...e.entered),Td(t,...e.base,...a,...u),i.nextFrame(()=>{jd(t,...e.base,...a,...u),Td(t,...e.base,...a,...l),fC(t,()=>(jd(t,...e.base,...a),Td(t,...e.base,...e.entered),s()))}),i.dispose}function hC({immediate:t,container:e,direction:n,classes:o,onStart:r,onStop:i}){let s=Dd(),a=p0(),l=sr(n);Ti(()=>{t&&(l.current="enter")},[t]),Ti(()=>{let u=ji();a.add(u.dispose);let c=e.current;if(c&&l.current!=="idle"&&s.current)return u.dispose(),r.current(l.current),u.add(pC(c,o.current,l.current==="enter",()=>{u.dispose(),i.current(l.current)})),u.dispose},[n])}function An(t=""){return t.split(/\s+/).filter(e=>e.length>1)}let Fa=x.createContext(null);Fa.displayName="TransitionContext";var gC=(t=>(t.Visible="visible",t.Hidden="hidden",t))(gC||{});function yC(){let t=x.useContext(Fa);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}function wC(){let t=x.useContext(Ba);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}let Ba=x.createContext(null);Ba.displayName="NestingContext";function Ha(t){return"children"in t?Ha(t.children):t.current.filter(({el:e})=>e.current!==null).filter(({state:e})=>e==="visible").length>0}function b0(t,e){let n=sr(t),o=x.useRef([]),r=Dd(),i=p0(),s=Vt((f,p=On.Hidden)=>{let y=o.current.findIndex(({el:h})=>h===f);y!==-1&&(Nt(p,{[On.Unmount](){o.current.splice(y,1)},[On.Hidden](){o.current[y].state="hidden"}}),i.microTask(()=>{var h;!Ha(o)&&r.current&&((h=n.current)==null||h.call(n))}))}),a=Vt(f=>{let p=o.current.find(({el:y})=>y===f);return p?p.state!=="visible"&&(p.state="visible"):o.current.push({el:f,state:"visible"}),()=>s(f,On.Unmount)}),l=x.useRef([]),u=x.useRef(Promise.resolve()),c=x.useRef({enter:[],leave:[],idle:[]}),m=Vt((f,p,y)=>{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(c.current[p].map(([g,w])=>w)).then(()=>h())})]),p==="enter"?u.current=u.current.then(()=>e==null?void 0:e.wait.current).then(()=>y(p)):y(p)}),d=Vt((f,p,y)=>{Promise.all(c.current[p].splice(0).map(([h,g])=>g)).then(()=>{var h;(h=l.current.shift())==null||h()}).then(()=>y(p))});return x.useMemo(()=>({children:o,register:a,unregister:s,onStart:m,onStop:d,wait:u,chains:c}),[a,s,o,m,d,c,u])}function SC(){}let vC=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function x0(t){var e;let n={};for(let o of vC)n[o]=(e=t[o])!=null?e:SC;return n}function kC(t){let e=x.useRef(x0(t));return x.useEffect(()=>{e.current=x0(t)},[t]),e}let bC="div",$0=y0.RenderStrategy;function xC(t,e){var n,o;let{beforeEnter:r,afterEnter:i,beforeLeave:s,afterLeave:a,enter:l,enterFrom:u,enterTo:c,entered:m,leave:d,leaveFrom:f,leaveTo:p,...y}=t,h=x.useRef(null),g=g0(h,e),w=(n=y.unmount)==null||n?On.Unmount:On.Hidden,{show:v,appear:b,initial:E}=yC(),[k,$]=x.useState(v?"visible":"hidden"),R=wC(),{register:C,unregister:J}=R;x.useEffect(()=>C(h),[C,h]),x.useEffect(()=>{if(w===On.Hidden&&h.current){if(v&&k!=="visible"){$("visible");return}return Nt(k,{hidden:()=>J(h),visible:()=>C(h)})}},[k,h,C,J,v,w]);let ie=sr({base:An(y.className),enter:An(l),enterFrom:An(u),enterTo:An(c),entered:An(m),leave:An(d),leaveFrom:An(f),leaveTo:An(p)}),Z=kC({beforeEnter:r,afterEnter:i,beforeLeave:s,afterLeave:a}),q=h0();x.useEffect(()=>{if(q&&k==="visible"&&h.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,k,q]);let Ne=E&&!b,ae=b&&v&&E,fe=(()=>!q||Ne?"idle":v?"enter":"leave")(),ce=dC(0),G=Vt(K=>Nt(K,{enter:()=>{ce.addFlag(Ut.Opening),Z.current.beforeEnter()},leave:()=>{ce.addFlag(Ut.Closing),Z.current.beforeLeave()},idle:()=>{}})),le=Vt(K=>Nt(K,{enter:()=>{ce.removeFlag(Ut.Opening),Z.current.afterEnter()},leave:()=>{ce.removeFlag(Ut.Closing),Z.current.afterLeave()},idle:()=>{}})),ve=b0(()=>{$("hidden"),J(h)},R),M=x.useRef(!1);hC({immediate:ae,container:h,classes:ie,direction:fe,onStart:sr(K=>{M.current=!0,ve.onStart(h,K,G)}),onStop:sr(K=>{M.current=!1,ve.onStop(h,K,le),K==="leave"&&!Ha(ve)&&($("hidden"),J(h))})});let I=y,F={ref:g};return ae?I={...I,className:La(y.className,...ie.current.enter,...ie.current.enterFrom)}:M.current&&(I.className=La(y.className,(o=h.current)==null?void 0:o.className),I.className===""&&delete I.className),H.createElement(Ba.Provider,{value:ve},H.createElement(cC,{value:Nt(k,{visible:Ut.Open,hidden:Ut.Closed})|ce.flags},w0({ourProps:F,theirProps:I,defaultTag:bC,features:$0,visible:k==="visible",name:"Transition.Child"})))}function $C(t,e){let{show:n,appear:o=!1,unmount:r=!0,...i}=t,s=x.useRef(null),a=g0(s,e);h0();let l=k0();if(n===void 0&&l!==null&&(n=(l&Ut.Open)===Ut.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,c]=x.useState(n?"visible":"hidden"),m=b0(()=>{c("hidden")}),[d,f]=x.useState(!0),p=x.useRef([n]);Ti(()=>{d!==!1&&p.current[p.current.length-1]!==n&&(p.current.push(n),f(!1))},[p,n]);let y=x.useMemo(()=>({show:n,appear:o,initial:d}),[n,o,d]);x.useEffect(()=>{if(n)c("visible");else if(!Ha(m))c("hidden");else{let v=s.current;if(!v)return;let b=v.getBoundingClientRect();b.x===0&&b.y===0&&b.width===0&&b.height===0&&c("hidden")}},[n,m]);let h={unmount:r},g=Vt(()=>{var v;d&&f(!1),(v=t.beforeEnter)==null||v.call(t)}),w=Vt(()=>{var v;d&&f(!1),(v=t.beforeLeave)==null||v.call(t)});return H.createElement(Ba.Provider,{value:m},H.createElement(Fa.Provider,{value:y},w0({ourProps:{...h,as:x.Fragment,children:H.createElement(C0,{ref:a,...h,...i,beforeEnter:g,beforeLeave:w})},theirProps:{},defaultTag:x.Fragment,features:$0,visible:u==="visible",name:"Transition"})))}function CC(t,e){let n=x.useContext(Fa)!==null,o=k0()!==null;return H.createElement(H.Fragment,null,!n&&o?H.createElement(Pd,{ref:e,...t}):H.createElement(C0,{ref:e,...t}))}let Pd=Ad($C),C0=Ad(xC),EC=Ad(CC),ao=Object.assign(Pd,{Child:EC,Root:Pd});function NC(t,e){const n=x.useRef(null),o=x.useCallback(r=>{n.current&&e&&e(n.current),r&&t&&t(r),n.current=r},[t,e]);return[n,o]}function OC(t,e){const n=x.useRef(0);x.useEffect(()=>{if(n.current>=2)return t();n.current+=1},e)}function AC(t){const{popup:e}=V();return(e==null?void 0:e.type)===t}function RC(t){const{t:e}=V();return x.useMemo(()=>z1(t,e),[t])}const MC=({submit:t,progress:e,setProgress:n,close:o,reduced:r,isOpen:i,editor:s,submitText:a,submitSize:l})=>{const{t:u}=V();let c=null;e==="sending"&&(a=null,c=S.jsx(Nd,{className:"h-[24px] w-[24px] fill-white dark:fill-black"}));const m=x.useCallback(f=>{if(s!=null&&s.isFocused){f.stopPropagation();return}},[s]),d=x.useCallback(async()=>{if(!(!s||s.isEmpty)){n("sending");try{await t({html:s.getHTML()})}catch{n("error");return}return o?o():(n("sent"),s.chain().clearContent().blur().run()),!1}},[n,s,t,o]);return x.useEffect(()=>{const f=p=>{if(p.metaKey||p.ctrlKey){p.key==="Enter"&&(s!=null&&s.isFocused)&&(d(),s==null||s.commands.blur());return}if(p.key==="Escape"){s!=null&&s.isFocused&&(o?o():s==null||s.commands.blur());return}};return window.addEventListener("keydown",f,{passive:!0}),()=>{window.removeEventListener("keydown",f,{passive:!0})}},[s,o,d]),S.jsxs("div",{className:`relative w-full pl-[40px] transition-[padding] delay-100 duration-150 sm:pl-[44px] ${r&&"pl-0"} ${i&&"pl-[1px] pt-[48px] sm:pl-[44px] sm:pt-[40px]"}`,children:[S.jsx("div",{className:`text-md min-h-[120px] w-full rounded-md border border-[rgba(0,0,0,0.1)] bg-[rgba(255,255,255,0.9)] 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-[rgba(255,255,255,0.14)] dark:text-neutral-300${i?"cursor-text":"cursor-pointer"}
149
- `,"data-testid":"form-editor",children:S.jsx(_$,{editor:s,onMouseDown:m,onTouchStart:m})}),S.jsxs("div",{className:"absolute bottom-1 right-1 flex space-x-4 transition-[opacity] duration-150 sm:bottom-2 sm:right-2",children:[o&&S.jsx("button",{className:"ml-2.5 font-sans text-sm font-medium text-neutral-500 outline-0 dark:text-neutral-400",type:"button",onClick:o,children:u("Cancel")}),S.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-[6px] border bg-neutral-900 px-3 py-2 text-center font-sans text-base font-medium text-white outline-0 transition-[opacity] duration-150 sm:text-sm dark:bg-[rgba(255,255,255,0.9)] dark:text-neutral-800`,"data-testid":"submit-form-button",type:"button",onClick:d,children:[S.jsx("span",{children:c}),a&&S.jsx("span",{children:a})]})]})]})},DC=({show:t,name:e,expertise:n,editName:o,editExpertise:r})=>S.jsx(ao,{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:S.jsxs("div",{className:"flex flex-wrap",children:[S.jsx("div",{className:"w-full font-sans text-base font-bold leading-snug text-[rgb(23,23,23)] sm:w-auto sm:text-sm dark:text-[rgba(255,255,255,0.85)]","data-testid":"member-name",onClick:o,children:e||"Anonymous"}),S.jsx("div",{className:"flex items-baseline justify-start",children:S.jsxs("button",{className:`group flex items-center justify-start whitespace-nowrap text-left font-sans text-base leading-snug text-[rgba(0,0,0,0.5)] transition duration-150 hover:text-[rgba(0,0,0,0.75)] sm:text-sm dark:text-[rgba(255,255,255,0.5)] dark:hover:text-[rgba(255,255,255,0.4)] ${!n&&"text-[rgba(0,0,0,0.3)] hover:text-[rgba(0,0,0,0.5)] dark:text-[rgba(255,255,255,0.3)]"}`,"data-testid":"expertise-button",type:"button",onClick:r,children:[S.jsxs("span",{children:[S.jsx("span",{className:"mx-[0.3em] hidden sm:inline",children:"·"}),n||"Add your expertise"]}),n&&S.jsx(Y1,{className:"ml-1 h-[12px] w-[12px] translate-x-[-6px] stroke-[rgba(0,0,0,0.5)] opacity-0 transition-all duration-100 ease-out group-hover:translate-x-0 group-hover:stroke-[rgba(0,0,0,0.75)] group-hover:opacity-100 dark:stroke-[rgba(255,255,255,0.5)] dark:group-hover:stroke-[rgba(255,255,255,0.3)]"})]})})]})}),E0=({comment:t,submit:e,submitText:n,submitSize:o,close:r,editor:i,reduced:s,isOpen:a})=>{var E,k;const{member:l,dispatchAction:u}=V(),c=AC("addDetailsPopup"),[m,d]=x.useState("default"),f=x.useRef(null),p=(l==null?void 0:l.name)??((E=t==null?void 0:t.member)==null?void 0:E.name),y=(l==null?void 0:l.expertise)??((k=t==null?void 0:t.member)==null?void 0:k.expertise);(m==="sending"||p&&c)&&(a=!0);const h=$=>{if(i!=null&&i.isFocused){$.preventDefault();return}},g=x.useCallback($=>{var R;(R=i==null?void 0:i.commands)==null||R.blur(),u("openPopup",{type:"addDetailsPopup",expertiseAutofocus:$.expertiseAutofocus??!1,callback:function(C){!i||!f.current||C&&(i.setEditable(!0),i.commands.focus())}})},[i,u,f]),w=x.useCallback(()=>{g({expertiseAutofocus:!1})},[g]),v=x.useCallback(()=>{g({expertiseAutofocus:!0})},[g]),b=x.useCallback(()=>{if(i&&!i.isFocused){if(!p){w();return}i.commands.focus()}},[i,w,p]);return x.useEffect(()=>{i&&i.setEditable(!!p&&m!=="sending")},[i,p,m]),S.jsx("form",{ref:f,className:`-mx-3 mb-7 mt-[-10px] rounded-md transition duration-200 ${a?"cursor-default":"cursor-pointer"}`,"data-testid":"form",onClick:b,onMouseDown:h,onTouchStart:h,children:S.jsxs("div",{className:"relative w-full",children:[S.jsx("div",{className:"pr-[1px] font-sans leading-normal dark:text-neutral-300",children:S.jsx(MC,{close:r,editor:i,isOpen:a,progress:m,reduced:s,setProgress:d,submit:e,submitSize:o,submitText:n})}),S.jsxs("div",{className:"absolute left-0 top-1 flex h-11 w-full items-start justify-start sm:h-12",children:[S.jsx("div",{className:"pointer-events-none mr-2 grow-0 sm:mr-3",children:S.jsx(Lm,{comment:t})}),S.jsx("div",{className:"grow-1 mt-0.5 w-full",children:S.jsx(DC,{editExpertise:v,editName:w,expertise:y,name:p,show:a})})]})]})})},N0=({editor:t,submit:e,close:n,closeIfNotChanged:o,submitText:r,submitSize:i})=>{const{dispatchAction:s,secundaryFormCount:a}=V();x.useEffect(()=>(s("increaseSecundaryFormCount",{}),()=>{s("decreaseSecundaryFormCount",{})}),[s]),OC(()=>{a>1&&o()},[a]);const l=jm();return S.jsx("div",{className:"mt-[-16px] pr-3",children:S.jsx(E0,{close:n,editor:t,isOpen:!0,reduced:l,submit:e,submitSize:i,submitText:r})})},TC=/^\s*>\s$/,jC=an.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",Ro(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[Hb({find:TC,type:this.type})]}}),PC=an.create({name:"doc",topNode:!0,content:"block+"}),IC=an.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",Ro(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:u,dispatch:c})=>{if(c&&l&&s){const m=l.filter(d=>a.includes(d.type.name));u.ensureMarks(m)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),LC="aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",zC="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5تصالات6رامكو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",ar=(t,e)=>{for(const n in e)t[n]=e[n];return t},Id="numeric",Ld="ascii",zd="alpha",Va="asciinumeric",Ua="alphanumeric",Fd="domain",O0="emoji",FC="scheme",BC="slashscheme",A0="whitespace";function HC(t,e){return t in e||(e[t]=[]),e[t]}function lo(t,e,n){e[Id]&&(e[Va]=!0,e[Ua]=!0),e[Ld]&&(e[Va]=!0,e[zd]=!0),e[Va]&&(e[Ua]=!0),e[zd]&&(e[Ua]=!0),e[Ua]&&(e[Fd]=!0),e[O0]&&(e[Fd]=!0);for(const o in e){const r=HC(o,n);r.indexOf(t)<0&&r.push(t)}}function VC(t,e){const n={};for(const o in e)e[o].indexOf(t)>=0&&(n[o]=!0);return n}function Ke(t){t===void 0&&(t=null),this.j={},this.jr=[],this.jd=null,this.t=t}Ke.groups={},Ke.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){return e===void 0&&(e=!1),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||Ke.groups;let r;return e&&e.j?r=e:(r=new Ke(e),n&&o&&lo(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||Ke.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 Ke,ar(s.j,a.j),s.jr.push.apply(s.jr,a.jr),s.jd=a.jd,s.t=a.t):s=new Ke,i){if(o)if(s.t&&typeof s.t=="string"){const l=ar(VC(s.t,o),n);lo(i,l,o)}else n&&lo(i,n,o);s.t=i}return r.j[t]=s,s}};const P=(t,e,n,o,r)=>t.ta(e,n,o,r),ut=(t,e,n,o,r)=>t.tr(e,n,o,r),R0=(t,e,n,o,r)=>t.ts(e,n,o,r),O=(t,e,n,o,r)=>t.tt(e,n,o,r),Jt="WORD",Bd="UWORD",Pi="LOCALHOST",Hd="TLD",Vd="UTLD",Ja="SCHEME",lr="SLASH_SCHEME",Ud="NUM",M0="WS",Jd="NL",ur="OPENBRACE",Ii="OPENBRACKET",Li="OPENANGLEBRACKET",zi="OPENPAREN",uo="CLOSEBRACE",cr="CLOSEBRACKET",dr="CLOSEANGLEBRACKET",co="CLOSEPAREN",_a="AMPERSAND",Ya="APOSTROPHE",Ka="ASTERISK",Rn="AT",Wa="BACKSLASH",qa="BACKTICK",Ga="CARET",Mn="COLON",_d="COMMA",Qa="DOLLAR",Ot="DOT",Za="EQUALS",Yd="EXCLAMATION",At="HYPHEN",Xa="PERCENT",el="PIPE",tl="PLUS",nl="POUND",ol="QUERY",Kd="QUOTE",Wd="SEMI",Rt="SLASH",Fi="TILDE",rl="UNDERSCORE",D0="EMOJI",il="SYM";var T0=Object.freeze({__proto__:null,WORD:Jt,UWORD:Bd,LOCALHOST:Pi,TLD:Hd,UTLD:Vd,SCHEME:Ja,SLASH_SCHEME:lr,NUM:Ud,WS:M0,NL:Jd,OPENBRACE:ur,OPENBRACKET:Ii,OPENANGLEBRACKET:Li,OPENPAREN:zi,CLOSEBRACE:uo,CLOSEBRACKET:cr,CLOSEANGLEBRACKET:dr,CLOSEPAREN:co,AMPERSAND:_a,APOSTROPHE:Ya,ASTERISK:Ka,AT:Rn,BACKSLASH:Wa,BACKTICK:qa,CARET:Ga,COLON:Mn,COMMA:_d,DOLLAR:Qa,DOT:Ot,EQUALS:Za,EXCLAMATION:Yd,HYPHEN:At,PERCENT:Xa,PIPE:el,PLUS:tl,POUND:nl,QUERY:ol,QUOTE:Kd,SEMI:Wd,SLASH:Rt,TILDE:Fi,UNDERSCORE:rl,EMOJI:D0,SYM:il});const mr=/[a-z]/,qd=/\p{L}/u,Gd=/\p{Emoji}/u,Qd=/\d/,j0=/\s/,P0=`
151
- `,UC="️",JC="‍";let sl=null,al=null;function _C(t){t===void 0&&(t=[]);const e={};Ke.groups=e;const n=new Ke;sl==null&&(sl=I0(LC)),al==null&&(al=I0(zC)),O(n,"'",Ya),O(n,"{",ur),O(n,"[",Ii),O(n,"<",Li),O(n,"(",zi),O(n,"}",uo),O(n,"]",cr),O(n,">",dr),O(n,")",co),O(n,"&",_a),O(n,"*",Ka),O(n,"@",Rn),O(n,"`",qa),O(n,"^",Ga),O(n,":",Mn),O(n,",",_d),O(n,"$",Qa),O(n,".",Ot),O(n,"=",Za),O(n,"!",Yd),O(n,"-",At),O(n,"%",Xa),O(n,"|",el),O(n,"+",tl),O(n,"#",nl),O(n,"?",ol),O(n,'"',Kd),O(n,"/",Rt),O(n,";",Wd),O(n,"~",Fi),O(n,"_",rl),O(n,"\\",Wa);const o=ut(n,Qd,Ud,{[Id]:!0});ut(o,Qd,o);const r=ut(n,mr,Jt,{[Ld]:!0});ut(r,mr,r);const i=ut(n,qd,Bd,{[zd]:!0});ut(i,mr),ut(i,qd,i);const s=ut(n,j0,M0,{[A0]:!0});O(n,P0,Jd,{[A0]:!0}),O(s,P0),ut(s,j0,s);const a=ut(n,Gd,D0,{[O0]:!0});ut(a,Gd,a),O(a,UC,a);const l=O(a,JC);ut(l,Gd,a);const u=[[mr,r]],c=[[mr,null],[qd,i]];for(let m=0;m<sl.length;m++)Dn(n,sl[m],Hd,Jt,u);for(let m=0;m<al.length;m++)Dn(n,al[m],Vd,Bd,c);lo(Hd,{tld:!0,ascii:!0},e),lo(Vd,{utld:!0,alpha:!0},e),Dn(n,"file",Ja,Jt,u),Dn(n,"mailto",Ja,Jt,u),Dn(n,"http",lr,Jt,u),Dn(n,"https",lr,Jt,u),Dn(n,"ftp",lr,Jt,u),Dn(n,"ftps",lr,Jt,u),lo(Ja,{scheme:!0,ascii:!0},e),lo(lr,{slashscheme:!0,ascii:!0},e),t=t.sort((m,d)=>m[0]>d[0]?1:-1);for(let m=0;m<t.length;m++){const d=t[m][0],p=t[m][1]?{[FC]:!0}:{[BC]:!0};d.indexOf("-")>=0?p[Fd]=!0:mr.test(d)?Qd.test(d)?p[Va]=!0:p[Ld]=!0:p[Id]=!0,R0(n,d,d,p)}return R0(n,"localhost",Pi,{ascii:!0}),n.jd=new Ke(il),{start:n,tokens:ar({groups:e},T0)}}function YC(t,e){const n=KC(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,u=0,c=null,m=-1,d=-1;for(;s<o&&(l=a.go(n[s]));)a=l,a.accepts()?(m=0,d=0,c=a):m>=0&&(m+=n[s].length,d++),u+=n[s].length,i+=n[s].length,s++;i-=m,s-=d,u-=m,r.push({t:c.t,v:e.slice(i-u,i),s:i-u,e:i})}return r}function KC(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 Dn(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 Ke(o),i.jr=r.slice(),t.j[l]=i),t=i}return i=new Ke(n),i.jr=r.slice(),t.j[e[s-1]]=i,i}function I0(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 Bi={defaultProtocol:"http",events:null,format:L0,formatHref:L0,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Zd(t,e){e===void 0&&(e=null);let n=ar({},Bi);t&&(n=ar(n,t instanceof Zd?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}Zd.prototype={o:Bi,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]:Bi[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 L0(t){return t}function z0(t,e){this.t="token",this.v=t,this.tk=e}z0.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){return t===void 0&&(t=Bi.defaultProtocol),{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),u=t.get("rel",n,e),c=t.getObj("attributes",n,e),m=t.getObj("events",n,e);return s.href=o,a&&(s.class=a),l&&(s.target=l),u&&(s.rel=u),c&&ar(s,c),{tagName:r,attributes:s,content:i,eventListeners:m}}};function ll(t,e){class n extends z0{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 F0=ll("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),B0=ll("text"),WC=ll("nl"),mo=ll("url",{isLink:!0,toHref(t){return t===void 0&&(t=Bi.defaultProtocol),this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==Pi&&t[1].t===Mn}}),Se=t=>new Ke(t);function qC(t){let{groups:e}=t;const n=e.domain.concat([_a,Ka,Rn,Wa,qa,Ga,Qa,Za,At,Ud,Xa,el,tl,nl,Rt,il,Fi,rl]),o=[Ya,dr,uo,cr,co,Mn,_d,Ot,Yd,Li,ur,Ii,zi,ol,Kd,Wd],r=[_a,Ya,Ka,Wa,qa,Ga,uo,Qa,Za,At,ur,Xa,el,tl,nl,ol,Rt,il,Fi,rl],i=Se(),s=O(i,Fi);P(s,r,s),P(s,e.domain,s);const a=Se(),l=Se(),u=Se();P(i,e.domain,a),P(i,e.scheme,l),P(i,e.slashscheme,u),P(a,r,s),P(a,e.domain,a);const c=O(a,Rn);O(s,Rn,c),O(l,Rn,c),O(u,Rn,c);const m=O(s,Ot);P(m,r,s),P(m,e.domain,s);const d=Se();P(c,e.domain,d),P(d,e.domain,d);const f=O(d,Ot);P(f,e.domain,d);const p=Se(F0);P(f,e.tld,p),P(f,e.utld,p),O(c,Pi,p);const y=O(d,At);P(y,e.domain,d),P(p,e.domain,d),O(p,Ot,f),O(p,At,y);const h=O(p,Mn);P(h,e.numeric,F0);const g=O(a,At),w=O(a,Ot);P(g,e.domain,a),P(w,r,s),P(w,e.domain,a);const v=Se(mo);P(w,e.tld,v),P(w,e.utld,v),P(v,e.domain,a),P(v,r,s),O(v,Ot,w),O(v,At,g),O(v,Rn,c);const b=O(v,Mn),E=Se(mo);P(b,e.numeric,E);const k=Se(mo),$=Se();P(k,n,k),P(k,o,$),P($,n,k),P($,o,$),O(v,Rt,k),O(E,Rt,k);const R=O(l,Mn),C=O(u,Mn),J=O(C,Rt),ie=O(J,Rt);P(l,e.domain,a),O(l,Ot,w),O(l,At,g),P(u,e.domain,a),O(u,Ot,w),O(u,At,g),P(R,e.domain,k),O(R,Rt,k),P(ie,e.domain,k),P(ie,n,k),O(ie,Rt,k);const Z=O(k,ur),q=O(k,Ii),Ne=O(k,Li),ae=O(k,zi);O($,ur,Z),O($,Ii,q),O($,Li,Ne),O($,zi,ae),O(Z,uo,k),O(q,cr,k),O(Ne,dr,k),O(ae,co,k),O(Z,uo,k);const fe=Se(mo),ce=Se(mo),G=Se(mo),le=Se(mo);P(Z,n,fe),P(q,n,ce),P(Ne,n,G),P(ae,n,le);const ve=Se(),M=Se(),I=Se(),F=Se();return P(Z,o),P(q,o),P(Ne,o),P(ae,o),P(fe,n,fe),P(ce,n,ce),P(G,n,G),P(le,n,le),P(fe,o,fe),P(ce,o,ce),P(G,o,G),P(le,o,le),P(ve,n,ve),P(M,n,ce),P(I,n,G),P(F,n,le),P(ve,o,ve),P(M,o,M),P(I,o,I),P(F,o,F),O(ce,cr,k),O(G,dr,k),O(le,co,k),O(fe,uo,k),O(M,cr,k),O(I,dr,k),O(F,co,k),O(ve,co,k),O(i,Pi,v),O(i,Jd,WC),{start:i,tokens:T0}}function GC(t,e,n){let o=n.length,r=0,i=[],s=[];for(;r<o;){let a=t,l=null,u=null,c=0,m=null,d=-1;for(;r<o&&!(l=a.go(n[r].t));)s.push(n[r++]);for(;r<o&&(u=l||a.go(n[r].t));)l=null,a=u,a.accepts()?(d=0,m=a):d>=0&&d++,r++,c++;if(d<0)r-=c,r<o&&(s.push(n[r]),r++);else{s.length>0&&(i.push(Xd(B0,e,s)),s=[]),r-=d,c-=d;const f=m.t,p=n.slice(r-c,r);i.push(Xd(f,e,p))}}return s.length>0&&i.push(Xd(B0,e,s)),i}function Xd(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 QC=typeof console<"u"&&console&&console.warn||(()=>{}),ZC="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",ne={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function XC(){Ke.groups={},ne.scanner=null,ne.parser=null,ne.tokenQueue=[],ne.pluginQueue=[],ne.customSchemes=[],ne.initialized=!1}function H0(t,e){if(e===void 0&&(e=!1),ne.initialized&&QC(`linkifyjs: already initialized - will not register custom scheme "${t}" ${ZC}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
148
+ `));let d=c.props,f=typeof(d==null?void 0:d.className)=="function"?(...y)=>za(d==null?void 0:d.className(...y),l.className):za(d==null?void 0:d.className,l.className),p=f?{className:f}:{};return x.cloneElement(c,Object.assign({},b0(c.props,k0(Md(l,["ref"]))),m,u,{ref:r(c.ref,u.ref)},p))}return x.createElement(i,Object.assign({},Md(l,["ref"]),i!==x.Fragment&&u,i!==x.Fragment&&m),c)}function cC(...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 b0(...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 Rd(t){var e;return Object.assign(x.forwardRef(t),{displayName:(e=t.displayName)!=null?e:t.name})}function k0(t){let e=Object.assign({},t);for(let n in e)e[n]===void 0&&delete e[n];return e}function Md(t,e=[]){let n=Object.assign({},t);for(let o of e)o in n&&delete n[o];return n}let Dd=x.createContext(null);Dd.displayName="OpenClosedContext";var Jt=(t=>(t[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t))(Jt||{});function x0(){return x.useContext(Dd)}function dC({value:t,children:e}){return V.createElement(Dd.Provider,{value:t},e)}function Td(){let t=x.useRef(!1);return ji(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function mC(t=0){let[e,n]=x.useState(t),o=Td(),r=x.useCallback(l=>{o.current&&n(u=>u|l)},[e,o]),i=x.useCallback(l=>!!(e&l),[e]),s=x.useCallback(l=>{o.current&&n(u=>u&~l)},[n,o]),a=x.useCallback(l=>{o.current&&n(u=>u^l)},[n]);return{flags:e,addFlag:r,hasFlag:i,removeFlag:s,toggleFlag:a}}function fC(t){let e={called:!1};return(...n)=>{if(!e.called)return e.called=!0,t(...n)}}function jd(t,...e){t&&e.length>0&&t.classList.add(...e)}function Pd(t,...e){t&&e.length>0&&t.classList.remove(...e)}function pC(t,e){let n=Pi();if(!t)return n.dispose;let{transitionDuration:o,transitionDelay:r}=getComputedStyle(t),[i,s]=[o,r].map(l=>{let[u=0]=l.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,m)=>m-c);return u}),a=i+s;if(a!==0){n.group(u=>{u.setTimeout(()=>{e(),u.dispose()},a),u.addEventListener(t,"transitionrun",c=>{c.target===c.currentTarget&&u.dispose()})});let l=n.addEventListener(t,"transitionend",u=>{u.target===u.currentTarget&&(e(),l())})}else e();return n.add(()=>e()),n.dispose}function hC(t,e,n,o){let r=n?"enter":"leave",i=Pi(),s=o!==void 0?fC(o):()=>{};r==="enter"&&(t.removeAttribute("hidden"),t.style.display="");let a=Ot(r,{enter:()=>e.enter,leave:()=>e.leave}),l=Ot(r,{enter:()=>e.enterTo,leave:()=>e.leaveTo}),u=Ot(r,{enter:()=>e.enterFrom,leave:()=>e.leaveFrom});return Pd(t,...e.base,...e.enter,...e.enterTo,...e.enterFrom,...e.leave,...e.leaveFrom,...e.leaveTo,...e.entered),jd(t,...e.base,...a,...u),i.nextFrame(()=>{Pd(t,...e.base,...a,...u),jd(t,...e.base,...a,...l),pC(t,()=>(Pd(t,...e.base,...a),jd(t,...e.base,...e.entered),s()))}),i.dispose}function gC({immediate:t,container:e,direction:n,classes:o,onStart:r,onStop:i}){let s=Td(),a=g0(),l=ar(n);ji(()=>{t&&(l.current="enter")},[t]),ji(()=>{let u=Pi();a.add(u.dispose);let c=e.current;if(c&&l.current!=="idle"&&s.current)return u.dispose(),r.current(l.current),u.add(hC(c,o.current,l.current==="enter",()=>{u.dispose(),i.current(l.current)})),u.dispose},[n])}function Rn(t=""){return t.split(/\s+/).filter(e=>e.length>1)}let Ba=x.createContext(null);Ba.displayName="TransitionContext";var yC=(t=>(t.Visible="visible",t.Hidden="hidden",t))(yC||{});function wC(){let t=x.useContext(Ba);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}function SC(){let t=x.useContext(Ha);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}let Ha=x.createContext(null);Ha.displayName="NestingContext";function Va(t){return"children"in t?Va(t.children):t.current.filter(({el:e})=>e.current!==null).filter(({state:e})=>e==="visible").length>0}function $0(t,e){let n=ar(t),o=x.useRef([]),r=Td(),i=g0(),s=Ut((f,p=An.Hidden)=>{let y=o.current.findIndex(({el:h})=>h===f);y!==-1&&(Ot(p,{[An.Unmount](){o.current.splice(y,1)},[An.Hidden](){o.current[y].state="hidden"}}),i.microTask(()=>{var h;!Va(o)&&r.current&&((h=n.current)==null||h.call(n))}))}),a=Ut(f=>{let p=o.current.find(({el:y})=>y===f);return p?p.state!=="visible"&&(p.state="visible"):o.current.push({el:f,state:"visible"}),()=>s(f,An.Unmount)}),l=x.useRef([]),u=x.useRef(Promise.resolve()),c=x.useRef({enter:[],leave:[],idle:[]}),m=Ut((f,p,y)=>{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(c.current[p].map(([g,w])=>w)).then(()=>h())})]),p==="enter"?u.current=u.current.then(()=>e==null?void 0:e.wait.current).then(()=>y(p)):y(p)}),d=Ut((f,p,y)=>{Promise.all(c.current[p].splice(0).map(([h,g])=>g)).then(()=>{var h;(h=l.current.shift())==null||h()}).then(()=>y(p))});return x.useMemo(()=>({children:o,register:a,unregister:s,onStart:m,onStop:d,wait:u,chains:c}),[a,s,o,m,d,c,u])}function vC(){}let bC=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function C0(t){var e;let n={};for(let o of bC)n[o]=(e=t[o])!=null?e:vC;return n}function kC(t){let e=x.useRef(C0(t));return x.useEffect(()=>{e.current=C0(t)},[t]),e}let xC="div",E0=S0.RenderStrategy;function $C(t,e){var n,o;let{beforeEnter:r,afterEnter:i,beforeLeave:s,afterLeave:a,enter:l,enterFrom:u,enterTo:c,entered:m,leave:d,leaveFrom:f,leaveTo:p,...y}=t,h=x.useRef(null),g=w0(h,e),w=(n=y.unmount)==null||n?An.Unmount:An.Hidden,{show:v,appear:k,initial:E}=wC(),[b,$]=x.useState(v?"visible":"hidden"),R=SC(),{register:C,unregister:_}=R;x.useEffect(()=>C(h),[C,h]),x.useEffect(()=>{if(w===An.Hidden&&h.current){if(v&&b!=="visible"){$("visible");return}return Ot(b,{hidden:()=>_(h),visible:()=>C(h)})}},[b,h,C,_,v,w]);let se=ar({base:Rn(y.className),enter:Rn(l),enterFrom:Rn(u),enterTo:Rn(c),entered:Rn(m),leave:Rn(d),leaveFrom:Rn(f),leaveTo:Rn(p)}),X=kC({beforeEnter:r,afterEnter:i,beforeLeave:s,afterLeave:a}),G=y0();x.useEffect(()=>{if(G&&b==="visible"&&h.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,b,G]);let Oe=E&&!k,le=k&&v&&E,pe=(()=>!G||Oe?"idle":v?"enter":"leave")(),de=mC(0),Q=Ut(W=>Ot(W,{enter:()=>{de.addFlag(Jt.Opening),X.current.beforeEnter()},leave:()=>{de.addFlag(Jt.Closing),X.current.beforeLeave()},idle:()=>{}})),ue=Ut(W=>Ot(W,{enter:()=>{de.removeFlag(Jt.Opening),X.current.afterEnter()},leave:()=>{de.removeFlag(Jt.Closing),X.current.afterLeave()},idle:()=>{}})),be=$0(()=>{$("hidden"),_(h)},R),M=x.useRef(!1);gC({immediate:le,container:h,classes:se,direction:pe,onStart:ar(W=>{M.current=!0,be.onStart(h,W,Q)}),onStop:ar(W=>{M.current=!1,be.onStop(h,W,ue),W==="leave"&&!Va(be)&&($("hidden"),_(h))})});let I=y,B={ref:g};return le?I={...I,className:za(y.className,...se.current.enter,...se.current.enterFrom)}:M.current&&(I.className=za(y.className,(o=h.current)==null?void 0:o.className),I.className===""&&delete I.className),V.createElement(Ha.Provider,{value:be},V.createElement(dC,{value:Ot(b,{visible:Jt.Open,hidden:Jt.Closed})|de.flags},v0({ourProps:B,theirProps:I,defaultTag:xC,features:E0,visible:b==="visible",name:"Transition.Child"})))}function CC(t,e){let{show:n,appear:o=!1,unmount:r=!0,...i}=t,s=x.useRef(null),a=w0(s,e);y0();let l=x0();if(n===void 0&&l!==null&&(n=(l&Jt.Open)===Jt.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,c]=x.useState(n?"visible":"hidden"),m=$0(()=>{c("hidden")}),[d,f]=x.useState(!0),p=x.useRef([n]);ji(()=>{d!==!1&&p.current[p.current.length-1]!==n&&(p.current.push(n),f(!1))},[p,n]);let y=x.useMemo(()=>({show:n,appear:o,initial:d}),[n,o,d]);x.useEffect(()=>{if(n)c("visible");else if(!Va(m))c("hidden");else{let v=s.current;if(!v)return;let k=v.getBoundingClientRect();k.x===0&&k.y===0&&k.width===0&&k.height===0&&c("hidden")}},[n,m]);let h={unmount:r},g=Ut(()=>{var v;d&&f(!1),(v=t.beforeEnter)==null||v.call(t)}),w=Ut(()=>{var v;d&&f(!1),(v=t.beforeLeave)==null||v.call(t)});return V.createElement(Ha.Provider,{value:m},V.createElement(Ba.Provider,{value:y},v0({ourProps:{...h,as:x.Fragment,children:V.createElement(N0,{ref:a,...h,...i,beforeEnter:g,beforeLeave:w})},theirProps:{},defaultTag:x.Fragment,features:E0,visible:u==="visible",name:"Transition"})))}function EC(t,e){let n=x.useContext(Ba)!==null,o=x0()!==null;return V.createElement(V.Fragment,null,!n&&o?V.createElement(Id,{ref:e,...t}):V.createElement(N0,{ref:e,...t}))}let Id=Rd(CC),N0=Rd($C),NC=Rd(EC),lo=Object.assign(Id,{Child:NC,Root:Id});function OC(t,e){const n=x.useRef(null),o=x.useCallback(r=>{n.current&&e&&e(n.current),r&&t&&t(r),n.current=r},[t,e]);return[n,o]}function AC(t,e){const n=x.useRef(0);x.useEffect(()=>{if(n.current>=2)return t();n.current+=1},e)}function RC(t){const{popup:e}=U();return(e==null?void 0:e.type)===t}function MC(t){const{t:e}=U();return x.useMemo(()=>B1(t,e),[t])}const DC=({submit:t,progress:e,setProgress:n,close:o,reduced:r,isOpen:i,editor:s,submitText:a,submitSize:l})=>{const{t:u}=U();let c=null;e==="sending"&&(a=null,c=S.jsx(Od,{className:"h-[24px] w-[24px] fill-white dark:fill-black"}));const m=x.useCallback(f=>{if(s!=null&&s.isFocused){f.stopPropagation();return}},[s]),d=x.useCallback(async()=>{if(!(!s||s.isEmpty)){n("sending");try{await t({html:s.getHTML()})}catch{n("error");return}return o?o():(n("sent"),s.chain().clearContent().blur().run()),!1}},[n,s,t,o]);return x.useEffect(()=>{const f=p=>{if(p.metaKey||p.ctrlKey){p.key==="Enter"&&(s!=null&&s.isFocused)&&(d(),s==null||s.commands.blur());return}if(p.key==="Escape"){s!=null&&s.isFocused&&(o?o():s==null||s.commands.blur());return}};return window.addEventListener("keydown",f,{passive:!0}),()=>{window.removeEventListener("keydown",f,{passive:!0})}},[s,o,d]),S.jsxs("div",{className:`relative w-full pl-[40px] transition-[padding] delay-100 duration-150 sm:pl-[44px] ${r&&"pl-0"} ${i&&"pl-[1px] pt-[48px] sm:pl-[44px] sm:pt-[40px]"}`,children:[S.jsx("div",{className:`text-md min-h-[120px] w-full rounded-md border border-[rgba(0,0,0,0.1)] bg-[rgba(255,255,255,0.9)] 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-[rgba(255,255,255,0.14)] dark:text-neutral-300${i?"cursor-text":"cursor-pointer"}
149
+ `,"data-testid":"form-editor",children:S.jsx(Y$,{editor:s,onMouseDown:m,onTouchStart:m})}),S.jsxs("div",{className:"absolute bottom-1 right-1 flex space-x-4 transition-[opacity] duration-150 sm:bottom-2 sm:right-2",children:[o&&S.jsx("button",{className:"ml-2.5 font-sans text-sm font-medium text-neutral-500 outline-0 dark:text-neutral-400",type:"button",onClick:o,children:u("Cancel")}),S.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-[6px] border bg-neutral-900 px-3 py-2 text-center font-sans text-base font-medium text-white outline-0 transition-[opacity] duration-150 sm:text-sm dark:bg-[rgba(255,255,255,0.9)] dark:text-neutral-800`,"data-testid":"submit-form-button",type:"button",onClick:d,children:[S.jsx("span",{children:c}),a&&S.jsx("span",{children:a})]})]})]})},TC=({show:t,name:e,expertise:n,editName:o,editExpertise:r})=>S.jsx(lo,{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:S.jsxs("div",{className:"flex flex-wrap",children:[S.jsx("div",{className:"w-full font-sans text-base font-bold leading-snug text-[rgb(23,23,23)] sm:w-auto sm:text-sm dark:text-[rgba(255,255,255,0.85)]","data-testid":"member-name",onClick:o,children:e||"Anonymous"}),S.jsx("div",{className:"flex items-baseline justify-start",children:S.jsxs("button",{className:`group flex items-center justify-start whitespace-nowrap text-left font-sans text-base leading-snug text-[rgba(0,0,0,0.5)] transition duration-150 hover:text-[rgba(0,0,0,0.75)] sm:text-sm dark:text-[rgba(255,255,255,0.5)] dark:hover:text-[rgba(255,255,255,0.4)] ${!n&&"text-[rgba(0,0,0,0.3)] hover:text-[rgba(0,0,0,0.5)] dark:text-[rgba(255,255,255,0.3)]"}`,"data-testid":"expertise-button",type:"button",onClick:r,children:[S.jsxs("span",{children:[S.jsx("span",{className:"mx-[0.3em] hidden sm:inline",children:"·"}),n||"Add your expertise"]}),n&&S.jsx(K1,{className:"ml-1 h-[12px] w-[12px] translate-x-[-6px] stroke-[rgba(0,0,0,0.5)] opacity-0 transition-all duration-100 ease-out group-hover:translate-x-0 group-hover:stroke-[rgba(0,0,0,0.75)] group-hover:opacity-100 dark:stroke-[rgba(255,255,255,0.5)] dark:group-hover:stroke-[rgba(255,255,255,0.3)]"})]})})]})}),O0=({comment:t,submit:e,submitText:n,submitSize:o,close:r,editor:i,reduced:s,isOpen:a})=>{var E,b;const{member:l,dispatchAction:u}=U(),c=RC("addDetailsPopup"),[m,d]=x.useState("default"),f=x.useRef(null),p=(l==null?void 0:l.name)??((E=t==null?void 0:t.member)==null?void 0:E.name),y=(l==null?void 0:l.expertise)??((b=t==null?void 0:t.member)==null?void 0:b.expertise);(m==="sending"||p&&c)&&(a=!0);const h=$=>{if(i!=null&&i.isFocused){$.preventDefault();return}},g=x.useCallback($=>{var R;(R=i==null?void 0:i.commands)==null||R.blur(),u("openPopup",{type:"addDetailsPopup",expertiseAutofocus:$.expertiseAutofocus??!1,callback:function(C){!i||!f.current||C&&(i.setEditable(!0),i.commands.focus())}})},[i,u,f]),w=x.useCallback(()=>{g({expertiseAutofocus:!1})},[g]),v=x.useCallback(()=>{g({expertiseAutofocus:!0})},[g]),k=x.useCallback(()=>{if(i&&!i.isFocused){if(!p){w();return}i.commands.focus()}},[i,w,p]);return x.useEffect(()=>{i&&i.setEditable(!!p&&m!=="sending")},[i,p,m]),S.jsx("form",{ref:f,className:`-mx-3 mb-7 mt-[-10px] rounded-md transition duration-200 ${a?"cursor-default":"cursor-pointer"}`,"data-testid":"form",onClick:k,onMouseDown:h,onTouchStart:h,children:S.jsxs("div",{className:"relative w-full",children:[S.jsx("div",{className:"pr-[1px] font-sans leading-normal dark:text-neutral-300",children:S.jsx(DC,{close:r,editor:i,isOpen:a,progress:m,reduced:s,setProgress:d,submit:e,submitSize:o,submitText:n})}),S.jsxs("div",{className:"absolute left-0 top-1 flex h-11 w-full items-start justify-start sm:h-12",children:[S.jsx("div",{className:"pointer-events-none mr-2 grow-0 sm:mr-3",children:S.jsx(Fm,{comment:t})}),S.jsx("div",{className:"grow-1 mt-0.5 w-full",children:S.jsx(TC,{editExpertise:v,editName:w,expertise:y,name:p,show:a})})]})]})})},A0=({editor:t,submit:e,close:n,closeIfNotChanged:o,submitText:r,submitSize:i})=>{const{dispatchAction:s,secundaryFormCount:a}=U();x.useEffect(()=>(s("increaseSecundaryFormCount",{}),()=>{s("decreaseSecundaryFormCount",{})}),[s]),AC(()=>{a>1&&o()},[a]);const l=Im();return S.jsx("div",{className:"mt-[-16px] pr-3",children:S.jsx(O0,{close:n,editor:t,isOpen:!0,reduced:l,submit:e,submitSize:i,submitText:r})})},jC=/^\s*>\s$/,PC=ln.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",Mo(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[Vk({find:jC,type:this.type})]}}),IC=ln.create({name:"doc",topNode:!0,content:"block+"}),LC=ln.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",Mo(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:u,dispatch:c})=>{if(c&&l&&s){const m=l.filter(d=>a.includes(d.type.name));u.ensureMarks(m)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),zC="aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",FC="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5تصالات6رامكو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",lr=(t,e)=>{for(const n in e)t[n]=e[n];return t},Ld="numeric",zd="ascii",Fd="alpha",Ua="asciinumeric",Ja="alphanumeric",Bd="domain",R0="emoji",BC="scheme",HC="slashscheme",M0="whitespace";function VC(t,e){return t in e||(e[t]=[]),e[t]}function uo(t,e,n){e[Ld]&&(e[Ua]=!0,e[Ja]=!0),e[zd]&&(e[Ua]=!0,e[Fd]=!0),e[Ua]&&(e[Ja]=!0),e[Fd]&&(e[Ja]=!0),e[Ja]&&(e[Bd]=!0),e[R0]&&(e[Bd]=!0);for(const o in e){const r=VC(o,n);r.indexOf(t)<0&&r.push(t)}}function UC(t,e){const n={};for(const o in e)e[o].indexOf(t)>=0&&(n[o]=!0);return n}function We(t){t===void 0&&(t=null),this.j={},this.jr=[],this.jd=null,this.t=t}We.groups={},We.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){return e===void 0&&(e=!1),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||We.groups;let r;return e&&e.j?r=e:(r=new We(e),n&&o&&uo(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||We.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 We,lr(s.j,a.j),s.jr.push.apply(s.jr,a.jr),s.jd=a.jd,s.t=a.t):s=new We,i){if(o)if(s.t&&typeof s.t=="string"){const l=lr(UC(s.t,o),n);uo(i,l,o)}else n&&uo(i,n,o);s.t=i}return r.j[t]=s,s}};const P=(t,e,n,o,r)=>t.ta(e,n,o,r),ct=(t,e,n,o,r)=>t.tr(e,n,o,r),D0=(t,e,n,o,r)=>t.ts(e,n,o,r),O=(t,e,n,o,r)=>t.tt(e,n,o,r),_t="WORD",Hd="UWORD",Ii="LOCALHOST",Vd="TLD",Ud="UTLD",_a="SCHEME",ur="SLASH_SCHEME",Jd="NUM",T0="WS",_d="NL",cr="OPENBRACE",Li="OPENBRACKET",zi="OPENANGLEBRACKET",Fi="OPENPAREN",co="CLOSEBRACE",dr="CLOSEBRACKET",mr="CLOSEANGLEBRACKET",mo="CLOSEPAREN",Ya="AMPERSAND",Ka="APOSTROPHE",Wa="ASTERISK",Mn="AT",qa="BACKSLASH",Ga="BACKTICK",Qa="CARET",Dn="COLON",Yd="COMMA",Za="DOLLAR",At="DOT",Xa="EQUALS",Kd="EXCLAMATION",Rt="HYPHEN",el="PERCENT",tl="PIPE",nl="PLUS",ol="POUND",rl="QUERY",Wd="QUOTE",qd="SEMI",Mt="SLASH",Bi="TILDE",il="UNDERSCORE",j0="EMOJI",sl="SYM";var P0=Object.freeze({__proto__:null,WORD:_t,UWORD:Hd,LOCALHOST:Ii,TLD:Vd,UTLD:Ud,SCHEME:_a,SLASH_SCHEME:ur,NUM:Jd,WS:T0,NL:_d,OPENBRACE:cr,OPENBRACKET:Li,OPENANGLEBRACKET:zi,OPENPAREN:Fi,CLOSEBRACE:co,CLOSEBRACKET:dr,CLOSEANGLEBRACKET:mr,CLOSEPAREN:mo,AMPERSAND:Ya,APOSTROPHE:Ka,ASTERISK:Wa,AT:Mn,BACKSLASH:qa,BACKTICK:Ga,CARET:Qa,COLON:Dn,COMMA:Yd,DOLLAR:Za,DOT:At,EQUALS:Xa,EXCLAMATION:Kd,HYPHEN:Rt,PERCENT:el,PIPE:tl,PLUS:nl,POUND:ol,QUERY:rl,QUOTE:Wd,SEMI:qd,SLASH:Mt,TILDE:Bi,UNDERSCORE:il,EMOJI:j0,SYM:sl});const fr=/[a-z]/,Gd=/\p{L}/u,Qd=/\p{Emoji}/u,Zd=/\d/,I0=/\s/,L0=`
151
+ `,JC="️",_C="‍";let al=null,ll=null;function YC(t){t===void 0&&(t=[]);const e={};We.groups=e;const n=new We;al==null&&(al=z0(zC)),ll==null&&(ll=z0(FC)),O(n,"'",Ka),O(n,"{",cr),O(n,"[",Li),O(n,"<",zi),O(n,"(",Fi),O(n,"}",co),O(n,"]",dr),O(n,">",mr),O(n,")",mo),O(n,"&",Ya),O(n,"*",Wa),O(n,"@",Mn),O(n,"`",Ga),O(n,"^",Qa),O(n,":",Dn),O(n,",",Yd),O(n,"$",Za),O(n,".",At),O(n,"=",Xa),O(n,"!",Kd),O(n,"-",Rt),O(n,"%",el),O(n,"|",tl),O(n,"+",nl),O(n,"#",ol),O(n,"?",rl),O(n,'"',Wd),O(n,"/",Mt),O(n,";",qd),O(n,"~",Bi),O(n,"_",il),O(n,"\\",qa);const o=ct(n,Zd,Jd,{[Ld]:!0});ct(o,Zd,o);const r=ct(n,fr,_t,{[zd]:!0});ct(r,fr,r);const i=ct(n,Gd,Hd,{[Fd]:!0});ct(i,fr),ct(i,Gd,i);const s=ct(n,I0,T0,{[M0]:!0});O(n,L0,_d,{[M0]:!0}),O(s,L0),ct(s,I0,s);const a=ct(n,Qd,j0,{[R0]:!0});ct(a,Qd,a),O(a,JC,a);const l=O(a,_C);ct(l,Qd,a);const u=[[fr,r]],c=[[fr,null],[Gd,i]];for(let m=0;m<al.length;m++)Tn(n,al[m],Vd,_t,u);for(let m=0;m<ll.length;m++)Tn(n,ll[m],Ud,Hd,c);uo(Vd,{tld:!0,ascii:!0},e),uo(Ud,{utld:!0,alpha:!0},e),Tn(n,"file",_a,_t,u),Tn(n,"mailto",_a,_t,u),Tn(n,"http",ur,_t,u),Tn(n,"https",ur,_t,u),Tn(n,"ftp",ur,_t,u),Tn(n,"ftps",ur,_t,u),uo(_a,{scheme:!0,ascii:!0},e),uo(ur,{slashscheme:!0,ascii:!0},e),t=t.sort((m,d)=>m[0]>d[0]?1:-1);for(let m=0;m<t.length;m++){const d=t[m][0],p=t[m][1]?{[BC]:!0}:{[HC]:!0};d.indexOf("-")>=0?p[Bd]=!0:fr.test(d)?Zd.test(d)?p[Ua]=!0:p[zd]=!0:p[Ld]=!0,D0(n,d,d,p)}return D0(n,"localhost",Ii,{ascii:!0}),n.jd=new We(sl),{start:n,tokens:lr({groups:e},P0)}}function KC(t,e){const n=WC(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,u=0,c=null,m=-1,d=-1;for(;s<o&&(l=a.go(n[s]));)a=l,a.accepts()?(m=0,d=0,c=a):m>=0&&(m+=n[s].length,d++),u+=n[s].length,i+=n[s].length,s++;i-=m,s-=d,u-=m,r.push({t:c.t,v:e.slice(i-u,i),s:i-u,e:i})}return r}function WC(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 Tn(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 We(o),i.jr=r.slice(),t.j[l]=i),t=i}return i=new We(n),i.jr=r.slice(),t.j[e[s-1]]=i,i}function z0(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 Hi={defaultProtocol:"http",events:null,format:F0,formatHref:F0,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Xd(t,e){e===void 0&&(e=null);let n=lr({},Hi);t&&(n=lr(n,t instanceof Xd?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}Xd.prototype={o:Hi,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]:Hi[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 F0(t){return t}function B0(t,e){this.t="token",this.v=t,this.tk=e}B0.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){return t===void 0&&(t=Hi.defaultProtocol),{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),u=t.get("rel",n,e),c=t.getObj("attributes",n,e),m=t.getObj("events",n,e);return s.href=o,a&&(s.class=a),l&&(s.target=l),u&&(s.rel=u),c&&lr(s,c),{tagName:r,attributes:s,content:i,eventListeners:m}}};function ul(t,e){class n extends B0{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 H0=ul("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),V0=ul("text"),qC=ul("nl"),fo=ul("url",{isLink:!0,toHref(t){return t===void 0&&(t=Hi.defaultProtocol),this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==Ii&&t[1].t===Dn}}),ve=t=>new We(t);function GC(t){let{groups:e}=t;const n=e.domain.concat([Ya,Wa,Mn,qa,Ga,Qa,Za,Xa,Rt,Jd,el,tl,nl,ol,Mt,sl,Bi,il]),o=[Ka,mr,co,dr,mo,Dn,Yd,At,Kd,zi,cr,Li,Fi,rl,Wd,qd],r=[Ya,Ka,Wa,qa,Ga,Qa,co,Za,Xa,Rt,cr,el,tl,nl,ol,rl,Mt,sl,Bi,il],i=ve(),s=O(i,Bi);P(s,r,s),P(s,e.domain,s);const a=ve(),l=ve(),u=ve();P(i,e.domain,a),P(i,e.scheme,l),P(i,e.slashscheme,u),P(a,r,s),P(a,e.domain,a);const c=O(a,Mn);O(s,Mn,c),O(l,Mn,c),O(u,Mn,c);const m=O(s,At);P(m,r,s),P(m,e.domain,s);const d=ve();P(c,e.domain,d),P(d,e.domain,d);const f=O(d,At);P(f,e.domain,d);const p=ve(H0);P(f,e.tld,p),P(f,e.utld,p),O(c,Ii,p);const y=O(d,Rt);P(y,e.domain,d),P(p,e.domain,d),O(p,At,f),O(p,Rt,y);const h=O(p,Dn);P(h,e.numeric,H0);const g=O(a,Rt),w=O(a,At);P(g,e.domain,a),P(w,r,s),P(w,e.domain,a);const v=ve(fo);P(w,e.tld,v),P(w,e.utld,v),P(v,e.domain,a),P(v,r,s),O(v,At,w),O(v,Rt,g),O(v,Mn,c);const k=O(v,Dn),E=ve(fo);P(k,e.numeric,E);const b=ve(fo),$=ve();P(b,n,b),P(b,o,$),P($,n,b),P($,o,$),O(v,Mt,b),O(E,Mt,b);const R=O(l,Dn),C=O(u,Dn),_=O(C,Mt),se=O(_,Mt);P(l,e.domain,a),O(l,At,w),O(l,Rt,g),P(u,e.domain,a),O(u,At,w),O(u,Rt,g),P(R,e.domain,b),O(R,Mt,b),P(se,e.domain,b),P(se,n,b),O(se,Mt,b);const X=O(b,cr),G=O(b,Li),Oe=O(b,zi),le=O(b,Fi);O($,cr,X),O($,Li,G),O($,zi,Oe),O($,Fi,le),O(X,co,b),O(G,dr,b),O(Oe,mr,b),O(le,mo,b),O(X,co,b);const pe=ve(fo),de=ve(fo),Q=ve(fo),ue=ve(fo);P(X,n,pe),P(G,n,de),P(Oe,n,Q),P(le,n,ue);const be=ve(),M=ve(),I=ve(),B=ve();return P(X,o),P(G,o),P(Oe,o),P(le,o),P(pe,n,pe),P(de,n,de),P(Q,n,Q),P(ue,n,ue),P(pe,o,pe),P(de,o,de),P(Q,o,Q),P(ue,o,ue),P(be,n,be),P(M,n,de),P(I,n,Q),P(B,n,ue),P(be,o,be),P(M,o,M),P(I,o,I),P(B,o,B),O(de,dr,b),O(Q,mr,b),O(ue,mo,b),O(pe,co,b),O(M,dr,b),O(I,mr,b),O(B,mo,b),O(be,mo,b),O(i,Ii,v),O(i,_d,qC),{start:i,tokens:P0}}function QC(t,e,n){let o=n.length,r=0,i=[],s=[];for(;r<o;){let a=t,l=null,u=null,c=0,m=null,d=-1;for(;r<o&&!(l=a.go(n[r].t));)s.push(n[r++]);for(;r<o&&(u=l||a.go(n[r].t));)l=null,a=u,a.accepts()?(d=0,m=a):d>=0&&d++,r++,c++;if(d<0)r-=c,r<o&&(s.push(n[r]),r++);else{s.length>0&&(i.push(em(V0,e,s)),s=[]),r-=d,c-=d;const f=m.t,p=n.slice(r-c,r);i.push(em(f,e,p))}}return s.length>0&&i.push(em(V0,e,s)),i}function em(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 ZC=typeof console<"u"&&console&&console.warn||(()=>{}),XC="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",oe={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function eE(){We.groups={},oe.scanner=null,oe.parser=null,oe.tokenQueue=[],oe.pluginQueue=[],oe.customSchemes=[],oe.initialized=!1}function U0(t,e){if(e===void 0&&(e=!1),oe.initialized&&ZC(`linkifyjs: already initialized - will not register custom scheme "${t}" ${XC}`),!/^[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`);ne.customSchemes.push([t,e])}function eE(){ne.scanner=_C(ne.customSchemes);for(let t=0;t<ne.tokenQueue.length;t++)ne.tokenQueue[t][1]({scanner:ne.scanner});ne.parser=qC(ne.scanner.tokens);for(let t=0;t<ne.pluginQueue.length;t++)ne.pluginQueue[t][1]({scanner:ne.scanner,parser:ne.parser});ne.initialized=!0}function V0(t){return ne.initialized||eE(),GC(ne.parser.start,t,YC(ne.scanner.start,t))}function U0(t,e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const o=new Zd(n),r=V0(t),i=[];for(let s=0;s<r.length;s++){const a=r[s];a.isLink&&(!e||a.t===e)&&i.push(a.toFormattedObject(o))}return i}function tE(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function nE(t){return new He({key:new mt("autolink"),appendTransaction:(e,n,o)=>{const r=e.some(u=>u.docChanged)&&!n.doc.eq(o.doc),i=e.some(u=>u.getMeta("preventAutolink"));if(!r||i)return;const{tr:s}=o,a=cb(n.doc,[...e]);if(Sb(a).forEach(({newRange:u})=>{const c=mb(o.doc,u,f=>f.isTextblock);let m,d;if(c.length>1?(m=c[0],d=o.doc.textBetween(m.pos,m.pos+m.node.nodeSize,void 0," ")):c.length&&o.doc.textBetween(u.from,u.to," "," ").endsWith(" ")&&(m=c[0],d=o.doc.textBetween(m.pos,u.to,void 0," ")),m&&d){const f=d.split(" ").filter(g=>g!=="");if(f.length<=0)return!1;const p=f[f.length-1],y=m.pos+d.lastIndexOf(p);if(!p)return!1;const h=V0(p).map(g=>g.toObject(t.defaultProtocol));if(!tE(h))return!1;h.filter(g=>g.isLink).map(g=>({...g,from:y+g.start+1,to:y+g.end+1})).filter(g=>o.schema.marks.code?!o.doc.rangeHasMark(g.from,g.to,o.schema.marks.code):!0).filter(g=>t.validate(g.value)).forEach(g=>{hh(g.from,g.to,o.doc).some(w=>w.mark.type===t.type)||s.addMark(g.from,g.to,t.type.create({href:g.href}))})}}),!!s.steps.length)return s}})}function oE(t){return new He({key:new mt("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(d=>d.nodeName==="A"))return!1;const l=ph(e.state,t.type.name),u=o.target,c=(r=u==null?void 0:u.href)!==null&&r!==void 0?r:l.href,m=(i=u==null?void 0:u.target)!==null&&i!==void 0?i:l.target;return u&&c?(window.open(c,m),!0):!1}}})}function rE(t){return new He({key:new mt("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(u=>{a+=u.textContent});const l=U0(a,{defaultProtocol:t.defaultProtocol}).find(u=>u.isLink&&u.value===a);return!a||!l?!1:(t.editor.commands.setMark(t.type,{href:l.href}),!0)}}})}const iE=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function J0(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(iE,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`,"i"))}const sE=Lr.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.protocols.forEach(t=>{if(typeof t=="string"){H0(t);return}H0(t.scheme,t.optionalSlashes)})},onDestroy(){XC()},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},validate: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||!J0(e,this.options.protocols)?!1:null}}]},renderHTML({HTMLAttributes:t}){return J0(t.href,this.options.protocols)?["a",Ro(this.options.HTMLAttributes,t),0]:["a",Ro(this.options.HTMLAttributes,{...t,href:""}),0]},addCommands(){return{setLink:t=>({chain:e})=>e().setMark(this.name,t).setMeta("preventAutolink",!0).run(),toggleLink:t=>({chain:e})=>e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Vb({find:t=>{const e=[];if(t){const{validate:n}=this.options,o=U0(t).filter(r=>r.isLink&&n(r.value));o.length&&o.forEach(r=>e.push({text:r.value,data:{href:r.href},index:r.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=[];return this.options.autolink&&t.push(nE({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:this.options.validate})),this.options.openOnClick===!0&&t.push(oE({type:this.type})),this.options.linkOnPaste&&t.push(rE({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),t}}),aE=an.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Ro(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),lE=nt.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new He({key:new mt("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,u=!s.isLeaf&&Ms(s);if((l||!this.options.showOnlyCurrent)&&u){const c=[this.options.emptyNodeClass];i&&c.push(this.options.emptyEditorClass);const m=tt.node(a,a+s.nodeSize,{class:c.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(m)}return this.options.includeChildren}),de.create(t,r)}}})]}}),uE=an.create({name:"text",group:"inline"});function em({placeholder:t,autofocus:e=!1,content:n=""}){return{extensions:[PC,uE,aE,sE.configure({openOnClick:!1}),lE.configure({placeholder:t,showOnlyWhenEditable:!1}),jC.configure({}),IC.configure({})],content:n,autofocus:e,editorProps:{attributes:{class:"gh-comment-content focus:outline-0","data-testid":"editor"}},parseOptions:{preserveWhitespace:"full"}}}const cE=({comment:t,parent:e,close:n})=>{const{dispatchAction:o,t:r}=V(),i={placeholder:r("Edit this comment"),autofocus:!1,content:t.html},s=Ed({...em(i)});x.useEffect(()=>{s&&s.chain().focus().command(({tr:c,commands:m})=>m.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:e})},[e,t,o]),l={submitText:r("Save"),submitSize:"small",submit:a},u=x.useCallback(()=>{(s==null?void 0:s.getHTML())===t.html&&n()},[s,n,t.html]);return S.jsx("div",{className:"px-3 pb-2 pt-3",children:S.jsx(N0,{close:n,closeIfNotChanged:u,editor:s,...l})})},dE=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"})),mE=({comment:t})=>{const{dispatchAction:e,member:n,commentsEnabled:o}=V(),[r,i]=x.useState(""),s=o==="paid",a=n&&!!n.paid,l=n&&(a||!s),u=()=>{l&&(t.liked?e("unlikeComment",t):(e("likeComment",t),i("animate-heartbeat"),setTimeout(()=>{i("")},400)))},c=l?"button":"span";let m="cursor-pointer";return l||(m="cursor-text"),S.jsxs(c,{className:`duration-50 group flex items-center font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${t.liked?"text-[rgba(0,0,0,0.9)] dark:text-[rgba(255,255,255,0.9)]":"text-[rgba(0,0,0,0.5)] dark:text-[rgba(255,255,255,0.5)]"} ${!t.liked&&l&&"hover:text-[rgba(0,0,0,0.75)] hover:dark:text-[rgba(255,255,255,0.25)]"} ${m}`,"data-testid":"like-button",type:"button",onClick:u,children:[S.jsx(dE,{className:r+` mr-[6px] ${t.liked?"fill-[rgba(0,0,0,0.9)] stroke-[rgba(0,0,0,0.9)] dark:fill-[rgba(255,255,255,0.9)] dark:stroke-[rgba(255,255,255,0.9)]":"stroke-[rgba(0,0,0,0.5)] dark:stroke-[rgba(255,255,255,0.5)]"} ${!t.liked&&l&&"group-hover:stroke-[rgba(0,0,0,0.75)] dark:group-hover:stroke-[rgba(255,255,255,0.25)]"} transition duration-50 ease-linear`}),t.count.likes]})},_0=({comment:t,close:e})=>{const{dispatchAction:n,t:o}=V(),r=()=>{n("hideComment",t),e()},i=()=>{n("showComment",t),e()},s=t.status!=="published";return S.jsx("div",{className:"flex flex-col",children:s?S.jsxs("button",{className:"w-full text-left text-[14px]",type:"button",onClick:i,children:[S.jsx("span",{className:"hidden sm:inline",children:o("Show comment")}),S.jsx("span",{className:"sm:hidden",children:o("Show")})]}):S.jsxs("button",{className:"w-full text-left text-[14px]",type:"button",onClick:r,children:[S.jsx("span",{className:"hidden sm:inline",children:o("Hide comment")}),S.jsx("span",{className:"sm:hidden",children:o("Hide")})]})})},fE=({comment:t,close:e,toggleEdit:n})=>{const{dispatchAction:o,t:r}=V(),i=()=>{o("deleteComment",t),e()};return S.jsxs("div",{className:"flex flex-col",children:[S.jsx("button",{className:"mb-3 w-full text-left text-[14px]","data-testid":"edit",type:"button",onClick:n,children:r("Edit")}),S.jsx("button",{className:"w-full text-left text-[14px] text-red-600",type:"button",onClick:i,children:r("Delete")})]})},pE=({comment:t,close:e})=>{const{dispatchAction:n,t:o}=V(),r=()=>{n("openPopup",{type:"reportPopup",comment:t}),e()};return S.jsx("div",{className:"flex flex-col",children:S.jsxs("button",{className:"w-full text-left text-[14px]",type:"button",onClick:r,children:[S.jsx("span",{className:"hidden sm:inline",children:o("Report comment")}),S.jsx("span",{className:"sm:hidden",children:o("Report")})]})})},hE=({comment:t,close:e,toggleEdit:n})=>{var c;const{member:o,admin:r}=V(),i=o&&((c=t.member)==null?void 0:c.uuid)===(o==null?void 0:o.uuid),s=!!r,a=x.useRef(null);x.useEffect(()=>{var f,p;const m=()=>{e()};window.addEventListener("click",m,{passive:!0});const d=(p=(f=a.current)==null?void 0:f.ownerDocument)==null?void 0:p.defaultView;return d&&d!==window&&d.addEventListener("click",m,{passive:!0}),()=>{window.removeEventListener("click",m,{passive:!0}),d&&d!==window&&d.removeEventListener("click",m,{passive:!0})}},[e]),x.useEffect(()=>{const m=d=>{d.key==="Escape"&&e()};return window.addEventListener("keydown",m,{passive:!0}),()=>{window.removeEventListener("keydown",m,{passive:!0})}},[e]);const l=m=>{m.stopPropagation()};let u=null;if(t.status==="published")i?u=S.jsx(fE,{close:e,comment:t,toggleEdit:n}):s?u=S.jsx(_0,{close:e,comment:t}):u=S.jsx(pE,{close:e,comment:t});else if(s)u=S.jsx(_0,{close:e,comment:t});else return null;return S.jsx("div",{ref:a,onClick:l,children:S.jsx("div",{className:"absolute z-10 min-w-min whitespace-nowrap rounded bg-white py-3 pl-4 pr-8 font-sans text-sm shadow-lg outline-0 sm:min-w-[150px] dark:bg-zinc-900 dark:text-white",children:u})})},gE=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"})),Y0=({comment:t,toggleEdit:e})=>{const[n,o]=x.useState(!1),{member:r,admin:i}=V(),s=!!i,a=()=>{o(c=>!c)},l=()=>{o(!1)};return!!r&&t.status==="published"||s?S.jsxs("div",{className:"relative","data-testid":"more-button",children:[S.jsx("button",{className:"outline-0",type:"button",onClick:a,children:S.jsx(gE,{className:"duration-50 gh-comments-icon gh-comments-icon-more fill-[rgba(0,0,0,0.5)] outline-0 transition ease-linear hover:fill-[rgba(0,0,0,0.75)] dark:fill-[rgba(255,255,255,0.5)] dark:hover:fill-[rgba(255,255,255,0.25)]"})}),n?S.jsx(hE,{close:l,comment:t,toggleEdit:e}):null]}):null},yE=({loadMore:t,count:e})=>{const{t:n}=V(),o=e===1?n("Show 1 more reply"):n("Show {{amount}} more replies",{amount:Ki(e)}),r=n("{{amount}} more",{amount:Ki(e)});return S.jsx("div",{className:"flex w-full items-center justify-start",children:S.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:S.jsxs("span",{className:"flex h-[39px] w-auto items-center justify-center whitespace-nowrap rounded-[6px] bg-[rgba(0,0,0,0.05)] px-4 py-2 text-center font-sans text-sm font-semibold text-neutral-700 outline-0 transition-[opacity,background] duration-150 hover:bg-[rgba(0,0,0,0.1)] dark:bg-[rgba(255,255,255,0.08)] dark:text-neutral-100 dark:hover:bg-[rgba(255,255,255,0.1)]",children:["↓ ",S.jsx("span",{className:"ml-1 hidden sm:inline",children:o}),S.jsx("span",{className:"ml-1 inline sm:hidden",children:r})]})})})},wE=({comment:t,toggleReplyMode:e})=>{const{dispatchAction:n}=V(),o=t.count.replies-t.replies.length,r=()=>{n("loadMoreReplies",{comment:t})};return S.jsxs("div",{children:[t.replies.map(i=>S.jsx(K0,{comment:i,parent:t,toggleParentReplyMode:e},i.id)),o>0&&S.jsx(yE,{count:o,loadMore:r})]})},SE=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",stroke:"black",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M7.17463 2.98741C7.17439 2.7888 7.11434 2.59487 7.00229 2.43088C6.89025 2.26689 6.73141 2.14046 6.54647 2.06805C6.36153 1.99564 6.15907 1.98061 5.96546 2.02492C5.77186 2.06923 5.5961 2.17083 5.46107 2.31648L1.86192 6.21418C1.69351 6.39677 1.60001 6.63606 1.60001 6.88445C1.60001 7.13284 1.69351 7.37213 1.86192 7.55472L5.45909 11.4524C5.59412 11.5981 5.76988 11.6997 5.96349 11.744C6.15709 11.7883 6.35955 11.7733 6.54449 11.7009C6.72943 11.6284 6.88827 11.502 7.00032 11.338C7.11236 11.174 7.17242 10.9801 7.17265 10.7815V8.86164H9.12703C10.438 8.86164 11.6953 9.38241 12.6222 10.3094C13.5492 11.2364 14.07 12.4937 14.07 13.8046V9.85023C14.07 8.53927 13.5492 7.28201 12.6222 6.35502C11.6953 5.42803 10.438 4.90726 9.12703 4.90726H7.17265L7.17463 2.98741Z",strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round"})),vE=({disabled:t,isReplying:e,toggleReply:n})=>{const{member:o,t:r}=V();return o?S.jsxs("button",{className:`duration-50 group flex items-center font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${e?"text-[rgba(0,0,0,0.9)] dark:text-[rgba(255,255,255,0.9)]":"text-[rgba(0,0,0,0.5)] hover:text-[rgba(0,0,0,0.75)] dark:text-[rgba(255,255,255,0.5)] dark:hover:text-[rgba(255,255,255,0.25)]"}`,"data-testid":"reply-button",disabled:!!t,type:"button",onClick:n,children:[S.jsx(SE,{className:`mr-[6px] ${e?"fill-[rgba(0,0,0,0.9)] stroke-[rgba(0,0,0,0.9)] dark:fill-[rgba(255,255,255,0.9)] dark:stroke-[rgba(255,255,255,0.9)]":"stroke-[rgba(0,0,0,0.5)] group-hover:stroke-[rgba(0,0,0,0.75)] dark:stroke-[rgba(255,255,255,0.5)] dark:group-hover:stroke-[rgba(255,255,255,0.25)]"} duration-50 transition ease-linear`}),r("Reply")]}):null},kE=({parent:t,close:e})=>{const{postId:n,dispatchAction:o,t:r}=V(),[,i]=NC(Pm),s={placeholder:r("Reply to comment"),autofocus:!0},a=Ed({...em(s)}),l=x.useCallback(async({html:m})=>{await o("addReply",{parent:t,reply:{post_id:n,status:"published",html:m}})},[t,n,o]),u={submitText:S.jsxs(S.Fragment,{children:[S.jsx("span",{className:"hidden sm:inline",children:r("Add reply")}),S.jsx("span",{className:"sm:hidden",children:r("Reply")})]}),submitSize:"medium",submit:l},c=x.useCallback(()=>{a!=null&&a.isEmpty&&e()},[a,e]);return S.jsx("div",{ref:i,children:S.jsx(N0,{close:e,closeIfNotChanged:c,editor:a,...u})})},K0=({comment:t,parent:e,toggleParentReplyMode:n})=>S.jsx(ao,{enter:"transition-opacity duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:!0,appear:!0,children:S.jsx(bE,{comment:t,parent:e,toggleParentReplyMode:n})}),bE=({comment:t,parent:e,toggleParentReplyMode:n})=>{const[o,r]=x.useState(!1),i=()=>{r(!1)},s=()=>{r(!0)};return o?S.jsx(cE,{close:i,comment:t,parent:e}):S.jsx(xE,{comment:t,openEditMode:s,parent:e,toggleParentReplyMode:n})},xE=({comment:t,parent:e,openEditMode:n,toggleParentReplyMode:o})=>U1(t)?S.jsx($E,{comment:t,openEditMode:n,parent:e,toggleParentReplyMode:o}):S.jsx(CE,{comment:t,openEditMode:n}),$E=({comment:t,parent:e,openEditMode:n,toggleParentReplyMode:o})=>{const[r,i]=x.useState(!1),{dispatchAction:s}=V(),a=async()=>{if(e&&o)return await o();r||await s("loadMoreReplies",{comment:t,limit:"all"}),i(m=>!m)},l=()=>{i(!1)},u=r||t.replies&&t.replies.length>0,c=S.jsx(Lm,{comment:t});return S.jsxs(q0,{avatar:c,hasReplies:u,children:[S.jsx(RE,{comment:t}),S.jsx(ME,{html:t.html}),S.jsx(DE,{comment:t,isInReplyMode:r,openEditMode:n,parent:e,toggleReplyMode:a}),S.jsx(W0,{comment:t,toggleReplyMode:a}),S.jsx(OE,{closeReplyMode:l,comment:t,isInReplyMode:r})]})},CE=({comment:t,openEditMode:e})=>{const{admin:n,t:o}=V();let r;n&&t.status==="hidden"?r=o("This comment has been hidden."):r=o("This comment has been removed.");const i=S.jsx(_1,{}),s=t.replies&&t.replies.length>0;return S.jsxs(q0,{avatar:i,hasReplies:s,children:[S.jsx("div",{className:"mt-[-3px] flex items-start",children:S.jsxs("div",{className:"flex h-10 flex-row items-center gap-4 pb-[8px] pr-4",children:[S.jsx("p",{className:"text-md mt-[4px] font-sans italic leading-normal text-[rgba(0,0,0,0.2)] sm:text-lg dark:text-[rgba(255,255,255,0.35)]",children:r}),S.jsx("div",{className:"mt-[4px]",children:S.jsx(Y0,{comment:t,toggleEdit:e})})]})}),S.jsx(W0,{comment:t})]})},EE=({comment:t})=>{var o;const{member:e}=V(),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?S.jsxs("span",{className:"[overflow-wrap:anywhere]",children:[S.jsx("span",{className:"mx-[0.3em] hidden sm:inline-block",children:"·"}),n]}):null},NE=({comment:t})=>{const{t:e}=V();return t.edited_at?S.jsxs("span",{children:[" (",e("edited"),")"]}):null},W0=({comment:t,toggleReplyMode:e})=>t.replies&&t.replies.length>0?S.jsx("div",{className:"mb-4 ml-[-1.4rem] mt-7 sm:mb-0 sm:mt-8",children:S.jsx(wE,{comment:t,toggleReplyMode:e})}):null,OE=({comment:t,isInReplyMode:e,closeReplyMode:n})=>e?S.jsx("div",{className:"my-8 sm:my-10",children:S.jsx(kE,{close:n,parent:t})}):null,AE=({comment:t})=>{const{t:e}=V(),n=H1(t,e);return S.jsx("h4",{className:"text-[rgb(23,23,23] font-sans text-base font-bold leading-snug sm:text-sm dark:text-[rgba(255,255,255,0.85)]",children:n})},RE=({comment:t})=>{var r;const e=RC(t.created_at),{member:n}=V(),o=n&&t.member&&t.member.uuid===n.uuid?n.expertise:(r=t==null?void 0:t.member)==null?void 0:r.expertise;return S.jsxs("div",{className:`mb-2 mt-0.5 flex flex-wrap items-start sm:flex-row ${o?"flex-col":"flex-row"}`,children:[S.jsx(AE,{comment:t}),S.jsx("div",{className:"flex items-baseline pr-4 font-sans text-base leading-snug text-[rgba(0,0,0,0.5)] sm:text-sm dark:text-[rgba(255,255,255,0.5)]",children:S.jsxs("span",{children:[S.jsx(EE,{comment:t}),S.jsxs("span",{title:F1(t.created_at),children:[S.jsx("span",{className:"mx-[0.3em]",children:"·"}),e]}),S.jsx(NE,{comment:t})]})})]})},ME=({html:t})=>{const e={__html:t};return S.jsx("div",{className:"mt mb-2 flex flex-row items-center gap-4 pr-4",children:S.jsx("p",{dangerouslySetInnerHTML:e,className:"gh-comment-content text-md text-pretty font-sans leading-normal text-neutral-900 [overflow-wrap:anywhere] sm:text-lg dark:text-[rgba(255,255,255,0.85)]","data-testid":"comment-content"})})},DE=({comment:t,toggleReplyMode:e,isInReplyMode:n,openEditMode:o,parent:r})=>{const{member:i,commentsEnabled:s}=V(),a=Mm(),l=s==="paid",u=i&&!!i.paid,c=i&&(u||!l)&&(a.commentImprovements?!0:!r);return S.jsxs("div",{className:"flex items-center gap-4",children:[S.jsx(mE,{comment:t}),c&&S.jsx(vE,{isReplying:n,toggleReply:e}),S.jsx(Y0,{comment:t,toggleEdit:o})]})},TE=({hasReplies:t})=>t?S.jsx("div",{className:"mb-2 h-full w-px grow rounded bg-gradient-to-b from-[rgba(0,0,0,0.08)] via-[rgba(0,0,0,0.08)] to-transparent dark:from-[rgba(255,255,255,0.08)] dark:via-[rgba(255,255,255,0.08)]"}):null,q0=({children:t,avatar:e,hasReplies:n})=>S.jsxs("div",{className:`flex w-full flex-row ${n===!0?"mb-0":"mb-7"}`,"data-testid":"comment-component",children:[S.jsxs("div",{className:"mr-2 flex flex-col items-center justify-start sm:mr-3",children:[S.jsx("div",{className:"flex-0 mb-3 sm:mb-4",children:e}),S.jsx(TE,{hasReplies:n})]}),S.jsx("div",{className:"grow",children:t})]}),jE=({showCount:t,count:e})=>{const{t:n}=V();return t?e===1?S.jsx("div",{className:"text-md text-[rgba(0,0,0,0.5)] sm:text-lg dark:text-[rgba(255,255,255,0.5)]","data-testid":"count",children:n("1 comment")}):S.jsx("div",{className:"text-md text-[rgba(0,0,0,0.5)] sm:text-lg dark:text-[rgba(255,255,255,0.5)]","data-testid":"count",children:n("{{amount}} comments",{amount:Ki(e)})}):null},PE=({title:t})=>{const{t:e}=V();return t===null?S.jsxs(S.Fragment,{children:[S.jsx("span",{className:"sm:hidden",children:e("Discussion")}),S.jsx("span",{className:"hidden sm:inline",children:e("Member discussion")})]}):S.jsx(S.Fragment,{children:t})},IE=({title:t,showCount:e,count:n})=>!t&&!e&&t!==null?null:S.jsxs("div",{className:"mb-8 flex w-full items-baseline justify-between font-sans",children:[S.jsx("h2",{className:"text-[2.2rem] font-bold tracking-tight sm:text-2xl dark:text-[rgba(255,255,255,0.85)]","data-testid":"title",children:S.jsx(PE,{title:t})}),S.jsx(jE,{count:n,showCount:e})]}),LE=({commentsCount:t})=>{const{postId:e,dispatchAction:n,t:o}=V(),r={placeholder:o(t===0?"Start the conversation":"Join the discussion"),autofocus:!1},i=Ed({...em(r)}),s=x.useCallback(async({html:c})=>{await n("addComment",{post_id:e,status:"published",html:c})},[e,n]),a=x.useRef(null);x.useEffect(()=>{if(!i)return;const c=m=>{var p;if(!i||m.metaKey||m.ctrlKey)return;let d=document.activeElement;for(;d&&d.tagName==="IFRAME"&&d.contentDocument;)d=((p=d.contentDocument)==null?void 0:p.activeElement)??null;const f=d&&(d.tagName==="INPUT"||d.tagName==="TEXTAREA"||d.tagName==="IFRAME"||d.contentEditable==="true");if(m.key==="c"&&!(i!=null&&i.isFocused)&&!f){i==null||i.commands.focus(),a.current&&Pm(a.current);return}};return window.addEventListener("keydown",c,{passive:!0}),()=>{window.removeEventListener("keydown",c,{passive:!0})}},[i]);const l={submitText:S.jsxs(S.Fragment,{children:[S.jsxs("span",{className:"hidden sm:inline",children:[o("Add comment")," "]}),S.jsx("span",{className:"sm:hidden",children:o("Comment")})]}),submitSize:"large",submit:s},u=(i==null?void 0:i.isFocused)??!1;return S.jsx("div",{ref:a,className:"mt-[-4px] px-3 pb-2 pt-3","data-testid":"main-form",children:S.jsx(E0,{editor:i,isOpen:u,reduced:!1,...l})})},zE=()=>{const{pagination:t,dispatchAction:e,t:n}=V(),o=()=>{e("loadMoreComments",{})};if(!t)return null;const r=t.total-t.page*t.limit;if(r<=0)return null;const i=r===1?n("Show 1 previous comment"):n("Show {{amount}} previous comments",{amount:Ki(r)});return S.jsx("button",{className:"text-md group mb-10 flex w-full 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:S.jsxs("span",{className:"flex h-[39px] w-full items-center justify-center whitespace-nowrap rounded-[6px] bg-[rgba(0,0,0,0.05)] px-3 py-2 text-center font-sans text-sm font-semibold text-neutral-700 outline-0 transition-[opacity,background] duration-150 hover:bg-[rgba(0,0,0,0.1)] dark:bg-[rgba(255,255,255,0.08)] dark:text-neutral-100 dark:hover:bg-[rgba(255,255,255,0.1)]",children:["↑ ",i]})})},ul="ghost-comments-root",FE=()=>{const{pagination:t,member:e,comments:n,commentCount:o,commentsEnabled:r,title:i,showCount:s,secundaryFormCount:a}=V(),l=n.slice().reverse().map(p=>S.jsx(K0,{comment:p},p.id)),u=Mm();x.useEffect(()=>{const p=document.getElementById(ul);p&&window.location.hash==="#ghost-comments"&&window.scrollY===0&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{p.scrollIntoView()})})},[]);const c=r==="paid",m=e&&!!e.paid,d=!e||c&&!m,f=a>0;return S.jsxs(S.Fragment,{children:[S.jsx(IE,{count:o,showCount:s,title:i}),S.jsx(zE,{}),S.jsx("div",{className:t?"":"mt-4","data-test":"comment-elements",children:l}),S.jsx("div",{children:f?null:d?S.jsx(L1,{isFirst:(t==null?void 0:t.total)===0,isPaid:c}):S.jsx(LE,{commentsCount:o})}),u!=null&&u.testFlag?S.jsx("div",{"data-testid":"this-comes-from-a-flag",style:{display:"none"}}):null]})};function BE(){return S.jsx("div",{className:"flex h-32 w-full items-center justify-center","data-testid":"loading",children:S.jsx(Nd,{className:"mb-6 h-12 w-12 fill-[rgb(225,225,225,0.9)] dark:fill-[rgba(255,255,255,0.6)]"})})}const HE=({done:t})=>{const e=(l,u,c)=>{const m=[l,u,c].map(function(d){return d/=255,d<=.03928?d/12.92:Math.pow((d+.055)/1.055,2.4)});return m[0]*.2126+m[1]*.7152+m[2]*.0722},n=(l,u)=>{const c=e(l[0],l[1],l[2]),m=e(u[0],u[1],u[2]),d=Math.max(c,m),f=Math.min(c,m);return(d+.05)/(f+.05)},{accentColor:o,colorScheme:r}=V(),s=(()=>{if(r==="light")return!1;if(r==="dark")return!0;{const l=document.getElementById(ul);if(!l||!l.parentElement)return!1;const u=getComputedStyle(l.parentElement).getPropertyValue("color"),c=u.substring(u.indexOf("(")+1,u.lastIndexOf(")")).split(/,\s*/),m=parseInt(c[0]),d=parseInt(c[1]),f=parseInt(c[2]);return n([255,255,255],[m,d,f])<5}})()?"dark":"",a={"--gh-accent-color":o??"blue",paddingTop:0,paddingBottom:24};return S.jsx("section",{className:"ghost-display "+s,"data-loaded":t,"data-testid":"content-box",style:a,children:t?S.jsx(FE,{}):S.jsx(BE,{})})};class VE extends x.Component{constructor(n){super(n);gr(this,"node");gr(this,"iframeHtml");gr(this,"iframeHead");gr(this,"iframeRoot");gr(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 S.jsxs("iframe",{srcDoc:"<!DOCTYPE html>",...s,ref:this.setNode,frameBorder:"0",style:i,title:r,children:[this.iframeHead&&kd.createPortal(o,this.iframeHead),this.iframeRoot&&kd.createPortal(n,this.iframeRoot)]})}}const UE=x.forwardRef(function(e,n){return S.jsx(VE,{...e,innerRef:n})}),JE=`*,: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}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-1{bottom:.4rem}.left-0{left:0px}.right-1{right:.4rem}.right-6{right:2.4rem}.top-0{top:0px}.top-1{top:.4rem}.top-6{top:2.4rem}.z-10{z-index:10}.-mx-3{margin-left:-1.2rem;margin-right:-1.2rem}.mx-\\[0\\.3em\\]{margin-left:.3em;margin-right:.3em}.my-8{margin-top:3.2rem;margin-bottom:3.2rem}.mb-0{margin-bottom:0}.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-8{margin-bottom:3.2rem}.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-\\[-1\\.4rem\\]{margin-left:-1.4rem}.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-10{margin-top:4rem}.mt-4{margin-top:1.6rem}.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-\\[4px\\]{margin-top:4px}.mt-auto{margin-top:auto}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.contents{display:contents}.hidden{display:none}.h-10{height:4rem}.h-11{height:4.4rem}.h-12{height:4.8rem}.h-32{height:12.8rem}.h-5{height:2rem}.h-8{height:3.2rem}.h-\\[12px\\]{height:12px}.h-\\[16px\\]{height:16px}.h-\\[24px\\]{height:24px}.h-\\[39px\\]{height:39px}.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-10{width:4rem}.w-12{width:4.8rem}.w-5{width:2rem}.w-8{width:3.2rem}.w-\\[12px\\]{width:12px}.w-\\[16px\\]{width:16px}.w-\\[24px\\]{width:24px}.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:-webkit-min-content;min-width:min-content}.grow{flex-grow:1}.grow-0{flex-grow:0}.-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 heartbeat{0%,to{transform:scale(1)}50%{transform:scale(1.3)}}.animate-heartbeat{animation:heartbeat .35s ease-in-out forwards}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.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-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-pretty{text-wrap:pretty}.rounded{border-radius:.4rem}.rounded-\\[6px\\]{border-radius:6px}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.6rem}.border{border-width:1px}.border-2{border-width:2px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-\\[rgba\\(0\\,0\\,0\\,0\\.075\\)\\]{border-color:#00000013}.border-\\[rgba\\(0\\,0\\,0\\,0\\.1\\)\\]{border-color:#0000001a}.border-neutral-200{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.bg-\\[\\#1C1C1C\\]{--tw-bg-opacity: 1;background-color:rgb(28 28 28 / var(--tw-bg-opacity))}.bg-\\[rgba\\(0\\,0\\,0\\,0\\.05\\)\\]{background-color:#0000000d}.bg-\\[rgba\\(0\\,0\\,0\\,0\\.085\\)\\]{background-color:#00000016}.bg-\\[rgba\\(255\\,255\\,255\\,0\\.9\\)\\]{background-color:#ffffffe6}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.bg-neutral-900{--tw-bg-opacity: 1;background-color:rgb(23 23 23 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-\\[rgba\\(0\\,0\\,0\\,0\\.08\\)\\]{--tw-gradient-from: rgba(0,0,0,.08) 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-\\[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)}.via-\\[rgba\\(0\\,0\\,0\\,0\\.08\\)\\]{--tw-gradient-to: rgba(0, 0, 0, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgba(0,0,0,.08) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.bg-cover{background-size:cover}.bg-no-repeat{background-repeat:no-repeat}.fill-\\[rgb\\(225\\,225\\,225\\,0\\.9\\)\\]{fill:#e1e1e1e6}.fill-\\[rgba\\(0\\,0\\,0\\,0\\.5\\)\\]{fill:#00000080}.fill-\\[rgba\\(0\\,0\\,0\\,0\\.9\\)\\]{fill:#000000e6}.fill-white{fill:#fff}.stroke-\\[rgba\\(0\\,0\\,0\\,0\\.5\\)\\]{stroke:#00000080}.stroke-\\[rgba\\(0\\,0\\,0\\,0\\.9\\)\\]{stroke:#000000e6}.stroke-white{stroke:#fff}.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-2{padding-left:.8rem;padding-right:.8rem}.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-2{padding-top:.8rem;padding-bottom:.8rem}.py-3{padding-top:1.2rem;padding-bottom:1.2rem}.py-\\[14px\\]{padding-top:14px;padding-bottom:14px}.pb-2{padding-bottom:.8rem}.pb-\\[32px\\]{padding-bottom:32px}.pb-\\[48px\\]{padding-bottom:48px}.pb-\\[68px\\]{padding-bottom:68px}.pb-\\[8px\\]{padding-bottom:8px}.pl-0{padding-left:0}.pl-4{padding-left:1.6rem}.pl-\\[1px\\]{padding-left:1px}.pl-\\[40px\\]{padding-left:40px}.pr-0{padding-right:0}.pr-3{padding-right:1.2rem}.pr-4{padding-right:1.6rem}.pr-8{padding-right:3.2rem}.pr-\\[1px\\]{padding-right:1px}.pt-0{padding-top:0}.pt-10{padding-top:4rem}.pt-3{padding-top:1.2rem}.pt-\\[40px\\]{padding-top:40px}.pt-\\[48px\\]{padding-top:48px}.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}.italic{font-style:italic}.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-\\[rgb\\(23\\,23\\,23\\)\\]{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity))}.text-\\[rgba\\(0\\,0\\,0\\,0\\.2\\)\\]{color:#0003}.text-\\[rgba\\(0\\,0\\,0\\,0\\.3\\)\\]{color:#0000004d}.text-\\[rgba\\(0\\,0\\,0\\,0\\.4\\)\\]{color:#0006}.text-\\[rgba\\(0\\,0\\,0\\,0\\.5\\)\\]{color:#00000080}.text-\\[rgba\\(0\\,0\\,0\\,0\\.9\\)\\]{color:#000000e6}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-neutral-400{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.text-neutral-600{--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity))}.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity))}.text-neutral-900{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-80{opacity:.8}.shadow-lg{--tw-shadow: 0px 0px 1px rgba(0, 0, 0, .12), 0px 4px 8px rgba(0, 0, 0, .04), 0px 8px 48px rgba(0, 0, 0, .05);--tw-shadow-colored: 0px 0px 1px var(--tw-shadow-color), 0px 4px 8px var(--tw-shadow-color), 0px 8px 48px 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\\,background\\]{transition-property:opacity,background;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-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)}.\\[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 rgba(13,13,13,.1);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:#00000040!important}.dark .gh-comment-content p.is-editor-empty:first-child:before{color:#ffffff59!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-\\[rgba\\(0\\,0\\,0\\,0\\.1\\)\\]:hover{background-color:#0000001a}.hover\\:fill-\\[rgba\\(0\\,0\\,0\\,0\\.75\\)\\]:hover{fill:#000000bf}.hover\\:text-\\[rgba\\(0\\,0\\,0\\,0\\.5\\)\\]:hover{color:#00000080}.hover\\:text-\\[rgba\\(0\\,0\\,0\\,0\\.75\\)\\]:hover{color:#000000bf}.hover\\:opacity-40:hover{opacity:.4}.hover\\:opacity-90:hover{opacity:.9}.focus\\:border-neutral-300:focus{--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity))}.focus\\:border-red-500:focus{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.focus\\:outline-0:focus{outline-width:0px}.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-\\[rgba\\(0\\,0\\,0\\,0\\.75\\)\\]{stroke:#000000bf}.group:hover .group-hover\\:opacity-100{opacity:1}.dark\\:border-\\[rgba\\(255\\,255\\,255\\,0\\.1\\)\\]:is(.dark *){border-color:#ffffff1a}.dark\\:bg-\\[rgba\\(255\\,255\\,255\\,0\\.08\\)\\]:is(.dark *){background-color:#ffffff14}.dark\\:bg-\\[rgba\\(255\\,255\\,255\\,0\\.14\\)\\]:is(.dark *){background-color:#ffffff24}.dark\\:bg-\\[rgba\\(255\\,255\\,255\\,0\\.15\\)\\]:is(.dark *){background-color:#ffffff26}.dark\\:bg-\\[rgba\\(255\\,255\\,255\\,0\\.7\\)\\]:is(.dark *){background-color:#ffffffb3}.dark\\:bg-\\[rgba\\(255\\,255\\,255\\,0\\.9\\)\\]:is(.dark *){background-color:#ffffffe6}.dark\\:bg-zinc-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(24 24 27 / var(--tw-bg-opacity))}.dark\\:from-\\[rgba\\(255\\,255\\,255\\,0\\.08\\)\\]:is(.dark *){--tw-gradient-from: rgba(255,255,255,.08) var(--tw-gradient-from-position);--tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\\:via-\\[rgba\\(255\\,255\\,255\\,0\\.08\\)\\]:is(.dark *){--tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgba(255,255,255,.08) var(--tw-gradient-via-position), var(--tw-gradient-to)}.dark\\:fill-\\[rgba\\(255\\,255\\,255\\,0\\.5\\)\\]:is(.dark *){fill:#ffffff80}.dark\\:fill-\\[rgba\\(255\\,255\\,255\\,0\\.6\\)\\]:is(.dark *){fill:#fff9}.dark\\:fill-\\[rgba\\(255\\,255\\,255\\,0\\.9\\)\\]:is(.dark *){fill:#ffffffe6}.dark\\:fill-black:is(.dark *){fill:#000}.dark\\:stroke-\\[rgba\\(0\\,0\\,0\\,0\\.6\\)\\]:is(.dark *){stroke:#0009}.dark\\:stroke-\\[rgba\\(255\\,255\\,255\\,0\\.5\\)\\]:is(.dark *){stroke:#ffffff80}.dark\\:stroke-\\[rgba\\(255\\,255\\,255\\,0\\.9\\)\\]:is(.dark *){stroke:#ffffffe6}.dark\\:text-\\[rgba\\(255\\,255\\,255\\,0\\.3\\)\\]:is(.dark *){color:#ffffff4d}.dark\\:text-\\[rgba\\(255\\,255\\,255\\,0\\.35\\)\\]:is(.dark *){color:#ffffff59}.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-\\[rgba\\(255\\,255\\,255\\,0\\.9\\)\\]:is(.dark *){color:#ffffffe6}.dark\\:text-neutral-100:is(.dark *){--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity))}.dark\\:text-neutral-300:is(.dark *){--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}.dark\\:text-neutral-400:is(.dark *){--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity))}.dark\\:text-neutral-800:is(.dark *){--tw-text-opacity: 1;color:rgb(38 38 38 / var(--tw-text-opacity))}.dark\\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\\:hover\\:bg-\\[rgba\\(255\\,255\\,255\\,0\\.1\\)\\]:hover:is(.dark *){background-color:#ffffff1a}.dark\\:hover\\:fill-\\[rgba\\(255\\,255\\,255\\,0\\.25\\)\\]:hover:is(.dark *){fill:#ffffff40}.dark\\:hover\\:text-\\[rgba\\(255\\,255\\,255\\,0\\.25\\)\\]:hover:is(.dark *){color:#ffffff40}.dark\\:hover\\:text-\\[rgba\\(255\\,255\\,255\\,0\\.4\\)\\]:hover:is(.dark *){color:#fff6}.hover\\:dark\\:text-\\[rgba\\(255\\,255\\,255\\,0\\.25\\)\\]:is(.dark *):hover{color:#ffffff40}.group:hover .dark\\:group-hover\\:stroke-\\[rgba\\(255\\,255\\,255\\,0\\.25\\)\\]:is(.dark *){stroke:#ffffff40}.group:hover .dark\\:group-hover\\:stroke-\\[rgba\\(255\\,255\\,255\\,0\\.3\\)\\]:is(.dark *){stroke:#ffffff4d}@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:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.sm\\:min-w-\\[100px\\]{min-width:100px}.sm\\:min-w-\\[150px\\]{min-width:150px}.sm\\:min-w-\\[64px\\]{min-width:64px}.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\\: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-12{padding-top:4.8rem}.sm\\:pt-\\[40px\\]{padding-top:40px}.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}}
155
- `,G0=H.forwardRef(function({children:e,onResize:n,style:o,title:r},i){const s=S.jsxs(S.Fragment,{children:[S.jsx("style",{dangerouslySetInnerHTML:{__html:JE}}),S.jsx("meta",{content:"width=device-width, initial-scale=1.0, maximum-scale=1.0",name:"viewport"})]});return S.jsx(UE,{ref:i,head:s,style:o,title:r,onResize:n,children:e})}),_E=H.forwardRef(function({children:e,style:n,title:o},r){const[i,s]=x.useState(n),a=x.useCallback(l=>{s(u=>({...u,height:`${l.scrollHeight}px`}))},[]);return S.jsx(G0,{ref:r,style:i,title:o,onResize:a,children:e})}),YE=H.forwardRef(function({children:e},n){const o={width:"100%",height:"400px"};return S.jsx(_E,{ref:n,style:o,title:"comments-frame",children:e})}),KE=({children:t,title:e})=>{const n={zIndex:"3999999",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",overflow:"hidden"};return S.jsx(G0,{style:n,title:e,children:t})},WE=({show:t,children:e,title:n,callback:o})=>{const{dispatchAction:r}=V(),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})}}),S.jsx(ao,{appear:!0,show:t,children:S.jsx(KE,{title:n,children:S.jsx("div",{children:S.jsx(ao.Child,{enter:"transition duration-200 linear",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition duration-200 linear",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:S.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-12",onMouseDown:i,children:S.jsx(ao.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})})})})})})},qE=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"})),Q0=({close:t})=>S.jsx("button",{className:"absolute right-6 top-6 opacity-30 transition-opacity duration-100 ease-out hover:opacity-40 sm:right-8 sm:top-9",type:"button",onClick:t,children:S.jsx(qE,{className:"h-5 w-5 p-1 pr-0"})}),GE=t=>{const e=x.useRef(null),n=x.useRef(null),{dispatchAction:o,member:r,accentColor:i,t:s}=V(),[a,l]=x.useState(r.name??""),[u,c]=x.useState(r.expertise??""),m=50;let d=m;r.expertise&&(d-=r.expertise.length);const[f,p]=x.useState(d),[y,h]=x.useState({name:"",expertise:""}),g=k=>{k.stopPropagation()},w=k=>{o("closePopup",{}),t.callback(k)},v=async()=>{var k;a.trim()!==""?(await o("updateMember",{name:a,expertise:u}),w(!0)):(h({name:s("Enter your name"),expertise:""}),l(""),(k=e.current)==null||k.focus())};x.useEffect(()=>{if(!jm()){const k=setTimeout(()=>{var $,R;t.expertiseAutofocus?($=n.current)==null||$.focus():(R=e.current)==null||R.focus()},200);return()=>{clearTimeout(k)}}},[e,n,t.expertiseAutofocus]);const b=()=>{const k=C=>S.jsx(ao,{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:S.jsxs("div",{className:"flex flex-row items-center justify-start gap-3 pr-4",children:[S.jsx("div",{className:"h-10 w-10 rounded-full border-2 border-white bg-cover bg-no-repeat",style:{backgroundImage:`url(${C.avatar})`}}),S.jsxs("div",{className:"flex flex-col items-start justify-center",children:[S.jsx("div",{className:"font-sans text-base font-semibold tracking-tight text-white",children:C.name}),S.jsx("div",{className:"font-sans text-sm tracking-tight text-neutral-400",children:C.expertise})]})]})},C.name),$=[],R=[{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 C=0;C<R.length;C++)$.push(k(R[C]));return $},E=Rm(s("{{amount}} characters left"),"{{amount}}",()=>S.jsx("b",{children:f}));return S.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:g,children:S.jsxs("div",{className:"flex",children:[S.jsx("div",{className:"hidden w-[50%] flex-col items-center justify-center bg-[#1C1C1C] sm:block sm:p-8",children:S.jsx("div",{className:"mt-[-1px] flex flex-col gap-9 text-left",children:b()})}),S.jsxs("div",{className:"p-0 sm:p-8",children:[S.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"),S.jsx("span",{className:"hidden sm:inline",children:"."})]}),S.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.")}),S.jsxs("section",{className:"mt-8 text-left",children:[S.jsxs("div",{className:"mb-2 flex flex-row justify-between",children:[S.jsx("label",{className:"font-sans text-base font-semibold",htmlFor:"comments-name",children:s("Name")}),S.jsx(ao,{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:!!y.name,children:S.jsx("div",{className:"font-sans text-sm text-red-500",children:y.name})})]}),S.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 ${y.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:k=>{l(k.currentTarget.value)},onKeyDown:k=>{k.key==="Enter"&&(l(k.currentTarget.value),v().catch(console.error))}}),S.jsxs("div",{className:"mb-2 mt-6 flex flex-row justify-between",children:[S.jsx("label",{className:"font-sans text-base font-semibold",htmlFor:"comments-name",children:s("Expertise")}),S.jsx("div",{className:`font-sans text-base text-neutral-400 ${f===0&&"text-red-500"}`,children:E})]}),S.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:m,name:"expertise",placeholder:s("Head of Marketing at Acme, Inc"),type:"text",value:u,onChange:k=>{const $=k.currentTarget.value;p(m-$.length),c($)},onKeyDown:k=>{k.key==="Enter"&&(c(k.currentTarget.value),v().catch(console.error))}}),S.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")})]})]}),S.jsx(Q0,{close:()=>w(!1)})]})})},QE=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}))),ZE={addDetailsPopup:GE,reportPopup:({comment:t})=>{const{dispatchAction:e,t:n}=V(),[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=S.jsx(Nd,{className:"mr-2 h-[24px] w-[24px] fill-white"}),u=S.jsx(QE,{className:"mr-2 h-[16px] w-[16px]"});let c=null;o==="sending"?c=l:o==="sent"&&(c=u);const m=p=>{p.stopPropagation()},d=()=>{e("closePopup",{})},f=p=>{p.stopPropagation(),r("sending"),setTimeout(()=>{r("sent"),e("reportComment",t),setTimeout(()=>{d()},750)},1e3)};return S.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:m,children:S.jsxs("div",{className:"flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0",children:[S.jsx("h1",{className:"mb-1.5 font-sans text-[2.2rem] font-bold tracking-tight text-black",children:S.jsx("span",{children:n("Report this comment?")})}),S.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.")}),S.jsxs("div",{className:"mt-auto flex flex-col items-center justify-start gap-4 sm:mt-8 sm:flex-row",children:[S.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:[S.jsxs("span",{className:"invisible whitespace-nowrap",children:[a,S.jsx("br",{}),S.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[l,n("Sending")]}),S.jsx("br",{}),S.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[u,n("Sent")]})]}),S.jsxs("span",{className:"absolute flex h-[44px] items-center justify-center whitespace-nowrap",children:[c,s]})]}),S.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:d,children:n("Cancel")})]}),S.jsx(Q0,{close:d})]})})}},XE=()=>{const{popup:t}=V(),[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=ZE[o];if(!i)return console.warn("Unknown popup of type ",o),null;const s=t===e;return S.jsx(S.Fragment,{children:S.jsx(WE,{callback:r.callback,show:s,title:o,children:S.jsx(i,{...r})})})},e2={"{{amount}} characters left":"{{amount}} karakters oor","{{amount}} comments":"{{amount}} kommentaar","{{amount}} days ago":"{{amount}} dae gelede","{{amount}} hrs ago":"{{amount}} ure gelede","{{amount}} mins ago":"{{amount}} minute gelede","{{amount}} months ago":"{{amount}} maande gelede","{{amount}} more":"{{amount}} meer","{{amount}} seconds ago":"{{amount}} sekondes gelede","{{amount}} weeks ago":"{{amount}} weke gelede","{{amount}} years ago":"{{amount}} jaar gelede","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","Already a member?":"Reeds 'n lid?",Anonymous:"Anoniem","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.",Cancel:"Kanselleer",Comment:"Kommentaar","Complete your profile":"Voltooi jou profiel",Delete:"Skrap","Deleted member":"Geskrapte lid",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",Hide:"Versteek","Hide comment":"Versteek kommentaar","Jamie Larson":"Jamie Larson","Join the discussion":"Sluit aan by die bespreking","Just now":"Sopas","Local resident":"Plaaslike inwoner","Member discussion":"Lidmaat bespreking",Name:"Naam",Neurosurgeon:"Neurochirurg","One day ago":"Eendag gelede","One hour ago":"Een uur gelede","One min ago":"Een minuut gelede","One month ago":"Een maand gelede","One week ago":"'n Week gelede","One year ago":"Een jaar gelede",Reply:"Antwoord","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 {{amount}} previous comments":"Wys {{amount}} vorige kommentaar","Show 1 more reply":"Wys nog 1 antwoord","Show 1 previous comment":"Wys 1 vorige kommentaar","Show comment":"Wys kommentaar","Sign in":"Teken in","Sign up now":"Sluit nou aan","Start the conversation":"Begin die gesprek","This comment has been hidden.":"Hierdie kommentaar is weggesteek.","This comment has been removed.":"Hierdie kommentaar is verwyder.","Upgrade now":"Gradeer nou op",Yesterday:"Gister","Your request will be sent to the owner of this site.":"Jou versoek sal aan die eienaar van hierdie webwerf gestuur word."},t2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},n2={"{{amount}} characters left":"Остават {{amount}} знака","{{amount}} comments":"{{amount}} коментара","{{amount}} days ago":"Преди {{amount}} дни","{{amount}} hrs ago":"Преди {{amount}} часа","{{amount}} mins ago":"Преди {{amount}} минути","{{amount}} months ago":"Преди {{amount}} месеца","{{amount}} more":"Още {{amount}}","{{amount}} seconds ago":"Преди {{amount}} секунди","{{amount}} weeks ago":"Преди {{amount}} седмици","{{amount}} years ago":"Преди {{amount}} години","1 comment":"1 коментар","Add comment":"Нов коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Добавете контекст към коментара си, споделете името си и опита си, за да насърчите полезна дискусия.","Add reply":"Отговор","Already a member?":"Вече сте абонат?",Anonymous:"Анонимен","Become a member of {{publication}} to start commenting.":"Абонирайте се за {{publication}}, за да коментирате.","Become a paid member of {{publication}} to start commenting.":"Станете платен абонат на {{publication}}, за да коментирате.",Cancel:"Отказ",Comment:"Коментар","Complete your profile":"Попълнете профила си",Delete:"Изтриване","Deleted member":"Изтрит абонат",Discussion:"Дискусия",Edit:"Редактиране","Edit this comment":"Редактиране на коментара",edited:"редактиран","Enter your name":"Попълнете името си",Expertise:"Опит","Founder @ Acme Inc":"Основател на Компания ООД","Full-time parent":"Родител на пълно работно време","Head of Marketing at Acme, Inc":"Директор маркетинг в Компания ООД",Hide:"Скриване","Hide comment":"Скриване на коментара","Jamie Larson":"Иван Иванов","Join the discussion":"Участвайте в дискусията","Just now":"Току-що","Local resident":"Местен жител","Member discussion":"Дискусия за абонатите",Name:"Име",Neurosurgeon:"Неврохирург","One day ago":"Преди ден","One hour ago":"Преди час","One min ago":"Преди минута","One month ago":"Преди месец","One week ago":"Преди седмица","One year ago":"Преди година",Reply:"Отговор","Reply to comment":"Отгговор на коментара",Report:"Докладване","Report comment":"Докладване на коментара","Report this comment?":"Ще докладвате ли коментара?",Save:"Запис",Sending:"Изпращане",Sent:"Изпратен",Show:"Показване","Show {{amount}} more replies":"Покажи още {{amount}} отговора","Show {{amount}} previous comments":"Покажи {{amount}} предишни коментара","Show 1 more reply":"Покажи още един отговор","Show 1 previous comment":"Покажи един предишен коментар","Show comment":"Покажи коментар","Sign in":"Вход","Sign up now":"Регистрация","Start the conversation":"Започнете дискусия","This comment has been hidden.":"Този коментар е скрит.","This comment has been removed.":"Този коментар е премахнат.","Upgrade now":"Надградете сега",Yesterday:"Вчера","Your request will be sent to the owner of this site.":"Искането ви ще бъде изпратено до собственика на сайта."},o2={"{{amount}} characters left":"{{amount}} অক্ষর বাকি","{{amount}} comments":"{{amount}} মন্তব্য","{{amount}} days ago":"{{amount}} দিন পূর্বে","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"{{amount}} মাস পূর্বে","{{amount}} more":"{{amount}}টি আরও","{{amount}} seconds ago":"{{amount}} সেকেন্ড পূর্বে","{{amount}} weeks ago":"{{amount}} সপ্তাহ পূর্বে","{{amount}} years ago":"{{amount}} বছর পূর্বে","1 comment":"১টি মন্তব্য","Add comment":"মন্তব্য যোগ করুন","Add context to your comment, share your name and expertise to foster a healthy discussion.":"আপনার মন্তব্যে প্রসঙ্গ যোগ করুন, একটি সুস্থ আলোচনা করতে আপনার নাম ও অভিজ্ঞতা শেয়ার করুন।","Add reply":"উত্তর যোগ করুন","Already a member?":"ইত:পূর্বে সদস্য?",Anonymous:"অজ্ঞাতনামা","Become a member of {{publication}} to start commenting.":"{{publication}} এর সদস্য হন মন্তব্য করার জন্য।","Become a paid member of {{publication}} to start commenting.":"{{publication}} এর পেইড সদস্য হন মন্তব্য করার জন্য।",Cancel:"বাতিল করুন",Comment:"মন্তব্য","Complete your profile":"আপনার প্রোফাইল সম্পূর্ণ করুন",Delete:"মুছে ফেলুন","Deleted member":"মুছে ফেলা সদস্য",Discussion:"আলোচনা",Edit:"সম্পাদনা","Edit this comment":"এই মন্তব্য সম্পাদনা করুন",edited:"","Enter your name":"আপনার নাম লিখুন",Expertise:"বিশেষজ্ঞতা","Founder @ Acme Inc":"প্রতিষ্ঠাতা @ বাংলাদেশ ট্রেড হাব","Full-time parent":"পূর্ণকালীন অভিভাবক","Head of Marketing at Acme, Inc":"মার্কেটিং প্রধান @ বাংলাদেশ ট্রেড হাব",Hide:"লুকান","Hide comment":"মন্তব্য লুকান","Jamie Larson":"শাহ নেওয়াজ","Join the discussion":"আলোচনায় যোগ দিন","Just now":"এখনই","Local resident":"স্থানীয় বাসিন্দা","Member discussion":"সদস্য আলোচনা",Name:"নাম",Neurosurgeon:"নিউরোসার্জন","One day ago":"একদিন পূর্বে","One hour ago":"এক ঘণ্টা পূর্বে","One min ago":"","One month ago":"এক মাস পূর্বে","One week ago":"এক সপ্তাহ পূর্বে","One year ago":"এক বছর পূর্বে",Reply:"উত্তর","Reply to comment":"মন্তব্যের উত্তর দিন",Report:"প্রতিবেদন","Report comment":"মন্তব্য প্রতিবেদন করুন","Report this comment?":"এই মন্তব্য প্রতিবেদন করবেন?",Save:"সংরক্ষণ করুন",Sending:"পাঠানো হচ্ছে",Sent:"পাঠানো হয়েছে",Show:"দেখান","Show {{amount}} more replies":" আরো {{amount}}টি উত্তর দেখান","Show {{amount}} previous comments":"পূর্বের {{amount}}টি মন্তব্য দেখান","Show 1 more reply":"১টি আরো উত্তর দেখান","Show 1 previous comment":"১টি পূর্বের মন্তব্য দেখান","Show comment":"মন্তব্য দেখান","Sign in":"সাইন ইন করুন","Sign up now":"এখনই সাইন আপ করুন","Start the conversation":"আলোচনা শুরু করুন","This comment has been hidden.":"এই মন্তব্য লুকানো হয়েছে।","This comment has been removed.":"এই মন্তব্য মুছে ফেলা হয়েছে।","Upgrade now":"এখনই আপগ্রেড করুন",Yesterday:"গতকাল","Your request will be sent to the owner of this site.":"আপনার অনুরোধ সাইটের মালিকের কাছে পাঠানো হবে।"},r2={"{{amount}} characters left":"Preostalo {{amount}} karaktera","{{amount}} comments":"{{amount}} komentara","{{amount}} days ago":"Prije {{amount}} dana","{{amount}} hrs ago":"Prije {{amount}} sati","{{amount}} mins ago":"Prije {{amount}} minuta","{{amount}} months ago":"Prije {{amount}} mjeseci","{{amount}} more":"Još {{amount}}","{{amount}} seconds ago":"Prije {{amount}} sekundi","{{amount}} weeks ago":"Prije {{amount}} sedmica","{{amount}} years ago":"Prije {{amount}} godina","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","Already a member?":"Već si član?",Anonymous:"Anoniman","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.",Cancel:"Otkaži",Comment:"Komentar","Complete your profile":"Dovrši svoj profil",Delete:"Obriši","Deleted member":"Obrisan član",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",Hide:"Sakrij","Hide comment":"Sakrij komentar","Jamie Larson":"Vanja Larsić","Join the discussion":"Pridruži se diskusiji","Just now":"Upravo sada","Local resident":"Lokalni stanovnik","Member discussion":"Diskusija članova",Name:"Ime",Neurosurgeon:"Neurohirurg","One day ago":"Prije jedan dan","One hour ago":"Prije jedan sat","One min ago":"Prije jedan minut","One month ago":"Prije jedan mjesec","One week ago":"Prije jednu sedmicu","One year ago":"Prije jednu godinu",Reply:"Odgovori","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 {{amount}} previous comments":"Prikaži prethodnih {{amount}} komentara","Show 1 more reply":"Prikaži još jedan odgovor","Show 1 previous comment":"Prikaži prethodni komentar","Show comment":"Prikaži komentar","Sign in":"Prijavi se","Sign up now":"Postani član","Start the conversation":"Započni diskusiju","This comment has been hidden.":"Ovaj komentar je sakriven.","This comment has been removed.":"Ovaj komentar je uklonjen.","Upgrade now":"Nadogradi račun sada",Yesterday:"Jučer","Your request will be sent to the owner of this site.":"Tvoj zahtjev je poslan vlasniku stranice."},i2={"{{amount}} characters left":"{{amount}} caràcters restants","{{amount}} comments":"{{amount}} comentaris","{{amount}} days ago":"Fa {{amount}} dies","{{amount}} hrs ago":"Fa {{amount}} hores","{{amount}} mins ago":"Fa {{amount}} minuts","{{amount}} months ago":"Fa {{amount}} mesos","{{amount}} more":"","{{amount}} seconds ago":"Fa {{amount}} segons","{{amount}} weeks ago":"Fa {{amount}} setmanes","{{amount}} years ago":"Fa {{amount}} anys","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","Already a member?":"Ja ets membre?",Anonymous:"Anònim","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",Cancel:"Cancel·lar",Comment:"Comentari","Complete your profile":"Completa el teu perfil",Delete:"Esborrar","Deleted member":"Membre esborrat",Discussion:"Debat",Edit:"Editar","Edit this comment":"Editar aquest comentari",edited:"editat","Enter your name":"Escriu el teu nom",Expertise:"Conéixement","Founder @ Acme Inc":"Fundador @ Acme Inc","Full-time parent":"Pare a temps complert","Head of Marketing at Acme, Inc":"Cap de màrqueting a Acme, Inc",Hide:"Amaga","Hide comment":"Amaga el comentari","Jamie Larson":"Jamie Larson","Join the discussion":"Uneix-te al debat","Just now":"Just ara","Local resident":"Resiudent local","Member discussion":"Debat de membres",Name:"Nom",Neurosurgeon:"Neurocirurgià","One day ago":"Fa un dia","One hour ago":"Fa una hora","One min ago":"Fa un minut","One month ago":"Fa un mes","One week ago":"Fa una setmana","One year ago":"Fa un any",Reply:"Respondre","Reply to comment":"Respondre al comentari",Report:"Reportar","Report comment":"Reportar comentari","Report this comment?":"Reportar aquest comentari?",Save:"Desa",Sending:"Enviant",Sent:"Enviar",Show:"Mostra","Show {{amount}} more replies":"Mostra {{amount}} respostes més","Show {{amount}} previous comments":"Mostra {{amount}} comentaris previs","Show 1 more reply":"Mostra 1 resposta més","Show 1 previous comment":"Mostra 1 comentari previ","Show comment":"Mostra el comentari","Sign in":"Inici de sessió","Sign up now":"Registrar-se ara","Start the conversation":"Comença la conversa","This comment has been hidden.":"Aquest comentari s'ha amagat.","This comment has been removed.":"Aquest comantari s'ha esborrat.","Upgrade now":"Millora ara",Yesterday:"Ahir","Your request will be sent to the owner of this site.":"La vostra sol·licitud s'enviarà al propietari d'aquest lloc."},s2={"{{amount}} characters left":"Zbývá {{amount}} znaků","{{amount}} comments":"{{amount}} komentářů","{{amount}} days ago":"Před {{amount}} dny","{{amount}} hrs ago":"Před {{amount}} hodinami","{{amount}} mins ago":"Před {{amount}} minutami","{{amount}} months ago":"Před {{amount}} měsíci","{{amount}} more":"Dalších {{amount}}","{{amount}} seconds ago":"Před {{amount}} sekundami","{{amount}} weeks ago":"Před {{amount}} týdny","{{amount}} years ago":"Před {{amount}} lety","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ěď","Already a member?":"Už jste členem?",Anonymous:"Anonymní","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.",Cancel:"Zrušit",Comment:"Komentář","Complete your profile":"Dokončete svůj profil",Delete:"Smazat","Deleted member":"Smazaný člen",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",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ď","Local resident":"Místní obyvatel","Member discussion":"Diskuse členů",Name:"Jméno",Neurosurgeon:"Neurochirurg","One day ago":"Před jedním dnem","One hour ago":"Před jednou hodinou","One min ago":"Před jednou minutou","One month ago":"Před jedním měsícem","One week ago":"Před jedním týdnem","One year ago":"Před jedním rokem",Reply:"Odpovědět","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 {{amount}} previous comments":"Zobrazit {{amount}} předchozích komentářů","Show 1 more reply":"Zobrazit 1 další odpověď","Show 1 previous comment":"Zobrazit 1 předchozí komentář","Show comment":"Zobrazit komentář","Sign in":"Přihlásit se","Sign up now":"Zaregistrujte se nyní","Start the conversation":"Začněte konverzaci","This comment has been hidden.":"Tento komentář byl skryt.","This comment has been removed.":"Tento komentář byl odstraněn.","Upgrade now":"Upgradovat",Yesterday:"Včera","Your request will be sent to the owner of this site.":"Vaše žádost bude odeslána vlastníkovi tohoto webu."},a2={"{{amount}} characters left":"{{amount}} tegn tilbage","{{amount}} comments":"{{amount}} kommentarer","{{amount}} days ago":"{{amount}} dage siden","{{amount}} hrs ago":"{{amount}} timer siden","{{amount}} mins ago":"{{amount}} minutter siden","{{amount}} months ago":"{{amount}} måneder siden","{{amount}} more":"{{amount}} mere","{{amount}} seconds ago":"{{amount}} sekunder siden","{{amount}} weeks ago":"{{amount}} uger siden","{{amount}} years ago":"{{amount}} år siden","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","Already a member?":"Allerede medlem?",Anonymous:"Anonym","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.",Cancel:"Annuller",Comment:"Kommentér","Complete your profile":"Færdiggør din profil",Delete:"Slet","Deleted member":"Slettet medlem",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",Hide:"Skjul","Hide comment":"Skjul kommentar","Jamie Larson":"Jamie Larson","Join the discussion":"Bliv en del af diskussionen","Just now":"Lige nu","Local resident":"Lokal borger","Member discussion":"Medlemsdiskussion",Name:"Navn",Neurosurgeon:"Neurokirurg","One day ago":"En dag siden","One hour ago":"En time siden","One min ago":"Et minut siden","One month ago":"En måned siden","One week ago":"En uge siden","One year ago":"Et år siden",Reply:"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 {{amount}} previous comments":"Vis {{amount}} tidligere kommentarer","Show 1 more reply":"Vis 1 mere svar","Show 1 previous comment":"Vis 1 tidligere kommentar","Show comment":"Vis kommentar","Sign in":"Log ind","Sign up now":"Tilmed dig nu","Start the conversation":"Start samtalen","This comment has been hidden.":"Denne kommentar er blevet skjult.","This comment has been removed.":"Denne kommentar er blevet fjernet.","Upgrade now":"Opgrader nu",Yesterday:"I går","Your request will be sent to the owner of this site.":"Din anmodning vil blive sendt til ejeren af dette site."},l2={"{{amount}} characters left":"{{amount}} Zeichen übrig","{{amount}} comments":"{{amount}} Kommentare","{{amount}} days ago":"Vor {{amount}} Tagen","{{amount}} hrs ago":"Vor {{amount}} Stunden","{{amount}} mins ago":"Vor {{amount}} Minuten","{{amount}} months ago":"Vor {{amount}} Monaten","{{amount}} more":"{{amount}} weitere","{{amount}} seconds ago":"Vor {{amount}} Sekunden","{{amount}} weeks ago":"Vor {{amount}} Wochen","{{amount}} years ago":"Vor {{amount}} Jahren","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","Already a member?":"Bist du bereits Mitglied?",Anonymous:"Anonym","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.",Cancel:"Abbrechen",Comment:"Kommentar","Complete your profile":"Vervollständige dein Profil",Delete:"Löschen","Deleted member":"Gelöschtes Mitglied",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",Hide:"Verbergen","Hide comment":"Kommentar verbergen","Jamie Larson":"Jamie Larson","Join the discussion":"Nimm an der Diskussion teil","Just now":"Gerade eben","Local resident":"Ortsansässiger","Member discussion":"Mitgliederdiskussion",Name:"Name",Neurosurgeon:"Neurochirurg","One day ago":"Vor einem Tag","One hour ago":"Vor einer Stunde","One min ago":"Vor einer Minute","One month ago":"Vor einem Monat","One week ago":"Vor einer Woche","One year ago":"Vor einem Jahr",Reply:"Antworten","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 {{amount}} previous comments":"{{amount}} frühere Kommentare anzeigen","Show 1 more reply":"1 weitere Antwort anzeigen","Show 1 previous comment":"1 vorherigen Kommentar anzeigen","Show comment":"Kommentar anzeigen","Sign in":"Einloggen","Sign up now":"Jetzt registrieren","Start the conversation":"Beginne das Gespräch","This comment has been hidden.":"Dieser Kommentar wurde ausgeblendet.","This comment has been removed.":"Dieser Kommentar wurde entfernt.","Upgrade now":"Jetzt upgraden",Yesterday:"Gestern","Your request will be sent to the owner of this site.":"Deine Anfrage wird an den Besitzer dieser Website gesendet."},u2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"Antworten","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"{{amount}} vorherige Kommentare anzeigen","Show 1 more reply":"","Show 1 previous comment":"Einen vorherigen Kommentar anzeigen","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},c2={"{{amount}} characters left":"Απομένουν {{amount}} χαρακτήρες","{{amount}} comments":"{{amount}} σχόλια","{{amount}} days ago":"πριν από {{amount}} ημέρες","{{amount}} hrs ago":"πριν από {{amount}} ώρες","{{amount}} mins ago":"πριν από {{amount}} λεπτά","{{amount}} months ago":"πριν από {{amount}} μήνες","{{amount}} more":"{{amount}} περισσότερα","{{amount}} seconds ago":"πριν από {{amount}} δευτερόλεπτα","{{amount}} weeks ago":"πριν από {{amount}} εβδομάδες","{{amount}} years ago":"πριν από {{amount}} χρόνια","1 comment":"1 σχόλιο","Add comment":"Προσθήκη σχολίου","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Προσθέστε περιεχόμενο στο σχόλιό σας, μοιραστείτε το όνομα και την εξειδίκευσή σας για να προωθήσετε μια υγιή συζήτηση.","Add reply":"Προσθήκη απάντησης","Already a member?":"Ήδη μέλος;",Anonymous:"Ανώνυμος","Become a member of {{publication}} to start commenting.":"Γίνετε μέλος του {{publication}} για να ξεκινήσετε να σχολιάζετε.","Become a paid member of {{publication}} to start commenting.":"Γίνετε premium μέλος του {{publication}} για να ξεκινήσετε να σχολιάζετε.",Cancel:"Ακύρωση",Comment:"Σχόλιο","Complete your profile":"Ολοκληρώστε το προφίλ σας",Delete:"Διαγραφή","Deleted member":"Διαγραμμένο μέλος",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",Hide:"Απόκρυψη","Hide comment":"Απόκρυψη σχολίου","Jamie Larson":"Τζέιμι Λάρσον","Join the discussion":"Συμμετοχή στη συζήτηση","Just now":"Μόλις τώρα","Local resident":"Τοπικός κάτοικος","Member discussion":"Συζήτηση μελών",Name:"Όνομα",Neurosurgeon:"Νευροχειρουργός","One day ago":"Πριν από μία ημέρα","One hour ago":"Πριν από μία ώρα","One min ago":"Πριν από ένα λεπτό","One month ago":"Πριν από ένα μήνα","One week ago":"Πριν από μία εβδομάδα","One year ago":"Πριν από ένα χρόνο",Reply:"Απάντηση","Reply to comment":"Απάντηση στο σχόλιο",Report:"Αναφορά","Report comment":"Αναφορά σχολίου","Report this comment?":"Αναφορά αυτού του σχολίου;",Save:"Αποθήκευση",Sending:"Αποστολή",Sent:"Απεστάλη",Show:"Εμφάνιση","Show {{amount}} more replies":"Εμφάνιση {{amount}} περισσότερων απαντήσεων","Show {{amount}} previous comments":"Εμφάνιση {{amount}} προηγούμενων σχολίων","Show 1 more reply":"Εμφάνιση 1 ακόμα απάντησης","Show 1 previous comment":"Εμφάνιση 1 προηγούμενου σχολίου","Show comment":"Εμφάνιση σχολίου","Sign in":"Σύνδεση","Sign up now":"Εγγραφείτε τώρα","Start the conversation":"Ξεκινήστε τη συζήτηση","This comment has been hidden.":"Αυτό το σχόλιο έχει κρυφτεί.","This comment has been removed.":"Αυτό το σχόλιο έχει αφαιρεθεί.","Upgrade now":"Αναβάθμιση τώρα",Yesterday:"Χθες","Your request will be sent to the owner of this site.":"Το αίτημά σας θα σταλεί στον ιδιοκτήτη αυτού του ιστότοπου."},d2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},m2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},f2={"{{amount}} characters left":"{{amount}} caracteres restantes","{{amount}} comments":"{{amount}} comentarios","{{amount}} days ago":"{{amount}} días atrás","{{amount}} hrs ago":"{{amount}} horas atrás","{{amount}} mins ago":"{{amount}} minutos atrás","{{amount}} months ago":"{{amount}} meses atrás","{{amount}} more":"{{amount}} más","{{amount}} seconds ago":"{{amount}} segundos atrás","{{amount}} weeks ago":"{{amount}} semanas atrás","{{amount}} years ago":"{{amount}} años atrás","1 comment":"1 comentario","Add comment":"Agregar comentario","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Agrega contexto a tu comentario, comparte tu nombre y experiencia para fomentar una discusión sana.","Add reply":"Agregar respuesta","Already a member?":"¿Ya eres miembro?",Anonymous:"Anónimo","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}}.",Cancel:"Cancelar",Comment:"Comentar","Complete your profile":"Completa tu perfil",Delete:"Eliminar","Deleted member":"Eliminar miembro",Discussion:"Discusión",Edit:"Editar","Edit this comment":"Editar este comentario",edited:"editado","Enter your name":"Ingresa tu nombre",Expertise:"Experiencia","Founder @ Acme Inc":"Fundador @ Acme Inc","Full-time parent":"Padres de tiempo completo","Head of Marketing at Acme, Inc":"Jefe de Marketing en Acme, Inc",Hide:"Ocultar","Hide comment":"Ocultar comentario","Jamie Larson":"Jamie Larson","Join the discussion":"Únete a la discusión","Just now":"Justo ahora","Local resident":"Residente local","Member discussion":"Discusión de miembros",Name:"Nombre",Neurosurgeon:"Neurocirujano","One day ago":"Hace un día","One hour ago":"Hace una hora","One min ago":"Hace un minuto","One month ago":"Hace un mes","One week ago":"Hace una semana","One year ago":"Hace un año",Reply:"Responder","Reply to comment":"Responder al comentario",Report:"Reportar","Report comment":"Reportar comentario","Report this comment?":"¿Reportar este comentario?",Save:"Guardar",Sending:"Enviando",Sent:"Enviar",Show:"Mostrar","Show {{amount}} more replies":"Mostrar {{amount}} respuestas más","Show {{amount}} previous comments":"Mostrar {{amount}} comentarios previos","Show 1 more reply":"Mostrar 1 respuesta más","Show 1 previous comment":"Mostrar 1 comentario previo","Show comment":"Mostrar comentario","Sign in":"Inicia sesión","Sign up now":"Regístrate ahora","Start the conversation":"Comienza la conversación","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",Yesterday:"Ayer","Your request will be sent to the owner of this site.":"Tu requerimiento será enviado al dueño de este sitio web."},p2={"{{amount}} characters left":"{{amount}} tähemärki jäänud","{{amount}} comments":"{{amount}} kommentaari","{{amount}} days ago":"{{amount}} päeva tagasi","{{amount}} hrs ago":"{{amount}} tundi tagasi","{{amount}} mins ago":"{{amount}} minutit tagasi","{{amount}} months ago":"{{amount}} kuud tagasi","{{amount}} more":"{{amount}} veel","{{amount}} seconds ago":"{{amount}} sekundit tagasi","{{amount}} weeks ago":"{{amount}} nädalat tagasi","{{amount}} years ago":"{{amount}} aastat tagasi","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","Already a member?":"Juba liige?",Anonymous:"Anonüümne","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.",Cancel:"Tühista",Comment:"Kommentaar","Complete your profile":"Täida oma profiil",Delete:"Kustuta","Deleted member":"Kustutatud liige",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",Hide:"Peida","Hide comment":"Peida kommentaar","Jamie Larson":"Jamie Larson","Join the discussion":"Liitu aruteluga","Just now":"Just praegu","Local resident":"Kohalik elanik","Member discussion":"Liikmete arutelu",Name:"Nimi",Neurosurgeon:"Neurokirurg","One day ago":"Üks päev tagasi","One hour ago":"Üks tund tagasi","One min ago":"Üks minut tagasi","One month ago":"Üks kuu tagasi","One week ago":"Üks nädal tagasi","One year ago":"Üks aasta tagasi",Reply:"Vasta","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 {{amount}} previous comments":"Näita {{amount}} eelmist kommentaari","Show 1 more reply":"Näita 1 vastus veel","Show 1 previous comment":"Näita eelmist kommentaari","Show comment":"Näita kommentaari","Sign in":"Logi sisse","Sign up now":"Registreeru nüüd","Start the conversation":"Alusta vestlust","This comment has been hidden.":"See kommentaar on peidetud.","This comment has been removed.":"See kommentaar on eemaldatud.","Upgrade now":"Uuenda nüüd",Yesterday:"Eile","Your request will be sent to the owner of this site.":"Teie taotlus saadetakse selle saidi omanikule."},h2={"{{amount}} characters left":"{{amount}} حرف باقی‌مانده است","{{amount}} comments":"{{amount}} دیدگاه","{{amount}} days ago":"{{amount}} روز پیش","{{amount}} hrs ago":"{{amount}} ساعت پیش","{{amount}} mins ago":"{{amount}} دقیقه پیش","{{amount}} months ago":"{{amount}} ماه پیش","{{amount}} more":"{{amount}} بیشتر","{{amount}} seconds ago":"{{amount}} ثانیه پیش","{{amount}} weeks ago":"{{amount}} هفته پیش","{{amount}} years ago":"{{amount}} سال پیش","1 comment":"یک دیدگاه","Add comment":"دیدگاهی بفرستید","Add context to your comment, share your name and expertise to foster a healthy discussion.":"به دیدگاه خود موضوعیت ببخشید و با به اشتراک‌گذاری نام و تخصص خود یک گفتمان سالم ایجاد کنید.","Add reply":"پاسخی بدهید","Already a member?":"عضو هستید؟",Anonymous:"ناشناس","Become a member of {{publication}} to start commenting.":"عضو وب‌سایت {{publication}} شوید تا مجوز ارسال دیدگاه دریافت کنید.","Become a paid member of {{publication}} to start commenting.":"حق اشتراک وب‌سایت {{publication}} را پرداخت کنید تا مجوز ارسال دیدگاه دریافت کنید.",Cancel:"انصراف",Comment:"دیدگاه","Complete your profile":"نمایه خود را کامل کنید",Delete:"پاک کردن","Deleted member":"حساب پاک‌شده",Discussion:"گفتمان",Edit:"ویرایش","Edit this comment":"ویرایش این دیدگاه",edited:"ویرایش‌شده","Enter your name":"نام خود را بنویسید",Expertise:"تخصص","Founder @ Acme Inc":"مدیر عامل یک شرکت خیالی","Full-time parent":" خانه‌دار تمام وقت","Head of Marketing at Acme, Inc":"سرپرست بخش بازاریابی یک شرکت خیالی",Hide:"مخفی کردن","Hide comment":"مخفی کردن دیدگاه","Jamie Larson":"جیمی لارسن","Join the discussion":"به گفتمان بپیوندید","Just now":"پیوستن","Local resident":"ساکن محلی","Member discussion":"گفتمان کاربران",Name:"نام",Neurosurgeon:"جراح مغز و اعصاب","One day ago":"یک روز پیش","One hour ago":"یک ساعت پیش","One min ago":"یک دقیقه پیش","One month ago":"یک ماه پیش","One week ago":"یک هفته پیش","One year ago":"یک سال پیش",Reply:"پاسخ دادن","Reply to comment":"پاسخ دادن به دیدگاه",Report:"گزارش","Report comment":"گزارش دیدگاه","Report this comment?":"می‌خواهید این دیدگاه را گزارش کنید؟",Save:"ذخیره کردن",Sending:"در حال ارسال",Sent:"ارسال شد",Show:"نمایش","Show {{amount}} more replies":"نمایش {{amount}} پاسخ بیشتر","Show {{amount}} previous comments":"نمایش {{amount}} دیدگاه قبل‌تر","Show 1 more reply":"نمایش یک دیدگاه بیشتر","Show 1 previous comment":"نمایش یک دیدگاه قبل‌تر","Show comment":"نمایش دیدگاه","Sign in":"ورود به حساب","Sign up now":"ایجاد حساب","Start the conversation":"گفت‌وگویی شروع کنید","This comment has been hidden.":"این دیدگاه مخفی شده است","This comment has been removed.":"این دیدگاه پاک شده است","Upgrade now":"ارتقاء دهید",Yesterday:"دیروز","Your request will be sent to the owner of this site.":"درخواست شما برای مدیر این وب‌سایت ارسال خواهد شد."},g2={"{{amount}} characters left":"{{amount}} merkkiä jäljellä","{{amount}} comments":"{{amount}} kommenttia","{{amount}} days ago":"{{amount}} päivää sitten","{{amount}} hrs ago":"{{amount}} tuntia sitten","{{amount}} mins ago":"{{amount}} minuuttia sitten","{{amount}} months ago":"{{amount}} kuukautta sitten","{{amount}} more":"{{amount}} vielä lisää","{{amount}} seconds ago":"{{amount}} sekuntia sitten","{{amount}} weeks ago":"{{amount}} viikkoa sitten","{{amount}} years ago":"{{amount}} vuotta sitten","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","Already a member?":"Oletko jo jäsen?",Anonymous:"Anonyymi","Become a member of {{publication}} to start commenting.":"Ala {{publication}} jäseneksi pystyäksesi kommentoimaan","Become a paid member of {{publication}} to start commenting.":"Ota maksullinen jäsenyys sivulle {{publication}}, jotta pystyt kommentoimaan",Cancel:"Peruuta",Comment:"Kommentti","Complete your profile":"Täydennä profiilisi",Delete:"Poista","Deleted member":"Poista jäsen",Discussion:"Keskustelu",Edit:"Editoi","Edit this comment":"Editoi tätä kommenttia",edited:"editoitu","Enter your name":"Syötä nimesi",Expertise:"Osaaminen","Founder @ Acme Inc":"","Full-time parent":"Kokoaikainen vanhempi","Head of Marketing at Acme, Inc":"Markkinointijohtaja",Hide:"Piilota","Hide comment":"Piilota kommentti","Jamie Larson":"Jamie Larson","Join the discussion":"Liity keskusteluun","Just now":"Juuri nyt","Local resident":"Paikallinen","Member discussion":"Jäsenten keskustelu",Name:"Nimi",Neurosurgeon:"Neurokirurgi","One day ago":"Päivä sitten","One hour ago":"Tunti sitten","One min ago":"Minuutti sitten","One month ago":"Kuukausi sitten","One week ago":"Viikko sitten","One year ago":"Vuosi sitten",Reply:"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 {{amount}} previous comments":"Näytä {{amount}} edellistä kommenttia","Show 1 more reply":"Näytä 1 vastaus lisää","Show 1 previous comment":"Näytä edellinen kommentti","Show comment":"Näytä kommentti","Sign in":"Kirjaudu sisään","Sign up now":"Rekisteröidy nyt","Start the conversation":"Aloita keskustelu","This comment has been hidden.":"Tämä kommentti on piilotettu","This comment has been removed.":"Tämä kommentti on poistettu","Upgrade now":"Korota nyt",Yesterday:"Eilen","Your request will be sent to the owner of this site.":"Sinun pyyntösi lähetetään sivun omistajalle"},y2={"{{amount}} characters left":"{{amount}} caractères restants","{{amount}} comments":"{{amount}} commentaires","{{amount}} days ago":"Il y a {{amount}} jours","{{amount}} hrs ago":"Il y a {{amount}} heures","{{amount}} mins ago":"Il y a {{amount}} minutes","{{amount}} months ago":"Il y a {{amount}} mois","{{amount}} more":"{{amount}} supplémentaire(s)","{{amount}} seconds ago":"Il y a {{amount}} secondes","{{amount}} weeks ago":"Il y a {{amount}} semaines","{{amount}} years ago":"Il y a {{amount}} ans","1 comment":"1 commentaire","Add comment":"Ajoutez 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":"Ajoutez une réponse","Already a member?":"Déjà membre ?",Anonymous:"Anonyme","Become a member of {{publication}} to start commenting.":"Devenez membre de {{publication}} pour commencer à commenter.","Become a paid member of {{publication}} to start commenting.":"Devenez un membre payant de {{publication}} pour commencer à commenter.",Cancel:"Annuler",Comment:"Commentaire","Complete your profile":"Complétez votre profil",Delete:"Supprimer","Deleted member":"Membre supprimé",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",Hide:"Masquer","Hide comment":"Masquer le commentaire","Jamie Larson":"Jamie Larson","Join the discussion":"Rejoignez la discussion","Just now":"À l'instant","Local resident":"Résident local","Member discussion":"Discussion entre membres",Name:"Nom",Neurosurgeon:"Neurochirurgien","One day ago":"Il y a un jour","One hour ago":"Il y a une heure","One min ago":"Il y a une minute","One month ago":"Il y a un mois","One week ago":"Il y a une semaine","One year ago":"Il y a un an",Reply:"Répondre","Reply to comment":"Répondre au commentaire",Report:"Signaler","Report comment":"Signalez 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 {{amount}} previous comments":"Afficher {{amount}} commentaires précédents","Show 1 more reply":"Afficher 1 réponse supplémentaire","Show 1 previous comment":"Afficher 1 commentaire précédent","Show comment":"Afficher le commentaire","Sign in":"Se connecter","Sign up now":"Inscrivez-vous maintenant","Start the conversation":"Commencer la conversation","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",Yesterday:"Hier","Your request will be sent to the owner of this site.":"Votre demande sera transférée au propriétaire de ce site."},w2={"{{amount}} characters left":"caractaran air fhàgail: {{amount}}","{{amount}} comments":"beachdan: {{amount}}","{{amount}} days ago":"o chionn {{amount}}l","{{amount}} hrs ago":"o chionn {{amount}}u","{{amount}} mins ago":"o chionn {{amount}}m","{{amount}} months ago":"o chionn {{amount}}m","{{amount}} more":"{{amount}} a bharrachd","{{amount}} seconds ago":"o chionn {{amount}}d","{{amount}} weeks ago":"o chionn {{amount}}s","{{amount}} years ago":"o chionn {{amount}}b","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","Already a member?":"’Eil thu nad bhall mar-thà?",Anonymous:"Gun ainm","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.",Cancel:"Sguir dheth",Comment:"Beachd","Complete your profile":"Lìon a-steach a' phròifil agad",Delete:"Sguab às","Deleted member":"Ball air a sguabadh às",Discussion:"Deasbad",Edit:"Deasaich","Edit this comment":"Deasaich am beachd seo",edited:"Air a dheasachad","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",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","Local resident":"Neach-còmhnaidh ionadail","Member discussion":"Deasbad",Name:"Ainm",Neurosurgeon:"Niùro-làmh-lèigh","One day ago":"O chionn latha","One hour ago":"O chionn uair a thìde","One min ago":"O chionn mionaid","One month ago":"O chionn mìos","One week ago":"O chionn seachdain","One year ago":"O chionn bliadhna",Reply:"Cuir freagairt","Reply to comment":"Cuir freagaist 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 {{amount}} previous comments":"An àireamh de bheachdan roimhe a chìthear: {{amount}}","Show 1 more reply":"Seall beachd a bharrachd","Show 1 previous comment":"Seall am beachd roimhe","Show comment":"Seall am beachd","Sign in":"Clàraich a-steach","Sign up now":"Clàraich a-nis","Start the conversation":"Tòisich an deasbad","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",Yesterday:"An-dè","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."},S2={"{{amount}} characters left":"{{amount}} अक्षर बाकी","{{amount}} comments":"{{amount}} टिप्पणियाँ","{{amount}} days ago":"{{amount}} दिन पहले","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"{{amount}} महीने पहले","{{amount}} more":"{{amount}} और","{{amount}} seconds ago":"{{amount}} सेकंड पहले","{{amount}} weeks ago":"{{amount}} सप्ताह पहले","{{amount}} years ago":"{{amount}} साल पहले","1 comment":"1 टिप्पणी","Add comment":"टिप्पणी जोड़ें","Add context to your comment, share your name and expertise to foster a healthy discussion.":"अपनी टिप्पणी में संदर्भ जोड़ें, स्वस्थ चर्चा के लिए अपना नाम और विशेषज्ञता साझा करें।","Add reply":"जवाब जोड़ें","Already a member?":"पहले से सदस्य हैं?",Anonymous:"अनाम","Become a member of {{publication}} to start commenting.":"टिप्पणी शुरू करने के लिए {{publication}} का सदस्य बनें।","Become a paid member of {{publication}} to start commenting.":"टिप्पणी शुरू करने के लिए {{publication}} के भुगतान सदस्य बनें।",Cancel:"रद्द करें",Comment:"टिप्पणी","Complete your profile":"अपनी प्रोफ़ाइल पूरी करें",Delete:"हटाएं","Deleted member":"हटाए गए सदस्य",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 में विपणन प्रमुख",Hide:"छिपाएं","Hide comment":"टिप्पणी छिपाएं","Jamie Larson":"राहुल शर्मा","Join the discussion":"चर्चा में शामिल हों","Just now":"अभी","Local resident":"स्थानीय निवासी","Member discussion":"सदस्य चर्चा",Name:"नाम",Neurosurgeon:"न्यूरोसर्जन","One day ago":"एक दिन पहले","One hour ago":"एक घंटा पहले","One min ago":"","One month ago":"एक महीने पहले","One week ago":"एक सप्ताह पहले","One year ago":"एक साल पहले",Reply:"जवाब दें","Reply to comment":"टिप्पणी का जवाब दें",Report:"रिपोर्ट","Report comment":"टिप्पणी की रिपोर्ट करें","Report this comment?":"क्या आप इस टिप्पणी की रिपोर्ट करना चाहते हैं?",Save:"सहेजें",Sending:"भेजा जा रहा है",Sent:"भेजा गया",Show:"दिखाएं","Show {{amount}} more replies":"{{amount}} और जवाब दिखाएं","Show {{amount}} previous comments":"{{amount}} पिछली टिप्पणियाँ दिखाएं","Show 1 more reply":"1 और जवाब दिखाएं","Show 1 previous comment":"1 पिछली टिप्पणी दिखाएं","Show comment":"टिप्पणी दिखाएं","Sign in":"साइन इन करें","Sign up now":"अभी साइन अप करें","Start the conversation":"बातचीत शुरू करें","This comment has been hidden.":"इस टिप्पणी को छिपा दिया गया है।","This comment has been removed.":"इस टिप्पणी को हटा दिया गया है।","Upgrade now":"अब उन्नत करें",Yesterday:"कल","Your request will be sent to the owner of this site.":"आपका अनुरोध इस साइट के मालिक को भेजा जाएगा।"},v2={"{{amount}} characters left":"{{amount}} znakova preostalo","{{amount}} comments":"{{amount}} komentara","{{amount}} days ago":"Prije{{amount}} dana","{{amount}} hrs ago":"Prije {{amount}} sati","{{amount}} mins ago":"Prije {{amount}} minuta","{{amount}} months ago":"Prije {{amount}} mjeseci","{{amount}} more":"{{amount}} više","{{amount}} seconds ago":"Prije {{amount}} sekundi","{{amount}} weeks ago":"Prije {{amount}} tjedana","{{amount}} years ago":"Prije {{amount}} godine","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","Already a member?":"Već si član?",Anonymous:"Anonimus","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.",Cancel:"Prekini",Comment:"Komentar","Complete your profile":"Dovrši svoj profil",Delete:"Obriši","Deleted member":"Obrisan član",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",Hide:"Sakrij","Hide comment":"Sakrij komentar","Jamie Larson":"Jamie Larson","Join the discussion":"Pridruži se raspravi","Just now":"Upravo sada","Local resident":"Lokalni stanovnik","Member discussion":"Rasprava članova",Name:"Ime",Neurosurgeon:"Neurokirurg","One day ago":"Prije jedan dan","One hour ago":"Prije jednog sata","One min ago":"Prije jedne minute","One month ago":"Prije mjesec dana","One week ago":"Prije tjedan dana","One year ago":"Prije godinu dana",Reply:"Odgovori","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 {{amount}} previous comments":"Prikaži {{amount}} prethodnih komentara","Show 1 more reply":"Prikaži još jedan odgovor","Show 1 previous comment":"Prikaži prethodan komentar","Show comment":"Prikaži komentar","Sign in":"Prijava","Sign up now":"Registriraj se sada","Start the conversation":"Pokreni razgovor","This comment has been hidden.":"Ovaj komentar je skriven","This comment has been removed.":"Ovaj komentar je maknut","Upgrade now":"Nadogradite sada",Yesterday:"Jučer","Your request will be sent to the owner of this site.":"Vaš zahtjev će se poslati vasniku ovih web stranica."},k2={"{{amount}} characters left":"{{amount}} karakter maradt","{{amount}} comments":"{{amount}} hozzászólás","{{amount}} days ago":"{{amount}} napja","{{amount}} hrs ago":"{{amount}} órája","{{amount}} mins ago":"{{amount}} perce","{{amount}} months ago":"{{amount}} hónapja","{{amount}} more":"","{{amount}} seconds ago":"{{amount}} másodperce","{{amount}} weeks ago":"{{amount}} hete","{{amount}} years ago":"{{amount}} éve","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.":"Adjon kontextust hozzászólásaihoz: ossza meg nevét és foglalkozását az egészséges vita elősegítése érdekében.","Add reply":"Válasz","Already a member?":"Már van fiókja?",Anonymous:"Anonim","Become a member of {{publication}} to start commenting.":"Regisztráljon a hozzászólások írásához.","Become a paid member of {{publication}} to start commenting.":"Regisztráljon fizetős fiókot a hozzászólások írásához.",Cancel:"Mégse",Comment:"Hozzászólás","Complete your profile":"Profil befejezése",Delete:"Törlés","Deleted member":"Törölt tag",Discussion:"Hozzászólások",Edit:"Szerkesztés","Edit this comment":"Hozzászólás szerkesztése",edited:"szerkesztve","Enter your name":"Adja meg a nevét",Expertise:"Foglalkozás","Founder @ Acme Inc":"Acme Kft. alapító","Full-time parent":"Főállású szülő","Head of Marketing at Acme, Inc":"Marketing vezető — Acme Kft.",Hide:"Elrejtés","Hide comment":"Hozzászólás elrejtése","Jamie Larson":"Kiss Sára","Join the discussion":"Csatlakozzon a beszélgetéshez","Just now":"Épp most","Local resident":"Helyi lakos","Member discussion":"Hozzászólások",Name:"Név",Neurosurgeon:"Idegsebész","One day ago":"Egy napja","One hour ago":"Egy órája","One min ago":"Egy perce","One month ago":"Egy hónapja","One week ago":"Egy hete","One year ago":"Egy éve",Reply:"Válasz","Reply to comment":"Válasz erre",Report:"Jelentés","Report comment":"Hozzászólás jelentése","Report this comment?":"Hozzászólás jelentése?",Save:"Mentés",Sending:"Küldés",Sent:"Elküldve",Show:"Mutat","Show {{amount}} more replies":"Mutass még {{amount}} választ","Show {{amount}} previous comments":"Mutass {{amount}} előző hozzászólást","Show 1 more reply":"Mutass még egy választ","Show 1 previous comment":"Mutass még egy hozzászólást","Show comment":"Hozzászólás mutatása","Sign in":"Bejelentkezés","Sign up now":"Regisztráljon most","Start the conversation":"Kezdje el a beszélgetést","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":"Fizessen elő most",Yesterday:"Tegnap","Your request will be sent to the owner of this site.":"A kérését a website tulajdonosának fogjuk küldeni."},b2={"{{amount}} characters left":"{{amount}} karakter tersisa","{{amount}} comments":"{{amount}} komentar","{{amount}} days ago":"{{amount}} hari yang lalu","{{amount}} hrs ago":"{{amount}} jam yang lalu","{{amount}} mins ago":"{{amount}} menit yang lalu","{{amount}} months ago":"{{amount}} bulan yang lalu","{{amount}} more":"{{amount}} lagi","{{amount}} seconds ago":"{{amount}} detik yang lalu","{{amount}} weeks ago":"{{amount}} minggu yang lalu","{{amount}} years ago":"{{amount}} tahun yang lalu","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","Already a member?":"Sudah menjadi anggota?",Anonymous:"Anonim","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.",Cancel:"Batal",Comment:"Komentar","Complete your profile":"Lengkapi profil Anda",Delete:"Hapus","Deleted member":"Anggota dihapus",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",Hide:"Sembunyikan","Hide comment":"Sembunyikan komentar","Jamie Larson":"Sutan T. Alisjahbana","Join the discussion":"Bergabung dalam diskusi","Just now":"Baru saja","Local resident":"Penduduk lokal","Member discussion":"Diskusi anggota",Name:"Nama",Neurosurgeon:"Ahli Bedah Saraf","One day ago":"Satu hari yang lalu","One hour ago":"Satu jam yang lalu","One min ago":"Satu menit yang lalu","One month ago":"Satu bulan yang lalu","One week ago":"Satu minggu yang lalu","One year ago":"Satu tahun yang lalu",Reply:"Balas","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 {{amount}} previous comments":"Tampilkan {{amount}} komentar sebelumnya","Show 1 more reply":"Tampilkan 1 balasan lainnya","Show 1 previous comment":"Tampilkan 1 komentar sebelumnya","Show comment":"Tampilkan komentar","Sign in":"Masuk","Sign up now":"Daftar sekarang","Start the conversation":"Mulai percakapan","This comment has been hidden.":"Komentar ini telah disembunyikan.","This comment has been removed.":"Komentar ini telah dihapus.","Upgrade now":"Daftar sekarang",Yesterday:"Kemarin","Your request will be sent to the owner of this site.":"Permintaan Anda akan dikirim kepada pemilik situs ini."},x2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},$2={"{{amount}} characters left":"{{amount}} caratteri rimanenti","{{amount}} comments":"{{amount}} commenti","{{amount}} days ago":"{{amount}} giorni fa","{{amount}} hrs ago":"{{amount}} ore fa","{{amount}} mins ago":"{{amount}} minuti fa","{{amount}} months ago":"{{amount}} mesi fa","{{amount}} more":"{{amount}} in più","{{amount}} seconds ago":"{{amount}} secondi fa","{{amount}} weeks ago":"{{amount}} settimane fa","{{amount}} years ago":"{{amount}} anni fa","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","Already a member?":"Sei già iscritto?",Anonymous:"Anonimo","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.",Cancel:"Annulla",Comment:"Commenta","Complete your profile":"Completa il tuo profilo",Delete:"Elimina","Deleted member":"Utente eliminato",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",Hide:"Nascondi","Hide comment":"Nascondi commento","Jamie Larson":"Andrea Rossi","Join the discussion":"Partecipa alla discussione","Just now":"Adesso","Local resident":"Paesano","Member discussion":"Commenti",Name:"Nome",Neurosurgeon:"Neurochirurgo","One day ago":"Un giorno fa","One hour ago":"Un'ora fa","One min ago":"Un minuto fa","One month ago":"Un mese fa","One week ago":"Una settimana fa","One year ago":"Un anno fa",Reply:"Rispondi","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 {{amount}} previous comments":"Mostra altri {{amount}} commenti","Show 1 more reply":"Mostra un'altra risposta","Show 1 previous comment":"Mostra un commento precedente","Show comment":"Mostra commento","Sign in":"Accedi","Sign up now":"Accedi ora","Start the conversation":"Commenta per primo","This comment has been hidden.":"Questo commento è stato nascosto.","This comment has been removed.":"Questo commento è stato rimosso.","Upgrade now":"Abbonati ora",Yesterday:"Ieri","Your request will be sent to the owner of this site.":"La tua richiesta sarà inviata al proprietario del sito."},C2={"{{amount}} characters left":"残り{{amount}}文字","{{amount}} comments":"{{amount}}のコメント","{{amount}} days ago":"{{amount}}日前","{{amount}} hrs ago":"{{amount}}時間前","{{amount}} mins ago":"{{amount}}分前","{{amount}} months ago":"{{amount}}ヶ月前","{{amount}} more":"さらに{{amount}}個","{{amount}} seconds ago":"{{amount}}秒前","{{amount}} weeks ago":"{{amount}}週間前","{{amount}} years ago":"{{amount}}年前","1 comment":"1のコメント","Add comment":"コメントする","Add context to your comment, share your name and expertise to foster a healthy discussion.":"コメントはよく説明し、名前と専門分野を共有することで健全な議論をすすめましょう。","Add reply":"返信する","Already a member?":"メンバーですか?",Anonymous:"匿名","Become a member of {{publication}} to start commenting.":"{{publication}}のメンバーになってコメントを始めましょう。","Become a paid member of {{publication}} to start commenting.":"{{publication}}の有料メンバーになってコメントを始めましょう。",Cancel:"キャンセル",Comment:"コメント","Complete your profile":"プロフィールを完成させる",Delete:"削除","Deleted member":"削除されたメンバー",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",Hide:"非表示にする","Hide comment":"コメントを非表示にする","Jamie Larson":"ジェイミー・ラーソン","Join the discussion":"議論に参加する","Just now":"今すぐ参加する","Local resident":"地元住民","Member discussion":"メンバーによる議論",Name:"名前",Neurosurgeon:"脳神経外科医","One day ago":"1日前","One hour ago":"1時間前","One min ago":"1分前","One month ago":"1ヶ月前","One week ago":"1週間前","One year ago":"1年前",Reply:"返信する","Reply to comment":"コメントに返信する",Report:"通報する","Report comment":"コメントを通報する","Report this comment?":"このコメントを通報しますか?",Save:"保存",Sending:"送信中",Sent:"送信完了",Show:"表示する","Show {{amount}} more replies":"{{amount}}個の返信を表示する","Show {{amount}} previous comments":"前のコメントを{{amount}}個表示する","Show 1 more reply":"返信をもう1つ表示する","Show 1 previous comment":"1つ前のコメントを表示する","Show comment":"コメントを表示する","Sign in":"ログイン","Sign up now":"今すぐ新規登録する","Start the conversation":"会話を始める","This comment has been hidden.":"このコメントは非表示にされました。","This comment has been removed.":"このコメントは削除されました。","Upgrade now":"今すぐアップデートする",Yesterday:"昨日","Your request will be sent to the owner of this site.":"あなたのリクエストはこのサイトの管理者に送信されます。"},E2={"{{amount}} characters left":"{{amount}}글자 남음","{{amount}} comments":"{{amount}}개의 댓글","{{amount}} days ago":"{{amount}}일 전","{{amount}} hrs ago":"{{amount}}시간 전","{{amount}} mins ago":"{{amount}}분 전","{{amount}} months ago":"{{amount}}개월 전","{{amount}} more":"","{{amount}} seconds ago":"{{amount}}초 전","{{amount}} weeks ago":"{{amount}}주 전","{{amount}} years ago":"{{amount}}년 전","1 comment":"1개의 댓글","Add comment":"댓글 추가","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"답변 추가","Already a member?":"이미 회원이신가요?",Anonymous:"익명","Become a member of {{publication}} to start commenting.":"{{publication}}의 회원이 되어 댓글을 작성해 주세요.","Become a paid member of {{publication}} to start commenting.":"{{publication}}의 유료 회원이 되어 댓글을 작성해 주세요.",Cancel:"취소",Comment:"댓글","Complete your profile":"프로필을 완성해 주세요",Delete:"삭제","Deleted member":"삭제된 회원",Discussion:"댓글",Edit:"수정","Edit this comment":"댓글 수정",edited:"수정됨","Enter your name":"이름을 입력해 주세요",Expertise:"전문분야","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"숨기기","Hide comment":"댓글 숨기기","Jamie Larson":"","Join the discussion":"댓글에 참여해 주세요","Just now":"방금 전","Local resident":"","Member discussion":"회원들의 댓글",Name:"이름",Neurosurgeon:"","One day ago":"1일 전","One hour ago":"1시간 전","One min ago":"1분 전","One month ago":"1달 전","One week ago":"1주 전","One year ago":"1년 전",Reply:"답변","Reply to comment":"댓글에 답변",Report:"신고","Report comment":"댓글 신고","Report this comment?":"이 댓글을 신고하시겠어요?",Save:"저장",Sending:"전송중",Sent:"전송됨",Show:"보기","Show {{amount}} more replies":"{{amount}}개의 댓글 더 보기","Show {{amount}} previous comments":"{{amount}}개의 이전 댓글 보기","Show 1 more reply":"1개의 댓글 더 보기","Show 1 previous comment":"1개의 이전 댓글 보기","Show comment":"댓글 보기","Sign in":"로그인","Sign up now":"회원가입","Start the conversation":"댓글을 작성해 주세요","This comment has been hidden.":"숨김처리 된 댓글이에요.","This comment has been removed.":"삭제 된 댓글이에요.","Upgrade now":"업그레이드",Yesterday:"어제","Your request will be sent to the owner of this site.":"운영자에게 요구사항이 전달되었어요."},N2={"{{amount}} characters left":"{{amount}} таңба қалды","{{amount}} comments":"{{amount}} пікір","{{amount}} days ago":"{{amount}} күн бұрын","{{amount}} hrs ago":"{{amount}} сағат бұрын","{{amount}} mins ago":"{{amount}} минут бұрын","{{amount}} months ago":"{{amount}} ай бұрын","{{amount}} more":"тағы {{amount}}","{{amount}} seconds ago":"{{amount}} секунд бұрын","{{amount}} weeks ago":"{{amount}} апта бұрын","{{amount}} years ago":"{{amount}} жыл бұрын","1 comment":"1 пікір","Add comment":"Пікір қосу","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Талқы қызық болуы үшін өзіңіз туралы мәліметтерді қосыңыз.","Add reply":"Жауап қосу","Already a member?":"Әлдеқашан қосылдыңыз ба?",Anonymous:"Аноним","Become a member of {{publication}} to start commenting.":"Пікір қалдыру үшін {{publication}} сайтына аккаунт қажет.","Become a paid member of {{publication}} to start commenting.":"Пікір қалдыру үшін {{publication}} сайтына ақылы аккаунт қажет.",Cancel:"Бас тарту",Comment:"Пікір","Complete your profile":"Профиліңізді толтырыңыз",Delete:"Жою","Deleted member":"Жойылған аккаунт",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 маркетинг жетекшісі ",Hide:"Жасыру","Hide comment":"Пікірді жасыру","Jamie Larson":"Пәленше Түгеншиев","Join the discussion":"Талқыға қосылу","Just now":"Дәл қазір","Local resident":"Жергілікті тұрғын","Member discussion":"Мүшелер талқысы",Name:"Есімі",Neurosurgeon:"Нейрохирург","One day ago":"Бір күн бұрын","One hour ago":"Бір сағат бұрын","One min ago":"Бір минут бұрын","One month ago":"Бір ай бұрын","One week ago":"Бір апта бұрын","One year ago":"Бір жыл бұрын",Reply:"Жауап беру","Reply to comment":"Пікірге жауап беру",Report:"Шағымдану","Report comment":"Пікірге шағымдану","Report this comment?":"Осы пікірге шағым жіберілсін бе?",Save:"Сақтау",Sending:"Жіберілуде",Sent:"Жіберілді",Show:"Көрсету","Show {{amount}} more replies":"Тағы {{amount}} жауапты көрсету","Show {{amount}} previous comments":"Алдыңғы {{amount}} пікірді көрсету","Show 1 more reply":"Тағы 1 жауап көрсету","Show 1 previous comment":"Алдыңғы 1 пікірді көрсету","Show comment":"Пікірді көрсету","Sign in":"Кіру","Sign up now":"Қазір тіркелу","Start the conversation":"Талқыны бастау","This comment has been hidden.":"Бұл пікір жасырылды.","This comment has been removed.":"Бұл пікір өшірілді.","Upgrade now":"Жаңарту ",Yesterday:"Кеше","Your request will be sent to the owner of this site.":"Өтінішіңіз сайт иесіне жіберіледі."},O2={"{{amount}} characters left":"{{amount}} likę simboliai","{{amount}} comments":"{{amount}} komentarai","{{amount}} days ago":"Prieš {{amount}} d.","{{amount}} hrs ago":"Prieš {{amount}} val.","{{amount}} mins ago":"Prieš {{amount}} min.","{{amount}} months ago":"Prieš {{amount}} mėn.","{{amount}} more":"{{amount}} daugiau","{{amount}} seconds ago":"Prieš {{amount}} sek.","{{amount}} weeks ago":"Prieš {{amount}} sav.","{{amount}} years ago":"Prieš {{amount}} m.","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","Already a member?":"Jau turite paskyrą?",Anonymous:"Anoniminis","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.",Cancel:"Atšaukti",Comment:"Komentuoti","Complete your profile":"Pabaikite kurti savo profilį!",Delete:"Ištrinti","Deleted member":"Pašalintas narys",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",Hide:"Paslėpti","Hide comment":"Paslėpti komentarą","Jamie Larson":"Vardenis Pavardenis","Join the discussion":"Prisijunkite prie diskusijos","Just now":"Ką tik","Local resident":"Vietinis gyventojas","Member discussion":"Komentarai",Name:"Vardas",Neurosurgeon:"Neurochirurgas","One day ago":"Prieš dieną","One hour ago":"Prieš valandą","One min ago":"Prieš minutę","One month ago":"Prieš mėnesį","One week ago":"Prieš savaitę","One year ago":"Prieš metus",Reply:"Atsakyti","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 {{amount}} previous comments":"Rodyti ankstesnius komentarus ({{amount}})","Show 1 more reply":"Rodyti dar 1 atsakymą","Show 1 previous comment":"Rodyti ankstesnį komentarą","Show comment":"Rodyti komentarą","Sign in":"Prisijungti","Sign up now":"Registruotis","Start the conversation":"Parašykite pirmąjį komentarą","This comment has been hidden.":"Šis komentaras buvo paslėptas.","This comment has been removed.":"Šis komentaras buvo pašalintas.","Upgrade now":"Prenumeruokite",Yesterday:"Vakar","Your request will be sent to the owner of this site.":"Jūsų pranešimas bus išsiųstas svetainės savininkui."},A2={"{{amount}} characters left":"Преостануваат {{amount}} знаци.","{{amount}} comments":"{{amount}} коментари","{{amount}} days ago":"Пред {{amount}} дена","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"Пред {{amount}} месеци","{{amount}} more":"Уште {{amount}}","{{amount}} seconds ago":"Пред {{amount}} секунди","{{amount}} weeks ago":"Пред {{amount}} недели","{{amount}} years ago":"Пред {{amount}} години","1 comment":"1 коментар","Add comment":"Додајте коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додајте контекст за вашиот коментар, споделете го вашето име и експертиза за да одржите пристојна дискусија.","Add reply":"Одговорете","Already a member?":"Веќе сте член?",Anonymous:"Анонимен","Become a member of {{publication}} to start commenting.":"Станете член на {{publication}} за да можете да коментирате.","Become a paid member of {{publication}} to start commenting.":"Станете претплатен член на {{publication}} за да можеш да коментирате.",Cancel:"Откажете",Comment:"Коментирајте","Complete your profile":"Комплетирајте го вашиот профил",Delete:"Избришете","Deleted member":"Избришан член",Discussion:"Разговор",Edit:"Изменете","Edit this comment":"Изменете го овој коментар",edited:"","Enter your name":"Внесете го вашето име",Expertise:"Експертиза","Founder @ Acme Inc":"Основач @ Примерна Компанија","Full-time parent":"Родител","Head of Marketing at Acme, Inc":"Раководител на Маркетинг во Примерна Компанија",Hide:"Скријте","Hide comment":"Скријте го коментарот","Jamie Larson":"Петар Петровски","Join the discussion":"Приклучете се во разговорот","Just now":"Штотуку","Local resident":"Локал жител","Member discussion":"Разговор на членовите",Name:"Име",Neurosurgeon:"Неврохирург","One day ago":"Пред еден ден","One hour ago":"Пред еден час","One min ago":"","One month ago":"Пред еден месец","One week ago":"Пред една недела","One year ago":"Пред една година",Reply:"Одговорете","Reply to comment":"Одговор на коментарот",Report:"Пријавете","Report comment":"Пријавете коментар","Report this comment?":"Пријавете го овој коментар?",Save:"Зачувајте",Sending:"Се испраќа",Sent:"Испратено",Show:"Покажи","Show {{amount}} more replies":"Покажи уште {{amount}} одговори","Show {{amount}} previous comments":"Покажи {{amount}} претходни коментари","Show 1 more reply":"Покажи уште 1 одговор","Show 1 previous comment":"Покажи 1 претходен коментар","Show comment":"Покажи коментар","Sign in":"Најавете се","Sign up now":"Регистрирајте се","Start the conversation":"Започнете го разговорот","This comment has been hidden.":"Овој коментар беше скриен.","This comment has been removed.":"Овој коментар беше отстранет.","Upgrade now":"Надградете",Yesterday:"Вчера","Your request will be sent to the owner of this site.":"Вашето барање ќе биде испратено на сопственикот на оваа страница."},R2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},M2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},D2={"{{amount}} characters left":"Nog {{amount}} tekens over","{{amount}} comments":"{{amount}} reacties","{{amount}} days ago":"{{amount}} dagen geleden","{{amount}} hrs ago":"{{amount}} uur geleden","{{amount}} mins ago":"{{amount}} min geleden","{{amount}} months ago":"{{amount}} maanden geleden","{{amount}} more":"","{{amount}} seconds ago":"{{amount}} seconden geleden","{{amount}} weeks ago":"{{amount}} weken geleden","{{amount}} years ago":"{{amount}} jaar geleden","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","Already a member?":"Al lid?",Anonymous:"Anoniem","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.",Cancel:"Annuleren",Comment:"Verstuur","Complete your profile":"Vervolledig jouw profiel",Delete:"Verwijderen","Deleted member":"Verwijderd lid",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",Hide:"Verbergen","Hide comment":"Verberg reactie","Jamie Larson":"Jan Jansen","Join the discussion":"Doe mee aan het gesprek","Just now":"Zojuist","Local resident":"Lokale bewoner","Member discussion":"Gesprek",Name:"Naam",Neurosurgeon:"Neurochirurg","One day ago":"Een dag geleden","One hour ago":"Een uur geleden","One min ago":"Een min geleden","One month ago":"Een maand geleden","One week ago":"Een week geleden","One year ago":"Een jaar geleden",Reply:"Beantwoorden","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 {{amount}} previous comments":"Toon {{amount}} vorige reacties","Show 1 more reply":"Toon nog 1 antwoord","Show 1 previous comment":"Toon 1 vorige reactie","Show comment":"Toon reactie","Sign in":"Inloggen","Sign up now":"Registreren","Start the conversation":"Begin het gesprek","This comment has been hidden.":"Deze reactie is verborgen.","This comment has been removed.":"Deze reactie is verwijderd.","Upgrade now":"Upgrade nu",Yesterday:"Gisteren","Your request will be sent to the owner of this site.":"Jouw melding zal worden verzonden naar de eigenaar van deze site."},T2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},j2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},P2={"{{amount}} characters left":"Pozostało {{amount}} znaków","{{amount}} comments":"{{amount}} komentarzy","{{amount}} days ago":"{{amount}} dni temu","{{amount}} hrs ago":"{{amount}} godzin temu","{{amount}} mins ago":"{{amount}} minut temu","{{amount}} months ago":"{{amount}} miesięcy temu","{{amount}} more":"{{amount}} więcej","{{amount}} seconds ago":"{{amount}} sekund temu","{{amount}} weeks ago":"{{amount}} tygodni temu","{{amount}} years ago":"{{amount}} lat temu","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ź","Already a member?":"Posiadasz już konto?",Anonymous:"Anonimowy","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 płatnej społeczności {{publication}}, by zacząć komentować.",Cancel:"Anuluj",Comment:"Skomentuj","Complete your profile":"Skompletuj Twój profil",Delete:"Usuń","Deleted member":"Usunięte konto",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":"","Head of Marketing at Acme, Inc":"Head of Marketing at Acme, Inc",Hide:"Ukryj","Hide comment":"Ukryj komentarz","Jamie Larson":"Jamie Larson","Join the discussion":"Dołącz do dyskusji","Just now":"Przed chwilą","Local resident":"","Member discussion":"Członek dyskusji",Name:"Imię",Neurosurgeon:"Neurochirurg","One day ago":"Dzień temu","One hour ago":"Godzinę temu","One min ago":"Minutę temu","One month ago":"Miesiąc temu","One week ago":"Tydzień temu","One year ago":"Rok temu",Reply:"Odpowiedz","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:"Pokza","Show {{amount}} more replies":"Pokaż {{amount}} kolejnych odpowiedzi","Show {{amount}} previous comments":"Pokaż {{amount}} poprzednich komentarzy","Show 1 more reply":"Pokaż następną odpowiedź","Show 1 previous comment":"Pokaż poprzedni komentarz","Show comment":"Pokaż komentarz","Sign in":"Zaloguj się","Sign up now":"Zarejestruj się","Start the conversation":"Rozpocznij dyskusję","This comment has been hidden.":"Komentarz został ukryty.","This comment has been removed.":"Komentarz został usunięty.","Upgrade now":"Ulepsz teraz",Yesterday:"Wczoraj","Your request will be sent to the owner of this site.":"Twoje zgłoszenie zostało przesłane do administratora strony."},I2={"{{amount}} characters left":"Faltam {{amount}} caracteres ","{{amount}} comments":"{{amount}} comentários","{{amount}} days ago":"{{amount}} dias atrás","{{amount}} hrs ago":"{{amount}} horas atrás","{{amount}} mins ago":"{{amount}} minutos atrás","{{amount}} months ago":"{{amount}} meses atrás","{{amount}} more":"mais","{{amount}} seconds ago":"{{amount}} segundos atrás","{{amount}} weeks ago":"{{amount}} semanas atrás","{{amount}} years ago":"{{amount}} anos atrás","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","Already a member?":"Já é membro?",Anonymous:"Anónimo","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. ",Cancel:"Cancelar",Comment:"Comentar","Complete your profile":"Complete o seu perfil",Delete:"Eliminar","Deleted member":"Membro eliminado",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",Hide:"Esconder","Hide comment":"Esconder comentário","Jamie Larson":"Jane Doe","Join the discussion":"Junte-se à discussão","Just now":"Agora","Local resident":"Residente local","Member discussion":"Discussão para membros",Name:"Nome",Neurosurgeon:"neurocirurgião","One day ago":"um dia atrás","One hour ago":"uma hora atrás","One min ago":"um minuto atrás","One month ago":"um mês atrás","One week ago":"uma semana atrás","One year ago":"um ano atrás",Reply:"Responder","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 {{amount}} previous comments":"Mostrar os {{amount}} comentários anteriores","Show 1 more reply":"Mostrar mais uma resposta","Show 1 previous comment":"Mostrar mais um comentário","Show comment":"Mostrar comentário","Sign in":"Registar","Sign up now":"Registar agora","Start the conversation":"Comece a conversa","This comment has been hidden.":"Este comentário foi ocultado","This comment has been removed.":"Este comentário foi removido","Upgrade now":"Atualize agora",Yesterday:"Ontem","Your request will be sent to the owner of this site.":"O seu pedido será enviado para o dono deste site."},L2={"{{amount}} characters left":"{{amount}} caracteres restantes","{{amount}} comments":"{{amount}} comentários","{{amount}} days ago":"{{amount}} dias atrás","{{amount}} hrs ago":"{{amount}} horas atrás","{{amount}} mins ago":"{{amount}} minutos atrás","{{amount}} months ago":"{{amount}} meses atrás","{{amount}} more":"{{amount}} mais","{{amount}} seconds ago":"{{amount}} segundos atrás","{{amount}} weeks ago":"{{amount}} semanas atrás","{{amount}} years ago":"{{amount}} anos atrás","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 expertise para promover uma discussão saudável.","Add reply":"Adicionar resposta","Already a member?":"Já é um membro?",Anonymous:"Anônimo","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.",Cancel:"Cancelar",Comment:"Comentário","Complete your profile":"Complete seu perfil",Delete:"Deletar","Deleted member":"Membro deletado",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",Hide:"Esconder","Hide comment":"Esconder comentário","Jamie Larson":"Jamie Larson","Join the discussion":"Participe da discussão","Just now":"Agora mesmo","Local resident":"Residente local","Member discussion":"Discussão entre membros",Name:"Nome",Neurosurgeon:"Neurocirurgião","One day ago":"Um dia atrás","One hour ago":"Uma hora atrás","One min ago":"Um minuto atrás","One month ago":"Um mês atrás","One week ago":"Uma semana atrás","One year ago":"Um ano atrás",Reply:"Responder","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:"Mostrar","Show {{amount}} more replies":"Mostrar mais {{amount}} respostas","Show {{amount}} previous comments":"Mostrar {{amount}} comentários anteriores","Show 1 more reply":"Mostrar 1 resposta adicional","Show 1 previous comment":"Mostrar 1 comentário anterior","Show comment":"Mostrar comentário","Sign in":"Entrar","Sign up now":"Inscreva-se agora","Start the conversation":"Iniciar a conversa","This comment has been hidden.":"Este comentário foi escondido.","This comment has been removed.":"Este comentário foi removido.","Upgrade now":"Atualize agora",Yesterday:"Ontem","Your request will be sent to the owner of this site.":"Sua solicitação será enviada ao proprietário deste site."},z2={"{{amount}} characters left":"{{amount}} caractere rămase","{{amount}} comments":"{{amount}} comentarii","{{amount}} days ago":"acum {{amount}} zile","{{amount}} hrs ago":"acum {{amount}} ore","{{amount}} mins ago":"acum {{amount}} minute","{{amount}} months ago":"acum {{amount}} luni","{{amount}} more":"încă {{amount}}","{{amount}} seconds ago":"acum {{amount}} secunde","{{amount}} weeks ago":"acum {{amount}} săptămâni","{{amount}} years ago":"acum {{amount}} ani","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","Already a member?":"Deja membru?",Anonymous:"Anonim","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.",Cancel:"Anulează",Comment:"Comentează","Complete your profile":"Completează-ți profilul",Delete:"Șterge","Deleted member":"Membru șters",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",Hide:"Ascunde","Hide comment":"Ascunde comentariul","Jamie Larson":"Jamie Larson","Join the discussion":"Alătură-te discuției","Just now":"Chiar acum","Local resident":"Rezident local","Member discussion":"Discuție membrii",Name:"Nume",Neurosurgeon:"Neurochirurg","One day ago":"Acum o zi","One hour ago":"Acum o oră","One min ago":"Acum un minut","One month ago":"Acum o lună","One week ago":"Acum o săptămână","One year ago":"Acum un an",Reply:"Răspunde","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 {{amount}} previous comments":"Arată {{amount}} comentarii anterioare","Show 1 more reply":"Arată încă un răspuns","Show 1 previous comment":"Arată un comentariu anterior","Show comment":"Arată comentariul","Sign in":"Autentificare","Sign up now":"Înregistrează-te acum","Start the conversation":"Începe conversația","This comment has been hidden.":"Acest comentariu a fost ascuns.","This comment has been removed.":"Acest comentariu a fost eliminat.","Upgrade now":"Actualizează acum",Yesterday:"Ieri","Your request will be sent to the owner of this site.":"Cererea dumneavoastră va fi trimisă proprietarului acestui site."},F2={"{{amount}} characters left":"{{amount}} символа(ов) осталось","{{amount}} comments":"{{amount}} комментария(ев)","{{amount}} days ago":"{{amount}} дня(ей) назад","{{amount}} hrs ago":"{{amount}} часа(ов) назад","{{amount}} mins ago":"{{amount}} минут(ы) назад","{{amount}} months ago":"{{amount}} месяца(ев) назад","{{amount}} more":"ещё {{amount}}","{{amount}} seconds ago":"{{amount}} секунд(ы) назад","{{amount}} weeks ago":"{{amount}} недель(и) назад","{{amount}} years ago":"{{amount}} года(лет) назад","1 comment":"1 комментарий","Add comment":"Добавить комментарий","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Дополните свой комментарий контекстом, добавив подробности о себе и своём опыте, чтобы обсуждение стало более интересным.","Add reply":"Добавить ответ","Already a member?":"Уже присоединились?",Anonymous:"Анонимный","Become a member of {{publication}} to start commenting.":"Присоединяйтесь к {{publication}} чтобы начать комментировать.","Become a paid member of {{publication}} to start commenting.":"Станьте платным участником {{publication}} чтобы начать комментировать.",Cancel:"Отмена",Comment:"Комментарий","Complete your profile":"Заполните свой профиль",Delete:"Удалить","Deleted member":"Удалённый участник",Discussion:"Обсуждение",Edit:"Редактировать","Edit this comment":"Редактировать этот комментарий",edited:"Отредактированно","Enter your name":"Введите ваше имя",Expertise:"Деятельность","Founder @ Acme Inc":"Основатель @ Корпорация «Акме»","Full-time parent":"Родитель, работающий полный рабочий день","Head of Marketing at Acme, Inc":"Руководитель отдела маркетинга в Корпорации «Акме»",Hide:"Скрыть","Hide comment":"Скрыть комментарий","Jamie Larson":"Павел Бид","Join the discussion":"Присоединиться к обсуждению","Just now":"Сейчас","Local resident":"Местный житель","Member discussion":"Обсуждение участников",Name:"Имя",Neurosurgeon:"Нейрохирург","One day ago":"День назад","One hour ago":"Час назад","One min ago":"Минуту назад","One month ago":"Месяц назад","One week ago":"Неделю назад","One year ago":"Год назад",Reply:"Ответить","Reply to comment":"Ответить на комментарий",Report:"Пожаловаться","Report comment":"Пожаловаться на комментарий","Report this comment?":"Пожаловаться на этот комментарий?",Save:"Сохранить",Sending:"Отправка",Sent:"Отправлено",Show:"Показать","Show {{amount}} more replies":"Показать ещё {{amount}} ответа(ов)","Show {{amount}} previous comments":"Показать ещё {{amount}} комментария(ев)","Show 1 more reply":"Показать ответ","Show 1 previous comment":"Показать предыдущий комментарий","Show comment":"Показать комментарий","Sign in":"Войти","Sign up now":"Зарегистрироваться","Start the conversation":"Начать обсуждение","This comment has been hidden.":"Этот комментарий скрыт","This comment has been removed.":"Этот комментарий был удалён","Upgrade now":"Обновить ",Yesterday:"Вчера","Your request will be sent to the owner of this site.":"Ваш запрос будет отправлен владельцу сайта."},B2={"{{amount}} characters left":"තව වචන {{amount}} යි.","{{amount}} comments":"අදහ​ස් {{amount}} යි.","{{amount}} days ago":"දින {{amount}} ට පෙ​ර","{{amount}} hrs ago":"පැය {{amount}} ට පෙ​ර","{{amount}} mins ago":"මිනිත්තු {{amount}} ට පෙ​ර","{{amount}} months ago":"මාස {{amount}} ට පෙ​ර","{{amount}} more":"","{{amount}} seconds ago":"තත්ත්පර {{amount}} ට පෙ​ර","{{amount}} weeks ago":"සති {{amount}} ට පෙ​ර","{{amount}} years ago":"අවුරුදු {{amount}} ට පෙ​ර","1 comment":"1 අදහසයි.","Add comment":"අදහස් එකතු කරන්​න","Add context to your comment, share your name and expertise to foster a healthy discussion.":"ඉතා හො​ඳ සාකච්ඡාවක් රැගෙ​න යාම සඳහා ඔබේ අදහසට අන්තර්ගත​ය එක් කර ඔබේ නම සහ විශේෂඥතාව බෙදා ගන්න","Add reply":"ප්‍රතිචාර එකතු කරන්​න","Already a member?":"දැනටමත් සාමාජිකයෙක්ද ?",Anonymous:"නිර්නාමික","Become a member of {{publication}} to start commenting.":"අදහස් දැක්වීම ආරම්භ කිරීමට {{publication}} හි සාමාජිකයෙකු වන්න","Become a paid member of {{publication}} to start commenting.":"අදහස් දැක්වීම ආරම්භ කිරීමට {{publication}} හි ගෙවීම් කරන ල​ද සාමාජිකයෙකු වන්න",Cancel:"අවලංගු කරන්​න​",Comment:"අදහ​ස","Complete your profile":"ඔබගේ ගිණුම සම්පූර්ණ කරන්​න",Delete:"Delete කරන්​න","Deleted member":"සාමාජිකයාව delete කරන්​න",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 හි අලෙවි ප්‍රධානී",Hide:"සඟවන්න","Hide comment":"අදහස සඟවන්න","Jamie Larson":"ජේමි ලාර්සන්","Join the discussion":"සාකච්ඡාවට එක්වන්න","Just now":"මේ දැ​න්","Local resident":"දේශීය පදිංචි","Member discussion":"සාමාජික සාකච්ඡාව",Name:"න​ම",Neurosurgeon:"ස්නායු ශ​ල්‍ය වෛ​ද්‍ය","One day ago":"දිනකට පෙ​ර","One hour ago":"පැයකට පෙ​ර","One min ago":"මිනිත්තුවකට පෙ​ර","One month ago":"මසකට පෙ​ර","One week ago":"සතියකට පෙ​ර","One year ago":"අවුරුද්දකට පෙ​ර",Reply:"ප්‍රතිචාර දක්වන්​න","Reply to comment":"අදහසට ‍රතිචාර දක්වන්​න",Report:"වාර්තා කරන්​න","Report comment":"අදහසට වාර්තා කරන්​න","Report this comment?":"මෙම අදහසට වාර්තා කරන්නෙහිද ?",Save:"සුරකින්​න",Sending:"යවමි​න්",Sent:"යැව්වා",Show:"පෙන්වන්​න","Show {{amount}} more replies":"තවත් පිළිතුරු {{amount}} පෙන්වන්න","Show {{amount}} previous comments":"පෙර අදහස් {{amount}} පෙන්වන්න","Show 1 more reply":"තවත් පිළිතුරු 1ක් පෙන්වන්න","Show 1 previous comment":"පෙර අදහස් 1ක් පෙන්වන්න","Show comment":"අදහස පෙන්වන්න","Sign in":"Sign in වෙන්​න","Sign up now":"දැන්ම Sign up වෙන්​න","Start the conversation":"සංවාදය ආරම්භ කරන්න","This comment has been hidden.":"මෙම අදහස සඟවා ඇත.","This comment has been removed.":"මෙම අදහස ඉවත් කර ඇත.","Upgrade now":"දැන් upgrade කරන්න",Yesterday:"ඊ​යෙ","Your request will be sent to the owner of this site.":"ඔබගේ ඉල්ලීම මෙම අඩවියේ හිමිකරු වෙත යවනු ලැබේ."},H2={"{{amount}} characters left":"Zostáva {{amount}} znakov","{{amount}} comments":"{{amount}} komentárov","{{amount}} days ago":"Pred {{amount}} dňami","{{amount}} hrs ago":"Pred {{amount}} hodinami","{{amount}} mins ago":"Pred {{amount}} minútami","{{amount}} months ago":"Pred {{amount}} mesiacmi","{{amount}} more":"","{{amount}} seconds ago":"Pred {{amount}} sekundami","{{amount}} weeks ago":"Pred {{amount}} týždňami","{{amount}} years ago":"Pred {{amount}} rokmi","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áško komentára, zdielajte vaše meno, a odbornosť pre podporu zdravej diskusie.","Add reply":"Pridať odpoveď","Already a member?":"Už ste členom?",Anonymous:"Anonymne","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ť",Cancel:"Zrušiť",Comment:"Komentár","Complete your profile":"Dokončite váš profil",Delete:"Vymazať","Deleted member":"Vymazaný člen",Discussion:"Diskusia",Edit:"Upraviť","Edit this comment":"Upraviť tento 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",Hide:"Skryť","Hide comment":"Skryť komentár","Jamie Larson":"Jamie Larson","Join the discussion":"Zapojiť sa do diskusie","Just now":"Teraz","Local resident":"Miestny obyvateľ","Member discussion":"",Name:"Meno",Neurosurgeon:"Neurogirurg","One day ago":"Včera","One hour ago":"Pred hodinou","One min ago":"Pred minútou","One month ago":"Pred mesiacom","One week ago":"Pred týždňom","One year ago":"Pred rokom",Reply:"Odpovedať","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 {{amount}} previous comments":"Zobraziť {{amount}} predchádzajúcich komentárov","Show 1 more reply":"Zobraziť 1 ďalšiu odpoveď","Show 1 previous comment":"Zobraziť 1 predchádzajúci komentár","Show comment":"Zobraziť komentár","Sign in":"Prihlásiť","Sign up now":"Registrovať sa","Start the conversation":"Začať konverzáciu","This comment has been hidden.":"Tento komentár bol skrytý.","This comment has been removed.":"Tento komentár bol vymazaný.","Upgrade now":"Upgradovať teraz",Yesterday:"Včera","Your request will be sent to the owner of this site.":"Vaša požiadavka bola odoslaná vlastníkovi stránky."},V2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},U2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},J2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},_2={"{{amount}} characters left":"Преостало још {{amount}} карактера","{{amount}} comments":"{{amount}} коментара","{{amount}} days ago":"пре {{amount}} дана","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"пре {{amount}} месеци","{{amount}} more":"још {{amount}}","{{amount}} seconds ago":"пре {{amount}} секунди","{{amount}} weeks ago":"пре {{amount}} недеља","{{amount}} years ago":"пре {{amount}} година","1 comment":"1 коментар","Add comment":"Додајте коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додајте контекст свом коментару, поделите своје име и експертизу како бисте подстакли здраву дискусију.","Add reply":"Додајте одговор","Already a member?":"Већ сте члан?",Anonymous:"Анонимно","Become a member of {{publication}} to start commenting.":"Постаните члан {{publication}} да бисте почели са коментарисањем.","Become a paid member of {{publication}} to start commenting.":"Постаните плаћени члан {{publication}} да бисте почели са коментарисањем.",Cancel:"Откажи",Comment:"Коментар","Complete your profile":"Попуните свој профил",Delete:"Избриши","Deleted member":"Обрисан члан",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",Hide:"Сакриј","Hide comment":"Сакриј коментар","Jamie Larson":"Џејми Ларсон","Join the discussion":"Придружите се дискусији","Just now":"Управо сада","Local resident":"Мештанин","Member discussion":"Дискусија чланова",Name:"Име",Neurosurgeon:"Неурохирург","One day ago":"Пре један дан","One hour ago":"Пре један сат","One min ago":"","One month ago":"Пре један месец","One week ago":"Пре једну недељу","One year ago":"Пре једну годину",Reply:"Одговори","Reply to comment":"Одговорите на коментар",Report:"Пријави","Report comment":"Пријави коментар","Report this comment?":"Пријавити овај коментар?",Save:"Сачувај",Sending:"Слање",Sent:"Послато",Show:"Прикажи","Show {{amount}} more replies":"Прикажи још {{amount}} одговора","Show {{amount}} previous comments":"Прикажи претходна {{amount}} коментара","Show 1 more reply":"Прикажи још 1 одговор","Show 1 previous comment":"Прикажи 1 претходни коментар","Show comment":"Прикажи коментар","Sign in":"Пријавите се","Sign up now":"Пријавите се сада","Start the conversation":"Почните разговор","This comment has been hidden.":"Овај коментар је сакривен.","This comment has been removed.":"Овај коментар је уклоњен.","Upgrade now":"Надоградите сада",Yesterday:"Јуче","Your request will be sent to the owner of this site.":"Ваш захтев ће бити послат власнику овог сајта."},Y2={"{{amount}} characters left":"{{amount}} tecken kvar","{{amount}} comments":"{{amount}} kommentarer","{{amount}} days ago":"{{amount}} dagar sedan","{{amount}} hrs ago":"{{amount}} timmar sedan","{{amount}} mins ago":"{{amount}} minuter sedan","{{amount}} months ago":"{{amount}} månader sedan","{{amount}} more":"{{amount}} fler","{{amount}} seconds ago":"{{amount}} sekunder sedan","{{amount}} weeks ago":"{{amount}} veckor sedan","{{amount}} years ago":"{{amount}} år sedan","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","Already a member?":"Redan medlem?",Anonymous:"Anonym","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 ",Cancel:"Avbryt",Comment:"Kommentar","Complete your profile":"Fyll i hela din profil",Delete:"Ta bort","Deleted member":"Borttagen medlem",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",Hide:"Dölj","Hide comment":"Dölj kommentar","Jamie Larson":"Emma Jansson","Join the discussion":"Var med i diskussionen","Just now":"Nu precis","Local resident":"Lokalboende","Member discussion":"Medlemsdiskussion",Name:"Namn",Neurosurgeon:"Neurokirurg","One day ago":"En dag sedan","One hour ago":"En timme sedan","One min ago":"En minut sedan","One month ago":"En månad sedan","One week ago":"En vecka sedan","One year ago":"Ett år sedan",Reply:"Svar","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 {{amount}} previous comments":"Visa {{amount}} tidigare kommentarer","Show 1 more reply":"Visa 1 kommentar till","Show 1 previous comment":"Visa 1 tidigare kommentar","Show comment":"Visa kommentar","Sign in":"Logga in","Sign up now":"Registrera dig nu","Start the conversation":"Inled konversationen","This comment has been hidden.":"Denna kommentar har dolts","This comment has been removed.":"Denna kommentar är borttagen","Upgrade now":"Uppgradera nu",Yesterday:"I går","Your request will be sent to the owner of this site.":"Din anmälan skickas till ansvarig för webbplatsen"},K2={"{{amount}} characters left":"คงเหลือ {{amount}} ตัวอักษร","{{amount}} comments":"{{amount}} ความคิดเห็น","{{amount}} days ago":"{{amount}} วันที่แล้ว","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"{{amount}} เดือนที่แล้ว","{{amount}} more":"อีก {{amount}}","{{amount}} seconds ago":"{{amount}} วินาทีที่แล้ว","{{amount}} weeks ago":"{{amount}} สัปดาห์ที่แล้ว","{{amount}} years ago":"{{amount}} ปีที่แล้ว","1 comment":"1 ความคิดเห็น","Add comment":"แสดงความคิดเห็น","Add context to your comment, share your name and expertise to foster a healthy discussion.":"เพิ่มข้อมูลเสริมในความคิดเห็นของคุณ แชร์ชื่อและความเชี่ยวชาญเพื่อสนับสนุนการพูดคุยที่ดี","Add reply":"ตอบกลับ","Already a member?":"เป็นสมาชิกอยู่แล้ว?",Anonymous:"ไม่ระบุชื่อ","Become a member of {{publication}} to start commenting.":"เป็นสมาชิกของ {{publication}} เพื่อเริ่มแสดงความคิดเห็น","Become a paid member of {{publication}} to start commenting.":"เป็นสมาชิกแบบชำระเงินของ {{publication}} เพื่อเริ่มแสดงความคิดเห็น",Cancel:"ยกเลิก",Comment:"ความคิดเห็น","Complete your profile":"กรอกโปรไฟล์ของคุณให้สมบูรณ์",Delete:"ลบ","Deleted member":"ผู้ใช้ที่ถูกลบ",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",Hide:"ซ่อน","Hide comment":"ซ่อนข้อความ","Jamie Larson":"กนกพัฒน์ สัณห์ฤทัย","Join the discussion":"เข้าร่วมการสนทนา","Just now":"ตอนนี้","Local resident":"ผู้อยู่อาศัยในท้องถิ่น","Member discussion":"การสนทนาของสมาชิก",Name:"ชื่อ",Neurosurgeon:"ศัลยแพทย์ระบบประสาท","One day ago":"1 วันที่แล้ว","One hour ago":"1 ชั่วโมงที่แล้ว","One min ago":"","One month ago":"1 เดือนที่แล้ว","One week ago":"1 สัปดาห์ที่แล้ว","One year ago":"1 ปีที่แล้ว",Reply:"ตอบกลับ","Reply to comment":"ตอบกลับความคิดเห็น",Report:"รายงาน","Report comment":"รายงานความคิดเห็น","Report this comment?":"รายงานความคิดเห็นนี้?",Save:"บันทึก",Sending:"กำลังส่ง",Sent:"ส่งแล้ว",Show:"แสดง","Show {{amount}} more replies":"แสดง {{amount}} การตอบกลับเพิ่มเติม","Show {{amount}} previous comments":"แสดง {{amount}} ความคิดเห็นก่อนหน้า","Show 1 more reply":"แสดงอีก 1 การตอบกลับ","Show 1 previous comment":"แสดง 1 ความคิดเห็น","Show comment":"ดูความคิดเห็น","Sign in":"ลงชื่อเข้าใช้","Sign up now":"สมัครใช้งานตอนนี้เลย","Start the conversation":"เริ่มการสนทนา","This comment has been hidden.":"ความคิดเห็นนี้ถูกซ่อน","This comment has been removed.":"ความคิดเห็นนี้ถูกลบ","Upgrade now":"อัพเกรดตอนนี้เลย",Yesterday:"เมื่อวาน","Your request will be sent to the owner of this site.":"คำขอของคุณจะถูกส่งไปยังผู้ดูแลเว็บไซต์"},W2={"{{amount}} characters left":"{{amount}} karakter kaldı","{{amount}} comments":"{{amount}} yorum","{{amount}} days ago":"{{amount}} gün önce","{{amount}} hrs ago":"{{amount}} saat önce","{{amount}} mins ago":"{{amount}} dakika önce","{{amount}} months ago":"{{amount}} ay önce","{{amount}} more":"Daha fazla {{amount}}","{{amount}} seconds ago":"{{amount}} saniye önce","{{amount}} weeks ago":"{{amount}} hafta önce","{{amount}} years ago":"{{amount}} yıl önce","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","Already a member?":"Zaten üye misiniz?",Anonymous:"Anonim","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.",Cancel:"İptal et",Comment:"Yorum ekle","Complete your profile":"Profilinizi tamamlayın",Delete:"Sil","Deleted member":"Silinen üye",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ü",Hide:"Gizle","Hide comment":"Yorumu gizle","Jamie Larson":"Ad Soyad","Join the discussion":"Tartışmaya katıl","Just now":"Şu anda","Local resident":"Yerel sakini","Member discussion":"Üye tartışması",Name:"Ad",Neurosurgeon:"Beyin cerrahı","One day ago":"Bir gün önce","One hour ago":"Bir saat önce","One min ago":"Bir dakika önce","One month ago":"Bir ay önce","One week ago":"Bir hafta önce","One year ago":"Bir yıl önce",Reply:"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 {{amount}} previous comments":"{{amount}} önceki yorumu göster","Show 1 more reply":"1 cevap daha göster","Show 1 previous comment":"1 önceki yorumu göster","Show comment":"Yorumu göster","Sign in":"Giriş yap","Sign up now":"Şimdi kayıt ol","Start the conversation":"Bu konu hakkında düşüncelerini paylaş","This comment has been hidden.":"Bu yorum gizlendi.","This comment has been removed.":"Bu yorum kaldırıldı.","Upgrade now":"Şimdi yükselt",Yesterday:"Dün","Your request will be sent to the owner of this site.":"Talebiniz bu sitenin sahibine gönderilecektir."},q2={"{{amount}} characters left":"{{amount}} символів залишилось","{{amount}} comments":"{{amount}} коментарів","{{amount}} days ago":"{{amount}} днів тому","{{amount}} hrs ago":"{{amount}} годин тому","{{amount}} mins ago":"{{amount}} хвилин тому","{{amount}} months ago":"{{amount}} місяців тому","{{amount}} more":"ще {{amount}}","{{amount}} seconds ago":"{{amount}} секунд тому","{{amount}} weeks ago":"{{amount}} тижнів тому","{{amount}} years ago":"{{amount}} років тому","1 comment":"1 коментар","Add comment":"Додати коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додайте контекст до свого коментаря, поділіться своїм іменем і досвідом, щоб сприяти здоровій дискусії.","Add reply":"Додати відповідь","Already a member?":"Ви є учасником?",Anonymous:"Анонім","Become a member of {{publication}} to start commenting.":"Станьте учасником {{publication}} щоб почати коментувати.","Become a paid member of {{publication}} to start commenting.":"Станьте платним учасником {{publication}} щоб почати коментувати.",Cancel:"Відмінити",Comment:"Коментувати","Complete your profile":"Заповніть свій профіль",Delete:"Видалити","Deleted member":"Видалений учасник",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",Hide:"Сховати","Hide comment":"Сховати коментар","Jamie Larson":"Ваше імʼя","Join the discussion":"Долучитися до обговорення","Just now":"Прямо зараз","Local resident":"Місцевий експерт","Member discussion":"Обговорення учасників",Name:"Імʼя",Neurosurgeon:"Нейрохірург","One day ago":"Один день тому","One hour ago":"Одну годину тому","One min ago":"Одну хвилину тому","One month ago":"Один місяць тому","One week ago":"Один тиждень тому","One year ago":"Один рік тому",Reply:"Відповісти","Reply to comment":"Відповісти на коментар",Report:"Поскаржитися","Report comment":"Поскаржитися на коментар","Report this comment?":"Поскаржитися на цей коментар?",Save:"Зберегти",Sending:"Відправка",Sent:"Відправлено",Show:"Показати","Show {{amount}} more replies":"Показати ще {{amount}} відповідей","Show {{amount}} previous comments":"Показати {{amount}} попередніх коментарів","Show 1 more reply":"Показати ще одну відповідь","Show 1 previous comment":"Показати один попередній коментар","Show comment":"Показати коментар","Sign in":"Увійти","Sign up now":"Зареєструватись зараз","Start the conversation":"Почніть розмову","This comment has been hidden.":"Цей коментар було приховано.","This comment has been removed.":"Цей коментар було видалено.","Upgrade now":"Оновити зараз",Yesterday:"Вчора","Your request will be sent to the owner of this site.":"Ваш запит буде надіслано власнику цього сайту."},G2={"{{amount}} characters left":"{{amount}} حروف باقی ہیں","{{amount}} comments":"{{amount}} تبادلے","{{amount}} days ago":"{{amount}} دن پہلے","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"{{amount}} مہینے پہلے","{{amount}} more":"","{{amount}} seconds ago":"{{amount}} سیکنڈ پہلے","{{amount}} weeks ago":"{{amount}} ہفتے پہلے","{{amount}} years ago":"{{amount}} سال پہلے","1 comment":"1 تبادلہ","Add comment":"تبادلہ شامل کریں","Add context to your comment, share your name and expertise to foster a healthy discussion.":"اپنے تبادلے میں سیاق و سباق شامل کریں، اچھی گفتگو کو بڑھانے کے لئے اپنا نام اور ماہریت شیئر کریں۔","Add reply":"جواب شامل کریں","Already a member?":"پہلے ہی رکن ہیں؟",Anonymous:"ناشناس","Become a member of {{publication}} to start commenting.":"تبادلہ شروع کرنے کے لئے {{publication}} کا رکن بنیں۔","Become a paid member of {{publication}} to start commenting.":"تبادلہ شروع کرنے کے لئے {{publication}} کا ادائیگی رکن بنیں۔",Cancel:"منسوخ کریں",Comment:"تبادلہ","Complete your profile":"اپنا پروفائل مکمل کریں",Delete:"حذف کریں","Deleted member":"حذف شدہ رکن",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 کے مارکیٹنگ کا سربراہ",Hide:"چھپائیں","Hide comment":"تبادلہ چھپائیں","Jamie Larson":"جیمی لارسن","Join the discussion":"تبادلے میں شامل ہوں","Just now":"ابھی","Local resident":"مقامی رہائشی","Member discussion":"رکن کا تبادلہ",Name:"نام",Neurosurgeon:"نیوروسرجن","One day ago":"ایک دن پہلے","One hour ago":"ایک گھنٹہ پہلے","One min ago":"","One month ago":"ایک مہینہ پہلے","One week ago":"ایک ہفتہ پہلے","One year ago":"ایک سال پہلے",Reply:"جواب","Reply to comment":"تبادلے کا جواب دیں",Report:"رپورٹ","Report comment":"تبادلے کی رپورٹ","Report this comment?":"کیا آپ اس تبادلے کو رپورٹ کرنا چاہتے ہیں؟",Save:"محفوظ کریں",Sending:"بھیج رہا ہے",Sent:"بھیجا گیا",Show:"دکھائیں","Show {{amount}} more replies":"{{amount}} مزید جوابات دکھائیں","Show {{amount}} previous comments":"{{amount}} پچھلے تبادلات دکھائیں","Show 1 more reply":"1 مزید جواب دکھائیں","Show 1 previous comment":"1 پچھلا تبادلہ دکھائیں","Show comment":"تبادلہ دکھائیں","Sign in":"سائن ان کریں","Sign up now":"ابھی رجسٹر ہوں","Start the conversation":"بات چیت شروع کریں","This comment has been hidden.":"یہ تبادلہ چھپا گیا ہے۔","This comment has been removed.":"یہ تبادلہ ہٹا دیا گیا ہے۔","Upgrade now":"اب اپ گریڈ کریں",Yesterday:"کل","Your request will be sent to the owner of this site.":"آپ کا درخواست اس سائٹ کے مالک کو بھیجا جائے گا۔"},Q2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},Z2={"{{amount}} characters left":"{{amount}} ký tự còn lại","{{amount}} comments":"{{amount}} bình luận","{{amount}} days ago":"{{amount}} ngày trước","{{amount}} hrs ago":"{{amount}} giờ trước","{{amount}} mins ago":"{{amount}} phút trước","{{amount}} months ago":"{{amount}} tháng trước","{{amount}} more":"{{amount}} nữa","{{amount}} seconds ago":"{{amount}} giây trước","{{amount}} weeks ago":"{{amount}} tuần trước","{{amount}} years ago":"{{amount}} năm trước","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","Already a member?":"Đã là thành viên?",Anonymous:"Ẩn danh","Become a member of {{publication}} to start commenting.":"Trở thành thành viên của {{publication}} để bắt đầu 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}} để bắt đầu bình luận.",Cancel:"Hủy",Comment:"Bình luận","Complete your profile":"Hoàn tất hồ sơ của bạn",Delete:"Xóa","Deleted member":"Thành viên đã 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",Hide:"Ẩn","Hide comment":"Ẩn bình luận","Jamie Larson":"Jamie Larson","Join the discussion":"Tham gia thảo luận","Just now":"Vừa xong","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","One day ago":"Một ngày trước","One hour ago":"Một giờ trước","One min ago":"Một phút trước","One month ago":"Một tháng trước","One week ago":"Một tuần trước","One year ago":"Một năm trước",Reply:"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 {{amount}} trả lời khác","Show {{amount}} previous comments":"Đọc {{amount}} bình luận trước","Show 1 more reply":"Xem 1 trả lời","Show 1 previous comment":"Đọc 1 bình luận trước","Show comment":"Đọc bình luận","Sign in":"Đăng nhập","Sign up now":"Đăng ký ngay","Start the conversation":"Bắt đầu cuộc trò chuyện","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",Yesterday:"Hôm qua","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."},X2={"{{amount}} characters left":"还剩{{amount}}字","{{amount}} comments":"{{amount}}条评论","{{amount}} days ago":"{{amount}}天前","{{amount}} hrs ago":"{{amount}}小时前","{{amount}} mins ago":"{{amount}}分钟前","{{amount}} months ago":"{{amount}}个月前","{{amount}} more":"","{{amount}} seconds ago":"{{amount}}秒前","{{amount}} weeks ago":"{{amount}}周前","{{amount}} years ago":"{{amount}}年前","1 comment":"一条评论","Add comment":"添加评论","Add context to your comment, share your name and expertise to foster a healthy discussion.":"为您的评论补充上下文信息、说明您的称呼与专业背景均有助于营造健康的讨论氛围。","Add reply":"添加回复","Already a member?":"已经是会员?",Anonymous:"匿名","Become a member of {{publication}} to start commenting.":"成为{{publication}}的会员以开始评论。","Become a paid member of {{publication}} to start commenting.":"成为{{publication}}的付费会员以开始评论。",Cancel:"取消",Comment:"评论","Complete your profile":"完善您的注册信息",Delete:"删除","Deleted member":"删除会员",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市场部负责人",Hide:"隐藏","Hide comment":"隐藏评论","Jamie Larson":"Jamie Larson","Join the discussion":"加入讨论","Just now":"刚刚","Local resident":"本地居民","Member discussion":"会员讨论",Name:"称呼",Neurosurgeon:"神经外科医生","One day ago":"一天前","One hour ago":"一小时前","One min ago":"一分钟前","One month ago":"一个月前","One week ago":"一周前","One year ago":"一年前",Reply:"回复","Reply to comment":"回复评论",Report:"举报","Report comment":"举报评论","Report this comment?":"举报此评论?",Save:"保存",Sending:"正在发送",Sent:"已发送",Show:"显示","Show {{amount}} more replies":"显示后续{{amount}}条评论","Show {{amount}} previous comments":"显示先前{{amount}}条评论","Show 1 more reply":"显示下一条评论","Show 1 previous comment":"显示前一条评论","Show comment":"显示评论","Sign in":"登录","Sign up now":"立刻注册","Start the conversation":"开始对话","This comment has been hidden.":"该条评论已被隐藏。","This comment has been removed.":"该条评论已被移除。","Upgrade now":"立刻升级",Yesterday:"昨天","Your request will be sent to the owner of this site.":"您的请求将被发送给站点所有者。"},eN={"{{amount}} characters left":"還剩 {{amount}} 個字","{{amount}} comments":"{{amount}} 則留言","{{amount}} days ago":"{{amount}} 天前","{{amount}} hrs ago":"{{amount}} 小時前","{{amount}} mins ago":"{{amount}} 分鐘前","{{amount}} months ago":"{{amount}} 個月前","{{amount}} more":"還剩 {{amount}} 則留言","{{amount}} seconds ago":"{{amount}} 秒前","{{amount}} weeks ago":"{{amount}} 周前","{{amount}} years ago":"{{amount}} 年前","1 comment":"一則留言","Add comment":"留言","Add context to your comment, share your name and expertise to foster a healthy discussion.":"為您的留言補充情境、說明您的稱呼與專業背景均有助於健康的討論氛圍。","Add reply":"回覆","Already a member?":"已經是會員?",Anonymous:"匿名","Become a member of {{publication}} to start commenting.":"成為{{publication}}的會員以開始留言。","Become a paid member of {{publication}} to start commenting.":"成為{{publication}}的付費會員以開始留言。",Cancel:"取消",Comment:"留言","Complete your profile":"完善您的註冊資訊",Delete:"刪除","Deleted member":"刪除會員",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市場部負責人",Hide:"隱藏","Hide comment":"隱藏留言","Jamie Larson":"Jamie Larson","Join the discussion":"加入討論","Just now":"剛剛","Local resident":"本地居民","Member discussion":"會員討論",Name:"稱呼",Neurosurgeon:"神經外科醫生","One day ago":"一天前","One hour ago":"一小時前","One min ago":"一分鐘前","One month ago":"一個月前","One week ago":"一周前","One year ago":"一年前",Reply:"回覆","Reply to comment":"回覆留言",Report:"舉報","Report comment":"舉報留言","Report this comment?":"舉報此留言?",Save:"儲存",Sending:"正在發送",Sent:"已發送",Show:"顯示","Show {{amount}} more replies":"顯示後續 {{amount}} 則留言","Show {{amount}} previous comments":"顯示先前 {{amount}} 則留言","Show 1 more reply":"顯示下一則留言","Show 1 previous comment":"顯示前一則留言","Show comment":"顯示留言","Sign in":"登錄","Sign up now":"立即註冊","Start the conversation":"開始對話","This comment has been hidden.":"該則留言已被隱藏。","This comment has been removed.":"該則留言已被移除。","Upgrade now":"立即升級",Yesterday:"昨天","Your request will be sent to the owner of this site.":"您的請求將被發送給所有者。"},tN={"{{amount}} characters left":"{{amount}} herufi zimebaki","{{amount}} comments":"{{amount}} maoni","{{amount}} days ago":"siku {{amount}} zilizopita","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"miezi {{amount}} iliyopita","{{amount}} more":"{{amount}} zaidi","{{amount}} seconds ago":"sekunde {{amount}} zilizopita","{{amount}} weeks ago":"wiki {{amount}} zilizopita","{{amount}} years ago":"miaka {{amount}} iliyopita","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","Already a member?":"Tayari ni mwanachama?",Anonymous:"Asiyetambulika","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.",Cancel:"Ghairi",Comment:"Maoni","Complete your profile":"Kamilisha wasifu wako",Delete:"Futa","Deleted member":"Mwanachama aliyefutwa",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",Hide:"Ficha","Hide comment":"Ficha maoni","Jamie Larson":"Jamie Larson","Join the discussion":"Jiunge na mjadala","Just now":"Hivi sasa","Local resident":"Mkazi wa eneo","Member discussion":"Mjadala wa wanachama",Name:"Jina",Neurosurgeon:"Daktari wa ubongo","One day ago":"Siku moja iliyopita","One hour ago":"Saa moja iliyopita","One min ago":"","One month ago":"Mwezi mmoja uliopita","One week ago":"Wiki moja iliyopita","One year ago":"Mwaka mmoja uliopita",Reply:"Jibu","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 {{amount}} previous comments":"Onyesha maoni {{amount}} ya awali","Show 1 more reply":"Onyesha jibu 1 zaidi","Show 1 previous comment":"Onyesha maoni 1 ya awali","Show comment":"Onyesha maoni","Sign in":"Ingia","Sign up now":"Jisajili sasa","Start the conversation":"Anzisha mazungumzo","This comment has been hidden.":"Maoni haya yamefichwa.","This comment has been removed.":"Maoni haya yameondolewa.","Upgrade now":"Boresha sasa",Yesterday:"Jana","Your request will be sent to the owner of this site.":"Ombi lako litatumwa kwa mmiliki wa tovuti hii."},nN={"{{amount}} characters left":"{{amount}} எழுத்துக்கள் எஞ்சியுள்ளன","{{amount}} comments":"{{amount}} கருத்துக்கள்","{{amount}} days ago":"{{amount}} நாட்களுக்கு முன்பு","{{amount}} hrs ago":"{{amount}} மணி நேரத்திற்கு முன்பு","{{amount}} mins ago":"{{amount}} நிமிடங்களுக்கு முன்பு","{{amount}} months ago":"{{amount}} மாதங்களுக்கு முன்பு","{{amount}} more":"{{amount}} மேலும்","{{amount}} seconds ago":"{{amount}} வினாடிகளுக்கு முன்பு","{{amount}} weeks ago":"{{amount}} வாரங்களுக்கு முன்பு","{{amount}} years ago":"{{amount}} ஆண்டுகளுக்கு முன்பு","1 comment":"1 கருத்து","Add comment":"கருத்தைச் சேர்க்கவும்","Add context to your comment, share your name and expertise to foster a healthy discussion.":"உங்கள் கருத்துக்கு சூழலைச் சேர்க்கவும், ஆரோக்கியமான விவாதத்தை வளர்க்க உங்கள் பெயரையும் நிபுணத்துவத்தையும் பகிர்ந்து கொள்ளுங்கள்.","Add reply":"பதில் சேர்க்கவும்","Already a member?":"ஏற்கனவே உறுப்பினரா?",Anonymous:"அடையாளம் தெரியாத","Become a member of {{publication}} to start commenting.":"கருத்துத் தெரிவிக்க {{publication}} இல் உறுப்பினராகுங்கள்.","Become a paid member of {{publication}} to start commenting.":"கருத்துத் தெரிவிக்க {{publication}} இல் கட்டண உறுப்பினராகுங்கள்.",Cancel:"ரத்து செய்",Comment:"கருத்து","Complete your profile":"உங்கள் சுயவிவரத்தை பூர்த்தி செய்யவும்",Delete:"நீக்கவும்","Deleted member":"நீக்கப்பட்ட உறுப்பினர்",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 நிறுவனத்தின் சந்தைப்படுத்தல் தலைவர்",Hide:"மறைக்கவும்","Hide comment":"கருத்தை மறை","Jamie Larson":"ஜேமி லார்சன்","Join the discussion":"கலந்துரையாடலில் சேரவும்","Just now":"சற்றுமுன்னர்தான்","Local resident":"உள்ளூர்வாசி","Member discussion":"உறுப்பினர் கருத்து",Name:"பெயர்",Neurosurgeon:"நரம்பியல் அறுவை சிகிச்சை நிபுணர்","One day ago":"ஒரு நாள் முன்பு","One hour ago":"ஒரு மணி முன்பு","One min ago":"ஒரு நிமிடம் முன்பு","One month ago":"ஒரு மாதம் முன்பு","One week ago":"ஒரு வார முன்பு","One year ago":"ஒரு வருடம் முன்பு",Reply:"பதிலளிக்கவும்","Reply to comment":"கருத்துக்கு பதிலளிக்கவும்",Report:"புகாரளி","Report comment":"கருத்தைப் புகாரளி","Report this comment?":"இந்தக் கருத்தைப் புகாரளிக்கவா?",Save:"சேமிக்க",Sending:"அனுப்புகிறது",Sent:"அனுப்பப்பட்டது",Show:"காட்டு","Show {{amount}} more replies":"முந்தைய {{amount}} மேலும் பதில்கள்க் காட்டு","Show {{amount}} previous comments":"முந்தைய {{amount}} கருத்துகளைக் காட்டு","Show 1 more reply":"மேலும் 1 பதிலைக் காட்டு","Show 1 previous comment":"முந்தைய 1 கருத்தைக் காட்டு","Show comment":"கருத்தைக் காட்டு","Sign in":"உள்நுழைக","Sign up now":"இப்பொழுதே பதிவு செய்யுங்கள்","Start the conversation":"உரையாடலைத் தொடங்குங்கள்","This comment has been hidden.":"இந்தக் கருத்து மறைக்கப்பட்டது.","This comment has been removed.":"இந்தக் கருத்து நீக்கப்பட்டது.","Upgrade now":"இப்போதே மேம்படுத்தவும்",Yesterday:"நேற்று","Your request will be sent to the owner of this site.":"உங்கள் கோரிக்கை இந்த தளத்தின் உரிமையாளருக்கு அனுப்பப்படும்."};var Z0;function X0(){return Z0||(Z0={"/ghost/i18n/locales/af/comments.json":function(){return e2},"/ghost/i18n/locales/ar/comments.json":function(){return t2},"/ghost/i18n/locales/bg/comments.json":function(){return n2},"/ghost/i18n/locales/bn/comments.json":function(){return o2},"/ghost/i18n/locales/bs/comments.json":function(){return r2},"/ghost/i18n/locales/ca/comments.json":function(){return i2},"/ghost/i18n/locales/cs/comments.json":function(){return s2},"/ghost/i18n/locales/da/comments.json":function(){return a2},"/ghost/i18n/locales/de/comments.json":function(){return l2},"/ghost/i18n/locales/de-CH/comments.json":function(){return u2},"/ghost/i18n/locales/el/comments.json":function(){return c2},"/ghost/i18n/locales/en/comments.json":function(){return d2},"/ghost/i18n/locales/eo/comments.json":function(){return m2},"/ghost/i18n/locales/es/comments.json":function(){return f2},"/ghost/i18n/locales/et/comments.json":function(){return p2},"/ghost/i18n/locales/fa/comments.json":function(){return h2},"/ghost/i18n/locales/fi/comments.json":function(){return g2},"/ghost/i18n/locales/fr/comments.json":function(){return y2},"/ghost/i18n/locales/gd/comments.json":function(){return w2},"/ghost/i18n/locales/hi/comments.json":function(){return S2},"/ghost/i18n/locales/hr/comments.json":function(){return v2},"/ghost/i18n/locales/hu/comments.json":function(){return k2},"/ghost/i18n/locales/id/comments.json":function(){return b2},"/ghost/i18n/locales/is/comments.json":function(){return x2},"/ghost/i18n/locales/it/comments.json":function(){return $2},"/ghost/i18n/locales/ja/comments.json":function(){return C2},"/ghost/i18n/locales/ko/comments.json":function(){return E2},"/ghost/i18n/locales/kz/comments.json":function(){return N2},"/ghost/i18n/locales/lt/comments.json":function(){return O2},"/ghost/i18n/locales/mk/comments.json":function(){return A2},"/ghost/i18n/locales/mn/comments.json":function(){return R2},"/ghost/i18n/locales/ms/comments.json":function(){return M2},"/ghost/i18n/locales/nl/comments.json":function(){return D2},"/ghost/i18n/locales/nn/comments.json":function(){return T2},"/ghost/i18n/locales/no/comments.json":function(){return j2},"/ghost/i18n/locales/pl/comments.json":function(){return P2},"/ghost/i18n/locales/pt/comments.json":function(){return I2},"/ghost/i18n/locales/pt-BR/comments.json":function(){return L2},"/ghost/i18n/locales/ro/comments.json":function(){return z2},"/ghost/i18n/locales/ru/comments.json":function(){return F2},"/ghost/i18n/locales/si/comments.json":function(){return B2},"/ghost/i18n/locales/sk/comments.json":function(){return H2},"/ghost/i18n/locales/sl/comments.json":function(){return V2},"/ghost/i18n/locales/sq/comments.json":function(){return U2},"/ghost/i18n/locales/sr/comments.json":function(){return J2},"/ghost/i18n/locales/sr-Cyrl/comments.json":function(){return _2},"/ghost/i18n/locales/sv/comments.json":function(){return Y2},"/ghost/i18n/locales/th/comments.json":function(){return K2},"/ghost/i18n/locales/tr/comments.json":function(){return W2},"/ghost/i18n/locales/uk/comments.json":function(){return q2},"/ghost/i18n/locales/ur/comments.json":function(){return G2},"/ghost/i18n/locales/uz/comments.json":function(){return Q2},"/ghost/i18n/locales/vi/comments.json":function(){return Z2},"/ghost/i18n/locales/zh/comments.json":function(){return X2},"/ghost/i18n/locales/zh-Hant/comments.json":function(){return eN},"/ghost/i18n/locales/sw/comments.json":function(){return tN},"/ghost/i18n/locales/ta/comments.json":function(){return nN}})}function oN(t){function e(n){var o=e1(n,t);if(o!==null)return X0()[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=e1(n,t);return o!==null?o:require.resolve(n)},e}function e1(t,e){var n=rN(t);t=cl(t);var o;t[0]==="/"&&(e="");for(var r=X0(),i=["",".js",".json"];n?o=cl(e+"/node_modules/"+t):o=cl(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=cl(e+"/..");if(l===e)break;e=l}return null}function rN(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 cl(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 tm={exports:{}};const iN={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 dl{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||iN,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:(typeof e[0]=="string"&&(e[0]=`${o}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new dl(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new dl(this.logger,e)}}var Mt=new dl;class ml{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 u=0;u<l;u++)a(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[a,l]=s;for(let u=0;u<l;u++)a.apply(a,[e,...o])})}}const Hi=()=>{let t,e;const n=new Promise((o,r)=>{t=o,e=r});return n.resolve=t,n.reject=e,n},t1=t=>t==null?"":""+t,sN=(t,e,n)=>{t.forEach(o=>{e[o]&&(n[o]=e[o])})},aN=/###/g,n1=t=>t&&t.indexOf("###")>-1?t.replace(aN,"."):t,o1=t=>!t||typeof t=="string",Vi=(t,e,n)=>{const o=typeof e!="string"?e:e.split(".");let r=0;for(;r<o.length-1;){if(o1(t))return{};const i=n1(o[r]);!t[i]&&n&&(t[i]=new n),Object.prototype.hasOwnProperty.call(t,i)?t=t[i]:t={},++r}return o1(t)?{}:{obj:t,k:n1(o[r])}},r1=(t,e,n)=>{const{obj:o,k:r}=Vi(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=Vi(t,s,Object);for(;a.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=Vi(t,s,Object),a&&a.obj&&typeof a.obj[`${a.k}.${i}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},lN=(t,e,n,o)=>{const{obj:r,k:i}=Vi(t,e,Object);r[i]=r[i]||[],r[i].push(n)},fl=(t,e)=>{const{obj:n,k:o}=Vi(t,e);if(n)return n[o]},uN=(t,e,n)=>{const o=fl(t,n);return o!==void 0?o:fl(e,n)},i1=(t,e,n)=>{for(const o in e)o!=="__proto__"&&o!=="constructor"&&(o in t?typeof t[o]=="string"||t[o]instanceof String||typeof e[o]=="string"||e[o]instanceof String?n&&(t[o]=e[o]):i1(t[o],e[o],n):t[o]=e[o]);return t},fr=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var cN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const dN=t=>typeof t=="string"?t.replace(/[&<>"'\/]/g,e=>cN[e]):t;class mN{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 fN=[" ",",","?","!",";"],pN=new mN(20),hN=(t,e,n)=>{e=e||"",n=n||"";const o=fN.filter(s=>e.indexOf(s)<0&&n.indexOf(s)<0);if(o.length===0)return!0;const r=pN.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},nm=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},pl=t=>t&&t.replace("_","-");class s1 extends ml{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):typeof o=="string"&&i?a.push(...o.split(i)):a.push(o)));const l=fl(this.data,a);return!l&&!n&&!o&&e.indexOf(".")>-1&&(e=a[0],n=a[1],o=a.slice(2).join(".")),l||!s||typeof o!="string"?l:nm(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),r1(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)(typeof o[i]=="string"||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=fl(this.data,a)||{};s.skipCopy||(o=JSON.parse(JSON.stringify(o))),r?i1(l,o,i):l={...l,...o},r1(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 a1={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 l1={};class hl extends ml{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),sN(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Mt.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&&!hN(e,o,r);if(s&&!a){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:i};const u=e.split(o);(o!==r||o===r&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(r)}return typeof i=="string"&&(i=[i]),{key:e,namespaces: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],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const b=n.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${b}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${b}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s}const m=this.resolve(e,n);let d=m&&m.res;const f=m&&m.usedKey||s,p=m&&m.exactUsedKey||s,y=Object.prototype.toString.apply(d),h=["[object Number]","[object Function]","[object RegExp]"],g=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject;if(w&&d&&(typeof d!="string"&&typeof d!="boolean"&&typeof d!="number")&&h.indexOf(y)<0&&!(typeof g=="string"&&Array.isArray(d))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const b=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...n,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(m.res=b,m.usedParams=this.getUsedParamsDetails(n),m):b}if(i){const b=Array.isArray(d),E=b?[]:{},k=b?p:f;for(const $ in d)if(Object.prototype.hasOwnProperty.call(d,$)){const R=`${k}${i}${$}`;E[$]=this.translate(R,{...n,joinArrays:!1,ns:a}),E[$]===R&&(E[$]=d[$])}d=E}}else if(w&&typeof g=="string"&&Array.isArray(d))d=d.join(g),d&&(d=this.extendTranslation(d,e,n,o));else{let b=!1,E=!1;const k=n.count!==void 0&&typeof n.count!="string",$=hl.hasDefaultValue(n),R=k?this.pluralResolver.getSuffix(u,n.count,n):"",C=n.ordinal&&k?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",J=k&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),ie=J&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${R}`]||n[`defaultValue${C}`]||n.defaultValue;!this.isValidLookup(d)&&$&&(b=!0,d=ie),this.isValidLookup(d)||(E=!0,d=s);const q=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:d,Ne=$&&ie!==d&&this.options.updateMissing;if(E||b||Ne){if(this.logger.log(Ne?"updateKey":"missingKey",u,l,s,Ne?ie:d),i){const G=this.resolve(s,{...n,keySeparator:!1});G&&G.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 ae=[];const fe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&fe&&fe[0])for(let G=0;G<fe.length;G++)ae.push(fe[G]);else this.options.saveMissingTo==="all"?ae=this.languageUtils.toResolveHierarchy(n.lng||this.language):ae.push(n.lng||this.language);const ce=(G,le,ve)=>{const M=$&&ve!==d?ve:q;this.options.missingKeyHandler?this.options.missingKeyHandler(G,l,le,M,Ne,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(G,l,le,M,Ne,n),this.emit("missingKey",G,l,le,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?ae.forEach(G=>{const le=this.pluralResolver.getSuffixes(G,n);J&&n[`defaultValue${this.options.pluralSeparator}zero`]&&le.indexOf(`${this.options.pluralSeparator}zero`)<0&&le.push(`${this.options.pluralSeparator}zero`),le.forEach(ve=>{ce([G],s+ve,n[`defaultValue${ve}`]||ie)})}):ce(ae,s,ie))}d=this.extendTranslation(d,e,n,m,o),E&&d===s&&this.options.appendNamespaceToMissingKey&&(d=`${l}:${s}`),(E||b)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,b?d:void 0):d=this.options.parseMissingKeyHandler(d))}return r?(m.res=d,m.usedParams=this.getUsedParamsDetails(n),m):d}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 u=typeof e=="string"&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const d=e.match(this.interpolator.nestingRegexp);c=d&&d.length}let m=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),e=this.interpolator.interpolate(e,m,o.lng||this.language||r.usedLng,o),u){const d=e.match(this.interpolator.nestingRegexp),f=d&&d.length;c<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 d=arguments.length,f=new Array(d),p=0;p<d;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=typeof a=="string"?[a]:a;return e!=null&&l&&l.length&&o.applyPostProcessor!==!1&&(e=a1.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 typeof e=="string"&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(o))return;const u=this.extractFromKey(l,n),c=u.key;r=c;let m=u.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const d=n.count!==void 0&&typeof n.count!="string",f=d&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),p=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(h=>{this.isValidLookup(o)||(a=h,!l1[`${y[0]}-${h}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(l1[`${y[0]}-${h}`]=!0,this.logger.warn(`key "${r}" for languages "${y.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!!!")),y.forEach(g=>{if(this.isValidLookup(o))return;s=g;const w=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(w,c,g,h,n);else{let b;d&&(b=this.pluralResolver.getSuffix(g,n.count,n));const E=`${this.options.pluralSeparator}zero`,k=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(w.push(c+b),n.ordinal&&b.indexOf(k)===0&&w.push(c+b.replace(k,this.options.pluralSeparator)),f&&w.push(c+E)),p){const $=`${c}${this.options.contextSeparator}${n.context}`;w.push($),d&&(w.push($+b),n.ordinal&&b.indexOf(k)===0&&w.push($+b.replace(k,this.options.pluralSeparator)),f&&w.push($+E))}}let v;for(;v=w.pop();)this.isValidLookup(o)||(i=v,o=this.getResource(g,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&&typeof e.replace!="string";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 om=t=>t.charAt(0).toUpperCase()+t.slice(1);class u1{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Mt.create("languageUtils")}getScriptPartFromCode(e){if(e=pl(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=pl(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(typeof e=="string"&&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]=om(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]=om(o[1].toLowerCase())),n.indexOf(o[2].toLowerCase())>-1&&(o[2]=om(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)),typeof e=="string"&&(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 typeof e=="string"&&(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))):typeof e=="string"&&i(this.formatLanguageCode(e)),o.forEach(s=>{r.indexOf(s)<0&&i(this.formatLanguageCode(s))}),r}}let gN=[{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}],yN={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 wN=["v1","v2","v3"],SN=["v4"],c1={zero:0,one:1,two:2,few:3,many:4,other:5},vN=()=>{const t={};return gN.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:yN[e.fc]}})}),t};class kN{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=Mt.create("pluralResolver"),(!this.options.compatibilityJSON||SN.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=vN(),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())try{const o=pl(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];const s=new Intl.PluralRules(o,{type:r});return this.pluralRulesCache[i]=s,s}catch{return}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)=>c1[r]-c1[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!wN.includes(this.options.compatibilityJSON)}}const d1=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=uN(t,e,n);return!i&&r&&typeof n=="string"&&(i=nm(t,n,o),i===void 0&&(i=nm(e,n,o))),i},rm=t=>t.replace(/\$/g,"$$$$");class bN{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Mt.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:u,unescapeSuffix:c,unescapePrefix:m,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:y,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:w}=e.interpolation;this.escape=n!==void 0?n:dN,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=i?fr(i):s||"{{",this.suffix=a?fr(a):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?fr(d):f||fr("$t("),this.nestingSuffix=p?fr(p):y||fr(")"),this.nestingOptionsSeparator=h||",",this.maxReplaces=g||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||{},u=f=>{if(f.indexOf(this.formatSeparator)<0){const g=d1(n,l,f,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(g,void 0,o,{...r,...n,interpolationkey:f}):g}const p=f.split(this.formatSeparator),y=p.shift().trim(),h=p.join(this.formatSeparator).trim();return this.format(d1(n,l,y,this.options.keySeparator,this.options.ignoreJSONStructure),h,o,{...r,...n,interpolationkey:y})};this.resetRegExp();const c=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,m=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:f=>rm(f)},{regex:this.regexp,safeValue:f=>this.escapeValue?rm(this.escape(f)):rm(f)}].forEach(f=>{for(a=0;i=f.regex.exec(e);){const p=i[1].trim();if(s=u(p),s===void 0)if(typeof c=="function"){const h=c(e,i,r);s=typeof h=="string"?h:""}else if(r&&Object.prototype.hasOwnProperty.call(r,p))s="";else if(m){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${p} for interpolating ${e}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=t1(s));const y=f.safeValue(s);if(e=e.replace(i[0],y),m?(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,u)=>{const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const m=l.split(new RegExp(`${c}[ ]*{`));let d=`{${m[1]}`;l=m[0],d=this.interpolate(d,s);const f=d.match(/'/g),p=d.match(/"/g);(f&&f.length%2===0&&!p||p.length%2!==0)&&(d=d.replace(/'/g,'"'));try{s=JSON.parse(d),u&&(s={...u,...s})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${c}${d}`}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&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){const c=r[1].split(this.formatSeparator).map(m=>m.trim());r[1]=c.shift(),l=c,u=!0}if(i=n(a.call(this,r[1].trim(),s),s),i&&r[0]===e&&typeof i!="string")return i;typeof i!="string"&&(i=t1(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=""),u&&(i=l.reduce((c,m)=>this.format(c,m,o.lng,{...o,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}const xN=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(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),c=a.trim();n[c]||(n[c]=u),u==="false"&&(n[c]=!1),u==="true"&&(n[c]=!0),isNaN(u)||(n[c]=parseInt(u,10))}})}return{formatName:e,formatOptions:n}},pr=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(pl(o),r),e[s]=a),a(n)}};class $N{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Mt.create("formatter"),this.options=e,this.formats={number:pr((n,o)=>{const r=new Intl.NumberFormat(n,{...o});return i=>r.format(i)}),currency:pr((n,o)=>{const r=new Intl.NumberFormat(n,{...o,style:"currency"});return i=>r.format(i)}),datetime:pr((n,o)=>{const r=new Intl.DateTimeFormat(n,{...o});return i=>r.format(i)}),relativetime:pr((n,o)=>{const r=new Intl.RelativeTimeFormat(n,{...o});return i=>r.format(i,o.range||"day")}),list:pr((n,o)=>{const r=new Intl.ListFormat(n,{...o});return i=>r.format(i)})},this.init(e)}init(e){const o=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=pr(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:u,formatOptions:c}=xN(l);if(this.formats[u]){let m=a;try{const d=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},f=d.locale||d.lng||r.locale||r.lng||o;m=this.formats[u](a,f,{...c,...r,...d})}catch(d){this.logger.warn(d)}return m}else this.logger.warn(`there was no format function for ${u}`);return a},e)}}const CN=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class EN extends ml{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=Mt.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(u=>{let c=!0;n.forEach(m=>{const d=`${u}|${m}`;!o.reload&&this.store.hasResourceBundle(u,m)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?s[d]===void 0&&(s[d]=!0):(this.state[d]=1,c=!1,s[d]===void 0&&(s[d]=!0),i[d]===void 0&&(i[d]=!0),l[m]===void 0&&(l[m]=!0)))}),c||(a[u]=!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=>{lN(l.loaded,[i],s),CN(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{a[u]||(a[u]={});const c=l.loaded[u];c.length&&c.forEach(m=>{a[u][m]===void 0&&(a[u][m]=!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=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(u&&c&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,o,r+1,i*2,s)},i);return}s(u,c)},l=this.backend[o].bind(this.backend);if(l.length===2){try{const u=l(e,n);u&&typeof u.then=="function"?u.then(c=>a(null,c)).catch(a):a(null,u)}catch(u){a(u)}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();typeof e=="string"&&(e=this.languageUtils.toResolveHierarchy(e)),typeof n=="string"&&(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},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(e,n,o,r,l):c=u(e,n,o,r),c&&typeof c.then=="function"?c.then(m=>a(null,m)).catch(a):a(null,c)}catch(c){a(c)}else u(e,n,o,r,a,l)}!e||!e[0]||this.store.addResource(e[0],n,o,r)}}}const m1=()=>({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]),typeof t[1]=="string"&&(e.defaultValue=t[1]),typeof t[2]=="string"&&(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}}),f1=t=>(typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),gl=()=>{},NN=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class Ui extends ml{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=f1(e),this.services={},this.logger=Mt,this.modules={external:[]},NN(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&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const r=m1();this.options={...r,...this.options,...f1(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=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?Mt.init(i(this.modules.logger),this.options):Mt.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=$N);const m=new u1(this.options);this.store=new s1(this.options.resources,this.options);const d=this.services;d.logger=Mt,d.resourceStore=this.store,d.languageUtils=m,d.pluralResolver=new kN(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(d.formatter=i(c),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new bN(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new EN(i(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(f){for(var p=arguments.length,y=new Array(p>1?p-1:0),h=1;h<p;h++)y[h-1]=arguments[h];e.emit(f,...y)}),this.modules.languageDetector&&(d.languageDetector=i(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=i(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new hl(this.services,this.options),this.translator.on("*",function(f){for(var p=arguments.length,y=new Array(p>1?p-1:0),h=1;h<p;h++)y[h-1]=arguments[h];e.emit(f,...y)}),this.modules.external.forEach(f=>{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,o||(o=gl),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[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(c=>{this[c]=function(){return e.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return e.store[c](...arguments),e}});const l=Hi(),u=()=>{const c=(m,d)=>{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(d),o(m,d)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gl;const r=typeof e=="string"?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(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};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=Hi();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=gl),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"&&a1.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=Hi();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,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):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 u=typeof l=="string"?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{s(c,u)})};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 u=arguments.length,c=new Array(u>2?u-2:0),m=2;m<u;m++)c[m-2]=arguments[m];l=r.options.overloadTranslationOptionHandler([s,a].concat(c))}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 d=r.options.keySeparator||".";let f;return l.keyPrefix&&Array.isArray(s)?f=s.map(p=>`${l.keyPrefix}${d}${p}`):f=l.keyPrefix?`${l.keyPrefix}${d}${s}`:s,r.t(f,l)};return typeof e=="string"?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 u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===0||u===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=Hi();return this.options.ns?(typeof e=="string"&&(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=Hi();typeof e=="string"&&(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 u1(m1());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 Ui(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gl;const o=e.forkResourceStore;o&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new Ui(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 s1(this.store.data,r),i.services.resourceStore=i.store),i.translator=new hl(i.services,r),i.translator.on("*",function(a){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];i.emit(a,...u)}),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 p1=Ui.createInstance();p1.createInstance=Ui.createInstance;var ON=p1;const AN=ON,h1=["af","ar","bg","bn","bs","ca","cs","da","de","de-CH","el","en","eo","es","et","fa","fi","fr","gd","hi","hr","hu","id","is","it","ja","ko","kz","lt","mk","mn","ms","nl","nn","no","pl","pt","pt-BR","ro","ru","si","sk","sl","sq","sr","sr-Cyrl","sv","th","tr","uk","ur","uz","vi","zh","zh-Hant","sw","ta"];tm.exports=(t="en",e="portal")=>{const n=AN.createInstance();return n.init({lng:t,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:!1,ns:e,defaultNS:e,resources:h1.reduce((o,r)=>{const i=oN("/ghost/i18n/lib")(`../locales/${r}/${e}.json`);return o[r]={[e]:{...i,...i.default&&typeof i.default=="object"?i.default:{}}},o},{})}),n},tm.exports.SUPPORTED_LOCALES=h1;var RN=tm.exports,MN=RN;const DN=Qe(MN);function TN({siteUrl:t=window.location.origin,apiUrl:e,apiKey:n}){const o="members/api";function r({type:u,resource:c,params:m=""}){return u==="members"?`${t.replace(/\/$/,"")}/${o}/${c}/${m}`:""}function i({resource:u,params:c=""}){return e&&n?`${e.replace(/\/$/,"")}/${u}/?key=${n}&limit=all${c}`:""}function s({url:u,method:c="GET",headers:m={},credentials:d=void 0,body:f=void 0}){return fetch(u,{method:c,headers:m,credentials:d,body:f})}let a=null;const l={site:{settings(){const u=i({resource:"settings"});return s({url:u,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(c){if(c.ok)return c.json();throw new Error("Failed to fetch site data")})}},member:{identity(){const u=r({type:"members",resource:"session"});return s({url:u,credentials:"same-origin"}).then(function(c){return!c.ok||c.status===204?null:c.text()})},sessionData(){const u=r({type:"members",resource:"member"});return s({url:u,credentials:"same-origin"}).then(function(c){return!c.ok||c.status===204?null:c.json()})},update({name:u,expertise:c}){const m=r({type:"members",resource:"member"});return s({url:m,method:"PUT",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({name:u,expertise:c})}).then(function(f){return f.ok?f.json():null})}},comments:{async count({postId:u}){const c=u?`?ids=${u}`:"",m=r({type:"members",resource:"comments/counts",params:c}),f=await(await s({url:m,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"})).json();return u?f[u]:f},browse({page:u,postId:c}){let m=null;a&&(m=`created_at:<=${a}`);const d=new URLSearchParams;d.set("limit","20"),m&&d.set("filter",m),d.set("page",u.toString());const f=r({type:"members",resource:`comments/post/${c}`,params:`?${d.toString()}`}),p=s({url:f,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"}).then(function(y){if(y.ok)return y.json();throw new Error("Failed to fetch comments")});return a||p.then(y=>{const h=y.comments[0];h&&(a=h.created_at)}),p},async replies({commentId:u,afterReplyId:c,limit:m}){const d=encodeURIComponent(`id:>'${c}'`),f=r({type:"members",resource:`comments/${u}/replies`,params:`?limit=${m??5}&filter=${d}`}),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:u}){const c={comments:[u]},m=r({type:"members",resource:"comments"});return s({url:m,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)}).then(function(d){if(d.ok)return d.json();throw new Error("Failed to add comment")})},edit({comment:u}){const c={comments:[u]},m=r({type:"members",resource:`comments/${u.id}`});return s({url:m,method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)}).then(function(d){if(d.ok)return d.json();throw new Error("Failed to edit comment")})},read(u){const c=r({type:"members",resource:`comments/${u}`});return s({url:c,method:"GET",credentials:"same-origin"}).then(function(m){if(m.ok)return m.json();throw new Error("Failed to read comment")})},like({comment:u}){const c=r({type:"members",resource:`comments/${u.id}/like`});return s({url:c,method:"POST",headers:{"Content-Type":"application/json"}}).then(function(m){if(m.ok)return"Success";throw new Error("Failed to like comment")})},unlike({comment:u}){const c={comments:[u]},m=r({type:"members",resource:`comments/${u.id}/like`});return s({url:m,method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)}).then(function(d){if(d.ok)return"Success";throw new Error("Failed to unlike comment")})},report({comment:u}){const c=r({type:"members",resource:`comments/${u.id}/report`});return s({url:c,method:"POST",headers:{"Content-Type":"application/json"}}).then(function(m){if(m.ok)return"Success";throw new Error("Failed to report comment")})}},init:()=>{}};return l.init=async()=>{const[u]=await Promise.all([l.member.sessionData()]);let c={};try{const m=await l.site.settings();m.settings.labs&&Object.assign(c,m.settings.labs)}catch{c={}}return{member:u,labs:c}},l}async function jN({state:t,api:e,options:n}){let o=1;t.pagination&&t.pagination.page&&(o=t.pagination.page+1);const r=await e.comments.browse({page:o,postId:n.postId});return{comments:[...t.comments,...r.comments],pagination:r.meta.pagination}}async function PN({state:t,api:e,data:{comment:n,limit:o}}){var i;const r=await e.comments.replies({commentId:n.id,afterReplyId:(i=n.replies[n.replies.length-1])==null?void 0:i.id,limit:o});return{comments:t.comments.map(s=>s.id===n.id?{...n,replies:[...n.replies,...r.comments]}:s)}}async function IN({state:t,api:e,data:n}){return n=(await e.comments.add({comment:n})).comments[0],{comments:[n,...t.comments],commentCount:t.commentCount+1}}async function LN({state:t,api:e,data:{reply:n,parent:o}}){let r=n;return r.parent_id=o.id,r=(await e.comments.add({comment:r})).comments[0],{comments:t.comments.map(s=>s.id===o.id?{...o,replies:[...o.replies,r],count:{...o.count,replies:o.count.replies+1}}:s),commentCount:t.commentCount+1}}async function zN({state:t,adminApi:e,data:n}){return await e.hideComment(n.id),{comments:t.comments.map(o=>{const r=o.replies.map(i=>i.id===n.id?{...i,status:"hidden"}:i);return o.id===n.id?{...o,status:"hidden",replies:r}:{...o,replies:r}}),commentCount:t.commentCount-1}}async function FN({state:t,api:e,adminApi:n,data:o}){await n.showComment(o.id);const i=(await e.comments.read(o.id)).comments[0];return{comments:t.comments.map(s=>{const a=s.replies.map(l=>l.id===o.id?i:l);return s.id===o.id?i:{...s,replies:a}}),commentCount:t.commentCount+1}}async function BN({state:t,api:e,data:n}){return await e.comments.like({comment:n}),{comments:t.comments.map(o=>{const r=o.replies.map(i=>i.id===n.id?{...i,liked:!0,count:{...i.count,likes:i.count.likes+1}}:i);return o.id===n.id?{...o,liked:!0,replies:r,count:{...o.count,likes:o.count.likes+1}}:{...o,replies:r}})}}async function HN({api:t,data:e}){return await t.comments.report({comment:e}),{}}async function VN({state:t,api:e,data:n}){return await e.comments.unlike({comment:n}),{comments:t.comments.map(o=>{const r=o.replies.map(i=>i.id===n.id?{...i,liked:!1,count:{...i.count,likes:i.count.likes-1}}:i);return o.id===n.id?{...o,liked:!1,replies:r,count:{...o.count,likes:o.count.likes-1}}:{...o,replies:r}})}}async function UN({state:t,api:e,data:n}){return await e.comments.edit({comment:{id:n.id,status:"deleted"}}),{comments:t.comments.map(o=>{const r=o.replies.map(i=>i.id===n.id?{...i,status:"deleted"}:i);return o.id===n.id?{...o,status:"deleted",replies:r}:{...o,replies:r}}),commentCount:t.commentCount-1}}async function JN({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 _N({data:t,state:e,api:n}){var l,u;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=(u=e==null?void 0:e.member)==null?void 0:u.expertise;if(r!==void 0&&a!==r&&(i.expertise=r),Object.keys(i).length>0)try{const c=await n.member.update(i);if(!c)throw new Error("Failed to update member");return{member:c,success:!0}}catch(c){return{success:!1,error:c}}return null}function YN({data:t}){return{popup:t}}function KN(){return{popup:null}}function WN({state:t}){return{secundaryFormCount:t.secundaryFormCount+1}}function qN({state:t}){return{secundaryFormCount:t.secundaryFormCount-1}}const g1={openPopup:YN,closePopup:KN,increaseSecundaryFormCount:WN,decreaseSecundaryFormCount:qN},GN={addComment:IN,editComment:JN,hideComment:zN,deleteComment:UN,showComment:FN,likeComment:BN,unlikeComment:VN,reportComment:HN,addReply:LN,loadMoreComments:jN,loadMoreReplies:PN,updateMember:_N};function QN(t){return!!g1[t]}async function ZN({action:t,data:e,state:n,api:o,adminApi:r,options:i}){const s=GN[t];return s?await s({data:e,state:n,api:o,adminApi:r,options:i})||{}:{}}function XN({action:t,data:e,state:n,api:o,adminApi:r,options:i}){const s=g1[t];return s?s({data:e,state:n,api:o,adminApi:r,options:i})||{}:{}}function eO({adminUrl:t}){const e=document.querySelector('iframe[data-frame="admin-auth"]');let n=1;const o={},r=new URL(t).origin;window.addEventListener("message",function(a){if(a.origin!==r)return;let l=null;try{l=JSON.parse(a.data)}catch{return}const u=o[l.uid];u&&(delete o[l.uid],u(l.error,l.result))});function i(a,l){return new Promise((u,c)=>{function m(d,f){return d?c(d):u(f)}n+=1,o[n]=m,e.contentWindow.postMessage(JSON.stringify({uid:n,action:a,...l}),r)})}return{async getUser(){const a=await i("getUser");return!a||!a.users?null:a.users[0]},async hideComment(a){return await i("hideComment",{id:a})},async showComment(a){return await i("showComment",{id:a})}}}function tO(t){const e=H.useCallback(()=>{const i=t.dataset,s=i.ghostComments||window.location.origin,a=i.key,l=i.api,u=i.admin,c=i.postId||"",m=i.colorScheme,d=i.avatarSaturation?parseInt(i.avatarSaturation):void 0,f=i.accentColor??"#000000",p=i.commentsEnabled,y=i.title==="null"?null:i.title??"",h=i.count==="true",g=i.publication??"";return{locale:i.locale??"en",siteUrl:s,apiKey:a,apiUrl:l,postId:c,adminUrl:u,colorScheme:m,avatarSaturation:d,accentColor:f,commentsEnabled:p,title:y,showCount:h,publication:g}},[t]),n=x.useMemo(()=>e(),[]),[o,r]=H.useState(n);return H.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 nO=({scriptTag:t})=>{const e=tO(t),[n,o]=x.useState({initStatus:"running",member:null,admin:null,comments:[],pagination:null,commentCount:0,secundaryFormCount:0,popup:null,labs:null}),r=H.createRef(),i=H.useMemo(()=>TN({siteUrl:e.siteUrl,apiUrl:e.apiUrl,apiKey:e.apiKey}),[e]),[s,a]=x.useState(null),l=x.useCallback(h=>{o(g=>(typeof h=="function"&&(h=h(g)),{...g,...h}))},[o]),u=x.useCallback(async(h,g)=>{if(QN(h)){l(w=>XN({action:h,data:g,state:w,api:i,adminApi:s,options:e}));return}l(w=>(ZN({action:h,data:g,state:w,api:i,adminApi:s,options:e}).then(v=>{l({...v})}).catch(console.error),{}))},[i,s,e]),c=x.useMemo(()=>DN(e.locale,"comments"),[e.locale]),m={...e,...n,t:c.t,dispatchAction:u},d=async()=>{if(!(s||!e.adminUrl))try{const h=eO({adminUrl:e.adminUrl});a(h);let g=null;try{g=await h.getUser()}catch(w){console.warn("[Comments] Failed to fetch current admin user:",w)}l({admin:g})}catch(h){console.error("[Comments] Failed to initialize admin authentication:",h)}},f=async()=>{const h=i.comments.browse({page:1,postId:e.postId}),g=i.comments.count({postId:e.postId}),[w,v]=await Promise.all([h,g]);return{comments:w.comments,pagination:w.meta.pagination,count:v}},p=async()=>{try{const{member:h,labs:g}=await i.init(),{comments:w,pagination:v,count:b}=await f();l({member:h,initStatus:"success",comments:w,pagination:v,commentCount:b,labs:g})}catch(h){console.error("[Comments] Failed to initialize:",h),l({initStatus:"failed"})}};x.useEffect(()=>{const h=new IntersectionObserver(g=>{g.forEach(w=>{w.isIntersecting&&(p(),r.current&&h.unobserve(r.current))})},{root:null,rootMargin:"0px",threshold:.1});return r.current&&h.observe(r.current),()=>{r.current&&h.unobserve(r.current)}},[r.current]);const y=n.initStatus==="success";return S.jsxs(xl.Provider,{value:m,children:[S.jsx(YE,{ref:r,children:S.jsx(HE,{done:y})}),n.comments.length>0?S.jsx(M1,{adminUrl:e.adminUrl,onLoad:d}):null,S.jsx(XE,{})]})};function oO(){let t=document.currentScript;if(!t)throw new Error("[Comments-UI] Cannot find current script tag");return t}function rO(t){if(t.previousElementSibling&&t.previousElementSibling.id===ul)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=ul,t.parentElement.insertBefore(e,t),e}function iO(){const t=new URL(window.location.href);t.searchParams.get("token")&&(t.searchParams.delete("token"),window.history.replaceState({},document.title,t.href))}function sO(){const t=oO(),e=rO(t);try{iO(),u0.render(S.jsx(H.StrictMode,{children:S.jsx(nO,{scriptTag:t})}),e)}catch(n){console.error(n)}}sO()});
154
+ 3. "-" cannot repeat`);oe.customSchemes.push([t,e])}function tE(){oe.scanner=YC(oe.customSchemes);for(let t=0;t<oe.tokenQueue.length;t++)oe.tokenQueue[t][1]({scanner:oe.scanner});oe.parser=GC(oe.scanner.tokens);for(let t=0;t<oe.pluginQueue.length;t++)oe.pluginQueue[t][1]({scanner:oe.scanner,parser:oe.parser});oe.initialized=!0}function J0(t){return oe.initialized||tE(),QC(oe.parser.start,t,KC(oe.scanner.start,t))}function _0(t,e,n){if(e===void 0&&(e=null),n===void 0&&(n=null),e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const o=new Xd(n),r=J0(t),i=[];for(let s=0;s<r.length;s++){const a=r[s];a.isLink&&(!e||a.t===e)&&i.push(a.toFormattedObject(o))}return i}function nE(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function oE(t){return new Ve({key:new ft("autolink"),appendTransaction:(e,n,o)=>{const r=e.some(u=>u.docChanged)&&!n.doc.eq(o.doc),i=e.some(u=>u.getMeta("preventAutolink"));if(!r||i)return;const{tr:s}=o,a=dk(n.doc,[...e]);if(vk(a).forEach(({newRange:u})=>{const c=fk(o.doc,u,f=>f.isTextblock);let m,d;if(c.length>1?(m=c[0],d=o.doc.textBetween(m.pos,m.pos+m.node.nodeSize,void 0," ")):c.length&&o.doc.textBetween(u.from,u.to," "," ").endsWith(" ")&&(m=c[0],d=o.doc.textBetween(m.pos,u.to,void 0," ")),m&&d){const f=d.split(" ").filter(g=>g!=="");if(f.length<=0)return!1;const p=f[f.length-1],y=m.pos+d.lastIndexOf(p);if(!p)return!1;const h=J0(p).map(g=>g.toObject(t.defaultProtocol));if(!nE(h))return!1;h.filter(g=>g.isLink).map(g=>({...g,from:y+g.start+1,to:y+g.end+1})).filter(g=>o.schema.marks.code?!o.doc.rangeHasMark(g.from,g.to,o.schema.marks.code):!0).filter(g=>t.validate(g.value)).forEach(g=>{yh(g.from,g.to,o.doc).some(w=>w.mark.type===t.type)||s.addMark(g.from,g.to,t.type.create({href:g.href}))})}}),!!s.steps.length)return s}})}function rE(t){return new Ve({key:new ft("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(d=>d.nodeName==="A"))return!1;const l=gh(e.state,t.type.name),u=o.target,c=(r=u==null?void 0:u.href)!==null&&r!==void 0?r:l.href,m=(i=u==null?void 0:u.target)!==null&&i!==void 0?i:l.target;return u&&c?(window.open(c,m),!0):!1}}})}function iE(t){return new Ve({key:new ft("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(u=>{a+=u.textContent});const l=_0(a,{defaultProtocol:t.defaultProtocol}).find(u=>u.isLink&&u.value===a);return!a||!l?!1:(t.editor.commands.setMark(t.type,{href:l.href}),!0)}}})}const sE=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;function Y0(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(sE,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`,"i"))}const aE=zr.create({name:"link",priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.protocols.forEach(t=>{if(typeof t=="string"){U0(t);return}U0(t.scheme,t.optionalSlashes)})},onDestroy(){eE()},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},validate: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||!Y0(e,this.options.protocols)?!1:null}}]},renderHTML({HTMLAttributes:t}){return Y0(t.href,this.options.protocols)?["a",Mo(this.options.HTMLAttributes,t),0]:["a",Mo(this.options.HTMLAttributes,{...t,href:""}),0]},addCommands(){return{setLink:t=>({chain:e})=>e().setMark(this.name,t).setMeta("preventAutolink",!0).run(),toggleLink:t=>({chain:e})=>e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Uk({find:t=>{const e=[];if(t){const{validate:n}=this.options,o=_0(t).filter(r=>r.isLink&&n(r.value));o.length&&o.forEach(r=>e.push({text:r.value,data:{href:r.href},index:r.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=[];return this.options.autolink&&t.push(oE({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:this.options.validate})),this.options.openOnClick===!0&&t.push(rE({type:this.type})),this.options.linkOnPaste&&t.push(iE({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),t}}),lE=ln.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Mo(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),uE=ot.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Ve({key:new ft("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,u=!s.isLeaf&&Ds(s);if((l||!this.options.showOnlyCurrent)&&u){const c=[this.options.emptyNodeClass];i&&c.push(this.options.emptyEditorClass);const m=nt.node(a,a+s.nodeSize,{class:c.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(m)}return this.options.includeChildren}),me.create(t,r)}}})]}}),cE=ln.create({name:"text",group:"inline"});function tm({placeholder:t,autofocus:e=!1,content:n=""}){return{extensions:[IC,cE,lE,aE.configure({openOnClick:!1}),uE.configure({placeholder:t,showOnlyWhenEditable:!1}),PC.configure({}),LC.configure({})],content:n,autofocus:e,editorProps:{attributes:{class:"gh-comment-content focus:outline-0","data-testid":"editor"}},parseOptions:{preserveWhitespace:"full"}}}const dE=({comment:t,parent:e,close:n})=>{const{dispatchAction:o,t:r}=U(),i={placeholder:r("Edit this comment"),autofocus:!1,content:t.html},s=Nd({...tm(i)});x.useEffect(()=>{s&&s.chain().focus().command(({tr:c,commands:m})=>m.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:e})},[e,t,o]),l={submitText:r("Save"),submitSize:"small",submit:a},u=x.useCallback(()=>{(s==null?void 0:s.getHTML())===t.html&&n()},[s,n,t.html]);return S.jsx("div",{className:"px-3 pb-2 pt-3",children:S.jsx(A0,{close:n,closeIfNotChanged:u,editor:s,...l})})},mE=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"})),fE=({comment:t})=>{const{dispatchAction:e,member:n,commentsEnabled:o}=U(),[r,i]=x.useState(""),s=o==="paid",a=n&&!!n.paid,l=n&&(a||!s),u=()=>{l&&(t.liked?e("unlikeComment",t):(e("likeComment",t),i("animate-heartbeat"),setTimeout(()=>{i("")},400)))},c=l?"button":"span";let m="cursor-pointer";return l||(m="cursor-text"),S.jsxs(c,{className:`duration-50 group flex items-center font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${t.liked?"text-[rgba(0,0,0,0.9)] dark:text-[rgba(255,255,255,0.9)]":"text-[rgba(0,0,0,0.5)] dark:text-[rgba(255,255,255,0.5)]"} ${!t.liked&&l&&"hover:text-[rgba(0,0,0,0.75)] hover:dark:text-[rgba(255,255,255,0.25)]"} ${m}`,"data-testid":"like-button",type:"button",onClick:u,children:[S.jsx(mE,{className:r+` mr-[6px] ${t.liked?"fill-[rgba(0,0,0,0.9)] stroke-[rgba(0,0,0,0.9)] dark:fill-[rgba(255,255,255,0.9)] dark:stroke-[rgba(255,255,255,0.9)]":"stroke-[rgba(0,0,0,0.5)] dark:stroke-[rgba(255,255,255,0.5)]"} ${!t.liked&&l&&"group-hover:stroke-[rgba(0,0,0,0.75)] dark:group-hover:stroke-[rgba(255,255,255,0.25)]"} transition duration-50 ease-linear`}),t.count.likes]})},K0=({comment:t,close:e})=>{const{dispatchAction:n,t:o}=U(),r=()=>{n("hideComment",t),e()},i=()=>{n("showComment",t),e()},s=t.status!=="published";return S.jsx("div",{className:"flex flex-col",children:s?S.jsxs("button",{className:"w-full text-left text-[14px]",type:"button",onClick:i,children:[S.jsx("span",{className:"hidden sm:inline",children:o("Show comment")}),S.jsx("span",{className:"sm:hidden",children:o("Show")})]}):S.jsxs("button",{className:"w-full text-left text-[14px]",type:"button",onClick:r,children:[S.jsx("span",{className:"hidden sm:inline",children:o("Hide comment")}),S.jsx("span",{className:"sm:hidden",children:o("Hide")})]})})},pE=({comment:t,close:e,toggleEdit:n})=>{const{dispatchAction:o,t:r}=U(),i=()=>{o("deleteComment",t),e()};return S.jsxs("div",{className:"flex flex-col",children:[S.jsx("button",{className:"mb-3 w-full text-left text-[14px]","data-testid":"edit",type:"button",onClick:n,children:r("Edit")}),S.jsx("button",{className:"w-full text-left text-[14px] text-red-600",type:"button",onClick:i,children:r("Delete")})]})},hE=({comment:t,close:e})=>{const{dispatchAction:n,t:o}=U(),r=()=>{n("openPopup",{type:"reportPopup",comment:t}),e()};return S.jsx("div",{className:"flex flex-col",children:S.jsxs("button",{className:"w-full text-left text-[14px]",type:"button",onClick:r,children:[S.jsx("span",{className:"hidden sm:inline",children:o("Report comment")}),S.jsx("span",{className:"sm:hidden",children:o("Report")})]})})},gE=({comment:t,close:e,toggleEdit:n})=>{var c;const{member:o,admin:r}=U(),i=o&&((c=t.member)==null?void 0:c.uuid)===(o==null?void 0:o.uuid),s=!!r,a=x.useRef(null);x.useEffect(()=>{var f,p;const m=()=>{e()};window.addEventListener("click",m,{passive:!0});const d=(p=(f=a.current)==null?void 0:f.ownerDocument)==null?void 0:p.defaultView;return d&&d!==window&&d.addEventListener("click",m,{passive:!0}),()=>{window.removeEventListener("click",m,{passive:!0}),d&&d!==window&&d.removeEventListener("click",m,{passive:!0})}},[e]),x.useEffect(()=>{const m=d=>{d.key==="Escape"&&e()};return window.addEventListener("keydown",m,{passive:!0}),()=>{window.removeEventListener("keydown",m,{passive:!0})}},[e]);const l=m=>{m.stopPropagation()};let u=null;if(t.status==="published")i?u=S.jsx(pE,{close:e,comment:t,toggleEdit:n}):s?u=S.jsx(K0,{close:e,comment:t}):u=S.jsx(hE,{close:e,comment:t});else if(s)u=S.jsx(K0,{close:e,comment:t});else return null;return S.jsx("div",{ref:a,onClick:l,children:S.jsx("div",{className:"absolute z-10 min-w-min whitespace-nowrap rounded bg-white py-3 pl-4 pr-8 font-sans text-sm shadow-lg outline-0 sm:min-w-[150px] dark:bg-zinc-900 dark:text-white",children:u})})},yE=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"})),W0=({comment:t,toggleEdit:e})=>{const[n,o]=x.useState(!1),{member:r,admin:i}=U(),s=!!i,a=()=>{o(c=>!c)},l=()=>{o(!1)};return!!r&&t.status==="published"||s?S.jsxs("div",{className:"relative","data-testid":"more-button",children:[S.jsx("button",{className:"outline-0",type:"button",onClick:a,children:S.jsx(yE,{className:"duration-50 gh-comments-icon gh-comments-icon-more fill-[rgba(0,0,0,0.5)] outline-0 transition ease-linear hover:fill-[rgba(0,0,0,0.75)] dark:fill-[rgba(255,255,255,0.5)] dark:hover:fill-[rgba(255,255,255,0.25)]"})}),n?S.jsx(gE,{close:l,comment:t,toggleEdit:e}):null]}):null},wE=({loadMore:t,count:e})=>{const{t:n}=U(),o=e===1?n("Show 1 more reply"):n("Show {{amount}} more replies",{amount:Wi(e)}),r=n("{{amount}} more",{amount:Wi(e)});return S.jsx("div",{className:"flex w-full items-center justify-start",children:S.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:S.jsxs("span",{className:"flex h-[39px] w-auto items-center justify-center whitespace-nowrap rounded-[6px] bg-[rgba(0,0,0,0.05)] px-4 py-2 text-center font-sans text-sm font-semibold text-neutral-700 outline-0 transition-[opacity,background] duration-150 hover:bg-[rgba(0,0,0,0.1)] dark:bg-[rgba(255,255,255,0.08)] dark:text-neutral-100 dark:hover:bg-[rgba(255,255,255,0.1)]",children:["↓ ",S.jsx("span",{className:"ml-1 hidden sm:inline",children:o}),S.jsx("span",{className:"ml-1 inline sm:hidden",children:r})]})})})},SE=({comment:t,toggleReplyMode:e})=>{const{dispatchAction:n}=U(),o=t.count.replies-t.replies.length,r=()=>{n("loadMoreReplies",{comment:t})};return S.jsxs("div",{children:[t.replies.map(i=>S.jsx(q0,{comment:i,parent:t,toggleParentReplyMode:e},i.id)),o>0&&S.jsx(wE,{count:o,loadMore:r})]})},vE=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",stroke:"black",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M7.17463 2.98741C7.17439 2.7888 7.11434 2.59487 7.00229 2.43088C6.89025 2.26689 6.73141 2.14046 6.54647 2.06805C6.36153 1.99564 6.15907 1.98061 5.96546 2.02492C5.77186 2.06923 5.5961 2.17083 5.46107 2.31648L1.86192 6.21418C1.69351 6.39677 1.60001 6.63606 1.60001 6.88445C1.60001 7.13284 1.69351 7.37213 1.86192 7.55472L5.45909 11.4524C5.59412 11.5981 5.76988 11.6997 5.96349 11.744C6.15709 11.7883 6.35955 11.7733 6.54449 11.7009C6.72943 11.6284 6.88827 11.502 7.00032 11.338C7.11236 11.174 7.17242 10.9801 7.17265 10.7815V8.86164H9.12703C10.438 8.86164 11.6953 9.38241 12.6222 10.3094C13.5492 11.2364 14.07 12.4937 14.07 13.8046V9.85023C14.07 8.53927 13.5492 7.28201 12.6222 6.35502C11.6953 5.42803 10.438 4.90726 9.12703 4.90726H7.17265L7.17463 2.98741Z",strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round"})),bE=({disabled:t,isReplying:e,toggleReply:n})=>{const{member:o,t:r}=U();return o?S.jsxs("button",{className:`duration-50 group flex items-center font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${e?"text-[rgba(0,0,0,0.9)] dark:text-[rgba(255,255,255,0.9)]":"text-[rgba(0,0,0,0.5)] hover:text-[rgba(0,0,0,0.75)] dark:text-[rgba(255,255,255,0.5)] dark:hover:text-[rgba(255,255,255,0.25)]"}`,"data-testid":"reply-button",disabled:!!t,type:"button",onClick:n,children:[S.jsx(vE,{className:`mr-[6px] ${e?"fill-[rgba(0,0,0,0.9)] stroke-[rgba(0,0,0,0.9)] dark:fill-[rgba(255,255,255,0.9)] dark:stroke-[rgba(255,255,255,0.9)]":"stroke-[rgba(0,0,0,0.5)] group-hover:stroke-[rgba(0,0,0,0.75)] dark:stroke-[rgba(255,255,255,0.5)] dark:group-hover:stroke-[rgba(255,255,255,0.25)]"} duration-50 transition ease-linear`}),r("Reply")]}):null},kE=({parent:t,close:e})=>{const{postId:n,dispatchAction:o,t:r}=U(),[,i]=OC(Lm),s={placeholder:r("Reply to comment"),autofocus:!0},a=Nd({...tm(s)}),l=x.useCallback(async({html:m})=>{await o("addReply",{parent:t,reply:{post_id:n,status:"published",html:m}})},[t,n,o]),u={submitText:S.jsxs(S.Fragment,{children:[S.jsx("span",{className:"hidden sm:inline",children:r("Add reply")}),S.jsx("span",{className:"sm:hidden",children:r("Reply")})]}),submitSize:"medium",submit:l},c=x.useCallback(()=>{a!=null&&a.isEmpty&&e()},[a,e]);return S.jsx("div",{ref:i,children:S.jsx(A0,{close:e,closeIfNotChanged:c,editor:a,...u})})},q0=({comment:t,parent:e,toggleParentReplyMode:n})=>S.jsx(lo,{enter:"transition-opacity duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:!0,appear:!0,children:S.jsx(xE,{comment:t,parent:e,toggleParentReplyMode:n})}),xE=({comment:t,parent:e,toggleParentReplyMode:n})=>{const[o,r]=x.useState(!1),i=()=>{r(!1)},s=()=>{r(!0)};return o?S.jsx(dE,{close:i,comment:t,parent:e}):S.jsx($E,{comment:t,openEditMode:s,parent:e,toggleParentReplyMode:n})},$E=({comment:t,parent:e,openEditMode:n,toggleParentReplyMode:o})=>J1(t)?S.jsx(CE,{comment:t,openEditMode:n,parent:e,toggleParentReplyMode:o}):S.jsx(EE,{comment:t,openEditMode:n}),CE=({comment:t,parent:e,openEditMode:n,toggleParentReplyMode:o})=>{const[r,i]=x.useState(!1),{dispatchAction:s}=U(),a=async()=>{if(e&&o)return await o();r||await s("loadMoreReplies",{comment:t,limit:"all"}),i(m=>!m)},l=()=>{i(!1)},u=r||t.replies&&t.replies.length>0,c=S.jsx(Fm,{comment:t});return S.jsxs(Q0,{avatar:c,hasReplies:u,children:[S.jsx(ME,{comment:t}),S.jsx(DE,{html:t.html}),S.jsx(TE,{comment:t,isInReplyMode:r,openEditMode:n,parent:e,toggleReplyMode:a}),S.jsx(G0,{comment:t,toggleReplyMode:a}),S.jsx(AE,{closeReplyMode:l,comment:t,isInReplyMode:r})]})},EE=({comment:t,openEditMode:e})=>{const{admin:n,t:o}=U();let r;n&&t.status==="hidden"?r=o("This comment has been hidden."):r=o("This comment has been removed.");const i=S.jsx(Y1,{}),s=t.replies&&t.replies.length>0;return S.jsxs(Q0,{avatar:i,hasReplies:s,children:[S.jsx("div",{className:"mt-[-3px] flex items-start",children:S.jsxs("div",{className:"flex h-10 flex-row items-center gap-4 pb-[8px] pr-4",children:[S.jsx("p",{className:"text-md mt-[4px] font-sans italic leading-normal text-[rgba(0,0,0,0.2)] sm:text-lg dark:text-[rgba(255,255,255,0.35)]",children:r}),S.jsx("div",{className:"mt-[4px]",children:S.jsx(W0,{comment:t,toggleEdit:e})})]})}),S.jsx(G0,{comment:t})]})},NE=({comment:t})=>{var o;const{member:e}=U(),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?S.jsxs("span",{className:"[overflow-wrap:anywhere]",children:[S.jsx("span",{className:"mx-[0.3em] hidden sm:inline-block",children:"·"}),n]}):null},OE=({comment:t})=>{const{t:e}=U();return t.edited_at?S.jsxs("span",{children:[" (",e("edited"),")"]}):null},G0=({comment:t,toggleReplyMode:e})=>t.replies&&t.replies.length>0?S.jsx("div",{className:"mb-4 ml-[-1.4rem] mt-7 sm:mb-0 sm:mt-8",children:S.jsx(SE,{comment:t,toggleReplyMode:e})}):null,AE=({comment:t,isInReplyMode:e,closeReplyMode:n})=>e?S.jsx("div",{className:"my-8 sm:my-10",children:S.jsx(kE,{close:n,parent:t})}):null,RE=({comment:t})=>{const{t:e}=U(),n=V1(t,e);return S.jsx("h4",{className:"text-[rgb(23,23,23] font-sans text-base font-bold leading-snug sm:text-sm dark:text-[rgba(255,255,255,0.85)]",children:n})},ME=({comment:t})=>{var r;const e=MC(t.created_at),{member:n}=U(),o=n&&t.member&&t.member.uuid===n.uuid?n.expertise:(r=t==null?void 0:t.member)==null?void 0:r.expertise;return S.jsxs("div",{className:`mb-2 mt-0.5 flex flex-wrap items-start sm:flex-row ${o?"flex-col":"flex-row"}`,children:[S.jsx(RE,{comment:t}),S.jsx("div",{className:"flex items-baseline pr-4 font-sans text-base leading-snug text-[rgba(0,0,0,0.5)] sm:text-sm dark:text-[rgba(255,255,255,0.5)]",children:S.jsxs("span",{children:[S.jsx(NE,{comment:t}),S.jsxs("span",{title:H1(t.created_at),children:[S.jsx("span",{className:"mx-[0.3em]",children:"·"}),e]}),S.jsx(OE,{comment:t})]})})]})},DE=({html:t})=>{const e={__html:t};return S.jsx("div",{className:"mt mb-2 flex flex-row items-center gap-4 pr-4",children:S.jsx("p",{dangerouslySetInnerHTML:e,className:"gh-comment-content text-md text-pretty font-sans leading-normal text-neutral-900 [overflow-wrap:anywhere] sm:text-lg dark:text-[rgba(255,255,255,0.85)]","data-testid":"comment-content"})})},TE=({comment:t,toggleReplyMode:e,isInReplyMode:n,openEditMode:o,parent:r})=>{const{member:i,commentsEnabled:s}=U(),a=Dm(),l=s==="paid",u=i&&!!i.paid,c=i&&(u||!l)&&(a.commentImprovements?!0:!r);return S.jsxs("div",{className:"flex items-center gap-4",children:[S.jsx(fE,{comment:t}),c&&S.jsx(bE,{isReplying:n,toggleReply:e}),S.jsx(W0,{comment:t,toggleEdit:o})]})},jE=({hasReplies:t})=>t?S.jsx("div",{className:"mb-2 h-full w-px grow rounded bg-gradient-to-b from-[rgba(0,0,0,0.08)] via-[rgba(0,0,0,0.08)] to-transparent dark:from-[rgba(255,255,255,0.08)] dark:via-[rgba(255,255,255,0.08)]"}):null,Q0=({children:t,avatar:e,hasReplies:n})=>S.jsxs("div",{className:`flex w-full flex-row ${n===!0?"mb-0":"mb-7"}`,"data-testid":"comment-component",children:[S.jsxs("div",{className:"mr-2 flex flex-col items-center justify-start sm:mr-3",children:[S.jsx("div",{className:"flex-0 mb-3 sm:mb-4",children:e}),S.jsx(jE,{hasReplies:n})]}),S.jsx("div",{className:"grow",children:t})]}),PE=({showCount:t,count:e})=>{const{t:n}=U();return t?e===1?S.jsx("div",{className:"text-md text-[rgba(0,0,0,0.5)] sm:text-lg dark:text-[rgba(255,255,255,0.5)]","data-testid":"count",children:n("1 comment")}):S.jsx("div",{className:"text-md text-[rgba(0,0,0,0.5)] sm:text-lg dark:text-[rgba(255,255,255,0.5)]","data-testid":"count",children:n("{{amount}} comments",{amount:Wi(e)})}):null},IE=({title:t})=>{const{t:e}=U();return t===null?S.jsxs(S.Fragment,{children:[S.jsx("span",{className:"sm:hidden",children:e("Discussion")}),S.jsx("span",{className:"hidden sm:inline",children:e("Member discussion")})]}):S.jsx(S.Fragment,{children:t})},LE=({title:t,showCount:e,count:n})=>!t&&!e&&t!==null?null:S.jsxs("div",{className:"mb-8 flex w-full items-baseline justify-between font-sans",children:[S.jsx("h2",{className:"text-[2.2rem] font-bold tracking-tight sm:text-2xl dark:text-[rgba(255,255,255,0.85)]","data-testid":"title",children:S.jsx(IE,{title:t})}),S.jsx(PE,{count:n,showCount:e})]}),zE=({commentsCount:t})=>{const{postId:e,dispatchAction:n,t:o}=U(),r={placeholder:o(t===0?"Start the conversation":"Join the discussion"),autofocus:!1},i=Nd({...tm(r)}),s=x.useCallback(async({html:c})=>{await n("addComment",{post_id:e,status:"published",html:c})},[e,n]),a=x.useRef(null);x.useEffect(()=>{if(!i)return;const c=m=>{var p;if(!i||m.metaKey||m.ctrlKey)return;let d=document.activeElement;for(;d&&d.tagName==="IFRAME"&&d.contentDocument;)d=((p=d.contentDocument)==null?void 0:p.activeElement)??null;const f=d&&(d.tagName==="INPUT"||d.tagName==="TEXTAREA"||d.tagName==="IFRAME"||d.contentEditable==="true");if(m.key==="c"&&!(i!=null&&i.isFocused)&&!f){i==null||i.commands.focus(),a.current&&Lm(a.current);return}};return window.addEventListener("keydown",c,{passive:!0}),()=>{window.removeEventListener("keydown",c,{passive:!0})}},[i]);const l={submitText:S.jsxs(S.Fragment,{children:[S.jsxs("span",{className:"hidden sm:inline",children:[o("Add comment")," "]}),S.jsx("span",{className:"sm:hidden",children:o("Comment")})]}),submitSize:"large",submit:s},u=(i==null?void 0:i.isFocused)??!1;return S.jsx("div",{ref:a,className:"px-3 pb-2 pt-3","data-testid":"main-form",children:S.jsx(O0,{editor:i,isOpen:u,reduced:!1,...l})})},FE=()=>{const{pagination:t,dispatchAction:e,t:n}=U(),o=()=>{e("loadMoreComments",{})};if(!t)return null;const r=t.total-t.page*t.limit;if(r<=0)return null;const i=r===1?n("Show 1 previous comment"):n("Show {{amount}} previous comments",{amount:Wi(r)});return S.jsx("button",{className:"text-md group mb-10 flex w-full 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:S.jsxs("span",{className:"flex h-[39px] w-full items-center justify-center whitespace-nowrap rounded-[6px] bg-[rgba(0,0,0,0.05)] px-3 py-2 text-center font-sans text-sm font-semibold text-neutral-700 outline-0 transition-[opacity,background] duration-150 hover:bg-[rgba(0,0,0,0.1)] dark:bg-[rgba(255,255,255,0.08)] dark:text-neutral-100 dark:hover:bg-[rgba(255,255,255,0.1)]",children:["↑ ",i]})})},cl="ghost-comments-root",BE=()=>{const{pagination:t,member:e,comments:n,commentCount:o,commentsEnabled:r,title:i,showCount:s,secundaryFormCount:a}=U(),l=n.slice().reverse().map(p=>S.jsx(q0,{comment:p},p.id)),u=Dm();x.useEffect(()=>{const p=document.getElementById(cl);p&&window.location.hash==="#ghost-comments"&&window.scrollY===0&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{p.scrollIntoView()})})},[]);const c=r==="paid",m=e&&!!e.paid,d=!e||c&&!m,f=a>0;return S.jsxs(S.Fragment,{children:[S.jsx(LE,{count:o,showCount:s,title:i}),S.jsx(FE,{}),S.jsx("div",{className:t?"":"mt-4","data-test":"comment-elements",children:l}),S.jsx("div",{children:f?null:d?S.jsx(F1,{isFirst:(t==null?void 0:t.total)===0,isPaid:c}):S.jsx(zE,{commentsCount:o})}),u!=null&&u.testFlag?S.jsx("div",{"data-testid":"this-comes-from-a-flag",style:{display:"none"}}):null]})};function HE(){return S.jsx("div",{className:"flex h-32 w-full items-center justify-center","data-testid":"loading",children:S.jsx(Od,{className:"mb-6 h-12 w-12 fill-[rgb(225,225,225,0.9)] dark:fill-[rgba(255,255,255,0.6)]"})})}const VE=({done:t})=>{const e=(l,u,c)=>{const m=[l,u,c].map(function(d){return d/=255,d<=.03928?d/12.92:Math.pow((d+.055)/1.055,2.4)});return m[0]*.2126+m[1]*.7152+m[2]*.0722},n=(l,u)=>{const c=e(l[0],l[1],l[2]),m=e(u[0],u[1],u[2]),d=Math.max(c,m),f=Math.min(c,m);return(d+.05)/(f+.05)},{accentColor:o,colorScheme:r}=U(),s=(()=>{if(r==="light")return!1;if(r==="dark")return!0;{const l=document.getElementById(cl);if(!l||!l.parentElement)return!1;const u=getComputedStyle(l.parentElement).getPropertyValue("color"),c=u.substring(u.indexOf("(")+1,u.lastIndexOf(")")).split(/,\s*/),m=parseInt(c[0]),d=parseInt(c[1]),f=parseInt(c[2]);return n([255,255,255],[m,d,f])<5}})()?"dark":"",a={"--gh-accent-color":o??"blue",paddingTop:0,paddingBottom:24};return S.jsx("section",{className:"ghost-display "+s,"data-loaded":t,"data-testid":"content-box",style:a,children:t?S.jsx(BE,{}):S.jsx(HE,{})})};class UE extends x.Component{constructor(n){super(n);yr(this,"node");yr(this,"iframeHtml");yr(this,"iframeHead");yr(this,"iframeRoot");yr(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 S.jsxs("iframe",{srcDoc:"<!DOCTYPE html>",...s,ref:this.setNode,frameBorder:"0",style:i,title:r,children:[this.iframeHead&&kd.createPortal(o,this.iframeHead),this.iframeRoot&&kd.createPortal(n,this.iframeRoot)]})}}const JE=x.forwardRef(function(e,n){return S.jsx(UE,{...e,innerRef:n})}),_E=`*,: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}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-1{bottom:.4rem}.left-0{left:0px}.right-1{right:.4rem}.right-6{right:2.4rem}.top-0{top:0px}.top-1{top:.4rem}.top-6{top:2.4rem}.z-10{z-index:10}.-mx-3{margin-left:-1.2rem;margin-right:-1.2rem}.mx-\\[0\\.3em\\]{margin-left:.3em;margin-right:.3em}.my-8{margin-top:3.2rem;margin-bottom:3.2rem}.mb-0{margin-bottom:0}.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-8{margin-bottom:3.2rem}.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-\\[-1\\.4rem\\]{margin-left:-1.4rem}.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-10{margin-top:4rem}.mt-4{margin-top:1.6rem}.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}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.contents{display:contents}.hidden{display:none}.h-10{height:4rem}.h-11{height:4.4rem}.h-12{height:4.8rem}.h-32{height:12.8rem}.h-5{height:2rem}.h-8{height:3.2rem}.h-\\[12px\\]{height:12px}.h-\\[16px\\]{height:16px}.h-\\[24px\\]{height:24px}.h-\\[39px\\]{height:39px}.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-10{width:4rem}.w-12{width:4.8rem}.w-5{width:2rem}.w-8{width:3.2rem}.w-\\[12px\\]{width:12px}.w-\\[16px\\]{width:16px}.w-\\[24px\\]{width:24px}.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:-webkit-min-content;min-width:min-content}.grow{flex-grow:1}.grow-0{flex-grow:0}.-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 heartbeat{0%,to{transform:scale(1)}50%{transform:scale(1.3)}}.animate-heartbeat{animation:heartbeat .35s ease-in-out forwards}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.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-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-pretty{text-wrap:pretty}.rounded{border-radius:.4rem}.rounded-\\[6px\\]{border-radius:6px}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.6rem}.border{border-width:1px}.border-2{border-width:2px}.border-t{border-top-width:1px}.border-none{border-style:none}.border-\\[rgba\\(0\\,0\\,0\\,0\\.075\\)\\]{border-color:#00000013}.border-\\[rgba\\(0\\,0\\,0\\,0\\.1\\)\\]{border-color:#0000001a}.border-neutral-200{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.bg-\\[\\#1C1C1C\\]{--tw-bg-opacity: 1;background-color:rgb(28 28 28 / var(--tw-bg-opacity))}.bg-\\[rgba\\(0\\,0\\,0\\,0\\.05\\)\\]{background-color:#0000000d}.bg-\\[rgba\\(0\\,0\\,0\\,0\\.085\\)\\]{background-color:#00000016}.bg-\\[rgba\\(255\\,255\\,255\\,0\\.9\\)\\]{background-color:#ffffffe6}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.bg-neutral-900{--tw-bg-opacity: 1;background-color:rgb(23 23 23 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-\\[rgba\\(0\\,0\\,0\\,0\\.08\\)\\]{--tw-gradient-from: rgba(0,0,0,.08) 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-\\[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)}.via-\\[rgba\\(0\\,0\\,0\\,0\\.08\\)\\]{--tw-gradient-to: rgba(0, 0, 0, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgba(0,0,0,.08) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.bg-cover{background-size:cover}.bg-no-repeat{background-repeat:no-repeat}.fill-\\[rgb\\(225\\,225\\,225\\,0\\.9\\)\\]{fill:#e1e1e1e6}.fill-\\[rgba\\(0\\,0\\,0\\,0\\.5\\)\\]{fill:#00000080}.fill-\\[rgba\\(0\\,0\\,0\\,0\\.9\\)\\]{fill:#000000e6}.fill-white{fill:#fff}.stroke-\\[rgba\\(0\\,0\\,0\\,0\\.5\\)\\]{stroke:#00000080}.stroke-\\[rgba\\(0\\,0\\,0\\,0\\.9\\)\\]{stroke:#000000e6}.stroke-white{stroke:#fff}.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-2{padding-left:.8rem;padding-right:.8rem}.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-2{padding-top:.8rem;padding-bottom:.8rem}.py-3{padding-top:1.2rem;padding-bottom:1.2rem}.py-\\[14px\\]{padding-top:14px;padding-bottom:14px}.pb-2{padding-bottom:.8rem}.pb-\\[32px\\]{padding-bottom:32px}.pb-\\[48px\\]{padding-bottom:48px}.pb-\\[68px\\]{padding-bottom:68px}.pb-\\[8px\\]{padding-bottom:8px}.pl-0{padding-left:0}.pl-4{padding-left:1.6rem}.pl-\\[1px\\]{padding-left:1px}.pl-\\[40px\\]{padding-left:40px}.pr-0{padding-right:0}.pr-3{padding-right:1.2rem}.pr-4{padding-right:1.6rem}.pr-8{padding-right:3.2rem}.pr-\\[1px\\]{padding-right:1px}.pt-0{padding-top:0}.pt-10{padding-top:4rem}.pt-3{padding-top:1.2rem}.pt-\\[40px\\]{padding-top:40px}.pt-\\[48px\\]{padding-top:48px}.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}.italic{font-style:italic}.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-\\[rgb\\(23\\,23\\,23\\)\\]{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity))}.text-\\[rgba\\(0\\,0\\,0\\,0\\.2\\)\\]{color:#0003}.text-\\[rgba\\(0\\,0\\,0\\,0\\.3\\)\\]{color:#0000004d}.text-\\[rgba\\(0\\,0\\,0\\,0\\.4\\)\\]{color:#0006}.text-\\[rgba\\(0\\,0\\,0\\,0\\.5\\)\\]{color:#00000080}.text-\\[rgba\\(0\\,0\\,0\\,0\\.9\\)\\]{color:#000000e6}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-neutral-400{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.text-neutral-600{--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity))}.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity))}.text-neutral-900{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-80{opacity:.8}.shadow-lg{--tw-shadow: 0px 0px 1px rgba(0, 0, 0, .12), 0px 4px 8px rgba(0, 0, 0, .04), 0px 8px 48px rgba(0, 0, 0, .05);--tw-shadow-colored: 0px 0px 1px var(--tw-shadow-color), 0px 4px 8px var(--tw-shadow-color), 0px 8px 48px 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\\,background\\]{transition-property:opacity,background;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-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)}.\\[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 rgba(13,13,13,.1);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:#00000040!important}.dark .gh-comment-content p.is-editor-empty:first-child:before{color:#ffffff59!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-\\[rgba\\(0\\,0\\,0\\,0\\.1\\)\\]:hover{background-color:#0000001a}.hover\\:fill-\\[rgba\\(0\\,0\\,0\\,0\\.75\\)\\]:hover{fill:#000000bf}.hover\\:text-\\[rgba\\(0\\,0\\,0\\,0\\.5\\)\\]:hover{color:#00000080}.hover\\:text-\\[rgba\\(0\\,0\\,0\\,0\\.75\\)\\]:hover{color:#000000bf}.hover\\:opacity-40:hover{opacity:.4}.hover\\:opacity-90:hover{opacity:.9}.focus\\:border-neutral-300:focus{--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity))}.focus\\:border-red-500:focus{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.focus\\:outline-0:focus{outline-width:0px}.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-\\[rgba\\(0\\,0\\,0\\,0\\.75\\)\\]{stroke:#000000bf}.group:hover .group-hover\\:opacity-100{opacity:1}.dark\\:border-\\[rgba\\(255\\,255\\,255\\,0\\.1\\)\\]:is(.dark *){border-color:#ffffff1a}.dark\\:bg-\\[rgba\\(255\\,255\\,255\\,0\\.08\\)\\]:is(.dark *){background-color:#ffffff14}.dark\\:bg-\\[rgba\\(255\\,255\\,255\\,0\\.14\\)\\]:is(.dark *){background-color:#ffffff24}.dark\\:bg-\\[rgba\\(255\\,255\\,255\\,0\\.15\\)\\]:is(.dark *){background-color:#ffffff26}.dark\\:bg-\\[rgba\\(255\\,255\\,255\\,0\\.7\\)\\]:is(.dark *){background-color:#ffffffb3}.dark\\:bg-\\[rgba\\(255\\,255\\,255\\,0\\.9\\)\\]:is(.dark *){background-color:#ffffffe6}.dark\\:bg-zinc-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(24 24 27 / var(--tw-bg-opacity))}.dark\\:from-\\[rgba\\(255\\,255\\,255\\,0\\.08\\)\\]:is(.dark *){--tw-gradient-from: rgba(255,255,255,.08) var(--tw-gradient-from-position);--tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\\:via-\\[rgba\\(255\\,255\\,255\\,0\\.08\\)\\]:is(.dark *){--tw-gradient-to: rgba(255, 255, 255, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgba(255,255,255,.08) var(--tw-gradient-via-position), var(--tw-gradient-to)}.dark\\:fill-\\[rgba\\(255\\,255\\,255\\,0\\.5\\)\\]:is(.dark *){fill:#ffffff80}.dark\\:fill-\\[rgba\\(255\\,255\\,255\\,0\\.6\\)\\]:is(.dark *){fill:#fff9}.dark\\:fill-\\[rgba\\(255\\,255\\,255\\,0\\.9\\)\\]:is(.dark *){fill:#ffffffe6}.dark\\:fill-black:is(.dark *){fill:#000}.dark\\:stroke-\\[rgba\\(0\\,0\\,0\\,0\\.6\\)\\]:is(.dark *){stroke:#0009}.dark\\:stroke-\\[rgba\\(255\\,255\\,255\\,0\\.5\\)\\]:is(.dark *){stroke:#ffffff80}.dark\\:stroke-\\[rgba\\(255\\,255\\,255\\,0\\.9\\)\\]:is(.dark *){stroke:#ffffffe6}.dark\\:text-\\[rgba\\(255\\,255\\,255\\,0\\.3\\)\\]:is(.dark *){color:#ffffff4d}.dark\\:text-\\[rgba\\(255\\,255\\,255\\,0\\.35\\)\\]:is(.dark *){color:#ffffff59}.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-\\[rgba\\(255\\,255\\,255\\,0\\.9\\)\\]:is(.dark *){color:#ffffffe6}.dark\\:text-neutral-100:is(.dark *){--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity))}.dark\\:text-neutral-300:is(.dark *){--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}.dark\\:text-neutral-400:is(.dark *){--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity))}.dark\\:text-neutral-800:is(.dark *){--tw-text-opacity: 1;color:rgb(38 38 38 / var(--tw-text-opacity))}.dark\\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\\:hover\\:bg-\\[rgba\\(255\\,255\\,255\\,0\\.1\\)\\]:hover:is(.dark *){background-color:#ffffff1a}.dark\\:hover\\:fill-\\[rgba\\(255\\,255\\,255\\,0\\.25\\)\\]:hover:is(.dark *){fill:#ffffff40}.dark\\:hover\\:text-\\[rgba\\(255\\,255\\,255\\,0\\.25\\)\\]:hover:is(.dark *){color:#ffffff40}.dark\\:hover\\:text-\\[rgba\\(255\\,255\\,255\\,0\\.4\\)\\]:hover:is(.dark *){color:#fff6}.hover\\:dark\\:text-\\[rgba\\(255\\,255\\,255\\,0\\.25\\)\\]:is(.dark *):hover{color:#ffffff40}.group:hover .dark\\:group-hover\\:stroke-\\[rgba\\(255\\,255\\,255\\,0\\.25\\)\\]:is(.dark *){stroke:#ffffff40}.group:hover .dark\\:group-hover\\:stroke-\\[rgba\\(255\\,255\\,255\\,0\\.3\\)\\]:is(.dark *){stroke:#ffffff4d}@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:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.sm\\:min-w-\\[100px\\]{min-width:100px}.sm\\:min-w-\\[150px\\]{min-width:150px}.sm\\:min-w-\\[64px\\]{min-width:64px}.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\\: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-12{padding-top:4.8rem}.sm\\:pt-\\[40px\\]{padding-top:40px}.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}}
155
+ `,Z0=V.forwardRef(function({children:e,onResize:n,style:o,title:r},i){const s=S.jsxs(S.Fragment,{children:[S.jsx("style",{dangerouslySetInnerHTML:{__html:_E}}),S.jsx("meta",{content:"width=device-width, initial-scale=1.0, maximum-scale=1.0",name:"viewport"})]});return S.jsx(JE,{ref:i,head:s,style:o,title:r,onResize:n,children:e})}),YE=V.forwardRef(function({children:e,style:n,title:o},r){const[i,s]=x.useState(n),a=x.useCallback(l=>{s(u=>({...u,height:`${l.scrollHeight}px`}))},[]);return S.jsx(Z0,{ref:r,style:i,title:o,onResize:a,children:e})}),KE=V.forwardRef(function({children:e},n){const o={width:"100%",height:"400px"};return S.jsx(YE,{ref:n,style:o,title:"comments-frame",children:e})}),WE=({children:t,title:e})=>{const n={zIndex:"3999999",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",overflow:"hidden"};return S.jsx(Z0,{style:n,title:e,children:t})},qE=({show:t,children:e,title:n,callback:o})=>{const{dispatchAction:r}=U(),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})}}),S.jsx(lo,{appear:!0,show:t,children:S.jsx(WE,{title:n,children:S.jsx("div",{children:S.jsx(lo.Child,{enter:"transition duration-200 linear",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition duration-200 linear",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:S.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-12",onMouseDown:i,children:S.jsx(lo.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})})})})})})},GE=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"})),X0=({close:t})=>S.jsx("button",{className:"absolute right-6 top-6 opacity-30 transition-opacity duration-100 ease-out hover:opacity-40 sm:right-8 sm:top-9",type:"button",onClick:t,children:S.jsx(GE,{className:"h-5 w-5 p-1 pr-0"})}),QE=t=>{const e=x.useRef(null),n=x.useRef(null),{dispatchAction:o,member:r,accentColor:i,t:s}=U(),[a,l]=x.useState(r.name??""),[u,c]=x.useState(r.expertise??""),m=50;let d=m;r.expertise&&(d-=r.expertise.length);const[f,p]=x.useState(d),[y,h]=x.useState({name:"",expertise:""}),g=b=>{b.stopPropagation()},w=b=>{o("closePopup",{}),t.callback(b)},v=async()=>{var b;a.trim()!==""?(await o("updateMember",{name:a,expertise:u}),w(!0)):(h({name:s("Enter your name"),expertise:""}),l(""),(b=e.current)==null||b.focus())};x.useEffect(()=>{if(!Im()){const b=setTimeout(()=>{var $,R;t.expertiseAutofocus?($=n.current)==null||$.focus():(R=e.current)==null||R.focus()},200);return()=>{clearTimeout(b)}}},[e,n,t.expertiseAutofocus]);const k=()=>{const b=C=>S.jsx(lo,{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:S.jsxs("div",{className:"flex flex-row items-center justify-start gap-3 pr-4",children:[S.jsx("div",{className:"h-10 w-10 rounded-full border-2 border-white bg-cover bg-no-repeat",style:{backgroundImage:`url(${C.avatar})`}}),S.jsxs("div",{className:"flex flex-col items-start justify-center",children:[S.jsx("div",{className:"font-sans text-base font-semibold tracking-tight text-white",children:C.name}),S.jsx("div",{className:"font-sans text-sm tracking-tight text-neutral-400",children:C.expertise})]})]})},C.name),$=[],R=[{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 C=0;C<R.length;C++)$.push(b(R[C]));return $},E=Mm(s("{{amount}} characters left"),"{{amount}}",()=>S.jsx("b",{children:f}));return S.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:g,children:S.jsxs("div",{className:"flex",children:[S.jsx("div",{className:"hidden w-[50%] flex-col items-center justify-center bg-[#1C1C1C] sm:block sm:p-8",children:S.jsx("div",{className:"mt-[-1px] flex flex-col gap-9 text-left",children:k()})}),S.jsxs("div",{className:"p-0 sm:p-8",children:[S.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"),S.jsx("span",{className:"hidden sm:inline",children:"."})]}),S.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.")}),S.jsxs("section",{className:"mt-8 text-left",children:[S.jsxs("div",{className:"mb-2 flex flex-row justify-between",children:[S.jsx("label",{className:"font-sans text-base font-semibold",htmlFor:"comments-name",children:s("Name")}),S.jsx(lo,{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:!!y.name,children:S.jsx("div",{className:"font-sans text-sm text-red-500",children:y.name})})]}),S.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 ${y.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:b=>{l(b.currentTarget.value)},onKeyDown:b=>{b.key==="Enter"&&(l(b.currentTarget.value),v().catch(console.error))}}),S.jsxs("div",{className:"mb-2 mt-6 flex flex-row justify-between",children:[S.jsx("label",{className:"font-sans text-base font-semibold",htmlFor:"comments-name",children:s("Expertise")}),S.jsx("div",{className:`font-sans text-base text-neutral-400 ${f===0&&"text-red-500"}`,children:E})]}),S.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:m,name:"expertise",placeholder:s("Head of Marketing at Acme, Inc"),type:"text",value:u,onChange:b=>{const $=b.currentTarget.value;p(m-$.length),c($)},onKeyDown:b=>{b.key==="Enter"&&(c(b.currentTarget.value),v().catch(console.error))}}),S.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")})]})]}),S.jsx(X0,{close:()=>w(!1)})]})})},ZE=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}))),XE={addDetailsPopup:QE,reportPopup:({comment:t})=>{const{dispatchAction:e,t:n}=U(),[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=S.jsx(Od,{className:"mr-2 h-[24px] w-[24px] fill-white"}),u=S.jsx(ZE,{className:"mr-2 h-[16px] w-[16px]"});let c=null;o==="sending"?c=l:o==="sent"&&(c=u);const m=p=>{p.stopPropagation()},d=()=>{e("closePopup",{})},f=p=>{p.stopPropagation(),r("sending"),setTimeout(()=>{r("sent"),e("reportComment",t),setTimeout(()=>{d()},750)},1e3)};return S.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:m,children:S.jsxs("div",{className:"flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0",children:[S.jsx("h1",{className:"mb-1.5 font-sans text-[2.2rem] font-bold tracking-tight text-black",children:S.jsx("span",{children:n("Report this comment?")})}),S.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.")}),S.jsxs("div",{className:"mt-auto flex flex-col items-center justify-start gap-4 sm:mt-8 sm:flex-row",children:[S.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:[S.jsxs("span",{className:"invisible whitespace-nowrap",children:[a,S.jsx("br",{}),S.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[l,n("Sending")]}),S.jsx("br",{}),S.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[u,n("Sent")]})]}),S.jsxs("span",{className:"absolute flex h-[44px] items-center justify-center whitespace-nowrap",children:[c,s]})]}),S.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:d,children:n("Cancel")})]}),S.jsx(X0,{close:d})]})})}},e2=()=>{const{popup:t}=U(),[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=XE[o];if(!i)return console.warn("Unknown popup of type ",o),null;const s=t===e;return S.jsx(S.Fragment,{children:S.jsx(qE,{callback:r.callback,show:s,title:o,children:S.jsx(i,{...r})})})},t2={"{{amount}} characters left":"{{amount}} karakters oor","{{amount}} comments":"{{amount}} kommentaar","{{amount}} days ago":"{{amount}} dae gelede","{{amount}} hrs ago":"{{amount}} ure gelede","{{amount}} mins ago":"{{amount}} minute gelede","{{amount}} months ago":"{{amount}} maande gelede","{{amount}} more":"{{amount}} meer","{{amount}} seconds ago":"{{amount}} sekondes gelede","{{amount}} weeks ago":"{{amount}} weke gelede","{{amount}} years ago":"{{amount}} jaar gelede","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","Already a member?":"Reeds 'n lid?",Anonymous:"Anoniem","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.",Cancel:"Kanselleer",Comment:"Kommentaar","Complete your profile":"Voltooi jou profiel",Delete:"Skrap","Deleted member":"Geskrapte lid",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",Hide:"Versteek","Hide comment":"Versteek kommentaar","Jamie Larson":"Jamie Larson","Join the discussion":"Sluit aan by die bespreking","Just now":"Sopas","Local resident":"Plaaslike inwoner","Member discussion":"Lidmaat bespreking",Name:"Naam",Neurosurgeon:"Neurochirurg","One day ago":"Eendag gelede","One hour ago":"Een uur gelede","One min ago":"Een minuut gelede","One month ago":"Een maand gelede","One week ago":"'n Week gelede","One year ago":"Een jaar gelede",Reply:"Antwoord","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 {{amount}} previous comments":"Wys {{amount}} vorige kommentaar","Show 1 more reply":"Wys nog 1 antwoord","Show 1 previous comment":"Wys 1 vorige kommentaar","Show comment":"Wys kommentaar","Sign in":"Teken in","Sign up now":"Sluit nou aan","Start the conversation":"Begin die gesprek","This comment has been hidden.":"Hierdie kommentaar is weggesteek.","This comment has been removed.":"Hierdie kommentaar is verwyder.","Upgrade now":"Gradeer nou op",Yesterday:"Gister","Your request will be sent to the owner of this site.":"Jou versoek sal aan die eienaar van hierdie webwerf gestuur word."},n2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},o2={"{{amount}} characters left":"Остават {{amount}} знака","{{amount}} comments":"{{amount}} коментара","{{amount}} days ago":"Преди {{amount}} дни","{{amount}} hrs ago":"Преди {{amount}} часа","{{amount}} mins ago":"Преди {{amount}} минути","{{amount}} months ago":"Преди {{amount}} месеца","{{amount}} more":"Още {{amount}}","{{amount}} seconds ago":"Преди {{amount}} секунди","{{amount}} weeks ago":"Преди {{amount}} седмици","{{amount}} years ago":"Преди {{amount}} години","1 comment":"1 коментар","Add comment":"Нов коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Добавете контекст към коментара си, споделете името си и опита си, за да насърчите полезна дискусия.","Add reply":"Отговор","Already a member?":"Вече сте абонат?",Anonymous:"Анонимен","Become a member of {{publication}} to start commenting.":"Абонирайте се за {{publication}}, за да коментирате.","Become a paid member of {{publication}} to start commenting.":"Станете платен абонат на {{publication}}, за да коментирате.",Cancel:"Отказ",Comment:"Коментар","Complete your profile":"Попълнете профила си",Delete:"Изтриване","Deleted member":"Изтрит абонат",Discussion:"Дискусия",Edit:"Редактиране","Edit this comment":"Редактиране на коментара",edited:"редактиран","Enter your name":"Попълнете името си",Expertise:"Опит","Founder @ Acme Inc":"Основател на Компания ООД","Full-time parent":"Родител на пълно работно време","Head of Marketing at Acme, Inc":"Директор маркетинг в Компания ООД",Hide:"Скриване","Hide comment":"Скриване на коментара","Jamie Larson":"Иван Иванов","Join the discussion":"Участвайте в дискусията","Just now":"Току-що","Local resident":"Местен жител","Member discussion":"Дискусия за абонатите",Name:"Име",Neurosurgeon:"Неврохирург","One day ago":"Преди ден","One hour ago":"Преди час","One min ago":"Преди минута","One month ago":"Преди месец","One week ago":"Преди седмица","One year ago":"Преди година",Reply:"Отговор","Reply to comment":"Отгговор на коментара",Report:"Докладване","Report comment":"Докладване на коментара","Report this comment?":"Ще докладвате ли коментара?",Save:"Запис",Sending:"Изпращане",Sent:"Изпратен",Show:"Показване","Show {{amount}} more replies":"Покажи още {{amount}} отговора","Show {{amount}} previous comments":"Покажи {{amount}} предишни коментара","Show 1 more reply":"Покажи още един отговор","Show 1 previous comment":"Покажи един предишен коментар","Show comment":"Покажи коментар","Sign in":"Вход","Sign up now":"Регистрация","Start the conversation":"Започнете дискусия","This comment has been hidden.":"Този коментар е скрит.","This comment has been removed.":"Този коментар е премахнат.","Upgrade now":"Надградете сега",Yesterday:"Вчера","Your request will be sent to the owner of this site.":"Искането ви ще бъде изпратено до собственика на сайта."},r2={"{{amount}} characters left":"{{amount}} অক্ষর বাকি","{{amount}} comments":"{{amount}} মন্তব্য","{{amount}} days ago":"{{amount}} দিন পূর্বে","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"{{amount}} মাস পূর্বে","{{amount}} more":"{{amount}}টি আরও","{{amount}} seconds ago":"{{amount}} সেকেন্ড পূর্বে","{{amount}} weeks ago":"{{amount}} সপ্তাহ পূর্বে","{{amount}} years ago":"{{amount}} বছর পূর্বে","1 comment":"১টি মন্তব্য","Add comment":"মন্তব্য যোগ করুন","Add context to your comment, share your name and expertise to foster a healthy discussion.":"আপনার মন্তব্যে প্রসঙ্গ যোগ করুন, একটি সুস্থ আলোচনা করতে আপনার নাম ও অভিজ্ঞতা শেয়ার করুন।","Add reply":"উত্তর যোগ করুন","Already a member?":"ইত:পূর্বে সদস্য?",Anonymous:"অজ্ঞাতনামা","Become a member of {{publication}} to start commenting.":"{{publication}} এর সদস্য হন মন্তব্য করার জন্য।","Become a paid member of {{publication}} to start commenting.":"{{publication}} এর পেইড সদস্য হন মন্তব্য করার জন্য।",Cancel:"বাতিল করুন",Comment:"মন্তব্য","Complete your profile":"আপনার প্রোফাইল সম্পূর্ণ করুন",Delete:"মুছে ফেলুন","Deleted member":"মুছে ফেলা সদস্য",Discussion:"আলোচনা",Edit:"সম্পাদনা","Edit this comment":"এই মন্তব্য সম্পাদনা করুন",edited:"","Enter your name":"আপনার নাম লিখুন",Expertise:"বিশেষজ্ঞতা","Founder @ Acme Inc":"প্রতিষ্ঠাতা @ বাংলাদেশ ট্রেড হাব","Full-time parent":"পূর্ণকালীন অভিভাবক","Head of Marketing at Acme, Inc":"মার্কেটিং প্রধান @ বাংলাদেশ ট্রেড হাব",Hide:"লুকান","Hide comment":"মন্তব্য লুকান","Jamie Larson":"শাহ নেওয়াজ","Join the discussion":"আলোচনায় যোগ দিন","Just now":"এখনই","Local resident":"স্থানীয় বাসিন্দা","Member discussion":"সদস্য আলোচনা",Name:"নাম",Neurosurgeon:"নিউরোসার্জন","One day ago":"একদিন পূর্বে","One hour ago":"এক ঘণ্টা পূর্বে","One min ago":"","One month ago":"এক মাস পূর্বে","One week ago":"এক সপ্তাহ পূর্বে","One year ago":"এক বছর পূর্বে",Reply:"উত্তর","Reply to comment":"মন্তব্যের উত্তর দিন",Report:"প্রতিবেদন","Report comment":"মন্তব্য প্রতিবেদন করুন","Report this comment?":"এই মন্তব্য প্রতিবেদন করবেন?",Save:"সংরক্ষণ করুন",Sending:"পাঠানো হচ্ছে",Sent:"পাঠানো হয়েছে",Show:"দেখান","Show {{amount}} more replies":" আরো {{amount}}টি উত্তর দেখান","Show {{amount}} previous comments":"পূর্বের {{amount}}টি মন্তব্য দেখান","Show 1 more reply":"১টি আরো উত্তর দেখান","Show 1 previous comment":"১টি পূর্বের মন্তব্য দেখান","Show comment":"মন্তব্য দেখান","Sign in":"সাইন ইন করুন","Sign up now":"এখনই সাইন আপ করুন","Start the conversation":"আলোচনা শুরু করুন","This comment has been hidden.":"এই মন্তব্য লুকানো হয়েছে।","This comment has been removed.":"এই মন্তব্য মুছে ফেলা হয়েছে।","Upgrade now":"এখনই আপগ্রেড করুন",Yesterday:"গতকাল","Your request will be sent to the owner of this site.":"আপনার অনুরোধ সাইটের মালিকের কাছে পাঠানো হবে।"},i2={"{{amount}} characters left":"Preostalo {{amount}} karaktera","{{amount}} comments":"{{amount}} komentara","{{amount}} days ago":"Prije {{amount}} dana","{{amount}} hrs ago":"Prije {{amount}} sati","{{amount}} mins ago":"Prije {{amount}} minuta","{{amount}} months ago":"Prije {{amount}} mjeseci","{{amount}} more":"Još {{amount}}","{{amount}} seconds ago":"Prije {{amount}} sekundi","{{amount}} weeks ago":"Prije {{amount}} sedmica","{{amount}} years ago":"Prije {{amount}} godina","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","Already a member?":"Već si član?",Anonymous:"Anoniman","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.",Cancel:"Otkaži",Comment:"Komentar","Complete your profile":"Dovrši svoj profil",Delete:"Obriši","Deleted member":"Obrisan član",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",Hide:"Sakrij","Hide comment":"Sakrij komentar","Jamie Larson":"Vanja Larsić","Join the discussion":"Pridruži se diskusiji","Just now":"Upravo sada","Local resident":"Lokalni stanovnik","Member discussion":"Diskusija članova",Name:"Ime",Neurosurgeon:"Neurohirurg","One day ago":"Prije jedan dan","One hour ago":"Prije jedan sat","One min ago":"Prije jedan minut","One month ago":"Prije jedan mjesec","One week ago":"Prije jednu sedmicu","One year ago":"Prije jednu godinu",Reply:"Odgovori","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 {{amount}} previous comments":"Prikaži prethodnih {{amount}} komentara","Show 1 more reply":"Prikaži još jedan odgovor","Show 1 previous comment":"Prikaži prethodni komentar","Show comment":"Prikaži komentar","Sign in":"Prijavi se","Sign up now":"Postani član","Start the conversation":"Započni diskusiju","This comment has been hidden.":"Ovaj komentar je sakriven.","This comment has been removed.":"Ovaj komentar je uklonjen.","Upgrade now":"Nadogradi račun sada",Yesterday:"Jučer","Your request will be sent to the owner of this site.":"Tvoj zahtjev je poslan vlasniku stranice."},s2={"{{amount}} characters left":"{{amount}} caràcters restants","{{amount}} comments":"{{amount}} comentaris","{{amount}} days ago":"Fa {{amount}} dies","{{amount}} hrs ago":"Fa {{amount}} hores","{{amount}} mins ago":"Fa {{amount}} minuts","{{amount}} months ago":"Fa {{amount}} mesos","{{amount}} more":"","{{amount}} seconds ago":"Fa {{amount}} segons","{{amount}} weeks ago":"Fa {{amount}} setmanes","{{amount}} years ago":"Fa {{amount}} anys","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","Already a member?":"Ja ets membre?",Anonymous:"Anònim","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",Cancel:"Cancel·lar",Comment:"Comentari","Complete your profile":"Completa el teu perfil",Delete:"Esborrar","Deleted member":"Membre esborrat",Discussion:"Debat",Edit:"Editar","Edit this comment":"Editar aquest comentari",edited:"editat","Enter your name":"Escriu el teu nom",Expertise:"Conéixement","Founder @ Acme Inc":"Fundador @ Acme Inc","Full-time parent":"Pare a temps complert","Head of Marketing at Acme, Inc":"Cap de màrqueting a Acme, Inc",Hide:"Amaga","Hide comment":"Amaga el comentari","Jamie Larson":"Jamie Larson","Join the discussion":"Uneix-te al debat","Just now":"Just ara","Local resident":"Resiudent local","Member discussion":"Debat de membres",Name:"Nom",Neurosurgeon:"Neurocirurgià","One day ago":"Fa un dia","One hour ago":"Fa una hora","One min ago":"Fa un minut","One month ago":"Fa un mes","One week ago":"Fa una setmana","One year ago":"Fa un any",Reply:"Respondre","Reply to comment":"Respondre al comentari",Report:"Reportar","Report comment":"Reportar comentari","Report this comment?":"Reportar aquest comentari?",Save:"Desa",Sending:"Enviant",Sent:"Enviar",Show:"Mostra","Show {{amount}} more replies":"Mostra {{amount}} respostes més","Show {{amount}} previous comments":"Mostra {{amount}} comentaris previs","Show 1 more reply":"Mostra 1 resposta més","Show 1 previous comment":"Mostra 1 comentari previ","Show comment":"Mostra el comentari","Sign in":"Inici de sessió","Sign up now":"Registrar-se ara","Start the conversation":"Comença la conversa","This comment has been hidden.":"Aquest comentari s'ha amagat.","This comment has been removed.":"Aquest comantari s'ha esborrat.","Upgrade now":"Millora ara",Yesterday:"Ahir","Your request will be sent to the owner of this site.":"La vostra sol·licitud s'enviarà al propietari d'aquest lloc."},a2={"{{amount}} characters left":"Zbývá {{amount}} znaků","{{amount}} comments":"{{amount}} komentářů","{{amount}} days ago":"Před {{amount}} dny","{{amount}} hrs ago":"Před {{amount}} hodinami","{{amount}} mins ago":"Před {{amount}} minutami","{{amount}} months ago":"Před {{amount}} měsíci","{{amount}} more":"Dalších {{amount}}","{{amount}} seconds ago":"Před {{amount}} sekundami","{{amount}} weeks ago":"Před {{amount}} týdny","{{amount}} years ago":"Před {{amount}} lety","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ěď","Already a member?":"Už jste členem?",Anonymous:"Anonymní","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.",Cancel:"Zrušit",Comment:"Komentář","Complete your profile":"Dokončete svůj profil",Delete:"Smazat","Deleted member":"Smazaný člen",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",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ď","Local resident":"Místní obyvatel","Member discussion":"Diskuse členů",Name:"Jméno",Neurosurgeon:"Neurochirurg","One day ago":"Před jedním dnem","One hour ago":"Před jednou hodinou","One min ago":"Před jednou minutou","One month ago":"Před jedním měsícem","One week ago":"Před jedním týdnem","One year ago":"Před jedním rokem",Reply:"Odpovědět","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 {{amount}} previous comments":"Zobrazit {{amount}} předchozích komentářů","Show 1 more reply":"Zobrazit 1 další odpověď","Show 1 previous comment":"Zobrazit 1 předchozí komentář","Show comment":"Zobrazit komentář","Sign in":"Přihlásit se","Sign up now":"Zaregistrujte se nyní","Start the conversation":"Začněte konverzaci","This comment has been hidden.":"Tento komentář byl skryt.","This comment has been removed.":"Tento komentář byl odstraněn.","Upgrade now":"Upgradovat",Yesterday:"Včera","Your request will be sent to the owner of this site.":"Vaše žádost bude odeslána vlastníkovi tohoto webu."},l2={"{{amount}} characters left":"{{amount}} tegn tilbage","{{amount}} comments":"{{amount}} kommentarer","{{amount}} days ago":"{{amount}} dage siden","{{amount}} hrs ago":"{{amount}} timer siden","{{amount}} mins ago":"{{amount}} minutter siden","{{amount}} months ago":"{{amount}} måneder siden","{{amount}} more":"{{amount}} mere","{{amount}} seconds ago":"{{amount}} sekunder siden","{{amount}} weeks ago":"{{amount}} uger siden","{{amount}} years ago":"{{amount}} år siden","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","Already a member?":"Allerede medlem?",Anonymous:"Anonym","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.",Cancel:"Annuller",Comment:"Kommentér","Complete your profile":"Færdiggør din profil",Delete:"Slet","Deleted member":"Slettet medlem",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",Hide:"Skjul","Hide comment":"Skjul kommentar","Jamie Larson":"Jamie Larson","Join the discussion":"Bliv en del af diskussionen","Just now":"Lige nu","Local resident":"Lokal borger","Member discussion":"Medlemsdiskussion",Name:"Navn",Neurosurgeon:"Neurokirurg","One day ago":"En dag siden","One hour ago":"En time siden","One min ago":"Et minut siden","One month ago":"En måned siden","One week ago":"En uge siden","One year ago":"Et år siden",Reply:"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 {{amount}} previous comments":"Vis {{amount}} tidligere kommentarer","Show 1 more reply":"Vis 1 mere svar","Show 1 previous comment":"Vis 1 tidligere kommentar","Show comment":"Vis kommentar","Sign in":"Log ind","Sign up now":"Tilmed dig nu","Start the conversation":"Start samtalen","This comment has been hidden.":"Denne kommentar er blevet skjult.","This comment has been removed.":"Denne kommentar er blevet fjernet.","Upgrade now":"Opgrader nu",Yesterday:"I går","Your request will be sent to the owner of this site.":"Din anmodning vil blive sendt til ejeren af dette site."},u2={"{{amount}} characters left":"{{amount}} Zeichen übrig","{{amount}} comments":"{{amount}} Kommentare","{{amount}} days ago":"Vor {{amount}} Tagen","{{amount}} hrs ago":"Vor {{amount}} Stunden","{{amount}} mins ago":"Vor {{amount}} Minuten","{{amount}} months ago":"Vor {{amount}} Monaten","{{amount}} more":"{{amount}} weitere","{{amount}} seconds ago":"Vor {{amount}} Sekunden","{{amount}} weeks ago":"Vor {{amount}} Wochen","{{amount}} years ago":"Vor {{amount}} Jahren","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","Already a member?":"Bist du bereits Mitglied?",Anonymous:"Anonym","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.",Cancel:"Abbrechen",Comment:"Kommentar","Complete your profile":"Vervollständige dein Profil",Delete:"Löschen","Deleted member":"Gelöschtes Mitglied",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",Hide:"Verbergen","Hide comment":"Kommentar verbergen","Jamie Larson":"Jamie Larson","Join the discussion":"Nimm an der Diskussion teil","Just now":"Gerade eben","Local resident":"Ortsansässiger","Member discussion":"Mitgliederdiskussion",Name:"Name",Neurosurgeon:"Neurochirurg","One day ago":"Vor einem Tag","One hour ago":"Vor einer Stunde","One min ago":"Vor einer Minute","One month ago":"Vor einem Monat","One week ago":"Vor einer Woche","One year ago":"Vor einem Jahr",Reply:"Antworten","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 {{amount}} previous comments":"{{amount}} frühere Kommentare anzeigen","Show 1 more reply":"1 weitere Antwort anzeigen","Show 1 previous comment":"1 vorherigen Kommentar anzeigen","Show comment":"Kommentar anzeigen","Sign in":"Einloggen","Sign up now":"Jetzt registrieren","Start the conversation":"Beginne das Gespräch","This comment has been hidden.":"Dieser Kommentar wurde ausgeblendet.","This comment has been removed.":"Dieser Kommentar wurde entfernt.","Upgrade now":"Jetzt upgraden",Yesterday:"Gestern","Your request will be sent to the owner of this site.":"Deine Anfrage wird an den Besitzer dieser Website gesendet."},c2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"Antworten","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"{{amount}} vorherige Kommentare anzeigen","Show 1 more reply":"","Show 1 previous comment":"Einen vorherigen Kommentar anzeigen","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},d2={"{{amount}} characters left":"Απομένουν {{amount}} χαρακτήρες","{{amount}} comments":"{{amount}} σχόλια","{{amount}} days ago":"πριν από {{amount}} ημέρες","{{amount}} hrs ago":"πριν από {{amount}} ώρες","{{amount}} mins ago":"πριν από {{amount}} λεπτά","{{amount}} months ago":"πριν από {{amount}} μήνες","{{amount}} more":"{{amount}} περισσότερα","{{amount}} seconds ago":"πριν από {{amount}} δευτερόλεπτα","{{amount}} weeks ago":"πριν από {{amount}} εβδομάδες","{{amount}} years ago":"πριν από {{amount}} χρόνια","1 comment":"1 σχόλιο","Add comment":"Προσθήκη σχολίου","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Προσθέστε περιεχόμενο στο σχόλιό σας, μοιραστείτε το όνομα και την εξειδίκευσή σας για να προωθήσετε μια υγιή συζήτηση.","Add reply":"Προσθήκη απάντησης","Already a member?":"Ήδη μέλος;",Anonymous:"Ανώνυμος","Become a member of {{publication}} to start commenting.":"Γίνετε μέλος του {{publication}} για να ξεκινήσετε να σχολιάζετε.","Become a paid member of {{publication}} to start commenting.":"Γίνετε premium μέλος του {{publication}} για να ξεκινήσετε να σχολιάζετε.",Cancel:"Ακύρωση",Comment:"Σχόλιο","Complete your profile":"Ολοκληρώστε το προφίλ σας",Delete:"Διαγραφή","Deleted member":"Διαγραμμένο μέλος",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",Hide:"Απόκρυψη","Hide comment":"Απόκρυψη σχολίου","Jamie Larson":"Τζέιμι Λάρσον","Join the discussion":"Συμμετοχή στη συζήτηση","Just now":"Μόλις τώρα","Local resident":"Τοπικός κάτοικος","Member discussion":"Συζήτηση μελών",Name:"Όνομα",Neurosurgeon:"Νευροχειρουργός","One day ago":"Πριν από μία ημέρα","One hour ago":"Πριν από μία ώρα","One min ago":"Πριν από ένα λεπτό","One month ago":"Πριν από ένα μήνα","One week ago":"Πριν από μία εβδομάδα","One year ago":"Πριν από ένα χρόνο",Reply:"Απάντηση","Reply to comment":"Απάντηση στο σχόλιο",Report:"Αναφορά","Report comment":"Αναφορά σχολίου","Report this comment?":"Αναφορά αυτού του σχολίου;",Save:"Αποθήκευση",Sending:"Αποστολή",Sent:"Απεστάλη",Show:"Εμφάνιση","Show {{amount}} more replies":"Εμφάνιση {{amount}} περισσότερων απαντήσεων","Show {{amount}} previous comments":"Εμφάνιση {{amount}} προηγούμενων σχολίων","Show 1 more reply":"Εμφάνιση 1 ακόμα απάντησης","Show 1 previous comment":"Εμφάνιση 1 προηγούμενου σχολίου","Show comment":"Εμφάνιση σχολίου","Sign in":"Σύνδεση","Sign up now":"Εγγραφείτε τώρα","Start the conversation":"Ξεκινήστε τη συζήτηση","This comment has been hidden.":"Αυτό το σχόλιο έχει κρυφτεί.","This comment has been removed.":"Αυτό το σχόλιο έχει αφαιρεθεί.","Upgrade now":"Αναβάθμιση τώρα",Yesterday:"Χθες","Your request will be sent to the owner of this site.":"Το αίτημά σας θα σταλεί στον ιδιοκτήτη αυτού του ιστότοπου."},m2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},f2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},p2={"{{amount}} characters left":"{{amount}} caracteres restantes","{{amount}} comments":"{{amount}} comentarios","{{amount}} days ago":"{{amount}} días atrás","{{amount}} hrs ago":"{{amount}} horas atrás","{{amount}} mins ago":"{{amount}} minutos atrás","{{amount}} months ago":"{{amount}} meses atrás","{{amount}} more":"{{amount}} más","{{amount}} seconds ago":"{{amount}} segundos atrás","{{amount}} weeks ago":"{{amount}} semanas atrás","{{amount}} years ago":"{{amount}} años atrás","1 comment":"1 comentario","Add comment":"Agregar comentario","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Agrega contexto a tu comentario, comparte tu nombre y experiencia para fomentar una discusión sana.","Add reply":"Agregar respuesta","Already a member?":"¿Ya eres miembro?",Anonymous:"Anónimo","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}}.",Cancel:"Cancelar",Comment:"Comentar","Complete your profile":"Completa tu perfil",Delete:"Eliminar","Deleted member":"Eliminar miembro",Discussion:"Discusión",Edit:"Editar","Edit this comment":"Editar este comentario",edited:"editado","Enter your name":"Ingresa tu nombre",Expertise:"Experiencia","Founder @ Acme Inc":"Fundador @ Acme Inc","Full-time parent":"Padres de tiempo completo","Head of Marketing at Acme, Inc":"Jefe de Marketing en Acme, Inc",Hide:"Ocultar","Hide comment":"Ocultar comentario","Jamie Larson":"Jamie Larson","Join the discussion":"Únete a la discusión","Just now":"Justo ahora","Local resident":"Residente local","Member discussion":"Discusión de miembros",Name:"Nombre",Neurosurgeon:"Neurocirujano","One day ago":"Hace un día","One hour ago":"Hace una hora","One min ago":"Hace un minuto","One month ago":"Hace un mes","One week ago":"Hace una semana","One year ago":"Hace un año",Reply:"Responder","Reply to comment":"Responder al comentario",Report:"Reportar","Report comment":"Reportar comentario","Report this comment?":"¿Reportar este comentario?",Save:"Guardar",Sending:"Enviando",Sent:"Enviar",Show:"Mostrar","Show {{amount}} more replies":"Mostrar {{amount}} respuestas más","Show {{amount}} previous comments":"Mostrar {{amount}} comentarios previos","Show 1 more reply":"Mostrar 1 respuesta más","Show 1 previous comment":"Mostrar 1 comentario previo","Show comment":"Mostrar comentario","Sign in":"Inicia sesión","Sign up now":"Regístrate ahora","Start the conversation":"Comienza la conversación","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",Yesterday:"Ayer","Your request will be sent to the owner of this site.":"Tu requerimiento será enviado al dueño de este sitio web."},h2={"{{amount}} characters left":"{{amount}} tähemärki jäänud","{{amount}} comments":"{{amount}} kommentaari","{{amount}} days ago":"{{amount}} päeva tagasi","{{amount}} hrs ago":"{{amount}} tundi tagasi","{{amount}} mins ago":"{{amount}} minutit tagasi","{{amount}} months ago":"{{amount}} kuud tagasi","{{amount}} more":"{{amount}} veel","{{amount}} seconds ago":"{{amount}} sekundit tagasi","{{amount}} weeks ago":"{{amount}} nädalat tagasi","{{amount}} years ago":"{{amount}} aastat tagasi","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","Already a member?":"Juba liige?",Anonymous:"Anonüümne","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.",Cancel:"Tühista",Comment:"Kommentaar","Complete your profile":"Täida oma profiil",Delete:"Kustuta","Deleted member":"Kustutatud liige",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",Hide:"Peida","Hide comment":"Peida kommentaar","Jamie Larson":"Jamie Larson","Join the discussion":"Liitu aruteluga","Just now":"Just praegu","Local resident":"Kohalik elanik","Member discussion":"Liikmete arutelu",Name:"Nimi",Neurosurgeon:"Neurokirurg","One day ago":"Üks päev tagasi","One hour ago":"Üks tund tagasi","One min ago":"Üks minut tagasi","One month ago":"Üks kuu tagasi","One week ago":"Üks nädal tagasi","One year ago":"Üks aasta tagasi",Reply:"Vasta","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 {{amount}} previous comments":"Näita {{amount}} eelmist kommentaari","Show 1 more reply":"Näita 1 vastus veel","Show 1 previous comment":"Näita eelmist kommentaari","Show comment":"Näita kommentaari","Sign in":"Logi sisse","Sign up now":"Registreeru nüüd","Start the conversation":"Alusta vestlust","This comment has been hidden.":"See kommentaar on peidetud.","This comment has been removed.":"See kommentaar on eemaldatud.","Upgrade now":"Uuenda nüüd",Yesterday:"Eile","Your request will be sent to the owner of this site.":"Teie taotlus saadetakse selle saidi omanikule."},g2={"{{amount}} characters left":"{{amount}} حرف باقی‌مانده است","{{amount}} comments":"{{amount}} دیدگاه","{{amount}} days ago":"{{amount}} روز پیش","{{amount}} hrs ago":"{{amount}} ساعت پیش","{{amount}} mins ago":"{{amount}} دقیقه پیش","{{amount}} months ago":"{{amount}} ماه پیش","{{amount}} more":"{{amount}} بیشتر","{{amount}} seconds ago":"{{amount}} ثانیه پیش","{{amount}} weeks ago":"{{amount}} هفته پیش","{{amount}} years ago":"{{amount}} سال پیش","1 comment":"یک دیدگاه","Add comment":"دیدگاهی بفرستید","Add context to your comment, share your name and expertise to foster a healthy discussion.":"به دیدگاه خود موضوعیت ببخشید و با به اشتراک‌گذاری نام و تخصص خود یک گفتمان سالم ایجاد کنید.","Add reply":"پاسخی بدهید","Already a member?":"عضو هستید؟",Anonymous:"ناشناس","Become a member of {{publication}} to start commenting.":"عضو وب‌سایت {{publication}} شوید تا مجوز ارسال دیدگاه دریافت کنید.","Become a paid member of {{publication}} to start commenting.":"حق اشتراک وب‌سایت {{publication}} را پرداخت کنید تا مجوز ارسال دیدگاه دریافت کنید.",Cancel:"انصراف",Comment:"دیدگاه","Complete your profile":"نمایه خود را کامل کنید",Delete:"پاک کردن","Deleted member":"حساب پاک‌شده",Discussion:"گفتمان",Edit:"ویرایش","Edit this comment":"ویرایش این دیدگاه",edited:"ویرایش‌شده","Enter your name":"نام خود را بنویسید",Expertise:"تخصص","Founder @ Acme Inc":"مدیر عامل یک شرکت خیالی","Full-time parent":" خانه‌دار تمام وقت","Head of Marketing at Acme, Inc":"سرپرست بخش بازاریابی یک شرکت خیالی",Hide:"مخفی کردن","Hide comment":"مخفی کردن دیدگاه","Jamie Larson":"جیمی لارسن","Join the discussion":"به گفتمان بپیوندید","Just now":"پیوستن","Local resident":"ساکن محلی","Member discussion":"گفتمان کاربران",Name:"نام",Neurosurgeon:"جراح مغز و اعصاب","One day ago":"یک روز پیش","One hour ago":"یک ساعت پیش","One min ago":"یک دقیقه پیش","One month ago":"یک ماه پیش","One week ago":"یک هفته پیش","One year ago":"یک سال پیش",Reply:"پاسخ دادن","Reply to comment":"پاسخ دادن به دیدگاه",Report:"گزارش","Report comment":"گزارش دیدگاه","Report this comment?":"می‌خواهید این دیدگاه را گزارش کنید؟",Save:"ذخیره کردن",Sending:"در حال ارسال",Sent:"ارسال شد",Show:"نمایش","Show {{amount}} more replies":"نمایش {{amount}} پاسخ بیشتر","Show {{amount}} previous comments":"نمایش {{amount}} دیدگاه قبل‌تر","Show 1 more reply":"نمایش یک دیدگاه بیشتر","Show 1 previous comment":"نمایش یک دیدگاه قبل‌تر","Show comment":"نمایش دیدگاه","Sign in":"ورود به حساب","Sign up now":"ایجاد حساب","Start the conversation":"گفت‌وگویی شروع کنید","This comment has been hidden.":"این دیدگاه مخفی شده است","This comment has been removed.":"این دیدگاه پاک شده است","Upgrade now":"ارتقاء دهید",Yesterday:"دیروز","Your request will be sent to the owner of this site.":"درخواست شما برای مدیر این وب‌سایت ارسال خواهد شد."},y2={"{{amount}} characters left":"{{amount}} merkkiä jäljellä","{{amount}} comments":"{{amount}} kommenttia","{{amount}} days ago":"{{amount}} päivää sitten","{{amount}} hrs ago":"{{amount}} tuntia sitten","{{amount}} mins ago":"{{amount}} minuuttia sitten","{{amount}} months ago":"{{amount}} kuukautta sitten","{{amount}} more":"{{amount}} vielä lisää","{{amount}} seconds ago":"{{amount}} sekuntia sitten","{{amount}} weeks ago":"{{amount}} viikkoa sitten","{{amount}} years ago":"{{amount}} vuotta sitten","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","Already a member?":"Oletko jo jäsen?",Anonymous:"Anonyymi","Become a member of {{publication}} to start commenting.":"Ala {{publication}} jäseneksi pystyäksesi kommentoimaan","Become a paid member of {{publication}} to start commenting.":"Ota maksullinen jäsenyys sivulle {{publication}}, jotta pystyt kommentoimaan",Cancel:"Peruuta",Comment:"Kommentti","Complete your profile":"Täydennä profiilisi",Delete:"Poista","Deleted member":"Poista jäsen",Discussion:"Keskustelu",Edit:"Editoi","Edit this comment":"Editoi tätä kommenttia",edited:"editoitu","Enter your name":"Syötä nimesi",Expertise:"Osaaminen","Founder @ Acme Inc":"","Full-time parent":"Kokoaikainen vanhempi","Head of Marketing at Acme, Inc":"Markkinointijohtaja",Hide:"Piilota","Hide comment":"Piilota kommentti","Jamie Larson":"Jamie Larson","Join the discussion":"Liity keskusteluun","Just now":"Juuri nyt","Local resident":"Paikallinen","Member discussion":"Jäsenten keskustelu",Name:"Nimi",Neurosurgeon:"Neurokirurgi","One day ago":"Päivä sitten","One hour ago":"Tunti sitten","One min ago":"Minuutti sitten","One month ago":"Kuukausi sitten","One week ago":"Viikko sitten","One year ago":"Vuosi sitten",Reply:"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 {{amount}} previous comments":"Näytä {{amount}} edellistä kommenttia","Show 1 more reply":"Näytä 1 vastaus lisää","Show 1 previous comment":"Näytä edellinen kommentti","Show comment":"Näytä kommentti","Sign in":"Kirjaudu sisään","Sign up now":"Rekisteröidy nyt","Start the conversation":"Aloita keskustelu","This comment has been hidden.":"Tämä kommentti on piilotettu","This comment has been removed.":"Tämä kommentti on poistettu","Upgrade now":"Korota nyt",Yesterday:"Eilen","Your request will be sent to the owner of this site.":"Sinun pyyntösi lähetetään sivun omistajalle"},w2={"{{amount}} characters left":"{{amount}} caractères restants","{{amount}} comments":"{{amount}} commentaires","{{amount}} days ago":"Il y a {{amount}} jours","{{amount}} hrs ago":"Il y a {{amount}} heures","{{amount}} mins ago":"Il y a {{amount}} minutes","{{amount}} months ago":"Il y a {{amount}} mois","{{amount}} more":"{{amount}} supplémentaire(s)","{{amount}} seconds ago":"Il y a {{amount}} secondes","{{amount}} weeks ago":"Il y a {{amount}} semaines","{{amount}} years ago":"Il y a {{amount}} ans","1 comment":"1 commentaire","Add comment":"Ajoutez 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":"Ajoutez une réponse","Already a member?":"Déjà membre ?",Anonymous:"Anonyme","Become a member of {{publication}} to start commenting.":"Devenez membre de {{publication}} pour commencer à commenter.","Become a paid member of {{publication}} to start commenting.":"Devenez un membre payant de {{publication}} pour commencer à commenter.",Cancel:"Annuler",Comment:"Commentaire","Complete your profile":"Complétez votre profil",Delete:"Supprimer","Deleted member":"Membre supprimé",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",Hide:"Masquer","Hide comment":"Masquer le commentaire","Jamie Larson":"Jamie Larson","Join the discussion":"Rejoignez la discussion","Just now":"À l'instant","Local resident":"Résident local","Member discussion":"Discussion entre membres",Name:"Nom",Neurosurgeon:"Neurochirurgien","One day ago":"Il y a un jour","One hour ago":"Il y a une heure","One min ago":"Il y a une minute","One month ago":"Il y a un mois","One week ago":"Il y a une semaine","One year ago":"Il y a un an",Reply:"Répondre","Reply to comment":"Répondre au commentaire",Report:"Signaler","Report comment":"Signalez 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 {{amount}} previous comments":"Afficher {{amount}} commentaires précédents","Show 1 more reply":"Afficher 1 réponse supplémentaire","Show 1 previous comment":"Afficher 1 commentaire précédent","Show comment":"Afficher le commentaire","Sign in":"Se connecter","Sign up now":"Inscrivez-vous maintenant","Start the conversation":"Commencer la conversation","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",Yesterday:"Hier","Your request will be sent to the owner of this site.":"Votre demande sera transférée au propriétaire de ce site."},S2={"{{amount}} characters left":"caractaran air fhàgail: {{amount}}","{{amount}} comments":"beachdan: {{amount}}","{{amount}} days ago":"o chionn {{amount}}l","{{amount}} hrs ago":"o chionn {{amount}}u","{{amount}} mins ago":"o chionn {{amount}}m","{{amount}} months ago":"o chionn {{amount}}m","{{amount}} more":"{{amount}} a bharrachd","{{amount}} seconds ago":"o chionn {{amount}}d","{{amount}} weeks ago":"o chionn {{amount}}s","{{amount}} years ago":"o chionn {{amount}}b","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","Already a member?":"’Eil thu nad bhall mar-thà?",Anonymous:"Gun ainm","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.",Cancel:"Sguir dheth",Comment:"Beachd","Complete your profile":"Lìon a-steach a' phròifil agad",Delete:"Sguab às","Deleted member":"Ball air a sguabadh às",Discussion:"Deasbad",Edit:"Deasaich","Edit this comment":"Deasaich am beachd seo",edited:"Air a dheasachad","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",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","Local resident":"Neach-còmhnaidh ionadail","Member discussion":"Deasbad",Name:"Ainm",Neurosurgeon:"Niùro-làmh-lèigh","One day ago":"O chionn latha","One hour ago":"O chionn uair a thìde","One min ago":"O chionn mionaid","One month ago":"O chionn mìos","One week ago":"O chionn seachdain","One year ago":"O chionn bliadhna",Reply:"Cuir freagairt","Reply to comment":"Cuir freagaist 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 {{amount}} previous comments":"An àireamh de bheachdan roimhe a chìthear: {{amount}}","Show 1 more reply":"Seall beachd a bharrachd","Show 1 previous comment":"Seall am beachd roimhe","Show comment":"Seall am beachd","Sign in":"Clàraich a-steach","Sign up now":"Clàraich a-nis","Start the conversation":"Tòisich an deasbad","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",Yesterday:"An-dè","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."},v2={"{{amount}} characters left":"{{amount}} अक्षर बाकी","{{amount}} comments":"{{amount}} टिप्पणियाँ","{{amount}} days ago":"{{amount}} दिन पहले","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"{{amount}} महीने पहले","{{amount}} more":"{{amount}} और","{{amount}} seconds ago":"{{amount}} सेकंड पहले","{{amount}} weeks ago":"{{amount}} सप्ताह पहले","{{amount}} years ago":"{{amount}} साल पहले","1 comment":"1 टिप्पणी","Add comment":"टिप्पणी जोड़ें","Add context to your comment, share your name and expertise to foster a healthy discussion.":"अपनी टिप्पणी में संदर्भ जोड़ें, स्वस्थ चर्चा के लिए अपना नाम और विशेषज्ञता साझा करें।","Add reply":"जवाब जोड़ें","Already a member?":"पहले से सदस्य हैं?",Anonymous:"अनाम","Become a member of {{publication}} to start commenting.":"टिप्पणी शुरू करने के लिए {{publication}} का सदस्य बनें।","Become a paid member of {{publication}} to start commenting.":"टिप्पणी शुरू करने के लिए {{publication}} के भुगतान सदस्य बनें।",Cancel:"रद्द करें",Comment:"टिप्पणी","Complete your profile":"अपनी प्रोफ़ाइल पूरी करें",Delete:"हटाएं","Deleted member":"हटाए गए सदस्य",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 में विपणन प्रमुख",Hide:"छिपाएं","Hide comment":"टिप्पणी छिपाएं","Jamie Larson":"राहुल शर्मा","Join the discussion":"चर्चा में शामिल हों","Just now":"अभी","Local resident":"स्थानीय निवासी","Member discussion":"सदस्य चर्चा",Name:"नाम",Neurosurgeon:"न्यूरोसर्जन","One day ago":"एक दिन पहले","One hour ago":"एक घंटा पहले","One min ago":"","One month ago":"एक महीने पहले","One week ago":"एक सप्ताह पहले","One year ago":"एक साल पहले",Reply:"जवाब दें","Reply to comment":"टिप्पणी का जवाब दें",Report:"रिपोर्ट","Report comment":"टिप्पणी की रिपोर्ट करें","Report this comment?":"क्या आप इस टिप्पणी की रिपोर्ट करना चाहते हैं?",Save:"सहेजें",Sending:"भेजा जा रहा है",Sent:"भेजा गया",Show:"दिखाएं","Show {{amount}} more replies":"{{amount}} और जवाब दिखाएं","Show {{amount}} previous comments":"{{amount}} पिछली टिप्पणियाँ दिखाएं","Show 1 more reply":"1 और जवाब दिखाएं","Show 1 previous comment":"1 पिछली टिप्पणी दिखाएं","Show comment":"टिप्पणी दिखाएं","Sign in":"साइन इन करें","Sign up now":"अभी साइन अप करें","Start the conversation":"बातचीत शुरू करें","This comment has been hidden.":"इस टिप्पणी को छिपा दिया गया है।","This comment has been removed.":"इस टिप्पणी को हटा दिया गया है।","Upgrade now":"अब उन्नत करें",Yesterday:"कल","Your request will be sent to the owner of this site.":"आपका अनुरोध इस साइट के मालिक को भेजा जाएगा।"},b2={"{{amount}} characters left":"{{amount}} znakova preostalo","{{amount}} comments":"{{amount}} komentara","{{amount}} days ago":"Prije{{amount}} dana","{{amount}} hrs ago":"Prije {{amount}} sati","{{amount}} mins ago":"Prije {{amount}} minuta","{{amount}} months ago":"Prije {{amount}} mjeseci","{{amount}} more":"{{amount}} više","{{amount}} seconds ago":"Prije {{amount}} sekundi","{{amount}} weeks ago":"Prije {{amount}} tjedana","{{amount}} years ago":"Prije {{amount}} godine","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","Already a member?":"Već si član?",Anonymous:"Anonimus","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.",Cancel:"Prekini",Comment:"Komentar","Complete your profile":"Dovrši svoj profil",Delete:"Obriši","Deleted member":"Obrisan član",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",Hide:"Sakrij","Hide comment":"Sakrij komentar","Jamie Larson":"Jamie Larson","Join the discussion":"Pridruži se raspravi","Just now":"Upravo sada","Local resident":"Lokalni stanovnik","Member discussion":"Rasprava članova",Name:"Ime",Neurosurgeon:"Neurokirurg","One day ago":"Prije jedan dan","One hour ago":"Prije jednog sata","One min ago":"Prije jedne minute","One month ago":"Prije mjesec dana","One week ago":"Prije tjedan dana","One year ago":"Prije godinu dana",Reply:"Odgovori","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 {{amount}} previous comments":"Prikaži {{amount}} prethodnih komentara","Show 1 more reply":"Prikaži još jedan odgovor","Show 1 previous comment":"Prikaži prethodan komentar","Show comment":"Prikaži komentar","Sign in":"Prijava","Sign up now":"Registriraj se sada","Start the conversation":"Pokreni razgovor","This comment has been hidden.":"Ovaj komentar je skriven","This comment has been removed.":"Ovaj komentar je maknut","Upgrade now":"Nadogradite sada",Yesterday:"Jučer","Your request will be sent to the owner of this site.":"Vaš zahtjev će se poslati vasniku ovih web stranica."},k2={"{{amount}} characters left":"{{amount}} karakter maradt","{{amount}} comments":"{{amount}} hozzászólás","{{amount}} days ago":"{{amount}} napja","{{amount}} hrs ago":"{{amount}} órája","{{amount}} mins ago":"{{amount}} perce","{{amount}} months ago":"{{amount}} hónapja","{{amount}} more":"","{{amount}} seconds ago":"{{amount}} másodperce","{{amount}} weeks ago":"{{amount}} hete","{{amount}} years ago":"{{amount}} éve","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.":"Adjon kontextust hozzászólásaihoz: ossza meg nevét és foglalkozását az egészséges vita elősegítése érdekében.","Add reply":"Válasz","Already a member?":"Már van fiókja?",Anonymous:"Anonim","Become a member of {{publication}} to start commenting.":"Regisztráljon a hozzászólások írásához.","Become a paid member of {{publication}} to start commenting.":"Regisztráljon fizetős fiókot a hozzászólások írásához.",Cancel:"Mégse",Comment:"Hozzászólás","Complete your profile":"Profil befejezése",Delete:"Törlés","Deleted member":"Törölt tag",Discussion:"Hozzászólások",Edit:"Szerkesztés","Edit this comment":"Hozzászólás szerkesztése",edited:"szerkesztve","Enter your name":"Adja meg a nevét",Expertise:"Foglalkozás","Founder @ Acme Inc":"Acme Kft. alapító","Full-time parent":"Főállású szülő","Head of Marketing at Acme, Inc":"Marketing vezető — Acme Kft.",Hide:"Elrejtés","Hide comment":"Hozzászólás elrejtése","Jamie Larson":"Kiss Sára","Join the discussion":"Csatlakozzon a beszélgetéshez","Just now":"Épp most","Local resident":"Helyi lakos","Member discussion":"Hozzászólások",Name:"Név",Neurosurgeon:"Idegsebész","One day ago":"Egy napja","One hour ago":"Egy órája","One min ago":"Egy perce","One month ago":"Egy hónapja","One week ago":"Egy hete","One year ago":"Egy éve",Reply:"Válasz","Reply to comment":"Válasz erre",Report:"Jelentés","Report comment":"Hozzászólás jelentése","Report this comment?":"Hozzászólás jelentése?",Save:"Mentés",Sending:"Küldés",Sent:"Elküldve",Show:"Mutat","Show {{amount}} more replies":"Mutass még {{amount}} választ","Show {{amount}} previous comments":"Mutass {{amount}} előző hozzászólást","Show 1 more reply":"Mutass még egy választ","Show 1 previous comment":"Mutass még egy hozzászólást","Show comment":"Hozzászólás mutatása","Sign in":"Bejelentkezés","Sign up now":"Regisztráljon most","Start the conversation":"Kezdje el a beszélgetést","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":"Fizessen elő most",Yesterday:"Tegnap","Your request will be sent to the owner of this site.":"A kérését a website tulajdonosának fogjuk küldeni."},x2={"{{amount}} characters left":"{{amount}} karakter tersisa","{{amount}} comments":"{{amount}} komentar","{{amount}} days ago":"{{amount}} hari yang lalu","{{amount}} hrs ago":"{{amount}} jam yang lalu","{{amount}} mins ago":"{{amount}} menit yang lalu","{{amount}} months ago":"{{amount}} bulan yang lalu","{{amount}} more":"{{amount}} lagi","{{amount}} seconds ago":"{{amount}} detik yang lalu","{{amount}} weeks ago":"{{amount}} minggu yang lalu","{{amount}} years ago":"{{amount}} tahun yang lalu","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","Already a member?":"Sudah menjadi anggota?",Anonymous:"Anonim","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.",Cancel:"Batal",Comment:"Komentar","Complete your profile":"Lengkapi profil Anda",Delete:"Hapus","Deleted member":"Anggota dihapus",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",Hide:"Sembunyikan","Hide comment":"Sembunyikan komentar","Jamie Larson":"Sutan T. Alisjahbana","Join the discussion":"Bergabung dalam diskusi","Just now":"Baru saja","Local resident":"Penduduk lokal","Member discussion":"Diskusi anggota",Name:"Nama",Neurosurgeon:"Ahli Bedah Saraf","One day ago":"Satu hari yang lalu","One hour ago":"Satu jam yang lalu","One min ago":"Satu menit yang lalu","One month ago":"Satu bulan yang lalu","One week ago":"Satu minggu yang lalu","One year ago":"Satu tahun yang lalu",Reply:"Balas","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 {{amount}} previous comments":"Tampilkan {{amount}} komentar sebelumnya","Show 1 more reply":"Tampilkan 1 balasan lainnya","Show 1 previous comment":"Tampilkan 1 komentar sebelumnya","Show comment":"Tampilkan komentar","Sign in":"Masuk","Sign up now":"Daftar sekarang","Start the conversation":"Mulai percakapan","This comment has been hidden.":"Komentar ini telah disembunyikan.","This comment has been removed.":"Komentar ini telah dihapus.","Upgrade now":"Daftar sekarang",Yesterday:"Kemarin","Your request will be sent to the owner of this site.":"Permintaan Anda akan dikirim kepada pemilik situs ini."},$2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},C2={"{{amount}} characters left":"{{amount}} caratteri rimanenti","{{amount}} comments":"{{amount}} commenti","{{amount}} days ago":"{{amount}} giorni fa","{{amount}} hrs ago":"{{amount}} ore fa","{{amount}} mins ago":"{{amount}} minuti fa","{{amount}} months ago":"{{amount}} mesi fa","{{amount}} more":"{{amount}} in più","{{amount}} seconds ago":"{{amount}} secondi fa","{{amount}} weeks ago":"{{amount}} settimane fa","{{amount}} years ago":"{{amount}} anni fa","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","Already a member?":"Sei già iscritto?",Anonymous:"Anonimo","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.",Cancel:"Annulla",Comment:"Commenta","Complete your profile":"Completa il tuo profilo",Delete:"Elimina","Deleted member":"Utente eliminato",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",Hide:"Nascondi","Hide comment":"Nascondi commento","Jamie Larson":"Andrea Rossi","Join the discussion":"Partecipa alla discussione","Just now":"Adesso","Local resident":"Paesano","Member discussion":"Commenti",Name:"Nome",Neurosurgeon:"Neurochirurgo","One day ago":"Un giorno fa","One hour ago":"Un'ora fa","One min ago":"Un minuto fa","One month ago":"Un mese fa","One week ago":"Una settimana fa","One year ago":"Un anno fa",Reply:"Rispondi","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 {{amount}} previous comments":"Mostra altri {{amount}} commenti","Show 1 more reply":"Mostra un'altra risposta","Show 1 previous comment":"Mostra un commento precedente","Show comment":"Mostra commento","Sign in":"Accedi","Sign up now":"Accedi ora","Start the conversation":"Commenta per primo","This comment has been hidden.":"Questo commento è stato nascosto.","This comment has been removed.":"Questo commento è stato rimosso.","Upgrade now":"Abbonati ora",Yesterday:"Ieri","Your request will be sent to the owner of this site.":"La tua richiesta sarà inviata al proprietario del sito."},E2={"{{amount}} characters left":"残り{{amount}}文字","{{amount}} comments":"{{amount}}のコメント","{{amount}} days ago":"{{amount}}日前","{{amount}} hrs ago":"{{amount}}時間前","{{amount}} mins ago":"{{amount}}分前","{{amount}} months ago":"{{amount}}ヶ月前","{{amount}} more":"さらに{{amount}}個","{{amount}} seconds ago":"{{amount}}秒前","{{amount}} weeks ago":"{{amount}}週間前","{{amount}} years ago":"{{amount}}年前","1 comment":"1のコメント","Add comment":"コメントする","Add context to your comment, share your name and expertise to foster a healthy discussion.":"コメントはよく説明し、名前と専門分野を共有することで健全な議論をすすめましょう。","Add reply":"返信する","Already a member?":"メンバーですか?",Anonymous:"匿名","Become a member of {{publication}} to start commenting.":"{{publication}}のメンバーになってコメントを始めましょう。","Become a paid member of {{publication}} to start commenting.":"{{publication}}の有料メンバーになってコメントを始めましょう。",Cancel:"キャンセル",Comment:"コメント","Complete your profile":"プロフィールを完成させる",Delete:"削除","Deleted member":"削除されたメンバー",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",Hide:"非表示にする","Hide comment":"コメントを非表示にする","Jamie Larson":"ジェイミー・ラーソン","Join the discussion":"議論に参加する","Just now":"今すぐ参加する","Local resident":"地元住民","Member discussion":"メンバーによる議論",Name:"名前",Neurosurgeon:"脳神経外科医","One day ago":"1日前","One hour ago":"1時間前","One min ago":"1分前","One month ago":"1ヶ月前","One week ago":"1週間前","One year ago":"1年前",Reply:"返信する","Reply to comment":"コメントに返信する",Report:"通報する","Report comment":"コメントを通報する","Report this comment?":"このコメントを通報しますか?",Save:"保存",Sending:"送信中",Sent:"送信完了",Show:"表示する","Show {{amount}} more replies":"{{amount}}個の返信を表示する","Show {{amount}} previous comments":"前のコメントを{{amount}}個表示する","Show 1 more reply":"返信をもう1つ表示する","Show 1 previous comment":"1つ前のコメントを表示する","Show comment":"コメントを表示する","Sign in":"ログイン","Sign up now":"今すぐ新規登録する","Start the conversation":"会話を始める","This comment has been hidden.":"このコメントは非表示にされました。","This comment has been removed.":"このコメントは削除されました。","Upgrade now":"今すぐアップデートする",Yesterday:"昨日","Your request will be sent to the owner of this site.":"あなたのリクエストはこのサイトの管理者に送信されます。"},N2={"{{amount}} characters left":"{{amount}}글자 남음","{{amount}} comments":"{{amount}}개의 댓글","{{amount}} days ago":"{{amount}}일 전","{{amount}} hrs ago":"{{amount}}시간 전","{{amount}} mins ago":"{{amount}}분 전","{{amount}} months ago":"{{amount}}개월 전","{{amount}} more":"","{{amount}} seconds ago":"{{amount}}초 전","{{amount}} weeks ago":"{{amount}}주 전","{{amount}} years ago":"{{amount}}년 전","1 comment":"1개의 댓글","Add comment":"댓글 추가","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"답변 추가","Already a member?":"이미 회원이신가요?",Anonymous:"익명","Become a member of {{publication}} to start commenting.":"{{publication}}의 회원이 되어 댓글을 작성해 주세요.","Become a paid member of {{publication}} to start commenting.":"{{publication}}의 유료 회원이 되어 댓글을 작성해 주세요.",Cancel:"취소",Comment:"댓글","Complete your profile":"프로필을 완성해 주세요",Delete:"삭제","Deleted member":"삭제된 회원",Discussion:"댓글",Edit:"수정","Edit this comment":"댓글 수정",edited:"수정됨","Enter your name":"이름을 입력해 주세요",Expertise:"전문분야","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"숨기기","Hide comment":"댓글 숨기기","Jamie Larson":"","Join the discussion":"댓글에 참여해 주세요","Just now":"방금 전","Local resident":"","Member discussion":"회원들의 댓글",Name:"이름",Neurosurgeon:"","One day ago":"1일 전","One hour ago":"1시간 전","One min ago":"1분 전","One month ago":"1달 전","One week ago":"1주 전","One year ago":"1년 전",Reply:"답변","Reply to comment":"댓글에 답변",Report:"신고","Report comment":"댓글 신고","Report this comment?":"이 댓글을 신고하시겠어요?",Save:"저장",Sending:"전송중",Sent:"전송됨",Show:"보기","Show {{amount}} more replies":"{{amount}}개의 댓글 더 보기","Show {{amount}} previous comments":"{{amount}}개의 이전 댓글 보기","Show 1 more reply":"1개의 댓글 더 보기","Show 1 previous comment":"1개의 이전 댓글 보기","Show comment":"댓글 보기","Sign in":"로그인","Sign up now":"회원가입","Start the conversation":"댓글을 작성해 주세요","This comment has been hidden.":"숨김처리 된 댓글이에요.","This comment has been removed.":"삭제 된 댓글이에요.","Upgrade now":"업그레이드",Yesterday:"어제","Your request will be sent to the owner of this site.":"운영자에게 요구사항이 전달되었어요."},O2={"{{amount}} characters left":"{{amount}} таңба қалды","{{amount}} comments":"{{amount}} пікір","{{amount}} days ago":"{{amount}} күн бұрын","{{amount}} hrs ago":"{{amount}} сағат бұрын","{{amount}} mins ago":"{{amount}} минут бұрын","{{amount}} months ago":"{{amount}} ай бұрын","{{amount}} more":"тағы {{amount}}","{{amount}} seconds ago":"{{amount}} секунд бұрын","{{amount}} weeks ago":"{{amount}} апта бұрын","{{amount}} years ago":"{{amount}} жыл бұрын","1 comment":"1 пікір","Add comment":"Пікір қосу","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Талқы қызық болуы үшін өзіңіз туралы мәліметтерді қосыңыз.","Add reply":"Жауап қосу","Already a member?":"Әлдеқашан қосылдыңыз ба?",Anonymous:"Аноним","Become a member of {{publication}} to start commenting.":"Пікір қалдыру үшін {{publication}} сайтына аккаунт қажет.","Become a paid member of {{publication}} to start commenting.":"Пікір қалдыру үшін {{publication}} сайтына ақылы аккаунт қажет.",Cancel:"Бас тарту",Comment:"Пікір","Complete your profile":"Профиліңізді толтырыңыз",Delete:"Жою","Deleted member":"Жойылған аккаунт",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 маркетинг жетекшісі ",Hide:"Жасыру","Hide comment":"Пікірді жасыру","Jamie Larson":"Пәленше Түгеншиев","Join the discussion":"Талқыға қосылу","Just now":"Дәл қазір","Local resident":"Жергілікті тұрғын","Member discussion":"Мүшелер талқысы",Name:"Есімі",Neurosurgeon:"Нейрохирург","One day ago":"Бір күн бұрын","One hour ago":"Бір сағат бұрын","One min ago":"Бір минут бұрын","One month ago":"Бір ай бұрын","One week ago":"Бір апта бұрын","One year ago":"Бір жыл бұрын",Reply:"Жауап беру","Reply to comment":"Пікірге жауап беру",Report:"Шағымдану","Report comment":"Пікірге шағымдану","Report this comment?":"Осы пікірге шағым жіберілсін бе?",Save:"Сақтау",Sending:"Жіберілуде",Sent:"Жіберілді",Show:"Көрсету","Show {{amount}} more replies":"Тағы {{amount}} жауапты көрсету","Show {{amount}} previous comments":"Алдыңғы {{amount}} пікірді көрсету","Show 1 more reply":"Тағы 1 жауап көрсету","Show 1 previous comment":"Алдыңғы 1 пікірді көрсету","Show comment":"Пікірді көрсету","Sign in":"Кіру","Sign up now":"Қазір тіркелу","Start the conversation":"Талқыны бастау","This comment has been hidden.":"Бұл пікір жасырылды.","This comment has been removed.":"Бұл пікір өшірілді.","Upgrade now":"Жаңарту ",Yesterday:"Кеше","Your request will be sent to the owner of this site.":"Өтінішіңіз сайт иесіне жіберіледі."},A2={"{{amount}} characters left":"{{amount}} likę simboliai","{{amount}} comments":"{{amount}} komentarai","{{amount}} days ago":"Prieš {{amount}} d.","{{amount}} hrs ago":"Prieš {{amount}} val.","{{amount}} mins ago":"Prieš {{amount}} min.","{{amount}} months ago":"Prieš {{amount}} mėn.","{{amount}} more":"{{amount}} daugiau","{{amount}} seconds ago":"Prieš {{amount}} sek.","{{amount}} weeks ago":"Prieš {{amount}} sav.","{{amount}} years ago":"Prieš {{amount}} m.","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","Already a member?":"Jau turite paskyrą?",Anonymous:"Anoniminis","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.",Cancel:"Atšaukti",Comment:"Komentuoti","Complete your profile":"Pabaikite kurti savo profilį!",Delete:"Ištrinti","Deleted member":"Pašalintas narys",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",Hide:"Paslėpti","Hide comment":"Paslėpti komentarą","Jamie Larson":"Vardenis Pavardenis","Join the discussion":"Prisijunkite prie diskusijos","Just now":"Ką tik","Local resident":"Vietinis gyventojas","Member discussion":"Komentarai",Name:"Vardas",Neurosurgeon:"Neurochirurgas","One day ago":"Prieš dieną","One hour ago":"Prieš valandą","One min ago":"Prieš minutę","One month ago":"Prieš mėnesį","One week ago":"Prieš savaitę","One year ago":"Prieš metus",Reply:"Atsakyti","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 {{amount}} previous comments":"Rodyti ankstesnius komentarus ({{amount}})","Show 1 more reply":"Rodyti dar 1 atsakymą","Show 1 previous comment":"Rodyti ankstesnį komentarą","Show comment":"Rodyti komentarą","Sign in":"Prisijungti","Sign up now":"Registruotis","Start the conversation":"Parašykite pirmąjį komentarą","This comment has been hidden.":"Šis komentaras buvo paslėptas.","This comment has been removed.":"Šis komentaras buvo pašalintas.","Upgrade now":"Prenumeruokite",Yesterday:"Vakar","Your request will be sent to the owner of this site.":"Jūsų pranešimas bus išsiųstas svetainės savininkui."},R2={"{{amount}} characters left":"Преостануваат {{amount}} знаци.","{{amount}} comments":"{{amount}} коментари","{{amount}} days ago":"Пред {{amount}} дена","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"Пред {{amount}} месеци","{{amount}} more":"Уште {{amount}}","{{amount}} seconds ago":"Пред {{amount}} секунди","{{amount}} weeks ago":"Пред {{amount}} недели","{{amount}} years ago":"Пред {{amount}} години","1 comment":"1 коментар","Add comment":"Додајте коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додајте контекст за вашиот коментар, споделете го вашето име и експертиза за да одржите пристојна дискусија.","Add reply":"Одговорете","Already a member?":"Веќе сте член?",Anonymous:"Анонимен","Become a member of {{publication}} to start commenting.":"Станете член на {{publication}} за да можете да коментирате.","Become a paid member of {{publication}} to start commenting.":"Станете претплатен член на {{publication}} за да можеш да коментирате.",Cancel:"Откажете",Comment:"Коментирајте","Complete your profile":"Комплетирајте го вашиот профил",Delete:"Избришете","Deleted member":"Избришан член",Discussion:"Разговор",Edit:"Изменете","Edit this comment":"Изменете го овој коментар",edited:"","Enter your name":"Внесете го вашето име",Expertise:"Експертиза","Founder @ Acme Inc":"Основач @ Примерна Компанија","Full-time parent":"Родител","Head of Marketing at Acme, Inc":"Раководител на Маркетинг во Примерна Компанија",Hide:"Скријте","Hide comment":"Скријте го коментарот","Jamie Larson":"Петар Петровски","Join the discussion":"Приклучете се во разговорот","Just now":"Штотуку","Local resident":"Локал жител","Member discussion":"Разговор на членовите",Name:"Име",Neurosurgeon:"Неврохирург","One day ago":"Пред еден ден","One hour ago":"Пред еден час","One min ago":"","One month ago":"Пред еден месец","One week ago":"Пред една недела","One year ago":"Пред една година",Reply:"Одговорете","Reply to comment":"Одговор на коментарот",Report:"Пријавете","Report comment":"Пријавете коментар","Report this comment?":"Пријавете го овој коментар?",Save:"Зачувајте",Sending:"Се испраќа",Sent:"Испратено",Show:"Покажи","Show {{amount}} more replies":"Покажи уште {{amount}} одговори","Show {{amount}} previous comments":"Покажи {{amount}} претходни коментари","Show 1 more reply":"Покажи уште 1 одговор","Show 1 previous comment":"Покажи 1 претходен коментар","Show comment":"Покажи коментар","Sign in":"Најавете се","Sign up now":"Регистрирајте се","Start the conversation":"Започнете го разговорот","This comment has been hidden.":"Овој коментар беше скриен.","This comment has been removed.":"Овој коментар беше отстранет.","Upgrade now":"Надградете",Yesterday:"Вчера","Your request will be sent to the owner of this site.":"Вашето барање ќе биде испратено на сопственикот на оваа страница."},M2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},D2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},T2={"{{amount}} characters left":"Nog {{amount}} tekens over","{{amount}} comments":"{{amount}} reacties","{{amount}} days ago":"{{amount}} dagen geleden","{{amount}} hrs ago":"{{amount}} uur geleden","{{amount}} mins ago":"{{amount}} min geleden","{{amount}} months ago":"{{amount}} maanden geleden","{{amount}} more":"","{{amount}} seconds ago":"{{amount}} seconden geleden","{{amount}} weeks ago":"{{amount}} weken geleden","{{amount}} years ago":"{{amount}} jaar geleden","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","Already a member?":"Al lid?",Anonymous:"Anoniem","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.",Cancel:"Annuleren",Comment:"Verstuur","Complete your profile":"Vervolledig jouw profiel",Delete:"Verwijderen","Deleted member":"Verwijderd lid",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",Hide:"Verbergen","Hide comment":"Verberg reactie","Jamie Larson":"Jan Jansen","Join the discussion":"Doe mee aan het gesprek","Just now":"Zojuist","Local resident":"Lokale bewoner","Member discussion":"Gesprek",Name:"Naam",Neurosurgeon:"Neurochirurg","One day ago":"Een dag geleden","One hour ago":"Een uur geleden","One min ago":"Een min geleden","One month ago":"Een maand geleden","One week ago":"Een week geleden","One year ago":"Een jaar geleden",Reply:"Beantwoorden","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 {{amount}} previous comments":"Toon {{amount}} vorige reacties","Show 1 more reply":"Toon nog 1 antwoord","Show 1 previous comment":"Toon 1 vorige reactie","Show comment":"Toon reactie","Sign in":"Inloggen","Sign up now":"Registreren","Start the conversation":"Begin het gesprek","This comment has been hidden.":"Deze reactie is verborgen.","This comment has been removed.":"Deze reactie is verwijderd.","Upgrade now":"Upgrade nu",Yesterday:"Gisteren","Your request will be sent to the owner of this site.":"Jouw melding zal worden verzonden naar de eigenaar van deze site."},j2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},P2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},I2={"{{amount}} characters left":"Pozostało {{amount}} znaków","{{amount}} comments":"{{amount}} komentarzy","{{amount}} days ago":"{{amount}} dni temu","{{amount}} hrs ago":"{{amount}} godzin temu","{{amount}} mins ago":"{{amount}} minut temu","{{amount}} months ago":"{{amount}} miesięcy temu","{{amount}} more":"{{amount}} więcej","{{amount}} seconds ago":"{{amount}} sekund temu","{{amount}} weeks ago":"{{amount}} tygodni temu","{{amount}} years ago":"{{amount}} lat temu","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ź","Already a member?":"Posiadasz już konto?",Anonymous:"Anonimowy","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 płatnej społeczności {{publication}}, by zacząć komentować.",Cancel:"Anuluj",Comment:"Skomentuj","Complete your profile":"Skompletuj Twój profil",Delete:"Usuń","Deleted member":"Usunięte konto",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":"","Head of Marketing at Acme, Inc":"Head of Marketing at Acme, Inc",Hide:"Ukryj","Hide comment":"Ukryj komentarz","Jamie Larson":"Jamie Larson","Join the discussion":"Dołącz do dyskusji","Just now":"Przed chwilą","Local resident":"","Member discussion":"Członek dyskusji",Name:"Imię",Neurosurgeon:"Neurochirurg","One day ago":"Dzień temu","One hour ago":"Godzinę temu","One min ago":"Minutę temu","One month ago":"Miesiąc temu","One week ago":"Tydzień temu","One year ago":"Rok temu",Reply:"Odpowiedz","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:"Pokza","Show {{amount}} more replies":"Pokaż {{amount}} kolejnych odpowiedzi","Show {{amount}} previous comments":"Pokaż {{amount}} poprzednich komentarzy","Show 1 more reply":"Pokaż następną odpowiedź","Show 1 previous comment":"Pokaż poprzedni komentarz","Show comment":"Pokaż komentarz","Sign in":"Zaloguj się","Sign up now":"Zarejestruj się","Start the conversation":"Rozpocznij dyskusję","This comment has been hidden.":"Komentarz został ukryty.","This comment has been removed.":"Komentarz został usunięty.","Upgrade now":"Ulepsz teraz",Yesterday:"Wczoraj","Your request will be sent to the owner of this site.":"Twoje zgłoszenie zostało przesłane do administratora strony."},L2={"{{amount}} characters left":"Faltam {{amount}} caracteres ","{{amount}} comments":"{{amount}} comentários","{{amount}} days ago":"{{amount}} dias atrás","{{amount}} hrs ago":"{{amount}} horas atrás","{{amount}} mins ago":"{{amount}} minutos atrás","{{amount}} months ago":"{{amount}} meses atrás","{{amount}} more":"mais","{{amount}} seconds ago":"{{amount}} segundos atrás","{{amount}} weeks ago":"{{amount}} semanas atrás","{{amount}} years ago":"{{amount}} anos atrás","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","Already a member?":"Já é membro?",Anonymous:"Anónimo","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. ",Cancel:"Cancelar",Comment:"Comentar","Complete your profile":"Complete o seu perfil",Delete:"Eliminar","Deleted member":"Membro eliminado",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",Hide:"Esconder","Hide comment":"Esconder comentário","Jamie Larson":"Jane Doe","Join the discussion":"Junte-se à discussão","Just now":"Agora","Local resident":"Residente local","Member discussion":"Discussão para membros",Name:"Nome",Neurosurgeon:"neurocirurgião","One day ago":"um dia atrás","One hour ago":"uma hora atrás","One min ago":"um minuto atrás","One month ago":"um mês atrás","One week ago":"uma semana atrás","One year ago":"um ano atrás",Reply:"Responder","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 {{amount}} previous comments":"Mostrar os {{amount}} comentários anteriores","Show 1 more reply":"Mostrar mais uma resposta","Show 1 previous comment":"Mostrar mais um comentário","Show comment":"Mostrar comentário","Sign in":"Registar","Sign up now":"Registar agora","Start the conversation":"Comece a conversa","This comment has been hidden.":"Este comentário foi ocultado","This comment has been removed.":"Este comentário foi removido","Upgrade now":"Atualize agora",Yesterday:"Ontem","Your request will be sent to the owner of this site.":"O seu pedido será enviado para o dono deste site."},z2={"{{amount}} characters left":"{{amount}} caracteres restantes","{{amount}} comments":"{{amount}} comentários","{{amount}} days ago":"{{amount}} dias atrás","{{amount}} hrs ago":"{{amount}} horas atrás","{{amount}} mins ago":"{{amount}} minutos atrás","{{amount}} months ago":"{{amount}} meses atrás","{{amount}} more":"{{amount}} mais","{{amount}} seconds ago":"{{amount}} segundos atrás","{{amount}} weeks ago":"{{amount}} semanas atrás","{{amount}} years ago":"{{amount}} anos atrás","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 expertise para promover uma discussão saudável.","Add reply":"Adicionar resposta","Already a member?":"Já é um membro?",Anonymous:"Anônimo","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.",Cancel:"Cancelar",Comment:"Comentário","Complete your profile":"Complete seu perfil",Delete:"Deletar","Deleted member":"Membro deletado",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",Hide:"Esconder","Hide comment":"Esconder comentário","Jamie Larson":"Jamie Larson","Join the discussion":"Participe da discussão","Just now":"Agora mesmo","Local resident":"Residente local","Member discussion":"Discussão entre membros",Name:"Nome",Neurosurgeon:"Neurocirurgião","One day ago":"Um dia atrás","One hour ago":"Uma hora atrás","One min ago":"Um minuto atrás","One month ago":"Um mês atrás","One week ago":"Uma semana atrás","One year ago":"Um ano atrás",Reply:"Responder","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:"Mostrar","Show {{amount}} more replies":"Mostrar mais {{amount}} respostas","Show {{amount}} previous comments":"Mostrar {{amount}} comentários anteriores","Show 1 more reply":"Mostrar 1 resposta adicional","Show 1 previous comment":"Mostrar 1 comentário anterior","Show comment":"Mostrar comentário","Sign in":"Entrar","Sign up now":"Inscreva-se agora","Start the conversation":"Iniciar a conversa","This comment has been hidden.":"Este comentário foi escondido.","This comment has been removed.":"Este comentário foi removido.","Upgrade now":"Atualize agora",Yesterday:"Ontem","Your request will be sent to the owner of this site.":"Sua solicitação será enviada ao proprietário deste site."},F2={"{{amount}} characters left":"{{amount}} caractere rămase","{{amount}} comments":"{{amount}} comentarii","{{amount}} days ago":"acum {{amount}} zile","{{amount}} hrs ago":"acum {{amount}} ore","{{amount}} mins ago":"acum {{amount}} minute","{{amount}} months ago":"acum {{amount}} luni","{{amount}} more":"încă {{amount}}","{{amount}} seconds ago":"acum {{amount}} secunde","{{amount}} weeks ago":"acum {{amount}} săptămâni","{{amount}} years ago":"acum {{amount}} ani","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","Already a member?":"Deja membru?",Anonymous:"Anonim","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.",Cancel:"Anulează",Comment:"Comentează","Complete your profile":"Completează-ți profilul",Delete:"Șterge","Deleted member":"Membru șters",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",Hide:"Ascunde","Hide comment":"Ascunde comentariul","Jamie Larson":"Jamie Larson","Join the discussion":"Alătură-te discuției","Just now":"Chiar acum","Local resident":"Rezident local","Member discussion":"Discuție membrii",Name:"Nume",Neurosurgeon:"Neurochirurg","One day ago":"Acum o zi","One hour ago":"Acum o oră","One min ago":"Acum un minut","One month ago":"Acum o lună","One week ago":"Acum o săptămână","One year ago":"Acum un an",Reply:"Răspunde","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 {{amount}} previous comments":"Arată {{amount}} comentarii anterioare","Show 1 more reply":"Arată încă un răspuns","Show 1 previous comment":"Arată un comentariu anterior","Show comment":"Arată comentariul","Sign in":"Autentificare","Sign up now":"Înregistrează-te acum","Start the conversation":"Începe conversația","This comment has been hidden.":"Acest comentariu a fost ascuns.","This comment has been removed.":"Acest comentariu a fost eliminat.","Upgrade now":"Actualizează acum",Yesterday:"Ieri","Your request will be sent to the owner of this site.":"Cererea dumneavoastră va fi trimisă proprietarului acestui site."},B2={"{{amount}} characters left":"{{amount}} символа(ов) осталось","{{amount}} comments":"{{amount}} комментария(ев)","{{amount}} days ago":"{{amount}} дня(ей) назад","{{amount}} hrs ago":"{{amount}} часа(ов) назад","{{amount}} mins ago":"{{amount}} минут(ы) назад","{{amount}} months ago":"{{amount}} месяца(ев) назад","{{amount}} more":"ещё {{amount}}","{{amount}} seconds ago":"{{amount}} секунд(ы) назад","{{amount}} weeks ago":"{{amount}} недель(и) назад","{{amount}} years ago":"{{amount}} года(лет) назад","1 comment":"1 комментарий","Add comment":"Добавить комментарий","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Дополните свой комментарий контекстом, добавив подробности о себе и своём опыте, чтобы обсуждение стало более интересным.","Add reply":"Добавить ответ","Already a member?":"Уже присоединились?",Anonymous:"Анонимный","Become a member of {{publication}} to start commenting.":"Присоединяйтесь к {{publication}} чтобы начать комментировать.","Become a paid member of {{publication}} to start commenting.":"Станьте платным участником {{publication}} чтобы начать комментировать.",Cancel:"Отмена",Comment:"Комментарий","Complete your profile":"Заполните свой профиль",Delete:"Удалить","Deleted member":"Удалённый участник",Discussion:"Обсуждение",Edit:"Редактировать","Edit this comment":"Редактировать этот комментарий",edited:"Отредактированно","Enter your name":"Введите ваше имя",Expertise:"Деятельность","Founder @ Acme Inc":"Основатель @ Корпорация «Акме»","Full-time parent":"Родитель, работающий полный рабочий день","Head of Marketing at Acme, Inc":"Руководитель отдела маркетинга в Корпорации «Акме»",Hide:"Скрыть","Hide comment":"Скрыть комментарий","Jamie Larson":"Павел Бид","Join the discussion":"Присоединиться к обсуждению","Just now":"Сейчас","Local resident":"Местный житель","Member discussion":"Обсуждение участников",Name:"Имя",Neurosurgeon:"Нейрохирург","One day ago":"День назад","One hour ago":"Час назад","One min ago":"Минуту назад","One month ago":"Месяц назад","One week ago":"Неделю назад","One year ago":"Год назад",Reply:"Ответить","Reply to comment":"Ответить на комментарий",Report:"Пожаловаться","Report comment":"Пожаловаться на комментарий","Report this comment?":"Пожаловаться на этот комментарий?",Save:"Сохранить",Sending:"Отправка",Sent:"Отправлено",Show:"Показать","Show {{amount}} more replies":"Показать ещё {{amount}} ответа(ов)","Show {{amount}} previous comments":"Показать ещё {{amount}} комментария(ев)","Show 1 more reply":"Показать ответ","Show 1 previous comment":"Показать предыдущий комментарий","Show comment":"Показать комментарий","Sign in":"Войти","Sign up now":"Зарегистрироваться","Start the conversation":"Начать обсуждение","This comment has been hidden.":"Этот комментарий скрыт","This comment has been removed.":"Этот комментарий был удалён","Upgrade now":"Обновить ",Yesterday:"Вчера","Your request will be sent to the owner of this site.":"Ваш запрос будет отправлен владельцу сайта."},H2={"{{amount}} characters left":"තව වචන {{amount}} යි.","{{amount}} comments":"අදහ​ස් {{amount}} යි.","{{amount}} days ago":"දින {{amount}} ට පෙ​ර","{{amount}} hrs ago":"පැය {{amount}} ට පෙ​ර","{{amount}} mins ago":"මිනිත්තු {{amount}} ට පෙ​ර","{{amount}} months ago":"මාස {{amount}} ට පෙ​ර","{{amount}} more":"","{{amount}} seconds ago":"තත්ත්පර {{amount}} ට පෙ​ර","{{amount}} weeks ago":"සති {{amount}} ට පෙ​ර","{{amount}} years ago":"අවුරුදු {{amount}} ට පෙ​ර","1 comment":"1 අදහසයි.","Add comment":"අදහස් එකතු කරන්​න","Add context to your comment, share your name and expertise to foster a healthy discussion.":"ඉතා හො​ඳ සාකච්ඡාවක් රැගෙ​න යාම සඳහා ඔබේ අදහසට අන්තර්ගත​ය එක් කර ඔබේ නම සහ විශේෂඥතාව බෙදා ගන්න","Add reply":"ප්‍රතිචාර එකතු කරන්​න","Already a member?":"දැනටමත් සාමාජිකයෙක්ද ?",Anonymous:"නිර්නාමික","Become a member of {{publication}} to start commenting.":"අදහස් දැක්වීම ආරම්භ කිරීමට {{publication}} හි සාමාජිකයෙකු වන්න","Become a paid member of {{publication}} to start commenting.":"අදහස් දැක්වීම ආරම්භ කිරීමට {{publication}} හි ගෙවීම් කරන ල​ද සාමාජිකයෙකු වන්න",Cancel:"අවලංගු කරන්​න​",Comment:"අදහ​ස","Complete your profile":"ඔබගේ ගිණුම සම්පූර්ණ කරන්​න",Delete:"Delete කරන්​න","Deleted member":"සාමාජිකයාව delete කරන්​න",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 හි අලෙවි ප්‍රධානී",Hide:"සඟවන්න","Hide comment":"අදහස සඟවන්න","Jamie Larson":"ජේමි ලාර්සන්","Join the discussion":"සාකච්ඡාවට එක්වන්න","Just now":"මේ දැ​න්","Local resident":"දේශීය පදිංචි","Member discussion":"සාමාජික සාකච්ඡාව",Name:"න​ම",Neurosurgeon:"ස්නායු ශ​ල්‍ය වෛ​ද්‍ය","One day ago":"දිනකට පෙ​ර","One hour ago":"පැයකට පෙ​ර","One min ago":"මිනිත්තුවකට පෙ​ර","One month ago":"මසකට පෙ​ර","One week ago":"සතියකට පෙ​ර","One year ago":"අවුරුද්දකට පෙ​ර",Reply:"ප්‍රතිචාර දක්වන්​න","Reply to comment":"අදහසට ‍රතිචාර දක්වන්​න",Report:"වාර්තා කරන්​න","Report comment":"අදහසට වාර්තා කරන්​න","Report this comment?":"මෙම අදහසට වාර්තා කරන්නෙහිද ?",Save:"සුරකින්​න",Sending:"යවමි​න්",Sent:"යැව්වා",Show:"පෙන්වන්​න","Show {{amount}} more replies":"තවත් පිළිතුරු {{amount}} පෙන්වන්න","Show {{amount}} previous comments":"පෙර අදහස් {{amount}} පෙන්වන්න","Show 1 more reply":"තවත් පිළිතුරු 1ක් පෙන්වන්න","Show 1 previous comment":"පෙර අදහස් 1ක් පෙන්වන්න","Show comment":"අදහස පෙන්වන්න","Sign in":"Sign in වෙන්​න","Sign up now":"දැන්ම Sign up වෙන්​න","Start the conversation":"සංවාදය ආරම්භ කරන්න","This comment has been hidden.":"මෙම අදහස සඟවා ඇත.","This comment has been removed.":"මෙම අදහස ඉවත් කර ඇත.","Upgrade now":"දැන් upgrade කරන්න",Yesterday:"ඊ​යෙ","Your request will be sent to the owner of this site.":"ඔබගේ ඉල්ලීම මෙම අඩවියේ හිමිකරු වෙත යවනු ලැබේ."},V2={"{{amount}} characters left":"Zostáva {{amount}} znakov","{{amount}} comments":"{{amount}} komentárov","{{amount}} days ago":"Pred {{amount}} dňami","{{amount}} hrs ago":"Pred {{amount}} hodinami","{{amount}} mins ago":"Pred {{amount}} minútami","{{amount}} months ago":"Pred {{amount}} mesiacmi","{{amount}} more":"","{{amount}} seconds ago":"Pred {{amount}} sekundami","{{amount}} weeks ago":"Pred {{amount}} týždňami","{{amount}} years ago":"Pred {{amount}} rokmi","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áško komentára, zdielajte vaše meno, a odbornosť pre podporu zdravej diskusie.","Add reply":"Pridať odpoveď","Already a member?":"Už ste členom?",Anonymous:"Anonymne","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ť",Cancel:"Zrušiť",Comment:"Komentár","Complete your profile":"Dokončite váš profil",Delete:"Vymazať","Deleted member":"Vymazaný člen",Discussion:"Diskusia",Edit:"Upraviť","Edit this comment":"Upraviť tento 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",Hide:"Skryť","Hide comment":"Skryť komentár","Jamie Larson":"Jamie Larson","Join the discussion":"Zapojiť sa do diskusie","Just now":"Teraz","Local resident":"Miestny obyvateľ","Member discussion":"",Name:"Meno",Neurosurgeon:"Neurogirurg","One day ago":"Včera","One hour ago":"Pred hodinou","One min ago":"Pred minútou","One month ago":"Pred mesiacom","One week ago":"Pred týždňom","One year ago":"Pred rokom",Reply:"Odpovedať","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 {{amount}} previous comments":"Zobraziť {{amount}} predchádzajúcich komentárov","Show 1 more reply":"Zobraziť 1 ďalšiu odpoveď","Show 1 previous comment":"Zobraziť 1 predchádzajúci komentár","Show comment":"Zobraziť komentár","Sign in":"Prihlásiť","Sign up now":"Registrovať sa","Start the conversation":"Začať konverzáciu","This comment has been hidden.":"Tento komentár bol skrytý.","This comment has been removed.":"Tento komentár bol vymazaný.","Upgrade now":"Upgradovať teraz",Yesterday:"Včera","Your request will be sent to the owner of this site.":"Vaša požiadavka bola odoslaná vlastníkovi stránky."},U2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},J2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},_2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},Y2={"{{amount}} characters left":"Преостало још {{amount}} карактера","{{amount}} comments":"{{amount}} коментара","{{amount}} days ago":"пре {{amount}} дана","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"пре {{amount}} месеци","{{amount}} more":"још {{amount}}","{{amount}} seconds ago":"пре {{amount}} секунди","{{amount}} weeks ago":"пре {{amount}} недеља","{{amount}} years ago":"пре {{amount}} година","1 comment":"1 коментар","Add comment":"Додајте коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додајте контекст свом коментару, поделите своје име и експертизу како бисте подстакли здраву дискусију.","Add reply":"Додајте одговор","Already a member?":"Већ сте члан?",Anonymous:"Анонимно","Become a member of {{publication}} to start commenting.":"Постаните члан {{publication}} да бисте почели са коментарисањем.","Become a paid member of {{publication}} to start commenting.":"Постаните плаћени члан {{publication}} да бисте почели са коментарисањем.",Cancel:"Откажи",Comment:"Коментар","Complete your profile":"Попуните свој профил",Delete:"Избриши","Deleted member":"Обрисан члан",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",Hide:"Сакриј","Hide comment":"Сакриј коментар","Jamie Larson":"Џејми Ларсон","Join the discussion":"Придружите се дискусији","Just now":"Управо сада","Local resident":"Мештанин","Member discussion":"Дискусија чланова",Name:"Име",Neurosurgeon:"Неурохирург","One day ago":"Пре један дан","One hour ago":"Пре један сат","One min ago":"","One month ago":"Пре један месец","One week ago":"Пре једну недељу","One year ago":"Пре једну годину",Reply:"Одговори","Reply to comment":"Одговорите на коментар",Report:"Пријави","Report comment":"Пријави коментар","Report this comment?":"Пријавити овај коментар?",Save:"Сачувај",Sending:"Слање",Sent:"Послато",Show:"Прикажи","Show {{amount}} more replies":"Прикажи још {{amount}} одговора","Show {{amount}} previous comments":"Прикажи претходна {{amount}} коментара","Show 1 more reply":"Прикажи још 1 одговор","Show 1 previous comment":"Прикажи 1 претходни коментар","Show comment":"Прикажи коментар","Sign in":"Пријавите се","Sign up now":"Пријавите се сада","Start the conversation":"Почните разговор","This comment has been hidden.":"Овај коментар је сакривен.","This comment has been removed.":"Овај коментар је уклоњен.","Upgrade now":"Надоградите сада",Yesterday:"Јуче","Your request will be sent to the owner of this site.":"Ваш захтев ће бити послат власнику овог сајта."},K2={"{{amount}} characters left":"{{amount}} tecken kvar","{{amount}} comments":"{{amount}} kommentarer","{{amount}} days ago":"{{amount}} dagar sedan","{{amount}} hrs ago":"{{amount}} timmar sedan","{{amount}} mins ago":"{{amount}} minuter sedan","{{amount}} months ago":"{{amount}} månader sedan","{{amount}} more":"{{amount}} fler","{{amount}} seconds ago":"{{amount}} sekunder sedan","{{amount}} weeks ago":"{{amount}} veckor sedan","{{amount}} years ago":"{{amount}} år sedan","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","Already a member?":"Redan medlem?",Anonymous:"Anonym","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 ",Cancel:"Avbryt",Comment:"Kommentar","Complete your profile":"Fyll i hela din profil",Delete:"Ta bort","Deleted member":"Borttagen medlem",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",Hide:"Dölj","Hide comment":"Dölj kommentar","Jamie Larson":"Emma Jansson","Join the discussion":"Var med i diskussionen","Just now":"Nu precis","Local resident":"Lokalboende","Member discussion":"Medlemsdiskussion",Name:"Namn",Neurosurgeon:"Neurokirurg","One day ago":"En dag sedan","One hour ago":"En timme sedan","One min ago":"En minut sedan","One month ago":"En månad sedan","One week ago":"En vecka sedan","One year ago":"Ett år sedan",Reply:"Svar","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 {{amount}} previous comments":"Visa {{amount}} tidigare kommentarer","Show 1 more reply":"Visa 1 kommentar till","Show 1 previous comment":"Visa 1 tidigare kommentar","Show comment":"Visa kommentar","Sign in":"Logga in","Sign up now":"Registrera dig nu","Start the conversation":"Inled konversationen","This comment has been hidden.":"Denna kommentar har dolts","This comment has been removed.":"Denna kommentar är borttagen","Upgrade now":"Uppgradera nu",Yesterday:"I går","Your request will be sent to the owner of this site.":"Din anmälan skickas till ansvarig för webbplatsen"},W2={"{{amount}} characters left":"คงเหลือ {{amount}} ตัวอักษร","{{amount}} comments":"{{amount}} ความคิดเห็น","{{amount}} days ago":"{{amount}} วันที่แล้ว","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"{{amount}} เดือนที่แล้ว","{{amount}} more":"อีก {{amount}}","{{amount}} seconds ago":"{{amount}} วินาทีที่แล้ว","{{amount}} weeks ago":"{{amount}} สัปดาห์ที่แล้ว","{{amount}} years ago":"{{amount}} ปีที่แล้ว","1 comment":"1 ความคิดเห็น","Add comment":"แสดงความคิดเห็น","Add context to your comment, share your name and expertise to foster a healthy discussion.":"เพิ่มข้อมูลเสริมในความคิดเห็นของคุณ แชร์ชื่อและความเชี่ยวชาญเพื่อสนับสนุนการพูดคุยที่ดี","Add reply":"ตอบกลับ","Already a member?":"เป็นสมาชิกอยู่แล้ว?",Anonymous:"ไม่ระบุชื่อ","Become a member of {{publication}} to start commenting.":"เป็นสมาชิกของ {{publication}} เพื่อเริ่มแสดงความคิดเห็น","Become a paid member of {{publication}} to start commenting.":"เป็นสมาชิกแบบชำระเงินของ {{publication}} เพื่อเริ่มแสดงความคิดเห็น",Cancel:"ยกเลิก",Comment:"ความคิดเห็น","Complete your profile":"กรอกโปรไฟล์ของคุณให้สมบูรณ์",Delete:"ลบ","Deleted member":"ผู้ใช้ที่ถูกลบ",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",Hide:"ซ่อน","Hide comment":"ซ่อนข้อความ","Jamie Larson":"กนกพัฒน์ สัณห์ฤทัย","Join the discussion":"เข้าร่วมการสนทนา","Just now":"ตอนนี้","Local resident":"ผู้อยู่อาศัยในท้องถิ่น","Member discussion":"การสนทนาของสมาชิก",Name:"ชื่อ",Neurosurgeon:"ศัลยแพทย์ระบบประสาท","One day ago":"1 วันที่แล้ว","One hour ago":"1 ชั่วโมงที่แล้ว","One min ago":"","One month ago":"1 เดือนที่แล้ว","One week ago":"1 สัปดาห์ที่แล้ว","One year ago":"1 ปีที่แล้ว",Reply:"ตอบกลับ","Reply to comment":"ตอบกลับความคิดเห็น",Report:"รายงาน","Report comment":"รายงานความคิดเห็น","Report this comment?":"รายงานความคิดเห็นนี้?",Save:"บันทึก",Sending:"กำลังส่ง",Sent:"ส่งแล้ว",Show:"แสดง","Show {{amount}} more replies":"แสดง {{amount}} การตอบกลับเพิ่มเติม","Show {{amount}} previous comments":"แสดง {{amount}} ความคิดเห็นก่อนหน้า","Show 1 more reply":"แสดงอีก 1 การตอบกลับ","Show 1 previous comment":"แสดง 1 ความคิดเห็น","Show comment":"ดูความคิดเห็น","Sign in":"ลงชื่อเข้าใช้","Sign up now":"สมัครใช้งานตอนนี้เลย","Start the conversation":"เริ่มการสนทนา","This comment has been hidden.":"ความคิดเห็นนี้ถูกซ่อน","This comment has been removed.":"ความคิดเห็นนี้ถูกลบ","Upgrade now":"อัพเกรดตอนนี้เลย",Yesterday:"เมื่อวาน","Your request will be sent to the owner of this site.":"คำขอของคุณจะถูกส่งไปยังผู้ดูแลเว็บไซต์"},q2={"{{amount}} characters left":"{{amount}} karakter kaldı","{{amount}} comments":"{{amount}} yorum","{{amount}} days ago":"{{amount}} gün önce","{{amount}} hrs ago":"{{amount}} saat önce","{{amount}} mins ago":"{{amount}} dakika önce","{{amount}} months ago":"{{amount}} ay önce","{{amount}} more":"Daha fazla {{amount}}","{{amount}} seconds ago":"{{amount}} saniye önce","{{amount}} weeks ago":"{{amount}} hafta önce","{{amount}} years ago":"{{amount}} yıl önce","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","Already a member?":"Zaten üye misiniz?",Anonymous:"Anonim","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.",Cancel:"İptal et",Comment:"Yorum ekle","Complete your profile":"Profilinizi tamamlayın",Delete:"Sil","Deleted member":"Silinen üye",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ü",Hide:"Gizle","Hide comment":"Yorumu gizle","Jamie Larson":"Ad Soyad","Join the discussion":"Tartışmaya katıl","Just now":"Şu anda","Local resident":"Yerel sakini","Member discussion":"Üye tartışması",Name:"Ad",Neurosurgeon:"Beyin cerrahı","One day ago":"Bir gün önce","One hour ago":"Bir saat önce","One min ago":"Bir dakika önce","One month ago":"Bir ay önce","One week ago":"Bir hafta önce","One year ago":"Bir yıl önce",Reply:"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 {{amount}} previous comments":"{{amount}} önceki yorumu göster","Show 1 more reply":"1 cevap daha göster","Show 1 previous comment":"1 önceki yorumu göster","Show comment":"Yorumu göster","Sign in":"Giriş yap","Sign up now":"Şimdi kayıt ol","Start the conversation":"Bu konu hakkında düşüncelerini paylaş","This comment has been hidden.":"Bu yorum gizlendi.","This comment has been removed.":"Bu yorum kaldırıldı.","Upgrade now":"Şimdi yükselt",Yesterday:"Dün","Your request will be sent to the owner of this site.":"Talebiniz bu sitenin sahibine gönderilecektir."},G2={"{{amount}} characters left":"{{amount}} символів залишилось","{{amount}} comments":"{{amount}} коментарів","{{amount}} days ago":"{{amount}} днів тому","{{amount}} hrs ago":"{{amount}} годин тому","{{amount}} mins ago":"{{amount}} хвилин тому","{{amount}} months ago":"{{amount}} місяців тому","{{amount}} more":"ще {{amount}}","{{amount}} seconds ago":"{{amount}} секунд тому","{{amount}} weeks ago":"{{amount}} тижнів тому","{{amount}} years ago":"{{amount}} років тому","1 comment":"1 коментар","Add comment":"Додати коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додайте контекст до свого коментаря, поділіться своїм іменем і досвідом, щоб сприяти здоровій дискусії.","Add reply":"Додати відповідь","Already a member?":"Ви є учасником?",Anonymous:"Анонім","Become a member of {{publication}} to start commenting.":"Станьте учасником {{publication}} щоб почати коментувати.","Become a paid member of {{publication}} to start commenting.":"Станьте платним учасником {{publication}} щоб почати коментувати.",Cancel:"Відмінити",Comment:"Коментувати","Complete your profile":"Заповніть свій профіль",Delete:"Видалити","Deleted member":"Видалений учасник",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",Hide:"Сховати","Hide comment":"Сховати коментар","Jamie Larson":"Ваше імʼя","Join the discussion":"Долучитися до обговорення","Just now":"Прямо зараз","Local resident":"Місцевий експерт","Member discussion":"Обговорення учасників",Name:"Імʼя",Neurosurgeon:"Нейрохірург","One day ago":"Один день тому","One hour ago":"Одну годину тому","One min ago":"Одну хвилину тому","One month ago":"Один місяць тому","One week ago":"Один тиждень тому","One year ago":"Один рік тому",Reply:"Відповісти","Reply to comment":"Відповісти на коментар",Report:"Поскаржитися","Report comment":"Поскаржитися на коментар","Report this comment?":"Поскаржитися на цей коментар?",Save:"Зберегти",Sending:"Відправка",Sent:"Відправлено",Show:"Показати","Show {{amount}} more replies":"Показати ще {{amount}} відповідей","Show {{amount}} previous comments":"Показати {{amount}} попередніх коментарів","Show 1 more reply":"Показати ще одну відповідь","Show 1 previous comment":"Показати один попередній коментар","Show comment":"Показати коментар","Sign in":"Увійти","Sign up now":"Зареєструватись зараз","Start the conversation":"Почніть розмову","This comment has been hidden.":"Цей коментар було приховано.","This comment has been removed.":"Цей коментар було видалено.","Upgrade now":"Оновити зараз",Yesterday:"Вчора","Your request will be sent to the owner of this site.":"Ваш запит буде надіслано власнику цього сайту."},Q2={"{{amount}} characters left":"{{amount}} حروف باقی ہیں","{{amount}} comments":"{{amount}} تبادلے","{{amount}} days ago":"{{amount}} دن پہلے","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"{{amount}} مہینے پہلے","{{amount}} more":"","{{amount}} seconds ago":"{{amount}} سیکنڈ پہلے","{{amount}} weeks ago":"{{amount}} ہفتے پہلے","{{amount}} years ago":"{{amount}} سال پہلے","1 comment":"1 تبادلہ","Add comment":"تبادلہ شامل کریں","Add context to your comment, share your name and expertise to foster a healthy discussion.":"اپنے تبادلے میں سیاق و سباق شامل کریں، اچھی گفتگو کو بڑھانے کے لئے اپنا نام اور ماہریت شیئر کریں۔","Add reply":"جواب شامل کریں","Already a member?":"پہلے ہی رکن ہیں؟",Anonymous:"ناشناس","Become a member of {{publication}} to start commenting.":"تبادلہ شروع کرنے کے لئے {{publication}} کا رکن بنیں۔","Become a paid member of {{publication}} to start commenting.":"تبادلہ شروع کرنے کے لئے {{publication}} کا ادائیگی رکن بنیں۔",Cancel:"منسوخ کریں",Comment:"تبادلہ","Complete your profile":"اپنا پروفائل مکمل کریں",Delete:"حذف کریں","Deleted member":"حذف شدہ رکن",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 کے مارکیٹنگ کا سربراہ",Hide:"چھپائیں","Hide comment":"تبادلہ چھپائیں","Jamie Larson":"جیمی لارسن","Join the discussion":"تبادلے میں شامل ہوں","Just now":"ابھی","Local resident":"مقامی رہائشی","Member discussion":"رکن کا تبادلہ",Name:"نام",Neurosurgeon:"نیوروسرجن","One day ago":"ایک دن پہلے","One hour ago":"ایک گھنٹہ پہلے","One min ago":"","One month ago":"ایک مہینہ پہلے","One week ago":"ایک ہفتہ پہلے","One year ago":"ایک سال پہلے",Reply:"جواب","Reply to comment":"تبادلے کا جواب دیں",Report:"رپورٹ","Report comment":"تبادلے کی رپورٹ","Report this comment?":"کیا آپ اس تبادلے کو رپورٹ کرنا چاہتے ہیں؟",Save:"محفوظ کریں",Sending:"بھیج رہا ہے",Sent:"بھیجا گیا",Show:"دکھائیں","Show {{amount}} more replies":"{{amount}} مزید جوابات دکھائیں","Show {{amount}} previous comments":"{{amount}} پچھلے تبادلات دکھائیں","Show 1 more reply":"1 مزید جواب دکھائیں","Show 1 previous comment":"1 پچھلا تبادلہ دکھائیں","Show comment":"تبادلہ دکھائیں","Sign in":"سائن ان کریں","Sign up now":"ابھی رجسٹر ہوں","Start the conversation":"بات چیت شروع کریں","This comment has been hidden.":"یہ تبادلہ چھپا گیا ہے۔","This comment has been removed.":"یہ تبادلہ ہٹا دیا گیا ہے۔","Upgrade now":"اب اپ گریڈ کریں",Yesterday:"کل","Your request will be sent to the owner of this site.":"آپ کا درخواست اس سائٹ کے مالک کو بھیجا جائے گا۔"},Z2={"{{amount}} characters left":"","{{amount}} comments":"","{{amount}} days ago":"","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"","{{amount}} more":"","{{amount}} seconds ago":"","{{amount}} weeks ago":"","{{amount}} years ago":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Already a member?":"",Anonymous:"","Become a member of {{publication}} to start commenting.":"","Become a paid member of {{publication}} to start commenting.":"",Cancel:"",Comment:"","Complete your profile":"",Delete:"","Deleted member":"",Discussion:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"",Hide:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"","One day ago":"","One hour ago":"","One min ago":"","One month ago":"","One week ago":"","One year ago":"",Reply:"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {{amount}} more replies":"","Show {{amount}} previous comments":"","Show 1 more reply":"","Show 1 previous comment":"","Show comment":"","Sign in":"","Sign up now":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},X2={"{{amount}} characters left":"{{amount}} ký tự còn lại","{{amount}} comments":"{{amount}} bình luận","{{amount}} days ago":"{{amount}} ngày trước","{{amount}} hrs ago":"{{amount}} giờ trước","{{amount}} mins ago":"{{amount}} phút trước","{{amount}} months ago":"{{amount}} tháng trước","{{amount}} more":"{{amount}} nữa","{{amount}} seconds ago":"{{amount}} giây trước","{{amount}} weeks ago":"{{amount}} tuần trước","{{amount}} years ago":"{{amount}} năm trước","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","Already a member?":"Đã là thành viên?",Anonymous:"Ẩn danh","Become a member of {{publication}} to start commenting.":"Trở thành thành viên của {{publication}} để bắt đầu 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}} để bắt đầu bình luận.",Cancel:"Hủy",Comment:"Bình luận","Complete your profile":"Hoàn tất hồ sơ của bạn",Delete:"Xóa","Deleted member":"Thành viên đã 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",Hide:"Ẩn","Hide comment":"Ẩn bình luận","Jamie Larson":"Jamie Larson","Join the discussion":"Tham gia thảo luận","Just now":"Vừa xong","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","One day ago":"Một ngày trước","One hour ago":"Một giờ trước","One min ago":"Một phút trước","One month ago":"Một tháng trước","One week ago":"Một tuần trước","One year ago":"Một năm trước",Reply:"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 {{amount}} trả lời khác","Show {{amount}} previous comments":"Đọc {{amount}} bình luận trước","Show 1 more reply":"Xem 1 trả lời","Show 1 previous comment":"Đọc 1 bình luận trước","Show comment":"Đọc bình luận","Sign in":"Đăng nhập","Sign up now":"Đăng ký ngay","Start the conversation":"Bắt đầu cuộc trò chuyện","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",Yesterday:"Hôm qua","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."},eN={"{{amount}} characters left":"还剩{{amount}}字","{{amount}} comments":"{{amount}}条评论","{{amount}} days ago":"{{amount}}天前","{{amount}} hrs ago":"{{amount}}小时前","{{amount}} mins ago":"{{amount}}分钟前","{{amount}} months ago":"{{amount}}个月前","{{amount}} more":"","{{amount}} seconds ago":"{{amount}}秒前","{{amount}} weeks ago":"{{amount}}周前","{{amount}} years ago":"{{amount}}年前","1 comment":"一条评论","Add comment":"添加评论","Add context to your comment, share your name and expertise to foster a healthy discussion.":"为您的评论补充上下文信息、说明您的称呼与专业背景均有助于营造健康的讨论氛围。","Add reply":"添加回复","Already a member?":"已经是会员?",Anonymous:"匿名","Become a member of {{publication}} to start commenting.":"成为{{publication}}的会员以开始评论。","Become a paid member of {{publication}} to start commenting.":"成为{{publication}}的付费会员以开始评论。",Cancel:"取消",Comment:"评论","Complete your profile":"完善您的注册信息",Delete:"删除","Deleted member":"删除会员",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市场部负责人",Hide:"隐藏","Hide comment":"隐藏评论","Jamie Larson":"Jamie Larson","Join the discussion":"加入讨论","Just now":"刚刚","Local resident":"本地居民","Member discussion":"会员讨论",Name:"称呼",Neurosurgeon:"神经外科医生","One day ago":"一天前","One hour ago":"一小时前","One min ago":"一分钟前","One month ago":"一个月前","One week ago":"一周前","One year ago":"一年前",Reply:"回复","Reply to comment":"回复评论",Report:"举报","Report comment":"举报评论","Report this comment?":"举报此评论?",Save:"保存",Sending:"正在发送",Sent:"已发送",Show:"显示","Show {{amount}} more replies":"显示后续{{amount}}条评论","Show {{amount}} previous comments":"显示先前{{amount}}条评论","Show 1 more reply":"显示下一条评论","Show 1 previous comment":"显示前一条评论","Show comment":"显示评论","Sign in":"登录","Sign up now":"立刻注册","Start the conversation":"开始对话","This comment has been hidden.":"该条评论已被隐藏。","This comment has been removed.":"该条评论已被移除。","Upgrade now":"立刻升级",Yesterday:"昨天","Your request will be sent to the owner of this site.":"您的请求将被发送给站点所有者。"},tN={"{{amount}} characters left":"還剩 {{amount}} 個字","{{amount}} comments":"{{amount}} 則留言","{{amount}} days ago":"{{amount}} 天前","{{amount}} hrs ago":"{{amount}} 小時前","{{amount}} mins ago":"{{amount}} 分鐘前","{{amount}} months ago":"{{amount}} 個月前","{{amount}} more":"還剩 {{amount}} 則留言","{{amount}} seconds ago":"{{amount}} 秒前","{{amount}} weeks ago":"{{amount}} 周前","{{amount}} years ago":"{{amount}} 年前","1 comment":"一則留言","Add comment":"留言","Add context to your comment, share your name and expertise to foster a healthy discussion.":"為您的留言補充情境、說明您的稱呼與專業背景均有助於健康的討論氛圍。","Add reply":"回覆","Already a member?":"已經是會員?",Anonymous:"匿名","Become a member of {{publication}} to start commenting.":"成為{{publication}}的會員以開始留言。","Become a paid member of {{publication}} to start commenting.":"成為{{publication}}的付費會員以開始留言。",Cancel:"取消",Comment:"留言","Complete your profile":"完善您的註冊資訊",Delete:"刪除","Deleted member":"刪除會員",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市場部負責人",Hide:"隱藏","Hide comment":"隱藏留言","Jamie Larson":"Jamie Larson","Join the discussion":"加入討論","Just now":"剛剛","Local resident":"本地居民","Member discussion":"會員討論",Name:"稱呼",Neurosurgeon:"神經外科醫生","One day ago":"一天前","One hour ago":"一小時前","One min ago":"一分鐘前","One month ago":"一個月前","One week ago":"一周前","One year ago":"一年前",Reply:"回覆","Reply to comment":"回覆留言",Report:"舉報","Report comment":"舉報留言","Report this comment?":"舉報此留言?",Save:"儲存",Sending:"正在發送",Sent:"已發送",Show:"顯示","Show {{amount}} more replies":"顯示後續 {{amount}} 則留言","Show {{amount}} previous comments":"顯示先前 {{amount}} 則留言","Show 1 more reply":"顯示下一則留言","Show 1 previous comment":"顯示前一則留言","Show comment":"顯示留言","Sign in":"登錄","Sign up now":"立即註冊","Start the conversation":"開始對話","This comment has been hidden.":"該則留言已被隱藏。","This comment has been removed.":"該則留言已被移除。","Upgrade now":"立即升級",Yesterday:"昨天","Your request will be sent to the owner of this site.":"您的請求將被發送給所有者。"},nN={"{{amount}} characters left":"{{amount}} herufi zimebaki","{{amount}} comments":"{{amount}} maoni","{{amount}} days ago":"siku {{amount}} zilizopita","{{amount}} hrs ago":"","{{amount}} mins ago":"","{{amount}} months ago":"miezi {{amount}} iliyopita","{{amount}} more":"{{amount}} zaidi","{{amount}} seconds ago":"sekunde {{amount}} zilizopita","{{amount}} weeks ago":"wiki {{amount}} zilizopita","{{amount}} years ago":"miaka {{amount}} iliyopita","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","Already a member?":"Tayari ni mwanachama?",Anonymous:"Asiyetambulika","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.",Cancel:"Ghairi",Comment:"Maoni","Complete your profile":"Kamilisha wasifu wako",Delete:"Futa","Deleted member":"Mwanachama aliyefutwa",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",Hide:"Ficha","Hide comment":"Ficha maoni","Jamie Larson":"Jamie Larson","Join the discussion":"Jiunge na mjadala","Just now":"Hivi sasa","Local resident":"Mkazi wa eneo","Member discussion":"Mjadala wa wanachama",Name:"Jina",Neurosurgeon:"Daktari wa ubongo","One day ago":"Siku moja iliyopita","One hour ago":"Saa moja iliyopita","One min ago":"","One month ago":"Mwezi mmoja uliopita","One week ago":"Wiki moja iliyopita","One year ago":"Mwaka mmoja uliopita",Reply:"Jibu","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 {{amount}} previous comments":"Onyesha maoni {{amount}} ya awali","Show 1 more reply":"Onyesha jibu 1 zaidi","Show 1 previous comment":"Onyesha maoni 1 ya awali","Show comment":"Onyesha maoni","Sign in":"Ingia","Sign up now":"Jisajili sasa","Start the conversation":"Anzisha mazungumzo","This comment has been hidden.":"Maoni haya yamefichwa.","This comment has been removed.":"Maoni haya yameondolewa.","Upgrade now":"Boresha sasa",Yesterday:"Jana","Your request will be sent to the owner of this site.":"Ombi lako litatumwa kwa mmiliki wa tovuti hii."},oN={"{{amount}} characters left":"{{amount}} எழுத்துக்கள் எஞ்சியுள்ளன","{{amount}} comments":"{{amount}} கருத்துக்கள்","{{amount}} days ago":"{{amount}} நாட்களுக்கு முன்பு","{{amount}} hrs ago":"{{amount}} மணி நேரத்திற்கு முன்பு","{{amount}} mins ago":"{{amount}} நிமிடங்களுக்கு முன்பு","{{amount}} months ago":"{{amount}} மாதங்களுக்கு முன்பு","{{amount}} more":"{{amount}} மேலும்","{{amount}} seconds ago":"{{amount}} வினாடிகளுக்கு முன்பு","{{amount}} weeks ago":"{{amount}} வாரங்களுக்கு முன்பு","{{amount}} years ago":"{{amount}} ஆண்டுகளுக்கு முன்பு","1 comment":"1 கருத்து","Add comment":"கருத்தைச் சேர்க்கவும்","Add context to your comment, share your name and expertise to foster a healthy discussion.":"உங்கள் கருத்துக்கு சூழலைச் சேர்க்கவும், ஆரோக்கியமான விவாதத்தை வளர்க்க உங்கள் பெயரையும் நிபுணத்துவத்தையும் பகிர்ந்து கொள்ளுங்கள்.","Add reply":"பதில் சேர்க்கவும்","Already a member?":"ஏற்கனவே உறுப்பினரா?",Anonymous:"அடையாளம் தெரியாத","Become a member of {{publication}} to start commenting.":"கருத்துத் தெரிவிக்க {{publication}} இல் உறுப்பினராகுங்கள்.","Become a paid member of {{publication}} to start commenting.":"கருத்துத் தெரிவிக்க {{publication}} இல் கட்டண உறுப்பினராகுங்கள்.",Cancel:"ரத்து செய்",Comment:"கருத்து","Complete your profile":"உங்கள் சுயவிவரத்தை பூர்த்தி செய்யவும்",Delete:"நீக்கவும்","Deleted member":"நீக்கப்பட்ட உறுப்பினர்",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 நிறுவனத்தின் சந்தைப்படுத்தல் தலைவர்",Hide:"மறைக்கவும்","Hide comment":"கருத்தை மறை","Jamie Larson":"ஜேமி லார்சன்","Join the discussion":"கலந்துரையாடலில் சேரவும்","Just now":"சற்றுமுன்னர்தான்","Local resident":"உள்ளூர்வாசி","Member discussion":"உறுப்பினர் கருத்து",Name:"பெயர்",Neurosurgeon:"நரம்பியல் அறுவை சிகிச்சை நிபுணர்","One day ago":"ஒரு நாள் முன்பு","One hour ago":"ஒரு மணி முன்பு","One min ago":"ஒரு நிமிடம் முன்பு","One month ago":"ஒரு மாதம் முன்பு","One week ago":"ஒரு வார முன்பு","One year ago":"ஒரு வருடம் முன்பு",Reply:"பதிலளிக்கவும்","Reply to comment":"கருத்துக்கு பதிலளிக்கவும்",Report:"புகாரளி","Report comment":"கருத்தைப் புகாரளி","Report this comment?":"இந்தக் கருத்தைப் புகாரளிக்கவா?",Save:"சேமிக்க",Sending:"அனுப்புகிறது",Sent:"அனுப்பப்பட்டது",Show:"காட்டு","Show {{amount}} more replies":"முந்தைய {{amount}} மேலும் பதில்கள்க் காட்டு","Show {{amount}} previous comments":"முந்தைய {{amount}} கருத்துகளைக் காட்டு","Show 1 more reply":"மேலும் 1 பதிலைக் காட்டு","Show 1 previous comment":"முந்தைய 1 கருத்தைக் காட்டு","Show comment":"கருத்தைக் காட்டு","Sign in":"உள்நுழைக","Sign up now":"இப்பொழுதே பதிவு செய்யுங்கள்","Start the conversation":"உரையாடலைத் தொடங்குங்கள்","This comment has been hidden.":"இந்தக் கருத்து மறைக்கப்பட்டது.","This comment has been removed.":"இந்தக் கருத்து நீக்கப்பட்டது.","Upgrade now":"இப்போதே மேம்படுத்தவும்",Yesterday:"நேற்று","Your request will be sent to the owner of this site.":"உங்கள் கோரிக்கை இந்த தளத்தின் உரிமையாளருக்கு அனுப்பப்படும்."};var e1;function t1(){return e1||(e1={"/ghost/i18n/locales/af/comments.json":function(){return t2},"/ghost/i18n/locales/ar/comments.json":function(){return n2},"/ghost/i18n/locales/bg/comments.json":function(){return o2},"/ghost/i18n/locales/bn/comments.json":function(){return r2},"/ghost/i18n/locales/bs/comments.json":function(){return i2},"/ghost/i18n/locales/ca/comments.json":function(){return s2},"/ghost/i18n/locales/cs/comments.json":function(){return a2},"/ghost/i18n/locales/da/comments.json":function(){return l2},"/ghost/i18n/locales/de/comments.json":function(){return u2},"/ghost/i18n/locales/de-CH/comments.json":function(){return c2},"/ghost/i18n/locales/el/comments.json":function(){return d2},"/ghost/i18n/locales/en/comments.json":function(){return m2},"/ghost/i18n/locales/eo/comments.json":function(){return f2},"/ghost/i18n/locales/es/comments.json":function(){return p2},"/ghost/i18n/locales/et/comments.json":function(){return h2},"/ghost/i18n/locales/fa/comments.json":function(){return g2},"/ghost/i18n/locales/fi/comments.json":function(){return y2},"/ghost/i18n/locales/fr/comments.json":function(){return w2},"/ghost/i18n/locales/gd/comments.json":function(){return S2},"/ghost/i18n/locales/hi/comments.json":function(){return v2},"/ghost/i18n/locales/hr/comments.json":function(){return b2},"/ghost/i18n/locales/hu/comments.json":function(){return k2},"/ghost/i18n/locales/id/comments.json":function(){return x2},"/ghost/i18n/locales/is/comments.json":function(){return $2},"/ghost/i18n/locales/it/comments.json":function(){return C2},"/ghost/i18n/locales/ja/comments.json":function(){return E2},"/ghost/i18n/locales/ko/comments.json":function(){return N2},"/ghost/i18n/locales/kz/comments.json":function(){return O2},"/ghost/i18n/locales/lt/comments.json":function(){return A2},"/ghost/i18n/locales/mk/comments.json":function(){return R2},"/ghost/i18n/locales/mn/comments.json":function(){return M2},"/ghost/i18n/locales/ms/comments.json":function(){return D2},"/ghost/i18n/locales/nl/comments.json":function(){return T2},"/ghost/i18n/locales/nn/comments.json":function(){return j2},"/ghost/i18n/locales/no/comments.json":function(){return P2},"/ghost/i18n/locales/pl/comments.json":function(){return I2},"/ghost/i18n/locales/pt/comments.json":function(){return L2},"/ghost/i18n/locales/pt-BR/comments.json":function(){return z2},"/ghost/i18n/locales/ro/comments.json":function(){return F2},"/ghost/i18n/locales/ru/comments.json":function(){return B2},"/ghost/i18n/locales/si/comments.json":function(){return H2},"/ghost/i18n/locales/sk/comments.json":function(){return V2},"/ghost/i18n/locales/sl/comments.json":function(){return U2},"/ghost/i18n/locales/sq/comments.json":function(){return J2},"/ghost/i18n/locales/sr/comments.json":function(){return _2},"/ghost/i18n/locales/sr-Cyrl/comments.json":function(){return Y2},"/ghost/i18n/locales/sv/comments.json":function(){return K2},"/ghost/i18n/locales/th/comments.json":function(){return W2},"/ghost/i18n/locales/tr/comments.json":function(){return q2},"/ghost/i18n/locales/uk/comments.json":function(){return G2},"/ghost/i18n/locales/ur/comments.json":function(){return Q2},"/ghost/i18n/locales/uz/comments.json":function(){return Z2},"/ghost/i18n/locales/vi/comments.json":function(){return X2},"/ghost/i18n/locales/zh/comments.json":function(){return eN},"/ghost/i18n/locales/zh-Hant/comments.json":function(){return tN},"/ghost/i18n/locales/sw/comments.json":function(){return nN},"/ghost/i18n/locales/ta/comments.json":function(){return oN}})}function rN(t){function e(n){var o=n1(n,t);if(o!==null)return t1()[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=n1(n,t);return o!==null?o:require.resolve(n)},e}function n1(t,e){var n=iN(t);t=dl(t);var o;t[0]==="/"&&(e="");for(var r=t1(),i=["",".js",".json"];n?o=dl(e+"/node_modules/"+t):o=dl(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=dl(e+"/..");if(l===e)break;e=l}return null}function iN(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 dl(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 nm={exports:{}};const F=t=>typeof t=="string",Vi=()=>{let t,e;const n=new Promise((o,r)=>{t=o,e=r});return n.resolve=t,n.reject=e,n},o1=t=>t==null?"":""+t,sN=(t,e,n)=>{t.forEach(o=>{e[o]&&(n[o]=e[o])})},aN=/###/g,r1=t=>t&&t.indexOf("###")>-1?t.replace(aN,"."):t,i1=t=>!t||F(t),Ui=(t,e,n)=>{const o=F(e)?e.split("."):e;let r=0;for(;r<o.length-1;){if(i1(t))return{};const i=r1(o[r]);!t[i]&&n&&(t[i]=new n),Object.prototype.hasOwnProperty.call(t,i)?t=t[i]:t={},++r}return i1(t)?{}:{obj:t,k:r1(o[r])}},s1=(t,e,n)=>{const{obj:o,k:r}=Ui(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=Ui(t,s,Object);for(;a.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),a=Ui(t,s,Object),a&&a.obj&&typeof a.obj[`${a.k}.${i}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${i}`]=n},lN=(t,e,n,o)=>{const{obj:r,k:i}=Ui(t,e,Object);r[i]=r[i]||[],r[i].push(n)},ml=(t,e)=>{const{obj:n,k:o}=Ui(t,e);if(n)return n[o]},uN=(t,e,n)=>{const o=ml(t,n);return o!==void 0?o:ml(e,n)},a1=(t,e,n)=>{for(const o in e)o!=="__proto__"&&o!=="constructor"&&(o in t?F(t[o])||t[o]instanceof String||F(e[o])||e[o]instanceof String?n&&(t[o]=e[o]):a1(t[o],e[o],n):t[o]=e[o]);return t},pr=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var cN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const dN=t=>F(t)?t.replace(/[&<>"'\/]/g,e=>cN[e]):t;class mN{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 fN=[" ",",","?","!",";"],pN=new mN(20),hN=(t,e,n)=>{e=e||"",n=n||"";const o=fN.filter(s=>e.indexOf(s)<0&&n.indexOf(s)<0);if(o.length===0)return!0;const r=pN.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},om=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},fl=t=>t&&t.replace("_","-"),gN={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 pl{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||gN,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:(F(e[0])&&(e[0]=`${o}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new pl(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new pl(this.logger,e)}}var Dt=new pl;class hl{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 u=0;u<l;u++)a(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[a,l]=s;for(let u=0;u<l;u++)a.apply(a,[e,...o])})}}class l1 extends hl{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):F(o)&&i?a.push(...o.split(i)):a.push(o)));const l=ml(this.data,a);return!l&&!n&&!o&&e.indexOf(".")>-1&&(e=a[0],n=a[1],o=a.slice(2).join(".")),l||!s||!F(o)?l:om(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),s1(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)(F(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=ml(this.data,a)||{};s.skipCopy||(o=JSON.parse(JSON.stringify(o))),r?a1(l,o,i):l={...l,...o},s1(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 u1={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 c1={};class gl extends hl{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),sN(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Dt.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&&!hN(e,o,r);if(s&&!a){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:i};const u=e.split(o);(o!==r||o===r&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(r)}return F(i)&&(i=[i]),{key:e,namespaces: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],u=n.lng||this.language,c=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(c){const k=n.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${k}${s}`,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${k}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:s}const m=this.resolve(e,n);let d=m&&m.res;const f=m&&m.usedKey||s,p=m&&m.exactUsedKey||s,y=Object.prototype.toString.apply(d),h=["[object Number]","[object Function]","[object RegExp]"],g=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,v=!F(d)&&typeof d!="boolean"&&typeof d!="number";if(w&&d&&v&&h.indexOf(y)<0&&!(F(g)&&Array.isArray(d))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const k=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...n,ns:a}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(m.res=k,m.usedParams=this.getUsedParamsDetails(n),m):k}if(i){const k=Array.isArray(d),E=k?[]:{},b=k?p:f;for(const $ in d)if(Object.prototype.hasOwnProperty.call(d,$)){const R=`${b}${i}${$}`;E[$]=this.translate(R,{...n,joinArrays:!1,ns:a}),E[$]===R&&(E[$]=d[$])}d=E}}else if(w&&F(g)&&Array.isArray(d))d=d.join(g),d&&(d=this.extendTranslation(d,e,n,o));else{let k=!1,E=!1;const b=n.count!==void 0&&!F(n.count),$=gl.hasDefaultValue(n),R=b?this.pluralResolver.getSuffix(u,n.count,n):"",C=n.ordinal&&b?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",_=b&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),se=_&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${R}`]||n[`defaultValue${C}`]||n.defaultValue;!this.isValidLookup(d)&&$&&(k=!0,d=se),this.isValidLookup(d)||(E=!0,d=s);const G=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:d,Oe=$&&se!==d&&this.options.updateMissing;if(E||k||Oe){if(this.logger.log(Oe?"updateKey":"missingKey",u,l,s,Oe?se:d),i){const Q=this.resolve(s,{...n,keySeparator:!1});Q&&Q.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 le=[];const pe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&pe&&pe[0])for(let Q=0;Q<pe.length;Q++)le.push(pe[Q]);else this.options.saveMissingTo==="all"?le=this.languageUtils.toResolveHierarchy(n.lng||this.language):le.push(n.lng||this.language);const de=(Q,ue,be)=>{const M=$&&be!==d?be:G;this.options.missingKeyHandler?this.options.missingKeyHandler(Q,l,ue,M,Oe,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Q,l,ue,M,Oe,n),this.emit("missingKey",Q,l,ue,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?le.forEach(Q=>{const ue=this.pluralResolver.getSuffixes(Q,n);_&&n[`defaultValue${this.options.pluralSeparator}zero`]&&ue.indexOf(`${this.options.pluralSeparator}zero`)<0&&ue.push(`${this.options.pluralSeparator}zero`),ue.forEach(be=>{de([Q],s+be,n[`defaultValue${be}`]||se)})}):de(le,s,se))}d=this.extendTranslation(d,e,n,m,o),E&&d===s&&this.options.appendNamespaceToMissingKey&&(d=`${l}:${s}`),(E||k)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${s}`:s,k?d:void 0):d=this.options.parseMissingKeyHandler(d))}return r?(m.res=d,m.usedParams=this.getUsedParamsDetails(n),m):d}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 u=F(e)&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let c;if(u){const d=e.match(this.interpolator.nestingRegexp);c=d&&d.length}let m=o.replace&&!F(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),e=this.interpolator.interpolate(e,m,o.lng||this.language||r.usedLng,o),u){const d=e.match(this.interpolator.nestingRegexp),f=d&&d.length;c<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 d=arguments.length,f=new Array(d),p=0;p<d;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=F(a)?[a]:a;return e!=null&&l&&l.length&&o.applyPostProcessor!==!1&&(e=u1.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 F(e)&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(o))return;const u=this.extractFromKey(l,n),c=u.key;r=c;let m=u.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const d=n.count!==void 0&&!F(n.count),f=d&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),p=n.context!==void 0&&(F(n.context)||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(h=>{this.isValidLookup(o)||(a=h,!c1[`${y[0]}-${h}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(c1[`${y[0]}-${h}`]=!0,this.logger.warn(`key "${r}" for languages "${y.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!!!")),y.forEach(g=>{if(this.isValidLookup(o))return;s=g;const w=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(w,c,g,h,n);else{let k;d&&(k=this.pluralResolver.getSuffix(g,n.count,n));const E=`${this.options.pluralSeparator}zero`,b=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(w.push(c+k),n.ordinal&&k.indexOf(b)===0&&w.push(c+k.replace(b,this.options.pluralSeparator)),f&&w.push(c+E)),p){const $=`${c}${this.options.contextSeparator}${n.context}`;w.push($),d&&(w.push($+k),n.ordinal&&k.indexOf(b)===0&&w.push($+k.replace(b,this.options.pluralSeparator)),f&&w.push($+E))}}let v;for(;v=w.pop();)this.isValidLookup(o)||(i=v,o=this.getResource(g,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&&!F(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 rm=t=>t.charAt(0).toUpperCase()+t.slice(1);class d1{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Dt.create("languageUtils")}getScriptPartFromCode(e){if(e=fl(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=fl(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(F(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]=rm(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]=rm(o[1].toLowerCase())),n.indexOf(o[2].toLowerCase())>-1&&(o[2]=rm(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)),F(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 F(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))):F(e)&&i(this.formatLanguageCode(e)),o.forEach(s=>{r.indexOf(s)<0&&i(this.formatLanguageCode(s))}),r}}let yN=[{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}],wN={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 SN=["v1","v2","v3"],vN=["v4"],m1={zero:0,one:1,two:2,few:3,many:4,other:5},bN=()=>{const t={};return yN.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:wN[e.fc]}})}),t};class kN{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=Dt.create("pluralResolver"),(!this.options.compatibilityJSON||vN.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=bN(),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())try{const o=fl(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];const s=new Intl.PluralRules(o,{type:r});return this.pluralRulesCache[i]=s,s}catch{return}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)=>m1[r]-m1[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!SN.includes(this.options.compatibilityJSON)}}const f1=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=uN(t,e,n);return!i&&r&&F(n)&&(i=om(t,n,o),i===void 0&&(i=om(e,n,o))),i},im=t=>t.replace(/\$/g,"$$$$");class xN{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Dt.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:u,unescapeSuffix:c,unescapePrefix:m,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:y,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:w}=e.interpolation;this.escape=n!==void 0?n:dN,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=i?pr(i):s||"{{",this.suffix=a?pr(a):l||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?pr(d):f||pr("$t("),this.nestingSuffix=p?pr(p):y||pr(")"),this.nestingOptionsSeparator=h||",",this.maxReplaces=g||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||{},u=f=>{if(f.indexOf(this.formatSeparator)<0){const g=f1(n,l,f,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(g,void 0,o,{...r,...n,interpolationkey:f}):g}const p=f.split(this.formatSeparator),y=p.shift().trim(),h=p.join(this.formatSeparator).trim();return this.format(f1(n,l,y,this.options.keySeparator,this.options.ignoreJSONStructure),h,o,{...r,...n,interpolationkey:y})};this.resetRegExp();const c=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,m=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:f=>im(f)},{regex:this.regexp,safeValue:f=>this.escapeValue?im(this.escape(f)):im(f)}].forEach(f=>{for(a=0;i=f.regex.exec(e);){const p=i[1].trim();if(s=u(p),s===void 0)if(typeof c=="function"){const h=c(e,i,r);s=F(h)?h:""}else if(r&&Object.prototype.hasOwnProperty.call(r,p))s="";else if(m){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${p} for interpolating ${e}`),s="";else!F(s)&&!this.useRawValueToEscape&&(s=o1(s));const y=f.safeValue(s);if(e=e.replace(i[0],y),m?(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,u)=>{const c=this.nestingOptionsSeparator;if(l.indexOf(c)<0)return l;const m=l.split(new RegExp(`${c}[ ]*{`));let d=`{${m[1]}`;l=m[0],d=this.interpolate(d,s);const f=d.match(/'/g),p=d.match(/"/g);(f&&f.length%2===0&&!p||p.length%2!==0)&&(d=d.replace(/'/g,'"'));try{s=JSON.parse(d),u&&(s={...u,...s})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,y),`${l}${c}${d}`}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&&!F(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let u=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){const c=r[1].split(this.formatSeparator).map(m=>m.trim());r[1]=c.shift(),l=c,u=!0}if(i=n(a.call(this,r[1].trim(),s),s),i&&r[0]===e&&!F(i))return i;F(i)||(i=o1(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=""),u&&(i=l.reduce((c,m)=>this.format(c,m,o.lng,{...o,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}const $N=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(":"),u=l.join(":").trim().replace(/^'+|'+$/g,""),c=a.trim();n[c]||(n[c]=u),u==="false"&&(n[c]=!1),u==="true"&&(n[c]=!0),isNaN(u)||(n[c]=parseInt(u,10))}})}return{formatName:e,formatOptions:n}},hr=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(fl(o),r),e[s]=a),a(n)}};class CN{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Dt.create("formatter"),this.options=e,this.formats={number:hr((n,o)=>r=>new Intl.NumberFormat(n,{...o}).format(r)),currency:hr((n,o)=>r=>new Intl.NumberFormat(n,{...o,style:"currency"}).format(r)),datetime:hr((n,o)=>r=>new Intl.DateTimeFormat(n,{...o}).format(r)),relativetime:hr((n,o)=>r=>new Intl.RelativeTimeFormat(n,{...o}).format(r,o.range||"day")),list:hr((n,o)=>r=>new Intl.ListFormat(n,{...o}).format(r))},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()]=hr(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:u,formatOptions:c}=$N(l);if(this.formats[u]){let m=a;try{const d=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},f=d.locale||d.lng||r.locale||r.lng||o;m=this.formats[u](a,f,{...c,...r,...d})}catch(d){this.logger.warn(d)}return m}else this.logger.warn(`there was no format function for ${u}`);return a},e)}}const EN=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class NN extends hl{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=Dt.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(u=>{let c=!0;n.forEach(m=>{const d=`${u}|${m}`;!o.reload&&this.store.hasResourceBundle(u,m)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?s[d]===void 0&&(s[d]=!0):(this.state[d]=1,c=!1,s[d]===void 0&&(s[d]=!0),i[d]===void 0&&(i[d]=!0),l[m]===void 0&&(l[m]=!0)))}),c||(a[u]=!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=>{lN(l.loaded,[i],s),EN(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(u=>{a[u]||(a[u]={});const c=l.loaded[u];c.length&&c.forEach(m=>{a[u][m]===void 0&&(a[u][m]=!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=(u,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(u&&c&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,o,r+1,i*2,s)},i);return}s(u,c)},l=this.backend[o].bind(this.backend);if(l.length===2){try{const u=l(e,n);u&&typeof u.then=="function"?u.then(c=>a(null,c)).catch(a):a(null,u)}catch(u){a(u)}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();F(e)&&(e=this.languageUtils.toResolveHierarchy(e)),F(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},u=this.backend.create.bind(this.backend);if(u.length<6)try{let c;u.length===5?c=u(e,n,o,r,l):c=u(e,n,o,r),c&&typeof c.then=="function"?c.then(m=>a(null,m)).catch(a):a(null,c)}catch(c){a(c)}else u(e,n,o,r,a,l)}!e||!e[0]||this.store.addResource(e[0],n,o,r)}}}const p1=()=>({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]),F(t[1])&&(e.defaultValue=t[1]),F(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}}),h1=t=>(F(t.ns)&&(t.ns=[t.ns]),F(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),F(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),yl=()=>{},ON=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class Ji extends hl{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=h1(e),this.services={},this.logger=Dt,this.modules={external:[]},ON(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&&(F(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const r=p1();this.options={...r,...this.options,...h1(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=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?Dt.init(i(this.modules.logger),this.options):Dt.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl<"u"&&(c=CN);const m=new d1(this.options);this.store=new l1(this.options.resources,this.options);const d=this.services;d.logger=Dt,d.resourceStore=this.store,d.languageUtils=m,d.pluralResolver=new kN(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(d.formatter=i(c),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new xN(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new NN(i(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(f){for(var p=arguments.length,y=new Array(p>1?p-1:0),h=1;h<p;h++)y[h-1]=arguments[h];e.emit(f,...y)}),this.modules.languageDetector&&(d.languageDetector=i(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=i(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new gl(this.services,this.options),this.translator.on("*",function(f){for(var p=arguments.length,y=new Array(p>1?p-1:0),h=1;h<p;h++)y[h-1]=arguments[h];e.emit(f,...y)}),this.modules.external.forEach(f=>{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,o||(o=yl),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[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(c=>{this[c]=function(){return e.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return e.store[c](...arguments),e}});const l=Vi(),u=()=>{const c=(m,d)=>{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(d),o(m,d)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),l}loadResources(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yl;const r=F(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(u=>{u!=="cimode"&&i.indexOf(u)<0&&i.push(u)})};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=Vi();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=yl),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"&&u1.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=Vi();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,u)=>{u?(i(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):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 u=F(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,c=>{s(c,u)})};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 u=arguments.length,c=new Array(u>2?u-2:0),m=2;m<u;m++)c[m-2]=arguments[m];l=r.options.overloadTranslationOptionHandler([s,a].concat(c))}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 d=r.options.keySeparator||".";let f;return l.keyPrefix&&Array.isArray(s)?f=s.map(p=>`${l.keyPrefix}${d}${p}`):f=l.keyPrefix?`${l.keyPrefix}${d}${s}`:s,r.t(f,l)};return F(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 u=this.services.backendConnector.state[`${a}|${l}`];return u===-1||u===0||u===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=Vi();return this.options.ns?(F(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=Vi();F(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 d1(p1());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 Ji(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yl;const o=e.forkResourceStore;o&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new Ji(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 l1(this.store.data,r),i.services.resourceStore=i.store),i.translator=new gl(i.services,r),i.translator.on("*",function(a){for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];i.emit(a,...u)}),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 g1=Ji.createInstance();g1.createInstance=Ji.createInstance;var AN=g1;const RN=AN,y1=["af","ar","bg","bn","bs","ca","cs","da","de","de-CH","el","en","eo","es","et","fa","fi","fr","gd","hi","hr","hu","id","is","it","ja","ko","kz","lt","mk","mn","ms","nl","nn","no","pl","pt","pt-BR","ro","ru","si","sk","sl","sq","sr","sr-Cyrl","sv","th","tr","uk","ur","uz","vi","zh","zh-Hant","sw","ta"];nm.exports=(t="en",e="portal")=>{const n=RN.createInstance();return n.init({lng:t,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:!1,ns:e,defaultNS:e,resources:y1.reduce((o,r)=>{const i=rN("/ghost/i18n/lib")(`../locales/${r}/${e}.json`);return o[r]={[e]:{...i,...i.default&&typeof i.default=="object"?i.default:{}}},o},{})}),n},nm.exports.SUPPORTED_LOCALES=y1;var MN=nm.exports,DN=MN;const TN=Ze(DN);function jN({siteUrl:t=window.location.origin,apiUrl:e,apiKey:n}){const o="members/api";function r({type:u,resource:c,params:m=""}){return u==="members"?`${t.replace(/\/$/,"")}/${o}/${c}/${m}`:""}function i({resource:u,params:c=""}){return e&&n?`${e.replace(/\/$/,"")}/${u}/?key=${n}&limit=all${c}`:""}function s({url:u,method:c="GET",headers:m={},credentials:d=void 0,body:f=void 0}){return fetch(u,{method:c,headers:m,credentials:d,body:f})}let a=null;const l={site:{settings(){const u=i({resource:"settings"});return s({url:u,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(c){if(c.ok)return c.json();throw new Error("Failed to fetch site data")})}},member:{identity(){const u=r({type:"members",resource:"session"});return s({url:u,credentials:"same-origin"}).then(function(c){return!c.ok||c.status===204?null:c.text()})},sessionData(){const u=r({type:"members",resource:"member"});return s({url:u,credentials:"same-origin"}).then(function(c){return!c.ok||c.status===204?null:c.json()})},update({name:u,expertise:c}){const m=r({type:"members",resource:"member"});return s({url:m,method:"PUT",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({name:u,expertise:c})}).then(function(f){return f.ok?f.json():null})}},comments:{async count({postId:u}){const c=u?`?ids=${u}`:"",m=r({type:"members",resource:"comments/counts",params:c}),f=await(await s({url:m,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"})).json();return u?f[u]:f},browse({page:u,postId:c}){let m=null;a&&(m=`created_at:<=${a}`);const d=new URLSearchParams;d.set("limit","20"),m&&d.set("filter",m),d.set("page",u.toString());const f=r({type:"members",resource:`comments/post/${c}`,params:`?${d.toString()}`}),p=s({url:f,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"}).then(function(y){if(y.ok)return y.json();throw new Error("Failed to fetch comments")});return a||p.then(y=>{const h=y.comments[0];h&&(a=h.created_at)}),p},async replies({commentId:u,afterReplyId:c,limit:m}){const d=encodeURIComponent(`id:>'${c}'`),f=r({type:"members",resource:`comments/${u}/replies`,params:`?limit=${m??5}&filter=${d}`}),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:u}){const c={comments:[u]},m=r({type:"members",resource:"comments"});return s({url:m,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)}).then(function(d){if(d.ok)return d.json();throw new Error("Failed to add comment")})},edit({comment:u}){const c={comments:[u]},m=r({type:"members",resource:`comments/${u.id}`});return s({url:m,method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)}).then(function(d){if(d.ok)return d.json();throw new Error("Failed to edit comment")})},read(u){const c=r({type:"members",resource:`comments/${u}`});return s({url:c,method:"GET",credentials:"same-origin"}).then(function(m){if(m.ok)return m.json();throw new Error("Failed to read comment")})},like({comment:u}){const c=r({type:"members",resource:`comments/${u.id}/like`});return s({url:c,method:"POST",headers:{"Content-Type":"application/json"}}).then(function(m){if(m.ok)return"Success";throw new Error("Failed to like comment")})},unlike({comment:u}){const c={comments:[u]},m=r({type:"members",resource:`comments/${u.id}/like`});return s({url:m,method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(c)}).then(function(d){if(d.ok)return"Success";throw new Error("Failed to unlike comment")})},report({comment:u}){const c=r({type:"members",resource:`comments/${u.id}/report`});return s({url:c,method:"POST",headers:{"Content-Type":"application/json"}}).then(function(m){if(m.ok)return"Success";throw new Error("Failed to report comment")})}},init:()=>{}};return l.init=async()=>{const[u]=await Promise.all([l.member.sessionData()]);let c={};try{const m=await l.site.settings();m.settings.labs&&Object.assign(c,m.settings.labs)}catch{c={}}return{member:u,labs:c}},l}async function PN({state:t,api:e,options:n}){let o=1;t.pagination&&t.pagination.page&&(o=t.pagination.page+1);const r=await e.comments.browse({page:o,postId:n.postId});return{comments:[...t.comments,...r.comments],pagination:r.meta.pagination}}async function IN({state:t,api:e,data:{comment:n,limit:o}}){var i;const r=await e.comments.replies({commentId:n.id,afterReplyId:(i=n.replies[n.replies.length-1])==null?void 0:i.id,limit:o});return{comments:t.comments.map(s=>s.id===n.id?{...n,replies:[...n.replies,...r.comments]}:s)}}async function LN({state:t,api:e,data:n}){return n=(await e.comments.add({comment:n})).comments[0],{comments:[n,...t.comments],commentCount:t.commentCount+1}}async function zN({state:t,api:e,data:{reply:n,parent:o}}){let r=n;return r.parent_id=o.id,r=(await e.comments.add({comment:r})).comments[0],{comments:t.comments.map(s=>s.id===o.id?{...o,replies:[...o.replies,r],count:{...o.count,replies:o.count.replies+1}}:s),commentCount:t.commentCount+1}}async function FN({state:t,adminApi:e,data:n}){return await e.hideComment(n.id),{comments:t.comments.map(o=>{const r=o.replies.map(i=>i.id===n.id?{...i,status:"hidden"}:i);return o.id===n.id?{...o,status:"hidden",replies:r}:{...o,replies:r}}),commentCount:t.commentCount-1}}async function BN({state:t,api:e,adminApi:n,data:o}){await n.showComment(o.id);const i=(await e.comments.read(o.id)).comments[0];return{comments:t.comments.map(s=>{const a=s.replies.map(l=>l.id===o.id?i:l);return s.id===o.id?i:{...s,replies:a}}),commentCount:t.commentCount+1}}async function HN({state:t,api:e,data:n}){return await e.comments.like({comment:n}),{comments:t.comments.map(o=>{const r=o.replies.map(i=>i.id===n.id?{...i,liked:!0,count:{...i.count,likes:i.count.likes+1}}:i);return o.id===n.id?{...o,liked:!0,replies:r,count:{...o.count,likes:o.count.likes+1}}:{...o,replies:r}})}}async function VN({api:t,data:e}){return await t.comments.report({comment:e}),{}}async function UN({state:t,api:e,data:n}){return await e.comments.unlike({comment:n}),{comments:t.comments.map(o=>{const r=o.replies.map(i=>i.id===n.id?{...i,liked:!1,count:{...i.count,likes:i.count.likes-1}}:i);return o.id===n.id?{...o,liked:!1,replies:r,count:{...o.count,likes:o.count.likes-1}}:{...o,replies:r}})}}async function JN({state:t,api:e,data:n}){return await e.comments.edit({comment:{id:n.id,status:"deleted"}}),{comments:t.comments.map(o=>{const r=o.replies.map(i=>i.id===n.id?{...i,status:"deleted"}:i);return o.id===n.id?{...o,status:"deleted",replies:r}:{...o,replies:r}}),commentCount:t.commentCount-1}}async function _N({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 YN({data:t,state:e,api:n}){var l,u;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=(u=e==null?void 0:e.member)==null?void 0:u.expertise;if(r!==void 0&&a!==r&&(i.expertise=r),Object.keys(i).length>0)try{const c=await n.member.update(i);if(!c)throw new Error("Failed to update member");return{member:c,success:!0}}catch(c){return{success:!1,error:c}}return null}function KN({data:t}){return{popup:t}}function WN(){return{popup:null}}function qN({state:t}){return{secundaryFormCount:t.secundaryFormCount+1}}function GN({state:t}){return{secundaryFormCount:t.secundaryFormCount-1}}const w1={openPopup:KN,closePopup:WN,increaseSecundaryFormCount:qN,decreaseSecundaryFormCount:GN},QN={addComment:LN,editComment:_N,hideComment:FN,deleteComment:JN,showComment:BN,likeComment:HN,unlikeComment:UN,reportComment:VN,addReply:zN,loadMoreComments:PN,loadMoreReplies:IN,updateMember:YN};function ZN(t){return!!w1[t]}async function XN({action:t,data:e,state:n,api:o,adminApi:r,options:i}){const s=QN[t];return s?await s({data:e,state:n,api:o,adminApi:r,options:i})||{}:{}}function eO({action:t,data:e,state:n,api:o,adminApi:r,options:i}){const s=w1[t];return s?s({data:e,state:n,api:o,adminApi:r,options:i})||{}:{}}function tO({adminUrl:t}){const e=document.querySelector('iframe[data-frame="admin-auth"]');let n=1;const o={},r=new URL(t).origin;window.addEventListener("message",function(a){if(a.origin!==r)return;let l=null;try{l=JSON.parse(a.data)}catch{return}const u=o[l.uid];u&&(delete o[l.uid],u(l.error,l.result))});function i(a,l){return new Promise((u,c)=>{function m(d,f){return d?c(d):u(f)}n+=1,o[n]=m,e.contentWindow.postMessage(JSON.stringify({uid:n,action:a,...l}),r)})}return{async getUser(){const a=await i("getUser");return!a||!a.users?null:a.users[0]},async hideComment(a){return await i("hideComment",{id:a})},async showComment(a){return await i("showComment",{id:a})}}}function nO(t){const e=V.useCallback(()=>{const i=t.dataset,s=i.ghostComments||window.location.origin,a=i.key,l=i.api,u=i.admin,c=i.postId||"",m=i.colorScheme,d=i.avatarSaturation?parseInt(i.avatarSaturation):void 0,f=i.accentColor??"#000000",p=i.commentsEnabled,y=i.title==="null"?null:i.title??"",h=i.count==="true",g=i.publication??"";return{locale:i.locale??"en",siteUrl:s,apiKey:a,apiUrl:l,postId:c,adminUrl:u,colorScheme:m,avatarSaturation:d,accentColor:f,commentsEnabled:p,title:y,showCount:h,publication:g}},[t]),n=x.useMemo(()=>e(),[]),[o,r]=V.useState(n);return V.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 oO=({scriptTag:t})=>{const e=nO(t),[n,o]=x.useState({initStatus:"running",member:null,admin:null,comments:[],pagination:null,commentCount:0,secundaryFormCount:0,popup:null,labs:null}),r=V.createRef(),i=V.useMemo(()=>jN({siteUrl:e.siteUrl,apiUrl:e.apiUrl,apiKey:e.apiKey}),[e]),[s,a]=x.useState(null),l=x.useCallback(h=>{o(g=>(typeof h=="function"&&(h=h(g)),{...g,...h}))},[o]),u=x.useCallback(async(h,g)=>{if(ZN(h)){l(w=>eO({action:h,data:g,state:w,api:i,adminApi:s,options:e}));return}l(w=>(XN({action:h,data:g,state:w,api:i,adminApi:s,options:e}).then(v=>{l({...v})}).catch(console.error),{}))},[i,s,e]),c=x.useMemo(()=>TN(e.locale,"comments"),[e.locale]),m={...e,...n,t:c.t,dispatchAction:u},d=async()=>{if(!(s||!e.adminUrl))try{const h=tO({adminUrl:e.adminUrl});a(h);let g=null;try{g=await h.getUser()}catch(w){console.warn("[Comments] Failed to fetch current admin user:",w)}l({admin:g})}catch(h){console.error("[Comments] Failed to initialize admin authentication:",h)}},f=async()=>{const h=i.comments.browse({page:1,postId:e.postId}),g=i.comments.count({postId:e.postId}),[w,v]=await Promise.all([h,g]);return{comments:w.comments,pagination:w.meta.pagination,count:v}},p=async()=>{try{const{member:h,labs:g}=await i.init(),{comments:w,pagination:v,count:k}=await f();l({member:h,initStatus:"success",comments:w,pagination:v,commentCount:k,labs:g})}catch(h){console.error("[Comments] Failed to initialize:",h),l({initStatus:"failed"})}};x.useEffect(()=>{const h=new IntersectionObserver(g=>{g.forEach(w=>{w.isIntersecting&&(p(),r.current&&h.unobserve(r.current))})},{root:null,rootMargin:"0px",threshold:.1});return r.current&&h.observe(r.current),()=>{r.current&&h.unobserve(r.current)}},[r.current]);const y=n.initStatus==="success";return S.jsxs($l.Provider,{value:m,children:[S.jsx(KE,{ref:r,children:S.jsx(VE,{done:y})}),n.comments.length>0?S.jsx(T1,{adminUrl:e.adminUrl,onLoad:d}):null,S.jsx(e2,{})]})};function rO(){let t=document.currentScript;if(!t)throw new Error("[Comments-UI] Cannot find current script tag");return t}function iO(t){if(t.previousElementSibling&&t.previousElementSibling.id===cl)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=cl,t.parentElement.insertBefore(e,t),e}function sO(){const t=new URL(window.location.href);t.searchParams.get("token")&&(t.searchParams.delete("token"),window.history.replaceState({},document.title,t.href))}function aO(){const t=rO(),e=iO(t);try{sO(),d0.render(S.jsx(V.StrictMode,{children:S.jsx(oO,{scriptTag:t})}),e)}catch(n){console.error(n)}}aO()});
156
156
  //# sourceMappingURL=comments-ui.min.js.map