@wexio/messenger-widget-react 1.7.2 → 1.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/dist/{widget-react-ATAh-Fnd.js → widget-react--SnHxPOY.js} +2 -2
- package/dist/{widget-react-ChfiYv-y.js → widget-react-B-NKlxTt.js} +2 -2
- package/dist/{widget-react-BCv7nlGW.js → widget-react-B4O9LryX.js} +2 -2
- package/dist/{widget-react-Bp8h2Nfr.js → widget-react-BDwkTnhP.js} +2 -2
- package/dist/{widget-react-Cgk7swSO.js → widget-react-BJLMVdT8.js} +2 -2
- package/dist/{widget-react-CDQnnAyl2.js → widget-react-BXlRglvP2.js} +2 -2
- package/dist/{widget-react-Mb8eZJYK.js → widget-react-BZ7sDBzB.js} +2 -2
- package/dist/widget-react-BflWAq27.js +2 -0
- package/dist/{widget-react-CD89qcUW.js → widget-react-C7ABw9U-.js} +2 -2
- package/dist/{widget-react-kb_VyguR.js → widget-react-CCfIguE3.js} +2 -2
- package/dist/{widget-react-Bg5Mum2h.js → widget-react-CESpzeFW.js} +2 -2
- package/dist/{widget-react-CMacdWtT.js → widget-react-CO_-SXaO.js} +2 -2
- package/dist/{widget-react-BIroU_B92.js → widget-react-CTr72oJP2.js} +2 -2
- package/dist/{widget-react-56g3lXQC.js → widget-react-CVu0iQzo.js} +2 -2
- package/dist/{widget-react-pufgmbxi.js → widget-react-CfpEYz7V.js} +7 -7
- package/dist/{widget-react-BJ6_KhBL2.js → widget-react-Ci-9Gtq-2.js} +2 -2
- package/dist/{widget-react-C_IQ-uGL.js → widget-react-CiXpsVM3.js} +2 -2
- package/dist/{widget-react-D_4-MkNX.js → widget-react-CkrkZ3pp.js} +2 -2
- package/dist/{widget-react-BBu9KoHN2.js → widget-react-CrWgGrOv2.js} +2 -2
- package/dist/{widget-react-sZ7HkSEk.js → widget-react-CtHBMV7Z.js} +41 -41
- package/dist/{widget-react-Cc6PBSE_.js → widget-react-D3JyG2-s.js} +2 -2
- package/dist/{widget-react-k_vM4cpe.js → widget-react-D71FBbwd.js} +2 -2
- package/dist/{widget-react-DhGxRIZm.js → widget-react-D8sZCT6W.js} +2 -2
- package/dist/{widget-react-Bj33hKBS2.js → widget-react-DFBUOrVn2.js} +2 -2
- package/dist/widget-react-DGksrvCr.js +2 -0
- package/dist/{widget-react-DHEfzijM2.js → widget-react-DR9wD8RF2.js} +2 -2
- package/dist/{widget-react-ApsfeIdc2.js → widget-react-DSej45hO2.js} +2 -2
- package/dist/{widget-react-C0pYqXie.js → widget-react-DV3BZAN0.js} +2 -2
- package/dist/{widget-react-DnzmfusO2.js → widget-react-DdIv5LKJ2.js} +2 -2
- package/dist/{widget-react-OgsSWqo6.js → widget-react-DpT7-wmd.js} +2 -2
- package/dist/{widget-react-BNSnhy7T.js → widget-react-DtxeNDUn.js} +2 -2
- package/dist/{widget-react-C8Uke5f6.js → widget-react-DySiCebV.js} +2 -2
- package/dist/{widget-react-B1hCigBf.js → widget-react-G5Axrzd4.js} +2 -2
- package/dist/{widget-react-Q5P5E9_5.js → widget-react-JRr_KL3e.js} +2 -2
- package/dist/{widget-react-DLSIQAyA.js → widget-react-RWR7XGaa.js} +2 -2
- package/dist/widget-react-Yd3uIKgg.js +2 -0
- package/dist/{widget-react-DTtqEWZF.js → widget-react-bxGcWjbs.js} +2 -2
- package/dist/{widget-react-B466sgpI.js → widget-react-oMWtXf4y.js} +2 -2
- package/dist/{widget-react-JpR_vPPt.js → widget-react-x1O7Aw-0.js} +2 -2
- package/dist/widget-react.js +30 -30
- package/package.json +1 -1
- package/dist/widget-react-BEsD7ZAQ.js +0 -2
- package/dist/widget-react-DayZXcSl.js +0 -2
- package/dist/widget-react-Di9lKx_l.js +0 -2
|
@@ -59,7 +59,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
59
59
|
`),v=jo(g.slice(0,_)),y=v[`content-type`],y&&y.toLowerCase().indexOf(`application/json`)===-1)throw Error(`Unsupported patch content type: application/json is required.`);if(b=g.slice(_),b){if(x=Mo(e,b),Object.keys(x).length>1||`data`in x||`incremental`in x||`errors`in x||`payload`in x)if(Ta(x)){if(S={},`payload`in x){if(Object.keys(x).length===1&&x.payload===null)return[2];S=O({},x.payload)}`errors`in x&&(S=O(O({},S),{extensions:O(O({},`extensions`in S?S.extensions:null),(w={},w[eo]=x.errors,w))})),t(S)}else t(x);else if(Object.keys(x).length===1&&`hasNext`in x&&!x.hasNext)return[2]}h=s.indexOf(o)}return[3,1];case 3:return[2]}})})}function jo(e){var t={};return e.split(`
|
|
60
60
|
`).forEach(function(e){var n=e.indexOf(`:`);if(n>-1){var r=e.slice(0,n).trim().toLowerCase();t[r]=e.slice(n+1).trim()}}),t}function Mo(e,t){e.status>=300&&oo(e,function(){try{return JSON.parse(t)}catch{return t}}(),`Response not successful: Received status code ${e.status}`);try{return JSON.parse(t)}catch(r){var n=r;throw n.name=`ServerParseError`,n.response=e,n.statusCode=e.status,n.bodyText=t,n}}function No(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function Po(e){return function(t){return t.text().then(function(e){return Mo(t,e)}).then(function(n){return!Array.isArray(n)&&!ko.call(n,`data`)&&!ko.call(n,`errors`)&&oo(t,n,`Server response was missing for query '${Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName}'.`),n})}}var Fo=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=ye(54,t,e.message);throw r.parseError=e,r}return n},Io={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:`*/*`,"content-type":`application/json`},options:{method:`POST`}},Lo=function(e,t){return t(e)};function Ro(e,t){var n=[...arguments].slice(2),r={},i={};n.forEach(function(e){r=O(O(O({},r),e.options),{headers:O(O({},r.headers),e.headers)}),e.credentials&&(r.credentials=e.credentials),i=O(O({},i),e.http)}),r.headers&&(r.headers=zo(r.headers,i.preserveHeaderCase));var a=e.operationName,o=e.extensions,s=e.variables,c=e.query,l={operationName:a,variables:s};return i.includeExtensions&&(l.extensions=o),i.includeQuery&&(l.query=t(c,wi)),{options:r,body:l}}function zo(e,t){if(!t){var n={};return Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]=e[t]}),n}var r={};Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]={originalName:t,value:e[t]}});var i={};return Object.keys(r).forEach(function(e){i[r[e].originalName]=r[e].value}),i}var Bo=function(e){if(!e&&typeof fetch>`u`)throw ye(51)},Vo=function(e,t){return e.getContext().uri||(typeof t==`function`?t(e):t||`/graphql`)};function Ho(e,t){var n=[],r=function(e,t){n.push(`${e}=${encodeURIComponent(t)}`)};if(`query`in t&&r(`query`,t.query),t.operationName&&r(`operationName`,t.operationName),t.variables){var i=void 0;try{i=Fo(t.variables,`Variables map`)}catch(e){return{parseError:e}}r(`variables`,i)}if(t.extensions){var a=void 0;try{a=Fo(t.extensions,`Extensions map`)}catch(e){return{parseError:e}}r(`extensions`,a)}var o=``,s=e,c=e.indexOf(`#`);c!==-1&&(o=e.substr(c),s=e.substr(0,c));var l=s.indexOf(`?`)===-1?`?`:`&`;return{newURI:s+l+n.join(`&`)+o}}var Uo=pe(function(){return fetch}),Wo=function(e){e===void 0&&(e={});var t=e.uri,n=t===void 0?`/graphql`:t,r=e.fetch,i=e.print,a=i===void 0?Lo:i,o=e.includeExtensions,s=e.preserveHeaderCase,c=e.useGETForQueries,l=e.includeUnusedVariables,u=l===void 0?!1:l,d=ne(e,[`uri`,`fetch`,`print`,`includeExtensions`,`preserveHeaderCase`,`useGETForQueries`,`includeUnusedVariables`]);globalThis.__DEV__!==!1&&Bo(r||Uo);var f={http:{includeExtensions:o,preserveHeaderCase:s},options:d.fetchOptions,credentials:d.credentials,headers:d.headers};return new ho(function(e){var t=Vo(e,n),i=e.getContext(),o={};if(i.clientAwareness){var s=i.clientAwareness,l=s.name,d=s.version;l&&(o[`apollographql-client-name`]=l),d&&(o[`apollographql-client-version`]=d)}var p=O(O({},o),i.headers),m={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:p};if(nn([`client`],e.query)){globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&j.warn(52);var h=Pi(e.query);if(!h)return ao(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=h}var g=Ro(e,a,Io,f,m),_=g.options,v=g.body;v.variables&&!u&&(v.variables=uo(v.variables,e.query));var y;!_.signal&&typeof AbortController<`u`&&(y=new AbortController,_.signal=y.signal);var b=function(e){return e.kind===`OperationDefinition`&&e.operation===`mutation`},x=function(e){return e.kind===`OperationDefinition`&&e.operation===`subscription`}(Mr(e.query)),S=nn([`defer`],e.query);if(c&&!e.query.definitions.some(b)&&(_.method=`GET`),S||x){_.headers=_.headers||{};var C=`multipart/mixed;`;x&&S&&globalThis.__DEV__!==!1&&j.warn(53),x?C+=`boundary=graphql;subscriptionSpec=1.0,application/json`:S&&(C+=`deferSpec=20220824,application/json`),_.headers.accept=C}if(_.method===`GET`){var w=Ho(t,v),T=w.newURI,E=w.parseError;if(E)return ao(E);t=T}else try{_.body=Fo(v,`Payload`)}catch(e){return ao(e)}return new B(function(n){var i=r||pe(function(){return fetch})||Uo,a=n.next.bind(n);return i(t,_).then(function(t){e.setContext({response:t});var n=t.headers?.get(`content-type`);return n!==null&&/^multipart\/mixed/i.test(n)?Ao(t,a):Po(e)(t).then(a)}).then(function(){y=void 0,n.complete()}).catch(function(e){y=void 0,No(e,n)}),function(){y&&y.abort()}})})},Go=function(e){te(t,e);function t(t){t===void 0&&(t={});var n=e.call(this,Wo(t).request)||this;return n.options=t,n}return t}(ho);function Ko(e,t,n,r){var i=t.data,a=ne(t,[`data`]),o=n.data;return U(a,ne(n,[`data`]))&&qo(Mr(e).selectionSet,i,o,{fragmentMap:Cn(kr(e)),variables:r})}function qo(e,t,n,r){if(t===n)return!0;var i=new Set;return e.selections.every(function(e){if(i.has(e)||(i.add(e),!tn(e,r.variables))||Jo(e))return!0;if(wr(e)){var a=Sr(e),o=t&&t[a],s=n&&n[a],c=e.selectionSet;if(!c)return U(o,s);var l=Array.isArray(o),u=Array.isArray(s);if(l!==u)return!1;if(l&&u){var d=o.length;if(s.length!==d)return!1;for(var f=0;f<d;++f)if(!qo(c,o[f],s[f],r))return!1;return!0}return qo(c,o,s,r)}else{var p=wn(e,r.fragmentMap);if(p)return Jo(p)?!0:qo(p.selectionSet,t,n,r)}})}function Jo(e){return!!e.directives&&e.directives.some(Yo)}function Yo(e){return e.name.value===`nonreactive`}var Xo=hn?WeakMap:Map,Zo=gn?WeakSet:Set,Qo=new Vr,$o=!1;function es(){$o||($o=!0,globalThis.__DEV__!==!1&&j.warn(64))}function ts(e,t,n){return Qo.withValue(!0,function(){var r=rs(e,t,n,!1);return Object.isFrozen(e)&&ga(r),r})}function ns(e,t){if(t.has(e))return t.get(e);var n=Array.isArray(e)?[]:Object.create(null);return t.set(e,n),n}function rs(e,t,n,r,i){var a=n.knownChanged,o=ns(e,n.mutableTargets);if(Array.isArray(e)){for(var s=0,c=Array.from(e.entries());s<c.length;s++){var l=c[s],u=l[0],d=l[1];if(d===null){o[u]=null;continue}var f=rs(d,t,n,r,globalThis.__DEV__===!1?void 0:`${i||``}[${u}]`);a.has(f)&&a.add(o),o[u]=f}return a.has(o)?o:e}for(var p=0,m=t.selections;p<m.length;p++){var h=m[p],g=void 0;if(r&&a.add(o),h.kind===M.FIELD){var _=Sr(h),v=h.selectionSet;if(g=o[_]||e[_],g===void 0)continue;if(v&&g!==null){var f=rs(e[_],v,n,r,globalThis.__DEV__===!1?void 0:`${i||``}.${_}`);a.has(f)&&(g=f)}globalThis.__DEV__===!1&&(o[_]=g),globalThis.__DEV__!==!1&&(r&&_!==`__typename`&&!Object.getOwnPropertyDescriptor(o,_)?.value?Object.defineProperty(o,_,is(_,g,i||``,n.operationName,n.operationType)):(delete o[_],o[_]=g))}if(h.kind===M.INLINE_FRAGMENT&&(!h.typeCondition||n.cache.fragmentMatches(h,e.__typename))&&(g=rs(e,h.selectionSet,n,r,i)),h.kind===M.FRAGMENT_SPREAD){var y=h.name.value,b=n.fragmentMap[y]||(n.fragmentMap[y]=n.cache.lookupFragment(y));j(b,59,y);var x=sn(h);x!==`mask`&&(g=rs(e,b.selectionSet,n,x===`migrate`,i))}a.has(g)&&a.add(o)}return`__typename`in e&&!(`__typename`in o)&&(o.__typename=e.__typename),Object.keys(o).length!==Object.keys(e).length&&a.add(o),a.has(o)?o:e}function is(e,t,n,r,i){var a=function(){return Qo.getValue()?t:(globalThis.__DEV__!==!1&&j.warn(60,r?`${i} '${r}'`:`anonymous ${i}`,`${n}.${e}`.replace(/^\./,``)),a=function(){return t},t)};return{get:function(){return a()},set:function(e){a=function(){return e}},enumerable:!0,configurable:!0}}function as(e,t,n,r){if(!n.fragmentMatches)return globalThis.__DEV__!==!1&&es(),e;var i=t.definitions.filter(function(e){return e.kind===M.FRAGMENT_DEFINITION});r===void 0&&(j(i.length===1,61,i.length),r=i[0].name.value);var a=i.find(function(e){return e.name.value===r});return j(!!a,62,r),e==null||U(e,{})?e:ts(e,a.selectionSet,{operationType:`fragment`,operationName:a.name.value,fragmentMap:Cn(kr(t)),cache:n,mutableTargets:new Xo,knownChanged:new Zo})}function os(e,t,n){if(!n.fragmentMatches)return globalThis.__DEV__!==!1&&es(),e;var r=Dr(t);return j(r,63),e==null?e:ts(e,r.selectionSet,{operationType:r.operation,operationName:r.name?.value,fragmentMap:Cn(kr(t)),cache:n,mutableTargets:new Xo,knownChanged:new Zo})}var ss=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=bi(Sn,{max:zn[`cache.fragmentQueryDocuments`]||1e3,cache:Pn})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t=this,n=typeof e.optimistic==`string`?e.optimistic:e.optimistic===!1?null:void 0,r;return this.performTransaction(function(){return r=e.update(t)},n),r},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){var n=this;return t===void 0&&(t=!!e.optimistic),globalThis.__DEV__!==!1&&V(e,`canonizeResults`,`cache.readQuery`),Ia(`canonizeResults`,function(){return n.read(O(O({},e),{rootId:e.id||`ROOT_QUERY`,optimistic:t}))})},e.prototype.watchFragment=function(e){var t=this,n=e.fragment,r=e.fragmentName,i=e.from,a=e.optimistic,o=a===void 0?!0:a,s=ne(e,[`fragment`,`fragmentName`,`from`,`optimistic`]),c=this.getFragmentDoc(n,r),l=i===void 0||typeof i==`string`?i:this.identify(i),u=!!e[Symbol.for(`apollo.dataMasking`)];if(globalThis.__DEV__!==!1){var d=r||jr(n).name.value;l||globalThis.__DEV__!==!1&&j.warn(1,d)}var f=O(O({},s),{returnPartialData:!0,id:l,query:c,optimistic:o}),p;return new B(function(i){return t.watch(O(O({},f),{immediate:!0,callback:function(a){var o=u?as(a.result,n,t,r):a.result;if(!(p&&Ko(c,{data:p.result},{data:o},e.variables))){var s={data:o,complete:!!a.complete};a.missing&&(s.missing=Ri(a.missing.map(function(e){return e.missing}))),p=O(O({},a),{result:o}),i.next(s)}}}))})},e.prototype.readFragment=function(e,t){var n=this;return t===void 0&&(t=!!e.optimistic),globalThis.__DEV__!==!1&&V(e,`canonizeResults`,`cache.readFragment`),Ia(`canonizeResults`,function(){return n.read(O(O({},e),{query:n.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))})},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=ne(e,[`id`,`data`]);return this.write(Object.assign(r,{dataId:t||`ROOT_QUERY`,result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,a=ne(e,[`id`,`data`,`fragment`,`fragmentName`]);return this.write(Object.assign(a,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e.prototype.updateQuery=function(e,t){return globalThis.__DEV__!==!1&&V(e,`canonizeResults`,`cache.updateQuery`),this.batch({update:function(n){var r=Ia(`canonizeResults`,function(){return n.readQuery(e)}),i=t(r);return i==null?r:(n.writeQuery(O(O({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return globalThis.__DEV__!==!1&&V(e,`canonizeResults`,`cache.updateFragment`),this.batch({update:function(n){var r=Ia(`canonizeResults`,function(){return n.readFragment(e)}),i=t(r);return i==null?r:(n.writeFragment(O(O({},e),{data:i})),i)}})},e}();globalThis.__DEV__!==!1&&(ss.prototype.getMemoryInternals=Wn);var cs=function(e){te(t,e);function t(n,r,i,a){var o,s=e.call(this,n)||this;if(s.message=n,s.path=r,s.query=i,s.variables=a,Array.isArray(s.path)){s.missing=s.message;for(var c=s.path.length-1;c>=0;--c)s.missing=(o={},o[s.path[c]]=s.missing,o)}else s.missing=s.path;return s.__proto__=t.prototype,s}return t}(Error),ls=Object.prototype.hasOwnProperty;function us(e){return e==null}function ds(e,t){var n=e.__typename,r=e.id,i=e._id;if(typeof n==`string`&&(t&&(t.keyObject=us(r)?us(i)?void 0:{_id:i}:{id:r}),us(r)&&!us(i)&&(r=i),!us(r)))return`${n}:${typeof r==`number`||typeof r==`string`?r:JSON.stringify(r)}`}var fs={dataIdFromObject:ds,addTypename:!0,resultCaching:!0,canonizeResults:!1};function ps(e){return ka(fs,e)}function ms(e){var t=e.canonizeResults;return t===void 0?fs.canonizeResults:t}function hs(e,t){return R(t)?e.get(t.__ref,`__typename`):t&&t.__typename}var gs=/^[_a-z][_0-9a-z]*/i;function _s(e){var t=e.match(gs);return t?t[0]:e}function vs(e,t,n){return L(t)?z(t)?t.every(function(t){return vs(e,t,n)}):e.selections.every(function(e){if(wr(e)&&tn(e,n)){var r=Sr(e);return ls.call(t,r)&&(!e.selectionSet||vs(e.selectionSet,t[r],n))}return!0}):!1}function ys(e){return L(e)&&!R(e)&&!z(e)}function bs(){return new Bi}function xs(e,t){var n=Cn(kr(e));return{fragmentMap:n,lookupFragment:function(e){var r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}var Ss=Object.create(null),Cs=function(){return Ss},ws=Object.create(null),Ts=function(){function e(e,t){var n=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return ga(R(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return R(e)?n.has(e.__ref):typeof e==`object`},this.toReference=function(e,t){if(typeof e==`string`)return ar(e);if(R(e))return e;var r=n.policies.identify(e)[0];if(r){var i=ar(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return O({},this.data)},e.prototype.has=function(e){return this.lookup(e,!0)!==void 0},e.prototype.get=function(e,t){if(this.group.depend(e,t),ls.call(this.data,e)){var n=this.data[e];if(n&&ls.call(n,t))return n[t]}if(t===`__typename`&&ls.call(this.policies.rootTypenamesById,e))return this.policies.rootTypenamesById[e];if(this instanceof ks)return this.parent.get(e,t)},e.prototype.lookup=function(e,t){if(t&&this.group.depend(e,`__exists`),ls.call(this.data,e))return this.data[e];if(this instanceof ks)return this.parent.lookup(e,t);if(this.policies.rootTypenamesById[e])return Object.create(null)},e.prototype.merge=function(e,t){var n=this,r;R(e)&&(e=e.__ref),R(t)&&(t=t.__ref);var i=typeof e==`string`?this.lookup(r=e):e,a=typeof t==`string`?this.lookup(r=t):t;if(a){j(typeof r==`string`,2);var o=new Bi(js).merge(i,a);if(this.data[r]=o,o!==i&&(delete this.refs[r],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(a).forEach(function(e){if(!i||i[e]!==o[e]){s[e]=1;var t=_s(e);t!==e&&!n.policies.hasKeyArgs(o.__typename,t)&&(s[t]=1),o[e]===void 0&&!(n instanceof ks)&&delete o[e]}}),s.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===o.__typename&&delete s.__typename,Object.keys(s).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),a=!1,o=!0,s={DELETE:Ss,INVALIDATE:ws,isReference:R,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField(typeof t==`string`?{fieldName:t,from:r||ar(e)}:t,{store:n})}};if(Object.keys(r).forEach(function(c){var l=_s(c),u=r[c];if(u!==void 0){var d=typeof t==`function`?t:t[c]||t[l];if(d){var f=d===Cs?Ss:d(ga(u),O(O({},s),{fieldName:l,storeFieldName:c,storage:n.getStorage(e,c)}));if(f===ws)n.group.dirty(e,c);else if(f===Ss&&(f=void 0),f!==u&&(i[c]=f,a=!0,u=f,globalThis.__DEV__!==!1)){var p=function(e){if(n.lookup(e.__ref)===void 0)return globalThis.__DEV__!==!1&&j.warn(3,e),!0};if(R(f))p(f);else if(Array.isArray(f))for(var m=!1,h=void 0,g=0,_=f;g<_.length;g++){var v=_[g];if(R(v)){if(m=!0,p(v))break}else typeof v==`object`&&v&&n.policies.identify(v)[0]&&(h=v);if(m&&h!==void 0){globalThis.__DEV__!==!1&&j.warn(4,h);break}}}}u!==void 0&&(o=!1)}}),a)return this.merge(e,i),o&&(this instanceof ks?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,`__exists`)),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var a=this.getFieldValue(i,`__typename`),o=t&&n?this.policies.getStoreFieldName({typename:a,fieldName:t,args:n}):t;return this.modify(e,o?(r={},r[o]=Cs,r):Cs)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(ls.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof ks&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||`__exists`)),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach(function(t){ls.call(e.policies.rootTypenamesById,t)||n.push(t)}),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(n){e&&ls.call(e,n)||t.delete(n)}),e){var n=e.__META,r=ne(e,[`__META`]);Object.keys(r).forEach(function(e){t.merge(e,r[e])}),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return e===void 0&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof ks?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach(function(r){ls.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])});var r=Object.keys(n);if(r.length){for(var i=this;i instanceof ks;)i=i.parent;r.forEach(function(e){return i.delete(e)})}return r},e.prototype.findChildRefIds=function(e){if(!ls.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach(function(e){R(e)&&(t[e.__ref]=!0),L(e)&&Object.keys(e).forEach(function(t){var n=e[t];L(n)&&r.add(n)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),Es=function(){function e(e,t){t===void 0&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?gi():null,this.keyMaker=new fn(hn)},e.prototype.depend=function(e,t){if(this.d){this.d(Ds(e,t));var n=_s(t);n!==t&&this.d(Ds(e,n)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(Ds(e,t),t===`__exists`?`forget`:`setDirty`)},e}();function Ds(e,t){return t+`#`+e}function Os(e,t){Ms(e)&&e.group.depend(t,`__exists`)}(function(e){e.Root=function(e){te(t,e);function t(t){var n=t.policies,r=t.resultCaching,i=r===void 0?!0:r,a=t.seed,o=e.call(this,n,new Es(i))||this;return o.stump=new As(o),o.storageTrie=new fn(hn),a&&o.replace(a),o}return t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e)})(Ts||(Ts={}));var ks=function(e){te(t,e);function t(t,n,r,i){var a=e.call(this,n.policies,i)||this;return a.id=t,a.parent=n,a.replay=r,a.group=i,r(a),a}return t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach(function(n){U(r[n],i[n])||t.group.dirty(e,n)}):(t.group.dirty(e,`__exists`),Object.keys(i).forEach(function(n){t.group.dirty(e,n)})):t.delete(e)}),n):n===this.parent?this:n.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return O(O({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return ls.call(this.data,t)?O(O({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(Ts),As=function(e){te(t,e);function t(t){return e.call(this,`EntityStore.Stump`,t,function(){},new Es(t.group.caching,t.group))||this}return t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(ks);function js(e,t,n){var r=e[n],i=t[n];return U(r,i)?r:i}function Ms(e){return!!(e instanceof Ts&&e.group.caching)}function Ns(e){return L(e)?z(e)?e.slice(0):O({__proto__:Object.getPrototypeOf(e)},e):e}var Ps=function(){function e(){this.known=new(gn?WeakSet:Set),this.pool=new fn(hn),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return L(e)&&this.known.has(e)},e.prototype.pass=function(e){if(L(e)){var t=Ns(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(L(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var r=e.map(this.admit,this),i=this.pool.lookupArray(r);return i.array||(this.known.add(i.array=r),globalThis.__DEV__!==!1&&Object.freeze(r)),i.array;case null:case Object.prototype:if(this.known.has(e))return e;var a=Object.getPrototypeOf(e),o=[a],s=this.sortedKeys(e);o.push(s.json);var c=o.length;s.sorted.forEach(function(n){o.push(t.admit(e[n]))});var i=this.pool.lookupArray(o);if(!i.object){var l=i.object=Object.create(a);this.known.add(l),s.sorted.forEach(function(e,t){l[e]=o[c+t]}),globalThis.__DEV__!==!1&&Object.freeze(l)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},e}();function Fs(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var Is=function(){function e(e){var t=this;this.knownResults=new(hn?WeakMap:Map),this.config=ka(e,{addTypename:e.addTypename!==!1,canonizeResults:ms(e)}),this.canon=e.canon||new Ps,this.executeSelectionSet=bi(function(e){var n,r=e.context.canonizeResults,i=Fs(e);i[3]=!r;var a=(n=t.executeSelectionSet).peek.apply(n,i);return a?r?O(O({},a),{result:t.canon.admit(a.result)}):a:(Os(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||zn[`inMemoryCache.executeSelectionSet`]||5e4,keyArgs:Fs,makeCacheKey:function(e,t,n,r){if(Ms(n.store))return n.store.makeCacheKey(e,R(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=bi(function(e){return Os(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||zn[`inMemoryCache.executeSubSelectedArray`]||1e4,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(Ms(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new Ps},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,n=e.query,r=e.rootId,i=r===void 0?`ROOT_QUERY`:r,a=e.variables,o=e.returnPartialData,s=o===void 0?!0:o,c=e.canonizeResults,l=c===void 0?this.config.canonizeResults:c,u=this.config.cache.policies;a=O(O({},Nr(Ar(n))),a);var d=ar(i),f=this.executeSelectionSet({selectionSet:Mr(n).selectionSet,objectOrReference:d,enclosingRef:d,context:O({store:t,query:n,policies:u,variables:a,varString:tr(a),canonizeResults:l},xs(n,this.config.fragments))}),p;if(f.missing&&(p=[new cs(Ls(f.missing),f.missing,n,a)],!s))throw p[0];return{result:f.result,complete:!p,missing:p}},e.prototype.isFresh=function(e,t,n,r){if(Ms(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,n=e.selectionSet,r=e.objectOrReference,i=e.enclosingRef,a=e.context;if(R(r)&&!a.policies.rootTypenamesById[r.__ref]&&!a.store.has(r.__ref))return{result:this.canon.empty,missing:`Dangling reference to missing ${r.__ref} object`};var o=a.variables,s=a.policies,c=a.store.getFieldValue(r,`__typename`),l=[],u,d=new Bi;this.config.addTypename&&typeof c==`string`&&!s.rootIdsByTypename[c]&&l.push({__typename:c});function f(e,t){var n;return e.missing&&(u=d.merge(u,(n={},n[t]=e.missing,n))),e.result}var p=new Set(n.selections);p.forEach(function(e){var n,m;if(tn(e,o))if(wr(e)){var h=s.readField({fieldName:e.name.value,field:e,variables:a.variables,from:r},a),g=Sr(e);h===void 0?Mi.added(e)||(u=d.merge(u,(n={},n[g]=`Can't find field '${e.name.value}' on ${R(r)?r.__ref+` object`:`object `+JSON.stringify(r,null,2)}`,n))):z(h)?h.length>0&&(h=f(t.executeSubSelectedArray({field:e,array:h,enclosingRef:i,context:a}),g)):e.selectionSet?h!=null&&(h=f(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:h,enclosingRef:R(h)?h:i,context:a}),g)):a.canonizeResults&&(h=t.canon.pass(h)),h!==void 0&&l.push((m={},m[g]=h,m))}else{var _=wn(e,a.lookupFragment);if(!_&&e.kind===M.FRAGMENT_SPREAD)throw ye(10,e.name.value);_&&s.fragmentMatches(_,c)&&_.selectionSet.selections.forEach(p.add,p)}});var m={result:Ri(l),missing:u},h=a.canonizeResults?this.canon.admit(m):ga(m);return h.result&&this.knownResults.set(h.result,n),h},e.prototype.execSubSelectedArrayImpl=function(e){var t=this,n=e.field,r=e.array,i=e.enclosingRef,a=e.context,o,s=new Bi;function c(e,t){var n;return e.missing&&(o=s.merge(o,(n={},n[t]=e.missing,n))),e.result}return n.selectionSet&&(r=r.filter(a.store.canRead)),r=r.map(function(e,r){return e===null?null:z(e)?c(t.executeSubSelectedArray({field:n,array:e,enclosingRef:i,context:a}),r):n.selectionSet?c(t.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:R(e)?e:i,context:a}),r):(globalThis.__DEV__!==!1&&Rs(a.store,n,e),e)}),{result:a.canonizeResults?this.canon.admit(r):r,missing:o}},e}();function Ls(e){try{JSON.stringify(e,function(e,t){if(typeof t==`string`)throw t;return t})}catch(e){return e}}function Rs(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(n){L(n)&&(j(!R(n),11,hs(e,n),t.name.value),Object.values(n).forEach(r.add,r))})}}var zs=new Vr,Bs=new WeakMap;function Vs(e){var t=Bs.get(e);return t||Bs.set(e,t={vars:new Set,dep:gi()}),t}function Hs(e){Vs(e).vars.forEach(function(t){return t.forgetCache(e)})}function Us(e){Vs(e).vars.forEach(function(t){return t.attachCache(e)})}function Ws(e){var t=new Set,n=new Set,r=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(function(e){Vs(e).dep.dirty(r),Gs(e)});var o=Array.from(n);n.clear(),o.forEach(function(t){return t(e)})}}else{var s=zs.getValue();s&&(i(s),Vs(s).dep(r))}return e};r.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var i=r.attachCache=function(e){return t.add(e),Vs(e).vars.add(r),r};return r.forgetCache=function(e){return t.delete(e)},r}function Gs(e){e.broadcastWatches&&e.broadcastWatches()}var Ks=Object.create(null);function qs(e){var t=JSON.stringify(e);return Ks[t]||(Ks[t]=Object.create(null))}function Js(e){var t=qs(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},i=n.keyObject=Xs(e,function(e){var i=$s(n.storeObject,e,r);return i===void 0&&t!==n.storeObject&&ls.call(t,e[0])&&(i=$s(t,e,Qs)),j(i!==void 0,5,e.join(`.`),t),i});return`${n.typename}:${JSON.stringify(i)}`})}function Ys(e){var t=qs(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,a=n.fieldName,o=Xs(e,function(e){var n=e[0],a=n.charAt(0);if(a===`@`){if(r&&Ti(r.directives)){var o=n.slice(1),s=r.directives.find(function(e){return e.name.value===o}),c=s&&xr(s,i);return c&&$s(c,e.slice(1))}return}if(a===`$`){var l=n.slice(1);if(i&&ls.call(i,l)){var u=e.slice(0);return u[0]=l,$s(i,u)}return}if(t)return $s(t,e)}),s=JSON.stringify(o);return(t||s!==`{}`)&&(a+=`:`+s),a})}function Xs(e,t){var n=new Bi;return Zs(e).reduce(function(e,r){var i,a=t(r);if(a!==void 0){for(var o=r.length-1;o>=0;--o)a=(i={},i[r[o]]=a,i);e=n.merge(e,a)}return e},Object.create(null))}function Zs(e){var t=qs(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(t,i){z(t)?(Zs(t).forEach(function(e){return n.push(r.concat(e))}),r.length=0):(r.push(t),z(e[i+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths}function Qs(e,t){return e[t]}function $s(e,t,n){return n=n||Qs,ec(t.reduce(function e(t,r){return z(t)?t.map(function(t){return e(t,r)}):t&&n(t,r)},e))}function ec(e){return L(e)?z(e)?e.map(ec):Xs(Object.keys(e).sort(),function(t){return $s(e,t)}):e}function tc(e){return e.args===void 0?e.field?xr(e.field,e.variables):null:e.args}var nc=function(){},rc=function(e,t){return t.fieldName},ic=function(e,t,n){var r=n.mergeObjects;return r(e,t)},ac=function(e,t){return t},oc=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=O({dataIdFromObject:ds},e),this.cache=this.config.cache,this.setRootTypename(`Query`),this.setRootTypename(`Mutation`),this.setRootTypename(`Subscription`),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n=this,r=t&&(t.typename||t.storeObject?.__typename)||e.__typename;if(r===this.rootTypenamesById.ROOT_QUERY)return[`ROOT_QUERY`];var i=t&&t.storeObject||e,a=O(O({},t),{typename:r,storeObject:i,readField:t&&t.readField||function(){var e=cc(arguments,i);return n.readField(e,{store:n.cache.data,variables:e.variables})}}),o,s=r&&this.getTypePolicy(r),c=s&&s.keyFn||this.config.dataIdFromObject;return Qo.withValue(!0,function(){for(;c;){var t=c(O(O({},e),i),a);if(z(t))c=Js(t);else{o=t;break}}}),o=o?String(o):void 0,a.keyObject?[o,a.keyObject]:[o]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(n){var r=e[n],i=r.queryType,a=r.mutationType,o=r.subscriptionType,s=ne(r,[`queryType`,`mutationType`,`subscriptionType`]);i&&t.setRootTypename(`Query`,n),a&&t.setRootTypename(`Mutation`,n),o&&t.setRootTypename(`Subscription`,n),ls.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]})},e.prototype.updateTypePolicy=function(e,t,n){var r=this.getTypePolicy(e),i=t.keyFields,a=t.fields;function o(e,t){e.merge=typeof t==`function`?t:t===!0?ic:t===!1?ac:e.merge}o(r,t.merge),r.keyFn=i===!1?nc:z(i)?Js(i):typeof i==`function`?i:r.keyFn,a&&Object.keys(a).forEach(function(t){var r=n[t];(!r||r?.typename!==e)&&(r=n[t]={typename:e});var i=a[t];if(typeof i==`function`)r.read=i;else{var s=i.keyArgs,c=i.read,l=i.merge;r.keyFn=s===!1?rc:z(s)?Ys(s):typeof s==`function`?s:r.keyFn,typeof c==`function`&&(r.read=c),o(r,l)}r.read&&r.merge&&(r.keyFn=r.keyFn||rc)})},e.prototype.setRootTypename=function(e,t){t===void 0&&(t=e);var n=`ROOT_`+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(j(!r||r===e,6,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){t.getSupertypeSet(n,!0),e[n].forEach(function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(gs);(!r||r[0]!==e)&&t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!ls.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(n,i){if(n.test(e)){var a=t.supertypeMap.get(i);a&&a.forEach(function(e){return r.add(e)})}})),r&&r.size&&r.forEach(function(e){var r=t.getTypePolicy(e),i=r.fields,a=ne(r,[`fields`]);Object.assign(n,a),Object.assign(n.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(n){t.updateTypePolicy(e,n,t.typePolicies[e].fields)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t){if(e)return this.getTypePolicy(e).fields[t]},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var o=this.getSupertypeSet(t,!0),s=[o],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},l=!!(n&&this.fuzzySubtypes.size),u=!1,d=0;d<s.length;++d){var f=s[d];if(f.has(a))return o.has(a)||(u&&globalThis.__DEV__!==!1&&j.warn(7,t,a),o.add(a)),!0;f.forEach(c),l&&d===s.length-1&&vs(e.selectionSet,n,r)&&(l=!1,u=!0,this.fuzzySubtypes.forEach(function(e,n){var r=t.match(e);r&&r[0]===t&&c(n)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t);return!!(n&&n.keyFn)},e.prototype.getStoreFieldName=function(e){var t=e.typename,n=e.fieldName,r=this.getFieldPolicy(t,n),i,a=r&&r.keyFn;if(a&&t)for(var o={typename:t,fieldName:n,field:e.field||null,variables:e.variables},s=tc(e);a;){var c=a(s,o);if(z(c))a=Ys(c);else{i=c||n;break}}return i===void 0&&(i=e.field?_r(e.field,e.variables):br(n,tc(e))),i===!1?n:n===_s(i)?i:n+`:`+i},e.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(e.typename===void 0){var r=t.store.getFieldValue(n,`__typename`);r&&(e.typename=r)}var i=this.getStoreFieldName(e),a=_s(i),o=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,a),c=s&&s.read;if(c){var l=sc(this,n,e,t,t.store.getStorage(R(n)?n.__ref:n,i));return zs.withValue(this.cache,c,[o,l])}return o}},e.prototype.getReadFunction=function(e,t){var n=this.getFieldPolicy(e,t);return n&&n.read},e.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t),i=r&&r.merge;return!i&&n&&(r=this.getTypePolicy(n),i=r&&r.merge),i},e.prototype.runMergeFunction=function(e,t,n,r,i){var a=n.field,o=n.typename,s=n.merge;return s===ic?lc(r.store)(e,t):s===ac?t:(r.overwrite&&(e=void 0),s(e,t,sc(this,void 0,{typename:o,fieldName:a.name.value,field:a,variables:r.variables},r,i||Object.create(null))))},e}();function sc(e,t,n,r,i){var a=e.getStoreFieldName(n),o=_s(a),s=n.variables||r.variables,c=r.store,l=c.toReference,u=c.canRead;return{args:tc(n),field:n.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:R,toReference:l,storage:i,cache:e.cache,canRead:u,readField:function(){return e.readField(cc(arguments,t,s),r)},mergeObjects:lc(r.store)}}function cc(e,t,n){var r=e[0],i=e[1],a=e.length,o;return typeof r==`string`?o={fieldName:r,from:a>1?i:t}:(o=O({},r),ls.call(o,`from`)||(o.from=t)),globalThis.__DEV__!==!1&&o.from===void 0&&globalThis.__DEV__!==!1&&j.warn(8,_e(Array.from(e))),o.variables===void 0&&(o.variables=n),o}function lc(e){return function(t,n){if(z(t)||z(n))throw ye(9);if(L(t)&&L(n)){var r=e.getFieldValue(t,`__typename`),i=e.getFieldValue(n,`__typename`);if(r&&i&&r!==i)return n;if(R(t)&&ys(n))return e.merge(t.__ref,n),t;if(ys(t)&&R(n))return e.merge(t,n.__ref),n;if(ys(t)&&ys(n))return O(O({},t),n)}return n}}function uc(e,t,n){var r=`${t}${n}`,i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:O(O({},e),{clientOnly:t,deferred:n})),i}var dc=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,a=t.dataId,o=t.variables,s=t.overwrite,c=Dr(r),l=bs();o=O(O({},Nr(c)),o);var u=O(O({store:e,written:Object.create(null),merge:function(e,t){return l.merge(e,t)},variables:o,varString:tr(o)},xs(r,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),d=this.processSelectionSet({result:i||Object.create(null),dataId:a,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:u});if(!R(d))throw ye(12,i);return u.incomingById.forEach(function(t,r){var i=t.storeObject,a=t.mergeTree,o=t.fieldNodeSet,s=ar(r);if(a&&a.map.size){var c=n.applyMerges(a,s,i,u);if(R(c))return;i=c}if(globalThis.__DEV__!==!1&&!u.overwrite){var l=Object.create(null);o.forEach(function(e){e.selectionSet&&(l[e.name.value]=!0)});var d=function(e){return l[_s(e)]===!0},f=function(e){var t=a&&a.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(i).forEach(function(e){d(e)&&!f(e)&&vc(s,i,e,u.store)})}e.merge(r,i)}),e.retain(d.__ref),d},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,a=e.context,o=e.mergeTree,s=this.cache.policies,c=Object.create(null),l=n&&s.rootTypenamesById[n]||Cr(r,i,a.fragmentMap)||n&&a.store.get(n,`__typename`);typeof l==`string`&&(c.__typename=l);var u=function(){var e=cc(arguments,c,a.variables);if(R(e.from)){var t=a.incomingById.get(e.from.__ref);if(t){var n=s.readField(O(O({},e),{from:t.storeObject}),a);if(n!==void 0)return n}}return s.readField(e,a)},d=new Set;this.flattenFields(i,r,a,l).forEach(function(e,n){var i,a=r[Sr(n)];if(d.add(n),a!==void 0){var f=s.getStoreFieldName({typename:l,fieldName:n.name.value,field:n,variables:e.variables}),p=pc(o,f),m=t.processFieldValue(a,n,n.selectionSet?uc(e,!1,!1):e,p),h=void 0;n.selectionSet&&(R(m)||ys(m))&&(h=u(`__typename`,m));var g=s.getMergeFunction(l,n.name.value,h);g?p.info={field:n,typename:l,merge:g}:gc(o,f),c=e.merge(c,(i={},i[f]=m,i))}else globalThis.__DEV__!==!1&&!e.clientOnly&&!e.deferred&&!Mi.added(n)&&!s.getReadFunction(l,n.name.value)&&globalThis.__DEV__!==!1&&j.error(13,Sr(n),r)});try{var f=s.identify(r,{typename:l,selectionSet:i,fragmentMap:a.fragmentMap,storeObject:c,readField:u}),p=f[0],m=f[1];n=n||p,m&&(c=a.merge(c,m))}catch(e){if(!n)throw e}if(typeof n==`string`){var h=ar(n),g=a.written[n]||(a.written[n]=[]);if(g.indexOf(i)>=0||(g.push(i),this.reader&&this.reader.isFresh(r,h,i,a)))return h;var _=a.incomingById.get(n);return _?(_.storeObject=a.merge(_.storeObject,c),_.mergeTree=mc(_.mergeTree,o),d.forEach(function(e){return _.fieldNodeSet.add(e)})):a.incomingById.set(n,{storeObject:c,mergeTree:hc(o)?void 0:o,fieldNodeSet:d}),h}return c},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return!t.selectionSet||e===null?globalThis.__DEV__===!1?e:fa(e):z(e)?e.map(function(e,a){var o=i.processFieldValue(e,t,n,pc(r,a));return gc(r,a),o}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r})},e.prototype.flattenFields=function(e,t,n,r){r===void 0&&(r=Cr(t,e,n.fragmentMap));var i=new Map,a=this.cache.policies,o=new fn(!1);return(function e(s,c){var l=o.lookup(s,c.clientOnly,c.deferred);l.visited||(l.visited=!0,s.selections.forEach(function(o){if(tn(o,n.variables)){var s=c.clientOnly,l=c.deferred;if(!(s&&l)&&Ti(o.directives)&&o.directives.forEach(function(e){var t=e.name.value;if(t===`client`&&(s=!0),t===`defer`){var r=xr(e,n.variables);(!r||r.if!==!1)&&(l=!0)}}),wr(o)){var u=i.get(o);u&&(s=s&&u.clientOnly,l=l&&u.deferred),i.set(o,uc(n,s,l))}else{var d=wn(o,n.lookupFragment);if(!d&&o.kind===M.FRAGMENT_SPREAD)throw ye(14,o.name.value);d&&a.fragmentMatches(d,r,t,n.variables)&&e(d.selectionSet,uc(n,s,l))}}}))})(e,n),i},e.prototype.applyMerges=function(e,t,n,r,i){var a,o=this;if(e.map.size&&!R(n)){var s=!z(n)&&(R(t)||ys(t))?t:void 0,c=n;s&&!i&&(i=[R(s)?s.__ref:s]);var l,u=function(e,t){return z(e)?typeof t==`number`?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var n=u(s,t),a=u(c,t);if(a!==void 0){i&&i.push(t);var d=o.applyMerges(e,n,a,r,i);d!==a&&(l=l||new Map,l.set(t,d)),i&&j(i.pop()===t)}}),l&&(n=z(c)?c.slice(0):O({},c),l.forEach(function(e,t){n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(a=r.store).getStorage.apply(a,i)):n},e}(),fc=[];function pc(e,t){var n=e.map;return n.has(t)||n.set(t,fc.pop()||{map:new Map}),n.get(t)}function mc(e,t){if(e===t||!t||hc(t))return e;if(!e||hc(e))return t;var n=e.info&&t.info?O(O({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var a=new Set(t.map.keys());e.map.forEach(function(e,n){i.map.set(n,mc(e,t.map.get(n))),a.delete(n)}),a.forEach(function(n){i.map.set(n,mc(t.map.get(n),e.map.get(n)))})}return i}function hc(e){return!e||!(e.info||e.map.size)}function gc(e,t){var n=e.map,r=n.get(t);r&&hc(r)&&(fc.push(r),n.delete(t))}var _c=new Set;function vc(e,t,n,r){var i=function(e){var t=r.getFieldValue(e,n);return typeof t==`object`&&t},a=i(e);if(a){var o=i(t);if(o&&!R(a)&&!U(a,o)&&!Object.keys(a).every(function(e){return r.getFieldValue(o,e)!==void 0})){var s=r.getFieldValue(e,`__typename`)||r.getFieldValue(t,`__typename`),c=_s(n),l=`${s}.${c}`;if(!_c.has(l)){_c.add(l);var u=[];!z(a)&&!z(o)&&[a,o].forEach(function(e){var t=r.getFieldValue(e,`__typename`);typeof t==`string`&&!u.includes(t)&&u.push(t)}),globalThis.__DEV__!==!1&&j.warn(15,c,s,u.length?`either ensure all objects of type `+u.join(` and `)+` have an ID or a custom merge function, or `:``,l,O({},a),O({},o))}}}}var yc=function(e){te(t,e);function t(t){t===void 0&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.addTypenameTransform=new Si(Mi),n.assumeImmutableResults=!0,n.makeVar=Ws,n.txCount=0,globalThis.__DEV__!==!1&&(V(t,`addTypename`,`InMemoryCache`,"Please remove the `addTypename` option when initializing `InMemoryCache`."),V(t,`canonizeResults`,`InMemoryCache`,"Please remove the `canonizeResults` option when initializing `InMemoryCache`.")),n.config=ps(t),n.addTypename=!!n.config.addTypename,n.policies=new oc({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return t.prototype.init=function(){var e=this.data=new Ts.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,r=this.config.fragments;this.addTypenameTransform.resetCache(),r?.resetCaches(),this.storeWriter=new dc(this,this.storeReader=new Is({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:ms(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=bi(function(e,n){return t.broadcastWatch(e,n)},{max:this.config.resultCacheMaxSize||zn[`inMemoryCache.maybeBroadcastWatch`]||5e3,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(Ms(n)){var r=e.optimistic,i=e.id,a=e.variables;return n.makeCacheKey(e.query,e.callback,tr({optimistic:r,id:i,variables:a}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return e===void 0&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){globalThis.__DEV__!==!1&&V(e,`canonizeResults`,`cache.read`);var t=e.returnPartialData,n=t===void 0?!1:t;try{return this.storeReader.diffQueryAgainstStore(O(O({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(e){if(e instanceof cs)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{!--this.txCount&&e.broadcast!==!1&&this.broadcastWatches()}},t.prototype.modify=function(e){if(ls.call(e,`id`)&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||`ROOT_QUERY`,e.fields)}finally{!--this.txCount&&e.broadcast!==!1&&this.broadcastWatches()}},t.prototype.diff=function(e){return globalThis.__DEV__!==!1&&V(e,`canonizeResults`,`cache.diff`),this.storeReader.diffQueryAgainstStore(O(O({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||`ROOT_QUERY`,config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||Us(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&Hs(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){globalThis.__DEV__!==!1&&V(e||{},`resetResultIdentities`,`cache.gc`,"First ensure all usages of `canonizeResults` are removed, then remove this option."),tr.reset(),wi.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(R(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){globalThis.__DEV__!==!1&&j.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(ls.call(e,`id`))return!1;e=O(O({},e),{id:`ROOT_QUERY`})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{!--this.txCount&&e.broadcast!==!1&&this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),tr.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),Hs(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t=this,n=e.update,r=e.optimistic,i=r===void 0?!0:r,a=e.removeOptimistic,o=e.onWatchUpdated,s,c=function(e){var r=t,i=r.data,a=r.optimisticData;++t.txCount,e&&(t.data=t.optimisticData=e);try{return s=n(t)}finally{--t.txCount,t.data=i,t.optimisticData=a}},l=new Set;return o&&!this.txCount&&this.broadcastWatches(O(O({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),typeof i==`string`?this.optimisticData=this.optimisticData.addLayer(i,c):i===!1?c(this.data):c(),typeof a==`string`&&(this.optimisticData=this.optimisticData.removeLayer(a)),o&&l.size?(this.broadcastWatches(O(O({},e),{onWatchUpdated:function(e,t){var n=o.call(this,e,t);return n!==!1&&l.delete(e),n}})),l.size&&l.forEach(function(e){return t.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),s},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||t!==null})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){return this.config.fragments?.lookup(e)||null},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(n){return t.maybeBroadcastWatch(n,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var n=this,r=e.lastDiff,i=Ia(`canonizeResults`,function(){return n.diff(e)});t&&(e.optimistic&&typeof t.optimistic==`string`&&(i.fromOptimisticTransaction=!0),t.onWatchUpdated&&t.onWatchUpdated.call(this,e,i,r)===!1)||(!r||!U(r.result,i.result))&&e.callback(e.lastDiff=i,r)},t}(ss);globalThis.__DEV__!==!1&&(yc.prototype.getMemoryInternals=Un);var W;(function(e){e[e.loading=1]=`loading`,e[e.setVariables=2]=`setVariables`,e[e.fetchMore=3]=`fetchMore`,e[e.refetch=4]=`refetch`,e[e.poll=6]=`poll`,e[e.ready=7]=`ready`,e[e.error=8]=`error`})(W||(W={}));function bc(e){return e?e<7:!1}var xc=Object.assign,Sc=Object.hasOwnProperty,Cc=function(e){te(t,e);function t(n){var r=n.queryManager,i=n.queryInfo,a=n.options,o=this,s=t.inactiveOnCreation.getValue();o=e.call(this,function(e){o._getOrCreateQuery();try{var t=e._subscription._observer;t&&!t.error&&(t.error=wc)}catch{}var n=!o.observers.size;o.observers.add(e);var r=o.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(o.maskResult(r.result)),n&&o.reobserve().catch(function(){}),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}})||this,o.observers=new Set,o.subscriptions=new Set,o.dirty=!1,o._getOrCreateQuery=function(){return s&&(r.queries.set(o.queryId,i),s=!1),o.queryManager.getOrCreateQuery(o.queryId)},o.queryInfo=i,o.queryManager=r,o.waitForOwnResult=Ec(a.fetchPolicy),o.isTornDown=!1,o.subscribeToMore=o.subscribeToMore.bind(o),o.maskResult=o.maskResult.bind(o);var c=r.defaultOptions.watchQuery,l=(c===void 0?{}:c).fetchPolicy,u=l===void 0?`cache-first`:l,d=a.fetchPolicy,f=d===void 0?u:d,p=a.initialFetchPolicy,m=p===void 0?f===`standby`?u:f:p;o.options=O(O({},a),{initialFetchPolicy:m,fetchPolicy:f}),o.queryId=i.queryId||r.generateQueryId();var h=Dr(o.query);return o.queryName=h&&h.name&&h.name.value,o}return Object.defineProperty(t.prototype,`query`,{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,`variables`,{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return globalThis.__DEV__!==!1&&La(`observableQuery.result`,function(){globalThis.__DEV__!==!1&&j.warn(23)}),new Promise(function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:n},i=e.subscribe(r)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentFullResult=function(e){var t=this;e===void 0&&(e=!0);var n=Ia(`getLastResult`,function(){return t.getLastResult(!0)}),r=this.queryInfo.networkStatus||n&&n.networkStatus||W.ready,i=O(O({},n),{loading:bc(r),networkStatus:r}),a=this.options.fetchPolicy,o=a===void 0?`cache-first`:a;if(!(Ec(o)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers))if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var s=this.queryInfo.getDiff();(s.complete||this.options.returnPartialData)&&(i.data=s.result),U(i.data,{})&&(i.data=void 0),s.complete?(delete i.partial,s.complete&&i.networkStatus===W.loading&&(o===`cache-first`||o===`cache-only`)&&(i.networkStatus=W.ready,i.loading=!1)):i.partial=!0,i.networkStatus===W.ready&&(i.error||i.errors)&&(i.networkStatus=W.error),globalThis.__DEV__!==!1&&!s.complete&&!this.options.partialRefetch&&!i.loading&&!i.data&&!i.error&&Tc(s.missing)}return e&&this.updateLastResult(i),i},t.prototype.getCurrentResult=function(e){return e===void 0&&(e=!0),this.maskResult(this.getCurrentFullResult(e))},t.prototype.isDifferentFromLastResult=function(e,t){if(!this.last)return!0;var n=this.queryManager.getDocumentInfo(this.query),r=this.queryManager.dataMasking,i=r?n.nonReactiveQuery:this.query;return(r||n.hasNonreactiveDirective?!Ko(i,this.last.result,e,this.variables):!U(this.last.result,e))||t&&!U(this.last.variables,t)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||U(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return globalThis.__DEV__!==!1&&La(`getLastResult`,function(){globalThis.__DEV__!==!1&&j.warn(24)}),this.getLast(`result`,e)},t.prototype.getLastError=function(e){return globalThis.__DEV__!==!1&&La(`getLastError`,function(){globalThis.__DEV__!==!1&&j.warn(25)}),this.getLast(`error`,e)},t.prototype.resetLastResults=function(){globalThis.__DEV__!==!1&&La(`resetLastResults`,function(){globalThis.__DEV__!==!1&&j.warn(26)}),delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&j.warn(27),this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t={pollInterval:0};if(this.options.fetchPolicy===`no-cache`?t.fetchPolicy=`no-cache`:t.fetchPolicy=`network-only`,globalThis.__DEV__!==!1&&e&&Sc.call(e,`variables`)){var n=Ar(this.query),r=n.variableDefinitions;(!r||!r.some(function(e){return e.variable.name.value===`variables`}))&&globalThis.__DEV__!==!1&&j.warn(28,e,n.name?.value||n)}return e&&!U(this.options.variables,e)&&(t.variables=this.options.variables=O(O({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(t,W.refetch)},t.prototype.fetchMore=function(e){var t=this,n=O(O({},e.query?e:O(O(O(O({},this.options),{query:this.options.query}),e),{variables:O(O({},this.options.variables),e.variables)})),{fetchPolicy:`no-cache`});n.query=this.transformDocument(n.query);var r=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):n.query;var i=this.queryInfo,a=i.networkStatus;i.networkStatus=W.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var o=new Set,s=e?.updateQuery,c=this.options.fetchPolicy!==`no-cache`;return c||j(s,29),this.queryManager.fetchQuery(r,n,W.fetchMore).then(function(l){if(t.queryManager.removeQuery(r),i.networkStatus===W.fetchMore&&(i.networkStatus=a),c)t.queryManager.cache.batch({update:function(r){var i=e.updateQuery;i?r.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return i(e,{fetchMoreResult:l.data,variables:n.variables})}):r.writeQuery({query:n.query,variables:n.variables,data:l.data})},onWatchUpdated:function(e){o.add(e.query)}});else{var u=t.getLast(`result`),d=s(u.data,{fetchMoreResult:l.data,variables:n.variables});t.reportResult(O(O({},u),{networkStatus:a,loading:bc(a),data:d}),t.variables)}return t.maskResult(l)}).finally(function(){c&&!o.has(t.query)&&t.reobserveCacheFirst()})},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery(function(e,t){return r(e,O({subscriptionData:n},t))})},error:function(t){if(e.onError){e.onError(t);return}globalThis.__DEV__!==!1&&j.error(30,t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return globalThis.__DEV__!==!1&&(V(e,`canonizeResults`,`setOptions`),La(`setOptions`,function(){globalThis.__DEV__!==!1&&j.warn(31)})),this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=ka(this.options,e||{});xc(this.options,t)},t.prototype.setVariables=function(e){var t=this;return U(this.variables,e)?this.observers.size?Ia(`observableQuery.result`,function(){return t.result()}):Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},W.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,n=t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),r=n.result,i=n.complete,a=e(r,{variables:this.variables,complete:!!i,previousData:r});a&&(t.cache.writeQuery({query:this.options.query,data:a,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,r=n===void 0?`cache-first`:n,i=t.initialFetchPolicy,a=i===void 0?r:i;r===`standby`||(typeof t.nextFetchPolicy==`function`?t.fetchPolicy=t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:a}):e===`variables-changed`?t.fetchPolicy=a:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,n){var r=this._getOrCreateQuery();return r.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(r,e,t,n)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this,n=t.pollingInfo,r=t.options.pollInterval;if(!r||!this.hasObservers()){n&&(clearTimeout(n.timeout),delete this.pollingInfo);return}if(!(n&&n.interval===r)){j(r,32);var i=n||(this.pollingInfo={});i.interval=r;var a=function(){var t;e.pollingInfo&&(!bc(e.queryInfo.networkStatus)&&!(t=e.options).skipPollAttempt?.call(t)?e.reobserve({fetchPolicy:e.options.initialFetchPolicy===`no-cache`?`no-cache`:`network-only`},W.poll).then(o,o):o())},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(a,t.interval))};o()}}},t.prototype.updateLastResult=function(e,t){var n=this;t===void 0&&(t=this.variables);var r=Ia(`getLastError`,function(){return n.getLastError()});return r&&this.last&&!U(t,this.last.variables)&&(r=void 0),this.last=O({result:this.queryManager.assumeImmutableResults?e:fa(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var n=this;this.isTornDown=!1;var r=t===W.refetch||t===W.fetchMore||t===W.poll,i=this.options.variables,a=this.options.fetchPolicy,o=ka(this.options,e||{}),s=r?o:xc(this.options,o),c=this.transformDocument(s.query);this.lastQuery=c,r||(this.updatePolling(),e&&e.variables&&!U(e.variables,i)&&s.fetchPolicy!==`standby`&&(s.fetchPolicy===a||typeof s.nextFetchPolicy==`function`)&&(this.applyNextFetchPolicy(`variables-changed`,s),t===void 0&&(t=W.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=Ec(s.fetchPolicy));var l=function(){n.concast===f&&(n.waitForOwnResult=!1)},u=s.variables&&O({},s.variables),d=this.fetch(s,t,c),f=d.concast,p=d.fromLink,m={next:function(e){U(n.variables,u)&&(l(),n.reportResult(e,u))},error:function(e){U(n.variables,u)&&(no(e)||(e=new io({networkError:e})),l(),n.reportError(e,u))}};return!r&&(p||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=f,this.observer=m),f.addObserver(m),f},t.prototype.reobserve=function(e,t){return ua(this.reobserveAsConcast(e,t).promise.then(this.maskResult))},t.prototype.resubscribeAfterError=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this.last;Ia(`resetLastResults`,function(){return e.resetLastResults()});var i=this.subscribe.apply(this,t);return this.last=r,i},t.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this,r=Ia(`getLastError`,function(){return n.getLastError()}),i=this.isDifferentFromLastResult(e,t);(r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(r||i)&&_a(this.observers,`next`,this.maskResult(e))},t.prototype.reportError=function(e,t){var n=this,r=O(O({},Ia(`getLastResult`,function(){return n.getLastResult()})),{error:e,errors:e.graphQLErrors,networkStatus:W.error,loading:!1});this.updateLastResult(r,t),_a(this.observers,`error`,this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t.prototype.maskResult=function(e){return e&&`data`in e?O(O({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},t.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},t.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},t.prototype.scheduleNotify=function(){var e=this;this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return e.notify()},0)))},t.prototype.notify=function(){this.cancelNotifyTimeout(),this.dirty&&(this.options.fetchPolicy==`cache-only`||this.options.fetchPolicy==`cache-and-network`||!bc(this.queryInfo.networkStatus))&&(this.queryInfo.getDiff().fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()),this.dirty=!1},t.prototype.reobserveCacheFirst=function(){var e=this.options,t=e.fetchPolicy,n=e.nextFetchPolicy;return t===`cache-and-network`||t===`network-only`?this.reobserve({fetchPolicy:`cache-first`,nextFetchPolicy:function(e,r){return this.nextFetchPolicy=n,typeof this.nextFetchPolicy==`function`?this.nextFetchPolicy(e,r):t}}):this.reobserve()},t.inactiveOnCreation=new Vr,t}(B);ya(Cc);function wc(e){globalThis.__DEV__!==!1&&j.error(33,e.message,e.stack)}function Tc(e){globalThis.__DEV__!==!1&&e&&globalThis.__DEV__!==!1&&j.debug(34,e)}function Ec(e){return e===`network-only`||e===`no-cache`||e===`standby`}var Dc=new(hn?WeakMap:Map);function Oc(e,t){var n=e[t];typeof n==`function`&&(e[t]=function(){return Dc.set(e,(Dc.get(e)+1)%0x38d7ea4c68000),n.apply(this,arguments)})}var kc=function(){function e(e,t){t===void 0&&(t=e.generateQueryId()),this.queryId=t,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var n=this.cache=e.cache;Dc.has(n)||(Dc.set(n,0),Oc(n,`evict`),Oc(n,`modify`),Oc(n,`reset`))}return e.prototype.init=function(e){var t=e.networkStatus||W.loading;return this.variables&&this.networkStatus!==W.loading&&!U(this.variables,e.variables)&&(t=W.setVariables),U(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this,t=this.getDiffOptions();if(this.lastDiff&&U(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var n=this.observableQuery;if(n&&n.options.fetchPolicy===`no-cache`)return{complete:!1};var r=Ia(`canonizeResults`,function(){return e.cache.diff(t)});return this.updateLastDiff(r,t),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){return e===void 0&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:this.observableQuery?.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,n,r=this.lastDiff&&this.lastDiff.diff;e&&!e.complete&&Ia(`getLastError`,function(){return t.observableQuery?.getLastError()})||(this.updateLastDiff(e),U(r&&r.result,e&&e.result)||(n=this.observableQuery)==null||n.scheduleNotify())},e.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},e.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,(e=this.observableQuery)==null||e.resetNotifications(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){var e;(e=this.cancelWatch)==null||e.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(e){var t=this;e===void 0&&(e=this.variables);var n=this.observableQuery;if(!(n&&n.options.fetchPolicy===`no-cache`)){var r=O(O({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});(!this.lastWatch||!U(r,this.lastWatch))&&(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=r))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===Dc.get(this.cache)&&U(t,n.variables)&&U(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var i=this,a,o=new Bi,s=Ti(e.errors)?e.errors.slice(0):[];if((a=this.observableQuery)==null||a.resetNotifications(),`incremental`in e&&Ti(e.incremental))e.data=Ea(this.getDiff().result,e);else if(`hasNext`in e&&e.hasNext){var c=this.getDiff();e.data=o.merge(c.result,e.data)}this.graphQLErrors=s,n.fetchPolicy===`no-cache`?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):r!==0&&(Ac(e,n.errorPolicy)?this.cache.performTransaction(function(a){if(i.shouldWrite(e,n.variables))a.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:r===1}),i.lastWrite={result:e,variables:n.variables,dmCount:Dc.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var o=i.getDiffOptions(n.variables),s=Ia(`canonizeResults`,function(){return a.diff(o)});!i.stopped&&U(i.variables,n.variables)&&i.updateWatch(n.variables),i.updateLastDiff(s,o),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=W.ready},e.prototype.markError=function(e){var t;return this.networkStatus=W.error,this.lastWrite=void 0,(t=this.observableQuery)==null||t.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function Ac(e,t){t===void 0&&(t=`none`);var n=t===`ignore`||t===`all`,r=!Da(e);return!r&&n&&e.data&&(r=!0),r}var jc=Object.prototype.hasOwnProperty,Mc=Object.create(null),Nc=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new Ln(zn[`queryManager.getDocumentInfo`]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new fn(!1),this.noCacheWarningsByQueryId=new Set;var n=new Si(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var r=e.documentTransform;this.documentTransform=r?n.concat(r).concat(n):n,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(ye(35))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return re(this,arguments,void 0,function(e){var t,n,r,i,a,o=e.mutation,s=e.variables,c=e.optimisticResponse,l=e.updateQueries,u=e.refetchQueries,d=u===void 0?[]:u,f=e.awaitRefetchQueries,p=f===void 0?!1:f,m=e.update,h=e.onQueryUpdated,g=e.fetchPolicy,_=g===void 0?this.defaultOptions.mutate?.fetchPolicy||`network-only`:g,v=e.errorPolicy,y=v===void 0?this.defaultOptions.mutate?.errorPolicy||`none`:v,b=e.keepRootFields,x=e.context;return k(this,function(e){switch(e.label){case 0:return j(o,36),j(_===`network-only`||_===`no-cache`,37),t=this.generateMutationId(),o=this.cache.transformForLink(this.transform(o)),n=this.getDocumentInfo(o).hasClientExports,s=this.getVariables(o,s),n?[4,this.localState.addExportedVariables(o,s,x)]:[3,2];case 1:s=e.sent(),e.label=2;case 2:return r=this.mutationStore&&(this.mutationStore[t]={mutation:o,variables:s,loading:!0,error:null}),i=c&&this.markMutationOptimistic(c,{mutationId:t,document:o,variables:s,fetchPolicy:_,errorPolicy:y,context:x,updateQueries:l,update:m,keepRootFields:b}),this.broadcastQueries(),a=this,[2,new Promise(function(e,n){return va(a.getObservableFromLink(o,O(O({},x),{optimisticResponse:i?c:void 0}),s,{},!1),function(e){if(Da(e)&&y===`none`)throw new io({graphQLErrors:Oa(e)});r&&(r.loading=!1,r.error=null);var n=O({},e);return typeof d==`function`&&(d=d(n)),y===`ignore`&&Da(n)&&delete n.errors,a.markMutationResult({mutationId:t,result:n,document:o,variables:s,fetchPolicy:_,errorPolicy:y,context:x,update:m,updateQueries:l,awaitRefetchQueries:p,refetchQueries:d,removeOptimistic:i?t:void 0,onQueryUpdated:h,keepRootFields:b})}).subscribe({next:function(n){a.broadcastQueries(),(!(`hasNext`in n)||n.hasNext===!1)&&e(O(O({},n),{data:a.maskOperation({document:o,data:n.data,fetchPolicy:_,id:t})}))},error:function(e){r&&(r.loading=!1,r.error=e),i&&a.cache.removeOptimistic(t),a.broadcastQueries(),n(e instanceof io?e:new io({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var n=this;t===void 0&&(t=this.cache);var r=e.result,i=[],a=e.fetchPolicy===`no-cache`;if(!a&&Ac(r,e.errorPolicy)){if(Sa(r)||i.push({result:r.data,dataId:`ROOT_MUTATION`,query:e.document,variables:e.variables}),Sa(r)&&Ti(r.incremental)){var o=t.diff({id:`ROOT_MUTATION`,query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),s=void 0;o.result&&(s=Ea(o.result,r)),s!==void 0&&(r.data=s,i.push({result:s,dataId:`ROOT_MUTATION`,query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(e,a){var o=e.observableQuery,s=o&&o.queryName;if(!(!s||!jc.call(c,s))){var l=c[s],u=n.queries.get(a),d=u.document,f=u.variables,p=t.diff({query:d,variables:f,returnPartialData:!0,optimistic:!1}),m=p.result;if(p.complete&&m){var h=l(m,{mutationResult:r,queryName:d&&Or(d)||void 0,queryVariables:f});h&&i.push({result:h,dataId:`ROOT_QUERY`,query:d,variables:f})}}})}if(i.length>0||(e.refetchQueries||``).length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(t){a||i.forEach(function(e){return t.write(e)});var o=e.update,s=!wa(r)||Sa(r)&&!r.hasNext;if(o){if(!a){var c=t.diff({id:`ROOT_MUTATION`,query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&(r=O(O({},r),{data:c.result}),`incremental`in r&&delete r.incremental,`hasNext`in r&&delete r.hasNext)}s&&o(t,r,{context:e.context,variables:e.variables})}!a&&!e.keepRootFields&&s&&t.modify({id:`ROOT_MUTATION`,fields:function(e,t){var n=t.fieldName,r=t.DELETE;return n===`__typename`?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return l.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then(function(){return r})}return Promise.resolve(r)},e.prototype.markMutationOptimistic=function(e,t){var n=this,r=typeof e==`function`?e(t.variables,{IGNORE:Mc}):e;return r===Mc?!1:(this.cache.recordOptimisticTransaction(function(e){try{n.markMutationResult(O(O({},t),{result:{data:r}}),e)}catch(e){globalThis.__DEV__!==!1&&j.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,n){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),t,n).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var n={hasClientExports:rn(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:nn([`nonreactive`],e),nonReactiveQuery:Fi(e),clientQuery:this.localState.clientQuery(e),serverQuery:ji([{name:`client`,remove:!0},{name:`connection`},{name:`nonreactive`},{name:`unmask`}],e),defaultVars:Nr(Dr(e)),asQuery:O(O({},e),{definitions:e.definitions.map(function(e){return e.kind===`OperationDefinition`&&e.operation!==`query`?O(O({},e),{operation:`query`}):e})})};t.set(e,n)}return t.get(e)},e.prototype.getVariables=function(e,t){return O(O({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);e=O(O({},e),{variables:this.getVariables(t,e.variables)}),e.notifyOnNetworkStatusChange===void 0&&(e.notifyOnNetworkStatusChange=!1);var n=new kc(this),r=new Cc({queryManager:this,queryInfo:n,options:e});return r.lastQuery=t,Cc.inactiveOnCreation.getValue()||this.queries.set(r.queryId,n),n.init({document:t,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(e,t){var n=this;t===void 0&&(t=this.generateQueryId()),j(e.query,38),j(e.query.kind===`Document`,39),j(!e.returnPartialData,40),j(!e.pollInterval,41);var r=this.transform(e.query);return this.fetchQuery(t,O(O({},e),{query:r})).then(function(i){return i&&O(O({},i),{data:n.maskOperation({document:r,data:i.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return n.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return e===void 0&&(e={discardWatches:!0}),this.cancelPendingFetches(ye(42)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=W.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;e===void 0&&(e=`active`);var n=new Map,r=new Map,i=new Map,a=new Set;return Array.isArray(e)&&e.forEach(function(e){if(typeof e==`string`)r.set(e,e),i.set(e,!1);else if(or(e)){var n=wi(t.transform(e));r.set(n,Or(e)),i.set(n,!1)}else L(e)&&e.query&&a.add(e)}),this.queries.forEach(function(t,r){var a=t.observableQuery,o=t.document;if(a){if(e===`all`){n.set(r,a);return}var s=a.queryName;if(a.options.fetchPolicy===`standby`||e===`active`&&!a.hasObservers())return;(e===`active`||s&&i.has(s)||o&&i.has(wi(o)))&&(n.set(r,a),s&&i.set(s,!0),o&&i.set(wi(o),!0))}}),a.size&&a.forEach(function(e){var r=ge(`legacyOneTimeQuery`),i=t.getOrCreateQuery(r).init({document:e.query,variables:e.variables}),a=new Cc({queryManager:t,queryInfo:i,options:O(O({},e),{fetchPolicy:`network-only`})});j(a.queryId===r),i.setObservableQuery(a),n.set(r,a)}),globalThis.__DEV__!==!1&&i.size&&i.forEach(function(e,t){if(!e){var n=r.get(t);n?globalThis.__DEV__!==!1&&j.warn(43,n):globalThis.__DEV__!==!1&&j.warn(44)}}),n},e.prototype.reFetchObservableQueries=function(e){var t=this;e===void 0&&(e=!1);var n=[];return this.getObservableQueries(e?`all`:`active`).forEach(function(r,i){var a=r.options.fetchPolicy;Ia(`resetLastResults`,function(){return r.resetLastResults()}),(e||a!==`standby`&&a!==`cache-only`)&&n.push(r.refetch()),(t.queries.get(i)||r.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.variables,i=e.fetchPolicy,a=e.errorPolicy,o=a===void 0?`none`:a,s=e.context,c=s===void 0?{}:s,l=e.extensions,u=l===void 0?{}:l;n=this.transform(n),r=this.getVariables(n,r);var d=function(e){return t.getObservableFromLink(n,c,e,u).map(function(r){i!==`no-cache`&&(Ac(r,o)&&t.cache.write({query:n,result:r.data,dataId:`ROOT_SUBSCRIPTION`,variables:e}),t.broadcastQueries());var a=Da(r),s=to(r);if(a||s){var c={};if(a&&(c.graphQLErrors=r.errors),s&&(c.protocolErrors=r.extensions[eo]),o===`none`||s)throw new io(c)}return o===`ignore`&&delete r.errors,r})};if(this.getDocumentInfo(n).hasClientExports){var f=this.localState.addExportedVariables(n,r,c).then(d);return new B(function(e){var t=null;return f.then(function(n){return t=n.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return d(r)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){var t;this.fetchCancelFns.delete(e),this.queries.has(e)&&((t=this.queries.get(e))==null||t.stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.observableQuery?.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,r,i){var a=this;i===void 0&&(i=t?.queryDeduplication??this.queryDeduplication);var o,s=this.getDocumentInfo(e),c=s.serverQuery,l=s.clientQuery;if(c){var u=this,d=u.inFlightLinkObservables,f=u.link,p={query:c,variables:n,operationName:Or(c)||void 0,context:this.prepareContext(O(O({},t),{forceFetch:!i})),extensions:r};if(t=p.context,i){var m=wi(c),h=tr(n),g=d.lookup(m,h);if(o=g.observable,!o){var _=new xa([_o(f,p)]);o=g.observable=_,_.beforeNext(function e(t,n){t===`next`&&`hasNext`in n&&n.hasNext?_.beforeNext(e):d.remove(m,h)})}}else o=new xa([_o(f,p)])}else o=new xa([B.of({data:{}})]),t=this.prepareContext(t);return l&&(o=va(o,function(e){return a.localState.runResolvers({document:l,remoteResult:e,context:t,variables:n})})),o},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(n.query);return va(this.getObservableFromLink(i,n.context,n.variables),function(a){var o=Oa(a),s=o.length>0,c=n.errorPolicy;if(r>=e.lastRequestId){if(s&&c===`none`)throw e.markError(new io({graphQLErrors:o}));e.markResult(a,i,n,t),e.markReady()}var l={data:a.data,loading:!1,networkStatus:W.ready};return s&&c===`none`&&(l.data=void 0),s&&c!==`ignore`&&(l.errors=o,l.networkStatus=W.error),l},function(t){var n=no(t)?t:new io({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchConcastWithInfo=function(e,t,n,r){var i=this;n===void 0&&(n=W.loading),r===void 0&&(r=t.query);var a=this.getVariables(r,t.variables),o=this.defaultOptions.watchQuery,s=t.fetchPolicy,c=s===void 0?o&&o.fetchPolicy||`cache-first`:s,l=t.errorPolicy,u=l===void 0?o&&o.errorPolicy||`none`:l,d=t.returnPartialData,f=d===void 0?!1:d,p=t.notifyOnNetworkStatusChange,m=p===void 0?!1:p,h=t.context,g=Object.assign({},t,{query:r,variables:a,fetchPolicy:c,errorPolicy:u,returnPartialData:f,notifyOnNetworkStatusChange:m,context:h===void 0?{}:h}),_=function(r){g.variables=r;var a=i.fetchQueryByPolicy(e,g,n);return g.fetchPolicy!==`standby`&&a.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy(`after-fetch`,t),a},v=function(){return i.fetchCancelFns.delete(e.queryId)};this.fetchCancelFns.set(e.queryId,function(e){v(),setTimeout(function(){return y.cancel(e)})});var y,b;if(this.getDocumentInfo(g.query).hasClientExports)y=new xa(this.localState.addExportedVariables(g.query,g.variables,g.context).then(_).then(function(e){return e.sources})),b=!0;else{var x=_(g.variables);b=x.fromLink,y=new xa(x.sources)}return y.promise.then(v,v),{concast:y,fromLink:b}},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,a=i===void 0?!1:i,o=e.removeOptimistic,s=o===void 0?a?ge(`refetchQueries`):void 0:o,c=e.onQueryUpdated,l=new Map;r&&this.getObservableQueries(r).forEach(function(e,n){l.set(n,{oq:e,lastDiff:(t.queries.get(n)||e.queryInfo).getDiff()})});var u=new Map;return n&&this.cache.batch({update:n,optimistic:a&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof kc&&e.watcher.observableQuery;if(r){if(c){l.delete(r.queryId);var i=c(r,t,n);return i===!0&&(i=r.refetch()),i!==!1&&u.set(r,i),i}c!==null&&l.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),l.size&&l.forEach(function(e,n){var r=e.oq,i=e.lastDiff,a=e.diff,o;c&&(a||(a=Ia(`canonizeResults`,function(){return t.cache.diff(r.queryInfo.getDiffOptions())})),o=c(r,a,i)),(!c||o===!0)&&(o=r.refetch()),o!==!1&&u.set(r,o),n.indexOf(`legacyOneTimeQuery`)>=0&&t.stopQueryNoBroadcast(n)}),s&&this.cache.removeOptimistic(s),u},e.prototype.maskOperation=function(e){var t=e.document,n=e.data;if(globalThis.__DEV__!==!1){var r=e.fetchPolicy,i=e.id,a=Dr(t)?.operation,o=(a?.[0]??`o`)+i;this.dataMasking&&r===`no-cache`&&!Tn(t)&&!this.noCacheWarningsByQueryId.has(o)&&(this.noCacheWarningsByQueryId.add(o),globalThis.__DEV__!==!1&&j.warn(45,Or(t)??`Unnamed ${a??`operation`}`))}return this.dataMasking?os(n,t,this.cache):n},e.prototype.maskFragment=function(e){var t=e.data,n=e.fragment,r=e.fragmentName;return this.dataMasking?as(t,n,this.cache,r):t},e.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,a=t.variables,o=t.fetchPolicy,s=t.refetchWritePolicy,c=t.errorPolicy,l=t.returnPartialData,u=t.context,d=t.notifyOnNetworkStatusChange,f=e.networkStatus;e.init({document:i,variables:a,networkStatus:n});var p=function(){return e.getDiff()},m=function(t,n){n===void 0&&(n=e.networkStatus||W.loading);var o=t.result;globalThis.__DEV__!==!1&&!l&&!U(o,{})&&Tc(t.missing);var s=function(e){return B.of(O({data:e,loading:bc(n),networkStatus:n},t.complete?null:{partial:!0}))};return o&&r.getDocumentInfo(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:o},context:u,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return s(e.data||void 0)}):c===`none`&&n===W.refetch&&Array.isArray(t.missing)?s(void 0):s(o)},h=o===`no-cache`?0:n===W.refetch&&s!==`merge`?1:2,g=function(){return r.getResultsFromLink(e,h,{query:i,variables:a,context:u,fetchPolicy:o,errorPolicy:c})},_=d&&typeof f==`number`&&f!==n&&bc(n);switch(o){default:case`cache-first`:var v=p();return v.complete?{fromLink:!1,sources:[m(v,e.markReady())]}:l||_?{fromLink:!0,sources:[m(v),g()]}:{fromLink:!0,sources:[g()]};case`cache-and-network`:var v=p();return v.complete||l||_?{fromLink:!0,sources:[m(v),g()]}:{fromLink:!0,sources:[g()]};case`cache-only`:return{fromLink:!1,sources:[m(p(),e.markReady())]};case`network-only`:return _?{fromLink:!0,sources:[m(p()),g()]}:{fromLink:!0,sources:[g()]};case`no-cache`:return _?{fromLink:!0,sources:[m(e.getDiff()),g()]}:{fromLink:!0,sources:[g()]};case`standby`:return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new kc(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){e===void 0&&(e={});var t=this.localState.prepareContext(e);return O(O(O({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),Pc=function(){function e(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=Li(t.resolvers,e)}):this.resolvers=Li(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return re(this,arguments,void 0,function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,a=e.onlyRunForcedResolvers,o=a===void 0?!1:a;return k(this,function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,o).then(function(e){return O(O({},n),{data:e.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return nn([`client`],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return Pi(e)},e.prototype.prepareContext=function(e){var t=this.cache;return O(O({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return re(this,arguments,void 0,function(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),k(this,function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return O(O({},t),e.exportedVariables)})]:[2,O({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return Kt(e,{Directive:{enter:function(e){if(e.name.value===`client`&&e.arguments&&(t=e.arguments.some(function(e){return e.name.value===`always`&&e.value.kind===`BooleanValue`&&e.value.value===!0}),t))return Gt}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Ni(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return re(this,arguments,void 0,function(e,t,n,r,i,a){var o,s,c,l,u,d,f,p,m,h,g;return n===void 0&&(n={}),r===void 0&&(r={}),i===void 0&&(i=function(){return!0}),a===void 0&&(a=!1),k(this,function(_){return o=Mr(e),s=kr(e),c=Cn(s),l=this.collectSelectionsToResolve(o,c),u=o.operation,d=u?u.charAt(0).toUpperCase()+u.slice(1):`Query`,f=this,p=f.cache,m=f.client,h={fragmentMap:c,context:O(O({},n),{cache:p,client:m}),variables:r,fragmentMatcher:i,defaultOperationType:d,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:a},g=!1,[2,this.resolveSelectionSet(o.selectionSet,g,t,h).then(function(e){return{result:e,exportedVariables:h.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,n,r){return re(this,void 0,void 0,function(){var i,a,o,s,c,l=this;return k(this,function(u){return i=r.fragmentMap,a=r.context,o=r.variables,s=[n],c=function(e){return re(l,void 0,void 0,function(){var c,l;return k(this,function(u){return!t&&!r.selectionsToResolve.has(e)||!tn(e,o)?[2]:wr(e)?[2,this.resolveField(e,t,n,r).then(function(t){var n;t!==void 0&&s.push((n={},n[Sr(e)]=t,n))})]:(Tr(e)?c=e:(c=i[e.name.value],j(c,21,e.name.value)),c&&c.typeCondition&&(l=c.typeCondition.name.value,r.fragmentMatcher(n,l,a))?[2,this.resolveSelectionSet(c.selectionSet,t,n,r).then(function(e){s.push(e)})]:[2])})})},[2,Promise.all(e.selections.map(c)).then(function(){return Ri(s)})]})})},e.prototype.resolveField=function(e,t,n,r){return re(this,void 0,void 0,function(){var i,a,o,s,c,l,u,d,f,p=this;return k(this,function(m){return n?(i=r.variables,a=e.name.value,o=Sr(e),s=a!==o,c=n[o]||n[a],l=Promise.resolve(c),(!r.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(u=n.__typename||r.defaultOperationType,d=this.resolvers&&this.resolvers[u],d&&(f=d[s?a:o],f&&(l=Promise.resolve(zs.withValue(this.cache,f,[n,xr(e,i),r.context,{field:e,fragmentMap:r.fragmentMap}]))))),[2,l.then(function(n){if(n===void 0&&(n=c),e.directives&&e.directives.forEach(function(e){e.name.value===`export`&&e.arguments&&e.arguments.forEach(function(e){e.name.value===`as`&&e.value.kind===`StringValue`&&(r.exportedVariables[e.value.value]=n)})}),!e.selectionSet||n==null)return n;var i=e.directives?.some(function(e){return e.name.value===`client`})??!1;if(Array.isArray(n))return p.resolveSubSelectedArray(e,t||i,n,r);if(e.selectionSet)return p.resolveSelectionSet(e.selectionSet,t||i,n,r)})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,n,r){var i=this;return Promise.all(n.map(function(n){if(n===null)return null;if(Array.isArray(n))return i.resolveSubSelectedArray(e,t,n,r);if(e.selectionSet)return i.resolveSelectionSet(e.selectionSet,t,n,r)}))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;function i(e){if(!r.has(e)){var a=new Set;r.set(e,a),Kt(e,{Directive:function(e,t,r,i,o){e.name.value===`client`&&o.forEach(function(e){n(e)&&en(e)&&a.add(e)})},FragmentSpread:function(e,r,o,s,c){var l=t[e.name.value];j(l,22,e.name.value);var u=i(l);u.size>0&&(c.forEach(function(e){n(e)&&en(e)&&a.add(e)}),a.add(e),u.forEach(function(e){a.add(e)}))}})}return r.get(e)}return i(e)},e}(),Fc=!1,Ic=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw ye(16);var n=e.uri,r=e.credentials,i=e.headers,a=e.cache,o=e.documentTransform,s=e.ssrMode,c=s===void 0?!1:s,l=e.ssrForceFetchDelay,u=l===void 0?0:l,d=e.connectToDevTools,f=e.queryDeduplication,p=f===void 0?!0:f,m=e.defaultOptions,h=e.defaultContext,g=e.assumeImmutableResults,_=g===void 0?a.assumeImmutableResults:g,v=e.resolvers,y=e.typeDefs,b=e.fragmentMatcher,x=e.clientAwareness,S=e.name,C=e.version,w=e.devtools,T=e.dataMasking;globalThis.__DEV__!==!1&&(V(e,`connectToDevTools`,`ApolloClient`,"Please use `devtools.enabled` instead."),V(e,`uri`,`ApolloClient`,"Please initialize an instance of `HttpLink` with `uri` instead."),V(e,`credentials`,`ApolloClient`,"Please initialize an instance of `HttpLink` with `credentials` instead."),V(e,`headers`,`ApolloClient`,"Please initialize an instance of `HttpLink` with `headers` instead."),V(e,`name`,`ApolloClient`,"Please use the `clientAwareness.name` option instead."),V(e,`version`,`ApolloClient`,"Please use the `clientAwareness.version` option instead."),V(e,`typeDefs`,`ApolloClient`),e.link||globalThis.__DEV__!==!1&&j.warn(17));var E=e.link;E||(E=n?new Go({uri:n,credentials:r,headers:i}):ho.empty()),this.link=E,this.cache=a,this.disableNetworkFetches=c||u>0,this.queryDeduplication=p,this.defaultOptions=m||Object.create(null),this.typeDefs=y,this.devtoolsConfig=O(O({},w),{enabled:w?.enabled??d}),this.devtoolsConfig.enabled===void 0&&(this.devtoolsConfig.enabled=globalThis.__DEV__!==!1),u&&setTimeout(function(){return t.disableNetworkFetches=!1},u),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=fe,this.localState=new Pc({cache:a,client:this,resolvers:v,fragmentMatcher:b}),this.queryManager=new Nc({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:h,documentTransform:o,queryDeduplication:p,ssrMode:c,dataMasking:!!T,clientAwareness:{name:x?.name??S,version:x?.version??C},localState:this.localState,assumeImmutableResults:_,onBroadcast:this.devtoolsConfig.enabled?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return Object.defineProperty(e.prototype,`prioritizeCacheValues`,{get:function(){return this.disableNetworkFetches},set:function(e){this.disableNetworkFetches=e},enumerable:!1,configurable:!0}),e.prototype.connectToDevTools=function(){if(!(typeof window>`u`)){var e=window,t=Symbol.for(`apollo.devtools`);(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!Fc&&globalThis.__DEV__!==!1&&(Fc=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,n=void 0;typeof t==`string`&&(t.indexOf(`Chrome/`)>-1?n=`https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm`:t.indexOf(`Firefox/`)>-1&&(n=`https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/`)),n&&globalThis.__DEV__!==!1&&j.log(`Download the Apollo DevTools for a better development experience: %s`,n)}},1e4))}},Object.defineProperty(e.prototype,`documentTransform`,{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Aa(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&(e.fetchPolicy===`network-only`||e.fetchPolicy===`cache-and-network`)&&(e=O(O({},e),{fetchPolicy:`cache-first`})),globalThis.__DEV__!==!1&&(V(e,`canonizeResults`,`client.watchQuery`),V(e,`partialRefetch`,`client.watchQuery`)),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Aa(this.defaultOptions.query,e)),j(e.fetchPolicy!==`cache-and-network`,18),this.disableNetworkFetches&&e.fetchPolicy===`network-only`&&(e=O(O({},e),{fetchPolicy:`cache-first`})),globalThis.__DEV__!==!1&&(V(e,`canonizeResults`,`client.query`),V(e,`notifyOnNetworkStatusChange`,`client.query`,"This option does not affect `client.query` and can be safely removed."),e.fetchPolicy===`standby`&&globalThis.__DEV__!==!1&&j.warn(19)),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Aa(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,n=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(r){return O(O({},r),{data:t.queryManager.maskOperation({document:e.query,data:r.data,fetchPolicy:e.fetchPolicy,id:n})})})},e.prototype.readQuery=function(e,t){return t===void 0&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment(O(O({},e),(t={},t[Symbol.for(`apollo.dataMasking`)]=this.queryManager.dataMasking,t)))},e.prototype.readFragment=function(e,t){return t===void 0&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return e.broadcast!==!1&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return _o(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach(function(e,t){n.push(t),r.push(e)});var i=Promise.all(r);return i.queries=n,i.results=r,i.catch(function(e){globalThis.__DEV__!==!1&&j.debug(20,e)}),i},e.prototype.getObservableQueries=function(e){return e===void 0&&(e=`active`),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,`defaultContext`,{get:function(){return this.queryManager.defaultContext},enumerable:!1,configurable:!0}),e}();globalThis.__DEV__!==!1&&(Ic.prototype.getMemoryInternals=Hn);var Lc=new Map,Rc=new Map,zc=!0,Bc=!1;function Vc(e){return e.replace(/[\s,]+/g,` `).trim()}function Hc(e){return Vc(e.source.body.substring(e.start,e.end))}function Uc(e){var t=new Set,n=[];return e.definitions.forEach(function(e){if(e.kind===`FragmentDefinition`){var r=e.name.value,i=Hc(e.loc),a=Rc.get(r);a&&!a.has(i)?zc&&console.warn(`Warning: fragment with name `+r+` already exists.
|
|
61
61
|
graphql-tag enforces all fragment names across your application to be unique; read more about
|
|
62
|
-
this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a||Rc.set(r,a=new Set),a.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e)}),O(O({},e),{definitions:n})}function Wc(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(n){var r=e[n];r&&typeof r==`object`&&t.add(r)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}function Gc(e){var t=Vc(e);if(!Lc.has(t)){var n=Lt(e,{experimentalFragmentVariables:Bc,allowLegacyFragmentVariables:Bc});if(!n||n.kind!==`Document`)throw Error(`Not a valid GraphQL document.`);Lc.set(t,Wc(Uc(n)))}return Lc.get(t)}function G(e){var t=[...arguments].slice(1);typeof e==`string`&&(e=[e]);var n=e[0];return t.forEach(function(t,r){t&&t.kind===`Document`?n+=t.loc.source.body:n+=t,n+=e[r+1]}),Gc(n)}function Kc(){Lc.clear(),Rc.clear()}function qc(){zc=!1}function Jc(){Bc=!0}function Yc(){Bc=!1}var Xc={gql:G,resetCaches:Kc,disableFragmentWarnings:qc,enableExperimentalFragmentVariables:Jc,disableExperimentalFragmentVariables:Yc};(function(e){e.gql=Xc.gql,e.resetCaches=Xc.resetCaches,e.disableFragmentWarnings=Xc.disableFragmentWarnings,e.enableExperimentalFragmentVariables=Xc.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=Xc.disableExperimentalFragmentVariables})(G||(G={})),G.default=G;var Zc;(function(e){e[e.Query=0]=`Query`,e[e.Mutation=1]=`Mutation`,e[e.Subscription=2]=`Subscription`})(Zc||(Zc={}));var Qc;function $c(e){var t;switch(e){case Zc.Query:t=`Query`;break;case Zc.Mutation:t=`Mutation`;break;case Zc.Subscription:t=`Subscription`;break}return t}function el(e){La(`parser`,function(){globalThis.__DEV__!==!1&&j.warn(93)}),Qc||(Qc=new Ln(zn.parser||1e3));var t=Qc.get(e);if(t)return t;var n,r,i;j(!!e&&!!e.kind,94,e);for(var a=[],o=[],s=[],c=[],l=0,u=e.definitions;l<u.length;l++){var d=u[l];if(d.kind===`FragmentDefinition`){a.push(d);continue}if(d.kind===`OperationDefinition`)switch(d.operation){case`query`:o.push(d);break;case`mutation`:s.push(d);break;case`subscription`:c.push(d);break}}j(!a.length||o.length||s.length||c.length,95),j(o.length+s.length+c.length<=1,96,e,o.length,c.length,s.length),r=o.length?Zc.Query:Zc.Mutation,!o.length&&!s.length&&(r=Zc.Subscription);var f=o.length?o:s.length?s:c;j(f.length===1,97,e,f.length);var p=f[0];n=p.variableDefinitions||[],i=p.name&&p.name.kind===`Name`?p.name.value:`data`;var m={name:i,type:r,variables:n};return Qc.set(e,m),m}el.resetCache=function(){Qc=void 0},globalThis.__DEV__!==!1&&Vn(`parser`,function(){return Qc?Qc.size:0});function tl(e,t){var n=Ia(`parser`,el,[e]),r=$c(t),i=$c(n.type);j(n.type===t,98,r,r,i)}var nl=yn?H.useLayoutEffect:H.useEffect;function rl(e,t,n,r){"use no memo";r===void 0&&(r=`Please remove this option.`);var i=H.useRef(!1);globalThis.__DEV__!==!1&&t in e&&!i.current&&(V(e,t,n,r),i.current=!0)}var il=Symbol.for(`apollo.hook.wrappers`);function al(e,t,n){var r=n.queryManager,i=r&&r[il],a=i&&i[e];return a?a(t):t}var ol=Object.prototype.hasOwnProperty;function sl(){}var cl=Symbol();function ll(e,t){return t===void 0&&(t=Object.create(null)),al(`useQuery`,ul,Ba(t&&t.client))(e,t)}function ul(e,t){globalThis.__DEV__!==!1&&(rl(t,`canonizeResults`,`useQuery`),rl(t,`partialRefetch`,`useQuery`),rl(t,`defaultOptions`,`useQuery`,`Pass the options directly to the hook instead.`),rl(t,`onCompleted`,`useQuery`,"If your `onCompleted` callback sets local state, switch to use derived state using `data` returned from the hook instead. Use `useEffect` to perform side-effects as a result of updates to `data`."),rl(t,`onError`,`useQuery`,"If your `onError` callback sets local state, switch to use derived state using `data`, `error` or `errors` returned from the hook instead. Use `useEffect` if you need to perform side-effects as a result of updates to `data`, `error` or `errors`."));var n=fl(e,t),r=n.result,i=n.obsQueryFields;return H.useMemo(function(){return O(O({},r),i)},[r,i])}function dl(e,t,n,r,i){function a(a){return tl(t,Zc.Query),{client:e,query:t,observable:r&&r.getSSRObservable(i())||Cc.inactiveOnCreation.withValue(!r,function(){return Ia([`canonizeResults`,`partialRefetch`],function(){return e.watchQuery(_l(void 0,e,n,i()))})}),resultData:{previousData:a?.resultData.current?.data}}}var o=H.useState(a),s=o[0],c=o[1];function l(e){var t;Object.assign(s.observable,(t={},t[cl]=e,t));var n=s.resultData;c(O(O({},s),{query:e.query,resultData:Object.assign(n,{previousData:n.current?.data||n.previousData,current:void 0})}))}if(e!==s.client||t!==s.query){var u=a(s);return c(u),[u,l]}return[s,l]}function fl(e,t){var n=Ba(t.client),r=H.useContext(za()).renderPromises,i=!!r,a=n.disableNetworkFetches,o=t.ssr!==!1&&!t.skip,s=t.partialRefetch,c=gl(n,e,t,i),l=dl(n,e,t,r,c),u=l[0],d=u.observable,f=u.resultData,p=l[1],m=c(d);hl(f,d,n,t,m);var h=H.useMemo(function(){return Dl(d)},[d]);return ml(d,r,o),{result:pl(f,d,n,t,m,a,s,i,{onCompleted:t.onCompleted||sl,onError:t.onError||sl}),obsQueryFields:h,observable:d,resultData:f,client:n,onQueryExecuted:p}}function pl(e,t,n,r,i,a,o,s,c){var l=H.useRef(c);H.useEffect(function(){l.current=c});var u=(s||a)&&r.ssr===!1&&!r.skip?Tl:r.skip||i.fetchPolicy===`standby`?El:void 0,d=e.previousData,f=H.useMemo(function(){return u&&Cl(u,d,t,n)},[n,t,u,d]);return Ha(H.useCallback(function(r){if(s)return function(){};var i=function(){var i=e.current,a=t.getCurrentResult();i&&i.loading===a.loading&&i.networkStatus===a.networkStatus&&U(i.data,a.data)||vl(a,e,t,n,o,r,l.current)},a=function(s){if(c.current.unsubscribe(),c.current=t.resubscribeAfterError(i,a),!ol.call(s,`graphQLErrors`))throw s;var u=e.current;(!u||u&&u.loading||!U(s,u.error))&&vl({data:u&&u.data,error:s,loading:!1,networkStatus:W.error},e,t,n,o,r,l.current)},c={current:t.subscribe(i,a)};return function(){setTimeout(function(){return c.current.unsubscribe()})}},[a,s,t,e,o,n]),function(){return f||bl(e,t,l.current,o,n)},function(){return f||bl(e,t,l.current,o,n)})}function ml(e,t,n){t&&n&&(t.registerSSRObservable(e),e.getCurrentResult().loading&&t.addObservableQueryPromise(e))}function hl(e,t,n,r,i){t[cl]&&!U(t[cl],i)&&(t.reobserve(_l(t,n,r,i)),e.previousData=e.current?.data||e.previousData,e.current=void 0),t[cl]=i}function gl(e,t,n,r){n===void 0&&(n={});var i=n.skip;n.ssr,n.onCompleted,n.onError;var a=n.defaultOptions,o=ne(n,[`skip`,`ssr`,`onCompleted`,`onError`,`defaultOptions`]);return function(n){var s=Object.assign(o,{query:t});return r&&(s.fetchPolicy===`network-only`||s.fetchPolicy===`cache-and-network`)&&(s.fetchPolicy=`cache-first`),s.variables||(s.variables={}),i?(s.initialFetchPolicy=s.initialFetchPolicy||s.fetchPolicy||xl(a,e.defaultOptions),s.fetchPolicy=`standby`):s.fetchPolicy||(s.fetchPolicy=n?.options.initialFetchPolicy||xl(a,e.defaultOptions)),s}}function _l(e,t,n,r){var i=[],a=t.defaultOptions.watchQuery;return a&&i.push(a),n.defaultOptions&&i.push(n.defaultOptions),i.push(ka(e&&e.options,r)),i.reduce(Aa)}function vl(e,t,n,r,i,a,o){var s=t.current;s&&s.data&&(t.previousData=s.data),!e.error&&Ti(e.errors)&&(e.error=new io({graphQLErrors:e.errors})),t.current=Cl(wl(e,n,i),t.previousData,n,r),a(),yl(e,s?.networkStatus,o)}function yl(e,t,n){if(!e.loading){var r=Sl(e);Promise.resolve().then(function(){r?n.onError(r):e.data&&t!==e.networkStatus&&e.networkStatus===W.ready&&n.onCompleted(e.data)}).catch(function(e){globalThis.__DEV__!==!1&&j.warn(e)})}}function bl(e,t,n,r,i){return e.current||vl(t.getCurrentResult(),e,t,i,r,function(){},n),e.current}function xl(e,t){return e?.fetchPolicy||t?.watchQuery?.fetchPolicy||`cache-first`}function Sl(e){return Ti(e.errors)?new io({graphQLErrors:e.errors}):e.error}function Cl(e,t,n,r){var i=e.data;e.partial;var a=ne(e,[`data`,`partial`]);return O(O({data:i},a),{client:r,observable:n,variables:n.variables,called:e!==Tl&&e!==El,previousData:t})}function wl(e,t,n){return e.partial&&n&&!e.loading&&(!e.data||Object.keys(e.data).length===0)&&t.options.fetchPolicy!==`cache-only`?(t.refetch(),O(O({},e),{loading:!0,networkStatus:W.refetch})):e}var Tl=ga({loading:!0,data:void 0,error:void 0,networkStatus:W.loading}),El=ga({loading:!1,data:void 0,error:void 0,networkStatus:W.ready});function Dl(e){return{refetch:e.refetch.bind(e),reobserve:function(){var t=[...arguments];return globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&j.warn(83),e.reobserve.apply(e,t)},fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}function Ol(e,t){globalThis.__DEV__!==!1&&rl(t||{},`ignoreResults`,`useMutation`,"If you don't want to synchronize component state with the mutation, please use the `useApolloClient` hook to get the client instance and call `client.mutate` directly.");var n=Ba(t?.client);tl(e,Zc.Mutation);var r=H.useState({called:!1,loading:!1,client:n}),i=r[0],a=r[1],o=H.useRef({result:i,mutationId:0,isMounted:!0,client:n,mutation:e,options:t});nl(function(){Object.assign(o.current,{client:n,options:t,mutation:e})});var s=H.useCallback(function(e){e===void 0&&(e={});var t=o.current,n=t.options,r=t.mutation,i=O(O({},n),{mutation:r}),s=e.client||o.current.client;!o.current.result.loading&&!i.ignoreResults&&o.current.isMounted&&a(o.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:s});var c=++o.current.mutationId,l=Aa(i,e);return s.mutate(l).then(function(t){var n=t.data,r=t.errors,i=r&&r.length>0?new io({graphQLErrors:r}):void 0,u=e.onError||o.current.options?.onError;if(i&&u&&u(i,l),c===o.current.mutationId&&!l.ignoreResults){var d={called:!0,loading:!1,data:n,error:i,client:s};o.current.isMounted&&!U(o.current.result,d)&&a(o.current.result=d)}var f=e.onCompleted||o.current.options?.onCompleted;return i||f?.(t.data,l),t},function(t){if(c===o.current.mutationId&&o.current.isMounted){var n={loading:!1,error:t,data:void 0,called:!0,client:s};U(o.current.result,n)||a(o.current.result=n)}var r=e.onError||o.current.options?.onError;if(r)return r(t,l),{data:void 0,errors:t};throw t})},[]),c=H.useCallback(function(){if(o.current.isMounted){var e={called:!1,loading:!1,client:o.current.client};Object.assign(o.current,{mutationId:0,result:e}),a(e)}},[]);return H.useEffect(function(){var e=o.current;return e.isMounted=!0,function(){e.isMounted=!1}},[]),[s,O({reset:c},i)]}function kl(e){return new ho(function(t,n){var r=ne(t,[]);return new B(function(i){var a,o=!1;return Promise.resolve(r).then(function(n){return e(n,t.getContext())}).then(t.setContext).then(function(){o||(a=n(t).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)}))}).catch(i.error.bind(i)),function(){o=!0,a&&a.unsubscribe()}})})}function Al(e){return new ho(function(t,n){return new B(function(r){var i,a,o;try{i=n(t).subscribe({next:function(i){if(i.errors?o=e({graphQLErrors:i.errors,response:i,operation:t,forward:n}):to(i)&&(o=e({protocolErrors:i.extensions[eo],response:i,operation:t,forward:n})),o){a=o.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.next(i)},error:function(i){if(o=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors||void 0,forward:n}),o){a=o.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.error(i)},complete:function(){o||r.complete.bind(r)()}})}catch(i){e({networkError:i,operation:t,forward:n}),r.error(i)}return function(){i&&i.unsubscribe(),a&&i.unsubscribe()}})})}(function(e){te(t,e);function t(t){var n=e.call(this)||this;return n.link=Al(t),n}return t.prototype.request=function(e,t){return this.link.request(e,t)},t})(ho);var jl=`x-web-preview-token`,Ml={WEB_PREVIEW_TOKEN_EXPIRED:`expired`,WEB_PREVIEW_TOKEN_INVALID:`invalid`,WEB_PREVIEW_TOKEN_REVOKED:`revoked`,WEB_PREVIEW_TOKEN_MISMATCH:`mismatch`};function Nl(e){return typeof e==`string`?Ml[e]??null:null}function Pl(e){return!e||typeof e!=`object`?null:Nl(e.code)}function Fl(e){for(let t of e??[]){let e=t?.extensions,n=Nl(e?.code);if(n)return n}return null}function Il(e){if(!e||typeof e!=`object`)return null;let{result:t,bodyText:n}=e,r=Pl(t);if(r)return r;let i=t?.errors,a=Fl(Array.isArray(i)?i:void 0);if(a)return a;if(typeof n==`string`)try{return Pl(JSON.parse(n))}catch{return null}return null}var Ll=8e3,Rl=new Set([`disabled`,`plan_blocked`]),zl=new Set([400,401,403,404]);async function Bl(e,t){if(e.status!==401&&e.status!==403||!t.headers?.[`x-web-preview-token`])return null;try{return Pl(await e.json())}catch{return null}}async function Vl(e,t,n=Ll){let r=new AbortController,i,a=new Promise(e=>{i=setTimeout(()=>{r.abort(),e({kind:`transient`})},n)}),o=(async()=>{try{let n=await fetch(e,{...t,signal:r.signal});if(zl.has(n.status)){let e=await Bl(n,t);return e?{kind:`transient`,previewReason:e}:{kind:`definitive`,reason:n.status}}if(!n.ok)return{kind:`transient`};let i=await n.json();if(!i||typeof i!=`object`||Array.isArray(i))return{kind:`transient`};let a=i;return a.status===`active`?{kind:`ok`,value:a}:typeof a.status==`string`&&Rl.has(a.status)?{kind:`definitive`,reason:a.status}:{kind:`transient`}}catch{return{kind:`transient`}}})();try{return await Promise.race([o,a])}finally{clearTimeout(i)}}var Hl=[`HINT`,`SYSTEM`,`MESSAGE`],Ul=3;function Wl(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Gl(e){return typeof e==`string`&&e.length>0}function Kl(e){return Wl(e)?{...e}:void 0}function ql(e){return Array.isArray(e)?e.filter(e=>Wl(e)&&Gl(e.id)&&Gl(e.label)).slice(0,Ul).map(e=>({id:e.id,label:e.label})):[]}function Jl(e){if(!Wl(e)||!Gl(e.id)||!Gl(e.text))return null;let t=Kl(e.when);return{id:e.id,...t?{when:t}:{},text:e.text,buttons:ql(e.buttons),...Gl(e.contentHash)?{contentHash:e.contentHash}:{}}}function Yl(e){return e===void 0?{}:{reappearAfterDays:typeof e==`number`&&Number.isInteger(e)&&e>=1&&e<=365?e:null}}function Xl(e){if(!Array.isArray(e))return[];let t=[];for(let n of e){if(!Wl(n)||!Gl(n.id)||!Array.isArray(n.variants))continue;let e=Hl.includes(n.kind)?n.kind:null;if(!e)continue;let r=n.variants.map(Jl).filter(e=>!!e);r.length!==0&&t.push({id:n.id,kind:e,variants:r,...Yl(n.reappearAfterDays)})}return t}function Zl(e){if(!Array.isArray(e))return null;let t=[];for(let n of e){if(!Wl(n)||!Gl(n.id)||!Array.isArray(n.variants))continue;let e=[];for(let t of n.variants){if(!Wl(t)||!Gl(t.id)||!Wl(t.block)||!Gl(t.block.kind))continue;let n=Kl(t.when);e.push({id:t.id,...n?{when:n}:{},block:t.block})}e.length>0&&t.push({id:n.id,kind:Gl(n.kind)?n.kind:``,variants:e})}return t.length>0?t:null}function Ql(e){let t=Wl(e)?e:{};return{messageSlots:Xl(t.messageSlots),homeSlots:Zl(t.homeSlots)}}var $l=`https://api.wexio.io`,eu=`http://localhost:3001`,tu=`https://local.api.wexio.io:3443`;function nu(){let e=ru(`NEXT_PUBLIC_WEXIO_API_URL`);if(e)return e;if(typeof window<`u`){let{protocol:e,hostname:t}=window.location;if(e===`https:`&&/^local\.[a-z-]+\.wexio\.io$/i.test(t))return tu;if(e===`https:`&&/\.wexio\.io$/i.test(t)){let e=t.replace(/^(app|templates)\./i,`api.`).replace(/\.(app|templates)\./i,`.api.`);return e===t?$l:`https://${e}`}if(t===`localhost`||t===`127.0.0.1`||t===`[::1]`)return eu}return $l}function ru(e){try{if(e===`NEXT_PUBLIC_WEXIO_API_URL`){let e=process.env.NEXT_PUBLIC_WEXIO_API_URL;return typeof e==`string`?e:``}let t=process.env.NEXT_PUBLIC_WEXIO_DEMO_PK;return typeof t==`string`?t:``}catch{return``}}function iu(){return ru(`NEXT_PUBLIC_WEXIO_DEMO_PK`)}function au(e,t){return{"x-web-public-key":e,...t?{[jl]:t}:{}}}function ou(e,t,n){for(let r of e.keys())r!==n&&r.startsWith(`${t}|pv:`)&&e.delete(r)}var su=new Map;function cu(e,t,n){if(!e)return Promise.resolve({kind:`transient`});let r=`${e}|${t??``}`,i=`${r}${n?`|pv:${n}`:``}`,a=su.get(i);if(a)return a;n&&ou(su,r,i);let o=(async()=>{let r=new URL(`${nu()}/api/web/config/${encodeURIComponent(e)}`);t&&r.searchParams.set(`locale`,t);let i=await Vl(r.toString(),{method:`GET`,headers:au(e,n),credentials:`omit`});if(i.kind!==`ok`)return i;try{return{kind:`ok`,value:gu(i.value)}}catch{return{kind:`transient`}}})().then(e=>(e.kind!==`ok`&&su.delete(i),e));return su.set(i,o),o}var lu=[`NAME`,`EMAIL`,`PHONE`,`CUSTOM_TEXT`],uu=[`HINT`,`SYSTEM`,`MESSAGE`];function du(e,t,n=!1){if(e===null||!e)return null;let r=Array.isArray(e.commands)?e.commands.filter(e=>typeof e==`string`&&e.length>0).slice(0,20):[],i=Array.isArray(e.messages)?e.messages.filter(e=>!!e&&typeof e.text==`string`&&e.text.length>0&&typeof e.kind==`string`&&uu.includes(e.kind)).map(e=>({kind:e.kind,text:e.text})).slice(0,10):[];return{title:e.title??null,description:e.description??null,aiAssistantAvatar:e.aiAssistantAvatar??null,aiAssistant:(()=>{let n=e.aiAssistant??t;return{enabled:n?.enabled??!0,name:n?.name??null,avatar:n?.avatar??e.aiAssistantAvatar??null}})(),commands:r,messages:i,...n?{messageSlots:Xl(e.messageSlots)}:{},showRelatedNews:e.showRelatedNews??!0,showRelatedHelpArticles:e.showRelatedHelpArticles??!0,showReactionCounts:e.showReactionCounts??!1,profile:Array.isArray(e.profile?.fields)&&e.profile.fields.length>0?{fields:e.profile.fields.filter(e=>typeof e==`string`)}:null}}function fu(e){if(!e)return null;let t=(Array.isArray(e.fields)?e.fields:[]).filter(e=>e&&lu.includes(e.kind)).map(e=>({kind:e.kind,key:String(e.key??``),label:String(e.label??``),required:!!e.required})).filter(e=>e.key.length>0);return{enabled:!!e.enabled,fields:t}}var pu={HOME:`home`,MESSENGER:`messages`,HELP:`help`,NEWS:`news`,PROFILE:`profile`};function mu(e){return e&&Object.hasOwn(pu,e)&&pu[e]||`home`}function hu(e){return typeof e.contentVersion==`number`&&e.contentVersion>=1}function gu(e){return{status:e.status,defaultTab:mu(e.defaultTab),localeStrategy:e.localeStrategy??`AUTO`,defaultLocale:e.defaultLocale??`en`,supportedLocales:Array.isArray(e.supportedLocales)?e.supportedLocales.filter(e=>typeof e==`string`):[],contentLocaleFallback:e.contentLocaleFallback??!0,security:{requireAuth:e.security?.requireAuth??!1,google:{enabled:e.security?.google?.enabled??!1,clientId:e.security?.google?.clientId??null},passkey:{enabled:e.security?.passkey?.enabled??!1}},features:{home:e.features?.home??!0,messenger:e.features?.messenger??!0,help:e.features?.help??!0,news:e.features?.news??!0,profile:e.features?.profile??!0},theme:e.theme??null,themeMode:`auto`,prechatForm:fu(e.prechatForm),operatorAvatars:Array.isArray(e.operatorAvatars)?e.operatorAvatars.filter(e=>!!e?.src).map(e=>({src:e.src,alt:e.alt??``})):[],organizationLogo:e.logo?{light:e.logo.light??null,dark:e.logo.dark??null}:null,showLogoInLauncher:e.showLogoInLauncher??!1,greeting:{headline:e.greeting?.headline??``,subheadline:e.greeting?.subheadline??``},homeLayout:Array.isArray(e.homeLayout)&&e.homeLayout.length>0?e.homeLayout:null,branding:e.branding?.hidden?{hidden:!0}:null,sounds:e.sounds?{enabled:e.sounds.enabled??!0,inboundSoundId:e.sounds.inboundSoundId??null,outboundSoundId:e.sounds.outboundSoundId??null,volume:typeof e.sounds.volume==`number`?Math.max(0,Math.min(1,e.sounds.volume)):.5}:null,messenger:du(e.messenger,e.aiAssistant,hu(e)),...hu(e)?{contentVersion:e.contentVersion,homeSlots:Zl(e.homeSlots)}:{},botProtection:e.botProtection?.turnstile?.enabled&&e.botProtection.turnstile.siteKey?{turnstile:{enabled:!0,siteKey:e.botProtection.turnstile.siteKey}}:null,tracking:{trackWidgetLinks:e.tracking?.trackWidgetLinks??!0,trackWebsitePages:e.tracking?.trackWebsitePages??!0}}}var _u=new Map;function vu(e,t){if(!e)return Promise.resolve({kind:`transient`});let n=t?`${e}|pv:${t}`:e,r=_u.get(n);if(r)return r;t&&ou(_u,e,n);let i=(async()=>{let n=new URL(`${nu()}/api/web/config/${encodeURIComponent(e)}`);n.searchParams.set(`view`,`gate`);let r=await Vl(n.toString(),{method:`GET`,headers:au(e,t),credentials:`omit`});if(r.kind!==`ok`)return r;let i=r.value;return{kind:`ok`,value:{status:`active`,branding:i.branding?.hidden?{hidden:!0}:null,security:{requireAuth:i.security?.requireAuth??!1,google:{enabled:i.security?.google?.enabled??!1,clientId:i.security?.google?.clientId??null},passkey:{enabled:i.security?.passkey?.enabled??!1}}}}})().then(e=>(e.kind!==`ok`&&_u.delete(n),e));return _u.set(n,i),i}var yu=class{constructor(){this.current=null,this.isPaused=!1,this.expected=!1,this.requestedFor=null,this.listeners=new Set,this.snap={token:null,paused:!1,holding:!1},this.onRequest=null,this.subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}),this.snapshot=()=>this.snap}get token(){return this.current}get paused(){return this.isPaused}get isExpected(){return this.expected}get active(){return this.current!==null}setExpected(e){this.expected!==e&&(this.expected=e,this.refresh())}setToken(e){let t=e||null;t!==this.current&&(this.current=t,this.isPaused=!1,this.requestedFor=null,this.refresh())}report(e,t){this.current!==null&&(t!==void 0&&t!==this.current||this.requestedFor!==this.current&&(this.requestedFor=this.current,this.isPaused=!0,this.refresh(),this.onRequest?.(e)))}refresh(){let e={token:this.current,paused:this.isPaused,holding:this.expected&&this.current===null};if(!(e.token===this.snap.token&&e.paused===this.snap.paused&&e.holding===this.snap.holding)){this.snap=e;for(let e of[...this.listeners])e()}}},bu=new Map;function xu(){let e=new Map;return{get length(){return e.size},key:t=>Array.from(e.keys())[t]??null,getItem:t=>e.get(t)??null,setItem:(t,n)=>void e.set(t,n),removeItem:t=>void e.delete(t)}}function Su(e){let t=()=>e===`local`?localStorage:sessionStorage;return{get length(){return t().length},key:e=>t().key(e),getItem:e=>t().getItem(e),setItem:(e,n)=>t().setItem(e,n),removeItem:e=>t().removeItem(e)}}var Cu={missingPublicKey:`WEB_MISSING_PUBLIC_KEY`,messengerNotFound:`WEB_MESSENGER_NOT_FOUND`,messengerDisabled:`WEB_MESSENGER_DISABLED`,messengerInvalidOrigin:`WEB_MESSENGER_INVALID_ORIGIN`,integrationMismatch:`WEB_INTEGRATION_MISMATCH`,messengerNotAvailable:`WEB_MESSENGER_NOT_AVAILABLE`},wu={invalid:`WEB_MESSAGE_SLOT_INVALID`,threadKeyMismatch:`WEB_MESSAGE_SLOT_THREADKEY_MISMATCH`,notFound:`WEB_MESSAGE_SLOT_NOT_FOUND`},Tu=new Set(Object.values(Cu));function Eu(e){return e&&typeof e==`object`?e:null}function Du(e,t){let n=Eu(e);if(n&&(typeof n.code==`string`&&t.push(n.code),Array.isArray(n.errors)))for(let e of n.errors){let n=Eu(Eu(e)?.extensions)?.code;typeof n==`string`&&t.push(n)}}function Ou(e){let t=Eu(e);if(!t)return[];let n=[t.result];if(typeof t.bodyText==`string`)try{n.push(JSON.parse(t.bodyText))}catch{}return n}function ku(e){let t=[];for(let n of e.graphQLErrors??[]){let e=Eu(Eu(n)?.extensions)?.code;typeof e==`string`&&t.push(e)}for(let n of Ou(e.networkError))Du(n,t);return t}function Au(e){return ku(e).filter(e=>Tu.has(e))}var ju=new Set(Object.values(wu));function Mu(e){return ku(e).some(e=>ju.has(e))}function Nu(e,...t){let n=Au(e);return t.some(e=>n.includes(e))}function Pu(e){let t=Eu(e.networkError);if(typeof t?.statusCode==`number`)return t.statusCode;for(let t of e.graphQLErrors??[]){let e=Eu(Eu(t)?.extensions),n=Eu(e?.http)?.status??Eu(e?.response)?.statusCode;if(typeof n==`number`)return n}}function Fu(e){return Nu(e,Cu.messengerNotAvailable,Cu.messengerDisabled)}var Iu=class{constructor(e=null,t={}){this.token=null,this.onUnauthorized=null,this.onIntegrationMismatch=null,this.onUnavailable=null,this.preview=new yu,this.pendingOpen={current:!1},this.cachedClient=null,this.publicKey=e,this.isolated=t.isolated??!1,this.storage=this.isolated?xu():Su(`local`),this.drafts=this.isolated?new Map:bu,this.sessionStorage=this.isolated?xu():Su(`session`)}get client(){return this.cachedClient||(this.cachedClient=Hu(this)),this.cachedClient}},Lu=new Iu;function Ru(){return Lu}var zu=new Set([`StartAnonymousVisitor`,`StartIdentifiedVisitor`,`VisitorPasskeyRegistrationOptions`,`VerifyVisitorPasskeyRegistration`,`VisitorPasskeyAuthenticationOptions`,`VerifyVisitorPasskeyAuthentication`]);function Bu(e){Lu.publicKey=e}function Vu(){return Lu.publicKey}function Hu(e){let t=new Go({uri:`${nu()}/graphql`,credentials:`omit`}),n=kl((t,{headers:n})=>({previewTokenUsed:e.preview.token,headers:{...n,...e.publicKey?{"x-web-public-key":e.publicKey}:{},...e.token?{authorization:`Bearer ${e.token}`}:{},...e.preview.token?{[jl]:e.preview.token}:{}}}));return new Ic({link:go([Al(({operation:t,graphQLErrors:n,networkError:r})=>{if(e.preview.active){let i=Fl(n)??Il(r);if(i){e.preview.report(i,t.getContext().previewTokenUsed??null);return}}if(Fu({graphQLErrors:n,networkError:r})){e.onUnavailable?.();return}if(!zu.has(t.operationName)){if(Nu({graphQLErrors:n,networkError:r},Cu.integrationMismatch)){e.onIntegrationMismatch?.();return}Pu({graphQLErrors:n,networkError:r})===401&&e.onUnauthorized?.()}}),n,t]),cache:new yc({typePolicies:{}}),defaultOptions:{watchQuery:{errorPolicy:`all`,fetchPolicy:`cache-first`},query:{errorPolicy:`all`,fetchPolicy:`cache-first`},mutate:{errorPolicy:`all`}}})}var Uu=m(Ru());function Wu({instance:e,children:t}){return T(Uu.Provider,{value:e,children:t})}function Gu(){return _(Uu)}var Ku=`Gaia`,qu=`AI Agent`;function Ju(e){return e?e.enabled?e.name?.trim()||`Gaia`:null:Ku}var Yu={maya:{_id:`demo-author-maya`,name:`Maya Chen`,photo:{url:`https://i.pravatar.cc/96?img=47`}},leo:{_id:`demo-author-leo`,name:`Leo Martins`,photo:{url:`https://i.pravatar.cc/96?img=13`}},ira:{_id:`demo-author-ira`,name:`Ira Kovalenko`,photo:{url:`https://i.pravatar.cc/96?img=32`}},sam:{_id:`demo-author-sam`,name:`Sam Okafor`,photo:{url:`https://i.pravatar.cc/96?img=68`}}};function Xu(e){return e.map(e=>Yu[e])}function Zu(e,t){let n=e.raw(t);return typeof n==`string`?n:``}var Qu=[`demo-cat-getting-started`,`demo-cat-automation`,`demo-cat-integrations`,`demo-cat-billing`];function $u(e){return Qu.map(t=>({id:t,articleCount:ed.filter(e=>e.categoryId===t).length,title:Zu(e,`help.categories.${t}.title`),description:Zu(e,`help.categories.${t}.description`)}))}var ed=[{id:`demo-article-install`,slug:`install-the-widget`,categoryId:`demo-cat-getting-started`,viewCount:2310,publishedAt:`2026-01-12T10:00:00.000Z`,authorIds:[`maya`],tagSlugs:[`setup`,`install`]},{id:`demo-article-flows`,slug:`build-your-first-flow`,categoryId:`demo-cat-automation`,viewCount:1684,publishedAt:`2026-02-04T10:00:00.000Z`,authorIds:[`leo`],tagSlugs:[`automation`,`flows`]},{id:`demo-article-slack`,slug:`connect-slack`,categoryId:`demo-cat-integrations`,viewCount:1102,publishedAt:`2026-02-22T10:00:00.000Z`,authorIds:[`leo`,`ira`],tagSlugs:[`integrations`,`slack`]},{id:`demo-article-billing`,slug:`manage-billing`,categoryId:`demo-cat-billing`,viewCount:540,publishedAt:`2026-03-18T10:00:00.000Z`,authorIds:[`maya`],tagSlugs:[`billing`,`plans`]},{id:`demo-article-theme`,slug:`customise-theme`,categoryId:`demo-cat-getting-started`,viewCount:1340,publishedAt:`2026-02-10T10:00:00.000Z`,authorIds:[`ira`],tagSlugs:[`setup`,`design`]},{id:`demo-article-handoff`,slug:`human-handoff`,categoryId:`demo-cat-automation`,viewCount:988,publishedAt:`2026-03-01T10:00:00.000Z`,authorIds:[`leo`],tagSlugs:[`automation`,`ai`]},{id:`demo-article-crm`,slug:`connect-crm`,categoryId:`demo-cat-integrations`,viewCount:763,publishedAt:`2026-03-25T10:00:00.000Z`,authorIds:[`ira`],tagSlugs:[`integrations`,`crm`]},{id:`demo-article-shortcuts`,slug:`operator-shortcuts`,categoryId:`demo-cat-getting-started`,viewCount:612,publishedAt:`2026-04-08T10:00:00.000Z`,authorIds:[`maya`],tagSlugs:[`productivity`,`inbox`]}];function td(e){return ed.map(({authorIds:t,tagSlugs:n,...r})=>({...r,title:Zu(e,`help.articles.${r.id}.title`),excerpt:Zu(e,`help.articles.${r.id}.excerpt`),contentMarkdown:Zu(e,`help.articles.${r.id}.body`),authors:Xu(t),tags:n.map(t=>({_id:`demo-tag-${t}`,slug:t,label:Zu(e,`help.tags.${t}`)}))}))}var nd=`https://cdn.wexio.io`;function rd(e){return/^https?:\/\//.test(e)?e:nd+(e.startsWith(`/`)?e:`/${e}`)}function id(e){return[{kind:`MESSAGE`,text:Zu(e,`messenger.welcome.greeting`)}]}var ad=[{id:`m-demo-1`,direction:`OUTBOUND`,sender:{kind:`ai`,name:`Gaia`},buttons:[{payload:`pricing`},{payload:`features`},{payload:`handoff`}]},{id:`m-demo-2`,direction:`INBOUND`,sender:{kind:`visitor`}},{id:`m-demo-3`,direction:`OUTBOUND`,sender:{kind:`ai`,name:`Gaia`},media:[{url:`https://picsum.photos/seed/wexio-hero/900/600`,mimetype:`image/jpeg`,width:900,height:600}]},{id:`m-demo-4`,direction:`INBOUND`,sender:{kind:`visitor`},media:[{url:`https://upload.wikimedia.org/wikipedia/commons/2/2c/Rotating_earth_%28large%29.gif`,mimetype:`image/gif`,width:400,height:400}],deliveryStatus:`READ`},{id:`m-demo-5`,direction:`OUTBOUND`,sender:{kind:`ai`,name:`Gaia`}},{id:`m-demo-6`,direction:`OUTBOUND`,sender:{kind:`operator`,name:`Alex`},media:[{url:`https://picsum.photos/seed/wexio-a/800/600`,mimetype:`image/jpeg`,width:800,height:600},{url:`https://picsum.photos/seed/wexio-b/800/600`,mimetype:`image/jpeg`,width:800,height:600},{url:`https://picsum.photos/seed/wexio-c/800/600`,mimetype:`image/jpeg`,width:800,height:600},{url:`https://picsum.photos/seed/wexio-d/800/600`,mimetype:`image/jpeg`,width:800,height:600}]},{id:`m-demo-7`,direction:`OUTBOUND`,sender:{kind:`operator`,name:`Alex`},media:[{url:`https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerJoyrides.mp4`,mimetype:`video/mp4`,width:1280,height:720,poster:`https://picsum.photos/seed/wexio-video/1280/720`}]},{id:`m-demo-8`,direction:`OUTBOUND`,sender:{kind:`operator`,name:`Alex`},media:[{url:rd(`/sounds/wx-nt_3.mp3`),mimetype:`audio/mpeg`}]},{id:`m-demo-9`,direction:`OUTBOUND`,sender:{kind:`operator`,name:`Alex`},media:[{url:`https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf`,mimetype:`application/pdf`}]},{id:`m-demo-9b`,direction:`OUTBOUND`,sender:{kind:`operator`,name:`Alex`},media:[{url:rd(`/marketing/wexio-integrations.mp4`),mimetype:`video/mp4`,width:1280,height:720,poster:rd(`/marketing/wexio-integrations-poster.jpg`),gif:!0}]},{id:`m-demo-10`,direction:`OUTBOUND`,sender:{kind:`ai`,name:`Gaia`},buttons:[{payload:`sandbox`},{payload:`book-call`},{payload:`stay`}]}];function od(e){let t=Zu(e,`conversation.visitorName`);return ad.map(n=>{let r=`conversation.messages.${n.id}`,i={id:n.id,direction:n.direction,text:Zu(e,`${r}.text`),ageLabel:Zu(e,`${r}.ageLabel`),sender:{kind:n.sender.kind,name:n.sender.kind===`visitor`?t:n.sender.name??``,...n.sender.avatar?{avatar:n.sender.avatar}:{}}};if(n.buttons){let t=e.raw(`${r}.buttons`),a=Array.isArray(t)?t:[];i.buttons=n.buttons.map((e,t)=>({payload:e.payload,text:a[t]??``}))}if(n.media){let t=e.raw(`${r}.mediaAlts`),a=Array.isArray(t)?t:[];i.media=n.media.map((e,t)=>({...e,alt:a[t]??``}))}return n.deliveryStatus&&(i.deliveryStatus=n.deliveryStatus),i})}var sd=[{id:`demo-news-1`,publishedAt:`2026-04-30T10:00:00.000Z`,coverGradient:[`#1e1f21`,`#121314`],coverImageUrl:`https://picsum.photos/seed/wexio-pioneer/960/600`,authorIds:[`maya`,`sam`],categorySlug:`company`,tagSlugs:[`events`,`product`]},{id:`demo-news-2`,publishedAt:`2026-04-15T10:00:00.000Z`,coverGradient:[`#1e3a8a`,`#0c1e4a`],coverImageUrl:`https://picsum.photos/seed/wexio-april/960/600`,authorIds:[`leo`],categorySlug:`product`,tagSlugs:[`product`,`release`]},{id:`demo-news-3`,publishedAt:`2026-03-22T10:00:00.000Z`,coverGradient:[`#0f766e`,`#042f2e`],coverImageUrl:`https://picsum.photos/seed/wexio-langs/960/600`,authorIds:[`ira`,`leo`],categorySlug:`product`,tagSlugs:[`ai`,`languages`]},{id:`demo-news-4`,publishedAt:`2026-03-08T10:00:00.000Z`,coverGradient:[`#7c3aed`,`#2e1065`],authorIds:[`leo`],categorySlug:`engineering`,tagSlugs:[`integrations`,`slack`]},{id:`demo-news-5`,publishedAt:`2026-02-18T10:00:00.000Z`,coverGradient:[`#b45309`,`#451a03`],coverImageUrl:`https://picsum.photos/seed/wexio-inbox2/960/600`,authorIds:[`maya`],categorySlug:`product`,tagSlugs:[`inbox`,`product`]},{id:`demo-news-6`,publishedAt:`2026-02-02T10:00:00.000Z`,coverGradient:[`#155e75`,`#083344`],authorIds:[`sam`],categorySlug:`engineering`,tagSlugs:[`privacy`,`security`]},{id:`demo-news-7`,publishedAt:`2026-01-20T10:00:00.000Z`,coverGradient:[`#be185d`,`#500724`],coverImageUrl:`https://picsum.photos/seed/wexio-mobile/960/600`,authorIds:[`ira`],categorySlug:`product`,tagSlugs:[`mobile`,`beta`]},{id:`demo-news-8`,publishedAt:`2026-01-05T10:00:00.000Z`,coverGradient:[`#15803d`,`#052e16`],authorIds:[`maya`,`leo`],categorySlug:`engineering`,tagSlugs:[`ai`,`analytics`]}];function cd(e){return sd.map(({tagSlugs:t,authorIds:n,categorySlug:r,...i})=>({...i,title:Zu(e,`news.${i.id}.title`),excerpt:Zu(e,`news.${i.id}.excerpt`),contentMarkdown:Zu(e,`news.${i.id}.body`),authors:Xu(n),category:{slug:r,label:Zu(e,`news.categories.${r}`)},tags:t.map(t=>({slug:t,label:Zu(e,`news.tags.${t}`)}))}))}var ld=null;function ud(e,t=Ku){ld??(ld=Date.now());let n=ld,r=e=>new Date(n-e*6e4).toISOString(),i=[`sandbox`,`book-call`,`stay`],a=e.raw(`conversation.messages.m-demo-10.buttons`),o=(Array.isArray(a)?a:[]).map((e,t)=>({text:e,payload:i[t]??``}));return[{chatId:`thread-main`,threadKey:null,status:`OPEN`,unreadCount:1,updatedAt:r(4),preview:{text:Zu(e,`threads.main`),at:r(4),fromVisitor:!1,buttons:o},senderName:t,lastSenderKind:`ai`},{chatId:`thread-billing`,threadKey:`demo-thread-billing`,status:`PENDING`,unreadCount:0,updatedAt:r(95),preview:{text:Zu(e,`threads.billing`),at:r(95),fromVisitor:!1},senderName:t,lastSenderKind:`ai`},{chatId:`thread-integrations`,threadKey:`demo-thread-integrations`,status:`RESOLVED`,unreadCount:0,updatedAt:r(1560),preview:{text:Zu(e,`threads.integrations`),at:r(1560),fromVisitor:!0},senderName:t,lastSenderKind:`visitor`}]}wt();var dd={},fd=G`
|
|
62
|
+
this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a||Rc.set(r,a=new Set),a.add(i),t.has(i)||(t.add(i),n.push(e))}else n.push(e)}),O(O({},e),{definitions:n})}function Wc(e){var t=new Set(e.definitions);t.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(n){var r=e[n];r&&typeof r==`object`&&t.add(r)})});var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}function Gc(e){var t=Vc(e);if(!Lc.has(t)){var n=Lt(e,{experimentalFragmentVariables:Bc,allowLegacyFragmentVariables:Bc});if(!n||n.kind!==`Document`)throw Error(`Not a valid GraphQL document.`);Lc.set(t,Wc(Uc(n)))}return Lc.get(t)}function G(e){var t=[...arguments].slice(1);typeof e==`string`&&(e=[e]);var n=e[0];return t.forEach(function(t,r){t&&t.kind===`Document`?n+=t.loc.source.body:n+=t,n+=e[r+1]}),Gc(n)}function Kc(){Lc.clear(),Rc.clear()}function qc(){zc=!1}function Jc(){Bc=!0}function Yc(){Bc=!1}var Xc={gql:G,resetCaches:Kc,disableFragmentWarnings:qc,enableExperimentalFragmentVariables:Jc,disableExperimentalFragmentVariables:Yc};(function(e){e.gql=Xc.gql,e.resetCaches=Xc.resetCaches,e.disableFragmentWarnings=Xc.disableFragmentWarnings,e.enableExperimentalFragmentVariables=Xc.enableExperimentalFragmentVariables,e.disableExperimentalFragmentVariables=Xc.disableExperimentalFragmentVariables})(G||(G={})),G.default=G;var Zc;(function(e){e[e.Query=0]=`Query`,e[e.Mutation=1]=`Mutation`,e[e.Subscription=2]=`Subscription`})(Zc||(Zc={}));var Qc;function $c(e){var t;switch(e){case Zc.Query:t=`Query`;break;case Zc.Mutation:t=`Mutation`;break;case Zc.Subscription:t=`Subscription`;break}return t}function el(e){La(`parser`,function(){globalThis.__DEV__!==!1&&j.warn(93)}),Qc||(Qc=new Ln(zn.parser||1e3));var t=Qc.get(e);if(t)return t;var n,r,i;j(!!e&&!!e.kind,94,e);for(var a=[],o=[],s=[],c=[],l=0,u=e.definitions;l<u.length;l++){var d=u[l];if(d.kind===`FragmentDefinition`){a.push(d);continue}if(d.kind===`OperationDefinition`)switch(d.operation){case`query`:o.push(d);break;case`mutation`:s.push(d);break;case`subscription`:c.push(d);break}}j(!a.length||o.length||s.length||c.length,95),j(o.length+s.length+c.length<=1,96,e,o.length,c.length,s.length),r=o.length?Zc.Query:Zc.Mutation,!o.length&&!s.length&&(r=Zc.Subscription);var f=o.length?o:s.length?s:c;j(f.length===1,97,e,f.length);var p=f[0];n=p.variableDefinitions||[],i=p.name&&p.name.kind===`Name`?p.name.value:`data`;var m={name:i,type:r,variables:n};return Qc.set(e,m),m}el.resetCache=function(){Qc=void 0},globalThis.__DEV__!==!1&&Vn(`parser`,function(){return Qc?Qc.size:0});function tl(e,t){var n=Ia(`parser`,el,[e]),r=$c(t),i=$c(n.type);j(n.type===t,98,r,r,i)}var nl=yn?H.useLayoutEffect:H.useEffect;function rl(e,t,n,r){"use no memo";r===void 0&&(r=`Please remove this option.`);var i=H.useRef(!1);globalThis.__DEV__!==!1&&t in e&&!i.current&&(V(e,t,n,r),i.current=!0)}var il=Symbol.for(`apollo.hook.wrappers`);function al(e,t,n){var r=n.queryManager,i=r&&r[il],a=i&&i[e];return a?a(t):t}var ol=Object.prototype.hasOwnProperty;function sl(){}var cl=Symbol();function ll(e,t){return t===void 0&&(t=Object.create(null)),al(`useQuery`,ul,Ba(t&&t.client))(e,t)}function ul(e,t){globalThis.__DEV__!==!1&&(rl(t,`canonizeResults`,`useQuery`),rl(t,`partialRefetch`,`useQuery`),rl(t,`defaultOptions`,`useQuery`,`Pass the options directly to the hook instead.`),rl(t,`onCompleted`,`useQuery`,"If your `onCompleted` callback sets local state, switch to use derived state using `data` returned from the hook instead. Use `useEffect` to perform side-effects as a result of updates to `data`."),rl(t,`onError`,`useQuery`,"If your `onError` callback sets local state, switch to use derived state using `data`, `error` or `errors` returned from the hook instead. Use `useEffect` if you need to perform side-effects as a result of updates to `data`, `error` or `errors`."));var n=fl(e,t),r=n.result,i=n.obsQueryFields;return H.useMemo(function(){return O(O({},r),i)},[r,i])}function dl(e,t,n,r,i){function a(a){return tl(t,Zc.Query),{client:e,query:t,observable:r&&r.getSSRObservable(i())||Cc.inactiveOnCreation.withValue(!r,function(){return Ia([`canonizeResults`,`partialRefetch`],function(){return e.watchQuery(_l(void 0,e,n,i()))})}),resultData:{previousData:a?.resultData.current?.data}}}var o=H.useState(a),s=o[0],c=o[1];function l(e){var t;Object.assign(s.observable,(t={},t[cl]=e,t));var n=s.resultData;c(O(O({},s),{query:e.query,resultData:Object.assign(n,{previousData:n.current?.data||n.previousData,current:void 0})}))}if(e!==s.client||t!==s.query){var u=a(s);return c(u),[u,l]}return[s,l]}function fl(e,t){var n=Ba(t.client),r=H.useContext(za()).renderPromises,i=!!r,a=n.disableNetworkFetches,o=t.ssr!==!1&&!t.skip,s=t.partialRefetch,c=gl(n,e,t,i),l=dl(n,e,t,r,c),u=l[0],d=u.observable,f=u.resultData,p=l[1],m=c(d);hl(f,d,n,t,m);var h=H.useMemo(function(){return Dl(d)},[d]);return ml(d,r,o),{result:pl(f,d,n,t,m,a,s,i,{onCompleted:t.onCompleted||sl,onError:t.onError||sl}),obsQueryFields:h,observable:d,resultData:f,client:n,onQueryExecuted:p}}function pl(e,t,n,r,i,a,o,s,c){var l=H.useRef(c);H.useEffect(function(){l.current=c});var u=(s||a)&&r.ssr===!1&&!r.skip?Tl:r.skip||i.fetchPolicy===`standby`?El:void 0,d=e.previousData,f=H.useMemo(function(){return u&&Cl(u,d,t,n)},[n,t,u,d]);return Ha(H.useCallback(function(r){if(s)return function(){};var i=function(){var i=e.current,a=t.getCurrentResult();i&&i.loading===a.loading&&i.networkStatus===a.networkStatus&&U(i.data,a.data)||vl(a,e,t,n,o,r,l.current)},a=function(s){if(c.current.unsubscribe(),c.current=t.resubscribeAfterError(i,a),!ol.call(s,`graphQLErrors`))throw s;var u=e.current;(!u||u&&u.loading||!U(s,u.error))&&vl({data:u&&u.data,error:s,loading:!1,networkStatus:W.error},e,t,n,o,r,l.current)},c={current:t.subscribe(i,a)};return function(){setTimeout(function(){return c.current.unsubscribe()})}},[a,s,t,e,o,n]),function(){return f||bl(e,t,l.current,o,n)},function(){return f||bl(e,t,l.current,o,n)})}function ml(e,t,n){t&&n&&(t.registerSSRObservable(e),e.getCurrentResult().loading&&t.addObservableQueryPromise(e))}function hl(e,t,n,r,i){t[cl]&&!U(t[cl],i)&&(t.reobserve(_l(t,n,r,i)),e.previousData=e.current?.data||e.previousData,e.current=void 0),t[cl]=i}function gl(e,t,n,r){n===void 0&&(n={});var i=n.skip;n.ssr,n.onCompleted,n.onError;var a=n.defaultOptions,o=ne(n,[`skip`,`ssr`,`onCompleted`,`onError`,`defaultOptions`]);return function(n){var s=Object.assign(o,{query:t});return r&&(s.fetchPolicy===`network-only`||s.fetchPolicy===`cache-and-network`)&&(s.fetchPolicy=`cache-first`),s.variables||(s.variables={}),i?(s.initialFetchPolicy=s.initialFetchPolicy||s.fetchPolicy||xl(a,e.defaultOptions),s.fetchPolicy=`standby`):s.fetchPolicy||(s.fetchPolicy=n?.options.initialFetchPolicy||xl(a,e.defaultOptions)),s}}function _l(e,t,n,r){var i=[],a=t.defaultOptions.watchQuery;return a&&i.push(a),n.defaultOptions&&i.push(n.defaultOptions),i.push(ka(e&&e.options,r)),i.reduce(Aa)}function vl(e,t,n,r,i,a,o){var s=t.current;s&&s.data&&(t.previousData=s.data),!e.error&&Ti(e.errors)&&(e.error=new io({graphQLErrors:e.errors})),t.current=Cl(wl(e,n,i),t.previousData,n,r),a(),yl(e,s?.networkStatus,o)}function yl(e,t,n){if(!e.loading){var r=Sl(e);Promise.resolve().then(function(){r?n.onError(r):e.data&&t!==e.networkStatus&&e.networkStatus===W.ready&&n.onCompleted(e.data)}).catch(function(e){globalThis.__DEV__!==!1&&j.warn(e)})}}function bl(e,t,n,r,i){return e.current||vl(t.getCurrentResult(),e,t,i,r,function(){},n),e.current}function xl(e,t){return e?.fetchPolicy||t?.watchQuery?.fetchPolicy||`cache-first`}function Sl(e){return Ti(e.errors)?new io({graphQLErrors:e.errors}):e.error}function Cl(e,t,n,r){var i=e.data;e.partial;var a=ne(e,[`data`,`partial`]);return O(O({data:i},a),{client:r,observable:n,variables:n.variables,called:e!==Tl&&e!==El,previousData:t})}function wl(e,t,n){return e.partial&&n&&!e.loading&&(!e.data||Object.keys(e.data).length===0)&&t.options.fetchPolicy!==`cache-only`?(t.refetch(),O(O({},e),{loading:!0,networkStatus:W.refetch})):e}var Tl=ga({loading:!0,data:void 0,error:void 0,networkStatus:W.loading}),El=ga({loading:!1,data:void 0,error:void 0,networkStatus:W.ready});function Dl(e){return{refetch:e.refetch.bind(e),reobserve:function(){var t=[...arguments];return globalThis.__DEV__!==!1&&globalThis.__DEV__!==!1&&j.warn(83),e.reobserve.apply(e,t)},fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}function Ol(e,t){globalThis.__DEV__!==!1&&rl(t||{},`ignoreResults`,`useMutation`,"If you don't want to synchronize component state with the mutation, please use the `useApolloClient` hook to get the client instance and call `client.mutate` directly.");var n=Ba(t?.client);tl(e,Zc.Mutation);var r=H.useState({called:!1,loading:!1,client:n}),i=r[0],a=r[1],o=H.useRef({result:i,mutationId:0,isMounted:!0,client:n,mutation:e,options:t});nl(function(){Object.assign(o.current,{client:n,options:t,mutation:e})});var s=H.useCallback(function(e){e===void 0&&(e={});var t=o.current,n=t.options,r=t.mutation,i=O(O({},n),{mutation:r}),s=e.client||o.current.client;!o.current.result.loading&&!i.ignoreResults&&o.current.isMounted&&a(o.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:s});var c=++o.current.mutationId,l=Aa(i,e);return s.mutate(l).then(function(t){var n=t.data,r=t.errors,i=r&&r.length>0?new io({graphQLErrors:r}):void 0,u=e.onError||o.current.options?.onError;if(i&&u&&u(i,l),c===o.current.mutationId&&!l.ignoreResults){var d={called:!0,loading:!1,data:n,error:i,client:s};o.current.isMounted&&!U(o.current.result,d)&&a(o.current.result=d)}var f=e.onCompleted||o.current.options?.onCompleted;return i||f?.(t.data,l),t},function(t){if(c===o.current.mutationId&&o.current.isMounted){var n={loading:!1,error:t,data:void 0,called:!0,client:s};U(o.current.result,n)||a(o.current.result=n)}var r=e.onError||o.current.options?.onError;if(r)return r(t,l),{data:void 0,errors:t};throw t})},[]),c=H.useCallback(function(){if(o.current.isMounted){var e={called:!1,loading:!1,client:o.current.client};Object.assign(o.current,{mutationId:0,result:e}),a(e)}},[]);return H.useEffect(function(){var e=o.current;return e.isMounted=!0,function(){e.isMounted=!1}},[]),[s,O({reset:c},i)]}function kl(e){return new ho(function(t,n){var r=ne(t,[]);return new B(function(i){var a,o=!1;return Promise.resolve(r).then(function(n){return e(n,t.getContext())}).then(t.setContext).then(function(){o||(a=n(t).subscribe({next:i.next.bind(i),error:i.error.bind(i),complete:i.complete.bind(i)}))}).catch(i.error.bind(i)),function(){o=!0,a&&a.unsubscribe()}})})}function Al(e){return new ho(function(t,n){return new B(function(r){var i,a,o;try{i=n(t).subscribe({next:function(i){if(i.errors?o=e({graphQLErrors:i.errors,response:i,operation:t,forward:n}):to(i)&&(o=e({protocolErrors:i.extensions[eo],response:i,operation:t,forward:n})),o){a=o.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.next(i)},error:function(i){if(o=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors||void 0,forward:n}),o){a=o.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.error(i)},complete:function(){o||r.complete.bind(r)()}})}catch(i){e({networkError:i,operation:t,forward:n}),r.error(i)}return function(){i&&i.unsubscribe(),a&&i.unsubscribe()}})})}(function(e){te(t,e);function t(t){var n=e.call(this)||this;return n.link=Al(t),n}return t.prototype.request=function(e,t){return this.link.request(e,t)},t})(ho);var jl=`x-web-preview-token`,Ml={WEB_PREVIEW_TOKEN_EXPIRED:`expired`,WEB_PREVIEW_TOKEN_INVALID:`invalid`,WEB_PREVIEW_TOKEN_REVOKED:`revoked`,WEB_PREVIEW_TOKEN_MISMATCH:`mismatch`};function Nl(e){return typeof e==`string`?Ml[e]??null:null}function Pl(e){return!e||typeof e!=`object`?null:Nl(e.code)}function Fl(e){for(let t of e??[]){let e=t?.extensions,n=Nl(e?.code);if(n)return n}return null}function Il(e){if(!e||typeof e!=`object`)return null;let{result:t,bodyText:n}=e,r=Pl(t);if(r)return r;let i=t?.errors,a=Fl(Array.isArray(i)?i:void 0);if(a)return a;if(typeof n==`string`)try{return Pl(JSON.parse(n))}catch{return null}return null}var Ll=8e3,Rl=new Set([`disabled`,`plan_blocked`]),zl=new Set([400,401,403,404]);async function Bl(e,t){if(e.status!==401&&e.status!==403||!t.headers?.[`x-web-preview-token`])return null;try{return Pl(await e.json())}catch{return null}}async function Vl(e,t,n=Ll){let r=new AbortController,i,a=new Promise(e=>{i=setTimeout(()=>{r.abort(),e({kind:`transient`})},n)}),o=(async()=>{try{let n=await fetch(e,{...t,signal:r.signal});if(zl.has(n.status)){let e=await Bl(n,t);return e?{kind:`transient`,previewReason:e}:{kind:`definitive`,reason:n.status}}if(!n.ok)return{kind:`transient`};let i=await n.json();if(!i||typeof i!=`object`||Array.isArray(i))return{kind:`transient`};let a=i;return a.status===`active`?{kind:`ok`,value:a}:typeof a.status==`string`&&Rl.has(a.status)?{kind:`definitive`,reason:a.status}:{kind:`transient`}}catch{return{kind:`transient`}}})();try{return await Promise.race([o,a])}finally{clearTimeout(i)}}var Hl=[`HINT`,`SYSTEM`,`MESSAGE`],Ul=3;function Wl(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Gl(e){return typeof e==`string`&&e.length>0}function Kl(e){return Wl(e)?{...e}:void 0}function ql(e){return Array.isArray(e)?e.filter(e=>Wl(e)&&Gl(e.id)&&Gl(e.label)).slice(0,Ul).map(e=>({id:e.id,label:e.label})):[]}function Jl(e){if(!Wl(e)||!Gl(e.id)||!Gl(e.text))return null;let t=Kl(e.when);return{id:e.id,...t?{when:t}:{},text:e.text,buttons:ql(e.buttons),...Gl(e.contentHash)?{contentHash:e.contentHash}:{}}}function Yl(e){return e===void 0?{}:{reappearAfterDays:typeof e==`number`&&Number.isInteger(e)&&e>=1&&e<=365?e:null}}function Xl(e){if(!Array.isArray(e))return[];let t=[];for(let n of e){if(!Wl(n)||!Gl(n.id)||!Array.isArray(n.variants))continue;let e=Hl.includes(n.kind)?n.kind:null;if(!e)continue;let r=n.variants.map(Jl).filter(e=>!!e);r.length!==0&&t.push({id:n.id,kind:e,variants:r,...Yl(n.reappearAfterDays)})}return t}function Zl(e){if(!Array.isArray(e))return null;let t=[];for(let n of e){if(!Wl(n)||!Gl(n.id)||!Array.isArray(n.variants))continue;let e=[];for(let t of n.variants){if(!Wl(t)||!Gl(t.id)||!Wl(t.block)||!Gl(t.block.kind))continue;let n=Kl(t.when);e.push({id:t.id,...n?{when:n}:{},block:t.block})}e.length>0&&t.push({id:n.id,kind:Gl(n.kind)?n.kind:``,variants:e})}return t.length>0?t:null}var Ql=(e,t)=>e??t??[];function $l(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}var eu=(e,t)=>!!e?.includes(t);function tu(e){if(!Wl(e)||!Gl(e.id)||!Array.isArray(e.variants))return null;let t=[];for(let n of e.variants){if(!Wl(n)||!Gl(n.id))continue;let e=Kl(n.when);t.push({id:n.id,...e?{when:e}:{},headline:typeof n.headline==`string`?n.headline:``,subheadline:typeof n.subheadline==`string`?n.subheadline:``})}return t.length>0?{id:e.id,variants:t}:null}function nu(e){let t=Wl(e)?e:{};return{messageSlots:Xl(t.messageSlots),homeSlots:Zl(t.homeSlots),...eu($l(t.capabilities),`greetingVariants`)?{greetingSlot:tu(t.greetingSlot)}:{}}}var ru=`https://api.wexio.io`,iu=`http://localhost:3001`,au=`https://local.api.wexio.io:3443`;function ou(){let e=su(`NEXT_PUBLIC_WEXIO_API_URL`);if(e)return e;if(typeof window<`u`){let{protocol:e,hostname:t}=window.location;if(e===`https:`&&/^local\.[a-z-]+\.wexio\.io$/i.test(t))return au;if(e===`https:`&&/\.wexio\.io$/i.test(t)){let e=t.replace(/^(app|templates)\./i,`api.`).replace(/\.(app|templates)\./i,`.api.`);return e===t?ru:`https://${e}`}if(t===`localhost`||t===`127.0.0.1`||t===`[::1]`)return iu}return ru}function su(e){try{if(e===`NEXT_PUBLIC_WEXIO_API_URL`){let e=process.env.NEXT_PUBLIC_WEXIO_API_URL;return typeof e==`string`?e:``}let t=process.env.NEXT_PUBLIC_WEXIO_DEMO_PK;return typeof t==`string`?t:``}catch{return``}}function cu(){return su(`NEXT_PUBLIC_WEXIO_DEMO_PK`)}function lu(e,t){return{"x-web-public-key":e,...t?{[jl]:t}:{}}}function uu(e,t,n){for(let r of e.keys())r!==n&&r.startsWith(`${t}|pv:`)&&e.delete(r)}var du=new Map;function fu(e,t,n){if(!e)return Promise.resolve({kind:`transient`});let r=`${e}|${t??``}`,i=`${r}${n?`|pv:${n}`:``}`,a=du.get(i);if(a)return a;n&&uu(du,r,i);let o=(async()=>{let r=new URL(`${ou()}/api/web/config/${encodeURIComponent(e)}`);t&&r.searchParams.set(`locale`,t);let i=await Vl(r.toString(),{method:`GET`,headers:lu(e,n),credentials:`omit`});if(i.kind!==`ok`)return i;try{return{kind:`ok`,value:bu(i.value)}}catch{return{kind:`transient`}}})().then(e=>(e.kind!==`ok`&&du.delete(i),e));return du.set(i,o),o}var pu=[`NAME`,`EMAIL`,`PHONE`,`CUSTOM_TEXT`],mu=[`HINT`,`SYSTEM`,`MESSAGE`];function hu(e,t,n=!1){if(e===null||!e)return null;let r=Array.isArray(e.commands)?e.commands.filter(e=>typeof e==`string`&&e.length>0).slice(0,20):[],i=Array.isArray(e.messages)?e.messages.filter(e=>!!e&&typeof e.text==`string`&&e.text.length>0&&typeof e.kind==`string`&&mu.includes(e.kind)).map(e=>({kind:e.kind,text:e.text})).slice(0,10):[];return{title:e.title??null,description:e.description??null,aiAssistantAvatar:e.aiAssistantAvatar??null,aiAssistant:(()=>{let n=e.aiAssistant??t;return{enabled:n?.enabled??!0,name:n?.name??null,avatar:n?.avatar??e.aiAssistantAvatar??null}})(),commands:r,messages:i,...n?{messageSlots:Xl(e.messageSlots)}:{},showRelatedNews:e.showRelatedNews??!0,showRelatedHelpArticles:e.showRelatedHelpArticles??!0,showReactionCounts:e.showReactionCounts??!1,profile:Array.isArray(e.profile?.fields)&&e.profile.fields.length>0?{fields:e.profile.fields.filter(e=>typeof e==`string`)}:null}}function gu(e){if(!e)return null;let t=(Array.isArray(e.fields)?e.fields:[]).filter(e=>e&&pu.includes(e.kind)).map(e=>({kind:e.kind,key:String(e.key??``),label:String(e.label??``),required:!!e.required})).filter(e=>e.key.length>0);return{enabled:!!e.enabled,fields:t}}var _u={HOME:`home`,MESSENGER:`messages`,HELP:`help`,NEWS:`news`,PROFILE:`profile`};function vu(e){return e&&Object.hasOwn(_u,e)&&_u[e]||`home`}function yu(e){return typeof e.contentVersion==`number`&&e.contentVersion>=1}function bu(e){return{status:e.status,defaultTab:vu(e.defaultTab),localeStrategy:e.localeStrategy??`AUTO`,defaultLocale:e.defaultLocale??`en`,supportedLocales:Array.isArray(e.supportedLocales)?e.supportedLocales.filter(e=>typeof e==`string`):[],contentLocaleFallback:e.contentLocaleFallback??!0,security:{requireAuth:e.security?.requireAuth??!1,google:{enabled:e.security?.google?.enabled??!1,clientId:e.security?.google?.clientId??null},passkey:{enabled:e.security?.passkey?.enabled??!1}},features:{home:e.features?.home??!0,messenger:e.features?.messenger??!0,help:e.features?.help??!0,news:e.features?.news??!0,profile:e.features?.profile??!0},theme:e.theme??null,themeMode:`auto`,prechatForm:gu(e.prechatForm),operatorAvatars:Array.isArray(e.operatorAvatars)?e.operatorAvatars.filter(e=>!!e?.src).map(e=>({src:e.src,alt:e.alt??``})):[],organizationLogo:e.logo?{light:e.logo.light??null,dark:e.logo.dark??null}:null,showLogoInLauncher:e.showLogoInLauncher??!1,greeting:{headline:e.greeting?.headline??``,subheadline:e.greeting?.subheadline??``},homeLayout:Array.isArray(e.homeLayout)&&e.homeLayout.length>0?e.homeLayout:null,branding:e.branding?.hidden?{hidden:!0}:null,sounds:e.sounds?{enabled:e.sounds.enabled??!0,inboundSoundId:e.sounds.inboundSoundId??null,outboundSoundId:e.sounds.outboundSoundId??null,volume:typeof e.sounds.volume==`number`?Math.max(0,Math.min(1,e.sounds.volume)):.5}:null,messenger:hu(e.messenger,e.aiAssistant,yu(e)),capabilities:$l(e.capabilities),...eu($l(e.capabilities),`greetingVariants`)?{greetingSlot:tu(e.greetingSlot)}:{},...yu(e)?{contentVersion:e.contentVersion,homeSlots:Zl(e.homeSlots)}:{},botProtection:e.botProtection?.turnstile?.enabled&&e.botProtection.turnstile.siteKey?{turnstile:{enabled:!0,siteKey:e.botProtection.turnstile.siteKey}}:null,tracking:{trackWidgetLinks:e.tracking?.trackWidgetLinks??!0,trackWebsitePages:e.tracking?.trackWebsitePages??!0}}}var xu=new Map;function Su(e,t){if(!e)return Promise.resolve({kind:`transient`});let n=t?`${e}|pv:${t}`:e,r=xu.get(n);if(r)return r;t&&uu(xu,e,n);let i=(async()=>{let n=new URL(`${ou()}/api/web/config/${encodeURIComponent(e)}`);n.searchParams.set(`view`,`gate`);let r=await Vl(n.toString(),{method:`GET`,headers:lu(e,t),credentials:`omit`});if(r.kind!==`ok`)return r;let i=r.value;return{kind:`ok`,value:{status:`active`,branding:i.branding?.hidden?{hidden:!0}:null,security:{requireAuth:i.security?.requireAuth??!1,google:{enabled:i.security?.google?.enabled??!1,clientId:i.security?.google?.clientId??null},passkey:{enabled:i.security?.passkey?.enabled??!1}}}}})().then(e=>(e.kind!==`ok`&&xu.delete(n),e));return xu.set(n,i),i}function Cu(e,t){let n=`${t}:`,r=()=>{let t=[];for(let r=0;r<e.length;r++){let i=e.key(r);i?.startsWith(n)&&t.push(i.slice(n.length))}return t};return{get length(){return r().length},key:e=>r()[e]??null,getItem:t=>e.getItem(n+t),setItem:(t,r)=>e.setItem(n+t,r),removeItem:t=>e.removeItem(n+t)}}var wu=class{constructor(){this.current=null,this.isPaused=!1,this.expected=!1,this.requestedFor=null,this.listeners=new Set,this.snap={token:null,paused:!1,holding:!1},this.onRequest=null,this.subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}),this.snapshot=()=>this.snap}get token(){return this.current}get paused(){return this.isPaused}get isExpected(){return this.expected}get active(){return this.current!==null}setExpected(e){this.expected!==e&&(this.expected=e,this.refresh())}setToken(e){let t=e||null;t!==this.current&&(this.current=t,this.isPaused=!1,this.requestedFor=null,this.refresh())}report(e,t){this.current!==null&&(t!==void 0&&t!==this.current||this.requestedFor!==this.current&&(this.requestedFor=this.current,this.isPaused=!0,this.refresh(),this.onRequest?.(e)))}requestRefresh(){this.current===null||this.requestedFor===this.current||(this.requestedFor=this.current,this.onRequest?.(`expiring`))}refresh(){let e={token:this.current,paused:this.isPaused,holding:this.expected&&this.current===null};if(!(e.token===this.snap.token&&e.paused===this.snap.paused&&e.holding===this.snap.holding)){this.snap=e;for(let e of[...this.listeners])e()}}},Tu=new Map;function Eu(){let e=new Map;return{get length(){return e.size},key:t=>Array.from(e.keys())[t]??null,getItem:t=>e.get(t)??null,setItem:(t,n)=>void e.set(t,n),removeItem:t=>void e.delete(t)}}function Du(e){let t=()=>e===`local`?localStorage:sessionStorage;return{get length(){return t().length},key:e=>t().key(e),getItem:e=>t().getItem(e),setItem:(e,n)=>t().setItem(e,n),removeItem:e=>t().removeItem(e)}}var Ou={missingPublicKey:`WEB_MISSING_PUBLIC_KEY`,messengerNotFound:`WEB_MESSENGER_NOT_FOUND`,messengerDisabled:`WEB_MESSENGER_DISABLED`,messengerInvalidOrigin:`WEB_MESSENGER_INVALID_ORIGIN`,integrationMismatch:`WEB_INTEGRATION_MISMATCH`,messengerNotAvailable:`WEB_MESSENGER_NOT_AVAILABLE`,previewVisitorLimit:`WEB_PREVIEW_VISITOR_LIMIT`},ku={invalid:`WEB_MESSAGE_SLOT_INVALID`,threadKeyMismatch:`WEB_MESSAGE_SLOT_THREADKEY_MISMATCH`,notFound:`WEB_MESSAGE_SLOT_NOT_FOUND`},Au=new Set(Object.values(Ou));function ju(e){return e&&typeof e==`object`?e:null}function Mu(e,t){let n=ju(e);if(n&&(typeof n.code==`string`&&t.push(n.code),Array.isArray(n.errors)))for(let e of n.errors){let n=ju(ju(e)?.extensions)?.code;typeof n==`string`&&t.push(n)}}function Nu(e){let t=ju(e);if(!t)return[];let n=[t.result];if(typeof t.bodyText==`string`)try{n.push(JSON.parse(t.bodyText))}catch{}return n}function Pu(e){let t=[];for(let n of e.graphQLErrors??[]){let e=ju(ju(n)?.extensions)?.code;typeof e==`string`&&t.push(e)}for(let n of Nu(e.networkError))Mu(n,t);return t}function Fu(e){return Pu(e).filter(e=>Au.has(e))}var Iu=new Set(Object.values(ku));function Lu(e){return Pu(e).some(e=>Iu.has(e))}function Ru(e,...t){let n=Fu(e);return t.some(e=>n.includes(e))}function zu(e){let t=ju(e.networkError);if(typeof t?.statusCode==`number`)return t.statusCode;for(let t of e.graphQLErrors??[]){let e=ju(ju(t)?.extensions),n=ju(e?.http)?.status??ju(e?.response)?.statusCode;if(typeof n==`number`)return n}}function Bu(e){return Ru(e,Ou.messengerNotAvailable,Ou.messengerDisabled)}var Vu=class{constructor(e=null,t={}){this.token=null,this.onUnauthorized=null,this.onIntegrationMismatch=null,this.onUnavailable=null,this.preview=new wu,this.pendingOpen={current:!1},this.cachedClient=null,this.publicKey=e,this.isolated=t.isolated??!1;let n=!this.isolated&&t.storageNamespace?t.storageNamespace:null;this.storageNamespace=n;let r=e=>n?Cu(Du(e),n):Du(e);this.storage=this.isolated?Eu():r(`local`),this.drafts=this.isolated?new Map:n?Uu(n):Tu,this.sessionStorage=this.isolated?Eu():r(`session`)}get outboxKey(){return this.publicKey&&this.storageNamespace?`${this.storageNamespace}:${this.publicKey}`:this.publicKey}get client(){return this.cachedClient||(this.cachedClient=Yu(this)),this.cachedClient}},Hu=new Map;function Uu(e){let t=Hu.get(e);if(t)return t;let n=new Map;return Hu.set(e,n),n}var Wu=new Vu;function Gu(){return Wu}var Ku=new Set([`StartAnonymousVisitor`,`StartIdentifiedVisitor`,`VisitorPasskeyRegistrationOptions`,`VerifyVisitorPasskeyRegistration`,`VisitorPasskeyAuthenticationOptions`,`VerifyVisitorPasskeyAuthentication`]);function qu(e){Wu.publicKey=e}function Ju(){return Wu.publicKey}function Yu(e){let t=new Go({uri:`${ou()}/graphql`,credentials:`omit`}),n=kl((t,{headers:n})=>({previewTokenUsed:e.preview.token,headers:{...n,...e.publicKey?{"x-web-public-key":e.publicKey}:{},...e.token?{authorization:`Bearer ${e.token}`}:{},...e.preview.token?{[jl]:e.preview.token}:{}}}));return new Ic({link:go([Al(({operation:t,graphQLErrors:n,networkError:r})=>{if(e.preview.active){let i=Fl(n)??Il(r);if(i){e.preview.report(i,t.getContext().previewTokenUsed??null);return}}if(Bu({graphQLErrors:n,networkError:r})){e.onUnavailable?.();return}if(!Ku.has(t.operationName)){if(Ru({graphQLErrors:n,networkError:r},Ou.integrationMismatch)){e.onIntegrationMismatch?.();return}zu({graphQLErrors:n,networkError:r})===401&&e.onUnauthorized?.()}}),n,t]),cache:new yc({typePolicies:{}}),defaultOptions:{watchQuery:{errorPolicy:`all`,fetchPolicy:`cache-first`},query:{errorPolicy:`all`,fetchPolicy:`cache-first`},mutate:{errorPolicy:`all`}}})}var Xu=m(Gu());function Zu({instance:e,children:t}){return T(Xu.Provider,{value:e,children:t})}function Qu(){return _(Xu)}var $u=`Gaia`,ed=`AI Agent`;function td(e){return e?e.enabled?e.name?.trim()||`Gaia`:null:$u}var nd={maya:{_id:`demo-author-maya`,name:`Maya Chen`,photo:{url:`https://i.pravatar.cc/96?img=47`}},leo:{_id:`demo-author-leo`,name:`Leo Martins`,photo:{url:`https://i.pravatar.cc/96?img=13`}},ira:{_id:`demo-author-ira`,name:`Ira Kovalenko`,photo:{url:`https://i.pravatar.cc/96?img=32`}},sam:{_id:`demo-author-sam`,name:`Sam Okafor`,photo:{url:`https://i.pravatar.cc/96?img=68`}}};function rd(e){return e.map(e=>nd[e])}function id(e,t){let n=e.raw(t);return typeof n==`string`?n:``}var ad=[`demo-cat-getting-started`,`demo-cat-automation`,`demo-cat-integrations`,`demo-cat-billing`];function od(e){return ad.map(t=>({id:t,articleCount:sd.filter(e=>e.categoryId===t).length,title:id(e,`help.categories.${t}.title`),description:id(e,`help.categories.${t}.description`)}))}var sd=[{id:`demo-article-install`,slug:`install-the-widget`,categoryId:`demo-cat-getting-started`,viewCount:2310,publishedAt:`2026-01-12T10:00:00.000Z`,authorIds:[`maya`],tagSlugs:[`setup`,`install`]},{id:`demo-article-flows`,slug:`build-your-first-flow`,categoryId:`demo-cat-automation`,viewCount:1684,publishedAt:`2026-02-04T10:00:00.000Z`,authorIds:[`leo`],tagSlugs:[`automation`,`flows`]},{id:`demo-article-slack`,slug:`connect-slack`,categoryId:`demo-cat-integrations`,viewCount:1102,publishedAt:`2026-02-22T10:00:00.000Z`,authorIds:[`leo`,`ira`],tagSlugs:[`integrations`,`slack`]},{id:`demo-article-billing`,slug:`manage-billing`,categoryId:`demo-cat-billing`,viewCount:540,publishedAt:`2026-03-18T10:00:00.000Z`,authorIds:[`maya`],tagSlugs:[`billing`,`plans`]},{id:`demo-article-theme`,slug:`customise-theme`,categoryId:`demo-cat-getting-started`,viewCount:1340,publishedAt:`2026-02-10T10:00:00.000Z`,authorIds:[`ira`],tagSlugs:[`setup`,`design`]},{id:`demo-article-handoff`,slug:`human-handoff`,categoryId:`demo-cat-automation`,viewCount:988,publishedAt:`2026-03-01T10:00:00.000Z`,authorIds:[`leo`],tagSlugs:[`automation`,`ai`]},{id:`demo-article-crm`,slug:`connect-crm`,categoryId:`demo-cat-integrations`,viewCount:763,publishedAt:`2026-03-25T10:00:00.000Z`,authorIds:[`ira`],tagSlugs:[`integrations`,`crm`]},{id:`demo-article-shortcuts`,slug:`operator-shortcuts`,categoryId:`demo-cat-getting-started`,viewCount:612,publishedAt:`2026-04-08T10:00:00.000Z`,authorIds:[`maya`],tagSlugs:[`productivity`,`inbox`]}];function cd(e){return sd.map(({authorIds:t,tagSlugs:n,...r})=>({...r,title:id(e,`help.articles.${r.id}.title`),excerpt:id(e,`help.articles.${r.id}.excerpt`),contentMarkdown:id(e,`help.articles.${r.id}.body`),authors:rd(t),tags:n.map(t=>({_id:`demo-tag-${t}`,slug:t,label:id(e,`help.tags.${t}`)}))}))}var ld=`https://cdn.wexio.io`;function ud(e){return/^https?:\/\//.test(e)?e:ld+(e.startsWith(`/`)?e:`/${e}`)}function dd(e){return[{kind:`MESSAGE`,text:id(e,`messenger.welcome.greeting`)}]}var fd=[{id:`m-demo-1`,direction:`OUTBOUND`,sender:{kind:`ai`,name:`Gaia`},buttons:[{payload:`pricing`},{payload:`features`},{payload:`handoff`}]},{id:`m-demo-2`,direction:`INBOUND`,sender:{kind:`visitor`}},{id:`m-demo-3`,direction:`OUTBOUND`,sender:{kind:`ai`,name:`Gaia`},media:[{url:`https://picsum.photos/seed/wexio-hero/900/600`,mimetype:`image/jpeg`,width:900,height:600}]},{id:`m-demo-4`,direction:`INBOUND`,sender:{kind:`visitor`},media:[{url:`https://upload.wikimedia.org/wikipedia/commons/2/2c/Rotating_earth_%28large%29.gif`,mimetype:`image/gif`,width:400,height:400}],deliveryStatus:`READ`},{id:`m-demo-5`,direction:`OUTBOUND`,sender:{kind:`ai`,name:`Gaia`}},{id:`m-demo-6`,direction:`OUTBOUND`,sender:{kind:`operator`,name:`Alex`},media:[{url:`https://picsum.photos/seed/wexio-a/800/600`,mimetype:`image/jpeg`,width:800,height:600},{url:`https://picsum.photos/seed/wexio-b/800/600`,mimetype:`image/jpeg`,width:800,height:600},{url:`https://picsum.photos/seed/wexio-c/800/600`,mimetype:`image/jpeg`,width:800,height:600},{url:`https://picsum.photos/seed/wexio-d/800/600`,mimetype:`image/jpeg`,width:800,height:600}]},{id:`m-demo-7`,direction:`OUTBOUND`,sender:{kind:`operator`,name:`Alex`},media:[{url:`https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerJoyrides.mp4`,mimetype:`video/mp4`,width:1280,height:720,poster:`https://picsum.photos/seed/wexio-video/1280/720`}]},{id:`m-demo-8`,direction:`OUTBOUND`,sender:{kind:`operator`,name:`Alex`},media:[{url:ud(`/sounds/wx-nt_3.mp3`),mimetype:`audio/mpeg`}]},{id:`m-demo-9`,direction:`OUTBOUND`,sender:{kind:`operator`,name:`Alex`},media:[{url:`https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf`,mimetype:`application/pdf`}]},{id:`m-demo-9b`,direction:`OUTBOUND`,sender:{kind:`operator`,name:`Alex`},media:[{url:ud(`/marketing/wexio-integrations.mp4`),mimetype:`video/mp4`,width:1280,height:720,poster:ud(`/marketing/wexio-integrations-poster.jpg`),gif:!0}]},{id:`m-demo-10`,direction:`OUTBOUND`,sender:{kind:`ai`,name:`Gaia`},buttons:[{payload:`sandbox`},{payload:`book-call`},{payload:`stay`}]}];function pd(e){let t=id(e,`conversation.visitorName`);return fd.map(n=>{let r=`conversation.messages.${n.id}`,i={id:n.id,direction:n.direction,text:id(e,`${r}.text`),ageLabel:id(e,`${r}.ageLabel`),sender:{kind:n.sender.kind,name:n.sender.kind===`visitor`?t:n.sender.name??``,...n.sender.avatar?{avatar:n.sender.avatar}:{}}};if(n.buttons){let t=e.raw(`${r}.buttons`),a=Array.isArray(t)?t:[];i.buttons=n.buttons.map((e,t)=>({payload:e.payload,text:a[t]??``}))}if(n.media){let t=e.raw(`${r}.mediaAlts`),a=Array.isArray(t)?t:[];i.media=n.media.map((e,t)=>({...e,alt:a[t]??``}))}return n.deliveryStatus&&(i.deliveryStatus=n.deliveryStatus),i})}var md=[{id:`demo-news-1`,publishedAt:`2026-04-30T10:00:00.000Z`,coverGradient:[`#1e1f21`,`#121314`],coverImageUrl:`https://picsum.photos/seed/wexio-pioneer/960/600`,authorIds:[`maya`,`sam`],categorySlug:`company`,tagSlugs:[`events`,`product`]},{id:`demo-news-2`,publishedAt:`2026-04-15T10:00:00.000Z`,coverGradient:[`#1e3a8a`,`#0c1e4a`],coverImageUrl:`https://picsum.photos/seed/wexio-april/960/600`,authorIds:[`leo`],categorySlug:`product`,tagSlugs:[`product`,`release`]},{id:`demo-news-3`,publishedAt:`2026-03-22T10:00:00.000Z`,coverGradient:[`#0f766e`,`#042f2e`],coverImageUrl:`https://picsum.photos/seed/wexio-langs/960/600`,authorIds:[`ira`,`leo`],categorySlug:`product`,tagSlugs:[`ai`,`languages`]},{id:`demo-news-4`,publishedAt:`2026-03-08T10:00:00.000Z`,coverGradient:[`#7c3aed`,`#2e1065`],authorIds:[`leo`],categorySlug:`engineering`,tagSlugs:[`integrations`,`slack`]},{id:`demo-news-5`,publishedAt:`2026-02-18T10:00:00.000Z`,coverGradient:[`#b45309`,`#451a03`],coverImageUrl:`https://picsum.photos/seed/wexio-inbox2/960/600`,authorIds:[`maya`],categorySlug:`product`,tagSlugs:[`inbox`,`product`]},{id:`demo-news-6`,publishedAt:`2026-02-02T10:00:00.000Z`,coverGradient:[`#155e75`,`#083344`],authorIds:[`sam`],categorySlug:`engineering`,tagSlugs:[`privacy`,`security`]},{id:`demo-news-7`,publishedAt:`2026-01-20T10:00:00.000Z`,coverGradient:[`#be185d`,`#500724`],coverImageUrl:`https://picsum.photos/seed/wexio-mobile/960/600`,authorIds:[`ira`],categorySlug:`product`,tagSlugs:[`mobile`,`beta`]},{id:`demo-news-8`,publishedAt:`2026-01-05T10:00:00.000Z`,coverGradient:[`#15803d`,`#052e16`],authorIds:[`maya`,`leo`],categorySlug:`engineering`,tagSlugs:[`ai`,`analytics`]}];function hd(e){return md.map(({tagSlugs:t,authorIds:n,categorySlug:r,...i})=>({...i,title:id(e,`news.${i.id}.title`),excerpt:id(e,`news.${i.id}.excerpt`),contentMarkdown:id(e,`news.${i.id}.body`),authors:rd(n),category:{slug:r,label:id(e,`news.categories.${r}`)},tags:t.map(t=>({slug:t,label:id(e,`news.tags.${t}`)}))}))}var gd=null;function _d(e,t=$u){gd??(gd=Date.now());let n=gd,r=e=>new Date(n-e*6e4).toISOString(),i=[`sandbox`,`book-call`,`stay`],a=e.raw(`conversation.messages.m-demo-10.buttons`),o=(Array.isArray(a)?a:[]).map((e,t)=>({text:e,payload:i[t]??``}));return[{chatId:`thread-main`,threadKey:null,status:`OPEN`,unreadCount:1,updatedAt:r(4),preview:{text:id(e,`threads.main`),at:r(4),fromVisitor:!1,buttons:o},senderName:t,lastSenderKind:`ai`},{chatId:`thread-billing`,threadKey:`demo-thread-billing`,status:`PENDING`,unreadCount:0,updatedAt:r(95),preview:{text:id(e,`threads.billing`),at:r(95),fromVisitor:!1},senderName:t,lastSenderKind:`ai`},{chatId:`thread-integrations`,threadKey:`demo-thread-integrations`,status:`RESOLVED`,unreadCount:0,updatedAt:r(1560),preview:{text:id(e,`threads.integrations`),at:r(1560),fromVisitor:!0},senderName:t,lastSenderKind:`visitor`}]}wt();var vd={},yd=G`
|
|
63
63
|
mutation StartAnonymousVisitor($input: VisitorAnonymousAuthInput!) {
|
|
64
64
|
startAnonymousVisitor(input: $input) {
|
|
65
65
|
token
|
|
@@ -73,7 +73,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a
|
|
|
73
73
|
blocked
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
`;function
|
|
76
|
+
`;function bd(e){return Ol(yd,{...vd,...e})}var xd=G`
|
|
77
77
|
mutation StartIdentifiedVisitor($input: VisitorIdentifiedAuthInput!) {
|
|
78
78
|
startIdentifiedVisitor(input: $input) {
|
|
79
79
|
token
|
|
@@ -87,7 +87,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a
|
|
|
87
87
|
blocked
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
`;function
|
|
90
|
+
`;function Sd(e){return Ol(xd,{...vd,...e})}var Cd=G`
|
|
91
91
|
mutation SendVisitorMessage($input: VisitorSendMessageInput!) {
|
|
92
92
|
sendVisitorMessage(input: $input) {
|
|
93
93
|
ok
|
|
@@ -95,7 +95,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a
|
|
|
95
95
|
chatId
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
`;function
|
|
98
|
+
`;function wd(e){return Ol(Cd,{...vd,...e})}var Td=G`
|
|
99
99
|
query VisitorThreads($pagination: SocialPaginationInput, $filter: ThreadFilter) {
|
|
100
100
|
visitorThreads(pagination: $pagination, filter: $filter) {
|
|
101
101
|
visitorBlocked
|
|
@@ -118,19 +118,19 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a
|
|
|
118
118
|
hasNext
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
`;function
|
|
121
|
+
`;function Ed(e){return ll(Td,{...vd,...e})}G`
|
|
122
122
|
mutation MarkVisitorMessageRead($messageId: String!) {
|
|
123
123
|
markVisitorMessageRead(messageId: $messageId) {
|
|
124
124
|
ok
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
`;var
|
|
127
|
+
`;var Dd=G`
|
|
128
128
|
mutation MarkVisitorChatRead($chatId: String!) {
|
|
129
129
|
markVisitorChatRead(chatId: $chatId) {
|
|
130
130
|
count
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
`;function
|
|
133
|
+
`;function Od(e){return Ol(Dd,{...vd,...e})}G`
|
|
134
134
|
query VisitorChatUnread($chatId: String!) {
|
|
135
135
|
visitorChatUnread(chatId: $chatId) {
|
|
136
136
|
count
|
|
@@ -148,13 +148,13 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a
|
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
`;var
|
|
151
|
+
`;var kd=G`
|
|
152
152
|
mutation SignalVisitorTyping($chatId: String) {
|
|
153
153
|
signalVisitorTyping(chatId: $chatId) {
|
|
154
154
|
ok
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
`;function
|
|
157
|
+
`;function Ad(e){return Ol(kd,{...vd,...e})}var jd=G`
|
|
158
158
|
mutation UploadVisitorMedia($input: VisitorUploadInputType!) {
|
|
159
159
|
uploadVisitorMedia(input: $input) {
|
|
160
160
|
url
|
|
@@ -163,27 +163,27 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a
|
|
|
163
163
|
size
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
`;function
|
|
166
|
+
`;function Md(e){return Ol(jd,{...vd,...e})}var Nd=G`
|
|
167
167
|
mutation RemoveVisitorMedia($mediaId: ID!) {
|
|
168
168
|
removeVisitorMedia(mediaId: $mediaId) {
|
|
169
169
|
ok
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
`;function
|
|
172
|
+
`;function Pd(e){return Ol(Nd,{...vd,...e})}var Fd=G`
|
|
173
173
|
mutation SubmitVisitorPrechat($input: VisitorPrechatInput!) {
|
|
174
174
|
submitVisitorPrechat(input: $input) {
|
|
175
175
|
ok
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
`;function
|
|
178
|
+
`;function Id(e){return Ol(Fd,{...vd,...e})}var Ld=G`
|
|
179
179
|
query VisitorChatHistory($chatId: String!, $before: String, $limit: Int) {
|
|
180
180
|
visitorChatHistory(chatId: $chatId, before: $before, limit: $limit)
|
|
181
181
|
}
|
|
182
|
-
`,
|
|
182
|
+
`,Rd=G`
|
|
183
183
|
query VisitorChatTranscript($chatId: String!) {
|
|
184
184
|
visitorChatTranscript(chatId: $chatId)
|
|
185
185
|
}
|
|
186
|
-
`;function
|
|
186
|
+
`;function zd(e){return ll(Ld,{...vd,...e})}var Bd=G`
|
|
187
187
|
query VisitorChatRecentInbound($chatId: String!) {
|
|
188
188
|
visitorChatRecentInbound(chatId: $chatId) {
|
|
189
189
|
id
|
|
@@ -197,7 +197,7 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a
|
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
`;function
|
|
200
|
+
`;function Vd(e){return ll(Bd,{...vd,...e})}var Hd=G`
|
|
201
201
|
query VisitorChatAssignment($chatId: String!) {
|
|
202
202
|
visitorChatAssignment(chatId: $chatId) {
|
|
203
203
|
assignedStatus
|
|
@@ -214,31 +214,31 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a
|
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
`;function
|
|
217
|
+
`;function Ud(e){return ll(Hd,{...vd,...e})}var Wd=G`
|
|
218
218
|
mutation ResolveVisitorChat($chatId: String!) {
|
|
219
219
|
resolveVisitorChat(chatId: $chatId) {
|
|
220
220
|
ok
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
`;function
|
|
223
|
+
`;function Gd(e){return Ol(Wd,{...vd,...e})}var Kd=G`
|
|
224
224
|
mutation TrackVisitorPageView($input: TrackVisitorPageViewInput!) {
|
|
225
225
|
trackVisitorPageView(input: $input) {
|
|
226
226
|
ok
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
`;function
|
|
229
|
+
`;function qd(e){return Ol(Kd,{...vd,...e})}var Jd=G`
|
|
230
230
|
mutation TrackVisitorLinkClick($input: TrackVisitorLinkClickInput!) {
|
|
231
231
|
trackVisitorLinkClick(input: $input) {
|
|
232
232
|
ok
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
`;function
|
|
235
|
+
`;function Yd(e){return Ol(Jd,{...vd,...e})}var Xd=G`
|
|
236
236
|
mutation TrackVisitorButtonClick($input: TrackVisitorButtonClickInput!) {
|
|
237
237
|
trackVisitorButtonClick(input: $input) {
|
|
238
238
|
ok
|
|
239
239
|
}
|
|
240
240
|
}
|
|
241
|
-
`;function
|
|
241
|
+
`;function Zd(e){return Ol(Xd,{...vd,...e})}var Qd={},$d=G`
|
|
242
242
|
query VisitorReactionSet($surface: ReactionSurface!) {
|
|
243
243
|
visitorReactionSet(surface: $surface) {
|
|
244
244
|
_id
|
|
@@ -251,41 +251,41 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):a
|
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
|
-
`;function
|
|
254
|
+
`;function ef(e){return ll($d,{...Qd,...e})}var tf=G`
|
|
255
255
|
mutation SubmitVisitorReaction($input: VisitorReactionInput!) {
|
|
256
256
|
submitVisitorReaction(input: $input) {
|
|
257
257
|
ok
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
`;function Yd(e){return Ol(Jd,{...Gd,...e})}function Xd(e,t){return typeof window>`u`||!e.source?!1:e.source===(t===`iframe`?window.parent:window)}var Zd=`wexio-cache`,Qd=`kv`,$d=1,ef={config:(e,t)=>`config:${e}:${t}`,configPrefix:e=>`config:${e}:`,gate:e=>`gate:${e}:`,news:(e,t)=>`news:${e}:${t}`,newsPost:(e,t,n)=>`news-post:${e}:${t}:${n}`,article:(e,t,n)=>`article:${e}:${t}:${n}`,helpCategories:(e,t)=>`help-categories:${e}:${t}`,helpRoot:(e,t)=>`help-root:${e}:${t}`,home:(e,t,n)=>`home:${e}:${t}:${n}`},tf=4320*60*1e3;function nf(e){return!!e&&typeof e==`object`&&typeof e.at==`number`}function rf(){let e=new Map;return{get:t=>Promise.resolve(e.get(t)??null),set:(t,n)=>(e.set(t,n),Promise.resolve()),prune:t=>{for(let[n,r]of e)r.at<t&&e.delete(n);return Promise.resolve()},evictPrefix:t=>{for(let n of e.keys())n.startsWith(t)&&e.delete(n);return Promise.resolve()}}}function af(){return typeof indexedDB>`u`?Promise.resolve(null):new Promise(e=>{let t;try{t=indexedDB.open(Zd,$d)}catch{e(null);return}t.onupgradeneeded=()=>{let e=t.result;e.objectStoreNames.contains(Qd)||e.createObjectStore(Qd)},t.onsuccess=()=>e(t.result),t.onerror=()=>e(null),t.onblocked=()=>e(null)})}var of={get:e=>af().then(t=>new Promise(n=>{if(!t){n(null);return}try{let r=t.transaction(Qd,`readonly`).objectStore(Qd).get(e);r.onsuccess=()=>n(nf(r.result)?r.result:null),r.onerror=()=>n(null)}catch{n(null)}})),set:(e,t)=>af().then(n=>new Promise(r=>{if(!n){r();return}try{let i=n.transaction(Qd,`readwrite`);i.objectStore(Qd).put(t,e),i.oncomplete=()=>r(),i.onerror=()=>r(),i.onabort=()=>r()}catch{r()}})),prune:e=>af().then(t=>new Promise(n=>{if(!t){n();return}try{let r=t.transaction(Qd,`readwrite`),i=r.objectStore(Qd).openCursor();i.onsuccess=()=>{let t=i.result;if(!t)return;let n=t.value;(!nf(n)||n.at<e)&&t.delete(),t.continue()},r.oncomplete=()=>n(),r.onerror=()=>n(),r.onabort=()=>n()}catch{n()}})),evictPrefix:e=>af().then(t=>new Promise(n=>{if(!t){n();return}try{let r=t.transaction(Qd,`readwrite`),i=IDBKeyRange.bound(e,`${e}\uffff`),a=r.objectStore(Qd).openCursor(i);a.onsuccess=()=>{let e=a.result;e&&(e.delete(),e.continue())},r.oncomplete=()=>n(),r.onerror=()=>n(),r.onabort=()=>n()}catch{n()}}))};function sf(){return typeof indexedDB>`u`?rf():of}var cf=sf(),lf=!1;function uf(){lf||(lf=!0,cf.prune(Date.now()-tf).catch(()=>void 0))}async function df(e){uf();try{let t=await cf.get(e);return t?Date.now()-t.at>2592e5?(cf.prune(Date.now()-tf).catch(()=>void 0),null):t.v:null}catch{return null}}function ff(e,t){return uf(),cf.set(e,{v:t,at:Date.now()}).catch(()=>void 0)}function pf(e){return cf.evictPrefix(e).catch(()=>void 0)}var mf=m(null),hf=mf.Provider;function gf(){return _(mf)}function _f(){let{preview:e}=Gu();return C(e.subscribe,e.snapshot,e.snapshot)}function vf(){let e=e=>{typeof window>`u`||window.parent?.postMessage(e,`*`)};return{kind:`iframe`,onResize:(t,n,r)=>e({type:`wexio:widget:resize:v1`,width:t,height:n,open:r}),onOpen:()=>e({type:`wexio:widget:open:v1`}),onClose:()=>e({type:`wexio:widget:close:v1`}),onMessageAction:t=>e({type:`wexio:widget:message-action:v1`,detail:t}),onLauncherPosition:t=>e({type:`wexio:widget:position:v1`,side:t}),onLauncherOffset:t=>e({type:`wexio:widget:offset:v1`,x:t.x,y:t.y}),onPreviewTokenRequest:t=>e({type:`wexio:preview-token:request`,reason:t}),onHidden:()=>e({type:`wexio:widget:hidden:v1`}),onActive:()=>e({type:`wexio:widget:active:v1`})}}var yf=m(null);function bf({env:e,children:t}){return T(yf.Provider,{value:e,children:t})}function xf(){let e=_(yf),t=b(()=>vf(),[]);return e??t}var Sf=`message:`,Cf=e=>`${Sf}${e}`;function wf(e){return e?.startsWith(`message:`)&&e.slice(8)||null}var Tf=/^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8}){0,3}$/,Ef=e=>e.length<=35&&Tf.test(e);function Df(e,t,n){let r=wf(e);if(!(!r||!t||t.slotId!==r))return{slotId:r,variantId:t.variantId,...Ef(n)?{locale:n}:{}}}function Of(e){let{threadKey:t,pick:n,exists:r,locale:i}=e;if(!(!t||wf(t)||r||!n))return{slotId:n.slotId,variantId:n.variantId,...Ef(i)?{locale:i}:{}}}function kf(e){let t=e.threadKey??null,n=wf(t);if(!n)return{threadKey:t};let r=e.firstSendOnly??!0;if(e.exists&&r)return{threadKey:t};let i=e=>e&&e.slotId===n?e:null,a=i(e.remembered),o=a??i(e.current);if(!o)return e.exists?{threadKey:t}:{threadKey:null};let s=Df(t,o,e.locale);return{threadKey:t,...s?{messageSlot:s}:{},...a?{}:{remember:o}}}var Af=`slot-`,jf=e=>e.replace(/[^A-Za-z0-9_-]/g,`_`),Mf=e=>`${Af}${jf(e)}`;function Nf(e){return e?.startsWith(`slot-`)&&e.slice(5)||null}function Pf(e){if(!e)return`main`;if(e.startsWith(`message:`))return`slot:${jf(e.slice(Sf.length))}`;let t=Nf(e);return t?`slot:${t}`:e}var Ff=(e,t)=>jf(e)===t,If=e=>`wexio:local-slots:${e}`;function Lf(e,t){try{let n=e.getItem(If(t)),r=n?JSON.parse(n):null;return r&&typeof r==`object`&&!Array.isArray(r)?r:{}}catch{return{}}}function Rf(e,t,n){let r=Lf(e,t),i=jf(n.slotId);if(r[i])return r;let{when:a,...o}=n.variant,s={...r,[i]:o};try{e.setItem(If(t),JSON.stringify(s))}catch{}return s}var zf=new Set;function Bf(e,t){let n=new Set((e??[]).map(e=>e.id)),r=(t??[]).filter(e=>e.kind===`MESSAGE`&&!n.has(e.id));return r.length===0?zf:new Set(r.map(e=>e.id))}var Vf=new Set,Hf=null;function Uf(){for(let e of[...Vf])e()}var Wf=!1;function Gf(){Wf||(Wf=!0,queueMicrotask(()=>{Wf=!1,Uf()}))}function Kf(){let e=window.history.pushState,t=window.history.replaceState,n=function(...t){let n=e.apply(this,t);return Gf(),n},r=function(...e){let n=t.apply(this,e);return Gf(),n};return window.history.pushState=n,window.history.replaceState=r,window.addEventListener(`popstate`,Gf),window.addEventListener(`hashchange`,Gf),()=>{window.history.pushState===n&&(window.history.pushState=e),window.history.replaceState===r&&(window.history.replaceState=t),window.removeEventListener(`popstate`,Gf),window.removeEventListener(`hashchange`,Gf)}}function qf(e){return typeof window>`u`?()=>{}:(Vf.add(e),Hf||(Hf=Kf()),()=>{Vf.delete(e),Vf.size===0&&Hf&&(Hf(),Hf=null)})}function Jf(e){let t=new Map,n=new Map;return{peek(e){return t.get(e)??null},get(r){let i=t.get(r);if(i)return Promise.resolve(i);let a=n.get(r);if(a)return a;let o=e(r).then(e=>(t.set(r,e),n.delete(r),e),()=>(n.delete(r),null));return n.set(r,o),o}}}var Yf=`en.en-US.en-GB.uk.de.es.es-MX.fr.it.nl.pt.pt-BR.sv.da.no.fi.pl.cs.sk.tr.ro.hu.el.ar.he.hi.th.vi.id.ja.ko.zh.zh-TW`.split(`.`);function Xf(e){return typeof e==`string`&&Yf.includes(e)}var Zf={ar:()=>import(`./widget-react-DJTgpBXp.js`),cs:()=>import(`./widget-react-CgvtA8Ek.js`),da:()=>import(`./widget-react-CxTI2WNr.js`),de:()=>import(`./widget-react-tvX8XSZD.js`),el:()=>import(`./widget-react-Cx_utOCH.js`),"en-GB":()=>import(`./widget-react-RFGjueTQ.js`),"en-US":()=>import(`./widget-react-uWEOH9Lh.js`),en:()=>import(`./widget-react-iwANUtnB.js`),"es-MX":()=>import(`./widget-react-BAzh_M3R.js`),es:()=>import(`./widget-react-C1rXlCoj.js`),fi:()=>import(`./widget-react-Cil8Ajlh.js`),fr:()=>import(`./widget-react-BEeSy_sM.js`),he:()=>import(`./widget-react-Bz5u8QHz.js`),hi:()=>import(`./widget-react-C2_GJN-2.js`),hu:()=>import(`./widget-react-Fou9JP7u.js`),id:()=>import(`./widget-react-YOrK-1WI2.js`),it:()=>import(`./widget-react-C6OZyIh32.js`),ja:()=>import(`./widget-react-0MqeP0VG2.js`),ko:()=>import(`./widget-react-DPf6mDAF2.js`),nl:()=>import(`./widget-react-bEpDN5aA2.js`),no:()=>import(`./widget-react-12srXq362.js`),pl:()=>import(`./widget-react-DLK0giQJ2.js`),"pt-BR":()=>import(`./widget-react-B1v9X8dK2.js`),pt:()=>import(`./widget-react-Dy2T3sIZ2.js`),ro:()=>import(`./widget-react-C78gQza62.js`),sk:()=>import(`./widget-react-13R6Vrt62.js`),sv:()=>import(`./widget-react-Cw8StXTV2.js`),th:()=>import(`./widget-react-BzlFOEiU2.js`),tr:()=>import(`./widget-react-C1vTza-V2.js`),uk:()=>import(`./widget-react-dWaXqKR32.js`),vi:()=>import(`./widget-react-DCnPzcmJ2.js`),"zh-TW":()=>import(`./widget-react-BpSJW2vD2.js`),zh:()=>import(`./widget-react-BKZZeBk72.js`)};function Qf(e){return Zf[Xf(e)?e:`en`]()}function $f(e){let t=e;for(let e=0;e<4;e++){if(t&&typeof t==`object`&&(`threads`in t||`conversation`in t))return t;if(t&&typeof t==`object`&&`default`in t)t=t.default;else break}return t&&typeof t==`object`?t:{}}async function ep(e){return $f(await Qf(e))}var tp={raw:()=>void 0,ready:!1};function np(e){return e.ready!==!1}var rp=Yf,ip=Jf(ep);function ap(e){return t=>{let n=e;for(let e of t.split(`.`))if(n&&typeof n==`object`&&e in n)n=n[e];else return;return n}}function op(e,t){let[n,r]=S(()=>{let t=ip.peek(e);return t?{raw:ap(t)}:null});return v(()=>{let t=!0;return ip.get(e).then(e=>{!t||!e||r({raw:ap(e)})}),()=>{t=!1}},[e]),n??t}function sp(){return op(r(),tp)}var cp=new Map,lp=new Set;function up(e,t,n){if(lp.has(e))return Promise.resolve();let r=ff(t,n),i=cp.get(e)??new Set;return cp.set(e,i),i.add(r),r.finally(()=>i.delete(r)),r}async function dp(e){lp.add(e),await Promise.all([...cp.get(e)??[]]),await Promise.all([pf(ef.configPrefix(e)),pf(ef.gate(e))])}var fp=new Set([`status`,`branding`,`integrationId`,`name`,`security`]),pp=new Set([`__proto__`,`constructor`,`prototype`]);function mp(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function hp(e){if(Array.isArray(e)){let t=!1,n=e.map(e=>{let n=hp(e);return n!==e&&(t=!0),n});return t?n:e}if(!mp(e))return e;let t=!1,n={};for(let r of Object.keys(e)){if(pp.has(r)){t=!0;continue}let i=hp(e[r]);i!==e[r]&&(t=!0),n[r]=i}return t?n:e}function gp(e){if(!(!mp(e)||typeof e.enabled!=`boolean`))return{enabled:e.enabled}}function _p(e){if(!mp(e))return;let t=gp(e.google),n=gp(e.passkey);if(!(!t&&!n))return{...t&&{google:t},...n&&{passkey:n}}}function vp(e){if(!mp(e))return{};let t=hp(e),n={};for(let e of Object.keys(t))fp.has(e)||(n[e]=t[e]);let r=_p(t.security);return r&&(n.security=r),n}function yp(e,t,n){return e.kind===`ok`?{action:`show`,value:e.value}:e.kind===`transient`&&e.previewReason?(t.report(e.previewReason,n),{action:`wait`}):{action:`hide`,unreachable:e.kind===`transient`}}function bp(e,t){return e.kind===`ok`?{action:`show`,value:e.value,source:`live`}:e.kind===`definitive`?{action:`hide`,evict:!0}:t?t.status===`active`?{action:`show`,value:t,source:`cache`}:{action:`hide`,evict:!0}:{action:`hide`,evict:!1}}async function xp(e,t,n){let r=bp(e,e.kind===`transient`?await df(n):null);return r.action===`hide`&&r.evict&&await dp(t),r}function Sp(e,t=typeof window>`u`?null:window.location.href){let n=t?new URL(t).searchParams.get(`pk`)??void 0:void 0,r=e.modeOverride===`demo`,i=r?void 0:iu()||void 0,a=r?void 0:e.publicKeyOverride??n??i,o=a===`pk_demo`?void 0:a,s=e.publicKeyOverride??n;return{publicKey:o,keyed:!!o||!!(s&&s!==`pk_demo`),pkFromUrl:n}}var Cp=/^[\w ,."'-]+$/;function wp(e){if(typeof e!=`string`)return!1;let t=e.trim();if(!t||t.length>200||!Cp.test(t))return!1;for(let e of[`'`,`"`])if((t.split(e).length-1)%2!=0)return!1;return!0}var Tp=e=>wp(e)?e.trim():void 0,Ep=`Inter.Poppins.DM Sans.Roboto.IBM Plex Sans.Lato.Montserrat.Nunito.Raleway.Work Sans.Open Sans.Noto Sans.Source Sans 3.Manrope.Onest.PT Sans.Fira Sans.Jost.Rubik.Comfortaa.Merriweather.Lora.PT Serif.Playfair Display.JetBrains Mono.IBM Plex Mono`.split(`.`),Dp=`400;500;600;700`,Op={Roboto:`400;500;700`,Lato:`400;700`},kp=new Map(Ep.map(e=>[e.toLowerCase(),`${e.replace(/ /g,`+`)}:wght@${Op[e]??Dp}`]));function Ap(e){if(typeof document>`u`)return;let t=Tp(e);if(!t)return;let n=t.split(`,`)[0]?.trim().replace(/^['"]|['"]$/g,``);if(!n)return;let r=kp.get(n.toLowerCase());if(!r)return;let i=`wexio-font-${n.toLowerCase().replace(/\s+/g,`-`)}`;if(document.getElementById(i))return;let a=document.createElement(`link`);a.id=i,a.rel=`stylesheet`,a.href=`https://fonts.googleapis.com/css2?family=${r}&display=swap`,document.head.appendChild(a)}var jp=`wexio-trust:public`,Mp={status:`active`,defaultTab:`home`,localeStrategy:`AUTO`,defaultLocale:`en`,supportedLocales:[],contentLocaleFallback:!0,security:{requireAuth:!1,google:{enabled:!1,clientId:``},passkey:{enabled:!1}},features:{home:!0,messenger:!0,help:!0,news:!0,profile:!0},theme:null,themeMode:`auto`,operatorAvatars:[{src:`https://i.pravatar.cc/64?u=op-1`,alt:`Operator`},{src:`https://i.pravatar.cc/64?u=op-2`,alt:`Operator`},{src:`https://i.pravatar.cc/64?u=op-3`,alt:`Operator`}],organizationLogo:null,showLogoInLauncher:!1,greeting:{headline:`Hi there 👋`,subheadline:`How can we help?`},homeLayout:[{kind:`team-status`,showResponseTime:!0,showOperatorAvatars:!0,presence:`HUMAN`,responseTime:`MINUTES`},{kind:`ask-question`},{kind:`recent-message`},{kind:`featured-article`},{kind:`pinned-articles`,articleIds:[]},{kind:`quick-actions`,layout:`inline`,buttons:[{label:`WhatsApp`,icon:{kind:`named`,name:`whatsapp`},action:`open-url`,url:`https://wa.me/15555555555`},{label:`Telegram`,icon:{kind:`named`,name:`telegram`},action:`open-url`,url:`https://t.me/wexio`},{label:`Instagram`,icon:{kind:`named`,name:`instagram`},action:`open-url`,url:`https://instagram.com/wexio`},{label:`Email`,icon:{kind:`named`,name:`email`},action:`open-url`,url:`mailto:help@wexio.io`}]}],prechatForm:{enabled:!1,fields:[]},branding:null,sounds:{enabled:!0,inboundSoundId:`wx-nt_3`,outboundSoundId:`wx-nt_1`,volume:.5},messenger:{title:null,description:null,aiAssistantAvatar:rd(`/logo-dark.png`),aiAssistant:{enabled:!0,name:null,avatar:rd(`/logo-dark.png`)},commands:[`/start`,`/help`,`/contact`],messages:[],showRelatedNews:!0,showRelatedHelpArticles:!0,showReactionCounts:!1,profile:null},botProtection:null,tracking:null},Np=[{kind:`ask-question`},{kind:`recent-message`},{kind:`featured-article`},{kind:`pinned-articles`,articleIds:[]},{kind:`quick-actions`,layout:`inline`,buttons:[{label:`WhatsApp`,icon:{kind:`named`,name:`whatsapp`},action:`open-url`,url:`https://wa.me/15555555555`},{label:`Telegram`,icon:{kind:`named`,name:`telegram`},action:`open-url`,url:`https://t.me/wexio`},{label:`Instagram`,icon:{kind:`named`,name:`instagram`},action:`open-url`,url:`https://instagram.com/wexio`},{label:`Email`,icon:{kind:`named`,name:`email`},action:`open-url`,url:`mailto:help@wexio.io`}]}];function Pp(){let e=xf(),t=Gu(),{token:n,holding:i}=_f(),a=r(),[o,s]=S({mode:`demo`,config:Mp,isDummy:!0,isLoading:!0,error:null}),[c,l]=S(null);v(()=>{if(i)return;let r=new URL(window.location.href),o=r.searchParams.get(`mode`),{publicKey:c}=Sp({modeOverride:e.modeOverride,publicKeyOverride:e.publicKeyOverride},r.href),u=e.modeOverride??(c?`production`:o===`preview`?`preview`:`demo`),d=!1;(async()=>{if(e.configBase){let r=null;if(c&&n){let e=await vu(c,n);if(d)return;let i=yp(e,t.preview,n);if(i.action===`wait`)return;if(i.action===`hide`){s({mode:u,config:Mp,isDummy:!0,isLoading:!1,error:i.unreachable?`publicKeyInvalid`:`widgetUnavailable`});return}r=i.value}else if(c){let t=await vu(c);if(d)return;if(t.kind===`ok`)r=t.value,up(c,ef.gate(c),r);else if(e.forceDummyData===!0&&!(t.kind===`definitive`&&typeof t.reason==`string`))r=null;else{let e=await xp(t,c,ef.gate(c));if(d)return;if(e.action===`hide`){s({mode:u,config:Mp,isDummy:!0,isLoading:!1,error:t.kind===`transient`&&!e.evict?`publicKeyInvalid`:`widgetUnavailable`});return}r=e.value}}let i=e.configBase.security,a=r?.security,o={requireAuth:a?.requireAuth??!1,google:{enabled:i?.google?.enabled??a?.google?.enabled??!1,clientId:a?.google?.clientId??null},passkey:{enabled:i?.passkey?.enabled??a?.passkey?.enabled??!1}},{security:l,...f}=e.configBase;s({mode:u,config:{...f,security:o,branding:r?.branding??null,status:r?.status??`active`},isDummy:e.forceDummyData===!0,isLoading:!1,error:null});return}if(e.forceDummyData!==void 0){s({mode:u,config:Mp,isDummy:e.forceDummyData,isLoading:!1,error:null});return}if(c&&n){let e=await cu(c,a,n);if(d)return;let r=yp(e,t.preview,n);if(r.action===`wait`)return;s(r.action===`show`?{mode:u,config:r.value,isDummy:!1,isLoading:!1,error:null,fromBe:!0}:{mode:u,config:Mp,isDummy:!0,isLoading:!1,error:r.unreachable?`publicKeyInvalid`:`widgetUnavailable`});return}if(c){let e=await cu(c,a);if(d)return;let t=ef.config(c,a);if(e.kind===`ok`){s({mode:u,config:e.value,isDummy:!1,isLoading:!1,error:null,fromBe:!0}),up(c,t,e.value);return}let n=await xp(e,c,t);if(d)return;if(n.action===`show`){s({mode:u,config:n.value,isDummy:!1,isLoading:!1,error:null,fromBe:!0});return}s({mode:u,config:Mp,isDummy:!0,isLoading:!1,error:e.kind===`transient`&&!n.evict?`publicKeyInvalid`:`widgetUnavailable`});return}s({mode:u,config:Mp,isDummy:!0,isLoading:!1,error:null})})();let f=t=>{if(!Xd(t,e.kind)||!t.data||typeof t.data!=`object`||t.data.type!==`wexio:preview-config:v1`&&t.data.type!==`wexio:config-override:v1`||!t.data.config)return;let n=t.data.config;l(e=>Fp(e??{},n))};return window.addEventListener(`message`,f),()=>{d=!0,window.removeEventListener(`message`,f)}},[e.publicKeyOverride,e.modeOverride,e.forceDummyData,e.configBase,e.kind,a,t,n,i]);let u=o.isDummy||e.forceDummyData===!0,d=o.mode===`preview`&&!n,f=e.configOverride?.operatorAvatars!==void 0,{keyed:p}=Sp({modeOverride:e.modeOverride,publicKeyOverride:e.publicKeyOverride}),m=!p,h=b(()=>{let t=o.config;return c&&(t=Fp(t,m?c:vp(c))),e.configOverride&&(t=Fp(t,m?e.configOverride:vp(e.configOverride))),u&&t.operatorAvatars.length===0&&!f&&(t={...t,operatorAvatars:Mp.operatorAvatars}),t},[o.config,m,c,e.configOverride,u,f]),g=b(()=>Bf(o.fromBe?o.config.messenger?.messageSlots:void 0,h.messenger?.messageSlots),[o.fromBe,o.config,h.messenger?.messageSlots]),_=e.styleRoot;y(()=>{h.theme&&Hp(h.theme,_??document)},[h.theme,_]),v(()=>{h.theme&&Ap(h.theme.fontFamily)},[h.theme]);let x=e.onLocaleStrategy;return v(()=>{let e=h.localeStrategy===`DEFAULT`?h.defaultLocale:h.localeStrategy;x?.(e)},[x,h.localeStrategy,h.defaultLocale]),{mode:o.mode,config:h,isDummy:u,sessionDemo:d,injectedSlotIds:g,isLoading:o.isLoading,error:o.error}}function Fp(e,t){return{...e,...t,features:{...e.features??{},...t.features??{}},greeting:{...e.greeting??{},...t.greeting??{}},messenger:t.messenger===void 0?e.messenger:t.messenger===null?null:{...e.messenger??{},...t.messenger},security:t.security===void 0?e.security:{...e.security??{},...t.security,google:{...e.security?.google??{},...t.security?.google??{}},passkey:{...e.security?.passkey??{},...t.security?.passkey??{}}},tracking:t.tracking===void 0?e.tracking:{...e.tracking??{},...t.tracking??{}},theme:t.theme===void 0?e.theme:t.theme===null?null:{...e.theme??{},...t.theme,light:{...e.theme?.light??{},...t.theme.light??{}},dark:{...e.theme?.dark??{},...t.theme.dark??{}},radii:{...e.theme?.radii??{},...t.theme.radii??{}}}}}var Ip={background:`--wx-bg`,surface:`--wx-bg-elevated`,surfaceElevated:`--wx-bg-elevated-2`,text:`--wx-fg`,textMuted:`--wx-fg-muted`,textSubtle:`--wx-fg-subtle`,border:`--wx-border`,borderStrong:`--wx-border-strong`,primary:`--wx-primary`,primaryHover:`--wx-primary-hover`,primaryForeground:`--wx-primary-fg`,launcherBackground:`--wx-launcher-bg`,launcherForeground:`--wx-launcher-fg`,success:`--wx-success`,danger:`--wx-danger`},Lp={sm:`--wx-radius-sm`,md:`--wx-radius`,lg:`--wx-radius-lg`,xl:`--wx-radius-xl`};function Rp(e){return e?Object.entries(e).filter(([,e])=>typeof e==`string`&&e.length>0).map(([e,t])=>`${Ip[e]}: ${t};`).join(` `):``}function zp(e){return e?Object.entries(e).filter(([,e])=>typeof e==`number`&&Number.isFinite(e)).map(([e,t])=>`${Lp[e]}: ${t}px;`).join(` `):``}var Bp=new WeakMap;function Vp(e){let t=zp(e.radii),n=Tp(e.fontFamily),r=[t,n?`--wx-font: ${n};`:``].filter(Boolean).join(` `),i=[Rp(e.light),r].filter(Boolean).join(` `),a=[Rp(e.dark),r].filter(Boolean).join(` `),o=[];return i&&o.push(`:root, :host { ${i} }`),a&&o.push(`[data-theme="dark"] { ${a} }`),o.join(` `)}function Hp(e,t){let n=Vp(e);if(!(t instanceof Document)){let e=t;if(typeof CSSStyleSheet<`u`&&`replaceSync`in CSSStyleSheet.prototype){let t=Bp.get(e);t||(t=new CSSStyleSheet,Bp.set(e,t),e.adoptedStyleSheets=[...e.adoptedStyleSheets,t]),t.replaceSync(n);return}let r=e.querySelector(`#wexio-theme-vars`);r||(r=document.createElement(`style`),r.id=`wexio-theme-vars`,e.appendChild(r)),r.textContent=n;return}let r=t.getElementById(`wexio-theme-vars`);r||(r=document.createElement(`style`),r.id=`wexio-theme-vars`,t.head.appendChild(r)),r.textContent=n}var Up=l(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Wp=l(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Gp=l(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Kp=l(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),qp=l(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),Jp=p.forwardRef(({className:e,...t},n)=>T(`div`,{ref:n,className:c(`rounded-wx-lg bg-wx-bg-elevated text-wx-fg`,e),...t}));Jp.displayName=`Card`;var Yp=p.forwardRef(({className:e,...t},n)=>T(`div`,{ref:n,className:c(`rounded-wx bg-wx-bg-elevated-2 text-wx-fg`,e),...t}));Yp.displayName=`CardNested`;var Xp=p.forwardRef(({className:e,...t},n)=>T(`div`,{ref:n,className:c(`flex flex-col gap-1 px-5 pt-5`,e),...t}));Xp.displayName=`CardHeader`;var Zp=p.forwardRef(({className:e,...t},n)=>T(`p`,{ref:n,className:c(`text-base font-semibold text-wx-fg`,e),...t}));Zp.displayName=`CardTitle`;var Qp=p.forwardRef(({className:e,...t},n)=>T(`p`,{ref:n,className:c(`text-sm text-wx-fg-muted`,e),...t}));Qp.displayName=`CardSubtitle`;var $p=p.forwardRef(({className:e,...t},n)=>T(`div`,{ref:n,className:c(`px-5 py-4`,e),...t}));$p.displayName=`CardBody`;var em=p.forwardRef(({className:e,...t},n)=>T(`div`,{ref:n,className:c(`flex items-center justify-between px-5 py-3 border-t border-wx-border`,e),...t}));em.displayName=`CardFooter`;function tm(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function nm(...e){return t=>{let n=!1,r=e.map(e=>{let r=tm(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():tm(e[t],null)}}}}function rm(...e){return p.useCallback(nm(...e),e)}function im(e){let t=am(e),n=p.forwardRef((e,n)=>{let{children:r,...i}=e,a=p.Children.toArray(r),o=a.find(sm);if(o){let e=o.props.children,r=a.map(t=>t===o?p.Children.count(e)>1?p.Children.only(null):p.isValidElement(e)?e.props.children:null:t);return T(t,{...i,ref:n,children:p.isValidElement(e)?p.cloneElement(e,void 0,r):null})}return T(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function am(e){let t=p.forwardRef((e,t)=>{let{children:n,...r}=e;if(p.isValidElement(n)){let e=lm(n),i=cm(r,n.props);return n.type!==p.Fragment&&(i.ref=t?nm(t,e):e),p.cloneElement(n,i)}return p.Children.count(n)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var om=Symbol(`radix.slottable`);function sm(e){return p.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===om}function cm(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function lm(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var um=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=im(`Primitive.${t}`),r=p.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),T(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),dm=globalThis?.document?p.useLayoutEffect:()=>{};function fm(e,t){return p.useReducer((e,n)=>t[e][n]??e,e)}var pm=e=>{let{present:t,children:n}=e,r=mm(t),i=typeof n==`function`?n({present:r.isPresent}):p.Children.only(n),a=rm(r.ref,gm(i));return typeof n==`function`||r.isPresent?p.cloneElement(i,{ref:a}):null};pm.displayName=`Presence`;function mm(e){let[t,n]=p.useState(),r=p.useRef(null),i=p.useRef(e),a=p.useRef(`none`),[o,s]=fm(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return p.useEffect(()=>{let e=hm(r.current);a.current=o===`mounted`?e:`none`},[o]),dm(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=hm(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),dm(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=hm(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=hm(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:p.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function hm(e){return e?.animationName||`none`}function gm(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function _m(e,t=[]){let n=[];function r(t,r){let i=p.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=p.useMemo(()=>o,Object.values(o));return T(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=p.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>p.createContext(e));return function(n){let r=n?.[e]||t;return p.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,vm(i,...t)]}function vm(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function ym(e){let t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...e)=>t.current?.(...e),[])}var bm=p.createContext(void 0);function xm(e){let t=p.useContext(bm);return e||t||`ltr`}function Sm(e,[t,n]){return Math.min(n,Math.max(t,e))}typeof window<`u`&&window.document&&window.document.createElement;function Cm(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function wm(e,t){return p.useReducer((e,n)=>t[e][n]??e,e)}var Tm=`ScrollArea`,[Em,Dm]=_m(Tm),[Om,km]=Em(Tm),Am=p.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:r=`hover`,dir:i,scrollHideDelay:a=600,...o}=e,[s,c]=p.useState(null),[l,u]=p.useState(null),[d,f]=p.useState(null),[m,h]=p.useState(null),[g,_]=p.useState(null),[v,y]=p.useState(0),[b,x]=p.useState(0),[S,C]=p.useState(!1),[w,E]=p.useState(!1),ee=rm(t,e=>c(e)),D=xm(i);return T(Om,{scope:n,type:r,dir:D,scrollHideDelay:a,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:m,onScrollbarXChange:h,scrollbarXEnabled:S,onScrollbarXEnabledChange:C,scrollbarY:g,onScrollbarYChange:_,scrollbarYEnabled:w,onScrollbarYEnabledChange:E,onCornerWidthChange:y,onCornerHeightChange:x,children:T(um.div,{dir:D,...o,ref:ee,style:{position:`relative`,"--radix-scroll-area-corner-width":v+`px`,"--radix-scroll-area-corner-height":b+`px`,...e.style}})})});Am.displayName=Tm;var jm=`ScrollAreaViewport`,Mm=p.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:r,nonce:i,...a}=e,o=km(jm,n),s=rm(t,p.useRef(null),o.onViewportChange);return E(w,{children:[T(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}`},nonce:i}),T(um.div,{"data-radix-scroll-area-viewport":``,...a,ref:s,style:{overflowX:o.scrollbarXEnabled?`scroll`:`hidden`,overflowY:o.scrollbarYEnabled?`scroll`:`hidden`,...e.style},children:T(`div`,{ref:o.onContentChange,style:{minWidth:`100%`,display:`table`},children:r})})]})});Mm.displayName=jm;var Nm=`ScrollAreaScrollbar`,Pm=p.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=km(Nm,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,s=e.orientation===`horizontal`;return p.useEffect(()=>(s?a(!0):o(!0),()=>{s?a(!1):o(!1)}),[s,a,o]),i.type===`hover`?T(Fm,{...r,ref:t,forceMount:n}):i.type===`scroll`?T(Im,{...r,ref:t,forceMount:n}):i.type===`auto`?T(Lm,{...r,ref:t,forceMount:n}):i.type===`always`?T(Rm,{...r,ref:t}):null});Pm.displayName=Nm;var Fm=p.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=km(Nm,e.__scopeScrollArea),[a,o]=p.useState(!1);return p.useEffect(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),o(!0)},r=()=>{t=window.setTimeout(()=>o(!1),i.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,r),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,r)}}},[i.scrollArea,i.scrollHideDelay]),T(pm,{present:n||a,children:T(Lm,{"data-state":a?`visible`:`hidden`,...r,ref:t})})}),Im=p.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=km(Nm,e.__scopeScrollArea),a=e.orientation===`horizontal`,o=ih(()=>c(`SCROLL_END`),100),[s,c]=wm(`hidden`,{hidden:{SCROLL:`scrolling`},scrolling:{SCROLL_END:`idle`,POINTER_ENTER:`interacting`},interacting:{SCROLL:`interacting`,POINTER_LEAVE:`idle`},idle:{HIDE:`hidden`,SCROLL:`scrolling`,POINTER_ENTER:`interacting`}});return p.useEffect(()=>{if(s===`idle`){let e=window.setTimeout(()=>c(`HIDE`),i.scrollHideDelay);return()=>window.clearTimeout(e)}},[s,i.scrollHideDelay,c]),p.useEffect(()=>{let e=i.viewport,t=a?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(c(`SCROLL`),o()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[i.viewport,a,c,o]),T(pm,{present:n||s!==`hidden`,children:T(Rm,{"data-state":s===`hidden`?`hidden`:`visible`,...r,ref:t,onPointerEnter:Cm(e.onPointerEnter,()=>c(`POINTER_ENTER`)),onPointerLeave:Cm(e.onPointerLeave,()=>c(`POINTER_LEAVE`))})})}),Lm=p.forwardRef((e,t)=>{let n=km(Nm,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,o]=p.useState(!1),s=e.orientation===`horizontal`,c=ih(()=>{if(n.viewport){let e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;o(s?e:t)}},10);return ah(n.viewport,c),ah(n.content,c),T(pm,{present:r||a,children:T(Rm,{"data-state":a?`visible`:`hidden`,...i,ref:t})})}),Rm=p.forwardRef((e,t)=>{let{orientation:n=`vertical`,...r}=e,i=km(Nm,e.__scopeScrollArea),a=p.useRef(null),o=p.useRef(0),[s,c]=p.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=Zm(s.viewport,s.content),u={...r,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:e=>a.current=e,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:e=>o.current=e};function d(e,t){return $m(e,o.current,s,t)}return n===`horizontal`?T(zm,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=eh(e,s,i.dir);a.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}}):n===`vertical`?T(Bm,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=eh(e,s);a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}),zm=p.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=km(Nm,e.__scopeScrollArea),[o,s]=p.useState(),c=p.useRef(null),l=rm(t,c,a.onScrollbarXChange);return p.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),T(Um,{"data-orientation":`horizontal`,...i,ref:l,sizes:n,style:{bottom:0,left:a.dir===`rtl`?`var(--radix-scroll-area-corner-width)`:0,right:a.dir===`ltr`?`var(--radix-scroll-area-corner-width)`:0,"--radix-scroll-area-thumb-width":Qm(n)+`px`,...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),nh(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&o&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Xm(o.paddingLeft),paddingEnd:Xm(o.paddingRight)}})}})}),Bm=p.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=km(Nm,e.__scopeScrollArea),[o,s]=p.useState(),c=p.useRef(null),l=rm(t,c,a.onScrollbarYChange);return p.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),T(Um,{"data-orientation":`vertical`,...i,ref:l,sizes:n,style:{top:0,right:a.dir===`ltr`?0:void 0,left:a.dir===`rtl`?0:void 0,bottom:`var(--radix-scroll-area-corner-height)`,"--radix-scroll-area-thumb-height":Qm(n)+`px`,...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),nh(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&o&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Xm(o.paddingTop),paddingEnd:Xm(o.paddingBottom)}})}})}),[Vm,Hm]=Em(Nm),Um=p.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:c,onDragScroll:l,onWheelScroll:u,onResize:d,...f}=e,m=km(Nm,n),[h,g]=p.useState(null),_=rm(t,e=>g(e)),v=p.useRef(null),y=p.useRef(``),b=m.viewport,x=r.content-r.viewport,S=ym(u),C=ym(c),w=ih(d,10);function E(e){v.current&&l({x:e.clientX-v.current.left,y:e.clientY-v.current.top})}return p.useEffect(()=>{let e=e=>{let t=e.target;h?.contains(t)&&S(e,x)};return document.addEventListener(`wheel`,e,{passive:!1}),()=>document.removeEventListener(`wheel`,e,{passive:!1})},[b,h,x,S]),p.useEffect(C,[r,C]),ah(h,w),ah(m.content,w),T(Vm,{scope:n,scrollbar:h,hasThumb:i,onThumbChange:ym(a),onThumbPointerUp:ym(o),onThumbPositionChange:C,onThumbPointerDown:ym(s),children:T(um.div,{...f,ref:_,style:{position:`absolute`,...f.style},onPointerDown:Cm(e.onPointerDown,e=>{e.button===0&&(e.target.setPointerCapture(e.pointerId),v.current=h.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,m.viewport&&(m.viewport.style.scrollBehavior=`auto`),E(e))}),onPointerMove:Cm(e.onPointerMove,E),onPointerUp:Cm(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,m.viewport&&(m.viewport.style.scrollBehavior=``),v.current=null})})})}),Wm=`ScrollAreaThumb`,Gm=p.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Hm(Wm,e.__scopeScrollArea);return T(pm,{present:n||i.hasThumb,children:T(Km,{ref:t,...r})})}),Km=p.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,a=km(Wm,n),o=Hm(Wm,n),{onThumbPositionChange:s}=o,c=rm(t,e=>o.onThumbChange(e)),l=p.useRef(void 0),u=ih(()=>{l.current&&(l.current(),l.current=void 0)},100);return p.useEffect(()=>{let e=a.viewport;if(e){let t=()=>{u(),l.current||(l.current=rh(e,s),s())};return s(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[a.viewport,u,s]),T(um.div,{"data-state":o.hasThumb?`visible`:`hidden`,...i,ref:c,style:{width:`var(--radix-scroll-area-thumb-width)`,height:`var(--radix-scroll-area-thumb-height)`,...r},onPointerDownCapture:Cm(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;o.onThumbPointerDown({x:n,y:r})}),onPointerUp:Cm(e.onPointerUp,o.onThumbPointerUp)})});Gm.displayName=Wm;var qm=`ScrollAreaCorner`,Jm=p.forwardRef((e,t)=>{let n=km(qm,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!==`scroll`&&r?T(Ym,{...e,ref:t}):null});Jm.displayName=qm;var Ym=p.forwardRef((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=km(qm,n),[a,o]=p.useState(0),[s,c]=p.useState(0),l=!!(a&&s);return ah(i.scrollbarX,()=>{let e=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(e),c(e)}),ah(i.scrollbarY,()=>{let e=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(e),o(e)}),l?T(um.div,{...r,ref:t,style:{width:a,height:s,position:`absolute`,right:i.dir===`ltr`?0:void 0,left:i.dir===`rtl`?0:void 0,bottom:0,...e.style}}):null});function Xm(e){return e?parseInt(e,10):0}function Zm(e,t){let n=e/t;return isNaN(n)?0:n}function Qm(e){let t=Zm(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function $m(e,t,n,r=`ltr`){let i=Qm(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return th([c,l],d)(e)}function eh(e,t,n=`ltr`){let r=Qm(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=Sm(e,n===`ltr`?[0,o]:[o*-1,0]);return th([0,o],[0,s])(c)}function th(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function nh(e,t){return e>0&&e<t}var rh=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)};function ih(e,t){let n=ym(e),r=p.useRef(0);return p.useEffect(()=>()=>window.clearTimeout(r.current),[]),p.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function ah(e,t){let n=ym(t);dm(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var oh=Am,sh=Mm,ch=Jm;function lh({className:e,viewportRef:t,followDirection:n,children:r,onScroll:i,...a}){return E(oh,{"data-slot":`scroll-area`,className:c(`relative min-h-0 min-w-0 overflow-hidden`,n&&`[direction:inherit]`,e),...a,children:[T(sh,{ref:t,"data-slot":`scroll-area-viewport`,onScroll:i,className:c(`h-full w-full rounded-[inherit]`,`[&>div]:!block [&>div]:!w-full [&>div]:!max-w-full`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-wx-primary/40`),children:r}),T(uh,{}),T(ch,{})]})}function uh({className:e,orientation:t=`vertical`,...n}){return T(Pm,{"data-slot":`scroll-area-scrollbar`,orientation:t,className:c(`flex touch-none select-none transition-opacity duration-150`,`opacity-0 data-[state=visible]:opacity-100`,`hover:opacity-100`,t===`vertical`&&`h-full w-1.5 border-l border-l-transparent p-px`,t===`horizontal`&&`h-1.5 flex-col border-t border-t-transparent p-px`,e),...n,children:T(Gm,{"data-slot":`scroll-area-thumb`,className:c(`relative flex-1 rounded-full`,`bg-wx-fg-muted/40 hover:bg-wx-fg-muted/60 transition-colors`)})})}function dh(){return g(e=>{if(!e)return;let t=e.getRootNode().activeElement,n=!t||t===document.body,r=e.closest(`main`),i=!!t&&!!r&&r.contains(t)&&!e.contains(t);!n&&!i||(e.hasAttribute(`tabindex`)||(e.tabIndex=-1),e.focus({preventScroll:!0}))},[])}function fh(e,t){let[n,r]=S(null),i=_f().token===null?e:null;return v(()=>{if(!i)return;if(t!=null){r(t),ff(i,t);return}let e=!1;return df(i).then(t=>{!e&&t!=null&&r(e=>e??t)}),()=>{e=!0}},[i,t]),t??n}function ph(e,t){try{return new URL(e).pathname.replace(/\/$/,``)===new URL(t).pathname.replace(/\/$/,``)}catch{return e===t}}function mh(e,t,n){let r=[...e,t];return r.length>n?r.slice(r.length-n):r}var hh=m({trackPageView:()=>{},trackLinkClick:()=>{},trackButtonClick:()=>{}});function gh(){return _(hh)}var _h={page:`trackPageView`,link:`trackLinkClick`,button:`trackButtonClick`};function vh({children:e,tracking:t,enabled:n,token:r}){let i=xf(),a=Gu(),[o]=Bd(),[s]=Hd(),[c]=Wd(),l=gf(),u=n&&(t?.trackWebsitePages??!0),d=n&&(t?.trackWidgetLinks??!0),f=x([]),p=x(null),m=x(null),h=x(null),_=g(e=>{if(l){l.enqueue({op:_h[e.kind],semantics:`queue`,payload:e.input});return}(e.kind===`page`?o({variables:{input:e.input}}):e.kind===`link`?s({variables:{input:e.input}}):c({variables:{input:e.input}})).catch(()=>{})},[l,o,s,c]),y=g(e=>{l||a.token?_(e):f.current=mh(f.current,e,50)},[l,_,a]);v(()=>{if(!r)return;let e=f.current;f.current=[];for(let t of e)_(t)},[r,_]),v(()=>()=>{m.current&&clearTimeout(m.current)},[]);let S=g((e,t)=>{!u||!e||p.current&&ph(p.current,e)||(m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{p.current=e,y({kind:`page`,input:{url:e,title:t?.title,referrer:t?.referrer,occurredAt:new Date().toISOString()}})},500))},[u,y]),C=g(e=>{!d||!e.url||y({kind:`link`,input:{url:e.url,targetType:e.targetType,targetRefId:e.targetRefId,title:e.title,referrer:typeof document<`u`&&document.referrer||void 0,occurredAt:new Date().toISOString()}})},[d,y]),w=g(e=>{n&&y({kind:`button`,input:{...e,occurredAt:new Date().toISOString()}})},[n,y]);v(()=>{if(!u||typeof window>`u`)return;if(i.kind===`iframe`){let e=e=>{if(!Xd(e,i.kind))return;let t=e.data;!t||typeof t!=`object`||t.type!==`wexio:host-navigation:v1`||typeof t.url==`string`&&S(t.url,{title:typeof t.title==`string`?t.title:void 0,referrer:typeof t.referrer==`string`?t.referrer:void 0})};return window.addEventListener(`message`,e),()=>window.removeEventListener(`message`,e)}let e=()=>S(window.location.href,{title:document.title,referrer:document.referrer}),t=()=>{h.current?.();let t=document.querySelector(`title`),n=!1,r=()=>{o?.disconnect(),clearTimeout(a),h.current=null},i=()=>{n||(n=!0,r(),e())},a=setTimeout(i,600),o=null;t&&typeof MutationObserver<`u`&&(o=new MutationObserver(i),o.observe(t,{childList:!0,characterData:!0,subtree:!0})),h.current=r};e();let n=qf(t);return()=>{h.current?.(),n()}},[u,i.kind,S]);let E=b(()=>({trackPageView:S,trackLinkClick:C,trackButtonClick:w}),[S,C,w]);return T(hh.Provider,{value:E,children:e})}function yh({items:e,initialIndex:t,open:n,onClose:r}){let i=a(`lightbox`),[s,l]=S(t),u=xf(),p=!(u.embedded??!1)||(u.lightboxViewport??!0);v(()=>{n&&l(t)},[n,t]);let m=e.length,h=e[s],_=g(()=>{l(e=>(e+1)%m)},[m]),y=g(()=>{l(e=>(e-1+m)%m)},[m]);v(()=>{if(!n)return;let e=e=>{e.key===`Escape`?r():e.key===`ArrowRight`?_():e.key===`ArrowLeft`&&y()};document.addEventListener(`keydown`,e);let t=document.body.style.overflow;return p&&(document.body.style.overflow=`hidden`),()=>{document.removeEventListener(`keydown`,e),p&&(document.body.style.overflow=t)}},[n,r,_,y,p]);let b=u.themeRoot??(typeof document<`u`?document.body:null);return b?ee(T(d,{children:n&&h&&E(o.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},onClick:r,className:c(p?`fixed`:`absolute`,`inset-0 z-2147483647 flex items-center justify-center`,`bg-black/85 backdrop-blur-sm`),role:`dialog`,"aria-modal":`true`,"aria-label":h.alt||i(`mediaPreview`),children:[T(`button`,{type:`button`,onClick:e=>{e.stopPropagation(),r()},"aria-label":i(`close`),className:c(`absolute top-4 right-4 z-10 flex h-9 w-9 items-center justify-center rounded-full`,`bg-white/10 text-white transition-colors hover:bg-white/20`),children:T(f,{size:18})}),m>1&&E(w,{children:[T(`button`,{type:`button`,onClick:e=>{e.stopPropagation(),y()},"aria-label":i(`previous`),className:c(`absolute left-4 top-1/2 z-10 -translate-y-1/2 flex h-10 w-10 items-center justify-center rounded-full`,`bg-white/10 text-white transition-colors hover:bg-white/20`),children:T(Gp,{size:20})}),T(`button`,{type:`button`,onClick:e=>{e.stopPropagation(),_()},"aria-label":i(`next`),className:c(`absolute right-4 top-1/2 z-10 -translate-y-1/2 flex h-10 w-10 items-center justify-center rounded-full`,`bg-white/10 text-white transition-colors hover:bg-white/20`),children:T(Kp,{size:20})})]}),T(o.div,{initial:{scale:.96,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.96,opacity:0},transition:{duration:.18,ease:`easeOut`},className:c(`pointer-events-none flex items-center justify-center`,p?`max-h-[90vh] max-w-[90vw]`:`absolute inset-0 p-6`),children:h.mimetype.startsWith(`video/`)?T(`video`,{src:h.url,controls:!0,autoPlay:!0,onClick:e=>e.stopPropagation(),className:c(`pointer-events-auto rounded-wx-lg`,p?`max-h-[90vh] max-w-[90vw]`:`max-h-full max-w-full`)}):h.mimetype===`application/pdf`?T(`iframe`,{src:h.url,title:h.alt||`PDF preview`,onClick:e=>e.stopPropagation(),className:c(`pointer-events-auto rounded-wx-lg border-0 bg-white`,p?`h-[90vh] w-[90vw]`:`h-full w-full`)}):T(o.img,{src:h.url,alt:h.alt,onClick:e=>e.stopPropagation(),draggable:!1,drag:m>1?`x`:!1,dragConstraints:{left:0,right:0},dragElastic:.18,dragMomentum:!1,onDragEnd:(e,t)=>{t.offset.x<=-60?_():t.offset.x>=60&&y()},className:c(`pointer-events-auto rounded-wx-lg object-contain`,m>1&&`cursor-grab active:cursor-grabbing`,p?`max-h-[90vh] max-w-[90vw]`:`max-h-full max-w-full`)})},`${s}-${h.url}`),m>1&&E(`div`,{className:`absolute bottom-4 left-1/2 -translate-x-1/2 rounded-full bg-white/10 px-3 py-1 text-xs font-medium text-white`,children:[s+1,` / `,m]})]},`media-lightbox`)}),b):null}function bh(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var xh=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Sh=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ch={};function wh(e,t){return((t||Ch).jsx?Sh:xh).test(e)}var Th=/[ \t\n\f\r]/g;function Eh(e){return typeof e==`object`?e.type===`text`?Dh(e.value):!1:Dh(e)}function Dh(e){return e.replace(Th,``)===``}var Oh=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Oh.prototype.normal={},Oh.prototype.property={},Oh.prototype.space=void 0;function kh(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Oh(n,r,t)}function Ah(e){return e.toLowerCase()}var jh=class{constructor(e,t){this.attribute=t,this.property=e}};jh.prototype.attribute=``,jh.prototype.booleanish=!1,jh.prototype.boolean=!1,jh.prototype.commaOrSpaceSeparated=!1,jh.prototype.commaSeparated=!1,jh.prototype.defined=!1,jh.prototype.mustUseProperty=!1,jh.prototype.number=!1,jh.prototype.overloadedBoolean=!1,jh.prototype.property=``,jh.prototype.spaceSeparated=!1,jh.prototype.space=void 0;var Mh=t({boolean:()=>K,booleanish:()=>Ph,commaOrSpaceSeparated:()=>Lh,commaSeparated:()=>Ih,number:()=>q,overloadedBoolean:()=>Fh,spaceSeparated:()=>J}),Nh=0,K=Rh(),Ph=Rh(),Fh=Rh(),q=Rh(),J=Rh(),Ih=Rh(),Lh=Rh();function Rh(){return 2**++Nh}var zh=Object.keys(Mh),Bh=class extends jh{constructor(e,t,n,r){let i=-1;if(super(e,t),Vh(this,`space`,r),typeof n==`number`)for(;++i<zh.length;){let e=zh[i];Vh(this,zh[i],(n&Mh[e])===Mh[e])}}};Bh.prototype.defined=!0;function Vh(e,t,n){n&&(e[t]=n)}function Hh(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Bh(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Ah(r)]=r,n[Ah(a.attribute)]=r}return new Oh(t,n,e.space)}var Uh=Hh({properties:{ariaActiveDescendant:null,ariaAtomic:Ph,ariaAutoComplete:null,ariaBusy:Ph,ariaChecked:Ph,ariaColCount:q,ariaColIndex:q,ariaColSpan:q,ariaControls:J,ariaCurrent:null,ariaDescribedBy:J,ariaDetails:null,ariaDisabled:Ph,ariaDropEffect:J,ariaErrorMessage:null,ariaExpanded:Ph,ariaFlowTo:J,ariaGrabbed:Ph,ariaHasPopup:null,ariaHidden:Ph,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:J,ariaLevel:q,ariaLive:null,ariaModal:Ph,ariaMultiLine:Ph,ariaMultiSelectable:Ph,ariaOrientation:null,ariaOwns:J,ariaPlaceholder:null,ariaPosInSet:q,ariaPressed:Ph,ariaReadOnly:Ph,ariaRelevant:null,ariaRequired:Ph,ariaRoleDescription:J,ariaRowCount:q,ariaRowIndex:q,ariaRowSpan:q,ariaSelected:Ph,ariaSetSize:q,ariaSort:null,ariaValueMax:q,ariaValueMin:q,ariaValueNow:q,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Wh(e,t){return t in e?e[t]:t}function Gh(e,t){return Wh(e,t.toLowerCase())}var Kh=Hh({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Ih,acceptCharset:J,accessKey:J,action:null,allow:null,allowFullScreen:K,allowPaymentRequest:K,allowUserMedia:K,alt:null,as:null,async:K,autoCapitalize:null,autoComplete:J,autoFocus:K,autoPlay:K,blocking:J,capture:null,charSet:null,checked:K,cite:null,className:J,cols:q,colSpan:null,content:null,contentEditable:Ph,controls:K,controlsList:J,coords:q|Ih,crossOrigin:null,data:null,dateTime:null,decoding:null,default:K,defer:K,dir:null,dirName:null,disabled:K,download:Fh,draggable:Ph,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:K,formTarget:null,headers:J,height:q,hidden:Fh,high:q,href:null,hrefLang:null,htmlFor:J,httpEquiv:J,id:null,imageSizes:null,imageSrcSet:null,inert:K,inputMode:null,integrity:null,is:null,isMap:K,itemId:null,itemProp:J,itemRef:J,itemScope:K,itemType:J,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:K,low:q,manifest:null,max:null,maxLength:q,media:null,method:null,min:null,minLength:q,multiple:K,muted:K,name:null,nonce:null,noModule:K,noValidate:K,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:K,optimum:q,pattern:null,ping:J,placeholder:null,playsInline:K,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:K,referrerPolicy:null,rel:J,required:K,reversed:K,rows:q,rowSpan:q,sandbox:J,scope:null,scoped:K,seamless:K,selected:K,shadowRootClonable:K,shadowRootDelegatesFocus:K,shadowRootMode:null,shape:null,size:q,sizes:null,slot:null,span:q,spellCheck:Ph,src:null,srcDoc:null,srcLang:null,srcSet:null,start:q,step:null,style:null,tabIndex:q,target:null,title:null,translate:null,type:null,typeMustMatch:K,useMap:null,value:Ph,width:q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:J,axis:null,background:null,bgColor:null,border:q,borderColor:null,bottomMargin:q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:K,declare:K,event:null,face:null,frame:null,frameBorder:null,hSpace:q,leftMargin:q,link:null,longDesc:null,lowSrc:null,marginHeight:q,marginWidth:q,noResize:K,noHref:K,noShade:K,noWrap:K,object:null,profile:null,prompt:null,rev:null,rightMargin:q,rules:null,scheme:null,scrolling:Ph,standby:null,summary:null,text:null,topMargin:q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:K,disableRemotePlayback:K,prefix:null,property:null,results:q,security:null,unselectable:null},space:`html`,transform:Gh}),qh=Hh({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:Lh,accentHeight:q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:q,amplitude:q,arabicForm:null,ascent:q,attributeName:null,attributeType:null,azimuth:q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:q,by:null,calcMode:null,capHeight:q,className:J,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:q,diffuseConstant:q,direction:null,display:null,dur:null,divisor:q,dominantBaseline:null,download:K,dx:null,dy:null,edgeMode:null,editable:null,elevation:q,enableBackground:null,end:null,event:null,exponent:q,externalResourcesRequired:null,fill:null,fillOpacity:q,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ih,g2:Ih,glyphName:Ih,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:q,horizOriginX:q,horizOriginY:q,id:null,ideographic:q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:q,k:q,k1:q,k2:q,k3:q,k4:q,kernelMatrix:Lh,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:q,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:q,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:q,overlineThickness:q,paintOrder:null,panose1:null,path:null,pathLength:q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:J,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:q,pointsAtY:q,pointsAtZ:q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Lh,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Lh,rev:Lh,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Lh,requiredFeatures:Lh,requiredFonts:Lh,requiredFormats:Lh,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:q,specularExponent:q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:q,strikethroughThickness:q,string:null,stroke:null,strokeDashArray:Lh,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:q,strokeOpacity:q,strokeWidth:null,style:null,surfaceScale:q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Lh,tabIndex:q,tableValues:null,target:null,targetX:q,targetY:q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Lh,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:q,underlineThickness:q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:q,values:null,vAlphabetic:q,vMathematical:q,vectorEffect:null,vHanging:q,vIdeographic:q,version:null,vertAdvY:q,vertOriginX:q,vertOriginY:q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Wh}),Jh=Hh({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),Yh=Hh({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Gh}),Xh=Hh({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Zh={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},Qh=/[A-Z]/g,$h=/-[a-z]/g,eg=/^data[-\w.:]+$/i;function tg(e,t){let n=Ah(t),r=t,i=jh;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&eg.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace($h,rg);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!$h.test(e)){let n=e.replace(Qh,ng);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Bh}return new i(r,t)}function ng(e){return`-`+e.toLowerCase()}function rg(e){return e.charAt(1).toUpperCase()}var ig=kh([Uh,Kh,Jh,Yh,Xh],`html`),ag=kh([Uh,qh,Jh,Yh,Xh],`svg`);function og(e){return e.join(` `).trim()}var sg=u(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
|
|
261
|
-
`,d=`/`,f=`*`,p=``,m=`comment`,h=`declaration`;function g(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t=t||{};var l=1,g=1;function v(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(u);g=~n?e.length-n:g+e.length}function y(){var e={line:l,column:g};return function(t){return t.position=new b(e),C(),t}}function b(e){this.start=e,this.end={line:l,column:g},this.source=t.source}b.prototype.content=e;function x(n){var r=Error(t.source+`:`+l+`:`+g+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=g,r.source=e,!t.silent)throw r}function S(t){var n=t.exec(e);if(n){var r=n[0];return v(r),e=e.slice(r.length),n}}function C(){S(i)}function w(e){var t;for(e=e||[];t=T();)t!==!1&&e.push(t);return e}function T(){var t=y();if(!(d!=e.charAt(0)||f!=e.charAt(1))){for(var n=2;p!=e.charAt(n)&&(f!=e.charAt(n)||d!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return x(`End of comment missing`);var r=e.slice(2,n-2);return g+=2,v(r),e=e.slice(n),g+=2,t({type:m,comment:r})}}function E(){var e=y(),t=S(a);if(t){if(T(),!S(o))return x(`property missing ':'`);var r=S(s),i=e({type:h,property:_(t[0].replace(n,p)),value:r?_(r[0].replace(n,p)):p});return S(c),i}}function ee(){var e=[];w(e);for(var t;t=E();)t!==!1&&(e.push(t),w(e));return e}return C(),ee()}function _(e){return e?e.replace(l,p):p}t.exports=g})),cg=u((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.default=r;var n=t(sg());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r=r||{},r[n]=i)}),r}})),lg=u((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),ug=u(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(cg()),r=lg();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),dg=pg(`end`),fg=pg(`start`);function pg(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function mg(e){let t=fg(e),n=dg(e);if(t&&n)return{start:t,end:n}}function hg(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?_g(e.position):`start`in e||`end`in e?_g(e):`line`in e||`column`in e?gg(e):``}function gg(e){return vg(e&&e.line)+`:`+vg(e&&e.column)}function _g(e){return gg(e&&e.start)+`-`+gg(e&&e.end)}function vg(e){return e&&typeof e==`number`?e:1}var yg=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=hg(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};yg.prototype.file=``,yg.prototype.name=``,yg.prototype.reason=``,yg.prototype.message=``,yg.prototype.stack=``,yg.prototype.column=void 0,yg.prototype.line=void 0,yg.prototype.ancestors=void 0,yg.prototype.cause=void 0,yg.prototype.fatal=void 0,yg.prototype.place=void 0,yg.prototype.ruleId=void 0,yg.prototype.source=void 0;var bg=s(ug(),1),xg={}.hasOwnProperty,Sg=new Map,Cg=/[A-Z]/g,wg=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Tg=new Set([`td`,`th`]),Eg=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function Dg(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=Rg(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=Lg(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?ag:ig,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Og(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Og(e,t,n){if(t.type===`element`)return kg(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Ag(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Mg(e,t,n);if(t.type===`mdxjsEsm`)return jg(e,t);if(t.type===`root`)return Ng(e,t,n);if(t.type===`text`)return Pg(e,t)}function kg(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=ag,e.schema=i),e.ancestors.push(t);let a=Wg(e,t.tagName,!1),o=zg(e,t),s=Vg(e,t);return wg.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!Eh(e):!0})),Fg(e,o,a,t),Ig(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Ag(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Gg(e,t.position)}function jg(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Gg(e,t.position)}function Mg(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=ag,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:Wg(e,t.name,!0),o=Bg(e,t),s=Vg(e,t);return Fg(e,o,a,t),Ig(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Ng(e,t,n){let r={};return Ig(r,Vg(e,t)),e.create(t,e.Fragment,r,n)}function Pg(e,t){return t.value}function Fg(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Ig(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function Lg(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function Rg(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=fg(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function zg(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&xg.call(t.properties,i)){let a=Hg(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Tg.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||(n.style={});t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function Bg(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Gg(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else Gg(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function Vg(e,t){let n=[],r=-1,i=e.passKeys?new Map:Sg;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=Og(e,a,o);s!==void 0&&n.push(s)}return n}function Hg(e,t,n){let r=tg(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?bh(n):og(n)),r.property===`style`){let t=typeof n==`object`?n:Ug(e,String(n));return e.stylePropertyNameCase===`css`&&(t=Kg(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?Zh[r.property]||r.property:r.attribute,n]}}function Ug(e,t){try{return(0,bg.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new yg("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=Eg+`#cannot-parse-style-attribute`,r}}function Wg(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=wh(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=wh(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return xg.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Gg(e)}function Gg(e,t){let n=new yg("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=Eg+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function Kg(e){let t={},n;for(n in e)xg.call(e,n)&&(t[qg(n)]=e[n]);return t}function qg(e){let t=e.replace(Cg,Jg);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function Jg(e){return`-`+e.toLowerCase()}var Yg={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},Xg={};function Zg(e,t){let n=t||Xg;return Qg(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function Qg(e,t,n){if(e_(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return $g(e.children,t,n)}return Array.isArray(e)?$g(e,t,n):``}function $g(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=Qg(e[i],t,n);return r.join(``)}function e_(e){return!!(e&&typeof e==`object`)}var t_={AElig:`Æ`,AMP:`&`,Aacute:`Á`,Abreve:`Ă`,Acirc:`Â`,Acy:`А`,Afr:`𝔄`,Agrave:`À`,Alpha:`Α`,Amacr:`Ā`,And:`⩓`,Aogon:`Ą`,Aopf:`𝔸`,ApplyFunction:``,Aring:`Å`,Ascr:`𝒜`,Assign:`≔`,Atilde:`Ã`,Auml:`Ä`,Backslash:`∖`,Barv:`⫧`,Barwed:`⌆`,Bcy:`Б`,Because:`∵`,Bernoullis:`ℬ`,Beta:`Β`,Bfr:`𝔅`,Bopf:`𝔹`,Breve:`˘`,Bscr:`ℬ`,Bumpeq:`≎`,CHcy:`Ч`,COPY:`©`,Cacute:`Ć`,Cap:`⋒`,CapitalDifferentialD:`ⅅ`,Cayleys:`ℭ`,Ccaron:`Č`,Ccedil:`Ç`,Ccirc:`Ĉ`,Cconint:`∰`,Cdot:`Ċ`,Cedilla:`¸`,CenterDot:`·`,Cfr:`ℭ`,Chi:`Χ`,CircleDot:`⊙`,CircleMinus:`⊖`,CirclePlus:`⊕`,CircleTimes:`⊗`,ClockwiseContourIntegral:`∲`,CloseCurlyDoubleQuote:`”`,CloseCurlyQuote:`’`,Colon:`∷`,Colone:`⩴`,Congruent:`≡`,Conint:`∯`,ContourIntegral:`∮`,Copf:`ℂ`,Coproduct:`∐`,CounterClockwiseContourIntegral:`∳`,Cross:`⨯`,Cscr:`𝒞`,Cup:`⋓`,CupCap:`≍`,DD:`ⅅ`,DDotrahd:`⤑`,DJcy:`Ђ`,DScy:`Ѕ`,DZcy:`Џ`,Dagger:`‡`,Darr:`↡`,Dashv:`⫤`,Dcaron:`Ď`,Dcy:`Д`,Del:`∇`,Delta:`Δ`,Dfr:`𝔇`,DiacriticalAcute:`´`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,DiacriticalGrave:"`",DiacriticalTilde:`˜`,Diamond:`⋄`,DifferentialD:`ⅆ`,Dopf:`𝔻`,Dot:`¨`,DotDot:`⃜`,DotEqual:`≐`,DoubleContourIntegral:`∯`,DoubleDot:`¨`,DoubleDownArrow:`⇓`,DoubleLeftArrow:`⇐`,DoubleLeftRightArrow:`⇔`,DoubleLeftTee:`⫤`,DoubleLongLeftArrow:`⟸`,DoubleLongLeftRightArrow:`⟺`,DoubleLongRightArrow:`⟹`,DoubleRightArrow:`⇒`,DoubleRightTee:`⊨`,DoubleUpArrow:`⇑`,DoubleUpDownArrow:`⇕`,DoubleVerticalBar:`∥`,DownArrow:`↓`,DownArrowBar:`⤓`,DownArrowUpArrow:`⇵`,DownBreve:`̑`,DownLeftRightVector:`⥐`,DownLeftTeeVector:`⥞`,DownLeftVector:`↽`,DownLeftVectorBar:`⥖`,DownRightTeeVector:`⥟`,DownRightVector:`⇁`,DownRightVectorBar:`⥗`,DownTee:`⊤`,DownTeeArrow:`↧`,Downarrow:`⇓`,Dscr:`𝒟`,Dstrok:`Đ`,ENG:`Ŋ`,ETH:`Ð`,Eacute:`É`,Ecaron:`Ě`,Ecirc:`Ê`,Ecy:`Э`,Edot:`Ė`,Efr:`𝔈`,Egrave:`È`,Element:`∈`,Emacr:`Ē`,EmptySmallSquare:`◻`,EmptyVerySmallSquare:`▫`,Eogon:`Ę`,Eopf:`𝔼`,Epsilon:`Ε`,Equal:`⩵`,EqualTilde:`≂`,Equilibrium:`⇌`,Escr:`ℰ`,Esim:`⩳`,Eta:`Η`,Euml:`Ë`,Exists:`∃`,ExponentialE:`ⅇ`,Fcy:`Ф`,Ffr:`𝔉`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,Fopf:`𝔽`,ForAll:`∀`,Fouriertrf:`ℱ`,Fscr:`ℱ`,GJcy:`Ѓ`,GT:`>`,Gamma:`Γ`,Gammad:`Ϝ`,Gbreve:`Ğ`,Gcedil:`Ģ`,Gcirc:`Ĝ`,Gcy:`Г`,Gdot:`Ġ`,Gfr:`𝔊`,Gg:`⋙`,Gopf:`𝔾`,GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterGreater:`⪢`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Gscr:`𝒢`,Gt:`≫`,HARDcy:`Ъ`,Hacek:`ˇ`,Hat:`^`,Hcirc:`Ĥ`,Hfr:`ℌ`,HilbertSpace:`ℋ`,Hopf:`ℍ`,HorizontalLine:`─`,Hscr:`ℋ`,Hstrok:`Ħ`,HumpDownHump:`≎`,HumpEqual:`≏`,IEcy:`Е`,IJlig:`IJ`,IOcy:`Ё`,Iacute:`Í`,Icirc:`Î`,Icy:`И`,Idot:`İ`,Ifr:`ℑ`,Igrave:`Ì`,Im:`ℑ`,Imacr:`Ī`,ImaginaryI:`ⅈ`,Implies:`⇒`,Int:`∬`,Integral:`∫`,Intersection:`⋂`,InvisibleComma:``,InvisibleTimes:``,Iogon:`Į`,Iopf:`𝕀`,Iota:`Ι`,Iscr:`ℐ`,Itilde:`Ĩ`,Iukcy:`І`,Iuml:`Ï`,Jcirc:`Ĵ`,Jcy:`Й`,Jfr:`𝔍`,Jopf:`𝕁`,Jscr:`𝒥`,Jsercy:`Ј`,Jukcy:`Є`,KHcy:`Х`,KJcy:`Ќ`,Kappa:`Κ`,Kcedil:`Ķ`,Kcy:`К`,Kfr:`𝔎`,Kopf:`𝕂`,Kscr:`𝒦`,LJcy:`Љ`,LT:`<`,Lacute:`Ĺ`,Lambda:`Λ`,Lang:`⟪`,Laplacetrf:`ℒ`,Larr:`↞`,Lcaron:`Ľ`,Lcedil:`Ļ`,Lcy:`Л`,LeftAngleBracket:`⟨`,LeftArrow:`←`,LeftArrowBar:`⇤`,LeftArrowRightArrow:`⇆`,LeftCeiling:`⌈`,LeftDoubleBracket:`⟦`,LeftDownTeeVector:`⥡`,LeftDownVector:`⇃`,LeftDownVectorBar:`⥙`,LeftFloor:`⌊`,LeftRightArrow:`↔`,LeftRightVector:`⥎`,LeftTee:`⊣`,LeftTeeArrow:`↤`,LeftTeeVector:`⥚`,LeftTriangle:`⊲`,LeftTriangleBar:`⧏`,LeftTriangleEqual:`⊴`,LeftUpDownVector:`⥑`,LeftUpTeeVector:`⥠`,LeftUpVector:`↿`,LeftUpVectorBar:`⥘`,LeftVector:`↼`,LeftVectorBar:`⥒`,Leftarrow:`⇐`,Leftrightarrow:`⇔`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,LessLess:`⪡`,LessSlantEqual:`⩽`,LessTilde:`≲`,Lfr:`𝔏`,Ll:`⋘`,Lleftarrow:`⇚`,Lmidot:`Ŀ`,LongLeftArrow:`⟵`,LongLeftRightArrow:`⟷`,LongRightArrow:`⟶`,Longleftarrow:`⟸`,Longleftrightarrow:`⟺`,Longrightarrow:`⟹`,Lopf:`𝕃`,LowerLeftArrow:`↙`,LowerRightArrow:`↘`,Lscr:`ℒ`,Lsh:`↰`,Lstrok:`Ł`,Lt:`≪`,Map:`⤅`,Mcy:`М`,MediumSpace:` `,Mellintrf:`ℳ`,Mfr:`𝔐`,MinusPlus:`∓`,Mopf:`𝕄`,Mscr:`ℳ`,Mu:`Μ`,NJcy:`Њ`,Nacute:`Ń`,Ncaron:`Ň`,Ncedil:`Ņ`,Ncy:`Н`,NegativeMediumSpace:``,NegativeThickSpace:``,NegativeThinSpace:``,NegativeVeryThinSpace:``,NestedGreaterGreater:`≫`,NestedLessLess:`≪`,NewLine:`
|
|
262
|
-
`,Nfr:`𝔑`,NoBreak:``,NonBreakingSpace:`\xA0`,Nopf:`ℕ`,Not:`⫬`,NotCongruent:`≢`,NotCupCap:`≭`,NotDoubleVerticalBar:`∦`,NotElement:`∉`,NotEqual:`≠`,NotEqualTilde:`≂̸`,NotExists:`∄`,NotGreater:`≯`,NotGreaterEqual:`≱`,NotGreaterFullEqual:`≧̸`,NotGreaterGreater:`≫̸`,NotGreaterLess:`≹`,NotGreaterSlantEqual:`⩾̸`,NotGreaterTilde:`≵`,NotHumpDownHump:`≎̸`,NotHumpEqual:`≏̸`,NotLeftTriangle:`⋪`,NotLeftTriangleBar:`⧏̸`,NotLeftTriangleEqual:`⋬`,NotLess:`≮`,NotLessEqual:`≰`,NotLessGreater:`≸`,NotLessLess:`≪̸`,NotLessSlantEqual:`⩽̸`,NotLessTilde:`≴`,NotNestedGreaterGreater:`⪢̸`,NotNestedLessLess:`⪡̸`,NotPrecedes:`⊀`,NotPrecedesEqual:`⪯̸`,NotPrecedesSlantEqual:`⋠`,NotReverseElement:`∌`,NotRightTriangle:`⋫`,NotRightTriangleBar:`⧐̸`,NotRightTriangleEqual:`⋭`,NotSquareSubset:`⊏̸`,NotSquareSubsetEqual:`⋢`,NotSquareSuperset:`⊐̸`,NotSquareSupersetEqual:`⋣`,NotSubset:`⊂⃒`,NotSubsetEqual:`⊈`,NotSucceeds:`⊁`,NotSucceedsEqual:`⪰̸`,NotSucceedsSlantEqual:`⋡`,NotSucceedsTilde:`≿̸`,NotSuperset:`⊃⃒`,NotSupersetEqual:`⊉`,NotTilde:`≁`,NotTildeEqual:`≄`,NotTildeFullEqual:`≇`,NotTildeTilde:`≉`,NotVerticalBar:`∤`,Nscr:`𝒩`,Ntilde:`Ñ`,Nu:`Ν`,OElig:`Œ`,Oacute:`Ó`,Ocirc:`Ô`,Ocy:`О`,Odblac:`Ő`,Ofr:`𝔒`,Ograve:`Ò`,Omacr:`Ō`,Omega:`Ω`,Omicron:`Ο`,Oopf:`𝕆`,OpenCurlyDoubleQuote:`“`,OpenCurlyQuote:`‘`,Or:`⩔`,Oscr:`𝒪`,Oslash:`Ø`,Otilde:`Õ`,Otimes:`⨷`,Ouml:`Ö`,OverBar:`‾`,OverBrace:`⏞`,OverBracket:`⎴`,OverParenthesis:`⏜`,PartialD:`∂`,Pcy:`П`,Pfr:`𝔓`,Phi:`Φ`,Pi:`Π`,PlusMinus:`±`,Poincareplane:`ℌ`,Popf:`ℙ`,Pr:`⪻`,Precedes:`≺`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`≼`,PrecedesTilde:`≾`,Prime:`″`,Product:`∏`,Proportion:`∷`,Proportional:`∝`,Pscr:`𝒫`,Psi:`Ψ`,QUOT:`"`,Qfr:`𝔔`,Qopf:`ℚ`,Qscr:`𝒬`,RBarr:`⤐`,REG:`®`,Racute:`Ŕ`,Rang:`⟫`,Rarr:`↠`,Rarrtl:`⤖`,Rcaron:`Ř`,Rcedil:`Ŗ`,Rcy:`Р`,Re:`ℜ`,ReverseElement:`∋`,ReverseEquilibrium:`⇋`,ReverseUpEquilibrium:`⥯`,Rfr:`ℜ`,Rho:`Ρ`,RightAngleBracket:`⟩`,RightArrow:`→`,RightArrowBar:`⇥`,RightArrowLeftArrow:`⇄`,RightCeiling:`⌉`,RightDoubleBracket:`⟧`,RightDownTeeVector:`⥝`,RightDownVector:`⇂`,RightDownVectorBar:`⥕`,RightFloor:`⌋`,RightTee:`⊢`,RightTeeArrow:`↦`,RightTeeVector:`⥛`,RightTriangle:`⊳`,RightTriangleBar:`⧐`,RightTriangleEqual:`⊵`,RightUpDownVector:`⥏`,RightUpTeeVector:`⥜`,RightUpVector:`↾`,RightUpVectorBar:`⥔`,RightVector:`⇀`,RightVectorBar:`⥓`,Rightarrow:`⇒`,Ropf:`ℝ`,RoundImplies:`⥰`,Rrightarrow:`⇛`,Rscr:`ℛ`,Rsh:`↱`,RuleDelayed:`⧴`,SHCHcy:`Щ`,SHcy:`Ш`,SOFTcy:`Ь`,Sacute:`Ś`,Sc:`⪼`,Scaron:`Š`,Scedil:`Ş`,Scirc:`Ŝ`,Scy:`С`,Sfr:`𝔖`,ShortDownArrow:`↓`,ShortLeftArrow:`←`,ShortRightArrow:`→`,ShortUpArrow:`↑`,Sigma:`Σ`,SmallCircle:`∘`,Sopf:`𝕊`,Sqrt:`√`,Square:`□`,SquareIntersection:`⊓`,SquareSubset:`⊏`,SquareSubsetEqual:`⊑`,SquareSuperset:`⊐`,SquareSupersetEqual:`⊒`,SquareUnion:`⊔`,Sscr:`𝒮`,Star:`⋆`,Sub:`⋐`,Subset:`⋐`,SubsetEqual:`⊆`,Succeeds:`≻`,SucceedsEqual:`⪰`,SucceedsSlantEqual:`≽`,SucceedsTilde:`≿`,SuchThat:`∋`,Sum:`∑`,Sup:`⋑`,Superset:`⊃`,SupersetEqual:`⊇`,Supset:`⋑`,THORN:`Þ`,TRADE:`™`,TSHcy:`Ћ`,TScy:`Ц`,Tab:` `,Tau:`Τ`,Tcaron:`Ť`,Tcedil:`Ţ`,Tcy:`Т`,Tfr:`𝔗`,Therefore:`∴`,Theta:`Θ`,ThickSpace:` `,ThinSpace:` `,Tilde:`∼`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,Topf:`𝕋`,TripleDot:`⃛`,Tscr:`𝒯`,Tstrok:`Ŧ`,Uacute:`Ú`,Uarr:`↟`,Uarrocir:`⥉`,Ubrcy:`Ў`,Ubreve:`Ŭ`,Ucirc:`Û`,Ucy:`У`,Udblac:`Ű`,Ufr:`𝔘`,Ugrave:`Ù`,Umacr:`Ū`,UnderBar:`_`,UnderBrace:`⏟`,UnderBracket:`⎵`,UnderParenthesis:`⏝`,Union:`⋃`,UnionPlus:`⊎`,Uogon:`Ų`,Uopf:`𝕌`,UpArrow:`↑`,UpArrowBar:`⤒`,UpArrowDownArrow:`⇅`,UpDownArrow:`↕`,UpEquilibrium:`⥮`,UpTee:`⊥`,UpTeeArrow:`↥`,Uparrow:`⇑`,Updownarrow:`⇕`,UpperLeftArrow:`↖`,UpperRightArrow:`↗`,Upsi:`ϒ`,Upsilon:`Υ`,Uring:`Ů`,Uscr:`𝒰`,Utilde:`Ũ`,Uuml:`Ü`,VDash:`⊫`,Vbar:`⫫`,Vcy:`В`,Vdash:`⊩`,Vdashl:`⫦`,Vee:`⋁`,Verbar:`‖`,Vert:`‖`,VerticalBar:`∣`,VerticalLine:`|`,VerticalSeparator:`❘`,VerticalTilde:`≀`,VeryThinSpace:` `,Vfr:`𝔙`,Vopf:`𝕍`,Vscr:`𝒱`,Vvdash:`⊪`,Wcirc:`Ŵ`,Wedge:`⋀`,Wfr:`𝔚`,Wopf:`𝕎`,Wscr:`𝒲`,Xfr:`𝔛`,Xi:`Ξ`,Xopf:`𝕏`,Xscr:`𝒳`,YAcy:`Я`,YIcy:`Ї`,YUcy:`Ю`,Yacute:`Ý`,Ycirc:`Ŷ`,Ycy:`Ы`,Yfr:`𝔜`,Yopf:`𝕐`,Yscr:`𝒴`,Yuml:`Ÿ`,ZHcy:`Ж`,Zacute:`Ź`,Zcaron:`Ž`,Zcy:`З`,Zdot:`Ż`,ZeroWidthSpace:``,Zeta:`Ζ`,Zfr:`ℨ`,Zopf:`ℤ`,Zscr:`𝒵`,aacute:`á`,abreve:`ă`,ac:`∾`,acE:`∾̳`,acd:`∿`,acirc:`â`,acute:`´`,acy:`а`,aelig:`æ`,af:``,afr:`𝔞`,agrave:`à`,alefsym:`ℵ`,aleph:`ℵ`,alpha:`α`,amacr:`ā`,amalg:`⨿`,amp:`&`,and:`∧`,andand:`⩕`,andd:`⩜`,andslope:`⩘`,andv:`⩚`,ang:`∠`,ange:`⦤`,angle:`∠`,angmsd:`∡`,angmsdaa:`⦨`,angmsdab:`⦩`,angmsdac:`⦪`,angmsdad:`⦫`,angmsdae:`⦬`,angmsdaf:`⦭`,angmsdag:`⦮`,angmsdah:`⦯`,angrt:`∟`,angrtvb:`⊾`,angrtvbd:`⦝`,angsph:`∢`,angst:`Å`,angzarr:`⍼`,aogon:`ą`,aopf:`𝕒`,ap:`≈`,apE:`⩰`,apacir:`⩯`,ape:`≊`,apid:`≋`,apos:`'`,approx:`≈`,approxeq:`≊`,aring:`å`,ascr:`𝒶`,ast:`*`,asymp:`≈`,asympeq:`≍`,atilde:`ã`,auml:`ä`,awconint:`∳`,awint:`⨑`,bNot:`⫭`,backcong:`≌`,backepsilon:`϶`,backprime:`‵`,backsim:`∽`,backsimeq:`⋍`,barvee:`⊽`,barwed:`⌅`,barwedge:`⌅`,bbrk:`⎵`,bbrktbrk:`⎶`,bcong:`≌`,bcy:`б`,bdquo:`„`,becaus:`∵`,because:`∵`,bemptyv:`⦰`,bepsi:`϶`,bernou:`ℬ`,beta:`β`,beth:`ℶ`,between:`≬`,bfr:`𝔟`,bigcap:`⋂`,bigcirc:`◯`,bigcup:`⋃`,bigodot:`⨀`,bigoplus:`⨁`,bigotimes:`⨂`,bigsqcup:`⨆`,bigstar:`★`,bigtriangledown:`▽`,bigtriangleup:`△`,biguplus:`⨄`,bigvee:`⋁`,bigwedge:`⋀`,bkarow:`⤍`,blacklozenge:`⧫`,blacksquare:`▪`,blacktriangle:`▴`,blacktriangledown:`▾`,blacktriangleleft:`◂`,blacktriangleright:`▸`,blank:`␣`,blk12:`▒`,blk14:`░`,blk34:`▓`,block:`█`,bne:`=⃥`,bnequiv:`≡⃥`,bnot:`⌐`,bopf:`𝕓`,bot:`⊥`,bottom:`⊥`,bowtie:`⋈`,boxDL:`╗`,boxDR:`╔`,boxDl:`╖`,boxDr:`╓`,boxH:`═`,boxHD:`╦`,boxHU:`╩`,boxHd:`╤`,boxHu:`╧`,boxUL:`╝`,boxUR:`╚`,boxUl:`╜`,boxUr:`╙`,boxV:`║`,boxVH:`╬`,boxVL:`╣`,boxVR:`╠`,boxVh:`╫`,boxVl:`╢`,boxVr:`╟`,boxbox:`⧉`,boxdL:`╕`,boxdR:`╒`,boxdl:`┐`,boxdr:`┌`,boxh:`─`,boxhD:`╥`,boxhU:`╨`,boxhd:`┬`,boxhu:`┴`,boxminus:`⊟`,boxplus:`⊞`,boxtimes:`⊠`,boxuL:`╛`,boxuR:`╘`,boxul:`┘`,boxur:`└`,boxv:`│`,boxvH:`╪`,boxvL:`╡`,boxvR:`╞`,boxvh:`┼`,boxvl:`┤`,boxvr:`├`,bprime:`‵`,breve:`˘`,brvbar:`¦`,bscr:`𝒷`,bsemi:`⁏`,bsim:`∽`,bsime:`⋍`,bsol:`\\`,bsolb:`⧅`,bsolhsub:`⟈`,bull:`•`,bullet:`•`,bump:`≎`,bumpE:`⪮`,bumpe:`≏`,bumpeq:`≏`,cacute:`ć`,cap:`∩`,capand:`⩄`,capbrcup:`⩉`,capcap:`⩋`,capcup:`⩇`,capdot:`⩀`,caps:`∩︀`,caret:`⁁`,caron:`ˇ`,ccaps:`⩍`,ccaron:`č`,ccedil:`ç`,ccirc:`ĉ`,ccups:`⩌`,ccupssm:`⩐`,cdot:`ċ`,cedil:`¸`,cemptyv:`⦲`,cent:`¢`,centerdot:`·`,cfr:`𝔠`,chcy:`ч`,check:`✓`,checkmark:`✓`,chi:`χ`,cir:`○`,cirE:`⧃`,circ:`ˆ`,circeq:`≗`,circlearrowleft:`↺`,circlearrowright:`↻`,circledR:`®`,circledS:`Ⓢ`,circledast:`⊛`,circledcirc:`⊚`,circleddash:`⊝`,cire:`≗`,cirfnint:`⨐`,cirmid:`⫯`,cirscir:`⧂`,clubs:`♣`,clubsuit:`♣`,colon:`:`,colone:`≔`,coloneq:`≔`,comma:`,`,commat:`@`,comp:`∁`,compfn:`∘`,complement:`∁`,complexes:`ℂ`,cong:`≅`,congdot:`⩭`,conint:`∮`,copf:`𝕔`,coprod:`∐`,copy:`©`,copysr:`℗`,crarr:`↵`,cross:`✗`,cscr:`𝒸`,csub:`⫏`,csube:`⫑`,csup:`⫐`,csupe:`⫒`,ctdot:`⋯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cularrp:`⤽`,cup:`∪`,cupbrcap:`⩈`,cupcap:`⩆`,cupcup:`⩊`,cupdot:`⊍`,cupor:`⩅`,cups:`∪︀`,curarr:`↷`,curarrm:`⤼`,curlyeqprec:`⋞`,curlyeqsucc:`⋟`,curlyvee:`⋎`,curlywedge:`⋏`,curren:`¤`,curvearrowleft:`↶`,curvearrowright:`↷`,cuvee:`⋎`,cuwed:`⋏`,cwconint:`∲`,cwint:`∱`,cylcty:`⌭`,dArr:`⇓`,dHar:`⥥`,dagger:`†`,daleth:`ℸ`,darr:`↓`,dash:`‐`,dashv:`⊣`,dbkarow:`⤏`,dblac:`˝`,dcaron:`ď`,dcy:`д`,dd:`ⅆ`,ddagger:`‡`,ddarr:`⇊`,ddotseq:`⩷`,deg:`°`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,dfr:`𝔡`,dharl:`⇃`,dharr:`⇂`,diam:`⋄`,diamond:`⋄`,diamondsuit:`♦`,diams:`♦`,die:`¨`,digamma:`ϝ`,disin:`⋲`,div:`÷`,divide:`÷`,divideontimes:`⋇`,divonx:`⋇`,djcy:`ђ`,dlcorn:`⌞`,dlcrop:`⌍`,dollar:`$`,dopf:`𝕕`,dot:`˙`,doteq:`≐`,doteqdot:`≑`,dotminus:`∸`,dotplus:`∔`,dotsquare:`⊡`,doublebarwedge:`⌆`,downarrow:`↓`,downdownarrows:`⇊`,downharpoonleft:`⇃`,downharpoonright:`⇂`,drbkarow:`⤐`,drcorn:`⌟`,drcrop:`⌌`,dscr:`𝒹`,dscy:`ѕ`,dsol:`⧶`,dstrok:`đ`,dtdot:`⋱`,dtri:`▿`,dtrif:`▾`,duarr:`⇵`,duhar:`⥯`,dwangle:`⦦`,dzcy:`џ`,dzigrarr:`⟿`,eDDot:`⩷`,eDot:`≑`,eacute:`é`,easter:`⩮`,ecaron:`ě`,ecir:`≖`,ecirc:`ê`,ecolon:`≕`,ecy:`э`,edot:`ė`,ee:`ⅇ`,efDot:`≒`,efr:`𝔢`,eg:`⪚`,egrave:`è`,egs:`⪖`,egsdot:`⪘`,el:`⪙`,elinters:`⏧`,ell:`ℓ`,els:`⪕`,elsdot:`⪗`,emacr:`ē`,empty:`∅`,emptyset:`∅`,emptyv:`∅`,emsp13:` `,emsp14:` `,emsp:` `,eng:`ŋ`,ensp:` `,eogon:`ę`,eopf:`𝕖`,epar:`⋕`,eparsl:`⧣`,eplus:`⩱`,epsi:`ε`,epsilon:`ε`,epsiv:`ϵ`,eqcirc:`≖`,eqcolon:`≕`,eqsim:`≂`,eqslantgtr:`⪖`,eqslantless:`⪕`,equals:`=`,equest:`≟`,equiv:`≡`,equivDD:`⩸`,eqvparsl:`⧥`,erDot:`≓`,erarr:`⥱`,escr:`ℯ`,esdot:`≐`,esim:`≂`,eta:`η`,eth:`ð`,euml:`ë`,euro:`€`,excl:`!`,exist:`∃`,expectation:`ℰ`,exponentiale:`ⅇ`,fallingdotseq:`≒`,fcy:`ф`,female:`♀`,ffilig:`ffi`,fflig:`ff`,ffllig:`ffl`,ffr:`𝔣`,filig:`fi`,fjlig:`fj`,flat:`♭`,fllig:`fl`,fltns:`▱`,fnof:`ƒ`,fopf:`𝕗`,forall:`∀`,fork:`⋔`,forkv:`⫙`,fpartint:`⨍`,frac12:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`,frown:`⌢`,fscr:`𝒻`,gE:`≧`,gEl:`⪌`,gacute:`ǵ`,gamma:`γ`,gammad:`ϝ`,gap:`⪆`,gbreve:`ğ`,gcirc:`ĝ`,gcy:`г`,gdot:`ġ`,ge:`≥`,gel:`⋛`,geq:`≥`,geqq:`≧`,geqslant:`⩾`,ges:`⩾`,gescc:`⪩`,gesdot:`⪀`,gesdoto:`⪂`,gesdotol:`⪄`,gesl:`⋛︀`,gesles:`⪔`,gfr:`𝔤`,gg:`≫`,ggg:`⋙`,gimel:`ℷ`,gjcy:`ѓ`,gl:`≷`,glE:`⪒`,gla:`⪥`,glj:`⪤`,gnE:`≩`,gnap:`⪊`,gnapprox:`⪊`,gne:`⪈`,gneq:`⪈`,gneqq:`≩`,gnsim:`⋧`,gopf:`𝕘`,grave:"`",gscr:`ℊ`,gsim:`≳`,gsime:`⪎`,gsiml:`⪐`,gt:`>`,gtcc:`⪧`,gtcir:`⩺`,gtdot:`⋗`,gtlPar:`⦕`,gtquest:`⩼`,gtrapprox:`⪆`,gtrarr:`⥸`,gtrdot:`⋗`,gtreqless:`⋛`,gtreqqless:`⪌`,gtrless:`≷`,gtrsim:`≳`,gvertneqq:`≩︀`,gvnE:`≩︀`,hArr:`⇔`,hairsp:` `,half:`½`,hamilt:`ℋ`,hardcy:`ъ`,harr:`↔`,harrcir:`⥈`,harrw:`↭`,hbar:`ℏ`,hcirc:`ĥ`,hearts:`♥`,heartsuit:`♥`,hellip:`…`,hercon:`⊹`,hfr:`𝔥`,hksearow:`⤥`,hkswarow:`⤦`,hoarr:`⇿`,homtht:`∻`,hookleftarrow:`↩`,hookrightarrow:`↪`,hopf:`𝕙`,horbar:`―`,hscr:`𝒽`,hslash:`ℏ`,hstrok:`ħ`,hybull:`⁃`,hyphen:`‐`,iacute:`í`,ic:``,icirc:`î`,icy:`и`,iecy:`е`,iexcl:`¡`,iff:`⇔`,ifr:`𝔦`,igrave:`ì`,ii:`ⅈ`,iiiint:`⨌`,iiint:`∭`,iinfin:`⧜`,iiota:`℩`,ijlig:`ij`,imacr:`ī`,image:`ℑ`,imagline:`ℐ`,imagpart:`ℑ`,imath:`ı`,imof:`⊷`,imped:`Ƶ`,in:`∈`,incare:`℅`,infin:`∞`,infintie:`⧝`,inodot:`ı`,int:`∫`,intcal:`⊺`,integers:`ℤ`,intercal:`⊺`,intlarhk:`⨗`,intprod:`⨼`,iocy:`ё`,iogon:`į`,iopf:`𝕚`,iota:`ι`,iprod:`⨼`,iquest:`¿`,iscr:`𝒾`,isin:`∈`,isinE:`⋹`,isindot:`⋵`,isins:`⋴`,isinsv:`⋳`,isinv:`∈`,it:``,itilde:`ĩ`,iukcy:`і`,iuml:`ï`,jcirc:`ĵ`,jcy:`й`,jfr:`𝔧`,jmath:`ȷ`,jopf:`𝕛`,jscr:`𝒿`,jsercy:`ј`,jukcy:`є`,kappa:`κ`,kappav:`ϰ`,kcedil:`ķ`,kcy:`к`,kfr:`𝔨`,kgreen:`ĸ`,khcy:`х`,kjcy:`ќ`,kopf:`𝕜`,kscr:`𝓀`,lAarr:`⇚`,lArr:`⇐`,lAtail:`⤛`,lBarr:`⤎`,lE:`≦`,lEg:`⪋`,lHar:`⥢`,lacute:`ĺ`,laemptyv:`⦴`,lagran:`ℒ`,lambda:`λ`,lang:`⟨`,langd:`⦑`,langle:`⟨`,lap:`⪅`,laquo:`«`,larr:`←`,larrb:`⇤`,larrbfs:`⤟`,larrfs:`⤝`,larrhk:`↩`,larrlp:`↫`,larrpl:`⤹`,larrsim:`⥳`,larrtl:`↢`,lat:`⪫`,latail:`⤙`,late:`⪭`,lates:`⪭︀`,lbarr:`⤌`,lbbrk:`❲`,lbrace:`{`,lbrack:`[`,lbrke:`⦋`,lbrksld:`⦏`,lbrkslu:`⦍`,lcaron:`ľ`,lcedil:`ļ`,lceil:`⌈`,lcub:`{`,lcy:`л`,ldca:`⤶`,ldquo:`“`,ldquor:`„`,ldrdhar:`⥧`,ldrushar:`⥋`,ldsh:`↲`,le:`≤`,leftarrow:`←`,leftarrowtail:`↢`,leftharpoondown:`↽`,leftharpoonup:`↼`,leftleftarrows:`⇇`,leftrightarrow:`↔`,leftrightarrows:`⇆`,leftrightharpoons:`⇋`,leftrightsquigarrow:`↭`,leftthreetimes:`⋋`,leg:`⋚`,leq:`≤`,leqq:`≦`,leqslant:`⩽`,les:`⩽`,lescc:`⪨`,lesdot:`⩿`,lesdoto:`⪁`,lesdotor:`⪃`,lesg:`⋚︀`,lesges:`⪓`,lessapprox:`⪅`,lessdot:`⋖`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,lessgtr:`≶`,lesssim:`≲`,lfisht:`⥼`,lfloor:`⌊`,lfr:`𝔩`,lg:`≶`,lgE:`⪑`,lhard:`↽`,lharu:`↼`,lharul:`⥪`,lhblk:`▄`,ljcy:`љ`,ll:`≪`,llarr:`⇇`,llcorner:`⌞`,llhard:`⥫`,lltri:`◺`,lmidot:`ŀ`,lmoust:`⎰`,lmoustache:`⎰`,lnE:`≨`,lnap:`⪉`,lnapprox:`⪉`,lne:`⪇`,lneq:`⪇`,lneqq:`≨`,lnsim:`⋦`,loang:`⟬`,loarr:`⇽`,lobrk:`⟦`,longleftarrow:`⟵`,longleftrightarrow:`⟷`,longmapsto:`⟼`,longrightarrow:`⟶`,looparrowleft:`↫`,looparrowright:`↬`,lopar:`⦅`,lopf:`𝕝`,loplus:`⨭`,lotimes:`⨴`,lowast:`∗`,lowbar:`_`,loz:`◊`,lozenge:`◊`,lozf:`⧫`,lpar:`(`,lparlt:`⦓`,lrarr:`⇆`,lrcorner:`⌟`,lrhar:`⇋`,lrhard:`⥭`,lrm:``,lrtri:`⊿`,lsaquo:`‹`,lscr:`𝓁`,lsh:`↰`,lsim:`≲`,lsime:`⪍`,lsimg:`⪏`,lsqb:`[`,lsquo:`‘`,lsquor:`‚`,lstrok:`ł`,lt:`<`,ltcc:`⪦`,ltcir:`⩹`,ltdot:`⋖`,lthree:`⋋`,ltimes:`⋉`,ltlarr:`⥶`,ltquest:`⩻`,ltrPar:`⦖`,ltri:`◃`,ltrie:`⊴`,ltrif:`◂`,lurdshar:`⥊`,luruhar:`⥦`,lvertneqq:`≨︀`,lvnE:`≨︀`,mDDot:`∺`,macr:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,mapstoleft:`↤`,mapstoup:`↥`,marker:`▮`,mcomma:`⨩`,mcy:`м`,mdash:`—`,measuredangle:`∡`,mfr:`𝔪`,mho:`℧`,micro:`µ`,mid:`∣`,midast:`*`,midcir:`⫰`,middot:`·`,minus:`−`,minusb:`⊟`,minusd:`∸`,minusdu:`⨪`,mlcp:`⫛`,mldr:`…`,mnplus:`∓`,models:`⊧`,mopf:`𝕞`,mp:`∓`,mscr:`𝓂`,mstpos:`∾`,mu:`μ`,multimap:`⊸`,mumap:`⊸`,nGg:`⋙̸`,nGt:`≫⃒`,nGtv:`≫̸`,nLeftarrow:`⇍`,nLeftrightarrow:`⇎`,nLl:`⋘̸`,nLt:`≪⃒`,nLtv:`≪̸`,nRightarrow:`⇏`,nVDash:`⊯`,nVdash:`⊮`,nabla:`∇`,nacute:`ń`,nang:`∠⃒`,nap:`≉`,napE:`⩰̸`,napid:`≋̸`,napos:`ʼn`,napprox:`≉`,natur:`♮`,natural:`♮`,naturals:`ℕ`,nbsp:`\xA0`,nbump:`≎̸`,nbumpe:`≏̸`,ncap:`⩃`,ncaron:`ň`,ncedil:`ņ`,ncong:`≇`,ncongdot:`⩭̸`,ncup:`⩂`,ncy:`н`,ndash:`–`,ne:`≠`,neArr:`⇗`,nearhk:`⤤`,nearr:`↗`,nearrow:`↗`,nedot:`≐̸`,nequiv:`≢`,nesear:`⤨`,nesim:`≂̸`,nexist:`∄`,nexists:`∄`,nfr:`𝔫`,ngE:`≧̸`,nge:`≱`,ngeq:`≱`,ngeqq:`≧̸`,ngeqslant:`⩾̸`,nges:`⩾̸`,ngsim:`≵`,ngt:`≯`,ngtr:`≯`,nhArr:`⇎`,nharr:`↮`,nhpar:`⫲`,ni:`∋`,nis:`⋼`,nisd:`⋺`,niv:`∋`,njcy:`њ`,nlArr:`⇍`,nlE:`≦̸`,nlarr:`↚`,nldr:`‥`,nle:`≰`,nleftarrow:`↚`,nleftrightarrow:`↮`,nleq:`≰`,nleqq:`≦̸`,nleqslant:`⩽̸`,nles:`⩽̸`,nless:`≮`,nlsim:`≴`,nlt:`≮`,nltri:`⋪`,nltrie:`⋬`,nmid:`∤`,nopf:`𝕟`,not:`¬`,notin:`∉`,notinE:`⋹̸`,notindot:`⋵̸`,notinva:`∉`,notinvb:`⋷`,notinvc:`⋶`,notni:`∌`,notniva:`∌`,notnivb:`⋾`,notnivc:`⋽`,npar:`∦`,nparallel:`∦`,nparsl:`⫽⃥`,npart:`∂̸`,npolint:`⨔`,npr:`⊀`,nprcue:`⋠`,npre:`⪯̸`,nprec:`⊀`,npreceq:`⪯̸`,nrArr:`⇏`,nrarr:`↛`,nrarrc:`⤳̸`,nrarrw:`↝̸`,nrightarrow:`↛`,nrtri:`⋫`,nrtrie:`⋭`,nsc:`⊁`,nsccue:`⋡`,nsce:`⪰̸`,nscr:`𝓃`,nshortmid:`∤`,nshortparallel:`∦`,nsim:`≁`,nsime:`≄`,nsimeq:`≄`,nsmid:`∤`,nspar:`∦`,nsqsube:`⋢`,nsqsupe:`⋣`,nsub:`⊄`,nsubE:`⫅̸`,nsube:`⊈`,nsubset:`⊂⃒`,nsubseteq:`⊈`,nsubseteqq:`⫅̸`,nsucc:`⊁`,nsucceq:`⪰̸`,nsup:`⊅`,nsupE:`⫆̸`,nsupe:`⊉`,nsupset:`⊃⃒`,nsupseteq:`⊉`,nsupseteqq:`⫆̸`,ntgl:`≹`,ntilde:`ñ`,ntlg:`≸`,ntriangleleft:`⋪`,ntrianglelefteq:`⋬`,ntriangleright:`⋫`,ntrianglerighteq:`⋭`,nu:`ν`,num:`#`,numero:`№`,numsp:` `,nvDash:`⊭`,nvHarr:`⤄`,nvap:`≍⃒`,nvdash:`⊬`,nvge:`≥⃒`,nvgt:`>⃒`,nvinfin:`⧞`,nvlArr:`⤂`,nvle:`≤⃒`,nvlt:`<⃒`,nvltrie:`⊴⃒`,nvrArr:`⤃`,nvrtrie:`⊵⃒`,nvsim:`∼⃒`,nwArr:`⇖`,nwarhk:`⤣`,nwarr:`↖`,nwarrow:`↖`,nwnear:`⤧`,oS:`Ⓢ`,oacute:`ó`,oast:`⊛`,ocir:`⊚`,ocirc:`ô`,ocy:`о`,odash:`⊝`,odblac:`ő`,odiv:`⨸`,odot:`⊙`,odsold:`⦼`,oelig:`œ`,ofcir:`⦿`,ofr:`𝔬`,ogon:`˛`,ograve:`ò`,ogt:`⧁`,ohbar:`⦵`,ohm:`Ω`,oint:`∮`,olarr:`↺`,olcir:`⦾`,olcross:`⦻`,oline:`‾`,olt:`⧀`,omacr:`ō`,omega:`ω`,omicron:`ο`,omid:`⦶`,ominus:`⊖`,oopf:`𝕠`,opar:`⦷`,operp:`⦹`,oplus:`⊕`,or:`∨`,orarr:`↻`,ord:`⩝`,order:`ℴ`,orderof:`ℴ`,ordf:`ª`,ordm:`º`,origof:`⊶`,oror:`⩖`,orslope:`⩗`,orv:`⩛`,oscr:`ℴ`,oslash:`ø`,osol:`⊘`,otilde:`õ`,otimes:`⊗`,otimesas:`⨶`,ouml:`ö`,ovbar:`⌽`,par:`∥`,para:`¶`,parallel:`∥`,parsim:`⫳`,parsl:`⫽`,part:`∂`,pcy:`п`,percnt:`%`,period:`.`,permil:`‰`,perp:`⊥`,pertenk:`‱`,pfr:`𝔭`,phi:`φ`,phiv:`ϕ`,phmmat:`ℳ`,phone:`☎`,pi:`π`,pitchfork:`⋔`,piv:`ϖ`,planck:`ℏ`,planckh:`ℎ`,plankv:`ℏ`,plus:`+`,plusacir:`⨣`,plusb:`⊞`,pluscir:`⨢`,plusdo:`∔`,plusdu:`⨥`,pluse:`⩲`,plusmn:`±`,plussim:`⨦`,plustwo:`⨧`,pm:`±`,pointint:`⨕`,popf:`𝕡`,pound:`£`,pr:`≺`,prE:`⪳`,prap:`⪷`,prcue:`≼`,pre:`⪯`,prec:`≺`,precapprox:`⪷`,preccurlyeq:`≼`,preceq:`⪯`,precnapprox:`⪹`,precneqq:`⪵`,precnsim:`⋨`,precsim:`≾`,prime:`′`,primes:`ℙ`,prnE:`⪵`,prnap:`⪹`,prnsim:`⋨`,prod:`∏`,profalar:`⌮`,profline:`⌒`,profsurf:`⌓`,prop:`∝`,propto:`∝`,prsim:`≾`,prurel:`⊰`,pscr:`𝓅`,psi:`ψ`,puncsp:` `,qfr:`𝔮`,qint:`⨌`,qopf:`𝕢`,qprime:`⁗`,qscr:`𝓆`,quaternions:`ℍ`,quatint:`⨖`,quest:`?`,questeq:`≟`,quot:`"`,rAarr:`⇛`,rArr:`⇒`,rAtail:`⤜`,rBarr:`⤏`,rHar:`⥤`,race:`∽̱`,racute:`ŕ`,radic:`√`,raemptyv:`⦳`,rang:`⟩`,rangd:`⦒`,range:`⦥`,rangle:`⟩`,raquo:`»`,rarr:`→`,rarrap:`⥵`,rarrb:`⇥`,rarrbfs:`⤠`,rarrc:`⤳`,rarrfs:`⤞`,rarrhk:`↪`,rarrlp:`↬`,rarrpl:`⥅`,rarrsim:`⥴`,rarrtl:`↣`,rarrw:`↝`,ratail:`⤚`,ratio:`∶`,rationals:`ℚ`,rbarr:`⤍`,rbbrk:`❳`,rbrace:`}`,rbrack:`]`,rbrke:`⦌`,rbrksld:`⦎`,rbrkslu:`⦐`,rcaron:`ř`,rcedil:`ŗ`,rceil:`⌉`,rcub:`}`,rcy:`р`,rdca:`⤷`,rdldhar:`⥩`,rdquo:`”`,rdquor:`”`,rdsh:`↳`,real:`ℜ`,realine:`ℛ`,realpart:`ℜ`,reals:`ℝ`,rect:`▭`,reg:`®`,rfisht:`⥽`,rfloor:`⌋`,rfr:`𝔯`,rhard:`⇁`,rharu:`⇀`,rharul:`⥬`,rho:`ρ`,rhov:`ϱ`,rightarrow:`→`,rightarrowtail:`↣`,rightharpoondown:`⇁`,rightharpoonup:`⇀`,rightleftarrows:`⇄`,rightleftharpoons:`⇌`,rightrightarrows:`⇉`,rightsquigarrow:`↝`,rightthreetimes:`⋌`,ring:`˚`,risingdotseq:`≓`,rlarr:`⇄`,rlhar:`⇌`,rlm:``,rmoust:`⎱`,rmoustache:`⎱`,rnmid:`⫮`,roang:`⟭`,roarr:`⇾`,robrk:`⟧`,ropar:`⦆`,ropf:`𝕣`,roplus:`⨮`,rotimes:`⨵`,rpar:`)`,rpargt:`⦔`,rppolint:`⨒`,rrarr:`⇉`,rsaquo:`›`,rscr:`𝓇`,rsh:`↱`,rsqb:`]`,rsquo:`’`,rsquor:`’`,rthree:`⋌`,rtimes:`⋊`,rtri:`▹`,rtrie:`⊵`,rtrif:`▸`,rtriltri:`⧎`,ruluhar:`⥨`,rx:`℞`,sacute:`ś`,sbquo:`‚`,sc:`≻`,scE:`⪴`,scap:`⪸`,scaron:`š`,sccue:`≽`,sce:`⪰`,scedil:`ş`,scirc:`ŝ`,scnE:`⪶`,scnap:`⪺`,scnsim:`⋩`,scpolint:`⨓`,scsim:`≿`,scy:`с`,sdot:`⋅`,sdotb:`⊡`,sdote:`⩦`,seArr:`⇘`,searhk:`⤥`,searr:`↘`,searrow:`↘`,sect:`§`,semi:`;`,seswar:`⤩`,setminus:`∖`,setmn:`∖`,sext:`✶`,sfr:`𝔰`,sfrown:`⌢`,sharp:`♯`,shchcy:`щ`,shcy:`ш`,shortmid:`∣`,shortparallel:`∥`,shy:``,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,sim:`∼`,simdot:`⩪`,sime:`≃`,simeq:`≃`,simg:`⪞`,simgE:`⪠`,siml:`⪝`,simlE:`⪟`,simne:`≆`,simplus:`⨤`,simrarr:`⥲`,slarr:`←`,smallsetminus:`∖`,smashp:`⨳`,smeparsl:`⧤`,smid:`∣`,smile:`⌣`,smt:`⪪`,smte:`⪬`,smtes:`⪬︀`,softcy:`ь`,sol:`/`,solb:`⧄`,solbar:`⌿`,sopf:`𝕤`,spades:`♠`,spadesuit:`♠`,spar:`∥`,sqcap:`⊓`,sqcaps:`⊓︀`,sqcup:`⊔`,sqcups:`⊔︀`,sqsub:`⊏`,sqsube:`⊑`,sqsubset:`⊏`,sqsubseteq:`⊑`,sqsup:`⊐`,sqsupe:`⊒`,sqsupset:`⊐`,sqsupseteq:`⊒`,squ:`□`,square:`□`,squarf:`▪`,squf:`▪`,srarr:`→`,sscr:`𝓈`,ssetmn:`∖`,ssmile:`⌣`,sstarf:`⋆`,star:`☆`,starf:`★`,straightepsilon:`ϵ`,straightphi:`ϕ`,strns:`¯`,sub:`⊂`,subE:`⫅`,subdot:`⪽`,sube:`⊆`,subedot:`⫃`,submult:`⫁`,subnE:`⫋`,subne:`⊊`,subplus:`⪿`,subrarr:`⥹`,subset:`⊂`,subseteq:`⊆`,subseteqq:`⫅`,subsetneq:`⊊`,subsetneqq:`⫋`,subsim:`⫇`,subsub:`⫕`,subsup:`⫓`,succ:`≻`,succapprox:`⪸`,succcurlyeq:`≽`,succeq:`⪰`,succnapprox:`⪺`,succneqq:`⪶`,succnsim:`⋩`,succsim:`≿`,sum:`∑`,sung:`♪`,sup1:`¹`,sup2:`²`,sup3:`³`,sup:`⊃`,supE:`⫆`,supdot:`⪾`,supdsub:`⫘`,supe:`⊇`,supedot:`⫄`,suphsol:`⟉`,suphsub:`⫗`,suplarr:`⥻`,supmult:`⫂`,supnE:`⫌`,supne:`⊋`,supplus:`⫀`,supset:`⊃`,supseteq:`⊇`,supseteqq:`⫆`,supsetneq:`⊋`,supsetneqq:`⫌`,supsim:`⫈`,supsub:`⫔`,supsup:`⫖`,swArr:`⇙`,swarhk:`⤦`,swarr:`↙`,swarrow:`↙`,swnwar:`⤪`,szlig:`ß`,target:`⌖`,tau:`τ`,tbrk:`⎴`,tcaron:`ť`,tcedil:`ţ`,tcy:`т`,tdot:`⃛`,telrec:`⌕`,tfr:`𝔱`,there4:`∴`,therefore:`∴`,theta:`θ`,thetasym:`ϑ`,thetav:`ϑ`,thickapprox:`≈`,thicksim:`∼`,thinsp:` `,thkap:`≈`,thksim:`∼`,thorn:`þ`,tilde:`˜`,times:`×`,timesb:`⊠`,timesbar:`⨱`,timesd:`⨰`,tint:`∭`,toea:`⤨`,top:`⊤`,topbot:`⌶`,topcir:`⫱`,topf:`𝕥`,topfork:`⫚`,tosa:`⤩`,tprime:`‴`,trade:`™`,triangle:`▵`,triangledown:`▿`,triangleleft:`◃`,trianglelefteq:`⊴`,triangleq:`≜`,triangleright:`▹`,trianglerighteq:`⊵`,tridot:`◬`,trie:`≜`,triminus:`⨺`,triplus:`⨹`,trisb:`⧍`,tritime:`⨻`,trpezium:`⏢`,tscr:`𝓉`,tscy:`ц`,tshcy:`ћ`,tstrok:`ŧ`,twixt:`≬`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,uArr:`⇑`,uHar:`⥣`,uacute:`ú`,uarr:`↑`,ubrcy:`ў`,ubreve:`ŭ`,ucirc:`û`,ucy:`у`,udarr:`⇅`,udblac:`ű`,udhar:`⥮`,ufisht:`⥾`,ufr:`𝔲`,ugrave:`ù`,uharl:`↿`,uharr:`↾`,uhblk:`▀`,ulcorn:`⌜`,ulcorner:`⌜`,ulcrop:`⌏`,ultri:`◸`,umacr:`ū`,uml:`¨`,uogon:`ų`,uopf:`𝕦`,uparrow:`↑`,updownarrow:`↕`,upharpoonleft:`↿`,upharpoonright:`↾`,uplus:`⊎`,upsi:`υ`,upsih:`ϒ`,upsilon:`υ`,upuparrows:`⇈`,urcorn:`⌝`,urcorner:`⌝`,urcrop:`⌎`,uring:`ů`,urtri:`◹`,uscr:`𝓊`,utdot:`⋰`,utilde:`ũ`,utri:`▵`,utrif:`▴`,uuarr:`⇈`,uuml:`ü`,uwangle:`⦧`,vArr:`⇕`,vBar:`⫨`,vBarv:`⫩`,vDash:`⊨`,vangrt:`⦜`,varepsilon:`ϵ`,varkappa:`ϰ`,varnothing:`∅`,varphi:`ϕ`,varpi:`ϖ`,varpropto:`∝`,varr:`↕`,varrho:`ϱ`,varsigma:`ς`,varsubsetneq:`⊊︀`,varsubsetneqq:`⫋︀`,varsupsetneq:`⊋︀`,varsupsetneqq:`⫌︀`,vartheta:`ϑ`,vartriangleleft:`⊲`,vartriangleright:`⊳`,vcy:`в`,vdash:`⊢`,vee:`∨`,veebar:`⊻`,veeeq:`≚`,vellip:`⋮`,verbar:`|`,vert:`|`,vfr:`𝔳`,vltri:`⊲`,vnsub:`⊂⃒`,vnsup:`⊃⃒`,vopf:`𝕧`,vprop:`∝`,vrtri:`⊳`,vscr:`𝓋`,vsubnE:`⫋︀`,vsubne:`⊊︀`,vsupnE:`⫌︀`,vsupne:`⊋︀`,vzigzag:`⦚`,wcirc:`ŵ`,wedbar:`⩟`,wedge:`∧`,wedgeq:`≙`,weierp:`℘`,wfr:`𝔴`,wopf:`𝕨`,wp:`℘`,wr:`≀`,wreath:`≀`,wscr:`𝓌`,xcap:`⋂`,xcirc:`◯`,xcup:`⋃`,xdtri:`▽`,xfr:`𝔵`,xhArr:`⟺`,xharr:`⟷`,xi:`ξ`,xlArr:`⟸`,xlarr:`⟵`,xmap:`⟼`,xnis:`⋻`,xodot:`⨀`,xopf:`𝕩`,xoplus:`⨁`,xotime:`⨂`,xrArr:`⟹`,xrarr:`⟶`,xscr:`𝓍`,xsqcup:`⨆`,xuplus:`⨄`,xutri:`△`,xvee:`⋁`,xwedge:`⋀`,yacute:`ý`,yacy:`я`,ycirc:`ŷ`,ycy:`ы`,yen:`¥`,yfr:`𝔶`,yicy:`ї`,yopf:`𝕪`,yscr:`𝓎`,yucy:`ю`,yuml:`ÿ`,zacute:`ź`,zcaron:`ž`,zcy:`з`,zdot:`ż`,zeetrf:`ℨ`,zeta:`ζ`,zfr:`𝔷`,zhcy:`ж`,zigrarr:`⇝`,zopf:`𝕫`,zscr:`𝓏`,zwj:``,zwnj:``},n_={}.hasOwnProperty;function r_(e){return n_.call(t_,e)?t_[e]:!1}function i_(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function a_(e,t){return e.length>0?(i_(e,e.length,0,t),e):t}var o_={}.hasOwnProperty;function s_(e){let t={},n=-1;for(;++n<e.length;)c_(t,e[n]);return t}function c_(e,t){let n;for(n in t){let r=(o_.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){o_.call(r,a)||(r[a]=[]);let e=i[a];l_(r[a],Array.isArray(e)?e:e?[e]:[])}}}function l_(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);i_(e,0,0,r)}function u_(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function d_(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var f_=x_(/[A-Za-z]/),p_=x_(/[\dA-Za-z]/),m_=x_(/[#-'*+\--9=?A-Z^-~]/);function h_(e){return e!==null&&(e<32||e===127)}var g_=x_(/\d/),__=x_(/[\dA-Fa-f]/),v_=x_(/[!-/:-@[-`{-~]/);function Y(e){return e!==null&&e<-2}function X(e){return e!==null&&(e<0||e===32)}function Z(e){return e===-2||e===-1||e===32}var y_=x_(/\p{P}|\p{S}/u),b_=x_(/\s/);function x_(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function S_(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&p_(e.charCodeAt(n+1))&&p_(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=``),i&&(n+=i,i=0)}return t.join(``)+e.slice(r)}function Q(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return Z(r)?(e.enter(n),s(r)):t(r)}function s(r){return Z(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var C_={tokenize:w_};function w_(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Q(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return Y(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var T_={tokenize:D_},E_={tokenize:O_};function D_(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return i_(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(E_,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(E_,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i=i||t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return Y(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;i_(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function O_(e,t,n){return Q(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function k_(e){if(e===null||X(e)||b_(e))return 1;if(y_(e))return 2}function A_(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var j_={name:`attention`,resolveAll:M_,tokenize:N_};function M_(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};P_(d,-c),P_(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=a_(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=a_(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=a_(l,A_(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=a_(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=a_(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,i_(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function N_(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=k_(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=k_(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function P_(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var F_={name:`autolink`,tokenize:I_};function I_(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return f_(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||p_(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||p_(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||h_(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):m_(t)?(e.consume(t),l):n(t)}function u(e){return p_(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||p_(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var L_={partial:!0,tokenize:R_};function R_(e,t,n){return r;function r(t){return Z(t)?Q(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||Y(e)?t(e):n(e)}}var z_={continuation:{tokenize:V_},exit:H_,name:`blockQuote`,tokenize:B_};function B_(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||(e.enter(`blockQuote`,{_container:!0}),n.open=!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return Z(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function V_(e,t,n){let r=this;return i;function i(t){return Z(t)?Q(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(z_,t,n)(r)}}function H_(e){e.exit(`blockQuote`)}var U_={name:`characterEscape`,tokenize:W_};function W_(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return v_(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var G_={name:`characterReference`,tokenize:K_};function K_(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=p_,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=__,u):(e.enter(`characterReferenceValue`),a=7,o=g_,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===p_&&!r_(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var q_={partial:!0,tokenize:X_},J_={concrete:!0,name:`codeFenced`,tokenize:Y_};function Y_(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),Z(t)?Q(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||Y(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(q_,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||Y(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):Z(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),Q(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||Y(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||Y(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&Z(t)?Q(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||Y(t)?e.check(q_,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||Y(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),Z(t)?Q(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),Z(t)?Q(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||Y(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function X_(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var Z_={name:`codeIndented`,tokenize:$_},Q_={partial:!0,tokenize:ev};function $_(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),Q(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):Y(t)?e.attempt(Q_,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||Y(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function ev(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):Y(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):Q(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):Y(e)?i(e):n(e)}}var tv={name:`codeText`,previous:rv,resolve:nv,tokenize:iv};function nv(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function rv(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function iv(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):Y(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||Y(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var av=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&ov(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),ov(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),ov(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);ov(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);ov(this.left,t.reverse())}}};function ov(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function sv(e){let t={},n=-1,r,i,a,o,s,c,l,u=new av(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,cv(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(!(o[1].type===`linePrefix`||o[1].type===`listItemIndent`))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return i_(e,0,1/0,u.slice(0)),!l}function cv(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var lv={resolve:dv,tokenize:fv},uv={partial:!0,tokenize:pv};function dv(e){return sv(e),e}function fv(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):Y(t)?e.check(uv,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function pv(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Q(e,a,`linePrefix`)}function a(i){if(i===null||Y(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function mv(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||h_(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||Y(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||X(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||h_(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function hv(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):Y(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||Y(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||(c=!Z(t)),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function gv(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):Y(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Q(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||Y(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function _v(e,t){let n;return r;function r(i){return Y(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):Z(i)?Q(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var vv={name:`definition`,tokenize:bv},yv={partial:!0,tokenize:xv};function bv(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return hv.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=d_(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return X(t)?_v(e,l)(t):l(t)}function l(t){return mv(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(yv,d,d)(t)}function d(t){return Z(t)?Q(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||Y(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function xv(e,t,n){return r;function r(t){return X(t)?_v(e,i)(t):n(t)}function i(t){return gv(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return Z(t)?Q(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||Y(e)?t(e):n(e)}}var Sv={name:`hardBreakEscape`,tokenize:Cv};function Cv(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return Y(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var wv={name:`headingAtx`,resolve:Tv,tokenize:Ev};function Tv(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},i_(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function Ev(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||X(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||Y(n)?(e.exit(`atxHeading`),t(n)):Z(n)?Q(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||X(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Dv=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),Ov=[`pre`,`script`,`style`,`textarea`],kv={concrete:!0,name:`htmlFlow`,resolveTo:Mv,tokenize:Nv},Av={partial:!0,tokenize:Fv},jv={partial:!0,tokenize:Pv};function Mv(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Nv(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:ae):f_(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):f_(a)?(e.consume(a),i=4,r.interrupt?t:ae):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:ae):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:D:m):n(i)}function h(t){return f_(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||X(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Ov.includes(l)?(i=1,r.interrupt?t(s):D(s)):Dv.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):D(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||p_(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:D):n(i)}function v(t){return Z(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||f_(t)?(e.consume(t),b):Z(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||p_(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):Z(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):Z(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||Y(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||X(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||Z(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),ee):n(t)}function ee(t){return t===null||Y(t)?D(t):Z(t)?(e.consume(t),ee):n(t)}function D(t){return t===45&&i===2?(e.consume(t),re):t===60&&i===1?(e.consume(t),k):t===62&&i===4?(e.consume(t),oe):t===63&&i===3?(e.consume(t),ae):t===93&&i===5?(e.consume(t),ie):Y(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(Av,se,te)(t)):t===null||Y(t)?(e.exit(`htmlFlowData`),te(t)):(e.consume(t),D)}function te(t){return e.check(jv,O,se)(t)}function O(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),ne}function ne(t){return t===null||Y(t)?te(t):(e.enter(`htmlFlowData`),D(t))}function re(t){return t===45?(e.consume(t),ae):D(t)}function k(t){return t===47?(e.consume(t),o=``,A):D(t)}function A(t){if(t===62){let n=o.toLowerCase();return Ov.includes(n)?(e.consume(t),oe):D(t)}return f_(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),A):D(t)}function ie(t){return t===93?(e.consume(t),ae):D(t)}function ae(t){return t===62?(e.consume(t),oe):t===45&&i===2?(e.consume(t),ae):D(t)}function oe(t){return t===null||Y(t)?(e.exit(`htmlFlowData`),se(t)):(e.consume(t),oe)}function se(n){return e.exit(`htmlFlow`),t(n)}}function Pv(e,t,n){let r=this;return i;function i(t){return Y(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function Fv(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(L_,t,n)}}var Iv={name:`htmlText`,tokenize:Lv};function Lv(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):f_(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):f_(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):Y(t)?(o=d,k(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?re(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):Y(t)?(o=h,k(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?re(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?re(t):Y(t)?(o=v,k(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):Y(t)?(o=y,k(t)):(e.consume(t),y)}function b(e){return e===62?re(e):y(e)}function x(t){return f_(t)?(e.consume(t),S):n(t)}function S(t){return t===45||p_(t)?(e.consume(t),S):C(t)}function C(t){return Y(t)?(o=C,k(t)):Z(t)?(e.consume(t),C):re(t)}function w(t){return t===45||p_(t)?(e.consume(t),w):t===47||t===62||X(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),re):t===58||t===95||f_(t)?(e.consume(t),E):Y(t)?(o=T,k(t)):Z(t)?(e.consume(t),T):re(t)}function E(t){return t===45||t===46||t===58||t===95||p_(t)?(e.consume(t),E):ee(t)}function ee(t){return t===61?(e.consume(t),D):Y(t)?(o=ee,k(t)):Z(t)?(e.consume(t),ee):T(t)}function D(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,te):Y(t)?(o=D,k(t)):Z(t)?(e.consume(t),D):(e.consume(t),O)}function te(t){return t===i?(e.consume(t),i=void 0,ne):t===null?n(t):Y(t)?(o=te,k(t)):(e.consume(t),te)}function O(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||X(t)?T(t):(e.consume(t),O)}function ne(e){return e===47||e===62||X(e)?T(e):n(e)}function re(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function k(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),A}function A(t){return Z(t)?Q(e,ie,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):ie(t)}function ie(t){return e.enter(`htmlTextData`),o(t)}}var Rv={name:`labelEnd`,resolveAll:Hv,resolveTo:Uv,tokenize:Wv},zv={tokenize:Gv},Bv={tokenize:Kv},Vv={tokenize:qv};function Hv(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&i_(e,0,e.length,n),e}function Uv(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=a_(s,e.slice(a+1,a+r+3)),s=a_(s,[[`enter`,u,t]]),s=a_(s,A_(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=a_(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=a_(s,e.slice(o+1)),s=a_(s,[[`exit`,c,t]]),i_(e,a,e.length,s),e}function Wv(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(d_(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(zv,u,o?u:d)(t):t===91?e.attempt(Bv,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(Vv,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function Gv(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return X(t)?_v(e,a)(t):a(t)}function a(t){return t===41?u(t):mv(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return X(t)?_v(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?gv(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return X(t)?_v(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function Kv(e,t,n){let r=this;return i;function i(t){return hv.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(d_(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function qv(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var Jv={name:`labelStartImage`,resolveAll:Rv.resolveAll,tokenize:Yv};function Yv(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var Xv={name:`labelStartLink`,resolveAll:Rv.resolveAll,tokenize:Zv};function Zv(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var Qv={name:`lineEnding`,tokenize:$v};function $v(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Q(e,t,`linePrefix`)}}var ey={name:`thematicBreak`,tokenize:ty};function ty(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||Y(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),Z(t)?Q(e,s,`whitespace`)(t):s(t))}}var ny={continuation:{tokenize:oy},exit:cy,name:`list`,tokenize:ay},ry={partial:!0,tokenize:ly},iy={partial:!0,tokenize:sy};function ay(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:g_(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(ey,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return g_(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(L_,r.interrupt?n:u,e.attempt(ry,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return Z(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function oy(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(L_,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Q(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!Z(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(iy,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Q(e,e.attempt(ny,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function sy(e,t,n){let r=this;return Q(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function cy(e){e.exit(this.containerState.type)}function ly(e,t,n){let r=this;return Q(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!Z(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var uy={name:`setextUnderline`,resolveTo:dy,tokenize:fy};function dy(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function fy(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),Z(t)?Q(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||Y(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var py={tokenize:my};function my(e){let t=this,n=e.attempt(L_,r,e.attempt(this.parser.constructs.flowInitial,i,Q(e,e.attempt(this.parser.constructs.flow,i,e.attempt(lv,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var hy={resolveAll:yy()},gy=vy(`string`),_y=vy(`text`);function vy(e){return{resolveAll:yy(e===`text`?by:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function yy(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function by(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var xy=t({attentionMarkers:()=>ky,contentInitial:()=>Cy,disable:()=>Ay,document:()=>Sy,flow:()=>Ty,flowInitial:()=>wy,insideSpan:()=>Oy,string:()=>Ey,text:()=>Dy}),Sy={42:ny,43:ny,45:ny,48:ny,49:ny,50:ny,51:ny,52:ny,53:ny,54:ny,55:ny,56:ny,57:ny,62:z_},Cy={91:vv},wy={[-2]:Z_,[-1]:Z_,32:Z_},Ty={35:wv,42:ey,45:[uy,ey],60:kv,61:uy,95:ey,96:J_,126:J_},Ey={38:G_,92:U_},Dy={[-5]:Qv,[-4]:Qv,[-3]:Qv,33:Jv,38:G_,42:j_,60:[F_,Iv],91:Xv,92:[Sv,U_],93:Rv,95:j_,96:tv},Oy={null:[j_,hy]},ky={null:[42,95]},Ay={null:[]};function jy(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=a_(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=A_(a,l.events,l),l.events):[]}function f(e,t){return Ny(p(e),t)}function p(e){return My(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){Y(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&i_(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function My(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Ny(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
260
|
+
`;function nf(e){return Ol(tf,{...Qd,...e})}function rf(e,t){return typeof window>`u`||!e.source?!1:e.source===(t===`iframe`?window.parent:window)}var af=`wexio-cache`,of=`kv`,sf=1,cf={config:(e,t)=>`config:${e}:${t}`,configPrefix:e=>`config:${e}:`,gate:e=>`gate:${e}:`,news:(e,t)=>`news:${e}:${t}`,newsPost:(e,t,n)=>`news-post:${e}:${t}:${n}`,article:(e,t,n)=>`article:${e}:${t}:${n}`,helpCategories:(e,t)=>`help-categories:${e}:${t}`,helpRoot:(e,t)=>`help-root:${e}:${t}`,home:(e,t,n)=>`home:${e}:${t}:${n}`},lf=4320*60*1e3;function uf(e){return!!e&&typeof e==`object`&&typeof e.at==`number`}function df(){let e=new Map;return{get:t=>Promise.resolve(e.get(t)??null),set:(t,n)=>(e.set(t,n),Promise.resolve()),prune:t=>{for(let[n,r]of e)r.at<t&&e.delete(n);return Promise.resolve()},evictPrefix:t=>{for(let n of e.keys())n.startsWith(t)&&e.delete(n);return Promise.resolve()}}}function ff(){return typeof indexedDB>`u`?Promise.resolve(null):new Promise(e=>{let t;try{t=indexedDB.open(af,sf)}catch{e(null);return}t.onupgradeneeded=()=>{let e=t.result;e.objectStoreNames.contains(of)||e.createObjectStore(of)},t.onsuccess=()=>e(t.result),t.onerror=()=>e(null),t.onblocked=()=>e(null)})}var pf={get:e=>ff().then(t=>new Promise(n=>{if(!t){n(null);return}try{let r=t.transaction(of,`readonly`).objectStore(of).get(e);r.onsuccess=()=>n(uf(r.result)?r.result:null),r.onerror=()=>n(null)}catch{n(null)}})),set:(e,t)=>ff().then(n=>new Promise(r=>{if(!n){r();return}try{let i=n.transaction(of,`readwrite`);i.objectStore(of).put(t,e),i.oncomplete=()=>r(),i.onerror=()=>r(),i.onabort=()=>r()}catch{r()}})),prune:e=>ff().then(t=>new Promise(n=>{if(!t){n();return}try{let r=t.transaction(of,`readwrite`),i=r.objectStore(of).openCursor();i.onsuccess=()=>{let t=i.result;if(!t)return;let n=t.value;(!uf(n)||n.at<e)&&t.delete(),t.continue()},r.oncomplete=()=>n(),r.onerror=()=>n(),r.onabort=()=>n()}catch{n()}})),evictPrefix:e=>ff().then(t=>new Promise(n=>{if(!t){n();return}try{let r=t.transaction(of,`readwrite`),i=IDBKeyRange.bound(e,`${e}\uffff`),a=r.objectStore(of).openCursor(i);a.onsuccess=()=>{let e=a.result;e&&(e.delete(),e.continue())},r.oncomplete=()=>n(),r.onerror=()=>n(),r.onabort=()=>n()}catch{n()}}))};function mf(){return typeof indexedDB>`u`?df():pf}var hf=mf(),gf=!1;function _f(){gf||(gf=!0,hf.prune(Date.now()-lf).catch(()=>void 0))}async function vf(e){_f();try{let t=await hf.get(e);return t?Date.now()-t.at>2592e5?(hf.prune(Date.now()-lf).catch(()=>void 0),null):t.v:null}catch{return null}}function yf(e,t){return _f(),hf.set(e,{v:t,at:Date.now()}).catch(()=>void 0)}function bf(e){return hf.evictPrefix(e).catch(()=>void 0)}var xf=m(null),Sf=xf.Provider;function Cf(){return _(xf)}function wf(){let{preview:e}=Qu();return C(e.subscribe,e.snapshot,e.snapshot)}function Tf(){let e=e=>{typeof window>`u`||window.parent?.postMessage(e,`*`)};return{kind:`iframe`,onResize:(t,n,r)=>e({type:`wexio:widget:resize:v1`,width:t,height:n,open:r}),onOpen:()=>e({type:`wexio:widget:open:v1`}),onClose:()=>e({type:`wexio:widget:close:v1`}),onMessageAction:t=>e({type:`wexio:widget:message-action:v1`,detail:t}),onLauncherPosition:t=>e({type:`wexio:widget:position:v1`,side:t}),onLauncherOffset:t=>e({type:`wexio:widget:offset:v1`,x:t.x,y:t.y}),onPreviewTokenRequest:t=>e({type:`wexio:preview-token:request`,reason:t}),onHidden:()=>e({type:`wexio:widget:hidden:v1`}),onActive:()=>e({type:`wexio:widget:active:v1`})}}var Ef=m(null);function Df({env:e,children:t}){return T(Ef.Provider,{value:e,children:t})}function Of(){let e=_(Ef),t=b(()=>Tf(),[]);return e??t}var kf=`message:`,Af=(e,t)=>t?`${kf}${e}:${t}`:`${kf}${e}`;function jf(e){if(!e?.startsWith(`message:`))return null;let t=e.slice(8),n=t.indexOf(`:`),r=n<0?t:t.slice(0,n);return r?[r,n<0?null:t.slice(n+1)||null]:null}function Mf(e){return jf(e)?.[0]??null}function Nf(e){return jf(e)?.[1]??null}var Pf=/^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8}){0,3}$/,Ff=e=>e.length<=35&&Pf.test(e);function If(e,t,n){let r=Mf(e);if(!r||!t||t.slotId!==r)return;let i=Nf(e);if(!(i&&t.variantId!==i))return{slotId:r,variantId:t.variantId,...Ff(n)?{locale:n}:{}}}function Lf(e){let{threadKey:t,pick:n,exists:r,locale:i}=e;if(!(!t||Mf(t)||r||!n))return{slotId:n.slotId,variantId:n.variantId,...Ff(i)?{locale:i}:{}}}function Rf(e){let t=e.threadKey??null,n=Mf(t);if(!n)return{threadKey:t};let r=e.firstSendOnly??!0;if(e.exists&&r)return{threadKey:t};let i=Nf(t),a=e=>e&&e.slotId===n&&(!i||e.variantId===i)?e:null,o=a(e.remembered),s=o??a(e.current)??(i?{slotId:n,variantId:i}:null);if(!s)return e.exists?{threadKey:t}:{threadKey:null};let c=If(t,s,e.locale);return{threadKey:t,...c?{messageSlot:c}:{},...o?{}:{remember:s}}}var zf=`slot-`,Bf=e=>e.replace(/[^A-Za-z0-9_-]/g,`_`),Vf=(e,t)=>`${zf}${Hf(e,t)}`,Hf=(e,t)=>t?`${Bf(e)}:${Bf(t)}`:Bf(e);function Uf(e){let t=e.indexOf(`:`);return t<0?{slotKeyId:e,variantKeyId:null}:{slotKeyId:e.slice(0,t),variantKeyId:e.slice(t+1)||null}}function Wf(e){return e?.startsWith(`slot-`)&&e.slice(5)||null}function Gf(e){if(!e)return`main`;if(e.startsWith(`message:`)){let{slotKeyId:t,variantKeyId:n}=Uf(e.slice(kf.length));return`slot:${Hf(t,n)}`}let t=Wf(e);return t?`slot:${t}`:e}var Kf=(e,t)=>Bf(e)===Uf(t).slotKeyId,qf=e=>`wexio:local-slots:${e}`;function Jf(e,t){try{let n=e.getItem(qf(t)),r=n?JSON.parse(n):null;return r&&typeof r==`object`&&!Array.isArray(r)?r:{}}catch{return{}}}function Yf(e,t,n){let r=Jf(e,t),i=Hf(n.slotId,n.pinVariant?n.variant.id:null);if(r[i])return r;let{when:a,...o}=n.variant,s={...r,[i]:o};try{e.setItem(qf(t),JSON.stringify(s))}catch{}return s}var Xf=new Set;function Zf(e,t){let n=new Set((e??[]).map(e=>e.id)),r=(t??[]).filter(e=>e.kind===`MESSAGE`&&!n.has(e.id));return r.length===0?Xf:new Set(r.map(e=>e.id))}var Qf=new Set,$f=null;function ep(){for(let e of[...Qf])e()}var tp=!1;function np(){tp||(tp=!0,queueMicrotask(()=>{tp=!1,ep()}))}function rp(){let e=window.history.pushState,t=window.history.replaceState,n=function(...t){let n=e.apply(this,t);return np(),n},r=function(...e){let n=t.apply(this,e);return np(),n};return window.history.pushState=n,window.history.replaceState=r,window.addEventListener(`popstate`,np),window.addEventListener(`hashchange`,np),()=>{window.history.pushState===n&&(window.history.pushState=e),window.history.replaceState===r&&(window.history.replaceState=t),window.removeEventListener(`popstate`,np),window.removeEventListener(`hashchange`,np)}}function ip(e){return typeof window>`u`?()=>{}:(Qf.add(e),$f||($f=rp()),()=>{Qf.delete(e),Qf.size===0&&$f&&($f(),$f=null)})}function ap(e){let t=new Map,n=new Map;return{peek(e){return t.get(e)??null},get(r){let i=t.get(r);if(i)return Promise.resolve(i);let a=n.get(r);if(a)return a;let o=e(r).then(e=>(t.set(r,e),n.delete(r),e),()=>(n.delete(r),null));return n.set(r,o),o}}}var op=`en.en-US.en-GB.uk.de.es.es-MX.fr.it.nl.pt.pt-BR.sv.da.no.fi.pl.cs.sk.tr.ro.hu.el.ar.he.hi.th.vi.id.ja.ko.zh.zh-TW`.split(`.`);function sp(e){return typeof e==`string`&&op.includes(e)}var cp={ar:()=>import(`./widget-react-DJTgpBXp.js`),cs:()=>import(`./widget-react-CgvtA8Ek.js`),da:()=>import(`./widget-react-CxTI2WNr.js`),de:()=>import(`./widget-react-tvX8XSZD.js`),el:()=>import(`./widget-react-Cx_utOCH.js`),"en-GB":()=>import(`./widget-react-RFGjueTQ.js`),"en-US":()=>import(`./widget-react-uWEOH9Lh.js`),en:()=>import(`./widget-react-iwANUtnB.js`),"es-MX":()=>import(`./widget-react-BAzh_M3R.js`),es:()=>import(`./widget-react-C1rXlCoj.js`),fi:()=>import(`./widget-react-Cil8Ajlh.js`),fr:()=>import(`./widget-react-BEeSy_sM.js`),he:()=>import(`./widget-react-Bz5u8QHz.js`),hi:()=>import(`./widget-react-C2_GJN-2.js`),hu:()=>import(`./widget-react-Fou9JP7u.js`),id:()=>import(`./widget-react-YOrK-1WI2.js`),it:()=>import(`./widget-react-C6OZyIh32.js`),ja:()=>import(`./widget-react-0MqeP0VG2.js`),ko:()=>import(`./widget-react-DPf6mDAF2.js`),nl:()=>import(`./widget-react-bEpDN5aA2.js`),no:()=>import(`./widget-react-12srXq362.js`),pl:()=>import(`./widget-react-DLK0giQJ2.js`),"pt-BR":()=>import(`./widget-react-B1v9X8dK2.js`),pt:()=>import(`./widget-react-Dy2T3sIZ2.js`),ro:()=>import(`./widget-react-C78gQza62.js`),sk:()=>import(`./widget-react-13R6Vrt62.js`),sv:()=>import(`./widget-react-Cw8StXTV2.js`),th:()=>import(`./widget-react-BzlFOEiU2.js`),tr:()=>import(`./widget-react-C1vTza-V2.js`),uk:()=>import(`./widget-react-dWaXqKR32.js`),vi:()=>import(`./widget-react-DCnPzcmJ2.js`),"zh-TW":()=>import(`./widget-react-BpSJW2vD2.js`),zh:()=>import(`./widget-react-BKZZeBk72.js`)};function lp(e){return cp[sp(e)?e:`en`]()}function up(e){let t=e;for(let e=0;e<4;e++){if(t&&typeof t==`object`&&(`threads`in t||`conversation`in t))return t;if(t&&typeof t==`object`&&`default`in t)t=t.default;else break}return t&&typeof t==`object`?t:{}}async function dp(e){return up(await lp(e))}var fp={raw:()=>void 0,ready:!1};function pp(e){return e.ready!==!1}var mp=op,hp=ap(dp);function gp(e){return t=>{let n=e;for(let e of t.split(`.`))if(n&&typeof n==`object`&&e in n)n=n[e];else return;return n}}function _p(e,t){let[n,r]=S(()=>{let t=hp.peek(e);return t?{raw:gp(t)}:null});return v(()=>{let t=!0;return hp.get(e).then(e=>{!t||!e||r({raw:gp(e)})}),()=>{t=!1}},[e]),n??t}function vp(){return _p(r(),fp)}var yp=new Map,bp=new Set;function xp(e,t,n){if(bp.has(e))return Promise.resolve();let r=yf(t,n),i=yp.get(e)??new Set;return yp.set(e,i),i.add(r),r.finally(()=>i.delete(r)),r}async function Sp(e){bp.add(e),await Promise.all([...yp.get(e)??[]]),await Promise.all([bf(cf.configPrefix(e)),bf(cf.gate(e))])}var Cp=new Set([`status`,`branding`,`integrationId`,`name`,`security`]),wp=new Set([`__proto__`,`constructor`,`prototype`]);function Tp(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function Ep(e){if(Array.isArray(e)){let t=!1,n=e.map(e=>{let n=Ep(e);return n!==e&&(t=!0),n});return t?n:e}if(!Tp(e))return e;let t=!1,n={};for(let r of Object.keys(e)){if(wp.has(r)){t=!0;continue}let i=Ep(e[r]);i!==e[r]&&(t=!0),n[r]=i}return t?n:e}function Dp(e){if(!(!Tp(e)||typeof e.enabled!=`boolean`))return{enabled:e.enabled}}function Op(e){if(!Tp(e))return;let t=Dp(e.google),n=Dp(e.passkey);if(!(!t&&!n))return{...t&&{google:t},...n&&{passkey:n}}}function kp(e){if(!Tp(e))return{};let t=Ep(e),n={};for(let e of Object.keys(t))Cp.has(e)||(n[e]=t[e]);let r=Op(t.security);return r&&(n.security=r),n}function Ap(e,t,n){return e.kind===`ok`?{action:`show`,value:e.value}:e.kind===`transient`&&e.previewReason?(t.report(e.previewReason,n),{action:`wait`}):{action:`hide`,unreachable:e.kind===`transient`}}function jp(e,t){return e.kind===`ok`?{action:`show`,value:e.value,source:`live`}:e.kind===`definitive`?{action:`hide`,evict:!0}:t?t.status===`active`?{action:`show`,value:t,source:`cache`}:{action:`hide`,evict:!0}:{action:`hide`,evict:!1}}async function Mp(e,t,n){let r=jp(e,e.kind===`transient`?await vf(n):null);return r.action===`hide`&&r.evict&&await Sp(t),r}function Np(e,t=typeof window>`u`?null:window.location.href){let n=t?new URL(t).searchParams.get(`pk`)??void 0:void 0,r=e.modeOverride===`demo`,i=r?void 0:cu()||void 0,a=r?void 0:e.publicKeyOverride??n??i,o=a===`pk_demo`?void 0:a,s=e.publicKeyOverride??n;return{publicKey:o,keyed:!!o||!!(s&&s!==`pk_demo`),pkFromUrl:n}}var Pp=/^[\w ,."'-]+$/;function Fp(e){if(typeof e!=`string`)return!1;let t=e.trim();if(!t||t.length>200||!Pp.test(t))return!1;for(let e of[`'`,`"`])if((t.split(e).length-1)%2!=0)return!1;return!0}var Ip=e=>Fp(e)?e.trim():void 0,Lp=/^#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/,Rp=e=>typeof e==`string`&&Lp.test(e)?e:void 0,zp=`Inter.Poppins.DM Sans.Roboto.IBM Plex Sans.Lato.Montserrat.Nunito.Raleway.Work Sans.Open Sans.Noto Sans.Source Sans 3.Manrope.Onest.PT Sans.Fira Sans.Jost.Rubik.Comfortaa.Merriweather.Lora.PT Serif.Playfair Display.JetBrains Mono.IBM Plex Mono`.split(`.`),Bp=`400;500;600;700`,Vp={Roboto:`400;500;700`,Lato:`400;700`},Hp=new Map(zp.map(e=>[e.toLowerCase(),`${e.replace(/ /g,`+`)}:wght@${Vp[e]??Bp}`]));function Up(e){if(typeof document>`u`)return;let t=Ip(e);if(!t)return;let n=t.split(`,`)[0]?.trim().replace(/^['"]|['"]$/g,``);if(!n)return;let r=Hp.get(n.toLowerCase());if(!r)return;let i=`wexio-font-${n.toLowerCase().replace(/\s+/g,`-`)}`;if(document.getElementById(i))return;let a=document.createElement(`link`);a.id=i,a.rel=`stylesheet`,a.href=`https://fonts.googleapis.com/css2?family=${r}&display=swap`,document.head.appendChild(a)}var Wp=`wexio-trust:public`,Gp={status:`active`,defaultTab:`home`,localeStrategy:`AUTO`,defaultLocale:`en`,supportedLocales:[],contentLocaleFallback:!0,security:{requireAuth:!1,google:{enabled:!1,clientId:``},passkey:{enabled:!1}},features:{home:!0,messenger:!0,help:!0,news:!0,profile:!0},theme:null,themeMode:`auto`,operatorAvatars:[{src:`https://i.pravatar.cc/64?u=op-1`,alt:`Operator`},{src:`https://i.pravatar.cc/64?u=op-2`,alt:`Operator`},{src:`https://i.pravatar.cc/64?u=op-3`,alt:`Operator`}],organizationLogo:null,showLogoInLauncher:!1,greeting:{headline:`Hi there 👋`,subheadline:`How can we help?`},homeLayout:[{kind:`team-status`,showResponseTime:!0,showOperatorAvatars:!0,presence:`HUMAN`,responseTime:`MINUTES`},{kind:`ask-question`},{kind:`recent-message`},{kind:`featured-article`},{kind:`pinned-articles`,articleIds:[]},{kind:`quick-actions`,layout:`inline`,buttons:[{label:`WhatsApp`,icon:{kind:`named`,name:`whatsapp`},action:`open-url`,url:`https://wa.me/15555555555`},{label:`Telegram`,icon:{kind:`named`,name:`telegram`},action:`open-url`,url:`https://t.me/wexio`},{label:`Instagram`,icon:{kind:`named`,name:`instagram`},action:`open-url`,url:`https://instagram.com/wexio`},{label:`Email`,icon:{kind:`named`,name:`email`},action:`open-url`,url:`mailto:help@wexio.io`}]}],prechatForm:{enabled:!1,fields:[]},branding:null,sounds:{enabled:!0,inboundSoundId:`wx-nt_3`,outboundSoundId:`wx-nt_1`,volume:.5},messenger:{title:null,description:null,aiAssistantAvatar:ud(`/logo-dark.png`),aiAssistant:{enabled:!0,name:null,avatar:ud(`/logo-dark.png`)},commands:[`/start`,`/help`,`/contact`],messages:[],showRelatedNews:!0,showRelatedHelpArticles:!0,showReactionCounts:!1,profile:null},botProtection:null,tracking:null},Kp=[{kind:`ask-question`},{kind:`recent-message`},{kind:`featured-article`},{kind:`pinned-articles`,articleIds:[]},{kind:`quick-actions`,layout:`inline`,buttons:[{label:`WhatsApp`,icon:{kind:`named`,name:`whatsapp`},action:`open-url`,url:`https://wa.me/15555555555`},{label:`Telegram`,icon:{kind:`named`,name:`telegram`},action:`open-url`,url:`https://t.me/wexio`},{label:`Instagram`,icon:{kind:`named`,name:`instagram`},action:`open-url`,url:`https://instagram.com/wexio`},{label:`Email`,icon:{kind:`named`,name:`email`},action:`open-url`,url:`mailto:help@wexio.io`}]}];function qp(){let e=Of(),t=Qu(),{token:n,holding:i}=wf(),a=r(),[o,s]=S({mode:`demo`,config:Gp,isDummy:!0,isLoading:!0,error:null}),[c,l]=S(null);v(()=>{if(i)return;let r=new URL(window.location.href),o=r.searchParams.get(`mode`),{publicKey:c}=Np({modeOverride:e.modeOverride,publicKeyOverride:e.publicKeyOverride},r.href),u=e.modeOverride??(c?`production`:o===`preview`?`preview`:`demo`),d=!1;(async()=>{if(e.configBase){let r=null;if(c&&n){let e=await Su(c,n);if(d)return;let i=Ap(e,t.preview,n);if(i.action===`wait`)return;if(i.action===`hide`){s({mode:u,config:Gp,isDummy:!0,isLoading:!1,error:i.unreachable?`publicKeyInvalid`:`widgetUnavailable`});return}r=i.value}else if(c){let t=await Su(c);if(d)return;if(t.kind===`ok`)r=t.value,xp(c,cf.gate(c),r);else if(e.forceDummyData===!0&&!(t.kind===`definitive`&&typeof t.reason==`string`))r=null;else{let e=await Mp(t,c,cf.gate(c));if(d)return;if(e.action===`hide`){s({mode:u,config:Gp,isDummy:!0,isLoading:!1,error:t.kind===`transient`&&!e.evict?`publicKeyInvalid`:`widgetUnavailable`});return}r=e.value}}let i=e.configBase.security,a=r?.security,o={requireAuth:a?.requireAuth??!1,google:{enabled:i?.google?.enabled??a?.google?.enabled??!1,clientId:a?.google?.clientId??null},passkey:{enabled:i?.passkey?.enabled??a?.passkey?.enabled??!1}},{security:l,...f}=e.configBase;s({mode:u,config:{...f,security:o,branding:r?.branding??null,status:r?.status??`active`},isDummy:e.forceDummyData===!0,isLoading:!1,error:null});return}if(e.forceDummyData!==void 0){s({mode:u,config:Gp,isDummy:e.forceDummyData,isLoading:!1,error:null});return}if(c&&n){let e=await fu(c,a,n);if(d)return;let r=Ap(e,t.preview,n);if(r.action===`wait`)return;s(r.action===`show`?{mode:u,config:r.value,isDummy:!1,isLoading:!1,error:null,fromBe:!0}:{mode:u,config:Gp,isDummy:!0,isLoading:!1,error:r.unreachable?`publicKeyInvalid`:`widgetUnavailable`});return}if(c){let e=await fu(c,a);if(d)return;let t=cf.config(c,a);if(e.kind===`ok`){s({mode:u,config:e.value,isDummy:!1,isLoading:!1,error:null,fromBe:!0}),xp(c,t,e.value);return}let n=await Mp(e,c,t);if(d)return;if(n.action===`show`){s({mode:u,config:n.value,isDummy:!1,isLoading:!1,error:null,fromBe:!0});return}s({mode:u,config:Gp,isDummy:!0,isLoading:!1,error:e.kind===`transient`&&!n.evict?`publicKeyInvalid`:`widgetUnavailable`});return}s({mode:u,config:Gp,isDummy:!0,isLoading:!1,error:null})})();let f=t=>{if(!rf(t,e.kind)||!t.data||typeof t.data!=`object`||t.data.type!==`wexio:preview-config:v1`&&t.data.type!==`wexio:config-override:v1`||!t.data.config)return;let n=t.data.config;l(e=>Jp(e??{},n))};return window.addEventListener(`message`,f),()=>{d=!0,window.removeEventListener(`message`,f)}},[e.publicKeyOverride,e.modeOverride,e.forceDummyData,e.configBase,e.kind,a,t,n,i]);let u=o.isDummy||e.forceDummyData===!0,d=o.mode===`preview`&&!n,f=e.configOverride?.operatorAvatars!==void 0,{keyed:p}=Np({modeOverride:e.modeOverride,publicKeyOverride:e.publicKeyOverride}),m=!p,h=b(()=>{let t=o.config;return c&&(t=Jp(t,m?c:kp(c))),e.configOverride&&(t=Jp(t,m?e.configOverride:kp(e.configOverride))),u&&t.operatorAvatars.length===0&&!f&&(t={...t,operatorAvatars:Gp.operatorAvatars}),t},[o.config,m,c,e.configOverride,u,f]),g=b(()=>Zf(o.fromBe?o.config.messenger?.messageSlots:void 0,h.messenger?.messageSlots),[o.fromBe,o.config,h.messenger?.messageSlots]),_=e.styleRoot;y(()=>{h.theme&&nm(h.theme,_??document)},[h.theme,_]),v(()=>{h.theme&&Up(h.theme.fontFamily)},[h.theme]);let x=e.onLocaleStrategy;return v(()=>{let e=h.localeStrategy===`DEFAULT`?h.defaultLocale:h.localeStrategy;x?.(e)},[x,h.localeStrategy,h.defaultLocale]),{mode:o.mode,config:h,isDummy:u,sessionDemo:d,injectedSlotIds:g,isLoading:o.isLoading,error:o.error}}function Jp(e,t){return{...e,...t,features:{...e.features??{},...t.features??{}},greeting:{...e.greeting??{},...t.greeting??{}},messenger:t.messenger===void 0?e.messenger:t.messenger===null?null:{...e.messenger??{},...t.messenger},security:t.security===void 0?e.security:{...e.security??{},...t.security,google:{...e.security?.google??{},...t.security?.google??{}},passkey:{...e.security?.passkey??{},...t.security?.passkey??{}}},tracking:t.tracking===void 0?e.tracking:{...e.tracking??{},...t.tracking??{}},theme:t.theme===void 0?e.theme:t.theme===null?null:{...e.theme??{},...t.theme,light:{...e.theme?.light??{},...t.theme.light??{}},dark:{...e.theme?.dark??{},...t.theme.dark??{}},radii:{...e.theme?.radii??{},...t.theme.radii??{}}}}}var Yp={background:`--wx-bg`,surface:`--wx-bg-elevated`,surfaceElevated:`--wx-bg-elevated-2`,text:`--wx-fg`,textMuted:`--wx-fg-muted`,textSubtle:`--wx-fg-subtle`,border:`--wx-border`,borderStrong:`--wx-border-strong`,primary:`--wx-primary`,primaryHover:`--wx-primary-hover`,primaryForeground:`--wx-primary-fg`,launcherBackground:`--wx-launcher-bg`,launcherForeground:`--wx-launcher-fg`,success:`--wx-success`,danger:`--wx-danger`,homeBackdrop:`--wx-home-glow`},Xp={sm:`--wx-radius-sm`,md:`--wx-radius`,lg:`--wx-radius-lg`,xl:`--wx-radius-xl`};function Zp(e){return e?Object.entries(e).filter(([e,t])=>e!==`homeBackdrop`&&typeof t==`string`&&t.length>0).map(([e,t])=>`${Yp[e]}: ${t};`).concat(Qp(e)).join(` `):``}function Qp(e){let t=Rp(e.homeBackdrop)??Rp(e.primary);if(!t)return[];let n=t.length===5||t.length===9;return[`${Yp.homeBackdrop}: ${t};`,`--wx-home-glow-a: ${n?`100%`:`initial`};`]}function $p(e){return e?Object.entries(e).filter(([,e])=>typeof e==`number`&&Number.isFinite(e)).map(([e,t])=>`${Xp[e]}: ${t}px;`).join(` `):``}var em=new WeakMap;function tm(e){let t=$p(e.radii),n=Ip(e.fontFamily),r=[t,n?`--wx-font: ${n};`:``].filter(Boolean).join(` `),i=[Zp(e.light),r].filter(Boolean).join(` `),a=[Zp(e.dark),r].filter(Boolean).join(` `),o=[];return i&&o.push(`:root, :host { ${i} }`),a&&o.push(`[data-theme="dark"] { ${a} }`),o.join(` `)}function nm(e,t){let n=tm(e);if(!(t instanceof Document)){let e=t;if(typeof CSSStyleSheet<`u`&&`replaceSync`in CSSStyleSheet.prototype){let t=em.get(e);t||(t=new CSSStyleSheet,em.set(e,t),e.adoptedStyleSheets=[...e.adoptedStyleSheets,t]),t.replaceSync(n);return}let r=e.querySelector(`#wexio-theme-vars`);r||(r=document.createElement(`style`),r.id=`wexio-theme-vars`,e.appendChild(r)),r.textContent=n;return}let r=t.getElementById(`wexio-theme-vars`);r||(r=document.createElement(`style`),r.id=`wexio-theme-vars`,t.head.appendChild(r)),r.textContent=n}var rm=l(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),im=l(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),am=l(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),om=l(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),sm=l(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),cm=p.forwardRef(({className:e,...t},n)=>T(`div`,{ref:n,className:c(`rounded-wx-lg bg-wx-bg-elevated text-wx-fg`,e),...t}));cm.displayName=`Card`;var lm=p.forwardRef(({className:e,...t},n)=>T(`div`,{ref:n,className:c(`rounded-wx bg-wx-bg-elevated-2 text-wx-fg`,e),...t}));lm.displayName=`CardNested`;var um=p.forwardRef(({className:e,...t},n)=>T(`div`,{ref:n,className:c(`flex flex-col gap-1 px-5 pt-5`,e),...t}));um.displayName=`CardHeader`;var dm=p.forwardRef(({className:e,...t},n)=>T(`p`,{ref:n,className:c(`text-base font-semibold text-wx-fg`,e),...t}));dm.displayName=`CardTitle`;var fm=p.forwardRef(({className:e,...t},n)=>T(`p`,{ref:n,className:c(`text-sm text-wx-fg-muted`,e),...t}));fm.displayName=`CardSubtitle`;var pm=p.forwardRef(({className:e,...t},n)=>T(`div`,{ref:n,className:c(`px-5 py-4`,e),...t}));pm.displayName=`CardBody`;var mm=p.forwardRef(({className:e,...t},n)=>T(`div`,{ref:n,className:c(`flex items-center justify-between px-5 py-3 border-t border-wx-border`,e),...t}));mm.displayName=`CardFooter`;function hm(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function gm(...e){return t=>{let n=!1,r=e.map(e=>{let r=hm(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():hm(e[t],null)}}}}function _m(...e){return p.useCallback(gm(...e),e)}function vm(e){let t=ym(e),n=p.forwardRef((e,n)=>{let{children:r,...i}=e,a=p.Children.toArray(r),o=a.find(xm);if(o){let e=o.props.children,r=a.map(t=>t===o?p.Children.count(e)>1?p.Children.only(null):p.isValidElement(e)?e.props.children:null:t);return T(t,{...i,ref:n,children:p.isValidElement(e)?p.cloneElement(e,void 0,r):null})}return T(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function ym(e){let t=p.forwardRef((e,t)=>{let{children:n,...r}=e;if(p.isValidElement(n)){let e=Cm(n),i=Sm(r,n.props);return n.type!==p.Fragment&&(i.ref=t?gm(t,e):e),p.cloneElement(n,i)}return p.Children.count(n)>1?p.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var bm=Symbol(`radix.slottable`);function xm(e){return p.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===bm}function Sm(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function Cm(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var wm=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=vm(`Primitive.${t}`),r=p.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),T(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Tm=globalThis?.document?p.useLayoutEffect:()=>{};function Em(e,t){return p.useReducer((e,n)=>t[e][n]??e,e)}var Dm=e=>{let{present:t,children:n}=e,r=Om(t),i=typeof n==`function`?n({present:r.isPresent}):p.Children.only(n),a=_m(r.ref,Am(i));return typeof n==`function`||r.isPresent?p.cloneElement(i,{ref:a}):null};Dm.displayName=`Presence`;function Om(e){let[t,n]=p.useState(),r=p.useRef(null),i=p.useRef(e),a=p.useRef(`none`),[o,s]=Em(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return p.useEffect(()=>{let e=km(r.current);a.current=o===`mounted`?e:`none`},[o]),Tm(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=km(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),Tm(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=km(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=km(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:p.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function km(e){return e?.animationName||`none`}function Am(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function jm(e,t=[]){let n=[];function r(t,r){let i=p.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=p.useMemo(()=>o,Object.values(o));return T(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=p.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>p.createContext(e));return function(n){let r=n?.[e]||t;return p.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,Mm(i,...t)]}function Mm(...e){let t=e[0];if(e.length===1)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}function Nm(e){let t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...e)=>t.current?.(...e),[])}var Pm=p.createContext(void 0);function Fm(e){let t=p.useContext(Pm);return e||t||`ltr`}function Im(e,[t,n]){return Math.min(n,Math.max(t,e))}typeof window<`u`&&window.document&&window.document.createElement;function Lm(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}function Rm(e,t){return p.useReducer((e,n)=>t[e][n]??e,e)}var zm=`ScrollArea`,[Bm,Vm]=jm(zm),[Hm,Um]=Bm(zm),Wm=p.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:r=`hover`,dir:i,scrollHideDelay:a=600,...o}=e,[s,c]=p.useState(null),[l,u]=p.useState(null),[d,f]=p.useState(null),[m,h]=p.useState(null),[g,_]=p.useState(null),[v,y]=p.useState(0),[b,x]=p.useState(0),[S,C]=p.useState(!1),[w,E]=p.useState(!1),ee=_m(t,e=>c(e)),D=Fm(i);return T(Hm,{scope:n,type:r,dir:D,scrollHideDelay:a,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:m,onScrollbarXChange:h,scrollbarXEnabled:S,onScrollbarXEnabledChange:C,scrollbarY:g,onScrollbarYChange:_,scrollbarYEnabled:w,onScrollbarYEnabledChange:E,onCornerWidthChange:y,onCornerHeightChange:x,children:T(wm.div,{dir:D,...o,ref:ee,style:{position:`relative`,"--radix-scroll-area-corner-width":v+`px`,"--radix-scroll-area-corner-height":b+`px`,...e.style}})})});Wm.displayName=zm;var Gm=`ScrollAreaViewport`,Km=p.forwardRef((e,t)=>{let{__scopeScrollArea:n,children:r,nonce:i,...a}=e,o=Um(Gm,n),s=_m(t,p.useRef(null),o.onViewportChange);return E(w,{children:[T(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}`},nonce:i}),T(wm.div,{"data-radix-scroll-area-viewport":``,...a,ref:s,style:{overflowX:o.scrollbarXEnabled?`scroll`:`hidden`,overflowY:o.scrollbarYEnabled?`scroll`:`hidden`,...e.style},children:T(`div`,{ref:o.onContentChange,style:{minWidth:`100%`,display:`table`},children:r})})]})});Km.displayName=Gm;var qm=`ScrollAreaScrollbar`,Jm=p.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Um(qm,e.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:o}=i,s=e.orientation===`horizontal`;return p.useEffect(()=>(s?a(!0):o(!0),()=>{s?a(!1):o(!1)}),[s,a,o]),i.type===`hover`?T(Ym,{...r,ref:t,forceMount:n}):i.type===`scroll`?T(Xm,{...r,ref:t,forceMount:n}):i.type===`auto`?T(Zm,{...r,ref:t,forceMount:n}):i.type===`always`?T(Qm,{...r,ref:t}):null});Jm.displayName=qm;var Ym=p.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Um(qm,e.__scopeScrollArea),[a,o]=p.useState(!1);return p.useEffect(()=>{let e=i.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),o(!0)},r=()=>{t=window.setTimeout(()=>o(!1),i.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,r),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,r)}}},[i.scrollArea,i.scrollHideDelay]),T(Dm,{present:n||a,children:T(Zm,{"data-state":a?`visible`:`hidden`,...r,ref:t})})}),Xm=p.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=Um(qm,e.__scopeScrollArea),a=e.orientation===`horizontal`,o=vh(()=>c(`SCROLL_END`),100),[s,c]=Rm(`hidden`,{hidden:{SCROLL:`scrolling`},scrolling:{SCROLL_END:`idle`,POINTER_ENTER:`interacting`},interacting:{SCROLL:`interacting`,POINTER_LEAVE:`idle`},idle:{HIDE:`hidden`,SCROLL:`scrolling`,POINTER_ENTER:`interacting`}});return p.useEffect(()=>{if(s===`idle`){let e=window.setTimeout(()=>c(`HIDE`),i.scrollHideDelay);return()=>window.clearTimeout(e)}},[s,i.scrollHideDelay,c]),p.useEffect(()=>{let e=i.viewport,t=a?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(c(`SCROLL`),o()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[i.viewport,a,c,o]),T(Dm,{present:n||s!==`hidden`,children:T(Qm,{"data-state":s===`hidden`?`hidden`:`visible`,...r,ref:t,onPointerEnter:Lm(e.onPointerEnter,()=>c(`POINTER_ENTER`)),onPointerLeave:Lm(e.onPointerLeave,()=>c(`POINTER_LEAVE`))})})}),Zm=p.forwardRef((e,t)=>{let n=Um(qm,e.__scopeScrollArea),{forceMount:r,...i}=e,[a,o]=p.useState(!1),s=e.orientation===`horizontal`,c=vh(()=>{if(n.viewport){let e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;o(s?e:t)}},10);return yh(n.viewport,c),yh(n.content,c),T(Dm,{present:r||a,children:T(Qm,{"data-state":a?`visible`:`hidden`,...i,ref:t})})}),Qm=p.forwardRef((e,t)=>{let{orientation:n=`vertical`,...r}=e,i=Um(qm,e.__scopeScrollArea),a=p.useRef(null),o=p.useRef(0),[s,c]=p.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=dh(s.viewport,s.content),u={...r,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:e=>a.current=e,onThumbPointerUp:()=>o.current=0,onThumbPointerDown:e=>o.current=e};function d(e,t){return ph(e,o.current,s,t)}return n===`horizontal`?T($m,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=mh(e,s,i.dir);a.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,i.dir))}}):n===`vertical`?T(eh,{...u,ref:t,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=mh(e,s);a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}),$m=p.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=Um(qm,e.__scopeScrollArea),[o,s]=p.useState(),c=p.useRef(null),l=_m(t,c,a.onScrollbarXChange);return p.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),T(rh,{"data-orientation":`horizontal`,...i,ref:l,sizes:n,style:{bottom:0,left:a.dir===`rtl`?`var(--radix-scroll-area-corner-width)`:0,right:a.dir===`ltr`?`var(--radix-scroll-area-corner-width)`:0,"--radix-scroll-area-thumb-width":fh(n)+`px`,...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),gh(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&o&&r({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:uh(o.paddingLeft),paddingEnd:uh(o.paddingRight)}})}})}),eh=p.forwardRef((e,t)=>{let{sizes:n,onSizesChange:r,...i}=e,a=Um(qm,e.__scopeScrollArea),[o,s]=p.useState(),c=p.useRef(null),l=_m(t,c,a.onScrollbarYChange);return p.useEffect(()=>{c.current&&s(getComputedStyle(c.current))},[c]),T(rh,{"data-orientation":`vertical`,...i,ref:l,sizes:n,style:{top:0,right:a.dir===`ltr`?0:void 0,left:a.dir===`rtl`?0:void 0,bottom:`var(--radix-scroll-area-corner-height)`,"--radix-scroll-area-thumb-height":fh(n)+`px`,...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(a.viewport){let r=a.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),gh(r,n)&&t.preventDefault()}},onResize:()=>{c.current&&a.viewport&&o&&r({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:uh(o.paddingTop),paddingEnd:uh(o.paddingBottom)}})}})}),[th,nh]=Bm(qm),rh=p.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:r,hasThumb:i,onThumbChange:a,onThumbPointerUp:o,onThumbPointerDown:s,onThumbPositionChange:c,onDragScroll:l,onWheelScroll:u,onResize:d,...f}=e,m=Um(qm,n),[h,g]=p.useState(null),_=_m(t,e=>g(e)),v=p.useRef(null),y=p.useRef(``),b=m.viewport,x=r.content-r.viewport,S=Nm(u),C=Nm(c),w=vh(d,10);function E(e){v.current&&l({x:e.clientX-v.current.left,y:e.clientY-v.current.top})}return p.useEffect(()=>{let e=e=>{let t=e.target;h?.contains(t)&&S(e,x)};return document.addEventListener(`wheel`,e,{passive:!1}),()=>document.removeEventListener(`wheel`,e,{passive:!1})},[b,h,x,S]),p.useEffect(C,[r,C]),yh(h,w),yh(m.content,w),T(th,{scope:n,scrollbar:h,hasThumb:i,onThumbChange:Nm(a),onThumbPointerUp:Nm(o),onThumbPositionChange:C,onThumbPointerDown:Nm(s),children:T(wm.div,{...f,ref:_,style:{position:`absolute`,...f.style},onPointerDown:Lm(e.onPointerDown,e=>{e.button===0&&(e.target.setPointerCapture(e.pointerId),v.current=h.getBoundingClientRect(),y.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,m.viewport&&(m.viewport.style.scrollBehavior=`auto`),E(e))}),onPointerMove:Lm(e.onPointerMove,E),onPointerUp:Lm(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=y.current,m.viewport&&(m.viewport.style.scrollBehavior=``),v.current=null})})})}),ih=`ScrollAreaThumb`,ah=p.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=nh(ih,e.__scopeScrollArea);return T(Dm,{present:n||i.hasThumb,children:T(oh,{ref:t,...r})})}),oh=p.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:r,...i}=e,a=Um(ih,n),o=nh(ih,n),{onThumbPositionChange:s}=o,c=_m(t,e=>o.onThumbChange(e)),l=p.useRef(void 0),u=vh(()=>{l.current&&(l.current(),l.current=void 0)},100);return p.useEffect(()=>{let e=a.viewport;if(e){let t=()=>{u(),l.current||(l.current=_h(e,s),s())};return s(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[a.viewport,u,s]),T(wm.div,{"data-state":o.hasThumb?`visible`:`hidden`,...i,ref:c,style:{width:`var(--radix-scroll-area-thumb-width)`,height:`var(--radix-scroll-area-thumb-height)`,...r},onPointerDownCapture:Lm(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;o.onThumbPointerDown({x:n,y:r})}),onPointerUp:Lm(e.onPointerUp,o.onThumbPointerUp)})});ah.displayName=ih;var sh=`ScrollAreaCorner`,ch=p.forwardRef((e,t)=>{let n=Um(sh,e.__scopeScrollArea),r=!!(n.scrollbarX&&n.scrollbarY);return n.type!==`scroll`&&r?T(lh,{...e,ref:t}):null});ch.displayName=sh;var lh=p.forwardRef((e,t)=>{let{__scopeScrollArea:n,...r}=e,i=Um(sh,n),[a,o]=p.useState(0),[s,c]=p.useState(0),l=!!(a&&s);return yh(i.scrollbarX,()=>{let e=i.scrollbarX?.offsetHeight||0;i.onCornerHeightChange(e),c(e)}),yh(i.scrollbarY,()=>{let e=i.scrollbarY?.offsetWidth||0;i.onCornerWidthChange(e),o(e)}),l?T(wm.div,{...r,ref:t,style:{width:a,height:s,position:`absolute`,right:i.dir===`ltr`?0:void 0,left:i.dir===`rtl`?0:void 0,bottom:0,...e.style}}):null});function uh(e){return e?parseInt(e,10):0}function dh(e,t){let n=e/t;return isNaN(n)?0:n}function fh(e){let t=dh(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function ph(e,t,n,r=`ltr`){let i=fh(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return hh([c,l],d)(e)}function mh(e,t,n=`ltr`){let r=fh(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=Im(e,n===`ltr`?[0,o]:[o*-1,0]);return hh([0,o],[0,s])(c)}function hh(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function gh(e,t){return e>0&&e<t}var _h=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)};function vh(e,t){let n=Nm(e),r=p.useRef(0);return p.useEffect(()=>()=>window.clearTimeout(r.current),[]),p.useCallback(()=>{window.clearTimeout(r.current),r.current=window.setTimeout(n,t)},[n,t])}function yh(e,t){let n=Nm(t);Tm(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}var bh=Wm,xh=Km,Sh=ch;function Ch({className:e,viewportRef:t,followDirection:n,children:r,onScroll:i,...a}){return E(bh,{"data-slot":`scroll-area`,className:c(`relative min-h-0 min-w-0 overflow-hidden`,n&&`[direction:inherit]`,e),...a,children:[T(xh,{ref:t,"data-slot":`scroll-area-viewport`,onScroll:i,className:c(`h-full w-full rounded-[inherit]`,`[&>div]:!block [&>div]:!w-full [&>div]:!max-w-full`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-wx-primary/40`),children:r}),T(wh,{}),T(Sh,{})]})}function wh({className:e,orientation:t=`vertical`,...n}){return T(Jm,{"data-slot":`scroll-area-scrollbar`,orientation:t,className:c(`flex touch-none select-none transition-opacity duration-150`,`opacity-0 data-[state=visible]:opacity-100`,`hover:opacity-100`,t===`vertical`&&`h-full w-1.5 border-l border-l-transparent p-px`,t===`horizontal`&&`h-1.5 flex-col border-t border-t-transparent p-px`,e),...n,children:T(ah,{"data-slot":`scroll-area-thumb`,className:c(`relative flex-1 rounded-full`,`bg-wx-fg-muted/40 hover:bg-wx-fg-muted/60 transition-colors`)})})}function Th(){return g(e=>{if(!e)return;let t=e.getRootNode().activeElement,n=!t||t===document.body,r=e.closest(`main`),i=!!t&&!!r&&r.contains(t)&&!e.contains(t);!n&&!i||(e.hasAttribute(`tabindex`)||(e.tabIndex=-1),e.focus({preventScroll:!0}))},[])}function Eh(e,t){let[n,r]=S(null),i=wf().token===null?e:null;return v(()=>{if(!i)return;if(t!=null){r(t),yf(i,t);return}let e=!1;return vf(i).then(t=>{!e&&t!=null&&r(e=>e??t)}),()=>{e=!0}},[i,t]),t??n}function Dh(e,t){try{return new URL(e).pathname.replace(/\/$/,``)===new URL(t).pathname.replace(/\/$/,``)}catch{return e===t}}function Oh(e,t,n){let r=[...e,t];return r.length>n?r.slice(r.length-n):r}var kh=m({trackPageView:()=>{},trackLinkClick:()=>{},trackButtonClick:()=>{}});function Ah(){return _(kh)}var jh={page:`trackPageView`,link:`trackLinkClick`,button:`trackButtonClick`};function Mh({children:e,tracking:t,enabled:n,token:r}){let i=Of(),a=Qu(),[o]=qd(),[s]=Yd(),[c]=Zd(),l=Cf(),u=n&&(t?.trackWebsitePages??!0),d=n&&(t?.trackWidgetLinks??!0),f=x([]),p=x(null),m=x(null),h=x(null),_=g(e=>{if(l){l.enqueue({op:jh[e.kind],semantics:`queue`,payload:e.input});return}(e.kind===`page`?o({variables:{input:e.input}}):e.kind===`link`?s({variables:{input:e.input}}):c({variables:{input:e.input}})).catch(()=>{})},[l,o,s,c]),y=g(e=>{l||a.token?_(e):f.current=Oh(f.current,e,50)},[l,_,a]);v(()=>{if(!r)return;let e=f.current;f.current=[];for(let t of e)_(t)},[r,_]),v(()=>()=>{m.current&&clearTimeout(m.current)},[]);let S=g((e,t)=>{!u||!e||p.current&&Dh(p.current,e)||(m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{p.current=e,y({kind:`page`,input:{url:e,title:t?.title,referrer:t?.referrer,occurredAt:new Date().toISOString()}})},500))},[u,y]),C=g(e=>{!d||!e.url||y({kind:`link`,input:{url:e.url,targetType:e.targetType,targetRefId:e.targetRefId,title:e.title,referrer:typeof document<`u`&&document.referrer||void 0,occurredAt:new Date().toISOString()}})},[d,y]),w=g(e=>{n&&y({kind:`button`,input:{...e,occurredAt:new Date().toISOString()}})},[n,y]);v(()=>{if(!u||typeof window>`u`)return;if(i.kind===`iframe`){let e=e=>{if(!rf(e,i.kind))return;let t=e.data;!t||typeof t!=`object`||t.type!==`wexio:host-navigation:v1`||typeof t.url==`string`&&S(t.url,{title:typeof t.title==`string`?t.title:void 0,referrer:typeof t.referrer==`string`?t.referrer:void 0})};return window.addEventListener(`message`,e),()=>window.removeEventListener(`message`,e)}let e=()=>S(window.location.href,{title:document.title,referrer:document.referrer}),t=()=>{h.current?.();let t=document.querySelector(`title`),n=!1,r=()=>{o?.disconnect(),clearTimeout(a),h.current=null},i=()=>{n||(n=!0,r(),e())},a=setTimeout(i,600),o=null;t&&typeof MutationObserver<`u`&&(o=new MutationObserver(i),o.observe(t,{childList:!0,characterData:!0,subtree:!0})),h.current=r};e();let n=ip(t);return()=>{h.current?.(),n()}},[u,i.kind,S]);let E=b(()=>({trackPageView:S,trackLinkClick:C,trackButtonClick:w}),[S,C,w]);return T(kh.Provider,{value:E,children:e})}var Nh=new WeakMap;function Ph(e){let t=e.getRootNode();return t instanceof ShadowRoot?t:null}function Fh(e){let t=document.createElement(`div`);t.setAttribute(`data-wexio-overlay-layer`,`true`),t.style.display=`contents`;let n=t.attachShadow({mode:`open`}),r=document.createElement(`div`);r.style.display=`contents`,n.appendChild(r);let i=()=>{let t=Ph(e);if(t){t.adoptedStyleSheets&&(n.adoptedStyleSheets=[...t.adoptedStyleSheets]);for(let e of n.querySelectorAll(`style[data-wexio-copy]`))e.remove();for(let e of t.querySelectorAll(`style`)){let t=e.cloneNode(!0);t.setAttribute(`data-wexio-copy`,`true`),n.insertBefore(t,r)}}},a=()=>{let n=e.dataset.theme;for(let e of[t,r])n?e.dataset.theme=n:delete e.dataset.theme;e.hasAttribute(`dir`)?r.dir=e.dir:r.removeAttribute(`dir`)};i(),a();let o=new MutationObserver(a);return o.observe(e,{attributes:!0,attributeFilter:[`data-theme`,`dir`]}),document.body.appendChild(t),{host:t,mount:r,observer:o,refs:0,syncStyles:i}}function Ih(e){let t=Nh.get(e);t||(t=Fh(e),Nh.set(e,t)),t.refs+=1;let n=t,r=!1;return{mount:n.mount,syncStyles:n.syncStyles,release:()=>{r||(r=!0,--n.refs,!(n.refs>0)&&(n.observer.disconnect(),n.host.remove(),Nh.delete(e)))}}}function Lh(e){let t=Of().themeRoot,[n,r]=S(null);return v(()=>{if(!e||!t)return;let n=Ih(t);return n.syncStyles(),r(n.mount),()=>{n.release(),r(null)}},[e,t]),t?n:e&&typeof document<`u`?document.body:null}var Rh=`button:not([disabled]), [href], video[controls], iframe, [tabindex]:not([tabindex="-1"])`;function zh(){let e=document.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;return e instanceof HTMLElement?e:null}function Bh(e,t){let n=x(null);v(()=>{if(e)return n.current=zh(),()=>{let e=n.current;n.current=null,e?.isConnected&&e.focus({preventScroll:!0})}},[e]),v(()=>{if(!e||!t)return;t.querySelector(Rh)?.focus({preventScroll:!0});let n=e=>{if(e.key!==`Tab`)return;let n=Array.from(t.querySelectorAll(Rh));if(n.length===0)return;let r=t.getRootNode().activeElement,i=n[0],a=n[n.length-1];e.shiftKey&&(r===i||!r||!t.contains(r))?(e.preventDefault(),a.focus()):!e.shiftKey&&(r===a||!r||!t.contains(r))&&(e.preventDefault(),i.focus())};return t.addEventListener(`keydown`,n),()=>t.removeEventListener(`keydown`,n)},[e,t])}function Vh(){return typeof HTMLDialogElement<`u`&&typeof HTMLDialogElement.prototype.showModal==`function`}function Hh(e,t,n){let r=x(n);r.current=n,v(()=>{if(!t||!(e instanceof HTMLDialogElement)||!Vh())return;let n=e=>{e.preventDefault(),r.current()};return e.addEventListener(`cancel`,n),e.open||e.showModal(),()=>{e.removeEventListener(`cancel`,n),e.open&&e.close()}},[e,t])}function Uh({items:e,initialIndex:t,open:n,onClose:r}){let i=a(`lightbox`),[s,l]=S(t),[u,p]=S(n);v(()=>{n&&p(!0)},[n]);let m=Lh(n||u),[h,_]=S(null);Hh(h,n,r),Bh(n,h);let y=Vh()?o.dialog:o.div;v(()=>{n&&l(t)},[n,t]);let b=e.length,x=e[s],C=g(()=>{l(e=>(e+1)%b)},[b]),D=g(()=>{l(e=>(e-1+b)%b)},[b]);return v(()=>{if(!n)return;let e=e=>{e.key===`Escape`?(e.preventDefault(),r()):e.key===`ArrowRight`?C():e.key===`ArrowLeft`&&D()};document.addEventListener(`keydown`,e,!0);let t=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.removeEventListener(`keydown`,e,!0),document.body.style.overflow=t}},[n,r,C,D]),m?ee(T(d,{onExitComplete:()=>p(!1),children:n&&x&&E(y,{ref:_,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},onClick:r,className:`fixed inset-0 z-2147483647 m-0 h-full max-h-none w-full max-w-none border-0 p-0 backdrop:bg-transparent flex items-center justify-center bg-black/85 backdrop-blur-sm`,role:`dialog`,"aria-modal":`true`,"aria-label":x.alt||i(`mediaPreview`),children:[T(`button`,{type:`button`,onClick:e=>{e.stopPropagation(),r()},"aria-label":i(`close`),className:c(`absolute top-4 right-4 z-10 flex h-9 w-9 items-center justify-center rounded-full`,`bg-white/10 text-white transition-colors hover:bg-white/20`),children:T(f,{size:18})}),b>1&&E(w,{children:[T(`button`,{type:`button`,onClick:e=>{e.stopPropagation(),D()},"aria-label":i(`previous`),className:c(`absolute left-4 top-1/2 z-10 -translate-y-1/2 flex h-10 w-10 items-center justify-center rounded-full`,`bg-white/10 text-white transition-colors hover:bg-white/20`),children:T(am,{size:20})}),T(`button`,{type:`button`,onClick:e=>{e.stopPropagation(),C()},"aria-label":i(`next`),className:c(`absolute right-4 top-1/2 z-10 -translate-y-1/2 flex h-10 w-10 items-center justify-center rounded-full`,`bg-white/10 text-white transition-colors hover:bg-white/20`),children:T(om,{size:20})})]}),T(o.div,{initial:{scale:.96,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.96,opacity:0},transition:{duration:.18,ease:`easeOut`},className:`pointer-events-none flex max-h-[90vh] max-w-[90vw] items-center justify-center`,children:x.mimetype.startsWith(`video/`)?T(`video`,{src:x.url,controls:!0,autoPlay:!0,onClick:e=>e.stopPropagation(),className:`pointer-events-auto max-h-[90vh] max-w-[90vw] rounded-wx-lg`}):x.mimetype===`application/pdf`?T(`iframe`,{src:x.url,title:x.alt||`PDF preview`,onClick:e=>e.stopPropagation(),className:`pointer-events-auto h-[90vh] w-[90vw] rounded-wx-lg border-0 bg-white`}):T(o.img,{src:x.url,alt:x.alt,onClick:e=>e.stopPropagation(),draggable:!1,drag:b>1?`x`:!1,dragConstraints:{left:0,right:0},dragElastic:.18,dragMomentum:!1,onDragEnd:(e,t)=>{t.offset.x<=-60?C():t.offset.x>=60&&D()},className:c(`pointer-events-auto rounded-wx-lg object-contain`,`max-h-[90vh] max-w-[90vw]`,b>1&&`cursor-grab active:cursor-grabbing`)})},`${s}-${x.url}`),b>1&&E(`div`,{className:`absolute bottom-4 left-1/2 -translate-x-1/2 rounded-full bg-white/10 px-3 py-1 text-xs font-medium text-white`,children:[s+1,` / `,b]})]},`media-lightbox`)}),m):null}function Wh(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Gh=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Kh=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qh={};function Jh(e,t){return((t||qh).jsx?Kh:Gh).test(e)}var Yh=/[ \t\n\f\r]/g;function Xh(e){return typeof e==`object`?e.type===`text`?Zh(e.value):!1:Zh(e)}function Zh(e){return e.replace(Yh,``)===``}var Qh=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Qh.prototype.normal={},Qh.prototype.property={},Qh.prototype.space=void 0;function $h(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Qh(n,r,t)}function eg(e){return e.toLowerCase()}var tg=class{constructor(e,t){this.attribute=t,this.property=e}};tg.prototype.attribute=``,tg.prototype.booleanish=!1,tg.prototype.boolean=!1,tg.prototype.commaOrSpaceSeparated=!1,tg.prototype.commaSeparated=!1,tg.prototype.defined=!1,tg.prototype.mustUseProperty=!1,tg.prototype.number=!1,tg.prototype.overloadedBoolean=!1,tg.prototype.property=``,tg.prototype.spaceSeparated=!1,tg.prototype.space=void 0;var ng=t({boolean:()=>K,booleanish:()=>ig,commaOrSpaceSeparated:()=>sg,commaSeparated:()=>og,number:()=>q,overloadedBoolean:()=>ag,spaceSeparated:()=>J}),rg=0,K=cg(),ig=cg(),ag=cg(),q=cg(),J=cg(),og=cg(),sg=cg();function cg(){return 2**++rg}var lg=Object.keys(ng),ug=class extends tg{constructor(e,t,n,r){let i=-1;if(super(e,t),dg(this,`space`,r),typeof n==`number`)for(;++i<lg.length;){let e=lg[i];dg(this,lg[i],(n&ng[e])===ng[e])}}};ug.prototype.defined=!0;function dg(e,t,n){n&&(e[t]=n)}function fg(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new ug(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[eg(r)]=r,n[eg(a.attribute)]=r}return new Qh(t,n,e.space)}var pg=fg({properties:{ariaActiveDescendant:null,ariaAtomic:ig,ariaAutoComplete:null,ariaBusy:ig,ariaChecked:ig,ariaColCount:q,ariaColIndex:q,ariaColSpan:q,ariaControls:J,ariaCurrent:null,ariaDescribedBy:J,ariaDetails:null,ariaDisabled:ig,ariaDropEffect:J,ariaErrorMessage:null,ariaExpanded:ig,ariaFlowTo:J,ariaGrabbed:ig,ariaHasPopup:null,ariaHidden:ig,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:J,ariaLevel:q,ariaLive:null,ariaModal:ig,ariaMultiLine:ig,ariaMultiSelectable:ig,ariaOrientation:null,ariaOwns:J,ariaPlaceholder:null,ariaPosInSet:q,ariaPressed:ig,ariaReadOnly:ig,ariaRelevant:null,ariaRequired:ig,ariaRoleDescription:J,ariaRowCount:q,ariaRowIndex:q,ariaRowSpan:q,ariaSelected:ig,ariaSetSize:q,ariaSort:null,ariaValueMax:q,ariaValueMin:q,ariaValueNow:q,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function mg(e,t){return t in e?e[t]:t}function hg(e,t){return mg(e,t.toLowerCase())}var gg=fg({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:og,acceptCharset:J,accessKey:J,action:null,allow:null,allowFullScreen:K,allowPaymentRequest:K,allowUserMedia:K,alt:null,as:null,async:K,autoCapitalize:null,autoComplete:J,autoFocus:K,autoPlay:K,blocking:J,capture:null,charSet:null,checked:K,cite:null,className:J,cols:q,colSpan:null,content:null,contentEditable:ig,controls:K,controlsList:J,coords:q|og,crossOrigin:null,data:null,dateTime:null,decoding:null,default:K,defer:K,dir:null,dirName:null,disabled:K,download:ag,draggable:ig,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:K,formTarget:null,headers:J,height:q,hidden:ag,high:q,href:null,hrefLang:null,htmlFor:J,httpEquiv:J,id:null,imageSizes:null,imageSrcSet:null,inert:K,inputMode:null,integrity:null,is:null,isMap:K,itemId:null,itemProp:J,itemRef:J,itemScope:K,itemType:J,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:K,low:q,manifest:null,max:null,maxLength:q,media:null,method:null,min:null,minLength:q,multiple:K,muted:K,name:null,nonce:null,noModule:K,noValidate:K,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:K,optimum:q,pattern:null,ping:J,placeholder:null,playsInline:K,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:K,referrerPolicy:null,rel:J,required:K,reversed:K,rows:q,rowSpan:q,sandbox:J,scope:null,scoped:K,seamless:K,selected:K,shadowRootClonable:K,shadowRootDelegatesFocus:K,shadowRootMode:null,shape:null,size:q,sizes:null,slot:null,span:q,spellCheck:ig,src:null,srcDoc:null,srcLang:null,srcSet:null,start:q,step:null,style:null,tabIndex:q,target:null,title:null,translate:null,type:null,typeMustMatch:K,useMap:null,value:ig,width:q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:J,axis:null,background:null,bgColor:null,border:q,borderColor:null,bottomMargin:q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:K,declare:K,event:null,face:null,frame:null,frameBorder:null,hSpace:q,leftMargin:q,link:null,longDesc:null,lowSrc:null,marginHeight:q,marginWidth:q,noResize:K,noHref:K,noShade:K,noWrap:K,object:null,profile:null,prompt:null,rev:null,rightMargin:q,rules:null,scheme:null,scrolling:ig,standby:null,summary:null,text:null,topMargin:q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:q,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:K,disableRemotePlayback:K,prefix:null,property:null,results:q,security:null,unselectable:null},space:`html`,transform:hg}),_g=fg({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:sg,accentHeight:q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:q,amplitude:q,arabicForm:null,ascent:q,attributeName:null,attributeType:null,azimuth:q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:q,by:null,calcMode:null,capHeight:q,className:J,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:q,diffuseConstant:q,direction:null,display:null,dur:null,divisor:q,dominantBaseline:null,download:K,dx:null,dy:null,edgeMode:null,editable:null,elevation:q,enableBackground:null,end:null,event:null,exponent:q,externalResourcesRequired:null,fill:null,fillOpacity:q,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:og,g2:og,glyphName:og,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:q,horizOriginX:q,horizOriginY:q,id:null,ideographic:q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:q,k:q,k1:q,k2:q,k3:q,k4:q,kernelMatrix:sg,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:q,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:q,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:q,overlineThickness:q,paintOrder:null,panose1:null,path:null,pathLength:q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:J,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:q,pointsAtY:q,pointsAtZ:q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:sg,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:sg,rev:sg,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:sg,requiredFeatures:sg,requiredFonts:sg,requiredFormats:sg,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:q,specularExponent:q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:q,strikethroughThickness:q,string:null,stroke:null,strokeDashArray:sg,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:q,strokeOpacity:q,strokeWidth:null,style:null,surfaceScale:q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:sg,tabIndex:q,tableValues:null,target:null,targetX:q,targetY:q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:sg,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:q,underlineThickness:q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:q,values:null,vAlphabetic:q,vMathematical:q,vectorEffect:null,vHanging:q,vIdeographic:q,version:null,vertAdvY:q,vertOriginX:q,vertOriginY:q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:mg}),vg=fg({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),yg=fg({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:hg}),bg=fg({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),xg={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},Sg=/[A-Z]/g,Cg=/-[a-z]/g,wg=/^data[-\w.:]+$/i;function Tg(e,t){let n=eg(t),r=t,i=tg;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&wg.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Cg,Dg);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Cg.test(e)){let n=e.replace(Sg,Eg);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=ug}return new i(r,t)}function Eg(e){return`-`+e.toLowerCase()}function Dg(e){return e.charAt(1).toUpperCase()}var Og=$h([pg,gg,vg,yg,bg],`html`),kg=$h([pg,_g,vg,yg,bg],`svg`);function Ag(e){return e.join(` `).trim()}var jg=u(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
|
|
261
|
+
`,d=`/`,f=`*`,p=``,m=`comment`,h=`declaration`;function g(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t=t||{};var l=1,g=1;function v(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(u);g=~n?e.length-n:g+e.length}function y(){var e={line:l,column:g};return function(t){return t.position=new b(e),C(),t}}function b(e){this.start=e,this.end={line:l,column:g},this.source=t.source}b.prototype.content=e;function x(n){var r=Error(t.source+`:`+l+`:`+g+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=g,r.source=e,!t.silent)throw r}function S(t){var n=t.exec(e);if(n){var r=n[0];return v(r),e=e.slice(r.length),n}}function C(){S(i)}function w(e){var t;for(e=e||[];t=T();)t!==!1&&e.push(t);return e}function T(){var t=y();if(!(d!=e.charAt(0)||f!=e.charAt(1))){for(var n=2;p!=e.charAt(n)&&(f!=e.charAt(n)||d!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return x(`End of comment missing`);var r=e.slice(2,n-2);return g+=2,v(r),e=e.slice(n),g+=2,t({type:m,comment:r})}}function E(){var e=y(),t=S(a);if(t){if(T(),!S(o))return x(`property missing ':'`);var r=S(s),i=e({type:h,property:_(t[0].replace(n,p)),value:r?_(r[0].replace(n,p)):p});return S(c),i}}function ee(){var e=[];w(e);for(var t;t=E();)t!==!1&&(e.push(t),w(e));return e}return C(),ee()}function _(e){return e?e.replace(l,p):p}t.exports=g})),Mg=u((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.default=r;var n=t(jg());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r=r||{},r[n]=i)}),r}})),Ng=u((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),Pg=u(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Mg()),r=Ng();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),Fg=Lg(`end`),Ig=Lg(`start`);function Lg(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Rg(e){let t=Ig(e),n=Fg(e);if(t&&n)return{start:t,end:n}}function zg(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Vg(e.position):`start`in e||`end`in e?Vg(e):`line`in e||`column`in e?Bg(e):``}function Bg(e){return Hg(e&&e.line)+`:`+Hg(e&&e.column)}function Vg(e){return Bg(e&&e.start)+`-`+Bg(e&&e.end)}function Hg(e){return e&&typeof e==`number`?e:1}var Ug=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=zg(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Ug.prototype.file=``,Ug.prototype.name=``,Ug.prototype.reason=``,Ug.prototype.message=``,Ug.prototype.stack=``,Ug.prototype.column=void 0,Ug.prototype.line=void 0,Ug.prototype.ancestors=void 0,Ug.prototype.cause=void 0,Ug.prototype.fatal=void 0,Ug.prototype.place=void 0,Ug.prototype.ruleId=void 0,Ug.prototype.source=void 0;var Wg=s(Pg(),1),Gg={}.hasOwnProperty,Kg=new Map,qg=/[A-Z]/g,Jg=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Yg=new Set([`td`,`th`]),Xg=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function Zg(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=c_(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=s_(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?kg:Og,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Qg(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Qg(e,t,n){if(t.type===`element`)return $g(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return e_(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return n_(e,t,n);if(t.type===`mdxjsEsm`)return t_(e,t);if(t.type===`root`)return r_(e,t,n);if(t.type===`text`)return i_(e,t)}function $g(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=kg,e.schema=i),e.ancestors.push(t);let a=m_(e,t.tagName,!1),o=l_(e,t),s=d_(e,t);return Jg.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!Xh(e):!0})),a_(e,o,a,t),o_(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function e_(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}h_(e,t.position)}function t_(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);h_(e,t.position)}function n_(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=kg,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:m_(e,t.name,!0),o=u_(e,t),s=d_(e,t);return a_(e,o,a,t),o_(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function r_(e,t,n){let r={};return o_(r,d_(e,t)),e.create(t,e.Fragment,r,n)}function i_(e,t){return t.value}function a_(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function o_(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function s_(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function c_(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=Ig(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function l_(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Gg.call(t.properties,i)){let a=f_(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Yg.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||(n.style={});t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function u_(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else h_(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else h_(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function d_(e,t){let n=[],r=-1,i=e.passKeys?new Map:Kg;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=Qg(e,a,o);s!==void 0&&n.push(s)}return n}function f_(e,t,n){let r=Tg(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Wh(n):Ag(n)),r.property===`style`){let t=typeof n==`object`?n:p_(e,String(n));return e.stylePropertyNameCase===`css`&&(t=g_(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?xg[r.property]||r.property:r.attribute,n]}}function p_(e,t){try{return(0,Wg.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new Ug("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=Xg+`#cannot-parse-style-attribute`,r}}function m_(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=Jh(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=Jh(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Gg.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);h_(e)}function h_(e,t){let n=new Ug("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=Xg+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function g_(e){let t={},n;for(n in e)Gg.call(e,n)&&(t[__(n)]=e[n]);return t}function __(e){let t=e.replace(qg,v_);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function v_(e){return`-`+e.toLowerCase()}var y_={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},b_={};function x_(e,t){let n=t||b_;return S_(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function S_(e,t,n){if(w_(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return C_(e.children,t,n)}return Array.isArray(e)?C_(e,t,n):``}function C_(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=S_(e[i],t,n);return r.join(``)}function w_(e){return!!(e&&typeof e==`object`)}var T_={AElig:`Æ`,AMP:`&`,Aacute:`Á`,Abreve:`Ă`,Acirc:`Â`,Acy:`А`,Afr:`𝔄`,Agrave:`À`,Alpha:`Α`,Amacr:`Ā`,And:`⩓`,Aogon:`Ą`,Aopf:`𝔸`,ApplyFunction:``,Aring:`Å`,Ascr:`𝒜`,Assign:`≔`,Atilde:`Ã`,Auml:`Ä`,Backslash:`∖`,Barv:`⫧`,Barwed:`⌆`,Bcy:`Б`,Because:`∵`,Bernoullis:`ℬ`,Beta:`Β`,Bfr:`𝔅`,Bopf:`𝔹`,Breve:`˘`,Bscr:`ℬ`,Bumpeq:`≎`,CHcy:`Ч`,COPY:`©`,Cacute:`Ć`,Cap:`⋒`,CapitalDifferentialD:`ⅅ`,Cayleys:`ℭ`,Ccaron:`Č`,Ccedil:`Ç`,Ccirc:`Ĉ`,Cconint:`∰`,Cdot:`Ċ`,Cedilla:`¸`,CenterDot:`·`,Cfr:`ℭ`,Chi:`Χ`,CircleDot:`⊙`,CircleMinus:`⊖`,CirclePlus:`⊕`,CircleTimes:`⊗`,ClockwiseContourIntegral:`∲`,CloseCurlyDoubleQuote:`”`,CloseCurlyQuote:`’`,Colon:`∷`,Colone:`⩴`,Congruent:`≡`,Conint:`∯`,ContourIntegral:`∮`,Copf:`ℂ`,Coproduct:`∐`,CounterClockwiseContourIntegral:`∳`,Cross:`⨯`,Cscr:`𝒞`,Cup:`⋓`,CupCap:`≍`,DD:`ⅅ`,DDotrahd:`⤑`,DJcy:`Ђ`,DScy:`Ѕ`,DZcy:`Џ`,Dagger:`‡`,Darr:`↡`,Dashv:`⫤`,Dcaron:`Ď`,Dcy:`Д`,Del:`∇`,Delta:`Δ`,Dfr:`𝔇`,DiacriticalAcute:`´`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,DiacriticalGrave:"`",DiacriticalTilde:`˜`,Diamond:`⋄`,DifferentialD:`ⅆ`,Dopf:`𝔻`,Dot:`¨`,DotDot:`⃜`,DotEqual:`≐`,DoubleContourIntegral:`∯`,DoubleDot:`¨`,DoubleDownArrow:`⇓`,DoubleLeftArrow:`⇐`,DoubleLeftRightArrow:`⇔`,DoubleLeftTee:`⫤`,DoubleLongLeftArrow:`⟸`,DoubleLongLeftRightArrow:`⟺`,DoubleLongRightArrow:`⟹`,DoubleRightArrow:`⇒`,DoubleRightTee:`⊨`,DoubleUpArrow:`⇑`,DoubleUpDownArrow:`⇕`,DoubleVerticalBar:`∥`,DownArrow:`↓`,DownArrowBar:`⤓`,DownArrowUpArrow:`⇵`,DownBreve:`̑`,DownLeftRightVector:`⥐`,DownLeftTeeVector:`⥞`,DownLeftVector:`↽`,DownLeftVectorBar:`⥖`,DownRightTeeVector:`⥟`,DownRightVector:`⇁`,DownRightVectorBar:`⥗`,DownTee:`⊤`,DownTeeArrow:`↧`,Downarrow:`⇓`,Dscr:`𝒟`,Dstrok:`Đ`,ENG:`Ŋ`,ETH:`Ð`,Eacute:`É`,Ecaron:`Ě`,Ecirc:`Ê`,Ecy:`Э`,Edot:`Ė`,Efr:`𝔈`,Egrave:`È`,Element:`∈`,Emacr:`Ē`,EmptySmallSquare:`◻`,EmptyVerySmallSquare:`▫`,Eogon:`Ę`,Eopf:`𝔼`,Epsilon:`Ε`,Equal:`⩵`,EqualTilde:`≂`,Equilibrium:`⇌`,Escr:`ℰ`,Esim:`⩳`,Eta:`Η`,Euml:`Ë`,Exists:`∃`,ExponentialE:`ⅇ`,Fcy:`Ф`,Ffr:`𝔉`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,Fopf:`𝔽`,ForAll:`∀`,Fouriertrf:`ℱ`,Fscr:`ℱ`,GJcy:`Ѓ`,GT:`>`,Gamma:`Γ`,Gammad:`Ϝ`,Gbreve:`Ğ`,Gcedil:`Ģ`,Gcirc:`Ĝ`,Gcy:`Г`,Gdot:`Ġ`,Gfr:`𝔊`,Gg:`⋙`,Gopf:`𝔾`,GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterGreater:`⪢`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Gscr:`𝒢`,Gt:`≫`,HARDcy:`Ъ`,Hacek:`ˇ`,Hat:`^`,Hcirc:`Ĥ`,Hfr:`ℌ`,HilbertSpace:`ℋ`,Hopf:`ℍ`,HorizontalLine:`─`,Hscr:`ℋ`,Hstrok:`Ħ`,HumpDownHump:`≎`,HumpEqual:`≏`,IEcy:`Е`,IJlig:`IJ`,IOcy:`Ё`,Iacute:`Í`,Icirc:`Î`,Icy:`И`,Idot:`İ`,Ifr:`ℑ`,Igrave:`Ì`,Im:`ℑ`,Imacr:`Ī`,ImaginaryI:`ⅈ`,Implies:`⇒`,Int:`∬`,Integral:`∫`,Intersection:`⋂`,InvisibleComma:``,InvisibleTimes:``,Iogon:`Į`,Iopf:`𝕀`,Iota:`Ι`,Iscr:`ℐ`,Itilde:`Ĩ`,Iukcy:`І`,Iuml:`Ï`,Jcirc:`Ĵ`,Jcy:`Й`,Jfr:`𝔍`,Jopf:`𝕁`,Jscr:`𝒥`,Jsercy:`Ј`,Jukcy:`Є`,KHcy:`Х`,KJcy:`Ќ`,Kappa:`Κ`,Kcedil:`Ķ`,Kcy:`К`,Kfr:`𝔎`,Kopf:`𝕂`,Kscr:`𝒦`,LJcy:`Љ`,LT:`<`,Lacute:`Ĺ`,Lambda:`Λ`,Lang:`⟪`,Laplacetrf:`ℒ`,Larr:`↞`,Lcaron:`Ľ`,Lcedil:`Ļ`,Lcy:`Л`,LeftAngleBracket:`⟨`,LeftArrow:`←`,LeftArrowBar:`⇤`,LeftArrowRightArrow:`⇆`,LeftCeiling:`⌈`,LeftDoubleBracket:`⟦`,LeftDownTeeVector:`⥡`,LeftDownVector:`⇃`,LeftDownVectorBar:`⥙`,LeftFloor:`⌊`,LeftRightArrow:`↔`,LeftRightVector:`⥎`,LeftTee:`⊣`,LeftTeeArrow:`↤`,LeftTeeVector:`⥚`,LeftTriangle:`⊲`,LeftTriangleBar:`⧏`,LeftTriangleEqual:`⊴`,LeftUpDownVector:`⥑`,LeftUpTeeVector:`⥠`,LeftUpVector:`↿`,LeftUpVectorBar:`⥘`,LeftVector:`↼`,LeftVectorBar:`⥒`,Leftarrow:`⇐`,Leftrightarrow:`⇔`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,LessLess:`⪡`,LessSlantEqual:`⩽`,LessTilde:`≲`,Lfr:`𝔏`,Ll:`⋘`,Lleftarrow:`⇚`,Lmidot:`Ŀ`,LongLeftArrow:`⟵`,LongLeftRightArrow:`⟷`,LongRightArrow:`⟶`,Longleftarrow:`⟸`,Longleftrightarrow:`⟺`,Longrightarrow:`⟹`,Lopf:`𝕃`,LowerLeftArrow:`↙`,LowerRightArrow:`↘`,Lscr:`ℒ`,Lsh:`↰`,Lstrok:`Ł`,Lt:`≪`,Map:`⤅`,Mcy:`М`,MediumSpace:` `,Mellintrf:`ℳ`,Mfr:`𝔐`,MinusPlus:`∓`,Mopf:`𝕄`,Mscr:`ℳ`,Mu:`Μ`,NJcy:`Њ`,Nacute:`Ń`,Ncaron:`Ň`,Ncedil:`Ņ`,Ncy:`Н`,NegativeMediumSpace:``,NegativeThickSpace:``,NegativeThinSpace:``,NegativeVeryThinSpace:``,NestedGreaterGreater:`≫`,NestedLessLess:`≪`,NewLine:`
|
|
262
|
+
`,Nfr:`𝔑`,NoBreak:``,NonBreakingSpace:`\xA0`,Nopf:`ℕ`,Not:`⫬`,NotCongruent:`≢`,NotCupCap:`≭`,NotDoubleVerticalBar:`∦`,NotElement:`∉`,NotEqual:`≠`,NotEqualTilde:`≂̸`,NotExists:`∄`,NotGreater:`≯`,NotGreaterEqual:`≱`,NotGreaterFullEqual:`≧̸`,NotGreaterGreater:`≫̸`,NotGreaterLess:`≹`,NotGreaterSlantEqual:`⩾̸`,NotGreaterTilde:`≵`,NotHumpDownHump:`≎̸`,NotHumpEqual:`≏̸`,NotLeftTriangle:`⋪`,NotLeftTriangleBar:`⧏̸`,NotLeftTriangleEqual:`⋬`,NotLess:`≮`,NotLessEqual:`≰`,NotLessGreater:`≸`,NotLessLess:`≪̸`,NotLessSlantEqual:`⩽̸`,NotLessTilde:`≴`,NotNestedGreaterGreater:`⪢̸`,NotNestedLessLess:`⪡̸`,NotPrecedes:`⊀`,NotPrecedesEqual:`⪯̸`,NotPrecedesSlantEqual:`⋠`,NotReverseElement:`∌`,NotRightTriangle:`⋫`,NotRightTriangleBar:`⧐̸`,NotRightTriangleEqual:`⋭`,NotSquareSubset:`⊏̸`,NotSquareSubsetEqual:`⋢`,NotSquareSuperset:`⊐̸`,NotSquareSupersetEqual:`⋣`,NotSubset:`⊂⃒`,NotSubsetEqual:`⊈`,NotSucceeds:`⊁`,NotSucceedsEqual:`⪰̸`,NotSucceedsSlantEqual:`⋡`,NotSucceedsTilde:`≿̸`,NotSuperset:`⊃⃒`,NotSupersetEqual:`⊉`,NotTilde:`≁`,NotTildeEqual:`≄`,NotTildeFullEqual:`≇`,NotTildeTilde:`≉`,NotVerticalBar:`∤`,Nscr:`𝒩`,Ntilde:`Ñ`,Nu:`Ν`,OElig:`Œ`,Oacute:`Ó`,Ocirc:`Ô`,Ocy:`О`,Odblac:`Ő`,Ofr:`𝔒`,Ograve:`Ò`,Omacr:`Ō`,Omega:`Ω`,Omicron:`Ο`,Oopf:`𝕆`,OpenCurlyDoubleQuote:`“`,OpenCurlyQuote:`‘`,Or:`⩔`,Oscr:`𝒪`,Oslash:`Ø`,Otilde:`Õ`,Otimes:`⨷`,Ouml:`Ö`,OverBar:`‾`,OverBrace:`⏞`,OverBracket:`⎴`,OverParenthesis:`⏜`,PartialD:`∂`,Pcy:`П`,Pfr:`𝔓`,Phi:`Φ`,Pi:`Π`,PlusMinus:`±`,Poincareplane:`ℌ`,Popf:`ℙ`,Pr:`⪻`,Precedes:`≺`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`≼`,PrecedesTilde:`≾`,Prime:`″`,Product:`∏`,Proportion:`∷`,Proportional:`∝`,Pscr:`𝒫`,Psi:`Ψ`,QUOT:`"`,Qfr:`𝔔`,Qopf:`ℚ`,Qscr:`𝒬`,RBarr:`⤐`,REG:`®`,Racute:`Ŕ`,Rang:`⟫`,Rarr:`↠`,Rarrtl:`⤖`,Rcaron:`Ř`,Rcedil:`Ŗ`,Rcy:`Р`,Re:`ℜ`,ReverseElement:`∋`,ReverseEquilibrium:`⇋`,ReverseUpEquilibrium:`⥯`,Rfr:`ℜ`,Rho:`Ρ`,RightAngleBracket:`⟩`,RightArrow:`→`,RightArrowBar:`⇥`,RightArrowLeftArrow:`⇄`,RightCeiling:`⌉`,RightDoubleBracket:`⟧`,RightDownTeeVector:`⥝`,RightDownVector:`⇂`,RightDownVectorBar:`⥕`,RightFloor:`⌋`,RightTee:`⊢`,RightTeeArrow:`↦`,RightTeeVector:`⥛`,RightTriangle:`⊳`,RightTriangleBar:`⧐`,RightTriangleEqual:`⊵`,RightUpDownVector:`⥏`,RightUpTeeVector:`⥜`,RightUpVector:`↾`,RightUpVectorBar:`⥔`,RightVector:`⇀`,RightVectorBar:`⥓`,Rightarrow:`⇒`,Ropf:`ℝ`,RoundImplies:`⥰`,Rrightarrow:`⇛`,Rscr:`ℛ`,Rsh:`↱`,RuleDelayed:`⧴`,SHCHcy:`Щ`,SHcy:`Ш`,SOFTcy:`Ь`,Sacute:`Ś`,Sc:`⪼`,Scaron:`Š`,Scedil:`Ş`,Scirc:`Ŝ`,Scy:`С`,Sfr:`𝔖`,ShortDownArrow:`↓`,ShortLeftArrow:`←`,ShortRightArrow:`→`,ShortUpArrow:`↑`,Sigma:`Σ`,SmallCircle:`∘`,Sopf:`𝕊`,Sqrt:`√`,Square:`□`,SquareIntersection:`⊓`,SquareSubset:`⊏`,SquareSubsetEqual:`⊑`,SquareSuperset:`⊐`,SquareSupersetEqual:`⊒`,SquareUnion:`⊔`,Sscr:`𝒮`,Star:`⋆`,Sub:`⋐`,Subset:`⋐`,SubsetEqual:`⊆`,Succeeds:`≻`,SucceedsEqual:`⪰`,SucceedsSlantEqual:`≽`,SucceedsTilde:`≿`,SuchThat:`∋`,Sum:`∑`,Sup:`⋑`,Superset:`⊃`,SupersetEqual:`⊇`,Supset:`⋑`,THORN:`Þ`,TRADE:`™`,TSHcy:`Ћ`,TScy:`Ц`,Tab:` `,Tau:`Τ`,Tcaron:`Ť`,Tcedil:`Ţ`,Tcy:`Т`,Tfr:`𝔗`,Therefore:`∴`,Theta:`Θ`,ThickSpace:` `,ThinSpace:` `,Tilde:`∼`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,Topf:`𝕋`,TripleDot:`⃛`,Tscr:`𝒯`,Tstrok:`Ŧ`,Uacute:`Ú`,Uarr:`↟`,Uarrocir:`⥉`,Ubrcy:`Ў`,Ubreve:`Ŭ`,Ucirc:`Û`,Ucy:`У`,Udblac:`Ű`,Ufr:`𝔘`,Ugrave:`Ù`,Umacr:`Ū`,UnderBar:`_`,UnderBrace:`⏟`,UnderBracket:`⎵`,UnderParenthesis:`⏝`,Union:`⋃`,UnionPlus:`⊎`,Uogon:`Ų`,Uopf:`𝕌`,UpArrow:`↑`,UpArrowBar:`⤒`,UpArrowDownArrow:`⇅`,UpDownArrow:`↕`,UpEquilibrium:`⥮`,UpTee:`⊥`,UpTeeArrow:`↥`,Uparrow:`⇑`,Updownarrow:`⇕`,UpperLeftArrow:`↖`,UpperRightArrow:`↗`,Upsi:`ϒ`,Upsilon:`Υ`,Uring:`Ů`,Uscr:`𝒰`,Utilde:`Ũ`,Uuml:`Ü`,VDash:`⊫`,Vbar:`⫫`,Vcy:`В`,Vdash:`⊩`,Vdashl:`⫦`,Vee:`⋁`,Verbar:`‖`,Vert:`‖`,VerticalBar:`∣`,VerticalLine:`|`,VerticalSeparator:`❘`,VerticalTilde:`≀`,VeryThinSpace:` `,Vfr:`𝔙`,Vopf:`𝕍`,Vscr:`𝒱`,Vvdash:`⊪`,Wcirc:`Ŵ`,Wedge:`⋀`,Wfr:`𝔚`,Wopf:`𝕎`,Wscr:`𝒲`,Xfr:`𝔛`,Xi:`Ξ`,Xopf:`𝕏`,Xscr:`𝒳`,YAcy:`Я`,YIcy:`Ї`,YUcy:`Ю`,Yacute:`Ý`,Ycirc:`Ŷ`,Ycy:`Ы`,Yfr:`𝔜`,Yopf:`𝕐`,Yscr:`𝒴`,Yuml:`Ÿ`,ZHcy:`Ж`,Zacute:`Ź`,Zcaron:`Ž`,Zcy:`З`,Zdot:`Ż`,ZeroWidthSpace:``,Zeta:`Ζ`,Zfr:`ℨ`,Zopf:`ℤ`,Zscr:`𝒵`,aacute:`á`,abreve:`ă`,ac:`∾`,acE:`∾̳`,acd:`∿`,acirc:`â`,acute:`´`,acy:`а`,aelig:`æ`,af:``,afr:`𝔞`,agrave:`à`,alefsym:`ℵ`,aleph:`ℵ`,alpha:`α`,amacr:`ā`,amalg:`⨿`,amp:`&`,and:`∧`,andand:`⩕`,andd:`⩜`,andslope:`⩘`,andv:`⩚`,ang:`∠`,ange:`⦤`,angle:`∠`,angmsd:`∡`,angmsdaa:`⦨`,angmsdab:`⦩`,angmsdac:`⦪`,angmsdad:`⦫`,angmsdae:`⦬`,angmsdaf:`⦭`,angmsdag:`⦮`,angmsdah:`⦯`,angrt:`∟`,angrtvb:`⊾`,angrtvbd:`⦝`,angsph:`∢`,angst:`Å`,angzarr:`⍼`,aogon:`ą`,aopf:`𝕒`,ap:`≈`,apE:`⩰`,apacir:`⩯`,ape:`≊`,apid:`≋`,apos:`'`,approx:`≈`,approxeq:`≊`,aring:`å`,ascr:`𝒶`,ast:`*`,asymp:`≈`,asympeq:`≍`,atilde:`ã`,auml:`ä`,awconint:`∳`,awint:`⨑`,bNot:`⫭`,backcong:`≌`,backepsilon:`϶`,backprime:`‵`,backsim:`∽`,backsimeq:`⋍`,barvee:`⊽`,barwed:`⌅`,barwedge:`⌅`,bbrk:`⎵`,bbrktbrk:`⎶`,bcong:`≌`,bcy:`б`,bdquo:`„`,becaus:`∵`,because:`∵`,bemptyv:`⦰`,bepsi:`϶`,bernou:`ℬ`,beta:`β`,beth:`ℶ`,between:`≬`,bfr:`𝔟`,bigcap:`⋂`,bigcirc:`◯`,bigcup:`⋃`,bigodot:`⨀`,bigoplus:`⨁`,bigotimes:`⨂`,bigsqcup:`⨆`,bigstar:`★`,bigtriangledown:`▽`,bigtriangleup:`△`,biguplus:`⨄`,bigvee:`⋁`,bigwedge:`⋀`,bkarow:`⤍`,blacklozenge:`⧫`,blacksquare:`▪`,blacktriangle:`▴`,blacktriangledown:`▾`,blacktriangleleft:`◂`,blacktriangleright:`▸`,blank:`␣`,blk12:`▒`,blk14:`░`,blk34:`▓`,block:`█`,bne:`=⃥`,bnequiv:`≡⃥`,bnot:`⌐`,bopf:`𝕓`,bot:`⊥`,bottom:`⊥`,bowtie:`⋈`,boxDL:`╗`,boxDR:`╔`,boxDl:`╖`,boxDr:`╓`,boxH:`═`,boxHD:`╦`,boxHU:`╩`,boxHd:`╤`,boxHu:`╧`,boxUL:`╝`,boxUR:`╚`,boxUl:`╜`,boxUr:`╙`,boxV:`║`,boxVH:`╬`,boxVL:`╣`,boxVR:`╠`,boxVh:`╫`,boxVl:`╢`,boxVr:`╟`,boxbox:`⧉`,boxdL:`╕`,boxdR:`╒`,boxdl:`┐`,boxdr:`┌`,boxh:`─`,boxhD:`╥`,boxhU:`╨`,boxhd:`┬`,boxhu:`┴`,boxminus:`⊟`,boxplus:`⊞`,boxtimes:`⊠`,boxuL:`╛`,boxuR:`╘`,boxul:`┘`,boxur:`└`,boxv:`│`,boxvH:`╪`,boxvL:`╡`,boxvR:`╞`,boxvh:`┼`,boxvl:`┤`,boxvr:`├`,bprime:`‵`,breve:`˘`,brvbar:`¦`,bscr:`𝒷`,bsemi:`⁏`,bsim:`∽`,bsime:`⋍`,bsol:`\\`,bsolb:`⧅`,bsolhsub:`⟈`,bull:`•`,bullet:`•`,bump:`≎`,bumpE:`⪮`,bumpe:`≏`,bumpeq:`≏`,cacute:`ć`,cap:`∩`,capand:`⩄`,capbrcup:`⩉`,capcap:`⩋`,capcup:`⩇`,capdot:`⩀`,caps:`∩︀`,caret:`⁁`,caron:`ˇ`,ccaps:`⩍`,ccaron:`č`,ccedil:`ç`,ccirc:`ĉ`,ccups:`⩌`,ccupssm:`⩐`,cdot:`ċ`,cedil:`¸`,cemptyv:`⦲`,cent:`¢`,centerdot:`·`,cfr:`𝔠`,chcy:`ч`,check:`✓`,checkmark:`✓`,chi:`χ`,cir:`○`,cirE:`⧃`,circ:`ˆ`,circeq:`≗`,circlearrowleft:`↺`,circlearrowright:`↻`,circledR:`®`,circledS:`Ⓢ`,circledast:`⊛`,circledcirc:`⊚`,circleddash:`⊝`,cire:`≗`,cirfnint:`⨐`,cirmid:`⫯`,cirscir:`⧂`,clubs:`♣`,clubsuit:`♣`,colon:`:`,colone:`≔`,coloneq:`≔`,comma:`,`,commat:`@`,comp:`∁`,compfn:`∘`,complement:`∁`,complexes:`ℂ`,cong:`≅`,congdot:`⩭`,conint:`∮`,copf:`𝕔`,coprod:`∐`,copy:`©`,copysr:`℗`,crarr:`↵`,cross:`✗`,cscr:`𝒸`,csub:`⫏`,csube:`⫑`,csup:`⫐`,csupe:`⫒`,ctdot:`⋯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cularrp:`⤽`,cup:`∪`,cupbrcap:`⩈`,cupcap:`⩆`,cupcup:`⩊`,cupdot:`⊍`,cupor:`⩅`,cups:`∪︀`,curarr:`↷`,curarrm:`⤼`,curlyeqprec:`⋞`,curlyeqsucc:`⋟`,curlyvee:`⋎`,curlywedge:`⋏`,curren:`¤`,curvearrowleft:`↶`,curvearrowright:`↷`,cuvee:`⋎`,cuwed:`⋏`,cwconint:`∲`,cwint:`∱`,cylcty:`⌭`,dArr:`⇓`,dHar:`⥥`,dagger:`†`,daleth:`ℸ`,darr:`↓`,dash:`‐`,dashv:`⊣`,dbkarow:`⤏`,dblac:`˝`,dcaron:`ď`,dcy:`д`,dd:`ⅆ`,ddagger:`‡`,ddarr:`⇊`,ddotseq:`⩷`,deg:`°`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,dfr:`𝔡`,dharl:`⇃`,dharr:`⇂`,diam:`⋄`,diamond:`⋄`,diamondsuit:`♦`,diams:`♦`,die:`¨`,digamma:`ϝ`,disin:`⋲`,div:`÷`,divide:`÷`,divideontimes:`⋇`,divonx:`⋇`,djcy:`ђ`,dlcorn:`⌞`,dlcrop:`⌍`,dollar:`$`,dopf:`𝕕`,dot:`˙`,doteq:`≐`,doteqdot:`≑`,dotminus:`∸`,dotplus:`∔`,dotsquare:`⊡`,doublebarwedge:`⌆`,downarrow:`↓`,downdownarrows:`⇊`,downharpoonleft:`⇃`,downharpoonright:`⇂`,drbkarow:`⤐`,drcorn:`⌟`,drcrop:`⌌`,dscr:`𝒹`,dscy:`ѕ`,dsol:`⧶`,dstrok:`đ`,dtdot:`⋱`,dtri:`▿`,dtrif:`▾`,duarr:`⇵`,duhar:`⥯`,dwangle:`⦦`,dzcy:`џ`,dzigrarr:`⟿`,eDDot:`⩷`,eDot:`≑`,eacute:`é`,easter:`⩮`,ecaron:`ě`,ecir:`≖`,ecirc:`ê`,ecolon:`≕`,ecy:`э`,edot:`ė`,ee:`ⅇ`,efDot:`≒`,efr:`𝔢`,eg:`⪚`,egrave:`è`,egs:`⪖`,egsdot:`⪘`,el:`⪙`,elinters:`⏧`,ell:`ℓ`,els:`⪕`,elsdot:`⪗`,emacr:`ē`,empty:`∅`,emptyset:`∅`,emptyv:`∅`,emsp13:` `,emsp14:` `,emsp:` `,eng:`ŋ`,ensp:` `,eogon:`ę`,eopf:`𝕖`,epar:`⋕`,eparsl:`⧣`,eplus:`⩱`,epsi:`ε`,epsilon:`ε`,epsiv:`ϵ`,eqcirc:`≖`,eqcolon:`≕`,eqsim:`≂`,eqslantgtr:`⪖`,eqslantless:`⪕`,equals:`=`,equest:`≟`,equiv:`≡`,equivDD:`⩸`,eqvparsl:`⧥`,erDot:`≓`,erarr:`⥱`,escr:`ℯ`,esdot:`≐`,esim:`≂`,eta:`η`,eth:`ð`,euml:`ë`,euro:`€`,excl:`!`,exist:`∃`,expectation:`ℰ`,exponentiale:`ⅇ`,fallingdotseq:`≒`,fcy:`ф`,female:`♀`,ffilig:`ffi`,fflig:`ff`,ffllig:`ffl`,ffr:`𝔣`,filig:`fi`,fjlig:`fj`,flat:`♭`,fllig:`fl`,fltns:`▱`,fnof:`ƒ`,fopf:`𝕗`,forall:`∀`,fork:`⋔`,forkv:`⫙`,fpartint:`⨍`,frac12:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`,frown:`⌢`,fscr:`𝒻`,gE:`≧`,gEl:`⪌`,gacute:`ǵ`,gamma:`γ`,gammad:`ϝ`,gap:`⪆`,gbreve:`ğ`,gcirc:`ĝ`,gcy:`г`,gdot:`ġ`,ge:`≥`,gel:`⋛`,geq:`≥`,geqq:`≧`,geqslant:`⩾`,ges:`⩾`,gescc:`⪩`,gesdot:`⪀`,gesdoto:`⪂`,gesdotol:`⪄`,gesl:`⋛︀`,gesles:`⪔`,gfr:`𝔤`,gg:`≫`,ggg:`⋙`,gimel:`ℷ`,gjcy:`ѓ`,gl:`≷`,glE:`⪒`,gla:`⪥`,glj:`⪤`,gnE:`≩`,gnap:`⪊`,gnapprox:`⪊`,gne:`⪈`,gneq:`⪈`,gneqq:`≩`,gnsim:`⋧`,gopf:`𝕘`,grave:"`",gscr:`ℊ`,gsim:`≳`,gsime:`⪎`,gsiml:`⪐`,gt:`>`,gtcc:`⪧`,gtcir:`⩺`,gtdot:`⋗`,gtlPar:`⦕`,gtquest:`⩼`,gtrapprox:`⪆`,gtrarr:`⥸`,gtrdot:`⋗`,gtreqless:`⋛`,gtreqqless:`⪌`,gtrless:`≷`,gtrsim:`≳`,gvertneqq:`≩︀`,gvnE:`≩︀`,hArr:`⇔`,hairsp:` `,half:`½`,hamilt:`ℋ`,hardcy:`ъ`,harr:`↔`,harrcir:`⥈`,harrw:`↭`,hbar:`ℏ`,hcirc:`ĥ`,hearts:`♥`,heartsuit:`♥`,hellip:`…`,hercon:`⊹`,hfr:`𝔥`,hksearow:`⤥`,hkswarow:`⤦`,hoarr:`⇿`,homtht:`∻`,hookleftarrow:`↩`,hookrightarrow:`↪`,hopf:`𝕙`,horbar:`―`,hscr:`𝒽`,hslash:`ℏ`,hstrok:`ħ`,hybull:`⁃`,hyphen:`‐`,iacute:`í`,ic:``,icirc:`î`,icy:`и`,iecy:`е`,iexcl:`¡`,iff:`⇔`,ifr:`𝔦`,igrave:`ì`,ii:`ⅈ`,iiiint:`⨌`,iiint:`∭`,iinfin:`⧜`,iiota:`℩`,ijlig:`ij`,imacr:`ī`,image:`ℑ`,imagline:`ℐ`,imagpart:`ℑ`,imath:`ı`,imof:`⊷`,imped:`Ƶ`,in:`∈`,incare:`℅`,infin:`∞`,infintie:`⧝`,inodot:`ı`,int:`∫`,intcal:`⊺`,integers:`ℤ`,intercal:`⊺`,intlarhk:`⨗`,intprod:`⨼`,iocy:`ё`,iogon:`į`,iopf:`𝕚`,iota:`ι`,iprod:`⨼`,iquest:`¿`,iscr:`𝒾`,isin:`∈`,isinE:`⋹`,isindot:`⋵`,isins:`⋴`,isinsv:`⋳`,isinv:`∈`,it:``,itilde:`ĩ`,iukcy:`і`,iuml:`ï`,jcirc:`ĵ`,jcy:`й`,jfr:`𝔧`,jmath:`ȷ`,jopf:`𝕛`,jscr:`𝒿`,jsercy:`ј`,jukcy:`є`,kappa:`κ`,kappav:`ϰ`,kcedil:`ķ`,kcy:`к`,kfr:`𝔨`,kgreen:`ĸ`,khcy:`х`,kjcy:`ќ`,kopf:`𝕜`,kscr:`𝓀`,lAarr:`⇚`,lArr:`⇐`,lAtail:`⤛`,lBarr:`⤎`,lE:`≦`,lEg:`⪋`,lHar:`⥢`,lacute:`ĺ`,laemptyv:`⦴`,lagran:`ℒ`,lambda:`λ`,lang:`⟨`,langd:`⦑`,langle:`⟨`,lap:`⪅`,laquo:`«`,larr:`←`,larrb:`⇤`,larrbfs:`⤟`,larrfs:`⤝`,larrhk:`↩`,larrlp:`↫`,larrpl:`⤹`,larrsim:`⥳`,larrtl:`↢`,lat:`⪫`,latail:`⤙`,late:`⪭`,lates:`⪭︀`,lbarr:`⤌`,lbbrk:`❲`,lbrace:`{`,lbrack:`[`,lbrke:`⦋`,lbrksld:`⦏`,lbrkslu:`⦍`,lcaron:`ľ`,lcedil:`ļ`,lceil:`⌈`,lcub:`{`,lcy:`л`,ldca:`⤶`,ldquo:`“`,ldquor:`„`,ldrdhar:`⥧`,ldrushar:`⥋`,ldsh:`↲`,le:`≤`,leftarrow:`←`,leftarrowtail:`↢`,leftharpoondown:`↽`,leftharpoonup:`↼`,leftleftarrows:`⇇`,leftrightarrow:`↔`,leftrightarrows:`⇆`,leftrightharpoons:`⇋`,leftrightsquigarrow:`↭`,leftthreetimes:`⋋`,leg:`⋚`,leq:`≤`,leqq:`≦`,leqslant:`⩽`,les:`⩽`,lescc:`⪨`,lesdot:`⩿`,lesdoto:`⪁`,lesdotor:`⪃`,lesg:`⋚︀`,lesges:`⪓`,lessapprox:`⪅`,lessdot:`⋖`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,lessgtr:`≶`,lesssim:`≲`,lfisht:`⥼`,lfloor:`⌊`,lfr:`𝔩`,lg:`≶`,lgE:`⪑`,lhard:`↽`,lharu:`↼`,lharul:`⥪`,lhblk:`▄`,ljcy:`љ`,ll:`≪`,llarr:`⇇`,llcorner:`⌞`,llhard:`⥫`,lltri:`◺`,lmidot:`ŀ`,lmoust:`⎰`,lmoustache:`⎰`,lnE:`≨`,lnap:`⪉`,lnapprox:`⪉`,lne:`⪇`,lneq:`⪇`,lneqq:`≨`,lnsim:`⋦`,loang:`⟬`,loarr:`⇽`,lobrk:`⟦`,longleftarrow:`⟵`,longleftrightarrow:`⟷`,longmapsto:`⟼`,longrightarrow:`⟶`,looparrowleft:`↫`,looparrowright:`↬`,lopar:`⦅`,lopf:`𝕝`,loplus:`⨭`,lotimes:`⨴`,lowast:`∗`,lowbar:`_`,loz:`◊`,lozenge:`◊`,lozf:`⧫`,lpar:`(`,lparlt:`⦓`,lrarr:`⇆`,lrcorner:`⌟`,lrhar:`⇋`,lrhard:`⥭`,lrm:``,lrtri:`⊿`,lsaquo:`‹`,lscr:`𝓁`,lsh:`↰`,lsim:`≲`,lsime:`⪍`,lsimg:`⪏`,lsqb:`[`,lsquo:`‘`,lsquor:`‚`,lstrok:`ł`,lt:`<`,ltcc:`⪦`,ltcir:`⩹`,ltdot:`⋖`,lthree:`⋋`,ltimes:`⋉`,ltlarr:`⥶`,ltquest:`⩻`,ltrPar:`⦖`,ltri:`◃`,ltrie:`⊴`,ltrif:`◂`,lurdshar:`⥊`,luruhar:`⥦`,lvertneqq:`≨︀`,lvnE:`≨︀`,mDDot:`∺`,macr:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,mapstoleft:`↤`,mapstoup:`↥`,marker:`▮`,mcomma:`⨩`,mcy:`м`,mdash:`—`,measuredangle:`∡`,mfr:`𝔪`,mho:`℧`,micro:`µ`,mid:`∣`,midast:`*`,midcir:`⫰`,middot:`·`,minus:`−`,minusb:`⊟`,minusd:`∸`,minusdu:`⨪`,mlcp:`⫛`,mldr:`…`,mnplus:`∓`,models:`⊧`,mopf:`𝕞`,mp:`∓`,mscr:`𝓂`,mstpos:`∾`,mu:`μ`,multimap:`⊸`,mumap:`⊸`,nGg:`⋙̸`,nGt:`≫⃒`,nGtv:`≫̸`,nLeftarrow:`⇍`,nLeftrightarrow:`⇎`,nLl:`⋘̸`,nLt:`≪⃒`,nLtv:`≪̸`,nRightarrow:`⇏`,nVDash:`⊯`,nVdash:`⊮`,nabla:`∇`,nacute:`ń`,nang:`∠⃒`,nap:`≉`,napE:`⩰̸`,napid:`≋̸`,napos:`ʼn`,napprox:`≉`,natur:`♮`,natural:`♮`,naturals:`ℕ`,nbsp:`\xA0`,nbump:`≎̸`,nbumpe:`≏̸`,ncap:`⩃`,ncaron:`ň`,ncedil:`ņ`,ncong:`≇`,ncongdot:`⩭̸`,ncup:`⩂`,ncy:`н`,ndash:`–`,ne:`≠`,neArr:`⇗`,nearhk:`⤤`,nearr:`↗`,nearrow:`↗`,nedot:`≐̸`,nequiv:`≢`,nesear:`⤨`,nesim:`≂̸`,nexist:`∄`,nexists:`∄`,nfr:`𝔫`,ngE:`≧̸`,nge:`≱`,ngeq:`≱`,ngeqq:`≧̸`,ngeqslant:`⩾̸`,nges:`⩾̸`,ngsim:`≵`,ngt:`≯`,ngtr:`≯`,nhArr:`⇎`,nharr:`↮`,nhpar:`⫲`,ni:`∋`,nis:`⋼`,nisd:`⋺`,niv:`∋`,njcy:`њ`,nlArr:`⇍`,nlE:`≦̸`,nlarr:`↚`,nldr:`‥`,nle:`≰`,nleftarrow:`↚`,nleftrightarrow:`↮`,nleq:`≰`,nleqq:`≦̸`,nleqslant:`⩽̸`,nles:`⩽̸`,nless:`≮`,nlsim:`≴`,nlt:`≮`,nltri:`⋪`,nltrie:`⋬`,nmid:`∤`,nopf:`𝕟`,not:`¬`,notin:`∉`,notinE:`⋹̸`,notindot:`⋵̸`,notinva:`∉`,notinvb:`⋷`,notinvc:`⋶`,notni:`∌`,notniva:`∌`,notnivb:`⋾`,notnivc:`⋽`,npar:`∦`,nparallel:`∦`,nparsl:`⫽⃥`,npart:`∂̸`,npolint:`⨔`,npr:`⊀`,nprcue:`⋠`,npre:`⪯̸`,nprec:`⊀`,npreceq:`⪯̸`,nrArr:`⇏`,nrarr:`↛`,nrarrc:`⤳̸`,nrarrw:`↝̸`,nrightarrow:`↛`,nrtri:`⋫`,nrtrie:`⋭`,nsc:`⊁`,nsccue:`⋡`,nsce:`⪰̸`,nscr:`𝓃`,nshortmid:`∤`,nshortparallel:`∦`,nsim:`≁`,nsime:`≄`,nsimeq:`≄`,nsmid:`∤`,nspar:`∦`,nsqsube:`⋢`,nsqsupe:`⋣`,nsub:`⊄`,nsubE:`⫅̸`,nsube:`⊈`,nsubset:`⊂⃒`,nsubseteq:`⊈`,nsubseteqq:`⫅̸`,nsucc:`⊁`,nsucceq:`⪰̸`,nsup:`⊅`,nsupE:`⫆̸`,nsupe:`⊉`,nsupset:`⊃⃒`,nsupseteq:`⊉`,nsupseteqq:`⫆̸`,ntgl:`≹`,ntilde:`ñ`,ntlg:`≸`,ntriangleleft:`⋪`,ntrianglelefteq:`⋬`,ntriangleright:`⋫`,ntrianglerighteq:`⋭`,nu:`ν`,num:`#`,numero:`№`,numsp:` `,nvDash:`⊭`,nvHarr:`⤄`,nvap:`≍⃒`,nvdash:`⊬`,nvge:`≥⃒`,nvgt:`>⃒`,nvinfin:`⧞`,nvlArr:`⤂`,nvle:`≤⃒`,nvlt:`<⃒`,nvltrie:`⊴⃒`,nvrArr:`⤃`,nvrtrie:`⊵⃒`,nvsim:`∼⃒`,nwArr:`⇖`,nwarhk:`⤣`,nwarr:`↖`,nwarrow:`↖`,nwnear:`⤧`,oS:`Ⓢ`,oacute:`ó`,oast:`⊛`,ocir:`⊚`,ocirc:`ô`,ocy:`о`,odash:`⊝`,odblac:`ő`,odiv:`⨸`,odot:`⊙`,odsold:`⦼`,oelig:`œ`,ofcir:`⦿`,ofr:`𝔬`,ogon:`˛`,ograve:`ò`,ogt:`⧁`,ohbar:`⦵`,ohm:`Ω`,oint:`∮`,olarr:`↺`,olcir:`⦾`,olcross:`⦻`,oline:`‾`,olt:`⧀`,omacr:`ō`,omega:`ω`,omicron:`ο`,omid:`⦶`,ominus:`⊖`,oopf:`𝕠`,opar:`⦷`,operp:`⦹`,oplus:`⊕`,or:`∨`,orarr:`↻`,ord:`⩝`,order:`ℴ`,orderof:`ℴ`,ordf:`ª`,ordm:`º`,origof:`⊶`,oror:`⩖`,orslope:`⩗`,orv:`⩛`,oscr:`ℴ`,oslash:`ø`,osol:`⊘`,otilde:`õ`,otimes:`⊗`,otimesas:`⨶`,ouml:`ö`,ovbar:`⌽`,par:`∥`,para:`¶`,parallel:`∥`,parsim:`⫳`,parsl:`⫽`,part:`∂`,pcy:`п`,percnt:`%`,period:`.`,permil:`‰`,perp:`⊥`,pertenk:`‱`,pfr:`𝔭`,phi:`φ`,phiv:`ϕ`,phmmat:`ℳ`,phone:`☎`,pi:`π`,pitchfork:`⋔`,piv:`ϖ`,planck:`ℏ`,planckh:`ℎ`,plankv:`ℏ`,plus:`+`,plusacir:`⨣`,plusb:`⊞`,pluscir:`⨢`,plusdo:`∔`,plusdu:`⨥`,pluse:`⩲`,plusmn:`±`,plussim:`⨦`,plustwo:`⨧`,pm:`±`,pointint:`⨕`,popf:`𝕡`,pound:`£`,pr:`≺`,prE:`⪳`,prap:`⪷`,prcue:`≼`,pre:`⪯`,prec:`≺`,precapprox:`⪷`,preccurlyeq:`≼`,preceq:`⪯`,precnapprox:`⪹`,precneqq:`⪵`,precnsim:`⋨`,precsim:`≾`,prime:`′`,primes:`ℙ`,prnE:`⪵`,prnap:`⪹`,prnsim:`⋨`,prod:`∏`,profalar:`⌮`,profline:`⌒`,profsurf:`⌓`,prop:`∝`,propto:`∝`,prsim:`≾`,prurel:`⊰`,pscr:`𝓅`,psi:`ψ`,puncsp:` `,qfr:`𝔮`,qint:`⨌`,qopf:`𝕢`,qprime:`⁗`,qscr:`𝓆`,quaternions:`ℍ`,quatint:`⨖`,quest:`?`,questeq:`≟`,quot:`"`,rAarr:`⇛`,rArr:`⇒`,rAtail:`⤜`,rBarr:`⤏`,rHar:`⥤`,race:`∽̱`,racute:`ŕ`,radic:`√`,raemptyv:`⦳`,rang:`⟩`,rangd:`⦒`,range:`⦥`,rangle:`⟩`,raquo:`»`,rarr:`→`,rarrap:`⥵`,rarrb:`⇥`,rarrbfs:`⤠`,rarrc:`⤳`,rarrfs:`⤞`,rarrhk:`↪`,rarrlp:`↬`,rarrpl:`⥅`,rarrsim:`⥴`,rarrtl:`↣`,rarrw:`↝`,ratail:`⤚`,ratio:`∶`,rationals:`ℚ`,rbarr:`⤍`,rbbrk:`❳`,rbrace:`}`,rbrack:`]`,rbrke:`⦌`,rbrksld:`⦎`,rbrkslu:`⦐`,rcaron:`ř`,rcedil:`ŗ`,rceil:`⌉`,rcub:`}`,rcy:`р`,rdca:`⤷`,rdldhar:`⥩`,rdquo:`”`,rdquor:`”`,rdsh:`↳`,real:`ℜ`,realine:`ℛ`,realpart:`ℜ`,reals:`ℝ`,rect:`▭`,reg:`®`,rfisht:`⥽`,rfloor:`⌋`,rfr:`𝔯`,rhard:`⇁`,rharu:`⇀`,rharul:`⥬`,rho:`ρ`,rhov:`ϱ`,rightarrow:`→`,rightarrowtail:`↣`,rightharpoondown:`⇁`,rightharpoonup:`⇀`,rightleftarrows:`⇄`,rightleftharpoons:`⇌`,rightrightarrows:`⇉`,rightsquigarrow:`↝`,rightthreetimes:`⋌`,ring:`˚`,risingdotseq:`≓`,rlarr:`⇄`,rlhar:`⇌`,rlm:``,rmoust:`⎱`,rmoustache:`⎱`,rnmid:`⫮`,roang:`⟭`,roarr:`⇾`,robrk:`⟧`,ropar:`⦆`,ropf:`𝕣`,roplus:`⨮`,rotimes:`⨵`,rpar:`)`,rpargt:`⦔`,rppolint:`⨒`,rrarr:`⇉`,rsaquo:`›`,rscr:`𝓇`,rsh:`↱`,rsqb:`]`,rsquo:`’`,rsquor:`’`,rthree:`⋌`,rtimes:`⋊`,rtri:`▹`,rtrie:`⊵`,rtrif:`▸`,rtriltri:`⧎`,ruluhar:`⥨`,rx:`℞`,sacute:`ś`,sbquo:`‚`,sc:`≻`,scE:`⪴`,scap:`⪸`,scaron:`š`,sccue:`≽`,sce:`⪰`,scedil:`ş`,scirc:`ŝ`,scnE:`⪶`,scnap:`⪺`,scnsim:`⋩`,scpolint:`⨓`,scsim:`≿`,scy:`с`,sdot:`⋅`,sdotb:`⊡`,sdote:`⩦`,seArr:`⇘`,searhk:`⤥`,searr:`↘`,searrow:`↘`,sect:`§`,semi:`;`,seswar:`⤩`,setminus:`∖`,setmn:`∖`,sext:`✶`,sfr:`𝔰`,sfrown:`⌢`,sharp:`♯`,shchcy:`щ`,shcy:`ш`,shortmid:`∣`,shortparallel:`∥`,shy:``,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,sim:`∼`,simdot:`⩪`,sime:`≃`,simeq:`≃`,simg:`⪞`,simgE:`⪠`,siml:`⪝`,simlE:`⪟`,simne:`≆`,simplus:`⨤`,simrarr:`⥲`,slarr:`←`,smallsetminus:`∖`,smashp:`⨳`,smeparsl:`⧤`,smid:`∣`,smile:`⌣`,smt:`⪪`,smte:`⪬`,smtes:`⪬︀`,softcy:`ь`,sol:`/`,solb:`⧄`,solbar:`⌿`,sopf:`𝕤`,spades:`♠`,spadesuit:`♠`,spar:`∥`,sqcap:`⊓`,sqcaps:`⊓︀`,sqcup:`⊔`,sqcups:`⊔︀`,sqsub:`⊏`,sqsube:`⊑`,sqsubset:`⊏`,sqsubseteq:`⊑`,sqsup:`⊐`,sqsupe:`⊒`,sqsupset:`⊐`,sqsupseteq:`⊒`,squ:`□`,square:`□`,squarf:`▪`,squf:`▪`,srarr:`→`,sscr:`𝓈`,ssetmn:`∖`,ssmile:`⌣`,sstarf:`⋆`,star:`☆`,starf:`★`,straightepsilon:`ϵ`,straightphi:`ϕ`,strns:`¯`,sub:`⊂`,subE:`⫅`,subdot:`⪽`,sube:`⊆`,subedot:`⫃`,submult:`⫁`,subnE:`⫋`,subne:`⊊`,subplus:`⪿`,subrarr:`⥹`,subset:`⊂`,subseteq:`⊆`,subseteqq:`⫅`,subsetneq:`⊊`,subsetneqq:`⫋`,subsim:`⫇`,subsub:`⫕`,subsup:`⫓`,succ:`≻`,succapprox:`⪸`,succcurlyeq:`≽`,succeq:`⪰`,succnapprox:`⪺`,succneqq:`⪶`,succnsim:`⋩`,succsim:`≿`,sum:`∑`,sung:`♪`,sup1:`¹`,sup2:`²`,sup3:`³`,sup:`⊃`,supE:`⫆`,supdot:`⪾`,supdsub:`⫘`,supe:`⊇`,supedot:`⫄`,suphsol:`⟉`,suphsub:`⫗`,suplarr:`⥻`,supmult:`⫂`,supnE:`⫌`,supne:`⊋`,supplus:`⫀`,supset:`⊃`,supseteq:`⊇`,supseteqq:`⫆`,supsetneq:`⊋`,supsetneqq:`⫌`,supsim:`⫈`,supsub:`⫔`,supsup:`⫖`,swArr:`⇙`,swarhk:`⤦`,swarr:`↙`,swarrow:`↙`,swnwar:`⤪`,szlig:`ß`,target:`⌖`,tau:`τ`,tbrk:`⎴`,tcaron:`ť`,tcedil:`ţ`,tcy:`т`,tdot:`⃛`,telrec:`⌕`,tfr:`𝔱`,there4:`∴`,therefore:`∴`,theta:`θ`,thetasym:`ϑ`,thetav:`ϑ`,thickapprox:`≈`,thicksim:`∼`,thinsp:` `,thkap:`≈`,thksim:`∼`,thorn:`þ`,tilde:`˜`,times:`×`,timesb:`⊠`,timesbar:`⨱`,timesd:`⨰`,tint:`∭`,toea:`⤨`,top:`⊤`,topbot:`⌶`,topcir:`⫱`,topf:`𝕥`,topfork:`⫚`,tosa:`⤩`,tprime:`‴`,trade:`™`,triangle:`▵`,triangledown:`▿`,triangleleft:`◃`,trianglelefteq:`⊴`,triangleq:`≜`,triangleright:`▹`,trianglerighteq:`⊵`,tridot:`◬`,trie:`≜`,triminus:`⨺`,triplus:`⨹`,trisb:`⧍`,tritime:`⨻`,trpezium:`⏢`,tscr:`𝓉`,tscy:`ц`,tshcy:`ћ`,tstrok:`ŧ`,twixt:`≬`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,uArr:`⇑`,uHar:`⥣`,uacute:`ú`,uarr:`↑`,ubrcy:`ў`,ubreve:`ŭ`,ucirc:`û`,ucy:`у`,udarr:`⇅`,udblac:`ű`,udhar:`⥮`,ufisht:`⥾`,ufr:`𝔲`,ugrave:`ù`,uharl:`↿`,uharr:`↾`,uhblk:`▀`,ulcorn:`⌜`,ulcorner:`⌜`,ulcrop:`⌏`,ultri:`◸`,umacr:`ū`,uml:`¨`,uogon:`ų`,uopf:`𝕦`,uparrow:`↑`,updownarrow:`↕`,upharpoonleft:`↿`,upharpoonright:`↾`,uplus:`⊎`,upsi:`υ`,upsih:`ϒ`,upsilon:`υ`,upuparrows:`⇈`,urcorn:`⌝`,urcorner:`⌝`,urcrop:`⌎`,uring:`ů`,urtri:`◹`,uscr:`𝓊`,utdot:`⋰`,utilde:`ũ`,utri:`▵`,utrif:`▴`,uuarr:`⇈`,uuml:`ü`,uwangle:`⦧`,vArr:`⇕`,vBar:`⫨`,vBarv:`⫩`,vDash:`⊨`,vangrt:`⦜`,varepsilon:`ϵ`,varkappa:`ϰ`,varnothing:`∅`,varphi:`ϕ`,varpi:`ϖ`,varpropto:`∝`,varr:`↕`,varrho:`ϱ`,varsigma:`ς`,varsubsetneq:`⊊︀`,varsubsetneqq:`⫋︀`,varsupsetneq:`⊋︀`,varsupsetneqq:`⫌︀`,vartheta:`ϑ`,vartriangleleft:`⊲`,vartriangleright:`⊳`,vcy:`в`,vdash:`⊢`,vee:`∨`,veebar:`⊻`,veeeq:`≚`,vellip:`⋮`,verbar:`|`,vert:`|`,vfr:`𝔳`,vltri:`⊲`,vnsub:`⊂⃒`,vnsup:`⊃⃒`,vopf:`𝕧`,vprop:`∝`,vrtri:`⊳`,vscr:`𝓋`,vsubnE:`⫋︀`,vsubne:`⊊︀`,vsupnE:`⫌︀`,vsupne:`⊋︀`,vzigzag:`⦚`,wcirc:`ŵ`,wedbar:`⩟`,wedge:`∧`,wedgeq:`≙`,weierp:`℘`,wfr:`𝔴`,wopf:`𝕨`,wp:`℘`,wr:`≀`,wreath:`≀`,wscr:`𝓌`,xcap:`⋂`,xcirc:`◯`,xcup:`⋃`,xdtri:`▽`,xfr:`𝔵`,xhArr:`⟺`,xharr:`⟷`,xi:`ξ`,xlArr:`⟸`,xlarr:`⟵`,xmap:`⟼`,xnis:`⋻`,xodot:`⨀`,xopf:`𝕩`,xoplus:`⨁`,xotime:`⨂`,xrArr:`⟹`,xrarr:`⟶`,xscr:`𝓍`,xsqcup:`⨆`,xuplus:`⨄`,xutri:`△`,xvee:`⋁`,xwedge:`⋀`,yacute:`ý`,yacy:`я`,ycirc:`ŷ`,ycy:`ы`,yen:`¥`,yfr:`𝔶`,yicy:`ї`,yopf:`𝕪`,yscr:`𝓎`,yucy:`ю`,yuml:`ÿ`,zacute:`ź`,zcaron:`ž`,zcy:`з`,zdot:`ż`,zeetrf:`ℨ`,zeta:`ζ`,zfr:`𝔷`,zhcy:`ж`,zigrarr:`⇝`,zopf:`𝕫`,zscr:`𝓏`,zwj:``,zwnj:``},E_={}.hasOwnProperty;function D_(e){return E_.call(T_,e)?T_[e]:!1}function O_(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function k_(e,t){return e.length>0?(O_(e,e.length,0,t),e):t}var A_={}.hasOwnProperty;function j_(e){let t={},n=-1;for(;++n<e.length;)M_(t,e[n]);return t}function M_(e,t){let n;for(n in t){let r=(A_.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){A_.call(r,a)||(r[a]=[]);let e=i[a];N_(r[a],Array.isArray(e)?e:e?[e]:[])}}}function N_(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);O_(e,0,0,r)}function P_(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function F_(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var I_=G_(/[A-Za-z]/),L_=G_(/[\dA-Za-z]/),R_=G_(/[#-'*+\--9=?A-Z^-~]/);function z_(e){return e!==null&&(e<32||e===127)}var B_=G_(/\d/),V_=G_(/[\dA-Fa-f]/),H_=G_(/[!-/:-@[-`{-~]/);function Y(e){return e!==null&&e<-2}function X(e){return e!==null&&(e<0||e===32)}function Z(e){return e===-2||e===-1||e===32}var U_=G_(/\p{P}|\p{S}/u),W_=G_(/\s/);function G_(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function K_(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&L_(e.charCodeAt(n+1))&&L_(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=``),i&&(n+=i,i=0)}return t.join(``)+e.slice(r)}function Q(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return Z(r)?(e.enter(n),s(r)):t(r)}function s(r){return Z(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var q_={tokenize:J_};function J_(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Q(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return Y(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var Y_={tokenize:Z_},X_={tokenize:Q_};function Z_(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return O_(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(X_,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(X_,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i=i||t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return Y(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;O_(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Q_(e,t,n){return Q(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function $_(e){if(e===null||X(e)||W_(e))return 1;if(U_(e))return 2}function ev(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var tv={name:`attention`,resolveAll:nv,tokenize:rv};function nv(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};iv(d,-c),iv(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=k_(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=k_(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=k_(l,ev(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=k_(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=k_(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,O_(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function rv(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=$_(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=$_(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function iv(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var av={name:`autolink`,tokenize:ov};function ov(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return I_(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||L_(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||L_(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||z_(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):R_(t)?(e.consume(t),l):n(t)}function u(e){return L_(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||L_(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var sv={partial:!0,tokenize:cv};function cv(e,t,n){return r;function r(t){return Z(t)?Q(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||Y(e)?t(e):n(e)}}var lv={continuation:{tokenize:dv},exit:fv,name:`blockQuote`,tokenize:uv};function uv(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||(e.enter(`blockQuote`,{_container:!0}),n.open=!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return Z(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function dv(e,t,n){let r=this;return i;function i(t){return Z(t)?Q(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(lv,t,n)(r)}}function fv(e){e.exit(`blockQuote`)}var pv={name:`characterEscape`,tokenize:mv};function mv(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return H_(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var hv={name:`characterReference`,tokenize:gv};function gv(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=L_,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=V_,u):(e.enter(`characterReferenceValue`),a=7,o=B_,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===L_&&!D_(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var _v={partial:!0,tokenize:bv},vv={concrete:!0,name:`codeFenced`,tokenize:yv};function yv(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),Z(t)?Q(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||Y(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(_v,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||Y(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):Z(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),Q(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||Y(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||Y(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&Z(t)?Q(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||Y(t)?e.check(_v,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||Y(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),Z(t)?Q(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),Z(t)?Q(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||Y(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function bv(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var xv={name:`codeIndented`,tokenize:Cv},Sv={partial:!0,tokenize:wv};function Cv(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),Q(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):Y(t)?e.attempt(Sv,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||Y(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function wv(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):Y(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):Q(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):Y(e)?i(e):n(e)}}var Tv={name:`codeText`,previous:Dv,resolve:Ev,tokenize:Ov};function Ev(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Dv(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function Ov(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):Y(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||Y(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var kv=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&Av(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),Av(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Av(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);Av(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);Av(this.left,t.reverse())}}};function Av(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function jv(e){let t={},n=-1,r,i,a,o,s,c,l,u=new kv(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,Mv(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(!(o[1].type===`linePrefix`||o[1].type===`listItemIndent`))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return O_(e,0,1/0,u.slice(0)),!l}function Mv(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var Nv={resolve:Fv,tokenize:Iv},Pv={partial:!0,tokenize:Lv};function Fv(e){return jv(e),e}function Iv(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):Y(t)?e.check(Pv,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function Lv(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Q(e,a,`linePrefix`)}function a(i){if(i===null||Y(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function Rv(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||z_(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||Y(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||X(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||z_(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function zv(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):Y(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||Y(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||(c=!Z(t)),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function Bv(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):Y(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Q(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||Y(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function Vv(e,t){let n;return r;function r(i){return Y(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):Z(i)?Q(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var Hv={name:`definition`,tokenize:Wv},Uv={partial:!0,tokenize:Gv};function Wv(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return zv.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=F_(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return X(t)?Vv(e,l)(t):l(t)}function l(t){return Rv(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Uv,d,d)(t)}function d(t){return Z(t)?Q(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||Y(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Gv(e,t,n){return r;function r(t){return X(t)?Vv(e,i)(t):n(t)}function i(t){return Bv(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return Z(t)?Q(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||Y(e)?t(e):n(e)}}var Kv={name:`hardBreakEscape`,tokenize:qv};function qv(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return Y(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Jv={name:`headingAtx`,resolve:Yv,tokenize:Xv};function Yv(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},O_(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function Xv(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||X(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||Y(n)?(e.exit(`atxHeading`),t(n)):Z(n)?Q(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||X(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Zv=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),Qv=[`pre`,`script`,`style`,`textarea`],$v={concrete:!0,name:`htmlFlow`,resolveTo:ny,tokenize:ry},ey={partial:!0,tokenize:ay},ty={partial:!0,tokenize:iy};function ny(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ry(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:ae):I_(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):I_(a)?(e.consume(a),i=4,r.interrupt?t:ae):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:ae):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:D:m):n(i)}function h(t){return I_(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||X(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Qv.includes(l)?(i=1,r.interrupt?t(s):D(s)):Zv.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):D(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||L_(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:D):n(i)}function v(t){return Z(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||I_(t)?(e.consume(t),b):Z(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||L_(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):Z(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):Z(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||Y(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||X(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||Z(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),ee):n(t)}function ee(t){return t===null||Y(t)?D(t):Z(t)?(e.consume(t),ee):n(t)}function D(t){return t===45&&i===2?(e.consume(t),re):t===60&&i===1?(e.consume(t),k):t===62&&i===4?(e.consume(t),oe):t===63&&i===3?(e.consume(t),ae):t===93&&i===5?(e.consume(t),ie):Y(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(ey,se,te)(t)):t===null||Y(t)?(e.exit(`htmlFlowData`),te(t)):(e.consume(t),D)}function te(t){return e.check(ty,O,se)(t)}function O(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),ne}function ne(t){return t===null||Y(t)?te(t):(e.enter(`htmlFlowData`),D(t))}function re(t){return t===45?(e.consume(t),ae):D(t)}function k(t){return t===47?(e.consume(t),o=``,A):D(t)}function A(t){if(t===62){let n=o.toLowerCase();return Qv.includes(n)?(e.consume(t),oe):D(t)}return I_(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),A):D(t)}function ie(t){return t===93?(e.consume(t),ae):D(t)}function ae(t){return t===62?(e.consume(t),oe):t===45&&i===2?(e.consume(t),ae):D(t)}function oe(t){return t===null||Y(t)?(e.exit(`htmlFlowData`),se(t)):(e.consume(t),oe)}function se(n){return e.exit(`htmlFlow`),t(n)}}function iy(e,t,n){let r=this;return i;function i(t){return Y(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function ay(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(sv,t,n)}}var oy={name:`htmlText`,tokenize:sy};function sy(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):I_(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):I_(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):Y(t)?(o=d,k(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?re(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):Y(t)?(o=h,k(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?re(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?re(t):Y(t)?(o=v,k(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):Y(t)?(o=y,k(t)):(e.consume(t),y)}function b(e){return e===62?re(e):y(e)}function x(t){return I_(t)?(e.consume(t),S):n(t)}function S(t){return t===45||L_(t)?(e.consume(t),S):C(t)}function C(t){return Y(t)?(o=C,k(t)):Z(t)?(e.consume(t),C):re(t)}function w(t){return t===45||L_(t)?(e.consume(t),w):t===47||t===62||X(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),re):t===58||t===95||I_(t)?(e.consume(t),E):Y(t)?(o=T,k(t)):Z(t)?(e.consume(t),T):re(t)}function E(t){return t===45||t===46||t===58||t===95||L_(t)?(e.consume(t),E):ee(t)}function ee(t){return t===61?(e.consume(t),D):Y(t)?(o=ee,k(t)):Z(t)?(e.consume(t),ee):T(t)}function D(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,te):Y(t)?(o=D,k(t)):Z(t)?(e.consume(t),D):(e.consume(t),O)}function te(t){return t===i?(e.consume(t),i=void 0,ne):t===null?n(t):Y(t)?(o=te,k(t)):(e.consume(t),te)}function O(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||X(t)?T(t):(e.consume(t),O)}function ne(e){return e===47||e===62||X(e)?T(e):n(e)}function re(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function k(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),A}function A(t){return Z(t)?Q(e,ie,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):ie(t)}function ie(t){return e.enter(`htmlTextData`),o(t)}}var cy={name:`labelEnd`,resolveAll:fy,resolveTo:py,tokenize:my},ly={tokenize:hy},uy={tokenize:gy},dy={tokenize:_y};function fy(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&O_(e,0,e.length,n),e}function py(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=k_(s,e.slice(a+1,a+r+3)),s=k_(s,[[`enter`,u,t]]),s=k_(s,ev(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=k_(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=k_(s,e.slice(o+1)),s=k_(s,[[`exit`,c,t]]),O_(e,a,e.length,s),e}function my(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(F_(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(ly,u,o?u:d)(t):t===91?e.attempt(uy,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(dy,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function hy(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return X(t)?Vv(e,a)(t):a(t)}function a(t){return t===41?u(t):Rv(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return X(t)?Vv(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?Bv(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return X(t)?Vv(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function gy(e,t,n){let r=this;return i;function i(t){return zv.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(F_(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function _y(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var vy={name:`labelStartImage`,resolveAll:cy.resolveAll,tokenize:yy};function yy(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var by={name:`labelStartLink`,resolveAll:cy.resolveAll,tokenize:xy};function xy(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var Sy={name:`lineEnding`,tokenize:Cy};function Cy(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Q(e,t,`linePrefix`)}}var wy={name:`thematicBreak`,tokenize:Ty};function Ty(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||Y(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),Z(t)?Q(e,s,`whitespace`)(t):s(t))}}var Ey={continuation:{tokenize:Ay},exit:My,name:`list`,tokenize:ky},Dy={partial:!0,tokenize:Ny},Oy={partial:!0,tokenize:jy};function ky(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:B_(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(wy,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return B_(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(sv,r.interrupt?n:u,e.attempt(Dy,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return Z(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function Ay(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(sv,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Q(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!Z(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Oy,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Q(e,e.attempt(Ey,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function jy(e,t,n){let r=this;return Q(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function My(e){e.exit(this.containerState.type)}function Ny(e,t,n){let r=this;return Q(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!Z(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var Py={name:`setextUnderline`,resolveTo:Fy,tokenize:Iy};function Fy(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function Iy(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),Z(t)?Q(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||Y(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var Ly={tokenize:Ry};function Ry(e){let t=this,n=e.attempt(sv,r,e.attempt(this.parser.constructs.flowInitial,i,Q(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Nv,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var zy={resolveAll:Uy()},By=Hy(`string`),Vy=Hy(`text`);function Hy(e){return{resolveAll:Uy(e===`text`?Wy:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function Uy(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function Wy(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var Gy=t({attentionMarkers:()=>$y,contentInitial:()=>qy,disable:()=>eb,document:()=>Ky,flow:()=>Yy,flowInitial:()=>Jy,insideSpan:()=>Qy,string:()=>Xy,text:()=>Zy}),Ky={42:Ey,43:Ey,45:Ey,48:Ey,49:Ey,50:Ey,51:Ey,52:Ey,53:Ey,54:Ey,55:Ey,56:Ey,57:Ey,62:lv},qy={91:Hv},Jy={[-2]:xv,[-1]:xv,32:xv},Yy={35:Jv,42:wy,45:[Py,wy],60:$v,61:Py,95:wy,96:vv,126:vv},Xy={38:hv,92:pv},Zy={[-5]:Sy,[-4]:Sy,[-3]:Sy,33:vy,38:hv,42:tv,60:[av,oy],91:by,92:[Kv,pv],93:cy,95:tv,96:Tv},Qy={null:[tv,zy]},$y={null:[42,95]},eb={null:[]};function tb(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=k_(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=ev(a,l.events,l),l.events):[]}function f(e,t){return rb(p(e),t)}function p(e){return nb(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){Y(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&O_(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function nb(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function rb(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
263
263
|
`;break;case-3:o=`\r
|
|
264
|
-
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function Py(e){let t={constructs:s_([xy,...(e||{}).extensions||[]]),content:n(C_),defined:[],document:n(T_),flow:n(py),lazy:{},string:n(gy),text:n(_y)};return t;function n(e){return n;function n(n){return jy(t,e,n)}}}function Fy(e){for(;!sv(e););return e}var Iy=/[\0\t\n\r]/g;function Ly(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&(i.charCodeAt(0)===65279&&u++,n=void 0);u<i.length;){if(Iy.lastIndex=u,c=Iy.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var Ry=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function zy(e){return e.replace(Ry,By)}function By(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return u_(n.slice(t?2:1),t?16:10)}return r_(n)||e}var Vy={}.hasOwnProperty;function Hy(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),Uy(n)(Fy(Py(n).document().write(Ly()(e,t,!0))))}function Uy(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(Ce),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(ye),blockQuote:a(he),characterEscape:T,characterReference:T,codeFenced:a(ge),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(ge,o),codeText:a(_e,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(ve),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(j),hardBreakEscape:a(be),hardBreakTrailing:a(be),htmlFlow:a(xe,o),htmlFlowData:T,htmlText:a(xe,o),htmlTextData:T,image:a(Se),label:o,link:a(Ce),listItem:a(Te),listItemValue:f,listOrdered:a(we,d),listUnordered:a(we),paragraph:a(Ee),reference:ce,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(ye),strong:a(De),thematicBreak:a(ke)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:me,autolinkProtocol:pe,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:ue,characterReferenceMarkerNumeric:ue,characterReferenceValue:de,characterReference:fe,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(ne),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(D),hardBreakTrailing:c(D),htmlFlow:c(te),htmlFlowData:E,htmlText:c(O),htmlTextData:E,image:c(k),label:ie,labelText:A,lineEnding:ee,link:c(re),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:le,resourceDestinationString:ae,resourceTitleString:oe,resource:se,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};Gy(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];Vy.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||qy).call(a,void 0,e[0])}for(r.position={start:Wy(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Wy(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Wy(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||qy).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+hg({start:e.start,end:e.end})+`): it’s not open`);n.position.end=Wy(e.end)}function u(){return Zg(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=d_(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=Oe(),n.position={start:Wy(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Wy(e.end)}function ee(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=Wy(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function D(){this.data.atHardBreak=!0}function te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function O(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ne(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function re(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function k(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function A(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=zy(t),n.identifier=d_(t).toLowerCase()}function ie(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function ae(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function oe(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function se(){this.data.inReference=void 0}function ce(){this.data.referenceType=`collapsed`}function le(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=d_(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function ue(e){this.data.characterReferenceType=e.type}function de(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=u_(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=r_(t);let i=this.stack[this.stack.length-1];i.value+=r}function fe(e){let t=this.stack.pop();t.position.end=Wy(e.end)}function pe(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function me(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function he(){return{type:`blockquote`,children:[]}}function ge(){return{type:`code`,lang:null,meta:null,value:``}}function _e(){return{type:`inlineCode`,value:``}}function ve(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function j(){return{type:`emphasis`,children:[]}}function ye(){return{type:`heading`,depth:0,children:[]}}function be(){return{type:`break`}}function xe(){return{type:`html`,value:``}}function Se(){return{type:`image`,title:null,url:``,alt:null}}function Ce(){return{type:`link`,title:null,url:``,children:[]}}function we(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function Te(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function Ee(){return{type:`paragraph`,children:[]}}function De(){return{type:`strong`,children:[]}}function Oe(){return{type:`text`,value:``}}function ke(){return{type:`thematicBreak`}}}function Wy(e){return{line:e.line,column:e.column,offset:e.offset}}function Gy(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?Gy(e,r):Ky(e,r)}}function Ky(e,t){let n;for(n in t)if(Vy.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function qy(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+hg({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+hg({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+hg({start:t.start,end:t.end})+`) is still open`)}function Jy(e){let t=this;t.parser=n;function n(n){return Hy(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function Yy(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Xy(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
265
|
-
`}]}function
|
|
266
|
-
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function
|
|
264
|
+
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function ib(e){let t={constructs:j_([Gy,...(e||{}).extensions||[]]),content:n(q_),defined:[],document:n(Y_),flow:n(Ly),lazy:{},string:n(By),text:n(Vy)};return t;function n(e){return n;function n(n){return tb(t,e,n)}}}function ab(e){for(;!jv(e););return e}var ob=/[\0\t\n\r]/g;function sb(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&(i.charCodeAt(0)===65279&&u++,n=void 0);u<i.length;){if(ob.lastIndex=u,c=ob.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var cb=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function lb(e){return e.replace(cb,ub)}function ub(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return P_(n.slice(t?2:1),t?16:10)}return D_(n)||e}var db={}.hasOwnProperty;function fb(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),pb(n)(ab(ib(n).document().write(sb()(e,t,!0))))}function pb(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(Ce),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(ye),blockQuote:a(he),characterEscape:T,characterReference:T,codeFenced:a(ge),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(ge,o),codeText:a(_e,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(ve),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(j),hardBreakEscape:a(be),hardBreakTrailing:a(be),htmlFlow:a(xe,o),htmlFlowData:T,htmlText:a(xe,o),htmlTextData:T,image:a(Se),label:o,link:a(Ce),listItem:a(Te),listItemValue:f,listOrdered:a(we,d),listUnordered:a(we),paragraph:a(Ee),reference:ce,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(ye),strong:a(De),thematicBreak:a(ke)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:me,autolinkProtocol:pe,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:ue,characterReferenceMarkerNumeric:ue,characterReferenceValue:de,characterReference:fe,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(ne),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(D),hardBreakTrailing:c(D),htmlFlow:c(te),htmlFlowData:E,htmlText:c(O),htmlTextData:E,image:c(k),label:ie,labelText:A,lineEnding:ee,link:c(re),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:le,resourceDestinationString:ae,resourceTitleString:oe,resource:se,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};hb(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];db.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||_b).call(a,void 0,e[0])}for(r.position={start:mb(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:mb(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:mb(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||_b).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+zg({start:e.start,end:e.end})+`): it’s not open`);n.position.end=mb(e.end)}function u(){return x_(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=F_(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=Oe(),n.position={start:mb(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=mb(e.end)}function ee(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=mb(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function D(){this.data.atHardBreak=!0}function te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function O(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ne(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function re(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function k(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function A(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=lb(t),n.identifier=F_(t).toLowerCase()}function ie(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function ae(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function oe(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function se(){this.data.inReference=void 0}function ce(){this.data.referenceType=`collapsed`}function le(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=F_(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function ue(e){this.data.characterReferenceType=e.type}function de(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=P_(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=D_(t);let i=this.stack[this.stack.length-1];i.value+=r}function fe(e){let t=this.stack.pop();t.position.end=mb(e.end)}function pe(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function me(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function he(){return{type:`blockquote`,children:[]}}function ge(){return{type:`code`,lang:null,meta:null,value:``}}function _e(){return{type:`inlineCode`,value:``}}function ve(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function j(){return{type:`emphasis`,children:[]}}function ye(){return{type:`heading`,depth:0,children:[]}}function be(){return{type:`break`}}function xe(){return{type:`html`,value:``}}function Se(){return{type:`image`,title:null,url:``,alt:null}}function Ce(){return{type:`link`,title:null,url:``,children:[]}}function we(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function Te(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function Ee(){return{type:`paragraph`,children:[]}}function De(){return{type:`strong`,children:[]}}function Oe(){return{type:`text`,value:``}}function ke(){return{type:`thematicBreak`}}}function mb(e){return{line:e.line,column:e.column,offset:e.offset}}function hb(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?hb(e,r):gb(e,r)}}function gb(e,t){let n;for(n in t)if(db.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function _b(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+zg({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+zg({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+zg({start:t.start,end:t.end})+`) is still open`)}function vb(e){let t=this;t.parser=n;function n(n){return fb(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function yb(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function bb(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
265
|
+
`}]}function xb(e,t){let n=t.value?t.value+`
|
|
266
|
+
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function Sb(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Cb(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function wb(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=K_(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function Tb(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Eb(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Db(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function Ob(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Db(e,t);let i={src:K_(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function kb(e,t){let n={src:K_(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Ab(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function jb(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Db(e,t);let i={href:K_(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Mb(e,t){let n={href:K_(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Nb(e,t,n){let r=e.all(t),i=n?Pb(n):Fb(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
267
267
|
`}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
268
|
-
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function
|
|
268
|
+
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function Pb(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=Fb(n[r])}return t}function Fb(e){return e.spread??e.children.length>1}function Ib(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function Lb(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Rb(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function zb(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Bb(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=Ig(t.children[1]),o=Fg(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Vb(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function Hb(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var Ub=9,Wb=32;function Gb(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(Kb(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Kb(t.slice(i),i>0,!1)),a.join(``)}function Kb(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===Ub||t===Wb;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===Ub||t===Wb;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function qb(e,t){let n={type:`text`,value:Gb(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Jb(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var Yb={blockquote:yb,break:bb,code:xb,delete:Sb,emphasis:Cb,footnoteReference:wb,heading:Tb,html:Eb,imageReference:Ob,image:kb,inlineCode:Ab,linkReference:jb,link:Mb,listItem:Nb,list:Ib,paragraph:Lb,root:Rb,strong:zb,table:Bb,tableCell:Hb,tableRow:Vb,text:qb,thematicBreak:Jb,toml:Xb,yaml:Xb,definition:Xb,footnoteDefinition:Xb};function Xb(){}var Zb=typeof self==`object`?self:globalThis,Qb=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new Zb[e](t)},$b=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(Qb(e,t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(Qb(a,o),i)};return r},ex=e=>$b(new Map,e)(0),tx=``,{toString:nx}={},{keys:rx}=Object,ix=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=nx.call(e).slice(8,-1);switch(n){case`Array`:return[1,tx];case`Object`:return[2,tx];case`Date`:return[3,tx];case`RegExp`:return[4,tx];case`Map`:return[5,tx];case`Set`:return[6,tx];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]},ax=([e,t])=>e===0&&(t===`function`||t===`symbol`),ox=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=ix(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of rx(r))(e||!ax(ix(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(ax(ix(n))||ax(ix(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!ax(ix(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},sx=(e,{json:t,lossy:n}={})=>{let r=[];return ox(!(t||n),!!t,new Map,r)(e),r},cx=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?ex(sx(e,t)):structuredClone(e):(e,t)=>ex(sx(e,t));function lx(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function ux(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function dx(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||lx,r=e.options.footnoteBackLabel||ux,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=K_(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...cx(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
|
|
269
269
|
`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
|
|
270
|
-
`}]}}var
|
|
270
|
+
`}]}}var fx=(function(e){if(e==null)return _x;if(typeof e==`function`)return gx(e);if(typeof e==`object`)return Array.isArray(e)?px(e):mx(e);if(typeof e==`string`)return hx(e);throw Error(`Expected function, string, or object as test`)});function px(e){let t=[],n=-1;for(;++n<e.length;)t[n]=fx(e[n]);return gx(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function mx(e){let t=e;return gx(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function hx(e){return gx(t);function t(t){return t&&t.type===e}}function gx(e){return t;function t(t,n,r){return!!(vx(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function _x(){return!0}function vx(e){return typeof e==`object`&&!!e&&`type`in e}function yx(e){return e}var bx=[];function xx(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=fx(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,`name`,{value:`node (`+yx(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=bx,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=Sx(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function Sx(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?bx:[e]}function Cx(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),xx(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var wx={}.hasOwnProperty,Tx={};function Ex(e,t){let n=t||Tx,r=new Map,i=new Map,a={all:s,applyData:Ox,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...Yb,...n.handlers},one:o,options:n,patch:Dx,wrap:Ax};return Cx(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(wx.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=cx(n);return r.children=a.all(e),r}return cx(e)}return(a.options.unknownHandler||kx)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=jx(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=jx(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function Dx(e,t){e.position&&(t.position=Rg(e))}function Ox(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,cx(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function kx(e,t){let n=t.data||{},r=`value`in t&&!(wx.call(n,`hProperties`)||wx.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ax(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
|
|
271
271
|
`});++r<e.length;)r&&n.push({type:`text`,value:`
|
|
272
272
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
|
|
273
|
-
`}),n}function
|
|
274
|
-
`},i)),a}function lx(e,t){return e&&`run`in e?async function(n,r){let i=cx(n,{file:r,...t});await e.run(i,r)}:function(n,r){return cx(n,{file:r,...e||t})}}function ux(e){if(e)throw e}var dx=s(u(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}))(),1);function fx(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function px(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a){r(a);return}for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?mx(s,i)(...o):r(null,...o)}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function mx(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var hx={basename:gx,dirname:_x,extname:vx,join:yx,sep:`/`};function gx(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);Sx(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function _x(e){if(Sx(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function vx(e){Sx(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function yx(...e){let t=-1,n;for(;++t<e.length;)Sx(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:bx(n)}function bx(e){Sx(e);let t=e.codePointAt(0)===47,n=xx(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function xx(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Sx(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var Cx={cwd:wx};function wx(){return`/`}function Tx(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function Ex(e){if(typeof e==`string`)e=new URL(e);else if(!Tx(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return Dx(e)}function Dx(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var Ox=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],kx=class{constructor(e){let t;t=e?Tx(e)?{path:e}:typeof e==`string`||Nx(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:Cx.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Ox.length;){let e=Ox[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)Ox.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?hx.basename(this.path):void 0}set basename(e){jx(e,`basename`),Ax(e,`basename`),this.path=hx.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?hx.dirname(this.path):void 0}set dirname(e){Mx(this.basename,`dirname`),this.path=hx.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?hx.extname(this.path):void 0}set extname(e){if(Ax(e,`extname`),Mx(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=hx.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){Tx(e)&&(e=Ex(e)),jx(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?hx.basename(this.path,this.extname):void 0}set stem(e){jx(e,`stem`),Ax(e,`stem`),this.path=hx.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new yg(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function Ax(e,t){if(e&&e.includes(hx.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+hx.sep+"`")}function jx(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function Mx(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function Nx(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var Px=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),Fx={}.hasOwnProperty,Ix=new class e extends Px{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=px()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,dx.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(zx(`data`,this.frozen),this.namespace[e]=t,this):Fx.call(this.namespace,e)&&this.namespace[e]||void 0:e?(zx(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=Hx(e),n=this.parser||this.Parser;return Lx(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),Lx(`process`,this.parser||this.Parser),Rx(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=Hx(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);Wx(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),Lx(`processSync`,this.parser||this.Parser),Rx(`processSync`,this.compiler||this.Compiler),this.process(e,r),Vx(`processSync`,`process`,t),n;function r(e,r){t=!0,ux(e),n=r}}run(e,t,n){Bx(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=Hx(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),Vx(`runSync`,`run`,n),r;function i(e,t){ux(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=Hx(t),r=this.compiler||this.Compiler;return Rx(`stringify`,r),Bx(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(zx(`use`,this.frozen),e!=null)if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`)if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e);else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,dx.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null)if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];fx(o)&&fx(r)&&(r=(0,dx.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function Lx(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function Rx(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function zx(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Bx(e){if(!fx(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function Vx(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function Hx(e){return Ux(e)?e:new kx(e)}function Ux(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function Wx(e){return typeof e==`string`||Gx(e)}function Gx(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var Kx=[],qx={allowDangerousHtml:!0},Jx=/^(https?|ircs?|mailto|xmpp)$/i,Yx=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function Xx(e){let t=Zx(e),n=Qx(e);return $x(t.runSync(t.parse(n),n),e)}function Zx(e){let t=e.rehypePlugins||Kx,n=e.remarkPlugins||Kx,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...qx}:qx;return Ix().use(Jy).use(n).use(lx,r).use(t)}function Qx(e){let t=e.children||``,n=new kx;return typeof t==`string`?n.value=t:``+t,n}function $x(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||eS;for(let e of Yx)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return $b(e,l),Dg(e,{Fragment:w,components:i,ignoreInvalidStyle:!0,jsx:T,jsxs:E,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in Yg)if(Object.hasOwn(Yg,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=Yg[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function eS(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Jx.test(e.slice(0,t))?e:``}function tS(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function nS(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function rS(e,t,n){let r=Hb((n||{}).ignore||[]),i=iS(t),a=-1;for(;++a<i.length;)Zb(e,`text`,o);function o(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return s(e,t)}function s(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&u.push({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length}}function iS(e){let t=[];if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([aS(e[0]),oS(e[1])])}return t}function aS(e){return typeof e==`string`?new RegExp(nS(e),`g`):e}function oS(e){return typeof e==`function`?e:function(){return e}}var sS=`phrasing`,cS=[`autolink`,`link`,`image`,`label`];function lS(){return{transforms:[_S],enter:{literalAutolink:dS,literalAutolinkEmail:fS,literalAutolinkHttp:fS,literalAutolinkWww:fS},exit:{literalAutolink:gS,literalAutolinkEmail:hS,literalAutolinkHttp:pS,literalAutolinkWww:mS}}}function uS(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:sS,notInConstruct:cS},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:sS,notInConstruct:cS},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:sS,notInConstruct:cS}]}}function dS(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function fS(e){this.config.enter.autolinkProtocol.call(this,e)}function pS(e){this.config.exit.autolinkProtocol.call(this,e)}function mS(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function hS(e){this.config.exit.autolinkEmail.call(this,e)}function gS(e){this.exit(e)}function _S(e){rS(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,vS],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,yS]],{ignore:[`link`,`linkReference`]})}function vS(e,t,n,r,i){let a=``;if(!SS(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!bS(n)))return!1;let o=xS(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function yS(e,t,n,r){return!SS(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function bS(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function xS(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=tS(e,`(`),a=tS(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function SS(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||b_(n)||y_(n))&&(!t||n!==47)}MS.peek=jS;function CS(){this.buffer()}function wS(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function TS(){this.buffer()}function ES(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function DS(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=d_(this.sliceSerialize(e)).toLowerCase(),n.label=t}function OS(e){this.exit(e)}function kS(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=d_(this.sliceSerialize(e)).toLowerCase(),n.label=t}function AS(e){this.exit(e)}function jS(){return`[`}function MS(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function NS(){return{enter:{gfmFootnoteCallString:CS,gfmFootnoteCall:wS,gfmFootnoteDefinitionLabelString:TS,gfmFootnoteDefinition:ES},exit:{gfmFootnoteCallString:DS,gfmFootnoteCall:OS,gfmFootnoteDefinitionLabelString:kS,gfmFootnoteDefinition:AS}}}function PS(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:MS},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
|
|
275
|
-
`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?
|
|
276
|
-
`)}function
|
|
277
|
-
`&&
|
|
278
|
-
`}function
|
|
273
|
+
`}),n}function jx(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Mx(e,t){let n=Ex(e,t),r=n.one(e,void 0),i=dx(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
|
|
274
|
+
`},i)),a}function Nx(e,t){return e&&`run`in e?async function(n,r){let i=Mx(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Mx(n,{file:r,...e||t})}}function Px(e){if(e)throw e}var Fx=s(u(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}))(),1);function Ix(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Lx(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a){r(a);return}for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?Rx(s,i)(...o):r(null,...o)}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function Rx(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var zx={basename:Bx,dirname:Vx,extname:Hx,join:Ux,sep:`/`};function Bx(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);Kx(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Vx(e){if(Kx(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function Hx(e){Kx(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function Ux(...e){let t=-1,n;for(;++t<e.length;)Kx(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:Wx(n)}function Wx(e){Kx(e);let t=e.codePointAt(0)===47,n=Gx(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function Gx(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function Kx(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var qx={cwd:Jx};function Jx(){return`/`}function Yx(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function Xx(e){if(typeof e==`string`)e=new URL(e);else if(!Yx(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return Zx(e)}function Zx(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var Qx=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],$x=class{constructor(e){let t;t=e?Yx(e)?{path:e}:typeof e==`string`||rS(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:qx.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Qx.length;){let e=Qx[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)Qx.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?zx.basename(this.path):void 0}set basename(e){tS(e,`basename`),eS(e,`basename`),this.path=zx.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?zx.dirname(this.path):void 0}set dirname(e){nS(this.basename,`dirname`),this.path=zx.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?zx.extname(this.path):void 0}set extname(e){if(eS(e,`extname`),nS(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=zx.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){Yx(e)&&(e=Xx(e)),tS(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?zx.basename(this.path,this.extname):void 0}set stem(e){tS(e,`stem`),eS(e,`stem`),this.path=zx.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new Ug(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function eS(e,t){if(e&&e.includes(zx.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+zx.sep+"`")}function tS(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function nS(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function rS(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var iS=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),aS={}.hasOwnProperty,oS=new class e extends iS{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Lx()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,Fx.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(lS(`data`,this.frozen),this.namespace[e]=t,this):aS.call(this.namespace,e)&&this.namespace[e]||void 0:e?(lS(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=fS(e),n=this.parser||this.Parser;return sS(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),sS(`process`,this.parser||this.Parser),cS(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=fS(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);mS(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),sS(`processSync`,this.parser||this.Parser),cS(`processSync`,this.compiler||this.Compiler),this.process(e,r),dS(`processSync`,`process`,t),n;function r(e,r){t=!0,Px(e),n=r}}run(e,t,n){uS(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=fS(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),dS(`runSync`,`run`,n),r;function i(e,t){Px(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=fS(t),r=this.compiler||this.Compiler;return cS(`stringify`,r),uS(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(lS(`use`,this.frozen),e!=null)if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`)if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e);else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,Fx.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null)if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];Ix(o)&&Ix(r)&&(r=(0,Fx.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function sS(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function cS(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function lS(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function uS(e){if(!Ix(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function dS(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function fS(e){return pS(e)?e:new $x(e)}function pS(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function mS(e){return typeof e==`string`||hS(e)}function hS(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var gS=[],_S={allowDangerousHtml:!0},vS=/^(https?|ircs?|mailto|xmpp)$/i,yS=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function bS(e){let t=xS(e),n=SS(e);return CS(t.runSync(t.parse(n),n),e)}function xS(e){let t=e.rehypePlugins||gS,n=e.remarkPlugins||gS,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,..._S}:_S;return oS().use(vb).use(n).use(Nx,r).use(t)}function SS(e){let t=e.children||``,n=new $x;return typeof t==`string`?n.value=t:``+t,n}function CS(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||wS;for(let e of yS)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return Cx(e,l),Zg(e,{Fragment:w,components:i,ignoreInvalidStyle:!0,jsx:T,jsxs:E,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in y_)if(Object.hasOwn(y_,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=y_[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function wS(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||vS.test(e.slice(0,t))?e:``}function TS(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function ES(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function DS(e,t,n){let r=fx((n||{}).ignore||[]),i=OS(t),a=-1;for(;++a<i.length;)xx(e,`text`,o);function o(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return s(e,t)}function s(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&u.push({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length}}function OS(e){let t=[];if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([kS(e[0]),AS(e[1])])}return t}function kS(e){return typeof e==`string`?new RegExp(ES(e),`g`):e}function AS(e){return typeof e==`function`?e:function(){return e}}var jS=`phrasing`,MS=[`autolink`,`link`,`image`,`label`];function NS(){return{transforms:[VS],enter:{literalAutolink:FS,literalAutolinkEmail:IS,literalAutolinkHttp:IS,literalAutolinkWww:IS},exit:{literalAutolink:BS,literalAutolinkEmail:zS,literalAutolinkHttp:LS,literalAutolinkWww:RS}}}function PS(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:jS,notInConstruct:MS},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:jS,notInConstruct:MS},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:jS,notInConstruct:MS}]}}function FS(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function IS(e){this.config.enter.autolinkProtocol.call(this,e)}function LS(e){this.config.exit.autolinkProtocol.call(this,e)}function RS(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function zS(e){this.config.exit.autolinkEmail.call(this,e)}function BS(e){this.exit(e)}function VS(e){DS(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,HS],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,US]],{ignore:[`link`,`linkReference`]})}function HS(e,t,n,r,i){let a=``;if(!KS(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!WS(n)))return!1;let o=GS(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function US(e,t,n,r){return!KS(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function WS(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function GS(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=TS(e,`(`),a=TS(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function KS(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||W_(n)||U_(n))&&(!t||n!==47)}nC.peek=tC;function qS(){this.buffer()}function JS(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function YS(){this.buffer()}function XS(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function ZS(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=F_(this.sliceSerialize(e)).toLowerCase(),n.label=t}function QS(e){this.exit(e)}function $S(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=F_(this.sliceSerialize(e)).toLowerCase(),n.label=t}function eC(e){this.exit(e)}function tC(){return`[`}function nC(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function rC(){return{enter:{gfmFootnoteCallString:qS,gfmFootnoteCall:JS,gfmFootnoteDefinitionLabelString:YS,gfmFootnoteDefinition:XS},exit:{gfmFootnoteCallString:ZS,gfmFootnoteCall:QS,gfmFootnoteDefinitionLabelString:$S,gfmFootnoteDefinition:eC}}}function iC(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:nC},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
|
|
275
|
+
`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?oC:aC))),s(),o}}function aC(e,t,n){return t===0?e:oC(e,t,n)}function oC(e,t,n){return(n?``:` `)+e}var sC=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];fC.peek=pC;function cC(){return{canContainEols:[`delete`],enter:{strikethrough:uC},exit:{strikethrough:dC}}}function lC(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:sC}],handlers:{delete:fC}}}function uC(e){this.enter({type:`delete`,children:[]},e)}function dC(e){this.exit(e)}function fC(e,t,n,r){let i=n.createTracker(r),a=n.enter(`strikethrough`),o=i.move(`~~`);return o+=n.containerPhrasing(e,{...i.current(),before:o,after:`~`}),o+=i.move(`~~`),a(),o}function pC(){return`~`}function mC(e){return e.length}function hC(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||mC,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=gC(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=_C(r[d]);else{let e=_C(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding!==!1&&!(n.alignDelimiters===!1&&i===``)&&(n.delimiterStart!==!1||d)&&r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
|
|
276
|
+
`)}function gC(e){return e==null?``:String(e)}function _C(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function vC(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),yC);return i(),o}function yC(e,t,n){return`>`+(n?``:` `)+e}function bC(e,t){return xC(e,t.inConstruct,!0)&&!xC(e,t.notInConstruct,!1)}function xC(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function SC(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
277
|
+
`&&bC(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?``:` `;return`\\
|
|
278
|
+
`}function CC(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function wC(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function TC(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function EC(e,t,n,r){let i=TC(n),a=e.value||``,o=i==="`"?`GraveAccent`:`Tilde`;if(wC(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,DC);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(CC(a,i)+1,3)),l=n.enter(`codeFenced`),u=s.move(c);if(e.lang){let t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${o}`);u+=s.move(` `),u+=s.move(n.safe(e.meta,{before:u,after:`
|
|
279
279
|
`,encode:["`"],...s.current()})),t()}return u+=s.move(`
|
|
280
280
|
`),a&&(u+=s.move(a+`
|
|
281
|
-
`)),u+=s.move(c),l(),u}function
|
|
282
|
-
`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function
|
|
281
|
+
`)),u+=s.move(c),l(),u}function DC(e,t,n){return(n?``:` `)+e}function OC(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function kC(e,t,n,r){let i=OC(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
|
|
282
|
+
`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function AC(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function jC(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function MC(e,t,n){let r=$_(e),i=$_(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}NC.peek=PC;function NC(e,t,n,r){let i=AC(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=MC(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=jC(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=MC(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+jC(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function PC(e,t,n){return n.options.emphasis||`*`}function FC(e,t){let n=!1;return Cx(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&x_(e)&&(t.options.setext||n))}function IC(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(FC(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
|
|
283
283
|
`,after:`
|
|
284
284
|
`});return r(),t(),o+`
|
|
285
285
|
`+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
|
|
286
286
|
`))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
|
|
287
|
-
`,...a.current()});return/^[\t ]/.test(l)&&(l=
|
|
287
|
+
`,...a.current()});return/^[\t ]/.test(l)&&(l=jC(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}LC.peek=RC;function LC(e){return e.value||``}function RC(){return`<`}zC.peek=BC;function zC(e,t,n,r){let i=OC(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function BC(){return`!`}VC.peek=HC;function VC(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function HC(){return`!`}UC.peek=WC;function UC(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e),i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function WC(){return"`"}function GC(e,t){let n=x_(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type===`text`&&(n===e.url||`mailto:`+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}KC.peek=qC;function KC(e,t,n,r){let i=OC(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(GC(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function qC(e,t,n){return GC(e,n)?`<`:`[`}JC.peek=YC;function JC(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function YC(){return`[`}function XC(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function ZC(e){let t=XC(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function QC(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function $C(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function ew(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?QC(n):XC(n),s=e.ordered?o===`.`?`)`:`.`:ZC(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),$C(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function tw(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function nw(e,t,n,r){let i=tw(n),a=n.bulletCurrent||XC(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function rw(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var iw=fx([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function aw(e,t,n,r){return(e.children.some(function(e){return iw(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function ow(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}sw.peek=cw;function sw(e,t,n,r){let i=ow(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=MC(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=jC(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=MC(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+jC(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function cw(e,t,n){return n.options.strong||`*`}function lw(e,t,n,r){return n.safe(e.value,r)}function uw(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function dw(e,t,n){let r=($C(n)+(n.options.ruleSpaces?` `:``)).repeat(uw(n));return n.options.ruleSpaces?r.slice(0,-1):r}var fw={blockquote:vC,break:SC,code:EC,definition:kC,emphasis:NC,hardBreak:SC,heading:IC,html:LC,image:zC,imageReference:VC,inlineCode:UC,link:KC,linkReference:JC,list:ew,listItem:nw,paragraph:rw,root:aw,strong:sw,text:lw,thematicBreak:dw};function pw(){return{enter:{table:mw,tableData:vw,tableHeader:vw,tableRow:gw},exit:{codeText:yw,table:hw,tableData:_w,tableHeader:_w,tableRow:_w}}}function mw(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function hw(e){this.exit(e),this.data.inTable=void 0}function gw(e){this.enter({type:`tableRow`,children:[]},e)}function _w(e){this.exit(e)}function vw(e){this.enter({type:`tableCell`,children:[]},e)}function yw(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,bw));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function bw(e,t){return t===`|`?t:e}function xw(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
|
|
288
288
|
`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
|
|
289
|
-
`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return GS(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=HC.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function QC(){return{exit:{taskListCheckValueChecked:ew,taskListCheckValueUnchecked:ew,paragraph:tw}}}function $C(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:nw}}}function ew(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function tw(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function nw(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=HC.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function rw(){return[lS(),NS(),RS(),UC(),QC()]}function iw(e){return{extensions:[uS(),PS(e),zS(),ZC(e),$C()]}}var aw={tokenize:yw,partial:!0},ow={tokenize:bw,partial:!0},sw={tokenize:xw,partial:!0},cw={tokenize:Sw,partial:!0},lw={tokenize:Cw,partial:!0},uw={name:`wwwAutolink`,tokenize:_w,previous:ww},dw={name:`protocolAutolink`,tokenize:vw,previous:Tw},fw={name:`emailAutolink`,tokenize:gw,previous:Ew},pw={};function mw(){return{text:pw}}for(var hw=48;hw<123;)pw[hw]=fw,hw++,hw===58?hw=65:hw===91&&(hw=97);pw[43]=fw,pw[45]=fw,pw[46]=fw,pw[95]=fw,pw[72]=[fw,dw],pw[104]=[fw,dw],pw[87]=[fw,uw],pw[119]=[fw,uw];function gw(e,t,n){let r=this,i,a;return o;function o(t){return!Dw(t)||!Ew.call(r,r.previous)||Ow(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return Dw(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(lw,u,l)(t):t===45||t===95||p_(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&f_(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function _w(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!ww.call(r,r.previous)||Ow(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(aw,e.attempt(ow,e.attempt(sw,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function vw(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&Tw.call(r,r.previous)&&!Ow(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(f_(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||h_(t)||X(t)||b_(t)||y_(t)?n(t):e.attempt(ow,e.attempt(sw,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function yw(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function bw(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(cw,c,s)(t):t===null||X(t)||b_(t)||t!==45&&y_(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function xw(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(cw,t,a)(o):o===null||X(o)||b_(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function Sw(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||X(o)||b_(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||X(e)||b_(e)?t(e):r(e)}function a(e){return f_(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):f_(t)?(e.consume(t),o):n(t)}}function Cw(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return p_(e)?n(e):t(e)}}function ww(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||X(e)}function Tw(e){return!f_(e)}function Ew(e){return!(e===47||Dw(e))}function Dw(e){return e===43||e===45||e===46||e===95||p_(e)}function Ow(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var kw={tokenize:Lw,partial:!0};function Aw(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:Pw,continuation:{tokenize:Fw},exit:Iw}},text:{91:{name:`gfmFootnoteCall`,tokenize:Nw},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:jw,resolveTo:Mw}}}}function jw(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=d_(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function Mw(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function Nw(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||X(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(d_(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return X(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function Pw(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||X(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=d_(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return X(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),Q(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function Fw(e,t,n){return e.check(L_,t,e.attempt(kw,t,n))}function Iw(e){e.exit(`gfmFootnoteDefinition`)}function Lw(e,t,n){let r=this;return Q(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function Rw(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&i_(o,o.length,0,A_(s,e.slice(r+1,n),t)),i_(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),i_(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=k_(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=k_(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var zw=class{constructor(){this.map=[]}add(e,t,n){Bw(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function Bw(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Vw(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function Hw(){return{flow:{null:{name:`table`,tokenize:Uw,resolveAll:Ww}}}}function Uw(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):Y(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):Z(t)?Q(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||X(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,Z(t)?Q(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return Z(t)?Q(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||Y(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return Z(t)?Q(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||Y(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||Y(n)?(e.exit(`tableRow`),t(n)):Z(n)?Q(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||X(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function Ww(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new zw;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(Kw(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=Gw(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=Gw(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=Gw(f,t,o,i,n,d)):(o[0]=o[1],d=Gw(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&Kw(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=Vw(t.events,n))}return e}function Gw(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},qw(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=qw(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=qw(t.events,n[2]),a=qw(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},qw(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function Kw(e,t,n,r,i){let a=[],o=qw(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function qw(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var Jw={name:`tasklistCheck`,tokenize:Xw};function Yw(){return{text:{91:Jw}}}function Xw(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return X(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return Y(r)?t(r):Z(r)?e.check({tokenize:Zw},t,n)(r):n(r)}}function Zw(e,t,n){return Q(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function Qw(e){return s_([mw(),Aw(),Rw(e),Hw(),Yw()])}var $w={};function eT(e){let t=this,n=e||$w,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Qw(n)),a.push(rw()),o.push(iw(n))}var tT=u((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t;(function(e){e.Root=`root`,e.Text=`text`,e.Directive=`directive`,e.Comment=`comment`,e.Script=`script`,e.Style=`style`,e.Tag=`tag`,e.CDATA=`cdata`,e.Doctype=`doctype`})(t||(t={}));function n(e){return e.type===t.Tag||e.type===t.Script||e.type===t.Style}t.Root,t.Text,t.Directive,t.Comment,t.Script,t.Style,t.Tag,t.CDATA,t.Doctype;var r=class{constructor(){P(this,`parent`,null),P(this,`prev`,null),P(this,`next`,null),P(this,`startIndex`,null),P(this,`endIndex`,null)}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return v(this,e)}},i=class extends r{constructor(e){super(),P(this,`data`,void 0),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},a=class extends i{constructor(...e){super(...e),P(this,`type`,t.Text)}get nodeType(){return 3}},o=class extends i{constructor(...e){super(...e),P(this,`type`,t.Comment)}get nodeType(){return 8}},s=class extends i{constructor(e,n){super(n),P(this,`type`,t.Directive),P(this,`name`,void 0),P(this,`x-name`,void 0),P(this,`x-publicId`,void 0),P(this,`x-systemId`,void 0),this.name=e}get nodeType(){return 1}},c=class extends r{constructor(e){super(),P(this,`children`,void 0),this.children=e}get firstChild(){return this.children[0]??null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},l=class extends c{constructor(...e){super(...e),P(this,`type`,t.CDATA)}get nodeType(){return 4}},u=class extends c{constructor(...e){super(...e),P(this,`type`,t.Root)}get nodeType(){return 9}},d=class extends c{constructor(e,n,r=[],i=e===`script`?t.Script:e===`style`?t.Style:t.Tag){super(r),P(this,`name`,void 0),P(this,`attribs`,void 0),P(this,`type`,void 0),P(this,`namespace`,void 0),P(this,`x-attribsNamespace`,void 0),P(this,`x-attribsPrefix`,void 0),this.name=e,this.attribs=n,this.type=i}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>({name:e,value:this.attribs[e],namespace:this[`x-attribsNamespace`]?.[e],prefix:this[`x-attribsPrefix`]?.[e]}))}};function f(e){return n(e)}function p(e){return e.type===t.CDATA}function m(e){return e.type===t.Text}function h(e){return e.type===t.Comment}function g(e){return e.type===t.Directive}function _(e){return e.type===t.Root}function v(e,t=!1){let n;if(m(e))n=new a(e.data);else if(h(e))n=new o(e.data);else if(f(e)){let r=t?y(e.children):[],i=new d(e.name,{...e.attribs},r);for(let e of r)e.parent=i;e.namespace!=null&&(i.namespace=e.namespace),e[`x-attribsNamespace`]&&(i[`x-attribsNamespace`]={...e[`x-attribsNamespace`]}),e[`x-attribsPrefix`]&&(i[`x-attribsPrefix`]={...e[`x-attribsPrefix`]}),n=i}else if(p(e)){let r=t?y(e.children):[],i=new l(r);for(let e of r)e.parent=i;n=i}else if(_(e)){let r=t?y(e.children):[],i=new u(r);for(let e of r)e.parent=i;e[`x-mode`]&&(i[`x-mode`]=e[`x-mode`]),n=i}else if(g(e)){let t=new s(e.name,e.data);e[`x-name`]!=null&&(t[`x-name`]=e[`x-name`],t[`x-publicId`]=e[`x-publicId`],t[`x-systemId`]=e[`x-systemId`]),n=t}else throw Error(`Not implemented yet: ${e.type}`);return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function y(e){let t=e.map(e=>v(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}var b=`animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.linearGradient.radialGradient.textPath`.split(`.`).reduce(function(e,t){return e[t.toLowerCase()]=t,e},{}),x=`\r`,S=new RegExp(x,`g`),C=`__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_${Date.now().toString()}__`,w=new RegExp(C,`g`);function T(e){return b[e]}function E(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}function ee(e){return e=e.toLowerCase(),T(e)||e}function D(e,t){var n=`<`+t,r=e.toLowerCase().indexOf(n);if(r===-1)return!1;var i=e[r+n.length];return i===`>`||i===` `||i===` `||i===`
|
|
290
|
-
`||i===`\r`||i===`/`}function te(e){return e.replace(S,C)}function O(e){return e.replace(w,x)}function ne(e,t,n){t===void 0&&(t=null);for(var r=[],i,c=0,l=e.length;c<l;c++){var u=e[c];switch(u.nodeType){case 1:var f=ee(u.nodeName);i=new d(f,E(u.attributes)),i.children=ne(f===`template`?u.content.childNodes:u.childNodes,i);break;case 3:i=new a(O(u.nodeValue??``));break;case 8:i=new o(u.nodeValue??``);break;default:continue}var p=r[c-1]??null;p&&(p.next=i),i.parent=t,i.prev=p,i.next=null,r.push(i)}return n&&(i=new s(n.substring(0,n.indexOf(` `)).toLowerCase(),n),i.next=r[0]??null,i.parent=t,r.unshift(i),r[1]&&(r[1].prev=r[0])),r}var re=`html`,k=`head`,A=`body`,ie=/<([a-zA-Z]+[0-9]?)/;function ae(e,t){return t?t.createHTML(e):e}var oe=function(e,t,n){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},se=function(e,t,n){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},ce=typeof window==`object`&&window.DOMParser;if(typeof ce==`function`){var le=new ce,ue=`text/html`;se=function(e,t,n){return t&&(e=`<${t}>${e}</${t}>`),le.parseFromString(e,ue)},oe=se}if(typeof document==`object`&&document.implementation){var de=document.implementation.createHTMLDocument();oe=function(e,t,n){if(t){var r=de.documentElement.querySelector(t);return r&&(r.innerHTML=ae(e,n)),de}return de.documentElement.innerHTML=ae(e,n),de}}var fe=typeof document==`object`&&document.createElement(`template`),pe;fe&&fe.content&&(pe=function(e,t){return fe.innerHTML=ae(e,t),fe.content.childNodes});var me=function(){return document.createDocumentFragment().childNodes};function he(e,t){var n,r;e=te(e);var i=(ie.exec(e)?.[1])?.toLowerCase();switch(i){case re:var a=se(e);if(!D(e,k)){var o=a.querySelector(k);(n=o?.parentNode)==null||n.removeChild(o)}if(!D(e,A)){var o=a.querySelector(A);(r=o?.parentNode)==null||r.removeChild(o)}return a.querySelectorAll(re);case k:case A:var s=oe(e,void 0,t).querySelectorAll(i);return D(e,A)&&D(e,k)?s[0].parentNode?.childNodes??me():s;default:if(pe)return pe(e,t);var o=oe(e,A,t).querySelector(A);return o?.childNodes??me()}}var ge=/<(![a-zA-Z\s]+)>/;function _e(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];var n=ge.exec(e),r=n?n[1]:void 0;return ne(he(e,t?.trustedTypePolicy),null,r)}e.default=_e})),nT=u((e=>{e.SAME=0,e.CAMELCASE=1,e.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":`acceptCharset`,accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:`className`,classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:`htmlFor`,form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":`httpEquiv`,icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":`accentHeight`,accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":`alignmentBaseline`,allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":`arabicForm`,ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":`baselineShift`,baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":`capHeight`,clip:0,clipPath:1,"clip-path":`clipPath`,clipPathUnits:1,clipRule:1,"clip-rule":`clipRule`,color:0,colorInterpolation:1,"color-interpolation":`colorInterpolation`,colorInterpolationFilters:1,"color-interpolation-filters":`colorInterpolationFilters`,colorProfile:1,"color-profile":`colorProfile`,colorRendering:1,"color-rendering":`colorRendering`,contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":`dominantBaseline`,dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":`enableBackground`,end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":`fillOpacity`,fillRule:1,"fill-rule":`fillRule`,filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":`floodOpacity`,floodColor:1,"flood-color":`floodColor`,focusable:0,fontFamily:1,"font-family":`fontFamily`,fontSize:1,"font-size":`fontSize`,fontSizeAdjust:1,"font-size-adjust":`fontSizeAdjust`,fontStretch:1,"font-stretch":`fontStretch`,fontStyle:1,"font-style":`fontStyle`,fontVariant:1,"font-variant":`fontVariant`,fontWeight:1,"font-weight":`fontWeight`,format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":`glyphName`,glyphOrientationHorizontal:1,"glyph-orientation-horizontal":`glyphOrientationHorizontal`,glyphOrientationVertical:1,"glyph-orientation-vertical":`glyphOrientationVertical`,glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":`horizAdvX`,horizOriginX:1,"horiz-origin-x":`horizOriginX`,ideographic:0,imageRendering:1,"image-rendering":`imageRendering`,in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":`letterSpacing`,lightingColor:1,"lighting-color":`lightingColor`,limitingConeAngle:1,local:0,markerEnd:1,"marker-end":`markerEnd`,markerHeight:1,markerMid:1,"marker-mid":`markerMid`,markerStart:1,"marker-start":`markerStart`,markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":`overlinePosition`,overlineThickness:1,"overline-thickness":`overlineThickness`,paintOrder:1,"paint-order":`paintOrder`,panose1:0,"panose-1":`panose1`,pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":`pointerEvents`,points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":`renderingIntent`,repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":`shapeRendering`,slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":`stopColor`,stopOpacity:1,"stop-opacity":`stopOpacity`,strikethroughPosition:1,"strikethrough-position":`strikethroughPosition`,strikethroughThickness:1,"strikethrough-thickness":`strikethroughThickness`,string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":`strokeDasharray`,strokeDashoffset:1,"stroke-dashoffset":`strokeDashoffset`,strokeLinecap:1,"stroke-linecap":`strokeLinecap`,strokeLinejoin:1,"stroke-linejoin":`strokeLinejoin`,strokeMiterlimit:1,"stroke-miterlimit":`strokeMiterlimit`,strokeWidth:1,"stroke-width":`strokeWidth`,strokeOpacity:1,"stroke-opacity":`strokeOpacity`,suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":`textAnchor`,textDecoration:1,"text-decoration":`textDecoration`,textLength:1,textRendering:1,"text-rendering":`textRendering`,to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":`underlinePosition`,underlineThickness:1,"underline-thickness":`underlineThickness`,unicode:0,unicodeBidi:1,"unicode-bidi":`unicodeBidi`,unicodeRange:1,"unicode-range":`unicodeRange`,unitsPerEm:1,"units-per-em":`unitsPerEm`,unselectable:0,vAlphabetic:1,"v-alphabetic":`vAlphabetic`,values:0,vectorEffect:1,"vector-effect":`vectorEffect`,version:0,vertAdvY:1,"vert-adv-y":`vertAdvY`,vertOriginX:1,"vert-origin-x":`vertOriginX`,vertOriginY:1,"vert-origin-y":`vertOriginY`,vHanging:1,"v-hanging":`vHanging`,vIdeographic:1,"v-ideographic":`vIdeographic`,viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":`vMathematical`,vocab:0,widths:0,wordSpacing:1,"word-spacing":`wordSpacing`,writingMode:1,"writing-mode":`writingMode`,x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":`xHeight`,xlinkActuate:1,"xlink:actuate":`xlinkActuate`,xlinkArcrole:1,"xlink:arcrole":`xlinkArcrole`,xlinkHref:1,"xlink:href":`xlinkHref`,xlinkRole:1,"xlink:role":`xlinkRole`,xlinkShow:1,"xlink:show":`xlinkShow`,xlinkTitle:1,"xlink:title":`xlinkTitle`,xlinkType:1,"xlink:type":`xlinkType`,xmlBase:1,"xml:base":`xmlBase`,xmlLang:1,"xml:lang":`xmlLang`,xmlns:0,"xml:space":`xmlSpace`,xmlnsXlink:1,"xmlns:xlink":`xmlnsXlink`,xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}})),rT=u((e=>{var t=0,n=1,r=2,i=3,a=4,o=5,s=6;function c(e){return u.hasOwnProperty(e)?u[e]:null}function l(e,t,n,o,s,c,l){this.acceptsBooleans=t===r||t===i||t===a,this.attributeName=o,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=c,this.removeEmptyString=l}var u={};[`children`,`dangerouslySetInnerHTML`,`defaultValue`,`defaultChecked`,`innerHTML`,`suppressContentEditableWarning`,`suppressHydrationWarning`,`style`].forEach(e=>{u[e]=new l(e,t,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(([e,t])=>{u[e]=new l(e,n,!1,t,null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(e=>{u[e]=new l(e,r,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(e=>{u[e]=new l(e,r,!1,e,null,!1,!1)}),[`allowFullScreen`,`async`,`autoFocus`,`autoPlay`,`controls`,`default`,`defer`,`disabled`,`disablePictureInPicture`,`disableRemotePlayback`,`formNoValidate`,`hidden`,`loop`,`noModule`,`noValidate`,`open`,`playsInline`,`readOnly`,`required`,`reversed`,`scoped`,`seamless`,`itemScope`].forEach(e=>{u[e]=new l(e,i,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(e=>{u[e]=new l(e,i,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(e=>{u[e]=new l(e,a,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(e=>{u[e]=new l(e,s,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(e=>{u[e]=new l(e,o,!1,e.toLowerCase(),null,!1,!1)});var d=/[\-\:]([a-z])/g,f=e=>e[1].toUpperCase();`accent-height.alignment-baseline.arabic-form.baseline-shift.cap-height.clip-path.clip-rule.color-interpolation.color-interpolation-filters.color-profile.color-rendering.dominant-baseline.enable-background.fill-opacity.fill-rule.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.glyph-name.glyph-orientation-horizontal.glyph-orientation-vertical.horiz-adv-x.horiz-origin-x.image-rendering.letter-spacing.lighting-color.marker-end.marker-mid.marker-start.overline-position.overline-thickness.paint-order.panose-1.pointer-events.rendering-intent.shape-rendering.stop-color.stop-opacity.strikethrough-position.strikethrough-thickness.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.text-anchor.text-decoration.text-rendering.underline-position.underline-thickness.unicode-bidi.unicode-range.units-per-em.v-alphabetic.v-hanging.v-ideographic.v-mathematical.vector-effect.vert-adv-y.vert-origin-x.vert-origin-y.word-spacing.writing-mode.xmlns:xlink.x-height`.split(`.`).forEach(e=>{let t=e.replace(d,f);u[t]=new l(t,n,!1,e,null,!1,!1)}),[`xlink:actuate`,`xlink:arcrole`,`xlink:role`,`xlink:show`,`xlink:title`,`xlink:type`].forEach(e=>{let t=e.replace(d,f);u[t]=new l(t,n,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(e=>{let t=e.replace(d,f);u[t]=new l(t,n,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(e=>{u[e]=new l(e,n,!1,e.toLowerCase(),null,!1,!1)});var p=`xlinkHref`;u[p]=new l(`xlinkHref`,n,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(e=>{u[e]=new l(e,n,!1,e.toLowerCase(),null,!0,!0)});var{CAMELCASE:m,SAME:h,possibleStandardNames:g}=nT(),_=RegExp.prototype.test.bind(RegExp(`^(data|aria)-[: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]*$`)),v=Object.keys(g).reduce((e,t)=>{let n=g[t];return n===h?e[t]=t:n===m?e[t.toLowerCase()]=t:e[t]=n,e},{});e.BOOLEAN=i,e.BOOLEANISH_STRING=r,e.NUMERIC=o,e.OVERLOADED_BOOLEAN=a,e.POSITIVE_NUMERIC=s,e.RESERVED=t,e.STRING=n,e.getPropertyInfo=c,e.isCustomAttribute=_,e.possibleStandardNames=v})),iT=u((t=>{var n=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,`__esModule`,{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=o,t.setStyleProp=c;var r=e(`react`),i=n(ug()),a=new Set([`annotation-xml`,`color-profile`,`font-face`,`font-face-src`,`font-face-uri`,`font-face-format`,`font-face-name`,`missing-glyph`]);function o(e,t){return e.includes(`-`)?!a.has(e):!!(t&&typeof t.is==`string`)}var s={reactCompat:!0};function c(e,t){if(typeof e==`string`){if(!e.trim()){t.style={};return}try{t.style=(0,i.default)(e,s)}catch{t.style={}}}}t.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(`.`)[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set([`tr`,`tbody`,`thead`,`tfoot`,`colgroup`,`table`,`head`,`html`,`frameset`]),t.canTextBeChildOfNode=e=>!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name),t.returnFirstArg=e=>e})),aT=u((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=o;var t=rT(),n=iT(),r=[`checked`,`value`],i=[`input`,`select`,`textarea`],a={reset:!0,submit:!0};function o(e={},o){let c={},l=!!(e.type&&a[e.type]);for(let a in e){let u=e[a];if((0,t.isCustomAttribute)(a)){c[a]=u;continue}let d=a.toLowerCase(),f=s(d);if(f){let e=(0,t.getPropertyInfo)(f);switch(r.includes(f)&&i.includes(o)&&!l&&(f=s(`default`+d)),c[f]=u,e?.type){case t.BOOLEAN:c[f]=!0;break;case t.OVERLOADED_BOOLEAN:u===``&&(c[f]=!0);break}continue}n.PRESERVE_CUSTOM_ATTRIBUTES&&(c[a]=u)}return(0,n.setStyleProp)(e.style,c),c}function s(e){return t.possibleStandardNames[e]}}));function oT(e){return e.type===$.Tag||e.type===$.Script||e.type===$.Style}var $,sT=i((()=>{(function(e){e.Root=`root`,e.Text=`text`,e.Directive=`directive`,e.Comment=`comment`,e.Script=`script`,e.Style=`style`,e.Tag=`tag`,e.CDATA=`cdata`,e.Doctype=`doctype`})($||($={})),$.Root,$.Text,$.Directive,$.Comment,$.Script,$.Style,$.Tag,$.CDATA,$.Doctype}));function cT(e){return oT(e)}function lT(e){return e.type===$.CDATA}function uT(e){return e.type===$.Text}function dT(e){return e.type===$.Comment}function fT(e){return e.type===$.Directive}function pT(e){return e.type===$.Root}function mT(e){return Object.hasOwn(e,`children`)}function hT(e,t=!1){let n;if(uT(e))n=new yT(e.data);else if(dT(e))n=new bT(e.data);else if(cT(e)){let r=t?gT(e.children):[],i=new TT(e.name,{...e.attribs},r);for(let e of r)e.parent=i;e.namespace!=null&&(i.namespace=e.namespace),e[`x-attribsNamespace`]&&(i[`x-attribsNamespace`]={...e[`x-attribsNamespace`]}),e[`x-attribsPrefix`]&&(i[`x-attribsPrefix`]={...e[`x-attribsPrefix`]}),n=i}else if(lT(e)){let r=t?gT(e.children):[],i=new CT(r);for(let e of r)e.parent=i;n=i}else if(pT(e)){let r=t?gT(e.children):[],i=new wT(r);for(let e of r)e.parent=i;e[`x-mode`]&&(i[`x-mode`]=e[`x-mode`]),n=i}else if(fT(e)){let t=new xT(e.name,e.data);e[`x-name`]!=null&&(t[`x-name`]=e[`x-name`],t[`x-publicId`]=e[`x-publicId`],t[`x-systemId`]=e[`x-systemId`]),n=t}else throw Error(`Not implemented yet: ${e.type}`);return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function gT(e){let t=e.map(e=>hT(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}var _T,vT,yT,bT,xT,ST,CT,wT,TT,ET=i((()=>{sT(),wt(),_T=class{constructor(){P(this,`parent`,null),P(this,`prev`,null),P(this,`next`,null),P(this,`startIndex`,null),P(this,`endIndex`,null)}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return hT(this,e)}},vT=class extends _T{constructor(e){super(),P(this,`data`,void 0),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},yT=class extends vT{constructor(...e){super(...e),P(this,`type`,$.Text)}get nodeType(){return 3}},bT=class extends vT{constructor(...e){super(...e),P(this,`type`,$.Comment)}get nodeType(){return 8}},xT=class extends vT{constructor(e,t){super(t),P(this,`type`,$.Directive),P(this,`name`,void 0),P(this,`x-name`,void 0),P(this,`x-publicId`,void 0),P(this,`x-systemId`,void 0),this.name=e}get nodeType(){return 1}},ST=class extends _T{constructor(e){super(),P(this,`children`,void 0),this.children=e}get firstChild(){return this.children[0]??null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},CT=class extends ST{constructor(...e){super(...e),P(this,`type`,$.CDATA)}get nodeType(){return 4}},wT=class extends ST{constructor(...e){super(...e),P(this,`type`,$.Root)}get nodeType(){return 9}},TT=class extends ST{constructor(e,t,n=[],r=e===`script`?$.Script:e===`style`?$.Style:$.Tag){super(n),P(this,`name`,void 0),P(this,`attribs`,void 0),P(this,`type`,void 0),P(this,`namespace`,void 0),P(this,`x-attribsNamespace`,void 0),P(this,`x-attribsPrefix`,void 0),this.name=e,this.attribs=t,this.type=r}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>({name:e,value:this.attribs[e],namespace:this[`x-attribsNamespace`]?.[e],prefix:this[`x-attribsPrefix`]?.[e]}))}}})),DT=t({CDATA:()=>CT,Comment:()=>bT,DataNode:()=>vT,Document:()=>wT,DomHandler:()=>kT,Element:()=>TT,Node:()=>_T,NodeWithChildren:()=>ST,ProcessingInstruction:()=>xT,Text:()=>yT,cloneNode:()=>hT,default:()=>kT,hasChildren:()=>mT,isCDATA:()=>lT,isComment:()=>dT,isDirective:()=>fT,isDocument:()=>pT,isTag:()=>cT,isText:()=>uT}),OT,kT,AT=i((()=>{sT(),ET(),wt(),ET(),OT={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},kT=class{constructor(e,t,n){P(this,`dom`,[]),P(this,`root`,new wT(this.dom)),P(this,`callback`,void 0),P(this,`options`,void 0),P(this,`elementCB`,void 0),P(this,`done`,!1),P(this,`tagStack`,[this.root]),P(this,`lastNode`,null),P(this,`parser`,null),typeof t==`function`&&(n=t,t=OT),typeof e==`object`&&(t=e,e=void 0),this.callback=e??null,this.options=t??OT,this.elementCB=n??null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new wT(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;let e=this.tagStack.pop();this.options.withEndIndices&&this.parser&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,t){let n=new TT(e,t,void 0,this.options.xmlMode?$.Tag:void 0);this.addNode(n),this.tagStack.push(n)}ontext(e){let{lastNode:t}=this;if(t&&t.type===$.Text)t.data+=e,this.options.withEndIndices&&this.parser&&(t.endIndex=this.parser.endIndex);else{let t=new yT(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===$.Comment){this.lastNode.data+=e;return}let t=new bT(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){let e=new yT(``),t=new CT([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){let n=new xT(e,t);this.addNode(n)}handleCallback(e){if(typeof this.callback==`function`)this.callback(e,this.dom);else if(e)throw e}addNode(e){let t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&this.parser&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&this.parser&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null}}})),jT=u((t=>{var r=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,`__esModule`,{value:!0}),t.default=l;var i=(AT(),n(DT)),a=e(`react`),o=r(aT()),s=iT(),c={cloneElement:a.cloneElement,createElement:a.createElement,isValidElement:a.isValidElement};function l(e,t={}){let n=[],r=typeof t.replace==`function`,i=t.transform??s.returnFirstArg,{cloneElement:a,createElement:f,isValidElement:p}=t.library??c,m=e.length;u(e);for(let c=0;c<m;c++){let u=e[c];if(r){let e=t.replace?.call(t,u,c);if(p(e)){m>1&&(e=a(e,{key:e.key??c})),n.push(i(e,u,c));continue}}if(u.type===`text`){let e=!u.data.trim().length;if(e&&u.parent&&!(0,s.canTextBeChildOfNode)(u.parent)||t.trim&&e)continue;n.push(i(u.data,u,c));continue}let h=u,g={};d(h)?((0,s.setStyleProp)(h.attribs.style,h.attribs),g=h.attribs):h.attribs&&(g=(0,o.default)(h.attribs,h.name));let _;switch(u.type){case`script`:case`style`:u.children[0]&&(g.dangerouslySetInnerHTML={__html:u.children[0].data});break;case`tag`:u.name===`textarea`&&u.children[0]?g.defaultValue=u.children[0].data:u.children?.length&&(_=l(u.children,t));break;default:continue}m>1&&(g.key=c),n.push(i(f(u.name,g,_),u,c))}return n.length===1?n[0]:n}function u(e){for(let t of e)(t.type===`tag`||t.type===`script`||t.type===`style`)&&(Object.setPrototypeOf(t,i.Element.prototype),u(t.children))}function d(e){return s.PRESERVE_CUSTOM_ATTRIBUTES&&e.type===`tag`&&(0,s.isCustomComponent)(e.name,e.attribs)}})),MT=s(u((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=s;var r=t(tT());e.htmlToDOM=r.default,e.attributesToProps=t(aT()).default;var i=t(jT());e.domToReact=i.default;var a=(AT(),n(DT));Object.defineProperty(e,`Comment`,{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(e,`Element`,{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(e,`ProcessingInstruction`,{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(e,`Text`,{enumerable:!0,get:function(){return a.Text}});var o={lowerCaseAttributeNames:!1};function s(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];let n=Object.assign(Object.assign({},t?.htmlparser2??o),{trustedTypePolicy:t?.trustedTypePolicy});return(0,i.default)((0,r.default)(e,n),t)}}))(),1),NT=MT.default.default||MT.default;function PT({entries:e}){let t=a(`article`),[n,r]=S(!1),i=(e,t)=>{e.preventDefault();let n=e.currentTarget.getRootNode(),r=n instanceof ShadowRoot||n instanceof Document?n:document,i=`querySelector`in r?r.querySelector(`[id="${CSS.escape(t)}"]`):null;if(!i)return;let a=i.closest(`[data-slot='scroll-area-viewport']`);if(!a){let e=i.parentElement;for(;e;){let t=getComputedStyle(e);if(/(auto|scroll|overlay)/.test(t.overflowY)){a=e;break}e=e.parentElement}}if(a){let e=i.getBoundingClientRect(),t=a.getBoundingClientRect();a.scrollTo({top:a.scrollTop+e.top-t.top-16,behavior:`smooth`})}else i.scrollIntoView({behavior:`smooth`,block:`start`})};return E(`nav`,{"aria-label":t(`tableOfContents`),className:c(`wx-toc mt-0 overflow-hidden rounded-xl border border-wx-border bg-wx-bg`,`[&_a]:no-underline [&_a]:text-inherit [&_a:hover]:opacity-100`,`[&_ul]:m-0 [&_ul]:list-none [&_ul]:p-0`,`[&_li]:m-0`),children:[E(`button`,{type:`button`,onClick:()=>r(e=>!e),"aria-expanded":n,className:c(`flex w-full items-center justify-between gap-3 px-4 py-3`,`text-left text-sm font-medium text-wx-fg`,`transition-colors hover:bg-wx-bg-elevated/40`),children:[T(`span`,{children:t(`tableOfContents`)}),T(Wp,{className:c(`h-4 w-4 shrink-0 text-wx-fg-subtle transition-transform duration-200`,n&&`rotate-180`),"aria-hidden":`true`})]}),T(`div`,{className:c(`grid transition-[grid-template-rows] duration-200 ease-out`,n?`grid-rows-[1fr]`:`grid-rows-[0fr]`),"aria-hidden":!n,children:T(`div`,{className:`min-h-0 overflow-hidden`,children:T(`div`,{className:`border-t border-wx-border/70 px-2 py-2`,children:T(`div`,{className:`flex flex-col`,children:e.map(e=>{let t=e.level===2?16:e.level===3?32:0;return T(`button`,{type:`button`,onClick:t=>i(t,e.id),className:c(`flex h-8 items-center truncate rounded-md pr-2 text-left text-sm text-wx-fg`,`transition-colors hover:bg-wx-bg-elevated/50`),style:{paddingLeft:12+t},children:T(`span`,{className:`truncate`,children:e.text})},e.id)})})})})})]})}function FT({summary:e,body:t,defaultOpen:n}){let[r,i]=S(n);return E(`div`,{className:`my-2 overflow-hidden rounded-lg border border-wx-border`,children:[E(`button`,{type:`button`,onClick:()=>i(e=>!e),"aria-expanded":r,className:c(`flex w-full items-center justify-between gap-3 px-4 py-3`,`text-left text-sm font-semibold text-wx-fg`,`transition-colors hover:bg-wx-bg-elevated/50`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-wx-primary/30`),children:[T(`span`,{className:`min-w-0 flex-1`,children:e}),T(Wp,{className:c(`h-4 w-4 shrink-0 text-wx-fg-subtle transition-transform`,r&&`rotate-180`),"aria-hidden":`true`})]}),r&&T(`div`,{className:`border-t border-wx-border px-4 py-3 text-sm leading-relaxed text-wx-fg [&>:first-child]:mt-0 [&>:last-child]:mb-0`,children:t})]})}var IT=(e,t)=>{let n=e.name===`details`,r=e.name===`div`&&e.attribs?.[`data-type`]===`details`;if(!n&&!r)return;let i=r?(e.children??[]).flatMap(e=>e instanceof MT.Element&&e.name===`div`&&!e.attribs?.[`data-type`]?e.children??[]:[e]):e.children??[],a=i.find(e=>e instanceof MT.Element&&e.name===`summary`),o=i.filter(e=>e!==a&&!(e instanceof MT.Element&&e.name===`button`)),s=o.find(e=>e instanceof MT.Element&&e.name===`div`&&(e.attribs?.[`data-type`]===`detailsContent`||e.attribs?.[`data-type`]===`details-content`)),c=s?s.children??[]:o,l=a?(0,MT.domToReact)(a.children,t.options):null,u=T(w,{children:(0,MT.domToReact)(c,t.options)});return T(FT,{defaultOpen:e.attribs?.open!==void 0||e.attribs?.[`data-open`]===`true`,summary:l,body:u})},LT={card:`border-wx-border bg-wx-bg-elevated/60`,callout:`border-wx-primary/30 bg-wx-primary/5`,note:`border-wx-border bg-wx-bg-elevated/60`,tip:`border-wx-success/30 bg-wx-success/5`,warning:`border-wx-warning/30 bg-wx-warning/5`,danger:`border-wx-danger/30 bg-wx-danger/5`},RT=(e,t)=>{let n=LT[e.name];if(n)return T(`div`,{className:`my-4 rounded-wx-md border px-4 py-3 ${n}`,"data-custom-block":e.name,children:(0,MT.domToReact)(e.children??[],t.options)})};function zT(e,t){let n=e.normalize(`NFD`).replace(/[̀-ͯ]/g,``).toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)||`section`,r=n,i=2;for(;t.has(r);)r=`${n}-${i}`,i+=1;return t.add(r),r}function BT(e){let t=``;for(let n of e.children??[])n.type===`text`?t+=n.data??``:n instanceof MT.Element&&(t+=BT(n));return t}var VT=(e,t)=>{if(e.name!==`h1`&&e.name!==`h2`&&e.name!==`h3`)return;let n=Number(e.name.slice(1)),r=BT(e).trim();if(!r)return;let i=zT(r,t.seenIds);return t.entries.push({id:i,text:r,level:n}),h(e.name,{id:i},(0,MT.domToReact)(e.children??[],t.options))},HT=(e,t)=>{if(e.name!==`img`)return;let n=e.attribs??{},r=n[`data-align`]??`center`,i=n.width||n.style?.match(/width:\s*([^;]+)/i)?.[1],a=r===`left`?`0`:`auto`,o=r===`right`?`0`:`auto`,s=n.src??``,c=n.alt??``,l={...i?{width:i}:{},marginLeft:a,marginRight:o,display:`block`};if(t.images&&t.onImageClick){let e=t.images.length;t.images.push({url:s,mimetype:`image/jpeg`,alt:c});let n=t.onImageClick;return T(`button`,{type:`button`,onClick:()=>n(e),className:`my-3 block w-full cursor-zoom-in border-0 bg-transparent p-0`,"aria-label":c||t.openImageLabel,children:T(`img`,{src:s,alt:c,style:l,className:`max-w-full`})})}return T(`img`,{src:s,alt:c,style:l,className:`my-3 max-w-full`})},UT=(e,t)=>{if(e.name!==`a`)return;let n=e.attribs?.href??``;return T(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,onClick:()=>t.onLinkClick?.(n),className:`text-wx-primary underline underline-offset-2 transition-opacity hover:opacity-70`,children:(0,MT.domToReact)(e.children??[],t.options)})},WT=(e,t)=>{if(e.name===`table`)return T(`div`,{className:c(`my-3 overflow-x-auto`,`[scrollbar-width:thin] [scrollbar-color:var(--color-wx-fg-subtle)_transparent]`,`[&::-webkit-scrollbar]:h-2`,`[&::-webkit-scrollbar-track]:bg-transparent`,`[&::-webkit-scrollbar-thumb]:rounded-full`,`[&::-webkit-scrollbar-thumb]:bg-wx-fg-subtle/40`,`[&::-webkit-scrollbar-thumb:hover]:bg-wx-fg-subtle/60`),children:T(`table`,{children:(0,MT.domToReact)(e.children??[],t.options)})})};function GT({tabs:e}){let t=a(`article`),[n,r]=S(0);return e.length===0?null:E(`div`,{className:`my-4`,children:[T(`div`,{role:`tablist`,className:`relative flex items-center gap-1 border-b border-wx-border`,children:e.map((e,i)=>{let a=i===n,o=e.label||t(`tabFallback`,{n:i+1});return E(`button`,{type:`button`,role:`tab`,"aria-selected":a,tabIndex:a?0:-1,onClick:()=>r(i),className:c(`group relative inline-flex items-center justify-center px-3 py-2 text-sm`,`transition-colors focus-visible:outline-none`,a?`font-semibold text-wx-fg`:`font-medium text-wx-fg-muted hover:text-wx-fg`),children:[o,T(`span`,{"aria-hidden":`true`,className:c(`pointer-events-none absolute inset-x-2 bottom-0 h-[2px] origin-left rounded-full bg-wx-primary`,`transition-transform duration-200 ease-out`,a?`scale-x-100`:`scale-x-0`)})]},i)})}),T(`div`,{className:`mt-3 text-sm leading-relaxed text-wx-fg [&>:first-child]:mt-0 [&>:last-child]:mb-0`,children:e[n]?.body})]})}var KT=[VT,(e,t)=>{if(e.name===`div`&&(e.attribs?.[`data-type`]===`tabs`||e.attribs?.[`data-type`]===`tabs`))return T(GT,{tabs:(e.children??[]).filter(e=>e instanceof MT.Element&&e.name===`div`&&e.attribs?.[`data-type`]===`tab`).map(e=>{let n=e.children?.find(e=>e instanceof MT.Element&&e.name===`div`&&`data-tab-label`in(e.attribs??{})),r=(e.children??[]).filter(e=>e!==n);return{label:n?BT(n).trim():``,body:T(w,{children:(0,MT.domToReact)(r,t.options)})}})})},IT,RT,WT,HT,UT];function qT(e,t,n,r,i,a){let o={},s={options:o,entries:e,seenIds:t,images:n,onImageClick:r,onLinkClick:i,openImageLabel:a};return o.replace=e=>{if(e instanceof MT.Element){for(let t of Object.keys(e.attribs))t.startsWith(`data-wx-`)&&delete e.attribs[t];for(let t of KT){let n=t(e,s);if(n!==void 0)return n}}},o}function JT({html:e,className:t,onLinkClick:n}){let[r,i]=S(null),o=a(`messages`)(`openImage`),{trackLinkClick:s}=gh(),c=g(e=>s({url:e,targetType:`EXTERNAL`}),[s]),l=n??c,{parsed:u,entries:d,images:f}=b(()=>{let t=[],n=new Set,r=[];return{parsed:NT(e,qT(t,n,r,i,l,o)),entries:t,images:r}},[e,l,o]);return E(`div`,{className:t,children:[d.length>=3&&T(PT,{entries:d}),u,f.length>0&&T(yh,{items:f,initialIndex:r??0,open:r!==null,onClose:()=>i(null)})]})}function YT(e){return NT(e,qT([],new Set))}var XT=[{value:`en`,label:`English`},{value:`en-US`,label:`English (US)`},{value:`en-GB`,label:`English (UK)`},{value:`uk`,label:`Українська`},{value:`de`,label:`Deutsch`},{value:`es`,label:`Español`},{value:`es-MX`,label:`Español (México)`},{value:`fr`,label:`Français`},{value:`it`,label:`Italiano`},{value:`pt`,label:`Português`},{value:`pt-BR`,label:`Português (Brasil)`},{value:`nl`,label:`Nederlands`},{value:`pl`,label:`Polski`},{value:`tr`,label:`Türkçe`},{value:`cs`,label:`Čeština`},{value:`sk`,label:`Slovenčina`},{value:`ro`,label:`Română`},{value:`hu`,label:`Magyar`},{value:`el`,label:`Ελληνικά`},{value:`sv`,label:`Svenska`},{value:`da`,label:`Dansk`},{value:`no`,label:`Norsk`},{value:`fi`,label:`Suomi`},{value:`ar`,label:`العربية`},{value:`he`,label:`עברית`},{value:`hi`,label:`हिन्दी`},{value:`th`,label:`ไทย`},{value:`vi`,label:`Tiếng Việt`},{value:`id`,label:`Bahasa Indonesia`},{value:`ja`,label:`日本語`},{value:`ko`,label:`한국어`},{value:`zh`,label:`中文(简体)`},{value:`zh-TW`,label:`中文(繁體)`}];function ZT(e){let t=XT.find(t=>t.value===e);if(t)return t.label;let n=e.split(`-`)[0].toLowerCase(),r=XT.find(e=>e.value===n);return r?r.label:n.toUpperCase()}export{Yd as $,ne as $t,Yf as A,Wu as At,Sf as B,bu as Bt,jp as C,rd as Ct,sp as D,qu as Dt,np as E,Zu as Et,Ff as F,Bu as Ft,bf as G,Ol as Gt,wf as H,Ql as Ht,Mf as I,wu as It,hf as J,Ba as Jt,xf as K,ll as Kt,Lf as L,Mu as Lt,qf as M,Iu as Mt,Nf as N,Ru as Nt,op as O,Ku as Ot,jf as P,Vu as Pt,Xd as Q,O as Qt,Rf as R,Su as Rt,Np as S,id as St,rp as T,$u as Tt,kf as U,jl as Ut,Of as V,nu as Vt,Cf as W,Pl as Wt,ef as X,we as Xt,gf as Y,za as Yt,ff as Z,j as Zt,qp as _,Pd as _t,Xx as a,Rd as at,Up as b,cd as bt,gh as c,pd as ct,lh as d,Wd as dt,A as en,qd as et,ym as f,Hd as ft,Zp as g,Md as gt,Qp as h,Id as ht,eT as i,Dd as it,Xf as j,Gu as jt,ep as k,Ju as kt,fh as l,hd as lt,$p as m,Td as mt,JT as n,jd as nt,yh as o,_d as ot,Jp as p,Bd as pt,_f as q,G as qt,YT as r,xd as rt,vh as s,Cd as st,ZT as t,Nd as tt,dh as u,kd as ut,Kp as v,yd as vt,dp as w,td as wt,Pp as x,od as xt,Wp as y,ud as yt,Pf as z,xu as zt};
|
|
291
|
-
//# sourceMappingURL=widget-react-
|
|
289
|
+
`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return hC(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=fw.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function Sw(){return{exit:{taskListCheckValueChecked:ww,taskListCheckValueUnchecked:ww,paragraph:Tw}}}function Cw(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:Ew}}}function ww(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function Tw(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Ew(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=fw.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function Dw(){return[NS(),rC(),cC(),pw(),Sw()]}function Ow(e){return{extensions:[PS(),iC(e),lC(),xw(e),Cw()]}}var kw={tokenize:Uw,partial:!0},Aw={tokenize:Ww,partial:!0},jw={tokenize:Gw,partial:!0},Mw={tokenize:Kw,partial:!0},Nw={tokenize:qw,partial:!0},Pw={name:`wwwAutolink`,tokenize:Vw,previous:Jw},Fw={name:`protocolAutolink`,tokenize:Hw,previous:Yw},Iw={name:`emailAutolink`,tokenize:Bw,previous:Xw},Lw={};function Rw(){return{text:Lw}}for(var zw=48;zw<123;)Lw[zw]=Iw,zw++,zw===58?zw=65:zw===91&&(zw=97);Lw[43]=Iw,Lw[45]=Iw,Lw[46]=Iw,Lw[95]=Iw,Lw[72]=[Iw,Fw],Lw[104]=[Iw,Fw],Lw[87]=[Iw,Pw],Lw[119]=[Iw,Pw];function Bw(e,t,n){let r=this,i,a;return o;function o(t){return!Zw(t)||!Xw.call(r,r.previous)||Qw(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return Zw(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(Nw,u,l)(t):t===45||t===95||L_(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&I_(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function Vw(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!Jw.call(r,r.previous)||Qw(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(kw,e.attempt(Aw,e.attempt(jw,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function Hw(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&Yw.call(r,r.previous)&&!Qw(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(I_(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||z_(t)||X(t)||W_(t)||U_(t)?n(t):e.attempt(Aw,e.attempt(jw,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function Uw(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function Ww(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(Mw,c,s)(t):t===null||X(t)||W_(t)||t!==45&&U_(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function Gw(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Mw,t,a)(o):o===null||X(o)||W_(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function Kw(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||X(o)||W_(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||X(e)||W_(e)?t(e):r(e)}function a(e){return I_(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):I_(t)?(e.consume(t),o):n(t)}}function qw(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return L_(e)?n(e):t(e)}}function Jw(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||X(e)}function Yw(e){return!I_(e)}function Xw(e){return!(e===47||Zw(e))}function Zw(e){return e===43||e===45||e===46||e===95||L_(e)}function Qw(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var $w={tokenize:sT,partial:!0};function eT(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:iT,continuation:{tokenize:aT},exit:oT}},text:{91:{name:`gfmFootnoteCall`,tokenize:rT},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:tT,resolveTo:nT}}}}function tT(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=F_(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function nT(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function rT(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||X(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(F_(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return X(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function iT(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||X(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=F_(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return X(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),Q(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function aT(e,t,n){return e.check(sv,t,e.attempt($w,t,n))}function oT(e){e.exit(`gfmFootnoteDefinition`)}function sT(e,t,n){let r=this;return Q(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function cT(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&O_(o,o.length,0,ev(s,e.slice(r+1,n),t)),O_(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),O_(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=$_(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=$_(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var lT=class{constructor(){this.map=[]}add(e,t,n){uT(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function uT(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function dT(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function fT(){return{flow:{null:{name:`table`,tokenize:pT,resolveAll:mT}}}}function pT(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):Y(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):Z(t)?Q(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||X(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,Z(t)?Q(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return Z(t)?Q(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||Y(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return Z(t)?Q(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||Y(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||Y(n)?(e.exit(`tableRow`),t(n)):Z(n)?Q(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||X(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function mT(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new lT;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(gT(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=hT(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=hT(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=hT(f,t,o,i,n,d)):(o[0]=o[1],d=hT(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&gT(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=dT(t.events,n))}return e}function hT(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},_T(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=_T(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=_T(t.events,n[2]),a=_T(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},_T(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function gT(e,t,n,r,i){let a=[],o=_T(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function _T(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var vT={name:`tasklistCheck`,tokenize:bT};function yT(){return{text:{91:vT}}}function bT(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return X(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return Y(r)?t(r):Z(r)?e.check({tokenize:xT},t,n)(r):n(r)}}function xT(e,t,n){return Q(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function ST(e){return j_([Rw(),eT(),cT(e),fT(),yT()])}var CT={};function wT(e){let t=this,n=e||CT,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(ST(n)),a.push(Dw()),o.push(Ow(n))}var TT=u((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t;(function(e){e.Root=`root`,e.Text=`text`,e.Directive=`directive`,e.Comment=`comment`,e.Script=`script`,e.Style=`style`,e.Tag=`tag`,e.CDATA=`cdata`,e.Doctype=`doctype`})(t||(t={}));function n(e){return e.type===t.Tag||e.type===t.Script||e.type===t.Style}t.Root,t.Text,t.Directive,t.Comment,t.Script,t.Style,t.Tag,t.CDATA,t.Doctype;var r=class{constructor(){P(this,`parent`,null),P(this,`prev`,null),P(this,`next`,null),P(this,`startIndex`,null),P(this,`endIndex`,null)}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return v(this,e)}},i=class extends r{constructor(e){super(),P(this,`data`,void 0),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},a=class extends i{constructor(...e){super(...e),P(this,`type`,t.Text)}get nodeType(){return 3}},o=class extends i{constructor(...e){super(...e),P(this,`type`,t.Comment)}get nodeType(){return 8}},s=class extends i{constructor(e,n){super(n),P(this,`type`,t.Directive),P(this,`name`,void 0),P(this,`x-name`,void 0),P(this,`x-publicId`,void 0),P(this,`x-systemId`,void 0),this.name=e}get nodeType(){return 1}},c=class extends r{constructor(e){super(),P(this,`children`,void 0),this.children=e}get firstChild(){return this.children[0]??null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},l=class extends c{constructor(...e){super(...e),P(this,`type`,t.CDATA)}get nodeType(){return 4}},u=class extends c{constructor(...e){super(...e),P(this,`type`,t.Root)}get nodeType(){return 9}},d=class extends c{constructor(e,n,r=[],i=e===`script`?t.Script:e===`style`?t.Style:t.Tag){super(r),P(this,`name`,void 0),P(this,`attribs`,void 0),P(this,`type`,void 0),P(this,`namespace`,void 0),P(this,`x-attribsNamespace`,void 0),P(this,`x-attribsPrefix`,void 0),this.name=e,this.attribs=n,this.type=i}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>({name:e,value:this.attribs[e],namespace:this[`x-attribsNamespace`]?.[e],prefix:this[`x-attribsPrefix`]?.[e]}))}};function f(e){return n(e)}function p(e){return e.type===t.CDATA}function m(e){return e.type===t.Text}function h(e){return e.type===t.Comment}function g(e){return e.type===t.Directive}function _(e){return e.type===t.Root}function v(e,t=!1){let n;if(m(e))n=new a(e.data);else if(h(e))n=new o(e.data);else if(f(e)){let r=t?y(e.children):[],i=new d(e.name,{...e.attribs},r);for(let e of r)e.parent=i;e.namespace!=null&&(i.namespace=e.namespace),e[`x-attribsNamespace`]&&(i[`x-attribsNamespace`]={...e[`x-attribsNamespace`]}),e[`x-attribsPrefix`]&&(i[`x-attribsPrefix`]={...e[`x-attribsPrefix`]}),n=i}else if(p(e)){let r=t?y(e.children):[],i=new l(r);for(let e of r)e.parent=i;n=i}else if(_(e)){let r=t?y(e.children):[],i=new u(r);for(let e of r)e.parent=i;e[`x-mode`]&&(i[`x-mode`]=e[`x-mode`]),n=i}else if(g(e)){let t=new s(e.name,e.data);e[`x-name`]!=null&&(t[`x-name`]=e[`x-name`],t[`x-publicId`]=e[`x-publicId`],t[`x-systemId`]=e[`x-systemId`]),n=t}else throw Error(`Not implemented yet: ${e.type}`);return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function y(e){let t=e.map(e=>v(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}var b=`animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.linearGradient.radialGradient.textPath`.split(`.`).reduce(function(e,t){return e[t.toLowerCase()]=t,e},{}),x=`\r`,S=new RegExp(x,`g`),C=`__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_${Date.now().toString()}__`,w=new RegExp(C,`g`);function T(e){return b[e]}function E(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}function ee(e){return e=e.toLowerCase(),T(e)||e}function D(e,t){var n=`<`+t,r=e.toLowerCase().indexOf(n);if(r===-1)return!1;var i=e[r+n.length];return i===`>`||i===` `||i===` `||i===`
|
|
290
|
+
`||i===`\r`||i===`/`}function te(e){return e.replace(S,C)}function O(e){return e.replace(w,x)}function ne(e,t,n){t===void 0&&(t=null);for(var r=[],i,c=0,l=e.length;c<l;c++){var u=e[c];switch(u.nodeType){case 1:var f=ee(u.nodeName);i=new d(f,E(u.attributes)),i.children=ne(f===`template`?u.content.childNodes:u.childNodes,i);break;case 3:i=new a(O(u.nodeValue??``));break;case 8:i=new o(u.nodeValue??``);break;default:continue}var p=r[c-1]??null;p&&(p.next=i),i.parent=t,i.prev=p,i.next=null,r.push(i)}return n&&(i=new s(n.substring(0,n.indexOf(` `)).toLowerCase(),n),i.next=r[0]??null,i.parent=t,r.unshift(i),r[1]&&(r[1].prev=r[0])),r}var re=`html`,k=`head`,A=`body`,ie=/<([a-zA-Z]+[0-9]?)/;function ae(e,t){return t?t.createHTML(e):e}var oe=function(e,t,n){throw Error("This browser does not support `document.implementation.createHTMLDocument`")},se=function(e,t,n){throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},ce=typeof window==`object`&&window.DOMParser;if(typeof ce==`function`){var le=new ce,ue=`text/html`;se=function(e,t,n){return t&&(e=`<${t}>${e}</${t}>`),le.parseFromString(e,ue)},oe=se}if(typeof document==`object`&&document.implementation){var de=document.implementation.createHTMLDocument();oe=function(e,t,n){if(t){var r=de.documentElement.querySelector(t);return r&&(r.innerHTML=ae(e,n)),de}return de.documentElement.innerHTML=ae(e,n),de}}var fe=typeof document==`object`&&document.createElement(`template`),pe;fe&&fe.content&&(pe=function(e,t){return fe.innerHTML=ae(e,t),fe.content.childNodes});var me=function(){return document.createDocumentFragment().childNodes};function he(e,t){var n,r;e=te(e);var i=(ie.exec(e)?.[1])?.toLowerCase();switch(i){case re:var a=se(e);if(!D(e,k)){var o=a.querySelector(k);(n=o?.parentNode)==null||n.removeChild(o)}if(!D(e,A)){var o=a.querySelector(A);(r=o?.parentNode)==null||r.removeChild(o)}return a.querySelectorAll(re);case k:case A:var s=oe(e,void 0,t).querySelectorAll(i);return D(e,A)&&D(e,k)?s[0].parentNode?.childNodes??me():s;default:if(pe)return pe(e,t);var o=oe(e,A,t).querySelector(A);return o?.childNodes??me()}}var ge=/<(![a-zA-Z\s]+)>/;function _e(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];var n=ge.exec(e),r=n?n[1]:void 0;return ne(he(e,t?.trustedTypePolicy),null,r)}e.default=_e})),ET=u((e=>{e.SAME=0,e.CAMELCASE=1,e.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":`acceptCharset`,accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:`className`,classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:`htmlFor`,form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":`httpEquiv`,icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":`accentHeight`,accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":`alignmentBaseline`,allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":`arabicForm`,ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":`baselineShift`,baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":`capHeight`,clip:0,clipPath:1,"clip-path":`clipPath`,clipPathUnits:1,clipRule:1,"clip-rule":`clipRule`,color:0,colorInterpolation:1,"color-interpolation":`colorInterpolation`,colorInterpolationFilters:1,"color-interpolation-filters":`colorInterpolationFilters`,colorProfile:1,"color-profile":`colorProfile`,colorRendering:1,"color-rendering":`colorRendering`,contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":`dominantBaseline`,dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":`enableBackground`,end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":`fillOpacity`,fillRule:1,"fill-rule":`fillRule`,filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":`floodOpacity`,floodColor:1,"flood-color":`floodColor`,focusable:0,fontFamily:1,"font-family":`fontFamily`,fontSize:1,"font-size":`fontSize`,fontSizeAdjust:1,"font-size-adjust":`fontSizeAdjust`,fontStretch:1,"font-stretch":`fontStretch`,fontStyle:1,"font-style":`fontStyle`,fontVariant:1,"font-variant":`fontVariant`,fontWeight:1,"font-weight":`fontWeight`,format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":`glyphName`,glyphOrientationHorizontal:1,"glyph-orientation-horizontal":`glyphOrientationHorizontal`,glyphOrientationVertical:1,"glyph-orientation-vertical":`glyphOrientationVertical`,glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":`horizAdvX`,horizOriginX:1,"horiz-origin-x":`horizOriginX`,ideographic:0,imageRendering:1,"image-rendering":`imageRendering`,in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":`letterSpacing`,lightingColor:1,"lighting-color":`lightingColor`,limitingConeAngle:1,local:0,markerEnd:1,"marker-end":`markerEnd`,markerHeight:1,markerMid:1,"marker-mid":`markerMid`,markerStart:1,"marker-start":`markerStart`,markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":`overlinePosition`,overlineThickness:1,"overline-thickness":`overlineThickness`,paintOrder:1,"paint-order":`paintOrder`,panose1:0,"panose-1":`panose1`,pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":`pointerEvents`,points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":`renderingIntent`,repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":`shapeRendering`,slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":`stopColor`,stopOpacity:1,"stop-opacity":`stopOpacity`,strikethroughPosition:1,"strikethrough-position":`strikethroughPosition`,strikethroughThickness:1,"strikethrough-thickness":`strikethroughThickness`,string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":`strokeDasharray`,strokeDashoffset:1,"stroke-dashoffset":`strokeDashoffset`,strokeLinecap:1,"stroke-linecap":`strokeLinecap`,strokeLinejoin:1,"stroke-linejoin":`strokeLinejoin`,strokeMiterlimit:1,"stroke-miterlimit":`strokeMiterlimit`,strokeWidth:1,"stroke-width":`strokeWidth`,strokeOpacity:1,"stroke-opacity":`strokeOpacity`,suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":`textAnchor`,textDecoration:1,"text-decoration":`textDecoration`,textLength:1,textRendering:1,"text-rendering":`textRendering`,to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":`underlinePosition`,underlineThickness:1,"underline-thickness":`underlineThickness`,unicode:0,unicodeBidi:1,"unicode-bidi":`unicodeBidi`,unicodeRange:1,"unicode-range":`unicodeRange`,unitsPerEm:1,"units-per-em":`unitsPerEm`,unselectable:0,vAlphabetic:1,"v-alphabetic":`vAlphabetic`,values:0,vectorEffect:1,"vector-effect":`vectorEffect`,version:0,vertAdvY:1,"vert-adv-y":`vertAdvY`,vertOriginX:1,"vert-origin-x":`vertOriginX`,vertOriginY:1,"vert-origin-y":`vertOriginY`,vHanging:1,"v-hanging":`vHanging`,vIdeographic:1,"v-ideographic":`vIdeographic`,viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":`vMathematical`,vocab:0,widths:0,wordSpacing:1,"word-spacing":`wordSpacing`,writingMode:1,"writing-mode":`writingMode`,x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":`xHeight`,xlinkActuate:1,"xlink:actuate":`xlinkActuate`,xlinkArcrole:1,"xlink:arcrole":`xlinkArcrole`,xlinkHref:1,"xlink:href":`xlinkHref`,xlinkRole:1,"xlink:role":`xlinkRole`,xlinkShow:1,"xlink:show":`xlinkShow`,xlinkTitle:1,"xlink:title":`xlinkTitle`,xlinkType:1,"xlink:type":`xlinkType`,xmlBase:1,"xml:base":`xmlBase`,xmlLang:1,"xml:lang":`xmlLang`,xmlns:0,"xml:space":`xmlSpace`,xmlnsXlink:1,"xmlns:xlink":`xmlnsXlink`,xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}})),DT=u((e=>{var t=0,n=1,r=2,i=3,a=4,o=5,s=6;function c(e){return u.hasOwnProperty(e)?u[e]:null}function l(e,t,n,o,s,c,l){this.acceptsBooleans=t===r||t===i||t===a,this.attributeName=o,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=c,this.removeEmptyString=l}var u={};[`children`,`dangerouslySetInnerHTML`,`defaultValue`,`defaultChecked`,`innerHTML`,`suppressContentEditableWarning`,`suppressHydrationWarning`,`style`].forEach(e=>{u[e]=new l(e,t,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(([e,t])=>{u[e]=new l(e,n,!1,t,null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(e=>{u[e]=new l(e,r,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(e=>{u[e]=new l(e,r,!1,e,null,!1,!1)}),[`allowFullScreen`,`async`,`autoFocus`,`autoPlay`,`controls`,`default`,`defer`,`disabled`,`disablePictureInPicture`,`disableRemotePlayback`,`formNoValidate`,`hidden`,`loop`,`noModule`,`noValidate`,`open`,`playsInline`,`readOnly`,`required`,`reversed`,`scoped`,`seamless`,`itemScope`].forEach(e=>{u[e]=new l(e,i,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(e=>{u[e]=new l(e,i,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(e=>{u[e]=new l(e,a,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(e=>{u[e]=new l(e,s,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(e=>{u[e]=new l(e,o,!1,e.toLowerCase(),null,!1,!1)});var d=/[\-\:]([a-z])/g,f=e=>e[1].toUpperCase();`accent-height.alignment-baseline.arabic-form.baseline-shift.cap-height.clip-path.clip-rule.color-interpolation.color-interpolation-filters.color-profile.color-rendering.dominant-baseline.enable-background.fill-opacity.fill-rule.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.glyph-name.glyph-orientation-horizontal.glyph-orientation-vertical.horiz-adv-x.horiz-origin-x.image-rendering.letter-spacing.lighting-color.marker-end.marker-mid.marker-start.overline-position.overline-thickness.paint-order.panose-1.pointer-events.rendering-intent.shape-rendering.stop-color.stop-opacity.strikethrough-position.strikethrough-thickness.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.text-anchor.text-decoration.text-rendering.underline-position.underline-thickness.unicode-bidi.unicode-range.units-per-em.v-alphabetic.v-hanging.v-ideographic.v-mathematical.vector-effect.vert-adv-y.vert-origin-x.vert-origin-y.word-spacing.writing-mode.xmlns:xlink.x-height`.split(`.`).forEach(e=>{let t=e.replace(d,f);u[t]=new l(t,n,!1,e,null,!1,!1)}),[`xlink:actuate`,`xlink:arcrole`,`xlink:role`,`xlink:show`,`xlink:title`,`xlink:type`].forEach(e=>{let t=e.replace(d,f);u[t]=new l(t,n,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(e=>{let t=e.replace(d,f);u[t]=new l(t,n,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(e=>{u[e]=new l(e,n,!1,e.toLowerCase(),null,!1,!1)});var p=`xlinkHref`;u[p]=new l(`xlinkHref`,n,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(e=>{u[e]=new l(e,n,!1,e.toLowerCase(),null,!0,!0)});var{CAMELCASE:m,SAME:h,possibleStandardNames:g}=ET(),_=RegExp.prototype.test.bind(RegExp(`^(data|aria)-[: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]*$`)),v=Object.keys(g).reduce((e,t)=>{let n=g[t];return n===h?e[t]=t:n===m?e[t.toLowerCase()]=t:e[t]=n,e},{});e.BOOLEAN=i,e.BOOLEANISH_STRING=r,e.NUMERIC=o,e.OVERLOADED_BOOLEAN=a,e.POSITIVE_NUMERIC=s,e.RESERVED=t,e.STRING=n,e.getPropertyInfo=c,e.isCustomAttribute=_,e.possibleStandardNames=v})),OT=u((t=>{var n=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,`__esModule`,{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=o,t.setStyleProp=c;var r=e(`react`),i=n(Pg()),a=new Set([`annotation-xml`,`color-profile`,`font-face`,`font-face-src`,`font-face-uri`,`font-face-format`,`font-face-name`,`missing-glyph`]);function o(e,t){return e.includes(`-`)?!a.has(e):!!(t&&typeof t.is==`string`)}var s={reactCompat:!0};function c(e,t){if(typeof e==`string`){if(!e.trim()){t.style={};return}try{t.style=(0,i.default)(e,s)}catch{t.style={}}}}t.PRESERVE_CUSTOM_ATTRIBUTES=Number(r.version.split(`.`)[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set([`tr`,`tbody`,`thead`,`tfoot`,`colgroup`,`table`,`head`,`html`,`frameset`]),t.canTextBeChildOfNode=e=>!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name),t.returnFirstArg=e=>e})),kT=u((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=o;var t=DT(),n=OT(),r=[`checked`,`value`],i=[`input`,`select`,`textarea`],a={reset:!0,submit:!0};function o(e={},o){let c={},l=!!(e.type&&a[e.type]);for(let a in e){let u=e[a];if((0,t.isCustomAttribute)(a)){c[a]=u;continue}let d=a.toLowerCase(),f=s(d);if(f){let e=(0,t.getPropertyInfo)(f);switch(r.includes(f)&&i.includes(o)&&!l&&(f=s(`default`+d)),c[f]=u,e?.type){case t.BOOLEAN:c[f]=!0;break;case t.OVERLOADED_BOOLEAN:u===``&&(c[f]=!0);break}continue}n.PRESERVE_CUSTOM_ATTRIBUTES&&(c[a]=u)}return(0,n.setStyleProp)(e.style,c),c}function s(e){return t.possibleStandardNames[e]}}));function AT(e){return e.type===$.Tag||e.type===$.Script||e.type===$.Style}var $,jT=i((()=>{(function(e){e.Root=`root`,e.Text=`text`,e.Directive=`directive`,e.Comment=`comment`,e.Script=`script`,e.Style=`style`,e.Tag=`tag`,e.CDATA=`cdata`,e.Doctype=`doctype`})($||($={})),$.Root,$.Text,$.Directive,$.Comment,$.Script,$.Style,$.Tag,$.CDATA,$.Doctype}));function MT(e){return AT(e)}function NT(e){return e.type===$.CDATA}function PT(e){return e.type===$.Text}function FT(e){return e.type===$.Comment}function IT(e){return e.type===$.Directive}function LT(e){return e.type===$.Root}function RT(e){return Object.hasOwn(e,`children`)}function zT(e,t=!1){let n;if(PT(e))n=new UT(e.data);else if(FT(e))n=new WT(e.data);else if(MT(e)){let r=t?BT(e.children):[],i=new YT(e.name,{...e.attribs},r);for(let e of r)e.parent=i;e.namespace!=null&&(i.namespace=e.namespace),e[`x-attribsNamespace`]&&(i[`x-attribsNamespace`]={...e[`x-attribsNamespace`]}),e[`x-attribsPrefix`]&&(i[`x-attribsPrefix`]={...e[`x-attribsPrefix`]}),n=i}else if(NT(e)){let r=t?BT(e.children):[],i=new qT(r);for(let e of r)e.parent=i;n=i}else if(LT(e)){let r=t?BT(e.children):[],i=new JT(r);for(let e of r)e.parent=i;e[`x-mode`]&&(i[`x-mode`]=e[`x-mode`]),n=i}else if(IT(e)){let t=new GT(e.name,e.data);e[`x-name`]!=null&&(t[`x-name`]=e[`x-name`],t[`x-publicId`]=e[`x-publicId`],t[`x-systemId`]=e[`x-systemId`]),n=t}else throw Error(`Not implemented yet: ${e.type}`);return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function BT(e){let t=e.map(e=>zT(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}var VT,HT,UT,WT,GT,KT,qT,JT,YT,XT=i((()=>{jT(),wt(),VT=class{constructor(){P(this,`parent`,null),P(this,`prev`,null),P(this,`next`,null),P(this,`startIndex`,null),P(this,`endIndex`,null)}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return zT(this,e)}},HT=class extends VT{constructor(e){super(),P(this,`data`,void 0),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},UT=class extends HT{constructor(...e){super(...e),P(this,`type`,$.Text)}get nodeType(){return 3}},WT=class extends HT{constructor(...e){super(...e),P(this,`type`,$.Comment)}get nodeType(){return 8}},GT=class extends HT{constructor(e,t){super(t),P(this,`type`,$.Directive),P(this,`name`,void 0),P(this,`x-name`,void 0),P(this,`x-publicId`,void 0),P(this,`x-systemId`,void 0),this.name=e}get nodeType(){return 1}},KT=class extends VT{constructor(e){super(),P(this,`children`,void 0),this.children=e}get firstChild(){return this.children[0]??null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},qT=class extends KT{constructor(...e){super(...e),P(this,`type`,$.CDATA)}get nodeType(){return 4}},JT=class extends KT{constructor(...e){super(...e),P(this,`type`,$.Root)}get nodeType(){return 9}},YT=class extends KT{constructor(e,t,n=[],r=e===`script`?$.Script:e===`style`?$.Style:$.Tag){super(n),P(this,`name`,void 0),P(this,`attribs`,void 0),P(this,`type`,void 0),P(this,`namespace`,void 0),P(this,`x-attribsNamespace`,void 0),P(this,`x-attribsPrefix`,void 0),this.name=e,this.attribs=t,this.type=r}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>({name:e,value:this.attribs[e],namespace:this[`x-attribsNamespace`]?.[e],prefix:this[`x-attribsPrefix`]?.[e]}))}}})),ZT=t({CDATA:()=>qT,Comment:()=>WT,DataNode:()=>HT,Document:()=>JT,DomHandler:()=>$T,Element:()=>YT,Node:()=>VT,NodeWithChildren:()=>KT,ProcessingInstruction:()=>GT,Text:()=>UT,cloneNode:()=>zT,default:()=>$T,hasChildren:()=>RT,isCDATA:()=>NT,isComment:()=>FT,isDirective:()=>IT,isDocument:()=>LT,isTag:()=>MT,isText:()=>PT}),QT,$T,eE=i((()=>{jT(),XT(),wt(),XT(),QT={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},$T=class{constructor(e,t,n){P(this,`dom`,[]),P(this,`root`,new JT(this.dom)),P(this,`callback`,void 0),P(this,`options`,void 0),P(this,`elementCB`,void 0),P(this,`done`,!1),P(this,`tagStack`,[this.root]),P(this,`lastNode`,null),P(this,`parser`,null),typeof t==`function`&&(n=t,t=QT),typeof e==`object`&&(t=e,e=void 0),this.callback=e??null,this.options=t??QT,this.elementCB=n??null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new JT(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;let e=this.tagStack.pop();this.options.withEndIndices&&this.parser&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,t){let n=new YT(e,t,void 0,this.options.xmlMode?$.Tag:void 0);this.addNode(n),this.tagStack.push(n)}ontext(e){let{lastNode:t}=this;if(t&&t.type===$.Text)t.data+=e,this.options.withEndIndices&&this.parser&&(t.endIndex=this.parser.endIndex);else{let t=new UT(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===$.Comment){this.lastNode.data+=e;return}let t=new WT(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){let e=new UT(``),t=new qT([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){let n=new GT(e,t);this.addNode(n)}handleCallback(e){if(typeof this.callback==`function`)this.callback(e,this.dom);else if(e)throw e}addNode(e){let t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&this.parser&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&this.parser&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null}}})),tE=u((t=>{var r=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,`__esModule`,{value:!0}),t.default=l;var i=(eE(),n(ZT)),a=e(`react`),o=r(kT()),s=OT(),c={cloneElement:a.cloneElement,createElement:a.createElement,isValidElement:a.isValidElement};function l(e,t={}){let n=[],r=typeof t.replace==`function`,i=t.transform??s.returnFirstArg,{cloneElement:a,createElement:f,isValidElement:p}=t.library??c,m=e.length;u(e);for(let c=0;c<m;c++){let u=e[c];if(r){let e=t.replace?.call(t,u,c);if(p(e)){m>1&&(e=a(e,{key:e.key??c})),n.push(i(e,u,c));continue}}if(u.type===`text`){let e=!u.data.trim().length;if(e&&u.parent&&!(0,s.canTextBeChildOfNode)(u.parent)||t.trim&&e)continue;n.push(i(u.data,u,c));continue}let h=u,g={};d(h)?((0,s.setStyleProp)(h.attribs.style,h.attribs),g=h.attribs):h.attribs&&(g=(0,o.default)(h.attribs,h.name));let _;switch(u.type){case`script`:case`style`:u.children[0]&&(g.dangerouslySetInnerHTML={__html:u.children[0].data});break;case`tag`:u.name===`textarea`&&u.children[0]?g.defaultValue=u.children[0].data:u.children?.length&&(_=l(u.children,t));break;default:continue}m>1&&(g.key=c),n.push(i(f(u.name,g,_),u,c))}return n.length===1?n[0]:n}function u(e){for(let t of e)(t.type===`tag`||t.type===`script`||t.type===`style`)&&(Object.setPrototypeOf(t,i.Element.prototype),u(t.children))}function d(e){return s.PRESERVE_CUSTOM_ATTRIBUTES&&e.type===`tag`&&(0,s.isCustomComponent)(e.name,e.attribs)}})),nE=s(u((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=s;var r=t(TT());e.htmlToDOM=r.default,e.attributesToProps=t(kT()).default;var i=t(tE());e.domToReact=i.default;var a=(eE(),n(ZT));Object.defineProperty(e,`Comment`,{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(e,`Element`,{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(e,`ProcessingInstruction`,{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(e,`Text`,{enumerable:!0,get:function(){return a.Text}});var o={lowerCaseAttributeNames:!1};function s(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];let n=Object.assign(Object.assign({},t?.htmlparser2??o),{trustedTypePolicy:t?.trustedTypePolicy});return(0,i.default)((0,r.default)(e,n),t)}}))(),1),rE=nE.default.default||nE.default;function iE({entries:e}){let t=a(`article`),[n,r]=S(!1),i=(e,t)=>{e.preventDefault();let n=e.currentTarget.getRootNode(),r=n instanceof ShadowRoot||n instanceof Document?n:document,i=`querySelector`in r?r.querySelector(`[id="${CSS.escape(t)}"]`):null;if(!i)return;let a=i.closest(`[data-slot='scroll-area-viewport']`);if(!a){let e=i.parentElement;for(;e;){let t=getComputedStyle(e);if(/(auto|scroll|overlay)/.test(t.overflowY)){a=e;break}e=e.parentElement}}if(a){let e=i.getBoundingClientRect(),t=a.getBoundingClientRect();a.scrollTo({top:a.scrollTop+e.top-t.top-16,behavior:`smooth`})}else i.scrollIntoView({behavior:`smooth`,block:`start`})};return E(`nav`,{"aria-label":t(`tableOfContents`),className:c(`wx-toc mt-0 overflow-hidden rounded-xl border border-wx-border bg-wx-bg`,`[&_a]:no-underline [&_a]:text-inherit [&_a:hover]:opacity-100`,`[&_ul]:m-0 [&_ul]:list-none [&_ul]:p-0`,`[&_li]:m-0`),children:[E(`button`,{type:`button`,onClick:()=>r(e=>!e),"aria-expanded":n,className:c(`flex w-full items-center justify-between gap-3 px-4 py-3`,`text-left text-sm font-medium text-wx-fg`,`transition-colors hover:bg-wx-bg-elevated/40`),children:[T(`span`,{children:t(`tableOfContents`)}),T(im,{className:c(`h-4 w-4 shrink-0 text-wx-fg-subtle transition-transform duration-200`,n&&`rotate-180`),"aria-hidden":`true`})]}),T(`div`,{className:c(`grid transition-[grid-template-rows] duration-200 ease-out`,n?`grid-rows-[1fr]`:`grid-rows-[0fr]`),"aria-hidden":!n,children:T(`div`,{className:`min-h-0 overflow-hidden`,children:T(`div`,{className:`border-t border-wx-border/70 px-2 py-2`,children:T(`div`,{className:`flex flex-col`,children:e.map(e=>{let t=e.level===2?16:e.level===3?32:0;return T(`button`,{type:`button`,onClick:t=>i(t,e.id),className:c(`flex h-8 items-center truncate rounded-md pr-2 text-left text-sm text-wx-fg`,`transition-colors hover:bg-wx-bg-elevated/50`),style:{paddingLeft:12+t},children:T(`span`,{className:`truncate`,children:e.text})},e.id)})})})})})]})}function aE({summary:e,body:t,defaultOpen:n}){let[r,i]=S(n);return E(`div`,{className:`my-2 overflow-hidden rounded-lg border border-wx-border`,children:[E(`button`,{type:`button`,onClick:()=>i(e=>!e),"aria-expanded":r,className:c(`flex w-full items-center justify-between gap-3 px-4 py-3`,`text-left text-sm font-semibold text-wx-fg`,`transition-colors hover:bg-wx-bg-elevated/50`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-wx-primary/30`),children:[T(`span`,{className:`min-w-0 flex-1`,children:e}),T(im,{className:c(`h-4 w-4 shrink-0 text-wx-fg-subtle transition-transform`,r&&`rotate-180`),"aria-hidden":`true`})]}),r&&T(`div`,{className:`border-t border-wx-border px-4 py-3 text-sm leading-relaxed text-wx-fg [&>:first-child]:mt-0 [&>:last-child]:mb-0`,children:t})]})}var oE=(e,t)=>{let n=e.name===`details`,r=e.name===`div`&&e.attribs?.[`data-type`]===`details`;if(!n&&!r)return;let i=r?(e.children??[]).flatMap(e=>e instanceof nE.Element&&e.name===`div`&&!e.attribs?.[`data-type`]?e.children??[]:[e]):e.children??[],a=i.find(e=>e instanceof nE.Element&&e.name===`summary`),o=i.filter(e=>e!==a&&!(e instanceof nE.Element&&e.name===`button`)),s=o.find(e=>e instanceof nE.Element&&e.name===`div`&&(e.attribs?.[`data-type`]===`detailsContent`||e.attribs?.[`data-type`]===`details-content`)),c=s?s.children??[]:o,l=a?(0,nE.domToReact)(a.children,t.options):null,u=T(w,{children:(0,nE.domToReact)(c,t.options)});return T(aE,{defaultOpen:e.attribs?.open!==void 0||e.attribs?.[`data-open`]===`true`,summary:l,body:u})},sE={card:`border-wx-border bg-wx-bg-elevated/60`,callout:`border-wx-primary/30 bg-wx-primary/5`,note:`border-wx-border bg-wx-bg-elevated/60`,tip:`border-wx-success/30 bg-wx-success/5`,warning:`border-wx-warning/30 bg-wx-warning/5`,danger:`border-wx-danger/30 bg-wx-danger/5`},cE=(e,t)=>{let n=sE[e.name];if(n)return T(`div`,{className:`my-4 rounded-wx-md border px-4 py-3 ${n}`,"data-custom-block":e.name,children:(0,nE.domToReact)(e.children??[],t.options)})};function lE(e,t){let n=e.normalize(`NFD`).replace(/[̀-ͯ]/g,``).toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)||`section`,r=n,i=2;for(;t.has(r);)r=`${n}-${i}`,i+=1;return t.add(r),r}function uE(e){let t=``;for(let n of e.children??[])n.type===`text`?t+=n.data??``:n instanceof nE.Element&&(t+=uE(n));return t}var dE=(e,t)=>{if(e.name!==`h1`&&e.name!==`h2`&&e.name!==`h3`)return;let n=Number(e.name.slice(1)),r=uE(e).trim();if(!r)return;let i=lE(r,t.seenIds);return t.entries.push({id:i,text:r,level:n}),h(e.name,{id:i},(0,nE.domToReact)(e.children??[],t.options))},fE=(e,t)=>{if(e.name!==`img`)return;let n=e.attribs??{},r=n[`data-align`]??`center`,i=n.width||n.style?.match(/width:\s*([^;]+)/i)?.[1],a=r===`left`?`0`:`auto`,o=r===`right`?`0`:`auto`,s=n.src??``,c=n.alt??``,l={...i?{width:i}:{},marginLeft:a,marginRight:o,display:`block`};if(t.images&&t.onImageClick){let e=t.images.length;t.images.push({url:s,mimetype:`image/jpeg`,alt:c});let n=t.onImageClick;return T(`button`,{type:`button`,onClick:()=>n(e),className:`my-3 block w-full cursor-zoom-in border-0 bg-transparent p-0`,"aria-label":c||t.openImageLabel,children:T(`img`,{src:s,alt:c,style:l,className:`max-w-full`})})}return T(`img`,{src:s,alt:c,style:l,className:`my-3 max-w-full`})},pE=(e,t)=>{if(e.name!==`a`)return;let n=e.attribs?.href??``;return T(`a`,{href:n,target:`_blank`,rel:`noopener noreferrer`,onClick:()=>t.onLinkClick?.(n),className:`text-wx-primary underline underline-offset-2 transition-opacity hover:opacity-70`,children:(0,nE.domToReact)(e.children??[],t.options)})},mE=(e,t)=>{if(e.name===`table`)return T(`div`,{className:c(`my-3 overflow-x-auto`,`[scrollbar-width:thin] [scrollbar-color:var(--color-wx-fg-subtle)_transparent]`,`[&::-webkit-scrollbar]:h-2`,`[&::-webkit-scrollbar-track]:bg-transparent`,`[&::-webkit-scrollbar-thumb]:rounded-full`,`[&::-webkit-scrollbar-thumb]:bg-wx-fg-subtle/40`,`[&::-webkit-scrollbar-thumb:hover]:bg-wx-fg-subtle/60`),children:T(`table`,{children:(0,nE.domToReact)(e.children??[],t.options)})})};function hE({tabs:e}){let t=a(`article`),[n,r]=S(0);return e.length===0?null:E(`div`,{className:`my-4`,children:[T(`div`,{role:`tablist`,className:`relative flex items-center gap-1 border-b border-wx-border`,children:e.map((e,i)=>{let a=i===n,o=e.label||t(`tabFallback`,{n:i+1});return E(`button`,{type:`button`,role:`tab`,"aria-selected":a,tabIndex:a?0:-1,onClick:()=>r(i),className:c(`group relative inline-flex items-center justify-center px-3 py-2 text-sm`,`transition-colors focus-visible:outline-none`,a?`font-semibold text-wx-fg`:`font-medium text-wx-fg-muted hover:text-wx-fg`),children:[o,T(`span`,{"aria-hidden":`true`,className:c(`pointer-events-none absolute inset-x-2 bottom-0 h-[2px] origin-left rounded-full bg-wx-primary`,`transition-transform duration-200 ease-out`,a?`scale-x-100`:`scale-x-0`)})]},i)})}),T(`div`,{className:`mt-3 text-sm leading-relaxed text-wx-fg [&>:first-child]:mt-0 [&>:last-child]:mb-0`,children:e[n]?.body})]})}var gE=[dE,(e,t)=>{if(e.name===`div`&&(e.attribs?.[`data-type`]===`tabs`||e.attribs?.[`data-type`]===`tabs`))return T(hE,{tabs:(e.children??[]).filter(e=>e instanceof nE.Element&&e.name===`div`&&e.attribs?.[`data-type`]===`tab`).map(e=>{let n=e.children?.find(e=>e instanceof nE.Element&&e.name===`div`&&`data-tab-label`in(e.attribs??{})),r=(e.children??[]).filter(e=>e!==n);return{label:n?uE(n).trim():``,body:T(w,{children:(0,nE.domToReact)(r,t.options)})}})})},oE,cE,mE,fE,pE];function _E(e,t,n,r,i,a){let o={},s={options:o,entries:e,seenIds:t,images:n,onImageClick:r,onLinkClick:i,openImageLabel:a};return o.replace=e=>{if(e instanceof nE.Element){for(let t of Object.keys(e.attribs))t.startsWith(`data-wx-`)&&delete e.attribs[t];for(let t of gE){let n=t(e,s);if(n!==void 0)return n}}},o}function vE({html:e,className:t,onLinkClick:n}){let[r,i]=S(null),o=a(`messages`)(`openImage`),{trackLinkClick:s}=Ah(),c=g(e=>s({url:e,targetType:`EXTERNAL`}),[s]),l=n??c,{parsed:u,entries:d,images:f}=b(()=>{let t=[],n=new Set,r=[];return{parsed:rE(e,_E(t,n,r,i,l,o)),entries:t,images:r}},[e,l,o]);return E(`div`,{className:t,children:[d.length>=3&&T(iE,{entries:d}),u,f.length>0&&T(Uh,{items:f,initialIndex:r??0,open:r!==null,onClose:()=>i(null)})]})}function yE(e){return rE(e,_E([],new Set))}var bE=[{value:`en`,label:`English`},{value:`en-US`,label:`English (US)`},{value:`en-GB`,label:`English (UK)`},{value:`uk`,label:`Українська`},{value:`de`,label:`Deutsch`},{value:`es`,label:`Español`},{value:`es-MX`,label:`Español (México)`},{value:`fr`,label:`Français`},{value:`it`,label:`Italiano`},{value:`pt`,label:`Português`},{value:`pt-BR`,label:`Português (Brasil)`},{value:`nl`,label:`Nederlands`},{value:`pl`,label:`Polski`},{value:`tr`,label:`Türkçe`},{value:`cs`,label:`Čeština`},{value:`sk`,label:`Slovenčina`},{value:`ro`,label:`Română`},{value:`hu`,label:`Magyar`},{value:`el`,label:`Ελληνικά`},{value:`sv`,label:`Svenska`},{value:`da`,label:`Dansk`},{value:`no`,label:`Norsk`},{value:`fi`,label:`Suomi`},{value:`ar`,label:`العربية`},{value:`he`,label:`עברית`},{value:`hi`,label:`हिन्दी`},{value:`th`,label:`ไทย`},{value:`vi`,label:`Tiếng Việt`},{value:`id`,label:`Bahasa Indonesia`},{value:`ja`,label:`日本語`},{value:`ko`,label:`한국어`},{value:`zh`,label:`中文(简体)`},{value:`zh-TW`,label:`中文(繁體)`}];function xE(e){let t=bE.find(t=>t.value===e);if(t)return t.label;let n=e.split(`-`)[0].toLowerCase(),r=bE.find(e=>e.value===n);return r?r.label:n.toUpperCase()}export{cf as $,Ol as $t,op as A,ed as At,Uf as B,ku as Bt,Wp as C,hd as Ct,vp as D,cd as Dt,pp as E,ud as Et,Bf as F,Vu as Ft,Rf as G,Tu as Gt,kf as H,Lu as Ht,Kf as I,Gu as It,Df as J,eu as Jt,Af as K,ou as Kt,Vf as L,Ju as Lt,ip as M,td as Mt,Hf as N,Zu as Nt,_p as O,od as Ot,Wf as P,Qu as Pt,Cf as Q,Pl as Qt,Jf as R,qu as Rt,Kp as S,_d as St,mp as T,dd as Tt,Lf as U,Du as Ut,Gf as V,Ru as Vt,Mf as W,Eu as Wt,wf as X,nu as Xt,Of as Y,$l as Yt,Sf as Z,jl as Zt,sm as _,Md as _t,bS as a,j as an,Rd as at,rm as b,Vd as bt,Ah as c,A as cn,Gd as ct,Ch as d,bd as dt,ll as en,yf as et,Nm as f,Sd as ft,dm as g,qd as gt,fm as h,Yd as ht,wT as i,we as in,Bd as it,sp as j,$u as jt,dp as k,id as kt,Eh as l,wd as lt,pm as m,Zd as mt,vE as n,Ba as nn,nf as nt,Uh as o,O as on,Od as ot,cm as p,Id as pt,Nf as q,Ql as qt,yE as r,za as rn,ef as rt,Mh as s,ne as sn,Pd as st,xE as t,G as tn,rf as tt,Th as u,Ad as ut,om as v,Ud as vt,Sp as w,pd as wt,qp as x,Ed as xt,im as y,zd as yt,Yf as z,Ou as zt};
|
|
291
|
+
//# sourceMappingURL=widget-react-CtHBMV7Z.js.map
|