parse-dashboard 9.2.1-alpha.1 → 9.3.0-alpha.2
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/Parse-Dashboard/public/bundles/1056.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/1151.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/1256.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/1272.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/1356.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/1440.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/1675.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/1987.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/2499.bundle.js +2 -0
- package/Parse-Dashboard/public/bundles/2499.bundle.js.LICENSE.txt +6 -0
- package/Parse-Dashboard/public/bundles/2794.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/2823.bundle.js +2 -0
- package/Parse-Dashboard/public/bundles/2823.bundle.js.LICENSE.txt +1 -0
- package/Parse-Dashboard/public/bundles/2955.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/2972.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/3120.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/3212.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/3227.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/3412.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/3839.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/3871.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/4056.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/4062.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/4069.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/4097.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/4438.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/448.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/4760.bundle.js +2 -0
- package/Parse-Dashboard/public/bundles/4760.bundle.js.LICENSE.txt +6 -0
- package/Parse-Dashboard/public/bundles/4837.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/490.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/5147.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/5166.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/5281.bundle.js +2 -0
- package/Parse-Dashboard/public/bundles/5281.bundle.js.LICENSE.txt +44 -0
- package/Parse-Dashboard/public/bundles/5521.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/580.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/5834.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/5851.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/5866.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/5967.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/6079.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/6214.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/6490.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/6556.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/6562.bundle.js +2 -0
- package/Parse-Dashboard/public/bundles/6562.bundle.js.LICENSE.txt +6 -0
- package/Parse-Dashboard/public/bundles/6727.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/7110.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/7214.bundle.js +2 -0
- package/Parse-Dashboard/public/bundles/7214.bundle.js.LICENSE.txt +6 -0
- package/Parse-Dashboard/public/bundles/7413.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/7537.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/7775.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/792.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/802.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/8058.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/8445.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/9096.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/9174.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/9433.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/9794.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/9895.bundle.js +1 -0
- package/Parse-Dashboard/public/bundles/dashboard.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/dashboard.bundle.js.LICENSE.txt +39 -75
- package/Parse-Dashboard/public/bundles/img/f6283f7ccaed1249d9eb.ttf +0 -0
- package/Parse-Dashboard/public/bundles/login.bundle.js +1 -1
- package/Parse-Dashboard/public/bundles/login.bundle.js.LICENSE.txt +21 -14
- package/package.json +17 -15
- package/Parse-Dashboard/public/bundles/120.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/183.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/19.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/221.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/372.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/573.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/578.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/584.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/629.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/643.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/647.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/701.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/729.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/75.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/753.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/817.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/844.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/862.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/866.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/874.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/881.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/929.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/950.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/97.bundle.js +0 -1
- package/Parse-Dashboard/public/bundles/976.bundle.js +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 5281.bundle.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunk=self.webpackChunk||[]).push([[5281],{54682(e,t,n){"use strict";function r(e){return"object"==typeof e&&null!==e&&"function"==typeof e.then}function o(e){return"object"==typeof e&&null!==e&&"subscribe"in e&&"function"==typeof e.subscribe}function i(e){return"object"==typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator in e)}async function s(e){const t=await e;return i(t)?async function(e){var t;const n=null==(t=("return"in e?e:e[Symbol.asyncIterator]()).return)?void 0:t.bind(e),r=await("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e)();return null==n||n(),r.value}(t):o(t)?(n=t,new Promise((e,t)=>{const r=n.subscribe({next(t){e(t),r.unsubscribe()},error:t,complete(){t(new Error("no value resolved"))}})})):t;var n}n.d(t,{AT:()=>o,Td:()=>i,gd:()=>s,yL:()=>r}),n(44773)},44773(e,t,n){"use strict";n.d(t,{AQ:()=>p,IA:()=>d,N3:()=>f,ko:()=>h,od:()=>m});var r=Object.defineProperty,o=Object.defineProperties,i=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,c=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),u=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}))a.call(t,n)&&u(e,n,t[n]);if(s)for(var n of s(t))l.call(t,n)&&u(e,n,t[n]);return e},h=(e,t)=>o(e,i(t)),f=function(e,t){this[0]=e,this[1]=t},p=(e,t,n)=>{var r=(e,t,o,i)=>{try{var s=n[e](t),a=(t=s.value)instanceof f,l=s.done;Promise.resolve(a?t[0]:t).then(n=>a?r("return"===e?e:"next",t[1]?{done:n.done,value:n.value}:n,o,i):o({value:n,done:l})).catch(e=>r("throw",e,o,i))}catch(e){i(e)}},o=e=>i[e]=t=>new Promise((n,o)=>r(e,t,n,o)),i={};return n=n.apply(e,t),i[c("asyncIterator")]=()=>i,o("next"),o("throw"),o("return"),i},m=(e,t,n)=>(t=e[c("asyncIterator")])?t.call(e):(e=e[c("iterator")](),t={},(n=(n,r)=>(r=e[n])&&(t[n]=t=>new Promise((n,o,i)=>(t=r.call(e,t),i=t.done,Promise.resolve(t.value).then(e=>n({value:e,done:i}),o)))))("next"),n("return"),t)},92197(e,t,n){"use strict";n.d(t,{a:()=>d});var r=n(44773),o=n(34627),i=new TextDecoder;function s(e,t,n){const r=async function*(){yield*e}(),o=r.return.bind(r);if(t&&(r.return=(...e)=>(t(),o(...e))),n){const e=r.throw.bind(r);r.throw=t=>(n(t),e(t))}return r}function a(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}const l=e=>{const{pushValue:t,asyncIterableIterator:n}=function(){let e={type:"running"},t=a();const n=[];return{pushValue:function(r){"running"===e.type&&(n.push(r),t.resolve(),t=a())},asyncIterableIterator:s(async function*(){for(;;)if(n.length>0)yield n.shift();else{if("error"===e.type)throw e.error;if("finished"===e.type)return;await t.promise}}(),()=>{"running"===e.type&&(e={type:"finished"},t.resolve())},n=>{"running"===e.type&&(e={type:"error",error:n},t.resolve())})}}(),r=e({next:e=>{t(e)},complete:()=>{n.return()},error:e=>{n.throw(e)}}),o=n.return;let i;return n.return=()=>(void 0===i&&(r(),i=o()),i),n},c=e=>t=>l(n=>e.subscribe(t,(0,r.ko)((0,r.IA)({},n),{error(e){e instanceof CloseEvent?n.error(new Error(`Socket closed with event ${e.code} ${e.reason||""}`.trim())):n.error(e)}}))),u=(e,t)=>function(n,o){return(0,r.AQ)(this,null,function*(){const s=yield new r.N3(t(e.url,{method:"POST",body:JSON.stringify(n),headers:(0,r.IA)((0,r.IA)({"content-type":"application/json",accept:"application/json, multipart/mixed"},e.headers),null==o?void 0:o.headers)}).then(e=>async function(e){if(!e.ok||!e.body||e.bodyUsed)return e;const t=e.headers.get("content-type");if(!t||!~t.indexOf("multipart/mixed"))return e;const n=t.indexOf("boundary="),r=n+9,o=t.indexOf(";",r);return async function*(e,t,n){const r=e.getReader(),o=!n||!n.multiple;let s=t.length,a="",l=!0,c=[];try{let e;e:for(;!(e=await r.read()).done;){const n=i.decode(e.value),r=n.indexOf(t);let u=a.length;for(a+=n,~r?u+=r:u=a.indexOf(t),c=[];~u;){const e=a.substring(0,u),n=a.substring(u+s);if(l)l=!1,t="\r\n"+t,s+=2;else{const t={},r=e.indexOf("\r\n\r\n")+4,i=String(a.slice(0,r)).trim().split("\r\n");let s;for(;s=i.shift();)s=s.split(": "),t[s.shift().toLowerCase()]=s.join(": ");const l=e.lastIndexOf("\r\n",r);let u=e.substring(r,l>-1?void 0:l),d=!1;if(s=t["content-type"],s&&~s.indexOf("application/json"))try{u=JSON.parse(u),d=!0}catch(e){}if(s={headers:t,body:u,json:d},o?yield s:c.push(s),"--"===n.substring(0,2))break e}a=n,u=a.indexOf(t)}c.length&&(yield c)}}finally{c.length&&(yield c),await r.cancel()}}(e.body,`--${~n?t.substring(r,o>-1?o:void 0).replace(/['"]/g,"").trim():"-"}`,{multiple:!0})}(e)));if("object"!=typeof(a=s)||null===a||!("AsyncGenerator"===a[Symbol.toStringTag]||Symbol.asyncIterator&&Symbol.asyncIterator in a))return yield s.json();var a;try{for(var l,c,u,d=(0,r.od)(s);l=!(c=yield new r.N3(d.next())).done;l=!1){const e=c.value;if(e.some(e=>!e.json)){const t=e.map(e=>`Headers::\n${e.headers}\n\nBody::\n${e.body}`);throw new Error(`Expected multipart chunks to be of json type. got:\n${t}`)}yield e.map(e=>e.body)}}catch(c){u=[c]}finally{try{l&&(c=d.return)&&(yield new r.N3(c.call(d)))}finally{if(u)throw u[0]}}})};function d(e){const t=e.fetch||"undefined"!=typeof window&&window.fetch;if(!t)throw new Error("No valid fetcher implementation available");e.enableIncrementalDelivery=!1!==e.enableIncrementalDelivery;const i=((e,t)=>async(n,o)=>(await t(e.url,{method:"POST",body:JSON.stringify(n),headers:(0,r.IA)((0,r.IA)({"content-type":"application/json",accept:"application/graphql-response+json, application/json;q=0.9"},e.headers),null==o?void 0:o.headers)})).json())(e,t),s=e.enableIncrementalDelivery?u(e,t):i;return async(t,a)=>{if("IntrospectionQuery"===t.operationName)return(e.schemaFetcher||i)(t,a);if(null!=a&&a.documentAST&&((e,t)=>{let n=!1;return(0,o.YR)(e,{OperationDefinition(e){var r;t===(null==(r=e.name)?void 0:r.value)&&"subscription"===e.operation&&(n=!0)}}),n})(a.documentAST,t.operationName||void 0)){const o=await async function(e,t){if(e.wsClient)return c(e.wsClient);if(e.subscriptionUrl)return async function(e,t){let r;try{const{createClient:o}=await n.e(1987).then(n.bind(n,21987));return r=o({url:e,connectionParams:t}),c(r)}catch(t){if((e=>"object"==typeof e&&null!==e&&"code"in e)(t)&&"MODULE_NOT_FOUND"===t.code)throw new Error("You need to install the 'graphql-ws' package to use websockets when passing a 'subscriptionUrl'");console.error(`Error creating websocket client for ${e}`,t)}}(e.subscriptionUrl,(0,r.IA)((0,r.IA)({},e.wsConnectionParams),null==t?void 0:t.headers));const o=e.legacyClient||e.legacyWsClient;return o?(i=o,e=>{const t=i.request(e);return l(e=>t.subscribe(e).unsubscribe)}):void 0;var i}(e,a);if(!o)throw new Error("Your GraphiQL createFetcher is not properly configured for websocket subscriptions yet. "+(e.subscriptionUrl?`Provided URL ${e.subscriptionUrl} failed`:"Please provide subscriptionUrl, wsClient or legacyClient option first."));return o(t)}return s(t,a)}}},43172(e,t,n){"use strict";n.d(t,{createGraphiQLFetcher:()=>o.a}),n(44773);var r=n(78337);n.o(r,"HistoryStore")&&n.d(t,{HistoryStore:function(){return r.HistoryStore}}),n.o(r,"StorageAPI")&&n.d(t,{StorageAPI:function(){return r.StorageAPI}}),n.o(r,"fillLeafs")&&n.d(t,{fillLeafs:function(){return r.fillLeafs}}),n.o(r,"formatError")&&n.d(t,{formatError:function(){return r.formatError}}),n.o(r,"formatResult")&&n.d(t,{formatResult:function(){return r.formatResult}}),n.o(r,"getSelectedOperationName")&&n.d(t,{getSelectedOperationName:function(){return r.getSelectedOperationName}}),n.o(r,"mergeAst")&&n.d(t,{mergeAst:function(){return r.mergeAst}});var o=n(92197)},78337(){},53705(e,t,n){"use strict";n.d(t,{J:()=>a,W:()=>s});var r=n(44773);function o(e){return JSON.stringify(e,null,2)}function i(e){return e instanceof Error?function(e){return(0,r.ko)((0,r.IA)({},e),{message:e.message,stack:e.stack})}(e):e}function s(e){return Array.isArray(e)?o({errors:e.map(e=>i(e))}):o({errors:[i(e)]})}function a(e){return o(e)}},82365(e,t,n){"use strict";n.d(t,{nX:()=>u,GO:()=>g,Hf:()=>m});var r=n(44773),o=n(26788),i=n(58709),s=n(34627),a=n(64121),l=n(79222),c=n(14552);function u(e,t,n){const r=[];if(!e||!t)return{insertions:r,result:t};let l;try{l=(0,o.qg)(t)}catch(e){return{insertions:r,result:t}}const c=n||d,u=new i.D(e);return(0,s.YR)(l,{leave(e){u.leave(e)},enter(e){if(u.enter(e),"Field"===e.kind&&!e.selectionSet){const n=h(function(e){if(e)return e}(u.getType()),c);if(n&&e.loc){const o=function(e,t){let n=t,r=t;for(;n;){const t=e.charCodeAt(n-1);if(10===t||13===t||8232===t||8233===t)break;n--,9!==t&&11!==t&&12!==t&&32!==t&&160!==t&&(r=n)}return e.slice(n,r)}(t,e.loc.start);r.push({index:e.loc.end,string:" "+(0,a.y)(n).replaceAll("\n","\n"+o)})}}}}),{insertions:r,result:f(t,r)}}function d(e){if(!("getFields"in e))return[];const t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];const n=[];for(const e of Object.keys(t))(0,l.zf)(t[e].type)&&n.push(e);return n}function h(e,t){const n=(0,l.MR)(e);if(!e||(0,l.zf)(e))return;const r=t(n);return Array.isArray(r)&&0!==r.length&&"getFields"in n?{kind:c.b.SELECTION_SET,selections:r.map(e=>{const r=n.getFields()[e],o=r?r.type:null;return{kind:c.b.FIELD,name:{kind:c.b.NAME,value:e},selectionSet:h(o,t)}})}:void 0}function f(e,t){if(0===t.length)return e;let n="",r=0;for(const{index:o,string:i}of t)n+=e.slice(r,o)+i,r=o;return n+=e.slice(r),n}function p(e,t,n){var r;const o=n?(0,l.MR)(n).name:null,i=[],s=[];for(let a of t){if("FragmentSpread"===a.kind){const t=a.name.value;if(!a.directives||0===a.directives.length){if(s.includes(t))continue;s.push(t)}const n=e[a.name.value];if(n){const{typeCondition:e,directives:t,selectionSet:r}=n;a={kind:c.b.INLINE_FRAGMENT,typeCondition:e,directives:t,selectionSet:r}}}if(a.kind===c.b.INLINE_FRAGMENT&&(!a.directives||0===(null==(r=a.directives)?void 0:r.length))){const t=a.typeCondition?a.typeCondition.name.value:null;if(!t||t===o){i.push(...p(e,a.selectionSet.selections,n));continue}}i.push(a)}return i}function m(e,t){const n=t?new i.D(t):null,o=Object.create(null);for(const t of e.definitions)t.kind===c.b.FRAGMENT_DEFINITION&&(o[t.name.value]=t);const a={SelectionSet(e){const t=n?n.getParentType():null;let{selections:i}=e;return i=p(o,i,t),(0,r.ko)((0,r.IA)({},e),{selections:i})},FragmentDefinition:()=>null},l=(0,s.YR)(e,n?(0,i.S)(n,a):a);return(0,s.YR)(l,{SelectionSet(e){let{selections:t}=e;return t=function(e,t){var n;const o=new Map,i=[];for(const s of e)if("Field"===s.kind){const e=t(s),a=o.get(e);if(null!=(n=s.directives)&&n.length){const e=(0,r.IA)({},s);i.push(e)}else if(null!=a&&a.selectionSet&&s.selectionSet)a.selectionSet.selections=[...a.selectionSet.selections,...s.selectionSet.selections];else if(!a){const t=(0,r.IA)({},s);o.set(e,t),i.push(t)}}else i.push(s);return i}(t,e=>e.alias?e.alias.value:e.name.value),(0,r.ko)((0,r.IA)({},e),{selections:t})},FragmentDefinition:()=>null})}function g(e,t,n){if(!n||n.length<1)return;const r=n.map(e=>{var t;return null==(t=e.name)?void 0:t.value});if(t&&r.includes(t))return t;if(t&&e){const n=e.map(e=>{var t;return null==(t=e.name)?void 0:t.value}).indexOf(t);if(-1!==n&&n<r.length)return r[n]}return r[0]}},22945(e,t,n){"use strict";n.d(t,{HistoryStore:()=>a.KU,StorageAPI:()=>a.m3,createGraphiQLFetcher:()=>o.createGraphiQLFetcher,fetcherReturnToPromise:()=>r.gd,fillLeafs:()=>s.nX,formatError:()=>i.W,formatResult:()=>i.J,getSelectedOperationName:()=>s.GO,isAsyncIterable:()=>r.Td,isObservable:()=>r.AT,isPromise:()=>r.yL,mergeAst:()=>s.Hf});var r=n(54682),o=n(43172);n.o(o,"HistoryStore")&&n.d(t,{HistoryStore:function(){return o.HistoryStore}}),n.o(o,"StorageAPI")&&n.d(t,{StorageAPI:function(){return o.StorageAPI}}),n.o(o,"fillLeafs")&&n.d(t,{fillLeafs:function(){return o.fillLeafs}}),n.o(o,"formatError")&&n.d(t,{formatError:function(){return o.formatError}}),n.o(o,"formatResult")&&n.d(t,{formatResult:function(){return o.formatResult}}),n.o(o,"getSelectedOperationName")&&n.d(t,{getSelectedOperationName:function(){return o.getSelectedOperationName}}),n.o(o,"mergeAst")&&n.d(t,{mergeAst:function(){return o.mergeAst}});var i=n(53705),s=n(82365),a=n(42181)},42181(e,t,n){"use strict";n.d(t,{KU:()=>l,m3:()=>o});var r=n(44773);class o{constructor(e){e?this.storage=e:null===e||"undefined"==typeof window?this.storage=null:this.storage={getItem:localStorage.getItem.bind(localStorage),setItem:localStorage.setItem.bind(localStorage),removeItem:localStorage.removeItem.bind(localStorage),get length(){let e=0;for(const t in localStorage)0===t.indexOf(`${i}:`)&&(e+=1);return e},clear(){for(const e in localStorage)0===e.indexOf(`${i}:`)&&localStorage.removeItem(e)}}}get(e){if(!this.storage)return null;const t=`${i}:${e}`,n=this.storage.getItem(t);return"null"===n||"undefined"===n?(this.storage.removeItem(t),null):n||null}set(e,t){let n=!1,r=null;if(this.storage){const o=`${i}:${e}`;if(t)try{this.storage.setItem(o,t)}catch(e){r=e instanceof Error?e:new Error(`${e}`),n=function(e,t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}(this.storage,e)}else this.storage.removeItem(o)}return{isQuotaError:n,error:r}}clear(){this.storage&&this.storage.clear()}}const i="graphiql";var s=n(26788);class a{constructor(e,t,n=null){this.key=e,this.storage=t,this.maxSize=n,this.items=this.fetchAll()}get length(){return this.items.length}contains(e){return this.items.some(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName)}edit(e,t){if("number"==typeof t&&this.items[t]){const n=this.items[t];if(n.query===e.query&&n.variables===e.variables&&n.headers===e.headers&&n.operationName===e.operationName)return this.items.splice(t,1,e),void this.save()}const n=this.items.findIndex(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName);-1!==n&&(this.items.splice(n,1,e),this.save())}delete(e){const t=this.items.findIndex(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName);-1!==t&&(this.items.splice(t,1),this.save())}fetchRecent(){return this.items.at(-1)}fetchAll(){const e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]}push(e){const t=[...this.items,e];this.maxSize&&t.length>this.maxSize&&t.shift();for(let e=0;e<5;e++){const e=this.storage.set(this.key,JSON.stringify({[this.key]:t}));if(null!=e&&e.error){if(!e.isQuotaError||!this.maxSize)return;t.shift()}else this.items=t}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}}class l{constructor(e,t){this.storage=e,this.maxHistoryLength=t,this.updateHistory=({query:e,variables:t,headers:n,operationName:r})=>{if(!this.shouldSaveQuery(e,t,n,this.history.fetchRecent()))return;this.history.push({query:e,variables:t,headers:n,operationName:r});const o=this.history.items,i=this.favorite.items;this.queries=o.concat(i)},this.deleteHistory=({query:e,variables:t,headers:n,operationName:r,favorite:o},i=!1)=>{function s(o){const i=o.items.find(o=>o.query===e&&o.variables===t&&o.headers===n&&o.operationName===r);i&&o.delete(i)}(o||i)&&s(this.favorite),(!o||i)&&s(this.history),this.queries=[...this.history.items,...this.favorite.items]},this.history=new a("queries",this.storage,this.maxHistoryLength),this.favorite=new a("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(e,t,n,r){if(!e)return!1;try{(0,s.qg)(e)}catch(e){return!1}return!(e.length>1e5||r&&JSON.stringify(e)===JSON.stringify(r.query)&&(JSON.stringify(t)===JSON.stringify(r.variables)&&(JSON.stringify(n)===JSON.stringify(r.headers)||n&&!r.headers)||t&&!r.variables))}toggleFavorite({query:e,variables:t,headers:n,operationName:r,label:o,favorite:i}){const s={query:e,variables:t,headers:n,operationName:r,label:o};i?(s.favorite=!1,this.favorite.delete(s),this.history.push(s)):(s.favorite=!0,this.favorite.push(s),this.history.delete(s)),this.queries=[...this.history.items,...this.favorite.items]}editLabel({query:e,variables:t,headers:n,operationName:o,label:i,favorite:s},a){const l={query:e,variables:t,headers:n,operationName:o,label:i};s?this.favorite.edit((0,r.ko)((0,r.IA)({},l),{favorite:s}),a):this.history.edit(l,a),this.queries=[...this.history.items,...this.favorite.items]}}},42999(e,t,n){const r=n(1082);function o(e,t,n){return"function"==typeof n.join?n.join(e):e[0]+t+e[1]}function i(e,t,n){return"function"!=typeof n.isValid||n.isValid(e,t)}function s(e){return r(e)||Array.isArray(e)||"function"==typeof e}e.exports=function(e,t,n){if(r(n)||(n={default:n}),!s(e))return void 0!==n.default?n.default:e;"number"==typeof t&&(t=String(t));const a=Array.isArray(t),l="string"==typeof t,c=n.separator||".",u=n.joinChar||("string"==typeof c?c:".");if(!l&&!a)return e;if(l&&t in e)return i(t,e,n)?e[t]:n.default;let d=a?t:function(e,t,n){return"function"==typeof n.split?n.split(e):e.split(t)}(t,c,n),h=d.length,f=0;do{let t=d[f];for("number"==typeof t&&(t=String(t));t&&"\\"===t.slice(-1);)t=o([t.slice(0,-1),d[++f]||""],u,n);if(t in e){if(!i(t,e,n))return n.default;e=e[t]}else{let r=!1,s=f+1;for(;s<h;)if(t=o([t,d[s++]],u,n),r=t in e){if(!i(t,e,n))return n.default;e=e[t],f=s-1;break}if(!r)return n.default}}while(++f<h&&s(e));return f===h?e:n.default}},48020(e,t,n){"use strict";n.d(t,{J:()=>vT});var r={};n.r(r),n.d(r,{decode:()=>Py,encode:()=>By,format:()=>qy,parse:()=>ev});var o={};n.r(o),n.d(o,{Any:()=>rv,Cc:()=>ov,Cf:()=>iv,P:()=>tv,S:()=>nv,Z:()=>sv});var i={};n.r(i),n.d(i,{arrayReplaceAt:()=>Ov,asciiTrim:()=>eb,assign:()=>Rv,escapeHtml:()=>Kv,escapeRE:()=>Wv,fromCodePoint:()=>Mv,has:()=>Nv,isMdAsciiPunct:()=>Xv,isPunctChar:()=>Qv,isPunctCharCode:()=>Yv,isSpace:()=>Hv,isString:()=>Av,isValidEntityCode:()=>Fv,isWhiteSpace:()=>Gv,lib:()=>tb,normalizeReference:()=>Jv,unescapeAll:()=>Vv,unescapeMd:()=>jv});var s={};n.r(s),n.d(s,{parseLinkDestination:()=>rb,parseLinkLabel:()=>nb,parseLinkTitle:()=>ob});var a=n(62540),l=n(82484),c=n(63696),u=n.t(c,2);const d=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach(n=>n(t,e))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>s,subscribe:e=>(n.add(e),()=>n.delete(e))},s=t=e(r,o,i);return i},h=e=>e?d(e):d,f=e=>e;function p(e,t=f){const n=c.useSyncExternalStore(e.subscribe,c.useCallback(()=>t(e.getState()),[e,t]),c.useCallback(()=>t(e.getInitialState()),[e,t]));return c.useDebugValue(n),n}const m=e=>{const t=h(e),n=e=>p(t,e);return Object.assign(n,t),n},g=e=>Symbol.iterator in e,y=e=>"entries"in e,v=(e,t)=>{const n=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t:new Map(t.entries());if(n.size!==r.size)return!1;for(const[e,t]of n)if(!r.has(e)||!Object.is(t,r.get(e)))return!1;return!0};function b(e){const t=c.useRef(void 0);return n=>{const r=e(n);return o=t.current,i=r,Object.is(o,i)||"object"==typeof o&&null!==o&&"object"==typeof i&&null!==i&&Object.getPrototypeOf(o)===Object.getPrototypeOf(i)&&(g(o)&&g(i)?y(o)&&y(i)?v(o,i):((e,t)=>{const n=e[Symbol.iterator](),r=t[Symbol.iterator]();let o=n.next(),i=r.next();for(;!o.done&&!i.done;){if(!Object.is(o.value,i.value))return!1;o=n.next(),i=r.next()}return!!o.done&&!!i.done})(o,i):v({entries:()=>Object.entries(o)},{entries:()=>Object.entries(i)}))?t.current:t.current=r;var o,i}}var x=n(22945),E=n(64121),w=n(88687),C=n(4731);const S="undefined"!=typeof navigator&&navigator.userAgent.includes("Mac");function k(e,t="⌘"){return S?e.replace("Ctrl",t):e}const _=Object.freeze({prettify:{key:"Shift-Ctrl-P",keybindings:[w.KeyMod.Shift|w.KeyMod.WinCtrl|C.DD.KeyP]},mergeFragments:{key:"Shift-Ctrl-M",keybindings:[w.KeyMod.Shift|w.KeyMod.WinCtrl|C.DD.KeyM]},runQuery:{key:"Ctrl-Enter",keybindings:[w.KeyMod.CtrlCmd|C.DD.Enter]},autoComplete:{key:"Space"},copyQuery:{key:"Shift-Ctrl-C",keybindings:[w.KeyMod.Shift|w.KeyMod.WinCtrl|C.DD.KeyC]},refetchSchema:{key:"Shift-Ctrl-R"},searchInEditor:{key:"Ctrl-F"},searchInDocs:{key:"Ctrl-Alt-K"}}),T="headers",A="visiblePlugin",D="query",N="variables",R="tabState",O="shouldPersistHeaders",F="theme",M=`# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and testing\n# GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that start\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n# {\n# field(arg: "value") {\n# subField\n# }\n# }\n#\n# Keyboard shortcuts:\n#\n# Prettify query: ${_.prettify.key} (or press the prettify button)\n#\n# Merge fragments: ${_.mergeFragments.key} (or press the merge button)\n#\n# Run Query: ${k(_.runQuery.key,"Cmd")} (or press the play button)\n#\n# Auto Complete: ${_.autoComplete.key} (or just start typing)\n#\n\n`,I={id:"graphql-prettify",label:"Prettify Editors",contextMenuGroupId:"graphql",keybindings:_.prettify.keybindings},L={id:"graphql-merge",label:"Merge Fragments into Query",contextMenuGroupId:"graphql",keybindings:_.mergeFragments.keybindings},P={id:"graphql-run",label:"Run Operation",contextMenuGroupId:"graphql",keybindings:_.runQuery.keybindings},j={id:"graphql-copy",label:"Copy Query",contextMenuGroupId:"graphql",keybindings:_.copyQuery.keybindings},V="variables.json",B={allowComments:!0,trailingCommas:"ignore"},q={validateVariablesJSON:{},jsonDiagnosticSettings:{validate:!0,schemaValidation:"error",...B}},$=async e=>{const[t,{printers:r},{parsers:o}]=await Promise.all([n.e(9794).then(n.bind(n,17413)),n.e(4062).then(n.bind(n,14062)),n.e(5521).then(n.t.bind(n,57902,23))]);return t.format(e,{parser:"graphql",plugins:[{printers:r},{parsers:o}]})},z={dark:"graphiql-DARK",light:"graphiql-LIGHT"},K={transparent:"#ffffff00",bg:{dark:"#212a3b",light:"#ffffffff"},primary:{dark:"#ff5794",light:"#d60590"},primaryBg:{dark:"#ff579419",light:"#d6059019"},secondary:{dark:"#b7c2d711",light:"#3b4b6811"}},U=e=>({"editor.background":K.transparent,"scrollbar.shadow":K.transparent,"textLink.foreground":K.primary[e],"textLink.activeForeground":K.primary[e],"editorLink.activeForeground":K.primary[e],"editorHoverWidget.background":K.bg[e],"list.hoverBackground":K.primaryBg[e],"list.highlightForeground":K.primary[e],"list.focusHighlightForeground":K.primary[e],"menu.background":K.bg[e],"editorSuggestWidget.background":K.bg[e],"editorSuggestWidget.selectedBackground":K.primaryBg[e],"editorSuggestWidget.selectedForeground":K.primary[e],"quickInput.background":K.bg[e],"quickInputList.focusForeground":"dark"===e?"#ffffff":"#444444","highlighted.label":K.primary[e],"quickInput.widget":K.primary[e],highlight:K.primary[e],"editorWidget.background":K.bg[e],"input.background":K.secondary[e],focusBorder:K.primary[e],"toolbar.hoverBackground":K.primaryBg[e],"inputOption.hoverBackground":K.primaryBg[e],"quickInputList.focusBackground":K.primaryBg[e],"editorWidget.resizeBorder":K.primary[e],"pickerGroup.foreground":K.primary[e],"menu.selectionBackground":K.primaryBg[e],"menu.selectionForeground":K.primary[e]}),W={dark:{base:"vs-dark",inherit:!0,colors:U("dark"),rules:[{token:"argument.identifier.gql",foreground:"#908aff"}]},light:{base:"vs",inherit:!0,colors:U("light"),rules:[{token:"argument.identifier.gql",foreground:"#6c69ce"}]}};function H(e){return e&&"object"==typeof e&&!Array.isArray(e)&&G(e,"id")&&G(e,"title")&&Q(e,"query")&&Q(e,"variables")&&Q(e,"headers")&&Q(e,"operationName")&&Q(e,"response")}function G(e,t){return t in e&&"string"==typeof e[t]}function Q(e,t){return t in e&&("string"==typeof e[t]||null===e[t])}function Y(e,t=!1){return JSON.stringify(e,(e,n)=>"hash"===e||"response"===e||!t&&"headers"===e?null:n)}function X({query:e=null,variables:t=null,headers:n=null}={}){const r=e?te(e):null;return{id:Z(),hash:ee({query:e,variables:t,headers:n}),title:r||ne,query:e,variables:t,headers:n,operationName:r,response:null}}function J(e,t){return{...e,tabs:e.tabs.map((n,r)=>{if(r!==e.activeTabIndex)return n;const o={...n,...t};return{...o,hash:ee(o),title:o.operationName||(o.query?te(o.query):void 0)||ne}})}}function Z(){const e=()=>Math.floor(65536*(1+Math.random())).toString(16).slice(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function ee(e){return[e.query??"",e.variables??"",e.headers??""].join("|")}function te(e){const t=/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e);return(null==t?void 0:t[2])??null}const ne="<untitled>";function re(e){return 32===e||9===e}function oe(e){return 10===e||13===e}function ie(e){return e>=48&&e<=57}var se;!function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(se||(se={})),new Array(20).fill(0).map((e,t)=>" ".repeat(t));const ae=200;var le,ce,ue;function de(e,t,n=le.DEFAULT){const r=function(e,t=!1){const n=e.length;let r=0,o="",i=0,s=16,a=0,l=0,c=0,u=0,d=0;function h(t,n){let o=0,i=0;for(;o<t||!n;){let t=e.charCodeAt(r);if(t>=48&&t<=57)i=16*i+t-48;else if(t>=65&&t<=70)i=16*i+t-65+10;else{if(!(t>=97&&t<=102))break;i=16*i+t-97+10}r++,o++}return o<t&&(i=-1),i}function f(){if(o="",d=0,i=r,l=a,u=c,r>=n)return i=n,s=17;let t=e.charCodeAt(r);if(re(t)){do{r++,o+=String.fromCharCode(t),t=e.charCodeAt(r)}while(re(t));return s=15}if(oe(t))return r++,o+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,o+="\n"),a++,c=r,s=14;switch(t){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,o=function(){let t="",o=r;for(;;){if(r>=n){t+=e.substring(o,r),d=2;break}const i=e.charCodeAt(r);if(34===i){t+=e.substring(o,r),r++;break}if(92!==i){if(i>=0&&i<=31){if(oe(i)){t+=e.substring(o,r),d=2;break}d=6}r++}else{if(t+=e.substring(o,r),r++,r>=n){d=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=h(4,!0);e>=0?t+=String.fromCharCode(e):d=4;break;default:d=5}o=r}}return t}(),s=10;case 47:const l=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!oe(e.charCodeAt(r));)r++;return o=e.substring(l,r),s=12}if(42===e.charCodeAt(r+1)){r+=2;const t=n-1;let i=!1;for(;r<t;){const t=e.charCodeAt(r);if(42===t&&47===e.charCodeAt(r+1)){r+=2,i=!0;break}r++,oe(t)&&(13===t&&10===e.charCodeAt(r)&&r++,a++,c=r)}return i||(r++,d=1),o=e.substring(l,r),s=13}return o+=String.fromCharCode(t),r++,s=16;case 45:if(o+=String.fromCharCode(t),r++,r===n||!ie(e.charCodeAt(r)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=function(){let t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&ie(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(r++,!(r<e.length&&ie(e.charCodeAt(r))))return d=3,e.substring(t,r);for(r++;r<e.length&&ie(e.charCodeAt(r));)r++}let n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if(r++,(r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&ie(e.charCodeAt(r))){for(r++;r<e.length&&ie(e.charCodeAt(r));)r++;n=r}else d=3;return e.substring(t,n)}(),s=11;default:for(;r<n&&p(t);)r++,t=e.charCodeAt(r);if(i!==r){switch(o=e.substring(i,r),o){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return o+=String.fromCharCode(t),r++,s=16}}function p(e){if(re(e)||oe(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,o="",i=0,s=16,d=0},getPosition:()=>r,scan:t?function(){let e;do{e=f()}while(e>=12&&e<=15);return e}:f,getToken:()=>s,getTokenValue:()=>o,getTokenOffset:()=>i,getTokenLength:()=>r-i,getTokenStartLine:()=>l,getTokenStartCharacter:()=>i-u,getTokenError:()=>d}}(e,!1),o=[];let i=0;function s(e){return e?t=>0===i&&e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function a(e){return e?t=>0===i&&e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>o.slice()):()=>!0}function l(e){return e?()=>{i>0?i++:!1===e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>o.slice())&&(i=1)}:()=>!0}function c(e){return e?()=>{i>0&&i--,0===i&&e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:()=>!0}const u=l(t.onObjectBegin),d=a(t.onObjectProperty),h=c(t.onObjectEnd),f=l(t.onArrayBegin),p=c(t.onArrayEnd),m=a(t.onLiteralValue),g=s(t.onSeparator),y=(b=t.onComment)?()=>0===i&&b(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0,v=s(t.onError);var b;const x=n&&n.disallowComments,E=n&&n.allowTrailingComma;function w(){for(;;){const e=r.scan();switch(r.getTokenError()){case 4:C(14);break;case 5:C(15);break;case 3:C(13);break;case 1:x||C(11);break;case 2:C(12);break;case 6:C(16)}switch(e){case 12:case 13:x?C(10):y();break;case 16:C(1);break;case 15:case 14:break;default:return e}}}function C(e,t=[],n=[]){if(v(e),t.length+n.length>0){let e=r.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){w();break}if(-1!==n.indexOf(e))break;e=w()}}}function S(e){const t=r.getTokenValue();return e?m(t):(d(t),o.push(t)),w(),!0}function k(){return 10!==r.getToken()?(C(3,[],[2,5]),!1):(S(!1),6===r.getToken()?(g(":"),w(),_()||C(4,[],[2,5])):C(5,[],[2,5]),o.pop(),!0)}function _(){switch(r.getToken()){case 3:return function(){f(),w();let e=!0,t=!1;for(;4!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(t||C(4,[],[]),g(","),w(),4===r.getToken()&&E)break}else t&&C(6,[],[]);e?(o.push(0),e=!1):o[o.length-1]++,_()||C(4,[],[4,5]),t=!0}return p(),e||o.pop(),4!==r.getToken()?C(8,[4],[]):w(),!0}();case 1:return function(){u(),w();let e=!1;for(;2!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(e||C(4,[],[]),g(","),w(),2===r.getToken()&&E)break}else e&&C(6,[],[]);k()||C(4,[],[2,5]),e=!0}return h(),2!==r.getToken()?C(7,[2],[]):w(),!0}();case 10:return S(!0);default:return function(){switch(r.getToken()){case 11:const e=r.getTokenValue();let t=Number(e);isNaN(t)&&(C(2),t=0),m(t);break;case 7:m(null);break;case 8:m(!0);break;case 9:m(!1);break;default:return!1}return w(),!0}()}}return w(),17===r.getToken()?!!n.allowEmptyContent||(C(4,[],[]),!1):_()?(17!==r.getToken()&&C(9,[],[]),!0):(C(4,[],[]),!1)}new Array(ae).fill(0).map((e,t)=>"\n"+" ".repeat(t)),new Array(ae).fill(0).map((e,t)=>"\r"+" ".repeat(t)),new Array(ae).fill(0).map((e,t)=>"\r\n"+" ".repeat(t)),new Array(ae).fill(0).map((e,t)=>"\n"+"\t".repeat(t)),new Array(ae).fill(0).map((e,t)=>"\r"+"\t".repeat(t)),new Array(ae).fill(0).map((e,t)=>"\r\n"+"\t".repeat(t)),function(e){e.DEFAULT={allowTrailingComma:!1}}(le||(le={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(ce||(ce={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(ue||(ue={}));var he;async function fe(e){const[t,{printers:r},{parsers:o}]=await Promise.all([n.e(9794).then(n.bind(n,17413)),n.e(6727).then(n.bind(n,16727)),n.e(2972).then(n.t.bind(n,2972,23))]);return t.format(e,{parser:"jsonc",plugins:[{printers:r},{parsers:o}],printWidth:0})}!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(he||(he={}));const pe=new Intl.ListFormat("en",{style:"long",type:"conjunction"});function me(e=""){let t;try{t=function(e){const t=[],n=function(e,t=[],n=le.DEFAULT){let r=null,o=[];const i=[];function s(e){Array.isArray(o)?o.push(e):null!==r&&(o[r]=e)}const a={onObjectBegin:()=>{const e={};s(e),i.push(o),o=e,r=null},onObjectProperty:e=>{r=e},onObjectEnd:()=>{o=i.pop()},onArrayBegin:()=>{const e=[];s(e),i.push(o),o=e,r=null},onArrayEnd:()=>{o=i.pop()},onLiteralValue:s,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}};return de(e,a,n),o[0]}(e,t,{allowTrailingComma:!0,allowEmptyContent:!0});if(t.length){const e=pe.format(t.map(({error:e})=>function(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}(e)));throw new SyntaxError(e)}return n}(e)}catch(e){throw new Error(`are invalid JSON: ${e instanceof Error?e.message:e}.`)}if(t){if("object"!=typeof t||Array.isArray(t))throw new TypeError("are not a JSON object.");return t}}function ge(e,t){let n;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{n=null,t(...r)},e)}}var ye=n(11892),ve=n(8063),be=n(16003),xe=n(4405),Ee=n(4049),we=n(93544),Ce=n(79222),Se=n(14231),ke=n(34058);class _e{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new xe.eO(e,{nodes:n}))}getErrors(){return this._errors}}function Te(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]}).find(e=>e.operation===t))||void 0===n?void 0:n.type}function Ae(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function De(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const s of n){var r;Ae(e,s),(0,Ce.oH)(s.type)||e.reportError(`The type of ${t.name}.${s.name} must be Output Type but got: ${(0,be.N)(s.type)}.`,null===(r=s.astNode)||void 0===r?void 0:r.type);for(const n of s.args){const r=n.name;var o,i;Ae(e,n),(0,Ce.dX)(n.type)||e.reportError(`The type of ${t.name}.${s.name}(${r}:) must be Input Type but got: ${(0,be.N)(n.type)}.`,null===(o=n.astNode)||void 0===o?void 0:o.type),(0,Ce.xP)(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${s.name}(${r}:) cannot be deprecated.`,[Ve(n.astNode),null===(i=n.astNode)||void 0===i?void 0:i.type])}}}function Ne(e,t){const n=Object.create(null);for(const r of t.getInterfaces())(0,Ce.kD)(r)?t!==r?n[r.name]?e.reportError(`Type ${t.name} can only implement ${r.name} once.`,Pe(t,r)):(n[r.name]=!0,Oe(e,t,r),Re(e,t,r)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Pe(t,r)):e.reportError(`Type ${(0,be.N)(t)} must only implement Interface types, it cannot implement ${(0,be.N)(r)}.`,Pe(t,r))}function Re(e,t,n){const r=t.getFields();for(const l of Object.values(n.getFields())){const c=l.name,u=r[c];if(u){var o,i;(0,we.sP)(e.schema,u.type,l.type)||e.reportError(`Interface field ${n.name}.${c} expects type ${(0,be.N)(l.type)} but ${t.name}.${c} is type ${(0,be.N)(u.type)}.`,[null===(o=l.astNode)||void 0===o?void 0:o.type,null===(i=u.astNode)||void 0===i?void 0:i.type]);for(const r of l.args){const o=r.name,i=u.args.find(e=>e.name===o);var s,a;i?(0,we.n8)(r.type,i.type)||e.reportError(`Interface field argument ${n.name}.${c}(${o}:) expects type ${(0,be.N)(r.type)} but ${t.name}.${c}(${o}:) is type ${(0,be.N)(i.type)}.`,[null===(s=r.astNode)||void 0===s?void 0:s.type,null===(a=i.astNode)||void 0===a?void 0:a.type]):e.reportError(`Interface field argument ${n.name}.${c}(${o}:) expected but ${t.name}.${c} does not provide it.`,[r.astNode,u.astNode])}for(const r of u.args){const o=r.name;!l.args.find(e=>e.name===o)&&(0,Ce.xP)(r)&&e.reportError(`Object field ${t.name}.${c} includes required argument ${o} that is missing from the Interface field ${n.name}.${c}.`,[r.astNode,l.astNode])}}else e.reportError(`Interface field ${n.name}.${c} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes])}}function Oe(e,t,n){const r=t.getInterfaces();for(const o of n.getInterfaces())r.includes(o)||e.reportError(o===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${o.name} because it is implemented by ${n.name}.`,[...Pe(n,o),...Pe(t,n)])}function Fe(e,t){const n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const r=Object.create(null);for(const o of n)r[o.name]?e.reportError(`Union type ${t.name} can only include type ${o.name} once.`,je(t,o.name)):(r[o.name]=!0,(0,Ce.YQ)(o)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${(0,be.N)(o)}.`,je(t,String(o))))}function Me(e,t){const n=t.getValues();0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const t of n)Ae(e,t)}function Ie(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const i of n){var r,o;Ae(e,i),(0,Ce.dX)(i.type)||e.reportError(`The type of ${t.name}.${i.name} must be Input Type but got: ${(0,be.N)(i.type)}.`,null===(r=i.astNode)||void 0===r?void 0:r.type),(0,Ce.YX)(i)&&null!=i.deprecationReason&&e.reportError(`Required input field ${t.name}.${i.name} cannot be deprecated.`,[Ve(i.astNode),null===(o=i.astNode)||void 0===o?void 0:o.type]),t.isOneOf&&Le(t,i,e)}}function Le(e,t,n){var r;(0,Ce.bd)(t.type)&&n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,null===(r=t.astNode)||void 0===r?void 0:r.type),void 0!==t.defaultValue&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function Pe(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]}).filter(e=>e.name.value===t.name)}function je(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]}).filter(e=>e.name.value===t)}function Ve(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find(e=>e.name.value===Se.yK.name)}var Be=n(34627),qe=n(26788);const $e=e=>t=>p(e,t&&b(t)),ze=h((e,t)=>({actions:{async initialize(){if(Boolean(t().monaco))return;const[r,{initializeMode:o}]=await Promise.all([Promise.all([n.e(3227),n.e(5866),n.e(2955),n.e(4837),n.e(490),n.e(580),n.e(1151),n.e(6214),n.e(2823),n.e(4760),n.e(3839)]).then(n.bind(n,43797)),Promise.all([n.e(3227),n.e(5866),n.e(2955),n.e(4837),n.e(490),n.e(580),n.e(1151),n.e(6214),n.e(2823),n.e(4760),n.e(7537)]).then(n.bind(n,18735))]);globalThis.__MONACO=r,r.languages.json.jsonDefaults.setDiagnosticsOptions(B),r.editor.defineTheme(z.dark,W.dark),r.editor.defineTheme(z.light,W.light),navigator.userAgent.includes("Firefox/")&&async function(){const{MouseTargetFactory:e}=await Promise.all([n.e(2955),n.e(2823),n.e(4097)]).then(n.bind(n,82776)),t=e._doHitTestWithCaretPositionFromPoint;e._doHitTestWithCaretPositionFromPoint=(...e)=>{const[n,r]=e;return n.viewDomNode.ownerDocument.caretPositionFromPoint(r.clientX,r.clientY)?t(...e):{type:0}}}();const i=o({diagnosticSettings:q});e({monaco:r,monacoGraphQL:i})}}})),Ke=$e(ze);function Ue(e,t,n){const r=(0,l.c)(10),{updateActiveTabValues:o}=it();let i;r[0]!==n?(i=e=>({editor:e["variables"===n?"variableEditor":"headerEditor"],storage:e.storage}),r[0]=n,r[1]=i):i=r[1];const{editor:s,storage:a}=ot(i);let u,d;r[2]!==e||r[3]!==s||r[4]!==a||r[5]!==t||r[6]!==n||r[7]!==o?(u=()=>{if(!s)return;const r=ge(500,e=>{null!==t&&a.set(t,e)}),i=ge(100,e=>{o({[n]:e})}),l=s.getModel().onDidChangeContent(t=>{const n=s.getValue();r(n),i(n),null==e||e(n)});return()=>{l.dispose()}},d=[e,s,t,n,o,a],r[2]=e,r[3]=s,r[4]=a,r[5]=t,r[6]=n,r[7]=o,r[8]=u,r[9]=d):(u=r[8],d=r[9]),(0,c.useEffect)(u,d)}const We=(e,t)=>{const n=(0,l.c)(4),r=(0,c.useRef)(!1);let o,i,s;n[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>()=>{r.current=!1},i=[],n[0]=o,n[1]=i):(o=n[0],i=n[1]),(0,c.useEffect)(o,i),n[2]!==e?(s=()=>{if(r.current)return e();r.current=!0},n[2]=e,n[3]=s):s=n[3],(0,c.useEffect)(s,t)};var He=n(26241),Ge=n(45427),Qe=n.n(Ge),Ye=n(42999),Xe=n.n(Ye),Je=n(27329);const Ze=new WeakMap;function et(e,t){var n,r,o;let i=["data",...t.path??[]];for(const n of[e,t])if(n.pending){let t=Ze.get(e);void 0===t&&(t=new Map,Ze.set(e,t));for(const{id:e,path:r}of n.pending)t.set(e,["data",...r])}const{items:s,data:a,id:l}=t;if(s)if(l){if(i=null==(n=Ze.get(e))?void 0:n.get(l),void 0===i)throw new Error("Invalid incremental delivery format.");Xe()(e,i.join(".")).push(...s)}else{i=["data",...t.path??[]];for(const t of s)Qe()(e,i.join("."),t),i[i.length-1]++}if(a){if(l){if(i=null==(r=Ze.get(e))?void 0:r.get(l),void 0===i)throw new Error("Invalid incremental delivery format.");const{subPath:n}=t;void 0!==n&&(i=[...i,...n])}Qe()(e,i.join("."),a,{merge:!0})}if(t.errors&&(e.errors||(e.errors=[]),e.errors.push(...t.errors)),t.extensions&&Qe()(e,"extensions",t.extensions,{merge:!0}),t.incremental)for(const n of t.incremental)et(e,n);if(t.completed)for(const{id:n,errors:r}of t.completed)null==(o=Ze.get(e))||o.delete(n),r&&(e.errors||(e.errors=[]),e.errors.push(...r))}const tt=(0,c.createContext)(null),nt=e=>{const t=(0,l.c)(5);if(!e.fetcher)throw new TypeError("The `GraphiQLProvider` component requires a `fetcher` function to be passed as prop.");if(e.validationRules)throw new TypeError("The `validationRules` prop has been removed. Use custom GraphQL worker, see https://github.com/graphql/graphiql/tree/main/packages/monaco-graphql#custom-webworker-for-passing-non-static-config-to-worker.");if(e.query)throw new TypeError("The `query` prop has been removed. Use `initialQuery` prop instead, or set value programmatically using:\n\nconst queryEditor = useGraphiQL(state => state.queryEditor)\n\nuseEffect(() => {\n queryEditor.setValue(query)\n}, [query])");if(e.variables)throw new TypeError("The `variables` prop has been removed. Use `initialVariables` prop instead, or set value programmatically using:\n\nconst variableEditor = useGraphiQL(state => state.variableEditor)\n\nuseEffect(() => {\n variableEditor.setValue(variables)\n}, [variables])");if(e.headers)throw new TypeError("The `headers` prop has been removed. Use `initialHeaders` prop instead, or set value programmatically using:\n\nconst headerEditor = useGraphiQL(state => state.headerEditor)\n\nuseEffect(() => {\n headerEditor.setValue(headers)\n}, [headers])");if(e.response)throw new TypeError("The `response` prop has been removed. Set value programmatically using:\n\nconst responseEditor = useGraphiQL(state => state.responseEditor)\n\nuseEffect(() => {\n responseEditor.setValue(response)\n}, [response])");const{actions:n}=Ke(),[r,o]=(0,c.useState)(!1);let i,s,u;return t[0]!==n?(i=()=>{n.initialize(),o(!0)},t[0]=n,t[1]=i):i=t[1],t[2]===Symbol.for("react.memo_cache_sentinel")?(s=[],t[2]=s):s=t[2],(0,c.useEffect)(i,s),r?(t[3]!==e?(u=(0,a.jsx)(rt,{...e}),t[3]=e,t[4]=u):u=t[4],u):null},rt=e=>{const t=(0,l.c)(76);let n,r,o,i,s,u,d,h,f,p,g,y,v,b,w,C,S,k,_,I,L,P,j,V,B,q,K;t[0]!==e?(({defaultHeaders:o,defaultQuery:C,defaultTabs:i,externalFragments:s,onEditOperationName:f,onTabChange:g,shouldPersistHeaders:_,onCopyQuery:h,onPrettifyQuery:I,dangerouslyAssumeSchemaIsValid:L,fetcher:u,inputValueDeprecation:P,introspectionQueryName:j,onSchemaChange:p,schema:w,schemaDescription:V,getDefaultFieldNames:d,operationName:B,onTogglePluginVisibility:y,plugins:q,referencePlugin:b,visiblePlugin:K,children:r,defaultTheme:S,editorTheme:k,storage:n,...v}=e),t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=i,t[5]=s,t[6]=u,t[7]=d,t[8]=h,t[9]=f,t[10]=p,t[11]=g,t[12]=y,t[13]=v,t[14]=b,t[15]=w,t[16]=C,t[17]=S,t[18]=k,t[19]=_,t[20]=I,t[21]=L,t[22]=P,t[23]=j,t[24]=V,t[25]=B,t[26]=q,t[27]=K):(n=t[1],r=t[2],o=t[3],i=t[4],s=t[5],u=t[6],d=t[7],h=t[8],f=t[9],p=t[10],g=t[11],y=t[12],v=t[13],b=t[14],w=t[15],C=t[16],S=t[17],k=t[18],_=t[19],I=t[20],L=t[21],P=t[22],j=t[23],V=t[24],B=t[25],q=t[26],K=t[27]);const U=void 0===C?M:C,W=void 0!==_&&_,G=void 0===I?$:I,Q=void 0!==L&&L,re=void 0!==P&&P,oe=void 0===j?"IntrospectionQuery":j,ie=void 0!==V&&V,se=void 0===B?null:B;let ae;t[28]!==q?(ae=void 0===q?[]:q,t[28]=q,t[29]=ae):ae=t[29];const le=ae,ce=void 0===S?null:S,ue=void 0===k?z:k,de=(0,c.useRef)(null),he=(0,c.useId)();if(null===de.current){let e;if(t[30]!==n||t[31]!==o||t[32]!==U||t[33]!==i||t[34]!==ce||t[35]!==ue||t[36]!==s||t[37]!==u||t[38]!==d||t[39]!==re||t[40]!==oe||t[41]!==h||t[42]!==f||t[43]!==G||t[44]!==p||t[45]!==g||t[46]!==y||t[47]!==se||t[48]!==le||t[49]!==v.initialHeaders||t[50]!==v.initialQuery||t[51]!==v.initialVariables||t[52]!==b||t[53]!==ie||t[54]!==W||t[55]!==he||t[56]!==K){const r=new x.StorageAPI(n),a=function(){const e=r.get(A);return le.find(t=>t.title===e)||(e&&r.set(A,""),K)},l=function(){const e=r.get(F);switch(e){case"light":return"light";case"dark":return"dark";default:return"string"==typeof e&&r.set(F,""),ce}},c=function(){const e=v.initialQuery??r.get(D),t=v.initialVariables??r.get(N),n=v.initialHeaders??r.get(T),{tabs:c,activeTabIndex:w}=function({defaultQuery:e,defaultHeaders:t,headers:n,query:r,variables:o,defaultTabs:i=[{query:r??e,variables:o,headers:n??t}],shouldPersistHeaders:s,storage:a}){const l=a.get(R);try{if(!l)throw new Error("Storage for tabs is empty");const e=JSON.parse(l),t=s?n:void 0;if((c=e)&&"object"==typeof c&&!Array.isArray(c)&&function(e,t){return t in e&&"number"==typeof e[t]}(c,"activeTabIndex")&&"tabs"in c&&Array.isArray(c.tabs)&&c.tabs.every(H)){const i=ee({query:r,variables:o,headers:t});let s=-1;for(let t=0;t<e.tabs.length;t++){const n=e.tabs[t];n.hash=ee({query:n.query,variables:n.variables,headers:n.headers}),n.hash===i&&(s=t)}if(s>=0)e.activeTabIndex=s;else{const t=r?te(r):null;e.tabs.push({id:Z(),hash:i,title:t||ne,query:r,variables:o,headers:n,operationName:t,response:null}),e.activeTabIndex=e.tabs.length-1}return e}throw new Error("Storage for tabs is invalid")}catch{return{activeTabIndex:0,tabs:i.map(X)}}var c}({defaultHeaders:o,defaultQuery:U,defaultTabs:i,headers:n,query:e,shouldPersistHeaders:W,storage:r,variables:t}),C=null!==r.get(O),S=!1!==W&&C?"true"===r.get(O):W,k=(e=>e?m(e):m)((...i)=>{const a=i,l=(m={storage:r},()=>m)(...a);var m;const v=(e=>(t,n)=>{function r({query:e,variables:t,headers:r,response:o}){const{queryEditor:i,variableEditor:s,headerEditor:a,responseEditor:l,defaultHeaders:c}=n();null==i||i.setValue(e??""),null==s||s.setValue(t??""),null==a||a.setValue(r??c??""),null==l||l.setValue(o??"")}const o={addTab(){t(({defaultHeaders:e,onTabChange:t,tabs:o,activeTabIndex:i,actions:s})=>{const a=function(e){const{queryEditor:t,variableEditor:r,headerEditor:o,responseEditor:i,operationName:s}=n();return J(e,{query:(null==t?void 0:t.getValue())??null,variables:(null==r?void 0:r.getValue())??null,headers:(null==o?void 0:o.getValue())??null,response:(null==i?void 0:i.getValue())??null,operationName:s??null})}({tabs:o,activeTabIndex:i}),l={tabs:[...a.tabs,X({headers:e})],activeTabIndex:a.tabs.length};return s.storeTabs(l),r(l.tabs[l.activeTabIndex]),null==t||t(l),l})},changeTab(e){t(({actions:t,onTabChange:n,tabs:o})=>{t.stop();const i={tabs:o,activeTabIndex:e};return t.storeTabs(i),r(i.tabs[i.activeTabIndex]),null==n||n(i),i})},moveTab(e){t(({onTabChange:t,actions:n,tabs:o,activeTabIndex:i})=>{const s=o[i],a={tabs:e,activeTabIndex:e.indexOf(s)};return n.storeTabs(a),r(a.tabs[a.activeTabIndex]),null==t||t(a),a})},closeTab(e){t(({activeTabIndex:t,onTabChange:n,actions:o,tabs:i})=>{t===e&&o.stop();const s={tabs:i.filter((t,n)=>e!==n),activeTabIndex:Math.max(t-1,0)};return o.storeTabs(s),r(s.tabs[s.activeTabIndex]),null==n||n(s),s})},updateActiveTabValues(e){t(({activeTabIndex:t,tabs:n,onTabChange:r,actions:o})=>{const i=J({tabs:n,activeTabIndex:t},e);return o.storeTabs(i),null==r||r(i),i})},setEditor({headerEditor:e,queryEditor:n,responseEditor:r,variableEditor:o}){const i=Object.entries({headerEditor:e,queryEditor:n,responseEditor:r,variableEditor:o}).filter(([e,t])=>t),s=Object.fromEntries(i);t(s)},setOperationName(e){t(({onEditOperationName:t,actions:n})=>(n.updateActiveTabValues({operationName:e}),null==t||t(e),{operationName:e}))},setShouldPersistHeaders(e){const{headerEditor:r,tabs:o,activeTabIndex:i,storage:s}=n();if(e){s.set(T,(null==r?void 0:r.getValue())??"");const e=Y({tabs:o,activeTabIndex:i},!0);s.set(R,e)}else s.set(T,""),function(e){const t=e.get(R);if(t){const n=JSON.parse(t);e.set(R,JSON.stringify(n,(e,t)=>"headers"===e?null:t))}}(s);s.set(O,e.toString()),t({shouldPersistHeaders:e})},storeTabs({tabs:e,activeTabIndex:t}){const{shouldPersistHeaders:r,storage:o}=n();ge(500,e=>{o.set(R,e)})(Y({tabs:e,activeTabIndex:t},r))},setOperationFacts({documentAST:e,operationName:n,operations:r}){t({documentAST:e,operationName:n,operations:r})},async copyQuery(){const{queryEditor:e,onCopyQuery:t}=n();if(!e)return;const r=e.getValue();null==t||t(r);try{await navigator.clipboard.writeText(r)}catch(e){console.warn("Failed to copy query!",e)}},async prettifyEditors(){const{queryEditor:e,headerEditor:t,variableEditor:r,onPrettifyQuery:o}=n();if(r)try{const e=r.getValue(),t=await fe(e);t!==e&&r.setValue(t)}catch(e){console.warn("Parsing variables JSON failed, skip prettification.",e)}if(t)try{const e=t.getValue(),n=await fe(e);n!==e&&t.setValue(n)}catch(e){console.warn("Parsing headers JSON failed, skip prettification.",e)}if(e)try{const t=e.getValue(),n=await o(t);n!==t&&e.setValue(n)}catch(e){console.warn("Parsing query failed, skip prettification.",e)}},mergeQuery(){const{queryEditor:e,documentAST:t,schema:r}=n(),o=null==e?void 0:e.getValue();t&&o&&e.setValue((0,E.y)((0,x.mergeAst)(t,r)))}};return{...e,actions:o}})({activeTabIndex:w,defaultHeaders:o,defaultQuery:U,externalFragments:st(s),initialHeaders:n??o??"",initialQuery:e??(0===w?c[0].query:null)??"",initialVariables:t??"",onCopyQuery:h,onEditOperationName:f,onPrettifyQuery:G,onTabChange:g,shouldPersistHeaders:S,tabs:c,uriInstanceId:he.replaceAll(/[:«»]/g,"")+"-"})(...a),C=(e=>(t,n)=>({...e,isFetching:!1,subscription:null,queryId:0,actions:{stop(){t(({subscription:e})=>(null==e||e.unsubscribe(),{isFetching:!1,subscription:null}))},async run(){const{externalFragments:e,headerEditor:r,queryEditor:o,responseEditor:i,variableEditor:s,actions:a,operationName:l,documentAST:c,subscription:u,overrideOperationName:d,queryId:h,fetcher:f}=n();if(!o||!i)return;if(u)return void a.stop();function p(e){null==i||i.setValue(e),a.updateActiveTabValues({response:e})}function m(e,t){if(!t)return;const n=t===s?"Variables":"Request headers";p((0,x.formatError)({message:`${n} ${e.message}`}))}const g=h+1;t({queryId:g});let y,v,b=function(){const{queryEditor:e,schema:t,getDefaultFieldNames:r}=n();if(!e)return;const o=e.getValue(),{insertions:i,result:s=""}=(0,x.fillLeafs)(t,o,r);if(!i.length)return s;const a=e.getModel(),l=e.getSelection(),c=a.getOffsetAt(l.getPosition());a.setValue(s);let u=0;const d=i.map(({index:e,string:t})=>{const n=a.getPositionAt(e+u),r=a.getPositionAt(e+(u+=t.length));return{range:new Je.Q(n.lineNumber,n.column,r.lineNumber,r.column),options:{className:"auto-inserted-leaf",hoverMessage:{value:"Automatically added leaf fields"},isWholeLine:!1}}}),h=e.createDecorationsCollection([]);h.set(d),setTimeout(()=>{h.clear()},7e3);let f=c;for(const{index:e,string:t}of i)e<c&&(f+=t.length);const p=a.getPositionAt(f);return e.setPosition(p),s}()||o.getValue();try{y=me(null==s?void 0:s.getValue())}catch(e){return void m(e,s)}try{v=me(null==r?void 0:r.getValue())}catch(e){return void m(e,r)}const w=c?(0,He.JR)(c,e):[];w.length&&(b+="\n"+w.map(e=>(0,E.y)(e)).join("\n")),p(""),t({isFetching:!0});try{const e={},r=r=>{if(g!==n().queryId)return;let o=!!Array.isArray(r)&&r;if(!o&&"object"==typeof r&&"hasNext"in r&&(o=[r]),o){for(const t of o)et(e,t);t({isFetching:!1}),p((0,x.formatResult)(e))}else t({isFetching:!1}),p((0,x.formatResult)(r))},o=f({query:b,variables:y,operationName:d??l},{headers:v,documentAST:c}),i=await o;if((0,x.isObservable)(i)){const e=i.subscribe({next(e){r(e)},error(e){t({isFetching:!1}),p((0,x.formatError)(e)),t({subscription:null})},complete(){t({isFetching:!1,subscription:null})}});t({subscription:e})}else if((0,x.isAsyncIterable)(i)){const e={unsubscribe:()=>{var e,t;return null==(t=(e=i[Symbol.asyncIterator]()).return)?void 0:t.call(e)}};t({subscription:e});for await(const e of i)r(e);t({isFetching:!1,subscription:null})}else r(i)}catch(e){t({isFetching:!1}),p((0,x.formatError)(e)),t({subscription:null})}}}}))({fetcher:u,getDefaultFieldNames:d,overrideOperationName:se})(...a),k=(e=>t=>({plugins:[],visiblePlugin:null,...e,actions:{setVisiblePlugin(e=null){t(t=>{const{visiblePlugin:n,plugins:r,onTogglePluginVisibility:o,storage:i}=t,s="string"==typeof e,a=e&&r.find(t=>(s?t.title:t)===e)||null;return a===n?t:(null==o||o(a),i.set(A,(null==a?void 0:a.title)??""),{visiblePlugin:a})})},setPlugins(e){const n=new Set,r="All GraphiQL plugins must have a unique title";for(const{title:t}of e){if("string"!=typeof t||!t)throw new Error(r);if(n.has(t))throw new Error(`${r}, found two plugins with the title '${t}'`);n.add(t)}t({plugins:e})}}}))({onTogglePluginVisibility:y,referencePlugin:b})(...a),_=(e=>(t,n)=>({...e,fetchError:null,isIntrospecting:!1,schema:null,validationErrors:[],schemaReference:null,requestCounter:0,shouldIntrospect:!0,actions:{setSchemaReference(e){t({schemaReference:e})},async introspect(){const{requestCounter:e,shouldIntrospect:r,onSchemaChange:o,headerEditor:i,fetcher:s,inputValueDeprecation:a,introspectionQueryName:l,schemaDescription:c}=n();if(!r)return;const u=e+1;t({requestCounter:u,isIntrospecting:!0,fetchError:null});try{let e,r=function(e){const t=(0,x.fetcherReturnToPromise)(s({query:e,operationName:l},d));if(!(0,x.isPromise)(t))throw new TypeError("Fetcher did not return a Promise for introspection.");return t};try{e=me(null==i?void 0:i.getValue())}catch(e){throw new Error(`Introspection failed. Request headers ${e instanceof Error?e.message:e}`)}const d=e?{headers:e}:{},h=function(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"";function o(e){return t.inputValueDeprecation?e:""}const i=t.oneOf?"isOneOf":"";return`\n query IntrospectionQuery {\n __schema {\n ${t.schemaDescription?n:""}\n queryType { name kind }\n mutationType { name kind }\n subscriptionType { name kind }\n types {\n ...FullType\n }\n directives {\n name\n ${n}\n ${t.directiveIsRepeatable?"isRepeatable":""}\n locations\n args${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${n}\n ${r}\n ${i}\n fields(includeDeprecated: true) {\n name\n ${n}\n args${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${o("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${n}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${n}\n type { ...TypeRef }\n defaultValue\n ${o("isDeprecated")}\n ${o("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n `}({inputValueDeprecation:a,schemaDescription:c}),f="IntrospectionQuery"===l?h:h.replace("query IntrospectionQuery",`query ${l}`);let p,m=await r(f);if("object"==typeof m&&"data"in m||(m=await r(h.replace("subscriptionType { name }",""))),t({isIntrospecting:!1}),m.data&&"__schema"in m.data)p=m.data;else{const e="string"==typeof m?m:(0,x.formatResult)(m);t({fetchError:e})}if(u!==n().requestCounter||!p)return;const g=(0,ve.D)(p);t({schema:g}),null==o||o(g)}catch(e){if(u!==n().requestCounter)return;e instanceof Error&&delete e.stack,t({isIntrospecting:!1,fetchError:(0,x.formatError)(e)})}}}}))({inputValueDeprecation:re,introspectionQueryName:oe,onSchemaChange:p,schemaDescription:ie})(...a),D=(({editorTheme:e})=>(t,n)=>({theme:null,actions:{setTheme(r){const{storage:o}=n();o.set(F,r??""),document.body.classList.remove("graphiql-light","graphiql-dark"),r&&document.body.classList.add(`graphiql-${r}`);const{monaco:i}=ze.getState(),s=r??(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),a=e[s];null==i||i.editor.setTheme(a),t({theme:r,monacoTheme:a})}}}))({editorTheme:ue})(...a);return{...l,...v,...C,...k,..._,...D,actions:{...v.actions,...C.actions,...k.actions,..._.actions,...D.actions}}}),{actions:_}=k.getState();return _.storeTabs({activeTabIndex:w,tabs:c}),_.setPlugins(le),_.setVisiblePlugin(a()),_.setTheme(l()),k};e=c(),t[30]=n,t[31]=o,t[32]=U,t[33]=i,t[34]=ce,t[35]=ue,t[36]=s,t[37]=u,t[38]=d,t[39]=re,t[40]=oe,t[41]=h,t[42]=f,t[43]=G,t[44]=p,t[45]=g,t[46]=y,t[47]=se,t[48]=le,t[49]=v.initialHeaders,t[50]=v.initialQuery,t[51]=v.initialVariables,t[52]=b,t[53]=ie,t[54]=W,t[55]=he,t[56]=K,t[57]=e}else e=t[57];de.current=e}let pe,xe,we,Re,Oe,Le,Pe,je,Be;return t[58]!==u?(pe=()=>{de.current.setState({fetcher:u})},xe=[u],t[58]=u,t[59]=pe,t[60]=xe):(pe=t[59],xe=t[60]),We(pe,xe),t[61]!==le||t[62]!==K?(we=()=>{const{actions:e}=de.current.getState();e.setPlugins(le),e.setVisiblePlugin(K)},Re=[le,K],t[61]=le,t[62]=K,t[63]=we,t[64]=Re):(we=t[63],Re=t[64]),We(we,Re),t[65]!==Q||t[66]!==w?(Oe=()=>{const e=(0,ye.Wl)(w)||null==w?w:"object"==typeof(t=w)&&null!==t&&"__schema"in t?(0,ve.D)(w):void 0;var t;const n=!e||Q?[]:function(e){if((0,ye.GU)(e),e.__validationErrors)return e.__validationErrors;const t=new _e(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!(0,Ce.YQ)(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${(0,be.N)(n)}.`,null!==(r=Te(t,Ee.cE.QUERY))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const o=t.getMutationType();var i;o&&!(0,Ce.YQ)(o)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${(0,be.N)(o)}.`,null!==(i=Te(t,Ee.cE.MUTATION))&&void 0!==i?i:o.astNode);const s=t.getSubscriptionType();var a;s&&!(0,Ce.YQ)(s)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${(0,be.N)(s)}.`,null!==(a=Te(t,Ee.cE.SUBSCRIPTION))&&void 0!==a?a:s.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if((0,Se.qT)(n)){Ae(e,n),0===n.locations.length&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(const r of n.args){var t;Ae(e,r),(0,Ce.dX)(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${(0,be.N)(r.type)}.`,r.astNode),(0,Ce.xP)(r)&&null!=r.deprecationReason&&e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[Ve(r.astNode),null===(t=r.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${(0,be.N)(n)}.`,null==n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],r=Object.create(null);return function o(i){if(t[i.name])return;t[i.name]=!0,r[i.name]=n.length;const s=Object.values(i.getFields());for(const t of s)if((0,Ce.bd)(t.type)&&(0,Ce.qK)(t.type.ofType)){const i=t.type.ofType,s=r[i.name];if(n.push(t),void 0===s)o(i);else{const t=n.slice(s),r=t.map(e=>e.name).join(".");e.reportError(`Cannot reference Input Object "${i.name}" within itself through a series of non-null fields: "${r}".`,t.map(e=>e.astNode))}n.pop()}r[i.name]=void 0}}(e),n=e.schema.getTypeMap();for(const r of Object.values(n))(0,Ce.sy)(r)?((0,ke.Yh)(r)||Ae(e,r),(0,Ce.YQ)(r)||(0,Ce.kD)(r)?(De(e,r),Ne(e,r)):(0,Ce.CK)(r)?Fe(e,r):(0,Ce.oF)(r)?Me(e,r):(0,Ce.qK)(r)&&(Ie(e,r),t(r))):e.reportError(`Expected GraphQL named type but got: ${(0,be.N)(r)}.`,r.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}(e),r=de.current;r.setState(t=>{const{requestCounter:r}=t;return{requestCounter:r+1,schema:e,shouldIntrospect:!e&&null!==w,validationErrors:n}});const{actions:o}=r.getState();o.introspect()},t[65]=Q,t[66]=w,t[67]=Oe):Oe=t[67],t[68]!==Q||t[69]!==u||t[70]!==w?(Le=[w,Q,u],t[68]=Q,t[69]=u,t[70]=w,t[71]=Le):Le=t[71],(0,c.useEffect)(Oe,Le),t[72]===Symbol.for("react.memo_cache_sentinel")?(Pe=()=>{const e=function(e){if(e.ctrlKey&&"R"===e.key){const{actions:e}=de.current.getState();e.introspect()}};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},je=[],t[72]=Pe,t[73]=je):(Pe=t[72],je=t[73]),(0,c.useEffect)(Pe,je),t[74]!==r?(Be=(0,a.jsx)(tt.Provider,{value:de,children:r}),t[74]=r,t[75]=Be):Be=t[75],Be};function ot(e){const t=(0,c.useContext)(tt);if(!t)throw new Error('"useGraphiQL" hook must be used within a <GraphiQLProvider> component.\nIt looks like you are trying to use the hook outside the GraphiQL provider tree.');return p(t.current,b(e))}const it=()=>ot(at);function st(e){const t=new Map;if(e)if(Array.isArray(e))for(const n of e)t.set(n.name.value,n);else{if("string"!=typeof e)throw new TypeError("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of `FragmentDefinitionNode` objects.");(0,Be.YR)((0,qe.qg)(e),{FragmentDefinition(e){t.set(e.name.value,e)}})}return t}function at(e){return e.actions}function lt(...e){return t=>{const n=Object.create(null);for(const r of e)n[r]=t[r];return n}}function ct(e){const t=(0,l.c)(26),{defaultSizeRelation:n,direction:r,initiallyHidden:o,onHiddenElementChange:i,sizeThresholdFirst:s,sizeThresholdSecond:a,storageKey:u}=e,d=void 0===n?1:n,h=void 0===s?100:s,f=void 0===a?100:a,p=ot(ut);let m;t[0]!==o||t[1]!==p||t[2]!==u?(m=()=>{const e=u&&p.get(u);return e===dt||"first"===o?"first":e===ht||"second"===o?"second":null},t[0]=o,t[1]=p,t[2]=u,t[3]=m):m=t[3];const[g,y]=(0,c.useState)(m),v=(0,c.useRef)(null),b=(0,c.useRef)(null),x=(0,c.useRef)(null),E=(0,c.useRef)(`${d}`);let w,C,S,k,_,T,A;return t[4]!==p||t[5]!==u?(w=()=>{const e=u&&p.get(u)||E.current;v.current&&(v.current.style.flex=e===dt||e===ht?E.current:e),x.current&&(x.current.style.flex="1")},t[4]=p,t[5]=u,t[6]=w):w=t[6],t[7]!==r||t[8]!==p||t[9]!==u?(C=[r,p,u],t[7]=r,t[8]=p,t[9]=u,t[10]=C):C=t[10],(0,c.useEffect)(w,C),t[11]!==g||t[12]!==p||t[13]!==u?(S=()=>{const e=function(e){if(e.style.left="-1000px",e.style.position="absolute",e.style.opacity="0",!v.current)return;const t=parseFloat(v.current.style.flex);(!Number.isFinite(t)||t<1)&&(v.current.style.flex="1")},t=function(e){if(e.style.left="",e.style.position="",e.style.opacity="",!u)return;const t=p.get(u);v.current&&t!==dt&&t!==ht&&(v.current.style.flex=t||E.current)};for(const n of["first","second"]){const r=("first"===n?v:x).current;r&&(n===g?e(r):t(r))}},k=[g,p,u],t[11]=g,t[12]=p,t[13]=u,t[14]=S,t[15]=k):(S=t[14],k=t[15]),(0,c.useEffect)(S,k),t[16]!==r||t[17]!==i||t[18]!==h||t[19]!==f||t[20]!==p||t[21]!==u?(T=()=>{if(!b.current||!v.current||!x.current)return;const e=ge(500,e=>{u&&p.set(u,e)}),t=function(e){y(t=>e===t?t:(null==i||i(e),e))},n=b.current,o=v.current,s=o.parentElement,a="horizontal"===r,l=a?"clientX":"clientY",c=a?"left":"top",d=a?"right":"bottom",m=a?"clientWidth":"clientHeight",g=function(r){if(r.target!==r.currentTarget)return;r.preventDefault();const i=r[l]-n.getBoundingClientRect()[c],a=function(r){if(0===r.buttons)return u();const a=s.getBoundingClientRect(),p=r[l]-a[c]-i,g=a[d]-r[l]+i-n[m];if(p<h)t("first"),e(dt);else if(g<f)t("second"),e(ht);else{t(null);const n=""+p/g;o.style.flex=n,e(n)}};function u(){document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",u)}document.addEventListener("mousemove",a),document.addEventListener("mouseup",u)};n.addEventListener("mousedown",g);const w=function(){v.current&&(v.current.style.flex=E.current),e(E.current),t(null)};return n.addEventListener("dblclick",w),()=>{n.removeEventListener("mousedown",g),n.removeEventListener("dblclick",w)}},_=[r,i,h,f,p,u],t[16]=r,t[17]=i,t[18]=h,t[19]=f,t[20]=p,t[21]=u,t[22]=_,t[23]=T):(_=t[22],T=t[23]),(0,c.useEffect)(T,_),t[24]!==g?(A={dragBarRef:b,hiddenElement:g,firstRef:v,setHiddenElement:y,secondRef:x},t[24]=g,t[25]=A):A=t[25],A}function ut(e){return e.storage}const dt="hide-first",ht="hide-second",ft=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"0 0 14 14","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("path",{stroke:"currentColor",strokeWidth:1.2,d:"M5.048 1.408a2.76 2.76 0 0 1 3.904 0l3.64 3.64a2.76 2.76 0 0 1 0 3.904l-3.64 3.64a2.76 2.76 0 0 1-3.904 0l-3.64-3.64a2.76 2.76 0 0 1 0-3.904z"}),c.createElement("rect",{width:2,height:2,x:6,y:6,fill:"currentColor",rx:1}))),pt=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"0 0 14 9","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"m1 1 6 6 6-6"}))),mt=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"0 0 7 10","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("path",{stroke:"currentColor",strokeWidth:1.75,d:"m6 1.048-4 4 4 4"}))),gt=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"0 0 14 9","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M13 8 7 2 1 8"}))),yt=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",stroke:"currentColor",strokeWidth:3,viewBox:"0 0 14 14","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("path",{d:"m1 1 12 12m0-12L1 13"}))),vt=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"-2 -2 22 22","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M11.25 14.21v1.025a2.015 2.015 0 0 1-2.015 2.015h-6.47A2.015 2.015 0 0 1 .75 15.235v-6.47c0-1.113.902-2.015 2.015-2.015h1.024"}),c.createElement("rect",{width:10.5,height:10.5,x:6.75,y:.75,stroke:"currentColor",strokeWidth:1.5,rx:2.207}))),bt=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"0 0 14 14","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("path",{stroke:"currentColor",strokeWidth:1.2,d:"M5.048 1.408a2.76 2.76 0 0 1 3.904 0l3.64 3.64a2.76 2.76 0 0 1 0 3.904l-3.64 3.64a2.76 2.76 0 0 1-3.904 0l-3.64-3.64a2.76 2.76 0 0 1 0-3.904zM5 9l4-4M5 5l4 4"}))),xt=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"0 0 12 12","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("path",{stroke:"currentColor",strokeWidth:1.2,d:"m4 8 4-4M4 4l4 4"}),c.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.5 1.2H9A1.8 1.8 0 0 1 10.8 3v6A1.8 1.8 0 0 1 9 10.8h-.5V12H9a3 3 0 0 0 3-3V3a3 3 0 0 0-3-3h-.5zm-5 0V0H3a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h.5v-1.2H3A1.8 1.8 0 0 1 1.2 9V3A1.8 1.8 0 0 1 3 1.2z",clipRule:"evenodd"}))),Et=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"0 0 12 12","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("rect",{width:10.8,height:10.8,x:.6,y:.6,stroke:"currentColor",strokeWidth:1.2,rx:3.4}),c.createElement("path",{stroke:"currentColor",strokeWidth:1.2,d:"m4 8 4-4M4 4l4 4"}))),wt=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",viewBox:"0 0.5 12 12","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("rect",{width:2,height:2,x:7,y:5.5,fill:"currentColor",rx:1,transform:"rotate(90 7 5.5)"}),c.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.8 9v.5A1.8 1.8 0 0 1 9 11.3H3a1.8 1.8 0 0 1-1.8-1.8V9H0v.5a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3V9zm0-5H12v-.5a3 3 0 0 0-3-3H3a3 3 0 0 0-3 3V4h1.2v-.5A1.8 1.8 0 0 1 3 1.7h6a1.8 1.8 0 0 1 1.8 1.8z",clipRule:"evenodd"}))),Ct=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"0 0 20 24","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M.75 3A2.25 2.25 0 0 1 3 .75h14.25a1 1 0 0 1 1 1v3.5"}),c.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M.75 3A2.25 2.25 0 0 0 3 5.25h15.25a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3A2.25 2.25 0 0 1 .75 21z"}),c.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M3 5.25A2.25 2.25 0 0 1 .75 3v18A2.25 2.25 0 0 0 3 23.25h15.25a1 1 0 0 0 1-1v-16a1 1 0 0 0-1-1zM13 11H6v1.5h7z",clipRule:"evenodd"}))),St=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"0 0 20 24","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M.75 3A2.25 2.25 0 0 0 3 5.25h14.25M.75 3A2.25 2.25 0 0 1 3 .75h13.25a1 1 0 0 1 1 1v3.5M.75 3v18A2.25 2.25 0 0 0 3 23.25h15.25a1 1 0 0 0 1-1v-16a1 1 0 0 0-1-1h-1M13 11.75H6"}))),kt=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"0 0 12 12","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("rect",{width:2,height:2,x:5,y:5,fill:"currentColor",rx:1}),c.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.5 1.2H9A1.8 1.8 0 0 1 10.8 3v6A1.8 1.8 0 0 1 9 10.8h-.5V12H9a3 3 0 0 0 3-3V3a3 3 0 0 0-3-3h-.5zm-5 0V0H3a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h.5v-1.2H3A1.8 1.8 0 0 1 1.2 9V3A1.8 1.8 0 0 1 3 1.2z",clipRule:"evenodd"}))),_t=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"0 0 12 13","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("rect",{width:10.8,height:10.8,x:.6,y:1.1,stroke:"currentColor",strokeWidth:1.2,rx:2.4}),c.createElement("rect",{width:2,height:2,x:5,y:5.5,fill:"currentColor",rx:1}))),Tt=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"0 0 24 20","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("path",{stroke:"currentColor",strokeLinecap:"square",strokeWidth:1.5,d:"m1.594 9.523 3.279 3.471 3.206-3.582M13.75 5.25v5.5h5"}),c.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M4.954 11.933A9.25 9.25 0 1 1 14 19.25"}))),At=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"0 0 12 12","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("circle",{cx:6,cy:6,r:5.4,stroke:"currentColor",strokeDasharray:"4.241025 4.241025",strokeWidth:1.2,transform:"rotate(22.5 6 6)"}),c.createElement("circle",{cx:6,cy:6,r:1,fill:"currentColor"}))),Dt=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"0 0 19 18","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.125,d:"M1.5 14.565a2.435 2.435 0 0 0 4.87 0v-2.434H3.935A2.434 2.434 0 0 0 1.5 14.564M3.935 1a2.435 2.435 0 1 0 0 4.87H6.37V3.435a2.435 2.435 0 0 0-2.435-2.434m11.13 11.129H12.63v2.435a2.435 2.435 0 1 0 2.435-2.434m-2.433-6.263H6.37v6.26h6.262z"}),c.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.125,d:"M17.5 3.435a2.435 2.435 0 1 0-4.87 0v2.434h2.435A2.435 2.435 0 0 0 17.5 3.435"}))),Nt=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"0 0 13 13","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("circle",{cx:5,cy:5,r:4.35,stroke:"currentColor",strokeWidth:1.3}),c.createElement("path",{stroke:"currentColor",strokeWidth:1.3,d:"m8.46 8.54 3.292 3.293"}))),Rt=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"-2 -2 22 22","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M17.25 6V2.957A2.207 2.207 0 0 0 15.041.75H2.957A2.207 2.207 0 0 0 .75 2.957V6m0 6v3.043c0 1.219.988 2.207 2.207 2.207h12.085a2.207 2.207 0 0 0 2.207-2.207V12"}),c.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"m6 4.5 3 3 3-3m0 9-3-3-3 3"}))),Ot=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"0 0 14 14","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("path",{fill:"currentColor",d:"m.75 13.25-.695-.283a.75.75 0 0 0 .99.972zM12.821 1.833l-.53.53zm0 2.069.53.53zm-2.723-2.723-.53-.53zm2.07 0 .53-.53zM2.58 8.757l.695.283zm.12-.181.531.53zm2.548 2.843-.294-.69zm.172-.116-.53-.53zm-.466-.573c-.865.369-1.536.632-2.219.9-.684.27-1.38.544-2.28.93l.59 1.38a75 75 0 0 1 2.24-.913c.683-.27 1.37-.54 2.257-.918zm-3.51 2.803L3.276 9.04l-1.39-.566-1.83 4.493zm1.787-4.427 7.397-7.397-1.06-1.06L2.17 8.045zm8.406-7.397.654.654 1.06-1.06-.653-.655zm.654 1.663-7.401 7.4 1.06 1.061 7.402-7.4zm0-1.01a.713.713 0 0 1 0 1.01l1.06 1.06a2.213 2.213 0 0 0 0-3.13zm-1.663-.653a.713.713 0 0 1 1.01 0l1.06-1.06a2.213 2.213 0 0 0-3.13 0zm-7.353 7.33a.2.2 0 0 1-.044.067l-1.06-1.06c-.123.122-.22.268-.285.428zm2.267 3.07a1.3 1.3 0 0 0 .409-.276l-1.061-1.06a.2.2 0 0 1 .064-.043z"}),c.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.403,d:"m11.5 4.5-2-2m-4 8-2-2"}))),Ft=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"0 0 16 18","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("path",{fill:"currentColor",d:"M0 1.66A1 1 0 0 1 1.468.778l13.863 7.34a1 1 0 0 1 0 1.767L1.468 17.223A1 1 0 0 1 0 16.339z"}))),Mt=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"currentColor",viewBox:"0 0 10 16","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("path",{fillRule:"evenodd",d:"M4.25 9.25v4.25h1.5V9.25H10v-1.5H5.75V3.5h-1.5v4.25H0v1.5z",clipRule:"evenodd"}))),It=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:25,height:25,fill:"none",viewBox:"0 0 25 25","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("path",{stroke:"currentColor",strokeWidth:1.563,d:"m10.285 24.075 3.429-6m.86 6 2.572-4.286m2.341 4.285 1.236-2.322a5.98 5.98 0 0 0-1.089-7.065l4.164-7.808a1.714 1.714 0 0 0-3.025-1.614l-4.165 7.81a5.98 5.98 0 0 0-6.473 3.025L6 24.073"}),c.createElement("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:1.563,d:"m4 15 1-2 2-1-2-1-1-2-1 2-2 1 2 1zm7.5-7 1.166-2.334L15 4.5l-2.334-1.166L11.5 1l-1.166 2.334L8 4.5l2.334 1.166z"}))),Lt=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"0 0 16 16","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("path",{stroke:"currentColor",strokeLinecap:"square",d:"M4.75 9.25h-3.5v3.5m10-6h3.5v-3.5"}),c.createElement("path",{stroke:"currentColor",d:"M14.104 6.655a6.25 6.25 0 0 0-12.175-.142m-.033 2.832a6.25 6.25 0 0 0 12.174.142"}))),Pt=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"0 0 13 13","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("rect",{width:11.8,height:11.8,x:.6,y:.6,stroke:"currentColor",strokeWidth:1.2,rx:5.9}),c.createElement("path",{stroke:"currentColor",strokeWidth:1.2,d:"M4.25 7.5c0-1.5 1.5-2.5 2.25-1s2.25.5 2.25-1"}))),jt=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"0 0 21 20","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.292 1.927a1.7 1.7 0 0 1-.584-.427L7.866.575A1.741 1.741 0 0 0 4.84 1.83l.064 1.25a1.743 1.743 0 0 1-1.828 1.827l-1.245-.064A1.741 1.741 0 0 0 .575 7.876l.925.836a1.733 1.733 0 0 1 0 2.584l-.925.836a1.742 1.742 0 0 0 1.25 3.028l1.246-.064a1.74 1.74 0 0 1 1.828 1.828l-.064 1.245a1.741 1.741 0 0 0 3.031 1.256l.847-.925a1.732 1.732 0 0 1 2.584 0l.836.925a1.741 1.741 0 0 0 3.031-1.256l-.064-1.245a1.743 1.743 0 0 1 1.828-1.828l1.245.064a1.74 1.74 0 0 0 1.256-3.032l-.925-.836a1.732 1.732 0 0 1 0-2.584l.925-.836a1.742 1.742 0 0 0-1.255-3.032l-1.246.064A1.743 1.743 0 0 1 15.1 3.076l.064-1.245A1.742 1.742 0 0 0 12.133.575l-.842.925a1.73 1.73 0 0 1-2 .427M14.375 10a4.375 4.375 0 1 1-8.75 0 4.375 4.375 0 0 1 8.75 0",clipRule:"evenodd"}))),Vt=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"0 0 14 14","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("path",{fill:"currentColor",stroke:"currentColor",d:"M6.578 1.07a.438.438 0 0 1 .844 0l1.171 3.776c.06.192.23.321.422.321h3.79c.43 0 .609.576.261.84L10 8.341a.48.48 0 0 0-.161.519l1.17 3.775c.134.428-.334.784-.682.52L7.261 10.82a.43.43 0 0 0-.522 0l-3.066 2.333c-.348.265-.816-.091-.683-.519L4.161 8.86a.48.48 0 0 0-.16-.52L.933 6.008c-.348-.264-.17-.84.26-.84h3.791c.192 0 .362-.13.422-.32z"}))),Bt=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"0 0 14 14","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("path",{stroke:"currentColor",strokeWidth:1.5,d:"M6.578 1.07a.438.438 0 0 1 .844 0l1.171 3.776c.06.192.23.321.422.321h3.79c.43 0 .609.576.261.84L10 8.341a.48.48 0 0 0-.161.519l1.17 3.775c.134.428-.334.784-.682.52L7.261 10.82a.43.43 0 0 0-.522 0l-3.066 2.333c-.348.265-.816-.091-.683-.519L4.161 8.86a.48.48 0 0 0-.16-.52L.933 6.008c-.348-.264-.17-.84.26-.84h3.791c.192 0 .362-.13.422-.32z"}))),qt=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"0 0 16 16","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("rect",{width:16,height:16,fill:"currentColor",rx:2}))),$t=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"5em",fillRule:"evenodd","aria-hidden":"true",clipRule:"evenodd",style:{height:"1.5em"},viewBox:"0 0 23 23","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("path",{fill:"currentColor",stroke:"currentColor",strokeWidth:.25,d:"M19 24H5a2 2 0 0 1-2-2V5H2V3h6V1.5C8 .673 8.673 0 9.5 0h5c.825 0 1.5.671 1.5 1.5V3h6v2h-1v17a2 2 0 0 1-2 2zm0-19H5v16.5a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5zm-7 7.586 3.293-3.293 1.414 1.414L13.414 14l3.293 3.293-1.414 1.414L12 15.414l-3.293 3.293-1.414-1.414L10.586 14l-3.293-3.293 1.414-1.414zM14 2h-4v1h4z"}))),zt=Kt(({title:e,titleId:t,...n})=>c.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"1em",fill:"none",viewBox:"0 0 13 13","aria-labelledby":t,...n},e?c.createElement("title",{id:t},e):null,c.createElement("rect",{width:11.8,height:11.8,x:.6,y:.6,stroke:"currentColor",strokeWidth:1.2,rx:5.9}),c.createElement("rect",{width:2,height:2,x:5.5,y:5.5,fill:"currentColor",rx:1})));function Kt(e){const t=e.name.replace("Svg","").replaceAll(/([A-Z])/g," $1").trimStart().toLowerCase()+" icon",n=n=>{const r=(0,l.c)(2);let o;return r[0]!==n?(o=(0,a.jsx)(e,{title:t,...n}),r[0]=n,r[1]=o):o=r[1],o};return n.displayName=e.name,n}var Ut=n(89516);const Wt=e=>{var t;const n=e.currentTarget;n===document.activeElement&&"Enter"===e.code&&(e.preventDefault(),null==(t=n.querySelector("textarea"))||t.focus())};function Ht({uri:e,value:t}){const{monaco:n}=ze.getState();if(!n)throw new Error("Monaco editor is not initialized");const r=Ut.r.file(e),o=n.editor.getModel(r),i=r.path.split(".").at(-1);return o??n.editor.createModel(t,i,r)}function Gt(e,t){const{model:n}=t;if(!n)throw new Error("options.model is required");const r=n.uri.path.split(".").at(-1),{monaco:o}=ze.getState();if(!o)throw new Error("Monaco editor is not initialized");return o.editor.create(e.current,{language:r,automaticLayout:!0,fontSize:15,minimap:{enabled:!1},tabSize:2,renderLineHighlight:"none",stickyScroll:{enabled:!1},overviewRulerLanes:0,scrollbar:{verticalScrollbarSize:10},scrollBeyondLastLine:!1,fontFamily:'"Fira Code"',fontLigatures:!0,lineNumbersMinChars:2,roundedSelection:!1,tabIndex:-1,...t})}var Qt=n(63327);function Yt(e){return()=>{for(const t of e)t.dispose()}}var Xt=n(11750);const Jt=e=>{const t=(0,l.c)(53);let n,r,o;t[0]!==e?(({onClickReference:n,onEdit:r,...o}=e),t[0]=e,t[1]=n,t[2]=r,t[3]=o):(n=t[1],r=t[2],o=t[3]);const{setOperationName:i,setEditor:s,updateActiveTabValues:u,setVisiblePlugin:d,setSchemaReference:h,run:f,setOperationFacts:p,copyQuery:m,prettifyEditors:g,mergeQuery:y}=it();let v;t[4]===Symbol.for("react.memo_cache_sentinel")?(v=lt("initialQuery","schema","referencePlugin","operations","operationName","externalFragments","uriInstanceId","storage","monacoTheme"),t[4]=v):v=t[4];const{initialQuery:b,schema:E,referencePlugin:w,operations:C,operationName:S,externalFragments:k,uriInstanceId:_,storage:T,monacoTheme:A}=ot(v),N=(0,c.useRef)(null),R=(0,c.useRef)(null);let O,F,M;t[5]!==n?(O=()=>{R.current=n},F=[n],t[5]=n,t[6]=O,t[7]=F):(O=t[6],F=t[7]),(0,c.useEffect)(O,F),t[8]!==S||t[9]!==C||t[10]!==E||t[11]!==p?(M=function(e){const t=(0,He.Jb)(E,e.getValue()),n=(0,x.getSelectedOperationName)(C,S,null==t?void 0:t.operations);return p({documentAST:null==t?void 0:t.documentAST,operationName:n,operations:null==t?void 0:t.operations}),t?{...t,operationName:n}:null},t[8]=S,t[9]=C,t[10]=E,t[11]=p,t[12]=M):M=t[12];const B=M,$=(0,c.useRef)(null);let z,K;t[13]!==S||t[14]!==C||t[15]!==f||t[16]!==i?(z=()=>{$.current=e=>{var t;if(!C)return void f();const n=e.getPosition(),r=e.getModel().getOffsetAt(n);let o;for(const e of C)e.loc&&e.loc.start<=r&&e.loc.end>=r&&(o=null==(t=e.name)?void 0:t.value);o&&o!==S&&i(o),f()}},K=[S,C,f,i],t[13]=S,t[14]=C,t[15]=f,t[16]=i,t[17]=z,t[18]=K):(z=t[17],K=t[18]),(0,c.useEffect)(z,K);const{monacoGraphQL:U,monaco:W}=Ke();let H,G,Q,Y,X,J;return t[19]!==m||t[20]!==B||t[21]!==b||t[22]!==y||t[23]!==W||t[24]!==U||t[25]!==A||t[26]!==r||t[27]!==S||t[28]!==g||t[29]!==s||t[30]!==i||t[31]!==T||t[32]!==u||t[33]!==_?(H=()=>{if(!W||!U)return;const e=Ut.r.file(`${_}operation.graphql`),t=Ut.r.file(`${_}${V}`),{validateVariablesJSON:n}=q;n[e.toString()]=[t.toString()],U.setDiagnosticSettings(q);const o=Ht({uri:e.path.replace("/",""),value:b}),a=Gt(N,{model:o,theme:A});s({queryEditor:a});const l=ge(100,()=>{const e=a.getValue();T.set(D,e);const t=B(a);null==r||r(e,null==t?void 0:t.documentAST),(null==t?void 0:t.operationName)&&S!==t.operationName&&i(t.operationName),u({query:e,operationName:(null==t?void 0:t.operationName)??null})});return B(a),Yt([o.onDidChangeContent(l),a.addAction({...P,run:(...e)=>{const t=e;return $.current(...t)}}),a.addAction({...j,run:m}),a.addAction({...I,run:g}),a.addAction({...L,run:y}),a,o])},t[19]=m,t[20]=B,t[21]=b,t[22]=y,t[23]=W,t[24]=U,t[25]=A,t[26]=r,t[27]=S,t[28]=g,t[29]=s,t[30]=i,t[31]=T,t[32]=u,t[33]=_,t[34]=H):H=t[34],t[35]!==W||t[36]!==U?(G=[W,U],t[35]=W,t[36]=U,t[37]=G):G=t[37],(0,c.useEffect)(H,G),t[38]!==k||t[39]!==W||t[40]!==U||t[41]!==w||t[42]!==E||t[43]!==h||t[44]!==d||t[45]!==_?(Y=()=>{if(!E||!W||!U)return;if(U.setSchemaConfig([{uri:`${_}schema.graphql`,schema:E}]),U.setExternalFragmentDefinitions([...k.values()]),!w)return;let e;e=null;const t=[W.languages.registerDefinitionProvider("graphql",{provideDefinition(t,n,r){const o=(0,Qt.St)(n),i=(0,He.W8)(t.getValue(),o,E);if(!i)return;const{typeInfo:s,token:a}=i,{kind:l,step:c}=a.state;if("Field"===l&&0===c&&s.fieldDef||"AliasedField"===l&&2===c&&s.fieldDef||"ObjectField"===l&&0===c&&s.fieldDef||"Directive"===l&&1===c&&s.directiveDef||"Variable"===l&&s.type||"Argument"===l&&0===c&&s.argDef||"EnumValue"===l&&s.enumValue&&"description"in s.enumValue||"NamedType"===l&&s.type&&"description"in s.type){e={kind:l,typeInfo:s};const{lineNumber:r,column:o}=n,i=new Je.Q(r,o,r,o);return[{uri:t.uri,range:i}]}e=null}}),W.languages.registerReferenceProvider("graphql",{provideReferences(t,n,r,o){var i;const{lineNumber:s,column:a}=n;if(!e)return;d(w),h(e),null==(i=R.current)||i.call(R,e);const l=new Je.Q(s,a,s,a);return[{uri:t.uri,range:l}]}})];return Yt(t)},Q=[E,w,h,d,k,_,U,W],t[38]=k,t[39]=W,t[40]=U,t[41]=w,t[42]=E,t[43]=h,t[44]=d,t[45]=_,t[46]=Q,t[47]=Y):(Q=t[46],Y=t[47]),(0,c.useEffect)(Y,Q),t[48]!==o.className?(X=(0,Xt.$)("graphiql-editor",o.className),t[48]=o.className,t[49]=X):X=t[49],t[50]!==o||t[51]!==X?(J=(0,a.jsx)("div",{ref:N,tabIndex:0,onKeyDown:Wt,...o,className:X}),t[50]=o,t[51]=X,t[52]=J):J=t[52],J},Zt=(0,c.forwardRef)((e,t)=>{const n=(0,l.c)(6);let r,o;return n[0]!==e.className?(r=(0,Xt.$)("graphiql-spinner",e.className),n[0]=e.className,n[1]=r):r=n[1],n[2]!==e||n[3]!==t||n[4]!==r?(o=(0,a.jsx)("div",{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=o):o=n[5],o});function en(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)}}function tn(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function nn(...e){return c.useCallback(function(...e){return t=>{let n=!1;const r=e.map(e=>{const r=tn(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():tn(e[t],null)}}}}(...e),e)}function rn(e,t=[]){let n=[];const r=()=>{const t=n.map(e=>c.createContext(e));return function(n){const r=n?.[e]||t;return c.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){const o=c.createContext(r);o.displayName=t+"Context";const i=n.length;n=[...n,r];const s=t=>{const{scope:n,children:r,...s}=t,l=n?.[e]?.[i]||o,u=c.useMemo(()=>s,Object.values(s));return(0,a.jsx)(l.Provider,{value:u,children:r})};return s.displayName=t+"Provider",[s,function(n,s,a={}){const{optional:l=!1}=a,u=s?.[e]?.[i]||o,d=c.useContext(u);if(d)return d;if(void 0!==r)return r;if(!l)throw new Error(`\`${n}\` must be used within \`${t}\``)}]},on(r,...t)]}function on(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}Zt.displayName="Spinner","undefined"==typeof window||!window.document||window.document.createElement;var sn=globalThis?.document?c.useLayoutEffect:()=>{},an=u[" useInsertionEffect ".trim().toString()]||sn;function ln({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=function({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),i=c.useRef(t);return an(()=>{i.current=t},[t]),c.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}({defaultProp:t,onChange:n}),a=void 0!==e,l=a?e:o;{const t=c.useRef(void 0!==e);c.useEffect(()=>{const e=t.current;if(e!==a){const t=e?"controlled":"uncontrolled",n=a?"controlled":"uncontrolled";console.warn(`${r} is changing from ${t} to ${n}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=a},[a,r])}const u=c.useCallback(t=>{if(a){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&s.current?.(n)}else i(t)},[a,e,i,s]);return[l,u]}Symbol("RADIX:SYNC_STATE");var cn=n(78325);function un(e){const t=c.forwardRef((t,n)=>{let{children:r,...o}=t,i=null,s=!1;const a=[];pn(r)&&"function"==typeof yn&&(r=yn(r._payload)),c.Children.forEach(r,e=>{if(t=e,c.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===dn){s=!0;const t=e;let n="child"in t.props?t.props.child:t.props.children;pn(n)&&"function"==typeof yn&&(n=yn(n._payload)),i=hn(t,n),a.push(i?.props?.children)}else a.push(e);var t}),i?i=c.cloneElement(i,void 0,a):!s&&1===c.Children.count(r)&&c.isValidElement(r)&&(i=r);const l=i?function(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)}(i):void 0,u=nn(n,l);if(!i){if(r||0===r)throw new Error(s?gn(e):mn(e));return r}const d=function(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(o,i.props??{});return i.type!==c.Fragment&&(d.ref=n?u:l),c.cloneElement(i,d)});return t.displayName=`${e}.Slot`,t}var dn=Symbol.for("radix.slottable");var hn=(e,t)=>{if("child"in e.props){const t=e.props.child;return c.isValidElement(t)?c.cloneElement(t,void 0,e.props.children(t.props.children)):null}return c.isValidElement(t)?t:null},fn=Symbol.for("react.lazy");function pn(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===fn&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t;var t}var mn=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,gn=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,yn=u[" use ".trim().toString()],vn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=un(`Primitive.${t}`),r=c.forwardRef((e,r)=>{const{asChild:o,...i}=e,s=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(s,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function bn(e,t){e&&cn.flushSync(()=>e.dispatchEvent(t))}function xn(e){const t=e+"CollectionProvider",[n,r]=rn(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{const{scope:t,children:n}=e,r=c.useRef(null),i=c.useRef(new Map).current;return(0,a.jsx)(o,{scope:t,itemMap:i,collectionRef:r,children:n})};s.displayName=t;const l=e+"CollectionSlot",u=un(l),d=c.forwardRef((e,t)=>{const{scope:n,children:r}=e,o=nn(t,i(l,n).collectionRef);return(0,a.jsx)(u,{ref:o,children:r})});d.displayName=l;const h=e+"CollectionItemSlot",f="data-radix-collection-item",p=un(h),m=c.forwardRef((e,t)=>{const{scope:n,children:r,...o}=e,s=c.useRef(null),l=nn(t,s),u=i(h,n);return c.useEffect(()=>(u.itemMap.set(s,{ref:s,...o}),()=>{u.itemMap.delete(s)})),(0,a.jsx)(p,{[f]:"",ref:l,children:r})});return m.displayName=h,[{Provider:s,Slot:d,ItemSlot:m},function(t){const n=i(e+"CollectionConsumer",t),r=c.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${f}]`)),r=Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current));return r},[n.collectionRef,n.itemMap]);return r},r]}Map;var En=c.createContext(void 0);function wn(e){const t=c.useContext(En);return e||t||"ltr"}function Cn(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...e)=>t.current?.(...e),[])}var Sn,kn="dismissableLayer.update",_n=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Tn=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...d}=e,h=c.useContext(_n),[f,p]=c.useState(null),m=f?.ownerDocument??globalThis?.document,[,g]=c.useState({}),y=nn(t,p),v=Array.from(h.layers),[b]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),x=b?v.indexOf(b):-1,E=f?v.indexOf(f):-1,w=h.layersWithOutsidePointerEventsDisabled.size>0,C=E>=x,S=c.useRef(!1),k=function(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:i,shouldHandlePointerDownOutside:s=An}=t,a=Cn(e),l=c.useRef(!1),u=c.useRef(!1),d=c.useRef(new Map),h=c.useRef(()=>{});return c.useEffect(()=>{function e(){u.current=!1,o.current=!1,d.current.clear()}function t(e){if(!u.current)return;const t=e.target;t instanceof Node&&[...i].some(e=>e.contains(t))||d.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{u.current&&h.current()},0)}function c(e){u.current&&d.current.set(e.type,!1)}const f=t=>{if(t.target&&!l.current){let i=function(){n.removeEventListener("click",h.current);const t=Array.from(d.current.values()).some(Boolean);e(),t||Nn("dismissableLayer.pointerDownOutside",a,c,{discrete:!0})};if(!s(t.target))return n.removeEventListener("click",h.current),e(),void(l.current=!1);const c={originalEvent:t};u.current=!0,o.current=r&&0===t.button,d.current.clear(),r&&0===t.button?(n.removeEventListener("click",h.current),h.current=i,n.addEventListener("click",h.current,{once:!0})):i()}else n.removeEventListener("click",h.current),e();l.current=!1},p=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const e of p)n.addEventListener(e,t,!0),n.addEventListener(e,c);const m=window.setTimeout(()=>{n.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(m),n.removeEventListener("pointerdown",f),n.removeEventListener("click",h.current);for(const e of p)n.removeEventListener(e,t,!0),n.removeEventListener(e,c)}},[n,a,r,o,i,s]),{onPointerDownCapture:()=>l.current=!0}}(e=>{i?.(e),l?.(e),e.defaultPrevented||u?.()},{ownerDocument:m,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:h.dismissableSurfaces,shouldHandlePointerDownOutside:c.useCallback(e=>{if(!(e instanceof Node))return!1;const t=[...h.branches].some(t=>t.contains(e));return C&&!t},[h.branches,C])}),_=function(e,t=globalThis?.document){const n=Cn(e),r=c.useRef(!1);return c.useEffect(()=>{const e=e=>{e.target&&!r.current&&Nn("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{if(r&&S.current)return;const t=e.target;[...h.branches].some(e=>e.contains(t))||(s?.(e),l?.(e),e.defaultPrevented||u?.())},m),T=!!f&&E===v.length-1,A=Cn(e=>{"Escape"===e.key&&(o?.(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))});return c.useEffect(()=>{if(T)return m.addEventListener("keydown",A,{capture:!0}),()=>m.removeEventListener("keydown",A,{capture:!0})},[m,T,A]),c.useEffect(()=>{if(f)return n&&(0===h.layersWithOutsidePointerEventsDisabled.size&&(Sn=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(f)),h.layers.add(f),Dn(),()=>{n&&(h.layersWithOutsidePointerEventsDisabled.delete(f),0===h.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=Sn))}},[f,m,n,h]),c.useEffect(()=>()=>{f&&(h.layers.delete(f),h.layersWithOutsidePointerEventsDisabled.delete(f),Dn())},[f,h]),c.useEffect(()=>{const e=()=>g({});return document.addEventListener(kn,e),()=>document.removeEventListener(kn,e)},[]),(0,a.jsx)(vn.div,{...d,ref:y,style:{pointerEvents:w?C?"auto":"none":void 0,...e.style},onFocusCapture:en(e.onFocusCapture,_.onFocusCapture),onBlurCapture:en(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:en(e.onPointerDownCapture,k.onPointerDownCapture)})});Tn.displayName="DismissableLayer",c.forwardRef((e,t)=>{const n=c.useContext(_n),r=c.useRef(null),o=nn(t,r);return c.useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,a.jsx)(vn.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var An=()=>!0;function Dn(){const e=new CustomEvent(kn);document.dispatchEvent(e)}function Nn(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?bn(o,i):o.dispatchEvent(i)}var Rn=0,On=null;function Fn(){c.useEffect(()=>{On||(On={start:Mn(),end:Mn()});const{start:e,end:t}=On;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),Rn++,()=>{1===Rn&&(On?.start.remove(),On?.end.remove(),On=null),Rn=Math.max(0,Rn-1)}},[])}function Mn(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var In="focusScope.autoFocusOnMount",Ln="focusScope.autoFocusOnUnmount",Pn={bubbles:!1,cancelable:!0},jn=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[l,u]=c.useState(null),d=Cn(o),h=Cn(i),f=c.useRef(null),p=nn(t,u),m=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let e=function(e){if(m.paused||!l)return;const t=e.target;l.contains(t)?f.current=t:$n(f.current,{select:!0})},t=function(e){if(m.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||$n(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&$n(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,l,m.paused]),c.useEffect(()=>{if(l){zn.add(m);const e=document.activeElement;if(!l.contains(e)){const t=new CustomEvent(In,Pn);l.addEventListener(In,d),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if($n(r,{select:t}),document.activeElement!==n)return}(Vn(l).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&$n(l))}return()=>{l.removeEventListener(In,d),setTimeout(()=>{const t=new CustomEvent(Ln,Pn);l.addEventListener(Ln,h),l.dispatchEvent(t),t.defaultPrevented||$n(e??document.body,{select:!0}),l.removeEventListener(Ln,h),zn.remove(m)},0)}}},[l,d,h,m]);const g=c.useCallback(e=>{if(!n&&!r)return;if(m.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=Vn(e);return[Bn(t,e),Bn(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&$n(i,{select:!0})):(e.preventDefault(),n&&$n(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,m.paused]);return(0,a.jsx)(vn.div,{tabIndex:-1,...s,ref:p,onKeyDown:g})});function Vn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Bn(e,t){const n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(const r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):qn(r,{upTo:t})))return r}function qn(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function $n(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}jn.displayName="FocusScope";var zn=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Kn(e,t),e.unshift(t)},remove(t){e=Kn(e,t),e[0]?.resume()}}}();function Kn(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Un=u[" useId ".trim().toString()]||(()=>{}),Wn=0;function Hn(e){const[t,n]=c.useState(Un());return sn(()=>{e||n(e=>e??String(Wn++))},[e]),e||(t?`radix-${t}`:"")}const Gn=["top","right","bottom","left"],Qn=Math.min,Yn=Math.max,Xn=Math.round,Jn=Math.floor,Zn=e=>({x:e,y:e}),er={left:"right",right:"left",bottom:"top",top:"bottom"};function tr(e,t,n){return Yn(e,Qn(t,n))}function nr(e,t){return"function"==typeof e?e(t):e}function rr(e){return e.split("-")[0]}function or(e){return e.split("-")[1]}function ir(e){return"x"===e?"y":"x"}function sr(e){return"y"===e?"height":"width"}function ar(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function lr(e){return ir(ar(e))}function cr(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const ur=["left","right"],dr=["right","left"],hr=["top","bottom"],fr=["bottom","top"];function pr(e){const t=rr(e);return er[t]+e.slice(t.length)}function mr(e){return"number"!=typeof e?function(e){var t,n,r,o;return{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(o=e.left)?o:0}}(e):{top:e,right:e,bottom:e,left:e}}function gr(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function yr(e,t,n){let{reference:r,floating:o}=e;const i=ar(t),s=lr(t),a=sr(s),l=rr(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let f;switch(l){case"top":f={x:u,y:r.y-o.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}const p=or(t);return p&&(f[s]+=h*("end"===p?1:-1)*(n&&c?-1:1)),f}async function vr(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=nr(t,e),p=mr(f),m=a[h?"floating"===d?"reference":"floating":d],g=gr(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===d?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,v=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),b=await(null==i.isElement?void 0:i.isElement(v))&&await(null==i.getScale?void 0:i.getScale(v))||{x:1,y:1},x=gr(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:l}):y);return{top:(g.top-x.top+p.top)/b.y,bottom:(x.bottom-g.bottom+p.bottom)/b.y,left:(g.left-x.left+p.left)/b.x,right:(x.right-g.right+p.right)/b.x}}function br(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function xr(e){return Gn.some(t=>e[t]>=0)}const Er=new Set(["left","top"]);function wr(){return"undefined"!=typeof window}function Cr(e){return _r(e)?(e.nodeName||"").toLowerCase():"#document"}function Sr(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function kr(e){var t;return null==(t=(_r(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function _r(e){return!!wr()&&(e instanceof Node||e instanceof Sr(e).Node)}function Tr(e){return!!wr()&&(e instanceof Element||e instanceof Sr(e).Element)}function Ar(e){return!!wr()&&(e instanceof HTMLElement||e instanceof Sr(e).HTMLElement)}function Dr(e){return!(!wr()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Sr(e).ShadowRoot)}function Nr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Br(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Rr(e){return/^(table|td|th)$/.test(Cr(e))}function Or(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const Fr=/transform|translate|scale|rotate|perspective|filter/,Mr=/paint|layout|strict|content/,Ir=e=>!!e&&"none"!==e;let Lr;function Pr(e){const t=Tr(e)?Br(e):e;return Ir(t.transform)||Ir(t.translate)||Ir(t.scale)||Ir(t.rotate)||Ir(t.perspective)||!jr()&&(Ir(t.backdropFilter)||Ir(t.filter))||Fr.test(t.willChange||"")||Mr.test(t.contain||"")}function jr(){return null==Lr&&(Lr="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Lr}function Vr(e){return/^(html|body|#document)$/.test(Cr(e))}function Br(e){return Sr(e).getComputedStyle(e)}function qr(e){return Tr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $r(e){if("html"===Cr(e))return e;const t=e.assignedSlot||e.parentNode||Dr(e)&&e.host||kr(e);return Dr(t)?t.host:t}function zr(e){const t=$r(e);return Vr(t)?(e.ownerDocument||e).body:Ar(t)&&Nr(t)?t:zr(t)}function Kr(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=zr(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=Sr(o);if(i){const e=Ur(s);return t.concat(s,s.visualViewport||[],Nr(o)?o:[],e&&n?Kr(e):[])}return t.concat(o,Kr(o,[],n))}function Ur(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Wr(e){const t=Br(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ar(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Xn(n)!==i||Xn(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Hr(e){return Tr(e)?e:e.contextElement}function Gr(e){const t=Hr(e);if(!Ar(t))return Zn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Wr(t);let s=(i?Xn(n.width):n.width)/r,a=(i?Xn(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Qr=Zn(0);function Yr(e){const t=Sr(e);return jr()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Qr}function Xr(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Hr(e);let s=Zn(1);t&&(r?Tr(r)&&(s=Gr(r)):s=Gr(e));const a=function(e,t,n){return void 0===t&&(t=!1),!!n&&t&&n===Sr(e)}(i,n,r)?Yr(i):Zn(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,d=o.height/s.y;if(i&&r){const e=Sr(i),t=Tr(r)?Sr(r):r;let n=e,o=Ur(n);for(;o&&t!==n;){const e=Gr(o),t=o.getBoundingClientRect(),r=Br(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=s,n=Sr(o),o=Ur(n)}}return gr({width:u,height:d,x:l,y:c})}function Jr(e,t){const n=qr(e).scrollLeft;return t?t.left+n:Xr(kr(e)).left+n}function Zr(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Jr(e,n),y:n.top+t.scrollTop}}function eo(e,t,n){let r;if("viewport"===t||"layoutViewport"===t)r=function(e,t,n){void 0===n&&(n="viewport");const r="layoutViewport"===n,o=Sr(e),i=kr(e),s=o.visualViewport;let a=i.clientWidth,l=i.clientHeight,c=0,u=0;if(s){const e=!jr()||"fixed"===t;r?e||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,e&&(c=s.offsetLeft,u=s.offsetTop))}if(Jr(i)<=0){const e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),s="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;s<=25&&(a-=s)}return{width:a,height:l,x:c,y:u}}(e,n,t);else if("document"===t)r=function(e){const t=qr(e),n=e.ownerDocument.body,r=Yn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=Yn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+Jr(e);const s=-t.scrollTop;return"rtl"===Br(n).direction&&(i+=Yn(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:s}}(kr(e));else if(Tr(t))r=function(e,t){const n=Xr(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Gr(e);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Yr(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return gr(r)}function to(e,t,n){const r=Ar(t),o=kr(t),i="fixed"===n,s=Xr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Zn(0);if((r||!i)&&(("body"!==Cr(t)||Nr(o))&&(a=qr(t)),r)){const e=Xr(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!r&&o&&(l.x=Jr(o));const c=!o||r||i?Zn(0):Zr(o,a);return{x:s.left+a.scrollLeft-l.x-c.x,y:s.top+a.scrollTop-l.y-c.y,width:s.width,height:s.height}}function no(e){return"static"===Br(e).position}function ro(e,t){if(!Ar(e)||"fixed"===Br(e).position)return null;if(t)return t(e);let n=e.offsetParent;return kr(e)===n&&(n=n.ownerDocument.body),n}function oo(e,t){const n=Sr(e);if(Or(e))return n;if(!Ar(e)){let t=$r(e);for(;t&&!Vr(t);){if(Tr(t)&&!no(t))return t;t=$r(t)}return n}let r=ro(e,t);for(;r&&Rr(r)&&no(r);)r=ro(r,t);return r&&Vr(r)&&no(r)&&!Pr(r)?n:r||function(e){let t=$r(e);for(;Ar(t)&&!Vr(t);){if(Pr(t))return t;if(Or(t))return null;t=$r(t)}return null}(e)||n}const io={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=kr(r),a=!!t&&Or(t.floating);if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=Zn(1);const u=Zn(0),d=Ar(r);if((d||!i)&&(("body"!==Cr(r)||Nr(s))&&(l=qr(r)),d)){const e=Xr(r);c=Gr(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const h=!s||d||i?Zn(0):Zr(s,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}},getDocumentElement:kr,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Or(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Kr(e,[],!1).filter(e=>Tr(e)&&"body"!==Cr(e)),o=null;const i="fixed"===Br(e).position;let s=i?$r(e):e;for(;Tr(s)&&!Vr(s);){const e=Br(s),t=Pr(s),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==s),s=$r(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=eo(t,i[0],o);let a=s.top,l=s.right,c=s.bottom,u=s.left;for(let e=1;e<i.length;e++){const n=eo(t,i[e],o);a=Yn(n.top,a),l=Qn(n.right,l),c=Qn(n.bottom,c),u=Yn(n.left,u)}return{width:l-u,height:c-a,x:u,y:a}},getOffsetParent:oo,getElementRects:async function(e){const t=this.getOffsetParent||oo,n=this.getDimensions,r=await n(e.floating);return{reference:to(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){const{width:t,height:n}=Wr(e);return{width:t,height:n}},getScale:Gr,isElement:Tr,isRTL:function(e){return"rtl"===Br(e).direction}};function so(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ao(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Hr(e),u=o||i?[...c?Kr(c):[],...t?Kr(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n),i&&e.addEventListener("resize",n)});const d=c&&a?function(e,t,n){let r,o=null;const i=kr(e);function s(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}function a(n,l){void 0===n&&(n=!1),void 0===l&&(l=1),s();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:f}=c;if(n||t(),!h||!f)return;const p={rootMargin:-Jn(d)+"px "+-Jn(i.clientWidth-(u+h))+"px "+-Jn(i.clientHeight-(d+f))+"px "+-Jn(u)+"px",threshold:Yn(0,Qn(1,l))||1};let m=!0;function g(t){const n=t[0].intersectionRatio;if(!so(c,e.getBoundingClientRect()))return a();if(n!==l){if(!m)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}m=!1}try{o=new IntersectionObserver(g,{...p,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(g,p)}o.observe(e)}const l=Sr(e),c=()=>a(n);return l.addEventListener("resize",c),a(!0),()=>{l.removeEventListener("resize",c),s()}}(c,n,i):null;let h,f=-1,p=null;s&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),c&&!l&&p.observe(c),t&&p.observe(t));let m=l?Xr(e):null;return l&&function t(){const r=Xr(e);m&&!so(m,r)&&n(),m=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const lo=vr,co=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=nr(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=rr(o),v=ar(a),b=rr(a)===a,x=await(null==l.isRTL?void 0:l.isRTL(c.floating)),E=h||(b||!m?[pr(a)]:function(e){const t=pr(e);return[cr(e),t,cr(t)]}(a)),w="none"!==p;!h&&w&&E.push(...function(e,t,n,r){const o=or(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?dr:ur:t?ur:dr;case"left":case"right":return t?hr:fr;default:return[]}}(rr(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(cr)))),i}(a,m,p,x));const C=[a,...E],S=await l.detectOverflow(t,g),k=[];let _=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&k.push(S[y]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=or(e),o=lr(e),i=sr(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=pr(s)),[s,pr(s)]}(o,s,x);k.push(S[e[0]],S[e[1]])}if(_=[..._,{placement:o,overflows:k}],!k.every(e=>e<=0)){var T,A;const e=((null==(T=i.flip)?void 0:T.index)||0)+1,t=C[e];if(t&&("alignment"!==d||v===ar(t)||_.every(e=>ar(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:_},reset:{placement:t}};let n=null==(A=_.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:A.placement;if(!n)switch(f){case"bestFit":{var D;const e=null==(D=_.filter(e=>{if(w){const t=ar(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},uo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=nr(e,t)||{};if(null==c)return{};const d=mr(u),h={x:n,y:r},f=lr(o),p=sr(f),m=await s.getDimensions(c),g="y"===f,y=g?"top":"left",v=g?"bottom":"right",b=g?"clientHeight":"clientWidth",x=i.reference[p]+i.reference[f]-h[f]-i.floating[p],E=h[f]-i.reference[f],w=await(null==s.getOffsetParent?void 0:s.getOffsetParent(c));let C=w?w[b]:0;C&&await(null==s.isElement?void 0:s.isElement(w))||(C=a.floating[b]||i.floating[p]);const S=x/2-E/2,k=C/2-m[p]/2-1,_=Qn(d[y],k),T=Qn(d[v],k),A=C-m[p]-T,D=C/2-m[p]/2+S,N=tr(_,D,A),R=!l.arrow&&null!=or(o)&&D!==N&&i.reference[p]/2-(D<_?_:T)-m[p]/2<0,O=R?D<_?D-_:D-A:0;return{[f]:h[f]+O,data:{[f]:N,centerOffset:D-N-O,...R&&{alignmentOffset:O}},reset:R}}}),ho=function(e){return void 0===e&&(e={}),{options:e,fn(t){var n,r;const{x:o,y:i,placement:s,rects:a,middlewareData:l}=t,{offset:c=0,mainAxis:u=!0,crossAxis:d=!0}=nr(e,t),h={x:o,y:i},f=ar(s),p=ir(f);let m=h[p],g=h[f];const y=nr(c,t),v="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:null!=(n=y.mainAxis)?n:0,crossAxis:null!=(r=y.crossAxis)?r:0};if(u){const e="y"===p?"height":"width",t=a.reference[p]-a.floating[e]+v.mainAxis,n=a.reference[p]+a.reference[e]-v.mainAxis;m<t?m=t:m>n&&(m=n)}if(d){var b,x;const e="y"===p?"width":"height",t=Er.has(rr(s)),n=a.reference[f]-a.floating[e]+(t&&(null==(b=l.offset)?void 0:b[f])||0)+(t?0:v.crossAxis),r=a.reference[f]+a.reference[e]+(t?0:(null==(x=l.offset)?void 0:x[f])||0)-(t?v.crossAxis:0);g<n?g=n:g>r&&(g=r)}return{[p]:m,[f]:g}}}},fo=(e,t,n)=>{const r=new Map,o=null!=n?n:{},i={...io,...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:vr},l=await(null==s.isRTL?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=yr(c,r,l),h=r,f=0;const p={};for(let n=0;n<i.length;n++){const m=i[n];if(!m)continue;const{name:g,fn:y}=m,{x:v,y:b,data:x,reset:E}=await y({x:u,y:d,initialPlacement:r,placement:h,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=b?b:d,p[g]={...p[g],...x},E&&f<50&&(f++,"object"==typeof E&&(E.placement&&(h=E.placement),E.rects&&(c=!0===E.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),({x:u,y:d}=yr(c,h,l))),n=-1)}return{x:u,y:d,placement:h,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var po="undefined"!=typeof document?c.useLayoutEffect:function(){};function mo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!mo(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(!("_owner"===n&&e.$$typeof||mo(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function go(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yo(e,t){const n=go(e);return Math.round(t*n)/n}function vo(e){const t=c.useRef(e);return po(()=>{t.current=e}),t}function bo(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,h]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=c.useState(r);mo(f,r)||p(r);const[m,g]=c.useState(null),[y,v]=c.useState(null),b=c.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),x=c.useCallback(e=>{e!==S.current&&(S.current=e,v(e))},[]),E=i||m,w=s||y,C=c.useRef(null),S=c.useRef(null),k=c.useRef(d),_=null!=l,T=vo(l),A=vo(o),D=vo(u),N=c.useCallback(()=>{if(!C.current||!S.current)return;const e={placement:t,strategy:n,middleware:f};A.current&&(e.platform=A.current),fo(C.current,S.current,e).then(e=>{const t={...e,isPositioned:!1!==D.current};R.current&&!mo(k.current,t)&&(k.current=t,cn.flushSync(()=>{h(t)}))})},[f,t,n,A,D]);po(()=>{!1===u&&k.current.isPositioned&&(k.current.isPositioned=!1,h(e=>({...e,isPositioned:!1})))},[u]);const R=c.useRef(!1);po(()=>(R.current=!0,()=>{R.current=!1}),[]),po(()=>{if(E&&(C.current=E),w&&(S.current=w),E&&w){if(T.current)return T.current(E,w,N);N()}},[E,w,N,T,_]);const O=c.useMemo(()=>({reference:C,floating:S,setReference:b,setFloating:x}),[b,x]),F=c.useMemo(()=>({reference:E,floating:w}),[E,w]),M=c.useMemo(()=>{const e={position:n,left:0,top:0};if(!F.floating)return e;const t=yo(F.floating,d.x),r=yo(F.floating,d.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...go(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,F.floating,d.x,d.y]);return c.useMemo(()=>({...d,update:N,refs:O,elements:F,floatingStyles:M}),[d,N,O,F,M])}const xo=(e,t)=>{const n=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=rr(n),a=or(n),l="y"===ar(n),c=Er.has(s)?-1:1,u=i&&l?-1:1,d=nr(t,e);let{mainAxis:h,crossAxis:f,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof p&&(f="end"===a?-1*p:p),l?{x:f*u,y:h*c}:{x:h*c,y:f*u}}(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},Eo=(e,t)=>{const n=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=nr(e,t),u={x:n,y:r},d=await i.detectOverflow(t,c),h=ar(o),f=ir(h);let p=u[f],m=u[h];const g=(e,t)=>tr(t+d["y"===e?"top":"left"],t,t-d["y"===e?"bottom":"right"]);s&&(p=g(f,p)),a&&(m=g(h,m));const y=l.fn({...t,[f]:p,[h]:m});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[f]:s,[h]:a}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},wo=(e,t)=>({fn:ho(e).fn,options:[e,t]}),Co=(e,t)=>{const n=co(e);return{name:n.name,fn:n.fn,options:[e,t]}},So=(e,t)=>{const n=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...a}=nr(e,t),l=await o.detectOverflow(t,a),c=rr(n),u=or(n),d="y"===ar(n),{width:h,height:f}=r.floating;let p,m;"top"===c||"bottom"===c?(p=c,m=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=c,p="end"===u?"top":"bottom");const g=f-l.top-l.bottom,y=h-l.left-l.right,v=Qn(f-l[p],g),b=Qn(h-l[m],y),x=t.middlewareData.shift,E=!x;let w=v,C=b;null!=x&&x.enabled.x&&(C=y),null!=x&&x.enabled.y&&(w=g),E&&!u&&(d?C=h-2*Yn(l.left,l.right):w=f-2*Yn(l.top,l.bottom)),await s({...t,availableWidth:C,availableHeight:w});const S=await o.getDimensions(i.floating);return h!==S.width||f!==S.height?{reset:{rects:!0}}:{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},ko=(e,t)=>{const n=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=nr(e,t);switch(o){case"referenceHidden":{const e=br(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:xr(e)}}}case"escaped":{const e=br(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:xr(e)}}}default:return{}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},_o=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?uo({element:n.current,padding:r}).fn(t):{}:n?uo({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};var To=c.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return(0,a.jsx)(vn.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,a.jsx)("polygon",{points:"0,0 30,0 15,10"})})});To.displayName="Arrow";var Ao=To,Do="Popper",[No,Ro]=rn(Do),[Oo,Fo]=No(Do),Mo=e=>{const{__scopePopper:t,children:n}=e,[r,o]=c.useState(null),[i,s]=c.useState(void 0);return(0,a.jsx)(Oo,{scope:t,anchor:r,onAnchorChange:o,placementState:i,setPlacementState:s,children:n})};Mo.displayName=Do;var Io="PopperAnchor",Lo=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Fo(Io,n),s=c.useRef(null),l=i.onAnchorChange,u=nn(t,c.useCallback(e=>{s.current=e,e&&l(e)},[l])),d=c.useRef(null);c.useEffect(()=>{if(!r)return;const e=d.current;d.current=r.current,e!==d.current&&l(d.current)});const h=i.placementState&&Wo(i.placementState),f=h?.[0],p=h?.[1];return r?null:(0,a.jsx)(vn.div,{"data-radix-popper-side":f,"data-radix-popper-align":p,...o,ref:u})});Lo.displayName=Io;var Po="PopperContent",[jo,Vo]=No(Po),Bo=c.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:u=!0,collisionBoundary:d=[],collisionPadding:h=0,sticky:f="partial",hideWhenDetached:p=!1,updatePositionStrategy:m="optimized",onPlaced:g,...y}=e,v=Fo(Po,n),[b,x]=c.useState(null),E=nn(t,x),[w,C]=c.useState(null),S=function(e){const[t,n]=c.useState(void 0);return sn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(w),k=S?.width??0,_=S?.height??0,T=r+("center"!==i?"-"+i:""),A="number"==typeof h?h:{top:0,right:0,bottom:0,left:0,...h},D=Array.isArray(d)?d:[d],N=D.length>0,R={padding:A,boundary:D.filter(Ko),altBoundary:N},{refs:O,floatingStyles:F,placement:M,isPositioned:I,middlewareData:L}=bo({strategy:"fixed",placement:T,whileElementsMounted:(...e)=>ao(...e,{animationFrame:"always"===m}),elements:{reference:v.anchor},middleware:[xo({mainAxis:o+_,alignmentAxis:s}),u&&Eo({mainAxis:!0,crossAxis:!1,limiter:"partial"===f?wo():void 0,...R}),u&&Co({...R}),So({...R,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${r}px`),s.setProperty("--radix-popper-anchor-width",`${o}px`),s.setProperty("--radix-popper-anchor-height",`${i}px`)}}),w&&_o({element:w,padding:l}),Uo({arrowWidth:k,arrowHeight:_}),p&&ko({strategy:"referenceHidden",...R,boundary:N?R.boundary:void 0})]}),P=v.setPlacementState;sn(()=>(P(M),()=>{P(void 0)}),[M,P]);const[j,V]=Wo(M),B=Cn(g);sn(()=>{I&&B?.()},[I,B]);const q=L.arrow?.x,$=L.arrow?.y,z=0!==L.arrow?.centerOffset,[K,U]=c.useState();return sn(()=>{b&&U(window.getComputedStyle(b).zIndex)},[b]),(0,a.jsx)("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...F,transform:I?F.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:K,"--radix-popper-transform-origin":[L.transformOrigin?.x,L.transformOrigin?.y].join(" "),...L.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,a.jsx)(jo,{scope:n,placedSide:j,placedAlign:V,onArrowChange:C,arrowX:q,arrowY:$,shouldHideArrow:z,children:(0,a.jsx)(vn.div,{"data-side":j,"data-align":V,...y,ref:E,style:{...y.style,animation:I?void 0:"none"}})})})});Bo.displayName=Po;var qo="PopperArrow",$o={top:"bottom",right:"left",bottom:"top",left:"right"},zo=c.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=Vo(qo,n),i=$o[o.placedSide];return(0,a.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,a.jsx)(Ao,{...r,ref:t,style:{...r.style,display:"block"}})})});function Ko(e){return null!==e}zo.displayName=qo;var Uo=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=0!==o.arrow?.centerOffset,s=i?0:e.arrowWidth,a=i?0:e.arrowHeight,[l,c]=Wo(n),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+s/2,h=(o.arrow?.y??0)+a/2;let f="",p="";return"bottom"===l?(f=i?u:`${d}px`,p=-a+"px"):"top"===l?(f=i?u:`${d}px`,p=`${r.floating.height+a}px`):"right"===l?(f=-a+"px",p=i?u:`${h}px`):"left"===l&&(f=`${r.floating.width+a}px`,p=i?u:`${h}px`),{data:{x:f,y:p}}}});function Wo(e){const[t,n="center"]=e.split("-");return[t,n]}var Ho=Mo,Go=Lo,Qo=Bo,Yo=zo,Xo=c.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=c.useState(!1);sn(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?cn.createPortal((0,a.jsx)(vn.div,{...r,ref:t}),s):null});Xo.displayName="Portal";var Jo=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=c.useState(),r=c.useRef(null),o=c.useRef(e),i=c.useRef("none"),s=c.useRef(void 0),a=e?"mounted":"unmounted",[l,u]=function(e,t){return c.useReducer((e,n)=>t[e][n]??e,e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{"mounted"===l?(i.current=s.current??ei(r.current),s.current=void 0):i.current="none"},[l]),sn(()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=ei(t);e?(s.current=a,u("MOUNT")):u("none"===a||"none"===t?.display?"UNMOUNT":n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),sn(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,s=i=>{const s=ei(r.current).includes(CSS.escape(i.animationName));if(i.target===t&&s&&(u("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},a=e=>{e.target===t&&(i.current=ei(r.current))};return t.addEventListener("animationstart",a),t.addEventListener("animationcancel",s),t.addEventListener("animationend",s),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",a),t.removeEventListener("animationcancel",s),t.removeEventListener("animationend",s)}}u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:c.useCallback(e=>{if(e){const t=getComputedStyle(e);r.current=t,s.current=ei(t)}else r.current=null;n(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):c.Children.only(n),i=function(...e){const t=c.useRef(e);return t.current=e,c.useCallback(e=>{const n=t.current;let r=!1;const o=n.map(t=>{const n=Zo(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<o.length;e++){const t=o[e];"function"==typeof t?t():Zo(n[e],null)}}},[])}(r.ref,function(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)}(o));return"function"==typeof n||r.isPresent?c.cloneElement(o,{ref:i}):null};function Zo(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function ei(e){return e?.animationName||"none"}Jo.displayName="Presence";var ti=!1,ni=u[" useSyncExternalStore ".trim().toString()];function ri(){return()=>{}}var oi="function"==typeof ni?function(){return ni(ri,()=>!0,()=>!1)}:function(){const[e,t]=c.useState(ti);return c.useEffect(()=>{ti||(ti=!0,t(!0))},[]),e},ii="rovingFocusGroup.onEntryFocus",si={bubbles:!1,cancelable:!0},ai="RovingFocusGroup",[li,ci,ui]=xn(ai),[di,hi]=rn(ai,[ui]),[fi,pi]=di(ai),mi=c.forwardRef((e,t)=>(0,a.jsx)(li.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,a.jsx)(li.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,a.jsx)(gi,{...e,ref:t})})}));mi.displayName=ai;var gi=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:h=!1,...f}=e,p=c.useRef(null),m=nn(t,p),g=wn(i),[y,v]=ln({prop:s,defaultProp:l??null,onChange:u,caller:ai}),[b,x]=c.useState(!1),E=Cn(d),w=ci(n),C=c.useRef(!1),[S,k]=c.useState(0);return c.useEffect(()=>{const e=p.current;if(e)return e.addEventListener(ii,E),()=>e.removeEventListener(ii,E)},[E]),(0,a.jsx)(fi,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:y,onItemFocus:c.useCallback(e=>v(e),[v]),onItemShiftTab:c.useCallback(()=>x(!0),[]),onFocusableItemAdd:c.useCallback(()=>k(e=>e+1),[]),onFocusableItemRemove:c.useCallback(()=>k(e=>e-1),[]),children:(0,a.jsx)(vn.div,{tabIndex:b||0===S?-1:0,"data-orientation":r,...f,ref:m,style:{outline:"none",...e.style},onMouseDown:en(e.onMouseDown,()=>{C.current=!0}),onFocus:en(e.onFocus,e=>{const t=!C.current;if(e.target===e.currentTarget&&t&&!b){const t=new CustomEvent(ii,si);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter(e=>e.focusable);xi([e.find(e=>e.active),e.find(e=>e.id===y),...e].filter(Boolean).map(e=>e.ref.current),h)}}C.current=!1}),onBlur:en(e.onBlur,()=>x(!1))})})}),yi="RovingFocusGroupItem",vi=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:s,...l}=e,u=Hn(),d=i||u,h=pi(yi,n),f=h.currentTabStopId===d,p=ci(n),{onFocusableItemAdd:m,onFocusableItemRemove:g,currentTabStopId:y}=h,v=oi();return sn(()=>{if(v&&r)return m(),()=>g()},[v,r,m,g]),c.useEffect(()=>{if(!v&&r)return m(),()=>g()},[v,r,m,g]),(0,a.jsx)(li.ItemSlot,{scope:n,id:d,focusable:r,active:o,children:(0,a.jsx)(vn.span,{tabIndex:f?0:-1,"data-orientation":h.orientation,...l,ref:t,onMouseDown:en(e.onMouseDown,e=>{r?h.onItemFocus(d):e.preventDefault()}),onFocus:en(e.onFocus,()=>h.onItemFocus(d)),onKeyDown:en(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:bi[r]}(e,h.orientation,h.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=p().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=h.loop?(r=i+1,(n=o).map((e,t)=>n[(r+t)%n.length])):o.slice(i+1)}setTimeout(()=>xi(o))}var n,r}),children:"function"==typeof s?s({isCurrentTabStop:f,hasTabStop:null!=y}):s})})});vi.displayName=yi;var bi={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function xi(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var Ei=mi,wi=vi,Ci=new WeakMap,Si=new WeakMap,ki={},_i=0,Ti=function(e){return e&&(e.host||Ti(e.parentNode))},Ai=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Ti(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);ki[n]||(ki[n]=new WeakMap);var i=ki[n],s=[],a=new Set,l=new Set(o),c=function(e){e&&!a.has(e)&&(a.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(a.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Ci.get(e)||0)+1,c=(i.get(e)||0)+1;Ci.set(e,l),i.set(e,c),s.push(e),1===l&&o&&Si.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return u(t),a.clear(),_i++,function(){s.forEach(function(e){var t=Ci.get(e)-1,o=i.get(e)-1;Ci.set(e,t),i.set(e,o),t||(Si.has(e)||e.removeAttribute(r),Si.delete(e)),o||e.removeAttribute(n)}),--_i||(Ci=new WeakMap,Ci=new WeakMap,Si=new WeakMap,ki={})}}(r,o,n,"aria-hidden")):function(){return null}},Di=function(){return Di=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Di.apply(this,arguments)};function Ni(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var Ri="right-scroll-bar-position",Oi="width-before-scroll-bar";function Fi(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Mi="undefined"!=typeof window?c.useLayoutEffect:c.useEffect,Ii=new WeakMap;function Li(e){return e}var Pi=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Li);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},s=function(){return Promise.resolve().then(i)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=Di({async:!0,ssr:!1},e),t}(),ji=function(){},Vi=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:ji,onWheelCapture:ji,onTouchMoveCapture:ji}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,h=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,g=e.inert,y=e.allowPinchZoom,v=e.as,b=void 0===v?"div":v,x=e.gapMode,E=Ni(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=f,C=function(e,t){var n,r,o,i=(n=t||null,r=function(t){return e.forEach(function(e){return Fi(e,t)})},(o=(0,c.useState)(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}})[0]).callback=r,o.facade);return Mi(function(){var t=Ii.get(i);if(t){var n=new Set(t),r=new Set(e),o=i.current;n.forEach(function(e){r.has(e)||Fi(e,null)}),r.forEach(function(e){n.has(e)||Fi(e,o)})}Ii.set(i,e)},[e]),i}([n,t]),S=Di(Di({},E),o);return c.createElement(c.Fragment,null,d&&c.createElement(w,{sideCar:Pi,removeScrollBar:u,shards:h,noRelative:p,noIsolation:m,inert:g,setCallbacks:i,allowPinchZoom:!!y,lockRef:n,gapMode:x}),s?c.cloneElement(c.Children.only(a),Di(Di({},S),{ref:C})):c.createElement(b,Di({},S,{className:l,ref:C}),a))});Vi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Vi.classNames={fullWidth:Oi,zeroRight:Ri};var Bi=function(e){var t=e.sideCar,n=Ni(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,Di({},n))};Bi.isSideCarExport=!0;var qi=function(){var e=0,t=null;return{add:function(r){var o,i;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=n.nc;return t&&e.setAttribute("nonce",t),e}())&&(i=r,(o=t).styleSheet?o.styleSheet.cssText=i:o.appendChild(document.createTextNode(i)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$i=function(){var e,t=(e=qi(),function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},zi={left:0,top:0,right:0,gap:0},Ki=function(e){return parseInt(e||"",10)||0},Ui=$i(),Wi="data-scroll-locked",Hi=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body[").concat(Wi,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(Ri," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(Oi," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(Ri," .").concat(Ri," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Oi," .").concat(Oi," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Wi,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},Gi=function(){var e=parseInt(document.body.getAttribute(Wi)||"0",10);return isFinite(e)?e:0},Qi=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;c.useEffect(function(){return document.body.setAttribute(Wi,(Gi()+1).toString()),function(){var e=Gi()-1;e<=0?document.body.removeAttribute(Wi):document.body.setAttribute(Wi,e.toString())}},[]);var i=c.useMemo(function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return zi;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Ki(n),Ki(r),Ki(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}}(o)},[o]);return c.createElement(Ui,{styles:Hi(i,!t,o,n?"":"!important")})},Yi=!1;if("undefined"!=typeof window)try{var Xi=Object.defineProperty({},"passive",{get:function(){return Yi=!0,!0}});window.addEventListener("test",Xi,Xi),window.removeEventListener("test",Xi,Xi)}catch(e){Yi=!1}var Ji=!!Yi&&{passive:!1},Zi=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},es=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),ts(e,r)){var o=ns(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ts=function(e,t){return"v"===e?function(e){return Zi(e,"overflowY")}(t):function(e){return Zi(e,"overflowX")}(t)},ns=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},rs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},os=function(e){return[e.deltaX,e.deltaY]},is=function(e){return e&&"current"in e?e.current:e},ss=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},as=0,ls=[];function cs(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const us=(ds=function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(as++)[0],i=c.useState($i)[0],s=c.useRef(e);c.useEffect(function(){s.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(is),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var o,i=rs(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-i[0],c="deltaY"in e?e.deltaY:a[1]-i[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var h=window.getSelection(),f=h&&h.anchorNode;if(f&&(f===u||f.contains(u)))return!1;var p=es(d,u);if(!p)return!0;if(p?o=d:(o="v"===d?"h":"v",p=es(d,u)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var m=r.current||o;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*r,s=n.target,a=t.contains(s),l=!1,c=i>0,u=0,d=0;do{if(!s)break;var h=ns(e,s),f=h[0],p=h[1]-h[2]-o*f;(f||p)&&ts(e,s)&&(u+=p,d+=f);var m=s.parentNode;s=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!a&&s!==document.body||a&&(t.contains(s)||t===s));return(c&&(Math.abs(u)<1||!1)||!c&&(Math.abs(d)<1||!1))&&(l=!0),l}(m,t,e,"h"===m?l:c)},[]),l=c.useCallback(function(e){var n=e;if(ls.length&&ls[ls.length-1]===i){var r="deltaY"in n?os(n):rs(n),o=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var l=(s.current.shards||[]).map(is).filter(Boolean).filter(function(e){return e.contains(n.target)});(l.length>0?a(n,l[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=c.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:cs(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),d=c.useCallback(function(e){n.current=rs(e),r.current=void 0},[]),h=c.useCallback(function(t){u(t.type,os(t),t.target,a(t,e.lockRef.current))},[]),f=c.useCallback(function(t){u(t.type,rs(t),t.target,a(t,e.lockRef.current))},[]);c.useEffect(function(){return ls.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",l,Ji),document.addEventListener("touchmove",l,Ji),document.addEventListener("touchstart",d,Ji),function(){ls=ls.filter(function(e){return e!==i}),document.removeEventListener("wheel",l,Ji),document.removeEventListener("touchmove",l,Ji),document.removeEventListener("touchstart",d,Ji)}},[]);var p=e.removeScrollBar,m=e.inert;return c.createElement(c.Fragment,null,m?c.createElement(i,{styles:ss(o)}):null,p?c.createElement(Qi,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},Pi.useMedium(ds),Bi);var ds,hs=c.forwardRef(function(e,t){return c.createElement(Vi,Di({},e,{ref:t,sideCar:us}))});hs.classNames=Vi.classNames;const fs=hs;var ps=["Enter"," "],ms=["ArrowUp","PageDown","End"],gs=["ArrowDown","PageUp","Home",...ms],ys={ltr:[...ps,"ArrowRight"],rtl:[...ps,"ArrowLeft"]},vs={ltr:["ArrowLeft"],rtl:["ArrowRight"]},bs="Menu",[xs,Es,ws]=xn(bs),[Cs,Ss]=rn(bs,[ws,Ro,hi]),ks=Ro(),_s=hi(),[Ts,As]=Cs(bs),[Ds,Ns]=Cs(bs),Rs=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:s=!0}=e,l=ks(t),[u,d]=c.useState(null),h=c.useRef(!1),f=Cn(i),p=wn(o);return c.useEffect(()=>{const e=()=>{h.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>h.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),c.useEffect(()=>{if(!n)return;const e=()=>f(!1);return window.addEventListener("blur",e),()=>window.removeEventListener("blur",e)},[n,f]),(0,a.jsx)(Ho,{...l,children:(0,a.jsx)(Ts,{scope:t,open:n,onOpenChange:f,content:u,onContentChange:d,children:(0,a.jsx)(Ds,{scope:t,onClose:c.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:h,dir:p,modal:s,children:r})})})};Rs.displayName=bs;var Os=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=ks(n);return(0,a.jsx)(Go,{...o,...r,ref:t})});Os.displayName="MenuAnchor";var Fs="MenuPortal",[Ms,Is]=Cs(Fs,{forceMount:void 0}),Ls=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=As(Fs,t);return(0,a.jsx)(Ms,{scope:t,forceMount:n,children:(0,a.jsx)(Jo,{present:n||i.open,children:(0,a.jsx)(Xo,{asChild:!0,container:o,children:r})})})};Ls.displayName=Fs;var Ps="MenuContent",[js,Vs]=Cs(Ps),Bs=c.forwardRef((e,t)=>{const n=Is(Ps,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=As(Ps,e.__scopeMenu),s=Ns(Ps,e.__scopeMenu);return(0,a.jsx)(xs.Provider,{scope:e.__scopeMenu,children:(0,a.jsx)(Jo,{present:r||i.open,children:(0,a.jsx)(xs.Slot,{scope:e.__scopeMenu,children:s.modal?(0,a.jsx)(qs,{...o,ref:t}):(0,a.jsx)($s,{...o,ref:t})})})})}),qs=c.forwardRef((e,t)=>{const n=As(Ps,e.__scopeMenu),r=c.useRef(null),o=nn(t,r);return c.useEffect(()=>{const e=r.current;if(e)return Ai(e)},[]),(0,a.jsx)(Ks,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:en(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),$s=c.forwardRef((e,t)=>{const n=As(Ps,e.__scopeMenu);return(0,a.jsx)(Ks,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),zs=un("MenuContent.ScrollLock"),Ks=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEntryFocus:u,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:f,onInteractOutside:p,onDismiss:m,disableOutsideScroll:g,...y}=e,v=As(Ps,n),b=Ns(Ps,n),x=ks(n),E=_s(n),w=Es(n),[C,S]=c.useState(null),k=c.useRef(null),_=nn(t,k,v.onContentChange),T=c.useRef(0),A=c.useRef(""),D=c.useRef(0),N=c.useRef(null),R=c.useRef("right"),O=c.useRef(0),F=g?fs:c.Fragment,M=g?{as:zs,allowPinchZoom:!0}:void 0;c.useEffect(()=>()=>window.clearTimeout(T.current),[]),Fn();const I=c.useCallback(e=>R.current===N.current?.side&&function(e,t){if(!t)return!1;return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const s=t[e],a=t[i],l=s.x,c=s.y,u=a.x,d=a.y;c>r!=d>r&&n<(u-l)*(r-c)/(d-c)+l&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,N.current?.area),[]);return(0,a.jsx)(js,{scope:n,searchRef:A,onItemEnter:c.useCallback(e=>{I(e)&&e.preventDefault()},[I]),onItemLeave:c.useCallback(e=>{I(e)||(k.current?.focus(),S(null))},[I]),onTriggerLeave:c.useCallback(e=>{I(e)&&e.preventDefault()},[I]),pointerGraceTimerRef:D,onPointerGraceIntentChange:c.useCallback(e=>{N.current=e},[]),children:(0,a.jsx)(F,{...M,children:(0,a.jsx)(jn,{asChild:!0,trapped:o,onMountAutoFocus:en(i,e=>{e.preventDefault(),k.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:(0,a.jsx)(Tn,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:f,onInteractOutside:p,onDismiss:m,children:(0,a.jsx)(Ei,{asChild:!0,...E,dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:S,onEntryFocus:en(u,e=>{b.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,a.jsx)(Qo,{role:"menu","aria-orientation":"vertical","data-state":ya(v.open),"data-radix-menu-content":"",dir:b.dir,...x,...y,ref:_,style:{outline:"none",...y.style},onKeyDown:en(y.onKeyDown,e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{const t=A.current+e,n=w().filter(e=>!e.disabled),r=document.activeElement,o=n.find(e=>e.ref.current===r)?.textValue,i=function(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=(s=e,a=Math.max(o,0),s.map((e,t)=>s[(a+t)%s.length]));var s,a;1===r.length&&(i=i.filter(e=>e!==n));const l=i.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}(n.map(e=>e.textValue),t,o),s=n.find(e=>e.textValue===i)?.ref.current;!function e(t){A.current=t,window.clearTimeout(T.current),""!==t&&(T.current=window.setTimeout(()=>e(""),1e3))}(t),s&&setTimeout(()=>s.focus())})(e.key));const o=k.current;if(e.target!==o)return;if(!gs.includes(e.key))return;e.preventDefault();const i=w().filter(e=>!e.disabled).map(e=>e.ref.current);ms.includes(e.key)&&i.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(i)}),onBlur:en(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),A.current="")}),onPointerMove:en(e.onPointerMove,xa(e=>{const t=e.target,n=O.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>O.current?"right":"left";R.current=t,O.current=e.clientX}}))})})})})})})});Bs.displayName=Ps;var Us=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,a.jsx)(vn.div,{role:"group",...r,ref:t})});Us.displayName="MenuGroup";var Ws=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,a.jsx)(vn.div,{...r,ref:t})});Ws.displayName="MenuLabel";var Hs="MenuItem",Gs="menu.itemSelect",Qs=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=c.useRef(null),s=Ns(Hs,e.__scopeMenu),l=Vs(Hs,e.__scopeMenu),u=nn(t,i),d=c.useRef(!1);return(0,a.jsx)(Ys,{...o,ref:u,disabled:n,onClick:en(e.onClick,()=>{const e=i.current;if(!n&&e){const t=new CustomEvent(Gs,{bubbles:!0,cancelable:!0});e.addEventListener(Gs,e=>r?.(e),{once:!0}),bn(e,t),t.defaultPrevented?d.current=!1:s.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),d.current=!0},onPointerUp:en(e.onPointerUp,e=>{d.current||e.currentTarget?.click()}),onKeyDown:en(e.onKeyDown,e=>{n||e.target!==e.currentTarget||""!==l.searchRef.current&&" "===e.key||ps.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});Qs.displayName=Hs;var Ys=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,s=Vs(Hs,n),l=_s(n),u=c.useRef(null),d=nn(t,u),[h,f]=c.useState(!1),[p,m]=c.useState("");return c.useEffect(()=>{const e=u.current;e&&m((e.textContent??"").trim())},[i.children]),(0,a.jsx)(xs.ItemSlot,{scope:n,disabled:r,textValue:o??p,children:(0,a.jsx)(wi,{asChild:!0,...l,focusable:!r,children:(0,a.jsx)(vn.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:d,onPointerMove:en(e.onPointerMove,xa(e=>{r?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:en(e.onPointerLeave,xa(e=>s.onItemLeave(e))),onFocus:en(e.onFocus,()=>f(!0)),onBlur:en(e.onBlur,()=>f(!1))})})})}),Xs=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return(0,a.jsx)(ia,{scope:e.__scopeMenu,checked:n,children:(0,a.jsx)(Qs,{role:"menuitemcheckbox","aria-checked":va(n)?"mixed":n,...o,ref:t,"data-state":ba(n),onSelect:en(o.onSelect,()=>r?.(!!va(n)||!n),{checkForDefaultPrevented:!1})})})});Xs.displayName="MenuCheckboxItem";var Js="MenuRadioGroup",[Zs,ea]=Cs(Js,{value:void 0,onValueChange:()=>{}}),ta=c.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=Cn(r);return(0,a.jsx)(Zs,{scope:e.__scopeMenu,value:n,onValueChange:i,children:(0,a.jsx)(Us,{...o,ref:t})})});ta.displayName=Js;var na="MenuRadioItem",ra=c.forwardRef((e,t)=>{const{value:n,...r}=e,o=ea(na,e.__scopeMenu),i=n===o.value;return(0,a.jsx)(ia,{scope:e.__scopeMenu,checked:i,children:(0,a.jsx)(Qs,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":ba(i),onSelect:en(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});ra.displayName=na;var oa="MenuItemIndicator",[ia,sa]=Cs(oa,{checked:!1}),aa=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=sa(oa,n);return(0,a.jsx)(Jo,{present:r||va(i.checked)||!0===i.checked,children:(0,a.jsx)(vn.span,{...o,ref:t,"data-state":ba(i.checked)})})});aa.displayName=oa;var la=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,a.jsx)(vn.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});la.displayName="MenuSeparator";var ca=c.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=ks(n);return(0,a.jsx)(Yo,{...o,...r,ref:t})});ca.displayName="MenuArrow";var ua="MenuSub",[da,ha]=Cs(ua),fa="MenuSubTrigger",pa=c.forwardRef((e,t)=>{const n=As(fa,e.__scopeMenu),r=Ns(fa,e.__scopeMenu),o=ha(fa,e.__scopeMenu),i=Vs(fa,e.__scopeMenu),s=c.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=i,d={__scopeMenu:e.__scopeMenu},h=c.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);c.useEffect(()=>h,[h]),c.useEffect(()=>{const e=l.current;return()=>{window.clearTimeout(e),u(null)}},[l,u]);const f=nn(t,o.onTriggerChange);return(0,a.jsx)(Os,{asChild:!0,...d,children:(0,a.jsx)(Ys,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.open?o.contentId:void 0,"data-state":ya(n.open),...e,ref:f,onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:en(e.onPointerMove,xa(t=>{i.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||s.current||(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),h()},100))})),onPointerLeave:en(e.onPointerLeave,xa(e=>{h();const t=n.content?.getBoundingClientRect();if(t){const r=n.content?.dataset.side,o="right"===r,s=o?-5:5,a=t[o?"left":"right"],c=t[o?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+s,y:e.clientY},{x:a,y:t.top},{x:c,y:t.top},{x:c,y:t.bottom},{x:a,y:t.bottom}],side:r}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:en(e.onKeyDown,t=>{e.disabled||t.target!==t.currentTarget||""!==i.searchRef.current&&" "===t.key||ys[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});pa.displayName=fa;var ma="MenuSubContent",ga=c.forwardRef((e,t)=>{const n=Is(Ps,e.__scopeMenu),{forceMount:r=n.forceMount,align:o="start",...i}=e,s=As(Ps,e.__scopeMenu),l=Ns(Ps,e.__scopeMenu),u=ha(ma,e.__scopeMenu),d=c.useRef(null),h=nn(t,d);return(0,a.jsx)(xs.Provider,{scope:e.__scopeMenu,children:(0,a.jsx)(Jo,{present:r||s.open,children:(0,a.jsx)(xs.Slot,{scope:e.__scopeMenu,children:(0,a.jsx)(Ks,{id:u.contentId,"aria-labelledby":u.triggerId,...i,ref:h,align:o,side:"rtl"===l.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{l.isUsingKeyboardRef.current&&d.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:en(e.onFocusOutside,e=>{e.target!==u.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:en(e.onEscapeKeyDown,e=>{l.onClose(),e.preventDefault()}),onKeyDown:en(e.onKeyDown,e=>{const t=e.currentTarget.contains(e.target),n=vs[l.dir].includes(e.key);t&&n&&(s.onOpenChange(!1),u.trigger?.focus(),e.preventDefault())})})})})})});function ya(e){return e?"open":"closed"}function va(e){return"indeterminate"===e}function ba(e){return va(e)?"indeterminate":e?"checked":"unchecked"}function xa(e){return t=>"mouse"===t.pointerType?e(t):void 0}ga.displayName=ma;var Ea=Rs,wa=Os,Ca=Ls,Sa=Bs,ka=Us,_a=Ws,Ta=Qs,Aa=Xs,Da=ta,Na=ra,Ra=aa,Oa=la,Fa=ca,Ma=pa,Ia=ga,La="DropdownMenu",[Pa,ja]=rn(La,[Ss]),Va=Ss(),[Ba,qa]=Pa(La),$a=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:s,modal:l=!0}=e,u=Va(t),d=c.useRef(null),[h,f]=ln({prop:o,defaultProp:i??!1,onChange:s,caller:La});return(0,a.jsx)(Ba,{scope:t,triggerId:Hn(),triggerRef:d,contentId:Hn(),open:h,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(e=>!e),[f]),modal:l,children:(0,a.jsx)(Ea,{...u,open:h,onOpenChange:f,dir:r,modal:l,children:n})})};$a.displayName=La;var za="DropdownMenuTrigger",Ka=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=qa(za,n),s=Va(n),l=nn(t,i.triggerRef);return(0,a.jsx)(wa,{asChild:!0,...s,children:(0,a.jsx)(vn.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:l,onPointerDown:en(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())}),onKeyDown:en(e.onKeyDown,e=>{r||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});Ka.displayName=za;var Ua=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Va(t);return(0,a.jsx)(Ca,{...r,...n})};Ua.displayName="DropdownMenuPortal";var Wa="DropdownMenuContent",Ha=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=qa(Wa,n),i=Va(n),s=c.useRef(!1);return(0,a.jsx)(Sa,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:en(e.onCloseAutoFocus,e=>{s.current||o.triggerRef.current?.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:en(e.onInteractOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.modal&&!r||(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ha.displayName=Wa,c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Va(n);return(0,a.jsx)(ka,{...o,...r,ref:t})}).displayName="DropdownMenuGroup",c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Va(n);return(0,a.jsx)(_a,{...o,...r,ref:t})}).displayName="DropdownMenuLabel";var Ga=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Va(n);return(0,a.jsx)(Ta,{...o,...r,ref:t})});Ga.displayName="DropdownMenuItem",c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Va(n);return(0,a.jsx)(Aa,{...o,...r,ref:t})}).displayName="DropdownMenuCheckboxItem",c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Va(n);return(0,a.jsx)(Da,{...o,...r,ref:t})}).displayName="DropdownMenuRadioGroup",c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Va(n);return(0,a.jsx)(Na,{...o,...r,ref:t})}).displayName="DropdownMenuRadioItem",c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Va(n);return(0,a.jsx)(Ra,{...o,...r,ref:t})}).displayName="DropdownMenuItemIndicator",c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Va(n);return(0,a.jsx)(Oa,{...o,...r,ref:t})}).displayName="DropdownMenuSeparator",c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Va(n);return(0,a.jsx)(Fa,{...o,...r,ref:t})}).displayName="DropdownMenuArrow",c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Va(n);return(0,a.jsx)(Ma,{...o,...r,ref:t})}).displayName="DropdownMenuSubTrigger",c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Va(n);return(0,a.jsx)(Ia,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var Qa=$a,Ya=Ka,Xa=Ua,Ja=Ha,Za=Ga;const el=(0,c.forwardRef)((e,t)=>{const n=(0,l.c)(6);let r,o;return n[0]!==e.className?(r=(0,Xt.$)("graphiql-un-styled",e.className),n[0]=e.className,n[1]=r):r=n[1],n[2]!==e||n[3]!==t||n[4]!==r?(o=(0,a.jsx)(Ya,{asChild:!0,children:(0,a.jsx)("button",{...e,ref:t,className:r})}),n[2]=e,n[3]=t,n[4]=r,n[5]=o):o=n[5],o});el.displayName="DropdownMenuButton";const tl=Object.assign(Qa,{Button:el,Item:e=>{const t=(0,l.c)(10);let n,r,o,i,s;return t[0]!==e?(({className:r,children:n,...o}=e),t[0]=e,t[1]=n,t[2]=r,t[3]=o):(n=t[1],r=t[2],o=t[3]),t[4]!==r?(i=(0,Xt.$)("graphiql-dropdown-item",r),t[4]=r,t[5]=i):i=t[5],t[6]!==n||t[7]!==o||t[8]!==i?(s=(0,a.jsx)(Za,{className:i,...o,children:n}),t[6]=n,t[7]=o,t[8]=i,t[9]=s):s=t[9],s},Content:e=>{const t=(0,l.c)(14);let n,r,o,i,s;t[0]!==e?(({children:n,align:i,sideOffset:s,className:r,...o}=e),t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=i,t[5]=s):(n=t[1],r=t[2],o=t[3],i=t[4],s=t[5]);const c=void 0===i?"start":i,u=void 0===s?5:s;let d,h;return t[6]!==r?(d=(0,Xt.$)("graphiql-dropdown-content",r),t[6]=r,t[7]=d):d=t[7],t[8]!==c||t[9]!==n||t[10]!==o||t[11]!==u||t[12]!==d?(h=(0,a.jsx)(Xa,{children:(0,a.jsx)(Ja,{align:c,sideOffset:u,className:d,...o,children:n})}),t[8]=c,t[9]=n,t[10]=o,t[11]=u,t[12]=d,t[13]=h):h=t[13],h}});var nl=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),rl=c.forwardRef((e,t)=>(0,a.jsx)(vn.span,{...e,ref:t,style:{...nl,...e.style}}));rl.displayName="VisuallyHidden";var ol=rl,[il,sl]=rn("Tooltip",[Ro]),al=Ro(),ll="TooltipProvider",cl=700,ul="tooltip.open",[dl,hl]=il(ll),fl=e=>{const{__scopeTooltip:t,delayDuration:n=cl,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=c.useRef(!0),l=c.useRef(!1),u=c.useRef(0);return c.useEffect(()=>{const e=u.current;return()=>window.clearTimeout(e)},[]),(0,a.jsx)(dl,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:c.useCallback(()=>{r<=0||(window.clearTimeout(u.current),s.current=!1)},[r]),onClose:c.useCallback(()=>{r<=0||(window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.current=!0,r))},[r]),isPointerInTransitRef:l,onPointerInTransitChange:c.useCallback(e=>{l.current=e},[]),disableHoverableContent:o,children:i})};fl.displayName=ll;var pl="Tooltip",[ml,gl]=il(pl),yl=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:s,delayDuration:l}=e,u=hl(pl,e.__scopeTooltip),d=al(t),[h,f]=c.useState(null),p=Hn(),m=c.useRef(0),g=s??u.disableHoverableContent,y=l??u.delayDuration,v=c.useRef(!1),[b,x]=ln({prop:r,defaultProp:o??!1,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(ul))):u.onClose(),i?.(e)},caller:pl}),E=c.useMemo(()=>b?v.current?"delayed-open":"instant-open":"closed",[b]),w=c.useCallback(()=>{window.clearTimeout(m.current),m.current=0,v.current=!1,x(!0)},[x]),C=c.useCallback(()=>{window.clearTimeout(m.current),m.current=0,x(!1)},[x]),S=c.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{v.current=!0,x(!0),m.current=0},y)},[y,x]);return c.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),(0,a.jsx)(Ho,{...d,children:(0,a.jsx)(ml,{scope:t,contentId:p,open:b,stateAttribute:E,trigger:h,onTriggerChange:f,onTriggerEnter:c.useCallback(()=>{u.isOpenDelayedRef.current?S():w()},[u.isOpenDelayedRef,S,w]),onTriggerLeave:c.useCallback(()=>{g?C():(window.clearTimeout(m.current),m.current=0)},[C,g]),onOpen:w,onClose:C,disableHoverableContent:g,children:n})})};yl.displayName=pl;var vl="TooltipTrigger",bl=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=gl(vl,n),i=hl(vl,n),s=al(n),l=nn(t,c.useRef(null),o.onTriggerChange),u=c.useRef(!1),d=c.useRef(!1),h=c.useCallback(()=>u.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),(0,a.jsx)(Go,{asChild:!0,...s,children:(0,a.jsx)(vn.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:l,onPointerMove:en(e.onPointerMove,e=>{"touch"!==e.pointerType&&(d.current||i.isPointerInTransitRef.current||(o.onTriggerEnter(),d.current=!0))}),onPointerLeave:en(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:en(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:en(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:en(e.onBlur,o.onClose),onClick:en(e.onClick,o.onClose)})})});bl.displayName=vl;var xl="TooltipPortal",[El,wl]=il(xl,{forceMount:void 0}),Cl=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=gl(xl,t);return(0,a.jsx)(El,{scope:t,forceMount:n,children:(0,a.jsx)(Jo,{present:n||i.open,children:(0,a.jsx)(Xo,{asChild:!0,container:o,children:r})})})};Cl.displayName=xl;var Sl="TooltipContent",kl=c.forwardRef((e,t)=>{const n=wl(Sl,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=gl(Sl,e.__scopeTooltip);return(0,a.jsx)(Jo,{present:r||s.open,children:s.disableHoverableContent?(0,a.jsx)(Nl,{side:o,...i,ref:t}):(0,a.jsx)(_l,{side:o,...i,ref:t})})}),_l=c.forwardRef((e,t)=>{const n=gl(Sl,e.__scopeTooltip),r=hl(Sl,e.__scopeTooltip),o=c.useRef(null),i=nn(t,o),[s,l]=c.useState(null),{trigger:u,onClose:d}=n,h=o.current,{onPointerInTransitChange:f}=r,p=c.useCallback(()=>{l(null),f(!1)},[f]),m=c.useCallback((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),i=function(e){const t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...o,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);l(i),f(!0)},[f]);return c.useEffect(()=>()=>p(),[p]),c.useEffect(()=>{if(u&&h){const e=e=>m(e,h),t=e=>m(e,u);return u.addEventListener("pointerleave",e),h.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),h.removeEventListener("pointerleave",t)}}},[u,h,m,p]),c.useEffect(()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=u?.contains(t)||h?.contains(t),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const s=t[e],a=t[i],l=s.x,c=s.y,u=a.x,d=a.y;c>r!=d>r&&n<(u-l)*(r-c)/(d-c)+l&&(o=!o)}return o}(n,s);r?p():o&&(p(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[u,h,s,d,p]),(0,a.jsx)(Nl,{...e,ref:i})}),[Tl,Al]=il(pl,{isInside:!1}),Dl=function(e){const t=e=>"child"in e?e.children(e.child):e.children;return t.displayName=`${e}.Slottable`,t.__radixId=dn,t}("TooltipContent"),Nl=c.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,u=gl(Sl,n),d=al(n),{onClose:h}=u;return c.useEffect(()=>(document.addEventListener(ul,h),()=>document.removeEventListener(ul,h)),[h]),c.useEffect(()=>{if(u.trigger){const e=e=>{e.target instanceof Node&&e.target.contains(u.trigger)&&h()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[u.trigger,h]),(0,a.jsx)(Tn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:h,children:(0,a.jsxs)(Qo,{"data-state":u.stateAttribute,...d,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,a.jsx)(Dl,{children:r}),(0,a.jsx)(Tl,{scope:n,isInside:!0,children:(0,a.jsx)(ol,{id:u.contentId,role:"tooltip",children:o||r})})]})})});kl.displayName=Sl;var Rl="TooltipArrow";c.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=al(n);return Al(Rl,n).isInside?null:(0,a.jsx)(Yo,{...o,...r,ref:t})}).displayName=Rl;var Ol=fl,Fl=yl,Ml=bl,Il=Cl,Ll=kl;const Pl=Object.assign(e=>{const t=(0,l.c)(10),{children:n,align:r,side:o,sideOffset:i,label:s}=e,c=void 0===r?"start":r,u=void 0===o?"bottom":o,d=void 0===i?5:i;let h,f,p;return t[0]!==n?(h=(0,a.jsx)(Ml,{asChild:!0,children:n}),t[0]=n,t[1]=h):h=t[1],t[2]!==c||t[3]!==s||t[4]!==u||t[5]!==d?(f=(0,a.jsx)(Il,{children:(0,a.jsx)(Ll,{className:"graphiql-tooltip",align:c,side:u,sideOffset:d,children:s})}),t[2]=c,t[3]=s,t[4]=u,t[5]=d,t[6]=f):f=t[6],t[7]!==h||t[8]!==f?(p=(0,a.jsxs)(Fl,{children:[h,f]}),t[7]=h,t[8]=f,t[9]=p):p=t[9],p},{Provider:Ol}),jl=()=>{const e=(0,l.c)(18),{setOperationName:t,run:n,stop:r}=it();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=lt("operations","operationName","isFetching","overrideOperationName"),e[0]=o):o=e[0];const{operations:i,operationName:s,isFetching:c,overrideOperationName:u}=ot(o);let d;e[1]!==i?(d=void 0===i?[]:i,e[1]=i,e[2]=d):d=e[2];const h=d,f=ot(Vl),p=h.length>1&&"string"!=typeof u,m=c||f,g=`${m?"Stop":"Execute"} query (${k(_.runQuery.key,"Cmd")})`;let y,v;e[3]!==m?(y=m?(0,a.jsx)(qt,{}):(0,a.jsx)(Ft,{}),e[3]=m,e[4]=y):y=e[4],e[5]!==g||e[6]!==y?(v={type:"button",className:"graphiql-execute-button",children:y,"aria-label":g},e[5]=g,e[6]=y,e[7]=v):v=e[7];const b=v;let x;return e[8]!==b||e[9]!==p||e[10]!==m||e[11]!==g||e[12]!==s||e[13]!==h||e[14]!==n||e[15]!==t||e[16]!==r?(x=p&&!m?(0,a.jsxs)(tl,{children:[(0,a.jsx)(Pl,{label:g,children:(0,a.jsx)(tl.Button,{...b})}),(0,a.jsx)(tl.Content,{children:h.map((e,r)=>{const o=e.name?e.name.value:`<Unnamed ${e.operation}>`;return(0,a.jsx)(tl.Item,{onSelect:()=>{var r;const o=null==(r=e.name)?void 0:r.value;o&&o!==s&&t(o),n()},children:o},`${o}-${r}`)})})]}):(0,a.jsx)(Pl,{label:g,children:(0,a.jsx)("button",{...b,onClick:m?r:n})}),e[8]=b,e[9]=p,e[10]=m,e[11]=g,e[12]=s,e[13]=h,e[14]=n,e[15]=t,e[16]=r,e[17]=x):x=e[17],x};function Vl(e){return Boolean(e.subscription)}const Bl=(0,c.forwardRef)((e,t)=>{const n=(0,l.c)(6);let r,o;return n[0]!==e.className?(r=(0,Xt.$)("graphiql-un-styled",e.className),n[0]=e.className,n[1]=r):r=n[1],n[2]!==e||n[3]!==t||n[4]!==r?(o=(0,a.jsx)("button",{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=o):o=n[5],o});Bl.displayName="UnStyledButton";const ql=(0,c.forwardRef)((e,t)=>{const n=(0,l.c)(7);let r,o;return n[0]!==e.className||n[1]!==e.state?(r=(0,Xt.$)("graphiql-button",{success:"graphiql-button-success",error:"graphiql-button-error"}[e.state],e.className),n[0]=e.className,n[1]=e.state,n[2]=r):r=n[2],n[3]!==e||n[4]!==t||n[5]!==r?(o=(0,a.jsx)("button",{...e,ref:t,className:r}),n[3]=e,n[4]=t,n[5]=r,n[6]=o):o=n[6],o});ql.displayName="Button";const $l=e=>{const t=(0,l.c)(19);let n,r;t[0]!==e?(({onEdit:n,...r}=e),t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);const{setEditor:o,run:i,prettifyEditors:s,mergeQuery:u}=it();let d;t[3]===Symbol.for("react.memo_cache_sentinel")?(d=lt("initialVariables","uriInstanceId"),t[3]=d):d=t[3];const{initialVariables:h,uriInstanceId:f}=ot(d),p=(0,c.useRef)(null),m=Ke(zl);let g,y,v,b;return Ue(n,N,"variables"),t[4]!==h||t[5]!==u||t[6]!==m||t[7]!==s||t[8]!==i||t[9]!==o||t[10]!==f?(g=()=>{if(!m)return;const e=Ht({uri:`${f}${V}`,value:h}),t=Gt(p,{model:e});return o({variableEditor:t}),Yt([t.addAction({...P,run:i}),t.addAction({...I,run:s}),t.addAction({...L,run:u}),t,e])},t[4]=h,t[5]=u,t[6]=m,t[7]=s,t[8]=i,t[9]=o,t[10]=f,t[11]=g):g=t[11],t[12]!==m?(y=[m],t[12]=m,t[13]=y):y=t[13],(0,c.useEffect)(g,y),t[14]!==r.className?(v=(0,Xt.$)("graphiql-editor",r.className),t[14]=r.className,t[15]=v):v=t[15],t[16]!==r||t[17]!==v?(b=(0,a.jsx)("div",{ref:p,tabIndex:0,onKeyDown:Wt,...r,className:v}),t[16]=r,t[17]=v,t[18]=b):b=t[18],b};function zl(e){return e.monaco}const Kl=e=>{const t=(0,l.c)(19);let n,r;t[0]!==e?(({onEdit:n,...r}=e),t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);const{setEditor:o,run:i,prettifyEditors:s,mergeQuery:u}=it();let d;t[3]===Symbol.for("react.memo_cache_sentinel")?(d=lt("initialHeaders","shouldPersistHeaders","uriInstanceId"),t[3]=d):d=t[3];const{initialHeaders:h,shouldPersistHeaders:f,uriInstanceId:p}=ot(d),m=(0,c.useRef)(null),g=Ke(Ul);let y,v,b,x;return Ue(n,f?T:null,"headers"),t[4]!==h||t[5]!==u||t[6]!==g||t[7]!==s||t[8]!==i||t[9]!==o||t[10]!==p?(y=()=>{if(!g)return;const e=Ht({uri:`${p}request-headers.json`,value:h}),t=Gt(m,{model:e});return o({headerEditor:t}),Yt([t.addAction({...P,run:i}),t.addAction({...I,run:s}),t.addAction({...L,run:u}),t,e])},t[4]=h,t[5]=u,t[6]=g,t[7]=s,t[8]=i,t[9]=o,t[10]=p,t[11]=y):y=t[11],t[12]!==g?(v=[g],t[12]=g,t[13]=v):v=t[13],(0,c.useEffect)(y,v),t[14]!==r.className?(b=(0,Xt.$)("graphiql-editor",r.className),t[14]=r.className,t[15]=b):b=t[15],t[16]!==r||t[17]!==b?(x=(0,a.jsx)("div",{ref:m,tabIndex:0,onKeyDown:Wt,...r,className:b}),t[16]=r,t[17]=b,t[18]=x):x=t[18],x};function Ul(e){return e.monaco}const Wl=e=>Boolean(e&&e.getVelocity),Hl=(0,c.createContext)(null),Gl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ql=(()=>new Set([...Gl,"pathRotation"]))(),Yl=(e,t,n)=>n>t?t:n<e?e:n,Xl={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Jl={...Xl,transform:e=>Yl(0,1,e)},Zl={...Xl,default:1},ec=e=>Math.round(1e5*e)/1e5,tc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,nc=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,rc=(e,t)=>n=>Boolean("string"==typeof n&&nc.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),oc=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[o,i,s,a]=r.match(tc);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},ic={...Xl,transform:e=>Math.round((e=>Yl(0,255,e))(e))},sc={test:rc("rgb","red"),parse:oc("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ic.transform(e)+", "+ic.transform(t)+", "+ic.transform(n)+", "+ec(Jl.transform(r))+")"},ac={test:rc("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:sc.transform},lc=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),cc=lc("deg"),uc=lc("%"),dc=lc("px"),hc=lc("vh"),fc=lc("vw"),pc=(()=>({...uc,parse:e=>uc.parse(e)/100,transform:e=>uc.transform(100*e)}))(),mc={test:rc("hsl","hue"),parse:oc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+uc.transform(ec(t))+", "+uc.transform(ec(n))+", "+ec(Jl.transform(r))+")"},gc={test:e=>sc.test(e)||ac.test(e)||mc.test(e),parse:e=>sc.test(e)?sc.parse(e):mc.test(e)?mc.parse(e):ac.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?sc.transform(e):mc.transform(e),getAnimatableNone:e=>{const t=gc.parse(e);return t.alpha=0,gc.transform(t)}},yc=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,vc="number",bc="color",xc=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ec(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(xc,e=>(gc.test(e)?(r.color.push(i),o.push(bc),n.push(gc.parse(e))):e.startsWith("var(")?(r.var.push(i),o.push("var"),n.push(e)):(r.number.push(i),o.push(vc),n.push(parseFloat(e))),++i,"${}")).split("${}");return{values:n,split:s,indexes:r,types:o}}function wc({split:e,types:t}){const n=e.length;return r=>{let o="";for(let i=0;i<n;i++)if(o+=e[i],void 0!==r[i]){const e=t[i];o+=e===vc?ec(r[i]):e===bc?gc.transform(r[i]):r[i]}return o}}const Cc={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(tc)?.length||0)+(e.match(yc)?.length||0)>0},parse:function(e){return Ec(e).values},createTransformer:function(e){return wc(Ec(e))},getAnimatableNone:function(e){const t=Ec(e);return wc(t)(t.values.map((e,n)=>((e,t)=>{return"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof(n=e)?0:gc.test(n)?gc.getAnimatableNone(n):n;var n})(e,t.split[n])))}},Sc=new Set(["brightness","contrast","saturate","opacity"]);function kc(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(tc)||[];if(!r)return e;const o=n.replace(r,"");let i=Sc.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const _c=/\b([a-z-]*)\(.*?\)/gu,Tc={...Cc,getAnimatableNone:e=>{const t=e.match(_c);return t?t.map(kc).join(" "):e}},Ac={...Cc,getAnimatableNone:e=>{const t=Cc.parse(e);return Cc.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},Dc={...Xl,transform:Math.round},Nc={borderWidth:dc,borderTopWidth:dc,borderRightWidth:dc,borderBottomWidth:dc,borderLeftWidth:dc,borderRadius:dc,borderTopLeftRadius:dc,borderTopRightRadius:dc,borderBottomRightRadius:dc,borderBottomLeftRadius:dc,width:dc,maxWidth:dc,height:dc,maxHeight:dc,top:dc,right:dc,bottom:dc,left:dc,inset:dc,insetBlock:dc,insetBlockStart:dc,insetBlockEnd:dc,insetInline:dc,insetInlineStart:dc,insetInlineEnd:dc,padding:dc,paddingTop:dc,paddingRight:dc,paddingBottom:dc,paddingLeft:dc,paddingBlock:dc,paddingBlockStart:dc,paddingBlockEnd:dc,paddingInline:dc,paddingInlineStart:dc,paddingInlineEnd:dc,margin:dc,marginTop:dc,marginRight:dc,marginBottom:dc,marginLeft:dc,marginBlock:dc,marginBlockStart:dc,marginBlockEnd:dc,marginInline:dc,marginInlineStart:dc,marginInlineEnd:dc,fontSize:dc,backgroundPositionX:dc,backgroundPositionY:dc,rotate:cc,pathRotation:cc,rotateX:cc,rotateY:cc,rotateZ:cc,scale:Zl,scaleX:Zl,scaleY:Zl,scaleZ:Zl,skew:cc,skewX:cc,skewY:cc,distance:dc,translateX:dc,translateY:dc,translateZ:dc,x:dc,y:dc,z:dc,perspective:dc,transformPerspective:dc,opacity:Jl,originX:pc,originY:pc,originZ:dc,zIndex:Dc,fillOpacity:Jl,strokeOpacity:Jl,numOctaves:Dc},Rc={...Nc,color:gc,backgroundColor:gc,outlineColor:gc,fill:gc,stroke:gc,borderColor:gc,borderTopColor:gc,borderRightColor:gc,borderBottomColor:gc,borderLeftColor:gc,filter:Tc,WebkitFilter:Tc,mask:Ac,WebkitMask:Ac},Oc=e=>Rc[e],Fc=()=>({x:{min:0,max:0},y:{min:0,max:0}}),Mc=new Set(["width","height","top","left","right","bottom",...Gl]),Ic=e=>t=>t.test(e),Lc=[Xl,dc,uc,cc,fc,hc,{test:e=>"auto"===e,parse:e=>e}],Pc=e=>Lc.find(Ic(e)),jc=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Vc=e=>t=>"string"==typeof t&&t.startsWith(e),Bc=Vc("--"),qc=Vc("var(--"),$c=e=>!!qc(e)&&zc.test(e.split("/*")[0].trim()),zc=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Kc(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}const Uc=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Wc(e,t,n=1){const[r,o]=function(e){const t=Uc.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return jc(e)?parseFloat(e):e}return $c(o)?Wc(o,t,n+1):o}const Hc=e=>180*e/Math.PI,Gc=e=>{const t=Hc(Math.atan2(e[1],e[0]));return Yc(t)},Qc={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Gc,rotateZ:Gc,skewX:e=>Hc(Math.atan(e[1])),skewY:e=>Hc(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Yc=e=>((e%=360)<0&&(e+=360),e),Xc=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Jc=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Zc={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Xc,scaleY:Jc,scale:e=>(Xc(e)+Jc(e))/2,rotateX:e=>Yc(Hc(Math.atan2(e[6],e[5]))),rotateY:e=>Yc(Hc(Math.atan2(-e[2],e[0]))),rotateZ:Gc,rotate:Gc,skewX:e=>Hc(Math.atan(e[4])),skewY:e=>Hc(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function eu(e){return e.includes("scale")?1:0}function tu(e,t){if(!e||"none"===e)return eu(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=Zc,o=n;else{const t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Qc,o=t}if(!o)return eu(t);const i=r[t],s=o[1].split(",").map(nu);return"function"==typeof i?i(s):s[i]}function nu(e){return parseFloat(e.trim())}const ru=e=>e===Xl||e===dc,ou=new Set(["x","y","z"]),iu=Gl.filter(e=>!ou.has(e)),su={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const o=e.max-e.min;return"border-box"===r?o:o-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const o=e.max-e.min;return"border-box"===r?o:o-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>tu(t,"x"),y:(e,{transform:t})=>tu(t,"y")};su.translateX=su.x,su.translateY=su.y;const au=e=>e,lu={},cu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function uu(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=cu.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(t){i.has(t)&&(l.schedule(t),e()),t(s)}const l={schedule:(e,o=!1,s=!1)=>{const a=s&&r?t:n;return o&&i.add(e),a.add(e),e},cancel:e=>{n.delete(e),i.delete(e)},process:e=>{if(s=e,r)return void(o=!0);r=!0;const i=t;t=n,n=i,t.forEach(a),t.clear(),r=!1,o&&(o=!1,l.process(e))}};return l}(i),e),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:h,render:f,postRender:p}=s,m=()=>{const i=lu.useManualTiming,s=i?o.timestamp:performance.now();n=!1,i||(o.delta=r?1e3/60:Math.max(Math.min(s-o.timestamp,40),1)),o.timestamp=s,o.isProcessing=!0,a.process(o),l.process(o),c.process(o),u.process(o),d.process(o),h.process(o),f.process(o),p.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(m))};return{schedule:cu.reduce((t,i)=>{const a=s[i];return t[i]=(t,i=!1,s=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(m)),a.schedule(t,i,s)),t},{}),cancel:e=>{for(let t=0;t<cu.length;t++)s[cu[t]].cancel(e)},state:o,steps:s}}const{schedule:du,cancel:hu,state:fu,steps:pu}=uu("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:au,!0),mu=new Set;let gu=!1,yu=!1,vu=!1;function bu(){if(yu){const e=Array.from(mu).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{const t=function(e){const t=[];return iu.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();const t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}yu=!1,gu=!1,mu.forEach(e=>e.complete(vu)),mu.clear()}function xu(){mu.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(yu=!0)})}class Eu{constructor(e,t,n,r,o,i=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(mu.add(this),gu||(gu=!0,du.read(xu),du.resolveKeyframes(bu))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){const o=r?.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,i);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=i),r&&void 0===o&&r.set(e[0])}!function(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),mu.delete(this)}cancel(){"scheduled"===this.state&&(mu.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const wu=e=>/^0[^.\s]+$/u.test(e);function Cu(e){return"number"==typeof e?0===e:null===e||"none"===e||"0"===e||wu(e)}const Su=new Set([Tc,Ac]);function ku(e,t){let n=Oc(e);return Su.has(n)||(n=Cc),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const _u=new Set(["auto","none","0"]);class Tu extends Eu{constructor(e,t,n,r,o){super(e,t,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&(r=r.trim(),$c(r))){const o=Wc(r,t.current);void 0!==o&&(e[n]=o),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Mc.has(n)||2!==e.length)return;const[r,o]=e,i=Pc(r),s=Pc(o);if(Kc(r)!==Kc(o)&&su[n])this.needsMeasurement=!0;else if(i!==s)if(ru(i)&&ru(s))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else su[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||Cu(e[t]))&&n.push(t);n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;){const t=e[o];"string"==typeof t&&!_u.has(t)&&Ec(t).values.length&&(r=e[o]),o++}if(r&&n)for(const o of t)e[o]=ku(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=su[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){const{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;const r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);const o=n.length-1,i=n[o];n[o]=su[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==i&&void 0===this.finalKeyframe&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}const Au=e=>1e3*e,Du=e=>e/1e3;function Nu(e,t){-1===e.indexOf(t)&&e.push(t)}function Ru(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ou{constructor(){this.subscriptions=[]}add(e){return Nu(this.subscriptions,e),()=>Ru(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Fu(e,t,n){(e=>e.startsWith("--"))(t)?e.style.setProperty(t,n):e.style[t]=n}function Mu(e){let t;return()=>(void 0===t&&(t=e()),t)}const Iu={};function Lu(e,t){const n=Mu(e);return()=>Iu[t]??n()}const Pu=Lu(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),ju=e=>null!==e;function Vu(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(ju),s=o<0||t&&"loop"!==n&&t%2==1?0:i.length-1;return s&&void 0!==r?r:i[s]}class Bu{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}const qu=e=>Array.isArray(e)&&"number"==typeof e[0],$u=Lu(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),zu=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let t=0;t<o;t++)r+=Math.round(1e4*e(t/(o-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Ku=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Uu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ku([0,.65,.55,1]),circOut:Ku([.55,0,1,.45]),backIn:Ku([.31,.01,.66,-.59]),backOut:Ku([.33,1.53,.69,.99])};function Wu(e,t){return e?"function"==typeof e?$u()?zu(e,t):"ease-out":qu(e)?Ku(e):Array.isArray(e)?e.map(e=>Wu(e,t)||Uu.easeOut):Uu[e]:void 0}function Hu(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeOut",times:l}={},c=void 0){const u={[t]:n};l&&(u.offset=l);const d=Wu(a,o);Array.isArray(d)&&(u.easing=d);const h={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:"reverse"===s?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(u,h)}function Gu(e){return"function"==typeof e&&"applyToOptions"in e}class Qu extends Bu{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:o,allowFlatten:i=!1,finalKeyframe:s,onComplete:a}=e;this.isPseudoElement=Boolean(o),this.allowFlatten=i,this.options=e,e.type;const l=function({type:e,...t}){return Gu(e)&&$u()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=Hu(t,n,r,l,o),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const e=Vu(r,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Fu(t,n,e),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return Du(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Du(e)}get time(){return Du(Number(this.animation.currentTime)||0)}set time(e){const t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Au(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Pu()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),au):r(this)}}const Yu=new Set(["opacity","clipPath","filter","transform"]),{schedule:Xu,cancel:Ju}=uu(queueMicrotask,!1);let Zu;function ed(){Zu=void 0}const td={now:()=>(void 0===Zu&&td.set(fu.isProcessing||lu.useManualTiming?fu.timestamp:performance.now()),Zu),set:e=>{Zu=e,queueMicrotask(ed)}},nd=(e,t)=>t?e*(1e3/t):0,rd={current:void 0};class od{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{const t=td.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=td.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Ou);const n=this.events[e].add(t);return"change"===e?()=>{n(),du.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return rd.current&&rd.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=td.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return nd(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function id(e,t){return new od(e,t)}const sd=[...Lc,gc,Cc],ad=new WeakMap;function ld(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function cd(e){return"string"==typeof e||Array.isArray(e)}const ud=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],dd=["initial",...ud];function hd(e){return ld(e.animate)||dd.some(t=>cd(e[t]))}function fd(e){return Boolean(hd(e)||e.variants)}const pd={current:null},md={current:!1},gd="undefined"!=typeof window;function yd(e){const t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function vd(e,t,n,r){if("function"==typeof t){const[o,i]=yd(r);t=t(void 0!==n?n:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=yd(r);t=t(void 0!==n?n:e.custom,o,i)}return t}const bd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let xd={};function Ed(e){xd=e}class wd{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:o,blockInitialAnimation:i,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Eu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=td.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,du.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=o,this.options=a,this.blockInitialAnimation=Boolean(i),this.isControllingVariants=hd(t),this.isVariantNode=fd(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==l[e]&&Wl(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(const e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,ad.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(md.current||function(){if(md.current=!0,gd)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>pd.current=e.matches;e.addEventListener("change",t),t()}else pd.current=!1}(),this.shouldReduceMotion=pd.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),hu(this.notifyUpdate),hu(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Yu.has(e)&&this.current instanceof HTMLElement){const{factory:n,keyframes:r,times:o,ease:i,duration:s}=t.accelerate,a=new Qu({element:this.current,name:e,keyframes:r,times:o,ease:i,duration:Au(s)}),l=n(a);return void this.valueSubscriptions.set(e,()=>{l(),a.cancel()})}const n=Ql.has(e);n&&this.onBindTransform&&this.onBindTransform();const r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&du.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;"undefined"!=typeof window&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),o&&o()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in xd){const t=xd[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<bd.length;t++){const n=bd[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Wl(o))e.addValue(r,o);else if(Wl(i))e.addValue(r,id(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(r);e.addValue(r,id(void 0!==t?t:o,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=id(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&("string"==typeof n&&(jc(n)||wu(n))?n=parseFloat(n):(r=n,!sd.find(Ic(r))&&Cc.test(t)&&(n=ku(e,t))),this.setBaseTarget(e,Wl(n)?n.get():n)),Wl(n)?n.get():n;var r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){const{initial:t}=this.props;let n;if("string"==typeof t||"object"==typeof t){const r=vd(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&void 0!==n)return n;const r=this.getBaseTargetFromProps(this.props,e);return void 0===r||Wl(r)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new Ou),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Xu.render(this.render)}}class Cd extends wd{constructor(){super(...arguments),this.KeyframeResolver=Tu}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){const n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Wl(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function Sd(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const kd=(e,t)=>t&&"number"==typeof e?t.transform(e):e,_d={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Td=Gl.length;function Ad(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let s=!1,a=!1;for(const e in t){const n=t[e];if(Ql.has(e))s=!0;else if(Bc(e))o[e]=n;else{const t=kd(n,Nc[e]);e.startsWith("origin")?(a=!0,i[e]=t):r[e]=t}}if(t.transform||(s||n?r.transform=function(e,t,n){let r="",o=!0;for(let i=0;i<Td;i++){const s=Gl[i],a=e[s];if(void 0===a)continue;let l=!0;if("number"==typeof a)l=a===(s.startsWith("scale")?1:0);else{const e=parseFloat(a);l=s.startsWith("scale")?1===e:0===e}if(!l||n){const e=kd(a,Nc[s]);l||(o=!1,r+=`${_d[s]||s}(${e}) `),n&&(t[s]=e)}}const i=e.pathRotation;return i&&(o=!1,r+=`rotate(${kd(i,Nc.pathRotation)}) `),r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:e="50%",originY:t="50%",originZ:n=0}=i;r.transformOrigin=`${e} ${t} ${n}`}}const Dd={offset:"stroke-dashoffset",array:"stroke-dasharray"},Nd={offset:"strokeDashoffset",array:"strokeDasharray"},Rd=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Od(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:s=0,...a},l,c,u){if(Ad(e,a,c),l)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete d.transformBox);for(const e of Rd)void 0!==d[e]&&(h[e]=d[e],delete d[e]);void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==o&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Dd:Nd;e[i.offset]=""+-r,e[i.array]=`${t} ${n}`}(d,o,i,s,!1)}const Fd=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Md=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Id(e,{style:t,vars:n},r,o){const i=e.style;let s;for(s in t)i[s]=t[s];for(s in o?.applyProjectionStyles(i,r),n)i.setProperty(s,n[s])}const Ld=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function Pd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const jd={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!dc.test(e))return e;e=parseFloat(e)}return`${Pd(e,t.target.x)}% ${Pd(e,t.target.y)}%`}},Vd=(e,t,n)=>e+(t-e)*n,Bd={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Cc.parse(e);if(o.length>5)return r;const i=Cc.createTransformer(e),s="number"!=typeof o[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=Vd(a,l,.5);return"number"==typeof o[2+s]&&(o[2+s]/=c),"number"==typeof o[3+s]&&(o[3+s]/=c),i(o)}},qd={borderRadius:{...jd,applyTo:[...Ld]},borderTopLeftRadius:jd,borderTopRightRadius:jd,borderBottomLeftRadius:jd,borderBottomRightRadius:jd,boxShadow:Bd};function $d(e,{layout:t,layoutId:n}){return Ql.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!qd[e]||"opacity"===e)}function zd(e,t,n){const r=e.style,o=t?.style,i={};if(!r)return i;for(const t in r)(Wl(r[t])||o&&Wl(o[t])||$d(t,e)||void 0!==n?.getValue(t)?.liveStyle)&&(i[t]=r[t]);return i}function Kd(e,t,n){const r=zd(e,t,n);for(const n in e)(Wl(e[n])||Wl(t[n]))&&(r[-1!==Gl.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}class Ud extends Cd{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Fc}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Ql.has(t)){const e=Oc(t);return e&&e.default||0}return t=Fd.has(t)?t:Sd(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Kd(e,t,n)}build(e,t,n){Od(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){!function(e,t,n,r){Id(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(Fd.has(n)?n:Sd(n),t.attrs[n])}(e,t,0,r)}mount(e){this.isSVGTag=Md(e.tagName),super.mount(e)}}function Wd({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Hd(e){return void 0===e||1===e}function Gd({scale:e,scaleX:t,scaleY:n}){return!Hd(e)||!Hd(t)||!Hd(n)}function Qd(e){return Gd(e)||Yd(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Yd(e){return Xd(e.x)||Xd(e.y)}function Xd(e){return e&&"0%"!==e}function Jd(e,t,n){return n+t*(e-n)}function Zd(e,t,n,r,o){return void 0!==o&&(e=Jd(e,o,r)),Jd(e,n,r)+t}function eh(e,t=0,n=1,r,o){e.min=Zd(e.min,t,n,r,o),e.max=Zd(e.max,t,n,r,o)}function th(e,{x:t,y:n}){eh(e.x,t.translate,t.scale,t.originPoint),eh(e.y,n.translate,n.scale,n.originPoint)}const nh=.999999999999,rh=1.0000000000001;function oh(e,t){e.min+=t,e.max+=t}function ih(e,t,n,r,o=.5){eh(e,t,n,Vd(e.min,e.max,o),r)}function sh(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function ah(e,t,n){const r=n??e;ih(e.x,sh(t.x,r.x),t.scaleX,t.scale,t.originX),ih(e.y,sh(t.y,r.y),t.scaleY,t.scale,t.originY)}function lh(e,t){return Wd(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}class ch extends Cd{constructor(){super(...arguments),this.type="html",this.renderInstance=Id}readValueFromInstance(e,t){if(Ql.has(t))return this.projection?.isProjecting?eu(t):((e,t)=>{const{transform:n="none"}=getComputedStyle(e);return tu(n,t)})(e,t);{const r=(n=e,window.getComputedStyle(n)),o=(Bc(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return lh(e,t)}build(e,t,n){Ad(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return zd(e,t,n)}}const uh=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function dh(e){return"string"==typeof e&&!e.includes("-")&&!!(uh.indexOf(e)>-1||/[A-Z]/u.test(e))}const hh=(e,t)=>t.isSVG??dh(e)?new Ud(t):new ch(t,{allowProjection:e!==c.Fragment}),fh=(0,c.createContext)({}),ph=(0,c.createContext)({strict:!1}),mh=(0,c.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),gh=(0,c.createContext)({});function yh(e){return Array.isArray(e)?e.join(" "):e}function vh(e,t,n){for(const r in t)Wl(t[r])||$d(r,n)||(e[r]=t[r])}function bh(e,t){const n={},r=function(e,t){const n={};return vh(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return(0,c.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return Ad(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function xh(e,t,n,r){const o=(0,c.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Od(n,t,Md(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){const t={};vh(t,e.style,e),o.style={...t,...o.style}}return o}const Eh=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function wh(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Eh.has(e)}let Ch=e=>!wh(e);try{"function"==typeof(Sh=require("@emotion/is-prop-valid").default)&&(Ch=e=>e.startsWith("on")?!wh(e):Sh(e))}catch{}var Sh;function kh(e,t,n,{latestValues:r},o,i=!1,s){const a=(s??dh(e)?xh:bh)(t,r,o,e),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||Wl(e[o])||(Ch(o)||!0===n&&wh(o)||!t&&!wh(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(t,"string"==typeof e,i),u=e!==c.Fragment?{...l,...a,ref:n}:{},{children:d}=t,h=(0,c.useMemo)(()=>Wl(d)?d.get():d,[d]);return(0,c.createElement)(e,{...u,children:h})}function _h(e){return Wl(e)?e.get():e}const Th=(0,c.createContext)(null);function Ah(e){const t=(0,c.useRef)(null);return null===t.current&&(t.current=e()),t.current}function Dh(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=_h(i[e]);let{initial:s,animate:a}=e;const l=hd(e),c=fd(e);t&&c&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let u=!!n&&!1===n.initial;u=u||!1===s;const d=u?a:s;if(d&&"boolean"!=typeof d&&!ld(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=vd(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const e in n){let t=n[e];Array.isArray(t)&&(t=t[u?t.length-1:0]),null!==t&&(o[e]=t)}for(const t in e)o[t]=e[t]}}}return o}const Nh=e=>(t,n)=>{const r=(0,c.useContext)(gh),o=(0,c.useContext)(Th),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:Dh(n,r,o,e),renderState:t()}}(e,t,r,o);return n?i():Ah(i)},Rh=Nh({scrapeMotionValuesFromProps:zd,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})}),Oh=Nh({scrapeMotionValuesFromProps:Kd,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}})}),Fh={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Mh=!1;function Ih(){return function(){if(Mh)return;const e={};for(const t in Fh)e[t]={isEnabled:e=>Fh[t].some(t=>!!e[t])};Ed(e),Mh=!0}(),xd}const Lh=Symbol.for("motionComponentSymbol");function Ph(e,t,n){const r=(0,c.useRef)(n);(0,c.useInsertionEffect)(()=>{r.current=n});const o=(0,c.useRef)(null);return(0,c.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());const i=r.current;if("function"==typeof i)if(n){const e=i(n);"function"==typeof e&&(o.current=e)}else o.current?(o.current(),o.current=null):i(n);else i&&(i.current=n)},[t])}const jh="data-"+Sd("framerAppearId"),Vh=(0,c.createContext)({});function Bh(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}const qh="undefined"!=typeof window?c.useLayoutEffect:c.useEffect;function $h(e,t,n,r,o,i){const{visualElement:s}=(0,c.useContext)(gh),a=(0,c.useContext)(ph),l=(0,c.useContext)(Th),u=(0,c.useContext)(mh),d=u.reducedMotion,h=u.skipAnimations,f=(0,c.useRef)(null),p=(0,c.useRef)(!1);r=r||a.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:d,skipAnimations:h,isSVG:i}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const m=f.current,g=(0,c.useContext)(Vh);!m||m.projection||!o||"html"!==m.type&&"svg"!==m.type||function(e,t,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:zh(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(s)||a&&Bh(a),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:c,layoutAnchor:u})}(f.current,n,o,g);const y=(0,c.useRef)(!1);(0,c.useInsertionEffect)(()=>{m&&y.current&&m.update(n,l)});const v=n[jh],b=(0,c.useRef)(Boolean(v)&&"undefined"!=typeof window&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return qh(()=>{p.current=!0,m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),b.current&&m.animationState&&m.animationState.animateChanges())}),(0,c.useEffect)(()=>{m&&(!b.current&&m.animationState&&m.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),b.current=!1),m.enteringChildren=void 0)}),m}function zh(e){if(e)return!1!==e.options.allowProjection?e.projection:zh(e.parent)}function Kh(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&function(e){const t=Ih();for(const n in e)t[n]={...t[n],...e[n]};Ed(t)}(r);const i=n?"svg"===n:dh(e),s=i?Oh:Rh;function l(n,r){let l;const u={...(0,c.useContext)(mh),...n,layoutId:Uh(n)},{isStatic:d}=u,h=function(e){const{initial:t,animate:n}=function(e,t){if(hd(e)){const{initial:t,animate:n}=e;return{initial:!1===t||cd(t)?t:void 0,animate:cd(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,c.useContext)(gh));return(0,c.useMemo)(()=>({initial:t,animate:n}),[yh(t),yh(n)])}(n),f=s(n,d);if(!d&&"undefined"!=typeof window){(0,c.useContext)(ph).strict;const t=function(e){const t=Ih(),{drag:n,layout:r}=t;if(!n&&!r)return{};const o={...n,...r};return{MeasureLayout:n?.isEnabled(e)||r?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}(u);l=t.MeasureLayout,h.visualElement=$h(e,f,u,o,t.ProjectionNode,i)}return(0,a.jsxs)(gh.Provider,{value:h,children:[l&&h.visualElement?(0,a.jsx)(l,{visualElement:h.visualElement,...u}):null,kh(e,n,Ph(f,h.visualElement,r),f,d,t,i)]})}l.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;const u=(0,c.forwardRef)(l);return u[Lh]=e,u}function Uh({layoutId:e}){const t=(0,c.useContext)(fh).id;return t&&void 0!==e?t+"-"+e:e}function Wh(e,t){if("undefined"==typeof Proxy)return Kh;const n=new Map,r=(n,r)=>Kh(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(o,i)=>"create"===i?r:(n.has(i)||n.set(i,Kh(i,void 0,e,t)),n.get(i))})}class Hh{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Gh(e,t,n){const r=e.getProps();return vd(r,t,void 0!==n?n:r.custom,e)}function Qh(e,t){if(e?.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Yh(e,t){const n=e?.[t]??e?.default??e;return n!==e?Qh(n,e):n}const Xh=e=>Array.isArray(e);function Jh(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,id(n))}function Zh(e){return Xh(e)?e[e.length-1]||0:e}function ef(e,t){const n=e.getValue("willChange");if(r=n,Boolean(Wl(r)&&r.add))return n.add(t);if(!n&&lu.WillChange){const n=new lu.WillChange("auto");e.addValue("willChange",n),n.add(t)}var r}function tf(e){return e.props[jh]}const nf=(...e)=>e.reduce((e,t)=>n=>t(e(n)));function rf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function of(e,t){return n=>n>0?t:e}const sf=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},af=[ac,sc,mc];function lf(e){const t=(n=e,af.find(e=>e.test(n)));var n;if(Boolean(t),!Boolean(t))return!1;let r=t.parse(e);return t===mc&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,s=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;o=rf(a,r,e+1/3),i=rf(a,r,e),s=rf(a,r,e-1/3)}else o=i=s=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*s),alpha:r}}(r)),r}const cf=(e,t)=>{const n=lf(e),r=lf(t);if(!n||!r)return of(e,t);const o={...n};return e=>(o.red=sf(n.red,r.red,e),o.green=sf(n.green,r.green,e),o.blue=sf(n.blue,r.blue,e),o.alpha=Vd(n.alpha,r.alpha,e),sc.transform(o))},uf=new Set(["none","hidden"]);function df(e,t){return n=>Vd(e,t,n)}function hf(e){return"number"==typeof e?df:"string"==typeof e?$c(e)?of:gc.test(e)?cf:mf:Array.isArray(e)?ff:"object"==typeof e?gc.test(e)?cf:pf:of}function ff(e,t){const n=[...e],r=n.length,o=e.map((e,n)=>hf(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function pf(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=hf(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const mf=(e,t)=>{const n=Cc.createTransformer(t),r=Ec(e),o=Ec(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?uf.has(e)&&!o.values.length||uf.has(t)&&!r.values.length?function(e,t){return uf.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):nf(ff(function(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],s=e.indexes[i][r[i]],a=e.values[s]??0;n[o]=a,r[i]++}return n}(r,o),o.values),n):of(e,t)};function gf(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?Vd(e,t,n):hf(e)(e,t)}const yf=e=>{const t=({timestamp:t})=>e(t);return{start:(e=!0)=>du.update(t,e),stop:()=>hu(t),now:()=>fu.isProcessing?fu.timestamp:td.now()}},vf=2e4;function bf(e){let t=0,n=e.next(t);for(;!n.done&&t<vf;)t+=50,n=e.next(t);return t>=vf?1/0:t}const xf=.01,Ef=2,wf=.005,Cf=.5;function Sf(e,t){return e*Math.sqrt(1-t*t)}const kf=["duration","bounce"],_f=["stiffness","damping","mass"];function Tf(e,t){return t.some(t=>void 0!==e[t])}function Af(e=.3,t=.3){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:c,mass:u,duration:d,velocity:h,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Tf(e,_f)&&Tf(e,kf))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),o=r*r,i=2*Yl(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:1,stiffness:o,damping:i}}else{const n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let o,i;Au(10);let s=1-t;s=Yl(.05,1,s),e=Yl(.01,10,Du(e)),s<1?(o=t=>{const r=t*s,o=r*e;return.001-(r-n)/Sf(t,s)*Math.exp(-o)},i=t=>{const r=t*s*e,i=r*n+n,a=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=Sf(Math.pow(t,2),s);return(.001-o(t)>0?-1:1)*((i-a)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=Au(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}({...e,velocity:0});t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...n,velocity:-Du(n.velocity||0)}),p=h||0,m=c/(2*Math.sqrt(l*u)),g=s-i,y=Du(Math.sqrt(l/u)),v=Math.abs(g)<5;let b,x,E,w,C,S;if(r||(r=v?xf:Ef),o||(o=v?wf:Cf),m<1)E=Sf(y,m),w=(p+m*y*g)/E,b=e=>{const t=Math.exp(-m*y*e);return s-t*(w*Math.sin(E*e)+g*Math.cos(E*e))},C=m*y*w+g*E,S=m*y*g-w*E,x=e=>Math.exp(-m*y*e)*(C*Math.sin(E*e)+S*Math.cos(E*e));else if(1===m){b=e=>s-Math.exp(-y*e)*(g+(p+y*g)*e);const e=p+y*g;x=t=>Math.exp(-y*t)*(y*e*t-p)}else{const e=y*Math.sqrt(m*m-1);b=t=>{const n=Math.exp(-m*y*t),r=Math.min(e*t,300);return s-n*((p+m*y*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};const t=(p+m*y*g)/e,n=m*y*t-g*e,r=m*y*g-t*e;x=t=>{const o=Math.exp(-m*y*t),i=Math.min(e*t,300);return o*(n*Math.sinh(i)+r*Math.cosh(i))}}const k={calculatedDuration:f&&d||null,velocity:e=>Au(x(e)),next:e=>{if(!f&&m<1){const t=Math.exp(-m*y*e),n=Math.sin(E*e),i=Math.cos(E*e),l=s-t*(w*n+g*i),c=Au(t*(C*n+S*i));return a.done=Math.abs(c)<=r&&Math.abs(s-l)<=o,a.value=a.done?s:l,a}const t=b(e);if(f)a.done=e>=d;else{const n=Au(x(e));a.done=Math.abs(n)<=r&&Math.abs(s-t)<=o}return a.value=a.done?s:t,a},toString:()=>{const e=Math.min(bf(k),vf),t=zu(t=>k.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return k}function Df(e,t,n){const r=Math.max(t-5,0);return nd(n-e(r),t-r)}function Nf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},f=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let p=n*t;const m=d+p,g=void 0===s?m:s(m);g!==m&&(p=g-d);const y=e=>-p*Math.exp(-e/r),v=e=>g+y(e),b=e=>{const t=y(e),n=v(e);h.done=Math.abs(t)<=c,h.value=h.done?g:n};let x,E;const w=e=>{var t;t=h.value,(void 0!==a&&t<a||void 0!==l&&t>l)&&(x=e,E=Af({keyframes:[h.value,f(h.value)],velocity:Df(v,e,h.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return E||void 0!==x||(t=!0,b(e),w(e)),void 0!==x&&e>=x?E.next(e-x):(!t&&b(e),h)}}}Af.applyToOptions=e=>{const t=function(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(bf(r),vf);return{type:"keyframes",ease:e=>r.next(o*e).value/t,duration:Du(o)}}(e,100,Af);return e.ease=t.ease,e.duration=Au(t.duration),e.type="keyframes",e};const Rf=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Of(e,t,n,r){if(e===t&&n===r)return au;return o=>0===o||1===o?o:Rf(function(e,t,n,r,o){let i,s,a=0;do{s=t+(n-t)/2,i=Rf(s,r,o)-e,i>0?n=s:t=s}while(Math.abs(i)>1e-7&&++a<12);return s}(o,0,1,e,n),t,r)}const Ff=Of(.42,0,1,1),Mf=Of(0,0,.58,1),If=Of(.42,0,.58,1),Lf=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Pf=e=>t=>1-e(1-t),jf=Of(.33,1.53,.69,.99),Vf=Pf(jf),Bf=Lf(Vf),qf=e=>e>=1?1:(e*=2)<1?.5*Vf(e):.5*(2-Math.pow(2,-10*(e-1))),$f=e=>1-Math.sin(Math.acos(e)),zf=Pf($f),Kf=Lf($f),Uf={linear:au,easeIn:Ff,easeInOut:If,easeOut:Mf,circIn:$f,circInOut:Kf,circOut:zf,backIn:Vf,backInOut:Bf,backOut:jf,anticipate:qf},Wf=e=>{if(qu(e)){e.length;const[t,n,r,o]=e;return Of(t,n,r,o)}return"string"==typeof e?Uf[e]:e},Hf=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};function Gf(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(t.length,1===i)return()=>t[0];if(2===i&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=function(e,t,n){const r=[],o=n||lu.mix||gf,i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||au:t;i=nf(e,i)}r.push(i)}return r}(t,r,o),l=a.length,c=n=>{if(s&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const o=Hf(e[r],e[r+1],n);return a[r](o)};return n?t=>c(Yl(e[0],e[i-1],t)):c}function Qf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Wf):Wf(r),i={done:!1,value:t[0]},s=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:function(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Hf(0,t,r);e.push(Vd(n,1,o))}}(t,e.length-1),t}(t),e),a=Gf(s,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map(()=>c||If).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=a(t),i.done=t>=e,i)}}const Yf={decay:Nf,inertia:Nf,tween:Qf,keyframes:Qf,spring:Af};function Xf(e){"string"==typeof e.type&&(e.type=Yf[e.type])}const Jf=e=>e/100;class Zf extends Bu{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:e}=this.options;e&&e.updatedAt!==td.now()&&this.tick(td.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){const{options:e}=this;Xf(e);const{type:t=Qf,repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:i=0}=e;let{keyframes:s}=e;const a=t||Qf;a!==Qf&&"number"!=typeof s[0]&&(this.mixKeyframes=nf(Jf,gf(s[0],s[1])),s=[0,100]);const l=a({...e,keyframes:s});"mirror"===o&&(this.mirroredGenerator=a({...e,keyframes:[...s].reverse(),velocity:-i})),null===l.calculatedDuration&&(l.calculatedDuration=bf(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){const{generator:n,totalDuration:r,mixKeyframes:o,mirroredGenerator:i,resolvedDuration:s,calculatedDuration:a}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:c,repeat:u,repeatType:d,repeatDelay:h,type:f,onUpdate:p,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let v,b=this.currentTime,x=n;if(u){const e=Math.min(this.currentTime,r)/s;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,u+1),Boolean(t%2)&&("reverse"===d?(n=1-n,h&&(n-=h/s)):"mirror"===d&&(x=i)),b=Yl(0,1,n)*s}y?(this.delayState.value=c[0],v=this.delayState):v=x.next(b),o&&!y&&(v.value=o(v.value));let{done:E}=v;y||null===a||(E=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&E);return w&&f!==Nf&&(v.value=Vu(c,this.options,m,this.speed)),p&&p(v.value),w&&this.finish(),v}then(e,t){return this.finished.then(e,t)}get duration(){return Du(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Du(e)}get time(){return Du(this.currentTime)}set time(e){e=Au(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;return e<=0?this.options.velocity||0:this.generator.velocity?this.generator.velocity(e):Df(e=>this.generator.next(e).value,e,this.generator.next(e).value)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(td.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Du(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=yf,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();const n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(td.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}const ep={anticipate:qf,backInOut:Bf,circInOut:Kf};class tp extends Qu{constructor(e){var t;"string"==typeof(t=e).ease&&t.ease in ep&&(t.ease=ep[t.ease]),Xf(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:n,onComplete:r,element:o,...i}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);const s=new Zf({...i,autoplay:!1}),a=Math.max(10,td.now()-this.startTime),l=Yl(0,10,a-10),c=s.sample(a).value,{name:u}=this.options;o&&u&&Fu(o,u,c),t.setWithVelocity(s.sample(Math.max(0,a-l)).value,c,l),s.stop()}}const np=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!Cc.test(e)&&"0"!==e||e.startsWith("url(")));function rp(e){e.duration=0,e.type="keyframes"}const op=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,ip=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),sp=Mu(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class ap extends Bu{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i="loop",keyframes:s,name:a,motionValue:l,element:c,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=td.now();const d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:i,name:a,motionValue:l,element:c,...u},h=c?.KeyframeResolver||Eu;this.keyframeResolver=new h(s,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),a,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;const{name:o,type:i,velocity:s,delay:a,isHandoff:l,onUpdate:c}=n;this.resolvedAt=td.now();let u=!0;(function(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],s=np(o,t),a=np(i,t);return!(!s||!a)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||Gu(n))&&r)})(e,o,i,s)||(u=!1,!lu.instantAnimations&&a||c?.(Vu(e,n,t)),e[0]=e[e.length-1],rp(n),n.repeat=0);const d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},h=u&&!l&&function(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:s,keyframes:a}=e,l=t?.owner?.current;if(!(l instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=t.owner.getProps();return sp()&&n&&(Yu.has(n)||ip.has(n)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&op.test(e[t]))return!0;return!1}(a))&&("transform"!==n||!u)&&!c&&!r&&"mirror"!==o&&0!==i&&"inertia"!==s}(d),f=d.motionValue?.owner?.current;let p;if(h)try{p=new tp({...d,element:f})}catch{p=new Zf(d)}else p=new Zf(d);p.finished.then(()=>{this.notifyFinished()}).catch(au),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),vu=!0,xu(),bu(),vu=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const lp={type:"spring",stiffness:500,damping:25,restSpeed:10},cp={type:"keyframes",duration:.8},up={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dp=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),hp=(e,t,n,r={},o,i)=>s=>{const a=Yh(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c-=Au(l);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:o};(function(e){for(const t in e)if(!dp.has(t))return!0;return!1})(a)||Object.assign(u,((e,{keyframes:t})=>t.length>2?cp:Ql.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:lp:up)(e,u)),u.duration&&(u.duration=Au(u.duration)),u.repeatDelay&&(u.repeatDelay=Au(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(rp(u),0===u.delay&&(d=!0)),(lu.instantAnimations||lu.skipAnimations||o?.shouldSkipAnimations||a.skipAnimations)&&(d=!0,rp(u),u.delay=0),u.allowFlatten=!a.type&&!a.ease,d&&!i&&void 0!==t.get()){const e=Vu(u.keyframes,a);if(void 0!==e)return void du.update(()=>{u.onUpdate(e),u.onComplete()})}return a.isSync?new Zf(u):new ap(u)};function fp({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function pp(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i,transitionEnd:s,...a}=t;const l=e.getDefaultTransition();i=i?Qh(i,l):l;const c=i?.reduceMotion,u=i?.skipAnimations;r&&(i=r);const d=[],h=o&&e.animationState&&e.animationState.getState()[o],f=i?.path;f&&f.animateVisualElement(e,a,i,n,d);for(const t in a){const r=e.getValue(t,e.latestValues[t]??null),o=a[t];if(void 0===o||h&&fp(h,t))continue;const s={delay:n,...Yh(i||{},t)};u&&(s.skipAnimations=!0);const l=r.get();if(void 0!==l&&!r.isAnimating()&&!Array.isArray(o)&&o===l&&!s.velocity){du.update(()=>r.set(o));continue}let f=!1;if(window.MotionHandoffAnimation){const n=tf(e);if(n){const e=window.MotionHandoffAnimation(n,t,du);null!==e&&(s.startTime=e,f=!0)}}ef(e,t);const p=c??e.shouldReduceMotion;r.start(hp(t,r,o,p&&Mc.has(t)?{type:!1}:s,e,f));const m=r.animation;m&&d.push(m)}if(s){const t=()=>du.update(()=>{s&&function(e,t){const n=Gh(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const t in i)Jh(e,t,Zh(i[t]))}(e,s)});d.length?Promise.all(d).then(t):t()}return d}function mp(e,t,n,r=0,o=1){const i=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),s=e.size,a=(s-1)*r;return"function"==typeof n?n(i,s):1===o?i*r:a-i*r}function gp(e,t,n={}){const r=Gh(e,t,"exit"===n.type?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(pp(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=o;return function(e,t,n=0,r=0,o=0,i=1,s){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(gp(l,t,{...s,delay:n+("function"==typeof r?0:r)+mp(e.variantChildren,l,r,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}(e,t,r,i,s,a,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[e,t]="beforeChildren"===a?[i,s]:[s,i];return e().then(()=>t())}return Promise.all([i(),s(n.delay)])}const yp=dd.length;function vp(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&vp(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<yp;n++){const r=dd[n],o=e.props[r];(cd(o)||!1===o)&&(t[r]=o)}return t}function bp(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const xp=[...ud].reverse(),Ep=ud.length;function wp(e){let t=function(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map(t=>gp(e,t,n));r=Promise.all(o)}else if("string"==typeof t)r=gp(e,t,n);else{const o="function"==typeof t?Gh(e,t,n.custom):t;r=Promise.all(pp(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}(e,t,n)))}(e),n=kp(),r=!0,o=!1;const i=t=>(n,r)=>{const o=Gh(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(o){const{transition:e,transitionEnd:t,...r}=o;n={...n,...r,...t}}return n};function s(s){const{props:a}=e,l=vp(e.parent)||{},c=[],u=new Set;let d={},h=1/0;for(let t=0;t<Ep;t++){const f=xp[t],p=n[f],m=void 0!==a[f]?a[f]:l[f],g=cd(m),y=f===s?p.isActive:null;!1===y&&(h=t);let v=m===l[f]&&m!==a[f]&&g;if(v&&(r||o)&&e.manuallyAnimateOnMount&&(v=!1),p.protectedKeys={...d},!p.isActive&&null===y||!m&&!p.prevProp||ld(m)||"boolean"==typeof m)continue;if("exit"===f&&p.isActive&&!0!==y){p.prevResolvedValues&&(d={...d,...p.prevResolvedValues});continue}const b=Cp(p.prevProp,m);let x=b||f===s&&p.isActive&&!v&&g||t>h&&g,E=!1;const w=Array.isArray(m)?m:[m];let C=w.reduce(i(f),{});!1===y&&(C={});const{prevResolvedValues:S={}}=p,k={...S,...C},_=t=>{x=!0,u.has(t)&&(E=!0,u.delete(t)),p.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in k){const t=C[e],n=S[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Xh(t)&&Xh(n)?!bp(t,n)||b:t!==n,r?null!=t?_(e):u.add(e):void 0!==t&&u.has(e)?_(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=C,p.isActive&&(d={...d,...C}),(r||o)&&e.blockInitialAnimation&&(x=!1);const T=v&&b;x&&(!T||E)&&c.push(...w.map(t=>{const n={type:f};if("string"==typeof t&&(r||o)&&!T&&e.manuallyAnimateOnMount&&e.parent){const{parent:r}=e,o=Gh(r,t);if(r.enteringChildren&&o){const{delayChildren:t}=o.transition||{};n.delay=mp(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){const t={};if("boolean"!=typeof a.initial){const n=Gh(e,Array.isArray(a.initial)?a.initial[0]:a.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{const r=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let f=Boolean(c.length);return!r||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(f=!1),r=!1,o=!1,f?t(c):Promise.resolve()}return{animateChanges:s,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;const o=s(t);for(const e in n)n[e].protectedKeys={};return o},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=kp(),o=!0}}}function Cp(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!bp(t,e)}function Sp(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function kp(){return{animate:Sp(!0),whileInView:Sp(),whileHover:Sp(),whileTap:Sp(),whileDrag:Sp(),whileFocus:Sp(),exit:Sp()}}let _p=0;const Tp={animation:{Feature:class extends Hh{constructor(e){super(e),e.animationState||(e.animationState=wp(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();ld(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends Hh{constructor(){super(...arguments),this.id=_p++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){const{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){const n=Gh(this.node,e,t);if(n){const{transition:e,transitionEnd:t,...r}=n;for(const e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);return void(this.isExitComplete=!1)}const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}},Ap={x:!1,y:!1};function Dp(){return Ap.x||Ap.y}function Np(e){return[e("x"),e("y")]}function Rp(e){return e.max-e.min}function Op(e,t,n,r=.5){e.origin=r,e.originPoint=Vd(t.min,t.max,e.origin),e.scale=Rp(n)/Rp(t),e.translate=Vd(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function Fp(e,t,n,r){Op(e.x,t.x,n.x,r?r.originX:void 0),Op(e.y,t.y,n.y,r?r.originY:void 0)}function Mp(e,t,n,r=0){const o=r?Vd(n.min,n.max,r):n.min;e.min=o+t.min,e.max=e.min+Rp(t)}function Ip(e,t,n,r=0){const o=r?Vd(n.min,n.max,r):n.min;e.min=t.min-o,e.max=e.min+Rp(t)}function Lp(e,t,n,r){Ip(e.x,t.x,n.x,r?.x),Ip(e.y,t.y,n.y,r?.y)}const Pp=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),jp=new Set(["INPUT","SELECT","TEXTAREA"]);function Vp(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}const Bp=e=>"object"==typeof e&&null!==e;function qp(e){return Bp(e)&&"ownerSVGElement"in e}function $p(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let r=document;t&&(r=t.current);const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(e=>null!=e)}const zp=new WeakMap;let Kp;const Up=(e,t,n)=>(r,o)=>o&&o[0]?o[0][e+"Size"]:qp(r)&&"getBBox"in r?r.getBBox()[t]:r[n],Wp=Up("inline","width","offsetWidth"),Hp=Up("block","height","offsetHeight");function Gp({target:e,borderBoxSize:t}){zp.get(e)?.forEach(n=>{n(e,{get width(){return Wp(e,t)},get height(){return Hp(e,t)}})})}function Qp(e){e.forEach(Gp)}const Yp=new Set;let Xp;function Jp(e,t){return"function"==typeof e?(n=e,Yp.add(n),Xp||(Xp=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Yp.forEach(t=>t(e))},window.addEventListener("resize",Xp)),()=>{Yp.delete(n),Yp.size||"function"!=typeof Xp||(window.removeEventListener("resize",Xp),Xp=void 0)}):function(e,t){Kp||"undefined"!=typeof ResizeObserver&&(Kp=new ResizeObserver(Qp));const n=$p(e);return n.forEach(e=>{let n=zp.get(e);n||(n=new Set,zp.set(e,n)),n.add(t),Kp?.observe(e)}),()=>{n.forEach(e=>{const n=zp.get(e);n?.delete(t),n?.size||Kp?.unobserve(e)})}}(e,t);var n}const Zp=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function em(e){return{point:{x:e.pageX,y:e.pageY}}}function tm(e,t,n,r){return Vp(e,t,(e=>t=>Zp(t)&&e(t,em(t)))(n),r)}const nm=({current:e})=>e?e.ownerDocument.defaultView:null,rm=(e,t)=>Math.abs(e-t),om=new Set(["auto","scroll"]);class im{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:o=!1,distanceThreshold:i=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=sm(this.lastRawMoveEventInfo,this.transformPagePoint));const e=lm(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=rm(e.x,t.x),r=rm(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=fu;this.history.push({...r,timestamp:o});const{onStart:i,onMove:s}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=sm(t,this.transformPagePoint),du.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(!this.dragSnapToOrigin&&this.startEvent||o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=lm("pointercancel"===e.type?this.lastMoveEventInfo:sm(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!Zp(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=i,this.contextWindow=r||window;const a=sm(em(e),this.transformPagePoint),{point:l}=a,{timestamp:c}=fu;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=t;u&&u(e,lm(a,this.history));const d={passive:!0,capture:!0};this.removeListeners=nf(tm(this.contextWindow,"pointermove",this.handlePointerMove,d),tm(this.contextWindow,"pointerup",this.handlePointerUp,d),tm(this.contextWindow,"pointercancel",this.handlePointerUp,d)),s&&this.startScrollTracking(s)}startScrollTracking(e){let t=e.parentElement;for(;t;){const e=getComputedStyle(t);(om.has(e.overflowX)||om.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const t=this.scrollPositions.get(e);if(!t)return;const n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},o=r.x-t.x,i=r.y-t.y;0===o&&0===i||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o,this.lastMoveEventInfo.point.y+=i):this.history.length>0&&(this.history[0].x-=o,this.history[0].y-=i),this.scrollPositions.set(e,r),du.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),hu(this.updatePoint)}}function sm(e,t){return t?{point:t(e.point)}:e}function am(e,t){return{x:e.x-t.x,y:e.y-t.y}}function lm({point:e},t){return{point:e,delta:am(e,um(t)),offset:am(e,cm(t)),velocity:dm(t,.1)}}function cm(e){return e[0]}function um(e){return e[e.length-1]}function dm(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=um(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Au(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&o.timestamp-r.timestamp>2*Au(t)&&(r=e[1]);const i=Du(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function hm(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function fm(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const pm=.35;function mm(e,t,n){return{min:gm(e,t),max:gm(e,n)}}function gm(e,t){return"number"==typeof e?e:e[t]||0}const ym=new WeakMap;class vm{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;const{dragSnapToOrigin:o}=this.getProps();this.panSession=new im(e,{onSessionStart:e=>{t&&this.snapToCursor(em(e).point),this.stopAnimation()},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(i=n)||"y"===i?Ap[i]?null:(Ap[i]=!0,()=>{Ap[i]=!1}):Ap.x||Ap.y?null:(Ap.x=Ap.y=!0,()=>{Ap.x=Ap.y=!1}),!this.openDragLock))return;var i;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Np(e=>{let t=this.getAxisMotionValue(e).get()||0;if(uc.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];r&&(t=Rp(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),o&&du.update(()=>o(e,t),!1,!0),ef(this.visualElement,"transform");const{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:s}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),i&&du.update(()=>i(e,t),!1,!0)},onSessionEnd:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>{const{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,distanceThreshold:n,contextWindow:nm(this.visualElement),element:this.visualElement.current})}stop(e,t){const n=e||this.latestPointerEvent,r=t||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!r||!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&du.postRender(()=>s(n,r))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!xm(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?Vd(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?Vd(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Bh(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:hm(e.x,n,o),y:hm(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=pm){return!1===e?e=0:!0===e&&(e=pm),{x:mm(e,"left","right"),y:mm(e,"top","bottom")}}(t),r!==this.constraints&&!Bh(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Np(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Bh(e))return!1;const n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());const o=function(e,t,n){const r=lh(e,n),{scroll:o}=t;return o&&(oh(r.x,o.offset.x),oh(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:fm(e.x,t.x),y:fm(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=Wd(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=Np(s=>{if(!xm(s,t,this.currentDirection))return;let l=a&&a[s]||{};!0!==i&&i!==s||(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(s,d)});return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return ef(this.visualElement,e),n.start(hp(e,n,0,t,this.visualElement,!1))}stopAnimation(){Np(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Np(t=>{const{drag:n}=this.getProps();if(!xm(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t],s=o.get()||0;o.set(e[t]-Vd(n,i,.5)+s)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Bh(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Np(e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=Rp(e),o=Rp(t);return o>r?n=Hf(t.min,t.max-r,e.min):r>o&&(n=Hf(e.min,e.max-o,t.min)),Yl(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Np(t=>{if(!xm(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(Vd(o,i,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;ym.set(this.visualElement,this);const e=this.visualElement.current,t=tm(e,"pointerdown",t=>{const{drag:n,dragListener:r=!0}=this.getProps(),o=t.target,i=o!==e&&function(e){return jp.has(e.tagName)||!0===e.isContentEditable}(o);n&&r&&!i&&this.start(t)});let n;const r=()=>{const{dragConstraints:t}=this.getProps();Bh(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||(n=function(e,t,n){const r=Jp(e,bm(n)),o=Jp(t,bm(n));return()=>{r(),o()}}(e,t.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),du.read(r);const s=Vp(window,"resize",()=>this.scalePositionWithinConstraints()),a=o.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Np(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{s(),t(),i(),a&&a(),n&&n()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=pm,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:s}}}function bm(e){let t=!0;return()=>{t?t=!1:e()}}function xm(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Em=e=>(t,n)=>{e&&du.update(()=>e(t,n),!1,!0)},wm={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Cm=!1;class Sm extends c.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),Cm&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),wm.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,{projection:i}=n;return i?(i.isPresent=o,e.layoutDependency!==t&&i.setOptions({...i.options,layoutDependency:t}),Cm=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==o?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||du.postRender(()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Xu.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Cm=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function km(e){const[t,n]=function(e=!0){const t=(0,c.useContext)(Th);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=(0,c.useId)();(0,c.useEffect)(()=>{if(e)return o(i)},[e]);const s=(0,c.useCallback)(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}(),r=(0,c.useContext)(fh);return(0,a.jsx)(Sm,{...e,layoutGroup:r,switchLayoutGroup:(0,c.useContext)(Vh),isPresent:t,safeToRemove:n})}const _m={value:null,addProjectionMetrics:null};const Tm=Ld.length,Am=e=>"string"==typeof e?parseFloat(e):e,Dm=e=>"number"==typeof e||dc.test(e);function Nm(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Rm=Fm(0,.5,zf),Om=Fm(.5,.95,au);function Fm(e,t,n){return r=>r<e?0:r>t?1:n(Hf(e,t,r))}function Mm(e,t){e.min=t.min,e.max=t.max}function Im(e,t){Mm(e.x,t.x),Mm(e.y,t.y)}function Lm(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Pm(e,t,n,r,o){return e=Jd(e-=t,1/n,r),void 0!==o&&(e=Jd(e,1/o,r)),e}function jm(e,t,[n,r,o],i,s){!function(e,t=0,n=1,r=.5,o,i=e,s=e){if(uc.test(t)&&(t=parseFloat(t),t=Vd(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=Vd(i.min,i.max,r);e===i&&(a-=t),e.min=Pm(e.min,t,n,a,o),e.max=Pm(e.max,t,n,a,o)}(e,t[n],t[r],t[o],t.scale,i,s)}const Vm=["x","scaleX","originX"],Bm=["y","scaleY","originY"];function qm(e,t,n,r){jm(e.x,t,Vm,n?n.x:void 0,r?r.x:void 0),jm(e.y,t,Bm,n?n.y:void 0,r?r.y:void 0)}function $m(e){return 0===e.translate&&1===e.scale}function zm(e){return $m(e.x)&&$m(e.y)}function Km(e,t){return e.min===t.min&&e.max===t.max}function Um(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Wm(e,t){return Um(e.x,t.x)&&Um(e.y,t.y)}function Hm(e){return Rp(e.x)/Rp(e.y)}function Gm(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Qm{constructor(){this.members=[]}add(e){Nu(this.members,e);for(let t=this.members.length-1;t>=0;t--){const n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;const r=n.instance;r&&!1!==r.isConnected||n.snapshot||(Ru(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Ru(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent&&!1!==e.instance?.isConnected)return this.promote(e),!0}return!1}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();const{layoutDependency:r}=n.options,{layoutDependency:o}=e.options;void 0!==r&&r===o||(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Ym=(e,t)=>e.depth-t.depth;class Xm{constructor(){this.children=[],this.isDirty=!1}add(e){Nu(this.children,e),this.isDirty=!0}remove(e){Ru(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ym),this.isDirty=!1,this.children.forEach(e)}}const Jm={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Zm=["","X","Y","Z"];let eg=0;function tg(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ng(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=tf(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",du,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ng(r)}function rg({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=t?.()){this.id=eg++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,_m.value&&(Jm.nodes=Jm.calculatedTargetDeltas=Jm.calculatedProjections=0),this.nodes.forEach(sg),this.nodes.forEach(mg),this.nodes.forEach(gg),this.nodes.forEach(ag),_m.addProjectionMetrics&&_m.addProjectionMetrics(Jm)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Xm)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ou),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;var n;this.isSVG=qp(t)&&!(qp(n=t)&&"svg"===n.tagName),this.instance=t;const{layoutId:r,layout:o,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(o||r)&&(this.isLayoutDirty=!0),e){let n,r=0;const o=()=>this.root.updateBlockedByResize=!1;du.read(()=>{r=window.innerWidth}),e(t,()=>{const e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=td.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(hu(r),e(i-t))};return du.setup(r,!0),()=>hu(r)}(o,250),wm.hasAnimatedSinceResize&&(wm.hasAnimatedSinceResize=!1,this.nodes.forEach(pg)))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&i&&(r||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||i.getDefaultTransition()||wg,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=i.getProps(),l=!this.targetLayout||!Wm(this.targetLayout,r),c=!t&&n;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const t={...Yh(o,"layout"),onPlay:s,onComplete:a};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c,t.path)}else t||pg(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),hu(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(yg),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ng(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,"string"!=typeof t.latestValues.x&&"string"!=typeof t.latestValues.y||(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const e=this.updateBlockedByResize;return this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(ug),void this.nodes.forEach(cg)}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(dg);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(hg),this.nodes.forEach(fg),this.nodes.forEach(og),this.nodes.forEach(ig)):this.nodes.forEach(dg),this.clearAllSnapshots();const e=td.now();fu.delta=Yl(0,1e3/60,e-fu.timestamp),fu.timestamp=e,fu.isProcessing=!0,pu.update.process(fu),pu.preRender.process(fu),pu.render.process(fu),fu.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Xu.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(lg),this.sharedNodes.forEach(vg)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,du.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){du.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||Rp(this.snapshot.measuredBox.x)||Rp(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}}),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!zm(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Qd(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),kg((r=n).x),kg(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const t=e.measureViewportBox();if(!this.scroll?.wasRoot&&!this.path.some(Tg)){const{scroll:e}=this.root;e&&(oh(t.x,e.offset.x),oh(t.y,e.offset.y))}return t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};if(Im(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;r!==this.root&&o&&i.layoutScroll&&(o.wasRoot&&Im(t,e),oh(t.x,o.offset.x),oh(t.y,o.offset.y))}return t}applyTransform(e,t=!1,n){const r=n||{x:{min:0,max:0},y:{min:0,max:0}};Im(r,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(oh(r.x,-n.scroll.offset.x),oh(r.y,-n.scroll.offset.y)),Qd(n.latestValues)&&ah(r,n.latestValues,n.layout?.layoutBox)}return Qd(this.latestValues)&&ah(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Im(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!Qd(n.latestValues))continue;let r;n.instance&&(Gd(n.latestValues)&&n.updateSnapshot(),r=Fc(),Im(r,n.measurePageBox())),qm(t,n.latestValues,n.snapshot?.layoutBox,r)}return Qd(this.latestValues)&&qm(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==fu.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){const t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);const n=Boolean(this.resumingFrom)||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:r,layoutId:o}=this.options;if(!this.layout||!r&&!o)return;this.resolvedRelativeTargetAt=fu.timestamp;const i=this.getClosestProjectingParent();var s,a,l,c;i&&this.linkedParentVersion!==i.layoutVersion&&!i.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&i&&i.layout?this.createRelativeTarget(i,this.layout.layoutBox,i.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,c=this.options.layoutAnchor||void 0,Mp(s.x,a.x,l.x,c?.x),Mp(s.y,a.y,l.y,c?.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.applyTransform(this.layout.layoutBox,!1,this.target):Im(this.target,this.layout.layoutBox),th(this.target,this.targetDelta)):Im(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&i&&Boolean(i.resumingFrom)===Boolean(this.resumingFrom)&&!i.options.layoutScroll&&i.target&&1!==this.animationProgress?this.createRelativeTarget(i,this.target,i.target):this.relativeParent=this.relativeTarget=void 0),_m.value&&Jm.calculatedTargetDeltas++)}getClosestProjectingParent(){if(this.parent&&!Gd(this.parent.latestValues)&&!Yd(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Lp(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Im(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const e=this.getLead(),t=Boolean(this.resumingFrom)||this!==e;let n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===fu.timestamp&&(n=!1),n)return;const{layout:r,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!o)return;Im(this.layoutCorrected,this.layout.layoutBox);const i=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,s;t.x=t.y=1;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const{visualElement:o}=i.options;o&&o.props.style&&"contents"===o.props.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(oh(e.x,-i.scroll.offset.x),oh(e.y,-i.scroll.offset.y)),s&&(t.x*=s.x.scale,t.y*=s.y.scale,th(e,s)),r&&Qd(i.latestValues)&&ah(e,i.latestValues,i.layout?.layoutBox))}t.x<rh&&t.x>nh&&(t.x=1),t.y<rh&&t.y>nh&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,t),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:a}=e;a?(this.projectionDelta&&this.prevProjectionDelta?(Lm(this.prevProjectionDelta.x,this.projectionDelta.x),Lm(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Fp(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===i&&this.treeScale.y===s&&Gm(this.projectionDelta.x,this.prevProjectionDelta.x)&&Gm(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a)),_m.value&&Jm.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e,t=!1,n){const r=this.snapshot,o=r?r.latestValues:{},i={...this.latestValues},s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a={x:{min:0,max:0},y:{min:0,max:0}},l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),u=!c||c.members.length<=1,d=Boolean(l&&!u&&!0===this.options.crossfade&&!this.path.some(Eg));let h;this.animationProgress=0;const f=n?.interpolateProjection(e);this.mixTargetDelta=t=>{const n=t/1e3,r=f?.(n);r?(s.x.translate=r.x,s.x.scale=Vd(e.x.scale,1,n),s.x.origin=e.x.origin,s.x.originPoint=e.x.originPoint,s.y.translate=r.y,s.y.scale=Vd(e.y.scale,1,n),s.y.origin=e.y.origin,s.y.originPoint=e.y.originPoint):(bg(s.x,e.x,n),bg(s.y,e.y,n)),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Lp(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),function(e,t,n,r){xg(e.x,t.x,n.x,r),xg(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),h&&function(e,t){return Km(e.x,t.x)&&Km(e.y,t.y)}(this.relativeTarget,h)&&(this.isProjectionDirty=!1),h||(h={x:{min:0,max:0},y:{min:0,max:0}}),Im(h,this.relativeTarget)),l&&(this.animationValues=i,function(e,t,n,r,o,i){o?(e.opacity=Vd(0,n.opacity??1,Rm(r)),e.opacityExit=Vd(t.opacity??1,0,Om(r))):i&&(e.opacity=Vd(t.opacity??1,n.opacity??1,r));for(let o=0;o<Tm;o++){const i=Ld[o];let s=Nm(t,i),a=Nm(n,i);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||Dm(s)===Dm(a)?(e[i]=Math.max(Vd(Am(s),Am(a),r),0),(uc.test(a)||uc.test(s))&&(e[i]+="%")):e[i]=a)}(t.rotate||n.rotate)&&(e.rotate=Vd(t.rotate||0,n.rotate||0,r))}(i,o,this.latestValues,n,d,u)),r&&void 0!==r.rotate&&(this.animationValues||(this.animationValues=i),this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(hu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=du.update(()=>{wm.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=id(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(e,t,n){const r=Wl(e)?e:id(e);return r.start(hp("",r,[0,1e3],n)),r.animation}(this.motionValue,0,{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&_g(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=Rp(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=Rp(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Im(t,n),ah(t,o),Fp(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Qm),this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){const{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){const{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&tg("z",e,r,this.animationValues);for(let t=0;t<Zm.length;t++)tg(`rotate${Zm[t]}`,e,r,this.animationValues),tg(`skew${Zm[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(e.visibility="hidden");const n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=_h(t?.pointerEvents)||"",void(e.transform=n?n(this.latestValues,""):"none");const r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target)return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=_h(t?.pointerEvents)||""),void(this.hasProjected&&!Qd(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1));e.visibility="";const o=r.animationValues||r.latestValues;this.applyTransformsToTarget();let i=function(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,s=n?.z||0;if((o||i||s)&&(r=`translate3d(${o}px, ${i}px, ${s}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,pathRotation:o,rotateX:i,rotateY:s,skewX:a,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),o&&(r+=`rotate(${o}deg) `),i&&(r+=`rotateX(${i}deg) `),s&&(r+=`rotateY(${s}deg) `),a&&(r+=`skewX(${a}deg) `),l&&(r+=`skewY(${l}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return 1===a&&1===l||(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,o);n&&(i=n(o,i)),e.transform=i;const{x:s,y:a}=this.projectionDelta;e.transformOrigin=`${100*s.origin}% ${100*a.origin}% 0`,r.animationValues?e.opacity=r===this?o.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:e.opacity=r===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0;for(const t in qd){if(void 0===o[t])continue;const{correct:n,applyTo:s,isCSSVariable:a}=qd[t],l="none"===i?o[t]:n(o[t],r);if(s){const t=s.length;for(let n=0;n<t;n++)e[s[n]]=l}else a?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?_h(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(cg),this.root.sharedNodes.clear()}}}function og(e){e.updateLayout()}function ig(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;if("size"===o)Np(e=>{const r=i?t.measuredBox[e]:t.layoutBox[e],o=Rp(r);r.min=n[e].min,r.max=r.min+o});else if("x"===o||"y"===o){const e="x"===o?"y":"x";Mm(i?t.measuredBox[e]:t.layoutBox[e],n[e])}else _g(o,t.layoutBox,n)&&Np(r=>{const o=i?t.measuredBox[r]:t.layoutBox[r],s=Rp(n[r]);o.max=o.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)});const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Fp(s,n,t.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?Fp(a,e.applyTransform(r,!0),t.measuredBox):Fp(a,n,t.layoutBox);const l=!zm(s);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const s=e.options.layoutAnchor||void 0,a={x:{min:0,max:0},y:{min:0,max:0}};Lp(a,t.layoutBox,o.layoutBox,s);const l={x:{min:0,max:0},y:{min:0,max:0}};Lp(l,n,i.layoutBox,s),Wm(a,l)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function sg(e){_m.value&&Jm.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ag(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function lg(e){e.clearSnapshot()}function cg(e){e.clearMeasurements()}function ug(e){e.isLayoutDirty=!0,e.updateLayout()}function dg(e){e.isLayoutDirty=!1}function hg(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function fg(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function pg(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function mg(e){e.resolveTargetDelta()}function gg(e){e.calcProjection()}function yg(e){e.resetSkewAndRotation()}function vg(e){e.removeLeadSnapshot()}function bg(e,t,n){e.translate=Vd(t.translate,0,n),e.scale=Vd(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function xg(e,t,n,r){e.min=Vd(t.min,n.min,r),e.max=Vd(t.max,n.max,r)}function Eg(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const wg={duration:.45,ease:[.4,0,.1,1]},Cg=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Sg=Cg("applewebkit/")&&!Cg("chrome/")?Math.round:au;function kg(e){e.min=Sg(e.min),e.max=Sg(e.max)}function _g(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=Hm(t),o=Hm(n),!(Math.abs(r-o)<=.2));var r,o}function Tg(e){return e!==e.root&&e.scroll?.wasRoot}const Ag=rg({attachResizeListener:(e,t)=>Vp(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Dg={current:void 0},Ng=rg({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Dg.current){const e=new Ag({});e.mount(window),e.setOptions({layoutScroll:!0}),Dg.current=e}return Dg.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Rg={pan:{Feature:class extends Hh{constructor(){super(...arguments),this.removePointerDownListener=au}onPointerDown(e){this.session=new im(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nm(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Em(e),onStart:Em(t),onMove:Em(n),onEnd:(e,t)=>{delete this.session,r&&du.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=tm(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Hh{constructor(e){super(e),this.removeGroupControls=au,this.removeListeners=au,this.controls=new vm(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||au}update(){const{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:Ng,MeasureLayout:km}};function Og(e,t){const n=$p(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Fg(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const o=r["onHover"+n];o&&du.postRender(()=>o(t,em(t)))}const Mg=(e,t)=>!!t&&(e===t||Mg(e,t.parentElement)),Ig=new WeakSet;function Lg(e){return t=>{"Enter"===t.key&&e(t)}}function Pg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function jg(e){return Zp(e)&&!Dp()}const Vg=new WeakSet;function Bg(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const o=r["onTap"+("End"===n?"":n)];o&&du.postRender(()=>o(t,em(t)))}const qg=new WeakMap,$g=new WeakMap,zg=e=>{const t=qg.get(e.target);t&&t(e)},Kg=e=>{e.forEach(zg)};const Ug={some:0,all:1},Wg={inView:{Feature:class extends Hh{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:Ug[r]};this.stopObserver=function(e,t,n){const r=function({root:e,...t}){const n=e||document;$g.has(n)||$g.set(n,{});const r=$g.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(Kg,{root:e,...t})),r[o]}(t);return qg.set(e,n),r.observe(e),()=>{qg.delete(e),r.unobserve(e)}}(this.node.current,i,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends Hh{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=function(e,t,n={}){const[r,o,i]=Og(e,n),s=e=>{const r=e.currentTarget;if(!jg(e))return;if(Vg.has(e))return;Ig.add(r),n.stopPropagation&&Vg.add(e);const i=t(r,e),s={...o,capture:!0},a=(e,t)=>{window.removeEventListener("pointerup",l,s),window.removeEventListener("pointercancel",c,s),Ig.has(r)&&Ig.delete(r),jg(e)&&"function"==typeof i&&i(e,{success:t})},l=e=>{a(e,r===window||r===document||n.useGlobalTarget||Mg(r,e.target))},c=e=>{a(e,!1)};window.addEventListener("pointerup",l,s),window.addEventListener("pointercancel",c,s)};return r.forEach(e=>{var t;(n.useGlobalTarget?window:e).addEventListener("pointerdown",s,o),Bp(t=e)&&"offsetHeight"in t&&!("ownerSVGElement"in t)&&(e.addEventListener("focus",e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=Lg(()=>{if(Ig.has(n))return;Pg(n,"down");const e=Lg(()=>{Pg(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>Pg(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,o)),function(e){return Pp.has(e.tagName)||!0===e.isContentEditable}(e)||e.hasAttribute("tabindex")||(e.tabIndex=0))}),i}(e,(e,t)=>(Bg(this.node,t,"Start"),(e,{success:t})=>Bg(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:!1===n?.tap})}unmount(){}}},focus:{Feature:class extends Hh{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=nf(Vp(this.node.current,"focus",()=>this.onFocus()),Vp(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Hh{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,o,i]=Og(e,n);return r.forEach(e=>{let n,r=!1,i=!1;const s=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",l)},a=e=>{r=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),i&&(i=!1,s(e))},l=e=>{"touch"!==e.pointerType&&(r?i=!0:s(e))};e.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||Dp())return;i=!1;const s=t(e,r);"function"==typeof s&&(n=s,e.addEventListener("pointerleave",l,o))},o),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",a,o),window.addEventListener("pointercancel",a,o)},o)}),i}(e,(e,t)=>(Fg(this.node,t,"Start"),e=>Fg(this.node,e,"End"))))}unmount(){}}}},Hg=Wh({...Tp,...Wg,...Rg,layout:{ProjectionNode:Ng,MeasureLayout:km}},hh);function Gg(e){const t=Ah(()=>id(e)),{isStatic:n}=(0,c.useContext)(mh);if(n){const[,n]=(0,c.useState)(e);(0,c.useEffect)(()=>t.on("change",n),[])}return t}function Qg(e,t){const n=Gg(t()),r=()=>n.set(t());return r(),qh(()=>{const t=()=>du.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),hu(r)}}),n}function Yg(e,t,n,r){if("function"==typeof e)return function(e){rd.current=[],e();const t=Qg(rd.current,e);return rd.current=void 0,t}(e);if(void 0!==n&&!Array.isArray(n)&&"function"!=typeof t)return function(e,t,n,r){const o=Ah(()=>Object.keys(n)),i=Ah(()=>({}));for(const s of o)i[s]=Yg(e,t,n[s],r);return i}(e,t,n,r);const o="function"==typeof t?t:function(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],o=Gf(e[1+n],e[2+n],e[3+n]);return t?o(r):o}(t,n,r),i=Array.isArray(e)?Xg(e,o):Xg([e],([e])=>o(e)),s=Array.isArray(e)?void 0:e.accelerate;return s&&!s.isTransformed&&"function"!=typeof t&&Array.isArray(n)&&!1!==r?.clamp&&(i.accelerate={...s,times:t,keyframes:n,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),i}function Xg(e,t){const n=Ah(()=>[]);return Qg(e,()=>{n.length=0;const r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}const Jg=new Set(["auto","scroll"]),Zg=new WeakMap,ey=new WeakMap;let ty=null;function ny(e,t){const n=getComputedStyle(e),r="x"===t?n.overflowX:n.overflowY,o=e===document.body||e===document.documentElement;return Jg.has(r)||o}function ry(e,t){let n=e?.parentElement;for(;n;){if(ny(n,t))return n;n=n.parentElement}return null}function oy(e,t=0){return Wl(e)?e:Gg(t)}function iy({children:e,style:t={},value:n,as:r="li",onDrag:o,onDragEnd:i,layout:s=!0,...l},u){const d=Ah(()=>Hg[r]),h=(0,c.useContext)(Hl),f={x:oy(t.x),y:oy(t.y)},p=Yg([f.x,f.y],([e,t])=>e||t?1:"unset");Boolean(h);const{axis:m,registerItem:g,updateOrder:y,groupRef:v}=h;return(0,a.jsx)(d,{drag:m,...l,dragSnapToOrigin:!0,style:{...t,x:f.x,y:f.y,zIndex:p},layout:s,onDrag:(e,t)=>{const{velocity:r,point:i}=t,s=f[m].get();y(n,s,r[m]),function(e,t,n,r){if(!e)return;ty=e;const o=ry(e,n);if(!o)return;const i=t-("x"===n?window.scrollX:window.scrollY),{amount:s,edge:a}=function(e,t,n){const r=t.getBoundingClientRect(),o=e-("x"===n?Math.max(0,r.left):Math.max(0,r.top)),i=("x"===n?Math.min(window.innerWidth,r.right):Math.min(window.innerHeight,r.bottom))-e;if(o<50){const e=1-o/50;return{amount:-25*e*e,edge:"start"}}if(i<50){const e=1-i/50;return{amount:25*e*e,edge:"end"}}return{amount:0,edge:null}}(i,o,n);if(null===a)return ey.delete(o),void Zg.delete(o);const l=ey.get(o),c=o===document.body||o===document.documentElement;if(l!==a){if(!("start"===a&&r<0||"end"===a&&r>0))return;ey.set(o,a);const e="x"===n?o.scrollWidth-(c?window.innerWidth:o.clientWidth):o.scrollHeight-(c?window.innerHeight:o.clientHeight);Zg.set(o,e)}if(s>0){const e=Zg.get(o);if(("x"===n?c?window.scrollX:o.scrollLeft:c?window.scrollY:o.scrollTop)>=e)return}"x"===n?c?window.scrollBy({left:s}):o.scrollLeft+=s:c?window.scrollBy({top:s}):o.scrollTop+=s}(v.current,i[m],m,r[m]),o&&o(e,t)},onDragEnd:(e,t)=>{!function(){if(ty){const e=ry(ty,"y");e&&(ey.delete(e),Zg.delete(e));const t=ry(ty,"x");t&&t!==e&&(ey.delete(t),Zg.delete(t)),ty=null}}(),i&&i(e,t)},onLayoutMeasure:e=>{g(n,e)},ref:u,ignoreStrict:!0,children:e})}const sy=(0,c.forwardRef)(iy);function ay({children:e,as:t="ul",axis:n="y",onReorder:r,values:o,...i},s){const l=Ah(()=>Hg[t]),u=[],d=(0,c.useRef)(!1),h=(0,c.useRef)(null);Boolean(o);const f={axis:n,groupRef:h,registerItem:(e,t)=>{const r=u.findIndex(t=>e===t.value);-1!==r?u[r].layout=t[n]:u.push({value:e,layout:t[n]}),u.sort(cy)},updateOrder:(e,t,n)=>{if(d.current)return;const i=function(e,t,n,r){if(!r)return e;const o=e.findIndex(e=>e.value===t);if(-1===o)return e;const i=r>0?1:-1,s=e[o+i];if(!s)return e;const a=e[o],l=s.layout,c=Vd(l.min,l.max,.5);return 1===i&&a.layout.max+n>c||-1===i&&a.layout.min+n<c?function([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const r=n<0?e.length+n:n,[o]=e.splice(t,1);e.splice(r,0,o)}return e}(e,o,o+i):e}(u,e,t,n);if(u!==i){d.current=!0;const e=[...o];for(let t=0;t<i.length;t++)if(u[t].value!==i[t].value){const n=o.indexOf(u[t].value),r=o.indexOf(i[t].value);-1!==n&&-1!==r&&([e[n],e[r]]=[e[r],e[n]]);break}r(e)}}};(0,c.useEffect)(()=>{d.current=!1});const p={overflowAnchor:"none",...i.style};return(0,a.jsx)(l,{...i,style:p,ref:e=>{h.current=e,"function"==typeof s?s(e):s&&(s.current=e)},ignoreStrict:!0,children:(0,a.jsx)(Hl.Provider,{value:f,children:e})})}const ly=(0,c.forwardRef)(ay);function cy(e,t){return e.layout.min-t.layout.min}const uy=(0,c.forwardRef)((e,t)=>{const n=(0,l.c)(16);let r,o,i,s,c;n[0]!==e?(({isActive:i,value:c,children:r,className:o,...s}=e),n[0]=e,n[1]=r,n[2]=o,n[3]=i,n[4]=s,n[5]=c):(r=n[1],o=n[2],i=n[3],s=n[4],c=n[5]);const u=i&&"graphiql-tab-active";let d,h;return n[6]!==o||n[7]!==u?(d=(0,Xt.$)("graphiql-tab",u,o),n[6]=o,n[7]=u,n[8]=d):d=n[8],n[9]!==r||n[10]!==i||n[11]!==s||n[12]!==t||n[13]!==d||n[14]!==c?(h=(0,a.jsx)(sy,{...s,ref:t,value:c,"aria-selected":i,dragElastic:!1,role:"tab",className:d,children:r}),n[9]=r,n[10]=i,n[11]=s,n[12]=t,n[13]=d,n[14]=c,n[15]=h):h=n[15],h});uy.displayName="Tab";const dy=(0,c.forwardRef)((e,t)=>{const n=(0,l.c)(11);let r,o,i,s,c;return n[0]!==e?(({children:r,className:o,...i}=e),n[0]=e,n[1]=r,n[2]=o,n[3]=i):(r=n[1],o=n[2],i=n[3]),n[4]!==o?(s=(0,Xt.$)("graphiql-tab-button",o),n[4]=o,n[5]=s):s=n[5],n[6]!==r||n[7]!==i||n[8]!==t||n[9]!==s?(c=(0,a.jsx)(Bl,{...i,ref:t,type:"button",className:s,children:r}),n[6]=r,n[7]=i,n[8]=t,n[9]=s,n[10]=c):c=n[10],c});dy.displayName="Tab.Button";const hy=(0,c.forwardRef)((e,t)=>{const n=(0,l.c)(7);let r,o,i;return n[0]!==e.className?(r=(0,Xt.$)("graphiql-tab-close",e.className),n[0]=e.className,n[1]=r):r=n[1],n[2]===Symbol.for("react.memo_cache_sentinel")?(o=(0,a.jsx)(yt,{}),n[2]=o):o=n[2],n[3]!==e||n[4]!==t||n[5]!==r?(i=(0,a.jsx)(Bl,{"aria-label":"Close Tab",...e,ref:t,type:"button",className:r,children:o}),n[3]=e,n[4]=t,n[5]=r,n[6]=i):i=n[6],i});hy.displayName="Tab.Close";const fy=Object.assign(uy,{Button:dy,Close:hy}),py=(0,c.forwardRef)((e,t)=>{const n=(0,l.c)(15);let r,o,i,s,c,u,d;return n[0]!==e?(({values:c,onReorder:i,children:r,className:o,...s}=e),n[0]=e,n[1]=r,n[2]=o,n[3]=i,n[4]=s,n[5]=c):(r=n[1],o=n[2],i=n[3],s=n[4],c=n[5]),n[6]!==o?(u=(0,Xt.$)("graphiql-tabs",o),n[6]=o,n[7]=u):u=n[7],n[8]!==r||n[9]!==i||n[10]!==s||n[11]!==t||n[12]!==u||n[13]!==c?(d=(0,a.jsx)(ly,{...s,ref:t,values:c,onReorder:i,axis:"x",role:"tablist",className:u,children:r}),n[8]=r,n[9]=i,n[10]=s,n[11]=t,n[12]=u,n[13]=c,n[14]=d):d=n[14],d});py.displayName="Tabs";var my=n(7470);const gy=Object.assign(e=>{var t;const n=(0,l.c)(14),{path:r}=e;let o;n[0]===Symbol.for("react.memo_cache_sentinel")?(o={width:null,height:null},n[0]=o):o=n[0];const[i,s]=(0,c.useState)(o),{width:u,height:d}=i,[h,f]=(0,c.useState)(null),p=(0,c.useRef)(null),m=null==(t=yy(r))?void 0:t.href;let g,y,v,b,x,E;return n[1]!==m?(g=()=>{if(!m)return s({width:null,height:null}),void f(null);fetch(m,{method:"HEAD"}).then(e=>{f(e.headers.get("Content-Type"))}).catch(()=>{f(null)})},y=[m],n[1]=m,n[2]=g,n[3]=y):(g=n[2],y=n[3]),(0,c.useEffect)(g,y),n[4]===Symbol.for("react.memo_cache_sentinel")?(v=()=>{s({width:p.current.naturalWidth,height:p.current.naturalHeight})},n[4]=v):v=n[4],n[5]!==m?(b=(0,a.jsx)("img",{alt:"",onLoad:v,ref:p,src:m}),n[5]=m,n[6]=b):b=n[6],n[7]!==d||n[8]!==h||n[9]!==u?(x=null!==u&&null!==d&&(0,a.jsxs)("div",{children:[u,"x",d,h&&" "+h]}),n[7]=d,n[8]=h,n[9]=u,n[10]=x):x=n[10],n[11]!==b||n[12]!==x?(E=(0,a.jsxs)("div",{children:[b,x]}),n[11]=b,n[12]=x,n[13]=E):E=n[13],E},{shouldRender(e){const t=yy(e);return!!t&&/\.(bmp|gif|jpe?g|png|svg|webp)$/.test(t.pathname)}});function yy(e){const t=e.trim();try{return new URL(t,location.protocol+"//"+location.host)}catch{}}const vy=e=>{const t=(0,l.c)(22);let n,r;t[0]!==e?(({responseTooltip:n,...r}=e),t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);const{setEditor:o,run:i}=it();let s;t[3]===Symbol.for("react.memo_cache_sentinel")?(s=lt("fetchError","validationErrors","responseEditor","uriInstanceId"),t[3]=s):s=t[3];const{fetchError:u,validationErrors:d,responseEditor:h,uriInstanceId:f}=ot(s),p=(0,c.useRef)(null),m=Ke(by);let g,y,v,b,E,w;return t[4]!==u||t[5]!==h||t[6]!==d?(g=()=>{u&&(null==h||h.setValue(u)),d.length&&(null==h||h.setValue((0,x.formatError)(d)))},y=[h,u,d],t[4]=u,t[5]=h,t[6]=d,t[7]=g,t[8]=y):(g=t[7],y=t[8]),(0,c.useEffect)(g,y),t[9]!==n||t[10]!==m||t[11]!==i||t[12]!==o||t[13]!==f?(v=()=>{if(!m)return;const e=Ht({uri:`${f}response.json`,value:""}),t=Gt(p,{model:e,readOnly:!0,lineNumbers:"off",wordWrap:"on",contextmenu:!1});let r,s;o({responseEditor:t});const l=e.getLanguageId();return Yt([m.languages.registerHoverProvider(l,{provideHover:(t,o)=>{if(t.uri!==e.uri)return null;const i=t.getWordAtPosition(o);if(!(null==i?void 0:i.word.startsWith("/")))return null;if(!gy.shouldRender(i.word))return null;const l=`hover-${o.lineNumber}-${o.column}`;return s&&clearTimeout(s),s=setTimeout(()=>{const e=document.querySelector(`[data-id="${l}"]`);e&&(null==r||r.unmount(),r=(0,my.createRoot)(e),r.render((0,a.jsxs)(a.Fragment,{children:[n&&(0,a.jsx)(n,{position:o,word:i}),(0,a.jsx)(gy,{path:i.word})]})))},500),{range:new Je.Q(o.lineNumber,i.startColumn,o.lineNumber,i.endColumn),contents:[{value:`<div data-id="${l}">Loading...</div>`,supportHtml:!0}]}}}),t.addAction({...P,run:i}),t,e])},t[9]=n,t[10]=m,t[11]=i,t[12]=o,t[13]=f,t[14]=v):v=t[14],t[15]!==m?(b=[m],t[15]=m,t[16]=b):b=t[16],(0,c.useEffect)(v,b),t[17]!==r.className?(E=(0,Xt.$)("result-window",r.className),t[17]=r.className,t[18]=E):E=t[18],t[19]!==r||t[20]!==E?(w=(0,a.jsx)("section",{ref:p,"aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",tabIndex:0,onKeyDown:Wt,...r,className:E}),t[19]=r,t[20]=E,t[21]=w):w=t[21],w};function by(e){return e.monaco}const xy=h((e,t)=>({historyStorage:null,actions:{addToHistory(n){const{historyStorage:r}=t();null==r||r.updateHistory(n),e({})},editLabel(n,r){const{historyStorage:o}=t();null==o||o.editLabel(n,r),e({})},toggleFavorite(n){const{historyStorage:r}=t();null==r||r.toggleFavorite(n),e({})},setActive:e=>e,deleteFromHistory(n,r){const{historyStorage:o}=t();null==o||o.deleteHistory(n,r),e({})}}})),Ey=e=>{const t=(0,l.c)(11),{maxHistoryLength:n,children:r}=e,o=void 0===n?20:n;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=lt("isFetching","tabs","activeTabIndex","storage"),t[0]=i):i=t[0];const{isFetching:s,tabs:a,activeTabIndex:u,storage:d}=ot(i),h=a[u];let f;t[1]!==o||t[2]!==d?(f=new x.HistoryStore(d,o),t[1]=o,t[2]=d,t[3]=f):f=t[3];const p=f;let m,g,y,v;return t[4]!==p?(m=()=>{xy.setState({historyStorage:p})},g=[p],t[4]=p,t[5]=m,t[6]=g):(m=t[5],g=t[6]),(0,c.useEffect)(m,g),t[7]!==h||t[8]!==s?(y=()=>{if(!s)return;const{addToHistory:e}=xy.getState().actions;e({query:h.query??void 0,variables:h.variables??void 0,headers:h.headers??void 0,operationName:h.operationName??void 0})},v=[s,h],t[7]=h,t[8]=s,t[9]=y,t[10]=v):(y=t[9],v=t[10]),(0,c.useEffect)(y,v),r},wy=$e(xy),Cy=[],Sy=()=>wy(_y);function ky(e){var t;return(null==(t=e.historyStorage)?void 0:t.queries)??Cy}function _y(e){return e.actions}const Ty=e=>{const t=(0,l.c)(39),{editLabel:n,toggleFavorite:r,deleteFromHistory:o,setActive:i}=Sy();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=lt("headerEditor","queryEditor","variableEditor"),t[0]=s):s=t[0];const{headerEditor:u,queryEditor:d,variableEditor:h}=ot(s),f=(0,c.useRef)(null),p=(0,c.useRef)(null),[m,g]=(0,c.useState)(!1);let y,v,b;var x;t[1]!==m?(y=()=>{var e;m&&(null==(e=f.current)||e.focus())},v=[m],t[1]=m,t[2]=y,t[3]=v):(y=t[2],v=t[3]),(0,c.useEffect)(y,v),t[4]!==e.item.label||t[5]!==e.item.operationName||t[6]!==e.item.query?(b=e.item.label||e.item.operationName||(null==(x=e.item.query)?void 0:x.split("\n").map(e=>e.replace(/#(.*)/,"")).join(" ").replaceAll("{"," { ").replaceAll("}"," } ").replaceAll(/[\s]{2,}/g," ")),t[4]=e.item.label,t[5]=e.item.operationName,t[6]=e.item.query,t[7]=b):b=t[7];const E=b;let w;t[8]!==n||t[9]!==e.item?(w=()=>{var t;g(!1);const{index:r,...o}=e.item;n({...o,label:null==(t=f.current)?void 0:t.value},r)},t[8]=n,t[9]=e.item,t[10]=w):w=t[10];const C=w;let S;t[11]===Symbol.for("react.memo_cache_sentinel")?(S=()=>{g(!1)},t[11]=S):S=t[11];const k=S;let _;t[12]===Symbol.for("react.memo_cache_sentinel")?(_=e=>{e.stopPropagation(),g(!0)},t[12]=_):_=t[12];const T=_;let A;t[13]!==u||t[14]!==e.item||t[15]!==d||t[16]!==i||t[17]!==h?(A=()=>{const{query:t,variables:n,headers:r}=e.item;null==d||d.setValue(t??""),null==h||h.setValue(n??""),null==u||u.setValue(r??""),i(e.item)},t[13]=u,t[14]=e.item,t[15]=d,t[16]=i,t[17]=h,t[18]=A):A=t[18];const D=A;let N;t[19]!==o||t[20]!==e.item?(N=t=>{t.stopPropagation(),o(e.item)},t[19]=o,t[20]=e.item,t[21]=N):N=t[21];const R=N;let O;t[22]!==e.item||t[23]!==r?(O=t=>{t.stopPropagation(),r(e.item)},t[22]=e.item,t[23]=r,t[24]=O):O=t[24];const F=O,M=m&&"editable";let I,L,P;return t[25]!==M?(I=(0,Xt.$)("graphiql-history-item",M),t[25]=M,t[26]=I):I=t[26],t[27]!==E||t[28]!==n||t[29]!==R||t[30]!==D||t[31]!==C||t[32]!==F||t[33]!==m||t[34]!==e.item?(L=m?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",{type:"text",defaultValue:e.item.label,ref:f,onKeyDown:t=>{"Esc"===t.key?g(!1):"Enter"===t.key&&(g(!1),n({...e.item,label:t.currentTarget.value}))},placeholder:"Type a label"}),(0,a.jsx)(Bl,{type:"button",ref:p,onClick:C,children:"Save"}),(0,a.jsx)(Bl,{type:"button",ref:p,onClick:k,children:(0,a.jsx)(yt,{})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Pl,{label:"Set active",children:(0,a.jsx)(Bl,{type:"button",className:"graphiql-history-item-label",onClick:D,"aria-label":"Set active",children:E})}),(0,a.jsx)(Pl,{label:"Edit label",children:(0,a.jsx)(Bl,{type:"button",className:"graphiql-history-item-action",onClick:T,"aria-label":"Edit label",children:(0,a.jsx)(Ot,{"aria-hidden":"true"})})}),(0,a.jsx)(Pl,{label:e.item.favorite?"Remove favorite":"Add favorite",children:(0,a.jsx)(Bl,{type:"button",className:"graphiql-history-item-action",onClick:F,"aria-label":e.item.favorite?"Remove favorite":"Add favorite",children:e.item.favorite?(0,a.jsx)(Vt,{"aria-hidden":"true"}):(0,a.jsx)(Bt,{"aria-hidden":"true"})})}),(0,a.jsx)(Pl,{label:"Delete from history",children:(0,a.jsx)(Bl,{type:"button",className:"graphiql-history-item-action",onClick:R,"aria-label":"Delete from history",children:(0,a.jsx)($t,{"aria-hidden":"true"})})})]}),t[27]=E,t[28]=n,t[29]=R,t[30]=D,t[31]=C,t[32]=F,t[33]=m,t[34]=e.item,t[35]=L):L=t[35],t[36]!==I||t[37]!==L?(P=(0,a.jsx)("li",{className:I,children:L}),t[36]=I,t[37]=L,t[38]=P):P=t[38],P};function Ay(e,t){return{...e,index:t}}function Dy(e){return e.favorite}function Ny(e){return!e.favorite}function Ry(e){return(0,a.jsx)(Ty,{item:e},e.index)}function Oy(e){return(0,a.jsx)(Ty,{item:e},e.index)}const Fy={title:"History",icon:Tt,content:()=>{const e=(0,l.c)(13),t=wy(ky),{deleteFromHistory:n}=Sy();let r;r=t.slice().map(Ay).reverse();const o=r.filter(Dy);o.length&&(r=r.filter(Ny));const[i,s]=(0,c.useState)(null);let u,d;e[0]!==i?(u=()=>{i&&setTimeout(()=>{s(null)},2e3)},d=[i],e[0]=i,e[1]=u,e[2]=d):(u=e[1],d=e[2]),(0,c.useEffect)(u,d);const h=Boolean(o.length),f=Boolean(r.length),p=(i||f)&&(0,a.jsx)(ql,{type:"button",state:i||void 0,disabled:!r.length,onClick:()=>{try{!function(e,t){for(const n of e)t(n,!0)}(r,n),s("success")}catch{s("error")}},children:{success:"Cleared",error:"Failed to Clear"}[i]||"Clear"});let m;e[3]!==p?(m=(0,a.jsxs)("div",{className:"graphiql-history-header",children:["History",p]}),e[3]=p,e[4]=m):m=e[4];const g=h&&(0,a.jsx)("ul",{className:"graphiql-history-items",children:o.map(Ry)});let y;e[5]!==h||e[6]!==f?(y=h&&f&&(0,a.jsx)("div",{className:"graphiql-history-item-spacer"}),e[5]=h,e[6]=f,e[7]=y):y=e[7];const v=f&&(0,a.jsx)("ul",{className:"graphiql-history-items",children:r.map(Oy)});let b;return e[8]!==m||e[9]!==g||e[10]!==y||e[11]!==v?(b=(0,a.jsxs)("section",{"aria-label":"History",className:"graphiql-history",children:[m,g,y,v]}),e[8]=m,e[9]=g,e[10]=y,e[11]=v,e[12]=b):b=e[12],b}};function My(e){return"__"===e.name.slice(0,2)}const Iy={};function Ly(e,t){"string"!=typeof t&&(t=Ly.defaultChars);const n=function(e){let t=Iy[e];if(t)return t;t=Iy[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t="";for(let r=0,o=e.length;r<o;r+=3){const i=parseInt(e.slice(r+1,r+3),16);if(i<128)t+=n[i];else{if(192==(224&i)&&r+3<o){const n=parseInt(e.slice(r+4,r+6),16);if(128==(192&n)){const e=i<<6&1984|63&n;t+=e<128?"��":String.fromCharCode(e),r+=3;continue}}if(224==(240&i)&&r+6<o){const n=parseInt(e.slice(r+4,r+6),16),o=parseInt(e.slice(r+7,r+9),16);if(128==(192&n)&&128==(192&o)){const e=i<<12&61440|n<<6&4032|63&o;t+=e<2048||e>=55296&&e<=57343?"���":String.fromCharCode(e),r+=6;continue}}if(240==(248&i)&&r+9<o){const n=parseInt(e.slice(r+4,r+6),16),o=parseInt(e.slice(r+7,r+9),16),s=parseInt(e.slice(r+10,r+12),16);if(128==(192&n)&&128==(192&o)&&128==(192&s)){let e=i<<18&1835008|n<<12&258048|o<<6&4032|63&s;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),r+=9;continue}}t+="�"}}return t})}Ly.defaultChars=";/?:@&=+$,#",Ly.componentChars="";const Py=Ly,jy={};function Vy(e,t,n){"string"!=typeof t&&(n=t,t=Vy.defaultChars),void 0===n&&(n=!0);const r=function(e){let t=jy[e];if(t)return t;t=jy[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}(t);let o="";for(let t=0,i=e.length;t<i;t++){const s=e.charCodeAt(t);if(n&&37===s&&t+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3)))o+=e.slice(t,t+3),t+=2;else if(s<128)o+=r[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&t+1<i){const n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){o+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}o+="%EF%BF%BD"}else o+=encodeURIComponent(e[t])}return o}Vy.defaultChars=";/?:@&=+$,-_.!~*'()#",Vy.componentChars="-_.!~*'()";const By=Vy;function qy(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function $y(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const zy=/^([a-z0-9.+-]+:)/i,Ky=/:[0-9]*$/,Uy=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Wy=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Hy=["'"].concat(Wy),Gy=["%","/","?",";","#"].concat(Hy),Qy=["/","?","#"],Yy=/^[+a-z0-9A-Z_-]{0,63}$/,Xy=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Jy={javascript:!0,"javascript:":!0},Zy={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};$y.prototype.parse=function(e,t){let n,r,o,i=e;if(i=i.trim(),!t&&1===e.split("#").length){const e=Uy.exec(i);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let s=zy.exec(i);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,i=i.substr(s.length)),(t||s||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o="//"===i.substr(0,2),!o||s&&Jy[s]||(i=i.substr(2),this.slashes=!0)),!Jy[s]&&(o||s&&!Zy[s])){let e,t,n=-1;for(let e=0;e<Qy.length;e++)r=i.indexOf(Qy[e]),-1!==r&&(-1===n||r<n)&&(n=r);t=-1===n?i.lastIndexOf("@"):i.lastIndexOf("@",n),-1!==t&&(e=i.slice(0,t),i=i.slice(t+1),this.auth=e),n=-1;for(let e=0;e<Gy.length;e++)r=i.indexOf(Gy[e]),-1!==r&&(-1===n||r<n)&&(n=r);-1===n&&(n=i.length),":"===i[n-1]&&n--;const o=i.slice(0,n);i=i.slice(n),this.parseHost(o),this.hostname=this.hostname||"";const s="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!s){const e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n&&!n.match(Yy)){let r="";for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+="x":r+=n[e];if(!r.match(Yy)){const r=e.slice(0,t),o=e.slice(t+1),s=n.match(Xy);s&&(r.push(s[1]),o.unshift(s[2])),o.length&&(i=o.join(".")+i),this.hostname=r.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),s&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const a=i.indexOf("#");-1!==a&&(this.hash=i.substr(a),i=i.slice(0,a));const l=i.indexOf("?");return-1!==l&&(this.search=i.substr(l),i=i.slice(0,l)),i&&(this.pathname=i),Zy[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},$y.prototype.parseHost=function(e){let t=Ky.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const ev=function(e,t){if(e&&e instanceof $y)return e;const n=new $y;return n.parse(e,t),n},tv=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,nv=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,rv=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ov=/[\0-\x1F\x7F-\x9F]/,iv=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,sv=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,av=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),lv=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var cv;const uv=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),dv=null!==(cv=String.fromCodePoint)&&void 0!==cv?cv:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};var hv,fv,pv,mv;function gv(e){return e>=hv.ZERO&&e<=hv.NINE}function yv(e){return e>=hv.UPPER_A&&e<=hv.UPPER_F||e>=hv.LOWER_A&&e<=hv.LOWER_F}function vv(e){return e===hv.EQUALS||function(e){return e>=hv.UPPER_A&&e<=hv.UPPER_Z||e>=hv.LOWER_A&&e<=hv.LOWER_Z||gv(e)}(e)}!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(hv||(hv={})),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(fv||(fv={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(pv||(pv={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(mv||(mv={}));class bv{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=pv.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=mv.Strict}startEntity(e){this.decodeMode=e,this.state=pv.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case pv.EntityStart:return e.charCodeAt(t)===hv.NUM?(this.state=pv.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=pv.NamedEntity,this.stateNamedEntity(e,t));case pv.NumericStart:return this.stateNumericStart(e,t);case pv.NumericDecimal:return this.stateNumericDecimal(e,t);case pv.NumericHex:return this.stateNumericHex(e,t);case pv.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===hv.LOWER_X?(this.state=pv.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=pv.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const o=n-t;this.result=this.result*Math.pow(r,o)+parseInt(e.substr(t,o),r),this.consumed+=o}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!gv(r)&&!yv(r))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!gv(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===hv.SEMI)this.consumed+=1;else if(this.decodeMode===mv.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=uv.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==hv.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],o=(r&fv.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const i=e.charCodeAt(t);if(this.treeIndex=Ev(n,r,this.treeIndex+Math.max(1,o),i),this.treeIndex<0)return 0===this.result||this.decodeMode===mv.Attribute&&(0===o||vv(i))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],o=(r&fv.VALUE_LENGTH)>>14,0!==o){if(i===hv.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==mv.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&fv.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~fv.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case pv.NamedEntity:return 0===this.result||this.decodeMode===mv.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case pv.NumericDecimal:return this.emitNumericEntity(0,2);case pv.NumericHex:return this.emitNumericEntity(0,3);case pv.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case pv.EntityStart:return 0}}}function xv(e){let t="";const n=new bv(e,e=>t+=dv(e));return function(e,r){let o=0,i=0;for(;(i=e.indexOf("&",i))>=0;){t+=e.slice(o,i),n.startEntity(r);const s=n.write(e,i+1);if(s<0){o=i+n.end();break}o=i+s,i=0===s?o+1:o}const s=t+e.slice(o);return t="",s}}function Ev(e,t,n,r){const o=(t&fv.BRANCH_LENGTH)>>7,i=t&fv.JUMP_TABLE;if(0===o)return 0!==i&&r===i?n:-1;if(i){const t=r-i;return t<0||t>=o?-1:e[n+t]-1}let s=n,a=s+o-1;for(;s<=a;){const t=s+a>>>1,n=e[t];if(n<r)s=t+1;else{if(!(n>r))return e[t+o];a=t-1}}return-1}const wv=xv(av);function Cv(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}xv(lv),new Map(Cv([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(Cv([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(Cv([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(Cv([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));const Sv=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function kv(e,t){return function(n){let r,o=0,i="";for(;r=e.exec(n);)o!==r.index&&(i+=n.substring(o,r.index)),i+=t.get(r[0].charCodeAt(0)),o=r.index+1;return i+n.substring(o)}}var _v,Tv;function Av(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}String.prototype.codePointAt,kv(/[&<>'"]/g,Sv),kv(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),kv(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(_v||(_v={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(Tv||(Tv={}));const Dv=Object.prototype.hasOwnProperty;function Nv(e,t){return Dv.call(e,t)}function Rv(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function Ov(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Fv(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||!(65535&~e&&65534!=(65535&e))||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Mv(e){if(e>65535){const t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const Iv=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Lv=new RegExp(Iv.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),Pv=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function jv(e){return e.indexOf("\\")<0?e:e.replace(Iv,"$1")}function Vv(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Lv,function(e,t,n){return t||function(e,t){if(35===t.charCodeAt(0)&&Pv.test(t)){const n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Fv(n)?Mv(n):e}const n=function(e,t=mv.Legacy){return wv(e,t)}(e);return n!==e?n:e}(e,n)})}const Bv=/[&<>"]/,qv=/[&<>"]/g,$v={"&":"&","<":"<",">":">",'"':"""};function zv(e){return $v[e]}function Kv(e){return Bv.test(e)?e.replace(qv,zv):e}const Uv=/[.?*+^$[\]\\(){}|-]/g;function Wv(e){return e.replace(Uv,"\\$&")}function Hv(e){switch(e){case 9:case 32:return!0}return!1}function Gv(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Qv(e){return tv.test(e)||nv.test(e)}function Yv(e){return Qv(Mv(e))}function Xv(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Jv(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}function Zv(e){return 32===e||9===e||10===e||13===e}function eb(e){let t=0;for(;t<e.length&&Zv(e.charCodeAt(t));t++);let n=e.length-1;for(;n>=t&&Zv(e.charCodeAt(n));n--);return e.slice(t,n+1)}const tb={mdurl:r,ucmicro:o};function nb(e,t,n){let r,o,i,s;const a=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<a;){if(i=e.src.charCodeAt(e.pos),93===i&&(r--,0===r)){o=!0;break}if(s=e.pos,e.md.inline.skipToken(e),91===i)if(s===e.pos-1)r++;else if(n)return e.pos=l,-1}let c=-1;return o&&(c=e.pos),e.pos=l,c}function rb(e,t,n){let r,o=t;const i={ok:!1,pos:0,str:""};if(60===e.charCodeAt(o)){for(o++;o<n;){if(r=e.charCodeAt(o),10===r)return i;if(60===r)return i;if(62===r)return i.pos=o+1,i.str=Vv(e.slice(t+1,o)),i.ok=!0,i;92===r&&o+1<n?o+=2:o++}return i}let s=0;for(;o<n&&(r=e.charCodeAt(o),32!==r)&&!(r<32||127===r);)if(92===r&&o+1<n){if(32===e.charCodeAt(o+1))break;o+=2}else{if(40===r&&(s++,s>32))return i;if(41===r){if(0===s)break;s--}o++}return t===o||0!==s||(i.str=Vv(e.slice(t,o)),i.pos=o,i.ok=!0),i}function ob(e,t,n,r){let o,i=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)s.str=r.str,s.marker=r.marker;else{if(i>=n)return s;let r=e.charCodeAt(i);if(34!==r&&39!==r&&40!==r)return s;t++,i++,40===r&&(r=41),s.marker=r}for(;i<n;){if(o=e.charCodeAt(i),o===s.marker)return s.pos=i+1,s.str+=Vv(e.slice(t,i)),s.ok=!0,s;if(40===o&&41===s.marker)return s;92===o&&i+1<n&&i++,i++}return s.can_continue=!0,s.str+=Vv(e.slice(t,i)),s}const ib={};function sb(){this.rules=Rv({},ib)}ib.code_inline=function(e,t,n,r,o){const i=e[t];return"<code"+o.renderAttrs(i)+">"+Kv(i.content)+"</code>"},ib.code_block=function(e,t,n,r,o){const i=e[t];return"<pre"+o.renderAttrs(i)+"><code>"+Kv(e[t].content)+"</code></pre>\n"},ib.fence=function(e,t,n,r,o){const i=e[t],s=i.info?Vv(i.info).trim():"";let a,l="",c="";if(s){const e=s.split(/(\s+)/g);l=e[0],c=e.slice(2).join("")}if(a=n.highlight&&n.highlight(i.content,l,c)||Kv(i.content),0===a.indexOf("<pre"))return a+"\n";if(s){const e=i.attrIndex("class"),t=i.attrs?i.attrs.slice():[];e<0?t.push(["class",n.langPrefix+l]):(t[e]=t[e].slice(),t[e][1]+=" "+n.langPrefix+l);const r={attrs:t};return`<pre><code${o.renderAttrs(r)}>${a}</code></pre>\n`}return`<pre><code${o.renderAttrs(i)}>${a}</code></pre>\n`},ib.image=function(e,t,n,r,o){const i=e[t];return i.attrs[i.attrIndex("alt")][1]=o.renderInlineAsText(i.children,n,r),o.renderToken(e,t,n)},ib.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},ib.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},ib.text=function(e,t){return Kv(e[t].content)},ib.html_block=function(e,t){return e[t].content},ib.html_inline=function(e,t){return e[t].content},sb.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+Kv(e.attrs[t][0])+'="'+Kv(e.attrs[t][1])+'"';return r},sb.prototype.renderToken=function(e,t,n){const r=e[t];let o="";if(r.hidden)return"";r.block&&-1!==r.nesting&&t&&e[t-1].hidden&&(o+="\n"),o+=(-1===r.nesting?"</":"<")+r.tag,o+=this.renderAttrs(r),0===r.nesting&&n.xhtmlOut&&(o+=" /");let i=!1;if(r.block&&(i=!0,1===r.nesting&&t+1<e.length)){const n=e[t+1];("inline"===n.type||n.hidden||-1===n.nesting&&n.tag===r.tag)&&(i=!1)}return o+=i?">\n":">",o},sb.prototype.renderInline=function(e,t,n){let r="";const o=this.rules;for(let i=0,s=e.length;i<s;i++){const s=e[i].type;void 0!==o[s]?r+=o[s](e,i,t,n,this):r+=this.renderToken(e,i,t)}return r},sb.prototype.renderInlineAsText=function(e,t,n){let r="";for(let o=0,i=e.length;o<i;o++)switch(e[o].type){case"text":case"html_inline":case"html_block":r+=e[o].content;break;case"image":r+=this.renderInlineAsText(e[o].children,t,n);break;case"softbreak":case"hardbreak":r+="\n"}return r},sb.prototype.render=function(e,t,n){let r="";const o=this.rules;for(let i=0,s=e.length;i<s;i++){const s=e[i].type;"inline"===s?r+=this.renderInline(e[i].children,t,n):void 0!==o[s]?r+=o[s](e,i,t,n,this):r+=this.renderToken(e,i,t,n)}return r};const ab=sb;function lb(){this.__rules__=[],this.__cache__=null}lb.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},lb.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},lb.prototype.at=function(e,t,n){const r=this.__find__(e),o=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=o.alt||[],this.__cache__=null},lb.prototype.before=function(e,t,n,r){const o=this.__find__(e),i=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},lb.prototype.after=function(e,t,n,r){const o=this.__find__(e),i=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},lb.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},lb.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(e){const r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},lb.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},lb.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(e){const r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},lb.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};const cb=lb;function ub(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}ub.prototype.attrIndex=function(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1},ub.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},ub.prototype.attrSet=function(e,t){const n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},ub.prototype.attrGet=function(e){const t=this.attrIndex(e);let n=null;return t>=0&&(n=this.attrs[t][1]),n},ub.prototype.attrJoin=function(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t};const db=ub;function hb(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}hb.prototype.Token=db;const fb=hb,pb=/\r\n?|\n/g,mb=/\0/g;function gb(e){return/^<a[>\s]/i.test(e)}function yb(e){return/^<\/a\s*>/i.test(e)}const vb=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,bb=/\((c|tm|r)\)/i,xb=/\((c|tm|r)\)/gi,Eb={c:"©",r:"®",tm:"™"};function wb(e,t){return Eb[t.toLowerCase()]}function Cb(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||(r.content=r.content.replace(xb,wb)),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}function Sb(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||vb.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}const kb=/['"]/,_b=/['"]/g;function Tb(e,t,n,r){e[t]||(e[t]=[]),e[t].push({pos:n,ch:r})}function Ab(e,t){let n;const r=[],o={};for(let i=0;i<e.length;i++){const s=e[i],a=e[i].level;for(n=r.length-1;n>=0&&!(r[n].level<=a);n--);if(r.length=n+1,"text"!==s.type)continue;const l=s.content;let c=0;const u=l.length;e:for(;c<u;){_b.lastIndex=c;const s=_b.exec(l);if(!s)break;let d=!0,h=!0;c=s.index+1;const f="'"===s[0];let p=32;if(s.index-1>=0)p=l.charCodeAt(s.index-1);else for(n=i-1;n>=0&&"softbreak"!==e[n].type&&"hardbreak"!==e[n].type;n--)if(e[n].content){p=e[n].content.charCodeAt(e[n].content.length-1);break}let m=32;if(c<u)m=l.charCodeAt(c);else for(n=i+1;n<e.length&&"softbreak"!==e[n].type&&"hardbreak"!==e[n].type;n++)if(e[n].content){m=e[n].content.charCodeAt(0);break}const g=Xv(p)||Yv(p),y=Xv(m)||Yv(m),v=Gv(p),b=Gv(m);if(b?d=!1:y&&(v||g||(d=!1)),v?h=!1:g&&(b||y||(h=!1)),34===m&&'"'===s[0]&&p>=48&&p<=57&&(h=d=!1),d&&h&&(d=g,h=y),d||h){if(h)for(n=r.length-1;n>=0;n--){let e=r[n];if(r[n].level<a)break;if(e.single===f&&r[n].level===a){let a,l;e=r[n],f?(a=t.md.options.quotes[2],l=t.md.options.quotes[3]):(a=t.md.options.quotes[0],l=t.md.options.quotes[1]),Tb(o,i,s.index,l),Tb(o,e.token,e.pos,a),r.length=n;continue e}}d?r.push({token:i,pos:s.index,single:f,level:a}):h&&f&&Tb(o,i,s.index,"’")}else f&&Tb(o,i,s.index,"’")}}Object.keys(o).forEach(function(t){e[t].content=function(e,t){let n="",r=0;t.sort((e,t)=>e.pos-t.pos);for(let o=0;o<t.length;o++){const i=t[o];n+=e.slice(r,i.pos)+i.ch,r=i.pos+1}return n+e.slice(r)}(e[t].content,o[t])})}const Db=[["normalize",function(e){let t;t=e.src.replace(pb,"\n"),t=t.replace(mb,"�"),e.src=t}],["block",function(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const r=t[n];"inline"===r.type&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}],["linkify",function(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if("inline"!==t[n].type||!e.md.linkify.pretest(t[n].content))continue;let r=t[n].children,o=0;for(let i=r.length-1;i>=0;i--){const s=r[i];if("link_close"!==s.type){if("html_inline"===s.type&&(gb(s.content)&&o>0&&o--,yb(s.content)&&o++),!(o>0)&&"text"===s.type&&e.md.linkify.test(s.content)){const o=s.content;let a=e.md.linkify.match(o);const l=[];let c=s.level,u=0;a.length>0&&0===a[0].index&&i>0&&"text_special"===r[i-1].type&&(a=a.slice(1));for(let t=0;t<a.length;t++){const n=a[t].url,r=e.md.normalizeLink(n);if(!e.md.validateLink(r))continue;let i=a[t].text;i=a[t].schema?"mailto:"!==a[t].schema||/^mailto:/i.test(i)?e.md.normalizeLinkText(i):e.md.normalizeLinkText("mailto:"+i).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+i).replace(/^http:\/\//,"");const s=a[t].index;if(s>u){const t=new e.Token("text","",0);t.content=o.slice(u,s),t.level=c,l.push(t)}const d=new e.Token("link_open","a",1);d.attrs=[["href",r]],d.level=c++,d.markup="linkify",d.info="auto",l.push(d);const h=new e.Token("text","",0);h.content=i,h.level=c,l.push(h);const f=new e.Token("link_close","a",-1);f.level=--c,f.markup="linkify",f.info="auto",l.push(f),u=a[t].lastIndex}if(u<o.length){const t=new e.Token("text","",0);t.content=o.slice(u),t.level=c,l.push(t)}t[n].children=r=Ov(r,i,l)}}else for(i--;r[i].level!==s.level&&"link_open"!==r[i].type;)i--}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(bb.test(e.tokens[t].content)&&Cb(e.tokens[t].children),vb.test(e.tokens[t].content)&&Sb(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&kb.test(e.tokens[t].content)&&Ab(e.tokens[t].children,e)}],["text_join",function(e){let t,n;const r=e.tokens,o=r.length;for(let e=0;e<o;e++){if("inline"!==r[e].type)continue;const o=r[e].children,i=o.length;for(t=0;t<i;t++)"text_special"===o[t].type&&(o[t].type="text");for(t=n=0;t<i;t++)"text"===o[t].type&&t+1<i&&"text"===o[t+1].type?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}}]];function Nb(){this.ruler=new cb;for(let e=0;e<Db.length;e++)this.ruler.push(Db[e][0],Db[e][1])}Nb.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},Nb.prototype.State=fb;const Rb=Nb;function Ob(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const o=this.src;for(let e=0,t=0,n=0,r=0,i=o.length,s=!1;t<i;t++){const a=o.charCodeAt(t);if(!s){if(Hv(a)){n++,9===a?r+=4-r%4:r++;continue}s=!0}10!==a&&t!==i-1||(10!==a&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),s=!1,n=0,r=0,e=t+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Ob.prototype.push=function(e,t,n){const r=new db(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},Ob.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},Ob.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},Ob.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&Hv(this.src.charCodeAt(e));e++);return e},Ob.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!Hv(this.src.charCodeAt(--e)))return e+1;return e},Ob.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},Ob.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},Ob.prototype.getLines=function(e,t,n,r){if(e>=t)return"";const o=new Array(t-e);for(let i=0,s=e;s<t;s++,i++){let e=0;const a=this.bMarks[s];let l,c=a;for(l=s+1<t||r?this.eMarks[s]+1:this.eMarks[s];c<l&&e<n;){const t=this.src.charCodeAt(c);if(Hv(t))9===t?e+=4-(e+this.bsCount[s])%4:e++;else{if(!(c-a<this.tShift[s]))break;e++}c++}o[i]=e>n?new Array(e-n+1).join(" ")+this.src.slice(c,l):this.src.slice(c,l)}return o.join("")},Ob.prototype.Token=db;const Fb=Ob;function Mb(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function Ib(e){const t=[],n=e.length;let r=0,o=e.charCodeAt(r),i=!1,s=0,a="";for(;r<n;)124===o&&(i?(a+=e.substring(s,r-1),s=r):(t.push(a+e.substring(s,r)),a="",s=r+1)),i=92===o,r++,o=e.charCodeAt(r);return t.push(a+e.substring(s)),t}function Lb(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(r++);return 42!==o&&45!==o&&43!==o||r<n&&!Hv(e.src.charCodeAt(r))?-1:r}function Pb(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let o=n;if(o+1>=r)return-1;let i=e.src.charCodeAt(o++);if(i<48||i>57)return-1;for(;;){if(o>=r)return-1;if(i=e.src.charCodeAt(o++),!(i>=48&&i<=57)){if(41===i||46===i)break;return-1}if(o-n>=10)return-1}return o<r&&(i=e.src.charCodeAt(o),!Hv(i))?-1:o}const jb="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",Vb="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Bb=new RegExp("^(?:"+jb+"|"+Vb+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),qb=new RegExp("^(?:"+jb+"|"+Vb+")"),$b=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+["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"].join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(qb.source+"\\s*$"),/^$/,!1]],zb=[["table",function(e,t,n,r){if(t+2>n)return!1;let o=t+1;if(e.sCount[o]<e.blkIndent)return!1;if(e.sCount[o]-e.blkIndent>=4)return!1;let i=e.bMarks[o]+e.tShift[o];if(i>=e.eMarks[o])return!1;const s=e.src.charCodeAt(i++);if(124!==s&&45!==s&&58!==s)return!1;if(i>=e.eMarks[o])return!1;const a=e.src.charCodeAt(i++);if(124!==a&&45!==a&&58!==a&&!Hv(a))return!1;if(45===s&&Hv(a))return!1;for(;i<e.eMarks[o];){const t=e.src.charCodeAt(i);if(124!==t&&45!==t&&58!==t&&!Hv(t))return!1;i++}let l=Mb(e,t+1),c=l.split("|");const u=[];for(let e=0;e<c.length;e++){const t=c[e].trim();if(!t){if(0===e||e===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?u.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?u.push("left"):u.push("")}if(l=Mb(e,t).trim(),-1===l.indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;c=Ib(l),c.length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop();const d=c.length;if(0===d||d!==u.length)return!1;if(r)return!0;const h=e.parentType;e.parentType="table";const f=e.md.block.ruler.getRules("blockquote"),p=[t,0];e.push("table_open","table",1).map=p,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<c.length;t++){const n=e.push("th_open","th",1);u[t]&&(n.attrs=[["style","text-align:"+u[t]]]);const r=e.push("inline","",0);r.content=c[t].trim(),r.children=[],e.push("th_close","th",-1)}let m;e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let g=0;for(o=t+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let r=!1;for(let t=0,i=f.length;t<i;t++)if(f[t](e,o,n,!0)){r=!0;break}if(r)break;if(l=Mb(e,o).trim(),!l)break;if(e.sCount[o]-e.blkIndent>=4)break;if(c=Ib(l),c.length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),g+=d-c.length,g>65536)break;o===t+2&&(e.push("tbody_open","tbody",1).map=m=[t+2,0]),e.push("tr_open","tr",1).map=[o,o+1];for(let t=0;t<d;t++){const n=e.push("td_open","td",1);u[t]&&(n.attrs=[["style","text-align:"+u[t]]]);const r=e.push("inline","",0);r.content=c[t]?c[t].trim():"",r.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return m&&(e.push("tbody_close","tbody",-1),m[1]=o),e.push("table_close","table",-1),p[1]=o,e.parentType=h,e.line=o,!0},["paragraph","reference"]],["code",function(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,o=r;for(;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;r++,o=r}e.line=o;const i=e.push("code_block","code",0);return i.content=e.getLines(t,o,4+e.blkIndent,!1)+"\n",i.map=[t,e.line],!0}],["fence",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(o+3>i)return!1;const s=e.src.charCodeAt(o);if(126!==s&&96!==s)return!1;let a=o;o=e.skipChars(o,s);let l=o-a;if(l<3)return!1;const c=e.src.slice(a,o),u=e.src.slice(o,i);if(96===s&&u.indexOf(String.fromCharCode(s))>=0)return!1;if(r)return!0;let d=t,h=!1;for(;!(d++,d>=n||(o=a=e.bMarks[d]+e.tShift[d],i=e.eMarks[d],o<i&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(o)===s&&!(e.sCount[d]-e.blkIndent>=4||(o=e.skipChars(o,s),o-a<l||(o=e.skipSpaces(o),o<i)))){h=!0;break}l=e.sCount[t],e.line=d+(h?1:0);const f=e.push("fence","code",0);return f.info=u,f.content=e.getLines(t+1,d,l,!0),f.markup=c,f.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];const s=e.lineMax;if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(o))return!1;if(r)return!0;const a=[],l=[],c=[],u=[],d=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let f,p=!1;for(f=t;f<n;f++){const t=e.sCount[f]<e.blkIndent;if(o=e.bMarks[f]+e.tShift[f],i=e.eMarks[f],o>=i)break;if(62===e.src.charCodeAt(o++)&&!t){let t,n,r=e.sCount[f]+1;32===e.src.charCodeAt(o)?(o++,r++,n=!1,t=!0):9===e.src.charCodeAt(o)?(t=!0,(e.bsCount[f]+r)%4==3?(o++,r++,n=!1):n=!0):t=!1;let s=r;for(a.push(e.bMarks[f]),e.bMarks[f]=o;o<i;){const t=e.src.charCodeAt(o);if(!Hv(t))break;9===t?s+=4-(s+e.bsCount[f]+(n?1:0))%4:s++,o++}p=o>=i,l.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(t?1:0),c.push(e.sCount[f]),e.sCount[f]=s-r,u.push(e.tShift[f]),e.tShift[f]=o-e.bMarks[f];continue}if(p)break;let r=!1;for(let t=0,o=d.length;t<o;t++)if(d[t](e,f,n,!0)){r=!0;break}if(r){e.lineMax=f,0!==e.blkIndent&&(a.push(e.bMarks[f]),l.push(e.bsCount[f]),u.push(e.tShift[f]),c.push(e.sCount[f]),e.sCount[f]-=e.blkIndent);break}a.push(e.bMarks[f]),l.push(e.bsCount[f]),u.push(e.tShift[f]),c.push(e.sCount[f]),e.sCount[f]=-1}const m=e.blkIndent;e.blkIndent=0;const g=e.push("blockquote_open","blockquote",1);g.markup=">";const y=[t,0];g.map=y,e.md.block.tokenize(e,t,f),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=s,e.parentType=h,y[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=a[n],e.tShift[n+t]=u[n],e.sCount[n+t]=c[n],e.bsCount[n+t]=l[n];return e.blkIndent=m,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,n,r){const o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(i++);if(42!==s&&45!==s&&95!==s)return!1;let a=1;for(;i<o;){const t=e.src.charCodeAt(i++);if(t!==s&&!Hv(t))return!1;t===s&&a++}if(a<3)return!1;if(r)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(a+1).join(String.fromCharCode(s)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,n,r){let o,i,s,a,l=t,c=!0;if(e.sCount[l]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let u,d,h,f=!1;if(r&&"paragraph"===e.parentType&&e.sCount[l]>=e.blkIndent&&(f=!0),(h=Pb(e,l))>=0){if(u=!0,s=e.bMarks[l]+e.tShift[l],d=Number(e.src.slice(s,h-1)),f&&1!==d)return!1}else{if(!((h=Lb(e,l))>=0))return!1;u=!1}if(f&&e.skipSpaces(h)>=e.eMarks[l])return!1;if(r)return!0;const p=e.src.charCodeAt(h-1),m=e.tokens.length;u?(a=e.push("ordered_list_open","ol",1),1!==d&&(a.attrs=[["start",d]])):a=e.push("bullet_list_open","ul",1);const g=[l,0];a.map=g,a.markup=String.fromCharCode(p);let y=!1;const v=e.md.block.ruler.getRules("list"),b=e.parentType;for(e.parentType="list";l<n;){i=h,o=e.eMarks[l];const t=e.sCount[l]+h-(e.bMarks[l]+e.tShift[l]);let r=t;for(;i<o;){const t=e.src.charCodeAt(i);if(9===t)r+=4-(r+e.bsCount[l])%4;else{if(32!==t)break;r++}i++}const d=i;let f;f=d>=o?1:r-t,f>4&&(f=1);const m=t+f;a=e.push("list_item_open","li",1),a.markup=String.fromCharCode(p);const g=[l,0];a.map=g,u&&(a.info=e.src.slice(s,h-1));const b=e.tight,x=e.tShift[l],E=e.sCount[l],w=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=m,e.tight=!0,e.tShift[l]=d-e.bMarks[l],e.sCount[l]=r,d>=o&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),e.tight&&!y||(c=!1),y=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=w,e.tShift[l]=x,e.sCount[l]=E,e.tight=b,a=e.push("list_item_close","li",-1),a.markup=String.fromCharCode(p),l=e.line,g[1]=l,l>=n)break;if(e.sCount[l]<e.blkIndent)break;if(e.sCount[l]-e.blkIndent>=4)break;let C=!1;for(let t=0,r=v.length;t<r;t++)if(v[t](e,l,n,!0)){C=!0;break}if(C)break;if(u){if(h=Pb(e,l),h<0)break;s=e.bMarks[l]+e.tShift[l]}else if(h=Lb(e,l),h<0)break;if(p!==e.src.charCodeAt(h-1))break}return a=u?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1),a.markup=String.fromCharCode(p),g[1]=l,e.line=l,e.parentType=b,c&&function(e,t){const n=e.level+2;for(let r=t+2,o=e.tokens.length-2;r<o;r++)e.tokens[r].level===n&&"paragraph_open"===e.tokens[r].type&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}(e,m),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],s=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(o))return!1;function a(t){const n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){const r=e.md.block.ruler.getRules("reference"),o=e.parentType;e.parentType="reference";let i=!1;for(let o=0,s=r.length;o<s;o++)if(r[o](e,t,n,!0)){i=!0;break}if(e.parentType=o,i)return null}const o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];return e.src.slice(o,i+1)}let l=e.src.slice(o,i+1);i=l.length;let c=-1;for(o=1;o<i;o++){const e=l.charCodeAt(o);if(91===e)return!1;if(93===e){c=o;break}if(10===e){const e=a(s);null!==e&&(l+=e,i=l.length,s++)}else if(92===e&&(o++,o<i&&10===l.charCodeAt(o))){const e=a(s);null!==e&&(l+=e,i=l.length,s++)}}if(c<0||58!==l.charCodeAt(c+1))return!1;for(o=c+2;o<i;o++){const e=l.charCodeAt(o);if(10===e){const e=a(s);null!==e&&(l+=e,i=l.length,s++)}else if(!Hv(e))break}const u=e.md.helpers.parseLinkDestination(l,o,i);if(!u.ok)return!1;const d=e.md.normalizeLink(u.str);if(!e.md.validateLink(d))return!1;o=u.pos;const h=o,f=s,p=o;for(;o<i;o++){const e=l.charCodeAt(o);if(10===e){const e=a(s);null!==e&&(l+=e,i=l.length,s++)}else if(!Hv(e))break}let m,g=e.md.helpers.parseLinkTitle(l,o,i);for(;g.can_continue;){const t=a(s);if(null===t)break;l+=t,o=i,i=l.length,s++,g=e.md.helpers.parseLinkTitle(l,o,i,g)}for(o<i&&p!==o&&g.ok?(m=g.str,o=g.pos):(m="",o=h,s=f);o<i&&Hv(l.charCodeAt(o));)o++;if(o<i&&10!==l.charCodeAt(o)&&m)for(m="",o=h,s=f;o<i&&Hv(l.charCodeAt(o));)o++;if(o<i&&10!==l.charCodeAt(o))return!1;const y=Jv(l.slice(1,c));return!!y&&(r||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[y]&&(e.env.references[y]={title:m,href:d}),e.line=s),!0)}],["html_block",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(o))return!1;let s=e.src.slice(o,i),a=0;for(;a<$b.length&&!$b[a][0].test(s);a++);if(a===$b.length)return!1;if(r)return $b[a][2];let l=t+1;const c=$b[a][1].test("");if(!$b[a][1].test(s))for(;l<n&&(!(e.sCount[l]<e.blkIndent)||!c&&e.isEmpty(l));l++)if(o=e.bMarks[l]+e.tShift[l],i=e.eMarks[l],s=e.src.slice(o,i),$b[a][1].test(s)){0!==s.length&&l++;break}e.line=l;const u=e.push("html_block","",0);return u.map=[t,l],u.content=e.getLines(t,l,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.src.charCodeAt(o);if(35!==s||o>=i)return!1;let a=1;for(s=e.src.charCodeAt(++o);35===s&&o<i&&a<=6;)a++,s=e.src.charCodeAt(++o);if(a>6||o<i&&!Hv(s))return!1;if(r)return!0;i=e.skipSpacesBack(i,o);const l=e.skipCharsBack(i,35,o);l>o&&Hv(e.src.charCodeAt(l-1))&&(i=l),e.line=t+1;const c=e.push("heading_open","h"+String(a),1);c.markup="########".slice(0,a),c.map=[t,e.line];const u=e.push("inline","",0);return u.content=eb(e.src.slice(o,i)),u.map=[t,e.line],u.children=[],e.push("heading_close","h"+String(a),-1).markup="########".slice(0,a),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let i,s=0,a=t+1;for(;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3)continue;if(e.sCount[a]>=e.blkIndent){let t=e.bMarks[a]+e.tShift[a];const n=e.eMarks[a];if(t<n&&(i=e.src.charCodeAt(t),(45===i||61===i)&&(t=e.skipChars(t,i),t=e.skipSpaces(t),t>=n))){s=61===i?1:2;break}}if(e.sCount[a]<0)continue;let t=!1;for(let o=0,i=r.length;o<i;o++)if(r[o](e,a,n,!0)){t=!0;break}if(t)break}if(!s)return e.parentType=o,!1;const l=eb(e.getLines(t,a,e.blkIndent,!1));e.line=a+1;const c=e.push("heading_open","h"+String(s),1);c.markup=String.fromCharCode(i),c.map=[t,e.line];const u=e.push("inline","",0);return u.content=l,u.map=[t,e.line-1],u.children=[],e.push("heading_close","h"+String(s),-1).markup=String.fromCharCode(i),e.parentType=o,!0}],["paragraph",function(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),o=e.parentType;let i=t+1;for(e.parentType="paragraph";i<n&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3)continue;if(e.sCount[i]<0)continue;let t=!1;for(let o=0,s=r.length;o<s;o++)if(r[o](e,i,n,!0)){t=!0;break}if(t)break}const s=eb(e.getLines(t,i,e.blkIndent,!1));e.line=i,e.push("paragraph_open","p",1).map=[t,e.line];const a=e.push("inline","",0);return a.content=s,a.map=[t,e.line],a.children=[],e.push("paragraph_close","p",-1),e.parentType=o,!0}]];function Kb(){this.ruler=new cb;for(let e=0;e<zb.length;e++)this.ruler.push(zb[e][0],zb[e][1],{alt:(zb[e][2]||[]).slice()})}Kb.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),o=r.length,i=e.md.options.maxNesting;let s=t,a=!1;for(;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n))&&!(e.sCount[s]<e.blkIndent);){if(e.level>=i){e.line=n;break}const t=e.line;let l=!1;for(let i=0;i<o;i++)if(l=r[i](e,s,n,!1),l){if(t>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),s=e.line,s<n&&e.isEmpty(s)&&(a=!0,s++,e.line=s)}},Kb.prototype.parse=function(e,t,n,r){if(!e)return;const o=new this.State(e,t,n,r);this.tokenize(o,o.line,o.lineMax)},Kb.prototype.State=Fb;const Ub=Kb;function Wb(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}Wb.prototype.pushPending=function(){const e=new db("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Wb.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new db(e,t,n);let o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r},Wb.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e);let o;if(0===e)o=32;else if(1===e)o=this.src.charCodeAt(0),55296==(63488&o)&&(o=65533);else if(o=this.src.charCodeAt(e-1),56320==(64512&o)){const t=this.src.charCodeAt(e-2);o=55296==(64512&t)?65536+(t-55296<<10)+(o-56320):65533}else 55296==(64512&o)&&(o=65533);let i=e;for(;i<n&&this.src.charCodeAt(i)===r;)i++;const s=i-e;let a=i<n?this.src.charCodeAt(i):32;if(55296==(64512&a)){const e=this.src.charCodeAt(i+1);a=56320==(64512&e)?65536+(a-55296<<10)+(e-56320):65533}else 56320==(64512&a)&&(a=65533);const l=Xv(o)||Yv(o),c=Xv(a)||Yv(a),u=Gv(o),d=Gv(a),h=!d&&(!c||u||l),f=!u&&(!l||d||c);return{can_open:h&&(t||!f||l),can_close:f&&(t||!h||c),length:s}},Wb.prototype.Token=db;const Hb=Wb;function Gb(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}const Qb=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,Yb=[];for(let e=0;e<256;e++)Yb.push(0);function Xb(e,t){let n;const r=[],o=t.length;for(let i=0;i<o;i++){const o=t[i];if(126!==o.marker)continue;if(-1===o.end)continue;const s=t[o.end];n=e.tokens[o.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[s.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="","text"===e.tokens[s.token-1].type&&"~"===e.tokens[s.token-1].content&&r.push(s.token-1)}for(;r.length;){const t=r.pop();let o=t+1;for(;o<e.tokens.length&&"s_close"===e.tokens[o].type;)o++;o--,t!==o&&(n=e.tokens[o],e.tokens[o]=e.tokens[t],e.tokens[t]=n)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Yb[e.charCodeAt(0)]=1});const Jb={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(126!==r)return!1;const o=e.scanDelims(e.pos,!0);let i=o.length;const s=String.fromCharCode(r);if(i<2)return!1;let a;i%2&&(a=e.push("text","",0),a.content=s,i--);for(let t=0;t<i;t+=2)a=e.push("text","",0),a.content=s+s,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Xb(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Xb(e,t[r].delimiters)}};function Zb(e,t){for(let n=t.length-1;n>=0;n--){const r=t[n];if(95!==r.marker&&42!==r.marker)continue;if(-1===r.end)continue;const o=t[r.end],i=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===o.token+1,s=String.fromCharCode(r.marker),a=e.tokens[r.token];a.type=i?"strong_open":"em_open",a.tag=i?"strong":"em",a.nesting=1,a.markup=i?s+s:s,a.content="";const l=e.tokens[o.token];l.type=i?"strong_close":"em_close",l.tag=i?"strong":"em",l.nesting=-1,l.markup=i?s+s:s,l.content="",i&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}const ex={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(95!==r&&42!==r)return!1;const o=e.scanDelims(e.pos,42===r);for(let t=0;t<o.length;t++)e.push("text","",0).content=String.fromCharCode(r),e.delimiters.push({marker:r,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Zb(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Zb(e,t[r].delimiters)}},tx=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,nx=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/,rx=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,ox=/^&([a-z][a-z0-9]{1,31});/i;function ix(e){const t={},n=e.length;if(!n)return;let r=0,o=-2;const i=[];for(let s=0;s<n;s++){const n=e[s];if(i.push(0),e[r].marker===n.marker&&o===n.token-1||(r=s),o=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);const a=t[n.marker][(n.open?3:0)+n.length%3];let l=r-i[r]-1,c=l;for(;l>a;l-=i[l]+1){const t=e[l];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3==0&&n.length%3==0||(r=!0)),!r){const r=l>0&&!e[l-1].open?i[l-1]+1:0;i[s]=s-l+r,i[l]=r,n.open=!1,t.end=s,t.close=!1,c=-1,o=-2;break}}}-1!==c&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=c)}}const sx=[["text",function(e,t){let n=e.pos;for(;n<e.posMax&&!Gb(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["linkify",function(e,t){if(!e.md.options.linkify)return!1;if(e.linkLevel>0)return!1;const n=e.pos;if(n+3>e.posMax)return!1;if(58!==e.src.charCodeAt(n))return!1;if(47!==e.src.charCodeAt(n+1))return!1;if(47!==e.src.charCodeAt(n+2))return!1;const r=e.pending.match(Qb);if(!r)return!1;const o=r[1],i=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!i)return!1;let s=i.url;if(s.length<=o.length)return!1;let a=s.length;for(;a>0&&42===s.charCodeAt(a-1);)a--;a!==s.length&&(s=s.slice(0,a));const l=e.md.normalizeLink(s);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const t=e.push("link_open","a",1);t.attrs=[["href",l]],t.markup="linkify",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(s);const n=e.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return e.pos+=s.length-o.length,!0}],["newline",function(e,t){let n=e.pos;if(10!==e.src.charCodeAt(n))return!1;const r=e.pending.length-1,o=e.posMax;if(!t)if(r>=0&&32===e.pending.charCodeAt(r))if(r>=1&&32===e.pending.charCodeAt(r-1)){let t=r-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<o&&Hv(e.src.charCodeAt(n));)n++;return e.pos=n,!0}],["escape",function(e,t){let n=e.pos;const r=e.posMax;if(92!==e.src.charCodeAt(n))return!1;if(n++,n>=r)return!1;let o=e.src.charCodeAt(n);if(10===o){for(t||e.push("hardbreak","br",0),n++;n<r&&(o=e.src.charCodeAt(n),Hv(o));)n++;return e.pos=n,!0}if(32===o){if(!t){const t=e.push("text_special","",0);t.content="\\",t.markup="\\",t.info="escape"}return e.pos=n,!0}let i=e.src[n];if(o>=55296&&o<=56319&&n+1<r){const t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(i+=e.src[n+1],n++)}const s="\\"+i;if(!t){const t=e.push("text_special","",0);o<256&&0!==Yb[o]?t.content=i:t.content=s,t.markup=s,t.info="escape"}return e.pos=n+1,!0}],["backticks",function(e,t){let n=e.pos;if(96!==e.src.charCodeAt(n))return!1;const r=n;n++;const o=e.posMax;for(;n<o&&96===e.src.charCodeAt(n);)n++;const i=e.src.slice(r,n),s=i.length;if(e.backticksScanned&&(e.backticks[s]||0)<=r)return t||(e.pending+=i),e.pos+=s,!0;let a,l=n;for(;-1!==(a=e.src.indexOf("`",l));){for(l=a+1;l<o&&96===e.src.charCodeAt(l);)l++;const r=l-a;if(r===s){if(!t){const t=e.push("code_inline","code",0);t.markup=i,t.content=e.src.slice(n,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[r]=a}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=s,!0}],["strikethrough",Jb.tokenize],["emphasis",ex.tokenize],["link",function(e,t){let n,r,o,i,s="",a="",l=e.pos,c=!0;if(91!==e.src.charCodeAt(e.pos))return!1;const u=e.pos,d=e.posMax,h=e.pos+1,f=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(f<0)return!1;let p=f+1;if(p<d&&40===e.src.charCodeAt(p)){for(c=!1,p++;p<d&&(n=e.src.charCodeAt(p),Hv(n)||10===n);p++);if(p>=d)return!1;if(l=p,o=e.md.helpers.parseLinkDestination(e.src,p,e.posMax),o.ok){for(s=e.md.normalizeLink(o.str),e.md.validateLink(s)?p=o.pos:s="",l=p;p<d&&(n=e.src.charCodeAt(p),Hv(n)||10===n);p++);if(o=e.md.helpers.parseLinkTitle(e.src,p,e.posMax),p<d&&l!==p&&o.ok)for(a=o.str,p=o.pos;p<d&&(n=e.src.charCodeAt(p),Hv(n)||10===n);p++);}(p>=d||41!==e.src.charCodeAt(p))&&(c=!0),p++}if(c){if(void 0===e.env.references)return!1;if(p<d&&91===e.src.charCodeAt(p)?(l=p+1,p=e.md.helpers.parseLinkLabel(e,p),p>=0?r=e.src.slice(l,p++):p=f+1):p=f+1,r||(r=e.src.slice(h,f)),i=e.env.references[Jv(r)],!i)return e.pos=u,!1;s=i.href,a=i.title}if(!t){e.pos=h,e.posMax=f;const t=[["href",s]];e.push("link_open","a",1).attrs=t,a&&t.push(["title",a]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=p,e.posMax=d,!0}],["image",function(e,t){let n,r,o,i,s,a,l,c,u="";const d=e.pos,h=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;const f=e.pos+2,p=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(p<0)return!1;if(i=p+1,i<h&&40===e.src.charCodeAt(i)){for(i++;i<h&&(n=e.src.charCodeAt(i),Hv(n)||10===n);i++);if(i>=h)return!1;for(c=i,a=e.md.helpers.parseLinkDestination(e.src,i,e.posMax),a.ok&&(u=e.md.normalizeLink(a.str),e.md.validateLink(u)?i=a.pos:u=""),c=i;i<h&&(n=e.src.charCodeAt(i),Hv(n)||10===n);i++);if(a=e.md.helpers.parseLinkTitle(e.src,i,e.posMax),i<h&&c!==i&&a.ok)for(l=a.str,i=a.pos;i<h&&(n=e.src.charCodeAt(i),Hv(n)||10===n);i++);else l="";if(i>=h||41!==e.src.charCodeAt(i))return e.pos=d,!1;i++}else{if(void 0===e.env.references)return!1;if(i<h&&91===e.src.charCodeAt(i)?(c=i+1,i=e.md.helpers.parseLinkLabel(e,i),i>=0?o=e.src.slice(c,i++):i=p+1):i=p+1,o||(o=e.src.slice(f,p)),s=e.env.references[Jv(o)],!s)return e.pos=d,!1;u=s.href,l=s.title}if(!t){r=e.src.slice(f,p);const t=[];e.md.inline.parse(r,e.md,e.env,t);const n=e.push("image","img",0),o=[["src",u],["alt",""]];n.attrs=o,n.children=t,n.content=r,l&&o.push(["title",l])}return e.pos=i,e.posMax=h,!0}],["autolink",function(e,t){let n=e.pos;if(60!==e.src.charCodeAt(n))return!1;const r=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const t=e.src.charCodeAt(n);if(60===t)return!1;if(62===t)break}const i=e.src.slice(r+1,n);if(nx.test(i)){const n=e.md.normalizeLink(i);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(i);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=i.length+2,!0}if(tx.test(i)){const n=e.md.normalizeLink("mailto:"+i);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(i);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=i.length+2,!0}return!1}],["html_inline",function(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(60!==e.src.charCodeAt(r)||r+2>=n)return!1;const o=e.src.charCodeAt(r+1);if(33!==o&&63!==o&&47!==o&&!function(e){const t=32|e;return t>=97&&t<=122}(o))return!1;const i=e.src.slice(r).match(Bb);if(!i)return!1;if(!t){const t=e.push("html_inline","",0);t.content=i[0],s=t.content,/^<a[>\s]/i.test(s)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--}var s;return e.pos+=i[0].length,!0}],["entity",function(e,t){const n=e.pos,r=e.posMax;if(38!==e.src.charCodeAt(n))return!1;if(n+1>=r)return!1;if(35===e.src.charCodeAt(n+1)){const r=e.src.slice(n).match(rx);if(r){if(!t){const t="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push("text_special","",0);n.content=Fv(t)?Mv(t):Mv(65533),n.markup=r[0],n.info="entity"}return e.pos+=r[0].length,!0}}else{const r=e.src.slice(n).match(ox);if(r){const n=(o=r[0],wv(o,mv.Strict));if(n!==r[0]){if(!t){const t=e.push("text_special","",0);t.content=n,t.markup=r[0],t.info="entity"}return e.pos+=r[0].length,!0}}}var o;return!1}]],ax=[["balance_pairs",function(e){const t=e.tokens_meta,n=e.tokens_meta.length;ix(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&ix(t[e].delimiters)}],["strikethrough",Jb.postProcess],["emphasis",ex.postProcess],["fragments_join",function(e){let t,n,r=0;const o=e.tokens,i=e.tokens.length;for(t=n=0;t<i;t++)o[t].nesting<0&&r--,o[t].level=r,o[t].nesting>0&&r++,"text"===o[t].type&&t+1<i&&"text"===o[t+1].type?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}]];function lx(){this.ruler=new cb;for(let e=0;e<sx.length;e++)this.ruler.push(sx[e][0],sx[e][1]);this.ruler2=new cb;for(let e=0;e<ax.length;e++)this.ruler2.push(ax[e][0],ax[e][1])}lx.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,o=e.md.options.maxNesting,i=e.cache;if(void 0!==i[t])return void(e.pos=i[t]);let s=!1;if(e.level<o){for(let o=0;o<r;o++)if(e.level++,s=n[o](e,!0),e.level--,s){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,i[t]=e.pos},lx.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,o=e.md.options.maxNesting;for(;e.pos<r;){const i=e.pos;let s=!1;if(e.level<o)for(let r=0;r<n;r++)if(s=t[r](e,!1),s){if(i>=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(s){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},lx.prototype.parse=function(e,t,n,r){const o=new this.State(e,t,n,r);this.tokenize(o);const i=this.ruler2.getRules(""),s=i.length;for(let e=0;e<s;e++)i[e](o)},lx.prototype.State=Hb;const cx=lx;function ux(e){const t={};e=e||{},t.src_Any=rv.source,t.src_Cc=ov.source,t.src_Z=sv.source,t.src_P=tv.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter=`(?:(?!${n}|${t.src_ZPCc})${t.src_Any})`,t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth=`(?:(?:(?!${t.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`,t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator=`(?=$|${n}|${t.src_ZPCc})(?!${e["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${t.src_ZPCc}))`,t.src_path=`(?:[/?#](?:(?!${t.src_ZCc}|${n}|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!${t.src_ZCc}|\\]).)*\\]|\\((?:(?!${t.src_ZCc}|[)]).)*\\)|\\{(?:(?!${t.src_ZCc}|[}]).)*\\}|\\"(?:(?!${t.src_ZCc}|["]).)+\\"|\\'(?:(?!${t.src_ZCc}|[']).)+\\'|\\'(?=${t.src_pseudo_letter}|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!${t.src_ZCc}|[.]|$)|`+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+`,(?!${t.src_ZCc}|$)|`+`;(?!${t.src_ZCc}|$)|`+`\\!+(?!${t.src_ZCc}|[!]|$)|`+`\\?(?!${t.src_ZCc}|[?]|$))+|\\/)?`,t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]{0,63}',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+`${t.src_pseudo_letter}{1,63})`,t.src_domain="(?:"+t.src_xn+"|"+`(?:${t.src_pseudo_letter})|`+`(?:${t.src_pseudo_letter}(?:-|${t.src_pseudo_letter}){0,61}${t.src_pseudo_letter}))`,t.src_host=`(?:(?:(?:(?:${t.src_domain})\\.)*${t.src_domain}))`,t.tpl_host_fuzzy="(?:"+t.src_ip4+"|"+`(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%)))`,t.tpl_host_no_ip_fuzzy=`(?:(?:(?:${t.src_domain})\\.)+(?:%TLDS%))`,t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=`localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:${t.src_ZPCc}|>|$))`,t.tpl_email_fuzzy=`(^|${n}|"|\\(|${t.src_ZCc})(${t.src_email_name}@${t.tpl_host_fuzzy_strict})`,t.tpl_link_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${t.src_ZPCc}))((?![$+<=>^\`||])${t.tpl_host_port_fuzzy_strict}${t.src_path})`,t.tpl_link_no_ip_fuzzy=`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${t.src_ZPCc}))((?![$+<=>^\`||])${t.tpl_host_port_no_ip_fuzzy_strict}${t.src_path})`,t}function dx(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function hx(e){return Object.prototype.toString.call(e)}function fx(e){return"[object Function]"===hx(e)}function px(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}Object.defineProperty(ux,"name",{value:"default",configurable:!0});const mx={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},gx={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp(`^\\/\\/${n.re.src_auth}${n.re.src_host_port_strict}${n.re.src_path}`,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+`(?:localhost|(?:(?:${n.re.src_domain})\\.)+${n.re.src_domain_root})`+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp(`^${n.re.src_email_name}@${n.re.src_host_strict}`,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},yx="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function vx(e){const t=e.re=ux(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(r(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(r(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(r(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const o=[];function i(e,t){throw new Error(`(LinkifyIt) Invalid schema "${e}": ${t}`)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){const n=e.__schemas__[t];if(null===n)return;const r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===hx(n))return"[object RegExp]"!==hx(n.validate)?fx(n.validate)?r.validate=n.validate:i(t,n):r.validate=function(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(fx(n.normalize)?r.normalize=n.normalize:n.normalize?i(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===hx(e)}(n)?i(t,n):o.push(t)}),o.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};const s=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(px).join("|");e.re.schema_test=RegExp(`(^|(?!_)(?:[><|]|${t.src_ZPCc}))(${s})`,"i"),e.re.schema_search=RegExp(`(^|(?!_)(?:[><|]|${t.src_ZPCc}))(${s})`,"ig"),e.re.schema_at_start=RegExp(`^${e.re.schema_search.source}`,"i"),e.re.pretest=RegExp(`(${e.re.schema_test.source})|(${e.re.host_fuzzy_test.source})|@`,"i")}function bx(e,t,n,r){const o=e.slice(n,r);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=r,this.raw=o,this.text=o,this.url=o}function xx(e,t){if(!(this instanceof xx))return new xx(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||mx.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=dx({},mx,t),this.__schemas__=dx({},gx,e),this.__compiled__={},this.__tlds__=yx,this.__tlds_replaced__=!1,this.re={},vx(this)}xx.prototype.add=function(e,t){return this.__schemas__[e]=t,vx(this),this},xx.prototype.set=function(e){return this.__opts__=dx(this.__opts__,e),this},xx.prototype.test=function(e){if(!e.length)return!1;let t,n;if(this.re.schema_test.test(e))for(n=this.re.schema_search,n.lastIndex=0;null!==(t=n.exec(e));)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0;return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&e.search(this.re.host_fuzzy_test)>=0&&null!==e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))||!!(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==e.match(this.re.email_fuzzy))},xx.prototype.pretest=function(e){return this.re.pretest.test(e)},xx.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},xx.prototype.match=function(e){const t=[],n=[],r=[],o=[];let i,s,a;function l(e,t){return e?t?e.index!==t.index?e.index<t.index?e:t:e.lastIndex>=t.lastIndex?e:t:e:t}if(!e.length)return null;if(this.re.schema_test.test(e))for(a=this.re.schema_search,a.lastIndex=0;null!==(i=a.exec(e));)s=this.testSchemaAt(e,i[2],a.lastIndex),s&&n.push({schema:i[2],index:i.index+i[1].length,lastIndex:i.index+i[0].length+s});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(a=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,a.lastIndex=0;null!==(i=a.exec(e));)r.push({schema:"",index:i.index+i[1].length,lastIndex:i.index+i[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(a=this.re.email_fuzzy_global,a.lastIndex=0;null!==(i=a.exec(e));)o.push({schema:"mailto:",index:i.index+i[1].length,lastIndex:i.index+i[0].length});const c=[0,0,0];let u=0;for(;;){const i=[n[c[0]],o[c[1]],r[c[2]]],s=l(l(i[0],i[1]),i[2]);if(!s)break;if(s===i[0]?c[0]++:s===i[1]?c[1]++:c[2]++,s.index<u)continue;const a=new bx(e,s.schema,s.index,s.lastIndex);this.__compiled__[a.schema].normalize(a,this),t.push(a),u=s.lastIndex}return t.length?t:null},xx.prototype.matchAtStart=function(e){if(!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;const r=new bx(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__compiled__[r.schema].normalize(r,this),r},xx.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),vx(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,vx(this),this)},xx.prototype.normalize=function(e){e.schema||(e.url=`http://${e.url}`),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url=`mailto:${e.url}`)},xx.prototype.onCompile=function(){};const Ex=xx,wx=2147483647,Cx=36,Sx=/^xn--/,kx=/[^\0-\x7F]/,_x=/[\x2E\u3002\uFF0E\uFF61]/g,Tx={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ax=Math.floor,Dx=String.fromCharCode;function Nx(e){throw new RangeError(Tx[e])}function Rx(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const o=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(_x,".")).split("."),t).join(".");return r+o}function Ox(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&o)<<10)+(1023&r)+65536):(t.push(o),n--)}else t.push(o)}return t}const Fx=function(e){return e>=48&&e<58?e-48+26:e>=65&&e<91?e-65:e>=97&&e<123?e-97:Cx},Mx=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},Ix=function(e,t,n){let r=0;for(e=n?Ax(e/700):e>>1,e+=Ax(e/t);e>455;r+=Cx)e=Ax(e/35);return Ax(r+36*e/(e+38))},Lx=function(e){const t=[],n=e.length;let r=0,o=128,i=72,s=e.lastIndexOf("-");s<0&&(s=0);for(let n=0;n<s;++n)e.charCodeAt(n)>=128&&Nx("not-basic"),t.push(e.charCodeAt(n));for(let a=s>0?s+1:0;a<n;){const s=r;for(let t=1,o=Cx;;o+=Cx){a>=n&&Nx("invalid-input");const s=Fx(e.charCodeAt(a++));s>=Cx&&Nx("invalid-input"),s>Ax((wx-r)/t)&&Nx("overflow"),r+=s*t;const l=o<=i?1:o>=i+26?26:o-i;if(s<l)break;const c=Cx-l;t>Ax(wx/c)&&Nx("overflow"),t*=c}const l=t.length+1;i=Ix(r-s,l,0==s),Ax(r/l)>wx-o&&Nx("overflow"),o+=Ax(r/l),r%=l,t.splice(r++,0,o)}return String.fromCodePoint(...t)},Px=function(e){const t=[],n=(e=Ox(e)).length;let r=128,o=0,i=72;for(const n of e)n<128&&t.push(Dx(n));const s=t.length;let a=s;for(s&&t.push("-");a<n;){let n=wx;for(const t of e)t>=r&&t<n&&(n=t);const l=a+1;n-r>Ax((wx-o)/l)&&Nx("overflow"),o+=(n-r)*l,r=n;for(const n of e)if(n<r&&++o>wx&&Nx("overflow"),n===r){let e=o;for(let n=Cx;;n+=Cx){const r=n<=i?1:n>=i+26?26:n-i;if(e<r)break;const o=e-r,s=Cx-r;t.push(Dx(Mx(r+o%s,0))),e=Ax(o/s)}t.push(Dx(Mx(e,0))),i=Ix(o,l,a===s),o=0,++a}++o,++r}return t.join("")},jx=function(e){return Rx(e,function(e){return kx.test(e)?"xn--"+Px(e):e})},Vx=function(e){return Rx(e,function(e){return Sx.test(e)?Lx(e.slice(4).toLowerCase()):e})},Bx={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},qx=/^(vbscript|javascript|file|data):/,$x=/^data:image\/(gif|png|jpeg|webp);/;function zx(e){const t=e.trim().toLowerCase();return!qx.test(t)||$x.test(t)}const Kx=["http:","https:","mailto:"];function Ux(e){const t=ev(e,!0);if(t.hostname&&(!t.protocol||Kx.indexOf(t.protocol)>=0))try{t.hostname=jx(t.hostname)}catch(e){}return By(qy(t))}function Wx(e){const t=ev(e,!0);if(t.hostname&&(!t.protocol||Kx.indexOf(t.protocol)>=0))try{t.hostname=Vx(t.hostname)}catch(e){}return Py(qy(t),Py.defaultChars+"%")}function Hx(e,t){if(!(this instanceof Hx))return new Hx(e,t);t||Av(e)||(t=e||{},e="default"),this.inline=new cx,this.block=new Ub,this.core=new Rb,this.renderer=new ab,this.linkify=new Ex,this.validateLink=zx,this.normalizeLink=Ux,this.normalizeLinkText=Wx,this.utils=i,this.helpers=Rv({},s),this.options={},this.configure(e),t&&this.set(t)}Hx.prototype.set=function(e){return Rv(this.options,e),this},Hx.prototype.configure=function(e){const t=this;if(Av(e)){const t=e;if(!(e=Bx[t]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},Hx.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},Hx.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},Hx.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Hx.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Hx.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Hx.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Hx.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const Gx=new Hx({breaks:!1,linkify:!0}),Qx=(0,c.forwardRef)((e,t)=>{const n=(0,l.c)(18);let r,o,i,s;n[0]!==e?(({children:r,onlyShowFirstChild:o,type:s,...i}=e),n[0]=e,n[1]=r,n[2]=o,n[3]=i,n[4]=s):(r=n[1],o=n[2],i=n[3],s=n[4]);const c=`graphiql-markdown-${s}`,u=o&&"graphiql-markdown-preview";let d,h,f,p;return n[5]!==i.className||n[6]!==c||n[7]!==u?(d=(0,Xt.$)(c,u,i.className),n[5]=i.className,n[6]=c,n[7]=u,n[8]=d):d=n[8],n[9]!==r?(h=Gx.render(r),n[9]=r,n[10]=h):h=n[10],n[11]!==h?(f={__html:h},n[11]=h,n[12]=f):f=n[12],n[13]!==i||n[14]!==t||n[15]!==d||n[16]!==f?(p=(0,a.jsx)("div",{...i,ref:t,className:d,dangerouslySetInnerHTML:f}),n[13]=i,n[14]=t,n[15]=d,n[16]=f,n[17]=p):p=n[17],p});Qx.displayName="MarkdownContent";var Yx=n(37190);const Xx=e=>{const t=(0,l.c)(12),{field:n}=e;if(!("defaultValue"in n)||void 0===n.defaultValue)return null;const r=n.defaultValue,o=n.type;let i,s,c,u,d,h;if(t[0]!==n.defaultValue||t[1]!==n.type){u=Symbol.for("react.early_return_sentinel");{const e=(0,Yx.K)(r,o);e?(c=" = ",i="graphiql-doc-explorer-default-value",s=(e=>e?(0,E.y)(e):"")(e)):u=null}t[0]=n.defaultValue,t[1]=n.type,t[2]=i,t[3]=s,t[4]=c,t[5]=u}else i=t[2],s=t[3],c=t[4],u=t[5];return u!==Symbol.for("react.early_return_sentinel")?u:(t[6]!==i||t[7]!==s?(d=(0,a.jsx)("span",{className:i,children:s}),t[6]=i,t[7]=s,t[8]=d):d=t[8],t[9]!==c||t[10]!==d?(h=(0,a.jsxs)(a.Fragment,{children:[c,d]}),t[9]=c,t[10]=d,t[11]=h):h=t[11],h)};function Jx(e,t){return(0,Ce.bd)(e)?(0,a.jsxs)(a.Fragment,{children:[Jx(e.ofType,t),"!"]}):(0,Ce.Fs)(e)?(0,a.jsxs)(a.Fragment,{children:["[",Jx(e.ofType,t),"]"]}):t(e)}const Zx=e=>{const t=(0,l.c)(5),{type:n}=e,{push:r}=w_();let o,i;return t[0]!==r?(o=e=>(0,a.jsx)("a",{className:"graphiql-doc-explorer-type-name",onClick:t=>{t.preventDefault(),r({name:e.name,def:e})},href:"#",children:e.name}),t[0]=r,t[1]=o):o=t[1],t[2]!==o||t[3]!==n?(i=Jx(n,o),t[2]=o,t[3]=n,t[4]=i):i=t[4],i},eE=e=>{const t=(0,l.c)(19),{arg:n,showDefaultValue:r,inline:o}=e;let i,s,c,u;t[0]!==n.name?(i=(0,a.jsx)("span",{className:"graphiql-doc-explorer-argument-name",children:n.name}),t[0]=n.name,t[1]=i):i=t[1],t[2]!==n.type?(s=(0,a.jsx)(Zx,{type:n.type}),t[2]=n.type,t[3]=s):s=t[3],t[4]!==n||t[5]!==r?(c=!1!==r&&(0,a.jsx)(Xx,{field:n}),t[4]=n,t[5]=r,t[6]=c):c=t[6],t[7]!==i||t[8]!==s||t[9]!==c?(u=(0,a.jsxs)("span",{children:[i,": ",s,c]}),t[7]=i,t[8]=s,t[9]=c,t[10]=u):u=t[10];const d=u;if(o)return d;let h,f,p;return t[11]!==n.description?(h=n.description?(0,a.jsx)(Qx,{type:"description",children:n.description}):null,t[11]=n.description,t[12]=h):h=t[12],t[13]!==n.deprecationReason?(f=n.deprecationReason?(0,a.jsxs)("div",{className:"graphiql-doc-explorer-argument-deprecation",children:[(0,a.jsx)("div",{className:"graphiql-doc-explorer-argument-deprecation-label",children:"Deprecated"}),(0,a.jsx)(Qx,{type:"deprecation",children:n.deprecationReason})]}):null,t[13]=n.deprecationReason,t[14]=f):f=t[14],t[15]!==d||t[16]!==h||t[17]!==f?(p=(0,a.jsxs)("div",{className:"graphiql-doc-explorer-argument",children:[d,h,f]}),t[15]=d,t[16]=h,t[17]=f,t[18]=p):p=t[18],p},tE=e=>{const t=(0,l.c)(3);let n;return t[0]!==e.children||t[1]!==e.preview?(n=e.children?(0,a.jsxs)("div",{className:"graphiql-doc-explorer-deprecation",children:[(0,a.jsx)("div",{className:"graphiql-doc-explorer-deprecation-label",children:"Deprecated"}),(0,a.jsx)(Qx,{type:"deprecation",onlyShowFirstChild:e.preview??!0,children:e.children})]}):null,t[0]=e.children,t[1]=e.preview,t[2]=n):n=t[2],n},nE=e=>{const t=(0,l.c)(2),{directive:n}=e;let r;return t[0]!==n.name.value?(r=(0,a.jsxs)("span",{className:"graphiql-doc-explorer-directive",children:["@",n.name.value]}),t[0]=n.name.value,t[1]=r):r=t[1],r},rE=e=>{const t=(0,l.c)(10),{title:n,children:r}=e,o=oE[n];let i,s,c,u;return t[0]!==o?(i=(0,a.jsx)(o,{}),t[0]=o,t[1]=i):i=t[1],t[2]!==i||t[3]!==n?(s=(0,a.jsxs)("div",{className:"graphiql-doc-explorer-section-title",children:[i,n]}),t[2]=i,t[3]=n,t[4]=s):s=t[4],t[5]!==r?(c=(0,a.jsx)("div",{className:"graphiql-doc-explorer-section-content",children:r}),t[5]=r,t[6]=c):c=t[6],t[7]!==s||t[8]!==c?(u=(0,a.jsxs)("div",{children:[s,c]}),t[7]=s,t[8]=c,t[9]=u):u=t[9],u},oE={Arguments:ft,"Deprecated Arguments":bt,"Deprecated Enum Values":xt,"Deprecated Fields":Et,Directives:wt,"Enum Values":kt,Fields:_t,Implements:At,Implementations:zt,"Possible Types":zt,"Root Types":Pt,Type:zt,"All Schema Types":zt},iE=e=>{const t=(0,l.c)(15),{field:n}=e;let r,o,i,s,c,u;return t[0]!==n.description?(r=n.description?(0,a.jsx)(Qx,{type:"description",children:n.description}):null,t[0]=n.description,t[1]=r):r=t[1],t[2]!==n.deprecationReason?(o=(0,a.jsx)(tE,{preview:!1,children:n.deprecationReason}),t[2]=n.deprecationReason,t[3]=o):o=t[3],t[4]!==n.type?(i=(0,a.jsx)(rE,{title:"Type",children:(0,a.jsx)(Zx,{type:n.type})}),t[4]=n.type,t[5]=i):i=t[5],t[6]!==n?(s=(0,a.jsx)(sE,{field:n}),c=(0,a.jsx)(aE,{field:n}),t[6]=n,t[7]=s,t[8]=c):(s=t[7],c=t[8]),t[9]!==r||t[10]!==o||t[11]!==i||t[12]!==s||t[13]!==c?(u=(0,a.jsxs)(a.Fragment,{children:[r,o,i,s,c]}),t[9]=r,t[10]=o,t[11]=i,t[12]=s,t[13]=c,t[14]=u):u=t[14],u},sE=e=>{const t=(0,l.c)(12),{field:n}=e,[r,o]=(0,c.useState)(!1);let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{o(!0)},t[0]=i):i=t[0];const s=i;if(!("args"in n))return null;let u,d,h,f,p;if(t[1]!==n.args){u=[],d=[];for(const e of n.args)e.deprecationReason?d.push(e):u.push(e);h=u.length>0?(0,a.jsx)(rE,{title:"Arguments",children:u.map(lE)}):null,t[1]=n.args,t[2]=u,t[3]=d,t[4]=h}else u=t[2],d=t[3],h=t[4];return t[5]!==u.length||t[6]!==d||t[7]!==r?(f=d.length>0?r||0===u.length?(0,a.jsx)(rE,{title:"Deprecated Arguments",children:d.map(cE)}):(0,a.jsx)(ql,{type:"button",onClick:s,children:"Show Deprecated Arguments"}):null,t[5]=u.length,t[6]=d,t[7]=r,t[8]=f):f=t[8],t[9]!==h||t[10]!==f?(p=(0,a.jsxs)(a.Fragment,{children:[h,f]}),t[9]=h,t[10]=f,t[11]=p):p=t[11],p},aE=e=>{var t;const n=(0,l.c)(4),{field:r}=e,o=null==(t=r.astNode)?void 0:t.directives;if(!(null==o?void 0:o.length))return null;let i,s;return n[0]!==o?(i=o.map(uE),n[0]=o,n[1]=i):i=n[1],n[2]!==i?(s=(0,a.jsx)(rE,{title:"Directives",children:i}),n[2]=i,n[3]=s):s=n[3],s};function lE(e){return(0,a.jsx)(eE,{arg:e},e.name)}function cE(e){return(0,a.jsx)(eE,{arg:e},e.name)}function uE(e){return(0,a.jsx)("div",{children:(0,a.jsx)(nE,{directive:e})},e.name.value)}const dE=e=>{const t=(0,l.c)(43),{schema:n}=e;let r;t[0]!==n?(r=n.getQueryType(),t[0]=n,t[1]=r):r=t[1];const o=r;let i;t[2]!==n?(i=n.getMutationType(),t[2]=n,t[3]=i):i=t[3];const s=i;let c;t[4]!==n?(c=n.getSubscriptionType(),t[4]=n,t[5]=c):c=t[5];const u=c;let d,h,f,p,m,g,y,v;if(t[6]!==s||t[7]!==o||t[8]!==n||t[9]!==u){const e=n.getTypeMap(),r=null==o?void 0:o.name,i=null==s?void 0:s.name,l=null==u?void 0:u.name;let c;t[15]!==l||t[16]!==r||t[17]!==i?(c=[r,i,l],t[15]=l,t[16]=r,t[17]=i,t[18]=c):c=t[18];const g=c,y=n.description||"A GraphQL schema provides a root type for each kind of operation.";let v,b,x,E;t[19]!==y?(p=(0,a.jsx)(Qx,{type:"description",children:y}),t[19]=y,t[20]=p):p=t[20],t[21]!==o?(v=o?(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"graphiql-doc-explorer-root-type",children:"query"}),": ",(0,a.jsx)(Zx,{type:o})]}):null,t[21]=o,t[22]=v):v=t[22],t[23]!==s?(b=s&&(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"graphiql-doc-explorer-root-type",children:"mutation"}),": ",(0,a.jsx)(Zx,{type:s})]}),t[23]=s,t[24]=b):b=t[24],t[25]!==u?(x=u&&(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"graphiql-doc-explorer-root-type",children:"subscription"}),": ",(0,a.jsx)(Zx,{type:u})]}),t[25]=u,t[26]=x):x=t[26],t[27]!==v||t[28]!==b||t[29]!==x?(m=(0,a.jsxs)(rE,{title:"Root Types",children:[v,b,x]}),t[27]=v,t[28]=b,t[29]=x,t[30]=m):m=t[30],d=rE,f="All Schema Types",t[31]!==g?(E=e=>g.includes(e.name)||e.name.startsWith("__")?null:(0,a.jsx)("div",{children:(0,a.jsx)(Zx,{type:e})},e.name),t[31]=g,t[32]=E):E=t[32],h=Object.values(e).map(E),t[6]=s,t[7]=o,t[8]=n,t[9]=u,t[10]=d,t[11]=h,t[12]=f,t[13]=p,t[14]=m}else d=t[10],h=t[11],f=t[12],p=t[13],m=t[14];return t[33]!==h?(g=(0,a.jsx)("div",{children:h}),t[33]=h,t[34]=g):g=t[34],t[35]!==d||t[36]!==f||t[37]!==g?(y=(0,a.jsx)(d,{title:f,children:g}),t[35]=d,t[36]=f,t[37]=g,t[38]=y):y=t[38],t[39]!==p||t[40]!==m||t[41]!==y?(v=(0,a.jsxs)(a.Fragment,{children:[p,m,y]}),t[39]=p,t[40]=m,t[41]=y,t[42]=v):v=t[42],v},hE=e=>e?.ownerDocument??document,fE=e=>e&&"window"in e&&e.window===e?e:hE(e).defaultView||window;function pE(e,t){return!(!t||!e)&&e.contains(t)}const mE=(e=document)=>e.activeElement;function gE(e){return e.target}const yE="undefined"!=typeof document?c.useLayoutEffect:()=>{};function vE(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function bE(e){let t=(0,c.useRef)({isFocused:!1,observer:null});return yE(()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,c.useCallback)(n=>{let r=gE(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r,o=r=>{if(t.current.isFocused=!1,n.disabled){let t=vE(r);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){t.current.observer?.disconnect();let e=n===mE()?null:mE();n.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[e])}function xE(e){if("undefined"==typeof window||null==window.navigator)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function EE(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function wE(e){let t=null;return()=>(null==t&&(t=e()),t)}const CE=wE(function(){return EE(/^Mac/i)}),SE=wE(function(){return EE(/^iPhone/i)}),kE=wE(function(){return EE(/^iPad/i)||CE()&&navigator.maxTouchPoints>1}),_E=wE(function(){return SE()||kE()}),TE=(wE(function(){return CE()||_E()}),wE(function(){return xE(/AppleWebKit/i)&&!AE()})),AE=wE(function(){return xE(/Chrome/i)}),DE=wE(function(){return xE(/Android/i)}),NE=wE(function(){return xE(/Firefox/i)});let RE=null;function OE(e,t,n=!0){let{metaKey:r,ctrlKey:o,altKey:i,shiftKey:s}=t;NE()&&window.event?.type?.startsWith("key")&&"_blank"===e.target&&(CE()?r=!0:o=!0);let a=TE()&&CE()&&!kE()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:o,altKey:i,shiftKey:s}):new MouseEvent("click",{metaKey:r,ctrlKey:o,altKey:i,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});OE.isOpening=n,function(e){if(function(){if(null==RE){RE=!1;try{document.createElement("div").focus({get preventScroll(){return RE=!0,!0}})}catch{}}return RE}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}(e),e.dispatchEvent(a),OE.isOpening=!1}OE.isOpening=!1;let FE=null,ME="keyboard";const IE=new Set;let LE=new Map,PE=!1,jE=!1;const VE={Tab:!0,Escape:!0};function BE(e,t){for(let n of IE)n(e,t)}function qE(e){PE=!0,!OE.isOpening&&function(e){return!(e.metaKey||!CE()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(FE="keyboard",ME="keyboard",BE("keyboard",e))}function $E(e){FE="pointer",ME="pointerType"in e?e.pointerType:"mouse","mousedown"!==e.type&&"pointerdown"!==e.type||(PE=!0,BE("pointer",e))}function zE(e){var t;!OE.isOpening&&(""===(t=e).pointerType&&t.isTrusted||(DE()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(PE=!0,FE="virtual",ME="virtual")}function KE(e){let t=fE(gE(e)),n=hE(gE(e));gE(e)!==t&&gE(e)!==n&&e.isTrusted&&(PE||jE||(FE="virtual",ME="virtual",BE("virtual",e)),PE=!1,jE=!1)}function UE(){PE=!1,jE=!0}function WE(e){if("undefined"==typeof window||"undefined"==typeof document)return;const t=fE(e),n=hE(e);if(LE.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){PE=!0,r.apply(this,arguments)}}),n.addEventListener("keydown",qE,!0),n.addEventListener("keyup",qE,!0),n.addEventListener("click",zE,!0),t.addEventListener("focus",KE,!0),t.addEventListener("blur",UE,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",$E,!0),n.addEventListener("pointermove",$E,!0),n.addEventListener("pointerup",$E,!0)),t.addEventListener("beforeunload",()=>{HE(e)},{once:!0}),LE.set(t,{focus:r})}const HE=(e,t)=>{const n=fE(e),r=hE(e);t&&r.removeEventListener("DOMContentLoaded",t),LE.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:LE.get(n).focus}),r.removeEventListener("keydown",qE,!0),r.removeEventListener("keyup",qE,!0),r.removeEventListener("click",zE,!0),n.removeEventListener("focus",KE,!0),n.removeEventListener("blur",UE,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",$E,!0),r.removeEventListener("pointermove",$E,!0),r.removeEventListener("pointerup",$E,!0)),LE.delete(n))};function GE(){return"pointer"!==FE}"undefined"!=typeof document&&function(e){const t=hE(e);let n;"loading"!==t.readyState?WE(e):(n=()=>{WE(e)},t.addEventListener("DOMContentLoaded",n))}();const QE=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function YE(){let e=(0,c.useRef)(new Map),t=(0,c.useCallback)((t,n,r,o)=>{let i=o?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,i,o)},[]),n=(0,c.useCallback)((t,n,r,o)=>{let i=e.current.get(r)?.fn||r;t.removeEventListener(n,i,o),e.current.delete(r)},[]),r=(0,c.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,c.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function XE(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=(0,c.useRef)({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=YE(),l=(0,c.useCallback)(e=>{pE(e.currentTarget,gE(e))&&i.current.isFocusWithin&&!pE(e.currentTarget,e.relatedTarget)&&(i.current.isFocusWithin=!1,a(),n&&n(e),o&&o(!1))},[n,o,i,a]),u=bE(l),d=(0,c.useCallback)(e=>{if(!pE(e.currentTarget,gE(e)))return;let t=gE(e);const n=hE(t),a=mE(n);if(!i.current.isFocusWithin&&a===t){r&&r(e),o&&o(!0),i.current.isFocusWithin=!0,u(e);let t=e.currentTarget;s(n,"focus",e=>{let r=gE(e);if(i.current.isFocusWithin&&!pE(t,r)){let e=new n.defaultView.FocusEvent("blur",{relatedTarget:r});!function(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}(e,t);let o=vE(e);l(o)}},{capture:!0})}},[r,o,u,s,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:l}}}function JE(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=(0,c.useRef)({isFocused:!1,isFocusVisible:t||GE()}),[i,s]=(0,c.useState)(!1),[a,l]=(0,c.useState)(()=>o.current.isFocused&&o.current.isFocusVisible),u=(0,c.useCallback)(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),d=(0,c.useCallback)(e=>{o.current.isFocused=e,o.current.isFocusVisible=GE(),s(e),u()},[u]);var h,f,p;h=e=>{o.current.isFocusVisible=e,u()},f=[n,i],p={enabled:i,isTextInput:n},WE(),(0,c.useEffect)(()=>{if(!1===p?.enabled)return;let e=(e,t)=>{(function(e,t,n){let r=n?gE(n):void 0,o=hE(r),i=fE(r);const s=void 0!==i?i.HTMLInputElement:HTMLInputElement,a=void 0!==i?i.HTMLTextAreaElement:HTMLTextAreaElement,l=void 0!==i?i.HTMLElement:HTMLElement,c=void 0!==i?i.KeyboardEvent:KeyboardEvent;let u=mE(o);return!((e=e||u instanceof s&&!QE.has(u.type)||u instanceof a||u instanceof l&&u.isContentEditable)&&"keyboard"===t&&n instanceof c&&!VE[n.key])})(!!p?.isTextInput,e,t)&&h(GE())};return IE.add(e),()=>{IE.delete(e)}},f);let{focusProps:m}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=(0,c.useCallback)(e=>{if(gE(e)===e.currentTarget)return r&&r(e),o&&o(!1),!0},[r,o]),s=bE(i),a=(0,c.useCallback)(e=>{let t=gE(e);const r=hE(t),i=r?mE(r):mE();t===e.currentTarget&&t===i&&(n&&n(e),o&&o(!0),s(e))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:t||!r&&!o?void 0:i}}}({isDisabled:r,onFocusChange:d}),{focusWithinProps:g}=XE({isDisabled:!r,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:a,focusProps:r?g:m}}let ZE=!1,ew=0;function tw(e){"touch"===e.pointerType&&(ZE=!0,setTimeout(()=>{ZE=!1},500))}function nw(){let e=hE(null);if(void 0!==e)return 0===ew&&"undefined"!=typeof PointerEvent&&e.addEventListener("pointerup",tw),ew++,()=>{ew--,ew>0||"undefined"!=typeof PointerEvent&&e.removeEventListener("pointerup",tw)}}function rw(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,s]=(0,c.useState)(!1),a=(0,c.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,c.useEffect)(nw,[]);let{addGlobalListener:l,removeAllGlobalListeners:u}=YE(),{hoverProps:d,triggerHoverEnd:h}=(0,c.useMemo)(()=>{let e=(e,t)=>{let o=a.target;a.pointerType="",a.target=null,"touch"!==t&&a.isHovered&&o&&(a.isHovered=!1,u(),r&&r({type:"hoverend",target:o,pointerType:t}),n&&n(!1),s(!1))},i={};return"undefined"!=typeof PointerEvent&&(i.onPointerEnter=r=>{ZE&&"mouse"===r.pointerType||((r,i)=>{if(a.pointerType=i,o||"touch"===i||a.isHovered||!pE(r.currentTarget,gE(r)))return;a.isHovered=!0;let c=r.currentTarget;a.target=c,l(hE(gE(r)),"pointerover",t=>{a.isHovered&&a.target&&!pE(a.target,gE(t))&&e(0,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:c,pointerType:i}),n&&n(!0),s(!0)})(r,r.pointerType)},i.onPointerLeave=t=>{!o&&pE(t.currentTarget,gE(t))&&e(0,t.pointerType)}),{hoverProps:i,triggerHoverEnd:e}},[t,n,r,o,a,l,u]);return(0,c.useEffect)(()=>{o&&h({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:d,isHovered:i}}function ow(e,t,n){let r,o=n.initialDeps??[],i=!0;function s(){const s=e(),a=s.length!==o.length||s.some((e,t)=>o[t]!==e);return a?(o=s,r=t(...s),!(null==n?void 0:n.onChange)||i&&n.skipInitialOnChange||n.onChange(r),i=!1,r):r}return s.updateDeps=e=>{o=e},s}function iw(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?`: ${t}`:""));return e}const sw=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}};let aw;const lw=()=>{if(void 0!==aw)return aw;if("undefined"==typeof navigator)return aw=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return aw=!0;const e=navigator.maxTouchPoints;return aw="MacIntel"===navigator.platform&&void 0!==e&&e>0},cw=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},uw=e=>e,dw=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,r=new Array(n);for(let e=0;e<n;e++)r[e]=t+e;return r},hw=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=e=>{const{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(o(cw(n)),!r.ResizeObserver)return()=>{};const i=new r.ResizeObserver(t=>{const r=()=>{const e=t[0];if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t)return void o({width:t.inlineSize,height:t.blockSize})}o(cw(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},fw={passive:!0},pw="undefined"==typeof window||"onscrollend"in window,mw=(e,t)=>((e,t,n)=>{const r=e.scrollElement;if(!r)return;const o=e.targetWindow;if(!o)return;const i=e.options.useScrollendEvent&&pw;let s=0;const a=i?null:sw(o,()=>t(s,!1),e.options.isScrollingResetDelay),l=e=>()=>{s=n(r),null==a||a(),t(s,e)},c=l(!0),u=l(!1);return r.addEventListener("scroll",c,fw),i&&r.addEventListener("scrollend",u,fw),()=>{r.removeEventListener("scroll",c),i&&r.removeEventListener("scrollend",u)}})(e,t,t=>{const{horizontal:n,isRtl:r}=e.options;return n?t.scrollLeft*(r?-1:1):t.scrollTop}),gw=(e,t,n)=>{if(n.options.useCachedMeasurements){const t=n.indexFromElement(e),r=n.options.getItemKey(t);return n.itemSizeCache.get(r)??n.options.estimateSize(t)}if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}if(!t){const t=n.indexFromElement(e),r=n.options.getItemKey(t),o=n.itemSizeCache.get(r);if(void 0!==o)return o}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},yw=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;null==(i=null==(o=r.scrollElement)?void 0:o.scrollTo)||i.call(o,{[r.options.horizontal?"left":"top"]:e+t,behavior:n})};class vw{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var e,t,n;return(null==(n=null==(t=null==(e=this.targetWindow)?void 0:e.performance)?void 0:t.now)?void 0:n.call(t))??Date.now()},this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{const t=()=>{const t=e.target,n=this.indexFromElement(t);if(t.isConnected)this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this));else{this.observer.unobserve(t);for(const[e,n]of this.elementsCache)if(n===t){this.elementsCache.delete(e);break}}};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{var t,n;const r={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:uw,rangeExtractor:dw,onChange:()=>{},measureElement:gw,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate",useCachedMeasurements:!1};for(const t in e){const n=e[t];void 0!==n&&(r[t]=n)}const o=this.options;let i=null,s=null,a=!1;if(void 0!==o&&o.enabled&&r.enabled&&"end"===r.anchorTo&&null!==this.scrollElement){const e=o.count,l=r.count,c=this.getMeasurements(),u=e>0?(null==(t=c[0])?void 0:t.key)??o.getItemKey(0):null,d=e>0?(null==(n=c[e-1])?void 0:n.key)??o.getItemKey(e-1):null;if(l!==e||e>0&&l>0&&(r.getItemKey(0)!==u||r.getItemKey(l-1)!==d)){a=!0;const t=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??c[0]:null;t&&(i=[t.key,this.getScrollOffset()-t.start]);const n=!0===r.followOnAppend?"auto":r.followOnAppend||null;n&&l>e&&this.isAtEnd(o.scrollEndThreshold)&&(0===e||r.getItemKey(l-1)!==d)&&(s=n)}}this.options=r,a&&(this.pendingMin=0,this.itemSizeCacheVersion++);let l=!1,c=0;if(i&&null!==this.scrollOffset){const[e,t]=i,n=this.getMeasurements(),{count:r,getItemKey:o}=this.options;let s=0;for(;s<r&&o(s)!==e;)s++;if(s<r){const e=n[s];if(e){const n=e.start+t;n!==this.scrollOffset&&(c=n-this.scrollOffset,this.scrollOffset=n,l=!0)}}}(l||s)&&(this.pendingScrollAnchor=[l?i[0]:null,l?i[1]:0,s,c])},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=ow(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();if(this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{if(t&&null===this._intendedScrollOffset&&e===this.scrollOffset)return;null!==this._intendedScrollOffset&&Math.abs(e-this._intendedScrollOffset)<1.5&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,this.scrollAdjustments=0;const n=this.getScrollOffset();this.scrollDirection=t?n===e?this.scrollDirection:n<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){const e=this.scrollElement,t=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},n=()=>{this._iosTouching=!1,lw()&&null!=this.targetWindow&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener("touchstart",t,fw),e.addEventListener("touchend",n,fw),this.unsubs.push(()=>{e.removeEventListener("touchstart",t),e.removeEventListener("touchend",n),null!==this._iosTouchEndTimerId&&null!=this.targetWindow&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}const n=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,n&&this.scrollElement&&this.options.enabled){const[e,t,r,o]=n;null===e||r||(lw()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?0!==o&&(this._iosDeferredAdjustment+=o):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),r&&this.scrollToEnd({behavior:r})}},this._flushIosDeferredIfReady=()=>{if(0===this._iosDeferredAdjustment)return;if(this.isScrolling)return;if(this._iosTouching)return;if(this._iosJustTouchEnded)return;const e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;const n=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=n,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=ow(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,n,r,o,i,s,a)=>(void 0!==this.prevLanes&&this.prevLanes!==i&&(this.lanesChangedFlag=!0),this.prevLanes=i,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o,lanes:i,laneAssignmentMode:s,gap:a}),{key:!1}),this.getMeasurements=ow(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o,lanes:i,laneAssignmentMode:s,gap:a},l)=>{const c=this.itemSizeCache;if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(const t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));const u=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),1===i){const o=2*e;let i,s=this._flatMeasurements;if(!s||s.length<o){const e=new Float64Array(o);s&&u>0&&e.set(s.subarray(0,2*u)),s=e,this._flatMeasurements=s}if(0===u)i=t+n;else{const e=u-1;i=s[2*e]+s[2*e+1]+a}for(let t=u;t<e;t++){const e=r(t),n=c.get(e),o="number"==typeof n?n:this.options.estimateSize(t);s[2*t]=i,s[2*t+1]=o,i+=o+a}const l=function(e,t,n){const r=new Array(e);return new Proxy(r,{get(r,o,i){if("string"==typeof o){const i=o.charCodeAt(0);if(i>=48&&i<=57){const i=+o;if(Number.isInteger(i)&&i>=0&&i<e){let e=r[i];if(!e){const o=t[2*i];e=r[i]={index:i,key:n(i),start:o,size:t[2*i+1],end:o+t[2*i+1],lane:0}}return e}}if("length"===o)return e}return Reflect.get(r,o,i)}})}(e,s,r);return this.measurementsCache=l,l}const d=this.measurementsCache.slice(0,u),h=new Array(i).fill(void 0),f=new Float64Array(i);let p=0;for(let e=0;e<u;e++){const t=d[e];t&&(void 0===h[t.lane]&&p++,h[t.lane]=e,f[t.lane]=t.end)}for(let o=u;o<e;o++){const e=r(o),l=this.laneAssignments.get(o);let u,m;const g="estimate"===s||c.has(e);if(void 0!==l&&this.options.lanes>1){u=l;const e=h[u],r=void 0!==e?d[e]:void 0;m=r?r.end+a:t+n}else if(p===i){let e=0,t=f[0],n=h[0];for(let r=1;r<i;r++){const o=f[r];(o<t||o===t&&h[r]<n)&&(e=r,t=o,n=h[r])}u=e,m=t+a,g&&this.laneAssignments.set(o,u)}else u=o%this.options.lanes,m=t+n,g&&this.laneAssignments.set(o,u);const y=c.get(e),v="number"==typeof y?y:this.options.estimateSize(o),b=m+v;d[o]={index:o,start:m,size:v,end:b,key:e,lane:u},void 0===h[u]&&p++,h[u]=o,f[u]=b}return this.measurementsCache=d,d},{key:!1,debug:()=>this.options.debug}),this.calculateRange=ow(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>0===e.length||0===t?(this.range=null,null):(this.range=function(e,t,n,r,o){const i=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:i};if(1===r&&null!==o){const e=function(e,t,n){let r=0;for(;r<=t;){const o=(r+t)/2|0,i=e[2*o];if(i<n)r=o+1;else{if(!(i>n))return o;t=o-1}}return r>0?r-1:0}(o,i,n);let r=e;const s=n+t;for(;r<i&&o[2*r]+o[2*r+1]<s;)r++;return{startIndex:e,endIndex:r}}let s=bw(0,i,t=>e[t].start,n),a=s;if(1===r)for(;a<i&&e[a].end<n+t;)a++;else if(r>1){const o=Array(r).fill(0);for(;a<i&&o.some(e=>e<n+t);){const t=e[a];o[t.lane]=t.end,a++}const l=Array(r).fill(n+t);for(;s>=0&&l.some(e=>e>=n);){const t=e[s];l[t.lane]=t.start,s--}s=Math.max(0,s-s%r),a=Math.min(i,a+(r-1-a%r))}return{startIndex:s,endIndex:a}}(e,t,n,r,1===r&&null!=this._flatMeasurements?this._flatMeasurements:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=ow(()=>{let e=null,t=null;const n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,o)=>null===r||null===o?[]:e({startIndex:r,endIndex:o,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{var t;if(!this.scrollState||"smooth"!==this.scrollState.behavior)return!0;const n=this.scrollState.index??(null==(t=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:t.index);if(void 0!==n&&this.range){const t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,n-t),o=Math.min(this.options.count-1,n+t);return e>=r&&e<=o}return!0},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});const t=this.indexFromElement(e),n=this.options.getItemKey(t),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),this.isScrolling&&!this.scrollState||!this.shouldMeasureDuringScroll(t)||this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var n,r;if(e<0||e>=this.options.count)return;let o,i,s;const a=this._flatMeasurements;if(1===this.options.lanes&&null!==a)s=this.options.getItemKey(e),i=a[2*e],o=a[2*e+1];else{const t=this.measurementsCache[e];if(!t)return;s=t.key,i=t.start,o=t.size}const l=t-(this.itemSizeCache.get(s)??o);if(0!==l){const a="end"===this.options.anchorTo&&"smooth"!==(null==(n=this.scrollState)?void 0:n.behavior)&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,c=a?this.getTotalSize():0,u="smooth"!==(null==(r=this.scrollState)?void 0:r.behavior)&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:s,start:i,size:o,end:i+o,lane:0},l,this):i<this.getScrollOffset()+this.scrollAdjustments&&(!this.itemSizeCache.has(s)||"backward"!==this.scrollDirection));(null===this.pendingMin||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(s,t),this.itemSizeCacheVersion++,a?this.applyScrollAdjustment(this.getTotalSize()-c):u&&this.applyScrollAdjustment(l),this.notify(!1)}},this.getVirtualItems=ow(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{const n=[];for(let r=0,o=e.length;r<o;r++){const o=t[e[r]];n.push(o)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0===t.length)return;const n=this._flatMeasurements,r=1===this.options.lanes&&null!=n,o=bw(0,t.length-1,r?e=>n[2*e]:e=>iw(t[e]).start,e);return iw(t[o])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;const r=this.getSize(),o=this.getScrollOffset();"auto"===t&&(t=e>=o+r?"end":"start"),"center"===t?e+=(n-r)/2:"end"===t&&(e-=r);const i=this.getMaxScrollOffset();return Math.max(Math.min(i,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const n=this.getSize(),r=this.getScrollOffset(),o=this.measurementsCache[e];if(!o)return;if("auto"===t)if(o.end>=r+n-this.options.scrollPaddingEnd)t="end";else{if(!(o.start<=r+this.options.scrollPaddingStart))return[r,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];const i="end"===t?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,t,o.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:n="auto"}={})=>{const r=this.getOffsetForAlignment(e,t),o=this.now();this.scrollState={index:null,align:t,behavior:n,startedAt:o,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:n="auto"}={})=>{e=Math.max(0,Math.min(e,this.options.count-1));const r=this.getOffsetForIndex(e,t);if(!r)return;const[o,i]=r,s=this.now();this.scrollState={index:e,align:i,behavior:n,startedAt:s,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{const n=this.getScrollOffset()+e,r=this.now();this.scrollState={index:null,align:"start",behavior:t,startedAt:r,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e="auto"}={})=>{this.options.count>0?this.scrollToIndex(this.options.count-1,{align:"end",behavior:e}):this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let n;if(0===t.length)n=this.options.paddingStart;else if(1===this.options.lanes){const r=t.length-1,o=this._flatMeasurements;n=null!=o?o[2*r]+o[2*r+1]:(null==(e=t[r])?void 0:e.end)??0}else{const e=Array(this.options.lanes).fill(null);let r=t.length-1;for(;r>=0&&e.some(e=>null===e);){const n=t[r];null===e[n.lane]&&(e[n.lane]=n.end),r--}n=Math.max(...e.filter(e=>null!==e))}return Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{const e=[];if(0===this.itemSizeCache.size)return e;const t=this.getMeasurements();for(const n of t)n&&this.itemSizeCache.has(n.key)&&e.push({index:n.index,key:n.key,start:n.start,size:n.size,end:n.end,lane:n.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){0!==e&&(lw()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?this._iosDeferredAdjustment+=e:(this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}),null!==this.scrollOffset&&(this.scrollOffset+=this.scrollAdjustments,this.scrollAdjustments=0)))}scheduleScrollReconcile(){this.targetWindow?null==this.rafId&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()})):this.scrollState=null}reconcileScroll(){if(!this.scrollState)return;if(!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3)return void(this.scrollState=null);const e=null!=this.scrollState.index?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=e?e[0]:this.scrollState.lastTargetOffset,n=t!==this.scrollState.lastTargetOffset;if(!n&&((e,t)=>Math.abs(e-t)<1.01)(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1)return this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}),void(this.scrollState=null)}else if(this.scrollState.stableFrames=0,n){const e=this.getSize()||600,n=Math.abs(t-this.getScrollOffset()),r="smooth"===this.scrollState.behavior&&n>e;this.scrollState.lastTargetOffset=t,r||(this.scrollState.behavior="auto"),this._scrollToOffset(t,{adjustments:void 0,behavior:r?"smooth":"auto"})}this.scheduleScrollReconcile()}}const bw=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,i=n(o);if(i<r)e=o+1;else{if(!(i>r))return o;t=o-1}}return e>0?e-1:0},xw="undefined"!=typeof document?c.useLayoutEffect:c.useEffect;var Ew=Object.defineProperty,ww=(e,t,n)=>(((e,t,n)=>{t in e?Ew(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let Cw=new class{constructor(){ww(this,"current",this.detect()),ww(this,"handoffState","pending"),ww(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};function Sw(e){var t;return Cw.isServer?null:null==e?document:null!=(t=null==e?void 0:e.ownerDocument)?t:document}function kw(e){return function(e){var t,n;return null!=(n=null==(t=function(e){var t,n;return Cw.isServer?null:null==e?document:null!=(n=null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e))?n:document}(e))?void 0:t.activeElement)?n:null}(e)===e}function _w(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function Tw(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add(()=>e.removeEventListener(n,r,o))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(n))},nextFrame:(...e)=>t.requestAnimationFrame(()=>t.requestAnimationFrame(...e)),setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return _w(()=>{n.current&&e[0]()}),t.add(()=>{n.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(e){let t=Tw();return e(t),this.add(()=>t.dispose())},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function Aw(){let[e]=(0,c.useState)(Tw);return(0,c.useEffect)(()=>()=>e.dispose(),[e]),e}let Dw=(e,t)=>{Cw.isServer?(0,c.useEffect)(e,t):(0,c.useLayoutEffect)(e,t)};function Nw(e){let t=(0,c.useRef)(e);return Dw(()=>{t.current=e},[e]),t}let Rw=function(e){let t=Nw(e);return c.useCallback((...e)=>t.current(...e),[t])};function Ow(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}function Fw(e=Ow){return(0,c.useCallback)((t,n)=>{if("string"==typeof e){let r=e;return(null==t?void 0:t[r])===(null==n?void 0:n[r])}return e(t,n)},[e])}function Mw(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function Iw(e,t,n=!1){let[r,o]=(0,c.useState)(()=>Mw(t));return Dw(()=>{if(!t||!e)return;let n=Tw();return n.requestAnimationFrame(function e(){n.requestAnimationFrame(e),o(e=>{let n=Mw(t);return n.width===e.width&&n.height===e.height?e:n})}),()=>{n.dispose()}},[t,e]),n?{width:`${r.width}px`,height:`${r.height}px`}:r}var Lw=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(Lw||{});function Pw(e){return"object"==typeof e&&null!==e&&"nodeType"in e}function jw(e){return Pw(e)&&"tagName"in e}function Vw(e){return jw(e)&&"accessKey"in e}function Bw(e){return jw(e)&&"tabIndex"in e}function qw(e){return jw(e)&&"style"in e}function $w(e){return Vw(e)&&"INPUT"===e.nodeName}function zw(e){return Vw(e)&&"LABEL"===e.nodeName}function Kw(e){return Vw(e)&&"FIELDSET"===e.nodeName}function Uw(e){return Vw(e)&&"LEGEND"===e.nodeName}function Ww(e){return!!jw(e)&&e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]')}function Hw(e){let t=e.parentElement,n=null;for(;t&&!Kw(t);)Uw(t)&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(Uw(t))return!1;t=t.previousElementSibling}return!0}(n))&&r}class Gw extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}}var Qw,Yw,Xw,Jw=Object.defineProperty,Zw=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},eC=(e,t,n)=>(Zw(e,t,"read from private field"),n?n.call(e):t.get(e)),tC=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},nC=(e,t,n,r)=>(Zw(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);class rC{constructor(e){tC(this,Qw,{}),tC(this,Yw,new Gw(()=>new Set)),tC(this,Xw,new Set),((e,t,n)=>{((e,t,n)=>{t in e?Jw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n)})(this,"disposables",Tw()),nC(this,Qw,e),Cw.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return eC(this,Qw)}subscribe(e,t){if(Cw.isServer)return()=>{};let n={selector:e,callback:t,current:e(eC(this,Qw))};return eC(this,Xw).add(n),this.disposables.add(()=>{eC(this,Xw).delete(n)})}on(e,t){return Cw.isServer?()=>{}:(eC(this,Yw).get(e).add(t),this.disposables.add(()=>{eC(this,Yw).get(e).delete(t)}))}send(e){let t=this.reduce(eC(this,Qw),e);if(t!==eC(this,Qw)){nC(this,Qw,t);for(let e of eC(this,Xw)){let t=e.selector(eC(this,Qw));oC(e.current,t)||(e.current=t,e.callback(t))}for(let t of eC(this,Yw).get(e.type))t(eC(this,Qw),e)}}}function oC(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&iC(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&iC(e.entries(),t.entries()):!(!sC(e)||!sC(t))&&iC(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function iC(e,t){for(;;){let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}}function sC(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}function aC(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,aC),r}Qw=new WeakMap,Yw=new WeakMap,Xw=new WeakMap;var lC=Object.defineProperty,cC=(e,t,n)=>(((e,t,n)=>{t in e?lC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),uC=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(uC||{});let dC={0(e,t){let n=t.id,r=e.stack,o=e.stack.indexOf(n);if(-1!==o){let t=e.stack.slice();return t.splice(o,1),t.push(n),r=t,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(-1===r)return e;let o=e.stack.slice();return o.splice(r,1),{...e,stack:o}}};class hC extends rC{constructor(){super(...arguments),cC(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),cC(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}static new(){return new hC({stack:[]})}reduce(e,t){return aC(t.type,dC,e,t)}}const fC=new Gw(()=>hC.new());var pC=n(32254);function mC(e,t,n=oC){return(0,pC.useSyncExternalStoreWithSelector)(Rw(t=>e.subscribe(gC,t)),Rw(()=>e.state),Rw(()=>e.state),Rw(t),n)}function gC(e){return e}function yC(e,t){let n=(0,c.useId)(),r=fC.get(t),[o,i]=mC(r,(0,c.useCallback)(e=>[r.selectors.isTop(e,n),r.selectors.inStack(e,n)],[r,n]));return Dw(()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)},[r,e,n]),!!e&&(!i||o)}let vC=new Map,bC=new Map;function xC(e){var t;let n=null!=(t=bC.get(e))?t:0;return bC.set(e,n+1),0!==n||(vC.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>function(e){var t;let n=null!=(t=bC.get(e))?t:1;if(1===n?bC.delete(e):bC.set(e,n-1),1!==n)return;let r=vC.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,vC.delete(e))}(e)}let EC=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var wC,CC=((wC=CC||{})[wC.First=1]="First",wC[wC.Previous=2]="Previous",wC[wC.Next=4]="Next",wC[wC.Last=8]="Last",wC[wC.WrapAround=16]="WrapAround",wC[wC.NoScroll=32]="NoScroll",wC[wC.AutoFocus=64]="AutoFocus",wC),SC=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(SC||{}),kC=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(kC||{}),_C=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(_C||{});var TC=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(TC||{});function AC(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function DC(){return AC()||/Android/gi.test(window.navigator.userAgent)}function NC(e,t,n,r){let o=Nw(n);(0,c.useEffect)(()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){o.current(e)}},[e,t,r])}function RC(e,t,n){let r=Nw(n),o=(0,c.useCallback)(function(e,n){if(e.defaultPrevented)return;let o=n(e);if(null===o||!o.getRootNode().contains(o)||!o.isConnected)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of i)if(null!==t&&(t.contains(o)||e.composed&&e.composedPath().includes(t)))return;return!function(e,t=0){var n;return e!==(null==(n=Sw(e))?void 0:n.body)&&aC(t,{0:()=>e.matches(EC),1(){let t=e;for(;null!==t;){if(t.matches(EC))return!0;t=t.parentElement}return!1}})}(o,_C.Loose)&&-1!==o.tabIndex&&e.preventDefault(),r.current(e,o)},[r,t]),i=(0,c.useRef)(null);NC(e,"pointerdown",e=>{var t,n;DC()||(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),NC(e,"pointerup",e=>{if(DC()||!i.current)return;let t=i.current;return i.current=null,o(e,()=>t)},!0);let s=(0,c.useRef)({x:0,y:0});NC(e,"touchstart",e=>{s.current.x=e.touches[0].clientX,s.current.y=e.touches[0].clientY},!0),NC(e,"touchend",e=>{let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(!(Math.abs(t-s.current.x)>=30||Math.abs(n-s.current.y)>=30))return o(e,()=>Bw(e.target)?e.target:null)},!0),function(e,t,n,r){let i=Nw(e=>o(e,()=>function(e){return Vw(e)&&"IFRAME"===e.nodeName}(window.document.activeElement)?window.document.activeElement:null));(0,c.useEffect)(()=>{if(e)return window.addEventListener(t,n,r),()=>window.removeEventListener(t,n,r);function n(e){i.current(e)}},[e,t,r])}(e,"blur",0,!0)}function OC(...e){return(0,c.useMemo)(()=>Sw(...e),[...e])}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0)),["textarea","input"].join(",");var FC=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(FC||{});const MC={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}};function IC(e){let t=(0,c.useRef)({value:"",selectionStart:null,selectionEnd:null});return function(e,n,r,o){let i=Nw(e=>{let n=e.target;$w(n)&&(t.current={value:n.value,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})});(0,c.useEffect)(()=>{function t(e){i.current(e)}return(e=null!=e?e:window).addEventListener(n,t,o),()=>e.removeEventListener(n,t,o)},[e,n,o])}(e,"blur"),Rw(()=>{if(!kw(e)&&$w(e)&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==t.current.value)e.setSelectionRange(e.value.length,e.value.length);else{let{selectionStart:n,selectionEnd:r}=t.current;null!==n&&null!==r&&e.setSelectionRange(n,r)}t.current={value:"",selectionStart:null,selectionEnd:null}}})}function LC(e,t){return(0,c.useMemo)(()=>{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";return"string"==typeof r&&"button"===r.toLowerCase()||"BUTTON"===(null==t?void 0:t.tagName)&&!t.hasAttribute("type")?"button":void 0},[e.type,e.as,t])}function PC(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=null!=(n=t.defaultView)?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,e-o);n.style(r,"paddingRight",`${i}px`)}}}function jC(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let VC=function(e,t){let n=new Map,r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...o){let i=t[e].call(n,...o);i&&(n=i,r.forEach(e=>e()))}}}(0,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:Tw(),meta:new Set,computedMeta:{}};return r.count++,r.meta.add(t),r.computedMeta=jC(r.meta),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t),n.computedMeta=jC(n.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta:()=>e.computedMeta},n=[AC()?{before({doc:e,d:t,meta:n}){function r(e){for(let t of n().containers)for(let n of t())if(n.contains(e))return!0;return!1}t.microTask(()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=Tw();n.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>n.dispose()))}let o=null!=(n=window.scrollY)?n:window.pageYOffset,i=null;t.addEventListener(e,"click",t=>{if(Bw(t.target))try{let n=t.target.closest("a");if(!n)return;let{hash:o}=new URL(n.href),s=e.querySelector(o);Bw(s)&&!r(s)&&(i=s)}catch{}},!0),t.group(n=>{t.addEventListener(e,"touchstart",e=>{if(n.dispose(),Bw(e.target)&&qw(e.target))if(r(e.target)){let t=e.target;for(;t.parentElement&&r(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",e=>{if(Bw(e.target)){if($w(e.target))return;if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}},{passive:!1}),t.add(()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;o!==t&&window.scrollTo(0,o),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{},PC(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];n.forEach(({before:e})=>null==e?void 0:e(t)),n.forEach(({after:e})=>null==e?void 0:e(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function BC(e){return(0,c.useMemo)(()=>e,Object.values(e))}VC.subscribe(()=>{let e=VC.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&VC.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&VC.dispatch("TEARDOWN",n)}});let qC=Symbol();function $C(...e){let t=(0,c.useRef)(e);(0,c.useEffect)(()=>{t.current=e},[e]);let n=Rw(e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)});return e.every(e=>null==e||(null==e?void 0:e[qC]))?void 0:n}function zC(e){return[e.screenX,e.screenY]}var KC,UC;"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(KC=null==process?void 0:{version:"9.3.0-alpha.2"})?void 0:KC.NODE_ENV)&&void 0===(null==(UC=null==Element?void 0:Element.prototype)?void 0:UC.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join("\n")),[]});var WC=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(WC||{});function HC(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function GC(e,t){let n=(0,c.useRef)([]),r=Rw(e);(0,c.useEffect)(()=>{let e=[...n.current];for(let[o,i]of t.entries())if(n.current[o]!==i){let o=r(t,e);return n.current=t,o}},[r,...t])}let QC=(0,c.createContext)(void 0);function YC(){return(0,c.useContext)(QC)}const XC={...u},JC=XC.useInsertionEffect||(e=>e());function ZC(e){const t=c.useRef(()=>{});return JC(()=>{t.current=e}),c.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}var eS="undefined"!=typeof document?c.useLayoutEffect:c.useEffect;let tS=!1,nS=0;const rS=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+nS++,oS=XC.useId||function(){const[e,t]=c.useState(()=>tS?rS():void 0);return eS(()=>{null==e&&t(rS())},[]),c.useEffect(()=>{tS=!0},[]),e};const iS=c.createContext(null),sS=c.createContext(null),aS="data-floating-ui-focusable";function lS(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=oS(),i=c.useRef({}),[s]=c.useState(()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}}()),a=null!=((null==(p=c.useContext(iS))?void 0:p.id)||null),[l,u]=c.useState(r.reference),d=ZC((e,t,r)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:r,nested:a}),null==n||n(e,t,r)}),h=c.useMemo(()=>({setPositionReference:u}),[]),f=c.useMemo(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);var p;return c.useMemo(()=>({dataRef:i,open:t,onOpenChange:d,elements:f,events:s,floatingId:o,refs:h}),[t,d,f,s,o,h])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=c.useState(null),[a,l]=c.useState(null),u=(null==o?void 0:o.domReference)||i,d=c.useRef(null),h=c.useContext(sS);eS(()=>{u&&(d.current=u)},[u]);const f=bo({...e,elements:{...o,...a&&{reference:a}}}),p=c.useCallback(e=>{const t=Tr(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),f.refs.setReference(t)},[f.refs]),m=c.useCallback(e=>{(Tr(e)||null===e)&&(d.current=e,s(e)),(Tr(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!Tr(e))&&f.refs.setReference(e)},[f.refs]),g=c.useMemo(()=>({...f.refs,setReference:m,setPositionReference:p,domReference:d}),[f.refs,m,p]),y=c.useMemo(()=>({...f.elements,domReference:u}),[f.elements,u]),v=c.useMemo(()=>({...f,...r,refs:g,elements:y,nodeId:t}),[f,g,y,t,r]);return eS(()=>{r.dataRef.current.floatingContext=v;const e=null==h?void 0:h.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),c.useMemo(()=>({...f,context:v,refs:g,elements:y}),[f,g,y,v])}const cS="active",uS="selected";function dS(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[cS]:t,[uS]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[aS]:""},...i,...t.map(t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,i]=t;var s;o&&[cS,uS].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(s=r.get(n))||s.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)})):e[n]=i)}),e):e,{})}}function hS(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}let fS=(0,c.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});fS.displayName="FloatingContext";let pS=(0,c.createContext)(null);function mS(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,c.useContext)(pS),n=(0,c.useMemo)(()=>e,[JSON.stringify(e,(e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t})]);Dw(()=>{null==t||t(null!=n?n:null)},[t,n]);let r=(0,c.useContext)(fS);return(0,c.useMemo)(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}function gS({children:e,enabled:t=!0}){let[n,r]=(0,c.useState)(null),[o,i]=(0,c.useState)(0),s=(0,c.useRef)(null),[a,l]=(0,c.useState)(null);!function(e){Dw(()=>{if(!e)return;let t=new MutationObserver(()=>{let t=window.getComputedStyle(e).maxHeight,n=parseFloat(t);if(isNaN(n))return;let r=parseInt(t);isNaN(r)||n!==r&&(e.style.maxHeight=`${Math.ceil(n)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}(a);let u=t&&null!==n&&null!==a,{to:d="bottom",gap:h=0,offset:f=0,padding:p=0,inner:m}=function(e,t){var n,r,o;let i=yS(null!=(n=null==e?void 0:e.gap)?n:"var(--anchor-gap, 0)",t),s=yS(null!=(r=null==e?void 0:e.offset)?r:"var(--anchor-offset, 0)",t),a=yS(null!=(o=null==e?void 0:e.padding)?o:"var(--anchor-padding, 0)",t);return{...e,gap:i,offset:s,padding:a}}(n,a),[g,y="center"]=d.split(" ");Dw(()=>{u&&i(0)},[u]);let{refs:v,floatingStyles:b,context:x}=lS({open:u,placement:"selection"===g?"center"===y?"bottom":`bottom-${y}`:"center"===y?`${g}`:`${g}-${y}`,strategy:"absolute",transform:!1,middleware:[xo({mainAxis:"selection"===g?0:h,crossAxis:f}),Eo({padding:p}),"selection"!==g&&Co({padding:p}),"selection"===g&&m?(C={...m,padding:p,overflowRef:s,offset:o,minItemsVisible:4,referenceOverflowThreshold:p,onFallbackChange(e){var t,n;if(!e)return;let r=x.elements.floating;if(!r)return;let o=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,s=Math.min(4,r.childElementCount),a=0,l=0;for(let e of null!=(n=null==(t=x.elements.floating)?void 0:t.childNodes)?n:[])if(Vw(e)){let t=e.offsetTop,n=t+e.clientHeight+o,i=r.scrollTop,c=i+r.clientHeight;if(!(t>=i&&n<=c)){l=Math.max(0,Math.min(n,c)-Math.max(t,i)),a=e.clientHeight;break}s--}s>=1&&i(e=>{let t=a*s-l+o;return e>=t?e:t})}},{name:"inner",options:C,async fn(e){const{listRef:t,overflowRef:n,onFallbackChange:r,offset:o=0,index:i=0,minItemsVisible:s=4,referenceOverflowThreshold:a=0,scrollRef:l,...c}=nr(C,e),{rects:u,elements:{floating:d}}=e,h=t.current[i],f=(null==l?void 0:l.current)||d,p=d.clientTop||f.clientTop,m=0!==d.clientTop,g=0!==f.clientTop,y=d===f;if(!h)return{};const v={...e,...await xo(-h.offsetTop-d.clientTop-u.reference.height/2-h.offsetHeight/2-o).fn(e)},b=await lo(hS(v,f.scrollHeight+p+d.clientTop),c),x=await lo(v,{...c,elementContext:"reference"}),E=Yn(0,b.top),w=v.y+E,S=(f.scrollHeight>f.clientHeight?e=>e:Xn)(Yn(0,f.scrollHeight+(m&&y||g?2*p:0)-E-Yn(0,b.bottom)));if(f.style.maxHeight=S+"px",f.scrollTop=E,r){const e=f.offsetHeight<h.offsetHeight*Qn(s,t.current.length)-1||x.top>=-a||x.bottom>=-a;cn.flushSync(()=>r(e))}return n&&(n.current=await lo(hS({...v,y:w},f.offsetHeight+p+d.clientTop),c)),{y:w}}}):null,So({padding:p,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:ao}),[E=g,w=y]=x.placement.split("-");var C;"selection"===g&&(E="selection");let S=(0,c.useMemo)(()=>({anchor:[E,w].filter(Boolean).join(" ")}),[E,w]),k=function(e,t){const{open:n,elements:r}=e,{enabled:o=!0,overflowRef:i,scrollRef:s,onChange:a}=t,l=ZC(a),u=c.useRef(!1),d=c.useRef(null),h=c.useRef(null);c.useEffect(()=>{if(!o)return;function e(e){if(e.ctrlKey||!t||null==i.current)return;const n=e.deltaY,r=i.current.top>=-.5,o=i.current.bottom>=-.5,s=t.scrollHeight-t.clientHeight,a=n<0?-1:1,c=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!o&&n<0?(e.preventDefault(),cn.flushSync(()=>{l(e=>e+Math[c](n,s*a))})):/firefox/i.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}())&&(t.scrollTop+=n))}const t=(null==s?void 0:s.current)||r.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame(()=>{d.current=t.scrollTop,null!=i.current&&(h.current={...i.current})}),()=>{d.current=null,h.current=null,t.removeEventListener("wheel",e)}):void 0},[o,n,r.floating,i,s,l]);const f=c.useMemo(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const e=(null==s?void 0:s.current)||r.floating;if(i.current&&e&&u.current){if(null!==d.current){const t=e.scrollTop-d.current;(i.current.bottom<-.5&&t<-1||i.current.top<-.5&&t>1)&&cn.flushSync(()=>l(e=>e+t))}requestAnimationFrame(()=>{d.current=e.scrollTop})}}}),[r.floating,l,i,s]);return c.useMemo(()=>o?{floating:f}:{},[o,f])}(x,{overflowRef:s,onChange:i}),{getReferenceProps:_,getFloatingProps:T}=function(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),o=c.useCallback(t=>dS(t,e,"reference"),t),i=c.useCallback(t=>dS(t,e,"floating"),n),s=c.useCallback(t=>dS(t,e,"item"),r);return c.useMemo(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s}),[o,i,s])}([k]),A=Rw(e=>{l(e),v.setFloating(e)});return c.createElement(pS.Provider,{value:r},c.createElement(fS.Provider,{value:{setFloating:A,setReference:v.setReference,styles:b,getReferenceProps:_,getFloatingProps:T,slot:S}},e))}function yS(e,t,n=void 0){let r=Aw(),o=Rw((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let o=bS(e,t);return[o,n=>{let i=vS(e);{let s=i.map(e=>window.getComputedStyle(t).getPropertyValue(e));r.requestAnimationFrame(function a(){r.nextFrame(a);let l=!1;for(let[e,n]of i.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(s[e]!==r){s[e]=r,l=!0;break}}if(!l)return;let c=bS(e,t);o!==c&&(n(c),o=c)})}return r.dispose}]}return[n,null]}),i=(0,c.useMemo)(()=>o(e,t)[0],[e,t]),[s=i,a]=(0,c.useState)();return Dw(()=>{let[n,r]=o(e,t);if(a(n),r)return r(a)},[e,t]),s}function vS(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];let n=t[1].slice(0,e).trim(),r=t[1].slice(e+1).trim();return r?[n,...vS(r)]:[n]}return[]}function bS(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}function xS(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))wS(n,ES(t,r),o);return n}function ES(e,t){return e?e+"["+t+"]":t}function wS(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())wS(e,ES(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(n)&&!(0,c.isValidElement)(n)&&xS(n,t,e)}function CS(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}pS.displayName="PlacementContext";var SS=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(SS||{}),kS=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(kS||{});function _S(){let e=function(){let e=(0,c.useRef)([]),t=(0,c.useCallback)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]);return(...n)=>{if(!n.every(e=>null==e))return e.current=n,t}}();return(0,c.useCallback)(t=>function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s,mergeRefs:a}){a=null!=a?a:AS;let l=DS(t,e);if(i)return TS(l,n,r,s,a);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return TS(t,n,r,s,a)}if(1&c){let{unmount:e=!0,...t}=l;return aC(e?0:1,{0:()=>null,1:()=>TS({...t,hidden:!0,style:{display:"none"}},n,r,s,a)})}return TS(l,n,r,s,a)}({mergeRefs:e,...t}),[e])}function TS(e,t={},n,r,o){let{as:i=n,children:s,refName:a="ref",...l}=FS(e,["unmount","static"]),u=void 0!==e.ref?{[a]:e.ref}:{},d="function"==typeof s?s(t):s;d=IS(d),"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let h={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e){h["data-headlessui-state"]=n.join(" ");for(let e of n)h[`data-${e}`]=""}}if(LS(i)&&(Object.keys(OS(l)).length>0||Object.keys(OS(h)).length>0)){if(!(!(0,c.isValidElement)(d)||Array.isArray(d)&&d.length>1||function(e){return LS(e.type)}(d))){let e=d.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>CS(t(...e),l.className):CS(t,l.className),r=n?{className:n}:{},i=DS(d.props,OS(FS(l,["ref"])));for(let e in h)e in i&&delete h[e];return(0,c.cloneElement)(d,Object.assign({},i,h,u,{ref:o(MS(d),u.ref)},r))}if(Object.keys(OS(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(OS(l)).concat(Object.keys(OS(h))).map(e=>` - ${e}`).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>` - ${e}`).join("\n")].join("\n"))}return(0,c.createElement)(i,Object.assign({},FS(l,["ref"]),!LS(i)&&u,!LS(i)&&h),d)}function AS(...e){return e.every(e=>null==e)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function DS(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let e in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(n[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function NS(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let e in n)Object.assign(t,{[e](...t){let r=n[e];for(let e of r)null==e||e(...t)}});return t}function RS(e){var t;return Object.assign((0,c.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function OS(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function FS(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function MS(e){return c.version.split(".")[0]>="19"?e.props.ref:e.ref}function IS(e){if(null!=e&&e.$$typeof===Symbol.for("react.lazy")){let t=e._payload;if(null!=t&&"fulfilled"===t.status)return IS(t.value)}return e}function LS(e){return e===c.Fragment||e===Symbol.for("react.fragment")}var PS=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(PS||{});let jS=RS(function(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":!(2&~r)||(null!=(n=o["aria-hidden"])?n:void 0),hidden:!(4&~r)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...!(4&~r)&&!!(2&~r)&&{display:"none"}}};return _S()({ourProps:i,theirProps:o,slot:{},defaultTag:"span",name:"Hidden"})}),VS=(0,c.createContext)(null);function BS({children:e}){let t=(0,c.useContext)(VS);if(!t)return c.createElement(c.Fragment,null,e);let{target:n}=t;return n?(0,cn.createPortal)(c.createElement(c.Fragment,null,e),n):null}function qS({data:e,form:t,disabled:n,onReset:r,overrides:o}){let[i,s]=(0,c.useState)(null),a=Aw();return(0,c.useEffect)(()=>{if(r&&i)return a.addEventListener(i,"reset",r)},[i,t,r]),c.createElement(BS,null,c.createElement($S,{setForm:s,formId:t}),xS(e).map(([e,r])=>c.createElement(jS,{features:PS.Hidden,...OS({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:e,value:r,...o})})))}function $S({setForm:e,formId:t}){return(0,c.useEffect)(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:c.createElement(jS,{features:PS.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}const zS=c.forwardRef(function({children:e,freeze:t},n){let r=KS(t,e);return(0,c.isValidElement)(r)?(0,c.cloneElement)(r,{ref:n}):c.createElement(c.Fragment,null,r)});function KS(e,t){let[n,r]=(0,c.useState)(t);return!e&&n!==t&&r(t),e?n:t}let US=(0,c.createContext)(void 0);function WS(){return(0,c.useContext)(US)}let HS=(0,c.createContext)(null);HS.displayName="OpenClosedContext";var GS=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(GS||{});function QS({value:e,children:t}){return c.createElement(HS.Provider,{value:e},t)}let YS=[];!function(){function e(){"loading"!==document.readyState&&((()=>{function e(e){if(!Bw(e.target)||e.target===document.body||YS[0]===e.target)return;let t=e.target;t=t.closest(EC),YS.unshift(null!=t?t:e.target),YS=YS.filter(e=>null!=e&&e.isConnected),YS.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})})(),document.removeEventListener("DOMContentLoaded",e))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",e),e())}();var XS=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(XS||{});function JS(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===o&&(o=n.length);for(let e=o-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}let ZS=(0,c.createContext)(null);function ek(){let e=(0,c.useContext)(ZS);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,ek),e}return e}ZS.displayName="DescriptionContext";let tk=RS(function(e,t){let n=(0,c.useId)(),r=YC(),{id:o=`headlessui-description-${n}`,...i}=e,s=ek(),a=$C(t);Dw(()=>s.register(o),[o,s.register]);let l=BC({...s.slot,disabled:r||!1}),u={ref:a,...s.props,id:o};return _S()({ourProps:u,theirProps:i,slot:l,defaultTag:"p",name:s.name||"Description"})});Object.assign(tk,{});var nk=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(nk||{});let rk=(0,c.createContext)(null);function ok(){let e=(0,c.useContext)(rk);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,ok),e}return e}function ik(e){var t,n,r;let o=null!=(n=null==(t=(0,c.useContext)(rk))?void 0:t.value)?n:void 0;return(null!=(r=null==e?void 0:e.length)?r:0)>0?[o,...e].filter(Boolean).join(" "):o}rk.displayName="LabelContext";let sk=RS(function(e,t){var n;let r=(0,c.useId)(),o=ok(),i=WS(),s=YC(),{id:a=`headlessui-label-${r}`,htmlFor:l=(null!=i?i:null==(n=o.props)?void 0:n.htmlFor),passive:u=!1,...d}=e,h=$C(t);Dw(()=>o.register(a),[a,o.register]);let f=Rw(e=>{let t=e.currentTarget;if((e.target===e.currentTarget||!Ww(e.target))&&(zw(t)&&e.preventDefault(),o.props&&"onClick"in o.props&&"function"==typeof o.props.onClick&&o.props.onClick(e),zw(t))){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;($w(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),p=BC({...o.slot,disabled:s||!1}),m={ref:h,...o.props,id:a,htmlFor:l,onClick:f};return u&&("onClick"in m&&(delete m.htmlFor,delete m.onClick),"onClick"in d&&delete d.onClick),_S()({ourProps:m,theirProps:d,slot:p,defaultTag:l?"label":"div",name:o.name||"Label"})}),ak=Object.assign(sk,{});function lk(e){let t=Rw(e),n=(0,c.useRef)(!1);(0,c.useEffect)(()=>(n.current=!1,()=>{n.current=!0,_w(()=>{n.current&&t()})}),[t])}let ck=(0,c.createContext)(!1);let uk=c.Fragment,dk=RS(function(e,t){let{ownerDocument:n=null,...r}=e,o=(0,c.useRef)(null),i=$C(function(e,t=!0){return Object.assign(e,{[qC]:t})}(e=>{o.current=e}),t),s=OC(o.current),a=function(e){let t=(0,c.useContext)(ck),n=(0,c.useContext)(fk),[r,o]=(0,c.useState)(()=>{var r;if(!t&&null!==n)return null!=(r=n.current)?r:null;if(Cw.isServer)return null;let o=null==e?void 0:e.getElementById("headlessui-portal-root");if(o)return o;if(null===e)return null;let i=e.createElement("div");return i.setAttribute("id","headlessui-portal-root"),e.body.appendChild(i)});return(0,c.useEffect)(()=>{null!==r&&(null!=e&&e.body.contains(r)||null==e||e.body.appendChild(r))},[r,e]),(0,c.useEffect)(()=>{t||null!==n&&o(n.current)},[n,o,t]),r}(null!=n?n:s),l=(0,c.useContext)(pk),d=Aw(),h=function(){let e=function(){let e="undefined"==typeof document;return(e=>e.useSyncExternalStore)(u)(()=>()=>{},()=>!1,()=>!e)}(),[t,n]=c.useState(Cw.isHandoffComplete);return t&&!1===Cw.isHandoffComplete&&n(!1),c.useEffect(()=>{!0!==t&&n(!0)},[t]),c.useEffect(()=>Cw.handoff(),[]),!e&&t}(),f=_S();return lk(()=>{var e;a&&a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a))}),a&&h?(0,cn.createPortal)(c.createElement("div",{"data-headlessui-portal":"",ref:e=>{d.dispose(),l&&e&&d.add(l.register(e))}},f({ourProps:{ref:i},theirProps:r,slot:{},defaultTag:uk,name:"Portal"})),a):null}),hk=c.Fragment,fk=(0,c.createContext)(null),pk=(0,c.createContext)(null),mk=RS(function(e,t){let n=$C(t),{enabled:r=!0,ownerDocument:o,...i}=e,s=_S();return r?c.createElement(dk,{...i,ownerDocument:o,ref:n}):s({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:uk,name:"Portal"})}),gk=RS(function(e,t){let{target:n,...r}=e,o={ref:$C(t)},i=_S();return c.createElement(fk.Provider,{value:n},i({ourProps:o,theirProps:r,defaultTag:hk,name:"Popover.Group"}))}),yk=Object.assign(mk,{Group:gk});const vk={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function bk(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}var xk=Object.defineProperty,Ek=(e,t,n)=>(((e,t,n)=>{t in e?xk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),wk=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(wk||{}),Ck=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Ck||{}),Sk=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(Sk||{}),kk=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.SetTyping=3]="SetTyping",e[e.RegisterOption=4]="RegisterOption",e[e.UnregisterOption=5]="UnregisterOption",e[e.DefaultToFirstOption=6]="DefaultToFirstOption",e[e.SetActivationTrigger=7]="SetActivationTrigger",e[e.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",e[e.SetInputElement=9]="SetInputElement",e[e.SetButtonElement=10]="SetButtonElement",e[e.SetOptionsElement=11]="SetOptionsElement",e[e.MarkInputAsMoved=12]="MarkInputAsMoved",e))(kk||{});function _k(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=t(e.options.slice()),o=r.length>0&&null!==r[0].dataRef.current.order?r.sort((e,t)=>e.dataRef.current.order-t.dataRef.current.order):function(e,t=e=>e){return e.slice().sort((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}(r,e=>e.dataRef.current.domRef.current),i=n?o.indexOf(n):null;return-1===i&&(i=null),{options:o,activeOptionIndex:i}}let Tk={1(e){var t;if(null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState)return e;let n=e.inputElement?vk.Tracked(bk(e.inputElement)):e.inputPositionState;return{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,inputPositionState:n,__demoMode:!1}},0(e){var t,n;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;if(null!=(n=e.dataRef.current)&&n.value){let t=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(-1!==t)return{...e,activeOptionIndex:t,comboboxState:0,__demoMode:!1,inputPositionState:vk.Idle}}return{...e,comboboxState:0,inputPositionState:vk.Idle,__demoMode:!1}},3:(e,t)=>e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping},2(e,t){var n,r,o,i;if(null!=(n=e.dataRef.current)&&n.disabled||e.optionsElement&&(null==(r=e.dataRef.current)||!r.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let{options:n,disabled:r}=e.virtual,i=t.focus===XS.Specific?t.idx:JS(t,{resolveItems:()=>n,resolveActiveIndex:()=>{var t,o;return null!=(o=null!=(t=e.activeOptionIndex)?t:n.findIndex(e=>!r(e)))?o:null},resolveDisabled:r,resolveId(){throw new Error("Function not implemented.")}}),s=null!=(o=t.trigger)?o:2;return e.activeOptionIndex===i&&e.activationTrigger===s?e:{...e,activeOptionIndex:i,activationTrigger:s,isTyping:!1,__demoMode:!1}}let s=_k(e);if(null===s.activeOptionIndex){let e=s.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(s.activeOptionIndex=e)}let a=t.focus===XS.Specific?t.idx:JS(t,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),l=null!=(i=t.trigger)?i:2;return e.activeOptionIndex===a&&e.activationTrigger===l?e:{...e,...s,isTyping:!1,activeOptionIndex:a,activationTrigger:l,__demoMode:!1}},4:(e,t)=>{var n,r,o,i;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:[...e.options,t.payload]};let s=t.payload,a=_k(e,e=>(e.push(s),e));null===e.activeOptionIndex&&null!=(o=(r=e.dataRef.current).isSelected)&&o.call(r,t.payload.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(s));let l={...e,...a,activationTrigger:2};return null!=(i=e.dataRef.current)&&i.__demoMode&&void 0===e.dataRef.current.value&&(l.activeOptionIndex=0),l},5:(e,t)=>{var n;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:e.options.filter(e=>e.id!==t.id)};let r=_k(e,e=>{let n=e.findIndex(e=>e.id===t.id);return-1!==n&&e.splice(n,1),e});return{...e,...r,activationTrigger:2}},6:(e,t)=>e.defaultToFirstOption===t.value?e:{...e,defaultToFirstOption:t.value},7:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},8:(e,t)=>{var n,r;if(null===e.virtual)return{...e,virtual:{options:t.options,disabled:null!=(n=t.disabled)?n:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let o=e.activeOptionIndex;if(null!==e.activeOptionIndex){let n=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);o=-1!==n?n:null}return{...e,activeOptionIndex:o,virtual:{options:t.options,disabled:null!=(r=t.disabled)?r:()=>!1}}},9:(e,t)=>e.inputElement===t.element?e:{...e,inputElement:t.element},10:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},11:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},12:e=>"Tracked"!==e.inputPositionState.kind?e:{...e,inputPositionState:vk.Moved}};class Ak extends rC{constructor(e){super(e),Ek(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:r,value:o}=this.state.dataRef.current;return aC(r,{0:()=>null==t?void 0:t(e),1:()=>{let r=o.slice(),i=r.findIndex(t=>n(t,e));return-1===i?r.push(e):r.splice(i,1),null==t?void 0:t(r)}})},registerOption:(e,t)=>(this.send({type:4,payload:{id:e,dataRef:t}}),()=>{this.state.activeOptionIndex===this.state.dataRef.current.calculateIndex(t.current.value)&&this.send({type:6,value:!0}),this.send({type:5,id:e})}),goToOption:(e,t)=>(this.send({type:6,value:!1}),this.send({type:2,...e,trigger:t})),setIsTyping:e=>{this.send({type:3,isTyping:e})},closeCombobox:()=>{var e,t;this.send({type:1}),this.send({type:6,value:!1}),null==(t=(e=this.state.dataRef.current).onClose)||t.call(e)},openCombobox:()=>{this.send({type:0}),this.send({type:6,value:!0})},setActivationTrigger:e=>{this.send({type:7,trigger:e})},selectActiveOption:()=>{let e=this.selectors.activeOptionIndex(this.state);if(null!==e){if(this.actions.setIsTyping(!1),this.state.virtual)this.actions.onChange(this.state.virtual.options[e]);else{let{dataRef:t}=this.state.options[e];this.actions.onChange(t.current.value)}this.actions.goToOption({focus:XS.Specific,idx:e})}},setInputElement:e=>{this.send({type:9,element:e})},setButtonElement:e=>{this.send({type:10,element:e})},setOptionsElement:e=>{this.send({type:11,element:e})}}),Ek(this,"selectors",{activeDescendantId:e=>{var t,n;let r=this.selectors.activeOptionIndex(e);if(null!==r)return e.virtual?null==(n=e.options.find(t=>!t.dataRef.current.disabled&&e.dataRef.current.compare(t.dataRef.current.value,e.virtual.options[r])))?void 0:n.id:null==(t=e.options[r])?void 0:t.id},activeOptionIndex:e=>{if(e.defaultToFirstOption&&null===e.activeOptionIndex&&(e.virtual?e.virtual.options.length>0:e.options.length>0)){if(e.virtual){let{options:t,disabled:n}=e.virtual,r=t.findIndex(e=>{var t;return!(null!=(t=null==n?void 0:n(e))&&t)});if(-1!==r)return r}let t=e.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==t)return t}return e.activeOptionIndex},activeOption:e=>{var t,n;let r=this.selectors.activeOptionIndex(e);return null===r?null:e.virtual?e.virtual.options[null!=r?r:0]:null!=(n=null==(t=e.options[r])?void 0:t.dataRef.current.value)?n:null},isActive:(e,t,n)=>{var r;let o=this.selectors.activeOptionIndex(e);return null!==o&&(e.virtual?o===e.dataRef.current.calculateIndex(t):(null==(r=e.options[o])?void 0:r.id)===n)},shouldScrollIntoView:(e,t,n)=>!(e.virtual||e.__demoMode||0!==e.comboboxState||0===e.activationTrigger||!this.selectors.isActive(e,t,n)),didInputMove:e=>"Moved"===e.inputPositionState.kind});{let e=this.state.id,t=fC.get(null);this.disposables.add(t.on(uC.Push,n=>{!t.selectors.isTop(n,e)&&0===this.state.comboboxState&&this.actions.closeCombobox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.inputElement&&(e.dispose(),e.add(function(e,t,n){let r=Tw();if("Tracked"===t.kind){let o=function(){i!==bk(e)&&(r.dispose(),n())},{position:i}=t,s=new ResizeObserver(o);s.observe(e),r.add(()=>s.disconnect()),r.addEventListener(window,"scroll",o,{passive:!0}),r.addEventListener(window,"resize",o)}return()=>r.dispose()}(t.inputElement,t.inputPositionState,()=>{this.send({type:12})})))})})}static new({id:e,virtual:t=null,__demoMode:n=!1}){var r;return new Ak({id:e,dataRef:{current:{}},comboboxState:n?0:1,isTyping:!1,options:[],virtual:t?{options:t.options,disabled:null!=(r=t.disabled)?r:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:n,inputPositionState:vk.Idle})}reduce(e,t){return aC(t.type,Tk,e,t)}}const Dk=(0,c.createContext)(null);function Nk(e){let t=(0,c.useContext)(Dk);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Rk),t}return t}function Rk({id:e,virtual:t=null,__demoMode:n=!1}){let r=(0,c.useMemo)(()=>Ak.new({id:e,virtual:t,__demoMode:n}),[]);return lk(()=>r.dispose()),r}let Ok=(0,c.createContext)(null);function Fk(e){let t=(0,c.useContext)(Ok);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Fk),t}return t}Ok.displayName="ComboboxDataContext";let Mk=(0,c.createContext)(null);function Ik(e){let t=Nk("VirtualProvider"),n=Fk("VirtualProvider"),{options:r}=n.virtual,o=mC(t,e=>e.optionsElement),[i,s]=(0,c.useMemo)(()=>{let e=o;if(!e)return[0,0];let t=window.getComputedStyle(e);return[parseFloat(t.paddingBlockStart||t.paddingTop),parseFloat(t.paddingBlockEnd||t.paddingBottom)]},[o]),a=function(e){return function({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:n="transform",...r}){const o=c.useReducer(e=>e+1,0)[1],i=c.useRef({enabled:t,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});i.current.enabled=t,i.current.mode=n;const s=e=>{const t=i.current;if(!t.enabled||!t.container)return;const n=e.getTotalSize();if(n!==t.lastSize){t.lastSize=n;const r=e.options.horizontal?"width":"height";t.container.style[r]=`${n}px`}const r=!!e.options.horizontal,o="transform"===t.mode,s=r?"left":"top",a=e.options.scrollMargin,l=e.getVirtualItems();for(const n of l){const i=n.start-a,l=e.elementsCache.get(n.key);l&&t.lastPositions.get(l)!==i&&(t.lastPositions.set(l,i),o?l.style.transform=r?`translate3d(${i}px, 0, 0)`:`translate3d(0, ${i}px, 0)`:l.style[s]=`${i}px`)}},a={...r,onChange:(t,n)=>{var a;const l=i.current;let c=!0;if(l.enabled){s(t);const e=t.range,n=l.prevRange;c=!n||n.isScrolling!==t.isScrolling||n.startIndex!==(null==e?void 0:e.startIndex)||n.endIndex!==(null==e?void 0:e.endIndex),c&&(l.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:t.isScrolling}:null)}c&&(e&&n?(0,cn.flushSync)(o):o()),null==(a=r.onChange)||a.call(r,t,n)}},[l]=c.useState(()=>{const e=new vw(a);return Object.assign(e,{containerRef:t=>{const n=i.current;if(n.container=t,n.lastSize=null,t&&n.enabled){const r=e.getTotalSize();n.lastSize=r;const o=e.options.horizontal?"width":"height";t.style[o]=`${r}px`}}})});return l.setOptions(a),xw(()=>l._didMount(),[]),xw(()=>l._willUpdate()),xw(()=>{s(l)}),l}({observeElementRect:hw,observeElementOffset:mw,scrollToFn:yw,...e})}({enabled:0!==r.length,scrollPaddingStart:i,scrollPaddingEnd:s,count:r.length,estimateSize:()=>40,getScrollElement:()=>t.state.optionsElement,overscan:12}),[l,u]=(0,c.useState)(0);Dw(()=>{u(e=>e+1)},[r]);let d=a.getVirtualItems(),h=mC(t,e=>e.activationTrigger===Sk.Pointer),f=mC(t,t.selectors.activeOptionIndex);return 0===d.length?null:c.createElement(Mk.Provider,{value:a},c.createElement("div",{style:{position:"relative",width:"100%",height:`${a.getTotalSize()}px`},ref:e=>{e&&(h||null!==f&&r.length>f&&a.scrollToIndex(f))}},d.map(t=>{var n;return c.createElement(c.Fragment,{key:t.key},c.cloneElement(null==(n=e.children)?void 0:n.call(e,{...e.slot,option:r[t.index]}),{key:`${l}-${t.key}`,"data-index":t.index,"aria-setsize":r.length,"aria-posinset":t.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${t.start}px)`,overflowAnchor:"none"}}))})))}let Lk=c.Fragment,Pk=SS.RenderStrategy|SS.Static,jk=RS(function(e,t){let n=(0,c.useId)(),r=YC(),{value:o,defaultValue:i,onChange:s,form:a,name:l,by:u,invalid:d=!1,disabled:h=r||!1,onClose:f,__demoMode:p=!1,multiple:m=!1,immediate:g=!1,virtual:y=null,nullable:v,...b}=e,x=function(e){let[t]=(0,c.useState)(e);return t}(i),[E=(m?[]:void 0),w]=function(e,t,n){let[r,o]=(0,c.useState)(n),i=void 0!==e,s=(0,c.useRef)(i),a=(0,c.useRef)(!1),l=(0,c.useRef)(!1);return!i||s.current||a.current?!i&&s.current&&!l.current&&(l.current=!0,s.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(a.current=!0,s.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[i?e:r,Rw(e=>(i||(0,cn.flushSync)(()=>o(e)),null==t?void 0:t(e)))]}(o,s,x),C=Rk({id:n,virtual:y,__demoMode:p}),S=(0,c.useRef)({static:!1,hold:!1}),k=Fw(u),_=Rw(e=>y?null===u?y.options.indexOf(e):y.options.findIndex(t=>k(t,e)):C.state.options.findIndex(t=>k(t.dataRef.current.value,e))),T=(0,c.useCallback)(e=>aC(N.mode,{[Ck.Multi]:()=>E.some(t=>k(t,e)),[Ck.Single]:()=>k(E,e)}),[E]),A=mC(C,e=>e.virtual),D=Rw(()=>null==f?void 0:f()),N=(0,c.useMemo)(()=>({__demoMode:p,immediate:g,optionsPropsRef:S,value:E,defaultValue:x,disabled:h,invalid:d,mode:m?Ck.Multi:Ck.Single,virtual:y?A:null,onChange:w,isSelected:T,calculateIndex:_,compare:k,onClose:D}),[p,g,S,E,x,h,d,m,y,A,w,T,_,k,D]);Dw(()=>{var e;y&&C.send({type:kk.UpdateVirtualConfiguration,options:y.options,disabled:null!=(e=y.disabled)?e:null})},[y,null==y?void 0:y.options,null==y?void 0:y.disabled]),Dw(()=>{C.state.dataRef.current=N},[N]);let[R,O,F,M]=mC(C,e=>[e.comboboxState,e.buttonElement,e.inputElement,e.optionsElement]),I=fC.get(null),L=mC(I,(0,c.useCallback)(e=>I.selectors.isTop(e,n),[I,n]));RC(L,[O,F,M],()=>C.actions.closeCombobox());let P=mC(C,C.selectors.activeOptionIndex),j=mC(C,C.selectors.activeOption),V=BC({open:R===wk.Open,disabled:h,invalid:d,activeIndex:P,activeOption:j,value:E}),[B,q]=function({inherit:e=!1}={}){let t=ik(),[n,r]=(0,c.useState)([]),o=e?[t,...n].filter(Boolean):n;return[o.length>0?o.join(" "):void 0,(0,c.useMemo)(()=>function(e){let t=Rw(e=>(r(t=>[...t,e]),()=>r(t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))),n=(0,c.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return c.createElement(rk.Provider,{value:n},e.children)},[r])]}(),$=null===t?{}:{ref:t},z=(0,c.useCallback)(()=>{if(void 0!==x)return null==w?void 0:w(x)},[w,x]),K=_S();return c.createElement(q,{value:B,props:{htmlFor:null==F?void 0:F.id},slot:{open:R===wk.Open,disabled:h}},c.createElement(gS,null,c.createElement(Ok.Provider,{value:N},c.createElement(Dk.Provider,{value:C},c.createElement(QS,{value:aC(R,{[wk.Open]:GS.Open,[wk.Closed]:GS.Closed})},null!=l&&c.createElement(qS,{disabled:h,data:null!=E?{[l]:E}:{},form:a,onReset:z}),K({ourProps:$,theirProps:b,slot:V,defaultTag:Lk,name:"Combobox"}))))))}),Vk=RS(function(e,t){let n=Nk("Combobox.Button"),r=Fk("Combobox.Button"),[o,i]=(0,c.useState)(null),s=$C(t,i,n.actions.setButtonElement),a=(0,c.useId)(),{id:l=`headlessui-combobox-button-${a}`,disabled:u=r.disabled||!1,autoFocus:d=!1,...h}=e,[f,p,m]=mC(n,e=>[e.comboboxState,e.inputElement,e.optionsElement]),g=IC(p);!function(e,{trigger:t,action:n,close:r,select:o}){let i=(0,c.useRef)(null),s=(0,c.useRef)(null),a=(0,c.useRef)(null);NC(e&&null!==t,"pointerdown",e=>{Pw(null==e?void 0:e.target)&&null!=t&&t.contains(e.target)&&(s.current=e.x,a.current=e.y,i.current=e.timeStamp)}),NC(e&&null!==t,"pointerup",e=>{var t,l;let c=i.current;if(null===c||(i.current=null,!Bw(e.target))||Math.abs(e.x-(null!=(t=s.current)?t:e.x))<5&&Math.abs(e.y-(null!=(l=a.current)?l:e.y))<5)return;let u=n(e);switch(u.kind){case 0:return;case 1:e.timeStamp-c>200&&(o(u.target),r());break;case 2:r()}},{capture:!0})}(f===wk.Open,{trigger:o,action:(0,c.useCallback)(e=>{if(null!=o&&o.contains(e.target))return MC.Ignore;if(null!=p&&p.contains(e.target))return MC.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return Vw(t)?MC.Select(t):null!=m&&m.contains(e.target)?MC.Ignore:MC.Close},[o,p,m]),close:n.actions.closeCombobox,select:n.actions.selectActiveOption});let y=Rw(e=>{switch(e.key){case nk.Space:case nk.Enter:return e.preventDefault(),e.stopPropagation(),n.state.comboboxState===wk.Closed&&(0,cn.flushSync)(()=>n.actions.openCombobox()),void g();case nk.ArrowDown:return e.preventDefault(),e.stopPropagation(),n.state.comboboxState===wk.Closed&&((0,cn.flushSync)(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:XS.First})),void g();case nk.ArrowUp:return e.preventDefault(),e.stopPropagation(),n.state.comboboxState===wk.Closed&&((0,cn.flushSync)(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:XS.Last})),void g();case nk.Escape:if(n.state.comboboxState!==wk.Open)return;return e.preventDefault(),n.state.optionsElement&&!r.optionsPropsRef.current.static&&e.stopPropagation(),(0,cn.flushSync)(()=>n.actions.closeCombobox()),void g();default:return}}),v=function(e){let t=(0,c.useRef)(null),n=Rw(n=>{t.current=n.pointerType,!Hw(n.currentTarget)&&"mouse"===n.pointerType&&n.button===Lw.Left&&(n.preventDefault(),e())}),r=Rw(n=>{"mouse"!==t.current&&(Hw(n.currentTarget)||e())});return{onPointerDown:n,onClick:r}}(()=>{n.state.comboboxState===wk.Open?n.actions.closeCombobox():n.actions.openCombobox(),g()}),b=ik([l]),{isFocusVisible:x,focusProps:E}=JE({autoFocus:d}),{isHovered:w,hoverProps:C}=rw({isDisabled:u}),{pressed:S,pressProps:k}=function({disabled:e=!1}={}){let t=(0,c.useRef)(null),[n,r]=(0,c.useState)(!1),o=Aw(),i=Rw(()=>{t.current=null,r(!1),o.dispose()}),s=Rw(e=>{if(o.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=Sw(e.currentTarget);o.addEventListener(n,"pointerup",i,!1),o.addEventListener(n,"pointermove",e=>{if(t.current){let n=function(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);r(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(n,t.current.getBoundingClientRect()))}},!1),o.addEventListener(n,"pointercancel",i,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:i,onClick:i}}}({disabled:u}),_=BC({open:f===wk.Open,active:S||f===wk.Open,disabled:u,invalid:r.invalid,value:r.value,hover:w,focus:x}),T=NS({ref:s,id:l,type:LC(e,o),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==m?void 0:m.id,"aria-expanded":f===wk.Open,"aria-labelledby":b,disabled:u||void 0,autoFocus:d,onKeyDown:y},v,E,C,k);return _S()({ourProps:T,theirProps:h,slot:_,defaultTag:"button",name:"Combobox.Button"})}),Bk=RS(function(e,t){var n,r;let o=Nk("Combobox.Input"),i=Fk("Combobox.Input"),s=(0,c.useId)(),a=WS(),{id:l=a||`headlessui-combobox-input-${s}`,onChange:u,displayValue:d,disabled:h=i.disabled||!1,autoFocus:f=!1,type:p="text",...m}=e,g=(0,c.useRef)(null),y=$C(g,t,(0,c.useContext)(fS).setReference,o.actions.setInputElement),[v,b]=mC(o,e=>[e.comboboxState,e.isTyping]),x=Aw(),E=Rw(()=>{o.actions.onChange(null),o.state.optionsElement&&(o.state.optionsElement.scrollTop=0),o.actions.goToOption({focus:XS.Nothing})}),w=(0,c.useMemo)(()=>{var e;return"function"==typeof d&&void 0!==i.value?null!=(e=d(i.value))?e:"":"string"==typeof i.value?i.value:""},[i.value,d]);GC(([e,t],[n,r])=>{if(o.state.isTyping)return;let i=g.current;i&&((r===wk.Open&&t===wk.Closed||e!==n)&&(i.value=e),requestAnimationFrame(()=>{if(o.state.isTyping||!i||kw(i))return;let{selectionStart:e,selectionEnd:t}=i;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&i.setSelectionRange(i.value.length,i.value.length)}))},[w,v,b]),GC(([e],[t])=>{if(e===wk.Open&&t===wk.Closed){if(o.state.isTyping)return;let e=g.current;if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:r,selectionDirection:i}=e;e.value="",e.value=t,null!==i?e.setSelectionRange(n,r,i):e.setSelectionRange(n,r)}},[v]);let C=(0,c.useRef)(!1),S=Rw(()=>{C.current=!0}),k=Rw(()=>{x.nextFrame(()=>{C.current=!1})}),_=Rw(e=>{switch(o.actions.setIsTyping(!0),e.key){case nk.Enter:if(o.state.comboboxState!==wk.Open||C.current)return;if(e.preventDefault(),e.stopPropagation(),null===o.selectors.activeOptionIndex(o.state))return void o.actions.closeCombobox();o.actions.selectActiveOption(),i.mode===Ck.Single&&o.actions.closeCombobox();break;case nk.ArrowDown:return e.preventDefault(),e.stopPropagation(),aC(o.state.comboboxState,{[wk.Open]:()=>o.actions.goToOption({focus:XS.Next}),[wk.Closed]:()=>o.actions.openCombobox()});case nk.ArrowUp:return e.preventDefault(),e.stopPropagation(),aC(o.state.comboboxState,{[wk.Open]:()=>o.actions.goToOption({focus:XS.Previous}),[wk.Closed]:()=>{(0,cn.flushSync)(()=>o.actions.openCombobox()),i.value||o.actions.goToOption({focus:XS.Last})}});case nk.Home:if(o.state.comboboxState===wk.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:XS.First});case nk.PageUp:return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:XS.First});case nk.End:if(o.state.comboboxState===wk.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:XS.Last});case nk.PageDown:return e.preventDefault(),e.stopPropagation(),o.actions.goToOption({focus:XS.Last});case nk.Escape:return o.state.comboboxState!==wk.Open?void 0:(e.preventDefault(),o.state.optionsElement&&!i.optionsPropsRef.current.static&&e.stopPropagation(),i.mode===Ck.Single&&null===i.value&&E(),o.actions.closeCombobox());case nk.Tab:if(o.actions.setIsTyping(!1),o.state.comboboxState!==wk.Open)return;i.mode===Ck.Single&&o.state.activationTrigger!==Sk.Focus&&o.actions.selectActiveOption(),o.actions.closeCombobox()}}),T=Rw(e=>{null==u||u(e),i.mode===Ck.Single&&""===e.target.value&&E(),o.actions.openCombobox()}),A=Rw(e=>{var t,n,r;let s=null!=(t=e.relatedTarget)?t:YS.find(t=>t!==e.currentTarget);if(!(null!=(n=o.state.optionsElement)&&n.contains(s)||null!=(r=o.state.buttonElement)&&r.contains(s)||o.state.comboboxState!==wk.Open))return e.preventDefault(),i.mode===Ck.Single&&null===i.value&&E(),o.actions.closeCombobox()}),D=Rw(e=>{var t,n,r;let s=null!=(t=e.relatedTarget)?t:YS.find(t=>t!==e.currentTarget);null!=(n=o.state.buttonElement)&&n.contains(s)||null!=(r=o.state.optionsElement)&&r.contains(s)||i.disabled||i.immediate&&o.state.comboboxState!==wk.Open&&x.microTask(()=>{(0,cn.flushSync)(()=>o.actions.openCombobox()),o.actions.setActivationTrigger(Sk.Focus)})}),N=ik(),R=function(){var e,t;return null!=(t=null==(e=(0,c.useContext)(ZS))?void 0:e.value)?t:void 0}(),{isFocused:O,focusProps:F}=JE({autoFocus:f}),{isHovered:M,hoverProps:I}=rw({isDisabled:h}),L=mC(o,e=>e.optionsElement),P=BC({open:v===wk.Open,disabled:h,invalid:i.invalid,hover:M,focus:O,autofocus:f}),j=NS({ref:y,id:l,role:"combobox",type:p,"aria-controls":null==L?void 0:L.id,"aria-expanded":v===wk.Open,"aria-activedescendant":mC(o,o.selectors.activeDescendantId),"aria-labelledby":N,"aria-describedby":R,"aria-autocomplete":"list",defaultValue:null!=(r=null!=(n=e.defaultValue)?n:void 0!==i.defaultValue?null==d?void 0:d(i.defaultValue):null)?r:i.defaultValue,disabled:h||void 0,autoFocus:f,onCompositionStart:S,onCompositionEnd:k,onKeyDown:_,onChange:T,onFocus:D,onBlur:A},F,I);return _S()({ourProps:j,theirProps:m,slot:P,defaultTag:"input",name:"Combobox.Input"})}),qk=ak,$k=RS(function(e,t){var n,r,o;let i=(0,c.useId)(),{id:s=`headlessui-combobox-options-${i}`,hold:a=!1,anchor:l,portal:u=!1,modal:d=!0,transition:h=!1,...f}=e,p=Nk("Combobox.Options"),m=Fk("Combobox.Options"),g=function(e){return(0,c.useMemo)(()=>e?"string"==typeof e?{to:e}:e:null,[e])}(l);g&&(u=!0);let[y,v]=mS(g),[b,x]=(0,c.useState)(null),E=function(){let{getFloatingProps:e,slot:t}=(0,c.useContext)(fS);return(0,c.useCallback)((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}(),w=$C(t,g?y:null,p.actions.setOptionsElement,x),[C,S,k,_,T]=mC(p,e=>[e.comboboxState,e.inputElement,e.buttonElement,e.optionsElement,e.activationTrigger]),A=OC(S||k),D=OC(_),N=(0,c.useContext)(HS),[R,O]=function(e,t,n,r){let[o,i]=(0,c.useState)(n),{hasFlag:s,addFlag:a,removeFlag:l}=function(e=0){let[t,n]=(0,c.useState)(e),r=(0,c.useCallback)(e=>n(e),[]),o=(0,c.useCallback)(e=>n(t=>t|e),[]),i=(0,c.useCallback)(e=>(t&e)===e,[t]),s=(0,c.useCallback)(e=>n(t=>t&~e),[]),a=(0,c.useCallback)(e=>n(t=>t^e),[]);return{flags:t,setFlag:r,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:a}}(e&&o?3:0),u=(0,c.useRef)(!1),d=(0,c.useRef)(!1),h=Aw();return Dw(()=>{var o;if(e)return n&&i(!0),t?(null==(o=null==r?void 0:r.start)||o.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:o}){let i=Tw();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return void n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:o}),i.nextFrame(()=>{n(),i.requestAnimationFrame(()=>{i.add(function(e,t){var n,r;let o=Tw();if(!e)return o.dispose;let i=!1;o.add(()=>{i=!0});let s=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter(e=>e instanceof CSSTransition))?r:[];return 0===s.length?(t(),o.dispose):(Promise.allSettled(s.map(e=>e.finished)).then(()=>{i||t()}),o.dispose)}(e,r))})}),i.dispose}(t,{inFlight:u,prepare(){d.current?d.current=!1:d.current=u.current,u.current=!0,!d.current&&(n?(a(3),l(4)):(a(4),l(2)))},run(){d.current?n?(l(3),a(4)):(l(4),a(3)):n?l(1):a(1)},done(){var e;d.current&&function(e){var t,n;return(null!=(n=null==(t=e.getAnimations)?void 0:t.call(e))?n:[]).some(e=>e instanceof CSSTransition&&"finished"!==e.playState)}(t)||(u.current=!1,l(7),n||i(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})):void(n&&a(3))},[e,n,t,h]),e?[o,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}(h,b,null!==N?(N&GS.Open)===GS.Open:C===wk.Open);!function(e,t,n){let r=Nw(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()});(0,c.useEffect)(()=>{if(!e)return;let n=null===t?null:Vw(t)?t:t.current;if(!n)return;let o=Tw();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver(()=>r.current(n));e.observe(n),o.add(()=>e.disconnect())}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver(()=>r.current(n));e.observe(n),o.add(()=>e.disconnect())}return()=>o.dispose()},[t,r,e])}(R,S,p.actions.closeCombobox),function(e,t,n=()=>[document.body]){!function(e,t,n=()=>({containers:[]})){let r=function(e){return(0,c.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot)}(VC),o=t?r.get(t):void 0,i=!!o&&o.count>0;Dw(()=>{if(t&&e)return VC.dispatch("PUSH",t,n),()=>VC.dispatch("POP",t,n)},[e,t])}(yC(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}})}(!m.__demoMode&&d&&C===wk.Open,D),function(e,{allowed:t,disallowed:n}={}){let r=yC(e,"inert-others");Dw(()=>{var e,o;if(!r)return;let i=Tw();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&i.add(xC(t));let s=null!=(o=null==t?void 0:t())?o:[];for(let e of s){if(!e)continue;let t=Sw(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)s.some(t=>e.contains(t))||i.add(xC(e));n=n.parentElement}}return i.dispose},[r,t,n])}(!m.__demoMode&&d&&C===wk.Open,{allowed:(0,c.useCallback)(()=>[S,k,_],[S,k,_])});let F=!mC(p,p.selectors.didInputMove)&&R;Dw(()=>{var t;m.optionsPropsRef.current.static=null!=(t=e.static)&&t},[m.optionsPropsRef,e.static]),Dw(()=>{m.optionsPropsRef.current.hold=a},[m.optionsPropsRef,a]),function(e,{container:t,accept:n,walk:r}){let o=(0,c.useRef)(n),i=(0,c.useRef)(r);(0,c.useEffect)(()=>{o.current=n,i.current=r},[n,r]),Dw(()=>{if(!t||!e)return;let n=Sw(t);if(!n)return;let r=o.current,s=i.current,a=Object.assign(e=>r(e),{acceptNode:r}),l=n.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,a,!1);for(;l.nextNode();)s(l.currentNode)},[t,e,o,i])}(C===wk.Open,{container:_,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let M=ik([null==k?void 0:k.id]),I=BC({open:C===wk.Open,option:void 0}),L=Rw(()=>{p.actions.setActivationTrigger(Sk.Pointer)}),P=Rw(e=>{e.preventDefault(),p.actions.setActivationTrigger(Sk.Pointer)}),j=NS(g?E():{},{"aria-labelledby":M,role:"listbox","aria-multiselectable":m.mode===Ck.Multi||void 0,id:s,ref:w,style:{...f.style,...v,"--input-width":Iw(R,S,!0).width,"--button-width":Iw(R,k,!0).width},onWheel:T===Sk.Pointer?void 0:L,onMouseDown:P,...HC(O)}),V=R&&C===wk.Closed&&!e.static,B=KS(V,null==(n=m.virtual)?void 0:n.options),q=KS(V,m.value),$=(0,c.useCallback)(e=>m.compare(q,e),[m.compare,q]),z=(0,c.useMemo)(()=>{if(!m.virtual)return m;if(void 0===B)throw new Error("Missing `options` in virtual mode");return B!==m.virtual.options?{...m,virtual:{...m.virtual,options:B}}:m},[m,B,null==(r=m.virtual)?void 0:r.options]);m.virtual&&Object.assign(f,{children:c.createElement(Ok.Provider,{value:z},c.createElement(Ik,{slot:I},f.children))});let K=_S(),U=(0,c.useMemo)(()=>m.mode===Ck.Multi?m:{...m,isSelected:$},[m,$]);return c.createElement(yk,{enabled:!!u&&(e.static||R),ownerDocument:A},c.createElement(Ok.Provider,{value:U},K({ourProps:j,theirProps:{...f,children:c.createElement(zS,{freeze:V},"function"==typeof f.children?null==(o=f.children)?void 0:o.call(f,I):f.children)},slot:I,defaultTag:"div",features:Pk,visible:F,name:"Combobox.Options"})))}),zk=RS(function(e,t){var n,r,o;let i=Fk("Combobox.Option"),s=Nk("Combobox.Option"),a=(0,c.useId)(),{id:l=`headlessui-combobox-option-${a}`,value:u,disabled:d=null!=(o=null==(r=null==(n=i.virtual)?void 0:n.disabled)?void 0:r.call(n,u))&&o,order:h=null,...f}=e,[p]=mC(s,e=>[e.inputElement]),m=IC(p),g=mC(s,(0,c.useCallback)(e=>s.selectors.isActive(e,u,l),[u,l])),y=i.isSelected(u),v=(0,c.useRef)(null),b=Nw({disabled:d,value:u,domRef:v,order:h}),x=(0,c.useContext)(Mk),E=$C(t,v,x?x.measureElement:null),w=Rw(()=>{s.actions.setIsTyping(!1),s.actions.onChange(u)});Dw(()=>s.actions.registerOption(l,b),[b,l]);let C=mC(s,(0,c.useCallback)(e=>s.selectors.shouldScrollIntoView(e,u,l),[u,l]));Dw(()=>{if(C)return Tw().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=v.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[C,v]);let S=Rw(e=>{e.preventDefault(),e.button===Lw.Left&&(d||(w(),DC()||requestAnimationFrame(()=>m()),i.mode===Ck.Single&&s.actions.closeCombobox()))}),k=Rw(()=>{if(d)return s.actions.goToOption({focus:XS.Nothing});let e=i.calculateIndex(u);s.actions.goToOption({focus:XS.Specific,idx:e})}),_=function(){let e=(0,c.useRef)([-1,-1]);return{wasMoved(t){let n=zC(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=zC(t)}}}(),T=Rw(e=>_.update(e)),A=Rw(e=>{if(!_.wasMoved(e)||d||g&&s.state.activationTrigger===Sk.Pointer)return;let t=i.calculateIndex(u);s.actions.goToOption({focus:XS.Specific,idx:t},Sk.Pointer)}),D=Rw(e=>{_.wasMoved(e)&&(d||g&&(i.optionsPropsRef.current.hold||s.state.activationTrigger===Sk.Pointer&&s.actions.goToOption({focus:XS.Nothing})))}),N=BC({active:g,focus:g,selected:y,disabled:d}),R={id:l,ref:E,role:"option",tabIndex:!0===d?void 0:-1,"aria-disabled":!0===d||void 0,"aria-selected":y,disabled:void 0,onMouseDown:S,onFocus:k,onPointerEnter:T,onMouseEnter:T,onPointerMove:A,onMouseMove:A,onPointerLeave:D,onMouseLeave:D};return _S()({ourProps:R,theirProps:f,slot:N,defaultTag:"div",name:"Combobox.Option"})}),Kk=Object.assign(jk,{Input:Bk,Button:Vk,Label:qk,Options:$k,Option:zk});const Uk=()=>{const e=(0,l.c)(32),t=E_(),{push:n}=w_(),r=(0,c.useRef)(null),o=function(){const e=(0,l.c)(5),t=E_(),n=ot(Wk);let r;e[0]!==t?(r=t.at(-1),e[0]=t,e[1]=r):r=e[1];const o=r;let i;return e[2]!==o||e[3]!==n?(i=e=>{const t={within:[],types:[],fields:[]};if(!n)return t;const r=o.def,i=n.getTypeMap();let s=Object.keys(i);r&&(s=s.filter(e=>e!==r.name),s.unshift(r.name));for(const n of s){if(t.within.length+t.types.length+t.fields.length>=100)break;const o=i[n];if(r!==o&&Hk(n,e)&&t.types.push({type:o}),!(0,Ce.YQ)(o)&&!(0,Ce.kD)(o)&&!(0,Ce.qK)(o))continue;const s=o.getFields();for(const n in s){const i=s[n];let a;if(!Hk(n,e)){if(!("args"in i))continue;if(a=i.args.filter(t=>Hk(t.name,e)),0===a.length)continue}t[r===o?"within":"fields"].push(...a?a.map(e=>({type:o,field:i,argument:e})):[{type:o,field:i}])}}return t},e[2]=o,e[3]=n,e[4]=i):i=e[4],i}(),[i,s]=(0,c.useState)("");let u;e[0]!==o||e[1]!==i?(u=()=>o(i),e[0]=o,e[1]=i,e[2]=u):u=e[2];const[d,h]=(0,c.useState)(u);let f;e[3]!==o?(f=ge(200,e=>{h(o(e))}),e[3]=o,e[4]=f):f=e[4];const p=f,[m]=(0,c.useState)(r),g=m.current===document.activeElement;let y,v,b,x,E;if(e[5]!==p||e[6]!==i?(y=()=>{p(i)},v=[p,i],e[5]=p,e[6]=i,e[7]=y,e[8]=v):(y=e[7],v=e[8]),(0,c.useEffect)(y,v),e[9]!==t||e[10]!==n){let r;b=t.at(-1),e[14]!==n?(r=e=>{e&&n("field"in e?{name:e.field.name,def:e.field}:{name:e.type.name,def:e.type})},e[14]=n,e[15]=r):r=e[15],x=r,E=1===t.length||(0,Ce.YQ)(b.def)||(0,Ce.kD)(b.def)||(0,Ce.qK)(b.def),e[9]=t,e[10]=n,e[11]=b,e[12]=x,e[13]=E}else b=e[11],x=e[12],E=e[13];if(!E)return null;const w=g?void 0:"idle",C=`Search ${b.name}...`;let S,T,A,D,N,R,O;return e[16]===Symbol.for("react.memo_cache_sentinel")?(S=()=>{r.current.focus()},T=(0,a.jsx)(Nt,{}),e[16]=S,e[17]=T):(S=e[16],T=e[17]),e[18]===Symbol.for("react.memo_cache_sentinel")?(D=e=>s(e.target.value),A=k(k(_.searchInDocs.key).replaceAll("-"," ")),e[18]=A,e[19]=D):(A=e[18],D=e[19]),e[20]!==i||e[21]!==A?(N=(0,a.jsxs)("div",{className:"graphiql-doc-explorer-search-input",onClick:S,children:[T,(0,a.jsx)(Bk,{autoComplete:"off",onChange:D,placeholder:A,ref:r,value:i,"data-cy":"doc-explorer-input"})]}),e[20]=i,e[21]=A,e[22]=N):N=e[22],e[23]!==g||e[24]!==d?(R=g&&(0,a.jsxs)($k,{"data-cy":"doc-explorer-list",children:[d.within.length+d.types.length+d.fields.length===0?(0,a.jsx)("div",{className:"graphiql-doc-explorer-search-empty",children:"No results found"}):d.within.map(Yk),d.within.length>0&&d.types.length+d.fields.length>0?(0,a.jsx)("div",{className:"graphiql-doc-explorer-search-divider",children:"Other results"}):null,d.types.map(Xk),d.fields.map(Jk)]}),e[23]=g,e[24]=d,e[25]=R):R=e[25],e[26]!==x||e[27]!==N||e[28]!==R||e[29]!==w||e[30]!==C?(O=(0,a.jsxs)(Kk,{as:"div",className:"graphiql-doc-explorer-search",onChange:x,"data-state":w,"aria-label":C,children:[N,R]}),e[26]=x,e[27]=N,e[28]=R,e[29]=w,e[30]=C,e[31]=O):O=e[31],O};function Wk(e){return e.schema}function Hk(e,t){try{const n=t.replaceAll(/[^_0-9A-Za-z]/g,e=>"\\"+e);return new RegExp(n,"i").test(e)}catch{return e.toLowerCase().includes(t.toLowerCase())}}const Gk=e=>{const t=(0,l.c)(2),{type:n}=e;let r;return t[0]!==n.name?(r=(0,a.jsx)("span",{className:"graphiql-doc-explorer-search-type",children:n.name}),t[0]=n.name,t[1]=r):r=t[1],r},Qk=e=>{const t=(0,l.c)(7),{field:n,argument:r}=e;let o,i,s;return t[0]!==n.name?(o=(0,a.jsx)("span",{className:"graphiql-doc-explorer-search-field",children:n.name}),t[0]=n.name,t[1]=o):o=t[1],t[2]!==r?(i=r?(0,a.jsxs)(a.Fragment,{children:["(",(0,a.jsx)("span",{className:"graphiql-doc-explorer-search-argument",children:r.name}),":"," ",Jx(r.type,Zk),")"]}):null,t[2]=r,t[3]=i):i=t[3],t[4]!==o||t[5]!==i?(s=(0,a.jsxs)(a.Fragment,{children:[o,i]}),t[4]=o,t[5]=i,t[6]=s):s=t[6],s};function Yk(e,t){return(0,a.jsx)(zk,{value:e,"data-cy":"doc-explorer-option",children:(0,a.jsx)(Qk,{field:e.field,argument:e.argument})},`within-${t}`)}function Xk(e,t){return(0,a.jsx)(zk,{value:e,"data-cy":"doc-explorer-option",children:(0,a.jsx)(Gk,{type:e.type})},`type-${t}`)}function Jk(e,t){return(0,a.jsxs)(zk,{value:e,"data-cy":"doc-explorer-option",children:[(0,a.jsx)(Gk,{type:e.type}),".",(0,a.jsx)(Qk,{field:e.field,argument:e.argument})]},`field-${t}`)}function Zk(e){return(0,a.jsx)(Gk,{type:e})}const e_=e=>{const t=(0,l.c)(6),{field:n}=e,{push:r}=w_();let o,i;return t[0]!==n||t[1]!==r?(o=e=>{e.preventDefault(),r({name:n.name,def:n})},t[0]=n,t[1]=r,t[2]=o):o=t[2],t[3]!==n.name||t[4]!==o?(i=(0,a.jsx)("a",{className:"graphiql-doc-explorer-field-name",onClick:o,href:"#",children:n.name}),t[3]=n.name,t[4]=o,t[5]=i):i=t[5],i},t_=e=>{const t=(0,l.c)(2),{type:n}=e;let r;return t[0]!==n?(r=(0,Ce.sy)(n)?(0,a.jsxs)(a.Fragment,{children:[n.description?(0,a.jsx)(Qx,{type:"description",children:n.description}):null,(0,a.jsx)(n_,{type:n}),(0,a.jsx)(r_,{type:n}),(0,a.jsx)(i_,{type:n}),(0,a.jsx)(a_,{type:n})]}):null,t[0]=n,t[1]=r):r=t[1],r},n_=e=>{const t=(0,l.c)(5),{type:n}=e;if(!(0,Ce.YQ)(n))return null;let r;t[0]!==n?(r=n.getInterfaces(),t[0]=n,t[1]=r):r=t[1];const o=r;let i;return t[2]!==o.length||t[3]!==n?(i=o.length>0?(0,a.jsx)(rE,{title:"Implements",children:n.getInterfaces().map(l_)}):null,t[2]=o.length,t[3]=n,t[4]=i):i=t[4],i},r_=e=>{const t=(0,l.c)(12),{type:n}=e,[r,o]=(0,c.useState)(!1);let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{o(!0)},t[0]=i):i=t[0];const s=i;if(!(0,Ce.YQ)(n)&&!(0,Ce.kD)(n)&&!(0,Ce.qK)(n))return null;let u,d,h,f,p;if(t[1]!==n){const e=n.getFields();d=[],u=[];for(const t of Object.keys(e).map(t=>e[t]))t.deprecationReason?u.push(t):d.push(t);h=d.length>0?(0,a.jsx)(rE,{title:"Fields",children:d.map(c_)}):null,t[1]=n,t[2]=u,t[3]=d,t[4]=h}else u=t[2],d=t[3],h=t[4];return t[5]!==u||t[6]!==d.length||t[7]!==r?(f=u.length>0?r||0===d.length?(0,a.jsx)(rE,{title:"Deprecated Fields",children:u.map(u_)}):(0,a.jsx)(ql,{type:"button",onClick:s,children:"Show Deprecated Fields"}):null,t[5]=u,t[6]=d.length,t[7]=r,t[8]=f):f=t[8],t[9]!==h||t[10]!==f?(p=(0,a.jsxs)(a.Fragment,{children:[h,f]}),t[9]=h,t[10]=f,t[11]=p):p=t[11],p},o_=e=>{const t=(0,l.c)(22),{field:n}=e;let r,o,i,s,c,u,d,h,f;if(t[0]!==n){const e="args"in n?n.args.filter(d_):[];i="graphiql-doc-explorer-item",r=(0,a.jsx)(e_,{field:n}),o=e.length>0?(0,a.jsxs)(a.Fragment,{children:["(",(0,a.jsx)("span",{children:e.map(t=>1===e.length?(0,a.jsx)(eE,{arg:t,inline:!0},t.name):(0,a.jsx)("div",{className:"graphiql-doc-explorer-argument-multiple",children:(0,a.jsx)(eE,{arg:t,inline:!0})},t.name))}),")"]}):null,t[0]=n,t[1]=r,t[2]=o,t[3]=i}else r=t[1],o=t[2],i=t[3];return t[4]!==n.type?(s=(0,a.jsx)(Zx,{type:n.type}),t[4]=n.type,t[5]=s):s=t[5],t[6]!==n?(c=(0,a.jsx)(Xx,{field:n}),t[6]=n,t[7]=c):c=t[7],t[8]!==r||t[9]!==o||t[10]!==s||t[11]!==c?(u=(0,a.jsxs)("div",{children:[r,o,": ",s,c]}),t[8]=r,t[9]=o,t[10]=s,t[11]=c,t[12]=u):u=t[12],t[13]!==n.description?(d=n.description?(0,a.jsx)(Qx,{type:"description",onlyShowFirstChild:!0,children:n.description}):null,t[13]=n.description,t[14]=d):d=t[14],t[15]!==n.deprecationReason?(h=(0,a.jsx)(tE,{children:n.deprecationReason}),t[15]=n.deprecationReason,t[16]=h):h=t[16],t[17]!==i||t[18]!==u||t[19]!==d||t[20]!==h?(f=(0,a.jsxs)("div",{className:i,children:[u,d,h]}),t[17]=i,t[18]=u,t[19]=d,t[20]=h,t[21]=f):f=t[21],f},i_=e=>{const t=(0,l.c)(12),{type:n}=e,[r,o]=(0,c.useState)(!1);let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{o(!0)},t[0]=i):i=t[0];const s=i;if(!(0,Ce.oF)(n))return null;let u,d,h,f,p;if(t[1]!==n){h=[],u=[];for(const e of n.getValues())e.deprecationReason?u.push(e):h.push(e);d=h.length>0&&(0,a.jsx)(rE,{title:"Enum Values",children:h.map(h_)}),t[1]=n,t[2]=u,t[3]=d,t[4]=h}else u=t[2],d=t[3],h=t[4];return t[5]!==u||t[6]!==r||t[7]!==h.length?(f=u.length>0&&(r||!h.length?(0,a.jsx)(rE,{title:"Deprecated Enum Values",children:u.map(f_)}):(0,a.jsx)(ql,{type:"button",onClick:s,children:"Show Deprecated Values"})),t[5]=u,t[6]=r,t[7]=h.length,t[8]=f):f=t[8],t[9]!==d||t[10]!==f?(p=(0,a.jsxs)(a.Fragment,{children:[d,f]}),t[9]=d,t[10]=f,t[11]=p):p=t[11],p},s_=e=>{const t=(0,l.c)(10),{value:n}=e;let r,o,i,s;return t[0]!==n.name?(r=(0,a.jsx)("div",{className:"graphiql-doc-explorer-enum-value",children:n.name}),t[0]=n.name,t[1]=r):r=t[1],t[2]!==n.description?(o=n.description&&(0,a.jsx)(Qx,{type:"description",children:n.description}),t[2]=n.description,t[3]=o):o=t[3],t[4]!==n.deprecationReason?(i=n.deprecationReason&&(0,a.jsx)(Qx,{type:"deprecation",children:n.deprecationReason}),t[4]=n.deprecationReason,t[5]=i):i=t[5],t[6]!==r||t[7]!==o||t[8]!==i?(s=(0,a.jsxs)("div",{className:"graphiql-doc-explorer-item",children:[r,o,i]}),t[6]=r,t[7]=o,t[8]=i,t[9]=s):s=t[9],s},a_=e=>{const t=(0,l.c)(6),{type:n}=e,r=ot(p_);if(!r||!(0,Ce.Lc)(n))return null;const o=(0,Ce.kD)(n)?"Implementations":"Possible Types";let i,s;return t[0]!==r||t[1]!==n?(i=r.getPossibleTypes(n).map(m_),t[0]=r,t[1]=n,t[2]=i):i=t[2],t[3]!==o||t[4]!==i?(s=(0,a.jsx)(rE,{title:o,children:i}),t[3]=o,t[4]=i,t[5]=s):s=t[5],s};function l_(e){return(0,a.jsx)("div",{children:(0,a.jsx)(Zx,{type:e})},e.name)}function c_(e){return(0,a.jsx)(o_,{field:e},e.name)}function u_(e){return(0,a.jsx)(o_,{field:e},e.name)}function d_(e){return!e.deprecationReason}function h_(e){return(0,a.jsx)(s_,{value:e},e.name)}function f_(e){return(0,a.jsx)(s_,{value:e},e.name)}function p_(e){return e.schema}function m_(e){return(0,a.jsx)("div",{children:(0,a.jsx)(Zx,{type:e})},e.name)}const g_={title:"Documentation Explorer",icon:function(){return ot(e=>e.visiblePlugin)===g_?(0,a.jsx)(Ct,{}):(0,a.jsx)(St,{})},content:()=>{const e=(0,l.c)(39);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=lt("fetchError","isIntrospecting","schema","validationErrors"),e[0]=t):t=e[0];const{fetchError:n,isIntrospecting:r,schema:o,validationErrors:i}=ot(t),s=E_(),{pop:c}=w_();let u,d,h,f,p,m,g,y,v,b;if(e[1]!==s||e[2]!==n||e[3]!==r||e[4]!==o||e[5]!==i){if(d=s.at(-1),u=null,n){let t;e[8]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)("div",{className:"graphiql-doc-explorer-error",children:"Error fetching schema"}),e[8]=t):t=e[8],u=t}else if(i[0]){let t;e[9]!==i[0].message?(t=(0,a.jsxs)("div",{className:"graphiql-doc-explorer-error",children:["Schema is invalid: ",i[0].message]}),e[9]=i[0].message,e[10]=t):t=e[10],u=t}else if(r){let t;e[11]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(Zt,{}),e[11]=t):t=e[11],u=t}else if(o){if(1===s.length){let t;e[13]!==o?(t=(0,a.jsx)(dE,{schema:o}),e[13]=o,e[14]=t):t=e[14],u=t}else if((0,Ce.Xj)(d.def)){let t;e[15]!==d.def?(t=(0,a.jsx)(t_,{type:d.def}),e[15]=d.def,e[16]=t):t=e[16],u=t}else if(d.def){let t;e[17]!==d.def?(t=(0,a.jsx)(iE,{field:d.def}),e[17]=d.def,e[18]=t):t=e[18],u=t}}else{let t;e[12]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)("div",{className:"graphiql-doc-explorer-error",children:"No GraphQL schema available"}),e[12]=t):t=e[12],u=t}e[1]=s,e[2]=n,e[3]=r,e[4]=o,e[5]=i,e[6]=u,e[7]=d}else u=e[6],d=e[7];if(s.length>1){let t;e[19]!==s?(t=s.at(-2),e[19]=s,e[20]=t):t=e[20],h=t.name}return e[21]!==c||e[22]!==h?(f=h&&(0,a.jsxs)("a",{href:"#",className:"graphiql-doc-explorer-back",onClick:e=>{e.preventDefault(),c()},"aria-label":`Go back to ${h}`,children:[(0,a.jsx)(mt,{}),h]}),e[21]=c,e[22]=h,e[23]=f):f=e[23],e[24]!==d.name?(p=(0,a.jsx)("div",{className:"graphiql-doc-explorer-title",children:d.name}),e[24]=d.name,e[25]=p):p=e[25],e[26]!==f||e[27]!==p?(m=(0,a.jsxs)("div",{className:"graphiql-doc-explorer-header-content",children:[f,p]}),e[26]=f,e[27]=p,e[28]=m):m=e[28],e[29]!==d.name?(g=(0,a.jsx)(Uk,{},d.name),e[29]=d.name,e[30]=g):g=e[30],e[31]!==m||e[32]!==g?(y=(0,a.jsxs)("div",{className:"graphiql-doc-explorer-header",children:[m,g]}),e[31]=m,e[32]=g,e[33]=y):y=e[33],e[34]!==u?(v=(0,a.jsx)("div",{className:"graphiql-doc-explorer-content",children:u}),e[34]=u,e[35]=v):v=e[35],e[36]!==y||e[37]!==v?(b=(0,a.jsxs)("section",{className:"graphiql-doc-explorer","aria-label":"Documentation Explorer",children:[y,v]}),e[36]=y,e[37]=v,e[38]=b):b=e[38],b}},y_=[{name:"Docs"}],v_=h((e,t)=>({explorerNavStack:y_,actions:{push(t){e(e=>{const n=e.explorerNavStack;return{explorerNavStack:n.at(-1).def===t.def?n:[...n,t]}})},pop(){e(e=>{const t=e.explorerNavStack;return{explorerNavStack:t.length>1?t.slice(0,-1):t}})},reset(){e(e=>{const t=e.explorerNavStack;return{explorerNavStack:1===t.length?t:y_}})},resolveSchemaReferenceToNavItem(e){if(!e)return;const{kind:n,typeInfo:r}=e,o=function(e,t){return"Field"===e&&t.fieldDef||"AliasedField"===e&&t.fieldDef?function(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:My(e.fieldDef)?null:e.parentType}}(t):"Directive"===e&&t.directiveDef?function(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}(t):"Argument"===e&&t.argDef?function(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:My(e.fieldDef)?null:e.parentType}}(t):"EnumValue"===e&&t.enumValue?function(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?(0,Ce.MR)(e.inputType):void 0}}(t):"NamedType"===e&&t.type?function(e){return{kind:"Type",schema:e.schema,type:e.type}}(t):void 0}(n,r);if(!o)return;const{push:i}=t().actions;switch(o.kind){case"Type":i({name:o.type.name,def:o.type});break;case"Field":o.type&&i({name:o.type.name,def:o.type}),i({name:o.field.name,def:o.field});break;case"Argument":o.field&&i({name:o.field.name,def:o.field});break;case"EnumValue":o.type&&i({name:o.type.name,def:o.type})}},rebuildNavStackWithSchema(t){e(e=>{const n=e.explorerNavStack;if(1===n.length)return e;const r=[...y_];let o=null;for(const e of n)if(e!==y_[0])if(e.def)if((0,Ce.sy)(e.def)){const n=t.getType(e.def.name);if(!n)break;r.push({name:e.name,def:n}),o=n}else{if(null===o)break;if((0,Ce.YQ)(o)||(0,Ce.qK)(o)){const t=o.getFields()[e.name];if(!t)break;r.push({name:e.name,def:t})}else{if((0,Ce.lg)(o)||(0,Ce.oF)(o)||(0,Ce.kD)(o)||(0,Ce.CK)(o))break;{const t=o;if(!t.args.some(t=>t.name===e.name))break;r.push({name:e.name,def:t})}}}else o=null,r.push(e);return{explorerNavStack:r}})}}})),b_=e=>{const t=(0,l.c)(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=lt("schema","validationErrors","schemaReference"),t[0]=r):r=t[0];const{schema:o,validationErrors:i,schemaReference:s}=ot(r);let a,u,d,h,f;return t[1]!==s?(a=()=>{const{resolveSchemaReferenceToNavItem:e}=v_.getState().actions;e(s)},u=[s],t[1]=s,t[2]=a,t[3]=u):(a=t[2],u=t[3]),(0,c.useEffect)(a,u),t[4]!==o||t[5]!==i?(d=()=>{const{reset:e,rebuildNavStackWithSchema:t}=v_.getState().actions;null==o||i.length>0?e():t(o)},h=[o,i],t[4]=o,t[5]=i,t[6]=d,t[7]=h):(d=t[6],h=t[7]),(0,c.useEffect)(d,h),t[8]===Symbol.for("react.memo_cache_sentinel")?(f=[],t[8]=f):f=t[8],(0,c.useEffect)(S_,f),n},x_=$e(v_),E_=()=>x_(k_),w_=()=>x_(__);function C_(){const e=document.querySelector(".graphiql-doc-explorer-search-input");null==e||e.click()}function S_(){const e=function(e){if(!e.altKey||!e[S?"metaKey":"ctrlKey"]||"KeyK"!==e.code)return;const t=document.querySelector('.graphiql-sidebar button[aria-label="Show Documentation Explorer"]');null==t||t.click(),requestAnimationFrame(C_)};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}function k_(e){return e.explorerNavStack}function __(e){return e.actions}const T_=(0,c.forwardRef)((e,t)=>{const n=(0,l.c)(19);let r,o,i;n[0]!==e?(({label:r,onClick:o,...i}=e),n[0]=e,n[1]=r,n[2]=o,n[3]=i):(r=n[1],o=n[2],i=n[3]);const[s,u]=(0,c.useState)(null);let d;n[4]!==o?(d=e=>{try{o&&o(e),u(null)}catch(e){u(e instanceof Error?e:new Error(`Toolbar button click failed: ${e}`))}},n[4]=o,n[5]=d):d=n[5];const h=d,f=s&&"error";let p;n[6]!==i.className||n[7]!==f?(p=(0,Xt.$)("graphiql-toolbar-button",f,i.className),n[6]=i.className,n[7]=f,n[8]=p):p=n[8];const m=s?s.message:r,g=s?"true":i["aria-invalid"];let y,v;return n[9]!==h||n[10]!==i||n[11]!==t||n[12]!==p||n[13]!==m||n[14]!==g?(y=(0,a.jsx)(Bl,{...i,ref:t,type:"button",className:p,onClick:h,"aria-label":m,"aria-invalid":g}),n[9]=h,n[10]=i,n[11]=t,n[12]=p,n[13]=m,n[14]=g,n[15]=y):y=n[15],n[16]!==r||n[17]!==y?(v=(0,a.jsx)(Pl,{label:r,children:y}),n[16]=r,n[17]=y,n[18]=v):v=n[18],v});T_.displayName="ToolbarButton";const A_=e=>{const t=(0,l.c)(4),{prettify:n,copy:r,merge:o}=e;let i;return t[0]!==r||t[1]!==o||t[2]!==n?(i=(0,a.jsxs)(a.Fragment,{children:[n,o,r]}),t[0]=r,t[1]=o,t[2]=n,t[3]=i):i=t[3],i},D_=(0,a.jsxs)("a",{className:"graphiql-logo-link",href:"https://github.com/graphql/graphiql",target:"_blank",rel:"noreferrer",children:["Graph",(0,a.jsx)("em",{children:"i"}),"QL"]});var N_="Dialog",[R_,O_]=rn(N_),[F_,M_]=R_(N_),I_=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,l=c.useRef(null),u=c.useRef(null),[d,h]=ln({prop:r,defaultProp:o??!1,onChange:i,caller:N_});return(0,a.jsx)(F_,{scope:t,triggerRef:l,contentRef:u,contentId:Hn(),titleId:Hn(),descriptionId:Hn(),open:d,onOpenChange:h,onOpenToggle:c.useCallback(()=>h(e=>!e),[h]),modal:s,children:n})};I_.displayName=N_;var L_="DialogTrigger",P_=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=M_(L_,n),i=nn(t,o.triggerRef);return(0,a.jsx)(vn.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":rT(o.open),...r,ref:i,onClick:en(e.onClick,o.onOpenToggle)})});P_.displayName=L_;var j_="DialogPortal",[V_,B_]=R_(j_,{forceMount:void 0}),q_=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=M_(j_,t);return(0,a.jsx)(V_,{scope:t,forceMount:n,children:c.Children.map(r,e=>(0,a.jsx)(Jo,{present:n||i.open,children:(0,a.jsx)(Xo,{asChild:!0,container:o,children:e})}))})};q_.displayName=j_;var $_="DialogOverlay",z_=c.forwardRef((e,t)=>{const n=B_($_,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=M_($_,e.__scopeDialog);return i.modal?(0,a.jsx)(Jo,{present:r||i.open,children:(0,a.jsx)(U_,{...o,ref:t})}):null});z_.displayName=$_;var K_=un("DialogOverlay.RemoveScroll"),U_=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=M_($_,n),i=function(){const e=c.useContext(_n),[t,n]=c.useState(null);return c.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}(),s=nn(t,i);return(0,a.jsx)(fs,{as:K_,allowPinchZoom:!0,shards:[o.contentRef],children:(0,a.jsx)(vn.div,{"data-state":rT(o.open),...r,ref:s,style:{pointerEvents:"auto",...r.style}})})}),W_="DialogContent",H_=c.forwardRef((e,t)=>{const n=B_(W_,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=M_(W_,e.__scopeDialog);return(0,a.jsx)(Jo,{present:r||i.open,children:i.modal?(0,a.jsx)(G_,{...o,ref:t}):(0,a.jsx)(Q_,{...o,ref:t})})});H_.displayName=W_;var G_=c.forwardRef((e,t)=>{const n=M_(W_,e.__scopeDialog),r=c.useRef(null),o=nn(t,n.contentRef,r);return c.useEffect(()=>{const e=r.current;if(e)return Ai(e)},[]),(0,a.jsx)(Y_,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:en(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:en(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:en(e.onFocusOutside,e=>e.preventDefault())})}),Q_=c.forwardRef((e,t)=>{const n=M_(W_,e.__scopeDialog),r=c.useRef(!1),o=c.useRef(!1);return(0,a.jsx)(Y_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));const i=t.target,s=n.triggerRef.current?.contains(i);s&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),Y_=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,l=M_(W_,n);return Fn(),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(jn,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,a.jsx)(Tn,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":rT(l.open),...s,ref:t,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1)})})})}),X_="DialogTitle",J_=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=M_(X_,n);return(0,a.jsx)(vn.h2,{id:o.titleId,...r,ref:t})});J_.displayName=X_;var Z_="DialogDescription",eT=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=M_(Z_,n);return(0,a.jsx)(vn.p,{id:o.descriptionId,...r,ref:t})});eT.displayName=Z_;var tT="DialogClose",nT=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=M_(tT,n);return(0,a.jsx)(vn.button,{type:"button",...r,ref:t,onClick:en(e.onClick,()=>o.onOpenChange(!1))})});function rT(e){return e?"open":"closed"}nT.displayName=tT;const oT=(0,c.forwardRef)((e,t)=>{const n=(0,l.c)(8);let r,o,i,s;return n[0]!==e.className?(r=(0,Xt.$)("graphiql-dialog-close",e.className),n[0]=e.className,n[1]=r):r=n[1],n[2]===Symbol.for("react.memo_cache_sentinel")?(o=(0,a.jsx)(ol,{children:"Close dialog"}),i=(0,a.jsx)(yt,{}),n[2]=o,n[3]=i):(o=n[2],i=n[3]),n[4]!==e||n[5]!==t||n[6]!==r?(s=(0,a.jsx)(nT,{asChild:!0,children:(0,a.jsxs)(Bl,{...e,ref:t,type:"button",className:r,children:[o,i]})}),n[4]=e,n[5]=t,n[6]=r,n[7]=s):s=n[7],s});oT.displayName="Dialog.Close";const iT=Object.assign(e=>{const t=(0,l.c)(9);let n,r,o,i,s;return t[0]!==e?(({children:n,...r}=e),t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]),t[3]===Symbol.for("react.memo_cache_sentinel")?(o=(0,a.jsx)(z_,{className:"graphiql-dialog-overlay"}),t[3]=o):o=t[3],t[4]!==n?(i=(0,a.jsxs)(q_,{children:[o,(0,a.jsx)(H_,{className:"graphiql-dialog",children:n})]}),t[4]=n,t[5]=i):i=t[5],t[6]!==r||t[7]!==i?(s=(0,a.jsx)(I_,{...r,children:i}),t[6]=r,t[7]=i,t[8]=s):s=t[8],s},{Close:oT,Title:J_,Trigger:P_,Description:eT}),sT=(0,c.forwardRef)((e,t)=>{const n=(0,l.c)(6);let r,o;return n[0]!==e.className?(r=(0,Xt.$)("graphiql-button-group",e.className),n[0]=e.className,n[1]=r):r=n[1],n[2]!==e||n[3]!==t||n[4]!==r?(o=(0,a.jsx)("div",{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=o):o=n[5],o});sT.displayName="ButtonGroup";const aT=Object.entries({"Execute query":k(_.runQuery.key),"Open the Command Palette (you must have focus in the editor)":"F1","Prettify editors":_.prettify.key,"Copy query":_.copyQuery.key,"Re-fetch schema using introspection":_.refetchSchema.key,"Search in documentation":k(_.searchInDocs.key),"Search in editor":k(_.searchInEditor.key),"Merge fragments definitions into operation definition":_.mergeFragments.key}),lT=()=>{const e=(0,l.c)(5);let t,n,r,o,i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsxs)("table",{className:"graphiql-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Short Key"}),(0,a.jsx)("th",{children:"Function"})]})}),(0,a.jsx)("tbody",{children:aT.map(uT)})]}),e[0]=t):t=e[0],e[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)("em",{children:"i"}),e[1]=n):n=e[1],e[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,a.jsx)("a",{href:"https://code.visualstudio.com/docs/reference/default-keybindings",target:"_blank",rel:"noreferrer",children:"Monaco editor shortcuts"}),e[2]=r):r=e[2],e[3]===Symbol.for("react.memo_cache_sentinel")?(o=(0,a.jsx)("a",{href:"https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf",target:"_blank",rel:"noreferrer",children:"macOS"}),e[3]=o):o=e[3],e[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsxs)("div",{children:[t,(0,a.jsxs)("p",{children:["This Graph",n,"QL editor uses"," ",r,", with keybindings similar to VS Code. See the full list of shortcuts for"," ",o," ","or"," ",(0,a.jsx)("a",{href:"https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf",target:"_blank",rel:"noreferrer",children:"Windows"}),"."]})]}),e[4]=i):i=e[4],i};function cT(e,t,n){return(0,a.jsxs)(c.Fragment,{children:[(0,a.jsx)("code",{className:"graphiql-key",children:e}),t!==n.length-1&&" + "]},e)}function uT(e){const[t,n]=e;return(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:n.split("-").map(cT)}),(0,a.jsx)("td",{children:t})]},t)}const dT={refetchSchema:`Re-fetch GraphQL schema (${_.refetchSchema.key})`,shortCutDialog:"Open short keys dialog",settingsDialogs:"Open settings dialog"},hT=["light","dark","system"],fT=e=>{const t=(0,l.c)(72),{forcedTheme:n,showPersistHeadersSettings:r,setHiddenElement:o}=e,i=n&&hT.includes(n)?n:void 0,{setShouldPersistHeaders:s,introspect:u,setVisiblePlugin:d,setTheme:h}=it();let f;t[0]===Symbol.for("react.memo_cache_sentinel")?(f=lt("shouldPersistHeaders","isIntrospecting","visiblePlugin","plugins","theme","storage"),t[0]=f):f=t[0];const{shouldPersistHeaders:p,isIntrospecting:m,visiblePlugin:g,plugins:y,theme:v,storage:b}=ot(f);let x,E;t[1]!==i||t[2]!==h?(x=()=>{"system"===i?h(null):"light"!==i&&"dark"!==i||h(i)},E=[i,h],t[1]=i,t[2]=h,t[3]=x,t[4]=E):(x=t[3],E=t[4]),(0,c.useEffect)(x,E);const[w,C]=(0,c.useState)(null),[k,_]=(0,c.useState)();let T,A,D;t[5]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{const e=function(e){(S?e.metaKey:e.ctrlKey)&&","===e.key&&(e.preventDefault(),C(pT))};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},A=[],t[5]=T,t[6]=A):(T=t[5],A=t[6]),(0,c.useEffect)(T,A),t[7]===Symbol.for("react.memo_cache_sentinel")?(D=function(e){e||C(null)},t[7]=D):D=t[7];const N=D;let R;t[8]===Symbol.for("react.memo_cache_sentinel")?(R=function(e){e||(C(null),_(void 0))},t[8]=R):R=t[8];const O=R;let F;t[9]!==b?(F=function(){try{b.clear(),_("success")}catch{_("error")}},t[9]=b,t[10]=F):F=t[10];const M=F;let I;t[11]!==s?(I=e=>{s("true"===e.currentTarget.dataset.value)},t[11]=s,t[12]=I):I=t[12];const L=I;let P;t[13]!==h?(P=e=>{const t=e.currentTarget.dataset.theme;h(t||null)},t[13]=h,t[14]=P):P=t[14];const j=P;let V;t[15]===Symbol.for("react.memo_cache_sentinel")?(V=e=>{C(e.currentTarget.dataset.value)},t[15]=V):V=t[15];const B=V;let q;t[16]!==y||t[17]!==o||t[18]!==d||t[19]!==g?(q=e=>{const t=Number(e.currentTarget.dataset.index),n=y.find((e,n)=>t===n);n===g?(d(null),o("first")):(d(n),o(null))},t[16]=y,t[17]=o,t[18]=d,t[19]=g,t[20]=q):q=t[20];const $=q;let z,K;if(t[21]!==$||t[22]!==y||t[23]!==g){let e;t[25]!==$||t[26]!==g?(e=(e,t)=>{const n=e===g,r=`${n?"Hide":"Show"} ${e.title}`;return(0,a.jsx)(Pl,{label:r,children:(0,a.jsx)(Bl,{type:"button",className:(0,Xt.$)(n&&"active"),onClick:$,"data-index":t,"aria-label":r,children:(0,a.jsx)(e.icon,{"aria-hidden":"true"})})},e.title)},t[25]=$,t[26]=g,t[27]=e):e=t[27],z=y.map(e),t[21]=$,t[22]=y,t[23]=g,t[24]=z}else z=t[24];t[28]===Symbol.for("react.memo_cache_sentinel")?(K={marginTop:"auto"},t[28]=K):K=t[28];const U=m&&"graphiql-spin";let W,H,G,Q,Y;t[29]!==U?(W=(0,Xt.$)(U),t[29]=U,t[30]=W):W=t[30],t[31]!==W?(H=(0,a.jsx)(Lt,{className:W,"aria-hidden":"true"}),t[31]=W,t[32]=H):H=t[32],t[33]!==u||t[34]!==m||t[35]!==H?(G=(0,a.jsx)(Pl,{label:dT.refetchSchema,children:(0,a.jsx)(Bl,{type:"button",disabled:m,onClick:u,"aria-label":dT.refetchSchema,style:K,children:H})}),t[33]=u,t[34]=m,t[35]=H,t[36]=G):G=t[36],t[37]===Symbol.for("react.memo_cache_sentinel")?(Q=(0,a.jsx)(Pl,{label:dT.shortCutDialog,children:(0,a.jsx)(Bl,{type:"button","data-value":"short-keys",onClick:B,"aria-label":dT.shortCutDialog,children:(0,a.jsx)(Dt,{"aria-hidden":"true"})})}),t[37]=Q):Q=t[37],t[38]===Symbol.for("react.memo_cache_sentinel")?(Y=(0,a.jsx)(Pl,{label:dT.settingsDialogs,children:(0,a.jsx)(Bl,{type:"button","data-value":"settings",onClick:B,"aria-label":dT.settingsDialogs,children:(0,a.jsx)(jt,{"aria-hidden":"true"})})}),t[38]=Y):Y=t[38];const X="short-keys"===w;let J,Z,ee,te;t[39]===Symbol.for("react.memo_cache_sentinel")?(J=(0,a.jsx)(iT.Title,{className:"graphiql-dialog-title",children:"Short Keys"}),t[39]=J):J=t[39],t[40]===Symbol.for("react.memo_cache_sentinel")?(Z=(0,a.jsxs)("div",{className:"graphiql-dialog-header",children:[J,(0,a.jsx)(ol,{children:(0,a.jsx)(iT.Description,{children:"This modal provides a list of available keyboard shortcuts and their functions."})}),(0,a.jsx)(iT.Close,{})]}),t[40]=Z):Z=t[40],t[41]===Symbol.for("react.memo_cache_sentinel")?(ee=(0,a.jsx)("div",{className:"graphiql-dialog-section",children:(0,a.jsx)(lT,{})}),t[41]=ee):ee=t[41],t[42]!==X?(te=(0,a.jsxs)(iT,{open:X,onOpenChange:N,children:[Z,ee]}),t[42]=X,t[43]=te):te=t[43];const ne="settings"===w;let re,oe,ie,se,ae;t[44]===Symbol.for("react.memo_cache_sentinel")?(re=(0,a.jsx)(iT.Title,{className:"graphiql-dialog-title",children:"Settings"}),t[44]=re):re=t[44],t[45]===Symbol.for("react.memo_cache_sentinel")?(oe=(0,a.jsxs)("div",{className:"graphiql-dialog-header",children:[re,(0,a.jsx)(ol,{children:(0,a.jsx)(iT.Description,{children:"This modal lets you adjust header persistence, interface theme, and clear local storage."})}),(0,a.jsx)(iT.Close,{})]}),t[45]=oe):oe=t[45],t[46]!==L||t[47]!==p||t[48]!==r?(ie=r?(0,a.jsxs)("div",{className:"graphiql-dialog-section",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"graphiql-dialog-section-title",children:"Persist headers"}),(0,a.jsxs)("div",{className:"graphiql-dialog-section-caption",children:["Save headers upon reloading."," ",(0,a.jsx)("span",{className:"graphiql-warning-text",children:"Only enable if you trust this device."})]})]}),(0,a.jsxs)(sT,{children:[(0,a.jsx)(ql,{type:"button",id:"enable-persist-headers",className:(0,Xt.$)(p&&"active"),"data-value":"true",onClick:L,children:"On"}),(0,a.jsx)(ql,{type:"button",id:"disable-persist-headers",className:(0,Xt.$)(!p&&"active"),onClick:L,children:"Off"})]})]}):null,t[46]=L,t[47]=p,t[48]=r,t[49]=ie):ie=t[49],t[50]!==i||t[51]!==j||t[52]!==v?(se=!i&&(0,a.jsxs)("div",{className:"graphiql-dialog-section",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"graphiql-dialog-section-title",children:"Theme"}),(0,a.jsx)("div",{className:"graphiql-dialog-section-caption",children:"Adjust how the interface appears."})]}),(0,a.jsxs)(sT,{children:[(0,a.jsx)(ql,{type:"button",className:(0,Xt.$)(null===v&&"active"),onClick:j,children:"System"}),(0,a.jsx)(ql,{type:"button",className:(0,Xt.$)("light"===v&&"active"),"data-theme":"light",onClick:j,children:"Light"}),(0,a.jsx)(ql,{type:"button",className:(0,Xt.$)("dark"===v&&"active"),"data-theme":"dark",onClick:j,children:"Dark"})]})]}),t[50]=i,t[51]=j,t[52]=v,t[53]=se):se=t[53],t[54]===Symbol.for("react.memo_cache_sentinel")?(ae=(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"graphiql-dialog-section-title",children:"Clear storage"}),(0,a.jsx)("div",{className:"graphiql-dialog-section-caption",children:"Remove all locally stored data and start fresh."})]}),t[54]=ae):ae=t[54];const le="success"===k;let ce,ue,de,he;return t[55]!==k?(ce={success:"Cleared data",error:"Failed"}[k]||"Clear data",t[55]=k,t[56]=ce):ce=t[56],t[57]!==k||t[58]!==M||t[59]!==le||t[60]!==ce?(ue=(0,a.jsxs)("div",{className:"graphiql-dialog-section",children:[ae,(0,a.jsx)(ql,{type:"button",state:k,disabled:le,onClick:M,children:ce})]}),t[57]=k,t[58]=M,t[59]=le,t[60]=ce,t[61]=ue):ue=t[61],t[62]!==ne||t[63]!==ie||t[64]!==se||t[65]!==ue?(de=(0,a.jsxs)(iT,{open:ne,onOpenChange:O,children:[oe,ie,se,ue]}),t[62]=ne,t[63]=ie,t[64]=se,t[65]=ue,t[66]=de):de=t[66],t[67]!==z||t[68]!==G||t[69]!==te||t[70]!==de?(he=(0,a.jsxs)("div",{className:"graphiql-sidebar",children:[z,G,Q,Y,te,de]}),t[67]=z,t[68]=G,t[69]=te,t[70]=de,t[71]=he):he=t[71],he};function pT(e){return"settings"===e?null:"settings"}const mT="graphiql-session-tab-",gT="New tab",yT=e=>{const t=(0,l.c)(147),{forcedTheme:n,isHeadersEditorEnabled:r,defaultEditorToolsVisibility:o,children:i,confirmCloseTab:s,className:u,onEditQuery:d,onEditVariables:h,onEditHeaders:f,responseTooltip:p,showPersistHeadersSettings:m}=e,g=void 0===r||r,{addTab:y,moveTab:v,closeTab:b,changeTab:x,setVisiblePlugin:E}=it();let w;t[0]===Symbol.for("react.memo_cache_sentinel")?(w=lt("initialVariables","initialHeaders","tabs","activeTabIndex","isFetching","visiblePlugin"),t[0]=w):w=t[0];const{initialVariables:C,initialHeaders:S,tabs:k,activeTabIndex:_,isFetching:T,visiblePlugin:A}=ot(w),D=Ke(bT),N=null==A?void 0:A.content,R=A?void 0:"first";let O;t[1]!==E||t[2]!==R?(O={defaultSizeRelation:.3333333333333333,direction:"horizontal",initiallyHidden:R,onHiddenElementChange(e){"first"===e&&E(null)},sizeThresholdSecond:200,storageKey:"docExplorerFlex"},t[1]=E,t[2]=R,t[3]=O):O=t[3];const F=ct(O);let M;t[4]===Symbol.for("react.memo_cache_sentinel")?(M={direction:"horizontal",storageKey:"editorFlex"},t[4]=M):M=t[4];const I=ct(M);let L,P,j;t[5]!==S||t[6]!==C?(L=e=>{if("variables"!==e&&"headers"!==e)return"boolean"==typeof e?e?void 0:"second":C||S?void 0:"second"},t[5]=S,t[6]=C,t[7]=L):L=t[7],t[8]!==o||t[9]!==L?(P=L(o),t[8]=o,t[9]=L,t[10]=P):P=t[10],t[11]!==P?(j={defaultSizeRelation:3,direction:"vertical",initiallyHidden:P,sizeThresholdSecond:60,storageKey:"secondaryEditorFlex"},t[11]=P,t[12]=j):j=t[12];const V=ct(j);let B;t[13]!==o||t[14]!==S||t[15]!==C||t[16]!==g?(B=()=>"variables"===o||"headers"===o?o:!C&&S&&g?"headers":"variables",t[13]=o,t[14]=S,t[15]=C,t[16]=g,t[17]=B):B=t[17];const[q,$]=(0,c.useState)(B);let z;if(t[18]!==i){let e,n;t[20]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(vT.Logo,{}),n=(0,a.jsx)(vT.Toolbar,{}),t[20]=e,t[21]=n):(e=t[20],n=t[21]),z=c.Children.toArray(i).reduce(xT,{logo:e,toolbar:n,children:[]}),t[18]=i,t[19]=z}else z=t[19];const{logo:K,toolbar:U,footer:W,children:H}=z;let G;t[22]!==F?(G=function(){"first"===F.hiddenElement&&F.setHiddenElement(null)},t[22]=F,t[23]=G):G=t[23];const Q=G;let Y;t[24]!==V?(Y=e=>{"second"===V.hiddenElement&&V.setHiddenElement(null);const t=e.currentTarget.dataset.name;$(t)},t[24]=V,t[25]=Y):Y=t[25];const X=Y;let J;t[26]!==V?(J=()=>{V.setHiddenElement("second"===V.hiddenElement?null:"second")},t[26]=V,t[27]=J):J=t[27];const Z=J;let ee;t[28]!==b||t[29]!==s?(ee=async e=>{const t=e.currentTarget.previousSibling,n=Number(t.id.replace(mT,""));(!s||await s(n))&&b(n)},t[28]=b,t[29]=s,t[30]=ee):ee=t[30];const te=ee;let ne;t[31]!==x?(ne=e=>{const t=Number(e.currentTarget.id.replace(mT,""));x(t)},t[31]=x,t[32]=ne):ne=t[32];const re=ne,oe=("second"===V.hiddenElement?"Show":"Hide")+" editor tools",ie="second"===V.hiddenElement?gt:pt,se=I.firstRef;let ae,le,ce,ue;t[33]!==D||t[34]!==Q||t[35]!==d?(ae=D?(0,a.jsx)(Jt,{onClickReference:Q,onEdit:d}):(0,a.jsx)(Zt,{}),t[33]=D,t[34]=Q,t[35]=d,t[36]=ae):ae=t[36],t[37]===Symbol.for("react.memo_cache_sentinel")?(le=(0,a.jsx)(jl,{}),t[37]=le):le=t[37],t[38]!==U?(ce=(0,a.jsxs)("div",{className:"graphiql-toolbar",role:"toolbar","aria-label":"Editor Commands",children:[le,U]}),t[38]=U,t[39]=ce):ce=t[39],t[40]!==V.firstRef||t[41]!==ae||t[42]!==ce?(ue=(0,a.jsxs)("section",{className:"graphiql-query-editor","aria-label":"Operation Editor",ref:V.firstRef,children:[ae,ce]}),t[40]=V.firstRef,t[41]=ae,t[42]=ce,t[43]=ue):ue=t[43];const de=V.dragBarRef,he="variables"===q&&"second"!==V.hiddenElement&&"active";let fe,pe,me,ge,ye,ve,be;t[44]!==he?(fe=(0,Xt.$)(he),t[44]=he,t[45]=fe):fe=t[45],t[46]!==X||t[47]!==fe?(pe=(0,a.jsx)(Bl,{type:"button",className:fe,onClick:X,"data-name":"variables",children:"Variables"}),t[46]=X,t[47]=fe,t[48]=pe):pe=t[48],t[49]!==q||t[50]!==V.hiddenElement||t[51]!==X||t[52]!==g?(me=g&&(0,a.jsx)(Bl,{type:"button",className:(0,Xt.$)("headers"===q&&"second"!==V.hiddenElement&&"active"),onClick:X,"data-name":"headers",children:"Headers"}),t[49]=q,t[50]=V.hiddenElement,t[51]=X,t[52]=g,t[53]=me):me=t[53],t[54]!==ie?(ge=(0,a.jsx)(ie,{className:"graphiql-chevron-icon","aria-hidden":"true"}),t[54]=ie,t[55]=ge):ge=t[55],t[56]!==oe||t[57]!==ge||t[58]!==Z?(ye=(0,a.jsx)(Bl,{type:"button",onClick:Z,"aria-label":oe,className:"graphiql-toggle-editor-tools",children:ge}),t[56]=oe,t[57]=ge,t[58]=Z,t[59]=ye):ye=t[59],t[60]!==oe||t[61]!==ye?(ve=(0,a.jsx)(Pl,{label:oe,children:ye}),t[60]=oe,t[61]=ye,t[62]=ve):ve=t[62],t[63]!==V.dragBarRef||t[64]!==pe||t[65]!==me||t[66]!==ve?(be=(0,a.jsxs)("div",{ref:de,className:"graphiql-editor-tools",children:[pe,me,ve]}),t[63]=V.dragBarRef,t[64]=pe,t[65]=me,t[66]=ve,t[67]=be):be=t[67];const xe="variables"===q?"Variables":"Headers",Ee="variables"===q?"":"hidden";let we,Ce,Se,ke;t[68]!==h||t[69]!==Ee?(we=(0,a.jsx)($l,{className:Ee,onEdit:h}),t[68]=h,t[69]=Ee,t[70]=we):we=t[70],t[71]!==q||t[72]!==g||t[73]!==f?(Ce=g&&(0,a.jsx)(Kl,{className:"headers"===q?"":"hidden",onEdit:f}),t[71]=q,t[72]=g,t[73]=f,t[74]=Ce):Ce=t[74],t[75]!==V.secondRef||t[76]!==xe||t[77]!==we||t[78]!==Ce?(Se=(0,a.jsxs)("section",{className:"graphiql-editor-tool","aria-label":xe,ref:V.secondRef,children:[we,Ce]}),t[75]=V.secondRef,t[76]=xe,t[77]=we,t[78]=Ce,t[79]=Se):Se=t[79],t[80]!==I.firstRef||t[81]!==ue||t[82]!==be||t[83]!==Se?(ke=(0,a.jsxs)("div",{className:"graphiql-editors",ref:se,children:[ue,be,Se]}),t[80]=I.firstRef,t[81]=ue,t[82]=be,t[83]=Se,t[84]=ke):ke=t[84];const _e=ke,Te=(0,c.useRef)(null);let Ae,De,Ne,Re,Oe,Fe;t[85]!==u?(Ae=(0,Xt.$)("graphiql-container",u),t[85]=u,t[86]=Ae):Ae=t[86],t[87]!==n||t[88]!==F.setHiddenElement||t[89]!==m?(De=(0,a.jsx)(fT,{forcedTheme:n,showPersistHeadersSettings:m,setHiddenElement:F.setHiddenElement}),t[87]=n,t[88]=F.setHiddenElement,t[89]=m,t[90]=De):De=t[90],t[91]===Symbol.for("react.memo_cache_sentinel")?(Ne={minWidth:"200px"},t[91]=Ne):Ne=t[91],t[92]!==N?(Re=N&&(0,a.jsx)(N,{}),t[92]=N,t[93]=Re):Re=t[93],t[94]!==F.firstRef||t[95]!==Re?(Oe=(0,a.jsx)("div",{ref:F.firstRef,className:"graphiql-plugin",style:Ne,children:Re}),t[94]=F.firstRef,t[95]=Re,t[96]=Oe):Oe=t[96],t[97]!==F.dragBarRef||t[98]!==A?(Fe=A&&(0,a.jsx)("div",{className:"graphiql-horizontal-drag-bar",ref:F.dragBarRef}),t[97]=F.dragBarRef,t[98]=A,t[99]=Fe):Fe=t[99];const Me=F.secondRef;let Ie,Le,Pe,je,Ve;t[100]!==_||t[101]!==re||t[102]!==te||t[103]!==k?(Ie=k.map((e,t,n)=>(0,a.jsxs)(fy,{dragConstraints:Te,value:e,isActive:t===_,children:[(0,a.jsx)(fy.Button,{"aria-controls":"graphiql-session",id:`graphiql-session-tab-${t}`,title:e.title,onClick:re,children:e.title}),n.length>1&&(0,a.jsx)(fy.Close,{onClick:te})]},e.id)),t[100]=_,t[101]=re,t[102]=te,t[103]=k,t[104]=Ie):Ie=t[104],t[105]!==v||t[106]!==Ie||t[107]!==k?(Le=(0,a.jsx)(py,{ref:Te,values:k,onReorder:v,"aria-label":"Select active operation",className:"no-scrollbar",children:Ie}),t[105]=v,t[106]=Ie,t[107]=k,t[108]=Le):Le=t[108],t[109]===Symbol.for("react.memo_cache_sentinel")?(Pe=(0,a.jsx)(Mt,{"aria-hidden":"true"}),t[109]=Pe):Pe=t[109],t[110]!==y?(je=(0,a.jsx)(Pl,{label:gT,children:(0,a.jsx)(Bl,{type:"button",className:"graphiql-tab-add",onClick:y,"aria-label":gT,children:Pe})}),t[110]=y,t[111]=je):je=t[111],t[112]!==K||t[113]!==Le||t[114]!==je?(Ve=(0,a.jsxs)("div",{className:"graphiql-session-header",children:[Le,je,K]}),t[112]=K,t[113]=Le,t[114]=je,t[115]=Ve):Ve=t[115];const Be=`${mT}${_}`;let qe,$e,ze,Ue,We,He,Ge,Qe,Ye;return t[116]!==I.dragBarRef?(qe=(0,a.jsx)("div",{className:"graphiql-horizontal-drag-bar",ref:I.dragBarRef}),t[116]=I.dragBarRef,t[117]=qe):qe=t[117],t[118]!==T?($e=T&&(0,a.jsx)(Zt,{}),t[118]=T,t[119]=$e):$e=t[119],t[120]!==p?(ze=(0,a.jsx)(vy,{responseTooltip:p}),t[120]=p,t[121]=ze):ze=t[121],t[122]!==I.secondRef||t[123]!==W||t[124]!==$e||t[125]!==ze?(Ue=(0,a.jsxs)("div",{className:"graphiql-response",ref:I.secondRef,children:[$e,ze,W]}),t[122]=I.secondRef,t[123]=W,t[124]=$e,t[125]=ze,t[126]=Ue):Ue=t[126],t[127]!==_e||t[128]!==Be||t[129]!==qe||t[130]!==Ue?(We=(0,a.jsxs)("div",{role:"tabpanel",id:"graphiql-session","aria-labelledby":Be,children:[_e,qe,Ue]}),t[127]=_e,t[128]=Be,t[129]=qe,t[130]=Ue,t[131]=We):We=t[131],t[132]!==F.secondRef||t[133]!==Ve||t[134]!==We?(He=(0,a.jsxs)("div",{ref:Me,className:"graphiql-sessions",children:[Ve,We]}),t[132]=F.secondRef,t[133]=Ve,t[134]=We,t[135]=He):He=t[135],t[136]!==Oe||t[137]!==Fe||t[138]!==He?(Ge=(0,a.jsxs)("div",{className:"graphiql-main",children:[Oe,Fe,He]}),t[136]=Oe,t[137]=Fe,t[138]=He,t[139]=Ge):Ge=t[139],t[140]!==Ae||t[141]!==De||t[142]!==Ge?(Qe=(0,a.jsxs)("div",{className:Ae,children:[De,Ge]}),t[140]=Ae,t[141]=De,t[142]=Ge,t[143]=Qe):Qe=t[143],t[144]!==H||t[145]!==Qe?(Ye=(0,a.jsxs)(Pl.Provider,{children:[Qe,H]}),t[144]=H,t[145]=Qe,t[146]=Ye):Ye=t[146],Ye},vT=Object.assign(e=>{var t,n;const r=(0,l.c)(54);let o,i,s,u,d,h,f,p,m,g,y,v,b,x,E,w;r[0]!==e?(({maxHistoryLength:f,plugins:x,referencePlugin:E,onEditQuery:m,onEditVariables:g,onEditHeaders:p,responseTooltip:v,defaultEditorToolsVisibility:u,isHeadersEditorEnabled:h,showPersistHeadersSettings:b,forcedTheme:d,confirmCloseTab:s,className:i,children:o,...y}=e),r[0]=e,r[1]=o,r[2]=i,r[3]=s,r[4]=u,r[5]=d,r[6]=h,r[7]=f,r[8]=p,r[9]=m,r[10]=g,r[11]=y,r[12]=v,r[13]=b,r[14]=x,r[15]=E):(o=r[1],i=r[2],s=r[3],u=r[4],d=r[5],h=r[6],f=r[7],p=r[8],m=r[9],g=r[10],y=r[11],v=r[12],b=r[13],x=r[14],E=r[15]),r[16]!==x?(w=void 0===x?[Fy]:x,r[16]=x,r[17]=w):w=r[17];const C=w,S=void 0===E?g_:E;if(null==(t=y.toolbar)?void 0:t.additionalContent)throw new TypeError("The `toolbar.additionalContent` prop has been removed. Use render props on `GraphiQL.Toolbar` component instead.");if(null==(n=y.toolbar)?void 0:n.additionalComponent)throw new TypeError("The `toolbar.additionalComponent` prop has been removed. Use render props on `GraphiQL.Toolbar` component instead.");if(y.keyMap)throw new TypeError("`keyMap` was removed. To use Vim or Emacs keybindings in Monaco, you can use community plugins. Monaco Vim: https://github.com/brijeshb42/monaco-vim. Monaco Emacs: https://github.com/aioutecism/monaco-emacs");if(y.readOnly)throw new TypeError("The `readOnly` prop has been removed.");const k=b??!1!==y.shouldPersistHeaders;let _;r[18]!==i||r[19]!==s||r[20]!==u||r[21]!==d||r[22]!==h||r[23]!==p||r[24]!==m||r[25]!==g||r[26]!==v||r[27]!==k?(_={showPersistHeadersSettings:k,onEditQuery:m,onEditVariables:g,onEditHeaders:p,responseTooltip:v,defaultEditorToolsVisibility:u,isHeadersEditorEnabled:h,forcedTheme:d,confirmCloseTab:s,className:i},r[18]=i,r[19]=s,r[20]=u,r[21]=d,r[22]=h,r[23]=p,r[24]=m,r[25]=g,r[26]=v,r[27]=k,r[28]=_):_=r[28];const T=_;let A;r[29]!==C?(A=C.includes(Fy),r[29]=C,r[30]=A):A=r[30];const D=A,N=D?Ey:c.Fragment,R=S===g_?b_:c.Fragment;let O,F,M,I,L,P,j;return r[31]!==S?(O=S?[S]:[],r[31]=S,r[32]=O):O=r[32],r[33]!==C||r[34]!==O?(F=[...O,...C],r[33]=C,r[34]=O,r[35]=F):F=r[35],r[36]!==D||r[37]!==f?(M=D&&{maxHistoryLength:f},r[36]=D,r[37]=f,r[38]=M):M=r[38],r[39]!==o||r[40]!==T?(I=(0,a.jsx)(yT,{...T,children:o}),r[39]=o,r[40]=T,r[41]=I):I=r[41],r[42]!==R||r[43]!==I?(L=(0,a.jsx)(R,{children:I}),r[42]=R,r[43]=I,r[44]=L):L=r[44],r[45]!==N||r[46]!==L||r[47]!==M?(P=(0,a.jsx)(N,{...M,children:L}),r[45]=N,r[46]=L,r[47]=M,r[48]=P):P=r[48],r[49]!==y||r[50]!==S||r[51]!==P||r[52]!==F?(j=(0,a.jsx)(nt,{plugins:F,referencePlugin:S,...y,children:P}),r[49]=y,r[50]=S,r[51]=P,r[52]=F,r[53]=j):j=r[53],j},{Logo:e=>{const t=(0,l.c)(2),{children:n}=e,r=void 0===n?D_:n;let o;return t[0]!==r?(o=(0,a.jsx)("div",{className:"graphiql-logo",children:r}),t[0]=r,t[1]=o):o=t[1],o},Toolbar:e=>{const t=(0,l.c)(14),{children:n}=e,r=void 0===n?A_:n,o="function"==typeof r,{copyQuery:i,prettifyEditors:s,mergeQuery:c}=it();if(!o)return r;let u,d;t[0]===Symbol.for("react.memo_cache_sentinel")?(u=(0,a.jsx)(It,{className:"graphiql-toolbar-icon","aria-hidden":"true"}),t[0]=u):u=t[0],t[1]!==s?(d=(0,a.jsx)(T_,{onClick:s,label:`Prettify query (${_.prettify.key})`,children:u}),t[1]=s,t[2]=d):d=t[2];const h=d;let f,p;t[3]===Symbol.for("react.memo_cache_sentinel")?(f=(0,a.jsx)(Rt,{className:"graphiql-toolbar-icon","aria-hidden":"true"}),t[3]=f):f=t[3],t[4]!==c?(p=(0,a.jsx)(T_,{onClick:c,label:`Merge fragments into query (${_.mergeFragments.key})`,children:f}),t[4]=c,t[5]=p):p=t[5];const m=p;let g,y;t[6]===Symbol.for("react.memo_cache_sentinel")?(g=(0,a.jsx)(vt,{className:"graphiql-toolbar-icon","aria-hidden":"true"}),t[6]=g):g=t[6],t[7]!==i?(y=(0,a.jsx)(T_,{onClick:i,label:`Copy query (${_.copyQuery.key})`,children:g}),t[7]=i,t[8]=y):y=t[8];const v=y;let b;return t[9]!==r||t[10]!==v||t[11]!==m||t[12]!==h?(b=r({prettify:h,copy:v,merge:m}),t[9]=r,t[10]=v,t[11]=m,t[12]=h,t[13]=b):b=t[13],b},Footer:e=>{const t=(0,l.c)(2),{children:n}=e;let r;return t[0]!==n?(r=(0,a.jsx)("div",{className:"graphiql-footer",children:n}),t[0]=n,t[1]=r):r=t[1],r}});function bT(e){return Boolean(e.monaco)}function xT(e,t){e:switch(function(e){if(e&&"object"==typeof e&&"type"in e&&"function"==typeof e.type)return e.type}(t)){case vT.Logo:e.logo=t;break e;case vT.Toolbar:e.toolbar=t;break e;case vT.Footer:e.footer=t;break e;default:e.children.push(t)}return e}},26241(e,t,n){"use strict";n.d(t,{Io:()=>o.Io,JR:()=>i.JR,Jb:()=>i.Jb,W8:()=>r.W8,yX:()=>i.yX}),n(60369);var r=n(13901),o=n(86896),i=n(25907)},60016(e,t,n){"use strict";var r=n(86896);n(13901),n(84437),r.Io.Function,r.Io.Function,r.Io.Function,r.Io.Function,r.Io.Function,r.Io.Function,r.Io.Function,r.Io.Function,r.Io.Function,r.Io.Function,r.Io.Constructor},72017(e,t,n){"use strict";n(13901),n(25907)},98969(e,t,n){"use strict";n(13901)},60369(e,t,n){"use strict";n(60016),n(56220),n(72017),n(50215),n(98969)},93629(e,t,n){"use strict";n.d(t,{W8:()=>c});var r,o=n(13901),i=n(14552),s=n(26788),a=n(34627);!function(e){e.TYPE_SYSTEM="TYPE_SYSTEM",e.EXECUTABLE="EXECUTABLE",e.UNKNOWN="UNKNOWN"}(r||(r={}));const l=[i.b.SCHEMA_DEFINITION,i.b.OPERATION_TYPE_DEFINITION,i.b.SCALAR_TYPE_DEFINITION,i.b.OBJECT_TYPE_DEFINITION,i.b.INTERFACE_TYPE_DEFINITION,i.b.UNION_TYPE_DEFINITION,i.b.ENUM_TYPE_DEFINITION,i.b.INPUT_OBJECT_TYPE_DEFINITION,i.b.DIRECTIVE_DEFINITION,i.b.SCHEMA_EXTENSION,i.b.SCALAR_TYPE_EXTENSION,i.b.OBJECT_TYPE_EXTENSION,i.b.INTERFACE_TYPE_EXTENSION,i.b.UNION_TYPE_EXTENSION,i.b.ENUM_TYPE_EXTENSION,i.b.INPUT_OBJECT_TYPE_EXTENSION];function c(e,t,n,i,c,u=0){const d=i||function(e,t,n=0){let r=null,i=null,s=null;const a=function(e,t){const n=e.split("\n"),r=(0,o.r5)();let i=r.startState(),s="",a=new o.Qb("");for(let e=0;e<n.length;e++){for(a=new o.Qb(n[e]);!a.eol()&&(s=r.token(a,i),"BREAK"!==t(a,i,s,e)););t(a,i,s,e),i.kind||(i=r.startState())}return{start:a.getStartOfToken(),end:a.getCurrentPosition(),string:a.current(),state:i,style:s}}(e,(e,o,a,l)=>{if(!(l!==t.line||e.getCurrentPosition()+n<t.character+1))return r=a,i=Object.assign({},o),s=e.current(),"BREAK"});return{start:a.start,end:a.end,string:s||a.string,state:i||a.state,style:r||a.style}}(e,t,u);if(!d)return null;const h="Invalid"===d.state.kind?d.state.prevState:d.state;return h?{token:d,state:h,typeInfo:(0,o.VJ)(n,d.state),mode:(null==c?void 0:c.mode)||(f=e,p=null==c?void 0:c.uri,(null==p?void 0:p.endsWith(".graphqls"))?r.TYPE_SYSTEM:(e=>{let t=r.UNKNOWN;if(e)try{(0,a.YR)((0,s.qg)(e),{enter(e){if("Document"!==e.kind)return!!l.includes(e.kind)&&(t=r.TYPE_SYSTEM,a.sP);t=r.EXECUTABLE}})}catch(e){return t}return t})(f))}:null;var f,p}},85573(e,t,n){"use strict";n.d(t,{VJ:()=>a});var r=n(79222),o=n(34058),i=n(13901);function s(e,t,n){return n===o.S0.name&&e.getQueryType()===t?o.S0:n===o.Xe.name&&e.getQueryType()===t?o.Xe:n===o.of.name&&(0,r.ML)(t)?o.of:"getFields"in t?t.getFields()[n]:null}function a(e,t){let n,o,a,l,c,u,d,h,f,p,m;return function(e,t){const n=[];let r=e;for(;null==r?void 0:r.kind;)n.push(r),r=r.prevState;for(let e=n.length-1;e>=0;e--)t(n[e])}(t,t=>{var g;switch(t.kind){case i.qx.QUERY:case"ShortQuery":p=e.getQueryType();break;case i.qx.MUTATION:p=e.getMutationType();break;case i.qx.SUBSCRIPTION:p=e.getSubscriptionType();break;case i.qx.INLINE_FRAGMENT:case i.qx.FRAGMENT_DEFINITION:t.type&&(p=e.getType(t.type));break;case i.qx.FIELD:case i.qx.ALIASED_FIELD:p&&t.name?(c=f?s(e,f,t.name):null,p=c?c.type:null):c=null;break;case i.qx.SELECTION_SET:f=(0,r.MR)(p);break;case i.qx.DIRECTIVE:a=t.name?e.getDirective(t.name):null;break;case i.qx.INTERFACE_DEF:t.name&&(d=null,m=new r.VA({name:t.name,interfaces:[],fields:{}}));break;case i.qx.OBJECT_TYPE_DEF:t.name&&(m=null,d=new r.bh({name:t.name,interfaces:[],fields:{}}));break;case i.qx.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case i.qx.FIELD:o=c&&c.args;break;case i.qx.DIRECTIVE:o=a&&a.args;break;case i.qx.ALIASED_FIELD:{const n=null===(g=t.prevState)||void 0===g?void 0:g.name;if(!n){o=null;break}const r=f?s(e,f,n):null;if(!r){o=null;break}o=r.args;break}default:o=null}else o=null;break;case i.qx.ARGUMENT:if(o)for(let e=0;e<o.length;e++)if(o[e].name===t.name){n=o[e];break}u=null==n?void 0:n.type;break;case i.qx.VARIABLE_DEFINITION:case i.qx.VARIABLE:p=u;break;case i.qx.ENUM_VALUE:const y=(0,r.MR)(u);l=y instanceof r.Zb?y.getValues().find(e=>e.value===t.name):null;break;case i.qx.LIST_VALUE:const v=(0,r.yl)(u);u=v instanceof r.KT?v.ofType:null;break;case i.qx.OBJECT_VALUE:const b=(0,r.MR)(u);h=b instanceof r.zP?b.getFields():null;break;case i.qx.OBJECT_FIELD:const x=t.name&&h?h[t.name]:null;u=null==x?void 0:x.type,c=x,p=c?c.type:null;break;case i.qx.NAMED_TYPE:t.name&&(p=e.getType(t.name))}}),{argDef:n,argDefs:o,directiveDef:a,enumValue:l,fieldDef:c,inputType:u,objectFieldDefs:h,parentType:f,type:p,interfaceDef:m,objectTypeDef:d}}},13901(e,t,n){"use strict";n.d(t,{Qb:()=>r.A,VJ:()=>s.VJ,W8:()=>i.W8,qx:()=>a.q,r5:()=>o.A});var r=n(49570),o=(n(72142),n(43669)),i=n(93629),s=n(85573),a=n(38580)},86896(e,t,n){"use strict";var r;n.d(t,{Io:()=>r}),n(84437),n(13901),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(r||(r={}))},86947(e,t,n){"use strict";n.d(t,{Ay:()=>s});var r=n(26788),o=n(34627),i=n(93484);function s(e,t){if(t)try{const n=(0,r.qg)(t);return Object.assign(Object.assign({},function(e,t){const n=t?(0,i.S)(t,e):void 0,r=[];return(0,o.YR)(e,{OperationDefinition(e){r.push(e)}}),{variableToType:n,operations:r}}(n,e)),{documentAST:n})}catch(e){}}},25907(e,t,n){"use strict";n.d(t,{yX:()=>a,JR:()=>s,Jb:()=>C.Ay});var r=n(34627),o=n(80957),i=n.n(o);const s=(e,t)=>{if(!t)return[];const n=new Map,o=new Set;(0,r.YR)(e,{FragmentDefinition(e){n.set(e.name.value,!0)},FragmentSpread(e){o.has(e.name.value)||o.add(e.name.value)}});const s=new Set;for(const e of o)!n.has(e)&&t.has(e)&&s.add(i()(t.get(e)));const a=[];for(const e of s)(0,r.YR)(e,{FragmentSpread(e){!o.has(e.name.value)&&t.get(e.name.value)&&(s.add(i()(t.get(e.name.value))),o.add(e.name.value))}}),n.has(e.name.value)||a.push(e);return a};class a{constructor(e,t){this.lessThanOrEqualTo=e=>this.line<e.line||this.line===e.line&&this.character<=e.character,this.line=e,this.character=t}setLine(e){this.line=e}setCharacter(e){this.character=e}}var l=n(54674),c=n(62043),u=n(31875),d=n(19451),h=n(14100),f=n(92300),p=n(91595),m=n(90363),g=n(41613),y=n(93063),v=n(18668),b=n(59875),x=n(279),E=n(46748),w=n(8098);l.l,c.u,u.i,d.g,h.X,f.Z,p.y,m.e,g.U,y.S,v.J,b.C,x._,E.T,w.X;var C=n(86947)},74884(e,t,n){"use strict";var r=n(1082);function o(e){return!0===r(e)&&"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){var t,n;return!1!==o(e)&&"function"==typeof(t=e.constructor)&&!1!==o(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}},66053(e){"use strict";e.exports=function(e){return"object"==typeof e?null===e:"function"!=typeof e}},1082(e){"use strict";e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},91851(e,t,n){"use strict";n.d(t,{Qi:()=>a,XO:()=>i,bs:()=>l});var r=n(98137);const o=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var i;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||t instanceof s||!(!t||"object"!=typeof t)&&"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested},e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:r.Jh.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:o})}(i||(i={}));class s{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?o:(this._emitter||(this._emitter=new r.vl),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class a{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new s),this._token}cancel(){this._token?this._token instanceof s&&this._token.cancel():this._token=i.Cancelled}dispose(e=!1){e&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof s&&this._token.dispose():this._token=i.None}}function l(e){const t=new a;return e.add({dispose(){t.cancel()}}),t.token}},73336(e,t,n){"use strict";n.d(t,{J:()=>s,k:()=>i});var r=n(52739);const o=Object.create(null);function i(e,t){if((0,r.Kg)(t)){const n=o[t];if(void 0===n)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return o[e]=t,{id:e}}function s(){return o}},48275(e,t,n){"use strict";n.d(t,{AL:()=>c,D7:()=>m,EM:()=>f,MB:()=>l,M_:()=>i,Qg:()=>d,aD:()=>u,cU:()=>s,dz:()=>o,iH:()=>h});const r=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack){if(p.isErrorNoTelemetry(e))throw new p(e.message+"\n\n"+e.stack);throw new Error(e.message+"\n\n"+e.stack)}throw e},0)}}emit(e){this.listeners.forEach(t=>{t(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}};function o(e){l(e)||r.onUnexpectedError(e)}function i(e){l(e)||r.onUnexpectedExternalError(e)}function s(e){if(e instanceof Error){const{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack,noTelemetry:p.isErrorNoTelemetry(e)}}return e}const a="Canceled";function l(e){return e instanceof c||e instanceof Error&&e.name===a&&e.message===a}class c extends Error{constructor(){super(a),this.name=this.message}}function u(){const e=new Error(a);return e.name=e.message,e}function d(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function h(e){return e?new Error(`Illegal state: ${e}`):new Error("Illegal state")}class f extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class p extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof p)return e;const t=new p;return t.message=e.message,t.stack=e.stack,t}static isErrorNoTelemetry(e){return"CodeExpectedError"===e.name}}class m extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,m.prototype)}}},98137(e,t,n){"use strict";n.d(t,{Jh:()=>r,QT:()=>x,Qy:()=>g,Wj:()=>C,_B:()=>E,at:()=>w,fV:()=>v,uI:()=>b,vl:()=>m});var r,o=n(48275),i=n(98885),s=n(80194),a=n(44561),l=n(39657);!function(e){function t(e){return(t,n=null,r)=>{let o,i=!1;return o=e(e=>{if(!i)return o?o.dispose():i=!0,t.call(n,e)},null,r),i&&o.dispose(),o}}function n(e,t,n){return o((n,r=null,o)=>e(e=>n.call(r,t(e)),null,o),n)}function r(e,t,n){return o((n,r=null,o)=>e(e=>t(e)&&n.call(r,e),null,o),n)}function o(e,t){let n;const r=new m({onWillAddFirstListener(){n=e(r.fire,r)},onDidRemoveLastListener(){n?.dispose()}});return t?.add(r),r.event}function i(e,t,n=100,r=!1,o=!1,i,s){let a,l,c,u,d=0;const h=new m({leakWarningThreshold:i,onWillAddFirstListener(){a=e(e=>{d++,l=t(l,e),r&&!c&&(h.fire(l),l=void 0),u=()=>{const e=l;l=void 0,c=void 0,(!r||d>1)&&h.fire(e),d=0},"number"==typeof n?(clearTimeout(c),c=setTimeout(u,n)):void 0===c&&(c=0,queueMicrotask(u))})},onWillRemoveListener(){o&&d>0&&u?.()},onDidRemoveLastListener(){u=void 0,a.dispose()}});return s?.add(h),h.event}e.None=()=>s.jG.None,e.defer=function(e,t){return i(e,()=>{},0,void 0,!0,void 0,t)},e.once=t,e.onceIf=function(t,n){return e.once(e.filter(t,n))},e.map=n,e.forEach=function(e,t,n){return o((n,r=null,o)=>e(e=>{t(e),n.call(r,e)},null,o),n)},e.filter=r,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,r)=>{return o=(0,s.qE)(...e.map(e=>e(e=>t.call(n,e)))),(i=r)instanceof Array?i.push(o):i&&i.add(o),o;var o,i}},e.reduce=function(e,t,r,o){let i=r;return n(e,e=>(i=t(i,e),i),o)},e.debounce=i,e.accumulate=function(t,n=0,r){return e.debounce(t,(e,t)=>e?(e.push(t),e):[t],n,void 0,!0,void 0,r)},e.latch=function(e,t=(e,t)=>e===t,n){let o,i=!0;return r(e,e=>{const n=i||!t(e,o);return i=!1,o=e,n},n)},e.split=function(t,n,r){return[e.filter(t,n,r),e.filter(t,e=>!n(e),r)]},e.buffer=function(e,t=!1,n=[],r){let o=n.slice(),i=e(e=>{o?o.push(e):a.fire(e)});r&&r.add(i);const s=()=>{o?.forEach(e=>a.fire(e)),o=null},a=new m({onWillAddFirstListener(){i||(i=e(e=>a.fire(e)),r&&r.add(i))},onDidAddFirstListener(){o&&(t?setTimeout(s):s())},onDidRemoveLastListener(){i&&i.dispose(),i=null}});return r&&r.add(a),a.event},e.chain=function(e,t){return(n,r,o)=>{const i=t(new l);return e(function(e){const t=i.evaluate(e);t!==a&&n.call(r,t)},void 0,o)}};const a=Symbol("HaltChainable");class l{constructor(){this.steps=[]}map(e){return this.steps.push(e),this}forEach(e){return this.steps.push(t=>(e(t),t)),this}filter(e){return this.steps.push(t=>e(t)?t:a),this}reduce(e,t){let n=t;return this.steps.push(t=>(n=e(n,t),n)),this}latch(e=(e,t)=>e===t){let t,n=!0;return this.steps.push(r=>{const o=n||!e(r,t);return n=!1,t=r,o?r:a}),this}evaluate(e){for(const t of this.steps)if((e=t(e))===a)break;return e}}e.fromNodeEventEmitter=function(e,t,n=e=>e){const r=(...e)=>o.fire(n(...e)),o=new m({onWillAddFirstListener:()=>e.on(t,r),onDidRemoveLastListener:()=>e.removeListener(t,r)});return o.event},e.fromDOMEventEmitter=function(e,t,n=e=>e){const r=(...e)=>o.fire(n(...e)),o=new m({onWillAddFirstListener:()=>e.addEventListener(t,r),onDidRemoveLastListener:()=>e.removeEventListener(t,r)});return o.event},e.toPromise=function(e){return new Promise(n=>t(e)(n))},e.fromPromise=function(e){const t=new m;return e.then(e=>{t.fire(e)},()=>{t.fire(void 0)}).finally(()=>{t.dispose()}),t.event},e.forward=function(e,t){return e(e=>t.fire(e))},e.runAndSubscribe=function(e,t,n){return t(n),e(e=>t(e))};class c{constructor(e,t){this._observable=e,this._counter=0,this._hasChanged=!1;const n={onWillAddFirstListener:()=>{e.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{e.removeObserver(this)}};this.emitter=new m(n),t&&t.add(this.emitter)}beginUpdate(e){this._counter++}handlePossibleChange(e){}handleChange(e,t){this._hasChanged=!0}endUpdate(e){this._counter--,0===this._counter&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}e.fromObservable=function(e,t){return new c(e,t).emitter.event},e.fromObservableLight=function(e){return(t,n,r)=>{let o=0,i=!1;const a={beginUpdate(){o++},endUpdate(){o--,0===o&&(e.reportChanges(),i&&(i=!1,t.call(n)))},handlePossibleChange(){},handleChange(){i=!0}};e.addObserver(a),e.reportChanges();const l={dispose(){e.removeObserver(a)}};return r instanceof s.Cm?r.add(l):Array.isArray(r)&&r.push(l),l}}}(r||(r={}));class c{static{this.all=new Set}static{this._idPool=0}constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${c._idPool++}`,c.all.add(this)}start(e){this._stopWatch=new l.W,this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}class u{static{this._idPool=1}constructor(e,t,n=(u._idPool++).toString(16).padStart(3,"0")){this._errorHandler=e,this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(e,t){const n=this.threshold;if(n<=0||t<n)return;this._stacks||(this._stacks=new Map);const r=this._stacks.get(e.value)||0;if(this._stacks.set(e.value,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*n;const[e,r]=this.getMostFrequentStack(),o=`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${r}):`;console.warn(o),console.warn(e);const i=new h(o,e);this._errorHandler(i)}return()=>{const t=this._stacks.get(e.value)||0;this._stacks.set(e.value,t-1)}}getMostFrequentStack(){if(!this._stacks)return;let e,t=0;for(const[n,r]of this._stacks)(!e||t<r)&&(e=[n,r],t=r);return e}}class d{static create(){const e=new Error;return new d(e.stack??"")}constructor(e){this.value=e}print(){console.warn(this.value.split("\n").slice(2).join("\n"))}}class h extends Error{constructor(e,t){super(e),this.name="ListenerLeakError",this.stack=t}}class f extends Error{constructor(e,t){super(e),this.name="ListenerRefusalError",this.stack=t}}class p{constructor(e){this.value=e}}class m{constructor(e){this._size=0,this._options=e,this._leakageMon=this._options?.leakWarningThreshold?new u(e?.onListenerError??o.dz,this._options?.leakWarningThreshold??-1):void 0,this._perfMon=this._options?._profName?new c(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??=(e,t,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const e=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(e);const t=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],n=new f(`${e}. HINT: Stack shows most frequent listener (${t[1]}-times)`,t[0]);return(this._options?.onListenerError||o.dz)(n),s.jG.None}if(this._disposed)return s.jG.None;t&&(e=e.bind(t));const r=new p(e);let i;this._leakageMon&&this._size>=Math.ceil(.2*this._leakageMon.threshold)&&(r.stack=d.create(),i=this._leakageMon.check(r.stack,this._size+1)),this._listeners?this._listeners instanceof p?(this._deliveryQueue??=new y,this._listeners=[this._listeners,r]):this._listeners.push(r):(this._options?.onWillAddFirstListener?.(this),this._listeners=r,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=(0,s.s)(()=>{i?.(),this._removeListener(r)});return n instanceof s.Cm?n.add(a):Array.isArray(n)&&n.push(a),a},this._event}_removeListener(e){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(1===this._size)return this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),void(this._size=0);const t=this._listeners,n=t.indexOf(e);if(-1===n)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,t[n]=void 0;const r=this._deliveryQueue.current===this;if(2*this._size<=t.length){let e=0;for(let n=0;n<t.length;n++)t[n]?t[e++]=t[n]:r&&(this._deliveryQueue.end--,e<this._deliveryQueue.i&&this._deliveryQueue.i--);t.length=e}}_deliver(e,t){if(!e)return;const n=this._options?.onListenerError||o.dz;if(n)try{e.value(t)}catch(e){n(e)}else e.value(t)}_deliverQueue(e){const t=e.current._listeners;for(;e.i<e.end;)this._deliver(t[e.i++],e.value);e.reset()}fire(e){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof p)this._deliver(this._listeners,e);else{const t=this._deliveryQueue;t.enqueue(this,e,this._listeners.length),this._deliverQueue(t)}this._perfMon?.stop()}hasListeners(){return this._size>0}}const g=()=>new y;class y{constructor(){this.i=-1,this.end=0}enqueue(e,t,n){this.i=0,this.end=n,this.current=e,this.value=t}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class v extends m{constructor(e){super(e),this._isPaused=0,this._eventQueue=new a.w,this._mergeFn=e?.merge}pause(){this._isPaused++}resume(){if(0!==this._isPaused&&0===--this._isPaused)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&0!==this._eventQueue.size;)super.fire(this._eventQueue.shift())}fire(e){this._size&&(0!==this._isPaused?this._eventQueue.push(e):super.fire(e))}}class b extends v{constructor(e){super(e),this._delay=e.delay??100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class x extends m{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e?.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),1===this._queuedEvents.length&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(e=>super.fire(e)),this._queuedEvents=[]}))}}class E{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new m({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};return this.events.push(t),this.hasListeners&&this.hook(t),(0,s.s)((0,i.P)(()=>{this.hasListeners&&this.unhook(t);const e=this.events.indexOf(t);this.events.splice(e,1)}))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(e=>this.hook(e))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(e=>this.unhook(e))}hook(e){e.listener=e.event(e=>this.emitter.fire(e))}unhook(e){e.listener?.dispose(),e.listener=null}dispose(){this.emitter.dispose();for(const e of this.events)e.listener?.dispose();this.events=[]}}class w{constructor(){this.data=[]}wrapEvent(e,t,n){return(r,o,i)=>e(e=>{const i=this.data[this.data.length-1];if(!t)return void(i?i.buffers.push(()=>r.call(o,e)):r.call(o,e));const s=i;s?(s.items??=[],s.items.push(e),0===s.buffers.length&&i.buffers.push(()=>{s.reducedResult??=n?s.items.reduce(t,n):s.items.reduce(t),r.call(o,s.reducedResult)})):r.call(o,t(n,e))},void 0,i)}bufferEvents(e){const t={buffers:new Array};this.data.push(t);const n=e();return this.data.pop(),t.buffers.forEach(e=>e()),n}}class C{constructor(){this.listening=!1,this.inputEvent=r.None,this.inputEventListener=s.jG.None,this.emitter=new m({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},4014(e,t,n){"use strict";var r;n.d(t,{f:()=>r}),function(e){function t(e){return e&&"object"==typeof e&&"function"==typeof e[Symbol.iterator]}e.is=t;const n=Object.freeze([]);function*r(e){yield e}e.empty=function(){return n},e.single=r,e.wrap=function(e){return t(e)?e:r(e)},e.from=function(e){return e||n},e.reverse=function*(e){for(let t=e.length-1;t>=0;t--)yield e[t]},e.isEmpty=function(e){return!e||!0===e[Symbol.iterator]().next().done},e.first=function(e){return e[Symbol.iterator]().next().value},e.some=function(e,t){let n=0;for(const r of e)if(t(r,n++))return!0;return!1},e.find=function(e,t){for(const n of e)if(t(n))return n},e.filter=function*(e,t){for(const n of e)t(n)&&(yield n)},e.map=function*(e,t){let n=0;for(const r of e)yield t(r,n++)},e.flatMap=function*(e,t){let n=0;for(const r of e)yield*t(r,n++)},e.concat=function*(...e){for(const t of e)yield*t},e.reduce=function(e,t,n){let r=n;for(const n of e)r=t(r,n);return r},e.slice=function*(e,t,n=e.length){for(t<0&&(t+=e.length),n<0?n+=e.length:n>e.length&&(n=e.length);t<n;t++)yield e[t]},e.consume=function(t,n=Number.POSITIVE_INFINITY){const r=[];if(0===n)return[r,t];const o=t[Symbol.iterator]();for(let t=0;t<n;t++){const t=o.next();if(t.done)return[r,e.empty()];r.push(t.value)}return[r,{[Symbol.iterator]:()=>o}]},e.asyncToArray=async function(e){const t=[];for await(const n of e)t.push(n);return Promise.resolve(t)}}(r||(r={}))},11151(e,t,n){"use strict";n.d(t,{Fo:()=>h,YM:()=>p,m5:()=>m,uw:()=>a});class r{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const o=new r,i=new r,s=new r,a=new Array(230),l={},c=[],u=Object.create(null),d=Object.create(null),h=[],f=[];for(let e=0;e<=193;e++)h[e]=-1;for(let e=0;e<=132;e++)f[e]=-1;var p;function m(e,t){return(e|(65535&t)<<16>>>0)>>>0}!function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],r=[];for(const e of t){const[t,p,m,g,y,v,b,x,E]=e;if(r[p]||(r[p]=!0,c[p]=m,u[m]=p,d[m.toLowerCase()]=p,t&&(h[p]=g,0!==g&&3!==g&&5!==g&&4!==g&&6!==g&&57!==g&&(f[g]=p))),!n[g]){if(n[g]=!0,!y)throw new Error(`String representation missing for key code ${g} around scan code ${m}`);o.define(g,y),i.define(g,x||y),s.define(g,E||x||y)}v&&(a[v]=g),b&&(l[b]=g)}f[3]=46}(),function(e){e.toString=function(e){return o.keyCodeToStr(e)},e.fromString=function(e){return o.strToKeyCode(e)},e.toUserSettingsUS=function(e){return i.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return s.keyCodeToStr(e)},e.fromUserSettings=function(e){return i.strToKeyCode(e)||s.strToKeyCode(e)},e.toElectronAccelerator=function(e){if(e>=98&&e<=113)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return o.keyCodeToStr(e)}}(p||(p={}))},80194(e,t,n){"use strict";n.d(t,{$w:()=>b,AS:()=>d,Ay:()=>s,BO:()=>v,Cm:()=>p,HE:()=>g,VD:()=>a,Xm:()=>u,jG:()=>m,lC:()=>c,mp:()=>y,qE:()=>h,s:()=>f});var r=n(98885),o=n(4014);let i=null;function s(e){return i?.trackDisposable(e),e}function a(e){i?.markAsDisposed(e)}function l(e,t){i?.setParent(e,t)}function c(e){return i?.markAsSingleton(e),e}function u(e){return"object"==typeof e&&null!==e&&"function"==typeof e.dispose&&0===e.dispose.length}function d(e){if(o.f.is(e)){const t=[];for(const n of e)if(n)try{n.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function h(...e){const t=f(()=>d(e));return t}function f(e){const t=s({dispose:(0,r.P)(()=>{a(t),e()})});return t}class p{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,s(this)}dispose(){this._isDisposed||(a(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{d(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return l(e,this),this._isDisposed?p.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){e&&this._toDispose.has(e)&&(this._toDispose.delete(e),l(e,null))}}class m{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new p,s(this),l(this._store,this)}dispose(){a(this),this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}class g{constructor(){this._isDisposed=!1,s(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){this._isDisposed||e===this._value||(this._value?.dispose(),e&&l(e,this),this._value=e)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,a(this),this._value?.dispose(),this._value=void 0}}class y{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return 0===--this._counter&&this._disposable.dispose(),this}}class v{constructor(e){this.object=e}dispose(){}}class b{constructor(){this._store=new Map,this._isDisposed=!1,s(this)}dispose(){a(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{d(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,n=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||this._store.get(e)?.dispose(),this._store.set(e,t)}deleteAndDispose(e){this._store.get(e)?.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},41095(e,t,n){"use strict";n.d(t,{IN:()=>g,LC:()=>k,P8:()=>S,S8:()=>b,SA:()=>v,V8:()=>w,Vn:()=>_,fj:()=>x,hd:()=>E,pD:()=>C});var r=n(9059);const o=46,i=47,s=92,a=58;class l extends Error{constructor(e,t,n){let r;"string"==typeof t&&0===t.indexOf("not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";const o=-1!==e.indexOf(".")?"property":"argument";let i=`The "${e}" ${o} ${r} of type ${t}`;i+=". Received type "+typeof n,super(i),this.code="ERR_INVALID_ARG_TYPE"}}function c(e,t){if("string"!=typeof e)throw new l(t,"string",e)}const u="win32"===r.iD;function d(e){return e===i||e===s}function h(e){return e===i}function f(e){return e>=65&&e<=90||e>=97&&e<=122}function p(e,t,n,r){let s="",a=0,l=-1,c=0,u=0;for(let d=0;d<=e.length;++d){if(d<e.length)u=e.charCodeAt(d);else{if(r(u))break;u=i}if(r(u)){if(l===d-1||1===c);else if(2===c){if(s.length<2||2!==a||s.charCodeAt(s.length-1)!==o||s.charCodeAt(s.length-2)!==o){if(s.length>2){const e=s.lastIndexOf(n);-1===e?(s="",a=0):(s=s.slice(0,e),a=s.length-1-s.lastIndexOf(n)),l=d,c=0;continue}if(0!==s.length){s="",a=0,l=d,c=0;continue}}t&&(s+=s.length>0?`${n}..`:"..",a=2)}else s.length>0?s+=`${n}${e.slice(l+1,d)}`:s=e.slice(l+1,d),a=d-l-1;l=d,c=0}else u===o&&-1!==c?++c:c=-1}return s}function m(e,t){!function(e){if(null===e||"object"!=typeof e)throw new l("pathObject","Object",e)}(t);const n=t.dir||t.root,r=t.base||`${t.name||""}${o=t.ext,o?`${"."===o[0]?"":"."}${o}`:""}`;var o;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const g={resolve(...e){let t="",n="",o=!1;for(let i=e.length-1;i>=-1;i--){let l;if(i>=0){if(l=e[i],c(l,`paths[${i}]`),0===l.length)continue}else 0===t.length?l=r.bJ():(l={version:"9.3.0-alpha.2"}[`=${t}`]||r.bJ(),(void 0===l||l.slice(0,2).toLowerCase()!==t.toLowerCase()&&l.charCodeAt(2)===s)&&(l=`${t}\\`));const u=l.length;let h=0,p="",m=!1;const g=l.charCodeAt(0);if(1===u)d(g)&&(h=1,m=!0);else if(d(g))if(m=!0,d(l.charCodeAt(1))){let e=2,t=e;for(;e<u&&!d(l.charCodeAt(e));)e++;if(e<u&&e!==t){const n=l.slice(t,e);for(t=e;e<u&&d(l.charCodeAt(e));)e++;if(e<u&&e!==t){for(t=e;e<u&&!d(l.charCodeAt(e));)e++;e!==u&&e===t||(p=`\\\\${n}\\${l.slice(t,e)}`,h=e)}}}else h=1;else f(g)&&l.charCodeAt(1)===a&&(p=l.slice(0,2),h=2,u>2&&d(l.charCodeAt(2))&&(m=!0,h=3));if(p.length>0)if(t.length>0){if(p.toLowerCase()!==t.toLowerCase())continue}else t=p;if(o){if(t.length>0)break}else if(n=`${l.slice(h)}\\${n}`,o=m,m&&t.length>0)break}return n=p(n,!o,"\\",d),o?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){c(e,"path");const t=e.length;if(0===t)return".";let n,r=0,o=!1;const i=e.charCodeAt(0);if(1===t)return h(i)?"\\":e;if(d(i))if(o=!0,d(e.charCodeAt(1))){let o=2,i=o;for(;o<t&&!d(e.charCodeAt(o));)o++;if(o<t&&o!==i){const s=e.slice(i,o);for(i=o;o<t&&d(e.charCodeAt(o));)o++;if(o<t&&o!==i){for(i=o;o<t&&!d(e.charCodeAt(o));)o++;if(o===t)return`\\\\${s}\\${e.slice(i)}\\`;o!==i&&(n=`\\\\${s}\\${e.slice(i,o)}`,r=o)}}}else r=1;else f(i)&&e.charCodeAt(1)===a&&(n=e.slice(0,2),r=2,t>2&&d(e.charCodeAt(2))&&(o=!0,r=3));let s=r<t?p(e.slice(r),!o,"\\",d):"";return 0!==s.length||o||(s="."),s.length>0&&d(e.charCodeAt(t-1))&&(s+="\\"),void 0===n?o?`\\${s}`:s:o?`${n}\\${s}`:`${n}${s}`},isAbsolute(e){c(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return d(n)||t>2&&f(n)&&e.charCodeAt(1)===a&&d(e.charCodeAt(2))},join(...e){if(0===e.length)return".";let t,n;for(let r=0;r<e.length;++r){const o=e[r];c(o,"path"),o.length>0&&(void 0===t?t=n=o:t+=`\\${o}`)}if(void 0===t)return".";let r=!0,o=0;if("string"==typeof n&&d(n.charCodeAt(0))){++o;const e=n.length;e>1&&d(n.charCodeAt(1))&&(++o,e>2&&(d(n.charCodeAt(2))?++o:r=!1))}if(r){for(;o<t.length&&d(t.charCodeAt(o));)o++;o>=2&&(t=`\\${t.slice(o)}`)}return g.normalize(t)},relative(e,t){if(c(e,"from"),c(t,"to"),e===t)return"";const n=g.resolve(e),r=g.resolve(t);if(n===r)return"";if((e=n.toLowerCase())===(t=r.toLowerCase()))return"";let o=0;for(;o<e.length&&e.charCodeAt(o)===s;)o++;let i=e.length;for(;i-1>o&&e.charCodeAt(i-1)===s;)i--;const a=i-o;let l=0;for(;l<t.length&&t.charCodeAt(l)===s;)l++;let u=t.length;for(;u-1>l&&t.charCodeAt(u-1)===s;)u--;const d=u-l,h=a<d?a:d;let f=-1,p=0;for(;p<h;p++){const n=e.charCodeAt(o+p);if(n!==t.charCodeAt(l+p))break;n===s&&(f=p)}if(p!==h){if(-1===f)return r}else{if(d>h){if(t.charCodeAt(l+p)===s)return r.slice(l+p+1);if(2===p)return r.slice(l+p)}a>h&&(e.charCodeAt(o+p)===s?f=p:2===p&&(f=3)),-1===f&&(f=0)}let m="";for(p=o+f+1;p<=i;++p)p!==i&&e.charCodeAt(p)!==s||(m+=0===m.length?"..":"\\..");return l+=f,m.length>0?`${m}${r.slice(l,u)}`:(r.charCodeAt(l)===s&&++l,r.slice(l,u))},toNamespacedPath(e){if("string"!=typeof e||0===e.length)return e;const t=g.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===s){if(t.charCodeAt(1)===s){const e=t.charCodeAt(2);if(63!==e&&e!==o)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(f(t.charCodeAt(0))&&t.charCodeAt(1)===a&&t.charCodeAt(2)===s)return`\\\\?\\${t}`;return e},dirname(e){c(e,"path");const t=e.length;if(0===t)return".";let n=-1,r=0;const o=e.charCodeAt(0);if(1===t)return d(o)?e:".";if(d(o)){if(n=r=1,d(e.charCodeAt(1))){let o=2,i=o;for(;o<t&&!d(e.charCodeAt(o));)o++;if(o<t&&o!==i){for(i=o;o<t&&d(e.charCodeAt(o));)o++;if(o<t&&o!==i){for(i=o;o<t&&!d(e.charCodeAt(o));)o++;if(o===t)return e;o!==i&&(n=r=o+1)}}}}else f(o)&&e.charCodeAt(1)===a&&(n=t>2&&d(e.charCodeAt(2))?3:2,r=n);let i=-1,s=!0;for(let n=t-1;n>=r;--n)if(d(e.charCodeAt(n))){if(!s){i=n;break}}else s=!1;if(-1===i){if(-1===n)return".";i=n}return e.slice(0,i)},basename(e,t){void 0!==t&&c(t,"suffix"),c(e,"path");let n,r=0,o=-1,i=!0;if(e.length>=2&&f(e.charCodeAt(0))&&e.charCodeAt(1)===a&&(r=2),void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(n=e.length-1;n>=r;--n){const l=e.charCodeAt(n);if(d(l)){if(!i){r=n+1;break}}else-1===a&&(i=!1,a=n+1),s>=0&&(l===t.charCodeAt(s)?-1===--s&&(o=n):(s=-1,o=a))}return r===o?o=a:-1===o&&(o=e.length),e.slice(r,o)}for(n=e.length-1;n>=r;--n)if(d(e.charCodeAt(n))){if(!i){r=n+1;break}}else-1===o&&(i=!1,o=n+1);return-1===o?"":e.slice(r,o)},extname(e){c(e,"path");let t=0,n=-1,r=0,i=-1,s=!0,l=0;e.length>=2&&e.charCodeAt(1)===a&&f(e.charCodeAt(0))&&(t=r=2);for(let a=e.length-1;a>=t;--a){const t=e.charCodeAt(a);if(d(t)){if(!s){r=a+1;break}}else-1===i&&(s=!1,i=a+1),t===o?-1===n?n=a:1!==l&&(l=1):-1!==n&&(l=-1)}return-1===n||-1===i||0===l||1===l&&n===i-1&&n===r+1?"":e.slice(n,i)},format:m.bind(null,"\\"),parse(e){c(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.length;let r=0,i=e.charCodeAt(0);if(1===n)return d(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(d(i)){if(r=1,d(e.charCodeAt(1))){let t=2,o=t;for(;t<n&&!d(e.charCodeAt(t));)t++;if(t<n&&t!==o){for(o=t;t<n&&d(e.charCodeAt(t));)t++;if(t<n&&t!==o){for(o=t;t<n&&!d(e.charCodeAt(t));)t++;t===n?r=t:t!==o&&(r=t+1)}}}}else if(f(i)&&e.charCodeAt(1)===a){if(n<=2)return t.root=t.dir=e,t;if(r=2,d(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let s=-1,l=r,u=-1,h=!0,p=e.length-1,m=0;for(;p>=r;--p)if(i=e.charCodeAt(p),d(i)){if(!h){l=p+1;break}}else-1===u&&(h=!1,u=p+1),i===o?-1===s?s=p:1!==m&&(m=1):-1!==s&&(m=-1);return-1!==u&&(-1===s||0===m||1===m&&s===u-1&&s===l+1?t.base=t.name=e.slice(l,u):(t.name=e.slice(l,s),t.base=e.slice(l,u),t.ext=e.slice(s,u))),t.dir=l>0&&l!==r?e.slice(0,l-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},y=(()=>{if(u){const e=/\\/g;return()=>{const t=r.bJ().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>r.bJ()})(),v={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const o=r>=0?e[r]:y();c(o,`paths[${r}]`),0!==o.length&&(t=`${o}/${t}`,n=o.charCodeAt(0)===i)}return t=p(t,!n,"/",h),n?`/${t}`:t.length>0?t:"."},normalize(e){if(c(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===i,n=e.charCodeAt(e.length-1)===i;return 0===(e=p(e,!t,"/",h)).length?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute:e=>(c(e,"path"),e.length>0&&e.charCodeAt(0)===i),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];c(r,"path"),r.length>0&&(void 0===t?t=r:t+=`/${r}`)}return void 0===t?".":v.normalize(t)},relative(e,t){if(c(e,"from"),c(t,"to"),e===t)return"";if((e=v.resolve(e))===(t=v.resolve(t)))return"";const n=e.length,r=n-1,o=t.length-1,s=r<o?r:o;let a=-1,l=0;for(;l<s;l++){const n=e.charCodeAt(1+l);if(n!==t.charCodeAt(1+l))break;n===i&&(a=l)}if(l===s)if(o>s){if(t.charCodeAt(1+l)===i)return t.slice(1+l+1);if(0===l)return t.slice(1+l)}else r>s&&(e.charCodeAt(1+l)===i?a=l:0===l&&(a=0));let u="";for(l=1+a+1;l<=n;++l)l!==n&&e.charCodeAt(l)!==i||(u+=0===u.length?"..":"/..");return`${u}${t.slice(1+a)}`},toNamespacedPath:e=>e,dirname(e){if(c(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===i;let n=-1,r=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===i){if(!r){n=t;break}}else r=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&c(t,"ext"),c(e,"path");let n,r=0,o=-1,s=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,l=-1;for(n=e.length-1;n>=0;--n){const c=e.charCodeAt(n);if(c===i){if(!s){r=n+1;break}}else-1===l&&(s=!1,l=n+1),a>=0&&(c===t.charCodeAt(a)?-1===--a&&(o=n):(a=-1,o=l))}return r===o?o=l:-1===o&&(o=e.length),e.slice(r,o)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===i){if(!s){r=n+1;break}}else-1===o&&(s=!1,o=n+1);return-1===o?"":e.slice(r,o)},extname(e){c(e,"path");let t=-1,n=0,r=-1,s=!0,a=0;for(let l=e.length-1;l>=0;--l){const c=e.charCodeAt(l);if(c!==i)-1===r&&(s=!1,r=l+1),c===o?-1===t?t=l:1!==a&&(a=1):-1!==t&&(a=-1);else if(!s){n=l+1;break}}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===n+1?"":e.slice(t,r)},format:m.bind(null,"/"),parse(e){c(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const n=e.charCodeAt(0)===i;let r;n?(t.root="/",r=1):r=0;let s=-1,a=0,l=-1,u=!0,d=e.length-1,h=0;for(;d>=r;--d){const t=e.charCodeAt(d);if(t!==i)-1===l&&(u=!1,l=d+1),t===o?-1===s?s=d:1!==h&&(h=1):-1!==s&&(h=-1);else if(!u){a=d+1;break}}if(-1!==l){const r=0===a&&n?1:a;-1===s||0===h||1===h&&s===l-1&&s===a+1?t.base=t.name=e.slice(r,l):(t.name=e.slice(r,s),t.base=e.slice(r,l),t.ext=e.slice(s,l))}return a>0?t.dir=e.slice(0,a-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};v.win32=g.win32=g,v.posix=g.posix=v;const b=u?g.normalize:v.normalize,x=u?g.join:v.join,E=u?g.resolve:v.resolve,w=u?g.relative:v.relative,C=u?g.dirname:v.dirname,S=u?g.basename:v.basename,k=u?g.extname:v.extname,_=u?g.sep:v.sep},34591(e,t,n){"use strict";n.d(t,{BH:()=>M,Fr:()=>O,H8:()=>q,HZ:()=>D,OS:()=>P,UP:()=>K,_p:()=>L,cm:()=>B,gm:()=>$,ib:()=>A,j9:()=>T,lg:()=>N,m0:()=>U,nr:()=>z,uF:()=>k,un:()=>R,zx:()=>_});var r=n(14425);const o="en";let i,s,a=!1,l=!1,c=!1,u=!1,d=!1,h=!1,f=!1,p=!1,m=!1,g=!1,y=o,v=null,b=null;const x=globalThis;let E;void 0!==x.vscode&&void 0!==x.vscode.process?E=x.vscode.process:"undefined"!=typeof process&&"string"==typeof process?.versions?.node&&(E=process);const w="string"==typeof E?.versions?.electron,C=w&&"renderer"===E?.type;if("object"==typeof E){a="win32"===E.platform,l="darwin"===E.platform,c="linux"===E.platform,u=c&&!!E.env.SNAP&&!!E.env.SNAP_REVISION,f=w,m=!!E.env.CI||!!E.env.BUILD_ARTIFACTSTAGINGDIRECTORY,i=o,y=o;const e=E.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);i=t.userLocale,v=t.osLocale,y=t.resolvedLanguage||o,b=t.languagePack?.translationsConfigFile}catch(e){}d=!0}else"object"!=typeof navigator||C?console.error("Unable to resolve platform."):(s=navigator.userAgent,a=s.indexOf("Windows")>=0,l=s.indexOf("Macintosh")>=0,p=(s.indexOf("Macintosh")>=0||s.indexOf("iPad")>=0||s.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,c=s.indexOf("Linux")>=0,g=s?.indexOf("Mobi")>=0,h=!0,y=r.i8()||o,i=navigator.language.toLowerCase(),v=i);let S=0;l?S=1:a?S=3:c&&(S=2);const k=a,_=l,T=c,A=d,D=h,N=h&&"function"==typeof x.importScripts?x.origin:void 0,R=p,O=g,F=s,M=y,I="function"==typeof x.postMessage&&!x.importScripts,L=(()=>{if(I){const e=[];x.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let n=0,r=e.length;n<r;n++){const r=e[n];if(r.id===t.data.vscodeScheduleAsyncWork)return e.splice(n,1),void r.callback()}});let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),x.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})(),P=l||p?2:a?1:3;let j=!0,V=!1;function B(){if(!V){V=!0;const e=new Uint8Array(2);e[0]=1,e[1]=2;const t=new Uint16Array(e.buffer);j=513===t[0]}return j}const q=!!(F&&F.indexOf("Chrome")>=0),$=!!(F&&F.indexOf("Firefox")>=0),z=!!(!q&&F&&F.indexOf("Safari")>=0),K=!!(F&&F.indexOf("Edg/")>=0),U=!!(F&&F.indexOf("Android")>=0)},9059(e,t,n){"use strict";n.d(t,{_K:()=>a,bJ:()=>s,iD:()=>l});var r=n(34591);let o;const i=globalThis.vscode;if(void 0!==i&&void 0!==i.process){const e=i.process;o={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd:()=>e.cwd()}}else o="undefined"!=typeof process&&"string"==typeof process?.versions?.node?{get platform(){return process.platform},get arch(){return process.arch},get env(){return{version:"9.3.0-alpha.2"}},cwd:()=>({version:"9.3.0-alpha.2"}.VSCODE_CWD||process.cwd())}:{get platform(){return r.uF?"win32":r.zx?"darwin":"linux"},get arch(){},get env(){return{}},cwd:()=>"/"};const s=o.cwd,a=o.env,l=o.platform},52739(e,t,n){"use strict";function r(e){return"string"==typeof e}function o(e){return!("object"!=typeof e||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function i(e){const t=Object.getPrototypeOf(Uint8Array);return"object"==typeof e&&e instanceof t}function s(e){return"number"==typeof e&&!isNaN(e)}function a(e){return!!e&&"function"==typeof e[Symbol.iterator]}function l(e){return!0===e||!1===e}function c(e){return void 0===e}function u(e){return!d(e)}function d(e){return c(e)||null===e}function h(e,t){if(!e)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}function f(e){if(d(e))throw new Error("Assertion Failed: argument is undefined or null");return e}function p(e){return"function"==typeof e}function m(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++)g(e[r],t[r])}function g(e,t){if(r(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(p(t)){try{if(e instanceof t)return}catch{}if(!d(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}n.d(t,{Et:()=>s,Gv:()=>o,Kg:()=>r,Lm:()=>l,O9:()=>u,Tn:()=>p,b0:()=>c,eU:()=>f,iu:()=>i,j:()=>h,jx:()=>m,xZ:()=>a,z:()=>d})},24898(e,t,n){"use strict";n.d(t,{L:()=>i});var r=n(93881),o=n(27329);class i extends o.Q{constructor(e,t,n,r){super(e,t,n,r),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=n,this.positionColumn=r}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return i.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new i(this.startLineNumber,this.startColumn,e,t):new i(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new r.y(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new r.y(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new i(e,t,this.endLineNumber,this.endColumn):new i(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new i(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new i(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new i(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new i(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0}static isISelection(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn}static createWithDirection(e,t,n,r,o){return 0===o?new i(e,t,n,r):new i(n,r,e,t)}}},99342(e,t,n){"use strict";n.d(t,{$M:()=>m,FX:()=>s,GE:()=>y,HC:()=>o,Iu:()=>v,Kb:()=>l,M$:()=>r,OB:()=>D,OV:()=>w,PK:()=>x,WA:()=>a,YT:()=>C,dG:()=>A,gP:()=>E,lO:()=>_,ou:()=>p,qw:()=>i,r4:()=>k,rY:()=>g,sm:()=>N,uB:()=>S,v_:()=>T});var r,o,i,s,a,l,c=n(53639),u=n(89516),d=n(27329),h=n(50376),f=n(14425);class p{constructor(e,t,n){this.offset=e,this.type=t,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}class m{constructor(e,t){this.tokens=e,this.endState=t,this._tokenizationResultBrand=void 0}}class g{constructor(e,t){this.tokens=e,this.endState=t,this._encodedTokenizationResultBrand=void 0}}!function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(r||(r={})),function(e){const t=new Map;t.set(0,c.W.symbolMethod),t.set(1,c.W.symbolFunction),t.set(2,c.W.symbolConstructor),t.set(3,c.W.symbolField),t.set(4,c.W.symbolVariable),t.set(5,c.W.symbolClass),t.set(6,c.W.symbolStruct),t.set(7,c.W.symbolInterface),t.set(8,c.W.symbolModule),t.set(9,c.W.symbolProperty),t.set(10,c.W.symbolEvent),t.set(11,c.W.symbolOperator),t.set(12,c.W.symbolUnit),t.set(13,c.W.symbolValue),t.set(15,c.W.symbolEnum),t.set(14,c.W.symbolConstant),t.set(15,c.W.symbolEnum),t.set(16,c.W.symbolEnumMember),t.set(17,c.W.symbolKeyword),t.set(27,c.W.symbolSnippet),t.set(18,c.W.symbolText),t.set(19,c.W.symbolColor),t.set(20,c.W.symbolFile),t.set(21,c.W.symbolReference),t.set(22,c.W.symbolCustomColor),t.set(23,c.W.symbolFolder),t.set(24,c.W.symbolTypeParameter),t.set(25,c.W.account),t.set(26,c.W.issues),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for CompletionItemKind "+e),n=c.W.symbolProperty),n};const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26),e.fromString=function(e,t){let r=n.get(e);return void 0!==r||t||(r=9),r}}(o||(o={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(i||(i={}));class y{constructor(e,t,n,r){this.range=e,this.text=t,this.completionKind=n,this.isSnippetText=r}equals(e){return d.Q.lift(this.range).equalsRange(e.range)&&this.text===e.text&&this.completionKind===e.completionKind&&this.isSnippetText===e.isSnippetText}}function v(e){return e&&u.r.isUri(e.uri)&&d.Q.isIRange(e.range)&&(d.Q.isIRange(e.originSelectionRange)||d.Q.isIRange(e.targetSelectionRange))}!function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"}(s||(s={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(a||(a={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(l||(l={}));const b={17:(0,f.kg)("Array","array"),16:(0,f.kg)("Boolean","boolean"),4:(0,f.kg)("Class","class"),13:(0,f.kg)("Constant","constant"),8:(0,f.kg)("Constructor","constructor"),9:(0,f.kg)("Enum","enumeration"),21:(0,f.kg)("EnumMember","enumeration member"),23:(0,f.kg)("Event","event"),7:(0,f.kg)("Field","field"),0:(0,f.kg)("File","file"),11:(0,f.kg)("Function","function"),10:(0,f.kg)("Interface","interface"),19:(0,f.kg)("Key","key"),5:(0,f.kg)("Method","method"),1:(0,f.kg)("Module","module"),2:(0,f.kg)("Namespace","namespace"),20:(0,f.kg)("Null","null"),15:(0,f.kg)("Number","number"),18:(0,f.kg)("Object","object"),24:(0,f.kg)("Operator","operator"),3:(0,f.kg)("Package","package"),6:(0,f.kg)("Property","property"),14:(0,f.kg)("String","string"),22:(0,f.kg)("Struct","struct"),25:(0,f.kg)("TypeParameter","type parameter"),12:(0,f.kg)("Variable","variable")};function x(e,t){return(0,f.kg)("symbolAriaLabel","{0} ({1})",e,b[t])}var E,w,C,S,k;!function(e){const t=new Map;t.set(0,c.W.symbolFile),t.set(1,c.W.symbolModule),t.set(2,c.W.symbolNamespace),t.set(3,c.W.symbolPackage),t.set(4,c.W.symbolClass),t.set(5,c.W.symbolMethod),t.set(6,c.W.symbolProperty),t.set(7,c.W.symbolField),t.set(8,c.W.symbolConstructor),t.set(9,c.W.symbolEnum),t.set(10,c.W.symbolInterface),t.set(11,c.W.symbolFunction),t.set(12,c.W.symbolVariable),t.set(13,c.W.symbolConstant),t.set(14,c.W.symbolString),t.set(15,c.W.symbolNumber),t.set(16,c.W.symbolBoolean),t.set(17,c.W.symbolArray),t.set(18,c.W.symbolObject),t.set(19,c.W.symbolKey),t.set(20,c.W.symbolNull),t.set(21,c.W.symbolEnumMember),t.set(22,c.W.symbolStruct),t.set(23,c.W.symbolEvent),t.set(24,c.W.symbolOperator),t.set(25,c.W.symbolTypeParameter),e.toIcon=function(e){let n=t.get(e);return n||(console.info("No codicon found for SymbolKind "+e),n=c.W.symbolProperty),n}}(E||(E={}));class _{static{this.Comment=new _("comment")}static{this.Imports=new _("imports")}static{this.Region=new _("region")}static fromValue(e){switch(e){case"comment":return _.Comment;case"imports":return _.Imports;case"region":return _.Region}return new _(e)}constructor(e){this.value=e}}!function(e){e[e.AIGenerated=1]="AIGenerated"}(w||(w={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(C||(C={})),function(e){e.is=function(e){return!(!e||"object"!=typeof e)&&"string"==typeof e.id&&"string"==typeof e.title}}(S||(S={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(k||(k={}));class T{constructor(e){this.createSupport=e,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then(e=>{e&&e.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const A=new h.d,D=new h.d;var N;!function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(N||(N={}))},88687(e,t,n){"use strict";n.r(t),n.d(t,{KeyMod:()=>h,createMonacoBaseAPI:()=>f});var r=n(91851),o=n(98137),i=n(11151),s=n(89516),a=n(93881),l=n(27329),c=n(24898),u=n(99342),d=n(4731);class h{static{this.CtrlCmd=2048}static{this.Shift=1024}static{this.Alt=512}static{this.WinCtrl=256}static chord(e,t){return(0,i.m5)(e,t)}}function f(){return{editor:void 0,languages:void 0,CancellationTokenSource:r.Qi,Emitter:o.vl,KeyCode:d.DD,KeyMod:h,Position:a.y,Range:l.Q,Selection:c.L,SelectionDirection:d.SB,MarkerSeverity:d.cj,MarkerTag:d.d_,Uri:s.r,Token:u.ou}}},4731(e,t,n){"use strict";var r,o,i,s,a,l,c,u,d,h,f,p,m,g,y,v,b,x,E,w,C,S,k,_,T,A,D,N,R,O,F,M,I,L,P,j,V,B,q,$,z,K,U,W,H,G;n.d(t,{A5:()=>F,Ah:()=>M,DD:()=>S,DO:()=>L,Gn:()=>r,H_:()=>K,Ic:()=>I,Io:()=>s,Kb:()=>h,M$:()=>v,OV:()=>N,QP:()=>a,Qj:()=>c,R3:()=>T,SB:()=>B,U7:()=>U,VW:()=>x,VX:()=>A,WA:()=>$,WU:()=>g,XR:()=>V,YT:()=>R,ZS:()=>y,_E:()=>i,cj:()=>k,dE:()=>O,d_:()=>_,e0:()=>f,h5:()=>u,hS:()=>D,hW:()=>P,jT:()=>q,kK:()=>H,kf:()=>m,l:()=>b,m9:()=>W,of:()=>d,ok:()=>o,ov:()=>j,p2:()=>p,qw:()=>w,r4:()=>E,sm:()=>C,t7:()=>l,tJ:()=>G,v0:()=>z}),function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(r||(r={})),function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"}(o||(o={})),function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(i||(i={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"}(s||(s={})),function(e){e[e.Deprecated=1]="Deprecated"}(a||(a={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(l||(l={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(c||(c={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(u||(u={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(d||(d={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(h||(h={})),function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"}(f||(f={})),function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"}(p||(p={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(m||(m={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(g||(g={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"}(y||(y={})),function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"}(v||(v={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(b||(b={})),function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"}(x||(x={})),function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"}(E||(E={})),function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"}(w||(w={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(C||(C={})),function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"}(S||(S={})),function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(k||(k={})),function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(_||(_={})),function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"}(T||(T={})),function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"}(A||(A={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(D||(D={})),function(e){e[e.AIGenerated=1]="AIGenerated"}(N||(N={})),function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"}(R||(R={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(O||(O={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(F||(F={})),function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"}(M||(M={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"}(I||(I={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(L||(L={})),function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"}(P||(P={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(j||(j={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(V||(V={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(B||(B={})),function(e){e.Off="off",e.OnCode="onCode",e.On="on"}(q||(q={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}($||($={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(z||(z={})),function(e){e[e.Deprecated=1]="Deprecated"}(K||(K={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(U||(U={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(W||(W={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(H||(H={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(G||(G={}))},14425(e,t,n){"use strict";n.d(t,{Ec:()=>r.E,aS:()=>l,i8:()=>r.i,kg:()=>s});var r=n(92963);const o="pseudo"===(0,r.i)()||"undefined"!=typeof document&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function i(e,t){let n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,(e,n)=>{const r=n[0],o=t[r];let i=e;return"string"==typeof o?i=o:"number"!=typeof o&&"boolean"!=typeof o&&null!=o||(i=String(o)),i}),o&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function s(e,t,...n){return i("number"==typeof e?a(e,t):t,n)}function a(e,t){const n=(0,r.E)()?.[e];if("string"!=typeof n){if("string"==typeof t)return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}function l(e,t,...n){let r;r="number"==typeof e?a(e,t):t;const o=i(r,n);return{value:o,original:t===r?o:i(t,n)}}},63327(e,t,n){"use strict";n.d(t,{St:()=>a,ph:()=>s,pu:()=>l});var r=n(55279),o=n(98355),i=n(26241);n(4731);const s=e=>"getModeId"in e?e.getModeId():e.getLanguageId();function a(e){return new i.yX(e.lineNumber-1,e.column-1)}const l=e=>{const{schema:t,documentAST:n,introspectionJSON:i,introspectionJSONString:s,documentString:a,...l}=e;if(t)return{...l,documentString:(0,o.rK)(t)};if(s)return{...l,introspectionJSONString:s};if(a)return{...l,documentString:a};if(i)return{...l,introspectionJSONString:JSON.stringify(i)};if(n){const e=(0,r.o)(n,l.buildSchemaOptions);return{...l,documentString:(0,o.rK)(e)}}throw new Error("No schema supplied")}},80957(e){"use strict";function t(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}e.exports=t,e.exports.default=t,Object.defineProperty(e.exports,"__esModule",{value:!0})},82484(e,t,n){"use strict";var r,o=Object.create,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of a(t))c.call(e,o)||o===n||i(e,o,{get:()=>t[o],enumerable:!(r=s(t,o))||r.enumerable});return e},d={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(d,{$dispatcherGuard:()=>k,$makeReadOnly:()=>T,$reset:()=>_,$structuralCheck:()=>O,c:()=>x,clearRenderCounterRegistry:()=>D,renderCounterRegistry:()=>A,useRenderCounter:()=>N}),e.exports=(r=d,u(i({},"__esModule",{value:!0}),r));var h,f,p=((e,t,n)=>(n=null!=e?o(l(e)):{},u(e&&e.__esModule?n:i(n,"default",{value:e,enumerable:!0}),e)))(n(63696)),{useRef:m,useEffect:g,isValidElement:y}=p,v=null!=(h=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?h:p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.memo_cache_sentinel"),x="function"==typeof(null==(f=p.__COMPILER_RUNTIME)?void 0:f.c)?p.__COMPILER_RUNTIME.c:function(e){return p.useMemo(()=>{const t=new Array(e);for(let n=0;n<e;n++)t[n]=b;return t[b]=!0,t},[])},E={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{E[e]=()=>{throw new Error(`[React] Unexpected React hook call (${e}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var w=null;function C(e){return v.ReactCurrentDispatcher.current=e,v.ReactCurrentDispatcher.current}E.useMemoCache=e=>{if(null==w)throw new Error("React Compiler internal invariant violation: unexpected null dispatcher");return w.useMemoCache(e)};var S=[];function k(e){const t=v.ReactCurrentDispatcher.current;if(0===e){if(S.push(t),1===S.length&&(w=t),t===E)throw new Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");C(E)}else if(1===e){const e=S.pop();if(null==e)throw new Error("React Compiler internal error: unexpected null in guard stack");0===S.length&&(w=null),C(e)}else if(2===e)S.push(t),C(w);else{if(3!==e)throw new Error("React Compiler internal error: unreachable block"+e);{const e=S.pop();if(null==e)throw new Error("React Compiler internal error: unexpected null in guard stack");C(e)}}}function _(e){for(let t=0;t<e.length;t++)e[t]=b}function T(){throw new Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var A=new Map;function D(){for(const e of A.values())e.forEach(e=>{e.count=0})}function N(e){const t=m(null);null!=t.current&&(t.current.count+=1),g(()=>{if(null==t.current){const n={count:0};!function(e,t){let n=A.get(e);null==n&&(n=new Set,A.set(e,n)),n.add(t)}(e,n),t.current=n}return()=>{null!==t.current&&function(e,t){const n=A.get(e);null!=n&&n.delete(t)}(e,t.current)}})}var R=new Set;function O(e,t,n,r,o,i){function s(e,t,s,a){const l=`${r}:${i} [${o}] ${n}${s} changed from ${e} to ${t} at depth ${a}`;R.has(l)||(R.add(l),console.error(l))}!function e(t,n,r,o){if(!(o>2)&&t!==n)if(typeof t!=typeof n)s("type "+typeof t,"type "+typeof n,r,o);else if("object"==typeof t){const i=Array.isArray(t),a=Array.isArray(n);if(null===t&&null!==n)s("null","type "+typeof n,r,o);else if(null===n)s("type "+typeof t,"null",r,o);else if(t instanceof Map)if(n instanceof Map)if(t.size!==n.size)s(`Map instance with size ${t.size}`,`Map instance with size ${n.size}`,r,o);else for(const[i,a]of t)n.has(i)?e(a,n.get(i),`${r}.get(${i})`,o+1):s(`Map instance with key ${i}`,`Map instance without key ${i}`,r,o);else s("Map instance","other value",r,o);else if(n instanceof Map)s("other value","Map instance",r,o);else if(t instanceof Set)if(n instanceof Set)if(t.size!==n.size)s(`Set instance with size ${t.size}`,`Set instance with size ${n.size}`,r,o);else for(const e of n)t.has(e)||s(`Set instance without element ${e}`,`Set instance with element ${e}`,r,o);else s("Set instance","other value",r,o);else if(n instanceof Set)s("other value","Set instance",r,o);else if(i||a)if(i!==a)s("type "+(i?"array":"object"),"type "+(a?"array":"object"),r,o);else if(t.length!==n.length)s(`array with length ${t.length}`,`array with length ${n.length}`,r,o);else for(let i=0;i<t.length;i++)e(t[i],n[i],`${r}[${i}]`,o+1);else if(y(t)||y(n))y(t)!==y(n)?s("type "+(y(t)?"React element":"object"),"type "+(y(n)?"React element":"object"),r,o):t.type!==n.type?s(`React element of type ${t.type}`,`React element of type ${n.type}`,r,o):e(t.props,n.props,`[props of ${r}]`,o+1);else{for(const e in n)e in t||s(`object without key ${e}`,`object with key ${e}`,r,o);for(const i in t)i in n?e(t[i],n[i],`${r}.${i}`,o+1):s(`object with key ${i}`,`object without key ${i}`,r,o)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(n)?isNaN(t)!==isNaN(n)&&s(isNaN(t)?"NaN":"non-NaN value",isNaN(n)?"NaN":"non-NaN value",r,o):t!==n&&s(t,n,r,o)}}(e,t,"",0)}},45427(e,t,n){"use strict";const{deleteProperty:r}=Reflect,o=n(66053),i=n(74884),s=e=>"object"==typeof e&&null!==e||"function"==typeof e,a=e=>{if(!o(e))throw new TypeError("Object keys must be strings or symbols");if((e=>"__proto__"===e||"constructor"===e||"prototype"===e)(e))throw new Error(`Cannot set unsafe key: "${e}"`)},l=(e,t)=>t&&"function"==typeof t.split?t.split(e):"symbol"==typeof e?[e]:Array.isArray(e)?e:((e,t,n)=>{const r=(e=>Array.isArray(e)?e.flat().map(String).join(","):e)(t?((e,t)=>{if("string"!=typeof e||!t)return e;let n=e+";";return void 0!==t.arrays&&(n+=`arrays=${t.arrays};`),void 0!==t.separator&&(n+=`separator=${t.separator};`),void 0!==t.split&&(n+=`split=${t.split};`),void 0!==t.merge&&(n+=`merge=${t.merge};`),void 0!==t.preservePaths&&(n+=`preservePaths=${t.preservePaths};`),n})(e,t):e);a(r);const o=u.cache.get(r)||n();return u.cache.set(r,o),o})(e,t,()=>((e,t={})=>{const n=t.separator||".",r="/"!==n&&t.preservePaths;if("string"==typeof e&&!1!==r&&/\//.test(e))return[e];const o=[];let i="";const s=e=>{let t;""!==e.trim()&&Number.isInteger(t=Number(e))?o.push(t):o.push(e)};for(let t=0;t<e.length;t++){const r=e[t];"\\"!==r?r!==n?i+=r:(s(i),i=""):i+=e[++t]}return i&&s(i),o})(e,t)),c=(e,t,n,o)=>{if(a(t),void 0===n)r(e,t);else if(o&&o.merge){const r="function"===o.merge?o.merge:Object.assign;r&&i(e[t])&&i(n)?e[t]=r(e[t],n):e[t]=n}else e[t]=n;return e},u=(e,t,n,r)=>{if(!t||!s(e))return e;const o=l(t,r);let i=e;for(let e=0;e<o.length;e++){const t=o[e],l=o[e+1];if(a(t),void 0===l){c(i,t,n,r);break}"number"!=typeof l||Array.isArray(i[t])?(s(i[t])||(i[t]={}),i=i[t]):i=i[t]=[]}return e};u.split=l,u.cache=new Map,u.clear=()=>{u.cache=new Map},e.exports=u},52260(e,t,n){"use strict";var r=n(63696),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,s=r.useRef,a=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=s(null);if(null===d.current){var h={hasValue:!1,value:null};d.current=h}else h=d.current;d=l(function(){function e(e){if(!a){if(a=!0,i=e,e=r(e),void 0!==u&&h.hasValue){var t=h.value;if(u(t,e))return s=t}return s=e}if(t=s,o(i,e))return t;var n=r(e);return void 0!==u&&u(t,n)?(i=e,t):(i=e,s=n)}var i,s,a=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,u]);var f=i(e,d[0],d[1]);return a(function(){h.hasValue=!0,h.value=f},[f]),c(f),f}},32254(e,t,n){"use strict";e.exports=n(52260)},63685(e,t,n){"use strict";n.d(t,{CS:()=>s,OC:()=>o,yo:()=>a});var r=n(45676);function o(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,o=-1;for(let t=0;t<e.length;++t){var s;const a=e[t],l=i(a);l!==a.length&&(r=null!==(s=r)&&void 0!==s?s:t,o=t,0!==t&&l<n&&(n=l))}return e.map((e,t)=>0===t?e:e.slice(n)).slice(null!==(t=r)&&void 0!==t?t:0,o+1)}function i(e){let t=0;for(;t<e.length&&(0,r.i0)(e.charCodeAt(t));)++t;return t}function s(e){if(""===e)return!0;let t=!0,n=!1,r=!0,o=!1;for(let i=0;i<e.length;++i)switch(e.codePointAt(i)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:case 13:return!1;case 10:if(t&&!o)return!1;o=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!(t||r&&o)}function a(e,t){const n=e.replace(/"""/g,'\\"""'),o=n.split(/\r\n|[\n\r]/g),i=1===o.length,s=o.length>1&&o.slice(1).every(e=>0===e.length||(0,r.i0)(e.charCodeAt(0))),a=n.endsWith('\\"""'),l=e.endsWith('"')&&!a,c=e.endsWith("\\"),u=l||c,d=!(null!=t&&t.minimize)&&(!i||e.length>70||u||s||a);let h="";const f=i&&(0,r.i0)(e.charCodeAt(0));return(d&&!f||s)&&(h+="\n"),h+=n,(d||u)&&(h+="\n"),'"""'+h+'"""'}},79222(e,t,n){"use strict";n.d(t,{Ag:()=>U,CK:()=>k,Fs:()=>A,Gc:()=>L,KT:()=>I,Kx:()=>Q,Lc:()=>M,ML:()=>F,MR:()=>$,VA:()=>ee,Xj:()=>b,YQ:()=>E,YX:()=>le,Zb:()=>re,bd:()=>D,bh:()=>W,dX:()=>N,g0:()=>J,hI:()=>te,kD:()=>C,lg:()=>x,oF:()=>_,oH:()=>R,qC:()=>w,qK:()=>T,qL:()=>S,sy:()=>q,wG:()=>V,wj:()=>j,xP:()=>Z,yl:()=>B,zP:()=>se,zf:()=>O});var r=n(46228),o=n(60758),i=n(46869),s=n(16003),a=n(32167),l=n(56997),c=n(48144),u=n(14183),d=n(38436),h=n(30221),f=n(35521),p=n(4405),m=n(14552),g=n(64121),y=n(4911),v=n(88502);function b(e){return x(e)||E(e)||C(e)||k(e)||_(e)||T(e)||A(e)||D(e)}function x(e){return(0,a.h)(e,U)}function E(e){return(0,a.h)(e,W)}function w(e){if(!E(e))throw new Error(`Expected ${(0,s.N)(e)} to be a GraphQL Object type.`);return e}function C(e){return(0,a.h)(e,ee)}function S(e){if(!C(e))throw new Error(`Expected ${(0,s.N)(e)} to be a GraphQL Interface type.`);return e}function k(e){return(0,a.h)(e,te)}function _(e){return(0,a.h)(e,re)}function T(e){return(0,a.h)(e,se)}function A(e){return(0,a.h)(e,I)}function D(e){return(0,a.h)(e,L)}function N(e){return x(e)||_(e)||T(e)||P(e)&&N(e.ofType)}function R(e){return x(e)||E(e)||C(e)||k(e)||_(e)||P(e)&&R(e.ofType)}function O(e){return x(e)||_(e)}function F(e){return E(e)||C(e)||k(e)}function M(e){return C(e)||k(e)}class I{constructor(e){b(e)||(0,r.U)(!1,`Expected ${(0,s.N)(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class L{constructor(e){j(e)||(0,r.U)(!1,`Expected ${(0,s.N)(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}}function P(e){return A(e)||D(e)}function j(e){return b(e)&&!D(e)}function V(e){if(!j(e))throw new Error(`Expected ${(0,s.N)(e)} to be a GraphQL nullable type.`);return e}function B(e){if(e)return D(e)?e.ofType:e}function q(e){return x(e)||E(e)||C(e)||k(e)||_(e)||T(e)}function $(e){if(e){let t=e;for(;P(t);)t=t.ofType;return t}}function z(e){return"function"==typeof e?e():e}function K(e){return"function"==typeof e?e():e}class U{constructor(e){var t,n,o,a;const l=null!==(t=e.parseValue)&&void 0!==t?t:i.T;this.name=(0,v.I)(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:i.T,this.parseValue=l,this.parseLiteral=null!==(o=e.parseLiteral)&&void 0!==o?o:(e,t)=>l((0,y.F)(e,t)),this.extensions=(0,f.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(a=e.extensionASTNodes)&&void 0!==a?a:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||(0,r.U)(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${(0,s.N)(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||(0,r.U)(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||(0,r.U)(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class W{constructor(e){var t;this.name=(0,v.I)(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=(0,f.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>G(e),this._interfaces=()=>H(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||(0,r.U)(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${(0,s.N)(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:X(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function H(e){var t;const n=z(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||(0,r.U)(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function G(e){const t=K(e.fields);return Y(t)||(0,r.U)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,d.I)(t,(t,n)=>{var o;Y(t)||(0,r.U)(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||(0,r.U)(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${(0,s.N)(t.resolve)}.`);const i=null!==(o=t.args)&&void 0!==o?o:{};return Y(i)||(0,r.U)(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:(0,v.I)(n),description:t.description,type:t.type,args:Q(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:(0,f.z)(t.extensions),astNode:t.astNode}})}function Q(e){return Object.entries(e).map(([e,t])=>({name:(0,v.I)(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,f.z)(t.extensions),astNode:t.astNode}))}function Y(e){return(0,l.Z)(e)&&!Array.isArray(e)}function X(e){return(0,d.I)(e,e=>({description:e.description,type:e.type,args:J(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function J(e){return(0,u.L)(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function Z(e){return D(e.type)&&void 0===e.defaultValue}class ee{constructor(e){var t;this.name=(0,v.I)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,f.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=G.bind(void 0,e),this._interfaces=H.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,r.U)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,s.N)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:X(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class te{constructor(e){var t;this.name=(0,v.I)(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=(0,f.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=ne.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||(0,r.U)(!1,`${this.name} must provide "resolveType" as a function, but got: ${(0,s.N)(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function ne(e){const t=z(e.types);return Array.isArray(t)||(0,r.U)(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class re{constructor(e){var t;this.name=(0,v.I)(e.name),this.description=e.description,this.extensions=(0,f.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values="function"==typeof e.values?e.values:ie(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=ie(this.name,this._values())),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=(0,c.K)(this.getValues(),e=>e.name)),this._nameLookup[e]}serialize(e){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map(e=>[e.value,e])));const t=this._valueLookup.get(e);if(void 0===t)throw new p.eO(`Enum "${this.name}" cannot represent value: ${(0,s.N)(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=(0,s.N)(e);throw new p.eO(`Enum "${this.name}" cannot represent non-string value: ${t}.`+oe(this,t))}const t=this.getValue(e);if(null==t)throw new p.eO(`Value "${e}" does not exist in "${this.name}" enum.`+oe(this,e));return t.value}parseLiteral(e,t){if(e.kind!==m.b.ENUM){const t=(0,g.y)(e);throw new p.eO(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+oe(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=(0,g.y)(e);throw new p.eO(`Value "${t}" does not exist in "${this.name}" enum.`+oe(this,t),{nodes:e})}return n.value}toConfig(){const e=(0,u.L)(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function oe(e,t){const n=e.getValues().map(e=>e.name),r=(0,h.x)(t,n);return(0,o.a)("the enum value",r)}function ie(e,t){return Y(t)||(0,r.U)(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([t,n])=>(Y(n)||(0,r.U)(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${(0,s.N)(n)}.`),{name:(0,v.A)(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:(0,f.z)(n.extensions),astNode:n.astNode}))}class se{constructor(e){var t,n;this.name=(0,v.I)(e.name),this.description=e.description,this.extensions=(0,f.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this.isOneOf=null!==(n=e.isOneOf)&&void 0!==n&&n,this._fields=ae.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=(0,d.I)(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function ae(e){const t=K(e.fields);return Y(t)||(0,r.U)(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),(0,d.I)(t,(t,n)=>(!("resolve"in t)||(0,r.U)(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:(0,v.I)(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:(0,f.z)(t.extensions),astNode:t.astNode}))}function le(e){return D(e.type)&&void 0===e.defaultValue}},14231(e,t,n){"use strict";n.d(t,{HQ:()=>f,Il:()=>m,MQ:()=>p,Qe:()=>x,RR:()=>h,gw:()=>y,mM:()=>v,qT:()=>d,rc:()=>b,yK:()=>g});var r=n(46228),o=n(32167),i=n(56997),s=n(35521),a=n(59847),l=n(88502),c=n(79222),u=n(50080);function d(e){return(0,o.h)(e,h)}class h{constructor(e){var t,n;this.name=(0,l.I)(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=(0,s.z)(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||(0,r.U)(!1,`@${e.name} locations must be an Array.`);const o=null!==(n=e.args)&&void 0!==n?n:{};(0,i.Z)(o)&&!Array.isArray(o)||(0,r.U)(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=(0,c.Kx)(o)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:(0,c.g0)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const f=new h({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[a.H.FIELD,a.H.FRAGMENT_SPREAD,a.H.INLINE_FRAGMENT],args:{if:{type:new c.Gc(u.kk),description:"Included when true."}}}),p=new h({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[a.H.FIELD,a.H.FRAGMENT_SPREAD,a.H.INLINE_FRAGMENT],args:{if:{type:new c.Gc(u.kk),description:"Skipped when true."}}}),m="No longer supported",g=new h({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[a.H.FIELD_DEFINITION,a.H.ARGUMENT_DEFINITION,a.H.INPUT_FIELD_DEFINITION,a.H.ENUM_VALUE],args:{reason:{type:u.FV,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:m}}}),y=new h({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[a.H.SCALAR],args:{url:{type:new c.Gc(u.FV),description:"The URL that specifies the behavior of this scalar."}}}),v=new h({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[a.H.INPUT_OBJECT],args:{}}),b=Object.freeze([f,p,g,y,v]);function x(e){return b.some(({name:t})=>t===e.name)}},11892(e,t,n){"use strict";n.d(t,{GU:()=>f,V4:()=>p,Wl:()=>h});var r=n(46228),o=n(16003),i=n(32167),s=n(56997),a=n(35521),l=n(4049),c=n(79222),u=n(14231),d=n(34058);function h(e){return(0,i.h)(e,p)}function f(e){if(!h(e))throw new Error(`Expected ${(0,o.N)(e)} to be a GraphQL schema.`);return e}class p{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,(0,s.Z)(e)||(0,r.U)(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||(0,r.U)(!1,`"types" must be Array if provided but got: ${(0,o.N)(e.types)}.`),!e.directives||Array.isArray(e.directives)||(0,r.U)(!1,`"directives" must be Array if provided but got: ${(0,o.N)(e.directives)}.`),this.description=e.description,this.extensions=(0,a.z)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:u.rc;const i=new Set(e.types);if(null!=e.types)for(const t of e.types)i.delete(t),m(t,i);null!=this._queryType&&m(this._queryType,i),null!=this._mutationType&&m(this._mutationType,i),null!=this._subscriptionType&&m(this._subscriptionType,i);for(const e of this._directives)if((0,u.qT)(e))for(const t of e.args)m(t.type,i);m(d.em,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const e of i){if(null==e)continue;const t=e.name;if(t||(0,r.U)(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,(0,c.kD)(e)){for(const t of e.getInterfaces())if((0,c.kD)(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if((0,c.YQ)(e))for(const t of e.getInterfaces())if((0,c.kD)(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case l.cE.QUERY:return this.getQueryType();case l.cE.MUTATION:return this.getMutationType();case l.cE.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return(0,c.CK)(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),(0,c.CK)(e))for(const t of e.getTypes())n[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)n[e.name]=!0;for(const e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function m(e,t){const n=(0,c.MR)(e);if(!t.has(n))if(t.add(n),(0,c.CK)(n))for(const e of n.getTypes())m(e,t);else if((0,c.YQ)(n)||(0,c.kD)(n)){for(const e of n.getInterfaces())m(e,t);for(const e of Object.values(n.getFields())){m(e.type,t);for(const n of e.args)m(n.type,t)}}else if((0,c.qK)(n))for(const e of Object.values(n.getFields()))m(e.type,t);return t}},98355(e,t,n){"use strict";n.d(t,{rK:()=>f});var r=n(16003),o=n(99115),i=n(63685),s=n(14552),a=n(64121),l=n(79222),c=n(14231),u=n(34058),d=n(50080),h=n(37190);function f(e){return function(e,t,n){const i=e.getDirectives().filter(t),c=Object.values(e.getTypeMap()).filter(n);return[m(e),...i.map(e=>function(e){return w(e)+"directive @"+e.name+b(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}(e)),...c.map(e=>function(e){return(0,l.lg)(e)?function(e){return w(e)+`scalar ${e.name}`+(null==(t=e).specifiedByURL?"":` @specifiedBy(url: ${(0,a.y)({kind:s.b.STRING,value:t.specifiedByURL})})`);var t}(e):(0,l.YQ)(e)?function(e){return w(e)+`type ${e.name}`+g(e)+y(e)}(e):(0,l.kD)(e)?function(e){return w(e)+`interface ${e.name}`+g(e)+y(e)}(e):(0,l.CK)(e)?function(e){const t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return w(e)+"union "+e.name+n}(e):(0,l.oF)(e)?function(e){const t=e.getValues().map((e,t)=>w(e," ",!t)+" "+e.name+E(e.deprecationReason));return w(e)+`enum ${e.name}`+v(t)}(e):(0,l.qK)(e)?function(e){const t=Object.values(e.getFields()).map((e,t)=>w(e," ",!t)+" "+x(e));return w(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+v(t)}(e):void(0,o.V)(!1,"Unexpected type: "+(0,r.N)(e))}(e))].filter(Boolean).join("\n\n")}(e,e=>!(0,c.Qe)(e),p)}function p(e){return!(0,d.PZ)(e)&&!(0,u.Yh)(e)}function m(e){if(null==e.description&&function(e){const t=e.getQueryType();if(t&&"Query"!==t.name)return!1;const n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;const r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e))return;const t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);const r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);const o=e.getSubscriptionType();return o&&t.push(` subscription: ${o.name}`),w(e)+`schema {\n${t.join("\n")}\n}`}function g(e){const t=e.getInterfaces();return t.length?" implements "+t.map(e=>e.name).join(" & "):""}function y(e){return v(Object.values(e.getFields()).map((e,t)=>w(e," ",!t)+" "+e.name+b(e.args," ")+": "+String(e.type)+E(e.deprecationReason)))}function v(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function b(e,t=""){return 0===e.length?"":e.every(e=>!e.description)?"("+e.map(x).join(", ")+")":"(\n"+e.map((e,n)=>w(e," "+t,!n)+" "+t+x(e)).join("\n")+"\n"+t+")"}function x(e){const t=(0,h.K)(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=` = ${(0,a.y)(t)}`),n+E(e.deprecationReason)}function E(e){return null==e?"":e!==c.Il?` @deprecated(reason: ${(0,a.y)({kind:s.b.STRING,value:e})})`:" @deprecated"}function w(e,t="",n=!0){const{description:r}=e;return null==r?"":(t&&!n?"\n"+t:t)+(0,a.y)({kind:s.b.STRING,value:r,block:(0,i.CS)(r)}).replace(/\n/g,"\n"+t)+"\n"}},24773(e,t,n){"use strict";n.d(t,{H7:()=>V});var r=n(16314),o=n(64578),i=n(46748),s=n(86788),a=n(90363),l=n(57715),c=n(91595),u=n(86890),d=n(54674),h=n(18798),f=n(49292),p=n(72174),m=n(57110),g=n(99158),y=n(51222),v=n(31663),b=n(93063),x=n(8098),E=n(90579),w=n(73176),C=n(99609),S=n(18668),k=n(92300),_=n(41613),T=n(19451),A=n(14100),D=n(86491),N=n(59875),R=n(892),O=n(62043),F=n(31875),M=n(279),I=n(44549),L=n(37972),P=n(49975);const j=Object.freeze([h.B]),V=(Object.freeze([r.T,R.H,u.P,w.R,c.y,i.T,L.J,E.A,o.Z,D.K,l.K,m.z,v.y,f.n,M._,p.Z,g.p,a.e,_.U,s.P,S.J,I.U,x.X,P.E,y.K,N.C,...j]),Object.freeze([d.l,O.u,F.i,T.g,A.X,C.E,k.Z,c.y,a.e,_.U,b.S,s.W,S.J,N.C,x.A]))},5072(e,t,n){"use strict";n.d(t,{uq:()=>l});var r=n(34627),o=n(24773),i=n(14552);n(58709);class s{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===i.b.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let r;for(;r=n.pop();)for(const e of r.selections)e.kind===i.b.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),r=[e.selectionSet];let o;for(;o=r.pop();)for(const e of this.getFragmentSpreads(o)){const o=e.name.value;if(!0!==n[o]){n[o]=!0;const e=this.getFragment(o);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class a extends s{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}function l(e){const t=function(e,t,n=o.H7){const i=[],s=new a(e,t,e=>{i.push(e)}),l=n.map(e=>e(s));return(0,r.YR)(e,(0,r.oP)(l)),i}(e);if(0!==t.length)throw new Error(t.map(e=>e.message).join("\n\n"))}Symbol.toStringTag},84437(e,t,n){"use strict";var r,o,i,s,a,l,c,u,d,h,f,p,m,g,y,v,b,x,E,w,C,S,k,_,T,A,D,N,R,O,F,M,I,L,P,j,V,B,q,$,z,K,U,W,H,G,Q,Y,X,J,Z,ee,te,ne,re,oe,ie,se,ae,le,ce,ue,de,he,fe,pe,me,ge,ye,ve,be,xe,Ee,we,Ce,Se,ke,_e,Te,Ae,De,Ne,Re,Oe;!function(e){e.is=function(e){return"string"==typeof e}}(r||(r={})),function(e){e.is=function(e){return"string"==typeof e}}(o||(o={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(i||(i={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(s||(s={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=s.MAX_VALUE),t===Number.MAX_VALUE&&(t=s.MAX_VALUE),{line:e,character:t}},e.is=function(e){const t=e;return Oe.objectLiteral(t)&&Oe.uinteger(t.line)&&Oe.uinteger(t.character)}}(a||(a={})),function(e){e.create=function(e,t,n,r){if(Oe.uinteger(e)&&Oe.uinteger(t)&&Oe.uinteger(n)&&Oe.uinteger(r))return{start:a.create(e,t),end:a.create(n,r)};if(a.is(e)&&a.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)},e.is=function(e){const t=e;return Oe.objectLiteral(t)&&a.is(t.start)&&a.is(t.end)}}(l||(l={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){const t=e;return Oe.objectLiteral(t)&&l.is(t.range)&&(Oe.string(t.uri)||Oe.undefined(t.uri))}}(c||(c={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){const t=e;return Oe.objectLiteral(t)&&l.is(t.targetRange)&&Oe.string(t.targetUri)&&l.is(t.targetSelectionRange)&&(l.is(t.originSelectionRange)||Oe.undefined(t.originSelectionRange))}}(u||(u={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){const t=e;return Oe.objectLiteral(t)&&Oe.numberRange(t.red,0,1)&&Oe.numberRange(t.green,0,1)&&Oe.numberRange(t.blue,0,1)&&Oe.numberRange(t.alpha,0,1)}}(d||(d={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){const t=e;return Oe.objectLiteral(t)&&l.is(t.range)&&d.is(t.color)}}(h||(h={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){const t=e;return Oe.objectLiteral(t)&&Oe.string(t.label)&&(Oe.undefined(t.textEdit)||w.is(t))&&(Oe.undefined(t.additionalTextEdits)||Oe.typedArray(t.additionalTextEdits,w.is))}}(f||(f={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(p||(p={})),function(e){e.create=function(e,t,n,r,o,i){const s={startLine:e,endLine:t};return Oe.defined(n)&&(s.startCharacter=n),Oe.defined(r)&&(s.endCharacter=r),Oe.defined(o)&&(s.kind=o),Oe.defined(i)&&(s.collapsedText=i),s},e.is=function(e){const t=e;return Oe.objectLiteral(t)&&Oe.uinteger(t.startLine)&&Oe.uinteger(t.startLine)&&(Oe.undefined(t.startCharacter)||Oe.uinteger(t.startCharacter))&&(Oe.undefined(t.endCharacter)||Oe.uinteger(t.endCharacter))&&(Oe.undefined(t.kind)||Oe.string(t.kind))}}(m||(m={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){const t=e;return Oe.defined(t)&&c.is(t.location)&&Oe.string(t.message)}}(g||(g={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(y||(y={})),function(e){e.Unnecessary=1,e.Deprecated=2}(v||(v={})),function(e){e.is=function(e){const t=e;return Oe.objectLiteral(t)&&Oe.string(t.href)}}(b||(b={})),function(e){e.create=function(e,t,n,r,o,i){const s={range:e,message:t};return Oe.defined(n)&&(s.severity=n),Oe.defined(r)&&(s.code=r),Oe.defined(o)&&(s.source=o),Oe.defined(i)&&(s.relatedInformation=i),s},e.is=function(e){var t;const n=e;return Oe.defined(n)&&l.is(n.range)&&(Oe.string(n.message)||j.is(n.message))&&(Oe.number(n.severity)||Oe.undefined(n.severity))&&(Oe.integer(n.code)||Oe.string(n.code)||Oe.undefined(n.code))&&(Oe.undefined(n.codeDescription)||Oe.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Oe.string(n.source)||Oe.undefined(n.source))&&(Oe.undefined(n.relatedInformation)||Oe.typedArray(n.relatedInformation,g.is))},e.is3_17=function(e){return Oe.string(e.message)},e.getMessageString=function(e){if(Oe.string(e.message))return e.message;if(j.is(e.message))return e.message.value;throw new Error("Unknown message type "+typeof e.message)}}(x||(x={})),function(e){e.create=function(e,t,...n){const r={title:e,command:t};return Oe.defined(n)&&n.length>0&&(r.arguments=n),r},e.is=function(e){const t=e;return Oe.defined(t)&&Oe.string(t.title)&&(void 0===t.tooltip||Oe.string(t.tooltip))&&Oe.string(t.command)}}(E||(E={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){const t=e;return Oe.objectLiteral(t)&&Oe.string(t.newText)&&l.is(t.range)}}(w||(w={})),function(e){e.create=function(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){const t=e;return Oe.objectLiteral(t)&&Oe.string(t.label)&&(Oe.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Oe.string(t.description)||void 0===t.description)}}(C||(C={})),function(e){e.is=function(e){const t=e;return Oe.string(t)}}(S||(S={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){const t=e;return w.is(t)&&(C.is(t.annotationId)||S.is(t.annotationId))}}(k||(k={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){const t=e;return Oe.defined(t)&&M.is(t.textDocument)&&Array.isArray(t.edits)}}(_||(_={})),function(e){e.create=function(e,t,n){const r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){const t=e;return t&&"create"===t.kind&&Oe.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Oe.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Oe.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||S.is(t.annotationId))}}(T||(T={})),function(e){e.create=function(e,t,n,r){const o={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(o.options=n),void 0!==r&&(o.annotationId=r),o},e.is=function(e){const t=e;return t&&"rename"===t.kind&&Oe.string(t.oldUri)&&Oe.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Oe.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Oe.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||S.is(t.annotationId))}}(A||(A={})),function(e){e.create=function(e,t,n){const r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){const t=e;return t&&"delete"===t.kind&&Oe.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Oe.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Oe.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||S.is(t.annotationId))}}(D||(D={})),function(e){e.is=function(e){const t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every(e=>Oe.string(e.kind)?T.is(e)||A.is(e)||D.is(e):_.is(e)))}}(N||(N={})),function(e){e.is=function(e){const t=e;return Oe.objectLiteral(t)&&l.is(t.range)&&Se.isSnippet(t.snippet)&&(void 0===t.annotationId||C.is(t.annotationId)||S.is(t.annotationId))}}(R||(R={})),function(e){e.create=function(e){return{uri:e}},e.is=function(e){const t=e;return Oe.defined(t)&&Oe.string(t.uri)}}(O||(O={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){const t=e;return Oe.defined(t)&&Oe.string(t.uri)&&Oe.integer(t.version)}}(F||(F={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){const t=e;return Oe.defined(t)&&Oe.string(t.uri)&&(null===t.version||Oe.integer(t.version))}}(M||(M={})),function(e){e.ABAP="abap",e.WindowsBat="bat",e.BibTeX="bibtex",e.Clojure="clojure",e.Coffeescript="coffeescript",e.C="c",e.CPP="cpp",e.CSharp="csharp",e.CSS="css",e.D="d",e.Delphi="pascal",e.Diff="diff",e.Dart="dart",e.Dockerfile="dockerfile",e.Elixir="elixir",e.Erlang="erlang",e.FSharp="fsharp",e.GitCommit="git-commit",e.GitRebase="git-rebase",e.Go="go",e.Groovy="groovy",e.Handlebars="handlebars",e.Haskell="haskell",e.HTML="html",e.Ini="ini",e.Java="java",e.JavaScript="javascript",e.JavaScriptReact="javascriptreact",e.JSON="json",e.LaTeX="latex",e.Less="less",e.Lua="lua",e.Makefile="makefile",e.Markdown="markdown",e.ObjectiveC="objective-c",e.ObjectiveCPP="objective-cpp",e.Pascal="pascal",e.Perl="perl",e.Perl6="perl6",e.PHP="php",e.Plaintext="plaintext",e.Powershell="powershell",e.Pug="jade",e.Python="python",e.R="r",e.Razor="razor",e.Ruby="ruby",e.Rust="rust",e.SCSS="scss",e.SASS="sass",e.Scala="scala",e.ShaderLab="shaderlab",e.ShellScript="shellscript",e.SQL="sql",e.Swift="swift",e.TypeScript="typescript",e.TypeScriptReact="typescriptreact",e.TeX="tex",e.VisualBasic="vb",e.XML="xml",e.XSL="xsl",e.YAML="yaml"}(I||(I={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){const t=e;return Oe.defined(t)&&Oe.string(t.uri)&&Oe.string(t.languageId)&&Oe.integer(t.version)&&Oe.string(t.text)}}(L||(L={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){const n=t;return n===e.PlainText||n===e.Markdown}}(P||(P={})),function(e){e.is=function(e){const t=e;return Oe.objectLiteral(e)&&P.is(t.kind)&&Oe.string(t.value)}}(j||(j={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(V||(V={})),function(e){e.PlainText=1,e.Snippet=2}(B||(B={})),function(e){e.Deprecated=1}(q||(q={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){const t=e;return t&&Oe.string(t.newText)&&l.is(t.insert)&&l.is(t.replace)}}($||($={})),function(e){e.asIs=1,e.adjustIndentation=2}(z||(z={})),function(e){e.Replace=1,e.Merge=2}(K||(K={})),function(e){e.is=function(e){const t=e;return t&&(Oe.string(t.detail)||void 0===t.detail)&&(Oe.string(t.description)||void 0===t.description)}}(U||(U={})),function(e){e.create=function(e){return{label:e}}}(W||(W={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(H||(H={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){const t=e;return Oe.string(t)||Oe.objectLiteral(t)&&Oe.string(t.language)&&Oe.string(t.value)}}(G||(G={})),function(e){e.is=function(e){const t=e;return!!t&&Oe.objectLiteral(t)&&(j.is(t.contents)||G.is(t.contents)||Oe.typedArray(t.contents,G.is))&&(void 0===e.range||l.is(e.range))}}(Q||(Q={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(Y||(Y={})),function(e){e.create=function(e,t,...n){const r={label:e};return Oe.defined(t)&&(r.documentation=t),Oe.defined(n)?r.parameters=n:r.parameters=[],r}}(X||(X={})),function(e){e.Text=1,e.Read=2,e.Write=3}(J||(J={})),function(e){e.create=function(e,t){const n={range:e};return Oe.number(t)&&(n.kind=t),n}}(Z||(Z={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(ee||(ee={})),function(e){e.Deprecated=1}(te||(te={})),function(e){e.create=function(e,t,n,r,o){const i={name:e,kind:t,location:{uri:r,range:n}};return o&&(i.containerName=o),i}}(ne||(ne={})),function(e){e.create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}}}(re||(re={})),function(e){e.create=function(e,t,n,r,o,i){const s={name:e,detail:t,kind:n,range:r,selectionRange:o};return void 0!==i&&(s.children=i),s},e.is=function(e){const t=e;return t&&Oe.string(t.name)&&Oe.number(t.kind)&&l.is(t.range)&&l.is(t.selectionRange)&&(void 0===t.detail||Oe.string(t.detail))&&(void 0===t.deprecated||Oe.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(oe||(oe={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorMove="refactor.move",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll",e.Notebook="notebook"}(ie||(ie={})),function(e){e.Invoked=1,e.Automatic=2}(se||(se={})),function(e){e.create=function(e,t,n){const r={diagnostics:e};return null!=t&&(r.only=t),null!=n&&(r.triggerKind=n),r},e.is=function(e){const t=e;return Oe.defined(t)&&Oe.typedArray(t.diagnostics,x.is)&&(void 0===t.only||Oe.typedArray(t.only,Oe.string))&&(void 0===t.triggerKind||t.triggerKind===se.Invoked||t.triggerKind===se.Automatic)}}(ae||(ae={})),function(e){e.LLMGenerated=1,e.is=function(t){return Oe.defined(t)&&t===e.LLMGenerated}}(le||(le={})),function(e){e.create=function(e,t,n){const r={title:e};let o=!0;return"string"==typeof t?(o=!1,r.kind=t):E.is(t)?r.command=t:r.edit=t,o&&void 0!==n&&(r.kind=n),r},e.is=function(e){const t=e;return t&&Oe.string(t.title)&&(void 0===t.diagnostics||Oe.typedArray(t.diagnostics,x.is))&&(void 0===t.kind||Oe.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||E.is(t.command))&&(void 0===t.isPreferred||Oe.boolean(t.isPreferred))&&(void 0===t.edit||N.is(t.edit))&&(void 0===t.tags||Oe.typedArray(t.tags,le.is))}}(ce||(ce={})),function(e){e.create=function(e,t){const n={range:e};return Oe.defined(t)&&(n.data=t),n},e.is=function(e){const t=e;return Oe.defined(t)&&l.is(t.range)&&(Oe.undefined(t.command)||E.is(t.command))}}(ue||(ue={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){const t=e;return Oe.defined(t)&&Oe.uinteger(t.tabSize)&&Oe.boolean(t.insertSpaces)}}(de||(de={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){const t=e;return Oe.defined(t)&&l.is(t.range)&&(Oe.undefined(t.target)||Oe.string(t.target))}}(he||(he={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){const n=t;return Oe.objectLiteral(n)&&l.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(fe||(fe={})),function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator",e.label="label"}(pe||(pe={})),function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"}(me||(me={})),function(e){e.is=function(e){const t=e;return Oe.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}}(ge||(ge={})),function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){const t=e;return null!=t&&l.is(t.range)&&Oe.string(t.text)}}(ye||(ye={})),function(e){e.create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},e.is=function(e){const t=e;return null!=t&&l.is(t.range)&&Oe.boolean(t.caseSensitiveLookup)&&(Oe.string(t.variableName)||void 0===t.variableName)}}(ve||(ve={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){const t=e;return null!=t&&l.is(t.range)&&(Oe.string(t.expression)||void 0===t.expression)}}(be||(be={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){const t=e;return Oe.defined(t)&&l.is(e.stoppedLocation)}}(xe||(xe={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(Ee||(Ee={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){const t=e;return Oe.objectLiteral(t)&&(void 0===t.tooltip||Oe.string(t.tooltip)||j.is(t.tooltip))&&(void 0===t.location||c.is(t.location))&&(void 0===t.command||E.is(t.command))}}(we||(we={})),function(e){e.create=function(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r},e.is=function(e){const t=e;return Oe.objectLiteral(t)&&a.is(t.position)&&(Oe.string(t.label)||Oe.typedArray(t.label,we.is))&&(void 0===t.kind||Ee.is(t.kind))&&void 0===t.textEdits||Oe.typedArray(t.textEdits,w.is)&&(void 0===t.tooltip||Oe.string(t.tooltip)||j.is(t.tooltip))&&(void 0===t.paddingLeft||Oe.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Oe.boolean(t.paddingRight))}}(Ce||(Ce={})),function(e){e.createSnippet=function(e){return{kind:"snippet",value:e}},e.isSnippet=function(e){const t=e;return Oe.objectLiteral(t)&&"snippet"===t.kind&&Oe.string(t.value)}}(Se||(Se={})),function(e){e.create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}}(ke||(ke={})),function(e){e.create=function(e){return{items:e}}}(_e||(_e={})),function(e){e.Invoked=1,e.Automatic=2}(Te||(Te={})),function(e){e.create=function(e,t){return{range:e,text:t}}}(Ae||(Ae={})),function(e){e.create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}}}(De||(De={})),function(e){e.is=function(e){const t=e;return Oe.objectLiteral(t)&&o.is(t.uri)&&Oe.string(t.name)}}(Ne||(Ne={})),function(e){function t(e,n){if(e.length<=1)return e;const r=e.length/2|0,o=e.slice(0,r),i=e.slice(r);t(o,n),t(i,n);let s=0,a=0,l=0;for(;s<o.length&&a<i.length;){const t=n(o[s],i[a]);e[l++]=t<=0?o[s++]:i[a++]}for(;s<o.length;)e[l++]=o[s++];for(;a<i.length;)e[l++]=i[a++];return e}e.create=function(e,t,n,r){return new Fe(e,t,n,r)},e.is=function(e){const t=e;return!!(Oe.defined(t)&&Oe.string(t.uri)&&(Oe.undefined(t.languageId)||Oe.string(t.languageId))&&Oe.uinteger(t.lineCount)&&Oe.func(t.getText)&&Oe.func(t.positionAt)&&Oe.func(t.offsetAt))},e.applyEdits=function(e,n){let r=e.getText();const o=t(n,(e,t)=>{const n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n});let i=r.length;for(let t=o.length-1;t>=0;t--){const n=o[t],s=e.offsetAt(n.range.start),a=e.offsetAt(n.range.end);if(!(a<=i))throw new Error("Overlapping edit");r=r.substring(0,s)+n.newText+r.substring(a,r.length),i=s}return r}}(Re||(Re={}));class Fe{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){const t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){const e=[],t=this._content;let n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);const o=t.charAt(r);n="\r"===o||"\n"===o,"\r"===o&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);const t=this.getLineOffsets();let n=0,r=t.length;if(0===r)return a.create(0,e);for(;n<r;){const o=Math.floor((n+r)/2);t[o]>e?r=o:n=o+1}const o=n-1;return a.create(o,e-t[o])}offsetAt(e){const t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;const n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}}!function(e){const t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"==typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Oe||(Oe={}))}}]);
|