PageSourceSearch

https://eyefortin-drops-zqfgbmh.gamma.site/_next/static/chunks/4100.8876ebda4305b618.js

js eyefortin-drops-zqfgbmh.gamma.site collected 2026-10-03 04:10:22 UTC 32,235 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4100],{64100:function(e,t,n){n.d(t,{B1:function(){return ex},GA:function(){return em},Gn:function(){return eo},Mb:function(){return a},eC:function(){return c},vQ:function(){return ec},ys:function(){return ey}});var o=n(1727),i=n(95885),s=n(77120);class l{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=(0,s.qz)(this.state).resolveInner(this.pos,-1);for(;t&&0>e.indexOf(t.name);)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),o=t.text.slice(n-t.from,this.pos-t.from),i=o.search(f(e,!1));return i<0?null:{from:n+i,to:this.pos,text:o.slice(i)}}get aborted(){return null==this.abortListeners}addEventListener(e,t){"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}}function r(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function a(e){let t=e.map(e=>"string"==typeof e?{label:e}:e),[n,o]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:o}of e){t[o[0]]=!0;for(let e=1;e<o.length;e++)n[o[e]]=!0}let o=r(t)+r(n)+"*$";return[RegExp("^"+o),new RegExp(o)]}(t);return e=>{let i=e.matchBefore(o);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:n}:null}}function c(e,t){return n=>{for(let t=(0,s.qz)(n.state).resolveInner(n.pos,-1);t;t=t.parent){if(e.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return t(n)}}class h{constructor(e,t,n,o){this.completion=e,this.source=t,this.match=n,this.score=o}}function p(e){return e.selection.main.from}function f(e,t){var n;let{source:o}=e,i=t&&"^"!=o[0],s="$"!=o[o.length-1];return i||s?RegExp(`${i?"^":""}(?:${o})${s?"$":""}`,null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}let u=o.q6.define(),d=new WeakMap;function m(e){if(!Array.isArray(e))return e;let t=d.get(e);return t||d.set(e,t=a(e)),t}let g=o.Py.define(),v=o.Py.define();class b{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[];for(let t=0;t<e.length;){let n=(0,o.gm)(e,t),i=(0,o.nZ)(n);this.chars.push(n);let s=e.slice(t,t+i),l=s.toUpperCase();this.folded.push((0,o.gm)(l==s?s.toLowerCase():l,0)),t+=i}this.astral=e.length!=this.chars.length}match(e){if(0==this.pattern.length)return[-100];if(e.length<this.pattern.length)return null;let{chars:t,folded:n,any:i,precise:s,byWord:l}=this;if(1==t.length){let i=(0,o.gm)(e,0),s=(0,o.nZ)(i),l=s==e.length?0:-100;if(i==t[0]);else{if(i!=n[0])return null;l+=-200}return[l,0,s]}let r=e.indexOf(this.pattern);if(0==r)return[e.length==this.pattern.length?0:-100,0,this.pattern.length];let a=t.length,c=0;if(r<0){for(let s=0,l=Math.min(e.length,200);s<l&&c<a;){let l=(0,o.gm)(e,s);(l==t[c]||l==n[c])&&(i[c++]=s),s+=(0,o.nZ)(l)}if(c<a)return null}let h=0,p=0,f=!1,u=0,d=-1,m=-1,g=/[a-z]/.test(e),v=!0;for(let i=0,c=Math.min(e.length,200),b=0;i<c&&p<a;){let c=(0,o.gm)(e,i);r<0&&(h<a&&c==t[h]&&(s[h++]=i),u<a&&(c==t[u]||c==n[u]?(0==u&&(d=i),m=i+1,u++):u=0));let w,y=c<255?c>=48&&c<=57||c>=97&&c<=122?2:c>=65&&c<=90?1:0:(w=(0,o.bg)(c))!=w.toLowerCase()?1:w!=w.toUpperCase()?2:0;(!i||1==y&&g||0==b&&0!=y)&&(t[p]==c||n[p]==c&&(f=!0)?l[p++]=i:l.length&&(v=!1)),b=y,i+=(0,o.nZ)(c)}return p==a&&0==l[0]&&v?this.result(-100+(f?-200:0),l,e):u==a&&0==d?[-200-e.length+(m==e.length?0:-100),0,m]:r>-1?[-700-e.length,r,r+this.pattern.length]:u==a?[-900-e.length,d,m]:p==a?this.result(-100+(f?-200:0)+-700+(v?0:-1100),l,e):2==t.length?null:this.result((i[0]?-700:0)+-200+-1100,i,e)}result(e,t,n){let i=[e-n.length],s=1;for(let e of t){let t=e+(this.astral?(0,o.nZ)((0,o.gm)(n,e)):1);s>1&&i[s-1]==e?i[s-1]=t:(i[s++]=e,i[s++]=t)}return i}}let w=o.r$.define({combine:e=>(0,o.BO)(e,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:x,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>y(e(n),t(n)),optionClass:(e,t)=>n=>y(e(n),t(n)),addToOptions:(e,t)=>e.concat(t)})});function y(e,t){return e?t?e+" "+t:e:t}function x(e,t,n,o,s){let l=e.textDirection==i.Nm.RTL,r=l,a=!1,c="top",h,p,f=t.left-s.left,u=s.right-t.right,d=o.right-o.left,m=o.bottom-o.top;if(r&&f<Math.min(d,u)?r=!1:!r&&u<Math.min(d,f)&&(r=!0),d<=(r?f:u))h=Math.max(s.top,Math.min(n.top,s.bottom-m))-t.top,p=Math.min(400,r?f:u);else{a=!0,p=Math.min(400,(l?t.right:s.right-t.left)-30);let e=s.bottom-t.bottom;e>=m||e>t.top?h=n.bottom-t.top:(c="bottom",h=t.bottom-n.top)}return{style:`${c}: ${h}px; max-width: ${p}px`,class:"cm-completionInfo-"+(a?l?"left-narrow":"right-narrow":r?"left":"right")}}
1function C(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let o=Math.floor((e-t)/n);return{from:e-(o+1)*n,to:e-o*n}}class I{constructor(e,t,n){let o;this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let i=e.state.field(t),{options:s,selected:l}=i.open,r=e.state.facet(w);this.optionContent=(o=r.addToOptions.slice(),r.icons&&o.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map(e=>"cm-completionIcon-"+e)),t.setAttribute("aria-hidden","true"),t},position:20}),o.push({render(e,t,n){let o=document.createElement("span");o.className="cm-completionLabel";let{label:i}=e,s=0;for(let e=1;e<n.length;){let t=n[e++],l=n[e++];t>s&&o.appendChild(document.createTextNode(i.slice(s,t)));let r=o.appendChild(document.createElement("span"));r.appendChild(document.createTextNode(i.slice(t,l))),r.className="cm-completionMatchedText",s=l}return s<i.length&&o.appendChild(document.createTextNode(i.slice(s))),o},position:50},{render(e){if(!e.detail)return null;let t=document.createElement("span");return t.className="cm-completionDetail",t.textContent=e.detail,t},position:80}),o.sort((e,t)=>e.position-t.position).map(e=>e.render)),this.optionClass=r.optionClass,this.tooltipClass=r.tooltipClass,this.range=C(s.length,l,r.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",t=>{for(let n=t.target,o;n&&n!=this.dom;n=n.parentNode)if("LI"==n.nodeName&&(o=/-(\d+)$/.exec(n.id))&&+o[1]<s.length){this.applyCompletion(e,s[+o[1]]),t.preventDefault();return}}),this.dom.addEventListener("focusout",t=>{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(w).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:v.of(null)})}),this.list=this.dom.appendChild(this.createListBox(s,i.id,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}mount(){this.updateSel()}update(e){var t,n,o;let i=e.state.field(this.stateField),s=e.startState.field(this.stateField);this.updateTooltipClass(e.state),i!=s&&(this.updateSel(),(null===(t=i.open)||void 0===t?void 0:t.disabled)!=(null===(n=s.open)||void 0===n?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!(null===(o=i.open)||void 0===o?void 0:o.disabled)))}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=C(t.options.length,t.selected,this.view.state.facet(w).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t.options,e.id,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})),this.updateSelectedOption(t.selected)){this.destroyInfo();
1let{completion:n}=t.options[t.selected],{info:o}=n;if(!o)return;let s="string"==typeof o?document.createTextNode(o):o(n);if(!s)return;"then"in s?s.then(t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,n)}).catch(e=>(0,i.OO)(this.view.state,e,"completion info")):this.addInfoPane(s,n)}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",null!=e.nodeType)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:o}=e;n.appendChild(t),this.infoDestroy=o||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){var t,n;let o,i,s=null;for(let t=this.list.firstChild,n=this.range.from;t;t=t.nextSibling,n++)"LI"==t.nodeName&&t.id?n==e?t.hasAttribute("aria-selected")||(t.setAttribute("aria-selected","true"),s=t):t.hasAttribute("aria-selected")&&t.removeAttribute("aria-selected"):n--;return s&&(t=this.list,n=s,o=t.getBoundingClientRect(),(i=n.getBoundingClientRect()).top<o.top?t.scrollTop-=o.top-i.top:i.bottom>o.bottom&&(t.scrollTop+=i.bottom-o.bottom)),s}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),o=e.getBoundingClientRect(),i=this.space;if(!i){let e=this.dom.ownerDocument.defaultView||window;i={left:0,top:0,right:e.innerWidth,bottom:e.innerHeight}}return o.top>Math.min(i.bottom,t.bottom)-10||o.bottom<Math.max(i.top,t.top)+10?null:this.view.state.facet(w).positionInfo(this.view,t,o,n,i)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,n){let o=document.createElement("ul");o.id=t,o.setAttribute("role","listbox"),o.setAttribute("aria-expanded","true"),o.setAttribute("aria-label",this.view.state.phrase("Completions"));let i=null;for(let s=n.from;s<n.to;s++){let{completion:l,match:r}=e[s],{section:a}=l;if(a){let e="string"==typeof a?a:a.name;e!=i&&(s>n.from||0==n.from)&&(i=e,"string"!=typeof a&&a.header?o.appendChild(a.header(a)):o.appendChild(document.createElement("completion-section")).textContent=e)}let c=o.appendChild(document.createElement("li"));c.id=t+"-"+s,c.setAttribute("role","option");let h=this.optionClass(l);for(let e of(h&&(c.className=h),this.optionContent)){let t=e(l,this.view.state,r);t&&c.appendChild(t)}}return n.from&&o.classList.add("cm-completionListIncompleteTop"),n.to<e.length&&o.classList.add("cm-completionListIncompleteBottom"),o}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function k(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}class O{constructor(e,t,n,o,i,s){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=o,this.selected=i,this.disabled=s}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new O(this.options,D(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,o,i){let s=function(e,t){let n=[],o=null,i=e=>{n.push(e);let{section:t}=e.completion;if(t){o||(o=[]);let e="string"==typeof t?t:t.name;o.some(t=>t.name==e)||o.push("string"==typeof t?{name:e}:t)}};for(let o of e)if(o.hasResult()){if(!1===o.result.filter){let e=o.result.getMatch;for(let t of o.result.options){let s=[1e9-n.length];if(e)for(let n of e(t))s.push(n);i(new h(t,o.source,s,s[0]))}}else{let e=new b(t.sliceDoc(o.from,o.to)),n;for(let t of o.result.options)(n=e.match(t.label))&&i(new h(t,o.source,n,n[0]+(t.boost||0)))}}if(o){let e=Object.create(null),t=0;for(let n of o.sort((e,t)=>{var n,o;return(null!==(n=e.rank)&&void 0!==n?n:1e9)-(null!==(o=t.rank)&&void 0!==o?o:1e9)||(e.name<t.name?-1:1)}))t-=1e5,e[n.name]=t;for(let t of n){let{section:n}=t.completion;n&&(t.score+=e["string"==typeof n?n:n.name])}}let s=[],l=null,r=t.facet(w).compareCompletions;for(let e of n.sort((e,t)=>t.score-e.score||r(e.completion,t.completion)))l&&l.label==e.completion.label&&l.detail==e.completion.detail&&(null==l.type||null==e.completion.type||l.type==e.completion.type)&&l.apply==e.completion.apply?k(e.completion)>k(l)&&(s[s.length-1]=e):s.push(e),l=e.completion;return s}(e,t);if(!s.length)return o&&e.some(e=>1==e.state)?new O(o.options,o.attrs,o.tooltip,o.timestamp,o.selected,!0):null;let l=t.facet(w).selectOnOpen?0:-1;if(o&&o.selected!=l&&-1!=o.selected){let e=o.options[o.selected].completion;for(let t=0;t<s.length;t++)if(s[t].completion==e){l=t;break}}return new O(s,D(n,l),{pos:e.reduce((e,t)=>
1t.hasResult()?Math.min(e,t.from):e,1e8),create:e=>new I(e,B,j),above:i.aboveCursor},o?o.timestamp:Date.now(),l,!1)}map(e){return new O(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class T{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new T(A,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(w),o=(n.override||t.languageDataAt("autocomplete",p(t)).map(m)).map(t=>(this.active.find(e=>e.source==t)||new E(t,this.active.some(e=>0!=e.state)?1:0)).update(e,n));o.length==this.active.length&&o.every((e,t)=>e==this.active[t])&&(o=this.active);let i=this.open;for(let s of(i&&e.docChanged&&(i=i.map(e.changes)),e.selection||o.some(t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to))||!function(e,t){if(e==t)return!0;for(let n=0,o=0;;){for(;n<e.length&&!e[n].hasResult;)n++;for(;o<t.length&&!t[o].hasResult;)o++;let i=n==e.length,s=o==t.length;if(i||s)return i==s;if(e[n++].result!=t[o++].result)return!1}}(o,this.active)?i=O.build(o,t,this.id,i,n):i&&i.disabled&&!o.some(e=>1==e.state)&&(i=null),!i&&o.every(e=>1!=e.state)&&o.some(e=>e.hasResult())&&(o=o.map(e=>e.hasResult()?new E(e.source,0):e)),e.effects))s.is(M)&&(i=i&&i.setSelected(s.value,this.id));return o==this.active&&i==this.open?this:new T(o,this.id,i)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:P}}let P={"aria-autocomplete":"list"};function D(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}let A=[];function R(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class E{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=R(e),o=this;for(let i of(n?o=o.handleUserEvent(e,n,t):e.docChanged?o=o.handleChange(e):e.selection&&0!=o.state&&(o=new E(o.source,0)),e.effects))if(i.is(g))o=new E(o.source,1,i.value?p(e.state):-1);else if(i.is(v))o=new E(o.source,0);else if(i.is(S))for(let e of i.value)e.source==o.source&&(o=e);return o}handleUserEvent(e,t,n){return"delete"!=t&&n.activateOnTyping?new E(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(p(e.startState))?new E(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new E(this.source,this.state,e.mapPos(this.explicitPos))}}class L extends E{constructor(e,t,n,o,i){super(e,2,t),this.result=n,this.from=o,this.to=i}hasResult(){return!0}handleUserEvent(e,t,n){var o;let i=e.changes.mapPos(this.from),s=e.changes.mapPos(this.to,1),r=p(e.state);if((this.explicitPos<0?r<=i:r<this.from)||r>s||"delete"==t&&p(e.startState)==this.from)return new E(this.source,"input"==t&&n.activateOnTyping?1:0);let a=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos),c;return!function(e,t,n,o){if(!e)return!1;let i=t.sliceDoc(n,o);return"function"==typeof e?e(i,n,o,t):f(e,!0).test(i)}(this.result.validFor,e.state,i,s)?this.result.update&&(c=this.result.update(this.result,i,s,new l(e.state,r,a>=0)))?new L(this.source,a,c,c.from,null!==(o=c.to)&&void 0!==o?o:p(e.state)):new E(this.source,1,a):new L(this.source,a,this.result,i,s)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new E(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new L(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}let S=o.Py.define({map:(e,t)=>e.map(e=>e.map(t))}),M=o.Py.define(),B=o.QQ.define({create:()=>T.start(),update:(e,t)=>e.update(t),provide:e=>[i.hJ.from(e,e=>e.tooltip),i.tk.contentAttributes.from(e,e=>e.attrs)]});function j(e,t){let n=t.completion.apply||t.completion.label,i=e.state.field(B).active.find(e=>e.source==t.source);return i instanceof L&&("string"==typeof n?e.dispatch(Object.assign(Object.assign({},function(e,t,n,i){let{main:s}=e.selection,l=n-s.from,r=i-s.from;return Object.assign(Object.assign({},e.changeByRange(a=>a!=s&&n!=i&&e.sliceDoc(a.from+l,a.from+r)!=e.sliceDoc(n,i)?{range:a}:{changes:{from:a.from+l,to:i==s.from?a.to:a.from+r,insert:t},range:o.jT.cursor(a.from+l+t.length)})),{userEvent:"input.complete"})}(e.state,n,i.from,i.to)),{annotations:u.of(t.completion)})):n(e,t.completion,i.from,i.to),!0)}function $(e,t="option"){return n=>{let o=n.state.field(B,!1);if(!o||!o.open||o.open.disabled||Date.now()-o.open.timestamp<n.state.facet(w).interactionDelay)return!1;let s=1,l;"page"==t&&(l=(0,i.gB)(n,o.open.tooltip))&&(s=Math.max(2,Math.floor(l.dom.offsetHeight/l.dom.querySelector("li").offsetHeight)-1));let{length:r}=o.open.options,a=o.open.selected>-1?o.open.selected+s*(e?1:-1):e?0:r-1;return a<0?a="page"==t?0:r-1:a>
1=r&&(a="page"==t?r-1:0),n.dispatch({effects:M.of(a)}),!0}}class q{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}let N=i.lg.fromClass(class{constructor(e){for(let t of(this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0,e.state.field(B).active))1==t.state&&this.startQuery(t)}update(e){let t=e.state.field(B);if(!e.selectionSet&&!e.docChanged&&e.startState.field(B)==t)return;let n=e.transactions.some(e=>(e.selection||e.docChanged)&&!R(e));for(let t=0;t<this.running.length;t++){let o=this.running[t];if(n||o.updates.length+e.transactions.length>50&&Date.now()-o.time>1e3){for(let e of o.context.abortListeners)try{e()}catch(e){(0,i.OO)(this.view.state,e)}o.context.abortListeners=null,this.running.splice(t--,1)}else o.updates.push(...e.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=t.active.some(e=>1==e.state&&!this.running.some(t=>t.active.source==e.source))?setTimeout(()=>this.startUpdate(),50):-1,0!=this.composing)for(let t of e.transactions)"input"==R(t)?this.composing=2:2==this.composing&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:e}=this.view;for(let t of e.field(B).active)1!=t.state||this.running.some(e=>e.active.source==t.source)||this.startQuery(t)}startQuery(e){let{state:t}=this.view,n=p(t),o=new l(t,n,e.explicitPos==n),s=new q(e,o);this.running.push(s),Promise.resolve(e.source(o)).then(e=>{s.context.aborted||(s.done=e||null,this.scheduleAccept())},e=>{this.view.dispatch({effects:v.of(null)}),(0,i.OO)(this.view.state,e)})}scheduleAccept(){this.running.every(e=>void 0!==e.done)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),50))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(w);for(let o=0;o<this.running.length;o++){let i=this.running[o];if(void 0===i.done)continue;if(this.running.splice(o--,1),i.done){let o=new L(i.active.source,i.active.explicitPos,i.done,i.done.from,null!==(e=i.done.to)&&void 0!==e?e:p(i.updates.length?i.updates[0].startState:this.view.state));for(let e of i.updates)o=o.update(e,n);if(o.hasResult()){t.push(o);continue}}let s=this.view.state.field(B).active.find(e=>e.source==i.active.source);if(s&&1==s.state){if(null==i.done){let e=new E(i.active.source,0);for(let t of i.updates)e=e.update(t,n);1!=e.state&&t.push(e)}else this.startQuery(s)}}t.length&&this.view.dispatch({effects:S.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(B,!1);if(t&&t.tooltip&&this.view.state.facet(w).closeOnBlur){let n=t.open&&(0,i.gB)(this.view,t.open.tooltip);n&&n.dom.contains(e.relatedTarget)||this.view.dispatch({effects:v.of(null)})}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout(()=>this.view.dispatch({effects:g.of(!1)}),20),this.composing=0}}}),U=i.tk.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'\uD835\uDC65'"}},".cm-completionIcon-constant":{"&:after":{content:"'\uD835\uDC36'"}},".cm-completionIcon-type":{"&:after":{content:"'\uD835\uDC61'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\uD83D\uDD11︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class F{constructor(e,t,n,o){this.field=e,this.line=t,this.from=n,this.to=o}}class W{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,o.gc.TrackDel),n=e.mapPos(this.to,1,o.gc.TrackDel);return null==t||null==n?null:new W(this.field,t,n)}}class z{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],o=[t],i=e.doc.lineAt(t),l=/^\s*/.exec(i.text)[0];for(let i of this.lines){if(n.length){let n=l,r=/^\t*/.exec(i)[0].length;for(let t=0;t<r;t++)n+=e.facet(s.c);o.push(t+n.length-r),i=n+i.slice(r)}n.push(i),t+=i.length+1}return{text:n,ranges:this.fieldPositions.map(e=>new W(e.field,o[e.line]+e.from,o[e.line]+e.to))}}static parse(e){let t=[],n=[],o=[],i;for(let s of e.split(/\r\n?|\n/)){for(;i=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(s);){let e=i[1]?+i[1]:null,l=i[2]||i[3]||"",r=-1;for(let n=0;n<t.length;n++)(null!=e?t[n].seq==e:l&&t[n].name==l)&&(r=n);if(r<0){let n=0;for(;n<t.length&&(null==e||null!=t[n].seq&&t[n].seq<e);)n++;for(let i of(t.splice(n,0,{seq:e,name:l}),r=n,o))i.field>=r&&i.field++}o.push(new F(r,n.length,i.index,i.index+l.length)),s=s.slice(0,i.index)+l+s.slice(i.index+i[0].length)}for(let e;e=/\\([{}])/.exec(s);)for(let t of(s=s.slice(0,e.index)+e[1]+s.slice(e.index+e[0].length),o))t.line==n.length&&t.from>e.index&&(t.from--,t.to--);n.push(s)}return new z(n,o)}}let Q=i.p.widget({widget:new class extends i.l9{toDOM(){let e=document.createElement("span");
1return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),H=i.p.mark({class:"cm-snippetField"});class Z{constructor(e,t){this.ranges=e,this.active=t,this.deco=i.p.set(e.map(e=>(e.from==e.to?Q:H).range(e.from,e.to)))}map(e){let t=[];for(let n of this.ranges){let o=n.map(e);if(!o)return null;t.push(o)}return new Z(t,this.active)}selectionInsideField(e){return e.ranges.every(e=>this.ranges.some(t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))}}let V=o.Py.define({map:(e,t)=>e&&e.map(t)}),_=o.Py.define(),X=o.QQ.define({create:()=>null,update(e,t){for(let n of t.effects){if(n.is(V))return n.value;if(n.is(_)&&e)return new Z(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>i.tk.decorations.from(e,e=>e?e.deco:i.p.none)});function K(e,t){return o.jT.create(e.filter(e=>e.field==t).map(e=>o.jT.range(e.from,e.to)))}function G(e){return({state:t,dispatch:n})=>{let o=t.field(X,!1);if(!o||e<0&&0==o.active)return!1;let i=o.active+e,s=e>0&&!o.ranges.some(t=>t.field==i+e);return n(t.update({selection:K(o.ranges,i),effects:V.of(s?null:new Z(o.ranges,i))})),!0}}let J=G(1),Y=G(-1),ee=[{key:"Tab",run:J,shift:Y},{key:"Escape",run:({state:e,dispatch:t})=>!!e.field(X,!1)&&(t(e.update({effects:V.of(null)})),!0)}],et=o.r$.define({combine:e=>e.length?e[0]:ee}),en=o.Wl.highest(i.$f.compute([et],e=>e.facet(et)));function eo(e,t){let n;return Object.assign(Object.assign({},t),{apply:(n=z.parse(e),(e,t,i,s)=>{let{text:l,ranges:r}=n.instantiate(e.state,i),a={changes:{from:i,to:s,insert:o.xv.of(l)},scrollIntoView:!0,annotations:t?u.of(t):void 0};if(r.length&&(a.selection=K(r,0)),r.length>1){let t=new Z(r,0),n=a.effects=[V.of(t)];void 0===e.state.field(X,!1)&&n.push(o.Py.appendConfig.of([X,en,ei,U]))}e.dispatch(e.state.update(a))})})}let ei=i.tk.domEventHandlers({mousedown(e,t){let n=t.state.field(X,!1),o;if(!n||null==(o=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let i=n.ranges.find(e=>e.from<=o&&e.to>=o);return!!i&&i.field!=n.active&&(t.dispatch({selection:K(n.ranges,i.field),effects:V.of(n.ranges.some(e=>e.field>i.field)?new Z(n.ranges,i.field):null)}),!0)}}),es={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},el=o.Py.define({map(e,t){let n=t.mapPos(e,-1,o.gc.TrackAfter);return null==n?void 0:n}}),er=new class extends o.uU{};er.startSide=1,er.endSide=-1;let ea=o.QQ.define({create:()=>o.Xs.empty,update(e,t){if(t.selection){let n=t.state.doc.lineAt(t.selection.main.head).from,i=t.startState.doc.lineAt(t.startState.selection.main.head).from;n!=t.changes.mapPos(i,-1)&&(e=o.Xs.empty)}for(let n of(e=e.map(t.changes),t.effects))n.is(el)&&(e=e.update({add:[er.range(n.value,n.value+1)]}));return e}});function ec(){return[ed,ea]}let eh="()[]{}<>";function ep(e){for(let t=0;t<eh.length;t+=2)if(eh.charCodeAt(t)==e)return eh.charAt(t+1);return(0,o.bg)(e<128?e:e+1)}function ef(e,t){return e.languageDataAt("closeBrackets",t)[0]||es}let eu="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),ed=i.tk.inputHandler.of((e,t,n,i)=>{if((eu?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let l=e.state.selection.main;if(i.length>2||2==i.length&&1==(0,o.nZ)((0,o.gm)(i,0))||t!=l.from||n!=l.to)return!1;let r=function(e,t){let n=ef(e,e.selection.main.head),i=n.brackets||es.brackets;for(let l of i){let r=ep((0,o.gm)(l,0));if(t==l)return r==l?function(e,t,n,i){let l=i.stringPrefixes||es.stringPrefixes,r=null,a=e.changeByRange(i=>{if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:t,from:i.to}],effects:el.of(i.to+t.length),range:o.jT.range(i.anchor+t.length,i.head+t.length)};let a=i.head,c=ev(e.doc,a),h;if(c==t){if(eb(e,a))return{changes:{insert:t+t,from:a},effects:el.of(a+t.length),range:o.jT.cursor(a+t.length)};if(eg(e,a)){let i=n&&e.sliceDoc(a,a+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:a,to:a+i.length,insert:i},range:o.jT.cursor(a+i.length)}}}else if(n&&e.sliceDoc(a-2*t.length,a)==t+t&&(h=ew(e,a-2*t.length,l))>-1&&eb(e,h))return{changes:{insert:t+t+t+t,from:a},effects:el.of(a+t.length),range:o.jT.cursor(a+t.length)};else if(e.charCategorizer(a)(c)!=o.D0.Word&&ew(e,a,l)>-1&&!function(e,t,n,o){let i=(0,s.qz)(e).resolveInner(t,-1),l=o.reduce((e,t)=>
1Math.max(e,t.length),0);for(let s=0;s<5;s++){let s=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+l)),r=s.indexOf(n);if(!r||r>-1&&o.indexOf(s.slice(0,r))>-1){let t=i.firstChild;for(;t&&t.from==i.from&&t.to-t.from>n.length+r;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let a=i.to==t&&i.parent;if(!a)break;i=a}return!1}(e,a,t,l))return{changes:{insert:t+t,from:a},effects:el.of(a+t.length),range:o.jT.cursor(a+t.length)};return{range:r=i}});return r?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}(e,l,i.indexOf(l+l+l)>-1,n):function(e,t,n,i){let s=null,l=e.changeByRange(l=>{if(!l.empty)return{changes:[{insert:t,from:l.from},{insert:n,from:l.to}],effects:el.of(l.to+t.length),range:o.jT.range(l.anchor+t.length,l.head+t.length)};let r=ev(e.doc,l.head);return!r||/\s/.test(r)||i.indexOf(r)>-1?{changes:{insert:t+n,from:l.head},effects:el.of(l.head+t.length),range:o.jT.cursor(l.head+t.length)}:{range:s=l}});return s?null:e.update(l,{scrollIntoView:!0,userEvent:"input.type"})}(e,l,r,n.before||es.before);if(t==r&&eg(e,e.selection.main.from))return function(e,t,n){let i=null,s=e.changeByRange(t=>t.empty&&ev(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:o.jT.cursor(t.head+n.length)}:i={range:t});return i?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}(e,0,r)}return null}(e.state,i);return!!r&&(e.dispatch(r),!0)}),em=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=ef(e,e.selection.main.head).brackets||es.brackets,i=null,s=e.changeByRange(t=>{if(t.empty){var s,l;let i;let r=(s=e.doc,l=t.head,i=s.sliceString(l-2,l),(0,o.nZ)((0,o.gm)(i,0))==i.length?i:i.slice(1));for(let i of n)if(i==r&&ev(e.doc,t.head)==ep((0,o.gm)(i,0)))return{changes:{from:t.head-i.length,to:t.head+i.length},range:o.jT.cursor(t.head-i.length)}}return{range:i=t}});return i||t(e.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!i}}];function eg(e,t){let n=!1;return e.field(ea).between(0,e.doc.length,e=>{e==t&&(n=!0)}),n}function ev(e,t){let n=e.sliceString(t,t+2);return n.slice(0,(0,o.nZ)((0,o.gm)(n,0)))}function eb(e,t){let n=(0,s.qz)(e).resolveInner(t+1);return n.parent&&n.from==t}function ew(e,t,n){let i=e.charCategorizer(t);if(i(e.sliceDoc(t-1,t))!=o.D0.Word)return t;for(let s of n){let n=t-s.length;if(e.sliceDoc(n,t)==s&&i(e.sliceDoc(n-1,n))!=o.D0.Word)return n}return -1}function ey(e={}){return[B,w.of(e),N,eC,U]}let ex=[{key:"Ctrl-Space",run:e=>!!e.state.field(B,!1)&&(e.dispatch({effects:g.of(!0)}),!0)},{key:"Escape",run:e=>{let t=e.state.field(B,!1);return!!(t&&t.active.some(e=>0!=e.state))&&(e.dispatch({effects:v.of(null)}),!0)}},{key:"ArrowDown",run:$(!0)},{key:"ArrowUp",run:$(!1)},{key:"PageDown",run:$(!0,"page")},{key:"PageUp",run:$(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(B,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||Date.now()-t.open.timestamp<e.state.facet(w).interactionDelay)&&(!!t.open.disabled||j(e,t.open.options[t.open.selected]))}}],eC=o.Wl.highest(i.$f.computeN([w],e=>e.facet(w).defaultKeymap?[ex]:[]))}}]);
2//# sourceMappingURL=4100.8876ebda4305b618.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.