1import{a as Je,c as QC,d as $e}from"/build/_shared/chunk-UAI5KRM7.js";import{a as Qv,b as w,c as D,d as Ul,e as z,f as Ot}from"/build/_shared/chunk-2NH4LW52.js";var t5={};Ul(t5,{ArrayExt:()=>e_,StringExt:()=>i_,chain:()=>Ite,each:()=>Fte,empty:()=>Mte,enumerate:()=>Ete,every:()=>e5,filter:()=>Tte,find:()=>kte,findIndex:()=>Ate,map:()=>Nte,max:()=>Dte,min:()=>Rte,minmax:()=>Ote,once:()=>Hte,range:()=>zte,reduce:()=>Bte,repeat:()=>qte,retro:()=>jte,some:()=>Pte,stride:()=>Ute,take:()=>Wte,toArray:()=>Lte,toObject:()=>$te,topologicSort:()=>Vte,zip:()=>Gte});function*Ite(...i){for(let e of i)yield*e}function*Mte(){}function*Ete(i,e=0){for(let t of i)yield[e++,t]}function*Tte(i,e){let t=0;for(let r of i)e(r,t++)&&(yield r)}function kte(i,e){let t=0;for(let r of i)if(e(r,t++))return r}function Ate(i,e){let t=0;for(let r of i)if(e(r,t++))return t-1;return-1}function Rte(i,e){let t;for(let r of i){if(t===void 0){t=r;continue}e(r,t)<0&&(t=r)}return t}function Dte(i,e){let t;for(let r of i){if(t===void 0){t=r;continue}e(r,t)>0&&(t=r)}return t}function Ote(i,e){let t=!0,r,n;for(let s of i)t?(r=s,n=s,t=!1):e(s,r)<0?r=s:e(s,n)>0&&(n=s);return t?void 0:[r,n]}function Lte(i){return Array.from(i)}function $te(i){let e={};for(let[t,r]of i)e[t]=r;return e}function Fte(i,e){let t=0;for(let r of i)if(e(r,t++)===!1)return}function e5(i,e){let t=0;for(let r of i)if(e(r,t++)===!1)return!1;return!0}function Pte(i,e){let t=0;for(let r of i)if(e(r,t++))return!0;return!1}function*Nte(i,e){let t=0;for(let r of i)yield e(r,t++)}function*zte(i,e,t){e===void 0?(e=i,i=0,t=1):t===void 0&&(t=1);let r=t_.rangeLength(i,e,t);for(let n=0;n<r;n++)yield i+t*n}function Bte(i,e,t){let r=i[Symbol.iterator](),n=0,s=r.next();if(s.done&&t===void 0)throw new TypeError("Reduce of empty iterable with no initial value.");if(s.done)return t;let o=r.next();if(o.done&&t===void 0)return s.value;if(o.done)return e(t,s.value,n++);let a;t===void 0?a=e(s.value,o.value,n++):a=e(e(t,s.value,n++),o.value,n++);let l;for(;!(l=r.next()).done;)a=e(a,l.value,n++);return a}function*qte(i,e){for(;0<e--;)yield i}function*Hte(i){yield i}function*jte(i){if(typeof i.retro=="function")yield*i.retro();else for(let e=i.length-1;e>-1;e--)yield i[e]}function Vte(i){let e=[],t=new Set,r=new Map;for(let o of i)n(o);for(let[o]of r)s(o);return e;function n(o){let[a,l]=o,u=r.get(l);u?u.push(a):r.set(l,[a])}function s(o){if(t.has(o))return;t.add(o);let a=r.get(o);if(a)for(let l of a)s(l);e.push(o)}}function*Ute(i,e){let t=0;for(let r of i)t++%e===0&&(yield r)}function*Wte(i,e){if(e<1)return;let t=i[Symbol.iterator](),r;for(;0<e--&&!(r=t.next()).done;)yield r.value}function*Gte(...i){let e=i.map(r=>r[Symbol.iterator]()),t=e.map(r=>r.next());for(;e5(t,r=>!r.done);t=e.map(r=>r.next()))yield t.map(r=>r.value)}var e_,t_,i_,i5=w(()=>{(function(i){function e(v,_,h=0,p=-1){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;p<h?C=p+1+(g-h):C=p-h+1;for(let I=0;I<C;++I){let F=(h+I)%g;if(v[F]===_)return F}return-1}i.firstIndexOf=e;function t(v,_,h=-1,p=0){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;h<p?C=h+1+(g-p):C=h-p+1;for(let I=0;I<C;++I){let F=(h-I+g)%g;if(v[F]===_)return F}return-1}i.lastIndexOf=t;function r(v,_,h=0,p=-1){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;p<h?C=p+1+(g-h):C=p-h+1;for(let I=0;I<C;++I){let F=(h+I)%g;if(_(v[F],F))return F}return-1}i.findFirstIndex=r;function n(v,_,h=-1,p=0){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;h<p?C=h+1+(g-p):C=h-p+1;for(let I=0;I<C;++I){let F=(h-I+g)%g;if(_(v[F],F))return F}return-1}i.findLastIndex=n;function s(v,_,h=0,p=-1){let g=r(v,_,h,p);return g!==-1?v[g]:void 0}i.findFirstValue=s;function o(v,_,h=-1,p=0){let g=n(v,_,h,p);return g!==-1?v[g]:void 0}i.findLastValue=o;function a(v,_,h,p=0,g=-1){let C=v.length;if(C===0)return 0;p<0?p=Math.max(0,p+C):p=Math.min(p,C-1),g<0?g=Math.max(0,g+C):g=Math.min(g,C-1);let I=p,F=g-p+1;for(;F>0;){let P=F>>1,K=I+P;h(v[K],_)<0?(I=K+1,F-=P+1):F=P}return I}i.lowerBound=a;function l(v,_,h,p=0,g=-1){let C=v.length;if(C===0)return 0;p<0?p=Math.max(0,p+C):p=Math.min(p,C-1),g<0?g=Math.max(0,g+C):g=Math.min(g,C-1);let I=p,F=g-p+1;for(;F>0;){let P=F>>1,K=I+P;h(v[K],_)>0?F=P:(I=K+1,F-=P+1)}return I}i.upperBound=l;function u(v,_,h){if(v===_)return!0;
1if(v.length!==_.length)return!1;for(let p=0,g=v.length;p<g;++p)if(h?!h(v[p],_[p]):v[p]!==_[p])return!1;return!0}i.shallowEqual=u;function c(v,_={}){let{start:h,stop:p,step:g}=_;if(g===void 0&&(g=1),g===0)throw new Error("Slice `step` cannot be zero.");let C=v.length;h===void 0?h=g<0?C-1:0:h<0?h=Math.max(h+C,g<0?-1:0):h>=C&&(h=g<0?C-1:C),p===void 0?p=g<0?-1:C:p<0?p=Math.max(p+C,g<0?-1:0):p>=C&&(p=g<0?C-1:C);let I;g<0&&p>=h||g>0&&h>=p?I=0:g<0?I=Math.floor((p-h+1)/g+1):I=Math.floor((p-h-1)/g+1);let F=[];for(let P=0;P<I;++P)F[P]=v[h+P*g];return F}i.slice=c;function d(v,_,h){let p=v.length;if(p<=1||(_<0?_=Math.max(0,_+p):_=Math.min(_,p-1),h<0?h=Math.max(0,h+p):h=Math.min(h,p-1),_===h))return;let g=v[_],C=_<h?1:-1;for(let I=_;I!==h;I+=C)v[I]=v[I+C];v[h]=g}i.move=d;function f(v,_=0,h=-1){let p=v.length;if(!(p<=1))for(_<0?_=Math.max(0,_+p):_=Math.min(_,p-1),h<0?h=Math.max(0,h+p):h=Math.min(h,p-1);_<h;){let g=v[_],C=v[h];v[_++]=C,v[h--]=g}}i.reverse=f;function m(v,_,h=0,p=-1){let g=v.length;if(g<=1||(h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1),h>=p))return;let C=p-h+1;if(_>0?_=_%C:_<0&&(_=(_%C+C)%C),_===0)return;let I=h+_;f(v,h,I-1),f(v,I,p),f(v,h,p)}i.rotate=m;function b(v,_,h=0,p=-1){let g=v.length;if(g===0)return;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;p<h?C=p+1+(g-h):C=p-h+1;for(let I=0;I<C;++I)v[(h+I)%g]=_}i.fill=b;function y(v,_,h){let p=v.length;_<0?_=Math.max(0,_+p):_=Math.min(_,p);for(let g=p;g>_;--g)v[g]=v[g-1];v[_]=h}i.insert=y;function x(v,_){let h=v.length;if(_<0&&(_+=h),_<0||_>=h)return;let p=v[_];for(let g=_+1;g<h;++g)v[g-1]=v[g];return v.length=h-1,p}i.removeAt=x;function M(v,_,h=0,p=-1){let g=e(v,_,h,p);return g!==-1&&x(v,g),g}i.removeFirstOf=M;function T(v,_,h=-1,p=0){let g=t(v,_,h,p);return g!==-1&&x(v,g),g}i.removeLastOf=T;function E(v,_,h=0,p=-1){let g=v.length;if(g===0)return 0;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C=0;for(let I=0;I<g;++I)h<=p&&I>=h&&I<=p&&v[I]===_||p<h&&(I<=p||I>=h)&&v[I]===_?C++:C>
10&&(v[I-C]=v[I]);return C>0&&(v.length=g-C),C}i.removeAllOf=E;function A(v,_,h=0,p=-1){let g,C=r(v,_,h,p);return C!==-1&&(g=x(v,C)),{index:C,value:g}}i.removeFirstWhere=A;function R(v,_,h=-1,p=0){let g,C=n(v,_,h,p);return C!==-1&&(g=x(v,C)),{index:C,value:g}}i.removeLastWhere=R;function $(v,_,h=0,p=-1){let g=v.length;if(g===0)return 0;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C=0;for(let I=0;I<g;++I)h<=p&&I>=h&&I<=p&&_(v[I],I)||p<h&&(I<=p||I>=h)&&_(v[I],I)?C++:C>0&&(v[I-C]=v[I]);return C>0&&(v.length=g-C),C}i.removeAllWhere=$})(e_||(e_={}));(function(i){function e(t,r,n){return n===0?1/0:t>r&&n>0||t<r&&n<0?0:Math.ceil((r-t)/n)}i.rangeLength=e})(t_||(t_={}));(function(i){function e(o,a,l=0){let u=new Array(a.length);for(let c=0,d=l,f=a.length;c<f;++c,++d){if(d=o.indexOf(a[c],d),d===-1)return null;u[c]=d}return u}i.findIndices=e;function t(o,a,l=0){let u=e(o,a,l);if(!u)return null;let c=0;for(let d=0,f=u.length;d<f;++d){let m=u[d]-l;c+=m*m}return{score:c,indices:u}}i.matchSumOfSquares=t;function r(o,a,l=0){let u=e(o,a,l);if(!u)return null;let c=0,d=l-1;for(let f=0,m=u.length;f<m;++f){let b=u[f];c+=b-d-1,d=b}return{score:c,indices:u}}i.matchSumOfDeltas=r;function n(o,a,l){let u=[],c=0,d=0,f=a.length;for(;c<f;){let m=a[c],b=a[c];for(;++c<f&&a[c]===b+1;)b++;d<m&&u.push(o.slice(d,m)),m<b+1&&u.push(l(o.slice(m,b+1))),d=b+1}return d<o.length&&u.push(o.slice(d)),u}i.highlight=n;function s(o,a){return o<a?-1:o>a?1:0}i.cmp=s})(i_||(i_={}))});var Ze=D((vm,r5)=>{(function(i,e){typeof vm=="object"&&typeof r5<"u"?e(vm,(i5(),Ot(t5))):typeof define=="function"&&define.amd?define(["exports","@lumino/algorithm"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i.lumino_coreutils={},i.lumino_algorithm))})(vm,function(i,e){"use strict";i.JSONExt=void 0,function(u){u.emptyObject=Object.freeze({}),u.emptyArray=Object.freeze([]);function c(E){return E===null||typeof E=="boolean"||typeof E=="number"||typeof E=="string"}u.isPrimitive=c;function d(E){return Array.isArray(E)}u.isArray=d;function f(E){return!c(E)&&!d(E)}u.isObject=f;function m(E,A){if(E===A)return!0;if(c(E)||c(A))return!1;let R=d(E),$=d(A);return R!==$?!1:R&&$?y(E,A):x(E,A)}u.deepEqual=m;function b(E){return c(E)?E:d(E)?M(E):T(E)}u.deepCopy=b;function y(E,A){if(E===A)return!0;if(E.length!==A.length)return!1;for(let R=0,$=E.length;R<$;++R)if(!m(E[R],A[R]))return!1;return!0}function x(E,A){if(E===A)return!0;for(let R in E)if(E[R]!==void 0&&!(R in A))return!1;for(let R in A)if(A[R]!==void 0&&!(R in E))return!1;for(let R in E){let $=E[R],v=A[R];if(!($===void 0&&v===void 0)&&($===void 0||v===void 0||!m($,v)))return!1}return!0}function M(E){let A=new Array(E.length);for(let R=0,$=E.length;R<$;++R)A[R]=b(E[R]);return A}function T(E){let A={};for(let R in E){let $=E[R];$!==void 0&&(A[R]=b($))}return A}}(i.JSONExt||(i.JSONExt={}));class t{constructor(){this._types=[],this._values=[]}types(){return this._types.slice()}hasData(c){return this._types.indexOf(c)!==-1}getData(c){let d=this._types.indexOf(c);return d!==-1?this._values[d]:void 0}setData(c,d){this.clearData(c),this._types.push(c),this._values.push(d)}clearData(c){let d=this._types.indexOf(c);d!==-1&&(this._types.splice(d,1),this._values.splice(d,1))}clear(){this._types.length=0,this._values.length=0}}class r{constructor(c={}){this._application=null,this._validatePlugin=()=>!0,this._plugins=new Map,this._services=new Map,c.validatePlugin&&(console.info("Plugins may be rejected by the custom validation plugin method."),this._validatePlugin=c.validatePlugin)}get application(){return this._application}set application(c){if(this._application!==null)throw Error("PluginRegistry.application is already set. It cannot be overridden.");this._application=c}get deferredPlugins(){return Array.from(this._plugins).filter(([c,d])=>d.autoStart==="defer").map(([c,d])=>c)}getPluginDescription(c){var d,f;return(f=(d=this._plugins.get(c))===null||d===void 0?void 0:d.description)!==null&&f!==void 0?f:""}hasPlugin(c){return this._plugins.has(c)}isPluginActivated(c){var d,f;return(f=(d=this._plugins.get(c))===null||d===void 0?void 0:d.activated)!==null&&f!==void 0?f:!1}listPlugins(){return Array.from(this._plugins.keys())}registerPlugin(c){if(this._plugins.has(c.id))throw new TypeError(`Plugin '${c.id}' is already registered.`);
1if(!this._validatePlugin(c))throw new Error(`Plugin '${c.id}' is not valid.`);let d=n.createPluginData(c);n.ensureNoCycle(d,this._plugins,this._services),d.provides&&this._services.set(d.provides,d.id),this._plugins.set(d.id,d)}registerPlugins(c){for(let d of c)this.registerPlugin(d)}deregisterPlugin(c,d){let f=this._plugins.get(c);if(f){if(f.activated&&!d)throw new Error(`Plugin '${c}' is still active.`);this._plugins.delete(c)}}async activatePlugin(c){let d=this._plugins.get(c);if(!d)throw new ReferenceError(`Plugin '${c}' is not registered.`);if(d.activated)return;if(d.promise)return d.promise;let f=d.requires.map(b=>this.resolveRequiredService(b)),m=d.optional.map(b=>this.resolveOptionalService(b));return d.promise=Promise.all([...f,...m]).then(b=>d.activate.apply(void 0,[this.application,...b])).then(b=>{d.service=b,d.activated=!0,d.promise=null}).catch(b=>{throw d.promise=null,b}),d.promise}async activatePlugins(c,d={}){switch(c){case"defer":{let f=this.deferredPlugins.filter(m=>this._plugins.get(m).autoStart).map(m=>this.activatePlugin(m));await Promise.all(f);break}case"startUp":{let m=n.collectStartupPlugins(this._plugins,d).map(async b=>{try{return await this.activatePlugin(b)}catch(y){console.error(`Plugin '${b}' failed to activate.`,y)}});await Promise.all(m);break}}}async deactivatePlugin(c){let d=this._plugins.get(c);if(!d)throw new ReferenceError(`Plugin '${c}' is not registered.`);if(!d.activated)return[];if(!d.deactivate)throw new TypeError(`Plugin '${c}'#deactivate() method missing`);let f=n.findDependents(c,this._plugins,this._services),m=f.map(b=>this._plugins.get(b));for(let b of m)if(!b.deactivate)throw new TypeError(`Plugin ${b.id}#deactivate() method missing (depends on ${c})`);for(let b of m){let y=[...b.requires,...b.optional].map(x=>{let M=this._services.get(x);return M?this._plugins.get(M).service:null});await b.deactivate(this.application,...y),b.service=null,b.activated=!1}return f.pop(),f}async resolveRequiredService(c){let d=this._services.get(c);if(!d)throw new TypeError(`No provider for: ${c.name}.`);let f=this._plugins.get(d);return f.activated||await this.activatePlugin(d),f.service}async resolveOptionalService(c){let d=this._services.get(c);if(!d)return null;let f=this._plugins.get(d);if(!f.activated)try{await this.activatePlugin(d)}catch(m){return console.error(m),null}return f.service}}var n;(function(u){class c{constructor(x){var M,T,E,A;this._activated=!1,this._promise=null,this._service=null,this.id=x.id,this.description=(M=x.description)!==null&&M!==void 0?M:"",this.activate=x.activate,this.deactivate=(T=x.deactivate)!==null&&T!==void 0?T:null,this.provides=(E=x.provides)!==null&&E!==void 0?E:null,this.autoStart=(A=x.autoStart)!==null&&A!==void 0?A:!1,this.requires=x.requires?x.requires.slice():[],this.optional=x.optional?x.optional.slice():[]}get activated(){return this._activated}set activated(x){this._activated=x}get service(){return this._service}set service(x){this._service=x}get promise(){return this._promise}set promise(x){this._promise=x}}function d(y){return new c(y)}u.createPluginData=d;function f(y,x,M){let T=[...y.requires,...y.optional],E=R=>{if(R===y.provides)return!0;let $=M.get(R);if(!$)return!1;let v=x.get($),_=[...v.requires,...v.optional];return _.length===0?!1:(A.push($),_.some(E)?!0:(A.pop(),!1))};if(!y.provides||T.length===0)return;let A=[y.id];if(T.some(E))throw new ReferenceError(`Cycle detected: ${A.join(" -> ")}.`)}u.ensureNoCycle=f;function m(y,x,M){let T=new Array,E=_=>{let h=x.get(_),p=[...h.requires,...h.optional];T.push(...p.reduce((g,C)=>{let I=M.get(C);return I&&g.push([_,I]),g},[]))};for(let _ of x.keys())E(_);let A=T.filter(_=>_[1]===y),R=0;for(;A.length>R;){let _=A.length,h=new Set(A.map(p=>p[0]));for(let p of h)T.filter(g=>g[1]===p).forEach(g=>{A.includes(g)||A.push(g)});R=_}let $=e.topologicSort(A),v=$.findIndex(_=>_===y);return v===-1?[y]:$.slice(0,v+1)}u.findDependents=m;function b(y,x){let M=new Set;for(let T of y.keys())y.get(T).autoStart===!0&&M.add(T);if(x.startPlugins)for(let T of x.startPlugins)M.add(T);if(x.ignorePlugins)for(let T of x.ignorePlugins)M.delete(T);return Array.from(M)}u.collectStartupPlugins=b})(n||(n={}));class s{constructor(){this.promise=new Promise((c,d)=>{this._resolve=c,this._reject=d})}resolve(c){let d=this._resolve;d(c)}reject(c){let d=this._reject;d(c)}}class o{constructor(c,d){this.name=c,this.description=d??"",this._tokenStructuralPropertyT=null}}function a(u){let c=0;for(let d=0,f=u.length;d<f;++d)d%4===0&&(c=Math.random()*4294967295>>>
10),u[d]=c&255,c>>>=8}i.Random=void 0,function(u){u.getRandomValues=(()=>{let c=typeof window<"u"&&(window.crypto||window.msCrypto)||null;return c&&typeof c.getRandomValues=="function"?function(f){return c.getRandomValues(f)}:a})()}(i.Random||(i.Random={}));function l(u){let c=new Uint8Array(16),d=new Array(256);for(let f=0;f<16;++f)d[f]="0"+f.toString(16);for(let f=16;f<256;++f)d[f]=f.toString(16);return function(){return u(c),c[6]=64|c[6]&15,c[8]=128|c[8]&63,d[c[0]]+d[c[1]]+d[c[2]]+d[c[3]]+"-"+d[c[4]]+d[c[5]]+"-"+d[c[6]]+d[c[7]]+"-"+d[c[8]]+d[c[9]]+"-"+d[c[10]]+d[c[11]]+d[c[12]]+d[c[13]]+d[c[14]]+d[c[15]]}}i.UUID=void 0,function(u){u.uuid4=l(i.Random.getRandomValues)}(i.UUID||(i.UUID={})),i.MimeData=t,i.PluginRegistry=r,i.PromiseDelegate=s,i.Token=o})});function Wl(i){return i.replace("-","_")}var r_=w(()=>{});var ls,_m=w(()=>{r_();ls=class{constructor(e){e=e||{},this._defaults={domain:"messages",locale:document.documentElement.getAttribute("lang")||"en",pluralFunc:function(t){return{nplurals:2,plural:t!=1?1:0}},contextDelimiter:String.fromCharCode(4),stringsPrefix:""},this._locale=(e.locale||this._defaults.locale).replace("_","-"),this._domain=Wl(e.domain||this._defaults.domain),this._contextDelimiter=e.contextDelimiter||this._defaults.contextDelimiter,this._stringsPrefix=e.stringsPrefix||this._defaults.stringsPrefix,this._pluralFuncs={},this._dictionary={},this._pluralForms={},e.messages&&(this._dictionary[this._domain]={},this._dictionary[this._domain][this._locale]=e.messages),e.pluralForms&&(this._pluralForms[this._locale]=e.pluralForms)}setContextDelimiter(e){this._contextDelimiter=e}getContextDelimiter(){return this._contextDelimiter}setLocale(e){this._locale=e.replace("_","-")}getLocale(){return this._locale}setDomain(e){this._domain=Wl(e)}getDomain(){return this._domain}setStringsPrefix(e){this._stringsPrefix=e}getStringsPrefix(){return this._stringsPrefix}static strfmt(e,...t){return e.replace(/%%/g,"%% ").replace(/%(\d+)/g,function(r,n){return t[n-1]}).replace(/%% /g,"%")}loadJSON(e,t){if(!e[""]||!e[""].language||!e[""].pluralForms)throw new Error(`Wrong jsonData, it must have an empty key ("") with "language" and "pluralForms" information: ${e}`);t=Wl(t);let r=e[""],n=JSON.parse(JSON.stringify(e));delete n[""],this.setMessages(t||this._defaults.domain,r.language,n,r.pluralForms)}__(e,...t){return this.gettext(e,...t)}_n(e,t,r,...n){return this.ngettext(e,t,r,...n)}_p(e,t,...r){return this.pgettext(e,t,...r)}_np(e,t,r,n,...s){return this.npgettext(e,t,r,n,...s)}gettext(e,...t){return this.dcnpgettext("","",e,"",0,...t)}ngettext(e,t,r,...n){return this.dcnpgettext("","",e,t,r,...n)}pgettext(e,t,...r){return this.dcnpgettext("",e,t,"",0,...r)}npgettext(e,t,r,n,...s){return this.dcnpgettext("",e,t,r,n,...s)}dcnpgettext(e,t,r,n,s,...o){e=Wl(e)||this._domain;let a,l=t?t+this._contextDelimiter+r:r,u={pluralForm:!1},c=!1,d=this._locale,f=this.expandLocale(this._locale);for(let b in f)if(d=f[b],c=this._dictionary[e]&&this._dictionary[e][d]&&this._dictionary[e][d][l],n?c=c&&this._dictionary[e][d][l].length>1:c=c&&this._dictionary[e][d][l].length==1,c){u.locale=d;break}if(c?a=this._dictionary[e][d][l]:(a=[r],u.pluralFunc=this._defaults.pluralFunc),!n)return this.t(a,s,u,...o);u.pluralForm=!0;let m=c?a:[r,n];return this.t(m,s,u,...o)}expandLocale(e){let t=[e],r=e.lastIndexOf("-");for(;r>0;)e=e.slice(0,r),t.push(e),r=e.lastIndexOf("-");return t}getPluralFunc(e){if(!new RegExp("^\\s*nplurals\\s*=\\s*[0-9]+\\s*;\\s*plural\\s*=\\s*(?:\\s|[-\\?\\|&=!<>+*/%:;n0-9_()])+").test(e))throw new Error(ls.strfmt('The plural form "%1" is not valid',e));return new Function("n","let plural, nplurals; "+e+" return { nplurals: nplurals, plural: (plural === true ? 1 : (plural ? plural : 0)) };")}removeContext(e){return e.indexOf(this._contextDelimiter)!==-1?e.split(this._contextDelimiter)[1]:e}t(e,t,r,...n){if(!r.pluralForm)return this._stringsPrefix+ls.strfmt(this.removeContext(e[0]),...n);let s;return r.pluralFunc?s=r.pluralFunc(t):this._pluralFuncs[r.locale||""]?s=this._pluralFuncs[r.locale||""](t):(this._pluralFuncs[r.locale||""]=this.getPluralFunc(this._pluralForms[r.locale||""]),s=this._pluralFuncs[r.locale||""](t)),(typeof!s.plural>"u"||s.plural>s.nplurals||e.length<=s.plural)&&(s.plural=0),this._stringsPrefix+ls.strfmt(this.removeContext(e[s.plural]),...[t].concat(n))}setMessages(e,t,r,n){e=Wl(e),n&&(this._pluralForms[t]=n),this._dictionary[e]||(this._dictionary[e]={}),this._dictionary[e][t]=r}}});var n_,s_,pt,n5=w(()=>{_m();n_=class{constructor(e){this.languageCode="en",this._languageBundle=e}load(e){return this._languageBundle}},s_=class{__(e,...t){return this.gettext(e,...t)}_n(e,t,r,...n){return this.ngettext(e,t,r,...n)}_p(e,t,...r){return this.pgettext(e,t,...r)}_np(e,t,r,n,...s){return this.npgettext(e,t,r,n,...s)}gettext(e,...t){return ls.strfmt(e,...t)}ngettext(e,t,r,...n){return ls.strfmt(r==1?e:t,...[r].concat(n))}pgettext(e,t,...r){return ls.strfmt(t,...r)}npgettext(e,t,r,n,...s){return this.ngettext(t,r,n,...s)}dcnpgettext(e,t,r,n,s,...o){return this.ngettext(r,n,s,...o)}},pt=new n_(new s_)});var s5=D(ym=>{"use strict";
1Object.defineProperty(ym,"__esModule",{value:!0});ym.DataConnector=void 0;var o_=class{async list(e){throw new Error("DataConnector#list method has not been implemented.")}async remove(e){throw new Error("DataConnector#remove method has not been implemented.")}async save(e,t){throw new Error("DataConnector#save method has not been implemented.")}};ym.DataConnector=o_});var a5=D(o5=>{"use strict";Object.defineProperty(o5,"__esModule",{value:!0})});var l5={};Ul(l5,{AttachedProperty:()=>Ge});var Ge,Gl,gc=w(()=>{Ge=class{constructor(e){this._pid=Gl.nextPID(),this.name=e.name,this._create=e.create,this._coerce=e.coerce||null,this._compare=e.compare||null,this._changed=e.changed||null}get(e){let t,r=Gl.ensureMap(e);return this._pid in r?t=r[this._pid]:t=r[this._pid]=this._createValue(e),t}set(e,t){let r,n=Gl.ensureMap(e);this._pid in n?r=n[this._pid]:r=n[this._pid]=this._createValue(e);let s=this._coerceValue(e,t);this._maybeNotify(e,r,n[this._pid]=s)}coerce(e){let t,r=Gl.ensureMap(e);this._pid in r?t=r[this._pid]:t=r[this._pid]=this._createValue(e);let n=this._coerceValue(e,t);this._maybeNotify(e,t,r[this._pid]=n)}_createValue(e){let t=this._create;return t(e)}_coerceValue(e,t){let r=this._coerce;return r?r(e,t):t}_compareValue(e,t){let r=this._compare;return r?r(e,t):e===t}_maybeNotify(e,t,r){let n=this._changed;n&&!this._compareValue(t,r)&&n(e,t,r)}};(function(i){function e(t){Gl.ownerData.delete(t)}i.clearData=e})(Ge||(Ge={}));(function(i){i.ownerData=new WeakMap,i.nextPID=(()=>{let t=0;return()=>`pid-${`${Math.random()}`.slice(2)}-${t++}`})();function e(t){let r=i.ownerData.get(t);return r||(r=Object.create(null),i.ownerData.set(t,r),r)}i.ensureMap=e})(Gl||(Gl={}))});function d5(i,e){let t=0;for(let r of i)if(e(r,t++))return r}var xm,u5,c5,h5=w(()=>{(function(i){function e(v,_,h=0,p=-1){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;p<h?C=p+1+(g-h):C=p-h+1;for(let I=0;I<C;++I){let F=(h+I)%g;if(v[F]===_)return F}return-1}i.firstIndexOf=e;function t(v,_,h=-1,p=0){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;h<p?C=h+1+(g-p):C=h-p+1;for(let I=0;I<C;++I){let F=(h-I+g)%g;if(v[F]===_)return F}return-1}i.lastIndexOf=t;function r(v,_,h=0,p=-1){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;p<h?C=p+1+(g-h):C=p-h+1;for(let I=0;I<C;++I){let F=(h+I)%g;if(_(v[F],F))return F}return-1}i.findFirstIndex=r;function n(v,_,h=-1,p=0){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;h<p?C=h+1+(g-p):C=h-p+1;for(let I=0;I<C;++I){let F=(h-I+g)%g;if(_(v[F],F))return F}return-1}i.findLastIndex=n;function s(v,_,h=0,p=-1){let g=r(v,_,h,p);return g!==-1?v[g]:void 0}i.findFirstValue=s;function o(v,_,h=-1,p=0){let g=n(v,_,h,p);return g!==-1?v[g]:void 0}i.findLastValue=o;function a(v,_,h,p=0,g=-1){let C=v.length;if(C===0)return 0;p<0?p=Math.max(0,p+C):p=Math.min(p,C-1),g<0?g=Math.max(0,g+C):g=Math.min(g,C-1);let I=p,F=g-p+1;for(;F>0;){let P=F>>1,K=I+P;h(v[K],_)<0?(I=K+1,F-=P+1):F=P}return I}i.lowerBound=a;function l(v,_,h,p=0,g=-1){let C=v.length;if(C===0)return 0;p<0?p=Math.max(0,p+C):p=Math.min(p,C-1),g<0?g=Math.max(0,g+C):g=Math.min(g,C-1);let I=p,F=g-p+1;for(;F>0;){let P=F>>1,K=I+P;h(v[K],_)>0?F=P:(I=K+1,F-=P+1)}return I}i.upperBound=l;function u(v,_,h){if(v===_)return!0;if(v.length!==_.length)return!1;for(let p=0,g=v.length;p<g;++p)if(h?!h(v[p],_[p]):v[p]!==_[p])return!1;return!0}i.shallowEqual=u;function c(v,_={}){let{start:h,stop:p,step:g}=_;if(g===void 0&&(g=1),g===0)throw new Error("Slice `step` cannot be zero.");let C=v.length;h===void 0?h=g<0?C-1:0:h<0?h=Math.max(h+C,g<0?-1:0):h>=C&&(h=g<0?C-1:C),p===void 0?p=g<0?-1:C:p<0?p=Math.max(p+C,g<0?-1:0):p>=C&&(p=g<0?C-1:C);let I;g<0&&p>=h||g>0&&h>=p?I=0:g<0?I=Math.floor((p-h+1)/g+1):I=Math.floor((p-h-1)/g+1);let F=[];for(let P=0;P<I;++P)F[P]=v[h+P*g];return F}i.slice=c;function d(v,_,h){let p=v.length;if(p<=1||(_<0?_=Math.max(0,_+p):_=Math.min(_,p-1),h<0?h=Math.max(0,h+p):h=Math.min(h,p-1),_===h))return;let g=v[_],C=_<h?1:-1;for(let I=_;I!==h;I+=C)v[I]=v[I+C];v[h]=g}i.move=d;function f(v,_=0,h=-1){let p=v.length;if(!(p<=1))for(_<0?_=Math.max(0,_+p):_=Math.min(_,p-1),h<0?h=Math.max(0,h+p):h=Math.min(h,p-1);_<h;){let g=v[_],C=v[h];
1v[_++]=C,v[h--]=g}}i.reverse=f;function m(v,_,h=0,p=-1){let g=v.length;if(g<=1||(h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1),h>=p))return;let C=p-h+1;if(_>0?_=_%C:_<0&&(_=(_%C+C)%C),_===0)return;let I=h+_;f(v,h,I-1),f(v,I,p),f(v,h,p)}i.rotate=m;function b(v,_,h=0,p=-1){let g=v.length;if(g===0)return;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;p<h?C=p+1+(g-h):C=p-h+1;for(let I=0;I<C;++I)v[(h+I)%g]=_}i.fill=b;function y(v,_,h){let p=v.length;_<0?_=Math.max(0,_+p):_=Math.min(_,p);for(let g=p;g>_;--g)v[g]=v[g-1];v[_]=h}i.insert=y;function x(v,_){let h=v.length;if(_<0&&(_+=h),_<0||_>=h)return;let p=v[_];for(let g=_+1;g<h;++g)v[g-1]=v[g];return v.length=h-1,p}i.removeAt=x;function M(v,_,h=0,p=-1){let g=e(v,_,h,p);return g!==-1&&x(v,g),g}i.removeFirstOf=M;function T(v,_,h=-1,p=0){let g=t(v,_,h,p);return g!==-1&&x(v,g),g}i.removeLastOf=T;function E(v,_,h=0,p=-1){let g=v.length;if(g===0)return 0;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C=0;for(let I=0;I<g;++I)h<=p&&I>=h&&I<=p&&v[I]===_||p<h&&(I<=p||I>=h)&&v[I]===_?C++:C>
10&&(v[I-C]=v[I]);return C>0&&(v.length=g-C),C}i.removeAllOf=E;function A(v,_,h=0,p=-1){let g,C=r(v,_,h,p);return C!==-1&&(g=x(v,C)),{index:C,value:g}}i.removeFirstWhere=A;function R(v,_,h=-1,p=0){let g,C=n(v,_,h,p);return C!==-1&&(g=x(v,C)),{index:C,value:g}}i.removeLastWhere=R;function $(v,_,h=0,p=-1){let g=v.length;if(g===0)return 0;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C=0;for(let I=0;I<g;++I)h<=p&&I>=h&&I<=p&&_(v[I],I)||p<h&&(I<=p||I>=h)&&_(v[I],I)?C++:C>0&&(v[I-C]=v[I]);return C>0&&(v.length=g-C),C}i.removeAllWhere=$})(xm||(xm={}));(function(i){function e(t,r,n){return n===0?1/0:t>r&&n>0||t<r&&n<0?0:Math.ceil((r-t)/n)}i.rangeLength=e})(u5||(u5={}));(function(i){function e(o,a,l=0){let u=new Array(a.length);for(let c=0,d=l,f=a.length;c<f;++c,++d){if(d=o.indexOf(a[c],d),d===-1)return null;u[c]=d}return u}i.findIndices=e;function t(o,a,l=0){let u=e(o,a,l);if(!u)return null;let c=0;for(let d=0,f=u.length;d<f;++d){let m=u[d]-l;c+=m*m}return{score:c,indices:u}}i.matchSumOfSquares=t;function r(o,a,l=0){let u=e(o,a,l);if(!u)return null;let c=0,d=l-1;for(let f=0,m=u.length;f<m;++f){let b=u[f];c+=b-d-1,d=b}return{score:c,indices:u}}i.matchSumOfDeltas=r;function n(o,a,l){let u=[],c=0,d=0,f=a.length;for(;c<f;){let m=a[c],b=a[c];for(;++c<f&&a[c]===b+1;)b++;d<m&&u.push(o.slice(d,m)),m<b+1&&u.push(l(o.slice(m,b+1))),d=b+1}return d<o.length&&u.push(o.slice(d)),u}i.highlight=n;function s(o,a){return o<a?-1:o>a?1:0}i.cmp=s})(c5||(c5={}))});var ar={};Ul(ar,{Signal:()=>X,Stream:()=>a_});var wm,X,a_,gn,Qe=w(()=>{h5();wm=z(Ze()),X=class{constructor(e){this.sender=e}connect(e,t){return gn.connect(this,e,t)}disconnect(e,t){return gn.disconnect(this,e,t)}emit(e){gn.emit(this,e)}};(function(i){function e(l,u){gn.disconnectBetween(l,u)}i.disconnectBetween=e;function t(l){gn.disconnectSender(l)}i.disconnectSender=t;function r(l){gn.disconnectReceiver(l)}i.disconnectReceiver=r;function n(l){gn.disconnectAll(l)}i.disconnectAll=n;function s(l){gn.disconnectAll(l)}i.clearData=s;function o(){return gn.exceptionHandler}i.getExceptionHandler=o;function a(l){let u=gn.exceptionHandler;return gn.exceptionHandler=l,u}i.setExceptionHandler=a})(X||(X={}));a_=class extends X{constructor(){super(...arguments),this._pending=new wm.PromiseDelegate}async*[Symbol.asyncIterator](){let e=this._pending;for(;;)try{let{args:t,next:r}=await e.promise;e=r,yield t}catch{return}}emit(e){let t=this._pending,r=this._pending=new wm.PromiseDelegate;t.resolve({args:e,next:r}),super.emit(e)}stop(){this._pending.promise.catch(()=>{}),this._pending.reject("stop"),this._pending=new wm.PromiseDelegate}};(function(i){i.exceptionHandler=T=>{console.error(T)};function e(T,E,A){A=A||void 0;let R=l.get(T.sender);if(R||(R=[],l.set(T.sender,R)),f(R,T,E,A))return!1;let $=A||E,v=u.get($);v||(v=[],u.set($,v));let _={signal:T,slot:E,thisArg:A};return R.push(_),v.push(_),!0}i.connect=e;function t(T,E,A){A=A||void 0;let R=l.get(T.sender);if(!R||R.length===0)return!1;let $=f(R,T,E,A);if(!$)return!1;let v=A||E,_=u.get(v);return $.signal=null,b(R),b(_),!0}i.disconnect=t;function r(T,E){let A=l.get(T);if(!A||A.length===0)return;let R=u.get(E);if(!(!R||R.length===0)){for(let $ of R)$.signal&&$.signal.sender===T&&($.signal=null);b(A),b(R)}}i.disconnectBetween=r;function n(T){let E=l.get(T);if(!(!E||E.length===0)){for(let A of E){if(!A.signal)continue;let R=A.thisArg||A.slot;A.signal=null,b(u.get(R))}b(E)}}i.disconnectSender=n;function s(T){let E=u.get(T);if(!(!E||E.length===0)){for(let A of E){if(!A.signal)continue;let R=A.signal.sender;A.signal=null,b(l.get(R))}b(E)}}i.disconnectReceiver=s;function o(T){n(T),s(T)}i.disconnectAll=o;function a(T,E){let A=l.get(T.sender);if(!(!A||A.length===0))for(let R=0,$=A.length;R<$;++R){let v=A[R];v.signal===T&&m(v,E)}}i.emit=a;let l=new WeakMap,u=new WeakMap,c=new Set,d=(()=>typeof requestAnimationFrame=="function"?requestAnimationFrame:setImmediate)();function f(T,E,A,R){return d5(T,$=>$.signal===E&&$.slot===A&&$.thisArg===R)}function m(T,E){let{signal:A,slot:R,thisArg:$}=T;try{R.call($,A.sender,E)}catch(v){i.exceptionHandler(v)}}function b(T){c.size===0&&d(y),c.add(T)}
1function y(){c.forEach(x),c.clear()}function x(T){xm.removeAllWhere(T,M)}function M(T){return T.signal===null}})(gn||(gn={}))});var p5=D(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.RestorablePool=void 0;var Kte=Ze(),f5=(gc(),Ot(l5)),Sm=(Qe(),Ot(ar)),l_=class{constructor(e){this._added=new Sm.Signal(this),this._current=null,this._currentChanged=new Sm.Signal(this),this._hasRestored=!1,this._isDisposed=!1,this._objects=new Set,this._restore=null,this._restored=new Kte.PromiseDelegate,this._updated=new Sm.Signal(this),this.namespace=e.namespace}get added(){return this._added}get current(){return this._current}set current(e){this._current!==e&&e!==null&&this._objects.has(e)&&(this._current=e,this._currentChanged.emit(this._current))}get currentChanged(){return this._currentChanged}get isDisposed(){return this._isDisposed}get restored(){return this._restored.promise}get size(){return this._objects.size}get updated(){return this._updated}async add(e){var t,r;if(e.isDisposed){let n="A disposed object cannot be added.";throw console.warn(n,e),new Error(n)}if(this._objects.has(e)){let n="This object already exists in the pool.";throw console.warn(n,e),new Error(n)}if(this._objects.add(e),e.disposed.connect(this._onInstanceDisposed,this),!Ps.injectedProperty.get(e)){if(this._restore){let{connector:n}=this._restore,s=this._restore.name(e);if(s){let o=`${this.namespace}:${s}`,a=(r=(t=this._restore).args)===null||r===void 0?void 0:r.call(t,e);Ps.nameProperty.set(e,o),await n.save(o,{data:a})}}this._added.emit(e)}}dispose(){this.isDisposed||(this._current=null,this._isDisposed=!0,this._objects.clear(),Sm.Signal.clearData(this))}find(e){let t=this._objects.values();for(let r of t)if(e(r))return r}forEach(e){this._objects.forEach(e)}filter(e){let t=[];return this.forEach(r=>{e(r)&&t.push(r)}),t}inject(e){return Ps.injectedProperty.set(e,!0),this.add(e)}has(e){return this._objects.has(e)}async restore(e){if(this._hasRestored)throw new Error("This pool has already been restored.");this._hasRestored=!0;let{command:t,connector:r,registry:n,when:s}=e,o=this.namespace,a=s?[r.list(o)].concat(s):[r.list(o)];this._restore=e;let[l]=await Promise.all(a),u=await Promise.all(l.ids.map(async(c,d)=>{let f=l.values[d],m=f&&f.data;return m===void 0?r.remove(c):n.execute(t,m).catch(()=>r.remove(c))}));return this._restored.resolve(),u}async save(e){var t,r;let n=Ps.injectedProperty.get(e);if(!this._restore||!this.has(e)||n)return;let{connector:s}=this._restore,o=this._restore.name(e),a=Ps.nameProperty.get(e),l=o?`${this.namespace}:${o}`:"";if(a&&a!==l&&await s.remove(a),Ps.nameProperty.set(e,l),l){let u=(r=(t=this._restore).args)===null||r===void 0?void 0:r.call(t,e);await s.save(l,{data:u})}a!==l&&this._updated.emit(e)}_onInstanceDisposed(e){if(this._objects.delete(e),e===this._current&&(this._current=null,this._currentChanged.emit(this._current)),Ps.injectedProperty.get(e)||!this._restore)return;let{connector:t}=this._restore,r=Ps.nameProperty.get(e);r&&t.remove(r)}};Cm.RestorablePool=l_;var Ps;(function(i){i.injectedProperty=new f5.AttachedProperty({name:"injected",create:()=>!1}),i.nameProperty=new f5.AttachedProperty({name:"name",create:()=>""})})(Ps||(Ps={}))});var m5=D(Sh=>{"use strict";Object.defineProperty(Sh,"__esModule",{value:!0});Sh.StateDB=void 0;var Yte=(Qe(),Ot(ar)),Kl=class{constructor(e={}){this._changed=new Yte.Signal(this);let{connector:t,transform:r}=e;this._connector=t||new Kl.Connector,r?this._ready=r.then(n=>{let{contents:s,type:o}=n;switch(o){case"cancel":return;case"clear":return this._clear();case"merge":return this._merge(s||{});case"overwrite":return this._overwrite(s||{});default:return}}):this._ready=Promise.resolve(void 0)}get changed(){return this._changed}async clear(){await this._ready,await this._clear()}async fetch(e){return await this._ready,this._fetch(e)}async list(e){return await this._ready,this._list(e)}async remove(e){await this._ready,await this._remove(e),this._changed.emit({id:e,type:"remove"})}async save(e,t){await this._ready,await this._save(e,t),this._changed.emit({id:e,type:"save"})}async toJSON(){await this._ready;let{ids:e,values:t}=await this._list();return t.reduce((r,n,s)=>(r[e[s]]=n,r),{})}async _clear(){await Promise.all((await this._list()).ids.map(e=>this._remove(e)))}async _fetch(e){let t=await this._connector.fetch(e);if(t)return JSON.parse(t).v}async _list(e=""){let{ids:t,values:r}=await this._connector.list(e);return{ids:t,values:r.map(n=>JSON.parse(n).v)}}async _merge(e){await Promise.all(Object.keys(e).map(t=>e[t]&&this._save(t,e[t])))}async _overwrite(e){await this._clear(),await this._merge(e)}async _remove(e){return this._connector.remove(e)}
1async _save(e,t){return this._connector.save(e,JSON.stringify({v:t}))}};Sh.StateDB=Kl;(function(i){class e{constructor(){this._storage={}}async fetch(r){return this._storage[r]}async list(r=""){return Object.keys(this._storage).reduce((n,s)=>((r===""||r===s.split(":")[0])&&(n.ids.push(s),n.values.push(this._storage[s])),n),{ids:[],values:[]})}async remove(r){delete this._storage[r]}async save(r,n){this._storage[r]=n}}i.Connector=e})(Kl||(Sh.StateDB=Kl={}))});var g5=D(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});Im.IStateDB=void 0;var Xte=Ze();Im.IStateDB=new Xte.Token("@jupyterlab/coreutils:IStateDB",`A service for the JupyterLab state database. 2 Use this if you want to store data that will persist across page loads. 3 See "state database" for more information.`)});var Mm=D(us=>{"use strict";var Jte=us&&us.__createBinding||(Object.create?function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}:function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]}),Ch=us&&us.__exportStar||function(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Jte(e,i,t)};Object.defineProperty(us,"__esModule",{value:!0});Ch(s5(),us);Ch(a5(),us);Ch(p5(),us);Ch(m5(),us);Ch(g5(),us)});var v5=D(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});Em.ActivityMonitor=void 0;var b5=(Qe(),Ot(ar)),u_=class{constructor(e){this._timer=-1,this._timeout=-1,this._isDisposed=!1,this._activityStopped=new b5.Signal(this),e.signal.connect(this._onSignalFired,this),this._timeout=e.timeout||1e3}get activityStopped(){return this._activityStopped}get timeout(){return this._timeout}set timeout(e){this._timeout=e}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,b5.Signal.clearData(this))}_onSignalFired(e,t){clearTimeout(this._timer),this._sender=e,this._args=t,this._timer=setTimeout(()=>{this._activityStopped.emit({sender:this._sender,args:this._args})},this._timeout)}};Em.ActivityMonitor=u_});var y5=D(_5=>{"use strict";Object.defineProperty(_5,"__esModule",{value:!0})});var x5=D(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});Tm.LruCache=void 0;var Zte=128,c_=class{constructor(e={}){this._map=new Map,this._maxSize=e?.maxSize||Zte}get size(){return this._map.size}clear(){this._map.clear()}get(e){let t=this._map.get(e)||null;return t!=null&&(this._map.delete(e),this._map.set(e,t)),t}set(e,t){this._map.size>=this._maxSize&&this._map.delete(this._map.keys().next().value),this._map.set(e,t)}};Tm.LruCache=c_});var S5=D(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});km.MarkdownCodeBlocks=void 0;var w5;(function(i){i.CODE_BLOCK_MARKER="```";let e=[".markdown",".mdown",".mkdn",".md",".mkd",".mdwn",".mdtxt",".mdtext",".text",".txt",".Rmd"];class t{constructor(o){this.startLine=o,this.code="",this.endLine=-1}}i.MarkdownCodeBlock=t;function r(s){return e.indexOf(s)>-1}i.isMarkdown=r;function n(s){if(!s||s==="")return[];let o=s.split(` 4`),a=[],l=null;for(let u=0;u<o.length;u++){let c=o[u],d=c.indexOf(i.CODE_BLOCK_MARKER)===0,f=l!=null;if(!(!d&&!f))if(f)l&&(d?(l.endLine=u-1,a.push(l),l=null):l.code+=c+` 5`);else{l=new t(u);let m=c.indexOf(i.CODE_BLOCK_MARKER),b=c.lastIndexOf(i.CODE_BLOCK_MARKER);m!==b&&(l.code=c.substring(m+i.CODE_BLOCK_MARKER.length,b),l.endLine=u,a.push(l),l=null)}}return a}i.findMarkdownCodeBlocks=n})(w5||(km.MarkdownCodeBlocks=w5={}))});var E5=D((oEe,M5)=>{"use strict";function Qte(i,e){var t=i;e.slice(0,-1).forEach(function(n){t=t[n]||{}});var r=e[e.length-1];return r in t}function C5(i){return typeof i=="number"||/^0x[0-9a-f]+$/i.test(i)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(i)}function I5(i,e){return e==="constructor"&&typeof i[e]=="function"||e==="__proto__"}M5.exports=function(i,e){e||(e={});var t={bools:{},strings:{},unknownFn:null};typeof e.unknown=="function"&&(t.unknownFn=e.unknown),typeof e.boolean=="boolean"&&e.boolean?t.allBools=!0:[].concat(e.boolean).filter(
5Boolean).forEach(function(A){t.bools[A]=!0});var r={};function n(A){return r[A].some(function(R){return t.bools[R]})}Object.keys(e.alias||{}).forEach(function(A){r[A]=[].concat(e.alias[A]),r[A].forEach(function(R){r[R]=[A].concat(r[A].filter(function($){return R!==$}))})}),[].concat(e.string).filter(Boolean).forEach(function(A){t.strings[A]=!0,r[A]&&[].concat(r[A]).forEach(function(R){t.strings[R]=!0})});var s=e.default||{},o={_:[]};function a(A,R){return t.allBools&&/^--[^=]+$/.test(R)||t.strings[A]||t.bools[A]||r[A]}function l(A,R,$){for(var v=A,_=0;_<R.length-1;_++){var h=R[_];if(I5(v,h))return;v[h]===void 0&&(v[h]={}),(v[h]===Object.prototype||v[h]===Number.prototype||v[h]===String.prototype)&&(v[h]={}),v[h]===Array.prototype&&(v[h]=[]),v=v[h]}var p=R[R.length-1];I5(v,p)||((v===Object.prototype||v===Number.prototype||v===String.prototype)&&(v={}),v===Array.prototype&&(v=[]),v[p]===void 0||t.bools[p]||typeof v[p]=="boolean"?v[p]=$:Array.isArray(v[p])?v[p].push($):v[p]=[v[p],$])}function u(A,R,$){if(!($&&t.unknownFn&&!a(A,$)&&t.unknownFn($)===!1)){var v=!t.strings[A]&&C5(R)?Number(R):R;l(o,A.split("."),v),(r[A]||[]).forEach(function(_){l(o,_.split("."),v)})}}Object.keys(t.bools).forEach(function(A){u(A,s[A]===void 0?!1:s[A])});var c=[];i.indexOf("--")!==-1&&(c=i.slice(i.indexOf("--")+1),i=i.slice(0,i.indexOf("--")));for(var d=0;d<i.length;d++){var f=i[d],m,b;if(/^--.+=/.test(f)){var y=f.match(/^--([^=]+)=([\s\S]*)$/);m=y[1];var x=y[2];t.bools[m]&&(x=x!=="false"),u(m,x,f)}else if(/^--no-.+/.test(f))m=f.match(/^--no-(.+)/)[1],u(m,!1,f);else if(/^--.+/.test(f))m=f.match(/^--(.+)/)[1],b=i[d+1],b!==void 0&&!/^(-|--)[^-]/.test(b)&&!t.bools[m]&&!t.allBools&&(!r[m]||!n(m))?(u(m,b,f),d+=1):/^(true|false)$/.test(b)?(u(m,b==="true",f),d+=1):u(m,t.strings[m]?"":!0,f);else if(/^-[^-]+/.test(f)){for(var M=f.slice(1,-1).split(""),T=!1,E=0;E<M.length;E++){if(b=f.slice(E+2),b==="-"){u(M[E],b,f);continue}if(/[A-Za-z]/.test(M[E])&&b[0]==="="){u(M[E],b.slice(1),f),T=!0;break}if(/[A-Za-z]/.test(M[E])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(b)){u(M[E],b,f),T=!0;break}if(M[E+1]&&M[E+1].match(/\W/)){u(M[E],f.slice(E+2),f),T=!0;break}else u(M[E],t.strings[M[E]]?"":!0,f)}m=f.slice(-1)[0],!T&&m!=="-"&&(i[d+1]&&!/^(-|--)[^-]/.test(i[d+1])&&!t.bools[m]&&(!r[m]||!n(m))?(u(m,i[d+1],f),d+=1):i[d+1]&&/^(true|false)$/.test(i[d+1])?(u(m,i[d+1]==="true",f),d+=1):u(m,t.strings[m]?"":!0,f))}else if((!t.unknownFn||t.unknownFn(f)!==!1)&&o._.push(t.strings._||!C5(f)?f:Number(f)),e.stopEarly){o._.push.apply(o._,i.slice(d+1));break}}return Object.keys(s).forEach(function(A){Qte(o,A.split("."))||(l(o,A.split("."),s[A]),(r[A]||[]).forEach(function(R){l(o,R.split("."),s[A])}))}),e["--"]?o["--"]=c.slice():c.forEach(function(A){o._.push(A)}),o}});var k5=D((aEe,T5)=>{"use strict";T5.exports=function(e,t){if(t=t.split(":")[0],e=+e,!e)return!1;switch(t){case"http":case"ws":return e!==80;case"https":case"wss":return e!==443;case"ftp":return e!==21;case"gopher":return e!==70;case"file":return!1}return e!==0}});var D5=D(d_=>{"use strict";var eie=Object.prototype.hasOwnProperty,tie;function A5(i){try{return decodeURIComponent(i.replace(/\+/g," "))}catch{return null}}function R5(i){try{return encodeURIComponent(i)}catch{return null}}function iie(i){for(var e=/([^=?#&]+)=?([^&]*)/g,t={},r;r=e.exec(i);){var n=A5(r[1]),s=A5(r[2]);n===null||s===null||n in t||(t[n]=s)}return t}function rie(i,e){e=e||"";var t=[],r,n;typeof e!="string"&&(e="?");for(n in i)if(eie.call(i,n)){if(r=i[n],!r&&(r===null||r===tie||isNaN(r))&&(r=""),n=R5(n),r=R5(r),n===null||r===null)continue;t.push(n+"="+r)}return t.length?e+t.join("&"):""}d_.stringify=rie;d_.parse=iie});var B5=D((uEe,z5)=>{"use strict";var L5=k5(),Am=D5(),nie=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,$5=/[\n\r\t]/g,sie=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,F5=/:\d+$/,oie=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,aie=/^[a-zA-Z]:/;function f_(i){return(i||"").toString().replace(nie,"")}var h_=[["#","hash"],["?","query"],function(e,t){return Ns(t.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],O5={hash:1,query:1};function P5(i){var e;typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof self<"u"?e=self:e={};var t=e.location||{};i=i||t;var r={},n=typeof i,s;if(i.protocol==="blob:")r=new zs(unescape(i.pathname),{});else if(n==="string"){r=new zs(i,{});for(s in O5)delete r[s]}else if(n==="object"){for(s in i)s in O5||(r[s]=i[s]);r.slashes===void 0&&(r.slashes=sie.test(i.href))}return r}function Ns(i){return i==="file:"||i==="ftp:"||i==="http:"||i==="https:"||i==="ws:"||i==="wss:"}function N5(i,e){i=f_(i),i=i.replace($5,""),e=e||{};var t=oie.exec(i),r=t[1]?t[1].toLowerCase():"",n=!!t[2],s=!!t[3],o=0,a;return n?s?(a=t[2]+t[3]+t[4],o=t[2].length+t[3].length):(a=t[2]+t[4],o=t[2].length):s?(a=t[3]+t[4],o=t[3].length):a=t[4],r==="file:"?o>=2&&(a=a.slice(2)):Ns(r)?a=t[4]:r?n&&(a=a.slice(2)):o>=2&&Ns(e.protocol)&&(a=t[4]),{protocol:r,slashes:n||Ns(r),slashesCount:o,rest:a}}function lie(i,e){if(i==="")return e;for(var t=(e||"/").split("/").slice(0,-1).concat(i.split("/")),r=t.length,n=t[r-1],s=!1,o=0;r--;)t[r]==="."?t.splice(r,1):t[r]===".."?(t.splice(r,1),o++):o&&(r===0&&(s=!0),t.splice(r,1),o--);return s&&t.unshift(""),(n==="."||n==="..")&&t.push(""),t.join("/")}function zs(i,e,t){if(i=f_(i),i=i.replace($5,""),!(this instanceof zs))return new zs(i,e,t);var r,n,s,o,a,l,u=h_.slice(),c=typeof e,d=this,f=0;for(c!=="object"&&c!=="string"&&(t=e,e=null),t&&typeof t!="function"&&(t=Am.parse),e=P5(e),n=N5(i||"",e),r=!n.protocol&&!n.slashes,d.slashes=n.slashes||r&&e.slashes,d.protocol=n.protocol||e.protocol||"",i=n.rest,(n.protocol==="file:"&&(n.slashesCount!==2||aie.test(i))||!n.slashes&&(n.protocol||n.slashesCount<2||!Ns(d.protocol)))&&(u[3]=[/(.*)/,"pathname"]);f<u.length;f++){if(o=u[f],typeof o=="function"){i=o(i,d);continue}s=o[0],l=o[1],s!==s?d[l]=i:typeof s=="string"?(a=s==="@"?i.lastIndexOf(s):i.indexOf(s),~a&&(typeof o[2]=="number"?(d[l]=i.slice(0,a),i=i.slice(a+o[2])):(d[l]=i.slice(a),i=i.slice(0,a)))):(a=s.exec(i))&&(d[l]=a[1],i=i.slice(0,a.index)),d[l]=d[l]||r&&o[3]&&e[l]||"",o[4]&&(d[l]=d[l].toLowerCase())}
5t&&(d.query=t(d.query)),r&&e.slashes&&d.pathname.charAt(0)!=="/"&&(d.pathname!==""||e.pathname!=="")&&(d.pathname=lie(d.pathname,e.pathname)),d.pathname.charAt(0)!=="/"&&Ns(d.protocol)&&(d.pathname="/"+d.pathname),L5(d.port,d.protocol)||(d.host=d.hostname,d.port=""),d.username=d.password="",d.auth&&(a=d.auth.indexOf(":"),~a?(d.username=d.auth.slice(0,a),d.username=encodeURIComponent(decodeURIComponent(d.username)),d.password=d.auth.slice(a+1),d.password=encodeURIComponent(decodeURIComponent(d.password))):d.username=encodeURIComponent(decodeURIComponent(d.auth)),d.auth=d.password?d.username+":"+d.password:d.username),d.origin=d.protocol!=="file:"&&Ns(d.protocol)&&d.host?d.protocol+"//"+d.host:"null",d.href=d.toString()}function uie(i,e,t){var r=this;switch(i){case"query":typeof e=="string"&&e.length&&(e=(t||Am.parse)(e)),r[i]=e;break;case"port":r[i]=e,L5(e,r.protocol)?e&&(r.host=r.hostname+":"+e):(r.host=r.hostname,r[i]="");break;case"hostname":r[i]=e,r.port&&(e+=":"+r.port),r.host=e;break;case"host":r[i]=e,F5.test(e)?(e=e.split(":"),r.port=e.pop(),r.hostname=e.join(":")):(r.hostname=e,r.port="");break;case"protocol":r.protocol=e.toLowerCase(),r.slashes=!t;break;case"pathname":case"hash":if(e){var n=i==="pathname"?"/":"#";r[i]=e.charAt(0)!==n?n+e:e}else r[i]=e;break;case"username":case"password":r[i]=encodeURIComponent(e);break;case"auth":var s=e.indexOf(":");~s?(r.username=e.slice(0,s),r.username=encodeURIComponent(decodeURIComponent(r.username)),r.password=e.slice(s+1),r.password=encodeURIComponent(decodeURIComponent(r.password))):r.username=encodeURIComponent(decodeURIComponent(e))}for(var o=0;o<h_.length;o++){var a=h_[o];a[4]&&(r[a[1]]=r[a[1]].toLowerCase())}return r.auth=r.password?r.username+":"+r.password:r.username,r.origin=r.protocol!=="file:"&&Ns(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString(),r}function cie(i){(!i||typeof i!="function")&&(i=Am.stringify);var e,t=this,r=t.host,n=t.protocol;n&&n.charAt(n.length-1)!==":"&&(n+=":");var s=n+(t.protocol&&t.slashes||Ns(t.protocol)?"//":"");return t.username?(s+=t.username,t.password&&(s+=":"+t.password),s+="@"):t.password?(s+=":"+t.password,s+="@"):t.protocol!=="file:"&&Ns(t.protocol)&&!r&&t.pathname!=="/"&&(s+="@"),(r[r.length-1]===":"||F5.test(t.hostname)&&!t.port)&&(r+=":"),s+=r+t.pathname,e=typeof t.query=="object"?i(t.query):t.query,e&&(s+=e.charAt(0)!=="?"?"?"+e:e),t.hash&&(s+=t.hash),s}zs.prototype={set:uie,toString:cie};zs.extractProtocol=N5;zs.location=P5;zs.trimLeft=f_;zs.qs=Am;z5.exports=zs});var p_=D(bc=>{"use strict";var die=bc&&bc.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(bc,"__esModule",{value:!0});bc.URLExt=void 0;var hie=Qv("path"),Rm=die(B5()),q5;(function(i){function e(u){if(typeof document<"u"&&document){let c=document.createElement("a");return c.href=u,c}return(0,Rm.default)(u)}i.parse=e;function t(u){return(0,Rm.default)(u).hostname}i.getHostName=t;function r(u){return u&&e(u).toString()}i.normalize=r;function n(...u){let c=(0,Rm.default)(u[0],{}),d=c.protocol===""&&c.slashes;d&&(c=(0,Rm.default)(u[0],"https:"+u[0]));let f=`${d?"":c.protocol}${c.slashes?"//":""}${c.auth}${c.auth?"@":""}${c.host}`,m=hie.posix.join(`${f&&c.pathname[0]!=="/"?"/":""}${c.pathname}`,...u.slice(1));return`${f}${m==="."?"":m}`}i.join=n;function s(u){return n(...u.split("/").map(encodeURIComponent))}i.encodeParts=s;function o(u){let c=Object.keys(u).filter(d=>d.length>0);return c.length?"?"+c.map(d=>{let f=encodeURIComponent(String(u[d]));return d+(f?"="+f:"")}).join("&"):""}i.objectToQueryString=o;function a(u){return u.replace(/^\?/,"").split("&").reduce((c,d)=>{let[f,m]=d.split("=");return f.length>0&&(c[f]=decodeURIComponent(m||"")),c},{})}i.queryStringToObject=a;function l(u,c=!1){let{protocol:d}=e(u);return(!d||u.toLowerCase().indexOf(d)!==0)&&(c?u.indexOf("//")!==0:u.indexOf("/")!==0)}i.isLocal=l})(q5||(bc.URLExt=q5={}))});var H5=D((exports,module)=>{"use strict";var __importDefault=exports&&exports.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(exports,"__esModule",{value:!0});exports.PageConfig=void 0;var coreutils_1=Ze(),minimist_1=__importDefault(E5()),url_1=p_(),PageConfig;(function(PageConfig){function getOption(name){if(configData)return configData[name]||getBodyData(name);configData=Object.create(null);let found=!1;if(typeof document<"u"&&document){let i=document.getElementById("jupyter-config-data");i&&(configData=JSON.parse(i.textContent||""),found=!0)}if(!found&&typeof process<"u"&&process.argv)try{let cli=(0,minimist_1.default)(process.argv.slice(2)),path=Qv("path"),fullPath="";"jupyter-config-data"in cli?fullPath=path.resolve(cli["jupyter-config-data"]):"JUPYTER_CONFIG_DATA"in process.env&&(fullPath=path.resolve(process.env.JUPYTER_CONFIG_DATA)),fullPath&&(configData=eval("require")(fullPath))}catch(i){console.error(i)}if(!coreutils_1.JSONExt.isObject(configData))configData=Object.create(null);
5else for(let i in configData)typeof configData[i]!="string"&&(configData[i]=JSON.stringify(configData[i]));return configData[name]||getBodyData(name)}PageConfig.getOption=getOption;function setOption(i,e){let t=getOption(i);return configData[i]=e,t}PageConfig.setOption=setOption;function getBaseUrl(){return url_1.URLExt.normalize(getOption("baseUrl")||"/")}PageConfig.getBaseUrl=getBaseUrl;function getTreeUrl(){return url_1.URLExt.join(getBaseUrl(),getOption("treeUrl"))}PageConfig.getTreeUrl=getTreeUrl;function getShareUrl(){return url_1.URLExt.normalize(getOption("shareUrl")||getBaseUrl())}PageConfig.getShareUrl=getShareUrl;function getTreeShareUrl(){return url_1.URLExt.normalize(url_1.URLExt.join(getShareUrl(),getOption("treeUrl")))}PageConfig.getTreeShareUrl=getTreeShareUrl;function getUrl(i){var e,t,r,n;let s=i.toShare?getShareUrl():getBaseUrl(),o=(e=i.mode)!==null&&e!==void 0?e:getOption("mode"),a=(t=i.workspace)!==null&&t!==void 0?t:getOption("workspace"),l=o==="single-document"?"doc":"lab";s=url_1.URLExt.join(s,l),a!==PageConfig.defaultWorkspace&&(s=url_1.URLExt.join(s,"workspaces",encodeURIComponent((r=getOption("workspace"))!==null&&r!==void 0?r:PageConfig.defaultWorkspace)));let u=(n=i.treePath)!==null&&n!==void 0?n:getOption("treePath");return u&&(s=url_1.URLExt.join(s,"tree",url_1.URLExt.encodeParts(u))),s}PageConfig.getUrl=getUrl,PageConfig.defaultWorkspace="default";function getWsUrl(i){let e=getOption("wsUrl");if(!e){if(i=i?url_1.URLExt.normalize(i):getBaseUrl(),i.indexOf("http")!==0)return"";e="ws"+i.slice(4)}return url_1.URLExt.normalize(e)}PageConfig.getWsUrl=getWsUrl;function getNBConvertURL({path:i,format:e,download:t}){let r=url_1.URLExt.encodeParts(i),n=url_1.URLExt.join(getBaseUrl(),"nbconvert",e,r);return t?n+"?download=true":n}PageConfig.getNBConvertURL=getNBConvertURL;function getToken(){return getOption("token")||getBodyData("jupyterApiToken")}PageConfig.getToken=getToken;function getNotebookVersion(){let i=getOption("notebookVersion");return i===""?[0,0,0]:JSON.parse(i)}PageConfig.getNotebookVersion=getNotebookVersion;let configData=null;function getBodyData(i){if(typeof document>"u"||!document.body)return"";let e=document.body.dataset[i];return typeof e>"u"?"":decodeURIComponent(e)}let Extension;(function(i){function e(n){try{let s=getOption(n);if(s)return JSON.parse(s)}catch(s){console.warn(`Unable to parse ${n}.`,s)}return[]}i.deferred=e("deferredExtensions"),i.disabled=e("disabledExtensions");function t(n){let s=n.indexOf(":"),o="";return s!==-1&&(o=n.slice(0,s)),i.deferred.some(a=>a===n||o&&a===o)}i.isDeferred=t;function r(n){let s=n.indexOf(":"),o="";return s!==-1&&(o=n.slice(0,s)),i.disabled.some(a=>a===n||o&&a===o)}i.isDisabled=r})(Extension=PageConfig.Extension||(PageConfig.Extension={}))})(PageConfig||(exports.PageConfig=PageConfig={}))});var V5=D(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});Dm.PathExt=void 0;var La=Qv("path"),j5;(function(i){function e(...d){let f=La.posix.join(...d);return f==="."?"":c(f)}i.join=e;function t(...d){let f=La.posix.join(...d);return f==="."?"":f}i.joinWithLeadingSlash=t;function r(d,f){return La.posix.basename(d,f)}i.basename=r;function n(d){let f=c(La.posix.dirname(d));return f==="."?"":f}i.dirname=n;function s(d){return La.posix.extname(d)}i.extname=s;function o(d){return d===""?"":c(La.posix.normalize(d))}i.normalize=o;function a(...d){return c(La.posix.resolve(...d))}i.resolve=a;function l(d,f){return c(La.posix.relative(d,f))}i.relative=l;function u(d){return d.length>0&&d.indexOf(".")!==0&&(d=`.${d}`),d}i.normalizeExtension=u;function c(d){return d.indexOf("/")===0&&(d=d.slice(1)),d}i.removeSlash=c})(j5||(Dm.PathExt=j5={}))});var U5=D(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});Om.signalToPromise=void 0;var fie=Ze();function pie(i,e){let t=new fie.PromiseDelegate;function r(){i.disconnect(n)}function n(s,o){r(),t.resolve([s,o])}return i.connect(n),(e??0)>0&&setTimeout(()=>{r(),t.reject(`Signal not emitted within ${e} ms.`)},e),t.promise}Om.signalToPromise=pie});var G5=D(Lm=>{"use strict";
5Object.defineProperty(Lm,"__esModule",{value:!0});Lm.Text=void 0;var W5;(function(i){let e=2>1;function t(o,a){if(e)return o;let l=o;for(let u=0;u+1<a.length&&u<o;u++){let c=a.charCodeAt(u);if(c>=55296&&c<=56319){let d=a.charCodeAt(u+1);d>=56320&&d<=57343&&(l--,u++)}}return l}i.jsIndexToCharIndex=t;function r(o,a){if(e)return o;let l=o;for(let u=0;u+1<a.length&&u<l;u++){let c=a.charCodeAt(u);if(c>=55296&&c<=56319){let d=a.charCodeAt(u+1);d>=56320&&d<=57343&&(l++,u++)}}return l}i.charIndexToJsIndex=r;function n(o,a=!1){return o.replace(/^(\w)|[\s-_:]+(\w)/g,function(l,u,c){return c?c.toUpperCase():a?u.toUpperCase():u.toLowerCase()})}i.camelCase=n;function s(o){return(o||"").toLowerCase().split(" ").map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")}i.titleCase=s})(W5||(Lm.Text=W5={}))});var Y5=D($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});$m.Time=void 0;var mie=[{name:"years",milliseconds:365*24*60*60*1e3},{name:"months",milliseconds:30*24*60*60*1e3},{name:"days",milliseconds:24*60*60*1e3},{name:"hours",milliseconds:60*60*1e3},{name:"minutes",milliseconds:60*1e3},{name:"seconds",milliseconds:1e3}],K5;(function(i){function e(r,n="long"){let s=document.documentElement.lang||"en",o=new Intl.RelativeTimeFormat(s,{numeric:"auto",style:n}),a=new Date(r).getTime()-Date.now();for(let l of mie){let u=Math.ceil(a/l.milliseconds);if(u!==0)return o.format(u,l.name)}return o.format(0,"seconds")}i.formatHuman=e;function t(r){let n=document.documentElement.lang||"en";return new Intl.DateTimeFormat(n,{dateStyle:"short",timeStyle:"short"}).format(new Date(r))}i.format=t})(K5||($m.Time=K5={}))});var Ii=D(lr=>{"use strict";var gie=lr&&lr.__createBinding||(Object.create?function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}:function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]}),Bs=lr&&lr.__exportStar||function(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&gie(e,i,t)};Object.defineProperty(lr,"__esModule",{value:!0});Bs(v5(),lr);Bs(y5(),lr);Bs(x5(),lr);Bs(S5(),lr);Bs(H5(),lr);Bs(V5(),lr);Bs(U5(),lr);Bs(G5(),lr);Bs(Y5(),lr);Bs(p_(),lr)});var vc=D(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.supportedKernelWebSocketProtocols=je.isInputReplyMsg=je.isInputRequestMsg=je.isDebugReplyMsg=je.isDebugRequestMsg=je.isExecuteReplyMsg=je.isInfoRequestMsg=je.isCommMsgMsg=je.isCommCloseMsg=je.isCommOpenMsg=je.isDebugEventMsg=je.isClearOutputMsg=je.isStatusMsg=je.isErrorMsg=je.isExecuteResultMsg=je.isExecuteInputMsg=je.isUpdateDisplayDataMsg=je.isDisplayDataMsg=je.isStreamMsg=je.createMessage=void 0;var bie=Ze();function vie(i){var e,t,r,n,s;return{buffers:(e=i.buffers)!==null&&e!==void 0?e:[],channel:i.channel,content:i.content,header:{date:new Date().toISOString(),msg_id:(t=i.msgId)!==null&&t!==void 0?t:bie.UUID.uuid4(),msg_type:i.msgType,session:i.session,username:(r=i.username)!==null&&r!==void 0?r:"",version:"5.2"},metadata:(n=i.metadata)!==null&&n!==void 0?n:{},parent_header:(s=i.parentHeader)!==null&&s!==void 0?s:{}}}je.createMessage=vie;function _ie(i){return i.header.msg_type==="stream"}je.isStreamMsg=_ie;function yie(i){return i.header.msg_type==="display_data"}je.isDisplayDataMsg=yie;function xie(i){return i.header.msg_type==="update_display_data"}je.isUpdateDisplayDataMsg=xie;function wie(i){return i.header.msg_type==="execute_input"}je.isExecuteInputMsg=wie;function Sie(i){return i.header.msg_type==="execute_result"}je.isExecuteResultMsg=Sie;function Cie(i){return i.header.msg_type==="error"}je.isErrorMsg=Cie;function Iie(i){return i.header.msg_type==="status"}je.isStatusMsg=Iie;function Mie(i){return i.header.msg_type==="clear_output"}je.isClearOutputMsg=Mie;function Eie(i){return i.header.msg_type==="debug_event"}je.isDebugEventMsg=Eie;function Tie(i){return i.header.msg_type==="comm_open"}je.isCommOpenMsg=Tie;function kie(i){return i.header.msg_type==="comm_close"}je.isCommCloseMsg=kie;function Aie(i){return i.header.msg_type==="comm_msg"}je.isCommMsgMsg=Aie;
5function Rie(i){return i.header.msg_type==="kernel_info_request"}je.isInfoRequestMsg=Rie;function Die(i){return i.header.msg_type==="execute_reply"}je.isExecuteReplyMsg=Die;function Oie(i){return i.header.msg_type==="debug_request"}je.isDebugRequestMsg=Oie;function Lie(i){return i.header.msg_type==="debug_reply"}je.isDebugReplyMsg=Lie;function $ie(i){return i.header.msg_type==="input_request"}je.isInputRequestMsg=$ie;function Fie(i){return i.header.msg_type==="input_reply"}je.isInputReplyMsg=Fie;var X5;(function(i){i.v1KernelWebsocketJupyterOrg="v1.kernel.websocket.jupyter.org"})(X5||(je.supportedKernelWebSocketProtocols=X5={}))});var Z5=D($n=>{"use strict";var Pie=$n&&$n.__createBinding||(Object.create?function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}:function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]}),Nie=$n&&$n.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),zie=$n&&$n.__importStar||function(i){if(i&&i.__esModule)return i;var e={};if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&Pie(e,i,t);
5return Nie(e,i),e};Object.defineProperty($n,"__esModule",{value:!0});$n.deserialize=$n.serialize=void 0;var J5=zie(vc());function Bie(i,e=""){switch(e){case J5.supportedKernelWebSocketProtocols.v1KernelWebsocketJupyterOrg:return _c.serializeV1KernelWebsocketJupyterOrg(i);default:return _c.serializeDefault(i)}}$n.serialize=Bie;function qie(i,e=""){switch(e){case J5.supportedKernelWebSocketProtocols.v1KernelWebsocketJupyterOrg:return _c.deserializeV1KernelWebsocketJupyterOrg(i);default:return _c.deserializeDefault(i)}}$n.deserialize=qie;var _c;(function(i){function e(a){let l,u=new DataView(a),c=Number(u.getBigUint64(0,!0)),d=[];for(let E=0;E<c;E++)d.push(Number(u.getBigUint64(8*(E+1),!0)));let f=new TextDecoder("utf8"),m=f.decode(a.slice(d[0],d[1])),b=JSON.parse(f.decode(a.slice(d[1],d[2]))),y=JSON.parse(f.decode(a.slice(d[2],d[3]))),x=JSON.parse(f.decode(a.slice(d[3],d[4]))),M=JSON.parse(f.decode(a.slice(d[4],d[5]))),T=[];for(let E=5;E<d.length-1;E++)T.push(new DataView(a.slice(d[E],d[E+1])));return l={channel:m,header:b,parent_header:y,metadata:x,content:M,buffers:T},l}i.deserializeV1KernelWebsocketJupyterOrg=e;function t(a){let l=JSON.stringify(a.header),u=a.parent_header==null?"{}":JSON.stringify(a.parent_header),c=JSON.stringify(a.metadata),d=JSON.stringify(a.content),f=a.buffers!==void 0?a.buffers:[],m=1+4+f.length+1,b=[];b.push(8*(1+m)),b.push(a.channel.length+b[b.length-1]);let y=new TextEncoder,x=y.encode(a.channel),M=y.encode(l),T=y.encode(u),E=y.encode(c),A=y.encode(d),R=new Uint8Array(x.length+M.length+T.length+E.length+A.length);R.set(x),R.set(M,x.length),R.set(T,x.length+M.length),R.set(E,x.length+M.length+T.length),R.set(A,x.length+M.length+T.length+E.length);for(let p of[M.length,T.length,E.length,A.length])b.push(p+b[b.length-1]);let $=0;for(let p of f){let g=p.byteLength;b.push(g+b[b.length-1]),$+=g}let v=new Uint8Array(8*(1+m)+R.byteLength+$),_=new ArrayBuffer(8),h=new DataView(_);h.setBigUint64(0,BigInt(m),!0),v.set(new Uint8Array(_),0);for(let p=0;p<b.length;p++)h.setBigUint64(0,BigInt(b[p]),!0),v.set(new Uint8Array(_),8*(p+1));v.set(R,b[0]);for(let p=0;p<f.length;p++){let g=f[p];v.set(new Uint8Array(ArrayBuffer.isView(g)?g.buffer:g),b[5+p])}return v.buffer}i.serializeV1KernelWebsocketJupyterOrg=t;function r(a){let l;return typeof a=="string"?l=JSON.parse(a):l=s(a),l}i.deserializeDefault=r;function n(a){var l;let u;return!((l=a.buffers)===null||l===void 0)&&l.length?u=o(a):u=JSON.stringify(a),u}i.serializeDefault=n;function s(a){let l=new DataView(a),u=l.getUint32(0),c=[];if(u<2)throw new Error("Invalid incoming Kernel Message");for(let m=1;m<=u;m++)c.push(l.getUint32(m*4));let d=new Uint8Array(a.slice(c[0],c[1])),f=JSON.parse(new TextDecoder("utf8").decode(d));f.buffers=[];for(let m=1;m<u;m++){let b=c[m],y=c[m+1]||a.byteLength;f.buffers.push(new DataView(a.slice(b,y)))}return f}function o(a){let l=[],u=[],c=new TextEncoder,d=[];a.buffers!==void 0&&(d=a.buffers,delete a.buffers);let f=c.encode(JSON.stringify(a));u.push(f.buffer);for(let x=0;x<d.length;x++){let M=d[x];u.push(ArrayBuffer.isView(M)?M.buffer:M)}let m=u.length;l.push(4*(m+1));for(let x=0;x+1<u.length;x++)l.push(l[l.length-1]+u[x].byteLength);let b=new Uint8Array(l[l.length-1]+u[u.length-1].byteLength),y=new DataView(b.buffer);y.setUint32(0,m);for(let x=0;x<l.length;x++)y.setUint32(4*(x+1),l[x]);for(let x=0;x<u.length;x++)b.set(new Uint8Array(u[x]),l[x]);return b.buffer}})(_c||(_c={}))});var Q5=D(m_=>{"use strict";Object.defineProperty(m_,"__esModule",{value:!0});m_.default=WebSocket});var Ir=D(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.ServerConnection=void 0;var $a=Ii(),e8=Z5(),g_;typeof window>"u"?g_=Q5():g_=WebSocket;var b_;(function(i){function e(s){return Fm.makeSettings(s)}i.makeSettings=e;function t(s,o,a){return Fm.handleRequest(s,o,a)}i.makeRequest=t;class r extends Error{static async create(o){try{let a=await o.json(),{message:l,traceback:u}=a;return u&&console.error(u),new r(o,l??r._defaultMessage(o),u??"")}catch(a){return console.debug(a),new r(o)}}constructor(o,a=r._defaultMessage(o),l=""){super(a),this.response=o,this.traceback=l}static _defaultMessage(o){return`Invalid response: ${o.status} ${o.statusText}`}}i.ResponseError=r;class n extends TypeError{constructor(o){super(o.message),this.stack=o.stack}}i.NetworkError=n})(b_||(Pm.ServerConnection=b_={}));var Fm;(function(i){function e(n={}){var s;let o=$a.PageConfig.getBaseUrl(),a=$a.PageConfig.getWsUrl(),l=$a.URLExt.normalize(n.baseUrl)||o,u=n.wsUrl;!u&&l===o&&(u=a),!u&&l.indexOf("http")===0&&(u="ws"+l.slice(4)),u=u??a;let c=$a.PageConfig.getOption("appendToken").toLowerCase(),d;return c===""?d=typeof window>
5"u"||typeof process<"u"&&((s=process==null?void 0:process.env)===null||s===void 0?void 0:s.JEST_WORKER_ID)!==void 0||$a.URLExt.getHostName(o)!==$a.URLExt.getHostName(u):d=c==="true",{init:{cache:"no-store",credentials:"same-origin"},fetch,Headers,Request,WebSocket:g_,token:$a.PageConfig.getToken(),appUrl:$a.PageConfig.getOption("appUrl"),appendToken:d,serializer:{serialize:e8.serialize,deserialize:e8.deserialize},...n,baseUrl:l,wsUrl:u}}i.makeSettings=e;function t(n,s,o){var a;if(n.indexOf(o.baseUrl)!==0)throw new Error("Can only be used for notebook server requests");((a=s.cache)!==null&&a!==void 0?a:o.init.cache)==="no-store"&&(n+=(/\?/.test(n)?"&":"?")+new Date().getTime());let u=new o.Request(n,{...o.init,...s}),c=!1;if(o.token&&(c=!0,u.headers.append("Authorization",`token ${o.token}`)),typeof document<"u"){let d=r("_xsrf");d!==void 0&&(c=!0,u.headers.append("X-XSRFToken",d))}return!u.headers.has("Content-Type")&&c&&u.headers.set("Content-Type","application/json"),o.fetch.call(null,u).catch(d=>{throw new b_.NetworkError(d)})}i.handleRequest=t;function r(n){let s="";try{s=document.cookie}catch{return}let o=s.match("\\b"+n+"=([^;]*)\\b");return o?.[1]}})(Fm||(Fm={}))});var Yl=D(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});Nm.BaseManager=void 0;var t8=(Qe(),Ot(ar)),Hie=Ir(),v_=class{constructor(e){var t;this._isDisposed=!1,this._disposed=new t8.Signal(this),this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:Hie.ServerConnection.makeSettings()}get disposed(){return this._disposed}get isDisposed(){return this._isDisposed}get isActive(){return!0}dispose(){this.isDisposed||(this._isDisposed=!0,this._disposed.emit(void 0),t8.Signal.clearData(this))}};Nm.BaseManager=v_});var r8=D(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.ConfigWithDefaults=yc.ConfigSection=void 0;var jie=Ii(),Ih=qs(),Vie="api/config",i8;(function(i){function e(t){let r=new __(t);return r.load().then(()=>r)}i.create=e})(i8||(yc.ConfigSection=i8={}));var __=class{constructor(e){var t;this._url="unknown";let r=this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:Ih.ServerConnection.makeSettings();this._url=jie.URLExt.join(r.baseUrl,Vie,encodeURIComponent(e.name))}get data(){return this._data}async load(){let e=await Ih.ServerConnection.makeRequest(this._url,{},this.serverSettings);if(e.status!==200)throw await Ih.ServerConnection.ResponseError.create(e);this._data=await e.json()}async update(e){this._data={...this._data,...e};let t={method:"PATCH",body:JSON.stringify(e)},r=await Ih.ServerConnection.makeRequest(this._url,t,this.serverSettings);if(r.status!==200)throw await Ih.ServerConnection.ResponseError.create(r);return this._data=await r.json(),this._data}},y_=class{constructor(e){var t,r;this._className="",this._section=e.section,this._defaults=(t=e.defaults)!==null&&t!==void 0?t:{},this._className=(r=e.className)!==null&&r!==void 0?r:""}get(e){let t=this._classData();return e in t?t[e]:this._defaults[e]}set(e,t){let r={};if(r[e]=t,this._className){let n={};return n[this._className]=r,this._section.update(n)}else return this._section.update(r)}_classData(){let e=this._section.data;return this._className&&this._className in e?e[this._className]:e}};yc.ConfigWithDefaults=y_});var Mh=D(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});zm.validateProperty=void 0;function Uie(i,e,t,r=[]){if(!i.hasOwnProperty(e))throw Error(`Missing property '${e}'`);let n=i[e];if(t!==void 0){let s=!0;switch(t){case"array":s=Array.isArray(n);break;case"object":s=typeof n<"u";break;default:s=typeof n===t}if(!s)throw new Error(`Property '${e}' is not of type '${t}'`);if(r.length>0){let o=!0;switch(t){case"string":case"number":case"boolean":o=r.includes(n);break;default:o=r.findIndex(a=>a===n)>=0;break}if(!o)throw new Error(`Property '${e}' is not one of the valid values ${JSON.stringify(r)}`)}}}zm.validateProperty=Uie});var n8=D(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.validateCheckpointModel=xc.validateContentsModel=void 0;var Hs=Mh();function Wie(i){(0,Hs.validateProperty)(i,"name","string"),(0,Hs.validateProperty)(i,"path","string"),(0,Hs.validateProperty)(i,"type","string"),(0,Hs.validateProperty)(i,"created","string"),(0,Hs.validateProperty)(i,"last_modified","string"),(0,Hs.validateProperty)(i,"mimetype","object"),(0,Hs.validateProperty)(i,"content","object"),(0,Hs.validateProperty)(i,"format","object")}xc.validateContentsModel=Wie;function Gie(i){(0,Hs.validateProperty)(i,"id","string"),(0,Hs.validateProperty)(i,"last_modified","string")}xc.validateCheckpointModel=Gie});var S_=D(jr=>{"use strict";var Kie=jr&&jr.__createBinding||(Object.create?function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}:function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]}),Yie=jr&&jr.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),Xie=jr&&jr.__importStar||function(i){if(i&&i.__esModule)return i;var e={};
5if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&Kie(e,i,t);return Yie(e,i),e};Object.defineProperty(jr,"__esModule",{value:!0});jr.Drive=jr.ContentsManager=jr.Contents=void 0;var bn=Ii(),Bm=(Qe(),Ot(ar)),Yt=qs(),$o=Xie(n8()),Jie="api/contents",Zie="files",s8;(function(i){function e(r){$o.validateContentsModel(r)}i.validateContentsModel=e;function t(r){$o.validateCheckpointModel(r)}i.validateCheckpointModel=t})(s8||(jr.Contents=s8={}));var x_=class{constructor(e={}){var t,r;this._isDisposed=!1,this._additionalDrives=new Map,this._fileChanged=new Bm.Signal(this);let n=this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:Yt.ServerConnection.makeSettings();this._defaultDrive=(r=e.defaultDrive)!==null&&r!==void 0?r:new qm({serverSettings:n}),this._defaultDrive.fileChanged.connect(this._onFileChanged,this)}get fileChanged(){return this._fileChanged}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,Bm.Signal.clearData(this))}addDrive(e){this._additionalDrives.set(e.name,e),e.fileChanged.connect(this._onFileChanged,this)}getSharedModelFactory(e){var t;let[r]=this._driveForPath(e);return(t=r?.sharedModelFactory)!==null&&t!==void 0?t:null}localPath(e){let t=e.split("/"),r=t[0].split(":");return r.length===1||!this._additionalDrives.has(r[0])?bn.PathExt.removeSlash(e):bn.PathExt.join(r.slice(1).join(":"),...t.slice(1))}normalize(e){let t=e.split(":");return t.length===1?bn.PathExt.normalize(e):`${t[0]}:${bn.PathExt.normalize(t.slice(1).join(":"))}`}resolvePath(e,t){let r=this.driveName(e),n=this.localPath(e),s=bn.PathExt.resolve("/",n,t);return r?`${r}:${s}`:s}driveName(e){let r=e.split("/")[0].split(":");return r.length===1?"":this._additionalDrives.has(r[0])?r[0]:""}get(e,t){let[r,n]=this._driveForPath(e);return r.get(n,t).then(s=>{let o=[];if(s.type==="directory"&&s.content){for(let a of s.content)o.push({...a,path:this._toGlobalPath(r,a.path)});return{...s,path:this._toGlobalPath(r,n),content:o,serverPath:s.path}}else return{...s,path:this._toGlobalPath(r,n),serverPath:s.path}})}getDownloadUrl(e){let[t,r]=this._driveForPath(e);return t.getDownloadUrl(r)}newUntitled(e={}){if(e.path){let t=this.normalize(e.path),[r,n]=this._driveForPath(t);return r.newUntitled({...e,path:n}).then(s=>({...s,path:bn.PathExt.join(t,s.name),serverPath:s.path}))}else return this._defaultDrive.newUntitled(e)}delete(e){let[t,r]=this._driveForPath(e);return t.delete(r)}rename(e,t){let[r,n]=this._driveForPath(e),[s,o]=this._driveForPath(t);if(r!==s)throw Error("ContentsManager: renaming files must occur within a Drive");return r.rename(n,o).then(a=>({...a,path:this._toGlobalPath(r,o),serverPath:a.path}))}save(e,t={}){let r=this.normalize(e),[n,s]=this._driveForPath(e);return n.save(s,{...t,path:s}).then(o=>({...o,path:r,serverPath:o.path}))}copy(e,t){let[r,n]=this._driveForPath(e),[s,o]=this._driveForPath(t);if(r===s)return r.copy(n,o).then(a=>({...a,path:this._toGlobalPath(r,a.path),serverPath:a.path}));throw Error("Copying files between drives is not currently implemented")}createCheckpoint(e){let[t,r]=this._driveForPath(e);return t.createCheckpoint(r)}listCheckpoints(e){let[t,r]=this._driveForPath(e);return t.listCheckpoints(r)}restoreCheckpoint(e,t){let[r,n]=this._driveForPath(e);return r.restoreCheckpoint(n,t)}deleteCheckpoint(e,t){let[r,n]=this._driveForPath(e);return r.deleteCheckpoint(n,t)}_toGlobalPath(e,t){return e===this._defaultDrive?bn.PathExt.removeSlash(t):`${e.name}:${bn.PathExt.removeSlash(t)}`}_driveForPath(e){let t=this.driveName(e),r=this.localPath(e);return t?[this._additionalDrives.get(t),r]:[this._defaultDrive,r]}_onFileChanged(e,t){var r,n;if(e===this._defaultDrive)this._fileChanged.emit(t);else{let s=null,o=null;!((r=t.newValue)===null||r===void 0)&&r.path&&(s={...t.newValue,path:this._toGlobalPath(e,t.newValue.path)}),!((n=t.oldValue)===null||n===void 0)&&n.path&&(o={...t.oldValue,path:this._toGlobalPath(e,t.oldValue.path)}),this._fileChanged.emit({type:t.type,newValue:s,oldValue:o})}}};jr.ContentsManager=x_;var qm=class{constructor(e={}){var t,r,n;this._isDisposed=!1,this._fileChanged=new Bm.Signal(this),this.name=(t=e.name)!==null&&t!==void 0?t:"Default",this._apiEndpoint=(r=e.apiEndpoint)!==null&&r!==void 0?r:Jie,this.serverSettings=(n=e.serverSettings)!==null&&n!==void 0?n:Yt.ServerConnection.makeSettings()}get fileChanged(){return this._fileChanged}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,Bm.Signal.clearData(this))}async get(e,t){let r=this._getUrl(e);if(t){t.type==="notebook"&&delete t.format;let a=t.content?"1":"0",l=t.hash?"1":"0",u={...t,content:a,hash:l};r+=bn.URLExt.objectToQueryString(u)}let n=this.serverSettings,s=await Yt.ServerConnection.makeRequest
5(r,{},n);if(s.status!==200)throw await Yt.ServerConnection.ResponseError.create(s);let o=await s.json();return $o.validateContentsModel(o),o}getDownloadUrl(e){let t=this.serverSettings.baseUrl,r=bn.URLExt.join(t,Zie,bn.URLExt.encodeParts(e)),n="";try{n=document.cookie}catch{}let s=n.match("\\b_xsrf=([^;]*)\\b");if(s){let o=new URL(r);o.searchParams.append("_xsrf",s[1]),r=o.toString()}return Promise.resolve(r)}async newUntitled(e={}){var t;let r="{}";e&&(e.ext&&(e.ext=w_.normalizeExtension(e.ext)),r=JSON.stringify(e));let n=this.serverSettings,s=this._getUrl((t=e.path)!==null&&t!==void 0?t:""),o={method:"POST",body:r},a=await Yt.ServerConnection.makeRequest(s,o,n);if(a.status!==201)throw await Yt.ServerConnection.ResponseError.create(a);let l=await a.json();return $o.validateContentsModel(l),this._fileChanged.emit({type:"new",oldValue:null,newValue:l}),l}async delete(e){let t=this._getUrl(e),r=this.serverSettings,n={method:"DELETE"},s=await Yt.ServerConnection.makeRequest(t,n,r);if(s.status!==204)throw await Yt.ServerConnection.ResponseError.create(s);this._fileChanged.emit({type:"delete",oldValue:{path:e},newValue:null})}async rename(e,t){let r=this.serverSettings,n=this._getUrl(e),s={method:"PATCH",body:JSON.stringify({path:t})},o=await Yt.ServerConnection.makeRequest(n,s,r);if(o.status!==200)throw await Yt.ServerConnection.ResponseError.create(o);let a=await o.json();return $o.validateContentsModel(a),this._fileChanged.emit({type:"rename",oldValue:{path:e},newValue:a}),a}async save(e,t={}){let r=this.serverSettings,n=this._getUrl(e),s={method:"PUT",body:JSON.stringify(t)},o=await Yt.ServerConnection.makeRequest(n,s,r);if(o.status!==200&&o.status!==201)throw await Yt.ServerConnection.ResponseError.create(o);let a=await o.json();return $o.validateContentsModel(a),this._fileChanged.emit({type:"save",oldValue:null,newValue:a}),a}async copy(e,t){let r=this.serverSettings,n=this._getUrl(t),s={method:"POST",body:JSON.stringify({copy_from:e})},o=await Yt.ServerConnection.makeRequest(n,s,r);if(o.status!==201)throw await Yt.ServerConnection.ResponseError.create(o);let a=await o.json();return $o.validateContentsModel(a),this._fileChanged.emit({type:"new",oldValue:null,newValue:a}),a}async createCheckpoint(e){let t=this._getUrl(e,"checkpoints"),r={method:"POST"},n=await Yt.ServerConnection.makeRequest(t,r,this.serverSettings);if(n.status!==201)throw await Yt.ServerConnection.ResponseError.create(n);let s=await n.json();return $o.validateCheckpointModel(s),s}async listCheckpoints(e){let t=this._getUrl(e,"checkpoints"),r=await Yt.ServerConnection.makeRequest(t,{},this.serverSettings);if(r.status!==200)throw await Yt.ServerConnection.ResponseError.create(r);let n=await r.json();if(!Array.isArray(n))throw new Error("Invalid Checkpoint list");for(let s=0;s<n.length;s++)$o.validateCheckpointModel(n[s]);return n}async restoreCheckpoint(e,t){let r=this._getUrl(e,"checkpoints",t),n={method:"POST"},s=await Yt.ServerConnection.makeRequest(r,n,this.serverSettings);if(s.status!==204)throw await Yt.ServerConnection.ResponseError.create(s)}async deleteCheckpoint(e,t){let r=this._getUrl(e,"checkpoints",t),n={method:"DELETE"},s=await Yt.ServerConnection.makeRequest(r,n,this.serverSettings);if(s.status!==204)throw await Yt.ServerConnection.ResponseError.create(s)}_getUrl(...e){let t=e.map(n=>bn.URLExt.encodeParts(n)),r=this.serverSettings.baseUrl;return bn.URLExt.join(r,this._apiEndpoint,...t)}};jr.Drive=qm;var w_;(function(i){function e(t){return t.length>0&&t.indexOf(".")!==0&&(t=`.${t}`),t}i.normalizeExtension=e})(w_||(w_={}))});var Jl={};Ul(Jl,{Debouncer:()=>C_,Poll:()=>si,RateLimiter:()=>Eh,Throttler:()=>Xl});var Fa,si,cs,Eh,C_,Xl,Fo=w(()=>{Fa=z(Ze());Qe();si=class{constructor(e){var t;this._disposed=new X(this),this._lingered=0,this._tick=new Fa.PromiseDelegate,this._ticked=new X(this),this._factory=e.factory,this._linger=(t=e.linger)!==null&&t!==void 0?t:cs.DEFAULT_LINGER,this._standby=e.standby||cs.DEFAULT_STANDBY,this._state={...cs.DEFAULT_STATE,timestamp:new Date().getTime()};let r=e.frequency||{},n=Math.max(r.interval||0,r.max||0,cs.DEFAULT_FREQUENCY.max);this.frequency={...cs.DEFAULT_FREQUENCY,...r,max:n},this.name=e.name||cs.DEFAULT_NAME,(!("auto"in e)||e.auto)&&setTimeout(()=>this.start())}get disposed(){return this._disposed}get frequency(){return this._frequency}set frequency(e){if(this.isDisposed||Fa.JSONExt.deepEqual(e,this.frequency||{}))return;let{backoff:t,interval:r,max:n}=e;if(r=Math.round(r),n=Math.round(n),typeof t=="number"&&t<1)throw new Error("Poll backoff growth factor must be at least 1");if((r<0||r>n)&&r!==si.NEVER)throw new Error("Poll interval must be between 0 and max");if(n>si.MAX_INTERVAL&&n!==si.NEVER)throw new Error(`Max interval must be less than ${si.MAX_INTERVAL}`);this._frequency={backoff:t,interval:r,max:n}}get isDisposed(){return this.state.phase==="disposed"}get standby(){return this._standby}set standby(e){this.isDisposed||this.standby===e||(this._standby=e)}get state(){return this._state}get tick(){return this._tick.promise}get ticked(){return this._ticked}async*[Symbol.asyncIterator](){for(;!this.isDisposed;)yield this.state,await this.tick.catch(()=>{})}dispose(){this.isDisposed||(this._state={...cs.DISPOSED_STATE,timestamp:new Date().getTime()},this._tick.promise.catch(e=>{}),this._tick.reject(new Error(`Poll (${this.name}
5) is disposed.`)),this._disposed.emit(void 0),X.clearData(this))}refresh(){return this.schedule({cancel:({phase:e})=>e==="refreshed",interval:si.IMMEDIATE,phase:"refreshed"})}async schedule(e={}){if(this.isDisposed||e.cancel&&e.cancel(this.state))return;let t=this._tick,r=new Fa.PromiseDelegate,n={interval:this.frequency.interval,payload:null,phase:"standby",timestamp:new Date().getTime(),...e};if(this._state=n,this._tick=r,clearTimeout(this._timeout),this._ticked.emit(this.state),t.resolve(this),await t.promise,n.interval===si.NEVER){this._timeout=void 0;return}let s=()=>{this.isDisposed||this.tick!==r.promise||this._execute()};this._timeout=setTimeout(s,n.interval)}start(){return this.schedule({cancel:({phase:e})=>e!=="constructed"&&e!=="standby"&&e!=="stopped",interval:si.IMMEDIATE,phase:"started"})}stop(){return this.schedule({cancel:({phase:e})=>e==="stopped",interval:si.NEVER,phase:"stopped"})}get hidden(){return cs.hidden}_execute(){let e=typeof this.standby=="function"?this.standby():this.standby;if(e==="never"?e=!1:e==="when-hidden"&&(this.hidden?e=++this._lingered>this._linger:(this._lingered=0,e=!1)),e){this.schedule();return}let t=this.tick;this._factory(this.state).then(r=>{this.isDisposed||this.tick!==t||this.schedule({payload:r,phase:this.state.phase==="rejected"?"reconnected":"resolved"})}).catch(r=>{this.isDisposed||this.tick!==t||this.schedule({interval:cs.sleep(this.frequency,this.state),payload:r,phase:"rejected"})})}};(function(i){i.IMMEDIATE=0,i.MAX_INTERVAL=2147483647,i.NEVER=1/0})(si||(si={}));(function(i){i.DEFAULT_BACKOFF=3,i.DEFAULT_FREQUENCY={backoff:!0,interval:1e3,max:30*1e3},i.DEFAULT_LINGER=1,i.DEFAULT_NAME="unknown",i.DEFAULT_STANDBY="when-hidden",i.DEFAULT_STATE={interval:si.NEVER,payload:null,phase:"constructed",timestamp:new Date(0).getTime()},i.DISPOSED_STATE={interval:si.NEVER,payload:null,phase:"disposed",timestamp:new Date(0).getTime()};function e(r,n){let{backoff:s,interval:o,max:a}=r;if(o===si.NEVER)return o;let l=s===!0?i.DEFAULT_BACKOFF:s===!1?1:s,u=t(o,n.interval*l);return Math.min(a,u)}i.sleep=e,i.hidden=(()=>typeof document>"u"?!1:(document.addEventListener("visibilitychange",()=>{i.hidden=document.visibilityState==="hidden"}),document.addEventListener("pagehide",()=>{i.hidden=document.visibilityState==="hidden"}),document.visibilityState==="hidden"))();function t(r,n){return r=Math.ceil(r),n=Math.floor(n),Math.floor(Math.random()*(n-r+1))+r}})(cs||(cs={}));Eh=class{constructor(e,t=500){this.args=void 0,this.payload=null,this.limit=t,this.poll=new si({auto:!1,factory:async()=>{let{args:r}=this;return this.args=void 0,e(...r)},frequency:{backoff:!1,interval:si.NEVER,max:si.NEVER},standby:"never"}),this.payload=new Fa.PromiseDelegate,this.poll.ticked.connect((r,n)=>{let{payload:s}=this;if(n.phase==="resolved"){this.payload=new Fa.PromiseDelegate,s.resolve(n.payload);return}if(n.phase==="rejected"||n.phase==="stopped"){this.payload=new Fa.PromiseDelegate,s.promise.catch(o=>{}),s.reject(n.payload);return}},this)}get isDisposed(){return this.payload===null}dispose(){this.isDisposed||(this.args=void 0,this.payload=null,this.poll.dispose())}async stop(){return this.poll.stop()}},C_=class extends Eh{invoke(...e){return this.args=e,this.poll.schedule({interval:this.limit,phase:"invoked"}),this.payload.promise}},Xl=class extends Eh{constructor(e,t){super(e,typeof t=="number"?t:t&&t.limit),this._trailing=!1,typeof t!="number"&&t&&t.edge==="trailing"&&(this._trailing=!0),this._interval=this._trailing?this.limit:si.IMMEDIATE}invoke(...e){let t=this.poll.state.phase!=="invoked";return(t||this._trailing)&&(this.args=e),t&&this.poll.schedule({interval:this._interval,phase:"invoked"}),this.payload.promise}}});var M_=D(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0});Hm.EventManager=void 0;var o8=Ii(),Qie=(Fo(),Ot(Jl)),a8=(Qe(),Ot(ar)),l8=Ir(),u8="api/events",I_=class{constructor(e={}){var t;this._socket=null,this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:l8.ServerConnection.makeSettings(),this._poll=new Qie.Poll({factory:()=>this._subscribe()}),this._stream=new a8.Stream(this),this._poll.start()}get isDisposed(){return this._poll.isDisposed}get stream(){return this._stream}dispose(){if(this.isDisposed)return;this._poll.dispose();let e=this._socket;e&&(this._socket=null,e.onopen=()=>{},e.onerror=()=>{},e.onmessage=()=>{},e.onclose=()=>{},e.close()),a8.Signal.clearData(this),this._stream.stop()}async emit(e){let{serverSettings:t}=this,{baseUrl:r}=t,{makeRequest:n,ResponseError:s}=l8.ServerConnection,o=o8.URLExt.join(r,u8),a={body:JSON.stringify(e),method:"POST"},l=await n(o,a,t);if(l.status!==204)throw new s(l)}_subscribe(){return new Promise((e,t)=>
5{if(this.isDisposed)return;let{appendToken:r,token:n,WebSocket:s,wsUrl:o}=this.serverSettings,a=o8.URLExt.join(o,u8,"subscribe");r&&n!==""&&(a+=`?token=${encodeURIComponent(n)}`);let l=this._socket=new s(a),u=this._stream;l.onclose=()=>t(new Error("EventManager socket closed")),l.onmessage=c=>c.data&&u.emit(JSON.parse(c.data))})}};Hm.EventManager=I_});var d8=D(c8=>{"use strict";Object.defineProperty(c8,"__esModule",{value:!0})});var jm=D(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.validateModels=Pa.validateModel=Pa.validateMessage=void 0;var Zl=Mh(),h8=["username","version","session","msg_id","msg_type"],ere={stream:{name:"string",text:"string"},display_data:{data:"object",metadata:"object"},execute_input:{code:"string",execution_count:"number"},execute_result:{execution_count:"number",data:"object",metadata:"object"},error:{ename:"string",evalue:"string",traceback:"object"},status:{execution_state:["string",["starting","idle","busy","restarting","dead"]]},clear_output:{wait:"boolean"},comm_open:{comm_id:"string",target_name:"string",data:"object"},comm_msg:{comm_id:"string",data:"object"},comm_close:{comm_id:"string"},shutdown_reply:{restart:"boolean"}};function tre(i){for(let e=0;e<h8.length;e++)(0,Zl.validateProperty)(i,h8[e],"string")}function ire(i){(0,Zl.validateProperty)(i,"metadata","object"),(0,Zl.validateProperty)(i,"content","object"),(0,Zl.validateProperty)(i,"channel","string"),tre(i.header),i.channel==="iopub"&&rre(i)}Pa.validateMessage=ire;function rre(i){if(i.channel==="iopub"){let e=ere[i.header.msg_type];if(e===void 0)return;let t=Object.keys(e),r=i.content;for(let n=0;n<t.length;n++){let s=e[t[n]];Array.isArray(s)||(s=[s]),(0,Zl.validateProperty)(r,t[n],...s)}}}function f8(i){(0,Zl.validateProperty)(i,"name","string"),(0,Zl.validateProperty)(i,"id","string")}Pa.validateModel=f8;function nre(i){if(!Array.isArray(i))throw new Error("Invalid kernel list");i.forEach(e=>f8(e))}Pa.validateModels=nre});var Um=D(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.getKernelModel=Xt.shutdownKernel=Xt.interruptKernel=Xt.restartKernel=Xt.startNew=Xt.listRunning=Xt.KERNEL_SERVICE_URL=void 0;var Bi=Ir(),wc=Ii(),Vm=jm();Xt.KERNEL_SERVICE_URL="api/kernels";async function sre(i=Bi.ServerConnection.makeSettings()){let e=wc.URLExt.join(i.baseUrl,Xt.KERNEL_SERVICE_URL),t=await Bi.ServerConnection.makeRequest(e,{},i);if(t.status!==200)throw await Bi.ServerConnection.ResponseError.create(t);let r=await t.json();return(0,Vm.validateModels)(r),r}Xt.listRunning=sre;async function ore(i={},e=Bi.ServerConnection.makeSettings()){let t=wc.URLExt.join(e.baseUrl,Xt.KERNEL_SERVICE_URL),r={method:"POST",body:JSON.stringify(i)},n=await Bi.ServerConnection.makeRequest(t,r,e);if(n.status!==201)throw await Bi.ServerConnection.ResponseError.create(n);let s=await n.json();return(0,Vm.validateModel)(s),s}Xt.startNew=ore;async function are(i,e=Bi.ServerConnection.makeSettings()){let t=wc.URLExt.join(e.baseUrl,Xt.KERNEL_SERVICE_URL,encodeURIComponent(i),"restart"),r={method:"POST"},n=await Bi.ServerConnection.makeRequest(t,r,e);if(n.status!==200)throw await Bi.ServerConnection.ResponseError.create(n);let s=await n.json();(0,Vm.validateModel)(s)}Xt.restartKernel=are;async function lre(i,e=Bi.ServerConnection.makeSettings()){let t=wc.URLExt.join(e.baseUrl,Xt.KERNEL_SERVICE_URL,encodeURIComponent(i),"interrupt"),r={method:"POST"},n=await Bi.ServerConnection.makeRequest(t,r,e);if(n.status!==204)throw await Bi.ServerConnection.ResponseError.create(n)}Xt.interruptKernel=lre;async function ure(i,e=Bi.ServerConnection.makeSettings()){let t=wc.URLExt.join(e.baseUrl,Xt.KERNEL_SERVICE_URL,encodeURIComponent(i)),r={method:"DELETE"},n=await Bi.ServerConnection.makeRequest(t,r,e);if(n.status===404){let s=`The kernel "${i}" does not exist on the server`;console.warn(s)}else if(n.status!==204)throw await Bi.ServerConnection.ResponseError.create(n)}Xt.shutdownKernel=ure;async function cre(i,e=Bi.ServerConnection.makeSettings()){let t=wc.URLExt.join(e.baseUrl,Xt.KERNEL_SERVICE_URL,encodeURIComponent(i)),r=await Bi.ServerConnection.makeRequest
5(t,{},e);if(r.status===404)return;if(r.status!==200)throw await Bi.ServerConnection.ResponseError.create(r);let n=await r.json();return(0,Vm.validateModel)(n),n}Xt.getKernelModel=cre});var T_={};Ul(T_,{DisposableDelegate:()=>Mr,DisposableSet:()=>Na,ObservableDisposableDelegate:()=>E_,ObservableDisposableSet:()=>Th});var Mr,E_,Na,Th,Fn=w(()=>{Qe();Mr=class{constructor(e){this._fn=e}get isDisposed(){return!this._fn}dispose(){if(!this._fn)return;let e=this._fn;this._fn=null,e()}},E_=class extends Mr{constructor(){super(...arguments),this._disposed=new X(this)}get disposed(){return this._disposed}dispose(){this.isDisposed||(super.dispose(),this._disposed.emit(void 0),X.clearData(this))}},Na=class{constructor(){this._isDisposed=!1,this._items=new Set}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,this._items.forEach(e=>{e.dispose()}),this._items.clear())}contains(e){return this._items.has(e)}add(e){this._items.add(e)}remove(e){this._items.delete(e)}clear(){this._items.clear()}};(function(i){function e(t){let r=new i;for(let n of t)r.add(n);return r}i.from=e})(Na||(Na={}));Th=class extends Na{constructor(){super(...arguments),this._disposed=new X(this)}get disposed(){return this._disposed}dispose(){this.isDisposed||(super.dispose(),this._disposed.emit(void 0),X.clearData(this))}};(function(i){function e(t){let r=new i;for(let n of t)r.add(n);return r}i.from=e})(Th||(Th={}))});var p8=D(js=>{"use strict";var dre=js&&js.__createBinding||(Object.create?function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}:function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]}),hre=js&&js.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),fre=js&&js.__importStar||function(i){if(i&&i.__esModule)return i;var e={};if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&dre(e,i,t);return hre(e,i),e};Object.defineProperty(js,"__esModule",{value:!0});js.CommHandler=void 0;var pre=(Fn(),Ot(T_)),Wm=fre(vc()),k_=class extends pre.DisposableDelegate{constructor(e,t,r,n){super(n),this._target="",this._id="",this._id=t,this._target=e,this._kernel=r}get commId(){return this._id}get targetName(){return this._target}get onClose(){return this._onClose}set onClose(e){this._onClose=e}get onMsg(){return this._onMsg}set onMsg(e){this._onMsg=e}open(e,t,r=[]){if(this.isDisposed||this._kernel.isDisposed)throw new Error("Cannot open");let n=Wm.createMessage({msgType:"comm_open",channel:"shell",username:this._kernel.username,session:this._kernel.clientId,content:{comm_id:this._id,target_name:this._target,data:e??{}},metadata:t,buffers:r});return this._kernel.sendShellMessage(n,!1,!0)}send(e,t,r=[],n=!0){if(this.isDisposed||this._kernel.isDisposed)throw new Error("Cannot send");let s=Wm.createMessage({msgType:"comm_msg",channel:"shell",username:this._kernel.username,session:this._kernel.clientId,content:{comm_id:this._id,data:e},metadata:t,buffers:r});return this._kernel.sendShellMessage(s,!1,n)}close(e,t,r=[]){if(this.isDisposed||this._kernel.isDisposed)throw new Error("Cannot close");let n=Wm.createMessage({msgType:"comm_close",channel:"shell",username:this._kernel.username,session:this._kernel.clientId,content:{comm_id:this._id,data:e??{}},metadata:t,buffers:r}),s=this._kernel.sendShellMessage(n,!1,!0),o=this._onClose;if(o){let a=Wm.createMessage({msgType:"comm_close",channel:"iopub",username:this._kernel.username,session:this._kernel.clientId,content:{comm_id:this._id,data:e??{}},metadata:t,buffers:r});o(a)}return this.dispose(),s}};js.CommHandler=k_});var g8=D(Vr=>{"use strict";var mre=Vr&&Vr.__createBinding||(Object.create?function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}:function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]}),gre=Vr&&Vr.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),bre=Vr&&Vr.__importStar||function(i){if(i&&i.__esModule)return i;var e={};
5if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&mre(e,i,t);return gre(e,i),e};Object.defineProperty(Vr,"__esModule",{value:!0});Vr.KernelShellFutureHandler=Vr.KernelControlFutureHandler=Vr.KernelFutureHandler=void 0;var m8=Ze(),vre=(Fn(),Ot(T_)),_re=bre(vc()),kh=class extends vre.DisposableDelegate{constructor(e,t,r,n,s){super(e),this._status=0,this._stdin=Qi.noOp,this._iopub=Qi.noOp,this._reply=Qi.noOp,this._done=new m8.PromiseDelegate,this._hooks=new Qi.HookList,this._disposeOnDone=!0,this._msg=t,r||this._setFlag(Qi.KernelFutureFlag.GotReply),this._disposeOnDone=n,this._kernel=s}get msg(){return this._msg}get done(){return this._done.promise}get onReply(){return this._reply}set onReply(e){this._reply=e}get onIOPub(){return this._iopub}set onIOPub(e){this._iopub=e}get onStdin(){return this._stdin}set onStdin(e){this._stdin=e}registerMessageHook(e){if(this.isDisposed)throw new Error("Kernel future is disposed");this._hooks.add(e)}removeMessageHook(e){this.isDisposed||this._hooks.remove(e)}sendInputReply(e,t){this._kernel.sendInputReply(e,t)}dispose(){this._stdin=Qi.noOp,this._iopub=Qi.noOp,this._reply=Qi.noOp,this._hooks=null,this._testFlag(Qi.KernelFutureFlag.IsDone)||(this._done.promise.catch(()=>{}),this._done.reject(new Error(`Canceled future for ${this.msg.header.msg_type} message before replies were done`))),super.dispose()}async handleMsg(e){switch(e.channel){case"control":case"shell":e.channel===this.msg.channel&&e.parent_header.msg_id===this.msg.header.msg_id&&await this._handleReply(e);break;case"stdin":await this._handleStdin(e);break;case"iopub":await this._handleIOPub(e);break;default:break}}async _handleReply(e){let t=this._reply;t&&await t(e),this._replyMsg=e,this._setFlag(Qi.KernelFutureFlag.GotReply),this._testFlag(Qi.KernelFutureFlag.GotIdle)&&this._handleDone()}async _handleStdin(e){this._kernel.hasPendingInput=!0;let t=this._stdin;t&&await t(e)}async _handleIOPub(e){let t=await this._hooks.process(e),r=this._iopub;t&&r&&await r(e),_re.isStatusMsg(e)&&e.content.execution_state==="idle"&&(this._setFlag(Qi.KernelFutureFlag.GotIdle),this._testFlag(Qi.KernelFutureFlag.GotReply)&&this._handleDone())}_handleDone(){this._testFlag(Qi.KernelFutureFlag.IsDone)||(this._setFlag(Qi.KernelFutureFlag.IsDone),this._done.resolve(this._replyMsg),this._disposeOnDone&&this.dispose())}_testFlag(e){return(this._status&e)!==0}_setFlag(e){this._status|=e}};Vr.KernelFutureHandler=kh;var A_=class extends kh{};Vr.KernelControlFutureHandler=A_;var R_=class extends kh{};Vr.KernelShellFutureHandler=R_;var Qi;(function(i){i.noOp=()=>{};let e=(()=>typeof requestAnimationFrame=="function"?requestAnimationFrame:setImmediate)();class t{constructor(){this._hooks=[]}add(s){this.remove(s),this._hooks.push(s)}remove(s){let o=this._hooks.indexOf(s);o>=0&&(this._hooks[o]=null,this._scheduleCompact())}async process(s){await this._processing;let o=new m8.PromiseDelegate;this._processing=o.promise;let a;for(let l=this._hooks.length-1;l>=0;l--){let u=this._hooks[l];if(u!==null){try{a=await u(s)}catch(c){a=!0,console.error(c)}if(a===!1)return o.resolve(void 0),!1}}return o.resolve(void 0),!0}_scheduleCompact(){this._compactScheduled||(this._compactScheduled=!0,e(()=>{this._processing=this._processing.then(()=>{this._compactScheduled=!1,this._compact()})}))}_compact(){let s=0;for(let o=0,a=this._hooks.length;o<a;o++){let l=this._hooks[o];this._hooks[o]===null?s++:this._hooks[o-s]=l}this._hooks.length-=s}}i.HookList=t;let r;(function(n){n[n.GotReply=1]="GotReply",n[n.GotIdle=2]="GotIdle",n[n.IsDone=4]="IsDone",n[n.DisposeOnDone=8]="DisposeOnDone"})(r=i.KernelFutureFlag||(i.KernelFutureFlag={}))})(Qi||(Qi={}))});var v8=D(b8=>{"use strict";Object.defineProperty(b8,"__esModule",{value:!0})});var y8=D(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.validateSpecModels=Sc.validateSpecModel=void 0;var Ql=Mh();function _8(i){let e=i.spec;if(!e)throw new Error("Invalid kernel spec");(0,Ql.validateProperty)(i,"name","string"),(0,Ql.validateProperty)(i,"resources","object"),(0,Ql.validateProperty)(e,"language","string"),(0,Ql.validateProperty)(e,"display_name","string"),(0,Ql.validateProperty)(e,"argv","array");let t=null;e.hasOwnProperty("metadata")&&((0,Ql.validateProperty)(e,"metadata","object"),t=e.metadata);let r=null;return e.hasOwnProperty("env")&&((0,Ql.validateProperty)(e,"env","object"),r=e.env),{name:i.name,resources:i.resources,language:e.language,display_name:e.display_name,argv:e.argv,metadata:t,env:r}}Sc.validateSpecModel=_8;function yre(i){if(!i.hasOwnProperty("kernelspecs"))throw new Error("No kernelspecs found");let e=Object.keys(i.kernelspecs),t=Object.create(null),r=i.default;for(let n=0;n<e.length;n++){let s=i.kernelspecs[e[n]];try{t[e[n]]=_8(s)}catch{console.warn(`Removing errant kernel spec: ${e[n]}`)}}if(e=Object.keys(t),!e.length)throw new Error("No valid kernelspecs found");return(!r||typeof r!="string"||!(r in t))&&(r=e[0],console.warn(`Default kernel not found, using '${e[0]}'`)),{default:r,kernelspecs:t}}Sc.validateSpecModels=yre});var O_=D(Gm=>{"use strict";
5Object.defineProperty(Gm,"__esModule",{value:!0});Gm.getSpecs=void 0;var D_=Ir(),xre=y8(),wre=Ii(),Sre="api/kernelspecs";async function Cre(i=D_.ServerConnection.makeSettings()){let e=wre.URLExt.join(i.baseUrl,Sre),t=await D_.ServerConnection.makeRequest(e,{},i);if(t.status!==200)throw await D_.ServerConnection.ResponseError.create(t);let r=await t.json();return(0,xre.validateSpecModels)(r)}Gm.getSpecs=Cre});var w8=D(Vs=>{"use strict";var Ire=Vs&&Vs.__createBinding||(Object.create?function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}:function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]}),Mre=Vs&&Vs.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),Ere=Vs&&Vs.__importStar||function(i){if(i&&i.__esModule)return i;var e={};if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&Ire(e,i,t);return Mre(e,i),e};Object.defineProperty(Vs,"__esModule",{value:!0});Vs.KernelSpecManager=void 0;var Tre=Ze(),kre=(Fo(),Ot(Jl)),x8=(Qe(),Ot(ar)),Are=Ere(O_()),Rre=Yl(),L_=class extends Rre.BaseManager{constructor(e={}){var t;super(e),this._isReady=!1,this._connectionFailure=new x8.Signal(this),this._specs=null,this._specsChanged=new x8.Signal(this),this._ready=Promise.all([this.requestSpecs()]).then(r=>{}).catch(r=>{}).then(()=>{this.isDisposed||(this._isReady=!0)}),this._pollSpecs=new kre.Poll({auto:!1,factory:()=>this.requestSpecs(),frequency:{interval:61*1e3,backoff:!0,max:300*1e3},name:"@jupyterlab/services:KernelSpecManager#specs",standby:(t=e.standby)!==null&&t!==void 0?t:"when-hidden"}),this.ready.then(()=>{this._pollSpecs.start()})}get isReady(){return this._isReady}get ready(){return this._ready}get specs(){return this._specs}get specsChanged(){return this._specsChanged}get connectionFailure(){return this._connectionFailure}dispose(){this._pollSpecs.dispose(),super.dispose()}async refreshSpecs(){await this._pollSpecs.refresh(),await this._pollSpecs.tick}async requestSpecs(){let e=await Are.getSpecs(this.serverSettings);this.isDisposed||Tre.JSONExt.deepEqual(e,this._specs)||(this._specs=e,this._specsChanged.emit(e))}};Vs.KernelSpecManager=L_});var Km=D(Er=>{"use strict";var S8=Er&&Er.__createBinding||(Object.create?function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}:function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]}),Dre=Er&&Er.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),C8=Er&&Er.__importStar||function(i){if(i&&i.__esModule)return i;var e={};if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&S8(e,i,t);return Dre(e,i),e},Ore=Er&&Er.__exportStar||function(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&S8(e,i,t)};Object.defineProperty(Er,"__esModule",{value:!0});Er.KernelSpecAPI=Er.KernelSpec=void 0;var Lre=C8(v8());Er.KernelSpec=Lre;var $re=C8(O_());Er.KernelSpecAPI=$re;Ore(w8(),Er)});var F_=D(Us=>{"use strict";var Fre=Us&&Us.__createBinding||(Object.create?function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}:function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]}),Pre=Us&&Us.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),$_=Us&&Us.__importStar||function(i){if(i&&i.__esModule)return i;var e={};if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&Fre(e,i,t);return Pre(e,i),e};Object.defineProperty(Us,"__esModule",{value:!0});Us.KernelConnection=void 0;var I8=Ii(),za=Ze(),Ba=(Qe(),Ot(ar)),M8=qs(),E8=p8(),Ur=$_(vc()),T8=g8(),Nre=$_(jm()),zre=Km(),Ah=$_(Um()),Bre=3e3,Cc="_RESTARTING_",qre="",Rh=class{constructor(e){var t,r,n,s;this._createSocket=(o=!0)=>{this._errorIfDisposed(),this._clearSocket(),this._updateConnectionStatus("connecting");let a=this.serverSettings,l=I8.URLExt.join(a.wsUrl,Ah.KERNEL_SERVICE_URL,encodeURIComponent(this._id)),u=l.replace(/^((?:\w+:)?\/\/)(?:[^@\/]+@)/,"$1");console.debug(`Starting WebSocket: ${u}`);let c=I8.URLExt.join(l,"channels?session_id="+encodeURIComponent(this._clientId)),d=a.token;a.appendToken&&d!==""&&(c=c+`&token=${encodeURIComponent(d)}`);let f=o?this._supportedProtocols:[];this._ws=new a.WebSocket(c,f),this._ws.binaryType="arraybuffer";let m=!1,b=async x=>{var M,T;if(!this._isDisposed){this._reason="",this._model=void 0;try{let E=await Ah.getKernelModel(this._id,a);this._model=E,E?.execution_state==="dead"?this._updateStatus("dead"):this._onWSClose(x)}
5catch(E){if(E instanceof M8.ServerConnection.NetworkError||((M=E.response)===null||M===void 0?void 0:M.status)===503||((T=E.response)===null||T===void 0?void 0:T.status)===424){let A=Pn.getRandomIntInclusive(10,30)*1e3;setTimeout(b,A,x)}else this._reason="Kernel died unexpectedly",this._updateStatus("dead")}}},y=async x=>{m||(m=!0,await b(x))};this._ws.onmessage=this._onWSMessage,this._ws.onopen=this._onWSOpen,this._ws.onclose=y,this._ws.onerror=y},this._onWSOpen=o=>{if(this._ws.protocol!==""&&!this._supportedProtocols.includes(this._ws.protocol))throw console.log("Server selected unknown kernel wire protocol:",this._ws.protocol),this._updateStatus("dead"),new Error(`Unknown kernel wire protocol: ${this._ws.protocol}`);this._selectedProtocol=this._ws.protocol,this._ws.onclose=this._onWSClose,this._ws.onerror=this._onWSClose,this._updateConnectionStatus("connected")},this._onWSMessage=o=>{let a;try{a=this.serverSettings.serializer.deserialize(o.data,this._ws.protocol),Nre.validateMessage(a)}catch(l){throw l.message=`Kernel message validation error: ${l.message}`,l}this._kernelSession=a.header.session,this._msgChain=this._msgChain.then(()=>this._handleMessage(a)).catch(l=>{l.message.startsWith("Canceled future for ")&&console.error(l)}),this._anyMessage.emit({msg:a,direction:"recv"})},this._onWSClose=o=>{this.isDisposed||this._reconnect()},this._id="",this._name="",this._status="unknown",this._connectionStatus="connecting",this._kernelSession="",this._isDisposed=!1,this._ws=null,this._username="",this._reconnectLimit=7,this._reconnectAttempt=0,this._reconnectTimeout=null,this._supportedProtocols=Object.values(Ur.supportedKernelWebSocketProtocols),this._selectedProtocol="",this._futures=new Map,this._comms=new Map,this._targetRegistry=Object.create(null),this._info=new za.PromiseDelegate,this._pendingMessages=[],this._statusChanged=new Ba.Signal(this),this._connectionStatusChanged=new Ba.Signal(this),this._disposed=new Ba.Signal(this),this._iopubMessage=new Ba.Signal(this),this._anyMessage=new Ba.Signal(this),this._pendingInput=new Ba.Signal(this),this._unhandledMessage=new Ba.Signal(this),this._displayIdToParentIds=new Map,this._msgIdToDisplayIds=new Map,this._msgChain=Promise.resolve(),this._hasPendingInput=!1,this._reason="",this._noOp=()=>{},this._name=e.model.name,this._id=e.model.id,this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:M8.ServerConnection.makeSettings(),this._clientId=(r=e.clientId)!==null&&r!==void 0?r:za.UUID.uuid4(),this._username=(n=e.username)!==null&&n!==void 0?n:"",this.handleComms=(s=e.handleComms)!==null&&s!==void 0?s:!0,this._createSocket()}get disposed(){return this._disposed}get statusChanged(){return this._statusChanged}get connectionStatusChanged(){return this._connectionStatusChanged}get iopubMessage(){return this._iopubMessage}get unhandledMessage(){return this._unhandledMessage}get model(){return this._model||{id:this.id,name:this.name,reason:this._reason}}get anyMessage(){return this._anyMessage}get pendingInput(){return this._pendingInput}get id(){return this._id}get name(){return this._name}get username(){return this._username}get clientId(){return this._clientId}get status(){return this._status}get connectionStatus(){return this._connectionStatus}get isDisposed(){return this._isDisposed}get info(){return this._info.promise}get spec(){return this._specPromise?this._specPromise:(this._specPromise=zre.KernelSpecAPI.getSpecs(this.serverSettings).then(e=>e.kernelspecs[this._name]),this._specPromise)}clone(e={}){return new Rh({model:this.model,username:this.username,serverSettings:this.serverSettings,handleComms:!1,...e})}dispose(){this.isDisposed||(this._isDisposed=!0,this._disposed.emit(),this._updateConnectionStatus("disconnected"),this._clearKernelState(),this._pendingMessages=[],this._clearSocket(),Ba.Signal.clearData(this))}sendShellMessage(e,t=!1,r=!0){return this._sendKernelShellControl(T8.KernelShellFutureHandler,e,t,r)}sendControlMessage(e,t=!1,r=!0){return this._sendKernelShellControl(T8.KernelControlFutureHandler,e,t,r)}_sendKernelShellControl(e,t,r=!1,n=!0){this._sendMessage(t),this._anyMessage.emit({msg:t,direction:"send"});let s=new e(()=>{let o=t.header.msg_id;this._futures.delete(o);let a=this._msgIdToDisplayIds.get(o);
5a&&(a.forEach(l=>{let u=this._displayIdToParentIds.get(l);if(u){let c=u.indexOf(o);if(c===-1)return;u.length===1?this._displayIdToParentIds.delete(l):(u.splice(c,1),this._displayIdToParentIds.set(l,u))}}),this._msgIdToDisplayIds.delete(o))},t,r,n,this);return this._futures.set(t.header.msg_id,s),s}_sendMessage(e,t=!0){if(this.status==="dead")throw new Error("Kernel is dead");if((this._kernelSession===qre||this._kernelSession===Cc)&&Ur.isInfoRequestMsg(e))if(this.connectionStatus==="connected"){this._ws.send(this.serverSettings.serializer.serialize(e,this._ws.protocol));return}else throw new Error("Could not send message: status is not connected");if(t&&this._pendingMessages.length>0){this._pendingMessages.push(e);return}if(this.connectionStatus==="connected"&&this._kernelSession!==Cc)this._ws.send(this.serverSettings.serializer.serialize(e,this._ws.protocol));else if(t)this._pendingMessages.push(e);else throw new Error("Could not send message")}async interrupt(){if(this.hasPendingInput=!1,this.status==="dead")throw new Error("Kernel is dead");return Ah.interruptKernel(this.id,this.serverSettings)}
5async restart(){if(this.status==="dead")throw new Error("Kernel is dead");this._updateStatus("restarting"),this._clearKernelState(),this._kernelSession=Cc,await Ah.restartKernel(this.id,this.serverSettings),await this.reconnect(),this.hasPendingInput=!1}reconnect(){this._errorIfDisposed();let e=new za.PromiseDelegate,t=(r,n)=>{n==="connected"?(e.resolve(),this.connectionStatusChanged.disconnect(t,this)):n==="disconnected"&&(e.reject(new Error("Kernel connection disconnected")),this.connectionStatusChanged.disconnect(t,this))};return this.connectionStatusChanged.connect(t,this),this._reconnectAttempt=0,this._reconnect(),e.promise}async shutdown(){this.status!=="dead"&&await Ah.shutdownKernel(this.id,this.serverSettings),this.handleShutdown()}handleShutdown(){this._updateStatus("dead"),this.dispose()}async requestKernelInfo(){let e=Ur.createMessage({msgType:"kernel_info_request",channel:"shell",username:this._username,session:this._clientId,content:{}}),t;try{t=await Pn.handleShellMessage(this,e)}catch(r){if(this.isDisposed)return;throw r}if(this._errorIfDisposed(),!!t)return t.content.status===void 0&&(t.content.status="ok"),t.content.status!=="ok"?(this._info.reject("Kernel info reply errored"),t):(this._info.resolve(t.content),this._kernelSession=t.header.session,t)}requestComplete(e){let t=Ur.createMessage({msgType:"complete_request",channel:"shell",username:this._username,session:this._clientId,content:e});return Pn.handleShellMessage(this,t)}requestInspect(e){let t=Ur.createMessage({msgType:"inspect_request",channel:"shell",username:this._username,session:this._clientId,content:e});return Pn.handleShellMessage(this,t)}requestHistory(e){let t=Ur.createMessage({msgType:"history_request",channel:"shell",username:this._username,session:this._clientId,content:e});return Pn.handleShellMessage(this,t)}requestExecute(e,t=!0,r){let n={silent:!1,store_history:!0,user_expressions:{},allow_stdin:!0,stop_on_error:!1},s=Ur.createMessage({msgType:"execute_request",channel:"shell",username:this._username,session:this._clientId,content:{...n,...e},metadata:r});return this.sendShellMessage(s,!0,t)}requestDebug(e,t=!0){let r=Ur.createMessage({msgType:"debug_request",channel:"control",username:this._username,session:this._clientId,content:e});return this.sendControlMessage(r,!0,t)}requestIsComplete(e){let t=Ur.createMessage({msgType:"is_complete_request",channel:"shell",username:this._username,session:this._clientId,content:e});return Pn.handleShellMessage(this,t)}requestCommInfo(e){let t=Ur.createMessage({msgType:"comm_info_request",channel:"shell",username:this._username,session:this._clientId,content:e});return Pn.handleShellMessage(this,t)}sendInputReply(e,t){let r=Ur.createMessage({msgType:"input_reply",channel:"stdin",username:this._username,session:this._clientId,content:e});r.parent_header=t,this._sendMessage(r),this._anyMessage.emit({msg:r,direction:"send"}),this.hasPendingInput=!1}createComm(e,t=za.UUID.uuid4()){if(!this.handleComms)throw new Error("Comms are disabled on this kernel connection");if(this._comms.has(t))throw new Error("Comm is already created");let r=new E8.CommHandler(e,t,this,()=>{this._unregisterComm(t)});return this._comms.set(t,r),r}hasComm(e){return this._comms.has(e)}registerCommTarget(e,t){this.handleComms&&(this._targetRegistry[e]=t)}removeCommTarget(e,t){this.handleComms&&!this.isDisposed&&this._targetRegistry[e]===t&&delete this._targetRegistry[e]}registerMessageHook(e,t){var r;let n=(r=this._futures)===null||r===void 0?void 0:r.get(e);n&&n.registerMessageHook(t)}removeMessageHook(e,t){var r;let n=(r=this._futures)===null||r===void 0?void 0:r.get(e);n&&n.removeMessageHook(t)}removeInputGuard(){this.hasPendingInput=!1}async _handleDisplayId(e,t){var r,n;let s=t.parent_header.msg_id,o=this._displayIdToParentIds.get(e);if(o){let l={header:za.JSONExt.deepCopy(t.header),parent_header:za.JSONExt.deepCopy(t.parent_header),metadata:za.JSONExt.deepCopy(t.metadata),content:za.JSONExt.deepCopy(t.content),channel:t.channel,buffers:t.buffers?t.buffers.slice():[]};l.header.msg_type="update_display_data",await Promise.all(o.map(async u=>{let c=this._futures&&this._futures.get(u);c&&await c.handleMsg(l)}))}if(t.header.msg_type==="update_display_data")return!0;o=(r=this._displayIdToParentIds.get(e))!==null&&r!==void 0?r:[],o.indexOf(s)===-1&&o.push(s),this._displayIdToParentIds.set(e,o);let a=(n=this._msgIdToDisplayIds.get(s))!==null&&n!==void 0?n:[];return a.indexOf(s)===-1&&a.push(s),this._msgIdToDisplayIds.set(s,a),!1}_clearSocket(){this._ws!==null&&(this._ws.onopen=this._noOp,this._ws.onclose
5=this._noOp,this._ws.onerror=this._noOp,this._ws.onmessage=this._noOp,this._ws.close(),this._ws=null)}_updateStatus(e){this._status===e||this._status==="dead"||(this._status=e,Pn.logKernelStatus(this),this._statusChanged.emit(e),e==="dead"&&this.dispose())}_sendPending(){for(;this.connectionStatus==="connected"&&this._kernelSession!==Cc&&this._pendingMessages.length>0;)this._sendMessage(this._pendingMessages[0],!1),this._pendingMessages.shift()}_clearKernelState(){this._kernelSession="",this._pendingMessages=[],this._futures.forEach(e=>{e.dispose()}),this._comms.forEach(e=>{e.dispose()}),this._msgChain=Promise.resolve(),this._futures=new Map,this._comms=new Map,this._displayIdToParentIds.clear(),this._msgIdToDisplayIds.clear()}_assertCurrentMessage(e){if(this._errorIfDisposed(),e.header.session!==this._kernelSession)throw new Error(`Canceling handling of old message: ${e.header.msg_type}`)}async _handleCommOpen(e){this._assertCurrentMessage(e);let t=e.content,r=new E8.CommHandler(t.target_name,t.comm_id,this,()=>{this._unregisterComm(t.comm_id)});this._comms.set(t.comm_id,r);try{await(await Pn.loadObject(t.target_name,t.target_module,this._targetRegistry))(r,e)}catch(n){throw r.close(),console.error("Exception opening new comm"),n}}async _handleCommClose(e){this._assertCurrentMessage(e);let t=e.content,r=this._comms.get(t.comm_id);if(!r){console.error("Comm not found for comm id "+t.comm_id);return}this._unregisterComm(r.commId);let n=r.onClose;n&&await n(e),r.dispose()}async _handleCommMsg(e){this._assertCurrentMessage(e);let t=e.content,r=this._comms.get(t.comm_id);if(!r)return;let n=r.onMsg;n&&await n(e)}_unregisterComm(e){this._comms.delete(e)}_updateConnectionStatus(e){if(this._connectionStatus!==e){if(this._connectionStatus=e,e!=="connecting"&&(this._reconnectAttempt=0,clearTimeout(this._reconnectTimeout)),this.status!=="dead")if(e==="connected"){let t=this._kernelSession===Cc,r=this.requestKernelInfo(),n=!1,s=()=>{n||(n=!0,t&&this._kernelSession===Cc&&(this._kernelSession=""),clearTimeout(o),this._pendingMessages.length>0&&this._sendPending())};r.then(s);let o=setTimeout(s,Bre)}else this._updateStatus("unknown");this._connectionStatusChanged.emit(e)}}async _handleMessage(e){var t,r;let n=!1;if(e.parent_header&&e.channel==="iopub"&&(Ur.isDisplayDataMsg(e)||Ur.isUpdateDisplayDataMsg(e)||Ur.isExecuteResultMsg(e))){let o=((t=e.content.transient)!==null&&t!==void 0?t:{}).display_id;o&&(n=await this._handleDisplayId(o,e),this._assertCurrentMessage(e))}if(!n&&e.parent_header){let s=e.parent_header,o=(r=this._futures)===null||r===void 0?void 0:r.get(s.msg_id);if(o)await o.handleMsg(e),this._assertCurrentMessage(e);else{let a=s.session===this.clientId;e.channel!=="iopub"&&a&&this._unhandledMessage.emit(e)}}if(e.channel==="iopub"){switch(e.header.msg_type){case"status":{let s=e.content.execution_state;s==="restarting"&&Promise.resolve().then(async()=>{this._updateStatus("autorestarting"),this._clearKernelState(),await this.reconnect()}),this._updateStatus(s);break}case"comm_open":this.handleComms&&await this._handleCommOpen(e);break;case"comm_msg":this.handleComms&&await this._handleCommMsg(e);break;case"comm_close":this.handleComms&&await this._handleCommClose(e);break;default:break}this.isDisposed||(this._assertCurrentMessage(e),this._iopubMessage.emit(e))}}_reconnect(){if(this._errorIfDisposed(),clearTimeout(this._reconnectTimeout),this._reconnectAttempt<this._reconnectLimit){this._updateConnectionStatus("connecting");let e=Pn.getRandomIntInclusive(0,1e3*(Math.pow(2,this._reconnectAttempt)-1));console.warn(`Connection lost, reconnecting in ${Math.floor(e/1e3)} seconds.`);let t=this._selectedProtocol!=="";this._reconnectTimeout=setTimeout(this._createSocket,e,t),this._reconnectAttempt+=1}else this._updateConnectionStatus("disconnected");this._clearSocket()}_errorIfDisposed(){if(this.isDisposed)throw new Error("Kernel connection is disposed")}get hasPendingInput(){return this._hasPendingInput}set hasPendingInput(e){this._hasPendingInput=e,this._pendingInput.emit(e)}};Us.KernelConnection=Rh;var Pn;(function(i){function e(s){switch(s.status){case"idle":case"busy":case"unknown":return;default:console.debug(`Kernel: ${s.status} (${s.id})`);break}}i.logKernelStatus=e;async function t(s,o){return s.sendShellMessage(o,!0).done}i.handleShellMessage=t;function r(s,o,a){return new Promise((l,u)=>{if(o){if(typeof requirejs>"u")throw new Error("requirejs not found");requirejs([o],c=>{if(c[s]===void 0){let d=`Object '${s}' not found in module '${o}'`;u(new Error(d))}else l(c[s])},u)}else a?.[s]?l(a[s]):u(new Error(`Object '${s}' not found in registry`))})}i.loadObject=r;function n(s,o){return s=Math.ceil(s),o=Math.floor(o),Math.floor(Math.random()*(o-s+1))+s}i.getRandomIntInclusive=n})(Pn||(Pn={}))});var A8=D(Oh=>{"use strict";Object.defineProperty(Oh,"__esModule",{value:!0});Oh.KernelManager=void 0;var Hre=(Fo(),Ot(Jl)),k8=(Qe(),Ot(ar)),jre=qs(),Vre=Yl(),Ym=Um(),Ure=F_(),Dh=class extends Vre.BaseManager{constructor(e={}){var t;super(e),this._isReady=!1,this._kernelConnections=new Set,this._models=new Map,this._runningChanged=new k8.Signal(this),this._connectionFailure=new k8.Signal(this),this._pollModels=new Hre.Poll({auto:!1,factory:()=>this.requestRunning(),frequency:{interval:10*1e3,backoff:!0,max:300*1e3},name:"@jupyterlab/services:KernelManager#models",standby:(t=e.standby)!==null&&t!==void 0?t:"when-hidden"}),this._ready=(async()=>{await this._pollModels.start(),await this._pollModels.tick,this._isReady=!0})()}get isReady(){return this._isReady}get ready(){return this._ready}get runningChanged(){return this._runningChanged}get connectionFailure(){return this._connectionFailure}dispose(){this.isDisposed||(this._models.clear(),this._kernelConnections.forEach(e
5=>e.dispose()),this._pollModels.dispose(),super.dispose())}connectTo(e){var t;let{id:r}=e.model,n=(t=e.handleComms)!==null&&t!==void 0?t:!0;if(e.handleComms===void 0){for(let o of this._kernelConnections)if(o.id===r&&o.handleComms){n=!1;break}}let s=new Ure.KernelConnection({handleComms:n,...e,serverSettings:this.serverSettings});return this._onStarted(s),this._models.has(r)||this.refreshRunning().catch(()=>{}),s}running(){return this._models.values()}async refreshRunning(){await this._pollModels.refresh(),await this._pollModels.tick}async startNew(e={},t={}){let r=await(0,Ym.startNew)(e,this.serverSettings);return this.connectTo({...t,model:r})}async shutdown(e){await(0,Ym.shutdownKernel)(e,this.serverSettings),await this.refreshRunning()}async shutdownAll(){await this.refreshRunning(),await Promise.all([...this._models.keys()].map(e=>(0,Ym.shutdownKernel)(e,this.serverSettings))),await this.refreshRunning()}async findById(e){return this._models.has(e)?this._models.get(e):(await this.refreshRunning(),this._models.get(e))}async requestRunning(){var e,t;let r;try{r=await(0,Ym.listRunning)(this.serverSettings)}catch(n){throw(n instanceof jre.ServerConnection.NetworkError||((e=n.response)===null||e===void 0?void 0:e.status)===503||((t=n.response)===null||t===void 0?void 0:t.status)===424)&&this._connectionFailure.emit(n),n}this.isDisposed||this._models.size===r.length&&r.every(n=>{let s=this._models.get(n.id);return s?s.connections===n.connections&&s.execution_state===n.execution_state&&s.last_activity===n.last_activity&&s.name===n.name&&s.reason===n.reason&&s.traceback===n.traceback:!1})||(this._models=new Map(r.map(n=>[n.id,n])),this._kernelConnections.forEach(n=>{this._models.has(n.id)||n.handleShutdown()}),this._runningChanged.emit(r))}_onStarted(e){this._kernelConnections.add(e),e.statusChanged.connect(this._onStatusChanged,this),e.disposed.connect(this._onDisposed,this)}_onDisposed(e){this._kernelConnections.delete(e),this.refreshRunning().catch(()=>{})}_onStatusChanged(e,t){t==="dead"&&this.refreshRunning().catch(()=>{})}};Oh.KernelManager=Dh;(function(i){class e extends i{constructor(){super(...arguments),this._readyPromise=new Promise(()=>{})}get isActive(){return!1}get parentReady(){return super.ready}async startNew(r={},n={}){return Promise.reject(new Error("Not implemented in no-op Kernel Manager"))}connectTo(r){throw new Error("Not implemented in no-op Kernel Manager")}async shutdown(r){return Promise.reject(new Error("Not implemented in no-op Kernel Manager"))}get ready(){return this.parentReady.then(()=>this._readyPromise)}async requestRunning(){return Promise.resolve()}}i.NoopManager=e})(Dh||(Oh.KernelManager=Dh={}))});var N_=D(Mi=>{"use strict";var R8=Mi&&Mi.__createBinding||(Object.create?function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}:function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]}),Wre=Mi&&Mi.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),P_=Mi&&Mi.__importStar||function(i){if(i&&i.__esModule)return i;var e={};if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&R8(e,i,t);return Wre(e,i),e},Gre=Mi&&Mi.__exportStar||function(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&R8(e,i,t)};Object.defineProperty(Mi,"__esModule",{value:!0});Mi.KernelConnection=Mi.KernelAPI=Mi.KernelMessage=Mi.Kernel=void 0;var Kre=P_(d8());Mi.Kernel=Kre;var Yre=P_(vc());Mi.KernelMessage=Yre;var Xre=P_(Um());Mi.KernelAPI=Xre;var Jre=F_();Object.defineProperty(Mi,"KernelConnection",{enumerable:!0,get:function(){return Jre.KernelConnection}});Gre(A8(),Mi)});var D8=D(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});Xm.BuildManager=void 0;var z_=Ii(),qa=Ir(),Zre="api/build",B_=class{constructor(e={}){var t;this._url="",this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:qa.ServerConnection.makeSettings();let{baseUrl:r,appUrl:n}=this.serverSettings;this._url=z_.URLExt.join(r,n,Zre)}get isAvailable(){return z_.PageConfig.getOption("buildAvailable").toLowerCase()==="true"}get shouldCheck(){return z_.PageConfig.getOption("buildCheck").toLowerCase()==="true"}getStatus(){let{_url:e,serverSettings:t}=this;
5return qa.ServerConnection.makeRequest(e,{},t).then(n=>{if(n.status!==200)throw new qa.ServerConnection.ResponseError(n);return n.json()}).then(n=>{if(typeof n.status!="string")throw new Error("Invalid data");if(typeof n.message!="string")throw new Error("Invalid data");return n})}build(){let{_url:e,serverSettings:t}=this,r={method:"POST"};return qa.ServerConnection.makeRequest(e,r,t).then(s=>{if(s.status===400)throw new qa.ServerConnection.ResponseError(s,"Build aborted");if(s.status!==200){let o=`Build failed with ${s.status}. 6 7 If you are experiencing the build failure after installing an extension (or trying to include previously installed extension after updating JupyterLab) please check the extension repository for new installation instructions as many extensions migrated to the prebuilt extensions system which no longer requires rebuilding JupyterLab (but uses a different installation procedure, typically involving a package manager such as 'pip' or 'conda'). 8 9 If you specifically intended to install a source extension, please run 'jupyter lab build' on the server for full output.`;throw new qa.ServerConnection.ResponseError(s,o)}})}cancel(){let{_url:e,serverSettings:t}=this,r={method:"DELETE"};return qa.ServerConnection.makeRequest(e,r,t).then(s=>{if(s.status!==204)throw new qa.ServerConnection.ResponseError(s)})}};Xm.BuildManager=B_});var j_=D(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});Jm.NbConvertManager=void 0;var Qre=Ii(),q_=Ir(),ene=Ze(),tne="api/nbconvert",H_=class{constructor(e={}){var t;this._exportFormats=null,this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:q_.ServerConnection.makeSettings()}async fetchExportFormats(){this._requestingFormats=new ene.PromiseDelegate,this._exportFormats=null;let e=this.serverSettings.baseUrl,t=Qre.URLExt.join(e,tne),{serverSettings:r}=this,n=await q_.ServerConnection.makeRequest(t,{},r);if(n.status!==200)throw await q_.ServerConnection.ResponseError.create(n);let s=await n.json(),o={};return Object.keys(s).forEach(function(l){let u=s[l].output_mimetype;o[l]={output_mimetype:u}}),this._exportFormats=o,this._requestingFormats.resolve(o),o}async getExportFormats(e=!0){return this._requestingFormats?this._requestingFormats.promise:e||!this._exportFormats?await this.fetchExportFormats():this._exportFormats}};Jm.NbConvertManager=H_});var L8=D(O8=>{"use strict";Object.defineProperty(O8,"__esModule",{value:!0})});var F8=D(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.validateModels=Ha.updateLegacySessionModel=Ha.validateModel=void 0;var ine=jm(),Lh=Mh();function $8(i){(0,Lh.validateProperty)(i,"id","string"),(0,Lh.validateProperty)(i,"type","string"),(0,Lh.validateProperty)(i,"name","string"),(0,Lh.validateProperty)(i,"path","string"),(0,Lh.validateProperty)(i,"kernel","object"),(0,ine.validateModel)(i.kernel)}Ha.validateModel=$8;function rne(i){i.path===void 0&&i.notebook!==void 0&&(i.path=i.notebook.path,i.type="notebook",i.name="")}Ha.updateLegacySessionModel=rne;function nne(i){if(!Array.isArray(i))throw new Error("Invalid session list");i.forEach(e=>$8(e))}Ha.validateModels=nne});var e0=D(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});
9Ei.updateSession=Ei.startSession=Ei.getSessionModel=Ei.shutdownSession=Ei.getSessionUrl=Ei.listRunning=Ei.SESSION_SERVICE_URL=void 0;var ur=Ir(),Zm=Ii(),ja=F8();Ei.SESSION_SERVICE_URL="api/sessions";async function sne(i=ur.ServerConnection.makeSettings()){let e=Zm.URLExt.join(i.baseUrl,Ei.SESSION_SERVICE_URL),t=await ur.ServerConnection.makeRequest(e,{},i);if(t.status!==200)throw await ur.ServerConnection.ResponseError.create(t);let r=await t.json();if(!Array.isArray(r))throw new Error("Invalid Session list");return r.forEach(n=>{(0,ja.updateLegacySessionModel)(n),(0,ja.validateModel)(n)}),r}Ei.listRunning=sne;function Qm(i,e){let t=Zm.URLExt.join(i,Ei.SESSION_SERVICE_URL),r=Zm.URLExt.join(t,e);if(!r.startsWith(t))throw new Error("Can only be used for services requests");return r}Ei.getSessionUrl=Qm;async function one(i,e=ur.ServerConnection.makeSettings()){var t;let r=Qm(e.baseUrl,i),n={method:"DELETE"},s=await ur.ServerConnection.makeRequest(r,n,e);if(s.status===404){let a=(t=(await s.json()).message)!==null&&t!==void 0?t:`The session "${i}"" does not exist on the server`;console.warn(a)}else{if(s.status===410)throw new ur.ServerConnection.ResponseError(s,"The kernel was deleted but the session was not");if(s.status!==204)throw await ur.ServerConnection.ResponseError.create(s)}}Ei.shutdownSession=one;async function ane(i,e=ur.ServerConnection.makeSettings()){let t=Qm(e.baseUrl,i),r=await ur.ServerConnection.makeRequest(t,{},e);if(r.status!==200)throw await ur.ServerConnection.ResponseError.create(r);let n=await r.json();return(0,ja.updateLegacySessionModel)(n),(0,ja.validateModel)(n),n}Ei.getSessionModel=ane;async function lne(i,e=ur.ServerConnection.makeSettings()){let t=Zm.URLExt.join(e.baseUrl,Ei.SESSION_SERVICE_URL),r={method:"POST",body:JSON.stringify(i)},n=await ur.ServerConnection.makeRequest(t,r,e);if(n.status!==201)throw await ur.ServerConnection.ResponseError.create(n);let s=await n.json();return(0,ja.updateLegacySessionModel)(s),(0,ja.validateModel)(s),s}Ei.startSession=lne;async function une(i,e=ur.ServerConnection.makeSettings()){let t=Qm(e.baseUrl,i.id),r={method:"PATCH",body:JSON.stringify(i)},n=await ur.ServerConnection.makeRequest(t,r,e);if(n.status!==200)throw await ur.ServerConnection.ResponseError.create(n);let s=await n.json();return(0,ja.updateLegacySessionModel)(s),(0,ja.validateModel)(s),s}Ei.updateSession=une});var N8=D(t0=>{"use strict";Object.defineProperty(t0,"__esModule",{value:!0});t0.SessionConnection=void 0;var Ws=(Qe(),Ot(ar)),cne=qs(),P8=e0(),dne=Ze(),V_=class{constructor(e){var t,r,n,s;this._id="",this._path="",this._name="",this._type="",this._kernel=null,this._isDisposed=!1,this._disposed=new Ws.Signal(this),this._kernelChanged=new Ws.Signal(this),this._statusChanged=new Ws.Signal(this),this._connectionStatusChanged=new Ws.Signal(this),this._pendingInput=new Ws.Signal(this),this._iopubMessage=new Ws.Signal(this),this._unhandledMessage=new Ws.Signal(this),this._anyMessage=new Ws.Signal(this),this._propertyChanged=new Ws.Signal(this),this._id=e.model.id,this._name=e.model.name,this._path=e.model.path,this._type=e.model.type,this._username=(t=e.username)!==null&&t!==void 0?t:"",this._clientId=(r=e.clientId)!==null&&r!==void 0?r:dne.UUID.uuid4(),this._connectToKernel=e.connectToKernel,this._kernelConnectionOptions=(n=e.kernelConnectionOptions)!==null&&n!==void 0?n:{},this.serverSettings=(s=e.serverSettings)!==null&&s!==void 0?s:cne.ServerConnection.makeSettings(),this.setupKernel(e.model.kernel)}get disposed(){return this._disposed}get kernelChanged(){return this._kernelChanged}get statusChanged(){return this._statusChanged}get connectionStatusChanged(){return this._connectionStatusChanged}get pendingInput(){return this._pendingInput}get iopubMessage(){return this._iopubMessage}get unhandledMessage(){return this._unhandledMessage}get anyMessage(){return this._anyMessage}get propertyChanged(){return this._propertyChanged}get id(){return this._id}get kernel(){return this._kernel}get path(){return this._path}get type(){return this._type}get name(){return this._name}get model(){return{id:this.id,kernel:this.kernel&&{id:this.kernel.id,name:this.kernel.name},path:this._path,type:this._type,name:this._name}}get isDisposed(){return this._isDisposed}update(e){let t=this.model;if(this._path=e.path,this._name=e.name,this._type=e.type,this._kernel===null&&e.kernel!==null||this._kernel!==null&&e.kernel===null||this._kernel!==null&&e.kernel!==null&&this._kernel.id!==e.kernel.id){this._kernel!==null&&this._kernel.dispose();let r=this._kernel||null;this.setupKernel(e.kernel);let n=this._kernel||null;this._kernelChanged.emit({name:"kernel",oldValue:r,newValue:n})}this._handleModelChange(t)}
9dispose(){if(!this.isDisposed){if(this._isDisposed=!0,this._disposed.emit(),this._kernel){this._kernel.dispose();let e=this._kernel;this._kernel=null;let t=this._kernel;this._kernelChanged.emit({name:"kernel",oldValue:e,newValue:t})}Ws.Signal.clearData(this)}}async setPath(e){if(this.isDisposed)throw new Error("Session is disposed");await this._patch({path:e})}async setName(e){if(this.isDisposed)throw new Error("Session is disposed");await this._patch({name:e})}async setType(e){if(this.isDisposed)throw new Error("Session is disposed");await this._patch({type:e})}async changeKernel(e){if(this.isDisposed)throw new Error("Session is disposed");return await this._patch({kernel:e}),this.kernel}async shutdown(){if(this.isDisposed)throw new Error("Session is disposed");await(0,P8.shutdownSession)(this.id,this.serverSettings),this.dispose()}setupKernel(e){if(e===null){this._kernel=null;return}let t=this._connectToKernel({...this._kernelConnectionOptions,model:e,username:this._username,clientId:this._clientId,serverSettings:this.serverSettings});this._kernel=t,t.statusChanged.connect(this.onKernelStatus,this),t.connectionStatusChanged.connect(this.onKernelConnectionStatus,this),t.pendingInput.connect(this.onPendingInput,this),t.unhandledMessage.connect(this.onUnhandledMessage,this),t.iopubMessage.connect(this.onIOPubMessage,this),t.anyMessage.connect(this.onAnyMessage,this)}onKernelStatus(e,t){this._statusChanged.emit(t)}onKernelConnectionStatus(e,t){this._connectionStatusChanged.emit(t)}onPendingInput(e,t){this._pendingInput.emit(t)}onIOPubMessage(e,t){this._iopubMessage.emit(t)}onUnhandledMessage(e,t){this._unhandledMessage.emit(t)}onAnyMessage(e,t){this._anyMessage.emit(t)}async _patch(e){let t=await(0,P8.updateSession)({...e,id:this._id},this.serverSettings);return this.update(t),t}_handleModelChange(e){e.name!==this._name&&this._propertyChanged.emit("name"),e.type!==this._type&&this._propertyChanged.emit("type"),e.path!==this._path&&this._propertyChanged.emit("path")}};t0.SessionConnection=V_});var B8=D(Ph=>{"use strict";Object.defineProperty(Ph,"__esModule",{value:!0});Ph.SessionManager=void 0;var hne=(Fo(),Ot(Jl)),z8=(Qe(),Ot(ar)),fne=Ir(),pne=Yl(),mne=N8(),$h=e0(),Fh=class extends pne.BaseManager{constructor(e){var t;super(e),this._isReady=!1,this._sessionConnections=new Set,this._models=new Map,this._runningChanged=new z8.Signal(this),this._connectionFailure=new z8.Signal(this),this._connectToKernel=r=>this._kernelManager.connectTo(r),this._kernelManager=e.kernelManager,this._pollModels=new hne.Poll({auto:!1,factory:()=>this.requestRunning(),frequency:{interval:10*1e3,backoff:!0,max:300*1e3},name:"@jupyterlab/services:SessionManager#models",standby:(t=e.standby)!==null&&t!==void 0?t:"when-hidden"}),this._ready=(async()=>{await this._pollModels.start(),await this._pollModels.tick,this._kernelManager.isActive&&await this._kernelManager.ready,this._isReady=!0})()}get isReady(){return this._isReady}get ready(){return this._ready}get runningChanged(){return this._runningChanged}get connectionFailure(){return this._connectionFailure}dispose(){this.isDisposed||(this._models.clear(),this._sessionConnections.forEach(e=>e.dispose()),this._pollModels.dispose(),super.dispose())}connectTo(e){let t=new mne.SessionConnection({...e,connectToKernel:this._connectToKernel,serverSettings:this.serverSettings});return this._onStarted(t),this._models.has(e.model.id)||this.refreshRunning().catch(()=>{}),t}running(){return this._models.values()}async refreshRunning(){await this._pollModels.refresh(),await this._pollModels.tick}
9async startNew(e,t={}){let r=await(0,$h.startSession)(e,this.serverSettings);return await this.refreshRunning(),this.connectTo({...t,model:r})}async shutdown(e){await(0,$h.shutdownSession)(e,this.serverSettings),await this.refreshRunning()}async shutdownAll(){await this.refreshRunning(),await Promise.all([...this._models.keys()].map(e=>(0,$h.shutdownSession)(e,this.serverSettings))),await this.refreshRunning()}async stopIfNeeded(e){try{let r=(await(0,$h.listRunning)(this.serverSettings)).filter(n=>n.path===e);if(r.length===1){let n=r[0].id;await this.shutdown(n)}}catch{}}async findById(e){return this._models.has(e)?this._models.get(e):(await this.refreshRunning(),this._models.get(e))}async findByPath(e){for(let t of this._models.values())if(t.path===e)return t;await this.refreshRunning();for(let t of this._models.values())if(t.path===e)return t}async requestRunning(){var e,t;let r;try{r=await(0,$h.listRunning)(this.serverSettings)}catch(n){throw(n instanceof fne.ServerConnection.NetworkError||((e=n.response)===null||e===void 0?void 0:e.status)===503||((t=n.response)===null||t===void 0?void 0:t.status)===424)&&this._connectionFailure.emit(n),n}this.isDisposed||this._models.size===r.length&&r.every(n=>{var s,o,a,l;let u=this._models.get(n.id);return u?((s=u.kernel)===null||s===void 0?void 0:s.id)===((o=n.kernel)===null||o===void 0?void 0:o.id)&&((a=u.kernel)===null||a===void 0?void 0:a.name)===((l=n.kernel)===null||l===void 0?void 0:l.name)&&u.name===n.name&&u.path===n.path&&u.type===n.type:!1})||(this._models=new Map(r.map(n=>[n.id,n])),this._sessionConnections.forEach(n=>{this._models.has(n.id)?n.update(this._models.get(n.id)):n.dispose()}),this._runningChanged.emit(r))}_onStarted(e){this._sessionConnections.add(e),e.disposed.connect(this._onDisposed,this),e.propertyChanged.connect(this._onChanged,this),e.kernelChanged.connect(this._onChanged,this)}_onDisposed(e){this._sessionConnections.delete(e),this.refreshRunning().catch(()=>{})}_onChanged(){this.refreshRunning().catch(()=>{})}};Ph.SessionManager=Fh;(function(i){class e extends i{constructor(){super(...arguments),this._readyPromise=new Promise(()=>{})}get isActive(){return!1}get parentReady(){return super.ready}async startNew(r,n={}){return Promise.reject(new Error("Not implemented in no-op Session Manager"))}connectTo(r){throw Error("Not implemented in no-op Session Manager")}get ready(){return this.parentReady.then(()=>this._readyPromise)}async shutdown(r){return Promise.reject(new Error("Not implemented in no-op Session Manager"))}async requestRunning(){return Promise.resolve()}}i.NoopManager=e})(Fh||(Ph.SessionManager=Fh={}))});var U_=D(Tr=>{"use strict";var q8=Tr&&Tr.__createBinding||(Object.create?function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}:function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]}),gne=Tr&&Tr.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),H8=Tr&&Tr.__importStar||function(i){if(i&&i.__esModule)return i;var e={};if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&q8(e,i,t);return gne(e,i),e},bne=Tr&&Tr.__exportStar||function(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&q8(e,i,t)};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.SessionAPI=Tr.Session=void 0;var vne=H8(L8());Tr.Session=vne;var _ne=H8(e0());Tr.SessionAPI=_ne;bne(B8(),Tr)});var K_=D(r0=>{"use strict";Object.defineProperty(r0,"__esModule",{value:!0});r0.SettingManager=void 0;var W_=Ii(),yne=Mm(),i0=Ir(),xne="api/settings",G_=class extends yne.DataConnector{constructor(e={}){var t;super(),this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:i0.ServerConnection.makeSettings()}async fetch(e){if(!e)throw new Error("Plugin `id` parameter is required for settings fetch.");let{serverSettings:t}=this,{baseUrl:r,appUrl:n}=t,{makeRequest:s,ResponseError:o}=i0.ServerConnection,a=r+n,l=Nh.url(a,e),u=await s(l,{},t);if(u.status!==200)throw await o.create(u);return u.json()}async list(e){var t,r,n,s;let{serverSettings:o}=this,{baseUrl:a,appUrl:l}=o,{makeRequest:u,ResponseError:c}=i0.ServerConnection,d=a+l,f=Nh.url(d,"",e==="ids"),m=await u(f,{},o);if(m.status!==200)throw new c(m);let b=await m.json(),y=(r=(t=b?.settings)===null||t===void 0?void 0:t.map(M=>M.id))!==null&&r!==void 0?r:[],x=[];return e||(x=(s=(n=b?.settings)===null||n===void 0?void 0:n.map(M=>(M.data={composite:{},user:{}},M)))!==null&&s!==void 0?s:[]),{ids:y,values:x}}async save(e,t){let{serverSettings:r}=this,{baseUrl:n,appUrl:s}=r,{makeRequest:o,ResponseError:a}=i0.ServerConnection,l=n+s,u=Nh.url(l,e),c={body:JSON.stringify({raw:t}),method:"PUT"},d=await o(u,c,r);if(d.status!==204)throw new a(d)}};r0.SettingManager=G_;var Nh;(function(i){function e(t,r,n){let s=n?W_.URLExt.objectToQueryString({ids_only:!0}):"",o=W_.URLExt.join(t,xne),a=W_.URLExt.join(o,r);if(!a.startsWith(o))throw new Error("Can only be used for workspaces requests");return`${a}${s}`}i.url=e})(Nh||(Nh={}))});var qh=D(kr=>{"use strict";
9Object.defineProperty(kr,"__esModule",{value:!0});kr.shutdownTerminal=kr.listRunning=kr.startNew=kr.isAvailable=kr.TERMINAL_SERVICE_URL=void 0;var zh=Ii(),Po=Ir();kr.TERMINAL_SERVICE_URL="api/terminals";function j8(){return String(zh.PageConfig.getOption("terminalsAvailable")).toLowerCase()==="true"}kr.isAvailable=j8;async function wne(i=Po.ServerConnection.makeSettings(),e,t){Bh.errorIfNotAvailable();let r=zh.URLExt.join(i.baseUrl,kr.TERMINAL_SERVICE_URL),n={method:"POST",body:JSON.stringify({name:e,cwd:t})},s=await Po.ServerConnection.makeRequest(r,n,i);if(s.status!==200)throw await Po.ServerConnection.ResponseError.create(s);return await s.json()}kr.startNew=wne;async function Sne(i=Po.ServerConnection.makeSettings()){Bh.errorIfNotAvailable();let e=zh.URLExt.join(i.baseUrl,kr.TERMINAL_SERVICE_URL),t=await Po.ServerConnection.makeRequest(e,{},i);if(t.status!==200)throw await Po.ServerConnection.ResponseError.create(t);let r=await t.json();if(!Array.isArray(r))throw new Error("Invalid terminal list");return r}kr.listRunning=Sne;async function Cne(i,e=Po.ServerConnection.makeSettings()){var t;Bh.errorIfNotAvailable();let r=zh.URLExt.join(e.baseUrl,kr.TERMINAL_SERVICE_URL),n=zh.URLExt.join(r,i);if(!n.startsWith(r))throw new Error("Can only be used for terminal requests");let s={method:"DELETE"},o=await Po.ServerConnection.makeRequest(n,s,e);if(o.status===404){let l=(t=(await o.json()).message)!==null&&t!==void 0?t:`The terminal session "${i}"" does not exist on the server`;console.warn(l)}else if(o.status!==204)throw await Po.ServerConnection.ResponseError.create(o)}kr.shutdownTerminal=Cne;var Bh;(function(i){function e(){if(!j8())throw new Error("Terminals Unavailable")}i.errorIfNotAvailable=e})(Bh||(Bh={}))});var V8=D(n0=>{"use strict";Object.defineProperty(n0,"__esModule",{value:!0});n0.isAvailable=void 0;var Ine=qh();Object.defineProperty(n0,"isAvailable",{enumerable:!0,get:function(){return Ine.isAvailable}})});var G8=D(o0=>{"use strict";Object.defineProperty(o0,"__esModule",{value:!0});o0.TerminalConnection=void 0;var U8=Ii(),Mne=Ze(),s0=(Qe(),Ot(ar)),Ene=qs(),W8=qh(),Hh=class{constructor(e){var t;this._createSocket=()=>{this._errorIfDisposed(),this._clearSocket(),this._updateConnectionStatus("connecting");let r=this._name,n=this.serverSettings,s=U8.URLExt.join(n.wsUrl,"terminals","websocket",encodeURIComponent(r)),o=n.token;n.appendToken&&o!==""&&(s=s+`?token=${encodeURIComponent(o)}`),this._ws=new n.WebSocket(s),this._ws.onmessage=this._onWSMessage,this._ws.onclose=this._onWSClose,this._ws.onerror=this._onWSClose},this._onWSMessage=r=>{if(this._isDisposed)return;let n=JSON.parse(r.data);if(n[0]==="disconnect"&&this.dispose(),this._connectionStatus==="connecting"){n[0]==="setup"&&this._updateConnectionStatus("connected");return}this._messageReceived.emit({type:n[0],content:n.slice(1)})},this._onWSClose=r=>{console.warn(`Terminal websocket closed: ${r.code}`),this.isDisposed||this._reconnect()},this._connectionStatus="connecting",this._connectionStatusChanged=new s0.Signal(this),this._isDisposed=!1,this._disposed=new s0.Signal(this),this._messageReceived=new s0.Signal(this),this._reconnectTimeout=null,this._ws=null,this._noOp=()=>{},this._reconnectLimit=7,this._reconnectAttempt=0,this._pendingMessages=[],this._name=e.model.name,this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:Ene.ServerConnection.makeSettings(),this._createSocket()}get disposed(){return this._disposed}get messageReceived(){return this._messageReceived}get name(){return this._name}get model(){return{name:this._name}}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,this._disposed.emit(),this._updateConnectionStatus("disconnected"),this._clearSocket(),s0.Signal.clearData(this))}send(e){this._sendMessage(e)}_sendMessage(e,t=!0){if(!(this._isDisposed||!e.content))if(this.connectionStatus==="connected"&&this._ws){let r=[e.type,...e.content];this._ws.send(JSON.stringify(r))}else if(t)this._pendingMessages.push(e);else throw new Error(`Could not send message: ${JSON.stringify(e)}`)}_sendPending(){for(;this.connectionStatus==="connected"&&this._pendingMessages.length>0;
9)this._sendMessage(this._pendingMessages[0],!1),this._pendingMessages.shift()}reconnect(){this._errorIfDisposed();let e=new Mne.PromiseDelegate,t=(r,n)=>{n==="connected"?(e.resolve(),this.connectionStatusChanged.disconnect(t,this)):n==="disconnected"&&(e.reject(new Error("Terminal connection disconnected")),this.connectionStatusChanged.disconnect(t,this))};return this.connectionStatusChanged.connect(t,this),this._reconnectAttempt=0,this._reconnect(),e.promise}_reconnect(){if(this._errorIfDisposed(),clearTimeout(this._reconnectTimeout),this._reconnectAttempt<this._reconnectLimit){this._updateConnectionStatus("connecting");let e=Y_.getRandomIntInclusive(0,1e3*(Math.pow(2,this._reconnectAttempt)-1));console.error(`Connection lost, reconnecting in ${Math.floor(e/1e3)} seconds.`),this._reconnectTimeout=setTimeout(this._createSocket,e),this._reconnectAttempt+=1}else this._updateConnectionStatus("disconnected");this._clearSocket()}_clearSocket(){this._ws!==null&&(this._ws.onopen=this._noOp,this._ws.onclose=this._noOp,this._ws.onerror=this._noOp,this._ws.onmessage=this._noOp,this._ws.close(),this._ws=null)}async shutdown(){await(0,W8.shutdownTerminal)(this.name,this.serverSettings),this.dispose()}clone(){return new Hh(this)}_updateConnectionStatus(e){this._connectionStatus!==e&&(this._connectionStatus=e,e!=="connecting"&&(this._reconnectAttempt=0,clearTimeout(this._reconnectTimeout)),e==="connected"&&this._sendPending(),this._connectionStatusChanged.emit(e))}_errorIfDisposed(){if(this.isDisposed)throw new Error("Terminal connection is disposed")}get connectionStatusChanged(){return this._connectionStatusChanged}get connectionStatus(){return this._connectionStatus}};o0.TerminalConnection=Hh;var Y_;(function(i){function e(r,n){return U8.URLExt.join(r,W8.TERMINAL_SERVICE_URL,encodeURIComponent(n))}i.getTermUrl=e;function t(r,n){return r=Math.ceil(r),n=Math.floor(n),Math.floor(Math.random()*(n-r+1))+r}i.getRandomIntInclusive=t})(Y_||(Y_={}))});var Y8=D(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});Uh.TerminalManager=void 0;var Tne=(Fo(),Ot(Jl)),K8=(Qe(),Ot(ar)),kne=qs(),Ane=Yl(),jh=qh(),Rne=G8(),Vh=class extends Ane.BaseManager{constructor(e={}){var t;if(super(e),this._isReady=!1,this._names=[],this._terminalConnections=new Set,this._runningChanged=new K8.Signal(this),this._connectionFailure=new K8.Signal(this),!this.isAvailable()){this._ready=Promise.reject("Terminals unavailable"),this._ready.catch(r=>{});return}this._pollModels=new Tne.Poll({auto:!1,factory:()=>this.requestRunning(),frequency:{interval:10*1e3,backoff:!0,max:300*1e3},name:"@jupyterlab/services:TerminalManager#models",standby:(t=e.standby)!==null&&t!==void 0?t:"when-hidden"}),this._ready=(async()=>{await this._pollModels.start(),await this._pollModels.tick,this._isReady=!0})()}get isReady(){return this._isReady}get ready(){return this._ready}get runningChanged(){return this._runningChanged}get connectionFailure(){return this._connectionFailure}dispose(){this.isDisposed||(this._names.length=0,this._terminalConnections.forEach(e=>e.dispose()),this._pollModels.dispose(),super.dispose())}isAvailable(){return(0,jh.isAvailable)()}connectTo(e){let t=new Rne.TerminalConnection({...e,serverSettings:this.serverSettings});return this._onStarted(t),this._names.includes(e.model.name)||this.refreshRunning().catch(()=>{}),t}running(){return this._models[Symbol.iterator]()}async refreshRunning(){await this._pollModels.refresh(),await this._pollModels.tick}
9async startNew(e){let t=await(0,jh.startNew)(this.serverSettings,e?.name,e?.cwd);return await this.refreshRunning(),this.connectTo({model:t})}async shutdown(e){await(0,jh.shutdownTerminal)(e,this.serverSettings),await this.refreshRunning()}async shutdownAll(){await this.refreshRunning(),await Promise.all(this._names.map(e=>(0,jh.shutdownTerminal)(e,this.serverSettings))),await this.refreshRunning()}async requestRunning(){var e,t;let r;try{r=await(0,jh.listRunning)(this.serverSettings)}catch(s){throw(s instanceof kne.ServerConnection.NetworkError||((e=s.response)===null||e===void 0?void 0:e.status)===503||((t=s.response)===null||t===void 0?void 0:t.status)===424)&&this._connectionFailure.emit(s),s}if(this.isDisposed)return;let n=r.map(({name:s})=>s).sort();n!==this._names&&(this._names=n,this._terminalConnections.forEach(s=>{n.includes(s.name)||s.dispose()}),this._runningChanged.emit(this._models))}_onStarted(e){this._terminalConnections.add(e),e.disposed.connect(this._onDisposed,this)}_onDisposed(e){this._terminalConnections.delete(e),this.refreshRunning().catch(()=>{})}get _models(){return this._names.map(e=>({name:e}))}};Uh.TerminalManager=Vh;(function(i){class e extends i{constructor(){super(...arguments),this._readyPromise=new Promise(()=>{})}get isActive(){return!1}get parentReady(){return super.ready}get ready(){return this.parentReady.then(()=>this._readyPromise)}async startNew(r){return Promise.reject(new Error("Not implemented in no-op Terminal Manager"))}connectTo(r){throw Error("Not implemented in no-op Terminal Manager")}async shutdown(r){return Promise.reject(new Error("Not implemented in no-op Terminal Manager"))}async requestRunning(){return Promise.resolve()}}i.NoopManager=e})(Vh||(Uh.TerminalManager=Vh={}))});var X_=D(Ar=>{"use strict";var X8=Ar&&Ar.__createBinding||(Object.create?function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}:function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]}),Dne=Ar&&Ar.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),J8=Ar&&Ar.__importStar||function(i){if(i&&i.__esModule)return i;var e={};if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&X8(e,i,t);return Dne(e,i),e},One=Ar&&Ar.__exportStar||function(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&X8(e,i,t)};Object.defineProperty(Ar,"__esModule",{value:!0});Ar.TerminalAPI=Ar.Terminal=void 0;var Lne=J8(V8());Ar.Terminal=Lne;var $ne=J8(qh());Ar.TerminalAPI=$ne;One(Y8(),Ar)});var ey=D(a0=>{"use strict";Object.defineProperty(a0,"__esModule",{value:!0});a0.UserManager=void 0;var Fne=Ii(),Pne=Ze(),Nne=(Fo(),Ot(Jl)),Z8=(Qe(),Ot(ar)),zne=Ir(),Bne=Yl(),qne="api/me",J_="@jupyterlab/services:UserManager#user",Z_=class extends Bne.BaseManager{constructor(e={}){var t;super(e),this._isReady=!1,this._userChanged=new Z8.Signal(this),this._connectionFailure=new Z8.Signal(this),this._ready=this.requestUser().then(()=>{this.isDisposed||(this._isReady=!0)}).catch(r=>new Promise(()=>{})),this._pollSpecs=new Nne.Poll({auto:!1,factory:()=>this.requestUser(),frequency:{interval:61*1e3,backoff:!0,max:300*1e3},name:J_,standby:(t=e.standby)!==null&&t!==void 0?t:"when-hidden"}),this.ready.then(()=>{this._pollSpecs.start()})}get isReady(){return this._isReady}get ready(){return this._ready}get identity(){return this._identity}get permissions(){return this._permissions}get userChanged(){return this._userChanged}get connectionFailure(){return this._connectionFailure}dispose(){this._pollSpecs.dispose(),super.dispose()}async refreshUser(){await this._pollSpecs.refresh(),await this._pollSpecs.tick}async requestUser(){if(this.isDisposed)return;let{baseUrl:e}=this.serverSettings,{makeRequest:t,ResponseError:r}=zne.ServerConnection,n=Fne.URLExt.join(e,qne),s=await t(n,{},this.serverSettings);if(s.status!==200)throw await r.create(s);let o={identity:this._identity,permissions:this._permissions},a=await s.json(),l=a.identity,{localStorage:u}=window,c=u.getItem(J_);if(c&&(!l.initials||!l.color)){let d=JSON.parse(c);l.initials=l.initials||d.initials||l.name.substring(0,1),l.color=l.color||d.color||Q_.getRandomColor()}Pne.JSONExt.deepEqual(a,o)||(this._identity=l,this._permissions=a.permissions,u.setItem(J_,JSON.stringify(l)),this._userChanged.emit(a))}};a0.UserManager=Z_;var Q_;(function(i){let e=["var(--jp-collaborator-color1)","var(--jp-collaborator-color2)","var(--jp-collaborator-color3)","var(--jp-collaborator-color4)","var(--jp-collaborator-color5)","var(--jp-collaborator-color6)","var(--jp-collaborator-color7)"];i.getRandomColor=()=>e[Math.floor(Math.random()*e.length)]})(Q_||(Q_={}))});var iy=D(l0=>{"use strict";Object.defineProperty(l0,"__esModule",{value:!0});
9l0.WorkspaceManager=void 0;var Q8=Ii(),Hne=Mm(),Wh=Ir(),jne="api/workspaces",ty=class extends Hne.DataConnector{constructor(e={}){var t;super(),this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:Wh.ServerConnection.makeSettings()}async fetch(e){let{serverSettings:t}=this,{baseUrl:r,appUrl:n}=t,{makeRequest:s,ResponseError:o}=Wh.ServerConnection,a=r+n,l=Ic.url(a,e),u=await s(l,{},t);if(u.status!==200)throw await o.create(u);return u.json()}async list(){let{serverSettings:e}=this,{baseUrl:t,appUrl:r}=e,{makeRequest:n,ResponseError:s}=Wh.ServerConnection,o=t+r,a=Ic.url(o,""),l=await n(a,{},e);if(l.status!==200)throw await s.create(l);return(await l.json()).workspaces}async remove(e){let{serverSettings:t}=this,{baseUrl:r,appUrl:n}=t,{makeRequest:s,ResponseError:o}=Wh.ServerConnection,a=r+n,l=Ic.url(a,e),c=await s(l,{method:"DELETE"},t);if(c.status!==204)throw await o.create(c)}async save(e,t){let{serverSettings:r}=this,{baseUrl:n,appUrl:s}=r,{makeRequest:o,ResponseError:a}=Wh.ServerConnection,l=n+s,u=Ic.url(l,e),c={body:JSON.stringify(t),method:"PUT"},d=await o(u,c,r);if(d.status!==204)throw await a.create(d)}};l0.WorkspaceManager=ty;var Ic;(function(i){function e(t,r){let n=Q8.URLExt.join(t,jne),s=Q8.URLExt.join(n,r);if(!s.startsWith(n))throw new Error("Can only be used for workspaces requests");return s}i.url=e})(Ic||(Ic={}))});var tI=D(u0=>{"use strict";Object.defineProperty(u0,"__esModule",{value:!0});u0.ServiceManager=void 0;var eI=(Qe(),Ot(ar)),Vne=D8(),Une=S_(),Wne=M_(),Gne=N_(),Kne=Km(),Yne=j_(),Xne=Ir(),Jne=U_(),Zne=K_(),Qne=X_(),ese=ey(),tse=iy(),ry=class{constructor(e={}){var t,r;this._isDisposed=!1,this._connectionFailure=new eI.Signal(this),this._isReady=!1;let n=e.defaultDrive,s=(t=e.serverSettings)!==null&&t!==void 0?t:Xne.ServerConnection.makeSettings(),o=(r=e.standby)!==null&&r!==void 0?r:"when-hidden",a={defaultDrive:n,serverSettings:s,standby:o};this.serverSettings=s,this.contents=e.contents||new Une.ContentsManager(a),this.events=e.events||new Wne.EventManager(a),this.kernels=e.kernels||new Gne.KernelManager(a),this.sessions=e.sessions||new Jne.SessionManager({...a,kernelManager:this.kernels}),this.settings=e.settings||new Zne.SettingManager(a),this.terminals=e.terminals||new Qne.TerminalManager(a),this.builder=e.builder||new Vne.BuildManager(a),this.workspaces=e.workspaces||new tse.WorkspaceManager(a),this.nbconvert=e.nbconvert||new Yne.NbConvertManager(a),this.kernelspecs=e.kernelspecs||new Kne.KernelSpecManager(a),this.user=e.user||new ese.UserManager(a),this.kernelspecs.connectionFailure.connect(this._onConnectionFailure,this),this.sessions.connectionFailure.connect(this._onConnectionFailure,this),this.terminals.connectionFailure.connect(this._onConnectionFailure,this);let l=[this.sessions.ready,this.kernelspecs.ready];this.terminals.isAvailable()&&l.push(this.terminals.ready),this._readyPromise=Promise.all(l).then(()=>{this._isReady=!0})}get connectionFailure(){return this._connectionFailure}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,eI.Signal.clearData(this),this.contents.dispose(),this.events.dispose(),this.sessions.dispose(),this.terminals.dispose())}get isReady(){return this._isReady}get ready(){return this._readyPromise}_onConnectionFailure(e,t){this._connectionFailure.emit(t)}};u0.ServiceManager=ry});var qs=D(gi=>{"use strict";var ise=gi&&gi.__createBinding||(Object.create?function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}:function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]}),Wr=gi&&gi.__exportStar||function(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&ise(e,i,t)};Object.defineProperty(gi,"__esModule",{value:!0});Wr(Yl(),gi);Wr(r8(),gi);Wr(S_(),gi);Wr(M_(),gi);Wr(N_(),gi);Wr(Km(),gi);Wr(tI(),gi);Wr(Ir(),gi);Wr(U_(),gi);Wr(K_(),gi);Wr(X_(),gi);Wr(ey(),gi);Wr(iy(),gi);Wr(j_(),gi)});var rse,ny=w(()=>{rse=z(qs())});var sy,lTe,uTe,oy=w(()=>{sy=z(Ze());ny();lTe=new sy.Token("@jupyterlab/translation:ITranslatorConnector","A service to connect to the server translation endpoint."),uTe=new sy.Token("@jupyterlab/translation:ITranslator","A service to translate strings.")});var iI=w(()=>{_m();oy();r_()});var Nn=w(()=>{n5();_m();iI();ny();oy()});var nI,rI=w(()=>{nI="/build/_assets/bad-FQMIYYET.svg"});var oI,sI=w(()=>{oI="/build/_assets/blank-US55MPOI.svg"});var c0,ay=w(()=>{c0="/build/_assets/refresh-3LT7D5B7.svg"});var pI={};Ul(pI,{Cache:()=>zn,FreeStyle:()=>Ec,Rule:()=>eu,Selector:()=>h0,Style:()=>Mc,create:()=>fse});function lse(i){return i.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).replace(/^ms-/,"-ms-")}function use(i){let e=5381,t=i.length;for(;t--;
9)e=e*33^i.charCodeAt(t);return(e>>>0).toString(36)}function aI(i,e){return e&&typeof e=="number"&&!dI[i]?`${i}:${e}px`:`${i}:${e}`}function lI(i){return i.sort((e,t)=>e[0]>t[0]?1:-1)}function cse(i,e){let t=[],r=[];for(let n of Object.keys(i)){let s=n.trim(),o=i[n];s.charCodeAt(0)!==36&&o!=null&&(typeof o=="object"&&!Array.isArray(o)?r.push([s,o]):t.push([lse(s),o]))}return{style:dse(lI(t)),nested:e?r:lI(r),isUnique:!!i.$unique}}function dse(i){return i.map(([e,t])=>Array.isArray(t)?t.map(r=>aI(e,r)).join(";"):aI(e,t)).join(";")}function hI(i,e){return i.indexOf("&")===-1?`${e} ${i}`:i.replace(/&/g,e)}function Gh(i,e,t,r,n){let{style:s,nested:o,isUnique:a}=cse(e,i!==""),l=s;if(i.charCodeAt(0)===64){let u={selector:i,styles:[],rules:[],style:n?"":s};t.push(u),s&&n&&u.styles.push({selector:n,style:s,isUnique:a});for(let[c,d]of o)l+=c+Gh(c,d,u.rules,u.styles,n)}else{let u=n?hI(i,n):i;s&&r.push({selector:u,style:s,isUnique:a});for(let[c,d]of o)l+=c+Gh(c,d,t,r,u)}return l}function d0(i,e,t,r,n,s){for(let{selector:o,style:a,isUnique:l}of r){let u=s?hI(o,n):o,c=l?`u\0${(++cI).toString(36)}`:`s\0${e}\0${a}`,d=new Mc(a,c);d.add(new h0(u,`k\0${e}\0${u}`)),i.add(d)}for(let{selector:o,style:a,rules:l,styles:u}of t){let c=new eu(o,a,`r\0${e}\0${o}\0${a}`);d0(c,e,l,u,n,s),i.add(c)}}function fI(i){let e="";for(let t=0;t<i.length;t++)e+=i[t];return e}function uI(i,e){let t=`f${use(i)}`;return t}function fse(i){return new Ec(`f${(++cI).toString(36)}`,i)}var cI,dI,ase,hse,zn,h0,Mc,eu,Ec,mI=w(()=>{cI=0,dI=Object.create(null),ase=["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","columns","counter-increment","counter-reset","flex","flex-grow","flex-positive","flex-shrink","flex-negative","flex-order","font-weight","grid-area","grid-column","grid-column-end","grid-column-span","grid-column-start","grid-row","grid-row-end","grid-row-span","grid-row-start","line-clamp","line-height","opacity","order","orphans","tab-size","widows","z-index","zoom","fill-opacity","flood-opacity","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width"];for(let i of ase)for(let e of["-webkit-","-ms-","-moz-","-o-",""])dI[e+i]=!0;hse={add:()=>{},change:()=>{},remove:()=>{}},zn=class{constructor(e=hse){this.changes=e,this.sheet=[],this.changeId=0,this._keys=[],this._children=Object.create(null),this._counters=Object.create(null)}add(e){let t=this._counters[e.id]||0,r=this._children[e.id]||e.clone();if(this._counters[e.id]=t+1,t===0)this._children[r.id]=r,this._keys.push(r.id),this.sheet.push(r.getStyles()),this.changeId++,this.changes.add(r,this._keys.length-1);else if(r instanceof zn&&e instanceof zn){let n=this._keys.indexOf(e.id),s=r.changeId;r.merge(e),r.changeId!==s&&(this.sheet.splice(n,1,r.getStyles()),this.changeId++,this.changes.change(r,n,n))}}remove(e){let t=this._counters[e.id];if(t){this._counters[e.id]=t-1;let r=this._children[e.id],n=this._keys.indexOf(r.id);if(t===1)delete this._counters[e.id],delete this._children[e.id],this._keys.splice(n,1),this.sheet.splice(n,1),this.changeId++,this.changes.remove(r,n);else if(r instanceof zn&&e instanceof zn){let s=r.changeId;r.unmerge(e),r.changeId!==s&&(this.sheet.splice(n,1,r.getStyles()),this.changeId++,this.changes.change(r,n,n))}}}values(){return this._keys.map(e=>this._children[e])}merge(e){for(let t of e.values())this.add(t);return this}unmerge(e){for(let t of e.values())this.remove(t);return this}clone(){return new zn().merge(this)}},h0=class{constructor(e,t){this.selector=e,this.id=t}getStyles(){return this.selector}clone(){return this}},Mc=class extends zn{constructor(e,t){super(),this.style=e,this.id=t}getStyles(){return`${this.sheet.join(",")}{${this.style}}`}clone(){return new Mc(this.style,this.id).merge(this)}},eu=class extends zn{constructor(e,t,r){super(),this.rule=e,this.style=t,this.id=r}getStyles(){return`${this.rule}{${this.style}${fI(this.sheet)}}`}clone(){return new eu(this.rule,this.style,this.id).merge(this)}};Ec=class extends zn{constructor(e,t){super(t),this.id=e}registerStyle(e){let t=[],r=[],n=Gh("&",e,t,r),s=uI(n,e),o=`.${s}`;return d0(this,n,t,r,o,!0),s}registerKeyframes(e){return this.registerHashRule("@keyframes",e)}registerHashRule(e,t){let r=[],n=[],s=Gh("",t,r,n),o=uI(s,t),a=`${e} ${o}`,l=new eu(a,"",`h\0${s}\0${e}`);return d0(l,s,r,n,"",!1),this.add(l),o}registerRule(e,t){let r=[],n=[],s=Gh(e,t,r,n);d0(this,s,r,n,"",!1)}registerCss(e){return this.registerRule("",e)}getStyles(){return fI(this.sheet)}clone(){return new Ec(this.id,this.changes).merge(this)}}});var bI=D(f0=>{"use strict";Object.defineProperty(f0,"__esModule",{value:!0});function gI(i){var e={};
9for(var t in i){var r=i[t];if(t==="$nest"){var n=r;for(var s in n){var o=n[s];e[s]=gI(o)}}else t==="$debugName"?e.$displayName=r:e[t]=r}return e}f0.convertToStyles=gI;function pse(i){var e={};for(var t in i)t!=="$debugName"&&(e[t]=i[t]);return i.$debugName&&(e.$displayName=i.$debugName),e}f0.convertToKeyframes=pse});var ly=D(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.raf=typeof requestAnimationFrame>"u"?function(i){return setTimeout(i)}:typeof window>"u"?requestAnimationFrame:requestAnimationFrame.bind(window);function mse(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];return i.map(function(t){return t&&typeof t=="object"?Object.keys(t).map(function(r){return!!t[r]&&r}):[t]}).reduce(function(t,r){return t.concat(r)},[]).filter(function(t){return!!t}).join(" ")}Tc.classes=mse;function m0(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];for(var t={},r=0,n=i;r<n.length;r++){var s=n[r];if(!(s==null||s===!1))for(var o in s){var a=s[o];!a&&a!==0||(o==="$nest"&&a?t[o]=t.$nest?m0(t.$nest,a):a:o.indexOf("&")!==-1||o.indexOf("@media")===0?t[o]=t[o]?m0(t[o],a):a:t[o]=a)}}return t}Tc.extend=m0;Tc.media=function(i){for(var e,t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=[];i.type&&n.push(i.type),i.orientation&&n.push("(orientation: "+i.orientation+")"),i.minWidth&&n.push("(min-width: "+p0(i.minWidth)+")"),i.maxWidth&&n.push("(max-width: "+p0(i.maxWidth)+")"),i.minHeight&&n.push("(min-height: "+p0(i.minHeight)+")"),i.maxHeight&&n.push("(max-height: "+p0(i.maxHeight)+")"),i.prefersColorScheme&&n.push("(prefers-color-scheme: "+i.prefersColorScheme+")");var s="@media "+n.join(" and "),o={$nest:(e={},e[s]=m0.apply(void 0,t),e)};return o};var p0=function(i){return typeof i=="string"?i:i+"px"}});var _I=D(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});var gse=(mI(),Ot(pI)),uy=bI(),cy=ly(),vI=function(){return gse.create()},bse=function(){function i(e){var t=this,r=e.autoGenerateTag;this.cssRaw=function(s){s&&(t._raw+=s||"",t._pendingRawChange=!0,t._styleUpdated())},this.cssRule=function(s){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];var l=uy.convertToStyles(cy.extend.apply(void 0,o));t._freeStyle.registerRule(s,l),t._styleUpdated()},this.forceRenderStyles=function(){var s=t._getTag();s&&(s.textContent=t.getStyles())},this.fontFace=function(){for(var s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];for(var a=t._freeStyle,l=0,u=s;l<u.length;l++){var c=u[l];a.registerRule("@font-face",c)}t._styleUpdated()}
9,this.getStyles=function(){return(t._raw||"")+t._freeStyle.getStyles()},this.keyframes=function(s){var o=uy.convertToKeyframes(s),a=t._freeStyle.registerKeyframes(o);return t._styleUpdated(),a},this.reinit=function(){var s=vI();t._freeStyle=s,t._lastFreeStyleChangeId=s.changeId,t._raw="",t._pendingRawChange=!1;var o=t._getTag();o&&(o.textContent="")},this.setStylesTarget=function(s){t._tag&&(t._tag.textContent=""),t._tag=s,t.forceRenderStyles()},this.stylesheet=function(s){for(var o=Object.getOwnPropertyNames(s),a={},l=0,u=o;l<u.length;l++){var c=u[l],d=s[c];d&&(d.$debugName=c,a[c]=t.style(d))}return a};var n=vI();this._autoGenerateTag=r,this._freeStyle=n,this._lastFreeStyleChangeId=n.changeId,this._pending=0,this._pendingRawChange=!1,this._raw="",this._tag=void 0,this.style=this.style.bind(this)}return i.prototype._afterAllSync=function(e){var t=this;this._pending++;var r=this._pending;cy.raf(function(){r===t._pending&&e()})},i.prototype._getTag=function(){if(this._tag)return this._tag;if(this._autoGenerateTag){var e=typeof window>"u"?{textContent:""}:document.createElement("style");return typeof document<"u"&&document.head.appendChild(e),this._tag=e,e}},i.prototype._styleUpdated=function(){var e=this,t=this._freeStyle.changeId,r=this._lastFreeStyleChangeId;!this._pendingRawChange&&t===r||(this._lastFreeStyleChangeId=t,this._pendingRawChange=!1,this._afterAllSync(function(){return e.forceRenderStyles()}))},i.prototype.style=function(){var e=this._freeStyle.registerStyle(uy.convertToStyles(cy.extend.apply(void 0,arguments)));return this._styleUpdated(),e},i}();dy.TypeStyle=bse});var xI=D(yI=>{"use strict";Object.defineProperty(yI,"__esModule",{value:!0})});var wI=D(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});var hy=_I();qi.TypeStyle=hy.TypeStyle;var vse=xI();qi.types=vse;var fy=ly();qi.extend=fy.extend;qi.classes=fy.classes;qi.media=fy.media;var Gs=new hy.TypeStyle({autoGenerateTag:!0});qi.setStylesTarget=Gs.setStylesTarget;qi.cssRaw=Gs.cssRaw;qi.cssRule=Gs.cssRule;qi.forceRenderStyles=Gs.forceRenderStyles;qi.fontFace=Gs.fontFace;qi.getStyles=Gs.getStyles;qi.keyframes=Gs.keyframes;qi.reinit=Gs.reinit;qi.style=Gs.style;qi.stylesheet=Gs.stylesheet;function _se(i){var e=new hy.TypeStyle({autoGenerateTag:!1});return i&&e.setStylesTarget(i),e}qi.createTypeStyle=_se});var SI,vn,CI=w(()=>{SI=z(wI());(function(i){let e={breadCrumb:{container:{$nest:{"&:first-child svg":{bottom:"1px",marginLeft:"0px",position:"relative"},"&:hover":{backgroundColor:"var(--jp-layout-color2)"},[".jp-mod-dropTarget&"]:{backgroundColor:"var(--jp-brand-color2)",opacity:.7}}},element:{borderRadius:"var(--jp-border-radius)",cursor:"pointer",margin:"0px 2px",padding:"0px 2px",height:"16px",width:"16px",verticalAlign:"middle"}},commandPaletteHeader:{container:{height:"14px",margin:"0 14px 0 auto"},element:{height:"14px",width:"14px"},options:{elementPosition:"center"}},commandPaletteItem:{element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},launcherCard:{container:{height:"52px",width:"52px"},element:{height:"52px",width:"52px"},options:{elementPosition:"center"}},launcherSection:{container:{boxSizing:"border-box",marginRight:"12px",height:"32px",width:"32px"},element:{height:"32px",width:"32px"},options:{elementPosition:"center"}},listing:{container:{flex:"0 0 20px",marginRight:"4px",position:"relative"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},listingHeaderItem:{container:{display:"inline",height:"16px",width:"16px"},element:{height:"auto",margin:"-2px 0 0 0",width:"20px"},options:{elementPosition:"center"}},mainAreaTab:{container:{$nest:{".lm-DockPanel-tabBar &":{marginRight:"4px"}}},element:{$nest:{".lm-DockPanel-tabBar &":{height:"14px",width:"14px"}}},options:{elementPosition:"center"}},menuItem:{container:{display:"inline-block",verticalAlign:"middle"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},runningItem:{container:{margin:"0px 4px 0px 4px"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},select:{container:{pointerEvents:"none"},element:{position:"absolute",height:"auto",width:"16px"}},settingsEditor:{container:{display:"flex",flex:"0 0 20px",margin:"0 3px 0 0",position:"relative",height:"20px",width:"20px"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},sideBar:{element:{height:"auto",width:"20px"},options:{elementPosition:"center"}},splash:{container:{animation:"0.3s fade-in linear forwards",height:"100%",width:"100%",zIndex:1},element:{width:"100px"},options:{elementPosition:"center"}},statusBar:{element:{left:"0px",top:"0px",height:"18px",width:"20px",position:"relative"}}
9,toolbarButton:{container:{display:"inline-block",verticalAlign:"middle"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}}};function t(f){return{container:{alignItems:"center",display:"flex"},element:{display:"block",...f}}}let r={center:t({margin:"0 auto",width:"100%"}),top:t({margin:"0 0 auto 0"}),right:t({margin:"0 0 0 auto"}),bottom:t({margin:"auto 0 0 0"}),left:t({margin:"0 auto 0 0"}),"top right":t({margin:"0 0 auto auto"}),"bottom right":t({margin:"auto 0 0 auto"}),"bottom left":t({margin:"auto auto 0 0"}),"top left":t({margin:"0 auto 0 auto"})};function n(f){return{element:{height:f,width:f}}}let s={small:n("14px"),normal:n("16px"),large:n("20px"),xlarge:n("24px")};function o(f){return{container:Object.assign({},...f.map(m=>m.container)),element:Object.assign({},...f.map(m=>m.element))}}function a(f){return f?(Array.isArray(f)||(f=[f]),f.map(m=>typeof m=="string"?e[m]:m)):[]}function l(f){let m=Object.assign({},...f.map(b=>b.options));return m.elementPosition&&f.unshift(r[m.elementPosition]),m.elementSize&&f.unshift(s[m.elementSize]),o(f)}function u(f){var m;return(0,SI.style)({...f.container,$nest:{...(m=f.container)===null||m===void 0?void 0:m.$nest,svg:f.element}})}let c=new Map;function d(f){if(!f||Object.keys(f).length===0)return"";let{elementPosition:m,elementSize:b,stylesheet:y,...x}=f,M={...m&&{elementPosition:m},...b&&{elementSize:b}},T=typeof y=="string"&&Object.keys(x).length===0,E=T?[y,m,b].join(","):"";if(T&&c.has(E))return c.get(E);let A=a(y);A.push({element:x,options:M});let R=u(l(A));return T&&c.set(E,R),R}i.styleClass=d})(vn||(vn={}))});var Kh=w(()=>{CI()});function yse(i){return i.map(e=>e&&typeof e=="object"?Object.keys(e).map(t=>!!e[t]&&t):typeof e=="string"?e.split(/\s+/):[]).reduce((e,t)=>e.concat(t),[]).filter(e=>!!e)}function oi(...i){return yse(i).join(" ")}function MI(i,{ignore:e=[]}={}){return i.getAttributeNames().reduce((t,r)=>(r==="style"||e.includes(r)||(r.startsWith("data")?t[r]=i.getAttribute(r):t[II.Text.camelCase(r)]=i.getAttribute(r)),t),{})}var II,No=w(()=>{II=z(Ii())});var EI,bi,TI,U,Ks,xse,wse,py=w(()=>{EI=z(Ze());Qe();bi=z(Je()),TI=z(QC());rI();sI();ay();Kh();No();U=class{static remove(e){for(;e.firstChild;)e.firstChild.remove();return e.className="",e}static resolve({icon:e}){if(e instanceof U)return e;if(typeof e=="string"){let t=U._instances.get(e);return t||(U._debug&&console.warn(`Lookup failed for icon, creating loading icon. icon: ${e}`),new U({name:e,svgstr:c0,_loading:!0}))}return new U(e)}static resolveElement({icon:e,iconClass:t,fallback:r,...n}){return Ks.isResolvable(e)?U.resolve({icon:e}).element(n):!t&&r?r.element(n):(n.className=oi(t,n.className),Ks.blankElement(n))}static resolveReact({icon:e,iconClass:t,fallback:r,...n}){if(!Ks.isResolvable(e))return!t&&r?bi.default.createElement(r.react,{...n}):(n.className=oi(t,n.className),bi.default.createElement(Ks.blankReact,{...n}));let s=U.resolve({icon:e});return bi.default.createElement(s.react,{...n})}static resolveSvg({name:e,svgstr:t}){let r=new DOMParser().parseFromString(Ks.svgstrShim(t),"image/svg+xml"),n=r.querySelector("parsererror");if(n){let s=`SVG HTML was malformed for LabIcon instance. 10name: ${e}, svgstr: ${t}`;return U._debug?(console.error(s),n):(console.warn(s),null)}else return r.documentElement}static toggleDebug(e){U._debug=e??!U._debug}constructor({name:e,svgstr:t,render:r,unrender:n,_loading:s=!1}){if(this._props={},this._svgReplaced=new X(this),this._svgElement=void 0,this._svgInnerHTML=void 0,this._svgReactAttrs=void 0,!(e&&t))return console.error(`When defining a new LabIcon, name and svgstr must both be non-empty strings. name: ${e}, svgstr: ${t}`),xse;if(this._loading=s,U._instances.has(e)){let o=U._instances.get(e);return this._loading?(o.svgstr=t,this._loading=!1,o):(U._debug&&console.warn(`Redefining previously loaded icon svgstr. name: ${e}, svgstrOld: ${o.svgstr}, svgstr: ${t}`),o.svgstr=t,o)}this.name=e,this.react=this._initReact(e),this.svgstr=t,this._initRender({render:r,unrender:n}),U._instances.set(this.name,this)}bindprops(e){let t=Object.create(this);return t._props=e,t.react=t._initReact(t.name+"_bind"),t}element(e={}){var t;let{className:r,container:n,label:s,title:o,tag:a="div",...l}={...this._props,...e},u=n?.firstChild;if(((t=u?.dataset)===null||t===void 0?void 0:t.iconId)===this._uuid)return u;if(!this.svgElement)return document.createElement("div");if(n)for(;n.firstChild;)n.firstChild.remove();else a&&(n=document.createElement(a));let c=this.svgElement.cloneNode(!0);return n?(s!=null&&(n.textContent=s),Ks.initContainer({container:n,className:r,styleProps:l,title:o}),n.appendChild(c),n):(s&&console.warn(),c)}render(e,t){var r;let n=(r=t?.children)===null||r===void 0?void 0:r[0];
10typeof n!="string"&&(n=void 0),this.element({container:e,label:n,...t?.props})}get svgElement(){return this._svgElement===void 0&&(this._svgElement=this._initSvg({uuid:this._uuid})),this._svgElement}get svgInnerHTML(){return this._svgInnerHTML===void 0&&(this.svgElement===null?this._svgInnerHTML=null:this._svgInnerHTML=this.svgElement.innerHTML),this._svgInnerHTML}get svgReactAttrs(){return this._svgReactAttrs===void 0&&(this.svgElement===null?this._svgReactAttrs=null:this._svgReactAttrs=MI(this.svgElement,{ignore:["data-icon-id"]})),this._svgReactAttrs}get svgstr(){return this._svgstr}set svgstr(e){this._svgstr=e;let t=EI.UUID.uuid4(),r=this._uuid;this._uuid=t,this._svgElement=void 0,this._svgInnerHTML=void 0,this._svgReactAttrs=void 0,document.querySelectorAll(`[data-icon-id="${r}"]`).forEach(n=>{this.svgElement&&n.replaceWith(this.svgElement.cloneNode(!0))}),this._svgReplaced.emit()}_initReact(e){let t=bi.default.forwardRef((r={},n)=>{let{className:s,container:o,label:a,title:l,slot:u,tag:c="div",...d}={...this._props,...r},[,f]=bi.default.useState(this._uuid);bi.default.useEffect(()=>{let x=()=>{f(this._uuid)};return this._svgReplaced.connect(x),()=>{this._svgReplaced.disconnect(x)}});let m=c??bi.default.Fragment;if(!(this.svgInnerHTML&&this.svgReactAttrs))return bi.default.createElement(bi.default.Fragment,null);let b={...this.svgReactAttrs};c||Object.assign(b,{className:s||d?oi(s,vn.styleClass(d)):void 0,title:l,slot:u});let y=bi.default.createElement("svg",{...b,...this.svgReactAttrs,dangerouslySetInnerHTML:{__html:this.svgInnerHTML},ref:n});if(o)return Ks.initContainer({container:o,className:s,styleProps:d,title:l}),bi.default.createElement(bi.default.Fragment,null,y,a);{let x={};return m!==bi.default.Fragment&&(x={className:s||d?oi(s,vn.styleClass(d)):void 0,title:l,slot:u}),bi.default.createElement(m,{...x},y,a)}});return t.displayName=`LabIcon_${e}`,t}_initRender({render:e,unrender:t}){e?(this.render=e,t&&(this.unrender=t)):t&&console.warn("In _initRender, ignoring unrender arg since render is undefined")}_initSvg({title:e,uuid:t}={}){let r=U.resolveSvg(this);return r&&(r.tagName!=="parsererror"&&(r.dataset.icon=this.name,t&&(r.dataset.iconId=t),e&&Ks.setTitleSvg(r,e)),r)}};U._debug=!1;U._instances=new Map;(function(i){function e({className:u="",container:c,label:d,title:f,tag:m="div",slot:b,...y}){if(c?.className===u)return c;if(c)for(;c.firstChild;)c.firstChild.remove();else c=document.createElement(m??"div");return d!=null&&(c.textContent=d),i.initContainer({container:c,className:u,styleProps:y,title:f}),c}i.blankElement=e,i.blankReact=bi.default.forwardRef(({className:u="",container:c,label:d,title:f,tag:m="div",...b},y)=>{let x=m??"div";return c?(t({container:c,className:u,styleProps:b,title:f}),bi.default.createElement(bi.default.Fragment,null)):bi.default.createElement(x,{className:oi(u,vn.styleClass(b))},y&&wse.react({ref:y}),d)}),i.blankReact.displayName="BlankReact";function t({container:u,className:c,styleProps:d,title:f}){f!=null&&(u.title=f);let m=vn.styleClass(d);if(c!=null){let b=oi(c,m);return u.className=b,b}else return m?(u.classList.add(m),m):""}i.initContainer=t;function r(u){return!!(u&&(typeof u=="string"||u.name&&u.svgstr))}i.isResolvable=r;function n(u,c){let d=u.getElementsByTagName("title");if(d.length)d[0].textContent=c;else{let f=document.createElement("title");f.textContent=c,u.appendChild(f)}}i.setTitleSvg=n;function s(u,c=!0){let[,d,f]=decodeURIComponent(u).replace(/>\s*\n\s*</g,"><").replace(/\s*\n\s*/g," ").match(c?/^(?:data:.*?(;base64)?,)?(.*)/:/(?:(base64).*)?(<svg.*)/);return d?atob(f):f}i.svgstrShim=s;class o{constructor(c,d){this._icon=c,this._rendererOptions=d}render(c,d){}}i.Renderer=o;class a extends o{render(c,d){var f,m;let b=(f=d?.children)===null||f===void 0?void 0:f[0];typeof b!="string"&&(b=void 0),this._icon.element({container:c,label:b,...(m=this._rendererOptions)===null||m===void 0?void 0:m.props,...d?.props})}}i.ElementRenderer=a;class l extends o{constructor(){super(...arguments),this._rootDOM=null}render(c,d){var f,m;let b=(f=d?.children)===null||f===void 0?void 0:f[0];typeof b!="string"&&(b=void 0);let y=this._icon;this._rootDOM!==null&&this._rootDOM.unmount(),this._rootDOM=(0,TI.createRoot)(c),this._rootDOM.render(bi.default.createElement(y.react,{container:c,label:b,...(m=this._rendererOptions)===null||m===void 0?void 0:m.props,...d?.props}))}unrender(c){this._rootDOM!==null&&(this._rootDOM.unmount(),this._rootDOM=null)}}i.ReactRenderer=l})(Ks||(Ks={}));
10xse=new U({name:"ui-components:bad",svgstr:nI}),wse=new U({name:"ui-components:blank",svgstr:oI})});var AI,kI=w(()=>{AI="/build/_assets/add-above-5YUGWHEL.svg"});var DI,RI=w(()=>{DI="/build/_assets/add-below-XTZUELQC.svg"});var LI,OI=w(()=>{LI="/build/_assets/add-R4QSNJUY.svg"});var FI,$I=w(()=>{FI="/build/_assets/bell-XTFPCACC.svg"});var NI,PI=w(()=>{NI="/build/_assets/bug-dot-GJV4IWQD.svg"});var BI,zI=w(()=>{BI="/build/_assets/bug-4MAGJLKH.svg"});var HI,qI=w(()=>{HI="/build/_assets/build-4P67M2HU.svg"});var VI,jI=w(()=>{VI="/build/_assets/caret-down-empty-C224CN6A.svg"});var WI,UI=w(()=>{WI="/build/_assets/caret-down-empty-thin-62EUTBPL.svg"});var KI,GI=w(()=>{KI="/build/_assets/caret-down-CYALMSQQ.svg"});var XI,YI=w(()=>{XI="/build/_assets/caret-left-2YD4AJB4.svg"});var ZI,JI=w(()=>{ZI="/build/_assets/caret-right-IW4L2CPJ.svg"});var eM,QI=w(()=>{eM="/build/_assets/caret-up-empty-thin-SETVTKOF.svg"});var iM,tM=w(()=>{iM="/build/_assets/caret-up-TOMNEAKL.svg"});var nM,rM=w(()=>{nM="/build/_assets/case-sensitive-5LX6IVLO.svg"});var oM,sM=w(()=>{oM="/build/_assets/check-BGI5YJWW.svg"});var lM,aM=w(()=>{lM="/build/_assets/circle-empty-JWWVJYTX.svg"});var cM,uM=w(()=>{cM="/build/_assets/circle-CFDAPZA5.svg"});var hM,dM=w(()=>{hM="/build/_assets/clear-6JK5E7JJ.svg"});var pM,fM=w(()=>{pM="/build/_assets/close-KY5U6SOK.svg"});var gM,mM=w(()=>{gM="/build/_assets/code-check-THKPADVL.svg"});var vM,bM=w(()=>{vM="/build/_assets/code-7PPO5FGB.svg"});var yM,_M=w(()=>{yM="/build/_assets/collapse-all-IGZNY6Q5.svg"});var wM,xM=w(()=>{wM="/build/_assets/collapse-C2PMEO4Q.svg"});var CM,SM=w(()=>{CM="/build/_assets/console-K43B5JT7.svg"});var MM,IM=w(()=>{MM="/build/_assets/copy-FP6F2OIW.svg"});var TM,EM=w(()=>{TM="/build/_assets/copyright-6OHU5QAV.svg"});var AM,kM=w(()=>{AM="/build/_assets/cut-DDW54OJN.svg"});var DM,RM=w(()=>{DM="/build/_assets/delete-U532KYVM.svg"});var LM,OM=w(()=>{LM="/build/_assets/download-4ASFXPY5.svg"});var FM,$M=w(()=>{FM="/build/_assets/duplicate-RAKUKHXI.svg"});var NM,PM=w(()=>{NM="/build/_assets/edit-P66G3NF6.svg"});var BM,zM=w(()=>{BM="/build/_assets/ellipses-3ORICEZC.svg"});var HM,qM=w(()=>{HM="/build/_assets/error-BSXZ5JTK.svg"});var VM,jM=w(()=>{VM="/build/_assets/expand-all-QG3DD7QQ.svg"});var WM,UM=w(()=>{WM="/build/_assets/expand-77OPYSCB.svg"});var KM,GM=w(()=>{KM="/build/_assets/extension-KA4GVHFP.svg"});var XM,YM=w(()=>{XM="/build/_assets/fast-forward-7ARDBRH6.svg"});var ZM,JM=w(()=>{ZM="/build/_assets/file-QCU7GBDL.svg"});var e9,QM=w(()=>{e9="/build/_assets/file-upload-IT6YG7XR.svg"});var i9,t9=w(()=>{i9="/build/_assets/filter-dot-I75JHRGQ.svg"});var n9,r9=w(()=>{n9="/build/_assets/filter-list-TZYMSOVE.svg"});var o9,s9=w(()=>{o9="/build/_assets/filter-KOH6RC3B.svg"});var l9,a9=w(()=>{l9="/build/_assets/folder-favorite-P6GJXVI6.svg"});var c9,u9=w(()=>{c9="/build/_assets/folder-BURVVL75.svg"});var h9,d9=w(()=>{h9="/build/_assets/history-XTLSRP5T.svg"});var p9,f9=w(()=>{p9="/build/_assets/home-GKXJSXEV.svg"});var g9,m9=w(()=>{g9="/build/_assets/html5-5JBVHEQW.svg"});var v9,b9=w(()=>{v9="/build/_assets/image-QI2XIR4Y.svg"});var y9,_9=w(()=>{y9="/build/_assets/info-JWBOWQKJ.svg"});var w9,x9=w(()=>{w9="/build/_assets/inspector-PEOMAXL2.svg"});var C9,S9=w(()=>{C9="/build/_assets/json-ULBJNO2U.svg"});var M9,I9=w(()=>{M9="/build/_assets/julia-JGNMOTXV.svg"});var T9,E9=w(()=>{T9="/build/_assets/jupyter-favicon-WGOYKUNP.svg"});var A9,k9=w(()=>{A9="/build/_assets/jupyter-USEHDJ5T.svg"});var D9,R9=w(()=>{D9="/build/_assets/jupyterlab-wordmark-FSXWYMZG.svg"});var L9,O9=w(()=>{L9="/build/_assets/kernel-E46TPADG.svg"});var F9,$9=w(()=>{F9="/build/_assets/keyboard-HMYUYZPR.svg"});var N9,P9=w(()=>{N9="/build/_assets/launch-MQLWQPN7.svg"});var B9,z9=w(()=>{B9="/build/_assets/launcher-ARJ62GM7.svg"});var H9,q9=w(()=>{H9="/build/_assets/line-form-HY4KWCNU.svg"});var V9,j9=w(()=>{V9="/build/_assets/link-C4HM3C65.svg"});var W9,U9=w(()=>{W9="/build/_assets/list-YSFA3VHH.svg"});var K9,G9=w(()=>{K9="/build/_assets/lock-DPKNOS2X.svg"});var X9,Y9=w(()=>{X9="/build/_assets/markdown-MCLUEZEQ.svg"});var Z9,J9=w(()=>{Z9="/build/_assets/mermaid-ISW5FHBY.svg"});var eE,Q9=w(()=>{eE="/build/_assets/move-down-LZFDSSAO.svg"});var iE,tE=w(()=>{iE="/build/_assets/move-up-7KAUBHLO.svg"});var nE,rE=w(()=>{nE="/build/_assets/new-folder-4POV3OI6.svg"});var oE,sE=w(()=>{oE="/build/_assets/not-trusted-RPAXQIYX.svg"});var lE,aE=w(()=>{lE="/build/_assets/notebook-TNDUP2XK.svg"});var cE,uE=w(()=>{cE="/build/_assets/numbering-MCTHQ3MW.svg"});var hE,dE=w(()=>{hE="/build/_assets/offline-bolt-RWKC3GUI.svg"});var pE,fE=w(()=>{pE="/build/_assets/palette-CTCHBG7A.svg"});var gE,mE=w(()=>{gE="/build/_assets/paste-HU6K3T27.svg"});var vE,bE=w(()=>{vE="/build/_assets/pdf-62Q5YWM4.svg"});var yE,_E=w(()=>{yE="/build/_assets/python-B77NBISZ.svg"});var wE,xE=w(()=>{wE="/build/_assets/r-kernel-ZNBGLYKY.svg"});var CE,SE=w(()=>{CE="/build/_assets/react-ZAPRXB2F.svg"});var ME,IE=w(()=>{ME="/build/_assets/redo-5TXV6DBU.svg"});var TE,EE=w(()=>{TE="/build/_assets/regex-7KC5URCX.svg"});var AE,kE=w(()=>{AE="/build/_assets/run-ZPPLPQFU.svg"});var DE,RE=w(()=>{DE="/build/_assets/running-TCIMS2WE.svg"});var LE,OE=w(()=>{LE="/build/_assets/save-FSPSDJ5V.svg"});var FE,$E=w(()=>{FE="/build/_assets/search-O43R74CO.svg"});var NE,PE=w(()=>{NE="/build/_assets/settings-IVH6KP2C.svg"});var BE,zE=w(()=>{BE="/build/_assets/share-ZS7CIGX5.svg"});var HE,qE=w(()=>{HE="/build/_assets/spreadsheet-JBVNHDBW.svg"});var VE,jE=w(()=>{VE="/build/_assets/stop-RBUW2A4K.svg"});var WE,UE=w(()=>{WE="/build/_assets/tab-M5UDZMG6.svg"});var KE,GE=w(()=>{KE="/build/_assets/table-rows-CBJWS37D.svg"});var XE,YE=w(()=>{XE="/build/_assets/tag-RCD4RZM3.svg"});var ZE,JE=w(()=>{ZE="/build/_assets/terminal-BKHLQYWP.svg"});var eT,QE=w(()=>{eT="/build/_assets/text-editor-KKUF4F2Y.svg"});var iT,tT=w(()=>{iT="/build/_assets/toc-AVEQ4F4P.svg"});var nT,rT=w(()=>{nT="/build/_assets/tree-view-BKKNCOY2.svg"});var oT,sT=w(()=>{oT="/build/_assets/trusted-HLBBEL7Z.svg"});var lT,aT=w(()=>{lT="/build/_assets/undo-BRNP5XMB.svg"});var cT,uT=w(()=>{cT="/build/_assets/user-UEYWBMNL.svg"});var hT,dT=w(()=>{hT="/build/_assets/users-ZOUO3MZX.svg"});var pT,fT=w(()=>{pT="/build/_assets/vega-YCXHCRWI.svg"});var gT,mT=w(()=>{gT="/build/_assets/word-ZGJUELHU.svg"});var vT,bT=w(()=>{vT="/build/_assets/yaml-EZ7PS4QK.svg"});var ORe,LRe,_T,$Re,FRe,PRe,NRe,yT,zRe,BRe,qRe,xT,HRe,jRe,VRe,g0,wT,ST,URe,b0,WRe,GRe,KRe,YRe,XRe,JRe,ZRe,QRe,eDe,tDe,iDe,rDe,CT,nDe,sDe,oDe,aDe,lDe,uDe,cDe,dDe,hDe,IT,fDe,pDe,mDe,gDe,bDe,vDe,_De,yDe,xDe,wDe,SDe,CDe,IDe,MT,MDe,EDe,TDe,kDe,ADe,RDe,DDe,ODe,LDe,$De,FDe,PDe,NDe,zDe,BDe,ET,qDe,HDe,jDe,VDe,UDe,WDe,GDe,TT,KDe,YDe,XDe,JDe,ZDe,QDe,eOe,tOe,kT,iOe,rOe,nOe,AT,sOe,oOe,aOe,lOe,uOe,cOe,dOe,hOe,fOe,pOe,Yh=w(()=>{py();kI();RI();OI();$I();PI();zI();qI();jI();UI();GI();YI();JI();QI();tM();rM();sM();aM();uM();dM();fM();mM();bM();_M();xM();SM();IM();EM();kM();RM();OM();$M();PM();zM();qM();jM();UM();GM();YM();JM();QM();t9();r9();s9();a9();u9();d9();f9();m9();b9();_9();x9();S9();I9();E9();k9();R9();O9();$9();P9();z9();q9();j9();U9();G9();
10Y9();J9();Q9();tE();rE();sE();aE();uE();dE();fE();mE();bE();_E();xE();SE();IE();ay();EE();kE();RE();OE();$E();PE();zE();qE();jE();UE();GE();YE();JE();QE();tT();rT();sT();aT();uT();dT();fT();mT();bT();ORe=new U({name:"ui-components:add-above",svgstr:AI}),LRe=new U({name:"ui-components:add-below",svgstr:DI}),_T=new U({name:"ui-components:add",svgstr:LI}),$Re=new U({name:"ui-components:bell",svgstr:FI}),FRe=new U({name:"ui-components:bug-dot",svgstr:NI}),PRe=new U({name:"ui-components:bug",svgstr:BI}),NRe=new U({name:"ui-components:build",svgstr:HI}),yT=new U({name:"ui-components:caret-down-empty",svgstr:VI}),zRe=new U({name:"ui-components:caret-down-empty-thin",svgstr:WI}),BRe=new U({name:"ui-components:caret-down",svgstr:KI}),qRe=new U({name:"ui-components:caret-left",svgstr:XI}),xT=new U({name:"ui-components:caret-right",svgstr:ZI}),HRe=new U({name:"ui-components:caret-up-empty-thin",svgstr:eM}),jRe=new U({name:"ui-components:caret-up",svgstr:iM}),VRe=new U({name:"ui-components:case-sensitive",svgstr:nM}),g0=new U({name:"ui-components:check",svgstr:oM}),wT=new U({name:"ui-components:circle-empty",svgstr:lM}),ST=new U({name:"ui-components:circle",svgstr:cM}),URe=new U({name:"ui-components:clear",svgstr:hM}),b0=new U({name:"ui-components:close",svgstr:pM}),WRe=new U({name:"ui-components:code-check",svgstr:gM}),GRe=new U({name:"ui-components:code",svgstr:vM}),KRe=new U({name:"ui-components:collapse-all",svgstr:yM}),YRe=new U({name:"ui-components:collapse",svgstr:wM}),XRe=new U({name:"ui-components:console",svgstr:CM}),JRe=new U({name:"ui-components:copy",svgstr:MM}),ZRe=new U({name:"ui-components:copyright",svgstr:TM}),QRe=new U({name:"ui-components:cut",svgstr:AM}),eDe=new U({name:"ui-components:delete",svgstr:DM}),tDe=new U({name:"ui-components:download",svgstr:LM}),iDe=new U({name:"ui-components:duplicate",svgstr:FM}),rDe=new U({name:"ui-components:edit",svgstr:NM}),CT=new U({name:"ui-components:ellipses",svgstr:BM}),nDe=new U({name:"ui-components:error",svgstr:HM}),sDe=new U({name:"ui-components:expand-all",svgstr:VM}),oDe=new U({name:"ui-components:expand",svgstr:WM}),aDe=new U({name:"ui-components:extension",svgstr:KM}),lDe=new U({name:"ui-components:fast-forward",svgstr:XM}),uDe=new U({name:"ui-components:file",svgstr:ZM}),cDe=new U({name:"ui-components:file-upload",svgstr:e9}),dDe=new U({name:"ui-components:filter-dot",svgstr:i9}),hDe=new U({name:"ui-components:filter",svgstr:o9}),IT=new U({name:"ui-components:filter-list",svgstr:n9}),fDe=new U({name:"ui-components:folder-favorite",svgstr:l9}),pDe=new U({name:"ui-components:folder",svgstr:c9}),mDe=new U({name:"ui-components:history",svgstr:h9}),gDe=new U({name:"ui-components:home",svgstr:p9}),bDe=new U({name:"ui-components:html5",svgstr:g9}),vDe=new U({name:"ui-components:image",svgstr:v9}),_De=new U({name:"ui-components:info",svgstr:y9}),yDe=new U({name:"ui-components:inspector",svgstr:w9}),xDe=new U({name:"ui-components:json",svgstr:C9}),wDe=new U({name:"ui-components:julia",svgstr:M9}),SDe=new U({name:"ui-components:jupyter-favicon",svgstr:T9}),CDe=new U({name:"ui-components:jupyter",svgstr:A9}),IDe=new U({name:"ui-components:jupyterlab-wordmark",svgstr:D9}),MT=new U({name:"ui-components:kernel",svgstr:L9}),MDe=new U({name:"ui-components:keyboard",svgstr:F9}),EDe=new U({name:"ui-components:launch",svgstr:N9}),TDe=new U({name:"ui-components:launcher",svgstr:B9}),kDe=new U({name:"ui-components:line-form",svgstr:H9}),ADe=new U({name:"ui-components:link",svgstr:V9}),RDe=new U({name:"ui-components:list",svgstr:W9}),DDe=new U({name:"ui-components:lock",svgstr:K9}),ODe=new U({name:"ui-components:markdown",svgstr:X9}),LDe=new U({name:"ui-components:mermaid",svgstr:Z9}),$De=new U({name:"ui-components:move-down",svgstr:eE}),FDe=new U({name:"ui-components:move-up",svgstr:iE}),PDe=new U({name:"ui-components:new-folder",svgstr:nE}),NDe=new U({name:"ui-components:not-trusted",svgstr:oE}),zDe=new U({name:"ui-components:notebook",svgstr:lE}),BDe=new U({name:"ui-components:numbering",svgstr:cE}),ET=new U({name:"ui-components:offline-bolt",svgstr:hE}),qDe=new U({name:"ui-components:palette",svgstr:pE}),HDe=new U({name:"ui-components:paste",svgstr:gE}),jDe=new U({name:"ui-components:pdf",svgstr:vE}),VDe=new U({name:"ui-components:python",svgstr:yE}),UDe=new U({name:"ui-components:r-kernel",svgstr:wE}
10),WDe=new U({name:"ui-components:react",svgstr:CE}),GDe=new U({name:"ui-components:redo",svgstr:ME}),TT=new U({name:"ui-components:refresh",svgstr:c0}),KDe=new U({name:"ui-components:regex",svgstr:TE}),YDe=new U({name:"ui-components:run",svgstr:AE}),XDe=new U({name:"ui-components:running",svgstr:DE}),JDe=new U({name:"ui-components:save",svgstr:LE}),ZDe=new U({name:"ui-components:search",svgstr:FE}),QDe=new U({name:"ui-components:settings",svgstr:NE}),eOe=new U({name:"ui-components:share",svgstr:BE}),tOe=new U({name:"ui-components:spreadsheet",svgstr:HE}),kT=new U({name:"ui-components:stop",svgstr:VE}),iOe=new U({name:"ui-components:tab",svgstr:WE}),rOe=new U({name:"ui-components:table-rows",svgstr:KE}),nOe=new U({name:"ui-components:tag",svgstr:XE}),AT=new U({name:"ui-components:terminal",svgstr:ZE}),sOe=new U({name:"ui-components:text-editor",svgstr:eT}),oOe=new U({name:"ui-components:toc",svgstr:iT}),aOe=new U({name:"ui-components:tree-view",svgstr:nT}),lOe=new U({name:"ui-components:trusted",svgstr:oT}),uOe=new U({name:"ui-components:undo",svgstr:lT}),cOe=new U({name:"ui-components:user",svgstr:cT}),dOe=new U({name:"ui-components:users",svgstr:hT}),hOe=new U({name:"ui-components:vega",svgstr:pT}),fOe=new U({name:"ui-components:word",svgstr:gT}),pOe=new U({name:"ui-components:yaml",svgstr:vT})});var Va,RT,DT,OT=w(()=>{(function(i){function e(v,_,h=0,p=-1){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;p<h?C=p+1+(g-h):C=p-h+1;for(let I=0;I<C;++I){let F=(h+I)%g;if(v[F]===_)return F}return-1}i.firstIndexOf=e;function t(v,_,h=-1,p=0){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;h<p?C=h+1+(g-p):C=h-p+1;for(let I=0;I<C;++I){let F=(h-I+g)%g;if(v[F]===_)return F}return-1}i.lastIndexOf=t;function r(v,_,h=0,p=-1){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;p<h?C=p+1+(g-h):C=p-h+1;for(let I=0;I<C;++I){let F=(h+I)%g;if(_(v[F],F))return F}return-1}i.findFirstIndex=r;function n(v,_,h=-1,p=0){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;h<p?C=h+1+(g-p):C=h-p+1;for(let I=0;I<C;++I){let F=(h-I+g)%g;if(_(v[F],F))return F}return-1}i.findLastIndex=n;function s(v,_,h=0,p=-1){let g=r(v,_,h,p);return g!==-1?v[g]:void 0}i.findFirstValue=s;function o(v,_,h=-1,p=0){let g=n(v,_,h,p);return g!==-1?v[g]:void 0}i.findLastValue=o;function a(v,_,h,p=0,g=-1){let C=v.length;if(C===0)return 0;p<0?p=Math.max(0,p+C):p=Math.min(p,C-1),g<0?g=Math.max(0,g+C):g=Math.min(g,C-1);let I=p,F=g-p+1;for(;F>0;){let P=F>>1,K=I+P;h(v[K],_)<0?(I=K+1,F-=P+1):F=P}return I}i.lowerBound=a;function l(v,_,h,p=0,g=-1){let C=v.length;if(C===0)return 0;p<0?p=Math.max(0,p+C):p=Math.min(p,C-1),g<0?g=Math.max(0,g+C):g=Math.min(g,C-1);let I=p,F=g-p+1;for(;F>0;){let P=F>>1,K=I+P;h(v[K],_)>0?F=P:(I=K+1,F-=P+1)}return I}i.upperBound=l;function u(v,_,h){if(v===_)return!0;if(v.length!==_.length)return!1;for(let p=0,g=v.length;p<g;++p)if(h?!h(v[p],_[p]):v[p]!==_[p])return!1;return!0}i.shallowEqual=u;function c(v,_={}){let{start:h,stop:p,step:g}=_;if(g===void 0&&(g=1),g===0)throw new Error("Slice `step` cannot be zero.");let C=v.length;h===void 0?h=g<0?C-1:0:h<0?h=Math.max(h+C,g<0?-1:0):h>=C&&(h=g<0?C-1:C),p===void 0?p=g<0?-1:C:p<0?p=Math.max(p+C,g<0?-1:0):p>=C&&(p=g<0?C-1:C);let I;g<0&&p>=h||g>0&&h>=p?I=0:g<0?I=Math.floor((p-h+1)/g+1):I=Math.floor((p-h-1)/g+1);let F=[];for(let P=0;P<I;++P)F[P]=v[h+P*g];return F}i.slice=c;function d(v,_,h){let p=v.length;if(p<=1||(_<0?_=Math.max(0,_+p):_=Math.min(_,p-1),h<0?h=Math.max(0,h+p):h=Math.min(h,p-1),_===h))return;let g=v[_],C=_<h?1:-1;for(let I=_;I!==h;I+=C)v[I]=v[I+C];v[h]=g}i.move=d;function f(v,_=0,h=-1){let p=v.length;if(!(p<=1))for(_<0?_=Math.max(0,_+p):_=Math.min(_,p-1),h<0?h=Math.max(0,h+p):h=Math.min(h,p-1);_<h;){let g=v[_],C=v[h];v[_++]=C,v[h--]=g}}i.reverse=f;function m(v,_,h=0,p=-1){let g=v.length;if(g<=1||(h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1),h>=p))return;let C=p-h+1;if(_>0?_=_%C:_<0&&(_=(_%C+C)%C),_===0)return;let I=h+_;f(v,h,I-1),f(v,I,p),f(v,h,p)}i.rotate=m;function b(v,_,h=0,p=-1){let g=v.length;if(g===0)return;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;p<h?C=p+1+(g-h):C=p-h+1;for(let I=0;I<C;++I)v[(h+I)%g]=_}i.fill=b;function y(v,_,h){let p=v.length;_<0?_=Math.max(0,_+p):_=Math.min(_,p);for(let g=p;g>_;--g)v[g]=v[g-1];v[_]=h}i.insert=y;function x(v,_){let h=v.length;if(_<0&&(_+=h),_<0||_>=h)return;let p=v[_];for(let g=_+1;g<h;++g)v[g-1]=v[g];return v.length=h-1,p}i.removeAt=x;function M(v,_,h=0,p=-1){let g=e(v,_,h,p);return g!==-1&&x(v,g),g}i.removeFirstOf=M;function T(v,_,h=-1,p=0){let g=t(v,_,h,p);return g!==-1&&x(v,g),g}i.removeLastOf=T;function E(v,_,h=0,p=-1){let g=v.length;if(g===0)return 0;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C=0;for(let I=0;I<g;++I)h<=p&&I>=h&&I<=p&&v[I]===_||p<h&&(I<=p||I>=h)&&v[I]===_?C++:C>
100&&(v[I-C]=v[I]);return C>0&&(v.length=g-C),C}i.removeAllOf=E;function A(v,_,h=0,p=-1){let g,C=r(v,_,h,p);return C!==-1&&(g=x(v,C)),{index:C,value:g}}i.removeFirstWhere=A;function R(v,_,h=-1,p=0){let g,C=n(v,_,h,p);return C!==-1&&(g=x(v,C)),{index:C,value:g}}i.removeLastWhere=R;function $(v,_,h=0,p=-1){let g=v.length;if(g===0)return 0;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C=0;for(let I=0;I<g;++I)h<=p&&I>=h&&I<=p&&_(v[I],I)||p<h&&(I<=p||I>=h)&&_(v[I],I)?C++:C>0&&(v[I-C]=v[I]);return C>0&&(v.length=g-C),C}i.removeAllWhere=$})(Va||(Va={}));(function(i){function e(t,r,n){return n===0?1/0:t>r&&n>0||t<r&&n<0?0:Math.ceil((r-t)/n)}i.rangeLength=e})(RT||(RT={}));(function(i){function e(o,a,l=0){let u=new Array(a.length);for(let c=0,d=l,f=a.length;c<f;++c,++d){if(d=o.indexOf(a[c],d),d===-1)return null;u[c]=d}return u}i.findIndices=e;function t(o,a,l=0){let u=e(o,a,l);if(!u)return null;let c=0;for(let d=0,f=u.length;d<f;++d){let m=u[d]-l;c+=m*m}return{score:c,indices:u}}i.matchSumOfSquares=t;function r(o,a,l=0){let u=e(o,a,l);if(!u)return null;let c=0,d=l-1;for(let f=0,m=u.length;f<m;++f){let b=u[f];c+=b-d-1,d=b}return{score:c,indices:u}}i.matchSumOfDeltas=r;function n(o,a,l){let u=[],c=0,d=0,f=a.length;for(;c<f;){let m=a[c],b=a[c];for(;++c<f&&a[c]===b+1;)b++;d<m&&u.push(o.slice(d,m)),m<b+1&&u.push(l(o.slice(m,b+1))),d=b+1}return d<o.length&&u.push(o.slice(d)),u}i.highlight=n;function s(o,a){return o<a?-1:o>a?1:0}i.cmp=s})(DT||(DT={}))});function ne(i){let e={},t,r=[];for(let s=1,o=arguments.length;s<o;++s){let a=arguments[s];typeof a=="string"?r.push(new kc(a)):a instanceof kc||a instanceof Ac?r.push(a):a instanceof Array?n(r,a):(s===1||s===2)&&a&&typeof a=="object"&&("render"in a?t=a:e=a)}return new Ac(i,e,r,t);function n(s,o){for(let a of o)typeof a=="string"?s.push(new kc(a)):(a instanceof kc||a instanceof Ac)&&s.push(a)}}function LT(i){let e={},t=null;if(arguments.length===2){let r=arguments[1];"render"in r?t=r:e=r}else if(arguments.length===3)e=arguments[1],t=arguments[2];else if(arguments.length>3)throw new Error("hpass() should be called with 1, 2, or 3 arguments");return new my(i,e,t)}var kc,Ac,my,Wt,tu,iu=w(()=>{OT();kc=class{constructor(e){this.type="text",this.content=e}},Ac=class{constructor(e,t,r,n){this.type="element",this.tag=e,this.attrs=t,this.children=r,this.renderer=n}},my=class extends Ac{constructor(e,t,r){super(e,t,[],r||void 0)}};(function(i){i.a=i.bind(void 0,"a"),i.abbr=i.bind(void 0,"abbr"),i.address=i.bind(void 0,"address"),i.area=i.bind(void 0,"area"),i.article=i.bind(void 0,"article"),i.aside=i.bind(void 0,"aside"),i.audio=i.bind(void 0,"audio"),i.b=i.bind(void 0,"b"),i.bdi=i.bind(void 0,"bdi"),i.bdo=i.bind(void 0,"bdo"),i.blockquote=i.bind(void 0,"blockquote"),i.br=i.bind(void 0,"br"),i.button=i.bind(void 0,"button"),i.canvas=i.bind(void 0,"canvas"),i.caption=i.bind(void 0,"caption"),i.cite=i.bind(void 0,"cite"),i.code=i.bind(void 0,"code"),i.col=i.bind(void 0,"col"),i.colgroup=i.bind(void 0,"colgroup"),i.data=i.bind(void 0,"data"),i.datalist=i.bind(void 0,"datalist"),i.dd=i.bind(void 0,"dd"),i.del=i.bind(void 0,"del"),i.dfn=i.bind(void 0,"dfn"),i.div=i.bind(void 0,"div"),i.dl=i.bind(void 0,"dl"),i.dt=i.bind(void 0,"dt"),i.em=i.bind(void 0,"em"),i.embed=i.bind(void 0,"embed"),i.fieldset=i.bind(void 0,"fieldset"),i.figcaption=i.bind(void 0,"figcaption"),i.figure=i.bind(void 0,"figure"),i.footer=i.bind(void 0,"footer"),i.form=i.bind(void 0,"form"),i.h1=i.bind(void 0,"h1"),i.h2=i.bind(void 0,"h2"),i.h3=i.bind(void 0,"h3"),i.h4=i.bind(void 0,"h4"),i.h5=i.bind(void 0,"h5"),i.h6=i.bind(void 0,"h6"),i.header=i.bind(void 0,"header"),i.hr=i.bind(void 0,"hr"),i.i=i.bind(void 0,"i"),i.iframe=i.bind(void 0,"iframe"),i.img=i.bind(void 0,"img"),i.input=i.bind(void 0,"input"),i.ins=i.bind(void 0,"ins"),i.kbd=i.bind(void 0,"kbd"),i.label=i.bind(void 0,"label"),i.legend=i.bind(void 0,"legend"),i.li=i.bind(void 0,"li"),i.main=i.bind(void 0,"main"),i.map=i.bind(void 0,"map"),i.mark=i.bind(void 0,"mark"),i.meter=i.bind(void 0,"meter"),i.nav=i.bind(void 0,"nav"),i.noscript=i.bind(void 0,"noscript"),i.object=i.bind(void 0,"object"),i.ol=i.bind(void 0,"ol"),i.optgroup=i.bind(void 0,"optgroup"),i.option=i.bind(void 0,"option"),i.output=i.bind(void 0,"output"),i.p=i.bind(void 0,"p"),i.param=i.bind(void 0,"param"),i.pre=i.bind(void 0,"pre"),i.progress=i.bind(void 0,"progress"),i.q=i.bind(void 0,"q"),i.rp=i.bind(void 0,"rp"),i.rt=i.bind(void 0,"rt"),i.ruby=i.bind(void 0,"ruby"),i.s=i.bind(void 0,"s"),i.samp=i.bind(void 0,"samp"),i.section=i.bind(void 0,"section"),i.select=i.bind(void 0,"select"),i.small=i.bind(void 0,"small"),i.source=i.bind(void 0,"source"),i.span=i.bind(void 0,"span"),i.strong=i.bind(void 0,"strong"),i.sub=i.bind(void 0,"sub"),i.summary=i.bind(void 0,"summary"),i.sup=i.bind(void 0,"sup"),i.table=i.bind(void 0,"table"),i.tbody=i.bind(void 0,"tbody"),i.td=i.bind(void 0,"td"),i.textarea=i.bind(void 0,"textarea"),i.tfoot=i.bind(void 0,"tfoot"),i.th=i.bind(void 0,"th"),i.thead=i.bind(void 0,"thead"),i.time=i.bind(void 0,"time"),i.title=i.bind(void 0,"title"),i.tr=i.bind(void 0,"tr"),i.track=i.bind(void 0,"track"),i.u=i.bind(void 0,"u"),i.ul=i.bind(void 0,"ul"),i.var_=i.bind(void 0,"var"),i.video=i.bind(void 0,"video"),i.wbr=i.bind(void 0,"wbr")})(ne||(ne={}));(function(i){function e(r){return tu.createDOMNode(r)}i.realize=e;function t(r,n){let s=tu.hostMap.get(n)||[],o=tu.asContentArray(r);tu.hostMap.set(n,o),tu.updateContent(n,s,o)}i.render=t})(Wt||(Wt={}));(function(i){i.hostMap=new WeakMap;function e(m){return m?m instanceof Array?m:[m]:[]}i.asContentArray=e;function t(m){let b=arguments[1]||null,y=arguments[2]||null;if(b)b.insertBefore(t(m),y);else{if(m.type==="text")return document.createTextNode(m.content);if(b=document.createElement(m.tag),o(b,m.attrs),m.renderer)return m.renderer.render(b,{attrs:m.attrs,children:m.children}),b;for(let x=0,M=m.children.length;x<M;++x)t(m.children[x],b)}return b}i.createDOMNode=t;function r(m,b,y){if(b===y)return;let x=f(m,b),M=b.slice(),T=m.firstChild,E=y.length;for(let A=0;A<E;++A){if(A>=M.length){t(y[A],m);continue}let R=M[A],$=y[A];if(R===$){T=T.nextSibling;continue}if(R.type==="text"&&$.type==="text"){T.textContent!==$.content&&(T.textContent=$.content),T=T.nextSibling;continue}if(R.type==="text"||$.type==="text"){Va.insert(M,A,$),t($,m,T);continue}if(!R.renderer!=!$.renderer){Va.insert(M,A,$),t($,m,T);continue}let v=$.attrs.key;if(v&&v in x){let h=x[v];h.vNode!==R&&(Va.move(M,M.indexOf(h.vNode,A+1),A),m.insertBefore(h.element,T),R=h.vNode,T=h.element)}if(R===$){T=T.nextSibling;continue}let _=R.attrs.key;if(_&&_!==v){Va.insert(M,A,$),t($,m,T);continue}if(R.tag!==$.tag){Va.insert(M,A,$),t($,m,T);continue}a(T,R.attrs,$.attrs),$.renderer?$.renderer.render(T,{attrs:$.attrs,children:$.children}):r(T,R.children,$.children),T=T.nextSibling}n(m,M,E,!0)}i.updateContent=r;function n(m,b,y,x){for(let M=b.length-1;M>=y;--M){let T=b[M],E=x?m.lastChild:m.childNodes[M];T.type==="text"||(T.renderer&&T.renderer.unrender?T.renderer.unrender(E,{attrs:T.attrs,children:T.children}):n(E,T.children,0,!1)),x&&m.removeChild(E)}}let s={key:!0,className:!0,htmlFor:!0,dataset:!0,style:!0};function o(m,b){for(let y in b)y in s||(y.substr(0,2)==="on"?m[y]=b[y]:m.setAttribute(y,b[y]));b.className!==void 0&&m.setAttribute("class",b.className),b.htmlFor!==void 0&&m.setAttribute("for",b.htmlFor),b.dataset&&l(m,b.dataset),b.style&&c(m,b.style)}
10function a(m,b,y){if(b===y)return;let x;for(x in b)x in s||x in y||(x.substr(0,2)==="on"?m[x]=null:m.removeAttribute(x));for(x in y)x in s||b[x]===y[x]||(x.substr(0,2)==="on"?m[x]=y[x]:m.setAttribute(x,y[x]));b.className!==y.className&&(y.className!==void 0?m.setAttribute("class",y.className):m.removeAttribute("class")),b.htmlFor!==y.htmlFor&&(y.htmlFor!==void 0?m.setAttribute("for",y.htmlFor):m.removeAttribute("for")),b.dataset!==y.dataset&&u(m,b.dataset||{},y.dataset||{}),b.style!==y.style&&d(m,b.style||{},y.style||{})}function l(m,b){for(let y in b)m.setAttribute(`data-${y}`,b[y])}function u(m,b,y){for(let x in b)x in y||m.removeAttribute(`data-${x}`);for(let x in y)b[x]!==y[x]&&m.setAttribute(`data-${x}`,y[x])}function c(m,b){let y=m.style,x;for(x in b)y[x]=b[x]}function d(m,b,y){let x=m.style,M;for(M in b)M in y||(x[M]="");for(M in y)b[M]!==y[M]&&(x[M]=y[M])}function f(m,b){let y=m.firstChild,x=Object.create(null);for(let M of b)M.type==="element"&&M.attrs.key&&(x[M.attrs.key]={vNode:M,element:y}),y=y.nextSibling;return x}})(tu||(tu={}))});function*Rc(){}function Dc(i,e){let t=0;for(let r of i)if(e(r,t++))return r}function FT(i,e){let t=0;for(let r of i)if(e(r,t++)===!1)return!1;return!0}function v0(i,e){let t=0;for(let r of i)if(e(r,t++))return!0;return!1}function*gy(i,e){let t=0;for(let r of i)yield e(r,t++)}function*PT(i){if(typeof i.retro=="function")yield*i.retro();else for(let e=i.length-1;e>-1;e--)yield i[e]}var ce,$T,ru,nu=w(()=>{(function(i){function e(v,_,h=0,p=-1){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;p<h?C=p+1+(g-h):C=p-h+1;for(let I=0;I<C;++I){let F=(h+I)%g;if(v[F]===_)return F}return-1}i.firstIndexOf=e;function t(v,_,h=-1,p=0){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;h<p?C=h+1+(g-p):C=h-p+1;for(let I=0;I<C;++I){let F=(h-I+g)%g;if(v[F]===_)return F}return-1}i.lastIndexOf=t;function r(v,_,h=0,p=-1){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;p<h?C=p+1+(g-h):C=p-h+1;for(let I=0;I<C;++I){let F=(h+I)%g;if(_(v[F],F))return F}return-1}i.findFirstIndex=r;function n(v,_,h=-1,p=0){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;h<p?C=h+1+(g-p):C=h-p+1;for(let I=0;I<C;++I){let F=(h-I+g)%g;if(_(v[F],F))return F}return-1}i.findLastIndex=n;function s(v,_,h=0,p=-1){let g=r(v,_,h,p);return g!==-1?v[g]:void 0}i.findFirstValue=s;function o(v,_,h=-1,p=0){let g=n(v,_,h,p);return g!==-1?v[g]:void 0}i.findLastValue=o;function a(v,_,h,p=0,g=-1){let C=v.length;if(C===0)return 0;p<0?p=Math.max(0,p+C):p=Math.min(p,C-1),g<0?g=Math.max(0,g+C):g=Math.min(g,C-1);let I=p,F=g-p+1;for(;F>0;){let P=F>>1,K=I+P;h(v[K],_)<0?(I=K+1,F-=P+1):F=P}return I}i.lowerBound=a;function l(v,_,h,p=0,g=-1){let C=v.length;if(C===0)return 0;p<0?p=Math.max(0,p+C):p=Math.min(p,C-1),g<0?g=Math.max(0,g+C):g=Math.min(g,C-1);let I=p,F=g-p+1;for(;F>0;){let P=F>>1,K=I+P;h(v[K],_)>0?F=P:(I=K+1,F-=P+1)}return I}i.upperBound=l;function u(v,_,h){if(v===_)return!0;if(v.length!==_.length)return!1;for(let p=0,g=v.length;p<g;++p)if(h?!h(v[p],_[p]):v[p]!==_[p])return!1;return!0}i.shallowEqual=u;function c(v,_={}){let{start:h,stop:p,step:g}=_;if(g===void 0&&(g=1),g===0)throw new Error("Slice `step` cannot be zero.");let C=v.length;h===void 0?h=g<0?C-1:0:h<0?h=Math.max(h+C,g<0?-1:0):h>=C&&(h=g<0?C-1:C),p===void 0?p=g<0?-1:C:p<0?p=Math.max(p+C,g<0?-1:0):p>=C&&(p=g<0?C-1:C);let I;g<0&&p>=h||g>0&&h>=p?I=0:g<0?I=Math.floor((p-h+1)/g+1):I=Math.floor((p-h-1)/g+1);let F=[];for(let P=0;P<I;++P)F[P]=v[h+P*g];return F}i.slice=c;function d(v,_,h){let p=v.length;if(p<=1||(_<0?_=Math.max(0,_+p):_=Math.min(_,p-1),h<0?h=Math.max(0,h+p):h=Math.min(h,p-1),_===h))return;let g=v[_],C=_<h?1:-1;for(let I=_;I!==h;I+=C)v[I]=v[I+C];v[h]=g}i.move=d;function f(v,_=0,h=-1){let p=v.length;if(!(p<=1))for(_<0?_=Math.max(0,_+p):_=Math.min(_,p-1),h<0?h=Math.max(0,h+p):h=Math.min(h,p-1);_<h;){let g=v[_],C=v[h];
10v[_++]=C,v[h--]=g}}i.reverse=f;function m(v,_,h=0,p=-1){let g=v.length;if(g<=1||(h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1),h>=p))return;let C=p-h+1;if(_>0?_=_%C:_<0&&(_=(_%C+C)%C),_===0)return;let I=h+_;f(v,h,I-1),f(v,I,p),f(v,h,p)}i.rotate=m;function b(v,_,h=0,p=-1){let g=v.length;if(g===0)return;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;p<h?C=p+1+(g-h):C=p-h+1;for(let I=0;I<C;++I)v[(h+I)%g]=_}i.fill=b;function y(v,_,h){let p=v.length;_<0?_=Math.max(0,_+p):_=Math.min(_,p);for(let g=p;g>_;--g)v[g]=v[g-1];v[_]=h}i.insert=y;function x(v,_){let h=v.length;if(_<0&&(_+=h),_<0||_>=h)return;let p=v[_];for(let g=_+1;g<h;++g)v[g-1]=v[g];return v.length=h-1,p}i.removeAt=x;function M(v,_,h=0,p=-1){let g=e(v,_,h,p);return g!==-1&&x(v,g),g}i.removeFirstOf=M;function T(v,_,h=-1,p=0){let g=t(v,_,h,p);return g!==-1&&x(v,g),g}i.removeLastOf=T;function E(v,_,h=0,p=-1){let g=v.length;if(g===0)return 0;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C=0;for(let I=0;I<g;++I)h<=p&&I>=h&&I<=p&&v[I]===_||p<h&&(I<=p||I>=h)&&v[I]===_?C++:C>
100&&(v[I-C]=v[I]);return C>0&&(v.length=g-C),C}i.removeAllOf=E;function A(v,_,h=0,p=-1){let g,C=r(v,_,h,p);return C!==-1&&(g=x(v,C)),{index:C,value:g}}i.removeFirstWhere=A;function R(v,_,h=-1,p=0){let g,C=n(v,_,h,p);return C!==-1&&(g=x(v,C)),{index:C,value:g}}i.removeLastWhere=R;function $(v,_,h=0,p=-1){let g=v.length;if(g===0)return 0;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C=0;for(let I=0;I<g;++I)h<=p&&I>=h&&I<=p&&_(v[I],I)||p<h&&(I<=p||I>=h)&&_(v[I],I)?C++:C>0&&(v[I-C]=v[I]);return C>0&&(v.length=g-C),C}i.removeAllWhere=$})(ce||(ce={}));(function(i){function e(t,r,n){return n===0?1/0:t>r&&n>0||t<r&&n<0?0:Math.ceil((r-t)/n)}i.rangeLength=e})($T||($T={}));(function(i){function e(o,a,l=0){let u=new Array(a.length);for(let c=0,d=l,f=a.length;c<f;++c,++d){if(d=o.indexOf(a[c],d),d===-1)return null;u[c]=d}return u}i.findIndices=e;function t(o,a,l=0){let u=e(o,a,l);if(!u)return null;let c=0;for(let d=0,f=u.length;d<f;++d){let m=u[d]-l;c+=m*m}return{score:c,indices:u}}i.matchSumOfSquares=t;function r(o,a,l=0){let u=e(o,a,l);if(!u)return null;let c=0,d=l-1;for(let f=0,m=u.length;f<m;++f){let b=u[f];c+=b-d-1,d=b}return{score:c,indices:u}}i.matchSumOfDeltas=r;function n(o,a,l){let u=[],c=0,d=0,f=a.length;for(;c<f;){let m=a[c],b=a[c];for(;++c<f&&a[c]===b+1;)b++;d<m&&u.push(o.slice(d,m)),m<b+1&&u.push(l(o.slice(m,b+1))),d=b+1}return d<o.length&&u.push(o.slice(d)),u}i.highlight=n;function s(o,a){return o<a?-1:o>a?1:0}i.cmp=s})(ru||(ru={}))});var NT,Ct,su,ou,ds,zT=w(()=>{(function(i){function e(t){let r=document.body,n=s=>{s.preventDefault(),s.stopPropagation(),s.clipboardData.setData("text",t),r.removeEventListener("copy",n,!0)};r.addEventListener("copy",n,!0),document.execCommand("copy")}i.copyText=e})(NT||(NT={}));(function(i){function e(s){let o=window.getComputedStyle(s),a=parseFloat(o.borderTopWidth)||0,l=parseFloat(o.borderLeftWidth)||0,u=parseFloat(o.borderRightWidth)||0,c=parseFloat(o.borderBottomWidth)||0,d=parseFloat(o.paddingTop)||0,f=parseFloat(o.paddingLeft)||0,m=parseFloat(o.paddingRight)||0,b=parseFloat(o.paddingBottom)||0,y=l+f+m+u,x=a+d+b+c;return{borderTop:a,borderLeft:l,borderRight:u,borderBottom:c,paddingTop:d,paddingLeft:f,paddingRight:m,paddingBottom:b,horizontalSum:y,verticalSum:x}}i.boxSizing=e;function t(s){let o=window.getComputedStyle(s),a=parseFloat(o.minWidth)||0,l=parseFloat(o.minHeight)||0,u=parseFloat(o.maxWidth)||1/0,c=parseFloat(o.maxHeight)||1/0;return u=Math.max(a,u),c=Math.max(l,c),{minWidth:a,minHeight:l,maxWidth:u,maxHeight:c}}i.sizeLimits=t;function r(s,o,a){let l=s.getBoundingClientRect();return o>=l.left&&o<l.right&&a>=l.top&&a<l.bottom}i.hitTest=r;function n(s,o){let a=s.getBoundingClientRect(),l=o.getBoundingClientRect();if(!(l.top<=a.top&&l.bottom>=a.bottom)){if(l.top<a.top&&l.height<=a.height){s.scrollTop-=a.top-l.top;return}if(l.bottom>a.bottom&&l.height>=a.height){s.scrollTop-=a.top-l.top;return}if(l.top<a.top&&l.height>a.height){s.scrollTop-=a.bottom-l.bottom;return}if(l.bottom>a.bottom&&l.height<a.height){s.scrollTop-=a.bottom-l.bottom;return}}}i.scrollIntoViewIfNeeded=n})(Ct||(Ct={}));(function(i){i.IS_MAC=!!navigator.platform.match(/Mac/i),i.IS_WIN=!!navigator.platform.match(/Win/i),i.IS_IE=/Trident/.test(navigator.userAgent),i.IS_EDGE=/Edge/.test(navigator.userAgent);function e(t){return i.IS_MAC?t.metaKey:t.ctrlKey}i.accelKey=e})(su||(su={}));(function(i){function e(n){if(n in ds.specificityCache)return ds.specificityCache[n];let s=ds.calculateSingle(n);return ds.specificityCache[n]=s}i.calculateSpecificity=e;function t(n){if(n in ds.validityCache)return ds.validityCache[n];let s=!0;try{ds.testElem.querySelector(n)}catch{s=!1}return ds.validityCache[n]=s}i.isValid=t;function r(n,s){return ds.protoMatchFunc.call(n,s)}i.matches=r})(ou||(ou={}));(function(i){i.specificityCache=Object.create(null),i.validityCache=Object.create(null),i.testElem=document.createElement("div"),i.protoMatchFunc=(()=>{let c=Element.prototype;return c.matches||c.matchesSelector||c.mozMatchesSelector||c.msMatchesSelector||c.oMatchesSelector||c.webkitMatchesSelector||function(d){let f=this,m=f.ownerDocument?f.ownerDocument.querySelectorAll(d):[];return Array.prototype.indexOf.call(m,f)!==-1}})();function e(c){c=c.split(",",1)[0];let d=0,f=0,m=0;function b(y){let x=c.match(y);return x===null?!1:(c=c.slice(x[0].length),!0)}for(c=c.replace(u," $1 ");c.length>0;){if(b(t)){d++;continue}if(b(r)){f++;continue}if(b(n)){f++;continue}if(b(o)){m++;continue}if(b(a)){f++;continue}if(b(s)){m++;continue}if(!b(l))return 0}return d=Math.min(d,255),f=Math.min(f,255),m=Math.min(m,255),d<<16|f<<8|m}i.calculateSingle=e;let t=/^#[^\s\+>~#\.\[:]+/,r=/^\.[^\s\+>~#\.\[:]+/,n=/^\[[^\]]+\]/,s=/^[^\s\+>~#\.\[:]+/,o=/^(::[^\s\+>~#\.\[:]+|:first-line|:first-letter|:before|:after)/,a=/^:[^\s\+>~#\.\[:]+/,l=/^[\s\+>~\*]+/,u=/:not\(([^\)]+)\)/g})(ds||(ds={}))});var Oc,zo,BT=w(()=>{Oc=class{constructor(){this._first=null,this._last=null,this._size=0}get isEmpty(){return this._size===0}get size(){return this._size}get length(){return this._size}get first(){return this._first?this._first.value:void 0}get last(){return this._last?this._last.value:void 0}get firstNode(){return this._first}get lastNode(){return this._last}*[Symbol.iterator](){let e=this._first;for(;e;)yield e.value,e=e.next}*retro(){let e=this._last;for(;e;)yield e.value,e=e.prev}*nodes(){let e=this._first;for(;e;)yield e,e=e.next}*retroNodes(){let e=this._last;for(;e;)yield e,e=e.prev}assign(e){this.clear();for(let t of e)this.addLast(t)}push(e){this.addLast(e)}pop(){return this.removeLast()}shift(e){this.addFirst(e)}unshift(){return this.removeFirst()}addFirst(e){let t=new zo.LinkedListNode(this,e);return this._first?(t.next=this._first,this._first.prev=t,this._first=t):(this._first=t,this._last=t),this._size++,t}addLast(e){let t=new zo.LinkedListNode(this,e);return this._last?(t.prev=this._last,this._last.next=t,this._last=t):(this._first=t,this._last=t),this._size++,t}insertBefore(e,t){if(!t||t===this._first)return this.addFirst(e);
10if(!(t instanceof zo.LinkedListNode)||t.list!==this)throw new Error("Reference node is not owned by the list.");let r=new zo.LinkedListNode(this,e),n=t,s=n.prev;return r.next=n,r.prev=s,n.prev=r,s.next=r,this._size++,r}insertAfter(e,t){if(!t||t===this._last)return this.addLast(e);if(!(t instanceof zo.LinkedListNode)||t.list!==this)throw new Error("Reference node is not owned by the list.");let r=new zo.LinkedListNode(this,e),n=t,s=n.next;return r.next=s,r.prev=n,n.next=r,s.prev=r,this._size++,r}removeFirst(){let e=this._first;if(e)return e===this._last?(this._first=null,this._last=null):(this._first=e.next,this._first.prev=null),e.list=null,e.next=null,e.prev=null,this._size--,e.value}removeLast(){let e=this._last;if(e)return e===this._first?(this._first=null,this._last=null):(this._last=e.prev,this._last.next=null),e.list=null,e.next=null,e.prev=null,this._size--,e.value}removeNode(e){if(!(e instanceof zo.LinkedListNode)||e.list!==this)throw new Error("Node is not owned by the list.");let t=e;t===this._first&&t===this._last?(this._first=null,this._last=null):t===this._first?(this._first=t.next,this._first.prev=null):t===this._last?(this._last=t.prev,this._last.next=null):(t.next.prev=t.prev,t.prev.next=t.next),t.list=null,t.next=null,t.prev=null,this._size--}clear(){let e=this._first;for(;e;){let t=e.next;e.list=null,e.prev=null,e.next=null,e=t}this._first=null,this._last=null,this._size=0}};(function(i){function e(t){let r=new i;return r.assign(t),r}i.from=e})(Oc||(Oc={}));(function(i){class e{constructor(r,n){this.list=null,this.next=null,this.prev=null,this.list=r,this.value=n}}i.LinkedListNode=e})(zo||(zo={}))});var Rr,Ua,ie,Xh=w(()=>{nu();BT();Rr=class{constructor(e){this.type=e}get isConflatable(){return!1}conflate(e){return!1}},Ua=class extends Rr{get isConflatable(){return!0}conflate(e){return!0}};(function(i){let e=null,t=(_=>h=>{let p=!1;return _.then(()=>!p&&h()),()=>{p=!0}})(Promise.resolve());function r(_,h){let p=f.get(_);if(!p||p.length===0){M(_,h);return}FT(PT(p),C=>C?x(C,_,h):!0)&&M(_,h)}i.sendMessage=r;function n(_,h){if(!h.isConflatable){T(_,h);return}v0(d,g=>g.handler!==_||!g.msg||g.msg.type!==h.type||!g.msg.isConflatable?!1:g.msg.conflate(h))||T(_,h)}i.postMessage=n;function s(_,h){let p=f.get(_);p&&p.indexOf(h)!==-1||(p?p.push(h):f.set(_,[h]))}i.installMessageHook=s;function o(_,h){let p=f.get(_);if(!p)return;let g=p.indexOf(h);g!==-1&&(p[g]=null,A(p))}i.removeMessageHook=o;function a(_){let h=f.get(_);h&&h.length>0&&(ce.fill(h,null),A(h));for(let p of d)p.handler===_&&(p.handler=null,p.msg=null)}i.clearData=a;function l(){y||e===null||(e(),e=null,y=!0,E(),y=!1)}i.flush=l;function u(){return b}i.getExceptionHandler=u;function c(_){let h=b;return b=_,h}i.setExceptionHandler=c;let d=new Oc,f=new WeakMap,m=new Set,b=_=>{console.error(_)},y=!1;function x(_,h,p){let g=!0;try{typeof _=="function"?g=_(h,p):g=_.messageHook(h,p)}catch(C){b(C)}return g}function M(_,h){try{_.processMessage(h)}catch(p){b(p)}}function T(_,h){d.addLast({handler:_,msg:h}),e===null&&(e=t(E))}function E(){if(e=null,d.isEmpty)return;let _={handler:null,msg:null};for(d.addLast(_);;){let h=d.removeFirst();if(h===_)return;h.handler&&h.msg&&r(h.handler,h.msg)}}function A(_){m.size===0&&t(R),m.add(_)}function R(){m.forEach($),m.clear()}function $(_){ce.removeAllWhere(_,v)}function v(_){return _===null}})(ie||(ie={}))});var gt,cr,_0=w(()=>{Fn();gt=class{constructor(e){this._onScrollFrame=()=>{if(!this._scrollTarget)return;let{element:t,edge:r,distance:n}=this._scrollTarget,s=cr.SCROLL_EDGE_SIZE-n,o=Math.pow(s/cr.SCROLL_EDGE_SIZE,2),a=Math.max(1,Math.round(o*cr.SCROLL_EDGE_SIZE));switch(r){case"top":t.scrollTop-=a;break;case"left":t.scrollLeft-=a;break;case"right":t.scrollLeft+=a;break;case"bottom":t.scrollTop+=a;break}requestAnimationFrame(this._onScrollFrame)},this._disposed=!1,this._dropAction="none",this._override=null,this._currentTarget=null,this._currentElement=null,this._promise=null,this._scrollTarget=null,this._resolve=null,this.document=e.document||document,this.mimeData=e.mimeData,this.dragImage=e.dragImage||null,this.proposedAction=e.proposedAction||"copy",this.supportedActions=e.supportedActions||"all",this.source=e.source||null}dispose(){if(!this._disposed){if(this._disposed=!0,this._currentTarget){let e=new PointerEvent("pointerup",{bubbles:!0,cancelable:!0,clientX:-1,clientY:-1});cr.dispatchDragLeave(this,this._currentTarget,null,e)}this._finalize("none")}}get isDisposed(){return this._disposed}start(e,t){if(this._disposed)return Promise.resolve("none");if(this._promise)return this._promise;this._addListeners(),this._attachDragImage(e,t),this._promise=new Promise(n=>{this._resolve=n});let r=new PointerEvent("pointermove",{bubbles:!0,cancelable:!0,clientX:e,clientY:t});return document.dispatchEvent(r),this._promise}handleEvent(e){switch(e.type){case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"keydown":this._evtKeyDown(e);break;default:e.preventDefault(),e.stopPropagation();break}}moveDragImage(e,t){if(!this.dragImage)return;let r=this.dragImage.style;r.transform=`translate(${e}px, ${t}px)`}_evtPointerMove(e){e.preventDefault(),e.stopPropagation(),this._updateCurrentTarget(e),this._updateDragScroll(e),this.moveDragImage(e.clientX,e.clientY)}_evtPointerUp(e){if(e.preventDefault(),e.stopPropagation(),e.button!==0)return;if(this._updateCurrentTarget(e),!this._currentTarget){this._finalize("none");return}if(this._dropAction==="none"){cr.dispatchDragLeave(this,this._currentTarget,null,e),this._finalize("none");return}let t=cr.dispatchDrop(this,this._currentTarget,e);this._finalize(t)}_evtKeyDown(e){e.preventDefault(),e.stopPropagation(),e.keyCode===27&&this.dispose()}
10_addListeners(){document.addEventListener("pointerdown",this,!0),document.addEventListener("pointermove",this,!0),document.addEventListener("pointerup",this,!0),document.addEventListener("pointerenter",this,!0),document.addEventListener("pointerleave",this,!0),document.addEventListener("pointerover",this,!0),document.addEventListener("pointerout",this,!0),document.addEventListener("keydown",this,!0),document.addEventListener("keyup",this,!0),document.addEventListener("keypress",this,!0),document.addEventListener("contextmenu",this,!0)}_removeListeners(){document.removeEventListener("pointerdown",this,!0),document.removeEventListener("pointermove",this,!0),document.removeEventListener("pointerup",this,!0),document.removeEventListener("pointerenter",this,!0),document.removeEventListener("pointerleave",this,!0),document.removeEventListener("pointerover",this,!0),document.removeEventListener("pointerout",this,!0),document.removeEventListener("keydown",this,!0),document.removeEventListener("keyup",this,!0),document.removeEventListener("keypress",this,!0),document.removeEventListener("contextmenu",this,!0)}_updateDragScroll(e){let t=cr.findScrollTarget(e);!this._scrollTarget&&!t||(this._scrollTarget||setTimeout(this._onScrollFrame,500),this._scrollTarget=t)}_updateCurrentTarget(e){let t=this._currentTarget,r=this._currentTarget,n=this._currentElement,s=cr.findElementBehindBackdrop(e,this.document);this._currentElement=s,s!==n&&s!==r&&cr.dispatchDragExit(this,r,s,e),s!==n&&s!==r&&(r=cr.dispatchDragEnter(this,s,r,e)),r!==t&&(this._currentTarget=r,cr.dispatchDragLeave(this,t,r,e));let o=cr.dispatchDragOver(this,r,e);this._setDropAction(o)}_attachDragImage(e,t){if(!this.dragImage)return;this.dragImage.classList.add("lm-mod-drag-image");let r=this.dragImage.style;r.pointerEvents="none",r.position="fixed",r.transform=`translate(${e}px, ${t}px)`,(this.document instanceof Document?this.document.body:this.document.firstElementChild).appendChild(this.dragImage)}_detachDragImage(){if(!this.dragImage)return;let e=this.dragImage.parentNode;e&&e.removeChild(this.dragImage)}_setDropAction(e){if(e=cr.validateAction(e,this.supportedActions),!(this._override&&this._dropAction===e))switch(e){case"none":this._dropAction=e,this._override=gt.overrideCursor("no-drop",this.document);break;case"copy":this._dropAction=e,this._override=gt.overrideCursor("copy",this.document);break;case"link":this._dropAction=e,this._override=gt.overrideCursor("alias",this.document);break;case"move":this._dropAction=e,this._override=gt.overrideCursor("move",this.document);break}}_finalize(e){let t=this._resolve;this._removeListeners(),this._detachDragImage(),this._override&&(this._override.dispose(),this._override=null),this.mimeData.clear(),this._disposed=!0,this._dropAction="none",this._currentTarget=null,this._currentElement=null,this._scrollTarget=null,this._promise=null,this._resolve=null,t&&t(e)}};(function(i){class e extends DragEvent{constructor(n,s){super(s.type,{bubbles:!0,cancelable:!0,altKey:n.altKey,button:n.button,clientX:n.clientX,clientY:n.clientY,ctrlKey:n.ctrlKey,detail:0,metaKey:n.metaKey,relatedTarget:s.related,screenX:n.screenX,screenY:n.screenY,shiftKey:n.shiftKey,view:window});let{drag:o}=s;this.dropAction="none",this.mimeData=o.mimeData,this.proposedAction=o.proposedAction,this.supportedActions=o.supportedActions,this.source=o.source}}i.Event=e;function t(r,n=document){return cr.overrideCursor(r,n)}i.overrideCursor=t})(gt||(gt={}));(function(i){i.SCROLL_EDGE_SIZE=20;function e(A,R){return d[A]&f[R]?A:"none"}i.validateAction=e;function t(A,R=document){if(A){if(r&&A==r.event)return r.element;i.cursorBackdrop.style.zIndex="-1000";let $=R.elementFromPoint(A.clientX,A.clientY);return i.cursorBackdrop.style.zIndex="",r={event:A,element:$},$}else{let $=i.cursorBackdrop.style.transform;if(n&&$===n.transform)return n.element;let v=i.cursorBackdrop.getBoundingClientRect();i.cursorBackdrop.style.zIndex="-1000";let _=R.elementFromPoint(v.left+v.width/2,v.top+v.height/2);return i.cursorBackdrop.style.zIndex="",n={transform:$,element:_},_}}i.findElementBehindBackdrop=t;let r=null,n=null;function s(A){let R=A.clientX,$=A.clientY,v=t(A);for(;v;v=v.parentElement){if(!v.hasAttribute("data-lm-dragscroll"))continue;let _=0,h=0;v===document.body&&(_=window.pageXOffset,h=window.pageYOffset);let p=v.getBoundingClientRect(),g=p.top+h,C=p.left+_,I=C+p.width,F=g+p.height;if(R<C||R>=I||$<g||$>=F)continue;let P=R-C+1,K=$-g+1,W=I-R,Ce=F-$,mi=Math.min(P,K,W,Ce);if(mi>i.SCROLL_EDGE_SIZE)continue;let Ft;switch(mi){case Ce:Ft="bottom";break;case K:Ft="top";break;case W:Ft="right";break;case P:Ft="left";break;default:throw"unreachable"}let xt=v.scrollWidth-v.clientWidth,at=v.scrollHeight-v.clientHeight,os;switch(Ft){case"top":os=at>0&&v.scrollTop>0;break;case"left":os=xt>0&&v.scrollLeft>0;break;case"right":os=xt>0&&v.scrollLeft<xt;break;case"bottom":os=at>0&&v.scrollTop<at;break;default:throw"unreachable"}if(os)return{element:v,edge:Ft,distance:mi}}return null}i.findScrollTarget=s;function o(A,R,$,v){if(!R)return null;let _=new gt.Event(v,{drag:A,related:$,type:"lm-dragenter"});if(!R.dispatchEvent(_))return R;let p=A.document instanceof Document?A.document.body:A.document.firstElementChild;return R===p?$:(_=new gt.Event(v,{drag:A,related:$,type:"lm-dragenter"}),p.dispatchEvent(_),p)}i.dispatchDragEnter=o;function a(A,R,$,v){if(!R)return;let _=new gt.Event(v,{drag:A,related:$,type:"lm-dragexit"});R.dispatchEvent(_)}i.dispatchDragExit=a;function l(A,R,$,v){if(!R)return;let _=new gt.Event(v,{drag:A,related:$,type:"lm-dragleave"});R.dispatchEvent(_)}i.dispatchDragLeave=l;function u(A,R,$){if(!R)return"none";let v=new gt.Event($,{drag:A,related:null,type:"lm-dragover"});return R.dispatchEvent(v)?"none":v.dropAction}i.dispatchDragOver=u;function c(A,R,$){if(!R)return"none";let v=new gt.Event($,{drag:A,related:null,type:"lm-drop"});return R.dispatchEvent(v)?"none":v.dropAction}i.dispatchDrop=c;let d={none:0,copy:1,link:2,move:4},f={none:d.none,copy:d.copy,link:d.link,move:d.move,"copy-link":d.copy|d.link,"copy-move":d.copy|d.move,"link-move":d.link|d.move,all:d.copy|d.link|d.move};function m(A,R=document){let $=++E,v=R instanceof Document?R.body:R.firstElementChild;return i.cursorBackdrop.isConnected||(i.cursorBackdrop.style.transform="scale(0)",v.appendChild(i.cursorBackdrop),x(),document.addEventListener("pointermove",b,{capture:!0,passive:!0}),i.cursorBackdrop.addEventListener("scroll",y,{capture:!0,passive:!0})),i.cursorBackdrop.style.cursor=A,new Mr(()=>{$===E&&i.cursorBackdrop.isConnected&&(document.removeEventListener("pointermove",b,!0),i.cursorBackdrop.removeEventListener("scroll",y,!0),v.removeChild(i.cursorBackdrop))})}i.overrideCursor=m;function b(A){i.cursorBackdrop&&(i.cursorBackdrop.style.transform=`translate(${A.clientX}px, ${A.clientY}px)`)}function y(A){if(!i.cursorBackdrop)return;let R=t();if(!R)return;let $=R.closest("[data-lm-dragscroll]");$&&($.scrollTop+=i.cursorBackdrop.scrollTop-M,$.scrollLeft+=i.cursorBackdrop.scrollLeft-M,x())}function x(){i.cursorBackdrop.scrollTop=M,i.cursorBackdrop.scrollLeft=M}let M=500;function T(){let A=document.createElement("div");return A.classList.add("lm-cursor-backdrop"),A}let E=0;i.cursorBackdrop=T()})(cr||(cr={}))});var y0,qT,HT,jT=w(()=>{(function(i){function e(v,_,h=0,p=-1){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;p<h?C=p+1+(g-h):C=p-h+1;for(let I=0;I<C;++I){let F=(h+I)%g;if(v[F]===_)return F}return-1}i.firstIndexOf=e;function t(v,_,h=-1,p=0){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;h<p?C=h+1+(g-p):C=h-p+1;for(let I=0;I<C;++I){let F=(h-I+g)%g;if(v[F]===_)return F}return-1}i.lastIndexOf=t;function r(v,_,h=0,p=-1){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;p<h?C=p+1+(g-h):C=p-h+1;for(let I=0;I<C;++I){let F=(h+I)%g;if(_(v[F],F))return F}return-1}i.findFirstIndex=r;function n(v,_,h=-1,p=0){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;h<p?C=h+1+(g-p):C=h-p+1;for(let I=0;I<C;++I){let F=(h-I+g)%g;if(_(v[F],F))return F}return-1}i.findLastIndex=n;function s(v,_,h=0,p=-1){let g=r(v,_,h,p);return g!==-1?v[g]:void 0}i.findFirstValue=s;function o(v,_,h=-1,p=0){let g=n(v,_,h,p);return g!==-1?v[g]:void 0}i.findLastValue=o;function a(v,_,h,p=0,g=-1){let C=v.length;if(C===0)return 0;p<0?p=Math.max(0,p+C):p=Math.min(p,C-1),g<0?g=Math.max(0,g+C):g=Math.min(g,C-1);let I=p,F=g-p+1;for(;F>0;){let P=F>>1,K=I+P;h(v[K],_)<0?(I=K+1,F-=P+1):F=P}return I}i.lowerBound=a;function l(v,_,h,p=0,g=-1){let C=v.length;if(C===0)return 0;p<0?p=Math.max(0,p+C):p=Math.min(p,C-1),g<0?g=Math.max(0,g+C):g=Math.min(g,C-1);let I=p,F=g-p+1;for(;F>0;){let P=F>>1,K=I+P;h(v[K],_)>0?F=P:(I=K+1,F-=P+1)}return I}i.upperBound=l;function u(v,_,h){if(v===_)return!0;
10if(v.length!==_.length)return!1;for(let p=0,g=v.length;p<g;++p)if(h?!h(v[p],_[p]):v[p]!==_[p])return!1;return!0}i.shallowEqual=u;function c(v,_={}){let{start:h,stop:p,step:g}=_;if(g===void 0&&(g=1),g===0)throw new Error("Slice `step` cannot be zero.");let C=v.length;h===void 0?h=g<0?C-1:0:h<0?h=Math.max(h+C,g<0?-1:0):h>=C&&(h=g<0?C-1:C),p===void 0?p=g<0?-1:C:p<0?p=Math.max(p+C,g<0?-1:0):p>=C&&(p=g<0?C-1:C);let I;g<0&&p>=h||g>0&&h>=p?I=0:g<0?I=Math.floor((p-h+1)/g+1):I=Math.floor((p-h-1)/g+1);let F=[];for(let P=0;P<I;++P)F[P]=v[h+P*g];return F}i.slice=c;function d(v,_,h){let p=v.length;if(p<=1||(_<0?_=Math.max(0,_+p):_=Math.min(_,p-1),h<0?h=Math.max(0,h+p):h=Math.min(h,p-1),_===h))return;let g=v[_],C=_<h?1:-1;for(let I=_;I!==h;I+=C)v[I]=v[I+C];v[h]=g}i.move=d;function f(v,_=0,h=-1){let p=v.length;if(!(p<=1))for(_<0?_=Math.max(0,_+p):_=Math.min(_,p-1),h<0?h=Math.max(0,h+p):h=Math.min(h,p-1);_<h;){let g=v[_],C=v[h];v[_++]=C,v[h--]=g}}i.reverse=f;function m(v,_,h=0,p=-1){let g=v.length;if(g<=1||(h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1),h>=p))return;let C=p-h+1;if(_>0?_=_%C:_<0&&(_=(_%C+C)%C),_===0)return;let I=h+_;f(v,h,I-1),f(v,I,p),f(v,h,p)}i.rotate=m;function b(v,_,h=0,p=-1){let g=v.length;if(g===0)return;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;p<h?C=p+1+(g-h):C=p-h+1;for(let I=0;I<C;++I)v[(h+I)%g]=_}i.fill=b;function y(v,_,h){let p=v.length;_<0?_=Math.max(0,_+p):_=Math.min(_,p);for(let g=p;g>_;--g)v[g]=v[g-1];v[_]=h}i.insert=y;function x(v,_){let h=v.length;if(_<0&&(_+=h),_<0||_>=h)return;let p=v[_];for(let g=_+1;g<h;++g)v[g-1]=v[g];return v.length=h-1,p}i.removeAt=x;function M(v,_,h=0,p=-1){let g=e(v,_,h,p);return g!==-1&&x(v,g),g}i.removeFirstOf=M;function T(v,_,h=-1,p=0){let g=t(v,_,h,p);return g!==-1&&x(v,g),g}i.removeLastOf=T;function E(v,_,h=0,p=-1){let g=v.length;if(g===0)return 0;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C=0;for(let I=0;I<g;++I)h<=p&&I>=h&&I<=p&&v[I]===_||p<h&&(I<=p||I>=h)&&v[I]===_?C++:C>
100&&(v[I-C]=v[I]);return C>0&&(v.length=g-C),C}i.removeAllOf=E;function A(v,_,h=0,p=-1){let g,C=r(v,_,h,p);return C!==-1&&(g=x(v,C)),{index:C,value:g}}i.removeFirstWhere=A;function R(v,_,h=-1,p=0){let g,C=n(v,_,h,p);return C!==-1&&(g=x(v,C)),{index:C,value:g}}i.removeLastWhere=R;function $(v,_,h=0,p=-1){let g=v.length;if(g===0)return 0;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C=0;for(let I=0;I<g;++I)h<=p&&I>=h&&I<=p&&_(v[I],I)||p<h&&(I<=p||I>=h)&&_(v[I],I)?C++:C>0&&(v[I-C]=v[I]);return C>0&&(v.length=g-C),C}i.removeAllWhere=$})(y0||(y0={}));(function(i){function e(t,r,n){return n===0?1/0:t>r&&n>0||t<r&&n<0?0:Math.ceil((r-t)/n)}i.rangeLength=e})(qT||(qT={}));(function(i){function e(o,a,l=0){let u=new Array(a.length);for(let c=0,d=l,f=a.length;c<f;++c,++d){if(d=o.indexOf(a[c],d),d===-1)return null;u[c]=d}return u}i.findIndices=e;function t(o,a,l=0){let u=e(o,a,l);if(!u)return null;let c=0;for(let d=0,f=u.length;d<f;++d){let m=u[d]-l;c+=m*m}return{score:c,indices:u}}i.matchSumOfSquares=t;function r(o,a,l=0){let u=e(o,a,l);if(!u)return null;let c=0,d=l-1;for(let f=0,m=u.length;f<m;++f){let b=u[f];c+=b-d-1,d=b}return{score:c,indices:u}}i.matchSumOfDeltas=r;function n(o,a,l){let u=[],c=0,d=0,f=a.length;for(;c<f;){let m=a[c],b=a[c];for(;++c<f&&a[c]===b+1;)b++;d<m&&u.push(o.slice(d,m)),m<b+1&&u.push(l(o.slice(m,b+1))),d=b+1}return d<o.length&&u.push(o.slice(d)),u}i.highlight=n;function s(o,a){return o<a?-1:o>a?1:0}i.cmp=s})(HT||(HT={}))});var VT,UT,fs,Lc,hs,WT=w(()=>{(function(i){function e(t){let r=document.body,n=s=>{s.preventDefault(),s.stopPropagation(),s.clipboardData.setData("text",t),r.removeEventListener("copy",n,!0)};r.addEventListener("copy",n,!0),document.execCommand("copy")}i.copyText=e})(VT||(VT={}));(function(i){function e(s){let o=window.getComputedStyle(s),a=parseFloat(o.borderTopWidth)||0,l=parseFloat(o.borderLeftWidth)||0,u=parseFloat(o.borderRightWidth)||0,c=parseFloat(o.borderBottomWidth)||0,d=parseFloat(o.paddingTop)||0,f=parseFloat(o.paddingLeft)||0,m=parseFloat(o.paddingRight)||0,b=parseFloat(o.paddingBottom)||0,y=l+f+m+u,x=a+d+b+c;return{borderTop:a,borderLeft:l,borderRight:u,borderBottom:c,paddingTop:d,paddingLeft:f,paddingRight:m,paddingBottom:b,horizontalSum:y,verticalSum:x}}i.boxSizing=e;function t(s){let o=window.getComputedStyle(s),a=parseFloat(o.minWidth)||0,l=parseFloat(o.minHeight)||0,u=parseFloat(o.maxWidth)||1/0,c=parseFloat(o.maxHeight)||1/0;return u=Math.max(a,u),c=Math.max(l,c),{minWidth:a,minHeight:l,maxWidth:u,maxHeight:c}}i.sizeLimits=t;function r(s,o,a){let l=s.getBoundingClientRect();return o>=l.left&&o<l.right&&a>=l.top&&a<l.bottom}i.hitTest=r;function n(s,o){let a=s.getBoundingClientRect(),l=o.getBoundingClientRect();if(!(l.top<=a.top&&l.bottom>=a.bottom)){if(l.top<a.top&&l.height<=a.height){s.scrollTop-=a.top-l.top;return}if(l.bottom>a.bottom&&l.height>=a.height){s.scrollTop-=a.top-l.top;return}if(l.top<a.top&&l.height>a.height){s.scrollTop-=a.bottom-l.bottom;return}if(l.bottom>a.bottom&&l.height<a.height){s.scrollTop-=a.bottom-l.bottom;return}}}i.scrollIntoViewIfNeeded=n})(UT||(UT={}));(function(i){i.IS_MAC=!!navigator.platform.match(/Mac/i),i.IS_WIN=!!navigator.platform.match(/Win/i),i.IS_IE=/Trident/.test(navigator.userAgent),i.IS_EDGE=/Edge/.test(navigator.userAgent);function e(t){return i.IS_MAC?t.metaKey:t.ctrlKey}i.accelKey=e})(fs||(fs={}));(function(i){function e(n){if(n in hs.specificityCache)return hs.specificityCache[n];let s=hs.calculateSingle(n);return hs.specificityCache[n]=s}i.calculateSpecificity=e;function t(n){if(n in hs.validityCache)return hs.validityCache[n];let s=!0;try{hs.testElem.querySelector(n)}catch{s=!1}return hs.validityCache[n]=s}i.isValid=t;function r(n,s){return hs.protoMatchFunc.call(n,s)}i.matches=r})(Lc||(Lc={}));(function(i){i.specificityCache=Object.create(null),i.validityCache=Object.create(null),i.testElem=document.createElement("div"),i.protoMatchFunc=(()=>{let c=Element.prototype;return c.matches||c.matchesSelector||c.mozMatchesSelector||c.msMatchesSelector||c.oMatchesSelector||c.webkitMatchesSelector||function(d){let f=this,m=f.ownerDocument?f.ownerDocument.querySelectorAll(d):[];return Array.prototype.indexOf.call(m,f)!==-1}})();function e(c){c=c.split(",",1)[0];let d=0,f=0,m=0;function b(y){let x=c.match(y);return x===null?!1:(c=c.slice(x[0].length),!0)}for(c=c.replace(u," $1 ");c.length>0;){if(b(t)){d++;continue}if(b(r)){f++;continue}if(b(n)){f++;continue}if(b(o)){m++;continue}if(b(a)){f++;continue}if(b(s)){m++;continue}if(!b(l))return 0}return d=Math.min(d,255),f=Math.min(f,255),m=Math.min(m,255),d<<16|f<<8|m}i.calculateSingle=e;let t=/^#[^\s\+>~#\.\[:]+/,r=/^\.[^\s\+>~#\.\[:]+/,n=/^\[[^\]]+\]/,s=/^[^\s\+>~#\.\[:]+/,o=/^(::[^\s\+>~#\.\[:]+|:first-line|:first-letter|:before|:after)/,a=/^:[^\s\+>~#\.\[:]+/,l=/^[\s\+>~\*]+/,u=/:not\(([^\)]+)\)/g})(hs||(hs={}))});function Bn(){return by.keyboardLayout}var Wa,vae,by,Jh=w(()=>{Wa=class{constructor(e,t,r=[]){this.name=e,this._codes=t,this._keys=Wa.extractKeys(t),this._modifierKeys=Wa.convertToKeySet(r)}keys(){return Object.keys(this._keys)}isValidKey(e){return e in this._keys}isModifierKey(e){return e in this._modifierKeys}
10keyForKeydownEvent(e){return this._codes[e.keyCode]||""}};(function(i){function e(r){let n=Object.create(null);for(let s in r)n[r[s]]=!0;return n}i.extractKeys=e;function t(r){let n=Object(null);for(let s=0,o=r.length;s<o;++s)n[r[s]]=!0;return n}i.convertToKeySet=t})(Wa||(Wa={}));vae=new Wa("en-us",{8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",27:"Escape",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:"Meta",93:"ContextMenu",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Meta"},["Shift","Ctrl","Alt","Meta"]);(function(i){i.keyboardLayout=vae})(by||(by={}))});var er,Jt,ps,Zh=w(()=>{jT();er=z(Ze());Fn();WT();Jh();Qe();Jt=class{constructor(){this._timerID=0,this._timerModifierID=0,this._replaying=!1,this._keystrokes=[],this._keydownEvents=[],this._keyBindings=[],this._exactKeyMatch=null,this._commands=new Map,this._commandChanged=new X(this),this._commandExecuted=new X(this),this._keyBindingChanged=new X(this),this._holdKeyBindingPromises=new Map}get commandChanged(){return this._commandChanged}get commandExecuted(){return this._commandExecuted}get keyBindingChanged(){return this._keyBindingChanged}get keyBindings(){return this._keyBindings}listCommands(){return Array.from(this._commands.keys())}hasCommand(e){return this._commands.has(e)}addCommand(e,t){if(this._commands.has(e))throw new Error(`Command '${e}' already registered.`);return this._commands.set(e,ps.createCommand(t)),this._commandChanged.emit({id:e,type:"added"}),new Mr(()=>{this._commands.delete(e),this._commandChanged.emit({id:e,type:"removed"})})}notifyCommandChanged(e){if(e!==void 0&&!this._commands.has(e))throw new Error(`Command '${e}' is not registered.`);this._commandChanged.emit({id:e,type:e?"changed":"many-changed"})}describedBy(e,t=er.JSONExt.emptyObject){var r;let n=this._commands.get(e);return Promise.resolve((r=n?.describedBy.call(void 0,t))!==null&&r!==void 0?r:{args:null})}label(e,t=er.JSONExt.emptyObject){var r;let n=this._commands.get(e);return(r=n?.label.call(void 0,t))!==null&&r!==void 0?r:""}mnemonic(e,t=er.JSONExt.emptyObject){let r=this._commands.get(e);return r?r.mnemonic.call(void 0,t):-1}icon(e,t=er.JSONExt.emptyObject){var r;return(r=this._commands.get(e))===null||r===void 0?void 0:r.icon.call(void 0,t)}iconClass(e,t=er.JSONExt.emptyObject){let r=this._commands.get(e);return r?r.iconClass.call(void 0,t):""}iconLabel(e,t=er.JSONExt.emptyObject){let r=this._commands.get(e);return r?r.iconLabel.call(void 0,t):""}caption(e,t=er.JSONExt.emptyObject){let r=this._commands.get(e);return r?r.caption.call(void 0,t):""}usage(e,t=er.JSONExt.emptyObject){let r=this._commands.get(e);return r?r.usage.call(void 0,t):""}className(e,t=er.JSONExt.emptyObject){let r=this._commands.get(e);return r?r.className.call(void 0,t):""}dataset(e,t=er.JSONExt.emptyObject){let r=this._commands.get(e);return r?r.dataset.call(void 0,t):{}}isEnabled(e,t=er.JSONExt.emptyObject){let r=this._commands.get(e);return r?r.isEnabled.call(void 0,t):!1}isToggled(e,t=er.JSONExt.emptyObject){let r=this._commands.get(e);return r?r.isToggled.call(void 0,t):!1}isToggleable(e,t=er.JSONExt.emptyObject){let r=this._commands.get(e);return r?r.isToggleable:!1}isVisible(e,t=er.JSONExt.emptyObject){let r=this._commands.get(e);return r?r.isVisible.call(void 0,t):!1}execute(e,t=er.JSONExt.emptyObject){let r=this._commands.get(e);if(!r)return Promise.reject(new Error(`Command '${e}' not registered.`));let n;try{n=r.execute.call(void 0,t)}catch(o){n=Promise.reject(o)}let s=Promise.resolve(n);return this._commandExecuted.emit({id:e,args:t,result:s}),s}addKeyBinding(e){let t=ps.createKeyBinding(e);return this._keyBindings.push(t),this._keyBindingChanged.emit({binding:t,type:"added"}),new Mr(()=>{y0.removeFirstOf(this._keyBindings,t),this._keyBindingChanged.emit({binding:t,type:"removed"})})}processKeydownEvent(e){if(e.defaultPrevented||this._replaying)return;let t=Jt.keystrokeForKeydownEvent(e);
10if(!t){this._replayKeydownEvents(),this._clearPendingState();return}if(Jt.isModifierKeyPressed(e)){let{exact:o}=ps.matchKeyBinding(this._keyBindings,[t],e);o?(e.preventDefault(),e.stopPropagation(),this._startModifierTimer(o)):this._clearModifierTimer();return}this._keystrokes.push(t);let{exact:r,partial:n}=ps.matchKeyBinding(this._keyBindings,this._keystrokes,e),s=n.length!==0;if(!r&&!s){this._replayKeydownEvents(),this._clearPendingState();return}if((r?.preventDefault||n.some(o=>o.preventDefault))&&(e.preventDefault(),e.stopPropagation()),this._keydownEvents.push(e),r&&!s){this._executeKeyBinding(r),this._clearPendingState();return}r&&(this._exactKeyMatch=r),this._startTimer()}holdKeyBindingExecution(e,t){this._holdKeyBindingPromises.set(e,t)}processKeyupEvent(e){this._clearModifierTimer()}_startModifierTimer(e){this._clearModifierTimer(),this._timerModifierID=window.setTimeout(()=>{this._executeKeyBinding(e)},ps.modifierkeyTimeOut)}_clearModifierTimer(){this._timerModifierID!==0&&(clearTimeout(this._timerModifierID),this._timerModifierID=0)}_startTimer(){this._clearTimer(),this._timerID=window.setTimeout(()=>{this._onPendingTimeout()},ps.CHORD_TIMEOUT)}_clearTimer(){this._timerID!==0&&(clearTimeout(this._timerID),this._timerID=0)}_replayKeydownEvents(){this._keydownEvents.length!==0&&(this._replaying=!0,this._key
10downEvents.forEach(ps.replayKeyEvent),this._replaying=!1)}async _executeKeyBinding(e){if(this._holdKeyBindingPromises.size!==0){let s=[...this._keydownEvents],o=(await Promise.race([Promise.all(s.map(async a=>{var l;return(l=this._holdKeyBindingPromises.get(a))!==null&&l!==void 0?l:Promise.resolve(!0)})),new Promise(a=>{setTimeout(()=>a([!1]),ps.KEYBINDING_HOLD_TIMEOUT)})])).every(Boolean);if(this._holdKeyBindingPromises.clear(),!o)return}let{command:t,args:r}=e,n={_luminoEvent:{type:"keybinding",keys:e.keys},...r};if(!this.hasCommand(t)||!this.isEnabled(t,n)){let s=this.hasCommand(t)?"enabled":"registered",a=`Cannot execute key binding '${e.keys.join(", ")}':`,l=`command '${t}' is not ${s}.`;console.warn(`${a} ${l}`);return}await this.execute(t,n)}_clearPendingState(){this._clearTimer(),this._clearModifierTimer(),this._exactKeyMatch=null,this._keystrokes.length=0,this._keydownEvents.length=0}_onPendingTimeout(){this._timerID=0,this._exactKeyMatch?this._executeKeyBinding(this._exactKeyMatch):this._replayKeydownEvents(),this._clearPendingState()}};(function(i){function e(a){let l="",u=!1,c=!1,d=!1,f=!1;for(let m of a.split(/\s+/))m==="Accel"?fs.IS_MAC?c=!0:d=!0:m==="Alt"?u=!0:m==="Cmd"?c=!0:m==="Ctrl"?d=!0:m==="Shift"?f=!0:m.length>0&&(l=m);return{cmd:c,ctrl:d,alt:u,shift:f,key:l}}i.parseKeystroke=e;function t(a){let l="",u=e(a);return u.ctrl&&(l+="Ctrl "),u.alt&&(l+="Alt "),u.shift&&(l+="Shift "),u.cmd&&fs.IS_MAC&&(l+="Cmd "),u.key?l+u.key:l.trim()}i.normalizeKeystroke=t;function r(a){let l;return fs.IS_WIN?l=a.winKeys||a.keys:fs.IS_MAC?l=a.macKeys||a.keys:l=a.linuxKeys||a.keys,l.map(t)}i.normalizeKeys=r;function n(a){return typeof a=="string"?l(a):a.map(l).join(", ");function l(u){let c=[],d=fs.IS_MAC?" ":"+",f=e(u);return f.ctrl&&c.push("Ctrl"),f.alt&&c.push("Alt"),f.shift&&c.push("Shift"),fs.IS_MAC&&f.cmd&&c.push("Cmd"),c.push(f.key),c.map(ps.formatKey).join(d)}}i.formatKeystroke=n;function s(a){let l=Bn(),u=l.keyForKeydownEvent(a);return l.isModifierKey(u)}i.isModifierKeyPressed=s;function o(a){let l=Bn(),u=l.keyForKeydownEvent(a),c=[];return a.ctrlKey&&c.push("Ctrl"),a.altKey&&c.push("Alt"),a.shiftKey&&c.push("Shift"),a.metaKey&&fs.IS_MAC&&c.push("Cmd"),l.isModifierKey(u)||c.push(u),c.join(" ")}i.keystrokeForKeydownEvent=o})(Jt||(Jt={}));(function(i){i.CHORD_TIMEOUT=1e3,i.KEYBINDING_HOLD_TIMEOUT=1e3,i.modifierkeyTimeOut=500;function e(E){return{execute:E.execute,describedBy:b(typeof E.describedBy=="function"?E.describedBy:{args:null,...E.describedBy},()=>({args:null})),label:b(E.label,l),mnemonic:b(E.mnemonic,u),icon:b(E.icon,m),iconClass:b(E.iconClass,l),iconLabel:b(E.iconLabel,l),caption:b(E.caption,l),usage:b(E.usage,l),className:b(E.className,l),dataset:b(E.dataset,f),isEnabled:E.isEnabled||c,isToggled:E.isToggled||d,isToggleable:E.isToggleable||!!E.isToggled,isVisible:E.isVisible||c}}i.createCommand=e;function t(E){var A;return{keys:Jt.normalizeKeys(E),selector:y(E),command:E.command,args:E.args||er.JSONExt.emptyObject,preventDefault:(A=E.preventDefault)!==null&&A!==void 0?A:!0}}i.createKeyBinding=t;function r(E,A,R){let $=null,v=[],_=1/0,h=0;for(let p=0,g=E.length;p<g;++p){let C=E[p],I=x(C.keys,A);if(I===0)continue;if(I===2){M(C.selector,R)!==-1&&v.push(C);continue}let F=M(C.selector,R);if(F===-1||F>_)continue;let P=Lc.calculateSpecificity(C.selector);(!$||F<_||P>=h)&&($=C,_=F,h=P)}return{exact:$,partial:v}}i.matchKeyBinding=r;function n(E){E.target.dispatchEvent(T(E))}i.replayKeyEvent=n;function s(E){return fs.IS_MAC?o.hasOwnProperty(E)?o[E]:E:a.hasOwnProperty(E)?a[E]:E}i.formatKey=s;let o={Backspace:"\u232B",Tab:"\u21E5",Enter:"\u23CE",Shift:"\u21E7",Ctrl:"\u2303",Alt:"\u2325",Escape:"\u238B",PageUp:"\u21DE",PageDown:"\u21DF",End:"\u2198",Home:"\u2196",ArrowLeft:"\u2190",ArrowUp:"\u2191",ArrowRight:"\u2192",ArrowDown:"\u2193",Delete:"\u2326",Cmd:"\u2318"},a={Escape:"Esc",PageUp:"Page Up",PageDown:"Page Down",ArrowLeft:"Left",ArrowUp:"Up",ArrowRight:"Right",ArrowDown:"Down",Delete:"Del"},l=()=>"",u=()=>-1,c=()=>!0,d=()=>!1,f=()=>({}),m=()=>{};function b(E,A){return E===void 0?A:typeof E=="function"?E:()=>E}function y(E){if(E.selector.indexOf(",")!==-1)throw new Error(`Selector cannot contain commas: ${E.selector}`);if(!Lc.isValid(E.selector))throw new Error(`Invalid selector: ${E.selector}`);return E.selector}function x(E,A){if(E.length<A.length)return 0;for(let R=0,$=A.length;R<$;++R)if(E[R]!==A[R])return 0;return E.length>A.length?2:1}function M(E,A){let R=A.target,$=A.currentTarget;for(let v=0;R!==null;R=R.parentElement,++v){if(R.hasAttribute("data-lm-suppress-shortcuts"))return-1;if(Lc.matches(R,E))return v;if(R===$)return-1}return-1}function T(E){let A=document.createEvent("Event"),R=E.bubbles||!0,$=E.cancelable||!0;
10return A.initEvent(E.type||"keydown",R,$),A.key=E.key||"",A.keyCode=E.keyCode||0,A.which=E.keyCode||0,A.ctrlKey=E.ctrlKey||!1,A.altKey=E.altKey||!1,A.shiftKey=E.shiftKey||!1,A.metaKey=E.metaKey||!1,A.view=E.view||window,A}})(ps||(ps={}))});var jo,Ys,_n,Qh,j,x0,Xs,lu,$c,xn,ef,tf,ms,qo,vy,w0,uu,_y,cu,yy,Fc,xy,yn,au,S0,wy,Ga,Bo,Or,Dr,GT,_ae,gs,qn,Sy,ai,Js,Zt,Ho,Ti,Pc,C0,KT,YT,Cy,XT,JT,Gr=w(()=>{nu();jo=z(Ze());zT();Xh();gc();Qe();_0();Zh();iu();Fn();Jh();Ys=class{constructor(){this.sizeHint=0,this.minSize=0,this.maxSize=1/0,this.stretch=1,this.size=0,this.done=!1}};(function(i){function e(s,o){let a=s.length;if(a===0)return o;let l=0,u=0,c=0,d=0,f=0;for(let y=0;y<a;++y){let x=s[y],M=x.minSize,T=x.maxSize,E=x.sizeHint;x.done=!1,x.size=Math.max(M,Math.min(E,T)),c+=x.size,l+=M,u+=T,x.stretch>0&&(d+=x.stretch,f++)}if(o===c)return 0;if(o<=l){for(let y=0;y<a;++y){let x=s[y];x.size=x.minSize}return o-l}if(o>=u){for(let y=0;y<a;++y){let x=s[y];x.size=x.maxSize}return o-u}let m=.01,b=a;if(o<c){let y=c-o;for(;f>0&&y>m;){let x=y,M=d;for(let T=0;T<a;++T){let E=s[T];if(E.done||E.stretch===0)continue;let A=E.stretch*x/M;E.size-A<=E.minSize?(y-=E.size-E.minSize,d-=E.stretch,E.size=E.minSize,E.done=!0,b--,f--):(y-=A,E.size-=A)}}for(;b>0&&y>m;){let x=y/b;for(let M=0;M<a;++M){let T=s[M];T.done||(T.size-x<=T.minSize?(y-=T.size-T.minSize,T.size=T.minSize,T.done=!0,b--):(y-=x,T.size-=x)
10)}}}else{let y=o-c;for(;f>0&&y>m;){let x=y,M=d;for(let T=0;T<a;++T){let E=s[T];if(E.done||E.stretch===0)continue;let A=E.stretch*x/M;E.size+A>=E.maxSize?(y-=E.maxSize-E.size,d-=E.stretch,E.size=E.maxSize,E.done=!0,b--,f--):(y-=A,E.size+=A)}}for(;b>0&&y>m;){let x=y/b;for(let M=0;M<a;++M){let T=s[M];T.done||(T.size+x>=T.maxSize?(y-=T.maxSize-T.size,T.size=T.maxSize,T.done=!0,b--):(y-=x,T.size+=x))}}}return 0}i.calc=e;function t(s,o,a){s.length===0||a===0||(a>0?r(s,o,a):n(s,o,-a))}i.adjust=t;function r(s,o,a){let l=0;for(let f=0;f<=o;++f){let m=s[f];l+=m.maxSize-m.size}let u=0;for(let f=o+1,m=s.length;f<m;++f){let b=s[f];u+=b.size-b.minSize}a=Math.min(a,l,u);let c=a;for(let f=o;f>=0&&c>0;--f){let m=s[f],b=m.maxSize-m.size;b>=c?(m.sizeHint=m.size+c,c=0):(m.sizeHint=m.size+b,c-=b)}let d=a;for(let f=o+1,m=s.length;f<m&&d>0;++f){let b=s[f],y=b.size-b.minSize;y>=d?(b.sizeHint=b.size-d,d=0):(b.sizeHint=b.size-y,d-=y)}}function n(s,o,a){let l=0;for(let f=o+1,m=s.length;f<m;++f){let b=s[f];l+=b.maxSize-b.size}let u=0;for(let f=0;f<=o;++f){let m=s[f];u+=m.size-m.minSize}a=Math.min(a,l,u);let c=a;for(let f=o+1,m=s.length;f<m&&c>0;++f){let b=s[f],y=b.maxSize-b.size;y>=c?(b.sizeHint=b.size+c,c=0):(b.sizeHint=b.size+y,c-=y)}let d=a;for(let f=o;f>=0&&d>0;--f){let m=s[f],b=m.size-m.minSize;b>=d?(m.sizeHint=m.size-d,d=0):(m.sizeHint=m.size-b,d-=b)}}})(_n||(_n={}));Qh=class{constructor(e){this._label="",this._caption="",this._mnemonic=-1,this._icon=void 0,this._iconClass="",this._iconLabel="",this._className="",this._closable=!1,this._changed=new X(this),this._isDisposed=!1,this.owner=e.owner,e.label!==void 0&&(this._label=e.label),e.mnemonic!==void 0&&(this._mnemonic=e.mnemonic),e.icon!==void 0&&(this._icon=e.icon),e.iconClass!==void 0&&(this._iconClass=e.iconClass),e.iconLabel!==void 0&&(this._iconLabel=e.iconLabel),e.caption!==void 0&&(this._caption=e.caption),e.className!==void 0&&(this._className=e.className),e.closable!==void 0&&(this._closable=e.closable),this._dataset=e.dataset||{}}get changed(){return this._changed}get label(){return this._label}set label(e){this._label!==e&&(this._label=e,this._changed.emit(void 0))}get mnemonic(){return this._mnemonic}set mnemonic(e){this._mnemonic!==e&&(this._mnemonic=e,this._changed.emit(void 0))}get icon(){return this._icon}set icon(e){this._icon!==e&&(this._icon=e,this._changed.emit(void 0))}get iconClass(){return this._iconClass}set iconClass(e){this._iconClass!==e&&(this._iconClass=e,this._changed.emit(void 0))}get iconLabel(){return this._iconLabel}set iconLabel(e){this._iconLabel!==e&&(this._iconLabel=e,this._changed.emit(void 0))}get caption(){return this._caption}set caption(e){this._caption!==e&&(this._caption=e,this._changed.emit(void 0))}get className(){return this._className}set className(e){this._className!==e&&(this._className=e,this._changed.emit(void 0))}get closable(){return this._closable}set closable(e){this._closable!==e&&(this._closable=e,this._changed.emit(void 0))}get dataset(){return this._dataset}set dataset(e){this._dataset!==e&&(this._dataset=e,this._changed.emit(void 0))}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,X.clearData(this))}},j=class{constructor(e={}){this._flags=0,this._layout=null,this._parent=null,this._disposed=new X(this),this._hiddenMode=j.HiddenMode.Display,this.node=x0.createNode(e),this.addClass("lm-Widget")}dispose(){this.isDisposed||(this.setFlag(j.Flag.IsDisposed),this._disposed.emit(void 0),this.parent?this.parent=null:this.isAttached&&j.detach(this),this._layout&&(this._layout.dispose(),this._layout=null),this.title.dispose(),X.clearData(this),ie.clearData(this),Ge.clearData(this))}get disposed(){return this._disposed}get isDisposed(){return this.testFlag(j.Flag.IsDisposed)}get isAttached(){return this.testFlag(j.Flag.IsAttached)}get isHidden(){return this.testFlag(j.Flag.IsHidden)}get isVisible(){return this.testFlag(j.Flag.IsVisible)}get title(){return x0.titleProperty.get(this)}get id(){return this.node.id}set id(e){this.node.id=e}get dataset(){return this.node.dataset}get hiddenMode(){return this._hiddenMode}set hiddenMode(e){this._hiddenMode!==e&&(this.isHidden&&this._toggleHidden(!1),e==j.HiddenMode.Scale?this.node.style.willChange="transform":this.node.style.willChange="auto",this._hiddenMode=e,this.isHidden&&this._toggleHidden(!0))}get parent(){return this._parent}set parent(e){if(this._parent!==e){if(e&&this.contains(e))throw new Error("Invalid parent widget.");if(this._parent&&!this._parent.isDisposed){let t=new j.ChildMessage("child-removed",this);ie.sendMessage(this._parent,t)}if(this._parent=e,this._parent&&!this._parent.isDisposed){let t=new j.ChildMessage("child-added",this);ie.sendMessage(this._parent,t)}this.isDisposed||ie.sendMessage(this,j.Msg.ParentChanged)}}get layout(){return this._layout}set layout(e){if(this._layout!==e){if(this.testFlag(j.Flag.DisallowLayout))throw new Error("Cannot set widget layout.");if(this._layout)throw new Error("Cannot change widget layout.");if(e.parent)throw new Error("Cannot change layout parent.");this._layout=e,e.parent=this}}*children(){this._layout&&(yield*this._layout)}contains(e){for(let t=e;t;t=t._parent)if(t===this)return!0;return!1}hasClass(e){return this.node.classList.contains(e)}addClass(e){this.node.classList.add(e)}removeClass(e){this.node.classList.remove(e)}toggleClass(e,t){return t===!0?(this.node.classList.add(e),!0):t===!1?(this.node.classList.remove(e),!1):this.node.classList.toggle(e)}update(){ie.postMessage(this,j.Msg.UpdateRequest)}fit(){ie.postMessage(this,j.Msg.FitRequest)}activate(){ie.postMessage(this,j.Msg.ActivateRequest)}close(){ie.sendMessage(this,j.Msg.CloseRequest)}
10show(){if(this.testFlag(j.Flag.IsHidden)&&(this.isAttached&&(!this.parent||this.parent.isVisible)&&ie.sendMessage(this,j.Msg.BeforeShow),this.clearFlag(j.Flag.IsHidden),this._toggleHidden(!1),this.isAttached&&(!this.parent||this.parent.isVisible)&&ie.sendMessage(this,j.Msg.AfterShow),this.parent)){let e=new j.ChildMessage("child-shown",this);ie.sendMessage(this.parent,e)}}hide(){if(!this.testFlag(j.Flag.IsHidden)&&(this.isAttached&&(!this.parent||this.parent.isVisible)&&ie.sendMessage(this,j.Msg.BeforeHide),this.setFlag(j.Flag.IsHidden),this._toggleHidden(!0),this.isAttached&&(!this.parent||this.parent.isVisible)&&ie.sendMessage(this,j.Msg.AfterHide),this.parent)){let e=new j.ChildMessage("child-hidden",this);ie.sendMessage(this.parent,e)}}setHidden(e){e?this.hide():this.show()}testFlag(e){return(this._flags&e)!==0}setFlag(e){this._flags|=e}clearFlag(e){this._flags&=~e}processMessage(e){switch(e.type){case"resize":this.notifyLayout(e),this.onResize(e);break;case"update-request":this.notifyLayout(e),this.onUpdateRequest(e);break;case"fit-request":this.notifyLayout(e),this.onFitRequest(e);break;case"before-show":this.notifyLayout(e),this.onBeforeShow(e);break;case"after-show":this.setFlag(j.Flag.IsVisible),this.notifyLayout(e),this.onAfterShow(e);break;case"before-hide":this.notifyLayout(e),this.onBeforeHide(e);break;case"after-hide":this.clearFlag(j.Flag.IsVisible),this.notifyLayout(e),this.onAfterHide(e);break;case"before-attach":this.notifyLayout(e),this.onBeforeAttach(e);break;case"after-attach":!this.isHidden&&(!this.parent||this.parent.isVisible)&&this.setFlag(j.Flag.IsVisible),this.setFlag(j.Flag.IsAttached),this.notifyLayout(e),this.onAfterAttach(e);break;case"before-detach":this.notifyLayout(e),this.onBeforeDetach(e);break;case"after-detach":this.clearFlag(j.Flag.IsVisible),this.clearFlag(j.Flag.IsAttached),this.notifyLayout(e),this.onAfterDetach(e);break;case"activate-request":this.notifyLayout(e),this.onActivateRequest(e);break;case"close-request":this.notifyLayout(e),this.onCloseRequest(e);break;case"child-added":this.notifyLayout(e),this.onChildAdded(e);break;case"child-removed":this.notifyLayout(e),this.onChildRemoved(e);break;default:this.notifyLayout(e);break}}notifyLayout(e){this._layout&&this._layout.processParentMessage(e)}onCloseRequest(e){this.parent?this.parent=null:this.isAttached&&j.detach(this)}onResize(e){}onUpdateRequest(e){}onFitRequest(e){}onActivateRequest(e){}onBeforeShow(e){}onAfterShow(e){}onBeforeHide(e){}onAfterHide(e){}onBeforeAttach(e){}onAfterAttach(e){}onBeforeDetach(e){}onAfterDetach(e){}onChildAdded(e){}onChildRemoved(e){}_toggleHidden(e){if(e)switch(this._hiddenMode){case j.HiddenMode.Display:this.addClass("lm-mod-hidden");break;case j.HiddenMode.Scale:this.node.style.transform="scale(0)",this.node.setAttribute("aria-hidden","true");break;case j.HiddenMode.ContentVisibility:this.node.style.contentVisibility="hidden",this.node.style.zIndex="-1";break}else switch(this._hiddenMode){case j.HiddenMode.Display:this.removeClass("lm-mod-hidden");break;case j.HiddenMode.Scale:this.node.style.transform="",this.node.removeAttribute("aria-hidden");break;case j.HiddenMode.ContentVisibility:this.node.style.contentVisibility="",this.node.style.zIndex="";break}}};(function(i){(function(s){s[s.Display=0]="Display",s[s.Scale=1]="Scale",s[s.ContentVisibility=2]="ContentVisibility"})(i.HiddenMode||(i.HiddenMode={})),function(s){s[s.IsDisposed=1]="IsDisposed",s[s.IsAttached=2]="IsAttached",s[s.IsHidden=4]="IsHidden",s[s.IsVisible=8]="IsVisible",s[s.DisallowLayout=16]="DisallowLayout"}(i.Flag||(i.Flag={})),function(s){s.BeforeShow=new Rr("before-show"),s.AfterShow=new Rr("after-show"),s.BeforeHide=new Rr("before-hide"),s.AfterHide=new Rr("after-hide"),s.BeforeAttach=new Rr("before-attach"),s.AfterAttach=new Rr("after-attach"),s.BeforeDetach=new Rr("before-detach"),s.AfterDetach=new Rr("after-detach"),s.ParentChanged=new Rr("parent-changed"),s.UpdateRequest=new Ua("update-request"),s.FitRequest=new Ua("fit-request"),s.ActivateRequest=new Ua("activate-request"),s.CloseRequest=new Ua("close-request")}(i.Msg||(i.Msg={}));class e extends Rr{constructor(o,a){super(o),this.child=a}}i.ChildMessage=e;class t extends Rr{constructor(o,a){super("resize"),this.width=o,this.height=a}}i.ResizeMessage=t,function(s){s.UnknownSize=new s(-1,-1)}(t=i.ResizeMessage||(i.ResizeMessage={}));function r(s,o,a=null){if(s.parent)throw new Error("Cannot attach a child widget.");if(s.isAttached||s.node.isConnected)throw new Error("Widget is already attached.");if(!o.isConnected)throw new Error("Host is not attached.");ie.sendMessage(s,i.Msg.BeforeAttach),o.insertBefore(s.node,a),ie.sendMessage(s,i.Msg.AfterAttach)}i.attach=r;function n(s){if(s.parent)throw new Error("Cannot detach a child widget.");if(!s.isAttached||!s.node.isConnected)throw new Error("Widget is not attached.");ie.sendMessage(s,i.Msg.BeforeDetach),s.node.parentNode.removeChild(s.node),ie.sendMessage(s,i.Msg.AfterDetach)}i.detach=n})(j||(j={}));
10(function(i){i.titleProperty=new Ge({name:"title",create:t=>new Qh({owner:t})});function e(t){return t.node||document.createElement(t.tag||"div")}i.createNode=e})(x0||(x0={}));Xs=class{constructor(e={}){this._disposed=!1,this._parent=null,this._fitPolicy=e.fitPolicy||"set-min-size"}dispose(){this._parent=null,this._disposed=!0,X.clearData(this),Ge.clearData(this)}get isDisposed(){return this._disposed}get parent(){return this._parent}set parent(e){if(this._parent!==e){if(this._parent)throw new Error("Cannot change parent widget.");if(e.layout!==this)throw new Error("Invalid parent widget.");this._parent=e,this.init()}}get fitPolicy(){return this._fitPolicy}set fitPolicy(e){if(this._fitPolicy!==e&&(this._fitPolicy=e,this._parent)){let t=this._parent.node.style;t.minWidth="",t.minHeight="",t.maxWidth="",t.maxHeight="",this._parent.fit()}}processParentMessage(e){switch(e.type){case"resize":this.onResize(e);break;case"update-request":this.onUpdateRequest(e);break;case"fit-request":this.onFitRequest(e);break;case"before-show":this.onBeforeShow(e);break;case"after-show":this.onAfterShow(e);break;case"before-hide":this.onBeforeHide(e);break;case"after-hide":this.onAfterHide(e);break;case"before-attach":this.onBeforeAttach(e);break;case"after-attach":this.onAfterAttach(e);break;case"before-detach":this.onBeforeDetach(e);break;case"after-detach":this.onAfterDetach(e);break;case"child-removed":this.onChildRemoved(e);break;case"child-shown":this.onChildShown(e);break;case"child-hidden":this.onChildHidden(e);break}}init(){for(let e of this)e.parent=this.parent}onResize(e){for(let t of this)ie.sendMessage(t,j.ResizeMessage.UnknownSize)}onUpdateRequest(e){for(let t of this)ie.sendMessage(t,j.ResizeMessage.UnknownSize)}onBeforeAttach(e){for(let t of this)ie.sendMessage(t,e)}onAfterAttach(e){for(let t of this)ie.sendMessage(t,e)}onBeforeDetach(e){for(let t of this)ie.sendMessage(t,e)}onAfterDetach(e){for(let t of this)ie.sendMessage(t,e)}onBeforeShow(e){for(let t of this)t.isHidden||ie.sendMessage(t,e)}onAfterShow(e){for(let t of this)t.isHidden||ie.sendMessage(t,e)}onBeforeHide(e){for(let t of this)t.isHidden||ie.sendMessage(t,e)}onAfterHide(e){for(let t of this)t.isHidden||ie.sendMessage(t,e)}onChildRemoved(e){this.removeWidget(e.child)}onFitRequest(e){}onChildShown(e){}onChildHidden(e){}};(function(i){function e(s){return $c.horizontalAlignmentProperty.get(s)}i.getHorizontalAlignment=e;function t(s,o){$c.horizontalAlignmentProperty.set(s,o)}i.setHorizontalAlignment=t;function r(s){return $c.verticalAlignmentProperty.get(s)}i.getVerticalAlignment=r;function n(s,o){$c.verticalAlignmentProperty.set(s,o)}i.setVerticalAlignment=n})(Xs||(Xs={}));lu=class{constructor(e){this._top=NaN,this._left=NaN,this._width=NaN,this._height=NaN,this._minWidth=0,this._minHeight=0,this._maxWidth=1/0,this._maxHeight=1/0,this._disposed=!1,this.widget=e,this.widget.node.style.position="absolute",this.widget.node.style.contain="strict"}dispose(){if(this._disposed)return;this._disposed=!0;let e=this.widget.node.style;e.position="",e.top="",e.left="",e.width="",e.height="",e.contain=""}get minWidth(){return this._minWidth}get minHeight(){return this._minHeight}get maxWidth(){return this._maxWidth}get maxHeight(){return this._maxHeight}get isDisposed(){return this._disposed}get isHidden(){return this.widget.isHidden}get isVisible(){return this.widget.isVisible}get isAttached(){return this.widget.isAttached}fit(){let e=Ct.sizeLimits(this.widget.node);this._minWidth=e.minWidth,this._minHeight=e.minHeight,this._maxWidth=e.maxWidth,this._maxHeight=e.maxHeight}update(e,t,r,n){let s=Math.max(this._minWidth,Math.min(r,this._maxWidth)),o=Math.max(this._minHeight,Math.min(n,this._maxHeight));if(s<r)switch(Xs.getHorizontalAlignment(this.widget)){case"left":break;case"center":e+=(r-s)/2;break;case"right":e+=r-s;break;default:throw"unreachable"}if(o<n)switch(Xs.getVerticalAlignment(this.widget)){case"top":break;case"center":t+=(n-o)/2;break;case"bottom":t+=n-o;break;default:throw"unreachable"}let a=!1,l=this.widget.node.style;if(this._top!==t&&(this._top=t,l.top=`${t}px`),this._left!==e&&(this._left=e,l.left=`${e}px`),this._width!==s&&(a=!0,this._width=s,l.width=`${s}px`),this._height!==o&&(a=!0,this._height=o,l.height=`${o}px`),a){let u=new j.ResizeMessage(s,o);ie.sendMessage(this.widget,u)}}};
10(function(i){i.horizontalAlignmentProperty=new Ge({name:"horizontalAlignment",create:()=>"center",changed:e}),i.verticalAlignmentProperty=new Ge({name:"verticalAlignment",create:()=>"top",changed:e});function e(t){t.parent&&t.parent.layout&&t.parent.update()}})($c||($c={}));xn=class extends Xs{constructor(){super(...arguments),this._widgets=[]}dispose(){for(;this._widgets.length>0;)this._widgets.pop().dispose();super.dispose()}get widgets(){return this._widgets}*[Symbol.iterator](){yield*this._widgets}addWidget(e){this.insertWidget(this._widgets.length,e)}insertWidget(e,t){t.parent=this.parent;let r=this._widgets.indexOf(t),n=Math.max(0,Math.min(e,this._widgets.length));if(r===-1){ce.insert(this._widgets,n,t),this.parent&&this.attachWidget(n,t);return}n===this._widgets.length&&n--,r!==n&&(ce.move(this._widgets,r,n),this.parent&&this.moveWidget(r,n,t))}removeWidget(e){this.removeWidgetAt(this._widgets.indexOf(e))}removeWidgetAt(e){let t=ce.removeAt(this._widgets,e);t&&this.parent&&this.detachWidget(e,t)}init(){super.init();let e=0;for(let t of this)this.attachWidget(e++,t)}attachWidget(e,t){let r=this.parent.node.children[e];this.parent.isAttached&&ie.sendMessage(t,j.Msg.BeforeAttach),this.parent.node.insertBefore(t.node,r),this.parent.isAttached&&ie.sendMessage(t,j.Msg.AfterAttach)}moveWidget(e,t,r){this.parent.isAttached&&ie.sendMessage(r,j.Msg.BeforeDetach),this.parent.node.removeChild(r.node),this.parent.isAttached&&ie.sendMessage(r,j.Msg.AfterDetach);let n=this.parent.node.children[t];this.parent.isAttached&&ie.sendMessage(r,j.Msg.BeforeAttach),this.parent.node.insertBefore(r.node,n),this.parent.isAttached&&ie.sendMessage(r,j.Msg.AfterAttach)}detachWidget(e,t){this.parent.isAttached&&ie.sendMessage(t,j.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&ie.sendMessage(t,j.Msg.AfterDetach)}};(function(i){function e(t){return Math.max(0,Math.floor(t))}i.clampDimension=e})(ef||(ef={}));tf=ef,ms=class extends xn{constructor(e){super(),this.widgetOffset=0,this._fixed=0,this._spacing=4,this._dirty=!1,this._hasNormedSizes=!1,this._sizers=[],this._items=[],this._handles=[],this._box=null,this._alignment="start",this._orientation="horizontal",this.renderer=e.renderer,e.orientation!==void 0&&(this._orientation=e.orientation),e.alignment!==void 0&&(this._alignment=e.alignment),e.spacing!==void 0&&(this._spacing=ef.clampDimension(e.spacing))}dispose(){for(let e of this._items)e.dispose();this._box=null,this._items.length=0,this._sizers.length=0,this._handles.length=0,super.dispose()}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this.parent&&(this.parent.dataset.orientation=e,this.parent.fit()))}get alignment(){return this._alignment}set alignment(e){this._alignment!==e&&(this._alignment=e,this.parent&&(this.parent.dataset.alignment=e,this.parent.update()))}get spacing(){return this._spacing}set spacing(e){e=ef.clampDimension(e),this._spacing!==e&&(this._spacing=e,this.parent&&this.parent.fit())}get handles(){return this._handles}absoluteSizes(){return this._sizers.map(e=>e.size)}relativeSizes(){return qo.normalize(this._sizers.map(e=>e.size))}setRelativeSizes(e,t=!0){let r=this._sizers.length,n=e.slice(0,r);for(;n.length<r;)n.push(0);let s=qo.normalize(n);for(let o=0;o<r;++o){let a=this._sizers[o];a.sizeHint=s[o],a.size=s[o]}this._hasNormedSizes=!0,t&&this.parent&&this.parent.update()}moveHandle(e,t){let r=this._handles[e];if(!r||r.classList.contains("lm-mod-hidden"))return;let n;if(this._orientation==="horizontal"?n=t-r.offsetLeft:n=t-r.offsetTop,n!==0){for(let s of this._sizers)s.size>0&&(s.sizeHint=s.size);_n.adjust(this._sizers,e,n),this.parent&&this.parent.update()}}init(){this.parent.dataset.orientation=this.orientation,this.parent.dataset.alignment=this.alignment,super.init()}attachWidget(e,t){let r=new lu(t),n=qo.createHandle(this.renderer),s=qo.averageSize(this._sizers),o=qo.createSizer(s);ce.insert(this._items,e,r),ce.insert(this._sizers,e,o),ce.insert(this._handles,e,n),this.parent.isAttached&&ie.sendMessage(t,j.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.node.appendChild(n),this.parent.isAttached&&ie.sendMessage(t,j.Msg.AfterAttach),this.parent.fit()}moveWidget(e,t,r){ce.move(this._items,e,t),ce.move(this._sizers,e,t),ce.move(this._handles,e,t),this.parent.fit()}detachWidget(e,t){let r=ce.removeAt(this._items,e),n=ce.removeAt(this._handles,e);ce.removeAt(this._sizers,e),this.parent.isAttached&&ie.sendMessage(t,j.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.node.removeChild(n),this.parent.isAttached&&ie.sendMessage(t,j.Msg.AfterDetach),r.dispose(),this.parent.fit()}
10onBeforeShow(e){super.onBeforeShow(e),this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e),this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){this.parent.isVisible&&this._update(e.width,e.height)}onUpdateRequest(e){this.parent.isVisible&&this._update(-1,-1)}onFitRequest(e){this.parent.isAttached&&this._fit()}updateItemPosition(e,t,r,n,s,o,a){let l=this._items[e];if(l.isHidden)return;let u=this._handles[e].style;t?(r+=this.widgetOffset,l.update(r,n,a,s),r+=a,u.top=`${n}px`,u.left=`${r}px`,u.width=`${this._spacing}px`,u.height=`${s}px`):(n+=this.widgetOffset,l.update(r,n,o,a),n+=a,u.top=`${n}px`,u.left=`${r}px`,u.width=`${o}px`,u.height=`${this._spacing}px`)}_fit(){let e=0,t=-1;for(let l=0,u=this._items.length;l<u;++l)this._items[l].isHidden?this._handles[l].classList.add("lm-mod-hidden"):(this._handles[l].classList.remove("lm-mod-hidden"),t=l,e++);t!==-1&&this._handles[t].classList.add("lm-mod-hidden"),this._fixed=this._spacing*Math.max(0,e-1)+this.widgetOffset*this._items.length;let r=this._orientation==="horizontal",n=r?this._fixed:0,s=r?0:this._fixed;for(let l=0,u=this._items.length;l<u;++l){let c=this._items[l],d=this._sizers[l];if(d.size>0&&(d.sizeHint=d.size),c.isHidden){d.minSize=0,d.maxSize=0;continue}c.fit(),d.stretch=ms.getStretch(c.widget),r?(d.minSize=c.minWidth,d.maxSize=c.maxWidth,n+=c.minWidth,s=Math.max(s,c.minHeight)):(d.minSize=c.minHeight,d.maxSize=c.maxHeight,s+=c.minHeight,n=Math.max(n,c.minWidth))}let o=this._box=Ct.boxSizing(this.parent.node);n+=o.horizontalSum,s+=o.verticalSum;let a=this.parent.node.style;a.minWidth=`${n}px`,a.minHeight=`${s}px`,this._dirty=!0,this.parent.parent&&ie.sendMessage(this.parent.parent,j.Msg.FitRequest),this._dirty&&ie.sendMessage(this.parent,j.Msg.UpdateRequest)}_update(e,t){this._dirty=!1;let r=0;for(let d=0,f=this._items.length;d<f;++d)r+=+!this._items[d].isHidden;if(r===0&&this.widgetOffset===0)return;e<0&&(e=this.parent.node.offsetWidth),t<0&&(t=this.parent.node.offsetHeight),this._box||(this._box=Ct.boxSizing(this.parent.node));let n=this._box.paddingTop,s=this._box.paddingLeft,o=e-this._box.horizontalSum,a=t-this._box.verticalSum,l=0,u=0,c=this._orientation==="horizontal";if(r>0){let d;if(c?d=Math.max(0,o-this._fixed):d=Math.max(0,a-this._fixed),this._hasNormedSizes){for(let m of this._sizers)m.sizeHint*=d;this._hasNormedSizes=!1}let f=_n.calc(this._sizers,d);if(f>0)switch(this._alignment){case"start":break;case"center":l=0,u=f/2;break;case"end":l=0,u=f;break;case"justify":l=f/r,u=0;break;default:throw"unreachable"}}for(let d=0,f=this._items.length;d<f;++d){let b=this._items[d].isHidden?0:this._sizers[d].size+l;this.updateItemPosition(d,c,c?s+u:s,c?n:n+u,a,o,b);let y=this.widgetOffset+(this._handles[d].classList.contains("lm-mod-hidden")?0:this._spacing);c?s+=b+y:n+=b+y}}};(function(i){function e(r){return qo.stretchProperty.get(r)}i.getStretch=e;function t(r,n){qo.stretchProperty.set(r,n)}i.setStretch=t})(ms||(ms={}));(function(i){i.stretchProperty=new Ge({name:"stretch",create:()=>0,coerce:(o,a)=>Math.max(0,Math.floor(a)),changed:s});function e(o){let a=new Ys;return a.sizeHint=Math.floor(o),a}i.createSizer=e;function t(o){let a=o.createHandle();return a.style.position="absolute",a.style.contain="style",a}i.createHandle=t;function r(o){return o.reduce((a,l)=>a+l.size,0)/o.length||0}i.averageSize=r;function n(o){let a=o.length;if(a===0)return[];let l=o.reduce((u,c)=>u+Math.abs(c),0);return l===0?o.map(u=>1/a):o.map(u=>u/l)}i.normalize=n;function s(o){o.parent&&o.parent.layout instanceof ms&&o.parent.fit()}})(qo||(qo={}));vy=class extends ms{constructor(e){super({...e,orientation:e.orientation||"vertical"}),this._titles=[],this.titleSpace=e.titleSpace||22}get titleSpace(){return this.widgetOffset}set titleSpace(e){e=tf.clampDimension(e),this.widgetOffset!==e&&(this.widgetOffset=e,this.parent&&this.parent.fit())}get titles(){return this._titles}dispose(){this.isDisposed||(this._titles.length=0,super.dispose())}updateTitle(e,t){let r=this._titles[e],n=r.classList.contains("lm-mod-expanded"),s=w0.createTitle(this.renderer,t.title,n);this._titles[e]=s,this.parent.node.replaceChild(s,r)}insertWidget(e,t){t.id||(t.id=`id-${jo.UUID.uuid4()}`),super.insertWidget(e,t)}attachWidget(e,t){let r=w0.createTitle(this.renderer,t.title);ce.insert(this._titles,e,r),this.parent.node.appendChild(r),t.node.setAttribute("role","regi
10on"),t.node.setAttribute("aria-labelledby",r.id),super.attachWidget(e,t)}moveWidget(e,t,r){ce.move(this._titles,e,t),super.moveWidget(e,t,r)}detachWidget(e,t){let r=ce.removeAt(this._titles,e);this.parent.node.removeChild(r),super.detachWidget(e,t)}updateItemPosition(e,t,r,n,s,o,a){let l=this._titles[e].style;l.top=`${n}px`,l.left=`${r}px`,l.height=`${this.widgetOffset}px`,t?l.width=`${s}px`:l.width=`${o}px`,super.updateItemPosition(e,t,r,n,s,o,a)}};(function(i){function e(t,r,n=!0){let s=t.createSectionTitle(r);return s.style.position="absolute",s.style.contain="strict",s.setAttribute("aria-label",`${r.label} Section`),s.setAttribute("aria-expanded",n?"true":"false"),s.setAttribute("aria-controls",r.owner.id),n&&s.classList.add("lm-mod-expanded"),s}i.createTitle=e})(w0||(w0={}));uu=class extends j{constructor(e={}){super(),this.addClass("lm-Panel"),this.layout=_y.createLayout(e)}get widgets(){return this.layout.widgets}addWidget(e){this.layout.addWidget(e)}insertWidget(e,t){this.layout.insertWidget(e,t)}};(function(i){function e(t){return t.layout||new xn}i.createLayout=e})(_y||(_y={}));cu=class extends uu{constructor(e={}){super({layout:yy.createLayout(e)}),this._handleMoved=new X(this),this._pressData=null,this.addClass("lm-SplitPanel")}dispose(){this._releaseMouse(),super.dispose()}get orientation(){return this.layout.orientation}set orientation(e){this.layout.orientation=e}get alignment(){return this.layout.alignment}set alignment(e){this.layout.alignment=e}get spacing(){return this.layout.spacing}set spacing(e){this.layout.spacing=e}get renderer(){return this.layout.renderer}get handleMoved(){return this._handleMoved}get handles(){return this.layout.handles}relativeSizes(){return this.layout.relativeSizes()}setRelativeSizes(e,t=!0){this.layout.setRelativeSizes(e,t)}handleEvent(e){switch(e.type){case"pointerdown":this._evtPointerDown(e);break;case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"keydown":this._evtKeyDown(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("pointerdown",this)}onAfterDetach(e){this.node.removeEventListener("pointerdown",this),this._releaseMouse()}onChildAdded(e){e.child.addClass("lm-SplitPanel-child"),this._releaseMouse()}onChildRemoved(e){e.child.removeClass("lm-SplitPanel-child"),this._releaseMouse()}_evtKeyDown(e){this._pressData&&(e.preventDefault(),e.stopPropagation()),e.keyCode===27&&this._releaseMouse()}_evtPointerDown(e){if(e.button!==0)return;let t=this.layout,r=ce.findFirstIndex(t.handles,u=>u.contains(e.target));if(r===-1)return;e.preventDefault(),e.stopPropagation(),document.addEventListener("pointerup",this,!0),document.addEventListener("pointermove",this,!0),document.addEventListener("keydown",this,!0),document.addEventListener("contextmenu",this,!0);let n,s=t.handles[r],o=s.getBoundingClientRect();t.orientation==="horizontal"?n=e.clientX-o.left:n=e.clientY-o.top;let a=window.getComputedStyle(s),l=gt.overrideCursor(a.cursor);this._pressData={index:r,delta:n,override:l}}_evtPointerMove(e){e.preventDefault(),e.stopPropagation();let t,r=this.layout,n=this.node.getBoundingClientRect();r.orientation==="horizontal"?t=e.clientX-n.left-this._pressData.delta:t=e.clientY-n.top-this._pressData.delta,r.moveHandle(this._pressData.index,t)}_evtPointerUp(e){e.button===0&&(e.preventDefault(),e.stopPropagation(),this._releaseMouse())}_releaseMouse(){this._pressData&&(this._pressData.override.dispose(),this._pressData=null,this._handleMoved.emit(),document.removeEventListener("keydown",this,!0),document.removeEventListener("pointerup",this,!0),document.removeEventListener("pointermove",this,!0),document.removeEventListener("contextmenu",this,!0))}};(function(i){class e{createHandle(){let s=document.createElement("div");return s.className="lm-SplitPanel-handle",s}}i.Renderer=e,i.defaultRenderer=new e;function t(n){return ms.getStretch(n)}i.getStretch=t;function r(n,s){ms.setStretch(n,s)}i.setStretch=r})(cu||(cu={}));(function(i){function e(t){return t.layout||new ms({renderer:t.renderer||cu.defaultRenderer,orientation:t.orientation,alignment:t.alignment,spacing:t.spacing})}i.createLayout=e})(yy||(yy={}));Fc=class extends cu{constructor(e={}){super({...e,layout:xy.createLayout(e)}),this._widgetSizesCache=new WeakMap,this._expansionToggled=new X(this),this.addClass("lm-AccordionPanel")}get renderer(){return this.layout.renderer}get titleSpace(){return this.layout.titleSpace}set titleSpace(e){this.layout.titleSpace=e}get titles(){return this.layout.titles}get expansionToggled(){return this._expansionToggled}addWidget(e){super.addWidget(e),e.title.changed.connect(this._onTitleChanged,this)}collapse(e){let t=this.layout.widgets[e];t&&!t.isHidden&&this._toggleExpansion(e)}expand(e){let t=this.layout.widgets[e];t&&t.isHidden&&this._toggleExpansion(e)}insertWidget(e,t){super.insertWidget(e,t),t.title.changed.connect(this._onTitleChanged,this)}handleEvent(e){switch(super.handleEvent(e),e.type){case"click":this._evtClick(e);break;case"keydown":this._eventKeyDown(e);break}}onBeforeAttach(e){this.node.addEventListener("click",this),this.node.addEventListener("keydown",this),super.onBeforeAttach(e)}onAfterDetach(e){super.onAfterDetach(e),this.node.removeEventListener("click",this),this.node.removeEventListener("keydown",this)}_onTitleChanged(e){let t=ce.findFirstIndex(this.widgets,r=>r.contains(e.owner));t>=0&&(this.layout.updateTitle(t,e.owner),this.update())}_computeWidgetSize(e){let t=this.layout,r=t.widgets[e];if(!r)return;let n=r.isHidden,s=t.absoluteSizes(),o=(n?-1:1)*this.spacing,a=s.reduce((u,c)=>u+c),l=[...s];if(n){let u=this._widgetSizesCache.get(r);if(!u)return;l[e]+=u;let c=l.map(d=>d-u>0).lastIndexOf(!0);c===-1?l.forEach((d,f)=>{f!==e&&(l[f]-=s[f]/a*(u-o))}):l[c]-=u-o}else{let u=s[e];this._widgetSizesCache.set(r,u),l[e]=0;let c=l.map(d=>d>0).lastIndexOf(!0);if(c===-1)return;l[c]=s[c]+u+o}return l.map(u=>u/(a+o))}_evtClick(e){let t=e.target;if(t){let r=ce.findFirstIndex(this.titles,n=>n.contains(t));r>=0&&(e.preventDefault(),e.stopPropagation(),this._toggleExpansion(r))}}
10_eventKeyDown(e){if(e.defaultPrevented)return;let t=e.target,r=!1;if(t){let n=ce.findFirstIndex(this.titles,s=>s.contains(t));if(n>=0){let s=e.keyCode.toString();if(e.key.match(/Space|Enter/)||s.match(/13|32/))t.click(),r=!0;else if(this.orientation==="horizontal"?e.key.match(/ArrowLeft|ArrowRight/)||s.match(/37|39/):e.key.match(/ArrowUp|ArrowDown/)||s.match(/38|40/)){let o=e.key.match(/ArrowLeft|ArrowUp/)||s.match(/37|38/)?-1:1,a=this.titles.length,l=(n+a+o)%a;this.titles[l].focus(),r=!0}else e.key==="End"||s==="35"?(this.titles[this.titles.length-1].focus(),r=!0):(e.key==="Home"||s==="36")&&(this.titles[0].focus(),r=!0)}r&&e.preventDefault()}}_toggleExpansion(e){let t=this.titles[e],r=this.layout.widgets[e],n=this._computeWidgetSize(e);n&&this.setRelativeSizes(n,!1),r.isHidden?(t.classList.add("lm-mod-expanded"),t.setAttribute("aria-expanded","true"),r.show()):(t.classList.remove("lm-mod-expanded"),t.setAttribute("aria-expanded","false"),r.hide()),this._expansionToggled.emit(e)}};(function(i){class e extends cu.Renderer{constructor(){super(),this.titleClassName="lm-AccordionPanel-title",this._titleID=0,this._titleKeys=new WeakMap,this._uuid=++e._nInstance}createCollapseIcon(r){return document.createElement("span")}createSectionTitle(r){let n=document.createElement("h3");n.setAttribute("tabindex","0"),n.id=this.createTitleKey(r),n.className=this.titleClassName;for(let a in r.dataset)n.dataset[a]=r.dataset[a];let s=n.appendChild(this.createCollapseIcon(r));s.className="lm-AccordionPanel-titleCollapser";let o=n.appendChild(document.createElement("span"));return o.className="lm-AccordionPanel-titleLabel",o.textContent=r.label,o.title=r.caption||r.label,n}createTitleKey(r){let n=this._titleKeys.get(r);return n===void 0&&(n=`title-key-${this._uuid}-${this._titleID++}`,this._titleKeys.set(r,n)),n}}e._nInstance=0,i.Renderer=e,i.defaultRenderer=new e})(Fc||(Fc={}));(function(i){function e(t){return t.layout||new vy({renderer:t.renderer||Fc.defaultRenderer,orientation:t.orientation,alignment:t.alignment,spacing:t.spacing,titleSpace:t.titleSpace})}i.createLayout=e})(xy||(xy={}));yn=class extends xn{constructor(e={}){super(),this._fixed=0,this._spacing=4,this._dirty=!1,this._sizers=[],this._items=[],this._box=null,this._alignment="start",this._direction="top-to-bottom",e.direction!==void 0&&(this._direction=e.direction),e.alignment!==void 0&&(this._alignment=e.alignment),e.spacing!==void 0&&(this._spacing=tf.clampDimension(e.spacing))}dispose(){for(let e of this._items)e.dispose();this._box=null,this._items.length=0,this._sizers.length=0,super.dispose()}get direction(){return this._direction}set direction(e){this._direction!==e&&(this._direction=e,this.parent&&(this.parent.dataset.direction=e,this.parent.fit()))}get alignment(){return this._alignment}set alignment(e){this._alignment!==e&&(this._alignment=e,this.parent&&(this.parent.dataset.alignment=e,this.parent.update()))}get spacing(){return this._spacing}set spacing(e){e=tf.clampDimension(e),this._spacing!==e&&(this._spacing=e,this.parent&&this.parent.fit())}init(){this.parent.dataset.direction=this.direction,this.parent.dataset.alignment=this.alignment,super.init()}attachWidget(e,t){ce.insert(this._items,e,new lu(t)),ce.insert(this._sizers,e,new Ys),this.parent.isAttached&&ie.sendMessage(t,j.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.isAttached&&ie.sendMessage(t,j.Msg.AfterAttach),this.parent.fit()}moveWidget(e,t,r){ce.move(this._items,e,t),ce.move(this._sizers,e,t),this.parent.update()}detachWidget(e,t){let r=ce.removeAt(this._items,e);ce.removeAt(this._sizers,e),this.parent.isAttached&&ie.sendMessage(t,j.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&ie.sendMessage(t,j.Msg.AfterDetach),r.dispose(),this.parent.fit()}onBeforeShow(e){super.onBeforeShow(e),this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e),this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){this.parent.isVisible&&this._update(e.width,e.height)}onUpdateRequest(e){this.parent.isVisible&&this._update(-1,-1)}onFitRequest(e){this.parent.isAttached&&this._fit()}_fit(){let e=0;for(let a=0,l=this._items.length;a<l;++a)e+=+!this._items[a].isHidden;this._fixed=this._spacing*Math.max(0,e-1);let t=au.isHorizontal(this._direction),r=t?this._fixed:0,n=t?0:this._fixed;for(let a=0,l=this._items.length;a<l;++a){let u=this._items[a],c=this._sizers[a];if(u.isHidden){c.minSize=0,c.maxSize=0;continue}
10u.fit(),c.sizeHint=yn.getSizeBasis(u.widget),c.stretch=yn.getStretch(u.widget),t?(c.minSize=u.minWidth,c.maxSize=u.maxWidth,r+=u.minWidth,n=Math.max(n,u.minHeight)):(c.minSize=u.minHeight,c.maxSize=u.maxHeight,n+=u.minHeight,r=Math.max(r,u.minWidth))}let s=this._box=Ct.boxSizing(this.parent.node);r+=s.horizontalSum,n+=s.verticalSum;let o=this.parent.node.style;o.minWidth=`${r}px`,o.minHeight=`${n}px`,this._dirty=!0,this.parent.parent&&ie.sendMessage(this.parent.parent,j.Msg.FitRequest),this._dirty&&ie.sendMessage(this.parent,j.Msg.UpdateRequest)}_update(e,t){this._dirty=!1;let r=0;for(let d=0,f=this._items.length;d<f;++d)r+=+!this._items[d].isHidden;if(r===0)return;e<0&&(e=this.parent.node.offsetWidth),t<0&&(t=this.parent.node.offsetHeight),this._box||(this._box=Ct.boxSizing(this.parent.node));let n=this._box.paddingTop,s=this._box.paddingLeft,o=e-this._box.horizontalSum,a=t-this._box.verticalSum,l;switch(this._direction){case"left-to-right":l=_n.calc(this._sizers,Math.max(0,o-this._fixed));break;case"top-to-bottom":l=_n.calc(this._sizers,Math.max(0,a-this._fixed));break;case"right-to-left":l=_n.calc(this._sizers,Math.max(0,o-this._fixed)),s+=o;break;case"bottom-to-top":l=_n.calc(this._sizers,Math.max(0,a-this._fixed)),n+=a;break;default:throw"unreachable"}let u=0,c=0;if(l>0)switch(this._alignment){case"start":break;case"center":u=0,c=l/2;break;case"end":u=0,c=l;break;case"justify":u=l/r,c=0;break;default:throw"unreachable"}for(let d=0,f=this._items.length;d<f;++d){let m=this._items[d];if(m.isHidden)continue;let b=this._sizers[d].size;switch(this._direction){case"left-to-right":m.update(s+c,n,b+u,a),s+=b+u+this._spacing;break;case"top-to-bottom":m.update(s,n+c,o,b+u),n+=b+u+this._spacing;break;case"right-to-left":m.update(s-c-b-u,n,b+u,a),s-=b+u+this._spacing;break;case"bottom-to-top":m.update(s,n-c-b-u,o,b+u),n-=b+u+this._spacing;break;default:throw"unreachable"}}}};(function(i){function e(s){return au.stretchProperty.get(s)}i.getStretch=e;function t(s,o){au.stretchProperty.set(s,o)}i.setStretch=t;function r(s){return au.sizeBasisProperty.get(s)}i.getSizeBasis=r;function n(s,o){au.sizeBasisProperty.set(s,o)}i.setSizeBasis=n})(yn||(yn={}));(function(i){i.stretchProperty=new Ge({name:"stretch",create:()=>0,coerce:(n,s)=>Math.max(0,Math.floor(s)),changed:r}),i.sizeBasisProperty=new Ge({name:"sizeBasis",create:()=>0,coerce:(n,s)=>Math.max(0,Math.floor(s)),changed:r});function e(n){return n==="left-to-right"||n==="right-to-left"}i.isHorizontal=e;function t(n){return Math.max(0,Math.floor(n))}i.clampSpacing=t;function r(n){n.parent&&n.parent.layout instanceof yn&&n.parent.fit()}})(au||(au={}));S0=class extends uu{constructor(e={}){super({layout:wy.createLayout(e)}),this.addClass("lm-BoxPanel")}get direction(){return this.layout.direction}set direction(e){this.layout.direction=e}get alignment(){return this.layout.alignment}set alignment(e){this.layout.alignment=e}get spacing(){return this.layout.spacing}set spacing(e){this.layout.spacing=e}onChildAdded(e){e.child.addClass("lm-BoxPanel-child")}onChildRemoved(e){e.child.removeClass("lm-BoxPanel-child")}};(function(i){function e(s){return yn.getStretch(s)}i.getStretch=e;function t(s,o){yn.setStretch(s,o)}i.setStretch=t;function r(s){return yn.getSizeBasis(s)}i.getSizeBasis=r;function n(s,o){yn.setSizeBasis(s,o)}i.setSizeBasis=n})(S0||(S0={}));(function(i){function e(t){return t.layout||new yn(t)}i.createLayout=e})(wy||(wy={}));Ga=class extends j{constructor(e){super({node:Bo.createNode()}),this._activeIndex=-1,this._items=[],this._results=null,this.addClass("lm-CommandPalette"),this.setFlag(j.Flag.DisallowLayout),this.commands=e.commands,this.renderer=e.renderer||Ga.defaultRenderer,this.commands.commandChanged.connect(this._onGenericChange,this),this.commands.keyBindingChanged.connect(this._onGenericChange,this)}dispose(){this._items.length=0,this._results=null,super.dispose()}get searchNode(){return this.node.getElementsByClassName("lm-CommandPalette-search")[0]}get inputNode(){return this.node.getElementsByClassName("lm-CommandPalette-input")[0]}get contentNode(){return this.node.getElementsByClassName("lm-CommandPalette-content")[0]}get items(){return this._items}addItem(e){let t=Bo.createItem(this.commands,e);return this._items.push(t),this.refresh(),t}addItems(e){let t=e.map(r=>Bo.createItem(this.commands,r));return t.forEach(r=>this._items.push(r)),this.refresh(),t}removeItem(e){this.removeItemAt(this._items.indexOf(e))}removeItemAt(e){ce.removeAt(this._items,e)&&this.refresh()}clearItems(){this._items.length!==0&&(this._items.length=0,this.refresh())}refresh(){if(this._results=null,this.inputNode.value!==""){let e=this.node.getElementsByClassName("lm-close-icon")[0];e.style.display="inherit"}else{let e=this.node.getElementsByClassName("lm-close-icon")[0];e.style.display="none"}this.update()}handleEvent(e){switch(e.type){case"click":this._evtClick(e);break;case"keydown":this._evtKeyDown(e);break;case"input":this.refresh();break;case"focus":case"blur":this._toggleFocused();break}}onBeforeAttach(e){this.node.addEventListener("click",this),this.node.addEventListener("keydown",this),this.node.addEventListener("input",this),this.node.addEventListener("focus",this,!0),this.node.addEventListener("blur",this,!0)}onAfterDetach(e){this.node.removeEventListener("click",this),this.node.removeEventListener("keydown",this),this.node.removeEventListener("input",this),this.node.removeEventListener("focus",this,!0),this.node.removeEventListener("blur",this,!0)}onAfterShow(e){this.update(),super.onAfterShow(e)}
10onActivateRequest(e){if(this.isAttached){let t=this.inputNode;t.focus(),t.select()}}onUpdateRequest(e){if(this.isHidden)return;let t=this.inputNode.value,r=this.contentNode,n=this._results;if(n||(n=this._results=Bo.search(this._items,t),this._activeIndex=t?ce.findFirstIndex(n,Bo.canActivate):-1),!t&&n.length===0){Wt.render(null,r);return}if(t&&n.length===0){let l=this.renderer.renderEmptyMessage({query:t});Wt.render(l,r);return}let s=this.renderer,o=this._activeIndex,a=new Array(n.length);for(let l=0,u=n.length;l<u;++l){let c=n[l];if(c.type==="header"){let d=c.indices,f=c.category;a[l]=s.renderHeader({category:f,indices:d})}else{let d=c.item,f=c.indices,m=l===o;a[l]=s.renderItem({item:d,indices:f,active:m})}}if(Wt.render(a,r),o<0||o>=n.length)r.scrollTop=0;else{let l=r.children[o];Ct.scrollIntoViewIfNeeded(r,l)}}_evtClick(e){if(e.button!==0)return;if(e.target.classList.contains("lm-close-icon")){this.inputNode.value="",this.refresh();return}let t=ce.findFirstIndex(this.contentNode.children,r=>r.contains(e.target));t!==-1&&(e.preventDefault(),e.stopPropagation(),this._execute(t))}_evtKeyDown(e){if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey))switch(e.keyCode){case 13:e.preventDefault(),e.stopPropagation(),this._execute(this._activeIndex);break;case 38:e.preventDefault(),e.stopPropagation(),this._activatePreviousItem();break;case 40:e.preventDefault(),e.stopPropagation(),this._activateNextItem();break}}_activateNextItem(){if(!this._results||this._results.length===0)return;let e=this._activeIndex,t=this._results.length,r=e<t-1?e+1:0,n=r===0?t-1:r-1;this._activeIndex=ce.findFirstIndex(this._results,Bo.canActivate,r,n),this.update()}_activatePreviousItem(){if(!this._results||this._results.length===0)return;let e=this._activeIndex,t=this._results.length,r=e<=0?t-1:e-1,n=r===t-1?0:r+1;this._activeIndex=ce.findLastIndex(this._results,Bo.canActivate,r,n),this.update()}_execute(e){if(!this._results)return;let t=this._results[e];if(t){if(t.type==="header"){let r=this.inputNode;r.value=`${t.category.toLowerCase()} `,r.focus(),this.refresh();return}t.item.isEnabled&&(this.commands.execute(t.item.command,t.item.args),this.inputNode.value="",this.refresh())}}_toggleFocused(){let e=document.activeElement===this.inputNode;this.toggleClass("lm-mod-focused",e)}_onGenericChange(){this.refresh()}};(function(i){class e{renderHeader(r){let n=this.formatHeader(r);return ne.li({className:"lm-CommandPalette-header"},n)}renderItem(r){let n=this.createItemClass(r),s=this.createItemDataset(r);return r.item.isToggleable?ne.li({className:n,dataset:s,role:"menuitemcheckbox","aria-checked":`${r.item.isToggled}`},this.renderItemIcon(r),this.renderItemContent(r),this.renderItemShortcut(r)):ne.li({className:n,dataset:s,role:"menuitem"},this.renderItemIcon(r),this.renderItemContent(r),this.renderItemShortcut(r))}renderEmptyMessage(r){let n=this.formatEmptyMessage(r);return ne.li({className:"lm-CommandPalette-emptyMessage"},n)}renderItemIcon(r){let n=this.createIconClass(r);return ne.div({className:n},r.item.icon,r.item.iconLabel)}renderItemContent(r){return ne.div({className:"lm-CommandPalette-itemContent"},this.renderItemLabel(r),this.renderItemCaption(r))}renderItemLabel(r){let n=this.formatItemLabel(r);return ne.div({className:"lm-CommandPalette-itemLabel"},n)}renderItemCaption(r){let n=this.formatItemCaption(r);return ne.div({className:"lm-CommandPalette-itemCaption"},n)}renderItemShortcut(r){let n=this.formatItemShortcut(r);return ne.div({className:"lm-CommandPalette-itemShortcut"},n)}createItemClass(r){let n="lm-CommandPalette-item";r.item.isEnabled||(n+=" lm-mod-disabled"),r.item.isToggled&&(n+=" lm-mod-toggled"),r.active&&(n+=" lm-mod-active");let s=r.item.className;return s&&(n+=` ${s}`),n}createItemDataset(r){return{...r.item.dataset,command:r.item.command}}createIconClass(r){let n="lm-CommandPalette-itemIcon",s=r.item.iconClass;return s?`${n} ${s}`:n}formatHeader(r){return!r.indices||r.indices.length===0?r.category:ru.highlight(r.category,r.indices,ne.mark)}formatEmptyMessage(r){return`No commands found that match '${r.query}'`}formatItemShortcut(r){let n=r.item.keyBinding;return n?Jt.formatKeystroke(n.keys):null}formatItemLabel(r){return!r.indices||r.indices.length===0?r.item.label:ru.highlight(r.item.label,r.indices,ne.mark)}formatItemCaption(r){return r.item.caption}}i.Renderer=e,i.defaultRenderer=new e})(Ga||(Ga={}));(function(i){function e(){let f=document.createElement("div"),m=document.createElement("div"),b=document.createElement("div"),y=document.createElement("input"),x=document.createElement("ul"),M=document.createElement("button");return m.className="lm-CommandPalette-search",b.className="lm-CommandPalette-wrapper",y.className="lm-CommandPalette-input",M.className="lm-close-icon",x.className="lm-CommandPalette-content",x.setAttribute("role","menu"),y.spellcheck=!1,b.appendChild(y),b.appendChild(M),m.appendChild(b),f.appendChild(m),f.appendChild(x),f}i.createNode=e;function t(f,m){return new d(f,m)}i.createItem=t;function r(f,m){let b=a(f,m);return b.sort(u),c(b)}i.search=r;function n(f){return f.type==="item"&&f.item.isEnabled}i.canActivate=n;function s(f){return f.trim().replace(/\s+/g," ")}function o(f){return f.replace(/\s+/g,"").toLowerCase()}function a(f,m){m=o(m);let b=[];for(let y=0,x=f.length;y<x;++y){let M=f[y];if(!M.isVisible)continue;if(!m){b.push({matchType:3,categoryIndices:null,labelIndices:null,
10score:0,item:M});continue}let T=l(M,m);T&&(M.isEnabled||(T.score+=1e3),b.push(T))}return b}function l(f,m){let b=f.category.toLowerCase(),y=f.label.toLowerCase(),x=`${b} ${y}`,M=1/0,T=null,E=/\b\w/g;for(;;){let _=E.exec(x);if(!_)break;let h=ru.matchSumOfDeltas(x,m,_.index);if(!h)break;h.score<=M&&(M=h.score,T=h.indices)}if(!T||M===1/0)return null;let A=b.length+1,R=ce.lowerBound(T,A,(_,h)=>_-h),$=T.slice(0,R),v=T.slice(R);for(let _=0,h=v.length;_<h;++_)v[_]-=A;return $.length===0?{matchType:0,categoryIndices:null,labelIndices:v,score:M,item:f}:v.length===0?{matchType:1,categoryIndices:$,labelIndices:null,score:M,item:f}:{matchType:2,categoryIndices:$,labelIndices:v,score:M,item:f}}function u(f,m){let b=f.matchType-m.matchType;if(b!==0)return b;let y=f.score-m.score;if(y!==0)return y;let x=0,M=0;switch(f.matchType){case 0:x=f.labelIndices[0],M=m.labelIndices[0];break;case 1:case 2:x=f.categoryIndices[0],M=m.categoryIndices[0];break}if(x!==M)return x-M;let T=f.item.category.localeCompare(m.item.category);if(T!==0)return T;let E=f.item.rank,A=m.item.rank;return E!==A?E<A?-1:1:f.item.label.localeCompare(m.item.label)}function c(f){let m=[];for(let b=0,y=f.length;b<y;++b){let{item:x,categoryIndices:M,labelIndices:T}=f[b],E=x.category;(b===0||E!==f[b-1].item.category)&&m.push({type:"header",category:E,indices:M}),m.push({type:"item",item:x,indices:T})}return m}class d{constructor(m,b){this._commands=m,this.category=s(b.category),this.command=b.command,this.args=b.args||jo.JSONExt.emptyObject,this.rank=b.rank!==void 0?b.rank:1/0}get label(){return this._commands.label(this.command,this.args)}get icon(){return this._commands.icon(this.command,this.args)}get iconClass(){return this._commands.iconClass(this.command,this.args)}get iconLabel(){return this._commands.iconLabel(this.command,this.args)}get caption(){return this._commands.caption(this.command,this.args)}get className(){return this._commands.className(this.command,this.args)}get dataset(){return this._commands.dataset(this.command,this.args)}get isEnabled(){return this._commands.isEnabled(this.command,this.args)}get isToggled(){return this._commands.isToggled(this.command,this.args)}get isToggleable(){return this._commands.isToggleable(this.command,this.args)}get isVisible(){return this._commands.isVisible(this.command,this.args)}get keyBinding(){let{command:m,args:b}=this;return ce.findLastValue(this._commands.keyBindings,y=>y.command===m&&jo.JSONExt.deepEqual(y.args,b))||null}}}
10)(Bo||(Bo={}));Or=class extends j{constructor(e){super({node:Dr.createNode()}),this._childIndex=-1,this._activeIndex=-1,this._openTimerID=0,this._closeTimerID=0,this._items=[],this._childMenu=null,this._parentMenu=null,this._aboutToClose=new X(this),this._menuRequested=new X(this),this.addClass("lm-Menu"),this.setFlag(j.Flag.DisallowLayout),this.commands=e.commands,this.renderer=e.renderer||Or.defaultRenderer}dispose(){this.close(),this._items.length=0,super.dispose()}get aboutToClose(){return this._aboutToClose}get menuRequested(){return this._menuRequested}get parentMenu(){return this._parentMenu}get childMenu(){return this._childMenu}get rootMenu(){let e=this;for(;e._parentMenu;)e=e._parentMenu;return e}get leafMenu(){let e=this;for(;e._childMenu;)e=e._childMenu;return e}get contentNode(){return this.node.getElementsByClassName("lm-Menu-content")[0]}get activeItem(){return this._items[this._activeIndex]||null}set activeItem(e){this.activeIndex=e?this._items.indexOf(e):-1}get activeIndex(){return this._activeIndex}set activeIndex(e){(e<0||e>=this._items.length)&&(e=-1),e!==-1&&!Dr.canActivate(this._items[e])&&(e=-1),this._activeIndex!==e&&(this._activeIndex=e,this._activeIndex>=0&&this.contentNode.childNodes[this._activeIndex]&&this.contentNode.childNodes[this._activeIndex].focus(),this.update())}get items(){return this._items}activateNextItem(){let e=this._items.length,t=this._activeIndex,r=t<e-1?t+1:0,n=r===0?e-1:r-1;this.activeIndex=ce.findFirstIndex(this._items,Dr.canActivate,r,n)}activatePreviousItem(){let e=this._items.length,t=this._activeIndex,r=t<=0?e-1:t-1,n=r===e-1?0:r+1;this.activeIndex=ce.findLastIndex(this._items,Dr.canActivate,r,n)}triggerActiveItem(){if(!this.isAttached)return;let e=this.activeItem;if(!e)return;if(this._cancelOpenTimer(),this._cancelCloseTimer(),e.type==="submenu"){this._openChildMenu(!0);return}this.rootMenu.close();let{command:t,args:r}=e;this.commands.isEnabled(t,r)?this.commands.execute(t,r):console.log(`Command '${t}' is disabled.`)}addItem(e){return this.insertItem(this._items.length,e)}insertItem(e,t){this.isAttached&&this.close(),this.activeIndex=-1;let r=Math.max(0,Math.min(e,this._items.length)),n=Dr.createItem(this,t);return ce.insert(this._items,r,n),this.update(),n}removeItem(e){this.removeItemAt(this._items.indexOf(e))}removeItemAt(e){this.isAttached&&this.close(),this.activeIndex=-1,ce.removeAt(this._items,e)&&this.update()}clearItems(){this.isAttached&&this.close(),this.activeIndex=-1,this._items.length!==0&&(this._items.length=0,this.update())}open(e,t,r={}){var n,s;if(this.isAttached)return;let o=r.forceX||!1,a=r.forceY||!1,l=(n=r.host)!==null&&n!==void 0?n:null,u=(s=r.ref)!==null&&s!==void 0?s:null;Dr.openRootMenu(this,e,t,o,a,l,u),this.activate()}handleEvent(e){switch(e.type){case"keydown":this._evtKeyDown(e);break;case"mouseup":this._evtMouseUp(e);break;case"mousemove":this._evtMouseMove(e);break;case"mouseenter":this._evtMouseEnter(e);break;case"mouseleave":this._evtMouseLeave(e);break;case"mousedown":this._evtMouseDown(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("keydown",this),this.node.addEventListener("mouseup",this),this.node.addEventListener("mousemove",this),this.node.addEventListener("mouseenter",this),this.node.addEventListener("mouseleave",this),this.node.addEventListener("contextmenu",this),document.addEventListener("mousedown",this,!0)}onAfterDetach(e){this.node.removeEventListener("keydown",this),this.node.removeEventListener("mouseup",this),this.node.removeEventListener("mousemove",this),this.node.removeEventListener("mouseenter",this),this.node.removeEventListener("mouseleave",this),this.node.removeEventListener("contextmenu",this),document.removeEventListener("mousedown",this,!0)}onActivateRequest(e){this.isAttached&&this.node.focus()}onUpdateRequest(e){let t=this._items,r=this.renderer,n=this._activeIndex,s=Dr.computeCollapsed(t),o=new Array(t.length);for(let a=0,l=t.length;a<l;++a){let u=t[a],c=a===n,d=s[a];o[a]=r.renderItem({item:u,active:c,collapsed:d,onfocus:()=>{this.activeIndex=a}})}Wt.render(o,this.contentNode)}
10onCloseRequest(e){this._cancelOpenTimer(),this._cancelCloseTimer(),this.activeIndex=-1;let t=this._childMenu;t&&(this._childIndex=-1,this._childMenu=null,t._parentMenu=null,t.close());let r=this._parentMenu;r&&(this._parentMenu=null,r._childIndex=-1,r._childMenu=null,r.activate()),this.isAttached&&this._aboutToClose.emit(void 0),super.onCloseRequest(e)}_evtKeyDown(e){e.preventDefault(),e.stopPropagation();let t=e.keyCode;if(t===13){this.triggerActiveItem();return}if(t===27){this.close();return}if(t===37){this._parentMenu?this.close():this._menuRequested.emit("previous");return}if(t===38){this.activatePreviousItem();return}if(t===39){let o=this.activeItem;o&&o.type==="submenu"?this.triggerActiveItem():this.rootMenu._menuRequested.emit("next");return}if(t===40){this.activateNextItem();return}let r=Bn().keyForKeydownEvent(e);if(!r)return;let n=this._activeIndex+1,s=Dr.findMnemonic(this._items,r,n);s.index!==-1&&!s.multiple?(this.activeIndex=s.index,this.triggerActiveItem()):s.index!==-1?this.activeIndex=s.index:s.auto!==-1&&(this.activeIndex=s.auto)}_evtMouseUp(e){e.button===0&&(e.preventDefault(),e.stopPropagation(),this.triggerActiveItem())}_evtMouseMove(e){let t=ce.findFirstIndex(this.contentNode.children,n=>Ct.hitTest(n,e.clientX,e.clientY));if(t===this._activeIndex)return;if(this.activeIndex=t,t=this.activeIndex,t===this._childIndex){this._cancelOpenTimer(),this._cancelCloseTimer();return}this._childIndex!==-1&&this._startCloseTimer(),this._cancelOpenTimer();let r=this.activeItem;!r||r.type!=="submenu"||!r.submenu||this._startOpenTimer()}_evtMouseEnter(e){for(let t=this._parentMenu;t;t=t._parentMenu)t._cancelOpenTimer(),t._cancelCloseTimer(),t.activeIndex=t._childIndex}_evtMouseLeave(e){if(this._cancelOpenTimer(),!this._childMenu){this.activeIndex=-1;return}let{clientX:t,clientY:r}=e;if(Ct.hitTest(this._childMenu.node,t,r)){this._cancelCloseTimer();return}this.activeIndex=-1,this._startCloseTimer()}_evtMouseDown(e){this._parentMenu||(Dr.hitTestMenus(this,e.clientX,e.clientY)?(e.preventDefault(),e.stopPropagation()):this.close())}_openChildMenu(e=!1){let t=this.activeItem;if(!t||t.type!=="submenu"||!t.submenu){this._closeChildMenu();return}let r=t.submenu;if(r===this._childMenu)return;Or.saveWindowData(),this._closeChildMenu(),this._childMenu=r,this._childIndex=this._activeIndex,r._parentMenu=this,ie.sendMessage(this,j.Msg.UpdateRequest);let n=this.contentNode.children[this._activeIndex];Dr.openSubmenu(r,n),e&&(r.activeIndex=-1,r.activateNextItem()),r.activate()}_closeChildMenu(){this._childMenu&&this._childMenu.close()}_startOpenTimer(){this._openTimerID===0&&(this._openTimerID=window.setTimeout(()=>{this._openTimerID=0,this._openChildMenu()},Dr.TIMER_DELAY))}_startCloseTimer(){this._closeTimerID===0&&(this._closeTimerID=window.setTimeout(()=>{this._closeTimerID=0,this._closeChildMenu()},Dr.TIMER_DELAY))}_cancelOpenTimer(){this._openTimerID!==0&&(clearTimeout(this._openTimerID),this._openTimerID=0)}_cancelCloseTimer(){this._closeTimerID!==0&&(clearTimeout(this._closeTimerID),this._closeTimerID=0)}static saveWindowData(){Dr.saveWindowData()}};(function(i){class e{renderItem(r){let n=this.createItemClass(r),s=this.createItemDataset(r),o=this.createItemARIA(r);return ne.li({className:n,dataset:s,tabindex:"0",onfocus:r.onfocus,...o},this.renderIcon(r),this.renderLabel(r),this.renderShortcut(r),this.renderSubmenu(r))}renderIcon(r){let n=this.createIconClass(r);return ne.div({className:n},r.item.icon,r.item.iconLabel)}renderLabel(r){let n=this.formatLabel(r);return ne.div({className:"lm-Menu-itemLabel"},n)}renderShortcut(r){let n=this.formatShortcut(r);return ne.div({className:"lm-Menu-itemShortcut"},n)}renderSubmenu(r){return ne.div({className:"lm-Menu-itemSubmenuIcon"})}createItemClass(r){let n="lm-Menu-item";r.item.isEnabled||(n+=" lm-mod-disabled"),r.item.isToggled&&(n+=" lm-mod-toggled"),r.item.isVisible||(n+=" lm-mod-hidden"),r.active&&(n+=" lm-mod-active"),r.collapsed&&(n+=" lm-mod-collapsed");let s=r.item.className;return s&&(n+=` ${s}`),n}createItemDataset(r){let n,{type:s,command:o,dataset:a}=r.item;return s==="command"?n={...a,type:s,command:o}:n={...a,type:s},n}createIconClass(r){let n="lm-Menu-itemIcon",s=r.item.iconClass;return s?`${n} ${s}`:n}createItemARIA(r){let n={};switch(r.item.type){case"separator":n.role="presentation";break;case"submenu":n["aria-haspopup"]="true",r.item.isEnabled||(n["aria-disabled"]="true");break;default:r.item.isEnabled||(n["aria-disabled"]="true"),n.role="menuitem"}return n}formatLabel(r){let{label:n,mnemonic:s}=r.item;if(s<0||s>=n.length)return n;let o=n.slice(0,s),a=n.slice(s+1),l=n[s],u=ne.span({className:"lm-Menu-itemMnemonic"},l);return[o,u,a]}formatShortcut(r){let n=r.item.keyBinding;return n?Jt.formatKeystroke(n.keys):null}}
10i.Renderer=e,i.defaultRenderer=new e})(Or||(Or={}));(function(i){i.TIMER_DELAY=300,i.SUBMENU_OVERLAP=3;let e=null,t=0;function r(){return t>0?(t--,e):c()}function n(){e=c(),t++}i.saveWindowData=n;function s(){let y=document.createElement("div"),x=document.createElement("ul");return x.className="lm-Menu-content",y.appendChild(x),x.setAttribute("role","menu"),y.tabIndex=0,y}i.createNode=s;function o(y){return y.type!=="separator"&&y.isEnabled&&y.isVisible}i.canActivate=o;function a(y,x){return new b(y.commands,x)}i.createItem=a;function l(y,x,M){for(let T=y;T;T=T.childMenu)if(Ct.hitTest(T.node,x,M))return!0;return!1}i.hitTestMenus=l;function u(y){let x=new Array(y.length);ce.fill(x,!1);let M=0,T=y.length;for(;M<T;++M){let R=y[M];if(R.isVisible){if(R.type!=="separator")break;x[M]=!0}}let E=T-1;for(;E>=0;--E){let R=y[E];if(R.isVisible){if(R.type!=="separator")break;x[E]=!0}}let A=!1;for(;++M<E;){let R=y[M];R.isVisible&&(R.type!=="separator"?A=!1:A?x[M]=!0:A=!0)}return x}i.computeCollapsed=u;function c(){return{pageXOffset:window.pageXOffset,pageYOffset:window.pageYOffset,clientWidth:document.documentElement.clientWidth,clientHeight:document.documentElement.clientHeight}}function d(y,x,M,T,E,A,R){let $=r(),v=$.pageXOffset,_=$.pageYOffset,h=$.clientWidth,p=$.clientHeight;ie.sendMessage(y,j.Msg.UpdateRequest);let g=p-(E?M:0),C=y.node,I=C.style;I.opacity="0",I.maxHeight=`${g}px`,j.attach(y,A||document.body,R);let{width:F,height:P}=C.getBoundingClientRect();!T&&x+F>v+h&&(x=v+h-F),!E&&M+P>_+p&&(M>_+p?M=_+p-P:M=M-P),I.transform=`translate(${Math.max(0,x)}px, ${Math.max(0,M)}px`,I.opacity="1"}i.openRootMenu=d;function f(y,x){let M=r(),T=M.pageXOffset,E=M.pageYOffset,A=M.clientWidth,R=M.clientHeight;ie.sendMessage(y,j.Msg.UpdateRequest);let $=R,v=y.node,_=v.style;_.opacity="0",_.maxHeight=`${$}px`,j.attach(y,document.body);let{width:h,height:p}=v.getBoundingClientRect(),g=Ct.boxSizing(y.node),C=x.getBoundingClientRect(),I=C.right-i.SUBMENU_OVERLAP;I+h>T+A&&(I=C.left+i.SUBMENU_OVERLAP-h);let F=C.top-g.borderTop-g.paddingTop;F+p>E+R&&(F=C.bottom+g.borderBottom+g.paddingBottom-p),_.transform=`translate(${Math.max(0,I)}px, ${Math.max(0,F)}px`,_.opacity="1"}i.openSubmenu=f;function m(y,x,M){let T=-1,E=-1,A=!1,R=x.toUpperCase();for(let $=0,v=y.length;$<v;++$){let _=($+M)%v,h=y[_];if(!o(h))continue;let p=h.label;if(p.length===0)continue;let g=h.mnemonic;if(g>=0&&g<p.length){p[g].toUpperCase()===R&&(T===-1?T=_:A=!0);continue}E===-1&&p[0].toUpperCase()===R&&(E=_)}return{index:T,multiple:A,auto:E}}i.findMnemonic=m;class b{constructor(x,M){this._commands=x,this.type=M.type||"command",this.command=M.command||"",this.args=M.args||jo.JSONExt.emptyObject,this.submenu=M.submenu||null}get label(){return this.type==="command"?this._commands.label(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.label:""}get mnemonic(){return this.type==="command"?this._commands.mnemonic(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.mnemonic:-1}get icon(){if(this.type==="command")return this._commands.icon(this.command,this.args);if(this.type==="submenu"&&this.submenu)return this.submenu.title.icon}get iconClass(){return this.type==="command"?this._commands.iconClass(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.iconClass:""}get iconLabel(){return this.type==="command"?this._commands.iconLabel(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.iconLabel:""}get caption(){return this.type==="command"?this._commands.caption(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.caption:""}get className(){return this.type==="command"?this._commands.className(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.className:""}get dataset(){return this.type==="command"?this._commands.dataset(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.dataset:{}}get isEnabled(){return this.type==="command"?this._commands.isEnabled(this.command,this.args):this.type==="submenu"?this.submenu!==null:!0}get isToggled(){return this.type==="command"?this._commands.isToggled(this.command,this.args):!1}get isVisible(){return this.type==="command"?this._commands.isVisible(this.command,this.args):this.type==="submenu"?this.submenu!==null:!0}
10get keyBinding(){if(this.type==="command"){let{command:x,args:M}=this;return ce.findLastValue(this._commands.keyBindings,T=>T.command===x&&jo.JSONExt.deepEqual(T.args,M))||null}return null}}})(Dr||(Dr={}));(function(i){function e(o,a){let l=r(o.selector),u=o.rank!==void 0?o.rank:1/0;return{...o,selector:l,rank:u,id:a}}i.createItem=e;function t(o,a,l,u){let c=a.target;if(!c)return null;let d=a.currentTarget;if(!d||!d.contains(c)&&(c=document.elementFromPoint(a.clientX,a.clientY),!c||!d.contains(c)))return null;let f=[],m=o.slice();for(;c!==null;){let b=[];for(let y=0,x=m.length;y<x;++y){let M=m[y];M&&ou.matches(c,M.selector)&&(b.push(M),m[y]=null)}if(b.length!==0&&(l&&b.sort(u?s:n),f.push(...b)),c===d)break;c=c.parentElement}return l||f.sort(u?s:n),f}i.matchItems=t;function r(o){if(o.indexOf(",")!==-1)throw new Error(`Selector cannot contain commas: ${o}`);if(!ou.isValid(o))throw new Error(`Invalid selector: ${o}`);return o}function n(o,a){let l=o.rank,u=a.rank;return l!==u?l<u?-1:1:o.id-a.id}function s(o,a){let l=ou.calculateSpecificity(o.selector),u=ou.calculateSpecificity(a.selector);return l!==u?u-l:n(o,a)}})(GT||(GT={}));_ae=["ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Home","End"],gs=class extends j{constructor(e={}){super({node:qn.createNode()}),this._currentIndex=-1,this._titles=[],this._titlesEditable=!1,this._previousTitle=null,this._dragData=null,this._addButtonEnabled=!1,this._tabMoved=new X(this),this._currentChanged=new X(this),this._addRequested=new X(this),this._tabCloseRequested=new X(this),this._tabDetachRequested=new X(this),this._tabActivateRequested=new X(this),this.addClass("lm-TabBar"),this.contentNode.setAttribute("role","tablist"),this.setFlag(j.Flag.DisallowLayout),this._document=e.document||document,this.tabsMovable=e.tabsMovable||!1,this.titlesEditable=e.titlesEditable||!1,this.allowDeselect=e.allowDeselect||!1,this.addButtonEnabled=e.addButtonEnabled||!1,this.insertBehavior=e.insertBehavior||"select-tab-if-needed",this.name=e.name||"",this.orientation=e.orientation||"horizontal",this.removeBehavior=e.removeBehavior||"select-tab-after",this.renderer=e.renderer||gs.defaultRenderer}dispose(){this._releaseMouse(),this._titles.length=0,this._previousTitle=null,super.dispose()}get currentChanged(){return this._currentChanged}get tabMoved(){return this._tabMoved}get tabActivateRequested(){return this._tabActivateRequested}get addRequested(){return this._addRequested}get tabCloseRequested(){return this._tabCloseRequested}get tabDetachRequested(){return this._tabDetachRequested}get document(){return this._document}get titlesEditable(){return this._titlesEditable}set titlesEditable(e){this._titlesEditable=e}get currentTitle(){return this._titles[this._currentIndex]||null}set currentTitle(e){this.currentIndex=e?this._titles.indexOf(e):-1}get currentIndex(){return this._currentIndex}set currentIndex(e){if((e<0||e>=this._titles.length)&&(e=-1),this._currentIndex===e)return;let t=this._currentIndex,r=this._titles[t]||null,n=e,s=this._titles[n]||null;this._currentIndex=n,this._previousTitle=r,this.update(),this._currentChanged.emit({previousIndex:t,previousTitle:r,currentIndex:n,currentTitle:s})}get name(){return this._name}set name(e){this._name=e,e?this.contentNode.setAttribute("aria-label",e):this.contentNode.removeAttribute("aria-label")}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._releaseMouse(),this._orientation=e,this.dataset.orientation=e,this.contentNode.setAttribute("aria-orientation",e))}get addButtonEnabled(){return this._addButtonEnabled}set addButtonEnabled(e){this._addButtonEnabled!==e&&(this._addButtonEnabled=e,e?this.addButtonNode.classList.remove("lm-mod-hidden"):this.addButtonNode.classList.add("lm-mod-hidden"))}get titles(){return this._titles}get contentNode(){return this.node.getElementsByClassName("lm-TabBar-content")[0]}get addButtonNode(){return this.node.getElementsByClassName("lm-TabBar-addButton")[0]}addTab(e){return this.insertTab(this._titles.length,e)}insertTab(e,t){this._releaseMouse();let r=qn.asTitle(t),n=this._titles.indexOf(r),s=Math.max(0,Math.min(e,this._titles.length));return n===-1?(ce.insert(this._titles,s,r),r.changed.connect(this._onTitleChanged,this),this.update(),this._adjustCurrentForInsert(s,r),r):(s===this._titles.length&&s--,n===s||(ce.move(this._titles,n,s),this.update(),this._adjustCurrentForMove(n,s)),r)}removeTab(e){this.removeTabAt(this._titles.indexOf(e))}removeTabAt(e){this._releaseMouse();let t=ce.removeAt(this._titles,e);t&&(t.changed.disconnect(this._onTitleChanged,this),t===this._previousTitle&&(this._previousTitle=null),this.update(),this._adjustCurrentForRemove(e,t))}clearTabs(){if(this._titles.length===0)return;this._releaseMouse();for(let r of this._titles)r.changed.disconnect(this._onTitleChanged,this);let e=this.currentIndex,t=this.currentTitle;this._currentIndex=-1,this._previousTitle=null,this._titles.length=0,this.update(),e!==-1&&this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:-1,
10currentTitle:null})}releaseMouse(){this._releaseMouse()}handleEvent(e){switch(e.type){case"pointerdown":this._evtPointerDown(e);break;case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"dblclick":this._evtDblClick(e);break;case"keydown":e.eventPhase===Event.CAPTURING_PHASE?this._evtKeyDownCapturing(e):this._evtKeyDown(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("pointerdown",this),this.node.addEventListener("dblclick",this),this.node.addEventListener("keydown",this)}onAfterDetach(e){this.node.removeEventListener("pointerdown",this),this.node.removeEventListener("dblclick",this),this.node.removeEventListener("keydown",this),this._releaseMouse()}onUpdateRequest(e){var t;let r=this._titles,n=this.renderer,s=this.currentTitle,o=new Array(r.length),a=(t=this._getCurrentTabindex())!==null&&t!==void 0?t:this._currentIndex>-1?this._currentIndex:0;for(let l=0,u=r.length;l<u;++l){let c=r[l],d=c===s,f=d?u:u-l-1,m=a===l?0:-1;o[l]=n.renderTab({title:c,current:d,zIndex:f,tabIndex:m})}Wt.render(o,this.contentNode)}_getCurrentTabindex(){let e=null,t=this.contentNode.querySelector('li[tabindex="0"]');return t?e=[...this.contentNode.children].indexOf(t):this._addButtonEnabled&&this.addButtonNode.getAttribute("tabindex")==="0"&&(e=-1),e}_evtDblClick(e){if(!this.titlesEditable)return;let t=this.contentNode.children,r=ce.findFirstIndex(t,o=>Ct.hitTest(o,e.clientX,e.clientY));if(r===-1)return;let n=this.titles[r],s=t[r].querySelector(".lm-TabBar-tabLabel");if(s&&s.contains(e.target)){let o=n.label||"",a=s.innerHTML;s.innerHTML="";let l=document.createElement("input");l.classList.add("lm-TabBar-tabInput"),l.value=o,s.appendChild(l);let u=()=>{l.removeEventListener("blur",u),s.innerHTML=a,this.node.addEventListener("keydown",this)};l.addEventListener("dblclick",c=>c.stopPropagation()),l.addEventListener("blur",u),l.addEventListener("keydown",c=>{c.key==="Enter"?(l.value!==""&&(n.label=n.caption=l.value),u()):c.key==="Escape"&&u()}),this.node.removeEventListener("keydown",this),l.select(),l.focus(),s.children.length>0&&s.children[0].focus()}}_evtKeyDownCapturing(e){e.eventPhase===Event.CAPTURING_PHASE&&(e.preventDefault(),e.stopPropagation(),e.key==="Escape"&&this._releaseMouse())}_evtKeyDown(e){var t,r,n;if(!(e.key==="Tab"||e.eventPhase===Event.CAPTURING_PHASE)){if(e.key==="Enter"||e.key==="Spacebar"||e.key===" "){let s=document.activeElement;if(this.addButtonEnabled&&this.addButtonNode.contains(s))e.preventDefault(),e.stopPropagation(),this._addRequested.emit();else{let o=ce.findFirstIndex(this.contentNode.children,a=>a.contains(s));o>=0&&(e.preventDefault(),e.stopPropagation(),this.currentIndex=o)}}else if(_ae.includes(e.key)){let s=[...this.contentNode.children];if(this.addButtonEnabled&&s.push(this.addButtonNode),s.length<=1)return;e.preventDefault(),e.stopPropagation();let o=s.indexOf(document.activeElement);o===-1&&(o=this._currentIndex);let a;e.key==="ArrowRight"&&this._orientation==="horizontal"||e.key==="ArrowDown"&&this._orientation==="vertical"?a=(t=s[o+1])!==null&&t!==void 0?t:s[0]:e.key==="ArrowLeft"&&this._orientation==="horizontal"||e.key==="ArrowUp"&&this._orientation==="vertical"?a=(r=s[o-1])!==null&&r!==void 0?r:s[s.length-1]:e.key==="Home"?a=s[0]:e.key==="End"&&(a=s[s.length-1]),a&&((n=s[o])===null||n===void 0||n.setAttribute("tabindex","-1"),a?.setAttribute("tabindex","0"),a.focus())}}}_evtPointerDown(e){if(e.button!==0&&e.button!==1||this._dragData||e.target.classList.contains("lm-TabBar-tabInput"))return;let t=this.addButtonEnabled&&this.addButtonNode.contains(e.target),r=this.contentNode.children,n=ce.findFirstIndex(r,o=>Ct.hitTest(o,e.clientX,e.clientY));if(n===-1&&!t||(e.preventDefault(),e.stopPropagation(),this._dragData={tab:r[n],index:n,pressX:e.clientX,pressY:e.clientY,tabPos:-1,tabSize:-1,tabPressPos:-1,targetIndex:-1,tabLayout:null,contentRect:null,override:null,dragActive:!1,dragAborted:!1,detachRequested:!1},this.document.addEventListener("pointerup",this,!0),e.button===1||t))return;let s=r[n].querySelector(this.renderer.closeIconSelector);s&&s.contains(e.target)||(this.tabsMovable&&(this.document.addEventListener("pointermove",this,!0),this.document.addEventListener("keydown",this,
10!0),this.document.addEventListener("contextmenu",this,!0)),this.allowDeselect&&this.currentIndex===n?this.currentIndex=-1:this.currentIndex=n,this.currentIndex!==-1&&this._tabActivateRequested.emit({index:this.currentIndex,title:this.currentTitle}))}_evtPointerMove(e){let t=this._dragData;if(!t)return;e.preventDefault(),e.stopPropagation();let r=this.contentNode.children;if(!(!t.dragActive&&!qn.dragExceeded(t,e))){if(!t.dragActive){let n=t.tab.getBoundingClientRect();this._orientation==="horizontal"?(t.tabPos=t.tab.offsetLeft,t.tabSize=n.width,t.tabPressPos=t.pressX-n.left):(t.tabPos=t.tab.offsetTop,t.tabSize=n.height,t.tabPressPos=t.pressY-n.top),t.tabPressOffset={x:t.pressX-n.left,y:t.pressY-n.top},t.tabLayout=qn.snapTabLayout(r,this._orientation),t.contentRect=this.contentNode.getBoundingClientRect(),t.override=gt.overrideCursor("default"),t.tab.classList.add("lm-mod-dragging"),this.addClass("lm-mod-dragging"),t.dragActive=!0}if(!t.detachRequested&&qn.detachExceeded(t,e)){t.detachRequested=!0;let n=t.index,s=e.clientX,o=e.clientY,a=r[n],l=this._titles[n];if(this._tabDetachRequested.emit({index:n,title:l,tab:a,clientX:s,clientY:o,offset:t.tabPressOffset}),t.dragAborted)return}qn.layoutTabs(r,t,e,this._orientation)}}_evtPointerUp(e){if(e.button!==0&&e.button!==1)return;let t=this._dragData;if(!t)return;if(e.preventDefault(),e.stopPropagation(),this.document.removeEventListener("pointermove",this,!0),this.document.removeEventListener("pointerup",this,!0),this.document.removeEventListener("keydown",this,!0),this.document.removeEventListener("contextmenu",this,!0),!t.dragActive){if(this._dragData=null,this.addButtonEnabled&&this.addButtonNode.contains(e.target)){this._addRequested.emit(void 0);return}let s=this.contentNode.children,o=ce.findFirstIndex(s,u=>Ct.hitTest(u,e.clientX,e.clientY));if(o!==t.index)return;let a=this._titles[o];if(!a.closable)return;if(e.button===1){this._tabCloseRequested.emit({index:o,title:a});return}let l=s[o].querySelector(this.renderer.closeIconSelector);if(l&&l.contains(e.target)){this._tabCloseRequested.emit({index:o,title:a});return}return}if(e.button!==0)return;qn.finalizeTabPosition(t,this._orientation),t.tab.classList.remove("lm-mod-dragging");let r=qn.parseTransitionDuration(t.tab);setTimeout(()=>{if(t.dragAborted)return;this._dragData=null,qn.resetTabPositions(this.contentNode.children,this._orientation),t.override.dispose(),this.removeClass("lm-mod-dragging");let n=t.index,s=t.targetIndex;s===-1||n===s||(ce.move(this._titles,n,s),this._adjustCurrentForMove(n,s),this._tabMoved.emit({fromIndex:n,toIndex:s,title:this._titles[s]}),ie.sendMessage(this,j.Msg.UpdateRequest))},r)}_releaseMouse(){let e=this._dragData;e&&(this._dragData=null,this.document.removeEventListener("pointermove",this,!0),this.document.removeEventListener("pointerup",this,!0),this.document.removeEventListener("keydown",this,!0),this.document.removeEventListener("contextmenu",this,!0),e.dragAborted=!0,e.dragActive&&(qn.resetTabPositions(this.contentNode.children,this._orientation),e.override.dispose(),e.tab.classList.remove("lm-mod-dragging"),this.removeClass("lm-mod-dragging")))}_adjustCurrentForInsert(e,t){let r=this.currentTitle,n=this._currentIndex,s=this.insertBehavior;if(s==="select-tab"||s==="select-tab-if-needed"&&n===-1){this._currentIndex=e,this._previousTitle=r,this._currentChanged.emit({previousIndex:n,previousTitle:r,currentIndex:e,currentTitle:t});return}n>=e&&this._currentIndex++}_adjustCurrentForMove(e,t){this._currentIndex===e?this._currentIndex=t:this._currentIndex<e&&this._currentIndex>=t?this._currentIndex++:this._currentIndex>e&&this._currentIndex<=t&&this._currentIndex--}_adjustCurrentForRemove(e,t){let r=this._currentIndex,n=this.removeBehavior;if(r!==e){r>e&&this._currentIndex--;return}if(this._titles.length===0){this._currentIndex=-1,this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:-1,currentTitle:null});return}if(n==="select-tab-after"){this._currentIndex=Math.min(e,this._titles.length-1),this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:this._currentIndex,currentTitle:this.currentTitle});return}if(n==="select-tab-before"){this._currentIndex=Math.max(0,e-1),this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:this._currentIndex,currentTitle:this.currentTitle});return}if(n==="select-previous-tab"){this._previousTitle?(this._currentIndex=this._titles.indexOf(this._previousTitle),this._previousTitle=null):this._currentIndex=Math.min(e,this._titles.length-1),this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:this._currentIndex,currentTitle:this.currentTitle});return}this._currentIndex=-1,this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:-1,
10currentTitle:null})}_onTitleChanged(e){this.update()}};(function(i){class e{constructor(){this.closeIconSelector=".lm-TabBar-tabCloseIcon",this._tabID=0,this._tabKeys=new WeakMap,this._uuid=++e._nInstance}renderTab(r){let n=r.title.caption,s=this.createTabKey(r),o=s,a=this.createTabStyle(r),l=this.createTabClass(r),u=this.createTabDataset(r),c=this.createTabARIA(r);return r.title.closable?ne.li({id:o,key:s,className:l,title:n,style:a,dataset:u,...c},this.renderIcon(r),this.renderLabel(r),this.renderCloseIcon(r)):ne.li({id:o,key:s,className:l,title:n,style:a,dataset:u,...c},this.renderIcon(r),this.renderLabel(r))}renderIcon(r){let{title:n}=r,s=this.createIconClass(r);return ne.div({className:s},n.icon,n.iconLabel)}renderLabel(r){return ne.div({className:"lm-TabBar-tabLabel"},r.title.label)}renderCloseIcon(r){return ne.div({className:"lm-TabBar-tabCloseIcon"})}createTabKey(r){let n=this._tabKeys.get(r.title);return n===void 0&&(n=`tab-key-${this._uuid}-${this._tabID++}`,this._tabKeys.set(r.title,n)),n}createTabStyle(r){return{zIndex:`${r.zIndex}`}}createTabClass(r){let n="lm-TabBar-tab";return r.title.className&&(n+=` ${r.title.className}`),r.title.closable&&(n+=" lm-mod-closable"),r.current&&(n+=" lm-mod-current"),n}createTabDataset(r){return r.title.dataset}createTabARIA(r){var n;return{role:"tab","aria-selected":r.current.toString(),tabindex:`${(n=r.tabIndex)!==null&&n!==void 0?n:"-1"}`}}createIconClass(r){let n="lm-TabBar-tabIcon",s=r.title.iconClass;return s?`${n} ${s}`:n}}e._nInstance=0,i.Renderer=e,i.defaultRenderer=new e,i.addButtonSelector=".lm-TabBar-addButton"})(gs||(gs={}));(function(i){i.DRAG_THRESHOLD=5,i.DETACH_THRESHOLD=20;function e(){let c=document.createElement("div"),d=document.createElement("ul");d.setAttribute("role","tablist"),d.className="lm-TabBar-content",c.appendChild(d);let f=document.createElement("div");return f.className="lm-TabBar-addButton lm-mod-hidden",f.setAttribute("tabindex","-1"),f.setAttribute("role","button"),c.appendChild(f),c}i.createNode=e;function t(c){return c instanceof Qh?c:new Qh(c)}i.asTitle=t;function r(c){let d=window.getComputedStyle(c);return 1e3*(parseFloat(d.transitionDuration)||0)}i.parseTransitionDuration=r;function n(c,d){let f=new Array(c.length);for(let m=0,b=c.length;m<b;++m){let y=c[m],x=window.getComputedStyle(y);d==="horizontal"?f[m]={pos:y.offsetLeft,size:y.offsetWidth,margin:parseFloat(x.marginLeft)||0}:f[m]={pos:y.offsetTop,size:y.offsetHeight,margin:parseFloat(x.marginTop)||0}}return f}i.snapTabLayout=n;function s(c,d){let f=Math.abs(d.clientX-c.pressX),m=Math.abs(d.clientY-c.pressY);return f>=i.DRAG_THRESHOLD||m>=i.DRAG_THRESHOLD}i.dragExceeded=s;function o(c,d){let f=c.contentRect;return d.clientX<f.left-i.DETACH_THRESHOLD||d.clientX>=f.right+i.DETACH_THRESHOLD||d.clientY<f.top-i.DETACH_THRESHOLD||d.clientY>=f.bottom+i.DETACH_THRESHOLD}i.detachExceeded=o;function a(c,d,f,m){let b,y,x,M;m==="horizontal"?(b=d.pressX,y=f.clientX-d.contentRect.left,x=f.clientX,M=d.contentRect.width):(b=d.pressY,y=f.clientY-d.contentRect.top,x=f.clientY,M=d.contentRect.height);let T=d.index,E=y-d.tabPressPos,A=E+d.tabSize;for(let R=0,$=c.length;R<$;++R){let v,_=d.tabLayout[R],h=_.pos+(_.size>>1);if(R<d.index&&E<h)v=`${d.tabSize+d.tabLayout[R+1].margin}px`,T=Math.min(T,R);else if(R>d.index&&A>h)v=`${-d.tabSize-_.margin}px`,T=Math.max(T,R);else if(R===d.index){let p=x-b,g=M-(d.tabPos+d.tabSize);v=`${Math.max(-d.tabPos,Math.min(p,g))}px`}else v="";m==="horizontal"?c[R].style.left=v:c[R].style.top=v}d.targetIndex=T}i.layoutTabs=a;function l(c,d){let f;d==="horizontal"?f=c.contentRect.width:f=c.contentRect.height;let m;if(c.targetIndex===c.index)m=0;else if(c.targetIndex>c.index){let x=c.tabLayout[c.targetIndex];m=x.pos+x.size-c.tabSize-c.tabPos}else m=c.tabLayout[c.targetIndex].pos-c.tabPos;let b=f-(c.tabPos+c.tabSize),y=Math.max(-c.tabPos,Math.min(m,b));d==="horizontal"?c.tab.style.left=`${y}px`:c.tab.style.top=`${y}px`}i.finalizeTabPosition=l;function u(c,d){for(let f of c)d==="horizontal"?f.style.left="":f.style.top=""}i.resetTabPositions=u})(qn||(qn={}));Sy=class extends Xs{constructor(e){super(),this._spacing=4,this._dirty=!1,this._root=null,this._box=null,this._items=new Map,this.renderer=e.renderer,e.spacing!==void 0&&(this._spacing=tf.clampDimension(e.spacing)),this._document=e.document||document,this._hiddenMode=e.hiddenMode!==void 0?e.hiddenMode:j.HiddenMode.Display}dispose(){let e=this[Symbol.iterator]();
10this._items.forEach(t=>{t.dispose()}),this._box=null,this._root=null,this._items.clear();for(let t of e)t.dispose();super.dispose()}get hiddenMode(){return this._hiddenMode}set hiddenMode(e){if(this._hiddenMode!==e){this._hiddenMode=e;for(let t of this.tabBars())if(t.titles.length>1)for(let r of t.titles)r.owner.hiddenMode=this._hiddenMode}}get spacing(){return this._spacing}set spacing(e){e=tf.clampDimension(e),this._spacing!==e&&(this._spacing=e,this.parent&&this.parent.fit())}get isEmpty(){return this._root===null}[Symbol.iterator](){return this._root?this._root.iterAllWidgets():Rc()}widgets(){return this._root?this._root.iterUserWidgets():Rc()}selectedWidgets(){return this._root?this._root.iterSelectedWidgets():Rc()}tabBars(){return this._root?this._root.iterTabBars():Rc()}handles(){return this._root?this._root.iterHandles():Rc()}moveHandle(e,t,r){let n=e.classList.contains("lm-mod-hidden");if(!this._root||n)return;let s=this._root.findSplitNode(e);if(!s)return;let o;s.node.orientation==="horizontal"?o=t-e.offsetLeft:o=r-e.offsetTop,o!==0&&(s.node.holdSizes(),_n.adjust(s.node.sizers,s.index,o),this.parent&&this.parent.update())}saveLayout(){return this._root?(this._root.holdAllSizes(),{main:this._root.createConfig()}):{main:null}}restoreLayout(e){let t=new Set,r;e.main?r=ai.normalizeAreaConfig(e.main,t):r=null;let n=this.widgets(),s=this.tabBars(),o=this.handles();this._root=null;for(let a of n)t.has(a)||(a.parent=null);for(let a of s)a.dispose();for(let a of o)a.parentNode&&a.parentNode.removeChild(a);for(let a of t)a.parent=this.parent;r?this._root=ai.realizeAreaConfig(r,{createTabBar:a=>this._createTabBar(),createHandle:()=>this._createHandle()},this._document):this._root=null,this.parent&&(t.forEach(a=>{this.attachWidget(a)}),this.parent.fit())}addWidget(e,t={}){let r=t.ref||null,n=t.mode||"tab-after",s=null;if(this._root&&r&&(s=this._root.findTabNode(r)),r&&!s)throw new Error("Reference widget is not in the layout.");switch(e.parent=this.parent,n){case"tab-after":this._insertTab(e,r,s,!0);break;case"tab-before":this._insertTab(e,r,s,!1);break;case"split-top":this._insertSplit(e,r,s,"vertical",!1);break;case"split-left":this._insertSplit(e,r,s,"horizontal",!1);break;case"split-right":this._insertSplit(e,r,s,"horizontal",!0);break;case"split-bottom":this._insertSplit(e,r,s,"vertical",!0);break;case"merge-top":this._insertSplit(e,r,s,"vertical",!1,!0);break;case"merge-left":this._insertSplit(e,r,s,"horizontal",!1,!0);break;case"merge-right":this._insertSplit(e,r,s,"horizontal",!0,!0);break;case"merge-bottom":this._insertSplit(e,r,s,"vertical",!0,!0);break}this.parent&&(this.attachWidget(e),this.parent.fit())}removeWidget(e){this._removeWidget(e),this.parent&&(this.detachWidget(e),this.parent.fit())}hitTestTabAreas(e,t){if(!this._root||!this.parent||!this.parent.isVisible)return null;this._box||(this._box=Ct.boxSizing(this.parent.node));let r=this.parent.node.getBoundingClientRect(),n=e-r.left-this._box.borderLeft,s=t-r.top-this._box.borderTop,o=this._root.hitTestTabNodes(n,s);if(!o)return null;let{tabBar:a,top:l,left:u,width:c,height:d}=o,f=this._box.borderLeft+this._box.borderRight,m=this._box.borderTop+this._box.borderBottom,b=r.width-f-(u+c),y=r.height-m-(l+d);return{tabBar:a,x:n,y:s,top:l,left:u,right:b,bottom:y,width:c,height:d}}init(){super.init();for(let e of this)this.attachWidget(e);for(let e of this.handles())this.parent.node.appendChild(e);this.parent.fit()}attachWidget(e){this.parent.node!==e.node.parentNode&&(this._items.set(e,new lu(e)),this.parent.isAttached&&ie.sendMessage(e,j.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&ie.sendMessage(e,j.Msg.AfterAttach))}detachWidget(e){if(this.parent.node!==e.node.parentNode)return;this.parent.isAttached&&ie.sendMessage(e,j.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&ie.sendMessage(e,j.Msg.AfterDetach);let t=this._items.get(e);t&&(this._items.delete(e),t.dispose())}onBeforeShow(e){super.onBeforeShow(e),this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e),this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){this.parent.isVisible&&this._update(e.width,e.height)}onUpdateRequest(e){this.parent.isVisible&&this._update(-1,-1)}onFitRequest(e){this.parent.isAttached&&this._fit()}_removeWidget(e){if(!this._root)return;let t=this._root.findTabNode(e);if(!t)return;
10if(ai.removeAria(e),t.tabBar.titles.length>1){if(t.tabBar.removeTab(e.title),this._hiddenMode===j.HiddenMode.Scale&&t.tabBar.titles.length==1){let f=t.tabBar.titles[0].owner;f.hiddenMode=j.HiddenMode.Display}return}if(t.tabBar.dispose(),this._root===t){this._root=null;return}this._root.holdAllSizes();let r=t.parent;t.parent=null;let n=ce.removeFirstOf(r.children,t),s=ce.removeAt(r.handles,n);if(ce.removeAt(r.sizers,n),s.parentNode&&s.parentNode.removeChild(s),r.children.length>1){r.syncHandles();return}let o=r.parent;r.parent=null;let a=r.children[0],l=r.handles[0];if(r.children.length=0,r.handles.length=0,r.sizers.length=0,l.parentNode&&l.parentNode.removeChild(l),this._root===r){a.parent=null,this._root=a;return}let u=o,c=u.children.indexOf(r);if(a instanceof ai.TabLayoutNode){a.parent=u,u.children[c]=a;return}let d=ce.removeAt(u.handles,c);ce.removeAt(u.children,c),ce.removeAt(u.sizers,c),d.parentNode&&d.parentNode.removeChild(d);for(let f=0,m=a.children.length;f<m;++f){let b=a.children[f],y=a.handles[f],x=a.sizers[f];ce.insert(u.children,c+f,b),ce.insert(u.handles,c+f,y),ce.insert(u.sizers,c+f,x),b.parent=u}a.children.length=0,a.handles.length=0,a.sizers.length=0,a.parent=null,u.syncHandles()}_createTabNode(e){let t=new ai.TabLayoutNode(this._createTabBar());return t.tabBar.addTab(e.title),ai.addAria(e,t.tabBar),t}_insertTab(e,t,r,n){if(e===t)return;if(!this._root){let o=new ai.TabLayoutNode(this._createTabBar());o.tabBar.addTab(e.title),this._root=o,ai.addAria(e,o.tabBar);return}r||(r=this._root.findFirstTabNode()),r.tabBar.titles.indexOf(e.title)===-1&&(this._removeWidget(e),e.hide());let s;if(t?s=r.tabBar.titles.indexOf(t.title):s=r.tabBar.currentIndex,this._hiddenMode===j.HiddenMode.Scale)if(r.tabBar.titles.length===0)e.hiddenMode=j.HiddenMode.Display;else if(r.tabBar.titles.length==1){let o=r.tabBar.titles[0].owner;o.hiddenMode=j.HiddenMode.Scale}else e.hiddenMode=j.HiddenMode.Scale;else e.hiddenMode=this._hiddenMode;r.tabBar.insertTab(s+(n?1:0),e.title),ai.addAria(e,r.tabBar)}_insertSplit(e,t,r,n,s,o=!1){if(e===t&&r&&r.tabBar.titles.length===1)return;if(this._removeWidget(e),!this._root){this._root=this._createTabNode(e);return}if(!r||!r.parent){let f=this._splitRoot(n),m=s?f.children.length:0;f.normalizeSizes();let b=ai.createSizer(r?1:ai.GOLDEN_RATIO),y=this._createTabNode(e);ce.insert(f.children,m,y),ce.insert(f.sizers,m,b),ce.insert(f.handles,m,this._createHandle()),y.parent=f,f.normalizeSizes(),f.syncHandles();return}let a=r.parent;if(a.orientation===n){let f=a.children.indexOf(r);if(o){let x=f+(s?1:-1),M=a.children[x];if(M instanceof ai.TabLayoutNode){this._insertTab(e,null,M,!0),++M.tabBar.currentIndex;return}}a.normalizeSizes();let m=a.sizers[f].sizeHint/=2,b=f+(s?1:0),y=this._createTabNode(e);ce.insert(a.children,b,y),ce.insert(a.sizers,b,ai.createSizer(m)),ce.insert(a.handles,b,this._createHandle()),y.parent=a,a.syncHandles();return}let l=ce.removeFirstOf(a.children,r),u=new ai.SplitLayoutNode(n);u.normalized=!0,u.children.push(r),u.sizers.push(ai.createSizer(.5)),u.handles.push(this._createHandle()),r.parent=u;let c=s?1:0,d=this._createTabNode(e);ce.insert(u.children,c,d),ce.insert(u.sizers,c,ai.createSizer(.5)),ce.insert(u.handles,c,this._createHandle()),d.parent=u,u.syncHandles(),ce.insert(a.children,l,u),u.parent=a}_splitRoot(e){let t=this._root;if(t instanceof ai.SplitLayoutNode&&t.orientation===e)return t;let r=this._root=new ai.SplitLayoutNode(e);return t&&(r.children.push(t),r.sizers.push(ai.createSizer(0)),r.handles.push(this._createHandle()),t.parent=r),r}_fit(){let e=0,t=0;if(this._root){let s=this._root.fit(this._spacing,this._items);e=s.minWidth,t=s.minHeight}let r=this._box=Ct.boxSizing(this.parent.node);e+=r.horizontalSum,t+=r.verticalSum;let n=this.parent.node.style;n.minWidth=`${e}px`,n.minHeight=`${t}px`,this._dirty=!0,this.parent.parent&&ie.sendMessage(this.parent.parent,j.Msg.FitRequest),this._dirty&&ie.sendMessage(this.parent,j.Msg.UpdateRequest)}_update(e,t){if(this._dirty=!1,!this._root)return;e<0&&(e=this.parent.node.offsetWidth),t<0&&(t=this.parent.node.offsetHeight),this._box||(this._box=Ct.boxSizing(this.parent.node));let r=this._box.paddingTop,n=this._box.paddingLeft,s=e-this._box.horizontalSum,o=t-this._box.verticalSum;this._root.update(r,n,s,o,this._spacing,this._items)}_createTabBar(){let e=this.renderer.createTabBar(this._document);return e.orientation="horizontal",this.parent&&this.attachWidget(e),e}_createHandle(){let e=this.renderer.createHandle(),t=e.style;return t.position="absolute",t.contain="strict",t.top="0",t.left="0",t.width="0",t.height="0",this.parent&&this.parent.node.appendChild(e),e}};(function(i){i.GOLDEN_RATIO=.618;function e(f){let m=new Ys;return m.sizeHint=f,m.size=f,m}i.createSizer=e;function t(f,m){let b;return f.type==="tab-area"?b=l(f,m):b=u(f,m),b}i.normalizeAreaConfig=t;function r(f,m,b){let y;return f.type==="tab-area"?y=c(f,m,b):y=d(f,m,b),y}i.realizeAreaConfig=r;class n{constructor(m){this.parent=null,this._top=0,this._left=0,this._width=0,this._height=0;let b=new Ys,y=new Ys;b.stretch=0,y.stretch=1,this.tabBar=m,this.sizers=[b,y]}get top(){return this._top}get left(){return this._left}get width(){return this._width}get height(){return this._height}*iterAllWidgets(){yield this.tabBar,yield*this.iterUserWidgets()}
10*iterUserWidgets(){for(let m of this.tabBar.titles)yield m.owner}*iterSelectedWidgets(){let m=this.tabBar.currentTitle;m&&(yield m.owner)}*iterTabBars(){yield this.tabBar}*iterHandles(){}findTabNode(m){return this.tabBar.titles.indexOf(m.title)!==-1?this:null}findSplitNode(m){return null}findFirstTabNode(){return this}hitTestTabNodes(m,b){return m<this._left||m>=this._left+this._width||b<this._top||b>=this._top+this._height?null:this}createConfig(){let m=this.tabBar.titles.map(y=>y.owner),b=this.tabBar.currentIndex;return{type:"tab-area",widgets:m,currentIndex:b}}holdAllSizes(){}fit(m,b){let y=0,x=0,M=1/0,T=1/0,E=b.get(this.tabBar),A=this.tabBar.currentTitle,R=A?b.get(A.owner):void 0,[$,v]=this.sizers;return E&&E.fit(),R&&R.fit(),E&&!E.isHidden?(y=Math.max(y,E.minWidth),x+=E.minHeight,$.minSize=E.minHeight,$.maxSize=E.maxHeight):($.minSize=0,$.maxSize=0),R&&!R.isHidden?(y=Math.max(y,R.minWidth),x+=R.minHeight,v.minSize=R.minHeight,v.maxSize=1/0):(v.minSize=0,v.maxSize=1/0),{minWidth:y,minHeight:x,maxWidth:M,maxHeight:T}}update(m,b,y,x,M,T){this._top=b,this._left=m,this._width=y,this._height=x;let E=T.get(this.tabBar),A=this.tabBar.currentTitle,R=A?T.get(A.owner):void 0;if(_n.calc(this.sizers,x),E&&!E.isHidden){let $=this.sizers[0].size;E.update(m,b,y,$),b+=$}if(R&&!R.isHidden){let $=this.sizers[1].size;R.update(m,b,y,$)}}}i.TabLayoutNode=n;class s{constructor(m){this.parent=null,this.normalized=!1,this.children=[],this.sizers=[],this.handles=[],this.orientation=m}*iterAllWidgets(){for(let m of this.children)yield*m.iterAllWidgets()}*iterUserWidgets(){for(let m of this.children)yield*m.iterUserWidgets()}*iterSelectedWidgets(){for(let m of this.children)yield*m.iterSelectedWidgets()}*iterTabBars(){for(let m of this.children)yield*m.iterTabBars()}*iterHandles(){yield*this.handles;for(let m of this.children)yield*m.iterHandles()}findTabNode(m){for(let b=0,y=this.children.length;b<y;++b){let x=this.children[b].findTabNode(m);if(x)return x}return null}findSplitNode(m){let b=this.handles.indexOf(m);if(b!==-1)return{index:b,node:this};for(let y=0,x=this.children.length;y<x;++y){let M=this.children[y].findSplitNode(m);if(M)return M}return null}findFirstTabNode(){return this.children.length===0?null:this.children[0].findFirstTabNode()}hitTestTabNodes(m,b){for(let y=0,x=this.children.length;y<x;++y){let M=this.children[y].hitTestTabNodes(m,b);if(M)return M}return null}createConfig(){let m=this.orientation,b=this.createNormalizedSizes(),y=this.children.map(x=>x.createConfig());return{type:"split-area",orientation:m,children:y,sizes:b}}syncHandles(){this.handles.forEach((m,b)=>{m.setAttribute("data-orientation",this.orientation),b===this.handles.length-1?m.classList.add("lm-mod-hidden"):m.classList.remove("lm-mod-hidden")})}holdSizes(){for(let m of this.sizers)m.sizeHint=m.size}holdAllSizes(){for(let m of this.children)m.holdAllSizes();this.holdSizes()}normalizeSizes(){let m=this.sizers.length;if(m===0)return;this.holdSizes();let b=this.sizers.reduce((y,x)=>y+x.sizeHint,0);if(b===0)for(let y of this.sizers)y.size=y.sizeHint=1/m;else for(let y of this.sizers)y.size=y.sizeHint/=b;this.normalized=!0}createNormalizedSizes(){let m=this.sizers.length;if(m===0)return[];let b=this.sizers.map(x=>x.size),y=b.reduce((x,M)=>x+M,0);if(y===0)for(let x=b.length-1;x>-1;x--)b[x]=1/m;else for(let x=b.length-1;x>-1;x--)b[x]/=y;return b}fit(m,b){let y=this.orientation==="horizontal",x=Math.max(0,this.children.length-1)*m,M=y?x:0,T=y?0:x,E=1/0,A=1/0;for(let R=0,$=this.children.length;R<$;++R){let v=this.children[R].fit(m,b);y?(T=Math.max(T,v.minHeight),M+=v.minWidth,this.sizers[R].minSize=v.minWidth):(M=Math.max(M,v.minWidth),T+=v.minHeight,this.sizers[R].minSize=v.minHeight)}return{minWidth:M,minHeight:T,maxWidth:E,maxHeight:A}}update(m,b,y,x,M,T){let E=this.orientation==="horizontal",A=Math.max(0,this.children.length-1)*M,R=Math.max(0,(E?y:x)-A);if(this.normalized){for(let $ of this.sizers)$.sizeHint*=R;this.normalized=!1}_n.calc(this.sizers,R);for(let $=0,v=this.children.length;$<v;++$){let _=this.children[$],h=this.sizers[$].size,p=this.handles[$].style;E?(_.update(m,b,h,x,M,T),m+=h,p.top=`${b}px`,p.left=`${m}px`,p.width=`${M}px`,p.height=`${x}px`,m+=M):(_.update(m,b,y,h,M,T),b+=h,p.top=`${b}px`,p.left=`${m}px`,p.width=`${y}px`,p.height=`${M}
10px`,b+=M)}}}i.SplitLayoutNode=s;function o(f,m){f.node.setAttribute("role","tabpanel");let b=m.renderer;if(b instanceof gs.Renderer){let y=b.createTabKey({title:f.title,current:!1,zIndex:0});f.node.setAttribute("aria-labelledby",y)}}i.addAria=o;function a(f){f.node.removeAttribute("role"),f.node.removeAttribute("aria-labelledby")}i.removeAria=a;function l(f,m){if(f.widgets.length===0)return null;let b=[];for(let x of f.widgets)m.has(x)||(m.add(x),b.push(x));if(b.length===0)return null;let y=f.currentIndex;return y!==-1&&(y<0||y>=b.length)&&(y=0),{type:"tab-area",widgets:b,currentIndex:y}}function u(f,m){let b=f.orientation,y=[],x=[];for(let M=0,T=f.children.length;M<T;++M){let E=t(f.children[M],m);E&&(E.type==="tab-area"||E.orientation!==b?(y.push(E),x.push(Math.abs(f.sizes[M]||0))):(y.push(...E.children),x.push(...E.sizes)))}return y.length===0?null:y.length===1?y[0]:{type:"split-area",orientation:b,children:y,sizes:x}}function c(f,m,b){let y=m.createTabBar(b);for(let x of f.widgets)x.hide(),y.addTab(x.title),i.addAria(x,y);return y.currentIndex=f.currentIndex,new n(y)}function d(f,m,b){let y=new s(f.orientation);return f.children.forEach((x,M)=>{let T=r(x,m,b),E=e(f.sizes[M]),A=m.createHandle();y.children.push(T),y.handles.push(A),y.sizers.push(E),T.parent=y}),y.syncHandles(),y.normalizeSizes(),y}})(ai||(ai={}));Js=class extends j{constructor(e={}){super(),this._drag=null,this._tabsMovable=!0,this._tabsConstrained=!1,this._addButtonEnabled=!1,this._pressData=null,this._layoutModified=new X(this),this._addRequested=new X(this),this.addClass("lm-DockPanel"),this._document=e.document||document,this._mode=e.mode||"multiple-document",this._renderer=e.renderer||Js.defaultRenderer,this._edges=e.edges||Zt.DEFAULT_EDGES,e.tabsMovable!==void 0&&(this._tabsMovable=e.tabsMovable),e.tabsConstrained!==void 0&&(this._tabsConstrained=e.tabsConstrained),e.addButtonEnabled!==void 0&&(this._addButtonEnabled=e.addButtonEnabled),this.dataset.mode=this._mode;let t={createTabBar:()=>this._createTabBar(),createHandle:()=>this._createHandle()};this.layout=new Sy({document:this._document,renderer:t,spacing:e.spacing,hiddenMode:e.hiddenMode}),this.overlay=e.overlay||new Js.Overlay,this.node.appendChild(this.overlay.node)}dispose(){this._releaseMouse(),this.overlay.hide(0),this._drag&&this._drag.dispose(),super.dispose()}get hiddenMode(){return this.layout.hiddenMode}set hiddenMode(e){this.layout.hiddenMode=e}get layoutModified(){return this._layoutModified}get addRequested(){return this._addRequested}get renderer(){return this.layout.renderer}get spacing(){return this.layout.spacing}set spacing(e){this.layout.spacing=e}get mode(){return this._mode}set mode(e){if(this._mode===e)return;this._mode=e,this.dataset.mode=e;let t=this.layout;switch(e){case"multiple-document":for(let r of t.tabBars())r.show();break;case"single-document":t.restoreLayout(Zt.createSingleDocumentConfig(this));break;default:throw"unreachable"}ie.postMessage(this,Zt.LayoutModified)}get tabsMovable(){return this._tabsMovable}set tabsMovable(e){this._tabsMovable=e;for(let t of this.tabBars())t.tabsMovable=e}get tabsConstrained(){return this._tabsConstrained}set tabsConstrained(e){this._tabsConstrained=e}get addButtonEnabled(){return this._addButtonEnabled}set addButtonEnabled(e){this._addButtonEnabled=e;for(let t of this.tabBars())t.addButtonEnabled=e}get isEmpty(){return this.layout.isEmpty}*widgets(){yield*this.layout.widgets()}*selectedWidgets(){yield*this.layout.selectedWidgets()}*tabBars(){yield*this.layout.tabBars()}*handles(){yield*this.layout.handles()}selectWidget(e){let t=Dc(this.tabBars(),r=>r.titles.indexOf(e.title)!==-1);if(!t)throw new Error("Widget is not contained in the dock panel.");t.currentTitle=e.title}activateWidget(e){this.selectWidget(e),e.activate()}saveLayout(){return this.layout.saveLayout()}restoreLayout(e){this._mode="multiple-document",this.layout.restoreLayout(e),(su.IS_EDGE||su.IS_IE)&&ie.flush(),ie.postMessage(this,Zt.LayoutModified)}addWidget(e,t={}){this._mode==="single-document"?this.layout.addWidget(e):this.layout.addWidget(e,t),ie.postMessage(this,Zt.LayoutModified)}processMessage(e){e.type==="layout-modified"?this._layoutModified.emit(void 0):super.processMessage(e)}handleEvent(e){switch(e.type){case"lm-dragenter":this._evtDragEnter(e);break;case"lm-dragleave":this._evtDragLeave(e);break;case"lm-dragover":this._evtDragOver(e);break;case"lm-drop":this._evtDrop(e);break;case"pointerdown":this._evtPointerDown(e);break;case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"keydown":this._evtKeyDown(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("lm-dragenter",this),this.node.addEventListener("lm-dragleave",this),this.node.addEventListener("lm-dragover",this),this.node.addEventListener("lm-drop",this),this.node.addEventListener("pointerdown",this)}onAfterDetach(e){this.node.removeEventListener("lm-dragenter",this),this.node.removeEventListener("lm-dragleave",this),this.node.removeEventListener("lm-dragover",this),this.node.removeEventListener("lm-drop",this),this.node.removeEventListener("pointerdown",this),this._releaseMouse()}onChildAdded(e){Zt.isGeneratedTabBarProperty.get(e.child)||e.child.addClass("lm-DockPanel-widget")}onChildRemoved(e){Zt.isGeneratedTabBarProperty.get(e.child)||(e.child.removeClass("lm-DockPanel-widget"),ie.postMessage(this,Zt.LayoutModified))}_evtDragEnter(e){e.mimeData.hasData("application/vnd.lumino.widget-factory")&&(e.preventDefault(),e.stopPropagation())}_evtDragLeave(e){e.preventDefault(),!(this._tabsConstrained&&e.source!==this)&&(e.stopPropagation(),this.overlay.hide(1))}_evtDragOver(e){e.preventDefault(),this._tabsConstrained&&e.source!==this||this._showOverlay(e.clientX,e.clientY)==="invalid"?e.dropAction="none":(e.stopPropagation(),e.dropAction=e.proposedAction)}_evtDrop(e){if(e.preventDefault(),this.overlay.hide(0),e.proposedAction==="none"){e.dropAction="none";return}let{clientX:t,clientY:r}=e,{zone:n,target:s}=Zt.findDropTarget(this,t,r,this._edges);if(this._tabsConstrained&&e.source!==this||n==="invalid"){e.dropAction="none";return}let a=e.mimeData.getData("application/vnd.lumino.widget-factory");if(typeof a!="function"){e.dropAction="none";return}let l=a();if(!(l instanceof j)){e.dropAction="none";return}if(l.contains(this)){e.dropAction="none";return}let u=s?Zt.getDropRef(s.tabBar):null;switch(n){case"root-all":this.addWidget(l);break;case"root-top":this.addWidget(l,{mode:"split-top"});break;case"root-left":this.addWidget(l,{mode:"split-left"});break;case"root-right":this.addWidget(l,{mode:"split-right"});break;case"root-bottom":this.addWidget(l,{mode:"split-bottom"});break;case"widget-all":this.addWidget(l,{mode:"tab-after",ref:u});break;case"widget-top":this.addWidget(l,{mode:"split-top",ref:u});break;case"widget-left":this.addWidget(l,{mode:"split-left",ref:u});break;case"widget-right":this.addWidget(l,{mode:"split-right",ref:u});break;case"widget-bottom":this.addWidget(l,{mode:"split-bottom",ref:u});break;case"widget-tab":this.addWidget(l,{mode:"tab-after",ref:u});break;default:throw"unreachable"}e.dropAction=e.proposedAction,e.stopPropagation(),this.activateWidget(l)}
10_evtKeyDown(e){e.preventDefault(),e.stopPropagation(),e.keyCode===27&&(this._releaseMouse(),ie.postMessage(this,Zt.LayoutModified))}_evtPointerDown(e){if(e.button!==0)return;let t=this.layout,r=e.target,n=Dc(t.handles(),c=>c.contains(r));if(!n)return;e.preventDefault(),e.stopPropagation(),this._document.addEventListener("keydown",this,!0),this._document.addEventListener("pointerup",this,!0),this._document.addEventListener("pointermove",this,!0),this._document.addEventListener("contextmenu",this,!0);let s=n.getBoundingClientRect(),o=e.clientX-s.left,a=e.clientY-s.top,l=window.getComputedStyle(n),u=gt.overrideCursor(l.cursor,this._document);this._pressData={handle:n,deltaX:o,deltaY:a,override:u}}_evtPointerMove(e){if(!this._pressData)return;e.preventDefault(),e.stopPropagation();let t=this.node.getBoundingClientRect(),r=e.clientX-t.left-this._pressData.deltaX,n=e.clientY-t.top-this._pressData.deltaY;this.layout.moveHandle(this._pressData.handle,r,n)}_evtPointerUp(e){e.button===0&&(e.preventDefault(),e.stopPropagation(),this._releaseMouse(),ie.postMessage(this,Zt.LayoutModified))}_releaseMouse(){this._pressData&&(this._pressData.override.dispose(),this._pressData=null,this._document.removeEventListener("keydown",this,!0),this._document.removeEventListener("pointerup",this,!0),this._document.removeEventListener("pointermove",this,!0),this._document.removeEventListener("contextmenu",this,!0))}_showOverlay(e,t){let{zone:r,target:n}=Zt.findDropTarget(this,e,t,this._edges);if(r==="invalid")return this.overlay.hide(100),r;let s,o,a,l,u=Ct.boxSizing(this.node),c=this.node.getBoundingClientRect();switch(r){case"root-all":s=u.paddingTop,o=u.paddingLeft,a=u.paddingRight,l=u.paddingBottom;break;case"root-top":s=u.paddingTop,o=u.paddingLeft,a=u.paddingRight,l=c.height*Zt.GOLDEN_RATIO;break;case"root-left":s=u.paddingTop,o=u.paddingLeft,a=c.width*Zt.GOLDEN_RATIO,l=u.paddingBottom;break;case"root-right":s=u.paddingTop,o=c.width*Zt.GOLDEN_RATIO,a=u.paddingRight,l=u.paddingBottom;break;case"root-bottom":s=c.height*Zt.GOLDEN_RATIO,o=u.paddingLeft,a=u.paddingRight,l=u.paddingBottom;break;case"widget-all":s=n.top,o=n.left,a=n.right,l=n.bottom;break;case"widget-top":s=n.top,o=n.left,a=n.right,l=n.bottom+n.height/2;break;case"widget-left":s=n.top,o=n.left,a=n.right+n.width/2,l=n.bottom;break;case"widget-right":s=n.top,o=n.left+n.width/2,a=n.right,l=n.bottom;break;case"widget-bottom":s=n.top+n.height/2,o=n.left,a=n.right,l=n.bottom;break;case"widget-tab":{let d=n.tabBar.node.getBoundingClientRect().height;s=n.top,o=n.left,a=n.right,l=n.bottom+n.height-d;break}default:throw"unreachable"}return this.overlay.show({top:s,left:o,right:a,bottom:l}),r}_createTabBar(){let e=this._renderer.createTabBar(this._document);return Zt.isGeneratedTabBarProperty.set(e,!0),this._mode==="single-document"&&e.hide(),e.tabsMovable=this._tabsMovable,e.allowDeselect=!1,e.addButtonEnabled=this._addButtonEnabled,e.removeBehavior="select-previous-tab",e.insertBehavior="select-tab-if-needed",e.tabMoved.connect(this._onTabMoved,this),e.currentChanged.connect(this._onCurrentChanged,this),e.tabCloseRequested.connect(this._onTabCloseRequested,this),e.tabDetachRequested.connect(this._onTabDetachRequested,this),e.tabActivateRequested.connect(this._onTabActivateRequested,this),e.addRequested.connect(this._onTabAddRequested,this),e}_createHandle(){return this._renderer.createHandle()}_onTabMoved(){ie.postMessage(this,Zt.LayoutModified)}_onCurrentChanged(e,t){let{previousTitle:r,currentTitle:n}=t;r&&r.owner.hide(),n&&n.owner.show(),(su.IS_EDGE||su.IS_IE)&&ie.flush(),ie.postMessage(this,Zt.LayoutModified)}_onTabAddRequested(e){this._addRequested.emit(e)}_onTabActivateRequested(e,t){t.title.owner.activate()}_onTabCloseRequested(e,t){t.title.owner.close()}_onTabDetachRequested(e,t){if(this._drag)return;e.releaseMouse();let{title:r,tab:n,clientX:s,clientY:o,offset:a}=t,l=new jo.MimeData,u=()=>r.owner;l.setData("application/vnd.lumino.widget-factory",u);let c=n.cloneNode(!0);a&&(c.style.top=`-${a.y}px`,c.style.left=`-${a.x}px`),this._drag=new gt({document:this._document,mimeData:l,dragImage:c,proposedAction:"move",supportedActions:"move",source:this}),n.classList.add("lm-mod-hidden");let d=()=>{this._drag=null,n.classList.remove("lm-mod-hidden")};this._drag.start(s,o).then(d)}};(function(i){class e{constructor(){this._timer=-1,this._hidden=!0,this.node=document.createElement("div"),this.node.classList.add("lm-DockPanel-overlay"),this.node.classList.add("lm-mod-hidden"),this.node.style.position="absolute",this.node.style.contain="strict"}show(n){let s=this.node.style;s.top=`${n.top}px`,s.left=`${n.left}px`,s.right=`${n.right}px`,s.bottom=`${n.bottom}px`,clearTimeout(this._timer),this._timer=-1,this._hidden&&(this._hidden=!1,this.node.classList.remove("lm-mod-hidden"))}hide(n){if(!this._hidden){if(n<=0){clearTimeout(this._timer),this._timer=-1,this._hidden=!0,this.node.classList.add("lm-mod-hidden");return}this._timer===-1&&(this._timer=window.setTimeout(()=>{this._timer=-1,this._hidden=!0,this.node.classList.add("lm-mod-hidden")},n))}}}i.Overlay=e;class t{createTabBar(n){let s=new gs({document:n});return s.addClass("lm-DockPanel-tabBar"),s}createHandle(){let n=document.createElement("div");return n.className="lm-DockPanel-handle",n}}i.Renderer=t,i.defaultRenderer=new t})(Js||(Js={}));(function(i){i.GOLDEN_RATIO=.618,i.DEFAULT_EDGES={top:12,right:40,bottom:40,left:40},i.LayoutModified=new Ua("layout-modified"),i.isGeneratedTabBarProperty=new Ge({
10name:"isGeneratedTabBar",create:()=>!1});function e(n){if(n.isEmpty)return{main:null};let s=Array.from(n.widgets()),o=n.selectedWidgets().next().value,a=o?s.indexOf(o):-1;return{main:{type:"tab-area",widgets:s,currentIndex:a}}}i.createSingleDocumentConfig=e;function t(n,s,o,a){if(!Ct.hitTest(n.node,s,o))return{zone:"invalid",target:null};let l=n.layout;if(l.isEmpty)return{zone:"root-all",target:null};if(n.mode==="multiple-document"){let E=n.node.getBoundingClientRect(),A=s-E.left+1,R=o-E.top+1,$=E.right-s,v=E.bottom-o;switch(Math.min(R,$,v,A)){case R:if(R<a.top)return{zone:"root-top",target:null};break;case $:if($<a.right)return{zone:"root-right",target:null};break;case v:if(v<a.bottom)return{zone:"root-bottom",target:null};break;case A:if(A<a.left)return{zone:"root-left",target:null};break;default:throw"unreachable"}}let u=l.hitTestTabAreas(s,o);if(!u)return{zone:"invalid",target:null};if(n.mode==="single-document")return{zone:"widget-all",target:u};let c=u.x-u.left+1,d=u.y-u.top+1,f=u.left+u.width-u.x,m=u.top+u.height-u.y,b=u.tabBar.node.getBoundingClientRect().height;if(d<b)return{zone:"widget-tab",target:u};let y=Math.round(u.width/3),x=Math.round(u.height/3);if(c>y&&f>y&&d>x&&m>x)return{zone:"widget-all",target:u};c/=y,d/=x,f/=y,m/=x;let M=Math.min(c,d,f,m),T;switch(M){case c:T="widget-left";break;case d:T="widget-top";break;case f:T="widget-right";break;case m:T="widget-bottom";break;default:throw"unreachable"}return{zone:T,target:u}}i.findDropTarget=t;function r(n){return n.titles.length===0?null:n.currentTitle?n.currentTitle.owner:n.titles[n.titles.length-1].owner}i.getDropRef=r})(Zt||(Zt={}));Ho=class extends Xs{constructor(e={}){super(e),this._dirty=!1,this._rowSpacing=4,this._columnSpacing=4,this._items=[],this._rowStarts=[],this._columnStarts=[],this._rowSizers=[new Ys],this._columnSizers=[new Ys],this._box=null,e.rowCount!==void 0&&Ti.reallocSizers(this._rowSizers,e.rowCount),e.columnCount!==void 0&&Ti.reallocSizers(this._columnSizers,e.columnCount),e.rowSpacing!==void 0&&(this._rowSpacing=Ti.clampValue(e.rowSpacing)),e.columnSpacing!==void 0&&(this._columnSpacing=Ti.clampValue(e.columnSpacing))}dispose(){for(let e of this._items){let t=e.widget;e.dispose(),t.dispose()}this._box=null,this._items.length=0,this._rowStarts.length=0,this._rowSizers.length=0,this._columnStarts.length=0,this._columnSizers.length=0,super.dispose()}get rowCount(){return this._rowSizers.length}set rowCount(e){e!==this.rowCount&&(Ti.reallocSizers(this._rowSizers,e),this.parent&&this.parent.fit())}get columnCount(){return this._columnSizers.length}set columnCount(e){e!==this.columnCount&&(Ti.reallocSizers(this._columnSizers,e),this.parent&&this.parent.fit())}get rowSpacing(){return this._rowSpacing}set rowSpacing(e){e=Ti.clampValue(e),this._rowSpacing!==e&&(this._rowSpacing=e,this.parent&&this.parent.fit())}get columnSpacing(){return this._columnSpacing}set columnSpacing(e){e=Ti.clampValue(e),this._columnSpacing!==e&&(this._columnSpacing=e,this.parent&&this.parent.fit())}rowStretch(e){let t=this._rowSizers[e];return t?t.stretch:-1}setRowStretch(e,t){let r=this._rowSizers[e];r&&(t=Ti.clampValue(t),r.stretch!==t&&(r.stretch=t,this.parent&&this.parent.update()))}columnStretch(e){let t=this._columnSizers[e];return t?t.stretch:-1}setColumnStretch(e,t){let r=this._columnSizers[e];r&&(t=Ti.clampValue(t),r.stretch!==t&&(r.stretch=t,this.parent&&this.parent.update()))}*[Symbol.iterator](){for(let e of this._items)yield e.widget}addWidget(e){ce.findFirstIndex(this._items,r=>r.widget===e)===-1&&(this._items.push(new lu(e)),this.parent&&this.attachWidget(e))}removeWidget(e){let t=ce.findFirstIndex(this._items,n=>n.widget===e);if(t===-1)return;let r=ce.removeAt(this._items,t);this.parent&&this.detachWidget(e),r.dispose()}init(){super.init();for(let e of this)this.attachWidget(e)}attachWidget(e){this.parent.isAttached&&ie.sendMessage(e,j.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&ie.sendMessage(e,j.Msg.AfterAttach),this.parent.fit()}detachWidget(e){this.parent.isAttached&&ie.sendMessage(e,j.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&ie.sendMessage(e,j.Msg.AfterDetach),this.parent.fit()}
10onBeforeShow(e){super.onBeforeShow(e),this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e),this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){this.parent.isVisible&&this._update(e.width,e.height)}onUpdateRequest(e){this.parent.isVisible&&this._update(-1,-1)}onFitRequest(e){this.parent.isAttached&&this._fit()}_fit(){for(let l=0,u=this.rowCount;l<u;++l)this._rowSizers[l].minSize=0;for(let l=0,u=this.columnCount;l<u;++l)this._columnSizers[l].minSize=0;let e=this._items.filter(l=>!l.isHidden);for(let l=0,u=e.length;l<u;++l)e[l].fit();let t=this.rowCount-1,r=this.columnCount-1;e.sort(Ti.rowSpanCmp);for(let l=0,u=e.length;l<u;++l){let c=e[l],d=Ho.getCellConfig(c.widget),f=Math.min(d.row,t),m=Math.min(d.row+d.rowSpan-1,t);Ti.distributeMin(this._rowSizers,f,m,c.minHeight)}e.sort(Ti.columnSpanCmp);for(let l=0,u=e.length;l<u;++l){let c=e[l],d=Ho.getCellConfig(c.widget),f=Math.min(d.column,r),m=Math.min(d.column+d.columnSpan-1,r);Ti.distributeMin(this._columnSizers,f,m,c.minWidth)}if(this.fitPolicy==="set-no-constraint"){ie.sendMessage(this.parent,j.Msg.UpdateRequest);return}let n=t*this._rowSpacing,s=r*this._columnSpacing;for(let l=0,u=this.rowCount;l<u;++l)n+=this._rowSizers[l].minSize;for(let l=0,u=this.columnCount;l<u;++l)s+=this._columnSizers[l].minSize;let o=this._box=Ct.boxSizing(this.parent.node);s+=o.horizontalSum,n+=o.verticalSum;let a=this.parent.node.style;a.minWidth=`${s}px`,a.minHeight=`${n}px`,this._dirty=!0,this.parent.parent&&ie.sendMessage(this.parent.parent,j.Msg.FitRequest),this._dirty&&ie.sendMessage(this.parent,j.Msg.UpdateRequest)}_update(e,t){this._dirty=!1,e<0&&(e=this.parent.node.offsetWidth),t<0&&(t=this.parent.node.offsetHeight),this._box||(this._box=Ct.boxSizing(this.parent.node));let r=this._box.paddingTop,n=this._box.paddingLeft,s=e-this._box.horizontalSum,o=t-this._box.verticalSum,a=this.rowCount-1,l=this.columnCount-1,u=a*this._rowSpacing,c=l*this._columnSpacing;_n.calc(this._rowSizers,Math.max(0,o-u)),_n.calc(this._columnSizers,Math.max(0,s-c));for(let d=0,f=r,m=this.rowCount;d<m;++d)this._rowStarts[d]=f,f+=this._rowSizers[d].size+this._rowSpacing;for(let d=0,f=n,m=this.columnCount;d<m;++d)this._columnStarts[d]=f,f+=this._columnSizers[d].size+this._columnSpacing;for(let d=0,f=this._items.length;d<f;++d){let m=this._items[d];if(m.isHidden)continue;let b=Ho.getCellConfig(m.widget),y=Math.min(b.row,a),x=Math.min(b.column,l),M=Math.min(b.row+b.rowSpan-1,a),T=Math.min(b.column+b.columnSpan-1,l),E=this._columnStarts[x],A=this._rowStarts[y],R=this._columnStarts[T]+this._columnSizers[T].size-E,$=this._rowStarts[M]+this._rowSizers[M].size-A;m.update(E,A,R,$)}}};(function(i){function e(r){return Ti.cellConfigProperty.get(r)}i.getCellConfig=e;function t(r,n){Ti.cellConfigProperty.set(r,Ti.normalizeConfig(n))}i.setCellConfig=t})(Ho||(Ho={}));(function(i){i.cellConfigProperty=new Ge({name:"cellConfig",create:()=>({row:0,column:0,rowSpan:1,columnSpan:1}),changed:a});function e(l){let u=Math.max(0,Math.floor(l.row||0)),c=Math.max(0,Math.floor(l.column||0)),d=Math.max(1,Math.floor(l.rowSpan||0)),f=Math.max(1,Math.floor(l.columnSpan||0));return{row:u,column:c,rowSpan:d,columnSpan:f}}i.normalizeConfig=e;function t(l){return Math.max(0,Math.floor(l))}i.clampValue=t;function r(l,u){let c=i.cellConfigProperty.get(l.widget),d=i.cellConfigProperty.get(u.widget);return c.rowSpan-d.rowSpan}i.rowSpanCmp=r;function n(l,u){let c=i.cellConfigProperty.get(l.widget),d=i.cellConfigProperty.get(u.widget);return c.columnSpan-d.columnSpan}i.columnSpanCmp=n;function s(l,u){for(u=Math.max(1,Math.floor(u));l.length<u;)l.push(new Ys);l.length>u&&(l.length=u)}i.reallocSizers=s;function o(l,u,c,d){if(c<u)return;if(u===c){let b=l[u];b.minSize=Math.max(b.minSize,d);return}let f=0;for(let b=u;b<=c;++b)f+=l[b].minSize;if(f>=d)return;let m=(d-f)/(c-u+1);for(let b=u;b<=c;++b)l[b].minSize+=m}i.distributeMin=o;function a(l){l.parent&&l.parent.layout instanceof Ho&&l.parent.fit()}})(Ti||(Ti={}));Pc=class extends j{constructor(e={}){super({node:C0.createNode()}),this._activeIndex=-1,this._tabFocusIndex=0,this._menus=[],this._childMenu=null,this._overflowMenu=null,this._menuItemSizes=[],this._overflowIndex=-1,this.addClass("lm-MenuBar"),this.setFlag(j.Flag.DisallowLayout),this.renderer=e.renderer||Pc.defaultRenderer,this._forceItemsPosition=e.forceItemsPosition||{forceX:!0,forceY:!0},this._overflowMenuOptions=e.overflowMenuOptions||{isVisible:!0}}dispose(){this._closeChildMenu(),this._menus.length=0,super.dispose()}get childMenu(){return this._childMenu}get overflowIndex(){return this._overflowIndex}get overflowMenu(){return this._overflowMenu}get contentNode(){return this.node.getElementsByClassName("lm-MenuBar-content")[0]}get activeMenu(){return this._menus[this._activeIndex]||null}set activeMenu(e){this.activeIndex=e?this._menus.indexOf(e):-1}get activeIndex(){return this._activeIndex}set activeIndex(e){(e<0||e>=this._menus.length)&&(e=-1),e>-1&&this._menus[e].items.length===0&&(e=-1),this._activeIndex!==e&&(this._activeIndex=e,this.update())}get menus(){return this._menus}openActiveMenu(){this._activeIndex!==-1&&(this._openChildMenu(),this._childMenu&&(this._childMenu.activeIndex=-1,this._childMenu.activateNextItem()))}addMenu(e,t=!0){this.insertMenu(this._menus.length,e,t)}insertMenu(e,t,r=!0){this._closeChildMenu();let n=this._menus.indexOf(t),s=Math.max(0,Math.min(e,this._menus.length));if(n===-1){ce.insert(this._menus,s,t),t.addClass("lm-MenuBar-menu"),t.aboutToClose.connect(this._onMenuAboutToClose,this),t.menuRequested.connect(this._onMenuMenuRequested,this),t.title.changed.connect(this._onTitleChanged,this),r&&this.update();return}s===this._menus.length&&s--,n!==s&&(ce.move(this._menus,n,s),r&&this.update())}removeMenu(e,t=!0){this.removeMenuAt(this._menus.indexOf(e),t)}removeMenuAt(e,t=!0){this._closeChildMenu();let r=ce.removeAt(this._menus,e);r&&(r.aboutToClose.disconnect(this._onMenuAboutToClose,this),r.menuRequested.disconnect(this._onMenuMenuRequested,this),r.title.changed.disconnect(this._onTitleChanged,this),r.removeClass("lm-MenuBar-menu"),t&&this.update())}clearMenus(){if(this._menus.length!==0){this._closeChildMenu();for(let e of this._menus)e.aboutToClose.disconnect(this._onMenuAboutToClose,this),e.menuRequested.disconnect(this._onMenuMenuRequested,this),e.t
10itle.changed.disconnect(this._onTitleChanged,this),e.removeClass("lm-MenuBar-menu");this._menus.length=0,this.update()}}handleEvent(e){switch(e.type){case"keydown":this._evtKeyDown(e);break;case"mousedown":this._evtMouseDown(e);break;case"mousemove":this._evtMouseMove(e);break;case"focusout":this._evtFocusOut(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("keydown",this),this.node.addEventListener("mousedown",this),this.node.addEventListener("mousemove",this),this.node.addEventListener("focusout",this),this.node.addEventListener("contextmenu",this)}onAfterDetach(e){this.node.removeEventListener("keydown",this),this.node.removeEventListener("mousedown",this),this.node.removeEventListener("mousemove",this),this.node.removeEventListener("focusout",this),this.node.removeEventListener("contextmenu",this),this._closeChildMenu()}onActivateRequest(e){this.isAttached&&this._focusItemAt(0)}onResize(e){this.update(),super.onResize(e)}onUpdateRequest(e){var t;let r=this._menus,n=this.renderer,s=this._activeIndex,o=this._tabFocusIndex>=0&&this._tabFocusIndex<r.length?this._tabFocusIndex:0,a=this._overflowIndex>-1?this._overflowIndex:r.length,l=0,u=!1;a=this._overflowMenu!==null?a-1:a;let c=new Array(a);for(let d=0;d<a;++d)c[d]=n.renderItem({title:r[d].title,active:d===s,tabbable:d===o,disabled:r[d].items.length===0,onfocus:()=>{this._tabFocusIndex=d,this.activeIndex=d}}),l+=this._menuItemSizes[d],r[d].title.label===this._overflowMenuOptions.title&&(u=!0,a--);if(this._overflowMenuOptions.isVisible){if(this._overflowIndex>-1&&!u){if(this._overflowMenu===null){let d=(t=this._overflowMenuOptions.title)!==null&&t!==void 0?t:"...";this._overflowMenu=new Or({commands:new Jt}),this._overflowMenu.title.label=d,this._overflowMenu.title.mnemonic=0,this.addMenu(this._overflowMenu,!1)}for(let d=r.length-2;d>=a;d--){let f=this.menus[d];f.title.mnemonic=0,this._overflowMenu.insertItem(0,{type:"submenu",submenu:f}),this.removeMenu(f,!1)}c[a]=n.renderItem({title:this._overflowMenu.title,active:a===s&&r[a].items.length!==0,tabbable:a===o,disabled:r[a].items.length===0,onfocus:()=>{this._tabFocusIndex=a,this.activeIndex=a}}),a++}else if(this._overflowMenu!==null){let d=this._overflowMenu.items,f=this.node.offsetWidth,m=this._overflowMenu.items.length;for(let b=0;b<m;++b){let y=r.length-1-b;if(f-l>this._menuItemSizes[y]){let x=d[0].submenu;this._overflowMenu.removeItemAt(0),this.insertMenu(a,x,!1),c[a]=n.renderItem({title:x.title,active:!1,tabbable:a===o,disabled:r[a].items.length===0,onfocus:()=>{this._tabFocusIndex=a,this.activeIndex=a}}),a++}}this._overflowMenu.items.length===0&&(this.removeMenu(this._overflowMenu,!1),c.pop(),this._overflowMenu=null,this._overflowIndex=-1)}}Wt.render(c,this.contentNode),this._updateOverflowIndex()}_updateOverflowIndex(){if(!this._overflowMenuOptions.isVisible)return;let e=this.contentNode.childNodes,t=this.node.offsetWidth,r=0,n=-1,s=e.length;if(this._menuItemSizes.length==0)for(let o=0;o<s;o++){let a=e[o];r+=a.offsetWidth,this._menuItemSizes.push(a.offsetWidth),r>t&&n===-1&&(n=o)}else for(let o=0;o<this._menuItemSizes.length;o++)if(r+=this._menuItemSizes[o],r>t){n=o;break}this._overflowIndex=n}_evtKeyDown(e){let t=e.keyCode;if(t===9){this.activeIndex=-1;return}if(e.preventDefault(),e.stopPropagation(),t===13||t===32||t===38||t===40){if(this.activeIndex=this._tabFocusIndex,this.activeIndex!==this._tabFocusIndex)return;this.openActiveMenu();return}if(t===27){this._closeChildMenu(),this._focusItemAt(this.activeIndex);return}if(t===37||t===39){let o=t===37?-1:1,a=this._tabFocusIndex+o,l=this._menus.length;for(let u=0;u<l;u++){let c=(l+a+o*u)%l;if(this._menus[c].items.length){this._focusItemAt(c);return}}return}let r=Bn().keyForKeydownEvent(e);if(!r)return;let n=this._activeIndex+1,s=C0.findMnemonic(this._menus,r,n);s.index!==-1&&!s.multiple?(this.activeIndex=s.index,this.openActiveMenu()):s.index!==-1?(this.activeIndex=s.index,this._focusItemAt(this.activeIndex)):s.auto!==-1&&(this.activeIndex=s.auto,this._focusItemAt(this.activeIndex))}_evtMouseDown(e){if(!Ct.hitTest(this.node,e.clientX,e.clientY))return;e.stopPropagation(),e.stopImmediatePropagation();let t=ce.findFirstIndex(this.contentNode.children,r=>Ct.hitTest(r,e.clientX,e.clientY));if(t===-1){this._closeChildMenu();return}if(e.button===0)if(this._childMenu)this._closeChildMenu(),this.activeIndex=t;else{e.preventDefault();let r=this._positionForMenu(t);Or.saveWindowData(),this.activeIndex=t,this._openChildMenu(r)}}_evtMouseMove(e){let t=ce.findFirstIndex(this.contentNode.children,n=>Ct.hitTest(n,e.clientX,e.clientY));if(t===this._activeIndex||t===-1&&this._childMenu)return;let r=t>=0&&this._childMenu?this._positionForMenu(t):null;Or.saveWindowData(),this.activeIndex=t,r&&this._openChildMenu(r)}_positionForMenu(e){let t=this.contentNode.children[e],{left:r,bottom:n}=t.getBoundingClientRect();return{top:n,left:r}}_evtFocusOut(e){!this._childMenu&&!this.node.contains(e.relatedTarget)&&(this.activeIndex=-1)}_focusItemAt(e){let t=this.contentNode.childNodes[e];t&&t.focus()}_openChildMenu(e={}){let t=this.activeMenu;if(!t){this._closeChildMenu();return}let r=this._childMenu;if(r===t)return;this._childMenu=t,r?r.close():document.addEventListener("mousedown",this,
10!0),this._tabFocusIndex=this.activeIndex,ie.sendMessage(this,j.Msg.UpdateRequest);let{left:n,top:s}=e;(typeof n>"u"||typeof s>"u")&&({left:n,top:s}=this._positionForMenu(this._activeIndex)),r||this.addClass("lm-mod-active"),t.items.length>0&&t.open(n,s,this._forceItemsPosition)}_closeChildMenu(){if(!this._childMenu)return;this.removeClass("lm-mod-active"),document.removeEventListener("mousedown",this,!0);let e=this._childMenu;this._childMenu=null,e.close(),this.activeIndex=-1}_onMenuAboutToClose(e){e===this._childMenu&&(this.removeClass("lm-mod-active"),document.removeEventListener("mousedown",this,!0),this._childMenu=null,this.activeIndex=-1)}_onMenuMenuRequested(e,t){if(e!==this._childMenu)return;let r=this._activeIndex,n=this._menus.length;switch(t){case"next":this.activeIndex=r===n-1?0:r+1;break;case"previous":this.activeIndex=r===0?n-1:r-1;break}this.openActiveMenu()}_onTitleChanged(){this.update()}};(function(i){class e{renderItem(r){let n=this.createItemClass(r),s=this.createItemDataset(r),o=this.createItemARIA(r);return ne.li({className:n,dataset:s,...r.disabled?{}:{tabindex:r.tabbable?"0":"-1"},onfocus:r.onfocus,...o},this.renderIcon(r),this.renderLabel(r))}renderIcon(r){let n=this.createIconClass(r);return ne.div({className:n},r.title.icon,r.title.iconLabel)}renderLabel(r){let n=this.formatLabel(r);return ne.div({className:"lm-MenuBar-itemLabel"},n)}createItemClass(r){let n="lm-MenuBar-item";return r.title.className&&(n+=` ${r.title.className}`),r.active&&!r.disabled&&(n+=" lm-mod-active"),n}createItemDataset(r){return r.title.dataset}createItemARIA(r){return{role:"menuitem","aria-haspopup":"true","aria-disabled":r.disabled?"true":"false"}}createIconClass(r){let n="lm-MenuBar-itemIcon",s=r.title.iconClass;return s?`${n} ${s}`:n}formatLabel(r){let{label:n,mnemonic:s}=r.title;if(s<0||s>=n.length)return n;let o=n.slice(0,s),a=n.slice(s+1),l=n[s],u=ne.span({className:"lm-MenuBar-itemMnemonic"},l);return[o,u,a]}}i.Renderer=e,i.defaultRenderer=new e})(Pc||(Pc={}));(function(i){function e(){let r=document.createElement("div"),n=document.createElement("ul");return n.className="lm-MenuBar-content",r.appendChild(n),n.setAttribute("role","menubar"),r}i.createNode=e;function t(r,n,s){let o=-1,a=-1,l=!1,u=n.toUpperCase();for(let c=0,d=r.length;c<d;++c){let f=(c+s)%d,m=r[f].title;if(m.label.length===0)continue;let b=m.mnemonic;if(b>=0&&b<m.label.length){m.label[b].toUpperCase()===u&&(o===-1?o=f:l=!0);continue}a===-1&&m.label[0].toUpperCase()===u&&(a=f)}return{index:o,multiple:l,auto:a}}i.findMnemonic=t})(C0||(C0={}));(function(i){function e(){let r=document.createElement("div"),n=document.createElement("div"),s=document.createElement("div"),o=document.createElement("div"),a=document.createElement("div");return n.className="lm-ScrollBar-button",s.className="lm-ScrollBar-button",n.dataset.action="decrement",s.dataset.action="increment",o.className="lm-ScrollBar-track",a.className="lm-ScrollBar-thumb",o.appendChild(a),r.appendChild(n),r.appendChild(o),r.appendChild(s),r}i.createNode=e;function t(r,n){return r.thumbNode.contains(n)?"thumb":r.trackNode.contains(n)?"track":r.decrementNode.contains(n)?"decrement":r.incrementNode.contains(n)?"increment":null}i.findPart=t})(KT||(KT={}));YT=class extends Xs{constructor(){super(...arguments),this._widget=null}dispose(){if(this._widget){let e=this._widget;this._widget=null,e.dispose()}super.dispose()}get widget(){return this._widget}set widget(e){e&&(e.parent=this.parent),this._widget!==e&&(this._widget&&this._widget.dispose(),this._widget=e,this.parent&&e&&this.attachWidget(e))}*[Symbol.iterator](){this._widget&&(yield this._widget)}removeWidget(e){this._widget===e&&(this._widget=null,this.parent&&this.detachWidget(e))}init(){super.init();for(let e of this)this.attachWidget(e)}attachWidget(e){this.parent.isAttached&&ie.sendMessage(e,j.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&ie.sendMessage(e,j.Msg.AfterAttach)}detachWidget(e){this.parent.isAttached&&ie.sendMessage(e,j.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&ie.sendMessage(e,j.Msg.AfterDetach)}},Cy=class extends xn{constructor(e={}){super(e),this._dirty=!1,this._items=[],this._box=null,this._hiddenMode=e.hiddenMode!==void 0?e.hiddenMode:j.HiddenMode.Display}get hiddenMode(){return this._hiddenMode}set hiddenMode(e){this._hiddenMode!==e&&(this._hiddenMode=e,this.widgets.length>
101&&this.widgets.forEach(t=>{t.hiddenMode=this._hiddenMode}))}dispose(){for(let e of this._items)e.dispose();this._box=null,this._items.length=0,super.dispose()}attachWidget(e,t){this._hiddenMode===j.HiddenMode.Scale&&this._items.length>0?(this._items.length===1&&(this.widgets[0].hiddenMode=j.HiddenMode.Scale),t.hiddenMode=j.HiddenMode.Scale):t.hiddenMode=j.HiddenMode.Display,ce.insert(this._items,e,new lu(t)),this.parent.isAttached&&ie.sendMessage(t,j.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.isAttached&&ie.sendMessage(t,j.Msg.AfterAttach),this.parent.fit()}moveWidget(e,t,r){ce.move(this._items,e,t),this.parent.update()}detachWidget(e,t){let r=ce.removeAt(this._items,e);this.parent.isAttached&&ie.sendMessage(t,j.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&ie.sendMessage(t,j.Msg.AfterDetach),r.widget.node.style.zIndex="",this._hiddenMode===j.HiddenMode.Scale&&(t.hiddenMode=j.HiddenMode.Display,this._items.length===1&&(this._items[0].widget.hiddenMode=j.HiddenMode.Display)),r.dispose(),this.parent.fit()}onBeforeShow(e){super.onBeforeShow(e),this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e),this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){this.parent.isVisible&&this._update(e.width,e.height)}onUpdateRequest(e){this.parent.isVisible&&this._update(-1,-1)}onFitRequest(e){this.parent.isAttached&&this._fit()}_fit(){let e=0,t=0;for(let s=0,o=this._items.length;s<o;++s){let a=this._items[s];a.isHidden||(a.fit(),e=Math.max(e,a.minWidth),t=Math.max(t,a.minHeight))}let r=this._box=Ct.boxSizing(this.parent.node);e+=r.horizontalSum,t+=r.verticalSum;let n=this.parent.node.style;n.minWidth=`${e}px`,n.minHeight=`${t}px`,this._dirty=!0,this.parent.parent&&ie.sendMessage(this.parent.parent,j.Msg.FitRequest),this._dirty&&ie.sendMessage(this.parent,j.Msg.UpdateRequest)}_update(e,t){this._dirty=!1;let r=0;for(let l=0,u=this._items.length;l<u;++l)r+=+!this._items[l].isHidden;if(r===0)return;e<0&&(e=this.parent.node.offsetWidth),t<0&&(t=this.parent.node.offsetHeight),this._box||(this._box=Ct.boxSizing(this.parent.node));let n=this._box.paddingTop,s=this._box.paddingLeft,o=e-this._box.horizontalSum,a=t-this._box.verticalSum;for(let l=0,u=this._items.length;l<u;++l){let c=this._items[l];c.isHidden||(c.widget.node.style.zIndex=`${l}`,c.update(s,n,o,a))}}};(function(i){function e(t){return t.layout||new Cy}i.createLayout=e})(XT||(XT={}));(function(i){function e(s){return r[s]}i.orientationFromPlacement=e;function t(s){return n[s]}i.directionFromPlacement=t;let r={top:"horizontal",left:"vertical",right:"vertical",bottom:"horizontal"},n={top:"top-to-bottom",left:"left-to-right",right:"right-to-left",bottom:"bottom-to-top"}})(JT||(JT={}))});var yae,ZT,QT=w(()=>{iu();Gr();Kh();No();Yh();yae=IT.bindprops({stylesheet:"commandPaletteHeader",className:"jp-icon-hoverShow-content"});(function(i){class e extends Ga.Renderer{renderHeader(r){let n=this.formatHeader(r);return ne.li({className:oi("lm-CommandPalette-header","jp-icon-hoverShow")},n,ne.span(yae))}renderItemIcon(r){let n=this.createIconClass(r);return r.item.isToggled?ne.div({className:n},g0,r.item.iconLabel):ne.div({className:n},r.item.icon,r.item.iconLabel)}createIconClass(r){let n="lm-CommandPalette-itemIcon";return oi(vn.styleClass({stylesheet:"commandPaletteItem"}),r.item.iconClass,n)}}i.Renderer=e,i.defaultRenderer=new e})(ZT||(ZT={}))});var xae,du,ek=w(()=>{Qe();iu();Gr();Kh();No();Yh();xae=xT.bindprops({stylesheet:"menuItem"}),du=class extends Or{constructor(e){e.renderer=e.renderer||du.defaultRenderer,super(e)}insertItem(e,t){return t.submenu&&du.overrideDefaultRenderer(t.submenu),super.insertItem(e,t)}};(function(i){function e(r){r.renderer===Or.defaultRenderer&&(r.renderer=i.defaultRenderer);let n=r.insertItem.bind(r);r.insertItem=(s,o)=>(o.submenu&&i.overrideDefaultRenderer(o.submenu),n(s,o));for(let s of r._items)s.submenu&&e(s.submenu)}i.overrideDefaultRenderer=e;class t extends Or.Renderer{renderIcon(n){let s=this.createIconClass(n);return n.item.isToggled?ne.div({className:s},g0,n.item.iconLabel):ne.div({className:s},n.item.icon,n.item.iconLabel)}createIconClass(n){let s="lm-Menu-itemIcon";return n.item.type==="separator"?oi(n.item.iconClass,s):oi(vn.styleClass({stylesheet:"menuItem"}),n.item.iconClass,s)}renderSubmenu(n){let s="lm-Menu-itemSubmenuIcon";return n.item.type==="submenu"?ne.div({className:s},xae):ne.div({className:s})}}i.Renderer=t,i.defaultRenderer=new t})(du||(du={}))});var Vo,Nc,tk=w(()=>{Nn();iu();Gr();Kh();No();Yh();Vo=class extends gs{constructor(e={}){var t;super({renderer:Vo.defaultRenderer,...e});let r=((t=Vo.translator)!==null&&t!==void 0?t:pt).load("jupyterlab");
10_T.element({container:this.addButtonNode,title:r.__("New Launcher")})}};Vo.translator=null;(function(i){class e extends gs.Renderer{renderCloseIcon(r){var n;let s=((n=i.translator)!==null&&n!==void 0?n:pt).load("jupyterlab"),o=r.title.label?s.__("Close %1",r.title.label):s.__("Close tab"),a=oi("jp-icon-hover lm-TabBar-tabCloseIcon",vn.styleClass({elementPosition:"center",height:"16px",width:"16px"}));return LT("div",{className:a,title:o},b0)}}i.Renderer=e,i.defaultRenderer=new e})(Vo||(Vo={}));Nc=class extends Js{constructor(e={}){super({renderer:Nc.defaultRenderer,...e})}};(function(i){class e extends Js.Renderer{createTabBar(){let r=new Vo;return r.addClass("lm-DockPanel-tabBar"),r}}i.Renderer=e,i.defaultRenderer=new e})(Nc||(Nc={}))});var ik=w(()=>{QT();ek();tk()});var rf=w(()=>{Yh();py();ik()});function MLe(i){let{className:e,inputRef:t,rightIcon:r,...n}=i;return zc.default.createElement("div",{className:oi("jp-InputGroup",e)},zc.default.createElement("input",{ref:t,...n}),r&&zc.default.createElement("span",{className:"jp-InputGroupAction"},typeof r=="string"?zc.default.createElement(U.resolveReact,{icon:r,elementPosition:"center",tag:"span"}):zc.default.createElement(r.react,{elementPosition:"center",tag:"span"})))}var zc,rk=w(()=>{zc=z(Je());rf();No()});function sk(i){let{minimal:e,small:t,children:r,...n}=i;return nk.default.createElement("button",{...n,className:oi(i.className,e?"jp-mod-minimal":"",t?"jp-mod-small":"","jp-Button")},r)}var nk,ok=w(()=>{nk=z(Je());No()});var ak=w(()=>{Qe();Gr()});var bs=w(()=>{});var lk=w(()=>{bs()});var uk=w(()=>{});var nf,Pt=w(()=>{nf="$id"});var hu=w(()=>{Pt();bs()});var hk=w(()=>{hu()});var Iy=D((jLe,fk)=>{var wae=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis;fk.exports=wae});var vs=D((VLe,pk)=>{var Sae=Iy(),Cae=typeof self=="object"&&self&&self.Object===Object&&self,Iae=Sae||Cae||Function("return this")();pk.exports=Iae});var fu=D((ULe,mk)=>{var Mae=vs(),Eae=Mae.Symbol;mk.exports=Eae});var _k=D((WLe,vk)=>{var gk=fu(),bk=Object.prototype,Tae=bk.hasOwnProperty,kae=bk.toString,sf=gk?gk.toStringTag:void 0;function Aae(i){var e=Tae.call(i,sf),t=i[sf];try{i[sf]=void 0;var r=!0}catch{}var n=kae.call(i);return r&&(e?i[sf]=t:delete i[sf]),n}vk.exports=Aae});var xk=D((GLe,yk)=>{var Rae=Object.prototype,Dae=Rae.toString;function Oae(i){return Dae.call(i)}yk.exports=Oae});var Qs=D((KLe,Ck)=>{var wk=fu(),Lae=_k(),$ae=xk(),Fae="[object Null]",Pae="[object Undefined]",Sk=wk?wk.toStringTag:void 0;function Nae(i){return i==null?i===void 0?Pae:Fae:Sk&&Sk in Object(i)?Lae(i):$ae(i)}Ck.exports=Nae});var My=D((YLe,Ik)=>{function zae(i,e){return function(t){return i(e(t))}}Ik.exports=zae});var of=D((XLe,Mk)=>{var Bae=My(),qae=Bae(Object.getPrototypeOf,Object);Mk.exports=qae});var wn=D((JLe,Ek)=>{function Hae(i){return i!=null&&typeof i=="object"}Ek.exports=Hae});var Uo=D((ZLe,kk)=>{var jae=Qs(),Vae=of(),Uae=wn(),Wae="[object Object]",Gae=Function.prototype,Kae=Object.prototype,Tk=Gae.toString,Yae=Kae.hasOwnProperty,Xae=Tk.call(Object);function Jae(i){if(!Uae(i)||jae(i)!=Wae)return!1;var e=Vae(i);if(e===null)return!0;var t=Yae.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&Tk.call(t)==Xae}kk.exports=Jae});var Zae,Ak=w(()=>{Zae=z(Uo());Pt()});var Dk=D((t$e,Rk)=>{function Qae(){this.__data__=[],this.size=0}Rk.exports=Qae});var pu=D((i$e,Ok)=>{function ele(i,e){return i===e||i!==i&&e!==e}Ok.exports=ele});var af=D((r$e,Lk)=>{var tle=pu();function ile(i,e){for(var t=i.length;t--;)if(tle(i[t][0],e))return t;return-1}Lk.exports=ile});var Fk=D((n$e,$k)=>{var rle=af(),nle=Array.prototype,sle=nle.splice;function ole(i){var e=this.__data__,t=rle(e,i);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():sle.call(e,t,1),--this.size,!0}$k.exports=ole});var Nk=D((s$e,Pk)=>{var ale=af();function lle(i){var e=this.__data__,t=ale(e,i);return t<0?void 0:e[t][1]}Pk.exports=lle});var Bk=D((o$e,zk)=>{var ule=af();function cle(i){return ule(this.__data__,i)>-1}zk.exports=cle});var Hk=D((a$e,qk)=>{var dle=af();function hle(i,e){var t=this.__data__,r=dle(t,i);return r<0?(++this.size,t.push([i,e])):t[r][1]=e,this}qk.exports=hle});var lf=D((l$e,jk)=>
vendor: 17,494 bytes, line 10
10{var fle=Dk(),ple=Fk(),mle=Nk(),gle=Bk(),ble=Hk();function Bc(i){var e=-1,t=i==null?0:i.length;for(this.clear();++e<t;){var r=i[e];this.set(r[0],r[1])}}Bc.prototype.clear=fle;Bc.prototype.delete=ple;Bc.prototype.get=mle;Bc.prototype.has=gle;Bc.prototype.set=ble;jk.exports=Bc});var Uk=D((u$e,Vk)=>{var vle=lf();function _le(){this.__data__=new vle,this.size=0}Vk.exports=_le});var Gk=D((c$e,Wk)=>{function yle(i){var e=this.__data__,t=e.delete(i);return this.size=e.size,t}Wk.exports=yle});var Yk=D((d$e,Kk)=>{function xle(i){return this.__data__.get(i)}Kk.exports=xle});var Jk=D((h$e,Xk)=>{function wle(i){return this.__data__.has(i)}Xk.exports=wle});var vi=D((f$e,Zk)=>{function Sle(i){var e=typeof i;return i!=null&&(e=="object"||e=="function")}Zk.exports=Sle});var uf=D((p$e,Qk)=>{var Cle=Qs(),Ile=vi(),Mle="[object AsyncFunction]",Ele="[object Function]",Tle="[object GeneratorFunction]",kle="[object Proxy]";function Ale(i){if(!Ile(i))return!1;var e=Cle(i);return e==Ele||e==Tle||e==Mle||e==kle}Qk.exports=Ale});var tA=D((m$e,eA)=>{var Rle=vs(),Dle=Rle["__core-js_shared__"];eA.exports=Dle});var nA=D((g$e,rA)=>{var Ty=tA(),iA=function(){var i=/[^.]+$/.exec(Ty&&Ty.keys&&Ty.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function Ole(i){return!!iA&&iA in i}rA.exports=Ole});var ky=D((b$e,sA)=>{var Lle=Function.prototype,$le=Lle.toString;function Fle(i){if(i!=null){try{return $le.call(i)}catch{}try{return i+""}catch{}}return""}sA.exports=Fle});var aA=D((v$e,oA)=>{var Ple=uf(),Nle=nA(),zle=vi(),Ble=ky(),qle=/[\\^$.*+?()[\]{}|]/g,Hle=/^\[object .+?Constructor\]$/,jle=Function.prototype,Vle=Object.prototype,Ule=jle.toString,Wle=Vle.hasOwnProperty,Gle=RegExp("^"+Ule.call(Wle).replace(qle,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Kle(i){if(!zle(i)||Nle(i))return!1;var e=Ple(i)?Gle:Hle;return e.test(Ble(i))}oA.exports=Kle});var uA=D((_$e,lA)=>{function Yle(i,e){return i?.[e]}lA.exports=Yle});var Ka=D((y$e,cA)=>{var Xle=aA(),Jle=uA();function Zle(i,e){var t=Jle(i,e);return Xle(t)?t:void 0}cA.exports=Zle});var I0=D((x$e,dA)=>{var Qle=Ka(),eue=vs(),tue=Qle(eue,"Map");dA.exports=tue});var cf=D((w$e,hA)=>{var iue=Ka(),rue=iue(Object,"create");hA.exports=rue});var mA=D((S$e,pA)=>{var fA=cf();function nue(){this.__data__=fA?fA(null):{},this.size=0}pA.exports=nue});var bA=D((C$e,gA)=>{function sue(i){var e=this.has(i)&&delete this.__data__[i];return this.size-=e?1:0,e}gA.exports=sue});var _A=D((I$e,vA)=>{var oue=cf(),aue="__lodash_hash_undefined__",lue=Object.prototype,uue=lue.hasOwnProperty;function cue(i){var e=this.__data__;if(oue){var t=e[i];return t===aue?void 0:t}return uue.call(e,i)?e[i]:void 0}vA.exports=cue});var xA=D((M$e,yA)=>{var due=cf(),hue=Object.prototype,fue=hue.hasOwnProperty;function pue(i){var e=this.__data__;return due?e[i]!==void 0:fue.call(e,i)}yA.exports=pue});var SA=D((E$e,wA)=>{var mue=cf(),gue="__lodash_hash_undefined__";function bue(i,e){var t=this.__data__;return this.size+=this.has(i)?0:1,t[i]=mue&&e===void 0?gue:e,this}wA.exports=bue});var IA=D((T$e,CA)=>{var vue=mA(),_ue=bA(),yue=_A(),xue=xA(),wue=SA();function qc(i){var e=-1,t=i==null?0:i.length;for(this.clear();++e<t;){var r=i[e];this.set(r[0],r[1])}}qc.prototype.clear=vue;qc.prototype.delete=_ue;qc.prototype.get=yue;qc.prototype.has=xue;qc.prototype.set=wue;CA.exports=qc});var TA=D((k$e,EA)=>{var MA=IA(),Sue=lf(),Cue=I0();function Iue(){this.size=0,this.__data__={hash:new MA,map:new(Cue||Sue),string:new MA}}EA.exports=Iue});var AA=D((A$e,kA)=>{function Mue(i){var e=typeof i;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?i!=="__proto__":i===null}kA.exports=Mue});var df=D((R$e,RA)=>{var Eue=AA();function Tue(i,e){var t=i.__data__;return Eue(e)?t[typeof e=="string"?"string":"hash"]:t.map}RA.exports=Tue});var OA=D((D$e,DA)=>{var kue=df();function Aue(i){var e=kue(this,i).delete(i);return this.size-=e?1:0,e}DA.exports=Aue});var $A=D((O$e,LA)=>{var Rue=df();function Due(i){return Rue(this,i).get(i)}LA.exports=Due});var PA=D((L$e,FA)=>{var Oue=df();function Lue(i){return Oue(this,i).has(i)}FA.exports=Lue});var zA=D(($$e,NA)=>{var $ue=df();function Fue(i,e){var t=$ue(this,i),r=t.size;return t.set(i,e),this.size+=t.size==r?0:1,this}NA.exports=Fue});var M0=D((F$e,BA)=>{var Pue=TA(),Nue=OA(),zue=$A(),Bue=PA(),que=zA();function Hc(i){var e=-1,t=i==null?0:i.length;for(this.clear();++e<t;){var r=i[e];this.set(r[0],r[1])}}Hc.prototype.clear=Pue;Hc.prototype.delete=Nue;Hc.prototype.get=zue;Hc.prototype.has=Bue;Hc.prototype.set=que;BA.exports=Hc});var HA=D((P$e,qA)=>{var Hue=lf(),jue=I0(),Vue=M0(),Uue=200;function Wue(i,e){var t=this.__data__;if(t instanceof Hue){var r=t.__data__;if(!jue||r.length<Uue-1)return r.push([i,e]),this.size=++t.size,this;t=this.__data__=new Vue(r)}return t.set(i,e),this.size=t.size,this}qA.exports=Wue});var hf=D((N$e,jA)=>{var Gue=lf(),Kue=Uk(),Yue=Gk(),Xue=Yk(),Jue=Jk(),Zue=HA();function jc(i){var e=this.__data__=new Gue(i);this.size=e.size}jc.prototype.clear=Kue;jc.prototype.delete=Yue;jc.prototype.get=Xue;jc.prototype.has=Jue;jc.prototype.set=Zue;jA.exports=jc});var UA=D((z$e,VA)=>{var Que="__lodash_hash_undefined__";function ece(i){return this.__data__.set(i,Que),this}VA.exports=ece});var GA=D((B$e,WA)=>{function tce(i){return this.__data__.has(i)}WA.exports=tce});var ff=D((q$e,KA)=>{var ice=M0(),rce=UA(),nce=GA();function E0(i){var e=-1,t=i==null?0:i.length;for(this.__data__=new ice;++e<t;)this.add(i[e])}E0.prototype.add=E0.prototype.push=rce;E0.prototype.has=nce;KA.exports=E0});var XA=D((H$e,YA)=>{function sce(i,e){for(var t=-1,r=i==null?0:i.length;++t<r;)if(e(i[t],t,i))return!0;return!1}YA.exports=sce});var pf=D((j$e,JA)=>{function oce(i,e){return i.has(e)}JA.exports=oce});var Ay=D((V$e,ZA)=>{var ace=ff(),lce=XA(),uce=pf(),cce=1,dce=2;function hce(i,e,t,r,n,s){var o=t&cce,a=i.length,l=e.length;if(a!=l&&!(o&&l>a))return!1;var u=s.get(i),c=s.get(e);if(u&&c)return u==e&&c==i;var d=-1,f=!0,m=t&dce?new ace:void 0;for(s.set(i,e),s.set(e,i);++d<a;){var b=i[d],y=e[d];if(r)var x=o?r(y,b,d,e,i,s):r(b,y,d,i,e,s);if(x!==void 0){if(x)continue;f=!1;break}if(m){if(!lce(e,function(M,T){if(!uce(m,T)&&(b===M||n(b,M,t,r,s)))return m.push(T)})){f=!1;break}}else if(!(b===y||n(b,y,t,r,s))){f=!1;break}}return s.delete(i),s.delete(e),f}ZA.exports=hce});var Ry=D((U$e,QA)=>{var fce=vs(),pce=fce.Uint8Array;QA.exports=pce});var t7=D((W$e,e7)=>{function mce(i){var e=-1,t=Array(i.size);return i.forEach(function(r,n){t[++e]=[n,r]}),t}e7.exports=mce});var T0=D((G$e,i7)=>{function gce(i){var e=-1,t=Array(i.size);return i.forEach(function(r){t[++e]=r}),t}i7.exports=gce});var a7=D((K$e,o7)=>{var r7=fu(),n7=Ry(),bce=pu(),vce=Ay(),_ce=t7(),yce=T0(),xce=1,wce=2,Sce="[object Boolean]",Cce="[object Date]",Ice="[object Error]",Mce="[object Map]",Ece="[object Number]",Tce="[object RegExp]",kce="[object Set]",Ace="[object String]",Rce="[object Symbol]",Dce="[object ArrayBuffer]",Oce="[object DataView]",s7=r7?r7.prototype:void 0,Dy=s7?s7.valueOf:void 0;function Lce(i,e,t,r,n,s,o){switch(t){case Oce:if(i.byteLength!=e.byteLength||i.byteOffset!=e.byteOffset)return!1;i=i.buffer,e=e.buffer;case Dce:return!(i.byteLength!=e.byteLength||!s(new n7(i),new n7(e)));case Sce:case Cce:case Ece:return bce(+i,+e);case Ice:return i.name==e.name&&i.message==e.message;case Tce:case Ace:return i==e+"";case Mce:var a=_ce;case kce:var l=r&xce;if(a||(a=yce),i.size!=e.size&&!l)return!1;var u=o.get(i);if(u)return u==e;r|=wce,o.set(i,e);var c=vce(a(i),a(e),r,n,s,o);return o.delete(i),c;case Rce:if(Dy)return Dy.call(i)==Dy.call(e)}return!1}o7.exports=Lce});var k0=D((Y$e,l7)=>{function $ce(i,e){for(var t=-1,r=e.length,n=i.length;++t<r;)i[n+t]=e[t];return i}l7.exports=$ce});var ki=D((X$e,u7)=>{var Fce=Array.isArray;u7.exports=Fce});var Oy=D((J$e,c7)=>{var Pce=k0(),Nce=ki();function zce(i,e,t){var r=e(i);return Nce(i)?r:Pce(r,t(i))}c7.exports=zce});var h7=D((Z$e,d7)=>{function Bce(i,e){for(var t=-1,r=i==null?0:i.length,n=0,s=[];++t<r;){var o=i[t];e(o,t,i)&&(s[n++]=o)}return s}d7.exports=Bce});var Ly=D((Q$e,f7)=>{function qce(){return[]}f7.exports=qce});var A0=D((eFe,m7)=>{var Hce=h7(),jce=Ly(),Vce=Object.prototype,Uce=Vce.propertyIsEnumerable,p7=Object.getOwnPropertySymbols,Wce=p7?function(i){return i==null?[]:(i=Object(i),Hce(p7(i),function(e){return Uce.call(i,e)}))}:jce;m7.exports=Wce});var $y=D((tFe,g7)=>{function Gce(i,e){for(var t=-1,r=Array(i);++t<i;)r[t]=e(t);return r}g7.exports=Gce});var v7=D((iFe,b7)=>{var Kce=Qs(),Yce=wn(),Xce="[object Arguments]";function Jce(i){return Yce(i)&&Kce(i)==Xce}b7.exports=Jce});var Vc=D((rFe,x7)=>{var _7=v7(),Zce=wn(),y7=Object.prototype,Qce=y7.hasOwnProperty,ede=y7.propertyIsEnumerable,tde=_7(function(){return arguments}())?_7:function(i){return Zce(i)&&Qce.call(i,"callee")&&!ede.call(i,"callee")};x7.exports=tde});var S7=D((nFe,w7)=>{function ide(){return!1}w7.exports=ide});var mu=D((mf,Uc)=>{var rde=vs(),nde=S7(),M7=typeof mf=="object"&&mf&&!mf.nodeType&&mf,C7=M7&&typeof Uc=="object"&&Uc&&!Uc.nodeType&&Uc,sde=C7&&C7.exports===M7,I7=sde?rde.Buffer:void 0,ode=I7?I7.isBuffer:void 0,ade=ode||nde;Uc.exports=ade});var gf=D((sFe,E7)=>{var lde=9007199254740991,ude=/^(?:0|[1-9]\d*)$/;function cde(i,e){var t=typeof i;return e=e??lde,!!e&&(t=="number"||t!="symbol"&&ude.test(i))&&i>-1&&i%1==0&&i<e}E7.exports=cde});var R0=D((oFe,T7)=>{var dde=9007199254740991;function hde(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=dde}T7.exports=hde});var A7=D((aFe,k7)=>{var fde=Qs(),pde=R0(),mde=wn(),gde="[object Arguments]",bde="[object Array]",vde="[object Boolean]",_de="[object Date]",yde="[object Error]",xde="[object Function]",wde="[object Map]",Sde="[object Number]",Cde="[object Object]",Ide="[object RegExp]",Mde="[object Set]",Ede="[object String]",Tde="[object WeakMap]",kde="[object ArrayBuffer]",Ade="[object DataView]",Rde="[object Float32Array]",Dde="[object Float64Array]",Ode="[object Int8Array]",Lde="[object Int16Array]",$de="[object Int32Array]",Fde="[object Uint8Array]",Pde="[object Uint8ClampedArray]",Nde="[object Uint16Array]",zde="[object Uint32Array]",Nt={};Nt[Rde]=Nt[Dde]=Nt[Ode]=Nt[Lde]=Nt[$de]=Nt[Fde]=Nt[Pde]=Nt[Nde]=Nt[zde]=!0;Nt[gde]=Nt[bde]=Nt[kde]=Nt[vde]=Nt[Ade]=Nt[_de]=Nt[yde]=Nt[xde]=Nt[wde]=Nt[Sde]=Nt[Cde]=Nt[Ide]=Nt[Mde]=Nt[Ede]=Nt[Tde]=!1;function Bde(i){return mde(i)&&pde(i.length)&&!!Nt[fde(i)]}k7.exports=Bde});var Ya=D((lFe,R7)=>{function qde(i){return function(e){return i(e)}}R7.exports=qde});var D0=D((bf,Wc)=>{var Hde=Iy(),D7=typeof bf=="object"&&bf&&!bf.nodeType&&bf,vf=D7&&typeof Wc=="object"&&Wc&&!Wc.nodeType&&Wc,jde=vf&&vf.exports===D7,Fy=jde&&Hde.process,Vde=function(){try{var i=vf&&vf.require&&vf.require("util").types;return i||Fy&&Fy.binding&&Fy.binding("util")}catch{}}();Wc.exports=Vde});var Gc=D((uFe,$7)=>{var Ude=A7(),Wde=Ya(),O7=D0(),L7=O7&&O7.isTypedArray,Gde=L7?Wde(L7):Ude;$7.exports=Gde});var Py=D((cFe,F7)=>{var Kde=$y(),Yde=Vc(),Xde=ki(),Jde=mu(),Zde=gf(),Qde=Gc(),ehe=Object.prototype,the=ehe.hasOwnProperty;function ihe(i,e){var t=Xde(i),r=!t&&Yde(i),n=!t&&!r&&Jde(i),s=!t&&!r&&!n&&Qde(i),o=t||r||n||s,a=o?Kde(i.length,String):[],l=a.length;for(var u in i)(e||the.call(i,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Zde(u,l)))&&a.push(u);return a}F7.exports=ihe});var _f=D((dFe,P7)=>{var rhe=Object.prototype;function nhe(i){var e=i&&i.constructor,t=typeof e=="function"&&e.prototype||rhe;return i===t}P7.exports=nhe});var z7=D((hFe,N7)=>{var she=My(),ohe=she(Object.keys,Object);N7.exports=ohe});var Ny=D((fFe,B7)=>{var ahe=_f(),lhe=z7(),uhe=Object.prototype,che=uhe.hasOwnProperty;function dhe(i){if(!ahe(i))return lhe(i);var e=[];for(var t in Object(i))che.call(i,t)&&t!="constructor"&&e.push(t);return e}B7.exports=dhe});var Xa=D((pFe,q7)=>{var hhe=uf(),fhe=R0();function phe(i){return i!=null&&fhe(i.length)&&!hhe(i)}q7.exports=phe});var Kc=D((mFe,H7)=>{var mhe=Py(),ghe=Ny(),bhe=Xa();function vhe(i){return bhe(i)?mhe(i):ghe(i)}H7.exports=vhe});var zy=D((gFe,j7)=>{var _he=Oy(),yhe=A0(),xhe=Kc();function whe(i){return _he(i,xhe,yhe)}j7.exports=whe});var W7=D((bFe,U7)=>{var V7=zy(),She=1,Che=Object.prototype,Ihe=Che.hasOwnProperty;function Mhe(i,e,t,r,n,s){var o=t&She,a=V7(i),l=a.length,u=V7(e),c=u.length;if(l!=c&&!o)return!1;for(var d=l;d--;){var f=a[d];if(!(o?f in e:Ihe.call(e,f)))return!1}var m=s.get(i),b=s.get(e);if(m&&b)return m==e&&b==i;var y=!0;s.set(i,e),s.set(e,i);for(var x=o;++d<l;){f=a[d];var M=i[f],T=e[f];if(r)var E=o?r(T,M,f,e,i,s):r(M,T,f,i,e,s);if(!(E===void 0?M===T||n(M,T,t,r,s):E)){y=!1;break}x||(x=f=="constructor")}if(y&&!x){var A=i.constructor,R=e.constructor;A!=R&&"constructor"in i&&"constructor"in e&&!(typeof A=="function"&&A instanceof A&&typeof R=="function"&&R instanceof R)&&(y=!1)}return s.delete(i),s.delete(e),y}U7.exports=Mhe});var K7=D((vFe,G7)=>{var Ehe=Ka(),The=vs(),khe=Ehe(The,"DataView");G7.exports=khe});var X7=D((_Fe,Y7)=>{var Ahe=Ka(),Rhe=vs(),Dhe=Ahe(Rhe,"Promise");Y7.exports=Dhe});var By=D((yFe,J7)=>{var Ohe=Ka(),Lhe=vs(),$he=Ohe(Lhe,"Set");J7.exports=$he});var Q7=D((xFe,Z7)=>{var Fhe=Ka(),Phe=vs(),Nhe=Fhe(Phe,"WeakMap");Z7.exports=Nhe});var Xc=D((wFe,oR)=>{var qy=K7(),Hy=I0(),jy=X7(),Vy=By(),Uy=Q7(),sR=Qs(),Yc=ky(),eR="[object Map]",zhe="[object Object]",tR="[object Promise]",iR="[object Set]",rR="[object WeakMap]",nR="[object DataView]",Bhe=Yc(qy),qhe=Yc(Hy),Hhe=Yc(jy),jhe=Yc(Vy),Vhe=Yc(Uy),gu=sR;(qy&&gu(new qy(new ArrayBuffer(1)))!=nR||Hy&&gu(new Hy)!=eR||jy&&gu(jy.resolve())!=tR||Vy&&gu(new Vy)!=iR||Uy&&gu(new Uy)!=rR)&&(gu=function(i){var e=sR(i),t=e==zhe?i.constructor:void 0,r=t?Yc(t):"";if(r)switch(r){case Bhe:return nR;case qhe:return eR;case Hhe:return tR;case jhe:return iR;case Vhe:return rR}return e});oR.exports=gu});var pR=D((SFe,fR)=>{var Wy=hf(),Uhe=Ay(),Whe=a7(),Ghe=W7(),aR=Xc(),lR=ki(),uR=mu(),Khe=Gc(),Yhe=1,cR="[object Arguments]",dR="[object Array]",O0="[object Object]",Xhe=Object.prototype,hR=Xhe.hasOwnProperty;function Jhe(i,e,t,r,n,s){var o=lR(i),a=lR(e),l=o?dR:aR(i),u=a?dR:aR(e);l=l==cR?O0:l,u=u==cR?O0:u;var c=l==O0,d=u==O0,f=l==u;if(f&&uR(i)){if(!uR(e))return!1;o=!0,c=!1}if(f&&!c)return s||(s=new Wy),o||Khe(i)?Uhe(i,e,t,r,n,s):Whe(i,e,l,t,r,n,s);if(!(t&Yhe)){var m=c&&hR.call(i,"__wrapped__"),b=d&&hR.call(e,"__wrapped__");if(m||b){var y=m?i.value():i,x=b?e.value():e;return s||(s=new Wy),n(y,x,t,r,s)}}return f?(s||(s=new Wy),Ghe(i,e,t,r,n,s)):!1}fR.exports=Jhe});var yf=D((CFe,bR)=>{var Zhe=pR(),mR=wn();function gR(i,e,t,r,n){return i===e?!0:i==null||e==null||!mR(i)&&!mR(e)?i!==i&&e!==e:Zhe(i,e,t,r,gR,n)}bR.exports=gR});var _R=D((IFe,vR)=>{var Qhe=yf();function efe(i,e,t){t=typeof t=="function"?t:void 0;var r=t?t(i,e):void 0;return r===void 0?Qhe(i,e,void 0,t):!!r}vR.exports=efe});var tfe,L0=w(()=>{tfe=z(_R())});var bu=D((EFe,yR)=>{var ife=Qs(),rfe=wn(),nfe="[object Symbol]";function sfe(i){return typeof i=="symbol"||rfe(i)&&ife(i)==nfe}yR.exports=sfe});var $0=D((TFe,xR)=>{var ofe=ki(),afe=bu(),lfe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ufe=/^\w*$/;function cfe(i,e){if(ofe(i))return!1;var t=typeof i;return t=="number"||t=="symbol"||t=="boolean"||i==null||afe(i)?!0:ufe.test(i)||!lfe.test(i)||e!=null&&i in Object(e)}xR.exports=cfe});var CR=D((kFe,SR)=>{var wR=M0(),dfe="Expected a function";function Gy(i,e){if(typeof i!="function"||e!=null&&typeof e!="function")throw new TypeError(dfe);var t=function(){var r=arguments,n=e?e.apply(this,r):r[0],s=t.cache;if(s.has(n))return s.get(n);var o=i.apply(this,r);return t.cache=s.set(n,o)||s,o};return t.cache=new(Gy.Cache||wR),t}Gy.Cache=wR;SR.exports=Gy});var MR=D((AFe,IR)=>{var hfe=CR(),ffe=500;function pfe(i){var e=hfe(i,function(r){return t.size===ffe&&t.clear(),r}),t=e.cache;return e}IR.exports=pfe});var Ky=D((RFe,ER)=>{var mfe=MR(),gfe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bfe=/\\(\\)?/g,vfe=mfe(function(i){var e=[];return i.charCodeAt(0)===46&&e.push(""),i.replace(gfe,function(t,r,n,s){e.push(n?s.replace(bfe,"$1"):r||t)}),e});ER.exports=vfe});var eo=D((DFe,TR)=>{function _fe(i,e){for(var t=-1,r=i==null?0:i.length,n=Array(r);++t<r;)n[t]=e(i[t],t,i);return n}TR.exports=_fe});var LR=D((OFe,OR)=>{var kR=fu(),yfe=eo(),xfe=ki(),wfe=bu(),Sfe=1/0,AR=kR?kR.prototype:void 0,RR=AR?AR.toString:void 0;function DR(i){if(typeof i=="string")return i;if(xfe(i))return yfe(i,DR)+"";if(wfe(i))return RR?RR.call(i):"";var e=i+"";return e=="0"&&1/i==-Sfe?"-0":e}OR.exports=DR});var Yy=D((LFe,$R)=>{var Cfe=LR();function Ife(i){return i==null?"":Cfe(i)}$R.exports=Ife});var vu=D(($Fe,FR)=>{var Mfe=ki(),Efe=$0(),Tfe=Ky(),kfe=Yy();function Afe(i,e){return Mfe(i)?i:Efe(i,e)?[i]:Tfe(kfe(i))}FR.exports=Afe});var Ja=D((FFe,PR)=>{var Rfe=bu(),Dfe=1/0;function Ofe(i){if(typeof i=="string"||Rfe(i))return i;var e=i+"";return e=="0"&&1/i==-Dfe?"-0":e}PR.exports=Ofe});var Jc=D((PFe,NR)=>{var Lfe=vu(),$fe=Ja();function Ffe(i,e){e=Lfe(e,i);for(var t=0,r=e.length;i!=null&&t<r;)i=i[$fe(e[t++])];return t&&t==r?i:void 0}NR.exports=Ffe});var Ai=D((NFe,zR)=>{var Pfe=Jc();function Nfe(i,e,t){var r=i==null?void 0:Pfe(i,e);return r===void 0?t:r}zR.exports=Nfe});var Zc=D((zFe,BR)=>{var zfe=Ny(),Bfe=Xc(),qfe=Vc(),Hfe=ki(),jfe=Xa(),Vfe=mu(),Ufe=_f(),Wfe=Gc(),Gfe="[object Map]",Kfe="[object Set]",Yfe=Object.prototype,Xfe=Yfe.hasOwnProperty;function Jfe(i){if(i==null)return!0;if(jfe(i)&&(Hfe(i)||typeof i=="string"||typeof i.splice=="function"||Vfe(i)||Wfe(i)||qfe(i)))return!i.length;var e=Bfe(i);if(e==Gfe||e==Kfe)return!i.size;if(Ufe(i))return!zfe(i).length;
10for(var t in i)if(Xfe.call(i,t))return!1;return!0}BR.exports=Jfe});var VR=D(F0=>{var Zfe=/~/,Qfe=/~[01]/g;function epe(i){switch(i){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+i)}function qR(i){return Zfe.test(i)?i.replace(Qfe,epe):i}function tpe(i,e,t){for(var r,n,s=1,o=e.length;s<o;){if(e[s]==="constructor"||e[s]==="prototype"||e[s]==="__proto__")return i;if(r=qR(e[s++]),n=o>s,typeof i[r]>"u"&&(Array.isArray(i)&&r==="-"&&(r=i.length),n&&(e[s]!==""&&e[s]<1/0||e[s]==="-"?i[r]=[]:i[r]={})),!n)break;i=i[r]}var a=i[r];return t===void 0?delete i[r]:i[r]=t,a}function Xy(i){if(typeof i=="string"){if(i=i.split("/"),i[0]==="")return i;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(i)){for(let e of i)if(typeof e!="string"&&typeof e!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return i}throw new Error("Invalid JSON pointer.")}function HR(i,e){if(typeof i!="object")throw new Error("Invalid input object.");e=Xy(e);var t=e.length;if(t===1)return i;for(var r=1;r<t;){if(i=i[qR(e[r++])],t===r)return i;if(typeof i!="object"||i===null)return}}function jR(i,e,t){if(typeof i!="object")throw new Error("Invalid input object.");if(e=Xy(e),e.length===0)throw new Error("Invalid JSON pointer for set.");return tpe(i,e,t)}function ipe(i){var e=Xy(i);return{get:function(t){return HR(t,e)},set:function(t,r){return jR(t,e,r)}}}F0.get=HR;F0.set=jR;F0.compile=ipe});var P0=D((qFe,UR)=>{function rpe(i,e){for(var t=-1,r=i==null?0:i.length;++t<r&&e(i[t],t,i)!==!1;);return i}UR.exports=rpe});var Jy=D((HFe,WR)=>{var npe=Ka(),spe=function(){try{var i=npe(Object,"defineProperty");return i({},"",{}),i}catch{}}();WR.exports=spe});var N0=D((jFe,KR)=>{var GR=Jy();function ope(i,e,t){e=="__proto__"&&GR?GR(i,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):i[e]=t}KR.exports=ope});var z0=D((VFe,YR)=>{var ape=N0(),lpe=pu(),upe=Object.prototype,cpe=upe.hasOwnProperty;function dpe(i,e,t){var r=i[e];(!(cpe.call(i,e)&&lpe(r,t))||t===void 0&&!(e in i))&&ape(i,e,t)}YR.exports=dpe});var _u=D((UFe,XR)=>{var hpe=z0(),fpe=N0();function ppe(i,e,t,r){var n=!t;t||(t={});for(var s=-1,o=e.length;++s<o;){var a=e[s],l=r?r(t[a],i[a],a,t,i):void 0;l===void 0&&(l=i[a]),n?fpe(t,a,l):hpe(t,a,l)}return t}XR.exports=ppe});var ZR=D((WFe,JR)=>{var mpe=_u(),gpe=Kc();function bpe(i,e){return i&&mpe(e,gpe(e),i)}JR.exports=bpe});var eD=D((GFe,QR)=>{function vpe(i){var e=[];if(i!=null)for(var t in Object(i))e.push(t);return e}QR.exports=vpe});var iD=D((KFe,tD)=>{var _pe=vi(),ype=_f(),xpe=eD(),wpe=Object.prototype,Spe=wpe.hasOwnProperty;function Cpe(i){if(!_pe(i))return xpe(i);var e=ype(i),t=[];for(var r in i)r=="constructor"&&(e||!Spe.call(i,r))||t.push(r);return t}tD.exports=Cpe});var yu=D((YFe,rD)=>{var Ipe=Py(),Mpe=iD(),Epe=Xa();function Tpe(i){return Epe(i)?Ipe(i,!0):Mpe(i)}rD.exports=Tpe});var sD=D((XFe,nD)=>{var kpe=_u(),Ape=yu();function Rpe(i,e){return i&&kpe(e,Ape(e),i)}nD.exports=Rpe});var Zy=D((xf,Qc)=>{var Dpe=vs(),uD=typeof xf=="object"&&xf&&!xf.nodeType&&xf,oD=uD&&typeof Qc=="object"&&Qc&&!Qc.nodeType&&Qc,Ope=oD&&oD.exports===uD,aD=Ope?Dpe.Buffer:void 0,lD=aD?aD.allocUnsafe:void 0;function Lpe(i,e){if(e)return i.slice();var t=i.length,r=lD?lD(t):new i.constructor(t);return i.copy(r),r}Qc.exports=Lpe});var wf=D((JFe,cD)=>{function $pe(i,e){var t=-1,r=i.length;for(e||(e=Array(r));++t<r;)e[t]=i[t];return e}cD.exports=$pe});var hD=D((ZFe,dD)=>{var Fpe=_u(),Ppe=A0();function Npe(i,e){return Fpe(i,Ppe(i),e)}dD.exports=Npe});var Qy=D((QFe,fD)=>{var zpe=k0(),Bpe=of(),qpe=A0(),Hpe=Ly(),jpe=Object.getOwnPropertySymbols,Vpe=jpe?function(i){for(var e=[];i;)zpe(e,qpe(i)),i=Bpe(i);return e}:Hpe;fD.exports=Vpe});var mD=D((ePe,pD)=>{var Upe=_u(),Wpe=Qy();function Gpe(i,e){return Upe(i,Wpe(i),e)}pD.exports=Gpe});var ex=D((tPe,gD)=>{var Kpe=Oy(),Ype=Qy(),Xpe=yu();function Jpe(i){return Kpe(i,Xpe,Ype)}gD.exports=Jpe});var vD=D((iPe,bD)=>{var Zpe=Object.prototype,Qpe=Zpe.hasOwnProperty;function eme(i){var e=i.length,t=new i.constructor(e);return e&&typeof i[0]=="string"&&Qpe.call(i,"index")&&(t.index=i.index,t.input=i.input),t}bD.exports=eme});var B0=D((rPe,yD)=>{var _D=Ry();function tme(i){var e=new i.constructor(i.byteLength);return new _D(e).set(new _D(i)),e}yD.exports=tme});var wD=D((nPe,xD)=>{var ime=B0();function rme(i,e){var t=e?ime(i.buffer):i.buffer;return new i.constructor(t,i.byteOffset,i.byteLength)}xD.exports=rme});
vendor: 4,695 bytes, line 10
10var CD=D((sPe,SD)=>{var nme=/\w*$/;function sme(i){var e=new i.constructor(i.source,nme.exec(i));return e.lastIndex=i.lastIndex,e}SD.exports=sme});var kD=D((oPe,TD)=>{var ID=fu(),MD=ID?ID.prototype:void 0,ED=MD?MD.valueOf:void 0;function ome(i){return ED?Object(ED.call(i)):{}}TD.exports=ome});var tx=D((aPe,AD)=>{var ame=B0();function lme(i,e){var t=e?ame(i.buffer):i.buffer;return new i.constructor(t,i.byteOffset,i.length)}AD.exports=lme});var DD=D((lPe,RD)=>{var ume=B0(),cme=wD(),dme=CD(),hme=kD(),fme=tx(),pme="[object Boolean]",mme="[object Date]",gme="[object Map]",bme="[object Number]",vme="[object RegExp]",_me="[object Set]",yme="[object String]",xme="[object Symbol]",wme="[object ArrayBuffer]",Sme="[object DataView]",Cme="[object Float32Array]",Ime="[object Float64Array]",Mme="[object Int8Array]",Eme="[object Int16Array]",Tme="[object Int32Array]",kme="[object Uint8Array]",Ame="[object Uint8ClampedArray]",Rme="[object Uint16Array]",Dme="[object Uint32Array]";function Ome(i,e,t){var r=i.constructor;switch(e){case wme:return ume(i);case pme:case mme:return new r(+i);case Sme:return cme(i,t);case Cme:case Ime:case Mme:case Eme:case Tme:case kme:case Ame:case Rme:case Dme:return fme(i,t);case gme:return new r;case bme:case yme:return new r(i);case vme:return dme(i);case _me:return new r;case xme:return hme(i)}}RD.exports=Ome});var ix=D((uPe,LD)=>{var Lme=vi(),OD=Object.create,$me=function(){function i(){}return function(e){if(!Lme(e))return{};if(OD)return OD(e);i.prototype=e;var t=new i;return i.prototype=void 0,t}}();LD.exports=$me});var rx=D((cPe,$D)=>{var Fme=ix(),Pme=of(),Nme=_f();function zme(i){return typeof i.constructor=="function"&&!Nme(i)?Fme(Pme(i)):{}}$D.exports=zme});var PD=D((dPe,FD)=>{var Bme=Xc(),qme=wn(),Hme="[object Map]";function jme(i){return qme(i)&&Bme(i)==Hme}FD.exports=jme});var qD=D((hPe,BD)=>{var Vme=PD(),Ume=Ya(),ND=D0(),zD=ND&&ND.isMap,Wme=zD?Ume(zD):Vme;BD.exports=Wme});var jD=D((fPe,HD)=>{var Gme=Xc(),Kme=wn(),Yme="[object Set]";function Xme(i){return Kme(i)&&Gme(i)==Yme}HD.exports=Xme});var GD=D((pPe,WD)=>{var Jme=jD(),Zme=Ya(),VD=D0(),UD=VD&&VD.isSet,Qme=UD?Zme(UD):Jme;WD.exports=Qme});var nx=D((mPe,JD)=>{var e0e=hf(),t0e=P0(),i0e=z0(),r0e=ZR(),n0e=sD(),s0e=Zy(),o0e=wf(),a0e=hD(),l0e=mD(),u0e=zy(),c0e=ex(),d0e=Xc(),h0e=vD(),f0e=DD(),p0e=rx(),m0e=ki(),g0e=mu(),b0e=qD(),v0e=vi(),_0e=GD(),y0e=Kc(),x0e=yu(),w0e=1,S0e=2,C0e=4,KD="[object Arguments]",I0e="[object Array]",M0e="[object Boolean]",E0e="[object Date]",T0e="[object Error]",YD="[object Function]",k0e="[object GeneratorFunction]",A0e="[object Map]",R0e="[object Number]",XD="[object Object]",D0e="[object RegExp]",O0e="[object Set]",L0e="[object String]",$0e="[object Symbol]",F0e="[object WeakMap]",P0e="[object ArrayBuffer]",N0e="[object DataView]",z0e="[object Float32Array]",B0e="[object Float64Array]",q0e="[object Int8Array]",H0e="[object Int16Array]",j0e="[object Int32Array]",V0e="[object Uint8Array]",U0e="[object Uint8ClampedArray]",W0e="[object Uint16Array]",G0e="[object Uint32Array]",Lt={};Lt[KD]=Lt[I0e]=Lt[P0e]=Lt[N0e]=Lt[M0e]=Lt[E0e]=Lt[z0e]=Lt[B0e]=Lt[q0e]=Lt[H0e]=Lt[j0e]=Lt[A0e]=Lt[R0e]=Lt[XD]=Lt[D0e]=Lt[O0e]=Lt[L0e]=Lt[$0e]=Lt[V0e]=Lt[U0e]=Lt[W0e]=Lt[G0e]=!0;Lt[T0e]=Lt[YD]=Lt[F0e]=!1;function q0(i,e,t,r,n,s){var o,a=e&w0e,l=e&S0e,u=e&C0e;if(t&&(o=n?t(i,r,n,s):t(i)),o!==void 0)return o;if(!v0e(i))return i;var c=m0e(i);if(c){if(o=h0e(i),!a)return o0e(i,o)}else{var d=d0e(i),f=d==YD||d==k0e;if(g0e(i))return s0e(i,a);if(d==XD||d==KD||f&&!n){if(o=l||f?{}:p0e(i),!a)return l?l0e(i,n0e(o,i)):a0e(i,r0e(o,i))}else{if(!Lt[d])return n?i:{};o=f0e(i,d,a)}}s||(s=new e0e);var m=s.get(i);if(m)return m;s.set(i,o),_0e(i)?i.forEach(function(x){o.add(q0(x,e,t,x,i,s))}):b0e(i)&&i.forEach(function(x,M){o.set(M,q0(x,e,t,M,i,s))});var b=u?l?c0e:u0e:l?x0e:y0e,y=c?void 0:b(i);return t0e(y||i,function(x,M){y&&(M=x,x=i[M]),i0e(o,M,q0(x,e,t,M,i,s))}),o}JD.exports=q0});var sx=D((gPe,ZD)=>{function K0e(i){var e=i==null?0:i.length;return e?i[e-1]:void 0}ZD.exports=K0e});var eO=D((bPe,QD)=>{function Y0e(i,e,t){var r=-1,n=i.length;e<0&&(e=-e>n?0:n+e),t=t>n?n:t,t<0&&(t+=n),n=e>t?0:t-e>>>0,e>>>=0;for(var s=Array(n);++r<n;)s[r]=i[r+e];return s}QD.exports=Y0e});var iO=D((vPe,tO)=>{var X0e=Jc(),J0e=eO();function Z0e(i,e){return e.length<2?i:X0e(i,J0e(e,0,-1))}tO.exports=Z0e});var ox=D((_Pe,rO)=>{var Q0e=vu(),ege=sx(),tge=iO(),ige=Ja();function rge(i,e){return e=Q0e(e,i),i=tge(i,e),i==null||delete i[ige(ege(e))]}rO.exports=rge});var sO=D((yPe,nO)=>{var nge=Uo();function sge(i){return nge(i)?void 0:i}nO.exports=sge});var uO=D((xPe,lO)=>{var oO=fu(),oge=Vc(),age=ki(),aO=oO?oO.isConcatSpreadable:void 0;function lge(i){return age(i)||oge(i)||!!(aO&&i&&i[aO])}
10lO.exports=lge});var Sf=D((wPe,dO)=>{var uge=k0(),cge=uO();function cO(i,e,t,r,n){var s=-1,o=i.length;for(t||(t=cge),n||(n=[]);++s<o;){var a=i[s];e>0&&t(a)?e>1?cO(a,e-1,t,r,n):uge(n,a):r||(n[n.length]=a)}return n}dO.exports=cO});var H0=D((SPe,hO)=>{var dge=Sf();function hge(i){var e=i==null?0:i.length;return e?dge(i,1):[]}hO.exports=hge});var ax=D((CPe,fO)=>{function fge(i,e,t){switch(t.length){case 0:return i.call(e);case 1:return i.call(e,t[0]);case 2:return i.call(e,t[0],t[1]);case 3:return i.call(e,t[0],t[1],t[2])}return i.apply(e,t)}fO.exports=fge});var lx=D((IPe,mO)=>{var pge=ax(),pO=Math.max;function mge(i,e,t){return e=pO(e===void 0?i.length-1:e,0),function(){for(var r=arguments,n=-1,s=pO(r.length-e,0),o=Array(s);++n<s;)o[n]=r[e+n];n=-1;for(var a=Array(e+1);++n<e;)a[n]=r[n];return a[e]=t(o),pge(i,this,a)}}mO.exports=mge});var bO=D((MPe,gO)=>{function gge(i){return function(){return i}}gO.exports=gge});var ed=D((EPe,vO)=>{function bge(i){return i}vO.exports=bge});var xO=D((TPe,yO)=>{var vge=bO(),_O=Jy(),_ge=ed(),yge=_O?function(i,e){return _O(i,"toString",{configurable:!0,enumerable:!1,value:vge(e),writable:!0})}:_ge;yO.exports=yge});var SO=D((kPe,wO)=>{var xge=800,wge=16,Sge=Date.now;function Cge(i){var e=0,t=0;return function(){var r=Sge(),n=wge-(r-t);if(t=r,n>0){if(++e>=xge)return arguments[0]}else e=0;return i.apply(void 0,arguments)}}wO.exports=Cge});var ux=D((APe,CO)=>{var Ige=xO(),Mge=SO(),Ege=Mge(Ige);CO.exports=Ege});var cx=D((RPe,IO)=>{var Tge=H0(),kge=lx(),Age=ux();function Rge(i){return Age(kge(i,void 0,Tge),i+"")}IO.exports=Rge});var j0=D((DPe,MO)=>{var Dge=eo(),Oge=nx(),Lge=ox(),$ge=vu(),Fge=_u(),Pge=sO(),Nge=cx(),zge=ex(),Bge=1,qge=2,Hge=4,jge=Nge(function(i,e){var t={};if(i==null)return t;var r=!1;e=Dge(e,function(s){return s=$ge(s,i),r||(r=s.length>1),s}),Fge(i,zge(i),t),r&&(t=Oge(t,Bge|qge|Hge,Pge));for(var n=e.length;n--;)Lge(t,e[n]);return t});MO.exports=jge});var Vge,Uge,V0=w(()=>{Vge=z(VR()),Uge=z(j0());Pt()});var TO=D(($Pe,EO)=>{var Wge=Object.prototype,Gge=Wge.hasOwnProperty;function Kge(i,e){return i!=null&&Gge.call(i,e)}EO.exports=Kge});var dx=D((FPe,kO)=>{var Yge=vu(),Xge=Vc(),Jge=ki(),Zge=gf(),Qge=R0(),e1e=Ja();function t1e(i,e,t){e=Yge(e,i);for(var r=-1,n=e.length,s=!1;++r<n;){var o=e1e(e[r]);if(!(s=i!=null&&t(i,o)))break;i=i[o]}return s||++r!=n?s:(n=i==null?0:i.length,!!n&&Qge(n)&&Zge(o,n)&&(Jge(i)||Xge(i)))}kO.exports=t1e});var Cf=D((PPe,AO)=>{var i1e=TO(),r1e=dx();function n1e(i,e){return i!=null&&r1e(i,e,i1e)}AO.exports=n1e});var hx=D((NPe,RO)=>{var s1e=Qs(),o1e=wn(),a1e="[object Number]";function l1e(i){return typeof i=="number"||o1e(i)&&s1e(i)==a1e}RO.exports=l1e});var U0=D((zPe,DO)=>{var u1e=Qs(),c1e=ki(),d1e=wn(),h1e="[object String]";function f1e(i){return typeof i=="string"||!c1e(i)&&d1e(i)&&u1e(i)==h1e}DO.exports=f1e});var LO=D((BPe,OO)=>{function p1e(i,e,t,r){var n=-1,s=i==null?0:i.length;for(r&&s&&(t=i[++n]);++n<s;)t=e(t,i[n],n,i);return t}OO.exports=p1e});var FO=D((qPe,$O)=>{function m1e(i){return function(e,t,r){for(var n=-1,s=Object(e),o=r(e),a=o.length;a--;){var l=o[i?a:++n];if(t(s[l],l,s)===!1)break}return e}}$O.exports=m1e});var fx=D((HPe,PO)=>{var g1e=FO(),b1e=g1e();PO.exports=b1e});var px=D((jPe,NO)=>{var v1e=fx(),_1e=Kc();function y1e(i,e){return i&&v1e(i,e,_1e)}NO.exports=y1e});var BO=D((VPe,zO)=>{var x1e=Xa();function w1e(i,e){return function(t,r){if(t==null)return t;if(!x1e(t))return i(t,r);for(var n=t.length,s=e?n:-1,o=Object(t);(e?s--:++s<n)&&r(o[s],s,o)!==!1;);return t}}zO.exports=w1e});var W0=D((UPe,qO)=>{var S1e=px(),C1e=BO(),I1e=C1e(S1e);qO.exports=I1e});var jO=D((WPe,HO)=>{var M1e=hf(),E1e=yf(),T1e=1,k1e=2;function A1e(i,e,t,r){var n=t.length,s=n,o=!r;if(i==null)return!s;for(i=Object(i);n--;){var a=t[n];if(o&&a[2]?a[1]!==i[a[0]]:!(a[0]in i))return!1}for(;++n<s;){a=t[n];var l=a[0],u=i[l],c=a[1];if(o&&a[2]){if(u===void 0&&!(l in i))return!1}else{var d=new M1e;if(r)var f=r(u,c,l,i,e,d);if(!(f===void 0?E1e(c,u,T1e|k1e,r,d):f))return!1}}return!0}HO.exports=A1e});var mx=D((GPe,VO)=>{var R1e=vi();function D1e(i){return i===i&&!R1e(i)}VO.exports=D1e});var WO=D((KPe,UO)=>{var O1e=mx(),L1e=Kc();function $1e(i){for(var e=L1e(i),t=e.length;t--;){var r=e[t],n=i[r];e[t]=[r,n,O1e(n)]}return e}UO.exports=$1e});var gx=D((YPe,GO)=>{function F1e(i,e){return function(t){return t==null?!1:t[i]===e&&(e!==void 0||i in Object(t))}}GO.exports=F1e});var YO=D((XPe,KO)=>{var P1e=jO(),N1e=WO(),z1e=gx();function B1e(i){var e=N1e(i);return e.length==1&&e[0][2]?z1e(e[0][0],e[0][1]):function(t){return t===i||P1e(t,i,e)}}KO.exports=B1e});var JO=D((JPe,XO)=>{function q1e(i,e){return i!=null&&e in Object(i)}XO.exports=q1e});var bx=D((ZPe,ZO)=>{var H1e=JO(),j1e=dx();function V1e(i,e){return i!=null&&j1e(i,e,H1e)}ZO.exports=V1e});var eL=D((QPe,QO)=>
10{var U1e=yf(),W1e=Ai(),G1e=bx(),K1e=$0(),Y1e=mx(),X1e=gx(),J1e=Ja(),Z1e=1,Q1e=2;function ebe(i,e){return K1e(i)&&Y1e(e)?X1e(J1e(i),e):function(t){var r=W1e(t,i);return r===void 0&&r===e?G1e(t,i):U1e(e,r,Z1e|Q1e)}}QO.exports=ebe});var iL=D((eNe,tL)=>{function tbe(i){return function(e){return e?.[i]}}tL.exports=tbe});var nL=D((tNe,rL)=>{var ibe=Jc();function rbe(i){return function(e){return ibe(e,i)}}rL.exports=rbe});var oL=D((iNe,sL)=>{var nbe=iL(),sbe=nL(),obe=$0(),abe=Ja();function lbe(i){return obe(i)?nbe(abe(i)):sbe(i)}sL.exports=lbe});var G0=D((rNe,aL)=>{var ube=YO(),cbe=eL(),dbe=ed(),hbe=ki(),fbe=oL();function pbe(i){return typeof i=="function"?i:i==null?dbe:typeof i=="object"?hbe(i)?cbe(i[0],i[1]):ube(i):fbe(i)}aL.exports=pbe});var uL=D((nNe,lL)=>{function mbe(i,e,t,r,n){return n(i,function(s,o,a){t=r?(r=!1,s):e(t,s,o,a)}),t}lL.exports=mbe});var dL=D((sNe,cL)=>{var gbe=LO(),bbe=W0(),vbe=G0(),_be=uL(),ybe=ki();function xbe(i,e,t){var r=ybe(i)?gbe:_be,n=arguments.length<3;return r(i,vbe(e,4),t,n,bbe)}cL.exports=xbe});var vx=D((oNe,hL)=>{var wbe=ed();function Sbe(i){return typeof i=="function"?i:wbe}hL.exports=Sbe});var pL=D((aNe,fL)=>{var Cbe=/\s/;function Ibe(i){for(var e=i.length;e--&&Cbe.test(i.charAt(e)););return e}fL.exports=Ibe});var gL=D((lNe,mL)=>{var Mbe=pL(),Ebe=/^\s+/;function Tbe(i){return i&&i.slice(0,Mbe(i)+1).replace(Ebe,"")}mL.exports=Tbe});var yL=D((uNe,_L)=>{var kbe=gL(),bL=vi(),Abe=bu(),vL=0/0,Rbe=/^[-+]0x[0-9a-f]+$/i,Dbe=/^0b[01]+$/i,Obe=/^0o[0-7]+$/i,Lbe=parseInt;function $be(i){if(typeof i=="number")return i;if(Abe(i))return vL;if(bL(i)){var e=typeof i.valueOf=="function"?i.valueOf():i;i=bL(e)?e+"":e}if(typeof i!="string")return i===0?i:+i;i=kbe(i);var t=Dbe.test(i);return t||Obe.test(i)?Lbe(i.slice(2),t?2:8):Rbe.test(i)?vL:+i}_L.exports=$be});var SL=D((cNe,wL)=>{var Fbe=yL(),xL=1/0,Pbe=17976931348623157e292;function Nbe(i){if(!i)return i===0?i:0;if(i=Fbe(i),i===xL||i===-xL){var e=i<0?-1:1;return e*Pbe}return i===i?i:0}wL.exports=Nbe});var IL=D((dNe,CL)=>{var zbe=SL();function Bbe(i){var e=zbe(i),t=e%1;return e===e?t?e-t:e:0}CL.exports=Bbe});var yx=D((hNe,ML)=>{var qbe=$y(),Hbe=vx(),jbe=IL(),Vbe=9007199254740991,_x=4294967295,Ube=Math.min;function Wbe(i,e){if(i=jbe(i),i<1||i>Vbe)return[];var t=_x,r=Ube(i,_x);e=Hbe(e),i-=_x;for(var n=qbe(r,e);++t<i;)e(t);return n}ML.exports=Wbe});var Gbe,K0=w(()=>{Gbe=z(Ai());Pt()});var Kbe,Ybe,Xbe,xx=w(()=>{Kbe=z(Ai()),Ybe=z(Cf()),Xbe=z(hx());Pt();K0()});var Y0=w(()=>{xx()});var to=D((yNe,kL)=>{var Jbe=yf();function Zbe(i,e){return Jbe(i,e)}kL.exports=Zbe});var wx=D((xNe,RL)=>{var Qbe=z0(),eve=vu(),tve=gf(),AL=vi(),ive=Ja();function rve(i,e,t,r){if(!AL(i))return i;e=eve(e,i);for(var n=-1,s=e.length,o=s-1,a=i;a!=null&&++n<s;){var l=ive(e[n]),u=t;if(l==="__proto__"||l==="constructor"||l==="prototype")return i;if(n!=o){var c=a[l];u=r?r(c,l,a):void 0,u===void 0&&(u=AL(c)?c:tve(e[n+1])?[]:{})}Qbe(a,l,u),a=a[l]}return i}RL.exports=rve});var xu=D((wNe,DL)=>{var nve=wx();function sve(i,e,t){return i==null?i:nve(i,e,t)}DL.exports=sve});var LL=D((SNe,OL)=>{var ove=P0(),ave=ix(),lve=px(),uve=G0(),cve=of(),dve=ki(),hve=mu(),fve=uf(),pve=vi(),mve=Gc();function gve(i,e,t){var r=dve(i),n=r||hve(i)||mve(i);if(e=uve(e,4),t==null){var s=i&&i.constructor;n?t=r?new s:[]:pve(i)?t=fve(s)?ave(cve(i)):{}:t={}}return(n?ove:lve)(i,function(o,a,l){return e(t,o,a,l)}),t}OL.exports=gve});var Sx=D((CNe,$L)=>{var bve=N0(),vve=pu();function _ve(i,e,t){(t!==void 0&&!vve(i[e],t)||t===void 0&&!(e in i))&&bve(i,e,t)}$L.exports=_ve});var If=D((INe,FL)=>{var yve=Xa(),xve=wn();function wve(i){return xve(i)&&yve(i)}FL.exports=wve});var Cx=D((MNe,PL)=>{function Sve(i,e){if(!(e==="constructor"&&typeof i[e]=="function")&&e!="__proto__")return i[e]}PL.exports=Sve});var zL=D((ENe,NL)=>{var Cve=_u(),Ive=yu();function Mve(i){return Cve(i,Ive(i))}NL.exports=Mve});var UL=D((TNe,VL)=>{var BL=Sx(),Eve=Zy(),Tve=tx(),kve=wf(),Ave=rx(),qL=Vc(),HL=ki(),Rve=If(),Dve=mu(),Ove=uf(),Lve=vi(),$ve=Uo(),Fve=Gc(),jL=Cx(),Pve=zL();function Nve(i,e,t,r,n,s,o){var a=jL(i,t),l=jL(e,t),u=o.get(l);if(u){BL(i,t,u);return}var c=s?s(a,l,t+"",i,e,o):void 0,d=c===void 0;if(d){var f=HL(l),m=!f&&Dve(l),b=!f&&!m&&Fve(l);c=l,f||m||b?HL(a)?c=a:Rve(a)?c=kve(a):m?(d=!1,c=Eve(l,!0)):b?(d=!1,c=Tve(l,!0)):c=[]:$ve(l)||qL(l)?(c=a,qL(a)?c=Pve(a):(!Lve(a)||Ove(a))&&(c=Ave(l))):d=!1}d&&(o.set(l,c),n(c,l,r,s,o),o.delete(l)),BL(i,t,c)}VL.exports=Nve});var X0=D((kNe,GL)=>{var zve=hf(),Bve=Sx(),qve=fx(),Hve=UL(),jve=vi(),Vve=yu(),Uve=Cx();function WL(i,e,t,r,n){i!==e&&qve(e,function(s,o){if(n||(n=new zve),jve(s))Hve(i,e,o,t,WL,r,n);else{var a=r?r(Uve(i,o),s,o+"",i,e,n):void 0;a===void 0&&(a=s),Bve(i,o,a)}},Vve)}GL.exports=WL});var Wo=D((ANe,KL)=>{var Wve=ed(),Gve=lx(),Kve=ux();function Yve(i,e){return Kve(Gve(i,e,Wve),i+"")}KL.exports=Yve});var J0=D((RNe,YL)=>{var Xve=pu(),Jve=Xa(),Zve=gf(),Qve=vi();function e_e(i,e,t){if(!Qve(t))return!1;var r=typeof e;return(r=="number"?Jve(t)&&Zve(e,t.length):r=="string"&&e in t)?Xve(t[e],i):!1}YL.exports=e_e});var Ix=D((DNe,XL)=>{var t_e=Wo(),i_e=J0();function r_e(i){return t_e(function(e,t){var r=-1,n=t.length,s=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(s=i.length>3&&typeof s=="function"?(n--,s):void 0,o&&i_e(t[0],t[1],o)&&(s=n<3?void 0:s,n=1),e=Object(e);++r<n;){var a=t[r];a&&i(e,a,r,s)}return e})}XL.exports=r_e});var ZL=D((ONe,JL)=>{var n_e=X0(),s_e=Ix(),o_e=s_e(function(i,e,t){n_e(i,e,t)});JL.exports=o_e});var Z0=D((LNe,QL)=>{var a_e=Sf(),l_e=1/0;function u_e(i){var e=i==null?0:i.length;return e?a_e(i,l_e):[]}QL.exports=u_e});var t$=D(($Ne,e$)=>{function c_e(i,e,t,r){for(var n=i.length,s=t+(r?1:-1);r?s--:++s<n;)if(e(i[s],s,i))return s;return-1}e$.exports=c_e});var r$=D((FNe,i$)=>
10{function d_e(i){return i!==i}i$.exports=d_e});var s$=D((PNe,n$)=>{function h_e(i,e,t){for(var r=t-1,n=i.length;++r<n;)if(i[r]===e)return r;return-1}n$.exports=h_e});var Mx=D((NNe,o$)=>{var f_e=t$(),p_e=r$(),m_e=s$();function g_e(i,e,t){return e===e?m_e(i,e,t):f_e(i,p_e,t)}o$.exports=g_e});var Q0=D((zNe,a$)=>{var b_e=Mx();function v_e(i,e){var t=i==null?0:i.length;return!!t&&b_e(i,e,0)>-1}a$.exports=v_e});var eg=D((BNe,l$)=>{function __e(i,e,t){for(var r=-1,n=i==null?0:i.length;++r<n;)if(t(e,i[r]))return!0;return!1}l$.exports=__e});var c$=D((qNe,u$)=>{function y_e(){}u$.exports=y_e});var h$=D((HNe,d$)=>{var Ex=By(),x_e=c$(),w_e=T0(),S_e=1/0,C_e=Ex&&1/w_e(new Ex([,-0]))[1]==S_e?function(i){return new Ex(i)}:x_e;d$.exports=C_e});var tg=D((jNe,f$)=>{var I_e=ff(),M_e=Q0(),E_e=eg(),T_e=pf(),k_e=h$(),A_e=T0(),R_e=200;function D_e(i,e,t){var r=-1,n=M_e,s=i.length,o=!0,a=[],l=a;if(t)o=!1,n=E_e;else if(s>=R_e){var u=e?null:k_e(i);if(u)return A_e(u);o=!1,n=T_e,l=new I_e}else l=e?[]:a;e:for(;++r<s;){var c=i[r],d=e?e(c):c;if(c=t||c!==0?c:0,o&&d===d){for(var f=l.length;f--;)if(l[f]===d)continue e;e&&l.push(d),a.push(c)}else n(l,d,t)||(l!==a&&l.push(d),a.push(c))}return a}f$.exports=D_e});var Mf=D((VNe,p$)=>{var O_e=tg();function L_e(i){return i&&i.length?O_e(i):[]}p$.exports=L_e});var ig=D((UNe,m$)=>{var $_e=nx(),F_e=1,P_e=4;function N_e(i){return $_e(i,F_e|P_e)}m$.exports=N_e});var b$=D((WNe,g$)=>{var z_e=W0(),B_e=Xa();function q_e(i,e){var t=-1,r=B_e(i)?Array(i.length):[];return z_e(i,function(n,s,o){r[++t]=e(n,s,o)}),r}g$.exports=q_e});var _$=D((GNe,v$)=>{function H_e(i,e){var t=i.length;for(i.sort(e);t--;)i[t]=i[t].value;return i}v$.exports=H_e});var w$=D((KNe,x$)=>{var y$=bu();function j_e(i,e){if(i!==e){var t=i!==void 0,r=i===null,n=i===i,s=y$(i),o=e!==void 0,a=e===null,l=e===e,u=y$(e);if(!a&&!u&&!s&&i>e||s&&o&&l&&!a&&!u||r&&o&&l||!t&&l||!n)return 1;if(!r&&!s&&!u&&i<e||u&&t&&n&&!r&&!s||a&&t&&n||!o&&n||!l)return-1}return 0}x$.exports=j_e});var C$=D((YNe,S$)=>{var V_e=w$();function U_e(i,e,t){for(var r=-1,n=i.criteria,s=e.criteria,o=n.length,a=t.length;++r<o;){var l=V_e(n[r],s[r]);if(l){if(r>=a)return l;var u=t[r];return l*(u=="desc"?-1:1)}}return i.index-e.index}S$.exports=U_e});var M$=D((XNe,I$)=>{var Tx=eo(),W_e=Jc(),G_e=G0(),K_e=b$(),Y_e=_$(),X_e=Ya(),J_e=C$(),Z_e=ed(),Q_e=ki();function eye(i,e,t){e.length?e=Tx(e,function(s){return Q_e(s)?function(o){return W_e(o,s.length===1?s[0]:s)}:s}):e=[Z_e];var r=-1;e=Tx(e,X_e(G_e));var n=K_e(i,function(s,o,a){var l=Tx(e,function(u){return u(s)});return{criteria:l,index:++r,value:s}});return Y_e(n,function(s,o){return J_e(s,o,t)})}I$.exports=eye});var kx=D((JNe,T$)=>{var tye=Sf(),iye=M$(),rye=Wo(),E$=J0(),nye=rye(function(i,e){if(i==null)return[];var t=e.length;return t>1&&E$(i,e[0],e[1])?e=[]:t>2&&E$(e[0],e[1],e[2])&&(e=[e[0]]),iye(i,tye(e,1),[])});T$.exports=nye});var rg=D((ZNe,k$)=>{var sye=tg();function oye(i,e){return e=typeof e=="function"?e:void 0,i&&i.length?sye(i,void 0,e):[]}k$.exports=oye});var D$=D((QNe,R$)=>{var aye=Wo(),lye=pu(),uye=J0(),cye=yu(),A$=Object.prototype,dye=A$.hasOwnProperty,hye=aye(function(i,e){i=Object(i);var t=-1,r=e.length,n=r>2?e[2]:void 0;for(n&&uye(e[0],e[1],n)&&(r=1);++t<r;)for(var s=e[t],o=cye(s),a=-1,l=o.length;++a<l;){var u=o[a],c=i[u];(c===void 0||lye(c,A$[u])&&!dye.call(i,u))&&(i[u]=s[u])}return i});R$.exports=hye});var Ax=D((eze,L$)=>{var fye=ff(),pye=Q0(),mye=eg(),gye=eo(),bye=Ya(),O$=pf(),vye=Math.min;function _ye(i,e,t){for(var r=t?mye:pye,n=i[0].length,s=i.length,o=s,a=Array(s),l=1/0,u=[];o--;){var c=i[o];o&&e&&(c=gye(c,bye(e))),l=vye(c.length,l),a[o]=!t&&(e||n>=120&&c.length>=120)?new fye(o&&c):void 0}c=i[0];var d=-1,f=a[0];e:for(;++d<n&&u.length<l;){var m=c[d],b=e?e(m):m;if(m=t||m!==0?m:0,!(f?O$(f,b):r(u,b,t))){for(o=s;--o;){var y=a[o];if(!(y?O$(y,b):r(i[o],b,t)))continue e}f&&f.push(b),u.push(m)}}return u}L$.exports=_ye});var Rx=D((tze,$$)=>{var yye=If();function xye(i){return yye(i)?i:[]}$$.exports=xye});var Dx=D((ize,F$)=>{var wye=eo(),Sye=Ax(),Cye=Wo(),Iye=Rx(),Mye=sx(),Eye=Cye(function(i){var e=Mye(i),t=wye(i,Iye);return e=typeof e=="function"?e:void 0,e&&t.pop(),t.length&&t[0]===i[0]?Sye(t,void 0,e):[]});F$.exports=Eye});var N$=D((rze,P$)=>{var Tye=Qs(),kye=wn(),Aye="[object Boolean]";function Rye(i){return i===!0||i===!1||kye(i)&&Tye(i)==Aye}P$.exports=Rye});var lg=D((nze,U$)=>{var _s=to(),Dye=kx(),Px=Mf(),z$=rg(),Oye=D$(),Lye=Dx(),ag=Uo(),Ox=N$(),B$=i=>Array.isArray(i)?i:[i],Hn=i=>i===void 0,ng=i=>ag(i)||Array.isArray(i)?Object.keys(i):[],td=(i,e)=>i.hasOwnProperty(e),id=i=>Dye(Px(i)),q$=i=>Hn(i)||Array.isArray(i)&&i.length===0,$ye=(i,e,t,r)=>e&&td(e,t)&&i&&td(i,t)&&r(i[t],e[t]),Lx=(i,e)=>Hn(i)&&e===0||Hn(e)&&i===0||_s(i,e),Fye=(i,e)=>Hn(i)&&e===!1||Hn(e)&&i===!1||_s(i,e),H$=i=>Hn(i)||_s(i,{})||i===!0,sg=i=>Hn(i)||_s(i,{}),j$=i=>Hn(i)||ag(i)||i===!0||i===!1;function V$(i,e){return q$(i)&&q$(e)?!0:_s(id(i),id(e))}function Pye(i,e){return i=B$(i),e=B$(e),_s(id(i),id(e))}function og(i,e,t,r){var n=Px(ng(i).concat(ng(e)));return sg(i)&&sg(e)?!0:sg(i)&&ng(e).length||sg(e)&&ng(i).length?!1:n.every(function(s){var o=i[s],a=e[s];return Array.isArray(o)&&Array.isArray(a)?_s(id(i),id(e)):Array.isArray(o)&&!Array.isArray(a)||Array.isArray(a)&&!Array.isArray(o)?!1:$ye(i,e,s,r)})}function Nye(i,e,t,r){return ag(i)&&ag(e)?r(i,e):Array.isArray(i)&&Array.isArray(e)?og(i,e,t,r):_s(i,e)}function $x(i,e,t,r){var n=z$(i,r),s=z$(e,r),o=Lye(n,s,r);return o.length===Math.max(n.length,s.length)}var zye={title:_s,uniqueItems:Fye,minLength:Lx,minItems:Lx,minProperties:Lx,required:V$,enum:V$,type:Pye,items:Nye,anyOf:$x,allOf:$x,oneOf:$x,properties:og,patternProperties:og,dependencies:og},Bye=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],qye=["additionalProperties","additionalItems","contains","propertyNames","not"];function Fx(i,e,t){if(t=Oye(t,{ignore:[]}),H$(i)&&H$(e))return!0;
10if(!j$(i)||!j$(e))throw new Error("Either of the values are not a JSON schema.");if(i===e)return!0;if(Ox(i)&&Ox(e))return i===e;if(i===void 0&&e===!1||e===void 0&&i===!1||Hn(i)&&!Hn(e)||!Hn(i)&&Hn(e))return!1;var r=Px(Object.keys(i).concat(Object.keys(e)));if(t.ignore.length&&(r=r.filter(s=>t.ignore.indexOf(s)===-1)),!r.length)return!0;function n(s,o){return Fx(s,o,t)}return r.every(function(s){var o=i[s],a=e[s];if(qye.indexOf(s)!==-1)return Fx(o,a,t);var l=zye[s];if(l||(l=_s),_s(o,a))return!0;if(Bye.indexOf(s)===-1&&(!td(i,s)&&td(e,s)||td(i,s)&&!td(e,s)))return o===a;var u=l(o,a,s,n);if(!Ox(u))throw new Error("Comparer must return true or false");return u})}U$.exports=Fx});var ug=D((sze,W$)=>{"use strict";function Hye(i){return Object.prototype.toString.call(i)==="[object Array]"}W$.exports=Array.isArray||Hye});var K$=D((oze,G$)=>{"use strict";function jye(i){return(typeof i=="number"||Object.prototype.toString.call(i)==="[object Number]")&&i.valueOf()===i.valueOf()}G$.exports=jye});var X$=D((aze,Y$)=>{"use strict";var Vye=K$();function Uye(i){return Vye(i)&&i%1===0}Y$.exports=Uye});var Nx=D((lze,J$)=>{"use strict";var Wye=ug(),Gye=X$();function Kye(i){var e;if(!Wye(i)||(e=i.length,!e))return!1;for(var t=0;t<e;t++)if(!Gye(i[t]))return!1;return!0}J$.exports=Kye});var zx=D((uze,Z$)=>{"use strict";function Yye(i){return typeof i=="function"}Z$.exports=Yye});var rF=D((cze,iF)=>{"use strict";var Xye=ug(),Q$=Nx(),Jye=zx(),cg=Math.pow(2,31)-1;function eF(i,e){var t=1,r;if(i===0)return e;if(e===0)return i;for(;i%2===0&&e%2===0;)i=i/2,e=e/2,t=t*2;for(;i%2===0;)i=i/2;for(;e;){for(;e%2===0;)e=e/2;i>e&&(r=e,e=i,i=r),e=e-i}return t*i}function tF(i,e){var t=0,r;if(i===0)return e;if(e===0)return i;for(;!(i&1)&&!(e&1);)i>>>=1,e>>>=1,t++;for(;!(i&1);)i>>>=1;for(;e;){for(;!(e&1);)e>>>=1;i>e&&(r=e,e=i,i=r),e=e-i}return i<<t}function Zye(){var i=arguments.length,e,t,r,n,s,o,a;for(e=new Array(i),a=0;a<i;a++)e[a]=arguments[a];if(Q$(e)){if(i===2)return s=e[0],o=e[1],s<0&&(s=-s),o<0&&(o=-o),s<=cg&&o<=cg?tF(s,o):eF(s,o);r=e}else if(Xye(e[0]))if(i>1){if(r=e[0],t=e[1],!Jye(t))throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else r=e[0];else throw new TypeError("gcd()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(n=r.length,n<2)return null;if(t){for(s=new Array(n),a=0;a<n;a++)s[a]=t(r[a],a);r=s}if(i<3&&!Q$(r))throw new TypeError("gcd()::invalid input argument. Accessed array values must be integers. Value: `"+r+"`.");for(a=0;a<n;a++)s=r[a],s<0&&(r[a]=-s);for(s=r[0],a=1;a<n;a++)o=r[a],o<=cg&&s<=cg?s=tF(s,o):s=eF(s,o);return s}iF.exports=Zye});var aF=D((dze,oF)=>{"use strict";var nF=rF(),Qye=ug(),sF=Nx(),exe=zx();function txe(){var i=arguments.length,e,t,r,n,s,o,a;for(e=new Array(i),a=0;a<i;a++)e[a]=arguments[a];if(sF(e)){if(i===2)return s=e[0],o=e[1],s<0&&(s=-s),o<0&&(o=-o),s===0||o===0?0:s/nF(s,o)*o;r=e}else if(Qye(e[0]))if(i>1){if(r=e[0],t=e[1],!exe(t))throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}else r=e[0];else throw new TypeError("lcm()::invalid input argument. Must provide an array of integers. Value: `"+e[0]+"`.");if(n=r.length,n<2)return null;if(t){for(s=new Array(n),a=0;a<n;a++)s[a]=t(r[a],a);r=s}if(i<3&&!sF(r))throw new TypeError("lcm()::invalid input argument. Accessed array values must be integers. Value: `"+r+"`.");for(a=0;a<n;a++)s=r[a],s<0&&(r[a]=-s);for(s=r[0],a=1;a<n;a++){if(o=r[a],s===0||o===0)return 0;s=s/nF(s,o)*o}return s}oF.exports=txe});var dF=D((hze,cF)=>{var ixe=X0(),lF=vi();function uF(i,e,t,r,n,s){return lF(i)&&lF(e)&&(s.set(e,i),ixe(i,e,void 0,uF,s),s.delete(e)),i}cF.exports=uF});var fF=D((fze,hF)=>{var rxe=X0(),nxe=Ix(),sxe=nxe(function(i,e,t,r){rxe(i,e,t,r)});hF.exports=sxe});var mF=D((pze,pF)=>{var oxe=ax(),axe=Wo(),lxe=dF(),uxe=fF(),cxe=axe(function(i){return i.push(void 0,lxe),oxe(uxe,void 0,i)});pF.exports=cxe});var bF=D((mze,gF)=>{var dxe=eo(),hxe=Ax(),fxe=Wo(),pxe=Rx(),mxe=fxe(function(i){var e=dxe(i,pxe);return e.length&&e[0]===i[0]?hxe(e):[]});gF.exports=mxe});var _F=D((gze,vF)=>{function gxe(i,e,t,r){for(var n=t-1,s=i.length;++n<s;)if(r(i[n],e))return n;return-1}vF.exports=gxe});var wF=D((bze,xF)=>{var bxe=eo(),vxe=Mx(),_xe=_F(),yxe=Ya(),xxe=wf(),wxe=Array.prototype,yF=wxe.splice;function Sxe(i,e,t,r){var n=r?_xe:vxe,s=-1,o=e.length,a=i;for(i===e&&(e=xxe(e)),t&&(a=bxe(i,yxe(t)));++s<o;)for(var l=0,u=e[s],c=t?t(u):u;(l=n(a,c,l,r))>-1;)a!==i&&yF.call(a,l,1),yF.call(i,l,1);return i}xF.exports=Sxe});var CF=D((vze,SF)=>{var Cxe=wF();function Ixe(i,e){return i&&i.length&&e&&e.length?Cxe(i,e):i}SF.exports=Ixe});
10var Ef=D((_ze,IF)=>{var Mxe=P0(),Exe=W0(),Txe=vx(),kxe=ki();function Axe(i,e){var t=kxe(i)?Mxe:Exe;return t(i,Txe(e))}IF.exports=Axe});var EF=D((yze,MF)=>{var Rxe=ff(),Dxe=Q0(),Oxe=eg(),Lxe=eo(),$xe=Ya(),Fxe=pf(),Pxe=200;function Nxe(i,e,t,r){var n=-1,s=Dxe,o=!0,a=i.length,l=[],u=e.length;if(!a)return l;t&&(e=Lxe(e,$xe(t))),r?(s=Oxe,o=!1):e.length>=Pxe&&(s=Fxe,o=!1,e=new Rxe(e));e:for(;++n<a;){var c=i[n],d=t==null?c:t(c);if(c=r||c!==0?c:0,o&&d===d){for(var f=u;f--;)if(e[f]===d)continue e;l.push(c)}else s(e,d,r)||l.push(c)}return l}MF.exports=Nxe});var kF=D((xze,TF)=>{var zxe=EF(),Bxe=Wo(),qxe=If(),Hxe=Bxe(function(i,e){return qxe(i)?zxe(i,e):[]});TF.exports=Hxe});var qx=D((wze,OF)=>{var jxe=H0(),Vxe=Z0(),AF=Uo(),Uxe=Mf(),Wxe=rg(),Gxe=kF();function Kxe(i){for(let e in i)RF(i,e)&&DF(i[e])&&delete i[e];return i}var Yxe=i=>Uxe(Vxe(i.map(Bx))),Xxe=(i,e)=>i.map(t=>t&&t[e]),RF=(i,e)=>Object.prototype.hasOwnProperty.call(i,e),Bx=i=>AF(i)||Array.isArray(i)?Object.keys(i):[],Jxe=i=>i!==void 0,Zxe=i=>AF(i)||i===!0||i===!1,DF=i=>!Bx(i).length&&i!==!1&&i!==!0,Qxe=(i,...e)=>Gxe.apply(null,[i].concat(jxe(e)));OF.exports={allUniqueKeys:Yxe,deleteUndefinedProps:Kxe,getValues:Xxe,has:RF,isEmptySchema:DF,isSchema:Zxe,keys:Bx,notUndefined:Jxe,uniqWith:Wxe,withoutArr:Qxe}});var PF=D((Sze,FF)=>{var e2e=lg(),t2e=Ef(),{allUniqueKeys:i2e,deleteUndefinedProps:r2e,getValues:n2e,keys:Tf,notUndefined:s2e,uniqWith:o2e,withoutArr:LF}=qx();function a2e(i){t2e(i,function(e,t){e===!1&&delete i[t]})}function $F(i,e){return i2e(i).reduce(function(r,n){let s=n2e(i,n),o=o2e(s.filter(s2e),e2e);return r[n]=e(o,n),r},{})}FF.exports={keywords:["properties","patternProperties","additionalProperties"],resolver(i,e,t,r){r.ignoreAdditionalProperties||(i.forEach(function(s){let o=i.filter(c=>c!==s),a=Tf(s.properties),u=Tf(s.patternProperties).map(c=>new RegExp(c));o.forEach(function(c){let d=Tf(c.properties),f=d.filter(b=>u.some(y=>y.test(b)));LF(d,a,f).forEach(function(b){c.properties[b]=t.properties([c.properties[b],s.additionalProperties],b)})})}
10),i.forEach(function(s){let o=i.filter(l=>l!==s),a=Tf(s.patternProperties);s.additionalProperties===!1&&o.forEach(function(l){let u=Tf(l.patternProperties);LF(u,a).forEach(d=>delete l.patternProperties[d])})}));let n={additionalProperties:t.additionalProperties(i.map(s=>s.additionalProperties)),patternProperties:$F(i.map(s=>s.patternProperties),t.patternProperties),properties:$F(i.map(s=>s.properties),t.properties)};return n.additionalProperties===!1&&a2e(n.properties),r2e(n)}}});var qF=D((Cze,BF)=>{var l2e=lg(),u2e=Ef(),{allUniqueKeys:c2e,deleteUndefinedProps:d2e,has:h2e,isSchema:NF,notUndefined:zF,uniqWith:f2e}=qx();function p2e(i){u2e(i,function(e,t){e===!1&&i.splice(t,1)})}function m2e(i,e){return i.map(function(t){if(t)if(Array.isArray(t.items)){let r=t.items[e];if(NF(r))return r;if(h2e(t,"additionalItems"))return t.additionalItems}else return t.items})}function g2e(i){return i.map(function(e){if(e)return Array.isArray(e.items)?e.additionalItems:e.items})}function b2e(i,e,t){return c2e(t).reduce(function(n,s){let o=m2e(i,s),a=f2e(o.filter(zF),l2e);return n[s]=e(a,s),n},[])}BF.exports={keywords:["items","additionalItems"],resolver(i,e,t){let r=i.map(a=>a.items),n=r.filter(zF),s={};n.every(NF)?s.items=t.items(r):s.items=b2e(i,t.items,r);let o;return n.every(Array.isArray)?o=i.map(a=>a.additionalItems):n.some(Array.isArray)&&(o=g2e(i)),o&&(s.additionalItems=t.additionalItems(o)),s.additionalItems===!1&&Array.isArray(s.items)&&p2e(s.items),d2e(s)}}});var eP=D((Ize,QF)=>{var HF=ig(),hg=lg(),v2e=aF(),_2e=mF(),jF=H0(),Vx=Z0(),y2e=bF(),x2e=Dx(),Hx=to(),nd=Uo(),w2e=CF(),VF=kx(),Ux=Mf(),rd=rg(),UF=PF(),WF=qF(),dg=(i,e)=>i.indexOf(e)!==-1,S2e=i=>nd(i)||i===!0||i===!1,C2e=i=>i===!1,GF=i=>i===!0,pg=(i,e,t)=>t(i),KF=i=>VF(Ux(Vx(i))),fg=i=>i!==void 0,YF=i=>Ux(Vx(i.map(A2e))),sd=i=>i[0],I2e=i=>KF(i),kf=i=>Math.max.apply(Math,i),Af=i=>Math.min.apply(Math,i),M2e=i=>i.some(GF),E2e=i=>rd(jF(i),Hx);function T2e(i){return function(e,t){return hg({[i]:e},{[i]:t})}}function XF(i){let{allOf:e=[],...t}=i;return t=nd(i)?t:i,[t,...e.map(XF)]}function JF(i,e){return i.map(t=>t&&t[e])}function k2e(i,e){return i.map(function(t,r){try{return e(t,r)}catch{return}}).filter(fg)}function A2e(i){return nd(i)||Array.isArray(i)?Object.keys(i):[]}function jx(i,e){if(e=e||[],!i.length)return e;let t=i.slice(0).shift(),r=i.slice(1);return e.length?jx(r,jF(e.map(n=>t.map(s=>[s].concat(n))))):jx(r,t.map(n=>n))}function ZF(i,e){let t;try{t=i.map(function(r){return JSON.stringify(r,null,2)}).join(` 11`)}catch{t=i.join(", ")}throw new Error('Could not resolve values for path:"'+e.join(".")+`". They are probably incompatible. Values: 12`+t)}function R2e(i,e,t,r,n,s){if(i.length){let o=n.complexResolvers[e];if(!o||!o.resolver)throw new Error("No resolver found for "+e);let a=t.map(d=>i.reduce((f,m)=>(d[m]!==void 0&&(f[m]=d[m]),f),{})),l=rd(a,hg),u=o.keywords.reduce((d,f)=>({...d,[f]:(m,b=[])=>r(m,null,s.concat(f,b))}),{}),c=o.resolver(l,s.concat(e),u,n);return nd(c)||ZF(l,s.concat(e)),c}}function D2e(i){return{required:i}}var O2e=["properties","patternProperties","definitions","dependencies"],L2e=["anyOf","oneOf"],$2e=["additionalProperties","additionalItems","contains","propertyNames","not","items"],mt={type(i){if(i.some(Array.isArray)){let e=i.map(function(r){return Array.isArray(r)?r:[r]}),t=y2e.apply(null,e);if(t.length===1)return t[0];if(t.length>1)return Ux(t)}},dependencies(i,e,t){return YF(i).reduce(function(n,s){let o=JF(i,s),a=rd(o.filter(fg),Hx),l=a.filter(Array.isArray);if(l.length){if(l.length===a.length)n[s]=KF(a);else{let u=a.filter(S2e),c=l.map(D2e);n[s]=t(u.concat(c),s)}return n}return a=rd(a,hg),n[s]=t(a,s),n},{})},oneOf(i,e,t){let r=jx(HF(i)),n=k2e(r,t),s=rd(n,hg);if(s.length)return s},not(i){return{anyOf:i}},pattern(i){return i.map(e=>"(?="+e+")").join("")},multipleOf(i){let e=i.slice(0),t=1;for(;e.some(r=>!Number.isInteger(r));)e=e.map(r=>r*10),t=t*10;return v2e(e)/t},enum(i){let e=x2e.apply(null,i.concat(Hx));if(e.length)return VF(e)}};mt.$id=sd;mt.$ref=sd;mt.$schema=sd;mt.additionalItems=pg;mt.additionalProperties=pg;mt.anyOf=mt.oneOf;mt.contains=pg;mt.default=sd;mt.definitions=mt.dependencies;mt.description=sd;mt.examples=E2e;mt.exclusiveMaximum=Af;mt.exclusiveMinimum=kf;mt.items=WF;mt.maximum=Af;mt.maxItems=Af;mt.maxLength=Af;
12mt.maxProperties=Af;mt.minimum=kf;mt.minItems=kf;mt.minLength=kf;mt.minProperties=kf;mt.properties=UF;mt.propertyNames=pg;mt.required=I2e;mt.title=sd;mt.uniqueItems=M2e;var F2e={properties:UF,items:WF};function Wx(i,e,t){t=t||[],e=_2e(e,{ignoreAdditionalProperties:!1,resolvers:mt,complexResolvers:F2e,deep:!0});let r=Object.entries(e.complexResolvers);function n(a,l,u){a=HF(a.filter(fg)),u=u||[];let c=nd(l)?l:{};if(!a.length)return;if(a.some(C2e))return!1;if(a.every(GF))return!0;a=a.filter(nd);let d=YF(a);if(e.deep&&dg(d,"allOf"))return Wx({allOf:a},e,t);let f=r.map(([m,b])=>d.filter(y=>b.keywords.includes(y)));return f.forEach(m=>w2e(d,m)),d.forEach(function(m){let b=JF(a,m),y=rd(b.filter(fg),T2e(m));if(y.length===1&&dg(L2e,m))c[m]=y[0].map(x=>n([x],x));else if(y.length===1&&!dg(O2e,m)&&!dg($2e,m))c[m]=y[0];else{let x=e.resolvers[m]||e.resolvers.defaultResolver;if(!x)throw new Error("No resolver found for key "+m+". You can provide a resolver for this keyword in the options, or provide a default resolver.");let M=(T,E=[])=>n(T,null,u.concat(m,E));c[m]=x(y,u.concat(m),M,e),c[m]===void 0?ZF(y,u.concat(m)):c[m]===void 0&&delete c[m]}}),r.reduce((m,[b,y],x)=>({...m,...R2e(f[x],b,a,n,e,u)}),c)}let s=Vx(XF(i));return n(s)}Wx.options={resolvers:mt};QF.exports=Wx});var P2e,N2e,od=w(()=>{P2e=z(Ai()),N2e=z(U0())});var Rf=w(()=>{});var iP=D((Tze,tP)=>{var z2e=Sf(),B2e=Wo(),q2e=tg(),H2e=If(),j2e=B2e(function(i){return q2e(z2e(i,1,H2e,!0))});tP.exports=j2e});var wu=w(()=>{Rf()});var V2e,mg=w(()=>{V2e=z(iP());Pt();wu();bs()});var W2e,G2e,K2e,Y2e,X2e,J2e,Z2e,Q2e,ewe,io=w(()=>{W2e=z(Ai()),G2e=z(to()),K2e=z(xu()),Y2e=z(yx()),X2e=z(LL()),J2e=z(ZL()),Z2e=z(Z0()),Q2e=z(Mf()),ewe=z(eP());Pt();V0();od();Rf();bs();mg();Y0()});var twe,iwe,rwe,nwe,swe,owe,awe,vg=w(()=>{twe=z(Ai()),iwe=z(Cf()),rwe=z(hx()),nwe=z(vi()),swe=z(U0()),owe=z(dL()),awe=z(yx());Y0();io();Pt();Rf();od();K0()});var Zx=w(()=>{bs()});var lwe,Qx=w(()=>{lwe=z(Ai());bs()});var $f=w(()=>{bs()});var e2=w(()=>{Pt()});var t2=w(()=>{e2();io()});var _g=w(()=>{t2()});var hwe,fwe,sP,aP=w(()=>{hwe=z(Ai()),fwe=z(Zc());Pt();V0();vg();od();wu();bs();Zx();Qx();$f();mg();_g();io();(function(i){i[i.Ignore=0]="Ignore",i[i.Invert=1]="Invert",i[i.Fallback=2]="Fallback"})(sP||(sP={}))});var n2=w(()=>{hu()});var s2=w(()=>{Pt();io()});var cP=w(()=>{Pt();wu();hu();n2();s2();_g()});var pwe,dP=w(()=>{pwe=z(Zc());$f()});var mwe,gwe,WBe,hP=w(()=>{mwe=z(Ai()),gwe=z(Cf());Pt();io();WBe=Symbol("no Value")});var bwe,vwe,fP=w(()=>{bwe=z(Ai()),vwe=z(to());Pt();bs();io();wu()});var xwe,wwe,Swe,pP=w(()=>{xwe=z(Ai()),wwe=z(to()),Swe=z(xu());Pt();od();vg();io()});var o2=w(()=>{aP();cP();vg();Y0();xx();s2();_g();t2();dP();io();hP();fP();pP()});var mP=w(()=>{L0();o2()});var gP=w(()=>{});var yg=w(()=>{});var vP=w(()=>{yg()});var a2=w(()=>{});var _P=w(()=>{a2()});var xg=w(()=>{});var Rwe,yP=w(()=>{Rwe=z(to());xg()});var Dwe,l2=w(()=>{Dwe=z(to())});var xP=w(()=>{l2()});var SP=D((Lqe,wP)=>{function Owe(i){return i==null}wP.exports=Owe});var Lwe,CP=w(()=>{xg();Lwe=z(SP())});var $we,Fwe,Pwe,c2=w(()=>{$we=z(ig()),Fwe=z(Ai()),Pwe=z(xu());Pt()});var IP=w(()=>{});var d2=w(()=>{});var MP=w(()=>{d2()});var EP=w(()=>{Pt();hu()});var TP=w(()=>{});var AP=D(wt=>{"use strict";var h2=Symbol.for("react.element"),f2=Symbol.for("react.portal"),wg=Symbol.for("react.fragment"),Sg=Symbol.for("react.strict_mode"),Cg=Symbol.for("react.profiler"),Ig=Symbol.for("react.provider"),Mg=Symbol.for("react.context"),Bwe=Symbol.for("react.server_context"),Eg=Symbol.for("react.forward_ref"),Tg=Symbol.for("react.suspense"),kg=Symbol.for("react.suspense_list"),Ag=Symbol.for("react.memo"),Rg=Symbol.for("react.lazy"),qwe=Symbol.for("react.offscreen"),kP;kP=Symbol.for("react.module.reference");function jn(i){if(typeof i=="object"&&i!==null){var e=i.$$typeof;switch(e){case h2:switch(i=i.type,i){case wg:case Cg:case Sg:case Tg:case kg:return i;default:switch(i=i&&i.$$typeof,i){case Bwe:case Mg:case Eg:case Rg:case Ag:case Ig:return i;default:return e}}case f2:return e}}}wt.ContextConsumer=Mg;wt.ContextProvider=Ig;wt.Element=h2;wt.ForwardRef=Eg;wt.Fragment=wg;wt.Lazy=Rg;wt.Memo=Ag;wt.Portal=f2;wt.Profiler=Cg;wt.StrictMode=Sg;wt.Suspense=Tg;wt.SuspenseList=kg;wt.isAsyncMode=function(){return!1};wt.isConcurrentMode=function(){return!1};wt.isContextConsumer=function(i){return jn(i)===Mg};wt.isContextProvider=function(i){return jn(i)===Ig};wt.isElement=function(i){return typeof i=="object"&&i!==null&&i.$$typeof===h2};wt.isForwardRef=function(i){return jn(i)===Eg};wt.isFragment=function(i){return jn(i)===wg};wt.isLazy=function(i){return jn(i)===Rg};wt.isMemo=function(i){return jn(i)===Ag};wt.isPortal=function(i){return jn(i)===f2};wt.isProfiler=function(i){return jn(i)===Cg};wt.isStrictMode=function(i){return jn(i)===Sg};wt.isSuspense=function(i){return jn(i)===Tg};wt.isSuspenseList=function(i){return jn(i)===kg};wt.isValidElementType=function(i){return typeof i=="string"||typeof i=="function"||i===wg||i===Cg||i===Sg||i===Tg||i===kg||i===qwe||typeof i=="object"&&i!==null&&(i.$$typeof===Rg||i.$$typeof===Ag||i.$$typeof===Ig||i.$$typeof===Mg||i.$$typeof===Eg||i.$$typeof===kP||i.getModuleId!==void 0)};wt.typeOf=jn});var DP=D((Kqe,RP)=>{"use strict";RP.exports=AP()});var Hwe,jwe,Vwe,Uwe,Wwe,p2=w(()=>
12{Hwe=z($e()),jwe=z(Je()),Vwe=z(DP()),Uwe=z(Ai()),Wwe=z(xu());wu()});var m2=w(()=>{});var OP=w(()=>{p2()});function Dg(i,e){return`${(0,LP.default)(i)?i:i[nf]}__${e}`}function ld(i){return Dg(i,"description")}function g2(i){return Dg(i,"error")}function b2(i){return Dg(i,"examples")}function v2(i){return Dg(i,"help")}function Go(i,e=!1){let t=e?` ${b2(i)}`:"";return`${g2(i)} ${ld(i)} ${v2(i)}${t}`}var LP,$P=w(()=>{LP=z(U0());Pt()});var FP=w(()=>{});var PP=w(()=>{});var _2=w(()=>{Pt()});var NP=w(()=>{_2();hu()});var zP=w(()=>{});var BP=w(()=>{});var qP=w(()=>{});var HP=w(()=>{L0()});var jP=w(()=>{});var Kwe,y2=w(()=>{Kwe=z(Uo());Pt()});var x2=D((vHe,VP)=>{var Ywe=eo(),Xwe=wf(),Jwe=ki(),Zwe=bu(),Qwe=Ky(),e3e=Ja(),t3e=Yy();function i3e(i){return Jwe(i)?Ywe(i,e3e):Zwe(i)?[i]:Xwe(Qwe(t3e(i)))}VP.exports=i3e});var n3e,UP=w(()=>{n3e=z(x2());c2()});var s3e,WP=w(()=>{s3e=z(Uo())});var GP=w(()=>{yg()});var o3e,YP=w(()=>{o3e=z(Zc());$f();y2()});var a3e,XP=w(()=>{Pt();a3e=z(vi())});var JP=w(()=>{});var Kr,ZP=w(()=>{(function(i){i.ArrayItemTitle="Item",i.MissingItems="Missing items definition",i.YesLabel="Yes",i.NoLabel="No",i.CloseLabel="Close",i.ErrorsLabel="Errors",i.NewStringDefault="New Value",i.AddButton="Add",i.AddItemButton="Add Item",i.CopyButton="Copy",i.MoveDownButton="Move down",i.MoveUpButton="Move up",i.RemoveButton="Remove",i.NowLabel="Now",i.ClearLabel="Clear",i.AriaDateLabel="Select a date",i.PreviewLabel="Preview",i.DecrementAriaLabel="Decrease value by 1",i.IncrementAriaLabel="Increase value by 1",i.UnknownFieldType="Unknown field type %1",i.OptionPrefix="Option %1",i.TitleOptionPrefix="%1 option %2",i.KeyLabel="%1 Key",i.InvalidObjectField='Invalid "%1" object field configuration: _%2_.',i.UnsupportedField="Unsupported field schema.",i.UnsupportedFieldWithId="Unsupported field schema for field `%1`.",i.UnsupportedFieldWithReason="Unsupported field schema: _%1_.",i.UnsupportedFieldWithIdAndReason="Unsupported field schema for field `%1`: _%2_.",i.FilesInfo="**%1** (%2, %3 bytes)"})(Kr||(Kr={}))});var u3e,c3e,QP=w(()=>{u3e=z(Ai()),c3e=z(to());Pt();m2()});var d3e,h3e,eN=w(()=>{d3e=z(Ef()),h3e=z(to());Pt();QP();io()});var tN=w(()=>{eN()});var Ve=w(()=>{lk();uk();hk();Ak();mP();gP();vP();L0();_P();yP();xP();l2();CP();xg();c2();V0();IP();od();MP();wu();EP();TP();hu();p2();Rf();m2();OP();$P();e2();n2();Zx();bs();FP();PP();Qx();$f();mg();NP();zP();yg();BP();d2();a2();qP();HP();_2();jP();y2();UP();WP();GP();YP();XP();K0();JP();ZP();Pt();tN();o2()});var oN=D((eVe,sN)=>{var $3e=Jc(),F3e=wx(),P3e=vu();function N3e(i,e,t){for(var r=-1,n=e.length,s={};++r<n;){var o=e[r],a=$3e(i,o);t(a,o)&&F3e(s,P3e(o,i),a)}return s}sN.exports=N3e});var lN=D((tVe,aN)=>{var z3e=oN(),B3e=bx();function q3e(i,e){return z3e(i,e,function(t,r){return B3e(i,r)})}aN.exports=q3e});var cN=D((iVe,uN)=>{var H3e=lN(),j3e=cx(),V3e=j3e(function(i,e){return i==null?{}:H3e(i,e)});uN.exports=V3e});var U3e,W3e,G3e,K3e,Y3e,X3e,dN=w(()=>{U3e=z($e()),W3e=z(Je());Ve();G3e=z(ig()),K3e=z(Ai()),Y3e=z(vi()),X3e=z(xu())});var J3e,Z3e,hN=w(()=>{J3e=z($e());Ve();Z3e=z(vi())});var fN,Q3e,e6e,t6e,i6e,pN=w(()=>{fN=z($e()),Q3e=z(Je()),e6e=z(Ai()),t6e=z(Zc()),i6e=z(j0());Ve()});var r6e,mN,gN=w(()=>{r6e=z($e()),mN=z(Je());Ve()});var vN=D((dVe,bN)=>{var n6e=ox();function s6e(i,e){return i==null?!0:n6e(i,e)}bN.exports=s6e});var _N,o6e,a6e,l6e,u6e,c6e,d6e,yN=w(()=>{_N=z($e()),o6e=z(Je());Ve();a6e=z(Ai()),l6e=z(Cf()),u6e=z(vi()),c6e=z(xu()),d6e=z(vN())});var S2,xN,h6e,f6e,wN=w(()=>{S2=z($e()),xN=z(Je());Ve();h6e=z(vi()),f6e=z(j0())});var p6e,SN=w(()=>{p6e=z($e());Ve()});var m6e,CN=w(()=>{m6e=z(Je())});var IN=w(()=>{dN();hN();pN();gN();yN();wN();SN();CN()});var g6e,MN=w(()=>{g6e=z($e());Ve()});var EN,TN=w(()=>{EN=z($e())});var kN,AN=w(()=>{kN=z($e());Ve()});var b6e,RN=w(()=>{b6e=z($e());Ve()});var C2,v6e,DN=w(()=>{C2=z($e()),v6e=z(Je());Ve()});var _6e,ON=w(()=>{_6e=z($e());Ve()});var y6e,I2=w(()=>{y6e=z($e());Ve()});var x6e,LN=w(()=>{x6e=z($e());Ve();I2()});var $N=w(()=>{ON();LN();I2()});var w6e,FN=w(()=>{w6e=z($e())});var PN,NN=w(()=>{PN=z($e());Ve()});var zN,M2=w(()=>{zN=z($e())});var BN,qN=w(()=>{BN=z($e());Ve();M2()});var HN=w(()=>{qN()});var C6e,jN=w(()=>{C6e=z($e());Ve()});var I6e,VN=w(()=>
12{I6e=z($e());Ve()});var UN,WN=w(()=>{UN=z($e());Ve()});var GN,KN=w(()=>{GN=z($e())});var YN,XN=w(()=>{YN=z($e());Ve()});var JN,ZN=w(()=>{JN=z($e());Ve();M2()});var QN=w(()=>{MN();TN();AN();RN();DN();$N();FN();NN();HN();jN();VN();WN();KN();XN();ZN()});var ez,Og,tz=w(()=>{ez=z($e()),Og=z(Je());Ve()});var M6e,iz=w(()=>{M6e=z($e())});var rz,E6e,nz=w(()=>{rz=z($e()),E6e=z(Je());Ve()});var sz,T6e,oz=w(()=>{sz=z($e()),T6e=z(Je());Ve()});var k6e,az=w(()=>{k6e=z($e());Ve()});var A6e,R6e,lz=w(()=>{A6e=z($e()),R6e=z(Je());Ve()});var D6e,uz=w(()=>{D6e=z($e());Ve()});var O6e,cz=w(()=>{O6e=z($e());Ve()});var E2,dz,hz=w(()=>{E2=z($e()),dz=z(Je());Ve()});var L6e,fz=w(()=>{L6e=z($e())});var $6e,pz=w(()=>{$6e=z($e());Ve()});var mz,F6e,gz=w(()=>{mz=z($e()),F6e=z(Je());Ve()});var bz,vz=w(()=>{bz=z($e())});var _z,P6e,yz=w(()=>{_z=z($e()),P6e=z(Je());Ve()});function N6e({id:i,options:e={},placeholder:t,value:r,required:n,disabled:s,readonly:o,autofocus:a=!1,onChange:l,onBlur:u,onFocus:c}){let d=(0,Lg.useCallback)(({target:{value:b}})=>l(b===""?e.emptyValue:b),[l,e.emptyValue]),f=(0,Lg.useCallback)(({target:b})=>u(i,b&&b.value),[u,i]),m=(0,Lg.useCallback)(({target:b})=>c(i,b&&b.value),[i,c]);return(0,xz.jsx)("textarea",{id:i,name:i,className:"form-control",value:r||"",placeholder:t,required:n,disabled:s,readOnly:o,autoFocus:a,rows:e.rows,onBlur:f,onFocus:m,onChange:d,"aria-describedby":Go(i)})}var xz,Lg,wz=w(()=>{xz=z($e()),Lg=z(Je());Ve();N6e.defaultProps={autofocus:!1,options:{}}});var z6e,Sz=w(()=>{z6e=z($e());Ve()});var B6e,q6e,Cz=w(()=>{B6e=z($e()),q6e=z(Je());Ve()});var H6e,Iz=w(()=>{H6e=z($e());Ve()});var j6e,Mz=w(()=>{j6e=z($e());Ve()});var Ez=w(()=>{tz();iz();nz();oz();az();lz();uz();cz();hz();fz();pz();gz();vz();yz();wz();Sz();Cz();Iz();Mz()});var T2=w(()=>{Ve();IN();QN();Ez()});var Tz,kz,U6e,W6e,G6e,K6e,Y6e,k2=w(()=>{Tz=z($e()),kz=z(Je());Ve();U6e=z(Ef()),W6e=z(Ai()),G6e=z(Zc()),K6e=z(cN()),Y6e=z(x2());T2()});var J6e,Z6e,Az=w(()=>{J6e=z($e()),Z6e=z(Je());k2()});var Rz=w(()=>{k2();Az();T2()});var Q6e,e4e,Dz=w(()=>{Nn();Q6e=z(Ze());Rz();Ve();e4e=z(Je())});var Oz=w(()=>{});var Lz,$z=w(()=>{Lz=z(Je())});var Fz,Pz=w(()=>{Gr();(function(i){function e(){let t=document.createElement("div"),r=document.createElement("iframe");return r.setAttribute("sandbox",""),r.style.height="100%",r.style.width="100%",t.appendChild(r),t}i.createNode=e})(Fz||(Fz={}))});var Nz,zz=w(()=>{nu();Fn();Qe();Gr();(function(i){i.DEFAULT_RANK=100})(Nz||(Nz={}))});function Vn(i,e,t){return isNaN(i)||i<=e?e:i>=t?t:i}function Yr(i,e,t){return isNaN(i)||i<=e?0:i>=t?1:i/(t-e)}function tl(i,e,t){return isNaN(i)?e:e+i*(t-e)}function A2(i){return i*(Math.PI/180)}function Bz(i){return i*(180/Math.PI)}function qz(i){let e=Math.round(Vn(i,0,255)).toString(16);return e.length===1?"0"+e:e}function ir(i,e,t){return isNaN(i)||i<=0?e:i>=1?t:e+i*(t-e)}function $g(i,e,t){if(i<=0)return e%360;if(i>=1)return t%360;let r=(e-t+360)%360,n=(t-e+360)%360;return r<=n?(e-r*i+360)%360:(e+r*i+360)%360}function zt(i,e){let t=Math.pow(10,e);return Math.round(i*t)/t}var aKe,Un=w(()=>{aKe=Math.PI*2});var dr,Bf=w(()=>{Un();dr=class{constructor(e,t,r){this.h=e,this.s=t,this.l=r}static fromObject(e){return e&&!isNaN(e.h)&&!isNaN(e.s)&&!isNaN(e.l)?new dr(e.h,e.s,e.l):null}equalValue(e){return this.h===e.h&&this.s===e.s&&this.l===e.l}roundToPrecision(e){return new dr(zt(this.h,e),zt(this.s,e),zt(this.l,e))}toObject(){return{h:this.h,s:this.s,l:this.l}}}});var Ko,Fg=w(()=>{Un();Ko=class{constructor(e,t,r){this.h=e,this.s=t,this.v=r}static fromObject(e){return e&&!isNaN(e.h)&&!isNaN(e.s)&&!isNaN(e.v)?new Ko(e.h,e.s,e.v):null}equalValue(e){return this.h===e.h&&this.s===e.s&&this.v===e.v}roundToPrecision(e){return new Ko(zt(this.h,e),zt(this.s,e),zt(this.v,e))}toObject(){return{h:this.h,s:this.s,v:this.v}}}});var ui,Pg=w(()=>{Un();ui=class{constructor(e,t,r){this.l=e,this.a=t,this.b=r}static fromObject(e){return e&&!isNaN(e.l)&&!isNaN(e.a)&&!isNaN(e.b)?new ui(e.l,e.a,e.b):null}equalValue(e){return this.l===e.l&&this.a===e.a&&this.b===e.b}roundToPrecision(e){return new ui(zt(this.l,e),zt(this.a,e),zt(this.b,e))}toObject(){return{l:this.l,a:this.a,b:this.b}}};ui.epsilon=216/24389;ui.kappa=24389/27});var ys,qf=w(()=>{Un();ys=class{constructor(e,t,r){this.l=e,this.c=t,this.h=r}static fromObject(e){return e&&!isNaN(e.l)&&!isNaN(e.c)&&!isNaN(e.h)?new ys(e.l,e.c,e.h):null}equalValue(e){return this.l===e.l&&this.c===e.c&&this.h===e.h}roundToPrecision(e){return new ys(zt(this.l,e),zt(this.c,e),zt(this.h,e))}toObject(){return{l:this.l,c:this.c,h:this.h}}}});var ot,il=w(()=>{Un();ot=class{constructor(e,t,r,n){this.r=e,this.g=t,this.b=r,this.a=typeof n=="number"&&!isNaN(n)?n:1}static fromObject(e){return e&&!isNaN(e.r)&&!isNaN(e.g)&&!isNaN(e.b)?new ot(e.r,e.g,e.b,e.a):null}equalValue(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(tl(this.r,0,255))},${Math.round(tl(this.g,0,255))},${Math.round(tl(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(tl(this.r,0,255))},${Math.round(tl(this.g,0,255))},${Math.round(tl(this.b,0,255))},${Vn(this.a,0,1)})`}roundToPrecision(e){return new ot(zt(this.r,e),zt(this.g,e),zt(this.b,e),zt(this.a,e))}
12clamp(){return new ot(Vn(this.r,0,1),Vn(this.g,0,1),Vn(this.b,0,1),Vn(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(e){return qz(tl(e,0,255))}}});var Hi,Ng=w(()=>{Un();Hi=class{constructor(e,t,r){this.x=e,this.y=t,this.z=r}static fromObject(e){return e&&!isNaN(e.x)&&!isNaN(e.y)&&!isNaN(e.z)?new Hi(e.x,e.y,e.z):null}equalValue(e){return this.x===e.x&&this.y===e.y&&this.z===e.z}roundToPrecision(e){return new Hi(zt(this.x,e),zt(this.y,e),zt(this.z,e))}toObject(){return{x:this.x,y:this.y,z:this.z}}};Hi.whitePoint=new Hi(.95047,1,1.08883)});function Bg(i){return i.r*.2126+i.g*.7152+i.b*.0722}function zg(i){function e(t){return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return Bg(new ot(e(i.r),e(i.g),e(i.b),1))}function R2(i,e){let t=zg(i),r=zg(e);return t>r?Hz(t,r):Hz(r,t)}function Sn(i){let e=Math.max(i.r,i.g,i.b),t=Math.min(i.r,i.g,i.b),r=e-t,n=0;r!==0&&(e===i.r?n=60*((i.g-i.b)/r%6):e===i.g?n=60*((i.b-i.r)/r+2):n=60*((i.r-i.g)/r+4)),n<0&&(n+=360);let s=(e+t)/2,o=0;return r!==0&&(o=r/(1-Math.abs(2*s-1))),new dr(n,o,s)}function ro(i,e=1){let t=(1-Math.abs(2*i.l-1))*i.s,r=t*(1-Math.abs(i.h/60%2-1)),n=i.l-t/2,s=0,o=0,a=0;return i.h<60?(s=t,o=r,a=0):i.h<120?(s=r,o=t,a=0):i.h<180?(s=0,o=t,a=r):i.h<240?(s=0,o=r,a=t):i.h<300?(s=r,o=0,a=t):i.h<360&&(s=t,o=0,a=r),new ot(s+n,o+n,a+n,e)}function D2(i){let e=Math.max(i.r,i.g,i.b),t=Math.min(i.r,i.g,i.b),r=e-t,n=0;r!==0&&(e===i.r?n=60*((i.g-i.b)/r%6):e===i.g?n=60*((i.b-i.r)/r+2):n=60*((i.r-i.g)/r+4)),n<0&&(n+=360);let s=0;return e!==0&&(s=r/e),new Ko(n,s,e)}function jz(i,e=1){let t=i.s*i.v,r=t*(1-Math.abs(i.h/60%2-1)),n=i.v-t,s=0,o=0,a=0;return i.h<60?(s=t,o=r,a=0):i.h<120?(s=r,o=t,a=0):i.h<180?(s=0,o=t,a=r):i.h<240?(s=0,o=r,a=t):i.h<300?(s=r,o=0,a=t):i.h<360&&(s=t,o=0,a=r),new ot(s+n,o+n,a+n,e)}function t4e(i){let e=0,t=0;return i.h!==0&&(e=Math.cos(A2(i.h))*i.c,t=Math.sin(A2(i.h))*i.c),new ui(i.l,e,t)}function i4e(i){let e=0;(Math.abs(i.b)>.001||Math.abs(i.a)>.001)&&(e=Bz(Math.atan2(i.b,i.a))),e<0&&(e+=360);let t=Math.sqrt(i.a*i.a+i.b*i.b);return new ys(i.l,t,e)}function r4e(i){let e=(i.l+16)/116,t=e+i.a/500,r=e-i.b/200,n=Math.pow(t,3),s=Math.pow(e,3),o=Math.pow(r,3),a=0;n>ui.epsilon?a=n:a=(116*t-16)/ui.kappa;let l=0;i.l>ui.epsilon*ui.kappa?l=s:l=i.l/ui.kappa;let u=0;return o>ui.epsilon?u=o:u=(116*r-16)/ui.kappa,a=Hi.whitePoint.x*a,l=Hi.whitePoint.y*l,u=Hi.whitePoint.z*u,new Hi(a,l,u)}function n4e(i){function e(l){return l>ui.epsilon?Math.pow(l,1/3):(ui.kappa*l+16)/116}let t=e(i.x/Hi.whitePoint.x),r=e(i.y/Hi.whitePoint.y),n=e(i.z/Hi.whitePoint.z),s=116*r-16,o=500*(t-r),a=200*(r-n);return new ui(s,o,a)}function qg(i){function e(l){return l<=.04045?l/12.92:Math.pow((l+.055)/1.055,2.4)}let t=e(i.r),r=e(i.g),n=e(i.b),s=t*.4124564+r*.3575761+n*.1804375,o=t*.2126729+r*.7151522+n*.072175,a=t*.0193339+r*.119192+n*.9503041;return new Hi(s,o,a)}function O2(i,e=1){function t(o){return o<=.0031308?o*12.92:1.055*Math.pow(o,1/2.4)-.055}let r=t(i.x*3.2404542-i.y*1.5371385-i.z*.4985314),n=t(i.x*-.969266+i.y*1.8760108+i.z*.041556),s=t(i.x*.0556434-i.y*.2040259+i.z*1.0572252);return new ot(r,n,s,e)}function Hf(i){return n4e(qg(i))}function Hg(i,e=1){return O2(r4e(i),e)}function jf(i){return i4e(Hf(i))}function jg(i,e=1){return Hg(t4e(i),e)}var Hz,Su=w(()=>{Bf();Fg();Pg();qf();il();Ng();Un();Hz=(i,e)=>(i+.05)/(e+.05)});function F2(i,e,t=18){let r=jf(i),n=r.c+e*t;return n<0&&(n=0),jg(new ys(r.l,n,r.h))}function L2(i,e){return i*e}function P2(i,e){return new ot(L2(i.r,e.r),L2(i.g,e.g),L2(i.b,e.b),1)}function $2(i,e){return i<.5?Vn(2*e*i,0,1):Vn(1-2*(1-e)*(1-i),0,1)}function N2(i,e){return new ot($2(i.r,e.r),$2(i.g,e.g),$2(i.b,e.b),1)}var Vz,z2=w(()=>{Su();qf();il();Un();(function(i){i[i.Burn=0]="Burn",i[i.Color=1]="Color",i[i.Darken=2]="Darken",i[i.Dodge=3]="Dodge",i[i.Lighten=4]="Lighten",i[i.Multiply=5]="Multiply",i[i.Overlay=6]="Overlay",i[i.Screen=7]="Screen"})(Vz||(Vz={}))});function s4e(i,e,t){return isNaN(i)||i<=0?e:i>=1?t:new ot(ir(i,e.r,t.r),ir(i,e.g,t.g),ir(i,e.b,t.b),ir(i,e.a,t.a))}function o4e(i,e,t){return isNaN(i)||i<=0?e:i>=1?t:new dr($g(i,e.h,t.h),ir(i,e.s,t.s),ir(i,e.l,t.l))}function a4e(i,e,t){return isNaN(i)||i<=0?e:i>=1?t:new Ko($g(i,e.h,t.h),ir(i,e.s,t.s),ir(i,e.v,t.v))}function l4e(i,e,t){return isNaN(i)||i<=0?e:i>=1?t:new Hi(ir(i,e.x,t.x),ir(i,e.y,t.y),ir(i,e.z,t.z))}function u4e(i,e,t){return isNaN(i)||i<=0?e:i>=1?t:new ui(ir(i,e.l,t.l),ir(i,e.a,t.a),ir(i,e.b,t.b))}function c4e(i,e,t){return isNaN(i)||i<=0?e:i>=1?t:new ys(ir(i,e.l,t.l),ir(i,e.c,t.c),$g(i,e.h,t.h))}function Cu(i,e,t,r){if(isNaN(i)||i<=0)return t;if(i>=1)return r;switch(e){case hr.HSL:return ro(o4e(i,Sn(t),Sn(r)));case hr.HSV:return jz(a4e(i,D2(t),D2(r)));case hr.XYZ:return O2(l4e(i,qg(t),qg(r)));case hr.LAB:return Hg(u4e(i,Hf(t),Hf(r)));case hr.LCH:return jg(c4e(i,jf(t),jf(r)));default:return s4e(i,t,r)}}var hr,Vf=w(()=>{Su();Bf();Fg();Pg();qf();il();Ng();Un();(function(i){i[i.RGB=0]="RGB",i[i.HSL=1]="HSL",i[i.HSV=2]="HSV",i[i.XYZ=3]="XYZ",i[i.LAB=4]="LAB",i[i.LCH=5]="LCH"})(hr||(hr={}))});var fr,Vg=w(()=>{Su();Vf();fr=class{constructor(e){if(e==null||e.length===0)throw new Error("The stops argument must be non-empty");this.stops=this.sortColorScaleStops(e)}static createBalancedColorScale(e){if(e==null||e.length===0)throw new Error("The colors argument must be non-empty");let t=new Array(e.length);for(let r=0;r<e.length;r++)r===0?t[r]={color:e[r],position:0}:r===e.length-1?t[r]={color:e[r],position:1}:t[r]={color:e[r],position:r*(1/(e.length-1))};return new fr(t)}
12getColor(e,t=hr.RGB){if(this.stops.length===1)return this.stops[0].color;if(e<=0)return this.stops[0].color;if(e>=1)return this.stops[this.stops.length-1].color;let r=0;for(let o=0;o<this.stops.length;o++)this.stops[o].position<=e&&(r=o);let n=r+1;n>=this.stops.length&&(n=this.stops.length-1);let s=(e-this.stops[r].position)*(1/(this.stops[n].position-this.stops[r].position));return Cu(s,t,this.stops[r].color,this.stops[n].color)}trim(e,t,r=hr.RGB){if(e<0||t>1||t<e)throw new Error("Invalid bounds");if(e===t)return new fr([{color:this.getColor(e,r),position:0}]);let n=[];for(let a=0;a<this.stops.length;a++)this.stops[a].position>=e&&this.stops[a].position<=t&&n.push(this.stops[a]);if(n.length===0)return new fr([{color:this.getColor(e),position:e},{color:this.getColor(t),position:t}]);n[0].position!==e&&n.unshift({color:this.getColor(e),position:e}),n[n.length-1].position!==t&&n.push({color:this.getColor(t),position:t});let s=t-e,o=new Array(n.length);for(let a=0;a<n.length;a++)o[a]={color:n[a].color,position:(n[a].position-e)/s};return new fr(o)}findNextColor(e,t,r=!1,n=hr.RGB,s=.005,o=32){isNaN(e)||e<=0?e=0:e>=1&&(e=1);let a=this.getColor(e,n),l=r?0:1,u=this.getColor(l,n);if(R2(a,u)<=t)return l;let d=r?0:e,f=r?e:0,m=l,b=0;for(;b<=o;){m=Math.abs(f-d)/2+d;let y=this.getColor(m,n),x=R2(a,y);if(Math.abs(x-t)<=s)return m;x>t?r?d=m:f=m:r?f=m:d=m,b++}return m}clone(){let e=new Array(this.stops.length);for(let t=0;t<e.length;t++)e[t]={color:this.stops[t].color,position:this.stops[t].position};return new fr(e)}sortColorScaleStops(e){return e.sort((t,r)=>{let n=t.position,s=r.position;return n<s?-1:n>s?1:0})}}});var B2,Uz=w(()=>{B2={aliceblue:{r:.941176,g:.972549,b:1},antiquewhite:{r:.980392,g:.921569,b:.843137},aqua:{r:0,g:1,b:1},aquamarine:{r:.498039,g:1,b:.831373},azure:{r:.941176,g:1,b:1},beige:{r:.960784,g:.960784,b:.862745},bisque:{r:1,g:.894118,b:.768627},black:{r:0,g:0,b:0},blanchedalmond:{r:1,g:.921569,b:.803922},blue:{r:0,g:0,b:1},blueviolet:{r:.541176,g:.168627,b:.886275},brown:{r:.647059,g:.164706,b:.164706},burlywood:{r:.870588,g:.721569,b:.529412},cadetblue:{r:.372549,g:.619608,b:.627451},chartreuse:{r:.498039,g:1,b:0},chocolate:{r:.823529,g:.411765,b:.117647},coral:{r:1,g:.498039,b:.313725},cornflowerblue:{r:.392157,g:.584314,b:.929412},cornsilk:{r:1,g:.972549,b:.862745},crimson:{r:.862745,g:.078431,b:.235294},cyan:{r:0,g:1,b:1},darkblue:{r:0,g:0,b:.545098},darkcyan:{r:0,g:.545098,b:.545098},darkgoldenrod:{r:.721569,g:.52549,b:.043137},darkgray:{r:.662745,g:.662745,b:.662745},darkgreen:{r:0,g:.392157,b:0},darkgrey:{r:.662745,g:.662745,b:.662745},darkkhaki:{r:.741176,g:.717647,b:.419608},darkmagenta:{r:.545098,g:0,b:.545098},darkolivegreen:{r:.333333,g:.419608,b:.184314},darkorange:{r:1,g:.54902,b:0},darkorchid:{r:.6,g:.196078,b:.8},darkred:{r:.545098,g:0,b:0},darksalmon:{r:.913725,g:.588235,b:.478431},darkseagreen:{r:.560784,g:.737255,b:.560784},darkslateblue:{r:.282353,g:.239216,b:.545098},darkslategray:{r:.184314,g:.309804,b:.309804},darkslategrey:{r:.184314,g:.309804,b:.309804},darkturquoise:{r:0,g:.807843,b:.819608},darkviolet:{r:.580392,g:0,b:.827451},deeppink:{r:1,g:.078431,b:.576471},deepskyblue:{r:0,g:.74902,b:1},dimgray:{r:.411765,g:.411765,b:.411765},dimgrey:{r:.411765,g:.411765,b:.411765},dodgerblue:{r:.117647,g:.564706,b:1},firebrick:{r:.698039,g:.133333,b:.133333},floralwhite:{r:1,g:.980392,b:.941176},forestgreen:{r:.133333,g:.545098,b:.133333},fuchsia:{r:1,g:0,b:1},gainsboro:{r:.862745,g:.862745,b:.862745},ghostwhite:{r:.972549,g:.972549,b:1},gold:{r:1,g:.843137,b:0},goldenrod:{r:.854902,g:.647059,b:.12549},gray:{r:.501961,g:.501961,b:.501961},green:{r:0,g:.501961,b:0},greenyellow:{r:.678431,g:1,b:.184314},grey:{r:.501961,g:.501961,b:.501961},honeydew:{r:.941176,g:1,b:.941176},hotpink:{r:1,g:.411765,b:.705882},indianred:{r:.803922,g:.360784,b:.360784},indigo:{r:.294118,g:0,b:.509804},ivory:{r:1,g:1,b:.941176},khaki:{r:.941176,g:.901961,b:.54902},lavender:{r:.901961,g:.901961,b:.980392},lavenderblush:{r:1,g:.941176,b:.960784},lawngreen:{r:.486275,g:.988235,b:0},lemonchiffon:{r:1,g:.980392,b:.803922},lightblue:{r:.678431,g:.847059,b:.901961},lightcoral:{r:.941176,g:.501961,b:.501961},lightcyan:{r:.878431,g:1,b:1},lightgoldenrodyellow:{r:.980392,g:.980392,b:.823529},lightgray:{r:.827451,g:.827451,b:.827451},lightgreen:{r:.564706,g:.933333,b:.564706},lightgrey:{r:.827451,g:.827451,b:.827451},lightpink:{r:1,g:.713725,b:.756863},lightsalmon:{r:1,g:.627451,b:.478431}
12,lightseagreen:{r:.12549,g:.698039,b:.666667},lightskyblue:{r:.529412,g:.807843,b:.980392},lightslategray:{r:.466667,g:.533333,b:.6},lightslategrey:{r:.466667,g:.533333,b:.6},lightsteelblue:{r:.690196,g:.768627,b:.870588},lightyellow:{r:1,g:1,b:.878431},lime:{r:0,g:1,b:0},limegreen:{r:.196078,g:.803922,b:.196078},linen:{r:.980392,g:.941176,b:.901961},magenta:{r:1,g:0,b:1},maroon:{r:.501961,g:0,b:0},mediumaquamarine:{r:.4,g:.803922,b:.666667},mediumblue:{r:0,g:0,b:.803922},mediumorchid:{r:.729412,g:.333333,b:.827451},mediumpurple:{r:.576471,g:.439216,b:.858824},mediumseagreen:{r:.235294,g:.701961,b:.443137},mediumslateblue:{r:.482353,g:.407843,b:.933333},mediumspringgreen:{r:0,g:.980392,b:.603922},mediumturquoise:{r:.282353,g:.819608,b:.8},mediumvioletred:{r:.780392,g:.082353,b:.521569},midnightblue:{r:.098039,g:.098039,b:.439216},mintcream:{r:.960784,g:1,b:.980392},mistyrose:{r:1,g:.894118,b:.882353},moccasin:{r:1,g:.894118,b:.709804},navajowhite:{r:1,g:.870588,b:.678431},navy:{r:0,g:0,b:.501961},oldlace:{r:.992157,g:.960784,b:.901961},olive:{r:.501961,g:.501961,b:0},olivedrab:{r:.419608,g:.556863,b:.137255},orange:{r:1,g:.647059,b:0},orangered:{r:1,g:.270588,b:0},orchid:{r:.854902,g:.439216,b:.839216},palegoldenrod:{r:.933333,g:.909804,b:.666667},palegreen:{r:.596078,g:.984314,b:.596078},paleturquoise:{r:.686275,g:.933333,b:.933333},palevioletred:{r:.858824,g:.439216,b:.576471},papayawhip:{r:1,g:.937255,b:.835294},peachpuff:{r:1,g:.854902,b:.72549},peru:{r:.803922,g:.521569,b:.247059},pink:{r:1,g:.752941,b:.796078},plum:{r:.866667,g:.627451,b:.866667},powderblue:{r:.690196,g:.878431,b:.901961},purple:{r:.501961,g:0,b:.501961},red:{r:1,g:0,b:0},rosybrown:{r:.737255,g:.560784,b:.560784},royalblue:{r:.254902,g:.411765,b:.882353},saddlebrown:{r:.545098,g:.270588,b:.07451},salmon:{r:.980392,g:.501961,b:.447059},sandybrown:{r:.956863,g:.643137,b:.376471},seagreen:{r:.180392,g:.545098,b:.341176},seashell:{r:1,g:.960784,b:.933333},sienna:{r:.627451,g:.321569,b:.176471},silver:{r:.752941,g:.752941,b:.752941},skyblue:{r:.529412,g:.807843,b:.921569},slateblue:{r:.415686,g:.352941,b:.803922},slategray:{r:.439216,g:.501961,b:.564706},slategrey:{r:.439216,g:.501961,b:.564706},snow:{r:1,g:.980392,b:.980392},springgreen:{r:0,g:1,b:.498039},steelblue:{r:.27451,g:.509804,b:.705882},tan:{r:.823529,g:.705882,b:.54902},teal:{r:0,g:.501961,b:.501961},thistle:{r:.847059,g:.74902,b:.847059},tomato:{r:1,g:.388235,b:.278431},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:.25098,g:.878431,b:.815686},violet:{r:.933333,g:.509804,b:.933333},wheat:{r:.960784,g:.870588,b:.701961},white:{r:1,g:1,b:1},whitesmoke:{r:.960784,g:.960784,b:.960784},yellow:{r:1,g:1,b:0},yellowgreen:{r:.603922,g:.803922,b:.196078}}});function d4e(i){return Kz.test(i)}function h4e(i){return Yz.test(i)}function f4e(i){return h4e(i)}function p4e(i){return Wz.test(i)}function m4e(i){return Gz.test(i)}function g4e(i){return B2.hasOwnProperty(i)}function Xr(i){let e=Kz.exec(i);if(e===null)return null;let t=e[1];if(t.length===3){let n=t.charAt(0),s=t.charAt(1),o=t.charAt(2);t=n.concat(n,s,s,o,o)}let r=parseInt(t,16);return isNaN(r)?null:new ot(Yr((r&16711680)>>>16,0,255),Yr((r&65280)>>>8,0,255),Yr(r&255,0,255),1)}function b4e(i){let e=Yz.exec(i);if(e===null)return null;let t=e[1];if(t.length===4){let n=t.charAt(0),s=t.charAt(1),o=t.charAt(2),a=t.charAt(3);t=n.concat(n,s,s,o,o,a,a)}let r=parseInt(t,16);return isNaN(r)?null:new ot(Yr((r&16711680)>>>16,0,255),Yr((r&65280)>>>8,0,255),Yr(r&255,0,255),Yr((r&4278190080)>>>24,0,255))}function v4e(i){let e=Wz.exec(i);if(e===null)return null;let t=e[1].split(",");return new ot(Yr(Number(t[0]),0,255),Yr(Number(t[1]),0,255),Yr(Number(t[2]),0,255),1)}function _4e(i){let e=Gz.exec(i);if(e===null)return null;let t=e[1].split(",");return t.length===4?new ot(Yr(Number(t[0]),0,255),Yr(Number(t[1]),0,255),Yr(Number(t[2]),0,255),Number(t[3])):null}function y4e(i){let e=B2[i.toLowerCase()];return e?new ot(e.r,e.g,e.b,e.hasOwnProperty("a")?e.a:void 0):null}function Uf(i){let e=i.toLowerCase();return d4e(e)?Xr(e):f4e(e)?b4e(e):p4e(e)?v4e(e):m4e(e)?_4e(e):g4e(e)?y4e(e):null}var Wz,Gz,Kz,Yz,Ug=w(()=>{il();Un();Uz();Wz=/^rgb\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){2}(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*)\)$/i,Gz=/^rgba\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){3}(?:0|1|0?\.\d*)\s*)\)$/i,Kz=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i,Yz=/^#((?:[0-9a-f]{8}|[0-9a-f]{4}))$/i});var xs,rYe,q2=w(()=>{z2();Su();Vf();il();Vg();Ug();xs=class{constructor(e){this.config=Object.assign({},xs.defaultPaletteConfig,e),this.palette=[],this.updatePaletteColors()}updatePaletteGenerationValues(e){let t=!1;for(let r in e)this.config[r]&&(this.config[r].equalValue?this.config[r].equalValue(e[r])||(this.config[r]=e[r],t=!0):e[r]!==this.config[r]&&(this.config[r]=e[r],t=!0));return t&&this.updatePaletteColors(),t}updatePaletteColors(){let e=this.generatePaletteColorScale();for(let t=0;t<this.config.steps;t++)this.palette[t]=e.getColor(t/(this.config.steps-1),this.config.interpolationMode)}generatePaletteColorScale(){let e=Sn(this.config.baseColor),r=new fr([{position:0,
12color:this.config.scaleColorLight},{position:.5,color:this.config.baseColor},{position:1,color:this.config.scaleColorDark}]).trim(this.config.clipLight,1-this.config.clipDark),n=r.getColor(0),s=r.getColor(1),o=n,a=s;if(e.s>=this.config.saturationAdjustmentCutoff&&(o=F2(o,this.config.saturationLight),a=F2(a,this.config.saturationDark)),this.config.multiplyLight!==0){let l=P2(this.config.baseColor,o);o=Cu(this.config.multiplyLight,this.config.interpolationMode,o,l)}if(this.config.multiplyDark!==0){let l=P2(this.config.baseColor,a);a=Cu(this.config.multiplyDark,this.config.interpolationMode,a,l)}if(this.config.overlayLight!==0){let l=N2(this.config.baseColor,o);o=Cu(this.config.overlayLight,this.config.interpolationMode,o,l)}if(this.config.overlayDark!==0){let l=N2(this.config.baseColor,a);a=Cu(this.config.overlayDark,this.config.interpolationMode,a,l)}return this.config.baseScalePosition?this.config.baseScalePosition<=0?new fr([{position:0,color:this.config.baseColor},{position:1,color:a.clamp()}]):this.config.baseScalePosition>=1?new fr([{position:0,color:o.clamp()},{position:1,color:this.config.baseColor}]):new fr([{position:0,color:o.clamp()},{position:this.config.baseScalePosition,color:this.config.baseColor},{position:1,color:a.clamp()}]):new fr([{position:0,color:o.clamp()},{position:.5,color:this.config.baseColor},{position:1,color:a.clamp()}])}};xs.defaultPaletteConfig={baseColor:Xr("#808080"),steps:11,interpolationMode:hr.RGB,scaleColorLight:new ot(1,1,1,1),scaleColorDark:new ot(0,0,0,1),clipLight:.185,clipDark:.16,saturationAdjustmentCutoff:.05,saturationLight:.35,saturationDark:1.25,overlayLight:0,overlayDark:.25,multiplyLight:0,multiplyDark:0,baseScalePosition:.5};xs.greyscalePaletteConfig={baseColor:Xr("#808080"),steps:11,interpolationMode:hr.RGB,scaleColorLight:new ot(1,1,1,1),scaleColorDark:new ot(0,0,0,1),clipLight:0,clipDark:0,saturationAdjustmentCutoff:0,saturationLight:0,saturationDark:0,overlayLight:0,overlayDark:0,multiplyLight:0,multiplyDark:0,baseScalePosition:.5};rYe={targetSize:63,spacing:4,scaleColorLight:xs.defaultPaletteConfig.scaleColorLight,scaleColorDark:xs.defaultPaletteConfig.scaleColorDark}});var Xz=w(()=>{});var Jz=w(()=>{});var Zz=w(()=>{});var Iu,Qz=w(()=>{il();q2();Su();Vg();Bf();Vf();Ug();Iu=class{constructor(e){this.palette=[],this.config=Object.assign({},Iu.defaultPaletteConfig,e),this.regenPalettes()}regenPalettes(){let e=this.config.steps;(isNaN(e)||e<3)&&(e=3);let t=.14,r=.06,n=new ot(t,t,t,1),s=94,a=new xs(Object.assign(Object.assign({},xs.greyscalePaletteConfig),{baseColor:n,baseScalePosition:(1-t)*100/s,steps:e})).palette,l=Bg(this.config.baseColor),u=Sn(this.config.baseColor).l,c=(l+u)/2,f=this.matchRelativeLuminanceIndex(c,a)/(e-1),b=this.matchRelativeLuminanceIndex(t,a)/(e-1),y=Sn(this.config.baseColor),x=ro(dr.fromObject({h:y.h,s:y.s,l:t})),M=ro(dr.fromObject({h:y.h,s:y.s,l:r})),T=new Array(5);T[0]={position:0,color:new ot(1,1,1,1)},T[1]={position:f,color:this.config.baseColor},T[2]={position:b,color:x},T[3]={position:.99,color:M},T[4]={position:1,color:new ot(0,0,0,1)};let E=new fr(T);this.palette=new Array(e);for(let A=0;A<e;A++){let R=E.getColor(A/(e-1),hr.RGB);this.palette[A]=R}}matchRelativeLuminanceIndex(e,t){let r=Number.MAX_VALUE,n=0,s=0,o=t.length;for(;s<o;s++){let a=Math.abs(Bg(t[s])-e);a<r&&(r=a,n=s)}return n}};Iu.defaultPaletteConfig={baseColor:Xr("#808080"),steps:94}});var eB=w(()=>{});var tB=w(()=>{});var ud=w(()=>{z2();Su();Bf();Fg();Vf();Pg();qf();q2();Zz();il();Vg();Ng();Qz();Xz();Un();eB();Ug();tB();Jz()});function Wg(i,e){let t=i.relativeLuminance>e.relativeLuminance?i:e,r=i.relativeLuminance>e.relativeLuminance?e:i;return(t.relativeLuminance+.05)/(r.relativeLuminance+.05)}var H2=w(()=>{});function iB(i){let e={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(let t in e)if(typeof e[t]!=typeof i[t])return!1;return!0}var Ri,cd,dd=w(()=>{ud();H2();Ri=Object.freeze({create(i,e,t){return new cd(i,e,t)},from(i){return new cd(i.r,i.g,i.b)}});cd=class extends ot{constructor(e,t,r){super(e,t,r,1),this.toColorString=this.toStringHexRGB,this.contrast=Wg.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=zg(this)}static fromObject(e){return new cd(e.r,e.g,e.b)}}});function rl(i){return Ri.create(i,i,i)}var Wf,Mu=w(()=>{dd();Wf={LightMode:1,DarkMode:.23}});function hd(i){return i.relativeLuminance<=x4e}var x4e,Gg=w(()=>{x4e=(-.1+Math.sqrt(.21))/2});function Kg(){let i=new WeakMap;return function(e){let t=i.get(e);if(t===void 0){let r=Reflect.getPrototypeOf(e);for(;t===void 0&&r!==null;)t=i.get(r),r=Reflect.getPrototypeOf(r);t=t===void 0?[]:t.slice(0),i.set(e,t)}return t}}var ws,rB,Eu,Wn,Yo=w(()=>{ws=function(){if(typeof globalThis<"u"||typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();ws.trustedTypes===void 0&&(ws.trustedTypes={createPolicy:(i,e)=>e});rB={configurable:!1,enumerable:!1,writable:!1};ws.FAST===void 0&&Reflect.defineProperty(ws,"FAST",Object.assign({value:Object.create(null)},rB));Eu=ws.FAST;if(Eu.getById===void 0){let i=Object.create(null);Reflect.defineProperty(Eu,"getById",Object.assign({value(e,t){let r=i[e];return r===void 0&&(r=t?i[e]=t():null),r}},rB))}Wn=Object.freeze([])});var j2,nB,V2,Gf,U2,Yg,ue,Gn=w(()=>{Yo();j2=ws.FAST.getById(1,()=>{let i=[],e=[];function t(){if(e.length)throw e.shift()}function r(o){try{o.call()}catch(a){e.push(a),setTimeout(t,0)}}function n(){let a=0;for(;a<i.length;
12)if(r(i[a]),a++,a>1024){for(let l=0,u=i.length-a;l<u;l++)i[l]=i[l+a];i.length-=a,a=0}i.length=0}function s(o){i.length<1&&ws.requestAnimationFrame(n),i.push(o)}return Object.freeze({enqueue:s,process:n})}),nB=ws.trustedTypes.createPolicy("fast-html",{createHTML:i=>i}),V2=nB,Gf=`fast-${Math.random().toString(36).substring(2,8)}`,U2=`${Gf}{`,Yg=`}${Gf}`,ue=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(i){if(V2!==nB)throw new Error("The HTML policy can only be set once.");V2=i},createHTML(i){return V2.createHTML(i)},isMarker(i){return i&&i.nodeType===8&&i.data.startsWith(Gf)},extractDirectiveIndexFromMarker(i){return parseInt(i.data.replace(`${Gf}:`,""))},createInterpolationPlaceholder(i){return`${U2}${i}${Yg}`},createCustomAttributePlaceholder(i,e){return`${i}="${this.createInterpolationPlaceholder(e)}"`},createBlockPlaceholder(i){return`<!--${Gf}:${i}-->`},queueUpdate:j2.enqueue,processUpdates:j2.process,nextUpdate(){return new Promise(j2.enqueue)},setAttribute(i,e,t){t==null?i.removeAttribute(e):i.setAttribute(e,t)},setBooleanAttribute(i,e,t){t?i.setAttribute(e,""):i.removeAttribute(e)},removeChildNodes(i){for(let e=i.firstChild;e!==null;e=i.firstChild)i.removeChild(e)},createTemplateWalker(i){return document.createTreeWalker(i,133,null,!1)}})});var nl,fd,Kf=w(()=>{nl=class{constructor(e,t){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=e,this.sub1=t}has(e){return this.spillover===void 0?this.sub1===e||this.sub2===e:this.spillover.indexOf(e)!==-1}subscribe(e){let t=this.spillover;if(t===void 0){if(this.has(e))return;if(this.sub1===void 0){this.sub1=e;return}if(this.sub2===void 0){this.sub2=e;return}this.spillover=[this.sub1,this.sub2,e],this.sub1=void 0,this.sub2=void 0}else t.indexOf(e)===-1&&t.push(e)}unsubscribe(e){let t=this.spillover;if(t===void 0)this.sub1===e?this.sub1=void 0:this.sub2===e&&(this.sub2=void 0);else{let r=t.indexOf(e);r!==-1&&t.splice(r,1)}}notify(e){let t=this.spillover,r=this.source;if(t===void 0){let n=this.sub1,s=this.sub2;n!==void 0&&n.handleChange(r,e),s!==void 0&&s.handleChange(r,e)}else for(let n=0,s=t.length;n<s;++n)t[n].handleChange(r,e)}},fd=class{constructor(e){this.subscribers={},this.sourceSubscribers=null,this.source=e}notify(e){var t;let r=this.subscribers[e];r!==void 0&&r.notify(e),(t=this.sourceSubscribers)===null||t===void 0||t.notify(e)}subscribe(e,t){var r;if(t){let n=this.subscribers[t];n===void 0&&(this.subscribers[t]=n=new nl(this.source)),n.subscribe(e)}else this.sourceSubscribers=(r=this.sourceSubscribers)!==null&&r!==void 0?r:new nl(this.source),this.sourceSubscribers.subscribe(e)}unsubscribe(e,t){var r;if(t){let n=this.subscribers[t];n!==void 0&&n.unsubscribe(e)}else(r=this.sourceSubscribers)===null||r===void 0||r.unsubscribe(e)}}});function N(i,e){ge.defineProperty(i,e)}function oB(i,e,t){return Object.assign({},t,{get:function(){return ge.trackVolatile(),t.get.apply(this)}})}var ge,sB,sl,ol,no=w(()=>{Gn();Yo();
12Kf();ge=Eu.getById(2,()=>{let i=/(:|&&|\|\||if)/,e=new WeakMap,t=ue.queueUpdate,r,n=u=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function s(u){let c=u.$fastController||e.get(u);return c===void 0&&(Array.isArray(u)?c=n(u):e.set(u,c=new fd(u))),c}let o=Kg();class a{constructor(c){this.name=c,this.field=`_${c}`,this.callback=`${c}Changed`}getValue(c){return r!==void 0&&r.watch(c,this.name),c[this.field]}setValue(c,d){let f=this.field,m=c[f];if(m!==d){c[f]=d;let b=c[this.callback];typeof b=="function"&&b.call(c,m,d),s(c).notify(this.name)}}}class l extends nl{constructor(c,d,f=!1){super(c,d),this.binding=c,this.isVolatileBinding=f,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(c,d){this.needsRefresh&&this.last!==null&&this.disconnect();let f=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let m=this.binding(c,d);return r=f,m}disconnect(){if(this.last!==null){let c=this.first;for(;c!==void 0;)c.notifier.unsubscribe(this,c.propertyName),c=c.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(c,d){let f=this.last,m=s(c),b=f===null?this.first:{};if(b.propertySource=c,b.propertyName=d,b.notifier=m,m.subscribe(this,d),f!==null){if(!this.needsRefresh){let y;r=void 0,y=f.propertySource[f.propertyName],r=this,c===y&&(this.needsRefresh=!0)}f.next=b}this.last=b}handleChange(){this.needsQueue&&(this.needsQueue=!1,t(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let c=this.first;return{next:()=>{let d=c;return d===void 0?{value:void 0,done:!0}:(c=c.next,{value:d,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(u){n=u},getNotifier:s,track(u,c){r!==void 0&&r.watch(u,c)},trackVolatile(){r!==void 0&&(r.needsRefresh=!0)},notify(u,c){s(u).notify(c)},defineProperty(u,c){typeof c=="string"&&(c=new a(c)),o(u).push(c),Reflect.defineProperty(u,c.name,{enumerable:!0,get:function(){return c.getValue(this)},set:function(d){c.setValue(this,d)}})},getAccessors:o,binding(u,c,d=this.isVolatileBinding(u)){return new l(u,c,d)},isVolatileBinding(u){return i.test(u.toString())}})});sB=Eu.getById(3,()=>{let i=null;return{get(){return i},set(e){i=e}}}),sl=class{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return sB.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(e){sB.set(e)}};ge.defineProperty(sl.prototype,"index");ge.defineProperty(sl.prototype,"length");ol=Object.seal(new sl)});var al,pd,ll,ul=w(()=>{Gn();al=class{constructor(){this.targetIndex=0}},pd=class extends al{constructor(){super(...arguments),this.createPlaceholder=ue.createInterpolationPlaceholder}},ll=class extends al{constructor(e,t,r){super(),this.name=e,this.behavior=t,this.options=r}createPlaceholder(e){return ue.createCustomAttributePlaceholder(this.name,e)}createBehavior(e){return new this.behavior(e,this.options)}}});function w4e(i,e){this.source=i,this.context=e,this.bindingObserver===null&&(this.bindingObserver=ge.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(i,e))}function S4e(i,e){this.source=i,this.context=e,this.target.addEventListener(this.targetName,this)}function C4e(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function I4e(){this.bindingObserver.disconnect(),this.source=null,this.context=null;let i=this.target.$fastView;i!==void 0&&i.isComposed&&(i.unbind(),i.needsBindOnly=!0)}function M4e(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function E4e(i){ue.setAttribute(this.target,this.targetName,i)}function T4e(i){ue.setBooleanAttribute(this.target,this.targetName,i)}function k4e(i){if(i==null&&(i=""),i.create){this.target.textContent="";let e=this.target.$fastView;e===void 0?e=i.create():this.target.$fastTemplate!==i&&(e.isComposed&&(e.remove(),e.unbind()),e=i.create()),e.isComposed?e.needsBindOnly&&(e.needsBindOnly=!1,e.bind(this.source,this.context)):(e.isComposed=!0,e.bind(this.source,this.context),e.insertBefore(this.target),this.target.$fastView=e,this.target.$fastTemplate=i)}else{let e=this.target.$fastView;e!==void 0&&e.isComposed&&(e.isComposed=!1,e.remove(),e.needsBindOnly?e.needsBindOnly=!1:e.unbind()),this.target.textContent=i}}function A4e(i){this.target[this.targetName]=i}function R4e(i){let e=this.classVersions||Object.create(null),t=this.target,r=this.version||0;if(i!=null&&i.length){let n=i.split(/\s+/);for(let s=0,o=n.length;s<o;++s){let a=n[s];a!==""&&(e[a]=r,t.classList.add(a))}}if(this.classVersions=e,this.version=r+1,r!==0){r-=1;for(let n in e)e[n]===r&&t.classList.remove(n)}}var Tu,W2,Xg=w(()=>{Gn();no();ul();Tu=class extends pd{constructor(e){super(),this.binding=e,this.bind=w4e,this.unbind=C4e,this.updateTarget=E4e,this.isBindingVolatile=ge.isVolatileBinding(this.binding)}get targetName(){return this.originalTargetName}set targetName(e){if(this.originalTargetName=e,e!==void 0)switch(e[0]){case":":if(this.cleanedTargetName=e.substr(1),this.updateTarget=A4e,this.cleanedTargetName==="innerHTML"){let t=this.binding;this.binding=(r,n)=>ue.createHTML(t(r,n))}break;case"?":this.cleanedTargetName=e.substr(1),this.updateTarget=T4e;break;case"@":this.cleanedTargetName=e.substr(1),this.bind=S4e,this.unbind=M4e;break;default:this.cleanedTargetName=e,e==="class"&&(this.updateTarget=R4e);break}}targetAtContent(){this.updateTarget=k4e,this.unbind=I4e}createBehavior(e){return new W2(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}},W2=class{constructor(e,t,r,n,s,o,a){this.source=null,this.context=null,this.bindingObserver=null,this.target=e,this.binding=t,this.isBindingVolatile=r,this.bind=n,this.unbind=s,this.updateTarget=o,this.targetName=a}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(e){sl.setEvent(e);let t=this.binding(this.source,this.context);sl.setEvent(null),t!==!0&&e.preventDefault()}}});function D4e(i){if(i.length===1)return i[0];let e,t=i.length,r=i.map(o=>
12typeof o=="string"?()=>o:(e=o.targetName||e,o.binding)),n=(o,a)=>{let l="";for(let u=0;u<t;++u)l+=r[u](o,a);return l},s=new Tu(n);return s.targetName=e,s}function lB(i,e){let t=e.split(U2);if(t.length===1)return null;let r=[];for(let n=0,s=t.length;n<s;++n){let o=t[n],a=o.indexOf(Yg),l;if(a===-1)l=o;else{let u=parseInt(o.substring(0,a));r.push(i.directives[u]),l=o.substring(a+O4e)}l!==""&&r.push(l)}return r}function aB(i,e,t=!1){let r=e.attributes;for(let n=0,s=r.length;n<s;++n){let o=r[n],a=o.value,l=lB(i,a),u=null;l===null?t&&(u=new Tu(()=>a),u.targetName=o.name):u=D4e(l),u!==null&&(e.removeAttributeNode(o),n--,s--,i.addFactory(u))}}function L4e(i,e,t){let r=lB(i,e.textContent);if(r!==null){let n=e;for(let s=0,o=r.length;s<o;++s){let a=r[s],l=s===0?e:n.parentNode.insertBefore(document.createTextNode(""),n.nextSibling);typeof a=="string"?l.textContent=a:(l.textContent=" ",i.captureContentBinding(a)),n=l,i.targetIndex++,l!==e&&t.nextNode()}i.targetIndex--}}function uB(i,e){let t=i.content;document.adoptNode(t);let r=Yf.borrow(e);aB(r,i,!0);let n=r.behaviorFactories;r.reset();let s=ue.createTemplateWalker(t),o;for(;o=s.nextNode();)switch(r.targetIndex++,o.nodeType){case 1:aB(r,o);break;case 3:L4e(r,o,s);break;case 8:ue.isMarker(o)&&r.addFactory(e[ue.extractDirectiveIndexFromMarker(o)])}let a=0;(ue.isMarker(t.firstChild)||t.childNodes.length===1&&e.length)&&(t.insertBefore(document.createComment(""),t.firstChild),a=-1);let l=r.behaviorFactories;return r.release(),{fragment:t,viewBehaviorFactories:l,hostBehaviorFactories:n,targetOffset:a}}var G2,Yf,O4e,K2=w(()=>{Gn();Xg();G2=null,Yf=class{addFactory(e){e.targetIndex=this.targetIndex,this.behaviorFactories.push(e)}captureContentBinding(e){e.targetAtContent(),this.addFactory(e)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){G2=this}static borrow(e){let t=G2||new Yf;return t.directives=e,t.reset(),G2=null,t}};O4e=Yg.length});var Y2,md,Jg=w(()=>{Y2=document.createRange(),md=class{constructor(e,t){this.fragment=e,this.behaviors=t,this.source=null,this.context=null,this.firstChild=e.firstChild,this.lastChild=e.lastChild}appendTo(e){e.appendChild(this.fragment)}insertBefore(e){if(this.fragment.hasChildNodes())e.parentNode.insertBefore(this.fragment,e);else{let t=this.lastChild;if(e.previousSibling===t)return;let r=e.parentNode,n=this.firstChild,s;for(;n!==t;)s=n.nextSibling,r.insertBefore(n,e),n=s;r.insertBefore(t,e)}}remove(){let e=this.fragment,t=this.lastChild,r=this.firstChild,n;for(;r!==t;)n=r.nextSibling,e.appendChild(r),r=n;e.appendChild(t)}dispose(){let e=this.firstChild.parentNode,t=this.lastChild,r=this.firstChild,n;for(;r!==t;)n=r.nextSibling,e.removeChild(r),r=n;e.removeChild(t);let s=this.behaviors,o=this.source;for(let a=0,l=s.length;a<l;++a)s[a].unbind(o)}bind(e,t){let r=this.behaviors;if(this.source!==e)if(this.source!==null){let n=this.source;this.source=e,this.context=t;for(let s=0,o=r.length;s<o;++s){let a=r[s];a.unbind(n),a.bind(e,t)}}else{this.source=e,this.context=t;for(let n=0,s=r.length;n<s;++n)r[n].bind(e,t)}}unbind(){if(this.source===null)return;let e=this.behaviors,t=this.source;for(let r=0,n=e.length;r<n;++r)e[r].unbind(t);this.source=null}static disposeContiguousBatch(e){if(e.length!==0){Y2.setStartBefore(e[0].firstChild),Y2.setEndAfter(e[e.length-1].lastChild),Y2.deleteContents();for(let t=0,r=e.length;t<r;++t){let n=e[t],s=n.behaviors,o=n.source;for(let a=0,l=s.length;a<l;++a)s[a].unbind(o)}}}}});function H(i,...e){let t=[],r="";for(let n=0,s=i.length-1;n<s;++n){let o=i[n],a=e[n];if(r+=o,a instanceof Zg){let l=a;a=()=>l}if(typeof a=="function"&&(a=new Tu(a)),a instanceof pd){let l=$4e.exec(o);l!==null&&(a.targetName=l[2])}a instanceof al?(r+=a.createPlaceholder(t.length),t.push(a)):r+=a}return r+=i[i.length-1],new Zg(r,t)}var Zg,$4e,cB=w(()=>{Gn();no();K2();Jg();ul();Xg();Zg=class{constructor(e,t){this.behaviorCount=0,this.hasHostBehaviors=!1,this.fragment=null,this.targetOffset=0,this.viewBehaviorFactories=null,this.hostBehaviorFactories=null,this.html=e,this.directives=t}create(e){if(this.fragment===null){let u,c=this.html;if(typeof c=="string"){u=document.createElement("template"),u.innerHTML=ue.createHTML(c);let f=u.content.firstElementChild;f!==null&&f.tagName==="TEMPLATE"&&(u=f)}else u=c;let d=uB(u,this.directives);this.fragment=d.fragment,this.viewBehaviorFactories=d.viewBehaviorFactories,this.hostBehaviorFactories=d.hostBehaviorFactories,this.targetOffset=d.targetOffset,this.behaviorCount=this.viewBehaviorFactories.length+this.hostBehaviorFactories.length,this.hasHostBehaviors=this.hostBehaviorFactories.length>0}let t=this.fragment.cloneNode(!0),r=this.viewBehaviorFactories,n=new Array(this.behaviorCount),s=ue.createTemplateWalker(t),o=0,a=this.targetOffset,l=s.nextNode();for(let u=r.length;o<u;++o){let c=r[o],d=c.targetIndex;for(;l!==null;)if(a===d){n[o]=c.createBehavior(l);break}else l=s.nextNode(),a++}if(this.hasHostBehaviors){let u=this.hostBehaviorFactories;for(let c=0,d=u.length;c<d;++c,++o)n[o]=u[c].createBehavior(e)}return new md(t,n)}render(e,t,r){typeof t=="string"&&(t=document.getElementById(t)),r===void 0&&(r=t);let n=this.create(r);return n.bind(e,ol),n.appendTo(t),n}},$4e=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/});function Z2(i){return i.map(e=>e instanceof Qt?Z2(e.styles):[e]).reduce((e,t)=>
12e.concat(t),[])}function dB(i){return i.map(e=>e instanceof Qt?e.behaviors:null).reduce((e,t)=>t===null?e:(e===null&&(e=[]),e.concat(t)),null)}function hB(i){let e=[],t=[];return i.forEach(r=>(r[Qg]?e:t).push(r)),{prepend:e,append:t}}function P4e(){return`fast-style-class-${++F4e}`}var Qt,Qg,fB,pB,X2,F4e,J2,e1=w(()=>{Gn();Qt=class{constructor(){this.targets=new WeakSet}addStylesTo(e){this.targets.add(e)}removeStylesFrom(e){this.targets.delete(e)}isAttachedTo(e){return this.targets.has(e)}withBehaviors(...e){return this.behaviors=this.behaviors===null?e:this.behaviors.concat(e),this}};Qt.create=(()=>{if(ue.supportsAdoptedStyleSheets){let i=new Map;return e=>new X2(e,i)}return i=>new J2(i)})();Qg=Symbol("prependToAdoptedStyleSheets");fB=(i,e)=>{let{prepend:t,append:r}=hB(e);i.adoptedStyleSheets=[...t,...i.adoptedStyleSheets,...r]},pB=(i,e)=>{i.adoptedStyleSheets=i.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(ue.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),fB=(i,e)=>{let{prepend:t,append:r}=hB(e);i.adoptedStyleSheets.splice(0,0,...t),i.adoptedStyleSheets.push(...r)},pB=(i,e)=>{for(let t of e){let r=i.adoptedStyleSheets.indexOf(t);r!==-1&&i.adoptedStyleSheets.splice(r,1)}}}catch{}X2=class extends Qt{constructor(e,t){super(),this.styles=e,this.styleSheetCache=t,this._styleSheets=void 0,this.behaviors=dB(e)}get styleSheets(){if(this._styleSheets===void 0){let e=this.styles,t=this.styleSheetCache;this._styleSheets=Z2(e).map(r=>{if(r instanceof CSSStyleSheet)return r;let n=t.get(r);return n===void 0&&(n=new CSSStyleSheet,n.replaceSync(r),t.set(r,n)),n})}return this._styleSheets}addStylesTo(e){fB(e,this.styleSheets),super.addStylesTo(e)}removeStylesFrom(e){pB(e,this.styleSheets),super.removeStylesFrom(e)}},F4e=0;J2=class extends Qt{constructor(e){super(),this.styles=e,this.behaviors=null,this.behaviors=dB(e),this.styleSheets=Z2(e),this.styleClass=P4e()}addStylesTo(e){let t=this.styleSheets,r=this.styleClass;e=this.normalizeTarget(e);for(let n=0;n<t.length;n++){let s=document.createElement("style");s.innerHTML=t[n],s.className=r,e.append(s)}super.addStylesTo(e)}removeStylesFrom(e){e=this.normalizeTarget(e);let t=e.querySelectorAll(`.${this.styleClass}`);for(let r=0,n=t.length;r<n;++r)e.removeChild(t[r]);super.removeStylesFrom(e)}isAttachedTo(e){return super.isAttachedTo(this.normalizeTarget(e))}normalizeTarget(e){return e===document?document.body:e}}});function O(i,e){let t;function r(n,s){arguments.length>1&&(t.property=s),Xf.locate(n.constructor).push(t)}if(arguments.length>1){t={},r(i,e);return}return t=i===void 0?{}:i,r}var Xf,Au,pe,ku,Q2=w(()=>{no();Gn();Yo();Xf=Object.freeze({locate:Kg()}),Au={toView(i){return i?"true":"false"},fromView(i){return!(i==null||i==="false"||i===!1||i===0)}},pe={toView(i){if(i==null)return null;let e=i*1;return isNaN(e)?null:e.toString()},fromView(i){if(i==null)return null;let e=i*1;return isNaN(e)?null:e}},ku=class{constructor(e,t,r=t.toLowerCase(),n="reflect",s){this.guards=new Set,this.Owner=e,this.name=t,this.attribute=r,this.mode=n,this.converter=s,this.fieldName=`_${t}`,this.callbackName=`${t}Changed`,this.hasCallback=this.callbackName in e.prototype,n==="boolean"&&s===void 0&&(this.converter=Au)}setValue(e,t){let r=e[this.fieldName],n=this.converter;n!==void 0&&(t=n.fromView(t)),r!==t&&(e[this.fieldName]=t,this.tryReflectToAttribute(e),this.hasCallback&&e[this.callbackName](r,t),e.$fastController.notify(this.name))}getValue(e){return ge.track(e,this.name),e[this.fieldName]}onAttributeChangedCallback(e,t){this.guards.has(e)||(this.guards.add(e),this.setValue(e,t),this.guards.delete(e))}tryReflectToAttribute(e){let t=this.mode,r=this.guards;r.has(e)||t==="fromView"||ue.queueUpdate(()=>{r.add(e);let n=e[this.fieldName];switch(t){case"reflect":let s=this.converter;ue.setAttribute(e,this.attribute,s!==void 0?s.toView(n):n);break;case"boolean":ue.setBooleanAttribute(e,this.attribute,n);break}r.delete(e)})}static collect(e,...t){let r=[];t.push(Xf.locate(e));for(let n=0,s=t.length;n<s;++n){let o=t[n];if(o!==void 0)for(let a=0,l=o.length;a<l;++a){let u=o[a];typeof u=="string"?r.push(new ku(e,u)):r.push(new ku(e,u.property,u.attribute,u.mode,u.converter))}}return r}}});var mB,gB,ew,Kn,t1=w(()=>{Yo();no();e1();Q2();mB={mode:"open"},gB={},ew=Eu.getById(4,()=>{let i=new Map;return Object.freeze({register(e){return i.has(e.type)?!1:(i.set(e.type,e),!0)},getByType(e){return i.get(e)}})}),Kn=class{constructor(e,t=e.definition){typeof t=="string"&&(t={name:t}),this.type=e,this.name=t.name,this.template=t.template;let r=ku.collect(e,t.attributes),n=new Array(r.length),s={},o={};for(let a=0,l=r.length;a<l;++a){let u=r[a];n[a]=u.attribute,s[u.name]=u,o[u.attribute]=u}this.attributes=r,this.observedAttributes=n,this.propertyLookup=s,this.attributeLookup=o,this.shadowOptions=t.shadowOptions===void 0?mB:t.shadowOptions===null?void 0:Object.assign(Object.assign({},mB),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?gB:Object.assign(Object.assign({},gB),t.elementOptions),this.styles=t.styles===void 0?void 0:Array.isArray(t.styles)?Qt.create(t.styles):t.styles instanceof Qt?t.styles:Qt.create([t.styles])}get isDefined(){return!!ew.getByType(this.type)}
12define(e=customElements){let t=this.type;if(ew.register(this)){let r=this.attributes,n=t.prototype;for(let s=0,o=r.length;s<o;++s)ge.defineProperty(n,r[s]);Reflect.defineProperty(t,"observedAttributes",{value:this.observedAttributes,enumerable:!0})}return e.get(this.name)||e.define(this.name,t,this.elementOptions),this}};Kn.forType=ew.getByType});function tw(i){return i.shadowRoot||bB.get(i)||null}var bB,N4e,gd,iw=w(()=>{Gn();Kf();no();t1();bB=new WeakMap,N4e={bubbles:!0,composed:!0,cancelable:!0};gd=class extends fd{constructor(e,t){super(e),this.boundObservables=null,this.behaviors=null,this.needsInitialization=!0,this._template=null,this._styles=null,this._isConnected=!1,this.$fastController=this,this.view=null,this.element=e,this.definition=t;let r=t.shadowOptions;if(r!==void 0){let s=e.attachShadow(r);r.mode==="closed"&&bB.set(e,s)}let n=ge.getAccessors(e);if(n.length>0){let s=this.boundObservables=Object.create(null);for(let o=0,a=n.length;o<a;++o){let l=n[o].name,u=e[l];u!==void 0&&(delete e[l],s[l]=u)}}}get isConnected(){return ge.track(this,"isConnected"),this._isConnected}setIsConnected(e){this._isConnected=e,ge.notify(this,"isConnected")}get template(){return this._template}set template(e){this._template!==e&&(this._template=e,this.needsInitialization||this.renderTemplate(e))}get styles(){return this._styles}set styles(e){this._styles!==e&&(this._styles!==null&&this.removeStyles(this._styles),this._styles=e,!this.needsInitialization&&e!==null&&this.addStyles(e))}addStyles(e){let t=tw(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.append(e);else if(!e.isAttachedTo(t)){let r=e.behaviors;e.addStylesTo(t),r!==null&&this.addBehaviors(r)}}removeStyles(e){let t=tw(this.element)||this.element.getRootNode();if(e instanceof HTMLStyleElement)t.removeChild(e);else if(e.isAttachedTo(t)){let r=e.behaviors;e.removeStylesFrom(t),r!==null&&this.removeBehaviors(r)}}addBehaviors(e){let t=this.behaviors||(this.behaviors=new Map),r=e.length,n=[];for(let s=0;s<r;++s){let o=e[s];t.has(o)?t.set(o,t.get(o)+1):(t.set(o,1),n.push(o))}if(this._isConnected){let s=this.element;for(let o=0;o<n.length;++o)n[o].bind(s,ol)}}removeBehaviors(e,t=!1){let r=this.behaviors;if(r===null)return;let n=e.length,s=[];for(let o=0;o<n;++o){let a=e[o];if(r.has(a)){let l=r.get(a)-1;l===0||t?r.delete(a)&&s.push(a):r.set(a,l)}}if(this._isConnected){let o=this.element;for(let a=0;a<s.length;++a)s[a].unbind(o)}}onConnectedCallback(){if(this._isConnected)return;let e=this.element;this.needsInitialization?this.finishInitialization():this.view!==null&&this.view.bind(e,ol);let t=this.behaviors;if(t!==null)for(let[r]of t)r.bind(e,ol);this.setIsConnected(!0)}onDisconnectedCallback(){if(!this._isConnected)return;this.setIsConnected(!1);let e=this.view;e!==null&&e.unbind();let t=this.behaviors;if(t!==null){let r=this.element;for(let[n]of t)n.unbind(r)}}onAttributeChangedCallback(e,t,r){let n=this.definition.attributeLookup[e];n!==void 0&&n.onAttributeChangedCallback(this.element,r)}emit(e,t,r){return this._isConnected?this.element.dispatchEvent(new CustomEvent(e,Object.assign(Object.assign({detail:t},N4e),r))):!1}finishInitialization(){let e=this.element,t=this.boundObservables;if(t!==null){let n=Object.keys(t);for(let s=0,o=n.length;s<o;++s){let a=n[s];e[a]=t[a]}this.boundObservables=null}let r=this.definition;this._template===null&&(this.element.resolveTemplate?this._template=this.element.resolveTemplate():r.template&&(this._template=r.template||null)),this._template!==null&&this.renderTemplate(this._template),this._styles===null&&(this.element.resolveStyles?this._styles=this.element.resolveStyles():r.styles&&(this._styles=r.styles||null)),this._styles!==null&&this.addStyles(this._styles),this.needsInitialization=!1}renderTemplate(e){let t=this.element,r=tw(t)||t;this.view!==null?(this.view.dispose(),this.view=null):this.needsInitialization||ue.removeChildNodes(r),e&&(this.view=e.render(t,r,t))}static forCustomElement(e){let t=e.$fastController;if(t!==void 0)return t;let r=Kn.forType(e.constructor);if(r===void 0)throw new Error("Missing FASTElement definition.");return e.$fastController=new gd(e,r)}}});function vB(i){return class extends i{constructor(){super(),gd.forCustomElement(this)}$emit(e,t,r){return this.$fastController.emit(e,t,r)}connectedCallback(){this.$fastController.onConnectedCallback()}disconnectedCallback(){this.$fastController.onDisconnectedCallback()}attributeChangedCallback(e,t,r){this.$fastController.onAttributeChangedCallback(e,t,r)}}}var cl,_B=w(()=>{iw();t1();cl=Object.assign(vB(HTMLElement),{from(i){return vB(i)},define(i,e){return new Kn(i,e).define().type}})});var dl,rw=w(()=>{dl=class{createCSS(){return""}createBehavior(){}}});function yB(i,e){let t=[],r="",n=[];for(let s=0,o=i.length-1;s<o;++s){r+=i[s];let a=e[s];if(a instanceof dl){let l=a.createBehavior();a=a.createCSS(),l&&n.push(l)}a instanceof Qt||a instanceof CSSStyleSheet?(r.trim()!==""&&(t.push(r),r=""),t.pu
12sh(a)):r+=a}return r+=i[i.length-1],r.trim()!==""&&t.push(r),{styles:t,behaviors:n}}function B(i,...e){let{styles:t,behaviors:r}=yB(i,e),n=Qt.create(t);return r.length&&n.withBehaviors(...r),n}function Jf(i,...e){let{styles:t,behaviors:r}=yB(i,e);return new nw(t,r)}var nw,xB=w(()=>{rw();e1();nw=class extends dl{constructor(e,t){super(),this.behaviors=t,this.css="";let r=e.reduce((n,s)=>(typeof s=="string"?this.css+=s:n.push(s),n),[]);r.length&&(this.styles=Qt.create(r))}createBehavior(){return this}createCSS(){return this.css}bind(e){this.styles&&e.$fastController.addStyles(this.styles),this.behaviors.length&&e.$fastController.addBehaviors(this.behaviors)}unbind(e){this.styles&&e.$fastController.removeStyles(this.styles),this.behaviors.length&&e.$fastController.removeBehaviors(this.behaviors)}}});function Yn(i,e,t){return{index:i,removed:e,addedCount:t}}function z4e(i,e,t,r,n,s){let o=s-n+1,a=t-e+1,l=new Array(o),u,c;for(let d=0;d<o;++d)l[d]=new Array(a),l[d][0]=d;for(let d=0;d<a;++d)l[0][d]=d;for(let d=1;d<o;++d)for(let f=1;f<a;++f)i[e+f-1]===r[n+d-1]?l[d][f]=l[d-1][f-1]:(u=l[d-1][f]+1,c=l[d][f-1]+1,l[d][f]=u<c?u:c);return l}function B4e(i){let e=i.length-1,t=i[0].length-1,r=i[e][t],n=[];for(;e>0||t>0;){if(e===0){n.push(sw),t--;continue}if(t===0){n.push(ow),e--;continue}let s=i[e-1][t-1],o=i[e-1][t],a=i[e][t-1],l;o<a?l=o<s?o:s:l=a<s?a:s,l===s?(s===r?n.push(SB):(n.push(CB),r=s),e--,t--):l===o?(n.push(ow),e--,r=o):(n.push(sw),t--,r=a)}return n.reverse(),n}function q4e(i,e,t){for(let r=0;r<t;++r)if(i[r]!==e[r])return r;return t}function H4e(i,e,t){let r=i.length,n=e.length,s=0;for(;s<t&&i[--r]===e[--n];)s++;return s}function j4e(i,e,t,r){return e<t||r<i?-1:e===t||r===i?0:i<t?e<r?e-t:r-t:r<e?r-i:e-i}function aw(i,e,t,r,n,s){let o=0,a=0,l=Math.min(t-e,s-n);if(e===0&&n===0&&(o=q4e(i,r,l)),t===i.length&&s===r.length&&(a=H4e(i,r,l-o)),e+=o,n+=o,t-=a,s-=a,t-e===0&&s-n===0)return Wn;if(e===t){let b=Yn(e,[],0);for(;n<s;)b.removed.push(r[n++]);return[b]}else if(n===s)return[Yn(e,[],t-e)];let u=B4e(z4e(i,e,t,r,n,s)),c=[],d,f=e,m=n;for(let b=0;b<u.length;++b)switch(u[b]){case SB:d!==void 0&&(c.push(d),d=void 0),f++,m++;break;case CB:d===void 0&&(d=Yn(f,[],0)),d.addedCount++,f++,d.removed.push(r[m]),m++;break;case sw:d===void 0&&(d=Yn(f,[],0)),d.addedCount++,f++;break;case ow:d===void 0&&(d=Yn(f,[],0)),d.removed.push(r[m]),m++;break}return d!==void 0&&c.push(d),c}function V4e(i,e,t,r){let n=Yn(e,t,r),s=!1,o=0;for(let a=0;a<i.length;a++){let l=i[a];if(l.index+=o,s)continue;let u=j4e(n.index,n.index+n.removed.length,l.index,l.index+l.addedCount);if(u>=0){i.splice(a,1),a--,o-=l.addedCount-l.removed.length,n.addedCount+=l.addedCount-u;let c=n.removed.length+l.removed.length-u;if(!n.addedCount&&!c)s=!0;else{let d=l.removed;if(n.index<l.index){let f=n.removed.slice(0,l.index-n.index);wB.apply(f,d),d=f}if(n.index+n.removed.length>l.index+l.addedCount){let f=n.removed.slice(l.index+l.addedCount-n.index);wB.apply(d,f)}n.removed=d,l.index<n.index&&(n.index=l.index)}}else if(n.index<l.index){s=!0,i.splice(a,0,n),a++;let c=n.addedCount-n.removed.length;l.index+=c,o+=c}}s||i.push(n)}function U4e(i){let e=[];for(let t=0,r=i.length;t<r;t++){let n=i[t];V4e(e,n.index,n.removed,n.addedCount)}return e}function IB(i,e){let t=[],r=U4e(e);for(let n=0,s=r.length;n<s;++n){let o=r[n];if(o.addedCount===1&&o.removed.length===1){o.removed[0]!==i[o.index]&&t.push(o);continue}t=t.concat(aw(i,o.index,o.index+o.addedCount,o.removed,0,o.removed.length))}return t}var SB,CB,sw,ow,wB,MB=w(()=>{Yo();SB=0,CB=1,sw=2,ow=3;wB=Array.prototype.push});function lw(i,e){let t=i.index,r=e.length;return t>r?t=r-i.addedCount:t<0&&(t=r+i.removed.length+t-i.addedCount),t<0&&(t=0),i.index=t,i}function TB(){if(EB)return;EB=!0,ge.setArrayObserverFactory(l=>new uw(l));let i=Array.prototype;if(i.$fastPatch)return;Reflect.defineProperty(i,"$fastPatch",{value:1,enumerable:!1});let e=i.pop,t=i.push,r=i.reverse,n=i.shift,s=i.sort,o=i.splice,a=i.unshift;i.pop=function(){let l=this.length>0,u=e.apply(this,arguments),c=this.$fastController;return c!==void 0&&l&&c.addSplice(Yn(this.length,[u],0)),u},i.push=function(){let l=t.apply(this,arguments),u=this.$fastController;return u!==void 0&&u.addSplice(lw(Yn(this.length-arguments.length,[],arguments.length),this)),l},i.reverse=function(){let l,u=this.$fastController;u!==void 0&&(u.flush(),l=this.slice());let c=r.apply(this,arguments);return u!==void 0&&u.reset(l),c},i.shift=function(){let l=this.length>0,u=n.apply(this,arguments),c=this.$fastController;return c!==void 0&&l&&c.addSplice(Yn(0,[u],0)),u},i.sort=function(){let l,u=this.$fastController;u!==void 0&&(u.flush(),l=this.slice());let c=s.apply(this,arguments);return u!==void 0&&u.reset(l),c},i.splice=function(){let l=o.apply(this,arguments),u=this.$fastController;return u!==void 0&&u.addSplice(lw(Yn(+arguments[0],l,arguments.length>2?arguments.length-2:0),this)),l},i.unshift=function(){let l=a.apply(this,arguments),u=this.$fastController;return u!==void 0&&u.addSplice(lw(Yn(0,[],arguments.length),this)),l}}var EB,uw,kB=w(()=>{Gn();MB();Kf();no();EB=!1;uw=class extends nl{constructor(e){super(e),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(e,"$fastController",{value:this,enumerable:!1})}subscribe(e){this.flush(),super.subscribe(e)}addSplice(e){this.splices===void 0?this.splices=[e]:this.splices.push(e),this.needsQueue&&(this.needsQueue=!1,ue.queueUpdate(this))}reset(e){this.oldCollection=e,this.needsQueue&&(this.needsQueue=!1,ue.queueUpdate(this))}flush(){let e=this.splices,t=this.oldCollection;if(e===void 0&&t===void 0)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;let r=t===void 0?IB(this.source,e):aw(this.source,0,this.source.length,t,0,t.length);this.notify(r)}}});function Te(i){return new ll("fast-ref",cw,i)}var cw,AB=w(()=>{ul();cw=class{constructor(e,t){this.target=e,this.propertyName=t}bind(e){e[this.propertyName]=this.target}unbind(){}}});var dw,RB=w(()=>{dw=i=>typeof i=="function"});function DB(i){return i===void 0?W4e:dw(i)?i:()=>i}function Ke(i,e,t){let r=dw(i)?i:()=>i,n=DB(e),s=DB(t);return(o,a)=>r(o,a)?n(o,a):s(o,a)}var W4e,OB=w(()=>{RB();W4e=()=>null});function G4e(i,e,t,r){i.bind(e[t],r)}function K4e(i,e,t,r){let n=Object.create(r);n.index=t,n.length=e.length,i.bind(e[t],n)}var nJe,hw,Xo,LB=w(()=>{Gn();no();kB();Yo();ul();Jg();nJe=Object.freeze({positioning:!1,recycle:!0});hw=class{constructor(e,t,r,n,s,o){this.location=e,this.itemsBinding=t,this.templateBinding=n,this.options=o,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=G4e,this.itemsBindingObserver=ge.binding(t,this,r),this.templateBindingObserver=ge.binding(n,this,s),o.positioning&&(this.bindView=K4e)}bind(e,t){this.source=e,this.originalContext=t,this.childContext=Object.create(t),this.childContext.parent=e,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(e,this.originalContext),this.template=this.templateBindingObserver.observe(e,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,this.itemsObserver!==null&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(e,t){e===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):e===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(t)}observeItems(e=!1){if(!this.items){this.items=Wn;return}let t=this.itemsObserver,r=this.itemsObserver=ge.getNotifier(this.items),n=t!==r;n&&t!==null&&t.unsubscribe(this),(n||e)&&r.subscribe(this)}updateViews(e){let t=this.childContext,r=this.views,n=this.bindView,s=this.items,o=this.template,a=this.options.recycle,l=[],u=0,c=0;for(let d=0,f=e.length;d<f;++d){let m=e[d],b=m.removed,y=0,x=m.index,M=x+m.addedCount,T=r.splice(m.index,b.length),E=c=l.length+T.length;for(;x<M;++x){let A=r[x],R=A?A.firstChild:this.location,$;a&&c>0?(y<=E&&T.length>0?($=T[y],y++):($=l[u],u++),c--):$=o.create(),r.splice(x,0,$),n($,s,x,t),$.insertBefore(R)}T[y]&&l.push(...T.slice(y))}for(let d=u,f=l.length;d<f;++d)l[d].dispose();if(this.options.positioning)for(let d=0,f=r.length;d<f;++d){let m=r[d].context;m.length=f,m.index=d}}refreshAllViews(e=!1){let t=this.items,r=this.childContext,n=this.template,s=this.location,o=this.bindView,a=t.length,l=this.views,u=l.length;
12if((a===0||e||!this.options.recycle)&&(md.disposeContiguousBatch(l),u=0),u===0){this.views=l=new Array(a);for(let c=0;c<a;++c){let d=n.create();o(d,t,c,r),l[c]=d,d.insertBefore(s)}}else{let c=0;for(;c<a;++c)if(c<u){let f=l[c];o(f,t,c,r)}else{let f=n.create();o(f,t,c,r),l.push(f),f.insertBefore(s)}let d=l.splice(c,u-c);for(c=0,a=d.length;c<a;++c)d[c].dispose()}}unbindAllViews(){let e=this.views;for(let t=0,r=e.length;t<r;++t)e[t].unbind()}},Xo=class extends al{constructor(e,t,r){super(),this.itemsBinding=e,this.templateBinding=t,this.options=r,this.createPlaceholder=ue.createBlockPlaceholder,TB(),this.isItemsBindingVolatile=ge.isVolatileBinding(e),this.isTemplateBindingVolatile=ge.isVolatileBinding(t)}createBehavior(e){return new hw(e,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}});function pr(i){return i?function(e,t,r){return e.nodeType===1&&e.matches(i)}:function(e,t,r){return e.nodeType===1}}var bd,i1=w(()=>{no();Yo();bd=class{constructor(e,t){this.target=e,this.options=t,this.source=null}bind(e){let t=this.options.property;this.shouldUpdate=ge.getAccessors(e).some(r=>r.name===t),this.source=e,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(Wn),this.source=null,this.shouldUpdate&&this.disconnect()}handleEvent(){this.updateTarget(this.computeNodes())}computeNodes(){let e=this.getNodes();return this.options.filter!==void 0&&(e=e.filter(this.options.filter)),e}updateTarget(e){this.source[this.options.property]=e}}});function Re(i){return typeof i=="string"&&(i={property:i}),new ll("fast-slotted",fw,i)}var fw,$B=w(()=>{ul();i1();fw=class extends bd{constructor(e,t){super(e,t)}observe(){this.target.addEventListener("slotchange",this)}disconnect(){this.target.removeEventListener("slotchange",this)}getNodes(){return this.target.assignedNodes(this.options)}}});function hl(i){return typeof i=="string"&&(i={property:i}),new ll("fast-children",pw,i)}var pw,FB=w(()=>{ul();i1();pw=class extends bd{constructor(e,t){super(e,t),this.observer=null,t.childList=!0}observe(){this.observer===null&&(this.observer=new MutationObserver(this.handleEvent.bind(this))),this.observer.observe(this.target,this.options)}disconnect(){this.observer.disconnect()}getNodes(){return"subtree"in this.options?Array.from(this.target.querySelectorAll(this.options.selector)):Array.from(this.target.childNodes)}}});var q=w(()=>{Yo();cB();_B();t1();Q2();iw();K2();e1();xB();rw();Jg();no();Kf();Gn();Xg();ul();AB();OB();LB();$B();FB();i1()});var lt,bt,vt,zJe,BJe,Bt=w(()=>{q();lt=class{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}},bt=(i,e)=>H` 13 <span 14 part="end" 15 ${Te("endContainer")} 16 class=${t=>e.end?"end":void 0} 17 > 18 <slot name="end" ${Te("end")} @slotchange="${t=>t.handleEndContentChange()}"> 19 ${e.end||""} 20 </slot> 21 </span> 22`,vt=(i,e)=>H` 23 <span 24 part="start" 25 ${Te("startContainer")} 26 class="${t=>e.start?"start":void 0}" 27 > 28 <slot 29 name="start" 30 ${Te("start")} 31 @slotchange="${t=>t.handleStartContentChange()}" 32 > 33 ${e.start||""} 34 </slot> 35 </span> 36`,zJe=H` 37 <span part="end" ${Te("endContainer")}> 38 <slot 39 name="end" 40 ${Te("end")} 41 @slotchange="${i=>i.handleEndContentChange()}" 42 ></slot> 43 </span> 44`,BJe=H` 45 <span part="start" ${Te("startContainer")}> 46 <slot 47 name="start" 48 ${Te("start")} 49 @slotchange="${i=>i.handleStartContentChange()}" 50 ></slot> 51 </span> 52`});var PB,NB=w(()=>{q();Bt();PB=(i,e)=>H` 53 <template class="${t=>t.expanded?"expanded":""}"> 54 <div 55 class="heading" 56 part="heading" 57 role="heading" 58 aria-level="${t=>t.headinglevel}" 59 > 60 <button 61 class="button" 62 part="button"
63 ${Te("expandbutton")} 64 aria-expanded="${t=>t.expanded}" 65 aria-controls="${t=>t.id}-panel" 66 id="${t=>t.id}" 67 @click="${(t,r)=>t.clickHandler(r.event)}" 68 > 69 <span class="heading-content" part="heading-content"> 70 <slot name="heading"></slot> 71 </span> 72 </button> 73 ${vt(i,e)} 74 ${bt(i,e)} 75 <span class="icon" part="icon" aria-hidden="true"> 76 <slot name="expanded-icon" part="expanded-icon"> 77 ${e.expandedIcon||""} 78 </slot> 79 <slot name="collapsed-icon" part="collapsed-icon"> 80 ${e.collapsedIcon||""} 81 </slot> 82 <span> 83 </div> 84 <div 85 class="region" 86 part="region" 87 id="${t=>t.id}-panel" 88 role="region" 89 aria-labelledby="${t=>t.id}" 90 > 91 <slot></slot> 92 </div> 93 </template> 94`});function k(i,e,t,r){var n=arguments.length,s=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(s=(n<3?o(s):n>3?o(e,t,s):o(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s}var De=w(()=>{});function Zf(i){let e=i.slice(),t=Object.keys(i),r=t.length,n;for(let s=0;s<r;++s)n=t[s],XB(n)||(e[n]=i[n]);return e}function BB(i){return e=>Reflect.getOwnMetadata(i,e)}function o1(i){return function(e){let t=function(r,n,s){It.inject(t)(r,n,s)};return t.$isResolver=!0,t.resolve=function(r,n){return i(e,r,n)},t}}function Z4e(i){return function(e,t){t=!!t;let r=function(n,s,o){It.inject(r)(n,s,o)};return r.$isResolver=!0,r.resolve=function(n,s){return i(e,n,s,t)},r}}function xw(i,e,t){It.inject(xw)(i,e,t)}function GB(i,e){return e.getFactory(i).construct(e)}function HB(i){return this.get(i)}function Q4e(i,e){return e(i)}function s1(i){return typeof i.register=="function"}function tSe(i){return s1(i)&&typeof i.registerInRequestor=="boolean"}function jB(i){return tSe(i)&&i.registerInRequestor}function iSe(i){return i.prototype!==void 0}function YB(i){return function(e,t,r){if(vw.has(r))return vw.get(r);let n=i(e,t,r);return vw.set(r,n),n}}function r1(i){if(i==null)throw new Error("key/value cannot be null or undefined. Are you trying to inject/register something that doesn't exist with DI?")}function VB(i,e,t){if(i instanceof Lr&&i.strategy===4){let r=i.state,n=r.length,s=new Array(n);for(;n--;)s[n]=r[n].resolve(e,t);return s}return[i.resolve(e,t)]}function WB(i){return typeof i=="object"&&i!==null||typeof i=="function"}function XB(i){switch(typeof i){case"number":return i>=0&&(i|0)===i;case"string":{let e=n1[i];if(e!==void 0)return e;let t=i.length;if(t===0)return n1[i]=!1;let r=0;for(let n=0;n<t;++n)if(r=i.charCodeAt(n),n===0&&r===48&&t>1||r<48||r>57)return n1[i]=!1;return n1[i]=!0}default:return!1}}var mw,_w,Y4e,gw,zB,qB,It,X4e,GJe,J4e,KJe,YJe,XJe,JJe,ZJe,Lr,yw,eSe,rSe,KB,bw,Ru,vw,Du,UB,nSe,n1,a1=w(()=>{q();mw=new Map;"metadata"in Reflect||(Reflect.metadata=function(i,e){return function(t){Reflect.defineMetadata(i,e,t)}},Reflect.defineMetadata=function(i,e,t){let r=mw.get(t);r===void 0&&mw.set(t,r=new Map),r.set(i,e)},Reflect.getOwnMetadata=function(i,e){let t=mw.get(e);if(t!==void 0)return t.get(i)});_w=class{constructor(e,t){this.container=e,this.key=t}instance(e){return this.registerResolver(0,e)}singleton(e){return this.registerResolver(1,e)}transient(e){return this.registerResolver(2,e)}callback(e){return this.registerResolver(3,e)}cachedCallback(e){return this.registerResolver(3,YB(e))}aliasTo(e){return this.registerResolver(5,e)}registerResolver(e,t){let{container:r,key:n}=this;return this.container=this.key=void 0,r.registerResolver(n,new Lr(n,e,t))}};Y4e=Object.freeze({none(i){throw Error(`${i.toString()} not registered, did you forget to add @singleton()?`)},singleton(i){return new Lr(i,1,i)},transient(i){return new Lr(i,2,i)}}),gw=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:Y4e.singleton})}),zB=new Map;qB=null,It=Object.freeze({createContainer(i){return new Ru(null,Object.assign({},gw.default,i))},findResponsibleContainer(i){let e=i.$$container$$;return e&&e.responsibleForOwnerRequests?e:It.findParentContainer(i)},findParentContainer(i){let e=new CustomEvent(KB,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return i.dispatchEvent(e),e.detail.container||It.getOrCreateDOMContainer()},getOrCreateDOMContainer(i,e){return i?i.$$container$$||new Ru(i,Object.assign({},gw.default,e,{parentLocator:It.findParentContainer})):qB||(qB=new Ru(null,Object.assign({},gw.default,e,{parentLocator:()=>null})))},getDesignParamtypes:BB("design:paramtypes"),getAnnotationParamtypes:BB("di:paramtypes"),getOrCreateAnnotationParamTypes(i){let e=this.getAnnotationParamtypes(i);return e===void 0&&Reflect.defineMetadata("di:paramtypes",e=[],i),e},getDependencies(i){let e=zB.get(i);if(e===void 0){let t=i.inject;if(t===void 0){let r=It.getDesignParamtypes(i),n=It.getAnnotationParamtypes(i);if(r===void 0)if(n===void 0){let s=Object.getPrototypeOf(i);typeof s=="function"&&s!==Function.prototype?e=Zf(It.getDependencies(s)):e=[]}else e=Zf(n);else if(n===void 0)e=Zf(r);else{e=Zf(r);let s=n.length,o;for(let u=0;u<s;++u)o=n[u],o!==void 0&&(e[u]=o);let a=Object.keys(n);s=a.length;let l;for(let u=0;u<s;++u)l=a[u],XB(l)||(e[l]=n[l])}}else e=Zf(t);zB.set(i,e)}return e},defineProperty(i,e,t,r=!1){let n=`$di_${e}`;Reflect.defineProperty(i,e,{get:function(){let s=this[n];if(s===void 0&&(s=(this instanceof HTMLElement?It.findResponsibleContainer(this):It.getOrCreateDOMContainer()).get(t),this[n]=s,r&&this instanceof cl)){let a=this.$fastController,l=()=>{let c=It.findResponsibleContainer(this).get(t),d=this[n];c!==d&&(this[n]=s,a.notify(e))};a.subscribe({handleChange:l},"isConnected")}return s}})},createInterface(i,e){let t=typeof i=="function"?i:e,r=typeof i=="string"?i:i&&"friendlyName"in i&&i.friendlyName||UB,n=typeof i=="string"?!1:i&&"respectConnection"in i&&i.respectConnection||!1,s=function(o,a,l){if(o==null||new.target!==void 0)throw new Error(`No registration for interface: '${s.friendlyName}'`);if(a)It.defineProperty(o,a,s,n);else{let u=It.getOrCreateAnnotationParamTypes(o);u[l]=s}};return s.$isInterface=!0,s.friendlyName=r??"(anonymous)",t!=null&&(s.register=function(o,a){return t(new _w(o,a??s))}),s.toString=function(){return`InterfaceSymbol<${s.friendlyName}>`},s},inject(...i){return function(e,t,r){if(typeof r=="number"){let n=It.getOrCreateAnnotationParamTypes(e),s=i[0];s!==void 0&&(n[r]=s)}else if(t)It.defineProperty(e,t,i[0]);else{let n=r?It.getOrCreateAnnotationParamTypes(r.value):It.getOrCreateAnnotationParamTypes(e),s;for(let o=0;o<i.length;++o)s=i[o],s!==void 0&&(n[o]=s)}}},transient(i){return i.register=function(t){return Du.transient(i,i).register(t)},i.registerInRequestor=!1,i},singleton(i,e=J4e){return i.register=function(r){return Du.singleton(i,i).register(r)},i.registerInRequestor=e.scoped,i}}),X4e=It.createInterface("Container");GJe=It.inject,J4e={scoped:!1};KJe=Z4e((i,e,t,r)=>t.getAll(i,r)),YJe=o1((i,e,t)=>()=>t.get(i)),XJe=o1((i,e,t)=>{if(t.has(i,!0))return t.get(i)});xw.$isResolver=!0;xw.resolve=()=>{};JJe=o1((i,e,t)=>{let r=GB(i,e),n=new Lr(i,0,r);return t.registerResolver(i,n),r}),ZJe=o1((i,e,t)=>GB(i,e));Lr=class{constructor(e,t,r){this.key=e,this.strategy=t,this.state=r,this.resolving=!1}get $isResolver(){return!0}register(e){return e.registerResolver(this.key,this)}resolve(e,t){switch(this.strategy){case 0:return this.state;case 1:{if(this.resolving)throw new Error(`Cyclic dependency foun
94d: ${this.state.name}`);return this.resolving=!0,this.state=e.getFactory(this.state).construct(t),this.strategy=0,this.resolving=!1,this.state}case 2:{let r=e.getFactory(this.state);if(r===null)throw new Error(`Resolver for ${String(this.key)} returned a null factory`);return r.construct(t)}case 3:return this.state(e,t,this);case 4:return this.state[0].resolve(e,t);case 5:return t.get(this.state);default:throw new Error(`Invalid resolver strategy specified: ${this.strategy}.`)}}getFactory(e){var t,r,n;switch(this.strategy){case 1:case 2:return e.getFactory(this.state);case 5:return(n=(r=(t=e.getResolver(this.state))===null||t===void 0?void 0:t.getFactory)===null||r===void 0?void 0:r.call(t,e))!==null&&n!==void 0?n:null;default:return null}}};yw=class{constructor(e,t){this.Type=e,this.dependencies=t,this.transformers=null}construct(e,t){let r;return t===void 0?r=new this.Type(...this.dependencies.map(HB,e)):r=new this.Type(...this.dependencies.map(HB,e),...t),this.transformers==null?r:this.transformers.reduce(Q4e,r)}registerTransformer(e){(this.transformers||(this.transformers=[])).push(e)}},eSe={$isResolver:!0,resolve(i,e){return e}};rSe=new Set(["Array","ArrayBuffer","Boolean","DataView","Date","Error","EvalError","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Number","Object","Promise","RangeError","ReferenceError","RegExp","Set","SharedArrayBuffer","String","SyntaxError","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","URIError","WeakMap","WeakSet"]),KB="__DI_LOCATE_PARENT__",bw=new Map,Ru=class{constructor(e,t){this.owner=e,this.config=t,this._parent=void 0,this.registerDepth=0,this.context=null,e!==null&&(e.$$container$$=this),this.resolvers=new Map,this.resolvers.set(X4e,eSe),e instanceof Node&&e.addEventListener(KB,r=>{r.composedPath()[0]!==this.owner&&(r.detail.container=this,r.stopImmediatePropagation())})}get parent(){return this._parent===void 0&&(this._parent=this.config.parentLocator(this.owner)),this._parent}get depth(){return this.parent===null?0:this.parent.depth+1}get responsibleForOwnerRequests(){return this.config.responsibleForOwnerRequests}registerWithContext(e,...t){return this.context=e,this.register(...t),this.context=null,this}register(...e){if(++this.registerDepth===100)throw new Error("Unable to autoregister dependency");let t,r,n,s,o,a=this.context;for(let l=0,u=e.length;l<u;++l)if(t=e[l],!!WB(t))if(s1(t))t.register(this,a);else if(iSe(t))Du.singleton(t,t).register(this);else for(r=Object.keys(t),s=0,o=r.length;s<o;++s)n=t[r[s]],WB(n)&&(s1(n)?n.register(this,a):this.register(n));return--this.registerDepth,this}registerResolver(e,t){r1(e);let r=this.resolvers,n=r.get(e);return n==null?r.set(e,t):n instanceof Lr&&n.strategy===4?n.state.push(t):r.set(e,new Lr(e,4,[n,t])),t}registerTransformer(e,t){let r=this.getResolver(e);if(r==null)return!1;if(r.getFactory){let n=r.getFactory(this);return n==null?!1:(n.registerTransformer(t),!0)}return!1}getResolver(e,t=!0){if(r1(e),e.resolve!==void 0)return e;let r=this,n;for(;r!=null;)if(n=r.resolvers.get(e),n==null){if(r.parent==null){let s=jB(e)?this:r;return t?this.jitRegister(e,s):null}r=r.parent}else return n;return null}has(e,t=!1){return this.resolvers.has(e)?!0:t&&this.parent!=null?this.parent.has(e,!0):!1}get(e){if(r1(e),e.$isResolver)return e.resolve(this,this);let t=this,r;for(;t!=null;)if(r=t.resolvers.get(e),r==null){if(t.parent==null){let n=jB(e)?this:t;return r=this.jitRegister(e,n),r.resolve(t,this)}t=t.parent}else return r.resolve(t,this);throw new Error(`Unable to resolve key: ${String(e)}`)}getAll(e,t=!1){r1(e);let r=this,n=r,s;if(t){let o=Wn;for(;n!=null;)s=n.resolvers.get(e),s!=null&&(o=o.concat(VB(s,n,r))),n=n.parent;return o}else for(;n!=null;)if(s=n.resolvers.get(e),s==null){if(n=n.parent,n==null)return Wn}else return VB(s,n,r);return Wn}getFactory(e){let t=bw.get(e);if(t===void 0){if(nSe(e))throw new Error(`${e.name} is a native function and therefore cannot be safely constructed by DI. If this is intentional, please use a callback or cachedCallback resolver.`);bw.set(e,t=new yw(e,It.getDependencies(e)))}return t}registerFactory(e,t){bw.set(e,t)}createChild(e){return new Ru(null,Object.assign({},this.config,e,{parentLocator:()=>this}))}jitRegister(e,t){if(typeof e!="function")throw new Error(`Attempted to jitRegister something that is not a constructor: '${e}'. Did you forget to register this dependency?`);if(rSe.has(e.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${e.name}. Did you forget to add @inject(Key)`);if(s1(e)){let r=e.register(t);if(!(r instanceof Object)||r.resolve==null){let n=t.resolvers.get(e);if(n!=null)return n;throw new Error("A valid resolver was not returned from the static register method")}return r}else{if(e.$isInterface)throw new Error(`Attempted to jitRegister an interface: ${e.friendlyName}`);{let r=this.config.defaultResolver(e,t);return t.resolvers.set(e,r),r}}}},vw=new WeakMap;Du=Object.freeze({instance(i,e){return new Lr(i,0,e)},singleton(i,e){return new Lr(i,1,e)},transient(i,e){return new Lr(i,2,e)},callback(i,e){return new Lr(i,3,e)},cachedCallback(i,e){return new Lr(i,3,YB(e))},aliasTo(i,e){return new Lr(e,5,i)}});UB="(anonymous)";nSe=function(){let i=new WeakMap,e=!1,t="",r=0;return function(n){return e=i.get(n),e===void 0&&(t=n.toString(),r=t.length,e=r>=29&&r<=100&&t.charCodeAt(r-1)===125&&t.charCodeAt(r-2)<=32&&t.charCodeAt(r-3)===93&&t.charCodeAt(r-4)===101&&t.charCodeAt(r-5)===100&&t.charCodeAt(r-6)===111&&t.charCodeAt(r-7)===99&&t.charCodeAt(r-8)===32&&t.charCodeAt(r-9)===101&&t.charCodeAt(r-10)===118&&t.charCodeAt(r-11)===105&&t.charCodeAt(r-12)===116&&t.charCodeAt(r-13)===97&&t.charCodeAt(r-14)===110&&t.charCodeAt(r-15)===88,i.set(n,e)),e}}(),n1={}});function JB(i){return`${i.toLowerCase()}:presentation`}var l1,c1,u1,d1=w(()=>{q();a1();l1=new Map,c1=Object.freeze({define(i,e,t){let r=JB(i);l1.get(r)===void 0?l1.set(r,e):l1.set(r,!1),t.register(Du.instance(r,e))},forTag(i,e){let t=JB(i),r=l1.get(t);return r===!1?It.findResponsibleContainer(e).get(t):r||null}}),u1=class{constructor(e,t){this.template=e||null,this.styles=t===void 0?null:Array.isArray(t)?Qt.create(t):t instanceof Qt?t:Qt.create([t])}applyTo(e){let t=e.$fastController;t.template===null&&(t.template=this.template),t.styles===null&&(t.styles=this.styles)}}});function Qf(i,e,t){return typeof i=="function"?i(e,t):i}var ee,ep,Oe=w(()=>{De();q();d1();ee=class extends cl{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=c1.forTag(this.tagName,this)),this._presentation}templateChanged(){this.template!==void 0&&(this.$fastController.template=this.template)}stylesChanged(){this.styles!==void 0&&(this.$fastController.styles=this.styles)}connectedCallback(){this.$presentation!==null&&this.$presentation.applyTo(this),super.connectedCallback()}static compose(e){return(t={})=>new ep(this===ee?class extends ee{}:this,e,t)}};k([N],ee.prototype,"template",void 0);k([N],ee.prototype,"styles",void 0);ep=class{constructor(e,t,r){this.type=e,this.elementDefinition=t,this.overrideDefinition=r,this.definition=Object.assign(Object.assign({},this.elementDefinition),this.overrideDefinition)}register(e,t){let r=this.definition,n=this.overrideDefinition,o=`${r.prefix||t.elementPrefix}-${r.baseName}`;
94t.tryDefineElement({name:o,type:this.type,baseClass:this.elementDefinition.baseClass,callback:a=>{let l=new u1(Qf(r.template,a,r),Qf(r.styles,a,r));a.definePresentation(l);let u=Qf(r.shadowOptions,a,r);a.shadowRootMode&&(u?n.shadowOptions||(u.mode=a.shadowRootMode):u!==null&&(u={mode:a.shadowRootMode})),a.defineElement({elementOptions:Qf(r.elementOptions,a,r),shadowOptions:u,attributes:Qf(r.attributes,a,r)})}})}}});function ze(i,...e){let t=Xf.locate(i);e.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(i.prototype,s,Object.getOwnPropertyDescriptor(r.prototype,s))}),Xf.locate(r).forEach(s=>t.push(s))})}var ji=w(()=>{q()});var Ss,ww=w(()=>{De();q();Oe();Bt();ji();Ss=class extends ee{constructor(){super(...arguments),this.headinglevel=2,this.expanded=!1,this.clickHandler=e=>{this.expanded=!this.expanded,this.change()},this.change=()=>{this.$emit("change")}}};k([O({attribute:"heading-level",mode:"fromView",converter:pe})],Ss.prototype,"headinglevel",void 0);k([O({mode:"boolean"})],Ss.prototype,"expanded",void 0);k([O],Ss.prototype,"id",void 0);ze(Ss,lt)});var ZB=w(()=>{NB();ww()});var QB,eq=w(()=>{q();QB=(i,e)=>H` 95 <template> 96 <slot ${Re({property:"accordionItems",filter:pr()})}></slot> 97 <slot name="item" part="item" ${Re("accordionItems")}></slot> 98 </template> 99`});var et,tq=w(()=>{et={horizontal:"horizontal",vertical:"vertical"}});function iq(i,e){let t=i.length;for(;t--;)if(e(i[t],t,i))return t;return-1}var rq=w(()=>{});var nq=w(()=>{});function h1(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var sq=w(()=>{});var oq=w(()=>{});var aq=w(()=>{});var lq=w(()=>{});var Sw=w(()=>{sq();oq();aq();lq()});function so(...i){return i.every(e=>e instanceof HTMLElement)}function uq(i,e){return!i||!e||!so(i)?void 0:Array.from(i.querySelectorAll(e)).filter(r=>r.offsetParent!==null)}function sSe(){let i=document.querySelector('meta[property="csp-nonce"]');return i?i.getAttribute("content"):null}function cq(){if(typeof Ou=="boolean")return Ou;if(!h1())return Ou=!1,Ou;let i=document.createElement("style"),e=sSe();e!==null&&i.setAttribute("nonce",e),document.head.appendChild(i);try{i.sheet.insertRule("foo:focus-visible {color:inherit}",0),Ou=!0}catch{Ou=!1}finally{document.head.removeChild(i)}return Ou}var Ou,dq=w(()=>{Sw()});var Cw,Iw,Jo,Zo,Mw,Ew,hq=w(()=>{Cw="focus",Iw="focusin",Jo="focusout",Zo="keydown",Mw="resize",Ew="scroll"});var fq=w(()=>{});var pq,At,mr,gr,Rt,ei,Jr,_i,yi,mq,gq,bq,Zr,fl,vq,_q,Qr,yq=w(()=>{(function(i){i[i.alt=18]="alt",i[i.arrowDown=40]="arrowDown",i[i.arrowLeft=37]="arrowLeft",i[i.arrowRight=39]="arrowRight",i[i.arrowUp=38]="arrowUp",i[i.back=8]="back",i[i.backSlash=220]="backSlash",i[i.break=19]="break",i[i.capsLock=20]="capsLock",i[i.closeBracket=221]="closeBracket",i[i.colon=186]="colon",i[i.colon2=59]="colon2",i[i.comma=188]="comma",i[i.ctrl=17]="ctrl",i[i.delete=46]="delete",i[i.end=35]="end",i[i.enter=13]="enter",i[i.equals=187]="equals",i[i.equals2=61]="equals2",i[i.equals3=107]="equals3",i[i.escape=27]="escape",i[i.forwardSlash=191]="forwardSlash",i[i.function1=112]="function1",i[i.function10=121]="function10",i[i.function11=122]="function11",i[i.function12=123]="function12",i[i.function2=113]="function2",i[i.function3=114]="function3",i[i.function4=115]="function4",i[i.function5=116]="function5",i[i.function6=117]="function6",i[i.function7=118]="function7",i[i.function8=119]="function8",i[i.function9=120]="function9",i[i.home=36]="home",i[i.insert=45]="insert",i[i.menu=93]="menu",i[i.minus=189]="minus",i[i.minus2=109]="minus2",i[i.numLock=144]="numLock",i[i.numPad0=96]="numPad0",i[i.numPad1=97]="numPad1",i[i.numPad2=98]="numPad2",i[i.numPad3=99]="numPad3",i[i.numPad4=100]="numPad4",i[i.numPad5=101]="numPad5",i[i.numPad6=102]="numPad6",i[i.numPad7=103]="numPad7",i[i.numPad8=104]="numPad8",i[i.numPad9=105]="numPad9",i[i.numPadDivide=111]="numPadDivide",i[i.numPadDot=110]="numPadDot",i[i.numPadMinus=109]="numPadMinus",i[i.numPadMultiply=106]="numPadMultiply",i[i.numPadPlus=107]="numPadPlus",i[i.openBracket=219]="openBracket",i[i.pageDown=34]="pageDown",i[i.pageUp=33]="pageUp",i[i.period=190]="period",i[i.print=44]="print",i[i.quote=222]="quote",i[i.scrollLock=145]="scrollLock",i[i.shift=16]="shift",i[i.space
99=32]="space",i[i.tab=9]="tab",i[i.tilde=192]="tilde",i[i.windowsLeft=91]="windowsLeft",i[i.windowsOpera=219]="windowsOpera",i[i.windowsRight=92]="windowsRight"})(pq||(pq={}));At="ArrowDown",mr="ArrowLeft",gr="ArrowRight",Rt="ArrowUp",ei="Enter",Jr="Escape",_i="Home",yi="End",mq="F2",gq="PageDown",bq="PageUp",Zr=" ",fl="Tab",vq="Backspace",_q="Delete",Qr={ArrowDown:At,ArrowLeft:mr,ArrowRight:gr,ArrowUp:Rt}});var qe,Tw=w(()=>{(function(i){i.ltr="ltr",i.rtl="rtl"})(qe||(qe={}))});function xq(i,e,t){return t<i?e:t>e?i:t}function oo(i,e,t){return Math.min(Math.max(t,i),e)}function tp(i,e,t=0){return[e,t]=[e,t].sort((r,n)=>r-n),e<=i&&i<t}var wq=w(()=>{});function Cn(i=""){return`${i}${oSe++}`}var oSe,Sq=w(()=>{oSe=0});var Cq=w(()=>{});var ut,Iq=w(()=>{Sw();Tw();ut=class{static getScrollLeft(e,t){return t===qe.rtl?ut.getRtlScrollLeftConverter(e):e.scrollLeft}static setScrollLeft(e,t,r){if(r===qe.rtl){ut.setRtlScrollLeftConverter(e,t);return}e.scrollLeft=t}static initialGetRtlScrollConverter(e){return ut.initializeRtlScrollConverters(),ut.getRtlScrollLeftConverter(e)}static directGetRtlScrollConverter(e){return e.scrollLeft}static invertedGetRtlScrollConverter(e){return-Math.abs(e.scrollLeft)}static reverseGetRtlScrollConverter(e){return e.scrollLeft-(e.scrollWidth-e.clientWidth)}static initialSetRtlScrollConverter(e,t){ut.initializeRtlScrollConverters(),ut.setRtlScrollLeftConverter(e,t)}static directSetRtlScrollConverter(e,t){e.scrollLeft=t}static invertedSetRtlScrollConverter(e,t){e.scrollLeft=Math.abs(t)}static reverseSetRtlScrollConverter(e,t){let r=e.scrollWidth-e.clientWidth;e.scrollLeft=r+t}static initializeRtlScrollConverters(){if(!h1()){ut.applyDirectScrollConverters();return}let e=ut.getTestElement();document.body.appendChild(e),ut.checkForScrollType(e),document.body.removeChild(e)}static checkForScrollType(e){ut.isReverse(e)?ut.applyReverseScrollConverters():ut.isDirect(e)?ut.applyDirectScrollConverters():ut.applyInvertedScrollConverters()}static isReverse(e){return e.scrollLeft>0}static isDirect(e){return e.scrollLeft=-1,e.scrollLeft<0}static applyDirectScrollConverters(){ut.setRtlScrollLeftConverter=ut.directSetRtlScrollConverter,ut.getRtlScrollLeftConverter=ut.directGetRtlScrollConverter}static applyInvertedScrollConverters(){ut.setRtlScrollLeftConverter=ut.invertedSetRtlScrollConverter,ut.getRtlScrollLeftConverter=ut.invertedGetRtlScrollConverter}static applyReverseScrollConverters(){ut.setRtlScrollLeftConverter=ut.reverseSetRtlScrollConverter,ut.getRtlScrollLeftConverter=ut.reverseGetRtlScrollConverter}static getTestElement(){let e=document.createElement("div");return e.appendChild(document.createTextNode("ABCD")),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",e}};ut.getRtlScrollLeftConverter=ut.initialGetRtlScrollConverter;ut.setRtlScrollLeftConverter=ut.initialSetRtlScrollConverter});var L,Mq=w(()=>{(function(i){i.Canvas="Canvas",i.CanvasText="CanvasText",i.LinkText="LinkText",i.VisitedText="VisitedText",i.ActiveText="ActiveText",i.ButtonFace="ButtonFace",i.ButtonText="ButtonText",i.Field="Field",i.FieldText="FieldText",i.Highlight="Highlight",i.HighlightText="HighlightText",i.GrayText="GrayText"})(L||(L={}))});var ye=w(()=>{tq();rq();nq();dq();hq();fq();yq();Tw();wq();Sq();Cq();Iq();Mq()});var Eq,vd,Tq=w(()=>{De();q();ye();Oe();ww();Eq={single:"single",multi:"multi"},vd=class extends ee{constructor(){super(...arguments),this.expandmode=Eq.multi,this.activeItemIndex=0,this.change=()=>{this.$emit("change",this.activeid)},this.setItems=()=>{var e;this.accordionItems.length!==0&&(this.accordionIds=this.getItemIds(),this.accordionItems.forEach((t,r)=>{t instanceof Ss&&(t.addEventListener("change",this.activeItemChange),this.isSingleExpandMode()&&(this.activeItemIndex!==r?t.expanded=!1:t.expanded=!0));let n=this.accordionIds[r];t.setAttribute("id",typeof n!="string"?`accordion-${r+1}`:n),this.activeid=this.accordionIds[this.activeItemIndex],t.addEventListener("keydown",this.handleItemKeyDown),t.addEventListener("focus",this.handleItemFocus)}),this.isSingleExpandMode()&&((e=this.findExpandedItem())!==null&&e!==void 0?e:this.accordionItems[0]).setAttribute("aria-disabled","true"))},this.removeItemListeners=e=>{e.forEach((t,r)=>
99{t.removeEventListener("change",this.activeItemChange),t.removeEventListener("keydown",this.handleItemKeyDown),t.removeEventListener("focus",this.handleItemFocus)})},this.activeItemChange=e=>{if(e.defaultPrevented||e.target!==e.currentTarget)return;e.preventDefault();let t=e.target;this.activeid=t.getAttribute("id"),this.isSingleExpandMode()&&(this.resetItems(),t.expanded=!0,t.setAttribute("aria-disabled","true"),this.accordionItems.forEach(r=>{!r.hasAttribute("disabled")&&r.id!==this.activeid&&r.removeAttribute("aria-disabled")})),this.activeItemIndex=Array.from(this.accordionItems).indexOf(t),this.change()},this.handleItemKeyDown=e=>{if(e.target===e.currentTarget)switch(this.accordionIds=this.getItemIds(),e.key){case Rt:e.preventDefault(),this.adjust(-1);break;case At:e.preventDefault(),this.adjust(1);break;case _i:this.activeItemIndex=0,this.focusItem();break;case yi:this.activeItemIndex=this.accordionItems.length-1,this.focusItem();break}},this.handleItemFocus=e=>{if(e.target===e.currentTarget){let t=e.target,r=this.activeItemIndex=Array.from(this.accordionItems).indexOf(t);this.activeItemIndex!==r&&r!==-1&&(this.activeItemIndex=r,this.activeid=this.accordionIds[this.activeItemIndex])}}}accordionItemsChanged(e,t){this.$fastController.isConnected&&(this.removeItemListeners(e),this.setItems())}findExpandedItem(){for(let e=0;e<this.accordionItems.length;e++)if(this.accordionItems[e].getAttribute("expanded")==="true")return this.accordionItems[e];return null}resetItems(){this.accordionItems.forEach((e,t)=>{e.expanded=!1})}getItemIds(){return this.accordionItems.map(e=>e.getAttribute("id"))}isSingleExpandMode(){return this.expandmode===Eq.single}adjust(e){this.activeItemIndex=xq(0,this.accordionItems.length-1,this.activeItemIndex+e),this.focusItem()}focusItem(){let e=this.accordionItems[this.activeItemIndex];e instanceof Ss&&e.expandbutton.focus()}};k([O({attribute:"expand-mode"})],vd.prototype,"expandmode",void 0);k([N],vd.prototype,"accordionItems",void 0)});var kq=w(()=>{eq();Tq()});var f1,kw=w(()=>{q();Bt();f1=(i,e)=>H` 100 <a 101 class="control" 102 part="control" 103 download="${t=>t.download}" 104 href="${t=>t.href}" 105 hreflang="${t=>t.hreflang}" 106 ping="${t=>t.ping}" 107 referrerpolicy="${t=>t.referrerpolicy}" 108 rel="${t=>t.rel}" 109 target="${t=>t.target}" 110 type="${t=>t.type}" 111 aria-atomic="${t=>t.ariaAtomic}" 112 aria-busy="${t=>t.ariaBusy}" 113 aria-controls="${t=>t.ariaControls}" 114 aria-current="${t=>t.ariaCurrent}" 115 aria-describedby="${t=>t.ariaDescribedby}" 116 aria-details="${t=>t.ariaDetails}" 117 aria-disabled="${t=>t.ariaDisabled}" 118 aria-errormessage="${t=>t.ariaErrormessage}" 119 aria-expanded="${t=>t.ariaExpanded}" 120 aria-flowto="${t=>t.ariaFlowto}" 121 aria-haspopup="${t=>t.ariaHaspopup}" 122 aria-hidden="${t=>t.ariaHidden}" 123 aria-invalid="${t=>t.ariaInvalid}" 124 aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" 125 aria-label="${t=>t.ariaLabel}" 126 aria-labelledby="${t=>t.ariaLabelledby}" 127 aria-live="${t=>t.ariaLive}" 128 aria-owns="${t=>t.ariaOwns}" 129 aria-relevant="${t=>t.ariaRelevant}" 130 aria-roledescription="${t=>t.ariaRoledescription}" 131 ${Te("control")} 132 > 133 ${vt(i,e)} 134 <span class="content" part="content"> 135 <slot ${Re("defaultSlottedContent")}></slot> 136 </span> 137 ${bt(i,e)} 138 </a> 139`});var rt,ip=w(()=>{De();q();rt=class{};k([O({attribute:"aria-atomic"})],rt.prototype,"ariaAtomic",void 0);k([O({attribute:"aria-busy"})],rt.prototype,"ariaBusy",void 0);k([O({attribute:"aria-controls"})],rt.prototype,"ariaControls",void 0);k([O({attribute:"aria-current"})],rt.prototype,"ariaCurrent",void 0);k([O({attribute:"aria-describedby"})],rt.prototype,"ariaDescribedby",void 0);k([O({attribute:"aria-details"})],rt.prototype,"ariaDetails",void 0);k([O({attribute:"aria-disabled"})],rt.prototype,"ariaDisabled",void 0);k([O({attribute:"aria-errormessage"})],rt.prototype,"ariaErrormessage",void 0);k([O({attribute:"aria-flowto"})],rt.prototype,"ariaFlowto",void 0);k([O({attribute:"aria-haspopup"})],rt.prototype,"ariaHaspopup",void 0);k([O({attribute:"aria-hidden"})],rt.prototype,"ariaHidden",void 0);k([O({attribute:"aria-invalid"})],rt.prototype,"ariaInvalid",void 0);k([O({attribute:"aria-keyshortcuts"})],rt.prototype,"ariaKeyshortcuts",void 0);k([O({attribute:"aria-label"})],rt.prototype,"ariaLabel",void 0);k([O({attribute:"aria-labelledby"})],rt.prototype,"ariaLabelledby",void 0);k([O({attribute:"aria-live"})],rt.prototype,"ariaLive",void 0);k([O({attribute:"aria-owns"})],rt.prototype,"ariaOwns",void 0);k([O({attribute:"aria-relevant"})],rt.prototype,"ariaRelevant",void 0);k([O({attribute:"aria-roledescription"})],rt.prototype,"ariaRoledescription",void 0)});var Lu=w(()=>{ip();Bt()});var rr,$u,Aw=w(()=>{De();q();Oe();Lu();ji();rr=class extends ee{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((e=this.$fastController.definition.shadowOptions)===null||e===void 0)&&e.delegatesFocus)&&(this.focus=()=>{var t;
139(t=this.control)===null||t===void 0||t.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}};k([O],rr.prototype,"download",void 0);k([O],rr.prototype,"href",void 0);k([O],rr.prototype,"hreflang",void 0);k([O],rr.prototype,"ping",void 0);k([O],rr.prototype,"referrerpolicy",void 0);k([O],rr.prototype,"rel",void 0);k([O],rr.prototype,"target",void 0);k([O],rr.prototype,"type",void 0);k([N],rr.prototype,"defaultSlottedContent",void 0);$u=class{};k([O({attribute:"aria-expanded"})],$u.prototype,"ariaExpanded",void 0);ze($u,rt);ze(rr,lt,$u)});var Aq=w(()=>{kw();Aw()});var Rq,Dq=w(()=>{q();Rq=(i,e)=>H` 140 <template class="${t=>t.initialLayoutComplete?"loaded":""}"> 141 ${Ke(t=>t.initialLayoutComplete,H` 142 <slot></slot> 143 `)} 144 </template> 145`});var $r,pl=w(()=>{ye();$r=i=>{let e=i.closest("[dir]");return e!==null&&e.dir==="rtl"?qe.rtl:qe.ltr}});var p1,Oq=w(()=>{q();p1=class{constructor(){this.intersectionDetector=null,this.observedElements=new Map,this.requestPosition=(e,t)=>{var r;if(this.intersectionDetector!==null){if(this.observedElements.has(e)){(r=this.observedElements.get(e))===null||r===void 0||r.push(t);return}this.observedElements.set(e,[t]),this.intersectionDetector.observe(e)}},this.cancelRequestPosition=(e,t)=>{let r=this.observedElements.get(e);if(r!==void 0){let n=r.indexOf(t);n!==-1&&r.splice(n,1)}},this.initializeIntersectionDetector=()=>{ws.IntersectionObserver&&(this.intersectionDetector=new IntersectionObserver(this.handleIntersection,{root:null,rootMargin:"0px",threshold:[0,1]}))},this.handleIntersection=e=>{if(this.intersectionDetector===null)return;let t=[],r=[];e.forEach(n=>{var s;(s=this.intersectionDetector)===null||s===void 0||s.unobserve(n.target);let o=this.observedElements.get(n.target);o!==void 0&&(o.forEach(a=>{let l=t.indexOf(a);l===-1&&(l=t.length,t.push(a),r.push([])),r[l].push(n)}),this.observedElements.delete(n.target))}),t.forEach((n,s)=>{n(r[s])})},this.initializeIntersectionDetector()}}});var Ue,rp=w(()=>{De();q();ye();Oe();pl();Oq();Ue=class extends ee{constructor(){super(...arguments),this.anchor="",this.viewport="",this.horizontalPositioningMode="uncontrolled",this.horizontalDefaultPosition="unset",this.horizontalViewportLock=!1,this.horizontalInset=!1,this.horizontalScaling="content",this.verticalPositioningMode="uncontrolled",this.verticalDefaultPosition="unset",this.verticalViewportLock=!1,this.verticalInset=!1,this.verticalScaling="content",this.fixedPlacement=!1,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.initialLayoutComplete=!1,this.resizeDetector=null,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.pendingPositioningUpdate=!1,this.pendingReset=!1,this.currentDirection=qe.ltr,this.regionVisible=!1,this.forceUpdate=!1,this.updateThreshold=.5,this.update=()=>{this.pendingPositioningUpdate||this.requestPositionUpdates()},this.startObservers=()=>{this.stopObservers(),this.anchorElement!==null&&(this.requestPositionUpdates(),this.resizeDetector!==null&&(this.resizeDetector.observe(this.anchorElement),this.resizeDetector.observe(this)))},this.requestPositionUpdates=()=>{this.anchorElement===null||this.pendingPositioningUpdate||(Ue.intersectionService.requestPosition(this,this.handleIntersection),Ue.intersectionService.requestPosition(this.anchorElement,this.handleIntersection),this.viewportElement!==null&&Ue.intersectionService.requestPosition(this.viewportElement,this.handleIntersection),this.pendingPositioningUpdate=!0)},this.stopObservers=()=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,Ue.intersectionService.cancelRequestPosition(this,this.handleIntersection),this.anchorElement!==null&&Ue.intersectionService.cancelRequestPosition(this.anchorElement,this.handleIntersection),this.viewportElement!==null&&Ue.intersectionService.cancelRequestPosition(this.viewportElement,this.handleIntersection)),this.resizeDetector!==null&&this.resizeDetector.disconnect()},this.getViewport=()=>typeof this.viewport!="string"||this.viewport===""?document.documentElement:document.getElementById(this.viewport),this.getAnchor=()=>document.getElementById(this.anchor),this.handleIntersection=e=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,this.applyIntersectionEntries(e)&&this.updateLayout())},this.applyIntersectionEntries=e=>{let t=e.find(s=>
145s.target===this),r=e.find(s=>s.target===this.anchorElement),n=e.find(s=>s.target===this.viewportElement);return t===void 0||n===void 0||r===void 0?!1:!this.regionVisible||this.forceUpdate||this.regionRect===void 0||this.anchorRect===void 0||this.viewportRect===void 0||this.isRectDifferent(this.anchorRect,r.boundingClientRect)||this.isRectDifferent(this.viewportRect,n.boundingClientRect)||this.isRectDifferent(this.regionRect,t.boundingClientRect)?(this.regionRect=t.boundingClientRect,this.anchorRect=r.boundingClientRect,this.viewportElement===document.documentElement?this.viewportRect=new DOMRectReadOnly(n.boundingClientRect.x+document.documentElement.scrollLeft,n.boundingClientRect.y+document.documentElement.scrollTop,n.boundingClientRect.width,n.boundingClientRect.height):this.viewportRect=n.boundingClientRect,this.updateRegionOffset(),this.forceUpdate=!1,!0):!1},this.updateRegionOffset=()=>{this.anchorRect&&this.regionRect&&(this.baseHorizontalOffset=this.baseHorizontalOffset+(this.anchorRect.left-this.regionRect.left)+(this.translateX-this.baseHorizontalOffset),this.baseVerticalOffset=this.baseVerticalOffset+(this.anchorRect.top-this.regionRect.top)+(this.translateY-this.baseVerticalOffset))},this.isRectDifferent=(e,t)=>Math.abs(e.top-t.top)>this.updateThreshold||Math.abs(e.right-t.right)>this.updateThreshold||Math.abs(e.bottom-t.bottom)>this.updateThreshold||Math.abs(e.left-t.left)>this.updateThreshold,this.handleResize=e=>{this.update()},this.reset=()=>{this.pendingReset&&(this.pendingReset=!1,this.anchorElement===null&&(this.anchorElement=this.getAnchor()),this.viewportElement===null&&(this.viewportElement=this.getViewport()),this.currentDirection=$r(this),this.startObservers())},this.updateLayout=()=>{let e,t;if(this.horizontalPositioningMode!=="uncontrolled"){let s=this.getPositioningOptions(this.horizontalInset);if(this.horizontalDefaultPosition==="center")t="center";else if(this.horizontalDefaultPosition!=="unset"){let f=this.horizontalDefaultPosition;if(f==="start"||f==="end"){let m=$r(this);if(m!==this.currentDirection){this.currentDirection=m,this.initialize();return}this.currentDirection===qe.ltr?f=f==="start"?"left":"right":f=f==="start"?"right":"left"}switch(f){case"left":t=this.horizontalInset?"insetStart":"start";break;case"right":t=this.horizontalInset?"insetEnd":"end";break}}let o=this.horizontalThreshold!==void 0?this.horizontalThreshold:this.regionRect!==void 0?this.regionRect.width:0,a=this.anchorRect!==void 0?this.anchorRect.left:0,l=this.anchorRect!==void 0?this.anchorRect.right:0,u=this.anchorRect!==void 0?this.anchorRect.width:0,c=this.viewportRect!==void 0?this.viewportRect.left:0,d=this.viewportRect!==void 0?this.viewportRect.right:0;(t===void 0||this.horizontalPositioningMode!=="locktodefault"&&this.getAvailableSpace(t,a,l,u,c,d)<o)&&(t=this.getAvailableSpace(s[0],a,l,u,c,d)>this.getAvailableSpace(s[1],a,l,u,c,d)?s[0]:s[1])}if(this.verticalPositioningMode!=="uncontrolled"){let s=this.getPositioningOptions(this.verticalInset);if(this.verticalDefaultPosition==="center")e="center";else if(this.verticalDefaultPosition!=="unset")switch(this.verticalDefaultPosition){case"top":e=this.verticalInset?"insetStart":"start";break;case"bottom":e=this.verticalInset?"insetEnd":"end";break}let o=this.verticalThreshold!==void 0?this.verticalThreshold:this.regionRect!==void 0?this.regionRect.height:0,a=this.anchorRect!==void 0?this.anchorRect.top:0,l=this.anchorRect!==void 0?this.anchorRect.bottom:0,u=this.anchorRect!==void 0?this.anchorRect.height:0,c=this.viewportRect!==void 0?this.viewportRect.top:0,d=this.viewportRect!==void 0?this.viewportRect.bottom:0;(e===void 0||this.verticalPositioningMode!=="locktodefault"&&this.getAvailableSpace(e,a,l,u,c,d)<o)&&(e=this.getAvailableSpace(s[0],a,l,u,c,d)>this.getAvailableSpace(s[1],a,l,u,c,d)?s[0]:s[1])}let r=this.getNextRegionDimension(t,e),n=this.horizontalPosition!==t||this.verticalPosition!==e;if(this.setHorizontalPosition(t,r),this.setVerticalPosition(e,r),this.updateRegionStyle(),!this.initialLayoutComplete){this.initialLayoutComplete=!0,this.requestPositionUpdates();return}this.regionVisible||(this.regionVisible=!0,this.style.removeProperty("pointer-events"),this.style.removeProperty("opacity"),this.classList.toggle("loaded",!0),this.$emit("loaded",this,{bubbles:!1})),this.updatePositionClasses(),n&&this.$emit("positionchange",this,{bubbles:!1})},this.updateRegionStyle=()=>{this.style.width=this.regionWidth,this.style.height=this.regionHeight,this.style.transform=`translate(${this.translateX}px, ${this.translateY}px)`},this.updatePositionClasses=()=>{this.classList.toggle("top",this.verticalPosition==="start"),this.classList.toggle("bottom",this.verticalPosition==="end"),this.classList.toggle("inset-top",this.verticalPosition==="insetStart"),this.classList.toggle("inset-bottom",this.verticalPosition==="insetEnd"),this.classList.toggle("vertical-center",this.verticalPosition==="center"),this.classList.toggle("left",this.horizontalPosition==="start"),this.classList.toggle("right",this.horizontalPosition==="end"),this.classList.toggle("inset-left",this.horizontalPosition==="insetStart"),this.classList.toggle("inset-right",this.horizontalPosition==="insetEnd"),this.classList.toggle("horizontal-center",this.horizontalPosition==="center")},this.setHorizontalPosition=(e,t)=>{if(e===void 0||this.regionRect===void 0||this.anchorRect===void 0||this.viewportRect===void 0)return;let r=0;switch(this.horizontalScaling){case"anchor":case"fill":r=this.horizontalViewportLock?this.viewportRect.width:t.width,this.regionWidth=`${r}px`;break;case"content":r=this.regionRect.width,this.regionWidth="unset";break}let n=0;switch(e){case"start":this.translateX=this.baseHorizontalOffset-r,this.horizontalViewportLock&&this.anchorRect.left>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.right));break;case"insetStart":this.translateX=this.baseHorizontalOffset-r+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right>this.viewportRect.right&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.right));break;case"insetEnd":this.translateX=this.baseHorizontalOffset,this.horizontalViewportLock&&this.anchorRect.left<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.left-this.viewportRect.left));break;case"end":this.translateX=this.baseHorizontalOffset+this.anchorRect.width,this.horizontalViewportLock&&this.anchorRect.right<this.viewportRect.left&&(this.translateX=this.translateX-(this.anchorRect.right-this.viewportRect.left));break;case"center":if(n=(this.anchorRect.width-r)/2,this.translateX=this.baseHorizontalOffset+n,this.horizontalViewportLock){let s=this.anchorRect.left+n,o=this.anchorRect.right-n;s<this.viewportRect.left&&!(o>this.viewportRect.right)?this.translateX=this.translateX-(s-this.viewportRect.left):o>this.viewportRect.right&&!(s<this.viewportRect.left)&&(this.translateX=this.translateX-(o-this.viewportRect.right))}break}this.horizontalPosition=e},this.setVerticalPosition=(e,t)=>{if(e===void 0||this.regionRect===void 0||this.anchorRect===void 0||this.viewportRect===void 0)return;let r=0;switch(this.verticalScaling){case"anchor":case"fill":r=this.verticalViewportLock?this.viewportRect.height:t.height,this.regionHeight=`${r}px`;break;case"content":r=this.regionRect.height,this.regionHeight="unset";break}let n=0;switch(e){case"start":this.translateY=this.baseVerticalOffset-r,this.verticalViewportLock&&this.anchorRect.top>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.bottom));break;case"insetStart":this.translateY=this.baseVerticalOffset-r+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom>this.viewportRect.bottom&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.bottom));break;case"insetEnd":this.translateY=this.baseVerticalOffset,this.verticalViewportLock&&this.anchorRect.top<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.top-this.viewportRect.top));break;case"end":this.translateY=this.baseVerticalOffset+this.anchorRect.height,this.verticalViewportLock&&this.anchorRect.bottom<this.viewportRect.top&&(this.translateY=this.translateY-(this.anchorRect.bottom-this.viewportRect.top));break;case"center":if(n=(this.anchorRect.height-r)/2,this.translateY=this.baseVerticalOffset+n,this.verticalViewportLock){let s=this.anchorRect.top+n,o=this.anchorRect.bottom-n;s<this.viewportRect.top&&!(o>this.viewportRect.bottom)?this.translateY=this.translateY-(s-this.viewportRect.top):o>
145this.viewportRect.bottom&&!(s<this.viewportRect.top)&&(this.translateY=this.translateY-(o-this.viewportRect.bottom))}}this.verticalPosition=e},this.getPositioningOptions=e=>e?["insetStart","insetEnd"]:["start","end"],this.getAvailableSpace=(e,t,r,n,s,o)=>{let a=t-s,l=o-(t+n);switch(e){case"start":return a;case"insetStart":return a+n;case"insetEnd":return l+n;case"end":return l;case"center":return Math.min(a,l)*2+n}},this.getNextRegionDimension=(e,t)=>{let r={height:this.regionRect!==void 0?this.regionRect.height:0,width:this.regionRect!==void 0?this.regionRect.width:0};return e!==void 0&&this.horizontalScaling==="fill"?r.width=this.getAvailableSpace(e,this.anchorRect!==void 0?this.anchorRect.left:0,this.anchorRect!==void 0?this.anchorRect.right:0,this.anchorRect!==void 0?this.anchorRect.width:0,this.viewportRect!==void 0?this.viewportRect.left:0,this.viewportRect!==void 0?this.viewportRect.right:0):this.horizontalScaling==="anchor"&&(r.width=this.anchorRect!==void 0?this.anchorRect.width:0),t!==void 0&&this.verticalScaling==="fill"?r.height=this.getAvailableSpace(t,this.anchorRect!==void 0?this.anchorRect.top:0,this.anchorRect!==void 0?this.anchorRect.bottom:0,this.anchorRect!==void 0?this.anchorRect.height:0,this.viewportRect!==void 0?this.viewportRect.top:0,this.viewportRect!==void 0?this.viewportRect.bottom:0):this.verticalScaling==="anchor"&&(r.height=this.anchorRect!==void 0?this.anchorRect.height:0),r},this.startAutoUpdateEventListeners=()=>{window.addEventListener(Mw,this.update,{passive:!0}),window.addEventListener(Ew,this.update,{passive:!0,capture:!0}),this.resizeDetector!==null&&this.viewportElement!==null&&this.resizeDetector.observe(this.viewportElement)},this.stopAutoUpdateEventListeners=()=>{window.removeEventListener(Mw,this.update),window.removeEventListener(Ew,this.update),this.resizeDetector!==null&&this.viewportElement!==null&&this.resizeDetector.unobserve(this.viewportElement)}}anchorChanged(){this.initialLayoutComplete&&(this.anchorElement=this.getAnchor())}viewportChanged(){this.initialLayoutComplete&&(this.viewportElement=this.getViewport())}horizontalPositioningModeChanged(){this.requestReset()}horizontalDefaultPositionChanged(){this.updateForAttributeChange()}horizontalViewportLockChanged(){this.updateForAttributeChange()}horizontalInsetChanged(){this.updateForAttributeChange()}horizontalThresholdChanged(){this.updateForAttributeChange()}horizontalScalingChanged(){this.updateForAttributeChange()}verticalPositioningModeChanged(){this.requestReset()}verticalDefaultPositionChanged(){this.updateForAttributeChange()}verticalViewportLockChanged(){this.updateForAttributeChange()}verticalInsetChanged(){this.updateForAttributeChange()}verticalThresholdChanged(){this.updateForAttributeChange()}verticalScalingChanged(){this.updateForAttributeChange()}fixedPlacementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}autoUpdateModeChanged(e,t){this.$fastController.isConnected&&this.initialLayoutComplete&&(e==="auto"&&this.stopAutoUpdateEventListeners(),t==="auto"&&this.startAutoUpdateEventListeners())}anchorElementChanged(){this.requestReset()}viewportElementChanged(){this.$fastController.isConnected&&this.initialLayoutComplete&&this.initialize()}connectedCallback(){super.connectedCallback(),this.autoUpdateMode==="auto"&&this.startAutoUpdateEventListeners(),this.initialize()}disconnectedCallback(){super.disconnectedCallback(),this.autoUpdateMode==="auto"&&this.stopAutoUpdateEventListeners(),this.stopObservers(),this.disconnectResizeDetector()}adoptedCallback(){this.initialize()}disconnectResizeDetector(){this.resizeDetector!==null&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.handleResize)}updateForAttributeChange(){this.$fastController.isConnected&&this.initialLayoutComplete&&(this.forceUpdate=!0,this.update())}initialize(){this.initializeResizeDetector(),this.anchorElement===null&&(this.anchorElement=this.getAnchor()),this.requestReset()}requestReset(){this.$fastController.isConnected&&this.pendingReset===!1&&(this.setInitialState(),ue.queueUpdate(()=>this.reset()),this.pendingReset=!0)}setInitialState(){this.initialLayoutComplete=!1,this.regionVisible=!1,this.translateX=0,this.translateY=0,this.baseHorizontalOffset=0,this.baseVerticalOffset=0,this.viewportRect=void 0,this.regionRect=void 0,this.anchorRect=void 0,this.verticalPosition=void 0,this.horizontalPosition=void 0,this.style.opacity="0",this.style.pointerEvents="none",this.forceUpdate=!1,this.style.position=this.fixedPlacement?"fixed":"absolute",this.updatePositionClasses(),this.updateRegionStyle()}};Ue.intersectionService=new p1;k([O],Ue.prototype,"anchor",void 0);k([O],Ue.prototype,"viewport",void 0);k([O({attribute:"horizontal-positioning-mode"})],Ue.prototype,"horizontalPositioningMode",void 0);k([O({attribute:"horizontal-default-position"})],Ue.prototype,"horizontalDefaultPosition",void 0);k([O({attribute:"horizontal-viewport-lock",mode:"boolean"})],Ue.prototype,"horizontalViewportLock",void 0);k([O({attribute:"horizontal-inset",mode:"boolean"})],Ue.prototype,"horizontalInset",void 0);k([O({attribute:"horizontal-threshold"})],Ue.prototype,"horizontalThreshold",void 0);k([O({attribute:"horizontal-scaling"})],Ue.prototype,"horizontalScaling",void 0);k([O({attribute:"vertical-positioning-mode"})],Ue.prototype,"verticalPositioningMode",void 0);k([O({attribute:"vertical-default-position"})],Ue.prototype,"verticalDefaultPosition",void 0);k([O({attribute:"vertical-viewport-lock",mode:"boolean"})],Ue.prototype,"verticalViewportLock",void 0);k([O({attribute:"vertical-inset",mode:"boolean"})],Ue.prototype,"verticalInset",void 0);k([O({attribute:"vertical-threshold"})],Ue.prototype,"verticalThreshold",void 0);k([O({attribute:"vertical-scaling"})],Ue.prototype,"verticalScaling",void 0);k([O({attribute:"fixed-placement",mode:"boolean"})],Ue.prototype,"fixedPlacement",void 0);k([O({attribute:"auto-update-mode"})],Ue.prototype,"autoUpdateMode",void 0);k([N],Ue.prototype,"anchorElement",void 0);k([N],Ue.prototype,"viewportElement",void 0);k([N],Ue.prototype,"initialLayoutComplete",void 0)});var Rw,Dw,Ow,Lw,Lq,$w,$q,Fq=w(()=>{Rw={horizontalDefaultPosition:"center",horizontalPositioningMode:"locktodefault",horizontalInset:!1,horizontalScaling:"anchor"},Dw=Object.assign(Object.assign({},Rw),{verticalDefaultPosition:"top",verticalPositioningMode:"locktodefault",verticalInset:!1,verticalScaling:"content"}),Ow=Object.assign(Object.assign({},Rw),{verticalDefaultPosition:"bottom",verticalPositioningMode:"locktodefault",verticalInset:!1,verticalScaling:"content"}),Lw=Object.assign(Object.assign({},Rw),{verticalPositioningMode:"dynamic",verticalInset:!1,verticalScaling:"content"}),Lq=Object.assign(Object.assign({},Dw),{verticalScaling:"fill"}),$w=Object.assign(Object.assign({},Ow),{verticalScaling:"fill"}),$q=Object.assign(Object.assign({},Lw),{verticalScaling:"fill"})});var Fw=w(()=>{Dq();rp();Fq()});var Pq,Nq=w(()=>{q();Pq=(i,e)=>H` 146 <div 147 class="backplate ${t=>t.shape}" 148 part="backplate" 149 style="${t=>t.fill?`background-color: var(--avatar-fill-${t.fill});`:void 0}" 150 > 151 <a 152 class="link" 153 part="link" 154 href="${t=>t.link?t.link:void 0}" 155 style="${t=>t.color?`color: var(--avatar-color-${t.color});`:void 0}" 156 > 157 <slot name="media" part="media">${e.media||""}</slot> 158 <slot class="content" part="content"><slot> 159 </a> 160 </div> 161 <slot name="badge" part="badge"></slot> 162`});var Qo,zq=w(()=>{De();q();Oe();Qo=class extends ee{connectedCallback(){super.connectedCallback(),this.shape||(this.shape="circle")}};k([O],Qo.prototype,"fill",void 0);k([O],Qo.prototype,"color",void 0);k([O],Qo.prototype,"link",void 0);k([O],Qo.prototype,"shape",void 0)});var Bq=w(()=>{Nq();zq()});var qq,Hq=w(()=>{q();qq=(i,e)=>H` 163 <template class="${t=>t.circular?"circular":""}"> 164 <div class="control" part="control" style="${t=>t.generateBadgeStyle()}"> 165 <slot></slot> 166 </div> 167 </template> 168`});var Cs,jq=w(()=>{De();q();Oe();Cs=class extends ee{constructor(){super(...arguments),this.generateBadgeStyle=()=>{if(!this.fill&&!this.color)return;let e=`background-color: var(--badge-fill-${this.fill});`,t=`color: var(--badge-color-${this.color});`;return this.fill&&!this.color?e:this.color&&!this.fill?t:`${t} ${e}`}}};k([O({attribute:"fill"})],Cs.prototype,"fill",void 0);k([O({attribute:"color"})],Cs.prototype,"color",void 0);k([O({mode:"boolean"})],Cs.prototype,"circular",void 0)});var Vq=w(()=>{Hq();jq()});var Uq,Wq=w(()=>{q();kw();Bt();
168Uq=(i,e)=>H` 169 <div role="listitem" class="listitem" part="listitem"> 170 ${Ke(t=>t.href&&t.href.length>0,H` 171 ${f1(i,e)} 172 `)} 173 ${Ke(t=>!t.href,H` 174 ${vt(i,e)} 175 <slot></slot> 176 ${bt(i,e)} 177 `)} 178 ${Ke(t=>t.separator,H` 179 <span class="separator" part="separator" aria-hidden="true"> 180 <slot name="separator">${e.separator||""}</slot> 181 </span> 182 `)} 183 </div> 184`});var ea,Pw=w(()=>{De();q();Aw();Lu();ji();ea=class extends rr{constructor(){super(...arguments),this.separator=!0}};k([N],ea.prototype,"separator",void 0);ze(ea,lt,$u)});var Gq=w(()=>{Wq();Pw()});var Kq,Yq=w(()=>{q();Kq=(i,e)=>H` 185 <template role="navigation"> 186 <div role="list" class="list" part="list"> 187 <slot 188 ${Re({property:"slottedBreadcrumbItems",filter:pr()})} 189 ></slot> 190 </div> 191 </template> 192`});var np,Xq=w(()=>{De();q();Pw();Oe();np=class extends ee{slottedBreadcrumbItemsChanged(){if(this.$fastController.isConnected){if(this.slottedBreadcrumbItems===void 0||this.slottedBreadcrumbItems.length===0)return;let e=this.slottedBreadcrumbItems[this.slottedBreadcrumbItems.length-1];this.slottedBreadcrumbItems.forEach(t=>{let r=t===e;this.setItemSeparator(t,r),this.setAriaCurrent(t,r)})}}setItemSeparator(e,t){e instanceof ea&&(e.separator=!t)}findChildWithHref(e){var t,r;return e.childElementCount>0?e.querySelector("a[href]"):!((t=e.shadowRoot)===null||t===void 0)&&t.childElementCount?(r=e.shadowRoot)===null||r===void 0?void 0:r.querySelector("a[href]"):null}setAriaCurrent(e,t){let r=this.findChildWithHref(e);r===null&&e.hasAttribute("href")&&e instanceof ea?t?e.setAttribute("aria-current","page"):e.removeAttribute("aria-current"):r!==null&&(t?r.setAttribute("aria-current","page"):r.removeAttribute("aria-current"))}};k([N],np.prototype,"slottedBreadcrumbItems",void 0)});var Jq=w(()=>{Yq();Xq()});var Zq,Qq=w(()=>{q();Bt();Zq=(i,e)=>H` 193 <button 194 class="control" 195 part="control" 196 ?autofocus="${t=>t.autofocus}" 197 ?disabled="${t=>t.disabled}" 198 form="${t=>t.formId}" 199 formaction="${t=>t.formaction}" 200 formenctype="${t=>t.formenctype}" 201 formmethod="${t=>t.formmethod}" 202 formnovalidate="${t=>t.formnovalidate}" 203 formtarget="${t=>t.formtarget}" 204 name="${t=>t.name}" 205 type="${t=>t.type}" 206 value="${t=>t.value}" 207 aria-atomic="${t=>t.ariaAtomic}" 208 aria-busy="${t=>t.ariaBusy}" 209 aria-controls="${t=>t.ariaControls}" 210 aria-current="${t=>t.ariaCurrent}" 211 aria-describedby="${t=>t.ariaDescribedby}" 212 aria-details="${t=>t.ariaDetails}" 213 aria-disabled="${t=>t.ariaDisabled}" 214 aria-errormessage="${t=>t.ariaErrormessage}" 215 aria-expanded="${t=>t.ariaExpanded}" 216 aria-flowto="${t=>t.ariaFlowto}" 217 aria-haspopup="${t=>t.ariaHaspopup}" 218 aria-hidden="${t=>t.ariaHidden}" 219 aria-invalid="${t=>t.ariaInvalid}" 220 aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" 221 aria-label="${t=>t.ariaLabel}" 222 aria-labelledby="${t=>t.ariaLabelledby}" 223 aria-live="${t=>t.ariaLive}" 224 aria-owns="${t=>t.ariaOwns}" 225 aria-pressed="${t=>t.ariaPressed}" 226 aria-relevant="${t=>t.ariaRelevant}" 227 aria-roledescription="${t=>t.ariaRoledescription}" 228 ${Te("control")} 229 > 230 ${vt(i,e)} 231 <span class="content" part="content"> 232 <slot ${Re("defaultSlottedContent")}></slot> 233 </span> 234 ${bt(i,e)} 235 </button> 236`});function ci(i){let e=class extends i{constructor(...t){super(...t),this.dirtyValue=!1,this.disabled=!1,this.proxyEventsToBlock=["change","click"],this.proxyInitialized=!1,this.required=!1,this.initialValue=this.initialValue||"",this.elementInternals||(this.formResetCallback=this.formResetCallback.bind(this))}static get formAssociated(){return iH}get validity(){return this.elementInternals?this.elementInternals.validity:this.proxy.validity}get form(){return this.elementInternals?this.elementInternals.form:this.proxy.form}get validationMessage(){return this.elementInternals?this.elementInternals.validationMessage:this.proxy.validationMessage}get willValidate(){return this.elementInternals?this.elementInternals.willValidate:this.proxy.willValidate}get labels(){if(this.elementInternals)return Object.freeze(Array.from(this.elementInternals.labels));if(this.proxy instanceof HTMLElement&&this.proxy.ownerDocument&&this.id){let t=this.proxy.labels,r=Array.from(this.proxy.getRootNode().querySelectorAll(`[for='${this.id}']`)),n=t?r.concat(Array.from(t)):r;return Object.freeze(n)}else return Wn}valueChanged(t,r){this.dirtyValue=!0,this.proxy instanceof HTMLElement&&(this.proxy.value=this.value),this.currentValue=this.value,this.setFormValue(this.value),this.validate()}currentValueChanged(){this.value=this.currentValue}initialValueChanged(t,r){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}disabledChanged(t,r){this.proxy instanceof HTMLElement&&(this.proxy.disabled=this.disabled),ue.queueUpdate(()=>this.classList.toggle("disabled",this.disabled))}nameChanged(t,r){this.proxy instanceof HTMLElement&&(this.proxy.name=this.name)}requiredChanged(t,r){this.proxy instanceof HTMLElement&&(this.proxy.required=this.required),ue.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!iH)return null;let t=rH.get(this);return t||(t=this.attachInternals(),rH.set(this,t)),t}connectedCallback(){super.connectedCallback(),this.addEventListener("keypress",this._keypressHandler),this.value||(this.value=this.initialValue,this.dirtyValue=!1),this.elementInternals||(this.attachProxy(),this.form&&this.form.addEventListener("reset",this.formResetCallback))}disconnectedCallback(){super.disconnectedCallback(),this.proxyEventsToBlock.forEach(t=>this.proxy.removeEventListener(t,this.stopPropagation)),!this.elementInternals&&this.form&&this.form.removeEventListener("reset",this.formResetCallback)}checkValidity(){return this.elementInternals?this.elementInternals.checkValidity():this.proxy.checkValidity()}reportValidity(){return this.elementInternals?this.elementInternals.reportValidity():this.proxy.reportValidity()}setValidity(t,r,n){this.elementInternals?this.elementInternals.setValidity(t,r,n):typeof r=="string"&&this.proxy.setCustomValidity(r)}formDisabledCallback(t){this.disabled=t}formResetCallback(){this.value=this.initialValue,this.dirtyValue=!1}attachProxy(){var t;this.proxyInitialized||(this.proxyInitialized=!0,this.proxy.style.display="none",this.proxyEventsToBlock.forEach(r=>this.proxy.addEventListener(r,this.stopPropagation)),this.proxy.disabled=this.disabled,this.proxy.required=this.required,typeof this.name=="string"&&(this.proxy.name=this.name),typeof this.value=="string"&&(this.proxy.value=this.value),this.proxy.setAttribute("slot",eH),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",eH)),(t=this.shadowRoot)===null||t===void 0||t.appendChild(this.proxySlot),this.appendChild(this.proxy)}detachProxy(){var t;this.removeChild(this.proxy),(t=this.shadowRoot)===null||t===void 0||t.removeChild(this.proxySlot)}validate(t){this.proxy instanceof HTMLElement&&this.setValidity(this.proxy.validity,this.proxy.validationMessage,t)}setFormValue(t,r){this.elementInternals&&this.elementInternals.setFormValue(t,r||t)}_keypressHandler(t){switch(t.key){case ei:if(this.form instanceof HTMLFormElement){let r=this.form.querySelector("[type=submit]");r?.click()}break}}stopPropagation(t){t.stopPropagation()}};return O({mode:"boolean"})(e.prototype,"disabled"),O({mode:"fromView",attribute:"value"})(e.prototype,"initialValue"),O({attribute:"current-value"})(e.prototype,"currentValue"),O(e.prototype,"name"),O({mode:"boolean"})(e.prototype,"required"),N(e.prototype,"value"),e}function _d(i){class e extends ci(i){}class t extends e{constructor(...n){super(n),this.dirtyChecked=!1,this.checkedAttribute=!1,this.checked=!1,this.dirtyChecked=!1}
236checkedAttributeChanged(){this.defaultChecked=this.checkedAttribute}defaultCheckedChanged(){this.dirtyChecked||(this.checked=this.defaultChecked,this.dirtyChecked=!1)}checkedChanged(n,s){this.dirtyChecked||(this.dirtyChecked=!0),this.currentChecked=this.checked,this.updateForm(),this.proxy instanceof HTMLInputElement&&(this.proxy.checked=this.checked),n!==void 0&&this.$emit("change"),this.validate()}currentCheckedChanged(n,s){this.checked=this.currentChecked}updateForm(){let n=this.checked?this.value:null;this.setFormValue(n,n)}connectedCallback(){super.connectedCallback(),this.updateForm()}formResetCallback(){super.formResetCallback(),this.checked=!!this.checkedAttribute,this.dirtyChecked=!1}}return O({attribute:"checked",mode:"boolean"})(t.prototype,"checkedAttribute"),O({attribute:"current-checked",converter:Au})(t.prototype,"currentChecked"),N(t.prototype,"defaultChecked"),N(t.prototype,"checked"),t}var eH,tH,iH,rH,en=w(()=>{q();ye();eH="form-associated-proxy",tH="ElementInternals",iH=tH in window&&"setFormValue"in window[tH].prototype,rH=new WeakMap});var Nw,m1,nH=w(()=>{en();Oe();Nw=class extends ee{},m1=class extends ci(Nw){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var Fr,yd,sH=w(()=>{De();q();Lu();ji();nH();Fr=class extends m1{constructor(){super(...arguments),this.handleClick=e=>{var t;this.disabled&&((t=this.defaultSlottedContent)===null||t===void 0?void 0:t.length)<=1&&e.stopPropagation()},this.handleSubmission=()=>{if(!this.form)return;let e=this.proxy.isConnected;e||this.attachProxy(),typeof this.form.requestSubmit=="function"?this.form.requestSubmit(this.proxy):this.proxy.click(),e||this.detachProxy()},this.handleFormReset=()=>{var e;(e=this.form)===null||e===void 0||e.reset()},this.handleUnsupportedDelegatesFocus=()=>{var e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(!((e=this.$fastController.definition.shadowOptions)===null||e===void 0)&&e.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}formactionChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formAction=this.formaction)}formenctypeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formEnctype=this.formenctype)}formmethodChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formMethod=this.formmethod)}formnovalidateChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formNoValidate=this.formnovalidate)}formtargetChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.formTarget=this.formtarget)}typeChanged(e,t){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.t
236ype),t==="submit"&&this.addEventListener("click",this.handleSubmission),e==="submit"&&this.removeEventListener("click",this.handleSubmission),t==="reset"&&this.addEventListener("click",this.handleFormReset),e==="reset"&&this.removeEventListener("click",this.handleFormReset)}validate(){super.validate(this.control)}connectedCallback(){var e;super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.handleUnsupportedDelegatesFocus();let t=Array.from((e=this.control)===null||e===void 0?void 0:e.children);t&&t.forEach(r=>{r.addEventListener("click",this.handleClick)})}disconnectedCallback(){var e;super.disconnectedCallback();let t=Array.from((e=this.control)===null||e===void 0?void 0:e.children);t&&t.forEach(r=>{r.removeEventListener("click",this.handleClick)})}};k([O({mode:"boolean"})],Fr.prototype,"autofocus",void 0);k([O({attribute:"form"})],Fr.prototype,"formId",void 0);k([O],Fr.prototype,"formaction",void 0);k([O],Fr.prototype,"formenctype",void 0);k([O],Fr.prototype,"formmethod",void 0);k([O({mode:"boolean"})],Fr.prototype,"formnovalidate",void 0);k([O],Fr.prototype,"formtarget",void 0);k([O],Fr.prototype,"type",void 0);k([N],Fr.prototype,"defaultSlottedContent",void 0);yd=class{};k([O({attribute:"aria-expanded"})],yd.prototype,"ariaExpanded",void 0);k([O({attribute:"aria-pressed"})],yd.prototype,"ariaPressed",void 0);ze(yd,rt);ze(Fr,lt,yd)});var oH=w(()=>{Qq();sH()});var g1,zw=w(()=>{g1=class{constructor(e){if(this.dayFormat="numeric",this.weekdayFormat="long",this.monthFormat="long",this.yearFormat="numeric",this.date=new Date,e)for(let t in e){let r=e[t];t==="date"?this.date=this.getDateObject(r):this[t]=r}}getDateObject(e){if(typeof e=="string"){let t=e.split(/[/-]/);return t.length<3?new Date:new Date(parseInt(t[2],10),parseInt(t[0],10)-1,parseInt(t[1],10))}else if("day"in e&&"month"in e&&"year"in e){let{day:t,month:r,year:n}=e;return new Date(n,r-1,t)}return e}getDate(e=this.date,t={weekday:this.weekdayFormat,month:this.monthFormat,day:this.dayFormat,year:this.yearFormat},r=this.locale){let n=this.getDateObject(e);if(!n.getTime())return"";let s=Object.assign({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},t);return new Intl.DateTimeFormat(r,s).format(n)}getDay(e=this.date.getDate(),t=this.dayFormat,r=this.locale){return this.getDate({month:1,day:e,year:2020},{day:t},r)}getMonth(e=this.date.getMonth()+1,t=this.monthFormat,r=this.locale){return this.getDate({month:e,day:2,year:2020},{month:t},r)}getYear(e=this.date.getFullYear(),t=this.yearFormat,r=this.locale){return this.getDate({month:2,day:2,year:e},{year:t},r)}getWeekday(e=0,t=this.weekdayFormat,r=this.locale){let n=`1-${e+1}-2017`;return this.getDate(n,{weekday:t},r)}getWeekdays(e=this.weekdayFormat,t=this.locale){return Array(7).fill(null).map((r,n)=>this.getWeekday(n,e,t))}}});var In,aH=w(()=>{De();q();ye();Oe();zw();In=class extends ee{constructor(){super(...arguments),this.dateFormatter=new g1,this.readonly=!1,this.locale="en-US",this.month=new Date().getMonth()+1,this.year=new Date().getFullYear(),this.dayFormat="numeric",this.weekdayFormat="short",this.monthFormat="long",this.yearFormat="numeric",this.minWeeks=0,this.disabledDates="",this.selectedDates="",this.oneDayInMs=864e5}localeChanged(){this.dateFormatter.locale=this.locale}dayFormatChanged(){this.dateFormatter.dayFormat=this.dayFormat}weekdayFormatChanged(){this.dateFormatter.weekdayFormat=this.weekdayFormat}monthFormatChanged(){this.dateFormatter.monthFormat=this.monthFormat}yearFormatChanged(){this.dateFormatter.yearFormat=this.yearFormat}getMonthInfo(e=this.month,t=this.year){let r=l=>new Date(l.getFullYear(),l.getMonth(),1).getDay(),n=l=>{let u=new Date(l.getFullYear(),l.getMonth()+1,1);return new Date(u.getTime()-this.oneDayInMs).getDate()},s=new Date(t,e-1),o=new Date(t,e),a=new Date(t,e-2);return{length:n(s),month:e,start:r(s),year:t,previous:{length:n(a),month:a.getMonth()+1,start:r(a),year:a.getFullYear()},next:{length:n(o),month:o.getMonth()+1,start:r(o),year:o.getFullYear()}}}getDays(e=this.getMonthInfo(),t=this.minWeeks){t=t>10?10:t;let{start:r,length:n,previous:s,next:o}=e,a=[],l=1-r;for(;
236l<n+1||a.length<t||a[a.length-1].length%7!==0;){let{month:u,year:c}=l<1?s:l>n?o:e,d=l<1?s.length+l:l>n?l-n:l,f=`${u}-${d}-${c}`,m=this.dateInString(f,this.disabledDates),b=this.dateInString(f,this.selectedDates),y={day:d,month:u,year:c,disabled:m,selected:b},x=a[a.length-1];a.length===0||x.length%7===0?a.push([y]):x.push(y),l++}return a}dateInString(e,t){let r=t.split(",").map(n=>n.trim());return e=typeof e=="string"?e:`${e.getMonth()+1}-${e.getDate()}-${e.getFullYear()}`,r.some(n=>n===e)}getDayClassNames(e,t){let{day:r,month:n,year:s,disabled:o,selected:a}=e,l=t===`${n}-${r}-${s}`,u=this.month!==n;return["day",l&&"today",u&&"inactive",o&&"disabled",a&&"selected"].filter(Boolean).join(" ")}getWeekdayText(){let e=this.dateFormatter.getWeekdays().map(t=>({text:t}));if(this.weekdayFormat!=="long"){let t=this.dateFormatter.getWeekdays("long");e.forEach((r,n)=>{r.abbr=t[n]})}return e}handleDateSelect(e,t){e.preventDefault,this.$emit("dateselected",t)}handleKeydown(e,t){return e.key===ei&&this.handleDateSelect(e,t),!0}};k([O({mode:"boolean"})],In.prototype,"readonly",void 0);k([O],In.prototype,"locale",void 0);k([O({converter:pe})],In.prototype,"month",void 0);k([O({converter:pe})],In.prototype,"year",void 0);k([O({attribute:"day-format",mode:"fromView"})],In.prototype,"dayFormat",void 0);k([O({attribute:"weekday-format",mode:"fromView"})],In.prototype,"weekdayFormat",void 0);k([O({attribute:"month-format",mode:"fromView"})],In.prototype,"monthFormat",void 0);k([O({attribute:"year-format",mode:"fromView"})],In.prototype,"yearFormat",void 0);k([O({attribute:"min-weeks",converter:pe})],In.prototype,"minWeeks",void 0);k([O({attribute:"disabled-dates"})],In.prototype,"disabledDates",void 0);k([O({attribute:"selected-dates"})],In.prototype,"selectedDates",void 0)});var sp,ta,Fu,b1=w(()=>{sp={none:"none",default:"default",sticky:"sticky"},ta={default:"default",columnHeader:"columnheader",rowHeader:"rowheader"},Fu={default:"default",header:"header",stickyHeader:"sticky-header"}});var Di,Bw=w(()=>{De();q();ye();Oe();b1();Di=class extends ee{constructor(){super(...arguments),this.rowType=Fu.default,this.rowData=null,this.columnDefinitions=null,this.isActiveRow=!1,this.cellsRepeatBehavior=null,this.cellsPlaceholder=null,this.focusColumnIndex=0,this.refocusOnLoad=!1,this.updateRowStyle=()=>{this.style.gridTemplateColumns=this.gridTemplateColumns}}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowStyle()}rowTypeChanged(){this.$fastController.isConnected&&this.updateItemTemplate()}rowDataChanged(){if(this.rowData!==null&&this.isActiveRow){this.refocusOnLoad=!0;return}}cellItemTemplateChanged(){this.updateItemTemplate()}headerCellItemTemplateChanged(){this.updateItemTemplate()}connectedCallback(){super.connectedCallback(),this.cellsRepeatBehavior===null&&(this.cellsPlaceholder=document.createComment(""),this.appendChild(this.cellsPlaceholder),this.updateItemTemplate(),this.cellsRepeatBehavior=new Xo(e=>e.columnDefinitions,e=>e.activeCellItemTemplate,{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(Jo,this.handleFocusout),this.addEventListener(Zo,this.handleKeydown),this.updateRowStyle(),this.refocusOnLoad&&(this.refocusOnLoad=!1,this.cellElements.length>this.focusColumnIndex&&this.cellElements[this.focusColumnIndex].focus())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("cell-focused",this.handleCellFocus),this.removeEventListener(Jo,this.handleFocusout),this.removeEventListener(Zo,this.handleKeydown)}handleFocusout(e){this.contains(e.target)||(this.isActiveRow=!1,this.focusColumnIndex=0)}handleCellFocus(e){this.isActiveRow=!0,this.focusColumnIndex=this.cellElements.indexOf(e.target),this.$emit("row-focused",this)}handleKeydown(e){if(e.defaultPrevented)return;let t=0;switch(e.key){case mr:t=Math.max(0,this.focusColumnIndex-1),this.cellElements[t].focus(),e.preventDefault();break;case gr:t=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[t].focus(),e.preventDefault();break;case _i:e.ctrlKey||(this.cellElements[0].focus(),e.preventDefault());break;case yi:e.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),e.preventDefault());break}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===Fu.default&&this.cellItemTemplate!==void 0?this.cellItemTemplate:this.rowType===Fu.default&&this.cellItemTemplate===void 0?this.defaultCellItemTemplate:this.headerCellItemTemplate!==void 0?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}};k([O({attribute:"grid-template-columns"})],Di.prototype,"gridTemplateColumns",void 0);k([O({attribute:"row-type"})],Di.prototype,"rowType",void 0);k([N],Di.prototype,"rowData",void 0);k([N],Di.prototype,"columnDefinitions",void 0);k([N],Di.prototype,"cellItemTemplate",void 0);k([N],Di.prototype,"headerCellItemTemplate",void 0);k([N],Di.prototype,"rowIndex",void 0);k([N],Di.prototype,"isActiveRow",void 0);k([N],Di.prototype,"activeCellItemTemplate",void 0);k([N],Di.prototype,"defaultCellItemTemplate",void 0);k([N],Di.prototype,"defaultHeaderCellItemTemplate",void 0);k([N],Di.prototype,"cellElements",void 0)});function aSe(i){let e=i.tagFor(Di);return H` 237 <${e} 238 :rowData="${t=>t}" 239 :cellItemTemplate="${(t,r)=>r.parent.cellItemTemplate}" 240 :headerCellItemTemplate="${(t,r)=>r.parent.headerCellItemTemplate}" 241 ></${e}> 242`}var lH,uH=w(()=>{q();Bw();lH=(i,e)=>{let t=aSe(i),r=i.tagFor(Di);return H` 243 <template 244 role="grid" 245 tabindex="0" 246 :rowElementTag="${()=>r}" 247 :defaultRowItemTemplate="${t}" 248 ${hl({property:"rowElements",filter:pr("[role=row]")})} 249 > 250 <slot></slot> 251 </template> 252 `}});var di,cH=w(()=>{De();q();ye();Oe();b1();di=class extends ee{constructor(){super(),this.noTabbing=!1,this.generateHeader=sp.default,this.rowsData=[],this.columnDefinitions=null,this.focusRowIndex=0,this.focusColumnIndex=0,this.rowsPlaceholder=null,this.generatedHeader=null,this.isUpdatingFocus=!1,this.pendingFocusUpdate=!1,this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!0,this.generatedGridTemplateColumns="",this.focusOnCell=(e,t,r)=>{if(this.rowElements.length===0){this.focusRowIndex=0,this.focusColumnIndex=0;return}let n=Math.max(0,Math.min(this.rowElements.length-1,e)),o=this.rowElements[n].querySelectorAll('[role="cell"], [role="gridcell"], [role="columnheader"], [role="rowheader"]'),a=Math.max(0,Math.min(o.length-1,t)),l=o[a];r&&this.scrollHeight!==this.clientHeight&&(n<this.focusRowIndex&&this.scrollTop>0||n>this.focusRowIndex&&this.scrollTop<this.scrollHeight-this.clientHeight)&&l.scrollIntoView({block:"center",inline:"center"}),l.focus()},this.onChildListChange=(e,t)=>
252{e&&e.length&&(e.forEach(r=>{r.addedNodes.forEach(n=>{n.nodeType===1&&n.getAttribute("role")==="row"&&(n.columnDefinitions=this.columnDefinitions)})}),this.queueRowIndexUpdate())},this.queueRowIndexUpdate=()=>{this.rowindexUpdateQueued||(this.rowindexUpdateQueued=!0,ue.queueUpdate(this.updateRowIndexes))},this.updateRowIndexes=()=>{let e=this.gridTemplateColumns;if(e===void 0){if(this.generatedGridTemplateColumns===""&&this.rowElements.length>0){let t=this.rowElements[0];this.generatedGridTemplateColumns=new Array(t.cellElements.length).fill("1fr").join(" ")}e=this.generatedGridTemplateColumns}this.rowElements.forEach((t,r)=>{let n=t;n.rowIndex=r,n.gridTemplateColumns=e,this.columnDefinitionsStale&&(n.columnDefinitions=this.columnDefinitions)}),this.rowindexUpdateQueued=!1,this.columnDefinitionsStale=!1}}static generateTemplateColumns(e){let t="";return e.forEach(r=>{t=`${t}${t===""?"":" "}1fr`}),t}noTabbingChanged(){this.$fastController.isConnected&&(this.noTabbing?this.setAttribute("tabIndex","-1"):this.setAttribute("tabIndex",this.contains(document.activeElement)||this===document.activeElement?"-1":"0"))}generateHeaderChanged(){this.$fastController.isConnected&&this.toggleGeneratedHeader()}gridTemplateColumnsChanged(){this.$fastController.isConnected&&this.updateRowIndexes()}rowsDataChanged(){this.columnDefinitions===null&&this.rowsData.length>0&&(this.columnDefinitions=di.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){if(this.columnDefinitions===null){this.generatedGridTemplateColumns="";return}this.generatedGridTemplateColumns=di.generateTemplateColumns(this.columnDefinitions),this.$fastController.isConnected&&(this.columnDefinitionsStale=!0,this.queueRowIndexUpdate())}headerCellItemTemplateChanged(){this.$fastController.isConnected&&this.generatedHeader!==null&&(this.generatedHeader.headerCellItemTemplate=this.headerCellItemTemplate)}focusRowIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}focusColumnIndexChanged(){this.$fastController.isConnected&&this.queueFocusUpdate()}connectedCallback(){super.connectedCallback(),this.rowItemTemplate===void 0&&(this.rowItemTemplate=this.defaultRowItemTemplate),this.rowsPlaceholder=document.createComment(""),this.appendChild(this.rowsPlaceholder),this.toggleGeneratedHeader(),this.rowsRepeatBehavior=new Xo(e=>e.rowsData,e=>e.rowItemTemplate,{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener(Cw,this.handleFocus),this.addEventListener(Zo,this.handleKeydown),this.addEventListener(Jo,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),ue.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener(Cw,this.handleFocus),this.removeEventListener(Zo,this.handleKeydown),this.removeEventListener(Jo,this.handleFocusOut),this.observer.disconnect(),this.rowsPlaceholder=null,this.generatedHeader=null}handleRowFocus(e){this.isUpdatingFocus=!0;let t=e.target;this.focusRowIndex=this.rowElements.indexOf(t),this.focusColumnIndex=t.focusColumnIndex,this.setAttribute("tabIndex","-1"),this.isUpdatingFocus=!1}handleFocus(e){this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}handleFocusOut(e){(e.relatedTarget===null||!this.contains(e.relatedTarget))&&this.setAttribute("tabIndex",this.noTabbing?"-1":"0")}handleKeydown(e){if(e.defaultPrevented)return;let t,r=this.rowElements.length-1,n=this.offsetHeight+this.scrollTop,s=this.rowElements[r];switch(e.key){case Rt:e.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case At:e.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case bq:if(e.preventDefault(),this.rowElements.length===0){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex===0){this.focusOnCell(0,this.focusColumnIndex,!1);return}for(t=this.focusRowIndex-1,t;t>=0;t--){let o=this.rowElements[t];if(o.offsetTop<this.scrollTop){this.scrollTop=o.offsetTop+o.clientHeight-this.clientHeight;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case gq:if(e.preventDefault(),this.rowElements.length===0){this.focusOnCell(0,0,!1);break}if(this.focusRowIndex>=r||s.offsetTop+s.offsetHeight<=n){this.focusOnCell(r,this.focusColumnIndex,!1);return}for(t=this.focusRowIndex+1,t;t<=r;t++){let o=this.rowElements[t];if(o.offsetTop+o.offsetHeight>n){let a=0;this.generateHeader===sp.sticky&&this.generatedHeader!==null&&(a=this.generatedHeader.clientHeight),this.scrollTop=o.offsetTop-a;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case _i:e.ctrlKey&&(e.preventDefault(),this.focusOnCell(0,0,!0));break;case yi:e.ctrlKey&&this.columnDefinitions!==null&&(e.preventDefault(),this.focusOnCell(this.rowElements.length-1,this.columnDefinitions.length-1,!0));break}}queueFocusUpdate(){this.isUpdatingFocus&&(this.contains(document.activeElement)||this===document.activeElement)||this.pendingFocusUpdate===!1&&(this.pendingFocusUpdate=!0,ue.queueUpdate(()=>this.updateFocus()))}updateFocus(){this.pendingFocusUpdate=!1,this.focusOnCell(this.focusRowIndex,this.focusColumnIndex,!0)}
252toggleGeneratedHeader(){if(this.generatedHeader!==null&&(this.removeChild(this.generatedHeader),this.generatedHeader=null),this.generateHeader!==sp.none&&this.rowsData.length>0){let e=document.createElement(this.rowElementTag);this.generatedHeader=e,this.generatedHeader.columnDefinitions=this.columnDefinitions,this.generatedHeader.gridTemplateColumns=this.gridTemplateColumns,this.generatedHeader.rowType=this.generateHeader===sp.sticky?Fu.stickyHeader:Fu.header,(this.firstChild!==null||this.rowsPlaceholder!==null)&&this.insertBefore(e,this.firstChild!==null?this.firstChild:this.rowsPlaceholder);return}}};di.generateColumns=i=>Object.getOwnPropertyNames(i).map((e,t)=>({columnDataKey:e,gridColumn:`${t}`}));k([O({attribute:"no-tabbing",mode:"boolean"})],di.prototype,"noTabbing",void 0);k([O({attribute:"generate-header"})],di.prototype,"generateHeader",void 0);k([O({attribute:"grid-template-columns"})],di.prototype,"gridTemplateColumns",void 0);k([N],di.prototype,"rowsData",void 0);k([N],di.prototype,"columnDefinitions",void 0);k([N],di.prototype,"rowItemTemplate",void 0);k([N],di.prototype,"cellItemTemplate",void 0);k([N],di.prototype,"headerCellItemTemplate",void 0);k([N],di.prototype,"focusRowIndex",void 0);k([N],di.prototype,"focusColumnIndex",void 0);k([N],di.prototype,"defaultRowItemTemplate",void 0);k([N],di.prototype,"rowElementTag",void 0);k([N],di.prototype,"rowElements",void 0)});var lSe,uSe,Is,qw=w(()=>{De();q();ye();Oe();b1();lSe=H` 253 <template> 254 ${i=>i.rowData===null||i.columnDefinition===null||i.columnDefinition.columnDataKey===null?null:i.rowData[i.columnDefinition.columnDataKey]} 255 </template> 256`,uSe=H` 257 <template> 258 ${i=>i.columnDefinition===null?null:i.columnDefinition.title===void 0?i.columnDefinition.columnDataKey:i.columnDefinition.title} 259 </template> 260`,Is=class extends ee{constructor(){super(...arguments),this.cellType=ta.default,this.rowData=null,this.columnDefinition=null,this.isActiveCell=!1,this.customCellView=null,this.updateCellStyle=()=>{this.style.gridColumn=this.gridColumn}}cellTypeChanged(){this.$fastController.isConnected&&this.updateCellView()}gridColumnChanged(){this.$fastController.isConnected&&this.updateCellStyle()}columnDefinitionChanged(e,t){this.$fastController.isConnected&&this.updateCellView()}connectedCallback(){var e;super.connectedCallback(),this.addEventListener(Iw,this.handleFocusin),this.addEventListener(Jo,this.handleFocusout),this.addEventListener(Zo,this.handleKeydown),this.style.gridColumn=`${((e=this.columnDefinition)===null||e===void 0?void 0:e.gridColumn)===void 0?0:this.columnDefinition.gridColumn}`,this.updateCellView(),this.updateCellStyle()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(Iw,this.handleFocusin),this.removeEventListener(Jo,this.handleFocusout),this.removeEventListener(Zo,this.handleKeydown),this.disconnectCellView()}handleFocusin(e){if(!this.isActiveCell){switch(this.isActiveCell=!0,this.cellType){case ta.columnHeader:if(this.columnDefinition!==null&&this.columnDefinition.headerCellInternalFocusQueue!==!0&&typeof this.columnDefinition.headerCellFocusTargetCallback=="function"){let t=this.columnDefinition.headerCellFocusTargetCallback(this);t!==null&&t.focus()}break;default:if(this.columnDefinition!==null&&this.columnDefinition.cellInternalFocusQueue!==!0&&typeof this.columnDefinition.cellFocusTargetCallback=="function"){let t=this.columnDefinition.cellFocusTargetCallback(this);t!==null&&t.focus()}break}this.$emit("cell-focused",this)}}handleFocusout(e){this!==document.activeElement&&!this.contains(document.activeElement)&&(this.isActiveCell=!1)}handleKeydown(e){if(!(e.defaultPrevented||this.columnDefinition===null||this.cellType===ta.default&&this.columnDefinition.cellInternalFocusQueue!==!0||this.cellType===ta.columnHeader&&this.columnDefinition.headerCellInternalFocusQueue!==!0))switch(e.key){case ei:case mq:if(this.contains(document.activeElement)&&document.activeElement!==this)return;switch(this.cellType){case ta.columnHeader:if(this.columnDefinition.headerCellFocusTargetCallback!==void 0){let t=this.columnDefinition.headerCellFocusTargetCallback(this);t!==null&&t.focus(),e.preventDefault()}break;default:if(this.columnDefinition.cellFocusTargetCallback!==void 0){let t=this.columnDefinition.cellFocusTargetCallback(this);t!==null&&t.focus(),e.preventDefault()}break}break;case Jr:this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),e.preventDefault());break}}updateCellView(){if(this.disconnectCellView(),this.columnDefinition!==null)switch(this.cellType){case ta.columnHeader:this.columnDefinition.headerCellTemplate!==void 0?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=uSe.render(this,this);break;case void 0:case ta.rowHeader:case ta.default:this.columnDefinition.cellTemplate!==void 0?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=lSe.render(this,this);break}}disconnectCellView(){this.customCellView!==null&&(this.customCellView.dispose(),this.customCellView=null)}};k([O({attribute:"cell-type"})],Is.prototype,"cellType",void 0);k([O({attribute:"grid-column"})],Is.prototype,"gridColumn",void 0);k([N],Is.prototype,"rowData",void 0);k([N],Is.prototype,"columnDefinition",void 0)});function cSe(i){let e=i.tagFor(Is);return H` 261 <${e} 262 cell-type="${t=>t.isRowHeader?"rowheader":void 0}" 263 grid-column="${(t,r)=>r.index+1}" 264 :rowData="${(t,r)=>r.parent.rowData}" 265 :columnDefinition="${t=>t}" 266 ></${e}> 267`}function dSe(i){let e=i.tagFor(Is);return H` 268 <${e} 269 cell-type="columnheader" 270 grid-column="${(t,r)=>r.index+1}" 271 :columnDefinition="${t=>t}" 272 ></${e}> 273`}var dH,hH=w(()=>{q();qw();dH=(i,e)=>{let t=cSe(i),r=dSe(i);return H` 274 <template 275 role="row" 276 class="${n=>n.rowType!=="default"?n.rowType:""}" 277 :defaultCellItemTemplate="${t}" 278 :defaultHeaderCellItemTemplate="${r}" 279 ${hl({property:"cellElements",filter:pr('[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"]')})} 280 > 281 <slot ${Re("slottedCellElements")}></slot> 282 </template> 283 `}});var fH,pH=w(()=>{q();fH=(i,e)=>H` 284 <template 285 tabindex="-1" 286 role="${t=>!t.cellType||t.cellType==="default"?"gridcell":t.cellType}" 287 class=" 288 ${t=>t.cellType==="columnheader"?"column-header":t.cellType==="rowheader"?"row-header":""} 289 " 290 > 291 <slot></slot> 292 </template> 293 `});var mH=w(()=>{uH();cH();hH();Bw();pH();qw()});var Ktt,gH=w(()=>{q();Ktt=H` 294 <div 295 class="title" 296 part="title" 297 aria-label="${i=>i.dateFormatter.getDate(`${i.month}-2-${i.year}`,{month:"long",year:"numeric"})}" 298 >
299 <span part="month"> 300 ${i=>i.dateFormatter.getMonth(i.month)} 301 </span> 302 <span part="year">${i=>i.dateFormatter.getYear(i.year)}</span> 303 </div> 304`});var bH=w(()=>{aH();gH();zw()});var vH,_H=w(()=>{q();vH=(i,e)=>H` 305 <slot></slot> 306`});var op,yH=w(()=>{Oe();op=class extends ee{}});var xH=w(()=>{_H();yH()});var wH=w(()=>{});var Hw,v1,SH=w(()=>{en();Oe();Hw=class extends ee{},v1=class extends _d(Hw){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var ml,CH=w(()=>{De();q();ye();SH();ml=class extends v1{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=e=>{if(!this.readOnly)switch(e.key){case Zr:this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked;break}},this.clickHandler=e=>{!this.disabled&&!this.readOnly&&(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}};k([O({attribute:"readonly",mode:"boolean"})],ml.prototype,"readOnly",void 0);k([N],ml.prototype,"defaultSlottedNodes",void 0);k([N],ml.prototype,"indeterminate",void 0)});var IH=w(()=>{wH();CH()});function jw(i){return so(i)&&(i.getAttribute("role")==="option"||i instanceof HTMLOptionElement)}var br,gl,Vw=w(()=>{De();q();ye();Oe();ip();Bt();ji();br=class extends ee{constructor(e,t,r,n){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,e&&(this.textContent=e),t&&(this.initialValue=t),r&&(this.defaultSelected=r),n&&(this.selected=n),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(e,t){if(typeof t=="boolean"){this.ariaChecked=t?"true":"false";return}this.ariaChecked=null}contentChanged(e,t){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(e,t){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(e,t){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var e;return(e=this.value)!==null&&e!==void 0?e:this.text}get text(){var e,t;return(t=(e=this.textContent)===null||e===void 0?void 0:e.replace(/\s+/g," ").trim())!==null&&t!==void 0?t:""}set value(e){let t=`${e??""}`;this._value=t,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=t),ge.notify(this,"value")}get value(){var e;return ge.track(this,"value"),(e=this._value)!==null&&e!==void 0?e:this.text}get form(){return this.proxy?this.proxy.form:null}};k([N],br.prototype,"checked",void 0);k([N],br.prototype,"content",void 0);k([N],br.prototype,"defaultSelected",void 0);k([O({mode:"boolean"})],br.prototype,"disabled",void 0);k([O({attribute:"selected",mode:"boolean"})],br.prototype,"selectedAttribute",void 0);k([N],br.prototype,"selected",void 0);k([O({attribute:"value",mode:"fromView"})],br.prototype,"initialValue",void 0);gl=class{};k([N],gl.prototype,"ariaChecked",void 0);k([N],gl.prototype,"ariaPosInSet",void 0);k([N],gl.prototype,"ariaSelected",void 0);k([N],gl.prototype,"ariaSetSize",void 0);ze(gl,rt);ze(br,lt,gl)});var jt,Xn,bl=w(()=>{De();q();ye();Oe();Vw();ip();ji();jt=class extends ee{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var e;return(e=this.selectedOptions[0])!==null&&e!==void 0?e:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every(e=>e.disabled)}get length(){var e,t;return(t=(e=this.options)===null||e===void 0?void 0:e.length)!==null&&t!==void 0?t:0}get options(){return ge.track(this,"options"),this._options}set options(e){this._options=e,ge.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(e){this.typeaheadExpired=e}clickHandler(e){let t=e.target.closest("option,[role=option]");if(t&&!t.disabled)return this.selectedIndex=this.options.indexOf(t),!0}focusAndScrollOptionIntoView(e=this.firstSelectedOption){this.contains(document.activeElement)&&e!==null&&(e.focus(),requestAnimationFrame(()=>{e.scrollIntoView({block:"nearest"})}))}focusinHandler(e){!this.shouldSkipFocus&&e.target===e.currentTarget&&(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){let e=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),t=new RegExp(`^${e}`,"gi");return this.options.filter(r=>r.text.trim().match(t))}getSelectableIndex(e=this.selectedIndex,t){let r=e>t?-1:e<t?1:0,n=e+r,s=null;switch(r){case-1:{s=this.options.reduceRight((o,a,l)=>!o&&!a.disabled&&l<n?a:o,s);break}case 1:{s=this.options.reduce((o,a,l)=>!o&&!a.disabled&&l>n?a:o,s);break}}return this.options.indexOf(s)}handleChange(e,t){switch(t){case"selected":{jt.slottedOptionFilter(e)&&(this.selectedIndex=this.options.indexOf(e)),this.setSelectedOptions();break}}}handleTypeAhead(e){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout(()=>
306this.typeaheadExpired=!0,jt.TYPE_AHEAD_TIMEOUT_MS),!(e.length>1)&&(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${e}`)}keydownHandler(e){if(this.disabled)return!0;this.shouldSkipFocus=!1;let t=e.key;switch(t){case _i:{e.shiftKey||(e.preventDefault(),this.selectFirstOption());break}case At:{e.shiftKey||(e.preventDefault(),this.selectNextOption());break}case Rt:{e.shiftKey||(e.preventDefault(),this.selectPreviousOption());break}case yi:{e.preventDefault(),this.selectLastOption();break}case fl:return this.focusAndScrollOptionIntoView(),!0;case ei:case Jr:return!0;case Zr:if(this.typeaheadExpired)return!0;default:return t.length===1&&this.handleTypeAhead(`${t}`),!0}}mousedownHandler(e){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(e,t){this.ariaMultiSelectable=t?"true":null}selectedIndexChanged(e,t){var r;if(!this.hasSelectableOptions){this.selectedIndex=-1;return}if(!((r=this.options[this.selectedIndex])===null||r===void 0)&&r.disabled&&typeof e=="number"){let n=this.getSelectableIndex(e,t),s=n>-1?n:e;this.selectedIndex=s,t===s&&this.selectedIndexChanged(t,s);return}this.setSelectedOptions()}selectedOptionsChanged(e,t){var r;let n=t.filter(jt.slottedOptionFilter);(r=this.options)===null||r===void 0||r.forEach(s=>{let o=ge.getNotifier(s);o.unsubscribe(this,"selected"),s.selected=n.includes(s),o.subscribe(this,"selected")})}selectFirstOption(){var e,t;this.disabled||(this.selectedIndex=(t=(e=this.options)===null||e===void 0?void 0:e.findIndex(r=>!r.disabled))!==null&&t!==void 0?t:-1)}selectLastOption(){this.disabled||(this.selectedIndex=iq(this.options,e=>!e.disabled))}selectNextOption(){!this.disabled&&this.selectedIndex<this.options.length-1&&(this.selectedIndex+=1)}selectPreviousOption(){!this.disabled&&this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var e,t;this.selectedIndex=(t=(e=this.options)===null||e===void 0?void 0:e.findIndex(r=>r.defaultSelected))!==null&&t!==void 0?t:-1}setSelectedOptions(){var e,t,r;!((e=this.options)===null||e===void 0)&&e.length&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=(r=(t=this.firstSelectedOption)===null||t===void 0?void 0:t.id)!==null&&r!==void 0?r:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(e,t){this.options=t.reduce((n,s)=>(jw(s)&&n.push(s),n),[]);let r=`${this.options.length}`;this.options.forEach((n,s)=>{n.id||(n.id=Cn("option-")),n.ariaPosInSet=`${s+1}`,n.ariaSetSize=r}),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(e,t){if(this.$fastController.isConnected){let r=this.getTypeaheadMatches();if(r.length){let n=this.options.indexOf(r[0]);n>-1&&(this.selectedIndex=n)}this.typeaheadExpired=!1}}};jt.slottedOptionFilter=i=>jw(i)&&!i.hidden;jt.TYPE_AHEAD_TIMEOUT_MS=1e3;k([O({mode:"boolean"})],jt.prototype,"disabled",void 0);k([N],jt.prototype,"selectedIndex",void 0);k([N],jt.prototype,"selectedOptions",void 0);k([N],jt.prototype,"slottedOptions",void 0);k([N],jt.prototype,"typeaheadBuffer",void 0);Xn=class{};k([N],Xn.prototype,"ariaActiveDescendant",void 0);k([N],Xn.prototype,"ariaDisabled",void 0);k([N],Xn.prototype,"ariaExpanded",void 0);k([N],Xn.prototype,"ariaMultiSelectable",void 0);ze(Xn,rt);ze(jt,Xn)});var vl,_1=w(()=>{vl={above:"above",below:"below"}});var Uw,y1,MH=w(()=>{en();bl();Uw=class extends jt{},y1=class extends ci(Uw){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var ap,Ww=w(()=>{ap={inline:"inline",list:"list",both:"both",none:"none"}});var Jn,xd,EH=w(()=>{De();q();ye();bl();Bt();_1();ji();MH();Ww();Jn=class extends y1{constructor(){super(...arguments),this._value="",this.filteredOptions=[],this.filter="",this.forcedPosition=!1,this.listboxId=Cn("listbox-"),this.maxHeight=0,this.open=!1}formResetCallback(){super.formResetCallback(),this.setDefaultSelectedOption(),this.updateValue()}validate(){super.validate(this.control)}get isAutocompleteInline(){return this.autocomplete===ap.inline||this.isAutocompleteBoth}get isAutocompleteList(){return this.autocomplete===ap.list||this.isAutocompleteBoth}get isAutocompleteBoth(){return this.autocomplete===ap.both}
306openChanged(){if(this.open){this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),ue.queueUpdate(()=>this.focus());return}this.ariaControls="",this.ariaExpanded="false"}get options(){return ge.track(this,"options"),this.filteredOptions.length?this.filteredOptions:this._options}set options(e){this._options=e,ge.notify(this,"options")}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}positionChanged(e,t){this.positionAttribute=t,this.setPositioning()}get value(){return ge.track(this,"value"),this._value}set value(e){var t,r,n;let s=`${this._value}`;if(this.$fastController.isConnected&&this.options){let o=this.options.findIndex(u=>u.text.toLowerCase()===e.toLowerCase()),a=(t=this.options[this.selectedIndex])===null||t===void 0?void 0:t.text,l=(r=this.options[o])===null||r===void 0?void 0:r.text;this.selectedIndex=a!==l?o:this.selectedIndex,e=((n=this.firstSelectedOption)===null||n===void 0?void 0:n.text)||e}s!==e&&(this._value=e,super.valueChanged(s,e),ge.notify(this,"value"))}clickHandler(e){if(!this.disabled){if(this.open){let t=e.target.closest("option,[role=option]");if(!t||t.disabled)return;this.selectedOptions=[t],this.control.value=t.text,this.clearSelectionRange(),this.updateValue(!0)}return this.open=!this.open,this.open&&this.control.focus(),!0}}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.value&&(this.initialValue=this.value)}disabledChanged(e,t){super.disabledChanged&&super.disabledChanged(e,t),this.ariaDisabled=this.disabled?"true":"false"}filterOptions(){(!this.autocomplete||this.autocomplete===ap.none)&&(this.filter="");let e=this.filter.toLowerCase();this.filteredOptions=this._options.filter(t=>t.text.toLowerCase().startsWith(this.filter.toLowerCase())),this.isAutocompleteList&&(!this.filteredOptions.length&&!e&&(this.filteredOptions=this._options),this._options.forEach(t=>{t.hidden=!this.filteredOptions.includes(t)}))}focusAndScrollOptionIntoView(){this.contains(document.activeElement)&&(this.control.focus(),this.firstSelectedOption&&requestAnimationFrame(()=>{var e;(e=this.firstSelectedOption)===null||e===void 0||e.scrollIntoView({block:"nearest"})}))}focusoutHandler(e){if(this.syncValue(),!this.open)return!0;let t=e.relatedTarget;if(this.isSameNode(t)){this.focus();return}(!this.options||!this.options.includes(t))&&(this.open=!1)}inputHandler(e){if(this.filter=this.control.value,this.filterOptions(),this.isAutocompleteInline||(this.selectedIndex=this.options.map(t=>t.text).indexOf(this.control.value)),e.inputType.includes("deleteContent")||!this.filter.length)return!0;this.isAutocompleteList&&!this.open&&(this.open=!0),this.isAutocompleteInline&&(this.filteredOptions.length?(this.selectedOptions=[this.filteredOptions[0]],this.selectedIndex=this.options.indexOf(this.firstSelectedOption),this.setInlineSelection()):this.selectedIndex=-1)}keydownHandler(e){let t=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(t){case"Enter":{this.syncValue(),this.isAutocompleteInline&&(this.filter=this.value),this.open=!1,this.clearSelectionRange();break}case"Escape":{if(this.isAutocompleteInline||(this.selectedIndex=-1),this.open){this.open=!1;break}this.value="",this.control.value="",this.filter="",this.filterOptions();break}
306case"Tab":{if(this.setInputToSelection(),!this.open)return!0;e.preventDefault(),this.open=!1;break}case"ArrowUp":case"ArrowDown":{if(this.filterOptions(),!this.open){this.open=!0;break}this.filteredOptions.length>0&&super.keydownHandler(e),this.isAutocompleteInline&&this.setInlineSelection();break}default:return!0}}keyupHandler(e){switch(e.key){case"ArrowLeft":case"ArrowRight":case"Backspace":case"Delete":case"Home":case"End":{this.filter=this.control.value,this.selectedIndex=-1,this.filterOptions();break}}}selectedIndexChanged(e,t){if(this.$fastController.isConnected){if(t=oo(-1,this.options.length-1,t),t!==this.selectedIndex){this.selectedIndex=t;return}super.selectedIndexChanged(e,t)}}selectPreviousOption(){!this.disabled&&this.selectedIndex>=0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){if(this.$fastController.isConnected&&this.options){let e=this.options.findIndex(t=>t.getAttribute("selected")!==null||t.selected);this.selectedIndex=e,!this.dirtyValue&&this.firstSelectedOption&&(this.value=this.firstSelectedOption.text),this.setSelectedOptions()}}setInputToSelection(){this.firstSelectedOption&&(this.control.value=this.firstSelectedOption.text,this.control.focus())}setInlineSelection(){this.firstSelectedOption&&(this.setInputToSelection(),this.control.setSelectionRange(this.filter.length,this.control.value.length,"backward"))}syncValue(){var e;let t=this.selectedIndex>-1?(e=this.firstSelectedOption)===null||e===void 0?void 0:e.text:this.control.value;this.updateValue(this.value!==t)}setPositioning(){let e=this.getBoundingClientRect(),r=window.innerHeight-e.bottom;this.position=this.forcedPosition?this.positionAttribute:e.top>r?vl.above:vl.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===vl.above?~~e.top:~~r}selectedOptionsChanged(e,t){this.$fastController.isConnected&&this._options.forEach(r=>{r.selected=t.includes(r)})}slottedOptionsChanged(e,t){super.slottedOptionsChanged(e,t),this.updateValue()}updateValue(e){var t;this.$fastController.isConnected&&(this.value=((t=this.firstSelectedOption)===null||t===void 0?void 0:t.text)||this.control.value,this.control.value=this.value),e&&this.$emit("change")}clearSelectionRange(){let e=this.control.value.length;this.control.setSelectionRange(e,e)}};k([O({attribute:"autocomplete",mode:"fromView"})],Jn.prototype,"autocomplete",void 0);k([N],Jn.prototype,"maxHeight",void 0);k([O({attribute:"open",mode:"boolean"})],Jn.prototype,"open",void 0);k([O],Jn.prototype,"placeholder",void 0);k([O({attribute:"position"})],Jn.prototype,"positionAttribute",void 0);k([N],Jn.prototype,"position",void 0);xd=class{};k([N],xd.prototype,"ariaAutoComplete",void 0);k([N],xd.prototype,"ariaControls",void 0);ze(xd,Xn);ze(Jn,lt,xd)});var TH,kH=w(()=>{q();bl();Bt();TH=(i,e)=>H` 307 <template 308 aria-disabled="${t=>t.ariaDisabled}" 309 autocomplete="${t=>t.autocomplete}" 310 class="${t=>t.open?"open":""} ${t=>t.disabled?"disabled":""} ${t=>t.position}" 311 ?open="${t=>t.open}" 312 tabindex="${t=>t.disabled?null:"0"}" 313 @click="${(t,r)=>t.clickHandler(r.event)}" 314 @focusout="${(t,r)=>t.focusoutHandler(r.event)}" 315 @keydown="${(t,r)=>t.keydownHandler(r.event)}" 316 > 317 <div class="control" part="control"> 318 ${vt(i,e)} 319 <slot name="control"> 320 <input 321 aria-activedescendant="${t=>t.open?t.ariaActiveDescendant:null}" 322 aria-autocomplete="${t=>t.ariaAutoComplete}" 323 aria-controls="${t=>t.ariaControls}" 324 aria-disabled="${t=>t.ariaDisabled}" 325 aria-expanded="${t=>t.ariaExpanded}" 326 aria-haspopup="listbox" 327 class="selected-value" 328 part="selected-value" 329 placeholder="${t=>t.placeholder}" 330 role="combobox" 331 type="text" 332 ?disabled="${t=>t.disabled}" 333 :value="${t=>t.value}" 334 @input="${(t,r)=>t.inputHandler(r.event)}" 335 @keyup="${(t,r)=>t.keyupHandler(r.event)}" 336 ${Te("control")} 337 /> 338 <div class="indicator" part="indicator" aria-hidden="true"> 339 <slot name="indicator"> 340 ${e.indicator||""} 341 </slot> 342 </div> 343 </slot> 344 ${bt(i,e)} 345 </div> 346 <div 347 class="listbox"
348 id="${t=>t.listboxId}" 349 part="listbox" 350 role="listbox" 351 ?disabled="${t=>t.disabled}" 352 ?hidden="${t=>!t.open}" 353 ${Te("listbox")} 354 > 355 <slot 356 ${Re({filter:jt.slottedOptionFilter,flatten:!0,property:"slottedOptions"})} 357 ></slot> 358 </div> 359 </template> 360`});var AH=w(()=>{EH();Ww();kH()});function ia(i){let e=i.parentElement;if(e)return e;{let t=i.getRootNode();if(t.host instanceof HTMLElement)return t.host}return null}var x1=w(()=>{});function RH(i,e){let t=e;for(;t!==null;){if(t===i)return!0;t=ia(t)}return!1}var DH=w(()=>{x1()});function hSe(i){return i instanceof cl}var ao,lp,Kw,Yw,Xw,w1,Jw,hi,Gw,fSe,Pu,Zw=w(()=>{De();q();ao=document.createElement("div");lp=class{setProperty(e,t){ue.queueUpdate(()=>this.target.setProperty(e,t))}removeProperty(e){ue.queueUpdate(()=>this.target.removeProperty(e))}},Kw=class extends lp{constructor(e){super();let t=new CSSStyleSheet;t[Qg]=!0,this.target=t.cssRules[t.insertRule(":host{}")].style,e.$fastController.addStyles(Qt.create([t]))}},Yw=class extends lp{constructor(){super();let e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}},Xw=class extends lp{constructor(){super(),this.style=document.createElement("style"),document.head.appendChild(this.style);let{sheet:e}=this.style;if(e){let t=e.insertRule(":root{}",e.cssRules.length);this.target=e.cssRules[t].style}}},w1=class{constructor(e){this.store=new Map,this.target=null;let t=e.$fastController;this.style=document.createElement("style"),t.addStyles(this.style),ge.getNotifier(t).subscribe(this,"isConnected"),this.handleChange(t,"isConnected")}targetChanged(){if(this.target!==null)for(let[e,t]of this.store.entries())this.target.setProperty(e,t)}setProperty(e,t){this.store.set(e,t),ue.queueUpdate(()=>{this.target!==null&&this.target.setProperty(e,t)})}removeProperty(e){this.store.delete(e),ue.queueUpdate(()=>{this.target!==null&&this.target.removeProperty(e)})}handleChange(e,t){let{sheet:r}=this.style;if(r){let n=r.insertRule(":host{}",r.cssRules.length);this.target=r.cssRules[n].style}else this.target=null}};k([N],w1.prototype,"target",void 0);Jw=class{constructor(e){this.target=e.style}setProperty(e,t){ue.queueUpdate(()=>this.target.setProperty(e,t))}removeProperty(e){ue.queueUpdate(()=>this.target.removeProperty(e))}},hi=class{setProperty(e,t){hi.properties[e]=t;for(let r of hi.roots.values())Pu.getOrCreate(hi.normalizeRoot(r)).setProperty(e,t)}removeProperty(e){delete hi.properties[e];for(let t of hi.roots.values())Pu.getOrCreate(hi.normalizeRoot(t)).removeProperty(e)}static registerRoot(e){let{roots:t}=hi;if(!t.has(e)){t.add(e);let r=Pu.getOrCreate(this.normalizeRoot(e));for(let n in hi.properties)r.setProperty(n,hi.properties[n])}}static unregisterRoot(e){let{roots:t}=hi;if(t.has(e)){t.delete(e);let r=Pu.getOrCreate(hi.normalizeRoot(e));for(let n in hi.properties)r.removeProperty(n)}}static normalizeRoot(e){return e===ao?document:e}};hi.roots=new Set;hi.properties={};Gw=new WeakMap,fSe=ue.supportsAdoptedStyleSheets?Kw:w1,Pu=Object.freeze({getOrCreate(i){if(Gw.has(i))return Gw.get(i);let e;return i===ao?e=new hi:i instanceof Document?e=ue.supportsAdoptedStyleSheets?new Yw:new Xw:hSe(i)?e=new fSe(i):e=new Jw(i),Gw.set(i,e),e}})});function pSe(i){return nr.from(i)}var nr,Qw,e3,t3,up,cp,Gt,Mn,i3=w(()=>{De();q();x1();DH();Zw();Zw();nr=class extends dl{constructor(e){super(),this.subscribers=new WeakMap,this._appliedTo=new Set,this.name=e.name,e.cssCustomPropertyName!==null&&(this.cssCustomProperty=`--${e.cssCustomPropertyName}`,this.cssVar=`var(${this.cssCustomProperty})`),this.id=nr.uniqueId(),nr.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(e){return new nr({name:typeof e=="string"?e:e.name,cssCustomPropertyName:typeof e=="string"?e:e.cssCustomPropertyName===void 0?e.name:e.cssCustomPropertyName})}static isCSSDesignToken(e){return typeof e.cssCustomProperty=="string"}static isDerivedDesignTokenValue(e){return typeof e=="function"}static getTokenById(e){return nr.tokensById.get(e)}getOrCreateSubscriberSet(e=this){return this.subscribers.get(e)||this.subscribers.set(e,new Set)&&this.subscribers.get(e)}createCSS(){return this.cssVar||""}getValueFor(e){let t=Gt.getOrCreate(e).get(this);if(t!==void 0)return t;throw new Error(`Value could not be retrieved for token named "${this.name}". Ensure the value is set for ${e} or an ancestor of ${e}.`)}setValueFor(e,t){return this._appliedTo.add(e),t instanceof nr&&(t=this.alias(t)),Gt.getOrCreate(e).set(this,t),this}deleteValueFor(e){return this._appliedTo.delete(e),Gt.existsFor(e)&&Gt.getOrCreate(e).delete(this),this}withDefault(e){return this.setValueFor(ao,e),this}subscribe(e,t){let r=this.getOrCreateSubscriberSet(t);t&&!Gt.existsFor(t)&&Gt.getOrCreate(t),r.has(e)||r.add(e)}unsubscribe(e,t){let r=this.subscribers.get(t||this);r&&r.has(e)&&r.delete(e)}notify(e){let t=Object.freeze({token:this,target:e});
360this.subscribers.has(this)&&this.subscribers.get(this).forEach(r=>r.handleChange(t)),this.subscribers.has(e)&&this.subscribers.get(e).forEach(r=>r.handleChange(t))}alias(e){return t=>e.getValueFor(t)}};nr.uniqueId=(()=>{let i=0;return()=>(i++,i.toString(16))})();nr.tokensById=new Map;Qw=class{startReflection(e,t){e.subscribe(this,t),this.handleChange({token:e,target:t})}stopReflection(e,t){e.unsubscribe(this,t),this.remove(e,t)}handleChange(e){let{token:t,target:r}=e;this.add(t,r)}add(e,t){Pu.getOrCreate(t).setProperty(e.cssCustomProperty,this.resolveCSSValue(Gt.getOrCreate(t).get(e)))}remove(e,t){Pu.getOrCreate(t).removeProperty(e.cssCustomProperty)}resolveCSSValue(e){return e&&typeof e.createCSS=="function"?e.createCSS():e}},e3=class{constructor(e,t,r){this.source=e,this.token=t,this.node=r,this.dependencies=new Set,this.observer=ge.binding(e,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){this.node.store.set(this.token,this.observer.observe(this.node.target,ol))}},t3=class{constructor(){this.values=new Map}set(e,t){this.values.get(e)!==t&&(this.values.set(e,t),ge.getNotifier(this).notify(e.id))}get(e){return ge.track(this,e.id),this.values.get(e)}delete(e){this.values.delete(e)}all(){return this.values.entries()}},up=new WeakMap,cp=new WeakMap,Gt=class{constructor(e){this.target=e,this.store=new t3,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(t,r)=>{let n=nr.getTokenById(r);n&&(n.notify(this.target),this.updateCSSTokenReflection(t,n))}},up.set(e,this),ge.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),e instanceof cl?e.$fastController.addBehaviors([this]):e.isConnected&&this.bind()}static getOrCreate(e){return up.get(e)||new Gt(e)}static existsFor(e){return up.has(e)}static findParent(e){if(ao!==e.target){let t=ia(e.target);for(;t!==null;){if(up.has(t))return up.get(t);t=ia(t)}return Gt.getOrCreate(ao)}return null}static findClosestAssignedNode(e,t){let r=t;do{if(r.has(e))return r;r=r.parent?r.parent:r.target!==ao?Gt.getOrCreate(ao):null}while(r!==null);return null}get parent(){return cp.get(this)||null}updateCSSTokenReflection(e,t){if(nr.isCSSDesignToken(t)){let r=this.parent,n=this.isReflecting(t);if(r){let s=r.get(t),o=e.get(t);s!==o&&!n?this.reflectToCSS(t):s===o&&n&&this.stopReflectToCSS(t)}else n||this.reflectToCSS(t)}}has(e){return this.assignedValues.has(e)}get(e){let t=this.store.get(e);if(t!==void 0)return t;let r=this.getRaw(e);if(r!==void 0)return this.hydrate(e,r),this.get(e)}getRaw(e){var t;return this.assignedValues.has(e)?this.assignedValues.get(e):(t=Gt.findClosestAssignedNode(e,this))===null||t===void 0?void 0:t.getRaw(e)}set(e,t){nr.isDerivedDesignTokenValue(this.assignedValues.get(e))&&this.tearDownBindingObserver(e),this.assignedValues.set(e,t),nr.isDerivedDesignTokenValue(t)?this.setupBindingObserver(e,t):this.store.set(e,t)}delete(e){this.assignedValues.delete(e),this.tearDownBindingObserver(e);let t=this.getRaw(e);t?this.hydrate(e,t):this.store.delete(e)}bind(){let e=Gt.findParent(this);e&&e.appendChild(this);for(let t of this.assignedValues.keys())t.notify(this.target)}unbind(){this.parent&&cp.get(this).removeChild(this)}appendChild(e){e.parent&&cp.get(e).removeChild(e);let t=this.children.filter(r=>e.contains(r));cp.set(e,this),this.children.push(e),t.forEach(r=>e.appendChild(r)),ge.getNotifier(this.store).subscribe(e);for(let[r,n]of this.store.all())e.hydrate(r,this.bindingObservers.has(r)?this.getRaw(r):n)}removeChild(e){let t=this.children.indexOf(e);return t!==-1&&this.children.splice(t,1),ge.getNotifier(this.store).unsubscribe(e),e.parent===this?cp.delete(e):!1}contains(e){return RH(this.target,e.target)}reflectToCSS(e){this.isReflecting(e)||(this.reflecting.add(e),Gt.cssCustomPropertyReflector.startReflection(e,this.target))}stopReflectToCSS(e){this.isReflecting(e)&&(this.reflecting.delete(e),Gt.cssCustomPropertyReflector.stopReflection(e,this.target))}isReflecting(e){return this.reflecting.has(e)}handleChange(e,t){let r=nr.getTokenById(t);r&&(this.hydrate(r,this.getRaw(r)),this.updateCSSTokenReflection(this.store,r))}hydrate(e,t){if(!this.has(e)){let r=this.bindingObservers.get(e);nr.isDerivedDesignTokenValue(t)?r?r.source!==t&&(this.tearDownBindingObserver(e),this.setupBindingObserver(e,t)):this.setupBindingObserver(e,t):(r&&this.tearDownBindingObserver(e),this.store.set(e,t))}}setupBindingObserver(e,t){let r=new e3(t,e,this);return this.bindingObservers.set(e,r),r}tearDownBindingObserver(e){return this.bindingObservers.has(e)?(this.bindingObservers.get(e).disconnect(),this.bindingObservers.delete(e),!0):!1}};Gt.cssCustomPropertyReflector=new Qw;k([N],Gt.prototype,"children",void 0);Mn=Object.freeze({create:pSe,notifyConnection(i){return!i.isConnected||!Gt.existsFor(i)?!1:(Gt.getOrCreate(i).bind(),!0)},notifyDisconnection(i){return i.isConnected||!Gt.existsFor(i)?!1:(Gt.getOrCreate(i).unbind(),!0)},registerRoot(i=ao){hi.registerRoot(i)},unregisterRoot(i=ao){hi.unregisterRoot(i)}})});function mSe(i,e,t){return typeof i=="string"?{name:i,type:e,callback:t}:i}var r3,n3,S1,wd,dp,o3,C1,s3,OH=w(()=>{q();Oe();a1();i3();d1();r3=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),n3=new Map,S1=new Map,wd=null,dp=It.createInterface(i=>i.cachedCallback(e=>(wd===null&&(wd=new C1(null,e)),wd))),o3=Object.freeze({tagFor(i){return S1.get(i)},responsibleFor(i){let e=i.$$designSystem$$;return e||It.findResponsibleContainer(i).get(dp)},getOrCreate(i){if(!i)return wd===null&&(wd=It.getOrCreateDOMContainer().get(dp)),wd;let e=i.$$designSystem$$;if(e)return e;let t=It.getOrCreateDOMContainer(i);if(t.has(dp,!1))return t.get(dp);{let r=new C1(i,t);return t.register(Du.instance(dp,r)),r}}});C1=class{constructor(e,t){this.owner=e,this.container=t,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>r3.definitionCallbackOnly,e!==null&&(e.$$designSystem$$=this)}withPrefix(e){return this.prefix=e,this}
360withShadowRootMode(e){return this.shadowRootMode=e,this}withElementDisambiguation(e){return this.disambiguate=e,this}withDesignTokenRoot(e){return this.designTokenRoot=e,this}register(...e){let t=this.container,r=[],n=this.disambiguate,s=this.shadowRootMode,o={elementPrefix:this.prefix,tryDefineElement(a,l,u){let c=mSe(a,l,u),{name:d,callback:f,baseClass:m}=c,{type:b}=c,y=d,x=n3.get(y),M=!0;for(;x;){let T=n(y,b,x);switch(T){case r3.ignoreDuplicate:return;case r3.definitionCallbackOnly:M=!1,x=void 0;break;default:y=T,x=n3.get(y);break}}M&&((S1.has(b)||b===ee)&&(b=class extends b{}),n3.set(y,b),S1.set(b,y),m&&S1.set(m,y)),r.push(new s3(t,y,b,s,f,M))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&Mn.registerRoot(this.designTokenRoot)),t.registerWithContext(o,...e);for(let a of r)a.callback(a),a.willDefine&&a.definition!==null&&a.definition.define();return this}},s3=class{constructor(e,t,r,n,s,o){this.container=e,this.name=t,this.type=r,this.shadowRootMode=n,this.callback=s,this.willDefine=o,this.definition=null}definePresentation(e){c1.define(this.name,e,this.container)}defineElement(e){this.definition=new Kn(this.type,Object.assign(Object.assign({},e),{name:this.name}))}tagFor(e){return o3.tagFor(e)}}});var LH=w(()=>{});var $H=w(()=>{OH();d1();LH()});var FH=w(()=>{a1()});var PH,NH=w(()=>{q();PH=(i,e)=>H` 361 <div class="positioning-region" part="positioning-region"> 362 ${Ke(t=>t.modal,H` 363 <div 364 class="overlay" 365 part="overlay" 366 role="presentation" 367 @click="${t=>t.dismiss()}" 368 ></div> 369 `)} 370 <div 371 role="dialog" 372 tabindex="-1" 373 class="control" 374 part="control" 375 aria-modal="${t=>t.modal}" 376 aria-describedby="${t=>t.ariaDescribedby}" 377 aria-labelledby="${t=>t.ariaLabelledby}" 378 aria-label="${t=>t.ariaLabel}" 379 ${Te("dialog")} 380 > 381 <slot></slot> 382 </div> 383 </div> 384`});var BH,gSe,qH,hp,a3,bSe,HH,vSe,_Se,ySe,xSe,wSe,SSe,zH,CSe,ISe,jH,MSe,l3,ESe,Sd,I1=w(()=>{BH=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],gSe=BH.join(","),qH=typeof Element>"u",hp=qH?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,a3=!qH&&Element.prototype.getRootNode?function(i){return i.getRootNode()}:function(i){return i.ownerDocument},bSe=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},HH=function(e){return e.tagName==="INPUT"},vSe=function(e){return HH(e)&&e.type==="hidden"},_Se=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},ySe=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},xSe=function(e){if(!e.name)return!0;var t=e.form||a3(e),r=function(a){return t.querySelectorAll('input[type="radio"][name="'+a+'"]')},n;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")n=r(window.CSS.escape(e.name));else try{n=r(e.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var s=ySe(n,e.form);return!s||s===e},wSe=function(e){return HH(e)&&e.type==="radio"},SSe=function(e){return wSe(e)&&!xSe(e)},zH=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return r===0&&n===0},CSe=function(e,t){var r=t.displayCheck,n=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var s=hp.call(e,"details>summary:first-of-type"),o=s?e.parentElement:e;if(hp.call(o,"details:not([open]) *"))return!0;var a=a3(e).host,l=a?.ownerDocument.contains(a)||e.ownerDocument.contains(e);if(!r||r==="full"){if(typeof n=="function"){for(var u=e;e;){var c=e.parentElement,d=a3(e);if(c&&!c.shadowRoot&&n(c)===!0)return zH(e);e.assignedSlot?e=e.assignedSlot:!c&&d!==e.ownerDocument?e=d.host:e=c}e=u}if(l)return!e.getClientRects().length}else if(r==="non-zero-area")return zH(e);return!1}
384,ISe=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r<t.children.length;r++){var n=t.children.item(r);if(n.tagName==="LEGEND")return hp.call(t,"fieldset[disabled] *")?!0:!n.contains(e)}return!0}t=t.parentElement}return!1},jH=function(e,t){return!(t.disabled||vSe(t)||CSe(t,e)||_Se(t)||ISe(t))},MSe=function(e,t){return!(SSe(t)||bSe(t)<0||!jH(e,t))},l3=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return hp.call(e,gSe)===!1?!1:MSe(t,e)},ESe=BH.concat("iframe").join(","),Sd=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return hp.call(e,ESe)===!1?!1:jH(t,e)}});var Pr,VH=w(()=>{De();q();ye();I1();Oe();Pr=class extends ee{constructor(){super(...arguments),this.modal=!0,this.hidden=!1,this.trapFocus=!0,this.trapFocusChanged=()=>{this.$fastController.isConnected&&this.updateTrapFocus()},this.isTrappingFocus=!1,this.handleDocumentKeydown=e=>{if(!e.defaultPrevented&&!this.hidden)switch(e.key){case Jr:this.dismiss(),e.preventDefault();break;case fl:this.handleTabKeyDown(e);break}},this.handleDocumentFocus=e=>{!e.defaultPrevented&&this.shouldForceFocus(e.target)&&(this.focusFirstElement(),e.preventDefault())},this.handleTabKeyDown=e=>{if(!this.trapFocus||this.hidden)return;let t=this.getTabQueueBounds();if(t.length!==0){if(t.length===1){t[0].focus(),e.preventDefault();return}e.shiftKey&&e.target===t[0]?(t[t.length-1].focus(),e.preventDefault()):!e.shiftKey&&e.target===t[t.length-1]&&(t[0].focus(),e.preventDefault())}},this.getTabQueueBounds=()=>{let e=[];return Pr.reduceTabbableItems(e,this)},this.focusFirstElement=()=>{let e=this.getTabQueueBounds();e.length>0?e[0].focus():this.dialog instanceof HTMLElement&&this.dialog.focus()},this.shouldForceFocus=e=>this.isTrappingFocus&&!this.contains(e),this.shouldTrapFocus=()=>this.trapFocus&&!this.hidden,this.updateTrapFocus=e=>{let t=e===void 0?this.shouldTrapFocus():e;t&&!this.isTrappingFocus?(this.isTrappingFocus=!0,document.addEventListener("focusin",this.handleDocumentFocus),ue.queueUpdate(()=>{this.shouldForceFocus(document.activeElement)&&this.focusFirstElement()})):!t&&this.isTrappingFocus&&(this.isTrappingFocus=!1,document.removeEventListener("focusin",this.handleDocumentFocus))}}dismiss(){this.$emit("dismiss"),this.$emit("cancel")}show(){this.hidden=!1}hide(){this.hidden=!0,this.$emit("close")}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.handleDocumentKeydown),this.notifier=ge.getNotifier(this),this.notifier.subscribe(this,"hidden"),this.updateTrapFocus()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.handleDocumentKeydown),this.updateTrapFocus(!1),this.notifier.unsubscribe(this,"hidden")}handleChange(e,t){switch(t){case"hidden":this.updateTrapFocus();break;default:break}}static reduceTabbableItems(e,t){return t.getAttribute("tabindex")==="-1"?e:l3(t)||Pr.isFocusableFastElement(t)&&Pr.hasTabbableShadow(t)?(e.push(t),e):t.childElementCount?e.concat(Array.from(t.children).reduce(Pr.reduceTabbableItems,[])):e}static isFocusableFastElement(e){var t,r;return!!(!((r=(t=e.$fastController)===null||t===void 0?void 0:t.definition.shadowOptions)===null||r===void 0)&&r.delegatesFocus)}static hasTabbableShadow(e){var t,r;return Array.from((r=(t=e.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("*"))!==null&&r!==void 0?r:[]).some(n=>l3(n))}};k([O({mode:"boolean"})],Pr.prototype,"modal",void 0);k([O({mode:"boolean"})],Pr.prototype,"hidden",void 0);k([O({attribute:"trap-focus",mode:"boolean"})],Pr.prototype,"trapFocus",void 0);k([O({attribute:"aria-describedby"})],Pr.prototype,"ariaDescribedby",void 0);k([O({attribute:"aria-labelledby"})],Pr.prototype,"ariaLabelledby",void 0);k([O({attribute:"aria-label"})],Pr.prototype,"ariaLabel",void 0)});var UH=w(()=>{NH();VH()});var WH,GH=w(()=>{q();WH=(i,e)=>H` 385 <details class="disclosure" ${Te("details")}> 386 <summary 387 class="invoker" 388 role="button" 389 aria-controls="disclosure-content" 390 aria-expanded="${t=>t.expanded}" 391 > 392 <slot name="start"></slot> 393 <slot name="title">${t=>t.title}</slot> 394 <slot name="end"></slot> 395 </summary> 396 <div id="disclosure-content"><slot></slot></div> 397 </details> 398`});var Nu,KH=w(()=>{De();q();Oe();Nu=class extends ee{connectedCallback(){super.connectedCallback(),this.setup()}disconnectedCallback(){super.disconnectedCallback(),this.details.removeEventListener("toggle",this.onToggle)}show(){this.details.open=!0}hide(){this.details.open=!1}toggle(){this.details.open=!this.details.open}setup(){this.onToggle=this.onToggle.bind(this),this.details.addEventListener("toggle",this.onToggle),this.expanded&&this.show()}
398onToggle(){this.expanded=this.details.open,this.$emit("toggle")}};k([O({mode:"boolean"})],Nu.prototype,"expanded",void 0);k([O],Nu.prototype,"title",void 0)});var YH=w(()=>{GH();KH()});var XH,JH=w(()=>{q();XH=(i,e)=>H` 399 <template role="${t=>t.role}" aria-orientation="${t=>t.orientation}"></template> 400`});var ZH,QH=w(()=>{ZH={separator:"separator",presentation:"presentation"}});var Cd,ej=w(()=>{De();q();ye();Oe();QH();Cd=class extends ee{constructor(){super(...arguments),this.role=ZH.separator,this.orientation=et.horizontal}};k([O],Cd.prototype,"role",void 0);k([O],Cd.prototype,"orientation",void 0)});var tj=w(()=>{JH();ej()});var ij,rj=w(()=>{ij={next:"next",previous:"previous"}});var nj=w(()=>{});var fp,sj=w(()=>{De();q();Oe();rj();fp=class extends ee{constructor(){super(...arguments),this.hiddenFromAT=!0,this.direction=ij.next}keyupHandler(e){if(!this.hiddenFromAT){let t=e.key;(t==="Enter"||t==="Space")&&this.$emit("click",e),t==="Escape"&&this.blur()}}};k([O({mode:"boolean"})],fp.prototype,"disabled",void 0);k([O({attribute:"aria-hidden",converter:Au})],fp.prototype,"hiddenFromAT",void 0);k([O],fp.prototype,"direction",void 0)});var oj=w(()=>{nj();sj()});var aj=w(()=>{en()});var lj=w(()=>{Oe()});var uj,cj=w(()=>{q();Bt();uj=(i,e)=>H` 401 <template 402 aria-checked="${t=>t.ariaChecked}" 403 aria-disabled="${t=>t.ariaDisabled}" 404 aria-posinset="${t=>t.ariaPosInSet}" 405 aria-selected="${t=>t.ariaSelected}" 406 aria-setsize="${t=>t.ariaSetSize}" 407 class="${t=>[t.checked&&"checked",t.selected&&"selected",t.disabled&&"disabled"].filter(Boolean).join(" ")}" 408 role="option" 409 > 410 ${vt(i,e)} 411 <span class="content" part="content"> 412 <slot ${Re("content")}></slot> 413 </span> 414 ${bt(i,e)} 415 </template> 416`});var dj=w(()=>{Vw();cj()});var tn,M1=w(()=>{De();q();ye();bl();tn=class extends jt{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var e;return(e=this.options)===null||e===void 0?void 0:e.filter(t=>t.checked)}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(e,t){var r,n;this.ariaActiveDescendant=(n=(r=this.options[t])===null||r===void 0?void 0:r.id)!==null&&n!==void 0?n:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;let e=this.activeOption;e&&(e.checked=!0)}checkFirstOption(e=!1){e?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach((t,r)=>{t.checked=tp(r,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(e=!1){e?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((t,r)=>{t.checked=tp(r,this.rangeStartIndex,this.options.length)})):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(e=!1){e?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.options.forEach((t,r)=>{t.checked=tp(r,this.rangeStartIndex,this.activeIndex+1)})):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex<this.options.length-1?1:0,this.checkActiveIndex()}checkPreviousOption(e=!1){e?(this.rangeStartIndex===-1&&(this.rangeStartIndex=this.activeIndex),this.checkedOptions.length===1&&(this.rangeStartIndex+=1),this.options.forEach((t,r)=>{t.checked=tp(r,this.activeIndex,this.rangeStartIndex)})):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(e){var t;if(!this.multiple)return super.clickHandler(e);let r=(t=e.target)===null||t===void 0?void 0:t.closest("[role=option]");if(!(!r||r.disabled))return this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(r),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}
416focusinHandler(e){if(!this.multiple)return super.focusinHandler(e);!this.shouldSkipFocus&&e.target===e.currentTarget&&(this.uncheckAllOptions(),this.activeIndex===-1&&(this.activeIndex=this.firstSelectedOptionIndex!==-1?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(e){this.multiple&&this.uncheckAllOptions()}keydownHandler(e){if(!this.multiple)return super.keydownHandler(e);if(this.disabled)return!0;let{key:t,shiftKey:r}=e;switch(this.shouldSkipFocus=!1,t){case _i:{this.checkFirstOption(r);return}case At:{this.checkNextOption(r);return}case Rt:{this.checkPreviousOption(r);return}case yi:{this.checkLastOption(r);return}case fl:return this.focusAndScrollOptionIntoView(),!0;case Jr:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case Zr:if(e.preventDefault(),this.typeAheadExpired){this.toggleSelectedForAllCheckedOptions();return}default:return t.length===1&&this.handleTypeAhead(`${t}`),!0}}mousedownHandler(e){if(e.offsetX>=0&&e.offsetX<=this.scrollWidth)return super.mousedownHandler(e)}multipleChanged(e,t){var r;this.ariaMultiSelectable=t?"true":null,(r=this.options)===null||r===void 0||r.forEach(n=>{n.checked=t?!1:void 0}),this.setSelectedOptions()}setSelectedOptions(){if(!this.multiple){super.setSelectedOptions();return}this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter(e=>e.selected),this.focusAndScrollOptionIntoView())}sizeChanged(e,t){var r;let n=Math.max(0,parseInt((r=t?.toFixed())!==null&&r!==void 0?r:"",10));n!==t&&ue.queueUpdate(()=>{this.size=n})}toggleSelectedForAllCheckedOptions(){let e=this.checkedOptions.filter(r=>!r.disabled),t=!e.every(r=>r.selected);e.forEach(r=>r.selected=t),this.selectedIndex=this.options.indexOf(e[e.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(e,t){if(!this.multiple){super.typeaheadBufferChanged(e,t);return}if(this.$fastController.isConnected){let r=this.getTypeaheadMatches(),n=this.options.indexOf(r[0]);n>-1&&(this.activeIndex=n,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}uncheckAllOptions(e=!1){this.options.forEach(t=>t.checked=this.multiple?!1:void 0),e||(this.rangeStartIndex=-1)}};k([N],tn.prototype,"activeIndex",void 0);k([O({mode:"boolean"})],tn.prototype,"multiple",void 0);k([O({converter:pe})],tn.prototype,"size",void 0)});var hj,fj=w(()=>{q();M1();hj=(i,e)=>H` 417 <template 418 aria-activedescendant="${t=>t.ariaActiveDescendant}" 419 aria-multiselectable="${t=>t.ariaMultiSelectable}" 420 class="listbox" 421 role="listbox" 422 tabindex="${t=>t.disabled?null:"0"}" 423 @click="${(t,r)=>t.clickHandler(r.event)}" 424 @focusin="${(t,r)=>
424t.focusinHandler(r.event)}" 425 @keydown="${(t,r)=>t.keydownHandler(r.event)}" 426 @mousedown="${(t,r)=>t.mousedownHandler(r.event)}" 427 > 428 <slot 429 ${Re({filter:tn.slottedOptionFilter,flatten:!0,property:"slottedOptions"})} 430 ></slot> 431 </template> 432`});var pj=w(()=>{bl();M1();fj()});var Ms,u3=w(()=>{De();ye();q();Oe();Ms=class extends ee{constructor(){super(...arguments),this.optionElements=[]}menuElementsChanged(){this.updateOptions()}headerElementsChanged(){this.updateOptions()}footerElementsChanged(){this.updateOptions()}updateOptions(){this.optionElements.splice(0,this.optionElements.length),this.addSlottedListItems(this.headerElements),this.addSlottedListItems(this.menuElements),this.addSlottedListItems(this.footerElements),this.$emit("optionsupdated",{bubbles:!1})}addSlottedListItems(e){e!==void 0&&e.forEach(t=>{t.nodeType===1&&t.getAttribute("role")==="listitem"&&(t.id=t.id||Cn("option-"),this.optionElements.push(t))})}};k([N],Ms.prototype,"menuElements",void 0);k([N],Ms.prototype,"headerElements",void 0);k([N],Ms.prototype,"footerElements",void 0);k([N],Ms.prototype,"suggestionsAvailableText",void 0)});var TSe,lo,E1=w(()=>{De();q();Oe();TSe=H` 433 <template> 434 ${i=>i.value} 435 </template> 436`,lo=class extends ee{contentsTemplateChanged(){this.$fastController.isConnected&&this.updateView()}connectedCallback(){super.connectedCallback(),this.updateView()}disconnectedCallback(){super.disconnectedCallback(),this.disconnectView()}handleClick(e){return e.defaultPrevented||this.handleInvoked(),!1}handleInvoked(){this.$emit("pickeroptioninvoked")}updateView(){var e,t;this.disconnectView(),this.customView=(t=(e=this.contentsTemplate)===null||e===void 0?void 0:e.render(this,this))!==null&&t!==void 0?t:TSe.render(this,this)}disconnectView(){var e;(e=this.customView)===null||e===void 0||e.dispose(),this.customView=void 0}};k([O({attribute:"value"})],lo.prototype,"value",void 0);k([N],lo.prototype,"contentsTemplate",void 0)});var zu,c3=w(()=>{Oe();zu=class extends ee{}});var kSe,uo,T1=w(()=>{De();q();ye();Oe();kSe=H` 437 <template> 438 ${i=>i.value} 439 </template> 440`,uo=class extends ee{contentsTemplateChanged(){this.$fastController.isConnected&&this.updateView()}connectedCallback(){super.connectedCallback(),this.updateView()}disconnectedCallback(){this.disconnectView(),super.disconnectedCallback()}handleKeyDown(e){return e.defaultPrevented?!1:e.key===ei?(this.handleInvoke(),!1):!0}handleClick(e){return e.defaultPrevented||this.handleInvoke(),!1}handleInvoke(){this.$emit("pickeriteminvoked")}updateView(){var e,t;this.disconnectView(),this.customView=(t=(e=this.contentsTemplate)===null||e===void 0?void 0:e.render(this,this))!==null&&t!==void 0?t:kSe.render(this,this)}disconnectView(){var e;(e=this.customView)===null||e===void 0||e.dispose(),this.customView=void 0}};k([O({attribute:"value"})],uo.prototype,"value",void 0);k([N],uo.prototype,"contentsTemplate",void 0)});function ASe(i){let e=i.tagFor(uo);return H` 441 <${e} 442 value="${t=>t}" 443 :contentsTemplate="${(t,r)=>r.parent.listItemContentsTemplate}" 444 > 445 </${e}> 446 `}function RSe(i){let e=i.tagFor(lo);return H` 447 <${e} 448 value="${t=>t}" 449 :contentsTemplate="${(t,r)=>r.parent.menuOptionContentsTemplate}" 450 > 451 </${e}> 452 `}var mj,gj=w(()=>{q();rp();u3();E1();c3();T1();mj=(i,e)=>{let t=i.tagFor(Ue),r=i.tagFor(Ms),n=i.tagFor(zu),s=i.tagFor(zu),o=ASe(i),a=RSe(i);return H` 453 <template 454 :selectedListTag="${()=>n}" 455 :menuTag="${()=>r}" 456 :defaultListItemTemplate="${o}" 457 :defaultMenuOptionTemplate="${a}" 458 @focusin="${(l,u)=>l.handleFocusIn(u.event)}" 459 @focusout="${(l,u)=>l.handleFocusOut(u.event)}" 460 @keydown="${(l,u)=>l.handleKeyDown(u.event)}" 461 @pickeriteminvoked="${(l,u)=>l.handleItemInvoke(u.event)}" 462 @pickeroptioninvoked="${(l,u)=>l.handleOptionInvoke(u.event)}" 463 > 464 <slot name="list-region"></slot> 465 466 ${Ke(l=>l.flyoutOpen,H` 467 <${t} 468 class="region" 469 part="region" 470 auto-update-mode="${l=>l.menuConfig.autoUpdateMode}" 471 fixed-placement="${l=>l.menuConfig.fixedPlacement}" 472 vertical-positioning-mode="${l=>l.menuConfig.verticalPositioningMode}" 473 vertical-default-position="${l=>l.menuConfig.verticalDefaultPosition}" 474 vertical-scaling="${l=>l.menuConfig.verticalScaling}" 475 vertical-inset="${l=>l.menuConfig.verticalInset}" 476 vertical-viewport-lock="${l=>l.menuConfig.verticalViewportLock}" 477 horizontal-positioning-mode="${l=>l.menuConfig.horizontalPositioningMode}" 478 horizontal-default-position="${l=>l.menuConfig.horizontalDefaultPosition}" 479 horizontal-scaling="${l=>l.menuConfig.horizontalScaling}" 480 horizontal-inset="${l=>l.menuConfig.horizontalInset}" 481 horizontal-viewport-lock="${l=>l.menuConfig.horizontalViewportLock}" 482 @loaded="${(l,u)=>l.handleRegionLoaded(u.event)}" 483 ${Te("region")} 484 > 485 ${Ke(l=>!l.showNoOptions&&!l.showLoading,H` 486 <slot name="menu-region"></slot> 487 `)} 488 ${Ke(l=>l.showNoOptions&&!l.showLoading,H` 489 <div class="no-options-display" part="no-options-display"> 490 <slot name="no-options-region"> 491 ${l=>l.noSuggestionsText} 492 </slot> 493 </div> 494 `)} 495 ${Ke(l=>l.showLoading,H` 496 <div class="loading-display" part="loading-display"> 497 <slot name="loading-region"> 498 <${s} 499 part="loading-progress" 500 class="loading-progress 501 slot="loading-region" 502 ></${s}> 503 ${l=>l.loadingText} 504 </slot> 505 </div> 506 `)} 507 </${t}> 508 `)} 509 </template> 510 `}});var d3,k1,bj=w(()=>{en();Oe();d3=class extends ee{},k1=class extends ci(d3){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var DSe,nt,vj=w(()=>{De();q();ye();Fw();E1();T1();bj();DSe=H` 511 <input 512 slot="input-region" 513 role="combobox" 514 type="text" 515 autocapitalize="off" 516 autocomplete="off"
517 haspopup="list" 518 aria-label="${i=>i.label}" 519 aria-labelledby="${i=>i.labelledBy}" 520 placeholder="${i=>i.placeholder}" 521 ${Te("inputElement")} 522 ></input> 523`,nt=class extends k1{constructor(){super(...arguments),this.selection="",this.filterSelected=!0,this.filterQuery=!0,this.noSuggestionsText="No suggestions available",this.suggestionsAvailableText="Suggestions available",this.loadingText="Loading suggestions",this.menuPlacement="bottom-fill",this.showLoading=!1,this.optionsList=[],this.filteredOptionsList=[],this.flyoutOpen=!1,this.menuFocusIndex=-1,this.showNoOptions=!1,this.selectedItems=[],this.inputElementView=null,this.handleTextInput=e=>{this.query=this.inputElement.value},this.handleInputClick=e=>{e.preventDefault(),this.toggleFlyout(!0)},this.setRegionProps=()=>{if(this.flyoutOpen){if(this.region===null||this.region===void 0){ue.queueUpdate(this.setRegionProps);return}this.region.anchorElement=this.inputElement}},this.configLookup={top:Dw,bottom:Ow,tallest:Lw,"top-fill":Lq,"bottom-fill":$w,"tallest-fill":$q}}selectionChanged(){this.$fastController.isConnected&&(this.handleSelectionChange(),this.proxy instanceof HTMLInputElement&&(this.proxy.value=this.selection,this.validate()))}optionsChanged(){this.optionsList=this.options.split(",").map(e=>e.trim()).filter(e=>e!=="")}menuPlacementChanged(){this.$fastController.isConnected&&this.updateMenuConfig()}showLoadingChanged(){this.$fastController.isConnected&&ue.queueUpdate(()=>{this.setFocusedOption(0)})}listItemTemplateChanged(){this.updateListItemTemplate()}defaultListItemTemplateChanged(){this.updateListItemTemplate()}menuOptionTemplateChanged(){this.updateOptionTemplate()}defaultMenuOptionTemplateChanged(){this.updateOptionTemplate()}optionsListChanged(){this.updateFilteredOptions()}queryChanged(){this.$fastController.isConnected&&(this.inputElement.value!==this.query&&(this.inputElement.value=this.query),this.updateFilteredOptions(),this.$emit("querychange",{bubbles:!1}))}filteredOptionsListChanged(){this.$fastController.isConnected&&(this.showNoOptions=this.filteredOptionsList.length===0&&this.menuElement.querySelectorAll('[role="listitem"]').length===0,this.setFocusedOption(this.showNoOptions?-1:0))}flyoutOpenChanged(){this.flyoutOpen?(ue.queueUpdate(this.setRegionProps),this.$emit("menuopening",{bubbles:!1})):this.$emit("menuclosing",{bubbles:!1})}showNoOptionsChanged(){this.$fastController.isConnected&&ue.queueUpdate(()=>{this.setFocusedOption(0)})}connectedCallback(){super.connectedCallback(),this.listElement=document.createElement(this.selectedListTag),this.appendChild(this.listElement),this.itemsPlaceholderElement=document.createComment(""),this.listElement.append(this.itemsPlaceholderElement),this.inputElementView=DSe.render(this,this.listElement);let e=this.menuTag.toUpperCase();this.menuElement=Array.from(this.children).find(t=>t.tagName===e),this.menuElement===void 0&&(this.menuElement=document.createElement(this.menuTag),this.appendChild(this.menuElement)),this.menuElement.id===""&&(this.menuElement.id=Cn("listbox-")),this.menuId=this.menuElement.id,this.optionsPlaceholder=document.createComment(""),this.menuElement.append(this.optionsPlaceholder),this.updateMenuConfig(),ue.queueUpdate(()=>this.initialize())}disconnectedCallback(){super.disconnectedCallback(),this.toggleFlyout(!1),this.inputElement.removeEventListener("input",this.handleTextInput),this.inputElement.removeEventListener("click",this.handleInputClick),this.inputElementView!==null&&(this.inputElementView.dispose(),this.inputElementView=null)}focus(){this.inputElement.focus()}initialize(){this.updateListItemTemplate(),this.updateOptionTemplate(),this.itemsRepeatBehavior=new Xo(e=>e.selectedItems,e=>e.activeListItemTemplate,{positioning:!0}).createBehavior(this.itemsPlaceholderElement),this.inputElement.addEventListener("input",this.handleTextInput),this.inputElement.addEventListener("click",this.handleInputClick),this.$fastController.addBehaviors([this.itemsRepeatBehavior]),this.menuElement.suggestionsAvailableText=this.suggestionsAvailableText,this.menuElement.addEventListener("optionsupdated",this.handleMenuOptionsUpdated),this.optionsRepeatBehavior=new Xo(e=>e.filteredOptionsList,e=>e.activeMenuOptionTemplate,{positioning:!0}).createBehavior(this.optionsPlaceholder),this.$fastController.addBehaviors([this.optionsRepeatBehavior]),this.handleSelectionChange()}toggleFlyout(e){if(this.flyoutOpen!==e){if(e&&document.activeElement===this.inputElement){this.flyoutOpen=e,ue.queueUpdate(()=>{this.menuElement!==void 0?this.setFocusedOption(0):this.disableMenu()});return}this.flyoutOpen=!1,this.disableMenu()}}handleMenuOptionsUpdated(e){e.preventDefault(),this.flyoutOpen&&this.setFocusedOption(0)}handleKeyDown(e){if(e.defaultPrevented)return!1;switch(e.key){case At:{if(!this.flyoutOpen)this.toggleFlyout(!0);else{let t=this.flyoutOpen?Math.min(this.menuFocusIndex+1,this.menuElement.optionElements.length-1):0;this.setFocusedOption(t)}return!1}case Rt:{if(!this.flyoutOpen)this.toggleFlyout(!0);else{let t=this.flyoutOpen?Math.max(this.menuFocusIndex-1,0):0;this.setFocusedOption(t)}return!1}case Jr:return this.toggleFlyout(!1),!1;case ei:return this.menuFocusIndex!==-1&&this.menuElement.optionElements.length>this.menuFocusIndex&&this.menuElement.optionElements[this.menuFocusIndex].click(),!1;case gr:return document.activeElement!==this.inputElement?(this.incrementFocusedItem(1),!1):!0;case mr:return this.inputElement.selectionStart===0?(this.incrementFocusedItem(-1),!1):!0;case _q:case vq:{if(document.activeElement===null)return!0;
523if(document.activeElement===this.inputElement)return this.inputElement.selectionStart===0?(this.selection=this.selectedItems.slice(0,this.selectedItems.length-1).toString(),this.toggleFlyout(!1),!1):!0;let t=Array.from(this.listElement.children),r=t.indexOf(document.activeElement);return r>-1?(this.selection=this.selectedItems.splice(r,1).toString(),ue.queueUpdate(()=>{t[Math.min(t.length,r)].focus()}),!1):!0}}return this.toggleFlyout(!0),!0}handleFocusIn(e){return!1}handleFocusOut(e){return(this.menuElement===void 0||!this.menuElement.contains(e.relatedTarget))&&this.toggleFlyout(!1),!1}handleSelectionChange(){this.selectedItems.toString()!==this.selection&&(this.selectedItems=this.selection===""?[]:this.selection.split(","),this.updateFilteredOptions(),ue.queueUpdate(()=>{this.checkMaxItems()}),this.$emit("selectionchange",{bubbles:!1}))}handleRegionLoaded(e){ue.queueUpdate(()=>{this.setFocusedOption(0),this.$emit("menuloaded",{bubbles:!1})})}checkMaxItems(){if(this.inputElement!==void 0)if(this.maxSelected!==void 0&&this.selectedItems.length>=this.maxSelected){if(document.activeElement===this.inputElement){let e=Array.from(this.listElement.querySelectorAll("[role='listitem']"));e[e.length-1].focus()}this.inputElement.hidden=!0}else this.inputElement.hidden=!1}handleItemInvoke(e){if(e.defaultPrevented)return!1;if(e.target instanceof uo){let r=Array.from(this.listElement.querySelectorAll("[role='listitem']")).indexOf(e.target);if(r!==-1){let n=this.selectedItems.slice();n.splice(r,1),this.selection=n.toString(),ue.queueUpdate(()=>this.incrementFocusedItem(0))}return!1}return!0}handleOptionInvoke(e){return e.defaultPrevented?!1:e.target instanceof lo?(e.target.value!==void 0&&(this.selection=`${this.selection}${this.selection===""?"":","}${e.target.value}`),this.inputElement.value="",this.query="",this.inputElement.focus(),this.toggleFlyout(!1),!1):!0}incrementFocusedItem(e){if(this.selectedItems.length===0){this.inputElement.focus();return}let t=Array.from(this.listElement.querySelectorAll("[role='listitem']"));if(document.activeElement!==null){let r=t.indexOf(document.activeElement);r===-1&&(r=t.length);let n=Math.min(t.length,Math.max(0,r+e));n===t.length?this.maxSelected!==void 0&&this.selectedItems.length>=this.maxSelected?t[n-1].focus():this.inputElement.focus():t[n].focus()}}disableMenu(){var e,t,r;this.menuFocusIndex=-1,this.menuFocusOptionId=void 0,(e=this.inputElement)===null||e===void 0||e.removeAttribute("aria-activedescendant"),(t=this.inputElement)===null||t===void 0||t.removeAttribute("aria-owns"),(r=this.inputElement)===null||r===void 0||r.removeAttribute("aria-expanded")}setFocusedOption(e){if(!this.flyoutOpen||e===-1||this.showNoOptions||this.showLoading){this.disableMenu();return}if(this.menuElement.optionElements.length===0)return;this.menuElement.optionElements.forEach(r=>{r.setAttribute("aria-selected","false")}),this.menuFocusIndex=e,this.menuFocusIndex>this.menuElement.optionElements.length-1&&(this.menuFocusIndex=this.menuElement.optionElements.length-1),this.menuFocusOptionId=this.menuElement.optionElements[this.menuFocusIndex].id,this.inputElement.setAttribute("aria-owns",this.menuId),this.inputElement.setAttribute("aria-expanded","true"),this.inputElement.setAttribute("aria-activedescendant",this.menuFocusOptionId);let t=this.menuElement.optionElements[this.menuFocusIndex];t.setAttribute("aria-selected","true"),this.menuElement.scrollTo(0,t.offsetTop)}updateListItemTemplate(){var e;this.activeListItemTemplate=(e=this.listItemTemplate)!==null&&e!==void 0?e:this.defaultListItemTemplate}updateOptionTemplate(){var e;this.activeMenuOptionTemplate=(e=this.menuOptionTemplate)!==null&&e!==void 0?e:this.defaultMenuOptionTemplate}updateFilteredOptions(){this.filteredOptionsList=this.optionsList.slice(0),this.filterSelected&&(this.filteredOptionsList=this.filteredOptionsList.filter(e=>this.selectedItems.indexOf(e)===-1)),this.filterQuery&&this.query!==""&&this.query!==void 0&&(this.filteredOptionsList=this.filteredOptionsList.filter(e=>e.indexOf(this.query)!==-1))}updateMenuConfig(){let e=this.configLookup[this.menuPlacement];e===null&&(e=$w),this.menuConfig=Object.assign(Object.assign({},e),{autoUpdateMode:"auto",fixedPlacement:!0,horizontalViewportLock:!1,verticalViewportLock:!1})}};k([O({attribute:"selection"})],nt.prototype,"selection",void 0);k([O({attribute:"options"})],nt.prototype,"options",void 0);k([O({attribute:"filter-selected",mode:"boolean"})],nt.prototype,"filterSelected",void 0);k([O({attribute:"filter-query",mode:"boolean"})],nt.prototype,"filterQuery",void 0);k([O({attribute:"max-selected"})],nt.prototype,"maxSelected",void 0);k([O({attribute:"no-suggestions-text"})],nt.prototype,"noSuggestionsText",void 0);k([O({attribute:"suggestions-available-text"})],nt.prototype,"suggestionsAvailableText",void 0);k([O({attribute:"loading-text"})],nt.prototype,"loadingText",void 0);k([O({attribute:"label"})],nt.prototype,"label",void 0);k([O({attribute:"labelledby"})],nt.prototype,"labelledBy",void 0);k([O({attribute:"placeholder"})],nt.prototype,"placeholder",void 0);k([O({attribute:"menu-placement"})],nt.prototype,"menuPlacement",void 0);k([N],nt.prototype,"showLoading",void 0);k([N],nt.prototype,"listItemTemplate",void 0);k([N],nt.prototype,"defaultListItemTemplate",void 0);k([N],nt.prototype,"activeListItemTemplate",void 0);k([N],nt.prototype,"menuOptionTemplate",void 0);k([N],nt.prototype,"defaultMenuOptionTemplate",void 0);k([N],nt.prototype,"activeMenuOptionTemplate",void 0);k([N],nt.prototype,"listItemContentsTemplate",void 0);k([N],nt.prototype,"menuOptionContentsTemplate",void 0);k([N],nt.prototype,"optionsList",void 0);k([N],nt.prototype,"query",void 0);k([N],nt.prototype,"filteredOptionsList",void 0);k([N],nt.prototype,"flyoutOpen",void 0);k([N],nt.prototype,"menuId",void 0);k([N],nt.prototype,"selectedListTag",void 0);k([N],nt.prototype,"menuTag",void 0);k([N],nt.prototype,"menuFocusIndex",void 0);k([N],nt.prototype,"menuFocusOptionId",void 0);k([N],nt.prototype,"showNoOptions",void 0);k([N],nt.prototype,"menuConfig",void 0);k([N],nt.prototype,"selectedItems",void 0)});var _j,yj=w(()=>{q();_j=(i,e)=>H` 524 <template role="list" slot="menu-region"> 525 <div class="options-display" part="options-display"> 526 <div class="header-region" part="header-region"> 527 <slot name="header-region" ${Re("headerElements")}></slot> 528 </div> 529 530 <slot ${Re("menuElements")}></slot> 531 <div class="footer-region" part="footer-region"> 532 <slot name="footer-region" ${Re("footerElements")}></slot> 533 </div> 534 <div 535 role="alert"
536 aria-live="polite" 537 part="suggestions-available-alert" 538 class="suggestions-available-alert" 539 > 540 ${t=>t.suggestionsAvailableText} 541 </div> 542 </div> 543 </template> 544 `});var xj,wj=w(()=>{q();xj=(i,e)=>H` 545 <template 546 role="listitem" 547 tabindex="-1" 548 @click="${(t,r)=>t.handleClick(r.event)}" 549 > 550 <slot></slot> 551 </template> 552 `});var Sj,Cj=w(()=>{q();Sj=(i,e)=>H` 553 <template slot="list-region" role="list" class="picker-list"> 554 <slot></slot> 555 <slot name="input-region"></slot> 556 </template> 557 `});var Ij,Mj=w(()=>{q();Ij=(i,e)=>H` 558 <template 559 role="listitem" 560 tabindex="0" 561 @click="${(t,r)=>t.handleClick(r.event)}" 562 @keydown="${(t,r)=>t.handleKeyDown(r.event)}" 563 > 564 <slot></slot> 565 </template> 566 `});var Ej=w(()=>{gj();vj();yj();u3();wj();E1();Cj();c3();Mj();T1()});var Vi,h3,Tj=w(()=>{Vi={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"},h3={[Vi.menuitem]:"menuitem",[Vi.menuitemcheckbox]:"menuitemcheckbox",[Vi.menuitemradio]:"menuitemradio"}});var vr,f3=w(()=>{De();q();ye();Oe();Bt();pl();ji();Tj();vr=class extends ee{constructor(){super(...arguments),this.role=Vi.menuitem,this.hasSubmenu=!1,this.currentDirection=qe.ltr,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case ei:case Zr:return this.invoke(),!1;case gr:return this.expandAndFocus(),!1;case mr:if(this.expanded)return this.expanded=!1,this.focus(),!1}return!0},this.handleMenuItemClick=e=>(e.defaultPrevented||this.disabled||this.invoke(),!1),this.submenuLoaded=()=>{this.focusSubmenuOnLoad&&(this.focusSubmenuOnLoad=!1,this.hasSubmenu&&(this.submenu.focus(),this.setAttribute("tabindex","-1")))},this.handleMouseOver=e=>(this.disabled||!this.hasSubmenu||this.expanded||(this.expanded=!0),!1),this.handleMouseOut=e=>(!this.expanded||this.contains(document.activeElement)||(this.expanded=!1),!1),this.expandAndFocus=()=>{this.hasSubmenu&&(this.focusSubmenuOnLoad=!0,this.expanded=!0)},this.invoke=()=>{if(!this.disabled)switch(this.role){case Vi.menuitemcheckbox:this.checked=!this.checked;break;case Vi.menuitem:this.updateSubmenu(),this.hasSubmenu?this.expandAndFocus():this.$emit("change");break;case Vi.menuitemradio:this.checked||(this.checked=!0);break}},this.updateSubmenu=()=>{this.submenu=this.domChildren().find(e=>e.getAttribute("role")==="menu"),this.hasSubmenu=this.submenu!==void 0}}expandedChanged(e){if(this.$fastController.isConnected){if(this.submenu===void 0)return;this.expanded===!1?this.submenu.collapseExpandedItem():this.currentDirection=$r(this),this.$emit("expanded-change",this,{bubbles:!1})}}checkedChanged(e,t){this.$fastController.isConnected&&this.$emit("change")}connectedCallback(){super.connectedCallback(),ue.queueUpdate(()=>{this.updateSubmenu()}),this.startColumnCount||(this.startColumnCount=1),this.observer=new MutationObserver(this.updateSubmenu)}disconnectedCallback(){super.disconnectedCallback(),this.submenu=void 0,this.observer!==void 0&&(this.observer.disconnect(),this.observer=void 0)}domChildren(){return Array.from(this.children).filter(e=>!e.hasAttribute("hidden"))}};k([O({mode:"boolean"})],vr.prototype,"disabled",void 0);k([O({mode:"boolean"})],vr.prototype,"expanded",void 0);k([N],vr.prototype,"startColumnCount",void 0);k([O],vr.prototype,"role",void 0);k([O({mode:"boolean"})],vr.prototype,"checked",void 0);k([N],vr.prototype,"submenuRegion",void 0);k([N],vr.prototype,"hasSubmenu",void 0);k([N],vr.prototype,"currentDirection",void 0);k([N],vr.prototype,"submenu",void 0);ze(vr,lt)});var kj,Aj=w(()=>{q();rp();Bt();f3();kj=(i,e)=>H` 567 <template 568 role="${t=>t.role}" 569 aria-haspopup="${t=>t.hasSubmenu?"menu":void 0}" 570 aria-checked="${t=>t.role!==Vi.menuitem?t.checked:void 0}" 571 aria-disabled="${t=>t.disabled}" 572 aria-expanded="${t=>t.expanded}" 573 @keydown="${(t,r)=>t.handleMenuItemKeyDown(r.event)}" 574 @click="${(t,r)=>t.handleMenuItemClick(r.event)}" 575 @mouseover="${(t,r)=>t.handleMouseOver(r.event)}" 576 @mouseout="${(t,r)=>t.handleMouseOut(r.event)}" 577 class="${t=>t.disabled?"disabled":""} ${t=>t.expanded?"expanded":""} ${t=>`indent-${t.startColumnCount}`}" 578 > 579 ${Ke(t=>t.role===Vi.menuitemcheckbox,H` 580 <div part="input-container" class="input-container">
581 <span part="checkbox" class="checkbox"> 582 <slot name="checkbox-indicator"> 583 ${e.checkboxIndicator||""} 584 </slot> 585 </span> 586 </div> 587 `)} 588 ${Ke(t=>t.role===Vi.menuitemradio,H` 589 <div part="input-container" class="input-container"> 590 <span part="radio" class="radio"> 591 <slot name="radio-indicator"> 592 ${e.radioIndicator||""} 593 </slot> 594 </span> 595 </div> 596 `)} 597 </div> 598 ${vt(i,e)} 599 <span class="content" part="content"> 600 <slot></slot> 601 </span> 602 ${bt(i,e)} 603 ${Ke(t=>t.hasSubmenu,H` 604 <div 605 part="expand-collapse-glyph-container" 606 class="expand-collapse-glyph-container" 607 > 608 <span part="expand-collapse" class="expand-collapse"> 609 <slot name="expand-collapse-indicator"> 610 ${e.expandCollapseGlyph||""} 611 </slot> 612 </span> 613 </div> 614 `)} 615 ${Ke(t=>t.expanded,H` 616 <${i.tagFor(Ue)} 617 :anchorElement="${t=>t}" 618 vertical-positioning-mode="dynamic" 619 vertical-default-position="bottom" 620 vertical-inset="true" 621 horizontal-positioning-mode="dynamic" 622 horizontal-default-position="end" 623 class="submenu-region" 624 dir="${t=>t.currentDirection}" 625 @loaded="${t=>t.submenuLoaded()}" 626 ${Te("submenuRegion")} 627 part="submenu-region" 628 > 629 <slot name="submenu"></slot> 630 </${i.tagFor(Ue)}> 631 `)} 632 </template> 633`});var p3=w(()=>{Aj();f3()});var Rj,Dj=w(()=>{q();Rj=(i,e)=>H` 634 <template 635 slot="${t=>t.slot?t.slot:t.isNestedMenu()?"submenu":void 0}" 636 role="menu" 637 @keydown="${(t,r)=>t.handleMenuKeyDown(r.event)}" 638 @focusout="${(t,r)=>t.handleFocusOut(r.event)}" 639 > 640 <slot ${Re("items")}></slot> 641 </template> 642`});var _l,Oj=w(()=>{De();q();ye();p3();Oe();_l=class extends ee{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&so(this.parentElement)&&this.parentElement.getAttribute("role")==="menuitem",this.handleFocusOut=e=>{if(!this.contains(e.relatedTarget)&&this.menuItems!==void 0){this.collapseExpandedItem();let t=this.menuItems.findIndex(this.isFocusableElement);this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.menuItems[t].setAttribute("tabindex","0"),this.focusIndex=t}},this.handleItemFocus=e=>{let t=e.target;this.menuItems!==void 0&&t!==this.menuItems[this.focusIndex]&&(this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.handleExpandedChanged=e=>{if(e.defaultPrevented||e.target===null||this.menuItems===void 0||this.menuItems.indexOf(e.target)<0)return;e.preventDefault();let t=e.target;if(this.expandedItem!==null&&t===this.expandedItem&&t.expanded===!1){this.expandedItem=null;return}t.expanded&&(this.expandedItem!==null&&this.expandedItem!==t&&(this.expandedItem.expanded=!1),this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.expandedItem=t,this.focusIndex=this.menuItems.indexOf(t),t.setAttribute("tabindex","0"))},this.removeItemListeners=()=>{this.menuItems!==void 0&&this.menuItems.forEach(e=>{e.removeEventListener("expanded-change",this.handleExpandedChanged),e.removeEventListener("focus",this.handleItemFocus)})},this.setItems=()=>{let e=this.domChildren();this.removeItemListeners(),this.menuItems=e;let t=this.menuItems.filter(this.isMenuItemElement);t.length&&(this.focusIndex=0);function r(s){let o=s.getAttribute("role"),a=s.querySelector("[slot=start]");return o!==Vi.menuitem&&a===null||o===Vi.menuitem&&a!==null?1:o!==Vi.menuitem&&a!==null?2:0}let n=t.reduce((s,o)=>{let a=r(o);return s>a?s:a},0);t.forEach((s,o)=>{s.setAttribute("tabindex",o===0?"0":"-1"),s.addEventListener("expanded-change",this.handleExpandedChanged),s.addEventListener("focus",this.handleItemFocus),(s instanceof vr||"startColumnCount"in s)&&(s.startColumnCount=n)})},this.changeHandler=e=>{if(this.menuItems===void 0)return;let t=e.target,r=this.menuItems.indexOf(t);if(r!==-1&&t.role==="menuitemradio"&&t.checked===!0){for(let s=r-1;s>=0;--s){let o=this.menuItems[s],a=o.getAttribute("role");
642if(a===Vi.menuitemradio&&(o.checked=!1),a==="separator")break}let n=this.menuItems.length-1;for(let s=r+1;s<=n;++s){let o=this.menuItems[s],a=o.getAttribute("role");if(a===Vi.menuitemradio&&(o.checked=!1),a==="separator")break}}},this.isMenuItemElement=e=>so(e)&&_l.focusableElementRoles.hasOwnProperty(e.getAttribute("role")),this.isFocusableElement=e=>this.isMenuItemElement(e)}itemsChanged(e,t){this.$fastController.isConnected&&this.menuItems!==void 0&&this.setItems()}connectedCallback(){super.connectedCallback(),ue.queueUpdate(()=>{this.setItems()}),this.addEventListener("change",this.changeHandler)}disconnectedCallback(){super.disconnectedCallback(),this.removeItemListeners(),this.menuItems=void 0,this.removeEventListener("change",this.changeHandler)}focus(){this.setFocus(0,1)}collapseExpandedItem(){this.expandedItem!==null&&(this.expandedItem.expanded=!1,this.expandedItem=null)}handleMenuKeyDown(e){if(!(e.defaultPrevented||this.menuItems===void 0))switch(e.key){case At:this.setFocus(this.focusIndex+1,1);return;case Rt:this.setFocus(this.focusIndex-1,-1);return;case yi:this.setFocus(this.menuItems.length-1,-1);return;case _i:this.setFocus(0,1);return;default:return!0}}domChildren(){return Array.from(this.children).filter(e=>!e.hasAttribute("hidden"))}setFocus(e,t){if(this.menuItems!==void 0)for(;e>=0&&e<this.menuItems.length;){let r=this.menuItems[e];if(this.isFocusableElement(r)){this.focusIndex>-1&&this.menuItems.length>=this.focusIndex-1&&this.menuItems[this.focusIndex].setAttribute("tabindex","-1"),this.focusIndex=e,r.setAttribute("tabindex","0"),r.focus();break}e+=t}}};_l.focusableElementRoles=h3;k([N],_l.prototype,"items",void 0)});var Lj=w(()=>{Dj();Oj()});var $j,Fj=w(()=>{q();Bt();$j=(i,e)=>H` 643 <template class="${t=>t.readOnly?"readonly":""}"> 644 <label 645 part="label" 646 for="control" 647 class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}" 648 > 649 <slot ${Re("defaultSlottedNodes")}></slot> 650 </label> 651 <div class="root" part="root"> 652 ${vt(i,e)} 653 <input 654 class="control" 655 part="control" 656 id="control" 657 @input="${t=>t.handleTextInput()}" 658 @change="${t=>t.handleChange()}" 659 @keydown="${(t,r)=>t.handleKeyDown(r.event)}" 660 @blur="${(t,r)=>t.handleBlur()}" 661 ?autofocus="${t=>t.autofocus}" 662 ?disabled="${t=>t.disabled}" 663 list="${t=>t.list}" 664 maxlength="${t=>t.maxlength}" 665 minlength="${t=>t.minlength}" 666 placeholder="${t=>t.placeholder}" 667 ?readonly="${t=>t.readOnly}" 668 ?required="${t=>t.required}" 669 size="${t=>t.size}" 670 type="text" 671 inputmode="numeric" 672 min="${t=>t.min}" 673 max="${t=>t.max}" 674 step="${t=>t.step}" 675 aria-atomic="${t=>t.ariaAtomic}" 676 aria-busy="${t=>t.ariaBusy}" 677 aria-controls="${t=>t.ariaControls}" 678 aria-current="${t=>t.ariaCurrent}" 679 aria-describedby="${t=>t.ariaDescribedby}" 680 aria-details="${t=>t.ariaDetails}" 681 aria-disabled="${t=>t.ariaDisabled}" 682 aria-errormessage="${t=>t.ariaErrormessage}" 683 aria-flowto="${t=>t.ariaFlowto}" 684 aria-haspopup="${t=>t.ariaHaspopup}" 685 aria-hidden="${t=>t.ariaHidden}" 686 aria-invalid="${t=>t.ariaInvalid}" 687 aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" 688 aria-label="${t=>t.ariaLabel}" 689 aria-labelledby="${t=>t.ariaLabelledby}" 690 aria-live="${t=>t.ariaLive}" 691 aria-owns="${t=>t.ariaOwns}" 692 aria-relevant="${t=>t.ariaRelevant}" 693 aria-roledescription="${t=>t.ariaRoledescription}" 694 ${Te("control")} 695 /> 696 ${Ke(t=>!t.hideStep&&!t.readOnly&&!t.disabled,H` 697 <div class="controls" part="controls"> 698 <div class="step-up" part="step-up" @click="${t=>t.stepUp()}"> 699 <slot name="step-up-glyph"> 700 ${e.stepUpGlyph||""} 701 </slot> 702 </div> 703 <div 704 class="step-down" 705 part="step-down" 706 @click="${t=>t.stepDown()}" 707 > 708 <slot name="step-down-glyph"> 709 ${e.stepDownGlyph||""} 710 </slot> 711 </div> 712 </div> 713 `)} 714 ${bt(i,e)} 715 </div> 716 </template> 717`});var m3,A1,Pj=w(()=>{en();Oe();m3=class extends ee{},A1=class extends ci(m3){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var Nj,zj=w(()=>{Nj={email:"email",password:"password",tel:"tel",text:"text",url:"url"}});var sr,co,R1=w(()=>{De();q();Lu();ji();Pj();zj();sr=class extends A1{constructor(){super(...arguments),this.type=Nj.text}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}typeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.type=this.t
717ype,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type",this.type),this.validate(),this.autofocus&&ue.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.value=this.control.value}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};k([O({attribute:"readonly",mode:"boolean"})],sr.prototype,"readOnly",void 0);k([O({mode:"boolean"})],sr.prototype,"autofocus",void 0);k([O],sr.prototype,"placeholder",void 0);k([O],sr.prototype,"type",void 0);k([O],sr.prototype,"list",void 0);k([O({converter:pe})],sr.prototype,"maxlength",void 0);k([O({converter:pe})],sr.prototype,"minlength",void 0);k([O],sr.prototype,"pattern",void 0);k([O({converter:pe})],sr.prototype,"size",void 0);k([O({mode:"boolean"})],sr.prototype,"spellcheck",void 0);k([N],sr.prototype,"defaultSlottedNodes",void 0);co=class{};ze(co,rt);ze(sr,lt,co)});var g3,D1,Bj=w(()=>{en();Oe();g3=class extends ee{},D1=class extends ci(g3){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var Ui,qj=w(()=>{De();q();ye();Bt();ji();R1();Bj();Ui=class extends D1{constructor(){super(...arguments),this.hideStep=!1,this.step=1,this.isUserInput=!1}maxChanged(e,t){var r;this.max=Math.max(t,(r=this.min)!==null&&r!==void 0?r:t);let n=Math.min(this.min,this.max);this.min!==void 0&&this.min!==n&&(this.min=n),this.value=this.getValidValue(this.value)}minChanged(e,t){var r;this.min=Math.min(t,(r=this.max)!==null&&r!==void 0?r:t);let n=Math.max(this.min,this.max);this.max!==void 0&&this.max!==n&&(this.max=n),this.value=this.getValidValue(this.value)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(e){this.value=e.toString()}valueChanged(e,t){this.value=this.getValidValue(t),t===this.value&&(this.control&&!this.isUserInput&&(this.control.value=this.value),super.valueChanged(e,this.value),e!==void 0&&!this.isUserInput&&(this.$emit("input"),this.$emit("change")),this.isUserInput=!1)}validate(){super.validate(this.control)}getValidValue(e){var t,r;let n=parseFloat(parseFloat(e).toPrecision(12));return isNaN(n)?n="":(n=Math.min(n,(t=this.max)!==null&&t!==void 0?t:n),n=Math.max(n,(r=this.min)!==null&&r!==void 0?r:n).toString()),n}stepUp(){let e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:this.step:e+this.step;this.value=t.toString()}stepDown(){let e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step:e-this.step;this.value=t.toString()}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","number"),this.validate(),this.control.value=this.value,this.autofocus&&ue.queueUpdate(()=>{this.focus()})}select(){this.control.select(),this.$emit("select")}handleTextInput(){this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,""),this.isUserInput=!0,this.value=this.control.value}handleChange(){this.$emit("change")}handleKeyDown(e){switch(e.key){case Rt:return this.stepUp(),!1;case At:return this.stepDown(),!1}return!0}handleBlur(){this.control.value=this.value}};k([O({attribute:"readonly",mode:"boolean"})],Ui.prototype,"readOnly",void 0);k([O({mode:"boolean"})],Ui.prototype,"autofocus",void 0);k([O({attribute:"hide-step",mode:"boolean"})],Ui.prototype,"hideStep",void 0);k([O],Ui.prototype,"placeholder",void 0);k([O],Ui.prototype,"list",void 0);k([O({converter:pe})],Ui.prototype,"maxlength",void 0);k([O({converter:pe})],Ui.prototype,"minlength",void 0);k([O({converter:pe})],Ui.prototype,"size",void 0);k([O({converter:pe})],Ui.prototype,"step",void 0);k([O({converter:pe})],Ui.prototype,"max",void 0);k([O({converter:pe})],Ui.prototype,"min",void 0);k([N],Ui.prototype,"defaultSlottedNodes",void 0);ze(Ui,lt,co)});var Hj=w(()=>{Fj();qj()});var jj,Vj,Uj=w(()=>{q();jj=44,Vj=(i,e)=>H` 718 <template 719 role="progressbar" 720 aria-valuenow="${t=>t.value}" 721 aria-valuemin="${t=>t.min}" 722 aria-valuemax="${t=>t.max}" 723 class="${t=>t.paused?"paused":""}" 724 > 725 ${Ke(t=>typeof t.value=="number",H` 726 <svg 727 class="progress" 728 part="progress"
729 viewBox="0 0 16 16" 730 slot="determinate" 731 > 732 <circle 733 class="background" 734 part="background" 735 cx="8px" 736 cy="8px" 737 r="7px" 738 ></circle> 739 <circle 740 class="determinate" 741 part="determinate" 742 style="stroke-dasharray: ${t=>jj*t.percentComplete/100}px ${jj}px" 743 cx="8px" 744 cy="8px" 745 r="7px" 746 ></circle> 747 </svg> 748 `,H` 749 <slot name="indeterminate" slot="indeterminate"> 750 ${e.indeterminateIndicator||""} 751 </slot> 752 `)} 753 </template> 754`});var Wj=w(()=>{Uj()});var Es,Gj=w(()=>{De();q();Oe();Es=class extends ee{constructor(){super(...arguments),this.percentComplete=0}valueChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}minChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}maxChanged(){this.$fastController.isConnected&&this.updatePercentComplete()}connectedCallback(){super.connectedCallback(),this.updatePercentComplete()}updatePercentComplete(){let e=typeof this.min=="number"?this.min:0,t=typeof this.max=="number"?this.max:100,r=typeof this.value=="number"?this.value:0,n=t-e;this.percentComplete=n===0?0:Math.fround((r-e)/n*100)}};k([O({converter:pe})],Es.prototype,"value",void 0);k([O({converter:pe})],Es.prototype,"min",void 0);k([O({converter:pe})],Es.prototype,"max",void 0);k([O({mode:"boolean"})],Es.prototype,"paused",void 0);k([N],Es.prototype,"percentComplete",void 0)});var Kj,Yj=w(()=>{q();Kj=(i,e)=>H` 755 <template 756 role="progressbar" 757 aria-valuenow="${t=>t.value}" 758 aria-valuemin="${t=>t.min}" 759 aria-valuemax="${t=>t.max}" 760 class="${t=>t.paused?"paused":""}" 761 > 762 ${Ke(t=>typeof t.value=="number",H` 763 <div class="progress" part="progress" slot="determinate"> 764 <div 765 class="determinate" 766 part="determinate" 767 style="width: ${t=>t.percentComplete}%" 768 ></div> 769 </div> 770 `,H` 771 <div class="progress" part="progress" slot="indeterminate"> 772 <slot class="indeterminate" name="indeterminate"> 773 ${e.indeterminateIndicator1||""} 774 ${e.indeterminateIndicator2||""} 775 </slot> 776 </div> 777 `)} 778 </template> 779`});var Xj=w(()=>{Gj();Yj()});var Jj,Zj=w(()=>{q();ye();Jj=(i,e)=>H` 780 <template 781 role="radiogroup" 782 aria-disabled="${t=>t.disabled}" 783 aria-readonly="${t=>t.readOnly}" 784 @click="${(t,r)=>t.clickHandler(r.event)}" 785 @keydown="${(t,r)=>t.keydownHandler(r.event)}" 786 @focusout="${(t,r)=>t.focusOutHandler(r.event)}" 787 > 788 <slot name="label"></slot> 789 <div 790 class="positioning-region ${t=>t.orientation===et.horizontal?"horizontal":"vertical"}" 791 part="positioning-region" 792 > 793 <slot 794 ${Re({property:"slottedRadioButtons",filter:pr("[role=radio]")})} 795 ></slot> 796 </div> 797 </template> 798`});var Zn,Qj=w(()=>{De();q();ye();pl();Oe();Zn=class extends ee{constructor(){super(...arguments),this.orientation=et.horizontal,this.radioChangeHandler=e=>{let t=e.target;t.checked&&(this.slottedRadioButtons.forEach(r=>{r!==t&&(r.checked=!1,this.isInsideFoundationToolbar||r.setAttribute("tabindex","-1"))}),this.selectedRadio=t,this.value=t.value,t.setAttribute("tabindex","0"),this.focusedRadio=t),e.stopPropagation()},this.moveToRadioByIndex=(e,t)=>{let r=e[t];this.isInsideToolbar||(r.setAttribute("tabindex","0"),r.readOnly?this.slottedRadioButtons.forEach(n=>{n!==r&&n.setAttribute("tabindex","-1")}):(r.checked=!0,this.selectedRadio=r)),this.focusedRadio=r,r.focus()},this.moveRightOffGroup=()=>{var e;(e=this.nextElementSibling)===null||e===void 0||e.focus()},this.moveLeftOffGroup=()=>{var e;(e=this.previousElementSibling)===null||e===void 0||e.focus()},this.focusOutHandler=e=>{let t=this.slottedRadioButtons,r=e.target,n=r!==null?t.indexOf(r):0,s=this.focusedRadio?t.indexOf(this.focusedRadio):-1;return(s===0&&n===s||s===t.length-1&&s===n)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),t.forEach(o=>{o!==this.selectedRadio&&o.setAttribute("tabindex","-1")}))):(this.focusedRadio=t[0],this.focusedRadio.setAttribute("tabindex","0"),t.forEach(o=>{o!==this.focusedRadio&&o.setAttribute("tabindex","-1")}))),!0},this.clickHandler=e=>{let t=e.target;if(t){let r=this.slottedRadioButtons;t.checked||r.indexOf(t)===0?(t.setAttribute("tabindex","0"),this.selectedRadio=t):(t.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=t}e.preventDefault()},this.shouldMoveOffGroupToTheRight=(e,t,r)=>e===t.length&&this.isInsideToolbar&&r===gr,this.shouldMoveOffGroupToTheLeft=(e,t)=>(this.focusedRadio?e.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&t===mr,this.checkFocusedRadio=()=>{this.focusedRadio!==null&&!this.focusedRadio.readOnly&&!this.focusedRadio.checked&&(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=e=>{let t=this.slottedRadioButtons,r=0;if(r=this.focusedRadio?t.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(r,t,e.key)){this.moveRightOffGroup();return}else r===t.length&&(r=0);for(;r<t.length&&t.length>1;)if(t[r].disabled){if(this.focusedRadio&&r===t.indexOf(this.focusedRadio))break;if(r+1>=t.length){if(this.isInsideToolbar)break;r=0}else r+=1}else{this.moveToRadioByIndex(t,r);break}},this.moveLeft=e=>{let t=this.slottedRadioButtons,r=0;if(r=this.focusedRadio?t.indexOf(this.focusedRadio)-1:0,r=r<0?t.length-1:r,this.shouldMoveOffGroupToTheLeft(t,e.key)){this.moveLeftOffGroup();return}for(;r>=0&&t.length>1;)if(t[r].disabled){if(this.focusedRadio&&r===t.indexOf(this.focusedRadio))break;r-1<0?r=t.length-1:r-=1}else{this.moveToRadioByIndex(t,r);break}},this.keydownHandler=e=>{let t=e.key;if(t in Qr&&this.isInsideFoundationToolbar)return!0;switch(t){case ei:{this.checkFocusedRadio();break}case gr:case At:{this.direction===qe.ltr?this.moveRight(e):this.moveLeft(e);break}case mr:case Rt:{this.direction===qe.ltr?this.moveLeft(e):this.moveRight(e);break}default:return!0}}}readOnlyChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(e
798=>{this.readOnly?e.readOnly=!0:e.readOnly=!1})}disabledChanged(){this.slottedRadioButtons!==void 0&&this.slottedRadioButtons.forEach(e=>{this.disabled?e.disabled=!0:e.disabled=!1})}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e.setAttribute("name",this.name)})}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e.value===this.value&&(e.checked=!0,this.selectedRadio=e)}),this.$emit("change")}slottedRadioButtonsChanged(e,t){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var e;return(e=this.parentToolbar)!==null&&e!==void 0?e:!1}get isInsideFoundationToolbar(){var e;return!!(!((e=this.parentToolbar)===null||e===void 0)&&e.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=$r(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach(e=>{e.removeEventListener("change",this.radioChangeHandler)})}setupRadioButtons(){let e=this.slottedRadioButtons.filter(n=>n.hasAttribute("checked")),t=e?e.length:0;if(t>1){let n=e[t-1];n.checked=!0}let r=!1;if(this.slottedRadioButtons.forEach(n=>{this.name!==void 0&&n.setAttribute("name",this.name),this.disabled&&(n.disabled=!0),this.readOnly&&(n.readOnly=!0),this.value&&this.value===n.value?(this.selectedRadio=n,this.focusedRadio=n,n.checked=!0,n.setAttribute("tabindex","0"),r=!0):(this.isInsideFoundationToolbar||n.setAttribute("tabindex","-1"),n.checked=!1),n.addEventListener("change",this.radioChangeHandler)}),this.value===void 0&&this.slottedRadioButtons.length>0){let n=this.slottedRadioButtons.filter(o=>o.hasAttribute("checked")),s=n!==null?n.length:0;if(s>0&&!r){let o=n[s-1];o.checked=!0,this.focusedRadio=o,o.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}};k([O({attribute:"readonly",mode:"boolean"})],Zn.prototype,"readOnly",void 0);k([O({attribute:"disabled",mode:"boolean"})],Zn.prototype,"disabled",void 0);k([O],Zn.prototype,"name",void 0);k([O],Zn.prototype,"value",void 0);k([O],Zn.prototype,"orientation",void 0);k([N],Zn.prototype,"childItems",void 0);k([N],Zn.prototype,"slottedRadioButtons",void 0)});var eV=w(()=>{Zj();Qj()});var tV=w(()=>{});var b3,O1,iV=w(()=>{en();Oe();b3=class extends ee{},O1=class extends _d(b3){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var yl,rV=w(()=>{De();q();ye();iV();yl=class extends O1{constructor(){super(),this.initialValue="on",this.keypressHandler=e=>{switch(e.key){case Zr:!this.checked&&!this.readOnly&&(this.checked=!0);return}return!0},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var e;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=(e=this.defaultChecked)!==null&&e!==void 0?e:!1,this.dirtyChecked=!1))}connectedCallback(){var e,t;super.connectedCallback(),this.validate(),((e=this.parentElement)===null||e===void 0?void 0:e.getAttribute("role"))!=="radiogroup"&&this.getAttribute("tabindex")===null&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=(t=this.defaultChecked)!==null&&t!==void 0?t:!1,this.dirtyChecked=!1))}isInsideRadioGroup(){return this.closest("[role=radiogroup]")!==null}clickHandler(e){!this.disabled&&!this.readOnly&&!this.checked&&(this.checked=!0)}};k([O({attribute:"readonly",mode:"boolean"})],yl.prototype,"readOnly",void 0);k([N],yl.prototype,"name",void 0);k([N],yl.prototype,"defaultSlottedNodes",void 0)});var nV=w(()=>{tV();rV()});var ra,sV=w(()=>{De();q();Oe();ra=class extends ee{constructor(){super(...arguments),this.framesPerSecond=60,this.updatingItems=!1,this.speed=600,this.easing="ease-in-out",this.flippersHiddenFromAT=!1,this.scrolling=!1,this.resizeDetector=null}get frameTime(){return 1e3/this.framesPerSecond}scrollingChanged(e,t){if(this.scrollContainer){let r=this.scrolling==!0?"scrollstart":"scrollend";this.$emit(r,this.scrollContainer.scrollLeft)}}get isRtl(){return this.scrollItems.length>1&&this.scrollItems[0].offsetLeft>this.scrollItems[1].offsetLeft}connectedCallback(){super.connectedCallback(),this.initializeResizeDetector()}disconnectedCallback(){this.disconnectResizeDetector(),super.disconnectedCallback()}scrollItemsChanged(e,t){t&&!this.updatingItems&&ue.queueUpdate(()=>this.setStops())}disconnectResizeDetector(){this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.resized.bind(this)),this.resizeDetector.observe(this)}updateScrollStops(){this.updatingItems=!0;let e=this.scrollItems.reduce((t,r)=>r instanceof HTMLSlotElement?t.concat(r.assignedElements()):(t.push(r),t),[]);this.scrollItems=e,this.updatingItems=!1}setStops(){this.updateScrollStops();let{scrollContainer:e}=this,{scrollLeft:t}=e,{width:r,left:n}=e.getBoundingClientRect();this.width=r;let s=0,o=this.scrollItems.map((a,l)=>{let{left:u,width:c}=a.getBoundingClientRect(),d=Math.round(u+t-n),f=Math.round(d+c);return this.isRtl?-f:(s=f,l===0?0:d)}).concat(s);o=this.fixScrollMisalign(o),o.sort((a,l)=>Math.abs(a)-Math.abs(l)),this.scrollStops=o,this.setFlippers()}validateStops(e=!0){let t=()=>!!this.scrollStops.find(r=>r>0);return!t()&&e&&this.setStops(),t()}fixScrollMisalign(e){if(this.isRtl&&e.some(t=>t>0)){e.sort((r,n)=>n-r);let t=e[0];e=e.map(r=>r-t)}return e}
798setFlippers(){var e,t;let r=this.scrollContainer.scrollLeft;if((e=this.previousFlipperContainer)===null||e===void 0||e.classList.toggle("disabled",r===0),this.scrollStops){let n=Math.abs(this.scrollStops[this.scrollStops.length-1]);(t=this.nextFlipperContainer)===null||t===void 0||t.classList.toggle("disabled",this.validateStops(!1)&&Math.abs(r)+this.width>=n)}}scrollInView(e,t=0,r){var n;if(typeof e!="number"&&e&&(e=this.scrollItems.findIndex(s=>s===e||s.contains(e))),e!==void 0){r=r??t;let{scrollContainer:s,scrollStops:o,scrollItems:a}=this,{scrollLeft:l}=this.scrollContainer,{width:u}=s.getBoundingClientRect(),c=o[e],{width:d}=a[e].getBoundingClientRect(),f=c+d,m=l+t>c;if(m||l+u-r<f){let y=(n=[...o].sort((x,M)=>m?M-x:x-M).find(x=>m?x+t<c:x+u-(r??0)>f))!==null&&n!==void 0?n:0;this.scrollToPosition(y)}}}keyupHandler(e){switch(e.key){case"ArrowLeft":this.scrollToPrevious();break;case"ArrowRight":this.scrollToNext();break}}scrollToPrevious(){this.validateStops();let e=this.scrollContainer.scrollLeft,t=this.scrollStops.findIndex((s,o)=>s>=e&&(this.isRtl||o===this.scrollStops.length-1||this.scrollStops[o+1]>e)),r=Math.abs(this.scrollStops[t+1]),n=this.scrollStops.findIndex(s=>Math.abs(s)+this.width>r);(n>=t||n===-1)&&(n=t>0?t-1:0),this.scrollToPosition(this.scrollStops[n],e)}scrollToNext(){this.validateStops();let e=this.scrollContainer.scrollLeft,t=this.scrollStops.findIndex(s=>Math.abs(s)>=Math.abs(e)),r=this.scrollStops.findIndex(s=>Math.abs(e)+this.width<=Math.abs(s)),n=t;r>t+2?n=r-2:t<this.scrollStops.length-2&&(n=t+1),this.scrollToPosition(this.scrollStops[n],e)}scrollToPosition(e,t=this.scrollContainer.scrollLeft){var r;if(this.scrolling)return;this.scrolling=!0;let n=(r=this.duration)!==null&&r!==void 0?r:`${Math.abs(e-t)/this.speed}s`;this.content.style.setProperty("transition-duration",n);let s=parseFloat(getComputedStyle(this.content).getPropertyValue("transition-duration")),o=u=>{u&&u.target!==u.currentTarget||(this.content.style.setProperty("transition-duration","0s"),this.content.style.removeProperty("transform"),this.scrollContainer.style.setProperty("scroll-behavior","auto"),this.scrollContainer.scrollLeft=e,this.setFlippers(),this.content.removeEventListener("transitionend",o),this.scrolling=!1)};if(s===0){o();return}this.content.addEventListener("transitionend",o);let a=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth,l=this.scrollContainer.scrollLeft-Math.min(e,a);this.isRtl&&(l=this.scrollContainer.scrollLeft+Math.min(Math.abs(e),a)),this.content.style.setProperty("transition-property","transform"),this.content.style.setProperty("transition-timing-function",this.easing),this.content.style.setProperty("transform",`translateX(${l}px)`)}resized(){this.resizeTimeout&&(this.resizeTimeout=clearTimeout(this.resizeTimeout)),this.resizeTimeout=setTimeout(()=>{this.width=this.scrollContainer.offsetWidth,this.setFlippers()},this.frameTime)}scrolled(){this.scrollTimeout&&(this.scrollTimeout=clearTimeout(this.scrollTimeout)),this.scrollTimeout=setTimeout(()=>{this.setFlippers()},this.frameTime)}};k([O({converter:pe})],ra.prototype,"speed",void 0);k([O],ra.prototype,"duration",void 0);k([O],ra.prototype,"easing",void 0);k([O({attribute:"flippers-hidden-from-at",converter:Au})],ra.prototype,"flippersHiddenFromAT",void 0);k([N],ra.prototype,"scrolling",void 0);k([N],ra.prototype,"scrollItems",void 0);k([O({attribute:"view"})],ra.prototype,"view",void 0)});var oV=w(()=>{});var aV=w(()=>{sV();oV()});function Id(i,e,t){return i.nodeType!==Node.TEXT_NODE?!0:typeof i.nodeValue=="string"&&!!i.nodeValue.trim().length}var L1=w(()=>{});var lV,uV=w(()=>{q();Bt();L1();lV=(i,e)=>H` 799 <template 800 class=" 801 ${t=>t.readOnly?"readonly":""} 802 " 803 > 804 <label 805 part="label" 806 for="control" 807 class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}" 808 > 809 <slot 810 ${Re({property:"defaultSlottedNodes",filter:Id})} 811 ></slot> 812 </label> 813 <div class="root" part="root" ${Te("root")}> 814 ${vt(i,e)} 815 <div class="input-wrapper" part="input-wrapper"> 816 <input 817 class="control" 818 part="control" 819 id="control"
820 @input="${t=>t.handleTextInput()}" 821 @change="${t=>t.handleChange()}" 822 ?autofocus="${t=>t.autofocus}" 823 ?disabled="${t=>t.disabled}" 824 list="${t=>t.list}" 825 maxlength="${t=>t.maxlength}" 826 minlength="${t=>t.minlength}" 827 pattern="${t=>t.pattern}" 828 placeholder="${t=>t.placeholder}" 829 ?readonly="${t=>t.readOnly}" 830 ?required="${t=>t.required}" 831 size="${t=>t.size}" 832 ?spellcheck="${t=>t.spellcheck}" 833 :value="${t=>t.value}" 834 type="search" 835 aria-atomic="${t=>t.ariaAtomic}" 836 aria-busy="${t=>t.ariaBusy}" 837 aria-controls="${t=>t.ariaControls}" 838 aria-current="${t=>t.ariaCurrent}" 839 aria-describedby="${t=>t.ariaDescribedby}" 840 aria-details="${t=>t.ariaDetails}" 841 aria-disabled="${t=>t.ariaDisabled}" 842 aria-errormessage="${t=>t.ariaErrormessage}" 843 aria-flowto="${t=>t.ariaFlowto}" 844 aria-haspopup="${t=>t.ariaHaspopup}" 845 aria-hidden="${t=>t.ariaHidden}" 846 aria-invalid="${t=>t.ariaInvalid}" 847 aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" 848 aria-label="${t=>t.ariaLabel}" 849 aria-labelledby="${t=>t.ariaLabelledby}" 850 aria-live="${t=>t.ariaLive}" 851 aria-owns="${t=>t.ariaOwns}" 852 aria-relevant="${t=>t.ariaRelevant}" 853 aria-roledescription="${t=>t.ariaRoledescription}" 854 ${Te("control")} 855 /> 856 <slot name="close-button"> 857 <button 858 class="clear-button ${t=>t.value?"":"clear-button__hidden"}" 859 part="clear-button" 860 tabindex="-1" 861 @click=${t=>t.handleClearInput()} 862 > 863 <slot name="close-glyph"> 864 <svg 865 width="9" 866 height="9"
867 viewBox="0 0 9 9" 868 xmlns="http://www.w3.org/2000/svg" 869 > 870 <path 871 d="M0.146447 0.146447C0.338683 -0.0478972 0.645911 -0.0270359 0.853553 0.146447L4.5 3.793L8.14645 0.146447C8.34171 -0.0488155 8.65829 -0.0488155 8.85355 0.146447C9.04882 0.341709 9.04882 0.658291 8.85355 0.853553L5.207 4.5L8.85355 8.14645C9.05934 8.35223 9.03129 8.67582 8.85355 8.85355C8.67582 9.03129 8.35409 9.02703 8.14645 8.85355L4.5 5.207L0.853553 8.85355C0.658291 9.04882 0.341709 9.04882 0.146447 8.85355C-0.0488155 8.65829 -0.0488155 8.34171 0.146447 8.14645L3.793 4.5L0.146447 0.853553C-0.0268697 0.680237 -0.0457894 0.34079 0.146447 0.146447Z" 872 /> 873 </svg> 874 </slot> 875 </button> 876 </slot> 877 </div> 878 ${bt(i,e)} 879 </div> 880 </template> 881`});var v3,$1,cV=w(()=>{en();Oe();v3=class extends ee{},$1=class extends ci(v3){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var _r,F1,dV=w(()=>{De();q();Lu();ji();cV();_r=class extends $1{readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.maxLength=this.maxlength,this.validate())}minlengthChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.minLength=this.minlength,this.validate())}patternChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.pattern=this.pattern,this.validate())}sizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.size=this.size)}spellcheckChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.spellcheck=this.spellcheck)}connectedCallback(){super.connectedCallback(),this.validate(),this.autofocus&&ue.queueUpdate(()=>{this.focus()})}validate(){super.validate(this.control)}handleTextInput(){this.value=this.control.value}handleClearInput(){this.value="",this.control.focus(),this.handleChange()}handleChange(){this.$emit("change")}};k([O({attribute:"readonly",mode:"boolean"})],_r.prototype,"readOnly",void 0);k([O({mode:"boolean"})],_r.prototype,"autofocus",void 0);k([O],_r.prototype,"placeholder",void 0);k([O],_r.prototype,"list",void 0);k([O({converter:pe})],_r.prototype,"maxlength",void 0);k([O({converter:pe})],_r.prototype,"minlength",void 0);k([O],_r.prototype,"pattern",void 0);k([O({converter:pe})],_r.prototype,"size",void 0);k([O({mode:"boolean"})],_r.prototype,"spellcheck",void 0);k([N],_r.prototype,"defaultSlottedNodes",void 0);F1=class{};ze(F1,rt);ze(_r,lt,F1)});var hV=w(()=>{uV();dV()});var _3,P1,fV=w(()=>{M1();en();_3=class extends tn{},P1=class extends ci(_3){constructor(){super(...arguments),this.proxy=document.createElement("select")}}});var rn,pp,pV=w(()=>{De();q();ye();bl();Bt();ji();fV();_1();rn=class extends P1{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=Cn("listbox-"),this.maxHeight=0}openChanged(e,t){if(this.collapsible){if(this.open){this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,ue.queueUpdate(()=>this.focus());return}this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||typeof this.size=="number")}get value(){return ge.track(this,"value"),this._value}set value(e){var t,r,n,s,o,a,l;let u=`${this._value}`;if(!((t=this._options)===null||t===void 0)&&t.length){let c=this._options.findIndex(m=>m.value===e),d=(n=(r=this._options[this.selectedIndex])===null||r===void 0?void 0:r.value)!==null&&n!==void 0?n:null,f=(o=(s=this._options[c])===null||s===void 0?void 0:s.value)!==null&&o!==void 0?o:null;(c===-1||d!==f)&&(e="",this.selectedIndex=c),e=(l=(a=this.firstSelectedOption)===null||a===void 0?void 0:a.value)!==null&&l!==void 0?l:e}u!==e&&(this._value=e,super.valueChanged(u,e),ge.notify(this,"value"),this.updateDisplayValue())}updateValue(e){var t,r;this.$fastController.isConnected&&(this.value=(r=(t=this.firstSelectedOption)===null||t===void 0?void 0:t.value)!==null&&r!==void 0?r:""),e&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(e,t){super.selectedIndexChanged(e,t),this.updateV
881alue()}positionChanged(e,t){this.positionAttribute=t,this.setPositioning()}setPositioning(){let e=this.getBoundingClientRect(),r=window.innerHeight-e.bottom;this.position=this.forcedPosition?this.positionAttribute:e.top>r?vl.above:vl.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===vl.above?~~e.top:~~r}get displayValue(){var e,t;return ge.track(this,"displayValue"),(t=(e=this.firstSelectedOption)===null||e===void 0?void 0:e.text)!==null&&t!==void 0?t:""}disabledChanged(e,t){super.disabledChanged&&super.disabledChanged(e,t),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),this.selectedIndex===-1&&(this.selectedIndex=0)}clickHandler(e){if(!this.disabled){if(this.open){let t=e.target.closest("option,[role=option]");if(t&&t.disabled)return}return super.clickHandler(e),this.open=this.collapsible&&!this.open,!this.open&&this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0),!0}}focusoutHandler(e){var t;if(super.focusoutHandler(e),!this.open)return!0;let r=e.relatedTarget;if(this.isSameNode(r)){this.focus();return}!((t=this.options)===null||t===void 0)&&t.includes(r)||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(e,t){super.handleChange(e,t),t==="value"&&this.updateValue()}slottedOptionsChanged(e,t){this.options.forEach(r=>{ge.getNotifier(r).unsubscribe(this,"value")}),super.slottedOptionsChanged(e,t),this.options.forEach(r=>{ge.getNotifier(r).subscribe(this,"value")}),this.setProxyOptions(),this.updateValue()}mousedownHandler(e){var t;return e.offsetX>=0&&e.offsetX<=((t=this.listbox)===null||t===void 0?void 0:t.scrollWidth)?super.mousedownHandler(e):this.collapsible}multipleChanged(e,t){super.multipleChanged(e,t),this.proxy&&(this.proxy.multiple=t)}selectedOptionsChanged(e,t){var r;super.selectedOptionsChanged(e,t),(r=this.options)===null||r===void 0||r.forEach((n,s)=>{var o;let a=(o=this.proxy)===null||o===void 0?void 0:o.options.item(s);a&&(a.selected=n.selected)})}setDefaultSelectedOption(){var e;let t=(e=this.options)!==null&&e!==void 0?e:Array.from(this.children).filter(jt.slottedOptionFilter),r=t?.findIndex(n=>n.hasAttribute("selected")||n.selected||n.value===this.value);if(r!==-1){this.selectedIndex=r;return}this.selectedIndex=0}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach(e=>{let t=e.proxy||(e instanceof HTMLOptionElement?e.cloneNode():null);t&&this.proxy.options.add(t)}))}keydownHandler(e){super.keydownHandler(e);let t=e.key||e.key.charCodeAt(0);switch(t){case Zr:{e.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break}case _i:case yi:{e.preventDefault();break}case ei:{e.preventDefault(),this.open=!this.open;break}case Jr:{this.collapsible&&this.open&&(e.preventDefault(),this.open=!1);break}case fl:return this.collapsible&&this.open&&(e.preventDefault(),this.open=!1),!0}return!this.open&&this.indexWhenOpened!==this.selectedIndex&&(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(t===At||t===Rt)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(e,t){super.sizeChanged(e,t),this.proxy&&(this.proxy.size=t)}updateDisplayValue(){this.collapsible&&ge.notify(this,"displayValue")}};k([O({attribute:"open",mode:"boolean"})],rn.prototype,"open",void 0);k([oB],rn.prototype,"collapsible",null);k([N],rn.prototype,"control",void 0);k([O({attribute:"position"})],rn.prototype,"positionAttribute",void 0);k([N],rn.prototype,"position",void 0);k([N],rn.prototype,"maxHeight",void 0);pp=class{};k([N],pp.prototype,"ariaControls",void 0);ze(pp,Xn);ze(rn,lt,pp)});var mV,gV=w(()=>{q();bl();Bt();mV=(i,e)=>H` 882 <template 883 class="${t=>[t.collapsible&&"collapsible",t.collapsible&&t.open&&"open",t.disabled&&"disabled",t.collapsible&&t.position].filter(
883Boolean).join(" ")}" 884 aria-activedescendant="${t=>t.ariaActiveDescendant}" 885 aria-controls="${t=>t.ariaControls}" 886 aria-disabled="${t=>t.ariaDisabled}" 887 aria-expanded="${t=>t.ariaExpanded}" 888 aria-haspopup="${t=>t.collapsible?"listbox":null}" 889 aria-multiselectable="${t=>t.ariaMultiSelectable}" 890 ?open="${t=>t.open}" 891 role="combobox" 892 tabindex="${t=>t.disabled?null:"0"}" 893 @click="${(t,r)=>t.clickHandler(r.event)}" 894 @focusin="${(t,r)=>t.focusinHandler(r.event)}" 895 @focusout="${(t,r)=>t.focusoutHandler(r.event)}" 896 @keydown="${(t,r)=>t.keydownHandler(r.event)}" 897 @mousedown="${(t,r)=>t.mousedownHandler(r.event)}" 898 > 899 ${Ke(t=>t.collapsible,H` 900 <div 901 class="control" 902 part="control" 903 ?disabled="${t=>t.disabled}" 904 ${Te("control")} 905 > 906 ${vt(i,e)} 907 <slot name="button-container"> 908 <div class="selected-value" part="selected-value"> 909 <slot name="selected-value">${t=>t.displayValue}</slot> 910 </div> 911 <div aria-hidden="true" class="indicator" part="indicator"> 912 <slot name="indicator"> 913 ${e.indicator||""} 914 </slot> 915 </div> 916 </slot> 917 ${bt(i,e)} 918 </div> 919 `)} 920 <div 921 class="listbox" 922 id="${t=>t.listboxId}" 923 part="listbox"
924 role="listbox" 925 ?disabled="${t=>t.disabled}" 926 ?hidden="${t=>t.collapsible?!t.open:!1}" 927 ${Te("listbox")} 928 > 929 <slot 930 ${Re({filter:jt.slottedOptionFilter,flatten:!0,property:"slottedOptions"})} 931 ></slot> 932 </div> 933 </template> 934`});var bV=w(()=>{pV();_1();gV()});var vV,_V=w(()=>{q();vV=(i,e)=>H` 935 <template 936 class="${t=>t.shape==="circle"?"circle":"rect"}" 937 pattern="${t=>t.pattern}" 938 ?shimmer="${t=>t.shimmer}" 939 > 940 ${Ke(t=>t.shimmer===!0,H` 941 <span class="shimmer"></span> 942 `)} 943 <object type="image/svg+xml" data="${t=>t.pattern}" role="presentation"> 944 <img class="pattern" src="${t=>t.pattern}" /> 945 </object> 946 <slot></slot> 947 </template> 948`});var xl,yV=w(()=>{De();q();Oe();xl=class extends ee{constructor(){super(...arguments),this.shape="rect"}};k([O],xl.prototype,"fill",void 0);k([O],xl.prototype,"shape",void 0);k([O],xl.prototype,"pattern",void 0);k([O({mode:"boolean"})],xl.prototype,"shimmer",void 0)});var xV=w(()=>{_V();yV()});var wV,SV=w(()=>{q();ye();wV=(i,e)=>H` 949 <template 950 aria-disabled="${t=>t.disabled}" 951 class="${t=>t.sliderOrientation||et.horizontal} 952 ${t=>t.disabled?"disabled":""}" 953 > 954 <div ${Te("root")} part="root" class="root" style="${t=>t.positionStyle}"> 955 <div class="container"> 956 ${Ke(t=>!t.hideMark,H` 957 <div class="mark"></div> 958 `)} 959 <div class="label"> 960 <slot></slot> 961 </div> 962 </div> 963 </div> 964 </template> 965`});function mp(i,e,t,r){let n=oo(0,1,(i-e)/(t-e));return r===qe.rtl&&(n=1-n),n}var y3=w(()=>{ye()});var N1,En,CV=w(()=>{De();q();ye();y3();Oe();N1={min:0,max:0,direction:qe.ltr,orientation:et.horizontal,disabled:!1},En=class extends ee{constructor(){super(...arguments),this.hideMark=!1,this.sliderDirection=qe.ltr,this.getSliderConfiguration=()=>{if(!this.isSliderConfig(this.parentNode))this.sliderDirection=N1.direction||qe.ltr,this.sliderOrientation=N1.orientation||et.horizontal,this.sliderMaxPosition=N1.max,this.sliderMinPosition=N1.min;else{let e=this.parentNode,{min:t,max:r,direction:n,orientation:s,disabled:o}=e;o!==void 0&&(this.disabled=o),this.sliderDirection=n||qe.ltr,this.sliderOrientation=s||et.horizontal,this.sliderMaxPosition=r,this.sliderMinPosition=t}},this.positionAsStyle=()=>{let e=this.sliderDirection?this.sliderDirection:qe.ltr,t=mp(Number(this.position),Number(this.sliderMinPosition),Number(this.sliderMaxPosition)),r=Math.round((1-t)*100),n=Math.round(t*100);return Number.isNaN(n)&&Number.isNaN(r)&&(r=50,n=50),this.sliderOrientation===et.horizontal?e===qe.rtl?`right: ${n}%; left: ${r}%;`:`left: ${n}%; right: ${r}%;`:`top: ${n}%; bottom: ${r}%;`}}positionChanged(){this.positionStyle=this.positionAsStyle()}sliderOrientationChanged(){}
965connectedCallback(){super.connectedCallback(),this.getSliderConfiguration(),this.positionStyle=this.positionAsStyle(),this.notifier=ge.getNotifier(this.parentNode),this.notifier.subscribe(this,"orientation"),this.notifier.subscribe(this,"direction"),this.notifier.subscribe(this,"max"),this.notifier.subscribe(this,"min")}disconnectedCallback(){super.disconnectedCallback(),this.notifier.unsubscribe(this,"orientation"),this.notifier.unsubscribe(this,"direction"),this.notifier.unsubscribe(this,"max"),this.notifier.unsubscribe(this,"min")}handleChange(e,t){switch(t){case"direction":this.sliderDirection=e.direction;break;case"orientation":this.sliderOrientation=e.orientation;break;case"max":this.sliderMaxPosition=e.max;break;case"min":this.sliderMinPosition=e.min;break;default:break}this.positionStyle=this.positionAsStyle()}isSliderConfig(e){return e.max!==void 0&&e.min!==void 0}};k([N],En.prototype,"positionStyle",void 0);k([O],En.prototype,"position",void 0);k([O({attribute:"hide-mark",mode:"boolean"})],En.prototype,"hideMark",void 0);k([O({attribute:"disabled",mode:"boolean"})],En.prototype,"disabled",void 0);k([N],En.prototype,"sliderOrientation",void 0);k([N],En.prototype,"sliderMinPosition",void 0);k([N],En.prototype,"sliderMaxPosition",void 0);k([N],En.prototype,"sliderDirection",void 0)});var IV=w(()=>{SV();CV()});var MV,EV=w(()=>{q();ye();MV=(i,e)=>H` 966 <template 967 role="slider" 968 class="${t=>t.readOnly?"readonly":""} 969 ${t=>t.orientation||et.horizontal}" 970 tabindex="${t=>t.disabled?null:0}" 971 aria-valuetext="${t=>t.valueTextFormatter(t.value)}" 972 aria-valuenow="${t=>t.value}" 973 aria-valuemin="${t=>t.min}" 974 aria-valuemax="${t=>t.max}" 975 aria-disabled="${t=>t.disabled?!0:void 0}" 976 aria-readonly="${t=>t.readOnly?!0:void 0}" 977 aria-orientation="${t=>t.orientation}" 978 class="${t=>t.orientation}" 979 > 980 <div part="positioning-region" class="positioning-region"> 981 <div ${Te("track")} part="track-container" class="track"> 982 <slot name="track"></slot> 983 <div part="track-start" class="track-start" style="${t=>t.position}"> 984 <slot name="track-start"></slot> 985 </div> 986 </div> 987 <slot></slot> 988 <div 989 ${Te("thumb")} 990 part="thumb-container" 991 class="thumb-container" 992 style="${t=>t.position}" 993 > 994 <slot name="thumb">${e.thumb||""}</slot> 995 </div> 996 </div> 997 </template> 998`});var x3,z1,TV=w(()=>{en();Oe();x3=class extends ee{},z1=class extends ci(x3){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var OSe,xi,kV=w(()=>{De();q();ye();pl();y3();TV();OSe={singleValue:"single-value"},xi=class extends z1{constructor(){super(...arguments),this.direction=qe.ltr,this.isDragging=!1,this.trackWidth=0,this.trackMinWidth=0,this.trackHeight=0,this.trackLeft=0,this.trackMinHeight=0,this.valueTextFormatter=()=>null,this.min=0,this.max=10,this.step=1,this.orientation=et.horizontal,this.mode=OSe.singleValue,this.keypressHandler=e=>{if(!this.readOnly){if(e.key===_i)e.preventDefault(),this.value=`${this.min}`;else if(e.key===yi)e.preventDefault(),this.value=`${this.max}`;else if(!e.shiftKey)switch(e.key){case gr:case Rt:e.preventDefault(),this.increment();break;case mr:case At:e.preventDefault(),this.decrement();break}}},this.setupTrackConstraints=()=>{let e=this.track.getBoundingClientRect();this.trackWidth=this.track.clientWidth,this.trackMinWidth=this.track.clientLeft,this.trackHeight=e.bottom,this.trackMinHeight=e.top,this.trackLeft=this.getBoundingClientRect().left,this.trackWidth===0&&(this.trackWidth=1)},this.setupListeners=(e=!1)=>{let t=`${e?"remove":"add"}EventListener`;this[t]("keydown",this.keypressHandler),this[t]("mousedown",this.handleMouseDown),this.thumb[t]("mousedown",this.handleThumbMouseDown,{passive:!0}),this.thumb[t]("touchstart",this.handleThumbMouseDown,{passive:!0}),e&&(this.handleMouseDown(null),this.handleThumbMouseDown(null))},this.initialValue="",this.handleThumbMouseDown=e=>{if(e){if(this.readOnly||this.disabled||e.defaultPrevented)return;
998e.target.focus()}let t=`${e!==null?"add":"remove"}EventListener`;window[t]("mouseup",this.handleWindowMouseUp),window[t]("mousemove",this.handleMouseMove,{passive:!0}),window[t]("touchmove",this.handleMouseMove,{passive:!0}),window[t]("touchend",this.handleWindowMouseUp),this.isDragging=e!==null},this.handleMouseMove=e=>{if(this.readOnly||this.disabled||e.defaultPrevented)return;let t=window.TouchEvent&&e instanceof TouchEvent?e.touches[0]:e,r=this.orientation===et.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(r)}`},this.calculateNewValue=e=>{let t=mp(e,this.orientation===et.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===et.horizontal?this.trackWidth:this.trackHeight,this.direction),r=(this.max-this.min)*t+this.min;return this.convertToConstrainedValue(r)},this.handleWindowMouseUp=e=>{this.stopDragging()},this.stopDragging=()=>{this.isDragging=!1,this.handleMouseDown(null),this.handleThumbMouseDown(null)},this.handleMouseDown=e=>{let t=`${e!==null?"add":"remove"}EventListener`;if((e===null||!this.disabled&&!this.readOnly)&&(window[t]("mouseup",this.handleWindowMouseUp),window.document[t]("mouseleave",this.handleWindowMouseUp),window[t]("mousemove",this.handleMouseMove),e)){e.preventDefault(),this.setupTrackConstraints(),e.target.focus();let r=this.orientation===et.horizontal?e.pageX-document.documentElement.scrollLeft-this.trackLeft:e.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(r)}`}},this.convertToConstrainedValue=e=>{isNaN(e)&&(e=this.min);let t=e-this.min,r=Math.round(t/this.step),n=t-r*(this.stepMultiplier*this.step)/this.stepMultiplier;return t=n>=Number(this.step)/2?t-n+Number(this.step):t-n,t+this.min}}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}get valueAsNumber(){return parseFloat(super.value)}set valueAsNumber(e){this.value=e.toString()}valueChanged(e,t){super.valueChanged(e,t),this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction),this.$emit("change")}minChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.min=`${this.min}`),this.validate()}maxChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.max=`${this.max}`),this.validate()}stepChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.step=`${this.step}`),this.updateStepMultiplier(),this.validate()}orientationChanged(){this.$fastController.isConnected&&this.setThumbPositionForOrientation(this.direction)}connectedCallback(){super.connectedCallback(),this.proxy.setAttribute("type","range"),this.direction=$r(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction)}disconnectedCallback(){this.setupListeners(!0)}increment(){let e=this.direction!==qe.rtl&&this.orientation!==et.vertical?Number(this.value)+Number(this.step):Number(this.value)-Number(this.step),t=this.convertToConstrainedValue(e),r=t<Number(this.max)?`${t}`:`${this.max}`;this.value=r}decrement(){let e=this.direction!==qe.rtl&&this.orientation!==et.vertical?Number(this.value)-Number(this.step):Number(this.value)+Number(this.step),t=this.convertToConstrainedValue(e),r=t>Number(this.min)?`${t}`:`${this.min}`;this.value=r}setThumbPositionForOrientation(e){let r=(1-mp(Number(this.value),Number(this.min),Number(this.max),e))*100;this.orientation===et.horizontal?this.position=this.isDragging?`right: ${r}%; transition: none;`:`right: ${r}%; transition: all 0.2s ease;`:this.position=this.isDragging?`bottom: ${r}%; transition: none;`:`bottom: ${r}%; transition: all 0.2s ease;`}updateStepMultiplier(){let e=this.step+"",t=this.step%1?e.length-e.indexOf(".")-1:0;this.stepMultiplier=Math.pow(10,t)}get midpoint(){return`${this.convertToConstrainedValue((this.max+this.min)/2)}`}setupDefaultValue(){if(typeof this.value=="string")if(this.value.length===0)this.initialValue=this.midpoint;else{let e=parseFloat(this.value);!Number.isNaN(e)&&(e<this.min||e>this.max)&&(this.value=this.midpoint)}}};k([O({attribute:"readonly",mode:"boolean"})],xi.prototype,"readOnly",void 0);k([N],xi.prototype,"direction",void 0);k([N],xi.prototype,"isDragging",void 0);k([N],xi.prototype,"position",void 0);k([N],xi.prototype,"trackWidth",void 0);k([N],xi.prototype,"trackMinWidth",void 0);k([N],xi.prototype,"trackHeight",void 0);k([N],xi.prototype,"trackLeft",void 0);k([N],xi.prototype,"trackMinHeight",void 0);k([N],xi.prototype,"valueTextFormatter",void 0);k([O({converter:pe})],xi.prototype,"min",void 0);k([O({converter:pe})],xi.prototype,"max",void 0);k([O({converter:pe})],xi.prototype,"step",void 0);k([O],xi.prototype,"orientation",void 0);k([O],xi.prototype,"mode",void 0)});var AV=w(()=>{EV();kV()});var RV,DV=w(()=>{q();RV=(i,e)=>H` 999 <template 1000 role="switch" 1001 aria-checked="${t=>t.checked}" 1002 aria-disabled="${t=>t.disabled}" 1003 aria-readonly="${t=>t.readOnly}" 1004 tabindex="${t=>t.disabled?null:0}" 1005 @keypress="${(t,r)=>t.keypressHandler(r.event)}" 1006 @click="${(t,r)=>t.clickHandler(r.event)}" 1007 class="${t=>t.checked?"checked":""}" 1008 > 1009 <label 1010 part="label" 1011 class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}" 1012 > 1013 <slot ${Re("defaultSlottedNodes")}></slot> 1014 </label> 1015 <div part="switch" class="switch"> 1016 <slot name="switch">${e.switch||""}</slot> 1017 </div>
1018 <span class="status-message" part="status-message"> 1019 <span class="checked-message" part="checked-message"> 1020 <slot name="checked-message"></slot> 1021 </span> 1022 <span class="unchecked-message" part="unchecked-message"> 1023 <slot name="unchecked-message"></slot> 1024 </span> 1025 </span> 1026 </template> 1027`});var w3,B1,OV=w(()=>{en();Oe();w3=class extends ee{},B1=class extends _d(w3){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var Bu,LV=w(()=>{De();q();ye();OV();Bu=class extends B1{constructor(){super(),this.initialValue="on",this.keypressHandler=e=>{if(!this.readOnly)switch(e.key){case ei:case Zr:this.checked=!this.checked;break}},this.clickHandler=e=>{!this.disabled&&!this.readOnly&&(this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly),this.readOnly?this.classList.add("readonly"):this.classList.remove("readonly")}checkedChanged(e,t){super.checkedChanged(e,t),this.checked?this.classList.add("checked"):this.classList.remove("checked")}};k([O({attribute:"readonly",mode:"boolean"})],Bu.prototype,"readOnly",void 0);k([N],Bu.prototype,"defaultSlottedNodes",void 0)});var $V=w(()=>{DV();LV()});var FV,PV=w(()=>{q();FV=(i,e)=>H` 1028 <template slot="tabpanel" role="tabpanel"> 1029 <slot></slot> 1030 </template> 1031`});var q1,NV=w(()=>{Oe();q1=class extends ee{}});var zV=w(()=>{PV();NV()});var BV,qV=w(()=>{q();BV=(i,e)=>H` 1032 <template slot="tab" role="tab" aria-disabled="${t=>t.disabled}"> 1033 <slot></slot> 1034 </template> 1035`});var gp,HV=w(()=>{De();q();Oe();gp=class extends ee{};k([O({mode:"boolean"})],gp.prototype,"disabled",void 0)});var jV=w(()=>{qV();HV()});var VV,UV=w(()=>{q();Bt();VV=(i,e)=>H` 1036 <template class="${t=>t.orientation}"> 1037 ${vt(i,e)} 1038 <div class="tablist" part="tablist" role="tablist"> 1039 <slot class="tab" name="tab" part="tab" ${Re("tabs")}></slot> 1040 1041 ${Ke(t=>t.showActiveIndicator,H` 1042 <div 1043 ${Te("activeIndicatorRef")} 1044 class="activeIndicator" 1045 part="activeIndicator" 1046 ></div> 1047 `)} 1048 </div> 1049 ${bt(i,e)} 1050 <div class="tabpanel" part="tabpanel"> 1051 <slot name="tabpanel" ${Re("tabpanels")}></slot> 1052 </div> 1053 </template> 1054`});var WV,Qn,GV=w(()=>{De();q();ye();Bt();ji();Oe();WV={vertical:"vertical",horizontal:"horizontal"},Qn=class extends ee{constructor(){super(...arguments),this.orientation=WV.horizontal,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=e=>e.getAttribute("aria-disabled")==="true",this.isHiddenElement=e=>e.hasAttribute("hidden"),this.isFocusableElement=e=>!this.isDisabledElement(e)&&!this.isHiddenElement(e),this.setTabs=()=>{let e="gridColumn",t="gridRow",r=this.isHorizontal()?e:t;this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEac
1054h((n,s)=>{if(n.slot==="tab"){let o=this.activeTabIndex===s&&this.isFocusableElement(n);this.activeindicator&&this.isFocusableElement(n)&&(this.showActiveIndicator=!0);let a=this.tabIds[s],l=this.tabpanelIds[s];n.setAttribute("id",a),n.setAttribute("aria-selected",o?"true":"false"),n.setAttribute("aria-controls",l),n.addEventListener("click",this.handleTabClick),n.addEventListener("keydown",this.handleTabKeyDown),n.setAttribute("tabindex",o?"0":"-1"),o&&(this.activetab=n,this.activeid=a)}n.style[e]="",n.style[t]="",n.style[r]=`${s+1}`,this.isHorizontal()?n.classList.remove("vertical"):n.classList.add("vertical")})},this.setTabPanels=()=>{this.tabpanels.forEach((e,t)=>{let r=this.tabIds[t],n=this.tabpanelIds[t];e.setAttribute("id",n),e.setAttribute("aria-labelledby",r),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")})},this.handleTabClick=e=>{let t=e.currentTarget;t.nodeType===1&&this.isFocusableElement(t)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{if(this.isHorizontal())switch(e.key){case mr:e.preventDefault(),this.adjustBackward(e);break;case gr:e.preventDefault(),this.adjustForward(e);break}else switch(e.key){case Rt:e.preventDefault(),this.adjustBackward(e);break;case At:e.preventDefault(),this.adjustForward(e);break}switch(e.key){case _i:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case yi:e.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1);break}},this.adjustForward=e=>{let t=this.tabs,r=0;for(r=this.activetab?t.indexOf(this.activetab)+1:1,r===t.length&&(r=0);r<t.length&&t.length>1;)if(this.isFocusableElement(t[r])){this.moveToTabByIndex(t,r);break}else{if(this.activetab&&r===t.indexOf(this.activetab))break;r+1>=t.length?r=0:r+=1}},this.adjustBackward=e=>{let t=this.tabs,r=0;for(r=this.activetab?t.indexOf(this.activetab)-1:0,r=r<0?t.length-1:r;r>=0&&t.length>1;)if(this.isFocusableElement(t[r])){this.moveToTabByIndex(t,r);break}else r-1<0?r=t.length-1:r-=1},this.moveToTabByIndex=(e,t)=>{let r=e[t];this.activetab=r,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,r.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex(r=>
1054r.id===e),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return this.activeid!==void 0?this.tabIds.indexOf(this.activeid)===-1?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map(e=>{var t;return(t=e.getAttribute("id"))!==null&&t!==void 0?t:`tab-${Cn()}`})}getTabPanelIds(){return this.tabpanels.map(e=>{var t;return(t=e.getAttribute("id"))!==null&&t!==void 0?t:`panel-${Cn()}`})}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===WV.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;let e=this.isHorizontal()?"gridColumn":"gridRow",t=this.isHorizontal()?"translateX":"translateY",r=this.isHorizontal()?"offsetLeft":"offsetTop",n=this.activeIndicatorRef[r];this.activeIndicatorRef.style[e]=`${this.activeTabIndex+1}`;let s=this.activeIndicatorRef[r];this.activeIndicatorRef.style[e]=`${this.prevActiveTabIndex+1}`;let o=s-n;this.activeIndicatorRef.style.transform=`${t}(${o}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",()=>{this.ticking=!1,this.activeIndicatorRef.style[e]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${t}(0px)`,this.activeIndicatorRef.classList.remove("activeIndicatorTransition")})}adjust(e){let t=this.tabs.filter(o=>this.isFocusableElement(o)),r=t.indexOf(this.activetab),n=oo(0,t.length-1,r+e),s=this.tabs.indexOf(t[n]);s>-1&&this.moveToTabByIndex(this.tabs,s)}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}};k([O],Qn.prototype,"orientation",void 0);k([O],Qn.prototype,"activeid",void 0);k([N],Qn.prototype,"tabs",void 0);k([N],Qn.prototype,"tabpanels",void 0);k([O({mode:"boolean"})],Qn.prototype,"activeindicator",void 0);k([N],Qn.prototype,"activeIndicatorRef",void 0);k([N],Qn.prototype,"showActiveIndicator",void 0);ze(Qn,lt)});var KV=w(()=>{UV();GV()});var S3,H1,YV=w(()=>{en();Oe();S3=class extends ee{},H1=class extends ci(S3){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}});var j1,XV=w(()=>{j1={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"}});var Oi,C3=w(()=>{De();q();R1();ji();YV();XV();Oi=class extends H1{constructor(){super(...arguments),this.resize=j1.none,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}select(){this.control.select(),this.$emit("select")}handleChange(){this.$emit("change")}validate(){super.validate(this.control)}};k([O({mode:"boolean"})],Oi.prototype,"readOnly",void 0);k([O],Oi.prototype,"resize",void 0);k([O({mode:"boolean"})],Oi.prototype,"autofocus",void 0);k([O({attribute:"form"})],Oi.prototype,"formId",void 0);k([O],Oi.prototype,"list",void 0);k([O({converter:pe})],Oi.prototype,"maxlength",void 0);k([O({converter:pe})],Oi.prototype,"minlength",void 0);k([O],Oi.prototype,"name",void 0);k([O],Oi.prototype,"placeholder",void 0);k([O({converter:pe,mode:"fromView"})],Oi.prototype,"cols",void 0);k([O({converter:pe,mode:"fromView"})],Oi.prototype,"rows",void 0);k([O({mode:"boolean"})],Oi.prototype,"spellcheck",void 0);k([N],Oi.prototype,"defaultSlottedNodes",void 0);ze(Oi,co)});var JV,ZV=w(()=>{q();C3();JV=(i,e)=>H` 1055 <template 1056 class=" 1057 ${t=>t.readOnly?"readonly":""} 1058 ${t=>t.resize!==j1.none?`resize-${t.resize}`:""}" 1059 > 1060 <label 1061 part="label" 1062 for="control" 1063 class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}" 1064 > 1065 <slot ${Re("defaultSlottedNodes")}></slot> 1066 </label> 1067 <textarea 1068 part="control" 1069 class="control" 1070 id="control" 1071 ?autofocus="${t=>t.autofocus}" 1072 cols="${t=>t.cols}" 1073 ?disabled="${t=>t.disabled}" 1074 form="${t=>t.form}" 1075 list="${t=>t.list}" 1076 maxlength="${t=>t.maxlength}" 1077 minlength="${t=>t.minlength}" 1078 name="${t=>t.name}" 1079 placeholder="${t=>t.placeholder}" 1080 ?readonly="${t=>t.readOnly}" 1081 ?required="${t=>t.required}" 1082 rows="${t=>t.rows}" 1083 ?spellcheck="${t=>t.spellcheck}" 1084 :value="${t=>t.value}" 1085 aria-atomic="${t=>t.ariaAtomic}" 1086 aria-busy="${t=>t.ariaBusy}" 1087 aria-controls="${t=>
1087t.ariaControls}" 1088 aria-current="${t=>t.ariaCurrent}" 1089 aria-describedby="${t=>t.ariaDescribedby}" 1090 aria-details="${t=>t.ariaDetails}" 1091 aria-disabled="${t=>t.ariaDisabled}" 1092 aria-errormessage="${t=>t.ariaErrormessage}" 1093 aria-flowto="${t=>t.ariaFlowto}" 1094 aria-haspopup="${t=>t.ariaHaspopup}" 1095 aria-hidden="${t=>t.ariaHidden}" 1096 aria-invalid="${t=>t.ariaInvalid}" 1097 aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" 1098 aria-label="${t=>t.ariaLabel}" 1099 aria-labelledby="${t=>t.ariaLabelledby}" 1100 aria-live="${t=>t.ariaLive}" 1101 aria-owns="${t=>t.ariaOwns}" 1102 aria-relevant="${t=>t.ariaRelevant}" 1103 aria-roledescription="${t=>t.ariaRoledescription}" 1104 @input="${(t,r)=>t.handleTextInput()}" 1105 @change="${t=>t.handleChange()}" 1106 ${Te("control")} 1107 ></textarea> 1108 </template> 1109`});var QV=w(()=>{ZV();C3()});var eU,tU=w(()=>{q();Bt();L1();eU=(i,e)=>H` 1110 <template 1111 class=" 1112 ${t=>t.readOnly?"readonly":""} 1113 " 1114 > 1115 <label 1116 part="label" 1117 for="control" 1118 class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}" 1119 > 1120 <slot 1121 ${Re({property:"defaultSlottedNodes",filter:Id})} 1122 ></slot> 1123 </label> 1124 <div class="root" part="root"> 1125 ${vt(i,e)} 1126 <input 1127 class="control" 1128 part="control" 1129 id="control" 1130 @input="${t=>t.handleTextInput()}" 1131 @change="${t=>t.handleChange()}" 1132 ?autofocus="${t=>t.autofocus}" 1133 ?disabled="${t=>t.disabled}" 1134 list="${t=>t.list}" 1135 maxlength="${t=>t.maxlength}" 1136 minlength="${t=>t.minlength}" 1137 pattern="${t=>t.pattern}" 1138 placeholder="${t=>t.placeholder}" 1139 ?readonly="${t=>t.readOnly}" 1140 ?required="${t=>t.required}" 1141 size="${t=>t.size}" 1142 ?spellcheck="${t=>t.spellcheck}" 1143 :value="${t=>t.value}" 1144 type="${t=>t.type}" 1145 aria-atomic="${t=>t.ariaAtomic}" 1146 aria-busy="${t=>t.ariaBusy}" 1147 aria-controls="${t=>t.ariaControls}" 1148 aria-current="${t=>t.ariaCurrent}" 1149 aria-describedby="${t=>t.ariaDescribedby}" 1150 aria-details="${t=>t.ariaDetails}" 1151 aria-disabled="${t=>t.ariaDisabled}" 1152 aria-errormessage="${t=>t.ariaErrormessage}" 1153 aria-flowto="${t=>t.ariaFlowto}" 1154 aria-haspopup="${t=>t.ariaHaspopup}" 1155 aria-hidden="${t=>t.ariaHidden}" 1156 aria-invalid="${t=>t.ariaInvalid}" 1157 aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" 1158 aria-label="${t=>t.ariaLabel}" 1159 aria-labelledby="${t=>t.ariaLabelledby}" 1160 aria-live="${t=>t.ariaLive}" 1161 aria-owns="${t=>t.ariaOwns}" 1162 aria-relevant="${t=>t.ariaRelevant}" 1163 aria-roledescription="${t=>t.ariaRoledescription}" 1164 ${Te("control")} 1165 /> 1166 ${bt(i,e)} 1167 </div> 1168 </template> 1169`});var iU=w(()=>{tU();R1()});var rU,nU=w(()=>{q();Bt();rU=(i,e)=>H` 1170 <template 1171 aria-label="${t=>t.ariaLabel}" 1172 aria-labelledby="${t=>t.ariaLabelledby}" 1173 aria-orientation="${t=>t.orientation}" 1174 orientation="${t=>t.orientation}" 1175 role="toolbar" 1176 @mousedown="${(t,r)=>t.mouseDownHandler(r.event)}" 1177 @focusin="${(t,r)=>
1177t.focusinHandler(r.event)}" 1178 @keydown="${(t,r)=>t.keydownHandler(r.event)}" 1179 ${hl({property:"childItems",attributeFilter:["disabled","hidden"],filter:pr(),subtree:!0})} 1180 > 1181 <slot name="label"></slot> 1182 <div class="positioning-region" part="positioning-region"> 1183 ${vt(i,e)} 1184 <slot 1185 ${Re({filter:pr(),property:"slottedItems"})} 1186 ></slot> 1187 ${bt(i,e)} 1188 </div> 1189 </template> 1190`});function sU(i){let e=i.getRootNode();return e instanceof ShadowRoot?e.activeElement:document.activeElement}var oU=w(()=>{});var aU,Ts,Md,lU=w(()=>{De();q();ye();I1();Oe();ip();Bt();ji();pl();oU();aU=Object.freeze({[Qr.ArrowUp]:{[et.vertical]:-1},[Qr.ArrowDown]:{[et.vertical]:1},[Qr.ArrowLeft]:{[et.horizontal]:{[qe.ltr]:-1,[qe.rtl]:1}},[Qr.ArrowRight]:{[et.horizontal]:{[qe.ltr]:1,[qe.rtl]:-1}}}),Ts=class extends ee{constructor(){super(...arguments),this._activeIndex=0,this.direction=qe.ltr,this.orientation=et.horizontal}get activeIndex(){return ge.track(this,"activeIndex"),this._activeIndex}set activeIndex(e){this.$fastController.isConnected&&(this._activeIndex=oo(0,this.focusableElements.length-1,e),ge.notify(this,"activeIndex"))}slottedItemsChanged(){this.$fastController.isConnected&&this.reduceFocusableElements()}mouseDownHandler(e){var t;let r=(t=this.focusableElements)===null||t===void 0?void 0:t.findIndex(n=>n.contains(e.target));return r>-1&&this.activeIndex!==r&&this.setFocusedElement(r),!0}childItemsChanged(e,t){this.$fastController.isConnected&&this.reduceFocusableElements()}connectedCallback(){super.connectedCallback(),this.direction=$r(this)}focusinHandler(e){let t=e.relatedTarget;!t||this.contains(t)||this.setFocusedElement()}getDirectionalIncrementer(e){var t,r,n,s,o;return(o=(n=(r=(t=aU[e])===null||t===void 0?void 0:t[this.orientation])===null||r===void 0?void 0:r[this.direction])!==null&&n!==void 0?n:(s=aU[e])===null||s===void 0?void 0:s[this.orientation])!==null&&o!==void 0?o:0}keydownHandler(e){let t=e.key;if(!(t in Qr)||e.defaultPrevented||e.shiftKey)return!0;let r=this.getDirectionalIncrementer(t);if(!r)return!e.target.closest("[role=radiogroup]");let n=this.activeIndex+r;return this.focusableElements[n]&&e.preventDefault(),this.setFocusedElement(n),!0}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){var e;let t=(e=this.focusableElements)===null||e===void 0?void 0:e[this.activeIndex];this.focusableElements=this.allSlottedItems.reduce(Ts.reduceFocusableItems,[]);let r=this.focusableElements.indexOf(t);this.activeIndex=Math.max(0,r),this.setFocusableElements()}setFocusedElement(e=this.activeIndex){this.activeIndex=e,this.setFocusableElements(),this.focusableElements[this.activeIndex]&&this.contains(sU(this))&&this.focusableElements[this.activeIndex].focus()}static reduceFocusableItems(e,t){var r,n,s,o;let a=t.getAttribute("role")==="radio",l=(n=(r=t.$fastController)===null||r===void 0?void 0:r.definition.shadowOptions)===null||n===void 0?void 0:n.delegatesFocus,u=Array.from((o=(s=t.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll("*"))!==null&&o!==void 0?o:[]).some(c=>Sd(c));return!t.hasAttribute("disabled")&&!t.hasAttribute("hidden")&&(Sd(t)||a||l||u)?(e.push(t),e):t.childElementCount?e.concat(Array.from(t.children).reduce(Ts.reduceFocusableItems,[])):e}setFocusableElements(){this.$fastController.isConnected&&this.focusableElements.length>0&&this.focusableElements.forEach((e,t)=>{e.tabIndex=this.activeIndex===t?0:-1})}};k([N],Ts.prototype,"direction",void 0);k([O],Ts.prototype,"orientation",void 0);k([N],Ts.prototype,"slottedItems",void 0);k([N],Ts.prototype,"slottedLabel",void 0);k([N],Ts.prototype,"childItems",void 0);Md=class{};k([O({attribute:"aria-labelledby"})],Md.prototype,"ariaLabelledby",void 0);k([O({attribute:"aria-label"})],Md.prototype,"ariaLabel",void 0);ze(Md,rt);ze(Ts,lt,Md)});var uU=w(()=>{nU();lU()});var cU,dU=w(()=>{q();rp();cU=(i,e)=>H` 1191 ${Ke(t=>t.tooltipVisible,H` 1192 <${i.tagFor(Ue)} 1193 fixed-placement="true" 1194 auto-update-mode="${t=>t.autoUpdateMode}" 1195 vertical-positioning-mode="${t=>t.verticalPositioningMode}" 1196 vertical-default-position="${t=>t.verticalDefaultPosition}" 1197 vertical-inset="${t=>t.verticalInset}" 1198 vertical-scaling="${t=>t.verticalScaling}" 1199 horizontal-positioning-mode="${t=>t.horizontalPositioningMode}" 1200 horizontal-default-position="${t=>t.horizontalDefaultPosition}" 1201 horizontal-scaling="${t=>t.horizontalScaling}" 1202 horizontal-inset="${t=>t.horizontalInset}" 1203 vertical-viewport-lock="${t=>t.horizontalViewportLock}" 1204 horizontal-viewport-lock="${t=>t.verticalViewportLock}" 1205 dir="${t=>t.currentDirection}" 1206 ${Te("region")} 1207 > 1208 <div class="tooltip" part="tooltip" role="tooltip"> 1209 <slot></slot> 1210 </div> 1211 </${i.tagFor(Ue)}> 1212 `)} 1213 `});var Nr,hU=w(()=>{Nr={top:"top",right:"right",bottom:"bottom",left:"left",start:"start",end:"end",topLeft:"top-left",topRight:"top-right",bottomLeft:"bottom-left",bottomRight:"bottom-right",topStart:"top-start",topEnd:"top-end",bottomStart:"bottom-start",bottom
1213End:"bottom-end"}});var Kt,fU=w(()=>{De();q();ye();pl();Oe();hU();Kt=class extends ee{constructor(){super(...arguments),this.anchor="",this.delay=300,this.autoUpdateMode="anchor",this.anchorElement=null,this.viewportElement=null,this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.horizontalInset="false",this.verticalInset="false",this.horizontalScaling="content",this.verticalScaling="content",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition=void 0,this.tooltipVisible=!1,this.currentDirection=qe.ltr,this.showDelayTimer=null,this.hideDelayTimer=null,this.isAnchorHoveredFocused=!1,this.isRegionHovered=!1,this.handlePositionChange=e=>{this.classList.toggle("top",this.region.verticalPosition==="start"),this.classList.toggle("bottom",this.region.verticalPosition==="end"),this.classList.toggle("inset-top",this.region.verticalPosition==="insetStart"),this.classList.toggle("inset-bottom",this.region.verticalPosition==="insetEnd"),this.classList.toggle("center-vertical",this.region.verticalPosition==="center"),this.classList.toggle("left",this.region.horizontalPosition==="start"),this.classList.toggle("right",this.region.horizontalPosition==="end"),this.classList.toggle("inset-left",this.region.horizontalPosition==="insetStart"),this.classList.toggle("inset-right",this.region.horizontalPosition==="insetEnd"),this.classList.toggle("center-horizontal",this.region.horizontalPosition==="center")},this.handleRegionMouseOver=e=>{this.isRegionHovered=!0},this.handleRegionMouseOut=e=>{this.isRegionHovered=!1,this.startHideDelayTimer()},this.handleAnchorMouseOver=e=>{if(this.tooltipVisible){this.isAnchorHoveredFocused=!0;return}this.startShowDelayTimer()},this.handleAnchorMouseOut=e=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.handleAnchorFocusIn=e=>{this.startShowDelayTimer()},this.handleAnchorFocusOut=e=>{this.isAnchorHoveredFocused=!1,this.clearShowDelayTimer(),this.startHideDelayTimer()},this.startHideDelayTimer=()=>{this.clearHideDelayTimer(),this.tooltipVisible&&(this.hideDelayTimer=window.setTimeout(()=>{this.updateTooltipVisibility()},60))},this.clearHideDelayTimer=()=>{this.hideDelayTimer!==null&&(clearTimeout(this.hideDelayTimer),this.hideDelayTimer=null)},this.startShowDelayTimer=()=>{if(!this.isAnchorHoveredFocused){if(this.delay>1){this.showDelayTimer===null&&(this.showDelayTimer=window.setTimeout(()=>{this.startHover()},this.delay));return}this.startHover()}},this.startHover=()=>{this.isAnchorHoveredFocused=!0,this.updateTooltipVisibility()},this.clearShowDelayTimer=()=>{this.showDelayTimer!==null&&(clearTimeout(this.showDelayTimer),this.showDelayTimer=null)},this.getAnchor=()=>{let e=this.getRootNode();return e instanceof ShadowRoot?e.getElementById(this.anchor):document.getElementById(this.anchor)},this.handleDocumentKeydown=e=>{if(!e.defaultPrevented&&this.tooltipVisible)switch(e.key){case Jr:this.isAnchorHoveredFocused=!1,this.updateTooltipVisibility(),this.$emit("dismiss");break}},this.updateTooltipVisibility=()=>
1213{if(this.visible===!1)this.hideTooltip();else if(this.visible===!0){this.showTooltip();return}else{if(this.isAnchorHoveredFocused||this.isRegionHovered){this.showTooltip();return}this.hideTooltip()}},this.showTooltip=()=>{this.tooltipVisible||(this.currentDirection=$r(this),this.tooltipVisible=!0,document.addEventListener("keydown",this.handleDocumentKeydown),ue.queueUpdate(this.setRegionProps))},this.hideTooltip=()=>{this.tooltipVisible&&(this.clearHideDelayTimer(),this.region!==null&&this.region!==void 0&&(this.region.removeEventListener("positionchange",this.handlePositionChange),this.region.viewportElement=null,this.region.anchorElement=null,this.region.removeEventListener("mouseover",this.handleRegionMouseOver),this.region.removeEventListener("mouseout",this.handleRegionMouseOut)),document.removeEventListener("keydown",this.handleDocumentKeydown),this.tooltipVisible=!1)},this.setRegionProps=()=>{this.tooltipVisible&&(this.region.viewportElement=this.viewportElement,this.region.anchorElement=this.anchorElement,this.region.addEventListener("positionchange",this.handlePositionChange),this.region.addEventListener("mouseover",this.handleRegionMouseOver,{passive:!0}),this.region.addEventListener("mouseout",this.handleRegionMouseOut,{passive:!0}))}}visibleChanged(){this.$fastController.isConnected&&(this.updateTooltipVisibility(),this.updateLayout())}anchorChanged(){this.$fastController.isConnected&&(this.anchorElement=this.getAnchor())}positionChanged(){this.$fastController.isConnected&&this.updateLayout()}anchorElementChanged(e){if(this.$fastController.isConnected){if(e!=null&&(e.removeEventListener("mouseover",this.handleAnchorMouseOver),e.removeEventListener("mouseout",this.handleAnchorMouseOut),e.removeEventListener("focusin",this.handleAnchorFocusIn),e.removeEventListener("focusout",this.handleAnchorFocusOut)),this.anchorElement!==null&&this.anchorElement!==void 0){this.anchorElement.addEventListener("mouseover",this.handleAnchorMouseOver,{passive:!0}),this.anchorElement.addEventListener("mouseout",this.handleAnchorMouseOut,{passive:!0}),this.anchorElement.addEventListener("focusin",this.handleAnchorFocusIn,{passive:!0}),this.anchorElement.addEventListener("focusout",this.handleAnchorFocusOut,{passive:!0});let t=this.anchorElement.id;this.anchorElement.parentElement!==null&&this.anchorElement.parentElement.querySelectorAll(":hover").forEach(r=>{r.id===t&&this.startShowDelayTimer()})}this.region!==null&&this.region!==void 0&&this.tooltipVisible&&(this.region.anchorElement=this.anchorElement),this.updateLayout()}}viewportElementChanged(){this.region!==null&&this.region!==void 0&&(this.region.viewportElement=this.viewportElement),this.updateLayout()}connectedCallback(){super.connectedCallback(),this.anchorElement=this.getAnchor(),this.updateTooltipVisibility()}disconnectedCallback(){this.hideTooltip(),this.clearShowDelayTimer(),this.clearHideDelayTimer(),super.disconnectedCallback()}updateLayout(){switch(this.verticalPositioningMode="locktodefault",this.horizontalPositioningMode="locktodefault",this.position){case Nr.top:case Nr.bottom:this.verticalDefaultPosition=this.position,this.horizontalDefaultPosition="center";break;case Nr.right:case Nr.left:case Nr.start:case Nr.end:this.verticalDefaultPosition="center",this.horizontalDefaultPosition=this.position;break;case Nr.topLeft:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="left";break;case Nr.topRight:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="right";break;case Nr.bottomLeft:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="left";break;case Nr.bottomRight:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="right";break;case Nr.topStart:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="start";break;case Nr.topEnd:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="end";break;case Nr.bottomStart:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="start";break;case Nr.bottomEnd:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="end";break;default:this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition="center";break}}};k([O({mode:"boolean"})],Kt.prototype,"visible",void 0);k([O],Kt.prototype,"anchor",void 0);k([O],Kt.prototype,"delay",void 0);k([O],Kt.prototype,"position",void 0);k([O({attribute:"auto-update-mode"})],Kt.prototype,"autoUpdateMode",void 0);k([O({attribute:"horizontal-viewport-lock"})],Kt.prototype,"horizontalViewportLock",void 0);k([O({attribute:"vertical-viewport-lock"})],Kt.prototype,"verticalViewportLock",void 0);k([N],Kt.prototype,"anchorElement",void 0);k([N],Kt.prototype,"viewportElement",void 0);k([N],Kt.prototype,"verticalPositioningMode",void 0);k([N],Kt.prototype,"horizontalPositioningMode",void 0);k([N],Kt.prototype,"horizontalInset",void 0);k([N],Kt.prototype,"verticalInset",void 0);k([N],Kt.prototype,"horizontalScaling",void 0);k([N],Kt.prototype,"verticalScaling",void 0);k([N],Kt.prototype,"verticalDefaultPosition",void 0);k([N],Kt.prototype,"horizontalDefaultPosition",void 0);k([N],Kt.prototype,"tooltipVisible",void 0);k([N],Kt.prototype,"currentDirection",void 0)});var pU=w(()=>{dU();fU()});var mU,gU=w(()=>{q();Bt();mU=(i,e)=>H` 1214 <template 1215 role="treeitem" 1216 slot="${t=>t.isNestedItem()?"item":void 0}" 1217 tabindex="-1" 1218 class="${t=>t.expanded?"expanded":""} ${t=>
1218t.selected?"selected":""} ${t=>t.nested?"nested":""} 1219 ${t=>t.disabled?"disabled":""}" 1220 aria-expanded="${t=>t.childItems&&t.childItemLength()>0?t.expanded:void 0}" 1221 aria-selected="${t=>t.selected}" 1222 aria-disabled="${t=>t.disabled}" 1223 @focusin="${(t,r)=>t.handleFocus(r.event)}" 1224 @focusout="${(t,r)=>t.handleBlur(r.event)}" 1225 ${hl({property:"childItems",filter:pr()})} 1226 > 1227 <div class="positioning-region" part="positioning-region"> 1228 <div class="content-region" part="content-region"> 1229 ${Ke(t=>t.childItems&&t.childItemLength()>0,H` 1230 <div 1231 aria-hidden="true" 1232 class="expand-collapse-button" 1233 part="expand-collapse-button" 1234 @click="${(t,r)=>t.handleExpandCollapseButtonClick(r.event)}" 1235 ${Te("expandCollapseButton")} 1236 > 1237 <slot name="expand-collapse-glyph"> 1238 ${e.expandCollapseGlyph||""} 1239 </slot> 1240 </div> 1241 `)} 1242 ${vt(i,e)} 1243 <slot></slot> 1244 ${bt(i,e)} 1245 </div> 1246 </div> 1247 ${Ke(t=>t.childItems&&t.childItemLength()>0&&(t.expanded||t.renderCollapsedChildren),H` 1248 <div role="group" class="items" part="items"> 1249 <slot name="item" ${Re("items")}></slot> 1250 </div> 1251 `)} 1252 </template> 1253`});function na(i){return so(i)&&i.getAttribute("role")==="treeitem"}var $t,I3=w(()=>{De();q();ye();Bt();ji();Oe();$t=class extends ee{constructor(){super(...arguments),this.expanded=!1,this.focusable=!1,this.isNestedItem=()=>na(this.parentElement),this.handleExpandCollapseButtonClick=e=>{!this.disabled&&!e.defaultPrevented&&(this.expanded=!this.expanded)},this.handleFocus=e=>{this.setAttribute("tabindex","0")},this.handleBlur=e=>{this.setAttribute("tabindex","-1")}}expandedChanged(){this.$fastController.isConnected&&this.$emit("expanded-change",this)}selectedChanged(){this.$fastController.isConnected&&this.$emit("selected-change",this)}itemsChanged(e,t){this.$fastController.isConnected&&this.items.forEach(r=>{na(r)&&(r.nested=!0)})}static focusItem(e){e.focusable=!0,e.focus()}childItemLength(){let e=this.childItems.filter(t=>na(t));return e?e.length:0}};k([O({mode:"boolean"})],$t.prototype,"expanded",void 0);k([O({mode:"boolean"})],$t.prototype,"selected",void 0);k([O({mode:"boolean"})],$t.prototype,"disabled",void 0);k([N],$t.prototype,"focusable",void 0);k([N],$t.prototype,"childItems",void 0);k([N],$t.prototype,"items",void 0);k([N],$t.prototype,"nested",void 0);k([N],$t.prototype,"renderCollapsedChildren",void 0);ze($t,lt)});var bU=w(()=>{gU();I3()});var vU,_U=w(()=>{q();vU=(i,e)=>H` 1254 <template 1255 role="tree" 1256 ${Te("treeView")} 1257 @keydown="${(t,r)=>t.handleKeyDown(r.event)}" 1258 @focusin="${(t,r)=>t.handleFocus(r.event)}" 1259 @focusout="${(t,r)=>t.handleBlur(r.event)}" 1260 @click="${(t,r)=>t.handleClick(r.event)}" 1261 @selected-change="${(t,r)=>t.handleSelectedChange(r.event)}" 1262 > 1263 <slot ${Re("slottedTreeItems")}></slot> 1264 </template> 1265`});var qu,yU=w(()=>{De();q();ye();I3();Oe();qu=class extends ee{constructor(){super(...arguments),this.currentFocused=null,this.handleFocus=e=>{if(!(this.slottedTreeItems.length<1)){if(e.target===this){this.currentFocused===null&&(this.currentFocused=this.getValidFocusableItem()),this.currentFocused!==null&&$t.focusItem(this.currentFocused);return}this.contains(e.target)&&(this.setAttribute("tabindex","-1"),this.currentFocused=e.target)}},this.handleBlur=e=>{e.target instanceof HTMLElement&&(e.relatedTarget===null||!this.contains(e.relatedTarget))&&this.setAttribute("tabindex","0")},this.handleKeyDown=e=>{if(e.defaultPrevented)return;if(this.slottedTreeItems.length<1)return!0;let t=this.getVisibleNodes();switch(e.key){case _i:t.length&&$t.focusItem(t[0]);return;case yi:t.length&&$t.focusItem(t[t.length-1]);return;case mr:if(e.target&&this.isFocusableElement(e.target)){let r=e.target;r instanceof $t&&r.childItemLength()>0&&r.expanded?r.expanded=!1:r instanceof $t&&r.parentElement instanceof $t&&$t.focusItem(r.parentElement)}return!1;case gr:if(e.target&&this.isFocusableElement(e.target)){let r=e.target;r instanceof $t&&r.childItemLength()>0&&!r.expanded?r.expanded=!0:r instanceof $t&&r.childItemLength()>0&&this.focusNextNode(1,e.target)}return;case At:e.target&&this.isFocusableElement(e.target)&&this.focusNextNode(1,e.target);return;case Rt:e.target&&this.isFocusableElement(e.target)&&this.focusNextNode(-1,e.target);return;case ei:this.handleClick(e);return}return!0},this.handleSelectedChange=e=>{if(e.defaultPrevented)return;if(!(e.target instanceof Element)||!na(e.target))return!0;let t=e.target;t.selected?(this.currentSelected&&this.currentSelected!==t&&(this.currentSelected.selected=!1),this.currentSelected=t):!t.selected&&this.currentSelected===t&&(this.currentSelected=null)},this.setItems=()=>{let e=this.treeView.querySelector("[aria-selected='true']");this.currentSelected=e,(this.currentFocused===null||!this.contains(this.currentFocused))&&(this.currentFocused=this.getValidFocusableItem()),this.nested=this.checkForNestedItems(),this.getVisibleNodes().forEac
1265h(r=>{na(r)&&(r.nested=this.nested)})},this.isFocusableElement=e=>na(e),this.isSelectedElement=e=>e.selected}slottedTreeItemsChanged(){this.$fastController.isConnected&&this.setItems()}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),ue.queueUpdate(()=>{this.setItems()})}handleClick(e){if(e.defaultPrevented)return;if(!(e.target instanceof Element)||!na(e.target))return!0;let t=e.target;t.disabled||(t.selected=!t.selected)}focusNextNode(e,t){let r=this.getVisibleNodes();if(!r)return;let n=r[r.indexOf(t)+e];so(n)&&$t.focusItem(n)}getValidFocusableItem(){let e=this.getVisibleNodes(),t=e.findIndex(this.isSelectedElement);return t===-1&&(t=e.findIndex(this.isFocusableElement)),t!==-1?e[t]:null}checkForNestedItems(){return this.slottedTreeItems.some(e=>na(e)&&e.querySelector("[role='treeitem']"))}getVisibleNodes(){return uq(this,"[role='treeitem']")||[]}};k([O({attribute:"render-collapsed-nodes"})],qu.prototype,"renderCollapsedNodes",void 0);k([N],qu.prototype,"currentSelected",void 0);k([N],qu.prototype,"slottedTreeItems",void 0)});var xU=w(()=>{_U();yU()});var M3,Hu,be,gdt,bdt,wU=w(()=>{M3=class{constructor(e){this.listenerCache=new WeakMap,this.query=e}bind(e){let{query:t}=this,r=this.constructListener(e);r.bind(t)(),t.addListener(r),this.listenerCache.set(e,r)}unbind(e){let t=this.listenerCache.get(e);t&&(this.query.removeListener(t),this.listenerCache.delete(e))}},Hu=class extends M3{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new Hu(e,t)}constructListener(e){let t=!1,r=this.styles;return function(){let{matches:s}=this;s&&!t?(e.$fastController.addStyles(r),t=s):!s&&t&&(e.$fastController.removeStyles(r),t=s)}}unbind(e){super.unbind(e),e.$fastController.removeStyles(this.styles)}},be=Hu.with(window.matchMedia("(forced-colors)")),gdt=Hu.with(window.matchMedia("(prefers-color-scheme: dark)")),bdt=Hu.with(window.matchMedia("(prefers-color-scheme: light)"))});var V1,SU=w(()=>{q();V1=class{constructor(e,t,r){this.propertyName=e,this.value=t,this.styles=r}bind(e){ge.getNotifier(e).subscribe(this,this.propertyName),this.handleChange(e,this.propertyName)}unbind(e){ge.getNotifier(e).unsubscribe(this,this.propertyName),e.$fastController.removeStyles(this.styles)}handleChange(e,t){e[t]===this.value?e.$fastController.addStyles(this.styles):e.$fastController.removeStyles(this.styles)}}});var dt,CU=w(()=>{dt="not-allowed"});function xe(i){return`${LSe}:host{display:${i}}`}var LSe,IU=w(()=>{LSe=":host([hidden]){display:none}"});var Z,MU=w(()=>{ye();Z=cq()?"focus-visible":"focus"});var EU=w(()=>{CU();IU();MU()});var TU=w(()=>{ji();x1();wU();SU();EU();pl();L1()});var se=w(()=>{ZB();kq();Aq();Fw();Bq();Vq();Gq();Jq();oH();bH();xH();IH();AH();mH();$H();i3();FH();UH();YH();tj();oj();aj();lj();dj();pj();Ej();p3();Lj();Hj();Lu();Wj();Xj();eV();nV();aV();hV();bV();xV();IV();AV();$V();zV();jV();KV();QV();iU();uU();pU();bU();xU();TU()});function U1(i,e,t=0,r=i.length-1){if(r===t)return i[t];let n=Math.floor((r-t)/2)+t;return e(i[n])?U1(i,e,t,n):U1(i,e,n+1,r)}var kU=w(()=>{});function nn(i){return hd(i)?-1:1}var wl=w(()=>{Gg()});function $Se(i,e,t){return typeof i=="number"?Ed.from(Ri.create(i,e,t)):Ed.from(i)}function FSe(i){return iB(i)?Td.from(i):Td.from(Ri.create(i.r,i.g,i.b))}var Ed,Td,AU=w(()=>{ud();dd();kU();wl();H2();Ed=Object.freeze({create:$Se,from:FSe}),Td=class{constructor(e,t){this.closestIndexCache=new Map,this.source=e,this.swatches=t,this.reversedSwatches=Object.freeze([...this.swatches].reverse()),this.lastIndex=this.swatches.length-1}colorContrast(e,t,r,n){r===void 0&&(r=this.closestIndexOf(e));let s=this.swatches,o=this.lastIndex,a=r;n===void 0&&(n=nn(e));let l=u=>Wg(e,u)>=t;return n===-1&&(s=this.reversedSwatches,a=o-a),U1(s,l,a,o)}get(e){return this.swatches[e]||this.swatches[Vn(e,0,this.lastIndex)]}closestIndexOf(e){if(this.closestIndexCache.has(e.relativeLuminance))return this.closestIndexCache.get(e.relativeLuminance);let t=this.swatches.indexOf(e);if(t!==-1)return this.closestIndexCache.set(e.relativeLuminance,t),t;let r=this.swatches.reduce((n,s)=>Math.abs(s.relativeLuminance-e.relativeLuminance)<Math.abs(n.relativeLuminance-e.relativeLuminance)?s:n);return t=this.swatches.indexOf(r),this.closestIndexCache.set(e.relativeLuminance,t),t}static from(e){return new Td(e,Object.freeze(new Iu({baseColor:ot.fromObject(e)}).palette.map(t=>{let r=Xr(t.toStringHexRGB());return Ri.create(r.r,r.g,r.b)})))}}});function RU(i,e,t,r,n,s,o,a,l){let u=i.source,c=e.closestIndexOf(t),d=Math.max(o,a,l),f=c>=d?-1:1,b=i.closestIndexOf(u),y=b+f*-1*r,x=y+f*n,M=y+f*s;return{rest:i.get(y),hover:i.get(b),active:i.get(x),focus:i.get(M)}}var DU=w(()=>{});function OU(i,e,t,r,n,s,o){let a=i.source,l=i.closestIndexOf(a),u=nn(e),c=l+(u===1?Math.min(r,n):Math.max(u*r,u*n)),d=i.colorContrast(e,t,c,u),f=i.closestIndexOf(d),m=f+u*Math.abs(r-n),b=u===1?r<n:u*r>u*n,y,x;return b?(y=f,x=m):(y=m,x=f),{rest:i.get(y),hover:i.get(x),active:i.get(y+u*s),focus:i.get(y+u*o)}}var LU=w(()=>{wl()});var kd,W1,$U,FU,PU,G1=w(()=>{ud();dd();kd=Ri.create(1,1,1),W1=Ri.create(0,0,0),$U=Ri.from(Xr("#808080")),FU=Ri.from(Xr("#DA1A5F")),PU=Ri.from(Xr("#D32F2F"))});function NU(i,e){return i.contrast(kd)>=e?kd:W1}var zU=w(()=>{G1()});function BU(i,e,t,r,n,s){let o=i.closestIndexOf(e),a=Math.max(t,r,n,s),l=o>=a?-1:1;return{rest:i.get(o+l*t),hover:i.get(o+l*r),active:i.get(o+l*n),focus:i.get(o+l*s)}}var qU=w(()=>{});function HU(i,e,t,r,n,s){let o=nn(e),a=i.closestIndexOf(e);return{rest:i.get(a-o*t),hover:i.get(a-o*r),active:i.get(a-o*n),focus:i.get(a-o*s)}}var jU=w(()=>{wl()});function VU(i,e,t){let r=i.closestIndexOf(e);return i.get(r-(r<t?t*-1:t))}var UU=w(()=>{});function WU(i,e,t,r,n,s,o,a,l,u){let c=Math.max(t,r,n,s,o,a,l,u),d=i.closestIndexOf(e),f=d>=c?-1:1;return{rest:i.get(d+f*t),hover:i.get(d+f*r),active:i.get(d+f*n),focus:i.get(d+f*s)}}var GU=w(()=>{});function KU(i,e,t,r,n,s){let o=nn(e),a=i.closestIndexOf(i.colorContrast(e,4.5)),l=a+o*Math.abs(t-r),u=o===1?t<r:o*t>o*r,c,d;return u?(c=a,d=l):(c=l,d=a),{rest:i.get(c),hover:i.get(d),active:i.get(c+o*n),focus:i.get(c+o*s)}}var YU=w(()=>{wl()});function XU(i,e){return i.colorContrast(e,3.5)}function JU(i,e,t){return i.colorContrast(t,3.5,i.closestIndexOf(i.source),nn(e)*-1)}var ZU=w(()=>{wl()});function QU(i,e){return i.colorContrast(e,14)}var eW=w(()=>{});function tW(i,e){return i.colorContrast(e,4.5)}var iW=w(()=>{});function rW(i,e,t){return i.get(i.closestIndexOf(rl(e))+t)}var nW=w(()=>{Mu()});function sW(i,e,t){let r=i.closestIndexOf(rl(e))-t;return i.get(r-t)}var oW=w(()=>{Mu()});function aW(i,e){return i.get(i.closestIndexOf(rl(e)))}var lW=w(()=>{Mu()});function bp(i,e,t,r,n,s){return Math.max(i.closestIndexOf(rl(e))+t,r,n,s)}function uW(i,e,t,r,n,s){return i.get(bp(i,e,t,r,n,s))}var K1=w(()=>{Mu()});function cW(i,e,t,r,n,s){return i.get(bp(i,e,t,r,n,s)+t)}var dW=w(()=>{K1()});function hW(i,e,t,r,n,s){return i.get(bp(i,e,t,r,n,s)+t*2)}var fW=w(()=>{K1()});function pW(i,e,t,r,n,s){let o=i.closestIndexOf(e),a=nn(e),l=o+a*t,u=l+a*(r-t),c=l+a*(n-t),d=l+a*(s-t);return{rest:i.get(l),hover:i.get(u),active:i.get(c),focus:i.get(d)}}var mW=w(()=>{wl()});function gW(i,e,t){return i.get(i.closestIndexOf(e)+nn(e)*t)}var bW=w(()=>{wl()});function vW(i,e,t,r,n,s,o,a,l){let u=i.source,c=e.closestIndexOf(t),d=Math.max(o,a,l),f=c>=d?-1:1,b=i.closestIndexOf(u),y=b+f*-1*r,x=y+f*n,M=y+f*s;return{rest:i.get(y),hover:i.get(b),active:i.get(x),focus:i.get(M)}}function _W(i,e,t,r,n,s,o){let a=i.source,l=i.closestIndexOf(a),u=hd(e)?-1:1,c=l+(u===1?Math.min(r,n):Math.max(u*r,u*n)),d=i.colorContrast(e,t,c,u),f=i.closestIndexOf(d),m=f+u*Math.abs(r-n),b=u===1?r<n:u*r>u*n,y,x;return b?(y=f,x=m):(y=m,x=f),{rest:i.get(y),hover:i.get(x),active:i.get(y+u*s),focus:i.get(y+u*o)}}var yW=w(()=>{Gg()});function xW(i,e){return i.contrast(kd)>=e?kd:W1}var wW=w(()=>{G1()});function Fe(i){return Mn.create({name:i,cssCustomPropertyName:null})}var Q,ke,sa,SW,ho,me,Wi,Y,Ad,_t,he,ve,Me,Le,Cl,Il,CW,IW,MW,EW,TW,kW,AW,RW,DW,OW,LW,$W,FW,PW,NW,ju,Y1,X1,J1,Z1,Q1,eb,oa,aa,la,tb,E3,T3,k3,A3,R3,D3,O3,L3,PSe,$3,F3,P3,Ml,N3,z3,B3,q3,H3,vp,Gi,_p,j3,NSe,tpt,zSe,Rd,BSe,qSe,HSe,ipt,jSe,rpt,VSe,npt,Pe,Sl,ib,st,wi,Vt,Ne,zW,rb,Si,or,Li,BW,nb,spt,opt,a
1265pt,lpt,USe,sb,ti,ua,fo,qW,ca,Mt,po,Dd,upt,ob,sn,yr,mo,cpt,go,xr,on,an,Od,ab,Ld,$d,Fd,HW,yp,dpt,WSe,$i,GSe,jW,KSe,da,YSe,fe,lb,wr,ha,Pd,hpt,XSe,ks,ub,xp,VW,cb,Dt,ii,Ci,Et,UW,db,fpt,ppt,mpt,gpt,hb,bpt,vpt,_pt,ypt,JSe,fb,xpt,wpt,WW,Spt,Ee=w(()=>{se();ye();AU();DU();LU();zU();qU();jU();UU();GU();YU();ZU();eW();iW();nW();oW();lW();K1();dW();fW();mW();bW();Mu();G1();yW();wW();({create:Q}=Mn);ke=Q("body-font").withDefault('aktiv-grotesk, "Segoe UI", Arial, Helvetica, sans-serif'),sa=Q("base-height-multiplier").withDefault(10),SW=Q("base-horizontal-spacing-multiplier").withDefault(3),ho=Q("base-layer-luminance").withDefault(Wf.DarkMode),me=Q("control-corner-radius").withDefault(4),Wi=Q("density").withDefault(0),Y=Q("design-unit").withDefault(4),Ad=Q("direction").withDefault(qe.ltr),_t=Q("disabled-opacity").withDefault(.4),he=Q("stroke-width").withDefault(1),ve=Q("focus-stroke-width").withDefault(2),Me=Q("type-ramp-base-font-size").withDefault("14px"),Le=Q("type-ramp-base-line-height").withDefault("20px"),Cl=Q("type-ramp-minus-1-font-size").withDefault("12px"),Il=Q("type-ramp-minus-1-line-height").withDefault("16px"),CW=Q("type-ramp-minus-2-font-size").withDefault("10px"),IW=Q("type-ramp-minus-2-line-height").withDefault("16px"),MW=Q("type-ramp-plus-1-font-size").withDefault("16px"),EW=Q("type-ramp-plus-1-line-height").withDefault("24px"),TW=Q("type-ramp-plus-2-font-size").withDefault("20px"),kW=Q("type-ramp-plus-2-line-height").withDefault("28px"),AW=Q("type-ramp-plus-3-font-size").withDefault("28px"),RW=Q("type-ramp-plus-3-line-height").withDefault("36px"),DW=Q("type-ramp-plus-4-font-size").withDefault("34px"),OW=Q("type-ramp-plus-4-line-height").withDefault("44px"),LW=Q("type-ramp-plus-5-font-size").withDefault("46px"),$W=Q("type-ramp-plus-5-line-height").withDefault("56px"),FW=Q("type-ramp-plus-6-font-size").withDefault("60px"),PW=Q("type-ramp-plus-6-line-height").withDefault("72px"),NW=Fe("accent-fill-rest-delta").withDefault(0),ju=Fe("accent-fill-hover-delta").withDefault(4),Y1=Fe("accent-fill-active-delta").withDefault(-5),X1=Fe("accent-fill-focus-delta").withDefault(0),J1=Fe("accent-foreground-rest-delta").withDefault(0),Z1=Fe("accent-foreground-hover-delta").withDefault(6),Q1=Fe("accent-foreground-active-delta").withDefault(-4),eb=Fe("accent-foreground-focus-delta").withDefault(0),oa=Fe("neutral-fill-rest-delta").withDefault(7),aa=Fe("neutral-fill-hover-delta").withDefault(10),la=Fe("neutral-fill-active-delta").withDefault(5),tb=Fe("neutral-fill-focus-delta").withDefault(0),E3=Fe("neutral-fill-input-rest-delta").withDefault(0),T3=Fe("neutral-fill-input-hover-delta").withDefault(0),k3=Fe("neutral-fill-input-active-delta").withDefault(0),A3=Fe("neutral-fill-input-focus-delta").withDefault(0),R3=Fe("neutral-fill-stealth-rest-delta").withDefault(0),D3=Fe("neutral-fill-stealth-hover-delta").withDefault(5),O3=Fe("neutral-fill-stealth-active-delta").withDefault(3),L3=Fe("neutral-fill-stealth-focus-delta").withDefault(0),PSe=Fe("neutral-fill-strong-rest-delta").withDefault(0),$3=Fe("neutral-fill-strong-hover-delta").withDefault(8),F3=Fe("neutral-fill-strong-active-delta").withDefault(-5),P3=Fe("neutral-fill-strong-focus-delta").withDefault(0),Ml=Fe("neutral-fill-layer-rest-delta").withDefault(3),N3=Fe("neutral-stroke-rest-delta").withDefault(25),z3=Fe("neutral-stroke-hover-delta").withDefault(40),B3=Fe("neutral-stroke-active-delta").withDefault(16),q3=Fe("neutral-stroke-focus-delta").withDefault(25),H3=Fe("neutral-stroke-divider-rest-delta").withDefault(8),vp=Q("neutral-color").withDefault($U),Gi=Fe("neutral-palette").withDefault(i=>Ed.from(vp.getValueFor(i))),_p=Q("accent-color").withDefault(FU),j3=Fe("accent-palette").withDefault(i=>Ed.from(_p.getValueFor(i))),NSe=Fe("neutral-layer-card-container-recipe").withDefault({evaluate:i=>rW(Gi.getValueFor(i),ho.getValueFor(i),Ml.getValueFor(i))}),tpt=Q("neutral-layer-card-container").withDefault(i=>NSe.getValueFor(i).evaluate(i)),zSe=Fe("neutral-layer-floating-recipe").withDefault({evaluate:i=>sW(Gi.getValueFor(i),ho.getValueFor(i),Ml.getValueFor(i))}),Rd=Q("neutral-layer-floating").withDefault(i=>zSe.getValueFor(i).evaluate(i)),BSe=Fe("neutral-layer-1-recipe").withDefault({evaluate:i=>aW(Gi.getValueFor(i),ho.getValueFor(i))}),qSe=Q("neutral-layer-1").withDefault(i=>BSe.getValueFor(i).evaluate(i)),HSe=Fe("neutral-layer-2-recipe").withDefault({evaluate:i=>uW(Gi.getValueFor(i),ho.getValueFor(i),Ml.getValueFor(i),oa.getValueFor(i),aa.getValueFor(i),la.getValueFor(i))}),ipt=Q("neutral-layer-2").withDefault(i=>HSe.getValueFor(i).evaluate(i)),jSe=Fe("neutral-layer-3-recipe").withDefault({evaluate:i=>cW(Gi.getValueFor(i),ho.getValueFor(i),Ml.getValueFor(i),oa.getValueFor(i),aa.getValueFor(i),la.getValueFor(i))}),rpt=Q("neutral-layer-3").withDefault(i=>jSe.getValueFor(i).evaluate(i)),VSe=Fe("neutral-layer-4-recipe").withDefault({evaluate:i=>hW(Gi.getValueFor(i),ho.getValueFor(i),Ml.getValueFor(i),oa.getValueFor(i),aa.getValueFor(i),la.getValueFor(i))}),npt=Q("neutral-layer-4").withDefault(i=>VSe.getValueFor(i).evaluate(i)),Pe=Q("fill-color").withDefault(i=>qSe.getValueFor(i));(function(i){i[i.normal=4.5]="normal",i[i.large=7]="large"})(Sl||(Sl={}));ib=Q({name:"accent-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(i,e)=>RU(j3.getValueFor(i),Gi.getValueFor(i),e||Pe.getValueFor(i),ju.getValueFor(i),Y1.getValueFor(i),X1.getValueFor(i),oa.getValueFor(i),aa.getValueFor(i),la.getValueFor(i))}),st=Q("accent-fill-rest").withDefault(i=>ib.getValueFor(i).evaluate(i).rest),wi=Q("accent-fill-hover").withDefault(i=>ib.getValueFor(i).evaluate(i).hover),Vt=Q("accent-fill-active").withDefault(i=>ib.getValueFor(i).evaluate(i).active),Ne=Q("accent-fill-focus").withDefault(i=>ib.getValueFor(i).evaluate(i).focus),zW=i=>(e,t)=>NU(t||st.getValueFor(e),i),rb=Fe("foreground-on-accent-recipe").withDefault({evaluate:(i,e)=>zW(Sl.normal)(i,e)}),Si=Q("foreground-on-accent-rest").withDefault(i=>rb.getValueFor(i).evaluate(i,st.getValueFor(i))),or=Q("foreground-on-accent-hover").withDefault(i=>rb.getValueFor(i).evaluate(i,wi.getValueFor(i))),Li=Q("foreground-on-accent-active").withDefault(i=>rb.getValueFor(i).evaluate(i,Vt.getValueFor(i))),BW=Q("foreground-on-accent-focus").withDefault(i=>rb.getValueFor(i).evaluate(i,Ne.getValueFor(i))),nb=Fe("foreground-on-accent-large-recipe").withDefault({evaluate:(i,e)=>zW(Sl.large)(i,e)}),spt=Q("foreground-on-accent-rest-large").withDefault(i=>nb.getValueFor(i).evaluate(i,st.getValueFor(i))),opt=Q("foreground-on-accent-hover-large").withDefault(i=>nb.getValueFor(i).evaluate(i,wi.getValueFor(i))),apt=Q("foreground-on-accent-active-large").withDefault(i=>nb.getValueFor(i).evaluate(i,Vt.getValueFor(i))),lpt=Q("foreground-on-accent-focus-large").withDefault(i=>nb.getValueFor(i).evaluate(i,Ne.getValueFor(i))),USe=i=>(e,t)=>OU(j3.getValueFor(e),t||Pe.getValueFor(e),i,J1.getValueFor(e),Z1.getValueFor(e),Q1.getValueFor(e),eb.getValueFor(e)),sb=Q({name:"accent-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(i,e)=>USe(Sl.normal)(i,e)}),ti=Q("accent-foreground-rest").withDefault(i=>sb.getValueFor(i).evaluate(i).rest),ua=Q("accent-foreground-hover").withDefault(i=>sb.getValueFor(i).evaluate(i).hover),fo=Q("accent-foreground-active").withDefault(i=>sb.getValueFor(i).evaluate(i).active),qW=Q("accent-foreground-focus").withDefault(i=>sb.getValueFor(i).evaluate(i).focus),ca=Q({name:"neutral-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(i,e)=>BU(Gi.getValueFor(i),e||Pe.getValueFor(i),oa.getValueFor(i),aa.getValueFor(i),la.getValueFor(i),tb.getValueFor(i))}),Mt=Q("neutral-fill-rest").withDefault(i=>ca.getValueFor(i).evaluate(i).rest),po=Q("neutral-fill-hover").withDefault(i=>ca.getValueFor(i).evaluate(i).hover),Dd=Q("neutral-fill-active").withDefault(i=>ca.getValueFor(i).evaluate(i).active),upt=Q("neutral-fill-focus").withDefault(i=>ca.getValueFor(i).evaluate(i).focus),ob=Q({name:"neutral-fill-input-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(i,e)=>HU(Gi.getValueFor(i),e||Pe.getValueFor(i),E3.getValueFor(i),T3.getValueFor(i),k3.getValueFor(i),A3.getValueFor(i))}),sn=Q("neutral-fill-input-rest").withDefault(i=>ob.getValueFor(i).evaluate(i).rest),yr=Q("neutral-fill-input-hover").withDefault(i=>ob.getValueFor(i).evaluate(i).hover),mo=Q("neutral-fill-input-active").withDefault(i=>ob.getValueFor(i).evaluate(i).active),cpt=Q("neutral-fill-input-focus").withDefault(i=>ob.getValueFor(i).evaluate(i).focus),go=Q({name:"neutral-fill-stealth-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(i,e)=>WU(Gi.getValueFor(i),e||Pe.getValueFor(i),R3.getValueFor(i),D3.getValueFor(i),O3.getValueFor(i),L3.getValueFor(i),oa.getValueFor(i),aa.getValueFor(i),la.getValueFor(i),tb.getValueFor(i))}),xr=Q("neutral-fill-stealth-rest").withDefault(i=>go.getValueFor(i).evaluate(i).rest),on=Q("neutral-fill-stealth-hover").withDefault(i=>go.getValueFor(i).evaluate(i).hover),an=Q("neutral-fill-stealth-active").withDefault(i=>go.getValueFor(i).evaluate(i).active),Od=Q("neutral-fill-stealth-focus").withDefault(i=>go.getValueFor(i).evaluate(i).focus),ab=Q({name:"neutral-fill-strong-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(i,e)=>KU(Gi.getValueFor(i),e||Pe.getValueFor(i),PSe.getValueFor(i),$3.getValueFor(i),F3.getValueFor(i),P3.getValueFor(i))}),Ld=Q("neutral-fill-strong-rest").withDefault(i=>ab.getValueFor(i).evaluate(i).rest),$d=Q("neutral-fill-strong-hover").withDefault(i=>ab.getValueFor(i).evaluate(i).hover),Fd=Q("neutral-fill-strong-active").withDefault(i=>ab.getValueFor(i).evaluate(i).active),HW=Q("neutral-fill-strong-focus").withDefault(i=>
1265ab.getValueFor(i).evaluate(i).focus),yp=Fe("neutral-fill-layer-recipe").withDefault({evaluate:(i,e)=>VU(Gi.getValueFor(i),e||Pe.getValueFor(i),Ml.getValueFor(i))}),dpt=Q("neutral-fill-layer-rest").withDefault(i=>yp.getValueFor(i).evaluate(i)),WSe=Fe("focus-stroke-outer-recipe").withDefault({evaluate:i=>XU(Gi.getValueFor(i),Pe.getValueFor(i))}),$i=Q("focus-stroke-outer").withDefault(i=>WSe.getValueFor(i).evaluate(i)),GSe=Fe("focus-stroke-inner-recipe").withDefault({evaluate:i=>JU(j3.getValueFor(i),Pe.getValueFor(i),$i.getValueFor(i))}),jW=Q("focus-stroke-inner").withDefault(i=>GSe.getValueFor(i).evaluate(i)),KSe=Fe("neutral-foreground-hint-recipe").withDefault({evaluate:i=>tW(Gi.getValueFor(i),Pe.getValueFor(i))}),da=Q("neutral-foreground-hint").withDefault(i=>KSe.getValueFor(i).evaluate(i)),YSe=Fe("neutral-foreground-recipe").withDefault({evaluate:i=>QU(Gi.getValueFor(i),Pe.getValueFor(i))}),fe=Q("neutral-foreground-rest").withDefault(i=>YSe.getValueFor(i).evaluate(i)),lb=Q({name:"neutral-stroke-recipe",cssCustomPropertyName:null}).withDefault({evaluate:i=>pW(Gi.getValueFor(i),Pe.getValueFor(i),N3.getValueFor(i),z3.getValueFor(i),B3.getValueFor(i),q3.getValueFor(i))}),wr=Q("neutral-stroke-rest").withDefault(i=>lb.getValueFor(i).evaluate(i).rest),ha=Q("neutral-stroke-hover").withDefault(i=>lb.getValueFor(i).evaluate(i).hover),Pd=Q("neutral-stroke-active").withDefault(i=>lb.getValueFor(i).evaluate(i).active),hpt=Q("neutral-stroke-focus").withDefault(i=>lb.getValueFor(i).evaluate(i).focus),XSe=Fe("neutral-stroke-divider-recipe").withDefault({evaluate:(i,e)=>gW(Gi.getValueFor(i),e||Pe.getValueFor(i),H3.getValueFor(i))}),ks=Q("neutral-stroke-divider-rest").withDefault(i=>XSe.getValueFor(i).evaluate(i)),ub=Mn.create({name:"height-number",cssCustomPropertyName:null}).withDefault(i=>(sa.getValueFor(i)+Wi.getValueFor(i))*Y.getValueFor(i)),xp=Q("error-color").withDefault(PU),VW=Fe("error-palette").withDefault(i=>Ed.from(xp.getValueFor(i))),cb=Q({name:"error-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(i,e)=>vW(VW.getValueFor(i),Gi.getValueFor(i),e||Pe.getValueFor(i),ju.getValueFor(i),Y1.getValueFor(i),X1.getValueFor(i),oa.getValueFor(i),aa.getValueFor(i),la.getValueFor(i))}),Dt=Q("error-fill-rest").withDefault(i=>cb.getValueFor(i).evaluate(i).rest),ii=Q("error-fill-hover").withDefault(i=>cb.getValueFor(i).evaluate(i).hover),Ci=Q("error-fill-active").withDefault(i=>cb.getValueFor(i).evaluate(i).active),Et=Q("error-fill-focus").withDefault(i=>cb.getValueFor(i).evaluate(i).focus),UW=i=>(e,t)=>xW(t||Dt.getValueFor(e),i),db=Q({name:"foreground-on-error-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(i,e)=>UW(Sl.normal)(i,e)}),fpt=Q("foreground-on-error-rest").withDefault(i=>db.getValueFor(i).evaluate(i,Dt.getValueFor(i))),ppt=Q("foreground-on-error-hover").withDefault(i=>db.getValueFor(i).evaluate(i,ii.getValueFor(i))),mpt=Q("foreground-on-error-active").withDefault(i=>db.getValueFor(i).evaluate(i,Ci.getValueFor(i))),gpt=Q("foreground-on-error-focus").withDefault(i=>db.getValueFor(i).evaluate(i,Et.getValueFor(i))),hb=Q({name:"foreground-on-error-large-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(i,e)=>UW(Sl.large)(i,e)}),bpt=Q("foreground-on-error-rest-large").withDefault(i=>hb.getValueFor(i).evaluate(i,Dt.getValueFor(i))),vpt=Q("foreground-on-error-hover-large").withDefault(i=>hb.getValueFor(i).evaluate(i,ii.getValueFor(i))),_pt=Q("foreground-on-error-active-large").withDefault(i=>hb.getValueFor(i).evaluate(i,Ci.getValueFor(i))),ypt=Q("foreground-on-error-focus-large").withDefault(i=>hb.getValueFor(i).evaluate(i,Et.getValueFor(i))),JSe=i=>(e,t)=>_W(VW.getValueFor(e),t||Pe.getValueFor(e),i,J1.getValueFor(e),Z1.getValueFor(e),Q1.getValueFor(e),eb.getValueFor(e)),fb=Q({name:"error-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(i,e)=>JSe(Sl.normal)(i,e)}),xpt=Q("error-foreground-rest").withDefault(i=>fb.getValueFor(i).evaluate(i).rest),wpt=Q("error-foreground-hover").withDefault(i=>fb.getValueFor(i).evaluate(i).hover),WW=Q("error-foreground-active").withDefault(i=>fb.getValueFor(i).evaluate(i).active),Spt=Q("error-foreground-focus").withDefault(i=>fb.getValueFor(i).evaluate(i).focus)});
1265function W3(){GW||(GW=!0,eCe())}function eCe(){let i=()=>{new MutationObserver(()=>{U3()}).observe(document.body,{attributes:!0,attributeFilter:[ZSe],childList:!1,characterData:!1}),U3()};document.readyState==="complete"?i():window.addEventListener("load",i)}function U3(){var i;let e=getComputedStyle(document.body),t=document.body.getAttribute(QSe),r=!1;if(t)r=t==="false";else{let n=e.getPropertyValue(V3).toString();if(n){let s=Uf(n);s&&(r=hd(Ri.create(s.r,s.g,s.b)),console.debug(`Theme is ${r?"dark":"light"} based on '${V3}' value: ${n}.`))}}ho.setValueFor(document.body,r?Wf.DarkMode:Wf.LightMode);for(let n in YW){let s=YW[n],o=e.getPropertyValue(n).toString();if(document.body&&o!==""){let a=((i=s.converter)!==null&&i!==void 0?i:l=>l)(o.trim(),r);a!==null?s.token.setValueFor(document.body,a):console.error(`Fail to parse value '${o}' for '${n}' as FAST design token.`)}}}var ZSe,QSe,V3,GW,KW,YW,XW=w(()=>{ud();dd();Mu();Gg();Ee();ZSe="data-jp-theme-name",QSe="data-jp-theme-light",V3="--jp-layout-color1",GW=!1;KW=i=>{let e=parseInt(i,10);return isNaN(e)?null:e},YW={"--jp-border-width":{converter:KW,token:he},"--jp-border-radius":{converter:KW,token:me},[V3]:{converter:(i,e)=>{let t=Uf(i);if(t){let r=Sn(t),n=dr.fromObject({h:r.h,s:r.s,l:.5}),s=ro(n);return Ri.create(s.r,s.g,s.b)}else return null},token:vp},"--jp-brand-color1":{converter:(i,e)=>{let t=Uf(i);if(t){let r=Sn(t),n=e?1:-1,s=dr.fromObject({h:r.h,s:r.s,l:r.l+n*ju.getValueFor(document.body)/94}),o=ro(s);return Ri.create(o.r,o.g,o.b)}else return null},token:_p},"--jp-error-color1":{converter:(i,e)=>{let t=Uf(i);if(t){let r=Sn(t),n=e?1:-1,s=dr.fromObject({h:r.h,s:r.s,l:r.l+n*ju.getValueFor(document.body)/94}),o=ro(s);return Ri.create(o.r,o.g,o.b)}else return null},token:xp},"--jp-ui-font-family":{token:ke},"--jp-ui-font-size1":{token:Me}}});var JW,ZW=w(()=>{q();se();Ee();JW=(i,e)=>B` 1266 ${xe("flex")} :host { 1267 box-sizing: border-box; 1268 flex-direction: column; 1269 font-family: ${ke}; 1270 font-size: ${Cl}; 1271 line-height: ${Il}; 1272 color: ${fe}; 1273 border-top: calc(${he} * 1px) solid ${ks}; 1274 } 1275`});var _e,bo=w(()=>{q();Ee();_e=Jf`(${sa} + ${Wi}) * ${Y}`});var QW,eG=w(()=>{q();se();ye();Ee();bo();QW=(i,e)=>B` 1276 ${xe("flex")} :host { 1277 box-sizing: border-box; 1278 font-family: ${ke}; 1279 flex-direction: column; 1280 font-size: ${Cl}; 1281 line-height: ${Il}; 1282 border-bottom: calc(${he} * 1px) solid 1283 ${ks}; 1284 } 1285 1286 .region { 1287 display: none; 1288 padding: calc((6 + (${Y} * 2 * ${Wi})) * 1px); 1289 } 1290 1291 div.heading { 1292 display: grid; 1293 position: relative; 1294 grid-template-columns: calc(${_e} * 1px) auto 1fr auto; 1295 color: ${fe}; 1296 } 1297 1298 .button { 1299 appearance: none; 1300 border: none; 1301 background: none; 1302 grid-column: 3; 1303 outline: none; 1304 padding: 0 calc((6 + (${Y} * 2 * ${Wi})) * 1px); 1305 text-align: left; 1306 height: calc(${_e} * 1px); 1307 color: currentcolor; 1308 cursor: pointer; 1309 font-family: inherit; 1310 } 1311 1312 .button:hover { 1313 color: currentcolor; 1314 } 1315 1316 .button:active { 1317 color: currentcolor; 1318 } 1319 1320 .button::before { 1321 content: ''; 1322 position: absolute; 1323 top: 0; 1324 left: 0; 1325 right: 0; 1326 bottom: 0; 1327 cursor: pointer; 1328 } 1329 1330 /* prettier-ignore */ 1331 .button:${Z}::before { 1332 outline: none; 1333 border: calc(${ve} * 1px) solid ${Ne}; 1334 border-radius: calc(${me} * 1px); 1335 } 1336 1337 :host([expanded]) .region { 1338 display: block; 1339 } 1340 1341 .icon { 1342 display: flex; 1343 align-items: center; 1344 justify-content: center; 1345 grid-column: 1; 1346 grid-row: 1; 1347 pointer-events: none; 1348 position: relative; 1349 } 1350 1351 slot[name='expanded-icon'], 1352 slot[name='collapsed-icon'] { 1353 fill: currentcolor; 1354 } 1355 1356 slot[name='collapsed-icon'] { 1357 display: flex; 1358 } 1359 1360 :host([expanded]) slot[name='collapsed-icon'] { 1361 display: none; 1362 } 1363 1364 slot[name='expanded-icon'] { 1365 display: none; 1366 } 1367 1368 :host([expanded]) slot[name='expanded-icon'] { 1369 display: flex; 1370 } 1371 1372 .start { 1373 display: flex; 1374 align-items: center; 1375 padding-inline-start: calc(${Y} * 1px); 1376 justify-content: center; 1377 grid-column: 2; 1378 position: relative; 1379 } 1380 1381 .end { 1382 display: flex; 1383 align-items: center; 1384 justify-content: center; 1385 grid-column: 4; 1386 position: relative; 1387 } 1388 `.withBehaviors(be(B` 1389 /* prettier-ignore */ 1390 .button:${Z}::before { 1391 border-color: ${L.Highlight}; 1392 } 1393 :host slot[name='collapsed-icon'], 1394 :host([expanded]) slot[name='expanded-icon'] { 1395 fill: ${L.ButtonText}; 1396 } 1397 `))});var G3,K3=w(()=>{se();eG();G3=Ss.compose({baseName:"accordion-item",template:PB,styles:QW,collapsedIcon:` 1398 <svg 1399 width="20" 1400 height="20"
1401 viewBox="0 0 16 16" 1402 xmlns="http://www.w3.org/2000/svg" 1403 > 1404 <path 1405 fill-rule="evenodd" 1406 clip-rule="evenodd" 1407 d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z" 1408 /> 1409 </svg> 1410 `,expandedIcon:` 1411 <svg 1412 width="20" 1413 height="20" 1414 viewBox="0 0 16 16" 1415 xmlns="http://www.w3.org/2000/svg" 1416 > 1417 <path 1418 fill-rule="evenodd" 1419 clip-rule="evenodd" 1420 transform="rotate(90,8,8)" 1421 d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z" 1422 /> 1423 </svg> 1424 `})});var Y3,X3=w(()=>{se();ZW();K3();Y3=vd.compose({baseName:"accordion",template:QB,styles:JW})});var lCe={};Ul(lCe,{__addDisposableResource:()=>yG,__assign:()=>pb,__asyncDelegator:()=>hG,__asyncGenerator:()=>dG,__asyncValues:()=>fG,__await:()=>Nd,__awaiter:()=>sG,__classPrivateFieldGet:()=>bG,__classPrivateFieldIn:()=>_G,__classPrivateFieldSet:()=>vG,__createBinding:()=>gb,__decorate:()=>te,__disposeResources:()=>xG,__esDecorate:()=>tCe,__exportStar:()=>aG,__extends:()=>tG,__generator:()=>oG,__importDefault:()=>gG,__importStar:()=>
vendor: 5,931 bytes, line 1424
1424mG,__makeTemplateObject:()=>pG,__metadata:()=>nG,__param:()=>rG,__propKey:()=>rCe,__read:()=>Z3,__rest:()=>iG,__runInitializers:()=>iCe,__setFunctionName:()=>nCe,__spread:()=>lG,__spreadArray:()=>cG,__spreadArrays:()=>uG,__values:()=>mb,default:()=>aCe});function tG(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");J3(i,e);function t(){this.constructor=i}i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function iG(i,e){var t={};for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&e.indexOf(r)<0&&(t[r]=i[r]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(i);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(i,r[n])&&(t[r[n]]=i[r[n]]);return t}function te(i,e,t,r){var n=arguments.length,s=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(o=i[a])&&(s=(n<3?o(s):n>3?o(e,t,s):o(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s}function rG(i,e){return function(t,r){e(t,r,i)}}function tCe(i,e,t,r,n,s){function o(M){if(M!==void 0&&typeof M!="function")throw new TypeError("Function expected");return M}for(var a=r.kind,l=a==="getter"?"get":a==="setter"?"set":"value",u=!e&&i?r.static?i:i.prototype:null,c=e||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),d,f=!1,m=t.length-1;m>=0;m--){var b={};for(var y in r)b[y]=y==="access"?{}:r[y];for(var y in r.access)b.access[y]=r.access[y];b.addInitializer=function(M){if(f)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(M||null))};var x=(0,t[m])(a==="accessor"?{get:c.get,set:c.set}:c[l],b);if(a==="accessor"){if(x===void 0)continue;if(x===null||typeof x!="object")throw new TypeError("Object expected");(d=o(x.get))&&(c.get=d),(d=o(x.set))&&(c.set=d),(d=o(x.init))&&n.unshift(d)}else(d=o(x))&&(a==="field"?n.unshift(d):c[l]=d)}u&&Object.defineProperty(u,r.name,c),f=!0}function iCe(i,e,t){for(var r=arguments.length>2,n=0;n<e.length;n++)t=r?e[n].call(i,t):e[n].call(i);return r?t:void 0}function rCe(i){return typeof i=="symbol"?i:"".concat(i)}function nCe(i,e,t){return typeof e=="symbol"&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(i,"name",{configurable:!0,value:t?"".concat(t," ",e):e})}function nG(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}function sG(i,e,t,r){function n(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?s(c.value):n(c.value).then(a,l)}u((r=r.apply(i,e||[])).next())})}function oG(i,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,n,s,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(t=0)),t;)try{if(r=1,n&&(s=u[0]&2?n.return:u[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,u[1])).done)return s;switch(n=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,n=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){t.label=u[1];break}if(u[0]===6&&t.label<s[1]){t.label=s[1],s=u;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(u);break}s[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(i,t)}catch(c){u=[6,c],n=0}finally{r=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function aG(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&gb(e,i,t)}function mb(i){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&i[e],r=0;if(t)return t.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&r>=i.length&&(i=void 0),{value:i&&i[r++],done:!i}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Z3(i,e){var t=typeof Symbol=="function"&&i[Symbol.iterator];if(!t)return i;var r=t.call(i),n,s=[],o;try{for(;(e===void 0||e-- >0)&&!(n=r.next()).done;)s.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(o)throw o.error}}return s}function lG(){for(var i=[],e=0;e<arguments.length;e++)i=i.concat(Z3(arguments[e]));return i}function uG(){for(var i=0,e=0,t=arguments.length;e<t;e++)i+=arguments[e].length;for(var r=Array(i),n=0,e=0;e<t;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,n++)r[n]=s[o];return r}function cG(i,e,t){if(t||arguments.length===2)for(var r=0,n=e.length,s;r<n;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return i.concat(s||Array.prototype.slice.call(e))}function Nd(i){return this instanceof Nd?(this.v=i,this):new Nd(i)}function dG(i,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(i,e||[]),n,s=[];return n=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),n[Symbol.asyncIterator]=function(){return this},n;function o(m){return function(b){return Promise.resolve(b).then(m,d)}}function a(m,b){r[m]&&(n[m]=function(y){return new Promise(function(x,M){s.push([m,y,x,M])>1||l(m,y)})},b&&(n[m]=b(n[m])))}function l(m,b){try{u(r[m](b))}catch(y){f(s[0][3],y)}}function u(m){m.value instanceof Nd?Promise.resolve(m.value.v).then(c,d):f(s[0][2],m)}function c(m){l("next",m)}function d(m){l("throw",m)}
vendor: 4,297 bytes, line 1424
1424function f(m,b){m(b),s.shift(),s.length&&l(s[0][0],s[0][1])}}function hG(i){var e,t;return e={},r("next"),r("throw",function(n){throw n}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(n,s){e[n]=i[n]?function(o){return(t=!t)?{value:Nd(i[n](o)),done:!1}:s?s(o):o}:s}}function fG(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=i[Symbol.asyncIterator],t;return e?e.call(i):(i=typeof mb=="function"?mb(i):i[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=i[s]&&function(o){return new Promise(function(a,l){o=i[s](o),n(a,l,o.done,o.value)})}}function n(s,o,a,l){Promise.resolve(l).then(function(u){s({value:u,done:a})},o)}}function pG(i,e){return Object.defineProperty?Object.defineProperty(i,"raw",{value:e}):i.raw=e,i}function mG(i){if(i&&i.__esModule)return i;var e={};if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&gb(e,i,t);return sCe(e,i),e}function gG(i){return i&&i.__esModule?i:{default:i}}function bG(i,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?i!==e||!r:!e.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(i):r?r.value:e.get(i)}function vG(i,e,t,r,n){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?i!==e||!n:!e.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?n.call(i,t):n?n.value=t:e.set(i,t),t}function _G(i,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof i=="function"?e===i:i.has(e)}function yG(i,e,t){if(e!=null){if(typeof e!="object"&&typeof e!="function")throw new TypeError("Object expected.");var r,n;if(t){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose],t&&(n=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");n&&(r=function(){try{n.call(this)}catch(s){return Promise.reject(s)}}),i.stack.push({value:e,dispose:r,async:t})}else t&&i.stack.push({async:!0});return e}function xG(i){function e(s){i.error=i.hasError?new oCe(s,i.error,"An error was suppressed during disposal."):s,i.hasError=!0}var t,r=0;function n(){for(;t=i.stack.pop();)try{if(!t.async&&r===1)return r=0,i.stack.push(t),Promise.resolve().then(n);if(t.dispose){var s=t.dispose.call(t.value);if(t.async)return r|=2,Promise.resolve(s).then(n,function(o){return e(o),n()})}else r|=1}catch(o){e(o)}if(r===1)return i.hasError?Promise.reject(i.error):Promise.resolve();if(i.hasError)throw i.error}return n()}var J3,pb,gb,sCe,oCe,aCe,ln=w(()=>{J3=function(i,e){return J3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},J3(i,e)};pb=function(){return pb=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},pb.apply(this,arguments)};gb=Object.create?function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}:function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]};sCe=Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e};oCe=typeof SuppressedError=="function"?SuppressedError:function(i,e,t){var r=new Error(t);return r.name="SuppressedError",r.error=i,r.suppressed=e,r};aCe={__extends:tG,__assign:pb,__rest:iG,__decorate:te,__param:rG,__metadata:nG,__awaiter:sG,__generator:oG,__createBinding:gb,__exportStar:aG,__values:mb,__read:Z3,__spread:lG,__spreadArrays:uG,__spreadArray:cG,__await:Nd,__asyncGenerator:dG,__asyncDelegator:hG,__asyncValues:fG,__makeTemplateOb
1424ject:pG,__importStar:mG,__importDefault:gG,__classPrivateFieldGet:bG,__classPrivateFieldSet:vG,__classPrivateFieldIn:_G,__addDisposableResource:yG,__disposeResources:xG}});var uCe,cCe,As,bb=w(()=>{uCe="0 0 calc((var(--elevation) * 0.225px) + 2px) rgba(0, 0, 0, calc(.11 * (2 - var(--background-luminance, 1))))",cCe="0 calc(var(--elevation) * 0.4px) calc((var(--elevation) * 0.9px)) rgba(0, 0, 0, calc(.13 * (2 - var(--background-luminance, 1))))",As=`box-shadow: ${uCe}, ${cCe};`});var vb,_b,wG,SG,yb,xb,wb,Q3=w(()=>{q();se();ye();Ee();bo();vb=B` 1425 ${xe("inline-flex")} :host { 1426 font-family: ${ke}; 1427 outline: none; 1428 font-size: ${Me}; 1429 line-height: ${Le}; 1430 height: calc(${_e} * 1px); 1431 min-width: calc(${_e} * 1px); 1432 background-color: ${Mt}; 1433 color: ${fe}; 1434 border-radius: calc(${me} * 1px); 1435 fill: currentcolor; 1436 cursor: pointer; 1437 margin: calc((${ve} + 2) * 1px); 1438 } 1439 1440 .control { 1441 background: transparent; 1442 height: inherit; 1443 flex-grow: 1; 1444 box-sizing: border-box; 1445 display: inline-flex; 1446 justify-content: center; 1447 align-items: center; 1448 padding: 0 calc((10 + (${Y} * 2 * ${Wi})) * 1px); 1449 white-space: nowrap; 1450 outline: none; 1451 text-decoration: none; 1452 border: calc(${he} * 1px) solid transparent; 1453 color: inherit; 1454 border-radius: inherit; 1455 fill: inherit; 1456 cursor: inherit; 1457 font-family: inherit; 1458 font-size: inherit; 1459 line-height: inherit; 1460 } 1461 1462 :host(:hover) { 1463 background-color: ${po}; 1464 } 1465 1466 :host(:active) { 1467 background-color: ${Dd}; 1468 } 1469 1470 :host([aria-pressed='true']) { 1471 box-shadow: inset 0px 0px 2px 2px ${Fd}; 1472 } 1473 1474 :host([minimal]) { 1475 --density: -4; 1476 } 1477 1478 :host([minimal]) .control { 1479 padding: 1px; 1480 } 1481 1482 /* prettier-ignore */ 1483 .control:${Z} { 1484 outline: calc(${ve} * 1px) solid ${HW}; 1485 outline-offset: 2px; 1486 -moz-outline-radius: 0px; 1487 } 1488 1489 .control::-moz-focus-inner { 1490 border: 0; 1491 } 1492 1493 .start, 1494 .end { 1495 display: flex; 1496 } 1497 1498 .control.icon-only { 1499 padding: 0; 1500 line-height: 0; 1501 } 1502 1503 ::slotted(svg) { 1504 ${""} width: 16px; 1505 height: 16px; 1506 pointer-events: none; 1507 } 1508 1509 .start { 1510 margin-inline-end: 11px; 1511 } 1512 1513 .end { 1514 margin-inline-start: 11px; 1515 } 1516`.withBehaviors(be(B` 1517 :host .control { 1518 background-color: ${L.ButtonFace}; 1519 border-color: ${L.ButtonText}; 1520 color: ${L.ButtonText}; 1521 fill: currentColor; 1522 } 1523 1524 :host(:hover) .control { 1525 forced-color-adjust: none; 1526 background-color: ${L.Highlight}; 1527 color: ${L.HighlightText}; 1528 } 1529 1530 /* prettier-ignore */ 1531 .control:${Z} { 1532 forced-color-adjust: none; 1533 background-color: ${L.Highlight}; 1534 outline-color: ${L.ButtonText}; 1535 color: ${L.HighlightText}; 1536 } 1537 1538 .control:hover, 1539 :host([appearance='outline']) .control:hover { 1540 border-color: ${L.ButtonText}; 1541 } 1542 1543 :host([href]) .control { 1544 border-color: ${L.LinkText}; 1545 color: ${L.LinkText}; 1546 } 1547 1548 :host([href]) .control:hover, 1549 :host([href]) .control:${Z} { 1550 forced-color-adjust: none; 1551 background: ${L.ButtonFace}; 1552 outline-color: ${L.LinkText}; 1553 color: ${L.LinkText}; 1554 fill: currentColor; 1555 } 1556 `)),_b=B` 1557 :host([appearance='accent']) { 1558 background: ${st}; 1559 color: ${Si}; 1560 } 1561 1562 :host([appearance='accent']:hover) { 1563 background: ${wi}; 1564 color: ${or}; 1565 } 1566 1567 :host([appearance='accent'][aria-pressed='true']) { 1568 box-shadow: inset 0px 0px 2px 2px ${fo}; 1569 } 1570 1571 :host([appearance='accent']:active) .control:active { 1572 background: ${Vt}; 1573 color: ${Li}; 1574 } 1575 1576 :host([appearance="accent"]) .control:${Z} { 1577 outline-color: ${Ne}; 1578 } 1579`.withBehaviors(be(B` 1580 :host([appearance='accent']) .control { 1581 forced-color-adjust: none; 1582 background: ${L.Highlight}; 1583 color: ${L.HighlightText}; 1584 } 1585 1586 :host([appearance='accent']) .control:hover, 1587 :host([appearance='accent']:active) .control:active { 1588 background: ${L.HighlightText}; 1589 border-color: ${L.Highlight}; 1590 color: ${L.Highlight}; 1591 } 1592 1593 :host([appearance="accent"]) .control:${Z} { 1594 outline-color: ${L.Highlight}; 1595 } 1596 1597 :host([appearance='accent'][href]) .control { 1598 background: ${L.LinkText}; 1599 color: ${L.HighlightText}; 1600 } 1601 1602 :host([appearance='accent'][href]) .control:hover { 1603 background: ${L.ButtonFace}; 1604 border-color: ${L.LinkText}; 1605 box-shadow: none; 1606 color: ${L.LinkText}; 1607 fill: currentColor; 1608 } 1609 1610 :host([appearance="accent"][href]) .control:${Z} { 1611 outline-color: ${L.HighlightText}; 1612 } 1613 `)),wG=B` 1614 :host([appearance='error']) { 1615 background: ${Dt}; 1616 color: ${Si}; 1617 } 1618 1619 :host([appearance='error']:hover) { 1620 background: ${ii}; 1621 color: ${or}; 1622 } 1623 1624 :host([appearance='error'][aria-pressed='true']) { 1625 box-shadow: inset 0px 0px 2px 2px ${WW}; 1626 } 1627 1628 :host([appearance='error']:active) .control:active { 1629 background: ${Ci}; 1630 color: ${Li}; 1631 } 1632 1633 :host([appearance="error"]) .control:${Z} { 1634 outline-color: ${Et}; 1635 } 1636`.withBehaviors(be(B` 1637 :host([appearance='error']) .control { 1638 forced-color-adjust: none; 1639 background: ${L.Highlight}; 1640 color: ${L.HighlightText}; 1641 } 1642 1643 :host([appearance='error']) .control:hover, 1644 :host([appearance='error']:active) .control:active { 1645 background: ${L.HighlightText}; 1646 border-color: ${L.Highlight}; 1647 color: ${L.Highlight}; 1648 } 1649 1650 :host([appearance="error"]) .control:${Z} { 1651 outline-color: ${L.Highlight}; 1652 } 1653 1654 :host([appearance='error'][href]) .control { 1655 background: ${L.LinkText}; 1656 color: ${L.HighlightText}; 1657 } 1658 1659 :host([appearance='error'][href]) .control:hover { 1660 background: ${L.ButtonFace}; 1661 border-color: ${L.LinkText}; 1662 box-shadow: none; 1663 color: ${L.LinkText}; 1664 fill: currentColor; 1665 } 1666 1667 :host([appearance="error"][href]) .control:${Z} { 1668 outline-color: ${L.HighlightText}; 1669 } 1670 `)),SG=B` 1671 :host([appearance='hypertext']) { 1672 font-size: inherit; 1673 line-height: inherit; 1674 height: auto; 1675 min-width: 0; 1676 background: transparent; 1677 } 1678 1679 :host([appearance='hypertext']) .control { 1680 display: inline; 1681 padding: 0; 1682 border: none; 1683 box-shadow: none; 1684 border-radius: 0; 1685 line-height: 1; 1686 } 1687 1688 :host a.control:not(:link) { 1689 background-color: transparent; 1690 cursor: default; 1691 } 1692 :host([appearance='hypertext']) .control:link, 1693 :host([appearance='hypertext']) .control:visited { 1694 background: transparent; 1695 color: ${ti}; 1696 border-bottom: calc(${he} * 1px) solid ${ti}; 1697 } 1698 1699 :host([appearance='hypertext']:hover), 1700 :host([appearance='hypertext']) .control:hover { 1701 background: transparent; 1702 border-bottom-color: ${ua}; 1703 } 1704 1705 :host([appearance='hypertext']:active), 1706 :host([appearance='hypertext']) .control:active { 1707 background: transparent; 1708 border-bottom-color: ${fo}; 1709 } 1710 1711 :host([appearance="hypertext"]) .control:${Z} { 1712 outline-color: transparent; 1713 border-bottom: calc(${ve} * 1px) solid ${$i}; 1714 margin-bottom: calc(calc(${he} - ${ve}) * 1px); 1715 } 1716`.withBehaviors(be(B` 1717 :host([appearance='hypertext']:hover) { 1718 background-color: ${L.ButtonFace}; 1719 color: ${L.ButtonText}; 1720 } 1721 :host([appearance="hypertext"][href]) .control:hover, 1722 :host([appearance="hypertext"][href]) .control:active, 1723 :host([appearance="hypertext"][href]) .control:${Z} { 1724 color: ${L.LinkText}; 1725 border-bottom-color: ${L.LinkText}; 1726 box-shadow: none; 1727 } 1728 `)),yb=B` 1729 :host([appearance='lightweight']) { 1730 background: transparent; 1731 color: ${ti}; 1732 } 1733 1734 :host([appearance='lightweight']) .control { 1735 padding: 0; 1736 height: initial; 1737 border: none; 1738 box-shadow: none; 1739 border-radius: 0; 1740 } 1741 1742 :host([appearance='lightweight']:hover) { 1743 background: transparent; 1744 color: ${ua}; 1745 } 1746 1747 :host([appearance='lightweight']:active) { 1748 background: transparent; 1749 color: ${fo}; 1750 } 1751 1752 :host([appearance='lightweight']) .content { 1753 position: relative; 1754 } 1755 1756 :host([appearance='lightweight']) .content::before { 1757 content: ''; 1758 display: block; 1759 height: calc(${he} * 1px); 1760 position: absolute; 1761 top: calc(1em + 4px); 1762 width: 100%; 1763 } 1764 1765 :host([appearance='lightweight']:hover) .content::before { 1766 background: ${ua}; 1767 } 1768 1769 :host([appearance='lightweight']:active) .content::before { 1770 background: ${fo}; 1771 } 1772 1773 :host([appearance="lightweight"]) .control:${Z} { 1774 outline-color: transparent; 1775 } 1776 1777 :host([appearance="lightweight"]) .control:${Z} .content::before { 1778 background: ${fe}; 1779 height: calc(${ve} * 1px); 1780 } 1781`.withBehaviors(be(B` 1782 :host([appearance="lightweight"]) .control:hover, 1783 :host([appearance="lightweight"]) .control:${Z} { 1784 forced-color-adjust: none; 1785 background: ${L.ButtonFace}; 1786 color: ${L.Highlight}; 1787 } 1788 :host([appearance="lightweight"]) .control:hover .content::before, 1789 :host([appearance="lightweight"]) .control:${Z} .content::before { 1790 background: ${L.Highlight}; 1791 } 1792 1793 :host([appearance="lightweight"][href]) .control:hover, 1794 :host([appearance="lightweight"][href]) .control:${Z} { 1795 background: ${L.ButtonFace}; 1796 box-shadow: none; 1797 color: ${L.LinkText}; 1798 } 1799 1800 :host([appearance="lightweight"][href]) .control:hover .content::before, 1801 :host([appearance="lightweight"][href]) .control:${Z} .content::before { 1802 background: ${L.LinkText}; 1803 } 1804 `)),xb=B` 1805 :host([appearance='outline']) { 1806 background: transparent; 1807 border-color: ${st}; 1808 } 1809 1810 :host([appearance='outline']:hover) { 1811 border-color: ${wi}; 1812 } 1813 1814 :host([appearance='outline']:active) { 1815 border-color: ${Vt}; 1816 } 1817 1818 :host([appearance='outline']) .control { 1819 border-color: inherit; 1820 } 1821 1822 :host([appearance="outline"]) .control:${Z} { 1823 outline-color: ${Ne}; 1824 } 1825`.withBehaviors(be(B` 1826 :host([appearance='outline']) .control { 1827 border-color: ${L.ButtonText}; 1828 } 1829 :host([appearance="outline"]) .control:${Z} { 1830 forced-color-adjust: none; 1831 background-color: ${L.Highlight}; 1832 outline-color: ${L.ButtonText}; 1833 color: ${L.HighlightText}; 1834 fill: currentColor; 1835 } 1836 :host([appearance='outline'][href]) .control { 1837 background: ${L.ButtonFace}; 1838 border-color: ${L.LinkText}; 1839 color: ${L.LinkText}; 1840 fill: currentColor; 1841 } 1842 :host([appearance="outline"][href]) .control:hover, 1843 :host([appearance="outline"][href]) .control:${Z} { 1844 forced-color-adjust: none; 1845 outline-color: ${L.LinkText}; 1846 } 1847 `)),wb=B` 1848 :host([appearance='stealth']) { 1849 background: transparent; 1850 } 1851 1852 :host([appearance='stealth']:hover) { 1853 background: ${on}; 1854 } 1855 1856 :host([appearance='stealth']:active) { 1857 background: ${an}; 1858 } 1859 1860 :host([appearance='stealth']) .control:${Z} { 1861 outline-color: ${Ne}; 1862 } 1863`.withBehaviors(be(B` 1864 :host([appearance='stealth']), 1865 :host([appearance='stealth']) .control { 1866 forced-color-adjust: none; 1867 background: ${L.ButtonFace}; 1868 border-color: transparent; 1869 color: ${L.ButtonText}; 1870 fill: currentColor; 1871 } 1872 1873 :host([appearance='stealth']:hover) .control { 1874 background: ${L.Highlight}; 1875 border-color: ${L.Highlight}; 1876 color: ${L.HighlightText}; 1877 fill: currentColor; 1878 } 1879 1880 :host([appearance="stealth"]:${Z}) .control { 1881 outline-color: ${L.Highlight}; 1882 color: ${L.HighlightText}; 1883 fill: currentColor; 1884 } 1885 1886 :host([appearance='stealth'][href]) .control { 1887 color: ${L.LinkText}; 1888 } 1889 1890 :host([appearance="stealth"][href]:hover) .control, 1891 :host([appearance="stealth"][href]:${Z}) .control { 1892 background: ${L.LinkText}; 1893 border-color: ${L.LinkText}; 1894 color: ${L.HighlightText}; 1895 fill: currentColor; 1896 } 1897 1898 :host([appearance="stealth"][href]:${Z}) .control { 1899 forced-color-adjust: none; 1900 box-shadow: 0 0 0 1px ${L.LinkText}; 1901 } 1902 `))});var El,CG=w(()=>{q();se();ye();Ee();bo();El=B`
1903 ${xe("inline-block")} :host { 1904 font-family: ${ke}; 1905 outline: none; 1906 user-select: none; 1907 } 1908 1909 .root { 1910 box-sizing: border-box; 1911 position: relative; 1912 display: flex; 1913 flex-direction: row; 1914 color: ${fe}; 1915 background: ${sn}; 1916 border-radius: calc(${me} * 1px); 1917 border: calc(${he} * 1px) solid ${Ld}; 1918 height: calc(${_e} * 1px); 1919 } 1920 1921 :host([aria-invalid='true']) .root { 1922 border-color: ${Dt}; 1923 } 1924 1925 .control { 1926 -webkit-appearance: none; 1927 font: inherit; 1928 background: transparent; 1929 border: 0; 1930 color: inherit; 1931 height: calc(100% - 4px); 1932 width: 100%; 1933 margin-top: auto; 1934 margin-bottom: auto; 1935 border: none; 1936 padding: 0 calc(${Y} * 2px + 1px); 1937 font-size: ${Me}; 1938 line-height: ${Le}; 1939 } 1940 1941 .control:hover, 1942 .control:${Z}, 1943 .control:disabled, 1944 .control:active { 1945 outline: none; 1946 } 1947 1948 .label { 1949 display: block; 1950 color: ${fe}; 1951 cursor: pointer; 1952 font-size: ${Me}; 1953 line-height: ${Le}; 1954 margin-bottom: 4px; 1955 } 1956 1957 .label__hidden { 1958 display: none; 1959 visibility: hidden; 1960 } 1961 1962 .start, 1963 .end { 1964 margin: auto; 1965 fill: currentcolor; 1966 } 1967 1968 ::slotted(svg) { 1969 /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ 1970 width: 16px; 1971 height: 16px; 1972 } 1973 1974 .start { 1975 margin-inline-start: 11px; 1976 } 1977 1978 .end { 1979 margin-inline-end: 11px; 1980 } 1981 1982 :host(:hover:not([disabled])) .root { 1983 background: ${yr}; 1984 border-color: ${$d}; 1985 } 1986 1987 :host([aria-invalid='true']:hover:not([disabled])) .root { 1988 border-color: ${ii}; 1989 } 1990 1991 :host(:active:not([disabled])) .root { 1992 background: ${yr}; 1993 border-color: ${Fd}; 1994 } 1995 1996 :host([aria-invalid='true']:active:not([disabled])) .root { 1997 border-color: ${Ci}; 1998 } 1999 2000 :host(:focus-within:not([disabled])) .root { 2001 border-color: ${Ne}; 2002 box-shadow: 0 0 0 calc((${ve} - ${he}) * 1px) 2003 ${Ne}; 2004 } 2005 2006 :host([aria-invalid='true']:focus-within:not([disabled])) .root { 2007 border-color: ${Et}; 2008 box-shadow: 0 0 0 calc((${ve} - ${he}) * 1px) 2009 ${Et}; 2010 } 2011 2012 :host([appearance='filled']) .root { 2013 background: ${Mt}; 2014 } 2015 2016 :host([appearance='filled']:hover:not([disabled])) .root { 2017 background: ${po}; 2018 } 2019 2020 :host([disabled]) .label, 2021 :host([readonly]) .label, 2022 :host([readonly]) .control, 2023 :host([disabled]) .control { 2024 cursor: ${dt}; 2025 } 2026 2027 :host([disabled]) { 2028 opacity: ${_t}; 2029 } 2030 2031 :host([disabled]) .control { 2032 border-color: ${wr}; 2033 } 2034`.withBehaviors(be(B` 2035 .root, 2036 :host([appearance='filled']) .root { 2037 forced-color-adjust: none; 2038 background: ${L.Field}; 2039 border-color: ${L.FieldText}; 2040 } 2041 :host([aria-invalid='true']) .root { 2042 border-style: dashed; 2043 } 2044 :host(:hover:not([disabled])) .root, 2045 :host([appearance='filled']:hover:not([disabled])) .root, 2046 :host([appearance='filled']:hover) .root { 2047 background: ${L.Field}; 2048 border-color: ${L.Highlight}; 2049 } 2050 .start, 2051 .end { 2052 fill: currentcolor; 2053 } 2054 :host([disabled]) { 2055 opacity: 1; 2056 } 2057 :host([disabled]) .root, 2058 :host([appearance='filled']:hover[disabled]) .root { 2059 border-color: ${L.GrayText}; 2060 background: ${L.Field}; 2061 } 2062 :host(:focus-within:enabled) .root { 2063 border-color: ${L.Highlight}; 2064 box-shadow: 0 0 0 calc((${ve} - ${he}) * 1px) 2065 ${L.Highlight}; 2066 } 2067 input::placeholder { 2068 color: ${L.GrayText}; 2069 } 2070 `))});var IG=w(()=>{Q3();CG()});var es,e6,Sb=w(()=>{Ee();es=class{constructor(e,t){this.cache=new WeakMap,this.ltr=e,this.rtl=t}bind(e){this.attach(e)}unbind(e){let t=this.cache.get(e);t&&Ad.unsubscribe(t)}attach(e){let t=this.cache.get(e)||new e6(this.ltr,this.rtl,e),r=Ad.getValueFor(e);Ad.subscribe(t),t.attach(r),this.cache.set(e,t)}},e6=class{constructor(e,t,r){this.ltr=e,this.rtl=t,this.source=r,this.attached=null}handleChange({target:e,token:t}){this.attach(t.getValueFor(e))}attach(e){this.attached!==this[e]&&(this.attached!==null&&this.source.$fastController.removeStyles(this.attached),this.attached=this[e],this.attached!==null&&this.source.$fastController.addStyles(this.attached))}}});var Ut=w(()=>{bb();IG();bo();Sb()});function ts(i,e){return new V1("appearance",i,e)}var t6=w(()=>{se()});var MG,EG=w(()=>{q();Ut();t6();MG=(i,e)=>B` 2071 ${vb} 2072 `.withBehaviors(ts("accent",_b),ts("hypertext",SG),ts("lightweight",yb),ts("outline",xb),ts("stealth",wb))});
2072var Cb,i6,r6=w(()=>{ln();q();se();EG();Cb=class extends rr{appearanceChanged(e,t){this.$fastController.isConnected&&(this.classList.remove(e),this.classList.add(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="neutral")}defaultSlottedContentChanged(e,t){let r=this.defaultSlottedContent.filter(n=>n.nodeType===Node.ELEMENT_NODE);r.length===1&&r[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}};te([O],Cb.prototype,"appearance",void 0);i6=Cb.compose({baseName:"anchor",baseClass:rr,template:f1,styles:MG,shadowOptions:{delegatesFocus:!0}})});var TG,kG=w(()=>{q();TG=(i,e)=>B` 2073 :host { 2074 contain: layout; 2075 display: block; 2076 } 2077`});var n6,s6=w(()=>{se();kG();n6=Ue.compose({baseName:"anchored-region",template:Rq,styles:TG})});var dCe,hCe,AG,RG=w(()=>{q();se();Ee();Sb();dCe=(i,e)=>B` 2078 ::slotted(${i.tagFor(Cs)}) { 2079 left: 0; 2080 } 2081`,hCe=(i,e)=>B` 2082 ::slotted(${i.tagFor(Cs)}) { 2083 right: 0; 2084 } 2085`,AG=(i,e)=>B` 2086 ${xe("flex")} :host { 2087 position: relative; 2088 height: var(--avatar-size, var(--avatar-size-default)); 2089 width: var(--avatar-size, var(--avatar-size-default)); 2090 --avatar-size-default: calc( 2091 ( 2092 (${sa} + ${Wi}) * ${Y} + 2093 ((${Y} * 8) - 40) 2094 ) * 1px 2095 ); 2096 --avatar-text-size: ${Me}; 2097 --avatar-text-ratio: ${Y}; 2098 } 2099 2100 .link { 2101 text-decoration: none; 2102 color: ${fe}; 2103 display: flex; 2104 flex-direction: row; 2105 justify-content: center; 2106 align-items: center; 2107 min-width: 100%; 2108 } 2109 2110 .square { 2111 border-radius: calc(${me} * 1px); 2112 min-width: 100%; 2113 overflow: hidden; 2114 } 2115 2116 .circle { 2117 border-radius: 100%; 2118 min-width: 100%; 2119 overflow: hidden; 2120 } 2121 2122 .backplate { 2123 position: relative; 2124 display: flex; 2125 background-color: ${st}; 2126 } 2127 2128 .media, 2129 ::slotted(img) { 2130 max-width: 100%; 2131 position: absolute; 2132 display: block; 2133 } 2134 2135 .content { 2136 font-size: calc( 2137 ( 2138 var(--avatar-text-size) + 2139 var(--avatar-size, var(--avatar-size-default)) 2140 ) / var(--avatar-text-ratio) 2141 ); 2142 line-height: var(--avatar-size, var(--avatar-size-default)); 2143 display: block; 2144 min-height: var(--avatar-size, var(--avatar-size-default)); 2145 } 2146 2147 ::slotted(${i.tagFor(Cs)}) { 2148 position: absolute; 2149 display: block; 2150 } 2151 `.withBehaviors(new es(hCe(i,e),dCe(i,e)))});var wp,fCe,o6,a6=w(()=>{ln();q();se();RG();wp=class extends Qo{};te([O({attribute:"src"})],wp.prototype,"imgSrc",void 0);te([O],wp.prototype,"alt",void 0);fCe=H` 2152 ${Ke(i=>i.imgSrc,H` 2153 <img 2154 src="${i=>i.imgSrc}" 2155 alt="${i=>i.alt}" 2156 slot="media" 2157 class="media" 2158 part="media" 2159 /> 2160 `)} 2161`,o6=wp.compose({baseName:"avatar",baseClass:Qo,template:Pq,styles:AG,media:fCe,shadowOptions:{delegatesFocus:!0}})});var DG,OG=w(()=>{q();se();Ee();Ut();DG=(i,e)=>B` 2162 ${xe("inline-block")} :host { 2163 box-sizing: border-box; 2164 font-family: ${ke}; 2165 font-size: ${Cl}; 2166 line-height: ${Il}; 2167 } 2168 2169 .control { 2170 border-radius: calc(${me} * 1px); 2171 padding: calc(((${Y} * 0.5) - ${he}) * 1px) 2172 calc((${Y} - ${he}) * 1px); 2173 color: ${fe}; 2174 font-weight: 600; 2175 border: calc(${he} * 1px) solid transparent; 2176 background-color: ${Mt}; 2177 } 2178 2179 .control[style] { 2180 font-weight: 400; 2181 } 2182 2183 :host([circular]) .control { 2184 border-radius: 100px; 2185 padding: 0 calc(${Y} * 1px); 2186 height: calc((${_e} - (${Y} * 3)) * 1px); 2187 min-width: calc((${_e} - (${Y} * 3)) * 1px); 2188 display: flex; 2189 align-items: center; 2190 justify-content: center; 2191 box-sizing: border-box; 2192 } 2193`});var l6,u6=w(()=>{se();OG();l6=Cs.compose({baseName:"badge",template:qq,styles:DG})});var LG,$G=w(()=>{q();se();Ee();LG=(i,e)=>B` 2194 ${xe("inline-block")} :host { 2195 box-sizing: border-box; 2196 font-family: ${ke}; 2197 font-size: ${Me}; 2198 line-height: ${Le}; 2199 } 2200 2201 .list { 2202 display: flex; 2203 flex-wrap: wrap; 2204 } 2205`});var c6,d6=w(()=>{se();$G();c6=np.compose({baseName:"breadcrumb",template:Kq,styles:LG})});var FG,PG=w(()=>{q();se();ye();Ee();Ut();FG=(i,e)=>B`
2206 ${xe("inline-flex")} :host { 2207 background: transparent; 2208 box-sizing: border-box; 2209 font-family: ${ke}; 2210 font-size: ${Me}; 2211 fill: currentColor; 2212 line-height: ${Le}; 2213 min-width: calc(${_e} * 1px); 2214 outline: none; 2215 color: ${fe} 2216 } 2217 2218 .listitem { 2219 display: flex; 2220 align-items: center; 2221 width: max-content; 2222 } 2223 2224 .separator { 2225 margin: 0 6px; 2226 display: flex; 2227 } 2228 2229 .control { 2230 align-items: center; 2231 box-sizing: border-box; 2232 color: ${ti}; 2233 cursor: pointer; 2234 display: flex; 2235 fill: inherit; 2236 outline: none; 2237 text-decoration: none; 2238 white-space: nowrap; 2239 } 2240 2241 .control:hover { 2242 color: ${ua}; 2243 } 2244 2245 .control:active { 2246 color: ${fo}; 2247 } 2248 2249 .control .content { 2250 position: relative; 2251 } 2252 2253 .control .content::before { 2254 content: ""; 2255 display: block; 2256 height: calc(${he} * 1px); 2257 left: 0; 2258 position: absolute; 2259 right: 0; 2260 top: calc(1em + 4px); 2261 width: 100%; 2262 } 2263 2264 .control:hover .content::before { 2265 background: ${ua}; 2266 } 2267 2268 .control:active .content::before { 2269 background: ${fo}; 2270 } 2271 2272 .control:${Z} .content::before { 2273 background: ${qW}; 2274 height: calc(${ve} * 1px); 2275 } 2276 2277 .control:not([href]) { 2278 color: ${fe}; 2279 cursor: default; 2280 } 2281 2282 .control:not([href]) .content::before { 2283 background: none; 2284 } 2285 2286 .start, 2287 .end { 2288 display: flex; 2289 } 2290 2291 ::slotted(svg) { 2292 /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ 2293 width: 16px; 2294 height: 16px; 2295 } 2296 2297 .start { 2298 margin-inline-end: 6px; 2299 } 2300 2301 .end { 2302 margin-inline-start: 6px; 2303 } 2304`.withBehaviors(be(B` 2305 .control:hover .content::before, 2306 .control:${Z} .content::before { 2307 background: ${L.LinkText}; 2308 } 2309 .start, 2310 .end { 2311 fill: ${L.ButtonText}; 2312 } 2313 `))});var h6,f6=w(()=>{se();PG();h6=ea.compose({baseName:"breadcrumb-item",template:Uq,styles:FG,separator:"/",shadowOptions:{delegatesFocus:!0}})});var NG,zG=w(()=>{q();se();ye();Ee();Q3();t6();NG=(i,e)=>B` 2314 :host([disabled]), 2315 :host([disabled]:hover), 2316 :host([disabled]:active) { 2317 opacity: ${_t}; 2318 background-color: ${Mt}; 2319 cursor: ${dt}; 2320 } 2321 2322 ${vb} 2323 `.withBehaviors(be(B` 2324 :host([disabled]), 2325 :host([disabled]) .control, 2326 :host([disabled]:hover), 2327 :host([disabled]:active) { 2328 forced-color-adjust: none; 2329 background-color: ${L.ButtonFace}; 2330 outline-color: ${L.GrayText}; 2331 color: ${L.GrayText}; 2332 cursor: ${dt}; 2333 opacity: 1; 2334 } 2335 `),ts("accent",B` 2336 :host([appearance='accent'][disabled]), 2337 :host([appearance='accent'][disabled]:hover), 2338 :host([appearance='accent'][disabled]:active) { 2339 background: ${st}; 2340 } 2341 2342 ${_b} 2343 `.withBehaviors(be(B` 2344 :host([appearance='accent'][disabled]) .control, 2345 :host([appearance='accent'][disabled]) .control:hover { 2346 background: ${L.ButtonFace}; 2347 border-color: ${L.GrayText}; 2348 color: ${L.GrayText}; 2349 } 2350 `))),ts("error",B` 2351 :host([appearance='error'][disabled]), 2352 :host([appearance='error'][disabled]:hover), 2353 :host([appearance='error'][disabled]:active) { 2354 background: ${Dt}; 2355 } 2356 2357 ${wG} 2358 `.withBehaviors(be(B` 2359 :host([appearance='error'][disabled]) .control, 2360 :host([appearance='error'][disabled]) .control:hover { 2361 background: ${L.ButtonFace}; 2362 border-color: ${L.GrayText}; 2363 color: ${L.GrayText}; 2364 } 2365 `))),ts("lightweight",B` 2366 :host([appearance='lightweight'][disabled]:hover), 2367 :host([appearance='lightweight'][disabled]:active) { 2368 background-color: transparent; 2369 color: ${ti}; 2370 } 2371 2372 :host([appearance='lightweight'][disabled]) .content::before, 2373 :host([appearance='lightweight'][disabled]:hover) .content::before, 2374 :host([appearance='lightweight'][disabled]:active) .content::before { 2375 background: transparent; 2376 } 2377 2378 ${yb} 2379 `.withBehaviors(be(B` 2380 :host([appearance='lightweight'].disabled) .control { 2381 forced-color-adjust: none; 2382 color: ${L.GrayText}; 2383 } 2384 2385 :host([appearance='lightweight'].disabled) 2386 .control:hover 2387 .content::before { 2388 background: none; 2389 } 2390 `))),ts("outline",B` 2391 :host([appearance='outline'][disabled]), 2392 :host([appearance='outline'][disabled]:hover), 2393 :host([appearance='outline'][disabled]:active) { 2394 background: transparent; 2395 border-color: ${st}; 2396 } 2397 2398 ${xb} 2399 `.withBehaviors(be(B` 2400 :host([appearance='outline'][disabled]) .control { 2401 border-color: ${L.GrayText}; 2402 } 2403 `))),ts("stealth",B` 2404 ${wb} 2405 `.withBehaviors(be(B` 2406 :host([appearance='stealth'][disabled]) { 2407 background: ${L.ButtonFace}; 2408 } 2409 2410 :host([appearance='stealth'][disabled]) .control { 2411 background: ${L.ButtonFace}; 2412 border-color: transparent; 2413 color: ${L.GrayText}; 2414 } 2415 `))))});var Sp,Cp,p6=w(()=>{ln();
2415q();se();zG();Sp=class extends Fr{constructor(){super(...arguments),this.appearance="neutral"}defaultSlottedContentChanged(e,t){let r=this.defaultSlottedContent.filter(n=>n.nodeType===Node.ELEMENT_NODE);r.length===1&&(r[0]instanceof SVGElement||r[0].classList.contains("fa")||r[0].classList.contains("fas"))?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}};te([O],Sp.prototype,"appearance",void 0);te([O({attribute:"minimal",mode:"boolean"})],Sp.prototype,"minimal",void 0);Cp=Sp.compose({baseName:"button",baseClass:Fr,template:Zq,styles:NG,shadowOptions:{delegatesFocus:!0}})});var BG,qG=w(()=>{q();se();ye();Ee();Ut();BG=(i,e)=>B` 2416 ${xe("block")} :host { 2417 --elevation: 4; 2418 display: block; 2419 contain: content; 2420 height: var(--card-height, 100%); 2421 width: var(--card-width, 100%); 2422 box-sizing: border-box; 2423 background: ${Pe}; 2424 border-radius: calc(${me} * 1px); 2425 ${As} 2426 } 2427 `.withBehaviors(be(B` 2428 :host { 2429 forced-color-adjust: none; 2430 background: ${L.Canvas}; 2431 box-shadow: 0 0 0 1px ${L.CanvasText}; 2432 } 2433 `))});var m6,g6,b6=w(()=>{se();Ee();qG();m6=class extends op{connectedCallback(){super.connectedCallback();let e=ia(this);e&&Pe.setValueFor(this,t=>yp.getValueFor(t).evaluate(t,Pe.getValueFor(e)))}},g6=m6.compose({baseName:"card",baseClass:op,template:vH,styles:BG})});var HG,jG=w(()=>{q();se();ye();Ee();Ut();HG=(i,e)=>B` 2434 ${xe("inline-flex")} :host { 2435 align-items: center; 2436 outline: none; 2437 margin: calc(${Y} * 1px) 0; 2438 /* Chromium likes to select label text or the default slot when the checkbox is 2439 clicked. Maybe there is a better solution here? */ 2440 user-select: none; 2441 } 2442 2443 .control { 2444 position: relative; 2445 width: calc((${_e} / 2 + ${Y}) * 1px); 2446 height: calc((${_e} / 2 + ${Y}) * 1px); 2447 box-sizing: border-box; 2448 border-radius: calc(${me} * 1px); 2449 border: calc(${he} * 1px) solid ${wr}; 2450 background: ${sn}; 2451 outline: none; 2452 cursor: pointer; 2453 } 2454 2455 :host([aria-invalid='true']) .control { 2456 border-color: ${Dt}; 2457 } 2458 2459 .label { 2460 font-family: ${ke}; 2461 color: ${fe}; 2462 /* Need to discuss with Brian how HorizontalSpacingNumber can work. 2463 https://github.com/microsoft/fast/issues/2766 */ 2464 padding-inline-start: calc(${Y} * 2px + 2px); 2465 margin-inline-end: calc(${Y} * 2px + 2px); 2466 cursor: pointer; 2467 font-size: ${Me}; 2468 line-height: ${Le}; 2469 } 2470 2471 .label__hidden { 2472 display: none; 2473 visibility: hidden; 2474 } 2475 2476 .checked-indicator { 2477 width: 100%; 2478 height: 100%; 2479 display: block; 2480 fill: ${Si}; 2481 opacity: 0; 2482 pointer-events: none; 2483 } 2484 2485 .indeterminate-indicator { 2486 border-radius: calc(${me} * 1px); 2487 background: ${Si}; 2488 position: absolute; 2489 top: 50%; 2490 left: 50%; 2491 width: 50%; 2492 height: 50%; 2493 transform: translate(-50%, -50%); 2494 opacity: 0; 2495 } 2496 2497 :host(:not([disabled])) .control:hover { 2498 background: ${yr}; 2499 border-color: ${ha}; 2500 } 2501 2502 :host(:not([disabled])) .control:active { 2503 background: ${mo}; 2504 border-color: ${Pd}; 2505 } 2506 2507 :host([aria-invalid='true']:not([disabled])) .control:hover { 2508 border-color: ${ii}; 2509 } 2510 2511 :host([aria-invalid='true']:not([disabled])) .control:active { 2512 border-color: ${Ci}; 2513 } 2514 2515 :host(:${Z}) .control { 2516 outline: calc(${ve} * 1px) solid ${Ne}; 2517 outline-offset: 2px; 2518 } 2519 2520 :host([aria-invalid='true']:${Z}) .control { 2521 outline-color: ${Et}; 2522 } 2523 2524 :host([aria-checked='true']) .control { 2525 background: ${st}; 2526 border: calc(${he} * 1px) solid ${st}; 2527 } 2528 2529 :host([aria-checked='true']:not([disabled])) .control:hover { 2530 background: ${wi}; 2531 border: calc(${he} * 1px) solid ${wi}; 2532 } 2533 2534 :host([aria-invalid='true'][aria-checked='true']) .control { 2535 background-color: ${Dt}; 2536 border-color: ${Dt}; 2537 } 2538 2539 :host([aria-invalid='true'][aria-checked='true']:not([disabled])) 2540 .control:hover { 2541 background-color: ${ii}; 2542 border-color: ${ii}; 2543 } 2544 2545 :host([aria-checked='true']:not([disabled])) 2546 .control:hover 2547 .checked-indicator { 2548 fill: ${or}; 2549 } 2550 2551 :host([aria-checked='true']:not([disabled])) 2552 .control:hover 2553 .indeterminate-indicator { 2554 background: ${or}; 2555 } 2556 2557 :host([aria-checked='true']:not([disabled])) .control:active { 2558 background: ${Vt}; 2559 border: calc(${he} * 1px) solid ${Vt}; 2560 } 2561 2562 :host([aria-invalid='true'][aria-checked='true']:not([disabled])) 2563 .control:active { 2564 background-color: ${Ci}; 2565 border-color: ${Ci}; 2566 } 2567 2568 :host([aria-checked='true']:not([disabled])) 2569 .control:active 2570 .checked-indicator { 2571 fill: ${Li}; 2572 } 2573 2574 :host([aria-checked='true']:not([disabled])) 2575 .control:active 2576 .indeterminate-indicator { 2577 background: ${Li}; 2578 } 2579 2580 :host([aria-checked="true"]:${Z}:not([disabled])) .control { 2581 outline: calc(${ve} * 1px) solid ${Ne}; 2582 outline-offset: 2px; 2583 } 2584 2585 :host([aria-invalid='true'][aria-checked="true"]:${Z}:not([disabled])) .control { 2586 outline-color: ${Et}; 2587 } 2588 2589 :host([disabled]) .label, 2590 :host([readonly]) .label, 2591 :host([readonly]) .control, 2592 :host([disabled]) .control { 2593 cursor: ${dt}; 2594 } 2595 2596 :host([aria-checked='true']:not(.indeterminate)) .checked-indicator, 2597 :host(.indeterminate) .indeterminate-indicator { 2598 opacity: 1; 2599 } 2600 2601 :host([disabled]) { 2602 opacity: ${_t}; 2603 } 2604 `.withBehaviors(be(B` 2605 .control { 2606 forced-color-adjust: none; 2607 border-color: ${L.FieldText}; 2608 background: ${L.Field}; 2609 } 2610 :host([aria-invalid='true']) .control { 2611 border-style: dashed; 2612 } 2613 .checked-indicator { 2614 fill: ${L.FieldText}; 2615 } 2616 .indeterminate-indicator { 2617 background: ${L.FieldText}; 2618 } 2619 :host(:not([disabled])) .control:hover, 2620 .control:active { 2621 border-color: ${L.Highlight}; 2622 background: ${L.Field}; 2623 } 2624 :host(:${Z}) .control { 2625 outline: calc(${ve} * 1px) solid ${L.FieldText}; 2626 outline-offset: 2px; 2627 } 2628 :host([aria-checked="true"]:${Z}:not([disabled])) .control { 2629 outline: calc(${ve} * 1px) solid ${L.FieldText}; 2630 outline-offset: 2px; 2631 } 2632 :host([aria-checked='true']) .control { 2633 background: ${L.Highlight}; 2634 border-color: ${L.Highlight}; 2635 } 2636 :host([aria-checked='true']:not([disabled])) .control:hover, 2637 .control:active { 2638 border-color: ${L.Highlight}; 2639 background: ${L.HighlightText}; 2640 } 2641 :host([aria-checked='true']) .checked-indicator { 2642 fill: ${L.HighlightText}; 2643 } 2644 :host([aria-checked='true']:not([disabled])) 2645 .control:hover 2646 .checked-indicator { 2647 fill: ${L.Highlight}; 2648 } 2649 :host([aria-checked='true']) .indeterminate-indicator { 2650 background: ${L.HighlightText}; 2651 } 2652 :host([aria-checked='true']) .control:hover .indeterminate-indicator { 2653 background: ${L.Highlight}; 2654 } 2655 :host([disabled]) { 2656 opacity: 1; 2657 } 2658 :host([disabled]) .control { 2659 forced-color-adjust: none; 2660 border-color: ${L.GrayText}; 2661 background: ${L.Field}; 2662 } 2663 :host([disabled]) .indeterminate-indicator, 2664 :host([aria-checked='true'][disabled]) 2665 .control:hover 2666 .indeterminate-indicator { 2667 forced-color-adjust: none; 2668 background: ${L.GrayText}; 2669 } 2670 :host([disabled]) .checked-indicator, 2671 :host([aria-checked='true'][disabled]) .control:hover .checked-indicator { 2672 forced-color-adjust: none; 2673 fill: ${L.GrayText}; 2674 } 2675 `))});var pCe,v6,_6,y6=w(()=>{se();jG();q();pCe=(i,e)=>H` 2676 <template 2677 role="checkbox" 2678 aria-checked="${t=>t.checked}" 2679 aria-required="${t=>t.required}" 2680 aria-disabled="${t=>t.disabled}" 2681 aria-readonly="${t=>t.readOnly}" 2682 tabindex="${t=>t.disabled?null:0}" 2683 @keypress="${(t,r)=>t.keypressHandler(r.event)}" 2684 @click="${(t,r)=>t.clickHandler(r.event)}" 2685 > 2686 <div part="control" class="control"> 2687 <slot name="checked-indicator"> 2688 ${e.checkedIndicator||""} 2689 </slot> 2690 <slot name="indeterminate-indicator"> 2691 ${e.indeterminateIndicator||""} 2692 </slot> 2693 </div> 2694 <label 2695 part="label" 2696 class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}" 2697 > 2698 <slot ${Re("defaultSlottedNodes")}></slot> 2699 </label> 2700 </template> 2701`,v6=class extends ml{indeterminateChanged(e,t){this.indeterminate?this.classList.add("indeterminate"):this.classList.remove("indeterminate")}},_6=v6.compose({baseName:"checkbox",baseClass:ml,template:pCe,styles:HG,checkedIndicator:` 2702 <svg 2703 part="checked-indicator" 2704 class="checked-indicator"
2705 viewBox="0 0 20 20" 2706 xmlns="http://www.w3.org/2000/svg" 2707 > 2708 <path 2709 fill-rule="evenodd" 2710 clip-rule="evenodd" 2711 d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z" 2712 /> 2713 </svg> 2714 `,indeterminateIndicator:` 2715 <div part="indeterminate-indicator" class="indeterminate-indicator"></div> 2716 `})});var Ib,x6=w(()=>{q();se();ye();Ee();bo();Ib=(i,e)=>{let t=i.tagFor(br),r=i.name===i.tagFor(tn)?"":".listbox";return B` 2717 ${r?"":xe("inline-flex")} 2718 2719 :host ${r} { 2720 background: ${Pe}; 2721 border: calc(${he} * 1px) solid ${wr}; 2722 border-radius: calc(${me} * 1px); 2723 box-sizing: border-box; 2724 flex-direction: column; 2725 padding: calc(${Y} * 1px) 0; 2726 } 2727 2728 ${r?"":B` 2729:host(:${Z}:not([disabled])) { 2730 outline: none; 2731 } 2732 2733 :host(:focus-within:not([disabled])) { 2734 border-color: ${$i}; 2735 box-shadow: 0 0 0 2736 calc((${ve} - ${he}) * 1px) 2737 ${$i} inset; 2738 } 2739 2740 :host([disabled]) ::slotted(*) { 2741 cursor: ${dt}; 2742 opacity: ${_t}; 2743 pointer-events: none; 2744 } 2745 `} 2746 2747 ${r||":host([size])"} { 2748 max-height: calc( 2749 (var(--size) * ${_e} + (${Y} * ${he} * 2)) * 1px 2750 ); 2751 overflow-y: auto; 2752 } 2753 2754 :host([size="0"]) ${r} { 2755 max-height: none; 2756 } 2757 `.withBehaviors(be(B` 2758 :host(:not([multiple]):${Z}) ::slotted(${t}[aria-selected="true"]), 2759 :host([multiple]:${Z}) ::slotted(${t}[aria-checked="true"]) { 2760 border-color: ${L.ButtonText}; 2761 box-shadow: 0 0 0 calc(${ve} * 1px) inset ${L.HighlightText}; 2762 } 2763 2764 :host(:not([multiple]):${Z}) ::slotted(${t}[aria-selected="true"]) { 2765 background: ${L.Highlight}; 2766 color: ${L.HighlightText}; 2767 fill: currentcolor; 2768 } 2769 2770 ::slotted(${t}[aria-selected="true"]:not([aria-checked="true"])) { 2771 background: ${L.Highlight}; 2772 border-color: ${L.HighlightText}; 2773 color: ${L.HighlightText}; 2774 } 2775 `))}});var Mb,w6=w(()=>{q();se();ye();Ee();x6();bb();bo();Mb=(i,e)=>{let t=i.name===i.tagFor(rn);return B` 2776 ${xe("inline-flex")} 2777 2778 :host { 2779 --elevation: 14; 2780 background: ${sn}; 2781 border-radius: calc(${me} * 1px); 2782 border: calc(${he} * 1px) solid ${Ld}; 2783 box-sizing: border-box; 2784 color: ${fe}; 2785 font-family: ${ke}; 2786 height: calc(${_e} * 1px); 2787 position: relative; 2788 user-select: none; 2789 min-width: 250px; 2790 outline: none; 2791 vertical-align: top; 2792 } 2793 2794 :host([aria-invalid='true']) { 2795 border-color: ${Dt}; 2796 } 2797 2798 :host(:not([autowidth])) { 2799 min-width: 250px; 2800 } 2801 2802 ${t?B` 2803 :host(:not([aria-haspopup])) { 2804 --elevation: 0; 2805 border: 0; 2806 height: auto; 2807 min-width: 0; 2808 } 2809 `:""} 2810 2811 ${Ib(i,e)} 2812 2813 :host .listbox { 2814 ${As} 2815 border: none; 2816 display: flex; 2817 left: 0; 2818 position: absolute; 2819 width: 100%; 2820 z-index: 1; 2821 } 2822 2823 .control + .listbox { 2824 --stroke-size: calc(${Y} * ${he} * 2); 2825 max-height: calc( 2826 (var(--listbox-max-height) * ${_e} + var(--stroke-size)) * 1px 2827 ); 2828 } 2829 2830 ${t?B` 2831 :host(:not([aria-haspopup])) .listbox { 2832 left: auto; 2833 position: static; 2834 z-index: auto; 2835 } 2836 `:""} 2837 2838 :host(:not([autowidth])) .listbox { 2839 width: 100%; 2840 } 2841 2842 :host([autowidth]) ::slotted([role='option']), 2843 :host([autowidth]) ::slotted(option) { 2844 padding: 0 calc(1em + ${Y} * 1.25px + 1px); 2845 } 2846 2847 .listbox[hidden] { 2848 display: none; 2849 } 2850 2851 .control { 2852 align-items: center; 2853 box-sizing: border-box; 2854 cursor: pointer; 2855 display: flex; 2856 font-size: ${Me}; 2857 font-family: inherit; 2858 line-height: ${Le}; 2859 min-height: 100%; 2860 padding: 0 calc(${Y} * 2.25px); 2861 width: 100%; 2862 } 2863 2864 :host([minimal]) { 2865 --density: -4; 2866 } 2867 2868 :host(:not([disabled]):hover) { 2869 background: ${yr}; 2870 border-color: ${$d}; 2871 } 2872 2873 :host([aria-invalid='true']:not([disabled]):hover) { 2874 border-color: ${ii}; 2875 } 2876 2877 :host(:${Z}) { 2878 border-color: ${Ne}; 2879 box-shadow: 0 0 0 calc((${ve} - ${he}) * 1px) 2880 ${Ne}; 2881 } 2882 2883 :host([aria-invalid='true']:${Z}) { 2884 border-color: ${Et}; 2885 box-shadow: 0 0 0 calc((${ve} - ${he}) * 1px) 2886 ${Et}; 2887 } 2888 2889 :host(:not([size]):not([multiple]):not([open]):${Z}), 2890 :host([multiple]:${Z}
2890), 2891 :host([size]:${Z}) { 2892 box-shadow: 0 0 0 calc((${ve} - ${he}) * 1px) 2893 ${Ne}; 2894 } 2895 2896 :host([aria-invalid='true']:not([size]):not([multiple]):not([open]):${Z}), 2897 :host([aria-invalid='true'][multiple]:${Z}), 2898 :host([aria-invalid='true'][size]:${Z}) { 2899 box-shadow: 0 0 0 calc((${ve} - ${he}) * 1px) 2900 ${Et}; 2901 } 2902 2903 :host(:not([multiple]):not([size]):${Z}) ::slotted(${i.tagFor(br)}[aria-selected="true"]:not([disabled])) { 2904 box-shadow: 0 0 0 calc(${ve} * 1px) inset ${Ne}; 2905 border-color: ${Ne}; 2906 background: ${Ne}; 2907 color: ${BW}; 2908 } 2909 2910 :host([disabled]) { 2911 cursor: ${dt}; 2912 opacity: ${_t}; 2913 } 2914 2915 :host([disabled]) .control { 2916 cursor: ${dt}; 2917 user-select: none; 2918 } 2919 2920 :host([disabled]:hover) { 2921 background: ${xr}; 2922 color: ${fe}; 2923 fill: currentcolor; 2924 } 2925 2926 :host(:not([disabled])) .control:active { 2927 background: ${mo}; 2928 border-color: ${Vt}; 2929 border-radius: calc(${me} * 1px); 2930 } 2931 2932 :host([open][position="above"]) .listbox { 2933 border-bottom-left-radius: 0; 2934 border-bottom-right-radius: 0; 2935 border-bottom: 0; 2936 bottom: calc(${_e} * 1px); 2937 } 2938 2939 :host([open][position="below"]) .listbox { 2940 border-top-left-radius: 0; 2941 border-top-right-radius: 0; 2942 border-top: 0; 2943 top: calc(${_e} * 1px); 2944 } 2945 2946 .selected-value { 2947 flex: 1 1 auto; 2948 font-family: inherit; 2949 overflow: hidden; 2950 text-align: start; 2951 text-overflow: ellipsis; 2952 white-space: nowrap; 2953 } 2954 2955 .indicator { 2956 flex: 0 0 auto; 2957 margin-inline-start: 1em; 2958 } 2959 2960 slot[name="listbox"] { 2961 display: none; 2962 width: 100%; 2963 } 2964 2965 :host([open]) slot[name="listbox"] { 2966 display: flex; 2967 position: absolute; 2968 ${As} 2969 } 2970 2971 .end { 2972 margin-inline-start: auto; 2973 } 2974 2975 .start, 2976 .end, 2977 .indicator, 2978 .select-indicator, 2979 ::slotted(svg) { 2980 /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ 2981 fill: currentcolor; 2982 height: 1em; 2983 min-height: calc(${Y} * 4px); 2984 min-width: calc(${Y} * 4px); 2985 width: 1em; 2986 } 2987 2988 ::slotted([role="option"]), 2989 ::slotted(option) { 2990 flex: 0 0 auto; 2991 } 2992 `.withBehaviors(be(B` 2993 :host(:not([disabled]):hover), 2994 :host(:not([disabled]):active) { 2995 border-color: ${L.Highlight}; 2996 } 2997 2998 :host([aria-invalid='true']) { 2999 border-style: dashed; 3000 } 3001 3002 :host(:not([disabled]):${Z}) { 3003 background-color: ${L.ButtonFace}; 3004 box-shadow: 0 0 0 calc(${ve} * 1px) ${L.Highlight}; 3005 color: ${L.ButtonText}; 3006 fill: currentcolor; 3007 forced-color-adjust: none; 3008 } 3009 3010 :host(:not([disabled]):${Z}) .listbox { 3011 background: ${L.ButtonFace}; 3012 } 3013 3014 :host([disabled]) { 3015 border-color: ${L.GrayText}; 3016 background-color: ${L.ButtonFace}; 3017 color: ${L.GrayText}; 3018 fill: currentcolor; 3019 opacity: 1; 3020 forced-color-adjust: none; 3021 } 3022 3023 :host([disabled]:hover) { 3024 background: ${L.ButtonFace}; 3025 } 3026 3027 :host([disabled]) .control { 3028 color: ${L.GrayText}; 3029 border-color: ${L.GrayText}; 3030 } 3031 3032 :host([disabled]) .control .select-indicator { 3033 fill: ${L.GrayText}; 3034 } 3035 3036 :host(:${Z}) ::slotted([aria-selected="true"][role="option"]), 3037 :host(:${Z}) ::slotted(option[aria-selected="true"]), 3038 :host(:${Z}) ::slotted([aria-selected="true"][role="option"]:not([disabled])) { 3039 background: ${L.Highlight}; 3040 border-color: ${L.ButtonText}; 3041 box-shadow: 0 0 0 calc((${ve} - ${he}) * 1px) 3042 ${L.HighlightText}; 3043 color: ${L.HighlightText}; 3044 fill: currentcolor; 3045 } 3046 3047 .start, 3048 .end, 3049 .indicator, 3050 .select-indicator, 3051 ::slotted(svg) { 3052 color: ${L.ButtonText}; 3053 fill: currentcolor; 3054 } 3055 `))}});var VG,UG=w(()=>{q();se();Ee();w6();VG=(i,e)=>B` 3056 ${Mb(i,e)} 3057 3058 :host(:empty) .listbox { 3059 display: none; 3060 } 3061 3062 :host([disabled]) *, 3063 :host([disabled]) { 3064 cursor: ${dt}; 3065 user-select: none; 3066 } 3067 3068 :host(:focus-within:not([disabled])) { 3069 border-color: ${Ne}; 3070 box-shadow: 0 0 0 calc((${ve} - ${he}) * 1px) 3071 ${Ne}; 3072 } 3073 3074 :host([aria-invalid='true']:focus-within:not([disabled])) { 3075 border-color: ${Et}; 3076 box-shadow: 0 0 0 calc((${ve} - ${he}) * 1px) 3077 ${Et}; 3078 } 3079 3080 .selected-value { 3081 -webkit-appearance: none; 3082 background: transparent; 3083 border: none; 3084 color: inherit; 3085 font-size: ${Me}; 3086 line-height: ${Le}; 3087 height: calc(100% - (${he} * 1px)); 3088 margin: auto 0; 3089 width: 100%; 3090 } 3091 3092 .selected-value:hover, 3093 .selected-value:${Z}, 3094 .selected-value:disabled, 3095 .selected-value:active { 3096 outline: none; 3097 } 3098`});var Ip,S6,C6=w(()=>{ln();
3098q();se();Ee();UG();Ip=class extends Jn{connectedCallback(){super.connectedCallback(),this.setAutoWidth()}slottedOptionsChanged(e,t){super.slottedOptionsChanged(e,t),this.setAutoWidth()}autoWidthChanged(e,t){t?this.setAutoWidth():this.style.removeProperty("width")}setAutoWidth(){if(!this.autoWidth||!this.isConnected)return;let e=this.listbox.getBoundingClientRect().width;e===0&&this.listbox.hidden&&(Object.assign(this.listbox.style,{visibility:"hidden"}),this.listbox.removeAttribute("hidden"),e=this.listbox.getBoundingClientRect().width,this.listbox.setAttribute("hidden",""),this.listbox.style.removeProperty("visibility")),e>0&&Object.assign(this.style,{width:`${e}px`})}maxHeightChanged(e,t){this.updateComputedStylesheet()}updateComputedStylesheet(){this.computedStylesheet&&this.$fastController.removeStyles(this.computedStylesheet);let e=Math.floor(this.maxHeight/ub.getValueFor(this)).toString();this.computedStylesheet=B` 3099 :host { 3100 --listbox-max-height: ${e}; 3101 } 3102 `,this.$fastController.addStyles(this.computedStylesheet)}};te([O({attribute:"autowidth",mode:"boolean"})],Ip.prototype,"autoWidth",void 0);te([O({attribute:"minimal",mode:"boolean"})],Ip.prototype,"minimal",void 0);S6=Ip.compose({baseName:"combobox",baseClass:Jn,template:TH,styles:VG,shadowOptions:{delegatesFocus:!0},indicator:` 3103 <svg 3104 class="select-indicator" 3105 part="select-indicator"
3106 viewBox="0 0 12 7" 3107 xmlns="http://www.w3.org/2000/svg" 3108 > 3109 <path 3110 d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z" 3111 /> 3112 </svg> 3113 `})});var WG,GG=w(()=>{q();WG=(i,e)=>B` 3114 :host { 3115 display: flex; 3116 position: relative; 3117 flex-direction: column; 3118 } 3119`});var KG,YG=w(()=>{q();Ee();KG=(i,e)=>B` 3120 :host { 3121 display: grid; 3122 padding: 1px 0; 3123 box-sizing: border-box; 3124 width: 100%; 3125 border-bottom: calc(${he} * 1px) solid ${ks}; 3126 } 3127 3128 :host(.header) { 3129 } 3130 3131 :host(.sticky-header) { 3132 background: ${Mt}; 3133 position: sticky; 3134 top: 0; 3135 } 3136`});var XG,JG=w(()=>{q();ye();se();Ee();XG=(i,e)=>B` 3137 :host { 3138 padding: calc(${Y} * 1px) calc(${Y} * 3px); 3139 color: ${fe}; 3140 box-sizing: border-box; 3141 font-family: ${ke}; 3142 font-size: ${Me}; 3143 line-height: ${Le}; 3144 font-weight: 400; 3145 border: transparent calc(${ve} * 1px) solid; 3146 overflow: hidden; 3147 white-space: nowrap; 3148 border-radius: calc(${me} * 1px); 3149 } 3150 3151 :host(.column-header) { 3152 font-weight: 600; 3153 } 3154 3155 :host(:${Z}) { 3156 outline: calc(${ve} * 1px) solid ${Ne}; 3157 color: ${fe}; 3158 } 3159 `.withBehaviors(be(B` 3160 :host { 3161 forced-color-adjust: none; 3162 border-color: transparent; 3163 background: ${L.Field}; 3164 color: ${L.FieldText}; 3165 } 3166 3167 :host(:${Z}) { 3168 border-color: ${L.FieldText}; 3169 box-shadow: 0 0 0 2px inset ${L.Field}; 3170 color: ${L.FieldText}; 3171 } 3172 `))});var I6,M6,E6,T6=w(()=>{se();GG();YG();JG();I6=Is.compose({baseName:"data-grid-cell",template:fH,styles:XG}),M6=Di.compose({baseName:"data-grid-row",template:dH,styles:KG}),E6=di.compose({baseName:"data-grid",template:lH,styles:WG})});var k6,Eb,ZG=w(()=>{se();k6=class extends ee{},Eb=class extends ci(k6){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var A6,QG=w(()=>{A6={toView(i){if(i==null)return null;let e=new Date(i);return e.toString()==="Invalid Date"?null:`${e.getFullYear().toString().padStart(4,"0")}-${(e.getMonth()+1).toString().padStart(2,"0")}-${e.getDate().toString().padStart(2,"0")}`},fromView(i){if(i==null)return null;let e=new Date(i);return e.toString()==="Invalid Date"?null:e}}});var R6,Tn,D6=w(()=>{ln();q();ye();se();ZG();QG();R6="Invalid Date",Tn=class extends Eb{constructor(){super(...arguments),this.step=1,this.isUserInput=!1}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly,this.validate())}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}listChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.setAttribute("list",this.list),this.validate())}maxChanged(e,t){var r;this.max=t<((r=this.min)!==null&&r!==void 0?r:t)?this.min:t,this.value=this.getValidValue(this.value)}minChanged(e,t){var r;this.min=t>((r=this.max)!==null&&r!==void 0?r:t)?this.max:t,this.value=this.getValidValue(this.value)}get valueAsNumber(){return new Date(super.value).valueOf()}set valueAsNumber(e){this.value=new Date(e).toString()}get valueAsDate(){return new Date(super.value)}set valueAsDate(e){this.value=e.toString()}valueChanged(e,t){this.value=this.getValidValue(t),t===this.value&&(this.control&&!this.isUserInput&&(this.control.value=this.value),super.valueChanged(e,this.value),e!==void 0&&!this.isUserInput&&this.$emit("change"),this.isUserInput=!1)}getValidValue(e){var t,r;let n=new Date(e);return n.toString()===R6?n="":(n=n>((t=this.max)!==null&&t!==void 0?t:n)?this.max:n,n=n<((r=this.min)!==null&&r!==void 0?r:n)?this.min:n,n=`${n.getFullYear().toString().padStart(4,"0")}-${(n.getMonth()+1).toString().padStart(2,"0")}-${n.getDate().toString().padStart(2,"0")}`),n}stepUp(){let e=864e5*this.step,t=new Date(this.value);this.value=new Date(t.toString()!==R6?t.valueOf()+e:0).toString()}stepDown(){let e=864e5*this.step,t=new Date(this.value);this.value=new Date(t.toString()!==R6?Math.max(t.valueOf()-e,0):0).toString()}connectedCallback(){super.connectedCallback(),this.validate(),this.control.value=this.value,this.autofocus&&ue.queueUpdate(()=>{this.focus()}),this.appearance||(this.appearance="outline")}handleTextInput(){this.isUserInput=!0,this.value=this.control.value}handleChange(){this.$emit("change")}handleKeyDown(e){switch(e.key){case Rt:return this.stepUp(),!1;case At:return this.stepDown(),!1}return!0}handleBlur(){this.control.value=this.value}};te([O],Tn.prototype,"appearance",void 0);te([O({attribute:"readonly",mode:"boolean"})],Tn.prototype,"readOnly",void 0);te([O({mode:"boolean"})],Tn.prototype,"autofocus",void 0);te([O],Tn.prototype,"list",void 0);te([O({converter:pe})],Tn.prototype,"step",void 0);te([O({converter:A6})],Tn.prototype,"max",void 0);te([O({converter:A6})],Tn.prototype,"min",void 0);te([N],Tn.prototype,"defaultSlottedNodes",void 0);ze(Tn,lt,co)});var eK,tK=w(()=>{q();Ut();eK=(i,e)=>B` 3173 ${El} 3174`});var iK,O6=w(()=>{q();se();iK=(i,e)=>H` 3175 <template class="${t=>t.readOnly?"readonly":""}"> 3176 <label 3177 part="label" 3178 for="control" 3179 class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}" 3180 > 3181 <slot 3182 ${Re({property:"defaultSlottedNodes",filter:Id})} 3183 ></slot> 3184 </label> 3185 <div class="root" part="root"> 3186 ${vt(i,e)} 3187 <input 3188 class="control" 3189 part="control" 3190 id="control"
3191 @input="${t=>t.handleTextInput()}" 3192 @change="${t=>t.handleChange()}" 3193 ?autofocus="${t=>t.autofocus}" 3194 ?disabled="${t=>t.disabled}" 3195 list="${t=>t.list}" 3196 ?readonly="${t=>t.readOnly}" 3197 ?required="${t=>t.required}" 3198 :value="${t=>t.value}" 3199 type="date" 3200 aria-atomic="${t=>t.ariaAtomic}" 3201 aria-busy="${t=>t.ariaBusy}" 3202 aria-controls="${t=>t.ariaControls}" 3203 aria-current="${t=>t.ariaCurrent}" 3204 aria-describedby="${t=>t.ariaDescribedby}" 3205 aria-details="${t=>t.ariaDetails}" 3206 aria-disabled="${t=>t.ariaDisabled}" 3207 aria-errormessage="${t=>t.ariaErrormessage}" 3208 aria-flowto="${t=>t.ariaFlowto}" 3209 aria-haspopup="${t=>t.ariaHaspopup}" 3210 aria-hidden="${t=>t.ariaHidden}" 3211 aria-invalid="${t=>t.ariaInvalid}" 3212 aria-keyshortcuts="${t=>t.ariaKeyshortcuts}" 3213 aria-label="${t=>t.ariaLabel}" 3214 aria-labelledby="${t=>t.ariaLabelledby}" 3215 aria-live="${t=>t.ariaLive}" 3216 aria-owns="${t=>t.ariaOwns}" 3217 aria-relevant="${t=>t.ariaRelevant}" 3218 aria-roledescription="${t=>t.ariaRoledescription}" 3219 ${Te("control")} 3220 /> 3221 ${bt(i,e)} 3222 </div> 3223 </template> 3224`});var L6,rK=w(()=>{D6();tK();O6();D6();O6();L6=Tn.compose({baseName:"date-field",styles:eK,template:iK,shadowOptions:{delegatesFocus:!0}})});function Ie(i){return(e,t)=>{e[t+"Changed"]=function(r,n){n!=null?i.setValueFor(this,n):i.deleteValueFor(this)}}}var Tb,nK,Se,mCe,gCe,$6,kb=w(()=>{ln();ud();q();se();ye();dd();Ee();Tb={toView(i){return i==null?null:i?.toColorString()},fromView(i){if(i==null)return null;let e=Xr(i);return e?Ri.create(e.r,e.g,e.b):null}},nK=B` 3225 :host { 3226 background-color: ${Pe}; 3227 color: ${fe}; 3228 } 3229`.withBehaviors(be(B` 3230 :host { 3231 background-color: ${L.ButtonFace}; 3232 box-shadow: 0 0 0 1px ${L.CanvasText}; 3233 color: ${L.ButtonText}; 3234 } 3235 `));Se=class extends ee{constructor(){super(),this.noPaint=!1;let e={handleChange:this.noPaintChanged.bind(this)};ge.getNotifier(this).subscribe(e,"fillColor"),ge.getNotifier(this).subscribe(e,"baseLayerLuminance")}noPaintChanged(){!this.noPaint&&(this.fillColor!==void 0||this.baseLayerLuminance)?this.$fastController.addStyles(nK):this.$fastController.removeStyles(nK)}};te([O({attribute:"no-paint",mode:"boolean"})],Se.prototype,"noPaint",void 0);te([O({attribute:"fill-color",converter:Tb}),Ie(Pe)],Se.prototype,"fillColor",void 0);te([O({attribute:"accent-color",converter:Tb,mode:"fromView"}),Ie(_p)],Se.prototype,"accentColor",void 0);te([O({attribute:"neutral-color",converter:Tb,mode:"fromView"}),Ie(vp)],Se.prototype,"neutralColor",void 0);te([O({attribute:"error-color",converter:Tb,mode:"fromView"}),Ie(xp)],Se.prototype,"errorColor",void 0);te([O({converter:pe}),Ie(Wi)],Se.prototype,"density",void 0);te([O({attribute:"design-unit",converter:pe}),Ie(Y)],Se.prototype,"designUnit",void 0);te([O({attribute:"direction"}),Ie(Ad)],Se.prototype,"direction",void 0);te([O({attribute:"base-height-multiplier",converter:pe}),Ie(sa)],Se.prototype,"baseHeightMultiplier",void 0);te([O({attribute:"base-horizontal-spacing-multiplier",converter:pe}),Ie(SW)],Se.prototype,"baseHorizontalSpacingMultiplier",void 0);te([O({attribute:"control-corner-radius",converter:pe}),Ie(me)],Se.prototype,"controlCornerRadius",void 0);te([O({attribute:"stroke-width",converter:pe}),Ie(he)],Se.prototype,"strokeWidth",void 0);te([O({attribute:"focus-stroke-width",converter:pe}),Ie(ve)],Se.prototype,"focusStrokeWidth",void 0);te([O({attribute:"disabled-opacity",converter:pe}),Ie(_t)],Se.prototype,"disabledOpacity",void 0);te([O({attribute:"type-ramp-minus-2-font-size"}),Ie(CW)],Se.prototype,"typeRampMinus2FontSize",void 0);te([O({attribute:"type-ramp-minus-2-line-height"}),Ie(IW)],Se.prototype,"typeRampMinus2LineHeight",void 0);te([O({attribute:"type-ramp-minus-1-font-size"}),Ie(Cl)],Se.prototype,"typeRampMinus1FontSize",void 0);te([O({attribute:"type-ramp-minus-1-line-height"}),Ie(Il)],Se.prototype,"typeRampMinus1LineHeight",void 0);te([O({attribute:"type-ramp-base-font-size"}),Ie(Me)],Se.prototype,"typeRampBaseFontSize",void 0);te([O({attribute:"type-ramp-base-line-height"}),Ie(Le)],Se.prototype,"typeRampBaseLineHeight",void 0);te([O({attribute:"type-ramp-plus-1-font-size"}),Ie(MW)],Se.prototype,"typeRampPlus1FontSize",void 0);te([O({attribute:"type-ramp-plus-1-line-height"}),Ie(EW)],Se.prototype,"typeRampPlus1LineHeight",void 0);te([O({attribute:"type-ramp-plus-2-font-size"}),Ie(TW)],Se.prototype,"typeRampPlus2FontSize",void 0);te([O({attribute:"type-ramp-plus-2-line-height"}),Ie(kW)],Se.prototype,"typeRampPlus2LineHeight",void 0);te([O({attribute:"type-ramp-plus-3-font-size"}),Ie(AW)],Se.prototype,"typeRampPlus3FontSize",void 0);te([O({attribute:"type-ramp-plus-3-line-height"}),Ie(RW)],Se.prototype,"typeRampPlus3LineHeight",void 0);te([O({attribute:"type-ramp-plus-4-font-size"}),Ie(DW)],Se.prototype,"typeRampPlus4FontSize",void 0);te([O({attribute:"type-ramp-plus-4-line-height"}),Ie(OW)],Se.prototype,"typeRampPlus4LineHeight",void 0);te([O({attribute:"type-ramp-plus-5-font-size"}),Ie(LW)],Se.prototype,"typeRampPlus5FontSize",void 0);te([O({attribute:"type-ramp-plus-5-line-height"}),Ie($W)],Se.prototype,"typeRampPlus5LineHeight",void 0);te([O({attribute:"type-ramp-plus-6-font-size"}),Ie(FW)],Se.prototype,"typeRampPlus6FontSize",void 0);te([O({attribute:"type-ramp-plus-6-line-height"}),Ie(PW)],Se.prototype,"typeRampPlus6LineHeight",void 0);te([O({attribute:"accent-fill-rest-delta",converter:pe}),Ie(NW)],Se.prototype,"accentFillRestDelta",void 0);te([O({attribute:"accent-fill-hover-delta",converter:pe}),Ie(ju)],Se.prototype,"accentFillHoverDelta",void 0);te([O({attribute:"accent-fill-active-delta",converter:pe}),Ie(Y1)],Se.prototype,"accentFillActiveDelta",void 0);te([O({attribute:"accent-fill-focus-delta",converter:pe}),Ie(X1)],Se.prototype,"accentFillFocusDelta",void 0);te([O({attribute:"accent-foreground-rest-delta",converter:pe}),Ie(J1)],Se.prototype,"accentForegroundRestDelta",void 0);te([O({attribute:"accent-foreground-hover-delta",converter:pe}),Ie(Z1)],Se.prototype,"accentForegroundHoverDelta",void 0);te([O({attribute:"accent-foreground-active-delta",converter:pe}),Ie(Q1)],Se.prototype,"accentForegroundActiveDelta",void 0);te([O({attribute:"accent-foreground-focus-delta",converter:pe}),Ie(eb)],Se.prototype,"accentForegroundFocusDelta",void 0);te([O({attribute:"neutral-fill-rest-delta",converter:pe}),Ie(oa)],Se.prototype,"neutralFillRestDelta",void 0);te([O({attribute:"neutral-fill-hover-delta",converter:pe}),Ie(aa)],Se.prototype,"neutralFillHoverDelta",void 0);te([O({attribute:"neutral-fill-active-delta",converter:pe}),Ie(la)],Se.prototype,"neutralFillActiveDelta",void 0);te([O({attribute:"neutral-fill-focus-delta",converter:pe}),Ie(tb)],Se.prototype,"neutralFillFocusDelta",void 0);te([O({attribute:"neutral-fill-input-rest-delta",converter:pe}),Ie(E3)],Se.prototype,"neutralFillInputRestDelta",void 0);te([O({attribute:"neutral-fill-input-hover-delta",converter:pe}),Ie(T3)],Se.prototype,"neutralFillInputHoverDelta",void 0);te([O({attribute:"neutral-fill-input-active-delta",converter:pe}),Ie(k3)],Se.prototype,"neutralFillInputActiveDelta",void 0);te([O({attribute:"neutral-fill-input-focus-delta",converter:pe}),Ie(A3)],Se.prototype,"neutralFillInputFocusDelta",void 0);te([O({attribute:"neutral-fill-stealth-rest-delta",converter:pe}),Ie(R3)],Se.prototype,"neutralFillStealthRestDelta",void 0);te([O({attribute:"neutral-fill-stealth-hover-delta",converter:pe}),Ie(D3)],Se.prototype,"neutralFillStealthHoverDelta",void 0);te([O({attribute:"neutral-fill-stealth-active-delta",converter:pe}),Ie(O3)],Se.prototype,"neutralFillStealthActiveDelta",void 0);te([O({attribute:"neutral-fill-stealth-focus-delta",converter:pe}),Ie(L3)],Se.prototype,"neutralFillStealthFocusDelta",void 0);te([O({attribute:"neutral-fill-strong-hover-delta",converter:pe}),Ie($3)],Se.prototype,"neutralFillStrongHoverDelta",void 0);te([O({attribute:"neutral-fill-strong-active-delta",converter:pe}),Ie(F3)],Se.prototype,"neutralFillStrongActiveDelta",void 0);te([O({attribute:"neutral-fill-strong-focus-delta",converter:pe}),Ie(P3)],Se.prototype,"neutralFillStrongFocusDelta",void 0);te([O({attribute:"base-layer-luminance",converter:pe}),Ie(ho)],Se.prototype,"baseLayerLuminance",void 0);
3235te([O({attribute:"neutral-fill-layer-rest-delta",converter:pe}),Ie(Ml)],Se.prototype,"neutralFillLayerRestDelta",void 0);te([O({attribute:"neutral-stroke-divider-rest-delta",converter:pe}),Ie(H3)],Se.prototype,"neutralStrokeDividerRestDelta",void 0);te([O({attribute:"neutral-stroke-rest-delta",converter:pe}),Ie(N3)],Se.prototype,"neutralStrokeRestDelta",void 0);te([O({attribute:"neutral-stroke-hover-delta",converter:pe}),Ie(z3)],Se.prototype,"neutralStrokeHoverDelta",void 0);te([O({attribute:"neutral-stroke-active-delta",converter:pe}),Ie(B3)],Se.prototype,"neutralStrokeActiveDelta",void 0);te([O({attribute:"neutral-stroke-focus-delta",converter:pe}),Ie(q3)],Se.prototype,"neutralStrokeFocusDelta",void 0);mCe=(i,e)=>H` <slot></slot> `,gCe=(i,e)=>B` 3236 ${xe("block")} 3237`,$6=Se.compose({baseName:"design-system-provider",template:mCe,styles:gCe})});var sK,oK=w(()=>{q();Ee();bb();sK=(i,e)=>B` 3238 :host([hidden]) { 3239 display: none; 3240 } 3241 3242 :host { 3243 --elevation: 14; 3244 --dialog-height: 480px; 3245 --dialog-width: 640px; 3246 display: block; 3247 } 3248 3249 .overlay { 3250 position: fixed; 3251 top: 0; 3252 left: 0; 3253 right: 0; 3254 bottom: 0; 3255 background: rgba(0, 0, 0, 0.3); 3256 touch-action: none; 3257 } 3258 3259 .positioning-region { 3260 display: flex; 3261 justify-content: center; 3262 position: fixed; 3263 top: 0; 3264 bottom: 0; 3265 left: 0; 3266 right: 0; 3267 overflow: auto; 3268 } 3269 3270 .control { 3271 ${As} 3272 margin-top: auto; 3273 margin-bottom: auto; 3274 width: var(--dialog-width); 3275 height: var(--dialog-height); 3276 background-color: ${Pe}; 3277 z-index: 1; 3278 border-radius: calc(${me} * 1px); 3279 border: calc(${he} * 1px) solid transparent; 3280 } 3281`});var F6,P6=w(()=>{se();oK();F6=Pr.compose({baseName:"dialog",template:PH,styles:sK})});var aK,lK=w(()=>{q();Ee();aK=(i,e)=>B` 3282 .disclosure { 3283 transition: height 0.35s; 3284 } 3285 3286 .disclosure .invoker::-webkit-details-marker { 3287 display: none; 3288 } 3289 3290 .disclosure .invoker { 3291 list-style-type: none; 3292 } 3293 3294 :host([appearance='accent']) .invoker { 3295 background: ${st}; 3296 color: ${Si}; 3297 font-family: ${ke}; 3298 font-size: ${Me}; 3299 border-radius: calc(${me} * 1px); 3300 outline: none; 3301 cursor: pointer; 3302 margin: 16px 0; 3303 padding: 12px; 3304 max-width: max-content; 3305 } 3306 3307 :host([appearance='accent']) .invoker:active { 3308 background: ${Vt}; 3309 color: ${Li}; 3310 } 3311 3312 :host([appearance='accent']) .invoker:hover { 3313 background: ${wi}; 3314 color: ${or}; 3315 } 3316 3317 :host([appearance='lightweight']) .invoker { 3318 background: transparent; 3319 color: ${ti}; 3320 border-bottom: calc(${he} * 1px) solid ${ti}; 3321 cursor: pointer; 3322 width: max-content; 3323 margin: 16px 0; 3324 } 3325 3326 :host([appearance='lightweight']) .invoker:active { 3327 border-bottom-color: ${fo}; 3328 } 3329 3330 :host([appearance='lightweight']) .invoker:hover { 3331 border-bottom-color: ${ua}; 3332 } 3333 3334 .disclosure[open] .invoker ~ * { 3335 animation: fadeIn 0.5s ease-in-out; 3336 } 3337 3338 @keyframes fadeIn { 3339 0% { 3340 opacity: 0; 3341 } 3342 100% { 3343 opacity: 1; 3344 } 3345 } 3346`});var Ab,N6,z6=w(()=>{ln();q();se();lK();Ab=class extends Nu{constructor(){super(...arguments),this.height=0,this.totalHeight=0}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="accent")}appearanceChanged(e,t){e!==t&&(this.classList.add(t),this.classList.remove(e))}onToggle(){super.onToggle(),this.details.style.setProperty("height",`${this.disclosureHeight}px`)}setup(){super.setup();let e=()=>this.details.getBoundingClientRect().height;this.show(),this.totalHeight=e(),this.hide(),this.height=e(),this.expanded&&this.show()}get disclosureHeight(){return this.expanded?this.totalHeight:this.height}};te([O],Ab.prototype,"appearance",void 0);N6=Ab.compose({baseName:"disclosure",baseClass:Nu,template:WH,styles:aK})});var uK,cK=w(()=>{q();se();Ee();uK=(i,e)=>B` 3347 ${xe("block")} :host { 3348 box-sizing: content-box; 3349 height: 0; 3350 margin: calc(${Y} * 1px) 0; 3351 border-top: calc(${he} * 1px) solid ${ks}; 3352 border-left: none; 3353 } 3354 3355 :host([orientation='vertical']) { 3356 height: 100%; 3357 margin: 0 calc(${Y} * 1px); 3358 border-top: none; 3359 border-left: calc(${he} * 1px) solid ${ks}; 3360 } 3361`});var B6,q6=w(()=>{se();cK();B6=Cd.compose({baseName:"divider",template:XH,styles:uK})});var H6,j6,V6=w(()=>{q();se();x6();H6=class extends tn{sizeChanged(e,t){super.sizeChanged(e,t),this.updateComputedStylesheet()}updateComputedStylesheet(){this.computedStylesheet&&this.$fastController.removeStyles(this.computedStylesheet);let e=`${this.size}`;this.computedStylesheet=B` 3362 :host { 3363 --size: ${e}; 3364 } 3365 `,this.$fastController.addStyles(this.computedStylesheet)}},j6=H6.compose({baseName:"listbox",baseClass:tn,template:hj,styles:Ib})});var dK,hK=w(()=>{q();se();ye();Ee();Ut();dK=(i,e)=>B` 3366 ${xe("block")} :host { 3367 --elevation: 11; 3368 background: ${Pe}; 3369 border: calc(${he} * 1px) solid transparent; 3370 ${As} 3371 margin: 0; 3372 border-radius: calc(${me} * 1px); 3373 padding: calc(${Y} * 1px) 0; 3374 max-width: 368px; 3375 min-width: 64px; 3376 } 3377 3378 :host([slot='submenu']) { 3379 width: max-content; 3380 margin: 0 calc(${Y} * 1px); 3381 } 3382 3383 ::slotted(hr) { 3384 box-sizing: content-box; 3385 height: 0; 3386 margin: 0; 3387 border: none; 3388 border-top: calc(${he} * 1px) solid ${ks}; 3389 } 3390 `.withBehaviors(be(B` 3391 :host { 3392 background: ${L.Canvas}; 3393 border-color: ${L.CanvasText}; 3394 } 3395 `))});var U6,W6,G6=w(()=>{se();Ee();hK();U6=class extends _l{connectedCallback(){super.connectedCallback(),Pe.setValueFor(this,Rd)}},W6=U6.compose({baseName:"menu",template:Rj,styles:dK})});var fK,pK=w(()=>{q();se();ye();Ee();Ut();fK=(i,e)=>B` 3396 ${xe("grid")} :host { 3397 contain: layout; 3398 overflow: visible; 3399 font-family: ${ke}; 3400 outline: none; 3401 box-sizing: border-box; 3402 height: calc(${_e} * 1px); 3403 grid-template-columns: minmax(42px, auto) 1fr minmax(42px, auto); 3404 grid-template-rows: auto; 3405 justify-items: center; 3406 align-items: center; 3407 padding: 0; 3408 margin: 0 calc(${Y} * 1px); 3409 white-space: nowrap; 3410 background: ${xr}; 3411 color: ${fe}; 3412 fill: currentcolor; 3413 cursor: pointer; 3414 font-size: ${Me}; 3415 line-height: ${Le}; 3416 border-radius: calc(${me} * 1px); 3417 border: calc(${ve} * 1px) solid transparent; 3418 } 3419 3420 :host(:hover) { 3421 position: relative; 3422 z-index: 1; 3423 } 3424 3425 :host(.indent-0) { 3426 grid-template-columns: auto 1fr minmax(42px, auto); 3427 } 3428 :host(.indent-0) .content { 3429 grid-column: 1; 3430 grid-row: 1; 3431 margin-inline-start: 10px; 3432 } 3433 :host(.indent-0) .expand-collapse-glyph-container { 3434 grid-column: 5; 3435 grid-row: 1; 3436 } 3437 :host(.indent-2) { 3438 grid-template-columns: 3439 minmax(42px, auto) minmax(42px, auto) 1fr minmax(42px, auto) 3440 minmax(42px, auto); 3441 } 3442 :host(.indent-2) .content { 3443 grid-column: 3; 3444 grid-row: 1; 3445 margin-inline-start: 10px; 3446 } 3447 :host(.indent-2) .expand-collapse-glyph-container { 3448 grid-column: 5; 3449 grid-row: 1; 3450 } 3451 :host(.indent-2) .start { 3452 grid-column: 2; 3453 } 3454 :host(.indent-2) .end { 3455 grid-column: 4; 3456 } 3457 3458 :host(:${Z}) { 3459 border-color: ${Ne}; 3460 background: ${Od}; 3461 color: ${fe}; 3462 } 3463 3464 :host(:hover) { 3465 background: ${on}; 3466 color: ${fe}; 3467 } 3468 3469 :host(:active) { 3470 background: ${an}; 3471 } 3472 3473 :host([aria-checked='true']), 3474 :host(.expanded) { 3475 background: ${Mt}; 3476 color: ${fe}; 3477 } 3478 3479 :host([disabled]) { 3480 cursor: ${dt}; 3481 opacity: ${_t}; 3482 } 3483 3484 :host([disabled]:hover) { 3485 color: ${fe}; 3486 fill: currentcolor; 3487 background: ${xr}; 3488 } 3489 3490 :host([disabled]:hover) .start, 3491 :host([disabled]:hover) .end, 3492 :host([disabled]:hover)::slotted(svg) { 3493 fill: ${fe}; 3494 } 3495 3496 .expand-collapse-glyph { 3497 /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ 3498 width: 16px; 3499 height: 16px; 3500 fill: currentcolor; 3501 } 3502 3503 .content { 3504 grid-column-start: 2; 3505 justify-self: start; 3506 overflow: hidden; 3507 text-overflow: ellipsis; 3508 } 3509 3510 .start, 3511 .end { 3512 display: flex; 3513 justify-content: center; 3514 } 3515 3516 ::slotted(svg) { 3517 /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ 3518 width: 16px; 3519 height: 16px; 3520 } 3521 3522 :host(:hover) .start, 3523 :host(:hover) .end, 3524 :host(:hover)::slotted(svg), 3525 :host(:active) .start, 3526 :host(:active) .end, 3527 :host(:active)::slotted(svg) { 3528 fill: ${fe}; 3529 } 3530 3531 :host(.indent-0[aria-haspopup='menu']) { 3532 display: grid; 3533 grid-template-columns: minmax(42px, auto) auto 1fr minmax(42px, auto) minmax( 3534 42px, 3535 auto 3536 ); 3537 align-items: center; 3538 min-height: 32px; 3539 } 3540 3541 :host(.indent-1[aria-haspopup='menu']), 3542 :host(.indent-1[role='menuitemcheckbox']), 3543 :host(.indent-1[role='menuitemradio']) { 3544 display: grid; 3545 grid-template-columns: minmax(42px, auto) auto 1fr minmax(42px, auto) minmax( 3546 42px, 3547 auto 3548 ); 3549 align-items: center; 3550 min-height: 32px; 3551 } 3552 3553 :host(.indent-2:not([aria-haspopup='menu'])) .end { 3554 grid-column: 5; 3555 } 3556 3557 :host .input-container, 3558 :host .expand-collapse-glyph-container { 3559 display: none; 3560 } 3561 3562 :host([aria-haspopup='menu']) .expand-collapse-glyph-container, 3563 :host([role='menuitemcheckbox']) .input-container, 3564 :host([role='menuitemradio']) .input-container { 3565 display: grid; 3566 margin-inline-end: 10px; 3567 } 3568 3569 :host([aria-haspopup='menu']) .content, 3570 :host([role='menuitemcheckbox']) .content, 3571 :host([role='menuitemradio']) .content { 3572 grid-column-start: 3; 3573 } 3574 3575 :host([aria-haspopup='menu'].indent-0) .content { 3576 grid-column-start: 1; 3577 } 3578 3579 :host([aria-haspopup='menu']) .end, 3580 :host([role='menuitemcheckbox']) .end, 3581 :host([role='menuitemradio']) .end { 3582 grid-column-start: 4; 3583 } 3584 3585 :host .expand-collapse, 3586 :host .checkbox, 3587 :host .radio { 3588 display: flex; 3589 align-items: center; 3590 justify-content: center; 3591 position: relative;
3592 width: 20px; 3593 height: 20px; 3594 box-sizing: border-box; 3595 outline: none; 3596 margin-inline-start: 10px; 3597 } 3598 3599 :host .checkbox, 3600 :host .radio { 3601 border: calc(${he} * 1px) solid ${fe}; 3602 } 3603 3604 :host([aria-checked='true']) .checkbox, 3605 :host([aria-checked='true']) .radio { 3606 background: ${st}; 3607 border-color: ${st}; 3608 } 3609 3610 :host .checkbox { 3611 border-radius: calc(${me} * 1px); 3612 } 3613 3614 :host .radio { 3615 border-radius: 999px; 3616 } 3617 3618 :host .checkbox-indicator, 3619 :host .radio-indicator, 3620 :host .expand-collapse-indicator, 3621 ::slotted([slot='checkbox-indicator']), 3622 ::slotted([slot='radio-indicator']), 3623 ::slotted([slot='expand-collapse-indicator']) { 3624 display: none; 3625 } 3626 3627 ::slotted([slot='end']:not(svg)) { 3628 margin-inline-end: 10px; 3629 color: ${da}; 3630 } 3631 3632 :host([aria-checked='true']) .checkbox-indicator, 3633 :host([aria-checked='true']) ::slotted([slot='checkbox-indicator']) { 3634 width: 100%; 3635 height: 100%; 3636 display: block; 3637 fill: ${Si}; 3638 pointer-events: none; 3639 } 3640 3641 :host([aria-checked='true']) .radio-indicator { 3642 position: absolute; 3643 top: 4px; 3644 left: 4px; 3645 right: 4px; 3646 bottom: 4px; 3647 border-radius: 999px; 3648 display: block; 3649 background: ${Si}; 3650 pointer-events: none; 3651 } 3652 3653 :host([aria-checked='true']) ::slotted([slot='radio-indicator']) { 3654 display: block; 3655 pointer-events: none; 3656 } 3657 `.withBehaviors(be(B` 3658 :host { 3659 border-color: transparent; 3660 color: ${L.ButtonText}; 3661 forced-color-adjust: none; 3662 } 3663 3664 :host(:hover) { 3665 background: ${L.Highlight}; 3666 color: ${L.HighlightText}; 3667 } 3668 3669 :host(:hover) .start, 3670 :host(:hover) .end, 3671 :host(:hover)::slotted(svg), 3672 :host(:active) .start, 3673 :host(:active) .end, 3674 :host(:active)::slotted(svg) { 3675 fill: ${L.HighlightText}; 3676 } 3677 3678 :host(.expanded) { 3679 background: ${L.Highlight}; 3680 border-color: ${L.Highlight}; 3681 color: ${L.HighlightText}; 3682 } 3683 3684 :host(:${Z}) { 3685 background: ${L.Highlight}; 3686 border-color: ${L.ButtonText}; 3687 box-shadow: 0 0 0 calc(${ve} * 1px) inset 3688 ${L.HighlightText}; 3689 color: ${L.HighlightText}; 3690 fill: currentcolor; 3691 } 3692 3693 :host([disabled]), 3694 :host([disabled]:hover), 3695 :host([disabled]:hover) .start, 3696 :host([disabled]:hover) .end, 3697 :host([disabled]:hover)::slotted(svg) { 3698 background: ${L.Canvas}; 3699 color: ${L.GrayText}; 3700 fill: currentcolor; 3701 opacity: 1; 3702 } 3703 3704 :host .expanded-toggle, 3705 :host .checkbox, 3706 :host .radio { 3707 border-color: ${L.ButtonText}; 3708 background: ${L.HighlightText}; 3709 } 3710 3711 :host([checked='true']) .checkbox, 3712 :host([checked='true']) .radio { 3713 background: ${L.HighlightText}; 3714 border-color: ${L.HighlightText}; 3715 } 3716 3717 :host(:hover) .expanded-toggle, 3718 :host(:hover) .checkbox, 3719 :host(:hover) .radio, 3720 :host(:${Z}) .expanded-toggle, 3721 :host(:${Z}) .checkbox, 3722 :host(:${Z}) .radio, 3723 :host([checked="true"]:hover) .checkbox, 3724 :host([checked="true"]:hover) .radio, 3725 :host([checked="true"]:${Z}) .checkbox, 3726 :host([checked="true"]:${Z}) .radio { 3727 border-color: ${L.HighlightText}; 3728 } 3729 3730 :host([aria-checked='true']) { 3731 background: ${L.Highlight}; 3732 color: ${L.HighlightText}; 3733 } 3734 3735 :host([aria-checked='true']) .checkbox-indicator, 3736 :host([aria-checked='true']) ::slotted([slot='checkbox-indicator']), 3737 :host([aria-checked='true']) ::slotted([slot='radio-indicator']) { 3738 fill: ${L.Highlight}; 3739 } 3740 3741 :host([aria-checked='true']) .radio-indicator { 3742 background: ${L.Highlight}; 3743 } 3744 3745 ::slotted([slot='end']:not(svg)) { 3746 color: ${L.ButtonText}; 3747 } 3748 3749 :host(:hover) ::slotted([slot="end"]:not(svg)), 3750 :host(:${Z}) ::slotted([slot="end"]:not(svg)) { 3751 color: ${L.HighlightText}; 3752 } 3753 `),new es(B` 3754 .expand-collapse-glyph { 3755 transform: rotate(0deg); 3756 } 3757 `,B` 3758 .expand-collapse-glyph { 3759 transform: rotate(180deg); 3760 } 3761 `))});var K6,Y6=w(()=>{se();pK();K6=vr.compose({baseName:"menu-item",template:kj,styles:fK,checkboxIndicator:` 3762 <svg 3763 part="checkbox-indicator" 3764 class="checkbox-indicator"
3765 viewBox="0 0 20 20" 3766 xmlns="http://www.w3.org/2000/svg" 3767 > 3768 <path 3769 fill-rule="evenodd" 3770 clip-rule="evenodd" 3771 d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z" 3772 /> 3773 </svg> 3774 `,expandCollapseGlyph:` 3775 <svg 3776 viewBox="0 0 16 16" 3777 xmlns="http://www.w3.org/2000/svg" 3778 class="expand-collapse-glyph" 3779 part="expand-collapse-glyph" 3780 > 3781 <path 3782 d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z" 3783 /> 3784 </svg> 3785 `,radioIndicator:` 3786 <span part="radio-indicator" class="radio-indicator"></span> 3787 `})});var mK,gK=w(()=>{q();Ee();Ut();mK=(i,e)=>B` 3788 ${El} 3789 3790 .controls { 3791 opacity: 0; 3792 } 3793 3794 .step-up-glyph, 3795 .step-down-glyph { 3796 display: block; 3797 padding: 4px 10px; 3798 cursor: pointer; 3799 } 3800 3801 .step-up-glyph:before, 3802 .step-down-glyph:before { 3803 content: ''; 3804 display: block; 3805 border: solid transparent 6px; 3806 } 3807 3808 .step-up-glyph:before { 3809 border-bottom-color: ${fe}; 3810 } 3811 3812 .step-down-glyph:before { 3813 border-top-color: ${fe}; 3814 } 3815 3816 :host(:hover:not([disabled])) .controls, 3817 :host(:focus-within:not([disabled])) .controls { 3818 opacity: 1; 3819 } 3820`});var Rb,X6,J6=w(()=>{ln();q();se();gK();Rb=class extends Ui{constructor(){super(...arguments),this.appearance="outline"}};te([O],Rb.prototype,"appearance",void 0);X6=Rb.compose({baseName:"number-field",baseClass:Ui,styles:mK,template:$j,shadowOptions:{delegatesFocus:!0},stepDownGlyph:` 3821 <span class="step-down-glyph" part="step-down-glyph"></span> 3822 `,stepUpGlyph:` 3823 <span class="step-up-glyph" part="step-up-glyph"></span> 3824 `})});var bK,vK=w(()=>{q();se();ye();Ee();bo();bK=(i,e)=>B` 3825 ${xe("inline-flex")} :host { 3826 align-items: center; 3827 font-family: ${ke}; 3828 border-radius: calc(${me} * 1px); 3829 border: calc(${ve} * 1px) solid transparent; 3830 box-sizing: border-box; 3831 background: ${xr}; 3832 color: ${fe}; 3833 cursor: pointer; 3834 flex: 0 0 auto; 3835 fill: currentcolor; 3836 font-size: ${Me}; 3837 height: calc(${_e} * 1px); 3838 line-height: ${Le}; 3839 margin: 0 calc((${Y} - ${ve}) * 1px); 3840 outline: none; 3841 overflow: hidden; 3842 padding: 0 1ch; 3843 user-select: none; 3844 white-space: nowrap; 3845 } 3846 3847 :host(:not([disabled]):not([aria-selected='true']):hover) { 3848 background: ${on}; 3849 } 3850 3851 :host(:not([disabled]):not([aria-selected='true']):active) { 3852 background: ${an}; 3853 } 3854 3855 :host([aria-selected='true']) { 3856 background: ${st}; 3857 color: ${Si}; 3858 } 3859 3860 :host(:not([disabled])[aria-selected='true']:hover) { 3861 background: ${wi}; 3862 color: ${or}; 3863 } 3864 3865 :host(:not([disabled])[aria-selected='true']:active) { 3866 background: ${Vt}; 3867 color: ${Li}; 3868 } 3869 3870 :host([disabled]) { 3871 cursor: ${dt}; 3872 opacity: ${_t}; 3873 } 3874 3875 .content { 3876 grid-column-start: 2; 3877 justify-self: start; 3878 overflow: hidden; 3879 text-overflow: ellipsis; 3880 } 3881 3882 .start, 3883 .end, 3884 ::slotted(svg) { 3885 display: flex; 3886 } 3887 3888 ::slotted(svg) { 3889 /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ 3890 height: calc(${Y} * 4px); 3891 width: calc(${Y} * 4px); 3892 } 3893 3894 ::slotted([slot='end']) { 3895 margin-inline-start: 1ch; 3896 } 3897 3898 ::slotted([slot='start']) { 3899 margin-inline-end: 1ch; 3900 } 3901 3902 :host([aria-checked='true'][aria-selected='false']) { 3903 border-color: ${$i}; 3904 } 3905 3906 :host([aria-checked='true'][aria-selected='true']) { 3907 border-color: ${$i}; 3908 box-shadow: 0 0 0 calc(${ve} * 2 * 1px) inset 3909 ${jW}; 3910 } 3911 `.withBehaviors(be(B` 3912 :host { 3913 border-color: transparent; 3914 forced-color-adjust: none; 3915 color: ${L.ButtonText}; 3916 fill: currentcolor; 3917 } 3918 3919 :host(:not([aria-selected='true']):hover), 3920 :host([aria-selected='true']) { 3921 background: ${L.Highlight}; 3922 color: ${L.HighlightText}; 3923 } 3924 3925 :host([disabled]), 3926 :host([disabled][aria-selected='false']:hover) { 3927 background: ${L.Canvas}; 3928 color: ${L.GrayText}; 3929 fill: currentcolor; 3930 opacity: 1; 3931 } 3932 3933 :host([aria-checked='true'][aria-selected='false']) { 3934 background: ${L.ButtonFace}; 3935 color: ${L.ButtonText}; 3936 border-color: ${L.ButtonText}; 3937 } 3938 3939 :host([aria-checked='true'][aria-selected='true']), 3940 :host([aria-checked='true'][aria-selected='true']:hover) { 3941 background: ${L.Highlight}; 3942 color: ${L.HighlightText}; 3943 border-color: ${L.ButtonText}; 3944 } 3945 `))});var Z6,Q6=w(()=>{se();vK();Z6=br.compose({baseName:"option",template:uj,styles:bK})});var _K,yK=w(()=>{q();se();ye();Ee();_K=(i,e)=>B` 3946 ${xe("flex")} :host { 3947 align-items: center; 3948 outline: none; 3949 height: calc(${Y} * 1px); 3950 margin: calc(${Y} * 1px) 0; 3951 } 3952 3953 .progress { 3954 background-color: ${Mt}; 3955 border-radius: calc(${Y} * 1px); 3956 width: 100%; 3957 height: 100%; 3958 display: flex; 3959 align-items: center; 3960 position: relative; 3961 } 3962 3963 .determinate { 3964 background-color: ${ti}; 3965 border-radius: calc(${Y} * 1px); 3966 height: 100%; 3967 transition: all 0.2s ease-in-out; 3968 display: flex; 3969 } 3970 3971 .indeterminate { 3972 height: 100%; 3973 border-radius: calc(${Y} * 1px); 3974 display: flex; 3975 width: 100%; 3976 position: relative; 3977 overflow: hidden; 3978 } 3979 3980 .indeterminate-indicator-1 { 3981 position: absolute; 3982 opacity: 0; 3983 height: 100%; 3984 background-color: ${ti}; 3985 border-radius: calc(${Y} * 1px); 3986 animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); 3987 width: 40%; 3988 animation: indeterminate-1 2s infinite; 3989 } 3990 3991 .indeterminate-indicator-2 { 3992 position: absolute; 3993 opacity: 0; 3994 height: 100%; 3995 background-color: ${ti}; 3996 border-radius: calc(${Y} * 1px); 3997 animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); 3998 width: 60%; 3999 animation: indeterminate-2 2s infinite; 4000 } 4001 4002 :host([paused]) .indeterminate-indicator-1, 4003 :host([paused]) .indeterminate-indicator-2 { 4004 animation-play-state: paused; 4005 background-color: ${Mt}; 4006 } 4007 4008 :host([paused]) .determinate { 4009 background-color: ${da}; 4010 } 4011
4012 @keyframes indeterminate-1 { 4013 0% { 4014 opacity: 1; 4015 transform: translateX(-100%); 4016 } 4017 70% { 4018 opacity: 1; 4019 transform: translateX(300%); 4020 } 4021 70.01% { 4022 opacity: 0; 4023 } 4024 100% { 4025 opacity: 0; 4026 transform: translateX(300%); 4027 } 4028 } 4029 4030 @keyframes indeterminate-2 { 4031 0% { 4032 opacity: 0; 4033 transform: translateX(-150%); 4034 } 4035 29.99% { 4036 opacity: 0; 4037 } 4038 30% { 4039 opacity: 1; 4040 transform: translateX(-150%); 4041 } 4042 100% { 4043 transform: translateX(166.66%); 4044 opacity: 1; 4045 } 4046 } 4047 `.withBehaviors(be(B` 4048 .progress { 4049 forced-color-adjust: none; 4050 background-color: ${L.Field}; 4051 box-shadow: 0 0 0 1px inset ${L.FieldText}; 4052 } 4053 .determinate, 4054 .indeterminate-indicator-1, 4055 .indeterminate-indicator-2 { 4056 forced-color-adjust: none; 4057 background-color: ${L.FieldText}; 4058 } 4059 :host([paused]) .determinate, 4060 :host([paused]) .indeterminate-indicator-1, 4061 :host([paused]) .indeterminate-indicator-2 { 4062 background-color: ${L.GrayText}; 4063 } 4064 `))});var e4,t4=w(()=>{se();yK();e4=Es.compose({baseName:"progress",template:Kj,styles:_K,indeterminateIndicator1:` 4065 <span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span> 4066 `,indeterminateIndicator2:` 4067 <span class="indeterminate-indicator-2" part="indeterminate-indicator-2"></span> 4068 `})});var xK,wK=w(()=>{q();se();ye();Ee();bo();xK=(i,e)=>B` 4069 ${xe("flex")} :host { 4070 align-items: center; 4071 outline: none; 4072 height: calc(${_e} * 1px); 4073 width: calc(${_e} * 1px); 4074 margin: calc(${_e} * 1px) 0; 4075 } 4076 4077 .progress { 4078 height: 100%; 4079 width: 100%; 4080 } 4081 4082 .background { 4083 stroke: ${Mt}; 4084 fill: none; 4085 stroke-width: 2px; 4086 } 4087 4088 .determinate { 4089 stroke: ${ti}; 4090 fill: none; 4091 stroke-width: 2px; 4092 stroke-linecap: round; 4093 transform-origin: 50% 50%; 4094 transform: rotate(-90deg); 4095 transition: all 0.2s ease-in-out; 4096 } 4097 4098 .indeterminate-indicator-1 { 4099 stroke: ${ti}; 4100 fill: none; 4101 stroke-width: 2px; 4102 stroke-linecap: round; 4103 transform-origin: 50% 50%; 4104 transform: rotate(-90deg); 4105 transition: all 0.2s ease-in-out; 4106 animation: spin-infinite 2s linear infinite; 4107 } 4108 4109 :host([paused]) .indeterminate-indicator-1 { 4110 animation-play-state: paused; 4111 stroke: ${Mt}; 4112 } 4113 4114 :host([paused]) .determinate { 4115 stroke: ${da}; 4116 } 4117 4118 @keyframes spin-infinite { 4119 0% { 4120 stroke-dasharray: 0.01px 43.97px; 4121 transform: rotate(0deg); 4122 } 4123 50% { 4124 stroke-dasharray: 21.99px 21.99px; 4125 transform: rotate(450deg); 4126 } 4127 100% { 4128 stroke-dasharray: 0.01px 43.97px; 4129 transform: rotate(1080deg); 4130 } 4131 } 4132 `.withBehaviors(be(B` 4133 .indeterminate-indicator-1, 4134 .determinate { 4135 stroke: ${L.FieldText}; 4136 } 4137 .background { 4138 stroke: ${L.Field}; 4139 } 4140 :host([paused]) .indeterminate-indicator-1 { 4141 stroke: ${L.Field}; 4142 } 4143 :host([paused]) .determinate { 4144 stroke: ${L.GrayText}; 4145 } 4146 `))});var i4,r4=w(()=>{se();wK();i4=Es.compose({baseName:"progress-ring",template:Vj,styles:xK,indeterminateIndicator:` 4147 <svg class="progress" part="progress" viewBox="0 0 16 16"> 4148 <circle 4149 class="background" 4150 part="background" 4151 cx="8px" 4152 cy="8px" 4153 r="7px" 4154 ></circle> 4155 <circle 4156 class="indeterminate-indicator-1" 4157 part="indeterminate-indicator-1" 4158 cx="8px" 4159 cy="8px" 4160 r="7px" 4161 ></circle> 4162 </svg> 4163 `})});var SK,CK=w(()=>{q();se();ye();Ee();Ut();SK=(i,e)=>B` 4164 ${xe("inline-flex")} :host { 4165 --input-size: calc((${_e} / 2) + ${Y}); 4166 align-items: center; 4167 outline: none; 4168 margin: calc(${Y} * 1px) 0; 4169 /* Chromium likes to select label text or the default slot when 4170 the radio is clicked. Maybe there is a better solution here? */ 4171 user-select: none; 4172 position: relative; 4173 flex-direction: row; 4174 transition: all 0.2s ease-in-out; 4175 } 4176 4177 .control { 4178 position: relative; 4179 width: calc((${_e} / 2 + ${Y}) * 1px); 4180 height: calc((${_e} / 2 + ${Y}) * 1px); 4181 box-sizing: border-box; 4182 border-radius: 999px; 4183 border: calc(${he} * 1px) solid ${wr}; 4184 background: ${sn}; 4185 outline: none; 4186 cursor: pointer; 4187 } 4188 4189 :host([aria-invalid='true']) .control { 4190 border-color: ${Dt}; 4191 } 4192 4193 .label { 4194 font-family: ${ke}; 4195 color: ${fe}; 4196 padding-inline-start: calc(${Y} * 2px + 2px); 4197 margin-inline-end: calc(${Y} * 2px + 2px); 4198 cursor: pointer; 4199 font-size: ${Me}; 4200 line-height: ${Le}; 4201 } 4202 4203 .label__hidden { 4204 display: none; 4205 visibility: hidden; 4206 } 4207 4208 .control, 4209 .checked-indicator { 4210 flex-shrink: 0; 4211 } 4212 4213 .checked-indicator { 4214 position: absolute; 4215 top: 5px; 4216 left: 5px; 4217 right: 5px; 4218 bottom: 5px; 4219 border-radius: 999px; 4220 display: inline-block; 4221 background: ${Si}; 4222 fill: ${Si}; 4223 opacity: 0; 4224 pointer-events: none; 4225 } 4226 4227 :host(:not([disabled])) .control:hover { 4228 background: ${yr}; 4229 border-color: ${ha}; 4230 } 4231 4232 :host([aria-invalid='true']:not([disabled])) .control:hover { 4233 border-color: ${ii}; 4234 } 4235 4236 :host(:not([disabled])) .control:active { 4237 background: ${mo}; 4238 border-color: ${Pd}; 4239 } 4240 4241 :host([aria-invalid='true']:not([disabled])) .control:active { 4242 border-color: ${Ci}; 4243 } 4244 4245 :host(:${Z}) .control { 4246 outline: solid calc(${ve} * 1px) ${Ne}; 4247 } 4248 4249 :host([aria-invalid='true']:${Z}) .control { 4250 outline-color: ${Et}; 4251 } 4252 4253 :host([aria-checked='true']) .control { 4254 background: ${st}; 4255 border: calc(${he} * 1px) solid ${st}; 4256 } 4257 4258 :host([aria-invalid='true'][aria-checked='true']) .control { 4259 background-color: ${Dt}; 4260 border-color: ${Dt}; 4261 } 4262 4263 :host([aria-checked='true']:not([disabled])) .control:hover { 4264 background: ${wi}; 4265 border: calc(${he} * 1px) solid ${wi}; 4266 } 4267 4268 :host([aria-invalid='true'][aria-checked='true']:not([disabled])) 4269 .control:hover { 4270 background-color: ${ii}; 4271 border-color: ${ii}; 4272 } 4273 4274 :host([aria-checked='true']:not([disabled])) 4275 .control:hover 4276 .checked-indicator { 4277 background: ${or}; 4278 fill: ${or}; 4279 } 4280 4281 :host([aria-checked='true']:not([disabled])) .control:active { 4282 background: ${Vt}; 4283 border: calc(${he} * 1px) solid ${Vt}; 4284 } 4285 4286 :host([aria-invalid='true'][aria-checked='true']:not([disabled])) 4287 .control:active { 4288 background-color: ${Ci}; 4289 border-color: ${Ci}; 4290 } 4291 4292 :host([aria-checked='true']:not([disabled])) 4293 .control:active 4294 .checked-indicator { 4295 background: ${Li}; 4296 fill: ${Li}; 4297 } 4298 4299 :host([aria-checked="true"]:${Z}:not([disabled])) .control { 4300 outline-offset: 2px; 4301 outline: solid calc(${ve} * 1px) ${Ne}; 4302 } 4303 4304 :host([aria-invalid='true'][aria-checked="true"]:${Z}:not([disabled])) .control { 4305 outline-color: ${Et}; 4306 } 4307 4308 :host([disabled]) .label, 4309 :host([readonly]) .label, 4310 :host([readonly]) .control, 4311 :host([disabled]) .control { 4312 cursor: ${dt}; 4313 } 4314 4315 :host([aria-checked='true']) .checked-indicator { 4316 opacity: 1; 4317 } 4318 4319 :host([disabled]) { 4320 opacity: ${_t}; 4321 } 4322 `.withBehaviors(be(B` 4323 .control, 4324 :host([aria-checked='true']:not([disabled])) .control { 4325 forced-color-adjust: none; 4326 border-color: ${L.FieldText}; 4327 background: ${L.Field}; 4328 } 4329 :host([aria-invalid='true']) { 4330 border-style: dashed; 4331 } 4332 :host(:not([disabled])) .control:hover { 4333 border-color: ${L.Highlight}; 4334 background: ${L.Field}; 4335 } 4336 :host([aria-checked='true']:not([disabled])) .control:hover, 4337 :host([aria-checked='true']:not([disabled])) .control:active { 4338 border-color: ${L.Highlight}; 4339 background: ${L.Highlight}; 4340 } 4341 :host([aria-checked='true']) .checked-indicator { 4342 background: ${L.Highlight}; 4343 fill: ${L.Highlight}; 4344 } 4345 :host([aria-checked='true']:not([disabled])) 4346 .control:hover 4347 .checked-indicator, 4348 :host([aria-checked='true']:not([disabled])) 4349 .control:active 4350 .checked-indicator { 4351 background: ${L.HighlightText}; 4352 fill: ${L.HighlightText}; 4353 } 4354 :host(:${Z}) .control { 4355 border-color: ${L.Highlight}; 4356 outline-offset: 2px; 4357 outline: solid calc(${ve} * 1px) ${L.FieldText}; 4358 } 4359 :host([aria-checked="true"]:${Z}:not([disabled])) .control { 4360 border-color: ${L.Highlight}; 4361 outline: solid calc(${ve} * 1px) ${L.FieldText}; 4362 } 4363 :host([disabled]) { 4364 forced-color-adjust: none; 4365 opacity: 1; 4366 } 4367 :host([disabled]) .label { 4368 color: ${L.GrayText}; 4369 } 4370 :host([disabled]) .control, 4371 :host([aria-checked='true'][disabled]) .control:hover, 4372 .control:active { 4373 background: ${L.Field}; 4374 border-color: ${L.GrayText}; 4375 } 4376 :host([disabled]) .checked-indicator, 4377 :host([aria-checked='true'][disabled]) .control:hover .checked-indicator { 4378 fill: ${L.GrayText}; 4379 background: ${L.GrayText}; 4380 } 4381 `))});var bCe,n4,s4,o4=w(()=>{se();CK();q();bCe=(i,e)=>H` 4382 <template 4383 role="radio" 4384 aria-checked="${t=>t.checked}" 4385 aria-required="${t=>t.required}" 4386 aria-disabled="${t=>t.disabled}" 4387 aria-readonly="${t=>t.readOnly}" 4388 @keypress="${(t,r)=>t.keypressHandler(r.event)}" 4389 @click="${(t,r)=>t.clickHandler(r.event)}" 4390 > 4391 <div part="control" class="control"> 4392 <slot name="checked-indicator"> 4393 ${e.checkedIndicator||""} 4394 </slot> 4395 </div> 4396 <label 4397 part="label" 4398 class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}" 4399 > 4400 <slot ${Re("defaultSlottedNodes")}></slot> 4401 </label> 4402 </template> 4403`,n4=class extends yl{},s4=n4.compose({baseName:"radio",baseClass:yl,template:bCe,styles:SK,checkedIndicator:` 4404 <div part="checked-indicator" class="checked-indicator"></div> 4405 `})});var IK,MK=w(()=>{q();se();Ee();IK=(i,e)=>B` 4406 ${xe("flex")} :host {
4407 align-items: flex-start; 4408 margin: calc(${Y} * 1px) 0; 4409 flex-direction: column; 4410 } 4411 .positioning-region { 4412 display: flex; 4413 flex-wrap: wrap; 4414 } 4415 :host([orientation='vertical']) .positioning-region { 4416 flex-direction: column; 4417 } 4418 :host([orientation='horizontal']) .positioning-region { 4419 flex-direction: row; 4420 } 4421`});var a4,l4,u4=w(()=>{se();MK();q();a4=class extends Zn{constructor(){super();let e=ge.getNotifier(this),t={handleChange(r,n){n==="slottedRadioButtons"&&r.ariaInvalidChanged()}};e.subscribe(t,"slottedRadioButtons")}ariaInvalidChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{var t;e.setAttribute("aria-invalid",(t=this.getAttribute("aria-invalid"))!==null&&t!==void 0?t:"false")})}},l4=a4.compose({baseName:"radio-group",baseClass:Zn,template:Jj,styles:IK})});var vCe,_Ce,EK,TK=w(()=>{q();se();Ee();Ut();vCe=Mn.create("clear-button-hover").withDefault(i=>{let e=go.getValueFor(i),t=ca.getValueFor(i);return e.evaluate(i,t.evaluate(i).hover).hover}),_Ce=Mn.create("clear-button-active").withDefault(i=>{let e=go.getValueFor(i),t=ca.getValueFor(i);return e.evaluate(i,t.evaluate(i).hover).active}),EK=(i,e)=>B` 4422 ${El} 4423 4424 .control::-webkit-search-cancel-button { 4425 -webkit-appearance: none; 4426 } 4427 4428 .control:hover, 4429 .control:${Z}, 4430 .control:disabled, 4431 .control:active { 4432 outline: none; 4433 } 4434 4435 .clear-button { 4436 height: calc(100% - 2px); 4437 opacity: 0; 4438 margin: 1px; 4439 background: transparent; 4440 color: ${fe}; 4441 fill: currentcolor; 4442 border: none; 4443 border-radius: calc(${me} * 1px); 4444 min-width: calc(${_e} * 1px); 4445 font-size: ${Me}; 4446 line-height: ${Le}; 4447 outline: none; 4448 font-family: ${ke}; 4449 padding: 0 calc((10 + (${Y} * 2 * ${Wi})) * 1px); 4450 } 4451 4452 .clear-button:hover { 4453 background: ${on}; 4454 } 4455 4456 .clear-button:active { 4457 background: ${an}; 4458 } 4459 4460 :host([appearance='filled']) .clear-button:hover { 4461 background: ${vCe}; 4462 } 4463 4464 :host([appearance='filled']) .clear-button:active { 4465 background: ${_Ce}; 4466 } 4467 4468 .input-wrapper { 4469 display: flex; 4470 position: relative; 4471 width: 100%; 4472 } 4473 4474 .start, 4475 .end { 4476 display: flex; 4477 margin: 1px; 4478 fill: currentcolor; 4479 } 4480 4481 ::slotted([slot='end']) { 4482 height: 100%; 4483 } 4484 4485 .end { 4486 margin-inline-end: 1px; 4487 height: calc(100% - 2px); 4488 } 4489 4490 ::slotted(svg) { 4491 /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ 4492 width: 16px; 4493 height: 16px; 4494 margin-inline-end: 11px; 4495 margin-inline-start: 11px; 4496 margin-top: auto; 4497 margin-bottom: auto; 4498 } 4499 4500 .clear-button__hidden { 4501 opacity: 0; 4502 } 4503 4504 :host(:hover:not([disabled], [readOnly])) .clear-button, 4505 :host(:active:not([disabled], [readOnly])) .clear-button, 4506 :host(:focus-within:not([disabled], [readOnly])) .clear-button { 4507 opacity: 1; 4508 } 4509 4510 :host(:hover:not([disabled], [readOnly])) .clear-button__hidden, 4511 :host(:active:not([disabled], [readOnly])) .clear-button__hidden, 4512 :host(:focus-within:not([disabled], [readOnly])) .clear-button__hidden { 4513 opacity: 0; 4514 } 4515`});var Db,c4,d4=w(()=>{ln();q();se();TK();Db=class extends _r{constructor(){super(...arguments),this.appearance="outline"}};te([O],Db.prototype,"appearance",void 0);c4=Db.compose({baseName:"search",baseClass:_r,template:lV,styles:EK,shadowOptions:{delegatesFocus:!0}})});var zd,h4,f4=w(()=>{ln();q();se();Ee();w6();zd=class extends rn{constructor(){super(...arguments),this.listboxScrollWidth=""}autoWidthChanged(e,t){t?this.setAutoWidth():this.style.removeProperty("width")}setAutoWidth(){if(!this.autoWidth||!this.isConnected)return;let e=this.listbox.getBoundingClientRect().width;e===0&&this.listbox.hidden&&(Object.assign(this.listbox.style,{visibility:"hidden"}),this.listbox.removeAttribute("hidden"),e=this.listbox.getBoundingClientRect().width,this.listbox.setAttribute("hidden",""),this.listbox.style.removeProperty("visibility")),e>0&&Object.assign(this.style,{width:`${e}px`})}connectedCallback(){super.connectedCallback(),this.setAutoWidth(),this.listbox&&Pe.setValueFor(this.listbox,Rd)}slottedOptionsChanged(e,t){super.slottedOptionsChanged(e,t),this.setAutoWidth()}get listboxMaxHeight(){return Math.floor(this.maxHeight/ub.getValueFor(this)).toString()}listboxScrollWidthChanged(){this.updateComputedStylesheet()}get selectSize(){var e;return`${(e=this.size)!==null&&e!==void 0?e:this.multiple?4:0}`}multipleChanged(e,t){super.multipleChanged(e,t),this.updateComputedStylesheet()}maxHeightChanged(e,t){this.collapsible&&this.updateComputedStylesheet()}setPositioning(){super.setPositioning(),this.updateComputedStylesheet()}sizeChanged(e,t){if(super.sizeChanged(e,t),this.updateComputedStylesheet(),this.collapsible){requestAnimationFrame(()=>{this.listbox.style.setProperty("display","flex"),this.listbox.style.setProperty("overflow","visible"),this.listbox.style.setProperty("visibility","hidden"),this.listbox.style.setProperty("width","auto"),this.listbox.hidden=!1,this.listboxScrollWidth=`${this.listbox.scrollWidth}`,this.listbox.hidden=!0,this.listbox.style.removeProperty("display"),this.listbox.style.removeProperty("overflow"),this.listbox.style.removeProperty("visibility"),this.listbox.style.removeProperty("width")});return}this.listboxScrollWidth=""}updateComputedStylesheet(){this.computedStylesheet&&this.$fastController.removeStyles(this.computedStylesheet),this.computedStylesheet=B` 4516 :host { 4517 --listbox-max-height: ${this.listboxMaxHeight}; 4518 --listbox-scroll-width: ${this.listboxScrollWidth}; 4519 --size: ${this.selectSize}; 4520 } 4521 `,this.$fastController.addStyles(this.computedStylesheet)}};te([O({attribute:"autowidth",mode:"boolean"})],zd.prototype,"autoWidth",void 0);te([O({attribute:"minimal",mode:"boolean"})],zd.prototype,"minimal",void 0);te([N],zd.prototype,"listboxScrollWidth",void 0);h4=zd.compose({baseName:"select",baseClass:rn,template:mV,styles:Mb,indicator:` 4522 <svg 4523 class="select-indicator" 4524 part="select-indicator"
4525 viewBox="0 0 12 7" 4526 xmlns="http://www.w3.org/2000/svg" 4527 > 4528 <path 4529 d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z" 4530 /> 4531 </svg> 4532 `})});var kK,AK=w(()=>{q();se();ye();se();Ee();kK=(i,e)=>B` 4533 ${xe("block")} :host { 4534 --skeleton-fill-default: #e1dfdd; 4535 overflow: hidden; 4536 width: 100%; 4537 position: relative; 4538 background-color: var(--skeleton-fill, var(--skeleton-fill-default)); 4539 --skeleton-animation-gradient-default: linear-gradient( 4540 270deg, 4541 var(--skeleton-fill, var(--skeleton-fill-default)) 0%, 4542 #f3f2f1 51.13%, 4543 var(--skeleton-fill, var(--skeleton-fill-default)) 100% 4544 ); 4545 --skeleton-animation-timing-default: ease-in-out; 4546 } 4547 4548 :host([shape='rect']) { 4549 border-radius: calc(${me} * 1px); 4550 } 4551 4552 :host([shape='circle']) { 4553 border-radius: 100%; 4554 overflow: hidden; 4555 } 4556 4557 object { 4558 position: absolute; 4559 width: 100%; 4560 height: auto; 4561 z-index: 2; 4562 } 4563 4564 object img { 4565 width: 100%; 4566 height: auto; 4567 } 4568 4569 ${xe("block")} span.shimmer { 4570 position: absolute; 4571 width: 100%; 4572 height: 100%; 4573 background-image: var( 4574 --skeleton-animation-gradient, 4575 var(--skeleton-animation-gradient-default) 4576 ); 4577 background-size: 0px 0px / 90% 100%; 4578 background-repeat: no-repeat; 4579 background-color: var(--skeleton-animation-fill, ${Mt}); 4580 animation: shimmer 2s infinite; 4581 animation-timing-function: var( 4582 --skeleton-animation-timing, 4583 var(--skeleton-timing-default) 4584 ); 4585 animation-direction: normal; 4586 z-index: 1; 4587 } 4588 4589 ::slotted(svg) { 4590 z-index: 2; 4591 } 4592 4593 ::slotted(.pattern) { 4594 width: 100%; 4595 height: 100%; 4596 } 4597 4598 @keyframes shimmer { 4599 0% { 4600 transform: translateX(-100%); 4601 } 4602 100% { 4603 transform: translateX(100%); 4604 } 4605 } 4606 `.withBehaviors(be(B` 4607 :host { 4608 forced-color-adjust: none; 4609 background-color: ${L.ButtonFace}; 4610 box-shadow: 0 0 0 1px ${L.ButtonText}; 4611 } 4612 4613 ${xe("block")} span.shimmer { 4614 display: none; 4615 } 4616 `))});var p4,m4=w(()=>{se();AK();p4=xl.compose({baseName:"skeleton",template:vV,styles:kK})});var yCe,xCe,RK,DK=w(()=>{q();se();ye();Ee();Ut();yCe=B` 4617 .track-start { 4618 left: 0; 4619 } 4620`,xCe=B` 4621 .track-start { 4622 right: 0; 4623 } 4624`,RK=(i,e)=>B` 4625 :host([hidden]) { 4626 display: none; 4627 } 4628 4629 ${xe("inline-grid")} :host { 4630 --thumb-size: calc(${_e} * 0.5 - ${Y}); 4631 --thumb-translate: calc( 4632 var(--thumb-size) * -0.5 + var(--track-width) / 2 4633 ); 4634 --track-overhang: calc((${Y} / 2) * -1); 4635 --track-width: ${Y}; 4636 --jp-slider-height: calc(var(--thumb-size) * 10); 4637 align-items: center; 4638 width: 100%; 4639 margin: calc(${Y} * 1px) 0; 4640 user-select: none; 4641 box-sizing: border-box; 4642 border-radius: calc(${me} * 1px); 4643 outline: none; 4644 cursor: pointer; 4645 } 4646 :host([orientation='horizontal']) .positioning-region { 4647 position: relative; 4648 margin: 0 8px; 4649 display: grid; 4650 grid-template-rows: calc(var(--thumb-size) * 1px) 1fr; 4651 } 4652 :host([orientation='vertical']) .positioning-region { 4653 position: relative; 4654 margin: 0 8px; 4655 display: grid; 4656 height: 100%; 4657 grid-template-columns: calc(var(--thumb-size) * 1px) 1fr; 4658 } 4659 4660 :host(:${Z}) .thumb-cursor { 4661 box-shadow: 4662 0 0 0 2px ${Pe}, 4663 0 0 0 calc((2 + ${ve}) * 1px) ${Ne}; 4664 } 4665 4666 :host([aria-invalid='true']:${Z}) .thumb-cursor { 4667 box-shadow: 4668 0 0 0 2px ${Pe}, 4669 0 0 0 calc((2 + ${ve}) * 1px) ${Et}; 4670 } 4671 4672 .thumb-container { 4673 position: absolute; 4674 height: calc(var(--thumb-size) * 1px); 4675 width: calc(var(--thumb-size) * 1px); 4676 transition: all 0.2s ease; 4677 color: ${fe}; 4678 fill: currentcolor; 4679 } 4680 .thumb-cursor { 4681 border: none; 4682 width: calc(var(--thumb-size) * 1px); 4683 height: calc(var(--thumb-size) * 1px); 4684 background: ${fe}; 4685 border-radius: calc(${me} * 1px); 4686 } 4687 .thumb-cursor:hover { 4688 background: ${fe}; 4689 border-color: ${ha}; 4690 } 4691 .thumb-cursor:active { 4692 background: ${fe}; 4693 } 4694 .track-start { 4695 background: ${ti}; 4696 position: absolute; 4697 height: 100%; 4698 left: 0; 4699 border-radius: calc(${me} * 1px); 4700 } 4701 :host([aria-invalid='true']) .track-start { 4702 background-color: ${Dt}; 4703 } 4704 :host([orientation='horizontal']) .thumb-container {
4705 transform: translateX(calc(var(--thumb-size) * 0.5px)) 4706 translateY(calc(var(--thumb-translate) * 1px)); 4707 } 4708 :host([orientation='vertical']) .thumb-container { 4709 transform: translateX(calc(var(--thumb-translate) * 1px)) 4710 translateY(calc(var(--thumb-size) * 0.5px)); 4711 } 4712 :host([orientation='horizontal']) { 4713 min-width: calc(var(--thumb-size) * 1px); 4714 } 4715 :host([orientation='horizontal']) .track { 4716 right: calc(var(--track-overhang) * 1px); 4717 left: calc(var(--track-overhang) * 1px); 4718 align-self: start; 4719 height: calc(var(--track-width) * 1px); 4720 } 4721 :host([orientation='vertical']) .track { 4722 top: calc(var(--track-overhang) * 1px); 4723 bottom: calc(var(--track-overhang) * 1px); 4724 width: calc(var(--track-width) * 1px); 4725 height: 100%; 4726 } 4727 .track { 4728 background: ${wr}; 4729 position: absolute; 4730 border-radius: calc(${me} * 1px); 4731 } 4732 :host([orientation='vertical']) { 4733 height: calc(var(--fast-slider-height) * 1px); 4734 min-height: calc(var(--thumb-size) * 1px); 4735 min-width: calc(${Y} * 20px); 4736 } 4737 :host([orientation='vertical']) .track-start { 4738 height: auto; 4739 width: 100%; 4740 top: 0; 4741 } 4742 :host([disabled]), 4743 :host([readonly]) { 4744 cursor: ${dt}; 4745 } 4746 :host([disabled]) { 4747 opacity: ${_t}; 4748 } 4749 `.withBehaviors(new es(yCe,xCe),be(B` 4750 .thumb-cursor { 4751 forced-color-adjust: none; 4752 border-color: ${L.FieldText}; 4753 background: ${L.FieldText}; 4754 } 4755 .thumb-cursor:hover, 4756 .thumb-cursor:active { 4757 background: ${L.Highlight}; 4758 } 4759 .track { 4760 forced-color-adjust: none; 4761 background: ${L.FieldText}; 4762 } 4763 :host(:${Z}) .thumb-cursor { 4764 border-color: ${L.Highlight}; 4765 } 4766 :host([disabled]) { 4767 opacity: 1; 4768 } 4769 :host([disabled]) .track, 4770 :host([disabled]) .thumb-cursor { 4771 forced-color-adjust: none; 4772 background: ${L.GrayText}; 4773 } 4774 4775 :host(:${Z}) .thumb-cursor { 4776 background: ${L.Highlight}; 4777 border-color: ${L.Highlight}; 4778 box-shadow: 4779 0 0 0 2px ${L.Field}, 4780 0 0 0 4px ${L.FieldText}; 4781 } 4782 `))});var g4,b4,v4=w(()=>{se();DK();g4=class extends xi{},b4=g4.compose({baseName:"slider",baseClass:xi,template:MV,styles:RK,thumb:` 4783 <div class="thumb-cursor"></div> 4784 `})});var _4,y4,OK,LK=w(()=>{q();se();ye();Ee();Ut();_4=B` 4785 :host { 4786 align-self: start; 4787 grid-row: 2; 4788 margin-top: -2px; 4789 height: calc((${_e} / 2 + ${Y}) * 1px); 4790 width: auto; 4791 } 4792 .container { 4793 grid-template-rows: auto auto; 4794 grid-template-columns: 0; 4795 } 4796 .label { 4797 margin: 2px 0; 4798 } 4799`,y4=B` 4800 :host { 4801 justify-self: start; 4802 grid-column: 2; 4803 margin-left: 2px; 4804 height: auto; 4805 width: calc((${_e} / 2 + ${Y}) * 1px); 4806 } 4807 .container { 4808 grid-template-columns: auto auto; 4809 grid-template-rows: 0; 4810 min-width: calc(var(--thumb-size) * 1px); 4811 height: calc(var(--thumb-size) * 1px); 4812 } 4813 .mark { 4814 transform: rotate(90deg); 4815 align-self: center; 4816 } 4817 .label { 4818 margin-left: calc((${Y} / 2) * 3px); 4819 align-self: center; 4820 } 4821`,OK=(i,e)=>B` 4822 ${xe("block")} :host { 4823 font-family: ${ke}; 4824 color: ${fe}; 4825 fill: currentcolor; 4826 } 4827 .root { 4828 position: absolute; 4829 display: grid; 4830 } 4831 .container { 4832 display: grid; 4833 justify-self: center; 4834 } 4835 .label { 4836 justify-self: center; 4837 align-self: center; 4838 white-space: nowrap; 4839 max-width: 30px; 4840 } 4841 .mark { 4842 width: calc((${Y} / 4) * 1px); 4843 height: calc(${_e} * 0.25 * 1px); 4844 background: ${wr}; 4845 justify-self: center; 4846 } 4847 :host(.disabled) { 4848 opacity: ${_t}; 4849 } 4850 `.withBehaviors(be(B` 4851 .mark { 4852 forced-color-adjust: none; 4853 background: ${L.FieldText}; 4854 } 4855 :host(.disabled) { 4856 forced-color-adjust: none; 4857 opacity: 1; 4858 } 4859 :host(.disabled) .label { 4860 color: ${L.GrayText}; 4861 } 4862 :host(.disabled) .mark { 4863 background: ${L.GrayText}; 4864 } 4865 `))});var x4,w4,S4=w(()=>{se();ye();LK();
4865x4=class extends En{sliderOrientationChanged(){this.sliderOrientation===et.horizontal?(this.$fastController.addStyles(_4),this.$fastController.removeStyles(y4)):(this.$fastController.addStyles(y4),this.$fastController.removeStyles(_4))}},w4=x4.compose({baseName:"slider-label",baseClass:En,template:wV,styles:OK})});var $K,FK=w(()=>{q();se();ye();Ee();Ut();$K=(i,e)=>B` 4866 :host([hidden]) { 4867 display: none; 4868 } 4869 4870 ${xe("inline-flex")} :host { 4871 align-items: center; 4872 outline: none; 4873 font-family: ${ke}; 4874 margin: calc(${Y} * 1px) 0; 4875 ${""} user-select: none; 4876 } 4877 4878 :host([disabled]) { 4879 opacity: ${_t}; 4880 } 4881 4882 :host([disabled]) .label, 4883 :host([readonly]) .label, 4884 :host([readonly]) .switch, 4885 :host([disabled]) .switch { 4886 cursor: ${dt}; 4887 } 4888 4889 .switch { 4890 position: relative; 4891 outline: none; 4892 box-sizing: border-box; 4893 width: calc(${_e} * 1px); 4894 height: calc((${_e} / 2 + ${Y}) * 1px); 4895 background: ${sn}; 4896 border-radius: calc(${me} * 1px); 4897 border: calc(${he} * 1px) solid ${wr}; 4898 } 4899 4900 :host([aria-invalid='true']) .switch { 4901 border-color: ${Dt}; 4902 } 4903 4904 .switch:hover { 4905 background: ${yr}; 4906 border-color: ${ha}; 4907 cursor: pointer; 4908 } 4909 4910 :host([disabled]) .switch:hover, 4911 :host([readonly]) .switch:hover { 4912 background: ${yr}; 4913 border-color: ${ha}; 4914 cursor: ${dt}; 4915 } 4916 4917 :host([aria-invalid='true'][disabled]) .switch:hover, 4918 :host([aria-invalid='true'][readonly]) .switch:hover { 4919 border-color: ${ii}; 4920 } 4921 4922 :host(:not([disabled])) .switch:active { 4923 background: ${mo}; 4924 border-color: ${Pd}; 4925 } 4926 4927 :host([aria-invalid='true']:not([disabled])) .switch:active { 4928 border-color: ${Ci}; 4929 } 4930 4931 :host(:${Z}) .switch { 4932 outline-offset: 2px; 4933 outline: solid calc(${ve} * 1px) ${Ne}; 4934 } 4935 4936 :host([aria-invalid='true']:${Z}) .switch { 4937 outline-color: ${Et}; 4938 } 4939 4940 .checked-indicator { 4941 position: absolute; 4942 top: 5px; 4943 bottom: 5px; 4944 background: ${fe}; 4945 border-radius: calc(${me} * 1px); 4946 transition: all 0.2s ease-in-out; 4947 } 4948 4949 .status-message { 4950 color: ${fe}; 4951 cursor: pointer; 4952 font-size: ${Me}; 4953 line-height: ${Le}; 4954 } 4955 4956 :host([disabled]) .status-message, 4957 :host([readonly]) .status-message { 4958 cursor: ${dt}; 4959 } 4960 4961 .label { 4962 color: ${fe}; 4963 margin-inline-end: calc(${Y} * 2px + 2px); 4964 font-size: ${Me}; 4965 line-height: ${Le}; 4966 cursor: pointer; 4967 } 4968 4969 .label__hidden { 4970 display: none; 4971 visibility: hidden; 4972 } 4973 4974 ::slotted([slot='checked-message']), 4975 ::slotted([slot='unchecked-message']) { 4976 margin-inline-start: calc(${Y} * 2px + 2px); 4977 } 4978 4979 :host([aria-checked='true']) .checked-indicator { 4980 background: ${Si}; 4981 } 4982 4983 :host([aria-checked='true']) .switch { 4984 background: ${st}; 4985 border-color: ${st}; 4986 } 4987 4988 :host([aria-checked='true']:not([disabled])) .switch:hover { 4989 background: ${wi}; 4990 border-color: ${wi}; 4991 } 4992 4993 :host([aria-invalid='true'][aria-checked='true']) .switch { 4994 background-color: ${Dt}; 4995 border-color: ${Dt}; 4996 } 4997 4998 :host([aria-invalid='true'][aria-checked='true']:not([disabled])) 4999 .switch:hover { 5000 background-color: ${ii}; 5001 border-color: ${ii}; 5002 } 5003 5004 :host([aria-checked='true']:not([disabled])) 5005 .switch:hover 5006 .checked-indicator { 5007 background: ${or}; 5008 } 5009 5010 :host([aria-checked='true']:not([disabled])) .switch:active { 5011 background: ${Vt}; 5012 border-color: ${Vt}; 5013 } 5014 5015 :host([aria-invalid='true'][aria-checked='true']:not([disabled])) 5016 .switch:active { 5017 background-color: ${Ci}; 5018 border-color: ${Ci}; 5019 } 5020 5021 :host([aria-checked='true']:not([disabled])) 5022 .switch:active 5023 .checked-indicator { 5024 background: ${Li}; 5025 } 5026 5027 :host([aria-checked="true"]:${Z}:not([disabled])) .switch { 5028 outline: solid calc(${ve} * 1px) ${Ne}; 5029 } 5030 5031 :host([aria-invalid='true'][aria-checked="true"]:${Z}:not([disabled])) .switch { 5032 outline-color: ${Et}; 5033 } 5034 5035 .unchecked-message { 5036 display: block; 5037 } 5038 5039 .checked-message { 5040 display: none; 5041 } 5042 5043 :host([aria-checked='true']) .unchecked-message { 5044 display: none; 5045 } 5046 5047 :host([aria-checked='true']) .checked-message { 5048 display: block; 5049 } 5050 `.withBehaviors(be(B` 5051 .checked-indicator, 5052 :host(:not([disabled])) .switch:active .checked-indicator { 5053 forced-color-adjust: none; 5054 background: ${L.FieldText}; 5055 } 5056 .switch { 5057 forced-color-adjust: none; 5058 background: ${L.Field}; 5059 border-color: ${L.FieldText}; 5060 } 5061 :host([aria-invalid='true']) .switch { 5062 border-style: dashed; 5063 } 5064 :host(:not([disabled])) .switch:hover { 5065 background: ${L.HighlightText}; 5066 border-color: ${L.Highlight}; 5067 } 5068 :host([aria-checked='true']) .switch { 5069 background: ${L.Highlight}; 5070 border-color: ${L.Highlight}; 5071 } 5072 :host([aria-checked='true']:not([disabled])) .switch:hover, 5073 :host(:not([disabled])) .switch:active { 5074 background: ${L.HighlightText}; 5075 border-color: ${L.Highlight}; 5076 } 5077 :host([aria-checked='true']) .checked-indicator { 5078 background: ${L.HighlightText}; 5079 } 5080 :host([aria-checked='true']:not([disabled])) 5081 .switch:hover 5082 .checked-indicator { 5083 background: ${L.Highlight}; 5084 } 5085 :host([disabled]) { 5086 opacity: 1; 5087 } 5088 :host(:${Z}) .switch { 5089 border-color: ${L.Highlight}; 5090 outline-offset: 2px; 5091 outline: solid calc(${ve} * 1px) ${L.FieldText}; 5092 } 5093 :host([aria-checked="true"]:${Z}:not([disabled])) .switch { 5094 outline: solid calc(${ve} * 1px) ${L.FieldText}; 5095 } 5096 :host([disabled]) .checked-indicator { 5097 background: ${L.GrayText}; 5098 } 5099 :host([disabled]) .switch { 5100 background: ${L.Field}; 5101 border-color: ${L.GrayText}; 5102 } 5103 `),new es(B` 5104 .checked-indicator { 5105 left: 5px; 5106 right: calc(((${_e} / 2) + 1) * 1px); 5107 } 5108 5109 :host([aria-checked='true']) .checked-indicator { 5110 left: calc(((${_e} / 2) + 1) * 1px); 5111 right: 5px; 5112 } 5113 `,B` 5114 .checked-indicator { 5115 right: 5px; 5116 left: calc(((${_e} / 2) + 1) * 1px); 5117 } 5118 5119 :host([aria-checked='true']) .checked-indicator { 5120 right: calc(((${_e} / 2) + 1) * 1px); 5121 left: 5px; 5122 } 5123 `))});var C4,I4,M4=w(()=>{se();FK();C4=class extends Bu{},I4=C4.compose({baseName:"switch",baseClass:Bu,template:RV,styles:$K,switch:`
5124 <span class="checked-indicator" part="checked-indicator"></span> 5125 `})});var PK,NK=w(()=>{q();se();Ee();PK=(i,e)=>B` 5126 ${xe("block")} :host { 5127 box-sizing: border-box; 5128 font-size: ${Me}; 5129 line-height: ${Le}; 5130 padding: 0 calc((6 + (${Y} * 2 * ${Wi})) * 1px); 5131 } 5132`});var E4,T4=w(()=>{se();NK();E4=q1.compose({baseName:"tab-panel",template:FV,styles:PK})});var zK,BK=w(()=>{q();se();ye();Ee();bo();zK=(i,e)=>B` 5133 ${xe("inline-flex")} :host { 5134 box-sizing: border-box; 5135 font-family: ${ke}; 5136 font-size: ${Me}; 5137 line-height: ${Le}; 5138 height: calc(${_e} * 1px); 5139 padding: calc(${Y} * 5px) calc(${Y} * 4px); 5140 color: ${da}; 5141 fill: currentcolor; 5142 border-radius: 0 0 calc(${me} * 1px) 5143 calc(${me} * 1px); 5144 border: calc(${he} * 1px) solid transparent; 5145 align-items: center; 5146 justify-content: center; 5147 grid-row: 2; 5148 cursor: pointer; 5149 } 5150 5151 :host(:hover) { 5152 color: ${fe}; 5153 fill: currentcolor; 5154 } 5155 5156 :host(:active) { 5157 color: ${fe}; 5158 fill: currentcolor; 5159 } 5160 5161 :host([disabled]) { 5162 cursor: ${dt}; 5163 opacity: ${_t}; 5164 } 5165 5166 :host([disabled]:hover) { 5167 color: ${da}; 5168 background: ${xr}; 5169 } 5170 5171 :host([aria-selected='true']) { 5172 background: ${Mt}; 5173 color: ${fe}; 5174 fill: currentcolor; 5175 } 5176 5177 :host([aria-selected='true']:hover) { 5178 background: ${po}; 5179 color: ${fe}; 5180 fill: currentcolor; 5181 } 5182 5183 :host([aria-selected='true']:active) { 5184 background: ${Dd}; 5185 color: ${fe}; 5186 fill: currentcolor; 5187 } 5188 5189 :host(:${Z}) { 5190 outline: none; 5191 border-color: ${Ne}; 5192 box-shadow: 0 0 0 calc((${ve} - ${he}) * 1px) 5193 ${Ne}; 5194 } 5195 5196 :host(:focus) { 5197 outline: none; 5198 } 5199 5200 :host(.vertical) { 5201 justify-content: end; 5202 grid-column: 2; 5203 border-bottom-left-radius: 0; 5204 border-top-right-radius: calc(${me} * 1px); 5205 } 5206 5207 :host(.vertical[aria-selected='true']) { 5208 z-index: 2; 5209 } 5210 5211 :host(.vertical:hover) { 5212 color: ${fe}; 5213 } 5214 5215 :host(.vertical:active) { 5216 color: ${fe}; 5217 } 5218 5219 :host(.vertical:hover[aria-selected='true']) { 5220 } 5221 `.withBehaviors(be(B` 5222 :host { 5223 forced-color-adjust: none; 5224 border-color: transparent; 5225 color: ${L.ButtonText}; 5226 fill: currentcolor; 5227 } 5228 :host(:hover), 5229 :host(.vertical:hover), 5230 :host([aria-selected='true']:hover) { 5231 background: ${L.Highlight}; 5232 color: ${L.HighlightText}; 5233 fill: currentcolor; 5234 } 5235 :host([aria-selected='true']) { 5236 background: ${L.HighlightText}; 5237 color: ${L.Highlight}; 5238 fill: currentcolor; 5239 } 5240 :host(:${Z}) { 5241 border-color: ${L.ButtonText}; 5242 box-shadow: none; 5243 } 5244 :host([disabled]), 5245 :host([disabled]:hover) { 5246 opacity: 1; 5247 color: ${L.GrayText}; 5248 background: ${L.ButtonFace}; 5249 } 5250 `))});var k4,A4=w(()=>{se();BK();k4=gp.compose({baseName:"tab",template:BV,styles:zK})});var qK,HK=w(()=>{q();se();ye();Ee();Ut();qK=(i,e)=>B` 5251 ${xe("grid")} :host { 5252 box-sizing: border-box; 5253 font-family: ${ke}; 5254 font-size: ${Me}; 5255 line-height: ${Le}; 5256 color: ${fe}; 5257 grid-template-columns: auto 1fr auto; 5258 grid-template-rows: auto 1fr; 5259 } 5260 5261 .tablist { 5262 display: grid; 5263 grid-template-rows: auto auto; 5264 grid-template-columns: auto; 5265 position: relative; 5266 width: max-content; 5267 align-self: end; 5268 padding: calc(${Y} * 4px) calc(${Y} * 4px) 0; 5269 box-sizing: border-box; 5270 } 5271 5272 .start, 5273 .end { 5274 align-self: center; 5275 } 5276 5277 .activeIndicator { 5278 grid-row: 1; 5279 grid-column: 1; 5280 width: 100%; 5281 height: 4px; 5282 justify-self: center; 5283 background: ${st}; 5284 margin-top: 0; 5285 border-radius: calc(${me} * 1px) 5286 calc(${me} * 1px) 0 0; 5287 } 5288 5289 .activeIndicatorTransition { 5290 transition: transform 0.01s ease-in-out; 5291 } 5292 5293 .tabpanel { 5294 grid-row: 2; 5295 grid-column-start: 1; 5296 grid-column-end: 4; 5297 position: relative; 5298 } 5299 5300 :host([orientation='vertical']) { 5301 grid-template-rows: auto 1fr auto; 5302 grid-template-columns: auto 1fr; 5303 } 5304 5305 :host([orientation='vertical']) .tablist { 5306 grid-row-start: 2; 5307 grid-row-end: 2; 5308 display: grid; 5309 grid-template-rows: auto; 5310 grid-template-columns: auto 1fr; 5311 position: relative; 5312 width: max-content; 5313 justify-self: end; 5314 align-self: flex-start; 5315 width: 100%; 5316 padding: 0 calc(${Y} * 4px) 5317 calc((${_e} - ${Y}) * 1px) 0; 5318 } 5319 5320 :host([orientation='vertical']) .tabpanel { 5321 grid-column: 2; 5322 grid-row-start: 1; 5323 grid-row-end: 4; 5324 } 5325 5326 :host([orientation='vertical']) .end { 5327 grid-row: 3; 5328 } 5329 5330 :host([orientation='vertical']) .activeIndicator { 5331 grid-column: 1; 5332 grid-row: 1; 5333 width: 4px; 5334 height: 100%; 5335 margin-inline-end: 0px; 5336 align-self: center; 5337 background: ${st}; 5338 border-radius: calc(${me} * 1px) 0 0 5339 calc(${me} * 1px); 5340 } 5341 5342 :host([orientation='vertical']) .activeIndicatorTransition { 5343 transition: transform 0.01s ease-in-out; 5344 } 5345 `.withBehaviors(be(B` 5346 .activeIndicator, 5347 :host([orientation='vertical']) .activeIndicator { 5348 forced-color-adjust: none; 5349 background: ${L.Highlight}; 5350 } 5351 `))});var R4,D4=w(()=>{se();HK();A4();T4();R4=Qn.compose({baseName:"tabs",template:VV,styles:qK})});var jK,VK=w(()=>{q();se();Ee();Ut();jK=(i,e)=>B`
5352 ${xe("inline-block")} :host { 5353 font-family: ${ke}; 5354 outline: none; 5355 user-select: none; 5356 } 5357 5358 .control { 5359 box-sizing: border-box; 5360 position: relative; 5361 color: ${fe}; 5362 background: ${sn}; 5363 border-radius: calc(${me} * 1px); 5364 border: calc(${he} * 1px) solid ${Ld}; 5365 height: calc(${_e} * 2px); 5366 font: inherit; 5367 font-size: ${Me}; 5368 line-height: ${Le}; 5369 padding: calc(${Y} * 2px + 1px); 5370 width: 100%; 5371 resize: none; 5372 } 5373 5374 :host([aria-invalid='true']) .control { 5375 border-color: ${Dt}; 5376 } 5377 5378 .control:hover:enabled { 5379 background: ${yr}; 5380 border-color: ${$d}; 5381 } 5382 5383 :host([aria-invalid='true']) .control:hover:enabled { 5384 border-color: ${ii}; 5385 } 5386 5387 .control:active:enabled { 5388 background: ${mo}; 5389 border-color: ${Fd}; 5390 } 5391 5392 :host([aria-invalid='true']) .control:active:enabled { 5393 border-color: ${Ci}; 5394 } 5395 5396 .control:hover, 5397 .control:${Z}, 5398 .control:disabled, 5399 .control:active { 5400 outline: none; 5401 } 5402 5403 :host(:focus-within) .control { 5404 border-color: ${Ne}; 5405 box-shadow: 0 0 0 calc((${ve} - ${he}) * 1px) 5406 ${Ne}; 5407 } 5408 5409 :host([aria-invalid='true']:focus-within) .control { 5410 border-color: ${Et}; 5411 box-shadow: 0 0 0 calc((${ve} - ${he}) * 1px) 5412 ${Et}; 5413 } 5414 5415 :host([appearance='filled']) .control { 5416 background: ${Mt}; 5417 } 5418 5419 :host([appearance='filled']:hover:not([disabled])) .control { 5420 background: ${po}; 5421 } 5422 5423 :host([resize='both']) .control { 5424 resize: both; 5425 } 5426 5427 :host([resize='horizontal']) .control { 5428 resize: horizontal; 5429 } 5430 5431 :host([resize='vertical']) .control { 5432 resize: vertical; 5433 } 5434 5435 .label { 5436 display: block; 5437 color: ${fe}; 5438 cursor: pointer; 5439 font-size: ${Me}; 5440 line-height: ${Le}; 5441 margin-bottom: 4px; 5442 } 5443 5444 .label__hidden { 5445 display: none; 5446 visibility: hidden; 5447 } 5448 5449 :host([disabled]) .label, 5450 :host([readonly]) .label, 5451 :host([readonly]) .control, 5452 :host([disabled]) .control { 5453 cursor: ${dt}; 5454 } 5455 :host([disabled]) { 5456 opacity: ${_t}; 5457 } 5458 :host([disabled]) .control { 5459 border-color: ${wr}; 5460 } 5461 5462 :host([cols]) { 5463 width: initial; 5464 } 5465 5466 :host([rows]) .control { 5467 height: initial; 5468 } 5469 `.withBehaviors(be(B` 5470 :host([disabled]) { 5471 opacity: 1; 5472 } 5473 5474 :host([aria-invalid='true']) .control { 5475 border-style: dashed; 5476 } 5477 `))});var Ob,O4,L4=w(()=>{ln();q();se();VK();Ob=class extends Oi{constructor(){super(...arguments),this.appearance="outline"}};te([O],Ob.prototype,"appearance",void 0);O4=Ob.compose({baseName:"text-area",baseClass:Oi,template:JV,styles:jK,shadowOptions:{delegatesFocus:!0}})});var UK,WK=w(()=>{q();Ut();UK=(i,e)=>B` 5478 ${El} 5479 5480 .start, 5481 .end { 5482 display: flex; 5483 } 5484`});var Lb,$4,F4=w(()=>{ln();q();se();WK();Lb=class extends sr{constructor(){super(...arguments),this.appearance="outline"}};te([O],Lb.prototype,"appearance",void 0);$4=Lb.compose({baseName:"text-field",baseClass:sr,template:eU,styles:UK,shadowOptions:{delegatesFocus:!0}})});var GK,KK=w(()=>{q();se();ye();Ee();GK=(i,e)=>B` 5485 ${xe("inline-flex")} :host { 5486 --toolbar-item-gap: calc( 5487 (var(--design-unit) + calc(var(--density) + 2)) * 1px 5488 ); 5489 background-color: ${Pe}; 5490 border-radius: calc(${me} * 1px); 5491 fill: currentcolor; 5492 padding: var(--toolbar-item-gap); 5493 } 5494 5495 :host(${Z}) { 5496 outline: calc(${he} * 1px) solid ${Ne}; 5497 } 5498 5499 .positioning-region { 5500 align-items: flex-start; 5501 display: inline-flex; 5502 flex-flow: row wrap; 5503 justify-content: flex-start; 5504 width: 100%; 5505 height: 100%; 5506 } 5507 5508 :host([orientation='vertical']) .positioning-region { 5509 flex-direction: column; 5510 } 5511 5512 ::slotted(:not([slot])) { 5513 flex: 0 0 auto; 5514 margin: 0 var(--toolbar-item-gap); 5515 } 5516 5517 :host([orientation='vertical']) ::slotted(:not([slot])) { 5518 margin: var(--toolbar-item-gap) 0; 5519 } 5520 5521 .start, 5522 .end { 5523 display: flex; 5524 margin: auto; 5525 margin-inline: 0; 5526 } 5527 5528 ::slotted(svg) { 5529 /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ 5530 width: 16px; 5531 height: 16px; 5532 } 5533 `.withBehaviors(be(B` 5534 :host(:${Z}) { 5535 box-shadow: 0 0 0 calc(${ve} * 1px) 5536 ${L.Highlight}; 5537 color: ${L.ButtonText}; 5538 forced-color-adjust: none; 5539 } 5540 `))});var YK,vo,Bd,Mp,Ep,P4=w(()=>{ln();
5540q();se();ye();I1();Ee();KK();YK=Object.freeze({[Qr.ArrowUp]:{[et.vertical]:-1},[Qr.ArrowDown]:{[et.vertical]:1},[Qr.ArrowLeft]:{[et.horizontal]:{[qe.ltr]:-1,[qe.rtl]:1}},[Qr.ArrowRight]:{[et.horizontal]:{[qe.ltr]:1,[qe.rtl]:-1}}}),vo=class extends ee{constructor(){super(...arguments),this._activeIndex=0,this.direction=qe.ltr,this.orientation=et.horizontal}get activeIndex(){return ge.track(this,"activeIndex"),this._activeIndex}set activeIndex(e){this.$fastController.isConnected&&(this._activeIndex=oo(0,this.focusableElements.length-1,e),ge.notify(this,"activeIndex"))}slottedItemsChanged(){this.$fastController.isConnected&&this.reduceFocusableElements()}mouseDownHandler(e){var t;let r=(t=this.focusableElements)===null||t===void 0?void 0:t.findIndex(n=>n.contains(e.target));return r>-1&&this.activeIndex!==r&&this.setFocusedElement(r),!0}childItemsChanged(e,t){this.$fastController.isConnected&&this.reduceFocusableElements()}connectedCallback(){super.connectedCallback(),this.direction=$r(this)}focusinHandler(e){let t=e.relatedTarget;!t||this.contains(t)||this.setFocusedElement()}getDirectionalIncrementer(e){var t,r,n,s,o;return(o=(n=(r=(t=YK[e])===null||t===void 0?void 0:t[this.orientation])===null||r===void 0?void 0:r[this.direction])!==null&&n!==void 0?n:(s=YK[e])===null||s===void 0?void 0:s[this.orientation])!==null&&o!==void 0?o:0}keydownHandler(e){let t=e.key;if(!(t in Qr)||e.defaultPrevented||e.shiftKey)return!0;let r=this.getDirectionalIncrementer(t);if(!r)return!e.target.closest("[role=radiogroup]");let n=this.activeIndex+r;return this.focusableElements[n]&&e.preventDefault(),this.setFocusedElement(n),!0}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){var e;let t=(e=this.focusableElements)===null||e===void 0?void 0:e[this.activeIndex];this.focusableElements=this.allSlottedItems.reduce(Mp.reduceFocusableItems,[]);let r=this.focusableElements.indexOf(t);this.activeIndex=Math.max(0,r),this.setFocusableElements()}setFocusedElement(e=this.activeIndex){this.activeIndex=e,this.setFocusableElements(),this.focusableElements[this.activeIndex]&&this.contains(document.activeElement)&&this.focusableElements[this.activeIndex].focus()}static reduceFocusableItems(e,t){var r,n,s,o;let a=t.getAttribute("role")==="radio",l=(n=(r=t.$fastController)===null||r===void 0?void 0:r.definition.shadowOptions)===null||n===void 0?void 0:n.delegatesFocus,u=Array.from((o=(s=t.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll("*"))!==null&&o!==void 0?o:[]).some(c=>Sd(c));return!t.hasAttribute("disabled")&&!t.hasAttribute("hidden")&&(Sd(t)||a||l||u)?(e.push(t),e):t.childElementCount?e.concat(Array.from(t.children).reduce(Mp.reduceFocusableItems,[])):e}setFocusableElements(){this.$fastController.isConnected&&this.focusableElements.length>0&&this.focusableElements.forEach((e,t)=>{e.tabIndex=this.activeIndex===t?0:-1})}};te([N],vo.prototype,"direction",void 0);te([O],vo.prototype,"orientation",void 0);te([N],vo.prototype,"slottedItems",void 0);te([N],vo.prototype,"slottedLabel",void 0);te([N],vo.prototype,"childItems",void 0);Bd=class{};te([O({attribute:"aria-labelledby"})],Bd.prototype,"ariaLabelledby",void 0);te([O({attribute:"aria-label"})],Bd.prototype,"ariaLabel",void 0);ze(Bd,rt);ze(vo,lt,Bd);Mp=class extends vo{connectedCallback(){super.connectedCallback();let e=ia(this);e&&Pe.setValueFor(this,t=>yp.getValueFor(t).evaluate(t,Pe.getValueFor(e)))}},Ep=Mp.compose({baseName:"toolbar",baseClass:vo,template:rU,styles:GK,shadowOptions:{delegatesFocus:!0}})});var XK,JK=w(()=>{q();se();Ee();XK=(i,e)=>{let t=i.tagFor(Ue);return B` 5541 :host { 5542 contain: size; 5543 overflow: visible; 5544 height: 0; 5545 width: 0; 5546 } 5547 5548 .tooltip { 5549 box-sizing: border-box; 5550 border-radius: calc(${me} * 1px); 5551 border: calc(${he} * 1px) solid ${$i}; 5552 box-shadow: 0 0 0 1px ${$i} inset; 5553 background: ${Mt}; 5554 color: ${fe}; 5555 padding: 4px; 5556 height: fit-content; 5557 width: fit-content; 5558 font-family: ${ke}; 5559 font-size: ${Me}; 5560 line-height: ${Le}; 5561 white-space: nowrap; 5562 /* TODO: a mechanism to manage z-index across components 5563 https://github.com/microsoft/fast/issues/3813 */ 5564 z-index: 10000; 5565 } 5566 5567 ${t} { 5568 display: flex; 5569 justify-content: center; 5570 align-items: center; 5571 overflow: visible; 5572 flex-direction: row; 5573 } 5574 5575 ${t}.right, 5576 ${t}.left { 5577 flex-direction: column; 5578 } 5579 5580 ${t}.top .tooltip { 5581 margin-bottom: 4px; 5582 } 5583 5584 ${t}.bottom .tooltip { 5585 margin-top: 4px; 5586 } 5587 5588 ${t}.left .tooltip { 5589 margin-right: 4px; 5590 } 5591 5592 ${t}.right .tooltip { 5593 margin-left: 4px; 5594 } 5595 5596 ${t}.top.left .tooltip, 5597 ${t}.top.right .tooltip { 5598 margin-bottom: 0px; 5599 } 5600 5601 ${t}.bottom.left .tooltip, 5602 ${t}.bottom.right .tooltip { 5603 margin-top: 0px; 5604 } 5605 5606 ${t}.top.left .tooltip, 5607 ${t}.bottom.left .tooltip { 5608 margin-right: 0px; 5609 } 5610 5611 ${t}.top.right .tooltip, 5612 ${t}.bottom.right .tooltip { 5613 margin-left: 0px; 5614 } 5615 `.withBehaviors(be(B` 5616 :host([disabled]) { 5617 opacity: 1; 5618 } 5619 `))}});var N4,z4=w(()=>{se();JK();N4=Kt.compose({baseName:"tooltip",template:cU,styles:XK})});var wCe,SCe,ZK,CCe,ICe,QK,eY=w(()=>{q();se();ye();Ee();Ut();wCe=B` 5620 .expand-collapse-glyph { 5621 transform: rotate(0deg); 5622 } 5623 :host(.nested) .expand-collapse-button { 5624 left: var( 5625 --expand-collapse-button-nested-width, 5626 calc(${_e} * -1px) 5627 ); 5628 } 5629 :host([selected])::after { 5630 left: calc(${ve} * 1px); 5631 } 5632 :host([expanded]) > .positioning-region .expand-collapse-glyph { 5633 transform: rotate(90deg); 5634 } 5635`,SCe=B` 5636 .expand-collapse-glyph { 5637 transform: rotate(180deg); 5638 } 5639 :host(.nested) .expand-collapse-button { 5640 right: var( 5641 --expand-collapse-button-nested-width, 5642 calc(${_e} * -1px) 5643 ); 5644 } 5645 :host([selected])::after { 5646 right: calc(${ve} * 1px); 5647 } 5648 :host([expanded]) > .positioning-region .expand-collapse-glyph { 5649 transform: rotate(90deg); 5650 } 5651`,ZK=Jf`((${sa} / 2) * ${Y}) + ((${Y} * ${Wi}) / 2)`,CCe=Mn.create("tree-item-expand-collapse-hover").withDefault(i=>{let e=go.getValueFor(i);return e.evaluate(i,e.evaluate(i).hover).hover}),ICe=Mn.create("tree-item-expand-collapse-selected-hover").withDefault(i=>{let e=ca.getValueFor(i);return go.getValueFor(i).evaluate(i,e.evaluate(i).rest).hover}),QK=(i,e)=>B` 5652 /** 5653 * This animation exists because when tree item children are conditionally loaded 5654 * there is a visual bug where the DOM exists but styles have not yet been applied (essentially FOUC). 5655 * This subtle animation provides a ever so slight timing adjustment for loading that solves the issue. 5656 */
5657 @keyframes treeItemLoading { 5658 0% { 5659 opacity: 0; 5660 } 5661 100% { 5662 opacity: 1; 5663 } 5664 } 5665 5666 ${xe("block")} :host { 5667 contain: content; 5668 position: relative; 5669 outline: none; 5670 color: ${fe}; 5671 background: ${xr}; 5672 cursor: pointer; 5673 font-family: ${ke}; 5674 --expand-collapse-button-size: calc(${_e} * 1px); 5675 --tree-item-nested-width: 0; 5676 } 5677 5678 :host(:focus) > .positioning-region { 5679 outline: none; 5680 } 5681 5682 :host(:focus) .content-region { 5683 outline: none; 5684 } 5685 5686 :host(:${Z}) .positioning-region { 5687 border-color: ${Ne}; 5688 box-shadow: 0 0 0 calc((${ve} - ${he}) * 1px) 5689 ${Ne} inset; 5690 color: ${fe}; 5691 } 5692 5693 .positioning-region { 5694 display: flex; 5695 position: relative; 5696 box-sizing: border-box; 5697 background: ${xr}; 5698 border: transparent calc(${he} * 1px) solid; 5699 border-radius: calc(${me} * 1px); 5700 height: calc((${_e} + 1) * 1px); 5701 } 5702 5703 .positioning-region::before { 5704 content: ''; 5705 display: block; 5706 width: var(--tree-item-nested-width); 5707 flex-shrink: 0; 5708 } 5709 5710 :host(:not([disabled])) .positioning-region:hover { 5711 background: ${on}; 5712 } 5713 5714 :host(:not([disabled])) .positioning-region:active { 5715 background: ${an}; 5716 } 5717 5718 .content-region { 5719 display: inline-flex; 5720 align-items: center; 5721 white-space: nowrap; 5722 width: 100%; 5723 min-width: 0; 5724 height: calc(${_e} * 1px); 5725 margin-inline-start: calc(${Y} * 2px + 8px); 5726 font-size: ${Me}; 5727 line-height: ${Le}; 5728 font-weight: 400; 5729 } 5730 5731 .items { 5732 /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ 5733 font-size: calc(1em + (${Y} + 16) * 1px); 5734 } 5735 5736 .expand-collapse-button { 5737 background: none; 5738 border: none; 5739 outline: none; 5740 /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ 5741 width: calc((${ZK} + (${Y} * 2)) * 1px); 5742 height: calc((${ZK} + (${Y} * 2)) * 1px); 5743 padding: 0; 5744 display: flex; 5745 justify-content: center; 5746 align-items: center; 5747 cursor: pointer; 5748 margin-left: 6px; 5749 margin-right: 6px; 5750 } 5751 5752 .expand-collapse-glyph { 5753 /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ 5754 width: 16px; 5755 height: 16px; 5756 transition: transform 0.1s linear; 5757 5758 pointer-events: none; 5759 fill: currentcolor; 5760 } 5761 5762 .start, 5763 .end { 5764 display: flex; 5765 fill: currentcolor; 5766 } 5767 5768 ::slotted(svg) { 5769 /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */ 5770 width: 16px; 5771 height: 16px; 5772 } 5773 5774 .start { 5775 /* TODO: horizontalSpacing https://github.com/microsoft/fast/issues/2766 */ 5776 margin-inline-end: calc(${Y} * 2px + 2px); 5777 } 5778 5779 .end { 5780 /* TODO: horizontalSpacing https://github.com/microsoft/fast/issues/2766 */ 5781 margin-inline-start: calc(${Y} * 2px + 2px); 5782 } 5783 5784 :host([expanded]) > .items { 5785 animation: treeItemLoading ease-in 10ms; 5786 animation-iteration-count: 1; 5787 animation-fill-mode: forwards; 5788 } 5789 5790 :host([disabled]) .content-region { 5791 opacity: ${_t}; 5792 cursor: ${dt}; 5793 } 5794 5795 :host(.nested) .content-region { 5796 position: relative; 5797 margin-inline-start: var(--expand-collapse-button-size); 5798 } 5799 5800 :host(.nested) .expand-collapse-button { 5801 position: absolute; 5802 } 5803 5804 :host(.nested:not([disabled])) .expand-collapse-button:hover { 5805 background: ${CCe}; 5806 } 5807 5808 :host([selected]) .positioning-region { 5809 background: ${Mt}; 5810 } 5811 5812 :host([selected]:not([disabled])) .positioning-region:hover { 5813 background: ${po}; 5814 } 5815 5816 :host([selected]:not([disabled])) .positioning-region:active { 5817 background: ${Dd}; 5818 } 5819 5820 :host([selected]:not([disabled])) .expand-collapse-button:hover { 5821 background: ${ICe}; 5822 } 5823 5824 :host([selected])::after { 5825 /* The background needs to be calculated based on the selected background state 5826 for this control. We currently have no way of changing that, so setting to 5827 accent-foreground-rest for the time being */ 5828 background: ${ti}; 5829 border-radius: calc(${me} * 1px); 5830 content: ''; 5831 display: block; 5832 position: absolute; 5833 top: calc((${_e} / 4) * 1px); 5834 width: 3px; 5835 height: calc((${_e} / 2) * 1px); 5836 } 5837 5838 ::slotted(${i.tagFor($t)}) { 5839 --tree-item-nested-width: 1em; 5840 --expand-collapse-button-nested-width: calc(${_e} * -1px); 5841 } 5842 `.withBehaviors(new es(wCe,SCe),be(B` 5843 :host { 5844 forced-color-adjust: none; 5845 border-color: transparent; 5846 background: ${L.Field}; 5847 color: ${L.FieldText}; 5848 } 5849 :host .content-region .expand-collapse-glyph { 5850 fill: ${L.FieldText}; 5851 } 5852 :host .positioning-region:hover, 5853 :host([selected]) .positioning-region { 5854 background: ${L.Highlight}; 5855 } 5856 :host .positioning-region:hover .content-region, 5857 :host([selected]) .positioning-region .content-region { 5858 color: ${L.HighlightText}; 5859 } 5860 :host .positioning-region:hover .content-region .expand-collapse-glyph, 5861 :host .positioning-region:hover .content-region .start, 5862 :host .positioning-region:hover .content-region .end, 5863 :host([selected]) .content-region .expand-collapse-glyph, 5864 :host([selected]) .content-region .start, 5865 :host([selected]) .content-region .end { 5866 fill: ${L.HighlightText}; 5867 } 5868 :host([selected])::after { 5869 background: ${L.Field}; 5870 } 5871 :host(:${Z}) .positioning-region { 5872 border-color: ${L.FieldText}; 5873 box-shadow: 0 0 0 2px inset ${L.Field}; 5874 color: ${L.FieldText}; 5875 } 5876 :host([disabled]) .content-region, 5877 :host([disabled]) .positioning-region:hover .content-region { 5878 opacity: 1; 5879 color: ${L.GrayText}; 5880 } 5881 :host([disabled]) .content-region .expand-collapse-glyph, 5882 :host([disabled]) .content-region .start, 5883 :host([disabled]) .content-region .end, 5884 :host([disabled]) 5885 .positioning-region:hover 5886 .content-region 5887 .expand-collapse-glyph, 5888 :host([disabled]) .positioning-region:hover .content-region .start, 5889 :host([disabled]) .positioning-region:hover .content-region .end { 5890 fill: ${L.GrayText}; 5891 } 5892 :host([disabled]) .positioning-region:hover { 5893 background: ${L.Field}; 5894 } 5895 .expand-collapse-glyph, 5896 .start, 5897 .end { 5898 fill: ${L.FieldText}; 5899 } 5900 :host(.nested) .expand-collapse-button:hover { 5901 background: ${L.Field}; 5902 } 5903 :host(.nested) .expand-collapse-button:hover .expand-collapse-glyph { 5904 fill: ${L.FieldText}; 5905 } 5906 `))});var B4,q4=w(()=>{se();eY();B4=$t.compose({baseName:"tree-item",template:mU,styles:QK,expandCollapseGlyph:` 5907 <svg
5908 viewBox="0 0 16 16" 5909 xmlns="http://www.w3.org/2000/svg" 5910 class="expand-collapse-glyph" 5911 > 5912 <path 5913 d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z" 5914 /> 5915 </svg> 5916 `})});var tY,iY=w(()=>{q();se();tY=(i,e)=>B` 5917 ${xe("flex")} :host { 5918 flex-direction: column; 5919 align-items: stretch; 5920 min-width: fit-content; 5921 font-size: 0; 5922 } 5923 5924 :host:focus-visible { 5925 outline: none; 5926 } 5927`});var H4,j4=w(()=>{se();iY();H4=qu.compose({baseName:"tree-view",template:vU,styles:tY})});var rY,nY=w(()=>{q();Ee();Ut();rY=(i,e)=>B` 5928 .region { 5929 z-index: 1000; 5930 overflow: hidden; 5931 display: flex; 5932 font-family: ${ke}; 5933 font-size: ${Me}; 5934 } 5935 5936 .loaded { 5937 opacity: 1; 5938 pointer-events: none; 5939 } 5940 5941 .loading-display, 5942 .no-options-display { 5943 background: ${Pe}; 5944 width: 100%; 5945 min-height: calc(${_e} * 1px); 5946 display: flex; 5947 flex-direction: column; 5948 align-items: center; 5949 justify-items: center; 5950 padding: calc(${Y} * 1px); 5951 } 5952 5953 .loading-progress { 5954 width: 42px; 5955 height: 42px; 5956 } 5957 5958 .bottom { 5959 flex-direction: column; 5960 } 5961 5962 .top { 5963 flex-direction: column-reverse; 5964 } 5965`});var sY,oY=w(()=>{q();se();ye();Ee();Ut();sY=(i,e)=>B` 5966 :host { 5967 background: ${Pe}; 5968 --elevation: 11; 5969 /* TODO: a mechanism to manage z-index across components 5970 https://github.com/microsoft/fast/issues/3813 */ 5971 z-index: 1000; 5972 display: flex; 5973 width: 100%; 5974 max-height: 100%; 5975 min-height: 58px; 5976 box-sizing: border-box; 5977 flex-direction: column; 5978 overflow-y: auto; 5979 overflow-x: hidden; 5980 pointer-events: auto; 5981 border-radius: calc(${me} * 1px); 5982 padding: calc(${Y} * 1px) 0; 5983 border: calc(${he} * 1px) solid transparent; 5984 ${As} 5985 } 5986 5987 .suggestions-available-alert { 5988 height: 0; 5989 opacity: 0; 5990 overflow: hidden; 5991 } 5992 `.withBehaviors(be(B` 5993 :host { 5994 background: ${L.Canvas}; 5995 border-color: ${L.CanvasText}; 5996 } 5997 `))});var aY,lY=w(()=>{q();se();ye();Ee();Ut();aY=(i,e)=>B` 5998 :host { 5999 display: flex; 6000 align-items: center; 6001 justify-items: center; 6002 font-family: ${ke}; 6003 border-radius: calc(${me} * 1px); 6004 border: calc(${ve} * 1px) solid transparent; 6005 box-sizing: border-box; 6006 background: ${xr}; 6007 color: ${fe}; 6008 cursor: pointer; 6009 fill: currentcolor; 6010 font-size: ${Me}; 6011 min-height: calc(${_e} * 1px); 6012 line-height: ${Le}; 6013 margin: 0 calc(${Y} * 1px); 6014 outline: none; 6015 overflow: hidden; 6016 padding: 0 calc(${Y} * 2.25px); 6017 user-select: none; 6018 white-space: nowrap; 6019 } 6020 6021 :host(:${Z}[role="listitem"]) { 6022 border-color: ${$i}; 6023 background: ${Od}; 6024 } 6025 6026 :host(:hover) { 6027 background: ${on}; 6028 } 6029 6030 :host(:active) { 6031 background: ${an}; 6032 } 6033 6034 :host([aria-selected='true']) { 6035 background: ${st}; 6036 color: ${Si}; 6037 } 6038 6039 :host([aria-selected='true']:hover) { 6040 background: ${wi}; 6041 color: ${or}; 6042 } 6043 6044 :host([aria-selected='true']:active) { 6045 background: ${Vt}; 6046 color: ${Li}; 6047 } 6048 `.withBehaviors(be(B` 6049 :host { 6050 border-color: transparent; 6051 forced-color-adjust: none; 6052 color: ${L.ButtonText}; 6053 fill: currentcolor; 6054 } 6055 6056 :host(:not([aria-selected='true']):hover), 6057 :host([aria-selected='true']) { 6058 background: ${L.Highlight}; 6059 color: ${L.HighlightText}; 6060 } 6061 6062 :host([disabled]), 6063 :host([disabled]:not([aria-selected='true']):hover) { 6064 background: ${L.Canvas}; 6065 color: ${L.GrayText}; 6066 fill: currentcolor; 6067 opacity: 1; 6068 } 6069 `))});var uY,cY=w(()=>{q();se();ye();Ee();Ut();uY=(i,e)=>B` 6070 :host { 6071 display: flex; 6072 flex-direction: row; 6073 column-gap: calc(${Y} * 1px); 6074 row-gap: calc(${Y} * 1px); 6075 flex-wrap: wrap; 6076 } 6077 6078 ::slotted([role="combobox"]) { 6079 min-width: 260px; 6080 width: auto; 6081 box-sizing: border-box; 6082 color: ${fe}; 6083 background: ${sn}; 6084 border-radius: calc(${me} * 1px); 6085 border: calc(${he} * 1px) solid ${st}; 6086 height: calc(${_e} * 1px); 6087 font-family: ${ke}; 6088 outline: none; 6089 user-select: none; 6090 font-size: ${Me}; 6091 line-height: ${Le}; 6092 padding: 0 calc(${Y} * 2px + 1px); 6093 } 6094 6095 ::slotted([role="combobox"]:active) { { 6096 background: ${yr}; 6097 border-color: ${Vt}; 6098 } 6099 6100 ::slotted([role="combobox"]:focus-within) { 6101 border-color: ${$i}; 6102 box-shadow: 0 0 0 1px ${$i} inset; 6103 } 6104 `.withBehaviors(be(B` 6105 ::slotted([role='combobox']:active) { 6106 background: ${L.Field}; 6107 border-color: ${L.Highlight}; 6108 } 6109 ::slotted([role='combobox']:focus-within) { 6110 border-color: ${L.Highlight}; 6111 box-shadow: 0 0 0 1px ${L.Highlight} inset; 6112 } 6113 ::slotted(input:placeholder) { 6114 color: ${L.GrayText}; 6115 } 6116 `))});var dY,hY=w(()=>{q();se();ye();Ee();Ut();dY=(i,e)=>B` 6117 :host { 6118 display: flex; 6119 align-items: center; 6120 justify-items: center; 6121 font-family: ${ke}; 6122 border-radius: calc(${me} * 1px); 6123 border: calc(${ve} * 1px) solid transparent; 6124 box-sizing: border-box; 6125 background: ${xr}; 6126 color: ${fe}; 6127 cursor: pointer; 6128 fill: currentcolor; 6129 font-size: ${Me}; 6130 height: calc(${_e} * 1px); 6131 line-height: ${Le}; 6132 outline: none; 6133 overflow: hidden; 6134 padding: 0 calc(${Y} * 2.25px); 6135 user-select: none; 6136 white-space: nowrap; 6137 } 6138 6139 :host(:hover) { 6140 background: ${on}; 6141 } 6142 6143 :host(:active) { 6144 background: ${an}; 6145 } 6146 6147 :host(:${Z}) { 6148 background: ${Od}; 6149 border-color: ${$i}; 6150 } 6151 6152 :host([aria-selected='true']) { 6153 background: ${st}; 6154 color: ${Li}; 6155 } 6156 `.withBehaviors(be(B` 6157 :host { 6158 border-color: transparent; 6159 forced-color-adjust: none; 6160 color: ${L.ButtonText}; 6161 fill: currentcolor; 6162 } 6163 6164 :host(:not([aria-selected='true']):hover), 6165 :host([aria-selected='true']) { 6166 background: ${L.Highlight}; 6167 color: ${L.HighlightText}; 6168 } 6169 6170 :host([disabled]), 6171 :host([disabled]:not([aria-selected='true']):hover) { 6172 background: ${L.Canvas}; 6173 color: ${L.GrayText}; 6174 fill: currentcolor; 6175 opacity: 1; 6176 } 6177 `))});var U4,V4,MCe,ECe,TCe,kCe,W4=w(()=>{se();Ee();nY();oY();lY();cY();hY();U4=nt.compose({baseName:"draft-picker",template:mj,styles:rY,shadowOptions:{}}),V4=class extends Ms{connectedCallback(){Pe.setValueFor(this,Rd),super.connectedCallback()}},MCe=V4.compose({baseName:"draft-picker-menu",baseClass:Ms,template:_j,styles:sY}),ECe=lo.compose({baseName:"draft-picker-menu-option",template:xj,styles:aY}),TCe=zu.compose({baseName:"draft-picker-list",template:Sj,styles:uY}),kCe=uo.compose({baseName:"draft-picker-list-item",template:Ij,styles:dY})});var fY=w(()=>{X3();K3();r6();s6();a6();u6();d6();f6();p6();b6();y6();C6();T6();rK();kb();P6();z6();q6();V6();G6();Y6();J6();Q6();t4();r4();o4();u4();d4();f4();m4();v4();S4();M4();T4();A4();D4();L4();F4();P4();z4();q4();j4();W4()});function $b(i){return o3.getOrCreate(i).withPrefix("jp")}var pY=w(()=>{se()});var Be=w(()=>{XW();fY();pY();X3();r6();s6();a6();u6();d6();f6();p6();b6();y6();C6();T6();kb();kb();Ee();P6();z6();q6();V6();G6();Y6();J6();Q6();t4();r4();o4();u4();d4();f4();m4();v4();S4();Sb();M4();D4();L4();F4();P4();z4();j4();q4();W4()});function DCe(i,e){typeof i=="function"?i(e):i.current=e}function bY(i,e){if(!e.name){let t=Kn.forType(i);if(t)e.name=t.name;else throw new Error("React wrappers must wrap a FASTElement or be configured with a name.")}return e.name}function G4(i){return i.events||(i.events={})}function gY(i,e,t){return ACe.has(t)?(console.warn(`${bY(i,e)} contains property ${t} which is a React reserved property. It will be used by React and not set on the element.`),!1):!0}
6177function OCe(i,e){if(!e.keys)if(e.properties)e.keys=new Set(e.properties.concat(Object.keys(G4(e))));else{let t=new Set(Object.keys(G4(e))),r=ge.getAccessors(i.prototype);if(r.length>0)for(let n of r)gY(i,e,n.name)&&t.add(n.name);else for(let n in i.prototype)!(n in HTMLElement.prototype)&&gY(i,e,n)&&t.add(n);e.keys=t}return e.keys}function vY(i,e){let t=[],r={register(s,...o){t.forEach(a=>a.register(s,...o)),t=[]}};function n(s,o={}){var a,l;s instanceof ep&&(e?e.register(s):t.push(s),s=s.type);let u=Fb.get(s);if(u){let f=u.get((a=o.name)!==null&&a!==void 0?a:mY);if(f)return f}class c extends i.Component{constructor(){super(...arguments),this._element=null}_updateElement(m){let b=this._element;if(b===null)return;let y=this.props,x=m||RCe,M=G4(o);for(let T in this._elementProps){let E=y[T],A=M[T];if(A===void 0)b[T]=E;else{let R=x[T];if(E===R)continue;R!==void 0&&b.removeEventListener(A,R),E!==void 0&&b.addEventListener(A,E)}}}componentDidMount(){this._updateElement()}componentDidUpdate(m){this._updateElement(m)}render(){let m=this.props.__forwardedRef;(this._ref===void 0||this._userRef!==m)&&(this._ref=T=>{this._element===null&&(this._element=T),m!==null&&DCe(m,T),this._userRef=m});let b={ref:this._ref},y=this._elementProps={},x=OCe(s,o),M=this.props;for(let T in M){let E=M[T];x.has(T)?y[T]=E:b[T==="className"?"class":T]=E}return i.createElement(bY(s,o),b)}}let d=i.forwardRef((f,m)=>i.createElement(c,Object.assign(Object.assign({},f),{__forwardedRef:m}),f?.children));return Fb.has(s)||Fb.set(s,new Map),Fb.get(s).set((l=o.name)!==null&&l!==void 0?l:mY,d),d}return{wrap:n,registry:r}}var ACe,RCe,mY,Fb,_Y=w(()=>{q();se();ACe=new Set(["children","localName","ref","style","className"]),RCe=Object.freeze(Object.create(null)),mY="_default",Fb=new Map});var yY,le,He=w(()=>{Be();_Y();yY=z(Je()),{wrap:le}=vY(yY.default,$b())});var LCe,xY=w(()=>{Be();He();LCe=le(Y3(),{events:{onChange:"change"}});LCe.displayName="Jupyter.Accordion"});var $Ce,wY=w(()=>{Be();He();$Ce=le(G3(),{events:{onChange:"change"}});$Ce.displayName="Jupyter.AccordionItem"});var FCe,SY=w(()=>{Be();He();FCe=le(i6());FCe.displayName="Jupyter.Anchor"});var PCe,CY=w(()=>{Be();He();PCe=le(n6());PCe.displayName="Jupyter.AnchoredRegion"});var NCe,IY=w(()=>{Be();He();NCe=le(o6());NCe.displayName="Jupyter.Avatar"});var zCe,MY=w(()=>{Be();He();zCe=le(l6());zCe.displayName="Jupyter.Badge"});var BCe,EY=w(()=>{Be();He();BCe=le(c6());BCe.displayName="Jupyter.Breadcrumb"});var qCe,TY=w(()=>{Be();He();qCe=le(h6());qCe.displayName="Jupyter.BreadcrumbItem"});var K4,kY=w(()=>{Be();He();K4=le(Cp());K4.displayName="Jupyter.Button"});var HCe,AY=w(()=>{Be();He();HCe=le(g6());HCe.displayName="Jupyter.Card"});var jCe,RY=w(()=>{Be();He();jCe=le(_6(),{events:{onChange:"change"}});jCe.displayName="Jupyter.Checkbox"});var VCe,DY=w(()=>{Be();He();VCe=le(S6(),{events:{onChange:"change",onInput:"input"}});VCe.displayName="Jupyter.Combobox"});var UCe,WCe,GCe,OY=w(()=>{Be();He();UCe=le(I6(),{events:{onFocus:"cell-focused"}});UCe.displayName="Jupyter.DataGridCell";WCe=le(M6(),{events:{onFocus:"row-focused"}});WCe.displayName="Jupyter.DataGridRow";GCe=le(E6());GCe.displayName="Jupyter.DataGrid"});var KCe,LY=w(()=>{Be();He();KCe=le(L6(),{events:{onChange:"change"}});KCe.displayName="Jupyter.DateField"});var YCe,$Y=w(()=>{Be();He();YCe=le($6());YCe.displayName="Jupyter.DesignSystemProvider"});var XCe,FY=w(()=>{Be();He();XCe=le(F6());XCe.displayName="Jupyter.Dialog"});var JCe,PY=w(()=>{Be();He();JCe=le(N6(),{events:{onToggle:"toggle"}});JCe.displayName="Jupyter.Disclosure"});var ZCe,NY=w(()=>{Be();He();ZCe=le(B6());ZCe.displayName="Jupyter.Divider"});var QCe,zY=w(()=>{Be();He();QCe=le(j6());QCe.displayName="Jupyter.Listbox"});var e5e,BY=w(()=>{Be();He();e5e=le(W6());e5e.displayName="Jupyter.Menu"});var t5e,qY=w(()=>{Be();He();t5e=le(K6(),{events:{onExpand:"expanded-change"}});t5e.displayName="Jupyter.MenuItem"});var i5e,HY=w(()=>{Be();He();i5e=le(X6(),{events:{onChange:"change",onInput:"input"}});i5e.displayName="Jupyter.NumberField"});var r5e,jY=w(()=>{Be();He();r5e=le(Z6());r5e.displayName="Juypter.Option"});var n5e,VY=w(()=>{Be();He();n5e=le(e4(),{name:"jp-progress"});n5e.displayName="Jupyter.Progress"});var s5e,UY=w(()=>{Be();He();s5e=le(i4(),{name:"jp-progress-ring"});s5e.displayName="Jupyter.ProgressRing"});var o5e,WY=w(()=>{Be();He();o5e=le(s4(),{events:{onChange:"change"}});
6177o5e.displayName="Jupyter.Radio"});var a5e,GY=w(()=>{Be();He();a5e=le(l4(),{events:{onChange:"change"}});a5e.displayName="Jupyter.RadioGroup"});var l5e,KY=w(()=>{Be();He();l5e=le(c4(),{events:{onChange:"change",onInput:"input"}});l5e.displayName="Jupyter.Search"});var u5e,YY=w(()=>{Be();He();u5e=le(h4(),{events:{onChange:"change",onInput:"input"}});u5e.displayName="Jupyter.Select"});var c5e,XY=w(()=>{Be();He();c5e=le(p4());c5e.displayName="Jupyter.Skeleton"});var d5e,JY=w(()=>{Be();He();d5e=le(b4(),{events:{onChange:"change"}});d5e.displayName="Jupyter.Slider"});var h5e,ZY=w(()=>{Be();He();h5e=le(w4());h5e.displayName="Jupyter.SliderLabel"});var f5e,QY=w(()=>{Be();He();f5e=le(I4(),{events:{onChange:"change"}});f5e.displayName="Jupyter.Switch"});var p5e,eX=w(()=>{Be();He();p5e=le(E4());p5e.displayName="Jupyter.TabPanel"});var m5e,tX=w(()=>{Be();He();m5e=le(k4());m5e.displayName="Jupyter.Tab"});var g5e,iX=w(()=>{Be();He();g5e=le(R4(),{events:{onChange:"change"}});g5e.displayName="Jupyter.Tabs"});var b5e,rX=w(()=>{Be();He();b5e=le(O4(),{events:{onChange:"change"}});b5e.displayName="Jupyter.TextArea"});var v5e,nX=w(()=>{Be();He();v5e=le($4(),{events:{onChange:"change",onInput:"input"}});v5e.displayName="Jupyter.TextField"});var _5e,sX=w(()=>{Be();He();_5e=le(Ep());_5e.displayName="Jupyter.Toolbar"});var y5e,oX=w(()=>{Be();He();y5e=le(N4());y5e.displayName="Jupyter.Tooltip"});var x5e,aX=w(()=>{Be();He();x5e=le(B4(),{events:{onExpand:"expanded-change",onSelect:"selected-change"}});x5e.displayName="Jupyter.TreeItem"});var w5e,lX=w(()=>{Be();He();w5e=le(H4());w5e.displayName="Jupyter.TreeView"});var S5e,uX=w(()=>{Be();He();S5e=le(U4(),{events:{onChange:"change",onInput:"input"}});S5e.displayName="Jupyter.Picker"});var cX=w(()=>{He();xY();wY();SY();CY();IY();MY();EY();TY();kY();AY();RY();DY();OY();LY();$Y();FY();PY();NY();zY();BY();qY();HY();jY();VY();UY();WY();GY();KY();YY();XY();JY();ZY();QY();eX();tX();iX();rX();nX();sX();oX();aX();lX();uX()});var dX,hX,Sr,qd,Tp,Hd,Y4=w(()=>{Xh();Qe();Gr();dX=z(Je()),hX=z(QC()),Sr=class extends j{constructor(){super(),this._rootDOM=null}static create(e){return new class extends Sr{render(){return e}}}onUpdateRequest(e){this.renderPromise=this.renderDOM()}onAfterAttach(e){ie.sendMessage(this,j.Msg.UpdateRequest)}onBeforeDetach(e){this._rootDOM!==null&&(this._rootDOM.unmount(),this._rootDOM=null)}renderDOM(){return new Promise(e=>{let t=this.render();this._rootDOM===null&&(this._rootDOM=(0,hX.createRoot)(this.node)),Array.isArray(t)?(this._rootDOM.render(t),requestIdleCallback(()=>e())):t?(this._rootDOM.render(t),requestIdleCallback(()=>e())):(this._rootDOM.unmount(),this._rootDOM=null,requestIdleCallback(()=>e()))})}},qd=class extends Sr{constructor(e){super(),this._modelChanged=new X(this),this.model=e??null}get modelChanged(){return this._modelChanged}set model(e){this._model!==e&&(this._model&&this._model.stateChanged.disconnect(this.update,this),this._model=e,e&&e.stateChanged.connect(this.update,this),this.update(),this._modelChanged.emit(void 0))}get model(){return this._model}dispose(){this.isDisposed||(this._model=null,super.dispose())}},Tp=class extends dX.Component{constructor(e){super(e),this.slot=(t,r)=>{this.props.shouldUpdate&&!this.props.shouldUpdate(t,r)||this.setState({value:[t,r]})},this.state={value:[this.props.initialSender,this.props.initialArgs]}}componentDidMount(){this.props.signal.connect(this.slot)}componentWillUnmount(){this.props.signal.disconnect(this.slot)}render(){return this.props.children(...this.state.value)}},Hd=class{constructor(){this.stateChanged=new X(this),this._isDisposed=!1}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,X.clearData(this))}}});function Z4(i){var e,t;let r=(e=i.actualOnClick)!==null&&e!==void 0?e:!1,n=r?void 0:c=>{var d;c.button===0&&(c.preventDefault(),(d=i.onClick)===null||d===void 0||d.call(i))},s=r?c=>{var d;c.button===0&&((d=i.onClick)===null||d===void 0||d.call(i))}:void 0,o=c=>{var d;let{key:f}=c;(f==="Enter"||f===" ")&&((d=i.onClick)===null||d===void 0||d.call(i))},l=(()=>i.enabled===!1&&i.disabledTooltip?i.disabledTooltip:i.pressed&&i.pressedTooltip?i.pressedTooltip:i.tooltip||i.iconLabel)(),u=i.enabled===!1;return kp.createElement(K4,{appearance:"stealth",className:i.className?i.className+" jp-ToolbarButtonComponent":"jp-ToolbarButtonComponent","aria-disabled":u,"aria-label":i.label||l,"aria-pressed":i.pressed,...i.dataset,disabled:u,onClick:s,onMouseDown:n,onKeyDown:o,title:l,minimal:!0},(i.icon||i.iconClass)&&kp.createElement(U.resolveReact,{icon:i.pressed&&(t=i.pressedIcon)!==null&&t!==void 0?t:i.icon,iconClass:oi(i.iconClass,"jp-Icon"),tag:null}),i.label&&kp.createElement("span",{className:"jp-ToolbarButtonComponent-label"},i.label))}function M5e(i){return i.addClass("jp-ToolbarButton"),i}var kp,C5e,I5e,Pb,fX,X4,Tl,Nb,jd,J4,zb,_o,pX=w(()=>{cX();Be();Nn();nu();Zh();Xh();gc();Gr();Fo();kp=z(Je());rf();No();Y4();$b().register([Cp(),Ep()]);W3();C5e="jp-Toolbar",I5e="jp-Toolbar-item",Pb="toolbar-popup-opener",fX="jp-Toolbar-spacer",X4=class extends xn{constructor(){super(...arguments),this._dirty=!1}onFitRequest(e){super.onFitRequest(e),this.parent.isAttached&&(v0(this.widgets,t=>!t.isHidden)?(this.parent.node.style.minHeight="var(--jp-private-toolbar-height)",this.parent.removeClass("jp-Toolbar-micro")):(this.parent.node.style.minHeight="",this.parent.addClass("jp-Toolbar-micro"))),this._dirty=!0,this.parent.parent&&ie.sendMessage(this.parent.parent,j.Msg.FitRequest),this._dirty&&ie.sendMessage(this.parent,j.Msg.UpdateRequest)}onUpdateRequest(e){super.onUpdateRequest(e),this.parent.isVisible&&(this._dirty=!1)}onChildShown(e){super.onChildShown(e),this.parent.fit()}onChildHidden(e){super.onChildHidden(e),this.parent.fit()}onBeforeAttach(e){super.onBeforeAttach(e),this.parent.fit()}attachWidget(e,t){super.attachWidget(e,t),this.parent.fit()}detachWidget(e,t){super.detachWidget(e,t),this.parent.fit()}},Tl=class extends j{constructor(e={}){var t;super({node:document.createElement("jp-toolbar")}),this.addClass(C5e),this.layout=(t=e.layout)!==null&&t!==void 0?t:new X4}names(){let e=this.layout;return gy(e.widgets,t=>_o.nameProperty.get(t))}addItem(e,t){let r=this.layout;return this.insertItem(r.widgets.length,e,t)}insertItem(e,t,r){if(Dc(this.names(),a=>a===t))return!1;r.addClass(I5e);let s=this.layout,o=Math.max(0,Math.min(e,s.widgets.length));return s.insertWidget(o,r),_o.nameProperty.set(r,t),r.node.dataset.jpItemName=t,!0}insertAfter(e,t,r){return this.insertRelative(e,1,t,r)}insertBefore(e,t,r){return this.insertRelative(e,0,t,r)}insertRelative(e,t,r,n){let s=gy(this.names(),(a,l)=>({name:a,index:l})),o=Dc(s,a=>a.name===e);return o?this.insertItem(o.index+t,r,n):!1}handleEvent(e){switch(e.type){case"click":this.handleClick(e);break;default:break}}handleClick(e){if(e.stopPropagation(),e.target instanceof HTMLLabelElement){let t=e.target.getAttribute("for");
6177if(t&&this.node.querySelector(`#${t}`))return}this.node.contains(document.activeElement)||this.parent&&this.parent.activate()}onAfterAttach(e){this.node.addEventListener("click",this)}onBeforeDetach(e){this.node.removeEventListener("click",this)}},Nb=class extends Tl{constructor(){super(),this.popupOpener=new zb,this._widgetWidths=new Map,this._widgetPositions=new Map,this._zoomChanged=!0,this.insertItem(0,Pb,this.popupOpener),this.popupOpener.hide(),this._resizer=new Xl(async(e=!1)=>{await this._onResize(e)},500)}dispose(){this.isDisposed||(this._resizer&&this._resizer.dispose(),super.dispose())}insertAfter(e,t,r){return e===Pb?!1:super.insertAfter(e,t,r)}insertRelative(e,t,r,n){let s=this._widgetPositions.get(e),o=(s??0)+t;return this.insertItem(o,r,n)}insertItem(e,t,r){var n;let s;if(r instanceof zb)s=super.insertItem(e,t,r);else{let o=Math.max(0,Math.min(e,this.layout.widgets.length-1));s=super.insertItem(o,t,r),o!==e&&(e=Math.max(0,Math.min(e,this._widgetPositions.size)))}if(t!==Pb&&this._widgetPositions.get(t)!==e){let o=(n=this._widgetPositions.get(t))!==null&&n!==void 0?n:this._widgetPositions.size;this._widgetPositions.forEach((a,l)=>{l!==Pb&&(a>=e&&a<o?this._widgetPositions.set(l,a+1):a<=e&&a>o&&this._widgetPositions.set(l,a-1))}),this._widgetPositions.set(t,e),this.isVisible&&this._resizer.invoke()}return s}onAfterShow(e){this._resizer.invoke(!0)}onBeforeHide(e){this.popupOpener.hidePopup(),super.onBeforeHide(e)}onResize(e){super.onResize(e);let t=Math.round(window.outerWidth/window.innerWidth*100);t!==this._zoom&&(this._zoomChanged=!0,this._zoom=t),e.width>0&&this._resizer&&this._resizer.invoke()}async _onResize(e=!1){if(!(this.parent&&this.parent.isAttached))return;let t=this.node.clientWidth,r=this.popupOpener,n=32,s=2+5,o=r.isHidden?s:s+n;return this._getWidgetsToRemove(o,t,n).then(async a=>{var l,u;let{width:c,widgetsToRemove:d}=a;for(;d.length>0;){let f=d.pop(),m=_o.nameProperty.get(f);c-=this._widgetWidths.get(m)||0;let b=(l=this._widgetPositions.get(m))!==null&&l!==void 0?l:0,y=this._widgetPositions.size,x=r.widgetAt(0);if(x){let T=_o.nameProperty.get(x);y=(u=this._widgetPositions.get(T))!==null&&u!==void 0?u:y}let M=b-y;r.insertWidget(M,f)}if(r.widgetCount()>0){let f=[],m=0,b=r.widgetCount();for(;m<b;){let y=r.widgetAt(m);
6177if(y)c+=this._getWidgetWidth(y),b-f.length===1&&(c-=n);else break;if(c<t)f.push(y);else break;m++}for(;f.length>0;){let y=f.shift(),x=_o.nameProperty.get(y);this._widgetPositions.has(x)?this.insertItem(this._widgetPositions.get(x),x,y):this.addItem(x,y)}}r.widgetCount()>0?(r.updatePopup(),r.show()):r.hide(),e&&await this._onResize()}).catch(a=>{console.error("Error while computing the ReactiveToolbar",a)})}async _getWidgetsToRemove(e,t,r){var n;let s=this.popupOpener,o=[...this.layout.widgets],a=o.length-1,l=[],u=0;for(;u<a;){let c=o[u],d=_o.nameProperty.get(c),f;this._zoomChanged?f=await this._saveWidgetWidth(d,c):f=this._getWidgetWidth(c)||await this._saveWidgetWidth(d,c),e+=f,l.length===0&&s.isHidden&&e+r>t&&(e+=r),(e>t||((n=this._widgetPositions.get(d))!==null&&n!==void 0?n:0)>u)&&l.push(c),u++}return this._zoomChanged=!1,{width:e,widgetsToRemove:l}}async _saveWidgetWidth(e,t){t instanceof Sr&&await t.renderPromise;let r=t.hasClass(fX)?2:t.node.clientWidth;return this._widgetWidths.set(e,r),r}_getWidgetWidth(e){let t=_o.nameProperty.get(e);return this._widgetWidths.get(t)||0}};(function(i){function e(){return new _o.Spacer}i.createSpacerItem=e})(Tl||(Tl={}));jd=class extends Sr{constructor(e={}){var t,r;super(),this.props=e,M5e(this),this._enabled=(t=e.enabled)!==null&&t!==void 0?t:!0,this._pressed=this._enabled&&((r=e.pressed)!==null&&r!==void 0?r:!1),this._onClick=e.onClick}set pressed(e){this.enabled&&e!==this._pressed&&(this._pressed=e,this.update())}get pressed(){return this._pressed}set enabled(e){e!=this._enabled&&(this._enabled=e,this._enabled||(this._pressed=!1),this.update())}get enabled(){return this._enabled}set onClick(e){e!==this._onClick&&(this._onClick=e,this.update())}get onClick(){return this._onClick}render(){return kp.createElement(Z4,{...this.props,pressed:this.pressed,enabled:this.enabled,onClick:this.onClick})}},J4=class extends j{constructor(){super({node:document.createElement("jp-toolbar")}),this.width=0,this.addClass("jp-Toolbar"),this.addClass("jp-Toolbar-responsive-popup"),this.layout=new xn,j.attach(this,document.body),this.hide()}updateWidth(e){e>0&&(this.width=e,this.node.style.width=`${e}px`)}alignTo(e){let{height:t,width:r,x:n,y:s}=e.node.getBoundingClientRect(),o=this.width;this.node.style.left=`${n+r-o+1}px`,this.node.style.top=`${s+t+1}px`}insertWidget(e,t){this.layout.insertWidget(e,t)}widgetCount(){return this.layout.widgets.length}widgetAt(e){return this.layout.widgets[e]}},zb=class extends jd{constructor(e={}){let t=(e.translator||pt).load("jupyterlab");super({icon:CT,onClick:()=>{this.handleClick()},tooltip:t.__("More commands")}),this.addClass("jp-Toolbar-responsive-opener"),this.popup=new J4}addWidget(e){this.popup.insertWidget(0,e)}insertWidget(e,t){this.popup.insertWidget(e,t)}dispose(){this.isDisposed||(this.popup.dispose(),super.dispose())}hide(){super.hide(),this.hidePopup()}hidePopup(){this.popup.hide()}updatePopup(){this.popup.updateWidth(this.parent.node.clientWidth),this.popup.alignTo(this.parent)}widgetAt(e){return this.popup.widgetAt(e)}widgetCount(){return this.popup.widgetCount()}handleClick(){this.updatePopup(),this.popup.setHidden(!this.popup.isHidden)}};(function(i){function e(r){var n,s;let{commands:o,id:a,args:l}=r,u=o.iconClass(a,l),c=o.iconLabel(a,l),d=(n=r.icon)!==null&&n!==void 0?n:o.icon(a,l),f=o.label(a,l),m=o.className(a,l),b;o.isToggleable(a,l)&&(b=o.isToggled(a,l),b&&(m+=" lm-mod-toggled")),o.isVisible(a,l)||(m+=" lm-mod-hidden");let y=typeof r.label=="function"?r.label(l??{}):r.label,x=o.caption(a,l)||y||f||c,M=o.keyBindings.find(A=>A.command===a);if(M){let A=M.keys.map(Jt.formatKeystroke).join(", ");x=`${x} (${A})`}let T=()=>{o.execute(a,l)},E=o.isEnabled(a,l);return{className:m,dataset:{"data-command":r.id},icon:d,iconClass:u,tooltip:(s=r.caption)!==null&&s!==void 0?s:x,onClick:T,enabled:E,label:y??f,pressed:b}}i.propsFromCommand=e,i.nameProperty=new Ge({name:"name",create:()=>""});class t extends j{constructor(){super(),this.addClass(fX)}}i.Spacer=t})(_o||(_o={}))});var mX=w(()=>{Gr()});var Q4,gX=w(()=>{nu();Q4=z(Je())});var bX=w(()=>{Nn();Gr()});var Bb,vX=w(()=>{Gr();Bb=class extends j{constructor(){super(),this.addClass("jp-Spinner"),this.node.tabIndex=-1;let e=document.createElement("div");e.className="jp-SpinnerContent",this.node.appendChild(e)}onActivateRequest(e){this.node.focus()}}});var kl,qb,_X=w(()=>{rf();(function(i){function e(n,s=""){t(n,"select",s),t(n,"textarea",s),t(n,"input",s),t(n,"button",s)}i.styleNode=e;function t(n,s,o=""){if(n.localName===s&&n.classList.add("jp-mod-styled"),n.localName==="select"){let l=n.hasAttribute("multiple");r(n,l)}let a=n.getElementsByTagName(s);for(let l=0;l<a.length;l++){let u=a[l];if(u.classList.add("jp-mod-styled"),o&&u.classList.add(o),s==="select"){let c=u.hasAttribute("multiple");r(u,c)}}}i.styleNodeByTag=t;function r(n,s){let o=document.createElement("div");return o.classList.add("jp-select-wrapper"),n.addEventListener("focus",qb.onFocus),n.addEventListener("blur",qb.onFocus),n.classList.add("jp-mod-styled"),n.parentElement&&n.parentElement.replaceChild(o,n),o.appendChild(n),s?o.classList.add("multiple"):o.appendChild(yT.element({tag:"span",stylesheet:"select",right:"8px",top:"5px",width:"18px"})),o}i.wrapSelect=r})(kl||(kl={}));(function(i){function e(t){let n=t.target.parentElement;n&&(t.type==="focus"?n.classList.add("jp-mod-focused"):n.classList.remove("jp-mod-focused"))}i.onFocus=e})(qb||(qb={}))});var yX=w(()=>{Qe();Gr()});var xX,wX=w(()=>{xX=z(Je())});var SX,E5e,CX,Vu,eS,IX=w(()=>{nu();SX=z(Ze());Xh();Fo();Qe();Gr();E5e=100,CX=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){CX={passive:!0}}}))}catch{}Vu=class extends j{constructor(e){var t,r;let n=(t=e.renderer)!==null&&t!==void 0?t:Vu.defaultRenderer,s=document.createElement("div");s.className="jp-WindowedPanel";let o=s.appendChild(document.createElement("div"));
6177o.classList.add("jp-WindowedPanel-scrollbar"),o.appendChild(n.createScrollbar()).classList.add("jp-WindowedPanel-scrollbar-content");let l=s.appendChild(n.createOuter());l.classList.add("jp-WindowedPanel-outer");let u=l.appendChild(document.createElement("div"));u.className="jp-WindowedPanel-inner";let c=u.appendChild(n.createViewport());c.classList.add("jp-WindowedPanel-viewport"),super({node:s}),this.jumped=new X(this),this._viewportPaddingTop=0,this._viewportPaddingBottom=0,this._needsUpdate=!1,super.layout=(r=e.layout)!==null&&r!==void 0?r:new eS,this.renderer=n,this._innerElement=u,this._isScrolling=null,this._outerElement=l,this._itemsResizeObserver=null,this._scrollbarElement=o,this._scrollToItem=null,this._scrollRepaint=null,this._scrollUpdateWasRequested=!1,this._updater=new Xl(()=>this.update(),50),this._viewModel=e.model,this._viewport=c,e.scrollbar&&s.classList.add("jp-mod-virtual-scrollbar"),this.viewModel.stateChanged.connect(this.onStateChanged,this)}get isParentHidden(){return this._isParentHidden}set isParentHidden(e){this._isParentHidden=e}get layout(){return super.layout}get outerNode(){return this._outerElement}get viewportNode(){return this._viewport}get scrollbar(){return this.node.classList.contains("jp-mod-virtual-scrollbar")}set scrollbar(e){e?this.node.classList.add("jp-mod-virtual-scrollbar"):this.node.classList.remove("jp-mod-virtual-scrollbar"),this._adjustDimensionsForScrollbar(),this.update()}get viewModel(){return this._viewModel}dispose(){this._updater.dispose(),super.dispose()}handleEvent(e){switch(e.type){case"pointerdown":e.preventDefault(),e.stopPropagation(),this._evtPointerDown(e);break;case"scroll":this.onScroll(e);break}}scrollTo(e){if(!this.viewModel.windowingActive){this._outerElement.scrollTo({top:e});return}e=Math.max(0,e),e!==this.viewModel.scrollOffset&&(this.viewModel.scrollOffset=e,this._scrollUpdateWasRequested=!0,this.update())}scrollToItem(e,t="auto",r=.25,n){(!this._isScrolling||this._scrollToItem===null||this._scrollToItem[0]!==e||this._scrollToItem[1]!==t)&&(this._isScrolling&&this._isScrolling.reject("Scrolling to a new item is requested."),this._isScrolling=new SX.PromiseDelegate,this._isScrolling.promise.catch(console.debug)),this._scrollToItem=[e,t,r,n],this._resetScrollToItem();let s;if(!this.viewModel.windowingActive){let o=this._innerElement.querySelector(`[data-windowed-list-index="${e}"]`);if(!o||!(o instanceof HTMLElement))return console.debug(`Element with index ${e} not found`),Promise.resolve();s={totalSize:this._outerElement.scrollHeight,itemMetadata:{offset:o.offsetTop,size:o.clientHeight},currentOffset:this._outerElement.scrollTop}}return this.scrollTo(this.viewModel.getOffsetForIndexAndAlignment(Math.max(0,Math.min(e,this.viewModel.widgetCount-1)),t,r,s,n)),this._isScrolling.promise}onAfterAttach(e){super.onAfterAttach(e),this.viewModel.windowingActive?this._applyWindowingStyles():this._applyNoWindowingStyles(),this._addListeners(),this.viewModel.height=this.node.getBoundingClientRect().height;let t=window.getComputedStyle(this._viewport);this.viewModel.paddingTop=parseFloat(t.paddingTop),this._viewportPaddingTop=this.viewModel.paddingTop,this._viewportPaddingBottom=parseFloat(t.paddingBottom),this._scrollbarElement.addEventListener("pointerdown",this)}onBeforeDetach(e){this._removeListeners(),this._scrollbarElement.removeEventListener("pointerdown",this),super.onBeforeDetach(e)}onScroll(e){let{clientHeight:t,scrollHeight:r,scrollTop:n}=e.currentTarget;if(!this._scrollUpdateWasRequested&&Math.abs(this.viewModel.scrollOffset-n)>1){let s=Math.max(0,Math.min(n,r-t));this.viewModel.scrollOffset=s,this._scrollUpdateWasRequested=!1,this.update()}}onResize(e){let t=this.viewModel.height;this.viewModel.height=e.height>=0?e.height:this.node.getBoundingClientRect().height,this.viewModel.height!==t&&this._updater.invoke(),super.onResize(e),this._updater.invoke()}onStateChanged(e,t){switch(t.name){case"windowingActive":if(this._removeListeners(),this.viewModel.windowingActive){this._applyWindowingStyles(),this.onScroll({currentTarget:this.node}),this._addListeners();return}else this._applyNoWindowingStyles(),this._addListeners();break;case"estimatedWidgetSize":this._updateTotalSize();return}this.update()}onUpdateRequest(e){this.scrollbar&&this._renderScrollbar(),this.viewModel.windowingActive?this._scrollRepaint===null?(this._needsUpdate=!1,this._scrollRepaint=window.requestAnimationFrame(()=>{this._scrollRepaint=null,this._update(),this._needsUpdate&&this.update()})):this._needsUpdate=!0:this._update()}_adjustDimensionsForScrollbar(){let e=this._outerElement,t=this._scrollbarElement;if(this.scrollbar){let r=e.offsetWidth-e.clientWidth;r==0?(r=1e3,e.style.paddingRight=`${r}px`,e.style.boxSizing="border-box"):e.style.paddingRight="0",e.style.width=`calc(100% + ${r}px)`,this._innerElement.style.marginRight=`${t.offsetWidth}px`}else e.style.width="100%",this._innerElement.style.marginRight="",e.style.paddingRight="0",e.style.boxSizing=""}_addListeners(){if(this.viewModel.windowingActive){this._itemsResizeObserver||(this._itemsResizeObserver=new ResizeObserver(this._onItemResize.bind(this)));for(let e of this.layout.widgets)this._itemsResizeObserver.observe(e.node),e.disposed.connect(()=>{var t;return(t=this._itemsResizeObserver)===null||t===void 0?void 0:t.unobserve(e.node)});this._outerElement.addEventListener("scroll",this,CX),this._scrollbarResizeObserver=new ResizeObserver(this._adjustDimensionsForScrollbar.bind(this)),this._scrollbarResizeObserver.observe(this._outerElement),this._scrollbarResizeObserver.observe(this._scrollbarElement)}else this._areaResizeObserver||(this._areaResizeObserver=new ResizeObserver(this._onAreaResize.bind(this)),this._areaResizeObserver.observe(this._innerElement))}_applyNoWindowingStyles(){this._viewport.style.position="relative",this._viewport.style.top="0px",this._innerElement.style.height=""}_applyWindowingStyles(){this._viewport.style.position="absolute"}_removeListeners(){var e,t,r;this._outerElement.removeEventListener("scroll",this),(e=this._areaResizeObserver)===null||e===void 0||e.disconnect(),this._areaResizeObserver=null,(t=this._itemsResizeObserver)===null||t===void 0||t.disconnect(),this._itemsResizeObserver=null,(r=this._scrollbarResizeObserver)===null||r===void 0||r.disconnect(),this._scrollbarResizeObserver=null}
6177_update(){var e;if(this.isDisposed||!this.layout)return;let t=this.viewModel.getRangeToRender();if(t!==null){let[n,s]=t,o=[];if(s>=0)for(let l=n;l<=s;l++){let u=this.viewModel.widgetRenderer(l);u.dataset.windowedListIndex=`${l}`,o.push(u)}let a=this.layout.widgets.length;for(let l=a-1;l>=0;l--)o.includes(this.layout.widgets[l])||((e=this._itemsResizeObserver)===null||e===void 0||e.unobserve(this.layout.widgets[l].node),this.layout.removeWidget(this.layout.widgets[l]));for(let l=0;l<o.length;l++){let u=o[l];this._itemsResizeObserver&&!this.layout.widgets.includes(u)&&(this._itemsResizeObserver.observe(u.node),u.disposed.connect(()=>{var c;return(c=this._itemsResizeObserver)===null||c===void 0?void 0:c.unobserve(u.node)})),this.layout.insertWidget(l,u)}if(this.viewModel.windowingActive){if(s>=0){this._updateTotalSize();let[l,u]=this.viewModel.getSpan(n,s);this._viewport.style.top=`${l}px`,this._viewport.style.minHeight=`${u}px`}else this._innerElement.style.height="0px",this._viewport.style.top="0px",this._viewport.style.minHeight="0px";this._scrollUpdateWasRequested&&(this._outerElement.scrollTop=this.viewModel.scrollOffset,this._scrollUpdateWasRequested=!1)}}let r=-1;for(let n of this._viewport.children){let s=parseInt(n.dataset.windowedListIndex,10);if(s<r)throw new Error("Inconsistent dataset index");r=s}}_onAreaResize(e){this._scrollBackToItemOnResize()}_onItemResize(e){if(this._resetScrollToItem(),this.isHidden||this.isParentHidden)return;let t=[];for(let r of e)r.target.isConnected&&t.push({index:parseInt(r.target.dataset.windowedListIndex,10),size:r.borderBoxSize[0].blockSize});this.viewModel.setWidgetSize(t)&&(this._scrollBackToItemOnResize(),this.update())}_scrollBackToItemOnResize(){this._scrollToItem&&this.scrollToItem(...this._scrollToItem).catch(e=>{console.log(e)})}_resetScrollToItem(){this._resetScrollToItemTimeout&&clearTimeout(this._resetScrollToItemTimeout),this._scrollToItem&&(this._resetScrollToItemTimeout=window.setTimeout(()=>{this._scrollToItem=null,this._isScrolling&&(this._isScrolling.resolve(),this._isScrolling=null)},E5e))}_renderScrollbar(){var e,t;let{node:r,renderer:n,viewModel:s}=this,o=r.querySelector(".jp-WindowedPanel-scrollbar-content");for(;o.firstChild;)o.removeChild(o.firstChild);let a=s.itemsList,l=(e=a?.length)!==null&&e!==void 0?e:s.widgetCount;for(let u=0;u<l;u+=1){let c=(t=a?.get)===null||t===void 0?void 0:t.call(a,u),d=n.createScrollbarItem(this,u,c);d.classList.add("jp-WindowedPanel-scrollbar-item"),d.dataset.index=`${u}`,o.appendChild(d)}}_evtPointerDown(e){let t=e.target;for(;t&&t.parentElement;){if(t.hasAttribute("data-index")){let r=parseInt(t.getAttribute("data-index"),10);return void(async()=>{await this.scrollToItem(r),this.jumped.emit(r)})()}t=t.parentElement}}_updateTotalSize(){if(this.viewModel.windowingActive){let t=this.viewModel.getEstimatedTotalSize()+this._viewportPaddingTop+this._viewportPaddingBottom;this._innerElement.style.height=`${t}px`}}};Vu.DEFAULT_WIDGET_SIZE=50;eS=class extends xn{constructor(){super({fitPolicy:"set-no-constraint"})}get parent(){return super.parent}set parent(e){super.parent=e}attachWidget(e,t){let r=this.parent.viewportNode.children[e];this.parent.isAttached&&ie.sendMessage(t,j.Msg.BeforeAttach),this.parent.viewportNode.insertBefore(t.node,r),this.parent.isAttached&&ie.sendMessage(t,j.Msg.AfterAttach)}detachWidget(e,t){this.parent.isAttached&&ie.sendMessage(t,j.Msg.BeforeDetach),this.parent.viewportNode.removeChild(t.node),this.parent.isAttached&&ie.sendMessage(t,j.Msg.AfterDetach)}moveWidget(e,t,r){let n=this.parent.viewportNode.children[t];e<t?n.insertAdjacentElement("afterend",r.node):n.insertAdjacentElement("beforebegin",r.node)}onUpdateRequest(e){}};(function(i){class e{createOuter(){return document.createElement("div")}createScrollbar(){return document.createElement("ol")}createScrollbarItem(r,n){let s=document.createElement("li");return s.appendChild(document.createTextNode(`${n}`)),s}createViewport(){return document.createElement("div")}}i.Renderer=e,i.defaultRenderer=new e})(Vu||(Vu={}))});var MX=w(()=>{ok();ak();Dz();$z();Pz();rk();Oz();zz();mX();gX();bX();vX();_X();yX();wX();pX();Y4();IX()});var EX,TX,Hb,kX=w(()=>{EX="jp-HoverBox",TX="-1000";(function(i){function e(t){let{anchor:r,host:n,node:s,privilege:o,outOfViewDisplay:a}=t,l=n.getBoundingClientRect();s.classList.contains(EX)||s.classList.add(EX),s.style.visibility&&(s.style.visibility=""),s.style.zIndex===""&&(s.style.zIndex=""),s.style.maxHeight="",s.style.marginTop="";let u=t.style||window.getComputedStyle(s),c=r.top-l.top,d=l.bottom-r.bottom,f=parseInt(u.marginTop,10)||0,m=parseInt(u.marginLeft,10)||0,b=parseInt(u.minHeight,10)||t.minHeight,y=parseInt(u.maxHeight,10)||t.maxHeight,x=o==="forceAbove"?!1:o==="forceBelow"?!0:o==="above"?c<y&&c<d:d>=y||d>=c;if(x?y=Math.min(d-f,y):(y=Math.min(c,y),s.style.marginTop="0px"),s.style.maxHeight=`${y}px`,!(y>=b&&(d>=b||c>=b))){s.style.zIndex=TX,s.style.visibility="hidden";return}t.size?(s.style.width=`${t.size.width}px`,s.style.height=`${t.size.height}px`,s.style.contain="strict"):(s.style.contain="",s.style.width="auto",s.style.height="");let T=t.size?t.size.height:s.getBoundingClientRect().height,E=t.offset&&t.offset.vertical&&t.offset.vertical.above||0,A=t.offset&&t.offset.vertical&&t.offset.vertical.below||0,R=x?l.bottom-d+A:l.top+c-T+E;s.style.top=`${Math.floor(R)}px`;let $=t.offset&&t.offset.horizontal||0,v=r.left+$;s.style.left=`${Math.ceil(v)}px`;let _=s.getBoundingClientRect(),h=_.right;h>window.innerWidth&&(v-=h-window.innerWidth,h=window.innerWidth,s.style.left=`${Math.ceil(v)}px`),v<$-m&&(v=$-m,s.style.left=`${Math.ceil(v)}px`),s.style.zIndex="-1000";let p=_.bottom,g=n.contains(document.elementFromPoint(v,R)),C=n.contains(document.elementFromPoint(h,R)),I=n.contains(document.elementFromPoint(h,p)),F=n.contains(document.elementFromPoint(v,p));s.style.zIndex="";let P=g||C,K=F||I,W=g||F,Ce=I||C,mi=p-R,Ft=h-v,xt=R<l.top,at=p>l.bottom,os=v+m<l.left,ft=h>l.right,Xe=!1,mn=!1,Cr=!1;if(xt)switch(a?.top||"hidden-inside"){case"hidden-inside":P||(Xe=!0);break;case"hidden-outside":K||(Xe=!0);break;case"stick-inside":l.top>R&&(R=l.top,Cr=!0);break;case"stick-outside":l.top>p&&(R=l.top-mi,Cr=!0);break}if(at)switch(a?.bottom||"hidden-outside"){case"hidden-inside":K||(Xe=!0);break;case"hidden-outside":P||(Xe=!0);break;case"stick-inside":l.bottom<p&&(R=l.bottom-mi,Cr=!0);break;case"stick-outside":l.bottom<R&&(R=l.bottom,Cr=!0);break}if(os)switch(a?.left||"hidden-inside"){case"hidden-inside":W||(Xe=!0);break;case"hidden-outside":Ce||(Xe=!0);break;case"stick-inside":l.left>v+m&&(v=l.left-m,mn=!0);break;case"stick-outside":l.left>h&&(v=l.left-m-Ft,mn=!0);break}if(ft)switch(a?.right||"hidden-outside"){case"hidden-inside":Ce||(Xe=!0);break;case"hidden-outside":W||(Xe=!0);break;case"stick-inside":l.right<h&&(v=l.right-Ft,mn=!0);break;case"stick-outside":l.right<v&&(v=l.right,mn=!0);break}Xe&&(s.style.zIndex=TX,s.style.visibility="hidden"),mn&&(s.style.left=`${Math.ceil(v)}px`),Cr&&(s.style.top=`${Math.ceil(R)}px`)}i.setGeometry=e})(Hb||(Hb={}))});var tS,pSt,mSt,AX=w(()=>{tS=z(Ze()),pSt=new tS.Token("@jupyterlab/ui-components:IFormRendererRegistry","A service for settings form renderer registration."),mSt=new tS.Token("@jupyterlab/ui-components:ILabIconManager","A service to register and request icons.")});var RX=w(()=>{});var fa=w(()=>{MX();rf();kX();AX();No();RX()});function Uu(i){return Uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uu(i)}var iS=w(()=>{});function DX(i,e){if(Uu(i)!="object"||!i)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e||"default");if(Uu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}var OX=w(()=>{iS()});function LX(i){var e=DX(i,"string");return Uu(e)=="symbol"?e:e+""}var $X=w(()=>{iS();OX()});function DSt(i,e,t){return(e=LX(e))in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}var T5e=w(()=>{$X()});function FX(){return FX=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(i[r]=t[r])}return i},FX.apply(null,arguments)}var k5e=w(()=>{});function rS(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=Array(e);t<e;t++)r[t]=i[t];return r}var PX=w(()=>{});function PSt(i,e){if(i){if(typeof i=="string")return rS(i,e);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?rS(i,e):void 0}}var A5e=w(()=>{PX()});var jb,nS,sS=w(()=>{Qe();jb=class{constructor(e={}){if(this._map=new Map,this._changed=new X(this),this._isDisposed=!1,this._itemCmp=e.itemCmp||nS.itemCmp,e.values)for(let t in e.values)this._map.set(t,e.values[t])}get type(){return"Map"}get changed(){return this._changed}get isDisposed(){return this._isDisposed}get size(){return this._map.size}set(e,t){let r=this._map.get(e);if(t===void 0)throw Error("Cannot set an undefined value, use remove");let n=this._itemCmp;return r!==void 0&&n(r,t)||(this._map.set(e,t),this._changed.emit({type:r?"change":"add",key:e,oldValue:r,newValue:t})),r}get(e){return this._map.get(e)}has(e){return this._map.has(e)}keys(){let e=[];
6177return this._map.forEach((t,r)=>{e.push(r)}),e}values(){let e=[];return this._map.forEach((t,r)=>{e.push(t)}),e}delete(e){let t=this._map.get(e);return this._map.delete(e)&&this._changed.emit({type:"remove",key:e,oldValue:t,newValue:void 0}),t}clear(){let e=this.keys();for(let t=0;t<e.length;t++)this.delete(e[t])}dispose(){this.isDisposed||(this._isDisposed=!0,X.clearData(this),this._map.clear())}};(function(i){function e(t,r){return t===r}i.itemCmp=e})(nS||(nS={}))});function BX(i,e){let t=0;for(let r of i)if(e(r,t++)===!1)return!1;return!0}function qX(i,e){let t=0;for(let r of i)if(e(r,t++))return!0;return!1}function*HX(i){if(typeof i.retro=="function")yield*i.retro();else for(let e=i.length-1;e>-1;e--)yield i[e]}var is,NX,zX,oS=w(()=>{(function(i){function e(v,_,h=0,p=-1){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;p<h?C=p+1+(g-h):C=p-h+1;for(let I=0;I<C;++I){let F=(h+I)%g;if(v[F]===_)return F}return-1}i.firstIndexOf=e;function t(v,_,h=-1,p=0){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;h<p?C=h+1+(g-p):C=h-p+1;for(let I=0;I<C;++I){let F=(h-I+g)%g;if(v[F]===_)return F}return-1}i.lastIndexOf=t;function r(v,_,h=0,p=-1){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;p<h?C=p+1+(g-h):C=p-h+1;for(let I=0;I<C;++I){let F=(h+I)%g;if(_(v[F],F))return F}return-1}i.findFirstIndex=r;function n(v,_,h=-1,p=0){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;h<p?C=h+1+(g-p):C=h-p+1;for(let I=0;I<C;++I){let F=(h-I+g)%g;if(_(v[F],F))return F}return-1}i.findLastIndex=n;function s(v,_,h=0,p=-1){let g=r(v,_,h,p);return g!==-1?v[g]:void 0}i.findFirstValue=s;function o(v,_,h=-1,p=0){let g=n(v,_,h,p);return g!==-1?v[g]:void 0}i.findLastValue=o;function a(v,_,h,p=0,g=-1){let C=v.length;if(C===0)return 0;p<0?p=Math.max(0,p+C):p=Math.min(p,C-1),g<0?g=Math.max(0,g+C):g=Math.min(g,C-1);let I=p,F=g-p+1;for(;F>0;){let P=F>>1,K=I+P;h(v[K],_)<0?(I=K+1,F-=P+1):F=P}return I}i.lowerBound=a;function l(v,_,h,p=0,g=-1){let C=v.length;if(C===0)return 0;p<0?p=Math.max(0,p+C):p=Math.min(p,C-1),g<0?g=Math.max(0,g+C):g=Math.min(g,C-1);let I=p,F=g-p+1;for(;F>0;){let P=F>>1,K=I+P;h(v[K],_)>0?F=P:(I=K+1,F-=P+1)}return I}i.upperBound=l;function u(v,_,h){if(v===_)return!0;if(v.length!==_.length)return!1;for(let p=0,g=v.length;p<g;++p)if(h?!h(v[p],_[p]):v[p]!==_[p])return!1;return!0}i.shallowEqual=u;function c(v,_={}){let{start:h,stop:p,step:g}=_;if(g===void 0&&(g=1),g===0)throw new Error("Slice `step` cannot be zero.");let C=v.length;h===void 0?h=g<0?C-1:0:h<0?h=Math.max(h+C,g<0?-1:0):h>=C&&(h=g<0?C-1:C),p===void 0?p=g<0?-1:C:p<0?p=Math.max(p+C,g<0?-1:0):p>=C&&(p=g<0?C-1:C);let I;g<0&&p>=h||g>0&&h>=p?I=0:g<0?I=Math.floor((p-h+1)/g+1):I=Math.floor((p-h-1)/g+1);let F=[];for(let P=0;P<I;++P)F[P]=v[h+P*g];return F}i.slice=c;function d(v,_,h){let p=v.length;if(p<=1||(_<0?_=Math.max(0,_+p):_=Math.min(_,p-1),h<0?h=Math.max(0,h+p):h=Math.min(h,p-1),_===h))return;let g=v[_],C=_<h?1:-1;for(let I=_;I!==h;I+=C)v[I]=v[I+C];v[h]=g}i.move=d;function f(v,_=0,h=-1){let p=v.length;if(!(p<=1))for(_<0?_=Math.max(0,_+p):_=Math.min(_,p-1),h<0?h=Math.max(0,h+p):h=Math.min(h,p-1);_<h;){let g=v[_],C=v[h];v[_++]=C,v[h--]=g}}i.reverse=f;function m(v,_,h=0,p=-1){let g=v.length;if(g<=1||(h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1),h>=p))return;let C=p-h+1;if(_>0?_=_%C:_<0&&(_=(_%C+C)%C),_===0)return;let I=h+_;f(v,h,I-1),f(v,I,p),f(v,h,p)}i.rotate=m;function b(v,_,h=0,p=-1){let g=v.length;if(g===0)return;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;p<h?C=p+1+(g-h):C=p-h+1;for(let I=0;I<C;++I)v[(h+I)%g]=_}i.fill=b;function y(v,_,h){let p=v.length;_<0?_=Math.max(0,_+p):_=Math.min(_,p);for(let g=p;g>_;--g)v[g]=v[g-1];v[_]=h}i.insert=y;function x(v,_){let h=v.length;if(_<0&&(_+=h),_<0||_>=h)return;let p=v[_];for(let g=_+1;g<h;++g)v[g-1]=v[g];return v.length=h-1,p}i.removeAt=x;function M(v,_,h=0,p=-1){let g=e(v,_,h,p);return g!==-1&&x(v,g),g}i.removeFirstOf=M;function T(v,_,h=-1,p=0){let g=t(v,_,h,p);return g!==-1&&x(v,g),g}i.removeLastOf=T;function E(v,_,h=0,p=-1){let g=v.length;if(g===0)return 0;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C=0;for(let I=0;I<g;++I)h<=p&&I>=h&&I<=p&&v[I]===_||p<h&&(I<=p||I>=h)&&v[I]===_?C++:C>
61770&&(v[I-C]=v[I]);return C>0&&(v.length=g-C),C}i.removeAllOf=E;function A(v,_,h=0,p=-1){let g,C=r(v,_,h,p);return C!==-1&&(g=x(v,C)),{index:C,value:g}}i.removeFirstWhere=A;function R(v,_,h=-1,p=0){let g,C=n(v,_,h,p);return C!==-1&&(g=x(v,C)),{index:C,value:g}}i.removeLastWhere=R;function $(v,_,h=0,p=-1){let g=v.length;if(g===0)return 0;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C=0;for(let I=0;I<g;++I)h<=p&&I>=h&&I<=p&&_(v[I],I)||p<h&&(I<=p||I>=h)&&_(v[I],I)?C++:C>0&&(v[I-C]=v[I]);return C>0&&(v.length=g-C),C}i.removeAllWhere=$})(is||(is={}));(function(i){function e(t,r,n){return n===0?1/0:t>r&&n>0||t<r&&n<0?0:Math.ceil((r-t)/n)}i.rangeLength=e})(NX||(NX={}));(function(i){function e(o,a,l=0){let u=new Array(a.length);for(let c=0,d=l,f=a.length;c<f;++c,++d){if(d=o.indexOf(a[c],d),d===-1)return null;u[c]=d}return u}i.findIndices=e;function t(o,a,l=0){let u=e(o,a,l);if(!u)return null;let c=0;for(let d=0,f=u.length;d<f;++d){let m=u[d]-l;c+=m*m}return{score:c,indices:u}}i.matchSumOfSquares=t;function r(o,a,l=0){let u=e(o,a,l);if(!u)return null;let c=0,d=l-1;for(let f=0,m=u.length;f<m;++f){let b=u[f];c+=b-d-1,d=b}return{score:c,indices:u}}i.matchSumOfDeltas=r;function n(o,a,l){let u=[],c=0,d=0,f=a.length;for(;c<f;){let m=a[c],b=a[c];for(;++c<f&&a[c]===b+1;)b++;d<m&&u.push(o.slice(d,m)),m<b+1&&u.push(l(o.slice(m,b+1))),d=b+1}return d<o.length&&u.push(o.slice(d)),u}i.highlight=n;function s(o,a){return o<a?-1:o>a?1:0}i.cmp=s})(zX||(zX={}))});var Vd,pa,jX=w(()=>{Vd=class{constructor(){this._first=null,this._last=null,this._size=0}get isEmpty(){return this._size===0}get size(){return this._size}get length(){return this._size}get first(){return this._first?this._first.value:void 0}get last(){return this._last?this._last.value:void 0}get firstNode(){return this._first}get lastNode(){return this._last}*[Symbol.iterator](){let e=this._first;for(;e;)yield e.value,e=e.next}*retro(){let e=this._last;for(;e;)yield e.value,e=e.prev}*nodes(){let e=this._first;for(;e;)yield e,e=e.next}*retroNodes(){let e=this._last;for(;e;)yield e,e=e.prev}assign(e){this.clear();for(let t of e)this.addLast(t)}push(e){this.addLast(e)}pop(){return this.removeLast()}shift(e){this.addFirst(e)}unshift(){return this.removeFirst()}addFirst(e){let t=new pa.LinkedListNode(this,e);return this._first?(t.next=this._first,this._first.prev=t,this._first=t):(this._first=t,this._last=t),this._size++,t}addLast(e){let t=new pa.LinkedListNode(this,e);return this._last?(t.prev=this._last,this._last.next=t,this._last=t):(this._first=t,this._last=t),this._size++,t}insertBefore(e,t){if(!t||t===this._first)return this.addFirst(e);if(!(t instanceof pa.LinkedListNode)||t.list!==this)throw new Error("Reference node is not owned by the list.");let r=new pa.LinkedListNode(this,e),n=t,s=n.prev;return r.next=n,r.prev=s,n.prev=r,s.next=r,this._size++,r}insertAfter(e,t){if(!t||t===this._last)return this.addLast(e);if(!(t instanceof pa.LinkedListNode)||t.list!==this)throw new Error("Reference node is not owned by the list.");let r=new pa.LinkedListNode(this,e),n=t,s=n.next;return r.next=s,r.prev=n,n.next=r,s.prev=r,this._size++,r}removeFirst(){let e=this._first;if(e)return e===this._last?(this._first=null,this._last=null):(this._first=e.next,this._first.prev=null),e.list=null,e.next=null,e.prev=null,this._size--,e.value}removeLast(){let e=this._last;if(e)return e===this._first?(this._first=null,this._last=null):(this._last=e.prev,this._last.next=null),e.list=null,e.next=null,e.prev=null,this._size--,e.value}removeNode(e){if(!(e instanceof pa.LinkedListNode)||e.list!==this)throw new Error("Node is not owned by the list.");let t=e;t===this._first&&t===this._last?(this._first=null,this._last=null):t===this._first?(this._first=t.next,this._first.prev=null):t===this._last?(this._last=t.prev,this._last.next=null):(t.next.prev=t.prev,t.prev.next=t.next),t.list=null,t.next=null,t.prev=null,this._size--}clear(){let e=this._first;for(;e;){let t=e.next;e.list=null,e.prev=null,e.next=null,e=t}this._first=null,this._last=null,this._size=0}};(function(i){function e(t){let r=new i;return r.assign(t),r}i.from=e})(Vd||(Vd={}));(function(i){class e{constructor(r,n){this.list=null,this.next=null,this.prev=null,this.list=r,this.value=n}}i.LinkedListNode=e})(pa||(pa={}))});var Vb,VX,UX=w(()=>{oS();jX();Vb=class{constructor(e){this.type=e}get isConflatable(){return!1}conflate(e){return!1}};(function(i){let e=null,t=(_=>h=>{let p=!1;return _.then(()=>!p&&h()),()=>{p=!0}})(Promise.resolve());function r(_,h){let p=f.get(_);if(!p||p.length===0){M(_,h);return}BX(HX(p),C=>C?x(C,_,h):!0)&&M(_,h)}i.sendMessage=r;function n(_,h){if(!h.isConflatable){T(_,h);return}qX(d,g=>g.handler!==_||!g.msg||g.msg.type!==h.type||!g.msg.isConflatable?!1:g.msg.conflate(h))||T(_,h)}i.postMessage=n;function s(_,h){let p=f.get(_);p&&p.indexOf(h)!==-1||(p?p.push(h):f.set(_,[h]))}i.installMessageHook=s;function o(_,h){let p=f.get(_);if(!p)return;let g=p.indexOf(h);g!==-1&&(p[g]=null,A(p))}i.removeMessageHook=o;function a(_){let h=f.get(_);h&&h.length>0&&(is.fill(h,null),A(h));for(let p of d)p.handler===_&&(p.handler=null,p.msg=null)}i.clearData=a;function l(){y||e===null||(e(),e=null,y=!0,E(),y=!1)}i.flush=l;function u(){return b}i.getExceptionHandler=u;function c(_){let h=b;return b=_,h}i.setExceptionHandler=c;let d=new Vd,f=new WeakMap,m=new Set,b=_=>{console.error(_)},y=!1;function x(_,h,p){let g=!0;try{typeof _=="function"?g=_(h,p):g=_.messageHook(h,p)}catch(C){b(C)}return g}function M(_,h){try{_.processMessage(h)}catch(p){b(p)}}function T(_,h){d.addLast({handler:_,msg:h}),e===null&&(e=t(E))}
6177function E(){if(e=null,d.isEmpty)return;let _={handler:null,msg:null};for(d.addLast(_);;){let h=d.removeFirst();if(h===_)return;h.handler&&h.msg&&r(h.handler,h.msg)}}function A(_){m.size===0&&t(R),m.add(_)}function R(){m.forEach($),m.clear()}function $(_){is.removeAllWhere(_,v)}function v(_){return _===null}})(VX||(VX={}))});var aS,Ub,WX=w(()=>{aS=z(Ze());UX();sS();Ub=class extends jb{constructor(e={}){super({itemCmp:aS.JSONExt.deepEqual,values:e.values})}toJSON(){let e=Object.create(null),t=this.keys();for(let r of t){let n=this.get(r);n!==void 0&&(e[r]=aS.JSONExt.deepCopy(n))}return e}};(function(i){class e extends Vb{constructor(r,n){super(r),this.args=n}}i.ChangeMessage=e})(Ub||(Ub={}))});var GX=w(()=>{Qe()});var Wb,lS,uS=w(()=>{oS();Qe();Wb=class{constructor(e={}){if(this._array=[],this._isDisposed=!1,this._changed=new X(this),e.values)for(let t of e.values)this._array.push(t);this._itemCmp=e.itemCmp||lS.itemCmp}get type(){return"List"}get changed(){return this._changed}get length(){return this._array.length}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,X.clearData(this),this.clear())}[Symbol.iterator](){return this._array[Symbol.iterator]()}get(e){return this._array[e]}set(e,t){let r=this._array[e];if(t===void 0)throw new Error("Cannot set an undefined item");let n=this._itemCmp;n(r,t)||(this._array[e]=t,this._changed.emit({type:"set",oldIndex:e,newIndex:e,oldValues:[r],newValues:[t]}))}push(e){let t=this._array.push(e);return this._changed.emit({type:"add",oldIndex:-1,newIndex:this.length-1,oldValues:[],newValues:[e]}),t}insert(e,t){e===this._array.length?this._array.push(t):is.insert(this._array,e,t),this._changed.emit({type:"add",oldIndex:-2,newIndex:e,oldValues:[],newValues:[t]})}removeValue(e){let t=this._itemCmp,r=is.findFirstIndex(this._array,n=>t(n,e));return this.remove(r),r}remove(e){let t=is.removeAt(this._array,e);if(t!==void 0)return this._changed.emit({type:"remove",oldIndex:e,newIndex:-1,newValues:[],oldValues:[t]}),t}clear(){let e=this._array.slice();this._array.length=0,this._changed.emit({type:"remove",oldIndex:0,newIndex:0,newValues:[],oldValues:e})}move(e,t){if(this.length<=1||e===t)return;let r=[this._array[e]];is.move(this._array,e,t),this._changed.emit({type:"move",oldIndex:e,newIndex:t,oldValues:r,newValues:r})}pushAll(e){let t=this.length;for(let r of e)this._array.push(r);return this._changed.emit({type:"add",oldIndex:-1,newIndex:t,oldValues:[],newValues:Array.from(e)}),this.length}insertAll(e,t){let r=e;for(let n of t)is.insert(this._array,e++,n);this._changed.emit({type:"add",oldIndex:-2,newIndex:r,oldValues:[],newValues:Array.from(t)})}removeRange(e,t){let r=this._array.slice(e,t);for(let n=e;n<t;n++)is.removeAt(this._array,e);return this._changed.emit({type:"remove",oldIndex:e,newIndex:-1,oldValues:r,newValues:[]}),this.length}};(function(i){function e(t,r){return t===r}i.itemCmp=e})(lS||(lS={}))});var Gb,KX=w(()=>{uS();Gb=class extends Wb{constructor(e){super(),this._inCompound=!1,this._isUndoable=!0,this._madeCompoundChange=!1,this._index=-1,this._stack=[],this._serializer=e,this.changed.connect(this._onListChanged,this)}get canRedo(){return this._index<this._stack.length-1}get canUndo(){return this._index>=0}beginCompoundOperation(e){this._inCompound=!0,this._isUndoable=e!==!1,this._madeCompoundChange=!1}endCompoundOperation(){this._inCompound=!1,this._isUndoable=!0,this._madeCompoundChange&&this._index++}undo(){if(!this.canUndo)return;let e=this._stack[this._index];this._isUndoable=!1;for(let t of e.reverse())this._undoChange(t);this._isUndoable=!0,this._index--}redo(){if(!this.canRedo)return;this._index++;let e=this._stack[this._index];this._isUndoable=!1;for(let t of e)this._redoChange(t);this._isUndoable=!0}clearUndo(){this._index=-1,this._stack=[]}_onListChanged(e,t){if(this.isDisposed||!this._isUndoable)return;(!this._inCompound||!this._madeCompoundChange)&&(this._stack=this._stack.slice(0,this._index+1));let r=this._copyChange(t);this._stack[this._index+1]?this._stack[this._index+1].push(r):this._stack.push([r]),this._inCompound?this._madeCompoundChange=!0:this._index++}_undoChange(e){let t=0,r=this._serializer;switch(e.type){case"add":for(let n=e.newValues.length;n>0;n--)this.remove(e.newIndex);break;case"set":t=e.oldIndex;for(let n of e.oldValues)this.set(t++,r.fromJSON(n));break;case"remove":t=e.oldIndex;for(let n of e.oldValues)this.insert(t++,r.fromJSON(n));break;case"move":this.move(e.newIndex,e.oldIndex);break;default:return}}_redoChange(e){let t=0,r=this._serializer;switch(e.type){case"add":t=e.newIndex;for(let n of e.newValues)this.insert(t++,r.fromJSON(n));break;case"set":t=e.newIndex;for(let n of e.newValues)this.set(e.newIndex++,r.fromJSON(n));break;case"remove":for(let n=e.oldValues.length;n>0;n--)this.remove(e.oldIndex);break;case"move":this.move(e.oldIndex,e.newIndex);break;default:return}}_copyChange(e){let t=[];for(let n of e.oldValues)t.push(this._serializer.toJSON(n));let r=[];for(let n of e.newValues)r.push(this._serializer.toJSON(n));return{type:e.type,oldIndex:e.oldIndex,newIndex:e.newIndex,oldValues:t,newValues:r}}};(function(i){class e{toJSON(r){return r}fromJSON(r){return r}}
6177i.IdentitySerializer=e})(Gb||(Gb={}))});var YX,Kb,XX=w(()=>{YX=z(Ze());Fn();Qe();Kb=class{constructor(e=null){this._value=null,this._changed=new X(this),this._isDisposed=!1,this._value=e}get type(){return"Value"}get isDisposed(){return this._isDisposed}get changed(){return this._changed}get(){return this._value}set(e){let t=this._value;YX.JSONExt.deepEqual(t,e)||(this._value=e,this._changed.emit({oldValue:t,newValue:e}))}dispose(){this._isDisposed||(this._isDisposed=!0,X.clearData(this),this._value=null)}};(function(i){class e{}i.IChangedArgs=e})(Kb||(Kb={}))});var R5e=w(()=>{XX();WX();uS();sS();GX();KX()});function*Wd(){}function cS(i,e){let t=0;for(let r of i)if(e(r,t++))return r}function ZX(i,e){let t=0;for(let r of i)if(e(r,t++)===!1)return!1;return!0}function QX(i,e){let t=0;for(let r of i)if(e(r,t++))return!0;return!1}function*eJ(i){if(typeof i.retro=="function")yield*i.retro();else for(let e=i.length-1;e>-1;e--)yield i[e]}var de,JX,Ud,Yb=w(()=>{(function(i){function e(v,_,h=0,p=-1){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;p<h?C=p+1+(g-h):C=p-h+1;for(let I=0;I<C;++I){let F=(h+I)%g;if(v[F]===_)return F}return-1}i.firstIndexOf=e;function t(v,_,h=-1,p=0){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;h<p?C=h+1+(g-p):C=h-p+1;for(let I=0;I<C;++I){let F=(h-I+g)%g;if(v[F]===_)return F}return-1}i.lastIndexOf=t;function r(v,_,h=0,p=-1){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;p<h?C=p+1+(g-h):C=p-h+1;for(let I=0;I<C;++I){let F=(h+I)%g;if(_(v[F],F))return F}return-1}i.findFirstIndex=r;function n(v,_,h=-1,p=0){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;h<p?C=h+1+(g-p):C=h-p+1;for(let I=0;I<C;++I){let F=(h-I+g)%g;if(_(v[F],F))return F}return-1}i.findLastIndex=n;function s(v,_,h=0,p=-1){let g=r(v,_,h,p);return g!==-1?v[g]:void 0}i.findFirstValue=s;function o(v,_,h=-1,p=0){let g=n(v,_,h,p);return g!==-1?v[g]:void 0}i.findLastValue=o;function a(v,_,h,p=0,g=-1){let C=v.length;if(C===0)return 0;p<0?p=Math.max(0,p+C):p=Math.min(p,C-1),g<0?g=Math.max(0,g+C):g=Math.min(g,C-1);let I=p,F=g-p+1;for(;F>0;){let P=F>>1,K=I+P;h(v[K],_)<0?(I=K+1,F-=P+1):F=P}return I}i.lowerBound=a;function l(v,_,h,p=0,g=-1){let C=v.length;if(C===0)return 0;p<0?p=Math.max(0,p+C):p=Math.min(p,C-1),g<0?g=Math.max(0,g+C):g=Math.min(g,C-1);let I=p,F=g-p+1;for(;F>0;){let P=F>>1,K=I+P;h(v[K],_)>0?F=P:(I=K+1,F-=P+1)}return I}i.upperBound=l;function u(v,_,h){if(v===_)return!0;if(v.length!==_.length)return!1;for(let p=0,g=v.length;p<g;++p)if(h?!h(v[p],_[p]):v[p]!==_[p])return!1;return!0}i.shallowEqual=u;function c(v,_={}){let{start:h,stop:p,step:g}=_;if(g===void 0&&(g=1),g===0)throw new Error("Slice `step` cannot be zero.");let C=v.length;h===void 0?h=g<0?C-1:0:h<0?h=Math.max(h+C,g<0?-1:0):h>=C&&(h=g<0?C-1:C),p===void 0?p=g<0?-1:C:p<0?p=Math.max(p+C,g<0?-1:0):p>=C&&(p=g<0?C-1:C);let I;g<0&&p>=h||g>0&&h>=p?I=0:g<0?I=Math.floor((p-h+1)/g+1):I=Math.floor((p-h-1)/g+1);let F=[];for(let P=0;P<I;++P)F[P]=v[h+P*g];return F}i.slice=c;function d(v,_,h){let p=v.length;if(p<=1||(_<0?_=Math.max(0,_+p):_=Math.min(_,p-1),h<0?h=Math.max(0,h+p):h=Math.min(h,p-1),_===h))return;let g=v[_],C=_<h?1:-1;for(let I=_;I!==h;I+=C)v[I]=v[I+C];v[h]=g}i.move=d;function f(v,_=0,h=-1){let p=v.length;if(!(p<=1))for(_<0?_=Math.max(0,_+p):_=Math.min(_,p-1),h<0?h=Math.max(0,h+p):h=Math.min(h,p-1);_<h;){let g=v[_],C=v[h];v[_++]=C,v[h--]=g}}i.reverse=f;function m(v,_,h=0,p=-1){let g=v.length;if(g<=1||(h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1),h>=p))return;let C=p-h+1;if(_>0?_=_%C:_<0&&(_=(_%C+C)%C),_===0)return;let I=h+_;f(v,h,I-1),f(v,I,p),f(v,h,p)}i.rotate=m;function b(v,_,h=0,p=-1){let g=v.length;if(g===0)return;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;p<h?C=p+1+(g-h):C=p-h+1;for(let I=0;I<C;++I)v[(h+I)%g]=_}i.fill=b;function y(v,_,h){let p=v.length;_<0?_=Math.max(0,_+p):_=Math.min(_,p);for(let g=p;g>_;--g)v[g]=v[g-1];v[_]=h}i.insert=y;function x(v,_){let h=v.length;if(_<0&&(_+=h),_<0||_>=h)return;let p=v[_];for(let g=_+1;g<h;++g)v[g-1]=v[g];return v.length=h-1,p}i.removeAt=x;function M(v,_,h=0,p=-1){let g=e(v,_,h,p);return g!==-1&&x(v,g),g}i.removeFirstOf=M;function T(v,_,h=-1,p=0){let g=t(v,_,h,p);return g!==-1&&x(v,g),g}i.removeLastOf=T;function E(v,_,h=0,p=-1){let g=v.length;if(g===0)return 0;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C=0;for(let I=0;I<g;++I)h<=p&&I>=h&&I<=p&&v[I]===_||p<h&&(I<=p||I>=h)&&v[I]===_?C++:C>
61770&&(v[I-C]=v[I]);return C>0&&(v.length=g-C),C}i.removeAllOf=E;function A(v,_,h=0,p=-1){let g,C=r(v,_,h,p);return C!==-1&&(g=x(v,C)),{index:C,value:g}}i.removeFirstWhere=A;function R(v,_,h=-1,p=0){let g,C=n(v,_,h,p);return C!==-1&&(g=x(v,C)),{index:C,value:g}}i.removeLastWhere=R;function $(v,_,h=0,p=-1){let g=v.length;if(g===0)return 0;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C=0;for(let I=0;I<g;++I)h<=p&&I>=h&&I<=p&&_(v[I],I)||p<h&&(I<=p||I>=h)&&_(v[I],I)?C++:C>0&&(v[I-C]=v[I]);return C>0&&(v.length=g-C),C}i.removeAllWhere=$})(de||(de={}));(function(i){function e(t,r,n){return n===0?1/0:t>r&&n>0||t<r&&n<0?0:Math.ceil((r-t)/n)}i.rangeLength=e})(JX||(JX={}));(function(i){function e(o,a,l=0){let u=new Array(a.length);for(let c=0,d=l,f=a.length;c<f;++c,++d){if(d=o.indexOf(a[c],d),d===-1)return null;u[c]=d}return u}i.findIndices=e;function t(o,a,l=0){let u=e(o,a,l);if(!u)return null;let c=0;for(let d=0,f=u.length;d<f;++d){let m=u[d]-l;c+=m*m}return{score:c,indices:u}}i.matchSumOfSquares=t;function r(o,a,l=0){let u=e(o,a,l);if(!u)return null;let c=0,d=l-1;for(let f=0,m=u.length;f<m;++f){let b=u[f];c+=b-d-1,d=b}return{score:c,indices:u}}i.matchSumOfDeltas=r;function n(o,a,l){let u=[],c=0,d=0,f=a.length;for(;c<f;){let m=a[c],b=a[c];for(;++c<f&&a[c]===b+1;)b++;d<m&&u.push(o.slice(d,m)),m<b+1&&u.push(l(o.slice(m,b+1))),d=b+1}return d<o.length&&u.push(o.slice(d)),u}i.highlight=n;function s(o,a){return o<a?-1:o>a?1:0}i.cmp=s})(Ud||(Ud={}))});var tJ,Tt,Wu,Gu,Rs,iJ=w(()=>{(function(i){function e(t){let r=document.body,n=s=>{s.preventDefault(),s.stopPropagation(),s.clipboardData.setData("text",t),r.removeEventListener("copy",n,!0)};r.addEventListener("copy",n,!0),document.execCommand("copy")}i.copyText=e})(tJ||(tJ={}));(function(i){function e(s){let o=window.getComputedStyle(s),a=parseFloat(o.borderTopWidth)||0,l=parseFloat(o.borderLeftWidth)||0,u=parseFloat(o.borderRightWidth)||0,c=parseFloat(o.borderBottomWidth)||0,d=parseFloat(o.paddingTop)||0,f=parseFloat(o.paddingLeft)||0,m=parseFloat(o.paddingRight)||0,b=parseFloat(o.paddingBottom)||0,y=l+f+m+u,x=a+d+b+c;return{borderTop:a,borderLeft:l,borderRight:u,borderBottom:c,paddingTop:d,paddingLeft:f,paddingRight:m,paddingBottom:b,horizontalSum:y,verticalSum:x}}i.boxSizing=e;function t(s){let o=window.getComputedStyle(s),a=parseFloat(o.minWidth)||0,l=parseFloat(o.minHeight)||0,u=parseFloat(o.maxWidth)||1/0,c=parseFloat(o.maxHeight)||1/0;return u=Math.max(a,u),c=Math.max(l,c),{minWidth:a,minHeight:l,maxWidth:u,maxHeight:c}}i.sizeLimits=t;function r(s,o,a){let l=s.getBoundingClientRect();return o>=l.left&&o<l.right&&a>=l.top&&a<l.bottom}i.hitTest=r;function n(s,o){let a=s.getBoundingClientRect(),l=o.getBoundingClientRect();if(!(l.top<=a.top&&l.bottom>=a.bottom)){if(l.top<a.top&&l.height<=a.height){s.scrollTop-=a.top-l.top;return}if(l.bottom>a.bottom&&l.height>=a.height){s.scrollTop-=a.top-l.top;return}if(l.top<a.top&&l.height>a.height){s.scrollTop-=a.bottom-l.bottom;return}if(l.bottom>a.bottom&&l.height<a.height){s.scrollTop-=a.bottom-l.bottom;return}}}i.scrollIntoViewIfNeeded=n})(Tt||(Tt={}));(function(i){i.IS_MAC=!!navigator.platform.match(/Mac/i),i.IS_WIN=!!navigator.platform.match(/Win/i),i.IS_IE=/Trident/.test(navigator.userAgent),i.IS_EDGE=/Edge/.test(navigator.userAgent);function e(t){return i.IS_MAC?t.metaKey:t.ctrlKey}i.accelKey=e})(Wu||(Wu={}));(function(i){function e(n){if(n in Rs.specificityCache)return Rs.specificityCache[n];let s=Rs.calculateSingle(n);return Rs.specificityCache[n]=s}i.calculateSpecificity=e;function t(n){if(n in Rs.validityCache)return Rs.validityCache[n];let s=!0;try{Rs.testElem.querySelector(n)}catch{s=!1}return Rs.validityCache[n]=s}i.isValid=t;function r(n,s){return Rs.protoMatchFunc.call(n,s)}i.matches=r})(Gu||(Gu={}));(function(i){i.specificityCache=Object.create(null),i.validityCache=Object.create(null),i.testElem=document.createElement("div"),i.protoMatchFunc=(()=>{let c=Element.prototype;return c.matches||c.matchesSelector||c.mozMatchesSelector||c.msMatchesSelector||c.oMatchesSelector||c.webkitMatchesSelector||function(d){let f=this,m=f.ownerDocument?f.ownerDocument.querySelectorAll(d):[];return Array.prototype.indexOf.call(m,f)!==-1}})();function e(c){c=c.split(",",1)[0];let d=0,f=0,m=0;function b(y){let x=c.match(y);return x===null?!1:(c=c.slice(x[0].length),!0)}for(c=c.replace(u," $1 ");c.length>0;){if(b(t)){d++;continue}if(b(r)){f++;continue}if(b(n)){f++;continue}if(b(o)){m++;continue}if(b(a)){f++;continue}if(b(s)){m++;continue}if(!b(l))return 0}return d=Math.min(d,255),f=Math.min(f,255),m=Math.min(m,255),d<<16|f<<8|m}i.calculateSingle=e;let t=/^#[^\s\+>~#\.\[:]+/,r=/^\.[^\s\+>~#\.\[:]+/,n=/^\[[^\]]+\]/,s=/^[^\s\+>~#\.\[:]+/,o=/^(::[^\s\+>~#\.\[:]+|:first-line|:first-letter|:before|:after)/,a=/^:[^\s\+>~#\.\[:]+/,l=/^[\s\+>~\*]+/,u=/:not\(([^\)]+)\)/g})(Rs||(Rs={}))});var Gd,ma,rJ=w(()=>{Gd=class{constructor(){this._first=null,this._last=null,this._size=0}get isEmpty(){return this._size===0}get size(){return this._size}get length(){return this._size}get first(){return this._first?this._first.value:void 0}get last(){return this._last?this._last.value:void 0}get firstNode(){return this._first}get lastNode(){return this._last}*[Symbol.iterator](){let e=this._first;for(;e;)yield e.value,e=e.next}*retro(){let e=this._last;for(;e;)yield e.value,e=e.prev}*nodes(){let e=this._first;for(;e;)yield e,e=e.next}*retroNodes(){let e=this._last;for(;e;)yield e,e=e.prev}assign(e){this.clear();for(let t of e)this.addLast(t)}push(e){this.addLast(e)}pop(){return this.removeLast()}shift(e){this.addFirst(e)}unshift(){return this.removeFirst()}addFirst(e){let t=new ma.LinkedListNode(this,e);return this._first?(t.next=this._first,this._first.prev=t,this._first=t):(this._first=t,this._last=t),this._size++,t}addLast(e){let t=new ma.LinkedListNode(this,e);return this._last?(t.prev=this._last,this._last.next=t,this._last=t):(this._first=t,this._last=t),this._size++,t}insertBefore(e,t){if(!t||t===this._first)return this.addFirst(e);
6177if(!(t instanceof ma.LinkedListNode)||t.list!==this)throw new Error("Reference node is not owned by the list.");let r=new ma.LinkedListNode(this,e),n=t,s=n.prev;return r.next=n,r.prev=s,n.prev=r,s.next=r,this._size++,r}insertAfter(e,t){if(!t||t===this._last)return this.addLast(e);if(!(t instanceof ma.LinkedListNode)||t.list!==this)throw new Error("Reference node is not owned by the list.");let r=new ma.LinkedListNode(this,e),n=t,s=n.next;return r.next=s,r.prev=n,n.next=r,s.prev=r,this._size++,r}removeFirst(){let e=this._first;if(e)return e===this._last?(this._first=null,this._last=null):(this._first=e.next,this._first.prev=null),e.list=null,e.next=null,e.prev=null,this._size--,e.value}removeLast(){let e=this._last;if(e)return e===this._first?(this._first=null,this._last=null):(this._last=e.prev,this._last.next=null),e.list=null,e.next=null,e.prev=null,this._size--,e.value}removeNode(e){if(!(e instanceof ma.LinkedListNode)||e.list!==this)throw new Error("Node is not owned by the list.");let t=e;t===this._first&&t===this._last?(this._first=null,this._last=null):t===this._first?(this._first=t.next,this._first.prev=null):t===this._last?(this._last=t.prev,this._last.next=null):(t.next.prev=t.prev,t.prev.next=t.next),t.list=null,t.next=null,t.prev=null,this._size--}clear(){let e=this._first;for(;e;){let t=e.next;e.list=null,e.prev=null,e.next=null,e=t}this._first=null,this._last=null,this._size=0}};(function(i){function e(t){let r=new i;return r.assign(t),r}i.from=e})(Gd||(Gd={}));(function(i){class e{constructor(r,n){this.list=null,this.next=null,this.prev=null,this.list=r,this.value=n}}i.LinkedListNode=e})(ma||(ma={}))});var zr,Al,oe,nJ=w(()=>{Yb();rJ();zr=class{constructor(e){this.type=e}get isConflatable(){return!1}conflate(e){return!1}},Al=class extends zr{get isConflatable(){return!0}conflate(e){return!0}};(function(i){let e=null,t=(_=>h=>{let p=!1;return _.then(()=>!p&&h()),()=>{p=!0}})(Promise.resolve());function r(_,h){let p=f.get(_);if(!p||p.length===0){M(_,h);return}ZX(eJ(p),C=>C?x(C,_,h):!0)&&M(_,h)}i.sendMessage=r;function n(_,h){if(!h.isConflatable){T(_,h);return}QX(d,g=>g.handler!==_||!g.msg||g.msg.type!==h.type||!g.msg.isConflatable?!1:g.msg.conflate(h))||T(_,h)}i.postMessage=n;function s(_,h){let p=f.get(_);p&&p.indexOf(h)!==-1||(p?p.push(h):f.set(_,[h]))}i.installMessageHook=s;function o(_,h){let p=f.get(_);if(!p)return;let g=p.indexOf(h);g!==-1&&(p[g]=null,A(p))}i.removeMessageHook=o;function a(_){let h=f.get(_);h&&h.length>0&&(de.fill(h,null),A(h));for(let p of d)p.handler===_&&(p.handler=null,p.msg=null)}i.clearData=a;function l(){y||e===null||(e(),e=null,y=!0,E(),y=!1)}i.flush=l;function u(){return b}i.getExceptionHandler=u;function c(_){let h=b;return b=_,h}i.setExceptionHandler=c;let d=new Gd,f=new WeakMap,m=new Set,b=_=>{console.error(_)},y=!1;function x(_,h,p){let g=!0;try{typeof _=="function"?g=_(h,p):g=_.messageHook(h,p)}catch(C){b(C)}return g}function M(_,h){try{_.processMessage(h)}catch(p){b(p)}}function T(_,h){d.addLast({handler:_,msg:h}),e===null&&(e=t(E))}function E(){if(e=null,d.isEmpty)return;let _={handler:null,msg:null};for(d.addLast(_);;){let h=d.removeFirst();if(h===_)return;h.handler&&h.msg&&r(h.handler,h.msg)}}function A(_){m.size===0&&t(R),m.add(_)}function R(){m.forEach($),m.clear()}function $(_){de.removeAllWhere(_,v)}function v(_){return _===null}})(oe||(oe={}))});var _a,yo,kn,Ap,G,Xb,wo,Yu,Kd,ya,Rp,Dp,Ds,ba,dS,Jb,Op,hS,Xu,fS,Lp,pS,An,Ku,Zb,mS,Yd,ga,xo,Br,sJ,D5e,Rl,rs,gS,fi,Ju,ri,va,Fi,Xd,Qb,oJ,aJ,bS,lJ,uJ,vS=w(()=>{Yb();_a=z(Ze());iJ();nJ();gc();Qe();_0();Zh();iu();Fn();Jh();yo=class{constructor(){this.sizeHint=0,this.minSize=0,this.maxSize=1/0,this.stretch=1,this.size=0,this.done=!1}};(function(i){function e(s,o){let a=s.length;if(a===0)return o;let l=0,u=0,c=0,d=0,f=0;for(let y=0;y<a;++y){let x=s[y],M=x.minSize,T=x.maxSize,E=x.sizeHint;x.done=!1,x.size=Math.max(M,Math.min(E,T)),c+=x.size,l+=M,u+=T,x.stretch>0&&(d+=x.stretch,f++)}if(o===c)return 0;if(o<=l){for(let y=0;y<a;++y){let x=s[y];x.size=x.minSize}return o-l}if(o>=u){for(let y=0;y<a;++y){let x=s[y];x.size=x.maxSize}return o-u}let m=.01,b=a;if(o<c){let y=c-o;for(;f>0&&y>m;){let x=y,M=d;for(let T=0;T<a;++T){let E=s[T];if(E.done||E.stretch===0)continue;let A=E.stretch*x/M;E.size-A<=E.minSize?(y-=E.size-E.minSize,d-=E.stretch,E.size=E.minSize,E.done=!0,b--,f--):(y-=A,E.size-=A)}}for(;b>0&&y>m;){let x=y/b;for(let M=0;M<a;++M){let T=s[M];T.done||(T.size-x<=T.minSize?(y-=T.size-T.minSize,T.size=T.minSize,T.done=!0,b--):(y-=x,T.size-=x)
6177)}}}else{let y=o-c;for(;f>0&&y>m;){let x=y,M=d;for(let T=0;T<a;++T){let E=s[T];if(E.done||E.stretch===0)continue;let A=E.stretch*x/M;E.size+A>=E.maxSize?(y-=E.maxSize-E.size,d-=E.stretch,E.size=E.maxSize,E.done=!0,b--,f--):(y-=A,E.size+=A)}}for(;b>0&&y>m;){let x=y/b;for(let M=0;M<a;++M){let T=s[M];T.done||(T.size+x>=T.maxSize?(y-=T.maxSize-T.size,T.size=T.maxSize,T.done=!0,b--):(y-=x,T.size+=x))}}}return 0}i.calc=e;function t(s,o,a){s.length===0||a===0||(a>0?r(s,o,a):n(s,o,-a))}i.adjust=t;function r(s,o,a){let l=0;for(let f=0;f<=o;++f){let m=s[f];l+=m.maxSize-m.size}let u=0;for(let f=o+1,m=s.length;f<m;++f){let b=s[f];u+=b.size-b.minSize}a=Math.min(a,l,u);let c=a;for(let f=o;f>=0&&c>0;--f){let m=s[f],b=m.maxSize-m.size;b>=c?(m.sizeHint=m.size+c,c=0):(m.sizeHint=m.size+b,c-=b)}let d=a;for(let f=o+1,m=s.length;f<m&&d>0;++f){let b=s[f],y=b.size-b.minSize;y>=d?(b.sizeHint=b.size-d,d=0):(b.sizeHint=b.size-y,d-=y)}}function n(s,o,a){let l=0;for(let f=o+1,m=s.length;f<m;++f){let b=s[f];l+=b.maxSize-b.size}let u=0;for(let f=0;f<=o;++f){let m=s[f];u+=m.size-m.minSize}a=Math.min(a,l,u);let c=a;for(let f=o+1,m=s.length;f<m&&c>0;++f){let b=s[f],y=b.maxSize-b.size;y>=c?(b.sizeHint=b.size+c,c=0):(b.sizeHint=b.size+y,c-=y)}let d=a;for(let f=o;f>=0&&d>0;--f){let m=s[f],b=m.size-m.minSize;b>=d?(m.sizeHint=m.size-d,d=0):(m.sizeHint=m.size-b,d-=b)}}})(kn||(kn={}));Ap=class{constructor(e){this._label="",this._caption="",this._mnemonic=-1,this._icon=void 0,this._iconClass="",this._iconLabel="",this._className="",this._closable=!1,this._changed=new X(this),this._isDisposed=!1,this.owner=e.owner,e.label!==void 0&&(this._label=e.label),e.mnemonic!==void 0&&(this._mnemonic=e.mnemonic),e.icon!==void 0&&(this._icon=e.icon),e.iconClass!==void 0&&(this._iconClass=e.iconClass),e.iconLabel!==void 0&&(this._iconLabel=e.iconLabel),e.caption!==void 0&&(this._caption=e.caption),e.className!==void 0&&(this._className=e.className),e.closable!==void 0&&(this._closable=e.closable),this._dataset=e.dataset||{}}get changed(){return this._changed}get label(){return this._label}set label(e){this._label!==e&&(this._label=e,this._changed.emit(void 0))}get mnemonic(){return this._mnemonic}set mnemonic(e){this._mnemonic!==e&&(this._mnemonic=e,this._changed.emit(void 0))}get icon(){return this._icon}set icon(e){this._icon!==e&&(this._icon=e,this._changed.emit(void 0))}get iconClass(){return this._iconClass}set iconClass(e){this._iconClass!==e&&(this._iconClass=e,this._changed.emit(void 0))}get iconLabel(){return this._iconLabel}set iconLabel(e){this._iconLabel!==e&&(this._iconLabel=e,this._changed.emit(void 0))}get caption(){return this._caption}set caption(e){this._caption!==e&&(this._caption=e,this._changed.emit(void 0))}get className(){return this._className}set className(e){this._className!==e&&(this._className=e,this._changed.emit(void 0))}get closable(){return this._closable}set closable(e){this._closable!==e&&(this._closable=e,this._changed.emit(void 0))}get dataset(){return this._dataset}set dataset(e){this._dataset!==e&&(this._dataset=e,this._changed.emit(void 0))}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,X.clearData(this))}},G=class{constructor(e={}){this._flags=0,this._layout=null,this._parent=null,this._disposed=new X(this),this._hiddenMode=G.HiddenMode.Display,this.node=Xb.createNode(e),this.addClass("lm-Widget")}dispose(){this.isDisposed||(this.setFlag(G.Flag.IsDisposed),this._disposed.emit(void 0),this.parent?this.parent=null:this.isAttached&&G.detach(this),this._layout&&(this._layout.dispose(),this._layout=null),this.title.dispose(),X.clearData(this),oe.clearData(this),Ge.clearData(this))}get disposed(){return this._disposed}get isDisposed(){return this.testFlag(G.Flag.IsDisposed)}get isAttached(){return this.testFlag(G.Flag.IsAttached)}get isHidden(){return this.testFlag(G.Flag.IsHidden)}get isVisible(){return this.testFlag(G.Flag.IsVisible)}get title(){return Xb.titleProperty.get(this)}get id(){return this.node.id}set id(e){this.node.id=e}get dataset(){return this.node.dataset}get hiddenMode(){return this._hiddenMode}set hiddenMode(e){this._hiddenMode!==e&&(this.isHidden&&this._toggleHidden(!1),e==G.HiddenMode.Scale?this.node.style.willChange="transform":this.node.style.willChange="auto",this._hiddenMode=e,this.isHidden&&this._toggleHidden(!0))}get parent(){return this._parent}set parent(e){if(this._parent!==e){if(e&&this.contains(e))throw new Error("Invalid parent widget.");if(this._parent&&!this._parent.isDisposed){let t=new G.ChildMessage("child-removed",this);oe.sendMessage(this._parent,t)}if(this._parent=e,this._parent&&!this._parent.isDisposed){let t=new G.ChildMessage("child-added",this);oe.sendMessage(this._parent,t)}this.isDisposed||oe.sendMessage(this,G.Msg.ParentChanged)}}get layout(){return this._layout}set layout(e){if(this._layout!==e){if(this.testFlag(G.Flag.DisallowLayout))throw new Error("Cannot set widget layout.");if(this._layout)throw new Error("Cannot change widget layout.");if(e.parent)throw new Error("Cannot change layout parent.");this._layout=e,e.parent=this}}*children(){this._layout&&(yield*this._layout)}contains(e){for(let t=e;t;t=t._parent)if(t===this)return!0;return!1}hasClass(e){return this.node.classList.contains(e)}addClass(e){this.node.classList.add(e)}removeClass(e){this.node.classList.remove(e)}toggleClass(e,t){return t===!0?(this.node.classList.add(e),!0):t===!1?(this.node.classList.remove(e),!1):this.node.classList.toggle(e)}update(){oe.postMessage(this,G.Msg.UpdateRequest)}fit(){oe.postMessage(this,G.Msg.FitRequest)}activate(){oe.postMessage(this,G.Msg.ActivateRequest)}close(){oe.sendMessage(this,G.Msg.CloseRequest)}
6177show(){if(this.testFlag(G.Flag.IsHidden)&&(this.isAttached&&(!this.parent||this.parent.isVisible)&&oe.sendMessage(this,G.Msg.BeforeShow),this.clearFlag(G.Flag.IsHidden),this._toggleHidden(!1),this.isAttached&&(!this.parent||this.parent.isVisible)&&oe.sendMessage(this,G.Msg.AfterShow),this.parent)){let e=new G.ChildMessage("child-shown",this);oe.sendMessage(this.parent,e)}}hide(){if(!this.testFlag(G.Flag.IsHidden)&&(this.isAttached&&(!this.parent||this.parent.isVisible)&&oe.sendMessage(this,G.Msg.BeforeHide),this.setFlag(G.Flag.IsHidden),this._toggleHidden(!0),this.isAttached&&(!this.parent||this.parent.isVisible)&&oe.sendMessage(this,G.Msg.AfterHide),this.parent)){let e=new G.ChildMessage("child-hidden",this);oe.sendMessage(this.parent,e)}}setHidden(e){e?this.hide():this.show()}testFlag(e){return(this._flags&e)!==0}setFlag(e){this._flags|=e}clearFlag(e){this._flags&=~e}processMessage(e){switch(e.type){case"resize":this.notifyLayout(e),this.onResize(e);break;case"update-request":this.notifyLayout(e),this.onUpdateRequest(e);break;case"fit-request":this.notifyLayout(e),this.onFitRequest(e);break;case"before-show":this.notifyLayout(e),this.onBeforeShow(e);break;case"after-show":this.setFlag(G.Flag.IsVisible),this.notifyLayout(e),this.onAfterShow(e);break;case"before-hide":this.notifyLayout(e),this.onBeforeHide(e);break;case"after-hide":this.clearFlag(G.Flag.IsVisible),this.notifyLayout(e),this.onAfterHide(e);break;case"before-attach":this.notifyLayout(e),this.onBeforeAttach(e);break;case"after-attach":!this.isHidden&&(!this.parent||this.parent.isVisible)&&this.setFlag(G.Flag.IsVisible),this.setFlag(G.Flag.IsAttached),this.notifyLayout(e),this.onAfterAttach(e);break;case"before-detach":this.notifyLayout(e),this.onBeforeDetach(e);break;case"after-detach":this.clearFlag(G.Flag.IsVisible),this.clearFlag(G.Flag.IsAttached),this.notifyLayout(e),this.onAfterDetach(e);break;case"activate-request":this.notifyLayout(e),this.onActivateRequest(e);break;case"close-request":this.notifyLayout(e),this.onCloseRequest(e);break;case"child-added":this.notifyLayout(e),this.onChildAdded(e);break;case"child-removed":this.notifyLayout(e),this.onChildRemoved(e);break;default:this.notifyLayout(e);break}}notifyLayout(e){this._layout&&this._layout.processParentMessage(e)}onCloseRequest(e){this.parent?this.parent=null:this.isAttached&&G.detach(this)}onResize(e){}onUpdateRequest(e){}onFitRequest(e){}onActivateRequest(e){}onBeforeShow(e){}onAfterShow(e){}onBeforeHide(e){}onAfterHide(e){}onBeforeAttach(e){}onAfterAttach(e){}onBeforeDetach(e){}onAfterDetach(e){}onChildAdded(e){}onChildRemoved(e){}_toggleHidden(e){if(e)switch(this._hiddenMode){case G.HiddenMode.Display:this.addClass("lm-mod-hidden");break;case G.HiddenMode.Scale:this.node.style.transform="scale(0)",this.node.setAttribute("aria-hidden","true");break;case G.HiddenMode.ContentVisibility:this.node.style.contentVisibility="hidden",this.node.style.zIndex="-1";break}else switch(this._hiddenMode){case G.HiddenMode.Display:this.removeClass("lm-mod-hidden");break;case G.HiddenMode.Scale:this.node.style.transform="",this.node.removeAttribute("aria-hidden");break;case G.HiddenMode.ContentVisibility:this.node.style.contentVisibility="",this.node.style.zIndex="";break}}};(function(i){(function(s){s[s.Display=0]="Display",s[s.Scale=1]="Scale",s[s.ContentVisibility=2]="ContentVisibility"})(i.HiddenMode||(i.HiddenMode={})),function(s){s[s.IsDisposed=1]="IsDisposed",s[s.IsAttached=2]="IsAttached",s[s.IsHidden=4]="IsHidden",s[s.IsVisible=8]="IsVisible",s[s.DisallowLayout=16]="DisallowLayout"}(i.Flag||(i.Flag={})),function(s){s.BeforeShow=new zr("before-show"),s.AfterShow=new zr("after-show"),s.BeforeHide=new zr("before-hide"),s.AfterHide=new zr("after-hide"),s.BeforeAttach=new zr("before-attach"),s.AfterAttach=new zr("after-attach"),s.BeforeDetach=new zr("before-detach"),s.AfterDetach=new zr("after-detach"),s.ParentChanged=new zr("parent-changed"),s.UpdateRequest=new Al("update-request"),s.FitRequest=new Al("fit-request"),s.ActivateRequest=new Al("activate-request"),s.CloseRequest=new Al("close-request")}(i.Msg||(i.Msg={}));class e extends zr{constructor(o,a){super(o),this.child=a}}i.ChildMessage=e;class t extends zr{constructor(o,a){super("resize"),this.width=o,this.height=a}}i.ResizeMessage=t,function(s){s.UnknownSize=new s(-1,-1)}(t=i.ResizeMessage||(i.ResizeMessage={}));function r(s,o,a=null){if(s.parent)throw new Error("Cannot attach a child widget.");if(s.isAttached||s.node.isConnected)throw new Error("Widget is already attached.");if(!o.isConnected)throw new Error("Host is not attached.");oe.sendMessage(s,i.Msg.BeforeAttach),o.insertBefore(s.node,a),oe.sendMessage(s,i.Msg.AfterAttach)}i.attach=r;function n(s){if(s.parent)throw new Error("Cannot detach a child widget.");if(!s.isAttached||!s.node.isConnected)throw new Error("Widget is not attached.");oe.sendMessage(s,i.Msg.BeforeDetach),s.node.parentNode.removeChild(s.node),oe.sendMessage(s,i.Msg.AfterDetach)}i.detach=n})(G||(G={}));
6177(function(i){i.titleProperty=new Ge({name:"title",create:t=>new Ap({owner:t})});function e(t){return t.node||document.createElement(t.tag||"div")}i.createNode=e})(Xb||(Xb={}));wo=class{constructor(e={}){this._disposed=!1,this._parent=null,this._fitPolicy=e.fitPolicy||"set-min-size"}dispose(){this._parent=null,this._disposed=!0,X.clearData(this),Ge.clearData(this)}get isDisposed(){return this._disposed}get parent(){return this._parent}set parent(e){if(this._parent!==e){if(this._parent)throw new Error("Cannot change parent widget.");if(e.layout!==this)throw new Error("Invalid parent widget.");this._parent=e,this.init()}}get fitPolicy(){return this._fitPolicy}set fitPolicy(e){if(this._fitPolicy!==e&&(this._fitPolicy=e,this._parent)){let t=this._parent.node.style;t.minWidth="",t.minHeight="",t.maxWidth="",t.maxHeight="",this._parent.fit()}}processParentMessage(e){switch(e.type){case"resize":this.onResize(e);break;case"update-request":this.onUpdateRequest(e);break;case"fit-request":this.onFitRequest(e);break;case"before-show":this.onBeforeShow(e);break;case"after-show":this.onAfterShow(e);break;case"before-hide":this.onBeforeHide(e);break;case"after-hide":this.onAfterHide(e);break;case"before-attach":this.onBeforeAttach(e);break;case"after-attach":this.onAfterAttach(e);break;case"before-detach":this.onBeforeDetach(e);break;case"after-detach":this.onAfterDetach(e);break;case"child-removed":this.onChildRemoved(e);break;case"child-shown":this.onChildShown(e);break;case"child-hidden":this.onChildHidden(e);break}}init(){for(let e of this)e.parent=this.parent}onResize(e){for(let t of this)oe.sendMessage(t,G.ResizeMessage.UnknownSize)}onUpdateRequest(e){for(let t of this)oe.sendMessage(t,G.ResizeMessage.UnknownSize)}onBeforeAttach(e){for(let t of this)oe.sendMessage(t,e)}onAfterAttach(e){for(let t of this)oe.sendMessage(t,e)}onBeforeDetach(e){for(let t of this)oe.sendMessage(t,e)}onAfterDetach(e){for(let t of this)oe.sendMessage(t,e)}onBeforeShow(e){for(let t of this)t.isHidden||oe.sendMessage(t,e)}onAfterShow(e){for(let t of this)t.isHidden||oe.sendMessage(t,e)}onBeforeHide(e){for(let t of this)t.isHidden||oe.sendMessage(t,e)}onAfterHide(e){for(let t of this)t.isHidden||oe.sendMessage(t,e)}onChildRemoved(e){this.removeWidget(e.child)}onFitRequest(e){}onChildShown(e){}onChildHidden(e){}};(function(i){function e(s){return Kd.horizontalAlignmentProperty.get(s)}i.getHorizontalAlignment=e;function t(s,o){Kd.horizontalAlignmentProperty.set(s,o)}i.setHorizontalAlignment=t;function r(s){return Kd.verticalAlignmentProperty.get(s)}i.getVerticalAlignment=r;function n(s,o){Kd.verticalAlignmentProperty.set(s,o)}i.setVerticalAlignment=n})(wo||(wo={}));Yu=class{constructor(e){this._top=NaN,this._left=NaN,this._width=NaN,this._height=NaN,this._minWidth=0,this._minHeight=0,this._maxWidth=1/0,this._maxHeight=1/0,this._disposed=!1,this.widget=e,this.widget.node.style.position="absolute",this.widget.node.style.contain="strict"}dispose(){if(this._disposed)return;this._disposed=!0;let e=this.widget.node.style;e.position="",e.top="",e.left="",e.width="",e.height="",e.contain=""}get minWidth(){return this._minWidth}get minHeight(){return this._minHeight}get maxWidth(){return this._maxWidth}get maxHeight(){return this._maxHeight}get isDisposed(){return this._disposed}get isHidden(){return this.widget.isHidden}get isVisible(){return this.widget.isVisible}get isAttached(){return this.widget.isAttached}fit(){let e=Tt.sizeLimits(this.widget.node);this._minWidth=e.minWidth,this._minHeight=e.minHeight,this._maxWidth=e.maxWidth,this._maxHeight=e.maxHeight}update(e,t,r,n){let s=Math.max(this._minWidth,Math.min(r,this._maxWidth)),o=Math.max(this._minHeight,Math.min(n,this._maxHeight));if(s<r)switch(wo.getHorizontalAlignment(this.widget)){case"left":break;case"center":e+=(r-s)/2;break;case"right":e+=r-s;break;default:throw"unreachable"}if(o<n)switch(wo.getVerticalAlignment(this.widget)){case"top":break;case"center":t+=(n-o)/2;break;case"bottom":t+=n-o;break;default:throw"unreachable"}let a=!1,l=this.widget.node.style;if(this._top!==t&&(this._top=t,l.top=`${t}px`),this._left!==e&&(this._left=e,l.left=`${e}px`),this._width!==s&&(a=!0,this._width=s,l.width=`${s}px`),this._height!==o&&(a=!0,this._height=o,l.height=`${o}px`),a){let u=new G.ResizeMessage(s,o);oe.sendMessage(this.widget,u)}}};
6177(function(i){i.horizontalAlignmentProperty=new Ge({name:"horizontalAlignment",create:()=>"center",changed:e}),i.verticalAlignmentProperty=new Ge({name:"verticalAlignment",create:()=>"top",changed:e});function e(t){t.parent&&t.parent.layout&&t.parent.update()}})(Kd||(Kd={}));ya=class extends wo{constructor(){super(...arguments),this._widgets=[]}dispose(){for(;this._widgets.length>0;)this._widgets.pop().dispose();super.dispose()}get widgets(){return this._widgets}*[Symbol.iterator](){yield*this._widgets}addWidget(e){this.insertWidget(this._widgets.length,e)}insertWidget(e,t){t.parent=this.parent;let r=this._widgets.indexOf(t),n=Math.max(0,Math.min(e,this._widgets.length));if(r===-1){de.insert(this._widgets,n,t),this.parent&&this.attachWidget(n,t);return}n===this._widgets.length&&n--,r!==n&&(de.move(this._widgets,r,n),this.parent&&this.moveWidget(r,n,t))}removeWidget(e){this.removeWidgetAt(this._widgets.indexOf(e))}removeWidgetAt(e){let t=de.removeAt(this._widgets,e);t&&this.parent&&this.detachWidget(e,t)}init(){super.init();let e=0;for(let t of this)this.attachWidget(e++,t)}attachWidget(e,t){let r=this.parent.node.children[e];this.parent.isAttached&&oe.sendMessage(t,G.Msg.BeforeAttach),this.parent.node.insertBefore(t.node,r),this.parent.isAttached&&oe.sendMessage(t,G.Msg.AfterAttach)}moveWidget(e,t,r){this.parent.isAttached&&oe.sendMessage(r,G.Msg.BeforeDetach),this.parent.node.removeChild(r.node),this.parent.isAttached&&oe.sendMessage(r,G.Msg.AfterDetach);let n=this.parent.node.children[t];this.parent.isAttached&&oe.sendMessage(r,G.Msg.BeforeAttach),this.parent.node.insertBefore(r.node,n),this.parent.isAttached&&oe.sendMessage(r,G.Msg.AfterAttach)}detachWidget(e,t){this.parent.isAttached&&oe.sendMessage(t,G.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&oe.sendMessage(t,G.Msg.AfterDetach)}};(function(i){function e(t){return Math.max(0,Math.floor(t))}i.clampDimension=e})(Rp||(Rp={}));Dp=Rp,Ds=class extends ya{constructor(e){super(),this.widgetOffset=0,this._fixed=0,this._spacing=4,this._dirty=!1,this._hasNormedSizes=!1,this._sizers=[],this._items=[],this._handles=[],this._box=null,this._alignment="start",this._orientation="horizontal",this.renderer=e.renderer,e.orientation!==void 0&&(this._orientation=e.orientation),e.alignment!==void 0&&(this._alignment=e.alignment),e.spacing!==void 0&&(this._spacing=Rp.clampDimension(e.spacing))}dispose(){for(let e of this._items)e.dispose();this._box=null,this._items.length=0,this._sizers.length=0,this._handles.length=0,super.dispose()}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this.parent&&(this.parent.dataset.orientation=e,this.parent.fit()))}get alignment(){return this._alignment}set alignment(e){this._alignment!==e&&(this._alignment=e,this.parent&&(this.parent.dataset.alignment=e,this.parent.update()))}get spacing(){return this._spacing}set spacing(e){e=Rp.clampDimension(e),this._spacing!==e&&(this._spacing=e,this.parent&&this.parent.fit())}get handles(){return this._handles}absoluteSizes(){return this._sizers.map(e=>e.size)}relativeSizes(){return ba.normalize(this._sizers.map(e=>e.size))}setRelativeSizes(e,t=!0){let r=this._sizers.length,n=e.slice(0,r);for(;n.length<r;)n.push(0);let s=ba.normalize(n);for(let o=0;o<r;++o){let a=this._sizers[o];a.sizeHint=s[o],a.size=s[o]}this._hasNormedSizes=!0,t&&this.parent&&this.parent.update()}moveHandle(e,t){let r=this._handles[e];if(!r||r.classList.contains("lm-mod-hidden"))return;let n;if(this._orientation==="horizontal"?n=t-r.offsetLeft:n=t-r.offsetTop,n!==0){for(let s of this._sizers)s.size>0&&(s.sizeHint=s.size);kn.adjust(this._sizers,e,n),this.parent&&this.parent.update()}}init(){this.parent.dataset.orientation=this.orientation,this.parent.dataset.alignment=this.alignment,super.init()}attachWidget(e,t){let r=new Yu(t),n=ba.createHandle(this.renderer),s=ba.averageSize(this._sizers),o=ba.createSizer(s);de.insert(this._items,e,r),de.insert(this._sizers,e,o),de.insert(this._handles,e,n),this.parent.isAttached&&oe.sendMessage(t,G.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.node.appendChild(n),this.parent.isAttached&&oe.sendMessage(t,G.Msg.AfterAttach),this.parent.fit()}moveWidget(e,t,r){de.move(this._items,e,t),de.move(this._sizers,e,t),de.move(this._handles,e,t),this.parent.fit()}detachWidget(e,t){let r=de.removeAt(this._items,e),n=de.removeAt(this._handles,e);de.removeAt(this._sizers,e),this.parent.isAttached&&oe.sendMessage(t,G.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.node.removeChild(n),this.parent.isAttached&&oe.sendMessage(t,G.Msg.AfterDetach),r.dispose(),this.parent.fit()}
6177onBeforeShow(e){super.onBeforeShow(e),this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e),this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){this.parent.isVisible&&this._update(e.width,e.height)}onUpdateRequest(e){this.parent.isVisible&&this._update(-1,-1)}onFitRequest(e){this.parent.isAttached&&this._fit()}updateItemPosition(e,t,r,n,s,o,a){let l=this._items[e];if(l.isHidden)return;let u=this._handles[e].style;t?(r+=this.widgetOffset,l.update(r,n,a,s),r+=a,u.top=`${n}px`,u.left=`${r}px`,u.width=`${this._spacing}px`,u.height=`${s}px`):(n+=this.widgetOffset,l.update(r,n,o,a),n+=a,u.top=`${n}px`,u.left=`${r}px`,u.width=`${o}px`,u.height=`${this._spacing}px`)}_fit(){let e=0,t=-1;for(let l=0,u=this._items.length;l<u;++l)this._items[l].isHidden?this._handles[l].classList.add("lm-mod-hidden"):(this._handles[l].classList.remove("lm-mod-hidden"),t=l,e++);t!==-1&&this._handles[t].classList.add("lm-mod-hidden"),this._fixed=this._spacing*Math.max(0,e-1)+this.widgetOffset*this._items.length;let r=this._orientation==="horizontal",n=r?this._fixed:0,s=r?0:this._fixed;for(let l=0,u=this._items.length;l<u;++l){let c=this._items[l],d=this._sizers[l];if(d.size>0&&(d.sizeHint=d.size),c.isHidden){d.minSize=0,d.maxSize=0;continue}c.fit(),d.stretch=Ds.getStretch(c.widget),r?(d.minSize=c.minWidth,d.maxSize=c.maxWidth,n+=c.minWidth,s=Math.max(s,c.minHeight)):(d.minSize=c.minHeight,d.maxSize=c.maxHeight,s+=c.minHeight,n=Math.max(n,c.minWidth))}let o=this._box=Tt.boxSizing(this.parent.node);n+=o.horizontalSum,s+=o.verticalSum;let a=this.parent.node.style;a.minWidth=`${n}px`,a.minHeight=`${s}px`,this._dirty=!0,this.parent.parent&&oe.sendMessage(this.parent.parent,G.Msg.FitRequest),this._dirty&&oe.sendMessage(this.parent,G.Msg.UpdateRequest)}_update(e,t){this._dirty=!1;let r=0;for(let d=0,f=this._items.length;d<f;++d)r+=+!this._items[d].isHidden;if(r===0&&this.widgetOffset===0)return;e<0&&(e=this.parent.node.offsetWidth),t<0&&(t=this.parent.node.offsetHeight),this._box||(this._box=Tt.boxSizing(this.parent.node));let n=this._box.paddingTop,s=this._box.paddingLeft,o=e-this._box.horizontalSum,a=t-this._box.verticalSum,l=0,u=0,c=this._orientation==="horizontal";if(r>0){let d;if(c?d=Math.max(0,o-this._fixed):d=Math.max(0,a-this._fixed),this._hasNormedSizes){for(let m of this._sizers)m.sizeHint*=d;this._hasNormedSizes=!1}let f=kn.calc(this._sizers,d);if(f>0)switch(this._alignment){case"start":break;case"center":l=0,u=f/2;break;case"end":l=0,u=f;break;case"justify":l=f/r,u=0;break;default:throw"unreachable"}}for(let d=0,f=this._items.length;d<f;++d){let b=this._items[d].isHidden?0:this._sizers[d].size+l;this.updateItemPosition(d,c,c?s+u:s,c?n:n+u,a,o,b);let y=this.widgetOffset+(this._handles[d].classList.contains("lm-mod-hidden")?0:this._spacing);c?s+=b+y:n+=b+y}}};(function(i){function e(r){return ba.stretchProperty.get(r)}i.getStretch=e;function t(r,n){ba.stretchProperty.set(r,n)}i.setStretch=t})(Ds||(Ds={}));(function(i){i.stretchProperty=new Ge({name:"stretch",create:()=>0,coerce:(o,a)=>Math.max(0,Math.floor(a)),changed:s});function e(o){let a=new yo;return a.sizeHint=Math.floor(o),a}i.createSizer=e;function t(o){let a=o.createHandle();return a.style.position="absolute",a.style.contain="style",a}i.createHandle=t;function r(o){return o.reduce((a,l)=>a+l.size,0)/o.length||0}i.averageSize=r;function n(o){let a=o.length;if(a===0)return[];let l=o.reduce((u,c)=>u+Math.abs(c),0);return l===0?o.map(u=>1/a):o.map(u=>u/l)}i.normalize=n;function s(o){o.parent&&o.parent.layout instanceof Ds&&o.parent.fit()}})(ba||(ba={}));dS=class extends Ds{constructor(e){super({...e,orientation:e.orientation||"vertical"}),this._titles=[],this.titleSpace=e.titleSpace||22}get titleSpace(){return this.widgetOffset}set titleSpace(e){e=Dp.clampDimension(e),this.widgetOffset!==e&&(this.widgetOffset=e,this.parent&&this.parent.fit())}get titles(){return this._titles}dispose(){this.isDisposed||(this._titles.length=0,super.dispose())}updateTitle(e,t){let r=this._titles[e],n=r.classList.contains("lm-mod-expanded"),s=Jb.createTitle(this.renderer,t.title,n);this._titles[e]=s,this.parent.node.replaceChild(s,r)}insertWidget(e,t){t.id||(t.id=`id-${_a.UUID.uuid4()}`),super.insertWidget(e,t)}attachWidget(e,t){let r=Jb.createTitle(this.renderer,t.title);de.insert(this._titles,e,r),this.parent.node.appendChild(r),t.node.setAttribute("role","regi
6177on"),t.node.setAttribute("aria-labelledby",r.id),super.attachWidget(e,t)}moveWidget(e,t,r){de.move(this._titles,e,t),super.moveWidget(e,t,r)}detachWidget(e,t){let r=de.removeAt(this._titles,e);this.parent.node.removeChild(r),super.detachWidget(e,t)}updateItemPosition(e,t,r,n,s,o,a){let l=this._titles[e].style;l.top=`${n}px`,l.left=`${r}px`,l.height=`${this.widgetOffset}px`,t?l.width=`${s}px`:l.width=`${o}px`,super.updateItemPosition(e,t,r,n,s,o,a)}};(function(i){function e(t,r,n=!0){let s=t.createSectionTitle(r);return s.style.position="absolute",s.style.contain="strict",s.setAttribute("aria-label",`${r.label} Section`),s.setAttribute("aria-expanded",n?"true":"false"),s.setAttribute("aria-controls",r.owner.id),n&&s.classList.add("lm-mod-expanded"),s}i.createTitle=e})(Jb||(Jb={}));Op=class extends G{constructor(e={}){super(),this.addClass("lm-Panel"),this.layout=hS.createLayout(e)}get widgets(){return this.layout.widgets}addWidget(e){this.layout.addWidget(e)}insertWidget(e,t){this.layout.insertWidget(e,t)}};(function(i){function e(t){return t.layout||new ya}i.createLayout=e})(hS||(hS={}));Xu=class extends Op{constructor(e={}){super({layout:fS.createLayout(e)}),this._handleMoved=new X(this),this._pressData=null,this.addClass("lm-SplitPanel")}dispose(){this._releaseMouse(),super.dispose()}get orientation(){return this.layout.orientation}set orientation(e){this.layout.orientation=e}get alignment(){return this.layout.alignment}set alignment(e){this.layout.alignment=e}get spacing(){return this.layout.spacing}set spacing(e){this.layout.spacing=e}get renderer(){return this.layout.renderer}get handleMoved(){return this._handleMoved}get handles(){return this.layout.handles}relativeSizes(){return this.layout.relativeSizes()}setRelativeSizes(e,t=!0){this.layout.setRelativeSizes(e,t)}handleEvent(e){switch(e.type){case"pointerdown":this._evtPointerDown(e);break;case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"keydown":this._evtKeyDown(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("pointerdown",this)}onAfterDetach(e){this.node.removeEventListener("pointerdown",this),this._releaseMouse()}onChildAdded(e){e.child.addClass("lm-SplitPanel-child"),this._releaseMouse()}onChildRemoved(e){e.child.removeClass("lm-SplitPanel-child"),this._releaseMouse()}_evtKeyDown(e){this._pressData&&(e.preventDefault(),e.stopPropagation()),e.keyCode===27&&this._releaseMouse()}_evtPointerDown(e){if(e.button!==0)return;let t=this.layout,r=de.findFirstIndex(t.handles,u=>u.contains(e.target));if(r===-1)return;e.preventDefault(),e.stopPropagation(),document.addEventListener("pointerup",this,!0),document.addEventListener("pointermove",this,!0),document.addEventListener("keydown",this,!0),document.addEventListener("contextmenu",this,!0);let n,s=t.handles[r],o=s.getBoundingClientRect();t.orientation==="horizontal"?n=e.clientX-o.left:n=e.clientY-o.top;let a=window.getComputedStyle(s),l=gt.overrideCursor(a.cursor);this._pressData={index:r,delta:n,override:l}}_evtPointerMove(e){e.preventDefault(),e.stopPropagation();let t,r=this.layout,n=this.node.getBoundingClientRect();r.orientation==="horizontal"?t=e.clientX-n.left-this._pressData.delta:t=e.clientY-n.top-this._pressData.delta,r.moveHandle(this._pressData.index,t)}_evtPointerUp(e){e.button===0&&(e.preventDefault(),e.stopPropagation(),this._releaseMouse())}_releaseMouse(){this._pressData&&(this._pressData.override.dispose(),this._pressData=null,this._handleMoved.emit(),document.removeEventListener("keydown",this,!0),document.removeEventListener("pointerup",this,!0),document.removeEventListener("pointermove",this,!0),document.removeEventListener("contextmenu",this,!0))}};(function(i){class e{createHandle(){let s=document.createElement("div");return s.className="lm-SplitPanel-handle",s}}i.Renderer=e,i.defaultRenderer=new e;function t(n){return Ds.getStretch(n)}i.getStretch=t;function r(n,s){Ds.setStretch(n,s)}i.setStretch=r})(Xu||(Xu={}));(function(i){function e(t){return t.layout||new Ds({renderer:t.renderer||Xu.defaultRenderer,orientation:t.orientation,alignment:t.alignment,spacing:t.spacing})}i.createLayout=e})(fS||(fS={}));Lp=class extends Xu{constructor(e={}){super({...e,layout:pS.createLayout(e)}),this._widgetSizesCache=new WeakMap,this._expansionToggled=new X(this),this.addClass("lm-AccordionPanel")}get renderer(){return this.layout.renderer}get titleSpace(){return this.layout.titleSpace}set titleSpace(e){this.layout.titleSpace=e}get titles(){return this.layout.titles}get expansionToggled(){return this._expansionToggled}addWidget(e){super.addWidget(e),e.title.changed.connect(this._onTitleChanged,this)}collapse(e){let t=this.layout.widgets[e];t&&!t.isHidden&&this._toggleExpansion(e)}expand(e){let t=this.layout.widgets[e];t&&t.isHidden&&this._toggleExpansion(e)}insertWidget(e,t){super.insertWidget(e,t),t.title.changed.connect(this._onTitleChanged,this)}handleEvent(e){switch(super.handleEvent(e),e.type){case"click":this._evtClick(e);break;case"keydown":this._eventKeyDown(e);break}}onBeforeAttach(e){this.node.addEventListener("click",this),this.node.addEventListener("keydown",this),super.onBeforeAttach(e)}onAfterDetach(e){super.onAfterDetach(e),this.node.removeEventListener("click",this),this.node.removeEventListener("keydown",this)}_onTitleChanged(e){let t=de.findFirstIndex(this.widgets,r=>r.contains(e.owner));t>=0&&(this.layout.updateTitle(t,e.owner),this.update())}_computeWidgetSize(e){let t=this.layout,r=t.widgets[e];if(!r)return;let n=r.isHidden,s=t.absoluteSizes(),o=(n?-1:1)*this.spacing,a=s.reduce((u,c)=>u+c),l=[...s];if(n){let u=this._widgetSizesCache.get(r);if(!u)return;l[e]+=u;let c=l.map(d=>d-u>0).lastIndexOf(!0);c===-1?l.forEach((d,f)=>{f!==e&&(l[f]-=s[f]/a*(u-o))}):l[c]-=u-o}else{let u=s[e];this._widgetSizesCache.set(r,u),l[e]=0;let c=l.map(d=>d>0).lastIndexOf(!0);if(c===-1)return;l[c]=s[c]+u+o}return l.map(u=>u/(a+o))}_evtClick(e){let t=e.target;if(t){let r=de.findFirstIndex(this.titles,n=>n.contains(t));r>=0&&(e.preventDefault(),e.stopPropagation(),this._toggleExpansion(r))}}
6177_eventKeyDown(e){if(e.defaultPrevented)return;let t=e.target,r=!1;if(t){let n=de.findFirstIndex(this.titles,s=>s.contains(t));if(n>=0){let s=e.keyCode.toString();if(e.key.match(/Space|Enter/)||s.match(/13|32/))t.click(),r=!0;else if(this.orientation==="horizontal"?e.key.match(/ArrowLeft|ArrowRight/)||s.match(/37|39/):e.key.match(/ArrowUp|ArrowDown/)||s.match(/38|40/)){let o=e.key.match(/ArrowLeft|ArrowUp/)||s.match(/37|38/)?-1:1,a=this.titles.length,l=(n+a+o)%a;this.titles[l].focus(),r=!0}else e.key==="End"||s==="35"?(this.titles[this.titles.length-1].focus(),r=!0):(e.key==="Home"||s==="36")&&(this.titles[0].focus(),r=!0)}r&&e.preventDefault()}}_toggleExpansion(e){let t=this.titles[e],r=this.layout.widgets[e],n=this._computeWidgetSize(e);n&&this.setRelativeSizes(n,!1),r.isHidden?(t.classList.add("lm-mod-expanded"),t.setAttribute("aria-expanded","true"),r.show()):(t.classList.remove("lm-mod-expanded"),t.setAttribute("aria-expanded","false"),r.hide()),this._expansionToggled.emit(e)}};(function(i){class e extends Xu.Renderer{constructor(){super(),this.titleClassName="lm-AccordionPanel-title",this._titleID=0,this._titleKeys=new WeakMap,this._uuid=++e._nInstance}createCollapseIcon(r){return document.createElement("span")}createSectionTitle(r){let n=document.createElement("h3");n.setAttribute("tabindex","0"),n.id=this.createTitleKey(r),n.className=this.titleClassName;for(let a in r.dataset)n.dataset[a]=r.dataset[a];let s=n.appendChild(this.createCollapseIcon(r));s.className="lm-AccordionPanel-titleCollapser";let o=n.appendChild(document.createElement("span"));return o.className="lm-AccordionPanel-titleLabel",o.textContent=r.label,o.title=r.caption||r.label,n}createTitleKey(r){let n=this._titleKeys.get(r);return n===void 0&&(n=`title-key-${this._uuid}-${this._titleID++}`,this._titleKeys.set(r,n)),n}}e._nInstance=0,i.Renderer=e,i.defaultRenderer=new e})(Lp||(Lp={}));(function(i){function e(t){return t.layout||new dS({renderer:t.renderer||Lp.defaultRenderer,orientation:t.orientation,alignment:t.alignment,spacing:t.spacing,titleSpace:t.titleSpace})}i.createLayout=e})(pS||(pS={}));An=class extends ya{constructor(e={}){super(),this._fixed=0,this._spacing=4,this._dirty=!1,this._sizers=[],this._items=[],this._box=null,this._alignment="start",this._direction="top-to-bottom",e.direction!==void 0&&(this._direction=e.direction),e.alignment!==void 0&&(this._alignment=e.alignment),e.spacing!==void 0&&(this._spacing=Dp.clampDimension(e.spacing))}dispose(){for(let e of this._items)e.dispose();this._box=null,this._items.length=0,this._sizers.length=0,super.dispose()}get direction(){return this._direction}set direction(e){this._direction!==e&&(this._direction=e,this.parent&&(this.parent.dataset.direction=e,this.parent.fit()))}get alignment(){return this._alignment}set alignment(e){this._alignment!==e&&(this._alignment=e,this.parent&&(this.parent.dataset.alignment=e,this.parent.update()))}get spacing(){return this._spacing}set spacing(e){e=Dp.clampDimension(e),this._spacing!==e&&(this._spacing=e,this.parent&&this.parent.fit())}init(){this.parent.dataset.direction=this.direction,this.parent.dataset.alignment=this.alignment,super.init()}attachWidget(e,t){de.insert(this._items,e,new Yu(t)),de.insert(this._sizers,e,new yo),this.parent.isAttached&&oe.sendMessage(t,G.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.isAttached&&oe.sendMessage(t,G.Msg.AfterAttach),this.parent.fit()}moveWidget(e,t,r){de.move(this._items,e,t),de.move(this._sizers,e,t),this.parent.update()}detachWidget(e,t){let r=de.removeAt(this._items,e);de.removeAt(this._sizers,e),this.parent.isAttached&&oe.sendMessage(t,G.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&oe.sendMessage(t,G.Msg.AfterDetach),r.dispose(),this.parent.fit()}onBeforeShow(e){super.onBeforeShow(e),this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e),this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){this.parent.isVisible&&this._update(e.width,e.height)}onUpdateRequest(e){this.parent.isVisible&&this._update(-1,-1)}onFitRequest(e){this.parent.isAttached&&this._fit()}_fit(){let e=0;for(let a=0,l=this._items.length;a<l;++a)e+=+!this._items[a].isHidden;this._fixed=this._spacing*Math.max(0,e-1);let t=Ku.isHorizontal(this._direction),r=t?this._fixed:0,n=t?0:this._fixed;for(let a=0,l=this._items.length;a<l;++a){let u=this._items[a],c=this._sizers[a];if(u.isHidden){c.minSize=0,c.maxSize=0;continue}
6177u.fit(),c.sizeHint=An.getSizeBasis(u.widget),c.stretch=An.getStretch(u.widget),t?(c.minSize=u.minWidth,c.maxSize=u.maxWidth,r+=u.minWidth,n=Math.max(n,u.minHeight)):(c.minSize=u.minHeight,c.maxSize=u.maxHeight,n+=u.minHeight,r=Math.max(r,u.minWidth))}let s=this._box=Tt.boxSizing(this.parent.node);r+=s.horizontalSum,n+=s.verticalSum;let o=this.parent.node.style;o.minWidth=`${r}px`,o.minHeight=`${n}px`,this._dirty=!0,this.parent.parent&&oe.sendMessage(this.parent.parent,G.Msg.FitRequest),this._dirty&&oe.sendMessage(this.parent,G.Msg.UpdateRequest)}_update(e,t){this._dirty=!1;let r=0;for(let d=0,f=this._items.length;d<f;++d)r+=+!this._items[d].isHidden;if(r===0)return;e<0&&(e=this.parent.node.offsetWidth),t<0&&(t=this.parent.node.offsetHeight),this._box||(this._box=Tt.boxSizing(this.parent.node));let n=this._box.paddingTop,s=this._box.paddingLeft,o=e-this._box.horizontalSum,a=t-this._box.verticalSum,l;switch(this._direction){case"left-to-right":l=kn.calc(this._sizers,Math.max(0,o-this._fixed));break;case"top-to-bottom":l=kn.calc(this._sizers,Math.max(0,a-this._fixed));break;case"right-to-left":l=kn.calc(this._sizers,Math.max(0,o-this._fixed)),s+=o;break;case"bottom-to-top":l=kn.calc(this._sizers,Math.max(0,a-this._fixed)),n+=a;break;default:throw"unreachable"}let u=0,c=0;if(l>0)switch(this._alignment){case"start":break;case"center":u=0,c=l/2;break;case"end":u=0,c=l;break;case"justify":u=l/r,c=0;break;default:throw"unreachable"}for(let d=0,f=this._items.length;d<f;++d){let m=this._items[d];if(m.isHidden)continue;let b=this._sizers[d].size;switch(this._direction){case"left-to-right":m.update(s+c,n,b+u,a),s+=b+u+this._spacing;break;case"top-to-bottom":m.update(s,n+c,o,b+u),n+=b+u+this._spacing;break;case"right-to-left":m.update(s-c-b-u,n,b+u,a),s-=b+u+this._spacing;break;case"bottom-to-top":m.update(s,n-c-b-u,o,b+u),n-=b+u+this._spacing;break;default:throw"unreachable"}}}};(function(i){function e(s){return Ku.stretchProperty.get(s)}i.getStretch=e;function t(s,o){Ku.stretchProperty.set(s,o)}i.setStretch=t;function r(s){return Ku.sizeBasisProperty.get(s)}i.getSizeBasis=r;function n(s,o){Ku.sizeBasisProperty.set(s,o)}i.setSizeBasis=n})(An||(An={}));(function(i){i.stretchProperty=new Ge({name:"stretch",create:()=>0,coerce:(n,s)=>Math.max(0,Math.floor(s)),changed:r}),i.sizeBasisProperty=new Ge({name:"sizeBasis",create:()=>0,coerce:(n,s)=>Math.max(0,Math.floor(s)),changed:r});function e(n){return n==="left-to-right"||n==="right-to-left"}i.isHorizontal=e;function t(n){return Math.max(0,Math.floor(n))}i.clampSpacing=t;function r(n){n.parent&&n.parent.layout instanceof An&&n.parent.fit()}})(Ku||(Ku={}));Zb=class extends Op{constructor(e={}){super({layout:mS.createLayout(e)}),this.addClass("lm-BoxPanel")}get direction(){return this.layout.direction}set direction(e){this.layout.direction=e}get alignment(){return this.layout.alignment}set alignment(e){this.layout.alignment=e}get spacing(){return this.layout.spacing}set spacing(e){this.layout.spacing=e}onChildAdded(e){e.child.addClass("lm-BoxPanel-child")}onChildRemoved(e){e.child.removeClass("lm-BoxPanel-child")}};(function(i){function e(s){return An.getStretch(s)}i.getStretch=e;function t(s,o){An.setStretch(s,o)}i.setStretch=t;function r(s){return An.getSizeBasis(s)}i.getSizeBasis=r;function n(s,o){An.setSizeBasis(s,o)}i.setSizeBasis=n})(Zb||(Zb={}));(function(i){function e(t){return t.layout||new An(t)}i.createLayout=e})(mS||(mS={}));Yd=class extends G{constructor(e){super({node:ga.createNode()}),this._activeIndex=-1,this._items=[],this._results=null,this.addClass("lm-CommandPalette"),this.setFlag(G.Flag.DisallowLayout),this.commands=e.commands,this.renderer=e.renderer||Yd.defaultRenderer,this.commands.commandChanged.connect(this._onGenericChange,this),this.commands.keyBindingChanged.connect(this._onGenericChange,this)}dispose(){this._items.length=0,this._results=null,super.dispose()}get searchNode(){return this.node.getElementsByClassName("lm-CommandPalette-search")[0]}get inputNode(){return this.node.getElementsByClassName("lm-CommandPalette-input")[0]}get contentNode(){return this.node.getElementsByClassName("lm-CommandPalette-content")[0]}get items(){return this._items}addItem(e){let t=ga.createItem(this.commands,e);return this._items.push(t),this.refresh(),t}addItems(e){let t=e.map(r=>ga.createItem(this.commands,r));return t.forEach(r=>this._items.push(r)),this.refresh(),t}removeItem(e){this.removeItemAt(this._items.indexOf(e))}removeItemAt(e){de.removeAt(this._items,e)&&this.refresh()}clearItems(){this._items.length!==0&&(this._items.length=0,this.refresh())}refresh(){if(this._results=null,this.inputNode.value!==""){let e=this.node.getElementsByClassName("lm-close-icon")[0];e.style.display="inherit"}else{let e=this.node.getElementsByClassName("lm-close-icon")[0];e.style.display="none"}this.update()}handleEvent(e){switch(e.type){case"click":this._evtClick(e);break;case"keydown":this._evtKeyDown(e);break;case"input":this.refresh();break;case"focus":case"blur":this._toggleFocused();break}}onBeforeAttach(e){this.node.addEventListener("click",this),this.node.addEventListener("keydown",this),this.node.addEventListener("input",this),this.node.addEventListener("focus",this,!0),this.node.addEventListener("blur",this,!0)}onAfterDetach(e){this.node.removeEventListener("click",this),this.node.removeEventListener("keydown",this),this.node.removeEventListener("input",this),this.node.removeEventListener("focus",this,!0),this.node.removeEventListener("blur",this,!0)}onAfterShow(e){this.update(),super.onAfterShow(e)}
6177onActivateRequest(e){if(this.isAttached){let t=this.inputNode;t.focus(),t.select()}}onUpdateRequest(e){if(this.isHidden)return;let t=this.inputNode.value,r=this.contentNode,n=this._results;if(n||(n=this._results=ga.search(this._items,t),this._activeIndex=t?de.findFirstIndex(n,ga.canActivate):-1),!t&&n.length===0){Wt.render(null,r);return}if(t&&n.length===0){let l=this.renderer.renderEmptyMessage({query:t});Wt.render(l,r);return}let s=this.renderer,o=this._activeIndex,a=new Array(n.length);for(let l=0,u=n.length;l<u;++l){let c=n[l];if(c.type==="header"){let d=c.indices,f=c.category;a[l]=s.renderHeader({category:f,indices:d})}else{let d=c.item,f=c.indices,m=l===o;a[l]=s.renderItem({item:d,indices:f,active:m})}}if(Wt.render(a,r),o<0||o>=n.length)r.scrollTop=0;else{let l=r.children[o];Tt.scrollIntoViewIfNeeded(r,l)}}_evtClick(e){if(e.button!==0)return;if(e.target.classList.contains("lm-close-icon")){this.inputNode.value="",this.refresh();return}let t=de.findFirstIndex(this.contentNode.children,r=>r.contains(e.target));t!==-1&&(e.preventDefault(),e.stopPropagation(),this._execute(t))}_evtKeyDown(e){if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey))switch(e.keyCode){case 13:e.preventDefault(),e.stopPropagation(),this._execute(this._activeIndex);break;case 38:e.preventDefault(),e.stopPropagation(),this._activatePreviousItem();break;case 40:e.preventDefault(),e.stopPropagation(),this._activateNextItem();break}}_activateNextItem(){if(!this._results||this._results.length===0)return;let e=this._activeIndex,t=this._results.length,r=e<t-1?e+1:0,n=r===0?t-1:r-1;this._activeIndex=de.findFirstIndex(this._results,ga.canActivate,r,n),this.update()}_activatePreviousItem(){if(!this._results||this._results.length===0)return;let e=this._activeIndex,t=this._results.length,r=e<=0?t-1:e-1,n=r===t-1?0:r+1;this._activeIndex=de.findLastIndex(this._results,ga.canActivate,r,n),this.update()}_execute(e){if(!this._results)return;let t=this._results[e];if(t){if(t.type==="header"){let r=this.inputNode;r.value=`${t.category.toLowerCase()} `,r.focus(),this.refresh();return}t.item.isEnabled&&(this.commands.execute(t.item.command,t.item.args),this.inputNode.value="",this.refresh())}}_toggleFocused(){let e=document.activeElement===this.inputNode;this.toggleClass("lm-mod-focused",e)}_onGenericChange(){this.refresh()}};(function(i){class e{renderHeader(r){let n=this.formatHeader(r);return ne.li({className:"lm-CommandPalette-header"},n)}renderItem(r){let n=this.createItemClass(r),s=this.createItemDataset(r);return r.item.isToggleable?ne.li({className:n,dataset:s,role:"menuitemcheckbox","aria-checked":`${r.item.isToggled}`},this.renderItemIcon(r),this.renderItemContent(r),this.renderItemShortcut(r)):ne.li({className:n,dataset:s,role:"menuitem"},this.renderItemIcon(r),this.renderItemContent(r),this.renderItemShortcut(r))}renderEmptyMessage(r){let n=this.formatEmptyMessage(r);return ne.li({className:"lm-CommandPalette-emptyMessage"},n)}renderItemIcon(r){let n=this.createIconClass(r);return ne.div({className:n},r.item.icon,r.item.iconLabel)}renderItemContent(r){return ne.div({className:"lm-CommandPalette-itemContent"},this.renderItemLabel(r),this.renderItemCaption(r))}renderItemLabel(r){let n=this.formatItemLabel(r);return ne.div({className:"lm-CommandPalette-itemLabel"},n)}renderItemCaption(r){let n=this.formatItemCaption(r);return ne.div({className:"lm-CommandPalette-itemCaption"},n)}renderItemShortcut(r){let n=this.formatItemShortcut(r);return ne.div({className:"lm-CommandPalette-itemShortcut"},n)}createItemClass(r){let n="lm-CommandPalette-item";r.item.isEnabled||(n+=" lm-mod-disabled"),r.item.isToggled&&(n+=" lm-mod-toggled"),r.active&&(n+=" lm-mod-active");let s=r.item.className;return s&&(n+=` ${s}`),n}createItemDataset(r){return{...r.item.dataset,command:r.item.command}}createIconClass(r){let n="lm-CommandPalette-itemIcon",s=r.item.iconClass;return s?`${n} ${s}`:n}formatHeader(r){return!r.indices||r.indices.length===0?r.category:Ud.highlight(r.category,r.indices,ne.mark)}formatEmptyMessage(r){return`No commands found that match '${r.query}'`}formatItemShortcut(r){let n=r.item.keyBinding;return n?Jt.formatKeystroke(n.keys):null}formatItemLabel(r){return!r.indices||r.indices.length===0?r.item.label:Ud.highlight(r.item.label,r.indices,ne.mark)}formatItemCaption(r){return r.item.caption}}i.Renderer=e,i.defaultRenderer=new e})(Yd||(Yd={}));(function(i){function e(){let f=document.createElement("div"),m=document.createElement("div"),b=document.createElement("div"),y=document.createElement("input"),x=document.createElement("ul"),M=document.createElement("button");return m.className="lm-CommandPalette-search",b.className="lm-CommandPalette-wrapper",y.className="lm-CommandPalette-input",M.className="lm-close-icon",x.className="lm-CommandPalette-content",x.setAttribute("role","menu"),y.spellcheck=!1,b.appendChild(y),b.appendChild(M),m.appendChild(b),f.appendChild(m),f.appendChild(x),f}i.createNode=e;function t(f,m){return new d(f,m)}i.createItem=t;function r(f,m){let b=a(f,m);return b.sort(u),c(b)}i.search=r;function n(f){return f.type==="item"&&f.item.isEnabled}i.canActivate=n;function s(f){return f.trim().replace(/\s+/g," ")}function o(f){return f.replace(/\s+/g,"").toLowerCase()}function a(f,m){m=o(m);let b=[];for(let y=0,x=f.length;y<x;++y){let M=f[y];if(!M.isVisible)continue;if(!m){b.push({matchType:3,categoryIndices:null,labelIndices:null,
6177score:0,item:M});continue}let T=l(M,m);T&&(M.isEnabled||(T.score+=1e3),b.push(T))}return b}function l(f,m){let b=f.category.toLowerCase(),y=f.label.toLowerCase(),x=`${b} ${y}`,M=1/0,T=null,E=/\b\w/g;for(;;){let _=E.exec(x);if(!_)break;let h=Ud.matchSumOfDeltas(x,m,_.index);if(!h)break;h.score<=M&&(M=h.score,T=h.indices)}if(!T||M===1/0)return null;let A=b.length+1,R=de.lowerBound(T,A,(_,h)=>_-h),$=T.slice(0,R),v=T.slice(R);for(let _=0,h=v.length;_<h;++_)v[_]-=A;return $.length===0?{matchType:0,categoryIndices:null,labelIndices:v,score:M,item:f}:v.length===0?{matchType:1,categoryIndices:$,labelIndices:null,score:M,item:f}:{matchType:2,categoryIndices:$,labelIndices:v,score:M,item:f}}function u(f,m){let b=f.matchType-m.matchType;if(b!==0)return b;let y=f.score-m.score;if(y!==0)return y;let x=0,M=0;switch(f.matchType){case 0:x=f.labelIndices[0],M=m.labelIndices[0];break;case 1:case 2:x=f.categoryIndices[0],M=m.categoryIndices[0];break}if(x!==M)return x-M;let T=f.item.category.localeCompare(m.item.category);if(T!==0)return T;let E=f.item.rank,A=m.item.rank;return E!==A?E<A?-1:1:f.item.label.localeCompare(m.item.label)}function c(f){let m=[];for(let b=0,y=f.length;b<y;++b){let{item:x,categoryIndices:M,labelIndices:T}=f[b],E=x.category;(b===0||E!==f[b-1].item.category)&&m.push({type:"header",category:E,indices:M}),m.push({type:"item",item:x,indices:T})}return m}class d{constructor(m,b){this._commands=m,this.category=s(b.category),this.command=b.command,this.args=b.args||_a.JSONExt.emptyObject,this.rank=b.rank!==void 0?b.rank:1/0}get label(){return this._commands.label(this.command,this.args)}get icon(){return this._commands.icon(this.command,this.args)}get iconClass(){return this._commands.iconClass(this.command,this.args)}get iconLabel(){return this._commands.iconLabel(this.command,this.args)}get caption(){return this._commands.caption(this.command,this.args)}get className(){return this._commands.className(this.command,this.args)}get dataset(){return this._commands.dataset(this.command,this.args)}get isEnabled(){return this._commands.isEnabled(this.command,this.args)}get isToggled(){return this._commands.isToggled(this.command,this.args)}get isToggleable(){return this._commands.isToggleable(this.command,this.args)}get isVisible(){return this._commands.isVisible(this.command,this.args)}get keyBinding(){let{command:m,args:b}=this;return de.findLastValue(this._commands.keyBindings,y=>y.command===m&&_a.JSONExt.deepEqual(y.args,b))||null}}})(ga||(ga={}));xo=class extends G{constructor(e){super({node:Br.createNode()}),this._childIndex=-1,this._activeIndex=-1,this._openTimerID=0,this._closeTimerID=0,this._items=[],this._childMenu=null,this._parentMenu=null,this._aboutToClose=new X(this),this._menuRequested=new X(this),this.addClass("lm-Menu"),this.setFlag(G.Flag.DisallowLayout),this.commands=e.commands,this.renderer=e.renderer||xo.defaultRenderer}dispose(){this.close(),this._items.length=0,super.dispose()}get aboutToClose(){return this._aboutToClose}get menuRequested(){return this._menuRequested}get parentMenu(){return this._parentMenu}get childMenu(){return this._childMenu}get rootMenu(){let e=this;for(;e._parentMenu;)e=e._parentMenu;return e}get leafMenu(){let e=this;for(;e._childMenu;)e=e._childMenu;return e}get contentNode(){return this.node.getElementsByClassName("lm-Menu-content")[0]}get activeItem(){return this._items[this._activeIndex]||null}set activeItem(e){this.activeIndex=e?this._items.indexOf(e):-1}get activeIndex(){return this._activeIndex}set activeIndex(e){(e<0||e>=this._items.length)&&(e=-1),e!==-1&&!Br.canActivate(this._items[e])&&(e=-1),this._activeIndex!==e&&(this._activeIndex=e,this._activeIndex>=0&&this.contentNode.childNodes[this._activeIndex]&&this.contentNode.childNodes[this._activeIndex].focus(),this.update())}get items(){return this._items}activateNextItem(){let e=this._items.length,t=this._activeIndex,r=t<e-1?t+1:0,n=r===0?e-1:r-1;this.activeIndex=de.findFirstIndex(this._items,Br.canActivate,r,n)}activatePreviousItem(){let e=this._items.length,t=this._activeIndex,r=t<=0?e-1:t-1,n=r===e-1?0:r+1;this.activeIndex=de.findLastIndex(this._items,Br.canActivate,r,n)}triggerActiveItem(){if(!this.isAttached)return;let e=this.activeItem;if(!e)return;if(this._cancelOpenTimer(),this._cancelCloseTimer(),e.type==="submenu"){this._openChildMenu(!0);return}this.rootMenu.close();let{command:t,args:r}=e;this.commands.isEnabled(t,r)?this.commands.execute(t,r):console.log(`Command '${t}' is disabled.`)}addItem(e){return this.insertItem(this._items.length,e)}insertItem(e,t){this.isAttached&&this.close(),this.activeIndex=-1;let r=Math.max(0,Math.min(e,this._items.length)),n=Br.createItem(this,t);return de.insert(this._items,r,n),this.update(),n}removeItem(e){this.removeItemAt(this._items.indexOf(e))}removeItemAt(e){this.isAttached&&this.close(),this.activeIndex=-1,de.removeAt(this._items,e)&&this.update()}clearItems(){this.isAttached&&this.close(),this.activeIndex=-1,this._items.length!==0&&(this._items.length=0,this.update())}open(e,t,r={}){var n,s;if(this.isAttached)return;let o=r.forceX||!1,a=r.forceY||!1,l=(n=r.host)!==null&&n!==void 0?n:null,u=(s=r.ref)!==null&&s!==void 0?s:null;Br.openRootMenu(this,e,t,o,a,l,u),this.activate()}handleEvent(e){switch(e.type){case"keydown":this._evtKeyDown(e);break;case"mouseup":this._evtMouseUp(e);break;case"mousemove":this._evtMouseMove(e);break;case"mouseenter":this._evtMouseEnter(e);break;case"mouseleave":this._evtMouseLeave(e);break;case"mousedown":this._evtMouseDown(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("keydown",this),this.node.addEventListener("mouseup",this),this.node.addEventListener("mousemove",this),this.node.addEventListener("mouseenter",this),this.node.addEventListener("mouseleave",this),this.node.addEventListener("contextmenu",this),document.addEventListener("mousedown",this,
6177!0)}onAfterDetach(e){this.node.removeEventListener("keydown",this),this.node.removeEventListener("mouseup",this),this.node.removeEventListener("mousemove",this),this.node.removeEventListener("mouseenter",this),this.node.removeEventListener("mouseleave",this),this.node.removeEventListener("contextmenu",this),document.removeEventListener("mousedown",this,!0)}onActivateRequest(e){this.isAttached&&this.node.focus()}onUpdateRequest(e){let t=this._items,r=this.renderer,n=this._activeIndex,s=Br.computeCollapsed(t),o=new Array(t.length);for(let a=0,l=t.length;a<l;++a){let u=t[a],c=a===n,d=s[a];o[a]=r.renderItem({item:u,active:c,collapsed:d,onfocus:()=>{this.activeIndex=a}})}Wt.render(o,this.contentNode)}onCloseRequest(e){this._cancelOpenTimer(),this._cancelCloseTimer(),this.activeIndex=-1;let t=this._childMenu;t&&(this._childIndex=-1,this._childMenu=null,t._parentMenu=null,t.close());let r=this._parentMenu;r&&(this._parentMenu=null,r._childIndex=-1,r._childMenu=null,r.activate()),this.isAttached&&this._aboutToClose.emit(void 0),super.onCloseRequest(e)}_evtKeyDown(e){e.preventDefault(),e.stopPropagation();let t=e.keyCode;if(t===13){this.triggerActiveItem();return}if(t===27){this.close();return}if(t===37){this._parentMenu?this.close():this._menuRequested.emit("previous");return}if(t===38){this.activatePreviousItem();return}if(t===39){let o=this.activeItem;o&&o.type==="submenu"?this.triggerActiveItem():this.rootMenu._menuRequested.emit("next");return}if(t===40){this.activateNextItem();return}let r=Bn().keyForKeydownEvent(e);if(!r)return;let n=this._activeIndex+1,s=Br.findMnemonic(this._items,r,n);s.index!==-1&&!s.multiple?(this.activeIndex=s.index,this.triggerActiveItem()):s.index!==-1?this.activeIndex=s.index:s.auto!==-1&&(this.activeIndex=s.auto)}_evtMouseUp(e){e.button===0&&(e.preventDefault(),e.stopPropagation(),this.triggerActiveItem())}_evtMouseMove(e){let t=de.findFirstIndex(this.contentNode.children,n=>Tt.hitTest(n,e.clientX,e.clientY));if(t===this._activeIndex)return;if(this.activeIndex=t,t=this.activeIndex,t===this._childIndex){this._cancelOpenTimer(),this._cancelCloseTimer();return}this._childIndex!==-1&&this._startCloseTimer(),this._cancelOpenTimer();let r=this.activeItem;!r||r.type!=="submenu"||!r.submenu||this._startOpenTimer()}_evtMouseEnter(e){for(let t=this._parentMenu;t;t=t._parentMenu)t._cancelOpenTimer(),t._cancelCloseTimer(),t.activeIndex=t._childIndex}_evtMouseLeave(e){if(this._cancelOpenTimer(),!this._childMenu){this.activeIndex=-1;return}let{clientX:t,clientY:r}=e;if(Tt.hitTest(this._childMenu.node,t,r)){this._cancelCloseTimer();return}this.activeIndex=-1,this._startCloseTimer()}_evtMouseDown(e){this._parentMenu||(Br.hitTestMenus(this,e.clientX,e.clientY)?(e.preventDefault(),e.stopPropagation()):this.close())}_openChildMenu(e=!1){let t=this.activeItem;if(!t||t.type!=="submenu"||!t.submenu){this._closeChildMenu();return}let r=t.submenu;if(r===this._childMenu)return;xo.saveWindowData(),this._closeChildMenu(),this._childMenu=r,this._childIndex=this._activeIndex,r._parentMenu=this,oe.sendMessage(this,G.Msg.UpdateRequest);let n=this.contentNode.children[this._activeIndex];Br.openSubmenu(r,n),e&&(r.activeIndex=-1,r.activateNextItem()),r.activate()}_closeChildMenu(){this._childMenu&&this._childMenu.close()}_startOpenTimer(){this._openTimerID===0&&(this._openTimerID=window.setTimeout(()=>{this._openTimerID=0,this._openChildMenu()},Br.TIMER_DELAY))}_startCloseTimer(){this._closeTimerID===0&&(this._closeTimerID=window.setTimeout(()=>{this._closeTimerID=0,this._closeChildMenu()},Br.TIMER_DELAY))}_cancelOpenTimer(){this._openTimerID!==0&&(clearTimeout(this._openTimerID),this._openTimerID=0)}_cancelCloseTimer(){this._closeTimerID!==0&&(clearTimeout(this._closeTimerID),this._closeTimerID=0)}static saveWindowData(){Br.saveWindowData()}};(function(i){class e{renderItem(r){let n=this.createItemClass(r),s=this.createItemDataset(r),o=this.createItemARIA(r);return ne.li({className:n,dataset:s,tabindex:"0",onfocus:r.onfocus,...o},this.renderIcon(r),this.renderLabel(r),this.renderShortcut(r),this.renderSubmenu(r))}renderIcon(r){let n=this.createIconClass(r);return ne.div({className:n},r.item.icon,r.item.iconLabel)}renderLabel(r){let n=this.formatLabel(r);return ne.div({className:"lm-Menu-itemLabel"},n)}renderShortcut(r){let n=this.formatShortcut(r);return ne.div({className:"lm-Menu-itemShortcut"},n)}renderSubmenu(r){return ne.div({className:"lm-Menu-itemSubmenuIcon"})}createItemClass(r){let n="lm-Menu-item";r.item.isEnabled||(n+=" lm-mod-disabled"),r.item.isToggled&&(n+=" lm-mod-toggled"),r.item.isVisible||(n+=" lm-mod-hidden"),r.active&&(n+=" lm-mod-active"),r.collapsed&&(n+=" lm-mod-collapsed");let s=r.item.className;return s&&(n+=` ${s}`),n}
6177createItemDataset(r){let n,{type:s,command:o,dataset:a}=r.item;return s==="command"?n={...a,type:s,command:o}:n={...a,type:s},n}createIconClass(r){let n="lm-Menu-itemIcon",s=r.item.iconClass;return s?`${n} ${s}`:n}createItemARIA(r){let n={};switch(r.item.type){case"separator":n.role="presentation";break;case"submenu":n["aria-haspopup"]="true",r.item.isEnabled||(n["aria-disabled"]="true");break;default:r.item.isEnabled||(n["aria-disabled"]="true"),n.role="menuitem"}return n}formatLabel(r){let{label:n,mnemonic:s}=r.item;if(s<0||s>=n.length)return n;let o=n.slice(0,s),a=n.slice(s+1),l=n[s],u=ne.span({className:"lm-Menu-itemMnemonic"},l);return[o,u,a]}formatShortcut(r){let n=r.item.keyBinding;return n?Jt.formatKeystroke(n.keys):null}}i.Renderer=e,i.defaultRenderer=new e})(xo||(xo={}));(function(i){i.TIMER_DELAY=300,i.SUBMENU_OVERLAP=3;let e=null,t=0;function r(){return t>0?(t--,e):c()}function n(){e=c(),t++}i.saveWindowData=n;function s(){let y=document.createElement("div"),x=document.createElement("ul");return x.className="lm-Menu-content",y.appendChild(x),x.setAttribute("role","menu"),y.tabIndex=0,y}i.createNode=s;function o(y){return y.type!=="separator"&&y.isEnabled&&y.isVisible}i.canActivate=o;function a(y,x){return new b(y.commands,x)}i.createItem=a;function l(y,x,M){for(let T=y;T;T=T.childMenu)if(Tt.hitTest(T.node,x,M))return!0;return!1}i.hitTestMenus=l;function u(y){let x=new Array(y.length);de.fill(x,!1);let M=0,T=y.length;for(;M<T;++M){let R=y[M];if(R.isVisible){if(R.type!=="separator")break;x[M]=!0}}let E=T-1;for(;E>=0;--E){let R=y[E];if(R.isVisible){if(R.type!=="separator")break;x[E]=!0}}let A=!1;for(;++M<E;){let R=y[M];R.isVisible&&(R.type!=="separator"?A=!1:A?x[M]=!0:A=!0)}return x}i.computeCollapsed=u;function c(){return{pageXOffset:window.pageXOffset,pageYOffset:window.pageYOffset,clientWidth:document.documentElement.clientWidth,clientHeight:document.documentElement.clientHeight}}function d(y,x,M,T,E,A,R){let $=r(),v=$.pageXOffset,_=$.pageYOffset,h=$.clientWidth,p=$.clientHeight;oe.sendMessage(y,G.Msg.UpdateRequest);let g=p-(E?M:0),C=y.node,I=C.style;I.opacity="0",I.maxHeight=`${g}px`,G.attach(y,A||document.body,R);let{width:F,height:P}=C.getBoundingClientRect();!T&&x+F>v+h&&(x=v+h-F),!E&&M+P>_+p&&(M>_+p?M=_+p-P:M=M-P),I.transform=`translate(${Math.max(0,x)}px, ${Math.max(0,M)}px`,I.opacity="1"}i.openRootMenu=d;function f(y,x){let M=r(),T=M.pageXOffset,E=M.pageYOffset,A=M.clientWidth,R=M.clientHeight;oe.sendMessage(y,G.Msg.UpdateRequest);let $=R,v=y.node,_=v.style;_.opacity="0",_.maxHeight=`${$}px`,G.attach(y,document.body);let{width:h,height:p}=v.getBoundingClientRect(),g=Tt.boxSizing(y.node),C=x.getBoundingClientRect(),I=C.right-i.SUBMENU_OVERLAP;I+h>T+A&&(I=C.left+i.SUBMENU_OVERLAP-h);let F=C.top-g.borderTop-g.paddingTop;F+p>E+R&&(F=C.bottom+g.borderBottom+g.paddingBottom-p),_.transform=`translate(${Math.max(0,I)}px, ${Math.max(0,F)}px`,_.opacity="1"}i.openSubmenu=f;function m(y,x,M){let T=-1,E=-1,A=!1,R=x.toUpperCase();for(let $=0,v=y.length;$<v;++$){let _=($+M)%v,h=y[_];if(!o(h))continue;let p=h.label;if(p.length===0)continue;let g=h.mnemonic;if(g>=0&&g<p.length){p[g].toUpperCase()===R&&(T===-1?T=_:A=!0);continue}E===-1&&p[0].toUpperCase()===R&&(E=_)}return{index:T,multiple:A,auto:E}}i.findMnemonic=m;class b{constructor(x,M){this._commands=x,this.type=M.type||"command",this.command=M.command||"",this.args=M.args||_a.JSONExt.emptyObject,this.submenu=M.submenu||null}get label(){return this.type==="command"?this._commands.label(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.label:""}get mnemonic(){return this.type==="command"?this._commands.mnemonic(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.mnemonic:-1}get icon(){if(this.type==="command")return this._commands.icon(this.command,this.args);if(this.type==="submenu"&&this.submenu)return this.submenu.title.icon}get iconClass(){return this.type==="command"?this._commands.iconClass(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.iconClass:""}get iconLabel(){return this.type==="command"?this._commands.iconLabel(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.iconLabel:""}get caption(){return this.type==="command"?this._commands.caption(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.caption:""}get className(){return this.type==="command"?this._commands.className(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.className:""}get dataset(){return this.type==="command"?this._commands.dataset(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.dataset:{}}get isEnabled(){return this.type==="command"?this._commands.isEnabled(this.command,this.args):this.type==="submenu"?this.submenu!==null:!0}get isToggled(){return this.type==="command"?this._commands.isToggled(this.command,this.args):!1}get isVisible(){return this.type==="command"?this._commands.isVisible(this.command,this.args):this.type==="submenu"?this.submenu!==null:!0}
6177get keyBinding(){if(this.type==="command"){let{command:x,args:M}=this;return de.findLastValue(this._commands.keyBindings,T=>T.command===x&&_a.JSONExt.deepEqual(T.args,M))||null}return null}}})(Br||(Br={}));(function(i){function e(o,a){let l=r(o.selector),u=o.rank!==void 0?o.rank:1/0;return{...o,selector:l,rank:u,id:a}}i.createItem=e;function t(o,a,l,u){let c=a.target;if(!c)return null;let d=a.currentTarget;if(!d||!d.contains(c)&&(c=document.elementFromPoint(a.clientX,a.clientY),!c||!d.contains(c)))return null;let f=[],m=o.slice();for(;c!==null;){let b=[];for(let y=0,x=m.length;y<x;++y){let M=m[y];M&&Gu.matches(c,M.selector)&&(b.push(M),m[y]=null)}if(b.length!==0&&(l&&b.sort(u?s:n),f.push(...b)),c===d)break;c=c.parentElement}return l||f.sort(u?s:n),f}i.matchItems=t;function r(o){if(o.indexOf(",")!==-1)throw new Error(`Selector cannot contain commas: ${o}`);if(!Gu.isValid(o))throw new Error(`Invalid selector: ${o}`);return o}function n(o,a){let l=o.rank,u=a.rank;return l!==u?l<u?-1:1:o.id-a.id}function s(o,a){let l=Gu.calculateSpecificity(o.selector),u=Gu.calculateSpecificity(a.selector);return l!==u?u-l:n(o,a)}})(sJ||(sJ={}));D5e=["ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Home","End"],Rl=class extends G{constructor(e={}){super({node:rs.createNode()}),this._currentIndex=-1,this._titles=[],this._titlesEditable=!1,this._previousTitle=null,this._dragData=null,this._addButtonEnabled=!1,this._tabMoved=new X(this),this._currentChanged=new X(this),this._addRequested=new X(this),this._tabCloseRequested=new X(this),this._tabDetachRequested=new X(this),this._tabActivateRequested=new X(this),this.addClass("lm-TabBar"),this.contentNode.setAttribute("role","tablist"),this.setFlag(G.Flag.DisallowLayout),this._document=e.document||document,this.tabsMovable=e.tabsMovable||!1,this.titlesEditable=e.titlesEditable||!1,this.allowDeselect=e.allowDeselect||!1,this.addButtonEnabled=e.addButtonEnabled||!1,this.insertBehavior=e.insertBehavior||"select-tab-if-needed",this.name=e.name||"",this.orientation=e.orientation||"horizontal",this.removeBehavior=e.removeBehavior||"select-tab-after",this.renderer=e.renderer||Rl.defaultRenderer}dispose(){this._releaseMouse(),this._titles.length=0,this._previousTitle=null,super.dispose()}get currentChanged(){return this._currentChanged}get tabMoved(){return this._tabMoved}get tabActivateRequested(){return this._tabActivateRequested}get addRequested(){return this._addRequested}get tabCloseRequested(){return this._tabCloseRequested}get tabDetachRequested(){return this._tabDetachRequested}get document(){return this._document}get titlesEditable(){return this._titlesEditable}set titlesEditable(e){this._titlesEditable=e}get currentTitle(){return this._titles[this._currentIndex]||null}set currentTitle(e){this.currentIndex=e?this._titles.indexOf(e):-1}get currentIndex(){return this._currentIndex}set currentIndex(e){if((e<0||e>=this._titles.length)&&(e=-1),this._currentIndex===e)return;let t=this._currentIndex,r=this._titles[t]||null,n=e,s=this._titles[n]||null;this._currentIndex=n,this._previousTitle=r,this.update(),this._currentChanged.emit({previousIndex:t,previousTitle:r,currentIndex:n,currentTitle:s})}get name(){return this._name}set name(e){this._name=e,e?this.contentNode.setAttribute("aria-label",e):this.contentNode.removeAttribute("aria-label")}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._releaseMouse(),this._orientation=e,this.dataset.orientation=e,this.contentNode.setAttribute("aria-orientation",e))}get addButtonEnabled(){return this._addButtonEnabled}set addButtonEnabled(e){this._addButtonEnabled!==e&&(this._addButtonEnabled=e,e?this.addButtonNode.classList.remove("lm-mod-hidden"):this.addButtonNode.classList.add("lm-mod-hidden"))}get titles(){return this._titles}get contentNode(){return this.node.getElementsByClassName("lm-TabBar-content")[0]}get addButtonNode(){return this.node.getElementsByClassName("lm-TabBar-addButton")[0]}addTab(e){return this.insertTab(this._titles.length,e)}insertTab(e,t){this._releaseMouse();let r=rs.asTitle(t),n=this._titles.indexOf(r),s=Math.max(0,Math.min(e,this._titles.length));return n===-1?(de.insert(this._titles,s,r),r.changed.connect(this._onTitleChanged,this),this.update(),this._adjustCurrentForInsert(s,r),r):(s===this._titles.length&&s--,n===s||(de.move(this._titles,n,s),this.update(),this._adjustCurrentForMove(n,s)),r)}removeTab(e){this.removeTabAt(this._titles.indexOf(e))}removeTabAt(e){this._releaseMouse();let t=de.removeAt(this._titles,e);t&&(t.changed.disconnect(this._onTitleChanged,this),t===this._previousTitle&&(this._previousTitle=null),this.update(),this._adjustCurrentForRemove(e,t))}clearTabs(){if(this._titles.length===0)return;this._releaseMouse();for(let r of this._titles)r.changed.disconnect(this._onTitleChanged,this);let e=this.currentIndex,t=this.currentTitle;this._currentIndex=-1,this._previousTitle=null,this._titles.length=0,this.update(),e!==-1&&this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:-1,
6177currentTitle:null})}releaseMouse(){this._releaseMouse()}handleEvent(e){switch(e.type){case"pointerdown":this._evtPointerDown(e);break;case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"dblclick":this._evtDblClick(e);break;case"keydown":e.eventPhase===Event.CAPTURING_PHASE?this._evtKeyDownCapturing(e):this._evtKeyDown(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("pointerdown",this),this.node.addEventListener("dblclick",this),this.node.addEventListener("keydown",this)}onAfterDetach(e){this.node.removeEventListener("pointerdown",this),this.node.removeEventListener("dblclick",this),this.node.removeEventListener("keydown",this),this._releaseMouse()}onUpdateRequest(e){var t;let r=this._titles,n=this.renderer,s=this.currentTitle,o=new Array(r.length),a=(t=this._getCurrentTabindex())!==null&&t!==void 0?t:this._currentIndex>-1?this._currentIndex:0;for(let l=0,u=r.length;l<u;++l){let c=r[l],d=c===s,f=d?u:u-l-1,m=a===l?0:-1;o[l]=n.renderTab({title:c,current:d,zIndex:f,tabIndex:m})}Wt.render(o,this.contentNode)}_getCurrentTabindex(){let e=null,t=this.contentNode.querySelector('li[tabindex="0"]');return t?e=[...this.contentNode.children].indexOf(t):this._addButtonEnabled&&this.addButtonNode.getAttribute("tabindex")==="0"&&(e=-1),e}_evtDblClick(e){if(!this.titlesEditable)return;let t=this.contentNode.children,r=de.findFirstIndex(t,o=>Tt.hitTest(o,e.clientX,e.clientY));if(r===-1)return;let n=this.titles[r],s=t[r].querySelector(".lm-TabBar-tabLabel");if(s&&s.contains(e.target)){let o=n.label||"",a=s.innerHTML;s.innerHTML="";let l=document.createElement("input");l.classList.add("lm-TabBar-tabInput"),l.value=o,s.appendChild(l);let u=()=>{l.removeEventListener("blur",u),s.innerHTML=a,this.node.addEventListener("keydown",this)};l.addEventListener("dblclick",c=>c.stopPropagation()),l.addEventListener("blur",u),l.addEventListener("keydown",c=>{c.key==="Enter"?(l.value!==""&&(n.label=n.caption=l.value),u()):c.key==="Escape"&&u()}),this.node.removeEventListener("keydown",this),l.select(),l.focus(),s.children.length>0&&s.children[0].focus()}}_evtKeyDownCapturing(e){e.eventPhase===Event.CAPTURING_PHASE&&(e.preventDefault(),e.stopPropagation(),e.key==="Escape"&&this._releaseMouse())}_evtKeyDown(e){var t,r,n;if(!(e.key==="Tab"||e.eventPhase===Event.CAPTURING_PHASE)){if(e.key==="Enter"||e.key==="Spacebar"||e.key===" "){let s=document.activeElement;if(this.addButtonEnabled&&this.addButtonNode.contains(s))e.preventDefault(),e.stopPropagation(),this._addRequested.emit();else{let o=de.findFirstIndex(this.contentNode.children,a=>a.contains(s));o>=0&&(e.preventDefault(),e.stopPropagation(),this.currentIndex=o)}}else if(D5e.includes(e.key)){let s=[...this.contentNode.children];if(this.addButtonEnabled&&s.push(this.addButtonNode),s.length<=1)return;e.preventDefault(),e.stopPropagation();let o=s.indexOf(document.activeElement);o===-1&&(o=this._currentIndex);let a;e.key==="ArrowRight"&&this._orientation==="horizontal"||e.key==="ArrowDown"&&this._orientation==="vertical"?a=(t=s[o+1])!==null&&t!==void 0?t:s[0]:e.key==="ArrowLeft"&&this._orientation==="horizontal"||e.key==="ArrowUp"&&this._orientation==="vertical"?a=(r=s[o-1])!==null&&r!==void 0?r:s[s.length-1]:e.key==="Home"?a=s[0]:e.key==="End"&&(a=s[s.length-1]),a&&((n=s[o])===null||n===void 0||n.setAttribute("tabindex","-1"),a?.setAttribute("tabindex","0"),a.focus())}}}_evtPointerDown(e){if(e.button!==0&&e.button!==1||this._dragData||e.target.classList.contains("lm-TabBar-tabInput"))return;let t=this.addButtonEnabled&&this.addButtonNode.contains(e.target),r=this.contentNode.children,n=de.findFirstIndex(r,o=>Tt.hitTest(o,e.clientX,e.clientY));if(n===-1&&!t||(e.preventDefault(),e.stopPropagation(),this._dragData={tab:r[n],index:n,pressX:e.clientX,pressY:e.clientY,tabPos:-1,tabSize:-1,tabPressPos:-1,targetIndex:-1,tabLayout:null,contentRect:null,override:null,dragActive:!1,dragAborted:!1,detachRequested:!1},this.document.addEventListener("pointerup",this,!0),e.button===1||t))return;let s=r[n].querySelector(this.renderer.closeIconSelector);s&&s.contains(e.target)||(this.tabsMovable&&(this.document.addEventListener("pointermove",this,!0),this.document.addEventListener("keydown",this,
6177!0),this.document.addEventListener("contextmenu",this,!0)),this.allowDeselect&&this.currentIndex===n?this.currentIndex=-1:this.currentIndex=n,this.currentIndex!==-1&&this._tabActivateRequested.emit({index:this.currentIndex,title:this.currentTitle}))}_evtPointerMove(e){let t=this._dragData;if(!t)return;e.preventDefault(),e.stopPropagation();let r=this.contentNode.children;if(!(!t.dragActive&&!rs.dragExceeded(t,e))){if(!t.dragActive){let n=t.tab.getBoundingClientRect();this._orientation==="horizontal"?(t.tabPos=t.tab.offsetLeft,t.tabSize=n.width,t.tabPressPos=t.pressX-n.left):(t.tabPos=t.tab.offsetTop,t.tabSize=n.height,t.tabPressPos=t.pressY-n.top),t.tabPressOffset={x:t.pressX-n.left,y:t.pressY-n.top},t.tabLayout=rs.snapTabLayout(r,this._orientation),t.contentRect=this.contentNode.getBoundingClientRect(),t.override=gt.overrideCursor("default"),t.tab.classList.add("lm-mod-dragging"),this.addClass("lm-mod-dragging"),t.dragActive=!0}if(!t.detachRequested&&rs.detachExceeded(t,e)){t.detachRequested=!0;let n=t.index,s=e.clientX,o=e.clientY,a=r[n],l=this._titles[n];if(this._tabDetachRequested.emit({index:n,title:l,tab:a,clientX:s,clientY:o,offset:t.tabPressOffset}),t.dragAborted)return}rs.layoutTabs(r,t,e,this._orientation)}}_evtPointerUp(e){if(e.button!==0&&e.button!==1)return;let t=this._dragData;if(!t)return;if(e.preventDefault(),e.stopPropagation(),this.document.removeEventListener("pointermove",this,!0),this.document.removeEventListener("pointerup",this,!0),this.document.removeEventListener("keydown",this,!0),this.document.removeEventListener("contextmenu",this,!0),!t.dragActive){if(this._dragData=null,this.addButtonEnabled&&this.addButtonNode.contains(e.target)){this._addRequested.emit(void 0);return}let s=this.contentNode.children,o=de.findFirstIndex(s,u=>Tt.hitTest(u,e.clientX,e.clientY));if(o!==t.index)return;let a=this._titles[o];if(!a.closable)return;if(e.button===1){this._tabCloseRequested.emit({index:o,title:a});return}let l=s[o].querySelector(this.renderer.closeIconSelector);if(l&&l.contains(e.target)){this._tabCloseRequested.emit({index:o,title:a});return}return}if(e.button!==0)return;rs.finalizeTabPosition(t,this._orientation),t.tab.classList.remove("lm-mod-dragging");let r=rs.parseTransitionDuration(t.tab);setTimeout(()=>{if(t.dragAborted)return;this._dragData=null,rs.resetTabPositions(this.contentNode.children,this._orientation),t.override.dispose(),this.removeClass("lm-mod-dragging");let n=t.index,s=t.targetIndex;s===-1||n===s||(de.move(this._titles,n,s),this._adjustCurrentForMove(n,s),this._tabMoved.emit({fromIndex:n,toIndex:s,title:this._titles[s]}),oe.sendMessage(this,G.Msg.UpdateRequest))},r)}_releaseMouse(){let e=this._dragData;e&&(this._dragData=null,this.document.removeEventListener("pointermove",this,!0),this.document.removeEventListener("pointerup",this,!0),this.document.removeEventListener("keydown",this,!0),this.document.removeEventListener("contextmenu",this,!0),e.dragAborted=!0,e.dragActive&&(rs.resetTabPositions(this.contentNode.children,this._orientation),e.override.dispose(),e.tab.classList.remove("lm-mod-dragging"),this.removeClass("lm-mod-dragging")))}_adjustCurrentForInsert(e,t){let r=this.currentTitle,n=this._currentIndex,s=this.insertBehavior;if(s==="select-tab"||s==="select-tab-if-needed"&&n===-1){this._currentIndex=e,this._previousTitle=r,this._currentChanged.emit({previousIndex:n,previousTitle:r,currentIndex:e,currentTitle:t});return}n>=e&&this._currentIndex++}_adjustCurrentForMove(e,t){this._currentIndex===e?this._currentIndex=t:this._currentIndex<e&&this._currentIndex>=t?this._currentIndex++:this._currentIndex>e&&this._currentIndex<=t&&this._currentIndex--}_adjustCurrentForRemove(e,t){let r=this._currentIndex,n=this.removeBehavior;if(r!==e){r>e&&this._currentIndex--;return}if(this._titles.length===0){this._currentIndex=-1,this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:-1,currentTitle:null});return}if(n==="select-tab-after"){this._currentIndex=Math.min(e,this._titles.length-1),this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:this._currentIndex,currentTitle:this.currentTitle});return}if(n==="select-tab-before"){this._currentIndex=Math.max(0,e-1),this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:this._currentIndex,currentTitle:this.currentTitle});return}if(n==="select-previous-tab"){this._previousTitle?(this._currentIndex=this._titles.indexOf(this._previousTitle),this._previousTitle=null):this._currentIndex=Math.min(e,this._titles.length-1),this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:this._currentIndex,currentTitle:this.currentTitle});return}this._currentIndex=-1,this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:-1,
6177currentTitle:null})}_onTitleChanged(e){this.update()}};(function(i){class e{constructor(){this.closeIconSelector=".lm-TabBar-tabCloseIcon",this._tabID=0,this._tabKeys=new WeakMap,this._uuid=++e._nInstance}renderTab(r){let n=r.title.caption,s=this.createTabKey(r),o=s,a=this.createTabStyle(r),l=this.createTabClass(r),u=this.createTabDataset(r),c=this.createTabARIA(r);return r.title.closable?ne.li({id:o,key:s,className:l,title:n,style:a,dataset:u,...c},this.renderIcon(r),this.renderLabel(r),this.renderCloseIcon(r)):ne.li({id:o,key:s,className:l,title:n,style:a,dataset:u,...c},this.renderIcon(r),this.renderLabel(r))}renderIcon(r){let{title:n}=r,s=this.createIconClass(r);return ne.div({className:s},n.icon,n.iconLabel)}renderLabel(r){return ne.div({className:"lm-TabBar-tabLabel"},r.title.label)}renderCloseIcon(r){return ne.div({className:"lm-TabBar-tabCloseIcon"})}createTabKey(r){let n=this._tabKeys.get(r.title);return n===void 0&&(n=`tab-key-${this._uuid}-${this._tabID++}`,this._tabKeys.set(r.title,n)),n}createTabStyle(r){return{zIndex:`${r.zIndex}`}}createTabClass(r){let n="lm-TabBar-tab";return r.title.className&&(n+=` ${r.title.className}`),r.title.closable&&(n+=" lm-mod-closable"),r.current&&(n+=" lm-mod-current"),n}createTabDataset(r){return r.title.dataset}createTabARIA(r){var n;return{role:"tab","aria-selected":r.current.toString(),tabindex:`${(n=r.tabIndex)!==null&&n!==void 0?n:"-1"}`}}createIconClass(r){let n="lm-TabBar-tabIcon",s=r.title.iconClass;return s?`${n} ${s}`:n}}e._nInstance=0,i.Renderer=e,i.defaultRenderer=new e,i.addButtonSelector=".lm-TabBar-addButton"})(Rl||(Rl={}));(function(i){i.DRAG_THRESHOLD=5,i.DETACH_THRESHOLD=20;function e(){let c=document.createElement("div"),d=document.createElement("ul");d.setAttribute("role","tablist"),d.className="lm-TabBar-content",c.appendChild(d);let f=document.createElement("div");return f.className="lm-TabBar-addButton lm-mod-hidden",f.setAttribute("tabindex","-1"),f.setAttribute("role","button"),c.appendChild(f),c}i.createNode=e;function t(c){return c instanceof Ap?c:new Ap(c)}i.asTitle=t;function r(c){let d=window.getComputedStyle(c);return 1e3*(parseFloat(d.transitionDuration)||0)}i.parseTransitionDuration=r;function n(c,d){let f=new Array(c.length);for(let m=0,b=c.length;m<b;++m){let y=c[m],x=window.getComputedStyle(y);d==="horizontal"?f[m]={pos:y.offsetLeft,size:y.offsetWidth,margin:parseFloat(x.marginLeft)||0}:f[m]={pos:y.offsetTop,size:y.offsetHeight,margin:parseFloat(x.marginTop)||0}}return f}i.snapTabLayout=n;function s(c,d){let f=Math.abs(d.clientX-c.pressX),m=Math.abs(d.clientY-c.pressY);return f>=i.DRAG_THRESHOLD||m>=i.DRAG_THRESHOLD}i.dragExceeded=s;function o(c,d){let f=c.contentRect;return d.clientX<f.left-i.DETACH_THRESHOLD||d.clientX>=f.right+i.DETACH_THRESHOLD||d.clientY<f.top-i.DETACH_THRESHOLD||d.clientY>=f.bottom+i.DETACH_THRESHOLD}i.detachExceeded=o;function a(c,d,f,m){let b,y,x,M;m==="horizontal"?(b=d.pressX,y=f.clientX-d.contentRect.left,x=f.clientX,M=d.contentRect.width):(b=d.pressY,y=f.clientY-d.contentRect.top,x=f.clientY,M=d.contentRect.height);let T=d.index,E=y-d.tabPressPos,A=E+d.tabSize;for(let R=0,$=c.length;R<$;++R){let v,_=d.tabLayout[R],h=_.pos+(_.size>>1);if(R<d.index&&E<h)v=`${d.tabSize+d.tabLayout[R+1].margin}px`,T=Math.min(T,R);else if(R>d.index&&A>h)v=`${-d.tabSize-_.margin}px`,T=Math.max(T,R);else if(R===d.index){let p=x-b,g=M-(d.tabPos+d.tabSize);v=`${Math.max(-d.tabPos,Math.min(p,g))}px`}else v="";m==="horizontal"?c[R].style.left=v:c[R].style.top=v}d.targetIndex=T}i.layoutTabs=a;function l(c,d){let f;d==="horizontal"?f=c.contentRect.width:f=c.contentRect.height;let m;if(c.targetIndex===c.index)m=0;else if(c.targetIndex>c.index){let x=c.tabLayout[c.targetIndex];m=x.pos+x.size-c.tabSize-c.tabPos}else m=c.tabLayout[c.targetIndex].pos-c.tabPos;let b=f-(c.tabPos+c.tabSize),y=Math.max(-c.tabPos,Math.min(m,b));d==="horizontal"?c.tab.style.left=`${y}px`:c.tab.style.top=`${y}px`}i.finalizeTabPosition=l;function u(c,d){for(let f of c)d==="horizontal"?f.style.left="":f.style.top=""}i.resetTabPositions=u})(rs||(rs={}));gS=class extends wo{constructor(e){super(),this._spacing=4,this._dirty=!1,this._root=null,this._box=null,this._items=new Map,this.renderer=e.renderer,e.spacing!==void 0&&(this._spacing=Dp.clampDimension(e.spacing)),this._document=e.document||document,this._hiddenMode=e.hiddenMode!==void 0?e.hiddenMode:G.HiddenMode.Display}dispose(){let e=this[Symbol.iterator]();
6177this._items.forEach(t=>{t.dispose()}),this._box=null,this._root=null,this._items.clear();for(let t of e)t.dispose();super.dispose()}get hiddenMode(){return this._hiddenMode}set hiddenMode(e){if(this._hiddenMode!==e){this._hiddenMode=e;for(let t of this.tabBars())if(t.titles.length>1)for(let r of t.titles)r.owner.hiddenMode=this._hiddenMode}}get spacing(){return this._spacing}set spacing(e){e=Dp.clampDimension(e),this._spacing!==e&&(this._spacing=e,this.parent&&this.parent.fit())}get isEmpty(){return this._root===null}[Symbol.iterator](){return this._root?this._root.iterAllWidgets():Wd()}widgets(){return this._root?this._root.iterUserWidgets():Wd()}selectedWidgets(){return this._root?this._root.iterSelectedWidgets():Wd()}tabBars(){return this._root?this._root.iterTabBars():Wd()}handles(){return this._root?this._root.iterHandles():Wd()}moveHandle(e,t,r){let n=e.classList.contains("lm-mod-hidden");if(!this._root||n)return;let s=this._root.findSplitNode(e);if(!s)return;let o;s.node.orientation==="horizontal"?o=t-e.offsetLeft:o=r-e.offsetTop,o!==0&&(s.node.holdSizes(),kn.adjust(s.node.sizers,s.index,o),this.parent&&this.parent.update())}saveLayout(){return this._root?(this._root.holdAllSizes(),{main:this._root.createConfig()}):{main:null}}restoreLayout(e){let t=new Set,r;e.main?r=fi.normalizeAreaConfig(e.main,t):r=null;let n=this.widgets(),s=this.tabBars(),o=this.handles();this._root=null;for(let a of n)t.has(a)||(a.parent=null);for(let a of s)a.dispose();for(let a of o)a.parentNode&&a.parentNode.removeChild(a);for(let a of t)a.parent=this.parent;r?this._root=fi.realizeAreaConfig(r,{createTabBar:a=>this._createTabBar(),createHandle:()=>this._createHandle()},this._document):this._root=null,this.parent&&(t.forEach(a=>{this.attachWidget(a)}),this.parent.fit())}addWidget(e,t={}){let r=t.ref||null,n=t.mode||"tab-after",s=null;if(this._root&&r&&(s=this._root.findTabNode(r)),r&&!s)throw new Error("Reference widget is not in the layout.");switch(e.parent=this.parent,n){case"tab-after":this._insertTab(e,r,s,!0);break;case"tab-before":this._insertTab(e,r,s,!1);break;case"split-top":this._insertSplit(e,r,s,"vertical",!1);break;case"split-left":this._insertSplit(e,r,s,"horizontal",!1);break;case"split-right":this._insertSplit(e,r,s,"horizontal",!0);break;case"split-bottom":this._insertSplit(e,r,s,"vertical",!0);break;case"merge-top":this._insertSplit(e,r,s,"vertical",!1,!0);break;case"merge-left":this._insertSplit(e,r,s,"horizontal",!1,!0);break;case"merge-right":this._insertSplit(e,r,s,"horizontal",!0,!0);break;case"merge-bottom":this._insertSplit(e,r,s,"vertical",!0,!0);break}this.parent&&(this.attachWidget(e),this.parent.fit())}removeWidget(e){this._removeWidget(e),this.parent&&(this.detachWidget(e),this.parent.fit())}hitTestTabAreas(e,t){if(!this._root||!this.parent||!this.parent.isVisible)return null;this._box||(this._box=Tt.boxSizing(this.parent.node));let r=this.parent.node.getBoundingClientRect(),n=e-r.left-this._box.borderLeft,s=t-r.top-this._box.borderTop,o=this._root.hitTestTabNodes(n,s);if(!o)return null;let{tabBar:a,top:l,left:u,width:c,height:d}=o,f=this._box.borderLeft+this._box.borderRight,m=this._box.borderTop+this._box.borderBottom,b=r.width-f-(u+c),y=r.height-m-(l+d);return{tabBar:a,x:n,y:s,top:l,left:u,right:b,bottom:y,width:c,height:d}}init(){super.init();for(let e of this)this.attachWidget(e);for(let e of this.handles())this.parent.node.appendChild(e);this.parent.fit()}attachWidget(e){this.parent.node!==e.node.parentNode&&(this._items.set(e,new Yu(e)),this.parent.isAttached&&oe.sendMessage(e,G.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&oe.sendMessage(e,G.Msg.AfterAttach))}detachWidget(e){if(this.parent.node!==e.node.parentNode)return;this.parent.isAttached&&oe.sendMessage(e,G.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&oe.sendMessage(e,G.Msg.AfterDetach);let t=this._items.get(e);t&&(this._items.delete(e),t.dispose())}onBeforeShow(e){super.onBeforeShow(e),this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e),this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){this.parent.isVisible&&this._update(e.width,e.height)}onUpdateRequest(e){this.parent.isVisible&&this._update(-1,-1)}onFitRequest(e){this.parent.isAttached&&this._fit()}_removeWidget(e){if(!this._root)return;let t=this._root.findTabNode(e);if(!t)return;
6177if(fi.removeAria(e),t.tabBar.titles.length>1){if(t.tabBar.removeTab(e.title),this._hiddenMode===G.HiddenMode.Scale&&t.tabBar.titles.length==1){let f=t.tabBar.titles[0].owner;f.hiddenMode=G.HiddenMode.Display}return}if(t.tabBar.dispose(),this._root===t){this._root=null;return}this._root.holdAllSizes();let r=t.parent;t.parent=null;let n=de.removeFirstOf(r.children,t),s=de.removeAt(r.handles,n);if(de.removeAt(r.sizers,n),s.parentNode&&s.parentNode.removeChild(s),r.children.length>1){r.syncHandles();return}let o=r.parent;r.parent=null;let a=r.children[0],l=r.handles[0];if(r.children.length=0,r.handles.length=0,r.sizers.length=0,l.parentNode&&l.parentNode.removeChild(l),this._root===r){a.parent=null,this._root=a;return}let u=o,c=u.children.indexOf(r);if(a instanceof fi.TabLayoutNode){a.parent=u,u.children[c]=a;return}let d=de.removeAt(u.handles,c);de.removeAt(u.children,c),de.removeAt(u.sizers,c),d.parentNode&&d.parentNode.removeChild(d);for(let f=0,m=a.children.length;f<m;++f){let b=a.children[f],y=a.handles[f],x=a.sizers[f];de.insert(u.children,c+f,b),de.insert(u.handles,c+f,y),de.insert(u.sizers,c+f,x),b.parent=u}a.children.length=0,a.handles.length=0,a.sizers.length=0,a.parent=null,u.syncHandles()}_createTabNode(e){let t=new fi.TabLayoutNode(this._createTabBar());return t.tabBar.addTab(e.title),fi.addAria(e,t.tabBar),t}_insertTab(e,t,r,n){if(e===t)return;if(!this._root){let o=new fi.TabLayoutNode(this._createTabBar());o.tabBar.addTab(e.title),this._root=o,fi.addAria(e,o.tabBar);return}r||(r=this._root.findFirstTabNode()),r.tabBar.titles.indexOf(e.title)===-1&&(this._removeWidget(e),e.hide());let s;if(t?s=r.tabBar.titles.indexOf(t.title):s=r.tabBar.currentIndex,this._hiddenMode===G.HiddenMode.Scale)if(r.tabBar.titles.length===0)e.hiddenMode=G.HiddenMode.Display;else if(r.tabBar.titles.length==1){let o=r.tabBar.titles[0].owner;o.hiddenMode=G.HiddenMode.Scale}else e.hiddenMode=G.HiddenMode.Scale;else e.hiddenMode=this._hiddenMode;r.tabBar.insertTab(s+(n?1:0),e.title),fi.addAria(e,r.tabBar)}_insertSplit(e,t,r,n,s,o=!1){if(e===t&&r&&r.tabBar.titles.length===1)return;if(this._removeWidget(e),!this._root){this._root=this._createTabNode(e);return}if(!r||!r.parent){let f=this._splitRoot(n),m=s?f.children.length:0;f.normalizeSizes();let b=fi.createSizer(r?1:fi.GOLDEN_RATIO),y=this._createTabNode(e);de.insert(f.children,m,y),de.insert(f.sizers,m,b),de.insert(f.handles,m,this._createHandle()),y.parent=f,f.normalizeSizes(),f.syncHandles();return}let a=r.parent;if(a.orientation===n){let f=a.children.indexOf(r);if(o){let x=f+(s?1:-1),M=a.children[x];if(M instanceof fi.TabLayoutNode){this._insertTab(e,null,M,!0),++M.tabBar.currentIndex;return}}a.normalizeSizes();let m=a.sizers[f].sizeHint/=2,b=f+(s?1:0),y=this._createTabNode(e);de.insert(a.children,b,y),de.insert(a.sizers,b,fi.createSizer(m)),de.insert(a.handles,b,this._createHandle()),y.parent=a,a.syncHandles();return}let l=de.removeFirstOf(a.children,r),u=new fi.SplitLayoutNode(n);u.normalized=!0,u.children.push(r),u.sizers.push(fi.createSizer(.5)),u.handles.push(this._createHandle()),r.parent=u;let c=s?1:0,d=this._createTabNode(e);de.insert(u.children,c,d),de.insert(u.sizers,c,fi.createSizer(.5)),de.insert(u.handles,c,this._createHandle()),d.parent=u,u.syncHandles(),de.insert(a.children,l,u),u.parent=a}_splitRoot(e){let t=this._root;if(t instanceof fi.SplitLayoutNode&&t.orientation===e)return t;let r=this._root=new fi.SplitLayoutNode(e);return t&&(r.children.push(t),r.sizers.push(fi.createSizer(0)),r.handles.push(this._createHandle()),t.parent=r),r}_fit(){let e=0,t=0;if(this._root){let s=this._root.fit(this._spacing,this._items);e=s.minWidth,t=s.minHeight}let r=this._box=Tt.boxSizing(this.parent.node);e+=r.horizontalSum,t+=r.verticalSum;let n=this.parent.node.style;n.minWidth=`${e}px`,n.minHeight=`${t}px`,this._dirty=!0,this.parent.parent&&oe.sendMessage(this.parent.parent,G.Msg.FitRequest),this._dirty&&oe.sendMessage(this.parent,G.Msg.UpdateRequest)}_update(e,t){if(this._dirty=!1,!this._root)return;e<0&&(e=this.parent.node.offsetWidth),t<0&&(t=this.parent.node.offsetHeight),this._box||(this._box=Tt.boxSizing(this.parent.node));let r=this._box.paddingTop,n=this._box.paddingLeft,s=e-this._box.horizontalSum,o=t-this._box.verticalSum;this._root.update(r,n,s,o,this._spacing,this._items)}_createTabBar(){let e=this.renderer.createTabBar(this._document);return e.orientation="horizontal",this.parent&&this.attachWidget(e),e}_createHandle(){let e=this.renderer.createHandle(),t=e.style;return t.position="absolute",t.contain="strict",t.top="0",t.left="0",t.width="0",t.height="0",this.parent&&this.parent.node.appendChild(e),e}};(function(i){i.GOLDEN_RATIO=.618;function e(f){let m=new yo;return m.sizeHint=f,m.size=f,m}i.createSizer=e;function t(f,m){let b;return f.type==="tab-area"?b=l(f,m):b=u(f,m),b}i.normalizeAreaConfig=t;function r(f,m,b){let y;return f.type==="tab-area"?y=c(f,m,b):y=d(f,m,b),y}i.realizeAreaConfig=r;class n{constructor(m){this.parent=null,this._top=0,this._left=0,this._width=0,this._height=0;let b=new yo,y=new yo;b.stretch=0,y.stretch=1,this.tabBar=m,this.sizers=[b,y]}get top(){return this._top}get left(){return this._left}get width(){return this._width}get height(){return this._height}*iterAllWidgets(){yield this.tabBar,yield*this.iterUserWidgets()}
6177*iterUserWidgets(){for(let m of this.tabBar.titles)yield m.owner}*iterSelectedWidgets(){let m=this.tabBar.currentTitle;m&&(yield m.owner)}*iterTabBars(){yield this.tabBar}*iterHandles(){}findTabNode(m){return this.tabBar.titles.indexOf(m.title)!==-1?this:null}findSplitNode(m){return null}findFirstTabNode(){return this}hitTestTabNodes(m,b){return m<this._left||m>=this._left+this._width||b<this._top||b>=this._top+this._height?null:this}createConfig(){let m=this.tabBar.titles.map(y=>y.owner),b=this.tabBar.currentIndex;return{type:"tab-area",widgets:m,currentIndex:b}}holdAllSizes(){}fit(m,b){let y=0,x=0,M=1/0,T=1/0,E=b.get(this.tabBar),A=this.tabBar.currentTitle,R=A?b.get(A.owner):void 0,[$,v]=this.sizers;return E&&E.fit(),R&&R.fit(),E&&!E.isHidden?(y=Math.max(y,E.minWidth),x+=E.minHeight,$.minSize=E.minHeight,$.maxSize=E.maxHeight):($.minSize=0,$.maxSize=0),R&&!R.isHidden?(y=Math.max(y,R.minWidth),x+=R.minHeight,v.minSize=R.minHeight,v.maxSize=1/0):(v.minSize=0,v.maxSize=1/0),{minWidth:y,minHeight:x,maxWidth:M,maxHeight:T}}update(m,b,y,x,M,T){this._top=b,this._left=m,this._width=y,this._height=x;let E=T.get(this.tabBar),A=this.tabBar.currentTitle,R=A?T.get(A.owner):void 0;if(kn.calc(this.sizers,x),E&&!E.isHidden){let $=this.sizers[0].size;E.update(m,b,y,$),b+=$}if(R&&!R.isHidden){let $=this.sizers[1].size;R.update(m,b,y,$)}}}i.TabLayoutNode=n;class s{constructor(m){this.parent=null,this.normalized=!1,this.children=[],this.sizers=[],this.handles=[],this.orientation=m}*iterAllWidgets(){for(let m of this.children)yield*m.iterAllWidgets()}*iterUserWidgets(){for(let m of this.children)yield*m.iterUserWidgets()}*iterSelectedWidgets(){for(let m of this.children)yield*m.iterSelectedWidgets()}*iterTabBars(){for(let m of this.children)yield*m.iterTabBars()}*iterHandles(){yield*this.handles;for(let m of this.children)yield*m.iterHandles()}findTabNode(m){for(let b=0,y=this.children.length;b<y;++b){let x=this.children[b].findTabNode(m);if(x)return x}return null}findSplitNode(m){let b=this.handles.indexOf(m);if(b!==-1)return{index:b,node:this};for(let y=0,x=this.children.length;y<x;++y){let M=this.children[y].findSplitNode(m);if(M)return M}return null}findFirstTabNode(){return this.children.length===0?null:this.children[0].findFirstTabNode()}hitTestTabNodes(m,b){for(let y=0,x=this.children.length;y<x;++y){let M=this.children[y].hitTestTabNodes(m,b);if(M)return M}return null}createConfig(){let m=this.orientation,b=this.createNormalizedSizes(),y=this.children.map(x=>x.createConfig());return{type:"split-area",orientation:m,children:y,sizes:b}}syncHandles(){this.handles.forEach((m,b)=>{m.setAttribute("data-orientation",this.orientation),b===this.handles.length-1?m.classList.add("lm-mod-hidden"):m.classList.remove("lm-mod-hidden")})}holdSizes(){for(let m of this.sizers)m.sizeHint=m.size}holdAllSizes(){for(let m of this.children)m.holdAllSizes();this.holdSizes()}normalizeSizes(){let m=this.sizers.length;if(m===0)return;this.holdSizes();let b=this.sizers.reduce((y,x)=>y+x.sizeHint,0);if(b===0)for(let y of this.sizers)y.size=y.sizeHint=1/m;else for(let y of this.sizers)y.size=y.sizeHint/=b;this.normalized=!0}createNormalizedSizes(){let m=this.sizers.length;if(m===0)return[];let b=this.sizers.map(x=>x.size),y=b.reduce((x,M)=>x+M,0);if(y===0)for(let x=b.length-1;x>-1;x--)b[x]=1/m;else for(let x=b.length-1;x>-1;x--)b[x]/=y;return b}fit(m,b){let y=this.orientation==="horizontal",x=Math.max(0,this.children.length-1)*m,M=y?x:0,T=y?0:x,E=1/0,A=1/0;for(let R=0,$=this.children.length;R<$;++R){let v=this.children[R].fit(m,b);y?(T=Math.max(T,v.minHeight),M+=v.minWidth,this.sizers[R].minSize=v.minWidth):(M=Math.max(M,v.minWidth),T+=v.minHeight,this.sizers[R].minSize=v.minHeight)}return{minWidth:M,minHeight:T,maxWidth:E,maxHeight:A}}update(m,b,y,x,M,T){let E=this.orientation==="horizontal",A=Math.max(0,this.children.length-1)*M,R=Math.max(0,(E?y:x)-A);if(this.normalized){for(let $ of this.sizers)$.sizeHint*=R;this.normalized=!1}kn.calc(this.sizers,R);for(let $=0,v=this.children.length;$<v;++$){let _=this.children[$],h=this.sizers[$].size,p=this.handles[$].style;E?(_.update(m,b,h,x,M,T),m+=h,p.top=`${b}px`,p.left=`${m}px`,p.width=`${M}px`,p.height=`${x}px`,m+=M):(_.update(m,b,y,h,M,T),b+=h,p.top=`${b}px`,p.left=`${m}px`,p.width=`${y}px`,p.height=`${M}
6177px`,b+=M)}}}i.SplitLayoutNode=s;function o(f,m){f.node.setAttribute("role","tabpanel");let b=m.renderer;if(b instanceof Rl.Renderer){let y=b.createTabKey({title:f.title,current:!1,zIndex:0});f.node.setAttribute("aria-labelledby",y)}}i.addAria=o;function a(f){f.node.removeAttribute("role"),f.node.removeAttribute("aria-labelledby")}i.removeAria=a;function l(f,m){if(f.widgets.length===0)return null;let b=[];for(let x of f.widgets)m.has(x)||(m.add(x),b.push(x));if(b.length===0)return null;let y=f.currentIndex;return y!==-1&&(y<0||y>=b.length)&&(y=0),{type:"tab-area",widgets:b,currentIndex:y}}function u(f,m){let b=f.orientation,y=[],x=[];for(let M=0,T=f.children.length;M<T;++M){let E=t(f.children[M],m);E&&(E.type==="tab-area"||E.orientation!==b?(y.push(E),x.push(Math.abs(f.sizes[M]||0))):(y.push(...E.children),x.push(...E.sizes)))}return y.length===0?null:y.length===1?y[0]:{type:"split-area",orientation:b,children:y,sizes:x}}function c(f,m,b){let y=m.createTabBar(b);for(let x of f.widgets)x.hide(),y.addTab(x.title),i.addAria(x,y);return y.currentIndex=f.currentIndex,new n(y)}function d(f,m,b){let y=new s(f.orientation);return f.children.forEach((x,M)=>{let T=r(x,m,b),E=e(f.sizes[M]),A=m.createHandle();y.children.push(T),y.handles.push(A),y.sizers.push(E),T.parent=y}),y.syncHandles(),y.normalizeSizes(),y}})(fi||(fi={}));Ju=class extends G{constructor(e={}){super(),this._drag=null,this._tabsMovable=!0,this._tabsConstrained=!1,this._addButtonEnabled=!1,this._pressData=null,this._layoutModified=new X(this),this._addRequested=new X(this),this.addClass("lm-DockPanel"),this._document=e.document||document,this._mode=e.mode||"multiple-document",this._renderer=e.renderer||Ju.defaultRenderer,this._edges=e.edges||ri.DEFAULT_EDGES,e.tabsMovable!==void 0&&(this._tabsMovable=e.tabsMovable),e.tabsConstrained!==void 0&&(this._tabsConstrained=e.tabsConstrained),e.addButtonEnabled!==void 0&&(this._addButtonEnabled=e.addButtonEnabled),this.dataset.mode=this._mode;let t={createTabBar:()=>this._createTabBar(),createHandle:()=>this._createHandle()};this.layout=new gS({document:this._document,renderer:t,spacing:e.spacing,hiddenMode:e.hiddenMode}),this.overlay=e.overlay||new Ju.Overlay,this.node.appendChild(this.overlay.node)}dispose(){this._releaseMouse(),this.overlay.hide(0),this._drag&&this._drag.dispose(),super.dispose()}get hiddenMode(){return this.layout.hiddenMode}set hiddenMode(e){this.layout.hiddenMode=e}get layoutModified(){return this._layoutModified}get addRequested(){return this._addRequested}get renderer(){return this.layout.renderer}get spacing(){return this.layout.spacing}set spacing(e){this.layout.spacing=e}get mode(){return this._mode}set mode(e){if(this._mode===e)return;this._mode=e,this.dataset.mode=e;let t=this.layout;switch(e){case"multiple-document":for(let r of t.tabBars())r.show();break;case"single-document":t.restoreLayout(ri.createSingleDocumentConfig(this));break;default:throw"unreachable"}oe.postMessage(this,ri.LayoutModified)}get tabsMovable(){return this._tabsMovable}set tabsMovable(e){this._tabsMovable=e;for(let t of this.tabBars())t.tabsMovable=e}get tabsConstrained(){return this._tabsConstrained}set tabsConstrained(e){this._tabsConstrained=e}get addButtonEnabled(){return this._addButtonEnabled}set addButtonEnabled(e){this._addButtonEnabled=e;for(let t of this.tabBars())t.addButtonEnabled=e}get isEmpty(){return this.layout.isEmpty}*widgets(){yield*this.layout.widgets()}*selectedWidgets(){yield*this.layout.selectedWidgets()}*tabBars(){yield*this.layout.tabBars()}*handles(){yield*this.layout.handles()}selectWidget(e){let t=cS(this.tabBars(),r=>r.titles.indexOf(e.title)!==-1);if(!t)throw new Error("Widget is not contained in the dock panel.");t.currentTitle=e.title}activateWidget(e){this.selectWidget(e),e.activate()}saveLayout(){return this.layout.saveLayout()}restoreLayout(e){this._mode="multiple-document",this.layout.restoreLayout(e),(Wu.IS_EDGE||Wu.IS_IE)&&oe.flush(),oe.postMessage(this,ri.LayoutModified)}addWidget(e,t={}){this._mode==="single-document"?this.layout.addWidget(e):this.layout.addWidget(e,t),oe.postMessage(this,ri.LayoutModified)}processMessage(e){e.type==="layout-modified"?this._layoutModified.emit(void 0):super.processMessage(e)}handleEvent(e){switch(e.type){case"lm-dragenter":this._evtDragEnter(e);break;case"lm-dragleave":this._evtDragLeave(e);break;case"lm-dragover":this._evtDragOver(e);break;case"lm-drop":this._evtDrop(e);break;case"pointerdown":this._evtPointerDown(e);break;case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"keydown":this._evtKeyDown(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("lm-dragenter",this),this.node.addEventListener("lm-dragleave",this),this.node.addEventListener("lm-dragover",this),this.node.addEventListener("lm-drop",this),this.node.addEventListener("pointerdown",this)}onAfterDetach(e){this.node.removeEventListener("lm-dragenter",this),this.node.removeEventListener("lm-dragleave",this),this.node.removeEventListener("lm-dragover",this),this.node.removeEventListener("lm-drop",this),this.node.removeEventListener("pointerdown",this),this._releaseMouse()}onChildAdded(e){ri.isGeneratedTabBarProperty.get(e.child)||e.child.addClass("lm-DockPanel-widget")}onChildRemoved(e){ri.isGeneratedTabBarProperty.get(e.child)||(e.child.removeClass("lm-DockPanel-widget"),oe.postMessage(this,ri.LayoutModified))}_evtDragEnter(e){e.mimeData.hasData("application/vnd.lumino.widget-factory")&&(e.preventDefault(),e.stopPropagation())}_evtDragLeave(e){e.preventDefault(),!(this._tabsConstrained&&e.source!==this)&&(e.stopPropagation(),this.overlay.hide(1))}_evtDragOver(e){e.preventDefault(),this._tabsConstrained&&e.source!==this||this._showOverlay(e.clientX,e.clientY)==="invalid"?e.dropAction="none":(e.stopPropagation(),e.dropAction=e.proposedAction)}_evtDrop(e){if(e.preventDefault(),this.overlay.hide(0),e.proposedAction==="none"){e.dropAction="none";return}let{clientX:t,clientY:r}=e,{zone:n,target:s}=ri.findDropTarget(this,t,r,this._edges);if(this._tabsConstrained&&e.source!==this||n==="invalid"){e.dropAction="none";return}let a=e.mimeData.getData("application/vnd.lumino.widget-factory");if(typeof a!="function"){e.dropAction="none";return}let l=a();if(!(l instanceof G)){e.dropAction="none";return}if(l.contains(this)){e.dropAction="none";return}let u=s?ri.getDropRef(s.tabBar):null;switch(n){case"root-all":this.addWidget(l);break;case"root-top":this.addWidget(l,{mode:"split-top"});break;case"root-left":this.addWidget(l,{mode:"split-left"});break;case"root-right":this.addWidget(l,{mode:"split-right"});break;case"root-bottom":this.addWidget(l,{mode:"split-bottom"});break;case"widget-all":this.addWidget(l,{mode:"tab-after",ref:u});break;case"widget-top":this.addWidget(l,{mode:"split-top",ref:u});break;case"widget-left":this.addWidget(l,{mode:"split-left",ref:u});break;case"widget-right":this.addWidget(l,{mode:"split-right",ref:u});break;case"widget-bottom":this.addWidget(l,{mode:"split-bottom",ref:u});break;case"widget-tab":this.addWidget(l,{mode:"tab-after",ref:u});break;default:throw"unreachable"}e.dropAction=e.proposedAction,e.stopPropagation(),this.activateWidget(l)}
6177_evtKeyDown(e){e.preventDefault(),e.stopPropagation(),e.keyCode===27&&(this._releaseMouse(),oe.postMessage(this,ri.LayoutModified))}_evtPointerDown(e){if(e.button!==0)return;let t=this.layout,r=e.target,n=cS(t.handles(),c=>c.contains(r));if(!n)return;e.preventDefault(),e.stopPropagation(),this._document.addEventListener("keydown",this,!0),this._document.addEventListener("pointerup",this,!0),this._document.addEventListener("pointermove",this,!0),this._document.addEventListener("contextmenu",this,!0);let s=n.getBoundingClientRect(),o=e.clientX-s.left,a=e.clientY-s.top,l=window.getComputedStyle(n),u=gt.overrideCursor(l.cursor,this._document);this._pressData={handle:n,deltaX:o,deltaY:a,override:u}}_evtPointerMove(e){if(!this._pressData)return;e.preventDefault(),e.stopPropagation();let t=this.node.getBoundingClientRect(),r=e.clientX-t.left-this._pressData.deltaX,n=e.clientY-t.top-this._pressData.deltaY;this.layout.moveHandle(this._pressData.handle,r,n)}_evtPointerUp(e){e.button===0&&(e.preventDefault(),e.stopPropagation(),this._releaseMouse(),oe.postMessage(this,ri.LayoutModified))}_releaseMouse(){this._pressData&&(this._pressData.override.dispose(),this._pressData=null,this._document.removeEventListener("keydown",this,!0),this._document.removeEventListener("pointerup",this,!0),this._document.removeEventListener("pointermove",this,!0),this._document.removeEventListener("contextmenu",this,!0))}_showOverlay(e,t){let{zone:r,target:n}=ri.findDropTarget(this,e,t,this._edges);if(r==="invalid")return this.overlay.hide(100),r;let s,o,a,l,u=Tt.boxSizing(this.node),c=this.node.getBoundingClientRect();switch(r){case"root-all":s=u.paddingTop,o=u.paddingLeft,a=u.paddingRight,l=u.paddingBottom;break;case"root-top":s=u.paddingTop,o=u.paddingLeft,a=u.paddingRight,l=c.height*ri.GOLDEN_RATIO;break;case"root-left":s=u.paddingTop,o=u.paddingLeft,a=c.width*ri.GOLDEN_RATIO,l=u.paddingBottom;break;case"root-right":s=u.paddingTop,o=c.width*ri.GOLDEN_RATIO,a=u.paddingRight,l=u.paddingBottom;break;case"root-bottom":s=c.height*ri.GOLDEN_RATIO,o=u.paddingLeft,a=u.paddingRight,l=u.paddingBottom;break;case"widget-all":s=n.top,o=n.left,a=n.right,l=n.bottom;break;case"widget-top":s=n.top,o=n.left,a=n.right,l=n.bottom+n.height/2;break;case"widget-left":s=n.top,o=n.left,a=n.right+n.width/2,l=n.bottom;break;case"widget-right":s=n.top,o=n.left+n.width/2,a=n.right,l=n.bottom;break;case"widget-bottom":s=n.top+n.height/2,o=n.left,a=n.right,l=n.bottom;break;case"widget-tab":{let d=n.tabBar.node.getBoundingClientRect().height;s=n.top,o=n.left,a=n.right,l=n.bottom+n.height-d;break}default:throw"unreachable"}return this.overlay.show({top:s,left:o,right:a,bottom:l}),r}_createTabBar(){let e=this._renderer.createTabBar(this._document);return ri.isGeneratedTabBarProperty.set(e,!0),this._mode==="single-document"&&e.hide(),e.tabsMovable=this._tabsMovable,e.allowDeselect=!1,e.addButtonEnabled=this._addButtonEnabled,e.removeBehavior="select-previous-tab",e.insertBehavior="select-tab-if-needed",e.tabMoved.connect(this._onTabMoved,this),e.currentChanged.connect(this._onCurrentChanged,this),e.tabCloseRequested.connect(this._onTabCloseRequested,this),e.tabDetachRequested.connect(this._onTabDetachRequested,this),e.tabActivateRequested.connect(this._onTabActivateRequested,this),e.addRequested.connect(this._onTabAddRequested,this),e}_createHandle(){return this._renderer.createHandle()}_onTabMoved(){oe.postMessage(this,ri.LayoutModified)}_onCurrentChanged(e,t){let{previousTitle:r,currentTitle:n}=t;r&&r.owner.hide(),n&&n.owner.show(),(Wu.IS_EDGE||Wu.IS_IE)&&oe.flush(),oe.postMessage(this,ri.LayoutModified)}_onTabAddRequested(e){this._addRequested.emit(e)}_onTabActivateRequested(e,t){t.title.owner.activate()}_onTabCloseRequested(e,t){t.title.owner.close()}_onTabDetachRequested(e,t){if(this._drag)return;e.releaseMouse();let{title:r,tab:n,clientX:s,clientY:o,offset:a}=t,l=new _a.MimeData,u=()=>r.owner;l.setData("application/vnd.lumino.widget-factory",u);let c=n.cloneNode(!0);a&&(c.style.top=`-${a.y}px`,c.style.left=`-${a.x}px`),this._drag=new gt({document:this._document,mimeData:l,dragImage:c,proposedAction:"move",supportedActions:"move",source:this}),n.classList.add("lm-mod-hidden");let d=()=>{this._drag=null,n.classList.remove("lm-mod-hidden")};this._drag.start(s,o).then(d)}};(function(i){class e{constructor(){this._timer=-1,this._hidden=!0,this.node=document.createElement("div"),this.node.classList.add("lm-DockPanel-overlay"),this.node.classList.add("lm-mod-hidden"),this.node.style.position="absolute",this.node.style.contain="strict"}show(n){let s=this.node.style;s.top=`${n.top}px`,s.left=`${n.left}px`,s.right=`${n.right}px`,s.bottom=`${n.bottom}px`,clearTimeout(this._timer),this._timer=-1,this._hidden&&(this._hidden=!1,this.node.classList.remove("lm-mod-hidden"))}hide(n){if(!this._hidden){if(n<=0){clearTimeout(this._timer),this._timer=-1,this._hidden=!0,this.node.classList.add("lm-mod-hidden");return}this._timer===-1&&(this._timer=window.setTimeout(()=>{this._timer=-1,this._hidden=!0,this.node.classList.add("lm-mod-hidden")},n))}}}i.Overlay=e;class t{createTabBar(n){let s=new Rl({document:n});return s.addClass("lm-DockPanel-tabBar"),s}createHandle(){let n=document.createElement("div");return n.className="lm-DockPanel-handle",n}}i.Renderer=t,i.defaultRenderer=new t})(Ju||(Ju={}));(function(i){i.GOLDEN_RATIO=.618,i.DEFAULT_EDGES={top:12,right:40,bottom:40,left:40},i.LayoutModified=new Al("layout-modified"),i.isGeneratedTabBarProperty=new Ge({
6177name:"isGeneratedTabBar",create:()=>!1});function e(n){if(n.isEmpty)return{main:null};let s=Array.from(n.widgets()),o=n.selectedWidgets().next().value,a=o?s.indexOf(o):-1;return{main:{type:"tab-area",widgets:s,currentIndex:a}}}i.createSingleDocumentConfig=e;function t(n,s,o,a){if(!Tt.hitTest(n.node,s,o))return{zone:"invalid",target:null};let l=n.layout;if(l.isEmpty)return{zone:"root-all",target:null};if(n.mode==="multiple-document"){let E=n.node.getBoundingClientRect(),A=s-E.left+1,R=o-E.top+1,$=E.right-s,v=E.bottom-o;switch(Math.min(R,$,v,A)){case R:if(R<a.top)return{zone:"root-top",target:null};break;case $:if($<a.right)return{zone:"root-right",target:null};break;case v:if(v<a.bottom)return{zone:"root-bottom",target:null};break;case A:if(A<a.left)return{zone:"root-left",target:null};break;default:throw"unreachable"}}let u=l.hitTestTabAreas(s,o);if(!u)return{zone:"invalid",target:null};if(n.mode==="single-document")return{zone:"widget-all",target:u};let c=u.x-u.left+1,d=u.y-u.top+1,f=u.left+u.width-u.x,m=u.top+u.height-u.y,b=u.tabBar.node.getBoundingClientRect().height;if(d<b)return{zone:"widget-tab",target:u};let y=Math.round(u.width/3),x=Math.round(u.height/3);if(c>y&&f>y&&d>x&&m>x)return{zone:"widget-all",target:u};c/=y,d/=x,f/=y,m/=x;let M=Math.min(c,d,f,m),T;switch(M){case c:T="widget-left";break;case d:T="widget-top";break;case f:T="widget-right";break;case m:T="widget-bottom";break;default:throw"unreachable"}return{zone:T,target:u}}i.findDropTarget=t;function r(n){return n.titles.length===0?null:n.currentTitle?n.currentTitle.owner:n.titles[n.titles.length-1].owner}i.getDropRef=r})(ri||(ri={}));va=class extends wo{constructor(e={}){super(e),this._dirty=!1,this._rowSpacing=4,this._columnSpacing=4,this._items=[],this._rowStarts=[],this._columnStarts=[],this._rowSizers=[new yo],this._columnSizers=[new yo],this._box=null,e.rowCount!==void 0&&Fi.reallocSizers(this._rowSizers,e.rowCount),e.columnCount!==void 0&&Fi.reallocSizers(this._columnSizers,e.columnCount),e.rowSpacing!==void 0&&(this._rowSpacing=Fi.clampValue(e.rowSpacing)),e.columnSpacing!==void 0&&(this._columnSpacing=Fi.clampValue(e.columnSpacing))}dispose(){for(let e of this._items){let t=e.widget;e.dispose(),t.dispose()}this._box=null,this._items.length=0,this._rowStarts.length=0,this._rowSizers.length=0,this._columnStarts.length=0,this._columnSizers.length=0,super.dispose()}get rowCount(){return this._rowSizers.length}set rowCount(e){e!==this.rowCount&&(Fi.reallocSizers(this._rowSizers,e),this.parent&&this.parent.fit())}get columnCount(){return this._columnSizers.length}set columnCount(e){e!==this.columnCount&&(Fi.reallocSizers(this._columnSizers,e),this.parent&&this.parent.fit())}get rowSpacing(){return this._rowSpacing}set rowSpacing(e){e=Fi.clampValue(e),this._rowSpacing!==e&&(this._rowSpacing=e,this.parent&&this.parent.fit())}get columnSpacing(){return this._columnSpacing}set columnSpacing(e){e=Fi.clampValue(e),this._columnSpacing!==e&&(this._columnSpacing=e,this.parent&&this.parent.fit())}rowStretch(e){let t=this._rowSizers[e];return t?t.stretch:-1}setRowStretch(e,t){let r=this._rowSizers[e];r&&(t=Fi.clampValue(t),r.stretch!==t&&(r.stretch=t,this.parent&&this.parent.update()))}columnStretch(e){let t=this._columnSizers[e];return t?t.stretch:-1}setColumnStretch(e,t){let r=this._columnSizers[e];r&&(t=Fi.clampValue(t),r.stretch!==t&&(r.stretch=t,this.parent&&this.parent.update()))}*[Symbol.iterator](){for(let e of this._items)yield e.widget}addWidget(e){de.findFirstIndex(this._items,r=>r.widget===e)===-1&&(this._items.push(new Yu(e)),this.parent&&this.attachWidget(e))}removeWidget(e){let t=de.findFirstIndex(this._items,n=>n.widget===e);if(t===-1)return;let r=de.removeAt(this._items,t);this.parent&&this.detachWidget(e),r.dispose()}init(){super.init();for(let e of this)this.attachWidget(e)}attachWidget(e){this.parent.isAttached&&oe.sendMessage(e,G.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&oe.sendMessage(e,G.Msg.AfterAttach),this.parent.fit()}detachWidget(e){this.parent.isAttached&&oe.sendMessage(e,G.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&oe.sendMessage(e,G.Msg.AfterDetach),this.parent.fit()}
6177onBeforeShow(e){super.onBeforeShow(e),this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e),this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){this.parent.isVisible&&this._update(e.width,e.height)}onUpdateRequest(e){this.parent.isVisible&&this._update(-1,-1)}onFitRequest(e){this.parent.isAttached&&this._fit()}_fit(){for(let l=0,u=this.rowCount;l<u;++l)this._rowSizers[l].minSize=0;for(let l=0,u=this.columnCount;l<u;++l)this._columnSizers[l].minSize=0;let e=this._items.filter(l=>!l.isHidden);for(let l=0,u=e.length;l<u;++l)e[l].fit();let t=this.rowCount-1,r=this.columnCount-1;e.sort(Fi.rowSpanCmp);for(let l=0,u=e.length;l<u;++l){let c=e[l],d=va.getCellConfig(c.widget),f=Math.min(d.row,t),m=Math.min(d.row+d.rowSpan-1,t);Fi.distributeMin(this._rowSizers,f,m,c.minHeight)}e.sort(Fi.columnSpanCmp);for(let l=0,u=e.length;l<u;++l){let c=e[l],d=va.getCellConfig(c.widget),f=Math.min(d.column,r),m=Math.min(d.column+d.columnSpan-1,r);Fi.distributeMin(this._columnSizers,f,m,c.minWidth)}if(this.fitPolicy==="set-no-constraint"){oe.sendMessage(this.parent,G.Msg.UpdateRequest);return}let n=t*this._rowSpacing,s=r*this._columnSpacing;for(let l=0,u=this.rowCount;l<u;++l)n+=this._rowSizers[l].minSize;for(let l=0,u=this.columnCount;l<u;++l)s+=this._columnSizers[l].minSize;let o=this._box=Tt.boxSizing(this.parent.node);s+=o.horizontalSum,n+=o.verticalSum;let a=this.parent.node.style;a.minWidth=`${s}px`,a.minHeight=`${n}px`,this._dirty=!0,this.parent.parent&&oe.sendMessage(this.parent.parent,G.Msg.FitRequest),this._dirty&&oe.sendMessage(this.parent,G.Msg.UpdateRequest)}_update(e,t){this._dirty=!1,e<0&&(e=this.parent.node.offsetWidth),t<0&&(t=this.parent.node.offsetHeight),this._box||(this._box=Tt.boxSizing(this.parent.node));let r=this._box.paddingTop,n=this._box.paddingLeft,s=e-this._box.horizontalSum,o=t-this._box.verticalSum,a=this.rowCount-1,l=this.columnCount-1,u=a*this._rowSpacing,c=l*this._columnSpacing;kn.calc(this._rowSizers,Math.max(0,o-u)),kn.calc(this._columnSizers,Math.max(0,s-c));for(let d=0,f=r,m=this.rowCount;d<m;++d)this._rowStarts[d]=f,f+=this._rowSizers[d].size+this._rowSpacing;for(let d=0,f=n,m=this.columnCount;d<m;++d)this._columnStarts[d]=f,f+=this._columnSizers[d].size+this._columnSpacing;for(let d=0,f=this._items.length;d<f;++d){let m=this._items[d];if(m.isHidden)continue;let b=va.getCellConfig(m.widget),y=Math.min(b.row,a),x=Math.min(b.column,l),M=Math.min(b.row+b.rowSpan-1,a),T=Math.min(b.column+b.columnSpan-1,l),E=this._columnStarts[x],A=this._rowStarts[y],R=this._columnStarts[T]+this._columnSizers[T].size-E,$=this._rowStarts[M]+this._rowSizers[M].size-A;m.update(E,A,R,$)}}};(function(i){function e(r){return Fi.cellConfigProperty.get(r)}i.getCellConfig=e;function t(r,n){Fi.cellConfigProperty.set(r,Fi.normalizeConfig(n))}i.setCellConfig=t})(va||(va={}));(function(i){i.cellConfigProperty=new Ge({name:"cellConfig",create:()=>({row:0,column:0,rowSpan:1,columnSpan:1}),changed:a});function e(l){let u=Math.max(0,Math.floor(l.row||0)),c=Math.max(0,Math.floor(l.column||0)),d=Math.max(1,Math.floor(l.rowSpan||0)),f=Math.max(1,Math.floor(l.columnSpan||0));return{row:u,column:c,rowSpan:d,columnSpan:f}}i.normalizeConfig=e;function t(l){return Math.max(0,Math.floor(l))}i.clampValue=t;function r(l,u){let c=i.cellConfigProperty.get(l.widget),d=i.cellConfigProperty.get(u.widget);return c.rowSpan-d.rowSpan}i.rowSpanCmp=r;function n(l,u){let c=i.cellConfigProperty.get(l.widget),d=i.cellConfigProperty.get(u.widget);return c.columnSpan-d.columnSpan}i.columnSpanCmp=n;function s(l,u){for(u=Math.max(1,Math.floor(u));l.length<u;)l.push(new yo);l.length>u&&(l.length=u)}i.reallocSizers=s;function o(l,u,c,d){if(c<u)return;if(u===c){let b=l[u];b.minSize=Math.max(b.minSize,d);return}let f=0;for(let b=u;b<=c;++b)f+=l[b].minSize;if(f>=d)return;let m=(d-f)/(c-u+1);for(let b=u;b<=c;++b)l[b].minSize+=m}i.distributeMin=o;function a(l){l.parent&&l.parent.layout instanceof va&&l.parent.fit()}})(Fi||(Fi={}));Xd=class extends G{constructor(e={}){super({node:Qb.createNode()}),this._activeIndex=-1,this._tabFocusIndex=0,this._menus=[],this._childMenu=null,this._overflowMenu=null,this._menuItemSizes=[],this._overflowIndex=-1,this.addClass("lm-MenuBar"),this.setFlag(G.Flag.DisallowLayout),this.renderer=e.renderer||Xd.defaultRenderer,this._forceItemsPosition=e.forceItemsPosition||{forceX:!0,forceY:!0},this._overflowMenuOptions=e.overflowMenuOptions||{isVisible:!0}}dispose(){this._closeChildMenu(),this._menus.length=0,super.dispose()}get childMenu(){return this._childMenu}get overflowIndex(){return this._overflowIndex}get overflowMenu(){return this._overflowMenu}get contentNode(){return this.node.getElementsByClassName("lm-MenuBar-content")[0]}get activeMenu(){return this._menus[this._activeIndex]||null}set activeMenu(e){this.activeIndex=e?this._menus.indexOf(e):-1}get activeIndex(){return this._activeIndex}set activeIndex(e){(e<0||e>=this._menus.length)&&(e=-1),e>-1&&this._menus[e].items.length===0&&(e=-1),this._activeIndex!==e&&(this._activeIndex=e,this.update())}get menus(){return this._menus}openActiveMenu(){this._activeIndex!==-1&&(this._openChildMenu(),this._childMenu&&(this._childMenu.activeIndex=-1,this._childMenu.activateNextItem()))}addMenu(e,t=!0){this.insertMenu(this._menus.length,e,t)}insertMenu(e,t,r=!0){this._closeChildMenu();let n=this._menus.indexOf(t),s=Math.max(0,Math.min(e,this._menus.length));if(n===-1){de.insert(this._menus,s,t),t.addClass("lm-MenuBar-menu"),t.aboutToClose.connect(this._onMenuAboutToClose,this),t.menuRequested.connect(this._onMenuMenuRequested,this),t.title.changed.connect(this._onTitleChanged,this),r&&this.update();return}s===this._menus.length&&s--,n!==s&&(de.move(this._menus,n,s),r&&this.update())}removeMenu(e,t=!0){this.removeMenuAt(this._menus.indexOf(e),t)}removeMenuAt(e,t=!0){this._closeChildMenu();let r=de.removeAt(this._menus,e);r&&(r.aboutToClose.disconnect(this._onMenuAboutToClose,this),r.menuRequested.disconnect(this._onMenuMenuRequested,this),r.title.changed.disconnect(this._onTitleChanged,this),r.removeClass("lm-MenuBar-menu"),t&&this.update())}clearMenus(){if(this._menus.length!==0){this._closeChildMenu();for(let e of this._menus)e.aboutToClose.disconnect(this._onMenuAboutToClose,this),e.menuRequested.disconnect(this._onMenuMenuRequested,this),e.t
6177itle.changed.disconnect(this._onTitleChanged,this),e.removeClass("lm-MenuBar-menu");this._menus.length=0,this.update()}}handleEvent(e){switch(e.type){case"keydown":this._evtKeyDown(e);break;case"mousedown":this._evtMouseDown(e);break;case"mousemove":this._evtMouseMove(e);break;case"focusout":this._evtFocusOut(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("keydown",this),this.node.addEventListener("mousedown",this),this.node.addEventListener("mousemove",this),this.node.addEventListener("focusout",this),this.node.addEventListener("contextmenu",this)}onAfterDetach(e){this.node.removeEventListener("keydown",this),this.node.removeEventListener("mousedown",this),this.node.removeEventListener("mousemove",this),this.node.removeEventListener("focusout",this),this.node.removeEventListener("contextmenu",this),this._closeChildMenu()}onActivateRequest(e){this.isAttached&&this._focusItemAt(0)}onResize(e){this.update(),super.onResize(e)}onUpdateRequest(e){var t;let r=this._menus,n=this.renderer,s=this._activeIndex,o=this._tabFocusIndex>=0&&this._tabFocusIndex<r.length?this._tabFocusIndex:0,a=this._overflowIndex>-1?this._overflowIndex:r.length,l=0,u=!1;a=this._overflowMenu!==null?a-1:a;let c=new Array(a);for(let d=0;d<a;++d)c[d]=n.renderItem({title:r[d].title,active:d===s,tabbable:d===o,disabled:r[d].items.length===0,onfocus:()=>{this._tabFocusIndex=d,this.activeIndex=d}}),l+=this._menuItemSizes[d],r[d].title.label===this._overflowMenuOptions.title&&(u=!0,a--);if(this._overflowMenuOptions.isVisible){if(this._overflowIndex>-1&&!u){if(this._overflowMenu===null){let d=(t=this._overflowMenuOptions.title)!==null&&t!==void 0?t:"...";this._overflowMenu=new xo({commands:new Jt}),this._overflowMenu.title.label=d,this._overflowMenu.title.mnemonic=0,this.addMenu(this._overflowMenu,!1)}for(let d=r.length-2;d>=a;d--){let f=this.menus[d];f.title.mnemonic=0,this._overflowMenu.insertItem(0,{type:"submenu",submenu:f}),this.removeMenu(f,!1)}c[a]=n.renderItem({title:this._overflowMenu.title,active:a===s&&r[a].items.length!==0,tabbable:a===o,disabled:r[a].items.length===0,onfocus:()=>{this._tabFocusIndex=a,this.activeIndex=a}}),a++}else if(this._overflowMenu!==null){let d=this._overflowMenu.items,f=this.node.offsetWidth,m=this._overflowMenu.items.length;for(let b=0;b<m;++b){let y=r.length-1-b;if(f-l>this._menuItemSizes[y]){let x=d[0].submenu;this._overflowMenu.removeItemAt(0),this.insertMenu(a,x,!1),c[a]=n.renderItem({title:x.title,active:!1,tabbable:a===o,disabled:r[a].items.length===0,onfocus:()=>{this._tabFocusIndex=a,this.activeIndex=a}}),a++}}this._overflowMenu.items.length===0&&(this.removeMenu(this._overflowMenu,!1),c.pop(),this._overflowMenu=null,this._overflowIndex=-1)}}Wt.render(c,this.contentNode),this._updateOverflowIndex()}_updateOverflowIndex(){if(!this._overflowMenuOptions.isVisible)return;let e=this.contentNode.childNodes,t=this.node.offsetWidth,r=0,n=-1,s=e.length;if(this._menuItemSizes.length==0)for(let o=0;o<s;o++){let a=e[o];r+=a.offsetWidth,this._menuItemSizes.push(a.offsetWidth),r>t&&n===-1&&(n=o)}else for(let o=0;o<this._menuItemSizes.length;o++)if(r+=this._menuItemSizes[o],r>t){n=o;break}this._overflowIndex=n}_evtKeyDown(e){let t=e.keyCode;if(t===9){this.activeIndex=-1;return}if(e.preventDefault(),e.stopPropagation(),t===13||t===32||t===38||t===40){if(this.activeIndex=this._tabFocusIndex,this.activeIndex!==this._tabFocusIndex)return;this.openActiveMenu();return}if(t===27){this._closeChildMenu(),this._focusItemAt(this.activeIndex);return}if(t===37||t===39){let o=t===37?-1:1,a=this._tabFocusIndex+o,l=this._menus.length;for(let u=0;u<l;u++){let c=(l+a+o*u)%l;if(this._menus[c].items.length){this._focusItemAt(c);return}}return}let r=Bn().keyForKeydownEvent(e);if(!r)return;let n=this._activeIndex+1,s=Qb.findMnemonic(this._menus,r,n);s.index!==-1&&!s.multiple?(this.activeIndex=s.index,this.openActiveMenu()):s.index!==-1?(this.activeIndex=s.index,this._focusItemAt(this.activeIndex)):s.auto!==-1&&(this.activeIndex=s.auto,this._focusItemAt(this.activeIndex))}_evtMouseDown(e){if(!Tt.hitTest(this.node,e.clientX,e.clientY))return;e.stopPropagation(),e.stopImmediatePropagation();let t=de.findFirstIndex(this.contentNode.children,r=>Tt.hitTest(r,e.clientX,e.clientY));if(t===-1){this._closeChildMenu();return}if(e.button===0)if(this._childMenu)this._closeChildMenu(),this.activeIndex=t;else{e.preventDefault();let r=this._positionForMenu(t);xo.saveWindowData(),this.activeIndex=t,this._openChildMenu(r)}}_evtMouseMove(e){let t=de.findFirstIndex(this.contentNode.children,n=>Tt.hitTest(n,e.clientX,e.clientY));if(t===this._activeIndex||t===-1&&this._childMenu)return;let r=t>=0&&this._childMenu?this._positionForMenu(t):null;xo.saveWindowData(),this.activeIndex=t,r&&this._openChildMenu(r)}_positionForMenu(e){let t=this.contentNode.children[e],{left:r,bottom:n}=t.getBoundingClientRect();return{top:n,left:r}}_evtFocusOut(e){!this._childMenu&&!this.node.contains(e.relatedTarget)&&(this.activeIndex=-1)}_focusItemAt(e){let t=this.contentNode.childNodes[e];t&&t.focus()}_openChildMenu(e={}){let t=this.activeMenu;if(!t){this._closeChildMenu();return}let r=this._childMenu;if(r===t)return;this._childMenu=t,r?r.close():document.addEventListener("mousedown",this,
6177!0),this._tabFocusIndex=this.activeIndex,oe.sendMessage(this,G.Msg.UpdateRequest);let{left:n,top:s}=e;(typeof n>"u"||typeof s>"u")&&({left:n,top:s}=this._positionForMenu(this._activeIndex)),r||this.addClass("lm-mod-active"),t.items.length>0&&t.open(n,s,this._forceItemsPosition)}_closeChildMenu(){if(!this._childMenu)return;this.removeClass("lm-mod-active"),document.removeEventListener("mousedown",this,!0);let e=this._childMenu;this._childMenu=null,e.close(),this.activeIndex=-1}_onMenuAboutToClose(e){e===this._childMenu&&(this.removeClass("lm-mod-active"),document.removeEventListener("mousedown",this,!0),this._childMenu=null,this.activeIndex=-1)}_onMenuMenuRequested(e,t){if(e!==this._childMenu)return;let r=this._activeIndex,n=this._menus.length;switch(t){case"next":this.activeIndex=r===n-1?0:r+1;break;case"previous":this.activeIndex=r===0?n-1:r-1;break}this.openActiveMenu()}_onTitleChanged(){this.update()}};(function(i){class e{renderItem(r){let n=this.createItemClass(r),s=this.createItemDataset(r),o=this.createItemARIA(r);return ne.li({className:n,dataset:s,...r.disabled?{}:{tabindex:r.tabbable?"0":"-1"},onfocus:r.onfocus,...o},this.renderIcon(r),this.renderLabel(r))}renderIcon(r){let n=this.createIconClass(r);return ne.div({className:n},r.title.icon,r.title.iconLabel)}renderLabel(r){let n=this.formatLabel(r);return ne.div({className:"lm-MenuBar-itemLabel"},n)}createItemClass(r){let n="lm-MenuBar-item";return r.title.className&&(n+=` ${r.title.className}`),r.active&&!r.disabled&&(n+=" lm-mod-active"),n}createItemDataset(r){return r.title.dataset}createItemARIA(r){return{role:"menuitem","aria-haspopup":"true","aria-disabled":r.disabled?"true":"false"}}createIconClass(r){let n="lm-MenuBar-itemIcon",s=r.title.iconClass;return s?`${n} ${s}`:n}formatLabel(r){let{label:n,mnemonic:s}=r.title;if(s<0||s>=n.length)return n;let o=n.slice(0,s),a=n.slice(s+1),l=n[s],u=ne.span({className:"lm-MenuBar-itemMnemonic"},l);return[o,u,a]}}i.Renderer=e,i.defaultRenderer=new e})(Xd||(Xd={}));(function(i){function e(){let r=document.createElement("div"),n=document.createElement("ul");return n.className="lm-MenuBar-content",r.appendChild(n),n.setAttribute("role","menubar"),r}i.createNode=e;function t(r,n,s){let o=-1,a=-1,l=!1,u=n.toUpperCase();for(let c=0,d=r.length;c<d;++c){let f=(c+s)%d,m=r[f].title;if(m.label.length===0)continue;let b=m.mnemonic;if(b>=0&&b<m.label.length){m.label[b].toUpperCase()===u&&(o===-1?o=f:l=!0);continue}a===-1&&m.label[0].toUpperCase()===u&&(a=f)}return{index:o,multiple:l,auto:a}}i.findMnemonic=t})(Qb||(Qb={}));(function(i){function e(){let r=document.createElement("div"),n=document.createElement("div"),s=document.createElement("div"),o=document.createElement("div"),a=document.createElement("div");return n.className="lm-ScrollBar-button",s.className="lm-ScrollBar-button",n.dataset.action="decrement",s.dataset.action="increment",o.className="lm-ScrollBar-track",a.className="lm-ScrollBar-thumb",o.appendChild(a),r.appendChild(n),r.appendChild(o),r.appendChild(s),r}i.createNode=e;function t(r,n){return r.thumbNode.contains(n)?"thumb":r.trackNode.contains(n)?"track":r.decrementNode.contains(n)?"decrement":r.incrementNode.contains(n)?"increment":null}i.findPart=t})(oJ||(oJ={}));aJ=class extends wo{constructor(){super(...arguments),this._widget=null}dispose(){if(this._widget){let e=this._widget;this._widget=null,e.dispose()}super.dispose()}get widget(){return this._widget}set widget(e){e&&(e.parent=this.parent),this._widget!==e&&(this._widget&&this._widget.dispose(),this._widget=e,this.parent&&e&&this.attachWidget(e))}*[Symbol.iterator](){this._widget&&(yield this._widget)}removeWidget(e){this._widget===e&&(this._widget=null,this.parent&&this.detachWidget(e))}init(){super.init();for(let e of this)this.attachWidget(e)}attachWidget(e){this.parent.isAttached&&oe.sendMessage(e,G.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&oe.sendMessage(e,G.Msg.AfterAttach)}detachWidget(e){this.parent.isAttached&&oe.sendMessage(e,G.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&oe.sendMessage(e,G.Msg.AfterDetach)}},bS=class extends ya{constructor(e={}){super(e),this._dirty=!1,this._items=[],this._box=null,this._hiddenMode=e.hiddenMode!==void 0?e.hiddenMode:G.HiddenMode.Display}get hiddenMode(){return this._hiddenMode}set hiddenMode(e){this._hiddenMode!==e&&(this._hiddenMode=e,this.widgets.length>
61771&&this.widgets.forEach(t=>{t.hiddenMode=this._hiddenMode}))}dispose(){for(let e of this._items)e.dispose();this._box=null,this._items.length=0,super.dispose()}attachWidget(e,t){this._hiddenMode===G.HiddenMode.Scale&&this._items.length>0?(this._items.length===1&&(this.widgets[0].hiddenMode=G.HiddenMode.Scale),t.hiddenMode=G.HiddenMode.Scale):t.hiddenMode=G.HiddenMode.Display,de.insert(this._items,e,new Yu(t)),this.parent.isAttached&&oe.sendMessage(t,G.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.isAttached&&oe.sendMessage(t,G.Msg.AfterAttach),this.parent.fit()}moveWidget(e,t,r){de.move(this._items,e,t),this.parent.update()}detachWidget(e,t){let r=de.removeAt(this._items,e);this.parent.isAttached&&oe.sendMessage(t,G.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&oe.sendMessage(t,G.Msg.AfterDetach),r.widget.node.style.zIndex="",this._hiddenMode===G.HiddenMode.Scale&&(t.hiddenMode=G.HiddenMode.Display,this._items.length===1&&(this._items[0].widget.hiddenMode=G.HiddenMode.Display)),r.dispose(),this.parent.fit()}onBeforeShow(e){super.onBeforeShow(e),this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e),this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){this.parent.isVisible&&this._update(e.width,e.height)}onUpdateRequest(e){this.parent.isVisible&&this._update(-1,-1)}onFitRequest(e){this.parent.isAttached&&this._fit()}_fit(){let e=0,t=0;for(let s=0,o=this._items.length;s<o;++s){let a=this._items[s];a.isHidden||(a.fit(),e=Math.max(e,a.minWidth),t=Math.max(t,a.minHeight))}let r=this._box=Tt.boxSizing(this.parent.node);e+=r.horizontalSum,t+=r.verticalSum;let n=this.parent.node.style;n.minWidth=`${e}px`,n.minHeight=`${t}px`,this._dirty=!0,this.parent.parent&&oe.sendMessage(this.parent.parent,G.Msg.FitRequest),this._dirty&&oe.sendMessage(this.parent,G.Msg.UpdateRequest)}_update(e,t){this._dirty=!1;let r=0;for(let l=0,u=this._items.length;l<u;++l)r+=+!this._items[l].isHidden;if(r===0)return;e<0&&(e=this.parent.node.offsetWidth),t<0&&(t=this.parent.node.offsetHeight),this._box||(this._box=Tt.boxSizing(this.parent.node));let n=this._box.paddingTop,s=this._box.paddingLeft,o=e-this._box.horizontalSum,a=t-this._box.verticalSum;for(let l=0,u=this._items.length;l<u;++l){let c=this._items[l];c.isHidden||(c.widget.node.style.zIndex=`${l}`,c.update(s,n,o,a))}}};(function(i){function e(t){return t.layout||new bS}i.createLayout=e})(lJ||(lJ={}));(function(i){function e(s){return r[s]}i.orientationFromPlacement=e;function t(s){return n[s]}i.directionFromPlacement=t;let r={top:"horizontal",left:"vertical",right:"vertical",bottom:"horizontal"},n={top:"top-to-bottom",left:"left-to-right",right:"right-to-left",bottom:"bottom-to-top"}})(uJ||(uJ={}))});function DCt(i){let e=new _S(i);return i.startHidden||e.launch(),e}var _S,cJ=w(()=>{fa();vS();_S=class extends G{constructor(e){super(),this._body=e.body,this._body.addClass("jp-StatusBar-HoverItem"),this._anchor=e.anchor,this._align=e.align,e.hasDynamicSize&&(this._observer=new ResizeObserver(()=>{this.update()})),(this.layout=new ya).addWidget(e.body),this._body.node.addEventListener("resize",()=>{this.update()})}launch(){this._setGeometry(),G.attach(this,document.body),this.update(),this._anchor.addClass("jp-mod-clicked"),this._anchor.removeClass("jp-mod-highlight")}onUpdateRequest(e){this._setGeometry(),super.onUpdateRequest(e)}onAfterAttach(e){var t;document.addEventListener("click",this,!1),this.node.addEventListener("keydown",this,!1),window.addEventListener("resize",this,!1),(t=this._observer)===null||t===void 0||t.observe(this._body.node)}onBeforeDetach(e){var t;(t=this._observer)===null||t===void 0||t.disconnect(),document.removeEventListener("click",this,!1),this.node.removeEventListener("keydown",this,!1),window.removeEventListener("resize",this,!1)}onResize(){this.update()}dispose(){var e;(e=this._observer)===null||e===void 0||e.disconnect(),super.dispose(),this._anchor.removeClass("jp-mod-clicked"),this._anchor.addClass("jp-mod-highlight")}handleEvent(e){switch(e.type){case"keydown":this._evtKeydown(e);break;case"click":this._evtClick(e);break;case"resize":this.onResize();break;default:break}}_evtClick(e){e.target&&!(this._body.node.contains(e.target)||this._anchor.node.contains(e.target))&&this.dispose()}_evtKeydown(e){switch(e.keyCode){case 27:e.stopPropagation(),e.preventDefault(),this.dispose();break;default:break}}_setGeometry(){let e=0,t=this._anchor.node.getBoundingClientRect(),r=this._body.node.getBoundingClientRect();this._align==="right"&&(e=-(r.width-t.width));let n=window.getComputedStyle(this._body.node);Hb.setGeometry({anchor:t,host:document.body,maxHeight:500,minHeight:20,node:this._body.node,offset:{horizontal:e},privilege:"forceAbove",style:n})}}});function $p(i){let{title:e,source:t,className:r,...n}=i;return dJ.createElement("span",{className:`jp-StatusBar-TextItem ${r}`,title:e,...n},t)}var dJ,hJ=w(()=>{dJ=z(Je())});function ev(i){let{spacing:e,children:t,className:r,...n}=i,s=Dl.Children.count(t);return Dl.createElement("div",{className:`jp-StatusBar-GroupItem ${r||""}`,...n},Dl.Children.map(t,(o,a)=>a===0?Dl.createElement("div",{style:{marginRight:`${e}px`}},o):a===s-1?Dl.createElement("div",{style:{marginLeft:`${e}px`}},o):Dl.createElement("div",{style:{margin:`0px ${e}px`}},o)))}var Dl,fJ=w(()=>{Dl=z(Je())});var O5e,pJ=w(()=>{O5e=z(Je())});var L5e,mJ=w(()=>{L5e=z(Je())});var gJ=w(()=>{fJ();cJ();pJ();hJ();mJ()});var bJ,vJ=w(()=>{Yb();Fn();vS();(function(i){i.statusItemDefaults={align:"left",rank:0,priority:0,isActive:()=>!0,activeStateChanged:void 0}})(bJ||(bJ={}))});var _J,KCt,yJ=w(()=>{_J=z(Ze()),KCt=new _J.Token("@jupyterlab/statusbar:IStatusBar","A service for the status bar on the application. Use this if you want to add new status bar items.")});var yS=w(()=>{gJ();vJ();yJ()});function*Zd(){}function Qd(i,e){let t=0;for(let r of i)if(e(r,t++))return r}function wJ(i,e){let t;for(let r of i){if(t===void 0){t=r;continue}e(r,t)>0&&(t=r)}return t}function SJ(i,e){let t=0;for(let r of i)if(e(r,t++)===!1)return!1;return!0}function CJ(i,e){let t=0;for(let r of i)if(e(r,t++))return!0;return!1}function*IJ(i){if(typeof i.retro=="function")yield*i.retro();else for(let e=i.length-1;e>-1;e--)yield i[e]}var ae,xJ,Jd,Zu=w(()=>{(function(i){function e(v,_,h=0,p=-1){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;p<h?C=p+1+(g-h):C=p-h+1;for(let I=0;I<C;++I){let F=(h+I)%g;if(v[F]===_)return F}return-1}i.firstIndexOf=e;function t(v,_,h=-1,p=0){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;h<p?C=h+1+(g-p):C=h-p+1;for(let I=0;I<C;++I){let F=(h-I+g)%g;if(v[F]===_)return F}return-1}i.lastIndexOf=t;function r(v,_,h=0,p=-1){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;p<h?C=p+1+(g-h):C=p-h+1;for(let I=0;I<C;++I){let F=(h+I)%g;if(_(v[F],F))return F}return-1}i.findFirstIndex=r;function n(v,_,h=-1,p=0){let g=v.length;if(g===0)return-1;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;h<p?C=h+1+(g-p):C=h-p+1;for(let I=0;I<C;++I){let F=(h-I+g)%g;if(_(v[F],F))return F}return-1}i.findLastIndex=n;function s(v,_,h=0,p=-1){let g=r(v,_,h,p);return g!==-1?v[g]:void 0}i.findFirstValue=s;function o(v,_,h=-1,p=0){let g=n(v,_,h,p);return g!==-1?v[g]:void 0}i.findLastValue=o;function a(v,_,h,p=0,g=-1){let C=v.length;if(C===0)return 0;p<0?p=Math.max(0,p+C):p=Math.min(p,C-1),g<0?g=Math.max(0,g+C):g=Math.min(g,C-1);let I=p,F=g-p+1;for(;F>0;){let P=F>>1,K=I+P;h(v[K],_)<0?(I=K+1,F-=P+1):F=P}return I}i.lowerBound=a;function l(v,_,h,p=0,g=-1){let C=v.length;if(C===0)return 0;p<0?p=Math.max(0,p+C):p=Math.min(p,C-1),g<0?g=Math.max(0,g+C):g=Math.min(g,C-1);let I=p,F=g-p+1;for(;F>0;){let P=F>>1,K=I+P;h(v[K],_)>0?F=P:(I=K+1,F-=P+1)}return I}i.upperBound=l;function u(v,_,h){if(v===_)return!0;
6177if(v.length!==_.length)return!1;for(let p=0,g=v.length;p<g;++p)if(h?!h(v[p],_[p]):v[p]!==_[p])return!1;return!0}i.shallowEqual=u;function c(v,_={}){let{start:h,stop:p,step:g}=_;if(g===void 0&&(g=1),g===0)throw new Error("Slice `step` cannot be zero.");let C=v.length;h===void 0?h=g<0?C-1:0:h<0?h=Math.max(h+C,g<0?-1:0):h>=C&&(h=g<0?C-1:C),p===void 0?p=g<0?-1:C:p<0?p=Math.max(p+C,g<0?-1:0):p>=C&&(p=g<0?C-1:C);let I;g<0&&p>=h||g>0&&h>=p?I=0:g<0?I=Math.floor((p-h+1)/g+1):I=Math.floor((p-h-1)/g+1);let F=[];for(let P=0;P<I;++P)F[P]=v[h+P*g];return F}i.slice=c;function d(v,_,h){let p=v.length;if(p<=1||(_<0?_=Math.max(0,_+p):_=Math.min(_,p-1),h<0?h=Math.max(0,h+p):h=Math.min(h,p-1),_===h))return;let g=v[_],C=_<h?1:-1;for(let I=_;I!==h;I+=C)v[I]=v[I+C];v[h]=g}i.move=d;function f(v,_=0,h=-1){let p=v.length;if(!(p<=1))for(_<0?_=Math.max(0,_+p):_=Math.min(_,p-1),h<0?h=Math.max(0,h+p):h=Math.min(h,p-1);_<h;){let g=v[_],C=v[h];v[_++]=C,v[h--]=g}}i.reverse=f;function m(v,_,h=0,p=-1){let g=v.length;if(g<=1||(h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1),h>=p))return;let C=p-h+1;if(_>0?_=_%C:_<0&&(_=(_%C+C)%C),_===0)return;let I=h+_;f(v,h,I-1),f(v,I,p),f(v,h,p)}i.rotate=m;function b(v,_,h=0,p=-1){let g=v.length;if(g===0)return;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C;p<h?C=p+1+(g-h):C=p-h+1;for(let I=0;I<C;++I)v[(h+I)%g]=_}i.fill=b;function y(v,_,h){let p=v.length;_<0?_=Math.max(0,_+p):_=Math.min(_,p);for(let g=p;g>_;--g)v[g]=v[g-1];v[_]=h}i.insert=y;function x(v,_){let h=v.length;if(_<0&&(_+=h),_<0||_>=h)return;let p=v[_];for(let g=_+1;g<h;++g)v[g-1]=v[g];return v.length=h-1,p}i.removeAt=x;function M(v,_,h=0,p=-1){let g=e(v,_,h,p);return g!==-1&&x(v,g),g}i.removeFirstOf=M;function T(v,_,h=-1,p=0){let g=t(v,_,h,p);return g!==-1&&x(v,g),g}i.removeLastOf=T;function E(v,_,h=0,p=-1){let g=v.length;if(g===0)return 0;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C=0;for(let I=0;I<g;++I)h<=p&&I>=h&&I<=p&&v[I]===_||p<h&&(I<=p||I>=h)&&v[I]===_?C++:C>
61770&&(v[I-C]=v[I]);return C>0&&(v.length=g-C),C}i.removeAllOf=E;function A(v,_,h=0,p=-1){let g,C=r(v,_,h,p);return C!==-1&&(g=x(v,C)),{index:C,value:g}}i.removeFirstWhere=A;function R(v,_,h=-1,p=0){let g,C=n(v,_,h,p);return C!==-1&&(g=x(v,C)),{index:C,value:g}}i.removeLastWhere=R;function $(v,_,h=0,p=-1){let g=v.length;if(g===0)return 0;h<0?h=Math.max(0,h+g):h=Math.min(h,g-1),p<0?p=Math.max(0,p+g):p=Math.min(p,g-1);let C=0;for(let I=0;I<g;++I)h<=p&&I>=h&&I<=p&&_(v[I],I)||p<h&&(I<=p||I>=h)&&_(v[I],I)?C++:C>0&&(v[I-C]=v[I]);return C>0&&(v.length=g-C),C}i.removeAllWhere=$})(ae||(ae={}));(function(i){function e(t,r,n){return n===0?1/0:t>r&&n>0||t<r&&n<0?0:Math.ceil((r-t)/n)}i.rangeLength=e})(xJ||(xJ={}));(function(i){function e(o,a,l=0){let u=new Array(a.length);for(let c=0,d=l,f=a.length;c<f;++c,++d){if(d=o.indexOf(a[c],d),d===-1)return null;u[c]=d}return u}i.findIndices=e;function t(o,a,l=0){let u=e(o,a,l);if(!u)return null;let c=0;for(let d=0,f=u.length;d<f;++d){let m=u[d]-l;c+=m*m}return{score:c,indices:u}}i.matchSumOfSquares=t;function r(o,a,l=0){let u=e(o,a,l);if(!u)return null;let c=0,d=l-1;for(let f=0,m=u.length;f<m;++f){let b=u[f];c+=b-d-1,d=b}return{score:c,indices:u}}i.matchSumOfDeltas=r;function n(o,a,l){let u=[],c=0,d=0,f=a.length;for(;c<f;){let m=a[c],b=a[c];for(;++c<f&&a[c]===b+1;)b++;d<m&&u.push(o.slice(d,m)),m<b+1&&u.push(l(o.slice(m,b+1))),d=b+1}return d<o.length&&u.push(o.slice(d)),u}i.highlight=n;function s(o,a){return o<a?-1:o>a?1:0}i.cmp=s})(Jd||(Jd={}))});var MJ,yt,Qu,ec,Os,xS=w(()=>{(function(i){function e(t){let r=document.body,n=s=>{s.preventDefault(),s.stopPropagation(),s.clipboardData.setData("text",t),r.removeEventListener("copy",n,!0)};r.addEventListener("copy",n,!0),document.execCommand("copy")}i.copyText=e})(MJ||(MJ={}));(function(i){function e(s){let o=window.getComputedStyle(s),a=parseFloat(o.borderTopWidth)||0,l=parseFloat(o.borderLeftWidth)||0,u=parseFloat(o.borderRightWidth)||0,c=parseFloat(o.borderBottomWidth)||0,d=parseFloat(o.paddingTop)||0,f=parseFloat(o.paddingLeft)||0,m=parseFloat(o.paddingRight)||0,b=parseFloat(o.paddingBottom)||0,y=l+f+m+u,x=a+d+b+c;return{borderTop:a,borderLeft:l,borderRight:u,borderBottom:c,paddingTop:d,paddingLeft:f,paddingRight:m,paddingBottom:b,horizontalSum:y,verticalSum:x}}i.boxSizing=e;function t(s){let o=window.getComputedStyle(s),a=parseFloat(o.minWidth)||0,l=parseFloat(o.minHeight)||0,u=parseFloat(o.maxWidth)||1/0,c=parseFloat(o.maxHeight)||1/0;return u=Math.max(a,u),c=Math.max(l,c),{minWidth:a,minHeight:l,maxWidth:u,maxHeight:c}}i.sizeLimits=t;function r(s,o,a){let l=s.getBoundingClientRect();return o>=l.left&&o<l.right&&a>=l.top&&a<l.bottom}i.hitTest=r;function n(s,o){let a=s.getBoundingClientRect(),l=o.getBoundingClientRect();if(!(l.top<=a.top&&l.bottom>=a.bottom)){if(l.top<a.top&&l.height<=a.height){s.scrollTop-=a.top-l.top;return}if(l.bottom>a.bottom&&l.height>=a.height){s.scrollTop-=a.top-l.top;return}if(l.top<a.top&&l.height>a.height){s.scrollTop-=a.bottom-l.bottom;return}if(l.bottom>a.bottom&&l.height<a.height){s.scrollTop-=a.bottom-l.bottom;return}}}i.scrollIntoViewIfNeeded=n})(yt||(yt={}));(function(i){i.IS_MAC=!!navigator.platform.match(/Mac/i),i.IS_WIN=!!navigator.platform.match(/Win/i),i.IS_IE=/Trident/.test(navigator.userAgent),i.IS_EDGE=/Edge/.test(navigator.userAgent);function e(t){return i.IS_MAC?t.metaKey:t.ctrlKey}i.accelKey=e})(Qu||(Qu={}));(function(i){function e(n){if(n in Os.specificityCache)return Os.specificityCache[n];let s=Os.calculateSingle(n);return Os.specificityCache[n]=s}i.calculateSpecificity=e;function t(n){if(n in Os.validityCache)return Os.validityCache[n];let s=!0;try{Os.testElem.querySelector(n)}catch{s=!1}return Os.validityCache[n]=s}i.isValid=t;function r(n,s){return Os.protoMatchFunc.call(n,s)}i.matches=r})(ec||(ec={}));(function(i){i.specificityCache=Object.create(null),i.validityCache=Object.create(null),i.testElem=document.createElement("div"),i.protoMatchFunc=(()=>{let c=Element.prototype;return c.matches||c.matchesSelector||c.mozMatchesSelector||c.msMatchesSelector||c.oMatchesSelector||c.webkitMatchesSelector||function(d){let f=this,m=f.ownerDocument?f.ownerDocument.querySelectorAll(d):[];return Array.prototype.indexOf.call(m,f)!==-1}})();function e(c){c=c.split(",",1)[0];let d=0,f=0,m=0;function b(y){let x=c.match(y);return x===null?!1:(c=c.slice(x[0].length),!0)}for(c=c.replace(u," $1 ");c.length>0;){if(b(t)){d++;continue}if(b(r)){f++;continue}if(b(n)){f++;continue}if(b(o)){m++;continue}if(b(a)){f++;continue}if(b(s)){m++;continue}if(!b(l))return 0}return d=Math.min(d,255),f=Math.min(f,255),m=Math.min(m,255),d<<16|f<<8|m}i.calculateSingle=e;let t=/^#[^\s\+>~#\.\[:]+/,r=/^\.[^\s\+>~#\.\[:]+/,n=/^\[[^\]]+\]/,s=/^[^\s\+>~#\.\[:]+/,o=/^(::[^\s\+>~#\.\[:]+|:first-line|:first-letter|:before|:after)/,a=/^:[^\s\+>~#\.\[:]+/,l=/^[\s\+>~\*]+/,u=/:not\(([^\)]+)\)/g})(Os||(Os={}))});var EJ,Fp,wS=w(()=>{Zu();EJ=z(Ze());xS();(function(i){function e(o,a,l){return ae.findFirstIndex(o,u=>yt.hitTest(u,a,l))}i.hitTestNodes=e;function t(o,a){return o.querySelector(`.${a}`)}i.findElement=t;function r(o,a){return o.getElementsByClassName(a)}i.findElements=r;function n(){return`id-${EJ.UUID.uuid4()}`}i.createDomID=n;function s(o,a=document){let l=a.activeElement;return!!(l&&o.contains(l)&&(l.matches(":read-write")||l.shadowRoot&&s(l.shadowRoot,l.shadowRoot)))}i.hasActiveEditableElement=s})(Fp||(Fp={}))});var eh,xa,TJ=w(()=>{eh=class{constructor(){this._first=null,this._last=null,this._size=0}get isEmpty(){return this._size===0}get size(){return this._size}get length(){return this._size}get first(){return this._first?this._first.value:void 0}get last(){return this._last?this._last.value:void 0}get firstNode(){return this._first}get lastNode(){return this._last}*[Symbol.iterator](){let e=this._first;for(;e;)yield e.value,e=e.next}*retro(){let e=this._last;for(;e;)yield e.value,e=e.prev}*nodes(){let e=this._first;for(;e;)yield e,e=e.next}*retroNodes(){let e=this._last;for(;e;)yield e,e=e.prev}assign(e){this.clear();for(let t of e)this.addLast(t)}push(e){this.addLast(e)}pop(){return this.removeLast()}shift(e){this.addFirst(e)}unshift(){return this.removeFirst()}addFirst(e){let t=new xa.LinkedListNode(this,e);return this._first?(t.next=this._first,this._first.prev=t,this._first=t):(this._first=t,this._last=t),this._size++,t}addLast(e){let t=new xa.LinkedListNode(this,e);return this._last?(t.prev=this._last,this._last.next=t,this._last=t):(this._first=t,this._last=t),this._size++,t}insertBefore(e,t){if(!t||t===this._first)return this.addFirst(e);
6177if(!(t instanceof xa.LinkedListNode)||t.list!==this)throw new Error("Reference node is not owned by the list.");let r=new xa.LinkedListNode(this,e),n=t,s=n.prev;return r.next=n,r.prev=s,n.prev=r,s.next=r,this._size++,r}insertAfter(e,t){if(!t||t===this._last)return this.addLast(e);if(!(t instanceof xa.LinkedListNode)||t.list!==this)throw new Error("Reference node is not owned by the list.");let r=new xa.LinkedListNode(this,e),n=t,s=n.next;return r.next=s,r.prev=n,n.next=r,s.prev=r,this._size++,r}removeFirst(){let e=this._first;if(e)return e===this._last?(this._first=null,this._last=null):(this._first=e.next,this._first.prev=null),e.list=null,e.next=null,e.prev=null,this._size--,e.value}removeLast(){let e=this._last;if(e)return e===this._first?(this._first=null,this._last=null):(this._last=e.prev,this._last.next=null),e.list=null,e.next=null,e.prev=null,this._size--,e.value}removeNode(e){if(!(e instanceof xa.LinkedListNode)||e.list!==this)throw new Error("Node is not owned by the list.");let t=e;t===this._first&&t===this._last?(this._first=null,this._last=null):t===this._first?(this._first=t.next,this._first.prev=null):t===this._last?(this._last=t.prev,this._last.next=null):(t.next.prev=t.prev,t.prev.next=t.next),t.list=null,t.next=null,t.prev=null,this._size--}clear(){let e=this._first;for(;e;){let t=e.next;e.list=null,e.prev=null,e.next=null,e=t}this._first=null,this._last=null,this._size=0}};(function(i){function e(t){let r=new i;return r.assign(t),r}i.from=e})(eh||(eh={}));(function(i){class e{constructor(r,n){this.list=null,this.next=null,this.prev=null,this.list=r,this.value=n}}i.LinkedListNode=e})(xa||(xa={}))});var qr,Ol,re,tv=w(()=>{Zu();TJ();qr=class{constructor(e){this.type=e}get isConflatable(){return!1}conflate(e){return!1}},Ol=class extends qr{get isConflatable(){return!0}conflate(e){return!0}};(function(i){let e=null,t=(_=>h=>{let p=!1;return _.then(()=>!p&&h()),()=>{p=!0}})(Promise.resolve());function r(_,h){let p=f.get(_);if(!p||p.length===0){M(_,h);return}SJ(IJ(p),C=>C?x(C,_,h):!0)&&M(_,h)}i.sendMessage=r;function n(_,h){if(!h.isConflatable){T(_,h);return}CJ(d,g=>g.handler!==_||!g.msg||g.msg.type!==h.type||!g.msg.isConflatable?!1:g.msg.conflate(h))||T(_,h)}i.postMessage=n;function s(_,h){let p=f.get(_);p&&p.indexOf(h)!==-1||(p?p.push(h):f.set(_,[h]))}i.installMessageHook=s;function o(_,h){let p=f.get(_);if(!p)return;let g=p.indexOf(h);g!==-1&&(p[g]=null,A(p))}i.removeMessageHook=o;function a(_){let h=f.get(_);h&&h.length>0&&(ae.fill(h,null),A(h));for(let p of d)p.handler===_&&(p.handler=null,p.msg=null)}i.clearData=a;function l(){y||e===null||(e(),e=null,y=!0,E(),y=!1)}i.flush=l;function u(){return b}i.getExceptionHandler=u;function c(_){let h=b;return b=_,h}i.setExceptionHandler=c;let d=new eh,f=new WeakMap,m=new Set,b=_=>{console.error(_)},y=!1;function x(_,h,p){let g=!0;try{typeof _=="function"?g=_(h,p):g=_.messageHook(h,p)}catch(C){b(C)}return g}function M(_,h){try{_.processMessage(h)}catch(p){b(p)}}function T(_,h){d.addLast({handler:_,msg:h}),e===null&&(e=t(E))}function E(){if(e=null,d.isEmpty)return;let _={handler:null,msg:null};for(d.addLast(_);;){let h=d.removeFirst();if(h===_)return;h.handler&&h.msg&&r(h.handler,h.msg)}}function A(_){m.size===0&&t(R),m.add(_)}function R(){m.forEach($),m.clear()}function $(_){ae.removeAllWhere(_,v)}function v(_){return _===null}})(re||(re={}))});var Ia,So,Rn,Pp,V,iv,Io,ic,th,Ll,Np,zp,Ls,Sa,SS,rv,rc,CS,nc,IS,Bp,MS,Ni,tc,ih,ES,rh,wa,Co,Hr,kJ,$5e,$l,ns,TS,pi,sc,ni,nv,Ca,Pi,nh,sv,AJ,RJ,kS,DJ,OJ,Ma=w(()=>{Zu();Ia=z(Ze());xS();tv();gc();Qe();_0();Zh();iu();Fn();Jh();So=class{constructor(){this.sizeHint=0,this.minSize=0,this.maxSize=1/0,this.stretch=1,this.size=0,this.done=!1}};(function(i){function e(s,o){let a=s.length;if(a===0)return o;let l=0,u=0,c=0,d=0,f=0;for(let y=0;y<a;++y){let x=s[y],M=x.minSize,T=x.maxSize,E=x.sizeHint;x.done=!1,x.size=Math.max(M,Math.min(E,T)),c+=x.size,l+=M,u+=T,x.stretch>0&&(d+=x.stretch,f++)}if(o===c)return 0;if(o<=l){for(let y=0;y<a;++y){let x=s[y];x.size=x.minSize}return o-l}if(o>=u){for(let y=0;y<a;++y){let x=s[y];x.size=x.maxSize}return o-u}let m=.01,b=a;if(o<c){let y=c-o;for(;f>0&&y>m;){let x=y,M=d;for(let T=0;T<a;++T){let E=s[T];if(E.done||E.stretch===0)continue;let A=E.stretch*x/M;E.size-A<=E.minSize?(y-=E.size-E.minSize,d-=E.stretch,E.size=E.minSize,E.done=!0,b--,f--):(y-=A,E.size-=A)}}for(;b>0&&y>m;){let x=y/b;for(let M=0;M<a;++M){let T=s[M];T.done||(T.size-x<=T.minSize?(y-=T.size-T.minSize,T.size=T.minSize,T.done=!0,b--):(y-=x,T.size-=x)
6177)}}}else{let y=o-c;for(;f>0&&y>m;){let x=y,M=d;for(let T=0;T<a;++T){let E=s[T];if(E.done||E.stretch===0)continue;let A=E.stretch*x/M;E.size+A>=E.maxSize?(y-=E.maxSize-E.size,d-=E.stretch,E.size=E.maxSize,E.done=!0,b--,f--):(y-=A,E.size+=A)}}for(;b>0&&y>m;){let x=y/b;for(let M=0;M<a;++M){let T=s[M];T.done||(T.size+x>=T.maxSize?(y-=T.maxSize-T.size,T.size=T.maxSize,T.done=!0,b--):(y-=x,T.size+=x))}}}return 0}i.calc=e;function t(s,o,a){s.length===0||a===0||(a>0?r(s,o,a):n(s,o,-a))}i.adjust=t;function r(s,o,a){let l=0;for(let f=0;f<=o;++f){let m=s[f];l+=m.maxSize-m.size}let u=0;for(let f=o+1,m=s.length;f<m;++f){let b=s[f];u+=b.size-b.minSize}a=Math.min(a,l,u);let c=a;for(let f=o;f>=0&&c>0;--f){let m=s[f],b=m.maxSize-m.size;b>=c?(m.sizeHint=m.size+c,c=0):(m.sizeHint=m.size+b,c-=b)}let d=a;for(let f=o+1,m=s.length;f<m&&d>0;++f){let b=s[f],y=b.size-b.minSize;y>=d?(b.sizeHint=b.size-d,d=0):(b.sizeHint=b.size-y,d-=y)}}function n(s,o,a){let l=0;for(let f=o+1,m=s.length;f<m;++f){let b=s[f];l+=b.maxSize-b.size}let u=0;for(let f=0;f<=o;++f){let m=s[f];u+=m.size-m.minSize}a=Math.min(a,l,u);let c=a;for(let f=o+1,m=s.length;f<m&&c>0;++f){let b=s[f],y=b.maxSize-b.size;y>=c?(b.sizeHint=b.size+c,c=0):(b.sizeHint=b.size+y,c-=y)}let d=a;for(let f=o;f>=0&&d>0;--f){let m=s[f],b=m.size-m.minSize;b>=d?(m.sizeHint=m.size-d,d=0):(m.sizeHint=m.size-b,d-=b)}}})(Rn||(Rn={}));Pp=class{constructor(e){this._label="",this._caption="",this._mnemonic=-1,this._icon=void 0,this._iconClass="",this._iconLabel="",this._className="",this._closable=!1,this._changed=new X(this),this._isDisposed=!1,this.owner=e.owner,e.label!==void 0&&(this._label=e.label),e.mnemonic!==void 0&&(this._mnemonic=e.mnemonic),e.icon!==void 0&&(this._icon=e.icon),e.iconClass!==void 0&&(this._iconClass=e.iconClass),e.iconLabel!==void 0&&(this._iconLabel=e.iconLabel),e.caption!==void 0&&(this._caption=e.caption),e.className!==void 0&&(this._className=e.className),e.closable!==void 0&&(this._closable=e.closable),this._dataset=e.dataset||{}}get changed(){return this._changed}get label(){return this._label}set label(e){this._label!==e&&(this._label=e,this._changed.emit(void 0))}get mnemonic(){return this._mnemonic}set mnemonic(e){this._mnemonic!==e&&(this._mnemonic=e,this._changed.emit(void 0))}get icon(){return this._icon}set icon(e){this._icon!==e&&(this._icon=e,this._changed.emit(void 0))}get iconClass(){return this._iconClass}set iconClass(e){this._iconClass!==e&&(this._iconClass=e,this._changed.emit(void 0))}get iconLabel(){return this._iconLabel}set iconLabel(e){this._iconLabel!==e&&(this._iconLabel=e,this._changed.emit(void 0))}get caption(){return this._caption}set caption(e){this._caption!==e&&(this._caption=e,this._changed.emit(void 0))}get className(){return this._className}set className(e){this._className!==e&&(this._className=e,this._changed.emit(void 0))}get closable(){return this._closable}set closable(e){this._closable!==e&&(this._closable=e,this._changed.emit(void 0))}get dataset(){return this._dataset}set dataset(e){this._dataset!==e&&(this._dataset=e,this._changed.emit(void 0))}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,X.clearData(this))}},V=class{constructor(e={}){this._flags=0,this._layout=null,this._parent=null,this._disposed=new X(this),this._hiddenMode=V.HiddenMode.Display,this.node=iv.createNode(e),this.addClass("lm-Widget")}dispose(){this.isDisposed||(this.setFlag(V.Flag.IsDisposed),this._disposed.emit(void 0),this.parent?this.parent=null:this.isAttached&&V.detach(this),this._layout&&(this._layout.dispose(),this._layout=null),this.title.dispose(),X.clearData(this),re.clearData(this),Ge.clearData(this))}get disposed(){return this._disposed}get isDisposed(){return this.testFlag(V.Flag.IsDisposed)}get isAttached(){return this.testFlag(V.Flag.IsAttached)}get isHidden(){return this.testFlag(V.Flag.IsHidden)}get isVisible(){return this.testFlag(V.Flag.IsVisible)}get title(){return iv.titleProperty.get(this)}get id(){return this.node.id}set id(e){this.node.id=e}get dataset(){return this.node.dataset}get hiddenMode(){return this._hiddenMode}set hiddenMode(e){this._hiddenMode!==e&&(this.isHidden&&this._toggleHidden(!1),e==V.HiddenMode.Scale?this.node.style.willChange="transform":this.node.style.willChange="auto",this._hiddenMode=e,this.isHidden&&this._toggleHidden(!0))}get parent(){return this._parent}set parent(e){if(this._parent!==e){if(e&&this.contains(e))throw new Error("Invalid parent widget.");if(this._parent&&!this._parent.isDisposed){let t=new V.ChildMessage("child-removed",this);re.sendMessage(this._parent,t)}if(this._parent=e,this._parent&&!this._parent.isDisposed){let t=new V.ChildMessage("child-added",this);re.sendMessage(this._parent,t)}this.isDisposed||re.sendMessage(this,V.Msg.ParentChanged)}}get layout(){return this._layout}set layout(e){if(this._layout!==e){if(this.testFlag(V.Flag.DisallowLayout))throw new Error("Cannot set widget layout.");if(this._layout)throw new Error("Cannot change widget layout.");if(e.parent)throw new Error("Cannot change layout parent.");this._layout=e,e.parent=this}}*children(){this._layout&&(yield*this._layout)}contains(e){for(let t=e;t;t=t._parent)if(t===this)return!0;return!1}hasClass(e){return this.node.classList.contains(e)}addClass(e){this.node.classList.add(e)}removeClass(e){this.node.classList.remove(e)}toggleClass(e,t){return t===!0?(this.node.classList.add(e),!0):t===!1?(this.node.classList.remove(e),!1):this.node.classList.toggle(e)}update(){re.postMessage(this,V.Msg.UpdateRequest)}fit(){re.postMessage(this,V.Msg.FitRequest)}activate(){re.postMessage(this,V.Msg.ActivateRequest)}close(){re.sendMessage(this,V.Msg.CloseRequest)}
6177show(){if(this.testFlag(V.Flag.IsHidden)&&(this.isAttached&&(!this.parent||this.parent.isVisible)&&re.sendMessage(this,V.Msg.BeforeShow),this.clearFlag(V.Flag.IsHidden),this._toggleHidden(!1),this.isAttached&&(!this.parent||this.parent.isVisible)&&re.sendMessage(this,V.Msg.AfterShow),this.parent)){let e=new V.ChildMessage("child-shown",this);re.sendMessage(this.parent,e)}}hide(){if(!this.testFlag(V.Flag.IsHidden)&&(this.isAttached&&(!this.parent||this.parent.isVisible)&&re.sendMessage(this,V.Msg.BeforeHide),this.setFlag(V.Flag.IsHidden),this._toggleHidden(!0),this.isAttached&&(!this.parent||this.parent.isVisible)&&re.sendMessage(this,V.Msg.AfterHide),this.parent)){let e=new V.ChildMessage("child-hidden",this);re.sendMessage(this.parent,e)}}setHidden(e){e?this.hide():this.show()}testFlag(e){return(this._flags&e)!==0}setFlag(e){this._flags|=e}clearFlag(e){this._flags&=~e}processMessage(e){switch(e.type){case"resize":this.notifyLayout(e),this.onResize(e);break;case"update-request":this.notifyLayout(e),this.onUpdateRequest(e);break;case"fit-request":this.notifyLayout(e),this.onFitRequest(e);break;case"before-show":this.notifyLayout(e),this.onBeforeShow(e);break;case"after-show":this.setFlag(V.Flag.IsVisible),this.notifyLayout(e),this.onAfterShow(e);break;case"before-hide":this.notifyLayout(e),this.onBeforeHide(e);break;case"after-hide":this.clearFlag(V.Flag.IsVisible),this.notifyLayout(e),this.onAfterHide(e);break;case"before-attach":this.notifyLayout(e),this.onBeforeAttach(e);break;case"after-attach":!this.isHidden&&(!this.parent||this.parent.isVisible)&&this.setFlag(V.Flag.IsVisible),this.setFlag(V.Flag.IsAttached),this.notifyLayout(e),this.onAfterAttach(e);break;case"before-detach":this.notifyLayout(e),this.onBeforeDetach(e);break;case"after-detach":this.clearFlag(V.Flag.IsVisible),this.clearFlag(V.Flag.IsAttached),this.notifyLayout(e),this.onAfterDetach(e);break;case"activate-request":this.notifyLayout(e),this.onActivateRequest(e);break;case"close-request":this.notifyLayout(e),this.onCloseRequest(e);break;case"child-added":this.notifyLayout(e),this.onChildAdded(e);break;case"child-removed":this.notifyLayout(e),this.onChildRemoved(e);break;default:this.notifyLayout(e);break}}notifyLayout(e){this._layout&&this._layout.processParentMessage(e)}onCloseRequest(e){this.parent?this.parent=null:this.isAttached&&V.detach(this)}onResize(e){}onUpdateRequest(e){}onFitRequest(e){}onActivateRequest(e){}onBeforeShow(e){}onAfterShow(e){}onBeforeHide(e){}onAfterHide(e){}onBeforeAttach(e){}onAfterAttach(e){}onBeforeDetach(e){}onAfterDetach(e){}onChildAdded(e){}onChildRemoved(e){}_toggleHidden(e){if(e)switch(this._hiddenMode){case V.HiddenMode.Display:this.addClass("lm-mod-hidden");break;case V.HiddenMode.Scale:this.node.style.transform="scale(0)",this.node.setAttribute("aria-hidden","true");break;case V.HiddenMode.ContentVisibility:this.node.style.contentVisibility="hidden",this.node.style.zIndex="-1";break}else switch(this._hiddenMode){case V.HiddenMode.Display:this.removeClass("lm-mod-hidden");break;case V.HiddenMode.Scale:this.node.style.transform="",this.node.removeAttribute("aria-hidden");break;case V.HiddenMode.ContentVisibility:this.node.style.contentVisibility="",this.node.style.zIndex="";break}}};(function(i){(function(s){s[s.Display=0]="Display",s[s.Scale=1]="Scale",s[s.ContentVisibility=2]="ContentVisibility"})(i.HiddenMode||(i.HiddenMode={})),function(s){s[s.IsDisposed=1]="IsDisposed",s[s.IsAttached=2]="IsAttached",s[s.IsHidden=4]="IsHidden",s[s.IsVisible=8]="IsVisible",s[s.DisallowLayout=16]="DisallowLayout"}(i.Flag||(i.Flag={})),function(s){s.BeforeShow=new qr("before-show"),s.AfterShow=new qr("after-show"),s.BeforeHide=new qr("before-hide"),s.AfterHide=new qr("after-hide"),s.BeforeAttach=new qr("before-attach"),s.AfterAttach=new qr("after-attach"),s.BeforeDetach=new qr("before-detach"),s.AfterDetach=new qr("after-detach"),s.ParentChanged=new qr("parent-changed"),s.UpdateRequest=new Ol("update-request"),s.FitRequest=new Ol("fit-request"),s.ActivateRequest=new Ol("activate-request"),s.CloseRequest=new Ol("close-request")}(i.Msg||(i.Msg={}));class e extends qr{constructor(o,a){super(o),this.child=a}}i.ChildMessage=e;class t extends qr{constructor(o,a){super("resize"),this.width=o,this.height=a}}i.ResizeMessage=t,function(s){s.UnknownSize=new s(-1,-1)}(t=i.ResizeMessage||(i.ResizeMessage={}));function r(s,o,a=null){if(s.parent)throw new Error("Cannot attach a child widget.");if(s.isAttached||s.node.isConnected)throw new Error("Widget is already attached.");if(!o.isConnected)throw new Error("Host is not attached.");re.sendMessage(s,i.Msg.BeforeAttach),o.insertBefore(s.node,a),re.sendMessage(s,i.Msg.AfterAttach)}i.attach=r;function n(s){if(s.parent)throw new Error("Cannot detach a child widget.");if(!s.isAttached||!s.node.isConnected)throw new Error("Widget is not attached.");re.sendMessage(s,i.Msg.BeforeDetach),s.node.parentNode.removeChild(s.node),re.sendMessage(s,i.Msg.AfterDetach)}i.detach=n})(V||(V={}));
6177(function(i){i.titleProperty=new Ge({name:"title",create:t=>new Pp({owner:t})});function e(t){return t.node||document.createElement(t.tag||"div")}i.createNode=e})(iv||(iv={}));Io=class{constructor(e={}){this._disposed=!1,this._parent=null,this._fitPolicy=e.fitPolicy||"set-min-size"}dispose(){this._parent=null,this._disposed=!0,X.clearData(this),Ge.clearData(this)}get isDisposed(){return this._disposed}get parent(){return this._parent}set parent(e){if(this._parent!==e){if(this._parent)throw new Error("Cannot change parent widget.");if(e.layout!==this)throw new Error("Invalid parent widget.");this._parent=e,this.init()}}get fitPolicy(){return this._fitPolicy}set fitPolicy(e){if(this._fitPolicy!==e&&(this._fitPolicy=e,this._parent)){let t=this._parent.node.style;t.minWidth="",t.minHeight="",t.maxWidth="",t.maxHeight="",this._parent.fit()}}processParentMessage(e){switch(e.type){case"resize":this.onResize(e);break;case"update-request":this.onUpdateRequest(e);break;case"fit-request":this.onFitRequest(e);break;case"before-show":this.onBeforeShow(e);break;case"after-show":this.onAfterShow(e);break;case"before-hide":this.onBeforeHide(e);break;case"after-hide":this.onAfterHide(e);break;case"before-attach":this.onBeforeAttach(e);break;case"after-attach":this.onAfterAttach(e);break;case"before-detach":this.onBeforeDetach(e);break;case"after-detach":this.onAfterDetach(e);break;case"child-removed":this.onChildRemoved(e);break;case"child-shown":this.onChildShown(e);break;case"child-hidden":this.onChildHidden(e);break}}init(){for(let e of this)e.parent=this.parent}onResize(e){for(let t of this)re.sendMessage(t,V.ResizeMessage.UnknownSize)}onUpdateRequest(e){for(let t of this)re.sendMessage(t,V.ResizeMessage.UnknownSize)}onBeforeAttach(e){for(let t of this)re.sendMessage(t,e)}onAfterAttach(e){for(let t of this)re.sendMessage(t,e)}onBeforeDetach(e){for(let t of this)re.sendMessage(t,e)}onAfterDetach(e){for(let t of this)re.sendMessage(t,e)}onBeforeShow(e){for(let t of this)t.isHidden||re.sendMessage(t,e)}onAfterShow(e){for(let t of this)t.isHidden||re.sendMessage(t,e)}onBeforeHide(e){for(let t of this)t.isHidden||re.sendMessage(t,e)}onAfterHide(e){for(let t of this)t.isHidden||re.sendMessage(t,e)}onChildRemoved(e){this.removeWidget(e.child)}onFitRequest(e){}onChildShown(e){}onChildHidden(e){}};(function(i){function e(s){return th.horizontalAlignmentProperty.get(s)}i.getHorizontalAlignment=e;function t(s,o){th.horizontalAlignmentProperty.set(s,o)}i.setHorizontalAlignment=t;function r(s){return th.verticalAlignmentProperty.get(s)}i.getVerticalAlignment=r;function n(s,o){th.verticalAlignmentProperty.set(s,o)}i.setVerticalAlignment=n})(Io||(Io={}));ic=class{constructor(e){this._top=NaN,this._left=NaN,this._width=NaN,this._height=NaN,this._minWidth=0,this._minHeight=0,this._maxWidth=1/0,this._maxHeight=1/0,this._disposed=!1,this.widget=e,this.widget.node.style.position="absolute",this.widget.node.style.contain="strict"}dispose(){if(this._disposed)return;this._disposed=!0;let e=this.widget.node.style;e.position="",e.top="",e.left="",e.width="",e.height="",e.contain=""}get minWidth(){return this._minWidth}get minHeight(){return this._minHeight}get maxWidth(){return this._maxWidth}get maxHeight(){return this._maxHeight}get isDisposed(){return this._disposed}get isHidden(){return this.widget.isHidden}get isVisible(){return this.widget.isVisible}get isAttached(){return this.widget.isAttached}fit(){let e=yt.sizeLimits(this.widget.node);this._minWidth=e.minWidth,this._minHeight=e.minHeight,this._maxWidth=e.maxWidth,this._maxHeight=e.maxHeight}update(e,t,r,n){let s=Math.max(this._minWidth,Math.min(r,this._maxWidth)),o=Math.max(this._minHeight,Math.min(n,this._maxHeight));if(s<r)switch(Io.getHorizontalAlignment(this.widget)){case"left":break;case"center":e+=(r-s)/2;break;case"right":e+=r-s;break;default:throw"unreachable"}if(o<n)switch(Io.getVerticalAlignment(this.widget)){case"top":break;case"center":t+=(n-o)/2;break;case"bottom":t+=n-o;break;default:throw"unreachable"}let a=!1,l=this.widget.node.style;if(this._top!==t&&(this._top=t,l.top=`${t}px`),this._left!==e&&(this._left=e,l.left=`${e}px`),this._width!==s&&(a=!0,this._width=s,l.width=`${s}px`),this._height!==o&&(a=!0,this._height=o,l.height=`${o}px`),a){let u=new V.ResizeMessage(s,o);re.sendMessage(this.widget,u)}}};
6177(function(i){i.horizontalAlignmentProperty=new Ge({name:"horizontalAlignment",create:()=>"center",changed:e}),i.verticalAlignmentProperty=new Ge({name:"verticalAlignment",create:()=>"top",changed:e});function e(t){t.parent&&t.parent.layout&&t.parent.update()}})(th||(th={}));Ll=class extends Io{constructor(){super(...arguments),this._widgets=[]}dispose(){for(;this._widgets.length>0;)this._widgets.pop().dispose();super.dispose()}get widgets(){return this._widgets}*[Symbol.iterator](){yield*this._widgets}addWidget(e){this.insertWidget(this._widgets.length,e)}insertWidget(e,t){t.parent=this.parent;let r=this._widgets.indexOf(t),n=Math.max(0,Math.min(e,this._widgets.length));if(r===-1){ae.insert(this._widgets,n,t),this.parent&&this.attachWidget(n,t);return}n===this._widgets.length&&n--,r!==n&&(ae.move(this._widgets,r,n),this.parent&&this.moveWidget(r,n,t))}removeWidget(e){this.removeWidgetAt(this._widgets.indexOf(e))}removeWidgetAt(e){let t=ae.removeAt(this._widgets,e);t&&this.parent&&this.detachWidget(e,t)}init(){super.init();let e=0;for(let t of this)this.attachWidget(e++,t)}attachWidget(e,t){let r=this.parent.node.children[e];this.parent.isAttached&&re.sendMessage(t,V.Msg.BeforeAttach),this.parent.node.insertBefore(t.node,r),this.parent.isAttached&&re.sendMessage(t,V.Msg.AfterAttach)}moveWidget(e,t,r){this.parent.isAttached&&re.sendMessage(r,V.Msg.BeforeDetach),this.parent.node.removeChild(r.node),this.parent.isAttached&&re.sendMessage(r,V.Msg.AfterDetach);let n=this.parent.node.children[t];this.parent.isAttached&&re.sendMessage(r,V.Msg.BeforeAttach),this.parent.node.insertBefore(r.node,n),this.parent.isAttached&&re.sendMessage(r,V.Msg.AfterAttach)}detachWidget(e,t){this.parent.isAttached&&re.sendMessage(t,V.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&re.sendMessage(t,V.Msg.AfterDetach)}};(function(i){function e(t){return Math.max(0,Math.floor(t))}i.clampDimension=e})(Np||(Np={}));zp=Np,Ls=class extends Ll{constructor(e){super(),this.widgetOffset=0,this._fixed=0,this._spacing=4,this._dirty=!1,this._hasNormedSizes=!1,this._sizers=[],this._items=[],this._handles=[],this._box=null,this._alignment="start",this._orientation="horizontal",this.renderer=e.renderer,e.orientation!==void 0&&(this._orientation=e.orientation),e.alignment!==void 0&&(this._alignment=e.alignment),e.spacing!==void 0&&(this._spacing=Np.clampDimension(e.spacing))}dispose(){for(let e of this._items)e.dispose();this._box=null,this._items.length=0,this._sizers.length=0,this._handles.length=0,super.dispose()}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._orientation=e,this.parent&&(this.parent.dataset.orientation=e,this.parent.fit()))}get alignment(){return this._alignment}set alignment(e){this._alignment!==e&&(this._alignment=e,this.parent&&(this.parent.dataset.alignment=e,this.parent.update()))}get spacing(){return this._spacing}set spacing(e){e=Np.clampDimension(e),this._spacing!==e&&(this._spacing=e,this.parent&&this.parent.fit())}get handles(){return this._handles}absoluteSizes(){return this._sizers.map(e=>e.size)}relativeSizes(){return Sa.normalize(this._sizers.map(e=>e.size))}setRelativeSizes(e,t=!0){let r=this._sizers.length,n=e.slice(0,r);for(;n.length<r;)n.push(0);let s=Sa.normalize(n);for(let o=0;o<r;++o){let a=this._sizers[o];a.sizeHint=s[o],a.size=s[o]}this._hasNormedSizes=!0,t&&this.parent&&this.parent.update()}moveHandle(e,t){let r=this._handles[e];if(!r||r.classList.contains("lm-mod-hidden"))return;let n;if(this._orientation==="horizontal"?n=t-r.offsetLeft:n=t-r.offsetTop,n!==0){for(let s of this._sizers)s.size>0&&(s.sizeHint=s.size);Rn.adjust(this._sizers,e,n),this.parent&&this.parent.update()}}init(){this.parent.dataset.orientation=this.orientation,this.parent.dataset.alignment=this.alignment,super.init()}attachWidget(e,t){let r=new ic(t),n=Sa.createHandle(this.renderer),s=Sa.averageSize(this._sizers),o=Sa.createSizer(s);ae.insert(this._items,e,r),ae.insert(this._sizers,e,o),ae.insert(this._handles,e,n),this.parent.isAttached&&re.sendMessage(t,V.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.node.appendChild(n),this.parent.isAttached&&re.sendMessage(t,V.Msg.AfterAttach),this.parent.fit()}moveWidget(e,t,r){ae.move(this._items,e,t),ae.move(this._sizers,e,t),ae.move(this._handles,e,t),this.parent.fit()}detachWidget(e,t){let r=ae.removeAt(this._items,e),n=ae.removeAt(this._handles,e);ae.removeAt(this._sizers,e),this.parent.isAttached&&re.sendMessage(t,V.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.node.removeChild(n),this.parent.isAttached&&re.sendMessage(t,V.Msg.AfterDetach),r.dispose(),this.parent.fit()}
6177onBeforeShow(e){super.onBeforeShow(e),this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e),this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){this.parent.isVisible&&this._update(e.width,e.height)}onUpdateRequest(e){this.parent.isVisible&&this._update(-1,-1)}onFitRequest(e){this.parent.isAttached&&this._fit()}updateItemPosition(e,t,r,n,s,o,a){let l=this._items[e];if(l.isHidden)return;let u=this._handles[e].style;t?(r+=this.widgetOffset,l.update(r,n,a,s),r+=a,u.top=`${n}px`,u.left=`${r}px`,u.width=`${this._spacing}px`,u.height=`${s}px`):(n+=this.widgetOffset,l.update(r,n,o,a),n+=a,u.top=`${n}px`,u.left=`${r}px`,u.width=`${o}px`,u.height=`${this._spacing}px`)}_fit(){let e=0,t=-1;for(let l=0,u=this._items.length;l<u;++l)this._items[l].isHidden?this._handles[l].classList.add("lm-mod-hidden"):(this._handles[l].classList.remove("lm-mod-hidden"),t=l,e++);t!==-1&&this._handles[t].classList.add("lm-mod-hidden"),this._fixed=this._spacing*Math.max(0,e-1)+this.widgetOffset*this._items.length;let r=this._orientation==="horizontal",n=r?this._fixed:0,s=r?0:this._fixed;for(let l=0,u=this._items.length;l<u;++l){let c=this._items[l],d=this._sizers[l];if(d.size>0&&(d.sizeHint=d.size),c.isHidden){d.minSize=0,d.maxSize=0;continue}c.fit(),d.stretch=Ls.getStretch(c.widget),r?(d.minSize=c.minWidth,d.maxSize=c.maxWidth,n+=c.minWidth,s=Math.max(s,c.minHeight)):(d.minSize=c.minHeight,d.maxSize=c.maxHeight,s+=c.minHeight,n=Math.max(n,c.minWidth))}let o=this._box=yt.boxSizing(this.parent.node);n+=o.horizontalSum,s+=o.verticalSum;let a=this.parent.node.style;a.minWidth=`${n}px`,a.minHeight=`${s}px`,this._dirty=!0,this.parent.parent&&re.sendMessage(this.parent.parent,V.Msg.FitRequest),this._dirty&&re.sendMessage(this.parent,V.Msg.UpdateRequest)}_update(e,t){this._dirty=!1;let r=0;for(let d=0,f=this._items.length;d<f;++d)r+=+!this._items[d].isHidden;if(r===0&&this.widgetOffset===0)return;e<0&&(e=this.parent.node.offsetWidth),t<0&&(t=this.parent.node.offsetHeight),this._box||(this._box=yt.boxSizing(this.parent.node));let n=this._box.paddingTop,s=this._box.paddingLeft,o=e-this._box.horizontalSum,a=t-this._box.verticalSum,l=0,u=0,c=this._orientation==="horizontal";if(r>0){let d;if(c?d=Math.max(0,o-this._fixed):d=Math.max(0,a-this._fixed),this._hasNormedSizes){for(let m of this._sizers)m.sizeHint*=d;this._hasNormedSizes=!1}let f=Rn.calc(this._sizers,d);if(f>0)switch(this._alignment){case"start":break;case"center":l=0,u=f/2;break;case"end":l=0,u=f;break;case"justify":l=f/r,u=0;break;default:throw"unreachable"}}for(let d=0,f=this._items.length;d<f;++d){let b=this._items[d].isHidden?0:this._sizers[d].size+l;this.updateItemPosition(d,c,c?s+u:s,c?n:n+u,a,o,b);let y=this.widgetOffset+(this._handles[d].classList.contains("lm-mod-hidden")?0:this._spacing);c?s+=b+y:n+=b+y}}};(function(i){function e(r){return Sa.stretchProperty.get(r)}i.getStretch=e;function t(r,n){Sa.stretchProperty.set(r,n)}i.setStretch=t})(Ls||(Ls={}));(function(i){i.stretchProperty=new Ge({name:"stretch",create:()=>0,coerce:(o,a)=>Math.max(0,Math.floor(a)),changed:s});function e(o){let a=new So;return a.sizeHint=Math.floor(o),a}i.createSizer=e;function t(o){let a=o.createHandle();return a.style.position="absolute",a.style.contain="style",a}i.createHandle=t;function r(o){return o.reduce((a,l)=>a+l.size,0)/o.length||0}i.averageSize=r;function n(o){let a=o.length;if(a===0)return[];let l=o.reduce((u,c)=>u+Math.abs(c),0);return l===0?o.map(u=>1/a):o.map(u=>u/l)}i.normalize=n;function s(o){o.parent&&o.parent.layout instanceof Ls&&o.parent.fit()}})(Sa||(Sa={}));SS=class extends Ls{constructor(e){super({...e,orientation:e.orientation||"vertical"}),this._titles=[],this.titleSpace=e.titleSpace||22}get titleSpace(){return this.widgetOffset}set titleSpace(e){e=zp.clampDimension(e),this.widgetOffset!==e&&(this.widgetOffset=e,this.parent&&this.parent.fit())}get titles(){return this._titles}dispose(){this.isDisposed||(this._titles.length=0,super.dispose())}updateTitle(e,t){let r=this._titles[e],n=r.classList.contains("lm-mod-expanded"),s=rv.createTitle(this.renderer,t.title,n);this._titles[e]=s,this.parent.node.replaceChild(s,r)}insertWidget(e,t){t.id||(t.id=`id-${Ia.UUID.uuid4()}`),super.insertWidget(e,t)}attachWidget(e,t){let r=rv.createTitle(this.renderer,t.title);ae.insert(this._titles,e,r),this.parent.node.appendChild(r),t.node.setAttribute("role","regi
6177on"),t.node.setAttribute("aria-labelledby",r.id),super.attachWidget(e,t)}moveWidget(e,t,r){ae.move(this._titles,e,t),super.moveWidget(e,t,r)}detachWidget(e,t){let r=ae.removeAt(this._titles,e);this.parent.node.removeChild(r),super.detachWidget(e,t)}updateItemPosition(e,t,r,n,s,o,a){let l=this._titles[e].style;l.top=`${n}px`,l.left=`${r}px`,l.height=`${this.widgetOffset}px`,t?l.width=`${s}px`:l.width=`${o}px`,super.updateItemPosition(e,t,r,n,s,o,a)}};(function(i){function e(t,r,n=!0){let s=t.createSectionTitle(r);return s.style.position="absolute",s.style.contain="strict",s.setAttribute("aria-label",`${r.label} Section`),s.setAttribute("aria-expanded",n?"true":"false"),s.setAttribute("aria-controls",r.owner.id),n&&s.classList.add("lm-mod-expanded"),s}i.createTitle=e})(rv||(rv={}));rc=class extends V{constructor(e={}){super(),this.addClass("lm-Panel"),this.layout=CS.createLayout(e)}get widgets(){return this.layout.widgets}addWidget(e){this.layout.addWidget(e)}insertWidget(e,t){this.layout.insertWidget(e,t)}};(function(i){function e(t){return t.layout||new Ll}i.createLayout=e})(CS||(CS={}));nc=class extends rc{constructor(e={}){super({layout:IS.createLayout(e)}),this._handleMoved=new X(this),this._pressData=null,this.addClass("lm-SplitPanel")}dispose(){this._releaseMouse(),super.dispose()}get orientation(){return this.layout.orientation}set orientation(e){this.layout.orientation=e}get alignment(){return this.layout.alignment}set alignment(e){this.layout.alignment=e}get spacing(){return this.layout.spacing}set spacing(e){this.layout.spacing=e}get renderer(){return this.layout.renderer}get handleMoved(){return this._handleMoved}get handles(){return this.layout.handles}relativeSizes(){return this.layout.relativeSizes()}setRelativeSizes(e,t=!0){this.layout.setRelativeSizes(e,t)}handleEvent(e){switch(e.type){case"pointerdown":this._evtPointerDown(e);break;case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"keydown":this._evtKeyDown(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("pointerdown",this)}onAfterDetach(e){this.node.removeEventListener("pointerdown",this),this._releaseMouse()}onChildAdded(e){e.child.addClass("lm-SplitPanel-child"),this._releaseMouse()}onChildRemoved(e){e.child.removeClass("lm-SplitPanel-child"),this._releaseMouse()}_evtKeyDown(e){this._pressData&&(e.preventDefault(),e.stopPropagation()),e.keyCode===27&&this._releaseMouse()}_evtPointerDown(e){if(e.button!==0)return;let t=this.layout,r=ae.findFirstIndex(t.handles,u=>u.contains(e.target));if(r===-1)return;e.preventDefault(),e.stopPropagation(),document.addEventListener("pointerup",this,!0),document.addEventListener("pointermove",this,!0),document.addEventListener("keydown",this,!0),document.addEventListener("contextmenu",this,!0);let n,s=t.handles[r],o=s.getBoundingClientRect();t.orientation==="horizontal"?n=e.clientX-o.left:n=e.clientY-o.top;let a=window.getComputedStyle(s),l=gt.overrideCursor(a.cursor);this._pressData={index:r,delta:n,override:l}}_evtPointerMove(e){e.preventDefault(),e.stopPropagation();let t,r=this.layout,n=this.node.getBoundingClientRect();r.orientation==="horizontal"?t=e.clientX-n.left-this._pressData.delta:t=e.clientY-n.top-this._pressData.delta,r.moveHandle(this._pressData.index,t)}_evtPointerUp(e){e.button===0&&(e.preventDefault(),e.stopPropagation(),this._releaseMouse())}_releaseMouse(){this._pressData&&(this._pressData.override.dispose(),this._pressData=null,this._handleMoved.emit(),document.removeEventListener("keydown",this,!0),document.removeEventListener("pointerup",this,!0),document.removeEventListener("pointermove",this,!0),document.removeEventListener("contextmenu",this,!0))}};(function(i){class e{createHandle(){let s=document.createElement("div");return s.className="lm-SplitPanel-handle",s}}i.Renderer=e,i.defaultRenderer=new e;function t(n){return Ls.getStretch(n)}i.getStretch=t;function r(n,s){Ls.setStretch(n,s)}i.setStretch=r})(nc||(nc={}));(function(i){function e(t){return t.layout||new Ls({renderer:t.renderer||nc.defaultRenderer,orientation:t.orientation,alignment:t.alignment,spacing:t.spacing})}i.createLayout=e})(IS||(IS={}));Bp=class extends nc{constructor(e={}){super({...e,layout:MS.createLayout(e)}),this._widgetSizesCache=new WeakMap,this._expansionToggled=new X(this),this.addClass("lm-AccordionPanel")}get renderer(){return this.layout.renderer}get titleSpace(){return this.layout.titleSpace}set titleSpace(e){this.layout.titleSpace=e}get titles(){return this.layout.titles}get expansionToggled(){return this._expansionToggled}addWidget(e){super.addWidget(e),e.title.changed.connect(this._onTitleChanged,this)}collapse(e){let t=this.layout.widgets[e];t&&!t.isHidden&&this._toggleExpansion(e)}expand(e){let t=this.layout.widgets[e];t&&t.isHidden&&this._toggleExpansion(e)}insertWidget(e,t){super.insertWidget(e,t),t.title.changed.connect(this._onTitleChanged,this)}handleEvent(e){switch(super.handleEvent(e),e.type){case"click":this._evtClick(e);break;case"keydown":this._eventKeyDown(e);break}}onBeforeAttach(e){this.node.addEventListener("click",this),this.node.addEventListener("keydown",this),super.onBeforeAttach(e)}onAfterDetach(e){super.onAfterDetach(e),this.node.removeEventListener("click",this),this.node.removeEventListener("keydown",this)}_onTitleChanged(e){let t=ae.findFirstIndex(this.widgets,r=>r.contains(e.owner));t>=0&&(this.layout.updateTitle(t,e.owner),this.update())}_computeWidgetSize(e){let t=this.layout,r=t.widgets[e];if(!r)return;let n=r.isHidden,s=t.absoluteSizes(),o=(n?-1:1)*this.spacing,a=s.reduce((u,c)=>u+c),l=[...s];if(n){let u=this._widgetSizesCache.get(r);if(!u)return;l[e]+=u;let c=l.map(d=>d-u>0).lastIndexOf(!0);c===-1?l.forEach((d,f)=>{f!==e&&(l[f]-=s[f]/a*(u-o))}):l[c]-=u-o}else{let u=s[e];this._widgetSizesCache.set(r,u),l[e]=0;let c=l.map(d=>d>0).lastIndexOf(!0);if(c===-1)return;l[c]=s[c]+u+o}return l.map(u=>u/(a+o))}_evtClick(e){let t=e.target;if(t){let r=ae.findFirstIndex(this.titles,n=>n.contains(t));r>=0&&(e.preventDefault(),e.stopPropagation(),this._toggleExpansion(r))}}
6177_eventKeyDown(e){if(e.defaultPrevented)return;let t=e.target,r=!1;if(t){let n=ae.findFirstIndex(this.titles,s=>s.contains(t));if(n>=0){let s=e.keyCode.toString();if(e.key.match(/Space|Enter/)||s.match(/13|32/))t.click(),r=!0;else if(this.orientation==="horizontal"?e.key.match(/ArrowLeft|ArrowRight/)||s.match(/37|39/):e.key.match(/ArrowUp|ArrowDown/)||s.match(/38|40/)){let o=e.key.match(/ArrowLeft|ArrowUp/)||s.match(/37|38/)?-1:1,a=this.titles.length,l=(n+a+o)%a;this.titles[l].focus(),r=!0}else e.key==="End"||s==="35"?(this.titles[this.titles.length-1].focus(),r=!0):(e.key==="Home"||s==="36")&&(this.titles[0].focus(),r=!0)}r&&e.preventDefault()}}_toggleExpansion(e){let t=this.titles[e],r=this.layout.widgets[e],n=this._computeWidgetSize(e);n&&this.setRelativeSizes(n,!1),r.isHidden?(t.classList.add("lm-mod-expanded"),t.setAttribute("aria-expanded","true"),r.show()):(t.classList.remove("lm-mod-expanded"),t.setAttribute("aria-expanded","false"),r.hide()),this._expansionToggled.emit(e)}};(function(i){class e extends nc.Renderer{constructor(){super(),this.titleClassName="lm-AccordionPanel-title",this._titleID=0,this._titleKeys=new WeakMap,this._uuid=++e._nInstance}createCollapseIcon(r){return document.createElement("span")}createSectionTitle(r){let n=document.createElement("h3");n.setAttribute("tabindex","0"),n.id=this.createTitleKey(r),n.className=this.titleClassName;for(let a in r.dataset)n.dataset[a]=r.dataset[a];let s=n.appendChild(this.createCollapseIcon(r));s.className="lm-AccordionPanel-titleCollapser";let o=n.appendChild(document.createElement("span"));return o.className="lm-AccordionPanel-titleLabel",o.textContent=r.label,o.title=r.caption||r.label,n}createTitleKey(r){let n=this._titleKeys.get(r);return n===void 0&&(n=`title-key-${this._uuid}-${this._titleID++}`,this._titleKeys.set(r,n)),n}}e._nInstance=0,i.Renderer=e,i.defaultRenderer=new e})(Bp||(Bp={}));(function(i){function e(t){return t.layout||new SS({renderer:t.renderer||Bp.defaultRenderer,orientation:t.orientation,alignment:t.alignment,spacing:t.spacing,titleSpace:t.titleSpace})}i.createLayout=e})(MS||(MS={}));Ni=class extends Ll{constructor(e={}){super(),this._fixed=0,this._spacing=4,this._dirty=!1,this._sizers=[],this._items=[],this._box=null,this._alignment="start",this._direction="top-to-bottom",e.direction!==void 0&&(this._direction=e.direction),e.alignment!==void 0&&(this._alignment=e.alignment),e.spacing!==void 0&&(this._spacing=zp.clampDimension(e.spacing))}dispose(){for(let e of this._items)e.dispose();this._box=null,this._items.length=0,this._sizers.length=0,super.dispose()}get direction(){return this._direction}set direction(e){this._direction!==e&&(this._direction=e,this.parent&&(this.parent.dataset.direction=e,this.parent.fit()))}get alignment(){return this._alignment}set alignment(e){this._alignment!==e&&(this._alignment=e,this.parent&&(this.parent.dataset.alignment=e,this.parent.update()))}get spacing(){return this._spacing}set spacing(e){e=zp.clampDimension(e),this._spacing!==e&&(this._spacing=e,this.parent&&this.parent.fit())}init(){this.parent.dataset.direction=this.direction,this.parent.dataset.alignment=this.alignment,super.init()}attachWidget(e,t){ae.insert(this._items,e,new ic(t)),ae.insert(this._sizers,e,new So),this.parent.isAttached&&re.sendMessage(t,V.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.isAttached&&re.sendMessage(t,V.Msg.AfterAttach),this.parent.fit()}moveWidget(e,t,r){ae.move(this._items,e,t),ae.move(this._sizers,e,t),this.parent.update()}detachWidget(e,t){let r=ae.removeAt(this._items,e);ae.removeAt(this._sizers,e),this.parent.isAttached&&re.sendMessage(t,V.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&re.sendMessage(t,V.Msg.AfterDetach),r.dispose(),this.parent.fit()}onBeforeShow(e){super.onBeforeShow(e),this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e),this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){this.parent.isVisible&&this._update(e.width,e.height)}onUpdateRequest(e){this.parent.isVisible&&this._update(-1,-1)}onFitRequest(e){this.parent.isAttached&&this._fit()}_fit(){let e=0;for(let a=0,l=this._items.length;a<l;++a)e+=+!this._items[a].isHidden;this._fixed=this._spacing*Math.max(0,e-1);let t=tc.isHorizontal(this._direction),r=t?this._fixed:0,n=t?0:this._fixed;for(let a=0,l=this._items.length;a<l;++a){let u=this._items[a],c=this._sizers[a];if(u.isHidden){c.minSize=0,c.maxSize=0;continue}
6177u.fit(),c.sizeHint=Ni.getSizeBasis(u.widget),c.stretch=Ni.getStretch(u.widget),t?(c.minSize=u.minWidth,c.maxSize=u.maxWidth,r+=u.minWidth,n=Math.max(n,u.minHeight)):(c.minSize=u.minHeight,c.maxSize=u.maxHeight,n+=u.minHeight,r=Math.max(r,u.minWidth))}let s=this._box=yt.boxSizing(this.parent.node);r+=s.horizontalSum,n+=s.verticalSum;let o=this.parent.node.style;o.minWidth=`${r}px`,o.minHeight=`${n}px`,this._dirty=!0,this.parent.parent&&re.sendMessage(this.parent.parent,V.Msg.FitRequest),this._dirty&&re.sendMessage(this.parent,V.Msg.UpdateRequest)}_update(e,t){this._dirty=!1;let r=0;for(let d=0,f=this._items.length;d<f;++d)r+=+!this._items[d].isHidden;if(r===0)return;e<0&&(e=this.parent.node.offsetWidth),t<0&&(t=this.parent.node.offsetHeight),this._box||(this._box=yt.boxSizing(this.parent.node));let n=this._box.paddingTop,s=this._box.paddingLeft,o=e-this._box.horizontalSum,a=t-this._box.verticalSum,l;switch(this._direction){case"left-to-right":l=Rn.calc(this._sizers,Math.max(0,o-this._fixed));break;case"top-to-bottom":l=Rn.calc(this._sizers,Math.max(0,a-this._fixed));break;case"right-to-left":l=Rn.calc(this._sizers,Math.max(0,o-this._fixed)),s+=o;break;case"bottom-to-top":l=Rn.calc(this._sizers,Math.max(0,a-this._fixed)),n+=a;break;default:throw"unreachable"}let u=0,c=0;if(l>0)switch(this._alignment){case"start":break;case"center":u=0,c=l/2;break;case"end":u=0,c=l;break;case"justify":u=l/r,c=0;break;default:throw"unreachable"}for(let d=0,f=this._items.length;d<f;++d){let m=this._items[d];if(m.isHidden)continue;let b=this._sizers[d].size;switch(this._direction){case"left-to-right":m.update(s+c,n,b+u,a),s+=b+u+this._spacing;break;case"top-to-bottom":m.update(s,n+c,o,b+u),n+=b+u+this._spacing;break;case"right-to-left":m.update(s-c-b-u,n,b+u,a),s-=b+u+this._spacing;break;case"bottom-to-top":m.update(s,n-c-b-u,o,b+u),n-=b+u+this._spacing;break;default:throw"unreachable"}}}};(function(i){function e(s){return tc.stretchProperty.get(s)}i.getStretch=e;function t(s,o){tc.stretchProperty.set(s,o)}i.setStretch=t;function r(s){return tc.sizeBasisProperty.get(s)}i.getSizeBasis=r;function n(s,o){tc.sizeBasisProperty.set(s,o)}i.setSizeBasis=n})(Ni||(Ni={}));(function(i){i.stretchProperty=new Ge({name:"stretch",create:()=>0,coerce:(n,s)=>Math.max(0,Math.floor(s)),changed:r}),i.sizeBasisProperty=new Ge({name:"sizeBasis",create:()=>0,coerce:(n,s)=>Math.max(0,Math.floor(s)),changed:r});function e(n){return n==="left-to-right"||n==="right-to-left"}i.isHorizontal=e;function t(n){return Math.max(0,Math.floor(n))}i.clampSpacing=t;function r(n){n.parent&&n.parent.layout instanceof Ni&&n.parent.fit()}})(tc||(tc={}));ih=class extends rc{constructor(e={}){super({layout:ES.createLayout(e)}),this.addClass("lm-BoxPanel")}get direction(){return this.layout.direction}set direction(e){this.layout.direction=e}get alignment(){return this.layout.alignment}set alignment(e){this.layout.alignment=e}get spacing(){return this.layout.spacing}set spacing(e){this.layout.spacing=e}onChildAdded(e){e.child.addClass("lm-BoxPanel-child")}onChildRemoved(e){e.child.removeClass("lm-BoxPanel-child")}};(function(i){function e(s){return Ni.getStretch(s)}i.getStretch=e;function t(s,o){Ni.setStretch(s,o)}i.setStretch=t;function r(s){return Ni.getSizeBasis(s)}i.getSizeBasis=r;function n(s,o){Ni.setSizeBasis(s,o)}i.setSizeBasis=n})(ih||(ih={}));(function(i){function e(t){return t.layout||new Ni(t)}i.createLayout=e})(ES||(ES={}));rh=class extends V{constructor(e){super({node:wa.createNode()}),this._activeIndex=-1,this._items=[],this._results=null,this.addClass("lm-CommandPalette"),this.setFlag(V.Flag.DisallowLayout),this.commands=e.commands,this.renderer=e.renderer||rh.defaultRenderer,this.commands.commandChanged.connect(this._onGenericChange,this),this.commands.keyBindingChanged.connect(this._onGenericChange,this)}dispose(){this._items.length=0,this._results=null,super.dispose()}get searchNode(){return this.node.getElementsByClassName("lm-CommandPalette-search")[0]}get inputNode(){return this.node.getElementsByClassName("lm-CommandPalette-input")[0]}get contentNode(){return this.node.getElementsByClassName("lm-CommandPalette-content")[0]}get items(){return this._items}addItem(e){let t=wa.createItem(this.commands,e);return this._items.push(t),this.refresh(),t}addItems(e){let t=e.map(r=>wa.createItem(this.commands,r));return t.forEach(r=>this._items.push(r)),this.refresh(),t}removeItem(e){this.removeItemAt(this._items.indexOf(e))}removeItemAt(e){ae.removeAt(this._items,e)&&this.refresh()}clearItems(){this._items.length!==0&&(this._items.length=0,this.refresh())}refresh(){if(this._results=null,this.inputNode.value!==""){let e=this.node.getElementsByClassName("lm-close-icon")[0];e.style.display="inherit"}else{let e=this.node.getElementsByClassName("lm-close-icon")[0];e.style.display="none"}this.update()}handleEvent(e){switch(e.type){case"click":this._evtClick(e);break;case"keydown":this._evtKeyDown(e);break;case"input":this.refresh();break;case"focus":case"blur":this._toggleFocused();break}}onBeforeAttach(e){this.node.addEventListener("click",this),this.node.addEventListener("keydown",this),this.node.addEventListener("input",this),this.node.addEventListener("focus",this,!0),this.node.addEventListener("blur",this,!0)}onAfterDetach(e){this.node.removeEventListener("click",this),this.node.removeEventListener("keydown",this),this.node.removeEventListener("input",this),this.node.removeEventListener("focus",this,!0),this.node.removeEventListener("blur",this,!0)}onAfterShow(e){this.update(),super.onAfterShow(e)}
6177onActivateRequest(e){if(this.isAttached){let t=this.inputNode;t.focus(),t.select()}}onUpdateRequest(e){if(this.isHidden)return;let t=this.inputNode.value,r=this.contentNode,n=this._results;if(n||(n=this._results=wa.search(this._items,t),this._activeIndex=t?ae.findFirstIndex(n,wa.canActivate):-1),!t&&n.length===0){Wt.render(null,r);return}if(t&&n.length===0){let l=this.renderer.renderEmptyMessage({query:t});Wt.render(l,r);return}let s=this.renderer,o=this._activeIndex,a=new Array(n.length);for(let l=0,u=n.length;l<u;++l){let c=n[l];if(c.type==="header"){let d=c.indices,f=c.category;a[l]=s.renderHeader({category:f,indices:d})}else{let d=c.item,f=c.indices,m=l===o;a[l]=s.renderItem({item:d,indices:f,active:m})}}if(Wt.render(a,r),o<0||o>=n.length)r.scrollTop=0;else{let l=r.children[o];yt.scrollIntoViewIfNeeded(r,l)}}_evtClick(e){if(e.button!==0)return;if(e.target.classList.contains("lm-close-icon")){this.inputNode.value="",this.refresh();return}let t=ae.findFirstIndex(this.contentNode.children,r=>r.contains(e.target));t!==-1&&(e.preventDefault(),e.stopPropagation(),this._execute(t))}_evtKeyDown(e){if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey))switch(e.keyCode){case 13:e.preventDefault(),e.stopPropagation(),this._execute(this._activeIndex);break;case 38:e.preventDefault(),e.stopPropagation(),this._activatePreviousItem();break;case 40:e.preventDefault(),e.stopPropagation(),this._activateNextItem();break}}_activateNextItem(){if(!this._results||this._results.length===0)return;let e=this._activeIndex,t=this._results.length,r=e<t-1?e+1:0,n=r===0?t-1:r-1;this._activeIndex=ae.findFirstIndex(this._results,wa.canActivate,r,n),this.update()}_activatePreviousItem(){if(!this._results||this._results.length===0)return;let e=this._activeIndex,t=this._results.length,r=e<=0?t-1:e-1,n=r===t-1?0:r+1;this._activeIndex=ae.findLastIndex(this._results,wa.canActivate,r,n),this.update()}_execute(e){if(!this._results)return;let t=this._results[e];if(t){if(t.type==="header"){let r=this.inputNode;r.value=`${t.category.toLowerCase()} `,r.focus(),this.refresh();return}t.item.isEnabled&&(this.commands.execute(t.item.command,t.item.args),this.inputNode.value="",this.refresh())}}_toggleFocused(){let e=document.activeElement===this.inputNode;this.toggleClass("lm-mod-focused",e)}_onGenericChange(){this.refresh()}};(function(i){class e{renderHeader(r){let n=this.formatHeader(r);return ne.li({className:"lm-CommandPalette-header"},n)}renderItem(r){let n=this.createItemClass(r),s=this.createItemDataset(r);return r.item.isToggleable?ne.li({className:n,dataset:s,role:"menuitemcheckbox","aria-checked":`${r.item.isToggled}`},this.renderItemIcon(r),this.renderItemContent(r),this.renderItemShortcut(r)):ne.li({className:n,dataset:s,role:"menuitem"},this.renderItemIcon(r),this.renderItemContent(r),this.renderItemShortcut(r))}renderEmptyMessage(r){let n=this.formatEmptyMessage(r);return ne.li({className:"lm-CommandPalette-emptyMessage"},n)}renderItemIcon(r){let n=this.createIconClass(r);return ne.div({className:n},r.item.icon,r.item.iconLabel)}renderItemContent(r){return ne.div({className:"lm-CommandPalette-itemContent"},this.renderItemLabel(r),this.renderItemCaption(r))}renderItemLabel(r){let n=this.formatItemLabel(r);return ne.div({className:"lm-CommandPalette-itemLabel"},n)}renderItemCaption(r){let n=this.formatItemCaption(r);return ne.div({className:"lm-CommandPalette-itemCaption"},n)}renderItemShortcut(r){let n=this.formatItemShortcut(r);return ne.div({className:"lm-CommandPalette-itemShortcut"},n)}createItemClass(r){let n="lm-CommandPalette-item";r.item.isEnabled||(n+=" lm-mod-disabled"),r.item.isToggled&&(n+=" lm-mod-toggled"),r.active&&(n+=" lm-mod-active");let s=r.item.className;return s&&(n+=` ${s}`),n}createItemDataset(r){return{...r.item.dataset,command:r.item.command}}createIconClass(r){let n="lm-CommandPalette-itemIcon",s=r.item.iconClass;return s?`${n} ${s}`:n}formatHeader(r){return!r.indices||r.indices.length===0?r.category:Jd.highlight(r.category,r.indices,ne.mark)}formatEmptyMessage(r){return`No commands found that match '${r.query}'`}formatItemShortcut(r){let n=r.item.keyBinding;return n?Jt.formatKeystroke(n.keys):null}formatItemLabel(r){return!r.indices||r.indices.length===0?r.item.label:Jd.highlight(r.item.label,r.indices,ne.mark)}formatItemCaption(r){return r.item.caption}}i.Renderer=e,i.defaultRenderer=new e})(rh||(rh={}));(function(i){function e(){let f=document.createElement("div"),m=document.createElement("div"),b=document.createElement("div"),y=document.createElement("input"),x=document.createElement("ul"),M=document.createElement("button");return m.className="lm-CommandPalette-search",b.className="lm-CommandPalette-wrapper",y.className="lm-CommandPalette-input",M.className="lm-close-icon",x.className="lm-CommandPalette-content",x.setAttribute("role","menu"),y.spellcheck=!1,b.appendChild(y),b.appendChild(M),m.appendChild(b),f.appendChild(m),f.appendChild(x),f}i.createNode=e;function t(f,m){return new d(f,m)}i.createItem=t;function r(f,m){let b=a(f,m);return b.sort(u),c(b)}i.search=r;function n(f){return f.type==="item"&&f.item.isEnabled}i.canActivate=n;function s(f){return f.trim().replace(/\s+/g," ")}function o(f){return f.replace(/\s+/g,"").toLowerCase()}function a(f,m){m=o(m);let b=[];for(let y=0,x=f.length;y<x;++y){let M=f[y];if(!M.isVisible)continue;if(!m){b.push({matchType:3,categoryIndices:null,labelIndices:null,
6177score:0,item:M});continue}let T=l(M,m);T&&(M.isEnabled||(T.score+=1e3),b.push(T))}return b}function l(f,m){let b=f.category.toLowerCase(),y=f.label.toLowerCase(),x=`${b} ${y}`,M=1/0,T=null,E=/\b\w/g;for(;;){let _=E.exec(x);if(!_)break;let h=Jd.matchSumOfDeltas(x,m,_.index);if(!h)break;h.score<=M&&(M=h.score,T=h.indices)}if(!T||M===1/0)return null;let A=b.length+1,R=ae.lowerBound(T,A,(_,h)=>_-h),$=T.slice(0,R),v=T.slice(R);for(let _=0,h=v.length;_<h;++_)v[_]-=A;return $.length===0?{matchType:0,categoryIndices:null,labelIndices:v,score:M,item:f}:v.length===0?{matchType:1,categoryIndices:$,labelIndices:null,score:M,item:f}:{matchType:2,categoryIndices:$,labelIndices:v,score:M,item:f}}function u(f,m){let b=f.matchType-m.matchType;if(b!==0)return b;let y=f.score-m.score;if(y!==0)return y;let x=0,M=0;switch(f.matchType){case 0:x=f.labelIndices[0],M=m.labelIndices[0];break;case 1:case 2:x=f.categoryIndices[0],M=m.categoryIndices[0];break}if(x!==M)return x-M;let T=f.item.category.localeCompare(m.item.category);if(T!==0)return T;let E=f.item.rank,A=m.item.rank;return E!==A?E<A?-1:1:f.item.label.localeCompare(m.item.label)}function c(f){let m=[];for(let b=0,y=f.length;b<y;++b){let{item:x,categoryIndices:M,labelIndices:T}=f[b],E=x.category;(b===0||E!==f[b-1].item.category)&&m.push({type:"header",category:E,indices:M}),m.push({type:"item",item:x,indices:T})}return m}class d{constructor(m,b){this._commands=m,this.category=s(b.category),this.command=b.command,this.args=b.args||Ia.JSONExt.emptyObject,this.rank=b.rank!==void 0?b.rank:1/0}get label(){return this._commands.label(this.command,this.args)}get icon(){return this._commands.icon(this.command,this.args)}get iconClass(){return this._commands.iconClass(this.command,this.args)}get iconLabel(){return this._commands.iconLabel(this.command,this.args)}get caption(){return this._commands.caption(this.command,this.args)}get className(){return this._commands.className(this.command,this.args)}get dataset(){return this._commands.dataset(this.command,this.args)}get isEnabled(){return this._commands.isEnabled(this.command,this.args)}get isToggled(){return this._commands.isToggled(this.command,this.args)}get isToggleable(){return this._commands.isToggleable(this.command,this.args)}get isVisible(){return this._commands.isVisible(this.command,this.args)}get keyBinding(){let{command:m,args:b}=this;return ae.findLastValue(this._commands.keyBindings,y=>y.command===m&&Ia.JSONExt.deepEqual(y.args,b))||null}}})(wa||(wa={}));Co=class extends V{constructor(e){super({node:Hr.createNode()}),this._childIndex=-1,this._activeIndex=-1,this._openTimerID=0,this._closeTimerID=0,this._items=[],this._childMenu=null,this._parentMenu=null,this._aboutToClose=new X(this),this._menuRequested=new X(this),this.addClass("lm-Menu"),this.setFlag(V.Flag.DisallowLayout),this.commands=e.commands,this.renderer=e.renderer||Co.defaultRenderer}dispose(){this.close(),this._items.length=0,super.dispose()}get aboutToClose(){return this._aboutToClose}get menuRequested(){return this._menuRequested}get parentMenu(){return this._parentMenu}get childMenu(){return this._childMenu}get rootMenu(){let e=this;for(;e._parentMenu;)e=e._parentMenu;return e}get leafMenu(){let e=this;for(;e._childMenu;)e=e._childMenu;return e}get contentNode(){return this.node.getElementsByClassName("lm-Menu-content")[0]}get activeItem(){return this._items[this._activeIndex]||null}set activeItem(e){this.activeIndex=e?this._items.indexOf(e):-1}get activeIndex(){return this._activeIndex}set activeIndex(e){(e<0||e>=this._items.length)&&(e=-1),e!==-1&&!Hr.canActivate(this._items[e])&&(e=-1),this._activeIndex!==e&&(this._activeIndex=e,this._activeIndex>=0&&this.contentNode.childNodes[this._activeIndex]&&this.contentNode.childNodes[this._activeIndex].focus(),this.update())}get items(){return this._items}activateNextItem(){let e=this._items.length,t=this._activeIndex,r=t<e-1?t+1:0,n=r===0?e-1:r-1;this.activeIndex=ae.findFirstIndex(this._items,Hr.canActivate,r,n)}activatePreviousItem(){let e=this._items.length,t=this._activeIndex,r=t<=0?e-1:t-1,n=r===e-1?0:r+1;this.activeIndex=ae.findLastIndex(this._items,Hr.canActivate,r,n)}triggerActiveItem(){if(!this.isAttached)return;let e=this.activeItem;if(!e)return;if(this._cancelOpenTimer(),this._cancelCloseTimer(),e.type==="submenu"){this._openChildMenu(!0);return}this.rootMenu.close();let{command:t,args:r}=e;this.commands.isEnabled(t,r)?this.commands.execute(t,r):console.log(`Command '${t}' is disabled.`)}addItem(e){return this.insertItem(this._items.length,e)}insertItem(e,t){this.isAttached&&this.close(),this.activeIndex=-1;let r=Math.max(0,Math.min(e,this._items.length)),n=Hr.createItem(this,t);return ae.insert(this._items,r,n),this.update(),n}removeItem(e){this.removeItemAt(this._items.indexOf(e))}removeItemAt(e){this.isAttached&&this.close(),this.activeIndex=-1,ae.removeAt(this._items,e)&&this.update()}clearItems(){this.isAttached&&this.close(),this.activeIndex=-1,this._items.length!==0&&(this._items.length=0,this.update())}open(e,t,r={}){var n,s;if(this.isAttached)return;let o=r.forceX||!1,a=r.forceY||!1,l=(n=r.host)!==null&&n!==void 0?n:null,u=(s=r.ref)!==null&&s!==void 0?s:null;Hr.openRootMenu(this,e,t,o,a,l,u),this.activate()}handleEvent(e){switch(e.type){case"keydown":this._evtKeyDown(e);break;case"mouseup":this._evtMouseUp(e);break;case"mousemove":this._evtMouseMove(e);break;case"mouseenter":this._evtMouseEnter(e);break;case"mouseleave":this._evtMouseLeave(e);break;case"mousedown":this._evtMouseDown(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("keydown",this),this.node.addEventListener("mouseup",this),this.node.addEventListener("mousemove",this),this.node.addEventListener("mouseenter",this),this.node.addEventListener("mouseleave",this),this.node.addEventListener("contextmenu",this),document.addEventListener("mousedown",this,
6177!0)}onAfterDetach(e){this.node.removeEventListener("keydown",this),this.node.removeEventListener("mouseup",this),this.node.removeEventListener("mousemove",this),this.node.removeEventListener("mouseenter",this),this.node.removeEventListener("mouseleave",this),this.node.removeEventListener("contextmenu",this),document.removeEventListener("mousedown",this,!0)}onActivateRequest(e){this.isAttached&&this.node.focus()}onUpdateRequest(e){let t=this._items,r=this.renderer,n=this._activeIndex,s=Hr.computeCollapsed(t),o=new Array(t.length);for(let a=0,l=t.length;a<l;++a){let u=t[a],c=a===n,d=s[a];o[a]=r.renderItem({item:u,active:c,collapsed:d,onfocus:()=>{this.activeIndex=a}})}Wt.render(o,this.contentNode)}onCloseRequest(e){this._cancelOpenTimer(),this._cancelCloseTimer(),this.activeIndex=-1;let t=this._childMenu;t&&(this._childIndex=-1,this._childMenu=null,t._parentMenu=null,t.close());let r=this._parentMenu;r&&(this._parentMenu=null,r._childIndex=-1,r._childMenu=null,r.activate()),this.isAttached&&this._aboutToClose.emit(void 0),super.onCloseRequest(e)}_evtKeyDown(e){e.preventDefault(),e.stopPropagation();let t=e.keyCode;if(t===13){this.triggerActiveItem();return}if(t===27){this.close();return}if(t===37){this._parentMenu?this.close():this._menuRequested.emit("previous");return}if(t===38){this.activatePreviousItem();return}if(t===39){let o=this.activeItem;o&&o.type==="submenu"?this.triggerActiveItem():this.rootMenu._menuRequested.emit("next");return}if(t===40){this.activateNextItem();return}let r=Bn().keyForKeydownEvent(e);if(!r)return;let n=this._activeIndex+1,s=Hr.findMnemonic(this._items,r,n);s.index!==-1&&!s.multiple?(this.activeIndex=s.index,this.triggerActiveItem()):s.index!==-1?this.activeIndex=s.index:s.auto!==-1&&(this.activeIndex=s.auto)}_evtMouseUp(e){e.button===0&&(e.preventDefault(),e.stopPropagation(),this.triggerActiveItem())}_evtMouseMove(e){let t=ae.findFirstIndex(this.contentNode.children,n=>yt.hitTest(n,e.clientX,e.clientY));if(t===this._activeIndex)return;if(this.activeIndex=t,t=this.activeIndex,t===this._childIndex){this._cancelOpenTimer(),this._cancelCloseTimer();return}this._childIndex!==-1&&this._startCloseTimer(),this._cancelOpenTimer();let r=this.activeItem;!r||r.type!=="submenu"||!r.submenu||this._startOpenTimer()}_evtMouseEnter(e){for(let t=this._parentMenu;t;t=t._parentMenu)t._cancelOpenTimer(),t._cancelCloseTimer(),t.activeIndex=t._childIndex}_evtMouseLeave(e){if(this._cancelOpenTimer(),!this._childMenu){this.activeIndex=-1;return}let{clientX:t,clientY:r}=e;if(yt.hitTest(this._childMenu.node,t,r)){this._cancelCloseTimer();return}this.activeIndex=-1,this._startCloseTimer()}_evtMouseDown(e){this._parentMenu||(Hr.hitTestMenus(this,e.clientX,e.clientY)?(e.preventDefault(),e.stopPropagation()):this.close())}_openChildMenu(e=!1){let t=this.activeItem;if(!t||t.type!=="submenu"||!t.submenu){this._closeChildMenu();return}let r=t.submenu;if(r===this._childMenu)return;Co.saveWindowData(),this._closeChildMenu(),this._childMenu=r,this._childIndex=this._activeIndex,r._parentMenu=this,re.sendMessage(this,V.Msg.UpdateRequest);let n=this.contentNode.children[this._activeIndex];Hr.openSubmenu(r,n),e&&(r.activeIndex=-1,r.activateNextItem()),r.activate()}_closeChildMenu(){this._childMenu&&this._childMenu.close()}_startOpenTimer(){this._openTimerID===0&&(this._openTimerID=window.setTimeout(()=>{this._openTimerID=0,this._openChildMenu()},Hr.TIMER_DELAY))}_startCloseTimer(){this._closeTimerID===0&&(this._closeTimerID=window.setTimeout(()=>{this._closeTimerID=0,this._closeChildMenu()},Hr.TIMER_DELAY))}_cancelOpenTimer(){this._openTimerID!==0&&(clearTimeout(this._openTimerID),this._openTimerID=0)}_cancelCloseTimer(){this._closeTimerID!==0&&(clearTimeout(this._closeTimerID),this._closeTimerID=0)}static saveWindowData(){Hr.saveWindowData()}};(function(i){class e{renderItem(r){let n=this.createItemClass(r),s=this.createItemDataset(r),o=this.createItemARIA(r);return ne.li({className:n,dataset:s,tabindex:"0",onfocus:r.onfocus,...o},this.renderIcon(r),this.renderLabel(r),this.renderShortcut(r),this.renderSubmenu(r))}renderIcon(r){let n=this.createIconClass(r);return ne.div({className:n},r.item.icon,r.item.iconLabel)}renderLabel(r){let n=this.formatLabel(r);return ne.div({className:"lm-Menu-itemLabel"},n)}renderShortcut(r){let n=this.formatShortcut(r);return ne.div({className:"lm-Menu-itemShortcut"},n)}renderSubmenu(r){return ne.div({className:"lm-Menu-itemSubmenuIcon"})}createItemClass(r){let n="lm-Menu-item";r.item.isEnabled||(n+=" lm-mod-disabled"),r.item.isToggled&&(n+=" lm-mod-toggled"),r.item.isVisible||(n+=" lm-mod-hidden"),r.active&&(n+=" lm-mod-active"),r.collapsed&&(n+=" lm-mod-collapsed");let s=r.item.className;return s&&(n+=` ${s}`),n}
6177createItemDataset(r){let n,{type:s,command:o,dataset:a}=r.item;return s==="command"?n={...a,type:s,command:o}:n={...a,type:s},n}createIconClass(r){let n="lm-Menu-itemIcon",s=r.item.iconClass;return s?`${n} ${s}`:n}createItemARIA(r){let n={};switch(r.item.type){case"separator":n.role="presentation";break;case"submenu":n["aria-haspopup"]="true",r.item.isEnabled||(n["aria-disabled"]="true");break;default:r.item.isEnabled||(n["aria-disabled"]="true"),n.role="menuitem"}return n}formatLabel(r){let{label:n,mnemonic:s}=r.item;if(s<0||s>=n.length)return n;let o=n.slice(0,s),a=n.slice(s+1),l=n[s],u=ne.span({className:"lm-Menu-itemMnemonic"},l);return[o,u,a]}formatShortcut(r){let n=r.item.keyBinding;return n?Jt.formatKeystroke(n.keys):null}}i.Renderer=e,i.defaultRenderer=new e})(Co||(Co={}));(function(i){i.TIMER_DELAY=300,i.SUBMENU_OVERLAP=3;let e=null,t=0;function r(){return t>0?(t--,e):c()}function n(){e=c(),t++}i.saveWindowData=n;function s(){let y=document.createElement("div"),x=document.createElement("ul");return x.className="lm-Menu-content",y.appendChild(x),x.setAttribute("role","menu"),y.tabIndex=0,y}i.createNode=s;function o(y){return y.type!=="separator"&&y.isEnabled&&y.isVisible}i.canActivate=o;function a(y,x){return new b(y.commands,x)}i.createItem=a;function l(y,x,M){for(let T=y;T;T=T.childMenu)if(yt.hitTest(T.node,x,M))return!0;return!1}i.hitTestMenus=l;function u(y){let x=new Array(y.length);ae.fill(x,!1);let M=0,T=y.length;for(;M<T;++M){let R=y[M];if(R.isVisible){if(R.type!=="separator")break;x[M]=!0}}let E=T-1;for(;E>=0;--E){let R=y[E];if(R.isVisible){if(R.type!=="separator")break;x[E]=!0}}let A=!1;for(;++M<E;){let R=y[M];R.isVisible&&(R.type!=="separator"?A=!1:A?x[M]=!0:A=!0)}return x}i.computeCollapsed=u;function c(){return{pageXOffset:window.pageXOffset,pageYOffset:window.pageYOffset,clientWidth:document.documentElement.clientWidth,clientHeight:document.documentElement.clientHeight}}function d(y,x,M,T,E,A,R){let $=r(),v=$.pageXOffset,_=$.pageYOffset,h=$.clientWidth,p=$.clientHeight;re.sendMessage(y,V.Msg.UpdateRequest);let g=p-(E?M:0),C=y.node,I=C.style;I.opacity="0",I.maxHeight=`${g}px`,V.attach(y,A||document.body,R);let{width:F,height:P}=C.getBoundingClientRect();!T&&x+F>v+h&&(x=v+h-F),!E&&M+P>_+p&&(M>_+p?M=_+p-P:M=M-P),I.transform=`translate(${Math.max(0,x)}px, ${Math.max(0,M)}px`,I.opacity="1"}i.openRootMenu=d;function f(y,x){let M=r(),T=M.pageXOffset,E=M.pageYOffset,A=M.clientWidth,R=M.clientHeight;re.sendMessage(y,V.Msg.UpdateRequest);let $=R,v=y.node,_=v.style;_.opacity="0",_.maxHeight=`${$}px`,V.attach(y,document.body);let{width:h,height:p}=v.getBoundingClientRect(),g=yt.boxSizing(y.node),C=x.getBoundingClientRect(),I=C.right-i.SUBMENU_OVERLAP;I+h>T+A&&(I=C.left+i.SUBMENU_OVERLAP-h);let F=C.top-g.borderTop-g.paddingTop;F+p>E+R&&(F=C.bottom+g.borderBottom+g.paddingBottom-p),_.transform=`translate(${Math.max(0,I)}px, ${Math.max(0,F)}px`,_.opacity="1"}i.openSubmenu=f;function m(y,x,M){let T=-1,E=-1,A=!1,R=x.toUpperCase();for(let $=0,v=y.length;$<v;++$){let _=($+M)%v,h=y[_];if(!o(h))continue;let p=h.label;if(p.length===0)continue;let g=h.mnemonic;if(g>=0&&g<p.length){p[g].toUpperCase()===R&&(T===-1?T=_:A=!0);continue}E===-1&&p[0].toUpperCase()===R&&(E=_)}return{index:T,multiple:A,auto:E}}i.findMnemonic=m;class b{constructor(x,M){this._commands=x,this.type=M.type||"command",this.command=M.command||"",this.args=M.args||Ia.JSONExt.emptyObject,this.submenu=M.submenu||null}get label(){return this.type==="command"?this._commands.label(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.label:""}get mnemonic(){return this.type==="command"?this._commands.mnemonic(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.mnemonic:-1}get icon(){if(this.type==="command")return this._commands.icon(this.command,this.args);if(this.type==="submenu"&&this.submenu)return this.submenu.title.icon}get iconClass(){return this.type==="command"?this._commands.iconClass(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.iconClass:""}get iconLabel(){return this.type==="command"?this._commands.iconLabel(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.iconLabel:""}get caption(){return this.type==="command"?this._commands.caption(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.caption:""}get className(){return this.type==="command"?this._commands.className(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.className:""}get dataset(){return this.type==="command"?this._commands.dataset(this.command,this.args):this.type==="submenu"&&this.submenu?this.submenu.title.dataset:{}}get isEnabled(){return this.type==="command"?this._commands.isEnabled(this.command,this.args):this.type==="submenu"?this.submenu!==null:!0}get isToggled(){return this.type==="command"?this._commands.isToggled(this.command,this.args):!1}get isVisible(){return this.type==="command"?this._commands.isVisible(this.command,this.args):this.type==="submenu"?this.submenu!==null:!0}
6177get keyBinding(){if(this.type==="command"){let{command:x,args:M}=this;return ae.findLastValue(this._commands.keyBindings,T=>T.command===x&&Ia.JSONExt.deepEqual(T.args,M))||null}return null}}})(Hr||(Hr={}));(function(i){function e(o,a){let l=r(o.selector),u=o.rank!==void 0?o.rank:1/0;return{...o,selector:l,rank:u,id:a}}i.createItem=e;function t(o,a,l,u){let c=a.target;if(!c)return null;let d=a.currentTarget;if(!d||!d.contains(c)&&(c=document.elementFromPoint(a.clientX,a.clientY),!c||!d.contains(c)))return null;let f=[],m=o.slice();for(;c!==null;){let b=[];for(let y=0,x=m.length;y<x;++y){let M=m[y];M&&ec.matches(c,M.selector)&&(b.push(M),m[y]=null)}if(b.length!==0&&(l&&b.sort(u?s:n),f.push(...b)),c===d)break;c=c.parentElement}return l||f.sort(u?s:n),f}i.matchItems=t;function r(o){if(o.indexOf(",")!==-1)throw new Error(`Selector cannot contain commas: ${o}`);if(!ec.isValid(o))throw new Error(`Invalid selector: ${o}`);return o}function n(o,a){let l=o.rank,u=a.rank;return l!==u?l<u?-1:1:o.id-a.id}function s(o,a){let l=ec.calculateSpecificity(o.selector),u=ec.calculateSpecificity(a.selector);return l!==u?u-l:n(o,a)}})(kJ||(kJ={}));$5e=["ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Home","End"],$l=class extends V{constructor(e={}){super({node:ns.createNode()}),this._currentIndex=-1,this._titles=[],this._titlesEditable=!1,this._previousTitle=null,this._dragData=null,this._addButtonEnabled=!1,this._tabMoved=new X(this),this._currentChanged=new X(this),this._addRequested=new X(this),this._tabCloseRequested=new X(this),this._tabDetachRequested=new X(this),this._tabActivateRequested=new X(this),this.addClass("lm-TabBar"),this.contentNode.setAttribute("role","tablist"),this.setFlag(V.Flag.DisallowLayout),this._document=e.document||document,this.tabsMovable=e.tabsMovable||!1,this.titlesEditable=e.titlesEditable||!1,this.allowDeselect=e.allowDeselect||!1,this.addButtonEnabled=e.addButtonEnabled||!1,this.insertBehavior=e.insertBehavior||"select-tab-if-needed",this.name=e.name||"",this.orientation=e.orientation||"horizontal",this.removeBehavior=e.removeBehavior||"select-tab-after",this.renderer=e.renderer||$l.defaultRenderer}dispose(){this._releaseMouse(),this._titles.length=0,this._previousTitle=null,super.dispose()}get currentChanged(){return this._currentChanged}get tabMoved(){return this._tabMoved}get tabActivateRequested(){return this._tabActivateRequested}get addRequested(){return this._addRequested}get tabCloseRequested(){return this._tabCloseRequested}get tabDetachRequested(){return this._tabDetachRequested}get document(){return this._document}get titlesEditable(){return this._titlesEditable}set titlesEditable(e){this._titlesEditable=e}get currentTitle(){return this._titles[this._currentIndex]||null}set currentTitle(e){this.currentIndex=e?this._titles.indexOf(e):-1}get currentIndex(){return this._currentIndex}set currentIndex(e){if((e<0||e>=this._titles.length)&&(e=-1),this._currentIndex===e)return;let t=this._currentIndex,r=this._titles[t]||null,n=e,s=this._titles[n]||null;this._currentIndex=n,this._previousTitle=r,this.update(),this._currentChanged.emit({previousIndex:t,previousTitle:r,currentIndex:n,currentTitle:s})}get name(){return this._name}set name(e){this._name=e,e?this.contentNode.setAttribute("aria-label",e):this.contentNode.removeAttribute("aria-label")}get orientation(){return this._orientation}set orientation(e){this._orientation!==e&&(this._releaseMouse(),this._orientation=e,this.dataset.orientation=e,this.contentNode.setAttribute("aria-orientation",e))}get addButtonEnabled(){return this._addButtonEnabled}set addButtonEnabled(e){this._addButtonEnabled!==e&&(this._addButtonEnabled=e,e?this.addButtonNode.classList.remove("lm-mod-hidden"):this.addButtonNode.classList.add("lm-mod-hidden"))}get titles(){return this._titles}get contentNode(){return this.node.getElementsByClassName("lm-TabBar-content")[0]}get addButtonNode(){return this.node.getElementsByClassName("lm-TabBar-addButton")[0]}addTab(e){return this.insertTab(this._titles.length,e)}insertTab(e,t){this._releaseMouse();let r=ns.asTitle(t),n=this._titles.indexOf(r),s=Math.max(0,Math.min(e,this._titles.length));return n===-1?(ae.insert(this._titles,s,r),r.changed.connect(this._onTitleChanged,this),this.update(),this._adjustCurrentForInsert(s,r),r):(s===this._titles.length&&s--,n===s||(ae.move(this._titles,n,s),this.update(),this._adjustCurrentForMove(n,s)),r)}removeTab(e){this.removeTabAt(this._titles.indexOf(e))}removeTabAt(e){this._releaseMouse();let t=ae.removeAt(this._titles,e);t&&(t.changed.disconnect(this._onTitleChanged,this),t===this._previousTitle&&(this._previousTitle=null),this.update(),this._adjustCurrentForRemove(e,t))}clearTabs(){if(this._titles.length===0)return;this._releaseMouse();for(let r of this._titles)r.changed.disconnect(this._onTitleChanged,this);let e=this.currentIndex,t=this.currentTitle;this._currentIndex=-1,this._previousTitle=null,this._titles.length=0,this.update(),e!==-1&&this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:-1,
6177currentTitle:null})}releaseMouse(){this._releaseMouse()}handleEvent(e){switch(e.type){case"pointerdown":this._evtPointerDown(e);break;case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"dblclick":this._evtDblClick(e);break;case"keydown":e.eventPhase===Event.CAPTURING_PHASE?this._evtKeyDownCapturing(e):this._evtKeyDown(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("pointerdown",this),this.node.addEventListener("dblclick",this),this.node.addEventListener("keydown",this)}onAfterDetach(e){this.node.removeEventListener("pointerdown",this),this.node.removeEventListener("dblclick",this),this.node.removeEventListener("keydown",this),this._releaseMouse()}onUpdateRequest(e){var t;let r=this._titles,n=this.renderer,s=this.currentTitle,o=new Array(r.length),a=(t=this._getCurrentTabindex())!==null&&t!==void 0?t:this._currentIndex>-1?this._currentIndex:0;for(let l=0,u=r.length;l<u;++l){let c=r[l],d=c===s,f=d?u:u-l-1,m=a===l?0:-1;o[l]=n.renderTab({title:c,current:d,zIndex:f,tabIndex:m})}Wt.render(o,this.contentNode)}_getCurrentTabindex(){let e=null,t=this.contentNode.querySelector('li[tabindex="0"]');return t?e=[...this.contentNode.children].indexOf(t):this._addButtonEnabled&&this.addButtonNode.getAttribute("tabindex")==="0"&&(e=-1),e}_evtDblClick(e){if(!this.titlesEditable)return;let t=this.contentNode.children,r=ae.findFirstIndex(t,o=>yt.hitTest(o,e.clientX,e.clientY));if(r===-1)return;let n=this.titles[r],s=t[r].querySelector(".lm-TabBar-tabLabel");if(s&&s.contains(e.target)){let o=n.label||"",a=s.innerHTML;s.innerHTML="";let l=document.createElement("input");l.classList.add("lm-TabBar-tabInput"),l.value=o,s.appendChild(l);let u=()=>{l.removeEventListener("blur",u),s.innerHTML=a,this.node.addEventListener("keydown",this)};l.addEventListener("dblclick",c=>c.stopPropagation()),l.addEventListener("blur",u),l.addEventListener("keydown",c=>{c.key==="Enter"?(l.value!==""&&(n.label=n.caption=l.value),u()):c.key==="Escape"&&u()}),this.node.removeEventListener("keydown",this),l.select(),l.focus(),s.children.length>0&&s.children[0].focus()}}_evtKeyDownCapturing(e){e.eventPhase===Event.CAPTURING_PHASE&&(e.preventDefault(),e.stopPropagation(),e.key==="Escape"&&this._releaseMouse())}_evtKeyDown(e){var t,r,n;if(!(e.key==="Tab"||e.eventPhase===Event.CAPTURING_PHASE)){if(e.key==="Enter"||e.key==="Spacebar"||e.key===" "){let s=document.activeElement;if(this.addButtonEnabled&&this.addButtonNode.contains(s))e.preventDefault(),e.stopPropagation(),this._addRequested.emit();else{let o=ae.findFirstIndex(this.contentNode.children,a=>a.contains(s));o>=0&&(e.preventDefault(),e.stopPropagation(),this.currentIndex=o)}}else if($5e.includes(e.key)){let s=[...this.contentNode.children];if(this.addButtonEnabled&&s.push(this.addButtonNode),s.length<=1)return;e.preventDefault(),e.stopPropagation();let o=s.indexOf(document.activeElement);o===-1&&(o=this._currentIndex);let a;e.key==="ArrowRight"&&this._orientation==="horizontal"||e.key==="ArrowDown"&&this._orientation==="vertical"?a=(t=s[o+1])!==null&&t!==void 0?t:s[0]:e.key==="ArrowLeft"&&this._orientation==="horizontal"||e.key==="ArrowUp"&&this._orientation==="vertical"?a=(r=s[o-1])!==null&&r!==void 0?r:s[s.length-1]:e.key==="Home"?a=s[0]:e.key==="End"&&(a=s[s.length-1]),a&&((n=s[o])===null||n===void 0||n.setAttribute("tabindex","-1"),a?.setAttribute("tabindex","0"),a.focus())}}}_evtPointerDown(e){if(e.button!==0&&e.button!==1||this._dragData||e.target.classList.contains("lm-TabBar-tabInput"))return;let t=this.addButtonEnabled&&this.addButtonNode.contains(e.target),r=this.contentNode.children,n=ae.findFirstIndex(r,o=>yt.hitTest(o,e.clientX,e.clientY));if(n===-1&&!t||(e.preventDefault(),e.stopPropagation(),this._dragData={tab:r[n],index:n,pressX:e.clientX,pressY:e.clientY,tabPos:-1,tabSize:-1,tabPressPos:-1,targetIndex:-1,tabLayout:null,contentRect:null,override:null,dragActive:!1,dragAborted:!1,detachRequested:!1},this.document.addEventListener("pointerup",this,!0),e.button===1||t))return;let s=r[n].querySelector(this.renderer.closeIconSelector);s&&s.contains(e.target)||(this.tabsMovable&&(this.document.addEventListener("pointermove",this,!0),this.document.addEventListener("keydown",this,
6177!0),this.document.addEventListener("contextmenu",this,!0)),this.allowDeselect&&this.currentIndex===n?this.currentIndex=-1:this.currentIndex=n,this.currentIndex!==-1&&this._tabActivateRequested.emit({index:this.currentIndex,title:this.currentTitle}))}_evtPointerMove(e){let t=this._dragData;if(!t)return;e.preventDefault(),e.stopPropagation();let r=this.contentNode.children;if(!(!t.dragActive&&!ns.dragExceeded(t,e))){if(!t.dragActive){let n=t.tab.getBoundingClientRect();this._orientation==="horizontal"?(t.tabPos=t.tab.offsetLeft,t.tabSize=n.width,t.tabPressPos=t.pressX-n.left):(t.tabPos=t.tab.offsetTop,t.tabSize=n.height,t.tabPressPos=t.pressY-n.top),t.tabPressOffset={x:t.pressX-n.left,y:t.pressY-n.top},t.tabLayout=ns.snapTabLayout(r,this._orientation),t.contentRect=this.contentNode.getBoundingClientRect(),t.override=gt.overrideCursor("default"),t.tab.classList.add("lm-mod-dragging"),this.addClass("lm-mod-dragging"),t.dragActive=!0}if(!t.detachRequested&&ns.detachExceeded(t,e)){t.detachRequested=!0;let n=t.index,s=e.clientX,o=e.clientY,a=r[n],l=this._titles[n];if(this._tabDetachRequested.emit({index:n,title:l,tab:a,clientX:s,clientY:o,offset:t.tabPressOffset}),t.dragAborted)return}ns.layoutTabs(r,t,e,this._orientation)}}_evtPointerUp(e){if(e.button!==0&&e.button!==1)return;let t=this._dragData;if(!t)return;if(e.preventDefault(),e.stopPropagation(),this.document.removeEventListener("pointermove",this,!0),this.document.removeEventListener("pointerup",this,!0),this.document.removeEventListener("keydown",this,!0),this.document.removeEventListener("contextmenu",this,!0),!t.dragActive){if(this._dragData=null,this.addButtonEnabled&&this.addButtonNode.contains(e.target)){this._addRequested.emit(void 0);return}let s=this.contentNode.children,o=ae.findFirstIndex(s,u=>yt.hitTest(u,e.clientX,e.clientY));if(o!==t.index)return;let a=this._titles[o];if(!a.closable)return;if(e.button===1){this._tabCloseRequested.emit({index:o,title:a});return}let l=s[o].querySelector(this.renderer.closeIconSelector);if(l&&l.contains(e.target)){this._tabCloseRequested.emit({index:o,title:a});return}return}if(e.button!==0)return;ns.finalizeTabPosition(t,this._orientation),t.tab.classList.remove("lm-mod-dragging");let r=ns.parseTransitionDuration(t.tab);setTimeout(()=>{if(t.dragAborted)return;this._dragData=null,ns.resetTabPositions(this.contentNode.children,this._orientation),t.override.dispose(),this.removeClass("lm-mod-dragging");let n=t.index,s=t.targetIndex;s===-1||n===s||(ae.move(this._titles,n,s),this._adjustCurrentForMove(n,s),this._tabMoved.emit({fromIndex:n,toIndex:s,title:this._titles[s]}),re.sendMessage(this,V.Msg.UpdateRequest))},r)}_releaseMouse(){let e=this._dragData;e&&(this._dragData=null,this.document.removeEventListener("pointermove",this,!0),this.document.removeEventListener("pointerup",this,!0),this.document.removeEventListener("keydown",this,!0),this.document.removeEventListener("contextmenu",this,!0),e.dragAborted=!0,e.dragActive&&(ns.resetTabPositions(this.contentNode.children,this._orientation),e.override.dispose(),e.tab.classList.remove("lm-mod-dragging"),this.removeClass("lm-mod-dragging")))}_adjustCurrentForInsert(e,t){let r=this.currentTitle,n=this._currentIndex,s=this.insertBehavior;if(s==="select-tab"||s==="select-tab-if-needed"&&n===-1){this._currentIndex=e,this._previousTitle=r,this._currentChanged.emit({previousIndex:n,previousTitle:r,currentIndex:e,currentTitle:t});return}n>=e&&this._currentIndex++}_adjustCurrentForMove(e,t){this._currentIndex===e?this._currentIndex=t:this._currentIndex<e&&this._currentIndex>=t?this._currentIndex++:this._currentIndex>e&&this._currentIndex<=t&&this._currentIndex--}_adjustCurrentForRemove(e,t){let r=this._currentIndex,n=this.removeBehavior;if(r!==e){r>e&&this._currentIndex--;return}if(this._titles.length===0){this._currentIndex=-1,this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:-1,currentTitle:null});return}if(n==="select-tab-after"){this._currentIndex=Math.min(e,this._titles.length-1),this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:this._currentIndex,currentTitle:this.currentTitle});return}if(n==="select-tab-before"){this._currentIndex=Math.max(0,e-1),this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:this._currentIndex,currentTitle:this.currentTitle});return}if(n==="select-previous-tab"){this._previousTitle?(this._currentIndex=this._titles.indexOf(this._previousTitle),this._previousTitle=null):this._currentIndex=Math.min(e,this._titles.length-1),this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:this._currentIndex,currentTitle:this.currentTitle});return}this._currentIndex=-1,this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:-1,
6177currentTitle:null})}_onTitleChanged(e){this.update()}};(function(i){class e{constructor(){this.closeIconSelector=".lm-TabBar-tabCloseIcon",this._tabID=0,this._tabKeys=new WeakMap,this._uuid=++e._nInstance}renderTab(r){let n=r.title.caption,s=this.createTabKey(r),o=s,a=this.createTabStyle(r),l=this.createTabClass(r),u=this.createTabDataset(r),c=this.createTabARIA(r);return r.title.closable?ne.li({id:o,key:s,className:l,title:n,style:a,dataset:u,...c},this.renderIcon(r),this.renderLabel(r),this.renderCloseIcon(r)):ne.li({id:o,key:s,className:l,title:n,style:a,dataset:u,...c},this.renderIcon(r),this.renderLabel(r))}renderIcon(r){let{title:n}=r,s=this.createIconClass(r);return ne.div({className:s},n.icon,n.iconLabel)}renderLabel(r){return ne.div({className:"lm-TabBar-tabLabel"},r.title.label)}renderCloseIcon(r){return ne.div({className:"lm-TabBar-tabCloseIcon"})}createTabKey(r){let n=this._tabKeys.get(r.title);return n===void 0&&(n=`tab-key-${this._uuid}-${this._tabID++}`,this._tabKeys.set(r.title,n)),n}createTabStyle(r){return{zIndex:`${r.zIndex}`}}createTabClass(r){let n="lm-TabBar-tab";return r.title.className&&(n+=` ${r.title.className}`),r.title.closable&&(n+=" lm-mod-closable"),r.current&&(n+=" lm-mod-current"),n}createTabDataset(r){return r.title.dataset}createTabARIA(r){var n;return{role:"tab","aria-selected":r.current.toString(),tabindex:`${(n=r.tabIndex)!==null&&n!==void 0?n:"-1"}`}}createIconClass(r){let n="lm-TabBar-tabIcon",s=r.title.iconClass;return s?`${n} ${s}`:n}}e._nInstance=0,i.Renderer=e,i.defaultRenderer=new e,i.addButtonSelector=".lm-TabBar-addButton"})($l||($l={}));(function(i){i.DRAG_THRESHOLD=5,i.DETACH_THRESHOLD=20;function e(){let c=document.createElement("div"),d=document.createElement("ul");d.setAttribute("role","tablist"),d.className="lm-TabBar-content",c.appendChild(d);let f=document.createElement("div");return f.className="lm-TabBar-addButton lm-mod-hidden",f.setAttribute("tabindex","-1"),f.setAttribute("role","button"),c.appendChild(f),c}i.createNode=e;function t(c){return c instanceof Pp?c:new Pp(c)}i.asTitle=t;function r(c){let d=window.getComputedStyle(c);return 1e3*(parseFloat(d.transitionDuration)||0)}i.parseTransitionDuration=r;function n(c,d){let f=new Array(c.length);for(let m=0,b=c.length;m<b;++m){let y=c[m],x=window.getComputedStyle(y);d==="horizontal"?f[m]={pos:y.offsetLeft,size:y.offsetWidth,margin:parseFloat(x.marginLeft)||0}:f[m]={pos:y.offsetTop,size:y.offsetHeight,margin:parseFloat(x.marginTop)||0}}return f}i.snapTabLayout=n;function s(c,d){let f=Math.abs(d.clientX-c.pressX),m=Math.abs(d.clientY-c.pressY);return f>=i.DRAG_THRESHOLD||m>=i.DRAG_THRESHOLD}i.dragExceeded=s;function o(c,d){let f=c.contentRect;return d.clientX<f.left-i.DETACH_THRESHOLD||d.clientX>=f.right+i.DETACH_THRESHOLD||d.clientY<f.top-i.DETACH_THRESHOLD||d.clientY>=f.bottom+i.DETACH_THRESHOLD}i.detachExceeded=o;function a(c,d,f,m){let b,y,x,M;m==="horizontal"?(b=d.pressX,y=f.clientX-d.contentRect.left,x=f.clientX,M=d.contentRect.width):(b=d.pressY,y=f.clientY-d.contentRect.top,x=f.clientY,M=d.contentRect.height);let T=d.index,E=y-d.tabPressPos,A=E+d.tabSize;for(let R=0,$=c.length;R<$;++R){let v,_=d.tabLayout[R],h=_.pos+(_.size>>1);if(R<d.index&&E<h)v=`${d.tabSize+d.tabLayout[R+1].margin}px`,T=Math.min(T,R);else if(R>d.index&&A>h)v=`${-d.tabSize-_.margin}px`,T=Math.max(T,R);else if(R===d.index){let p=x-b,g=M-(d.tabPos+d.tabSize);v=`${Math.max(-d.tabPos,Math.min(p,g))}px`}else v="";m==="horizontal"?c[R].style.left=v:c[R].style.top=v}d.targetIndex=T}i.layoutTabs=a;function l(c,d){let f;d==="horizontal"?f=c.contentRect.width:f=c.contentRect.height;let m;if(c.targetIndex===c.index)m=0;else if(c.targetIndex>c.index){let x=c.tabLayout[c.targetIndex];m=x.pos+x.size-c.tabSize-c.tabPos}else m=c.tabLayout[c.targetIndex].pos-c.tabPos;let b=f-(c.tabPos+c.tabSize),y=Math.max(-c.tabPos,Math.min(m,b));d==="horizontal"?c.tab.style.left=`${y}px`:c.tab.style.top=`${y}px`}i.finalizeTabPosition=l;function u(c,d){for(let f of c)d==="horizontal"?f.style.left="":f.style.top=""}i.resetTabPositions=u})(ns||(ns={}));TS=class extends Io{constructor(e){super(),this._spacing=4,this._dirty=!1,this._root=null,this._box=null,this._items=new Map,this.renderer=e.renderer,e.spacing!==void 0&&(this._spacing=zp.clampDimension(e.spacing)),this._document=e.document||document,this._hiddenMode=e.hiddenMode!==void 0?e.hiddenMode:V.HiddenMode.Display}dispose(){let e=this[Symbol.iterator]();
6177this._items.forEach(t=>{t.dispose()}),this._box=null,this._root=null,this._items.clear();for(let t of e)t.dispose();super.dispose()}get hiddenMode(){return this._hiddenMode}set hiddenMode(e){if(this._hiddenMode!==e){this._hiddenMode=e;for(let t of this.tabBars())if(t.titles.length>1)for(let r of t.titles)r.owner.hiddenMode=this._hiddenMode}}get spacing(){return this._spacing}set spacing(e){e=zp.clampDimension(e),this._spacing!==e&&(this._spacing=e,this.parent&&this.parent.fit())}get isEmpty(){return this._root===null}[Symbol.iterator](){return this._root?this._root.iterAllWidgets():Zd()}widgets(){return this._root?this._root.iterUserWidgets():Zd()}selectedWidgets(){return this._root?this._root.iterSelectedWidgets():Zd()}tabBars(){return this._root?this._root.iterTabBars():Zd()}handles(){return this._root?this._root.iterHandles():Zd()}moveHandle(e,t,r){let n=e.classList.contains("lm-mod-hidden");if(!this._root||n)return;let s=this._root.findSplitNode(e);if(!s)return;let o;s.node.orientation==="horizontal"?o=t-e.offsetLeft:o=r-e.offsetTop,o!==0&&(s.node.holdSizes(),Rn.adjust(s.node.sizers,s.index,o),this.parent&&this.parent.update())}saveLayout(){return this._root?(this._root.holdAllSizes(),{main:this._root.createConfig()}):{main:null}}restoreLayout(e){let t=new Set,r;e.main?r=pi.normalizeAreaConfig(e.main,t):r=null;let n=this.widgets(),s=this.tabBars(),o=this.handles();this._root=null;for(let a of n)t.has(a)||(a.parent=null);for(let a of s)a.dispose();for(let a of o)a.parentNode&&a.parentNode.removeChild(a);for(let a of t)a.parent=this.parent;r?this._root=pi.realizeAreaConfig(r,{createTabBar:a=>this._createTabBar(),createHandle:()=>this._createHandle()},this._document):this._root=null,this.parent&&(t.forEach(a=>{this.attachWidget(a)}),this.parent.fit())}addWidget(e,t={}){let r=t.ref||null,n=t.mode||"tab-after",s=null;if(this._root&&r&&(s=this._root.findTabNode(r)),r&&!s)throw new Error("Reference widget is not in the layout.");switch(e.parent=this.parent,n){case"tab-after":this._insertTab(e,r,s,!0);break;case"tab-before":this._insertTab(e,r,s,!1);break;case"split-top":this._insertSplit(e,r,s,"vertical",!1);break;case"split-left":this._insertSplit(e,r,s,"horizontal",!1);break;case"split-right":this._insertSplit(e,r,s,"horizontal",!0);break;case"split-bottom":this._insertSplit(e,r,s,"vertical",!0);break;case"merge-top":this._insertSplit(e,r,s,"vertical",!1,!0);break;case"merge-left":this._insertSplit(e,r,s,"horizontal",!1,!0);break;case"merge-right":this._insertSplit(e,r,s,"horizontal",!0,!0);break;case"merge-bottom":this._insertSplit(e,r,s,"vertical",!0,!0);break}this.parent&&(this.attachWidget(e),this.parent.fit())}removeWidget(e){this._removeWidget(e),this.parent&&(this.detachWidget(e),this.parent.fit())}hitTestTabAreas(e,t){if(!this._root||!this.parent||!this.parent.isVisible)return null;this._box||(this._box=yt.boxSizing(this.parent.node));let r=this.parent.node.getBoundingClientRect(),n=e-r.left-this._box.borderLeft,s=t-r.top-this._box.borderTop,o=this._root.hitTestTabNodes(n,s);if(!o)return null;let{tabBar:a,top:l,left:u,width:c,height:d}=o,f=this._box.borderLeft+this._box.borderRight,m=this._box.borderTop+this._box.borderBottom,b=r.width-f-(u+c),y=r.height-m-(l+d);return{tabBar:a,x:n,y:s,top:l,left:u,right:b,bottom:y,width:c,height:d}}init(){super.init();for(let e of this)this.attachWidget(e);for(let e of this.handles())this.parent.node.appendChild(e);this.parent.fit()}attachWidget(e){this.parent.node!==e.node.parentNode&&(this._items.set(e,new ic(e)),this.parent.isAttached&&re.sendMessage(e,V.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&re.sendMessage(e,V.Msg.AfterAttach))}detachWidget(e){if(this.parent.node!==e.node.parentNode)return;this.parent.isAttached&&re.sendMessage(e,V.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&re.sendMessage(e,V.Msg.AfterDetach);let t=this._items.get(e);t&&(this._items.delete(e),t.dispose())}onBeforeShow(e){super.onBeforeShow(e),this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e),this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){this.parent.isVisible&&this._update(e.width,e.height)}onUpdateRequest(e){this.parent.isVisible&&this._update(-1,-1)}onFitRequest(e){this.parent.isAttached&&this._fit()}_removeWidget(e){if(!this._root)return;let t=this._root.findTabNode(e);if(!t)return;
6177if(pi.removeAria(e),t.tabBar.titles.length>1){if(t.tabBar.removeTab(e.title),this._hiddenMode===V.HiddenMode.Scale&&t.tabBar.titles.length==1){let f=t.tabBar.titles[0].owner;f.hiddenMode=V.HiddenMode.Display}return}if(t.tabBar.dispose(),this._root===t){this._root=null;return}this._root.holdAllSizes();let r=t.parent;t.parent=null;let n=ae.removeFirstOf(r.children,t),s=ae.removeAt(r.handles,n);if(ae.removeAt(r.sizers,n),s.parentNode&&s.parentNode.removeChild(s),r.children.length>1){r.syncHandles();return}let o=r.parent;r.parent=null;let a=r.children[0],l=r.handles[0];if(r.children.length=0,r.handles.length=0,r.sizers.length=0,l.parentNode&&l.parentNode.removeChild(l),this._root===r){a.parent=null,this._root=a;return}let u=o,c=u.children.indexOf(r);if(a instanceof pi.TabLayoutNode){a.parent=u,u.children[c]=a;return}let d=ae.removeAt(u.handles,c);ae.removeAt(u.children,c),ae.removeAt(u.sizers,c),d.parentNode&&d.parentNode.removeChild(d);for(let f=0,m=a.children.length;f<m;++f){let b=a.children[f],y=a.handles[f],x=a.sizers[f];ae.insert(u.children,c+f,b),ae.insert(u.handles,c+f,y),ae.insert(u.sizers,c+f,x),b.parent=u}a.children.length=0,a.handles.length=0,a.sizers.length=0,a.parent=null,u.syncHandles()}_createTabNode(e){let t=new pi.TabLayoutNode(this._createTabBar());return t.tabBar.addTab(e.title),pi.addAria(e,t.tabBar),t}_insertTab(e,t,r,n){if(e===t)return;if(!this._root){let o=new pi.TabLayoutNode(this._createTabBar());o.tabBar.addTab(e.title),this._root=o,pi.addAria(e,o.tabBar);return}r||(r=this._root.findFirstTabNode()),r.tabBar.titles.indexOf(e.title)===-1&&(this._removeWidget(e),e.hide());let s;if(t?s=r.tabBar.titles.indexOf(t.title):s=r.tabBar.currentIndex,this._hiddenMode===V.HiddenMode.Scale)if(r.tabBar.titles.length===0)e.hiddenMode=V.HiddenMode.Display;else if(r.tabBar.titles.length==1){let o=r.tabBar.titles[0].owner;o.hiddenMode=V.HiddenMode.Scale}else e.hiddenMode=V.HiddenMode.Scale;else e.hiddenMode=this._hiddenMode;r.tabBar.insertTab(s+(n?1:0),e.title),pi.addAria(e,r.tabBar)}_insertSplit(e,t,r,n,s,o=!1){if(e===t&&r&&r.tabBar.titles.length===1)return;if(this._removeWidget(e),!this._root){this._root=this._createTabNode(e);return}if(!r||!r.parent){let f=this._splitRoot(n),m=s?f.children.length:0;f.normalizeSizes();let b=pi.createSizer(r?1:pi.GOLDEN_RATIO),y=this._createTabNode(e);ae.insert(f.children,m,y),ae.insert(f.sizers,m,b),ae.insert(f.handles,m,this._createHandle()),y.parent=f,f.normalizeSizes(),f.syncHandles();return}let a=r.parent;if(a.orientation===n){let f=a.children.indexOf(r);if(o){let x=f+(s?1:-1),M=a.children[x];if(M instanceof pi.TabLayoutNode){this._insertTab(e,null,M,!0),++M.tabBar.currentIndex;return}}a.normalizeSizes();let m=a.sizers[f].sizeHint/=2,b=f+(s?1:0),y=this._createTabNode(e);ae.insert(a.children,b,y),ae.insert(a.sizers,b,pi.createSizer(m)),ae.insert(a.handles,b,this._createHandle()),y.parent=a,a.syncHandles();return}let l=ae.removeFirstOf(a.children,r),u=new pi.SplitLayoutNode(n);u.normalized=!0,u.children.push(r),u.sizers.push(pi.createSizer(.5)),u.handles.push(this._createHandle()),r.parent=u;let c=s?1:0,d=this._createTabNode(e);ae.insert(u.children,c,d),ae.insert(u.sizers,c,pi.createSizer(.5)),ae.insert(u.handles,c,this._createHandle()),d.parent=u,u.syncHandles(),ae.insert(a.children,l,u),u.parent=a}_splitRoot(e){let t=this._root;if(t instanceof pi.SplitLayoutNode&&t.orientation===e)return t;let r=this._root=new pi.SplitLayoutNode(e);return t&&(r.children.push(t),r.sizers.push(pi.createSizer(0)),r.handles.push(this._createHandle()),t.parent=r),r}_fit(){let e=0,t=0;if(this._root){let s=this._root.fit(this._spacing,this._items);e=s.minWidth,t=s.minHeight}let r=this._box=yt.boxSizing(this.parent.node);e+=r.horizontalSum,t+=r.verticalSum;let n=this.parent.node.style;n.minWidth=`${e}px`,n.minHeight=`${t}px`,this._dirty=!0,this.parent.parent&&re.sendMessage(this.parent.parent,V.Msg.FitRequest),this._dirty&&re.sendMessage(this.parent,V.Msg.UpdateRequest)}_update(e,t){if(this._dirty=!1,!this._root)return;e<0&&(e=this.parent.node.offsetWidth),t<0&&(t=this.parent.node.offsetHeight),this._box||(this._box=yt.boxSizing(this.parent.node));let r=this._box.paddingTop,n=this._box.paddingLeft,s=e-this._box.horizontalSum,o=t-this._box.verticalSum;this._root.update(r,n,s,o,this._spacing,this._items)}_createTabBar(){let e=this.renderer.createTabBar(this._document);return e.orientation="horizontal",this.parent&&this.attachWidget(e),e}_createHandle(){let e=this.renderer.createHandle(),t=e.style;return t.position="absolute",t.contain="strict",t.top="0",t.left="0",t.width="0",t.height="0",this.parent&&this.parent.node.appendChild(e),e}};(function(i){i.GOLDEN_RATIO=.618;function e(f){let m=new So;return m.sizeHint=f,m.size=f,m}i.createSizer=e;function t(f,m){let b;return f.type==="tab-area"?b=l(f,m):b=u(f,m),b}i.normalizeAreaConfig=t;function r(f,m,b){let y;return f.type==="tab-area"?y=c(f,m,b):y=d(f,m,b),y}i.realizeAreaConfig=r;class n{constructor(m){this.parent=null,this._top=0,this._left=0,this._width=0,this._height=0;let b=new So,y=new So;b.stretch=0,y.stretch=1,this.tabBar=m,this.sizers=[b,y]}get top(){return this._top}get left(){return this._left}get width(){return this._width}get height(){return this._height}*iterAllWidgets(){yield this.tabBar,yield*this.iterUserWidgets()}
6177*iterUserWidgets(){for(let m of this.tabBar.titles)yield m.owner}*iterSelectedWidgets(){let m=this.tabBar.currentTitle;m&&(yield m.owner)}*iterTabBars(){yield this.tabBar}*iterHandles(){}findTabNode(m){return this.tabBar.titles.indexOf(m.title)!==-1?this:null}findSplitNode(m){return null}findFirstTabNode(){return this}hitTestTabNodes(m,b){return m<this._left||m>=this._left+this._width||b<this._top||b>=this._top+this._height?null:this}createConfig(){let m=this.tabBar.titles.map(y=>y.owner),b=this.tabBar.currentIndex;return{type:"tab-area",widgets:m,currentIndex:b}}holdAllSizes(){}fit(m,b){let y=0,x=0,M=1/0,T=1/0,E=b.get(this.tabBar),A=this.tabBar.currentTitle,R=A?b.get(A.owner):void 0,[$,v]=this.sizers;return E&&E.fit(),R&&R.fit(),E&&!E.isHidden?(y=Math.max(y,E.minWidth),x+=E.minHeight,$.minSize=E.minHeight,$.maxSize=E.maxHeight):($.minSize=0,$.maxSize=0),R&&!R.isHidden?(y=Math.max(y,R.minWidth),x+=R.minHeight,v.minSize=R.minHeight,v.maxSize=1/0):(v.minSize=0,v.maxSize=1/0),{minWidth:y,minHeight:x,maxWidth:M,maxHeight:T}}update(m,b,y,x,M,T){this._top=b,this._left=m,this._width=y,this._height=x;let E=T.get(this.tabBar),A=this.tabBar.currentTitle,R=A?T.get(A.owner):void 0;if(Rn.calc(this.sizers,x),E&&!E.isHidden){let $=this.sizers[0].size;E.update(m,b,y,$),b+=$}if(R&&!R.isHidden){let $=this.sizers[1].size;R.update(m,b,y,$)}}}i.TabLayoutNode=n;class s{constructor(m){this.parent=null,this.normalized=!1,this.children=[],this.sizers=[],this.handles=[],this.orientation=m}*iterAllWidgets(){for(let m of this.children)yield*m.iterAllWidgets()}*iterUserWidgets(){for(let m of this.children)yield*m.iterUserWidgets()}*iterSelectedWidgets(){for(let m of this.children)yield*m.iterSelectedWidgets()}*iterTabBars(){for(let m of this.children)yield*m.iterTabBars()}*iterHandles(){yield*this.handles;for(let m of this.children)yield*m.iterHandles()}findTabNode(m){for(let b=0,y=this.children.length;b<y;++b){let x=this.children[b].findTabNode(m);if(x)return x}return null}findSplitNode(m){let b=this.handles.indexOf(m);if(b!==-1)return{index:b,node:this};for(let y=0,x=this.children.length;y<x;++y){let M=this.children[y].findSplitNode(m);if(M)return M}return null}findFirstTabNode(){return this.children.length===0?null:this.children[0].findFirstTabNode()}hitTestTabNodes(m,b){for(let y=0,x=this.children.length;y<x;++y){let M=this.children[y].hitTestTabNodes(m,b);if(M)return M}return null}createConfig(){let m=this.orientation,b=this.createNormalizedSizes(),y=this.children.map(x=>x.createConfig());return{type:"split-area",orientation:m,children:y,sizes:b}}syncHandles(){this.handles.forEach((m,b)=>{m.setAttribute("data-orientation",this.orientation),b===this.handles.length-1?m.classList.add("lm-mod-hidden"):m.classList.remove("lm-mod-hidden")})}holdSizes(){for(let m of this.sizers)m.sizeHint=m.size}holdAllSizes(){for(let m of this.children)m.holdAllSizes();this.holdSizes()}normalizeSizes(){let m=this.sizers.length;if(m===0)return;this.holdSizes();let b=this.sizers.reduce((y,x)=>y+x.sizeHint,0);if(b===0)for(let y of this.sizers)y.size=y.sizeHint=1/m;else for(let y of this.sizers)y.size=y.sizeHint/=b;this.normalized=!0}createNormalizedSizes(){let m=this.sizers.length;if(m===0)return[];let b=this.sizers.map(x=>x.size),y=b.reduce((x,M)=>x+M,0);if(y===0)for(let x=b.length-1;x>-1;x--)b[x]=1/m;else for(let x=b.length-1;x>-1;x--)b[x]/=y;return b}fit(m,b){let y=this.orientation==="horizontal",x=Math.max(0,this.children.length-1)*m,M=y?x:0,T=y?0:x,E=1/0,A=1/0;for(let R=0,$=this.children.length;R<$;++R){let v=this.children[R].fit(m,b);y?(T=Math.max(T,v.minHeight),M+=v.minWidth,this.sizers[R].minSize=v.minWidth):(M=Math.max(M,v.minWidth),T+=v.minHeight,this.sizers[R].minSize=v.minHeight)}return{minWidth:M,minHeight:T,maxWidth:E,maxHeight:A}}update(m,b,y,x,M,T){let E=this.orientation==="horizontal",A=Math.max(0,this.children.length-1)*M,R=Math.max(0,(E?y:x)-A);if(this.normalized){for(let $ of this.sizers)$.sizeHint*=R;this.normalized=!1}Rn.calc(this.sizers,R);for(let $=0,v=this.children.length;$<v;++$){let _=this.children[$],h=this.sizers[$].size,p=this.handles[$].style;E?(_.update(m,b,h,x,M,T),m+=h,p.top=`${b}px`,p.left=`${m}px`,p.width=`${M}px`,p.height=`${x}px`,m+=M):(_.update(m,b,y,h,M,T),b+=h,p.top=`${b}px`,p.left=`${m}px`,p.width=`${y}px`,p.height=`${M}
6177px`,b+=M)}}}i.SplitLayoutNode=s;function o(f,m){f.node.setAttribute("role","tabpanel");let b=m.renderer;if(b instanceof $l.Renderer){let y=b.createTabKey({title:f.title,current:!1,zIndex:0});f.node.setAttribute("aria-labelledby",y)}}i.addAria=o;function a(f){f.node.removeAttribute("role"),f.node.removeAttribute("aria-labelledby")}i.removeAria=a;function l(f,m){if(f.widgets.length===0)return null;let b=[];for(let x of f.widgets)m.has(x)||(m.add(x),b.push(x));if(b.length===0)return null;let y=f.currentIndex;return y!==-1&&(y<0||y>=b.length)&&(y=0),{type:"tab-area",widgets:b,currentIndex:y}}function u(f,m){let b=f.orientation,y=[],x=[];for(let M=0,T=f.children.length;M<T;++M){let E=t(f.children[M],m);E&&(E.type==="tab-area"||E.orientation!==b?(y.push(E),x.push(Math.abs(f.sizes[M]||0))):(y.push(...E.children),x.push(...E.sizes)))}return y.length===0?null:y.length===1?y[0]:{type:"split-area",orientation:b,children:y,sizes:x}}function c(f,m,b){let y=m.createTabBar(b);for(let x of f.widgets)x.hide(),y.addTab(x.title),i.addAria(x,y);return y.currentIndex=f.currentIndex,new n(y)}function d(f,m,b){let y=new s(f.orientation);return f.children.forEach((x,M)=>{let T=r(x,m,b),E=e(f.sizes[M]),A=m.createHandle();y.children.push(T),y.handles.push(A),y.sizers.push(E),T.parent=y}),y.syncHandles(),y.normalizeSizes(),y}})(pi||(pi={}));sc=class extends V{constructor(e={}){super(),this._drag=null,this._tabsMovable=!0,this._tabsConstrained=!1,this._addButtonEnabled=!1,this._pressData=null,this._layoutModified=new X(this),this._addRequested=new X(this),this.addClass("lm-DockPanel"),this._document=e.document||document,this._mode=e.mode||"multiple-document",this._renderer=e.renderer||sc.defaultRenderer,this._edges=e.edges||ni.DEFAULT_EDGES,e.tabsMovable!==void 0&&(this._tabsMovable=e.tabsMovable),e.tabsConstrained!==void 0&&(this._tabsConstrained=e.tabsConstrained),e.addButtonEnabled!==void 0&&(this._addButtonEnabled=e.addButtonEnabled),this.dataset.mode=this._mode;let t={createTabBar:()=>this._createTabBar(),createHandle:()=>this._createHandle()};this.layout=new TS({document:this._document,renderer:t,spacing:e.spacing,hiddenMode:e.hiddenMode}),this.overlay=e.overlay||new sc.Overlay,this.node.appendChild(this.overlay.node)}dispose(){this._releaseMouse(),this.overlay.hide(0),this._drag&&this._drag.dispose(),super.dispose()}get hiddenMode(){return this.layout.hiddenMode}set hiddenMode(e){this.layout.hiddenMode=e}get layoutModified(){return this._layoutModified}get addRequested(){return this._addRequested}get renderer(){return this.layout.renderer}get spacing(){return this.layout.spacing}set spacing(e){this.layout.spacing=e}get mode(){return this._mode}set mode(e){if(this._mode===e)return;this._mode=e,this.dataset.mode=e;let t=this.layout;switch(e){case"multiple-document":for(let r of t.tabBars())r.show();break;case"single-document":t.restoreLayout(ni.createSingleDocumentConfig(this));break;default:throw"unreachable"}re.postMessage(this,ni.LayoutModified)}get tabsMovable(){return this._tabsMovable}set tabsMovable(e){this._tabsMovable=e;for(let t of this.tabBars())t.tabsMovable=e}get tabsConstrained(){return this._tabsConstrained}set tabsConstrained(e){this._tabsConstrained=e}get addButtonEnabled(){return this._addButtonEnabled}set addButtonEnabled(e){this._addButtonEnabled=e;for(let t of this.tabBars())t.addButtonEnabled=e}get isEmpty(){return this.layout.isEmpty}*widgets(){yield*this.layout.widgets()}*selectedWidgets(){yield*this.layout.selectedWidgets()}*tabBars(){yield*this.layout.tabBars()}*handles(){yield*this.layout.handles()}selectWidget(e){let t=Qd(this.tabBars(),r=>r.titles.indexOf(e.title)!==-1);if(!t)throw new Error("Widget is not contained in the dock panel.");t.currentTitle=e.title}activateWidget(e){this.selectWidget(e),e.activate()}saveLayout(){return this.layout.saveLayout()}restoreLayout(e){this._mode="multiple-document",this.layout.restoreLayout(e),(Qu.IS_EDGE||Qu.IS_IE)&&re.flush(),re.postMessage(this,ni.LayoutModified)}addWidget(e,t={}){this._mode==="single-document"?this.layout.addWidget(e):this.layout.addWidget(e,t),re.postMessage(this,ni.LayoutModified)}processMessage(e){e.type==="layout-modified"?this._layoutModified.emit(void 0):super.processMessage(e)}handleEvent(e){switch(e.type){case"lm-dragenter":this._evtDragEnter(e);break;case"lm-dragleave":this._evtDragLeave(e);break;case"lm-dragover":this._evtDragOver(e);break;case"lm-drop":this._evtDrop(e);break;case"pointerdown":this._evtPointerDown(e);break;case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"keydown":this._evtKeyDown(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("lm-dragenter",this),this.node.addEventListener("lm-dragleave",this),this.node.addEventListener("lm-dragover",this),this.node.addEventListener("lm-drop",this),this.node.addEventListener("pointerdown",this)}onAfterDetach(e){this.node.removeEventListener("lm-dragenter",this),this.node.removeEventListener("lm-dragleave",this),this.node.removeEventListener("lm-dragover",this),this.node.removeEventListener("lm-drop",this),this.node.removeEventListener("pointerdown",this),this._releaseMouse()}onChildAdded(e){ni.isGeneratedTabBarProperty.get(e.child)||e.child.addClass("lm-DockPanel-widget")}onChildRemoved(e){ni.isGeneratedTabBarProperty.get(e.child)||(e.child.removeClass("lm-DockPanel-widget"),re.postMessage(this,ni.LayoutModified))}_evtDragEnter(e){e.mimeData.hasData("application/vnd.lumino.widget-factory")&&(e.preventDefault(),e.stopPropagation())}_evtDragLeave(e){e.preventDefault(),!(this._tabsConstrained&&e.source!==this)&&(e.stopPropagation(),this.overlay.hide(1))}_evtDragOver(e){e.preventDefault(),this._tabsConstrained&&e.source!==this||this._showOverlay(e.clientX,e.clientY)==="invalid"?e.dropAction="none":(e.stopPropagation(),e.dropAction=e.proposedAction)}_evtDrop(e){if(e.preventDefault(),this.overlay.hide(0),e.proposedAction==="none"){e.dropAction="none";return}let{clientX:t,clientY:r}=e,{zone:n,target:s}=ni.findDropTarget(this,t,r,this._edges);if(this._tabsConstrained&&e.source!==this||n==="invalid"){e.dropAction="none";return}let a=e.mimeData.getData("application/vnd.lumino.widget-factory");if(typeof a!="function"){e.dropAction="none";return}let l=a();if(!(l instanceof V)){e.dropAction="none";return}if(l.contains(this)){e.dropAction="none";return}let u=s?ni.getDropRef(s.tabBar):null;switch(n){case"root-all":this.addWidget(l);break;case"root-top":this.addWidget(l,{mode:"split-top"});break;case"root-left":this.addWidget(l,{mode:"split-left"});break;case"root-right":this.addWidget(l,{mode:"split-right"});break;case"root-bottom":this.addWidget(l,{mode:"split-bottom"});break;case"widget-all":this.addWidget(l,{mode:"tab-after",ref:u});break;case"widget-top":this.addWidget(l,{mode:"split-top",ref:u});break;case"widget-left":this.addWidget(l,{mode:"split-left",ref:u});break;case"widget-right":this.addWidget(l,{mode:"split-right",ref:u});break;case"widget-bottom":this.addWidget(l,{mode:"split-bottom",ref:u});break;case"widget-tab":this.addWidget(l,{mode:"tab-after",ref:u});break;default:throw"unreachable"}e.dropAction=e.proposedAction,e.stopPropagation(),this.activateWidget(l)}
6177_evtKeyDown(e){e.preventDefault(),e.stopPropagation(),e.keyCode===27&&(this._releaseMouse(),re.postMessage(this,ni.LayoutModified))}_evtPointerDown(e){if(e.button!==0)return;let t=this.layout,r=e.target,n=Qd(t.handles(),c=>c.contains(r));if(!n)return;e.preventDefault(),e.stopPropagation(),this._document.addEventListener("keydown",this,!0),this._document.addEventListener("pointerup",this,!0),this._document.addEventListener("pointermove",this,!0),this._document.addEventListener("contextmenu",this,!0);let s=n.getBoundingClientRect(),o=e.clientX-s.left,a=e.clientY-s.top,l=window.getComputedStyle(n),u=gt.overrideCursor(l.cursor,this._document);this._pressData={handle:n,deltaX:o,deltaY:a,override:u}}_evtPointerMove(e){if(!this._pressData)return;e.preventDefault(),e.stopPropagation();let t=this.node.getBoundingClientRect(),r=e.clientX-t.left-this._pressData.deltaX,n=e.clientY-t.top-this._pressData.deltaY;this.layout.moveHandle(this._pressData.handle,r,n)}_evtPointerUp(e){e.button===0&&(e.preventDefault(),e.stopPropagation(),this._releaseMouse(),re.postMessage(this,ni.LayoutModified))}_releaseMouse(){this._pressData&&(this._pressData.override.dispose(),this._pressData=null,this._document.removeEventListener("keydown",this,!0),this._document.removeEventListener("pointerup",this,!0),this._document.removeEventListener("pointermove",this,!0),this._document.removeEventListener("contextmenu",this,!0))}_showOverlay(e,t){let{zone:r,target:n}=ni.findDropTarget(this,e,t,this._edges);if(r==="invalid")return this.overlay.hide(100),r;let s,o,a,l,u=yt.boxSizing(this.node),c=this.node.getBoundingClientRect();switch(r){case"root-all":s=u.paddingTop,o=u.paddingLeft,a=u.paddingRight,l=u.paddingBottom;break;case"root-top":s=u.paddingTop,o=u.paddingLeft,a=u.paddingRight,l=c.height*ni.GOLDEN_RATIO;break;case"root-left":s=u.paddingTop,o=u.paddingLeft,a=c.width*ni.GOLDEN_RATIO,l=u.paddingBottom;break;case"root-right":s=u.paddingTop,o=c.width*ni.GOLDEN_RATIO,a=u.paddingRight,l=u.paddingBottom;break;case"root-bottom":s=c.height*ni.GOLDEN_RATIO,o=u.paddingLeft,a=u.paddingRight,l=u.paddingBottom;break;case"widget-all":s=n.top,o=n.left,a=n.right,l=n.bottom;break;case"widget-top":s=n.top,o=n.left,a=n.right,l=n.bottom+n.height/2;break;case"widget-left":s=n.top,o=n.left,a=n.right+n.width/2,l=n.bottom;break;case"widget-right":s=n.top,o=n.left+n.width/2,a=n.right,l=n.bottom;break;case"widget-bottom":s=n.top+n.height/2,o=n.left,a=n.right,l=n.bottom;break;case"widget-tab":{let d=n.tabBar.node.getBoundingClientRect().height;s=n.top,o=n.left,a=n.right,l=n.bottom+n.height-d;break}default:throw"unreachable"}return this.overlay.show({top:s,left:o,right:a,bottom:l}),r}_createTabBar(){let e=this._renderer.createTabBar(this._document);return ni.isGeneratedTabBarProperty.set(e,!0),this._mode==="single-document"&&e.hide(),e.tabsMovable=this._tabsMovable,e.allowDeselect=!1,e.addButtonEnabled=this._addButtonEnabled,e.removeBehavior="select-previous-tab",e.insertBehavior="select-tab-if-needed",e.tabMoved.connect(this._onTabMoved,this),e.currentChanged.connect(this._onCurrentChanged,this),e.tabCloseRequested.connect(this._onTabCloseRequested,this),e.tabDetachRequested.connect(this._onTabDetachRequested,this),e.tabActivateRequested.connect(this._onTabActivateRequested,this),e.addRequested.connect(this._onTabAddRequested,this),e}_createHandle(){return this._renderer.createHandle()}_onTabMoved(){re.postMessage(this,ni.LayoutModified)}_onCurrentChanged(e,t){let{previousTitle:r,currentTitle:n}=t;r&&r.owner.hide(),n&&n.owner.show(),(Qu.IS_EDGE||Qu.IS_IE)&&re.flush(),re.postMessage(this,ni.LayoutModified)}_onTabAddRequested(e){this._addRequested.emit(e)}_onTabActivateRequested(e,t){t.title.owner.activate()}_onTabCloseRequested(e,t){t.title.owner.close()}_onTabDetachRequested(e,t){if(this._drag)return;e.releaseMouse();let{title:r,tab:n,clientX:s,clientY:o,offset:a}=t,l=new Ia.MimeData,u=()=>r.owner;l.setData("application/vnd.lumino.widget-factory",u);let c=n.cloneNode(!0);a&&(c.style.top=`-${a.y}px`,c.style.left=`-${a.x}px`),this._drag=new gt({document:this._document,mimeData:l,dragImage:c,proposedAction:"move",supportedActions:"move",source:this}),n.classList.add("lm-mod-hidden");let d=()=>{this._drag=null,n.classList.remove("lm-mod-hidden")};this._drag.start(s,o).then(d)}};(function(i){class e{constructor(){this._timer=-1,this._hidden=!0,this.node=document.createElement("div"),this.node.classList.add("lm-DockPanel-overlay"),this.node.classList.add("lm-mod-hidden"),this.node.style.position="absolute",this.node.style.contain="strict"}show(n){let s=this.node.style;s.top=`${n.top}px`,s.left=`${n.left}px`,s.right=`${n.right}px`,s.bottom=`${n.bottom}px`,clearTimeout(this._timer),this._timer=-1,this._hidden&&(this._hidden=!1,this.node.classList.remove("lm-mod-hidden"))}hide(n){if(!this._hidden){if(n<=0){clearTimeout(this._timer),this._timer=-1,this._hidden=!0,this.node.classList.add("lm-mod-hidden");return}this._timer===-1&&(this._timer=window.setTimeout(()=>{this._timer=-1,this._hidden=!0,this.node.classList.add("lm-mod-hidden")},n))}}}i.Overlay=e;
6177class t{createTabBar(n){let s=new $l({document:n});return s.addClass("lm-DockPanel-tabBar"),s}createHandle(){let n=document.createElement("div");return n.className="lm-DockPanel-handle",n}}i.Renderer=t,i.defaultRenderer=new t})(sc||(sc={}));(function(i){i.GOLDEN_RATIO=.618,i.DEFAULT_EDGES={top:12,right:40,bottom:40,left:40},i.LayoutModified=new Ol("layout-modified"),i.isGeneratedTabBarProperty=new Ge({name:"isGeneratedTabBar",create:()=>!1});function e(n){if(n.isEmpty)return{main:null};let s=Array.from(n.widgets()),o=n.selectedWidgets().next().value,a=o?s.indexOf(o):-1;return{main:{type:"tab-area",widgets:s,currentIndex:a}}}i.createSingleDocumentConfig=e;function t(n,s,o,a){if(!yt.hitTest(n.node,s,o))return{zone:"invalid",target:null};let l=n.layout;if(l.isEmpty)return{zone:"root-all",target:null};if(n.mode==="multiple-document"){let E=n.node.getBoundingClientRect(),A=s-E.left+1,R=o-E.top+1,$=E.right-s,v=E.bottom-o;switch(Math.min(R,$,v,A)){case R:if(R<a.top)return{zone:"root-top",target:null};break;case $:if($<a.right)return{zone:"root-right",target:null};break;case v:if(v<a.bottom)return{zone:"root-bottom",target:null};break;case A:if(A<a.left)return{zone:"root-left",target:null};break;default:throw"unreachable"}}let u=l.hitTestTabAreas(s,o);if(!u)return{zone:"invalid",target:null};if(n.mode==="single-document")return{zone:"widget-all",target:u};let c=u.x-u.left+1,d=u.y-u.top+1,f=u.left+u.width-u.x,m=u.top+u.height-u.y,b=u.tabBar.node.getBoundingClientRect().height;if(d<b)return{zone:"widget-tab",target:u};let y=Math.round(u.width/3),x=Math.round(u.height/3);if(c>y&&f>y&&d>x&&m>x)return{zone:"widget-all",target:u};c/=y,d/=x,f/=y,m/=x;let M=Math.min(c,d,f,m),T;switch(M){case c:T="widget-left";break;case d:T="widget-top";break;case f:T="widget-right";break;case m:T="widget-bottom";break;default:throw"unreachable"}return{zone:T,target:u}}i.findDropTarget=t;function r(n){return n.titles.length===0?null:n.currentTitle?n.currentTitle.owner:n.titles[n.titles.length-1].owner}i.getDropRef=r})(ni||(ni={}));nv=class{constructor(){this._counter=0,this._widgets=[],this._activeWidget=null,this._currentWidget=null,this._numbers=new Map,this._nodes=new Map,this._activeChanged=new X(this),this._currentChanged=new X(this)}dispose(){if(!(this._counter<0)){this._counter=-1,X.clearData(this);for(let e of this._widgets)e.node.removeEventListener("focus",this,!0),e.node.removeEventListener("blur",this,!0);this._activeWidget=null,this._currentWidget=null,this._nodes.clear(),this._numbers.clear(),this._widgets.length=0}}get currentChanged(){return this._currentChanged}get activeChanged(){return this._activeChanged}get isDisposed(){return this._counter<0}get currentWidget(){return this._currentWidget}get activeWidget(){return this._activeWidget}get widgets(){return this._widgets}focusNumber(e){let t=this._numbers.get(e);return t===void 0?-1:t}has(e){return this._numbers.has(e)}add(e){if(this._numbers.has(e))return;let t=e.node.contains(document.activeElement),r=t?this._counter++:-1;this._widgets.push(e),this._numbers.set(e,r),this._nodes.set(e.node,e),e.node.addEventListener("focus",this,!0),e.node.addEventListener("blur",this,!0),e.disposed.connect(this._onWidgetDisposed,this),t&&this._setWidgets(e,e)}remove(e){if(!this._numbers.has(e)||(e.disposed.disconnect(this._onWidgetDisposed,this),e.node.removeEventListener("focus",this,!0),e.node.removeEventListener("blur",this,!0),ae.removeFirstOf(this._widgets,e),this._nodes.delete(e.node),this._numbers.delete(e),this._currentWidget!==e))return;let t=this._widgets.filter(n=>this._numbers.get(n)!==-1),r=wJ(t,(n,s)=>{let o=this._numbers.get(n),a=this._numbers.get(s);return o-a})||null;this._setWidgets(r,null)}handleEvent(e){switch(e.type){case"focus":this._evtFocus(e);break;case"blur":this._evtBlur(e);break}}_setWidgets(e,t){let r=this._currentWidget;this._currentWidget=e;let n=this._activeWidget;this._activeWidget=t,r!==e&&this._currentChanged.emit({oldValue:r,newValue:e}),n!==t&&this._activeChanged.emit({oldValue:n,newValue:t})}_evtFocus(e){let t=this._nodes.get(e.currentTarget);t!==this._currentWidget&&this._numbers.set(t,this._counter++),this._setWi
6177dgets(t,t)}_evtBlur(e){let t=this._nodes.get(e.currentTarget),r=e.relatedTarget;if(!r){this._setWidgets(this._currentWidget,null);return}if(!t.node.contains(r)&&!Qd(this._widgets,n=>n.node.contains(r))){this._setWidgets(this._currentWidget,null);return}}_onWidgetDisposed(e){this.remove(e)}},Ca=class extends Io{constructor(e={}){super(e),this._dirty=!1,this._rowSpacing=4,this._columnSpacing=4,this._items=[],this._rowStarts=[],this._columnStarts=[],this._rowSizers=[new So],this._columnSizers=[new So],this._box=null,e.rowCount!==void 0&&Pi.reallocSizers(this._rowSizers,e.rowCount),e.columnCount!==void 0&&Pi.reallocSizers(this._columnSizers,e.columnCount),e.rowSpacing!==void 0&&(this._rowSpacing=Pi.clampValue(e.rowSpacing)),e.columnSpacing!==void 0&&(this._columnSpacing=Pi.clampValue(e.columnSpacing))}dispose(){for(let e of this._items){let t=e.widget;e.dispose(),t.dispose()}this._box=null,this._items.length=0,this._rowStarts.length=0,this._rowSizers.length=0,this._columnStarts.length=0,this._columnSizers.length=0,super.dispose()}get rowCount(){return this._rowSizers.length}set rowCount(e){e!==this.rowCount&&(Pi.reallocSizers(this._rowSizers,e),this.parent&&this.parent.fit())}get columnCount(){return this._columnSizers.length}set columnCount(e){e!==this.columnCount&&(Pi.reallocSizers(this._columnSizers,e),this.parent&&this.parent.fit())}get rowSpacing(){return this._rowSpacing}set rowSpacing(e){e=Pi.clampValue(e),this._rowSpacing!==e&&(this._rowSpacing=e,this.parent&&this.parent.fit())}get columnSpacing(){return this._columnSpacing}set columnSpacing(e){e=Pi.clampValue(e),this._columnSpacing!==e&&(this._columnSpacing=e,this.parent&&this.parent.fit())}rowStretch(e){let t=this._rowSizers[e];return t?t.stretch:-1}setRowStretch(e,t){let r=this._rowSizers[e];r&&(t=Pi.clampValue(t),r.stretch!==t&&(r.stretch=t,this.parent&&this.parent.update()))}columnStretch(e){let t=this._columnSizers[e];return t?t.stretch:-1}setColumnStretch(e,t){let r=this._columnSizers[e];r&&(t=Pi.clampValue(t),r.stretch!==t&&(r.stretch=t,this.parent&&this.parent.update()))}*[Symbol.iterator](){for(let e of this._items)yield e.widget}addWidget(e){ae.findFirstIndex(this._items,r=>r.widget===e)===-1&&(this._items.push(new ic(e)),this.parent&&this.attachWidget(e))}removeWidget(e){let t=ae.findFirstIndex(this._items,n=>n.widget===e);if(t===-1)return;let r=ae.removeAt(this._items,t);this.parent&&this.detachWidget(e),r.dispose()}init(){super.init();for(let e of this)this.attachWidget(e)}attachWidget(e){this.parent.isAttached&&re.sendMessage(e,V.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&re.sendMessage(e,V.Msg.AfterAttach),this.parent.fit()}detachWidget(e){this.parent.isAttached&&re.sendMessage(e,V.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&re.sendMessage(e,V.Msg.AfterDetach),this.parent.fit()}onBeforeShow(e){super.onBeforeShow(e),this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e),this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){this.parent.isVisible&&this._update(e.width,e.height)}onUpdateRequest(e){this.parent.isVisible&&this._update(-1,-1)}onFitRequest(e){this.parent.isAttached&&this._fit()}_fit(){for(let l=0,u=this.rowCount;l<u;++l)this._rowSizers[l].minSize=0;for(let l=0,u=this.columnCount;l<u;++l)this._columnSizers[l].minSize=0;let e=this._items.filter(l=>!l.isHidden);for(let l=0,u=e.length;l<u;++l)e[l].fit();let t=this.rowCount-1,r=this.columnCount-1;e.sort(Pi.rowSpanCmp);for(let l=0,u=e.length;l<u;++l){let c=e[l],d=Ca.getCellConfig(c.widget),f=Math.min(d.row,t),m=Math.min(d.row+d.rowSpan-1,t);Pi.distributeMin(this._rowSizers,f,m,c.minHeight)}e.sort(Pi.columnSpanCmp);for(let l=0,u=e.length;l<u;++l){let c=e[l],d=Ca.getCellConfig(c.widget),f=Math.min(d.column,r),m=Math.min(d.column+d.columnSpan-1,r);Pi.distributeMin(this._columnSizers,f,m,c.minWidth)}if(this.fitPolicy==="set-no-constraint"){re.sendMessage(this.parent,V.Msg.UpdateRequest);return}let n=t*this._rowSpacing,s=r*this._columnSpacing;for(let l=0,u=this.rowCount;l<u;++l)n+=this._rowSizers[l].minSize;for(let l=0,u=this.columnCount;l<u;++l)s+=this._columnSizers[l].minSize;let o=this._box=yt.boxSizing(this.parent.node);s+=o.horizontalSum,n+=o.verticalSum;let a=this.parent.node.style;a.minWidth=`${s}px`,a.minHeight=`${n}px`,this._dirty=!0,this.parent.parent&&re.sendMessage(this.parent.parent,V.Msg.FitRequest),this._dirty&&re.sendMessage(this.parent,V.Msg.UpdateRequest)}_update(e,t){this._dirty=!1,e<0&&(e=this.parent.node.offsetWidth),t<0&&(t=this.parent.node.offsetHeight),this._box||(this._box=yt.boxSizing(this.parent.node));let r=this._box.paddingTop,n=this._box.paddingLeft,s=e-this._box.horizontalSum,o=t-this._box.verticalSum,a=this.rowCount-1,l=this.columnCount-1,u=a*this._rowSpacing,c=l*this._columnSpacing;Rn.calc(this._rowSizers,Math.max(0,o-u)),Rn.calc(this._columnSizers,Math.max(0,s-c));for(let d=0,f=r,m=this.rowCount;d<m;++d)this._rowStarts[d]=f,f+=this._rowSizers[d].size+this._rowSpacing;for(let d=0,f=n,m=this.columnCount;d<m;++d)this._columnStarts[d]=f,f+=this._columnSizers[d].size+this._columnSpacing;for(let d=0,f=this._items.length;d<f;++d){let m=this._items[d];if(m.isHidden)continue;let b=Ca.getCellConfig(m.widget),y=Math.min(b.row,a),x=Math.min(b.column,l),M=Math.min(b.row+b.rowSpan-1,a),T=Math.min(b.column+b.columnSpan-1,l),E=this._columnStarts[x],A=this._rowStarts[y],R=this._columnStarts[T]+this._columnSizers[T].size-E,$=this._rowStarts[M]+this._rowSizers[M].size-A;m.update(E,A,R,$)}}};(function(i){function e(r){return Pi.cellConfigProperty.get(r)}i.getCellConfig=e;
6177function t(r,n){Pi.cellConfigProperty.set(r,Pi.normalizeConfig(n))}i.setCellConfig=t})(Ca||(Ca={}));(function(i){i.cellConfigProperty=new Ge({name:"cellConfig",create:()=>({row:0,column:0,rowSpan:1,columnSpan:1}),changed:a});function e(l){let u=Math.max(0,Math.floor(l.row||0)),c=Math.max(0,Math.floor(l.column||0)),d=Math.max(1,Math.floor(l.rowSpan||0)),f=Math.max(1,Math.floor(l.columnSpan||0));return{row:u,column:c,rowSpan:d,columnSpan:f}}i.normalizeConfig=e;function t(l){return Math.max(0,Math.floor(l))}i.clampValue=t;function r(l,u){let c=i.cellConfigProperty.get(l.widget),d=i.cellConfigProperty.get(u.widget);return c.rowSpan-d.rowSpan}i.rowSpanCmp=r;function n(l,u){let c=i.cellConfigProperty.get(l.widget),d=i.cellConfigProperty.get(u.widget);return c.columnSpan-d.columnSpan}i.columnSpanCmp=n;function s(l,u){for(u=Math.max(1,Math.floor(u));l.length<u;)l.push(new So);l.length>u&&(l.length=u)}i.reallocSizers=s;function o(l,u,c,d){if(c<u)return;if(u===c){let b=l[u];b.minSize=Math.max(b.minSize,d);return}let f=0;for(let b=u;b<=c;++b)f+=l[b].minSize;if(f>=d)return;let m=(d-f)/(c-u+1);for(let b=u;b<=c;++b)l[b].minSize+=m}i.distributeMin=o;function a(l){l.parent&&l.parent.layout instanceof Ca&&l.parent.fit()}})(Pi||(Pi={}));nh=class extends V{constructor(e={}){super({node:sv.createNode()}),this._activeIndex=-1,this._tabFocusIndex=0,this._menus=[],this._childMenu=null,this._overflowMenu=null,this._menuItemSizes=[],this._overflowIndex=-1,this.addClass("lm-MenuBar"),this.setFlag(V.Flag.DisallowLayout),this.renderer=e.renderer||nh.defaultRenderer,this._forceItemsPosition=e.forceItemsPosition||{forceX:!0,forceY:!0},this._overflowMenuOptions=e.overflowMenuOptions||{isVisible:!0}}dispose(){this._closeChildMenu(),this._menus.length=0,super.dispose()}get childMenu(){return this._childMenu}get overflowIndex(){return this._overflowIndex}get overflowMenu(){return this._overflowMenu}get contentNode(){return this.node.getElementsByClassName("lm-MenuBar-content")[0]}get activeMenu(){return this._menus[this._activeIndex]||null}set activeMenu(e){this.activeIndex=e?this._menus.indexOf(e):-1}get activeIndex(){return this._activeIndex}set activeIndex(e){(e<0||e>=this._menus.length)&&(e=-1),e>-1&&this._menus[e].items.length===0&&(e=-1),this._activeIndex!==e&&(this._activeIndex=e,this.update())}get menus(){return this._menus}openActiveMenu(){this._activeIndex!==-1&&(this._openChildMenu(),this._childMenu&&(this._childMenu.activeIndex=-1,this._childMenu.activateNextItem()))}addMenu(e,t=!0){this.insertMenu(this._menus.length,e,t)}insertMenu(e,t,r=!0){this._closeChildMenu();let n=this._menus.indexOf(t),s=Math.max(0,Math.min(e,this._menus.length));if(n===-1){ae.insert(this._menus,s,t),t.addClass("lm-MenuBar-menu"),t.aboutToClose.connect(this._onMenuAboutToClose,this),t.menuRequested.connect(this._onMenuMenuRequested,this),t.title.changed.connect(this._onTitleChanged,this),r&&this.update();return}s===this._menus.length&&s--,n!==s&&(ae.move(this._menus,n,s),r&&this.update())}removeMenu(e,t=!0){this.removeMenuAt(this._menus.indexOf(e),t)}removeMenuAt(e,t=!0){this._closeChildMenu();let r=ae.removeAt(this._menus,e);r&&(r.aboutToClose.disconnect(this._onMenuAboutToClose,this),r.menuRequested.disconnect(this._onMenuMenuRequested,this),r.title.changed.disconnect(this._onTitleChanged,this),r.removeClass("lm-MenuBar-menu"),t&&this.update())}clearMenus(){if(this._menus.length!==0){this._closeChildMenu();for(let e of this._menus)e.aboutToClose.disconnect(this._onMenuAboutToClose,this),e.menuRequested.disconnect(this._onMenuMenuRequested,this),e.t
6177itle.changed.disconnect(this._onTitleChanged,this),e.removeClass("lm-MenuBar-menu");this._menus.length=0,this.update()}}handleEvent(e){switch(e.type){case"keydown":this._evtKeyDown(e);break;case"mousedown":this._evtMouseDown(e);break;case"mousemove":this._evtMouseMove(e);break;case"focusout":this._evtFocusOut(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("keydown",this),this.node.addEventListener("mousedown",this),this.node.addEventListener("mousemove",this),this.node.addEventListener("focusout",this),this.node.addEventListener("contextmenu",this)}onAfterDetach(e){this.node.removeEventListener("keydown",this),this.node.removeEventListener("mousedown",this),this.node.removeEventListener("mousemove",this),this.node.removeEventListener("focusout",this),this.node.removeEventListener("contextmenu",this),this._closeChildMenu()}onActivateRequest(e){this.isAttached&&this._focusItemAt(0)}onResize(e){this.update(),super.onResize(e)}onUpdateRequest(e){var t;let r=this._menus,n=this.renderer,s=this._activeIndex,o=this._tabFocusIndex>=0&&this._tabFocusIndex<r.length?this._tabFocusIndex:0,a=this._overflowIndex>-1?this._overflowIndex:r.length,l=0,u=!1;a=this._overflowMenu!==null?a-1:a;let c=new Array(a);for(let d=0;d<a;++d)c[d]=n.renderItem({title:r[d].title,active:d===s,tabbable:d===o,disabled:r[d].items.length===0,onfocus:()=>{this._tabFocusIndex=d,this.activeIndex=d}}),l+=this._menuItemSizes[d],r[d].title.label===this._overflowMenuOptions.title&&(u=!0,a--);if(this._overflowMenuOptions.isVisible){if(this._overflowIndex>-1&&!u){if(this._overflowMenu===null){let d=(t=this._overflowMenuOptions.title)!==null&&t!==void 0?t:"...";this._overflowMenu=new Co({commands:new Jt}),this._overflowMenu.title.label=d,this._overflowMenu.title.mnemonic=0,this.addMenu(this._overflowMenu,!1)}for(let d=r.length-2;d>=a;d--){let f=this.menus[d];f.title.mnemonic=0,this._overflowMenu.insertItem(0,{type:"submenu",submenu:f}),this.removeMenu(f,!1)}c[a]=n.renderItem({title:this._overflowMenu.title,active:a===s&&r[a].items.length!==0,tabbable:a===o,disabled:r[a].items.length===0,onfocus:()=>{this._tabFocusIndex=a,this.activeIndex=a}}),a++}else if(this._overflowMenu!==null){let d=this._overflowMenu.items,f=this.node.offsetWidth,m=this._overflowMenu.items.length;for(let b=0;b<m;++b){let y=r.length-1-b;if(f-l>this._menuItemSizes[y]){let x=d[0].submenu;this._overflowMenu.removeItemAt(0),this.insertMenu(a,x,!1),c[a]=n.renderItem({title:x.title,active:!1,tabbable:a===o,disabled:r[a].items.length===0,onfocus:()=>{this._tabFocusIndex=a,this.activeIndex=a}}),a++}}this._overflowMenu.items.length===0&&(this.removeMenu(this._overflowMenu,!1),c.pop(),this._overflowMenu=null,this._overflowIndex=-1)}}Wt.render(c,this.contentNode),this._updateOverflowIndex()}_updateOverflowIndex(){if(!this._overflowMenuOptions.isVisible)return;let e=this.contentNode.childNodes,t=this.node.offsetWidth,r=0,n=-1,s=e.length;if(this._menuItemSizes.length==0)for(let o=0;o<s;o++){let a=e[o];r+=a.offsetWidth,this._menuItemSizes.push(a.offsetWidth),r>t&&n===-1&&(n=o)}else for(let o=0;o<this._menuItemSizes.length;o++)if(r+=this._menuItemSizes[o],r>t){n=o;break}this._overflowIndex=n}_evtKeyDown(e){let t=e.keyCode;if(t===9){this.activeIndex=-1;return}if(e.preventDefault(),e.stopPropagation(),t===13||t===32||t===38||t===40){if(this.activeIndex=this._tabFocusIndex,this.activeIndex!==this._tabFocusIndex)return;this.openActiveMenu();return}if(t===27){this._closeChildMenu(),this._focusItemAt(this.activeIndex);return}if(t===37||t===39){let o=t===37?-1:1,a=this._tabFocusIndex+o,l=this._menus.length;for(let u=0;u<l;u++){let c=(l+a+o*u)%l;if(this._menus[c].items.length){this._focusItemAt(c);return}}return}let r=Bn().keyForKeydownEvent(e);if(!r)return;let n=this._activeIndex+1,s=sv.findMnemonic(this._menus,r,n);s.index!==-1&&!s.multiple?(this.activeIndex=s.index,this.openActiveMenu()):s.index!==-1?(this.activeIndex=s.index,this._focusItemAt(this.activeIndex)):s.auto!==-1&&(this.activeIndex=s.auto,this._focusItemAt(this.activeIndex))}_evtMouseDown(e){if(!yt.hitTest(this.node,e.clientX,e.clientY))return;e.stopPropagation(),e.stopImmediatePropagation();let t=ae.findFirstIndex(this.contentNode.children,r=>yt.hitTest(r,e.clientX,e.clientY));if(t===-1){this._closeChildMenu();return}if(e.button===0)if(this._childMenu)this._closeChildMenu(),this.activeIndex=t;else{e.preventDefault();let r=this._positionForMenu(t);Co.saveWindowData(),this.activeIndex=t,this._openChildMenu(r)}}_evtMouseMove(e){let t=ae.findFirstIndex(this.contentNode.children,n=>yt.hitTest(n,e.clientX,e.clientY));if(t===this._activeIndex||t===-1&&this._childMenu)return;let r=t>=0&&this._childMenu?this._positionForMenu(t):null;Co.saveWindowData(),this.activeIndex=t,r&&this._openChildMenu(r)}_positionForMenu(e){let t=this.contentNode.children[e],{left:r,bottom:n}=t.getBoundingClientRect();return{top:n,left:r}}_evtFocusOut(e){!this._childMenu&&!this.node.contains(e.relatedTarget)&&(this.activeIndex=-1)}_focusItemAt(e){let t=this.contentNode.childNodes[e];t&&t.focus()}_openChildMenu(e={}){let t=this.activeMenu;if(!t){this._closeChildMenu();return}let r=this._childMenu;if(r===t)return;this._childMenu=t,r?r.close():document.addEventListener("mousedown",this,
6177!0),this._tabFocusIndex=this.activeIndex,re.sendMessage(this,V.Msg.UpdateRequest);let{left:n,top:s}=e;(typeof n>"u"||typeof s>"u")&&({left:n,top:s}=this._positionForMenu(this._activeIndex)),r||this.addClass("lm-mod-active"),t.items.length>0&&t.open(n,s,this._forceItemsPosition)}_closeChildMenu(){if(!this._childMenu)return;this.removeClass("lm-mod-active"),document.removeEventListener("mousedown",this,!0);let e=this._childMenu;this._childMenu=null,e.close(),this.activeIndex=-1}_onMenuAboutToClose(e){e===this._childMenu&&(this.removeClass("lm-mod-active"),document.removeEventListener("mousedown",this,!0),this._childMenu=null,this.activeIndex=-1)}_onMenuMenuRequested(e,t){if(e!==this._childMenu)return;let r=this._activeIndex,n=this._menus.length;switch(t){case"next":this.activeIndex=r===n-1?0:r+1;break;case"previous":this.activeIndex=r===0?n-1:r-1;break}this.openActiveMenu()}_onTitleChanged(){this.update()}};(function(i){class e{renderItem(r){let n=this.createItemClass(r),s=this.createItemDataset(r),o=this.createItemARIA(r);return ne.li({className:n,dataset:s,...r.disabled?{}:{tabindex:r.tabbable?"0":"-1"},onfocus:r.onfocus,...o},this.renderIcon(r),this.renderLabel(r))}renderIcon(r){let n=this.createIconClass(r);return ne.div({className:n},r.title.icon,r.title.iconLabel)}renderLabel(r){let n=this.formatLabel(r);return ne.div({className:"lm-MenuBar-itemLabel"},n)}createItemClass(r){let n="lm-MenuBar-item";return r.title.className&&(n+=` ${r.title.className}`),r.active&&!r.disabled&&(n+=" lm-mod-active"),n}createItemDataset(r){return r.title.dataset}createItemARIA(r){return{role:"menuitem","aria-haspopup":"true","aria-disabled":r.disabled?"true":"false"}}createIconClass(r){let n="lm-MenuBar-itemIcon",s=r.title.iconClass;return s?`${n} ${s}`:n}formatLabel(r){let{label:n,mnemonic:s}=r.title;if(s<0||s>=n.length)return n;let o=n.slice(0,s),a=n.slice(s+1),l=n[s],u=ne.span({className:"lm-MenuBar-itemMnemonic"},l);return[o,u,a]}}i.Renderer=e,i.defaultRenderer=new e})(nh||(nh={}));(function(i){function e(){let r=document.createElement("div"),n=document.createElement("ul");return n.className="lm-MenuBar-content",r.appendChild(n),n.setAttribute("role","menubar"),r}i.createNode=e;function t(r,n,s){let o=-1,a=-1,l=!1,u=n.toUpperCase();for(let c=0,d=r.length;c<d;++c){let f=(c+s)%d,m=r[f].title;if(m.label.length===0)continue;let b=m.mnemonic;if(b>=0&&b<m.label.length){m.label[b].toUpperCase()===u&&(o===-1?o=f:l=!0);continue}a===-1&&m.label[0].toUpperCase()===u&&(a=f)}return{index:o,multiple:l,auto:a}}i.findMnemonic=t})(sv||(sv={}));(function(i){function e(){let r=document.createElement("div"),n=document.createElement("div"),s=document.createElement("div"),o=document.createElement("div"),a=document.createElement("div");return n.className="lm-ScrollBar-button",s.className="lm-ScrollBar-button",n.dataset.action="decrement",s.dataset.action="increment",o.className="lm-ScrollBar-track",a.className="lm-ScrollBar-thumb",o.appendChild(a),r.appendChild(n),r.appendChild(o),r.appendChild(s),r}i.createNode=e;function t(r,n){return r.thumbNode.contains(n)?"thumb":r.trackNode.contains(n)?"track":r.decrementNode.contains(n)?"decrement":r.incrementNode.contains(n)?"increment":null}i.findPart=t})(AJ||(AJ={}));RJ=class extends Io{constructor(){super(...arguments),this._widget=null}dispose(){if(this._widget){let e=this._widget;this._widget=null,e.dispose()}super.dispose()}get widget(){return this._widget}set widget(e){e&&(e.parent=this.parent),this._widget!==e&&(this._widget&&this._widget.dispose(),this._widget=e,this.parent&&e&&this.attachWidget(e))}*[Symbol.iterator](){this._widget&&(yield this._widget)}removeWidget(e){this._widget===e&&(this._widget=null,this.parent&&this.detachWidget(e))}init(){super.init();for(let e of this)this.attachWidget(e)}attachWidget(e){this.parent.isAttached&&re.sendMessage(e,V.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&re.sendMessage(e,V.Msg.AfterAttach)}detachWidget(e){this.parent.isAttached&&re.sendMessage(e,V.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&re.sendMessage(e,V.Msg.AfterDetach)}},kS=class extends Ll{constructor(e={}){super(e),this._dirty=!1,this._items=[],this._box=null,this._hiddenMode=e.hiddenMode!==void 0?e.hiddenMode:V.HiddenMode.Display}get hiddenMode(){return this._hiddenMode}set hiddenMode(e){this._hiddenMode!==e&&(this._hiddenMode=e,this.widgets.length>
61771&&this.widgets.forEach(t=>{t.hiddenMode=this._hiddenMode}))}dispose(){for(let e of this._items)e.dispose();this._box=null,this._items.length=0,super.dispose()}attachWidget(e,t){this._hiddenMode===V.HiddenMode.Scale&&this._items.length>0?(this._items.length===1&&(this.widgets[0].hiddenMode=V.HiddenMode.Scale),t.hiddenMode=V.HiddenMode.Scale):t.hiddenMode=V.HiddenMode.Display,ae.insert(this._items,e,new ic(t)),this.parent.isAttached&&re.sendMessage(t,V.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.isAttached&&re.sendMessage(t,V.Msg.AfterAttach),this.parent.fit()}moveWidget(e,t,r){ae.move(this._items,e,t),this.parent.update()}detachWidget(e,t){let r=ae.removeAt(this._items,e);this.parent.isAttached&&re.sendMessage(t,V.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&re.sendMessage(t,V.Msg.AfterDetach),r.widget.node.style.zIndex="",this._hiddenMode===V.HiddenMode.Scale&&(t.hiddenMode=V.HiddenMode.Display,this._items.length===1&&(this._items[0].widget.hiddenMode=V.HiddenMode.Display)),r.dispose(),this.parent.fit()}onBeforeShow(e){super.onBeforeShow(e),this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e),this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){this.parent.isVisible&&this._update(e.width,e.height)}onUpdateRequest(e){this.parent.isVisible&&this._update(-1,-1)}onFitRequest(e){this.parent.isAttached&&this._fit()}_fit(){let e=0,t=0;for(let s=0,o=this._items.length;s<o;++s){let a=this._items[s];a.isHidden||(a.fit(),e=Math.max(e,a.minWidth),t=Math.max(t,a.minHeight))}let r=this._box=yt.boxSizing(this.parent.node);e+=r.horizontalSum,t+=r.verticalSum;let n=this.parent.node.style;n.minWidth=`${e}px`,n.minHeight=`${t}px`,this._dirty=!0,this.parent.parent&&re.sendMessage(this.parent.parent,V.Msg.FitRequest),this._dirty&&re.sendMessage(this.parent,V.Msg.UpdateRequest)}_update(e,t){this._dirty=!1;let r=0;for(let l=0,u=this._items.length;l<u;++l)r+=+!this._items[l].isHidden;if(r===0)return;e<0&&(e=this.parent.node.offsetWidth),t<0&&(t=this.parent.node.offsetHeight),this._box||(this._box=yt.boxSizing(this.parent.node));let n=this._box.paddingTop,s=this._box.paddingLeft,o=e-this._box.horizontalSum,a=t-this._box.verticalSum;for(let l=0,u=this._items.length;l<u;++l){let c=this._items[l];c.isHidden||(c.widget.node.style.zIndex=`${l}`,c.update(s,n,o,a))}}};(function(i){function e(t){return t.layout||new kS}i.createLayout=e})(DJ||(DJ={}));(function(i){function e(s){return r[s]}i.orientationFromPlacement=e;function t(s){return n[s]}i.directionFromPlacement=t;let r={top:"horizontal",left:"vertical",right:"vertical",bottom:"horizontal"},n={top:"top-to-bottom",left:"left-to-right",right:"right-to-left",bottom:"bottom-to-top"}})(OJ||(OJ={}))});var LJ,ov,AS=w(()=>{LJ=z(Mm());Qe();Ma();ov=class{constructor(e){this._currentChanged=new X(this),this._deferred=null,this._isDisposed=!1,this._widgetAdded=new X(this),this._widgetUpdated=new X(this);let t=this._focusTracker=new nv,r=this._pool=new LJ.RestorablePool(e);this.namespace=e.namespace,t.currentChanged.connect((n,s)=>{s.newValue!==this.currentWidget&&(r.current=s.newValue)},this),r.added.connect((n,s)=>{this._widgetAdded.emit(s)},this),r.currentChanged.connect((n,s)=>{if(s===null&&t.currentWidget){r.current=t.currentWidget;return}this.onCurrentChanged(s),this._currentChanged.emit(s)},this),r.updated.connect((n,s)=>{this._widgetUpdated.emit(s)},this)}get currentChanged(){return this._currentChanged}get currentWidget(){return this._pool.current||null}get restored(){return this._deferred?Promise.resolve():this._pool.restored}get size(){return this._pool.size}get widgetAdded(){return this._widgetAdded}get widgetUpdated(){return this._widgetUpdated}async add(e){this._focusTracker.add(e),await this._pool.add(e),this._focusTracker.activeWidget||(this._pool.current=e)}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,this._pool.dispose(),this._focusTracker.dispose(),X.clearData(this))}find(e){return this._pool.find(e)}forEach(e){return this._pool.forEach(e)}filter(e){return this._pool.filter(e)}inject(e){return this._pool.inject(e)}has(e){return this._pool.has(e)}async restore(e){let t=this._deferred;if(t)return this._deferred=null,this._pool.restore(t);if(e)return this._pool.restore(e);console.warn("No options provided to restore the tracker.")}defer(e){this._deferred=e}async save(e){return this._pool.save(e)}onCurrentChanged(e){}}});function Ea(i={}){return new ct(i).launch()}var RS,sh,ct,Fl,av=w(()=>{Nn();fa();Zu();RS=z(Ze());tv();Ma();sh=z(Je());AS();ct=class extends V{constructor(e={}){let t=document.createElement("dialog");t.ariaModal="true",super({node:t}),this._hasValidationErrors=!1,this._ready=new RS.PromiseDelegate,this._focusNodeSelector="",this.addClass("jp-Dialog");let r=Fl.handleOptions(e),n=r.renderer;if(this._host=r.host,this._defaultButton=r.defaultButton,this._buttons=r.buttons,this._hasClose=r.hasClose,this._buttonNodes=this._buttons.map(c=>n.createButtonNode(c)),this._checkboxNode=null,this._lastMouseDownInDialog=!1,r.checkbox){let{label:c="",caption:d="",checked:f=!1,
6177className:m=""}=r.checkbox;this._checkboxNode=n.createCheckboxNode({label:c,caption:d??c,checked:f,className:m})}let s=this.layout=new Ll,o=new rc;o.addClass("jp-Dialog-content"),typeof e.body=="string"&&(o.addClass("jp-Dialog-content-small"),t.ariaLabel=[r.title,e.body].join(" ")),s.addWidget(o),this._body=r.body;let a=n.createHeader(r.title,()=>this.reject(),e),l=n.createBody(r.body),u=n.createFooter(this._buttonNodes,this._checkboxNode);o.addWidget(a),o.addWidget(l),o.addWidget(u),this._bodyWidget=l,this._primary=this._buttonNodes[this._defaultButton],this._focusNodeSelector=e.focusNodeSelector,ct.tracker.add(this)}get ready(){return this._ready.promise}dispose(){let e=this._promise;e&&(this._promise=null,e.reject(void 0),ae.removeFirstOf(Fl.launchQueue,e.promise)),super.dispose()}launch(){if(this._promise)return this._promise.promise;let e=this._promise=new RS.PromiseDelegate,t=Promise.all(Fl.launchQueue);return Fl.launchQueue.push(this._promise.promise),t.then(()=>this._promise?(V.attach(this,this._host),e.promise):Promise.resolve({button:ct.cancelButton(),isChecked:null,value:null}))}resolve(e){this._promise&&(e===void 0&&(e=this._defaultButton),this._resolve(this._buttons[e]))}reject(){this._promise&&this._resolve(ct.cancelButton())}handleEvent(e){switch(e.type){case"keydown":this._evtKeydown(e);break;case"mousedown":this._evtMouseDown(e);break;case"click":this._evtClick(e);break;case"input":this._evtInput(e);break;case"focus":this._evtFocus(e);break;case"contextmenu":e.preventDefault(),e.stopPropagation();break;default:break}}onAfterAttach(e){let t=this.node;t.addEventListener("keydown",this,!0),t.addEventListener("contextmenu",this,!0),t.addEventListener("click",this,!0),document.addEventListener("mousedown",this,!0),document.addEventListener("focus",this,!0),document.addEventListener("input",this,!0),this._first=Fl.findFirstFocusable(this.node),this._original=document.activeElement;let r=()=>{var n;if(this._focusNodeSelector){let s=this.node.querySelector(".jp-Dialog-body"),o=s?.querySelector(this._focusNodeSelector);o&&(this._primary=o)}(n=this._primary)===null||n===void 0||n.focus(),this._ready.resolve()};this._bodyWidget instanceof Sr&&this._bodyWidget.renderPromise!==void 0?this._bodyWidget.renderPromise.then(()=>{r()}).catch(()=>{console.error("Error while loading Dialog's body")}):r()}onAfterDetach(e){let t=this.node;t.removeEventListener("keydown",this,!0),t.removeEventListener("contextmenu",this,!0),t.removeEventListener("click",this,!0),document.removeEventListener("focus",this,!0),document.removeEventListener("mousedown",this,!0),document.removeEventListener("input",this,!0),this._original.focus()}onCloseRequest(e){this._promise&&this.reject(),super.onCloseRequest(e)}_evtInput(e){this._hasValidationErrors=!!this.node.querySelector(":invalid");for(let t=0;t<this._buttons.length;t++)this._buttons[t].accept&&(this._buttonNodes[t].disabled=this._hasValidationErrors)}_evtClick(e){if(!this.node.getElementsByClassName("jp-Dialog-content")[0].contains(e.target)){e.stopPropagation(),e.preventDefault(),this._hasClose&&!this._lastMouseDownInDialog&&this.reject();return}for(let r of this._buttonNodes)if(r.contains(e.target)){let n=this._buttonNodes.indexOf(r);this.resolve(n)}}_evtKeydown(e){switch(e.keyCode){case 27:e.stopPropagation(),e.preventDefault(),this._hasClose&&this.reject();break;case 37:{let t=document.activeElement;if(t instanceof HTMLButtonElement){let r=this._buttonNodes.indexOf(t)-1;r<0&&(r=this._buttonNodes.length-1);let n=this._buttonNodes[r];e.stopPropagation(),e.preventDefault(),n.focus()}break}case 39:{let t=document.activeElement;if(t instanceof HTMLButtonElement){let r=this._buttonNodes.indexOf(t)+1;r==this._buttons.length&&(r=0);let n=this._buttonNodes[r];e.stopPropagation(),e.preventDefault(),n.focus()}break}case 9:{let t=this._buttonNodes[this._buttons.length-1];document.activeElement===t&&!e.shiftKey&&(e.stopPropagation(),e.preventDefault(),this._first.focus());break}case 13:{e.stopPropagation(),e.preventDefault();let t=document.activeElement,r;t instanceof HTMLButtonElement&&(r=this._buttonNodes.indexOf(t)),this.resolve(r);break}default:break}}_evtFocus(e){var t;let r=e.target;this.node.contains(r)||(e.stopPropagation(),(t=this._buttonNodes[this._defaultButton])===null||t===void 0||t.focu
6177s())}_evtMouseDown(e){let t=this.node.getElementsByClassName("jp-Dialog-content")[0],r=e.target;this._lastMouseDownInDialog=t.contains(r)}_resolve(e){var t,r,n;if(this._hasValidationErrors&&e.accept)return;let s=this._promise;if(!s){this.dispose();return}this._promise=null,ae.removeFirstOf(Fl.launchQueue,s.promise);let o=this._body,a=null;e.accept&&o instanceof V&&typeof o.getValue=="function"&&(a=o.getValue()),this.dispose(),s.resolve({button:e,isChecked:(n=(r=(t=this._checkboxNode)===null||t===void 0?void 0:t.querySelector("input"))===null||r===void 0?void 0:r.checked)!==null&&n!==void 0?n:null,value:a})}};(function(i){i.translator=pt;function e(a){a.accept=a.accept!==!1;let l=i.translator.load("jupyterlab"),u=a.accept?l.__("Ok"):l.__("Cancel");return{ariaLabel:a.ariaLabel||a.label||u,label:a.label||u,iconClass:a.iconClass||"",iconLabel:a.iconLabel||"",caption:a.caption||"",className:a.className||"",accept:a.accept,actions:a.actions||[],displayType:a.displayType||"default"}}i.createButton=e;function t(a={}){return a.accept=!1,e(a)}i.cancelButton=t;function r(a={}){return a.accept=!0,e(a)}i.okButton=r;function n(a={}){return a.displayType="warn",e(a)}i.warnButton=n;function s(){i.tracker.forEach(a=>{a.dispose()})}i.flush=s;class o{createHeader(l,u=()=>{},c={}){let d,f=b=>{b.button===0&&(b.preventDefault(),u())},m=b=>{let{key:y}=b;(y==="Enter"||y===" ")&&u()};if(typeof l=="string"){let b=i.translator.load("jupyterlab");d=Sr.create(sh.createElement(sh.Fragment,null,l,c.hasClose&&sh.createElement(sk,{className:"jp-Dialog-close-button",onMouseDown:f,onKeyDown:m,title:b.__("Cancel"),minimal:!0},sh.createElement(U.resolveReact,{icon:b0,tag:"span"}))))}else d=Sr.create(l);return d.addClass("jp-Dialog-header"),kl.styleNode(d.node),d}createBody(l){let u=d=>{d.renderPromise!==void 0?d.renderPromise.then(()=>{kl.styleNode(d.node)}).catch(()=>{console.error("Error while loading Dialog's body")}):kl.styleNode(d.node)},c;return typeof l=="string"?(c=new V({node:document.createElement("span")}),c.node.textContent=l):l instanceof V?(c=l,c instanceof Sr?u(c):kl.styleNode(c.node)):(c=Sr.create(l),re.sendMessage(c,V.Msg.UpdateRequest),u(c)),c.addClass("jp-Dialog-body"),c}createFooter(l,u){let c=new V;c.addClass("jp-Dialog-footer"),u&&(c.node.appendChild(u),c.node.insertAdjacentHTML("beforeend",'<div class="jp-Dialog-spacer"></div>'));for(let d of l)c.node.appendChild(d);return kl.styleNode(c.node),c}createButtonNode(l){let u=document.createElement("button");return u.className=this.createItemClass(l),u.appendChild(this.renderIcon(l)),u.appendChild(this.renderLabel(l)),u}createCheckboxNode(l){let u=document.createElement("label");u.className="jp-Dialog-checkbox",l.className&&u.classList.add(l.className),u.title=l.caption,u.textContent=l.label;let c=document.createElement("input");return c.type="checkbox",c.checked=!!l.checked,u.insertAdjacentElement("afterbegin",c),u}createItemClass(l){let u="jp-Dialog-button";l.accept?u+=" jp-mod-accept":u+=" jp-mod-reject",l.displayType==="warn"&&(u+=" jp-mod-warn");let c=l.className;return c&&(u+=` ${c}`),u}renderIcon(l){let u=document.createElement("div");return u.className=this.createIconClass(l),u.appendChild(document.createTextNode(l.iconLabel)),u}createIconClass(l){let u="jp-Dialog-buttonIcon",c=l.iconClass;return c?`${u} ${c}`:u}renderLabel(l){let u=document.createElement("div");return u.className="jp-Dialog-buttonLabel",u.title=l.caption,u.ariaLabel=l.ariaLabel,u.appendChild(document.createTextNode(l.label)),u}}i.Renderer=o,i.defaultRenderer=new o,i.tracker=new ov({namespace:"@jupyterlab/apputils:Dialog"})})(ct||(ct={}));(function(i){i.launchQueue=[],i.errorMessagePromiseCache=new Map;function e(r={}){var n,s,o,a,l,u,c,d,f;let m=(n=r.buttons)!==null&&n!==void 0?n:[ct.cancelButton(),ct.okButton()];return{title:(s=r.title)!==null&&s!==void 0?s:"",body:(o=r.body)!==null&&o!==void 0?o:"",host:(a=r.host)!==null&&a!==void 0?a:document.body,checkbox:(l=r.checkbox)!==null&&l!==void 0?l:null,buttons:m,defaultButton:(u=r.defaultButton)!==null&&u!==void 0?u:m.length-1,renderer:(c=r.renderer)!==null&&c!==void 0?c:ct.defaultRenderer,focusNodeSelector:(d=r.focusNodeSelector)!==null&&d!==void 0?d:"",hasClose:(f=r.hasClose)!==null&&f!==void 0?f:!0}}i.handleOptions=e;function t(r){let n=["input","select","a[href]","textarea","button","[tabindex]"].join(",");return r.querySelectorAll(n)[0]}i.findFirstFocusable=t})(Fl||(Fl={}))});var F5e,$J=w(()=>{Zu();F5e=z(Ze())});var FJ=w(()=>{Ma();Qe()});var lv,Mo,qp,uv,Hp,jp,DS=w(()=>{lv=z(Ii());Nn();Zu();Mo=z(Ze());Qe();Ma();qp=z(Je());av();uv=class{constructor(e){var t,r,n,s;this._path="",this._name="",this._type="",this._prevKernelName="",this._isDisposed=!1,this._disposed=new X(this),this._session=null,this._ready=new Mo.PromiseDelegate,this._initializing=!1,this._initStarted=new Mo.PromiseDelegate,this._initPromise=new Mo.PromiseDelegate,this._isReady=!1,this._isTerminating=!1,this._isRestarting=!1,this._kernelChanged=new X(this),this._preferenceChanged=new X(this),this._sessionChanged=new X(this),this._statusChanged=new X(this),this._connectionStatusChanged=new X(this),this._pendingInput=!1,this._iopubMessage=new X(this),this._unhandledMessage=new X(this),this._propertyChanged=new X(this),this._dialog=null,this._busyDisposable=null,this._pendingKernelName="",this._pendingSessionRequest="",this.sessionManager=e.sessionManager,this.specsManager=e.specsManager,this.translator=e.translator||pt,this._trans=this.translator.load("jupyterlab"),this._path=(t=e.path)!==null&&t!==void 0?t:Mo.UUID.uuid4(),this._type=(r=e.type)!==null&&r!==void 0?r:"",this._name=(n=e.name)!==null&&n!==void 0?n:"",this._setBusy=e.setBusy,this._kernelPreference=(s=e.kernelPreference)!==null&&s!==void 0?s:{}}get session(){var e;return(e=this._session)!==null&&e!==void 0?e:null}get path(){return this._path}get type(){return this._type}get name(){return this._name}get kernelChanged(){return this._kernelChanged}get sessionChanged(){return this._sessionChanged}get statusChanged(){return this._statusChanged}get pendingInput(){return this._pendingInput}get connectionStatusChanged(){return this._connectionStatusChanged}get iopubMessage(){return this._iopubMessage}get unhandledMessage(){return this._unhandledMessage}get propertyChanged(){return this._propertyChanged}get kernelPreference(){return this._kernelPreference}set kernelPreference(e){if(!Mo.JSONExt.deepEqual(e,this._kernelPreference)){let t=this._kernelPreference;this._kernelPreference=e,this._preferenceChanged.emit({name:"kernelPreference",oldValue:t,newValue:Mo.JSONExt.deepCopy(e)})}}get kernelPreferenceChanged(){return this._preferenceChanged}get isReady(){return this._isReady}get ready(){return this._ready.promise}get isTerminating(){return this._isTerminating}get isRestarting(){return this._isRestarting}get hasNoKernel(){return this.kernelDisplayName===this.noKernelName}get kernelDisplayName(){var e,t,r,n,s,o,a;let l=(e=this.session)===null||e===void 0?void 0:e.kernel;return this._pendingKernelName===this.noKernelName?this.noKernelName:this._pe
6177ndingKernelName?(n=(r=(t=this.specsManager.specs)===null||t===void 0?void 0:t.kernelspecs[this._pendingKernelName])===null||r===void 0?void 0:r.display_name)!==null&&n!==void 0?n:this._pendingKernelName:l?(a=(o=(s=this.specsManager.specs)===null||s===void 0?void 0:s.kernelspecs[l.name])===null||o===void 0?void 0:o.display_name)!==null&&a!==void 0?a:l.name:this.noKernelName}get kernelDisplayStatus(){var e,t;let r=(e=this.session)===null||e===void 0?void 0:e.kernel;return this._isTerminating?"terminating":this._isRestarting?"restarting":this._pendingKernelName===this.noKernelName?"unknown":!r&&this._pendingKernelName||!r&&!this.isReady&&this.kernelPreference.canStart!==!1&&this.kernelPreference.shouldStart!==!1?"initializing":(t=r?.connectionStatus==="connected"?r?.status:r?.connectionStatus)!==null&&t!==void 0?t:"unknown"}get prevKernelName(){return this._prevKernelName}get isDisposed(){return this._isDisposed}get disposed(){return this._disposed}get noKernelName(){return this._trans.__("No Kernel")}dispose(){this._isDisposed||(this._isDisposed=!0,this._disposed.emit(),this._session&&(this.kernelPreference.shutdownOnDispose&&this.sessionManager.shutdown(this._session.id).catch(e=>{console.error(`Kernel not shut down ${e}`)}),this._session.dispose(),this._session=null),this._dialog&&this._dialog.dispose(),this._busyDisposable&&(this._busyDisposable.dispose(),this._busyDisposable=null),X.clearData(this))}async startKernel(){let e=this.kernelPreference;if(!e.autoStartDefault&&e.shouldStart===!1)return!0;let t;if(e.id)t={id:e.id};else{let r=jp.getDefaultKernel({specs:this.specsManager.specs,sessions:this.sessionManager.running(),preference:e});r&&(t={name:r})}if(t)try{return await this._changeKernel(t),!1}catch{}return!0}async restartKernel(){var e,t,r,n,s,o;let a=((e=this.session)===null||e===void 0?void 0:e.kernel)||null;if(!this._isRestarting){this._isRestarting=!0,this._isReady=!1,this._statusChanged.emit("restarting");try{await((r=(t=this.session)===null||t===void 0?void 0:t.kernel)===null||r===void 0?void 0:r.restart()),this._isReady=!0}catch(l){console.error(l)}this._isRestarting=!1,this._statusChanged.emit(((s=(n=this.session)===null||n===void 0?void 0:n.kernel)===null||s===void 0?void 0:s.status)||"unknown"),this._kernelChanged.emit({name:"kernel",oldValue:a,newValue:((o=this.session)===null||o===void 0?void 0:o.kernel)||null})}}async changeKernel(e={}){if(this.isDisposed)throw new Error("Disposed");return await this._initStarted.promise,this._changeKernel(e)}async shutdown(){if(!(this.isDisposed||!this._initializing))return await this._initStarted.promise,this._pendingSessionRequest="",this._pendingKernelName=this.noKernelName,this._shutdownSession()}async initialize(){if(this._initializing)return this._initPromise.promise;this._initializing=!0;let e=await this._initialize();return e||(this._isReady=!0,this._ready.resolve(void 0)),this._pendingSessionRequest||this._initStarted.resolve(void 0),this._initPromise.resolve(e),e}async _initialize(){let e=this.sessionManager;await e.ready,await e.refreshRunning();let t=Qd(e.running(),r=>r.path===this._path);if(t)try{let r=e.connectTo({model:t});this._handleNewSession(r)}catch(r){return this._handleSessionError(r),Promise.reject(r)}return await this._startIfNecessary()}async _shutdownSession(){var e;let t=this._session,r=this._isTerminating,n=this._isReady;this._isTerminating=!0,this._isReady=!1,this._statusChanged.emit("terminating");try{await t?.shutdown(),this._isTerminating=!1,t?.dispose(),this._session=null;let s=t?.kernel||null;this._statusChanged.emit("unknown"),this._kernelChanged.emit({name:"kernel",oldValue:s,newValue:null}),this._sessionChanged.emit({name:"session",oldValue:t,newValue:null})}catch(s){this._isTerminating=r,this._isReady=n;let o=(e=t?.kernel)===null||e===void 0?void 0:e.status;throw o===void 0?this._statusChanged.emit("unknown"):this._statusChanged.emit(o),s}}async _startIfNecessary(){var e;let t=this.kernelPreference;return this.isDisposed||!((e=this.session)===null||e===void 0)&&e.kernel||t.shouldStart===!1||t.canStart===!1?!1:this.startKernel()}async _changeKernel(e={}
6177){if(e.name&&(this._pendingKernelName=e.name),this._session||this._kernelChanged.emit({name:"kernel",oldValue:null,newValue:null}),this._pendingSessionRequest||this._initStarted.resolve(void 0),this._session&&!this._isTerminating)try{return await this._session.changeKernel(e),this._session.kernel}catch(n){throw this._handleSessionError(n),n}let t=lv.PathExt.dirname(this._path),r=this._pendingSessionRequest=lv.PathExt.join(t,Mo.UUID.uuid4());try{this._statusChanged.emit("starting");let n=await this.sessionManager.startNew({path:r,type:this._type,name:this._name,kernel:e});return this._pendingSessionRequest!==n.path?(await n.shutdown(),n.dispose(),null):(await n.setPath(this._path),await n.setName(this._name),this._session&&!this._isTerminating&&await this._shutdownSession(),this._handleNewSession(n))}catch(n){throw this._handleSessionError(n),n}}_handleNewSession(e){var t,r,n;if(this.isDisposed)throw Error("Disposed");return this._isReady||(this._isReady=!0,this._ready.resolve(void 0)),this._session&&this._session.dispose(),this._session=e,this._pendingKernelName="",e&&(this._prevKernelName=(r=(t=e.kernel)===null||t===void 0?void 0:t.name)!==null&&r!==void 0?r:"",e.disposed.connect(this._onSessionDisposed,this),e.propertyChanged.connect(this._onPropertyChanged,this),e.kernelChanged.connect(this._onKernelChanged,this),e.statusChanged.connect(this._onStatusChanged,this),e.connectionStatusChanged.connect(this._onConnectionStatusChanged,this),e.pendingInput.connect(this._onPendingInput,this),e.iopubMessage.connect(this._onIopubMessage,this),e.unhandledMessage.connect(this._onUnhandledMessage,this),e.path!==this._path&&this._onPropertyChanged(e,"path"),e.name!==this._name&&this._onPropertyChanged(e,"name"),e.type!==this._type&&this._onPropertyChanged(e,"type")),this._sessionChanged.emit({name:"session",oldValue:null,newValue:e}),this._kernelChanged.emit({oldValue:null,newValue:e?.kernel||null,name:"kernel"}),this._statusChanged.emit(((n=e?.kernel)===null||n===void 0?void 0:n.status)||"unknown"),e?.kernel||null}async _handleSessionError(e){this._handleNewSession(null);let t="",r="";try{t=e.traceback,r=e.message}catch{}await this._displayKernelError(r,t)}async _displayKernelError(e,t){let r=qp.createElement("div",null,e&&qp.createElement("pre",null,e),t&&qp.createElement("details",{className:"jp-mod-wide"},qp.createElement("pre",null,t)));await(this._dialog=new ct({title:this._trans.__("Error Starting Kernel"),body:r,buttons:[ct.okButton()]})).launch(),this._dialog=null}_onSessionDisposed(){if(this._session){let e=this._session;this._session=null;let t=this._session;this._sessionChanged.emit({name:"session",oldValue:e,newValue:t})}}_onPropertyChanged(e,t){switch(t){case"path":this._path=e.path;break;case"name":this._name=e.name;break;case"type":this._type=e.type;break;default:throw new Error(`unrecognized property ${t}`)}this._propertyChanged.emit(t)}_onKernelChanged(e,t){this._kernelChanged.emit(t)}_onStatusChanged(e,t){var r;if(t==="dead"){let n=(r=e.kernel)===null||r===void 0?void 0:r.model;if(n?.reason){let s=n.traceback||"";this._displayKernelError(n.reason,s)}}this._setBusy&&(t==="busy"?this._busyDisposable||(this._busyDisposable=this._setBusy()):this._busyDisposable&&(this._busyDisposable.dispose(),this._busyDisposable=null)),this._statusChanged.emit(t)}_onConnectionStatusChanged(e,t){this._connectionStatusChanged.emit(t)}_onPendingInput(e,t){this._pendingInput=t}_onIopubMessage(e,t){t.header.msg_type==="shutdown_reply"&&this.session.kernel.removeInputGuard(),this._iopubMessage.emit(t)}_onUnhandledMessage(e,t){this._unhandledMessage.emit(t)}};(function(i){function e(t){let{preference:r}=t,{shouldStart:n}=r;return n===!1?null:jp.getDefaultKernel(t)}i.getDefaultKernel=e})(uv||(uv={}));Hp=class{constructor(e={}){var t;this._translator=(t=e.translator)!==null&&t!==void 0?t:pt}async selectKernel(e){if(e.isDisposed)return Promise.resolve();let t=this._translator.load("jupyterlab"),r=t.__("Cancel");e.hasNoKernel&&(r=e.kernelDisplayName);let n=[ct.cancelButton({label:r}),ct.okButton({label:t.__("Select"),ariaLabel:t.__("Select Kernel")})],s=e.kernelPreference.autoStartDefault,o=typeof s=="boolean",l=await new ct({title:t.__("Select Kernel"),body:new jp.KernelSelector(e,this._translator),buttons:n,checkbox:o?{label:t.__("Always start the preferred kernel"),caption:t.__("Remember my choice and always start the preferred kernel"),checked:s}:null}).launch();if(e.isDisposed||!l.button.accept)return;o&&l.isChecked!==null&&(e.kernelPreference={...e.kernelPreference,autoStartDefault:l.isChecked});let u=l.value;if(u===null&&!e.hasNoKernel)return e.shutdown();u&&await e.changeKernel(u)}async restart(e){var t;let r=this._translator.load("jupyterlab");if(await e.initialize(),e.isDisposed)throw new Error("session already disposed");let n=(t=e.session)===null||t===void 0?void 0:t.kernel;if(!n&&e.prevKernelName)return await e.changeKernel({name:e.prevKernelName}),!0;if(!n)throw new Error("No kernel to restart");
6177let s=ct.warnButton({label:r.__("Restart"),ariaLabel:r.__("Confirm Kernel Restart")}),o=await Ea({title:r.__("Restart Kernel?"),body:r.__("Do you want to restart the kernel of %1? All variables will be lost.",e.name),buttons:[ct.cancelButton({ariaLabel:r.__("Cancel Kernel Restart")}),s]});return n.isDisposed?!1:o.button.accept?(await e.restartKernel(),!0):!1}};(function(i){class e extends V{constructor(c,d){super({node:t(c,d)})}getValue(){let c=this.node.querySelector("select");return JSON.parse(c.value)}}i.KernelSelector=e;function t(u,c){c=c||pt;let d=c.load("jupyterlab"),f=document.createElement("div"),m=document.createElement("label");m.textContent=`${d.__("Select kernel for:")} "${u.name}"`,f.appendChild(m);let b=s(u),y=document.createElement("select");return n(y,b,c,u.hasNoKernel?null:u.kernelDisplayName),f.appendChild(y),f}function r(u){var c;let{specs:d,preference:f}=u,{name:m,language:b,canStart:y,autoStartDefault:x}=f;if(!d||y===!1)return null;let M=x?d.default:null;if(!m&&!b)return M;for(let E in d.kernelspecs)if(E===m)return m;if(!b)return M;let T=[];for(let E in d.kernelspecs){let A=(c=d.kernelspecs[E])===null||c===void 0?void 0:c.language;b===A&&T.push(E)}if(T.length===1){let E=T[0];return console.warn("No exact match found for "+E+", using kernel "+E+" that matches language="+b),E}return M}i.getDefaultKernel=r;function n(u,c,d,f=null){for(var m;u.firstChild;)u.removeChild(u.firstChild);let{preference:b,sessions:y,specs:x}=c,{name:M,id:T,language:E,canStart:A,shouldStart:R}=b;d=d||pt;let $=d.load("jupyterlab");if(!x||A===!1){u.appendChild(a(d)),u.value="null",u.disabled=!0;return}u.disabled=!1;let v=Object.create(null),_=Object.create(null);for(let W in x.kernelspecs){let Ce=x.kernelspecs[W];v[W]=Ce.display_name,_[W]=Ce.language}let h=[];if(M&&M in x.kernelspecs&&h.push(M),M&&h.length>0&&E)for(let W in x.kernelspecs)M!==W&&_[W]===E&&h.push(W);h.length||h.push(x.default);let p=document.createElement("optgroup");p.label=$.__("Start Preferred Kernel"),h.sort((W,Ce)=>v[W].localeCompare(v[Ce]));for(let W of h)p.appendChild(o(W,v[W]));p.firstChild&&u.appendChild(p),u.appendChild(a(d));let g=document.createElement("optgroup");g.label=$.__("Start Other Kernel");let C=[];for(let W in x.kernelspecs)h.indexOf(W)===-1&&C.push(W);C.sort((W,Ce)=>v[W].localeCompare(v[Ce]));for(let W of C)g.appendChild(o(W,v[W]));if(C.length&&u.appendChild(g),R===!1)u.value="null";else{let W=0;f&&(W=[...u.options].findIndex(Ce=>Ce.text===f),W=Math.max(W,0)),u.selectedIndex=W}if(!y)return;let I=[],F=[];for(let W of y)E&&W.kernel&&_[W.kernel.name]===E&&W.kernel.id!==T?I.push(W):((m=W.kernel)===null||m===void 0?void 0:m.id)!==T&&F.push(W);let P=document.createElement("optgroup");if(P.label=$.__("Use Kernel from Preferred Session"),u.appendChild(P),I.length){I.sort((W,Ce)=>W.path.localeCompare(Ce.path));for(let W of I){let Ce=W.kernel?v[W.kernel.name]:"";P.appendChild(l(W,Ce,d))}}let K=document.createElement("optgroup");if(K.label=$.__("Use Kernel from Other Session"),u.appendChild(K),F.length){F.sort((W,Ce)=>W.path.localeCompare(Ce.path));for(let W of F){let Ce=W.kernel?v[W.kernel.name]||W.kernel.name:"";K.appendChild(l(W,Ce,d))}}}i.populateKernelSelect=n;function s(u){return{specs:u.specsManager.specs,sessions:u.sessionManager.running(),preference:u.kernelPreference}}function o(u,c){let d=document.createElement("option");return d.text=c,d.value=JSON.stringify({name:u}),d}function a(u){u=u||pt;let c=u.load("jupyterlab"),d=document.createElement("optgroup");d.label=c.__("Use No Kernel");let f=document.createElement("option");return f.text=c.__("No Kernel"),f.value="null",d.appendChild(f),d}function l(u,c,d){var f,m;d=d||pt;let b=d.load("jupyterlab"),y=document.createElement("option"),x=u.name||lv.PathExt.basename(u.path);return y.text=x,y.value=JSON.stringify({id:(f=u.kernel)===null||f===void 0?void 0:f.id}),y.title=`${b.__("Path:")} ${u.path} 6178${b.__("Name:")} ${x} 6179${b.__("Kernel Name:")} ${c} 6180${b.__("Kernel Id:")} ${(m=u.kernel)===null||m===void 0?void 0:m.id}`,y}})(jp||(jp={}))});function LS(i){i=i||pt;let e=i.load("jupyterlab");return{unknown:e.__("Unknown"),starting:e.__("Starting"),idle:e.__("Idle"),busy:e.__("Busy"),terminating:e.__("Terminating"),restarting:e.__("Restarting"),autorestarting:e.__("Autorestarting"),dead:e.__("Dead"),connected:e.__("Connected"),connecting:e.__("Connecting"),disconnected:e.__("Disconnected"),initializing:e.__("Initializing"),"":""}}function P5e(i){let t=(i.translator||pt).load("jupyterlab"),r="";return i.status&&(r=` | ${i.status}`),OS.default.createElement($p,{onClick:i.handleClick,onKeyDown:i.handleKeyDown,source:`${i.kernelName}${r}`,title:t.__("Change kernel for %1",i.activityName),tabIndex:0})}var PJ,OS,oh,$S=w(()=>{yS();Nn();fa();PJ=z(Ze()),OS=z(Je());oh=class extends qd{constructor(e,t){super(new oh.Model(t)),this.translator=t||pt,this._handleClick=e.onClick,this._handleKeyDown=e.onKeyDown,this.addClass("jp-mod-highlighted")}render(){return this.model===null?null:OS.default.createElement(P5e,{status:this.model.status,kernelName:this.model.kernelName,activityName:this.model.activityName,handleClick:this._handleClick,handleKeyDown:this._handleKeyDown,translator:this.translator})}};(function(i){class e extends Hd{constructor(r){super(),this._activityName="",this._kernelName="",this._kernelStatus="",this._sessionContext=null,r=r??pt,this._trans=r.load("jupyterlab"),this._statusNames=LS(r)}get kernelName(){return this._kernelName}get status(){return this._kernelStatus?this._statusNames[this._kernelStatus]:void 0}get activityName(){return this._activityName}set activityName(r){this._activityName!==r&&(this._activityName=r,this.stateChanged.emit())}get sessionContext(){return this._sessionContext}set sessionContext(r){var n,s,o,a;(n=this._sessionContext)===null||n===void 0||n.statusChanged.disconnect(this._onKernelStatusChanged,this),(s=this._sessionContext)===null||s===void 0||s.connectionStatusChanged.disconnect(this._onKernelStatusChanged,this),(o=this._sessionContext)===null||o===void 0||o.kernelChanged.disconnect(this._onKernelChanged,this);let l=this._getAllState();this._sessionContext=r,this._kernelStatus=r?.kernelDisplayStatus,this._kernelName=(a=r?.kernelDisplayName)!==null&&a!==void 0?a:this._trans.__("No Kernel"),r?.statusChanged.connect(this._onKernelStatusChanged,this),r?.connectionStatusChanged.connect(this._onKernelStatusChanged,this),r?.kernelChanged.connect(this._onKernelChanged,this),this._triggerChange(l,this._getAllState())}_onKernelStatusChanged(){var r;this._kernelStatus=(r=this._sessionContext)===null||r===void 0?void 0:r.kernelDisplayStatus,this.stateChanged.emit(void 0)}_onKernelChanged(r,n){var s;let o=this._getAllState();this._kernelStatus=(s=this._sessionContext)===null||s===void 0?void 0:s.kernelDisplayStatus,this._kernelName=r.kernelDisplayName,this._triggerChange(o,this._getAllState())}_getAllState(){return[this._kernelName,this._kernelStatus,this._activityName]}_triggerChange(r,n){PJ.JSONExt.deepEqual(r,n)&&this.stateChanged.emit(void 0)}}i.Model=e})(oh||(oh={}))});var cv,N5e,z5e,oc,dv,NJ=w(()=>{Nn();fa();Ma();cv=z(Je());DS();$S();N5e="jp-Toolbar-kernelName",z5e="jp-Toolbar-kernelStatus";(function(i){function e(s,o){o=o||pt;let a=o.load("jupyterlab");return new jd({icon:kT,onClick:()=>{var l,u;
6180(u=(l=s.session)===null||l===void 0?void 0:l.kernel)===null||u===void 0||u.interrupt()},tooltip:a.__("Interrupt the kernel")})}i.createInterruptButton=e;function t(s,o,a){a=a??pt;let l=a.load("jupyterlab");return new jd({icon:TT,onClick:()=>{(o??new Hp({translator:a})).restart(s)},tooltip:l.__("Restart the kernel")})}i.createRestartButton=t;function r(s,o,a){let l=Sr.create(cv.createElement(dv.KernelNameComponent,{sessionContext:s,dialogs:o??new Hp({translator:a}),translator:a}));return l.addClass("jp-KernelName"),l}i.createKernelNameItem=r;function n(s,o){return new dv.KernelStatus(s,o)}i.createKernelStatusItem=n})(oc||(oc={}));(function(i){function e(r){let s=(r.translator||pt).load("jupyterlab"),o=()=>{r.dialogs.selectKernel(r.sessionContext)};return cv.createElement(Tp,{signal:r.sessionContext.kernelChanged,initialSender:r.sessionContext},a=>cv.createElement(Z4,{className:N5e,onClick:o,tooltip:s.__("Switch kernel"),label:a?.kernelDisplayName}))}i.KernelNameComponent=e;class t extends V{constructor(n,s){super(),this.translator=s||pt,this._trans=this.translator.load("jupyterlab"),this.addClass(z5e),this._statusNames=LS(this.translator),this._onStatusChanged(n),n.statusChanged.connect(this._onStatusChanged,this),n.connectionStatusChanged.connect(this._onStatusChanged,this)}_onStatusChanged(n){if(this.isDisposed)return;let s=n.kernelDisplayStatus,o={container:this.node,title:this._trans.__("Kernel %1",this._statusNames[s]||s),stylesheet:"toolbarButton",alignSelf:"normal",height:"24px"};U.remove(this.node),s==="busy"||s==="starting"||s==="terminating"||s==="restarting"||s==="initializing"?ST.element(o):s==="connecting"||s==="disconnected"||s==="unknown"?ET.element(o):wT.element(o)}}i.KernelStatus=t})(dv||(dv={}))});var zJ=w(()=>{$J();FJ();NJ()});var qJ,BJ,hv,HJ=w(()=>{qJ=z(Ze());(function(i){function e(){return hv.instance}i.getInstance=e;function t(s){hv.instance=s}i.setInstance=t;function r(s){let o=document.body,a=l=>{let u=l.clipboardData||window.clipboardData;typeof s=="string"?u.setData("text",s):s.types().map(c=>{u.setData(c,s.getData(c))}),l.preventDefault(),o.removeEventListener("copy",a)};o.addEventListener("copy",a),n(o)}i.copyToSystem=r;function n(s,o="copy"){let a=window.getSelection(),l=[];for(let c=0,d=a?.rangeCount||0;c<d;++c)l[c]=a.getRangeAt(c).cloneRange();let u=document.createRange();if(u.selectNodeContents(s),a&&(a.removeAllRanges(),a.addRange(u)),document.execCommand(o),a=window.getSelection(),a){a.removeAllRanges();for(let c=0,d=l.length;c<d;++c)a.addRange(l[c])}}i.generateEvent=n})(BJ||(BJ={}));(function(i){i.instance=new qJ.MimeData})(hv||(hv={}))});var B5e,jJ=w(()=>{B5e=z(Ze())});var VJ=w(()=>{Ma()});var q5e,H5e,UJ,ac,FS,PS,fv,NS,zS,BS,qS,WJ=w(()=>{Ma();av();q5e="jp-Input-Dialog",H5e="jp-Input-Boolean-Dialog";(function(i){function e(a){return Ea({...a,body:new FS(a),buttons:[ct.cancelButton({label:a.cancelLabel}),ct.okButton({label:a.okLabel})],focusNodeSelector:"input"})}i.getBoolean=e;function t(a){return Ea({...a,body:new PS(a),buttons:[ct.cancelButton({label:a.cancelLabel}),ct.okButton({label:a.okLabel})],focusNodeSelector:"input"})}i.getNumber=t;function r(a){return Ea({...a,body:new BS(a),buttons:[ct.cancelButton({label:a.cancelLabel}),ct.okButton({label:a.okLabel})],focusNodeSelector:a.editable?"input":"select"})}i.getItem=r;function n(a){return Ea({...a,body:new qS(a),buttons:[ct.cancelButton({label:a.cancelLabel}),ct.okButton({label:a.okLabel})]})}i.getMultipleItems=n;function s(a){return Ea({...a,body:new NS(a),buttons:[ct.cancelButton({label:a.cancelLabel}),ct.okButton({label:a.okLabel})],focusNodeSelector:"input"})}i.getText=s;function o(a){return Ea({...a,body:new zS(a),buttons:[ct.cancelButton({label:a.cancelLabel}),ct.okButton({label:a.okLabel})],focusNodeSelector:"input"})}i.getPassword=o})(UJ||(UJ={}));ac=class extends V{constructor(e){if(super(),this.addClass(q5e),this._input=document.createElement("input"),this._input.classList.add("jp-mod-styled"),this._input.id="jp-dialog-input-id",e.label!==void 0){let r=document.createElement("label");r.textContent=e.label,r.htmlFor=this._input.id,this.node.appendChild(r)}let t=document.createElement("div");if(t.className="jp-InputDialog-inputWrapper",e.prefix){let r=document.createElement("span");r.className="jp-InputDialog-inputPrefix",r.textContent=e.prefix,r.ariaHidden="true",t.appendChild(r)}if(t.appendChild(this._input),e.suffix){let r=document.createElement("span");r.className="jp-InputDialog-inputSuffix",r.textContent=e.suffix,r.ariaHidden="true",t.appendChild(r)}this.node.appendChild(t)}},FS=class extends ac{constructor(e){super(e),this.addClass(H5e),this._input.type="checkbox",this._input.checked=!!e.value}getValue(){return this._input.checked}},PS=class extends ac{constructor(e){super(e),this._input.type="number",this._input.value=e.value?e.value.toString():"0"}getValue(){return this._input.value?Number(this._input.value):Number.NaN}},fv=class extends ac{constructor(e){super(e),this._input.value=e.text?e.text:"",e.placeholder&&(this._input.placeholder=e.placeholder),e.pattern&&(this._input.pattern=e.pattern),e.required&&(this._input.required=e.required)}getValue(){return this._input.value}},NS=class extends fv{constructor(e){var t;super(e),this._input.type="text",this._initialSelectionRange=Math.min(this._input.value.length,Math.max(0,(t=e.selectionRange)!==null&&t!==void 0?t:this._input.value.length))}onAfterAttach(e){super.onAfterAttach(e),this._initialSelectionRange>0&&this._input.value&&this._input.setSelectionRange(0,this._initialSelectionRange)}},zS=class extends fv{constructor(e){super(e),this._input.type="password"}onAfterAttach(e){super.onAfterAttach(e),this._input.value&&this._input.select()}},BS=class extends ac{constructor(e){super(e),this._editable=e.editable||!1;let t=e.current||0,r;
6180if(typeof t=="number"&&(r=Math.max(0,Math.min(t,e.items.length-1)),t=""),this._list=document.createElement("select"),e.items.forEach((n,s)=>{let o=document.createElement("option");s===r&&(o.selected=!0,t=n),o.value=n,o.textContent=n,this._list.appendChild(o)}),e.editable){let n=document.createElement("datalist");n.id="input-dialog-items",n.appendChild(this._list),this._input.type="list",this._input.value=t,this._input.setAttribute("list",n.id),e.placeholder&&(this._input.placeholder=e.placeholder),this.node.appendChild(n)}else this._input.parentElement.replaceChild(this._list,this._input)}getValue(){return this._editable?this._input.value:this._list.value}},qS=class extends ac{constructor(e){super(e);let t=e.defaults||[];this._list=document.createElement("select"),this._list.setAttribute("multiple",""),e.items.forEach(n=>{let s=document.createElement("option");s.value=n,s.textContent=n,this._list.appendChild(s)}),this._input.remove(),this.node.appendChild(this._list);let r=this._list.options;for(let n=0;n<r.length;n++){let s=r[n];t.includes(s.value)?s.selected=!0:s.selected=!1}}getValue(){let e=[];for(let t of this._list.options)t.selected&&!t.classList.contains("hidden")&&e.push(t.value||t.text);return e}}});var HS,Vp,jS=w(()=>{HS=z(qs());(function(i){i.symbol=Symbol("printable");function e(d){return typeof d!="object"||!d?!1:i.symbol in d}i.isPrintable=e;function t(d){return e(d)?d[i.symbol]():null}i.getPrintFunction=t;function r(d){return s(d.node)}i.printWidget=r;async function n(d){let f=HS.ServerConnection.makeSettings(),m=await(await HS.ServerConnection.makeRequest(d,{},f)).text();return s(m)}i.printURL=n;async function s(d){let f=typeof d=="string",m=o(),b=window.document.body;b.appendChild(m),f?(m.srcdoc=d,await l(m)):(m.src="about:blank",await l(m),a(m,d));let y=u();c(m.contentWindow),await y,b.removeChild(m)}function o(){let d=window.document.createElement("iframe");d.setAttribute("sandbox","allow-modals allow-same-origin");let f="visibility:hidden;width:0;height:0;position:absolute;z-index:-9999;bottom:0;";return d.setAttribute("style",f),d.setAttribute("width","0"),d.setAttribute("height","0"),d}function a(d,f){d.contentDocument.body.appendChild(f.cloneNode(!0)),d.contentDocument.close()}function l(d){return new Promise(f=>{d.onload=()=>f()})}function u(){return new Promise(d=>{let f=()=>{document.removeEventListener("mousemove",f,!0),document.removeEventListener("mousedown",f,!0),document.removeEventListener("keydown",f,!0),d()};document.addEventListener("mousemove",f,!0),document.addEventListener("mousedown",f,!0),document.addEventListener("keydown",f,!0)})}function c(d){d.document.execCommand("print",!1)||d.print()}})(Vp||(Vp={}))});var GJ,KJ,YJ=w(()=>{Nn();fa();tv();Ma();wS();jS();GJ=!0,KJ=class extends V{constructor(e){super(e),this._changeGuard=!1,this._spinner=new Bb,this._isRevealed=!1,this._evtMouseDown=()=>{this.node.contains(document.activeElement)||this._focusContent()},this.addClass("jp-MainAreaWidget"),this.addClass("jp-MainAreaWidget-ContainStrict"),this.id=Fp.createDomID();let t=(e.translator||pt).load("jupyterlab"),r=this._content=e.content;r.node.setAttribute("role","region"),r.node.setAttribute("aria-label",t.__("notebook content"));let n=this._toolbar=e.toolbar||new Nb;n.node.setAttribute("role","toolbar"),n.node.setAttribute("aria-label",t.__("notebook actions"));let s=this._contentHeader=e.contentHeader||new ih({direction:"top-to-bottom",spacing:0}),o=this.layout=new Ni({spacing:0});o.direction="top-to-bottom",Ni.setStretch(n,0),Ni.setStretch(s,0),Ni.setStretch(r,1),o.addWidget(n),o.addWidget(s),o.addWidget(r),r.id||(r.id=Fp.createDomID()),r.node.tabIndex=-1,this._updateTitle(),r.title.changed.connect(this._updateTitle,this),this.title.closable=!0,this.title.changed.connect(this._updateContentTitle,this),e.reveal?(this.node.appendChild(this._spinner.node),this._revealed=e.reveal.then(()=>{if(r.isDisposed){this.dispose();return}r.disposed.connect(()=>this.dispose());let a=document.activeElement===this._spinner.node;this._disposeSpinner(),this._isRevealed=!0,a&&this._focusContent()}).catch(a=>{let l=new V;l.addClass("jp-MainAreaWidget-error");let u=document.createElement("pre");throw u.textContent=String(a),l.node.appendChild(u),Ni.setStretch(l,1),this._disposeSpinner(),r.dispose(),this._content=null,n.dispose(),this._toolbar=null,o.addWidget(l),this._isRevealed=!0,l}
6180)):(this._spinner.dispose(),this.removeClass("jp-MainAreaWidget-ContainStrict"),r.disposed.connect(()=>this.dispose()),this._isRevealed=!0,this._revealed=Promise.resolve(void 0))}[Vp.symbol](){return this._content?Vp.getPrintFunction(this._content):null}get content(){return this._content}get toolbar(){return this._toolbar}get contentHeader(){return this._contentHeader}get isRevealed(){return this._isRevealed}get revealed(){return this._revealed}onActivateRequest(e){this._isRevealed?this._focusContent():this._spinner.node.focus()}onAfterAttach(e){super.onAfterAttach(e),this.node.addEventListener("mousedown",this._evtMouseDown,GJ)}onBeforeDetach(e){this.node.removeEventListener("mousedown",this._evtMouseDown,GJ),super.onBeforeDetach(e)}onCloseRequest(e){this.dispose()}onUpdateRequest(e){this._content&&re.sendMessage(this._content,e)}_disposeSpinner(){this.node.removeChild(this._spinner.node),this._spinner.dispose(),this.removeClass("jp-MainAreaWidget-ContainStrict")}_updateTitle(){if(this._changeGuard||!this.content)return;this._changeGuard=!0;let e=this.content;this.title.label=e.title.label,this.title.mnemonic=e.title.mnemonic,this.title.icon=e.title.icon,this.title.iconClass=e.title.iconClass,this.title.iconLabel=e.title.iconLabel,this.title.caption=e.title.caption,this.title.className=e.title.className,this.title.dataset=e.title.dataset,this._changeGuard=!1}_updateContentTitle(){if(this._changeGuard||!this.content)return;this._changeGuard=!0;let e=this.content;e.title.label=this.title.label,e.title.mnemonic=this.title.mnemonic,e.title.icon=this.title.icon,e.title.iconClass=this.title.iconClass,e.title.iconLabel=this.title.iconLabel,e.title.caption=this.title.caption,e.title.className=this.title.className,e.title.dataset=this.title.dataset,this._changeGuard=!1}_focusContent(){this.content&&(this.content.node.contains(document.activeElement)||this.content.node.focus(),this.content.activate())}}});var JJ,ZJ,XJ,QJ=w(()=>{JJ=z(Ii());fa();ZJ=z(Ze());(function(i){function e(a,l){return a.filter(u=>!u.disabled).sort((u,c)=>{var d,f;return((d=u.rank)!==null&&d!==void 0?d:1/0)-((f=c.rank)!==null&&f!==void 0?f:1/0)}).map(u=>t(u,l))}i.createMenus=e;function t(a,l){var u,c;let d=l(a);return d.id=a.id,d.title.label||(d.title.label=(u=a.label)!==null&&u!==void 0?u:JJ.Text.titleCase(d.id.trim())),a.icon&&(d.title.icon=U.resolve({icon:a.icon})),a.mnemonic!==void 0&&(d.title.mnemonic=a.mnemonic),(c=a.items)===null||c===void 0||c.filter(f=>!f.disabled).sort((f,m)=>{var b,y;return((b=f.rank)!==null&&b!==void 0?b:1/0)-((y=m.rank)!==null&&y!==void 0?y:1/0)}).map(f=>{n(f,d,l)}),d}function r(a,l,u){let{submenu:c,...d}=a;l.addItem({...d,submenu:c?t(c,u):null})}i.addContextItem=r;function n(a,l,u){let{submenu:c,...d}=a;l.addItem({...d,submenu:c?t(c,u):null})}function s(a,l,u){let c=[];return l.forEach(d=>{let f=a.find(m=>m.id===d.id);f?o(d,f,u):d.disabled||c.push(t(d,u))}),a.push(...c),c}i.updateMenus=s;function o(a,l,u){var c;a.disabled?l.dispose():(c=a.items)===null||c===void 0||c.forEach(d=>{var f,m;let b=l?.items.find((y,x)=>{var M,T,E;return y.type===d.type&&y.command===((M=d.command)!==null&&M!==void 0?M:"")&&((T=y.submenu)===null||T===void 0?void 0:T.id)===((E=d.submenu)===null||E===void 0?void 0:E.id)});if(b&&d.type!=="separator")if(d.disabled)l.removeItem(b);else switch((f=d.type)!==null&&f!==void 0?f:"command"){case"command":d.command&&(ZJ.JSONExt.deepEqual(b.args,(m=d.args)!==null&&m!==void 0?m:{})||n(d,l,u));break;case"submenu":d.submenu&&o(d.submenu,b.submenu,u)}else n(d,l,u)})}})(XJ||(XJ={}))});var tZ,VS,eZ,iZ=w(()=>{tZ=z(Ze());Qe();VS=class{constructor(){this._isDisposed=!1,this._queue=[],this._changed=new X(this)}get changed(){return this._changed}get count(){return this._queue.length}get isDisposed(){return this._isDisposed}get notifications(){return this._queue.slice()}dismiss(e){if(typeof e>"u"){let t=this._queue.slice();this._queue.length=0;for(let r of t)this._changed.emit({type:"removed",notification:r})}else{let t=this._queue.findIndex(r=>
6180r.id===e);if(t>-1){let r=this._queue.splice(t,1)[0];this._changed.emit({type:"removed",notification:r})}}}dispose(){this._isDisposed||(this._isDisposed=!0,X.clearData(this))}has(e){return this._queue.findIndex(t=>t.id===e)>-1}notify(e,t,r){let n=Date.now(),{progress:s,...o}=r,a=Object.freeze({id:tZ.UUID.uuid4(),createdAt:n,modifiedAt:n,message:e,type:t,options:{autoClose:0,progress:typeof s=="number"?Math.min(Math.max(0,s),1):s,...o}});return this._queue.unshift(a),this._changed.emit({type:"added",notification:a}),a.id}update(e){let{id:t,message:r,actions:n,autoClose:s,data:o,progress:a,type:l}=e,u=typeof a=="number"?Math.min(Math.max(0,a),1):a,c=this._queue.findIndex(d=>d.id===t);if(c>-1){let d=this._queue[c],f=Object.freeze({...d,message:r??d.message,type:l??d.type,options:{actions:n??d.options.actions,autoClose:s??d.options.autoClose,data:o??d.options.data,progress:u??d.options.progress},modifiedAt:Date.now()});return this._queue.splice(c,1),this._queue.unshift(f),this._changed.emit({type:"updated",notification:f}),!0}return!1}};(function(i){i.manager=new VS;function e(u){i.manager.dismiss(u)}i.dismiss=e;function t(u,c="default",d={}){return i.manager.notify(u,c,d)}i.emit=t;function r(u,c={}){return i.manager.notify(u,"error",c)}i.error=r;function n(u,c={}){return i.manager.notify(u,"info",c)}i.info=n;function s(u,c){var d;let{pending:f,error:m,success:b}=c,y=i.manager.notify(f.message,"in-progress",(d=f.options)!==null&&d!==void 0?d:{});return u.then(x=>{var M,T,E;i.manager.update({id:y,message:b.message(x,(M=b.options)===null||M===void 0?void 0:M.data),type:"success",...b.options,data:(E=(T=b.options)===null||T===void 0?void 0:T.data)!==null&&E!==void 0?E:x})}).catch(x=>{var M,T,E;i.manager.update({id:y,message:m.message(x,(M=m.options)===null||M===void 0?void 0:M.data),type:"error",...m.options,data:(E=(T=m.options)===null||T===void 0?void 0:T.data)!==null&&E!==void 0?E:x})}),y}i.promise=s;function o(u,c={}){return i.manager.notify(u,"success",c)}i.success=o;function a(u){return i.manager.update(u)}i.update=a;function l(u,c={}){return i.manager.notify(u,"warning",c)}i.warning=l})(eZ||(eZ={}))});function j5e(i){return Ta.default.createElement(ev,{tabIndex:0,spacing:US,onClick:i.handleClick,onKeyDown:i.handleKeyDown},Ta.default.createElement(ev,{spacing:US},Ta.default.createElement($p,{source:i.terminals}),Ta.default.createElement(AT.react,{left:"1px",top:"3px",stylesheet:"statusBar"})),Ta.default.createElement(ev,{spacing:US},Ta.default.createElement($p,{source:i.sessions}),Ta.default.createElement(MT.react,{top:"2px",stylesheet:"statusBar"})))}var Ta,US,ah,rZ=w(()=>{Nn();fa();Ta=z(Je());yS();US=4;ah=class extends qd{constructor(e){super(new ah.Model),this._serviceManager=e.serviceManager,this._handleClick=e.onClick,this._handleKeyDown=e.onKeyDown,this.translator=e.translator||pt,this._trans=this.translator.load("jupyterlab"),this._serviceManager.sessions.runningChanged.connect(this._onSessionsRunningChanged,this),this._serviceManager.terminals.runningChanged.connect(this._onTerminalsRunningChanged,this),this.addClass("jp-mod-highlighted")}render(){return this.model?(this.title.caption=this._trans.__("%1 Terminals, %2 Kernel sessions",this.model.terminals,this.model.sessions),Ta.default.createElement(j5e,{sessions:this.model.sessions,terminals:this.model.terminals,handleClick:this._handleClick,handleKeyDown:this._handleKeyDown})):null}dispose(){super.dispose(),this._serviceManager.sessions.runningChanged.disconnect(this._onSessionsRunningChanged,this),this._serviceManager.terminals.runningChanged.disconnect(this._onTerminalsRunningChanged,this)}_onSessionsRunningChanged(e,t){this.model.sessions=t.length}_onTerminalsRunningChanged(e,t){this.model.terminals=t.length}};(function(i){class e extends Hd{constructor(){super(...arguments),this._terminals=0,this._sessions=0}get sessions(){return this._sessions}set sessions(r){let n=this._sessions;this._sessions=r,n!==this._sessions&&this.stateChanged.emit(void 0)}get terminals(){return this._terminals}set terminals(r){let n=this._terminals;this._terminals=r,n!==this._terminals&&this.stateChanged.emit(void 0)}}i.Model=e})(ah||(ah={}))});var nZ=D(WS=>{"use strict";Object.defineProperty(WS,"__esModule",{value:!0});WS.default
vendor: 47,163 bytes, line 6180
6180=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(
vendor: 6,690 bytes, line 6180
6180function(i){return i.charCodeAt(0)}))});var sZ=D(GS=>{"use strict";Object.defineProperty(GS,"__esModule",{value:!0});GS.default=new Uint16Array("\u0200aglq ��\x1B\u026D�\0\0�p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(function(i){return i.charCodeAt(0)}))});var YS=D(Pl=>{"use strict";var KS;Object.defineProperty(Pl,"__esModule",{value:!0});Pl.replaceCodePoint=Pl.fromCodePoint=void 0;var V5e=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);Pl.fromCodePoint=(KS=String.fromCodePoint)!==null&&KS!==void 0?KS:function(i){var e="";return i>65535&&(i-=65536,e+=String.fromCharCode(i>>>10&1023|55296),i=56320|i&1023),e+=String.fromCharCode(i),e};function oZ(i){var e;return i>=55296&&i<=57343||i>1114111?65533:(e=V5e.get(i))!==null&&e!==void 0?e:i}Pl.replaceCodePoint=oZ;function U5e(i){return(0,Pl.fromCodePoint)(oZ(i))}Pl.default=U5e});var QS=D(tt=>{"use strict";var W5e=tt&&tt.__createBinding||(Object.create?function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}:function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]}),G5e=tt&&tt.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),K5e=tt&&tt.__importStar||function(i){if(i&&i.__esModule)return i;var e={};if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&W5e(e,i,t);return G5e(e,i),e},aZ=tt&&tt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(tt,"__esModule",{value:!0});tt.decodeXML=tt.decodeHTMLStrict=tt.decodeHTMLAttribute=tt.decodeHTML=tt.determineBranch=tt.EntityDecoder=tt.DecodingMode=tt.BinTrieFlags=tt.fromCodePoint=tt.replaceCodePoint=tt.decodeCodePoint=tt.xmlDecodeTree=tt.htmlDecodeTree=void 0;var lZ=aZ(nZ());tt.htmlDecodeTree=lZ.default;var uZ=aZ(sZ());tt.xmlDecodeTree=uZ.default;var JS=K5e(YS());tt.decodeCodePoint=JS.default;var cZ=YS();Object.defineProperty(tt,"replaceCodePoint",{enumerable:!0,get:function(){return cZ.replaceCodePoint}});Object.defineProperty(tt,"fromCodePoint",{enumerable:!0,get:function(){return cZ.fromCodePoint}});var Yi;(function(i){i[i.NUM=35]="NUM",i[i.SEMI=59]="SEMI",i[i.EQUALS=61]="EQUALS",i[i.ZERO=48]="ZERO",i[i.NINE=57]="NINE",i[i.LOWER_A=97]="LOWER_A",i[i.LOWER_F=102]="LOWER_F",i[i.LOWER_X=120]="LOWER_X",i[i.LOWER_Z=122]="LOWER_Z",i[i.UPPER_A=65]="UPPER_A",i[i.UPPER_F=70]="UPPER_F",i[i.UPPER_Z=90]="UPPER_Z"})(Yi||(Yi={}));var Y5e=32,lc;(function(i){i[i.VALUE_LENGTH=49152]="VALUE_LENGTH",i[i.BRANCH_LENGTH=16256]="BRANCH_LENGTH",i[i.JUMP_TABLE=127]="JUMP_TABLE"})(lc=tt.BinTrieFlags||(tt.BinTrieFlags={}));function XS(i){return i>=Yi.ZERO&&i<=Yi.NINE}function X5e(i){return i>=Yi.UPPER_A&&i<=Yi.UPPER_F||i>=Yi.LOWER_A&&i<=Yi.LOWER_F}function J5e(i){return i>=Yi.UPPER_A&&i<=Yi.UPPER_Z||i>=Yi.LOWER_A&&i<=Yi.LOWER_Z||XS(i)}function Z5e(i){return i===Yi.EQUALS||J5e(i)}var Ki;(function(i){i[i.EntityStart=0]="EntityStart",i[i.NumericStart=1]="NumericStart",i[i.NumericDecimal=2]="NumericDecimal",i[i.NumericHex=3]="NumericHex",i[i.NamedEntity=4]="NamedEntity"})(Ki||(Ki={}));var Eo;(function(i){i[i.Legacy=0]="Legacy",i[i.Strict=1]="Strict",i[i.Attribute=2]="Attribute"})(Eo=tt.DecodingMode||(tt.DecodingMode={}));var dZ=function(){function i(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=Ki.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Eo.Strict}return i.prototype.startEntity=function(e){this.decodeMode=e,this.state=Ki.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},i.prototype.write=function(e,t){switch(this.state){case Ki.EntityStart:return e.charCodeAt(t)===Yi.NUM?(this.state=Ki.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Ki.NamedEntity,this.stateNamedEntity(e,t));case Ki.NumericStart:return this.stateNumericStart(e,t);case Ki.NumericDecimal:return this.stateNumericDecimal(e,t);case Ki.NumericHex:return this.stateNumericHex(e,t);case Ki.NamedEntity:return this.stateNamedEntity(e,t)}},i.prototype.stateNumericStart=function(e,t){return t>=e.length?-1:(e.charCodeAt(t)|Y5e)===Yi.LOWER_X?(this.state=Ki.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Ki.NumericDecimal,this.stateNumericDecimal(e,t))},i.prototype.addToNumericResult=function(e,t,r,n){if(t!==r){var s=r-t;this.result=this.result*Math.pow(n,s)+parseInt(e.substr(t,s),n),this.consumed+=s}},i.prototype.stateNumericHex=function(e,t){for(var r=t;t<e.length;){var n=e.charCodeAt(t);if(XS(n)||X5e(n))t+=1;else return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(n,3)}return this.addToNumericResult(e,r,t,16),-1},i.prototype.stateNumericDecimal=function(e,t){for(var r=t;t<e.length;){var n=e.charCodeAt(t);if(XS(n))t+=1;else return this.addToNumericResult(e,r,t,10),this.emitNumericEntity(n,2)}return this.addToNumericResult(e,r,t,10),-1},i.prototype.emitNumericEntity=function(e,t){var r;if(this.consumed<=t)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Yi.SEMI)this.consumed+=1;else if(this.decodeMode===Eo.Strict)return 0;return this.emitCodePoint((0,JS.replaceCodePoint)(this.result),this.consumed),this.errors&&(e!==Yi.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},i.prototype.stateNamedEntity=function(e,t){for(var r=this.decodeTree,n=r[this.treeIndex],s=(n&lc.VALUE_LENGTH)>>14;t<e.length;t++,this.excess++){var o=e.charCodeAt(t);if(this.treeIndex=fZ(r,n,this.treeIndex+Math.max(1,s),o),this.treeIndex<0)return this.result===0||this.decodeMode===Eo.Attribute&&(s===0||Z5e(o))?0:this.emitNotTerminatedNamedEntity();if(n=r[this.treeIndex],s=(n&lc.VALUE_LENGTH)>>14,s!==0){if(o===Yi.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Eo.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},i.prototype.emitNotTerminatedNamedEntity=function(){var e,t=this,r=t.result,n=t.decodeTree,s=(n[r]&lc.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,s,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed},i.prototype.emitNamedEntityData=function(e,t,r){var n=this.decodeTree;
6180return this.emitCodePoint(t===1?n[e]&~lc.VALUE_LENGTH:n[e+1],r),t===3&&this.emitCodePoint(n[e+2],r),r},i.prototype.end=function(){var e;switch(this.state){case Ki.NamedEntity:return this.result!==0&&(this.decodeMode!==Eo.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ki.NumericDecimal:return this.emitNumericEntity(0,2);case Ki.NumericHex:return this.emitNumericEntity(0,3);case Ki.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ki.EntityStart:return 0}},i}();tt.EntityDecoder=dZ;function hZ(i){var e="",t=new dZ(i,function(r){return e+=(0,JS.fromCodePoint)(r)});return function(n,s){for(var o=0,a=0;(a=n.indexOf("&",a))>=0;){e+=n.slice(o,a),t.startEntity(s);var l=t.write(n,a+1);if(l<0){o=a+t.end();break}o=a+l,a=l===0?o+1:o}var u=e+n.slice(o);return e="",u}}function fZ(i,e,t,r){var n=(e&lc.BRANCH_LENGTH)>>7,s=e&lc.JUMP_TABLE;if(n===0)return s!==0&&r===s?t:-1;if(s){var o=r-s;return o<0||o>=n?-1:i[t+o]-1}for(var a=t,l=a+n-1;a<=l;){var u=a+l>>>1,c=i[u];if(c<r)a=u+1;else if(c>r)l=u-1;else return i[u+n]}return-1}tt.determineBranch=fZ;var ZS=hZ(lZ.default),Q5e=hZ(uZ.default);function e8e(i,e){return e===void 0&&(e=Eo.Legacy),ZS(i,e)}tt.decodeHTML=e8e;function t8e(i){return ZS(i,Eo.Attribute)}tt.decodeHTMLAttribute=t8e;function i8e(i){return ZS(i,Eo.Strict)}tt.decodeHTMLStrict=i8e;function r8e(i){return Q5e(i,Eo.Strict)}tt.decodeXML=r8e});var eC=D(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});uh.QuoteType=void 0;var uc=QS(),we;(function(i){i[i.Tab=9]="Tab",i[i.NewLine=10]="NewLine",i[i.FormFeed=12]="FormFeed",i[i.CarriageReturn=13]="CarriageReturn",i[i.Space=32]="Space",i[i.ExclamationMark=33]="ExclamationMark",i[i.Number=35]="Number",i[i.Amp=38]="Amp",i[i.SingleQuote=39]="SingleQuote",i[i.DoubleQuote=34]="DoubleQuote",i[i.Dash=45]="Dash",i[i.Slash=47]="Slash",i[i.Zero=48]="Zero",i[i.Nine=57]="Nine",i[i.Semi=59]="Semi",i[i.Lt=60]="Lt",i[i.Eq=61]="Eq",i[i.Gt=62]="Gt",i[i.Questionmark=63]="Questionmark",i[i.UpperA=65]="UpperA",i[i.LowerA=97]="LowerA",i[i.UpperF=70]="UpperF",i[i.LowerF=102]="LowerF",i[i.UpperZ=90]="UpperZ",i[i.LowerZ=122]="LowerZ",i[i.LowerX=120]="LowerX",i[i.OpeningSquareBracket=91]="OpeningSquareBracket"})(we||(we={}));var J;(function(i){i[i.Text=1]="Text",i[i.BeforeTagName=2]="BeforeTagName",i[i.InTagName=3]="InTagName",i[i.InSelfClosingTag=4]="InSelfClosingTag",i[i.BeforeClosingTagName=5]="BeforeClosingTagName",i[i.InClosingTagName=6]="InClosingTagName",i[i.AfterClosingTagName=7]="AfterClosingTagName",i[i.BeforeAttributeName=8]="BeforeAttributeName",i[i.InAttributeName=9]="InAttributeName",i[i.AfterAttributeName=10]="AfterAttributeName",i[i.BeforeAttributeValue=11]="BeforeAttributeValue",i[i.InAttributeValueDq=12]="InAttributeValueDq",i[i.InAttributeValueSq=13]="InAttributeValueSq",i[i.InAttributeValueNq=14]="InAttributeValueNq",i[i.BeforeDeclaration=15]="BeforeDeclaration",i[i.InDeclaration=16]="InDeclaration",i[i.InProcessingInstruction=17]="InProcessingInstruction",i[i.BeforeComment=18]="BeforeComment",i[i.CDATASequence=19]="CDATASequence",i[i.InSpecialComment=20]="InSpecialComment",i[i.InCommentLike=21]="InCommentLike",i[i.BeforeSpecialS=22]="BeforeSpecialS",i[i.SpecialStartSequence=23]="SpecialStartSequence",i[i.InSpecialTag=24]="InSpecialTag",i[i.BeforeEntity=25]="BeforeEntity",i[i.BeforeNumericEntity=26]="BeforeNumericEntity",i[i.InNamedEntity=27]="InNamedEntity",i[i.InNumericEntity=28]="InNumericEntity",i[i.InHexEntity=29]="InHexEntity"})(J||(J={}));function ka(i){return i===we.Space||i===we.NewLine||i===we.Tab||i===we.FormFeed||i===we.CarriageReturn}function pv(i){return i===we.Slash||i===we.Gt||ka(i)}function pZ(i){return i>=we.Zero&&i<=we.Nine}function n8e(i){return i>=we.LowerA&&i<=we.LowerZ||i>=we.UpperA&&i<=we.UpperZ}function s8e(i){return i>=we.UpperA&&i<=we.UpperF||i>=we.LowerA&&i<=we.LowerF}var lh;(function(i){i[i.NoValue=0]="NoValue",i[i.Unquoted=1]="Unquoted",i[i.Single=2]="Single",i[i.Double=3]="Double"})(lh=uh.QuoteType||(uh.QuoteType={}));var un={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},o8e=function(){function i(e,t){var r=e.xmlMode,n=r===void 0?!1:r,s=e.decodeEntities,o=s===void 0?!0:s;this.cbs=t,this.state=J.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=J.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=n,this.decodeEntities=o,this.entityTrie=n?uc.xmlDecodeTree:uc.htmlDecodeTree}return i.prototype.reset=function(){this.state=J.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=J.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},i.prototype.write=function(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()},i.prototype.end=function(){this.running&&this.finish()},i.prototype.pause=function(){this.running=!1},i.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},i.prototype.getIndex=function(){return this.index},i.prototype.getSectionStart=function(){return this.sectionStart},i.prototype.stateText=function(e){e===we.Lt||!this.decodeEntities&&this.fastForwardTo(we.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=J.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===we.Amp&&(this.state=J.BeforeEntity)},i.prototype.stateSpecialStartSequence=function(e){var t=this.sequenceIndex===this.currentSequence.length,r=t?pv(e):(e|32)===this.currentSequence[this.sequenceIndex];if(!r)this.isSpecial=!1;else if(!t){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=J.InTagName,this.stateInTagName(e)},i.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(e===we.Gt||ka(e)){var t=this.index-this.currentSequence.length;if(this.sectionStart<t){var r=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=r}this.isSpecial=!1,this.sectionStart=t+2,this.stateInClosingTagName(e);return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===un.TitleEnd?this.decodeEntities&&e===we.Amp&&(this.state=J.BeforeEntity):this.fastForwardTo(we.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===we.Lt)},i.prototype.stateCDATASequence=function(e){e===un.Cdata[this.sequenceIndex]?++this.sequenceIndex===un.Cdata.length&&(this.state=J.InCommentLike,this.currentSequence=un.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=J.InDeclaration,this.stateInDeclaration(e))},i.prototype.fastForwardTo=function(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1},i.prototype.stateInCommentLike=function(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===un.C
6180dataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=J.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},i.prototype.isTagStartChar=function(e){return this.xmlMode?!pv(e):n8e(e)},i.prototype.startSpecial=function(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=J.SpecialStartSequence},i.prototype.stateBeforeTagName=function(e){if(e===we.ExclamationMark)this.state=J.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===we.Questionmark)this.state=J.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){var t=e|32;this.sectionStart=this.index,!this.xmlMode&&t===un.TitleEnd[2]?this.startSpecial(un.TitleEnd,3):this.state=!this.xmlMode&&t===un.ScriptEnd[2]?J.BeforeSpecialS:J.InTagName}else e===we.Slash?this.state=J.BeforeClosingTagName:(this.state=J.Text,this.stateText(e))},i.prototype.stateInTagName=function(e){pv(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=J.BeforeAttributeName,this.stateBeforeAttributeName(e))},i.prototype.stateBeforeClosingTagName=function(e){ka(e)||(e===we.Gt?this.state=J.Text:(this.state=this.isTagStartChar(e)?J.InClosingTagName:J.InSpecialComment,this.sectionStart=this.index))},i.prototype.stateInClosingTagName=function(e){(e===we.Gt||ka(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=J.AfterClosingTagName,this.stateAfterClosingTagName(e))},i.prototype.stateAfterClosingTagName=function(e){(e===we.Gt||this.fastForwardTo(we.Gt))&&(this.state=J.Text,this.baseState=J.Text,this.sectionStart=this.index+1)},i.prototype.stateBeforeAttributeName=function(e){e===we.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=J.InSpecialTag,this.sequenceIndex=0):this.state=J.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===we.Slash?this.state=J.InSelfClosingTag:ka(e)||(this.state=J.InAttributeName,this.sectionStart=this.index)},i.prototype.stateInSelfClosingTag=function(e){e===we.Gt?(this.cbs.onselfclosingtag(this.index),this.state=J.Text,this.baseState=J.Text,this.sectionStart=this.index+1,this.isSpecial=!1):ka(e)||(this.state=J.BeforeAttributeName,this.stateBeforeAttributeName(e))},i.prototype.stateInAttributeName=function(e){(e===we.Eq||pv(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=J.AfterAttributeName,this.stateAfterAttributeName(e))},i.prototype.stateAfterAttributeName=function(e){e===we.Eq?this.state=J.BeforeAttributeValue:e===we.Slash||e===we.Gt?(this.cbs.onattribend(lh.NoValue,this.index),this.state=J.BeforeAttributeName,this.stateBeforeAttributeName(e)):ka(e)||(this.cbs.onattribend(lh.NoValue,this.index),this.state=J.InAttributeName,this.sectionStart=this.index)},i.prototype.stateBeforeAttributeValue=function(e){e===we.DoubleQuote?(this.state=J.InAttributeValueDq,this.sectionStart=this.index+1):e===we.SingleQuote?(this.state=J.InAttributeValueSq,this.sectionStart=this.index+1):ka(e)||(this.sectionStart=this.index,this.state=J.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))},i.prototype.handleInAttributeValue=function(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===we.DoubleQuote?lh.Double:lh.Single,this.index),this.state=J.BeforeAttributeName):this.decodeEntities&&e===we.Amp&&(this.baseState=this.state,this.state=J.BeforeEntity)},i.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,we.DoubleQuote)},i.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,we.SingleQuote)},i.prototype.stateInAttributeValueNoQuotes=function(e){ka(e)||e===we.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(lh.Unquoted,this.index),this.state=J.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===we.Amp&&(this.baseState=this.state,this.state=J.BeforeEntity)},i.prototype.stateBeforeDeclaration=function(e){e===we.OpeningSquareBracket?(this.state=J.CDATASequence,this.sequenceIndex=0):this.state=e===we.Dash?J.BeforeComment:J.InDeclaration},i.prototype.stateInDeclaration=function(e){(e===we.Gt||this.fastForwardTo(we.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=J.Text,this.sectionStart=this.index+1)},i.prototype.stateInProcessingInstruction=function(e){(e===we.Gt||this.fastForwardTo(we.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=J.Text,this.sectionStart=this.index+1)},i.prototype.stateBeforeComment=function(e){e===we.Dash?(this.state=J.InCommentLike,this.currentSequence=un.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=J.InDeclaration},i.prototype.stateInSpecialComment=function(e){(e===we.Gt||this.fastForwardTo(we.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=J.Text,this.sectionStart=this.index+1)},i.prototype.stateBeforeSpecialS=function(e){var t=e|32;t===un.ScriptEnd[3]?this.startSpecial(un.ScriptEnd,4):t===un.StyleEnd[3]?this.startSpecial(un.StyleEnd,4):(this.state=J.InTagName,this.stateInTagName(e))},i.prototype.stateBeforeEntity=function(e){this.entityExcess=1,this.entityResult=0,e===we.Number?this.state=J.BeforeNumericEntity:e===we.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=J.InNamedEntity,this.stateInNamedEntity(e))},i.prototype.stateInNamedEntity=function(e){if(this.entityExcess+=1,this.trieIndex=(0,uc.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var t=this.trieCurrent&uc.BinTrieFlags.VALUE_LENGTH;if(t){var r=(t>>14)-1;if(!this.allowLegacyEntity()&&e!==we.Semi)this.trieIndex+=r;else{var n=this.index-this.entityExcess+1;n>this.sectionStart&&this.emitPartial(this.sectionStart,n),this.entityResult=this.trieIndex,this.trieIndex+=r,this.entityExcess=0,this.sectionStart=this.index+1,r===0&&this.emitNamedEntity()}}},i.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var e=(this.entityTrie[this.entityResult]&u
6180c.BinTrieFlags.VALUE_LENGTH)>>14;switch(e){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~uc.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},i.prototype.stateBeforeNumericEntity=function(e){(e|32)===we.LowerX?(this.entityExcess++,this.state=J.InHexEntity):(this.state=J.InNumericEntity,this.stateInNumericEntity(e))},i.prototype.emitNumericEntity=function(e){var t=this.index-this.entityExcess-1,r=t+2+Number(this.state===J.InHexEntity);r!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint((0,uc.replaceCodePoint)(this.entityResult))),this.state=this.baseState},i.prototype.stateInNumericEntity=function(e){e===we.Semi?this.emitNumericEntity(!0):pZ(e)?(this.entityResult=this.entityResult*10+(e-we.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},i.prototype.stateInHexEntity=function(e){e===we.Semi?this.emitNumericEntity(!0):pZ(e)?(this.entityResult=this.entityResult*16+(e-we.Zero),this.entityExcess++):s8e(e)?(this.entityResult=this.entityResult*16+((e|32)-we.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},i.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===J.Text||this.baseState===J.InSpecialTag)},i.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===J.Text||this.state===J.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===J.InAttributeValueDq||this.state===J.InAttributeValueSq||this.state===J.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},i.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},i.prototype.parse=function(){for(;this.shouldContinue();){var e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case J.Text:{this.stateText(e);break}case J.SpecialStartSequence:{this.stateSpecialStartSequence(e);break}case J.InSpecialTag:{this.stateInSpecialTag(e);break}case J.CDATASequence:{this.stateCDATASequence(e);break}case J.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(e);break}case J.InAttributeName:{this.stateInAttributeName(e);break}case J.InCommentLike:{this.stateInCommentLike(e);break}case J.InSpecialComment:{this.stateInSpecialComment(e);break}case J.BeforeAttributeName:{this.stateBeforeAttributeName(e);break}case J.InTagName:{this.stateInTagName(e);break}case J.InClosingTagName:{this.stateInClosingTagName(e);break}case J.BeforeTagName:{this.stateBeforeTagName(e);break}case J.AfterAttributeName:{this.stateAfterAttributeName(e);break}case J.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(e);break}case J.BeforeAttributeValue:{this.stateBeforeAttributeValue(e);break}case J.BeforeClosingTagName:{this.stateBeforeClosingTagName(e);break}case J.AfterClosingTagName:{this.stateAfterClosingTagName(e);break}case J.BeforeSpecialS:{this.stateBeforeSpecialS(e);break}case J.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(e);break}case J.InSelfClosingTag:{this.stateInSelfClosingTag(e);break}case J.InDeclaration:{this.stateInDeclaration(e);break}case J.BeforeDeclaration:{this.stateBeforeDeclaration(e);break}case J.BeforeComment:{this.stateBeforeComment(e);break}case J.InProcessingInstruction:{this.stateInProcessingInstruction(e);break}case J.InNamedEntity:{this.stateInNamedEntity(e);break}case J.BeforeEntity:{this.stateBeforeEntity(e);break}case J.InHexEntity:{this.stateInHexEntity(e);break}case J.InNumericEntity:{this.stateInNumericEntity(e);break}default:this.stateBeforeNumericEntity(e)}this.index++}this.cleanup()},i.prototype.finish=function(){this.state===J.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},i.prototype.handleTrailingData=function(){var e=this.buffer.length+this.offset;
6180this.state===J.InCommentLike?this.currentSequence===un.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===J.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===J.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===J.InTagName||this.state===J.BeforeAttributeName||this.state===J.BeforeAttributeValue||this.state===J.AfterAttributeName||this.state===J.InAttributeName||this.state===J.InAttributeValueSq||this.state===J.InAttributeValueDq||this.state===J.InAttributeValueNq||this.state===J.InClosingTagName||this.cbs.ontext(this.sectionStart,e)},i.prototype.emitPartial=function(e,t){this.baseState!==J.Text&&this.baseState!==J.InSpecialTag?this.cbs.onattribdata(e,t):this.cbs.ontext(e,t)},i.prototype.emitCodePoint=function(e){this.baseState!==J.Text&&this.baseState!==J.InSpecialTag?this.cbs.onattribentity(e):this.cbs.ontextentity(e)},i}();uh.default=o8e});var tC=D(To=>{"use strict";var a8e=To&&To.__createBinding||(Object.create?function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}:function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]}),l8e=To&&To.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),u8e=To&&To.__importStar||function(i){if(i&&i.__esModule)return i;var e={};if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&a8e(e,i,t);return l8e(e,i),e};Object.defineProperty(To,"__esModule",{value:!0});To.Parser=void 0;var mv=u8e(eC()),mZ=QS(),ch=new Set(["input","option","optgroup","select","button","datalist","textarea"]),kt=new Set(["p"]),gZ=new Set(["thead","tbody"]),bZ=new Set(["dd","dt"]),vZ=new Set(["rt","rp"]),c8e=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",kt],["h1",kt],["h2",kt],["h3",kt],["h4",kt],["h5",kt],["h6",kt],["select",ch],["input",ch],["output",ch],["button",ch],["datalist",ch],["textarea",ch],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",bZ],["dt",bZ],["address",kt],["article",kt],["aside",kt],["blockquote",kt],["details",kt],["div",kt],["dl",kt],["fieldset",kt],["figcaption",kt],["figure",kt],["footer",kt],["form",kt],["header",kt],["hr",kt],["main",kt],["nav",kt],["ol",kt],["pre",kt],["section",kt],["table",kt],["ul",kt],["rt",vZ],["rp",vZ],["tbody",gZ],["tfoot",gZ]]),d8e=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),_Z=new Set(["math","svg"]),yZ=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),h8e=/\s|\//,f8e=function(){function i(e,t){t===void 0&&(t={});var r,n,s,o,a;this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.lowerCaseTagNames=(r=t.lowerCaseTags)!==null&&r!==void 0?r:!t.xmlMode,this.lowerCaseAttributeNames=(n=t.lowerCaseAttributeNames)!==null&&n!==void 0?n:!t.xmlMode,this.tokenizer=new((s=t.Tokenizer)!==null&&s!==void 0?s:mv.default)(this.options,this),(a=(o=this.cbs).onparserinit)===null||a===void 0||a.call(o,this)}return i.prototype.ontext=function(e,t){var r,n,s=this.getSlice(e,t);this.endIndex=t-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,s),this.startIndex=t},i.prototype.ontextentity=function(e){var t,r,n=this.tokenizer.getSectionStart();this.endIndex=n-1,(r=(t=this.cbs).ontext)===null||r===void 0||r.call(t,(0,mZ.fromCodePoint)(e)),this.startIndex=n},i.prototype.isVoidElement=function(e){return!this.options.xmlMode&&d8e.has(e)},i.prototype.onopentagname=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);this.lowerCaseTagNames&&(r=r.toLowerCase()),this.emitOpenTag(r)},i.prototype.emitOpenTag=function(e){var t,r,n,s;this.openTagStart=this.startIndex,this.tagname=e;var o=!this.options.xmlMode&&c8e.get(e);if(o)for(;this.stack.length>0&&o.has(this.stack[this.stack.length-1]);){var a=this.stack.pop();(r=(t=this.cbs).onclosetag)===null||r===void 0||r.call(t,a,!0)}this.isVoidElement(e)||(this.stack.push(e),_Z.has(e)?this.foreignContext.push(!0):y
6180Z.has(e)&&this.foreignContext.push(!1)),(s=(n=this.cbs).onopentagname)===null||s===void 0||s.call(n,e),this.cbs.onopentag&&(this.attribs={})},i.prototype.endOpenTag=function(e){var t,r;this.startIndex=this.openTagStart,this.attribs&&((r=(t=this.cbs).onopentag)===null||r===void 0||r.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},i.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},i.prototype.onclosetag=function(e,t){var r,n,s,o,a,l;this.endIndex=t;var u=this.getSlice(e,t);if(this.lowerCaseTagNames&&(u=u.toLowerCase()),(_Z.has(u)||yZ.has(u))&&this.foreignContext.pop(),this.isVoidElement(u))!this.options.xmlMode&&u==="br"&&((n=(r=this.cbs).onopentagname)===null||n===void 0||n.call(r,"br"),(o=(s=this.cbs).onopentag)===null||o===void 0||o.call(s,"br",{},!0),(l=(a=this.cbs).onclosetag)===null||l===void 0||l.call(a,"br",!1));else{var c=this.stack.lastIndexOf(u);if(c!==-1)if(this.cbs.onclosetag)for(var d=this.stack.length-c;d--;)this.cbs.onclosetag(this.stack.pop(),d!==0);else this.stack.length=c;else!this.options.xmlMode&&u==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1},i.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},i.prototype.closeCurrentTag=function(e){var t,r,n=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===n&&((r=(t=this.cbs).onclosetag)===null||r===void 0||r.call(t,n,!e),this.stack.pop())},i.prototype.onattribname=function(e,t){this.startIndex=e;var r=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r},i.prototype.onattribdata=function(e,t){this.attribvalue+=this.getSlice(e,t)},i.prototype.onattribentity=function(e){this.attribvalue+=(0,mZ.fromCodePoint)(e)},i.prototype.onattribend=function(e,t){var r,n;this.endIndex=t,(n=(r=this.cbs).onattribute)===null||n===void 0||n.call(r,this.attribname,this.attribvalue,e===mv.QuoteType.Double?'"':e===mv.QuoteType.Single?"'":e===mv.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},i.prototype.getInstructionName=function(e){var t=e.search(h8e),r=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r},i.prototype.ondeclaration=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var n=this.getInstructionName(r);this.cbs.onprocessinginstruction("!".concat(n),"!".concat(r))}this.startIndex=t+1},i.prototype.onprocessinginstruction=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var n=this.getInstructionName(r);this.cbs.onprocessinginstruction("?".concat(n),"?".concat(r))}this.startIndex=t+1},i.prototype.oncomment=function(e,t,r){var n,s,o,a;this.endIndex=t,(s=(n=this.cbs).oncomment)===null||s===void 0||s.call(n,this.getSlice(e,t-r)),(a=(o=this.cbs).oncommentend)===null||a===void 0||a.call(o),this.startIndex=t+1},i.prototype.oncdata=function(e,t,r){var n,s,o,a,l,u,c,d,f,m;this.endIndex=t;var b=this.getSlice(e,t-r);this.options.xmlMode||this.options.recognizeCDATA?((s=(n=this.cbs).oncdatastart)===null||s===void 0||s.call(n),(a=(o=this.cbs).ontext)===null||a===void 0||a.call(o,b),(u=(l=this.cbs).oncdataend)===null||u===void 0||u.call(l)):((d=(c=this.cbs).oncomment)===null||d===void 0||d.call(c,"[CDATA[".concat(b,"]]")),(m=(f=this.cbs).oncommentend)===null||m===void 0||m.call(f)),this.startIndex=t+1},i.prototype.onend=function(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var r=this.stack.length;r>0;this.cbs.onclosetag(this.stack[--r],!0));}(t=(e=this.cbs).onend)===null||t===void 0||t.call(e)},i.prototype.reset=function(){var e,t,r,n;(t=(e=this.cbs).onreset)===null||t===void 0||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(n=(r=this.cbs).onparserinit)===null||n===void 0||n.call(r,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},i.prototype.parseComplete=function(e){this.reset(),this.end(e)},i.prototype.getSlice=function(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var r=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,t-this.bufferOffset);return r},i.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},i.prototype.write=function(e){var t,r;if(this.ended){(r=(t=this.cbs).onerror)===null||r===void 0||r.call(t,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},i.prototype.end=function(e){var t,r;if(this.ended){(r=(t=this.cbs).onerror)===null||r===void 0||r.call(t,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},i.prototype.pause=function(){this.tokenizer.pause()},i.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},i.prototype.parseChunk=function(e){this.write(e)},i.prototype.done=function(e){this.end(e)},i}();To.Parser=f8e});var dh=D(qt=>{"use strict";
6180Object.defineProperty(qt,"__esModule",{value:!0});qt.Doctype=qt.CDATA=qt.Tag=qt.Style=qt.Script=qt.Comment=qt.Directive=qt.Text=qt.Root=qt.isTag=qt.ElementType=void 0;var Dn;(function(i){i.Root="root",i.Text="text",i.Directive="directive",i.Comment="comment",i.Script="script",i.Style="style",i.Tag="tag",i.CDATA="cdata",i.Doctype="doctype"})(Dn=qt.ElementType||(qt.ElementType={}));function p8e(i){return i.type===Dn.Tag||i.type===Dn.Script||i.type===Dn.Style}qt.isTag=p8e;qt.Root=Dn.Root;qt.Text=Dn.Text;qt.Directive=Dn.Directive;qt.Comment=Dn.Comment;qt.Script=Dn.Script;qt.Style=Dn.Style;qt.Tag=Dn.Tag;qt.CDATA=Dn.CDATA;qt.Doctype=Dn.Doctype});var sC=D(Ye=>{"use strict";var Nl=Ye&&Ye.__extends||function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Up=Ye&&Ye.__assign||function(){return Up=Object.assign||function(i){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},Up.apply(this,arguments)};Object.defineProperty(Ye,"__esModule",{value:!0});Ye.cloneNode=Ye.hasChildren=Ye.isDocument=Ye.isDirective=Ye.isComment=Ye.isText=Ye.isCDATA=Ye.isTag=Ye.Element=Ye.Document=Ye.CDATA=Ye.NodeWithChildren=Ye.ProcessingInstruction=Ye.Comment=Ye.Text=Ye.DataNode=Ye.Node=void 0;var cn=dh(),rC=function(){function i(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(i.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),i.prototype.cloneNode=function(e){return e===void 0&&(e=!1),nC(this,e)},i}();Ye.Node=rC;var gv=function(i){Nl(e,i);function e(t){var r=i.call(this)||this;return r.data=t,r}return Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(t){this.data=t},enumerable:!1,configurable:!0}),e}(rC);Ye.DataNode=gv;var xZ=function(i){Nl(e,i);function e(){var t=i!==null&&i.apply(this,arguments)||this;return t.type=cn.ElementType.Text,t}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(gv);Ye.Text=xZ;var wZ=function(i){Nl(e,i);function e(){var t=i!==null&&i.apply(this,arguments)||this;return t.type=cn.ElementType.Comment,t}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(gv);Ye.Comment=wZ;var SZ=function(i){Nl(e,i);function e(t,r){var n=i.call(this,r)||this;return n.name=t,n.type=cn.ElementType.Directive,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(gv);Ye.ProcessingInstruction=SZ;var bv=function(i){Nl(e,i);function e(t){var r=i.call(this)||this;return r.children=t,r}return Object.defineProperty(e.prototype,"firstChild",{get:function(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(t){this.children=t},enumerable:!1,configurable:!0}),e}(rC);Ye.NodeWithChildren=bv;var CZ=function(i){Nl(e,i);function e(){var t=i!==null&&i.apply(this,arguments)||this;return t.type=cn.ElementType.CDATA,t}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4}
vendor: 4,918 bytes, line 6180
6180,enumerable:!1,configurable:!0}),e}(bv);Ye.CDATA=CZ;var IZ=function(i){Nl(e,i);function e(){var t=i!==null&&i.apply(this,arguments)||this;return t.type=cn.ElementType.Root,t}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(bv);Ye.Document=IZ;var MZ=function(i){Nl(e,i);function e(t,r,n,s){n===void 0&&(n=[]),s===void 0&&(s=t==="script"?cn.ElementType.Script:t==="style"?cn.ElementType.Style:cn.ElementType.Tag);var o=i.call(this,n)||this;return o.name=t,o.attribs=r,o.type=s,o}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(t){this.name=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var t=this;return Object.keys(this.attribs).map(function(r){var n,s;return{name:r,value:t.attribs[r],namespace:(n=t["x-attribsNamespace"])===null||n===void 0?void 0:n[r],prefix:(s=t["x-attribsPrefix"])===null||s===void 0?void 0:s[r]}})},enumerable:!1,configurable:!0}),e}(bv);Ye.Element=MZ;function EZ(i){return(0,cn.isTag)(i)}Ye.isTag=EZ;function TZ(i){return i.type===cn.ElementType.CDATA}Ye.isCDATA=TZ;function kZ(i){return i.type===cn.ElementType.Text}Ye.isText=kZ;function AZ(i){return i.type===cn.ElementType.Comment}Ye.isComment=AZ;function RZ(i){return i.type===cn.ElementType.Directive}Ye.isDirective=RZ;function DZ(i){return i.type===cn.ElementType.Root}Ye.isDocument=DZ;function m8e(i){return Object.prototype.hasOwnProperty.call(i,"children")}Ye.hasChildren=m8e;function nC(i,e){e===void 0&&(e=!1);var t;if(kZ(i))t=new xZ(i.data);else if(AZ(i))t=new wZ(i.data);else if(EZ(i)){var r=e?iC(i.children):[],n=new MZ(i.name,Up({},i.attribs),r);r.forEach(function(l){return l.parent=n}),i.namespace!=null&&(n.namespace=i.namespace),i["x-attribsNamespace"]&&(n["x-attribsNamespace"]=Up({},i["x-attribsNamespace"])),i["x-attribsPrefix"]&&(n["x-attribsPrefix"]=Up({},i["x-attribsPrefix"])),t=n}else if(TZ(i)){var r=e?iC(i.children):[],s=new CZ(r);r.forEach(function(u){return u.parent=s}),t=s}else if(DZ(i)){var r=e?iC(i.children):[],o=new IZ(r);r.forEach(function(u){return u.parent=o}),i["x-mode"]&&(o["x-mode"]=i["x-mode"]),t=o}else if(RZ(i)){var a=new SZ(i.name,i.data);i["x-name"]!=null&&(a["x-name"]=i["x-name"],a["x-publicId"]=i["x-publicId"],a["x-systemId"]=i["x-systemId"]),t=a}else throw new Error("Not implemented yet: ".concat(i.type));return t.startIndex=i.startIndex,t.endIndex=i.endIndex,i.sourceCodeLocation!=null&&(t.sourceCodeLocation=i.sourceCodeLocation),t}Ye.cloneNode=nC;function iC(i){for(var e=i.map(function(r){return nC(r,!0)}),t=1;t<e.length;t++)e[t].prev=e[t-1],e[t-1].next=e[t];return e}});var Aa=D(ko=>{"use strict";var g8e=ko&&ko.__createBinding||(Object.create?function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}:function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]}),b8e=ko&&ko.__exportStar||function(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&g8e(e,i,t)};Object.defineProperty(ko,"__esModule",{value:!0});ko.DomHandler=void 0;var oC=dh(),zl=sC();b8e(sC(),ko);var OZ={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},LZ=function(){function i(e,t,r){this.dom=[],this.root=new zl.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof t=="function"&&(r=t,t=OZ),typeof e=="object"&&(t=e,e=void 0),this.callback=e??null,this.options=t??OZ,this.elementCB=r??null}return i.prototype.onparserinit=function(e){this.parser=e},i.prototype.onreset=function(){this.dom=[],this.root=new zl.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},i.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},i.prototype.onerror=function(e){this.handleCallback(e)},i.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},i.prototype.onopentag=function(e,t){var r=this.options.xmlMode?oC.ElementType.Tag:void 0,n=new zl.Element(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)},i.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===oC.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var r=new zl.Text(e);this.addNode(r),this.lastNode=r}},i.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===oC.ElementType.Comment){this.lastNode.data+=e;return}var t=new zl.Comment(e);this.addNode(t),this.lastNode=t},i.prototype.oncommentend=function(){this.lastNode=null},i.prototype.oncdatastart=function(){var e=new zl.Text(""),t=new zl.C
vendor: 767 bytes, line 6180
6180DATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},i.prototype.oncdataend=function(){this.lastNode=null},i.prototype.onprocessinginstruction=function(e,t){var r=new zl.ProcessingInstruction(e,t);this.addNode(r)},i.prototype.handleCallback=function(e){if(typeof this.callback=="function")this.callback(e,this.dom);else if(e)throw e},i.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},i}();ko.DomHandler=LZ;ko.default=LZ});var $Z=D(aC=>{"use strict";Object.defineProperty(aC,"__esModule",{value:!0});aC
vendor: 8,747 bytes, line 6180
6180.default=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;
vendor: 38,424 bytes, line 6180
6180\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(
6180function(i){return i.charCodeAt(0)}))});var FZ=D(lC=>{"use strict";Object.defineProperty(lC,"__esModule",{value:!0});lC.default=new Uint16Array("\u0200aglq ��\x1B\u026D�\0\0�p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(function(i){return i.charCodeAt(0)}))});var cC=D(Bl=>{"use strict";var uC;Object.defineProperty(Bl,"__esModule",{value:!0});Bl.replaceCodePoint=Bl.fromCodePoint=void 0;var v8e=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);Bl.fromCodePoint=(uC=String.fromCodePoint)!==null&&uC!==void 0?uC:function(i){var e="";return i>65535&&(i-=65536,e+=String.fromCharCode(i>>>10&1023|55296),i=56320|i&1023),e+=String.fromCharCode(i),e};function PZ(i){var e;return i>=55296&&i<=57343||i>1114111?65533:(e=v8e.get(i))!==null&&e!==void 0?e:i}Bl.replaceCodePoint=PZ;function _8e(i){return(0,Bl.fromCodePoint)(PZ(i))}Bl.default=_8e});var pC=D(it=>{"use strict";var y8e=it&&it.__createBinding||(Object.create?function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}:function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]}),x8e=it&&it.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),w8e=it&&it.__importStar||function(i){if(i&&i.__esModule)return i;var e={};if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&y8e(e,i,t);return x8e(e,i),e},NZ=it&&it.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(it,"__esModule",{value:!0});it.decodeXML=it.decodeHTMLStrict=it.decodeHTMLAttribute=it.decodeHTML=it.determineBranch=it.EntityDecoder=it.DecodingMode=it.BinTrieFlags=it.fromCodePoint=it.replaceCodePoint=it.decodeCodePoint=it.xmlDecodeTree=it.htmlDecodeTree=void 0;var zZ=NZ($Z());it.htmlDecodeTree=zZ.default;var BZ=NZ(FZ());it.xmlDecodeTree=BZ.default;var hC=w8e(cC());it.decodeCodePoint=hC.default;var qZ=cC();Object.defineProperty(it,"replaceCodePoint",{enumerable:!0,get:function(){return qZ.replaceCodePoint}});Object.defineProperty(it,"fromCodePoint",{enumerable:!0,get:function(){return qZ.fromCodePoint}});var Ji;(function(i){i[i.NUM=35]="NUM",i[i.SEMI=59]="SEMI",i[i.EQUALS=61]="EQUALS",i[i.ZERO=48]="ZERO",i[i.NINE=57]="NINE",i[i.LOWER_A=97]="LOWER_A",i[i.LOWER_F=102]="LOWER_F",i[i.LOWER_X=120]="LOWER_X",i[i.LOWER_Z=122]="LOWER_Z",i[i.UPPER_A=65]="UPPER_A",i[i.UPPER_F=70]="UPPER_F",i[i.UPPER_Z=90]="UPPER_Z"})(Ji||(Ji={}));var S8e=32,cc;(function(i){i[i.VALUE_LENGTH=49152]="VALUE_LENGTH",i[i.BRANCH_LENGTH=16256]="BRANCH_LENGTH",i[i.JUMP_TABLE=127]="JUMP_TABLE"})(cc=it.BinTrieFlags||(it.BinTrieFlags={}));function dC(i){return i>=Ji.ZERO&&i<=Ji.NINE}function C8e(i){return i>=Ji.UPPER_A&&i<=Ji.UPPER_F||i>=Ji.LOWER_A&&i<=Ji.LOWER_F}function I8e(i){return i>=Ji.UPPER_A&&i<=Ji.UPPER_Z||i>
vendor: 5,134 bytes, line 6180
6180=Ji.LOWER_A&&i<=Ji.LOWER_Z||dC(i)}function M8e(i){return i===Ji.EQUALS||I8e(i)}var Xi;(function(i){i[i.EntityStart=0]="EntityStart",i[i.NumericStart=1]="NumericStart",i[i.NumericDecimal=2]="NumericDecimal",i[i.NumericHex=3]="NumericHex",i[i.NamedEntity=4]="NamedEntity"})(Xi||(Xi={}));var Ao;(function(i){i[i.Legacy=0]="Legacy",i[i.Strict=1]="Strict",i[i.Attribute=2]="Attribute"})(Ao=it.DecodingMode||(it.DecodingMode={}));var HZ=function(){function i(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=Xi.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ao.Strict}return i.prototype.startEntity=function(e){this.decodeMode=e,this.state=Xi.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},i.prototype.write=function(e,t){switch(this.state){case Xi.EntityStart:return e.charCodeAt(t)===Ji.NUM?(this.state=Xi.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Xi.NamedEntity,this.stateNamedEntity(e,t));case Xi.NumericStart:return this.stateNumericStart(e,t);case Xi.NumericDecimal:return this.stateNumericDecimal(e,t);case Xi.NumericHex:return this.stateNumericHex(e,t);case Xi.NamedEntity:return this.stateNamedEntity(e,t)}},i.prototype.stateNumericStart=function(e,t){return t>=e.length?-1:(e.charCodeAt(t)|S8e)===Ji.LOWER_X?(this.state=Xi.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Xi.NumericDecimal,this.stateNumericDecimal(e,t))},i.prototype.addToNumericResult=function(e,t,r,n){if(t!==r){var s=r-t;this.result=this.result*Math.pow(n,s)+parseInt(e.substr(t,s),n),this.consumed+=s}},i.prototype.stateNumericHex=function(e,t){for(var r=t;t<e.length;){var n=e.charCodeAt(t);if(dC(n)||C8e(n))t+=1;else return this.addToNumericResult(e,r,t,16),this.emitNumericEntity(n,3)}return this.addToNumericResult(e,r,t,16),-1},i.prototype.stateNumericDecimal=function(e,t){for(var r=t;t<e.length;){var n=e.charCodeAt(t);if(dC(n))t+=1;else return this.addToNumericResult(e,r,t,10),this.emitNumericEntity(n,2)}return this.addToNumericResult(e,r,t,10),-1},i.prototype.emitNumericEntity=function(e,t){var r;if(this.consumed<=t)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Ji.SEMI)this.consumed+=1;else if(this.decodeMode===Ao.Strict)return 0;return this.emitCodePoint((0,hC.replaceCodePoint)(this.result),this.consumed),this.errors&&(e!==Ji.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},i.prototype.stateNamedEntity=function(e,t){for(var r=this.decodeTree,n=r[this.treeIndex],s=(n&cc.VALUE_LENGTH)>>14;t<e.length;t++,this.excess++){var o=e.charCodeAt(t);if(this.treeIndex=VZ(r,n,this.treeIndex+Math.max(1,s),o),this.treeIndex<0)return this.result===0||this.decodeMode===Ao.Attribute&&(s===0||M8e(o))?0:this.emitNotTerminatedNamedEntity();if(n=r[this.treeIndex],s=(n&cc.VALUE_LENGTH)>>14,s!==0){if(o===Ji.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Ao.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},i.prototype.emitNotTerminatedNamedEntity=function(){var e,t=this,r=t.result,n=t.decodeTree,s=(n[r]&cc.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,s,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed},i.prototype.emitNamedEntityData=function(e,t,r){var n=this.decodeTree;return this.emitCodePoint(t===1?n[e]&~cc.VALUE_LENGTH:n[e+1],r),t===3&&this.emitCodePoint(n[e+2],r),r},i.prototype.end=function(){var e;switch(this.state){case Xi.NamedEntity:return this.result!==0&&(this.decodeMode!==Ao.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Xi.NumericDecimal:return this.emitNumericEntity(0,2);case Xi.NumericHex:return this.emitNumericEntity(0,3);case Xi.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Xi.EntityStart:return 0}},i}();it.EntityDecoder=HZ;function jZ(i){var e="",t=new HZ(i,function(r){return e+=(0,hC.fromCodePoint)(r)});return function(n,s){for(var o=0,a=0;(a=n.indexOf("&",a))>=0;){e+=n.slice(o,a),t.startEntity(s);var l=t.write(n,a+1);if(l<0){o=a+t.end();break}o=a+l,a=l===0?o+1:o}var u=e+n.slice(o);return e="",u}}function VZ(i,e,t,r){var n=(e&cc.BRANCH_LENGTH)>>7,s=e&cc.JUMP_TABLE;if(n===0)return s!==0&&r===s?t:-1;if(s){var o=r-s;return o<0||o>=n?-1:i[t+o]-1}for(var a=t,l=a+n-1;a<=l;){var u=a+l>>>1,c=i[u];if(c<r)a=u+1;else if(c>r)l=u-1;else return i[u+n]}return-1}it.determineBranch=VZ;var fC=jZ(zZ.default),E8e=jZ(BZ.default);function T8e(i,e){return e===void 0&&(e=Ao.Legacy),fC(i,e)}it.decodeHTML=T8e;function k8e(i){return fC(i,Ao.Attribute)}it.decodeHTMLAttribute=k8e;function A8e(i){return fC(i,Ao.Strict)}it.decodeHTMLStrict=A8e;function R8e(i){return E8e(i,Ao.Strict)}it.decodeXML=R8e});var UZ=D(mC=>{"use strict";Object.defineProperty(mC,"__esModule",{value:!0});function vv(i){for(var e=1;e<i.length;e++)i[e][0]+=i[e-1][0]+1;return i}mC.default=new Map(vv
vendor: 10,610 bytes, line 6180
6180([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(
6180vv([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(vv([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨
6180"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(vv([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]))});var _v=D(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.escapeText=zi.escapeAttribute=zi.escapeUTF8=zi.escape=zi.encodeXML=zi.getCodePoint=zi.xmlReplacer=void 0;zi.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var WZ=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);zi.getCodePoint=String.prototype.codePointAt!=null?function(i,e){return i.codePointAt(e)}:function(i,e){return(i.charCodeAt(e)&64512)===55296?(i.charCodeAt(e)-55296)*1024+i.charCodeAt(e+1)-56320+65536:i.charCodeAt(e)};function GZ(i){for(var e="",t=0,r;(r=zi.xmlReplacer.exec(i))!==null;){var n=r.index,s=i.charCodeAt(n),o=WZ.get(s);o!==void 0?(e+=i.substring(t,n)+o,t=n+1):(e+="".concat(i.substring(t,n),"&#x").concat((0,zi.getCodePoint)(i,n).toString(16),";"),t=zi.xmlReplacer.lastIndex+=Number((s&64512)===55296))}return e+i.substr(t)}zi.encodeXML=GZ;zi.escape=GZ;function gC(i,e){return function(r){for(var n,s=0,o="";n=i.exec(r);
6180)s!==n.index&&(o+=r.substring(s,n.index)),o+=e.get(n[0].charCodeAt(0)),s=n.index+1;return o+r.substring(s)}}zi.escapeUTF8=gC(/[&<>'"]/g,WZ);zi.escapeAttribute=gC(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]]));zi.escapeText=gC(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))});var bC=D(ql=>{"use strict";var D8e=ql&&ql.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ql,"__esModule",{value:!0});ql.encodeNonAsciiHTML=ql.encodeHTML=void 0;var O8e=D8e(UZ()),KZ=_v(),L8e=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function $8e(i){return YZ(L8e,i)}ql.encodeHTML=$8e;function F8e(i){return YZ(KZ.xmlReplacer,i)}ql.encodeNonAsciiHTML=F8e;function YZ(i,e){for(var t="",r=0,n;(n=i.exec(e))!==null;){var s=n.index;t+=e.substring(r,s);var o=e.charCodeAt(s),a=O8e.default.get(o);if(typeof a=="object"){if(s+1<e.length){var l=e.charCodeAt(s+1),u=typeof a.n=="number"?a.n===l?a.o:void 0:a.n.get(l);if(u!==void 0){t+=u,r=i.lastIndex+=1;continue}}a=a.v}if(a!==void 0)t+=a,r=s+1;else{var c=(0,KZ.getCodePoint)(e,s);t+="&#x".concat(c.toString(16),";"),r=i.lastIndex+=Number(c!==o)}}return t+e.substr(r)}});var ZZ=D(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.decodeXMLStrict=Ae.decodeHTML5Strict=Ae.decodeHTML4Strict=Ae.decodeHTML5=Ae.decodeHTML4=Ae.decodeHTMLAttribute=Ae.decodeHTMLStrict=Ae.decodeHTML=Ae.decodeXML=Ae.DecodingMode=Ae.EntityDecoder=Ae.encodeHTML5=Ae.encodeHTML4=Ae.encodeNonAsciiHTML=Ae.encodeHTML=Ae.escapeText=Ae.escapeAttribute=Ae.escapeUTF8=Ae.escape=Ae.encodeXML=Ae.encode=Ae.decodeStrict=Ae.decode=Ae.EncodingMode=Ae.EntityLevel=void 0;var vC=pC(),XZ=bC(),yv=_v(),hh;(function(i){i[i.XML=0]="XML",i[i.HTML=1]="HTML"})(hh=Ae.EntityLevel||(Ae.EntityLevel={}));var Wp;(function(i){i[i.UTF8=0]="UTF8",i[i.ASCII=1]="ASCII",i[i.Extensive=2]="Extensive",i[i.Attribute=3]="Attribute",i[i.Text=4]="Text"})(Wp=Ae.EncodingMode||(Ae.EncodingMode={}));function JZ(i,e){e===void 0&&(e=hh.XML);var t=typeof e=="number"?e:e.level;if(t===hh.HTML){var r=typeof e=="object"?e.mode:void 0;return(0,vC.decodeHTML)(i,r)}return(0,vC.decodeXML)(i)}Ae.decode=JZ;function P8e(i,e){var t;e===void 0&&(e=hh.XML);var r=typeof e=="number"?{level:e}:e;return(t=r.mode)!==null&&t!==void 0||(r.mode=vC.DecodingMode.Strict),JZ(i,r)}Ae.decodeStrict=P8e;function N8e(i,e){e===void 0&&(e=hh.XML);var t=typeof e=="number"?{level:e}:e;
6180return t.mode===Wp.UTF8?(0,yv.escapeUTF8)(i):t.mode===Wp.Attribute?(0,yv.escapeAttribute)(i):t.mode===Wp.Text?(0,yv.escapeText)(i):t.level===hh.HTML?t.mode===Wp.ASCII?(0,XZ.encodeNonAsciiHTML)(i):(0,XZ.encodeHTML)(i):(0,yv.encodeXML)(i)}Ae.encode=N8e;var Gp=_v();Object.defineProperty(Ae,"encodeXML",{enumerable:!0,get:function(){return Gp.encodeXML}});Object.defineProperty(Ae,"escape",{enumerable:!0,get:function(){return Gp.escape}});Object.defineProperty(Ae,"escapeUTF8",{enumerable:!0,get:function(){return Gp.escapeUTF8}});Object.defineProperty(Ae,"escapeAttribute",{enumerable:!0,get:function(){return Gp.escapeAttribute}});Object.defineProperty(Ae,"escapeText",{enumerable:!0,get:function(){return Gp.escapeText}});var xv=bC();Object.defineProperty(Ae,"encodeHTML",{enumerable:!0,get:function(){return xv.encodeHTML}});Object.defineProperty(Ae,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return xv.encodeNonAsciiHTML}});Object.defineProperty(Ae,"encodeHTML4",{enumerable:!0,get:function(){return xv.encodeHTML}});Object.defineProperty(Ae,"encodeHTML5",{enumerable:!0,get:function(){return xv.encodeHTML}});var $s=pC();Object.defineProperty(Ae,"EntityDecoder",{enumerable:!0,get:function(){return $s.EntityDecoder}});Object.defineProperty(Ae,"DecodingMode",{enumerable:!0,get:function(){return $s.DecodingMode}});Object.defineProperty(Ae,"decodeXML",{enumerable:!0,get:function(){return $s.decodeXML}});Object.defineProperty(Ae,"decodeHTML",{enumerable:!0,get:function(){return $s.decodeHTML}});Object.defineProperty(Ae,"decodeHTMLStrict",{enumerable:!0,get:function(){return $s.decodeHTMLStrict}});Object.defineProperty(Ae,"decodeHTMLAttribute",{enumerable:!0,get:function(){return $s.decodeHTMLAttribute}});Object.defineProperty(Ae,"decodeHTML4",{enumerable:!0,get:function(){return $s.decodeHTML}});Object.defineProperty(Ae,"decodeHTML5",{enumerable:!0,get:function(){return $s.decodeHTML}});Object.defineProperty(Ae,"decodeHTML4Strict",{enumerable:!0,get:function(){return $s.decodeHTMLStrict}});Object.defineProperty(Ae,"decodeHTML5Strict",{enumerable:!0,get:function(){return $s.decodeHTMLStrict}});Object.defineProperty(Ae,"decodeXMLStrict",{enumerable:!0,get:function(){return $s.decodeXML}})});var QZ=D(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});fh.attributeNames=fh.elementNames=void 0;fh.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(i){return[i.toLowerCase(),i]}));fh.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(i){return[i.toLowerCase(),i]}))});var iQ=D(On=>{"use strict";var ph=On&&On.__assign||function(){return ph=Object.assign||function(i){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(i[n]=e[n])}return i},ph.apply(this,arguments)},z8e=On&&On.__createBinding||(Object.create?function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}:function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]}),B8e=On&&On.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),q8e=On&&On.__importStar||function(i){if(i&&i.__esModule)return i;var e={};
6180if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&z8e(e,i,t);return B8e(e,i),e};Object.defineProperty(On,"__esModule",{value:!0});On.render=void 0;var Ra=q8e(dh()),wv=ZZ(),tQ=QZ(),H8e=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function j8e(i){return i.replace(/"/g,""")}function V8e(i,e){var t;if(i){var r=((t=e.encodeEntities)!==null&&t!==void 0?t:e.decodeEntities)===!1?j8e:e.xmlMode||e.encodeEntities!=="utf8"?wv.encodeXML:wv.escapeAttribute;return Object.keys(i).map(function(n){var s,o,a=(s=i[n])!==null&&s!==void 0?s:"";return e.xmlMode==="foreign"&&(n=(o=tQ.attributeNames.get(n))!==null&&o!==void 0?o:n),!e.emptyAttrs&&!e.xmlMode&&a===""?n:"".concat(n,'="').concat(r(a),'"')}).join(" ")}}var eQ=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function Sv(i,e){e===void 0&&(e={});for(var t=("length"in i)?i:[i],r="",n=0;n<t.length;n++)r+=U8e(t[n],e);return r}On.render=Sv;On.default=Sv;function U8e(i,e){switch(i.type){case Ra.Root:return Sv(i.children,e);case Ra.Doctype:case Ra.Directive:return Y8e(i);case Ra.Comment:return Z8e(i);case Ra.CDATA:return J8e(i);case Ra.Script:case Ra.Style:case Ra.Tag:return K8e(i,e);case Ra.Text:return X8e(i,e)}}var W8e=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),G8e=new Set(["svg","math"]);function K8e(i,e){var t;e.xmlMode==="foreign"&&(i.name=(t=tQ.elementNames.get(i.name))!==null&&t!==void 0?t:i.name,i.parent&&W8e.has(i.parent.name)&&(e=ph(ph({},e),{xmlMode:!1}))),!e.xmlMode&&G8e.has(i.name)&&(e=ph(ph({},e),{xmlMode:"foreign"}));var r="<".concat(i.name),n=V8e(i.attribs,e);return n&&(r+=" ".concat(n)),i.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&eQ.has(i.name))?(e.xmlMode||(r+=" "),r+="/>"):(r+=">",i.children.length>0&&(r+=Sv(i.children,e)),(e.xmlMode||!eQ.has(i.name))&&(r+="</".concat(i.name,">"))),r}function Y8e(i){return"<".concat(i.data,">")}function X8e(i,e){var t,r=i.data||"";return((t=e.encodeEntities)!==null&&t!==void 0?t:e.decodeEntities)!==!1&&!(!e.xmlMode&&i.parent&&H8e.has(i.parent.name))&&(r=e.xmlMode||e.encodeEntities!=="utf8"?(0,wv.encodeXML)(r):(0,wv.escapeText)(r)),r}function J8e(i){return"<![CDATA[".concat(i.children[0].data,"]]>")}function Z8e(i){return"<!--".concat(i.data,"-->")}});var xC=D(dn=>{"use strict";var Q8e=dn&&dn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(dn,"__esModule",{value:!0});dn.innerText=dn.textContent=dn.getText=dn.getInnerHTML=dn.getOuterHTML=void 0;var Ro=Aa(),eIe=Q8e(iQ()),tIe=dh();function rQ(i,e){return(0,eIe.default)(i,e)}dn.getOuterHTML=rQ;function iIe(i,e){return(0,Ro.hasChildren)(i)?i.children.map(function(t){return rQ(t,e)}).join(""):""}dn.getInnerHTML=iIe;function Cv(i){return Array.isArray(i)?i.map(Cv).join(""):(0,Ro.isTag)(i)?i.name==="br"?` 6181`:Cv(i.children):(0,Ro.isCDATA)(i)?Cv(i.children):(0,Ro.isText)(i)?i.data:""}dn.getText=Cv;function _C(i){return Array.isArray(i)?i.map(_C).join(""):(0,Ro.hasChildren)(i)&&!(0,Ro.isComment)(i)?_C(i.children):(0,Ro.isText)(i)?i.data:""}dn.textContent=_C;function yC(i){return Array.isArray(i)?i.map(yC).join(""):(0,Ro.hasChildren)(i)&&(i.type===tIe.ElementType.Tag||(0,Ro.isCDATA)(i))?yC(i.children):(0,Ro.isText)(i)?i.data:""}dn.innerText=yC});var oQ=D(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.prevElementSibling=Zi.nextElementSibling=Zi.getName=Zi.hasAttrib=Zi.getAttributeValue=Zi.getSiblings=Zi.getParent=Zi.getChildren=void 0;var wC=Aa();function nQ(i){return(0,wC.hasChildren)(i)?i.children:[]}Zi.getChildren=nQ;function sQ(i){return i.parent||null}Zi.getParent=sQ;function rIe(i){var e,t,r=sQ(i);if(r!=null)return nQ(r);for(var n=[i],s=i.prev,o=i.next;s!=null;)n.unshift(s),e=s,s=e.prev;for(;o!=null;)n.push(o),t=o,o=t.next;return n}Zi.getSiblings=rIe;function nIe(i,e){var t;return(t=i.attribs)===null||t===void 0?void 0:t[e]}Zi.getAttributeValue=nIe;function sIe(i,e){return i.attribs!=null&&Object.prototype.hasOwnProperty.call(i.attribs,e)&&i.attribs[e]!=null}Zi.hasAttrib=sIe;function oIe(i){return i.name}Zi.getName=oIe;function aIe(i){for(var e,t=i.next;t!==null&&!(0,wC.isTag)(t);)e=t,t=e.next;return t}Zi.nextElementSibling=aIe;function lIe(i){for(var e,t=i.prev;t!==null&&!(0,wC.isTag)(t);)e=t,t=e.prev;return t}Zi.prevElementSibling=lIe});var aQ=D(hn=>{"use strict";Object.defineProperty(hn,"__esModule",{value:!0});hn.prepend=hn.prependChild=hn.append=hn.appendChild=hn.replaceElement=hn.removeElement=void 0;function Kp(i){if(i.prev&&(i.prev.next=i.next),i.next&&(i.next.prev=i.prev),i.parent){var e=i.parent.children,t=e.lastIndexOf(i);t>=0&&e.splice(t,1)}i.next=null,i.prev=null,i.parent=null}hn.removeElement=Kp;function uIe(i,e){var t=e.prev=i.prev;t&&(t.next=e);var r=e.next=i.next;r&&(r.prev=e);var n=e.parent=i.parent;if(n){var s=n.children;s[s.lastIndexOf(i)]=e,i.parent=null}}hn.replaceElement=uIe;function cIe(i,e){if(Kp(e),e.next=null,e.parent=i,i.children.push(e)>1){var t=i.children[i.children.length-2];t.next=e,e.prev=t}else e.prev=null}hn.appendChild=cIe;function dIe(i,e){Kp(e);var t=i.parent,r=i.next;if(e.next=r,e.prev=i,i.next=e,e.parent=t,r){if(r.prev=e,t){var n=t.children;n.splice(n.lastIndexOf(r),0,e)}}else t&&t.children.push(e)}hn.append=dIe;function hIe(i,e){if(Kp(e),e.parent=i,e.prev=null,i.children.unshift(e)!==1){var t=i.children[1];t.prev=e,e.next=t}else e.next=null}hn.prependChild=hIe;function fIe(i,e){Kp(e);var t=i.parent;if(t){var r=t.children;r.splice(r.indexOf(i),0,e)}i.prev&&(i.prev.next=e),e.parent=t,e.prev=i.prev,e.next=i,i.prev=e}hn.prepend=fIe});var SC=D(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.findAll=fn.existsOne=fn.findOne=fn.findOneChild=fn.find=fn.filter=void 0;var Iv=Aa();function pIe(i,e,t,r){return t===void 0&&(t=!0),r===void 0&&(r=1/0),lQ(i,Array.isArray(e)?e:[e],t,r)}fn.filter=pIe;function lQ(i,e,t,r){for(var n=[],s=[e],o=[0];;){if(o[0]>=s[0].length){if(o.length===1)return n;s.shift(),o.shift();continue}var a=s[0][o[0]++];if(i(a)&&(n.push(a),--r<=0))return n;t&&(0,Iv.hasChildren)(a)&&a.children.length>0&&(o.unshift(0),s.unshift(a.children))}}fn.find=lQ;function mIe(i,e){return e.find(i)}fn.findOneChild=mIe;function uQ(i,e,t){t===void 0&&(t=!0);for(var r=null,n=0;n<e.length&&!r;n++){var s=e[n];if((0,Iv.isTag)(s))i(s)?r=s:t&&s.children.length>0&&(r=uQ(i,s.children,!0));else continue}return r}fn.findOne=uQ;function cQ(i,e){return e.some(function(t){return(0,Iv.isTag)(t)&&(i(t)||cQ(i,t.children))})}fn.existsOne=cQ;function gIe(i,e){for(var t=[],r=[e],n=[0];;){if(n[0]>=r[0].length){if(r.length===1)return t;r.shift(),n.shift();continue}var s=r[0][n[0]++];(0,Iv.isTag)(s)&&(i(s)&&t.push(s),s.children.length>0&&(n.unshift(0),r.unshift(s.children)))}}fn.findAll=gIe});var CC=D(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.getElementsByTagType=ss.getElementsByTagName=ss.getElementById=ss.getElements=ss.testElement=void 0;var dc=Aa(),Ev=SC(),Mv={tag_name:function(i){return typeof i=="function"?function(e){return(0,dc.isTag)(e)&&i(e.name)}:i==="*"?dc.isTag:function(e){return(0,dc.isTag)(e)&&e.name===i}},tag_type:function(i){return typeof i=="function"?function(e){return i(e.type)}:function(e){return e.type===i}},tag_contains:function(i){return typeof i=="function"?function(e){return(0,dc.isText)(e)&&i(e.data)}:function(e){return(0,dc.isText)(e)&&e.data===i}}};function dQ(i,e){return typeof e=="function"?function(t){return(0,dc.isTag)(t)&&e(t.attribs[i])}:function(t){return(0,dc.isTag)(t)&&t.attribs[i]===e}}function bIe(i,e){return function(t){return i(t)||e(t)}}function hQ(i){var e=Object.keys(i).map(function(t){var r=i[t];return Object.prototype.hasOwnProperty.call(Mv,t)?Mv[t](r):dQ(t,r)});return e.length===0?null:e.reduce(bIe)}function vIe(i,e){var t=hQ(i);return t?t(e):!0}ss.testElement=vIe;function _Ie(i,e,t,r){r===void 0&&(r=1/0);var n=hQ(i);return n?(0,Ev.filter)(n,e,t,r):[]}ss.getElements=_Ie;function yIe(i,e,t){return t===void 0&&(t=!0),Array.isArray(e)||(e=[e]),(0,Ev.findOne)(dQ("id",i),e,t)}ss.getElementById=yIe;function xIe(i,e,t,r){return t===void 0&&(t=!0),r===void 0&&(r=1/0),(0,Ev.filter)(Mv.tag_name(i),e,t,r)}ss.getElementsByTagName=xIe;function wIe(i,e,t,r){return t===void 0&&(t=!0),r===void 0&&(r=1/0),(0,Ev.filter)(Mv.tag_type(i),e,t,r)}ss.getElementsByTagType=wIe});var mQ=D(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.uniqueSort=Fs.compareDocumentPosition=Fs.DocumentPosition=Fs.removeSubsets=void 0;var fQ=Aa();function SIe(i){for(var e=i.length;--e>=0;){var t=i[e];if(e>0&&i.lastIndexOf(t,e-1)>=0){i.splice(e,1);continue}for(var r=t.parent;r;r=r.parent)if(i.includes(r)){i.splice(e,1);break}}return i}Fs.removeSubsets=SIe;var Do;(function(i){i[i.DISCONNECTED=1]="DISCONNECTED",i[i.PRECEDING=2]="PRECEDING",i[i.FOLLOWING=4]="FOLLOWING",i[i.CONTAINS=8]="CONTAINS",i[i.CONTAINED_BY=16]="CONTAINED_BY"})(Do=Fs.DocumentPosition||(Fs.DocumentPosition={}));function pQ(i,e){var t=[],r=[];if(i===e)return 0;for(var n=(0,fQ.hasChildren)(i)?i:i.parent;n;)t.unshift(n),n=n.parent;for(n=(0,fQ.hasChildren)(e)?e:e.parent;n;)r.unshift(n),n=n.parent;for(var s=Math.min(t.length,r.length),o=0;o<s&&t[o]===r[o];)o++;if(o===0)return Do.DISCONNECTED;var a=t[o-1],l=a.children,u=t[o],c=r[o];return l.indexOf(u)>l.indexOf(c)?a===e?Do.FOLLOWING|Do.CONTAINED_BY:Do.FOLLOWING:a===i?Do.PRECEDING|Do.CONTAINS:Do.PRECEDING}Fs.compareDocumentPosition=pQ;function CIe(i){return i=i.filter(function(e,t,r){return!r.includes(e,t+1)}),i.sort(function(e,t){var r=pQ(e,t);return r&Do.PRECEDING?-1:r&Do.FOLLOWING?1:0}),i}Fs.uniqueSort=CIe});var bQ=D(kv=>{"use strict";
vendor: 16,859 bytes, lines 6181-6199
6181Object.defineProperty(kv,"__esModule",{value:!0});kv.getFeed=void 0;var IIe=xC(),Yp=CC();function MIe(i){var e=Tv(RIe,i);return e?e.name==="feed"?EIe(e):TIe(e):null}kv.getFeed=MIe;function EIe(i){var e,t=i.children,r={type:"atom",items:(0,Yp.getElementsByTagName)("entry",t).map(function(o){var a,l=o.children,u={media:gQ(l)};pn(u,"id","id",l),pn(u,"title","title",l);var c=(a=Tv("link",l))===null||a===void 0?void 0:a.attribs.href;c&&(u.link=c);var d=Hl("summary",l)||Hl("content",l);d&&(u.description=d);var f=Hl("updated",l);return f&&(u.pubDate=new Date(f)),u})};pn(r,"id","id",t),pn(r,"title","title",t);var n=(e=Tv("link",t))===null||e===void 0?void 0:e.attribs.href;n&&(r.link=n),pn(r,"description","subtitle",t);var s=Hl("updated",t);return s&&(r.updated=new Date(s)),pn(r,"author","email",t,!0),r}function TIe(i){var e,t,r=(t=(e=Tv("channel",i.children))===null||e===void 0?void 0:e.children)!==null&&t!==void 0?t:[],n={type:i.name.substr(0,3),id:"",items:(0,Yp.getElementsByTagName)("item",i.children).map(function(o){var a=o.children,l={media:gQ(a)};pn(l,"id","guid",a),pn(l,"title","title",a),pn(l,"link","link",a),pn(l,"description","description",a);var u=Hl("pubDate",a)||Hl("dc:date",a);return u&&(l.pubDate=new Date(u)),l})};pn(n,"title","title",r),pn(n,"link","link",r),pn(n,"description","description",r);var s=Hl("lastBuildDate",r);return s&&(n.updated=new Date(s)),pn(n,"author","managingEditor",r,!0),n}var kIe=["url","type","lang"],AIe=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function gQ(i){return(0,Yp.getElementsByTagName)("media:content",i).map(function(e){for(var t=e.attribs,r={medium:t.medium,isDefault:!!t.isDefault},n=0,s=kIe;n<s.length;n++){var o=s[n];t[o]&&(r[o]=t[o])}for(var a=0,l=AIe;a<l.length;a++){var o=l[a];t[o]&&(r[o]=parseInt(t[o],10))}return t.expression&&(r.expression=t.expression),r})}function Tv(i,e){return(0,Yp.getElementsByTagName)(i,e,!0,1)[0]}function Hl(i,e,t){return t===void 0&&(t=!1),(0,IIe.textContent)((0,Yp.getElementsByTagName)(i,e,t,1)).trim()}function pn(i,e,t,r,n){n===void 0&&(n=!1);var s=Hl(t,r,n);s&&(i[e]=s)}function RIe(i){return i==="rss"||i==="feed"||i==="rdf:RDF"}});var Av=D(Ht=>{"use strict";var DIe=Ht&&Ht.__createBinding||(Object.create?function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}:function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]}),hc=Ht&&Ht.__exportStar||function(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&DIe(e,i,t)};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.hasChildren=Ht.isDocument=Ht.isComment=Ht.isText=Ht.isCDATA=Ht.isTag=void 0;hc(xC(),Ht);hc(oQ(),Ht);hc(aQ(),Ht);hc(SC(),Ht);hc(CC(),Ht);hc(mQ(),Ht);hc(bQ(),Ht);var mh=Aa();Object.defineProperty(Ht,"isTag",{enumerable:!0,get:function(){return mh.isTag}});Object.defineProperty(Ht,"isCDATA",{enumerable:!0,get:function(){return mh.isCDATA}});Object.defineProperty(Ht,"isText",{enumerable:!0,get:function(){return mh.isText}});Object.defineProperty(Ht,"isComment",{enumerable:!0,get:function(){return mh.isComment}});Object.defineProperty(Ht,"isDocument",{enumerable:!0,get:function(){return mh.isDocument}});Object.defineProperty(Ht,"hasChildren",{enumerable:!0,get:function(){return mh.hasChildren}})});var CQ=D(ht=>{"use strict";var OIe=ht&&ht.__createBinding||(Object.create?function(i,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(i,r,n)}:function(i,e,t,r){r===void 0&&(r=t),i[r]=e[t]}),LIe=ht&&ht.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),vQ=ht&&ht.__importStar||function(i){if(i&&i.__esModule)return i;var e={};if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&OIe(e,i,t);return LIe(e,i),e},$Ie=ht&&ht.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ht,"__esModule",{value:!0});ht.DomUtils=ht.parseFeed=ht.getFeed=ht.ElementType=ht.Tokenizer=ht.createDomStream=ht.parseDOM=ht.parseDocument=ht.DefaultHandler=ht.DomHandler=ht.Parser=void 0;var _Q=tC(),FIe=tC();Object.defineProperty(ht,"Parser",{enumerable:!0,get:function(){return FIe.Parser}});var yQ=Aa(),xQ=Aa();Object.defineProperty(ht,"DomHandler",{enumerable:!0,get:function(){return xQ.DomHandler}});Object.defineProperty(ht,"DefaultHandler",{enumerable:!0,get:function(){return xQ.DomHandler}});function wQ(i,e){var t=new yQ.DomHandler(void 0,e);return new _Q.Parser(t,e).end(i),t.root}ht.parseDocument=wQ;function SQ(i,e){return wQ(i,e).children}ht.parseDOM=SQ;function PIe(i,e,t){var r=new yQ.DomHandler(i,e,t);return new _Q.Parser(r,e)}ht.createDomStream=PIe;var NIe=eC();Object.defineProperty(ht,"Tokenizer",{enumerable:!0,get:function(){return $Ie(NIe).default}});ht.ElementType=vQ(dh());var zIe=Av(),BIe=Av();Object.defineProperty(ht,"getFeed",{enumerable:!0,get:function(){return BIe.getFeed}});var qIe={xmlMode:!0};function HIe(i,e){return e===void 0&&(e=qIe),(0,zIe.getFeed)(SQ(i,e))}ht.parseFeed=HIe;ht.DomUtils=vQ(Av())});var MQ=D((Q8t,IQ)=>{"use strict";IQ.exports=i=>{if(typeof i!="string")throw new TypeError("Expected a string");return i.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}});var TQ=D(IC=>{"use strict";Object.defineProperty(IC,"__esModule",{value:!0});function EQ(i){return Object.prototype.toString.call(i)==="[object Object]"}function jIe(i){var e,t;return EQ(i)===!1?!1:(e=i.constructor,e===void 0?!0:(t=e.prototype,!(EQ(t)===!1||t.hasOwnProperty("isPrototypeOf")===!1)))}IC.isPlainObject=jIe});var DQ=D((tIt,RQ)=>{"use strict";var VIe=function(e){return UIe(e)&&!WIe(e)};function UIe(i){return!!i&&typeof i=="object"}function WIe(i){var e=Object.prototype.toString.call(i);return e==="[object RegExp]"||e==="[object Date]"||YIe(i)}var GIe=typeof Symbol=="function"&&Symbol.for,KIe=GIe?Symbol.for("react.element"):60103;function YIe(i){return i.$$typeof===KIe}function XIe(i){return Array.isArray(i)?[]:{}}function Xp(i,e){return e.clone!==!1&&e.isMergeableObject(i)?gh(XIe(i),i,e):i}function JIe(i,e,t){return i.concat(e).map(function(r){return Xp(r,t)})}function ZIe(i,e){if(!e.customMerge)return gh;var t=e.customMerge(i);return typeof t=="function"?t:gh}function QIe(i){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(i).filter(function(e){return Object.propertyIsEnumerable.call(i,e)}):[]}function kQ(i){return Object.keys(i).concat(QIe(i))}function AQ(i,e){try{return e in i}catch{return!1}}function eMe(i,e){return AQ(i,e)&&!(Object.hasOwnProperty.call(i,e)&&Object.propertyIsEnumerable.call(i,e))}function tMe(i,e,t){var r={};return t.isMergeableObject(i)&&kQ(i).forEach(function(n){r[n]=Xp(i[n],t)}),kQ(e).forEach(function(n){eMe(i,n)||(AQ(i,n)&&t.isMergeableObject(e[n])?r[n]=ZIe(n,t)(i[n],e[n],t):r[n]=Xp(e[n],t))}),r}function gh(i,e,t){t=t||{},t.arrayMerge=t.arrayMerge||JIe,t.isMergeableObject=t.isMergeableObject||VIe,t.cloneUnlessOtherwiseSpecified=Xp;var r=Array.isArray(e),n=Array.isArray(i),s=r===n;return s?r?t.arrayMerge(i,e,t):tMe(i,e,t):Xp(e,t)}gh.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,n){return gh(r,n,t)},{})};var iMe=gh;RQ.exports=iMe});var LQ=D((OQ,Rv)=>{(function(i,e){typeof define=="function"&&define.amd?define([],e):typeof Rv=="object"&&Rv.exports?Rv.exports=e():i.parseSrcset=e()})(OQ,function(){return function(i){function e(E){return E===" "||E===" "||E===` 6182`||E==="\f"||E==="\r"}function t(E){var A,R=E.exec(i.substring(y));if(R)return A=R[0],y+=A.length,A}for(var r=i.length,n=/^[ \t\n\r\u000c]+/,s=/^[, \t\n\r\u000c]+/,o=/^[^ \t\n\r\u000c]+/,a=/[,]+$/,l=/^\d+$/,u=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,c,d,f,m,b,y=0,x=[];;){if(t(s),y>=r)return x;c=t(o),d=[],c.slice(-1)===","?(c=c.replace(a,""),T()):M()}function M(){for(t(n),f="",m="in descriptor";;){if(b=i.charAt(y),m==="in descriptor")if(e(b))f&&(d.push(f),f="",m="after descriptor");else if(b===","){y+=1,f&&d.push(f),T();return}else if(b==="(")f=f+b,m="in parens";else if(b===""){f&&d.push(f),T();return}else f=f+b;else if(m==="in parens")if(b===")")f=f+b,m="in descriptor";else if(b===""){d.push(f),T();return}else f=f+b;else if(m==="after descriptor"&&!e(b))if(b===""){T();return}else m="in descriptor",y-=1;y+=1}}function T(){var E=!1,A,R,$,v,_={},h,p,g,C,I;for(v=0;v<d.length;v++)h=d[v],p=h[h.length-1],g=h.substring(0,h.length-1),C=parseInt(g,10),I=parseFloat(g),l.test(g)&&p==="w"?((A||R)&&(E=!0),C===0?E=!0:A=C):u.test(g)&&p==="x"?((A||R||$)&&(E=!0),I<0?E=!0:R=I):l.test(g)&&p==="h"?(($||R)&&(E=!0),C===0?E=!0:$=C):E=!0;E?console&&console.log&&console.log("Invalid srcset descriptor found in '"+i+"' at '"+h+"'."):(_.url=c,A&&(_.w=A),R&&(_.d=R),$&&(_.h=$),x.push(_))}}})});var FQ=D((iIt,MC)=>{var We=String,$Q=function(){return{isColorSupported:!1,reset:We,bold:We,dim:We,italic:We,underline:We,inverse:We,hidden:We,strikethrough:We,black:We,red:We,green:We,yellow:We,blue:We,magenta:We,cyan:We,white:We,gray:We,bgBlack:We,bgRed:We,bgGreen:We,bgYellow:We,bgBlue:We,bgMagenta:We,bgCyan:We,bgWhite:We,blackBright:We,redBright:We,greenBright:We,yellowBright:We,blueBright:We,magentaBright:We,cyanBright:We,whiteBright:We,bgBlackBright:We,bgRedBright:We,bgGreenBright:We,bgYellowBright:We,bgBlueBright:We,bgMagentaBright:We,bgCyanBright:We,bgWhiteBright:We}};MC.exports=$Q();MC.exports.createColors=$Q});var EC=D(()=>{});var Dv=D((sIt,zQ)=>{"use strict";var PQ=FQ(),NQ=EC(),fc=class extends Error{constructor(e,t,r,n,s,o){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),n&&(this.source=n),o&&(this.plugin=o),typeof t<"u"&&typeof r<"u"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,fc)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=PQ.isColorSupported);let r=c=>c,n=c=>c,s=c=>c;if(e){let{bold:c,gray:d,red:f}=PQ.createColors(!0);n=m=>c(f(m)),r=m=>d(m),NQ&&(s=m=>NQ(m))}let o=t.split(/\r?\n/),a=Math.max(this.line-3,0),l=Math.min(this.line+2,o.length),u=String(l).length;return o.slice(a,l).map((c,d)=>{let f=a+1+d,m=" "+(" "+f).slice(-u)+" | ";if(f===this.line){if(c.length>160){let y=20,x=Math.max(0,this.column-y),M=Math.max(this.column+y,this.endColumn+y),T=c.slice(x,M),E=r(m.replace(/\d/g," "))+c.slice(0,Math.min(this.column-1,y-1)).replace(/[^\t]/g," ");return n(">")+r(m)+s(T)+` 6183 `+E+n("^")}let b=r(m.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(m)+s(c)+` 6184 `+b+n("^")}return" "+r(m)+s(c)}).join(` 6185`)}toString(){let e=this.showSourceCode();return e&&(e=` 6186 6187`+e+` 6188`),this.name+": "+this.message+e}};zQ.exports=fc;fc.default=fc});var TC=D((oIt,qQ)=>{"use strict";var BQ={after:` 6189`,beforeClose:` 6190`,beforeComment:` 6191`,beforeDecl:` 6192`,beforeOpen:" ",beforeRule:` 6193`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function rMe(i){return i[0].toUpperCase()+i.slice(1)}var Jp=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let s=(e.raws.between||"")+(t?";":"");this.builder(r+n+s,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let n=e.parent,s=0;for(;n&&n.type!=="root";)s+=1,n=n.parent;if(r.includes(` 6194`)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a<s;a++)r+=o}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let n;e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let s=e.nodes[n],o=this.raw(s,"before");o&&this.builder(o),this.stringify(s,t!==n||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),t&&(n+=";"),this.builder(n,e)}document(e){this.body(e)}raw(e,t,r){let n;if(r||(r=t),t&&(n=e.raws[t],typeof n<"u"))return n;let s=e.parent;if(r==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return"";if(!s)return BQ[r];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[r]<"u")return o.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let a="raw"+rMe(r);this[a]?n=this[a](o,e):o.walk(l=>{if(n=l.raws[t],typeof n<"u")return!1})}return typeof n>"u"&&(n=BQ[r]),o.rawCache[r]=n,n}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return t=r.raws.after,t.includes(` 6195`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(` 6196`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(` 6197`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return t=r.raws.before,t.includes(` 6198`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&typeof r.raws.before<"u"){let s=r.raws.before.split(` 6199`);return t=s[s.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let r=e[t],n=e.raws[t];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};qQ.exports=Jp;Jp.default=Jp});var Zp=D((aIt,HQ)=>{"use strict";var nMe=TC();function kC(i,e){new nMe(e).stringify(i)}HQ.exports=kC;kC.default=kC});var Ov=D((lIt,AC)=>{"use strict";AC.exports.isClean=Symbol("isClean");AC.exports.my=Symbol("my")});var tm=D((uIt,jQ)=>{"use strict";var sMe=Dv(),oMe=TC(),aMe=Zp(),{isClean:Qp,my:lMe}=Ov();function RC(i,e){let t=new i.constructor;for(let r in i){if(!Object.prototype.hasOwnProperty.call(i,r)||r==="proxyCache")continue;let n=i[r],s=typeof n;r==="parent"&&s==="object"?e&&(t[r]=e):r==="source"?t[r]=n:Array.isArray(n)?t[r]=n.map(o=>RC(o,t)):(s==="object"&&n!==null&&(n=RC(n)),t[r]=n)}return t}var em=class{constructor(e={}){this.raws={},this[Qp]=!1,this[lMe]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=RC(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}
vendor: 2,727 bytes, lines 6199-6200
6199error(e,t={}){if(this.source){let{end:r,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},t)}return new sMe(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[Qp]=!0}markDirty(){if(this[Qp]){this[Qp]=!1;let e=this;for(;e=e.parent;)e[Qp]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();let n=t.indexOf(e.word);n!==-1&&(r=this.positionInside(n,t))}return r}positionInside(e,t){let r=t||this.toString(),n=this.source.start.column,s=this.source.start.line;for(let o=0;o<e;o++)r[o]===` 6200`?(n=1,s+=1):n+=1;return{column:n,line:s}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let n=this.toString(),s=n.indexOf(e.word);s!==-1&&(t=this.positionInside(s,n),r=this.positionInside(s+e.word.length,n))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new oMe().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},n=t==null;t=t||new Map;let s=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let a=this[o];if(Array.isArray(a))r[o]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof a=="object"&&a.toJSON)r[o]=a.toJSON(null,t);else if(o==="source"){let l=t.get(a.input);l==null&&(l=s,t.set(a.input,s),s++),r[o]={end:a.end,inputId:l,start:a.start}}else r[o]=a}return n&&(r.inputs=[...t.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}
vendor: 5,940 bytes, line 6200
6200toString(e=aMe){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r){let n={node:this};for(let s in r)n[s]=r[s];return e.warn(t,n)}get proxyOf(){return this}};jQ.exports=em;em.default=em});var rm=D((cIt,VQ)=>{"use strict";var uMe=tm(),im=class extends uMe{constructor(e){super(e),this.type="comment"}};VQ.exports=im;im.default=im});var sm=D((dIt,UQ)=>{"use strict";var cMe=tm(),nm=class extends cMe{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};UQ.exports=nm;nm.default=nm});var jl=D((hIt,eee)=>{"use strict";var WQ=rm(),GQ=sm(),dMe=tm(),{isClean:KQ,my:YQ}=Ov(),DC,XQ,JQ,OC;function ZQ(i){return i.map(e=>(e.nodes&&(e.nodes=ZQ(e.nodes)),delete e.source,e))}function QQ(i){if(i[KQ]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)QQ(e)}var Ln=class extends dMe{append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let n of r)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,n;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],n=e(this.proxyOf.nodes[r],r),n!==!1);)this.indexes[t]+=1;return delete this.indexes[t],n}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(n=>typeof n=="function"?(s,o)=>n(s.toProxy(),o):n)):t==="every"||t==="some"?r=>e[t]((n,...s)=>r(n.toProxy(),...s)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),n=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of n)this.proxyOf.nodes.splice(r+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],r<s&&(this.indexes[o]=s+n.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),n=r===0?"prepend":!1,s=this.normalize(t,this.proxyOf.nodes[r],n).reverse();r=this.index(e);for(let a of s)this.proxyOf.nodes.splice(r,0,a);let o;for(let a in this.indexes)o=this.indexes[a],r<=o&&(this.indexes[a]=o+s.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=ZQ(XQ(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new GQ(e)]}else if(e.selector||e.selectors)e=[new OC(e)];else if(e.name)e=[new DC(e)];else if(e.text)e=[new WQ(e)];else throw new Error("Unknown node type in node creation");return e.map(n=>(n[YQ]||Ln.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[KQ]&&QQ(n),typeof n.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(n.raws.before=t.raws.before.replace(/\S/g,"")),n.parent=this.proxyOf,n))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let n of r)this.proxyOf.nodes.unshift(n);for(let n in this.indexes)this.indexes[n]=this.indexes[n]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let n;try{n=e(t,r)}catch(s){throw t.addToError(s)}return n!==!1&&t.walk&&(n=t.walk(e)),n})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,n)}):this.walk((r,n)=>{if(r.type==="atrule"&&r.name===e)return t(r,n)}):(t=e,this.walk((r,n)=>{if(r.type==="atrule")return t(r,n)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,n)}):this.walk((r,n)=>{if(r.type==="decl"&&r.prop===e)return t(r,n)}):(t=e,this.walk((r,n)=>{if(r.type==="decl")return t(r,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,n)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,n)}):this.walk((r,n)=>{if(r.type==="rule"&&r.selector===e)return t(r,n)}):(t=e,this.walk((r,n)=>{if(r.type==="rule")return t(r,n)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}};Ln.registerParse=i=>{XQ=i};Ln.registerRule=i=>{OC=i};Ln.registerAtRule=i=>{DC=i};Ln.registerRoot=i=>{JQ=i};eee.exports=Ln;Ln.default=Ln;Ln.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,DC.prototype):i.type==="rule"?Object.setPrototypeOf(i,OC.prototype):i.type==="decl"?Object.setPrototypeOf(i,GQ.prototype):i.type==="comment"?Object.setPrototypeOf(i,WQ.prototype):i.type==="root"&&Object.setPrototypeOf(i,JQ.prototype),i[YQ]=!0,i.nodes&&i.nodes.forEac
6200h(e=>{Ln.rebuild(e)})}});var Lv=D((fIt,iee)=>{"use strict";var tee=jl(),bh=class extends tee{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};iee.exports=bh;bh.default=bh;tee.registerAtRule(bh)});var $v=D((pIt,see)=>{"use strict";var hMe=jl(),ree,nee,pc=class extends hMe{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new ree(new nee,this,e).stringify()}};pc.registerLazyResult=i=>{ree=i};pc.registerProcessor=i=>{nee=i};see.exports=pc;pc.default=pc});var aee=D((mIt,oee)=>{var fMe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",pMe=(i,e=21)=>(t=e)=>{let r="",n=t;for(;n--;)r+=i[Math.random()*i.length|0];return r},mMe=(i=21)=>{let e="",t=i;for(;t--;)e+=fMe[Math.random()*64|0];return e};oee.exports={nanoid:mMe,customAlphabet:pMe}});var Fv=D((gIt,lee)=>{lee.exports={}});var Pv=D(()=>{});var LC=D((_It,uee)=>{uee.exports={}});var dee=D((yIt,cee)=>{cee.exports={}});var FC=D((xIt,pee)=>{"use strict";var{existsSync:gMe,readFileSync:bMe}=dee(),{dirname:$C,join:vMe}=Fv(),{SourceMapConsumer:hee,SourceMapGenerator:fee}=Pv();function _Me(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}var om=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,n=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=$C(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new hee(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,n=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,o=e.match(n)||e.match(s);if(o)return decodeURIComponent(e.substr(o[0].length));let a=e.match(t)||e.match(r);if(a)return _Me(e.substr(a[0].length));let l=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+l)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let r=e.lastIndexOf(t.pop()),n=e.indexOf("*/",r);r>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,n)))}loadFile(e){if(this.root=$C(e),gMe(e))return this.mapFile=e,bMe(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let n=this.loadFile(r);if(!n)throw new Error("Unable to load previous source map: "+r.toString());return n}}else{if(t instanceof hee)return fee.fromSourceMap(t).toString();if(t instanceof fee)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=vMe($C(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};pee.exports=om;om.default=om});var am=D((wIt,vee)=>{"use strict";var{nanoid:yMe}=aee(),{isAbsolute:zC,resolve:BC}=Fv(),{SourceMapConsumer:xMe,SourceMapGenerator:wMe}=Pv(),{fileURLToPath:mee,pathToFileURL:Nv}
vendor: 4,646 bytes, lines 6200-6202
6200=LC(),gee=Dv(),SMe=FC(),PC=EC(),NC=Symbol("fromOffsetCache"),CMe=Boolean(xMe&&wMe),bee=Boolean(BC&&zC),vh=class{constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!bee||/^\w+:\/\//.test(t.from)||zC(t.from)?this.file=t.from:this.file=BC(t.from)),bee&&CMe){let r=new SMe(this.css,t);if(r.text){this.map=r;let n=r.consumer().file;!this.file&&n&&(this.file=this.mapResolve(n))}}this.file||(this.id="<input css "+yMe(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let s,o,a;if(t&&typeof t=="object"){let u=t,c=r;if(typeof u.offset=="number"){let d=this.fromOffset(u.offset);t=d.line,r=d.col}else t=u.line,r=u.column;if(typeof c.offset=="number"){let d=this.fromOffset(c.offset);o=d.line,s=d.col}else o=c.line,s=c.column}else if(!r){let u=this.fromOffset(t);t=u.line,r=u.col}let l=this.origin(t,r,o,s);return l?a=new gee(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,n.plugin):a=new gee(e,o===void 0?t:{column:r,line:t},o===void 0?r:{column:s,line:o},this.css,this.file,n.plugin),a.input={column:r,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(Nv&&(a.input.url=Nv(this.file).toString()),a.input.file=this.file),a}fromOffset(e){let t,r;if(this[NC])r=this[NC];else{let s=this.css.split(` 6201`);r=new Array(s.length);let o=0;for(let a=0,l=s.length;a<l;a++)r[a]=o,o+=s[a].length+1;this[NC]=r}t=r[r.length-1];let n=0;if(e>=t)n=r.length-1;else{let s=r.length-2,o;for(;n<s;)if(o=n+(s-n>>1),e<r[o])s=o-1;else if(e>=r[o+1])n=o+1;else{n=o;break}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:BC(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,n){if(!this.map)return!1;let s=this.map.consumer(),o=s.originalPositionFor({column:t,line:e});if(!o.source)return!1;let a;typeof r=="number"&&(a=s.originalPositionFor({column:n,line:r}));let l;zC(o.source)?l=Nv(o.source):l=new URL(o.source,this.map.consumer().sourceRoot||Nv(this.map.mapFile));let u={column:o.column,endColumn:a&&a.column,endLine:a&&a.line,line:o.line,url:l.toString()};if(l.protocol==="file:")if(mee)u.file=mee(l);else throw new Error("file: protocol is not available in this PostCSS build");let c=s.sourceContentFor(o.source);return c&&(u.source=c),u}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};vee.exports=vh;vh.default=vh;PC&&PC.registerInput&&PC.registerInput(vh)});var _h=D((SIt,wee)=>{"use strict";var _ee=jl(),yee,xee,Vl=class extends _ee{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let n=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let s of n)s.raws.before=t.raws.before}return n}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new yee(new xee,this,e).stringify()}};Vl.registerLazyResult=i=>{yee=i};Vl.registerProcessor=i=>{xee=i};wee.exports=Vl;Vl.default=Vl;_ee.registerRoot(Vl)});var qC=D((CIt,See)=>{"use strict";var lm={comma(i){return lm.split(i,[","],!0)},space(i){let e=[" ",` 6202`," "];return lm.split(i,e)},split(i,e,t){let r=[],n="",s=!1,o=0,a=!1,l="",u=!1;for(let c of i)u?u=!1:c==="\\"?u=!0:a?c===l&&(a=!1):c==='"'||c==="'"?(a=!0,l=c):c==="("?o+=1:c===")"?o>0&&(o-=1):o===0&&e.includes(c)&&(s=!0),s?(n!==""&&r.push(n.trim()),n="",s=!1):n+=c;return(t||n!=="")&&r.push(n.trim()),r}};See.exports=lm;lm.default=lm});var zv=D((IIt,Iee)=>{"use strict";var Cee=jl(),IMe=qC(),yh=class extends Cee{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return IMe.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}};Iee.exports=yh;yh.default=yh;Cee.registerRule(yh)});var Eee=D((MIt,Mee)=>{"use strict";var MMe=Lv(),EMe=rm(),TMe=sm(),kMe=am(),AMe=FC(),RMe=_h(),DMe=zv();function um(i,e){if(Array.isArray(i))return i.map(n=>um(n));let{inputs:t,...r}=i;if(t){e=[];for(let n of t){let s={...n,__proto__:kMe.prototype};s.map&&(s.map={...s.map,__proto__:AMe.prototype}),e.push(s)}}if(r.nodes&&(r.nodes=i.nodes.map(n=>
vendor: 4,496 bytes, lines 6202-6206
6202um(n,e))),r.source){let{inputId:n,...s}=r.source;r.source=s,n!=null&&(r.source.input=e[n])}if(r.type==="root")return new RMe(r);if(r.type==="decl")return new TMe(r);if(r.type==="rule")return new DMe(r);if(r.type==="comment")return new EMe(r);if(r.type==="atrule")return new MMe(r);throw new Error("Unknown node type: "+i.type)}Mee.exports=um;um.default=um});var jC=D((EIt,Oee)=>{"use strict";var{dirname:Bv,relative:kee,resolve:Aee,sep:Ree}=Fv(),{SourceMapConsumer:Dee,SourceMapGenerator:qv}=Pv(),{pathToFileURL:Tee}=LC(),OMe=am(),LMe=Boolean(Dee&&qv),$Me=Boolean(Bv&&Aee&&kee&&Ree),HC=class{constructor(e,t,r,n){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=` 6203`;this.css.includes(`\r 6204`)&&(t=`\r 6205`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||Bv(e.file),n;this.mapOpts.sourcesContent===!1?(n=new Dee(e.text),n.sourcesContent&&(n.sourcesContent=null)):n=e.consumer(),this.map.applySourceMap(n,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),$Me&&LMe&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=qv.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new qv({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new qv({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",n={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,o;this.stringify(this.root,(a,l,u)=>{if(this.css+=a,l&&u!=="end"&&(n.generated.line=e,n.generated.column=t-1,l.source&&l.source.start?(n.source=this.sourcePath(l),n.original.line=l.source.start.line,n.original.column=l.source.start.column-1,this.map.addMapping(n)):(n.source=r,n.original.line=1,n.original.column=0,this.map.addMapping(n))),o=a.match(/\n/g),o?(e+=o.length,s=a.lastIndexOf(` 6206`),t=a.length-s):t+=a.length,l&&u!=="start"){let c=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==c.last||c.raws.semicolon)&&(l.source&&l.source.end?(n.source=this.sourcePath(l),n.original.line=l.source.end.line,n.original.column=l.source.end.column-1,n.generated.line=e,n.generated.column=t-2,this.map.addMapping(n)):(n.source=r,n.original.line=1,n.original.column=0,n.generated.line=e,n.generated.column=t-1,this.map.addMapping(n)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?Bv(this.opts.to):".";
vendor: 5,675 bytes, lines 6206-6207
6206typeof this.mapOpts.annotation=="string"&&(r=Bv(Aee(r,this.mapOpts.annotation)));let n=kee(r,e);return this.memoizedPaths.set(e,n),n}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new OMe(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let n=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(n,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Tee){let r=Tee(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Ree==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};Oee.exports=HC});var Nee=D((TIt,Pee)=>{"use strict";var VC="'".charCodeAt(0),Lee='"'.charCodeAt(0),Hv="\\".charCodeAt(0),$ee="/".charCodeAt(0),jv=` 6207`.charCodeAt(0),cm=" ".charCodeAt(0),Vv="\f".charCodeAt(0),Uv=" ".charCodeAt(0),Wv="\r".charCodeAt(0),FMe="[".charCodeAt(0),PMe="]".charCodeAt(0),NMe="(".charCodeAt(0),zMe=")".charCodeAt(0),BMe="{".charCodeAt(0),qMe="}".charCodeAt(0),HMe=";".charCodeAt(0),jMe="*".charCodeAt(0),VMe=":".charCodeAt(0),UMe="@".charCodeAt(0),Gv=/[\t\n\f\r "#'()/;[\\\]{}]/g,Kv=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,WMe=/.[\r\n"'(/\\]/,Fee=/[\da-f]/i;Pee.exports=function(e,t={}){let r=e.css.valueOf(),n=t.ignoreErrors,s,o,a,l,u,c,d,f,m,b,y=r.length,x=0,M=[],T=[];function E(){return x}function A(_){throw e.error("Unclosed "+_,x)}function R(){return T.length===0&&x>=y}function $(_){if(T.length)return T.pop();if(x>=y)return;let h=_?_.ignoreUnclosed:!1;switch(s=r.charCodeAt(x),s){case jv:case cm:case Uv:case Wv:case Vv:{l=x;do l+=1,s=r.charCodeAt(l);while(s===cm||s===jv||s===Uv||s===Wv||s===Vv);c=["space",r.slice(x,l)],x=l-1;break}case FMe:case PMe:case BMe:case qMe:case VMe:case HMe:case zMe:{let p=String.fromCharCode(s);c=[p,p,x];break}case NMe:{if(b=M.length?M.pop()[1]:"",m=r.charCodeAt(x+1),b==="url"&&m!==VC&&m!==Lee&&m!==cm&&m!==jv&&m!==Uv&&m!==Vv&&m!==Wv){l=x;do{if(d=!1,l=r.indexOf(")",l+1),l===-1)if(n||h){l=x;break}else A("bracket");for(f=l;r.charCodeAt(f-1)===Hv;)f-=1,d=!d}while(d);c=["brackets",r.slice(x,l+1),x,l],x=l}else l=r.indexOf(")",x+1),o=r.slice(x,l+1),l===-1||WMe.test(o)?c=["(","(",x]:(c=["brackets",o,x,l],x=l);break}case VC:case Lee:{u=s===VC?"'":'"',l=x;do{if(d=!1,l=r.indexOf(u,l+1),l===-1)if(n||h){l=x+1;break}else A("string");for(f=l;r.charCodeAt(f-1)===Hv;)f-=1,d=!d}while(d);c=["string",r.slice(x,l+1),x,l],x=l;break}case UMe:{Gv.lastIndex=x+1,Gv.test(r),Gv.lastIndex===0?l=r.length-1:l=Gv.lastIndex-2,c=["at-word",r.slice(x,l+1),x,l],x=l;break}case Hv:{for(l=x,a=!0;r.charCodeAt(l+1)===Hv;)l+=1,a=!a;if(s=r.charCodeAt(l+1),a&&s!==$ee&&s!==cm&&s!==jv&&s!==Uv&&s!==Wv&&s!==Vv&&(l+=1,Fee.test(r.charAt(l)))){for(;Fee.test(r.charAt(l+1));)l+=1;r.charCodeAt(l+1)===cm&&(l+=1)}c=["word",r.slice(x,l+1),x,l],x=l;break}default:{s===$ee&&r.charCodeAt(x+1)===jMe?(l=r.indexOf("*/",x+2)+1,l===0&&(n||h?l=r.length:A("comment")),c=["comment",r.slice(x,l+1),x,l],x=l):(Kv.lastIndex=x+1,Kv.test(r),Kv.lastIndex===0?l=r.length-1:l=Kv.lastIndex-2,c=["word",r.slice(x,l+1),x,l],M.push(c),x=l);break}}return x++,c}function v(_){T.push(_)}return{back:v,endOfFile:R,nextToken:$,position:E}}});var Hee=D((kIt,qee)=>{"use strict";var GMe=Lv(),KMe=rm(),YMe=sm(),XMe=_h(),zee=zv(),JMe=Nee(),Bee={empty:!0,space:!0};function ZMe(i){for(let e=i.length-1;e>=0;e--){let t=i[e],r=t[3]||t[2];if(r)return r}}var UC=class{constructor(e){this.input=e,this.root=new XMe,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new GMe;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,n,s,o=!1,a=!1,l=[],u=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?u.push(r==="("?")":"]"):r==="{"&&u.length>0?u.push("}"):r===u[u.length-1]&&u.pop(),u.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(l.length>0){for(s=l.length-1,n=l[s];n&&n[0]==="space";)n=l[--s];n&&(t.source.end=this.getPosition(n[3]||n[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),o&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,n;for(let s=t-1;s>=0&&(n=e[s],!(n[0]!=="space"&&(r+=1,r===2)));s--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let t=0,r,n,s;
vendor: 4,722 bytes, line 6207
6207for(let[o,a]of e.entries()){if(n=a,s=n[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!r)this.doubleColon(n);else{if(r[0]==="word"&&r[1]==="progid")continue;return o}r=n}return!1}comment(e){let t=new KMe;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=n[2],t.raws.left=n[1],t.raws.right=n[3]}}createTokenizer(){this.tokenizer=JMe(this.input)}decl(e,t){let r=new YMe;this.init(r,e[0][2]);let n=e[e.length-1];for(n[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(n[3]||n[2]||ZMe(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let u=e[0][0];if(u===":"||u==="space"||u==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){r.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),r.raws.between+=s[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let u=e.length-1;u>=0;u--){if(s=e[u],s[1].toLowerCase()==="!important"){r.important=!0;let c=this.stringFrom(e,u);c=this.spacesFromEnd(e)+c,c!==" !important"&&(r.raws.important=c);break}else if(s[1].toLowerCase()==="important"){let c=e.slice(0),d="";for(let f=u;f>0;f--){let m=c[f][0];if(d.trim().startsWith("!")&&m!=="space")break;d=c.pop()[1]+d}d.trim().startsWith("!")&&(r.important=!0,r.raws.important=d,e=c)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(u=>u[0]!=="space"&&u[0]!=="comment")&&(r.raws.between+=o.map(u=>u[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new zee;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,n=!1,s=null,o=[],a=e[1].startsWith("--"),l=[],u=e;for(;u;){if(r=u[0],l.push(u),r==="("||r==="[")s||(s=u),o.push(r==="("?")":"]");else if(a&&n&&r==="{")s||(s=u),o.push("}");else if(o.length===0)if(r===";")if(n){this.decl(l,a);return}else break;else if(r==="{"){this.rule(l);return}else if(r==="}"){this.tokenizer.back(l.pop()),t=!0;break}else r===":"&&(n=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));u=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(s),t&&n){if(!a)for(;l.length&&(u=l[l.length-1][0],!(u!=="space"&&u!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,n){let s,o,a=r.length,l="",u=!0,c,d;for(let f=0;f<a;f+=1)s=r[f],o=s[0],o==="space"&&f===a-1&&!n?u=!1:o==="comment"?(d=r[f-1]?r[f-1][0]:"empty",c=r[f+1]?r[f+1][0]:"empty",!Bee[d]&&!Bee[c]?l.slice(-1)===","?u=!1:l+=s[1]:u=!1):l+=s[1];if(!u){let f=r.reduce((m,b)=>m+b[1],"");e.raws[t]={raw:f,value:l}}e[t]=l}rule(e){e.pop();let t=new zee;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}
vendor: 4,856 bytes, line 6207
6207spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let n=t;n<e.length;n++)r+=e[n][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word",{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};qee.exports=UC});var Xv=D((AIt,jee)=>{"use strict";var QMe=jl(),e9e=am(),t9e=Hee();function Yv(i,e){let t=new e9e(i,e),r=new t9e(t);try{r.parse()}catch(n){throw n}return r.root}jee.exports=Yv;Yv.default=Yv;QMe.registerParse(Yv)});var WC=D((RIt,Vee)=>{"use strict";var dm=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};Vee.exports=dm;dm.default=dm});var Jv=D((DIt,Uee)=>{"use strict";var i9e=WC(),hm=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new i9e(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};Uee.exports=hm;hm.default=hm});var GC=D((OIt,Gee)=>{"use strict";var Wee={};Gee.exports=function(e){Wee[e]||(Wee[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var XC=D(($It,Jee)=>{"use strict";var r9e=jl(),n9e=$v(),s9e=jC(),o9e=Xv(),Kee=Jv(),a9e=_h(),l9e=Zp(),{isClean:Oo,my:u9e}=Ov(),LIt=GC(),c9e={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d9e={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},h9e={Once:!0,postcssPlugin:!0,prepare:!0},xh=0;function fm(i){return typeof i=="object"&&typeof i.then=="function"}function Xee(i){let e=!1,t=c9e[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,xh,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,xh,t+"Exit"]:[t,t+"Exit"]}function Yee(i){let e;return i.type==="document"?e=["Document",xh,"DocumentExit"]:i.type==="root"?e=["Root",xh,"RootExit"]:e=Xee(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}function KC(i){return i[Oo]=!1,i.nodes&&i.nodes.forEach(e=>KC(e)),i}var YC={},Lo=class{constructor(e,t,r){this.stringified=!1,this.processed=!1;let n;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))n=KC(t);else if(t instanceof Lo||t instanceof Kee)n=KC(t.root),t.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let s=o9e;r.syntax&&(s=r.syntax.parse),r.parser&&(s=r.parser),s.parse&&(s=s.parse);try{n=s(t,r)}catch(o){this.processed=!0,this.error=o}n&&!n[u9e]&&r9e.rebuild(n)}this.result=new Kee(e,n,r),this.helpers={...YC,postcss:YC,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(n){console&&console.error&&console.error(n)}return e}prepareVisitors(){this.listeners={};let e=(t,r,n)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,n])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!d9e[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}
6207. Try to update PostCSS (${this.processor.version} now).`);if(!h9e[r])if(typeof t[r]=="object")for(let n in t[r])n==="*"?e(t,r,t[r][n]):e(t,r+"-"+n.toLowerCase(),t[r][n]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(fm(r))try{await r}catch(n){throw this.handleError(n)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Oo];){e[Oo]=!0;let t=[Yee(e)];for(;t.length>0;){let r=this.visitTick(t);if(fm(r))try{await r}catch(n){let s=t[t.length-1].node;throw this.handleError(n,s)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let n=e.nodes.map(s=>r(s,this.helpers));await Promise.all(n)}else await r(e,this.helpers)}catch(n){throw this.handleError(n)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return fm(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=l9e;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new s9e(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(fm(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Oo];)e[Oo]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,n]of e){this.result.lastPlugin=r;let s;try{s=n(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(fm(s))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:n}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(n.length>0&&t.visitorIndex<n.length){let[o,a]=n[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return a(r.toProxy(),this.helpers)}catch(l){throw this.handleError(l,r)}}if(t.iterator!==0){let o=t.iterator,a;for(;a=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!a[Oo]){a[Oo]=!0,e.push(Yee(a));return}t.iterator=0,delete r.indexes[o]}let s=t.events;for(;t.eventIndex<s.length;){let o=s[t.eventIndex];if(t.eventIndex+=1,o===xh){r.nodes&&r.nodes.length&&(r[Oo]=!0,t.iterator=r.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[Oo]=!0;let t=Xee(e);for(let r of t)if(r===xh)e.nodes&&e.each(n=>{n[Oo]||this.walkSync(n)});else{let n=this.listeners[r];if(n&&this.visitSync(n,e.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}};Lo.registerPostcss=i=>{YC=i};Jee.exports=Lo;Lo.default=Lo;a9e.registerLazyResult(Lo);n9e.registerLazyResult(Lo)});var Qee=D((PIt,Zee)=>{"use strict";var f9e=jC(),p9e=Xv(),m9e=Jv(),g9e=Zp(),FIt=GC(),pm=class{constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let n,s=g9e;this.result=new m9e(this._processor,n,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new f9e(s,n,this._opts,t);
vendor: 3,214 bytes, lines 6207-6209
6207if(a.isMap()){let[l,u]=a.generate();l&&(this.result.css=l),u&&(this.result.map=u)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=p9e;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};Zee.exports=pm;pm.default=pm});var tte=D((NIt,ete)=>{"use strict";var b9e=$v(),v9e=XC(),_9e=Qee(),y9e=_h(),mc=class{constructor(e=[]){this.version="8.4.45",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new _9e(this,e,t):new v9e(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};ete.exports=mc;mc.default=mc;y9e.registerProcessor(mc);b9e.registerProcessor(mc)});var ute=D((zIt,lte)=>{"use strict";var ite=Lv(),rte=rm(),x9e=jl(),w9e=Dv(),nte=sm(),ste=$v(),S9e=Eee(),C9e=am(),I9e=XC(),M9e=qC(),E9e=tm(),T9e=Xv(),JC=tte(),k9e=Jv(),ote=_h(),ate=zv(),A9e=Zp(),R9e=WC();function St(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new JC(i)}St.plugin=function(e,t){let r=!1;function n(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide: 6208https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357: 6209https://www.w3ctech.com/topic/2226`));let a=t(...o);return a.postcssPlugin=e,a.postcssVersion=new JC().version,a}let s;return Object.defineProperty(n,"postcss",{get(){return s||(s=n()),s}}),n.process=function(o,a,l){return St([n(l)]).process(o,a)},n};St.stringify=A9e;St.parse=T9e;St.fromJSON=S9e;St.list=M9e;St.comment=i=>new rte(i);St.atRule=i=>new ite(i);St.decl=i=>new nte(i);St.rule=i=>new ate(i);St.root=i=>new ote(i);St.document=i=>new ste(i);St.CssSyntaxError=w9e;St.Declaration=nte;St.Container=x9e;St.Processor=JC;St.Document=ste;St.Comment=rte;St.Warning=R9e;St.AtRule=ite;St.Result=k9e;St.Input=C9e;St.Rule=ate;St.Root=ote;St.Node=E9e;I9e.registerPostcss(St);lte.exports=St;St.default=St});var pte=D((BIt,fte)=>{var D9e=CQ(),cte=MQ(),{isPlainObject:O9e}=TQ(),dte=DQ(),L9e=LQ(),{parse:$9e}=ute(),F9e=["img","audio","video","picture","svg","object","map","iframe","embed"],P9e=["script","style"];
vendor: 4,107 bytes, lines 6209-6216
6209function mm(i,e){i&&Object.keys(i).forEach(function(t){e(i[t],t)})}function Da(i,e){return{}.hasOwnProperty.call(i,e)}function hte(i,e){let t=[];return mm(i,function(r){e(r)&&t.push(r)}),t}function N9e(i){for(let e in i)if(Da(i,e))return!1;return!0}function z9e(i){return i.map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", ")}fte.exports=gm;var B9e=/^[^\0\t\n\f\r /<=>]+$/;function gm(i,e,t){if(i==null)return"";typeof i=="number"&&(i=i.toString());let r="",n="";function s(P,K){let W=this;this.tag=P,this.attribs=K||{},this.tagPosition=r.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(x.length){let Ce=x[x.length-1];Ce.text+=W.text}},this.updateParentNodeMediaChildren=function(){x.length&&F9e.includes(this.tag)&&x[x.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},gm.defaults,e),e.parser=Object.assign({},q9e,e.parser);let o=function(P){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(P)>-1};P9e.forEach(function(P){o(P)&&!e.allowVulnerableTags&&console.warn(` 6210 6211\u26A0\uFE0F Your \`allowedTags\` option includes, \`${P}\`, which is inherently 6212vulnerable to XSS attacks. Please remove it from \`allowedTags\`. 6213Or, to disable this warning, add the \`allowVulnerableTags\` option 6214and ensure you are accounting for this risk. 6215 6216`)});let a=e.nonTextTags||["script","style","textarea","option"],l,u;e.allowedAttributes&&(l={},u={},mm(e.allowedAttributes,function(P,K){l[K]=[];let W=[];P.forEach(function(Ce){typeof Ce=="string"&&Ce.indexOf("*")>=0?W.push(cte(Ce).replace(/\\\*/g,".*")):l[K].push(Ce)}),W.length&&(u[K]=new RegExp("^("+W.join("|")+")$"))}));let c={},d={},f={};mm(e.allowedClasses,function(P,K){if(l&&(Da(l,K)||(l[K]=[]),l[K].push("class")),c[K]=P,Array.isArray(P)){let W=[];c[K]=[],f[K]=[],P.forEach(function(Ce){typeof Ce=="string"&&Ce.indexOf("*")>=0?W.push(cte(Ce).replace(/\\\*/g,".*")):Ce instanceof RegExp?f[K].push(Ce):c[K].push(Ce)}),W.length&&(d[K]=new RegExp("^("+W.join("|")+")$"))}});let m={},b;mm(e.transformTags,function(P,K){let W;typeof P=="function"?W=P:typeof P=="string"&&(W=gm.simpleTransform(P)),K==="*"?b=W:m[K]=W});let y,x,M,T,E,A,R=!1;v();let $=new D9e.Parser({onopentag:function(P,K){if(e.enforceHtmlBoundary&&P==="html"&&v(),E){A++;return}let W=new s(P,K);x.push(W);let Ce=!1,mi=!!W.text,Ft;if(Da(m,P)&&(Ft=m[P](P,K),W.attribs=K=Ft.attribs,Ft.text!==void 0&&(W.innerText=Ft.text),P!==Ft.tagName&&(W.name=P=Ft.tagName,T[y]=Ft.tagName)),b&&(Ft=b(P,K),W.attribs=K=Ft.attribs,P!==Ft.tagName&&(W.name=P=Ft.tagName,T[y]=Ft.tagName)),(!o(P)||e.disallowedTagsMode==="recursiveEscape"&&!N9e(M)||e.nestingLimit!=null&&y>=e.nestingLimit)&&(Ce=!0,M[y]=!0,e.disallowedTagsMode==="discard"&&a.indexOf(P)!==-1&&(E=!0,A=1),M[y]=!0),y++,Ce){if(e.disallowedTagsMode==="discard")return;n=r,r=""}r+="<"+P,P==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(W.innerText=""),(!l||Da(l,P)||l["*"])&&mm(K,function(xt,at){if(!B9e.test(at)){delete W.attribs[at];return}if(xt===""&&!e.allowedEmptyAttributes.includes(at)&&(e.nonBooleanAttributes.includes(at)||e.nonBooleanAttributes.includes("*"))){delete W.attribs[at];return}let os=!1;if(!l||Da(l,P)&&l[P].indexOf(at)!==-1||l["*"]&&l["*"].indexOf(at)!==-1||Da(u,P)&&u[P].test(at)||u["*"]&&u["*"].test(at))os=!0;else if(l&&l[P]){for(let ft of l[P])if(O9e(ft)&&ft.name&&ft.name===at){os=!0;let Xe="";if(ft.multiple===!0){let mn=xt.split(" ");for(let Cr of mn)ft.values.indexOf(Cr)!==-1&&(Xe===""?Xe=Cr:Xe+=" "+Cr)}else ft.values.indexOf(xt)>=0&&(Xe=xt);xt=Xe}}if(os){if(e.allowedSchemesAppliedToAttributes.indexOf(at)!==-1&&h(P,xt)){delete W.attribs[at];return}if(P==="script"&&at==="src"){let ft=!0;try{let Xe=p(xt);if(e.allowedScriptHostnames||e.allowedScriptDomains){let mn=(e.allowedScriptHostnames||[]).find(function(as){return as===Xe.url.hostname}),Cr=(e.allowedScriptDomains||[]).find(function(as){return Xe.url.hostname===as||Xe.url.hostname.endsWith(`.${as}`)});ft=mn||Cr}}catch{ft=!1}if(!ft){delete W.attribs[at];return}}if(P==="iframe"&&at==="src"){let ft=!0;try{let Xe=p(xt);
6216if(Xe.isRelativeUrl)ft=Da(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){let mn=(e.allowedIframeHostnames||[]).find(function(as){return as===Xe.url.hostname}),Cr=(e.allowedIframeDomains||[]).find(function(as){return Xe.url.hostname===as||Xe.url.hostname.endsWith(`.${as}`)});ft=mn||Cr}}catch{ft=!1}if(!ft){delete W.attribs[at];return}}if(at==="srcset")try{let ft=L9e(xt);if(ft.forEach(function(Xe){h("srcset",Xe.url)&&(Xe.evil=!0)}),ft=hte(ft,function(Xe){return!Xe.evil}),ft.length)xt=z9e(hte(ft,function(Xe){return!Xe.evil})),W.attribs[at]=xt;else{delete W.attribs[at];return}}catch{delete W.attribs[at];return}if(at==="class"){let ft=c[P],Xe=c["*"],mn=d[P],Cr=f[P],as=d["*"],ZC=[mn,as].concat(Cr).filter(function(Cte){return Cte});if(ft&&Xe?xt=F(xt,dte(ft,Xe),ZC):xt=F(xt,ft||Xe,ZC),!xt.length){delete W.attribs[at];return}}if(at==="style"){if(e.parseStyleAttributes)try{let ft=$9e(P+" {"+xt+"}",{map:!1}),Xe=g(ft,e.allowedStyles);if(xt=C(Xe),xt.length===0){delete W.attribs[at];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+P+" {"+xt+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete W.attribs[at];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}r+=" "+at,xt&&xt.length?r+='="'+_(xt,!0)+'"':e.allowedEmptyAttributes.includes(at)&&(r+='=""')}else delete W.attribs[at]}),e.selfClosing.indexOf(P)!==-1?r+=" />":(r+=">",W.innerText&&!mi&&!e.textFilter&&(r+=_(W.innerText),R=!0)),Ce&&(r=n+_(r),n="")},ontext:function(P){if(E)return;let K=x[x.length-1],W;if(K&&(W=K.tag,P=K.innerText!==void 0?K.innerText:P),e.disallowedTagsMode==="discard"&&(W==="script"||W==="style"))r+=P;else{let Ce=_(P,!1);e.textFilter&&!R?r+=e.textFilter(Ce,W):R||(r+=Ce)}if(x.length){let Ce=x[x.length-1];Ce.text+=P}},onclosetag:function(P,K){if(E)if(A--,!A)E=!1;else return;let W=x.pop();if(!W)return;if(W.tag!==P){x.push(W);return}E=e.enforceHtmlBoundary?P==="html":!1,y--;let Ce=M[y];if(Ce){if(delete M[y],e.disallowedTagsMode==="discard"){W.updateParentNodeText();return}n=r,r=""}if(T[y]&&(P=T[y],delete T[y]),e.exclusiveFilter&&e.exclusiveFilter(W)){r=r.substr(0,W.tagPosition);return}if(W.updateParentNodeMediaChildren(),W.updateParentNodeText(),e.selfClosing.indexOf(P)!==-1||K&&!o(P)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){Ce&&(r=n,n="");return}r+="</"+P+">",Ce&&(r=n+_(r),n=""),R=!1}},e.parser);return $.write(i),$.end(),r;function v(){r="",y=0,x=[],M={},T={},E=!1,A=0}function _(P,K){return typeof P!="string"&&(P=P+""),e.parser.decodeEntities&&(P=P.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),K&&(P=P.replace(/"/g,"""))),P=P.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),K&&(P=P.replace(/"/g,""")),P}function h(P,K){for(K=K.replace(/[\x00-\x20]+/g,"");;){let mi=K.indexOf("<!--");if(mi===-1)break;let Ft=K.indexOf("-->",mi+4);if(Ft===-1)break;K=K.substring(0,mi)+K.substring(Ft+3)}let W=K.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!W)return K.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;let Ce=W[1].toLowerCase();return Da(e.allowedSchemesByTag,P)?e.allowedSchemesByTag[P].indexOf(Ce)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(Ce)===-1}function p(P){if(P=P.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),P.startsWith("relative:"))throw new Error("relative: exploit attempt");let K="relative://relative-site";for(let mi=0;mi<100;mi++)K+=`/${mi}`;let W=new URL(P,K);return{isRelativeUrl:W&&W.hostname==="relative-site"&&W.protocol==="relative:",url:W}}function g(P,K){if(!K)return P;let W=P.nodes[0],Ce;return K[W.selector]&&K["*"]?Ce=dte(K[W.selector],K["*"]):Ce=K[W.selector]||K["*"],Ce&&(P.nodes[0].nodes=W.nodes.reduce(I(Ce),[])),P}function C(P){return P.nodes[0].nodes.reduce(function(K,W){return K.push(`${W.prop}:${W.value}${W.important?" !important":""}`),K},[]).join(";")}function I(P){return function(K,W){return Da(P,W.prop)&&P[W.prop].some(function(mi){return mi.test(W.value)})&&K.push(W),K}}function F(P,K,W){return K?(P=P.split(/\s+/),P.filter(function(Ce){return K.indexOf(Ce)!==-1||W.some(function(mi){return mi.test(Ce)})}).join(" ")):P}}var q9e={decodeEntities:!0};gm.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","
6216sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0};gm.simpleTransform=function(i,e,t){return t=t===void 0?!0:t,e=e||{},function(r,n){let s;if(t)for(s in e)n[s]=e[s];else n=e;return{tagName:i,attribs:n}}}});var wh,S,mte,gte=w(()=>{wh=z(pte()),S=class{static reg(e){return new RegExp("^"+e+"$","i")}};S.N={integer:"[+-]?[0-9]+",integer_pos:"[+]?[0-9]+",integer_zero_ff:"([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",number:"[+-]?([0-9]*[.])?[0-9]+(e-?[0-9]*)?",number_pos:"[+]?([0-9]*[.])?[0-9]+(e-?[0-9]*)?",number_zero_hundred:"[+]?(([0-9]|[1-9][0-9])([.][0-9]+)?|100)",number_zero_one:"[+]?(1([.][0]+)?|0?([.][0-9]+)?)"};S.B={angle:`(${S.N.number}(deg|rad|grad|turn)|0)`,frequency:`${S.N.number}(Hz|kHz)`,ident:String.raw`-?([_a-z]|[\xA0-\xFF]|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])([_a-z0-9-]|[\xA0-\xFF]|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])*`,len_or_perc:`(0|${S.N.number}(px|em|rem|ex|in|cm|mm|pt|pc|%))`,length:`(${S.N.number}(px|em|rem|ex|in|cm|mm|pt|pc)|0)`,length_pos:`(${S.N.number_pos}(px|em|rem|ex|in|cm|mm|pt|pc)|0)`,percentage:`${S.N.number}%`,percentage_pos:`${S.N.number_pos}%`,percentage_zero_hundred:`${S.N.number_zero_hundred}%`,string:String.raw`(\"([^\n\r\f\\"]|\\\n|\r\n|\r|\f|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])*\")|(\'([^\n\r\f\\']|\\\n|\r\n|\r|\f|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])*\')`,time:`${S.N.number}(s|ms)`,url:"url\\(.*?\\)",z_index:"[+-]?[0-9]{1,7}"};S.A={absolute_size:"xx-small|x-small|small|medium|large|x-large|xx-large",attachment:"scroll|fixed|local",bg_origin:"border-box|padding-box|content-box",border_style:"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset",box:"border-box|padding-box|content-box",display_inside:"auto|block|table|flex|grid",display_outside:"block-level|inline-level|none|table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption",ending_shape:"circle|ellipse",generic_family:"serif|sans-serif|cursive|fantasy|monospace",generic_voice:"male|female|child",relative_size:"smaller|larger",repeat_style:"repeat-x|repeat-y|((?:repeat|space|round|no-repeat)(?:\\s*(?:repeat|space|round|no-repeat))?)",side_or_corner:"(left|right)?\\s*(top|bottom)?",single_animation_direction:"normal|reverse|alternate|alternate-reverse",single_animation_fill_mode:"none|forwards|backwards|both",single_animation_play_state:"running|paused"};S._COLOR={hex:"\\#(0x)?[0-9a-f]+",name:"aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|transparent|violet|wheat|white|whitesmoke|yellow|yellowgreen",rgb:String.raw`rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)`,rgba:String.raw`rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(${S.N.integer_zero_ff}|${S.N.number_zero_one}|${S.B.percentage_zero_hundred})\s*\)`};S._C={alpha:`${S.N.integer_zero_ff}|${S.N.number_zero_one}|${S.B.percentage_zero_hundred}`,alphavalue:S.N.number_zero_one,bg_position:`((${S.B.len_or_perc}|left|center|right|top|bottom)\\s*){1,4}`,bg_size:`(${S.B.length_pos}|${S.B.percentage}|auto){1,2}|cover|contain`,border_width:`thin|medium|thick|${S.B.length}`,bottom:`${S.B.length}|auto`,color:`${S._COLOR.hex}|${S._COLOR.rgb}|${S._COLOR.rgba}|${S._COLOR.name}`,color_stop_length:`(${S.B.len_or_perc}\\s*){1,2}`,linear_color_hint:`${S.B.len_or_perc}`,family_name:`${S.B.string}|(${S.B.ident}\\s*)+`,image_decl:S.B.url,left:`${S.B.length}|auto`,loose_quotable_words:`(${S.B.ident})+`,margin_width:`${S.B.len_or_perc}|auto`,padding_width:`${S.B.length_pos}|${S.B.percentage_pos}`,page_url:S.B.url,position:`((${S.B.len_or_perc}|left|center|right|top|bottom)\\s*){1,4}`,right:`${S.B.length}|auto`,shadow:"",size:`closest-side|farthest-side|closest-corner|farthest-corner|${S.B.length}|(${S.B.len_or_perc})\\s+(${S.B.len_or_perc})`,top:`${S.B.length}|auto`};S._C1={image_list:`image\\(\\s*(${S.B.url})*\\s*(${S.B.url}|${S._C.color})\\s*\\)`,linear_color_stop:`(${S._C.color})(\\s*${S._C.color_stop_length})?`,shadow:`((${S._C.color})\\s+((${S.B.length})\\s*){2,4}(s+inset)?)|((inset\\s+)?((${S.B.length})\\s*){2,4}\\s*(${S._C.color})?)`};S._C2={color_stop_list:`((${S._C1.linear_color_stop})(\\s*(${S._C.linear_color_hint}
6216))?\\s*,\\s*)+(${S._C1.linear_color_stop})`,shape:`rect\\(\\s*(${S._C.top})\\s*,\\s*(${S._C.right})\\s*,\\s*(${S._C.bottom})\\s*,\\s*(${S._C.left})\\s*\\)`};S._C3={linear_gradient:`linear-gradient\\((((${S.B.angle})|to\\s+(${S.A.side_or_corner}))\\s*,\\s*)?\\s*(${S._C2.color_stop_list})\\s*\\)`,radial_gradient:`radial-gradient\\(((((${S.A.ending_shape})|(${S._C.size}))\\s*)*\\s*(at\\s+${S._C.position})?\\s*,\\s*)?\\s*(${S._C2.color_stop_list})\\s*\\)`};S._C4={image:`${S.B.url}|${S._C3.linear_gradient}|${S._C3.radial_gradient}|${S._C1.image_list}`,bg_image:`(${S.B.url}|${S._C3.linear_gradient}|${S._C3.radial_gradient}|${S._C1.image_list})|none`};S.C={...S._C,...S._C1,...S._C2,...S._C3,...S._C4};S.AP={border_collapse:"collapse|separate",box:"normal|none|contents",box_sizing:"content-box|padding-box|border-box",caption_side:"top|bottom",clear:"none|left|right|both",direction:"ltr|rtl",empty_cells:"show|hide",float:"left|right|none",font_stretch:"normal|wider|narrower|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",font_style:"normal|italic|oblique",font_variant:"normal|small-caps",font_weight:"normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900",list_style_position:"inside|outside",list_style_type:"disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman|lower-greek|lower-latin|upper-latin|armenian|georgian|lower-alpha|upper-alpha|none",overflow:"visible|hidden|scroll|auto",overflow_wrap:"normal|break-word",overflow_x:"visible|hidden|scroll|auto|no-display|no-content",page_break_after:"auto|always|avoid|left|right",page_break_before:"auto|always|avoid|left|right",page_break_inside:"avoid|auto",position:"static|relative|absolute",resize:"none|both|horizontal|vertical",speak:"normal|none|spell-out",speak_header:"once|always",speak_numeral:"digits|continuous",speak_punctuation:"code|none",table_layout:"auto|fixed",text_align:"left|right|center|justify",text_decoration:"none|((underline|overline|line-through|blink)\\s*)+",text_transform:"capitalize|uppercase|lowercase|none",text_wrap:"normal|unrestricted|none|suppress",unicode_bidi:"normal|embed|bidi-override",visibility:"visible|hidden|collapse",white_space:"normal|pre|nowrap|pre-wrap|pre-line",word_break:"normal|keep-all|break-all"};S._CP={background_attachment:`${S.A.attachment}(,\\s*${S.A.attachment})*`,background_color:S.C.color,background_origin:`${S.A.box}(,\\s*${S.A.box})*`,background_repeat:`${S.A.repeat_style}(,\\s*${S.A.repeat_style})*`,border:`((${S.C.border_width}|${S.A.border_style}|${S.C.color})\\s*){1,3}`,border_radius:`((${S.B.len_or_perc})\\s*){1,4}(\\/\\s*((${S.B.len_or_perc})\\s*){1,4})?`,border_spacing:`${S.B.length}\\s*(${S.B.length})?`,border_top_color:S.C.color,border_top_style:S.A.border_style,border_width:`((${S.C.border_width})\\s*){1,4}`,color:S.C.color,cursor:`(${S.B.url}(\\s*,\\s*)?)*(auto|crosshair|default|pointer|move|e-resize|ne-resize|nw-resize|n-resize|se-resize|sw-resize|s-resize|w-resize|text|wait|help|progress|all-scroll|col-resize|hand|no-drop|not-allowed|row-resize|vertical-text)`,display:`inline|block|list-item|run-in|inline-list-item|inline-block|table|inline-table|table-cell|table-caption|flex|inline-flex|grid|inline-grid|${S.A.display_inside}|${S.A.display_outside}|inherit|inline-box|inline-stack`,display_outside:S.A.display_outside,elevation:`${S.B.angle}|below|level|above|higher|lower`,font_family:`(${S.C.family_name}|${S.A.generic_family})(,\\s*(${S.C.family_name}|${S.A.generic_family}))*`,height:`${S.B.length}|${S.B.percentage}|auto`,letter_spacing:`normal|${S.B.length}`,list_style_image:`${S.C.image}|none`,margin_right:S.C.margin_width,max_height:`${S.B.length_pos}|${S.B.percentage_pos}|none|auto`,min_height:`${S.B.length_pos}|${S.B.percentage_pos}|auto`,opacity:S.C.alphavalue,outline_color:`${S.C.color}|invert`,outline_width:S.C.border_width,padding:`((${S.C.padding_width})\\s*){1,4}`,padding_top:S.C.padding_width,pitch_range:S.N.number,right:`${S.B.length}|${S.B.percentage}|auto`,stress:S.N.number,text_indent:`${S.B.length}|${S.B.percentage}`,text_shadow:`none|${S.C.shadow}(,\\s*(${S.C.shadow}))*`,volume:`${S.N.number_pos}|${S.B.percentage_pos}|silent|x-soft|soft|medium|loud|x-loud`,word_wrap:S.AP.overflow_wrap,zoom:`normal|${S.N.number_pos}|${S.B.percentage_pos}`,backface_visibility:S.AP.visibility,background_clip:`${S.A.box}(,\\s*(${S.A.box}))*`,background_position:`${S.C.bg_position}(,\\s*(${S.C.bg_position}))*`,border_bottom_color:S.C.color,border_bottom_style:S.A.border_style,border_color:`((${S.C.color})\\s*){1,4}`,border_left_color:S.C.color,border_right_color:S.C.color,border_style:`((${S.A.border_style})\\s*){1,4}`,border_top_left_radius:`(${S.B.length}|${S.B.percentage})(\\s*(${S.B.length}|${S.B.percentage}))?`,border_top_width:S.C.border_width,box_shadow:`none|${S.C.shadow}(,\\s*(${S.C.shadow}))*`,clip:`${S.C.shape}|auto`,display_inside:S.A.display_inside,font_size:`${S.A.absolute_size}|${S.A.relative_size}|${S.B.length_pos}|${S.B.percentage_pos}`,line_height:`normal|${S.N.number_pos}|${S.B.length_pos}|${S.B.percentage_pos}`,margin_left:S.C.margin_width,max_width:`${S.B.length_pos}|${S.B.percentage_pos}|none|auto`,outline_style:S.A.border_style,padding_bottom:S.C.padding_width,padding_right:S.C.padding_width,perspective:`none|${S.B.length}`,richness:S.N.number,text_overflow:`((clip|ellipsis|${S.B.string})\\s*){1,2}`,top:`${S.B.length}|${S.B.percentage}|auto`,width:`${S.B.length_pos}|${S.B.percentage_pos}|auto`,z_index:`auto|${S.B.z_index}
6216`,background:`(((${S.C.bg_position}\\s*(\\/\\s*${S.C.bg_size})?)|(${S.A.repeat_style})|(${S.A.attachment})|(${S.A.bg_origin})|(${S.C.bg_image})|(${S.C.color}))\\s*)+`,background_size:`${S.C.bg_size}(,\\s*${S.C.bg_size})*`,border_bottom_left_radius:`(${S.B.length}|${S.B.percentage})(\\s*(${S.B.length}|${S.B.percentage}))?`,border_bottom_width:S.C.border_width,border_left_style:S.A.border_style,border_right_style:S.A.border_style,border_top:`((${S.C.border_width}|${S.A.border_style}|${S.C.color})\\s*){1,3}`,bottom:`${S.B.len_or_perc}|auto`,list_style:`((${S.AP.list_style_type}|${S.AP.list_style_position}|${S.C.image}|none})\\s*){1,3}`,margin_top:S.C.margin_width,outline:`((${S.C.color}|invert|${S.A.border_style}|${S.C.border_width})\\s*){1,3}`,overflow_y:S.AP.overflow_x,pitch:`${S.B.frequency}|x-low|low|medium|high|x-high`,vertical_align:`baseline|sub|super|top|text-top|middle|bottom|text-bottom|${S.B.len_or_perc}`,word_spacing:`normal|${S.B.length}`,background_image:`${S.C.bg_image}(,\\s*${S.C.bg_image})*`,border_bottom_right_radius:`(${S.B.length}|${S.B.percentage})(\\s*(${S.B.length}|${S.B.percentage}))?`,border_left_width:S.C.border_width,border_right_width:S.C.border_width,left:`${S.B.len_or_perc}|auto`,margin_bottom:S.C.margin_width,pause_after:`${S.B.time}|${S.B.percentage}`,speech_rate:`${S.N.number}|x-slow|slow|medium|fast|x-fast|faster|slower`,transition_duration:`${S.B.time}(,\\s*${S.B.time})*`,border_bottom:`((${S.C.border_width}|${S.A.border_style}|${S.C.color})\\s*){1,3}`,border_right:`((${S.C.border_width}|${S.A.border_style}|${S.C.color})\\s*){1,3}`,margin:`((${S.C.margin_width})\\s*){1,4}`,padding_left:S.C.padding_width,border_left:`((${S.C.border_width}|${S.A.border_style}|${S.C.color})\\s*){1,3}`,quotes:`(${S.B.string}\\s*${S.B.string})+|none`,border_top_right_radius:`(${S.B.length}|${S.B.percentage})(\\s*(${S.B.length}|${S.B.percentage}))?`,min_width:`${S.B.length_pos}|${S.B.percentage_pos}|auto`};S._CP1={font:`(((((${S.AP.font_style}|${S.AP.font_variant}|${S.AP.font_weight})\\s*){1,3})?\\s*(${S._CP.font_size})\\s*(\\/\\s*(${S._CP.line_height}))?\\s+(${S._CP.font_family}))|caption|icon|menu|message-box|small-caption|status-bar)`};S.CP={...S._CP,...S._CP1};S.BORDER_COLLAPSE=S.reg(S.AP.border_collapse);S.BOX=S.reg(S.AP.box);S.BOX_SIZING=S.reg(S.AP.box_sizing);S.CAPTION_SIDE=S.reg(S.AP.caption_side);S.CLEAR=S.reg(S.AP.clear);S.DIRECTION=S.reg(S.AP.direction);S.EMPTY_CELLS=S.reg(S.AP.empty_cells);S.FLOAT=S.reg(S.AP.float);S.FONT_STRETCH=S.reg(S.AP.font_stretch);S.FONT_STYLE=S.reg(S.AP.font_style);S.FONT_VARIANT=S.reg(S.AP.font_variant);S.FONT_WEIGHT=S.reg(S.AP.font_weight);S.LIST_STYLE_POSITION=S.reg(S.AP.list_style_position);S.LIST_STYLE_TYPE=S.reg(S.AP.list_style_type);S.OVERFLOW=S.reg(S.AP.overflow);S.OVERFLOW_WRAP=S.reg(S.AP.overflow_wrap);S.OVERFLOW_X=S.reg(S.AP.overflow_x);S.PAGE_BREAK_AFTER=S.reg(S.AP.page_break_after);S.PAGE_BREAK_BEFORE=S.reg(S.AP.page_break_before);S.PAGE_BREAK_INSIDE=S.reg(S.AP.page_break_inside);S.POSITION=S.reg(S.AP.position);S.RESIZE=S.reg(S.AP.resize);S.SPEAK=S.reg(S.AP.speak);S.SPEAK_HEADER=S.reg(S.AP.speak_header);S.SPEAK_NUMERAL=S.reg(S.AP.speak_numeral);S.SPEAK_PUNCTUATION=S.reg(S.AP.speak_punctuation);S.TABLE_LAYOUT=S.reg(S.AP.table_layout);S.TEXT_ALIGN=S.reg(S.AP.text_align);S.TEXT_DECORATION=S.reg(S.AP.text_decoration);S.TEXT_TRANSFORM=S.reg(S.AP.text_transform);S.TEXT_WRAP=S.reg(S.AP.text_wrap);S.UNICODE_BIDI=S.reg(S.AP.unicode_bidi);S.VISIBILITY=S.reg(S.AP.visibility);S.WHITE_SPACE=S.reg(S.AP.white_space);S.WORD_BREAK=S.reg(S.AP.word_break);S.BACKGROUND_ATTACHMENT=S.reg(S.CP.background_attachment);S.BACKGROUND_COLOR=S.reg(S.CP.background_color);S.BACKGROUND_ORIGIN=S.reg(S.CP.background_origin);S.BACKGROUND_REPEAT=S.reg(S.CP.background_repeat);S.BORDER=S.reg(S.CP.border);S.BORDER_RADIUS=S.reg(S.CP.border_radius);S.BORDER_SPACING=S.reg(S.CP.border_spacing);S.BORDER_TOP_COLOR=S.reg(S.CP.border_top_color);S.BORDER_TOP_STYLE=S.reg(S.CP.border_top_style);S.BORDER_WIDTH=S.reg(S.CP.border_width);S.COLOR=S.reg(S.CP.color);S.CURSOR=S.reg(S.CP.cursor);S.DISPLAY=S.reg(S.CP.display);S.DISPLAY_OUTSIDE=S.reg(S.CP.display_outside);S.ELEVATION=S.reg(S.CP.elevation);S.FONT_FAMILY=S.reg(S.CP.font_family);S.HEIGHT=S.reg(S.CP.height);S.LETTER_SPACING=S.reg(S.CP.letter_spacing);S.LIST_STYLE_IMAGE=S.reg(S.CP.list_style_image);S.MARGIN_RIGHT=S.reg(S.CP.margin_right);S.MAX_HEIGHT=S.reg(S.CP.max_height);S.MIN_HEIGHT=S.reg(S.CP.min_height);S.OPACITY=S.reg(S.CP.opacity);S.OUTLINE_COLOR=S.reg(S.CP.outline_color);S.OUTLINE_WIDTH=S.reg(S.CP.outline_width);S.PADDING=S.reg(S.CP.padding);S.PADDING_TOP=S.reg(S.CP.padding_top);S.PITCH_RANGE=S.reg(S.CP.pitch_range);S.RIGHT=S.reg(S.CP.right);S.STRESS=S.reg(S.CP.stress);S.TEXT_INDENT=S.reg(S.CP.text_indent);S.TEXT_SHADOW=S.reg(S.CP.text_shadow);S.VOLUME=S.reg(S.CP.volume);S.WORD_WRAP=S.reg(S.CP.word_wrap);S.ZOOM=S.reg(S.CP.zoom);S.BACKFACE_VISIBILITY=S.reg(S.CP.backface_visibility);S.BACKGROUND_CLIP=S.reg(S.CP.background_clip);S.BACKGROUND_POSITION=S.reg(S.CP.background_position);S.BORDER_BOTTOM_COLOR=S.reg(S.CP.border_bottom_color);S.BORDER_BOTTOM_STYLE=S.reg(S.CP.border_bottom_style);S.BORDER_COLOR=S.reg(S.CP.border_color);S.BORDER_LEFT_COLOR=S.reg(S.CP.border_left_color);S.BORDER_RIGHT_COLOR=S.reg(S.CP.border_right_color);S.BORDER_STYLE=S.reg(S.CP.border_style);S.BORDER_TOP_LEFT_RADIUS=S.reg(S.CP.border_top_left_radius);S.BORDER_TOP_WIDTH=S.reg(S.CP.border_top_width);S.BOX_SHADOW=S.reg(S.CP.box_shadow);S.CLIP=S.reg(S.CP.clip);S.DISPLAY_INSIDE=S.reg(S.CP.display_inside);S.FONT_SIZE=S.reg(S.CP.font_size);S.LINE_HEIGHT=S.reg(S.CP.line_height);S.MARGIN_LEFT=S.reg(S.CP.margin_left);S.MAX_WIDTH=S.reg(S.CP.max_width);S.OUTLINE_STYLE=S.reg(S.CP.outline_style);S.PADDING_BOTTOM=S.reg(S.CP.padding_bottom);S.PADDING_RIGHT=S.reg(S.CP.padding_right);S.PERSPECTIVE=S.reg(S.CP.perspective);S.RICHNESS=S.reg(S.CP.richness);S.TEXT_OVERFLOW=S.reg(S.CP.text_overflow);S.TOP=S.reg(S.CP.top);S.WIDTH=S.reg(S.CP.width);S.Z_INDEX=S.reg(S.CP.z_index);S.BACKGROUND=S.reg(S.CP.background);S.BACKGROUND_SIZE=S.reg(S.CP.background_size);S.BORDER_BOTTOM_LEFT_RADIUS=S.reg(S.CP.border_bottom_left_radius);S.BORDER_BOTTOM_WIDTH=S.reg(S.CP.border_bottom_width);S.BORDER_LEFT_STYLE=S.reg(S.CP.border_left_style);S.BORDER_RIGHT_STYLE=S.reg(S.CP.border_right_style);S.BORDER_TOP=S.reg(S.CP.border_top);S.BOTTOM=S.reg(S.CP.bottom);S.LIST_STYLE=S.reg(S.CP.list_style);S.MARGIN_TOP=S.reg(S.CP.margin_top);S.OUTLINE=S.reg(S.CP.outline);S.OVERFLOW_Y=S.reg(S.CP.overflow_y);S.PITCH=S.reg(S.CP.pitch);S.VERTICAL_ALIGN=S.reg(S.CP.vertical_align);S.WORD_SPACING=S.reg(S.CP.word_spacing);S.BACKGROUND_IMAGE=S.reg(S.CP.background_image);S.BORDER_BOTTOM_RIGHT_RADIUS=S.reg(S.CP.border_bottom_right_radius);S.BORDER_LEFT_WIDTH=S.reg(S.CP.border_left_width);S.BORDER_RIGHT_WIDTH=S.reg(S.CP.border_right_width);S.LEFT=S.reg(S.CP.left);S.MARGIN_BOTTOM=S.reg(S.CP.margin_bottom);S.PAUSE_AFTER=S.reg(S.CP.pause_after);S.SPEECH_RATE=S.reg(S.CP.speech_rate);S.TRANSITION_DURATION=S.reg(S.CP.transition_duration);S.BORDER_BOTTOM=S.reg(S.CP.border_bottom);S.BORDER_RIGHT=S.reg(S.CP.border_right);S.MARGIN=S.reg(S.CP.margin);S.PADDING_LEFT=S.reg(S.CP.padding_left);S.BORDER_LEFT=S.reg(S.CP.border_left);S.FONT=S.reg(S.CP.font);S.QUOTES=S.reg(S.CP.quotes);S.BORDER_TOP_RIGHT_RADIUS=S.reg(S.CP.border_top_right_radius);S.MIN_WIDTH=S.reg(S.CP.min_width);mte=class{constructor(){this._autolink=!0,this._allowNamedProperties=!1,this._generateOptions=()=>({allowedTags:["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blockquote","br","button","canvas","caption","center","cite","code","col","colgroup","colspan","command","data","datalist","dd","del","details","dfn","dir","div","dl","dt","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","i","img","input","ins","kbd","label","legend","li","map","mark","menu","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rowspan","
6216s","samp","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"],allowedAttributes:{"*":["class","dir","draggable","hidden",...this._allowNamedProperties?["id"]:[],"inert","itemprop","itemref","itemscope","lang","spellcheck","style","title","translate"],a:["accesskey","coords","href","hreflang",...this._allowNamedProperties?["name"]:[],"rel","shape","tabindex","target","type"],area:["accesskey","alt","coords","href","nohref","shape","tabindex"],audio:["autoplay","controls","loop","mediagroup","muted","preload","src"],bdo:["dir"],blockquote:["cite"],br:["clear"],button:["accesskey","data-commandlinker-args","data-commandlinker-command","disabled",...this._allowNamedProperties?["name"]:[],"tabindex","type","value"],canvas:["height","width"],caption:["align"],col:["align","char","charoff","span","valign","width"],colgroup:["align","char","charoff","span","valign","width"],command:["checked","command","disabled","icon","label","radiogroup","type"],data:["value"],del:["cite","datetime"],details:["open"],dir:["compact"],div:["align"],dl:["compact"],fieldset:["disabled"],font:["color","face","size"],form:["accept","autocomplete","enctype","method",...this._allowNamedProperties?["name"]:[],"novalidate"],h1:["align"],h2:["align"],h3:["align"],h4:["align"],h5:["align"],h6:["align"],hr:["align","noshade","size","width"],iframe:["align","frameborder","height","marginheight","marginwidth","width"],img:["align","alt","border","height","hspace","ismap",...this._allowNamedProperties?["name"]:[],"src","usemap","vspace","width"],input:["accept","accesskey","align","alt","autocomplete","checked","disabled","inputmode","ismap","list","max","maxlength","min","multiple",...this._allowNamedProperties?["name"]:[],"placeholder","readonly","required","size","src","step","tabindex","type","usemap","value"],ins:["cite","datetime"],label:["accesskey","for"],legend:["accesskey","align"],li:["type","value"],map:this._allowNamedProperties?["name"]:[],menu:["compact","label","type"],meter:["high","low","max","min","value"],ol:["compact","reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["for",...this._allowNamedProperties?["name"]:[]],p:["align"],pre:["width"],progress:["max","min","value"],q:["cite"],select:["autocomplete","disabled","multiple",...this._allowNamedProperties?["name"]:[],"required","size","tabindex"],source:["type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],tbody:["align","char","charoff","valign"],td:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],textarea:["accesskey","autocomplete","cols","disabled","inputmode",...this._allowNamedProperties?["name"]:[],"placeholder","readonly","required","rows","tabindex","wrap"],tfoot:["align","char","charoff","valign"],th:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],thead:["align","char","charoff","valign"],tr:["align","bgcolor","char","charoff","valign"],track:["default","kind","label","srclang"],ul:["compact","type"],video:["autoplay","controls","height","loop","mediagroup","muted","poster","preload","src","width"]},allowedStyles:{"*":{"backface-visibility":[S.BACKFACE_VISIBILITY],background:[S.BACKGROUND],"background-attachment":[S.BACKGROUND_ATTACHMENT],"background-clip":[S.BACKGROUND_CLIP],"background-color":[S.BACKGROUND_COLOR],"background-image":[S.BACKGROUND_IMAGE],"background-origin":[S.BACKGROUND_ORIGIN],"background-position":[S.BACKGROUND_POSITION],"background-repeat":[S.BACKGROUND_REPEAT],"background-size":[S.BACKGROUND_SIZE],border:[S.BORDER],"border-bottom":[S.BORDER_BOTTOM],"border-bottom-color":[S.BORDER_BOTTOM_COLOR],"border-bottom-left-radius":[S.BORDER_BOTTOM_LEFT_RADIUS],"border-bottom-right-radius":[S.BORDER_BOTTOM_RIGHT_RADIUS],"border-bottom-style":[S.BORDER_BOTTOM_STYLE],"border-bottom-width":[S.BORDER_BOTTOM_WIDTH],"border-collapse":[S.BORDER_COLLAPSE],"border-color":[S.BORDER_COLOR],"border-left":[S.BORDER_LEFT],"border-left-color":[S.BORDER_LEFT_COLOR],"border-left-style":[S.BORDER_LEFT_STYLE],"border-left-width":[S.BORDER_LEFT_WIDTH],"border-radius":[S.BORDER_RADIUS],"border-right":[S.BORDER_RIGHT],"border-right-color":[S.BORDER_RIGHT_COLOR],"border-right-style":[S.BORDER_RIGHT_STYLE],"border-right-width":[S.BORDER_RIGHT_WIDTH],"border-spacing":[S.BORDER_SPACING],"border-style":[S.BORDER_STYLE],"border-top":[S.BORDER_TOP],"border-top-color":[S.BORDER_TOP_COLOR],"border-top-left-radius":[S.BORDER_TOP_LEFT_RADIUS],"border-top-right-radius":[S.BORDER_TOP_RIGHT_RADIUS],"border-top-style":[S.BORDER_TOP_STYLE],"border-top-width":[S.BORDER_TOP_WIDTH],"border-width":[S.BORDER_WIDTH],bottom:[S.BOTTOM],box:[S.BOX],"box-shadow":[S.BOX_SHADOW],"box-sizing":[S.BOX_SIZING],"caption-side":[S.
6216CAPTION_SIDE],clear:[S.CLEAR],clip:[S.CLIP],color:[S.COLOR],cursor:[S.CURSOR],direction:[S.DIRECTION],display:[S.DISPLAY],"display-inside":[S.DISPLAY_INSIDE],"display-outside":[S.DISPLAY_OUTSIDE],elevation:[S.ELEVATION],"empty-cells":[S.EMPTY_CELLS],float:[S.FLOAT],font:[S.FONT],"font-family":[S.FONT_FAMILY],"font-size":[S.FONT_SIZE],"font-stretch":[S.FONT_STRETCH],"font-style":[S.FONT_STYLE],"font-variant":[S.FONT_VARIANT],"font-weight":[S.FONT_WEIGHT],height:[S.HEIGHT],left:[S.LEFT],"letter-spacing":[S.LETTER_SPACING],"line-height":[S.LINE_HEIGHT],"list-style":[S.LIST_STYLE],"list-style-image":[S.LIST_STYLE_IMAGE],"list-style-position":[S.LIST_STYLE_POSITION],"list-style-type":[S.LIST_STYLE_TYPE],margin:[S.MARGIN],"margin-bottom":[S.MARGIN_BOTTOM],"margin-left":[S.MARGIN_LEFT],"margin-right":[S.MARGIN_RIGHT],"margin-top":[S.MARGIN_TOP],"max-height":[S.MAX_HEIGHT],"max-width":[S.MAX_WIDTH],"min-height":[S.MIN_HEIGHT],"min-width":[S.MIN_WIDTH],opacity:[S.OPACITY],outline:[S.OUTLINE],"outline-color":[S.OUTLINE_COLOR],"outline-style":[S.OUTLINE_STYLE],"outline-width":[S.OUTLINE_WIDTH],overflow:[S.OVERFLOW],"overflow-wrap":[S.OVERFLOW_WRAP],"overflow-x":[S.OVERFLOW_X],"overflow-y":[S.OVERFLOW_Y],padding:[S.PADDING],"padding-bottom":[S.PADDING_BOTTOM],"padding-left":[S.PADDING_LEFT],"padding-right":[S.PADDING_RIGHT],"padding-top":[S.PADDING_TOP],"page-break-after":[S.PAGE_BREAK_AFTER],"page-break-before":[S.PAGE_BREAK_BEFORE],"page-break-inside":[S.PAGE_BREAK_INSIDE],"pause-after":[S.PAUSE_AFTER],perspective:[S.PERSPECTIVE],pitch:[S.PITCH],"pitch-range":[S.PITCH_RANGE],position:[S.POSITION],quotes:[S.QUOTES],resize:[S.RESIZE],richness:[S.RICHNESS],right:[S.RIGHT],speak:[S.SPEAK],"speak-header":[S.SPEAK_HEADER],"speak-numeral":[S.SPEAK_NUMERAL],"speak-punctuation":[S.SPEAK_PUNCTUATION],"speech-rate":[S.SPEECH_RATE],stress:[S.STRESS],"table-layout":[S.TABLE_LAYOUT],"text-align":[S.TEXT_ALIGN],"text-decoration":[S.TEXT_DECORATION],"text-indent":[S.TEXT_INDENT],"text-overflow":[S.TEXT_OVERFLOW],"text-shadow":[S.TEXT_SHADOW],"text-transform":[S.TEXT_TRANSFORM],"text-wrap":[S.TEXT_WRAP],top:[S.TOP],"unicode-bidi":[S.UNICODE_BIDI],"vertical-align":[S.VERTICAL_ALIGN],visibility:[S.VISIBILITY],volume:[S.VOLUME],"white-space":[S.WHITE_SPACE],width:[S.WIDTH],"word-break":[S.WORD_BREAK],"word-spacing":[S.WORD_SPACING],"word-wrap":[S.WORD_WRAP],"z-index":[S.Z_INDEX],zoom:[S.ZOOM]}},transformTags:{a:wh.default.simpleTransform("a",{rel:"nofollow"}),input:wh.default.simpleTransform("input",{disabled:"disabled"})},allowedSchemes:[...wh.default.defaults.allowedSchemes],allowedSchemesByTag:{img:wh.default.defaults.allowedSchemes.concat(["attachment"])},allowedSchemesAppliedToAttributes:["href","cite"]}),this._options=this._generateOptions()}sanitize(e,t){return(0,wh.default)(e,{...this._options,...t||{}})}getAutolink(){return this._autolink}setAllowedSchemes(e){this._options.allowedSchemes=[...e]}setAutolink(e){this._autolink=e}setAllowNamedProperties(e){this._allowNamedProperties=e,this._options=this._generateOptions()}}});var bm,bte=w(()=>{bm=class{constructor(){this._commands=new Array}get ids(){return this._commands.map(e=>e.id)}add(e){if(this._commands.map(t=>t.id).includes(e.id))throw Error(`Command ${e.id} is already defined.`);this._commands.push({isEnabled:()=>!0,rank:bm.DEFAULT_RANK,...e})}getActiveCommandId(e){var t;return((t=this._commands.filter(s=>s.isEnabled(e)).sort((s,o)=>s.rank-o.rank||(s.id<o.id?-1:1))[0])!==null&&t!==void 0?t:{id:null}).id}remove(e){let t=this._commands.findIndex(r=>
6216r.id===e);t>=0&&this._commands.splice(t,1)}};bm.DEFAULT_RANK=500});var vte,_te=w(()=>{Nn();Fn();Qe();(function(i){function e(t){for(let r of t.children())e(r);t.fit()}i.fitAll=e})(vte||(vte={}))});var Oa,GIt,KIt,YIt,XIt,JIt,ZIt,QIt,eMt,yte=w(()=>{Oa=z(Ze()),GIt=new Oa.Token("@jupyterlab/apputils:ICommandPalette",`A service for the application command palette 6217 in the left panel. Use this to add commands to the palette.`),KIt=new Oa.Token("@jupyterlab/apputils:IKernelStatusModel","A service to register kernel session provider to the kernel status indicator."),YIt=new Oa.Token("@jupyterlab/apputils:ISessionContextDialogs","A service for handling the session dialogs."),XIt=new Oa.Token("@jupyterlab/apputils:IThemeManager","A service for the theme manager for the application. This is used primarily in theme extensions to register new themes."),JIt=new Oa.Token("@jupyterlab/apputils:ISanitizer","A service for sanitizing HTML strings."),ZIt=new Oa.Token("@jupyterlab/apputils:ISplashScreen",`A service for the splash screen for the application. 6218 Use this if you want to show the splash screen for your own purposes.`),QIt=new Oa.Token("@jupyterlab/apputils:IWindowResolver",`A service for a window resolver for the 6219 application. JupyterLab workspaces are given a name, which are determined using 6220 the window resolver. Require this if you want to use the name of the current workspace.`),eMt=new Oa.Token("@jupyterlab/apputils:IToolbarWidgetRegistry",`A registry for toolbar widgets. Require this 6221 if you want to build the toolbar dynamically from a data definition (stored in settings for example).`)});var wte,xte,Ste=w(()=>{wte=z(Ze());(function(i){let e="@jupyterlab/statedb:StateDB",t=`${e}:beacon`,r=Math.floor(200+Math.random()*300),n=`${e}:window`,s=null,o=null,a=new wte.PromiseDelegate,l={},u=null,c=!1;function d(){window.addEventListener("storage",y=>{let{key:x,newValue:M}=y;if(M===null)return;if(x===t&&M!==s&&o!==null){f(c?u:o);return}if(c||x!==n)return;let T=M.replace(/\-\d+$/,"");l[T]=null,(!o||o in l)&&m()})}function f(y){if(y===null)return;let{localStorage:x}=window;x.setItem(n,`${y}-${new Date().getTime()}`)}function m(){c=!0,s=null,a.reject(`Window name candidate "${o}" already exists`)}function b(y){if(c)return a.promise;if(o=y,o in l)return m(),a.promise;let{localStorage:x,setTimeout:M}=window;return M(()=>{if(!c){if(!o||o in l)return m();c=!0,s=null,a.resolve(u=o),f(u)}},r),s=`${Math.random()}-${new Date().getTime()}`,x.setItem(t,s),a.promise}i.resolve=b,d()})(xte||(xte={}))});var Zv,H9e=w(()=>{fa();zJ();HJ();jJ();VJ();av();wS();WJ();$S();YJ();QJ();iZ();jS();rZ();gte();bte();DS();_te();yte();AS();Ste();Zv=class extends Tl{};(function(i){i.createInterruptButton=oc.createInterruptButton,i.createKernelNameItem=oc.createKernelNameItem,i.createKernelStatusItem=oc.createKernelStatusItem,i.createRestartButton=oc.createRestartButton,i.createSpacerItem=Tl.createSpacerItem})(Zv||(Zv={}))});export{rS as a,PX as b,PSt as c,A5e as d,Uu as e,iS as f,LX as g,$X as h,DSt as i,T5e as j,FX as k,k5e as l,pb as m,iG as n,sG as o,cG as p,lCe as q,ln as r,Ze as s,X as t,Qe as u,Ii as v,Fn as w,Ge as x,gc as y,qs as z,gt as A,_0 as B,Bn as C,Jh as D,Jt as E,Zh as F,ne as G,Wt as H,iu as I,oi as J,kDe as K,pt as L,Nn as M,to as N,MLe as O,Sr as P,qd as Q,Hd as R,fa as S,jb as T,Ub as U,Wb as V,R5e as W,DCt as X,$p as Y,yS as Z,ov as _,Fp as $,Vp as aa,CQ as ba,MQ as ca,TQ as da,DQ as ea,LQ as fa,ute as ga,mte as ha,H9e as ia}; 6222/*! Bundled license information: 6223 6224react-is/cjs/react-is.production.min.js: 6225 (** 6226 * @license React 6227 * react-is.production.min.js 6228 * 6229 * Copyright (c) Facebook, Inc. and its affiliates. 6230 * 6231 * This source code is licensed under the MIT license found in the 6232 * LICENSE file in the root directory of this source tree. 6233 *) 6234 6235tslib/tslib.es6.js: 6236 (*! ***************************************************************************** 6237 Copyright (c) Microsoft Corporation. 6238 6239 Permission to use, copy, modify, and/or distribute this software for any 6240 purpose with or without fee is hereby granted. 6241 6242 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 6243 REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 6244 AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
6245 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 6246 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 6247 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 6248 PERFORMANCE OF THIS SOFTWARE. 6249 ***************************************************************************** *) 6250 6251tabbable/dist/index.esm.js: 6252 (*! 6253 * tabbable 5.3.3 6254 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 6255 *) 6256 6257is-plain-object/dist/is-plain-object.js: 6258 (*! 6259 * is-plain-object <https://github.com/jonschlinkert/is-plain-object> 6260 * 6261 * Copyright (c) 2014-2017, Jon Schlinkert. 6262 * Released under the MIT License. 6263 *) 6264*/
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.