PageSourceSearch

https://willtwall.com/_next/static/chunks/418-16b4e8fe72fd2612.js

js willtwall.com collected 2026-10-05 03:06:14 UTC 346,741 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[418],{709:(e,t,n)=>{n.d(t,{h1:()=>f});var r=n(6155),o=n(5223),i=n(368),a=n(2733),s=function(e){var t=e.theme,n=e.settings,r=void 0===n?{}:n,o=e.styles,s={".cm-gutters":{}},u={};r.background&&(u.backgroundColor=r.background),r.backgroundImage&&(u.backgroundImage=r.backgroundImage),r.foreground&&(u.color=r.foreground),r.fontSize&&(u.fontSize=r.fontSize),(r.background||r.foreground)&&(s["&"]=u),r.fontFamily&&(s["&.cm-editor .cm-scroller"]={fontFamily:r.fontFamily}),r.gutterBackground&&(s[".cm-gutters"].backgroundColor=r.gutterBackground),r.gutterForeground&&(s[".cm-gutters"].color=r.gutterForeground),r.gutterBorder&&(s[".cm-gutters"].borderRightColor=r.gutterBorder),r.caret&&(s[".cm-content"]={caretColor:r.caret},s[".cm-cursor, .cm-dropCursor"]={borderLeftColor:r.caret});var c={};r.gutterActiveForeground&&(c.color=r.gutterActiveForeground),r.lineHighlight&&(s[".cm-activeLine"]={backgroundColor:r.lineHighlight},c.backgroundColor=r.lineHighlight),s[".cm-activeLineGutter"]=c,r.selection&&(s["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:r.selection+" !important"}),r.selectionMatch&&(s["& .cm-selectionMatch"]={backgroundColor:r.selectionMatch});var l=i.Lz.theme(s,{dark:"dark"===t}),f=a.cr.define(void 0===o?[]:o);return[l,(0,a.y9)(f)]};function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var c={background:"#2B2B2B",foreground:"#f8f8f2",caret:"#FFFFFF",selection:"rgba(255, 255, 255, 0.1)",selectionMatch:"rgba(255, 255, 255, 0.2)",gutterBackground:"rgba(255, 255, 255, 0.1)",gutterForeground:"#999",gutterBorder:"transparent",lineHighlight:"rgba(255, 255, 255, 0.1)"},l=[{tag:[o._A.atom,o._A.number],color:"#bd93f9"},{tag:[o._A.comment],color:"#61A151"},{tag:[o._A.string],color:"#6A8759"},{tag:[o._A.variableName,o._A.operator],color:"#A9B7C6"},{tag:[o._A.meta,o._A.className],color:"#A9B7C6"},{tag:[o._A.propertyName],color:"#FFC66D"},{tag:[o._A.keyword],color:"#CC7832"},{tag:[o._A.tagName],color:"#ff79c6"},{tag:[o._A.typeName],color:"#ffb86c"}],f=function(e){var t,n={},o=n.theme,i=n.settings,a=n.styles;return s({theme:void 0===o?"dark":o,settings:(0,r.A)({},c,void 0===i?{}:i),styles:[].concat(l,function(e){if(Array.isArray(e))return u(e)}(t=void 0===a?[]:a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return u(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())})}()},742:(e,t,n)=>{function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t,n){return t=i(t),function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");var n=e;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e,!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){return!1}}()?t.apply(e,n):Reflect.construct(t,n||[],i(e).constructor))}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}
1function s(e,t){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function c(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===r(t)?t:String(t)}(o.key),o)}}function h(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function d(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}n.d(t,{PH:()=>A,Qj:()=>p,Z6:()=>w,cF:()=>v,fI:()=>x,iX:()=>W,rr:()=>H,uY:()=>y});var p,v=1024,m=0,g=h(function e(t,n){d(this,e),this.from=t,this.to=n}),y=h(function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d(this,e),this.id=m++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||function(){throw Error("This node type doesn't define a deserialize function")}},[{key:"add",value:function(e){var t=this;if(this.perNode)throw RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=w.match(e)),function(n){var r=e(n);return void 0===r?null:[t,r]}}}]);y.closedBy=new y({deserialize:function(e){return e.split(" ")}}),y.openedBy=new y({deserialize:function(e){return e.split(" ")}}),y.group=new y({deserialize:function(e){return e.split(" ")}}),y.isolate=new y({deserialize:function(e){if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw RangeError("Invalid value for isolate: "+e);return e||"auto"}}),y.contextHash=new y({perNode:!0}),y.lookAhead=new y({perNode:!0}),y.mounted=new y({perNode:!0});var b=h(function e(t,n,r){d(this,e),this.tree=t,this.overlay=n,this.parser=r},null,[{key:"get",value:function(e){return e&&e.props&&e.props[y.mounted.id]}}]),k=Object.create(null),w=function(){function e(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;d(this,e),this.name=t,this.props=n,this.id=r,this.flags=o}return h(e,[{key:"prop",value:function(e){return this.props[e.id]}},{key:"isTop",get:function(){return(1&this.flags)>0}},{key:"isSkipped",get:function(){return(2&this.flags)>0}},{key:"isError",get:function(){return(4&this.flags)>0}},{key:"isAnonymous",get:function(){return(8&this.flags)>0}},{key:"is",value:function(e){if("string"==typeof e){if(this.name==e)return!0;var t=this.prop(y.group);return!!t&&t.indexOf(e)>-1}return this.id==e}}],[{key:"define",value:function(t){var n=t.props&&t.props.length?Object.create(null):k,r=!!t.top|2*!!t.skipped|4*!!t.error|8*(null==t.name),o=new e(t.name||"",n,t.id,r);if(t.props){var i,a=u(t.props);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(Array.isArray(s)||(s=s(o)),s){if(s[0].perNode)throw RangeError("Can't store a per-node prop on a node type");n[s[0].id]=s[1]}}}catch(e){a.e(e)}finally{a.f()}}return o}},{key:"match",value:function(e){var t=Object.create(null);for(var n in e){var r,o=u(n.split(" "));try{for(o.s();!(r=o.n()).done;)t[r.value]=e[n]}catch(e){o.e(e)}finally{o.f()}}return function(e){for(var n=e.prop(y.group),r=-1;r<(n?n.length:0);r++){var o=t[r<0?e.name:n[r]];if(o)return o}}}}])}();w.none=new w("",Object.create(null),0,8);var x=function(){function e(t){d(this,e),this.types=t;
1for(var n=0;n<t.length;n++)if(t[n].id!=n)throw RangeError("Node type ids should correspond to array positions when creating a node set")}return h(e,[{key:"extend",value:function(){for(var t=[],n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];var i,a=u(this.types);try{for(a.s();!(i=a.n()).done;){var s,c=i.value,l=null,f=u(r);try{for(f.s();!(s=f.n()).done;){var h=(0,s.value)(c);h&&(l||(l=Object.assign({},c.props)),l[h[0].id]=h[1])}}catch(e){f.e(e)}finally{f.f()}t.push(l?new w(c.name,l,c.id,c.flags):c)}}catch(e){a.e(e)}finally{a.f()}return new e(t)}}])}(),S=new WeakMap,O=new WeakMap;!function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"}(p||(p={}));var A=function(){function e(t,n,r,o,i){if(d(this,e),this.type=t,this.children=n,this.positions=r,this.length=o,this.props=null,i&&i.length){this.props=Object.create(null);var a,s=u(i);try{for(s.s();!(a=s.n()).done;){var l,f=(l=a.value,function(e){if(Array.isArray(e))return e}(l)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(l,2)||c(l,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),h=f[0],p=f[1];this.props["number"==typeof h?h:h.id]=p}}catch(e){s.e(e)}finally{s.f()}}}return h(e,[{key:"toString",value:function(){var e=b.get(this);if(e&&!e.overlay)return e.tree.toString();var t,n="",r=u(this.children);try{for(r.s();!(t=r.n()).done;){var o=t.value.toString();o&&(n&&(n+=","),n+=o)}}catch(e){r.e(e)}finally{r.f()}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}},{key:"cursor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new _(this.topNode,e)}},{key:"cursorAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;arguments.length>2&&void 0!==arguments[2]&&arguments[2];var n=new _(S.get(this)||this.topNode);return n.moveTo(e,t),S.set(this,n._tree),n}},{key:"topNode",get:function(){return new M(this,0,0,null)}},{key:"resolve",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=E(S.get(this)||this.topNode,e,t,!1);return S.set(this,n),n}},{key:"resolveInner",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=E(O.get(this)||this.topNode,e,t,!0);return O.set(this,n),n}},{key:"resolveStack",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e,t,n){for(var r=e.resolveInner(t,n),o=null,i=r instanceof M?r:r.context.parent;i;i=i.parent)if(i.index<0){var a=i.parent;(o||(o=[r])).push(a.resolve(t,n)),i=a}else{var s=b.get(i.tree);if(s&&s.overlay&&s.overlay[0].from<=t&&s.overlay[s.overlay.length-1].to>=t){var u=new M(s.tree,s.overlay[0].from+i.from,-1,i);(o||(o=[r])).push(E(u,t,n,!1))}}return o?N(o):r}(this,e,t)}},{key:"iterate",value:function(e){for(var t=e.enter,n=e.leave,r=e.from,o=void 0===r?0:r,i=e.to,a=void 0===i?this.length:i,s=e.mode||0,u=(s&p.IncludeAnonymous)>0,c=this.cursor(s|p.IncludeAnonymous);;){var l=!1;if(c.from<=a&&c.to>=o&&(!u&&c.type.isAnonymous||!1!==t(c))){if(c.firstChild())continue;l=!0}for(;l&&n&&(u||!c.type.isAnonymous)&&n(c),!c.nextSibling();){if(!c.parent())return;l=!0}}}},{key:"prop",value:function(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}},{key:"propValues",get:function(){var e=[];if(this.props)for(var t in this.props)e.push([+t,this.props[t]]);return e}},{key:"balance",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.children.length<=8?this:U(w.none,this.children,this.positions,0,this.children.length,0,this.length,function(n,r,o){return new e(t.type,n,r,o,t.propValues)},n.makeTree||function(t,n,r){return new e(w.none,t,n,r)})}}],[{key:"build",value:function(e){return function(e){var t,n=e.buffer,r=e.nodeSet,o=e.maxBufferLength,i=void 0===o?v:o,a=e.reused,s=void 0===a?[]:a,u=e.minRepeatType,c=void 0===u?r.types.length:u,l=Array.isArray(n)?new C(n,n.length):n,f=r.types,h=0,d=0;function p(e,t,n,o,i,a,s,u,c){for(var l=[],f=[];e.length>
1o;)l.push(e.pop()),f.push(t.pop()+n-i);e.push(m(r.types[s],l,f,a-i,u-a,c)),t.push(i-n)}function m(e,t,n,r,o,i,a){if(i){var s=[y.contextHash,i];a=a?[s].concat(a):[s]}if(o>25){var u=[y.lookAhead,o];a=a?[u].concat(a):[u]}return new A(e,t,n,r,a)}for(var g=[],b=[];l.pos>0;)!function e(t,n,o,a,u,v){for(var g=l.id,b=l.start,k=l.end,w=l.size,x=d,S=h;w<0;){if(l.next(),-1==w){var O=s[g];o.push(O),a.push(b-t);return}if(-3==w){h=g;return}if(-4==w){d=g;return}else throw RangeError("Unrecognized record size: ".concat(w))}var C,I,E=f[g],T=b-t;if(k-b<=i&&(I=function(e,t){var n=l.fork(),r=0,o=0,a=0,s=n.end-i,u={size:0,start:0,skip:0};e:for(var f=n.pos-e;n.pos>f;){var h=n.size;if(n.id==t&&h>=0){u.size=r,u.start=o,u.skip=a,a+=4,r+=4,n.next();continue}var d=n.pos-h;if(h<0||d<f||n.start<s)break;var p=4*(n.id>=c),v=n.start;for(n.next();n.pos>d;){if(n.size<0)if(-3==n.size)p+=4;else break e;else n.id>=c&&(p+=4);n.next()}o=v,r+=h,a+=p}return(t<0||r==e)&&(u.size=r,u.start=o,u.skip=a),u.size>4?u:void 0}(l.pos-n,u))){for(var M=new Uint16Array(I.size-I.skip),R=l.pos-I.size,D=M.length;l.pos>R;)D=function e(t,n,r){var o=l.id,i=l.start,a=l.end,s=l.size;if(l.next(),s>=0&&o<c){var u=r;if(s>4)for(var f=l.pos-(s-4);l.pos>f;)r=e(t,n,r);n[--r]=u,n[--r]=a-t,n[--r]=i-t,n[--r]=o}else -3==s?h=o:-4==s&&(d=o);return r}(I.start,M,D);C=new P(M,k-I.start,r),T=I.start-t}else{var L=l.pos-w;l.next();for(var j=[],N=[],F=g>=c?g:-1,_=0,B=k;l.pos>L;)F>=0&&l.id==F&&l.size>=0?(l.end<=B-i&&(p(j,N,b,_,l.end,B,F,x,S),_=j.length,B=l.end),l.next()):v>2500?function(e,t,n,o){for(var a=[],s=0,u=-1;l.pos>t;){var c=l.id,f=l.start,h=l.end;if(l.size>4)l.next();else if(u>-1&&f<u)break;else u<0&&(u=h-i),a.push(c,f,h),s++,l.next()}if(s){for(var d=new Uint16Array(4*s),p=a[a.length-2],v=a.length-3,m=0;v>=0;v-=3)d[m++]=a[v],d[m++]=a[v+1]-p,d[m++]=a[v+2]-p,d[m++]=m;n.push(new P(d,a[2]-p,r)),o.push(p-e)}}(b,L,j,N):e(b,L,j,N,F,v+1);if(F>=0&&_>0&&_<j.length&&p(j,N,b,_,b,B,F,x,S),j.reverse(),N.reverse(),F>-1&&_>0){var V=function(e,t){return function(n,r,o){var i,a,s=0,u=n.length-1;if(u>=0&&(i=n[u])instanceof A){if(!u&&i.type==e&&i.length==o)return i;(a=i.prop(y.lookAhead))&&(s=r[u]+i.length+a)}return m(e,n,r,o,s,t)}}(E,S);C=U(E,j,N,0,j.length,0,k-b,V,V)}else C=m(E,j,N,k-b,x-k,S)}o.push(C),a.push(T)}(e.start||0,e.bufferStart||0,g,b,-1,0);var k=null!=(t=e.length)?t:g.length?b[0]+g[0].length:0;return new A(f[e.topID],g.reverse(),b.reverse(),k)}(e)}}])}();A.empty=new A(w.none,[],[],0);var C=function(){function e(t,n){d(this,e),this.buffer=t,this.index=n}return h(e,[{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"pos",get:function(){return this.index}},{key:"next",value:function(){this.index-=4}},{key:"fork",value:function(){return new e(this.buffer,this.index)}}])}(),P=function(){function e(t,n,r){d(this,e),this.buffer=t,this.length=n,this.set=r}return h(e,[{key:"type",get:function(){return w.none}},{key:"toString",value:function(){for(var e=[],t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}},{key:"childString",value:function(e){var t=this.buffer[e],n=this.buffer[e+3],r=this.set.types[t],o=r.name;if(/\W/.test(o)&&!r.isError&&(o=JSON.stringify(o)),n==(e+=4))return o;for(var i=[];e<n;)i.push(this.childString(e)),e=this.buffer[e+3];return o+"("+i.join(",")+")"}},{key:"findChild",value:function(e,t,n,r,o){for(var i=this.buffer,a=-1,s=e;s!=t&&(!I(o,r,i[s+1],i[s+2])||(a=s,!(n>0)));s=i[s+3]);return a}},{key:"slice",value:function(t,n,r){for(var o=this.buffer,i=new Uint16Array(n-t),a=0,s=t,u=0;s<n;){i[u++]=o[s++],i[u++]=o[s++]-r;var c=i[u++]=o[s++]-r;i[u++]=o[s++]-t,a=Math.max(a,c)}return new e(i,a,this.set)}}])}();function I(e,t,n,r){switch(e){case -2:return n<t;case -1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function E(e,t,n,r){for(;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){var o,i=!r&&e instanceof M&&e.index<0?null:e.parent;if(!i)return e;e=i}var a=r?0:p.IgnoreOverlays;if(r)for(var s=e,u=s.parent;u;u=(s=u).parent)s instanceof M&&s.index<0&&(null==(o=u.enter(t,n,a))?void 0:o.from)!=s.from&&(e=u);for(;;){var c=e.enter(t,n,a);if(!c)return e;e=c}}var T=h(function e(){d(this,e)},[{key:"cursor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new _(this,e)}},{key:"getChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=R(this,e,t,n);return r.length?r[0]:null}},{key:"getChildren",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return R(this,e,t,n)}},{key:"resolve",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return E(this,e,t,!1)}},{key:"resolveInner",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return E(this,e,t,!0)}},{key:"matchContext",value:function(e){return D(this.parent,e)}},{key:"enterUnfinishedNodesBefore",value:function(e){for(var t=this.childBefore(e),n=this;t;){var r=t.lastChild;if(!r||r.to!=t.to)break;r.type.isError&&r.from==r.to?(n=t,t=r.prevSibling):t=r}return n}},{key:"node",get:function(){return this}},{key:"next",get:function(){return this.parent}}]),M=function(e){function t(e,n,r,i){var a;return d(this,t),(a=o(this,t))._tree=e,a.from=n,a.index=r,a._parent=i,a}return a(t,e),h(t,[{key:"type",get:function(){return this._tree.type}},{key:"name",get:function(){return this._tree.type.name}},{key:"to",get:function(){return this.from+this._tree.length}},{key:"nextChild",value:function(e,n,r,o){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=this;;){for(var s=a._tree,u=s.children,c=s.positions,l=n>0?u.length:-1;e!=l;e+=n){var f=u[e],h=c[e]+a.from;if(I(o,r,h,h+f.length)){if(f instanceof P){if(i&p.ExcludeBuffers)continue;var d=f.findChild(0,f.buffer.length,n,r-h,o);if(d>-1)return new j(new L(a,f,e,h),null,d)}else if(i&p.IncludeAnonymous||!f.type.isAnonymous||B(f)){var v=void 0;if(!(i&p.IgnoreMounts)&&(v=b.get(f))&&!v.overlay)return new t(v.tree,h,e,a);var m=new t(f,h,e,a);return i&p.IncludeAnonymous||!m.type.isAnonymous?m:m.nextChild(n<0?f.children.length-1:0,n,r,o)}}}if(i&p.IncludeAnonymous||!a.type.isAnonymous||(e=a.index>=0?a.index+n:n<0?-1:a._parent._tree.children.length,!(a=a._parent)))return null}}},{key:"firstChild",get:function(){return this.nextChild(0,1,0,4)}},{key:"lastChild",get:function(){return this.nextChild(this._tree.children.length-1,-1,0,4)}},{key:"childAfter",value:function(e){return this.nextChild(0,1,e,2)}},{key:"childBefore",value:function(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}},{key:"enter",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(r&p.IgnoreOverlays)&&(o=b.get(this._tree))&&o.overlay){var o,i,a=e-this.from,s=u(o.overlay);try{for(s.s();!(i=s.n()).done;){var c=i.value,l=c.from,f=c.to;if((n>
10?l<=a:l<a)&&(n<0?f>=a:f>a))return new t(o.tree,o.overlay[0].from+this.from,-1,this)}}catch(e){s.e(e)}finally{s.f()}}return this.nextChild(0,1,e,n,r)}},{key:"nextSignificantParent",value:function(){for(var e=this;e.type.isAnonymous&&e._parent;)e=e._parent;return e}},{key:"parent",get:function(){return this._parent?this._parent.nextSignificantParent():null}},{key:"nextSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}},{key:"prevSibling",get:function(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}},{key:"tree",get:function(){return this._tree}},{key:"toTree",value:function(){return this._tree}},{key:"toString",value:function(){return this._tree.toString()}}])}(T);function R(e,t,n,r){var o=e.cursor(),i=[];if(!o.firstChild())return i;if(null!=n){for(var a=!1;!a;)if(a=o.type.is(n),!o.nextSibling())return i}for(;;){if(null!=r&&o.type.is(r))return i;if(o.type.is(t)&&i.push(o.node),!o.nextSibling())return null==r?i:[]}}function D(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length-1,r=e;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}var L=h(function e(t,n,r,o){d(this,e),this.parent=t,this.buffer=n,this.index=r,this.start=o}),j=function(e){function t(e,n,r){var i;return d(this,t),(i=o(this,t)).context=e,i._parent=n,i.index=r,i.type=e.buffer.set.types[e.buffer.buffer[r]],i}return a(t,e),h(t,[{key:"name",get:function(){return this.type.name}},{key:"from",get:function(){return this.context.start+this.context.buffer.buffer[this.index+1]}},{key:"to",get:function(){return this.context.start+this.context.buffer.buffer[this.index+2]}},{key:"child",value:function(e,n,r){var o=this.context.buffer,i=o.findChild(this.index+4,o.buffer[this.index+3],e,n-this.context.start,r);return i<0?null:new t(this.context,this,i)}},{key:"firstChild",get:function(){return this.child(1,0,4)}},{key:"lastChild",get:function(){return this.child(-1,0,4)}},{key:"childAfter",value:function(e){return this.child(1,e,2)}},{key:"childBefore",value:function(e){return this.child(-1,e,-2)}},{key:"enter",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(r&p.ExcludeBuffers)return null;var o=this.context.buffer,i=o.findChild(this.index+4,o.buffer[this.index+3],n>0?1:-1,e-this.context.start,n);return i<0?null:new t(this.context,this,i)}},{key:"parent",get:function(){return this._parent||this.context.parent.nextSignificantParent()}},{key:"externalSibling",value:function(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}},{key:"nextSibling",get:function(){var e=this.context.buffer,n=e.buffer[this.index+3];return n<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new t(this.context,this._parent,n):this.externalSibling(1)}},{key:"prevSibling",get:function(){var e=this.context.buffer,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new t(this.context,this._parent,e.findChild(n,this.index,-1,0,4))}},{key:"tree",get:function(){return null}},{key:"toTree",value:function(){var e=[],t=[],n=this.context.buffer,r=this.index+4,o=n.buffer[this.index+3];if(o>r){var i=n.buffer[this.index+1];e.push(n.slice(r,o,i)),t.push(0)}return new A(this.type,e,t,this.to-this.from)}},{key:"toString",value:function(){return this.context.buffer.childString(this.index)}}])}(T);function N(e){if(!e.length)return null;for(var t=0,n=e[0],r=1;r<e.length;r++){var o=e[r];(o.from>n.from||o.to<n.to)&&(n=o,t=r)}var i=n instanceof M&&n.index<0?null:n.parent,a=e.slice();return i?a[t]=i:a.splice(t,1),new F(a,n)}var F=h(function e(t,n){d(this,e),this.heads=t,this.node=n},[{key:"next",get:function(){return N(this.heads)}}]),_=h(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(d(this,e),this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof M)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;
1for(var r=t._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=t,this.yieldBuf(t.index)}},[{key:"name",get:function(){return this.type.name}},{key:"yieldNode",value:function(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}},{key:"yieldBuf",value:function(e,t){this.index=e;var n=this.buffer,r=n.start,o=n.buffer;return this.type=t||o.set.types[o.buffer[e]],this.from=r+o.buffer[e+1],this.to=r+o.buffer[e+2],!0}},{key:"yield",value:function(e){return!!e&&(e instanceof M?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}},{key:"toString",value:function(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}},{key:"enterChild",value:function(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));var r=this.buffer.buffer,o=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,n);return!(o<0)&&(this.stack.push(this.index),this.yieldBuf(o))}},{key:"firstChild",value:function(){return this.enterChild(1,0,4)}},{key:"lastChild",value:function(){return this.enterChild(-1,0,4)}},{key:"childAfter",value:function(e){return this.enterChild(1,e,2)}},{key:"childBefore",value:function(e){return this.enterChild(-1,e,-2)}},{key:"enter",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.mode;return this.buffer?!(n&p.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}},{key:"parent",value:function(){if(!this.buffer)return this.yieldNode(this.mode&p.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());var e=this.mode&p.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}},{key:"sibling",value:function(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));var t=this.buffer.buffer,n=this.stack.length-1;if(e<0){var r=n<0?0:this.stack[n]+4;if(this.index!=r)return this.yieldBuf(t.findChild(r,this.index,-1,0,4))}else{var o=t.buffer[this.index+3];if(o<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(o)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}},{key:"nextSibling",value:function(){return this.sibling(1)}},{key:"prevSibling",value:function(){return this.sibling(-1)}},{key:"atLastNode",value:function(e){var t,n,r,o=this.buffer;if(o){if(e>0){if(this.index<o.buffer.buffer.length)return!1}else for(var i=0;i<this.index;i++)if(o.buffer.buffer[i+3]<this.index)return!1;n=o.index,r=o.parent}else{var a=this._tree;n=a.index,r=a._parent}for(;r;n=(t=r).index,r=t._parent)if(n>-1)for(var s=n+e,u=e<0?-1:r._tree.children.length;s!=u;s+=e){var c=r._tree.children[s];if(this.mode&p.IncludeAnonymous||c instanceof P||!c.type.isAnonymous||B(c))return!1}return!0}},{key:"move",value:function(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}},{key:"next",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return this.move(1,e)}},{key:"prev",value:function(){var e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return this.move(-1,e)}},{key:"moveTo",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}},{key:"node",get:function(){if(!this.buffer)return this._tree;var e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)e:for(var r=this.index,o=this.stack.length;o>=0;){for(var i=e;i;i=i._parent)if(i.index==r){if(r==this.index)return i;t=i,n=o+1;break e}r=this.stack[--o]}for(var a=n;a<this.stack.length;a++)t=new j(this.buffer,t,this.stack[a]);return this.bufferNode=new j(this.buffer,t,this.index)}},{key:"tree",get:function(){return this.buffer?null:this._tree._tree}},{key:"iterate",value:function(e,t){for(var n=0;;){var r=!1;
1if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;;){if(r&&t&&t(this),r=this.type.isAnonymous,!n)return;if(this.nextSibling())break;this.parent(),n--,r=!0}}}},{key:"matchContext",value:function(e){if(!this.buffer)return D(this.node.parent,e);for(var t=this.buffer.buffer,n=t.set.types,r=e.length-1,o=this.stack.length-1;r>=0;o--){if(o<0)return D(this._tree,e,r);var i=n[t.buffer[this.stack[o]]];if(!i.isAnonymous){if(e[r]&&e[r]!=i.name)return!1;r--}}return!0}}]);function B(e){return e.children.some(function(e){return e instanceof P||!e.type.isAnonymous||B(e)})}var V=new WeakMap;function z(e,t){if(!e.isAnonymous||t instanceof P||t.type!=e)return 1;var n=V.get(t);if(null==n){n=1;var r,o=u(t.children);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(i.type!=e||!(i instanceof A)){n=1;break}n+=z(e,i)}}catch(e){o.e(e)}finally{o.f()}V.set(t,n)}return n}function U(e,t,n,r,o,i,a,s,u){for(var c=0,l=r;l<o;l++)c+=z(e,t[l]);var f=Math.ceil(1.5*c/8),h=[],d=[];return!function t(n,r,o,a,s){for(var c=o;c<a;){var l=c,p=r[c],v=z(e,n[c]);for(c++;c<a;c++){var m=z(e,n[c]);if(v+m>=f)break;v+=m}if(c==l+1){if(v>f){var g=n[l];t(g.children,g.positions,0,g.children.length,r[l]+s);continue}h.push(n[l])}else{var y=r[c-1]+n[c-1].length-p;h.push(U(e,n,r,l,c,p,y,null,u))}d.push(p+s-i)}}(t,n,r,o,0),(s||u)(h,d,a)}var H=function(){function e(t,n,r,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];d(this,e),this.from=t,this.to=n,this.tree=r,this.offset=o,this.open=!!i|2*!!a}return h(e,[{key:"openStart",get:function(){return(1&this.open)>0}},{key:"openEnd",get:function(){return(2&this.open)>0}}],[{key:"addTree",value:function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=[new e(0,t.length,t,0,!1,o)],a=u(r);try{for(a.s();!(n=a.n()).done;){var s=n.value;s.to>t.length&&i.push(s)}}catch(e){a.e(e)}finally{a.f()}return i}},{key:"applyChanges",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:128;if(!n.length)return t;for(var o=[],i=1,a=t.length?t[0]:null,s=0,u=0,c=0;;s++){var l=s<n.length?n[s]:null,f=l?l.fromA:1e9;if(f-u>=r)for(;a&&a.from<f;){var h=a;if(u>=h.from||f<=h.to||c){var d=Math.max(h.from,u)-c,p=Math.min(h.to,f)-c;h=d>=p?null:new e(d,p,h.tree,h.offset+c,s>0,!!l)}if(h&&o.push(h),a.to>f)break;a=i<t.length?t[i++]:null}if(!l)break;u=l.toA,c=l.toA-l.toB}return o}}])}(),W=h(function e(){d(this,e)},[{key:"startParse",value:function(e,t,n){return"string"==typeof e&&(e=new $(e)),n=n?n.length?n.map(function(e){return new g(e.from,e.to)}):[new g(0,0)]:[new g(0,e.length)],this.createParse(e,t||[],n)}},{key:"parse",value:function(e,t,n){for(var r=this.startParse(e,t,n);;){var o=r.advance();if(o)return o}}}]),$=h(function e(t){d(this,e),this.string=t},[{key:"length",get:function(){return this.string.length}},{key:"chunk",value:function(e){return this.string.slice(e)}},{key:"lineChunks",get:function(){return!1}},{key:"read",value:function(e,t){return this.string.slice(e,t)}}]);new y({perNode:!0})},802:(e,t)=>{function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,k=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"===n(e)&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case h:case a:case u:case s:case p:return e;default:switch(e=e&&e.$$typeof){case l:case d:case g:case m:case c:return e;default:return t}}case i:return t}}}function S(e){return x(e)===h}t.AsyncMode=f,t.ConcurrentMode=h,t.ContextConsumer=l,t.ContextProvider=c,t.Element=o,t.ForwardRef=d,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=u,t.
1StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||x(e)===f},t.isConcurrentMode=S,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===c},t.isElement=function(e){return"object"===n(e)&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===a},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===u},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===h||e===u||e===s||e===p||e===v||"object"===n(e)&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===l||e.$$typeof===d||e.$$typeof===b||e.$$typeof===k||e.$$typeof===w||e.$$typeof===y)},t.typeOf=x},1509:(e,t,n)=>{n.d(t,{BN:()=>o,E3:()=>r,xT:()=>c});for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},o={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},i="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),a="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),s=0;s<10;s++)r[48+s]=r[96+s]=String(s);for(var s=1;s<=24;s++)r[s+111]="F"+s;for(var s=65;s<=90;s++)r[s]=String.fromCharCode(s+32),o[s]=String.fromCharCode(s);for(var u in r)o.hasOwnProperty(u)||(o[u]=r[u]);function c(e){var t=!(i&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||a&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?o:r)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}},2733:(e,t,n)=>{n.d(t,{EI:()=>H,KB:()=>$,Lv:()=>eb,Oh:()=>q,SG:()=>eN,WD:()=>J,Xt:()=>z,Yy:()=>B,Zt:()=>eI,_v:()=>W,b_:()=>X,bj:()=>I,cr:()=>ew,f7:()=>el,jU:()=>eV,mv:()=>E,mz:()=>G,tp:()=>U,y9:()=>eA,yd:()=>ee});var r,o=n(742),i=n(8182),a=n(368),s=n(5223),u=n(7334);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return(t=S(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t,n){return t=d(t),function(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");var n=e;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e,!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){return!1}}()?t.apply(e,n):Reflect.construct(t,n||[],d(e).constructor))}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}function v(e,t){return(v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
1if(!n){if(Array.isArray(e)||(n=y(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function y(e,t){if(e){if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function k(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,S(r.key),r)}}function x(e,t,n){return t&&w(e.prototype,t),n&&w(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function S(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==m(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===m(t)?t:String(t)}var O=new o.uY,A=new o.uY,C=x(function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";k(this,e),this.data=t,this.name=o,i.$t.prototype.hasOwnProperty("tree")||Object.defineProperty(i.$t.prototype,"tree",{get:function(){return E(this)}}),this.parser=n,this.extension=[_.of(this),i.$t.languageData.of(function(e,t,n){var r=P(e,t,n),o=r.type.prop(O);if(!o)return[];var i=e.facet(o),a=r.type.prop(A);if(a){var s,u=r.resolve(t-r.from,n),c=g(a);try{for(c.s();!(s=c.n()).done;){var l=s.value;if(l.test(u,e)){var f=e.facet(l.facet);return"replace"==l.type?f:f.concat(i)}}}catch(e){c.e(e)}finally{c.f()}}return i})].concat(r)},[{key:"isActiveAt",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return P(e,t,n).type.prop(O)==this.data}},{key:"findRegions",value:function(e){var t=this,n=e.facet(_);if((null==n?void 0:n.data)==this.data)return[{from:0,to:e.doc.length}];if(!n||!n.allowsNesting)return[];var r=[],i=function(e,n){if(e.prop(O)==t.data)return void r.push({from:n,to:n+e.length});var a=e.prop(o.uY.mounted);if(a){if(a.tree.prop(O)==t.data){if(a.overlay){var s,u=g(a.overlay);try{for(u.s();!(s=u.n()).done;){var c=s.value;r.push({from:c.from+n,to:c.to+n})}}catch(e){u.e(e)}finally{u.f()}}else r.push({from:n,to:n+e.length});return}else if(a.overlay){var l=r.length;if(i(a.tree,a.overlay[0].from+n),r.length>l)return}}for(var f=0;f<e.children.length;f++){var h=e.children[f];h instanceof o.PH&&i(h,e.positions[f]+n)}};return i(E(e),0),r}},{key:"allowsNesting",get:function(){return!0}}]);function P(e,t,n){var r=e.facet(_),i=E(e).topNode;if(!r||r.allowsNesting)for(var a=i;a;a=a.enter(t,n,o.Qj.ExcludeBuffers))a.type.isTop&&(i=a);return i}C.setState=i.Pe.define();var I=function(e){function t(e,n,r){var o;return k(this,t),(o=h(this,t,[e,n,[],r])).parser=n,o}
1return p(t,e),x(t,[{key:"configure",value:function(e,n){return new t(this.data,this.parser.configure(e),n||this.name)}},{key:"allowsNesting",get:function(){return this.parser.hasWrappers()}}],[{key:"define",value:function(e){var n,r=(n=e.languageData,i.sj.define({combine:n?function(e){return e.concat(n)}:void 0}));return new t(r,e.parser.configure({props:[O.add(function(e){return e.isTop?r:void 0})]}),e.name)}}])}(C);function E(e){var t=e.field(C.state,!1);return t?t.tree:o.PH.empty}var T=x(function e(t){k(this,e),this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()},[{key:"length",get:function(){return this.doc.length}},{key:"syncTo",value:function(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}},{key:"chunk",value:function(e){return this.syncTo(e),this.string}},{key:"lineChunks",get:function(){return!0}},{key:"read",value:function(e,t){var n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}]),M=null,R=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,s=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0;k(this,e),this.parser=t,this.state=n,this.fragments=r,this.tree=o,this.treeLen=i,this.viewport=a,this.skipped=s,this.scheduleOn=u,this.parse=null,this.tempSkipped=[]}return x(e,[{key:"startParse",value:function(){return this.parser.startParse(new T(this.state.doc),this.fragments)}},{key:"work",value:function(e,t){var n=this;return(null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=o.PH.empty&&this.isDone(null!=t?t:this.state.doc.length))?(this.takeTree(),!0):this.withContext(function(){var r;if("number"==typeof e){var i=Date.now()+e;e=function(){return Date.now()>i}}for(n.parse||(n.parse=n.startParse()),null!=t&&(null==n.parse.stoppedAt||n.parse.stoppedAt>t)&&t<n.state.doc.length&&n.parse.stopAt(t);;){var a=n.parse.advance();if(a){if(n.fragments=n.withoutTempSkipped(o.rr.addTree(a,n.fragments,null!=n.parse.stoppedAt)),n.treeLen=null!=(r=n.parse.stoppedAt)?r:n.state.doc.length,n.tree=a,n.parse=null,!(n.treeLen<(null!=t?t:n.state.doc.length)))return!0;n.parse=n.startParse()}if(e())return!1}})}},{key:"takeTree",value:function(){var e,t,n=this;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(function(){for(;!(t=n.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(o.rr.addTree(this.tree,this.fragments,!0)),this.parse=null)}},{key:"withContext",value:function(e){var t=M;M=this;try{return e()}finally{M=t}}},{key:"withoutTempSkipped",value:function(e){for(var t;t=this.tempSkipped.pop();)e=D(e,t.from,t.to);return e}},{key:"changes",value:function(t,n){var r=this.fragments,i=this.tree,a=this.treeLen,s=this.viewport,u=this.skipped;if(this.takeTree(),!t.empty){var c=[];if(t.iterChangedRanges(function(e,t,n,r){return c.push({fromA:e,toA:t,fromB:n,toB:r})}),r=o.rr.applyChanges(r,c),i=o.PH.empty,a=0,s={from:t.mapPos(s.from,-1),to:t.mapPos(s.to,1)},this.skipped.length){u=[];var l,f=g(this.skipped);try{for(f.s();!(l=f.n()).done;){var h=l.value,d=t.mapPos(h.from,1),p=t.mapPos(h.to,-1);d<p&&u.push({from:d,to:p})}}catch(e){f.e(e)}finally{f.f()}}}return new e(this.parser,n,r,i,a,s,u,this.scheduleOn)}},{key:"updateViewport",value:function(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;for(var t=this.skipped.length,n=0;n<this.skipped.length;n++){var r=this.skipped[n],o=r.from,i=r.to;o<e.to&&i>e.from&&(this.fragments=D(this.fragments,o,i),this.skipped.splice(n--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}},{key:"reset",value:function(){this.parse&&(this.takeTree(),this.parse=null)}},{key:"skipUntilInView",value:function(e,t){this.skipped.push({from:e,to:t})}},{key:"isDone",value:function(e){e=Math.min(e,this.state.doc.length);var t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}}],[{key:"create",value:function(t,n,r){return new e(t,n,[],o.PH.empty,0,r,[],null)}},{key:"getSkippingParser",value:function(e){return new(function(t){function n(){return k(this,n),h(this,n,arguments)}return p(n,t),x(n,[{key:"createParse",value:function(t,n,r){var i=r[0].from,a=r[r.length-1].to;return{parsedPos:i,advance:function(){var t=M;if(t){var n,s=g(r);try{for(s.s();!(n=s.n()).done;){var u=n.value;t.tempSkipped.push(u)}}catch(e){s.e(e)}finally{s.f()}e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=a,new o.PH(o.Z6.none,[],[],a-i)},stoppedAt:null,stopAt:function(){}}}}])}(o.iX))}},{key:"get",value:function(){return M}}])}();function D(e,t,n){return o.rr.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}var L=function(){function e(t){k(this,e),this.context=t,this.tree=t.tree}return x(e,[{key:"apply",value:function(t){if(!t.docChanged&&this.tree==this.context.tree)return this;var n=this.context.changes(t.changes,t.state),r=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new e(n)}}],[{key:"init",value:function(t){var n=Math.min(3e3,t.doc.length),r=R.create(t.facet(_).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new e(r)}}])}();C.state=i.sU.define({create:L.init,update:function(e,t){var n,r=g(t.effects);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.is(C.setState))return o.value}}catch(e){r.e(e)}finally{r.f()}return t.startState.facet(_)!=t.state.facet(_)?L.init(t.state):e.apply(t)}});var j=function(e){var t=setTimeout(function(){return e()},500);return function(){return clearTimeout(t)}};"undefined"!=typeof requestIdleCallback&&(j=function(e){var t=-1,n=setTimeout(function(){t=requestIdleCallback(e,{timeout:400})},100);return function(){return t<0?clearTimeout(n):cancelIdleCallback(t)}});var N="undefined"!=typeof navigator&&(null==(r=navigator.scheduling)?void 0:r.isInputPending)?function(){return navigator.scheduling.isInputPending()}:null,F=a.Z9.fromClass(x(function e(t){k(this,e),this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()},[{key:"update",value:function(e){var t=this.view.state.field(C.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)}},{key:"scheduleWork",value:function(){if(!this.working){var e=this.view.state,t=e.field(C.state);
1t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=j(this.work))}}},{key:"work",value:function(e){this.working=null;var t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),!(this.chunkBudget<=0)){var n=this.view,r=n.state,o=n.viewport.to,i=r.field(C.state);if(!(i.tree==i.context.tree&&i.context.isDone(o+1e5))){var a=Date.now()+Math.min(this.chunkBudget,100,e&&!N?Math.max(25,e.timeRemaining()-5):1e9),s=i.context.treeLen<o&&r.doc.length>o+1e3,u=i.context.work(function(){return N&&N()||Date.now()>a},o+1e5*!s);this.chunkBudget-=Date.now()-t,(u||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:C.setState.of(new L(i.context))})),this.chunkBudget>0&&!(u&&!s)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}}}},{key:"checkAsyncSchedule",value:function(e){var t=this;e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(function(){return t.scheduleWork()}).catch(function(e){return(0,a.c_)(t.view.state,e)}).then(function(){return t.workScheduled--}),e.scheduleOn=null)}},{key:"destroy",value:function(){this.working&&this.working()}},{key:"isWorking",value:function(){return!!(this.working||this.workScheduled>0)}}]),{eventHandlers:{focus:function(){this.scheduleWork()}}}),_=i.sj.define({combine:function(e){return e.length?e[0]:null},enables:function(e){return[C.state,F,a.Lz.contentAttributes.compute([e],function(t){var n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]}}),B=x(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];k(this,e),this.language=t,this.support=n,this.extension=[t,n]}),V=i.sj.define(),z=i.sj.define({combine:function(e){if(!e.length)return"  ";var t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(function(e){return e!=t[0]}))throw Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function U(e){var t=e.facet(z);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function H(e,t){var n="",r=e.tabSize,o=e.facet(z)[0];if("	"==o){for(;t>=r;)n+="	",t-=r;o=" "}for(var i=0;i<t;i++)n+=o;return n}function W(e,t){e instanceof i.$t&&(e=new $(e));var n,r=g(e.state.facet(V));try{for(r.s();!(n=r.n()).done;){var o=(0,n.value)(e,t);if(void 0!==o)return o}}catch(e){r.e(e)}finally{r.f()}var a=E(e.state);return a.length>=t?function(e,t,n){var r=t.resolveStack(n),o=t.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(o!=r.node){for(var i=[],a=o;a&&!(a.from<r.node.from||a.to>r.node.to||a.from==r.node.from&&a.type==r.node.type);a=a.parent)i.push(a);for(var s=i.length-1;s>=0;s--)r={node:i[s],next:r}}return Z(r,e,n)}(e,a,t):null}var $=x(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k(this,e),this.state=t,this.options=n,this.unit=U(t)},[{key:"lineAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.state.doc.lineAt(e),r=this.options,o=r.simulateBreak,i=r.simulateDoubleBreak;if(null!=o&&o>=n.from&&o<=n.to)if(i&&o==e)return{text:"",from:e};else if(t<0?o<e:o<=e)return{text:n.text.slice(o-n.from),from:o};else return{text:n.text.slice(0,o-n.from),from:n.from};return n}},{key:"textAfterPos",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";var n=this.lineAt(e,t),r=n.text,o=n.from;return r.slice(e-o,Math.min(r.length,e+100-o))}},{key:"column",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.lineAt(e,t),r=n.text,o=n.from,i=this.countColumn(r,e-o),a=this.options.overrideIndentation?this.options.overrideIndentation(o):-1;return a>-1&&(i+=a-this.countColumn(r,r.search(/\S|$/))),i}},{key:"countColumn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return(0,i.y$)(e,this.state.tabSize,t)}},{key:"lineIndent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.lineAt(e,t),r=n.text,o=n.from,i=this.options.overrideIndentation;if(i){var a=i(o);if(a>-1)return a}return this.countColumn(r,r.search(/\S|$/))}},{key:"simulatedBreak",get:function(){return this.options.simulateBreak||null}}]),q=new o.uY;function Z(e,t,n){for(var r=e;r;r=r.next){var i=function(e){var t=e.type.prop(q);if(t)return t;var n,r=e.firstChild;if(r&&(n=r.type.prop(o.uY.closedBy))){var i=e.lastChild,a=i&&n.indexOf(i.name)>-1;return function(e){return function(e,t,n,r,o){var i=e.textAfter,a=i.match(/^\s*/)[0].length,s=r&&i.slice(a,a+r.length)==r||o==e.pos+a,u=t?function(e){var t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;for(var o=e.options.simulateBreak,i=e.state.doc.lineAt(n.from),a=null==o||o<=i.from?i.to:Math.min(i.to,o),s=n.to;;){var u=t.childAfter(s);if(!u||u==r)return null;if(!u.type.isSkipped){if(u.from>=a)return null;var c=/^ */.exec(i.text.slice(n.to-i.from))[0].length;return{from:n.from,to:n.to+c}}s=u.to}}(e):null;return u?s?e.column(u.from):e.column(u.to):e.baseIndent+(s?0:e.unit*n)}(e,!0,1,void 0,a&&!(e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak)?i.from:void 0)}}return null==e.parent?Q:null}
1(r.node);if(i)return i(Y.create(t,n,r))}return 0}function Q(){return 0}var Y=function(e){function t(e,n,r){var o;return k(this,t),(o=h(this,t,[e.state,e.options])).base=e,o.pos=n,o.context=r,o}return p(t,e),x(t,[{key:"node",get:function(){return this.context.node}},{key:"textAfter",get:function(){return this.textAfterPos(this.pos)}},{key:"baseIndent",get:function(){return this.baseIndentFor(this.node)}},{key:"baseIndentFor",value:function(e){for(var t=this.state.doc.lineAt(e.from);;){for(var n=e.resolve(t.from);n.parent&&n.parent.from==n.from;)n=n.parent;if(function(e,t){for(var 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)}},{key:"continue",value:function(){return Z(this.context.next,this.base,this.pos)}}],[{key:"create",value:function(e,n,r){return new t(e,n,r)}}])}($);function G(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.except,n=e.units,r=void 0===n?1:n;return function(e){var n=t&&t.test(e.textAfter);return e.baseIndent+(n?0:r*e.unit)}}function J(){return i.$t.transactionFilter.of(function(e){if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;var t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;var n=e.newDoc,r=e.newSelection.main.head,o=n.lineAt(r);if(r>o.from+200)return e;var i=n.sliceString(o.from,r);if(!t.some(function(e){return e.test(i)}))return e;var a,s=e.state,u=-1,c=[],l=g(s.selection.ranges);try{for(l.s();!(a=l.n()).done;){var f=a.value.head,h=s.doc.lineAt(f);if(h.from!=u){u=h.from;var d=W(s,h.from);if(null!=d){var p=/^\s*/.exec(h.text)[0],v=H(s,d);p!=v&&c.push({from:h.from,to:h.from+p.length,insert:v})}}}}catch(e){l.e(e)}finally{l.f()}return c.length?[e,{changes:c,sequential:!0}]:e})}var K=i.sj.define(),X=new o.uY;function ee(e){var 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 et(e,t,n){var r,o=g(e.facet(K));try{for(o.s();!(r=o.n()).done;){var i=(0,r.value)(e,t,n);if(i)return i}}catch(e){o.e(e)}finally{o.f()}return function(e,t,n){var r=E(e);if(r.length<n)return null;for(var o=r.resolveStack(n,1),i=null,a=o;a;a=a.next){var s=a.node;if(!(s.to<=n)&&!(s.from>n)){if(i&&s.from<t)break;var u=s.type.prop(X);if(u&&(s.to<r.length-50||r.length==e.doc.length||!function(e){var t=e.lastChild;return t&&t.to==e.to&&t.type.isError}(s))){var c=u(s,e);c&&c.from<=n&&c.from>=t&&c.to>n&&(i=c)}}}return i}(e,t,n)}function en(e,t){var n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}var er=i.Pe.define({map:en}),eo=i.Pe.define({map:en});function ei(e){var t,n=[],r=g(e.state.selection.ranges);try{for(r.s();!(t=r.n()).done;)if(function(){var r=t.value.head;if(n.some(function(e){return e.from<=r&&e.to>=r}))return 1;n.push(e.lineBlockAt(r))}())continue}catch(e){r.e(e)}finally{r.f()}return n}var ea=i.sU.define({create:function(){return a.NZ.none},update:function(e,t){e=e.map(t.changes);var n,r=g(t.effects);try{for(r.s();!(n=r.n()).done;)!function(){var r=n.value;if(r.is(er)&&!function(e,t,n){var r=!1;return e.between(t,t,function(e,o){e==t&&o==n&&(r=!0)}),r}(e,r.value.from,r.value.to)){var o=t.state.facet(eh).preparePlaceholder,i=o?a.NZ.replace({widget:new em(o(t.state,r.value))}):ev;e=e.update({add:[i.range(r.value.from,r.value.to)]})}else r.is(eo)&&(e=e.update({filter:function(e,t){return r.value.from!=e||r.value.to!=t},filterFrom:r.value.from,filterTo:r.value.to}))}()}catch(e){r.e(e)}finally{r.f()}if(t.selection){var o=!1,i=t.selection.main.head;e.between(i,i,function(e,t){e<i&&t>i&&(o=!0)}),o&&(e=e.update({filterFrom:i,filterTo:i,filter:function(e,t){return t<=i||e>=i}}))}return e},provide:function(e){return a.Lz.decorations.from(e)},toJSON:function(e,t){var n=[];return e.between(0,t.doc.length,function(e,t){n.push(e,t)}),n},fromJSON:function(e){if(!Array.isArray(e)||e.length%2)throw RangeError("Invalid JSON for fold state");for(var t=[],n=0;n<e.length;){var r=e[n++],o=e[n++];if("number"!=typeof r||"number"!=typeof o)throw RangeError("Invalid JSON for fold state");t.push(ev.range(r,o))}return a.NZ.set(t,!0)}});
1function es(e,t,n){var r,o=null;return null==(r=e.field(ea,!1))||r.between(t,n,function(e,t){(!o||o.from>e)&&(o={from:e,to:t})}),o}function eu(e,t){return e.field(ea,!1)?t:t.concat(i.Pe.appendConfig.of(ed()))}function ec(e,t){var n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=e.state.doc.lineAt(t.from).number,o=e.state.doc.lineAt(t.to).number;return a.Lz.announce.of("".concat(e.state.phrase(n?"Folded lines":"Unfolded lines")," ").concat(r," ").concat(e.state.phrase("to")," ").concat(o,"."))}var el=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:function(e){var t,n=g(ei(e));try{for(n.s();!(t=n.n()).done;){var r=t.value,o=et(e.state,r.from,r.to);if(o)return e.dispatch({effects:eu(e.state,[er.of(o),ec(e,o)])}),!0}}catch(e){n.e(e)}finally{n.f()}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:function(e){if(!e.state.field(ea,!1))return!1;var t,n=[],r=g(ei(e));try{for(r.s();!(t=r.n()).done;){var o=t.value,i=es(e.state,o.from,o.to);i&&n.push(eo.of(i),ec(e,i,!1))}}catch(e){r.e(e)}finally{r.f()}return n.length&&e.dispatch({effects:n}),n.length>0}},{key:"Ctrl-Alt-[",run:function(e){for(var t=e.state,n=[],r=0;r<t.doc.length;){var o=e.lineBlockAt(r),i=et(t,o.from,o.to);i&&n.push(er.of(i)),r=(i?e.lineBlockAt(i.to):o).to+1}return n.length&&e.dispatch({effects:eu(e.state,n)}),!!n.length}},{key:"Ctrl-Alt-]",run:function(e){var t=e.state.field(ea,!1);if(!t||!t.size)return!1;var n=[];return t.between(0,e.state.doc.length,function(e,t){n.push(eo.of({from:e,to:t}))}),e.dispatch({effects:n}),!0}}],ef={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},eh=i.sj.define({combine:function(e){return(0,i.QR)(e,ef)}});function ed(e){var t=[ea,ek];return e&&t.push(eh.of(e)),t}function ep(e,t){var n=e.state,r=n.facet(eh),o=function(t){var n=e.lineBlockAt(e.posAtDOM(t.target)),r=es(e.state,n.from,n.to);r&&e.dispatch({effects:eo.of(r)}),t.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,o,t);var i=document.createElement("span");return i.textContent=r.placeholderText,i.setAttribute("aria-label",n.phrase("folded code")),i.title=n.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=o,i}var ev=a.NZ.replace({widget:new(function(e){function t(){return k(this,t),h(this,t,arguments)}return p(t,e),x(t,[{key:"toDOM",value:function(e){return ep(e,null)}}])}(a.xO))}),em=function(e){function t(e){var n;return k(this,t),(n=h(this,t)).value=e,n}return p(t,e),x(t,[{key:"eq",value:function(e){return this.value==e.value}},{key:"toDOM",value:function(e){return ep(e,this.value)}}])}(a.xO),eg={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:function(){return!1}},ey=function(e){function t(e,n){var r;return k(this,t),(r=h(this,t)).config=e,r.open=n,r}return p(t,e),x(t,[{key:"eq",value:function(e){return this.config==e.config&&this.open==e.open}},{key:"toDOM",value:function(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);var t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}])}(a.wJ);function eb(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=l(l({},eg),e),n=new ey(t,!0),r=new ey(t,!1),o=a.Z9.fromClass(x(function e(t){k(this,e),this.from=t.viewport.from,this.markers=this.buildMarkers(t)},[{key:"update",value:function(e){(e.docChanged||e.viewportChanged||e.startState.facet(_)!=e.state.facet(_)||e.startState.field(ea,!1)!=e.state.field(ea,!1)||E(e.startState)!=E(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}},{key:"buildMarkers",value:function(e){var t,o=new i.vB,a=g(e.viewportLineBlocks);try{for(a.s();!(t=a.n()).done;){var s=t.value,u=es(e.state,s.from,s.to)?r:et(e.state,s.from,s.to)?n:null;u&&o.add(s.from,s.from,u)}}catch(e){a.e(e)}finally{a.f()}return o.finish()}}])),s=t.domEventHandlers;return[o,(0,a.cU)({class:"cm-foldGutter",markers:function(e){var t;return(null==(t=e.plugin(o))?void 0:t.markers)||i.om.empty},initialSpacer:function(){return new ey(t,!1)},domEventHandlers:l(l({},s),{},{click:function(e,t,n){if(s.click&&s.click(e,t,n))return!0;var r=es(e.state,t.from,t.to);if(r)return e.dispatch({effects:eo.of(r)}),!0;var o=et(e.state,t.from,t.to);return!!o&&(e.dispatch({effects:er.of(o)}),!0)}})}),ed()]}var ek=a.Lz.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}}),ew=function(){function e(t,n){function r(e){var t=u.G.newName();return(o||(o=Object.create(null)))["."+t]=e,t}k(this,e),this.specs=t;var o,i="string"==typeof n.all?n.all:n.all?r(n.all):void 0,a=n.scope;this.scope=a instanceof C?function(e){return e.prop(O)==a.data}:a?function(e){return e==a}:void 0,this.style=(0,s.az)(t.map(function(e){return{tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))}}),{all:i}).style,this.module=o?new u.G(o):null,this.themeType=n.themeType}return x(e,null,[{key:"define",value:function(t,n){return new e(t,n||{})}}])}(),ex=i.sj.define(),eS=i.sj.define({combine:function(e){return e.length?[e[0]]:null}});function eO(e){var t=e.facet(ex);return t.length?t:e.facet(eS)}function eA(e,t){var n,r=[eP];return e instanceof ew&&(e.module&&r.push(a.Lz.styleModule.of(e.module)),n=e.themeType),
1(null==t?void 0:t.fallback)?r.push(eS.of(e)):n?r.push(ex.computeN([a.Lz.darkTheme],function(t){return t.facet(a.Lz.darkTheme)==("dark"==n)?[e]:[]})):r.push(ex.of(e)),r}var eC=x(function e(t){k(this,e),this.markCache=Object.create(null),this.tree=E(t.state),this.decorations=this.buildDeco(t,eO(t.state)),this.decoratedTo=t.viewport.to},[{key:"update",value:function(e){var t=E(e.state),n=eO(e.state),r=n!=eO(e.startState),o=e.view.viewport,i=e.changes.mapPos(this.decoratedTo,1);t.length<o.to&&!r&&t.type==this.tree.type&&i>=o.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=i):(t!=this.tree||e.viewportChanged||r)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=o.to)}},{key:"buildDeco",value:function(e,t){var n=this;if(!t||!this.tree.length)return a.NZ.none;var r,o=new i.vB,u=g(e.visibleRanges);try{for(u.s();!(r=u.n()).done;){var c=r.value,l=c.from,f=c.to;(0,s.DM)(this.tree,t,function(e,t,r){o.add(e,t,n.markCache[r]||(n.markCache[r]=a.NZ.mark({class:r})))},l,f)}}catch(e){u.e(e)}finally{u.f()}return o.finish()}}]),eP=i.Nb.high(a.Z9.fromClass(eC,{decorations:function(e){return e.decorations}})),eI=ew.define([{tag:s._A.meta,color:"#404740"},{tag:s._A.link,textDecoration:"underline"},{tag:s._A.heading,textDecoration:"underline",fontWeight:"bold"},{tag:s._A.emphasis,fontStyle:"italic"},{tag:s._A.strong,fontWeight:"bold"},{tag:s._A.strikethrough,textDecoration:"line-through"},{tag:s._A.keyword,color:"#708"},{tag:[s._A.atom,s._A.bool,s._A.url,s._A.contentSeparator,s._A.labelName],color:"#219"},{tag:[s._A.literal,s._A.inserted],color:"#164"},{tag:[s._A.string,s._A.deleted],color:"#a11"},{tag:[s._A.regexp,s._A.escape,s._A.special(s._A.string)],color:"#e40"},{tag:s._A.definition(s._A.variableName),color:"#00f"},{tag:s._A.local(s._A.variableName),color:"#30a"},{tag:[s._A.typeName,s._A.namespace],color:"#085"},{tag:s._A.className,color:"#167"},{tag:[s._A.special(s._A.variableName),s._A.macroName],color:"#256"},{tag:s._A.definition(s._A.propertyName),color:"#00c"},{tag:s._A.comment,color:"#940"},{tag:s._A.invalid,color:"#f00"}]),eE=a.Lz.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),eT="()[]{}",eM=i.sj.define({combine:function(e){return(0,i.QR)(e,{afterCursor:!0,brackets:eT,maxScanDistance:1e4,renderMatch:eL})}}),eR=a.NZ.mark({class:"cm-matchingBracket"}),eD=a.NZ.mark({class:"cm-nonmatchingBracket"});function eL(e){var t=[],n=e.matched?eR:eD;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}var ej=[i.sU.define({create:function(){return a.NZ.none},update:function(e,t){if(!t.docChanged&&!t.selection)return e;var n,r=[],o=t.state.facet(eM),i=g(t.state.selection.ranges);try{for(i.s();!(n=i.n()).done;){var s=n.value;if(s.empty){var u=eV(t.state,s.head,-1,o)||s.head>0&&eV(t.state,s.head-1,1,o)||o.afterCursor&&(eV(t.state,s.head,1,o)||s.head<t.state.doc.length&&eV(t.state,s.head+1,-1,o));u&&(r=r.concat(o.renderMatch(u,t.state)))}}}catch(e){i.e(e)}finally{i.f()}return a.NZ.set(r,!0)},provide:function(e){return a.Lz.decorations.from(e)}}),eE];function eN(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[eM.of(e),ej]}var eF=new o.uY;function e_(e,t,n){var r=e.prop(t<0?o.uY.openedBy:o.uY.closedBy);if(r)return r;if(1==e.name.length){var i=n.indexOf(e.name);if(i>-1&&i%2==+(t<0))return[n[i+t]]}return null}function eB(e){var t=e.type.prop(eF);return t?t(e.node):e}function eV(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.maxScanDistance||1e4,i=r.brackets||eT,a=E(e),s=a.resolveInner(t,n),u=s;u;u=u.parent){var c=e_(u.type,n,i);if(c&&u.from<u.to){var l=eB(u);if(l&&(n>0?t>=l.from&&t<l.to:t>l.from&&t<=l.to))return function(e,t,n,r,o,i,a){var s=r.parent,u={from:o.from,to:o.to},c=0,l=null==s?void 0:s.cursor();if(l&&(n<0?l.childBefore(r.from):l.childAfter(r.to)))do if(n<0?l.to<=r.from:l.from>=r.to){if(0==c&&i.indexOf(l.type.name)>-1&&l.from<l.to){var f=eB(l);return{start:u,end:f?{from:f.from,to:f.to}:void 0,matched:!0}}else if(e_(l.type,n,a))c++;
1else if(e_(l.type,-n,a)){if(0==c){var h=eB(l);return{start:u,end:h&&h.from<h.to?{from:h.from,to:h.to}:void 0,matched:!1}}c--}}while(n<0?l.prevSibling():l.nextSibling());return{start:u,matched:!1}}(0,0,n,u,l,c,i)}}return function(e,t,n,r,o,i,a){var s=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),u=a.indexOf(s);if(u<0||u%2==0!=n>0)return null;for(var c={from:n<0?t-1:t,to:n>0?t+1:t},l=e.doc.iterRange(t,n>0?e.doc.length:0),f=0,h=0;!l.next().done&&h<=i;){var d=l.value;n<0&&(h+=d.length);for(var p=t+h*n,v=n>0?0:d.length-1,m=n>0?d.length:-1;v!=m;v+=n){var g=a.indexOf(d[v]);if(!(g<0)&&r.resolveInner(p+v,1).type==o)if(g%2==0==n>0)f++;else{if(1==f)return{start:c,end:{from:p+v,to:p+v+1},matched:g>>1==u>>1};f--}}n>0&&(h+=d.length)}return l.done?{start:c,matched:!1}:null}(e,t,n,a,s.type,o,i)}for(var ez=Object.create(null),eU=[o.Z6.none],eH=[],eW=Object.create(null),e$=Object.create(null),eq=0,eZ=[["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"]];eq<eZ.length;eq++){var eQ=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,2)||y(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(eZ[eq],2),eY=eQ[0],eG=eQ[1];e$[eY]=function(e,t){var n,r=[],i=g(t.split(" "));try{for(i.s();!(n=i.n()).done;){var a,u=n.value,c=[],l=g(u.split("."));try{for(l.s();!(a=l.n()).done;){var h=a.value,d=e[h]||s._A[h];d?"function"==typeof d?c.length?c=c.map(d):eJ(h,"Modifier ".concat(h," used at start of tag")):c.length?eJ(h,"Tag ".concat(h," used as modifier")):c=Array.isArray(d)?d:[d]:eJ(h,"Unknown highlighting tag ".concat(h))}}catch(e){l.e(e)}finally{l.f()}var p,v=g(c);try{for(v.s();!(p=v.n()).done;){var m=p.value;r.push(m)}}catch(e){v.e(e)}finally{v.f()}}}catch(e){i.e(e)}finally{i.f()}if(!r.length)return 0;var y=t.replace(/ /g,"_"),b=y+" "+r.map(function(e){return e.id}),k=eW[b];if(k)return k.id;var w=eW[b]=o.Z6.define({id:eU.length,name:y,props:[(0,s.pn)(f({},y,r))]});return eU.push(w),w.id}(ez,eG)}function eJ(e,t){eH.indexOf(e)>-1||(eH.push(e),console.warn(t))}function eK(e){return e.length<=4096&&/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/.test(e)}function eX(e){for(var t=e.iter();!t.next().done;)if(eK(t.value))return!0;return!1}var e0=i.sj.define({combine:function(e){return e.some(function(e){return e})}});function e1(e,t,n){var r=new i.vB,a=e.visibleRanges;n||(a=function(e,t){var n,r=t.iter(),o=0,i=[],a=null,s=g(e);try{for(s.s();!(n=s.n()).done;){var u=n.value,c=u.from,l=u.to;if(!a||!(a.to>c)||!((c=a.to)>=l))for(o+r.value.length<c&&(r.next(c-(o+r.value.length)),o=c);;){var f=o,h=o+r.value.length;if(!r.lineBreak&&eK(r.value)&&(a&&a.to>f-10?a.to=Math.min(l,h):i.push(a={from:f,to:Math.min(l,h)})),h>=l)break;o=h,r.next()}}}catch(e){s.e(e)}finally{s.f()}return i}(a,e.state.doc));var s,u=g(a);try{for(u.s();!(s=u.n()).done;){var c=s.value,l=c.from,f=c.to;t.iterate({enter:function(e){var t=e.type.prop(o.uY.isolate);t&&r.add(e.from,e.to,e2[t])},from:l,to:f})}}catch(e){u.e(e)}finally{u.f()}return r.finish()}x(function e(t){k(this,e),this.always=t.state.facet(e0)||t.textDirection!=a.OP.LTR||t.state.facet(a.Lz.perLineTextDirection),this.hasRTL=!this.always&&eX(t.state.doc),this.tree=E(t.state),this.decorations=this.always||this.hasRTL?e1(t,this.tree,this.always):a.NZ.none},[{key:"update",value:function(e){var t,n,r=e.state.facet(e0)||e.view.textDirection!=a.OP.LTR||e.state.facet(a.Lz.perLineTextDirection);if(r||this.hasRTL||(t=e.changes,n=!1,t.iterChanges(function(e,t,r,o,i){!n&&eX(i)&&(n=!0)}),!n)||(this.hasRTL=!0),r||this.hasRTL){var o=E(e.state);(r!=this.always||o!=this.tree||e.docChanged||e.viewportChanged)&&(this.tree=o,this.always=r,this.decorations=e1(e.view,o,r))}}}]);var e2={rtl:a.NZ.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"rtl"},bidiIsolate:a.OP.RTL}),ltr:a.NZ.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"ltr"},bidiIsolate:a.OP.LTR}
1),auto:a.NZ.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"auto"},bidiIsolate:null})}},3526:(e,t,n)=>{var r=n(8734),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=d(n);o&&o!==p&&e(t,o,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var s=u(t),v=u(n),m=0;m<a.length;++m){var g=a[m];if(!i[g]&&!(r&&r[g])&&!(v&&v[g])&&!(s&&s[g])){var y=h(n,g);try{c(t,g,y)}catch(e){}}}}return t}},3953:(e,t,n)=>{n.d(t,{k:()=>i});for(var r=[],o=0;o<256;++o)r.push((o+256).toString(16).slice(1));function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return r[e[t+0]]+r[e[t+1]]+r[e[t+2]]+r[e[t+3]]+"-"+r[e[t+4]]+r[e[t+5]]+"-"+r[e[t+6]]+r[e[t+7]]+"-"+r[e[t+8]]+r[e[t+9]]+"-"+r[e[t+10]]+r[e[t+11]]+r[e[t+12]]+r[e[t+13]]+r[e[t+14]]+r[e[t+15]]}},5109:(e,t,n)=>{n.d(t,{A:()=>c});var r,o,i=n(5333),a=n(3953),s=0,u=0;let c=function(e,t,n){var c=t&&n||0,l=t||Array(16),f=(e=e||{}).node||r,h=void 0!==e.clockseq?e.clockseq:o;if(null==f||null==h){var d=e.random||(e.rng||i.A)();null==f&&(f=r=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==h&&(h=o=(d[6]<<8|d[7])&16383)}var p=void 0!==e.msecs?e.msecs:Date.now(),v=void 0!==e.nsecs?e.nsecs:u+1,m=p-s+(v-u)/1e4;if(m<0&&void 0===e.clockseq&&(h=h+1&16383),(m<0||p>s)&&void 0===e.nsecs&&(v=0),v>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");s=p,u=v,o=h;var g=((0xfffffff&(p+=122192928e5))*1e4+v)%0x100000000;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var y=p/0x100000000*1e4&0xfffffff;l[c++]=y>>>8&255,l[c++]=255&y,l[c++]=y>>>24&15|16,l[c++]=y>>>16&255,l[c++]=h>>>8|128,l[c++]=255&h;for(var b=0;b<6;++b)l[c+b]=f[b];return t||(0,a.k)(l)}},5119:(e,t,n)=>{n.d(t,{A:()=>a});let r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};var o=n(5333),i=n(3953);let a=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();var a=(e=e||{}).random||(e.rng||o.A)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t){n=n||0;for(var s=0;s<16;++s)t[n+s]=a[s];return t}return(0,i.k)(a)}},5223:(e,t,n)=>{n.d(t,{DM:()=>y,_A:()=>j,az:()=>g,pn:()=>p});var r=n(742);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return a(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==o(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}(r.key),r)}}
1function c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var l=0,f=function(){function e(t,n,r,o){s(this,e),this.name=t,this.set=n,this.base=r,this.modified=o,this.id=l++}return c(e,[{key:"toString",value:function(){var e,t=this.name,n=i(this.modified);try{for(n.s();!(e=n.n()).done;){var r=e.value;r.name&&(t="".concat(r.name,"(").concat(t,")"))}}catch(e){n.e(e)}finally{n.f()}return t}}],[{key:"define",value:function(t,n){if(t instanceof e&&(n=t),null==n?void 0:n.base)throw Error("Can not derive from a modified tag");var r=new e("string"==typeof t?t:"?",[],null,[]);if(r.set.push(r),n){var o,a=i(n.set);try{for(a.s();!(o=a.n()).done;){var s=o.value;r.set.push(s)}}catch(e){a.e(e)}finally{a.f()}}return r}},{key:"defineModifier",value:function(e){var t=new d(e);return function(e){return e.modified.indexOf(t)>-1?e:d.get(e.base||e,e.modified.concat(t).sort(function(e,t){return e.id-t.id}))}}}])}(),h=0,d=function(){function e(t){s(this,e),this.name=t,this.instances=[],this.id=h++}return c(e,null,[{key:"get",value:function(t,n){if(!n.length)return t;var r=n[0].instances.find(function(e){var r,o;return e.base==t&&(r=n,o=e.modified,r.length==o.length&&r.every(function(e,t){return e==o[t]}))});if(r)return r;var o,a=[],s=new f(t.name,a,t,n),u=i(n);try{for(u.s();!(o=u.n()).done;)o.value.instances.push(s)}catch(e){u.e(e)}finally{u.f()}var c,l=function(e){for(var t=[[]],n=0;n<e.length;n++)for(var r=0,o=t.length;r<o;r++)t.push(t[r].concat(e[n]));return t.sort(function(e,t){return t.length-e.length})}(n),h=i(t.set);try{for(h.s();!(c=h.n()).done;){var d=c.value;if(!d.modified.length){var p,v=i(l);try{for(v.s();!(p=v.n()).done;){var m=p.value;a.push(e.get(d,m))}}catch(e){v.e(e)}finally{v.f()}}}}catch(e){h.e(e)}finally{h.f()}return s}}])}();function p(e){var t=Object.create(null);for(var n in e){var r=e[n];Array.isArray(r)||(r=[r]);var o,a=i(n.split(" "));try{for(a.s();!(o=a.n()).done;){var s=o.value;if(s){for(var u=[],c=2,l=s,f=0;;){if("..."==l&&f>0&&f+3==s.length){c=1;break}var h=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!h)throw RangeError("Invalid path: "+s);if(u.push("*"==h[0]?"":'"'==h[0][0]?JSON.parse(h[0]):h[0]),(f+=h[0].length)==s.length)break;var d=s[f++];if(f==s.length&&"!"==d){c=0;break}if("/"!=d)throw RangeError("Invalid path: "+s);l=s.slice(f)}var p=u.length-1,g=u[p];if(!g)throw RangeError("Invalid path: "+s);var y=new m(r,c,p>0?u.slice(0,p):null);t[g]=y.sort(t[g])}}}catch(e){a.e(e)}finally{a.f()}}return v.add(t)}var v=new r.uY,m=c(function e(t,n,r,o){s(this,e),this.tags=t,this.mode=n,this.context=r,this.next=o},[{key:"opaque",get:function(){return 0==this.mode}},{key:"inherit",get:function(){return 1==this.mode}},{key:"sort",value:function(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}},{key:"depth",get:function(){return this.context?this.context.length:0}}]);function g(e,t){var n,r=Object.create(null),o=i(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(Array.isArray(a.tag)){var s,u=i(a.tag);try{for(u.s();!(s=u.n()).done;)r[s.value.id]=a.class}catch(e){u.e(e)}finally{u.f()}}else r[a.tag.id]=a.class}}catch(e){o.e(e)}finally{o.f()}var c=t||{},l=c.scope,f=c.all,h=void 0===f?null:f;return{style:function(e){var t,n=h,o=i(e);try{for(o.s();!(t=o.n()).done;){var a,s=t.value,u=i(s.set);try{for(u.s();!(a=u.n()).done;){var c=r[a.value.id];if(c){n=n?n+" "+c:c;break}}}catch(e){u.e(e)}finally{u.f()}}}catch(e){o.e(e)}finally{o.f()}return n},scope:l}}function y(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e.length,i=new b(r,Array.isArray(t)?t:[t],n);i.highlightRange(e.cursor(),r,o,"",i.highlighters),i.flush(o)}m.empty=new m([],2,null);var b=c(function e(t,n,r){s(this,e),this.at=t,this.highlighters=n,this.span=r,this.class=""},[{key:"startSpan",value:function(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}},{key:"flush",value:function(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}},{key:"highlightRange",value:function(e,t,n,o,a){var s=e.type,u=e.from,c=e.to;if(!(u>=n)&&!(c<=t)){s.isTop&&(a=this.highlighters.filter(function(e){return!e.scope||e.scope(s)}));var l=o,f=function(e){for(var t=e.type.prop(v);t&&t.context&&!e.matchContext(t.context);
1)t=t.next;return t||null}(e)||m.empty,h=function(e,t){var n,r=null,o=i(e);try{for(o.s();!(n=o.n()).done;){var a=n.value.style(t);a&&(r=r?r+" "+a:a)}}catch(e){o.e(e)}finally{o.f()}return r}(a,f.tags);if(h&&(l&&(l+=" "),l+=h,1==f.mode&&(o+=(o?" ":"")+h)),this.startSpan(Math.max(t,u),l),!f.opaque){var d=e.tree&&e.tree.prop(r.uY.mounted);if(d&&d.overlay){for(var p=e.node.enter(d.overlay[0].from+u,1),g=this.highlighters.filter(function(e){return!e.scope||e.scope(d.tree.type)}),y=e.firstChild(),b=0,k=u;;b++){var w=b<d.overlay.length?d.overlay[b]:null,x=w?w.from+u:c,S=Math.max(t,k),O=Math.min(n,x);if(S<O&&y)for(;e.from<O&&(this.highlightRange(e,S,O,o,a),this.startSpan(Math.min(O,e.to),l),!(e.to>=x)&&e.nextSibling()););if(!w||x>n)break;(k=w.to+u)>t&&(this.highlightRange(p.cursor(),Math.max(t,w.from+u),Math.min(n,k),"",g),this.startSpan(Math.min(n,k),l))}y&&e.parent()}else if(e.firstChild()){d&&(o="");do{if(e.to<=t)continue;if(e.from>=n)break;this.highlightRange(e,t,n,o,a),this.startSpan(Math.min(n,e.to),l)}while(e.nextSibling());e.parent()}}}}}]),k=f.define,w=k(),x=k(),S=k(x),O=k(x),A=k(),C=k(A),P=k(A),I=k(),E=k(I),T=k(),M=k(),R=k(),D=k(R),L=k(),j={comment:w,lineComment:k(w),blockComment:k(w),docComment:k(w),name:x,variableName:k(x),typeName:S,tagName:k(S),propertyName:O,attributeName:k(O),className:k(x),labelName:k(x),namespace:k(x),macroName:k(x),literal:A,string:C,docString:k(C),character:k(C),attributeValue:k(C),number:P,integer:k(P),float:k(P),bool:k(A),regexp:k(A),escape:k(A),color:k(A),url:k(A),keyword:T,self:k(T),null:k(T),atom:k(T),unit:k(T),modifier:k(T),operatorKeyword:k(T),controlKeyword:k(T),definitionKeyword:k(T),moduleKeyword:k(T),operator:M,derefOperator:k(M),arithmeticOperator:k(M),logicOperator:k(M),bitwiseOperator:k(M),compareOperator:k(M),updateOperator:k(M),definitionOperator:k(M),typeOperator:k(M),controlOperator:k(M),punctuation:R,separator:k(R),bracket:D,angleBracket:k(D),squareBracket:k(D),paren:k(D),brace:k(D),content:I,heading:E,heading1:k(E),heading2:k(E),heading3:k(E),heading4:k(E),heading5:k(E),heading6:k(E),contentSeparator:k(I),list:k(I),quote:k(I),emphasis:k(I),strong:k(I),link:k(I),monospace:k(I),strikethrough:k(I),inserted:k(),deleted:k(),changed:k(),invalid:k(),meta:L,documentMeta:k(L),annotation:k(L),processingInstruction:k(L),definition:f.defineModifier("definition"),constant:f.defineModifier("constant"),function:f.defineModifier("function"),standard:f.defineModifier("standard"),local:f.defineModifier("local"),special:f.defineModifier("special")};for(var N in j){var F=j[N];F instanceof f&&(F.name=N)}g([{tag:j.link,class:"tok-link"},{tag:j.heading,class:"tok-heading"},{tag:j.emphasis,class:"tok-emphasis"},{tag:j.strong,class:"tok-strong"},{tag:j.keyword,class:"tok-keyword"},{tag:j.atom,class:"tok-atom"},{tag:j.bool,class:"tok-bool"},{tag:j.url,class:"tok-url"},{tag:j.labelName,class:"tok-labelName"},{tag:j.inserted,class:"tok-inserted"},{tag:j.deleted,class:"tok-deleted"},{tag:j.literal,class:"tok-literal"},{tag:j.string,class:"tok-string"},{tag:j.number,class:"tok-number"},{tag:[j.regexp,j.escape,j.special(j.string)],class:"tok-string2"},{tag:j.variableName,class:"tok-variableName"},{tag:j.local(j.variableName),class:"tok-variableName tok-local"},{tag:j.definition(j.variableName),class:"tok-variableName tok-definition"},{tag:j.special(j.variableName),class:"tok-variableName2"},{tag:j.definition(j.propertyName),class:"tok-propertyName tok-definition"},{tag:j.typeName,class:"tok-typeName"},{tag:j.namespace,class:"tok-namespace"},{tag:j.className,class:"tok-className"},{tag:j.macroName,class:"tok-macroName"},{tag:j.propertyName,class:"tok-propertyName"},{tag:j.operator,class:"tok-operator"},{tag:j.comment,class:"tok-comment"},{tag:j.meta,class:"tok-meta"},{tag:j.invalid,class:"tok-invalid"},{tag:j.punctuation,class:"tok-punctuation"}])},5333:(e,t,n)=>{n.d(t,{A:()=>i});var r,o=new Uint8Array(16);function i(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}}
1,5512:(e,t,n)=>{n.d(t,{z:()=>a});var r=[],o=[];function i(e){return e>=127462&&e<=127487}function a(e,t){var n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=!(arguments.length>3)||void 0===arguments[3]||arguments[3];return(n?s:function(e,t,n){for(;t>0;){var r=s(e,t-2,n);if(r<t)return r;t--}return 0})(e,t,r)}function s(e,t,n){if(t==e.length)return t;t&&c(e.charCodeAt(t))&&l(e.charCodeAt(t-1))&&t--;var a=u(e,t);for(t+=f(a);t<e.length;){var s=u(e,t);if(8205==a||8205==s||n&&function(e){if(e<768)return!1;for(var t=0,n=r.length;;){var i=t+n>>1;if(e<r[i])n=i;else{if(!(e>=o[i]))return!0;t=i+1}if(t==n)return!1}}(s))t+=f(s),a=s;else if(i(s)){for(var h=0,d=t-2;d>=0&&i(u(e,d));)h++,d-=2;if(h%2==0)break;t+=2}else break}return t}function u(e,t){var n=e.charCodeAt(t);if(!l(n)||t+1==e.length)return n;var r=e.charCodeAt(t+1);return c(r)?(n-55296<<10)+(r-56320)+65536:n}function c(e){return e>=56320&&e<57344}function l(e){return e>=55296&&e<56320}function f(e){return e<65536?1:2}!function(){for(var e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(function(e){return e?parseInt(e,36):1}),t=0,n=0;t<e.length;t++)(t%2?o:r).push(n+=e[t])}()},6155:(e,t,n)=>{n.d(t,{A:()=>r});function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}},7308:(e,t,n)=>{n.d(t,{Lz:()=>s.Lz,Ay:()=>r3});var r=n(6155),o=n(9084),i=n(2115),a=n(8182),s=n(368),u=n(2733),c=n(742);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==l(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l(t)?t:String(t)}(r.key),r)}}function d(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return v(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t){return function(n){var r=n.state,o=n.dispatch;if(r.readOnly)return!1;var i=e(t,r);return!!i&&(o(r.update(i)),!0)}}var g=m(function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.selection.ranges,o=[],i=-1,a=p(r);try{for(a.s();!(n=a.n()).done;){var s=n.value,u=s.from,c=s.to,l=o.length,f=1e9,h=k(t,u).line;if(h){for(var d=u;d<=c;){var v=t.doc.lineAt(d);if(v.from>i&&(u==c||c>v.from)){i=v.from;var m=/^\s*/.exec(v.text)[0].length,g=m==v.length,y=v.text.slice(m,m+h.length)==h?m:-1;m<v.text.length&&m<f&&(f=m),o.push({line:v,comment:y,token:h,indent:m,empty:g,single:!1})}d=v.to+1}if(f<1e9)for(var b=l;b<o.length;b++)o[b].indent<o[b].line.text.length&&(o[b].indent=f);o.length==l+1&&(o[l].single=!0)}}}catch(e){a.e(e)}finally{a.f()}if(2!=e&&o.some(function(e){return e.comment<0&&(!e.empty||e.single)})){var w,x=[],S=p(o);try{for(S.s();!(w=S.n()).done;){var O=w.value,A=O.line,C=O.token,P=O.indent,I=O.empty;(O.single||!I)&&x.push({from:A.from+P,insert:C+" "})}}catch(e){S.e(e)}finally{S.f()}var E=t.changes(x);return{changes:E,selection:t.selection.map(E,1)}}if(1!=e&&o.some(function(e){return e.comment>=0})){var T,M=[],R=p(o);try{for(R.s();!(T=R.n()).done;){var D=T.value,L=D.line,j=D.comment,N=D.token;if(j>=0){var F=L.from+j,_=F+N.length;" "==L.text[_-L.from]&&_++,M.push({from:F,to:_})}}}catch(e){R.e(e)}finally{R.f()}return{changes:M}}return null},0),y=m(w,0),b=m(function(e,t){return w(e,t,function(e){var t,n=[],r=p(e.selection.ranges);try{for(r.s();!(t=r.n()).done;){var o=t.value,i=e.doc.lineAt(o.from),a=o.to<=i.to?i:e.doc.lineAt(o.to);a.from>i.from&&a.from==o.to&&(a=o.to==i.to+1?i:e.doc.lineAt(o.to-1));var s=n.length-1;s>=0&&n[s].to>i.from?n[s].to=a.to:n.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:a.to})}}catch(e){r.e(e)}finally{r.f()}return n}(t))},0);function k(e,t){var n=e.languageDataAt("commentTokens",t,1);return n.length?n[0]:{}}function w(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.selection.ranges,r=n.map(function(e){return k(t,e.from).block});if(!r.every(function(e){return e}))return null;var o=n.map(function(e,n){return function(e,t,n,r){var o,i,a=t.open,s=t.close,u=e.sliceDoc(n-50,n),c=e.sliceDoc(r,r+50),l=/\s*$/.exec(u)[0].length,f=/^\s*/.exec(c)[0].length,h=u.length-l;if(u.slice(h-a.length,h)==a&&c.slice(f,f+s.length)==s)return{open:{pos:n-l,margin:l&&1},close:{pos:r+f,margin:f&&1}};r-n<=100?o=i=e.sliceDoc(n,r):(o=e.sliceDoc(n,n+50),i=e.sliceDoc(r-50,r));var d=/^\s*/.exec(o)[0].length,p=/\s*$/.exec(i)[0].length,v=i.length-p-s.length;return o.slice(d,d+a.length)==a&&i.slice(v,v+s.length)==s?{open:{pos:n+d+a.length,margin:+!!/\s/.test(o.charAt(d+a.length))},close:{pos:r-p-s.length,margin:+!!/\s/.test(i.charAt(v-1))}}:null}(t,r[n],e.from,e.to)});if(2!=e&&!o.every(function(e){return e}))return{changes:t.changes(n.map(function(e,t){return o[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}]}))};if(1!=e&&o.some(function(e){return e})){for(var i,a=[],s=0;s<o.length;s++)if(i=o[s]){var u=r[s],c=i.open,l=i.close;a.push({from:c.pos-u.open.length,to:c.pos+c.margin},{from:l.pos-l.margin,to:l.pos+u.close.length})}return{changes:a}}return null}var x=a.YH.define(),S=a.YH.define(),O=a.sj.define(),A=a.sj.define({combine:function(e){return(0,a.QR)(e,{minDepth:100,newGroupDelay:500,joinToEvent:function(e,t){return t}},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:function(e,t){return function(n,r){return e(n,r)||t(n,r)}}})}}),C=a.sU.define({create:function(){return B.empty},update:function(e,t){var n=t.state.facet(A),r=t.annotation(x);if(r){var o=R.fromTransaction(t,r.selection),i=r.side,s=0==i?e.undone:e.done;return s=o?D(s,s.length,n.minDepth,o):N(s,t.startState.selection),new B(0==i?r.rest:s,0==i?s:r.rest)}var u=t.annotation(S);if(("full"==u||"before"==u)&&(e=e.isolate()),!1===t.annotation(a.ZX.addToHistory)
1)return t.changes.empty?e:e.addMapping(t.changes.desc);var c=R.fromTransaction(t),l=t.annotation(a.ZX.time),f=t.annotation(a.ZX.userEvent);return c?e=e.addChanges(c,l,f,n,t):t.selection&&(e=e.addSelection(t.startState.selection,l,f,n.newGroupDelay)),("full"==u||"after"==u)&&(e=e.isolate()),e},toJSON:function(e){return{done:e.done.map(function(e){return e.toJSON()}),undone:e.undone.map(function(e){return e.toJSON()})}},fromJSON:function(e){return new B(e.done.map(R.fromJSON),e.undone.map(R.fromJSON))}});function P(e,t){return function(n){var r=n.state,o=n.dispatch;if(!t&&r.readOnly)return!1;var i=r.field(C,!1);if(!i)return!1;var a=i.pop(e,r,t);return!!a&&(o(a),!0)}}var I=P(0,!1),E=P(1,!1),T=P(0,!0),M=P(1,!0),R=function(){function e(t,n,r,o,i){f(this,e),this.changes=t,this.effects=n,this.mapped=r,this.startSelection=o,this.selectionsAfter=i}return d(e,[{key:"setSelAfter",value:function(t){return new e(this.changes,this.effects,this.mapped,this.startSelection,t)}},{key:"toJSON",value:function(){var e,t,n;return{changes:null==(e=this.changes)?void 0:e.toJSON(),mapped:null==(t=this.mapped)?void 0:t.toJSON(),startSelection:null==(n=this.startSelection)?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(function(e){return e.toJSON()})}}}],[{key:"fromJSON",value:function(t){return new e(t.changes&&a.VR.fromJSON(t.changes),[],t.mapped&&a.Gu.fromJSON(t.mapped),t.startSelection&&a.OF.fromJSON(t.startSelection),t.selectionsAfter.map(a.OF.fromJSON))}},{key:"fromTransaction",value:function(t,n){var r,o=j,i=p(t.startState.facet(O));try{for(i.s();!(r=i.n()).done;){var a=(0,r.value)(t);a.length&&(o=o.concat(a))}}catch(e){i.e(e)}finally{i.f()}return!o.length&&t.changes.empty?null:new e(t.changes.invert(t.startState.doc),o,void 0,n||t.startState.selection,j)}},{key:"selection",value:function(t){return new e(void 0,j,void 0,void 0,t)}}])}();function D(e,t,n,r){var o=e.slice(t+1>n+20?t-n-1:0,t);return o.push(r),o}function L(e,t){return e.length?t.length?e.concat(t):e:t}var j=[];function N(e,t){if(!e.length)return[R.selection([t])];var n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),D(e,e.length-1,1e9,n.setSelAfter(r)))}function F(e,t){if(!e.length)return e;for(var n=e.length,r=j;n;){var o=function(e,t,n){var r=L(e.selectionsAfter.length?e.selectionsAfter.map(function(e){return e.map(t)}):j,n);if(!e.changes)return R.selection(r);var o=e.changes.map(t),i=t.mapDesc(e.changes,!0),s=e.mapped?e.mapped.composeDesc(i):i;return new R(o,a.Pe.mapEffects(e.effects,t),s,e.startSelection.map(i),r)}(e[n-1],t,r);if(o.changes&&!o.changes.empty||o.effects.length){var i=e.slice(0,n);return i[n-1]=o,i}t=o.mapped,n--,r=o.selectionsAfter}return r.length?[R.selection(r)]:j}var _=/^(input\.type|delete)($|\.)/,B=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;f(this,e),this.done=t,this.undone=n,this.prevTime=r,this.prevUserEvent=o}return d(e,[{key:"isolate",value:function(){return this.prevTime?new e(this.done,this.undone):this}},{key:"addChanges",value:function(t,n,r,o,i){var s,u,c,l,f=this.done,h=f[f.length-1];return new e(f=h&&h.changes&&!h.changes.empty&&t.changes&&(!r||_.test(r))&&(!h.selectionsAfter.length&&n-this.prevTime<o.newGroupDelay&&o.joinToEvent(i,(s=h.changes,u=t.changes,c=[],l=!1,s.iterChangedRanges(function(e,t){return c.push(e,t)}),u.iterChangedRanges(function(e,t,n,r){for(var o=0;o<c.length;){var i=c[o++],a=c[o++];r>=i&&n<=a&&(l=!0)}}),l))||"input.type.compose"==r)?D(f,f.length-1,o.minDepth,new R(t.changes.compose(h.changes),L(a.Pe.mapEffects(t.effects,h.changes),h.effects),h.mapped,h.startSelection,j)):D(f,f.length,o.minDepth,t),j,n,r)}},{key:"addSelection",value:function(t,n,r,o){var i,a=this.done.length?this.done[this.done.length-1].selectionsAfter:j;return a.length>0&&n-this.prevTime<o&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&(i=a[a.length-1],i.ranges.length==t.ranges.length&&0===i.ranges.filter(function(e,n){return e.empty!=t.ranges[n].empty}).length)?this:new e(N(this.done,t),this.undone,n,r)}},{key:"addMapping",value:function(t){return new e(F(this.done,t),F(this.undone,t),this.prevTime,this.prevUserEvent)}},{key:"pop",value:function(e,t,n){var r,o,i=0==e?this.done:this.undone;if(0==i.length)return null;var a=i[i.length-1],s=a.selectionsAfter[0]||t.selection;if(n&&a.selectionsAfter.length)return t.update({selection:a.selectionsAfter[a.selectionsAfter.length-1],annotations:x.of({side:e,rest:(r=i[i.length-1],(o=i.slice())[i.length-1]=r.setSelAfter(r.selectionsAfter.slice(0,r.selectionsAfter.length-1)),o),selection:s}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(!a.changes)return null;var u=1==i.length?j:i.slice(0,i.length-1);return a.mapped&&(u=F(u,a.mapped)),t.update({changes:a.changes,selection:a.startSelection,effects:a.effects,annotations:x.of({side:e,rest:u,selection:s}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}}])}();B.empty=new B(j,j);var V=[{key:"Mod-z",run:I,preventDefault:!0}
1,{key:"Mod-y",mac:"Mod-Shift-z",run:E,preventDefault:!0},{linux:"Ctrl-Shift-z",run:E,preventDefault:!0},{key:"Mod-u",run:T,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:M,preventDefault:!0}];function z(e,t){return a.OF.create(e.ranges.map(t),e.mainIndex)}function U(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function H(e,t){var n=e.state,r=e.dispatch,o=z(n.selection,t);return!o.eq(n.selection,!0)&&(r(U(n,o)),!0)}function W(e,t){return a.OF.cursor(t?e.to:e.from)}function $(e,t){return H(e,function(n){return n.empty?e.moveByChar(n,t):W(n,t)})}function q(e){return e.textDirectionAt(e.state.selection.main.head)==s.OP.LTR}var Z=function(e){return $(e,!q(e))},Q=function(e){return $(e,q(e))};function Y(e,t){return H(e,function(n){return n.empty?e.moveByGroup(n,t):W(n,t)})}var G="undefined"!=typeof Intl&&Intl.Segmenter?new Intl.Segmenter(void 0,{granularity:"word"}):null;function J(e,t,n){var r=e.state.charCategorizer(t.from),o=CharCategory.Space,i=t.from,a=0,s=!1,u=!1,c=!1,l=function(t){if(s)return!1;i+=n?t.length:-t.length;var l,f=r(t);if(f==CharCategory.Word&&128>t.charCodeAt(0)&&/[\W_]/.test(t)&&(f=-1),o==CharCategory.Space&&(o=f),o!=f)return!1;if(o==CharCategory.Word)if(t.toLowerCase()==t){if(!n&&u)return!1;c=!0}else if(c){if(n)return!1;s=!0}else{if(u&&n&&r(l=e.state.sliceDoc(i,i+1))==CharCategory.Word&&l.toLowerCase()==l)return!1;u=!0}return a++,!0},f=e.moveByChar(t,n,function(e){return l(e),l});if(G&&o==CharCategory.Word&&f.from==t.from+a*(n?1:-1)){var h=Math.min(t.head,f.head),d=Math.max(t.head,f.head),p=e.state.sliceDoc(h,d);if(p.length>1&&/[\u4E00-\uffff]/.test(p)){var v=Array.from(G.segment(p));if(v.length>1)return n?EditorSelection.cursor(t.head+v[1].index,-1):EditorSelection.cursor(f.head+v[v.length-1].index,1)}}return f}function K(e,t,n){for(var r,o,i=(0,u.mv)(e).resolveInner(t.head),s=n?c.uY.closedBy:c.uY.openedBy,l=t.head;;){var f=n?i.childAfter(l):i.childBefore(l);if(!f)break;!function(e,t,n){if(t.type.prop(n))return!0;var r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}(e,f,s)?l=n?f.to:f.from:i=f}return o=i.type.prop(s)&&(r=n?(0,u.jU)(e,i.from,1):(0,u.jU)(e,i.to,-1))&&r.matched?n?r.end.to:r.end.from:n?i.to:i.from,a.OF.cursor(o,n?-1:1)}function X(e,t){return H(e,function(n){if(!n.empty)return W(n,t);var r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}var ee=function(e){return X(e,!1)},et=function(e){return X(e,!0)};function en(e){var t,n=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,r=0,o=0;if(n){var i,a=p(e.state.facet(s.Lz.scrollMargins));try{for(a.s();!(i=a.n()).done;){var u=(0,i.value)(e);(null==u?void 0:u.top)&&(r=Math.max(null==u?void 0:u.top,r)),(null==u?void 0:u.bottom)&&(o=Math.max(null==u?void 0:u.bottom,o))}}catch(e){a.e(e)}finally{a.f()}t=e.scrollDOM.clientHeight-r-o}else t=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:r,marginBottom:o,selfScroll:n,height:Math.max(e.defaultLineHeight,t-5)}}function er(e,t){var n,r=en(e),o=e.state,i=z(o.selection,function(n){return n.empty?e.moveVertically(n,t,r.height):W(n,t)});if(i.eq(o.selection))return!1;if(r.selfScroll){var a=e.coordsAtPos(o.selection.main.head),u=e.scrollDOM.getBoundingClientRect(),c=u.top+r.marginTop,l=u.bottom-r.marginBottom;a&&a.top>c&&a.bottom<l&&(n=s.Lz.scrollIntoView(i.main.head,{y:"start",yMargin:a.top-c}))}return e.dispatch(U(o,i),{effects:n}),!0}var eo=function(e){return er(e,!1)},ei=function(e){return er(e,!0)};function ea(e,t,n){var r=e.lineBlockAt(t.head),o=e.moveToLineBoundary(t,n);if(o.head==t.head&&o.head!=(n?r.to:r.from)&&(o=e.moveToLineBoundary(t,n,!1)),!n&&o.head==r.from&&r.length){var i=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;i&&t.head!=r.from+i&&(o=a.OF.cursor(r.from+i))}return o}function es(e,t){var n=z(e.state.selection,function(e){var n=t(e);return a.OF.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)});return!n.eq(e.state.selection)&&(e.dispatch(U(e.state,n)),!0)}function eu(e,t){return es(e,function(n){return e.moveByChar(n,t)})}var ec=function(e){return eu(e,!q(e))},el=function(e){return eu(e,q(e))};function ef(e,t){return es(e,function(n){return e.moveByGroup(n,t)})}function eh(e,t){return es(e,function(n){return e.moveVertically(n,t)})}var ed=function(e){return eh(e,!1)},ep=function(e){return eh(e,!0)};function ev(e,t){return es(e,function(n){return e.moveVertically(n,t,en(e).height)})}var em=function(e){return ev(e,!1)},eg=function(e){return ev(e,!0)},ey=function(e){var t=e.state;return(0,e.dispatch)(U(t,{anchor:0})),!0},eb=function(e){var t=e.state;return(0,e.dispatch)(U(t,{anchor:t.doc.length})),!0}
1,ek=function(e){var t=e.state;return(0,e.dispatch)(U(t,{anchor:t.selection.main.anchor,head:0})),!0},ew=function(e){var t=e.state;return(0,e.dispatch)(U(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0};function ex(e,t){if(e.state.readOnly)return!1;var n="delete.selection",r=e.state,o=r.changeByRange(function(r){var o=r.from,i=r.to;if(o==i){var s=t(r);s<o?(n="delete.backward",s=eS(e,s,!1)):s>o&&(n="delete.forward",s=eS(e,s,!0)),o=Math.min(o,s),i=Math.max(i,s)}else o=eS(e,o,!1),i=eS(e,i,!0);return o==i?{range:r}:{changes:{from:o,to:i},range:a.OF.cursor(o,o<r.head?-1:1)}});return!o.changes.empty&&(e.dispatch(r.update(o,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?s.Lz.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function eS(e,t,n){if(e instanceof s.Lz){var r,o=p(e.state.facet(s.Lz.atomicRanges).map(function(t){return t(e)}));try{for(o.s();!(r=o.n()).done;)r.value.between(t,t,function(e,r){e<t&&r>t&&(t=n?r:e)})}catch(e){o.e(e)}finally{o.f()}}return t}var eO=function(e,t,n){return ex(e,function(r){var o,i,s=r.from,c=e.state,l=c.doc.lineAt(s);if(n&&!t&&s>l.from&&s<l.from+200&&!/[^ \t]/.test(o=l.text.slice(0,s-l.from))){if("	"==o[o.length-1])return s-1;for(var f=(0,a.y$)(o,c.tabSize)%(0,u.tp)(c)||(0,u.tp)(c),h=0;h<f&&" "==o[o.length-1-h];h++)s--;i=s}else(i=(0,a.zK)(l.text,s-l.from,t,t)+l.from)==s&&l.number!=(t?c.doc.lines:1)?i+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(l.text.slice(i-l.from,s-l.from))&&(i=(0,a.zK)(l.text,i-l.from,!1,!1)+l.from);return i})},eA=function(e){return eO(e,!1,!0)},eC=function(e){return eO(e,!0,!1)},eP=function(e,t){return ex(e,function(n){for(var r=n.head,o=e.state,i=o.doc.lineAt(r),s=o.charCategorizer(r),u=null;;){if(r==(t?i.to:i.from)){r==n.head&&i.number!=(t?o.doc.lines:1)&&(r+=t?1:-1);break}var c=(0,a.zK)(i.text,r-i.from,t)+i.from,l=i.text.slice(Math.min(r,c)-i.from,Math.max(r,c)-i.from),f=s(l);if(null!=u&&f!=u)break;(" "!=l||r!=n.head)&&(u=f),r=c}return r})},eI=function(e){return eP(e,!1)};function eE(e){var t,n=[],r=-1,o=p(e.selection.ranges);try{for(o.s();!(t=o.n()).done;){var i=t.value,a=e.doc.lineAt(i.from),s=e.doc.lineAt(i.to);if(i.empty||i.to!=s.from||(s=e.doc.lineAt(i.to-1)),r>=a.number){var u=n[n.length-1];u.to=s.to,u.ranges.push(i)}else n.push({from:a.from,to:s.to,ranges:[i]});r=s.number+1}}catch(e){o.e(e)}finally{o.f()}return n}function eT(e,t,n){if(e.readOnly)return!1;var r,o=[],i=[],s=p(eE(e));try{for(s.s();!(r=s.n()).done;){var u=r.value;if(n?u.to!=e.doc.length:0!=u.from){var c=e.doc.lineAt(n?u.to+1:u.from-1),l=c.length+1;if(n){o.push({from:u.to,to:c.to},{from:u.from,insert:c.text+e.lineBreak});var f,h=p(u.ranges);try{for(h.s();!(f=h.n()).done;){var d=f.value;i.push(a.OF.range(Math.min(e.doc.length,d.anchor+l),Math.min(e.doc.length,d.head+l)))}}catch(e){h.e(e)}finally{h.f()}}else{o.push({from:c.from,to:u.from},{from:u.to,insert:e.lineBreak+c.text});var v,m=p(u.ranges);try{for(m.s();!(v=m.n()).done;){var g=v.value;i.push(a.OF.range(g.anchor-l,g.head-l))}}catch(e){m.e(e)}finally{m.f()}}}}}catch(e){s.e(e)}finally{s.f()}return!!o.length&&(t(e.update({changes:o,scrollIntoView:!0,selection:a.OF.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0)}function eM(e,t,n){if(e.readOnly)return!1;var r,o=[],i=p(eE(e));try{for(i.s();!(r=i.n()).done;){var a=r.value;n?o.push({from:a.from,insert:e.doc.slice(a.from,a.to)+e.lineBreak}):o.push({from:a.to,insert:e.lineBreak+e.doc.slice(a.from,a.to)})}}catch(e){i.e(e)}finally{i.f()}return t(e.update({changes:o,scrollIntoView:!0,userEvent:"input.copyline"})),!0}var eR=eL(!1),eD=eL(!0);function eL(e){return function(t){var n=t.state,r=t.dispatch;if(n.readOnly)return!1;var o=n.changeByRange(function(t){var r=t.from,o=t.to,i=n.doc.lineAt(r),s=!e&&r==o&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};var n,r=(0,u.mv)(e).resolveInner(t),o=r.childBefore(t),i=r.childAfter(t);return o&&i&&o.to<=t&&i.from>=t&&(n=o.type.prop(c.uY.closedBy))&&n.indexOf(i.name)>-1&&e.doc.lineAt(o.to).from==e.doc.lineAt(i.from).from&&!/\S/.test(e.sliceDoc(o.to,i.from))?{from:o.to,to:i.from}:null}(n,r);e&&(r=o=(o<=i.to?i:n.doc.lineAt(o)).to);var l=new u.KB(n,{simulateBreak:r,simulateDoubleBreak:!!s}),f=(0,u._v)(l,r);for(null==f&&(f=(0,a.y$)(/^\s*/.exec(n.doc.lineAt(r).text)[0],n.tabSize));o<i.to&&/\s/.test(i.text[o-i.from]);)o++;s?(r=s.from,o=s.to):r>i.from&&r<i.from+100&&!/\S/.test(i.text.slice(0,r))&&(r=i.from);
1var h=["",(0,u.EI)(n,f)];return s&&h.push((0,u.EI)(n,l.lineIndent(i.from,-1))),{changes:{from:r,to:o,insert:a.EY.of(h)},range:a.OF.cursor(r+1+h[1].length)}});return r(n.update(o,{scrollIntoView:!0,userEvent:"input"})),!0}}function ej(e,t){var n=-1;return e.changeByRange(function(r){for(var o=[],i=r.from;i<=r.to;){var s=e.doc.lineAt(i);s.number>n&&(r.empty||r.to>s.from)&&(t(s,o,r),n=s.number),i=s.to+1}var u=e.changes(o);return{changes:o,range:a.OF.range(u.mapPos(r.anchor,1),u.mapPos(r.head,1))}})}var eN=function(e){var t=e.state,n=e.dispatch;return!t.readOnly&&(n(t.update(ej(t,function(e,n){n.push({from:e.from,insert:t.facet(u.Xt)})}),{userEvent:"input.indent"})),!0)},eF=function(e){var t=e.state,n=e.dispatch;return!t.readOnly&&(n(t.update(ej(t,function(e,n){var r=/^\s*/.exec(e.text)[0];if(r){for(var o=(0,a.y$)(r,t.tabSize),i=0,s=(0,u.EI)(t,Math.max(0,o-(0,u.tp)(t)));i<r.length&&i<s.length&&r.charCodeAt(i)==s.charCodeAt(i);)i++;n.push({from:e.from+i,to:e.from+r.length,insert:s.slice(i)})}}),{userEvent:"delete.dedent"})),!0)},e_=[{key:"Ctrl-b",run:Z,shift:ec,preventDefault:!0},{key:"Ctrl-f",run:Q,shift:el},{key:"Ctrl-p",run:ee,shift:ed},{key:"Ctrl-n",run:et,shift:ep},{key:"Ctrl-a",run:function(e){return H(e,function(t){return a.OF.cursor(e.lineBlockAt(t.head).from,1)})},shift:function(e){return es(e,function(t){return a.OF.cursor(e.lineBlockAt(t.head).from)})}},{key:"Ctrl-e",run:function(e){return H(e,function(t){return a.OF.cursor(e.lineBlockAt(t.head).to,-1)})},shift:function(e){return es(e,function(t){return a.OF.cursor(e.lineBlockAt(t.head).to)})}},{key:"Ctrl-d",run:eC},{key:"Ctrl-h",run:eA},{key:"Ctrl-k",run:function(e){return ex(e,function(t){var n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)})}},{key:"Ctrl-Alt-h",run:eI},{key:"Ctrl-o",run:function(e){var t=e.state,n=e.dispatch;if(t.readOnly)return!1;var r=t.changeByRange(function(e){return{changes:{from:e.from,to:e.to,insert:a.EY.of(["",""])},range:a.OF.cursor(e.from)}});return n(t.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:function(e){var t=e.state,n=e.dispatch;if(t.readOnly)return!1;var r=t.changeByRange(function(e){if(!e.empty||0==e.from||e.from==t.doc.length)return{range:e};var n=e.from,r=t.doc.lineAt(n),o=n==r.from?n-1:(0,a.zK)(r.text,n-r.from,!1)+r.from,i=n==r.to?n+1:(0,a.zK)(r.text,n-r.from,!0)+r.from;return{changes:{from:o,to:i,insert:t.doc.slice(n,i).append(t.doc.slice(o,n))},range:a.OF.cursor(i)}});return!r.changes.empty&&(n(t.update(r,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:ei}],eB=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:function(e){return H(e,function(t){return K(e.state,t,!q(e))})},shift:function(e){return es(e,function(t){return K(e.state,t,!q(e))})}},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:function(e){return H(e,function(t){return K(e.state,t,q(e))})},shift:function(e){return es(e,function(t){return K(e.state,t,q(e))})}},{key:"Alt-ArrowUp",run:function(e){return eT(e.state,e.dispatch,!1)}},{key:"Shift-Alt-ArrowUp",run:function(e){return eM(e.state,e.dispatch,!1)}},{key:"Alt-ArrowDown",run:function(e){return eT(e.state,e.dispatch,!0)}},{key:"Shift-Alt-ArrowDown",run:function(e){return eM(e.state,e.dispatch,!0)}},{key:"Escape",run:function(e){var t=e.state,n=e.dispatch,r=t.selection,o=null;return r.ranges.length>1?o=a.OF.create([r.main]):r.main.empty||(o=a.OF.create([a.OF.cursor(r.main.head)])),!!o&&(n(U(t,o)),!0)}},{key:"Mod-Enter",run:eD},{key:"Alt-l",mac:"Ctrl-l",run:function(e){var t=e.state,n=e.dispatch,r=eE(t).map(function(e){var n=e.from,r=e.to;return a.OF.range(n,Math.min(r+1,t.doc.length))});return n(t.update({selection:a.OF.create(r),userEvent:"select"})),!0}},{key:"Mod-i",run:function(e){var t=e.state,n=e.dispatch,r=z(t.selection,function(e){var n=(0,u.mv)(t),r=n.resolveStack(e.from,1);if(e.empty){var o=n.resolveStack(e.from,-1);o.node.from>=r.node.from&&o.node.to<=r.node.to&&(r=o)}for(var i=r;i;i=i.next){var s=i.node;if((s.from<e.from&&s.to>=e.to||s.to>e.to&&s.from<=e.from)&&i.next)return a.OF.range(s.to,s.from)}return e});return!r.eq(t.selection)&&(n(U(t,r)),!0)},preventDefault:!0},{key:"Mod-[",run:eF},{key:"Mod-]",run:eN},{key:"Mod-Alt-\\",run:function(e){var t=e.state,n=e.dispatch;if(t.readOnly)return!1;var r=Object.create(null),o=new u.KB(t,{overrideIndentation:function(e){var t=r[e];return null==t?-1:t}}),i=ej(t,function(e,n,i){var a=(0,u._v)(o,e.from);if(null!=a){/\S/.test(e.text)||(a=0);var s=/^\s*/.exec(e.text)[0],c=(0,u.EI)(t,a);(s!=c||i.from<e.from+s.length)&&(r[e.from]=a,n.push({from:e.from,to:e.from+s.length,insert:c}))}});return i.changes.empty||n(t.update(i,{userEvent:"indent"})),!0}},{key:"Shift-Mod-k",run:function(e){if(e.state.readOnly)return!1;var t=e.state,n=t.changes(eE(t).map(function(e){var n=e.from,r=e.to;return n>0?n--:r<t.doc.length&&r++,{from:n,to:r}})),r=z(t.selection,function(t){var n=void 0;if(e.lineWrapping){var r=e.lineBlockAt(t.head),o=e.coordsAtPos(t.head,t.assoc||1);o&&(n=r.bottom+e.documentTop-o.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:function(e){var t,n,r,o,i;return t=e.state,n=e.dispatch,r=!1,o=!1,i=z(t.selection,function(e){var n=(0,u.jU)(t,e.head,-1)||(0,u.jU)(t,e.head,1)||e.head>0&&(0,u.jU)(t,e.head-1,1)||e.head<t.doc.length&&(0,u.jU)(t,e.head+1,-1);if(!n||!n.end)return e;o=!0;var i=n.start.from==e.head?n.end.to:n.end.from;return r?a.OF.range(e.anchor,i):a.OF.cursor(i)}),!!o&&(n(U(t,i)),!0)}},{key:"Mod-/",run:function(e){var t=e.state,n=t.doc.lineAt(t.selection.main.from),r=k(e.state,n.from);return r.line?g(e):!!r.block&&b(e)}},{key:"Alt-A",run:y},{key:"Ctrl-m",mac:"Shift-Alt-m",run:function(e){return e.setTabFocusMode(),!0}}].concat([{key:"ArrowLeft",run:Z,shift:ec,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:function(e){return Y(e,!q(e))},shift:function(e){return ef(e,!q(e))},preventDefault:!0},{mac:"Cmd-ArrowLeft",run:function(e){return H(e,function(t){return ea(e,t,!q(e))})},shift:function(e){return es(e,function(t){return ea(e,t,!q(e))})},preventDefault:!0},{key:"ArrowRight",run:Q,shift:el,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:function(e){return Y(e,q(e))},shift:function(e){return ef(e,q(e))},preventDefault:!0},{mac:"Cmd-ArrowRight",run:function(e){return H(e,function(t){return ea(e,t,q(e))})},shift:function(e){return es(e,function(t){return ea(e,t,q(e))})},preventDefault:!0},{key:"ArrowUp",run:ee,shift:ed,preventDefault:!0},{mac:"Cmd-ArrowUp",run:ey,shift:ek},{mac:"Ctrl-ArrowUp",run:eo,shift:em},{key:"ArrowDown",run:et,shift:ep,preventDefault:!0},{mac:"Cmd-ArrowDown",run:eb,shift:ew},{mac:"Ctrl-ArrowDown",run:ei,shift:eg},{key:"PageUp",run:eo,shift:em},{key:"PageDown",run:ei,shift:eg},{key:"Home",run:function(e){return H(e,function(t){return ea(e,t,!1)})},shift:function(e){return es(e,function(t){return ea(e,t,!1)})},preventDefault:!0},{key:"Mod-Home",run:ey,shift:ek},{key:"End",run:function(e){return H(e,function(t){return ea(e,t,!0)})},shift:function(e){return es(e,function(t){return ea(e,t,!0)})},preventDefault:!0},{key:"Mod-End",run:eb,shift:ew},{key:"Enter",run:eR,shift:eR},{key:"Mod-a",run:function(e){var t=e.state;return(0,e.dispatch)(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0}},{key:"Backspace",run:eA,shift:eA},{key:"Delete",run:eC},{key:"Mod-Backspace",mac:"Alt-Backspace",run:eI},{key:"Mod-Delete",mac:"Alt-Delete",run:function(e){return eP(e,!0)}},{mac:"Mod-Backspace",run:function(e){return ex(e,function(t){var n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)})}},{mac:"Mod-Delete",run:function(e){return ex(e,function(t){var n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)})}}].concat(e_.map(function(e){return{mac:e.key,run:e.run,shift:e.shift}}))),eV={key:"Tab",run:eN,shift:eF};function ez(e){return(ez="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eU(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==ez(n)&&null==n.nodeType&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var o=n[r];
1"string"==typeof o?e.setAttribute(r,o):null!=o&&(e[r]=o)}t++}for(;t<arguments.length;t++)!function e(t,n){if("string"==typeof n)t.appendChild(document.createTextNode(n));else if(null==n);else if(null!=n.nodeType)t.appendChild(n);else if(Array.isArray(n))for(var r=0;r<n.length;r++)e(t,n[r]);else throw RangeError("Unsupported child node: "+n)}(e,arguments[t]);return e}function eH(e,t,n){return t=eW(t),function(e,t){if(t&&("object"===eG(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");var n=e;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e,!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){return!1}}()?t.apply(e,n):Reflect.construct(t,n||[],eW(e).constructor))}function eW(e){return(eW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function e$(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eq(e,t)}function eq(e,t){return(eq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function eZ(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=eQ(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function eQ(e,t){if(e){if("string"==typeof e)return eY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eY(e,t)}}function eY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function eG(e){return(eG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eJ(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function eK(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!==eG(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==eG(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===eG(t)?t:String(t)}(r.key),r)}}function eX(e,t,n){return t&&eK(e.prototype,t),n&&eK(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var e0="function"==typeof String.prototype.normalize?function(e){return e.normalize("NFKD")}:function(e){return e},e1=eX(function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;eJ(this,e),this.test=a,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(r,o),this.bufferStart=r,this.normalize=i?function(e){return i(e0(e))}:e0,this.query=this.normalize(n)},[{key:"peek",value:function(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return -1;this.bufferPos=0,this.buffer=this.iter.value}return(0,a.vS)(this.buffer,this.bufferPos)}},{key:"next",value:function(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}},{key:"nextOverlapping",value:function(){for(;;){var e=this.peek();if(e<0)return this.done=!0,this;var t=(0,a.MK)(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,a.Fh)(e);var r=this.normalize(t);if(r.length)for(var o=0,i=n;;o++){var s=r.charCodeAt(o),u=this.match(s,i,this.bufferPos+this.bufferStart);if(o==r.length-1){if(u)return this.value=u,this;break}i==n&&o<t.length&&t.charCodeAt(o)==s&&i++}}}},{key:"match",value:function(e,t,n){for(var r=null,o=0;o<this.matches.length;o+=2){var i=this.matches[o],a=!1;
1this.query.charCodeAt(i)==e&&(i==this.query.length-1?r={from:this.matches[o+1],to:n}:(this.matches[o]++,a=!0)),a||(this.matches.splice(o,2),o-=2)}return this.query.charCodeAt(0)==e&&(1==this.query.length?r={from:t,to:n}:this.matches.push(1,t)),r&&this.test&&!this.test(r.from,r.to,this.buffer,this.bufferStart)&&(r=null),r}}]);"undefined"!=typeof Symbol&&(e1.prototype[Symbol.iterator]=function(){return this});var e2={from:-1,to:-1,match:/.*/.exec("")},e5="gm"+(null==/x/.unicode?"":"u"),e3=eX(function e(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.length;if(eJ(this,e),this.text=t,this.to=i,this.curLine="",this.done=!1,this.value=e2,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new e9(t,n,r,o,i);this.re=new RegExp(n,e5+((null==r?void 0:r.ignoreCase)?"i":"")),this.test=null==r?void 0:r.test,this.iter=t.iter();var a=t.lineAt(o);this.curLineStart=a.from,this.matchPos=e8(t,o),this.getLine(this.curLineStart)},[{key:"getLine",value:function(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}},{key:"nextLine",value:function(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}},{key:"next",value:function(){for(var e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;var t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){var n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=e8(this.text,r+ +(n==r)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<r||n>this.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length<this.to))return this.done=!0,this;this.nextLine(),e=0}}}}]),e4=new WeakMap,e6=function(){function e(t,n){eJ(this,e),this.from=t,this.text=n}return eX(e,[{key:"to",get:function(){return this.from+this.text.length}}],[{key:"get",value:function(t,n,r){var o=e4.get(t);if(!o||o.from>=r||o.to<=n){var i=new e(n,t.sliceString(n,r));return e4.set(t,i),i}if(o.from==n&&o.to==r)return o;var a=o.text,s=o.from;return s>n&&(a=t.sliceString(n,s)+a,s=n),o.to<r&&(a+=t.sliceString(o.to,r)),e4.set(t,new e(s,a)),new e(n,a.slice(n-s,r-s))}}])}(),e9=eX(function e(t,n,r,o,i){eJ(this,e),this.text=t,this.to=i,this.done=!1,this.value=e2,this.matchPos=e8(t,o),this.re=new RegExp(n,e5+((null==r?void 0:r.ignoreCase)?"i":"")),this.test=null==r?void 0:r.test,this.flat=e6.get(t,o,this.chunkEnd(o+5e3))},[{key:"chunkEnd",value:function(e){return e>=this.to?this.to:this.text.lineAt(e).to}},{key:"next",value:function(){for(;;){var e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){var n=this.flat.from+t.index,r=n+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this.matchPos=e8(this.text,r+ +(n==r)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=e6.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}]);function e8(e,t){if(t>=e.length)return t;for(var n,r=e.lineAt(t);t<r.to&&(n=r.text.charCodeAt(t-r.from))>=56320&&n<57344;)t++;return t}function e7(e){var t=eU("input",{class:"cm-textfield",name:"line",value:String(e.state.doc.lineAt(e.state.selection.main.head).number)});function n(){var n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(n){var r=e.state,o=r.doc.lineAt(r.selection.main.head),i=function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,5)||eQ(n,5)||function(){throw TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),u=i[1],c=i[2],l=i[3],f=i[4],h=l?+l.slice(1):0,d=c?+c:o.number;if(c&&f){var p=d/100;u&&(p=p*("-"==u?-1:1)+o.number/r.doc.lines),d=Math.round(r.doc.lines*p)}else c&&u&&(d=d*("-"==u?-1:1)+o.number);var v=r.doc.line(Math.max(1,Math.min(r.doc.lines,d))),m=a.OF.cursor(v.from+Math.max(0,Math.min(h,v.length)));e.dispatch({effects:[te.of(!1),s.Lz.scrollIntoView(m.from,{y:"center"})],selection:m}),e.focus()}}return{dom:eU("form",{class:"cm-gotoLine",onkeydown:function(t){27==t.keyCode?(t.preventDefault(),e.dispatch({effects:te.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),n())},onsubmit:function(e){e.preventDefault(),n()}},eU("label",e.state.phrase("Go to line"),": ",t)," ",eU("button",{class:"cm-button",type:"submit"},e.state.phrase("go")),eU("button",{name:"close",onclick:function(){e.dispatch({effects:te.of(!1)}),e.focus()},"aria-label":e.state.phrase("close"),type:"button"},["\xd7"]))}}"undefined"!=typeof Symbol&&(e3.prototype[Symbol.iterator]=e9.prototype[Symbol.iterator]=function(){return this});var te=a.Pe.define(),tt=a.sU.define({create:function(){return!0},update:function(e,t){var n,r=eZ(t.effects);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.is(te)&&(e=o.value)}}catch(e){r.e(e)}finally{r.f()}return e},provide:function(e){return s.S7.from(e,function(e){return e?e7:null})}}),tn=s.Lz.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px",position:"relative","& label":{fontSize:"80%"},"& [name=close]":{position:"absolute",top:"0",bottom:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:"0"}}}),tr={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},to=a.sj.define({combine:function(e){return(0,a.QR)(e,tr,{highlightWordAroundCursor:function(e,t){return e||t},minSelectionLength:Math.min,maxMatches:Math.min})}}),ti=s.NZ.mark({class:"cm-selectionMatch"}),ta=s.NZ.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function ts(e,t,n,r){return(0==n||e(t.sliceDoc(n-1,n))!=a.Je.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=a.Je.Word)}var tu=s.Z9.fromClass(eX(function e(t){eJ(this,e),this.decorations=this.getDeco(t)},[{key:"update",value:function(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}},{key:"getDeco",value:function(e){var t=e.state.facet(to),n=e.state,r=n.selection;if(r.ranges.length>1)return s.NZ.none;var o,i=r.main,u=null;if(i.empty){if(!t.highlightWordAroundCursor)return s.NZ.none;var c=n.wordAt(i.head);if(!c)return s.NZ.none;u=n.charCategorizer(i.head),o=n.sliceDoc(c.from,c.to)}else{var l,f,h,d=i.to-i.from;if(d<t.minSelectionLength||d>200)return s.NZ.none;if(t.wholeWords){if(o=n.sliceDoc(i.from,i.to),!(ts(u=n.charCategorizer(i.head),n,i.from,i.to)&&(l=u,f=i.from,h=i.to,l(n.sliceDoc(f,f+1))==a.Je.Word&&l(n.sliceDoc(h-1,h))==a.Je.Word)))return s.NZ.none}else if(!(o=n.sliceDoc(i.from,i.to)))return s.NZ.none}var p,v=[],m=eZ(e.visibleRanges);try{for(m.s();!(p=m.n()).done;)for(var g=p.value,y=new e1(n.doc,o,g.from,g.to);!y.next().done;){var b=y.value,k=b.from,w=b.to;if((!u||ts(u,n,k,w))&&(i.empty&&k<=i.from&&w>=i.to?v.push(ta.range(k,w)):(k>=i.to||w<=i.from)&&v.push(ti.range(k,w)),v.length>t.maxMatches))return s.NZ.none}}catch(e){m.e(e)}finally{m.f()}return s.NZ.set(v)}}]),{decorations:function(e){return e.decorations}}),tc=s.Lz.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),tl=function(e){var t=e.state,n=e.dispatch,r=t.selection,o=a.OF.create(r.ranges.map(function(e){return t.wordAt(e.head)||a.OF.cursor(e.head)}),r.mainIndex);return!o.eq(r)&&(n(t.update({selection:o})),!0)},tf=a.sj.define({combine:function(e){return(0,a.QR)(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:function(e){return new tV(e)},scrollToMatch:function(e){return s.Lz.scrollIntoView(e)}})}}),th=eX(function e(t){eJ(this,e),this.search=t.search,this.caseSensitive=!!t.caseSensitive,this.literal=!!t.literal,this.regexp=!!t.regexp,this.replace=t.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,e5),!0}catch(e){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!t.wholeWord},[{key:"unquote",value:function(e){return this.literal?e:e.replace(/\\([nrt\\])/g,function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"	":"\\"})}},{key:"eq",value:function(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}},{key:"create",value:function(){return this.regexp?new tb(this):new tv(this)}},{key:"getCursor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=e.doc?e:a.$t.create({doc:e});return null==n&&(n=r.doc.length),this.regexp?tm(this,r,t,n):tp(this,r,t,n)}}]),td=eX(function e(t){eJ(this,e),this.spec=t});function tp(e,t,n,r){var o,i;return new e1(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:function(e){return e.toLowerCase()},e.wholeWord?(o=t.doc,i=t.charCategorizer(t.selection.main.head),function(e,t,n,r){return(r>e||r+n.length<t)&&(r=Math.max(0,e-2),n=o.sliceString(r,Math.min(o.length,t+2))),(i(tg(n,e-r))!=a.Je.Word||i(ty(n,e-r))!=a.Je.Word)&&(i(ty(n,t-r))!=a.Je.Word||i(tg(n,t-r))!=a.Je.Word)}):void 0)}var tv=function(e){function t(e){return eJ(this,t),eH(this,t,[e])}return e$(t,e),eX(t,[{key:"nextMatch",value:function(e,t,n){var r=tp(this.spec,e,n,e.doc.length).nextOverlapping();if(r.done){var o=Math.min(e.doc.length,t+this.spec.unquoted.length);r=tp(this.spec,e,0,o).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==n?null:r.value}},{key:"prevMatchInRange",value:function(e,t,n){for(var r=n;;){for(var o=Math.max(t,r-1e4-this.spec.unquoted.length),i=tp(this.spec,e,o,r),a=null;!i.nextOverlapping().done;)a=i.value;if(a)return a;
1if(o==t)return null;r-=1e4}}},{key:"prevMatch",value:function(e,t,n){var r=this.prevMatchInRange(e,0,t);return r||(r=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length)),r&&(r.from!=t||r.to!=n)?r:null}},{key:"getReplacement",value:function(e){return this.spec.unquote(this.spec.replace)}},{key:"matchAll",value:function(e,t){for(var n=tp(this.spec,e,0,e.doc.length),r=[];!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}},{key:"highlight",value:function(e,t,n,r){for(var o=tp(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));!o.next().done;)r(o.value.from,o.value.to)}}])}(td);function tm(e,t,n,r){var o;return new e3(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(o=t.charCategorizer(t.selection.main.head),function(e,t,n){return!n[0].length||(o(tg(n.input,n.index))!=a.Je.Word||o(ty(n.input,n.index))!=a.Je.Word)&&(o(ty(n.input,n.index+n[0].length))!=a.Je.Word||o(tg(n.input,n.index+n[0].length))!=a.Je.Word)}):void 0},n,r)}function tg(e,t){return e.slice((0,a.zK)(e,t,!1),t)}function ty(e,t){return e.slice(t,(0,a.zK)(e,t))}var tb=function(e){function t(){return eJ(this,t),eH(this,t,arguments)}return e$(t,e),eX(t,[{key:"nextMatch",value:function(e,t,n){var r=tm(this.spec,e,n,e.doc.length).next();return r.done&&(r=tm(this.spec,e,0,t).next()),r.done?null:r.value}},{key:"prevMatchInRange",value:function(e,t,n){for(var r=1;;r++){for(var o=Math.max(t,n-1e4*r),i=tm(this.spec,e,o,n),a=null;!i.next().done;)a=i.value;if(a&&(o==t||a.from>o+10))return a;if(o==t)return null}}},{key:"prevMatch",value:function(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}},{key:"getReplacement",value:function(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,function(t,n){if("&"==n)return e.match[0];if("$"==n)return"$";for(var r=n.length;r>0;r--){var o=+n.slice(0,r);if(o>0&&o<e.match.length)return e.match[o]+n.slice(r)}return t})}},{key:"matchAll",value:function(e,t){for(var n=tm(this.spec,e,0,e.doc.length),r=[];!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}},{key:"highlight",value:function(e,t,n,r){for(var o=tm(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));!o.next().done;)r(o.value.from,o.value.to)}}])}(td),tk=a.Pe.define(),tw=a.Pe.define(),tx=a.sU.define({create:function(e){return new tS(tL(e).create(),null)},update:function(e,t){var n,r=eZ(t.effects);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.is(tk)?e=new tS(o.value.create(),e.panel):o.is(tw)&&(e=new tS(e.query,o.value?tD:null))}}catch(e){r.e(e)}finally{r.f()}return e},provide:function(e){return s.S7.from(e,function(e){return e.panel})}}),tS=eX(function e(t,n){eJ(this,e),this.query=t,this.panel=n}),tO=s.NZ.mark({class:"cm-searchMatch"}),tA=s.NZ.mark({class:"cm-searchMatch cm-searchMatch-selected"}),tC=s.Z9.fromClass(eX(function e(t){eJ(this,e),this.view=t,this.decorations=this.highlight(t.state.field(tx))},[{key:"update",value:function(e){var t=e.state.field(tx);(t!=e.startState.field(tx)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}},{key:"highlight",value:function(e){var t=e.query;if(!e.panel||!t.spec.valid)return s.NZ.none;for(var n=this.view,r=new a.vB,o=0,i=n.visibleRanges,u=i.length;o<u;o++){for(var c=i[o],l=c.from,f=c.to;o<u-1&&f>i[o+1].from-500;)f=i[++o].to;t.highlight(n.state,l,f,function(e,t){var o=n.state.selection.ranges.some(function(n){return n.from==e&&n.to==t});r.add(e,t,o?tA:tO)})}return r.finish()}}]),{decorations:function(e){return e.decorations}});function tP(e){return function(t){var n=t.state.field(tx,!1);return n&&n.query.spec.valid?e(t,n):tF(t)}}var tI=tP(function(e,t){var n=t.query,r=e.state.selection.main.to,o=n.nextMatch(e.state,r,r);if(!o)return!1;var i=a.OF.single(o.from,o.to),s=e.state.facet(tf);return e.dispatch({selection:i,effects:[tH(e,o),s.scrollToMatch(i.main,e)],userEvent:"select.search"}),tN(e),!0}),tE=tP(function(e,t){var n=t.query,r=e.state,o=r.selection.main.from,i=n.prevMatch(r,o,o);if(!i)return!1;var s=a.OF.single(i.from,i.to),u=e.state.facet(tf);return e.dispatch({selection:s,effects:[tH(e,i),u.scrollToMatch(s.main,e)],userEvent:"select.search"}),tN(e),!0}),tT=tP(function(e,t){var n=t.query.matchAll(e.state,1e3);return!!n&&!!n.length&&(e.dispatch({selection:a.OF.create(n.map(function(e){return a.OF.range(e.from,e.to)})),userEvent:"select.search.matches"}),!0)}),tM=tP(function(e,t){var n=t.query,r=e.state,o=r.selection.main,i=o.from,u=o.to;if(r.readOnly)return!1;var c=n.nextMatch(r,i,i);if(!c)return!1;var l,f,h=c,d=[],p=[];h.from==i&&h.to==u&&(f=r.toText(n.getReplacement(h)),d.push({from:h.from,to:h.to,insert:f}),h=n.nextMatch(r,h.from,h.to),p.push(s.Lz.announce.of(r.phrase("replaced match on line $",r.doc.lineAt(i).number)+".")));var v=e.state.changes(d);return h&&(l=a.OF.single(h.from,h.to).map(v),p.push(tH(e,h)),p.push(r.facet(tf).scrollToMatch(l.main,e))),e.dispatch({changes:v,selection:l,effects:p,userEvent:"input.replace"}),!0}),tR=tP(function(e,t){var n=t.query;if(e.state.readOnly)return!1;var r=n.matchAll(e.state,1e9).map(function(e){return{from:e.from,to:e.to,insert:n.getReplacement(e)}});if(!r.length)return!1;var o=e.state.phrase("replaced $ matches",r.length)+".";return e.dispatch({changes:r,effects:s.Lz.announce.of(o),userEvent:"input.replace.all"}),!0});function tD(e){return e.state.facet(tf).createPanel(e)}function tL(e,t){var n,r,o,i,a,s=e.selection.main,u=s.empty||s.to>s.from+100?"":e.sliceDoc(s.from,s.to);if(t&&!u)return t;var c=e.facet(tf);return new th({search:(null!=(n=null==t?void 0:t.literal)?n:c.literal)?u:u.replace(/\n/g,"\\n"),caseSensitive:null!=(r=null==t?void 0:t.caseSensitive)?r:c.caseSensitive,literal:null!=(o=null==t?void 0:t.literal)?o:c.literal,regexp:null!=(i=null==t?void 0:t.regexp)?i:c.regexp,wholeWord:null!=(a=null==t?void 0:t.wholeWord)?a:c.wholeWord})}function tj(e){var t=(0,s.ld)(e,tD);return t&&t.dom.querySelector("[main-field]")}function tN(e){var t=tj(e);t&&t==e.root.activeElement&&t.select()}var tF=function(e){var t=e.state.field(tx,!1);if(t&&t.panel){var n=tj(e);if(n&&n!=e.root.activeElement){var r=tL(e.state,t.query.spec);r.valid&&e.dispatch({effects:tk.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[tw.of(!0),t?tk.of(tL(e.state,t.query.spec)):a.Pe.appendConfig.of(t$)]});return!0},t_=function(e){var t=e.state.field(tx,!1);if(!t||!t.panel)return!1;var n=(0,s.ld)(e,tD);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:tw.of(!1)}),!0},tB=[{key:"Mod-f",run:tF,scope:"editor search-panel"},{key:"F3",run:tI,shift:tE,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:tI,shift:tE,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:t_,scope:"editor search-panel"}
1,{key:"Mod-Shift-l",run:function(e){var t=e.state,n=e.dispatch,r=t.selection;if(r.ranges.length>1||r.main.empty)return!1;for(var o=r.main,i=o.from,s=o.to,u=[],c=0,l=new e1(t.doc,t.sliceDoc(i,s));!l.next().done;){if(u.length>1e3)return!1;l.value.from==i&&(c=u.length),u.push(a.OF.range(l.value.from,l.value.to))}return n(t.update({selection:a.OF.create(u,c),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:function(e){var t=(0,s.ld)(e,e7);if(!t){var n=[te.of(!0)];null==e.state.field(tt,!1)&&n.push(a.Pe.appendConfig.of([tt,tn])),e.dispatch({effects:n}),t=(0,s.ld)(e,e7)}return t&&t.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:function(e){var t=e.state,n=e.dispatch,r=t.selection.ranges;if(r.some(function(e){return e.from===e.to}))return tl({state:t,dispatch:n});var o=t.sliceDoc(r[0].from,r[0].to);if(t.selection.ranges.some(function(e){return t.sliceDoc(e.from,e.to)!=o}))return!1;var i=function(e,t){for(var n,r=e.selection,o=r.main,i=r.ranges,a=e.wordAt(o.head),s=a&&a.from==o.from&&a.to==o.to,u=function(n,r){if(r.next(),r.done){if(n)return{v:null};r=new e1(e.doc,t,0,Math.max(0,i[i.length-1].from-1)),n=!0}else{if(n&&i.some(function(e){return e.from==r.value.from}))return c=n,l=r,0;if(s){var o=e.wordAt(r.value.from);if(!o||o.from!=r.value.from||o.to!=r.value.to)return c=n,l=r,0}return{v:r.value}}c=n,l=r},c=!1,l=new e1(e.doc,t,i[i.length-1].to);;)if(0!==(n=u(c,l))&&n)return n.v}(t,o);return!!i&&(n(t.update({selection:t.selection.addRange(a.OF.range(i.from,i.to),!1),effects:s.Lz.scrollIntoView(i.to)})),!0)},preventDefault:!0}],tV=eX(function e(t){var n,r=this;eJ(this,e),this.view=t;var o=this.query=t.state.field(tx).query.spec;function i(e,t,n){return eU("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=eU("input",{value:o.search,placeholder:tz(t,"Find"),"aria-label":tz(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=eU("input",{value:o.replace,placeholder:tz(t,"Replace"),"aria-label":tz(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=eU("input",{type:"checkbox",name:"case",form:"",checked:o.caseSensitive,onchange:this.commit}),this.reField=eU("input",{type:"checkbox",name:"re",form:"",checked:o.regexp,onchange:this.commit}),this.wordField=eU("input",{type:"checkbox",name:"word",form:"",checked:o.wholeWord,onchange:this.commit}),this.dom=eU("div",{onkeydown:function(e){return r.keydown(e)},class:"cm-search"},[this.searchField,i("next",function(){return tI(t)},[tz(t,"next")]),i("prev",function(){return tE(t)},[tz(t,"previous")]),i("select",function(){return tT(t)},[tz(t,"all")]),eU("label",null,[this.caseField,tz(t,"match case")]),eU("label",null,[this.reField,tz(t,"regexp")]),eU("label",null,[this.wordField,tz(t,"by word")])].concat(function(e){if(Array.isArray(e))return eY(e)}(n=t.state.readOnly?[]:[eU("br"),this.replaceField,i("replace",function(){return tM(t)},[tz(t,"replace")]),i("replaceAll",function(){return tR(t)},[tz(t,"replace all")])])||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||eQ(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[eU("button",{name:"close",onclick:function(){return t_(t)},"aria-label":tz(t,"close"),type:"button"},["\xd7"])]))},[{key:"commit",value:function(){var e=new th({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:tk.of(e)}))}},{key:"keydown",value:function(e){(0,s.TS)(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?tE:tI)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),tM(this.view))}},{key:"update",value:function(e){var t,n=eZ(e.transactions);try{for(n.s();!(t=n.n()).done;){var r,o=t.value,i=eZ(o.effects);try{for(i.s();!(r=i.n()).done;){var a=r.value;a.is(tk)&&!a.value.eq(this.query)&&this.setQuery(a.value)}}catch(e){i.e(e)}finally{i.f()}}}catch(e){n.e(e)}finally{n.f()}}},{key:"setQuery",value:function(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}},{key:"mount",value:function(){this.searchField.select()}},{key:"pos",get:function(){return 80}},{key:"top",get:function(){return this.view.state.facet(tf).top}}]);function tz(e,t){return e.state.phrase(t)}var tU=/[\s\.,:;?!]/;function tH(e,t){var n=t.from,r=t.to,o=e.state.doc.lineAt(n),i=e.state.doc.lineAt(r).to,a=Math.max(o.from,n-30),u=Math.min(i,r+30),c=e.state.sliceDoc(a,u);if(a!=o.from){for(var l=0;l<30;l++)if(!tU.test(c[l+1])&&tU.test(c[l])){c=c.slice(l);break}}if(u!=i){for(var f=c.length-1;f>c.length-30;f--)if(!tU.test(c[f-1])&&tU.test(c[f])){c=c.slice(0,f);break}}return s.Lz.announce.of("".concat(e.state.phrase("current match"),". ").concat(c," ").concat(e.state.phrase("on line")," ").concat(o.number,"."))}var tW=s.Lz.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),t$=[tx,a.Nb.low(tC),tW];function tq(e,t,n){return t=tZ(t),function(e,t){if(t&&("object"===t0(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");var n=e;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e,!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){return!1}}()?t.apply(e,n):Reflect.construct(t,n||[],tZ(e).constructor))}
1function tZ(e){return(tZ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tQ(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tY(e,t)}function tY(e,t){return(tY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function tG(e){return function(e){if(Array.isArray(e))return tX(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||tK(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tJ(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=tK(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function tK(e,t){if(e){if("string"==typeof e)return tX(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tX(e,t)}}function tX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function t0(e){return(t0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function t1(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function t2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!==t0(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==t0(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===t0(t)?t:String(t)}(r.key),r)}}function t5(e,t,n){return t&&t2(e.prototype,t),n&&t2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var t3=t5(function e(t,n,r,o){t1(this,e),this.state=t,this.pos=n,this.explicit=r,this.view=o,this.abortListeners=[],this.abortOnDocChange=!1},[{key:"tokenBefore",value:function(e){for(var t=(0,u.mv)(this.state).resolveInner(this.pos,-1);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}},{key:"matchBefore",value:function(e){var t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),o=r.search(t8(e,!1));return o<0?null:{from:n+o,to:this.pos,text:r.slice(o)}}},{key:"aborted",get:function(){return null==this.abortListeners}},{key:"addEventListener",value:function(e,t,n){"abort"==e&&this.abortListeners&&(this.abortListeners.push(t),n&&n.onDocChange&&(this.abortOnDocChange=!0))}}]);function t4(e){var t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),"[".concat(n?"\\w":"").concat(t.replace(/[^\w\s]/g,"\\$&"),"]")}var t6=t5(function e(t,n,r,o){t1(this,e),this.completion=t,this.source=n,this.match=r,this.score=o});function t9(e){return e.selection.main.from}function t8(e,t){var n,r=e.source,o=t&&"^"!=r[0],i="$"!=r[r.length-1];return o||i?new RegExp("".concat(o?"^":"","(?:").concat(r,")").concat(i?"$":""),null!=(n=e.flags)?n:e.ignoreCase?"i":""):e}var t7=a.YH.define(),ne=new WeakMap;function nt(e){if(!Array.isArray(e))return e;var t,n,r,o,i,a=ne.get(e);return a||ne.set(e,(o=(r=function(e){if(Array.isArray(e))return e}(n=(t=e.map(function(e){return"string"==typeof e?{label:e}:e})).every(function(e){return/^\w+$/.test(e.label)})?[/\w*$/,/\w+$/]:function(e){var t,n=Object.create(null),r=Object.create(null),o=tJ(e);try{for(o.s();!(t=o.n()).done;){var i=t.value.label;n[i[0]]=!0;for(var a=1;a<i.length;a++)r[i[a]]=!0}}catch(e){o.e(e)}finally{o.f()}var s=t4(n)+t4(r)+"*$";return[RegExp("^"+s),new RegExp(s)]}(t))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}
1finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,2)||tK(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],i=r[1],a=function(e){var n=e.matchBefore(i);return n||e.explicit?{from:n?n.from:e.pos,options:t,validFor:o}:null})),a}var nn=a.Pe.define(),nr=a.Pe.define(),no=t5(function e(t){t1(this,e),this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(var n=0;n<t.length;){var r=(0,a.vS)(t,n),o=(0,a.Fh)(r);this.chars.push(r);var i=t.slice(n,n+o),s=i.toUpperCase();this.folded.push((0,a.vS)(s==i?i.toLowerCase():s,0)),n+=o}this.astral=t.length!=this.chars.length},[{key:"ret",value:function(e,t){return this.score=e,this.matched=t,this}},{key:"match",value:function(e){if(0==this.pattern.length)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;var t=this.chars,n=this.folded,r=this.any,o=this.precise,i=this.byWord;if(1==t.length){var s=(0,a.vS)(e,0),u=(0,a.Fh)(s),c=u==e.length?0:-100;if(s==t[0]);else{if(s!=n[0])return null;c+=-200}return this.ret(c,[0,u])}var l=e.indexOf(this.pattern);if(0==l)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);var f=t.length,h=0;if(l<0){for(var d=0,p=Math.min(e.length,200);d<p&&h<f;){var v=(0,a.vS)(e,d);(v==t[h]||v==n[h])&&(r[h++]=d),d+=(0,a.Fh)(v)}if(h<f)return null}for(var m=0,g=0,y=!1,b=0,k=-1,w=-1,x=/[a-z]/.test(e),S=!0,O=0,A=Math.min(e.length,200),C=0;O<A&&g<f;){var P=(0,a.vS)(e,O);l<0&&(m<f&&P==t[m]&&(o[m++]=O),b<f&&(P==t[b]||P==n[b]?(0==b&&(k=O),w=O+1,b++):b=0));var I=void 0,E=P<255?P>=48&&P<=57||P>=97&&P<=122?2:+(P>=65&&P<=90):(I=(0,a.MK)(P))!=I.toLowerCase()?1:2*(I!=I.toUpperCase());(!O||1==E&&x||0==C&&0!=E)&&(t[g]==P||n[g]==P&&(y=!0)?i[g++]=O:i.length&&(S=!1)),C=E,O+=(0,a.Fh)(P)}return g==f&&0==i[0]&&S?this.result(-100+(y?-200:0),i,e):b==f&&0==k?this.ret(-200-e.length+(w==e.length?0:-100),[0,w]):l>-1?this.ret(-700-e.length,[l,l+this.pattern.length]):b==f?this.ret(-900-e.length,[k,w]):g==f?this.result(-100+(y?-200:0)+-700+(S?0:-1100),i,e):2==t.length?null:this.result((r[0]?-700:0)+-200+-1100,r,e)}},{key:"result",value:function(e,t,n){var r,o=[],i=0,s=tJ(t);try{for(s.s();!(r=s.n()).done;){var u=r.value,c=u+(this.astral?(0,a.Fh)((0,a.vS)(n,u)):1);i&&o[i-1]==u?o[i-1]=c:(o[i++]=u,o[i++]=c)}}catch(e){s.e(e)}finally{s.f()}return this.ret(e-n.length,o)}}]),ni=t5(function e(t){t1(this,e),this.pattern=t,this.matched=[],this.score=0,this.folded=t.toLowerCase()},[{key:"match",value:function(e){if(e.length<this.pattern.length)return null;var t=e.slice(0,this.pattern.length),n=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return null==n?null:(this.matched=[0,t.length],this.score=n+(e.length==this.pattern.length?0:-100),this)}}]),na=a.sj.define({combine:function(e){return(0,a.QR)(e,{activateOnTyping:!0,activateOnCompletion:function(){return!1},activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:function(){return""},optionClass:function(){return""},aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:nu,filterStrict:!1,compareCompletions:function(e,t){return e.label.localeCompare(t.label)},interactionDelay:75,updateSyncTime:100},{defaultKeymap:function(e,t){return e&&t},closeOnBlur:function(e,t){return e&&t},icons:function(e,t){return e&&t},tooltipClass:function(e,t){return function(n){return ns(e(n),t(n))}},optionClass:function(e,t){return function(n){return ns(e(n),t(n))}},addToOptions:function(e,t){return e.concat(t)},filterStrict:function(e,t){return e||t}})}});function ns(e,t){return e?t?e+" "+t:e:t}function nu(e,t,n,r,o,i){var a,u,c=e.textDirection==s.OP.RTL,l=c,f=!1,h="top",d=t.left-o.left,p=o.right-t.right,v=r.right-r.left,m=r.bottom-r.top;if(l&&d<Math.min(v,p)?l=!1:!l&&p<Math.min(v,d)&&(l=!0),v<=(l?d:p))a=Math.max(o.top,Math.min(n.top,o.bottom-m))-t.top,u=Math.min(400,l?d:p);else{f=!0,u=Math.min(400,(c?t.right:o.right-t.left)-30);var g=o.bottom-t.bottom;g>=m||g>t.top?a=n.bottom-t.top:(h="bottom",a=t.bottom-n.top)}var y=(t.bottom-t.top)/i.offsetHeight,b=(t.right-t.left)/i.offsetWidth;return{style:"".concat(h,": ").concat(a/y,"px; max-width: ").concat(u/b,"px"),class:"cm-completionInfo-"+(f?c?"left-narrow":"right-narrow":l?"left"
1:"right")}}function nc(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){var r=Math.floor(t/n);return{from:r*n,to:(r+1)*n}}var o=Math.floor((e-t)/n);return{from:e-(o+1)*n,to:e-o*n}}var nl=t5(function e(t,n,r){var o,i=this;t1(this,e),this.view=t,this.stateField=n,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:function(){return i.measureInfo()},write:function(e){return i.placeInfo(e)},key:this},this.space=null,this.currentClass="";var a=t.state.field(n),s=a.open,u=s.options,c=s.selected,l=t.state.facet(na);this.optionContent=(o=l.addToOptions.slice(),l.icons&&o.push({render:function(e){var t,n=document.createElement("div");return n.classList.add("cm-completionIcon"),e.type&&(t=n.classList).add.apply(t,tG(e.type.split(/\s+/g).map(function(e){return"cm-completionIcon-"+e}))),n.setAttribute("aria-hidden","true"),n},position:20}),o.push({render:function(e,t,n,r){var o=document.createElement("span");o.className="cm-completionLabel";for(var i=e.displayLabel||e.label,a=0,s=0;s<r.length;){var u=r[s++],c=r[s++];u>a&&o.appendChild(document.createTextNode(i.slice(a,u)));var l=o.appendChild(document.createElement("span"));l.appendChild(document.createTextNode(i.slice(u,c))),l.className="cm-completionMatchedText",a=c}return a<i.length&&o.appendChild(document.createTextNode(i.slice(a))),o},position:50},{render:function(e){if(!e.detail)return null;var t=document.createElement("span");return t.className="cm-completionDetail",t.textContent=e.detail,t},position:80}),o.sort(function(e,t){return e.position-t.position}).map(function(e){return e.render})),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=nc(u.length,c,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",function(e){for(var r,o=t.state.field(n).open.options,a=e.target;a&&a!=i.dom;a=a.parentNode)if("LI"==a.nodeName&&(r=/-(\d+)$/.exec(a.id))&&+r[1]<o.length){i.applyCompletion(t,o[+r[1]]),e.preventDefault();return}}),this.dom.addEventListener("focusout",function(e){var n=t.state.field(i.stateField,!1);n&&n.tooltip&&t.state.facet(na).closeOnBlur&&e.relatedTarget!=t.contentDOM&&t.dispatch({effects:nr.of(null)})}),this.showOptions(u,a.id)},[{key:"mount",value:function(){this.updateSel()}},{key:"showOptions",value:function(e,t){var n=this;this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",function(){n.info&&n.view.requestMeasure(n.placeInfoReq)})}},{key:"update",value:function(e){var t,n=e.state.field(this.stateField),r=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=r){var o=n.open,i=o.options,a=o.selected,s=o.disabled;r.open&&r.open.options==i||(this.range=nc(i.length,a,e.state.facet(na).maxRenderedOptions),this.showOptions(i,n.id)),this.updateSel(),s!=(null==(t=r.open)?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}},{key:"updateTooltipClass",value:function(e){var t=this.tooltipClass(e);if(t!=this.currentClass){var n,r=tJ(this.currentClass.split(" "));try{for(r.s();!(n=r.n()).done;){var o=n.value;o&&this.dom.classList.remove(o)}}catch(e){r.e(e)}finally{r.f()}var i,a=tJ(t.split(" "));try{for(a.s();!(i=a.n()).done;){var s=i.value;s&&this.dom.classList.add(s)}}catch(e){a.e(e)}finally{a.f()}this.currentClass=t}}},{key:"positioned",value:function(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}},{key:"updateSel",value:function(){var e=this,t=this.view.state.field(this.stateField),n=t.o
1pen;if((n.selected>-1&&n.selected<this.range.from||n.selected>=this.range.to)&&(this.range=nc(n.options.length,n.selected,this.view.state.facet(na).maxRenderedOptions),this.showOptions(n.options,t.id)),this.updateSelectedOption(n.selected)){this.destroyInfo();var r=n.options[n.selected].completion,o=r.info;if(!o)return;var i="string"==typeof o?document.createTextNode(o):o(r);if(!i)return;"then"in i?i.then(function(n){n&&e.view.state.field(e.stateField,!1)==t&&e.addInfoPane(n,r)}).catch(function(t){return(0,s.c_)(e.view.state,t,"completion info")}):this.addInfoPane(i,r)}}},{key:"addInfoPane",value:function(e,t){this.destroyInfo();var n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",null!=e.nodeType)n.appendChild(e),this.infoDestroy=null;else{var r=e.dom,o=e.destroy;n.appendChild(r),this.infoDestroy=o||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}},{key:"updateSelectedOption",value:function(e){for(var t,n,r,o,i,a=null,s=this.list.firstChild,u=this.range.from;s;s=s.nextSibling,u++)"LI"==s.nodeName&&s.id?u==e?s.hasAttribute("aria-selected")||(s.setAttribute("aria-selected","true"),a=s):s.hasAttribute("aria-selected")&&s.removeAttribute("aria-selected"):u--;return a&&(t=this.list,n=a,r=t.getBoundingClientRect(),o=n.getBoundingClientRect(),i=r.height/t.offsetHeight,o.top<r.top?t.scrollTop-=(r.top-o.top)/i:o.bottom>r.bottom&&(t.scrollTop+=(o.bottom-r.bottom)/i)),a}},{key:"measureInfo",value:function(){var e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;var t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),o=this.space;if(!o){var i=this.dom.ownerDocument.documentElement;o={left:0,top:0,right:i.clientWidth,bottom:i.clientHeight}}return r.top>Math.min(o.bottom,t.bottom)-10||r.bottom<Math.max(o.top,t.top)+10?null:this.view.state.facet(na).positionInfo(this.view,t,r,n,o,this.dom)}},{key:"placeInfo",value:function(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")}},{key:"createListBox",value:function(e,t,n){var r=document.createElement("ul");r.id=t,r.setAttribute("role","listbox"),r.setAttribute("aria-expanded","true"),r.setAttribute("aria-label",this.view.state.phrase("Completions")),r.addEventListener("mousedown",function(e){e.target==r&&e.preventDefault()});for(var o=null,i=n.from;i<n.to;i++){var a=e[i],s=a.completion,u=a.match,c=s.section;if(c){var l="string"==typeof c?c:c.name;l!=o&&(i>n.from||0==n.from)&&(o=l,"string"!=typeof c&&c.header?r.appendChild(c.header(c)):r.appendChild(document.createElement("completion-section")).textContent=l)}var f=r.appendChild(document.createElement("li"));f.id=t+"-"+i,f.setAttribute("role","option");var h=this.optionClass(s);h&&(f.className=h);var d,p=tJ(this.optionContent);try{for(p.s();!(d=p.n()).done;){var v=(0,d.value)(s,this.view.state,this.view,u);v&&f.appendChild(v)}}catch(e){p.e(e)}finally{p.f()}}return n.from&&r.classList.add("cm-completionListIncompleteTop"),n.to<e.length&&r.classList.add("cm-completionListIncompleteBottom"),r}},{key:"destroyInfo",value:function(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}},{key:"destroy",value:function(){this.destroyInfo()}}]);function nf(e){return 100*(e.boost||0)+10*!!e.apply+5*!!e.info+ +!!e.type}var nh=function(){function e(t,n,r,o,i,a){t1(this,e),this.options=t,this.attrs=n,this.tooltip=r,this.timestamp=o,this.selected=i,this.disabled=a}return t5(e,[{key:"setSelected",value:function(t,n){return t==this.selected||t>=this.options.length?this:new e(this.options,nm(n,t),this.tooltip,this.timestamp,t,this.disabled)}},{key:"map",value:function(t){return new e(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}},{key:"setDisabled",value:function(){return new e(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}],[{key:"build",value:function(t,n,r,o,i,a){if(o&&!a&&t.some(function(e){return e.isPending}))return o.setDisabled();var s=function(e,t){var n,r=[],o=null,i=function(e){r.push(e);var t=e.completion.section;if(t){o||(o=[]);var n="string"==typeof t?t:t.name;o.some(function(e){return e.name==n})||o.push("string"==typeof t?{name:n}:t)}},a=t.facet(na),s=tJ(e);try{for(s.s();!(n=s.n()).done;){var u=n.value;if(u.hasResult()){var c=u.result.getMatch;if(!1===u.result.filter){var l,f=tJ(u.result.options);try{for(f.s();!(l=f.n()).done;){var h=l.value;i(new t6(h,u.source,c?c(h):[],1e9-r.length))}}catch(e){f.e(e)}finally{f.f()}}else{var d,p=t.sliceDoc(u.from,u.to),v=void 0,m=a.filterStrict?new ni(p):new no(p),g=tJ(u.result.options);try{for(g.s();!(d=g.n()).done;){var y=d.value;if(v=m.match(y.label)){var b=y.displayLabel?c?c(y,v.matched):[]:v.matched;i(new t6(y,u.source,b,v.score+(y.boost||0)))}}}catch(e){g.e(e)}finally{g.f()}}}}}catch(e){s.e(e)}finally{s.f()}if(o){var k,w=Object.create(null),x=0,S=tJ(o.sort(function(e,t){var n,r;return(null!=(n=e.rank)?n:1e9)-(null!=(r=t.rank)?r:1e9)||(e.name<t.name?-1:1)}));try{for(S.s();!(k=S.n()).done;){var O=k.value;x-=1e5,w[O.name]=x}}catch(e){S.e(e)}finally{S.f()}var A,C=tJ(r);try{for(C.s();!(A=C.n()).done;){var P=A.value,I=P.completion.section;I&&(P.score+=w["string"==typeof I?I:I.name])}}catch(e){C.e(e)}finally{C.f()}}var E,T=[],M=null,R=a.compareCompletions,D=tJ(r.sort(function(e,t){return t.score-e.score||R(e.completion,t.completion)}));try{for(D.s();!(E=D.n()).done;
1){var L=E.value,j=L.completion;M&&M.label==j.label&&M.detail==j.detail&&(null==M.type||null==j.type||M.type==j.type)&&M.apply==j.apply&&M.boost==j.boost?nf(L.completion)>nf(M)&&(T[T.length-1]=L):T.push(L),M=L.completion}}catch(e){D.e(e)}finally{D.f()}return T}(t,n);if(!s.length)return o&&t.some(function(e){return e.isPending})?o.setDisabled():null;var u=n.facet(na).selectOnOpen?0:-1;if(o&&o.selected!=u&&-1!=o.selected){for(var c=o.options[o.selected].completion,l=0;l<s.length;l++)if(s[l].completion==c){u=l;break}}return new e(s,nm(r,u),{pos:t.reduce(function(e,t){return t.hasResult()?Math.min(e,t.from):e},1e8),create:nA,above:i.aboveCursor},o?o.timestamp:Date.now(),u,!1)}}])}(),nd=function(){function e(t,n,r){t1(this,e),this.active=t,this.id=n,this.open=r}return t5(e,[{key:"update",value:function(t){var n=this,r=t.state,o=r.facet(na),i=(o.override||r.languageDataAt("autocomplete",t9(r)).map(nt)).map(function(e){return(n.active.find(function(t){return t.source==e})||new nb(e,+!!n.active.some(function(e){return 0!=e.state}))).update(t,o)});i.length==this.active.length&&i.every(function(e,t){return e==n.active[t]})&&(i=this.active);var a=this.open,s=t.effects.some(function(e){return e.is(nw)});a&&t.docChanged&&(a=a.map(t.changes)),t.selection||i.some(function(e){return e.hasResult()&&t.changes.touchesRange(e.from,e.to)})||!function(e,t){if(e==t)return!0;for(var n=0,r=0;;){for(;n<e.length&&!e[n].hasResult();)n++;for(;r<t.length&&!t[r].hasResult();)r++;var o=n==e.length,i=r==t.length;if(o||i)return o==i;if(e[n++].result!=t[r++].result)return!1}}(i,this.active)||s?a=nh.build(i,r,this.id,a,o,s):a&&a.disabled&&!i.some(function(e){return e.isPending})&&(a=null),!a&&i.every(function(e){return!e.isPending})&&i.some(function(e){return e.hasResult()})&&(i=i.map(function(e){return e.hasResult()?new nb(e.source,0):e}));var u,c=tJ(t.effects);try{for(c.s();!(u=c.n()).done;){var l=u.value;l.is(nx)&&(a=a&&a.setSelected(l.value,this.id))}}catch(e){c.e(e)}finally{c.f()}return i==this.active&&a==this.open?this:new e(i,this.id,a)}},{key:"tooltip",get:function(){return this.open?this.open.tooltip:null}},{key:"attrs",get:function(){return this.open?this.open.attrs:this.active.length?np:nv}}],[{key:"start",value:function(){return new e(ng,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}}])}(),np={"aria-autocomplete":"list"},nv={};function nm(e,t){var n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}var ng=[];function ny(e,t){if(e.isUserEvent("input.complete")){var n=e.annotation(t7);if(n&&t.activateOnCompletion(n))return 12}var r=e.isUserEvent("input.type");return r&&t.activateOnTyping?5:r?1:e.isUserEvent("delete.backward")?2:e.selection?8:16*!!e.docChanged}var nb=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t1(this,e),this.source=t,this.state=n,this.explicit=r}return t5(e,[{key:"hasResult",value:function(){return!1}},{key:"isPending",get:function(){return 1==this.state}},{key:"update",value:function(t,n){var r=ny(t,n),o=this;(8&r||16&r&&this.touches(t))&&(o=new e(o.source,0)),4&r&&0==o.state&&(o=new e(this.source,1)),o=o.updateFor(t,r);var i,a=tJ(t.effects);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(s.is(nn))o=new e(o.source,1,s.value);else if(s.is(nr))o=new e(o.source,0);else if(s.is(nw)){var u,c=tJ(s.value);try{for(c.s();!(u=c.n()).done;){var l=u.value;l.source==o.source&&(o=l)}}catch(e){c.e(e)}finally{c.f()}}}}catch(e){a.e(e)}finally{a.f()}return o}},{key:"updateFor",value:function(e,t){return this.map(e.changes)}},{key:"map",value:function(e){return this}},{key:"touches",value:function(e){return e.changes.touchesRange(t9(e.state))}}])}(),nk=function(e){function t(e,n,r,o,i,a){var s;return t1(this,t),(s=tq(this,t,[e,3,n])).limit=r,s.result=o,s.from=i,s.to=a,s}return tQ(t,e),t5(t,[{key:"hasResult",value:function(){return!0}},{key:"updateFor",value:function(e,n){if(!(3&n))return this.map(e.changes);var r,o=this.result;o.map&&!e.changes.empty&&(o=o.map(o,e.changes));var i=e.changes.mapPos(this.from),a=e.changes.mapPos(this.to,1),s=t9(e.state);if(s>a||!o||2&n&&(t9(e.startState)==this.from||s<this.limit))return new nb(this.source,4&n?1:0);var u=e.changes.mapPos(this.limit);return!function(e,t,n,r){if(!e)return!1;var o=t.sliceDoc(n,r);return"function"==typeof e?e(o,n,r,t):t8(e,!0).test(o)}(o.validFor,e.state,i,a)?o.update&&(o=o.update(o,i,a,new t3(e.state,s,!1)))?new t(this.source,this.explicit,u,o,o.from,null!=(r=o.to)?r:t9(e.state)):new nb(this.source,1,this.explicit):new t(this.source,this.explicit,u,o,i,a)}},{key:"map",value:function(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new t(this.source,this.explicit,e.mapPos(this.limit),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new nb(this.source,0)}},{key:"touches",value:function(e){return e.changes.touchesRange(this.from,this.to)}}])}(nb),nw=a.Pe.define({map:function(e,t){return e.map(function(e){return e.map(t)})}}),nx=a.Pe.define(),nS=a.sU.define({create:function(){return nd.start()},update:function(e,t){return e.update(t)},provide:function(e){return[s.DK.from(e,function(e){return e.tooltip}),s.Lz.contentAttributes.from(e,function(e){return e.attrs})]}});function nO(e,t){var n,r,o,i,s,u,c=t.completion.apply||t.completion.label,l=e.state.field(nS).active.find(function(e){return e.source==t.source});return l instanceof nk&&("string"==typeof c?e.dispatch(Object.assign(Object.assign({},(n=e.state,r=l.from,o=l.to,s=r-(i=n.selection.main).from,u=o-i.from,Object.assign(Object.assign({},n.changeByRange(function(e){if(e!=i&&r!=o&&n.sliceDoc(e.from+s,e.from+u)!=n.sliceDoc(r,o))return{range:e};var t=n.toText(c);return{changes:{from:e.from+s,to:o==i.from?e.to:e.from+u,insert:t},range:a.OF.cursor(e.from+s+t.length)}})),{scrollIntoView:!0,userEvent:"input.complete"}))),{annotations:t7.of(t.completion)})):c(e,t.completion,l.from,l.to),!0)}var nA=function(e){return new nl(e,nS,nO)};function nC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"option";return function(n){var r=n.state.field(nS,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(na).interactionDelay)return!1;var o,i=1;"page"==t&&(o=(0,s.Eg)(n,r.open.tooltip))&&(i=Math.max(2,Math.floor(o.dom.offsetHeight/o.dom.querySelector("li").offsetHeight)-1));var a=r.open.options.length,u=r.open.selected>-1?r.open.selected+i*(e?1:-1):e?0:a-1;return u<0?u="page"==t?0:a-1:u>=a&&(u="page"==t?a-1:0),n.dispatch({effects:nx.of(u)}),!0}}var nP=function(e){return!!e.state.field(nS,!1)&&(e.dispatch({effects:nn.of(!0)}),!0)},nI=t5(function e(t,n){t1(this,e),this.active=t,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}),nE=s.Z9.fromClass(t5(function e(t){t1(this,e),this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;var n,r=tJ(t.state.field(nS).active);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.isPending&&this.startQuery(o)}}catch(e){r.e(e)}finally{r.f()}},[{key:"update",value:function(e){var t=this,n=e.state.field(nS),r=e.state.facet(na);if(e.selectionSet||e.docChanged||e.startState.field(nS)!=n){for(var o=e.transactions.some(function(e){var t=ny(e,r);return 8&t||(e.selection||e.docChanged)&&!(3&t)}),i=0;i<this.running.length;i++){var a,u=this.running[i];if(o||u.context.abortOnDocChange&&e.docChanged||u.updates.length+e.transactions.length>50&&Date.now()-u.time>1e3){var c,l=tJ(u.context.abortListeners);try{for(l.s();!(c=l.n()).done;){var f=c.value;try{f()}catch(e){(0,s.c_)(this.view.state,e)}}}catch(e){l.e(e)}finally{l.f()}u.context.abortListeners=null,this.running.splice(i--,1)}else(a=u.updates).push.apply(a,tG(e.transactions))}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(function(e){return e.effects.some(function(e){return e.is(nn)})})&&(this.pendingStart=!0);var h=this.pendingStart?50:r.activateOnTypingDelay;if(this.debounceUpdate=n.active.some(function(e){return e.isPending&&!t.running.some(function(t){return t.active.source==e.source})}
1)?setTimeout(function(){return t.startUpdate()},h):-1,0!=this.composing){var d,p=tJ(e.transactions);try{for(p.s();!(d=p.n()).done;){var v=d.value;v.isUserEvent("input.type")?this.composing=2:2==this.composing&&v.selection&&(this.composing=3)}}catch(e){p.e(e)}finally{p.f()}}}}},{key:"startUpdate",value:function(){var e=this;this.debounceUpdate=-1,this.pendingStart=!1;var t,n=this.view.state.field(nS),r=tJ(n.active);try{for(r.s();!(t=r.n()).done;)!function(){var n=t.value;n.isPending&&!e.running.some(function(e){return e.active.source==n.source})&&e.startQuery(n)}()}catch(e){r.e(e)}finally{r.f()}this.running.length&&n.open&&n.open.disabled&&(this.debounceAccept=setTimeout(function(){return e.accept()},this.view.state.facet(na).updateSyncTime))}},{key:"startQuery",value:function(e){var t=this,n=this.view.state,r=t9(n),o=new t3(n,r,e.explicit,this.view),i=new nI(e,o);this.running.push(i),Promise.resolve(e.source(o)).then(function(e){i.context.aborted||(i.done=e||null,t.scheduleAccept())},function(e){t.view.dispatch({effects:nr.of(null)}),(0,s.c_)(t.view.state,e)})}},{key:"scheduleAccept",value:function(){var e=this;this.running.every(function(e){return void 0!==e.done})?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(function(){return e.accept()},this.view.state.facet(na).updateSyncTime))}},{key:"accept",value:function(){var e,t=this;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;for(var n=[],r=this.view.state.facet(na),o=this.view.state.field(nS),i=0;i<this.running.length;i++)if(0===function(a){var s=t.running[a];if(void 0===s.done)return i=a,0;if(t.running.splice(a--,1),s.done){var u,c=t9(s.updates.length?s.updates[0].startState:t.view.state),l=Math.min(c,s.done.from+ +!s.active.explicit),f=new nk(s.active.source,s.active.explicit,l,s.done,s.done.from,null!=(e=s.done.to)?e:c),h=tJ(s.updates);try{for(h.s();!(u=h.n()).done;){var d=u.value;f=f.update(d,r)}}catch(e){h.e(e)}finally{h.f()}if(f.hasResult())return n.push(f),i=a,0}var p=o.active.find(function(e){return e.source==s.active.source});if(p&&p.isPending)if(null==s.done){var v,m=new nb(s.active.source,0),g=tJ(s.updates);try{for(g.s();!(v=g.n()).done;){var y=v.value;m=m.update(y,r)}}catch(e){g.e(e)}finally{g.f()}m.isPending||n.push(m)}else t.startQuery(p);i=a}(i))continue;(n.length||o.open&&o.open.disabled)&&this.view.dispatch({effects:nw.of(n)})}}]),{eventHandlers:{blur:function(e){var t=this,n=this.view.state.field(nS,!1);if(n&&n.tooltip&&this.view.state.facet(na).closeOnBlur){var r=n.open&&(0,s.Eg)(this.view,n.open.tooltip);r&&r.dom.contains(e.relatedTarget)||setTimeout(function(){return t.view.dispatch({effects:nr.of(null)})},10)}},compositionstart:function(){this.composing=1},compositionend:function(){var e=this;3==this.composing&&setTimeout(function(){return e.view.dispatch({effects:nn.of(!1)})},20),this.composing=0}}}),nT=("undefined"==typeof navigator?"undefined":t0(navigator))=="object"&&/Win/.test(navigator.platform),nM=a.Nb.highest(s.Lz.domEventHandlers({keydown:function(e,t){var n=t.state.field(nS,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||e.key.length>1||e.ctrlKey&&!(nT&&e.altKey)||e.metaKey)return!1;var r=n.open.options[n.open.selected],o=n.active.find(function(e){return e.source==r.source}),i=r.completion.commitCharacters||o.result.commitCharacters;return i&&i.indexOf(e.key)>-1&&nO(t,r),!1}})),nR=s.Lz.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:"".concat(400,"px"),boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"".concat(30,"px")},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"".concat(30,"px")},"&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"}}}),nD=s.NZ.widget({widget:new(function(e){function t(){return t1(this,t),tq(this,t,arguments)}return tQ(t,e),t5(t,[{key:"toDOM",value:function(){var e=document.createElement("span");
1return e.className="cm-snippetFieldPosition",e}},{key:"ignoreEvent",value:function(){return!1}}])}(s.xO))}),nL=s.NZ.mark({class:"cm-snippetField"}),nj=function(){function e(t,n){t1(this,e),this.ranges=t,this.active=n,this.deco=s.NZ.set(t.map(function(e){return(e.from==e.to?nD:nL).range(e.from,e.to)}))}return t5(e,[{key:"map",value:function(t){var n,r=[],o=tJ(this.ranges);try{for(o.s();!(n=o.n()).done;){var i=n.value.map(t);if(!i)return null;r.push(i)}}catch(e){o.e(e)}finally{o.f()}return new e(r,this.active)}},{key:"selectionInsideField",value:function(e){var t=this;return e.ranges.every(function(e){return t.ranges.some(function(n){return n.field==t.active&&n.from<=e.from&&n.to>=e.to})})}}])}(),nN=a.Pe.define({map:function(e,t){return e&&e.map(t)}}),nF=a.Pe.define(),n_=a.sU.define({create:function(){return null},update:function(e,t){var n,r=tJ(t.effects);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.is(nN))return o.value;if(o.is(nF)&&e)return new nj(e.ranges,o.value)}}catch(e){r.e(e)}finally{r.f()}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:function(e){return s.Lz.decorations.from(e,function(e){return e?e.deco:s.NZ.none})}});function nB(e,t){return a.OF.create(e.filter(function(e){return e.field==t}).map(function(e){return a.OF.range(e.from,e.to)}))}function nV(e){return function(t){var n=t.state,r=t.dispatch,o=n.field(n_,!1);if(!o||e<0&&0==o.active)return!1;var i=o.active+e,a=e>0&&!o.ranges.some(function(t){return t.field==i+e});return r(n.update({selection:nB(o.ranges,i),effects:nN.of(a?null:new nj(o.ranges,i)),scrollIntoView:!0})),!0}}var nz=[{key:"Tab",run:nV(1),shift:nV(-1)},{key:"Escape",run:function(e){var t=e.state,n=e.dispatch;return!!t.field(n_,!1)&&(n(t.update({effects:nN.of(null)})),!0)}}],nU=a.sj.define({combine:function(e){return e.length?e[0]:nz}});var nH={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},nW=a.Pe.define({map:function(e,t){var n=t.mapPos(e,-1,a.iR.TrackAfter);return null==n?void 0:n}}),n$=new(function(e){function t(){return t1(this,t),tq(this,t,arguments)}return tQ(t,e),t5(t)}(a.FB));n$.startSide=1,n$.endSide=-1;var nq=a.sU.define({create:function(){return a.om.empty},update:function(e,t){if(e=e.map(t.changes),t.selection){var n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:function(e){return e>=n.from&&e<=n.to}})}var r,o=tJ(t.effects);try{for(o.s();!(r=o.n()).done;){var i=r.value;i.is(nW)&&(e=e.update({add:[n$.range(i.value,i.value+1)]}))}}catch(e){o.e(e)}finally{o.f()}return e}}),nZ="()[]{}<>\xab\xbb\xbb\xab[]{}";function nQ(e){for(var t=0;t<nZ.length;t+=2)if(nZ.charCodeAt(t)==e)return nZ.charAt(t+1);return(0,a.MK)(e<128?e:e+1)}function nY(e,t){return e.languageDataAt("closeBrackets",t)[0]||nH}var nG=("undefined"==typeof navigator?"undefined":t0(navigator))=="object"&&/Android\b/.test(navigator.userAgent),nJ=s.Lz.inputHandler.of(function(e,t,n,r){if((nG?e.composing:e.compositionStarted)||e.state.readOnly)return!1;var o=e.state.selection.main;if(r.length>2||2==r.length&&1==(0,a.Fh)((0,a.vS)(r,0))||t!=o.from||n!=o.to)return!1;var i=function(e,t){var n,r=nY(e,e.selection.main.head),o=r.brackets||nH.brackets,i=tJ(o);try{for(i.s();!(n=i.n()).done;){var s=n.value,c=nQ((0,a.vS)(s,0));if(t==s)return c==s?function(e,t,n,r){var o=r.stringPrefixes||nH.stringPrefixes,i=null,s=e.changeByRange(function(r){if(!r.empty)return{changes:[{insert:t,from:r.from},{insert:t,from:r.to}],effects:nW.of(r.to+t.length),range:a.OF.range(r.anchor+t.length,r.head+t.length)};var s,c=r.head,l=n0(e.doc,c);if(l==t){if(n1(e,c))return{changes:{insert:t+t,from:c},effects:nW.of(c+t.length),range:a.OF.cursor(c+t.length)};else if(nX(e,c)){var f=n&&e.sliceDoc(c,c+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:c,to:c+f.length,insert:f},range:a.OF.cursor(c+f.length)}}}else if(n&&e.sliceDoc(c-2*t.length,c)==t+t&&(s=n2(e,c-2*t.length,o))>-1&&n1(e,s))return{changes:{insert:t+t+t+t,from:c},effects:nW.of(c+t.length),range:a.OF.cursor(c+t.length)};else if(e.charCategorizer(c)(l)!=a.Je.Word&&n2(e,c,o)>-1&&!function(e,t,n,r){for(var o=(0,u.mv)(e).resolveInner(t,-1),i=r.reduce(function(e,t){return Math.max(e,t.length)},0),a=0;a<5;a++){var s=e.sliceDoc(o.from,Math.min(o.to,o.from+n.length+i)),c=s.indexOf(n);if(!c||c>-1&&r.indexOf(s.slice(0,c))>-1){for(var l=o.firstChild;l&&l.from==o.from&&l.to-l.from>n.length+c;){if(e.sliceDoc(l.to-n.length,l.to)==n)return!1;l=l.firstChild}return!0}var f=o.to==t&&o.parent;if(!f)break;o=f}return!1}(e,c,t,o))return{changes:{insert:t+t,from:c},effects:nW.of(c+t.length),range:a.OF.cursor(c+t.length)};return{range:i=r}});return i?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}(e,s,o.indexOf(s+s+s)>-1,r):function(e,t,n,r){var o=null,i=e.changeByRange(function(i){if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:n,from:i.to}],effects:nW.of(i.to+t.length),range:a.OF.range(i.anchor+t.length,i.head+t.length)};var s=n0(e.doc,i.head);return!s||/\s/.test(s)||r.indexOf(s)>-1?{changes:{insert:t+n,from:i.head},effects:nW.of(i.head+t.length),range:a.OF.cursor(i.head+t.length)}:{range:o=i}});return o?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}(e,s,c,r.before||nH.before);if(t==c&&nX(e,e.selection.main.from))return function(e,t,n){var r=null,o=e.changeByRange(function(t){return t.empty&&n0(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:a.OF.cursor(t.head+n.length)}:r={range:t}});return r?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}(e,0,c)}}catch(e){i.e(e)}finally{i.f()}return null}(e.state,r);return!!i&&(e.dispatch(i),!0)}),nK=[{key:"Backspace",run:function(e){var t=e.state,n=e.dispatch;if(t.readOnly)return!1;var r=nY(t,t.selection.main.head).brackets||nH.brackets,o=null,i=t.changeByRange(function(e){if(e.empty){var n,i,s,u,c=(n=t.doc,i=e.head,s=n.sliceString(i-2,i),(0,a.Fh)((0,a.vS)(s,0))==s.length?s:s.slice(1)),l=tJ(r);try{for(l.s();!(u=l.n()).done;){var f=u.value;if(f==c&&n0(t.doc,e.head)==nQ((0,a.vS)(f,0)))return{changes:{from:e.head-f.length,to:e.head+f.length},range:a.OF.cursor(e.head-f.length)}}}catch(e){l.e(e)}finally{l.f()}}return{range:o=e}});return o||n(t.update(i,{scrollIntoView:!0,userEvent:"delete.backward"})),!o}}];function nX(e,t){var n=!1;return e.field(nq).between(0,e.doc.length,function(e){e==t&&(n=!0)}),n}function n0(e,t){var n=e.sliceString(t,t+2);return n.slice(0,(0,a.Fh)((0,a.vS)(n,0)))}function n1(e,t){var n=(0,u.mv)(e).resolveInner(t+1);return n.parent&&n.from==t}function n2(e,t,n){var r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=a.Je.Word)return t;var o,i=tJ(n);try{for(i.s();!(o=i.n()).done;){var s=o.value,u=t-s.length;if(e.sliceDoc(u,t)==s&&r(e.sliceDoc(u-1,u))!=a.Je.Word)return u}}catch(e){i.e(e)}finally{i.f()}return -1}var n5=[{key:"Ctrl-Space",run:nP},{mac:"Alt-`",run:nP},{key:"Escape",run:function(e){var t=e.state.field(nS,!1);return!!t&&!!t.active.some(function(e){return 0!=e.state})&&(e.dispatch({effects:nr.of(null)}),!0)}},{key:"ArrowDown",run:nC(!0)},{key:"ArrowUp",run:nC(!1)},{key:"PageDown",run:nC(!0,"page")},{key:"PageUp",run:nC(!1,"page")},{key:"Enter",run:function(e){var t=e.state.field(nS,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(na).interactionDelay)&&nO(e,t.open.options[t.open.selected])}}],n3=a.Nb.highest(s.w4.computeN([na],function(e){return e.facet(na).defaultKeymap?[n5]:[]}));function n4(e){return(n4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n6(e,t,n){return t=n9(t),function(e,t){if(t&&("object"===n4(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");var n=e;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(e,!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){return!1}}()?t.apply(e,n):Reflect.construct(t,n||[],n9(e).constructor))}function n9(e){return(n9=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function n8(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n7(e,t)}
1function n7(e,t){return(n7=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function re(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=rt(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function rt(e,t){if(e){if("string"==typeof e)return rn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rn(e,t)}}function rn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function rr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!==n4(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==n4(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===n4(t)?t:String(t)}(r.key),r)}}function ro(e,t,n){return t&&rr(e.prototype,t),n&&rr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ri(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}var ra=ro(function e(t,n,r){ri(this,e),this.from=t,this.to=n,this.diagnostic=r}),rs=function(){function e(t,n,r){ri(this,e),this.diagnostics=t,this.panel=n,this.selected=r}return ro(e,null,[{key:"init",value:function(t,n,r){var o=r.facet(ry).markerFilter;o&&(t=o(t,r));for(var i=t.slice().sort(function(e,t){return e.from-t.from||e.to-t.to}),u=new a.vB,c=[],l=0,f=0;!function(e){var t,n,o=e==i.length?null:i[e];if(!o&&!c.length)return f=e,1;for(c.length?(t=l,n=c.reduce(function(e,t){return Math.min(e,t.to)},o&&o.from>t?o.from:1e8)):(t=o.from,n=o.to,c.push(o),e++);e<i.length;){var a=i[e];if(a.from==t&&(a.to>a.from||a.to==t))c.push(a),e++,n=Math.min(a.to,n);else{n=Math.min(a.from,n);break}}var h=rP(c);if(c.some(function(e){return e.from==e.to||e.from==e.to-1&&r.doc.lineAt(e.from).to==e.from}))u.add(t,t,s.NZ.widget({widget:new rw(h),diagnostics:c.slice()}));else{var d=c.reduce(function(e,t){return t.markClass?e+" "+t.markClass:e},"");u.add(t,n,s.NZ.mark({class:"cm-lintRange cm-lintRange-"+h+d,diagnostics:c.slice(),inclusiveEnd:c.some(function(e){return e.to>n})}))}l=n;for(var p=0;p<c.length;p++)c[p].to<=l&&c.splice(p--,1);f=e}(f););var h=u.finish();return new e(h,n,ru(h))}}])}();function ru(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=null;return e.between(n,1e9,function(e,n,o){var i=o.spec;if(!(t&&0>i.diagnostics.indexOf(t)))if(r){if(0>i.diagnostics.indexOf(r.diagnostic))return!1;r=new ra(r.from,n,r.diagnostic)}else r=new ra(e,n,t||i.diagnostics[0])}),r}function rc(e,t){var n=t.pos,r=t.end||n,o=e.state.facet(ry).hideOn(e,n,r);if(null!=o)return o;var i=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(function(e){return e.is(rl)})||e.changes.touchesRange(i.from,Math.max(i.to,r)))}var rl=a.Pe.define(),rf=a.Pe.define(),rh=a.Pe.define(),rd=a.sU.define({create:function(){return new rs(s.NZ.none,null,null)},update:function(e,t){if(t.docChanged&&e.diagnostics.size){var n=e.diagnostics.map(t.changes),r=null,o=e.panel;if(e.selected){var i=t.changes.mapPos(e.selected.from,1);r=ru(n,e.selected.diagnostic,i)||ru(n,null,i)}!n.size&&o&&t.state.facet(ry).autoPanel&&(o=null),e=new rs(n,o,r)}var a,s=re(t.effects);try{for(s.s();!(a=s.n()).done;){var u=a.value;if(u.is(rl)){var c=t.state.facet(ry).autoPanel?u.value.length?rS.open:null:e.panel;e=rs.init(u.value,c,t.state)}else u.is(rf)?e=new rs(e.diagnostics,u.value?rS.open:null,e.selected):u.is(rh)&&(e=new rs(e.diagnostics,e.panel,u.value))}}catch(e){s.e(e)}finally{s.f()}return e},provide:function(e){return[s.S7.from(e,function(e){return e.panel}),s.Lz.decorations.from(e,function(e){return e.diagnostics})]}}),rp=s.NZ.mark({class:"cm-lintRange cm-lintRange-active"});function rv(e,t){return eU("ul",{class:"cm-tooltip-lint"},t.map(function(t){return rk(e,t,!1)}))}var rm=function(e){var t=e.state.field(rd,!1);
1return!!t&&!!t.panel&&(e.dispatch({effects:rf.of(!1)}),!0)},rg=[{key:"Mod-Shift-m",run:function(e){var t,n,r=e.state.field(rd,!1);r&&r.panel||e.dispatch({effects:(t=e.state,n=[rf.of(!0)],t.field(rd,!1)?n:n.concat(a.Pe.appendConfig.of(rR)))});var o=(0,s.ld)(e,rS.open);return o&&o.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:function(e){var t=e.state.field(rd,!1);if(!t)return!1;var 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)}}],ry=a.sj.define({combine:function(e){return Object.assign({sources:e.map(function(e){return e.source}).filter(function(e){return null!=e})},(0,a.QR)(e.map(function(e){return e.config}),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:function(){return null}},{needsRefresh:function(e,t){return e?t?function(n){return e(n)||t(n)}:e:t}}))}});function rb(e){var t=[];if(e){var n,r=re(e);try{t:for(r.s();!(n=r.n()).done;){for(var o=n.value.name,i=0;i<o.length;i++)if(function(){var e=o[i];if(/[a-zA-Z]/.test(e)&&!t.some(function(t){return t.toLowerCase()==e.toLowerCase()}))return t.push(e),1}())continue t;t.push("")}}catch(e){r.e(e)}finally{r.f()}}return t}function rk(e,t,n){var r,o=n?rb(t.actions):[];return eU("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},eU("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),null==(r=t.actions)?void 0:r.map(function(n,r){var i=!1,a=function(r){if(r.preventDefault(),!i){i=!0;var o=ru(e.state.field(rd).diagnostics,t);o&&n.apply(e,o.from,o.to)}},s=n.name,u=o[r]?s.indexOf(o[r]):-1,c=u<0?s:[s.slice(0,u),eU("u",s.slice(u,u+1)),s.slice(u+1)];return eU("button",{type:"button",class:"cm-diagnosticAction",onclick:a,onmousedown:a,"aria-label":" Action: ".concat(s).concat(u<0?"":' (access key "'.concat(o[r],')"'),".")},c)}),t.source&&eU("div",{class:"cm-diagnosticSource"},t.source))}var rw=function(e){function t(e){var n;return ri(this,t),(n=n6(this,t)).sev=e,n}return n8(t,e),ro(t,[{key:"eq",value:function(e){return e.sev==this.sev}},{key:"toDOM",value:function(){return eU("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}])}(s.xO),rx=ro(function e(t,n){ri(this,e),this.diagnostic=n,this.id="item_"+Math.floor(0xffffffff*Math.random()).toString(16),this.dom=rk(t,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}),rS=function(){function e(t){var n=this;ri(this,e),this.view=t,this.items=[],this.list=eU("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:function(e){if(27==e.keyCode)rm(n.view),n.view.focus();else if(38==e.keyCode||33==e.keyCode)n.moveSelection((n.selectedIndex-1+n.items.length)%n.items.length);else if(40==e.keyCode||34==e.keyCode)n.moveSelection((n.selectedIndex+1)%n.items.length);else if(36==e.keyCode)n.moveSelection(0);else if(35==e.keyCode)n.moveSelection(n.items.length-1);else if(13==e.keyCode)n.view.focus();else{if(!(e.keyCode>=65)||!(e.keyCode<=90)||!(n.selectedIndex>=0))return;for(var r=n.items[n.selectedIndex].diagnostic,o=rb(r.actions),i=0;i<o.length;i++)if(o[i].toUpperCase().charCodeAt(0)==e.keyCode){var a=ru(n.view.state.field(rd).diagnostics,r);a&&r.actions[i].apply(t,a.from,a.to)}}e.preventDefault()},onclick:function(e){for(var t=0;t<n.items.length;t++)n.items[t].dom.contains(e.target)&&n.moveSelection(t)}}),this.dom=eU("div",{class:"cm-panel-lint"},this.list,eU("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:function(){return rm(n.view)}},"\xd7")),this.update()}return ro(e,[{key:"selectedIndex",get:function(){var e=this.view.state.field(rd).selected;if(!e)return -1;for(var t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return -1}},{key:"update",value:function(){var e=this,t=this.view.state.field(rd),n=t.diagnostics,r=t.selected,o=0,i=!1,a=null,s=new Set;for(n.between(0,this.view.state.doc.length,function(t,n,u){var c,l=re(u.spec.diagnostics);try{for(l.s();!(c=l.n()).done;){var f=c.value;if(!s.has(f)){s.add(f);for(var h=-1,d=void 0,p=o;p<e.items.length;p++)if(e.items[p].diagnostic==f){h=p;break}h<0?(d=new rx(e.view,f),e.items.splice(o,0,d),i=!0):(d=e.items[h],h>o&&(e.items.splice(o,h-o),i=!0)),r&&d.diagnostic==r.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),a=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),o++}}}catch(e){l.e(e)}finally{l.f()}});o<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0);)i=!0,this.items.pop();0==this.items.length&&(this.items.push(new rx(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),i=!0),a?(this.list.setAttribute("aria-activedescendant",a.id),this.view.requestMeasure({key:this,read:function(){return{sel:a.dom.getBoundingClientRect(),panel:e.list.getBoundingClientRect()}},write:function(t){var n=t.sel,r=t.panel,o=r.height/e.list.offsetHeight;n.top<r.top?e.list.scrollTop-=(r.top-n.top)/o:n.bottom>r.bottom&&(e.list.scrollTop+=(n.bottom-r.bottom)/o)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}},{key:"sync",value:function(){var e=this.list.firstChild;function t(){var t=e;e=t.nextSibling,t.remove()}var n,r=re(this.items);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.dom.parentNode==this.list){for(;e!=o.dom;)t();e=o.dom.nextSibling}else this.list.insertBefore(o.dom,e)}}catch(e){r.e(e)}finally{r.f()}for(;e;)t()}},{key:"moveSelection",value:function(e){if(!(this.selectedIndex<0)){var t=ru(this.view.state.field(rd).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:rh.of(t)})}}}],[{key:"open",value:function(t){return new e(t)}}])}();function rO(e){var t=arguments.length>
11&&void 0!==arguments[1]?arguments[1]:'viewBox="0 0 40 40"';return'url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" '.concat(t,">").concat(encodeURIComponent(e),"</svg>')")}function rA(e){return rO('<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="'.concat(e,'" fill="none" stroke-width=".7"/>'),'width="6" height="3"')}var rC=s.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:rA("#d11")},".cm-lintRange-warning":{backgroundImage:rA("orange")},".cm-lintRange-info":{backgroundImage:rA("#999")},".cm-lintRange-hint":{backgroundImage:rA("#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}}});function rP(e){var t,n="hint",r=1,o=re(e);try{for(o.s();!(t=o.n()).done;){var i,a=t.value,s=(i=a.severity,"error"==i?4:"warning"==i?3:"info"==i?2:1);s>r&&(r=s,n=a.severity)}}catch(e){o.e(e)}finally{o.f()}return n}var rI=function(e){function t(e){var n;return ri(this,t),(n=n6(this,t)).diagnostics=e,n.severity=rP(e),n}return n8(t,e),ro(t,[{key:"toDOM",value:function(e){var t=document.createElement("div");t.className="cm-lint-marker cm-lint-marker-"+this.severity;var n=this.diagnostics,r=e.state.facet(rD).tooltipFilter;return r&&(n=r(n,e.state)),n.length&&(t.onmouseover=function(){var r=e,o=t,i=n;function a(){var e,t=r.elementAtHeight(o.getBoundingClientRect().top+5-r.documentTop);
1r.coordsAtPos(t.from)&&r.dispatch({effects:rT.of({pos:t.from,above:!1,clip:!1,create:function(){return{dom:rv(r,i),getCoords:function(){return o.getBoundingClientRect()}}}})}),o.onmouseout=o.onmousemove=null,e=function(t){var n=o.getBoundingClientRect();if(!(t.clientX>n.left-10)||!(t.clientX<n.right+10)||!(t.clientY>n.top-10)||!(t.clientY<n.bottom+10)){for(var i=t.target;i;i=i.parentNode)if(1==i.nodeType&&i.classList.contains("cm-tooltip-lint"))return;window.removeEventListener("mousemove",e),r.state.field(rM)&&r.dispatch({effects:rT.of(null)})}},window.addEventListener("mousemove",e)}var s=r.state.facet(rD).hoverTime,u=setTimeout(a,s);o.onmouseout=function(){clearTimeout(u),o.onmouseout=o.onmousemove=null},o.onmousemove=function(){clearTimeout(u),u=setTimeout(a,s)}}),t}}])}(s.wJ),rE=a.sU.define({create:function(){return a.om.empty},update:function(e,t){e=e.map(t.changes);var n,r=t.state.facet(rD).markerFilter,o=re(t.effects);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(i.is(rl)){var s=i.value;r&&(s=r(s||[],t.state)),e=function(e,t){var n,r=Object.create(null),o=re(t);try{for(o.s();!(n=o.n()).done;){var i=n.value,s=e.lineAt(i.from);(r[s.from]||(r[s.from]=[])).push(i)}}catch(e){o.e(e)}finally{o.f()}var u=[];for(var c in r)u.push(new rI(r[c]).range(+c));return a.om.of(u,!0)}(t.state.doc,s.slice(0))}}}catch(e){o.e(e)}finally{o.f()}return e}}),rT=a.Pe.define(),rM=a.sU.define({create:function(){return null},update:function(e,t){return e&&t.docChanged&&(e=rc(t,e)?null:Object.assign(Object.assign({},e),{pos:t.changes.mapPos(e.pos)})),t.effects.reduce(function(e,t){return t.is(rT)?t.value:e},e)},provide:function(e){return s.DK.from(e)}}),rR=[rd,s.Lz.decorations.compute([rd],function(e){var t=e.field(rd),n=t.selected,r=t.panel;return n&&r&&n.from!=n.to?s.NZ.set([rp.range(n.from,n.to)]):s.NZ.none}),(0,s.Ux)(function(e,t,n){var r,o=e.state.field(rd).diagnostics,i=-1,a=-1;o.between(t-(n<0),t+ +(n>0),function(e,o,s){var u=s.spec;if(t>=e&&t<=o&&(e==o||(t>e||n>0)&&(t<o||n<0)))return r=u.diagnostics,i=e,a=o,!1});var s=e.state.facet(ry).tooltipFilter;return(r&&s&&(r=s(r,e.state)),r)?{pos:i,end:a,above:e.state.doc.lineAt(i).to<a,create:function(){return{dom:rv(e,r)}}}:null},{hideOn:rc}),rC],rD=a.sj.define({combine:function(e){return(0,a.QR)(e,{hoverTime:300,markerFilter:null,tooltipFilter:null})}}),rL=function(e){void 0===e&&(e={});var t=e.crosshairCursor,n=[];!1!==e.closeBracketsKeymap&&(n=n.concat(nK)),!1!==e.defaultKeymap&&(n=n.concat(eB)),!1!==e.searchKeymap&&(n=n.concat(tB)),!1!==e.historyKeymap&&(n=n.concat(V)),!1!==e.foldKeymap&&(n=n.concat(u.f7)),!1!==e.completionKeymap&&(n=n.concat(n5)),!1!==e.lintKeymap&&(n=n.concat(rg));var r=[];return!1!==e.lineNumbers&&r.push((0,s.$K)()),!1!==e.highlightActiveLineGutter&&r.push((0,s.Wu)()),!1!==e.highlightSpecialChars&&r.push((0,s.N$)()),!1!==e.history&&r.push(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};
1return[C,A.of(e),s.Lz.domEventHandlers({beforeinput:function(e,t){var n="historyUndo"==e.inputType?I:"historyRedo"==e.inputType?E:null;return!!n&&(e.preventDefault(),n(t))}})]}()),!1!==e.foldGutter&&r.push((0,u.Lv)()),!1!==e.drawSelection&&r.push((0,s.VH)()),!1!==e.dropCursor&&r.push((0,s.A)()),!1!==e.allowMultipleSelections&&r.push(a.$t.allowMultipleSelections.of(!0)),!1!==e.indentOnInput&&r.push((0,u.WD)()),!1!==e.syntaxHighlighting&&r.push((0,u.y9)(u.Zt,{fallback:!0})),!1!==e.bracketMatching&&r.push((0,u.SG)()),!1!==e.closeBrackets&&r.push([nJ,nq]),!1!==e.autocompletion&&r.push(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[nM,nS,na.of(e),nE,n3,nR]}()),!1!==e.rectangularSelection&&r.push((0,s.D4)()),!1!==(void 0!==t&&t)&&r.push((0,s.HJ)()),!1!==e.highlightActiveLine&&r.push((0,s.dz)()),!1!==e.highlightSelectionMatches&&r.push([tc,tu]),e.tabSize&&"number"==typeof e.tabSize&&r.push(u.Xt.of(" ".repeat(e.tabSize))),r.concat([s.w4.of(n.flat())]).filter(Boolean)},rj=n(5223),rN="#e06c75",rF="#abb2bf",r_="#7d8799",rB="#d19a66",rV="#2c313a",rz="#282c34",rU="#353a42",rH="#528bff",rW=s.Lz.theme({"&":{color:rF,backgroundColor:rz},".cm-content":{caretColor:rH},".cm-cursor, .cm-dropCursor":{borderLeftColor:rH},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:rF},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:rz,color:r_,border:"none"},".cm-activeLineGutter":{backgroundColor:rV},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:rU},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:rU,borderBottomColor:rU},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:rV,color:rF}}},{dark:!0}),r$=u.cr.define([{tag:rj._A.keyword,color:"#c678dd"},{tag:[rj._A.name,rj._A.deleted,rj._A.character,rj._A.propertyName,rj._A.macroName],color:rN},{tag:[rj._A.function(rj._A.variableName),rj._A.labelName],color:"#61afef"},{tag:[rj._A.color,rj._A.constant(rj._A.name),rj._A.standard(rj._A.name)],color:rB},{tag:[rj._A.definition(rj._A.name),rj._A.separator],color:rF},{tag:[rj._A.typeName,rj._A.className,rj._A.number,rj._A.changed,rj._A.annotation,rj._A.modifier,rj._A.self,rj._A.namespace],color:"#e5c07b"},{tag:[rj._A.operator,rj._A.operatorKeyword,rj._A.url,rj._A.escape,rj._A.regexp,rj._A.link,rj._A.special(rj._A.string)],color:"#56b6c2"},{tag:[rj._A.meta,rj._A.comment],color:r_},{tag:rj._A.strong,fontWeight:"bold"},{tag:rj._A.emphasis,fontStyle:"italic"},{tag:rj._A.strikethrough,textDecoration:"line-through"},{tag:rj._A.link,color:r_,textDecoration:"underline"},{tag:rj._A.heading,fontWeight:"bold",color:rN},{tag:[rj._A.atom,rj._A.bool,rj._A.special(rj._A.variableName)],color:rB},{tag:[rj._A.processingInstruction,rj._A.string,rj._A.inserted],color:"#98c379"},{tag:rj._A.invalid,color:"#ffffff"}]),rq=[rW,(0,u.y9)(r$)],rZ=s.Lz.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),rQ=function(e){void 0===e&&(e={});var t=e,n=t.indentWithTab,r=t.editable,o=t.readOnly,i=t.theme,u=void 0===i?"light":i,c=t.placeholder,l=void 0===c?"":c,f=t.basicSetup,h=void 0===f||f,d=[];switch((void 0===n||n)&&d.unshift(s.w4.of([eV])),h&&("boolean"==typeof h?d.unshift(rL()):d.unshift(rL(h))),l&&d.unshift((0,s.qf)(l)),u){case"light":d.push(rZ);break;case"dark":d.push(rq);break;case"none":break;default:d.push(u)}return!1===(void 0===r||r)&&d.push(s.Lz.editable.of(!1)),void 0!==o&&o&&d.push(a.$t.readOnly.of(!0)),[].concat(d)};function rY(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}
1finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||rG(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rG(e,t){if(e){if("string"==typeof e)return rJ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rJ(e,t)}}function rJ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var rK=a.YH.define(),rX=[],r0=n(5155);function r1(e){return(r1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r2=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],r5=(0,i.forwardRef)(function(e,t){var n,u,c,l,f,h,d,p,v,m,g,y,b,k,w,x,S,O,A,C,P,I,E,T,M,R,D,L,j,N,F,_,B,V,z,U,H,W,$,q,Z,Q,Y,G,J,K,X,ee,et=e.className,en=e.value,er=void 0===en?"":en,eo=e.selection,ei=e.extensions,ea=e.onChange,es=e.onStatistics,eu=e.onCreateEditor,ec=e.onUpdate,el=e.autoFocus,ef=e.theme,eh=void 0===ef?"light":ef,ed=e.height,ep=e.minHeight,ev=e.maxHeight,em=e.width,eg=e.minWidth,ey=e.maxWidth,eb=e.basicSetup,ek=e.placeholder,ew=e.indentWithTab,ex=e.editable,eS=e.readOnly,eO=e.root,eA=e.initialState,eC=(0,o.A)(e,r2),eP=(0,i.useRef)(null),eI=(u=(n={root:eO,value:er,autoFocus:el,theme:eh,height:ed,minHeight:ep,maxHeight:ev,width:em,minWidth:eg,maxWidth:ey,basicSetup:eb,placeholder:ek,indentWithTab:ew,editable:ex,readOnly:eS,selection:eo,onChange:ea,onStatistics:es,onCreateEditor:eu,onUpdate:ec,extensions:void 0===ei?[]:ei,initialState:eA}).value,c=n.selection,l=n.onChange,f=n.onStatistics,h=n.onCreateEditor,d=n.onUpdate,v=void 0===(p=n.extensions)?rX:p,m=n.autoFocus,y=void 0===(g=n.theme)?"light":g,k=void 0===(b=n.height)?null:b,x=void 0===(w=n.minHeight)?null:w,O=void 0===(S=n.maxHeight)?null:S,C=void 0===(A=n.width)?null:A,I=void 0===(P=n.minWidth)?null:P,T=void 0===(E=n.maxWidth)?null:E,R=void 0===(M=n.placeholder)?"":M,L=void 0===(D=n.editable)||D,N=void 0!==(j=n.readOnly)&&j,_=void 0===(F=n.indentWithTab)||F,V=void 0===(B=n.basicSetup)||B,z=n.root,U=n.initialState,W=(H=rY((0,i.useState)(),2))[0],$=H[1],Z=(q=rY((0,i.useState)(),2))[0],Q=q[1],G=(Y=rY((0,i.useState)(),2))[0],J=Y[1],K=s.Lz.theme({"&":{height:k,minHeight:x,maxHeight:O,width:C,minWidth:I,maxWidth:T},"& .cm-scroller":{height:"100% !important"}}),ee=[s.Lz.updateListener.of(function(e){e.docChanged&&"function"==typeof l&&!e.transactions.some(function(e){return e.annotation(rK)})&&l(e.state.doc.toString(),e),f&&f({line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map(function(t){return e.state.sliceDoc(t.from,t.to)}),selectedText:e.state.selection.ranges.some(function(e){return!e.empty})})}),K].concat(function(e){if(Array.isArray(e))return rJ(e)}(X=rQ({theme:y,editable:L,readOnly:N,placeholder:R,indentWithTab:_,basicSetup:V}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(X)||rG(X)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d&&"function"==typeof d&&ee.push(s.Lz.updateListener.of(d)),ee=ee.concat(v),(0,i.useLayoutEffect)(function(){if(W&&!G){var e={doc:u,selection:c,extensions:ee},t=U?a.$t.fromJSON(U.json,e,U.fields):a.$t.create(e);if(J(t),!Z){var n=new s.Lz({state:t,parent:W,root:z});Q(n),h&&h(n,t)}}return function(){Z&&(J(void 0),Q(void 0))}},[W,G]),(0,i.useEffect)(function(){n.container&&$(n.container)},[n.container]),(0,i.useEffect)(function(){return function(){Z&&(Z.destroy(),Q(void 0))}},[Z]),(0,i.useEffect)(function(){m&&Z&&Z.focus()},[m,Z]),(0,i.useEffect)(function(){Z&&Z.dispatch({effects:a.Pe.reconfigure.of(ee)})},[y,v,k,x,O,C,I,T,R,L,N,_,V,l,d]),(0,i.useEffect)(function(){if(void 0!==u){var e=Z?Z.state.doc.toString():"";Z&&u!==e&&Z.dispatch({changes:{from:0,to:e.length,insert:u||""},annotations:[rK.of(!0)]})}}
1,[u,Z]),{state:G,setState:J,view:Z,setView:Q,container:W,setContainer:$}),eE=eI.state,eT=eI.view,eM=eI.container,eR=eI.setContainer;(0,i.useImperativeHandle)(t,function(){return{editor:eP.current,state:eE,view:eT}},[eP,eM,eE,eT]);var eD=(0,i.useCallback)(function(e){eP.current=e,eR(e)},[eR]);if("string"!=typeof er)throw Error("value must be typeof string but got "+r1(er));return(0,r0.jsx)("div",(0,r.A)({ref:eD,className:("string"==typeof eh?"cm-theme-"+eh:"cm-theme")+(et?" "+et:"")},eC))});r5.displayName="CodeMirror";let r3=r5},7334:(e,t,n)=>{function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==o(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}(r.key),r)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{G:()=>f});var u="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),c="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),l="undefined"!=typeof globalThis?globalThis:window,f=s(function e(t,n){i(this,e),this.rules=[];var r=(n||{}).finish;function a(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}for(var s in t)!function e(t,n,i,s){var u=[],c=/^@(\w+)\b/.exec(t[0]),l=c&&"keyframes"==c[1];if(c&&null==n)return i.push(t[0]+";");for(var f in n){var h=n[f];if(/&/.test(f))e(f.split(/,\s*/).map(function(e){return t.map(function(t){return e.replace(/&/,t)})}).reduce(function(e,t){return e.concat(t)}),h,i);else if(h&&"object"==o(h)){if(!c)throw RangeError("The value of a property ("+f+") should be a primitive value.");e(a(f),h,u,l)}else null!=h&&u.push(f.replace(/_.*/,"").replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})+": "+h+";")}(u.length||l)&&i.push((r&&!c&&!s?t.map(r):t).join(", ")+" {"+u.join(" ")+"}")}(a(s),t[s],this.rules)},[{key:"getRules",value:function(){return this.rules.join("\n")}}],[{key:"newName",value:function(){var e=l[u]||1;return l[u]=e+1,"ͼ"+e.toString(36)}},{key:"mount",value:function(e,t,n){var r=e[c],o=n&&n.nonce;r?o&&r.setNonce(o):r=new d(e,o),r.mount(Array.isArray(t)?t:[t],e)}}]),h=new Map,d=s(function e(t,n){i(this,e);var r=t.ownerDocument||t,o=r.defaultView;if(!t.head&&t.adoptedStyleSheets&&o.CSSStyleSheet){var a=h.get(r);if(a)return t[c]=a;this.sheet=new o.CSSStyleSheet,h.set(r,this)}else this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);this.modules=[],t[c]=this},[{key:"mount",value:function(e,t){for(var n,o=this.sheet,i=0,a=0,s=0;s<e.length;s++){var u=e[s],c=this.modules.indexOf(u);if(c<a&&c>-1&&(this.modules.splice(c,1),a--,c=-1),-1==c){if(this.modules.splice(a++,0,u),o)for(var l=0;l<u.rules.length;l++)o.insertRule(u.rules[l],i++)}else{for(;a<c;)i+=this.modules[a++].rules.length;i+=u.rules.length,a++}}if(o)0>t.adoptedStyleSheets.indexOf(this.sheet)&&(t.adoptedStyleSheets=[this.sheet].concat(function(e){if(Array.isArray(e))return r(e)}(n=t.adoptedStyleSheets)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return r(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}}(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()));else{for(var f="",h=0;h<this.modules.length;h++)f+=this.modules[h].getRules()+"\n";this.styleTag.textContent=f;var d=t.head||t;this.styleTag.parentNode!=d&&d.insertBefore(this.styleTag,d.firstChild)}}},{key:"setNonce",value:function(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}])},7631:(e,t,n)=>{n.d(t,{Pq:()=>U});var r=n(742),o=n(8310);function i(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}
1function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function c(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!==f(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==f(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===f(t)?t:String(t)}(r.key),r)}}function p(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var v=function(){function e(t,n,r,o,i,a,s,u,c){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,f=arguments.length>10?arguments[10]:void 0;h(this,e),this.p=t,this.stack=n,this.state=r,this.reducePos=o,this.pos=i,this.score=a,this.buffer=s,this.bufferBase=u,this.curContext=c,this.lookAhead=l,this.parent=f}return p(e,[{key:"toString",value:function(){return"[".concat(this.stack.filter(function(e,t){return t%3==0}).concat(this.state),"]@").concat(this.pos).concat(this.score?"!"+this.score:"")}},{key:"context",get:function(){return this.curContext?this.curContext.context:null}},{key:"pushState",value:function(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}},{key:"reduce",value:function(e){var t,n=e>>19,r=65535&e,o=this.p.parser,i=this.reducePos<this.pos-25;i&&this.setLookAhead(this.pos);var a=o.dynamicPrecedence(r);if(a&&(this.score+=a),0==n){this.pushState(o.getGoto(this.state,r,!0),this.reducePos),r<o.minRepeatTerm&&this.storeNode(r,this.reducePos,this.reducePos,i?8:4,!0),this.reduceContext(r,this.reducePos);return}var s=this.stack.length-(n-1)*3-(262144&e?6:0),u=s?this.stack[s-2]:this.p.ranges[0].from,c=this.reducePos-u;c>=2e3&&!(null==(t=this.p.parser.nodeSet.types[r])?void 0:t.isAnonymous)&&(u==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=c):this.p.lastBigReductionSize<c&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=u,this.p.lastBigReductionSize=c));var l=s?this.stack[s-1]:0,f=this.bufferBase+this.buffer.length-l;if(r<o.minRepeatTerm||131072&e){var h=o.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,u,h,f+4,!0)}if(262144&e)this.state=this.stack[s];else{var d=this.stack[s-3];this.state=o.getGoto(d,r,!0)}for(;this.stack.length>s;)this.stack.pop();this.reduceContext(r,u)}},{key:"storeNode",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:4,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){var i=this,a=this.buffer.length;if(0==a&&i.parent&&(a=i.bufferBase-i.parent.bufferBase,i=i.parent),a>0&&0==i.buffer[a-4]&&i.buffer[a-1]>-1){if(t==n)return;if(i.buffer[a-2]>=t){i.buffer[a-2]=n;return}}}if(o&&this.pos!=n){var s=this.buffer.length;if(s>0&&0!=this.buffer[s-4]){for(var u=!1,c=s;c>0&&this.buffer[c-2]>n;c-=4)if(this.buffer[c-1]>=0){u=!0;break}if(u)for(;s>0&&this.buffer[s-2]>n;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,r>4&&(r-=4)}this.buffer[s]=e,this.buffer[s+1]=t,this.buffer[s+2]=n,this.buffer[s+3]=r}else this.buffer.push(e,t,n,r)}},{key:"shift",value:function(e,t,n,r){if(131072&e)this.pushState(65535&e,this.pos);else if((262144&e)==0){var o=this.p.parser;(r>this.pos||t<=o.maxNode)&&(this.pos=r,o.stateFlag(e,1)||(this.reducePos=r)),this.pushState(e,n),this.shiftContext(t,n),t<=o.maxNode&&this.buffer.push(t,n,r,4)}else this.pos=r,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,r,4)}},{key:"apply",value:function(e,t,n,r){65536&e?this.reduce(e):this.shift(e,t,n,r)}},{key:"useNode",value:function(e,t){var n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);var r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(t,r),this.buffer.push(n,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}},{key:"split",value:function(){for(var t=this,n=t.buffer.length;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;for(var r=t.buffer.slice(n),o=t.bufferBase+n;t&&o==t.bufferBase;)t=t.parent;return new e(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,o,this.curContext,this.lookAhead,t)}},{key:"recoverByDelete",value:function(e,t){var n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}},{key:"canShift",value:function(e){for(var t=new g(this);;){var n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==n)return!1;if((65536&n)==0)return!0;t.reduce(n)}}},{key:"recoverByInsert",value:function(e){if(this.stack.length>=300)return[];var t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){for(var n,r=[],o=0;o<t.length;o+=2)(n=t[o+1])!=this.state&&this.p.parser.hasAction(n,e)&&r.push(t[o],n);if(this.stack.length<120)for(var i=0;r.length<8&&i<t.length;i+=2)!function(){var e=t[i+1];r.some(function(t,n){return 1&n&&t==e})||r.push(t[i],e)}();t=r}for(var a=[],s=0;s<t.length&&a.length<4;s+=2){var u=t[s+1];if(u!=this.state){var c=this.split();c.pushState(u,this.pos),c.storeNode(0,c.pos,c.pos,4,!0),c.shiftContext(t[s],this.pos),c.reducePos=this.pos,c.score-=200,a.push(c)}}return a}},{key:"forceReduce",value:function(){var e=this.p.parser,t=e.stateSlot(this.state,5);if((65536&t)==0)return!1;if(!e.validAction(this.state,t)){var n=t>>19,r=65535&t,o=this.stack.length-3*n;if(o<0||0>e.getGoto(this.stack[o],r,!1)){var i=this.findForcedReduction();if(null==i)return!1;t=i}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}},{key:"findForcedReduction",value:function(){var e=this,t=this.p.parser,n=[],r=function(o,i){if(!n.includes(o))return n.push(o),t.allActions(o,function(n){if(393216&n);
1else if(65536&n){var o=(n>>19)-i;if(o>1){var a=65535&n,s=e.stack.length-3*o;if(s>=0&&t.getGoto(e.stack[s],a,!1)>=0)return o<<19|65536|a}}else{var u=r(n,i+1);if(null!=u)return u}})};return r(this.state,0)}},{key:"forceAll",value:function(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}},{key:"deadEnd",get:function(){if(3!=this.stack.length)return!1;var e=this.p.parser;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}},{key:"restart",value:function(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}},{key:"sameState",value:function(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(var t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}},{key:"parser",get:function(){return this.p.parser}},{key:"dialectEnabled",value:function(e){return this.p.parser.dialect.flags[e]}},{key:"shiftContext",value:function(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}},{key:"reduceContext",value:function(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}},{key:"emitContext",value:function(){var e=this.buffer.length-1;(e<0||-3!=this.buffer[e])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}},{key:"emitLookAhead",value:function(){var e=this.buffer.length-1;(e<0||-4!=this.buffer[e])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}},{key:"updateContext",value:function(e){if(e!=this.curContext.context){var t=new m(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}},{key:"setLookAhead",value:function(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}},{key:"close",value:function(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}],[{key:"start",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=t.parser.context;return new e(t,[],n,r,r,0,[],0,o?new m(o,o.start):null,0,null)}}])}(),m=p(function e(t,n){h(this,e),this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}),g=p(function e(t){h(this,e),this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length},[{key:"reduce",value:function(e){var t=e>>19;0==t?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(t-1)*3;var n=this.start.p.parser.getGoto(this.stack[this.base-3],65535&e,!0);this.state=n}}]),y=function(){function e(t,n,r){h(this,e),this.stack=t,this.pos=n,this.index=r,this.buffer=t.buffer,0==this.index&&this.maybeNext()}return p(e,[{key:"maybeNext",value:function(){var e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}},{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"next",value:function(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}},{key:"fork",value:function(){return new e(this.stack,this.pos,this.index)}}],[{key:"create",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.bufferBase+t.buffer.length;return new e(t,n,n-t.bufferBase)}}])}();function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Uint16Array;if("string"!=typeof e)return e;for(var n=null,r=0,o=0;r<e.length;){for(var i=0;;){var a=e.charCodeAt(r++),s=!1;if(126==a){i=65535;break}a>=92&&a--,a>=34&&a--;var u=a-32;if(u>=46&&(u-=46,s=!0),i+=u,s)break;i*=46}n?n[o++]=i:n=new t(i)}return n}var k=p(function e(){h(this,e),this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}),w=new k,x=p(function e(t,n){h(this,e),this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=w,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext(
1)},[{key:"resolveOffset",value:function(e,t){for(var n=this.range,r=this.rangeIndex,o=this.pos+e;o<n.from;){if(!r)return null;var i=this.ranges[--r];o-=n.from-i.to,n=i}for(;t<0?o>n.to:o>=n.to;){if(r==this.ranges.length-1)return null;var a=this.ranges[++r];o+=a.from-n.to,n=a}return o}},{key:"clipPos",value:function(e){if(e>=this.range.from&&e<this.range.to)return e;var t,n=u(this.ranges);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.to>e)return Math.max(e,r.from)}}catch(e){n.e(e)}finally{n.f()}return this.end}},{key:"peek",value:function(e){var t,n,r=this.chunkOff+e;if(r>=0&&r<this.chunk.length)t=this.pos+e,n=this.chunk.charCodeAt(r);else{var o=this.resolveOffset(e,1);if(null==o)return -1;if((t=o)>=this.chunk2Pos&&t<this.chunk2Pos+this.chunk2.length)n=this.chunk2.charCodeAt(t-this.chunk2Pos);else{for(var i=this.rangeIndex,a=this.range;a.to<=t;)a=this.ranges[++i];this.chunk2=this.input.chunk(this.chunk2Pos=t),t+this.chunk2.length>a.to&&(this.chunk2=this.chunk2.slice(0,a.to-t)),n=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),n}},{key:"acceptToken",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n<this.token.start)throw RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}},{key:"acceptTokenTo",value:function(e,t){this.token.value=e,this.token.end=t}},{key:"getChunk",value:function(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){var e=this.chunk,t=this.chunkPos;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;var n=this.input.chunk(this.pos),r=this.pos+n.length;this.chunk=r>this.range.to?n.slice(0,this.range.to-this.pos):n,this.chunkPos=this.pos,this.chunkOff=0}}},{key:"readNext",value:function(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}},{key:"advance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}},{key:"setDone",value:function(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}},{key:"reset",value:function(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=w,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}},{key:"read",value:function(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);var n,r="",o=u(this.ranges);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(i.from>=t)break;i.to>e&&(r+=this.input.read(Math.max(i.from,e),Math.min(i.to,t)))}}catch(e){o.e(e)}finally{o.f()}return r}}]),S=p(function e(t,n){h(this,e),this.data=t,this.id=n},[{key:"token",value:function(e,t){var n=t.p.parser;O(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}]);function O(e,t,n,r,o,i){var a=0,s=1<<r,u=n.p.parser.dialect;e:for(;(s&e[a])!=0;){for(var c=e[a+1],l=a+3;l<c;l+=2)if((e[l+1]&s)>0){var f=e[l];if(u.allows(f)&&(-1==t.token.value||t.token.value==f||function(e,t,n,r){var o=A(n,r,t);return o<0||A(n,r,e)<o}(f,t.token.value,o,i))){t.acceptToken(f);break}}var h=t.next,d=0,p=e[a+2];if(t.next<0&&p>d&&65535==e[c+3*p-3]){a=e[c+3*p-1];continue}for(;d<p;){var v=d+p>>1,m=c+v+(v<<1),g=e[m],y=e[m+1]||65536;if(h<g)p=v;else if(h>=y)d=v+1;else{a=e[m+2],t.advance();continue e}}break}}function A(e,t,n){for(var r,o=t;65535!=(r=e[o]);o++)if(r==n)return o-t;return -1}S.prototype.contextual=S.prototype.fallback=S.prototype.extend=!1,p(function e(t,n,r){h(this,e),this.precTable=n,this.elseToken=r,this.data="string"==typeof t?b(t):t},[{key:"token",value:function(e,t){for(var n=e.pos,r=0;;){var o=e.next<0,i=e.resolveOffset(1,1);if(O(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(null==this.elseToken)return;if(!o&&r++,null==i)break;e.reset(i,e.token)}r&&(e.reset(n,e.token),e.acceptToken(this.elseToken,r))}}]).prototype.contextual=S.prototype.fallback=S.prototype.extend=!1;var C=void 0!==o&&o.env&&/\bparse\b/.test(o.env.LOG),P=null;
1function I(e,t,n){var o=e.cursor(r.Qj.IncludeAnonymous);for(o.moveTo(t);;)if(!(n<0?o.childBefore(t):o.childAfter(t)))for(;;){if((n<0?o.to<t:o.from>t)&&!o.type.isError)return n<0?Math.max(0,Math.min(o.to-1,t-25)):Math.min(e.length,Math.max(o.from+1,t+25));if(n<0?o.prevSibling():o.nextSibling())break;if(!o.parent())return n<0?0:e.length}}var E=p(function e(t,n){h(this,e),this.fragments=t,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()},[{key:"nextFragment",value:function(){var e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?I(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?I(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}},{key:"nodeAt",value:function(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){var t=this.trees.length-1;if(t<0)return this.nextFragment(),null;var n=this.trees[t],o=this.index[t];if(o==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}var i=n.children[o],a=this.start[t]+n.positions[o];if(a>e)return this.nextStart=a,null;if(i instanceof r.PH){if(a==e){if(a<this.safeFrom)return null;var s=a+i.length;if(s<=this.safeTo){var u=i.prop(r.uY.lookAhead);if(!u||s+u<this.fragment.to)return i}}this.index[t]++,a+i.length>=Math.max(this.safeFrom,e)&&(this.trees.push(i),this.start.push(a),this.index.push(0))}else this.index[t]++,this.nextStart=a+i.length}}}]),T=p(function e(t,n){h(this,e),this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(function(e){return new k})},[{key:"getActions",value:function(e){for(var t=0,n=null,r=e.p.parser,o=r.tokenizers,i=r.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,s=0,u=0;u<o.length;u++)if((1<<u&i)!=0){var c=o[u],l=this.tokens[u];if((!n||c.fallback)&&((c.contextual||l.start!=e.pos||l.mask!=i||l.context!=a)&&(this.updateCachedToken(l,c,e),l.mask=i,l.context=a),l.lookAhead>l.end+25&&(s=Math.max(l.lookAhead,s)),0!=l.value)){var f=t;if(l.extended>-1&&(t=this.addActions(e,l.extended,l.end,t)),t=this.addActions(e,l.value,l.end,t),!c.extend&&(n=l,t>f))break}}for(;this.actions.length>t;)this.actions.pop();return s&&e.setLookAhead(s),n||e.pos!=this.stream.end||((n=new k).value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}},{key:"getMainToken",value:function(e){if(this.mainToken)return this.mainToken;var t=new k,n=e.pos,r=e.p;return t.start=n,t.end=Math.min(n+1,r.stream.end),t.value=n==r.stream.end?r.parser.eofTerm:0,t}},{key:"updateCachedToken",value:function(e,t,n){var r=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(r,e),n),e.value>-1){for(var o=n.p.parser,i=0;i<o.specialized.length;i++)if(o.specialized[i]==e.value){var a=o.specializers[i](this.stream.read(e.start,e.end),n);if(a>=0&&n.p.parser.dialect.allows(a>>1)){(1&a)==0?e.value=a>>1:e.extended=a>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}},{key:"putAction",value:function(e,t,n,r){for(var o=0;o<r;o+=3)if(this.actions[o]==e)return r;return this.actions[r++]=e,this.actions[r++]=t,this.actions[r++]=n,r}},{key:"addActions",value:function(e,t,n,r){for(var o=e.state,i=e.p.parser,a=i.data,s=0;s<2;s++)for(var u=i.stateSlot(o,s?2:1);;u+=3){if(65535==a[u])if(1==a[u+1])u=j(a,u+2);else{0==r&&2==a[u+1]&&(r=this.putAction(j(a,u+2),t,n,r));break}a[u]==t&&(r=this.putAction(j(a,u+1),t,n,r))}return r}}]),M=p(function e(t,n,r,o){h(this,e),this.parser=t,this.input=n,this.ranges=o,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new x(n,o),this.tokens=new T(t,this.stream),this.topTerm=t.top[1];var i=o[0].from;this.stacks=[v.start(this,t.top[0],i)],this.fragments=r.length&&this.stream.end-i>4*t.bufferLength?new E(r,t.nodeSet):null},[{key:"parsedPos",get:function(){return this.minStackPos}},{key:"advance",value:function(){var e,t,n=this.stacks,r=this.minStackPos,o=this.stacks=[];if(this.bigReductionCount>300&&1==n.length){for(var i=(function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}
1finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(n,1)||c(n,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];i.forceReduce()&&i.stack.length&&i.stack[i.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(var a=0;a<n.length;a++)for(var s=n[a];;){if(this.tokens.mainToken=null,s.pos>r)o.push(s);else{if(this.advanceStack(s,o,n))continue;e||(e=[],t=[]),e.push(s);var l=this.tokens.getMainToken(s);t.push(l.value,l.end)}break}if(!o.length){var f=e&&function(e){var t,n=null,r=u(e);try{for(r.s();!(t=r.n()).done;){var o=t.value,i=o.p.stoppedAt;(o.pos==o.p.stream.end||null!=i&&o.pos>i)&&o.p.parser.stateFlag(o.state,2)&&(!n||n.score<o.score)&&(n=o)}}catch(e){r.e(e)}finally{r.f()}return n}(e);if(f)return C&&console.log("Finish with "+this.stackID(f)),this.stackToTree(f);if(this.parser.strict)throw C&&e&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),SyntaxError("No parse at "+r);this.recovering||(this.recovering=5)}if(this.recovering&&e){var h=null!=this.stoppedAt&&e[0].pos>this.stoppedAt?e[0]:this.runRecovery(e,t,o);if(h)return C&&console.log("Force-finish "+this.stackID(h)),this.stackToTree(h.forceAll())}if(this.recovering){var d=1==this.recovering?1:3*this.recovering;if(o.length>d)for(o.sort(function(e,t){return t.score-e.score});o.length>d;)o.pop();o.some(function(e){return e.reducePos>r})&&this.recovering--}
1else if(o.length>1){n:for(var p=0;p<o.length-1;p++)for(var v=o[p],m=p+1;m<o.length;m++){var g=o[m];if(v.sameState(g)||v.buffer.length>500&&g.buffer.length>500)if((v.score-g.score||v.buffer.length-g.buffer.length)>0)o.splice(m--,1);else{o.splice(p--,1);continue n}}o.length>12&&o.splice(12,o.length-12)}this.minStackPos=o[0].pos;for(var y=1;y<o.length;y++)o[y].pos<this.minStackPos&&(this.minStackPos=o[y].pos);return null}},{key:"stopAt",value:function(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw RangeError("Can't move stoppedAt forward");this.stoppedAt=e}},{key:"advanceStack",value:function(e,t,n){var o=e.pos,i=this.parser,a=C?this.stackID(e)+" -> ":"";if(null!=this.stoppedAt&&o>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments)for(var s=e.curContext&&e.curContext.tracker.strict,u=s?e.curContext.hash:0,c=this.fragments.nodeAt(o);c;){var l=this.parser.nodeSet.types[c.type.id]==c.type?i.getGoto(e.state,c.type.id):-1;if(l>-1&&c.length&&(!s||(c.prop(r.uY.contextHash)||0)==u))return e.useNode(c,l),C&&console.log(a+this.stackID(e)+" (via reuse of ".concat(i.getName(c.type.id),")")),!0;if(!(c instanceof r.PH)||0==c.children.length||c.positions[0]>0)break;var f=c.children[0];if(f instanceof r.PH&&0==c.positions[0])c=f;else break}var h=i.stateSlot(e.state,4);if(h>0)return e.reduce(h),C&&console.log(a+this.stackID(e)+" (via always-reduce ".concat(i.getName(65535&h),")")),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););for(var d=this.tokens.getActions(e),p=0;p<d.length;){var v=d[p++],m=d[p++],g=d[p++],y=p==d.length||!n,b=y?e:e.split(),k=this.tokens.mainToken;if(b.apply(v,m,k?k.start:b.pos,g),C&&console.log(a+this.stackID(b)+" (via ".concat((65536&v)==0?"shift":"reduce of ".concat(i.getName(65535&v))," for ").concat(i.getName(m)," @ ").concat(o).concat(b==e?"":", split",")")),y)return!0;b.pos>o?t.push(b):n.push(b)}return!1}},{key:"advanceFully",value:function(e,t){for(var n=e.pos;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return R(e,t),!0}}},{key:"runRecovery",value:function(e,t,n){for(var r=null,o=!1,i=0;i<e.length;i++){var a=e[i],s=t[i<<1],c=t[(i<<1)+1],l=C?this.stackID(a)+" -> ":"";if(!(a.deadEnd&&(o||(o=!0,a.restart(),C&&console.log(l+this.stackID(a)+" (restarted)"),this.advanceFully(a,n))))){for(var f=a.split(),h=l,d=0;f.forceReduce()&&d<10&&(C&&console.log(h+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,n));d++)C&&(h=this.stackID(f)+" -> ");var p,v=u(a.recoverByInsert(s));try{for(v.s();!(p=v.n()).done;){var m=p.value;C&&console.log(l+this.stackID(m)+" (via recover-insert)"),this.advanceFully(m,n)}}catch(e){v.e(e)}finally{v.f()}this.stream.end>a.pos?(c==a.pos&&(c++,s=0),a.recoverByDelete(s,c),C&&console.log(l+this.stackID(a)+" (via recover-delete ".concat(this.parser.getName(s),")")),R(a,n)):(!r||r.score<a.score)&&(r=a)}}return r}},{key:"stackToTree",value:function(e){return e.close(),r.PH.build({buffer:y.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}},{key:"stackID",value:function(e){var t=(P||(P=new WeakMap)).get(e);return t||P.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}]);function R(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(r.pos==e.pos&&r.sameState(e)){t[n].score<e.score&&(t[n]=e);return}}t.push(e)}var D=p(function e(t,n,r){h(this,e),this.source=t,this.flags=n,this.disabled=r},[{key:"allows",value:function(e){return!this.disabled||0==this.disabled[e]}}]),L=function(e){function t(e){if(h(this,t),p=a(p=t),(g=function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");var n=e;if(void 0===n)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(this,!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){return!1}}()?p.apply(this,void 0):Reflect.construct(p,v||[],a(this).constructor))).wrappers=[],14!=e.version)throw RangeError("Parser version (".concat(e.version,") doesn't match runtime version (",14,")"));var n=e.nodeNames.split(" ");g.minRepeatTerm=n.length;for(var o=0;o<e.repeatNodeCount;o++)n.push("");for(var s=Object.keys(e.topRules).map(function(t){return e.topRules[t][1]}),c=[],l=0;l<n.length;l++)c.push([]);function d(e,t,n){c[e].push([t,t.deserialize(String(n))])}if(e.nodeProps){var p,v,m,g,y,k=u(e.nodeProps);try{for(k.s();!(y=k.n()).done;){var w=y.value,x=w[0];"string"==typeof x&&(x=r.uY[x]);for(var O=1;O<w.length;){var A=w[O++];if(A>=0)d(A,x,w[O++]);else{for(var C=w[O+-A],P=-A;P>0;P--)d(w[O++],x,C);O++}}}}catch(e){k.e(e)}finally{k.f()}}g.nodeSet=new r.fI(n.map(function(t,n){return r.Z6.define({name:n>=g.minRepeatTerm?void 0:t,id:n,props:c[n],top:s.indexOf(n)>-1,error:0==n,skipped:e.skippedNodes&&e.skippedNodes.indexOf(n)>-1})}
1)),e.propSources&&(g.nodeSet=(m=g.nodeSet).extend.apply(m,i(e.propSources))),g.strict=!1,g.bufferLength=r.cF;var I=b(e.tokenData);g.context=e.context,g.specializerSpecs=e.specialized||[],g.specialized=new Uint16Array(g.specializerSpecs.length);for(var E=0;E<g.specializerSpecs.length;E++)g.specialized[E]=g.specializerSpecs[E].term;return g.specializers=g.specializerSpecs.map(N),g.states=b(e.states,Uint32Array),g.data=b(e.stateData),g.goto=b(e.goto),g.maxTerm=e.maxTerm,g.tokenizers=e.tokenizers.map(function(e){return"number"==typeof e?new S(I,e):e}),g.topRules=e.topRules,g.dialects=e.dialects||{},g.dynamicPrecedences=e.dynamicPrecedences||null,g.tokenPrecTable=e.tokenPrec,g.termNames=e.termNames||null,g.maxNode=g.nodeSet.types.length-1,g.dialect=g.parseDialect(),g.top=g.topRules[Object.keys(g.topRules)[0]],g}if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e),p(t,[{key:"createParse",value:function(e,t,n){var r,o=new M(this,e,t,n),i=u(this.wrappers);try{for(i.s();!(r=i.n()).done;)o=(0,r.value)(o,e,t,n)}catch(e){i.e(e)}finally{i.f()}return o}},{key:"getGoto",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.goto;if(t>=r[0])return -1;for(var o=r[t+1];;){var i=r[o++],a=1&i,s=r[o++];if(a&&n)return s;for(var u=o+(i>>1);o<u;o++)if(r[o]==e)return s;if(a)return -1}}},{key:"hasAction",value:function(e,t){for(var n=this.data,r=0;r<2;r++)for(var o,i=this.stateSlot(e,r?2:1);;i+=3){if(65535==(o=n[i]))if(1==n[i+1])o=n[i=j(n,i+2)];else if(2==n[i+1])return j(n,i+2);else break;if(o==t||0==o)return j(n,i+1)}return 0}},{key:"stateSlot",value:function(e,t){return this.states[6*e+t]}},{key:"stateFlag",value:function(e,t){return(this.stateSlot(e,0)&t)>0}},{key:"validAction",value:function(e,t){return!!this.allActions(e,function(e){return e==t||null})}},{key:"allActions",value:function(e,t){for(var n=this.stateSlot(e,4),r=n?t(n):void 0,o=this.stateSlot(e,1);null==r;o+=3){if(65535==this.data[o])if(1==this.data[o+1])o=j(this.data,o+2);else break;r=t(j(this.data,o+1))}return r}},{key:"nextStates",value:function(e){for(var t=this,n=[],r=this.stateSlot(e,1);!function(e){if(65535==t.data[e])if(1!=t.data[e+1])return r=e,1;else e=j(t.data,e+2);if((1&t.data[e+2])==0){var o=t.data[e+1];n.some(function(e,t){return 1&t&&e==o})||n.push(t.data[e],o)}r=e}(r);r+=3);return n}},{key:"configure",value:function(e){var n,r=Object.assign(Object.create(t.prototype),this);if(e.props&&(r.nodeSet=(n=this.nodeSet).extend.apply(n,i(e.props))),e.top){var o=this.topRules[e.top];if(!o)throw RangeError("Invalid top rule name ".concat(e.top));r.top=o}return e.tokenizers&&(r.tokenizers=this.tokenizers.map(function(t){var n=e.tokenizers.find(function(e){return e.from==t});return n?n.to:t})),e.specializers&&(r.specializers=this.specializers.slice(),r.specializerSpecs=this.specializerSpecs.map(function(t,n){var o=e.specializers.find(function(e){return e.from==t.external});if(!o)return t;var i=Object.assign(Object.assign({},t),{external:o.to});return r.specializers[n]=N(i),i})),e.contextTracker&&(r.context=e.contextTracker),e.dialect&&(r.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(r.strict=e.strict),e.wrap&&(r.wrappers=r.wrappers.concat(e.wrap)),null!=e.bufferLength&&(r.bufferLength=e.bufferLength),r}},{key:"hasWrappers",value:function(){return this.wrappers.length>0}},{key:"getName",value:function(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}},{key:"eofTerm",get:function(){return this.maxNode+1}},{key:"topNode",get:function(){return this.nodeSet.types[this.top[1]]}},{key:"dynamicPrecedence",value:function(e){var t=this.dynamicPrecedences;return null==t?0:t[e]||0}},{key:"parseDialect",value:function(e){var t=Object.keys(this.dialects),n=t.map(function(){return!1});if(e){var r,o=u(e.split(" "));try{for(o.s();!(r=o.n()).done;){var i=r.value,a=t.indexOf(i);a>=0&&(n[a]=!0)}}catch(e){o.e(e)}finally{o.f()}}for(var s=null,c=0;c<t.length;c++)if(!n[c])for(var l,f=this.dialects[t[c]];65535!=(l=this.data[f++]);)(s||(s=new Uint8Array(this.maxTerm+1)))[l]=1;return new D(e,n,s)}}],[{key:"deserialize",value:function(e){return new t(e)}}])}(r.iX);function j(e,t){return e[t]|e[t+1]<<16}function N(e){if(e.external){var t=+!!e.extend;return function(n,r){return e.external(n,r)<<1|t}}return e.get}var F=n(5223),_=(0,F.pn)({String:F._A.string,Number:F._A.number,"True False":F._A.bool,PropertyName:F._A.propertyName,Null:F._A.null,", :":F._A.separator,"[ ]":F._A.squareBracket,"{ }":F._A.brace}),B=L.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[_],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),V=n(2733),z=V.bj.define({name:"json",parser:B.configure({props:[V.Oh.add({Object:(0,V.mz)({except:/^\s*\}/}),Array:(0,V.mz)({except:/^\s*\]/})}),V.b_.add({"Object Array":V.yd})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function U(){return new V.Yy(z)}}
1,8428:(e,t,n)=>{function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function i(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach(function(t){i(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){if(e){if("string"==typeof e)return u(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||c(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.d(t,{Ay:()=>nZ});var f,h,d,p=n(9084);function v(e,t){if(null==e)return{};var n,r,o=(0,p.A)(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&({}).propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var m=n(2115),g=n.t(m,2),y=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"],b=n(6155);function k(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function w(e,t){return(w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(S=function(){return!!e})()}function O(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var A=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t));var t,n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else n.appendChild(document.createTextNode(e));this.ctr++}
vendor: 4,169 bytes, line 1
1,t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),C=Math.abs,P=String.fromCharCode,I=Object.assign;function E(e,t,n){return e.replace(t,n)}function T(e,t){return e.indexOf(t)}function M(e,t){return 0|e.charCodeAt(t)}function R(e,t,n){return e.slice(t,n)}function D(e){return e.length}function L(e,t){return t.push(e),e}var j=1,N=1,F=0,_=0,B=0,V="";function z(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:j,column:N,length:a,return:""}}function U(e,t){return I(z("",null,null,"",null,null,0),e,{length:-e.length},t)}function H(){return B=_<F?M(V,_++):0,N++,10===B&&(N=1,j++),B}function W(){return M(V,_)}function $(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function q(e){return j=N=1,F=D(V=e),_=0,[]}function Z(e){var t,n;return(t=_-1,n=function e(t){for(;H();)switch(B){case t:return _;case 34:case 39:34!==t&&39!==t&&e(B);break;case 40:41===t&&e(t);break;case 92:H()}return _}(91===e?e+2:40===e?e+1:e),R(V,t,n)).trim()}var Q="-ms-",Y="-moz-",G="-webkit-",J="comm",K="rule",X="decl",ee="@keyframes";function et(e,t){for(var n="",r=e.length,o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function en(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case X:return e.return=e.return||e.value;case J:return"";case ee:return e.return=e.value+"{"+et(e.children,r)+"}";case K:e.value=e.props.join(",")}return D(n=et(e.children,r))?e.return=e.value+"{"+n+"}":""}function er(e,t,n,r,o,i,a,s,u,c,l){for(var f=o-1,h=0===o?i:[""],d=h.length,p=0,v=0,m=0;p<r;++p)for(var g=0,y=R(e,f+1,f=C(v=a[p])),b=e;g<d;++g)(b=(v>0?h[g]+" "+y:E(y,/&\f/g,h[g])).trim())&&(u[m++]=b);return z(e,t,n,0===o?K:s,u,c,l)}function eo(e,t,n,r){return z(e,t,n,X,R(e,0,r),R(e,r+1,-1),r)}var ei=function(e,t,n){for(var r=0,o=0;r=o,o=W(),38===r&&12===o&&(t[n]=1),!$(o);)H();return R(V,e,_)},ea=function(e,t){var n=-1,r=44;do switch($(r)){case 0:38===r&&12===W()&&(t[n]=1),e[n]+=ei(_-1,t,n);break;case 2:e[n]+=Z(r);break;case 4:if(44===r){e[++n]=58===W()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=P(r)}while(r=H());return e},es=function(e,t){var n;return n=ea(q(e),t),V="",n},eu=new WeakMap,ec=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||eu.get(n))&&!r){eu.set(e,!0);for(var o=[],i=es(t,o),a=n.props,s=0,u=0;s<i.length;s++)for(var c=0;c<a.length;c++,u++)e.props[u]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},el=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},ef=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case X:e.return=function e(t,n){switch(45^M(t,0)?(((n<<2^M(t,0))<<2^M(t,1))<<2^M(t,2))<<2^M(t,3):0){case 5103:return G+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return G+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return G+t+Y+t+Q+t+t;case 6828:case 4268:return G+t+Q+t+t;case 6165:return G+t+Q+"flex-"+t+t;case 5187:return G+t+E(t,/(\w+).+(:[^]+)/,G+"box-$1$2"+Q+"flex-$1$2")+t;case 5443:return G+t+Q+"flex-item-"+E(t,/flex-|-self/,"")+t;case 4675:return G+t+Q+"flex-line-pack"+E(t,/align-content|flex-|-self/,"")+t;case 5548:return G+t+Q+E(t,"shrink","negative")+t;case 5292:return G+t+Q+E(t,"basis","preferred-size")+t;case 6060:return G+"box-"+E(t,"-grow","")+G+t+Q+E(t,"grow","positive")+t;case 4554:return G+E(t,/([^-])(transform)/g,"$1"+G+"$2")+t;case 6187:return E(E(E(t,/(zoom-|grab)/,G+"$1"),/(image-set)/,G+"$1"),t,"")+t;case 5495:case 3959:return E(t,/(image-set\([^]*)/,G+"$1$`$1");case 4968:return E(E(t,/(.+:)(flex-)?(.*)/,G+"box-pack:$3"+Q+"flex-
1pack:$3"),/s.+-b[^;]+/,"justify")+G+t+t;case 4095:case 3583:case 4068:case 2532:return E(t,/(.+)-inline(.+)/,G+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(D(t)-1-n>6)switch(M(t,n+1)){case 109:if(45!==M(t,n+4))break;case 102:return E(t,/(.+:)(.+)-([^]+)/,"$1"+G+"$2-$3$1"+Y+(108==M(t,n+3)?"$3":"$2-$3"))+t;case 115:return~T(t,"stretch")?e(E(t,"stretch","fill-available"),n)+t:t}break;case 4949:if(115!==M(t,n+1))break;case 6444:switch(M(t,D(t)-3-(~T(t,"!important")&&10))){case 107:return E(t,":",":"+G)+t;case 101:return E(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+G+(45===M(t,14)?"inline-":"")+"box$3$1"+G+"$2$3$1"+Q+"$2box$3")+t}break;case 5936:switch(M(t,n+11)){case 114:return G+t+Q+E(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return G+t+Q+E(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return G+t+Q+E(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return G+t+Q+t+t}return t}(e.value,e.length);break;case ee:return et([U(e,{value:E(e.value,"@","@"+G)})],r);case K:if(e.length){var o,i;return o=e.props,i=function(t){var n;switch(n=t,(n=/(::plac\w+|:read-\w+)/.exec(n))?n[0]:n){case":read-only":case":read-write":return et([U(e,{props:[E(t,/:(read-\w+)/,":"+Y+"$1")]})],r);case"::placeholder":return et([U(e,{props:[E(t,/:(plac\w+)/,":"+G+"input-$1")]}),U(e,{props:[E(t,/:(plac\w+)/,":"+Y+"$1")]}),U(e,{props:[E(t,/:(plac\w+)/,Q+"input-$1")]})],r)}return""},o.map(i).join("")}}}],eh=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},ed=function(e,t,n){eh(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next;while(void 0!==o)}},ep={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function ev(e){return(ev="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var em=/[A-Z]|^ms/g,eg=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ey=function(e){return 45===e.charCodeAt(1)},eb=function(e){return null!=e&&"boolean"!=typeof e},ek=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}(function(e){return ey(e)?e:e.replace(em,"-$&").toLowerCase()}),ew=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(eg,function(e,t,n){return h={name:t,styles:n,next:h},t})}return 1===ep[e]||ey(e)||"number"!=typeof t||0===t?t:t+"px"};function ex(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(ev(n)){case"boolean":return"";case"object":if(1===n.anim)return h={name:n.name,styles:n.styles,next:h},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)h={name:r.name,styles:r.styles,next:h},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ex(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!==ev(a))null!=t&&void 0!==t[a]?r+=i+"{"+t[a]+"}":eb(a)&&(r+=ek(i)+":"+ew(i,a)+";");else if(Array.isArray(a)&&"string"==typeof a[0]&&(null==t||void 0===t[a[0]]))for(var s=0;s<a.length;s++)eb(a[s])&&(r+=ek(i)+":"+ew(i,a[s])+";");else{var u=ex(e,t,a);switch(i){case"animation":case"animationName":r+=ek(i)+":"+u+";";break;default:r+=i+"{"+u+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var o=h,i=n(e);return h=o,ex(e,t,i)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var eS=/label:\s*([^\s;{]+)\s*(;|$)/g;
vendor: 4,191 bytes, line 1
1function eO(e,t,n){if(1===e.length&&"object"===ev(e[0])&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r,o=!0,i="";h=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,i+=ex(n,t,a)):i+=a[0];for(var s=1;s<e.length;s++)i+=ex(n,t,e[s]),o&&(i+=a[s]);eS.lastIndex=0;for(var u="";null!==(r=eS.exec(i));)u+="-"+r[1];return{name:function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&n)*0x5bd1e995+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)}(i)+u,styles:i,next:h}}var eA=!!g.useInsertionEffect&&g.useInsertionEffect,eC=eA||function(e){return e()};eA||m.useLayoutEffect;var eP=m.createContext("undefined"!=typeof HTMLElement?function(e){var t,n,r,o,i,a=e.key;if("css"===a){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var u=e.stylisPlugins||ef,c={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+a+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)c[t[n]]=!0;l.push(e)});var f=(n=(t=[ec,el].concat(u,[en,(r=function(e){i.insert(e)},function(e){!e.root&&(e=e.return)&&r(e)})])).length,function(e,r,o,i){for(var a="",s=0;s<n;s++)a+=t[s](e,r,o,i)||"";return a}),h=function(e){var t,n;return et((n=function e(t,n,r,o,i,a,s,u,c){for(var l,f=0,h=0,d=s,p=0,v=0,m=0,g=1,y=1,b=1,k=0,w="",x=i,S=a,O=o,A=w;y;)switch(m=k,k=H()){case 40:if(108!=m&&58==M(A,d-1)){-1!=T(A+=E(Z(k),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:A+=Z(k);break;case 9:case 10:case 13:case 32:A+=function(e){for(;B=W();)if(B<33)H();else break;return $(e)>2||$(B)>3?"":" "}(m);break;case 92:A+=function(e,t){for(var n;--t&&H()&&!(B<48)&&!(B>102)&&(!(B>57)||!(B<65))&&(!(B>70)||!(B<97)););return n=_+(t<6&&32==W()&&32==H()),R(V,e,n)}(_-1,7);continue;case 47:switch(W()){case 42:case 47:L((l=function(e,t){for(;H();)if(e+B===57)break;else if(e+B===84&&47===W())break;return"/*"+R(V,t,_-1)+"*"+P(47===e?e:H())}(H(),_),z(l,n,r,J,P(B),R(l,2,-2),0)),c);break;default:A+="/"}break;case 123*g:u[f++]=D(A)*b;case 125*g:case 59:case 0:switch(k){case 0:case 125:y=0;case 59+h:-1==b&&(A=E(A,/\f/g,"")),v>0&&D(A)-d&&L(v>32?eo(A+";",o,r,d-1):eo(E(A," ","")+";",o,r,d-2),c);break;case 59:A+=";";default:if(L(O=er(A,n,r,f,h,i,u,w,x=[],S=[],d),a),123===k)if(0===h)e(A,n,O,O,x,a,d,u,S);else switch(99===p&&110===M(A,3)?100:p){case 100:case 108:case 109:case 115:e(t,O,O,o&&L(er(t,O,O,0,0,i,u,w,i,x=[],d),S),i,S,d,u,o?x:S);break;default:e(A,O,O,O,[""],S,0,u,S)}}f=h=v=0,g=b=1,w=A="",d=s;break;case 58:d=1+D(A),v=m;default:if(g<1){if(123==k)--g;else if(125==k&&0==g++&&125==(B=_>0?M(V,--_):0,N--,10===B&&(N=1,j--),B))continue}switch(A+=P(k),k*g){case 38:b=h>0?1:(A+="\f",-1);break;case 44:u[f++]=(D(A)-1)*b,b=1;break;case 64:45===W()&&(A+=Z(H())),p=W(),h=d=D(w=A+=function(e){for(;!$(W());)H();return R(V,e,_)}(_)),k++;break;case 45:45===m&&2==D(A)&&(g=0)}}return a}("",null,null,null,[""],t=q(t=e),0,[0],t),V="",n),f)},d={key:a,sheet:new A({key:a,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:c,registered:{},insert:function(e,t,n,r){i=n,h(e?e+"{"+t.styles+"}":t.styles),r&&(d.inserted[t.name]=!0)}};return d.sheet.hydrate(l),d}({key:"css"}):null);eP.Provider;var eI=m.createContext({}),eE={}.hasOwnProperty,eT="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",eM=function(e,t){var n={};for(var r in t)eE.call(t,r)&&(n[r]=t[r]);return n[eT]=e,n},eR=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return eh(t,n,r),eC(function(){return ed(t,n,r)}),null},eD=(f=function(e,t,n){var r,o,i,a=e.css;"string"==typeof a&&void 0!==t.registered[a]&&(a=t.registered[a]
1);var s=e[eT],u=[a],c="";"string"==typeof e.className?(r=t.registered,o=e.className,i="",o.split(" ").forEach(function(e){void 0!==r[e]?u.push(r[e]+";"):e&&(i+=e+" ")}),c=i):null!=e.className&&(c=e.className+" ");var l=eO(u,void 0,m.useContext(eI));c+=t.key+"-"+l.name;var f={};for(var h in e)eE.call(e,h)&&"css"!==h&&h!==eT&&(f[h]=e[h]);return f.className=c,n&&(f.ref=n),m.createElement(m.Fragment,null,m.createElement(eR,{cache:t,serialized:l,isStringTag:"string"==typeof s}),m.createElement(s,f))},(0,m.forwardRef)(function(e,t){return f(e,(0,m.useContext)(eP),t)}));n(3526);var eL=function(e,t){var n=arguments;if(null==t||!eE.call(t,"css"))return m.createElement.apply(void 0,n);var r=n.length,o=Array(r);o[0]=eD,o[1]=eM(e,t);for(var i=2;i<r;i++)o[i]=n[i];return m.createElement.apply(null,o)};function ej(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return eO(t)}!function(e){var t;t||(t=e.JSX||(e.JSX={}))}(eL||(eL={}));var eN=n(7650),eF=Math.min,e_=Math.max,eB=Math.round,eV=Math.floor,ez=function(e){return{x:e,y:e}},eU={left:"right",right:"left",bottom:"top",top:"bottom"},eH={start:"end",end:"start"};function eW(e){var t=e.x,n=e.y,r=e.width,o=e.height;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function e$(e){return eQ(e)?(e.nodeName||"").toLowerCase():"#document"}function eq(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eZ(e){var t;return null==(t=(eQ(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function eQ(e){return e instanceof Node||e instanceof eq(e).Node}function eY(e){return e instanceof Element||e instanceof eq(e).Element}function eG(e){return e instanceof HTMLElement||e instanceof eq(e).HTMLElement}function eJ(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof eq(e).ShadowRoot)}function eK(e){var t=e5(e),n=t.overflow,r=t.overflowX,o=t.overflowY,i=t.display;return/auto|scroll|overlay|hidden|clip/.test(n+o+r)&&!["inline","contents"].includes(i)}function eX(e){return[":popover-open",":modal"].some(function(t){try{return e.matches(t)}catch(e){return!1}})}function e0(e){var t=e1(),n=eY(e)?e5(e):e;return["transform","translate","scale","rotate","perspective"].some(function(e){return!!n[e]&&"none"!==n[e]})||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(function(e){return(n.willChange||"").includes(e)})||["paint","layout","strict","content"].some(function(e){return(n.contain||"").includes(e)})}function e1(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function e2(e){return["html","body","#document"].includes(e$(e))}function e5(e){return eq(e).getComputedStyle(e)}function e3(e){return eY(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function e4(e){if("html"===e$(e))return e;var t=e.assignedSlot||e.parentNode||eJ(e)&&e.host||eZ(e);return eJ(t)?t.host:t}function e6(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=!0);var r,o=function e(t){var n=e4(t);return e2(n)?t.ownerDocument?t.ownerDocument.body:t.body:eG(n)&&eK(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=eq(o);if(i){var s=e9(a);return t.concat(a,a.visualViewport||[],eK(o)?o:[],s&&n?e6(s):[])}return t.concat(o,e6(o,[],n))}function e9(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function e8(e){return(e8="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function e7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?e7(Object(n),!0).forEach(function(t){var r,o,i;r=e,o=t,i=n[t],(o=function(e){var t=function(e,t){if("object"!==e8(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==e8(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===e8(t)?t:String(t)}(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e7(Object(n)).forEac
1h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tt(){tt=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function l(t,n,r,i){var a,s,u,c,l=Object.create((n&&n.prototype instanceof m?n:m).prototype);return o(l,"_invoke",{value:(a=t,s=r,u=new P(i||[]),c=h,function(t,n){if(c===d)throw Error("Generator is already running");if(c===p){if("throw"===t)throw n;return{value:e,done:!0}}for(u.method=t,u.arg=n;;){var r=u.delegate;if(r){var o=function t(n,r){var o=r.method,i=n.iterator[o];if(i===e)return r.delegate=null,"throw"===o&&n.iterator.return&&(r.method="return",r.arg=e,t(n,r),"throw"===r.method)||"return"!==o&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+o+"' method")),v;var a=f(i,n.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,v;var s=a.arg;return s?s.done?(r[n.resultName]=s.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):s:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,v)}(r,u);if(o){if(o===v)continue;return o}}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if(c===h)throw c=p,u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);c=d;var i=f(a,s,u);if("normal"===i.type){if(c=u.done?p:"suspendedYield",i.arg===v)continue;return{value:i.arg,done:u.done}}"throw"===i.type&&(c=p,u.method="throw",u.arg=i.arg)}})}),l}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var h="suspendedStart",d="executing",p="completed",v={};function m(){}function g(){}function y(){}var b={};c(b,a,function(){return this});var k=Object.getPrototypeOf,w=k&&k(k(I([])));w&&w!==n&&r.call(w,a)&&(b=w);var x=y.prototype=m.prototype=Object.create(b);function S(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function O(e,t){var n;o(this,"_invoke",{value:function(o,i){function a(){return new t(function(n,a){!function n(o,i,a,s){var u=f(e[o],e,i);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==e8(l)&&r.call(l,"__await")?t.resolve(l.__await).then(function(e){n("next",e,a,s)},function(e){n("throw",e,a,s)}):t.resolve(l).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,s)})}s(u.arg)}(o,i,n,a)})}return n=n?n.then(a,a):a()}})}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function I(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw TypeError(e8(t)+" is not iterable")}return g.prototype=y,o(x,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:g,configurable:!0}),g.displayName=c(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},S(O.prototype),c(O.prototype,s,function(){return this}),t.AsyncIterator=O,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new O(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},S(x),c(x,u,"Generator"),c(x,a,function(){return this}),c(x,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
1h(C),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:I(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}function tn(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){n(e);return}s.done?t(u):Promise.resolve(u).then(r,o)}function tr(e){return function(e){if(Array.isArray(e))return ti(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||to(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function to(e,t){if(e){if("string"==typeof e)return ti(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ti(e,t)}}function ti(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ta(e){var t=e5(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=eG(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=eB(n)!==i||eB(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function ts(e){return eY(e)?e:e.contextElement}function tu(e){var t=ts(e);if(!eG(t))return ez(1);var n=t.getBoundingClientRect(),r=ta(t),o=r.width,i=r.height,a=r.$,s=(a?eB(n.width):n.width)/o,u=(a?eB(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),u&&Number.isFinite(u)||(u=1),{x:s,y:u}}var tc=ez(0);function tl(e){var t=eq(e);return e1()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:tc}function tf(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);var o,i=e.getBoundingClientRect(),a=ts(e),s=ez(1);t&&(r?eY(r)&&(s=tu(r)):s=tu(e));var u=(void 0===(o=n)&&(o=!1),r&&(!o||r===eq(a))&&o)?tl(a):ez(0),c=(i.left+u.x)/s.x,l=(i.top+u.y)/s.y,f=i.width/s.x,h=i.height/s.y;if(a)for(var d=eq(a),p=r&&eY(r)?eq(r):r,v=d,m=e9(v);m&&r&&p!==v;){var g=tu(m),y=m.getBoundingClientRect(),b=e5(m),k=y.left+(m.clientLeft+parseFloat(b.paddingLeft))*g.x,w=y.top+(m.clientTop+parseFloat(b.paddingTop))*g.y;c*=g.x,l*=g.y,f*=g.x,h*=g.y,c+=k,l+=w,m=e9(v=eq(m))}return eW({width:f,height:h,x:c,y:l})}function th(e,t){var n=e3(e).scrollLeft;return t?t.left+n:tf(eZ(e)).left+n}function td(e,t,n){void 0===n&&(n=!1);var r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:th(e,r)),y:r.top+t.scrollTop}}function tp(e,t,n){if("viewport"===t)r=function(e,t){var n=eq(e),r=eZ(e),o=n.visualVie
1wport,i=r.clientWidth,a=r.clientHeight,s=0,u=0;if(o){i=o.width,a=o.height;var c=e1();(!c||c&&"fixed"===t)&&(s=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:s,y:u}}(e,n);else if("document"===t)o=eZ(e),i=eZ(o),a=e3(o),s=o.ownerDocument.body,u=e_(i.scrollWidth,i.clientWidth,s.scrollWidth,s.clientWidth),c=e_(i.scrollHeight,i.clientHeight,s.scrollHeight,s.clientHeight),l=-a.scrollLeft+th(o),f=-a.scrollTop,"rtl"===e5(s).direction&&(l+=e_(i.clientWidth,s.clientWidth)-u),r={width:u,height:c,x:l,y:f};else if(eY(t))d=(h=tf(t,!0,"fixed"===n)).top+t.clientTop,p=h.left+t.clientLeft,v=eG(t)?tu(t):ez(1),r={width:t.clientWidth*v.x,height:t.clientHeight*v.y,x:p*v.x,y:d*v.y};else{var r,o,i,a,s,u,c,l,f,h,d,p,v,m=tl(e);r={x:t.x-m.x,y:t.y-m.y,width:t.width,height:t.height}}return eW(r)}function tv(e,t,n){var r=eG(t),o=eZ(t),i="fixed"===n,a=tf(e,!0,i,t),s={scrollLeft:0,scrollTop:0},u=ez(0);if(r||!r&&!i)if(("body"!==e$(t)||eK(o))&&(s=e3(t)),r){var c=tf(t,!0,i,t);u.x=c.x+t.clientLeft,u.y=c.y+t.clientTop}else o&&(u.x=th(o));i&&!r&&o&&(u.x=th(o));var l=!o||r||i?ez(0):td(o,s);return{x:a.left+s.scrollLeft-u.x-l.x,y:a.top+s.scrollTop-u.y-l.y,width:a.width,height:a.height}}function tm(e){return"static"===e5(e).position}function tg(e,t){if(!eG(e)||"fixed"===e5(e).position)return null;if(t)return t(e);var n=e.offsetParent;return eZ(e)===n&&(n=n.ownerDocument.body),n}function ty(e,t){var n=eq(e);if(eX(e))return n;if(!eG(e)){for(var r=e4(e);r&&!e2(r);){if(eY(r)&&!tm(r))return r;r=e4(r)}return n}for(var o=tg(e,t);o&&["table","td","th"].includes(e$(o))&&tm(o);)o=tg(o,t);return o&&e2(o)&&tm(o)&&!e0(o)?n:o||function(e){for(var t=e4(e);eG(t)&&!e2(t);){if(e0(t))return t;if(eX(t))break;t=e4(t)}return null}(e)||n}var tb=function(){var e,t=(e=tt().mark(function e(t){var n,r,o,i,a,s,u,c,l;return tt().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.getOffsetParent||ty,r=this.getDimensions,e.next=1,r(t.floating);case 1:return o=e.sent,i=tv,a=t.reference,e.next=2,n(t.floating);case 2:return s=e.sent,u=t.strategy,c=i(a,s,u),l={x:0,y:0,width:o.width,height:o.height},e.abrupt("return",{reference:c,floating:l});case 3:case"end":return e.stop()}},e,this)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){tn(i,r,o,a,s,"next",e)}function s(e){tn(i,r,o,a,s,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}();function tk(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var tw=m.useLayoutEffect,tx=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],tS=function(){};function tO(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(a?"-"===a[0]?e+a:e+"__"+a:e));return i.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var tA=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===r(e)&&null!==e?[e]:[]},tC=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,s({},v(e,tx))},tP=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function tI(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function tE(e){return tI(e)?window.pageYOffset:e.scrollTop}function tT(e,t){if(tI(e))return void window.scrollTo(0,t);e.scrollTop=t}function tM(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:tS,o=tE(e),i=t-o,a=0;!function t(){var s;a+=10,tT(e,i*((s=(s=a)/n-1)*s*s+1)+o),a<n?window.requestAnimationFrame(t):r(e)}()}function tR(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?tT(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&tT(e,Math.max(t.offsetTop-o,0))}function tD(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var tL=!1,tj=window;tj.addEventListener&&tj.removeEventListener&&(tj.addEventListener("p",tS,{get passive
1(){return tL=!0}}),tj.removeEventListener("p",tS,!1));var tN=tL;function tF(e){return null!=e}var t_=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.entries(e).filter(function(e){var t=l(e,1)[0];return!n.includes(t)}).reduce(function(e,t){var n=l(t,2),r=n[0],o=n[1];return e[r]=o,e},{})},tB=["children","innerProps"],tV=["children","innerProps"],tz=function(e){return"auto"===e?"bottom":e},tU=(0,m.createContext)(null),tH=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,u=e.theme,c=((0,m.useContext)(tU)||{}).setPortalPlacement,f=(0,m.useRef)(null),h=l((0,m.useState)(r),2),d=h[0],p=h[1],v=l((0,m.useState)(null),2),g=v[0],y=v[1],b=u.spacing.controlHeight;return tw(function(){var e=f.current;if(e){var t="fixed"===i,s=function(e){var t,n=e.maxHeight,r=e.menuEl,o=e.minHeight,i=e.placement,a=e.shouldScroll,s=e.isFixedPosition,u=e.controlHeight,c=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(r),l={placement:"bottom",maxHeight:n};if(!r||!r.offsetParent)return l;var f=c.getBoundingClientRect().height,h=r.getBoundingClientRect(),d=h.bottom,p=h.height,v=h.top,m=r.offsetParent.getBoundingClientRect().top,g=s||tI(t=c)?window.innerHeight:t.clientHeight,y=tE(c),b=parseInt(getComputedStyle(r).marginBottom,10),k=parseInt(getComputedStyle(r).marginTop,10),w=m-k,x=g-v,S=w+y,O=f-y-v,A=d-g+y+b,C=y+v-k;switch(i){case"auto":case"bottom":if(x>=p)return{placement:"bottom",maxHeight:n};if(O>=p&&!s)return a&&tM(c,A,160),{placement:"bottom",maxHeight:n};if(!s&&O>=o||s&&x>=o)return a&&tM(c,A,160),{placement:"bottom",maxHeight:s?x-b:O-b};if("auto"===i||s){var P=n,I=s?w:S;return I>=o&&(P=Math.min(I-b-u,n)),{placement:"top",maxHeight:P}}if("bottom"===i)return a&&tT(c,A),{placement:"bottom",maxHeight:n};break;case"top":if(w>=p)return{placement:"top",maxHeight:n};if(S>=p&&!s)return a&&tM(c,C,160),{placement:"top",maxHeight:n};if(!s&&S>=o||s&&w>=o){var E=n;return(!s&&S>=o||s&&w>=o)&&(E=s?w-k:S-k),a&&tM(c,C,160),{placement:"top",maxHeight:E}}return{placement:"bottom",maxHeight:n};default:throw Error('Invalid placement provided "'.concat(i,'".'))}return l}({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:b});p(s.maxHeight),y(s.placement),null==c||c(s.placement)}},[r,o,i,a,n,c,b]),t({ref:f,placerProps:s(s({},e),{},{placement:g||tz(o),maxHeight:d})})},tW=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return s({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},t$=["size"],tq=["innerProps","isRtl","size"],tZ={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},tQ=function(e){var t=e.size,n=v(e,t$);return eL("svg",(0,b.A)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:tZ},n))},tY=function(e){return eL(tQ,(0,b.A)({size:20},e),eL("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},tG=function(e){return eL(tQ,(0,b.A)({size:20},e),eL("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},tJ=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return s({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},tK=function(){var e=ej.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(d||(d=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"]))),tX=function(e){var t=e.delay,n=e.offset;return eL("span",{css:ej({animation:"".concat(tK," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},t0=["data"],t1=["innerRef","isDisabled","isHidden","inputClassName"],t2={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},t5={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":s({content:'attr(data-value) " "',visibility:"hidden",
1whiteSpace:"pre"},t2)},t3=function(e){var t=e.children,n=e.innerProps;return eL("div",n,t)},t4={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return eL("div",(0,b.A)({},tP(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||eL(tY,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return eL("div",(0,b.A)({ref:o},tP(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return eL("div",(0,b.A)({},tP(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||eL(tG,null))},DownChevron:tG,CrossIcon:tY,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,u=e.label,c=e.theme,l=e.selectProps;return eL("div",(0,b.A)({},tP(e,"group",{group:!0}),s),eL(i,(0,b.A)({},a,{selectProps:l,theme:c,getStyles:r,getClassNames:o,cx:n}),u),eL("div",null,t))},GroupHeading:function(e){var t=tC(e);t.data;var n=v(t,t0);return eL("div",(0,b.A)({},tP(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return eL("div",(0,b.A)({},tP(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return eL("span",(0,b.A)({},t,tP(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=tC(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,u=r.inputClassName,c=v(r,t1);return eL("div",(0,b.A)({},tP(e,"input",{"input-container":!0}),{"data-value":n||""}),eL("input",(0,b.A)({className:t({input:!0},u),ref:o,style:s({label:"input",color:"inherit",background:0,opacity:+!a,width:"100%"},t2),disabled:i},c)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=v(e,tq);return eL("div",(0,b.A)({},tP(s(s({},o),{},{innerProps:t,isRtl:n,size:void 0===r?4:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),eL(tX,{delay:0,offset:n}),eL(tX,{delay:160,offset:!0}),eL(tX,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return eL("div",(0,b.A)({},tP(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return eL("div",(0,b.A)({},tP(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,i=e.menuPlacement,a=e.menuPosition,u=(0,m.useRef)(null),c=(0,m.useRef)(null),f=l((0,m.useState)(tz(i)),2),h=f[0],d=f[1],p=(0,m.useMemo)(function(){return{setPortalPlacement:d}},[]),v=l((0,m.useState)(null),2),g=v[0],y=v[1],k=(0,m.useCallback)(function(){if(r){var e,t={bottom:(e=r.getBoundingClientRect()).bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width},n="fixed"===a?0:window.pageYOffset,o=t[h]+n;(o!==(null==g?void 0:g.offset)||t.left!==(null==g?void 0:g.rect.left)||t.width!==(null==g?void 0:g.rect.width))&&y({offset:o,rect:t})}},[r,a,h,null==g?void 0:g.offset,null==g?void 0:g.rect.left,null==g?void 0:g.rect.width]);tw(function(){k()},[k]);var w=(0,m.useCallback)(function(){var e,t,n,o,i,a,s,l,f,h,d,p,v,m,g,y,b,w,x;"function"==typeof c.current&&(c.current(),c.current=null),r&&u.current&&(e=u.current,i=void 0===(o=(t={elementResize:"ResizeObserver"in window}).ancestorScroll)||o,s=void 0===(a=t.ancestorResize)||a,f=void 0===(l=t.elementResize)?"function"==typeof ResizeObserver:l,d=void 0===(h=t.layoutShift)?"function"==typeof IntersectionObserver:h,v=void 0!==(p=t.animationFrame)&&p,m=ts(r),(g=i||s?[].concat(tr(m?e6(m):[]),tr(e6(e))):[]).forEach(function(e){i&&e.addEventListener("scroll",k,{passive:!0}),s&&e.addEventListener("resize",k)}),y=m&&d?function(e,t){var n,r=null,o=eZ(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),i();var c=e.getBoundingClientRect(),l=c.left,f=c.top,h=c.width,d=c.height;if(s||t(),h&&d){var p={rootMargin:-eV(f)+"px "+-eV(o.clientWidth-(l+h))+"px "+-eV(o.clientHeight-(f+d))+"px "+-eV(l)+"px",threshold:e_(0,eF(1,u))||1},v=!0;try{r=new IntersectionObserver(m,te(te({},p),{},{root:o.ownerDocument}))}catch(e){r=new IntersectionObserver(m,p)}r.observe(e)}function m(t){var r=t[0].intersectionRatio;if(r!==u){if(!v)return a();r?a(!1,r):n=setTimeout(function(){a(!1,1e-7)},1e3)}1!==r||tk(c,e.getBoundingClientRect())||a(),v=!1}}(!0),i}(m,k):null,b=-1,w=null,f&&(w=new ResizeObserver(function(t){var n=(function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],u=!0,c=!1;try{i=(n=n.call(e)).next,!1;for(;!(u=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,o=e}
1finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,1)||to(t,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];n&&n.target===m&&w&&(w.unobserve(e),cancelAnimationFrame(b),b=requestAnimationFrame(function(){var t;null==(t=w)||t.observe(e)})),k()}),m&&!v&&w.observe(m),w.observe(e)),x=v?tf(r):null,v&&function e(){var t=tf(r);x&&!tk(x,t)&&k(),x=t,n=requestAnimationFrame(e)}(),k(),c.current=function(){var e;g.forEach(function(e){i&&e.removeEventListener("scroll",k),s&&e.removeEventListener("resize",k)}),null==y||y(),null==(e=w)||e.disconnect(),w=null,v&&cancelAnimationFrame(n)})},[r,k]);tw(function(){w()},[w]);var x=(0,m.useCallback)(function(e){u.current=e,w()},[w]);if(!t&&"fixed"!==a||!g)return null;var S=eL("div",(0,b.A)({ref:x},tP(s(s({},e),{},{offset:g.offset,position:a,rect:g.rect}),"menuPortal",{"menu-portal":!0}),o),n);return eL(tU.Provider,{value:p},t?(0,eN.createPortal)(S,t):S)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=v(e,tV);return eL("div",(0,b.A)({},tP(s(s({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=v(e,tB);return eL("div",(0,b.A)({},tP(s(s({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,u=e.selectProps,c=n.Container,l=n.Label,f=n.Remove;return eL(c,{data:r,innerProps:s(s({},tP(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:u},eL(l,{data:r,innerProps:s({},tP(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:u},t),eL(f,{data:r,innerProps:s(s({},tP(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:u}))},MultiValueContainer:t3,MultiValueLabel:t3,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return eL("div",(0,b.A)({role:"button"},n),t||eL(tY,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return eL("div",(0,b.A)({},tP(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return eL("div",(0,b.A)({},tP(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return eL("div",(0,b.A)({},tP(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return eL("div",(0,b.A)({},tP(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return eL("div",(0,b.A)({},tP(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},t6=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function t9(e,t){if(e.length!==t.length)return!1;for(var n,r,o=0;o<e.length;o++)if(!((n=e[o])===(r=t[o])||t6(n)&&t6(r))&&1)return!1;return!0}for(var t8={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},t7=function(e){return eL("span",(0,b.A)({css:t8},e))},ne={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;
1switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return i?"option ".concat(r," is disabled. Select another option."):"option ".concat(r,", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,u=e.isSelected,c=e.isAppleDevice,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(l(a,n),".");if("menu"===t&&c){var f="".concat(u?" selected":"").concat(s?" disabled":"");return"".concat(i).concat(f,", ").concat(l(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},nt=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,u=e.selectProps,c=e.id,l=e.isAppleDevice,f=u.ariaLiveMessages,h=u.getOptionLabel,d=u.inputValue,p=u.isMulti,v=u.isOptionDisabled,g=u.isSearchable,y=u.menuIsOpen,b=u.options,k=u.screenReaderStatus,w=u.tabSelectsValue,x=u.isLoading,S=u["aria-label"],O=u["aria-live"],A=(0,m.useMemo)(function(){return s(s({},ne),f||{})},[f]),C=(0,m.useMemo)(function(){var e="";if(t&&A.onChange){var n=t.option,r=t.options,o=t.removedValue,i=t.removedValues,u=t.value,c=o||n||(Array.isArray(u)?null:u),l=c?h(c):"",f=r||i||void 0,d=f?f.map(h):[],p=s({isDisabled:c&&v(c,a),label:l,labels:d},t);e=A.onChange(p)}return e},[t,A,v,a,h]),P=(0,m.useMemo)(function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&A.onFocus){var s={focused:t,label:h(t),isDisabled:v(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a,isAppleDevice:l};e=A.onFocus(s)}return e},[n,r,h,v,A,o,a,l]),I=(0,m.useMemo)(function(){var e="";if(y&&b.length&&!x&&A.onFilter){var t=k({count:o.length});e=A.onFilter({inputValue:d,resultsMessage:t})}return e},[o,d,y,A,b,k,x]),E=(null==t?void 0:t.action)==="initial-input-focus",T=(0,m.useMemo)(function(){var e="";if(A.guidance){var t=r?"value":y?"menu":"input";e=A.guidance({"aria-label":S,context:t,isDisabled:n&&v(n,a),isMulti:p,isSearchable:g,tabSelectsValue:w,isInitialFocus:E})}return e},[S,n,r,p,v,g,y,A,a,w,E]),M=eL(m.Fragment,null,eL("span",{id:"aria-selection"},C),eL("span",{id:"aria-focused"},P),eL("span",{id:"aria-results"},I),eL("span",{id:"aria-guidance"},T));return eL(m.Fragment,null,eL(t7,{id:c},E&&M),eL(t7,{"aria-live":O,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!E&&M))},nn=[{base:"A",letters:"AⒶA\xc0\xc1\xc2ẦẤẪẨ\xc3ĀĂẰẮẴẲȦǠ\xc4ǞẢ\xc5ǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"\xc6ǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČ\xc7ḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺE\xc8\xc9\xcaỀẾỄỂẼĒḔḖĔĖ\xcbẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾI\xcc\xcd\xceĨĪĬİ\xcfḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃ\xd1ṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄO\xd2\xd3\xd4ỒỐỖỔ\xd5ṌȬṎŌṐṒŎȮȰ\xd6ȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬ\xd8ǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"}
1,{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊU\xd9\xda\xdbŨṸŪṺŬ\xdcǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲ\xddŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚ\xe0\xe1\xe2ầấẫẩ\xe3āăằắẵẳȧǡ\xe4ǟả\xe5ǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"\xe6ǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċč\xe7ḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔe\xe8\xe9\xeaềếễểẽēḕḗĕė\xebẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘi\xec\xed\xeeĩīĭ\xefḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹń\xf1ṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞo\xf2\xf3\xf4ồốỗổ\xf5ṍȭṏōṑṓŏȯȱ\xf6ȫỏőǒȍȏơờớỡởợọộǫǭ\xf8ǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢs\xdfśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤu\xf9\xfa\xfbũṹūṻŭ\xfcǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳ\xfdŷỹȳẏ\xffỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],nr=RegExp("["+nn.map(function(e){return e.letters}).join("")+"]","g"),no={},ni=0;ni<nn.length;ni++)for(var na=nn[ni],ns=0;ns<na.letters.length;ns++)no[na.letters[ns]]=na.base;var nu=function(e){return e.replace(nr,function(e){return no[e]})},nc=function(e,t){void 0===t&&(t=t9);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(nu),nl=function(e){return e.replace(/^\s+|\s+$/g,"")},nf=function(e){return"".concat(e.label," ").concat(e.value)},nh=["innerRef"];function nd(e){var t=e.innerRef,n=t_(v(e,nh),"onExited","in","enter","exit","appear");return eL("input",(0,b.A)({ref:t},n,{css:ej({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var np=function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()},nv=["boxSizing","height","overflow","paddingRight","position"],nm={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ng(e){e.cancelable&&e.preventDefault()}function ny(e){e.stopPropagation()}function nb(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function nk(){return"ontouchstart"in window||navigator.maxTouchPoints}var nw=!!window.document&&!!window.document.createElement,nx=0,nS={capture:!1,passive:!1},nO=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},nA={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function nC(e){var t,n,r,o,i,a,s,u,c,l,f,h,d,p,v,g,y,b,k,w,x,S,O,A,C=e.children,P=e.lockEnabled,I=e.captureEnabled,E=(n=(t={isEnabled:void 0===I||I,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}
1).isEnabled,r=t.onBottomArrive,o=t.onBottomLeave,i=t.onTopArrive,a=t.onTopLeave,s=(0,m.useRef)(!1),u=(0,m.useRef)(!1),c=(0,m.useRef)(0),l=(0,m.useRef)(null),f=(0,m.useCallback)(function(e,t){if(null!==l.current){var n=l.current,c=n.scrollTop,f=n.scrollHeight,h=n.clientHeight,d=l.current,p=t>0,v=f-h-c,m=!1;v>t&&s.current&&(o&&o(e),s.current=!1),p&&u.current&&(a&&a(e),u.current=!1),p&&t>v?(r&&!s.current&&r(e),d.scrollTop=f,m=!0,s.current=!0):!p&&-t>c&&(i&&!u.current&&i(e),d.scrollTop=0,m=!0,u.current=!0),m&&np(e)}},[r,o,i,a]),h=(0,m.useCallback)(function(e){f(e,e.deltaY)},[f]),d=(0,m.useCallback)(function(e){c.current=e.changedTouches[0].clientY},[]),p=(0,m.useCallback)(function(e){var t=c.current-e.changedTouches[0].clientY;f(e,t)},[f]),v=(0,m.useCallback)(function(e){if(e){var t=!!tN&&{passive:!1};e.addEventListener("wheel",h,t),e.addEventListener("touchstart",d,t),e.addEventListener("touchmove",p,t)}},[p,d,h]),g=(0,m.useCallback)(function(e){e&&(e.removeEventListener("wheel",h,!1),e.removeEventListener("touchstart",d,!1),e.removeEventListener("touchmove",p,!1))},[p,d,h]),(0,m.useEffect)(function(){if(n){var e=l.current;return v(e),function(){g(e)}}},[n,v,g]),function(e){l.current=e}),T=(b=(y={isEnabled:P}).isEnabled,w=void 0===(k=y.accountForScrollbars)||k,x=(0,m.useRef)({}),S=(0,m.useRef)(null),O=(0,m.useCallback)(function(e){if(nw){var t=document.body,n=t&&t.style;if(w&&nv.forEach(function(e){var t=n&&n[e];x.current[e]=t}),w&&nx<1){var r=parseInt(x.current.paddingRight,10)||0,o=document.body?document.body.clientWidth:0,i=window.innerWidth-o+r||0;Object.keys(nm).forEach(function(e){var t=nm[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(i,"px"))}t&&nk()&&(t.addEventListener("touchmove",ng,nS),e&&(e.addEventListener("touchstart",nb,nS),e.addEventListener("touchmove",ny,nS))),nx+=1}},[w]),A=(0,m.useCallback)(function(e){if(nw){var t=document.body,n=t&&t.style;nx=Math.max(nx-1,0),w&&nx<1&&nv.forEach(function(e){var t=x.current[e];n&&(n[e]=t)}),t&&nk()&&(t.removeEventListener("touchmove",ng,nS),e&&(e.removeEventListener("touchstart",nb,nS),e.removeEventListener("touchmove",ny,nS)))}},[w]),(0,m.useEffect)(function(){if(b){var e=S.current;return O(e),function(){A(e)}}},[b,O,A]),function(e){S.current=e});return eL(m.Fragment,null,P&&eL("div",{onClick:nO,css:nA}),C(function(e){E(e),T(e)}))}var nP={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},nI=function(e){var t=e.name,n=e.onFocus;return eL("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:nP,value:"",onChange:function(){}})};function nE(e){var t;return null!=window.navigator&&e.test((null==(t=window.navigator.userAgentData)?void 0:t.platform)||window.navigator.platform)}var nT={clearIndicator:tJ,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return s({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:tJ,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return s({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return s({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return s(s({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},t5),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.c
vendor: 6,229 bytes, line 1
1olors,a=o.spacing.baseUnit;return s({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:tW,menu:function(e,t){var n,r=e.placement,o=e.theme,a=o.borderRadius,u=o.spacing,c=o.colors;return s((i(n={label:"menu"},r?({bottom:"top",top:"bottom"})[r]:"bottom","100%"),i(n,"position","absolute"),i(n,"width","100%"),i(n,"zIndex",1),n),t?{}:{backgroundColor:c.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return s({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return s({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return s({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return s({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:tW,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,u=i.colors;return s({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?u.primary:r?u.primary25:"transparent",color:n?u.neutral20:o?u.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?u.primary:u.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return s({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return s({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return s({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},nM={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},nR={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:tD(),captureMenuScroll:!tD(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=s({ignoreCase:!0,ignoreAccents:!0,stringify:nf,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,u=n.matchFrom,c=a?nl(t):t,l=a?nl(i(e)):i(e);return r&&(c=c.toLowerCase(),l=l.toLowerCase()),o&&(c=nc(c),l=nu(l)),"start"===u?l.substr(0,c.length)===c:l.indexOf(c)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function nD(e,t,n,r){var o=nz(e,t,n),i=nU(e,t,n),a=nB(e,t),s=nV(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:a,value:s,index:r}}function nL(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(n,r){return nD(e,n,t,r)}).filter(function(t){return nF(e,t)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=nD(e,n,t,r);return nF(e,i)?i:void 0}).filter(tF)}function nj(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,O(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function nN(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,O(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function nF(e,t){var n=e.inputValue,r=t.data,o=t.isSelected,i=t.label,a=t.value;return(!nW(e)||!o)&&nH(e,{label:i,value:a,data:r},void 0===n?"":n)}var n_=function(e,t){var n;return(null==(n=e.find(function(e){return e.data===t}))?void 0:n.id)||null},nB=function(e,t){return e.getOptionLabel(t)}
1,nV=function(e,t){return e.getOptionValue(t)};function nz(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function nU(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=nV(e,t);return n.some(function(t){return nV(e,t)===r})}function nH(e,t,n){return!e.filterOption||e.filterOption(t,n)}var nW=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},n$=1,nq=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),e&&w(a,e);var t,n,o,i=(t=S(),function(){var e,n=x(a);e=t?Reflect.construct(n,arguments,x(this).constructor):n.apply(this,arguments);if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===this)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return this});function a(e){var t;if(!(this instanceof a))throw TypeError("Cannot call a class as a function");if((t=i.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=nE(/^Mac/i)||nE(/^iPhone/i)||nE(/^iPad/i)||nE(/^Mac/i)&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange;n.name=r.name,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(t.setState({inputIsHiddenAfterUpdate:!a}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,i=n.name,a=t.state.selectValue,s=o&&t.isOptionSelected(e,a),u=t.isOptionDisabled(e,a);if(s){var c=t.getOptionValue(e);t.setValue(a.filter(function(e){return t.getOptionValue(e)!==c}),"deselect-option",e)}else{if(u)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});o?t.setValue([].concat(O(a),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n,r=t.props.isMulti,o=t.state.selectValue,i=t.getOptionValue(e),a=o.filter(function(e){return t.getOptionValue(e)!==i}),s=(n=a[0]||null,r?a:n);t.onChange(s,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e,n,r=t.state.selectValue;t.onChange((e=t.props.isMulti,n=[],e?n:null),{action:"clear",removedValues:r})},t.popValue=function(){var e,n=t.props.isMulti,r=t.state.selectValue,o=r[r.length-1],i=r.slice(0,r.length-1),a=(e=i[0]||null,n?i:e);o&&t.onChange(a,{action:"pop-value",removedValue:o})},t.getFocusedOptionId=function(e){return n_(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return nN(nL(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return tO.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return nB(t.props,e)},t.getOptionValue=function(e){return nV(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=nT[e](n,r);o.boxSizing="border-box";var i=t.props.styles[e];return i?i(o,n):o},t.getClassNames=function(e,n){var r,o;return null==(r=(o=t.props.classNames)[e])?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){var e;return e=t.props,s(s({},t4),e.components)},t.buildCategorizedOptions=function(){return nL(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return nj(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:s({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!t.props.isDisabled){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focu
vendor: 6,519 bytes, line 1
1sInput():setTimeout(function(){return t.focusInput()}))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&tI(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;if(t.menuListRef&&t.menuListRef.contains(document.activeElement))return void t.inputRef.focus();t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1})},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return nW(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,a=n.inputValue,s=n.isClearable,u=n.isDisabled,c=n.menuIsOpen,l=n.onKeyDown,f=n.tabSelectsValue,h=n.openMenuOnFocus,d=t.state,p=d.focusedOption,v=d.focusedValue,m=d.selectValue;if(!u){if("function"==typeof l&&(l(e),e.defaultPrevented))return;switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||a)return;t.focusValue("previous");break;case"ArrowRight":if(!r||a)return;t.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(v)t.removeValue(v);else{if(!o)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing||e.shiftKey||!c||!f||!p||h&&t.isOptionSelected(p,m))return;t.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(c){if(!p||t.isComposing)return;t.selectOption(p);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:a}),t.onMenuClose()):s&&i&&t.clearValue();break;case" ":if(a)return;if(!c){t.openMenu("first");break}if(!p)return;t.selectOption(p);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++n$),t.state.selectValue=tA(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),o=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[o],t.state.focusedOptionId=n_(n,r[o])}return t}return n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&tR(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(tR(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);
1n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(nM):s(s({},nM),this.props.theme):nM}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,u=s.isMulti,c=s.isRtl,l=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:u,isRtl:c,options:l,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return nz(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return nU(this.props,e,t)}},{key:"filterOption",value:function(e,t){return nH(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"!=typeof this.props.formatOptionLabel)return this.getOptionLabel(e);var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,u=e.menuIsOpen,c=e.required,l=this.getComponents().Input,f=this.state,h=f.inputIsHidden,d=f.ariaSelection,p=this.commonProps,v=r||this.getElementId("input"),g=s(s(s({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},u&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?(null==d?void 0:d.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?m.createElement(l,(0,b.A)({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:t,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},g)):m.createElement(nd,(0,b.A)({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:tS,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,u=this.commonProps,c=this.props,l=c.
1controlShouldRenderValue,f=c.isDisabled,h=c.isMulti,d=c.inputValue,p=c.placeholder,v=this.state,g=v.selectValue,y=v.focusedValue,k=v.isFocused;if(!this.hasValue()||!l)return d?null:m.createElement(s,(0,b.A)({},u,{key:"placeholder",isDisabled:f,isFocused:k,innerProps:{id:this.getElementId("placeholder")}}),p);if(h)return g.map(function(t,a){var s=t===y,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return m.createElement(n,(0,b.A)({},u,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:f,key:c,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(d)return null;var w=g[0];return m.createElement(a,(0,b.A)({},u,{data:w,isDisabled:f}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return m.createElement(e,(0,b.A)({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?m.createElement(e,(0,b.A)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return m.createElement(n,(0,b.A)({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return m.createElement(e,(0,b.A)({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e,t=this,n=this.getComponents(),r=n.Group,o=n.GroupHeading,i=n.Menu,a=n.MenuList,s=n.MenuPortal,u=n.LoadingMessage,c=n.NoOptionsMessage,l=n.Option,f=this.commonProps,h=this.state.focusedOption,d=this.props,p=d.captureMenuScroll,v=d.inputValue,g=d.isLoading,y=d.loadingMessage,k=d.minMenuHeight,w=d.maxMenuHeight,x=d.menuIsOpen,S=d.menuPlacement,O=d.menuPosition,A=d.menuPortalTarget,C=d.menuShouldBlockScroll,P=d.menuShouldScrollIntoView,I=d.noOptionsMessage,E=d.onMenuScrollToTop,T=d.onMenuScrollToBottom;if(!x)return null;var M=function(e,n){var r=e.type,o=e.data,i=e.isDisabled,a=e.isSelected,s=e.label,u=e.value,c=h===o,d=i?void 0:function(){return t.onOptionHover(o)},p=i?void 0:function(){return t.selectOption(o)},v="".concat(t.getElementId("option"),"-").concat(n),g={id:v,onClick:p,onMouseMove:d,onMouseOver:d,tabIndex:-1,role:"option","aria-selected":t.isAppleDevice?void 0:a};return m.createElement(l,(0,b.A)({},f,{innerProps:g,data:o,isDisabled:i,isSelected:a,key:v,label:s,type:r,value:u,isFocused:c,innerRef:c?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(e.data,"menu"))};if(this.hasOptions())e=this.getCategorizedOptions().map(function(e){if("group"===e.type){var n=e.data,i=e.options,a=e.index,s="".concat(t.getElementId("group"),"-").concat(a),u="".concat(s,"-heading");return m.createElement(r,(0,b.A)({},f,{key:s,data:n,options:i,Heading:o,headingProps:{id:u,data:e.data},label:t.formatGroupLabel(e.data)}),e.options.map(function(e){return M(e,"".concat(a,"-").concat(e.index))}))}if("option"===e.type)return M(e,"".concat(e.index))});else if(g){var R=y({inputValue:v});if(null===R)return null;e=m.createElement(u,f,R)}else{var D=I({inputValue:v});if(null===D)return null;e=m.createElement(c,f,D)}var L={minMenuHeight:k,maxMenuHeight:w,menuPlacement:S,menuPosition:O,menuShouldScrollIntoView:P},j=m.createElement(tH,(0,b.A)({},f,L),function(n){var r=n.ref,o=n.placerProps,s=o.placement,u=o.maxHeight;return m.createElement(i,(0,b.A)({},f,L,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove},isLoading:g,placement:s}),m.createElement(nC,{captureEnabled:p,onTopArrive:E,onBottomArrive:T,lockEnabled:C},function(n){return m.createElement(a,(0,b.A)({},f,{innerRef:function(e){t.getMenuListRef(e),n(e)},innerProps:{role:"listbox","aria-multiselectable":f.isMulti,id:t.getElementId("listbox")},isLoading:g,maxHeight:u,focusedOption:h}),e)}))});return A||"fixed"===O?m.createElement(s,(0,b.A)({},f,{appendTo:A,controlElement:this.controlRef,menuPlacement:S,menuPosition:O}),j):j}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return m.createElement(nI,{name:i,onFocus:this.onValueInputFocus});if(i&&!r)if(o)if(n){var u=s.map(function(t){return e.getOptionValue(t)}).join(n);return m.createElement("input",{name:i,type:"hidden",value:u})}else{var c=s.length>0?s.map(function(t,n){return m.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})}):m.createElement("input",{name:i,type:"hidden",value:""});return m.createElement("div",null,c)}else{var l=s[0]?this.getOptionValue(s[0]):"";return m.createElement("input",{name:i,type:"hidden",value:l})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return m.createElement(nt,(0,b.A)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:s,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,s=i.id,u=i.isDisabled,c=i.menuIsOpen,l=this.state.isFocused,f=this.commonProps=this.getCommonProps();return m.createElement(r,(0,b.A)({},f,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:l}),this.renderLiveRegion(),m.createElement(t,(0,b.A)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:l,menuIsOpen:c}),m.createElement(o,(0,b.A)({},f,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),m.createElement(n,(0,b.A)({},f,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){var n,r=t.prevProps,o=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,u=t.is
1Focused,c=t.prevWasFocused,l=t.instancePrefix,f=e.options,h=e.value,d=e.menuIsOpen,p=e.inputValue,v=e.isMulti,m=tA(h),g={};if(r&&(h!==r.value||f!==r.options||d!==r.menuIsOpen||p!==r.inputValue)){var y,b=d?nj(nL(e,m)):[],k=d?nN(nL(e,m),"".concat(l,"-option")):[],w=o?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,m):null,x=(y=t.focusedOption)&&b.indexOf(y)>-1?y:b[0],S=n_(k,x);g={selectValue:m,focusedOption:x,focusedOptionId:S,focusableOptionsWithIds:k,focusedValue:w,clearFocusValueOnUpdate:!1}}var O=null!=i&&e!==r?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},A=a,C=u&&c;return u&&!C&&(A={value:(n=m[0]||null,v?m:n),options:m,action:"initial-input-focus"},C=!c),(null==a?void 0:a.action)==="initial-input-focus"&&(A=null),s(s(s({},g),O),{},{prevProps:e,ariaSelection:A,prevWasFocused:C})}}],n&&k(a.prototype,n),o&&k(a,o),Object.defineProperty(a,"prototype",{writable:!1}),a}(m.Component);nq.defaultProps=nR;var nZ=(0,m.forwardRef)(function(e,t){var n,r,o,i,a,u,c,f,h,d,p,g,k,w,x,S,O,A,C,P,I,E,T,M,R,D,L,j=(n=e.defaultInputValue,r=e.defaultMenuIsOpen,o=e.defaultValue,i=e.inputValue,a=e.menuIsOpen,u=e.onChange,c=e.onInputChange,f=e.onMenuClose,h=e.onMenuOpen,d=e.value,p=v(e,y),k=(g=l((0,m.useState)(void 0!==i?i:void 0===n?"":n),2))[0],w=g[1],S=(x=l((0,m.useState)(void 0!==a?a:void 0!==r&&r),2))[0],O=x[1],C=(A=l((0,m.useState)(void 0!==d?d:void 0===o?null:o),2))[0],P=A[1],I=(0,m.useCallback)(function(e,t){"function"==typeof u&&u(e,t),P(e)},[u]),E=(0,m.useCallback)(function(e,t){var n;"function"==typeof c&&(n=c(e,t)),w(void 0!==n?n:e)},[c]),T=(0,m.useCallback)(function(){"function"==typeof h&&h(),O(!0)},[h]),M=(0,m.useCallback)(function(){"function"==typeof f&&f(),O(!1)},[f]),R=void 0!==i?i:k,D=void 0!==a?a:S,L=void 0!==d?d:C,s(s({},p),{},{inputValue:R,menuIsOpen:D,onChange:I,onInputChange:E,onMenuClose:M,onMenuOpen:T,value:L}));return m.createElement(nq,(0,b.A)({ref:t},j))})},8734:(e,t,n)=>{e.exports=n(802)},9084:(e,t,n)=>{n.d(t,{A:()=>r});function r(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}}}]);

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.