@mdn/fred 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/components/menu/constants.js +8 -20
- package/components/menu/server.js +5 -2
- package/components/reference-layout/server.css +1 -1
- package/components/reference-layout/server.js +3 -2
- package/components/survey/README.md +5 -0
- package/components/survey/element.css +10 -0
- package/components/survey/element.js +45 -35
- package/components/survey/surveys.js +25 -21
- package/components/survey/types.d.ts +2 -0
- package/out/service-worker.js +1 -1
- package/out/static/client/2936.d694758cdb9cca05.js +2 -0
- package/out/static/client/2936.d694758cdb9cca05.js.map +1 -0
- package/out/static/client/3279.af292ae0820e0f6d.js +33 -0
- package/out/static/client/3279.af292ae0820e0f6d.js.map +1 -0
- package/out/static/client/9804.307d2bd47ea925e6.js +2 -0
- package/out/static/client/9804.307d2bd47ea925e6.js.map +1 -0
- package/out/static/client/{index.1fdf341dd8b9ed94.js → index.db196dc46f1ac46c.js} +4 -4
- package/out/static/client/index.db196dc46f1ac46c.js.map +1 -0
- package/out/static/client/{runtime.45841d40e5b5e1ef.js → runtime.27e033484190f93b.js} +2 -2
- package/out/static/client/{runtime.45841d40e5b5e1ef.js.map → runtime.27e033484190f93b.js.map} +1 -1
- package/out/static/client/stats.json +22 -22
- package/out/static/client/{styles-global.4031cdde644ed6ce.css → styles-global.c9f2a49e47bf5c55.css} +2 -2
- package/out/static/client/{styles-global.4031cdde644ed6ce.css.map → styles-global.c9f2a49e47bf5c55.css.map} +1 -1
- package/out/static/client/{styles-global.d954bf3cd4308e10.js → styles-global.ee8053c9a16002d4.js} +1 -1
- package/out/static/client/styles-reference-layout.be92c8fb52c5622b.css +2 -0
- package/out/static/client/styles-reference-layout.be92c8fb52c5622b.css.map +1 -0
- package/out/static/legacy/{1539.7e1697ed14914723.js → 1539.85dfd82e5678bcd1.js} +4 -4
- package/out/static/legacy/{1539.7e1697ed14914723.js.map → 1539.85dfd82e5678bcd1.js.map} +1 -1
- package/out/static/legacy/asset-manifest.json +7 -7
- package/out/static/legacy/{index.f8971c6fcd83fc71.js → index.66ef13fe869f8d43.js} +3 -3
- package/out/static/legacy/{index.f8971c6fcd83fc71.js.map → index.66ef13fe869f8d43.js.map} +1 -1
- package/out/static/legacy/{index.ce4e2073f6fcdcde.html → index.ada5bb78e9e86c98.html} +1 -1
- package/out/static/legacy/stats.json +13 -13
- package/out/static/legacy/{yari.87de8673af6079c0.js → yari.4e0236da42985a90.js} +3 -3
- package/out/static/legacy/{yari.87de8673af6079c0.js.map → yari.4e0236da42985a90.js.map} +1 -1
- package/out/static/ssr/index.js +31 -23
- package/out/static/ssr/index.js.map +1 -1
- package/out/static/ssr/stats.json +4 -4
- package/package.json +2 -2
- package/out/static/client/2936.45c52ae3ada1ba52.js +0 -2
- package/out/static/client/2936.45c52ae3ada1ba52.js.map +0 -1
- package/out/static/client/3279.c247237095588115.js +0 -27
- package/out/static/client/3279.c247237095588115.js.LICENSE.txt +0 -5
- package/out/static/client/3279.c247237095588115.js.map +0 -1
- package/out/static/client/9804.f51f5d1ea2fd9564.js +0 -2
- package/out/static/client/9804.f51f5d1ea2fd9564.js.map +0 -1
- package/out/static/client/index.1fdf341dd8b9ed94.js.map +0 -1
- package/out/static/client/styles-reference-layout.d6cf97d60124f649.css +0 -2
- package/out/static/client/styles-reference-layout.d6cf97d60124f649.css.map +0 -1
- /package/out/static/client/{index.1fdf341dd8b9ed94.js.LICENSE.txt → index.db196dc46f1ac46c.js.LICENSE.txt} +0 -0
- /package/out/static/legacy/{1539.7e1697ed14914723.js.LICENSE.txt → 1539.85dfd82e5678bcd1.js.LICENSE.txt} +0 -0
- /package/out/static/legacy/{index.f8971c6fcd83fc71.js.LICENSE.txt → index.66ef13fe869f8d43.js.LICENSE.txt} +0 -0
- /package/out/static/legacy/{yari.87de8673af6079c0.js.LICENSE.txt → yari.4e0236da42985a90.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export const __webpack_id__="3279";export const __webpack_ids__=["3279"];export const __webpack_modules__={30321:function(e,t,s){s.d(t,{A:()=>v});var r=s(63819),i=s(31601),a=s.n(i),_=s(76314),n=s.n(_),o=s(86965),u=s(4417),h=s.n(u),c=new s.U(s(84710)),l=n()(a());l.i(o.A);var d=h()(c);l.push([e.id,`:host{display:block}.survey{background-color:var(--color-background-purple);border-radius:.5rem;display:grid;padding:1rem 1rem 1rem 5rem;row-gap:.75rem}header{align-items:center;display:flex;justify-content:space-between}header:before{background:url(${d});background-size:cover;content:"";height:49px;margin-left:calc(-53px - .5rem);margin-top:1rem;position:absolute;width:53px}p{margin:0}mdn-button::part(button):hover{background-color:initial;border:1px solid var(--color-text-purple)}mdn-button::part(icon){color:var(--color-text-purple)}summary{cursor:pointer}a,summary{color:var(--color-text-purple)}a:hover{-webkit-text-decoration:none;text-decoration:none}iframe{border:none;border-radius:.5rem;height:500px;overflow:hidden;width:100%}footer{font-size:var(--font-size-small);font-style:italic}`,""]);let v=(0,r.AH)([l.toString()])},84710:function(e,t,s){e.exports=s.p+"survey.aa219aee52f606e2.svg"},6674:function(e,t,s){s.r(t),s.d(t,{MDNSurvey:()=>MDNSurvey});var r=s(63819),i=s(62963),a=s(69392);s(99638);var _=s(86484),n=s(39943),o=s(37940),u=s(30321);let h=Object.freeze({BLOG_FEEDBACK_2023:"BLOG_FEEDBACK_2023",BROWSER_SURVEY_OCT_2022:"BROWSER_SURVEY_OCT_2022",CONTENT_DISCOVERY_2023:"CONTENT_DISCOVERY_2023",CSS_CASCADE_2022:"CSS_CASCADE_2022",DE_LOCALE_2024:"DE_LOCALE_2024",DE_LOCALE_2024_EVAL:"DE_LOCALE_2024_EVAL",FIREFOX_WEB_COMPAT_2023:"FIREFOX_WEB_COMPAT_2023",INTEROP_2023:"INTEROP_2023",IT_LOCALE_2025:"IT_LOCALE_2025",WEB_COMPONENTS_2023:"WEB_COMPONENTS_2023",DISCOVERABILITY_2023:"DISCOVERABILITY_2023",WEB_SECURITY_2023:"WEB_SECURITY_2023",DISCOVERABILITY_AUG_2023:"DISCOVERABILITY_AUG_2023",WEB_APP_AUGUST_2024:"WEB_APP_AUGUST_2024",HOMEPAGE_FEEDBACK_2024:"HOMEPAGE_FEEDBACK_2024",WEBDX_EDITING_2024:"WEBDX_EDITING_2024",HOUSE_SURVEY_2025:"HOUSE_SURVEY_2025",JS_PROPOSALS_2025:"JS_PROPOSALS_2025",FIRST_FRED_2025:"FIRST_FRED_2025",DEVELOPER_SURVEY_2025:"DEVELOPER_SURVEY_2025"}),c=[{key:h.DEVELOPER_SURVEY_2025,bucket:h.DEVELOPER_SURVEY_2025,show:e=>/^\/[a-z]{2}(-[A-Z]{2})?\/docs\/(Glossary|Learn|Web)/.test(e),src:e=>{let t=new URL("https://survey.alchemer.com/s3/8409929/MDN-Developer-Survey");return t.searchParams.set("referrer",e),t.toString()},teaser:"We’re running a survey to understand how you use MDN in your web development work.",question:"We’d love for you to take 10 minutes to share your feedback.",link:!0,rateFrom:0,rateTill:.3,start:Date.parse("2025-10-06"),end:Date.parse("2025-10-20")}];function l(e){let t,s=`survey.${e}`;try{t=JSON.parse(localStorage?.getItem(s)??"{}")}catch{t={}}return 0===Object.keys(t).length&&d(e,t={random:Math.random(),seen_at:null,dismissed_at:null,submitted_at:null,opened_at:null}),t}function d(e,t){let s=`survey.${e}`;try{localStorage?.setItem(s,JSON.stringify(t))}catch{}}let MDNSurvey=class MDNSurvey extends(0,_.J)(r.WF){static styles=u.A;static ssr=!1;constructor(){super(),this._survey=void 0,this._surveyState=void 0,this._isOpen=!1,this._force=!1,this._source=void 0,this._detailsRef=(0,a._)()}connectedCallback(){super.connectedCallback(),this.#e(),this.#t()}disconnectedCallback(){super.disconnectedCallback(),this.#s()}#e(){this._survey=this.#r(),this._survey&&(this._surveyState=l(this._survey.bucket),this._source="function"==typeof this._survey.src?this._survey.src(location.pathname):this._survey.src,this.#i())}#r(){let e=new URLSearchParams(location.search).get("force_survey");return this._force=null!==e,c.find(t=>{if(this._force)return!e||t.key===e;if(!t.show(location.pathname))return!1;let s=Date.now();if(s<t.start||t.end<s)return!1;let r=l(t.bucket);return r.random>=t.rateFrom&&r.random<t.rateTill})}#i(){this._survey&&this._surveyState&&!this._surveyState.seen_at&&(this._surveyState={...this._surveyState,seen_at:Date.now()},d(this._survey.bucket,this._surveyState),this.#a("seen"))}#_(){this._survey&&this._surveyState&&(this._surveyState={...this._surveyState,dismissed_at:Date.now()},d(this._survey.bucket,this._surveyState),this.#a("dismissed"),this.requestUpdate())}#n(){this.#o()}#u(){if(!this._survey||!this._surveyState||this._isOpen)return;let e=this._detailsRef.value;e&&e.open&&(this.#o(),this._isOpen=!0,this.requestUpdate())}#o(){this._survey&&this._surveyState&&(this._surveyState={...this._surveyState,opened_at:Date.now()},d(this._survey.bucket,this._surveyState),this.#a("opened"))}#h(){this._survey&&this._surveyState&&(this._surveyState={...this._surveyState,submitted_at:Date.now()},d(this._survey.bucket,this._surveyState),this.#a("submitted"),this.requestUpdate())}#a(e){this._survey&&(0,n.w)(`survey: ${e} ${this._survey.bucket}`)}#t(){this._messageListener=e=>{"https://survey.alchemer.com"===e.origin&&"submit"===e.data&&this.#h()},window.addEventListener("message",this._messageListener,!1)}#s(){this._messageListener&&window.removeEventListener("message",this._messageListener,!1)}render(){if(!this._survey||!this._surveyState||!this._force&&(this._surveyState.dismissed_at||this._surveyState?.submitted_at))return r.s6;let e=this.l10n`Hide this survey`;return(0,r.qy)`
|
|
2
|
+
<div class="survey">
|
|
3
|
+
<header>
|
|
4
|
+
<p>${this._survey.teaser}</p>
|
|
5
|
+
<mdn-button
|
|
6
|
+
variant="plain"
|
|
7
|
+
.icon=${o.A}
|
|
8
|
+
icon-only
|
|
9
|
+
title=${e}
|
|
10
|
+
aria-label=${e}
|
|
11
|
+
@click=${this.#_}
|
|
12
|
+
></mdn-button>
|
|
13
|
+
</header>
|
|
14
|
+
${this._survey.link?(0,r.qy)`<a
|
|
15
|
+
class="external"
|
|
16
|
+
href=${this._source}
|
|
17
|
+
target="_blank"
|
|
18
|
+
title=${this.l10n`Take survey (Opens in a new tab)`}
|
|
19
|
+
@click=${this.#n}
|
|
20
|
+
>${this._survey.question}</a
|
|
21
|
+
>`:(0,r.qy)`<details ${(0,a.K)(this._detailsRef)} @toggle=${this.#u}>
|
|
22
|
+
<summary>${this._survey.question}</summary>
|
|
23
|
+
${this._isOpen&&this._source?(0,r.qy)`
|
|
24
|
+
<iframe
|
|
25
|
+
title=${(0,i.J)(this._survey.question)}
|
|
26
|
+
src=${this._source}
|
|
27
|
+
></iframe>
|
|
28
|
+
`:r.s6}
|
|
29
|
+
</details>`}
|
|
30
|
+
${this._survey.footnote?(0,r.qy)` <footer>(${this._survey.footnote})</footer> `:r.s6}
|
|
31
|
+
</div>
|
|
32
|
+
`}};customElements.define("mdn-survey",MDNSurvey)}};
|
|
33
|
+
//# sourceMappingURL=3279.af292ae0820e0f6d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"3279.af292ae0820e0f6d.js","sources":["webpack://@mdn/fred/./components/survey/element.css","webpack://@mdn/fred/./components/survey/surveys.js","webpack://@mdn/fred/./components/survey/utils.js","webpack://@mdn/fred/./components/survey/element.js"],"sourcesContent":["import { css } from \"lit\";\n// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nimport ___CSS_LOADER_AT_RULE_IMPORT_0___ from \"-!../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!../../build/loaders/fix-light-dark.js!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!../external-link/global.css\";\nimport ___CSS_LOADER_GET_URL_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/getUrl.js\";\nvar ___CSS_LOADER_URL_IMPORT_0___ = new URL(\"assets/survey.svg\", import.meta.url);\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n___CSS_LOADER_EXPORT___.i(___CSS_LOADER_AT_RULE_IMPORT_0___);\nvar ___CSS_LOADER_URL_REPLACEMENT_0___ = ___CSS_LOADER_GET_URL_IMPORT___(___CSS_LOADER_URL_IMPORT_0___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:host{display:block}.survey{background-color:var(--color-background-purple);border-radius:.5rem;display:grid;padding:1rem 1rem 1rem 5rem;row-gap:.75rem}header{align-items:center;display:flex;justify-content:space-between}header:before{background:url(${___CSS_LOADER_URL_REPLACEMENT_0___});background-size:cover;content:\"\";height:49px;margin-left:calc(-53px - .5rem);margin-top:1rem;position:absolute;width:53px}p{margin:0}mdn-button::part(button):hover{background-color:initial;border:1px solid var(--color-text-purple)}mdn-button::part(icon){color:var(--color-text-purple)}summary{cursor:pointer}a,summary{color:var(--color-text-purple)}a:hover{-webkit-text-decoration:none;text-decoration:none}iframe{border:none;border-radius:.5rem;height:500px;overflow:hidden;width:100%}footer{font-size:var(--font-size-small);font-style:italic}`, \"\"]);\n// Exports\nexport default css([___CSS_LOADER_EXPORT___.toString()]);\n","// import { html } from \"lit\";\n\n/**\n * @import * as Survey from \"./types.js\";\n */\n/**\n * Survey bucket identifiers used for localStorage state management.\n * Each bucket represents a unique survey campaign and maintains separate state.\n * @readonly\n * @enum {string}\n */\nexport const SurveyBucket = Object.freeze({\n BLOG_FEEDBACK_2023: \"BLOG_FEEDBACK_2023\",\n BROWSER_SURVEY_OCT_2022: \"BROWSER_SURVEY_OCT_2022\",\n CONTENT_DISCOVERY_2023: \"CONTENT_DISCOVERY_2023\",\n CSS_CASCADE_2022: \"CSS_CASCADE_2022\",\n DE_LOCALE_2024: \"DE_LOCALE_2024\",\n DE_LOCALE_2024_EVAL: \"DE_LOCALE_2024_EVAL\",\n FIREFOX_WEB_COMPAT_2023: \"FIREFOX_WEB_COMPAT_2023\",\n INTEROP_2023: \"INTEROP_2023\",\n IT_LOCALE_2025: \"IT_LOCALE_2025\",\n WEB_COMPONENTS_2023: \"WEB_COMPONENTS_2023\",\n DISCOVERABILITY_2023: \"DISCOVERABILITY_2023\",\n WEB_SECURITY_2023: \"WEB_SECURITY_2023\",\n DISCOVERABILITY_AUG_2023: \"DISCOVERABILITY_AUG_2023\",\n WEB_APP_AUGUST_2024: \"WEB_APP_AUGUST_2024\",\n HOMEPAGE_FEEDBACK_2024: \"HOMEPAGE_FEEDBACK_2024\",\n WEBDX_EDITING_2024: \"WEBDX_EDITING_2024\",\n HOUSE_SURVEY_2025: \"HOUSE_SURVEY_2025\",\n JS_PROPOSALS_2025: \"JS_PROPOSALS_2025\",\n FIRST_FRED_2025: \"FIRST_FRED_2025\",\n DEVELOPER_SURVEY_2025: \"DEVELOPER_SURVEY_2025\",\n});\n\n/**\n * Array of survey configurations.\n *\n * When adding a survey, make sure it has this JavaScript action (in Alchemer)\n * so the banner is hidden for users who have already submitted it:\n * ```javascript\n * window.parent && window.parent.postMessage(\"submit\", \"*\");\n * ```\n *\n * @type {Survey.Survey[]}\n */\nexport const SURVEYS = [\n {\n key: SurveyBucket.DEVELOPER_SURVEY_2025,\n bucket: SurveyBucket.DEVELOPER_SURVEY_2025,\n show: (mdn_url) => {\n return /^\\/[a-z]{2}(-[A-Z]{2})?\\/docs\\/(Glossary|Learn|Web)/.test(\n mdn_url,\n );\n },\n src: (mdn_url) => {\n const url = new URL(\n \"https://survey.alchemer.com/s3/8409929/MDN-Developer-Survey\",\n );\n url.searchParams.set(\"referrer\", mdn_url);\n return url.toString();\n },\n teaser:\n \"We’re running a survey to understand how you use MDN in your web development work.\",\n question: \"We’d love for you to take 10 minutes to share your feedback.\",\n link: true,\n rateFrom: 0,\n rateTill: 0.3,\n start: Date.parse(\"2025-10-06\"),\n end: Date.parse(\"2025-10-20\"),\n },\n];\n","/**\n * @import * as Survey from \"./types.js\";\n */\n/**\n * @param {string} key\n * @returns {Survey.SurveyState}\n */\nexport function getSurveyState(key) {\n const stateKey = `survey.${key}`;\n let state;\n\n try {\n state = JSON.parse(localStorage?.getItem(stateKey) ?? \"{}\");\n } catch {\n state = {};\n }\n\n if (Object.keys(state).length === 0) {\n state = {\n random: Math.random(),\n seen_at: null,\n dismissed_at: null,\n submitted_at: null,\n opened_at: null,\n };\n writeSurveyState(key, state);\n }\n\n return state;\n}\n\n/**\n * @param {string} key\n * @param {Survey.SurveyState} state\n */\nexport function writeSurveyState(key, state) {\n const stateKey = `survey.${key}`;\n try {\n localStorage?.setItem(stateKey, JSON.stringify(state));\n } catch {\n // Handle localStorage errors silently\n }\n}\n","import { LitElement, html, nothing } from \"lit\";\nimport { ifDefined } from \"lit/directives/if-defined.js\";\nimport { createRef, ref } from \"lit/directives/ref.js\";\n\nimport \"../button/element.js\";\nimport { L10nMixin } from \"../../l10n/mixin.js\";\nimport { gleanClick } from \"../../utils/glean.js\";\nimport closeIcon from \"../icon/cancel.svg?lit\";\n\nimport styles from \"./element.css?lit\";\nimport { SURVEYS } from \"./surveys.js\";\nimport { getSurveyState, writeSurveyState } from \"./utils.js\";\n\n/**\n * @import * as Survey from \"./types.js\";\n */\n\nexport class MDNSurvey extends L10nMixin(LitElement) {\n static styles = styles;\n\n static ssr = false;\n\n constructor() {\n super();\n /** @type {Survey.Survey | undefined} */\n this._survey = undefined;\n /** @type {Survey.SurveyState | undefined} */\n this._surveyState = undefined;\n /** @type {boolean} */\n this._isOpen = false;\n /** @type {boolean} */\n this._force = false;\n /** @type {string | undefined} */\n this._source = undefined;\n\n /** @type {import(\"@lit\").Ref<HTMLDetailsElement>} */\n this._detailsRef = createRef();\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.#checkForSurvey();\n this.#setupMessageListener();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.#removeMessageListener();\n }\n\n #checkForSurvey() {\n this._survey = this.#findSurvey();\n\n if (this._survey) {\n this._surveyState = getSurveyState(this._survey.bucket);\n this._source =\n typeof this._survey.src === \"function\"\n ? this._survey.src(location.pathname)\n : this._survey.src;\n\n this.#markAsSeen();\n }\n }\n\n /**\n * @returns {Survey.Survey | undefined}\n */\n #findSurvey() {\n const forcedSurvey = new URLSearchParams(location.search).get(\n \"force_survey\",\n );\n this._force = forcedSurvey !== null;\n return SURVEYS.find((survey) => {\n if (this._force) {\n return forcedSurvey ? survey.key === forcedSurvey : true;\n }\n\n if (!survey.show(location.pathname)) {\n return false;\n }\n\n const now = Date.now();\n if (now < survey.start || survey.end < now) {\n return false;\n }\n\n const state = getSurveyState(survey.bucket);\n return state.random >= survey.rateFrom && state.random < survey.rateTill;\n });\n }\n\n #markAsSeen() {\n if (!this._survey || !this._surveyState || this._surveyState.seen_at)\n return;\n\n this._surveyState = {\n ...this._surveyState,\n seen_at: Date.now(),\n };\n writeSurveyState(this._survey.bucket, this._surveyState);\n this.#measure(\"seen\");\n }\n\n #dismiss() {\n if (!this._survey || !this._surveyState) return;\n\n this._surveyState = {\n ...this._surveyState,\n dismissed_at: Date.now(),\n };\n writeSurveyState(this._survey.bucket, this._surveyState);\n this.#measure(\"dismissed\");\n this.requestUpdate();\n }\n\n #onLinkClick() {\n this.#markOpened();\n }\n\n #onToggle() {\n if (!this._survey || !this._surveyState || this._isOpen) return;\n\n const details = this._detailsRef.value;\n if (details && details.open) {\n this.#markOpened();\n this._isOpen = true;\n this.requestUpdate();\n }\n }\n\n #markOpened() {\n if (!this._survey || !this._surveyState) return;\n\n this._surveyState = {\n ...this._surveyState,\n opened_at: Date.now(),\n };\n writeSurveyState(this._survey.bucket, this._surveyState);\n this.#measure(\"opened\");\n }\n\n #onSubmitted() {\n if (!this._survey || !this._surveyState) return;\n\n this._surveyState = {\n ...this._surveyState,\n submitted_at: Date.now(),\n };\n writeSurveyState(this._survey.bucket, this._surveyState);\n this.#measure(\"submitted\");\n this.requestUpdate();\n }\n\n /**\n * @param {string} action\n */\n #measure(action) {\n if (!this._survey) return;\n\n gleanClick(`survey: ${action} ${this._survey.bucket}`);\n }\n\n #setupMessageListener() {\n /** @type {(event: MessageEvent) => void} */\n this._messageListener = (event) => {\n if (\n event.origin === \"https://survey.alchemer.com\" &&\n event.data === \"submit\"\n ) {\n this.#onSubmitted();\n }\n };\n window.addEventListener(\"message\", this._messageListener, false);\n }\n\n #removeMessageListener() {\n if (this._messageListener) {\n window.removeEventListener(\"message\", this._messageListener, false);\n }\n }\n\n /**\n * @returns {import(\"@lit\").TemplateResult | nothing}\n */\n render() {\n if (!this._survey || !this._surveyState) {\n return nothing;\n }\n\n if (\n !this._force &&\n (this._surveyState.dismissed_at || this._surveyState?.submitted_at)\n ) {\n return nothing;\n }\n\n const title = this.l10n`Hide this survey`;\n\n return html`\n <div class=\"survey\">\n <header>\n <p>${this._survey.teaser}</p>\n <mdn-button\n variant=\"plain\"\n .icon=${closeIcon}\n icon-only\n title=${title}\n aria-label=${title}\n @click=${this.#dismiss}\n ></mdn-button>\n </header>\n ${this._survey.link\n ? html`<a\n class=\"external\"\n href=${this._source}\n target=\"_blank\"\n title=${this.l10n`Take survey (Opens in a new tab)`}\n @click=${this.#onLinkClick}\n >${this._survey.question}</a\n >`\n : html`<details ${ref(this._detailsRef)} @toggle=${this.#onToggle}>\n <summary>${this._survey.question}</summary>\n ${this._isOpen && this._source\n ? html`\n <iframe\n title=${ifDefined(this._survey.question)}\n src=${this._source}\n ></iframe>\n `\n : nothing}\n </details>`}\n ${this._survey.footnote\n ? html` <footer>(${this._survey.footnote})</footer> `\n : nothing}\n </div>\n `;\n }\n}\n\ncustomElements.define(\"mdn-survey\", MDNSurvey);\n"],"names":["Object","URL","Date","s","JSON","localStorage","Math","MDNSurvey","location","URLSearchParams","e","window","i","customElements"],"mappings":"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"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export const __webpack_id__="9804";export const __webpack_ids__=["9804"];export const __webpack_modules__={92486:function(e,t,n){let r;n.d(t,{AH:()=>w,Yk:()=>y});var a=n(41769),l=n(30010),o=n(64693);let i=null;function s(){if(!i&&"object"==typeof document&&document.body){let{style:e}=document.body,t=[],n=new Set;for(let r in e)"cssText"!=r&&"cssFloat"!=r&&"string"==typeof e[r]&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())),n.has(r)||(t.push(r),n.add(r)));i=t.sort().map(e=>({type:"property",label:e,apply:e+": "}))}return i||[]}let c=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(e=>({type:"class",label:e})),u=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(e=>({type:"keyword",label:e})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(e=>({type:"constant",label:e}))),d=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),p=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(e=>({type:"keyword",label:e})),f=/^(\w[\w-]*|-\w[\w-]*|)$/,m=/^-(-[\w-]*)?$/,h=new o.RY,g=["Declaration"],b=(r=e=>"VariableName"==e.name,e=>{let{state:t,pos:n}=e,a=(0,l.mv)(t).resolveInner(n,-1),i=a.type.isError&&a.from==a.to-1&&"-"==t.doc.sliceString(a.from,a.to);if("PropertyName"==a.name||(i||"TagName"==a.name)&&/^(Block|Styles)$/.test(a.resolve(a.to).name))return{from:a.from,options:s(),validFor:f};if("ValueName"==a.name)return{from:a.from,options:u,validFor:f};if("PseudoClassName"==a.name)return{from:a.from,options:c,validFor:f};if(r(a)||(e.explicit||i)&&function(e,t){var n;if(("("==e.name||e.type.isError)&&(e=e.parent||e),"ArgList"!=e.name)return!1;let r=null==(n=e.parent)?void 0:n.firstChild;return(null==r?void 0:r.name)=="Callee"&&"var"==t.sliceString(r.from,r.to)}(a,t.doc))return{from:r(a)||i?a.from:n,options:function e(t,n,r){if(n.to-n.from>4096){let a=h.get(n);if(a)return a;let l=[],i=new Set,s=n.cursor(o.Qj.IncludeAnonymous);if(s.firstChild())do for(let n of e(t,s.node,r))i.has(n.label)||(i.add(n.label),l.push(n));while(s.nextSibling());return h.set(n,l),l}{let e=[],a=new Set;return n.cursor().iterate(n=>{var l;if(r(n)&&n.matchContext(g)&&(null==(l=n.node.nextSibling)?void 0:l.name)==":"){let r=t.sliceString(n.from,n.to);a.has(r)||(a.add(r),e.push({label:r,type:"variable"}))}}),e}}(t.doc,function(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}(a),r),validFor:m};if("TagName"==a.name){for(let{parent:e}=a;e;e=e.parent)if("Block"==e.name)return{from:a.from,options:s(),validFor:f};return{from:a.from,options:d,validFor:f}}if("AtKeyword"==a.name)return{from:a.from,options:p,validFor:f};if(!e.explicit)return null;let b=a.resolve(n),y=b.childBefore(n);return y&&":"==y.name&&"PseudoClassSelector"==b.name?{from:n,options:c,validFor:f}:y&&":"==y.name&&"Declaration"==b.name||"ArgList"==b.name?{from:n,options:u,validFor:f}:"Block"==b.name||"Styles"==b.name?{from:n,options:s(),validFor:f}:null}),y=l.bj.define({name:"css",parser:a.K.configure({props:[l.Oh.add({Declaration:(0,l.mz)()}),l.b_.add({"Block KeyframeList":l.yd})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function w(){return new l.Yy(y,y.data.of({autocomplete:b}))}},92980:function(e,t,n){n.d(t,{qy:()=>L});var r=n(59353),a=n(92486),l=n(12582),o=n(44547),i=n(40865),s=n(30010);let c=["_blank","_self","_top","_parent"],u=["ascii","utf-8","utf-16","latin1","latin1"],d=["get","post","put","delete"],p=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],f=["true","false"],m={},h={a:{attrs:{href:null,ping:null,type:null,media:null,target:c,hreflang:null}},abbr:m,address:m,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:m,aside:m,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:m,base:{attrs:{href:null,target:c}},bdi:m,bdo:m,blockquote:{attrs:{cite:null}},body:m,br:m,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:p,formmethod:d,formnovalidate:["novalidate"],formtarget:c,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:m,center:m,cite:m,code:m,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:m,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:m,div:m,dl:m,dt:m,em:m,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:m,figure:m,footer:m,form:{attrs:{action:null,name:null,"accept-charset":u,autocomplete:["on","off"],enctype:p,method:d,novalidate:["novalidate"],target:c}},h1:m,h2:m,h3:m,h4:m,h5:m,h6:m,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:m,hgroup:m,hr:m,html:{attrs:{manifest:null}},i:m,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:p,formmethod:d,formnovalidate:["novalidate"],formtarget:c,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:m,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:m,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:m,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:u,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:m,noscript:m,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:m,param:{attrs:{name:null,value:null}},pre:m,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:m,rt:m,ruby:m,samp:m,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:u}},section:m,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:m,source:{attrs:{src:null,type:null,media:null}},span:m,strong:m,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:m,summary:m,sup:m,table:m,tbody:m,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:m,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:m,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:m,time:{attrs:{datetime:null}},title:m,tr:m,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:m,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:m},g={accesskey:null,class:null,contenteditable:f,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:f,autocorrect:f,autocapitalize:f,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":f,"aria-autocomplete":["inline","list","both","none"],"aria-busy":f,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":f,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":f,"aria-hidden":f,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":f,"aria-multiselectable":f,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":f,"aria-relevant":null,"aria-required":f,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},b="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(e=>"on"+e);for(let e of b)g[e]=null;let Schema=class Schema{constructor(e,t){this.tags={...h,...e},this.globalAttrs={...g,...t},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};function y(e,t,n=e.length){if(!t)return"";let r=t.firstChild,a=r&&r.getChild("TagName");return a?e.sliceString(a.from,Math.min(a.to,n)):""}function w(e,t=!1){for(;e;e=e.parent)if("Element"==e.name)if(!t)return e;else t=!1;return null}function v(e,t,n){let r=n.tags[y(e,w(t))];return(null==r?void 0:r.children)||n.allTags}function k(e,t){let n=[];for(let r=w(t);r&&!r.type.isTop;r=w(r.parent)){let a=y(e,r);if(a&&"CloseTag"==r.lastChild.name)break;a&&0>n.indexOf(a)&&("EndTag"==t.name||t.from>=r.firstChild.to)&&n.push(a)}return n}Schema.default=new Schema;let x=/^[:\-\.\w\u00b7-\uffff]*$/;function S(e,t,n,r,a){let l=/\s*>/.test(e.sliceDoc(a,a+5))?"":">",o=w(n,"StartTag"==n.name||"TagName"==n.name);return{from:r,to:a,options:v(e.doc,o,t).map(e=>({label:e,type:"type"})).concat(k(e.doc,n).map((e,t)=>({label:"/"+e,apply:"/"+e+l,type:"type",boost:99-t}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function A(e,t,n,r){let a=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:k(e.doc,t).map((e,t)=>({label:e,apply:e+a,type:"type",boost:99-t})),validFor:x}}let C=l.o$.parser.configure({top:"SingleExpression"}),O=[{tag:"script",attrs:e=>"text/typescript"==e.type||"ts"==e.lang,parser:l.sL.parser},{tag:"script",attrs:e=>"text/babel"==e.type||"text/jsx"==e.type,parser:l.W6.parser},{tag:"script",attrs:e=>"text/typescript-jsx"==e.type,parser:l.g4.parser},{tag:"script",attrs:e=>/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type),parser:C},{tag:"script",attrs:e=>!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),parser:l.o$.parser},{tag:"style",attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),parser:a.Yk.parser}],T=[{name:"style",parser:a.Yk.parser.configure({top:"Styles"})}].concat(b.map(e=>({name:e,parser:l.o$.parser}))),P=s.bj.define({name:"html",parser:r.K.configure({props:[s.Oh.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit,Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue();let t=null,n;for(let n=e.node;;){let e=n.lastChild;if(!e||"Element"!=e.name||e.to!=n.to)break;t=n=e}return t&&!((n=t.lastChild)&&("CloseTag"==n.name||"SelfClosingTag"==n.name))?e.lineIndent(t.from)+e.unit:null}}),s.b_.add({Element(e){let t=e.firstChild,n=e.lastChild;return t&&"OpenTag"==t.name?{from:t.to,to:"CloseTag"==n.name?n.from:e.to}:null}}),s.Q_.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),_=P.configure({wrap:(0,r.n)(O,T)});function L(e={}){let t="",n;!1===e.matchClosingTags&&(t="noMatch"),!0===e.selfClosingTags&&(t=(t?t+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(n=(0,r.n)((e.nestedLanguages||[]).concat(O),(e.nestedAttributes||[]).concat(T)));let o=n?P.configure({wrap:n,dialect:t}):t?_.configure({dialect:t}):_;return new s.Yy(o,[_.data.of({autocomplete:function(e){let{extraTags:t,extraGlobalAttributes:n}=e,r=n||t?new Schema(t,n):Schema.default;return e=>(function(e,t){let{state:n,pos:r}=t,a=(0,s.mv)(n).resolveInner(r,-1),l=a.resolve(r);for(let e=r,t;l==a&&(t=a.childBefore(e));){let n=t.lastChild;if(!n||!n.type.isError||n.from<n.to)break;l=a=t,e=n.from}if("TagName"==a.name)return a.parent&&/CloseTag$/.test(a.parent.name)?A(n,a,a.from,r):S(n,e,a,a.from,r);if("StartTag"==a.name||"IncompleteTag"==a.name)return S(n,e,a,r,r);if("StartCloseTag"==a.name||"IncompleteCloseTag"==a.name)return A(n,a,r,r);if("OpenTag"==a.name||"SelfClosingTag"==a.name||"AttributeName"==a.name){var o,i;let t,l,s;return o=a,i="AttributeName"==a.name?a.from:r,s=(l=(t=w(o))?e.tags[y(n.doc,t)]:null)&&l.attrs?Object.keys(l.attrs):[],{from:i,to:r,options:(l&&!1===l.globalAttrs?s:s.length?s.concat(e.globalAttrNames):e.globalAttrNames).map(e=>({label:e,type:"property"})),validFor:x}}{if("Is"==a.name||"AttributeValue"==a.name||"UnquotedAttributeValue"==a.name)return function(e,t,n,r,a){var l;let o=null==(l=n.parent)?void 0:l.getChild("AttributeName"),i=[],s;if(o){let l=e.sliceDoc(o.from,o.to),c=t.globalAttrs[l];if(!c){let r=w(n),a=r?t.tags[y(e.doc,r)]:null;c=(null==a?void 0:a.attrs)&&a.attrs[l]}if(c){let t=e.sliceDoc(r,a).toLowerCase(),n='"',l='"';for(let o of(/^['"]/.test(t)?(s='"'==t[0]?/^[^"]*$/:/^[^']*$/,n="",l=e.sliceDoc(a,a+1)==t[0]?"":t[0],t=t.slice(1),r++):s=/^[^\s<>='"]*$/,c))i.push({label:o,apply:n+o+l,type:"constant"})}}return{from:r,to:a,options:i,validFor:s}}(n,e,a,"Is"==a.name?r:a.from,r);if(!t.explicit||"Element"!=l.name&&"Text"!=l.name&&"Document"!=l.name)return null;var c=a;let o=[],i=0;for(let t of v(n.doc,c,e))o.push({label:"<"+t,type:"type"});for(let e of k(n.doc,c))o.push({label:"</"+e+">",type:"type",boost:99-i++});return{from:r,to:r,options:o,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}})(r,e)}(e)}),!1!==e.autoCloseTags?D:[],(0,l.Q2)().support,(0,a.AH)().support])}let $=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),D=o.Lz.inputHandler.of((e,t,n,r,a)=>{if(e.composing||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!_.isActiveAt(e.state,t,-1))return!1;let l=a(),{state:o}=l,c=o.changeByRange(e=>{var t,n,a;let l=o.doc.sliceString(e.from-1,e.to)==r,{head:c}=e,u=(0,s.mv)(o).resolveInner(c,-1),d;if(l&&">"==r&&"EndTag"==u.name){let r=u.parent;if((null==(n=null==(t=r.parent)?void 0:t.lastChild)?void 0:n.name)!="CloseTag"&&(d=y(o.doc,r.parent,c))&&!$.has(d)){let t=c+ +(">"===o.doc.sliceString(c,c+1));return{range:e,changes:{from:c,to:t,insert:`</${d}>`}}}}else if(l&&"/"==r&&"IncompleteCloseTag"==u.name){let e=u.parent;if(u.from==c-2&&(null==(a=e.lastChild)?void 0:a.name)!="CloseTag"&&(d=y(o.doc,e,c))&&!$.has(d)){let e=c+ +(">"===o.doc.sliceString(c,c+1)),t=`${d}>`;return{range:i.OF.cursor(c+t.length,-1),changes:{from:c,to:e,insert:t}}}}return{range:e}});return!c.changes.empty&&(e.dispatch([l,o.update(c,{userEvent:"input.complete",scrollIntoView:!0})]),!0)})},12582:function(e,t,n){n.d(t,{Q2:()=>T,W6:()=>x,g4:()=>S,o$:()=>w,sL:()=>k});var r=n(81819),a=n(30010),l=n(40865),o=n(44547),i=n(60292),s=n(64693);let c=[(0,i.Gw)("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),(0,i.Gw)("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),(0,i.Gw)("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),(0,i.Gw)("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),(0,i.Gw)("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),(0,i.Gw)("try {\n ${}\n} catch (${error}) {\n ${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),(0,i.Gw)("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),(0,i.Gw)("if (${}) {\n ${}\n} else {\n ${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),(0,i.Gw)("class ${name} {\n constructor(${params}) {\n ${}\n }\n}",{label:"class",detail:"definition",type:"keyword"}),(0,i.Gw)('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),(0,i.Gw)('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],u=c.concat([(0,i.Gw)("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),(0,i.Gw)("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),(0,i.Gw)("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),d=new s.RY,p=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function f(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}let m=["FunctionDeclaration"],h={FunctionDeclaration:f("function"),ClassDeclaration:f("class"),ClassExpression:()=>!0,EnumDeclaration:f("constant"),TypeAliasDeclaration:f("type"),NamespaceDeclaration:f("namespace"),VariableDefinition(e,t){e.matchContext(m)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null},g=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,b=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function y(e){let t=(0,a.mv)(e.state).resolveInner(e.pos,-1);if(b.indexOf(t.name)>-1)return null;let n="VariableName"==t.name||t.to-t.from<20&&g.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let n=t;n;n=n.parent)p.has(n.name)&&(r=r.concat(function e(t,n){let r=d.get(n);if(r)return r;let a=[],l=!0;function o(e,n){let r=t.sliceString(e.from,e.to);a.push({label:r,type:n})}return n.cursor(s.Qj.IncludeAnonymous).iterate(n=>{if(l)l=!1;else if(n.name){let e=h[n.name];if(e&&e(n,o)||p.has(n.name))return!1}else if(n.to-n.from>8192){for(let r of e(t,n.node))a.push(r);return!1}}),d.set(n,a),a}(e.state.doc,n)));return{options:r,from:n?t.from:e.pos,validFor:g}}let w=a.bj.define({name:"javascript",parser:r.K.configure({props:[a.Oh.add({IfStatement:(0,a.mz)({except:/^\s*({|else\b)/}),TryStatement:(0,a.mz)({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:a._Y,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:(0,a.Ay)({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":(0,a.mz)({except:/^\s*{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),a.b_.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":a.yd,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),v={test:e=>/^JSX/.test(e.name),facet:(0,a.p9)({commentTokens:{block:{open:"{/*",close:"*/}"}}})},k=w.configure({dialect:"ts"},"typescript"),x=w.configure({dialect:"jsx",props:[a.Q0.add(e=>e.isTop?[v]:void 0)]}),S=w.configure({dialect:"jsx ts",props:[a.Q0.add(e=>e.isTop?[v]:void 0)]},"typescript"),A=e=>({label:e,type:"keyword"}),C="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(A),O=C.concat(["declare","implements","private","protected","public"].map(A));function T(e={}){let t=e.jsx?e.typescript?S:x:e.typescript?k:w,n=e.typescript?u.concat(O):c.concat(C);return new a.Yy(t,[w.data.of({autocomplete:(0,i.Ar)(b,(0,i.et)(n))}),w.data.of({autocomplete:y}),e.jsx?L:[]])}function P(e,t,n=e.length){for(let r=null==t?void 0:t.firstChild;r;r=r.nextSibling)if("JSXIdentifier"==r.name||"JSXBuiltin"==r.name||"JSXNamespacedName"==r.name||"JSXMemberExpression"==r.name)return e.sliceString(r.from,Math.min(r.to,n));return""}let _="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),L=o.Lz.inputHandler.of((e,t,n,r,o)=>{if((_?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!w.isActiveAt(e.state,t,-1))return!1;let i=o(),{state:s}=i,c=s.changeByRange(e=>{var t;let{head:n}=e,o=(0,a.mv)(s).resolveInner(n-1,-1),i;if("JSXStartTag"==o.name&&(o=o.parent),s.doc.sliceString(n-1,n)!=r||"JSXAttributeValue"==o.name&&o.to>n);else if(">"==r&&"JSXFragmentTag"==o.name)return{range:e,changes:{from:n,insert:"</>"}};else if("/"==r&&"JSXStartCloseTag"==o.name){let e=o.parent,r=e.parent;if(r&&e.from==n-2&&((i=P(s.doc,r.firstChild,n))||(null==(t=r.firstChild)?void 0:t.name)=="JSXFragmentTag")){let e=`${i}>`;return{range:l.OF.cursor(n+e.length,-1),changes:{from:n,insert:e}}}}else if(">"==r){let t=function(e){for(;;){if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e;if("JSXEscape"==e.name||!e.parent)return null;e=e.parent}}(o);if(t&&"JSXOpenTag"==t.name&&!/^\/?>|^<\//.test(s.doc.sliceString(n,n+2))&&(i=P(s.doc,t,n)))return{range:e,changes:{from:n,insert:`</${i}>`}}}return{range:e}});return!c.changes.empty&&(e.dispatch([i,s.update(c,{userEvent:"input.complete",scrollIntoView:!0})]),!0)})},31298:function(e,t,n){n.d(t,{C:()=>c});var r=n(30010),a=n(9472),l=n(11852);let o={__proto__:null,anyref:34,dataref:34,eqref:34,externref:34,i31ref:34,funcref:34,i8:34,i16:34,i32:34,i64:34,f32:34,f64:34},i=l.U1.deserialize({version:14,states:"!^Q]QPOOOqQPO'#CbOOQO'#Cd'#CdOOQO'#Cl'#ClOOQO'#Ch'#ChQ]QPOOOOQO,58|,58|OxQPO,58|OOQO-E6f-E6fOOQO1G.h1G.h",stateData:"!P~O_OSPOSQOS~OTPOVROXROYROZROaQO~OSUO~P]OSXO~P]O",goto:"xaPPPPPPbPbPPPhPPPrXROPTVQTOQVPTWTVXSOPTV",nodeNames:"⚠ LineComment BlockComment Module ) ( App Identifier Type Keyword Number String",maxTerm:17,nodeProps:[["isolate",-3,1,2,11,""],["openedBy",4,"("],["closedBy",5,")"],["group",-6,6,7,8,9,10,11,"Expression"]],skippedNodes:[0,1,2],repeatNodeCount:1,tokenData:"0o~R^XY}YZ}]^}pq}rs!Stu#pxy'Uyz(e{|(j}!O(j!Q!R(s!R![*p!]!^.^#T#o.{~!SO_~~!VVOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j<%lO!S~!qOZ~~!tRO;'S!S;'S;=`!};=`O!S~#QWOr!Srs!ls#O!S#O#P!q#P;'S!S;'S;=`#j;=`<%l!S<%lO!S~#mP;=`<%l!S~#siqr%bst%btu%buv%bvw%bwx%bz{%b{|%b}!O%b!O!P%b!P!Q%b!Q![%b![!]%b!^!_%b!_!`%b!`!a%b!a!b%b!b!c%b!c!}%b#Q#R%b#R#S%b#S#T%b#T#o%b#p#q%b#r#s%b~%giV~qr%bst%btu%buv%bvw%bwx%bz{%b{|%b}!O%b!O!P%b!P!Q%b!Q![%b![!]%b!^!_%b!_!`%b!`!a%b!a!b%b!b!c%b!c!}%b#Q#R%b#R#S%b#S#T%b#T#o%b#p#q%b#r#s%b~'ZPT~!]!^'^~'aTO!]'^!]!^'p!^;'S'^;'S;=`(_<%lO'^~'sVOy'^yz(Yz!]'^!]!^'p!^;'S'^;'S;=`(_<%lO'^~(_OQ~~(bP;=`<%l'^~(jOS~~(mQ!Q!R(s!R![*p~(xUY~!O!P)[!Q![*p!g!h){#R#S+U#X#Y){#l#m+[~)aRY~!Q![)j!g!h){#X#Y){~)oSY~!Q![)j!g!h){#R#S*j#X#Y){~*OR{|*X}!O*X!Q![*_~*[P!Q![*_~*dQY~!Q![*_#R#S*X~*mP!Q![)j~*uTY~!O!P)[!Q![*p!g!h){#R#S+U#X#Y){~+XP!Q![*p~+_R!Q![+h!c!i+h#T#Z+h~+mVY~!O!P,S!Q![+h!c!i+h!r!s-P#R#S+[#T#Z+h#d#e-P~,XTY~!Q![,h!c!i,h!r!s-P#T#Z,h#d#e-P~,mUY~!Q![,h!c!i,h!r!s-P#R#S.Q#T#Z,h#d#e-P~-ST{|-c}!O-c!Q![-o!c!i-o#T#Z-o~-fR!Q![-o!c!i-o#T#Z-o~-tSY~!Q![-o!c!i-o#R#S-c#T#Z-o~.TR!Q![,h!c!i,h#T#Z,h~.aP!]!^.d~.iSP~OY.dZ;'S.d;'S;=`.u<%lO.d~.xP;=`<%l.d~/QiX~qr.{st.{tu.{uv.{vw.{wx.{z{.{{|.{}!O.{!O!P.{!P!Q.{!Q![.{![!].{!^!_.{!_!`.{!`!a.{!a!b.{!b!c.{!c!}.{#Q#R.{#R#S.{#S#T.{#T#o.{#p#q.{#r#s.{",tokenizers:[0],topRules:{Module:[0,3]},specialized:[{term:9,get:e=>o[e]||-1}],tokenPrec:0}),s=r.bj.define({name:"wast",parser:i.configure({props:[r.Oh.add({App:(0,r.Ay)({closing:")",align:!1})}),r.b_.add({App:r.yd,BlockComment:e=>({from:e.from+2,to:e.to-2})}),(0,a.pn)({Keyword:a._A.keyword,Type:a._A.typeName,Number:a._A.number,String:a._A.string,Identifier:a._A.variableName,LineComment:a._A.lineComment,BlockComment:a._A.blockComment,"( )":a._A.paren})]}),languageData:{commentTokens:{line:";;",block:{open:"(;",close:";)"}},closeBrackets:{brackets:["(",'"']}}});function c(){return new r.Yy(s)}},30010:function(e,t,n){n.d(t,{Ay:()=>P,EI:()=>S,KB:()=>IndentContext,Oh:()=>C,Q0:()=>d,Q_:()=>ea,SG:()=>er,WD:()=>D,Xt:()=>k,Yy:()=>LanguageSupport,Zt:()=>U,_Y:()=>L,_v:()=>A,b_:()=>I,bj:()=>LRLanguage,cr:()=>HighlightStyle,jU:()=>ei,mv:()=>f,mz:()=>$,p9:()=>u,tp:()=>x,y9:()=>J,yd:()=>N});var r,a=n(64693),l=n(40865),o=n(44547),i=n(9472),s=n(76977);let c=new a.uY;function u(e){return l.sj.define({combine:e?t=>t.concat(e):void 0})}let d=new a.uY;let Language=class Language{constructor(e,t,n=[],r=""){this.data=e,this.name=r,l.$t.prototype.hasOwnProperty("tree")||Object.defineProperty(l.$t.prototype,"tree",{get(){return f(this)}}),this.parser=t,this.extension=[w.of(this),l.$t.languageData.of((e,t,n)=>{let r=p(e,t,n),a=r.type.prop(c);if(!a)return[];let l=e.facet(a),o=r.type.prop(d);if(o){let a=r.resolve(t-r.from,n);for(let t of o)if(t.test(a,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(l)}}return l})].concat(n)}isActiveAt(e,t,n=-1){return p(e,t,n).type.prop(c)==this.data}findRegions(e){let t=e.facet(w);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{if(e.prop(c)==this.data)return void n.push({from:t,to:t+e.length});let l=e.prop(a.uY.mounted);if(l){if(l.tree.prop(c)==this.data){if(l.overlay)for(let e of l.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}else if(l.overlay){let e=n.length;if(r(l.tree,l.overlay[0].from+t),n.length>e)return}}for(let n=0;n<e.children.length;n++){let l=e.children[n];l instanceof a.PH&&r(l,e.positions[n]+t)}};return r(f(e),0),n}get allowsNesting(){return!0}};function p(e,t,n){let r=e.facet(w),l=f(e).topNode;if(!r||r.allowsNesting)for(let e=l;e;e=e.enter(t,n,a.Qj.ExcludeBuffers))e.type.isTop&&(l=e);return l}Language.setState=l.Pe.define();let LRLanguage=class LRLanguage extends Language{constructor(e,t,n){super(e,t,[],n),this.parser=t}static define(e){let t=u(e.languageData);return new LRLanguage(t,e.parser.configure({props:[c.add(e=>e.isTop?t:void 0)]}),e.name)}configure(e,t){return new LRLanguage(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}};function f(e){let t=e.field(Language.state,!1);return t?t.tree:a.PH.empty}let DocInput=class DocInput{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}};let m=null;let ParseContext=class ParseContext{constructor(e,t,n=[],r,a,l,o,i){this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=a,this.viewport=l,this.skipped=o,this.scheduleOn=i,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new ParseContext(e,t,[],a.PH.empty,0,n,[],null)}startParse(){return this.parser.startParse(new DocInput(this.state.doc),this.fragments)}work(e,t){return(null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=a.PH.empty&&this.isDone(null!=t?t:this.state.doc.length))?(this.takeTree(),!0):this.withContext(()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let r=this.parse.advance();if(r){if(this.fragments=this.withoutTempSkipped(a.rr.addTree(r,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!=(n=this.parse.stoppedAt)?n:this.state.doc.length,this.tree=r,this.parse=null,!(this.treeLen<(null!=t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(a.rr.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=m;m=this;try{return e()}finally{m=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=h(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:l,viewport:o,skipped:i}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges((e,n,r,a)=>t.push({fromA:e,toA:n,fromB:r,toB:a})),n=a.rr.applyChanges(n,t),r=a.PH.empty,l=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length)for(let t of(i=[],this.skipped)){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);n<r&&i.push({from:n,to:r})}}return new ParseContext(this.parser,t,n,r,l,o,i,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let t=0;t<this.skipped.length;t++){let{from:n,to:r}=this.skipped[t];n<e.to&&r>e.from&&(this.fragments=h(this.fragments,n,r),this.skipped.splice(t--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends a.iX{createParse(t,n,r){let l=r[0].from,o=r[r.length-1].to;return{parsedPos:l,advance(){let t=m;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=o,new a.PH(a.Z6.none,[],[],o-l)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return m}};function h(e,t,n){return a.rr.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}let LanguageState=class LanguageState{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new LanguageState(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=ParseContext.create(e.facet(w).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new LanguageState(n)}};Language.state=l.sU.define({create:LanguageState.init,update(e,t){for(let e of t.effects)if(e.is(Language.setState))return e.value;return t.startState.facet(w)!=t.state.facet(w)?LanguageState.init(t.state):e.apply(t)}});let g=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(g=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});let b="undefined"!=typeof navigator&&(null==(r=navigator.scheduling)?void 0:r.isInputPending)?()=>navigator.scheduling.isInputPending():null,y=o.Z9.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Language.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Language.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=g(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,a=n.field(Language.state);if(a.tree==a.context.tree&&a.context.isDone(r+1e5))return;let l=Date.now()+Math.min(this.chunkBudget,100,e&&!b?Math.max(25,e.timeRemaining()-5):1e9),o=a.context.treeLen<r&&n.doc.length>r+1e3,i=a.context.work(()=>b&&b()||Date.now()>l,r+1e5*!o);this.chunkBudget-=Date.now()-t,(i||this.chunkBudget<=0)&&(a.context.takeTree(),this.view.dispatch({effects:Language.setState.of(new LanguageState(a.context))})),this.chunkBudget>0&&!(i&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(a.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(e=>(0,o.c_)(this.view.state,e)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),w=l.sj.define({combine:e=>e.length?e[0]:null,enables:e=>[Language.state,y,o.Lz.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});let LanguageSupport=class LanguageSupport{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}};let v=l.sj.define(),k=l.sj.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function x(e){let t=e.facet(k);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function S(e,t){let n="",r=e.tabSize,a=e.facet(k)[0];if(" "==a){for(;t>=r;)n+=" ",t-=r;a=" "}for(let e=0;e<t;e++)n+=a;return n}function A(e,t){for(let n of(e instanceof l.$t&&(e=new IndentContext(e)),e.state.facet(v))){let r=n(e,t);if(void 0!==r)return r}let n=f(e.state);return n.length>=t?function(e,t,n){let r=t.resolveStack(n),a=t.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(a!=r.node){let e=[];for(let t=a;t&&!(t.from<r.node.from||t.to>r.node.to||t.from==r.node.from&&t.type==r.node.type);t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)r={node:e[t],next:r}}return O(r,e,n)}(e,n,t):null}let IndentContext=class IndentContext{constructor(e,t={}){this.state=e,this.options=t,this.unit=x(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:a}=this.options;if(null!=r&&r>=n.from&&r<=n.to)if(a&&r==e)return{text:"",from:e};else if(t<0?r<e:r<=e)return{text:n.text.slice(r-n.from),from:r};else return{text:n.text.slice(0,r-n.from),from:n.from};return n}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:r}=this.lineAt(e,t);return n.slice(e-r,Math.min(n.length,e+100-r))}column(e,t=1){let{text:n,from:r}=this.lineAt(e,t),a=this.countColumn(n,e-r),l=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return l>-1&&(a+=l-this.countColumn(n,n.search(/\S|$/))),a}countColumn(e,t=e.length){return(0,l.y$)(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:r}=this.lineAt(e,t),a=this.options.overrideIndentation;if(a){let e=a(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}};let C=new a.uY;function O(e,t,n){for(let r=e;r;r=r.next){let e=function(e){let t=e.type.prop(C);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(a.uY.closedBy))){let t=e.lastChild,n=t&&r.indexOf(t.name)>-1;return e=>_(e,!0,1,void 0,n&&!(e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak)?t.from:void 0)}return null==e.parent?T:null}(r.node);if(e)return e(TreeIndentContext.create(t,n,r))}return 0}function T(){return 0}let TreeIndentContext=class TreeIndentContext extends IndentContext{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new TreeIndentContext(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(function(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return O(this.context.next,this.base,this.pos)}};function P({closing:e,align:t=!0,units:n=1}){return r=>_(r,t,n,e)}function _(e,t,n,r,a){let l=e.textAfter,o=l.match(/^\s*/)[0].length,i=r&&l.slice(o,o+r.length)==r||a==e.pos+o,s=t?function(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let a=e.options.simulateBreak,l=e.state.doc.lineAt(n.from),o=null==a||a<=l.from?l.to:Math.min(l.to,a);for(let e=n.to;;){let a=t.childAfter(e);if(!a||a==r)return null;if(!a.type.isSkipped){if(a.from>=o)return null;let e=/^ */.exec(l.text.slice(n.to-l.from))[0].length;return{from:n.from,to:n.to+e}}e=a.to}}(e):null;return s?i?e.column(s.from):e.column(s.to):e.baseIndent+(i?0:e.unit*n)}let L=e=>e.baseIndent;function $({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}function D(){return l.$t.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,a=n.lineAt(r);if(r>a.from+200)return e;let l=n.sliceString(a.from,r);if(!t.some(e=>e.test(l)))return e;let{state:o}=e,i=-1,s=[];for(let{head:e}of o.selection.ranges){let t=o.doc.lineAt(e);if(t.from==i)continue;i=t.from;let n=A(o,t.from);if(null==n)continue;let r=/^\s*/.exec(t.text)[0],a=S(o,n);r!=a&&s.push({from:t.from,to:t.from+r.length,insert:a})}return s.length?[e,{changes:s,sequential:!0}]:e})}let I=new a.uY;function N(e){let t=e.firstChild,n=e.lastChild;return t&&t.to<n.from?{from:t.to,to:n.type.isError?e.to:n.from}:null}function R(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}let z=l.Pe.define({map:R}),B=l.Pe.define({map:R}),Q=l.sU.define({create:()=>o.NZ.none,update(e,t){for(let n of(t.isUserEvent("delete")&&t.changes.iterChangedRanges((t,n)=>e=j(e,t,n)),e=e.map(t.changes),t.effects))if(n.is(z)&&!function(e,t,n){let r=!1;return e.between(t,t,(e,a)=>{e==t&&a==n&&(r=!0)}),r}(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(X),a=r?o.NZ.replace({widget:new PreparedFoldWidget(r(t.state,n.value))}):Y;e=e.update({add:[a.range(n.value.from,n.value.to)]})}else n.is(B)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));return t.selection&&(e=j(e,t.selection.main.head)),e},provide:e=>o.Lz.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,(e,t)=>{n.push(e,t)}),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n<e.length;){let r=e[n++],a=e[n++];if("number"!=typeof r||"number"!=typeof a)throw RangeError("Invalid JSON for fold state");t.push(Y.range(r,a))}return o.NZ.set(t,!0)}});function j(e,t,n=t){let r=!1;return e.between(t,n,(e,a)=>{e<n&&a>t&&(r=!0)}),r?e.update({filterFrom:t,filterTo:n,filter:(e,r)=>e>=n||r<=t}):e}let q={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},X=l.sj.define({combine:e=>(0,l.QR)(e,q)});function F(e,t){let{state:n}=e,r=n.facet(X),a=t=>{var n,r,a,l;let o,i=e.lineBlockAt(e.posAtDOM(t.target)),s=(n=e.state,r=i.from,a=i.to,o=null,null==(l=n.field(Q,!1))||l.between(r,a,(e,t)=>{(!o||o.from>e)&&(o={from:e,to:t})}),o);s&&e.dispatch({effects:B.of(s)}),t.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,a,t);let l=document.createElement("span");return l.textContent=r.placeholderText,l.setAttribute("aria-label",n.phrase("folded code")),l.title=n.phrase("unfold"),l.className="cm-foldPlaceholder",l.onclick=a,l}let Y=o.NZ.replace({widget:new class extends o.xO{toDOM(e){return F(e,null)}}});let PreparedFoldWidget=class PreparedFoldWidget extends o.xO{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return F(e,this.value)}};o.wJ;let HighlightStyle=class HighlightStyle{constructor(e,t){let n;function r(e){let t=s.G.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e;let a="string"==typeof t.all?t.all:t.all?r(t.all):void 0,l=t.scope;this.scope=l instanceof Language?e=>e.prop(c)==l.data:l?e=>e==l:void 0,this.style=(0,i.az)(e.map(e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))})),{all:a}).style,this.module=n?new s.G(n):null,this.themeType=t.themeType}static define(e,t){return new HighlightStyle(e,t||{})}};let E=l.sj.define(),Z=l.sj.define({combine:e=>e.length?[e[0]]:null});function M(e){let t=e.facet(E);return t.length?t:e.facet(Z)}function J(e,t){let n=[V],r;return e instanceof HighlightStyle&&(e.module&&n.push(o.Lz.styleModule.of(e.module)),r=e.themeType),(null==t?void 0:t.fallback)?n.push(Z.of(e)):r?n.push(E.computeN([o.Lz.darkTheme],t=>t.facet(o.Lz.darkTheme)==("dark"==r)?[e]:[])):n.push(E.of(e)),n}let TreeHighlighter=class TreeHighlighter{constructor(e){this.markCache=Object.create(null),this.tree=f(e.state),this.decorations=this.buildDeco(e,M(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=f(e.state),n=M(e.state),r=n!=M(e.startState),{viewport:a}=e.view,l=e.changes.mapPos(this.decoratedTo,1);t.length<a.to&&!r&&t.type==this.tree.type&&l>=a.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=l):(t!=this.tree||e.viewportChanged||r)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=a.to)}buildDeco(e,t){if(!t||!this.tree.length)return o.NZ.none;let n=new l.vB;for(let{from:r,to:a}of e.visibleRanges)(0,i.DM)(this.tree,t,(e,t,r)=>{n.add(e,t,this.markCache[r]||(this.markCache[r]=o.NZ.mark({class:r})))},r,a);return n.finish()}};let V=l.Nb.high(o.Z9.fromClass(TreeHighlighter,{decorations:e=>e.decorations})),U=HighlightStyle.define([{tag:i._A.meta,color:"#404740"},{tag:i._A.link,textDecoration:"underline"},{tag:i._A.heading,textDecoration:"underline",fontWeight:"bold"},{tag:i._A.emphasis,fontStyle:"italic"},{tag:i._A.strong,fontWeight:"bold"},{tag:i._A.strikethrough,textDecoration:"line-through"},{tag:i._A.keyword,color:"#708"},{tag:[i._A.atom,i._A.bool,i._A.url,i._A.contentSeparator,i._A.labelName],color:"#219"},{tag:[i._A.literal,i._A.inserted],color:"#164"},{tag:[i._A.string,i._A.deleted],color:"#a11"},{tag:[i._A.regexp,i._A.escape,i._A.special(i._A.string)],color:"#e40"},{tag:i._A.definition(i._A.variableName),color:"#00f"},{tag:i._A.local(i._A.variableName),color:"#30a"},{tag:[i._A.typeName,i._A.namespace],color:"#085"},{tag:i._A.className,color:"#167"},{tag:[i._A.special(i._A.variableName),i._A.macroName],color:"#256"},{tag:i._A.definition(i._A.propertyName),color:"#00c"},{tag:i._A.comment,color:"#940"},{tag:i._A.invalid,color:"#f00"}]),H=o.Lz.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),G="()[]{}",W=l.sj.define({combine:e=>(0,l.QR)(e,{afterCursor:!0,brackets:G,maxScanDistance:1e4,renderMatch:et})}),K=o.NZ.mark({class:"cm-matchingBracket"}),ee=o.NZ.mark({class:"cm-nonmatchingBracket"});function et(e){let t=[],n=e.matched?K:ee;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}let en=[l.sU.define({create:()=>o.NZ.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(W);for(let e of t.state.selection.ranges){if(!e.empty)continue;let a=ei(t.state,e.head,-1,r)||e.head>0&&ei(t.state,e.head-1,1,r)||r.afterCursor&&(ei(t.state,e.head,1,r)||e.head<t.state.doc.length&&ei(t.state,e.head+1,-1,r));a&&(n=n.concat(r.renderMatch(a,t.state)))}return o.NZ.set(n,!0)},provide:e=>o.Lz.decorations.from(e)}),H];function er(e={}){return[W.of(e),en]}let ea=new a.uY;function el(e,t,n){let r=e.prop(t<0?a.uY.openedBy:a.uY.closedBy);if(r)return r;if(1==e.name.length){let r=n.indexOf(e.name);if(r>-1&&r%2==+(t<0))return[n[r+t]]}return null}function eo(e){let t=e.type.prop(ea);return t?t(e.node):e}function ei(e,t,n,r={}){let a=r.maxScanDistance||1e4,l=r.brackets||G,o=f(e),i=o.resolveInner(t,n);for(let e=i;e;e=e.parent){let r=el(e.type,n,l);if(r&&e.from<e.to){let a=eo(e);if(a&&(n>0?t>=a.from&&t<a.to:t>a.from&&t<=a.to))return function(e,t,n,r,a,l,o){let i=r.parent,s={from:a.from,to:a.to},c=0,u=null==i?void 0:i.cursor();if(u&&(n<0?u.childBefore(r.from):u.childAfter(r.to)))do if(n<0?u.to<=r.from:u.from>=r.to){if(0==c&&l.indexOf(u.type.name)>-1&&u.from<u.to){let e=eo(u);return{start:s,end:e?{from:e.from,to:e.to}:void 0,matched:!0}}else if(el(u.type,n,o))c++;else if(el(u.type,-n,o)){if(0==c){let e=eo(u);return{start:s,end:e&&e.from<e.to?{from:e.from,to:e.to}:void 0,matched:!1}}c--}}while(n<0?u.prevSibling():u.nextSibling());return{start:s,matched:!1}}(0,0,n,e,a,r,l)}}return function(e,t,n,r,a,l,o){let i=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),s=o.indexOf(i);if(s<0||s%2==0!=n>0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},u=e.doc.iterRange(t,n>0?e.doc.length:0),d=0;for(let e=0;!u.next().done&&e<=l;){let l=u.value;n<0&&(e+=l.length);let i=t+e*n;for(let e=n>0?0:l.length-1,t=n>0?l.length:-1;e!=t;e+=n){let t=o.indexOf(l[e]);if(!(t<0)&&r.resolveInner(i+e,1).type==a)if(t%2==0==n>0)d++;else{if(1==d)return{start:c,end:{from:i+e,to:i+e+1},matched:t>>1==s>>1};d--}}n>0&&(e+=l.length)}return u.done?{start:c,matched:!1}:null}(e,t,n,o,i.type,a,l)}let es=Object.create(null),ec=[a.Z6.none],eu=[],ed=Object.create(null),ep=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])ep[e]=function(e,t){let n=[];for(let r of t.split(" ")){let t=[];for(let n of r.split(".")){let r=e[n]||i._A[n];r?"function"==typeof r?t.length?t=t.map(r):ef(n,`Modifier ${n} used at start of tag`):t.length?ef(n,`Tag ${n} used as modifier`):t=Array.isArray(r)?r:[r]:ef(n,`Unknown highlighting tag ${n}`)}for(let e of t)n.push(e)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),l=r+" "+n.map(e=>e.id),o=ed[l];if(o)return o.id;let s=ed[l]=a.Z6.define({id:ec.length,name:r,props:[(0,i.pn)({[r]:n})]});return ec.push(s),s.id}(es,t);function ef(e,t){eu.indexOf(e)>-1||(eu.push(e),console.warn(t))}o.OP.RTL,o.OP.LTR},86787:function(e,t,n){n.d(t,{$w:()=>m});var r=n(44547),a=n(40865),l=n(67980);let SelectedDiagnostic=class SelectedDiagnostic{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}};let LintState=class LintState{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let l=n.facet(h).markerFilter;l&&(e=l(e,n));let i=e.slice().sort((e,t)=>e.from-t.from||e.to-t.to),s=new a.vB,c=[],u=0;for(let e=0;;){let t,a,l=e==i.length?null:i[e];if(!l&&!c.length)break;for(c.length?(t=u,a=c.reduce((e,t)=>Math.min(e,t.to),l&&l.from>t?l.from:1e8)):(t=l.from,a=l.to,c.push(l),e++);e<i.length;){let n=i[e];if(n.from==t&&(n.to>n.from||n.to==t))c.push(n),e++,a=Math.min(n.to,a);else{a=Math.min(n.from,a);break}}let o=function(e){let t="hint",n=1;for(let a of e){var r;let e="error"==(r=a.severity)?4:"warning"==r?3:"info"==r?2:1;e>n&&(n=e,t=a.severity)}return t}(c);if(c.some(e=>e.from==e.to||e.from==e.to-1&&n.doc.lineAt(e.from).to==e.from))s.add(t,t,r.NZ.widget({widget:new DiagnosticWidget(o),diagnostics:c.slice()}));else{let e=c.reduce((e,t)=>t.markClass?e+" "+t.markClass:e,"");s.add(t,a,r.NZ.mark({class:"cm-lintRange cm-lintRange-"+o+e,diagnostics:c.slice(),inclusiveEnd:c.some(e=>e.to>a)}))}u=a;for(let e=0;e<c.length;e++)c[e].to<=u&&c.splice(e--,1)}let d=s.finish();return new LintState(d,t,o(d))}};function o(e,t=null,n=0){let r=null;return e.between(n,1e9,(e,n,{spec:a})=>{if(!(t&&0>a.diagnostics.indexOf(t)))if(r){if(0>a.diagnostics.indexOf(r.diagnostic))return!1;r=new SelectedDiagnostic(r.from,n,r.diagnostic)}else r=new SelectedDiagnostic(e,n,t||a.diagnostics[0])}),r}function i(e,t){let n=t.pos,r=t.end||n,a=e.state.facet(h).hideOn(e,n,r);if(null!=a)return a;let l=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(e=>e.is(s))||e.changes.touchesRange(l.from,Math.max(l.to,r)))}let s=a.Pe.define(),c=a.Pe.define(),u=a.Pe.define(),d=a.sU.define({create:()=>new LintState(r.NZ.none,null,null),update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,a=e.panel;if(e.selected){let a=t.changes.mapPos(e.selected.from,1);r=o(n,e.selected.diagnostic,a)||o(n,null,a)}!n.size&&a&&t.state.facet(h).autoPanel&&(a=null),e=new LintState(n,a,r)}for(let n of t.effects)if(n.is(s)){let r=t.state.facet(h).autoPanel?n.value.length?LintPanel.open:null:e.panel;e=LintState.init(n.value,r,t.state)}else n.is(c)?e=new LintState(e.diagnostics,n.value?LintPanel.open:null,e.selected):n.is(u)&&(e=new LintState(e.diagnostics,e.panel,n.value));return e},provide:e=>[r.S7.from(e,e=>e.panel),r.Lz.decorations.from(e,e=>e.diagnostics)]}),p=r.NZ.mark({class:"cm-lintRange cm-lintRange-active"}),f=e=>{let t=e.state.field(d,!1);return!!t&&!!t.panel&&(e.dispatch({effects:c.of(!1)}),!0)},m=[{key:"Mod-Shift-m",run:e=>{var t,n;let l=e.state.field(d,!1);l&&l.panel||e.dispatch({effects:(t=e.state,n=[c.of(!0)],t.field(d,!1)?n:n.concat(a.Pe.appendConfig.of(k)))});let o=(0,r.ld)(e,LintPanel.open);return o&&o.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(d,!1);if(!t)return!1;let n=e.state.selection.main,r=t.diagnostics.iter(n.to+1);return(!!r.value||!!(r=t.diagnostics.iter(0)).value&&(r.from!=n.from||r.to!=n.to))&&(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)}}],h=a.sj.define({combine:e=>Object.assign({sources:e.map(e=>e.source).filter(e=>null!=e)},(0,a.QR)(e.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t}))});function g(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;e<n.length;e++){let r=n[e];if(/[a-zA-Z]/.test(r)&&!t.some(e=>e.toLowerCase()==r.toLowerCase())){t.push(r);continue e}}t.push("")}return t}function b(e,t,n){var r;let a=n?g(t.actions):[];return(0,l.A)("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},(0,l.A)("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),null==(r=t.actions)?void 0:r.map((n,r)=>{let i=!1,s=r=>{if(r.preventDefault(),i)return;i=!0;let a=o(e.state.field(d).diagnostics,t);a&&n.apply(e,a.from,a.to)},{name:c}=n,u=a[r]?c.indexOf(a[r]):-1,p=u<0?c:[c.slice(0,u),(0,l.A)("u",c.slice(u,u+1)),c.slice(u+1)];return(0,l.A)("button",{type:"button",class:"cm-diagnosticAction",onclick:s,onmousedown:s,"aria-label":` Action: ${c}${u<0?"":` (access key "${a[r]})"`}.`},p)}),t.source&&(0,l.A)("div",{class:"cm-diagnosticSource"},t.source))}let DiagnosticWidget=class DiagnosticWidget extends r.xO{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return(0,l.A)("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}};let PanelItem=class PanelItem{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(0xffffffff*Math.random()).toString(16),this.dom=b(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}};let LintPanel=class LintPanel{constructor(e){this.view=e,this.items=[];let t=t=>{if(27==t.keyCode)f(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65)||!(t.keyCode<=90)||!(this.selectedIndex>=0))return;let{diagnostic:n}=this.items[this.selectedIndex],r=g(n.actions);for(let a=0;a<r.length;a++)if(r[a].toUpperCase().charCodeAt(0)==t.keyCode){let t=o(this.view.state.field(d).diagnostics,n);t&&n.actions[a].apply(e,t.from,t.to)}}t.preventDefault()},n=e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)};this.list=(0,l.A)("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t,onclick:n}),this.dom=(0,l.A)("div",{class:"cm-panel-lint"},this.list,(0,l.A)("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>f(this.view)},"\xd7")),this.update()}get selectedIndex(){let e=this.view.state.field(d).selected;if(!e)return -1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return -1}update(){let{diagnostics:e,selected:t}=this.view.state.field(d),n=0,r=!1,a=null,l=new Set;for(e.between(0,this.view.state.doc.length,(e,o,{spec:i})=>{for(let e of i.diagnostics){if(l.has(e))continue;l.add(e);let o=-1,i;for(let t=n;t<this.items.length;t++)if(this.items[t].diagnostic==e){o=t;break}o<0?(i=new PanelItem(this.view,e),this.items.splice(n,0,i),r=!0):(i=this.items[o],o>n&&(this.items.splice(n,o-n),r=!0)),t&&i.diagnostic==t.diagnostic?i.dom.hasAttribute("aria-selected")||(i.dom.setAttribute("aria-selected","true"),a=i):i.dom.hasAttribute("aria-selected")&&i.dom.removeAttribute("aria-selected"),n++}});n<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0);)r=!0,this.items.pop();0==this.items.length&&(this.items.push(new PanelItem(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),r=!0),a?(this.list.setAttribute("aria-activedescendant",a.id),this.view.requestMeasure({key:this,read:()=>({sel:a.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let n=t.height/this.list.offsetHeight;e.top<t.top?this.list.scrollTop-=(t.top-e.top)/n:e.bottom>t.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=o(this.view.state.field(d).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:u.of(t)})}static open(e){return new LintPanel(e)}};function y(e){return function(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}let w=r.Lz.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:y("#d11")},".cm-lintRange-warning":{backgroundImage:y("orange")},".cm-lintRange-info":{backgroundImage:y("#999")},".cm-lintRange-hint":{backgroundImage:y("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});r.wJ;let v=a.Pe.define(),k=[d,r.Lz.decorations.compute([d],e=>{let{selected:t,panel:n}=e.field(d);return t&&n&&t.from!=t.to?r.NZ.set([p.range(t.from,t.to)]):r.NZ.none}),(0,r.Ux)(function(e,t,n){let{diagnostics:r}=e.state.field(d),a,o=-1,i=-1;r.between(t-(n<0),t+ +(n>0),(e,r,{spec:l})=>{if(t>=e&&t<=r&&(e==r||(t>e||n>0)&&(t<r||n<0)))return a=l.diagnostics,o=e,i=r,!1});let s=e.state.facet(h).tooltipFilter;return(a&&s&&(a=s(a,e.state)),a)?{pos:o,end:i,above:e.state.doc.lineAt(o).to<i,create:()=>{var t,n;return{dom:(t=e,n=a,(0,l.A)("ul",{class:"cm-tooltip-lint"},n.map(e=>b(t,e,!1))))}}}:null},{hideOn:i}),w]}};
|
|
2
|
+
//# sourceMappingURL=9804.307d2bd47ea925e6.js.map
|