PageSourceSearch

https://zhubert.com/intro-to-transformers/build/_shared/chunk-C4DFGG5C.js

js zhubert.com collected 2026-09-25 00:42:11 UTC 1,668,181 bytes, 6,363 lines download raw bytes

1import{Q as tE,R as Sie}from"/intro-to-transformers/build/_shared/chunk-FZ2S7OYD.js";import{a as ue,c as eE,d as Ne}from"/intro-to-transformers/build/_shared/chunk-JJXTQVMA.js";import{a as M_,b,c as M,d as ic,f as N,g as Rt}from"/intro-to-transformers/build/_shared/chunk-OZE3FFNP.js";var rE={};ic(rE,{ArrayExt:()=>L,StringExt:()=>gr,chain:()=>Cie,each:()=>Rie,empty:()=>Oi,enumerate:()=>Iie,every:()=>Js,filter:()=>Eie,find:()=>Ui,findIndex:()=>iE,map:()=>Qm,max:()=>uf,min:()=>kie,minmax:()=>Tie,once:()=>$ie,range:()=>Die,reduce:()=>Oie,repeat:()=>Lie,retro:()=>Ko,some:()=>ys,stride:()=>Fie,take:()=>Nie,toArray:()=>Aie,toObject:()=>Mie,topologicSort:()=>Pie,zip:()=>Bie});function*Cie(...i){for(let e of i)yield*e}function*Oi(){}function*Iie(i,e=0){for(let t of i)yield[e++,t]}function*Eie(i,e){let t=0;for(let r of i)e(r,t++)&&(yield r)}function Ui(i,e){let t=0;for(let r of i)if(e(r,t++))return r}function iE(i,e){let t=0;for(let r of i)if(e(r,t++))return t-1;return-1}function kie(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 uf(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 Tie(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 Aie(i){return Array.from(i)}function Mie(i){let e={};for(let[t,r]of i)e[t]=r;return e}function Rie(i,e){let t=0;for(let r of i)if(e(r,t++)===!1)return}function Js(i,e){let t=0;for(let r of i)if(e(r,t++)===!1)return!1;return!0}function ys(i,e){let t=0;for(let r of i)if(e(r,t++))return!0;return!1}function*Qm(i,e){let t=0;for(let r of i)yield e(r,t++)}function*Die(i,e,t){e===void 0?(e=i,i=0,t=1):t===void 0&&(t=1);let r=R_.rangeLength(i,e,t);for(let n=0;n<r;n++)yield i+t*n}function Oie(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*Lie(i,e){for(;0<e--;)yield i}function*$ie(i){yield i}function*Ko(i){if(typeof i.retro=="function")yield*i.retro();else for(let e=i.length-1;e>-1;e--)yield i[e]}function Pie(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*Fie(i,e){let t=0;for(let r of i)t++%e===0&&(yield r)}function*Nie(i,e){if(e<1)return;let t=i[Symbol.iterator](),r;for(;0<e--&&!(r=t.next()).done;)yield r.value}function*Bie(...i){let e=i.map(r=>r[Symbol.iterator]()),t=e.map(r=>r.next());for(;Js(t,r=>!r.done);t=e.map(r=>r.next()))yield t.map(r=>r.value)}var L,R_,gr,Zt=b(()=>{(function(i){function e(I,E,w=0,k=-1){let O=I.length;if(O===0)return-1;w<0?w=Math.max(0,w+O):w=Math.min(w,O-1),k<0?k=Math.max(0,k+O):k=Math.min(k,O-1);let z;k<w?z=k+1+(O-w):z=k-w+1;for(let Y=0;Y<z;++Y){let pe=(w+Y)%O;if(I[pe]===E)return pe}return-1}i.firstIndexOf=e;function t(I,E,w=-1,k=0){let O=I.length;if(O===0)return-1;w<0?w=Math.max(0,w+O):w=Math.min(w,O-1),k<0?k=Math.max(0,k+O):k=Math.min(k,O-1);let z;w<k?z=w+1+(O-k):z=w-k+1;for(let Y=0;Y<z;++Y){let pe=(w-Y+O)%O;if(I[pe]===E)return pe}return-1}i.lastIndexOf=t;function r(I,E,w=0,k=-1){let O=I.length;if(O===0)return-1;w<0?w=Math.max(0,w+O):w=Math.min(w,O-1),k<0?k=Math.max(0,k+O):k=Math.min(k,O-1);let z;k<w?z=k+1+(O-w):z=k-w+1;for(let Y=0;Y<z;++Y){let pe=(w+Y)%O;if(E(I[pe],pe))return pe}return-1}i.findFirstIndex=r;function n(I,E,w=-1,k=0){let O=I.length;if(O===0)return-1;w<0?w=Math.max(0,w+O):w=Math.min(w,O-1),k<0?k=Math.max(0,k+O):k=Math.min(k,O-1);let z;w<k?z=w+1+(O-k):z=w-k+1;for(let Y=0;Y<z;++Y){let pe=(w-Y+O)%O;if(E(I[pe],pe))return pe}return-1}i.findLastIndex=n;function s(I,E,w=0,k=-1){let O=r(I,E,w,k);return O!==-1?I[O]:void 0}i.findFirstValue=s;function o(I,E,w=-1,k=0){let O=n(I,E,w,k);return O!==-1?I[O]:void 0}i.findLastValue=o;function a(I,E,w,k=0,O=-1){let z=I.length;if(z===0)return 0;k<0?k=Math.max(0,k+z):k=Math.min(k,z-1),O<0?O=Math.max(0,O+z):O=Math.min(O,z-1);let Y=k,pe=O-k+1;for(;pe>0;){let U=pe>>1,ne=Y+U;w(I[ne],E)<0?(Y=ne+1,pe-=U+1):pe=U}return Y}i.lowerBound=a;
1function l(I,E,w,k=0,O=-1){let z=I.length;if(z===0)return 0;k<0?k=Math.max(0,k+z):k=Math.min(k,z-1),O<0?O=Math.max(0,O+z):O=Math.min(O,z-1);let Y=k,pe=O-k+1;for(;pe>0;){let U=pe>>1,ne=Y+U;w(I[ne],E)>0?pe=U:(Y=ne+1,pe-=U+1)}return Y}i.upperBound=l;function u(I,E,w){if(I===E)return!0;if(I.length!==E.length)return!1;for(let k=0,O=I.length;k<O;++k)if(w?!w(I[k],E[k]):I[k]!==E[k])return!1;return!0}i.shallowEqual=u;function c(I,E={}){let{start:w,stop:k,step:O}=E;if(O===void 0&&(O=1),O===0)throw new Error("Slice `step` cannot be zero.");let z=I.length;w===void 0?w=O<0?z-1:0:w<0?w=Math.max(w+z,O<0?-1:0):w>=z&&(w=O<0?z-1:z),k===void 0?k=O<0?-1:z:k<0?k=Math.max(k+z,O<0?-1:0):k>=z&&(k=O<0?z-1:z);let Y;O<0&&k>=w||O>0&&w>=k?Y=0:O<0?Y=Math.floor((k-w+1)/O+1):Y=Math.floor((k-w-1)/O+1);let pe=[];for(let U=0;U<Y;++U)pe[U]=I[w+U*O];return pe}i.slice=c;function d(I,E,w){let k=I.length;if(k<=1||(E<0?E=Math.max(0,E+k):E=Math.min(E,k-1),w<0?w=Math.max(0,w+k):w=Math.min(w,k-1),E===w))return;let O=I[E],z=E<w?1:-1;for(let Y=E;Y!==w;Y+=z)I[Y]=I[Y+z];I[w]=O}i.move=d;function h(I,E=0,w=-1){let k=I.length;if(!(k<=1))for(E<0?E=Math.max(0,E+k):E=Math.min(E,k-1),w<0?w=Math.max(0,w+k):w=Math.min(w,k-1);E<w;){let O=I[E],z=I[w];I[E++]=z,I[w--]=O}}i.reverse=h;function f(I,E,w=0,k=-1){let O=I.length;if(O<=1||(w<0?w=Math.max(0,w+O):w=Math.min(w,O-1),k<0?k=Math.max(0,k+O):k=Math.min(k,O-1),w>=k))return;let z=k-w+1;if(E>0?E=E%z:E<0&&(E=(E%z+z)%z),E===0)return;let Y=w+E;h(I,w,Y-1),h(I,Y,k),h(I,w,k)}i.rotate=f;function p(I,E,w=0,k=-1){let O=I.length;if(O===0)return;w<0?w=Math.max(0,w+O):w=Math.min(w,O-1),k<0?k=Math.max(0,k+O):k=Math.min(k,O-1);let z;k<w?z=k+1+(O-w):z=k-w+1;for(let Y=0;Y<z;++Y)I[(w+Y)%O]=E}i.fill=p;function g(I,E,w){let k=I.length;E<0?E=Math.max(0,E+k):E=Math.min(E,k);for(let O=k;O>E;--O)I[O]=I[O-1];I[E]=w}i.insert=g;function v(I,E){let w=I.length;if(E<0&&(E+=w),E<0||E>=w)return;let k=I[E];for(let O=E+1;O<w;++O)I[O-1]=I[O];return I.length=w-1,k}i.removeAt=v;function _(I,E,w=0,k=-1){let O=e(I,E,w,k);return O!==-1&&v(I,O),O}i.removeFirstOf=_;
1function x(I,E,w=-1,k=0){let O=t(I,E,w,k);return O!==-1&&v(I,O),O}i.removeLastOf=x;function y(I,E,w=0,k=-1){let O=I.length;if(O===0)return 0;w<0?w=Math.max(0,w+O):w=Math.min(w,O-1),k<0?k=Math.max(0,k+O):k=Math.min(k,O-1);let z=0;for(let Y=0;Y<O;++Y)w<=k&&Y>=w&&Y<=k&&I[Y]===E||k<w&&(Y<=k||Y>=w)&&I[Y]===E?z++:z>0&&(I[Y-z]=I[Y]);return z>0&&(I.length=O-z),z}i.removeAllOf=y;function C(I,E,w=0,k=-1){let O,z=r(I,E,w,k);return z!==-1&&(O=v(I,z)),{index:z,value:O}}i.removeFirstWhere=C;function S(I,E,w=-1,k=0){let O,z=n(I,E,w,k);return z!==-1&&(O=v(I,z)),{index:z,value:O}}i.removeLastWhere=S;function R(I,E,w=0,k=-1){let O=I.length;if(O===0)return 0;w<0?w=Math.max(0,w+O):w=Math.min(w,O-1),k<0?k=Math.max(0,k+O):k=Math.min(k,O-1);let z=0;for(let Y=0;Y<O;++Y)w<=k&&Y>=w&&Y<=k&&E(I[Y],Y)||k<w&&(Y<=k||Y>=w)&&E(I[Y],Y)?z++:z>0&&(I[Y-z]=I[Y]);return z>0&&(I.length=O-z),z}i.removeAllWhere=R})(L||(L={}));(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})(R_||(R_={}));(function(i){function e(o,a,l=0){let u=new Array(a.length);for(let c=0,d=l,h=a.length;c<h;++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,h=u.length;d<h;++d){let f=u[d]-l;c+=f*f}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 h=0,f=u.length;h<f;++h){let p=u[h];c+=p-d-1,d=p}return{score:c,indices:u}}i.matchSumOfDeltas=r;function n(o,a,l){let u=[],c=0,d=0,h=a.length;for(;c<h;){let f=a[c],p=a[c];for(;++c<h&&a[c]===p+1;)p++;d<f&&u.push(o.slice(d,f)),f<p+1&&u.push(l(o.slice(f,p+1))),d=p+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})(gr||(gr={}))});var Ge=M((e0,nE)=>{(function(i,e){typeof e0=="object"&&typeof nE<"u"?e(e0,(Zt(),Rt(rE))):typeof define=="function"&&define.amd?define(["exports","@lumino/algorithm"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i.lumino_coreutils={},i.lumino_algorithm))})(e0,function(i,e){"use strict";i.JSONExt=void 0,function(u){u.emptyObject=Object.freeze({}),u.emptyArray=Object.freeze([]);function c(y){return y===null||typeof y=="boolean"||typeof y=="number"||typeof y=="string"}u.isPrimitive=c;function d(y){return Array.isArray(y)}u.isArray=d;function h(y){return!c(y)&&!d(y)}u.isObject=h;function f(y,C){if(y===C)return!0;if(c(y)||c(C))return!1;let S=d(y),R=d(C);return S!==R?!1:S&&R?g(y,C):v(y,C)}u.deepEqual=f;function p(y){return c(y)?y:d(y)?_(y):x(y)}u.deepCopy=p;function g(y,C){if(y===C)return!0;if(y.length!==C.length)return!1;for(let S=0,R=y.length;S<R;++S)if(!f(y[S],C[S]))return!1;return!0}function v(y,C){if(y===C)return!0;for(let S in y)if(y[S]!==void 0&&!(S in C))return!1;for(let S in C)if(C[S]!==void 0&&!(S in y))return!1;for(let S in y){let R=y[S],I=C[S];if(!(R===void 0&&I===void 0)&&(R===void 0||I===void 0||!f(R,I)))return!1}return!0}function _(y){let C=new Array(y.length);for(let S=0,R=y.length;S<R;++S)C[S]=p(y[S]);return C}function x(y){let C={};for(let S in y){let R=y[S];R!==void 0&&(C[S]=p(R))}return C}}(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,h;
1return(h=(d=this._plugins.get(c))===null||d===void 0?void 0:d.description)!==null&&h!==void 0?h:""}hasPlugin(c){return this._plugins.has(c)}isPluginActivated(c){var d,h;return(h=(d=this._plugins.get(c))===null||d===void 0?void 0:d.activated)!==null&&h!==void 0?h:!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.`);if(!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 h=this._plugins.get(c);if(h){if(h.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 h=d.requires.map(p=>this.resolveRequiredService(p)),f=d.optional.map(p=>this.resolveOptionalService(p));return d.promise=Promise.all([...h,...f]).then(p=>d.activate.apply(void 0,[this.application,...p])).then(p=>{d.service=p,d.activated=!0,d.promise=null}).catch(p=>{throw d.promise=null,p}),d.promise}async activatePlugins(c,d={}){switch(c){case"defer":{let h=this.deferredPlugins.filter(f=>this._plugins.get(f).autoStart).map(f=>this.activatePlugin(f));await Promise.all(h);break}case"startUp":{let f=n.collectStartupPlugins(this._plugins,d).map(async p=>{try{return await this.activatePlugin(p)}catch(g){console.error(`Plugin '${p}' failed to activate.`,g)}});await Promise.all(f);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 h=n.findDependents(c,this._plugins,this._services),f=h.map(p=>this._plugins.get(p));for(let p of f)if(!p.deactivate)throw new TypeError(`Plugin ${p.id}#deactivate() method missing (depends on ${c})`);for(let p of f){let g=[...p.requires,...p.optional].map(v=>{let _=this._services.get(v);return _?this._plugins.get(_).service:null});await p.deactivate(this.application,...g),p.service=null,p.activated=!1}return h.pop(),h}async resolveRequiredService(c){let d=this._services.get(c);if(!d)throw new TypeError(`No provider for: ${c.name}.`);let h=this._plugins.get(d);return h.activated||await this.activatePlugin(d),h.service}async resolveOptionalService(c){let d=this._services.get(c);if(!d)return null;let h=this._plugins.get(d);if(!h.activated)try{await this.activatePlugin(d)}catch(f){return console.error(f),null}return h.service}}var n;(function(u){class c{constructor(v){var _,x,y,C;this._activated=!1,this._promise=null,this._service=null,this.id=v.id,this.description=(_=v.description)!==null&&_!==void 0?_:"",this.activate=v.activate,this.deactivate=(x=v.deactivate)!==null&&x!==void 0?x:null,this.provides=(y=v.provides)!==null&&y!==void 0?y:null,this.autoStart=(C=v.autoStart)!==null&&C!==void 0?C:!1,this.requires=v.requires?v.requires.slice():[],this.optional=v.optional?v.optional.slice():[]}get activated(){return this._activated}set activated(v){this._activated=v}get service(){return this._service}set service(v){this._service=v}get promise(){return this._promise}set promise(v){this._promise=v}}function d(g){return new c(g)}u.createPluginData=d;function h(g,v,_){let x=[...g.requires,...g.optional],y=S=>{if(S===g.provides)return!0;let R=_.get(S);if(!R)return!1;let I=v.get(R),E=[...I.requires,...I.optional];return E.length===0?!1:(C.push(R),E.some(y)?!0:(C.pop(),!1))};if(!g.provides||x.length===0)return;let C=[g.id];if(x.some(y))throw new ReferenceError(`Cycle detected: ${C.join(" -> ")}.`)}u.ensureNoCycle=h;function f(g,v,_){let x=new Array,y=E=>{let w=v.get(E),k=[...w.requires,...w.optional];x.push(...k.reduce((O,z)=>{let Y=_.get(z);return Y&&O.push([E,Y]),O},[]))};for(let E of v.keys())y(E);let C=x.filter(E=>E[1]===g),S=0;for(;C.length>S;){let E=C.length,w=new Set(C.map(k=>k[0]));for(let k of w)x.filter(O=>
1O[1]===k).forEach(O=>{C.includes(O)||C.push(O)});S=E}let R=e.topologicSort(C),I=R.findIndex(E=>E===g);return I===-1?[g]:R.slice(0,I+1)}u.findDependents=f;function p(g,v){let _=new Set;for(let x of g.keys())g.get(x).autoStart===!0&&_.add(x);if(v.startPlugins)for(let x of v.startPlugins)_.add(x);if(v.ignorePlugins)for(let x of v.ignorePlugins)_.delete(x);return Array.from(_)}u.collectStartupPlugins=p})(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,h=u.length;d<h;++d)d%4===0&&(c=Math.random()*4294967295>>>0),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(h){return c.getRandomValues(h)}:a})()}(i.Random||(i.Random={}));function l(u){let c=new Uint8Array(16),d=new Array(256);for(let h=0;h<16;++h)d[h]="0"+h.toString(16);for(let h=16;h<256;++h)d[h]=h.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})});var sE=M(t0=>{"use strict";Object.defineProperty(t0,"__esModule",{value:!0});t0.DataConnector=void 0;var D_=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.")}};t0.DataConnector=D_});var aE=M(oE=>{"use strict";Object.defineProperty(oE,"__esModule",{value:!0})});var lE={};ic(lE,{AttachedProperty:()=>Ye});var Ye,rc,md=b(()=>{Ye=class{constructor(e){this._pid=rc.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=rc.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=rc.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=rc.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){rc.ownerData.delete(t)}i.clearData=e})(Ye||(Ye={}));(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})(rc||(rc={}))});var br={};ic(br,{Signal:()=>G,Stream:()=>O_});var i0,G,O_,En,tt=b(()=>{Zt();i0=N(Ge()),G=class{constructor(e){this.sender=e}connect(e,t){return En.connect(this,e,t)}disconnect(e,t){return En.disconnect(this,e,t)}emit(e){En.emit(this,e)}};(function(i){function e(l,u){En.disconnectBetween(l,u)}i.disconnectBetween=e;function t(l){En.disconnectSender(l)}i.disconnectSender=t;function r(l){En.disconnectReceiver(l)}i.disconnectReceiver=r;function n(l){En.disconnectAll(l)}i.disconnectAll=n;function s(l){En.disconnectAll(l)}i.clearData=s;function o(){return En.exceptionHandler}i.getExceptionHandler=o;function a(l){let u=En.exceptionHandler;return En.exceptionHandler=l,u}i.setExceptionHandler=a})(G||(G={}));O_=class extends G{constructor(){super(...arguments),this._pending=new i0.PromiseDelegate}async*[Symbol.asyncIterator](){let e=this._pending;
1for(;;)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 i0.PromiseDelegate;t.resolve({args:e,next:r}),super.emit(e)}stop(){this._pending.promise.catch(()=>{}),this._pending.reject("stop"),this._pending=new i0.PromiseDelegate}};(function(i){i.exceptionHandler=x=>{console.error(x)};function e(x,y,C){C=C||void 0;let S=l.get(x.sender);if(S||(S=[],l.set(x.sender,S)),h(S,x,y,C))return!1;let R=C||y,I=u.get(R);I||(I=[],u.set(R,I));let E={signal:x,slot:y,thisArg:C};return S.push(E),I.push(E),!0}i.connect=e;function t(x,y,C){C=C||void 0;let S=l.get(x.sender);if(!S||S.length===0)return!1;let R=h(S,x,y,C);if(!R)return!1;let I=C||y,E=u.get(I);return R.signal=null,p(S),p(E),!0}i.disconnect=t;function r(x,y){let C=l.get(x);if(!C||C.length===0)return;let S=u.get(y);if(!(!S||S.length===0)){for(let R of S)R.signal&&R.signal.sender===x&&(R.signal=null);p(C),p(S)}}i.disconnectBetween=r;function n(x){let y=l.get(x);if(!(!y||y.length===0)){for(let C of y){if(!C.signal)continue;let S=C.thisArg||C.slot;C.signal=null,p(u.get(S))}p(y)}}i.disconnectSender=n;function s(x){let y=u.get(x);if(!(!y||y.length===0)){for(let C of y){if(!C.signal)continue;let S=C.signal.sender;C.signal=null,p(l.get(S))}p(y)}}i.disconnectReceiver=s;function o(x){n(x),s(x)}i.disconnectAll=o;function a(x,y){let C=l.get(x.sender);if(!(!C||C.length===0))for(let S=0,R=C.length;S<R;++S){let I=C[S];I.signal===x&&f(I,y)}}i.emit=a;let l=new WeakMap,u=new WeakMap,c=new Set,d=(()=>typeof requestAnimationFrame=="function"?requestAnimationFrame:setImmediate)();function h(x,y,C,S){return Ui(x,R=>R.signal===y&&R.slot===C&&R.thisArg===S)}function f(x,y){let{signal:C,slot:S,thisArg:R}=x;try{S.call(R,C.sender,y)}catch(I){i.exceptionHandler(I)}}function p(x){c.size===0&&d(g),c.add(x)}function g(){c.forEach(v),c.clear()}function v(x){L.removeAllWhere(x,_)}function _(x){return x.signal===null}})(En||(En={}))});var cE=M(n0=>{"use strict";Object.defineProperty(n0,"__esModule",{value:!0});n0.RestorablePool=void 0;var zie=Ge(),uE=(md(),Rt(lE)),r0=(tt(),Rt(br)),L_=class{constructor(e){this._added=new r0.Signal(this),this._current=null,this._currentChanged=new r0.Signal(this),this._hasRestored=!1,this._isDisposed=!1,this._objects=new Set,this._restore=null,this._restored=new zie.PromiseDelegate,this._updated=new r0.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),!Zs.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);Zs.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(),r0.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 Zs.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 h=l.values[d],f=h&&h.data;return f===void 0?r.remove(c):n.execute(t,f).catch(()=>r.remove(c))}));return this._restored.resolve(),u}async save(e){var t,r;let n=Zs.injectedProperty.get(e);if(!this._restore||!this.has(e)||n)return;let{connector:s}=this._restore,o=this._restore.name(e),a=Zs.nameProperty.get(e),l=o?`${this.namespace}:${o}`:"";if(a&&a!==l&&await s.remove(a),Zs.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)),Zs.injectedProperty.get(e)||!this._restore)return;let{connector:t}=this._restore,r=Zs.nameProperty.get(e);r&&t.remove(r)}};n0.RestorablePool=L_;var Zs;(function(i){i.injectedProperty=new uE.AttachedProperty({name:"injected",create:()=>!1}),i.nameProperty=new uE.AttachedProperty({name:"name",create:()=>""})})(Zs||(Zs={}))});var dE=M(cf=>{"use strict";
1Object.defineProperty(cf,"__esModule",{value:!0});cf.StateDB=void 0;var qie=(tt(),Rt(br)),nc=class{constructor(e={}){this._changed=new qie.Signal(this);let{connector:t,transform:r}=e;this._connector=t||new nc.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)}async _save(e,t){return this._connector.save(e,JSON.stringify({v:t}))}};cf.StateDB=nc;(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})(nc||(cf.StateDB=nc={}))});var hE=M(s0=>{"use strict";Object.defineProperty(s0,"__esModule",{value:!0});s0.IStateDB=void 0;var Hie=Ge();s0.IStateDB=new Hie.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 o0=M(xs=>{"use strict";var jie=xs&&xs.__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]}),df=xs&&xs.__exportStar||function(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&jie(e,i,t)};Object.defineProperty(xs,"__esModule",{value:!0});df(sE(),xs);df(aE(),xs);df(cE(),xs);df(dE(),xs);df(hE(),xs)});var pE=M(a0=>{"use strict";Object.defineProperty(a0,"__esModule",{value:!0});a0.ActivityMonitor=void 0;var fE=(tt(),Rt(br)),$_=class{constructor(e){this._timer=-1,this._timeout=-1,this._isDisposed=!1,this._activityStopped=new fE.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,fE.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)}};a0.ActivityMonitor=$_});var gE=M(mE=>{"use strict";Object.defineProperty(mE,"__esModule",{value:!0})});var bE=M(l0=>{"use strict";Object.defineProperty(l0,"__esModule",{value:!0});l0.LruCache=void 0;var Vie=128,P_=class{constructor(e={}){this._map=new Map,this._maxSize=e?.maxSize||Vie}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)}};l0.LruCache=P_});var _E=M(u0=>{"use strict";Object.defineProperty(u0,"__esModule",{value:!0});u0.MarkdownCodeBlocks=void 0;var vE;(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,h=l!=null;if(!(!d&&!h))if(h)l&&(d?(l.endLine=u-1,a.push(l),l=null):l.code+=c+`
5`);else{l=new t(u);let f=c.indexOf(i.CODE_BLOCK_MARKER),p=c.lastIndexOf(i.CODE_BLOCK_MARKER);f!==p&&(l.code=c.substring(f+i.CODE_BLOCK_MARKER.length,p),l.endLine=u,a.push(l),l=null)}}return a}i.findMarkdownCodeBlocks=n})(vE||(u0.MarkdownCodeBlocks=vE={}))});var SE=M((mEe,wE)=>{"use strict";function Uie(i,e){var t=i;
5e.slice(0,-1).forEach(function(n){t=t[n]||{}});var r=e[e.length-1];return r in t}function yE(i){return typeof i=="number"||/^0x[0-9a-f]+$/i.test(i)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(i)}function xE(i,e){return e==="constructor"&&typeof i[e]=="function"||e==="__proto__"}wE.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(Boolean).forEach(function(C){t.bools[C]=!0});var r={};function n(C){return r[C].some(function(S){return t.bools[S]})}Object.keys(e.alias||{}).forEach(function(C){r[C]=[].concat(e.alias[C]),r[C].forEach(function(S){r[S]=[C].concat(r[C].filter(function(R){return S!==R}))})}),[].concat(e.string).filter(Boolean).forEach(function(C){t.strings[C]=!0,r[C]&&[].concat(r[C]).forEach(function(S){t.strings[S]=!0})});var s=e.default||{},o={_:[]};function a(C,S){return t.allBools&&/^--[^=]+$/.test(S)||t.strings[C]||t.bools[C]||r[C]}function l(C,S,R){for(var I=C,E=0;E<S.length-1;E++){var w=S[E];if(xE(I,w))return;I[w]===void 0&&(I[w]={}),(I[w]===Object.prototype||I[w]===Number.prototype||I[w]===String.prototype)&&(I[w]={}),I[w]===Array.prototype&&(I[w]=[]),I=I[w]}var k=S[S.length-1];xE(I,k)||((I===Object.prototype||I===Number.prototype||I===String.prototype)&&(I={}),I===Array.prototype&&(I=[]),I[k]===void 0||t.bools[k]||typeof I[k]=="boolean"?I[k]=R:Array.isArray(I[k])?I[k].push(R):I[k]=[I[k],R])}function u(C,S,R){if(!(R&&t.unknownFn&&!a(C,R)&&t.unknownFn(R)===!1)){var I=!t.strings[C]&&yE(S)?Number(S):S;l(o,C.split("."),I),(r[C]||[]).forEach(function(E){l(o,E.split("."),I)})}}Object.keys(t.bools).forEach(function(C){u(C,s[C]===void 0?!1:s[C])});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 h=i[d],f,p;if(/^--.+=/.test(h)){var g=h.match(/^--([^=]+)=([\s\S]*)$/);f=g[1];var v=g[2];t.bools[f]&&(v=v!=="false"),u(f,v,h)}else if(/^--no-.+/.test(h))f=h.match(/^--no-(.+)/)[1],u(f,!1,h);else if(/^--.+/.test(h))f=h.match(/^--(.+)/)[1],p=i[d+1],p!==void 0&&!/^(-|--)[^-]/.test(p)&&!t.bools[f]&&!t.allBools&&(!r[f]||!n(f))?(u(f,p,h),d+=1):/^(true|false)$/.test(p)?(u(f,p==="true",h),d+=1):u(f,t.strings[f]?"":!0,h);else if(/^-[^-]+/.test(h)){for(var _=h.slice(1,-1).split(""),x=!1,y=0;y<_.length;y++){if(p=h.slice(y+2),p==="-"){u(_[y],p,h);continue}if(/[A-Za-z]/.test(_[y])&&p[0]==="="){u(_[y],p.slice(1),h),x=!0;break}if(/[A-Za-z]/.test(_[y])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(p)){u(_[y],p,h),x=!0;break}if(_[y+1]&&_[y+1].match(/\W/)){u(_[y],h.slice(y+2),h),x=!0;break}else u(_[y],t.strings[_[y]]?"":!0,h)}f=h.slice(-1)[0],!x&&f!=="-"&&(i[d+1]&&!/^(-|--)[^-]/.test(i[d+1])&&!t.bools[f]&&(!r[f]||!n(f))?(u(f,i[d+1],h),d+=1):i[d+1]&&/^(true|false)$/.test(i[d+1])?(u(f,i[d+1]==="true",h),d+=1):u(f,t.strings[f]?"":!0,h))}else if((!t.unknownFn||t.unknownFn(h)!==!1)&&o._.push(t.strings._||!yE(h)?h:Number(h)),e.stopEarly){o._.push.apply(o._,i.slice(d+1));break}}return Object.keys(s).forEach(function(C){Uie(o,C.split("."))||(l(o,C.split("."),s[C]),(r[C]||[]).forEach(function(S){l(o,S.split("."),s[C])}))}),e["--"]?o["--"]=c.slice():c.forEach(function(C){o._.push(C)}),o}});var IE=M((gEe,CE)=>{"use strict";CE.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 TE=M(F_=>{"use strict";var Wie=Object.prototype.hasOwnProperty,Gie;function EE(i){try{return decodeURIComponent(i.replace(/\+/g," "))}catch{return null}}function kE(i){try{return encodeURIComponent(i)}catch{return null}}function Kie(i){for(var e=/([^=?#&]+)=?([^&]*)/g,t={},r;r=e.exec(i);){var n=EE(r[1]),s=EE(r[2]);n===null||s===null||n in t||(t[n]=s)}return t}function Yie(i,e){e=e||"";var t=[],r,n;typeof e!="string"&&(e="?");for(n in i)if(Wie.call(i,n)){if(r=i[n],!r&&(r===null||r===Gie||isNaN(r))&&(r=""),n=kE(n),r=kE(r),n===null||r===null)continue;t.push(n+"="+r)}return t.length?e+t.join("&"):""}F_.stringify=Yie;F_.parse=Kie});var PE=M((vEe,$E)=>{"use strict";var ME=IE(),c0=TE(),Xie=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,RE=/[\n\r\t]/g,Jie=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,DE=/:\d+$/,Zie=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,Qie=
5/^[a-zA-Z]:/;function B_(i){return(i||"").toString().replace(Xie,"")}var N_=[["#","hash"],["?","query"],function(e,t){return Qs(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]],AE={hash:1,query:1};function OE(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 eo(unescape(i.pathname),{});else if(n==="string"){r=new eo(i,{});for(s in AE)delete r[s]}else if(n==="object"){for(s in i)s in AE||(r[s]=i[s]);r.slashes===void 0&&(r.slashes=Jie.test(i.href))}return r}function Qs(i){return i==="file:"||i==="ftp:"||i==="http:"||i==="https:"||i==="ws:"||i==="wss:"}function LE(i,e){i=B_(i),i=i.replace(RE,""),e=e||{};var t=Zie.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)):Qs(r)?a=t[4]:r?n&&(a=a.slice(2)):o>=2&&Qs(e.protocol)&&(a=t[4]),{protocol:r,slashes:n||Qs(r),slashesCount:o,rest:a}}function ere(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 eo(i,e,t){if(i=B_(i),i=i.replace(RE,""),!(this instanceof eo))return new eo(i,e,t);var r,n,s,o,a,l,u=N_.slice(),c=typeof e,d=this,h=0;for(c!=="object"&&c!=="string"&&(t=e,e=null),t&&typeof t!="function"&&(t=c0.parse),e=OE(e),n=LE(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||Qie.test(i))||!n.slashes&&(n.protocol||n.slashesCount<2||!Qs(d.protocol)))&&(u[3]=[/(.*)/,"pathname"]);h<u.length;h++){if(o=u[h],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())}t&&(d.query=t(d.query)),r&&e.slashes&&d.pathname.charAt(0)!=="/"&&(d.pathname!==""||e.pathname!=="")&&(d.pathname=ere(d.pathname,e.pathname)),d.pathname.charAt(0)!=="/"&&Qs(d.protocol)&&(d.pathname="/"+d.pathname),ME(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:"&&Qs(d.protocol)&&d.host?d.protocol+"//"+d.host:"null",d.href=d.toString()}function tre(i,e,t){var r=this;switch(i){case"query":typeof e=="string"&&e.length&&(e=(t||c0.parse)(e)),r[i]=e;break;case"port":r[i]=e,ME(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,DE.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<N_.length;o++){var a=N_[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:"&&Qs(r.protocol)&&r.host?r.protocol+"//"+r.host:"null",r.href=r.toString(),r}function ire(i){(!i||typeof i!="function")&&(i=c0.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||Qs(t.protocol)?"//":"");return t.username?(s+=t.username,t.password&&(s+=":"+t.password),s+="@"):t.password?(s+=":"+t.password,s+="@"):t.protocol!=="file:"&&Qs(t.protocol)&&!r&&t.pathname!=="/"&&(s+="@"),(r[r.length-1]===":"||DE.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}eo.prototype={set:tre,toString:ire};eo.extractProtocol=LE;eo.location=OE;eo.trimLeft=B_;eo.qs=c0;$E.exports=eo});var z_=M(gd=>{"use strict";var rre=gd&&gd.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(gd,"__esModule",{value:!0});gd.URLExt=void 0;var nre=M_("path"),d0=rre(PE()),FE;(function(i){function e(u){if(typeof document<"u"&&document){let c=document.createElement("a");return c.href=u,c}return(0,d0.default)(u)}i.parse=e;function t(u){return(0,d0.default)(u).hostname}i.getHostName=t;function r(u){return u&&e(u).toString()}i.normalize=r;function n(...u){let c=(0,d0.default)(u[0],{}),d=c.protocol===""&&c.slashes;d&&(c=(0,d0.default)(u[0],"https:"+u[0]));let h=`${d?"":c.protocol}${c.slashes?"//":""}${c.auth}${c.auth?"@":""}${c.host}`,f=nre.posix.join(`${h&&c.pathname[0]!=="/"?"/":""}${c.pathname}`,...u.slice(1));return`${h}${f==="."?"":f}`}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 h=encodeURIComponent(String(u[d]));return d+(h?"="+h:"")}).join("&"):""}i.objectToQueryString=o;function a(u){return u.replace(/^\?/,"").split("&").reduce((c,d)=>{let[h,f]=d.split("=");return h.length>0&&(c[h]=decodeURIComponent(f||"")),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})(FE||(gd.URLExt=FE={}))});var NE=M((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=Ge(),minimist_1=__importDefault(SE()),url_1=z_(),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=M_("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 zE=M(h0=>{"use strict";Object.defineProperty(h0,"__esModule",{value:!0});h0.PathExt=void 0;var Ua=M_("path"),BE;(function(i){function e(...d){let h=Ua.posix.join(...d);return h==="."?"":c(h)}i.join=e;function t(...d){let h=Ua.posix.join(...d);return h==="."?"":h}i.joinWithLeadingSlash=t;function r(d,h){return Ua.posix.basename(d,h)}i.basename=r;function n(d){let h=c(Ua.posix.dirname(d));return h==="."?"":h}i.dirname=n;function s(d){return Ua.posix.extname(d)}i.extname=s;function o(d){return d===""?"":c(Ua.posix.normalize(d))}i.normalize=o;function a(...d){return c(Ua.posix.resolve(...d))}i.resolve=a;function l(d,h){return c(Ua.posix.relative(d,h))}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})(BE||(h0.PathExt=BE={}))});var qE=M(q_=>{"use strict";Object.defineProperty(q_,"__esModule",{value:!0});q_.signalToPromise=ore;var sre=Ge();function ore(i,e){let t=new sre.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}});var jE=M(f0=>{"use strict";Object.defineProperty(f0,"__esModule",{value:!0});f0.Text=void 0;var HE;(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;
5u++){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})(HE||(f0.Text=HE={}))});var UE=M(p0=>{"use strict";Object.defineProperty(p0,"__esModule",{value:!0});p0.Time=void 0;var are=[{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}],VE;(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 are){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})(VE||(p0.Time=VE={}))});var ci=M(vr=>{"use strict";var lre=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]}),to=vr&&vr.__exportStar||function(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&lre(e,i,t)};Object.defineProperty(vr,"__esModule",{value:!0});to(pE(),vr);to(gE(),vr);to(bE(),vr);to(_E(),vr);to(NE(),vr);to(zE(),vr);to(qE(),vr);to(jE(),vr);to(UE(),vr);to(z_(),vr)});var bd=M(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.supportedKernelWebSocketProtocols=void 0;Xt.createMessage=cre;Xt.isStreamMsg=dre;Xt.isDisplayDataMsg=hre;Xt.isUpdateDisplayDataMsg=fre;Xt.isExecuteInputMsg=pre;Xt.isExecuteResultMsg=mre;Xt.isErrorMsg=gre;Xt.isStatusMsg=bre;Xt.isClearOutputMsg=vre;Xt.isDebugEventMsg=_re;Xt.isCommOpenMsg=yre;Xt.isCommCloseMsg=xre;Xt.isCommMsgMsg=wre;Xt.isInfoRequestMsg=Sre;Xt.isExecuteReplyMsg=Cre;Xt.isDebugRequestMsg=Ire;Xt.isDebugReplyMsg=Ere;Xt.isInputRequestMsg=kre;Xt.isInputReplyMsg=Tre;var ure=Ge();function cre(i){var e,t,r,n,s,o;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:ure.UUID.uuid4(),msg_type:i.msgType,session:i.session,username:(r=i.username)!==null&&r!==void 0?r:"",subshell_id:(n=i.subshellId)!==null&&n!==void 0?n:null,version:"5.2"},metadata:(s=i.metadata)!==null&&s!==void 0?s:{},parent_header:(o=i.parentHeader)!==null&&o!==void 0?o:{}}}function dre(i){return i.header.msg_type==="stream"}function hre(i){return i.header.msg_type==="display_data"}function fre(i){return i.header.msg_type==="update_display_data"}function pre(i){return i.header.msg_type==="execute_input"}function mre(i){return i.header.msg_type==="execute_result"}function gre(i){return i.header.msg_type==="error"}function bre(i){return i.header.msg_type==="status"}function vre(i){return i.header.msg_type==="clear_output"}function _re(i){return i.header.msg_type==="debug_event"}function yre(i){return i.header.msg_type==="comm_open"}function xre(i){return i.header.msg_type==="comm_close"}function wre(i){return i.header.msg_type==="comm_msg"}function Sre(i){return i.header.msg_type==="kernel_info_request"}function Cre(i){return i.header.msg_type==="execute_reply"}function Ire(i){return i.header.msg_type==="debug_request"}function Ere(i){return i.header.msg_type==="debug_reply"}function kre(i){return i.header.msg_type==="input_request"}function Tre(i){return i.header.msg_type==="input_reply"}var WE;(function(i){i.v1KernelWebsocketJupyterOrg="v1.kernel.websocket.jupyter.org"})(WE||(Xt.supportedKernelWebSocketProtocols=WE={}))});var KE=M(io=>{"use strict";var Are=io&&io.__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=io&&io.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),Rre=io&&io.__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)&&Are(e,i,t);return Mre(e,i),e};Object.defineProperty(io,"__esModule",{value:!0});io.serialize=Dre;io.deserialize=Ore;var GE=Rre(bd());function Dre(i,e=""){switch(e){case GE.supportedKernelWebSocketProtocols.v1KernelWebsocketJupyterOrg:return vd.serializeV1KernelWebsocketJupyterOrg(i);default:return vd.serializeDefault(i)}}function Ore(i,e=""){switch(e){case GE.supportedKernelWebSocketProtocols.v1KernelWebsocketJupyterOrg:return vd.deserializeV1KernelWebsocketJupyterOrg(i);default:return vd.deserializeDefault(i)}}var vd;(function(i){function e(a){let l,u=new DataView(a),c=Number(u.getBigUint64(0,!0)),d=[];for(let y=0;y<c;y++)d.push(Number(u.getBigUint64(8*(y+1),!0)));let h=new TextDecoder("utf8"),f=h.decode(a.slice(d[0],d[1])),p=JSON.parse(h.decode(a.slice(d[1],d[2]))),g=JSON.parse(h.decode(a.slice(d[2],d[3]))),v=JSON.parse(h.decode(a.slice(d[3],d[4]))),_=JSON.parse(h.decode(a.slice(d[4],d[5]))),x=[];for(let y=5;y<d.length-1;y++)x.push(new DataView(a.slice(d[y],d[y+1])));return l={channel:f,header:p,parent_header:g,metadata:v,content:_,buffers:x},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),h=a.buffers!==void 0?a.buffers:[],f=1+4+h.length+1,p=[];p.push(8*(1+f)),p.push(a.channel.length+p[p.length-1]);let g=new TextEncoder,v=g.encode(a.channel),_=g.encode(l),x=g.encode(u),y=g.encode(c),C=g.encode(d),S=new Uint8Array(v.length+_.length+x.length+y.length+C.length);S.set(v),S.set(_,v.length),S.set(x,v.length+_.length),S.set(y,v.length+_.length+x.length),S.set(C,v.length+_.length+x.length+y.length);for(let k of[_.length,x.length,y.length,C.length])p.push(k+p[p.length-1]);let R=0;for(let k of h){let O=k.byteLength;p.push(O+p[p.length-1]),R+=O}let I=new Uint8Array(8*(1+f)+S.byteLength+R),E=new ArrayBuffer(8),w=new DataView(E);w.setBigUint64(0,BigInt(f),!0),I.set(new Uint8Array(E),0);for(let k=0;k<p.length;k++)w.setBigUint64(0,BigInt(p[k]),!0),I.set(new Uint8Array(E),8*(k+1));I.set(S,p[0]);for(let k=0;k<h.length;k++){let O=h[k];I.set(new Uint8Array(ArrayBuffer.isView(O)?O.buffer:O),p[5+k])}return I.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 f=1;f<=u;f++)c.push(l.getUint32(f*4));let d=new Uint8Array(a.slice(c[0],c[1])),h=JSON.parse(new TextDecoder("utf8").decode(d));h.buffers=[];for(let f=1;f<u;f++){let p=c[f],g=c[f+1]||a.byteLength;h.buffers.push(new DataView(a.slice(p,g)))}return h}function o(a){let l=[],u=[],c=new TextEncoder,d=[];a.buffers!==void 0&&(d=a.buffers,delete a.buffers);let h=c.encode(JSON.stringify(a));u.push(h.buffer);for(let v=0;v<d.length;v++){let _=d[v];u.push(ArrayBuffer.isView(_)?_.buffer:_)}let f=u.length;l.push(4*(f+1));for(let v=0;v+1<u.length;v++)l.push(l[l.length-1]+u[v].byteLength);let p=new Uint8Array(l[l.length-1]+u[u.length-1].byteLength),g=new DataView(p.buffer);g.setUint32(0,f);for(let v=0;v<l.length;v++)g.setUint32(4*(v+1),l[v]);for(let v=0;v<u.length;v++)p.set(new Uint8Array(u[v]),l[v]);return p.buffer}})(vd||(vd={}))});var YE=M(H_=>{"use strict";Object.defineProperty(H_,"__esModule",{value:!0});H_.default=WebSocket});var Fr=M(g0=>{"use strict";Object.defineProperty(g0,"__esModule",{value:!0});g0.ServerConnection=void 0;var Wa=ci(),XE=KE(),j_;
5typeof window>"u"?j_=YE():j_=WebSocket;var V_;(function(i){function e(s){return m0.makeSettings(s)}i.makeSettings=e;function t(s,o,a){return m0.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})(V_||(g0.ServerConnection=V_={}));var m0;(function(i){function e(n={}){var s;let o=Wa.PageConfig.getBaseUrl(),a=Wa.PageConfig.getWsUrl(),l=Wa.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=Wa.PageConfig.getOption("appendToken").toLowerCase(),d;return c===""?d=typeof window>"u"||typeof process<"u"&&((s=process==null?void 0:process.env)===null||s===void 0?void 0:s.JEST_WORKER_ID)!==void 0||Wa.URLExt.getHostName(o)!==Wa.URLExt.getHostName(u):d=c==="true",{init:{cache:"no-store",credentials:"same-origin"},fetch,Headers,Request,WebSocket:j_,token:Wa.PageConfig.getToken(),appUrl:Wa.PageConfig.getOption("appUrl"),appendToken:d,serializer:{serialize:XE.serialize,deserialize:XE.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 V_.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]}})(m0||(m0={}))});var sc=M(b0=>{"use strict";Object.defineProperty(b0,"__esModule",{value:!0});b0.BaseManager=void 0;var JE=(tt(),Rt(br)),Lre=Fr(),U_=class{constructor(e){var t;this._isDisposed=!1,this._disposed=new JE.Signal(this),this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:Lre.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),JE.Signal.clearData(this))}};b0.BaseManager=U_});var QE=M(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.ConfigWithDefaults=Ga.ConfigSection=Ga.ConfigSectionManager=void 0;var $re=ci(),_d=ws(),Pre="api/config",W_=class{constructor(e){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:_d.ServerConnection.makeSettings()}async create(e){let t=new v0({...e,serverSettings:this.serverSettings});return await t.load(),t}};Ga.ConfigSectionManager=W_;var ZE;(function(i){async function e(n){if(!t){let o=new v0(n);return await o.load(),o}return await t.create(n)}i.create=e;let t;function r(n){if(t)throw new Error("ConfigSectionManager already set. If you would like to create a config section, use the `IConfigSectionManager` token in a plugin.");t=n}i._setConfigSectionManager=r})(ZE||(Ga.ConfigSection=ZE={}));var v0=class{constructor(e){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:_d.ServerConnection.makeSettings(),this._name=e.name}get data(){return this._data}async load(){let e=await _d.ServerConnection.makeRequest(this._url,{},this.serverSettings);if(e.status!==200)throw await _d.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 _d.ServerConnection.makeRequest(this._url,t,this.serverSettings);if(r.status!==200)throw await _d.ServerConnection.ResponseError.create(r);return this._data=await r.json(),this._data}get _url(){return $re.URLExt.join(this.serverSettings.baseUrl,Pre,encodeURIComponent(this._name))}},G_=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}};Ga.ConfigWithDefaults=G_});var ek=M(_0=>{"use strict";Object.defineProperty(_0,"__esModule",{value:!0});_0.ConnectionStatus=void 0;var K_=class{constructor(){this.isConnected=!0}};_0.ConnectionStatus=K_});var y0={};ic(y0,{DisposableDelegate:()=>Li,DisposableSet:()=>Ka,ObservableDisposableDelegate:()=>Y_,ObservableDisposableSet:()=>hf});var Li,Y_,Ka,hf,Nr=b(()=>{tt();Li=class{constructor(e){this._fn=e}get isDisposed(){return!this._fn}dispose(){if(!this._fn)return;let e=this._fn;this._fn=null,e()}},Y_=class extends Li{constructor(){super(...arguments),this._disposed=new G(this)}get disposed(){return this._disposed}
5dispose(){this.isDisposed||(super.dispose(),this._disposed.emit(void 0),G.clearData(this))}},Ka=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})(Ka||(Ka={}));hf=class extends Ka{constructor(){super(...arguments),this._disposed=new G(this)}get disposed(){return this._disposed}dispose(){this.isDisposed||(super.dispose(),this._disposed.emit(void 0),G.clearData(this))}};(function(i){function e(t){let r=new i;for(let n of t)r.add(n);return r}i.from=e})(hf||(hf={}))});var ff=M(X_=>{"use strict";Object.defineProperty(X_,"__esModule",{value:!0});X_.validateProperty=Fre;function Fre(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)}`)}}}});var tk=M(x0=>{"use strict";Object.defineProperty(x0,"__esModule",{value:!0});x0.validateContentsModel=Nre;x0.validateCheckpointModel=Bre;var ro=ff();function Nre(i){(0,ro.validateProperty)(i,"name","string"),(0,ro.validateProperty)(i,"path","string"),(0,ro.validateProperty)(i,"type","string"),(0,ro.validateProperty)(i,"created","string"),(0,ro.validateProperty)(i,"last_modified","string"),(0,ro.validateProperty)(i,"mimetype","object"),(0,ro.validateProperty)(i,"content","object"),(0,ro.validateProperty)(i,"format","object")}function Bre(i){(0,ro.validateProperty)(i,"id","string"),(0,ro.validateProperty)(i,"last_modified","string")}});var Q_=M(Wi=>{"use strict";var zre=Wi&&Wi.__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]}),qre=Wi&&Wi.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),Hre=Wi&&Wi.__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)&&zre(e,i,t);return qre(e,i),e};Object.defineProperty(Wi,"__esModule",{value:!0});Wi.RestContentProvider=Wi.ContentProviderRegistry=Wi.Drive=Wi.ContentsManager=Wi.Contents=void 0;var Br=ci(),jre=(Nr(),Rt(y0)),pf=(tt(),Rt(br)),Qt=ws(),Yo=Hre(tk()),Vre="api/contents",Ure="files",ik;(function(i){function e(r){Yo.validateContentsModel(r)}i.validateContentsModel=e;function t(r){Yo.validateCheckpointModel(r)}i.validateCheckpointModel=t})(ik||(Wi.Contents=ik={}));var J_=class{constructor(e={}){var t,r;this._isDisposed=!1,this._additionalDrives=new Map,this._fileChanged=new pf.Signal(this);let n=this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:Qt.ServerConnection.makeSettings();this._defaultDrive=(r=e.defaultDrive)!==null&&r!==void 0?r:new w0({serverSettings:n}),this._defaultDrive.fileChanged.connect(this._onFileChanged,this)}get defaultDrive(){return this._defaultDrive}get fileChanged(){return this._fileChanged}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,pf.Signal.clearData(this))}addDrive(e){this._additionalDrives.set(e.name,e),e.fileChanged.connect(this._onFileChanged,this)}getSharedModelFactory(e,t){var r,n;let[s]=this._driveForPath(e),o=(r=s.contentProviderRegistry)===null||r===void 0?void 0:r.getProvider(t?.contentProviderId);return o?.sharedModelFactory?o.sharedModelFactory:(n=s.sharedModelFactory)!==null&&n!==void 0?n:null}localPath(e){let t=e.split("/"),r=t[0].split(":");return r.length===1||!this._additionalDrives.has(r[0])?Br.PathExt.removeSlash(e):Br.PathExt.join(r.slice(1).join(":"),...t.slice(1))}normalize(e){let t=e.split(":");return t.length===1?Br.PathExt.normalize(e):`${t[0]}:${Br.PathExt.normalize(t.slice(1).join(":"))}`}resolvePath(e,t){let r=this.driveName(e),n=this.localPath(e),s=Br.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:Br.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?Br.PathExt.removeSlash(t):`${e.name}:${Br.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})}}};Wi.ContentsManager=J_;var w0=class{constructor(e={}){var t,r,n,s;this._isDisposed=!1,this._fileChanged=new pf.Signal(this),this.name=(t=e.name)!==null&&t!==void 0?t:"Default",this._apiEndpoint=(r=e.apiEndpoint)!==null&&r!==void 0?r:Vre,this.serverSettings=(n=e.serverSettings)!==null&&n!==void 0?n:Qt.ServerConnection.makeSettings();let o=(s=e.defaultContentProvider)!==null&&s!==void 0?s:new C0({apiEndpoint:this._apiEndpoint,serverSettings:this.serverSettings});this.contentProviderRegistry=new S0({defaultProvider:o}),this.contentProviderRegistry.fileChanged.connect((a,l)=>{this._fileChanged.emit(l)})}get fileChanged(){return this._fileChanged}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,pf.Signal.clearData(this))}async get(e,t){return this.contentProviderRegistry.getProvider(t?.contentProviderId).get(e,t)}getDownloadUrl(e){let t=this.serverSettings.baseUrl,r=Br.URLExt.join(t,Ure,Br.URLExt.encodeParts(e)),n="";try{n=document.cookie}catch{}let s=n.match("\\b_xsrf=([^;]*)\\b");if(s){let o=new URL(r);
5o.searchParams.append("_xsrf",s[1]),r=o.toString()}return Promise.resolve(r)}async newUntitled(e={}){var t;let r="{}";e&&(e.ext&&(e.ext=Z_.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 Qt.ServerConnection.makeRequest(s,o,n);if(a.status!==201)throw await Qt.ServerConnection.ResponseError.create(a);let l=await a.json();return Yo.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 Qt.ServerConnection.makeRequest(t,n,r);if(s.status!==204)throw await Qt.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 Qt.ServerConnection.makeRequest(n,s,r);if(o.status!==200)throw await Qt.ServerConnection.ResponseError.create(o);let a=await o.json();return Yo.validateContentsModel(a),this._fileChanged.emit({type:"rename",oldValue:{path:e},newValue:a}),a}async save(e,t={}){let n=await this.contentProviderRegistry.getProvider(t?.contentProviderId).save(e,t);return this._fileChanged.emit({type:"save",oldValue:null,newValue:n}),n}async copy(e,t){let r=this.serverSettings,n=this._getUrl(t),s={method:"POST",body:JSON.stringify({copy_from:e})},o=await Qt.ServerConnection.makeRequest(n,s,r);if(o.status!==201)throw await Qt.ServerConnection.ResponseError.create(o);let a=await o.json();return Yo.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 Qt.ServerConnection.makeRequest(t,r,this.serverSettings);if(n.status!==201)throw await Qt.ServerConnection.ResponseError.create(n);let s=await n.json();return Yo.validateCheckpointModel(s),s}async listCheckpoints(e){let t=this._getUrl(e,"checkpoints"),r=await Qt.ServerConnection.makeRequest(t,{},this.serverSettings);if(r.status!==200)throw await Qt.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++)Yo.validateCheckpointModel(n[s]);return n}async restoreCheckpoint(e,t){let r=this._getUrl(e,"checkpoints",t),n={method:"POST"},s=await Qt.ServerConnection.makeRequest(r,n,this.serverSettings);if(s.status!==204)throw await Qt.ServerConnection.ResponseError.create(s)}async deleteCheckpoint(e,t){let r=this._getUrl(e,"checkpoints",t),n={method:"DELETE"},s=await Qt.ServerConnection.makeRequest(r,n,this.serverSettings);if(s.status!==204)throw await Qt.ServerConnection.ResponseError.create(s)}_getUrl(...e){let t=e.map(n=>Br.URLExt.encodeParts(n)),r=this.serverSettings.baseUrl;return Br.URLExt.join(r,this._apiEndpoint,...t)}};Wi.Drive=w0;var Z_;(function(i){function e(t){return t.length>0&&t.indexOf(".")!==0&&(t=`.${t}`),t}i.normalizeExtension=e})(Z_||(Z_={}));var S0=class{constructor(e){this._providers=new Map,this._fileChanged=new pf.Signal(this),this.register("default",e.defaultProvider),this._defaultProvider=e.defaultProvider}register(e,t){if(this._providers.has(e))throw Error(`Provider with ${e} identifier was already registered on this drive`);this._providers.set(e,t);let r=(n,s)=>{this._fileChanged.emit(s)};return t.fileChanged&&t.fileChanged.connect(r),new jre.DisposableDelegate(()=>{t.fileChanged&&t.fileChanged.disconnect(r),this._providers.has(e)&&this._providers.delete(e)})}getProvider(e){if(!e)return this._defaultProvider;let t=this._providers.get(e);if(!t)throw Error(`Provider ${e} is not registered`);return t}get fileChanged(){return this._fileChanged}};Wi.ContentProviderRegistry=S0;var C0=class{constructor(e){this._options=e}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+=Br.URLExt.objectToQueryString(u)}let n=this._options.serverSettings,s=await Qt.ServerConnection.makeRequest
5(r,{},n);if(s.status!==200)throw await Qt.ServerConnection.ResponseError.create(s);let o=await s.json();return Yo.validateContentsModel(o),o}async save(e,t={}){let r=this._options.serverSettings,n=this._getUrl(e),o={method:"PUT",body:new File([JSON.stringify(t)],"data.json",{type:"application/json"})},a=await Qt.ServerConnection.makeRequest(n,o,r);if(a.status!==200&&a.status!==201)throw await Qt.ServerConnection.ResponseError.create(a);let l=await a.json();return Yo.validateContentsModel(l),l}_getUrl(...e){let t=e.map(n=>Br.URLExt.encodeParts(n)),r=this._options.serverSettings.baseUrl;return Br.URLExt.join(r,this._options.apiEndpoint,...t)}};Wi.RestContentProvider=C0});var ac={};ic(ac,{Debouncer:()=>ey,Poll:()=>di,RateLimiter:()=>mf,Throttler:()=>oc});var Ya,di,Ss,mf,ey,oc,Xo=b(()=>{Ya=N(Ge());tt();di=class{constructor(e){var t;this._disposed=new G(this),this._lingered=0,this._tick=new Ya.PromiseDelegate,this._ticked=new G(this),this._factory=e.factory,this._linger=(t=e.linger)!==null&&t!==void 0?t:Ss.DEFAULT_LINGER,this._standby=e.standby||Ss.DEFAULT_STANDBY,this._state={...Ss.DEFAULT_STATE,timestamp:new Date().getTime()};let r=e.frequency||{},n=Math.max(r.interval||0,r.max||0,Ss.DEFAULT_FREQUENCY.max);this.frequency={...Ss.DEFAULT_FREQUENCY,...r,max:n},this.name=e.name||Ss.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||Ya.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!==di.NEVER)throw new Error("Poll interval must be between 0 and max");if(n>di.MAX_INTERVAL&&n!==di.NEVER)throw new Error(`Max interval must be less than ${di.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={...Ss.DISPOSED_STATE,timestamp:new Date().getTime()},this._tick.promise.catch(e=>{}),this._tick.reject(new Error(`Poll (${this.name}) is disposed.`)),this._disposed.emit(void 0),G.clearData(this))}refresh(){return this.schedule({cancel:({phase:e})=>e==="refreshed",interval:di.IMMEDIATE,phase:"refreshed"})}async schedule(e={}){if(this.isDisposed||e.cancel&&e.cancel(this.state))return;let t=this._tick,r=new Ya.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===di.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:di.IMMEDIATE,phase:"started"})}stop(){return this.schedule({cancel:({phase:e})=>e==="stopped",interval:di.NEVER,phase:"stopped"})}get hidden(){return Ss.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:Ss.sleep(this.frequency,this.state),payload:r,phase:"rejected"})})}};(function(i){i.IMMEDIATE=0,i.MAX_INTERVAL=2147483647,i.NEVER=1/0})(di||(di={}));(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:di.NEVER,payload:null,phase:"constructed",timestamp:new Date(0).getTime()},i.DISPOSED_STATE={interval:di.NEVER,payload:null,phase:"disposed",timestamp:new Date(0).getTime()};function e(r,n){let{backoff:s,interval:o,max:a}=r;if(o===di.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}})(Ss||(Ss={}));mf=class{constructor(e,t=500){this.args=void 0,this.payload=null,this.limit=t,this.poll=new di({auto:!1,factory:async()=>{let{args:r}=this;return this.args=void 0,e(...r)},frequency:{backoff:!1,interval:di.NEVER,max:di.NEVER},standby:"never"}),this.payload=new Ya.PromiseDelegate,this.poll.ticked.connect((r,n)=>{let{payload:s}=this;if(n.phase==="resolved"){this.payload=new Ya.PromiseDelegate,s.resolve(n.payload);return}if(n.phase==="rejected"||n.phase==="stopped"){this.payload=new Ya.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()}},ey=class extends mf{invoke(...e){return this.args=e,this.poll.schedule({interval:this.limit,phase:"invoked"}),this.payload.promise}},oc=class extends mf{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:di.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 iy=M(I0=>{"use strict";Object.defineProperty(I0,"__esModule",{value:!0});I0.EventManager=void 0;var rk=ci(),Wre=(Xo(),Rt(ac)),nk=(tt(),Rt(br)),sk=Fr(),ok="api/events",ty=class{constructor(e={}){var t,r;this._socket=null,this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:sk.ServerConnection.makeSettings(),this._poll=new Wre.Poll({factory:()=>this._subscribe(),standby:(r=e.standby)!==null&&r!==void 0?r:"when-hidden"}),this._stream=new nk.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()),nk.Signal.clearData(this),this._stream.stop()}async emit(e){let{serverSettings:t}=this,{baseUrl:r}=t,{makeRequest:n,ResponseError:s}=sk.ServerConnection,o=rk.URLExt.join(r,ok),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=rk.URLExt.join(o,ok,"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))})}};I0.EventManager=ty});var ry=M(Yn=>{"use strict";var Gre=Yn&&Yn.__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]}),Kre=Yn&&Yn.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),Yre=Yn&&Yn.__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)&&Gre(e,i,t);return Kre(e,i),e};Object.defineProperty(Yn,"__esModule",{value:!0});Yn.CommHandler=Yn.CommsOverSubshells=void 0;var Xre=Ge(),Jre=(Nr(),Rt(y0)),E0=Yre(bd()),yd;(function(i){i.Disabled="disabled",i.PerComm="perComm",i.PerCommTarget="perCommTarget"})(yd||(Yn.CommsOverSubshells=yd={}));var no=class extends Jre.DisposableDelegate{constructor(e,t,r,n,s){super(n),this._subshellStarted=new Xre.PromiseDelegate,this._subshellId=null,this._target="",this._id="",this._id=t,this._target=e,this._kernel=r,this._kernel.statusChanged.connect(()=>{this._kernel.status==="restarting"&&this._cleanSubshells()}),this.commsOverSubshells=s??yd.PerCommTarget}get commId(){return this._id}get targetName(){return this._target}get subshellId(){return this._subshellId}get subshellStarted(){return this._subshellStarted.promise}get commsOverSubshells(){return this._commsOverSubshells}set commsOverSubshells(e){this._commsOverSubshells=e,this._commsOverSubshells===yd.Disabled?this._maybeCloseSubshell():this._maybeStartSubshell()}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=E0.createMessage({msgType:"comm_open",channel:"shell",username:this._kernel.username,session:this._kernel.clientId,subshellId:this._subshellId||this._kernel.subshellId,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=E0.createMessage({msgType:"comm_msg",channel:"shell",username:this._kernel.username,session:this._kernel.clientId,subshellId:this._subshellId||this._kernel.subshellId,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=E0.createMessage({msgType:"comm_close",channel:"shell",username:this._kernel.username,session:this._kernel.clientId,subshellId:this._subshellId||this._kernel.subshellId,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=E0.createMessage({msgType:"comm_close",channel:"iopub",username:this._kernel.username,session:this._kernel.clientId,subshellId:this._subshellId||this._kernel.subshellId,content:{comm_id:this._id,data:e??{}},metadata:t,buffers:r});o(a)}return this.dispose(),s}dispose(){this._maybeCloseSubshell(),super.dispose()}_cleanSubshells(){let e=this._kernel.id;no._commTargetSubShellsId.hasOwnProperty(e)&&delete no._commTargetSubShellsId[e]}async _maybeStartSubshell(){if(await this._kernel.info,!this._kernel.supportsSubshells)return;if(this._commsOverSubshells===yd.PerComm){let r=await this._kernel.requestCreateSubshell({}).done;this._subshellId=r.content.subshell_id,this._subshellStarted.resolve();return}let e=this._kernel.id;no._commTargetSubShellsId.hasOwnProperty(e)||(no._commTargetSubShellsId[e]={});let t=no._commTargetSubShellsId[e];t[this._target]?(this._subshellId=await t[this._target],this._subshellStarted.resolve()):(t[this._target]=this._kernel.requestCreateSubshell({}).done.then(r=>(this._subshellId=r.content.subshell_id,this._subshellId)),await t[this._target],this._subshellStarted.resolve())}_maybeCloseSubshell(){if(this._commsOverSubshells!==yd.PerComm){this._subshellId=null;return}this._subshellId&&this._kernel.status!=="dead"&&this._kernel.requestDeleteSubshell({subshell_id:this._subshellId},!0),this._subshellId=null}};
5Yn.CommHandler=no;no._commTargetSubShellsId={}});var lk=M(ak=>{"use strict";Object.defineProperty(ak,"__esModule",{value:!0})});var k0=M(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});gf.validateMessage=ene;gf.validateModel=ck;gf.validateModels=ine;var lc=ff(),uk=["username","version","session","msg_id","msg_type"],Zre={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 Qre(i){for(let e=0;e<uk.length;e++)(0,lc.validateProperty)(i,uk[e],"string")}function ene(i){(0,lc.validateProperty)(i,"metadata","object"),(0,lc.validateProperty)(i,"content","object"),(0,lc.validateProperty)(i,"channel","string"),Qre(i.header),i.channel==="iopub"&&tne(i)}function tne(i){if(i.channel==="iopub"){let e=Zre[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,lc.validateProperty)(r,t[n],...s)}}}function ck(i){(0,lc.validateProperty)(i,"name","string"),(0,lc.validateProperty)(i,"id","string")}function ine(i){if(!Array.isArray(i))throw new Error("Invalid kernel list");i.forEach(e=>ck(e))}});var A0=M(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.KernelAPIClient=Gi.KERNEL_SERVICE_URL=void 0;Gi.listRunning=dk;Gi.startNew=hk;Gi.restartKernel=fk;Gi.interruptKernel=pk;Gi.shutdownKernel=mk;Gi.getKernelModel=gk;var $i=Fr(),xd=ci(),T0=k0();Gi.KERNEL_SERVICE_URL="api/kernels";async function dk(i=$i.ServerConnection.makeSettings()){let e=xd.URLExt.join(i.baseUrl,Gi.KERNEL_SERVICE_URL),t=await $i.ServerConnection.makeRequest(e,{},i);if(t.status!==200)throw await $i.ServerConnection.ResponseError.create(t);let r=await t.json();return(0,T0.validateModels)(r),r}async function hk(i={},e=$i.ServerConnection.makeSettings()){let t=xd.URLExt.join(e.baseUrl,Gi.KERNEL_SERVICE_URL),r={method:"POST",body:JSON.stringify(i)},n=await $i.ServerConnection.makeRequest(t,r,e);if(n.status!==201)throw await $i.ServerConnection.ResponseError.create(n);let s=await n.json();return(0,T0.validateModel)(s),s}async function fk(i,e=$i.ServerConnection.makeSettings()){let t=xd.URLExt.join(e.baseUrl,Gi.KERNEL_SERVICE_URL,encodeURIComponent(i),"restart"),r={method:"POST"},n=await $i.ServerConnection.makeRequest(t,r,e);if(n.status!==200)throw await $i.ServerConnection.ResponseError.create(n);let s=await n.json();(0,T0.validateModel)(s)}async function pk(i,e=$i.ServerConnection.makeSettings()){let t=xd.URLExt.join(e.baseUrl,Gi.KERNEL_SERVICE_URL,encodeURIComponent(i),"interrupt"),r={method:"POST"},n=await $i.ServerConnection.makeRequest(t,r,e);if(n.status!==204)throw await $i.ServerConnection.ResponseError.create(n)}async function mk(i,e=$i.ServerConnection.makeSettings()){let t=xd.URLExt.join(e.baseUrl,Gi.KERNEL_SERVICE_URL,encodeURIComponent(i)),r={method:"DELETE"},n=await $i.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 $i.ServerConnection.ResponseError.create(n)}async function gk(i,e=$i.ServerConnection.makeSettings()){let t=xd.URLExt.join(e.baseUrl,Gi.KERNEL_SERVICE_URL,encodeURIComponent(i)),r=await $i.ServerConnection.makeRequest(t,{},e);if(r.status===404)return;if(r.status!==200)throw await $i.ServerConnection.ResponseError.create(r);let n=await r.json();return(0,T0.validateModel)(n),n}var ny=class{constructor(e={}){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:$i.ServerConnection.makeSettings()}async listRunning(){return dk(this.serverSettings)}async getModel(e){return gk(e,this.serverSettings)}async startNew(e={}){return hk(e,this.serverSettings)}async restart(e){return fk(e,this.serverSettings)}async interrupt(e){return pk(e,this.serverSettings)}async shutdown(e){return mk(e,this.serverSettings)}};Gi.KernelAPIClient=ny});
5var vk=M(rn=>{"use strict";var rne=rn&&rn.__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]}),nne=rn&&rn.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),sne=rn&&rn.__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)&&rne(e,i,t);return nne(e,i),e};Object.defineProperty(rn,"__esModule",{value:!0});rn.KernelShellFutureHandler=rn.KernelControlFutureHandler=rn.KernelFutureHandler=void 0;var bk=Ge(),one=(Nr(),Rt(y0)),ane=sne(bd()),bf=class extends one.DisposableDelegate{constructor(e,t,r,n,s){super(e),this._status=0,this._stdin=nr.noOp,this._iopub=nr.noOp,this._reply=nr.noOp,this._done=new bk.PromiseDelegate,this._hooks=new nr.HookList,this._disposeOnDone=!0,this._msg=t,r||this._setFlag(nr.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=nr.noOp,this._iopub=nr.noOp,this._reply=nr.noOp,this._hooks=null,this._testFlag(nr.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(nr.KernelFutureFlag.GotReply),this._testFlag(nr.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),ane.isStatusMsg(e)&&e.content.execution_state==="idle"&&(this._setFlag(nr.KernelFutureFlag.GotIdle),this._testFlag(nr.KernelFutureFlag.GotReply)&&this._handleDone())}_handleDone(){this._testFlag(nr.KernelFutureFlag.IsDone)||(this._setFlag(nr.KernelFutureFlag.IsDone),this._done.resolve(this._replyMsg),this._disposeOnDone&&this.dispose())}_testFlag(e){return(this._status&e)!==0}_setFlag(e){this._status|=e}};rn.KernelFutureHandler=bf;var sy=class extends bf{};rn.KernelControlFutureHandler=sy;var oy=class extends bf{};rn.KernelShellFutureHandler=oy;var nr;(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 bk.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={}))})(nr||(nr={}))});var yk=M(M0=>{"use strict";Object.defineProperty(M0,"__esModule",{value:!0});M0.validateSpecModel=_k;M0.validateSpecModels=lne;var uc=ff();function _k(i){let e=i.spec;if(!e)throw new Error("Invalid kernel spec");(0,uc.validateProperty)(i,"name","string"),(0,uc.validateProperty)(i,"resources","object"),(0,uc.validateProperty)(e,"language","string"),(0,uc.validateProperty)(e,"display_name","string"),(0,uc.validateProperty)(e,"argv","array");let t=null;e.hasOwnProperty("metadata")&&((0,uc.validateProperty)(e,"metadata","object"),t=e.metadata);let r=null;return e.hasOwnProperty("env")&&((0,uc.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}}function lne(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]]=_k(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}}});var _f=M(vf=>{"use strict";
5Object.defineProperty(vf,"__esModule",{value:!0});vf.KernelSpecAPIClient=void 0;vf.getSpecs=xk;var R0=Fr(),une=yk(),cne=ci(),dne="api/kernelspecs";async function xk(i=R0.ServerConnection.makeSettings()){let e=cne.URLExt.join(i.baseUrl,dne),t=await R0.ServerConnection.makeRequest(e,{},i);if(t.status!==200)throw await R0.ServerConnection.ResponseError.create(t);let r=await t.json();return(0,une.validateSpecModels)(r)}var ay=class{constructor(e={}){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:R0.ServerConnection.makeSettings()}async get(){return xk(this.serverSettings)}};vf.KernelSpecAPIClient=ay});var ly=M(so=>{"use strict";var hne=so&&so.__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]}),fne=so&&so.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),Ek=so&&so.__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)&&hne(e,i,t);return fne(e,i),e};Object.defineProperty(so,"__esModule",{value:!0});so.KernelConnection=void 0;var wk=ci(),Xa=Ge(),Ja=(tt(),Rt(br)),yf=ws(),Sk=ry(),sr=Ek(bd()),Ck=vk(),pne=Ek(k0()),Ik=A0(),mne=_f(),gne=ci(),bne=3e3,wd="_RESTARTING_",vne="",xf=class{constructor(e){var t,r,n,s,o,a,l,u;this._createSocket=(c=!0)=>{this._errorIfDisposed(),this._clearSocket(),this._updateConnectionStatus("connecting");let d=this.serverSettings,h=wk.URLExt.join(d.wsUrl,Ik.KERNEL_SERVICE_URL,encodeURIComponent(this._id)),f=h.replace(/^((?:\w+:)?\/\/)(?:[^@\/]+@)/,"$1");console.debug(`Starting WebSocket: ${f}`);let p=wk.URLExt.join(h,"channels?session_id="+encodeURIComponent(this._clientId)),g=d.token;d.appendToken&&g!==""&&(p=p+`&token=${encodeURIComponent(g)}`);let v=c?this._supportedProtocols:[];this._ws=new d.WebSocket(p,v),this._ws.binaryType="arraybuffer";let _=!1,x=async C=>{var S,R;if(!this._isDisposed){this._reason="",this._model=void 0;try{let I=await this._kernelAPIClient.getModel(this._id);this._model=I,I?.execution_state==="dead"?this._updateStatus("dead"):this._onWSClose(C)}catch(I){if(I instanceof yf.ServerConnection.NetworkError||((S=I.response)===null||S===void 0?void 0:S.status)===503||((R=I.response)===null||R===void 0?void 0:R.status)===424){let E=Xn.getRandomIntInclusive(10,30)*1e3;setTimeout(x,E,C)}else this._reason="Kernel died unexpectedly",this._updateStatus("dead")}}},y=async C=>{_||(_=!0,await x(C))};this._ws.onmessage=this._onWSMessage,this._ws.onopen=this._onWSOpen,this._ws.onclose=y,this._ws.onerror=y},this._onWSOpen=c=>{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=c=>{let d;try{d=this.serverSettings.serializer.deserialize(c.data,this._ws.protocol),pne.validateMessage(d)}catch(h){throw h.message=`Kernel message validation error: ${h.message}`,h}this._kernelSession=d.header.session,this._msgChain=this._msgChain.then(()=>this._handleMessage(d)).catch(h=>{h.message.startsWith("Canceled future for ")&&console.error(h)}),this._anyMessage.emit({msg:d,direction:"recv"})},this._onWSClose=c=>{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(sr.supportedKernelWebSocketProtocols),this._selectedProtocol="",this._commsOverSubshells=yf.CommsOverSubshells.PerCommTarget,this._futures=new Map,this._comms=new Map,this._targetRegistry=Object.create(null),this._info=new Xa.PromiseDelegate,this._pendingMessages=[],this._statusChanged=new Ja.Signal(this),this._connectionStatusChanged=new Ja.Signal(this),this._disposed=new Ja.Signal(this),this._iopubMessage=new Ja.Signal(this),this._anyMessage=new Ja.Signal(this),this._pendingInput=new Ja.Signal(this),this._unhandledMessage=new Ja.Signal(this),this._displayIdToParentIds=new Map,this._msgIdToDisplayIds=new Map,this._msgChain=Promise.resolve(),this._hasPendingInput=!1,this._reason="",this._noOp=()=>{},this._supportsSubshells=!1,this._name=e.model.name,this._id=e.model.id,this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:yf.ServerConnection.makeSettings(),this._kernelAPIClient=(r=e.kernelAPIClient)!==null&&r!==void 0?r:new Ik.KernelAPIClient({serverSettings:this.serverSettings}),this._kernelSpecAPIClient=(n=e.kernelSpecAPIClient)!==null&&n!==void 0?n:new mne.KernelSpecAPIClient({serverSettings:this.serverSettings}),this._clientId=(s=e.clientId)!==null&&s!==void 0?s:Xa.UUID.uuid4(),this._username=(o=e.username)!==null&&o!==void 0?o:"",this.handleComms=(a=e.handleComms)!==null&&a!==void 0?a:!0,this._commsOverSubshells=(l=e.commsOverSubshells)!==null&&l!==void 0?l:yf.CommsOverSubshells.PerCommTarget,this._subshellId=(u=e.subshellId)!==null&&u!==void 0?u:null,this._createSocket()}get disposed(){return this._disposed}get commsOverSubshells(){return this._commsOverSubshells}set commsOverSubshells(e){this._commsOverSubshells=e;for(let[t,r]of this._comms)r.commsOverSubshells=e}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 subshellId(){return this._subshellId}set subshellId(e){this._subshellId=e}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=this._kernelSpecAPIClient.get().then(e=>e.kernelspecs[this._name]),this._specPromise)}get supportsSubshells(){return this._supportsSubshells}clone(e={}){return new xf({model:this.model,username:this.username,serverSettings:this.serverSettings,handleComms:!1,kernelAPIClient:this._kernelAPIClient,commsOverSubshells:yf.CommsOverSubshells.Disabled,...e})}dispose(){if(this.isDisposed)return;let e=()=>
5{this._isDisposed=!0,this._disposed.emit(),this._updateConnectionStatus("disconnected"),this._clearKernelState(),this._pendingMessages=[],this._clearSocket(),Ja.Signal.clearData(this)};if(this._subshellId!==null){let t=this.requestDeleteSubshell({subshell_id:this._subshellId},!0);t.onReply=r=>{e()}}else e()}sendShellMessage(e,t=!1,r=!0){return this._sendKernelShellControl(Ck.KernelShellFutureHandler,e,t,r)}sendControlMessage(e,t=!1,r=!0){return this._sendKernelShellControl(Ck.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);a&&(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===vne||this._kernelSession===wd)&&sr.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!==wd)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 this._kernelAPIClient.interrupt(this.id)}
5async restart(){if(this.status==="dead")throw new Error("Kernel is dead");this._updateStatus("restarting"),this._clearKernelState(),this._kernelSession=wd,await this._kernelAPIClient.restart(this.id),await this.reconnect(),this.hasPendingInput=!1}reconnect(){this._errorIfDisposed();let e=new Xa.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 this._kernelAPIClient.shutdown(this.id),this.handleShutdown()}handleShutdown(){this._updateStatus("dead"),this.dispose()}async requestKernelInfo(){let e=sr.createMessage({msgType:"kernel_info_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:{}}),t;try{t=await Xn.handleShellMessage(this,e)}catch(n){if(this.isDisposed)return;throw n}if(this._errorIfDisposed(),!t)return;if(t.content.status===void 0&&(t.content.status="ok"),t.content.status!=="ok")return this._info.reject("Kernel info reply errored"),t;this._info.resolve(t.content),this._kernelSession=t.header.session;let r=t.content.supported_features;return this._supportsSubshells=r!==void 0&&r.includes("kernel subshells"),t}requestComplete(e){let t=sr.createMessage({msgType:"complete_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:e});return Xn.handleShellMessage(this,t)}requestInspect(e){let t=sr.createMessage({msgType:"inspect_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:e});return Xn.handleShellMessage(this,t)}requestHistory(e){let t=sr.createMessage({msgType:"history_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:e});return Xn.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=sr.createMessage({msgType:"execute_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:{...n,...e},metadata:r});return this.sendShellMessage(s,!0,t)}requestDebug(e,t=!0){let r=sr.createMessage({msgType:"debug_request",channel:"control",username:this._username,session:this._clientId,content:e});return this.sendControlMessage(r,!0,t)}requestCreateSubshell(e,t=!0){if(!this.supportsSubshells)throw new Error("Kernel subshells are not supported");let r=sr.createMessage({msgType:"create_subshell_request",channel:"control",username:this._username,session:this._clientId,content:e});return this.sendControlMessage(r,!0,t)}requestDeleteSubshell(e,t=!0){if(!this.supportsSubshells)throw new Error("Kernel subshells are not supported");let r=sr.createMessage({msgType:"delete_subshell_request",channel:"control",username:this._username,session:this._clientId,content:e});return this.sendControlMessage(r,!0,t)}requestListSubshell(e,t=!0){if(!this.supportsSubshells)throw new Error("Kernel subshells are not supported");let r=sr.createMessage({msgType:"list_subshell_request",channel:"control",username:this._username,session:this._clientId,content:e});return this.sendControlMessage(r,!0,t)}requestIsComplete(e){let t=sr.createMessage({msgType:"is_complete_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:e});return Xn.handleShellMessage(this,t)}requestCommInfo(e){let t=sr.createMessage({msgType:"comm_info_request",channel:"shell",username:this._username,session:this._clientId,subshellId:this._subshellId,content:e});return Xn.handleShellMessage(this,t)}sendInputReply(e,t){let r=sr.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=Xa.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 Sk.CommHandler(e,t,this,()=>{this._unregisterComm(t)},this._commsOverSubshells);return this._comms.set(t,r),r}hasComm(e){return this._comms.has(e)}registerCommTarget(e,t){this.handleComms&&(this._targetRegistry[e]=t)}
5removeCommTarget(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:Xa.JSONExt.deepCopy(t.header),parent_header:Xa.JSONExt.deepCopy(t.parent_header),metadata:Xa.JSONExt.deepCopy(t.metadata),content:Xa.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=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,Xn.logKernelStatus(this),this._statusChanged.emit(e),e==="dead"&&this.dispose())}_sendPending(){for(;this.connectionStatus==="connected"&&this._kernelSession!==wd&&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 Sk.CommHandler(t.target_name,t.comm_id,this,()=>{this._unregisterComm(t.comm_id)},this.commsOverSubshells);this._comms.set(t.comm_id,r);try{await(await Xn.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===wd,r=this.requestKernelInfo(),n=!1,s=()=>{n||(n=!0,t&&this._kernelSession===wd&&(this._kernelSession=""),clearTimeout(o),this._pendingMessages.length>0&&this._sendPending())};r.then(s);let o=setTimeout(s,bne)}else this._updateStatus("unknown");this._connectionStatusChanged.emit(e)}}async _handleMessage(e){var t,r;let n=!1;if(e.parent_header&&e.channel==="iopub"&&(sr.isDisplayDataMsg(e)||sr.isUpdateDisplayDataMsg(e)||sr.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=gne.PageConfig.getOption("untracked_message_types");if(JSON.parse(s||"[]").includes(e.parent_header.msg_type))break;let a=e.content.execution_state;a==="restarting"&&Promise.resolve().then(async()=>{this._updateStatus("autorestarting"),this._clearKernelState(),await this.reconnect()}),this._updateStatus(a);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=Xn.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)}};so.KernelConnection=xf;var Xn;(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})(Xn||(Xn={}))});var Ak=M(Sf=>{"use strict";
5Object.defineProperty(Sf,"__esModule",{value:!0});Sf.KernelManager=void 0;var _ne=(Xo(),Rt(ac)),kk=(tt(),Rt(br)),Tk=ws(),yne=sc(),xne=A0(),wne=ly(),Sne=_f(),wf=class extends yne.BaseManager{constructor(e={}){var t,r,n;super(e),this._commsOverSubshells=Tk.CommsOverSubshells.PerCommTarget,this._isReady=!1,this._kernelConnections=new Set,this._models=new Map,this._runningChanged=new kk.Signal(this),this._connectionFailure=new kk.Signal(this),this._kernelAPIClient=(t=e.kernelAPIClient)!==null&&t!==void 0?t:new xne.KernelAPIClient({serverSettings:this.serverSettings}),this._kernelSpecAPIClient=(r=e.kernelSpecAPIClient)!==null&&r!==void 0?r:new Sne.KernelSpecAPIClient({serverSettings:this.serverSettings}),this._pollModels=new _ne.Poll({auto:!1,factory:()=>this.requestRunning(),frequency:{interval:10*1e3,backoff:!0,max:300*1e3},name:"@jupyterlab/services:KernelManager#models",standby:(n=e.standby)!==null&&n!==void 0?n:"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=>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}}e.commsOverSubshells=this._commsOverSubshells;let s=new wne.KernelConnection({handleComms:n,...e,serverSettings:this.serverSettings,kernelAPIClient:this._kernelAPIClient,kernelSpecAPIClient:this._kernelSpecAPIClient});return this._onStarted(s),this._models.has(r)||this.refreshRunning().catch(()=>{}),s}running(){return this._models.values()}get runningCount(){return this._models.size}get commsOverSubshells(){return this._commsOverSubshells}set commsOverSubshells(e){this._commsOverSubshells=e;for(let t of this._kernelConnections)t.commsOverSubshells=e}async refreshRunning(){await this._pollModels.refresh(),await this._pollModels.tick}
5async startNew(e={},t={}){let r=await this._kernelAPIClient.startNew(e);return this.connectTo({...t,model:r})}async shutdown(e){await this._kernelAPIClient.shutdown(e),await this.refreshRunning()}async shutdownAll(){await this.refreshRunning(),await Promise.all([...this._models.keys()].map(e=>this._kernelAPIClient.shutdown(e))),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 this._kernelAPIClient.listRunning()}catch(n){throw(n instanceof Tk.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(()=>{})}};Sf.KernelManager=wf;(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})(wf||(Sf.KernelManager=wf={}))});var cy=M(hi=>{"use strict";var Mk=hi&&hi.__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]}),Cne=hi&&hi.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),uy=hi&&hi.__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)&&Mk(e,i,t);return Cne(e,i),e},Ine=hi&&hi.__exportStar||function(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Mk(e,i,t)};Object.defineProperty(hi,"__esModule",{value:!0});hi.CommsOverSubshells=hi.KernelConnection=hi.KernelAPI=hi.KernelMessage=hi.Kernel=void 0;var Ene=ry();Object.defineProperty(hi,"CommsOverSubshells",{enumerable:!0,get:function(){return Ene.CommsOverSubshells}});var kne=uy(lk());hi.Kernel=kne;var Tne=uy(bd());hi.KernelMessage=Tne;var Ane=uy(A0());hi.KernelAPI=Ane;var Mne=ly();Object.defineProperty(hi,"KernelConnection",{enumerable:!0,get:function(){return Mne.KernelConnection}});Ine(Ak(),hi)});var Dk=M(Rk=>{"use strict";Object.defineProperty(Rk,"__esModule",{value:!0})});var Lk=M(D0=>{"use strict";Object.defineProperty(D0,"__esModule",{value:!0});D0.KernelSpecManager=void 0;var Rne=Ge(),Dne=(Xo(),Rt(ac)),Ok=(tt(),Rt(br)),One=sc(),Lne=_f(),dy=class extends One.BaseManager{constructor(e={}){var t,r;super(e),this._isReady=!1,this._connectionFailure=new Ok.Signal(this),this._specs=null,this._specsChanged=new Ok.Signal(this),this._kernelSpecAPIClient=(t=e.kernelSpecAPIClient)!==null&&t!==void 0?t:new Lne.KernelSpecAPIClient({serverSettings:this.serverSettings}),this._ready=Promise.all([this.requestSpecs()]).then(n=>{}).catch(n=>{}).then(()=>{this.isDisposed||(this._isReady=!0)}),this._pollSpecs=new Dne.Poll({auto:!1,factory:()=>this.requestSpecs(),frequency:{interval:61*1e3,backoff:!0,max:300*1e3},name:"@jupyterlab/services:KernelSpecManager#specs",standby:(r=e.standby)!==null&&r!==void 0?r:"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 this._kernelSpecAPIClient.get();this.isDisposed||Rne.JSONExt.deepEqual(e,this._specs)||(this._specs=e,this._specsChanged.emit(e))}};D0.KernelSpecManager=dy});var hy=M(zr=>{"use strict";var $k=zr&&zr.__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]}),$ne=zr&&zr.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),Pk=zr&&zr.__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)&&$k(e,i,t);return $ne(e,i),e},Pne=zr&&zr.__exportStar||function(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&$k(e,i,t)};Object.defineProperty(zr,"__esModule",{value:!0});zr.KernelSpecAPI=zr.KernelSpec=void 0;var Fne=Pk(Dk());zr.KernelSpec=Fne;var Nne=Pk(_f());zr.KernelSpecAPI=Nne;Pne(Lk(),zr)});var Fk=M(O0=>{"use strict";Object.defineProperty(O0,"__esModule",{value:!0});O0.BuildManager=void 0;var fy=ci(),Za=Fr(),Bne="api/build",py=class{constructor(e={}){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:Za.ServerConnection.makeSettings()}get isAvailable(){return fy.PageConfig.getOption("buildAvailable").toLowerCase()==="true"}get shouldCheck(){return fy.PageConfig.getOption("buildCheck").toLowerCase()==="true"}getStatus(){let{_url:e,serverSettings:t}=this;return Za.ServerConnection.makeRequest(e,{},t).then(n=>{if(n.status!==200)throw new Za.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 Za.ServerConnection.makeRequest(e,r,t).then(s=>{if(s.status===400)throw new Za.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 Za.ServerConnection.ResponseError(s,o)}})}cancel(){let{_url:e,serverSettings:t}=this,r={method:"DELETE"};return Za.ServerConnection.makeRequest(e,r,t).then(s=>{if(s.status!==204)throw new Za.ServerConnection.ResponseError(s)})}get _url(){let{baseUrl:e,appUrl:t}=this.serverSettings;return fy.URLExt.join(e,t,Bne)}};O0.BuildManager=py});var vy=M(L0=>{"use strict";Object.defineProperty(L0,"__esModule",{value:!0});L0.NbConvertManager=void 0;var my=ci(),gy=Fr(),zne=Ge(),qne="api/nbconvert",Hne="nbconvert",by=class{constructor(e={}){var t;this._exportFormats=null,this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:gy.ServerConnection.makeSettings()}async fetchExportFormats(){this._requestingFormats=new zne.PromiseDelegate,this._exportFormats=null;let e=this.serverSettings.baseUrl,t=my.URLExt.join(e,qne),{serverSettings:r}=this,n=await gy.ServerConnection.makeRequest(t,{},r);if(n.status!==200)throw await gy.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}async exportAs(e){let{format:t,path:r}=e,{download:n=!1}=e.exporterOptions||{},s=this.serverSettings.baseUrl,o=my.URLExt.encodeParts(r),a=my.URLExt.join(s,Hne,t,o);n&&(a+="?download=true"),window?.open(a,"_blank","noopener")}};L0.NbConvertManager=by});var Bk=M(Nk=>{"use strict";Object.defineProperty(Nk,"__esModule",{value:!0})});var qk=M(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.validateModel=zk;If.updateLegacySessionModel=Vne;If.validateModels=Une;var jne=k0(),Cf=ff();function zk(i){(0,Cf.validateProperty)(i,"id","string"),(0,Cf.validateProperty)(i,"type","string"),(0,Cf.validateProperty)(i,"name","string"),(0,Cf.validateProperty)(i,"path","string"),(0,Cf.validateProperty)(i,"kernel","object"),(0,jne.validateModel)(i.kernel)}function Vne(i){i.path===void 0&&i.notebook!==void 0&&(i.path=i.notebook.path,i.type="notebook",i.name="")}function Une(i){if(!Array.isArray(i))throw new Error("Invalid session list");
9i.forEach(e=>zk(e))}});var F0=M(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.SessionAPIClient=qr.SESSION_SERVICE_URL=void 0;qr.listRunning=Hk;qr.getSessionUrl=P0;qr.shutdownSession=jk;qr.getSessionModel=Vk;qr.startSession=Uk;qr.updateSession=Wk;var or=Fr(),$0=ci(),Qa=qk();qr.SESSION_SERVICE_URL="api/sessions";async function Hk(i=or.ServerConnection.makeSettings()){let e=$0.URLExt.join(i.baseUrl,qr.SESSION_SERVICE_URL),t=await or.ServerConnection.makeRequest(e,{},i);if(t.status!==200)throw await or.ServerConnection.ResponseError.create(t);let r=await t.json();if(!Array.isArray(r))throw new Error("Invalid Session list");return r.forEach(n=>{(0,Qa.updateLegacySessionModel)(n),(0,Qa.validateModel)(n)}),r}function P0(i,e){let t=$0.URLExt.join(i,qr.SESSION_SERVICE_URL),r=$0.URLExt.join(t,e);if(!r.startsWith(t))throw new Error("Can only be used for services requests");return r}async function jk(i,e=or.ServerConnection.makeSettings()){var t;let r=P0(e.baseUrl,i),n={method:"DELETE"},s=await or.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 or.ServerConnection.ResponseError(s,"The kernel was deleted but the session was not");if(s.status!==204)throw await or.ServerConnection.ResponseError.create(s)}}async function Vk(i,e=or.ServerConnection.makeSettings()){let t=P0(e.baseUrl,i),r=await or.ServerConnection.makeRequest(t,{},e);if(r.status!==200)throw await or.ServerConnection.ResponseError.create(r);let n=await r.json();return(0,Qa.updateLegacySessionModel)(n),(0,Qa.validateModel)(n),n}async function Uk(i,e=or.ServerConnection.makeSettings()){let t=$0.URLExt.join(e.baseUrl,qr.SESSION_SERVICE_URL),r={method:"POST",body:JSON.stringify(i)},n=await or.ServerConnection.makeRequest(t,r,e);if(n.status!==201)throw await or.ServerConnection.ResponseError.create(n);let s=await n.json();return(0,Qa.updateLegacySessionModel)(s),(0,Qa.validateModel)(s),s}async function Wk(i,e=or.ServerConnection.makeSettings()){let t=P0(e.baseUrl,i.id),r={method:"PATCH",body:JSON.stringify(i)},n=await or.ServerConnection.makeRequest(t,r,e);if(n.status!==200)throw await or.ServerConnection.ResponseError.create(n);let s=await n.json();return(0,Qa.updateLegacySessionModel)(s),(0,Qa.validateModel)(s),s}var _y=class{constructor(e){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:or.ServerConnection.makeSettings()}async listRunning(){return Hk(this.serverSettings)}async getModel(e){return Vk(e,this.serverSettings)}async startNew(e){return Uk(e,this.serverSettings)}async shutdown(e){return jk(e,this.serverSettings)}async update(e){return Wk(e,this.serverSettings)}};qr.SessionAPIClient=_y});var Gk=M(N0=>{"use strict";Object.defineProperty(N0,"__esModule",{value:!0});N0.SessionConnection=void 0;var oo=(tt(),Rt(br)),Wne=ws(),Gne=Ge(),Kne=F0(),yy=class{constructor(e){var t,r,n,s,o;this._id="",this._path="",this._name="",this._type="",this._kernel=null,this._isDisposed=!1,this._disposed=new oo.Signal(this),this._kernelChanged=new oo.Signal(this),this._statusChanged=new oo.Signal(this),this._connectionStatusChanged=new oo.Signal(this),this._pendingInput=new oo.Signal(this),this._iopubMessage=new oo.Signal(this),this._unhandledMessage=new oo.Signal(this),this._anyMessage=new oo.Signal(this),this._propertyChanged=new oo.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:Gne.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:Wne.ServerConnection.makeSettings(),this._sessionAPIClient=(o=e.sessionAPIClient)!==null&&o!==void 0?o:new Kne.SessionAPIClient({serverSettings:this.serverSettings}),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})}oo.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 this._sessionAPIClient.shutdown(this.id),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 this._sessionAPIClient.update({...e,id:this._id});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")}};N0.SessionConnection=yy});var Yk=M(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.SessionManager=void 0;var Yne=(Xo(),Rt(ac)),Kk=(tt(),Rt(br)),Xne=Fr(),Jne=sc(),Zne=Gk(),Qne=F0(),Ef=class extends Jne.BaseManager{constructor(e){var t,r;super(e),this._isReady=!1,this._sessionConnections=new Set,this._models=new Map,this._runningChanged=new Kk.Signal(this),this._connectionFailure=new Kk.Signal(this),this._connectToKernel=n=>this._kernelManager.connectTo(n),this._kernelManager=e.kernelManager,this._sessionAPIClient=(t=e.sessionAPIClient)!==null&&t!==void 0?t:new Qne.SessionAPIClient({serverSettings:e.serverSettings}),this._pollModels=new Yne.Poll({auto:!1,factory:()=>this.requestRunning(),frequency:{interval:10*1e3,backoff:!0,max:300*1e3},name:"@jupyterlab/services:SessionManager#models",standby:(r=e.standby)!==null&&r!==void 0?r:"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 Zne.SessionConnection({...e,connectToKernel:this._connectToKernel,serverSettings:this.serverSettings,sessionAPIClient:this._sessionAPIClient});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 this._sessionAPIClient.startNew(e);return await this.refreshRunning(),this.connectTo({...t,model:r})}async shutdown(e){await this._sessionAPIClient.shutdown(e),await this.refreshRunning()}async shutdownAll(){await this.refreshRunning(),await Promise.all([...this._models.keys()].map(e=>this._sessionAPIClient.shutdown(e))),await this.refreshRunning()}async stopIfNeeded(e){try{let r=(await this._sessionAPIClient.listRunning()).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 this._sessionAPIClient.listRunning()}catch(n){throw(n instanceof Xne.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(()=>{})}};kf.SessionManager=Ef;(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})(Ef||(kf.SessionManager=Ef={}))});var xy=M(Hr=>{"use strict";var Xk=Hr&&Hr.__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]}),ese=Hr&&Hr.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),Jk=Hr&&Hr.__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)&&Xk(e,i,t);return ese(e,i),e},tse=Hr&&Hr.__exportStar||function(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Xk(e,i,t)};Object.defineProperty(Hr,"__esModule",{value:!0});Hr.SessionAPI=Hr.Session=void 0;var ise=Jk(Bk());Hr.Session=ise;var rse=Jk(F0());Hr.SessionAPI=rse;tse(Yk(),Hr)});var Cy=M(z0=>{"use strict";Object.defineProperty(z0,"__esModule",{value:!0});z0.SettingManager=void 0;var wy=ci(),nse=o0(),B0=Fr(),sse="api/settings",Sy=class extends nse.DataConnector{constructor(e={}){var t;super(),this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:B0.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}=B0.ServerConnection,a=r+n,l=Tf.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}=B0.ServerConnection,d=a+l,h=Tf.url(d,"",e==="ids"),f=await u(h,{},o);if(f.status!==200)throw new c(f);let p=await f.json(),g=(r=(t=p?.settings)===null||t===void 0?void 0:t.map(_=>_.id))!==null&&r!==void 0?r:[],v=[];return e||(v=(s=(n=p?.settings)===null||n===void 0?void 0:n.map(_=>(_.data={composite:{},user:{}},_)))!==null&&s!==void 0?s:[]),{ids:g,values:v}}async save(e,t){let{serverSettings:r}=this,{baseUrl:n,appUrl:s}=r,{makeRequest:o,ResponseError:a}=B0.ServerConnection,l=n+s,u=Tf.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)}};z0.SettingManager=Sy;var Tf;(function(i){function e(t,r,n){let s=n?wy.URLExt.objectToQueryString({ids_only:!0}):"",o=wy.URLExt.join(t,sse),a=wy.URLExt.join(o,r);if(!a.startsWith(o))throw new Error("Can only be used for workspaces requests");return`${a}${s}`}i.url=e})(Tf||(Tf={}))});var Rf=M(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.TerminalAPIClient=kn.TERMINAL_SERVICE_URL=void 0;kn.isAvailable=Ey;kn.startNew=Zk;kn.listRunning=Qk;kn.shutdownTerminal=e5;var Af=ci(),ao=Fr();kn.TERMINAL_SERVICE_URL="api/terminals";function Ey(){return String(Af.PageConfig.getOption("terminalsAvailable")).toLowerCase()==="true"}async function Zk(i=ao.ServerConnection.makeSettings(),e,t){Mf.errorIfNotAvailable();let r=Af.URLExt.join(i.baseUrl,kn.TERMINAL_SERVICE_URL),n={method:"POST",body:JSON.stringify({name:e,cwd:t})}
9,s=await ao.ServerConnection.makeRequest(r,n,i);if(s.status!==200)throw await ao.ServerConnection.ResponseError.create(s);return await s.json()}async function Qk(i=ao.ServerConnection.makeSettings()){Mf.errorIfNotAvailable();let e=Af.URLExt.join(i.baseUrl,kn.TERMINAL_SERVICE_URL),t=await ao.ServerConnection.makeRequest(e,{},i);if(t.status!==200)throw await ao.ServerConnection.ResponseError.create(t);let r=await t.json();if(!Array.isArray(r))throw new Error("Invalid terminal list");return r}async function e5(i,e=ao.ServerConnection.makeSettings()){var t;Mf.errorIfNotAvailable();let r=Af.URLExt.join(e.baseUrl,kn.TERMINAL_SERVICE_URL),n=Af.URLExt.join(r,i);if(!n.startsWith(r))throw new Error("Can only be used for terminal requests");let s={method:"DELETE"},o=await ao.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 ao.ServerConnection.ResponseError.create(o)}var Iy=class{constructor(e={}){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:ao.ServerConnection.makeSettings()}get isAvailable(){return Ey()}async startNew(e={}){let{name:t,cwd:r}=e;return Zk(this.serverSettings,t,r)}async listRunning(){return Qk(this.serverSettings)}async shutdown(e){return e5(e,this.serverSettings)}};kn.TerminalAPIClient=Iy;var Mf;(function(i){function e(){if(!Ey())throw new Error("Terminals Unavailable")}i.errorIfNotAvailable=e})(Mf||(Mf={}))});var t5=M(q0=>{"use strict";Object.defineProperty(q0,"__esModule",{value:!0});q0.isAvailable=void 0;var ose=Rf();Object.defineProperty(q0,"isAvailable",{enumerable:!0,get:function(){return ose.isAvailable}})});var i5=M(j0=>{"use strict";Object.defineProperty(j0,"__esModule",{value:!0});j0.TerminalConnection=void 0;var ase=ci(),lse=Ge(),H0=(tt(),Rt(br)),use=ws(),cse=Rf(),Df=class{constructor(e){var t,r;this._createSocket=()=>{this._errorIfDisposed(),this._clearSocket(),this._updateConnectionStatus("connecting");let n=this._name,s=this.serverSettings,o=ase.URLExt.join(s.wsUrl,"terminals","websocket",encodeURIComponent(n)),a=s.token;s.appendToken&&a!==""&&(o=o+`?token=${encodeURIComponent(a)}`),this._ws=new s.WebSocket(o),this._ws.onmessage=this._onWSMessage,this._ws.onclose=this._onWSClose,this._ws.onerror=this._onWSClose},this._onWSMessage=n=>{if(this._isDisposed)return;let s=JSON.parse(n.data);if(s[0]==="disconnect"&&this.dispose(),this._connectionStatus==="connecting"){s[0]==="setup"&&this._updateConnectionStatus("connected");return}this._messageReceived.emit({type:s[0],content:s.slice(1)})},this._onWSClose=n=>{console.warn(`Terminal websocket closed: ${n.code}`),this.isDisposed||this._reconnect()},this._connectionStatus="connecting",this._connectionStatusChanged=new H0.Signal(this),this._isDisposed=!1,this._disposed=new H0.Signal(this),this._messageReceived=new H0.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:use.ServerConnection.makeSettings(),this._terminalAPIClient=(r=e.terminalAPIClient)!==null&&r!==void 0?r:new cse.TerminalAPIClient({serverSettings:this.serverSettings}),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(),H0.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 lse.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=ky.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 this._terminalAPIClient.shutdown(this.name),this.dispose()}clone(){return new Df({model:this.model,serverSettings:this.serverSettings,terminalAPIClient:this._terminalAPIClient})}_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}};j0.TerminalConnection=Df;var ky;(function(i){function e(t,r){return t=Math.ceil(t),r=Math.floor(r),Math.floor(Math.random()*(r-t+1))+t}i.getRandomIntInclusive=e})(ky||(ky={}))});var n5=M(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.TerminalManager=void 0;var dse=(Xo(),Rt(ac)),r5=(tt(),Rt(br)),hse=ws(),fse=sc(),pse=Rf(),mse=i5(),Of=class extends fse.BaseManager{constructor(e={}){var t,r;if(super(e),this._isReady=!1,this._names=[],this._terminalConnections=new Set,this._runningChanged=new r5.Signal(this),this._connectionFailure=new r5.Signal(this),this._terminalAPIClient=(t=e.terminalAPIClient)!==null&&t!==void 0?t:new pse.TerminalAPIClient({serverSettings:this.serverSettings}),!this.isAvailable()){this._ready=Promise.reject("Terminals unavailable"),this._ready.catch(s=>{});return}let n=this._pollModels=new dse.Poll({auto:!1,factory:()=>this.requestRunning(),frequency:{interval:10*1e3,backoff:!0,max:300*1e3},name:"@jupyterlab/services:TerminalManager#models",standby:(r=e.standby)!==null&&r!==void 0?r:"when-hidden"});this._ready=(async()=>{await n.start(),await n.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(){var e;this.isDisposed||(this._names.length=0,this._terminalConnections.forEach(t=>t.dispose()),(e=this._pollModels)===null||e===void 0||e.dispose(),super.dispose())}isAvailable(){return this._terminalAPIClient.isAvailable}connectTo(e){let t=new mse.TerminalConnection({...e,serverSettings:this.serverSettings,terminalAPIClient:this._terminalAPIClient});return this._onStarted(t),this._names.includes(e.model.name)||this.refreshRunning().catch(()=>{}),t}running(){return this._models[Symbol.iterator]()}async refreshRunning(){this._pollModels&&(await this._pollModels.refresh(),await this._pollModels.tick)}async startNew(e={}){let{name:t,cwd:r}=e,n=await this._terminalAPIClient.startNew({name:t,cwd:r});return await this.refreshRunning(),this.connectTo({model:n})}async shutdown(e){await this._terminalAPIClient.shutdown(e),await this.refreshRunning()}async shutdownAll(){await this.refreshRunning(),await Promise.all(this._names.map(e=>this._terminalAPIClient.shutdown(e))),await this.refreshRunning()}async requestRunning(){var e,t;let r;try{r=await this._terminalAPIClient.listRunning()}catch(s){throw(s instanceof hse.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=>
9{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}))}};Lf.TerminalManager=Of;(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})(Of||(Lf.TerminalManager=Of={}))});var Ty=M(jr=>{"use strict";var s5=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]}),gse=jr&&jr.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),o5=jr&&jr.__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)&&s5(e,i,t);return gse(e,i),e},bse=jr&&jr.__exportStar||function(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&s5(e,i,t)};Object.defineProperty(jr,"__esModule",{value:!0});jr.TerminalAPI=jr.Terminal=void 0;var vse=o5(t5());jr.Terminal=vse;var _se=o5(Rf());jr.TerminalAPI=_se;bse(n5(),jr)});var l5=M(a5=>{"use strict";Object.defineProperty(a5,"__esModule",{value:!0})});var My=M(V0=>{"use strict";Object.defineProperty(V0,"__esModule",{value:!0});V0.UserAPIClient=void 0;var u5=Fr(),yse=ci(),xse="api/me",Ay=class{constructor(e={}){var t;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:u5.ServerConnection.makeSettings()}async get(){let{baseUrl:e}=this.serverSettings,{makeRequest:t,ResponseError:r}=u5.ServerConnection,n=yse.URLExt.join(e,xse),s=await t(n,{},this.serverSettings);if(s.status!==200)throw await r.create(s);return await s.json()}};V0.UserAPIClient=Ay});var d5=M(U0=>{"use strict";Object.defineProperty(U0,"__esModule",{value:!0});U0.UserManager=void 0;var wse=Ge(),Sse=(Xo(),Rt(ac)),c5=(tt(),Rt(br)),Cse=sc(),Ise=My(),Ry="@jupyterlab/services:UserManager#user",Dy=class extends Cse.BaseManager{constructor(e={}){var t,r;super(e),this._isReady=!1,this._userChanged=new c5.Signal(this),this._connectionFailure=new c5.Signal(this),this._userApiClient=(t=e.userApiClient)!==null&&t!==void 0?t:new Ise.UserAPIClient({serverSettings:this.serverSettings}),this._ready=this.requestUser().then(()=>{this.isDisposed||(this._isReady=!0)}).catch(n=>new Promise(()=>{})),this._pollUser=new Sse.Poll({auto:!1,factory:()=>this.requestUser(),frequency:{interval:61*1e3,backoff:!0,max:300*1e3},name:Ry,standby:(r=e.standby)!==null&&r!==void 0?r:"when-hidden"}),this.ready.then(()=>{this._pollUser.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._pollUser.dispose(),super.dispose()}async refreshUser(){await this._pollUser.refresh(),await this._pollUser.tick}async requestUser(){if(this.isDisposed)return;let e={identity:this._identity,permissions:this._permissions},t=await this._userApiClient.get(),r=t.identity,{localStorage:n}=window,s=n.getItem(Ry);if(s&&(!r.initials||!r.color)){let o=JSON.parse(s);r.initials=r.initials||o.initials||r.name.substring(0,1),r.color=r.color||o.color||Oy.getRandomColor()}wse.JSONExt.deepEqual(t,e)||(this._identity=r,this._permissions=t.permissions,n.setItem(Ry,JSON.stringify(r)),this._userChanged.emit(t))}};U0.UserManager=Dy;var Oy;(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)]})(Oy||(Oy={}))});var Ly=M(Vr=>{"use strict";var h5=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]}),Ese=Vr&&Vr.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),f5=Vr&&Vr.__importStar||function(i){if(i&&i.__esModule)return i;var e={};
9if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&h5(e,i,t);return Ese(e,i),e},kse=Vr&&Vr.__exportStar||function(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&h5(e,i,t)};Object.defineProperty(Vr,"__esModule",{value:!0});Vr.UserAPI=Vr.User=void 0;var Tse=f5(l5());Vr.User=Tse;var Ase=f5(My());Vr.UserAPI=Ase;kse(d5(),Vr)});var Py=M(W0=>{"use strict";Object.defineProperty(W0,"__esModule",{value:!0});W0.WorkspaceManager=void 0;var p5=ci(),Mse=o0(),$f=Fr(),Rse="api/workspaces",$y=class extends Mse.DataConnector{constructor(e={}){var t;super(),this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:$f.ServerConnection.makeSettings()}async fetch(e){let{serverSettings:t}=this,{baseUrl:r,appUrl:n}=t,{makeRequest:s,ResponseError:o}=$f.ServerConnection,a=r+n,l=Sd.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}=$f.ServerConnection,o=t+r,a=Sd.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}=$f.ServerConnection,a=r+n,l=Sd.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}=$f.ServerConnection,l=n+s,u=Sd.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)}};W0.WorkspaceManager=$y;var Sd;(function(i){function e(t,r){let n=p5.URLExt.join(t,Rse),s=p5.URLExt.join(n,r);if(!s.startsWith(n))throw new Error("Can only be used for workspaces requests");return s}i.url=e})(Sd||(Sd={}))});var g5=M(G0=>{"use strict";Object.defineProperty(G0,"__esModule",{value:!0});G0.ServiceManager=void 0;var m5=(tt(),Rt(br)),Dse=Fk(),Ose=Q_(),Lse=iy(),$se=cy(),Pse=hy(),Fse=vy(),Nse=Fr(),Bse=xy(),zse=Cy(),qse=Ty(),Hse=Ly(),jse=Py(),Fy=class{constructor(e={}){var t,r;this._isDisposed=!1,this._connectionFailure=new m5.Signal(this),this._isReady=!1;let n=e.defaultDrive,s=(t=e.serverSettings)!==null&&t!==void 0?t:Nse.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 Ose.ContentsManager(a),this.events=e.events||new Lse.EventManager(a),this.kernels=e.kernels||new $se.KernelManager(a),this.sessions=e.sessions||new Bse.SessionManager({...a,kernelManager:this.kernels}),this.settings=e.settings||new zse.SettingManager(a),this.terminals=e.terminals||new qse.TerminalManager(a),this.builder=e.builder||new Dse.BuildManager(a),this.workspaces=e.workspaces||new jse.WorkspaceManager(a),this.nbconvert=e.nbconvert||new Fse.NbConvertManager(a),this.kernelspecs=e.kernelspecs||new Pse.KernelSpecManager(a),this.user=e.user||new Hse.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,m5.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)}};G0.ServiceManager=Fy});var b5=M(dt=>{"use strict";
9Object.defineProperty(dt,"__esModule",{value:!0});dt.IWorkspaceManager=dt.IUserManager=dt.ITerminalManager=dt.IServiceManager=dt.ISettingManager=dt.ISessionManager=dt.IServerSettings=dt.INbConvertManager=dt.IKernelSpecManager=dt.IKernelManager=dt.IEventManager=dt.IDefaultDrive=dt.IDefaultContentProvider=dt.IContentsManager=dt.IConfigSectionManager=dt.IConnectionStatus=void 0;var _r=Ge();dt.IConnectionStatus=new _r.Token("@jupyterlab/application:IConnectionStatus","A service providing the application connection status.");dt.IConfigSectionManager=new _r.Token("@jupyterlab/services:IConfigSectionManager","A service providing the config section manager.");dt.IContentsManager=new _r.Token("@jupyterlab/services:IContentsManager","The contents manager token.");dt.IDefaultContentProvider=new _r.Token("@jupyterlab/services:IDefaultContentProvider","The default content provider for the contents manager.");dt.IDefaultDrive=new _r.Token("@jupyterlab/services:IDefaultDrive","The default drive for the contents manager.");dt.IEventManager=new _r.Token("@jupyterlab/services:IEventManager","The event manager token.");dt.IKernelManager=new _r.Token("@jupyterlab/services:IKernelManager","The kernel manager token.");dt.IKernelSpecManager=new _r.Token("@jupyterlab/services:IKernelSpecManager","The kernel spec manager token.");dt.INbConvertManager=new _r.Token("@jupyterlab/services:INbConvertManager","The nbconvert manager token.");dt.IServerSettings=new _r.Token("@jupyterlab/services:IServerSettings","The server settings for the application.");dt.ISessionManager=new _r.Token("@jupyterlab/services:ISessionManager","The session manager token.");dt.ISettingManager=new _r.Token("@jupyterlab/services:ISettingManager","The setting manager token.");dt.IServiceManager=new _r.Token("@jupyterlab/services:IServiceManager","The service manager for the application.");dt.ITerminalManager=new _r.Token("@jupyterlab/services:ITerminalManager","The terminal manager token.");dt.IUserManager=new _r.Token("@jupyterlab/services:IUserManager","The user manager token.");dt.IWorkspaceManager=new _r.Token("@jupyterlab/services:IWorkspaceManager","The workspace manager token.")});var ws=M(ei=>{"use strict";var Vse=ei&&ei.__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]}),yr=ei&&ei.__exportStar||function(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Vse(e,i,t)};Object.defineProperty(ei,"__esModule",{value:!0});yr(sc(),ei);yr(QE(),ei);yr(ek(),ei);yr(Q_(),ei);yr(iy(),ei);yr(cy(),ei);yr(hy(),ei);yr(g5(),ei);yr(Fr(),ei);yr(xy(),ei);yr(Cy(),ei);yr(Ty(),ei);yr(b5(),ei);yr(Ly(),ei);yr(Py(),ei);yr(vy(),ei)});var Use,Ny=b(()=>{Use=N(ws())});var By,Pf,wke,Ske,Ff=b(()=>{By=N(Ge());Ny();Pf="en",wke=new By.Token("@jupyterlab/translation:ITranslatorConnector","A service to connect to the server translation endpoint."),Ske=new By.Token("@jupyterlab/translation:ITranslator","A service to translate strings.")});function cc(i){return i.replace("-","_")}var zy=b(()=>{});var Cs,K0=b(()=>{Ff();zy();Cs=class{constructor(e){e=e||{},this._defaults={domain:"messages",locale:document.documentElement.getAttribute("lang")||Pf,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=cc(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=cc(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=cc(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=cc(e)||this._domain;let a,l=t?t+this._contextDelimiter+r:r,u={pluralForm:!1},c=!1,d=this._locale,h=this.expandLocale(this._locale);for(let p in h)if(d=h[p],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 f=c?a:[r,n];return this.t(f,s,u,...o)}expandLocale(e){let t=[e],r=e.lastIndexOf("-");for(;r>0;
9)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(Cs.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+Cs.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+Cs.strfmt(this.removeContext(e[s.plural]),...[t].concat(n))}setMessages(e,t,r,n){e=cc(e),n&&(this._pluralForms[t]=n),this._dictionary[e]||(this._dictionary[e]={}),this._dictionary[e][t]=r}}});var qy,Hy,St,v5=b(()=>{K0();Ff();qy=class{constructor(e){this.languageCode=Pf,this._languageBundle=e}load(e){return this._languageBundle}},Hy=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 Cs.strfmt(e,...t)}ngettext(e,t,r,...n){return Cs.strfmt(r==1?e:t,...[r].concat(n))}pgettext(e,t,...r){return Cs.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)}},St=new qy(new Hy)});var _5=b(()=>{K0();Ff();zy()});var Jn=b(()=>{v5();K0();_5();Ny();Ff()});var x5,y5=b(()=>{x5="/intro-to-transformers/build/_assets/bad-FQMIYYET.svg"});var S5,w5=b(()=>{S5="/intro-to-transformers/build/_assets/blank-US55MPOI.svg"});var Y0,jy=b(()=>{Y0="/intro-to-transformers/build/_assets/refresh-6QLTU3ED.svg"});var R5={};ic(R5,{Cache:()=>Zn,FreeStyle:()=>Id,Rule:()=>dc,Selector:()=>J0,Style:()=>Cd,create:()=>toe});function Xse(i){return i.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).replace(/^ms-/,"-ms-")}function Jse(i){let e=5381,t=i.length;for(;t--;)e=e*33^i.charCodeAt(t);return(e>>>0).toString(36)}function C5(i,e){return e&&typeof e=="number"&&!T5[i]?`${i}:${e}px`:`${i}:${e}`}function I5(i){return i.sort((e,t)=>e[0]>t[0]?1:-1)}function Zse(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]
9):t.push([Xse(s),o]))}return{style:Qse(I5(t)),nested:e?r:I5(r),isUnique:!!i.$unique}}function Qse(i){return i.map(([e,t])=>Array.isArray(t)?t.map(r=>C5(e,r)).join(";"):C5(e,t)).join(";")}function A5(i,e){return i.indexOf("&")===-1?`${e} ${i}`:i.replace(/&/g,e)}function Nf(i,e,t,r,n){let{style:s,nested:o,isUnique:a}=Zse(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+Nf(c,d,u.rules,u.styles,n)}else{let u=n?A5(i,n):i;s&&r.push({selector:u,style:s,isUnique:a});for(let[c,d]of o)l+=c+Nf(c,d,t,r,u)}return l}function X0(i,e,t,r,n,s){for(let{selector:o,style:a,isUnique:l}of r){let u=s?A5(o,n):o,c=l?`u\0${(++k5).toString(36)}`:`s\0${e}\0${a}`,d=new Cd(a,c);d.add(new J0(u,`k\0${e}\0${u}`)),i.add(d)}for(let{selector:o,style:a,rules:l,styles:u}of t){let c=new dc(o,a,`r\0${e}\0${o}\0${a}`);X0(c,e,l,u,n,s),i.add(c)}}function M5(i){let e="";for(let t=0;t<i.length;t++)e+=i[t];return e}function E5(i,e){let t=`f${Jse(i)}`;return t}function toe(i){return new Id(`f${(++k5).toString(36)}`,i)}var k5,T5,Yse,eoe,Zn,J0,Cd,dc,Id,D5=b(()=>{k5=0,T5=Object.create(null),Yse=["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 Yse)for(let e of["-webkit-","-ms-","-moz-","-o-",""])T5[e+i]=!0;eoe={add:()=>{},change:()=>{},remove:()=>{}},Zn=class{constructor(e=eoe){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)}},J0=class{constructor(e,t){this.selector=e,this.id=t}getStyles(){return this.selector}clone(){return this}},Cd=class extends Zn{constructor(e,t){super(),this.style=e,this.id=t}getStyles(){return`${this.sheet.join(",")}{${this.style}}`}clone(){return new Cd(this.style,this.id).merge(this)}},dc=class extends Zn{constructor(e,t,r){super(),this.rule=e,this.style=t,this.id=r}getStyles(){return`${this.rule}{${this.style}${M5(this.sheet)}}`}clone(){return new dc(this.rule,this.style,this.id).merge(this)}};Id=class extends Zn{constructor(e,t){super(t),this.id=e}registerStyle(e){let t=[],r=[],n=Nf("&",e,t,r),s=E5(n,e),o=`.${s}`;return X0(this,n,t,r,o,!0),s}registerKeyframes(e){return this.registerHashRule("@keyframes",e)}registerHashRule(e,t){let r=[],n=[],s=Nf("",t,r,n),o=E5(s,t),a=`${e} ${o}`,l=new dc(a,"",`h\0${s}\0${e}`);return X0(l,s,r,n,"",!1),this.add(l),o}registerRule(e,t){let r=[],n=[],s=Nf(e,t,r,n);X0(this,s,r,n,"",!1)}registerCss(e){return this.registerRule("",e)}getStyles(){return M5(this.sheet)}clone(){return new Id(this.id,this.changes).merge(this)}}});var L5=M(Z0=>{"use strict";Object.defineProperty(Z0,"__esModule",{value:!0});function O5(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]=O5(o)}}else t==="$debugName"?e.$displayName=r:e[t]=r}return e}Z0.convertToStyles=O5;function ioe(i){var e={};for(var t in i)t!=="$debugName"&&(e[t]=i[t]);return i.$debugName&&(e.$displayName=i.$debugName),e}Z0.convertToKeyframes=ioe});var Vy=M(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.raf=typeof requestAnimationFrame>"u"?function(i){return setTimeout(i)}:typeof window>"u"?requestAnimationFrame:requestAnimationFrame.bind(window);function roe(){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(" ")}Ed.classes=roe;function eg(){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?eg(t.$nest,a):a:o.indexOf("&")!==-1||o.indexOf("@media")===0?t[o]=t[o]?eg(t[o],a):a:t[o]=a)}}return t}Ed.extend=eg;Ed.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: "+Q0(i.minWidth)+")"),i.maxWidth&&n.push("(max-width: "+Q0(i.maxWidth)+")"),i.minHeight&&n.push("(min-height: "+Q0(i.minHeight)+")"),i.maxHeight&&n.push("(max-height: "+Q0(i.maxHeight)+")"),i.prefersColorScheme&&n.push("(prefers-color-scheme: "+i.prefersColorScheme+")");var s="@media "+n.join(" and "),o={$nest:(e={},e[s]=eg.apply(void 0,t),e)};return o};var Q0=function(i){return typeof i=="string"?i:i+"px"}});var P5=M(Gy=>{"use strict";Object.defineProperty(Gy,"__esModule",{value:!0});var noe=(D5(),Rt(R5)),Uy=L5(),Wy=Vy(),$5=function(){return noe.create()},soe=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(Wy.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=$5();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=$5();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;Wy.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(Wy.extend.apply(void 0,arguments)));return this._styleUpdated(),e},i}();Gy.TypeStyle=soe});var N5=M(F5=>{"use strict";Object.defineProperty(F5,"__esModule",{value:!0})});var B5=M(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});var Ky=P5();Ki.TypeStyle=Ky.TypeStyle;var ooe=N5();Ki.types=ooe;var Yy=Vy();Ki.extend=Yy.extend;Ki.classes=Yy.classes;Ki.media=Yy.media;var lo=new Ky.TypeStyle({autoGenerateTag:!0});Ki.setStylesTarget=lo.setStylesTarget;Ki.cssRaw=lo.cssRaw;Ki.cssRule=lo.cssRule;Ki.forceRenderStyles=lo.forceRenderStyles;Ki.fontFace=lo.fontFace;Ki.getStyles=lo.getStyles;Ki.keyframes=lo.keyframes;Ki.reinit=lo.reinit;Ki.style=lo.style;Ki.stylesheet=lo.stylesheet;function aoe(i){var e=new Ky.TypeStyle({autoGenerateTag:!1});return i&&e.setStylesTarget(i),e}Ki.createTypeStyle=aoe});var z5,Tn,q5=b(()=>{z5=N(B5());(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(h){return{container:{alignItems:"center",display:"flex"},element:{display:"block",...h}}}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(h){return{element:{height:h,width:h}}}let s={small:n("14px"),normal:n("16px"),large:n("20px"),xlarge:n("24px")};function o(h){return{container:Object.assign({},...h.map(f=>f.container)),element:Object.assign({},...h.map(f=>f.element))}}function a(h){return h?(Array.isArray(h)||(h=[h]),h.map(f=>typeof f=="string"?e[f]:f)):[]}function l(h){let f=Object.assign({},...h.map(p=>p.options));return f.elementPosition&&h.unshift(r[f.elementPosition]),f.elementSize&&h.unshift(s[f.elementSize]),o(h
9)}function u(h){var f;return(0,z5.style)({...h.container,$nest:{...(f=h.container)===null||f===void 0?void 0:f.$nest,svg:h.element}})}let c=new Map;function d(h){if(!h||Object.keys(h).length===0)return"";let{elementPosition:f,elementSize:p,stylesheet:g,...v}=h,_={...f&&{elementPosition:f},...p&&{elementSize:p}},x=typeof g=="string"&&Object.keys(v).length===0,y=x?[g,f,p].join(","):"";if(x&&c.has(y))return c.get(y);let C=a(g);C.push({element:v,options:_});let S=u(l(C));return x&&c.set(y,S),S}i.styleClass=d})(Tn||(Tn={}))});var Bf=b(()=>{q5()});function loe(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 fi(...i){return loe(i).join(" ")}function j5(i,{ignore:e=[]}={}){return i.getAttributeNames().reduce((t,r)=>(r==="style"||e.includes(r)||(r.startsWith("data")||r.startsWith("aria")?t[r]=i.getAttribute(r):t[H5.Text.camelCase(r)]=i.getAttribute(r)),t),{})}var H5,Jo=b(()=>{H5=N(ci())});var V5,wi,U5,q,uo,uoe,coe,Xy=b(()=>{V5=N(Ge());tt();wi=N(ue()),U5=N(eE());y5();w5();jy();Bf();Jo();q=class{static remove(e){for(;e.firstChild;)e.firstChild.remove();return e.className="",e}static resolve({icon:e}){if(e instanceof q)return e;if(typeof e=="string"){let t=q._instances.get(e);return t||(q._debug&&console.warn(`Lookup failed for icon, creating loading icon. icon: ${e}`),new q({name:e,svgstr:Y0,_loading:!0}))}return new q(e)}static resolveElement({icon:e,iconClass:t,fallback:r,...n}){return uo.isResolvable(e)?q.resolve({icon:e}).element(n):!t&&r?r.element(n):(n.className=fi(t,n.className),uo.blankElement(n))}static resolveReact({icon:e,iconClass:t,fallback:r,...n}){if(!uo.isResolvable(e))return!t&&r?wi.default.createElement(r.react,{...n}):(n.className=fi(t,n.className),wi.default.createElement(uo.blankReact,{...n}));let s=q.resolve({icon:e});return wi.default.createElement(s.react,{...n})}static resolveSvg({name:e,svgstr:t}){let r=new DOMParser().parseFromString(uo.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 q._debug?(console.error(s),n):(console.warn(s),null)}else return r.documentElement}static toggleDebug(e){q._debug=e??!q._debug}constructor({name:e,svgstr:t,render:r,unrender:n,_loading:s=!1}){if(this._props={},this._svgReplaced=new G(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}`),uoe;if(this._loading=s,q._instances.has(e)){let o=q._instances.get(e);return this._loading?(o.svgstr=t,this._loading=!1,o):(q._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}),q._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),uo.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];typeof 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=j5(this.svgElement,{ignore:["data-icon-id"]})),this._svgReactAttrs}get svgstr(){return this._svgstr}set svgstr(e){this._svgstr=e;let t=V5.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))}
10),this._svgReplaced.emit()}_initReact(e){let t=wi.default.forwardRef((r={},n)=>{let{className:s,container:o,label:a,title:l,slot:u,tag:c="div",...d}={...this._props,...r},[,h]=wi.default.useState(this._uuid);wi.default.useEffect(()=>{let v=()=>{h(this._uuid)};return this._svgReplaced.connect(v),()=>{this._svgReplaced.disconnect(v)}});let f=c??wi.default.Fragment;if(!(this.svgInnerHTML&&this.svgReactAttrs))return wi.default.createElement(wi.default.Fragment,null);let p={...this.svgReactAttrs};c||Object.assign(p,{className:s||d?fi(s,Tn.styleClass(d)):void 0,title:l,slot:u});let g=wi.default.createElement("svg",{...p,...this.svgReactAttrs,dangerouslySetInnerHTML:{__html:this.svgInnerHTML},ref:n});if(o)return uo.initContainer({container:o,className:s,styleProps:d,title:l}),wi.default.createElement(wi.default.Fragment,null,g,a);{let v={};return f!==wi.default.Fragment&&(v={className:s||d?fi(s,Tn.styleClass(d)):void 0,title:l,slot:u}),wi.default.createElement(f,{...v},g,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=q.resolveSvg(this);return r&&(r.tagName!=="parsererror"&&(r.dataset.icon=this.name,t&&(r.dataset.iconId=t),e?uo.setTitleSvg(r,e):r.setAttribute("aria-hidden","true")),r)}};q._debug=!1;q._instances=new Map;(function(i){function e({className:u="",container:c,label:d,title:h,tag:f="div",slot:p,...g}){if(c?.className===u)return c;if(c)for(;c.firstChild;)c.firstChild.remove();else c=document.createElement(f??"div");return d!=null&&(c.textContent=d),i.initContainer({container:c,className:u,styleProps:g,title:h}),c}i.blankElement=e,i.blankReact=wi.default.forwardRef(({className:u="",container:c,label:d,title:h,tag:f="div",...p},g)=>{let v=f??"div";return c?(t({container:c,className:u,styleProps:p,title:h}),wi.default.createElement(wi.default.Fragment,null)):wi.default.createElement(v,{className:fi(u,Tn.styleClass(p))},g&&coe.react({ref:g}),d)}),i.blankReact.displayName="BlankReact";function t({container:u,className:c,styleProps:d,title:h}){h!=null&&(u.title=h);let f=Tn.styleClass(d);if(c!=null){let p=fi(c,f);return u.className=p,p}else return f?(u.classList.add(f),f):""}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 h=document.createElement("title");h.textContent=c,u.appendChild(h)}}i.setTitleSvg=n;function s(u,c=!0){let[,d,h]=decodeURIComponent(u).replace(/>\s*\n\s*</g,"><").replace(/\s*\n\s*/g," ").match(c?/^(?:data:.*?(;base64)?,)?(.*)/:/(?:(base64).*)?(<svg.*)/);return d?atob(h):h}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 h,f;let p=(h=d?.children)===null||h===void 0?void 0:h[0];typeof p!="string"&&(p=void 0),this._icon.element({container:c,label:p,...(f=this._rendererOptions)===null||f===void 0?void 0:f.props,...d?.props})}}i.ElementRenderer=a;class l extends o{constructor(){super(...arguments),this._rootDOM=null}render(c,d){var h,f;let p=(h=d?.children)===null||h===void 0?void 0:h[0];typeof p!="string"&&(p=void 0);let g=this._icon;this._rootDOM!==null&&this._rootDOM.unmount(),this._rootDOM=(0,U5.createRoot)(c),this._rootDOM.render(wi.default.createElement(g.react,{container:c,label:p,...(f=this._rendererOptions)===null||f===void 0?void 0:f.props,...d?.props}))}unrender(c){this._rootDOM!==null&&(this._rootDOM.unmount(),this._rootDOM=null)}}i.ReactRenderer=l})(uo||(uo={}));uoe=new q({name:"ui-components:bad",svgstr:x5}),coe=new q({name:"ui-components:blank",svgstr:S5})});var G5,W5=b(()=>{G5="/intro-to-transformers/build/_assets/add-above-DJUVZDA6.svg"});var Y5,K5=b(()=>{Y5="/intro-to-transformers/build/_assets/add-below-JUD23Q32.svg"});var J5,X5=b(()=>{J5="/intro-to-transformers/build/_assets/add-EXEHS4L2.svg"});var Q5,Z5=b(()=>{Q5="/intro-to-transformers/build/_assets/audio-EHWPVEAB.svg"});var tT,eT=b(()=>{tT="/intro-to-transformers/build/_assets/bell-UZR6IG3E.svg"});var rT,iT=b(()=>{rT="/intro-to-transformers/build/_assets/breakpoint-ESAUWSLU.svg"});var sT,nT=b(()=>{sT="/intro-to-transformers/build/_assets/bug-dot-RWRZ6PJ5.svg"});var aT,oT=b(()=>{aT="/intro-to-transformers/build/_assets/bug-TFP464KX.svg"});var uT,lT=b(()=>{uT="/intro-to-transformers/build/_assets/build-5VK2B6YU.svg"});var dT,cT=b(()=>{dT="/intro-to-transformers/build/_assets/caret-down-empty-PDAJTPAD.svg"});var fT,hT=b(()=>{fT="/intro-to-transformers/build/_assets/caret-down-empty-thin-WDJR4YZW.svg"});var mT,pT=b(()=>{mT="/intro-to-transformers/build/_assets/caret-down-O345KY3P.svg"});var bT,gT=b(()=>{bT="/intro-to-transformers/build/_assets/caret-left-LIM3NHXF.svg"});var _T,vT=b(()=>{_T="/intro-to-transformers/build/_assets/caret-right-7TSVDNQT.svg"});var xT,yT=b(()=>{xT="/intro-to-transformers/build/_assets/caret-up-empty-thin-CZ3TJKGB.svg"});var ST,wT=b(()=>{ST="/intro-to-transformers/build/_assets/caret-up-AOF2BNFW.svg"});var IT,CT=b(()=>{IT="/intro-to-transformers/build/_assets/case-sensitive-SYZQ2IQZ.svg"});var kT,ET=b(()=>{kT="/intro-to-transformers/build/_assets/check-JMGWD44E.svg"});var AT,TT=b(()=>{AT="/intro-to-transformers/build/_assets/circle-empty-4T5YPCG7.svg"});
10var RT,MT=b(()=>{RT="/intro-to-transformers/build/_assets/circle-TBRY7AKG.svg"});var OT,DT=b(()=>{OT="/intro-to-transformers/build/_assets/cleaning-VHKWIOHC.svg"});var $T,LT=b(()=>{$T="/intro-to-transformers/build/_assets/clear-SYYJCOUN.svg"});var FT,PT=b(()=>{FT="/intro-to-transformers/build/_assets/close-all-QYKV7C7H.svg"});var BT,NT=b(()=>{BT="/intro-to-transformers/build/_assets/close-NU2KBLEM.svg"});var qT,zT=b(()=>{qT="/intro-to-transformers/build/_assets/code-check-S36ZPFM6.svg"});var jT,HT=b(()=>{jT="/intro-to-transformers/build/_assets/code-5H26NJU2.svg"});var UT,VT=b(()=>{UT="/intro-to-transformers/build/_assets/collapse-all-EHMBEKE7.svg"});var GT,WT=b(()=>{GT="/intro-to-transformers/build/_assets/collapse-RSBQCHOJ.svg"});var YT,KT=b(()=>{YT="/intro-to-transformers/build/_assets/console-RIJDZ7YO.svg"});var JT,XT=b(()=>{JT="/intro-to-transformers/build/_assets/copy-BG7YLYNB.svg"});var QT,ZT=b(()=>{QT="/intro-to-transformers/build/_assets/copyright-EYOPP2RX.svg"});var t8,e8=b(()=>{t8="/intro-to-transformers/build/_assets/cut-WTMC2L3J.svg"});var r8,i8=b(()=>{r8="/intro-to-transformers/build/_assets/delete-ODP3MM4R.svg"});var s8,n8=b(()=>{s8="/intro-to-transformers/build/_assets/dock-bottom-364P7VUQ.svg"});var a8,o8=b(()=>{a8="/intro-to-transformers/build/_assets/dock-left-JTNG2JPR.svg"});var u8,l8=b(()=>{u8="/intro-to-transformers/build/_assets/dock-right-LCSRZFJO.svg"});var d8,c8=b(()=>{d8="/intro-to-transformers/build/_assets/dock-top-QJNCVPS7.svg"});var f8,h8=b(()=>{f8="/intro-to-transformers/build/_assets/dots-UTPINTYU.svg"});var m8,p8=b(()=>{m8="/intro-to-transformers/build/_assets/download-2Z72GO5G.svg"});var b8,g8=b(()=>{b8="/intro-to-transformers/build/_assets/duplicate-IKKRPCQN.svg"});var _8,v8=b(()=>{_8="/intro-to-transformers/build/_assets/edit-DULKWQS5.svg"});var x8,y8=b(()=>{x8="/intro-to-transformers/build/_assets/ellipses-DOPMFHFD.svg"});var S8,w8=b(()=>{S8="/intro-to-transformers/build/_assets/error-NLUEYA3X.svg"});var I8,C8=b(()=>{I8="/intro-to-transformers/build/_assets/exceptions-4NDLBHYM.svg"});var k8,E8=b(()=>{k8="/intro-to-transformers/build/_assets/expand-all-LLL5IAMT.svg"});var A8,T8=b(()=>{A8="/intro-to-transformers/build/_assets/expand-P4KBH3BP.svg"});var R8,M8=b(()=>{R8="/intro-to-transformers/build/_assets/extension-M557DX5T.svg"});var O8,D8=b(()=>{O8="/intro-to-transformers/build/_assets/fast-forward-72LR7MZN.svg"});var $8,L8=b(()=>{$8="/intro-to-transformers/build/_assets/file-ZFA45KYV.svg"});var F8,P8=b(()=>{F8="/intro-to-transformers/build/_assets/file-upload-T4IKY7DZ.svg"});var B8,N8=b(()=>{B8="/intro-to-transformers/build/_assets/filter-dot-RRWZDFGJ.svg"});var q8,z8=b(()=>{q8="/intro-to-transformers/build/_assets/filter-list-75E3GUMO.svg"});var j8,H8=b(()=>{j8="/intro-to-transformers/build/_assets/filter-4E5YWSDN.svg"});var U8,V8=b(()=>{U8="/intro-to-transformers/build/_assets/folder-favorite-MT5D7EYE.svg"});var G8,W8=b(()=>{G8="/intro-to-transformers/build/_assets/folder-SLNIHPBN.svg"});var Y8,K8=b(()=>{Y8="/intro-to-transformers/build/_assets/history-J7VCQIYQ.svg"});var J8,X8=b(()=>{J8="/intro-to-transformers/build/_assets/home-5Q2FN7D4.svg"});var Q8,Z8=b(()=>{Q8="/intro-to-transformers/build/_assets/html5-YHVA3ZAF.svg"});var tA,eA=b(()=>{tA="/intro-to-transformers/build/_assets/image-HMQWCSCV.svg"});var rA,iA=b(()=>{rA="/intro-to-transformers/build/_assets/info-KZC3CSMP.svg"});var sA,nA=b(()=>{sA="/intro-to-transformers/build/_assets/inspector-WF3WTDME.svg"});var aA,oA=b(()=>{aA="/intro-to-transformers/build/_assets/json-ICXIIW2Q.svg"});var uA,lA=b(()=>{uA="/intro-to-transformers/build/_assets/julia-Z43FOCKA.svg"});var dA,cA=b(()=>{dA="/intro-to-transformers/build/_assets/jupyter-favicon-BJPTC5W3.svg"});var fA,hA=b(()=>{fA="/intro-to-transformers/build/_assets/jupyter-CLDTFGKE.svg"});var mA,pA=b(()=>{mA="/intro-to-transformers/build/_assets/jupyterlab-wordmark-X46RH4YR.svg"});var bA,gA=b(()=>{bA="/intro-to-transformers/build/_assets/kernel-64ZJF2BV.svg"});var _A,vA=b(()=>{_A="/intro-to-transformers/build/_assets/keyboard-RPD7WNG3.svg"});var xA,yA=b(()=>{xA="/intro-to-transformers/build/_assets/launch-HTTG5BMY.svg"});var SA,wA=b(()=>{SA="/intro-to-transformers/build/_assets/launcher-HGLSSDQQ.svg"});var IA,CA=b(()=>{IA="/intro-to-transformers/build/_assets/line-form-HLFC5GXN.svg"});var kA,EA=b(()=>{kA="/intro-to-transformers/build/_assets/link-N3PRXZYS.svg"});var AA,TA=b(()=>{AA="/intro-to-transformers/build/_assets/list-776XSMFG.svg"});
10var RA,MA=b(()=>{RA="/intro-to-transformers/build/_assets/lock-U2OO6ZKE.svg"});var OA,DA=b(()=>{OA="/intro-to-transformers/build/_assets/markdown-7VYKMUK4.svg"});var $A,LA=b(()=>{$A="/intro-to-transformers/build/_assets/mermaid-4IGUJJE6.svg"});var FA,PA=b(()=>{FA="/intro-to-transformers/build/_assets/move-down-BK666PUN.svg"});var BA,NA=b(()=>{BA="/intro-to-transformers/build/_assets/move-up-AZUX24IH.svg"});var qA,zA=b(()=>{qA="/intro-to-transformers/build/_assets/new-folder-ZTGUIMZF.svg"});var jA,HA=b(()=>{jA="/intro-to-transformers/build/_assets/not-trusted-WPJCOTBZ.svg"});var UA,VA=b(()=>{UA="/intro-to-transformers/build/_assets/notebook-P5FYW3Q3.svg"});var GA,WA=b(()=>{GA="/intro-to-transformers/build/_assets/numbering-IHZOKY27.svg"});var YA,KA=b(()=>{YA="/intro-to-transformers/build/_assets/offline-bolt-FWQJODIQ.svg"});var JA,XA=b(()=>{JA="/intro-to-transformers/build/_assets/open-kernel-source-OZS7ZFOI.svg"});var QA,ZA=b(()=>{QA="/intro-to-transformers/build/_assets/palette-HCEGY3LH.svg"});var tM,eM=b(()=>{tM="/intro-to-transformers/build/_assets/paste-PFM4TTHL.svg"});var rM,iM=b(()=>{rM="/intro-to-transformers/build/_assets/pause-JH4AFR5I.svg"});var sM,nM=b(()=>{sM="/intro-to-transformers/build/_assets/pdf-3LH3N3NY.svg"});var aM,oM=b(()=>{aM="/intro-to-transformers/build/_assets/python-4D3ZAEQC.svg"});var uM,lM=b(()=>{uM="/intro-to-transformers/build/_assets/r-kernel-AC4XU7AD.svg"});var dM,cM=b(()=>{dM="/intro-to-transformers/build/_assets/react-KEWG4YFH.svg"});var fM,hM=b(()=>{fM="/intro-to-transformers/build/_assets/redo-D2NJAQDT.svg"});var mM,pM=b(()=>{mM="/intro-to-transformers/build/_assets/regex-OLOQFQYH.svg"});var bM,gM=b(()=>{bM="/intro-to-transformers/build/_assets/run-JASR5YET.svg"});var _M,vM=b(()=>{_M="/intro-to-transformers/build/_assets/running-WXSXH3AW.svg"});var xM,yM=b(()=>{xM="/intro-to-transformers/build/_assets/save-F7CIKF5U.svg"});var SM,wM=b(()=>{SM="/intro-to-transformers/build/_assets/search-IUWCZPNI.svg"});var IM,CM=b(()=>{IM="/intro-to-transformers/build/_assets/selected-breakpoint-I3BOBCXF.svg"});var kM,EM=b(()=>{kM="/intro-to-transformers/build/_assets/settings-NVLGB56U.svg"});var AM,TM=b(()=>{AM="/intro-to-transformers/build/_assets/share-V2TJNE23.svg"});var RM,MM=b(()=>{RM="/intro-to-transformers/build/_assets/spreadsheet-53IRUUNR.svg"});var OM,DM=b(()=>{OM="/intro-to-transformers/build/_assets/step-into-CMYG6HZ3.svg"});var $M,LM=b(()=>{$M="/intro-to-transformers/build/_assets/step-out-4EAP4RZP.svg"});var FM,PM=b(()=>{FM="/intro-to-transformers/build/_assets/step-over-MSBBRXNS.svg"});var BM,NM=b(()=>{BM="/intro-to-transformers/build/_assets/stop-MRBZ5DJC.svg"});var qM,zM=b(()=>{qM="/intro-to-transformers/build/_assets/tab-BK4HQPU4.svg"});var jM,HM=b(()=>{jM="/intro-to-transformers/build/_assets/table-rows-RR4IRJT7.svg"});var UM,VM=b(()=>{UM="/intro-to-transformers/build/_assets/tag-3CFWX7QM.svg"});var GM,WM=b(()=>{GM="/intro-to-transformers/build/_assets/terminal-DTKKDLBB.svg"});var YM,KM=b(()=>{YM="/intro-to-transformers/build/_assets/text-editor-MJBWRXDS.svg"});var JM,XM=b(()=>{JM="/intro-to-transformers/build/_assets/toc-I57DEZZ3.svg"});var QM,ZM=b(()=>{QM="/intro-to-transformers/build/_assets/tree-view-EXAO5CJQ.svg"});var tR,eR=b(()=>{tR="/intro-to-transformers/build/_assets/trusted-EPQAOZZM.svg"});var rR,iR=b(()=>{rR="/intro-to-transformers/build/_assets/undo-HFH7A3CK.svg"});var sR,nR=b(()=>{sR="/intro-to-transformers/build/_assets/user-LRCJLM6U.svg"});var aR,oR=b(()=>{aR="/intro-to-transformers/build/_assets/users-K2RBK42E.svg"});var uR,lR=b(()=>{uR="/intro-to-transformers/build/_assets/variable-EEIM2DMM.svg"});var dR,cR=b(()=>{dR="/intro-to-transformers/build/_assets/vega-5KBIVREI.svg"});var fR,hR=b(()=>{fR="/intro-to-transformers/build/_assets/video-65O2WMJE.svg"});var mR,pR=b(()=>{mR="/intro-to-transformers/build/_assets/view-breakpoint-OZS7ZFOI.svg"});var bR,gR=b(()=>{bR="/intro-to-transformers/build/_assets/word-BSZOGJVT.svg"});var _R,vR=b(()=>{_R="/intro-to-transformers/build/_assets/yaml-UNYFGJCG.svg"});var NMe,BMe,yR,zMe,qMe,HMe,jMe,VMe,UMe,xR,WMe,GMe,KMe,wR,YMe,XMe,JMe,tg,SR,CR,ZMe,QMe,eRe,ig,tRe,iRe,rRe,nRe,sRe,oRe,aRe,lRe,uRe,cRe,dRe,hRe,fRe,pRe,mRe,gRe,bRe,IR,vRe,_Re,yRe,xRe,wRe,SRe,CRe,IRe,ERe,kRe,ER,TRe,ARe,MRe,RRe,DRe,ORe,LRe,$Re,kR,PRe,FRe,NRe,BRe,TR,zRe,qRe,HRe,jRe,VRe,URe,WRe,AR,GRe,KRe,YRe,XRe,JRe,ZRe,QRe,MR,eDe,tDe,iDe,rDe,nDe,sDe,oDe,aDe,lDe,RR,uDe,cDe,dDe,hDe,fDe,pDe,mDe,gDe,DR,bDe,vDe,_De,OR,yDe,xDe,wDe,LR,SDe,CDe,IDe,EDe,kDe,TDe,ADe,MDe,RDe,DDe,ODe,LDe,$De,zf=b(()=>{Xy();W5();K5();X5();Z5();eT();iT();nT();oT();lT();cT();hT();pT();gT();vT();yT();wT();CT();ET();TT();MT();DT();LT();PT();NT();zT();HT();VT();WT();KT();XT();ZT();e8();i8();n8();o8();l8();c8();h8();p8();g8();v8();y8();w8();C8();E8();T8();M8();D8();L8();P8();N8();z8();H8();V8();W8();K8();X8();Z8();eA();iA();nA();oA();lA();cA();hA();pA();gA();vA();yA();wA();CA();EA();TA();MA();DA();LA();PA();NA();zA();HA();VA();WA();KA();XA();ZA();eM();iM();nM();oM();lM();cM();hM();jy();pM();gM();vM();yM();wM();
10CM();EM();TM();MM();DM();LM();PM();NM();zM();HM();VM();WM();KM();XM();ZM();eR();iR();nR();oR();lR();cR();hR();pR();gR();vR();NMe=new q({name:"ui-components:add-above",svgstr:G5}),BMe=new q({name:"ui-components:add-below",svgstr:Y5}),yR=new q({name:"ui-components:add",svgstr:J5}),zMe=new q({name:"ui-components:audio",svgstr:Q5}),qMe=new q({name:"ui-components:bell",svgstr:tT}),HMe=new q({name:"ui-components:breakpoint",svgstr:rT}),jMe=new q({name:"ui-components:bug-dot",svgstr:sT}),VMe=new q({name:"ui-components:bug",svgstr:aT}),UMe=new q({name:"ui-components:build",svgstr:uT}),xR=new q({name:"ui-components:caret-down-empty",svgstr:dT}),WMe=new q({name:"ui-components:caret-down-empty-thin",svgstr:fT}),GMe=new q({name:"ui-components:caret-down",svgstr:mT}),KMe=new q({name:"ui-components:caret-left",svgstr:bT}),wR=new q({name:"ui-components:caret-right",svgstr:_T}),YMe=new q({name:"ui-components:caret-up-empty-thin",svgstr:xT}),XMe=new q({name:"ui-components:caret-up",svgstr:ST}),JMe=new q({name:"ui-components:case-sensitive",svgstr:IT}),tg=new q({name:"ui-components:check",svgstr:kT}),SR=new q({name:"ui-components:circle-empty",svgstr:AT}),CR=new q({name:"ui-components:circle",svgstr:RT}),ZMe=new q({name:"ui-components:cleaning",svgstr:OT}),QMe=new q({name:"ui-components:clear",svgstr:$T}),eRe=new q({name:"ui-components:close-all",svgstr:FT}),ig=new q({name:"ui-components:close",svgstr:BT}),tRe=new q({name:"ui-components:code-check",svgstr:qT}),iRe=new q({name:"ui-components:code",svgstr:jT}),rRe=new q({name:"ui-components:collapse-all",svgstr:UT}),nRe=new q({name:"ui-components:collapse",svgstr:GT}),sRe=new q({name:"ui-components:console",svgstr:YT}),oRe=new q({name:"ui-components:copy",svgstr:JT}),aRe=new q({name:"ui-components:copyright",svgstr:QT}),lRe=new q({name:"ui-components:cut",svgstr:t8}),uRe=new q({name:"ui-components:delete",svgstr:r8}),cRe=new q({name:"ui-components:dock-bottom",svgstr:s8}),dRe=new q({name:"ui-components:dock-left",svgstr:a8}),hRe=new q({name:"ui-components:dock-right",svgstr:u8}),fRe=new q({name:"ui-components:dock-top",svgstr:d8}),pRe=new q({name:"ui-components:dots",svgstr:f8}),mRe=new q({name:"ui-components:download",svgstr:m8}),gRe=new q({name:"ui-components:duplicate",svgstr:b8}),bRe=new q({name:"ui-components:edit",svgstr:_8}),IR=new q({name:"ui-components:ellipses",svgstr:x8}),vRe=new q({name:"ui-components:error",svgstr:S8}),_Re=new q({name:"ui-components:exceptions",svgstr:I8}),yRe=new q({name:"ui-components:expand-all",svgstr:k8}),xRe=new q({name:"ui-components:expand",svgstr:A8}),wRe=new q({name:"ui-components:extension",svgstr:R8}),SRe=new q({name:"ui-components:fast-forward",svgstr:O8}),CRe=new q({name:"ui-components:file",svgstr:$8}),IRe=new q({name:"ui-components:file-upload",svgstr:F8}),ERe=new q({name:"ui-components:filter-dot",svgstr:B8}),kRe=new q({name:"ui-components:filter",svgstr:j8}),ER=new q({name:"ui-components:filter-list",svgstr:q8}),TRe=new q({name:"ui-components:folder-favorite",svgstr:U8}),ARe=new q({name:"ui-components:folder",svgstr:G8}),MRe=new q({name:"ui-components:history",svgstr:Y8}),RRe=new q({name:"ui-components:home",svgstr:J8}),DRe=new q({name:"ui-components:html5",svgstr:Q8}),ORe=new q({name:"ui-components:image",svgstr:tA}),LRe=new q({name:"ui-components:info",svgstr:rA}),$Re=new q({name:"ui-components:inspector",svgstr:sA}),kR=new q({name:"ui-components:json",svgstr:aA}),PRe=new q({name:"ui-components:julia",svgstr:uA}),FRe=new q({name:"ui-components:jupyter-favicon",svgstr:dA}),NRe=new q({name:"ui-components:jupyter",svgstr:fA}),BRe=new q({name:"ui-components:jupyterlab-wordmark",svgstr:mA}),TR=new q({name:"ui-components:kernel",svgstr:bA}),zRe=new q({name:"ui-components:keyboard",svgstr:_A}),qRe=new q({name:"ui-components:launch",svgstr:xA}),HRe=new q({name:"ui-components:launcher",svgstr:SA}),jRe=new q({name:"ui-components:line-form",svgstr:IA}),VRe=new q({name:"ui-components:link",svgstr:kA}),URe=new q({name:"ui-components:list",svgstr:AA}),WRe=new q({name:"ui-components:lock",svgstr:RA}),AR=new q({name:"ui-components:markdown",svgstr:OA}),GRe=new q({name:"ui-components:mermaid",svgstr:$A}),KRe=new q({name:"ui-components:move-down",svgstr:FA}),YRe=new q({name:"ui-components:move-up",svgstr:BA}),XRe=new q({name:"ui-components:new-folder",svgstr:qA}),JRe=new q({name:"ui-components:not-trusted",svgstr:jA}),ZRe=new q({name:"ui-components:notebook",svgstr:UA}),QRe=new q({name:"ui-components:numbering",svgstr:GA}),MR=new q({name:"ui-components:offline-bolt",svgstr:YA}),eDe=new q({name:"ui-components:open-kernel-source",svgstr:JA}),tDe=new q({name:"ui-components:palette",svgstr:QA}),iDe=new q({name:"ui-components:paste",svgstr:tM}),rDe=new q({name:"ui-components:pause",svgstr:rM}),nDe=new q({name:"ui-components:pdf",svgstr:sM}),sDe=new q({name:"ui-components:python",svgstr:aM}),oDe=new q({name:"ui-components:r-kernel",svgstr:uM}),aDe=new q({name:"ui-components:react",svgstr:dM}),lDe=new q({name:"ui-components:redo",svgstr:fM}),RR=new q({name:"ui-components:refresh",svgstr:Y0}),uDe=new q({name:"ui-components:regex",svgstr:mM}),cDe=new q({name:"ui-components:run",svgstr:bM}),dDe=new q({name:"ui-components:running",svgstr:_M}),hDe=new q({name:"ui-components:save",svgstr:xM}),fDe=new q({name:"ui-components:search",svgstr:SM}),pDe=new q({name:"ui-components:selected-breakpoint",svgstr:IM}),mDe=new q({name:"ui-components:settings",svgstr:kM}),gDe=new q({name:"ui-components:share",svgstr:AM}),DR=new q({name:"ui-components:spreadsheet",svgstr:RM}),bDe=new q({name:"ui-components:step-into",svgstr:OM}),vDe=new q({name:"ui-components:step-out",svgstr:$M}),_De=new q({name:"ui-components:step-over",svgstr:FM}),OR=new q({name:"ui-components:stop",svgstr:BM}),yDe=new q({name:"ui-components:tab",svgstr:qM}),xDe=new q({name:"ui-components:table-rows",svgstr:jM}),wDe=new q({name:"ui-components:tag",svgstr:UM}),LR=new q({name:"ui-components:terminal",svgstr:GM}),SDe=new q({name:"ui-components:text-editor",svgstr:YM}),CDe=new q({name:"ui-components:toc",svgstr:JM}),IDe=new q({name:"ui-components:tree-view",svgstr:QM}),EDe=new q({name:"ui-components:trusted",svgstr:tR}),kDe=new q({name:"ui-components:undo",svgstr:rR}),TDe=new q({name:"ui-components:user",svgstr:sR}),ADe=new q({name:"ui-components:users",svgstr:aR}),MDe=new q({name:"ui-components:variable",svgstr:uR}),RDe=new q({name:"ui-components:vega",svgstr:dR}),DDe=new q({name:"ui-components:video",svgstr:fR}),ODe=new q({name:"ui-components:view-breakpoint",svgstr:mR}),LDe=new q({name:"ui-components:word",svgstr:bR}),$De=new q({name:"ui-components:yaml",svgstr:_R})});function re(i){let e={},t,r=[];for(let s=1,o=arguments.length;s<o;++s){let a=arguments[s];
10typeof a=="string"?r.push(new kd(a)):a instanceof kd||a instanceof Td?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 Td(i,e,r,t);function n(s,o){for(let a of o)typeof a=="string"?s.push(new kd(a)):(a instanceof kd||a instanceof Td)&&s.push(a)}}function $R(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 Jy(i,e,t)}var kd,Td,Jy,Pt,hc,el=b(()=>{Zt();kd=class{constructor(e){this.type="text",this.content=e}},Td=class{constructor(e,t,r,n){this.type="element",this.tag=e,this.attrs=t,this.children=r,this.renderer=n}},Jy=class extends Td{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")})(re||(re={}));(function(i){function e(r){return hc.createDOMNode(r)}i.realize=e;function t(r,n){let s=hc.hostMap.get(n)||[],o=hc.asContentArray(r);hc.hostMap.set(n,o),hc.updateContent(n,s,o)}i.render=t})(Pt||(Pt={}));(function(i){i.hostMap=new WeakMap;function e(f){return f?f instanceof Array?f:[f]:[]}i.asContentArray=e;function t(f){let p=arguments[1]||null,g=arguments[2]||null;if(p)p.insertBefore(t(f),g);else{if(f.type==="text")return document.createTextNode(f.content);if(p=document.createElement(f.tag),o(p,f.attrs),f.renderer)return f.renderer.render(p,{attrs:f.attrs,children:f.children}),p;for(let v=0,_=f.children.length;v<_;++v)t(f.children[v],p)}return p}i.createDOMNode=t;function r(f,p,g){if(p===g)return;let v=h(f,p),_=p.slice(),x=f.firstChild,y=g.length;for(let C=0;C<y;++C){if(C>=_.length){t(g[C],f);continue}let S=_[C],R=g[C];if(S===R){x=x.nextSibling;continue}if(S.type==="text"&&R.type==="text"){x.textContent!==R.content&&(x.textContent=R.content),x=x.nextSibling;continue}if(S.type==="text"||R.type==="text"){L.insert(_,C,R),t(R,f,x);continue}if(!S.renderer!=!R.renderer){L.insert(_,C,R),t(R,f,x);continue}let I=R.attrs.key;if(I&&I in v){let w=v[I];w.vNode!==S&&(L.move(_,_.indexOf(w.vNode,C+1),C),f.insertBefore(w.element,x),S=w.vNode,x=w.element)}if(S===R){x=x.nextSibling;continue}let E=S.attrs.key;if(E&&E!==I){L.insert(_,C,R),t(R,f,x);continue}if(S.tag!==R.tag){L.insert(_,C,R),t(R,f,x);continue}a(x,S.attrs,R.attrs),R.renderer?R.renderer.render(x,{attrs:R.attrs,children:R.children}):r(x,S.children,R.children),x=x.nextSibling}n(f,_,y,!0)}i.updateContent=r;function n(f,p,g,v){for(let _=p.length-1;_>=g;--_){let x=p[_],y=v?f.lastChild:f.childNodes[_];x.type==="text"||(x.renderer&&x.renderer.unrender?x.renderer.unrender(y,{attrs:x.attrs,children:x.children}):n(y,x.children,0,!1)),v&&f.removeChild(y)}}let s={key:!0,className:!0,htmlFor:!0,dataset:!0,style:!0};function o(f,p){for(let g in p)g in s||(g.substr(0,2)==="on"?f[g]=p[g]:f.setAttribute(g,p[g]));p.className!==void 0&&f.setAttribute("class",p.className),p.htmlFor!==void 0&&f.setAttribute("for",p.htmlFor),p.dataset&&l(f,p.dataset),p.style&&c(f,p.style)}function a(f,p,g){if(p===g)return;let v;for(v in p)v in s||v in g||(v.substr(0,2)==="on"?f[v]=null:f.removeAttribute(v));for(v in g)v in s||p[v]===g[v]||(v.substr(0,2)==="on"?f[v]=g[v]:f.setAttribute(v,g[v]));p.className!==g.className&&(g.className!==void 0?f.setAttribute("class",g.className):f.removeAttribute("class")),p.htmlFor!==g.htmlFor&&(g.htmlFor!==void 0?f.setAttribute("for",g.htmlFor):f.removeAttribute("for")),p.dataset!==g.dataset&&u(f,p.dataset||{},g.dataset||{}),p.style!==g.style&&d(f,p.style||{},g.style||{})}function l(f,p){for(let g in p)f.setAttribute(`data-${g}`,p[g])}function u(f,p,g){for(let v in p)v in g||f.removeAttribute(`data-${v}`);for(let v in g)p[v]!==g[v]&&f.setAttribute(`data-${v}`,g[v])}function c(f,p){let g=f.style,v;for(v in p)g[v]=p[v]}function d(f,p,g){let v=f.style,_;for(_ in p)_ in g||(v[_]="");for(_ in g)p[_]!==g[_]&&(v[_]=g[_])}function h(f,p){let g=f.firstChild,v=Object.create(null);for(let _ of p)_.type==="element"&&_.attrs.key&&(v[_.attrs.key]={vNode:_,element:g}),g=g.nextSibling;return v}})(hc||(hc={}))});var PR,he,Ft,pi,Is,Ad=b(()=>{(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})(PR||(PR={}));(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,h=parseFloat(o.paddingLeft)||0,f=parseFloat(o.paddingRight)||0,p=parseFloat(o.paddingBottom)||
100,g=l+h+f+u,v=a+d+p+c;return{borderTop:a,borderLeft:l,borderRight:u,borderBottom:c,paddingTop:d,paddingLeft:h,paddingRight:f,paddingBottom:p,horizontalSum:g,verticalSum:v}}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})(he||(he={}));(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})(Ft||(Ft={}));(function(i){function e(n){if(n in Is.specificityCache)return Is.specificityCache[n];let s=Is.calculateSingle(n);return Is.specificityCache[n]=s}i.calculateSpecificity=e;function t(n){if(n in Is.validityCache)return Is.validityCache[n];let s=!0;try{Is.testElem.querySelector(n)}catch{s=!1}return Is.validityCache[n]=s}i.isValid=t;function r(n,s){return Is.protoMatchFunc.call(n,s)}i.matches=r})(pi||(pi={}));(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 h=this,f=h.ownerDocument?h.ownerDocument.querySelectorAll(d):[];return Array.prototype.indexOf.call(f,h)!==-1}})();function e(c){c=c.split(",",1)[0];let d=0,h=0,f=0;function p(g){let v=c.match(g);return v===null?!1:(c=c.slice(v[0].length),!0)}for(c=c.replace(u," $1 ");c.length>0;){if(p(t)){d++;continue}if(p(r)){h++;continue}if(p(n)){h++;continue}if(p(o)){f++;continue}if(p(a)){h++;continue}if(p(s)){f++;continue}if(!p(l))return 0}return d=Math.min(d,255),h=Math.min(h,255),f=Math.min(f,255),d<<16|h<<8|f}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})(Is||(Is={}))});var Md,Zo,FR=b(()=>{Md=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);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.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})(Md||(Md={}));(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 Ur,tl,te,qf=b(()=>{Zt();FR();Ur=class{constructor(e){this.type=e}get isConflatable(){return!1}conflate(e){return!1}},tl=class extends Ur{get isConflatable(){return!0}conflate(e){return!0}};(function(i){let e=null,t=(E=>w=>{let k=!1;return E.then(()=>!k&&w()),()=>{k=!0}})(Promise.resolve());function r(E,w){let k=h.get(E);if(!k||k.length===0){_(E,w);return}Js(Ko(k),z=>z?v(z,E,w):!0)&&_(E,w)}i.sendMessage=r;
10function n(E,w){if(!w.isConflatable){x(E,w);return}ys(d,O=>O.handler!==E||!O.msg||O.msg.type!==w.type||!O.msg.isConflatable?!1:O.msg.conflate(w))||x(E,w)}i.postMessage=n;function s(E,w){let k=h.get(E);k&&k.indexOf(w)!==-1||(k?k.push(w):h.set(E,[w]))}i.installMessageHook=s;function o(E,w){let k=h.get(E);if(!k)return;let O=k.indexOf(w);O!==-1&&(k[O]=null,C(k))}i.removeMessageHook=o;function a(E){let w=h.get(E);w&&w.length>0&&(L.fill(w,null),C(w));for(let k of d)k.handler===E&&(k.handler=null,k.msg=null)}i.clearData=a;function l(){g||e===null||(e(),e=null,g=!0,y(),g=!1)}i.flush=l;function u(){return p}i.getExceptionHandler=u;function c(E){let w=p;return p=E,w}i.setExceptionHandler=c;let d=new Md,h=new WeakMap,f=new Set,p=E=>{console.error(E)},g=!1;function v(E,w,k){let O=!0;try{typeof E=="function"?O=E(w,k):O=E.messageHook(w,k)}catch(z){p(z)}return O}function _(E,w){try{E.processMessage(w)}catch(k){p(k)}}function x(E,w){d.addLast({handler:E,msg:w}),e===null&&(e=t(y))}function y(){if(e=null,d.isEmpty)return;let E={handler:null,msg:null};for(d.addLast(E);;){let w=d.removeFirst();if(w===E)return;w.handler&&w.msg&&r(w.handler,w.msg)}}function C(E){f.size===0&&t(S),f.add(E)}function S(){f.forEach(R),f.clear()}function R(E){L.removeAllWhere(E,I)}function I(E){return E===null}})(te||(te={}))});var Si,xr,NR=b(()=>{Nr();Si=class{constructor(e){this._onScrollFrame=()=>{if(!this._scrollTarget)return;let{element:t,edge:r,distance:n}=this._scrollTarget,s=xr.SCROLL_EDGE_SIZE-n,o=Math.pow(s/xr.SCROLL_EDGE_SIZE,2),a=Math.max(1,Math.round(o*xr.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});xr.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"){xr.dispatchDragLeave(this,this._currentTarget,null,e),this._finalize("none");return}let t=xr.dispatchDrop(this,this._currentTarget,e);this._finalize(t)}_evtKeyDown(e){e.preventDefault(),e.stopPropagation(),e.keyCode===27&&this.dispose()}_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,
10!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=xr.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=xr.findElementBehindBackdrop(e,this.document);this._currentElement=s,s!==n&&s!==r&&xr.dispatchDragExit(this,r,s,e),s!==n&&s!==r&&(r=xr.dispatchDragEnter(this,s,r,e)),r!==t&&(this._currentTarget=r,xr.dispatchDragLeave(this,t,r,e));let o=xr.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=xr.validateAction(e,this.supportedActions),!(this._override&&this._dropAction===e))switch(e){case"none":this._dropAction=e,this._override=Si.overrideCursor("no-drop",this.document);break;case"copy":this._dropAction=e,this._override=Si.overrideCursor("copy",this.document);break;case"link":this._dropAction=e,this._override=Si.overrideCursor("alias",this.document);break;case"move":this._dropAction=e,this._override=Si.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 xr.overrideCursor(r,n)}i.overrideCursor=t})(Si||(Si={}));(function(i){i.SCROLL_EDGE_SIZE=20;function e(C,S){return d[C]&h[S]?C:"none"}i.validateAction=e;function t(C,S=document){if(C){if(r&&C==r.event)return r.element;i.cursorBackdrop.style.zIndex="-1000";let R=S.elementFromPoint(C.clientX,C.clientY);return i.cursorBackdrop.style.zIndex="",r={event:C,element:R},R}else{let R=i.cursorBackdrop.style.transform;if(n&&R===n.transform)return n.element;let I=i.cursorBackdrop.getBoundingClientRect();i.cursorBackdrop.style.zIndex="-1000";let E=S.elementFromPoint(I.left+I.width/2,I.top+I.height/2);return i.cursorBackdrop.style.zIndex="",n={transform:R,element:E},E}}i.findElementBehindBackdrop=t;let r=null,n=null;function s(C){let S=C.clientX,R=C.clientY,I=t(C);for(;I;I=I.parentElement){if(!I.hasAttribute("data-lm-dragscroll"))continue;let E=0,w=0;I===document.body&&(E=window.pageXOffset,w=window.pageYOffset);let k=I.getBoundingClientRect(),O=k.top+w,z=k.left+E,Y=z+k.width,pe=O+k.height;if(S<z||S>=Y||R<O||R>=pe)continue;let U=S-z+1,ne=R-O+1,le=Y-S,De=pe-R,Et=Math.min(U,ne,le,De);if(Et>i.SCROLL_EDGE_SIZE)continue;let Qe;switch(Et){case De:Qe="bottom";break;case ne:Qe="top";break;case le:Qe="right";break;case U:Qe="left";break;default:throw"unreachable"}
10let ot=I.scrollWidth-I.clientWidth,Ve=I.scrollHeight-I.clientHeight,Yt;switch(Qe){case"top":Yt=Ve>0&&I.scrollTop>0;break;case"left":Yt=ot>0&&I.scrollLeft>0;break;case"right":Yt=ot>0&&I.scrollLeft<ot;break;case"bottom":Yt=Ve>0&&I.scrollTop<Ve;break;default:throw"unreachable"}if(Yt)return{element:I,edge:Qe,distance:Et}}return null}i.findScrollTarget=s;function o(C,S,R,I){if(!S)return null;let E=new Si.Event(I,{drag:C,related:R,type:"lm-dragenter"});if(!S.dispatchEvent(E))return S;let k=C.document instanceof Document?C.document.body:C.document.firstElementChild;return S===k?R:(E=new Si.Event(I,{drag:C,related:R,type:"lm-dragenter"}),k.dispatchEvent(E),k)}i.dispatchDragEnter=o;function a(C,S,R,I){if(!S)return;let E=new Si.Event(I,{drag:C,related:R,type:"lm-dragexit"});S.dispatchEvent(E)}i.dispatchDragExit=a;function l(C,S,R,I){if(!S)return;let E=new Si.Event(I,{drag:C,related:R,type:"lm-dragleave"});S.dispatchEvent(E)}i.dispatchDragLeave=l;function u(C,S,R){if(!S)return"none";let I=new Si.Event(R,{drag:C,related:null,type:"lm-dragover"});return S.dispatchEvent(I)?"none":I.dropAction}i.dispatchDragOver=u;function c(C,S,R){if(!S)return"none";let I=new Si.Event(R,{drag:C,related:null,type:"lm-drop"});return S.dispatchEvent(I)?"none":I.dropAction}i.dispatchDrop=c;let d={none:0,copy:1,link:2,move:4},h={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 f(C,S=document){let R=++y,I=S instanceof Document?S.body:S.firstElementChild;return i.cursorBackdrop.isConnected||(i.cursorBackdrop.style.transform="scale(0)",I.appendChild(i.cursorBackdrop),v(),document.addEventListener("pointermove",p,{capture:!0,passive:!0}),i.cursorBackdrop.addEventListener("scroll",g,{capture:!0,passive:!0})),i.cursorBackdrop.style.cursor=C,new Li(()=>{R===y&&i.cursorBackdrop.isConnected&&(document.removeEventListener("pointermove",p,!0),i.cursorBackdrop.removeEventListener("scroll",g,!0),I.removeChild(i.cursorBackdrop))})}i.overrideCursor=f;function p(C){i.cursorBackdrop&&(i.cursorBackdrop.style.transform=`translate(${C.clientX}px, ${C.clientY}px)`)}function g(C){if(!i.cursorBackdrop)return;let S=t();if(!S)return;let R=S.closest("[data-lm-dragscroll]");R&&(R.scrollTop+=i.cursorBackdrop.scrollTop-_,R.scrollLeft+=i.cursorBackdrop.scrollLeft-_,v())}function v(){i.cursorBackdrop.scrollTop=_,i.cursorBackdrop.scrollLeft=_}let _=500;function x(){let C=document.createElement("div");return C.classList.add("lm-cursor-backdrop"),C}let y=0;i.cursorBackdrop=x()})(xr||(xr={}))});function Qn(){return Zy.keyboardLayout}var il,Ile,Zy,Hf=b(()=>{il=class{constructor(e,t,r=[]){this.name=e,this._codes=t,this._keys=il.extractKeys(t),this._modifierKeys=il.convertToKeySet(r)}keys(){return Object.keys(this._keys)}isValidKey(e){return e in this._keys}isModifierKey(e){return e in this._modifierKeys}keyForKeydownEvent(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})(il||(il={}));Ile=new il("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=Ile})(Zy||(Zy={}))});var ar,ti,Es,jf=b(()=>{Zt();ar=N(Ge());Nr();Ad();Hf();tt();ti=class{constructor(){this._timerID=0,this._timerModifierID=0,this._replaying=!1,this._keystrokes=[],this._key
10downEvents=[],this._keyBindings=[],this._exactKeyMatch=null,this._commands=new Map,this._commandChanged=new G(this),this._commandExecuted=new G(this),this._keyBindingChanged=new G(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,Es.createCommand(t)),this._commandChanged.emit({id:e,type:"added"}),new Li(()=>{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=ar.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=ar.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=ar.JSONExt.emptyObject){let r=this._commands.get(e);return r?r.mnemonic.call(void 0,t):-1}icon(e,t=ar.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=ar.JSONExt.emptyObject){let r=this._commands.get(e);return r?r.iconClass.call(void 0,t):""}iconLabel(e,t=ar.JSONExt.emptyObject){let r=this._commands.get(e);return r?r.iconLabel.call(void 0,t):""}caption(e,t=ar.JSONExt.emptyObject){let r=this._commands.get(e);return r?r.caption.call(void 0,t):""}usage(e,t=ar.JSONExt.emptyObject){let r=this._commands.get(e);return r?r.usage.call(void 0,t):""}className(e,t=ar.JSONExt.emptyObject){let r=this._commands.get(e);return r?r.className.call(void 0,t):""}dataset(e,t=ar.JSONExt.emptyObject){let r=this._commands.get(e);return r?r.dataset.call(void 0,t):{}}isEnabled(e,t=ar.JSONExt.emptyObject){let r=this._commands.get(e);return r?r.isEnabled.call(void 0,t):!1}isToggled(e,t=ar.JSONExt.emptyObject){let r=this._commands.get(e);return r?r.isToggled.call(void 0,t):!1}isToggleable(e,t=ar.JSONExt.emptyObject){let r=this._commands.get(e);return r?r.isToggleable:!1}isVisible(e,t=ar.JSONExt.emptyObject){let r=this._commands.get(e);return r?r.isVisible.call(void 0,t):!1}execute(e,t=ar.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=Es.createKeyBinding(e);return this._keyBindings.push(t),this._keyBindingChanged.emit({binding:t,type:"added"}),new Li(()=>{L.removeFirstOf(this._keyBindings,t),this._keyBindingChanged.emit({binding:t,type:"removed"})})}processKeydownEvent(e){if(e.defaultPrevented||this._replaying)return;let t=ti.keystrokeForKeydownEvent(e);if(!t){this._replayKeydownEvents(),this._clearPendingState();return}if(ti.isModifierKeyPressed(e)){let{exact:o}=Es.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}=Es.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)},Es.modifierkeyTimeOut)}_clearModifierTimer(){this._timerModifierID!==0&&(clearTimeout(this._timerModifierID),this._timerModifierID=0)}_startTimer(){this._clearTimer(),this._timerID=window.setTimeout(()=>{this._onPendingTimeout()},Es.CHORD_TIMEOUT)}_clearTimer(){this._timerID!==0&&(clearTimeout(this._timerID),this._timerID=0)}
10_replayKeydownEvents(){this._keydownEvents.length!==0&&(this._replaying=!0,this._keydownEvents.forEach(Es.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]),Es.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,h=!1;for(let f of a.split(/\s+/))f==="Accel"?Ft.IS_MAC?c=!0:d=!0:f==="Alt"?u=!0:f==="Cmd"?c=!0:f==="Ctrl"?d=!0:f==="Shift"?h=!0:f.length>0&&(l=f);return{cmd:c,ctrl:d,alt:u,shift:h,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&&Ft.IS_MAC&&(l+="Cmd "),u.key?l+u.key:l.trim()}i.normalizeKeystroke=t;function r(a){let l;return Ft.IS_WIN?l=a.winKeys||a.keys:Ft.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=Ft.IS_MAC?" ":"+",h=e(u);return h.ctrl&&c.push("Ctrl"),h.alt&&c.push("Alt"),h.shift&&c.push("Shift"),Ft.IS_MAC&&h.cmd&&c.push("Cmd"),c.push(h.key),c.map(Es.formatKey).join(d)}}i.formatKeystroke=n;function s(a){let l=Qn(),u=l.keyForKeydownEvent(a);return l.isModifierKey(u)}i.isModifierKeyPressed=s;function o(a){let l=Qn(),u=l.keyForKeydownEvent(a),c=[];return a.ctrlKey&&c.push("Ctrl"),a.altKey&&c.push("Alt"),a.shiftKey&&c.push("Shift"),a.metaKey&&Ft.IS_MAC&&c.push("Cmd"),l.isModifierKey(u)||c.push(u),c.join(" ")}i.keystrokeForKeydownEvent=o})(ti||(ti={}));(function(i){i.CHORD_TIMEOUT=1e3,i.KEYBINDING_HOLD_TIMEOUT=1e3,i.modifierkeyTimeOut=500;function e(y){return{execute:y.execute,describedBy:p(typeof y.describedBy=="function"?y.describedBy:{args:null,...y.describedBy},()=>({args:null})),label:p(y.label,l),mnemonic:p(y.mnemonic,u),icon:p(y.icon,f),iconClass:p(y.iconClass,l),iconLabel:p(y.iconLabel,l),caption:p(y.caption,l),usage:p(y.usage,l),className:p(y.className,l),dataset:p(y.dataset,h),isEnabled:y.isEnabled||c,isToggled:y.isToggled||d,isToggleable:y.isToggleable||!!y.isToggled,isVisible:y.isVisible||c}}i.createCommand=e;function t(y){var C;return{keys:ti.normalizeKeys(y),selector:g(y),command:y.command,args:y.args||ar.JSONExt.emptyObject,preventDefault:(C=y.preventDefault)!==null&&C!==void 0?C:!0}}i.createKeyBinding=t;function r(y,C,S){let R=null,I=[],E=1/0,w=0;for(let k=0,O=y.length;k<O;++k){let z=y[k],Y=v(z.keys,C);if(Y===0)continue;if(Y===2){_(z.selector,S)!==-1&&I.push(z);continue}let pe=_(z.selector,S);if(pe===-1||pe>E)continue;let U=pi.calculateSpecificity(z.selector);(!R||pe<E||U>=w)&&(R=z,E=pe,w=U)}return{exact:R,partial:I}}i.matchKeyBinding=r;function n(y){y.target.dispatchEvent(x(y))}i.replayKeyEvent=n;function s(y){return Ft.IS_MAC?o.hasOwnProperty(y)?o[y]:y:a.hasOwnProperty(y)?a[y]:y}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,h=()=>({}),f=()=>{};function p(y,C){return y===void 0?C:typeof y=="function"?y:()=>y}function g(y){if(y.selector.indexOf(",")!==-1)throw new Error(`Selector cannot contain commas: ${y.selector}`);if(!pi.isValid(y.selector))throw new Error(`Invalid selector: ${y.selector}`);return y.selector}function v(y,C){if(y.length<C.length)return 0;for(let S=0,R=C.length;S<R;++S)if(y[S]!==C[S])return 0;return y.length>C.length?2:1}function _(y,C){let S=C.target,R=C.currentTarget;for(let I=0;S!==null;S=S.parentElement,++I){if(S.hasAttribute("data-lm-suppress-shortcuts"))return-1;if(pi.matches(S,y))return I;if(S===R)return-1}return-1}function x(y){let C=document.createEvent("Event"),S=y.bubbles||!0,R=y.cancelable||!0;
10return C.initEvent(y.type||"keydown",S,R),C.key=y.key||"",C.keyCode=y.keyCode||0,C.which=y.keyCode||0,C.ctrlKey=y.ctrlKey||!1,C.altKey=y.altKey||!1,C.shiftKey=y.shiftKey||!1,C.metaKey=y.metaKey||!1,C.view=y.view||window,C}})(Es||(Es={}))});var ia,co,An,Vf,j,rg,ho,pc,Rd,Rn,Uf,Wf,ks,ea,Qy,ng,mc,ex,gc,tx,Dd,ix,Mn,fc,sg,rx,rl,Qo,Gr,Wr,BR,Ele,Ts,es,nx,mi,fo,ii,ta,Pi,Od,og,zR,qR,sx,HR,jR,nn=b(()=>{Zt();ia=N(Ge());Ad();qf();md();tt();NR();jf();el();Nr();Hf();co=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,h=0;for(let g=0;g<a;++g){let v=s[g],_=v.minSize,x=v.maxSize,y=v.sizeHint;v.done=!1,v.size=Math.max(_,Math.min(y,x)),c+=v.size,l+=_,u+=x,v.stretch>0&&(d+=v.stretch,h++)}if(o===c)return 0;if(o<=l){for(let g=0;g<a;++g){let v=s[g];v.size=v.minSize}return o-l}if(o>=u){for(let g=0;g<a;++g){let v=s[g];v.size=v.maxSize}return o-u}let f=.01,p=a;if(o<c){let g=c-o;for(;h>0&&g>f;){let v=g,_=d;for(let x=0;x<a;++x){let y=s[x];if(y.done||y.stretch===0)continue;let C=y.stretch*v/_;y.size-C<=y.minSize?(g-=y.size-y.minSize,d-=y.stretch,y.size=y.minSize,y.done=!0,p--,h--):(g-=C,y.size-=C)}}for(;p>0&&g>f;){let v=g/p;for(let _=0;_<a;++_){let x=s[_];x.done||(x.size-v<=x.minSize?(g-=x.size-x.minSize,x.size=x.minSize,x.done=!0,p--):(g-=v,x.size-=v))}}}else{let g=o-c;for(;h>0&&g>f;){let v=g,_=d;for(let x=0;x<a;++x){let y=s[x];if(y.done||y.stretch===0)continue;let C=y.stretch*v/_;y.size+C>=y.maxSize?(g-=y.maxSize-y.size,d-=y.stretch,y.size=y.maxSize,y.done=!0,p--,h--):(g-=C,y.size+=C)}}for(;p>0&&g>f;){let v=g/p;for(let _=0;_<a;++_){let x=s[_];x.done||(x.size+v>=x.maxSize?(g-=x.maxSize-x.size,x.size=x.maxSize,x.done=!0,p--):(g-=v,x.size+=v))}}}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 h=0;h<=o;++h){let f=s[h];l+=f.maxSize-f.size}let u=0;for(let h=o+1,f=s.length;h<f;++h){let p=s[h];u+=p.size-p.minSize}a=Math.min(a,l,u);let c=a;for(let h=o;h>=0&&c>0;--h){let f=s[h],p=f.maxSize-f.size;p>=c?(f.sizeHint=f.size+c,c=0):(f.sizeHint=f.size+p,c-=p)}let d=a;for(let h=o+1,f=s.length;h<f&&d>0;++h){let p=s[h],g=p.size-p.minSize;g>=d?(p.sizeHint=p.size-d,d=0):(p.sizeHint=p.size-g,d-=g)}}function n(s,o,a){let l=0;for(let h=o+1,f=s.length;h<f;++h){let p=s[h];l+=p.maxSize-p.size}let u=0;for(let h=0;h<=o;++h){let f=s[h];u+=f.size-f.minSize}a=Math.min(a,l,u);let c=a;for(let h=o+1,f=s.length;h<f&&c>0;++h){let p=s[h],g=p.maxSize-p.size;g>=c?(p.sizeHint=p.size+c,c=0):(p.sizeHint=p.size+g,c-=g)}let d=a;for(let h=o;h>=0&&d>0;--h){let f=s[h],p=f.size-f.minSize;p>=d?(f.sizeHint=f.size-d,d=0):(f.sizeHint=f.size-p,d-=p)}}})(An||(An={}));Vf=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 G(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,G.clearData(this))}},j=class{constructor(e={}){this._flags=0,this._layout=null,this._parent=null,this._disposed=new G(this),this._hiddenMode=j.HiddenMode.Display,this.node=rg.createNode(e),this.addClass("lm-Widget")}dispose(){this.isDisposed||(this.setFlag(j.Flag.IsDisposed),this._disposed.emit
10(void 0),this.parent?this.parent=null:this.isAttached&&j.detach(this),this._layout&&(this._layout.dispose(),this._layout=null),this.title.dispose(),G.clearData(this),te.clearData(this),Ye.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(){let e=this;do{if(e.isHidden||!e.isAttached)return!1;e=e.parent}while(e!=null);return!0}get title(){return rg.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);te.sendMessage(this._parent,t)}if(this._parent=e,this._parent&&!this._parent.isDisposed){let t=new j.ChildMessage("child-added",this);te.sendMessage(this._parent,t)}this.isDisposed||te.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(){te.postMessage(this,j.Msg.UpdateRequest)}fit(){te.postMessage(this,j.Msg.FitRequest)}activate(){te.postMessage(this,j.Msg.ActivateRequest)}close(){te.sendMessage(this,j.Msg.CloseRequest)}show(){if(this.testFlag(j.Flag.IsHidden)&&(this.isAttached&&(!this.parent||this.parent.isVisible)&&te.sendMessage(this,j.Msg.BeforeShow),this.clearFlag(j.Flag.IsHidden),this._toggleHidden(!1),this.isAttached&&(!this.parent||this.parent.isVisible)&&te.sendMessage(this,j.Msg.AfterShow),this.parent)){let e=new j.ChildMessage("child-shown",this);te.sendMessage(this.parent,e)}}hide(){if(!this.testFlag(j.Flag.IsHidden)&&(this.isAttached&&(!this.parent||this.parent.isVisible)&&te.sendMessage(this,j.Msg.BeforeHide),this.setFlag(j.Flag.IsHidden),this._toggleHidden(!0),this.isAttached&&(!this.parent||this.parent.isVisible)&&te.sendMessage(this,j.Msg.AfterHide),this.parent)){let e=new j.ChildMessage("child-hidden",this);te.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;
10case"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 Ur("before-show"),s.AfterShow=new Ur("after-show"),s.BeforeHide=new Ur("before-hide"),s.AfterHide=new Ur("after-hide"),s.BeforeAttach=new Ur("before-attach"),s.AfterAttach=new Ur("after-attach"),s.BeforeDetach=new Ur("before-detach"),s.AfterDetach=new Ur("after-detach"),s.ParentChanged=new Ur("parent-changed"),s.UpdateRequest=new tl("update-request"),s.FitRequest=new tl("fit-request"),s.ActivateRequest=new tl("activate-request"),s.CloseRequest=new tl("close-request")}(i.Msg||(i.Msg={}));class e extends Ur{constructor(o,a){super(o),this.child=a}}i.ChildMessage=e;class t extends Ur{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.");te.sendMessage(s,i.Msg.BeforeAttach),o.insertBefore(s.node,a),te.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.");te.sendMessage(s,i.Msg.BeforeDetach),s.node.parentNode.removeChild(s.node),te.sendMessage(s,i.Msg.AfterDetach)}i.detach=n})(j||(j={}));(function(i){i.titleProperty=new Ye({name:"title",create:t=>new Vf({owner:t})});function e(t){return t.node||document.createElement(t.tag||"div")}i.createNode=e})(rg||(rg={}));ho=class{constructor(e={}){this._disposed=!1,this._parent=null,this._fitPolicy=e.fitPolicy||"set-min-size"}dispose(){this._parent=null,this._disposed=!0,G.clearData(this),Ye.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)te.sendMessage(t,j.ResizeMessage.UnknownSize)}onUpdateRequest(e){for(let t of this)te.sendMessage(t,j.ResizeMessage.UnknownSize)}onBeforeAttach(e){for(let t of this)te.sendMessage(t,e)}onAfterAttach(e){for(let t of this)te.sendMessage(t,e)}onBeforeDetach(e){for(let t of this)te.sendMessage(t,e)}onAfterDetach(e){for(let t of this)te.sendMessage(t,e)}onBeforeShow(e){for(let t of this)t.isHidden||te.sendMessage(t,e)}onAfterShow(e){for(let t of this)t.isHidden||te.sendMessage(t,e)}onBeforeHide(e){for(let t of this)t.isHidden||te.sendMessage(t,e)}onAfterHide(e){for(let t of this)t.isHidden||te.sendMessage(t,e)}onChildRemoved(e){this.removeWidget(e.child)}onFitRequest(e){}onChildShown(e){}onChildHidden(e){}};(function(i){function e(s){return Rd.horizontalAlignmentProperty.get(s)}i.getHorizontalAlignment=e;function t(s,o){Rd.horizontalAlignmentProperty.set(s,o)}i.setHorizontalAlignment=t;function r(s){return Rd.verticalAlignmentProperty.get(s)}i.getVerticalAlignment=r;function n(s,o){Rd.verticalAlignmentProperty.set(s,o)}i.setVerticalAlignment=n})(ho||(ho={}));pc=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=he.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(ho.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(ho.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);te.sendMessage(this.widget,u)}}};(function(i){i.horizontalAlignmentProperty=new Ye({name:"horizontalAlignment",create:()=>"center",changed:e}),i.verticalAlignmentProperty=new Ye({name:"verticalAlignment",create:()=>"top",changed:e});
10function e(t){t.parent&&t.parent.layout&&t.parent.update()}})(Rd||(Rd={}));Rn=class extends ho{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){L.insert(this._widgets,n,t),this.parent&&this.attachWidget(n,t);return}n===this._widgets.length&&n--,r!==n&&(L.move(this._widgets,r,n),this.parent&&this.moveWidget(r,n,t))}removeWidget(e){this.removeWidgetAt(this._widgets.indexOf(e))}removeWidgetAt(e){let t=L.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&&te.sendMessage(t,j.Msg.BeforeAttach),this.parent.node.insertBefore(t.node,r),this.parent.isAttached&&te.sendMessage(t,j.Msg.AfterAttach)}moveWidget(e,t,r){this.parent.isAttached&&te.sendMessage(r,j.Msg.BeforeDetach),this.parent.node.removeChild(r.node),this.parent.isAttached&&te.sendMessage(r,j.Msg.AfterDetach);let n=this.parent.node.children[t];this.parent.isAttached&&te.sendMessage(r,j.Msg.BeforeAttach),this.parent.node.insertBefore(r.node,n),this.parent.isAttached&&te.sendMessage(r,j.Msg.AfterAttach)}detachWidget(e,t){this.parent.isAttached&&te.sendMessage(t,j.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&te.sendMessage(t,j.Msg.AfterDetach)}};(function(i){function e(t){return Math.max(0,Math.floor(t))}i.clampDimension=e})(Uf||(Uf={}));Wf=Uf,ks=class extends Rn{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=Uf.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=Uf.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 ea.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=ea.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);An.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 pc(t),n=ea.createHandle(this.renderer),s=ea.averageSize(this._sizers),o=ea.createSizer(s);L.insert(this._items,e,r),L.insert(this._sizers,e,o),L.insert(this._handles,e,n),this.parent.isAttached&&te.sendMessage(t,j.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.node.appendChild(n),this.parent.isAttached&&te.sendMessage(t,j.Msg.AfterAttach),this.parent.fit()}moveWidget(e,t,r){L.move(this._items,e,t),L.move(this._sizers,e,t),L.move(this._handles,e,t),this.parent.fit()}detachWidget(e,t){let r=L.removeAt(this._items,e),n=L.removeAt(this._handles,e);L.removeAt(this._sizers,e),this.parent.isAttached&&te.sendMessage(t,j.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.node.removeChild(n),this.parent.isAttached&&te.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=ks.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=he.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&&te.sendMessage(this.parent.parent,j.Msg.FitRequest),this._dirty&&te.sendMessage(this.parent,j.Msg.UpdateRequest)}_update(e,t){this._dirty=!1;let r=0;for(let d=0,h=this._items.length;d<h;++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=he.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 f of this._sizers)f.sizeHint*=d;this._hasNormedSizes=!1}let h=An.calc(this._sizers,d);if(h>0)switch(this._alignment){case"start":break;case"center":l=0,u=h/2;break;case"end":l=0,u=h;break;case"justify":l=h/r,u=0;break;default:throw"unreachable"}}for(let d=0,h=this._items.length;d<h;++d){let p=this._items[d].isHidden?0:this._sizers[d].size+l;this.updateItemPosition(d,c,c?s+u:s,c?n:n+u,a,o,p);let g=this.widgetOffset+(this._handles[d].classList.contains("lm-mod-hidden")?0:this._spacing);c?s+=p+g:n+=p+g}}};(function(i){function e(r){return ea.stretchProperty.get(r)}i.getStretch=e;function t(r,n){ea.stretchProperty.set(r,n)}i.setStretch=t})(ks||(ks={}));(function(i){i.stretchProperty=new Ye({name:"stretch",create:()=>0,coerce:(o,a)=>Math.max(0,Math.floor(a)),changed:s});function e(o){let a=new co;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 ks&&o.parent.fit()}})(ea||(ea={}));Qy=class extends ks{constructor(e){super({...e,orientation:e.orientation||"vertical"}),this._titles=[],this.titleSpace=e.titleSpace||22}get titleSpace(){return this.widgetOffset}set titleSpace(e){e=Wf.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=ng.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=ng.createTitle(this.renderer,t.title);L.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){L.move(this._titles,e,t),super.moveWidget(e,t,r)}detachWidget(e,t){let r=L.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})(ng||(ng={}));mc=class extends j{constructor(e={}){super(),this.addClass("lm-Panel"),this.layout=ex.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 Rn}i.createLayout=e})(ex||(ex={}));gc=class extends mc{constructor(e={}){super({layout:tx.createLayout(e)}),this._handleMoved=new G(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=L.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=Si.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 ks.getStretch(n)}i.getStretch=t;function r(n,s){ks.setStretch(n,s)}i.setStretch=r})(gc||(gc={}));(function(i){function e(t){return t.layout||new ks({renderer:t.renderer||gc.defaultRenderer,orientation:t.orientation,alignment:t.alignment,spacing:t.spacing})}i.createLayout=e})(tx||(tx={}));Dd=class extends gc{constructor(e={}){super({...e,layout:ix.createLayout(e)}),this._widgetSizesCache=new WeakMap,this._expansionToggled=new G(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=L.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,h)=>{h!==e&&(l[h]-=s[h]/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=L.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=L.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 gc.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})(Dd||(Dd={}));(function(i){function e(t){return t.layout||new Qy({renderer:t.renderer||Dd.defaultRenderer,orientation:t.orientation,alignment:t.alignment,spacing:t.spacing,titleSpace:t.titleSpace})}i.createLayout=e})(ix||(ix={}));Mn=class extends Rn{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=Wf.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=Wf.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){L.insert(this._items,e,new pc(t)),L.insert(this._sizers,e,new co),this.parent.isAttached&&te.sendMessage(t,j.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.isAttached&&te.sendMessage(t,j.Msg.AfterAttach),this.parent.fit()}moveWidget(e,t,r){L.move(this._items,e,t),L.move(this._sizers,e,t),this.parent.update()}detachWidget(e,t){let r=L.removeAt(this._items,e);L.removeAt(this._sizers,e),this.parent.isAttached&&te.sendMessage(t,j.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&te.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=fc.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=Mn.getSizeBasis(u.widget),c.stretch=Mn.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=he.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&&te.sendMessage(this.parent.parent,j.Msg.FitRequest),this._dirty&&te.sendMessage(this.parent,j.Msg.UpdateRequest)}_update(e,t){this._dirty=!1;let r=0;for(let d=0,h=this._items.length;d<h;++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=he.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=An.calc(this._sizers,Math.max(0,o-this._fixed));break;case"top-to-bottom":l=An.calc(this._sizers,Math.max(0,a-this._fixed));break;case"right-to-left":l=An.calc(this._sizers,Math.max(0,o-this._fixed)),s+=o;break;case"bottom-to-top":l=An.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,h=this._items.length;d<h;++d){let f=this._items[d];if(f.isHidden)continue;let p=this._sizers[d].size;switch(this._direction){case"left-to-right":f.update(s+c,n,p+u,a),s+=p+u+this._spacing;break;case"top-to-bottom":f.update(s,n+c,o,p+u),n+=p+u+this._spacing;break;case"right-to-left":f.update(s-c-p-u,n,p+u,a),s-=p+u+this._spacing;break;case"bottom-to-top":f.update(s,n-c-p-u,o,p+u),n-=p+u+this._spacing;break;default:throw"unreachable"}}}};(function(i){function e(s){return fc.stretchProperty.get(s)}i.getStretch=e;function t(s,o){fc.stretchProperty.set(s,o)}i.setStretch=t;function r(s){return fc.sizeBasisProperty.get(s)}i.getSizeBasis=r;function n(s,o){fc.sizeBasisProperty.set(s,o)}i.setSizeBasis=n})(Mn||(Mn={}));(function(i){i.stretchProperty=new Ye({name:"stretch",create:()=>0,coerce:(n,s)=>Math.max(0,Math.floor(s)),changed:r}),i.sizeBasisProperty=new Ye({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 Mn&&n.parent.fit()}})(fc||(fc={}));sg=class extends mc{constructor(e={}){super({layout:rx.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 Mn.getStretch(s)}i.getStretch=e;function t(s,o){Mn.setStretch(s,o)}i.setStretch=t;function r(s){return Mn.getSizeBasis(s)}i.getSizeBasis=r;function n(s,o){Mn.setSizeBasis(s,o)}i.setSizeBasis=n})(sg||(sg={}));(function(i){function e(t){return t.layout||new Mn(t)}i.createLayout=e})(rx||(rx={}));rl=class extends j{constructor(e){super({node:Qo.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||rl.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=Qo.createItem(this.commands,e);return this._items.push(t),this.refresh(),t}addItems(e){let t=e.map(r=>Qo.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){L.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.isVisible){Pt.render(null,this.contentNode);return}let t=this.inputNode.value,r=this.contentNode,n=this._results;if(n||(n=this._results=Qo.search(this._items,t),this._activeIndex=t?L.findFirstIndex(n,Qo.canActivate):-1),!t&&n.length===0){Pt.render(null,r);return}if(t&&n.length===0){let l=this.renderer.renderEmptyMessage({query:t});Pt.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,h=c.category;a[l]=s.renderHeader({category:h,indices:d})}else{let d=c.item,h=c.indices,f=l===o;a[l]=s.renderItem({item:d,indices:h,active:f})}}if(Pt.render(a,r),o<0||o>=n.length)r.scrollTop=0;else{let l=r.children[o];he.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=L.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=L.findFirstIndex(this._results,Qo.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=L.findLastIndex(this._results,Qo.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 re.li({className:"lm-CommandPalette-header"},n)}renderItem(r){let n=this.createItemClass(r),s=this.createItemDataset(r);return r.item.isToggleable?re.li({className:n,dataset:s,role:"menuitemcheckbox","aria-checked":`${r.item.isToggled}`},this.renderItemIcon(r),this.renderItemContent(r),this.renderItemShortcut(r)):re.li({className:n,dataset:s,role:"menuitem"},this.renderItemIcon(r),this.renderItemContent(r),this.renderItemShortcut(r))}renderEmptyMessage(r){let n=this.formatEmptyMessage(r);return re.li({className:"lm-CommandPalette-emptyMessage"},n)}renderItemIcon(r){let n=this.createIconClass(r);return re.div({className:n},r.item.icon,r.item.iconLabel)}renderItemContent(r){return re.div({className:"lm-CommandPalette-itemContent"},this.renderItemLabel(r),this.renderItemCaption(r))}renderItemLabel(r){let n=this.formatItemLabel(r);return re.div({className:"lm-CommandPalette-itemLabel"},n)}renderItemCaption(r){let n=this.formatItemCaption(r);return re.div({className:"lm-CommandPalette-itemCaption"},n)}renderItemShortcut(r){let n=this.formatItemShortcut(r);return re.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:gr.highlight(r.category,r.indices,re.mark)}formatEmptyMessage(r){return`No commands found that match '${r.query}'`}formatItemShortcut(r){let n=r.item.keyBinding;return n?ti.formatKeystroke(n.keys):null}formatItemLabel(r){return!r.indices||r.indices.length===0?r.item.label:gr.highlight(r.item.label,r.indices,re.mark)}formatItemCaption(r){return r.item.caption}}i.Renderer=e,i.defaultRenderer=new e})(rl||(rl={}));(function(i){function e(){let h=document.createElement("div"),f=document.createElement("div"),p=document.createElement("div"),g=document.createElement("input"),v=document.createElement("ul"),_=document.createElement("button");return f.className="lm-CommandPalette-search",p.className="lm-CommandPalette-wrapper",g.className="lm-CommandPalette-input",_.className="lm-close-icon",v.className="lm-CommandPalette-content",v.setAttribute("role","menu"),g.spellcheck=!1,p.appendChild(g),p.appendChild(_),f.appendChild(p),h.appendChild(f),h.appendChild(v),h}i.createNode=e;function t(h,f){return new d(h,f)}i.createItem=t;function r(h,f){let p=a(h,f);return p.sort(u),c(p)}i.search=r;function n(h){return h.type==="item"&&h.item.isEnabled}i.canActivate=n;function s(h){return h.trim().replace(/\s+/g," ")}function o(h){return h.replace(/\s+/g,"").toLowerCase()}function a(h,f){f=o(f);let p=[];for(let g=0,v=h.length;g<v;++g){let _=h[g];if(!_.isVisible)continue;if(!f){p.push({matchType:3,categoryIndices:null,labelIndices:null,
10score:0,item:_});continue}let x=l(_,f);x&&(_.isEnabled||(x.score+=1e3),p.push(x))}return p}function l(h,f){let p=h.category.toLowerCase(),g=h.label.toLowerCase(),v=`${p} ${g}`,_=1/0,x=null,y=/\b\w/g;for(;;){let E=y.exec(v);if(!E)break;let w=gr.matchSumOfDeltas(v,f,E.index);if(!w)break;w.score<=_&&(_=w.score,x=w.indices)}if(!x||_===1/0)return null;let C=p.length+1,S=L.lowerBound(x,C,(E,w)=>E-w),R=x.slice(0,S),I=x.slice(S);for(let E=0,w=I.length;E<w;++E)I[E]-=C;return R.length===0?{matchType:0,categoryIndices:null,labelIndices:I,score:_,item:h}:I.length===0?{matchType:1,categoryIndices:R,labelIndices:null,score:_,item:h}:{matchType:2,categoryIndices:R,labelIndices:I,score:_,item:h}}function u(h,f){let p=h.matchType-f.matchType;if(p!==0)return p;let g=h.score-f.score;if(g!==0)return g;let v=0,_=0;switch(h.matchType){case 0:v=h.labelIndices[0],_=f.labelIndices[0];break;case 1:case 2:v=h.categoryIndices[0],_=f.categoryIndices[0];break}if(v!==_)return v-_;let x=h.item.category.localeCompare(f.item.category);if(x!==0)return x;let y=h.item.rank,C=f.item.rank;return y!==C?y<C?-1:1:h.item.label.localeCompare(f.item.label)}function c(h){let f=[];for(let p=0,g=h.length;p<g;++p){let{item:v,categoryIndices:_,labelIndices:x}=h[p],y=v.category;(p===0||y!==h[p-1].item.category)&&f.push({type:"header",category:y,indices:_}),f.push({type:"item",item:v,indices:x})}return f}class d{constructor(f,p){this._commands=f,this.category=s(p.category),this.command=p.command,this.args=p.args||ia.JSONExt.emptyObject,this.rank=p.rank!==void 0?p.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:f,args:p}=this;return L.findLastValue(this._commands.keyBindings,g=>g.command===f&&ia.JSONExt.deepEqual(g.args,p))||null}}})(Qo||(Qo={}));Gr=class extends j{constructor(e){super({node:Wr.createNode()}),this._childIndex=-1,this._activeIndex=-1,this._openTimerID=0,this._closeTimerID=0,this._items=[],this._childMenu=null,this._parentMenu=null,this._aboutToClose=new G(this),this._menuRequested=new G(this),this.addClass("lm-Menu"),this.setFlag(j.Flag.DisallowLayout),this.commands=e.commands,this.renderer=e.renderer||Gr.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&&!Wr.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=L.findFirstIndex(this._items,Wr.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=L.findLastIndex(this._items,Wr.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=Wr.createItem(this,t);return L.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,L.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,o;if(this.isAttached)return;let a=r.forceX||!1,l=r.forceY||!1,u=(n=r.host)!==null&&n!==void 0?n:null,c=(s=r.ref)!==null&&s!==void 0?s:null,d=(o=r.horizontalAlignment)!==null&&o!==void 0?o:document.documentElement.dir==="rtl"?"right":"left";Wr.openRootMenu(this,e,t,a,l,d,u,c),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,
10!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=Wr.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}})}Pt.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=Qn().keyForKeydownEvent(e);if(!r)return;let n=this._activeIndex+1,s=Wr.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=L.findFirstIndex(this.contentNode.children,n=>he.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(he.hitTest(this._childMenu.node,t,r)){this._cancelCloseTimer();return}this.activeIndex=-1,this._startCloseTimer()}_evtMouseDown(e){this._parentMenu||(Wr.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;Gr.saveWindowData(),this._closeChildMenu(),this._childMenu=r,this._childIndex=this._activeIndex,r._parentMenu=this,te.sendMessage(this,j.Msg.UpdateRequest);let n=this.contentNode.children[this._activeIndex];Wr.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()},Wr.TIMER_DELAY))}_startCloseTimer(){this._closeTimerID===0&&(this._closeTimerID=window.setTimeout(()=>{this._closeTimerID=0,this._closeChildMenu()},Wr.TIMER_DELAY))}_cancelOpenTimer(){this._openTimerID!==0&&(clearTimeout(this._openTimerID),this._openTimerID=0)}_cancelCloseTimer(){this._closeTimerID!==0&&(clearTimeout(this._closeTimerID),this._closeTimerID=0)}static saveWindowData(){Wr.saveWindowData()}};(function(i){class e{renderItem(r){let n=this.createItemClass(r),s=this.createItemDataset(r),o=this.createItemARIA(r);return re.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 re.div({className:n},r.item.icon,r.item.iconLabel)}renderLabel(r){let n=this.formatLabel(r);return re.div({className:"lm-Menu-itemLabel"},n)}renderShortcut(r){let n=this.formatShortcut(r);return re.div({className:"lm-Menu-itemShortcut"},n)}renderSubmenu(r){return re.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}
10createItemDataset(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"),r.item.isToggled?(n.role="menuitemcheckbox",n["aria-checked"]="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=re.span({className:"lm-Menu-itemMnemonic"},l);return[o,u,a]}formatShortcut(r){let n=r.item.keyBinding;return n?ti.formatKeystroke(n.keys):null}}i.Renderer=e,i.defaultRenderer=new e})(Gr||(Gr={}));(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 g=document.createElement("div"),v=document.createElement("ul");return v.className="lm-Menu-content",g.appendChild(v),v.setAttribute("role","menu"),g.tabIndex=0,g}i.createNode=s;function o(g){return g.type!=="separator"&&g.isEnabled&&g.isVisible}i.canActivate=o;function a(g,v){return new p(g.commands,v)}i.createItem=a;function l(g,v,_){for(let x=g;x;x=x.childMenu)if(he.hitTest(x.node,v,_))return!0;return!1}i.hitTestMenus=l;function u(g){let v=new Array(g.length);L.fill(v,!1);let _=0,x=g.length;for(;_<x;++_){let S=g[_];if(S.isVisible){if(S.type!=="separator")break;v[_]=!0}}let y=x-1;for(;y>=0;--y){let S=g[y];if(S.isVisible){if(S.type!=="separator")break;v[y]=!0}}let C=!1;for(;++_<y;){let S=g[_];S.isVisible&&(S.type!=="separator"?C=!1:C?v[_]=!0:C=!0)}return v}i.computeCollapsed=u;function c(){return{pageXOffset:window.pageXOffset,pageYOffset:window.pageYOffset,clientWidth:document.documentElement.clientWidth,clientHeight:document.documentElement.clientHeight}}function d(g,v,_,x,y,C,S,R){let I=r(),E=I.pageXOffset,w=I.pageYOffset,k=I.clientWidth,O=I.clientHeight;te.sendMessage(g,j.Msg.UpdateRequest);let z=O-(y?_:0),Y=g.node,pe=Y.style;pe.opacity="0",pe.maxHeight=`${z}px`,j.attach(g,S||document.body,R);let{width:U,height:ne}=Y.getBoundingClientRect();C==="right"&&(v-=U),!x&&v+U>E+k&&(v=E+k-U),!y&&_+ne>w+O&&(_>w+O?_=w+O-ne:_=_-ne),pe.transform=`translate(${Math.max(0,v)}px, ${Math.max(0,_)}px`,pe.opacity="1"}i.openRootMenu=d;function h(g,v){let _=r(),x=_.pageXOffset,y=_.pageYOffset,C=_.clientWidth,S=_.clientHeight;te.sendMessage(g,j.Msg.UpdateRequest);let R=S,I=g.node,E=I.style;E.opacity="0",E.maxHeight=`${R}px`,j.attach(g,document.body);let{width:w,height:k}=I.getBoundingClientRect(),O=he.boxSizing(g.node),z=v.getBoundingClientRect(),Y=z.right-i.SUB
10MENU_OVERLAP;Y+w>x+C&&(Y=z.left+i.SUBMENU_OVERLAP-w);let pe=z.top-O.borderTop-O.paddingTop;pe+k>y+S&&(pe=z.bottom+O.borderBottom+O.paddingBottom-k),E.transform=`translate(${Math.max(0,Y)}px, ${Math.max(0,pe)}px`,E.opacity="1"}i.openSubmenu=h;function f(g,v,_){let x=-1,y=-1,C=!1,S=v.toUpperCase();for(let R=0,I=g.length;R<I;++R){let E=(R+_)%I,w=g[E];if(!o(w))continue;let k=w.label;if(k.length===0)continue;let O=w.mnemonic;if(O>=0&&O<k.length){k[O].toUpperCase()===S&&(x===-1?x=E:C=!0);continue}y===-1&&k[0].toUpperCase()===S&&(y=E)}return{index:x,multiple:C,auto:y}}i.findMnemonic=f;class p{constructor(v,_){this._commands=v,this.type=_.type||"command",this.command=_.command||"",this.args=_.args||ia.JSONExt.emptyObject,this.submenu=_.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}get keyBinding(){if(this.type==="command"){let{command:v,args:_}=this;return L.findLastValue(this._commands.keyBindings,x=>x.command===v&&ia.JSONExt.deepEqual(x.args,_))||null}return null}}})(Wr||(Wr={}));(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 h=[],f=o.slice();for(;c!==null;){let p=[];for(let g=0,v=f.length;g<v;++g){let _=f[g];_&&pi.matches(c,_.selector)&&(p.push(_),f[g]=null)}if(p.length!==0&&(l&&p.sort(u?s:n),h.push(...p)),c===d)break;c=c.parentElement}return l||h.sort(u?s:n),h}i.matchItems=t;function r(o){if(o.indexOf(",")!==-1)throw new Error(`Selector cannot contain commas: ${o}`);if(!pi.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=pi.calculateSpecificity(o.selector),u=pi.calculateSpecificity(a.selector);return l!==u?u-l:n(o,a)}})(BR||(BR={}));Ele=["ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Home","End"],Ts=class extends j{constructor(e={}){super({node:es.createNode()}),this._currentIndex=-1,this._titles=[],this._titlesEditable=!1,this._previousTitle=null,this._dragData=null,this._addButtonEnabled=!1,this._tabMoved=new G(this),this._currentChanged=new G(this),this._addRequested=new G(this),this._tabCloseRequested=new G(this),this._tabDetachRequested=new G(this),this._tabActivateRequested=new G(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||Ts.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;
10let 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=es.asTitle(t),n=this._titles.indexOf(r),s=Math.max(0,Math.min(e,this._titles.length));return n===-1?(L.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||(L.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=L.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,currentTitle: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,h=d?u:u-l-1,f=a===l?0:-1;o[l]=n.renderTab({title:c,current:d,zIndex:h,tabIndex:f})}Pt.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=L.findFirstIndex(t,o=>he.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;
10if(!(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=L.findFirstIndex(this.contentNode.children,a=>a.contains(s));o>=0&&(e.preventDefault(),e.stopPropagation(),this.currentIndex=o)}}else if(Ele.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=L.findFirstIndex(r,o=>he.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,!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&&!es.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=es.snapTabLayout(r,this._orientation),t.contentRect=this.contentNode.getBoundingClientRect(),t.override=Si.overrideCursor("default"),t.tab.classList.add("lm-mod-dragging"),this.addClass("lm-mod-dragging"),t.dragActive=!0}if(!t.detachRequested&&es.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}es.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=L.findFirstIndex(s,u=>he.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;es.finalizeTabPosition(t,this._orientation),t.tab.classList.remove("lm-mod-dragging");let r=es.parseTransitionDuration(t.tab);setTimeout(()=>{if(t.dragAborted)return;this._dragData=null,es.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||(L.move(this._titles,n,s),this._adjustCurrentForMove(n,s),this._tabMoved.emit({fromIndex:n,toIndex:s,title:this._titles[s]}),te.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,
10!0),this.document.removeEventListener("keydown",this,!0),this.document.removeEventListener("contextmenu",this,!0),e.dragAborted=!0,e.dragActive&&(es.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,currentTitle: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?re.li({id:o,key:s,className:l,title:n,style:a,dataset:u,...c},this.renderIcon(r),this.renderLabel(r),this.renderCloseIcon(r)):re.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 re.div({className:s},n.icon,n.iconLabel)}renderLabel(r){return re.div({className:"lm-TabBar-tabLabel"},r.title.label)}renderCloseIcon(r){return re.div({className:"lm-TabBar-tabCloseIcon"})}
10createTabKey(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"})(Ts||(Ts={}));(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 h=document.createElement("div");return h.className="lm-TabBar-addButton lm-mod-hidden",h.setAttribute("tabindex","-1"),h.setAttribute("role","button"),c.appendChild(h),c}i.createNode=e;function t(c){return c instanceof Vf?c:new Vf(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 h=new Array(c.length);for(let f=0,p=c.length;f<p;++f){let g=c[f],v=window.getComputedStyle(g);d==="horizontal"?h[f]={pos:g.offsetLeft,size:g.offsetWidth,margin:parseFloat(v.marginLeft)||0}:h[f]={pos:g.offsetTop,size:g.offsetHeight,margin:parseFloat(v.marginTop)||0}}return h}i.snapTabLayout=n;function s(c,d){let h=Math.abs(d.clientX-c.pressX),f=Math.abs(d.clientY-c.pressY);return h>=i.DRAG_THRESHOLD||f>=i.DRAG_THRESHOLD}i.dragExceeded=s;function o(c,d){let h=c.contentRect;return d.clientX<h.left-i.DETACH_THRESHOLD||d.clientX>=h.right+i.DETACH_THRESHOLD||d.clientY<h.top-i.DETACH_THRESHOLD||d.clientY>=h.bottom+i.DETACH_THRESHOLD}i.detachExceeded=o;function a(c,d,h,f){let p,g,v,_;f==="horizontal"?(p=d.pressX,g=h.clientX-d.contentRect.left,v=h.clientX,_=d.contentRect.width):(p=d.pressY,g=h.clientY-d.contentRect.top,v=h.clientY,_=d.contentRect.height);let x=d.index,y=g-d.tabPressPos,C=y+d.tabSize;for(let S=0,R=c.length;S<R;++S){let I,E=d.tabLayout[S],w=E.pos+(E.size>>1);if(S<d.index&&y<w)I=`${d.tabSize+d.tabLayout[S+1].margin}px`,x=Math.min(x,S);else if(S>d.index&&C>w)I=`${-d.tabSize-E.margin}px`,x=Math.max(x,S);else if(S===d.index){let k=v-p,O=_-(d.tabPos+d.tabSize);I=`${Math.max(-d.tabPos,Math.min(k,O))}px`}else I="";f==="horizontal"?c[S].style.left=I:c[S].style.top=I}d.targetIndex=x}i.layoutTabs=a;function l(c,d){let h;d==="horizontal"?h=c.contentRect.width:h=c.contentRect.height;let f;if(c.targetIndex===c.index)f=0;else if(c.targetIndex>c.index){let v=c.tabLayout[c.targetIndex];f=v.pos+v.size-c.tabSize-c.tabPos}else f=c.tabLayout[c.targetIndex].pos-c.tabPos;let p=h-(c.tabPos+c.tabSize),g=Math.max(-c.tabPos,Math.min(f,p));d==="horizontal"?c.tab.style.left=`${g}px`:c.tab.style.top=`${g}px`}i.finalizeTabPosition=l;function u(c,d){for(let h of c)d==="horizontal"?h.style.left="":h.style.top=""}i.resetTabPositions=u})(es||(es={}));nx=class extends ho{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=Wf.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]();this._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=Wf.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():Oi()}widgets(){return this._root?this._root.iterUserWidgets():Oi()}selectedWidgets(){return this._root?this._root.iterSelectedWidgets():Oi()}tabBars(){return this._root?this._root.iterTabBars():Oi()}handles(){return this._root?this._root.iterHandles():Oi()}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(),An.adjust(s.node.sizers,s.index,o),this.parent&&this.parent.update(
10))}saveLayout(){return this._root?(this._root.holdAllSizes(),{main:this._root.createConfig()}):{main:null}}restoreLayout(e){let t=new Set,r;e.main?r=mi.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=mi.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=he.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,h=this._box.borderLeft+this._box.borderRight,f=this._box.borderTop+this._box.borderBottom,p=r.width-h-(u+c),g=r.height-f-(l+d);return{tabBar:a,x:n,y:s,top:l,left:u,right:p,bottom:g,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 pc(e)),this.parent.isAttached&&te.sendMessage(e,j.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&te.sendMessage(e,j.Msg.AfterAttach))}detachWidget(e){if(this.parent.node!==e.node.parentNode)return;this.parent.isAttached&&te.sendMessage(e,j.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&te.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;if(mi.removeAria(e),t.tabBar.titles.length>1){if(t.tabBar.removeTab(e.title),this._hiddenMode===j.HiddenMode.Scale&&t.tabBar.titles.length==1){let h=t.tabBar.titles[0].owner;h.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=L.removeFirstOf(r.children,t),s=L.removeAt(r.handles,n);if(L.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 mi.TabLayoutNode){a.parent=u,u.children[c]=a;return}let d=L.removeAt(u.handles,c);L.removeAt(u.children,c),L.removeAt(u.sizers,c),d.parentNode&&d.parentNode.removeChild(d);for(let h=0,f=a.children.length;h<f;++h){let p=a.children[h],g=a.handles[h],v=a.sizers[h];L.insert(u.children,c+h,p),L.insert(u.handles,c+h,g),L.insert(u.sizers,c+h,v),p.parent=u}a.children.length=0,a.handles.length=0,a.sizers.length=0,a.parent=null,u.syncHandles()}_createTabNode(e){let t=new mi.TabLayoutNode(this._createTabBar());return t.tabBar.addTab(e.title),mi.addAria(e,t.tabBar),t}_insertTab(e,t,r,n){if(e===t)return;if(!this._root){let o=new mi.TabLayoutNode(this._createTabBar());o.tabBar.addTab(e.title),this._root=o,mi.addAria(e,o.tabBar);return}
10r||(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),mi.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 h=this._splitRoot(n),f=s?h.children.length:0;h.normalizeSizes();let p=mi.createSizer(r?1:mi.GOLDEN_RATIO),g=this._createTabNode(e);L.insert(h.children,f,g),L.insert(h.sizers,f,p),L.insert(h.handles,f,this._createHandle()),g.parent=h,h.normalizeSizes(),h.syncHandles();return}let a=r.parent;if(a.orientation===n){let h=a.children.indexOf(r);if(o){let v=h+(s?1:-1),_=a.children[v];if(_ instanceof mi.TabLayoutNode){this._insertTab(e,null,_,!0),++_.tabBar.currentIndex;return}}a.normalizeSizes();let f=a.sizers[h].sizeHint/=2,p=h+(s?1:0),g=this._createTabNode(e);L.insert(a.children,p,g),L.insert(a.sizers,p,mi.createSizer(f)),L.insert(a.handles,p,this._createHandle()),g.parent=a,a.syncHandles();return}let l=L.removeFirstOf(a.children,r),u=new mi.SplitLayoutNode(n);u.normalized=!0,u.children.push(r),u.sizers.push(mi.createSizer(.5)),u.handles.push(this._createHandle()),r.parent=u;let c=s?1:0,d=this._createTabNode(e);L.insert(u.children,c,d),L.insert(u.sizers,c,mi.createSizer(.5)),L.insert(u.handles,c,this._createHandle()),d.parent=u,u.syncHandles(),L.insert(a.children,l,u),u.parent=a}_splitRoot(e){let t=this._root;if(t instanceof mi.SplitLayoutNode&&t.orientation===e)return t;let r=this._root=new mi.SplitLayoutNode(e);return t&&(r.children.push(t),r.sizers.push(mi.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=he.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&&te.sendMessage(this.parent.parent,j.Msg.FitRequest),this._dirty&&te.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=he.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(h){let f=new co;return f.sizeHint=h,f.size=h,f}i.createSizer=e;function t(h,f){let p;return h.type==="tab-area"?p=l(h,f):p=u(h,f),p}i.normalizeAreaConfig=t;function r(h,f,p){let g;return h.type==="tab-area"?g=c(h,f,p):g=d(h,f,p),g}i.realizeAreaConfig=r;class n{constructor(f){this.parent=null,this._top=0,this._left=0,this._width=0,this._height=0;let p=new co,g=new co;p.stretch=0,g.stretch=1,this.tabBar=f,this.sizers=[p,g]}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()}*iterUserWidgets(){for(let f of this.tabBar.titles)yield f.owner}*iterSelectedWidgets(){let f=this.tabBar.currentTitle;f&&(yield f.owner)}*iterTabBars(){yield this.tabBar}*iterHandles(){}findTabNode(f){return this.tabBar.titles.indexOf(f.title)!==-1?this:null}findSplitNode(f){return null}findFirstTabNode(){return this}hitTestTabNodes(f,p){return f<this._left||f>=this._left+this._width||p<this._top||p>=this._top+this._height?null:this}
10createConfig(){let f=this.tabBar.titles.map(g=>g.owner),p=this.tabBar.currentIndex;return{type:"tab-area",widgets:f,currentIndex:p}}holdAllSizes(){}fit(f,p){let g=0,v=0,_=1/0,x=1/0,y=p.get(this.tabBar),C=this.tabBar.currentTitle,S=C?p.get(C.owner):void 0,[R,I]=this.sizers;return y&&y.fit(),S&&S.fit(),y&&!y.isHidden?(g=Math.max(g,y.minWidth),v+=y.minHeight,R.minSize=y.minHeight,R.maxSize=y.maxHeight):(R.minSize=0,R.maxSize=0),S&&!S.isHidden?(g=Math.max(g,S.minWidth),v+=S.minHeight,I.minSize=S.minHeight,I.maxSize=1/0):(I.minSize=0,I.maxSize=1/0),{minWidth:g,minHeight:v,maxWidth:_,maxHeight:x}}update(f,p,g,v,_,x){this._top=p,this._left=f,this._width=g,this._height=v;let y=x.get(this.tabBar),C=this.tabBar.currentTitle,S=C?x.get(C.owner):void 0;if(An.calc(this.sizers,v),y&&!y.isHidden){let R=this.sizers[0].size;y.update(f,p,g,R),p+=R}if(S&&!S.isHidden){let R=this.sizers[1].size;S.update(f,p,g,R)}}}i.TabLayoutNode=n;class s{constructor(f){this.parent=null,this.normalized=!1,this.children=[],this.sizers=[],this.handles=[],this.orientation=f}*iterAllWidgets(){for(let f of this.children)yield*f.iterAllWidgets()}*iterUserWidgets(){for(let f of this.children)yield*f.iterUserWidgets()}*iterSelectedWidgets(){for(let f of this.children)yield*f.iterSelectedWidgets()}*iterTabBars(){for(let f of this.children)yield*f.iterTabBars()}*iterHandles(){yield*this.handles;for(let f of this.children)yield*f.iterHandles()}findTabNode(f){for(let p=0,g=this.children.length;p<g;++p){let v=this.children[p].findTabNode(f);if(v)return v}return null}findSplitNode(f){let p=this.handles.indexOf(f);
10if(p!==-1)return{index:p,node:this};for(let g=0,v=this.children.length;g<v;++g){let _=this.children[g].findSplitNode(f);if(_)return _}return null}findFirstTabNode(){return this.children.length===0?null:this.children[0].findFirstTabNode()}hitTestTabNodes(f,p){for(let g=0,v=this.children.length;g<v;++g){let _=this.children[g].hitTestTabNodes(f,p);if(_)return _}return null}createConfig(){let f=this.orientation,p=this.createNormalizedSizes(),g=this.children.map(v=>v.createConfig());return{type:"split-area",orientation:f,children:g,sizes:p}}syncHandles(){this.handles.forEach((f,p)=>{f.setAttribute("data-orientation",this.orientation),p===this.handles.length-1?f.classList.add("lm-mod-hidden"):f.classList.remove("lm-mod-hidden")})}holdSizes(){for(let f of this.sizers)f.sizeHint=f.size}holdAllSizes(){for(let f of this.children)f.holdAllSizes();this.holdSizes()}normalizeSizes(){let f=this.sizers.length;if(f===0)return;this.holdSizes();let p=this.sizers.reduce((g,v)=>g+v.sizeHint,0);if(p===0)for(let g of this.sizers)g.size=g.sizeHint=1/f;else for(let g of this.sizers)g.size=g.sizeHint/=p;this.normalized=!0}createNormalizedSizes(){let f=this.sizers.length;if(f===0)return[];let p=this.sizers.map(v=>v.size),g=p.reduce((v,_)=>v+_,0);if(g===0)for(let v=p.length-1;v>-1;v--)p[v]=1/f;else for(let v=p.length-1;v>-1;v--)p[v]/=g;return p}fit(f,p){let g=this.orientation==="horizontal",v=Math.max(0,this.children.length-1)*f,_=g?v:0,x=g?0:v,y=1/0,C=1/0;for(let S=0,R=this.children.length;S<R;++S){let I=this.children[S].fit(f,p);g?(x=Math.max(x,I.minHeight),_+=I.minWidth,this.sizers[S].minSize=I.minWidth):(_=Math.max(_,I.minWidth),x+=I.minHeight,this.sizers[S].minSize=I.minHeight)}return{minWidth:_,minHeight:x,maxWidth:y,maxHeight:C}}update(f,p,g,v,_,x){let y=this.orientation==="horizontal",C=Math.max(0,this.children.length-1)*_,S=Math.max(0,(y?g:v)-C);if(this.normalized){for(let R of this.sizers)R.sizeHint*=S;this.normalized=!1}An.calc(this.sizers,S);for(let R=0,I=this.children.length;R<I;++R){let E=this.children[R],w=this.sizers[R].size,k=this.handles[R].style;y?(E.update(f,p,w,v,_,x),f+=w,k.top=`${p}px`,k.left=`${f}px`,k.width=`${_}px`,k.height=`${v}px`,f+=_):(E.update(f,p,g,w,_,x),p+=w,k.top=`${p}px`,k.left=`${f}px`,k.width=`${g}px`,k.height=`${_}px`,p+=_)}}}i.SplitLayoutNode=s;function o(h,f){h.node.setAttribute("role","tabpanel");let p=f.renderer;if(p instanceof Ts.Renderer){let g=p.createTabKey({title:h.title,current:!1,zIndex:0});h.node.setAttribute("aria-labelledby",g)}}i.addAria=o;function a(h){h.node.removeAttribute("role"),h.node.removeAttribute("aria-labelledby")}i.removeAria=a;function l(h,f){if(h.widgets.length===0)return null;let p=[];for(let v of h.widgets)f.has(v)||(f.add(v),p.push(v));if(p.length===0)return null;let g=h.currentIndex;return g!==-1&&(g<0||g>=p.length)&&(g=0),{type:"tab-area",widgets:p,currentIndex:g}}function u(h,f){let p=h.orientation,g=[],v=[];for(let _=0,x=h.children.length;_<x;++_){let y=t(h.children[_],f);y&&(y.type==="tab-area"||y.orientation!==p?(g.push(y),v.push(Math.abs(h.sizes[_]||0))):(g.push(...y.children),v.push(...y.sizes)))}return g.length===0?null:g.length===1?g[0]:{type:"split-area",orientation:p,children:g,sizes:v}}function c(h,f,p){let g=f.createTabBar(p);for(let v of h.widgets)v.hide(),g.addTab(v.title),i.addAria(v,g);return g.currentIndex=h.currentIndex,new n(g)}function d(h,f,p){let g=new s(h.orientation);return h.children.forEach((v,_)=>{let x=r(v,f,p),y=e(h.sizes[_]),C=f.createHandle();g.children.push(x),g.handles.push(C),g.sizers.push(y),x.parent=g}),g.syncHandles(),g.normalizeSizes(),g}})(mi||(mi={}));fo=class extends j{constructor(e={}){super(),this._drag=null,this._tabsMovable=!0,this._tabsConstrained=!1,this._addButtonEnabled=!1,this._pressData=null,this._layoutModified=new G(this),this._addRequested=new G(this),this.addClass("lm-DockPanel"),this._document=e.document||document,this._mode=e.mode||"multiple-document",this._renderer=e.renderer||fo.defaultRenderer,this._edges=e.edges||ii.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 nx({document:this._document,renderer:t,spacing:e.spacing,hiddenMode:e.hiddenMode}),this.overlay=e.overlay||new fo.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(ii.createSingleDocumentConfig(this));break;default:throw"unreachable"}te.postMessage(this,ii.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=Ui(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),(Ft.IS_EDGE||Ft.IS_IE)&&te.flush(),te.postMessage(this,ii.LayoutModified)}addWidget(e,t={}){this._mode==="single-document"?this.layout.addWidget(e):this.layout.addWidget(e,t),te.postMessage(this,ii.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){ii.isGeneratedTabBarProperty.get(e.child)||e.child.addClass("lm-DockPanel-widget")}onChildRemoved(e){ii.isGeneratedTabBarProperty.get(e.child)||(e.child.removeClass("lm-DockPanel-widget"),te.postMessage(this,ii.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}=ii.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?ii.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(),te.postMessage(this,ii.LayoutModified))}_evtPointerDown(e){if(e.button!==0)return;let t=this.layout,r=e.target,n=Ui(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=Si.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(),te.postMessage(this,ii.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}=ii.findDropTarget(this,e,t,this._edges);if(r==="invalid")return this.overlay.hide(100),r;let s,o,a,l,u=he.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*ii.GOLDEN_RATIO;break;case"root-left":s=u.paddingTop,o=u.paddingLeft,a=c.width*ii.GOLDEN_RATIO,l=u.paddingBottom;break;case"root-right":s=u.paddingTop,o=c.width*ii.GOLDEN_RATIO,a=u.paddingRight,l=u.paddingBottom;break;case"root-bottom":s=c.height*ii.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 ii.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(){te.postMessage(this,ii.LayoutModified)}_onCurrentChanged(e,t){let{previousTitle:r,currentTitle:n}=t;r&&r.owner.hide(),n&&n.owner.show(),(Ft.IS_EDGE||Ft.IS_IE)&&te.flush(),te.postMessage(this,ii.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 Si({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 Ts({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})(fo||(fo={}));(function(i){i.GOLDEN_RATIO=.618,i.DEFAULT_EDGES={top:12,right:40,bottom:40,left:40}
10,i.LayoutModified=new tl("layout-modified"),i.isGeneratedTabBarProperty=new Ye({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(!he.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 y=n.node.getBoundingClientRect(),C=s-y.left+1,S=o-y.top+1,R=y.right-s,I=y.bottom-o;switch(Math.min(S,R,I,C)){case S:if(S<a.top)return{zone:"root-top",target:null};break;case R:if(R<a.right)return{zone:"root-right",target:null};break;case I:if(I<a.bottom)return{zone:"root-bottom",target:null};break;case C:if(C<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,h=u.left+u.width-u.x,f=u.top+u.height-u.y,p=u.tabBar.node.getBoundingClientRect().height;if(d<p)return{zone:"widget-tab",target:u};let g=Math.round(u.width/3),v=Math.round(u.height/3);if(c>g&&h>g&&d>v&&f>v)return{zone:"widget-all",target:u};c/=g,d/=v,h/=g,f/=v;let _=Math.min(c,d,h,f),x;switch(_){case c:x="widget-left";break;case d:x="widget-top";break;case h:x="widget-right";break;case f:x="widget-bottom";break;default:throw"unreachable"}return{zone:x,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})(ii||(ii={}));ta=class extends ho{constructor(e={}){super(e),this._dirty=!1,this._rowSpacing=4,this._columnSpacing=4,this._items=[],this._rowStarts=[],this._columnStarts=[],this._rowSizers=[new co],this._columnSizers=[new co],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){L.findFirstIndex(this._items,r=>r.widget===e)===-1&&(this._items.push(new pc(e)),this.parent&&this.attachWidget(e))}removeWidget(e){let t=L.findFirstIndex(this._items,n=>n.widget===e);if(t===-1)return;let r=L.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&&te.sendMessage(e,j.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&te.sendMessage(e,j.Msg.AfterAttach),this.parent.fit()}detachWidget(e){this.parent.isAttached&&te.sendMessage(e,j.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&te.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(Pi.rowSpanCmp);for(let l=0,u=e.length;l<u;++l){let c=e[l],d=ta.getCellConfig(c.widget),h=Math.min(d.row,t),f=Math.min(d.row+d.rowSpan-1,t);Pi.distributeMin(this._rowSizers,h,f,c.minHeight)}e.sort(Pi.columnSpanCmp);for(let l=0,u=e.length;l<u;++l){let c=e[l],d=ta.getCellConfig(c.widget),h=Math.min(d.column,r),f=Math.min(d.column+d.columnSpan-1,r);Pi.distributeMin(this._columnSizers,h,f,c.minWidth)}if(this.fitPolicy==="set-no-constraint"){te.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=he.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&&te.sendMessage(this.parent.parent,j.Msg.FitRequest),this._dirty&&te.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=he.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;An.calc(this._rowSizers,Math.max(0,o-u)),An.calc(this._columnSizers,Math.max(0,s-c));for(let d=0,h=r,f=this.rowCount;d<f;++d)this._rowStarts[d]=h,h+=this._rowSizers[d].size+this._rowSpacing;for(let d=0,h=n,f=this.columnCount;d<f;++d)this._columnStarts[d]=h,h+=this._columnSizers[d].size+this._columnSpacing;for(let d=0,h=this._items.length;d<h;++d){let f=this._items[d];if(f.isHidden)continue;let p=ta.getCellConfig(f.widget),g=Math.min(p.row,a),v=Math.min(p.column,l),_=Math.min(p.row+p.rowSpan-1,a),x=Math.min(p.column+p.columnSpan-1,l),y=this._columnStarts[v],C=this._rowStarts[g],S=this._columnStarts[x]+this._columnSizers[x].size-y,R=this._rowStarts[_]+this._rowSizers[_].size-C;f.update(y,C,S,R)}}};(function(i){function e(r){return Pi.cellConfigProperty.get(r)}i.getCellConfig=e;function t(r,n){Pi.cellConfigProperty.set(r,Pi.normalizeConfig(n))}i.setCellConfig=t})(ta||(ta={}));(function(i){i.cellConfigProperty=new Ye({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)),h=Math.max(1,Math.floor(l.columnSpan||0));return{row:u,column:c,rowSpan:d,columnSpan:h}}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 co);l.length>u&&(l.length=u)}i.reallocSizers=s;function o(l,u,c,d){if(c<u)return;if(u===c){let p=l[u];p.minSize=Math.max(p.minSize,d);return}let h=0;for(let p=u;p<=c;++p)h+=l[p].minSize;if(h>=d)return;let f=(d-h)/(c-u+1);for(let p=u;p<=c;++p)l[p].minSize+=f}i.distributeMin=o;function a(l){l.parent&&l.parent.layout instanceof ta&&l.parent.fit()}})(Pi||(Pi={}));Od=class extends j{constructor(e={}){super({node:og.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||Od.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){L.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&&(L.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=L.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":case"mouseleave":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("mouseleave",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("mouseleave",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 Gr({commands:new ti}),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 h=this.menus[d];h.title.mnemonic=0,this._overflowMenu.insertItem(0,{type:"submenu",submenu:h}),this.removeMenu(h,!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,h=this.node.offsetWidth,f=this._overflowMenu.items.length;for(let p=0;p<f;++p){let g=r.length-1-p;if(h-l>this._menuItemSizes[g]){let v=d[0].submenu;this._overflowMenu.removeItemAt(0),this.insertMenu(a,v,!1),c[a]=n.renderItem({title:v.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)}}Pt.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=Qn().keyForKeydownEvent(e);if(!r)return;let n=this._activeIndex+1,s=og.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(!he.hitTest(this.node,e.clientX,e.clientY))return;e.stopPropagation(),e.stopImmediatePropagation();let t=L.findFirstIndex(this.contentNode.children,r=>he.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);Gr.saveWindowData(),this.activeIndex=t,this._openChildMenu(r)}}_evtMouseMove(e){let t=L.findFirstIndex(this.contentNode.children,n=>he.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;Gr.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,te.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 re.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 re.div({className:n},r.title.icon,r.title.iconLabel)}renderLabel(r){let n=this.formatLabel(r);return re.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=re.span({className:"lm-MenuBar-itemMnemonic"},l);return[o,u,a]}}i.Renderer=e,i.defaultRenderer=new e})(Od||(Od={}));(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 h=(c+s)%d,f=r[h].title;if(f.label.length===0)continue;let p=f.mnemonic;if(p>=0&&p<f.label.length){f.label[p].toUpperCase()===u&&(o===-1?o=h:l=!0);continue}a===-1&&f.label[0].toUpperCase()===u&&(a=h)}return{index:o,multiple:l,auto:a}}i.findMnemonic=t})(og||(og={}));(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})(zR||(zR={}));qR=class extends ho{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&&te.sendMessage(e,j.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&te.sendMessage(e,j.Msg.AfterAttach)}detachWidget(e){this.parent.isAttached&&te.sendMessage(e,j.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&te.sendMessage(e,j.Msg.AfterDetach)}},sx=class extends Rn{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,L.insert(this._items,e,new pc(t)),this.parent.isAttached&&te.sendMessage(t,j.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.isAttached&&te.sendMessage(t,j.Msg.AfterAttach),this.parent.fit()}moveWidget(e,t,r){L.move(this._items,e,t),this.parent.update()}detachWidget(e,t){let r=L.removeAt(this._items,e);this.parent.isAttached&&te.sendMessage(t,j.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&te.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=he.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&&te.sendMessage(this.parent.parent,j.Msg.FitRequest),this._dirty&&te.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=he.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 sx}i.createLayout=e})(HR||(HR={}));(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"}})(jR||(jR={}))});var kle,VR,UR=b(()=>{el();nn();Bf();Jo();zf();kle=ER.bindprops({stylesheet:"commandPaletteHeader",className:"jp-icon-hoverShow-content"});(function(i){class e extends rl.Renderer{renderHeader(r){let n=this.formatHeader(r);return re.li({className:fi("lm-CommandPalette-header","jp-icon-hoverShow")},n,re.span(kle))}renderItemIcon(r){let n=this.createIconClass(r);return r.item.isToggled?re.div({className:n},tg,r.item.iconLabel):re.div({className:n},r.item.icon,r.item.iconLabel)}createIconClass(r){let n="lm-CommandPalette-itemIcon";return fi(Tn.styleClass({stylesheet:"commandPaletteItem"}),r.item.iconClass,n)}}i.Renderer=e,i.defaultRenderer=new e})(VR||(VR={}))});var Tle,bc,WR=b(()=>{tt();el();nn();Bf();Jo();zf();Tle=wR.bindprops({stylesheet:"menuItem"}),bc=class extends Gr{constructor(e){e.renderer=e.renderer||bc.defaultRenderer,super(e),this.addClass("jp-ThemedContainer")}insertItem(e,t){return t.submenu&&bc.overrideDefaultRenderer(t.submenu),super.insertItem(e,t)}};(function(i){function e(r){r.renderer===Gr.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 Gr.Renderer{renderIcon(n){let s=this.createIconClass(n);return n.item.isToggled?re.div({className:s},tg,n.item.iconLabel):re.div({className:s},n.item.icon,n.item.iconLabel)}createIconClass(n){let s="lm-Menu-itemIcon";return n.item.type==="separator"?fi(n.item.iconClass,s):fi(Tn.styleClass({stylesheet:"menuItem"}),n.item.iconClass,s)}renderSubmenu(n){let s="lm-Menu-itemSubmenuIcon";return n.item.type==="submenu"?re.div({className:s},Tle):re.div({className:s})}}i.Renderer=t,i.defaultRenderer=new t})(bc||(bc={}))});var ra,Ld,GR=b(()=>{Jn();el();nn();Bf();Jo();zf();ra=class extends Ts{constructor(e={}){var t;super({renderer:ra.defaultRenderer,...e});let r=((t=ra.translator)!==null&&t!==void 0?t:St).load("jupyterlab");
10yR.element({container:this.addButtonNode,title:r.__("New Launcher")})}};ra.translator=null;(function(i){class e extends Ts.Renderer{renderCloseIcon(r){var n;let s=((n=i.translator)!==null&&n!==void 0?n:St).load("jupyterlab"),o=r.title.label?s.__("Close %1",r.title.label):s.__("Close tab"),a=fi("jp-icon-hover lm-TabBar-tabCloseIcon",Tn.styleClass({elementPosition:"center",height:"16px",width:"16px"}));return $R("div",{className:a,title:o},ig)}}i.Renderer=e,i.defaultRenderer=new e})(ra||(ra={}));Ld=class extends fo{constructor(e={}){super({renderer:Ld.defaultRenderer,...e})}};(function(i){class e extends fo.Renderer{createTabBar(){let r=new ra;return r.addClass("lm-DockPanel-tabBar"),r}}i.Renderer=e,i.defaultRenderer=new e})(Ld||(Ld={}))});var KR=b(()=>{UR();WR();GR()});var Gf=b(()=>{zf();Xy();KR()});function H9e(i){let{className:e,inputRef:t,rightIcon:r,...n}=i;return $d.default.createElement("div",{className:fi("jp-InputGroup",e)},$d.default.createElement("input",{ref:t,...n}),r&&$d.default.createElement("span",{className:"jp-InputGroupAction"},typeof r=="string"?$d.default.createElement(q.resolveReact,{icon:r,elementPosition:"center",tag:"span"}):$d.default.createElement(r.react,{elementPosition:"center",tag:"span"})))}var $d,YR=b(()=>{$d=N(ue());Gf();Jo()});function JR(i){let{minimal:e,small:t,children:r,...n}=i;return XR.default.createElement("button",{...n,className:fi(i.className,e?"jp-mod-minimal":"",t?"jp-mod-small":"","jp-Button")},r)}var XR,ZR=b(()=>{XR=N(ue());Jo()});var QR=b(()=>{tt();nn()});var As=b(()=>{});var eD=b(()=>{As()});var tD=b(()=>{});var Kf,Bt=b(()=>{Kf="$id"});var vc=b(()=>{Bt();As()});var nD=b(()=>{vc()});var sD=b(()=>{Bt()});var Dn=b(()=>{});var uD=M(ag=>{var Ale=/~/,Mle=/~[01]/g;function Rle(i){switch(i){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+i)}function oD(i){return Ale.test(i)?i.replace(Mle,Rle):i}function Dle(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=oD(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 ax(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 aD(i,e){if(typeof i!="object")throw new Error("Invalid input object.");e=ax(e);var t=e.length;if(t===1)return i;for(var r=1;r<t;){if(i=i[oD(e[r++])],t===r)return i;if(typeof i!="object"||i===null)return}}function lD(i,e,t){if(typeof i!="object")throw new Error("Invalid input object.");if(e=ax(e),e.length===0)throw new Error("Invalid JSON pointer for set.");return Dle(i,e,t)}function Ole(i){var e=ax(i);return{get:function(t){return aD(t,e)},set:function(t,r){return lD(t,e,r)}}}ag.get=aD;ag.set=lD;ag.compile=Ole});var Lle,lg=b(()=>{Lle=N(uD());Bt()});var ug=b(()=>{Bt()});var lx=b(()=>{Bt();ug()});var cg=b(()=>{lx()});var fD=M((vOe,hD)=>{function $le(){this.__data__=[],this.size=0}hD.exports=$le});var _c=M((_Oe,pD)=>{function Ple(i,e){return i===e||i!==i&&e!==e}pD.exports=Ple});var Yf=M((yOe,mD)=>{var Fle=_c();function Nle(i,e){for(var t=i.length;t--;)if(Fle(i[t][0],e))return t;return-1}mD.exports=Nle});var bD=M((xOe,gD)=>{var Ble=Yf(),zle=Array.prototype,qle=zle.splice;function Hle(i){var e=this.__data__,t=Ble(e,i);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():qle.call(e,t,1),--this.size,!0}gD.exports=Hle});var _D=M((wOe,vD)=>{var jle=Yf();function Vle(i){var e=this.__data__,t=jle(e,i);return t<0?void 0:e[t][1]}vD.exports=Vle});var xD=M((SOe,yD)=>{var Ule=Yf();function Wle(i){return Ule(this.__data__,i)>-1}yD.exports=Wle});var SD=M((COe,wD)=>{var Gle=Yf();function Kle(i,e){var t=this.__data__,r=Gle(t,i);return r<0?(++this.size,t.push([i,e])):t[r][1]=e,this}wD.exports=Kle});var Xf=M((IOe,CD)=>{var Yle=fD(),Xle=bD(),Jle=_D(),Zle=xD(),Qle=SD();function Pd(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])}}Pd.prototype.clear=Yle;Pd.prototype.delete=Xle;Pd.prototype.get=Jle;Pd.prototype.has=Zle;Pd.prototype.set=Qle;
vendor: 8,304 bytes, line 10
10CD.exports=Pd});var ED=M((EOe,ID)=>{var eue=Xf();function tue(){this.__data__=new eue,this.size=0}ID.exports=tue});var TD=M((kOe,kD)=>{function iue(i){var e=this.__data__,t=e.delete(i);return this.size=e.size,t}kD.exports=iue});var MD=M((TOe,AD)=>{function rue(i){return this.__data__.get(i)}AD.exports=rue});var DD=M((AOe,RD)=>{function nue(i){return this.__data__.has(i)}RD.exports=nue});var ux=M((MOe,OD)=>{var sue=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis;OD.exports=sue});var Rs=M((ROe,LD)=>{var oue=ux(),aue=typeof self=="object"&&self&&self.Object===Object&&self,lue=oue||aue||Function("return this")();LD.exports=lue});var yc=M((DOe,$D)=>{var uue=Rs(),cue=uue.Symbol;$D.exports=cue});var BD=M((OOe,ND)=>{var PD=yc(),FD=Object.prototype,due=FD.hasOwnProperty,hue=FD.toString,Jf=PD?PD.toStringTag:void 0;function fue(i){var e=due.call(i,Jf),t=i[Jf];try{i[Jf]=void 0;var r=!0}catch{}var n=hue.call(i);return r&&(e?i[Jf]=t:delete i[Jf]),n}ND.exports=fue});var qD=M((LOe,zD)=>{var pue=Object.prototype,mue=pue.toString;function gue(i){return mue.call(i)}zD.exports=gue});var ol=M(($Oe,VD)=>{var HD=yc(),bue=BD(),vue=qD(),_ue="[object Null]",yue="[object Undefined]",jD=HD?HD.toStringTag:void 0;function xue(i){return i==null?i===void 0?yue:_ue:jD&&jD in Object(i)?bue(i):vue(i)}VD.exports=xue});var Ds=M((POe,UD)=>{function wue(i){var e=typeof i;return i!=null&&(e=="object"||e=="function")}UD.exports=wue});var dg=M((FOe,WD)=>{var Sue=ol(),Cue=Ds(),Iue="[object AsyncFunction]",Eue="[object Function]",kue="[object GeneratorFunction]",Tue="[object Proxy]";function Aue(i){if(!Cue(i))return!1;var e=Sue(i);return e==Eue||e==kue||e==Iue||e==Tue}WD.exports=Aue});var KD=M((NOe,GD)=>{var Mue=Rs(),Rue=Mue["__core-js_shared__"];GD.exports=Rue});var JD=M((BOe,XD)=>{var cx=KD(),YD=function(){var i=/[^.]+$/.exec(cx&&cx.keys&&cx.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function Due(i){return!!YD&&YD in i}XD.exports=Due});var dx=M((zOe,ZD)=>{var Oue=Function.prototype,Lue=Oue.toString;function $ue(i){if(i!=null){try{return Lue.call(i)}catch{}try{return i+""}catch{}}return""}ZD.exports=$ue});var e9=M((qOe,QD)=>{var Pue=dg(),Fue=JD(),Nue=Ds(),Bue=dx(),zue=/[\\^$.*+?()[\]{}|]/g,que=/^\[object .+?Constructor\]$/,Hue=Function.prototype,jue=Object.prototype,Vue=Hue.toString,Uue=jue.hasOwnProperty,Wue=RegExp("^"+Vue.call(Uue).replace(zue,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Gue(i){if(!Nue(i)||Fue(i))return!1;var e=Pue(i)?Wue:que;return e.test(Bue(i))}QD.exports=Gue});var i9=M((HOe,t9)=>{function Kue(i,e){return i?.[e]}t9.exports=Kue});var al=M((jOe,r9)=>{var Yue=e9(),Xue=i9();function Jue(i,e){var t=Xue(i,e);return Yue(t)?t:void 0}r9.exports=Jue});var hg=M((VOe,n9)=>{var Zue=al(),Que=Rs(),ece=Zue(Que,"Map");n9.exports=ece});var Zf=M((UOe,s9)=>{var tce=al(),ice=tce(Object,"create");s9.exports=ice});var l9=M((WOe,a9)=>{var o9=Zf();function rce(){this.__data__=o9?o9(null):{},this.size=0}a9.exports=rce});var c9=M((GOe,u9)=>{function nce(i){var e=this.has(i)&&delete this.__data__[i];return this.size-=e?1:0,e}u9.exports=nce});var h9=M((KOe,d9)=>{var sce=Zf(),oce="__lodash_hash_undefined__",ace=Object.prototype,lce=ace.hasOwnProperty;function uce(i){var e=this.__data__;if(sce){var t=e[i];return t===oce?void 0:t}return lce.call(e,i)?e[i]:void 0}d9.exports=uce});var p9=M((YOe,f9)=>{var cce=Zf(),dce=Object.prototype,hce=dce.hasOwnProperty;function fce(i){var e=this.__data__;return cce?e[i]!==void 0:hce.call(e,i)}f9.exports=fce});var g9=M((XOe,m9)=>{var pce=Zf(),mce="__lodash_hash_undefined__";function gce(i,e){var t=this.__data__;return this.size+=this.has(i)?0:1,t[i]=pce&&e===void 0?mce:e,this}m9.exports=gce});var v9=M((JOe,b9)=>{var bce=l9(),vce=c9(),_ce=h9(),yce=p9(),xce=g9();function Fd(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])}}Fd.prototype.clear=bce;Fd.prototype.delete=vce;Fd.prototype.get=_ce;Fd.prototype.has=yce;Fd.prototype.set=xce;b9.exports=Fd});var x9=M((ZOe,y9)=>{var _9=v9(),wce=Xf(),Sce=hg();function Cce(){this.size=0,this.__data__={hash:new _9,map:new(Sce||wce),string:new _9}}y9.exports=Cce});var S9=M((QOe,w9)=>{function Ice(i){var e=typeof i;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?i!=="__proto__":i===null}w9.exports=Ice});var Qf=M((e7e,C9)=>{var Ece=S9();function kce(i,e){var t=i.__data__;return Ece(e)?t[typeof e=="string"?"string":"hash"]:t.map}C9.exports=kce});var E9=M((t7e,I9)=>{var Tce=Qf();function Ace(i){var e=Tce(this,i).delete(i);return this.size-=e?1:0,e}I9.exports=Ace});var T9=M((i7e,k9)=>{var Mce=Qf();function Rce(i){return Mce(this,i).get(i)}k9.exports=Rce});var M9=M((r7e,A9)=>{var Dce=Qf();function Oce(i){return Dce(this,i).has(i)}A9.exports=Oce});var D9=M((n7e,R9)=>{var Lce=Qf();function $ce(i,e){var t=Lce(this,i),r=t.size;return t.set(i,e),this.size+=t.size==r?0:1,this}R9.exports=$ce});var fg=M((s7e,O9)=>{var Pce=x9(),Fce=E9(),Nce=T9(),Bce=M9(),zce=D9();function Nd(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])}}Nd.prototype.clear=Pce;Nd.prototype.delete=Fce;Nd.prototype.get=Nce;Nd.prototype.has=Bce;Nd.prototype.set=zce;O9.exports=Nd});var $9=M((o7e,L9)=>{var qce=Xf(),Hce=hg(),jce=fg(),Vce=200;function Uce(i,e){var t=this.__data__;if(t instanceof qce){var r=t.__data__;if(!Hce||r.length<Vce-1)return r.push([i,e]),this.size=++t.size,this;t=this.__data__=new jce(r)}return t.set(i,e),this.size=t.size,this}L9.exports=Uce});var ep=M((a7e,P9)=>{var Wce=Xf(),Gce=ED(),Kce=TD(),Yce=MD(),Xce=DD(),Jce=$9();function Bd(i){var e=this.__data__=new Wce(i);this.size=e.size}Bd.prototype.clear=Gce;Bd.prototype.delete=Kce;Bd.prototype.get=Yce;Bd.prototype.has=Xce;Bd.prototype.set=Jce;P9.exports=Bd});var hx=M((l7e,F9)=>{function Zce(i,e){for(var t=-1,r=i==null?0:i.length;++t<r&&e(i[t],t,i)!==!1;);return i}F9.exports=Zce});var fx=M((u7e,N9)=>{var Qce=al(),ede=function(){try{var i=Qce(Object,"defineProperty");return i({},"",{}),i}catch{}}();N9.exports=ede});var pg=M((c7e,z9)=>{var B9=fx();function tde(i,e,t){e=="__proto__"&&B9?B9(i,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):i[e]=t}z9.exports=tde});var px=M((d7e,q9)=>{var ide=pg(),rde=_c(),nde=Object.prototype,sde=nde.hasOwnProperty;function ode(i,e,t){var r=i[e];(!(sde.call(i,e)&&rde(r,t))||t===void 0&&!(e in i))&&ide(i,e,t)}q9.exports=ode});var zd=M((h7e,H9)=>{var ade=px(),lde=pg();function ude(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?lde(t,a,l):ade(t,a,l)}return t}H9.exports=ude});var V9=M((f7e,j9)=>{function cde(i,e){for(var t=-1,r=Array(i);++t<i;)r[t]=e(t);return r}j9.exports=cde});var Os=M((p7e,U9)=>{function dde(i){return i!=null&&typeof i=="object"}U9.exports=dde});var G9=M((m7e,W9)=>{var hde=ol(),fde=Os(),pde="[object Arguments]";function mde(i){return fde(i)&&hde(i)==pde}W9.exports=mde});var tp=M((g7e,X9)=>{var K9=G9(),gde=Os(),Y9=Object.prototype,bde=Y9.hasOwnProperty,vde=Y9.propertyIsEnumerable,_de=K9(function(){return arguments}())?K9:function(i){return gde(i)&&bde.call(i,"callee")&&!vde.call(i,"callee")};X9.exports=_de});var sn=M((b7e,J9)=>{var yde=Array.isArray;J9.exports=yde});var Q9=M((v7e,Z9)=>{function xde(){return!1}Z9.exports=xde});var rp=M((ip,qd)=>{var wde=Rs(),Sde=Q9(),iO=typeof ip=="object"&&ip&&!ip.nodeType&&ip,eO=iO&&typeof qd=="object"&&qd&&!qd.nodeType&&qd,Cde=eO&&eO.exports===iO,tO=Cde?wde.Buffer:void 0,Ide=tO?tO.isBuffer:void 0,Ede=Ide||Sde;qd.exports=Ede});var mg=M((_7e,rO)=>{var kde=9007199254740991,Tde=/^(?:0|[1-9]\d*)$/;function Ade(i,e){var t=typeof i;return e=e??kde,!!e&&(t=="number"||t!="symbol"&&Tde.test(i))&&i>-1&&i%1==0&&i<e}rO.exports=Ade});var gg=M((y7e,nO)=>{var Mde=9007199254740991;function Rde(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=Mde}nO.exports=Rde});var oO=M((x7e,sO)=>{var Dde=ol(),Ode=gg(),Lde=Os(),$de="[object Arguments]",Pde="[object Array]",Fde="[object Boolean]",Nde="[object Date]",Bde="[object Error]",zde="[object Function]",qde="[object Map]",Hde="[object Number]",jde="[object Object]",Vde="[object RegExp]",Ude="[object Set]",Wde="[object String]",Gde="[object WeakMap]",Kde="[object ArrayBuffer]",Yde="[object DataView]",Xde="[object Float32Array]",Jde="[object Float64Array
10]",Zde="[object Int8Array]",Qde="[object Int16Array]",ehe="[object Int32Array]",the="[object Uint8Array]",ihe="[object Uint8ClampedArray]",rhe="[object Uint16Array]",nhe="[object Uint32Array]",zt={};zt[Xde]=zt[Jde]=zt[Zde]=zt[Qde]=zt[ehe]=zt[the]=zt[ihe]=zt[rhe]=zt[nhe]=!0;zt[$de]=zt[Pde]=zt[Kde]=zt[Fde]=zt[Yde]=zt[Nde]=zt[Bde]=zt[zde]=zt[qde]=zt[Hde]=zt[jde]=zt[Vde]=zt[Ude]=zt[Wde]=zt[Gde]=!1;function she(i){return Lde(i)&&Ode(i.length)&&!!zt[Dde(i)]}sO.exports=she});var ll=M((w7e,aO)=>{function ohe(i){return function(e){return i(e)}}aO.exports=ohe});var bg=M((np,Hd)=>{var ahe=ux(),lO=typeof np=="object"&&np&&!np.nodeType&&np,sp=lO&&typeof Hd=="object"&&Hd&&!Hd.nodeType&&Hd,lhe=sp&&sp.exports===lO,mx=lhe&&ahe.process,uhe=function(){try{var i=sp&&sp.require&&sp.require("util").types;return i||mx&&mx.binding&&mx.binding("util")}catch{}}();Hd.exports=uhe});var vg=M((S7e,dO)=>{var che=oO(),dhe=ll(),uO=bg(),cO=uO&&uO.isTypedArray,hhe=cO?dhe(cO):che;dO.exports=hhe});var gx=M((C7e,hO)=>{var fhe=V9(),phe=tp(),mhe=sn(),ghe=rp(),bhe=mg(),vhe=vg(),_he=Object.prototype,yhe=_he.hasOwnProperty;function xhe(i,e){var t=mhe(i),r=!t&&phe(i),n=!t&&!r&&ghe(i),s=!t&&!r&&!n&&vhe(i),o=t||r||n||s,a=o?fhe(i.length,String):[],l=a.length;for(var u in i)(e||yhe.call(i,u))&&!(o&&(u=="length"||n&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||bhe(u,l)))&&a.push(u);return a}hO.exports=xhe});var _g=M((I7e,fO)=>{var whe=Object.prototype;function She(i){var e=i&&i.constructor,t=typeof e=="function"&&e.prototype||whe;return i===t}fO.exports=She});var bx=M((E7e,pO)=>{function Che(i,e){return function(t){return i(e(t))}}pO.exports=Che});var gO=M((k7e,mO)=>{var Ihe=bx(),Ehe=Ihe(Object.keys,Object);mO.exports=Ehe});var vO=M((T7e,bO)=>{var khe=_g(),The=gO(),Ahe=Object.prototype,Mhe=Ahe.hasOwnProperty;function Rhe(i){if(!khe(i))return The(i);var e=[];for(var t in Object(i))Mhe.call(i,t)&&t!="constructor"&&e.push(t);return e}bO.exports=Rhe});var xc=M((A7e,_O)=>{var Dhe=dg(),Ohe=gg();function Lhe(i){return i!=null&&Ohe(i.length)&&!Dhe(i)}_O.exports=Lhe});var jd=M((M7e,yO)=>{var $he=gx(),Phe=vO(),Fhe=xc();function Nhe(i){return Fhe(i)?$he(i):Phe(i)}yO.exports=Nhe});var wO=M((R7e,xO)=>{var Bhe=zd(),zhe=jd();function qhe(i,e){return i&&Bhe(e,zhe(e),i)}xO.exports=qhe});var CO=M((D7e,SO)=>{function Hhe(i){var e=[];if(i!=null)for(var t in Object(i))e.push(t);return e}SO.exports=Hhe});var EO=M((O7e,IO)=>{var jhe=Ds(),Vhe=_g(),Uhe=CO(),Whe=Object.prototype,Ghe=Whe.hasOwnProperty;function Khe(i){if(!jhe(i))return Uhe(i);var e=Vhe(i),t=[];for(var r in i)r=="constructor"&&(e||!Ghe.call(i,r))||t.push(r);return t}IO.exports=Khe});var wc=M((L7e,kO)=>{var Yhe=gx(),Xhe=EO(),Jhe=xc();function Zhe(i){return Jhe(i)?Yhe(i,!0):Xhe(i)}kO.exports=Zhe});var AO=M(($7e,TO)=>{var Qhe=zd(),efe=wc();function tfe(i,e){return i&&Qhe(e,efe(e),i)}TO.exports=tfe});var vx=M((op,Vd)=>{var ife=Rs(),OO=typeof op=="object"&&op&&!op.nodeType&&op,MO=OO&&typeof Vd=="object"&&Vd&&!Vd.nodeType&&Vd,rfe=MO&&MO.exports===OO,RO=rfe?ife.Buffer:void 0,DO=RO?RO.allocUnsafe:void 0;function nfe(i,e){if(e)return i.slice();var t=i.length,r=DO?DO(t):new i.constructor(t);return i.copy(r),r}Vd.exports=nfe});var yg=M((P7e,LO)=>{function sfe(i,e){var t=-1,r=i.length;for(e||(e=Array(r));++t<r;)e[t]=i[t];return e}LO.exports=sfe});var PO=M((F7e,$O)=>{function ofe(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}$O.exports=ofe});var _x=M((N7e,FO)=>{function afe(){return[]}FO.exports=afe});var xg=M((B7e,BO)=>{var lfe=PO(),ufe=_x(),cfe=Object.prototype,dfe=cfe.propertyIsEnumerable,NO=Object.getOwnPropertySymbols,hfe=NO?function(i){return i==null?[]:(i=Object(i),lfe(NO(i),function(e){return dfe.call(i,e)}))}:ufe;BO.exports=hfe});var qO=M((z7e,zO)=>{var ffe=zd(),pfe=xg();function mfe(i,e){return ffe(i,pfe(i),e)}zO.exports=mfe});var wg=M((q7e,HO)=>{function gfe(i,e){for(var t=-1,r=e.length,n=i.length;++t<r;)i[n+t]=e[t];return i}HO.exports=gfe});var Sg=M((H7e,jO)=>{var bfe=bx(),vfe=bfe(Object.getPrototypeOf,Object);jO.exports=vfe});var yx=M((j7e,VO)=>
vendor: 19,069 bytes, line 10
10{var _fe=wg(),yfe=Sg(),xfe=xg(),wfe=_x(),Sfe=Object.getOwnPropertySymbols,Cfe=Sfe?function(i){for(var e=[];i;)_fe(e,xfe(i)),i=yfe(i);return e}:wfe;VO.exports=Cfe});var WO=M((V7e,UO)=>{var Ife=zd(),Efe=yx();function kfe(i,e){return Ife(i,Efe(i),e)}UO.exports=kfe});var xx=M((U7e,GO)=>{var Tfe=wg(),Afe=sn();function Mfe(i,e,t){var r=e(i);return Afe(i)?r:Tfe(r,t(i))}GO.exports=Mfe});var wx=M((W7e,KO)=>{var Rfe=xx(),Dfe=xg(),Ofe=jd();function Lfe(i){return Rfe(i,Ofe,Dfe)}KO.exports=Lfe});var XO=M((G7e,YO)=>{var $fe=xx(),Pfe=yx(),Ffe=wc();function Nfe(i){return $fe(i,Ffe,Pfe)}YO.exports=Nfe});var ZO=M((K7e,JO)=>{var Bfe=al(),zfe=Rs(),qfe=Bfe(zfe,"DataView");JO.exports=qfe});var e7=M((Y7e,QO)=>{var Hfe=al(),jfe=Rs(),Vfe=Hfe(jfe,"Promise");QO.exports=Vfe});var Sx=M((X7e,t7)=>{var Ufe=al(),Wfe=Rs(),Gfe=Ufe(Wfe,"Set");t7.exports=Gfe});var r7=M((J7e,i7)=>{var Kfe=al(),Yfe=Rs(),Xfe=Kfe(Yfe,"WeakMap");i7.exports=Xfe});var ap=M((Z7e,c7)=>{var Cx=ZO(),Ix=hg(),Ex=e7(),kx=Sx(),Tx=r7(),u7=ol(),Ud=dx(),n7="[object Map]",Jfe="[object Object]",s7="[object Promise]",o7="[object Set]",a7="[object WeakMap]",l7="[object DataView]",Zfe=Ud(Cx),Qfe=Ud(Ix),epe=Ud(Ex),tpe=Ud(kx),ipe=Ud(Tx),Sc=u7;(Cx&&Sc(new Cx(new ArrayBuffer(1)))!=l7||Ix&&Sc(new Ix)!=n7||Ex&&Sc(Ex.resolve())!=s7||kx&&Sc(new kx)!=o7||Tx&&Sc(new Tx)!=a7)&&(Sc=function(i){var e=u7(i),t=e==Jfe?i.constructor:void 0,r=t?Ud(t):"";if(r)switch(r){case Zfe:return l7;case Qfe:return n7;case epe:return s7;case tpe:return o7;case ipe:return a7}return e});c7.exports=Sc});var h7=M((Q7e,d7)=>{var rpe=Object.prototype,npe=rpe.hasOwnProperty;function spe(i){var e=i.length,t=new i.constructor(e);return e&&typeof i[0]=="string"&&npe.call(i,"index")&&(t.index=i.index,t.input=i.input),t}d7.exports=spe});var Ax=M((eLe,f7)=>{var ope=Rs(),ape=ope.Uint8Array;f7.exports=ape});var Cg=M((tLe,m7)=>{var p7=Ax();function lpe(i){var e=new i.constructor(i.byteLength);return new p7(e).set(new p7(i)),e}m7.exports=lpe});var b7=M((iLe,g7)=>{var upe=Cg();function cpe(i,e){var t=e?upe(i.buffer):i.buffer;return new i.constructor(t,i.byteOffset,i.byteLength)}g7.exports=cpe});var _7=M((rLe,v7)=>{var dpe=/\w*$/;function hpe(i){var e=new i.constructor(i.source,dpe.exec(i));return e.lastIndex=i.lastIndex,e}v7.exports=hpe});var C7=M((nLe,S7)=>{var y7=yc(),x7=y7?y7.prototype:void 0,w7=x7?x7.valueOf:void 0;function fpe(i){return w7?Object(w7.call(i)):{}}S7.exports=fpe});var Mx=M((sLe,I7)=>{var ppe=Cg();function mpe(i,e){var t=e?ppe(i.buffer):i.buffer;return new i.constructor(t,i.byteOffset,i.length)}I7.exports=mpe});var k7=M((oLe,E7)=>{var gpe=Cg(),bpe=b7(),vpe=_7(),_pe=C7(),ype=Mx(),xpe="[object Boolean]",wpe="[object Date]",Spe="[object Map]",Cpe="[object Number]",Ipe="[object RegExp]",Epe="[object Set]",kpe="[object String]",Tpe="[object Symbol]",Ape="[object ArrayBuffer]",Mpe="[object DataView]",Rpe="[object Float32Array]",Dpe="[object Float64Array]",Ope="[object Int8Array]",Lpe="[object Int16Array]",$pe="[object Int32Array]",Ppe="[object Uint8Array]",Fpe="[object Uint8ClampedArray]",Npe="[object Uint16Array]",Bpe="[object Uint32Array]";function zpe(i,e,t){var r=i.constructor;switch(e){case Ape:return gpe(i);case xpe:case wpe:return new r(+i);case Mpe:return bpe(i,t);case Rpe:case Dpe:case Ope:case Lpe:case $pe:case Ppe:case Fpe:case Npe:case Bpe:return ype(i,t);case Spe:return new r;case Cpe:case kpe:return new r(i);case Ipe:return vpe(i);case Epe:return new r;case Tpe:return _pe(i)}}E7.exports=zpe});var M7=M((aLe,A7)=>{var qpe=Ds(),T7=Object.create,Hpe=function(){function i(){}return function(e){if(!qpe(e))return{};if(T7)return T7(e);i.prototype=e;var t=new i;return i.prototype=void 0,t}}();A7.exports=Hpe});var Rx=M((lLe,R7)=>{var jpe=M7(),Vpe=Sg(),Upe=_g();function Wpe(i){return typeof i.constructor=="function"&&!Upe(i)?jpe(Vpe(i)):{}}R7.exports=Wpe});var O7=M((uLe,D7)=>{var Gpe=ap(),Kpe=Os(),Ype="[object Map]";function Xpe(i){return Kpe(i)&&Gpe(i)==Ype}D7.exports=Xpe});var F7=M((cLe,P7)=>{var Jpe=O7(),Zpe=ll(),L7=bg(),$7=L7&&L7.isMap,Qpe=$7?Zpe($7):Jpe;P7.exports=Qpe});var B7=M((dLe,N7)=>{var eme=ap(),tme=Os(),ime="[object Set]";function rme(i){return tme(i)&&eme(i)==ime}N7.exports=rme});var j7=M((hLe,H7)=>{var nme=B7(),sme=ll(),z7=bg(),q7=z7&&z7.isSet,ome=q7?sme(q7):nme;H7.exports=ome});var K7=M((fLe,G7)=>{var ame=ep(),lme=hx(),ume=px(),cme=wO(),dme=AO(),hme=vx(),fme=yg(),pme=qO(),mme=WO(),gme=wx(),bme=XO(),vme=ap(),_me=h7(),yme=k7(),xme=Rx(),wme=sn(),Sme=rp(),Cme=F7(),Ime=Ds(),Eme=j7(),kme=jd(),Tme=wc(),Ame=1,Mme=2,Rme=4,V7="[object Arguments]",Dme="[object Array]",Ome="[object Boolean]",Lme="[object Date]",$me="[object Error]",U7="[object Function]",Pme="[object GeneratorFunction]",Fme="[object Map]",Nme="[object Number]",W7="[object Object]",Bme="[object RegExp]",zme="[object Set]",qme="[object String]",Hme="[object Symbol]",jme="[object WeakMap]",Vme="[object ArrayBuffer]",Ume="[object DataView]",Wme="[object Float32Array]",Gme="[object Float64Array]",Kme="[object Int8Array]",Yme="[object Int16Array]",Xme="[object Int32Array]",Jme="[object Uint8Array]",Zme="[object Uint8ClampedArray]",Qme="[object Uint16Array]",e0e="[object Uint32Array]",Nt={};Nt[V7]=Nt[Dme]=Nt[Vme]=Nt[Ume]=Nt[Ome]=Nt[Lme]=Nt[Wme]=Nt[Gme]=Nt[Kme]=Nt[Yme]=Nt[Xme]=Nt[Fme]=Nt[Nme]=Nt[W7]=Nt[Bme]=Nt[zme]=Nt[qme]=Nt[Hme]=Nt[Jme]=Nt[Zme]=Nt[Qme]=Nt[e0e]=!0;Nt[$me]=Nt[U7]=Nt[jme]=!1;function Ig(i,e,t,r,n,s){var o,a=e&Ame,l=e&Mme,u=e&Rme;if(t&&(o=n?t(i,r,n,s):t(i)),o!==void 0)return o;if(!Ime(i))return i;var c=wme(i);if(c){if(o=_me(i),!a)return fme(i,o)}else{var d=vme(i),h=d==U7||d==Pme;if(Sme(i))return hme(i,a);if(d==W7||d==V7||h&&!n){if(o=l||h?{}:xme(i),!a)return l?mme(i,dme(o,i)):pme(i,cme(o,i))}else{if(!Nt[d])return n?i:{};o=yme(i,d,a)}}s||(s=new ame);var f=s.get(i);if(f)return f;s.set(i,o),Eme(i)?i.forEach(function(v){o.add(Ig(v,e,t,v,i,s))}):Cme(i)&&i.forEach(function(v,_){o.set(_,Ig(v,e,t,_,i,s))});var p=u?l?bme:gme:l?Tme:kme,g=c?void 0:p(i);return lme(g||i,function(v,_){g&&(_=v,v=i[_]),ume(o,_,Ig(v,e,t,_,i,s))}),o}G7.exports=Ig});var X7=M((pLe,Y7)=>{var t0e=K7(),i0e=1,r0e=4;function n0e(i){return t0e(i,i0e|r0e)}Y7.exports=n0e});var Z7=M((mLe,J7)=>{var s0e="__lodash_hash_undefined__";function o0e(i){return this.__data__.set(i,s0e),this}J7.exports=o0e});var eL=M((gLe,Q7)=>{function a0e(i){return this.__data__.has(i)}Q7.exports=a0e});var lp=M((bLe,tL)=>{var l0e=fg(),u0e=Z7(),c0e=eL();function Eg(i){var e=-1,t=i==null?0:i.length;for(this.__data__=new l0e;++e<t;)this.add(i[e])}Eg.prototype.add=Eg.prototype.push=u0e;Eg.prototype.has=c0e;tL.exports=Eg});var rL=M((vLe,iL)=>{function d0e(i,e){for(var t=-1,r=i==null?0:i.length;++t<r;)if(e(i[t],t,i))return!0;return!1}iL.exports=d0e});var up=M((_Le,nL)=>{function h0e(i,e){return i.has(e)}nL.exports=h0e});var Dx=M((yLe,sL)=>{var f0e=lp(),p0e=rL(),m0e=up(),g0e=1,b0e=2;function v0e(i,e,t,r,n,s){var o=t&g0e,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,h=!0,f=t&b0e?new f0e:void 0;for(s.set(i,e),s.set(e,i);++d<a;){var p=i[d],g=e[d];if(r)var v=o?r(g,p,d,e,i,s):r(p,g,d,i,e,s);if(v!==void 0){if(v)continue;h=!1;break}if(f){if(!p0e(e,function(_,x){if(!m0e(f,x)&&(p===_||n(p,_,t,r,s)))return f.push(x)})){h=!1;break}}else if(!(p===g||n(p,g,t,r,s))){h=!1;break}}return s.delete(i),s.delete(e),h}sL.exports=v0e});var aL=M((xLe,oL)=>{function _0e(i){var e=-1,t=Array(i.size);return i.forEach(function(r,n){t[++e]=[n,r]}),t}oL.exports=_0e});var kg=M((wLe,lL)=>{function y0e(i){var e=-1,t=Array(i.size);return i.forEach(function(r){t[++e]=r}),t}lL.exports=y0e});var fL=M((SLe,hL)=>{var uL=yc(),cL=Ax(),x0e=_c(),w0e=Dx(),S0e=aL(),C0e=kg(),I0e=1,E0e=2,k0e="[object Boolean]",T0e="[object Date]",A0e="[object Error]",M0e="[object Map]",R0e="[object Number]",D0e="[object RegExp]",O0e="[object Set]",L0e="[object String]",$0e="[object Symbol]",P0e="[object ArrayBuffer]",F0e="[object DataView]",dL=uL?uL.prototype:void 0,Ox=dL?dL.valueOf:void 0;function N0e(i,e,t,r,n,s,o){switch(t){case F0e:if(i.byteLength!=e.byteLength||i.byteOffset!=e.byteOffset)return!1;i=i.buffer,e=e.buffer;case P0e:return!(i.byteLength!=e.byteLength||!s(new cL(i),new cL(e)));case k0e:case T0e:case R0e:return x0e(+i,+e);case A0e:return i.name==e.name&&i.message==e.message;case D0e:case L0e:return i==e+"";case M0e:var a=S0e;case O0e:var l=r&I0e;if(a||(a=C0e),i.size!=e.size&&!l)return!1;var u=o.get(i);if(u)return u==e;r|=E0e,o.set(i,e);var c=w0e(a(i),a(e),r,n,s,o);return o.delete(i),c;case $0e:if(Ox)return Ox.call(i)==Ox.call(e)}return!1}hL.exports=N0e});var gL=M((CLe,mL)=>{var pL=wx(),B0e=1,z0e=Object.prototype,q0e=z0e.hasOwnProperty;function H0e(i,e,t,r,n,s){var o=t&B0e,a=pL(i),l=a.length,u=pL(e),c=u.length;if(l!=c&&!o)return!1;for(var d=l;d--;){var h=a[d];if(!(o?h in e:q0e.call(e,h)))return!1}var f=s.get(i),p=s.get(e);if(f&&p)return f==e&&p==i;var g=!0;s.set(i,e),s.set(e,i);for(var v=o;++d<l;){h=a[d];var _=i[h],x=e[h];if(r)var y=o?r(x,_,h,e,i,s):r(_,x,h,i,e,s);if(!(y===void 0?_===x||n(_,x,t,r,s):y)){g=!1;break}v||(v=h=="constructor")}if(g&&!v){var C=i.constructor,S=e.constructor;C!=S&&"constructor"in i&&"constructor"in e&&!(typeof C=="function"&&C instanceof C&&typeof S=="function"&&S instanceof S)&&(g=!1)}return s.delete(i),s.delete(e),g}mL.exports=H0e});var CL=M((ILe,SL)=>{var Lx=ep(),j0e=Dx(),V0e=fL(),U0e=gL(),bL=ap(),vL=sn(),_L=rp(),W0e=vg(),G0e=1,yL="[object Arguments]",xL="[object Array]",Tg="[object Object]",K0e=Object.prototype,wL=K0e.hasOwnProperty;function Y0e(i,e,t,r,n,s){var o=vL(i),a=vL(e),l=o?xL:bL(i),u=a?xL:bL(e);l=l==yL?Tg:l,u=u==yL?Tg:u;var c=l==Tg,d=u==Tg,h=l==u;if(h&&_L(i)){if(!_L(e))return!1;o=!0,c=!1}if(h&&!c)return s||(s=new Lx),o||W0e(i)?j0e(i,e,t,r,n,s):V0e(i,e,l,t,r,n,s);if(!(t&G0e)){var f=c&&wL.call(i,"__wrapped__"),p=d&&wL.call(e,"__wrapped__");if(f||p){var g=f?i.value():i,v=p?e.value():e;return s||(s=new Lx),n(g,v,t,r,s)}}return h?(s||(s=new Lx),U0e(i,e,t,r,n,s)):!1}SL.exports=Y0e});var Ag=M((ELe,kL)=>{var X0e=CL(),IL=Os();function EL(i,e,t,r,n){return i===e?!0:i==null||e==null||!IL(i)&&!IL(e)?i!==i&&e!==e:X0e(i,e,t,r,EL,n)}kL.exports=EL});var $x=M((kLe,TL)=>{var J0e=Ag();function Z0e(i,e){return J0e(i,e)}TL.exports=Z0e});var DL=M((TLe,RL)=>{var AL=yc(),Q0e=tp(),ege=sn(),ML=AL?AL.isConcatSpreadable:void 0;function tge(i){return ege(i)||Q0e(i)||!!(ML&&i&&i[ML])}RL.exports=tge});var Mg=M((ALe,LL)=>{var ige=wg(),rge=DL();function OL(i,e,t,r,n){var s=-1,o=i.length;for(t||(t=rge),n||(n=[]);++s<o;){var a=i[s];e>0&&t(a)?e>1?OL(a,e-1,t,r,n):ige(n,a):r||(n[n.length]=a)}return n}LL.exports=OL});var ul=M((MLe,$L)=>{function nge(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}$L.exports=nge});var cp=M((RLe,PL)=>{var sge=ol(),oge=Os(),age="[object Symbol]";function lge(i){return typeof i=="symbol"||oge(i)&&sge(i)==age}PL.exports=lge});var Rg=M((DLe,FL)=>{var uge=sn(),cge=cp(),dge=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hge=/^\w*$/;function fge(i,e){if(uge(i))return!1;var t=typeof i;return t=="number"||t=="symbol"||t=="boolean"||i==null||cge(i)?!0:hge.test(i)||!dge.test(i)||e!=null&&i in Object(e)}FL.exports=fge});var zL=M((OLe,BL)=>{var NL=fg(),pge="Expected a function";function Px(i,e){if(typeof i!="function"||e!=null&&typeof e!="function")throw new TypeError(pge);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(Px.Cache||NL),t}Px.Cache=NL;BL.exports=Px});var HL=M((LLe,qL)=>{var mge=zL(),gge=500;function bge(i){var e=mge(i,function(r){return t.size===gge&&t.clear(),r}),t=e.cache;return e}qL.exports=bge});var VL=M(($Le,jL)=>{var vge=HL(),_ge=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yge=/\\(\\)?/g,xge=vge(function(i){var e=[];return i.charCodeAt(0)===46&&e.push(""),i.replace(_ge,function(t,r,n,s){e.push(n?s.replace(yge,"$1"):r||t)}),e});jL.exports=xge});var XL=M((PLe,YL)=>{var UL=yc(),wge=ul(),Sge=sn(),Cge=cp(),Ige=1/0,WL=UL?UL.prototype:void 0,GL=WL?WL.toString:void 0;function KL(i){if(typeof i=="string")return i;if(Sge(i))return wge(i,KL)+"";if(Cge(i))return GL?GL.call(i):"";var e=i+"";return e=="0"&&1/i==-Ige?"-0":e}YL.exports=KL});var ZL=M((FLe,JL)=>{var Ege=XL();function kge(i){return i==null?"":Ege(i)}JL.exports=kge});var Fx=M((NLe,QL)=>{var Tge=sn(),Age=Rg(),Mge=VL(),Rge=ZL();function Dge(i,e){return Tge(i)?i:Age(i,e)?[i]:Mge(Rge(i))}QL.exports=Dge});var dp=M((BLe,e$)=>{var Oge=cp(),Lge=1/0;function $ge(i){if(typeof i=="string"||Oge(i))return i;var e=i+"";return e=="0"&&1/i==-Lge?"-0":e}e$.exports=$ge});var Dg=M((zLe,t$)=>{var Pge=Fx(),Fge=dp();function Nge(i,e){e=Pge(e,i);for(var t=0,r=e.length;i!=null&&t<r;)i=i[Fge(e[t++])];return t&&t==r?i:void 0}t$.exports=Nge});var r$=M((qLe,i$)=>{var Bge=ep(),zge=Ag(),qge=1,Hge=2;function jge(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 Bge;if(r)var h=r(u,c,l,i,e,d);if(!(h===void 0?zge(c,u,qge|Hge,r,d):h))return!1}}return!0}i$.exports=jge});var Nx=M((HLe,n$)=>{var Vge=Ds();function Uge(i){return i===i&&!Vge(i)}n$.exports=Uge});var o$=M((jLe,s$)=>{var Wge=Nx(),Gge=jd();function Kge(i){for(var e=Gge(i),t=e.length;t--;){var r=e[t],n=i[r];e[t]=[r,n,Wge(n)]}return e}s$.exports=Kge});var Bx=M((VLe,a$)=>{function Yge(i,e){return function(t){return t==null?!1:t[i]===e&&(e!==void 0||i in Object(t))}}a$.exports=Yge});var u$=M((ULe,l$)=>{var Xge=r$(),Jge=o$(),Zge=Bx();function Qge(i){var e=Jge(i);return e.length==1&&e[0][2]?Zge(e[0][0],e[0][1]):function(t){return t===i||Xge(t,i,e)}}l$.exports=Qge});var d$=M((WLe,c$)=>{var ebe=Dg();function tbe(i,e,t){var r=i==null?void 0:ebe(i,e);return r===void 0?t:r}c$.exports=tbe});var f$=M((GLe,h$)=>{function ibe(i,e){return i!=null&&e in Object(i)}h$.exports=ibe});var m$=M((KLe,p$)=>{var rbe=Fx(),nbe=tp(),sbe=sn(),obe=mg(),abe=gg(),lbe=dp();function ube(i,e,t){e=rbe(e,i);for(var r=-1,n=e.length,s=!1;++r<n;){var o=lbe(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&&abe(n)&&obe(o,n)&&(sbe(i)||nbe(i)))}p$.exports=ube});var b$=M((YLe,g$)=>{var cbe=f$(),dbe=m$();function hbe(i,e){return i!=null&&dbe(i,e,cbe)}g$.exports=hbe});var _$=M((XLe,v$)=>{var fbe=Ag(),pbe=d$(),mbe=b$(),gbe=Rg(),bbe=Nx(),vbe=Bx(),_be=dp(),ybe=1,xbe=2;function wbe(i,e){return gbe(i)&&bbe(e)?vbe(_be(i),e):function(t){var r=pbe(t,i);return r===void 0&&r===e?mbe(t,i):fbe(e,r,ybe|xbe)}}v$.exports=wbe});var Wd=M((JLe,y$)=>{function Sbe(i){return i}y$.exports=Sbe});var w$=M((ZLe,x$)=>{function Cbe(i){return function(e){return e?.[i]}}x$.exports=Cbe});var C$=M((QLe,S$)=>{var Ibe=Dg();function Ebe(i){return function(e){return Ibe(e,i)}}S$.exports=Ebe});var E$=M((e$e,I$)=>{var kbe=w$(),Tbe=C$(),Abe=Rg(),Mbe=dp();function Rbe(i){return Abe(i)?kbe(Mbe(i)):Tbe(i)}I$.exports=Rbe});var T$=M((t$e,k$)=>{var Dbe=u$(),Obe=_$(),Lbe=Wd(),$be=sn(),Pbe=E$();function Fbe(i){return typeof i=="function"?i:i==null?Lbe:typeof i=="object"?$be(i)?Obe(i[0],i[1]):Dbe(i):Pbe(i)}k$.exports=Fbe});var M$=M((i$e,A$)=>{function Nbe(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}}A$.exports=Nbe});var zx=M((r$e,R$)=>{var Bbe=M$(),zbe=Bbe();R$.exports=zbe});var O$=M((n$e,D$)=>{var qbe=zx(),Hbe=jd();function jbe(i,e){return i&&qbe(i,e,Hbe)}D$.exports=jbe});var $$=M((s$e,L$)=>{var Vbe=xc();function Ube(i,e){return function(t,r){if(t==null)return t;if(!Vbe(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}}L$.exports=Ube});var qx=M((o$e,P$)=>{var Wbe=O$(),Gbe=$$(),Kbe=Gbe(Wbe);P$.exports=Kbe});var N$=M((a$e,F$)=>{var Ybe=qx(),Xbe=xc();function Jbe(i,e){var t=-1,r=Xbe(i)?Array(i.length):[];return Ybe(i,function(n,s,o){r[++t]=e(n,s,o)}),r}F$.exports=Jbe});var z$=M((l$e,B$)=>{function Zbe(i,e){var t=i.length;for(i.sort(e);t--;)i[t]=i[t].value;return i}B$.exports=Zbe});var j$=M((u$e,H$)=>{var q$=cp();function Qbe(i,e){if(i!==e){var t=i!==void 0,r=i===null,n=i===i,s=q$(i),o=e!==void 0,a=e===null,l=e===e,u=q$(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}H$.exports=Qbe});var U$=M((c$e,V$)=>{var e1e=j$();function t1e(i,e,t){for(var r=-1,n=i.criteria,s=e.criteria,o=n.length,a=t.length;++r<o;){var l=e1e(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}V$.exports=t1e});var G$=M((d$e,W$)=>{var Hx=ul(),i1e=Dg(),r1e=T$(),n1e=N$(),s1e=z$(),o1e=ll(),a1e=U$(),l1e=Wd(),u1e=sn();function c1e(i,e,t){e.length?e=Hx(e,function(s){return u1e(s)?function(o){return i1e(o,s.length===1?s[0]:s)}:s}):e=[l1e];var r=-1;e=Hx(e,o1e(r1e));var n=n1e(i,function(s,o,a){var l=Hx(e,function(u){return u(s)});return{criteria:l,index:++r,value:s}});return s1e(n,function(s,o){return a1e(s,o,t)})}W$.exports=c1e});var jx=M((h$e,K$)=>{function d1e(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)}K$.exports=d1e});var J$=M((f$e,X$)=>{var h1e=jx(),Y$=Math.max;function f1e(i,e,t){return e=Y$(e===void 0?i.length-1:e,0),function(){for(var r=arguments,n=-1,s=Y$(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),h1e(i,this,a)}}X$.exports=f1e});var Q$=M((p$e,Z$)=>{function p1e(i){return function(){return i}}Z$.exports=p1e});var iP=M((m$e,tP)=>{var m1e=Q$(),eP=fx(),g1e=Wd(),b1e=eP?function(i,e){return eP(i,"toString",{configurable:!0,enumerable:!1,value:m1e(e),writable:!0})}:g1e;tP.exports=b1e});var nP=M((g$e,rP)=>{var v1e=800,_1e=16,y1e=Date.now;function x1e(i){var e=0,t=0;return function(){var r=y1e(),n=_1e-(r-t);if(t=r,n>0){if(++e>=v1e)return arguments[0]}else e=0;return i.apply(void 0,arguments)}}rP.exports=x1e});var oP=M((b$e,sP)=>{var w1e=iP(),S1e=nP(),C1e=S1e(w1e);sP.exports=C1e});var cl=M((v$e,aP)=>{var I1e=Wd(),E1e=J$(),k1e=oP();function T1e(i,e){return k1e(E1e(i,e,I1e),i+"")}aP.exports=T1e});var Og=M((_$e,lP)=>{var A1e=_c(),M1e=xc(),R1e=mg(),D1e=Ds();function O1e(i,e,t){if(!D1e(t))return!1;var r=typeof e;return(r=="number"?M1e(t)&&R1e(e,t.length):r=="string"&&e in t)?A1e(t[e],i):!1}lP.exports=O1e});var Vx=M((y$e,cP)=>{var L1e=Mg(),$1e=G$(),P1e=cl(),uP=Og(),F1e=P1e(function(i,e){if(i==null)return[];var t=e.length;return t>1&&uP(i,e[0],e[1])?e=[]:t>2&&uP(e[0],e[1],e[2])&&(e=[e[0]]),$1e(i,L1e(e,1),[])});cP.exports=F1e});var hP=M((x$e,dP)=>{function N1e(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}dP.exports=N1e});var pP=M((w$e,fP)=>{function B1e(i){return i!==i}fP.exports=B1e});var gP=M((S$e,mP)=>{function z1e(i,e,t){for(var r=t-1,n=i.length;++r<n;)if(i[r]===e)return r;return-1}mP.exports=z1e});var Ux=M((C$e,bP)=>{var q1e=hP(),H1e=pP(),j1e=gP();function V1e(i,e,t){return e===e?j1e(i,e,t):q1e(i,H1e,t)}
10bP.exports=V1e});var Lg=M((I$e,vP)=>{var U1e=Ux();function W1e(i,e){var t=i==null?0:i.length;return!!t&&U1e(i,e,0)>-1}vP.exports=W1e});var $g=M((E$e,_P)=>{function G1e(i,e,t){for(var r=-1,n=i==null?0:i.length;++r<n;)if(t(e,i[r]))return!0;return!1}_P.exports=G1e});var xP=M((k$e,yP)=>{function K1e(){}yP.exports=K1e});var SP=M((T$e,wP)=>{var Wx=Sx(),Y1e=xP(),X1e=kg(),J1e=1/0,Z1e=Wx&&1/X1e(new Wx([,-0]))[1]==J1e?function(i){return new Wx(i)}:Y1e;wP.exports=Z1e});var Gx=M((A$e,CP)=>{var Q1e=lp(),eve=Lg(),tve=$g(),ive=up(),rve=SP(),nve=kg(),sve=200;function ove(i,e,t){var r=-1,n=eve,s=i.length,o=!0,a=[],l=a;if(t)o=!1,n=tve;else if(s>=sve){var u=e?null:rve(i);if(u)return nve(u);o=!1,n=ive,l=new Q1e}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 h=l.length;h--;)if(l[h]===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}CP.exports=ove});var Pg=M((M$e,IP)=>{var ave=Gx();function lve(i){return i&&i.length?ave(i):[]}IP.exports=lve});var Fg=M((R$e,EP)=>{var uve=Gx();function cve(i,e){return e=typeof e=="function"?e:void 0,i&&i.length?uve(i,void 0,e):[]}EP.exports=cve});var AP=M((D$e,TP)=>{var dve=cl(),hve=_c(),fve=Og(),pve=wc(),kP=Object.prototype,mve=kP.hasOwnProperty,gve=dve(function(i,e){i=Object(i);var t=-1,r=e.length,n=r>2?e[2]:void 0;for(n&&fve(e[0],e[1],n)&&(r=1);++t<r;)for(var s=e[t],o=pve(s),a=-1,l=o.length;++a<l;){var u=o[a],c=i[u];(c===void 0||hve(c,kP[u])&&!mve.call(i,u))&&(i[u]=s[u])}return i});
10TP.exports=gve});var Kx=M((O$e,RP)=>{var bve=lp(),vve=Lg(),_ve=$g(),yve=ul(),xve=ll(),MP=up(),wve=Math.min;function Sve(i,e,t){for(var r=t?_ve:vve,n=i[0].length,s=i.length,o=s,a=Array(s),l=1/0,u=[];o--;){var c=i[o];o&&e&&(c=yve(c,xve(e))),l=wve(c.length,l),a[o]=!t&&(e||n>=120&&c.length>=120)?new bve(o&&c):void 0}c=i[0];var d=-1,h=a[0];e:for(;++d<n&&u.length<l;){var f=c[d],p=e?e(f):f;if(f=t||f!==0?f:0,!(h?MP(h,p):r(u,p,t))){for(o=s;--o;){var g=a[o];if(!(g?MP(g,p):r(i[o],p,t)))continue e}h&&h.push(p),u.push(f)}}return u}RP.exports=Sve});var Ng=M((L$e,DP)=>{var Cve=xc(),Ive=Os();function Eve(i){return Ive(i)&&Cve(i)}DP.exports=Eve});var Yx=M(($$e,OP)=>{var kve=Ng();function Tve(i){return kve(i)?i:[]}OP.exports=Tve});var $P=M((P$e,LP)=>{function Ave(i){var e=i==null?0:i.length;return e?i[e-1]:void 0}LP.exports=Ave});var Xx=M((F$e,PP)=>{var Mve=ul(),Rve=Kx(),Dve=cl(),Ove=Yx(),Lve=$P(),$ve=Dve(function(i){var e=Lve(i),t=Mve(i,Ove);return e=typeof e=="function"?e:void 0,e&&t.pop(),t.length&&t[0]===i[0]?Rve(t,void 0,e):[]});PP.exports=$ve});var hp=M((N$e,NP)=>{var Pve=ol(),Fve=Sg(),Nve=Os(),Bve="[object Object]",zve=Function.prototype,qve=Object.prototype,FP=zve.toString,Hve=qve.hasOwnProperty,jve=FP.call(Object);function Vve(i){if(!Nve(i)||Pve(i)!=Bve)return!1;var e=Fve(i);if(e===null)return!0;var t=Hve.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&FP.call(t)==jve}NP.exports=Vve});var zP=M((B$e,BP)=>{var Uve=ol(),Wve=Os(),Gve="[object Boolean]";function Kve(i){return i===!0||i===!1||Wve(i)&&Uve(i)==Gve}BP.exports=Kve});var jg=M((z$e,GP)=>{var Ls=$x(),Yve=Vx(),tw=Pg(),qP=Fg(),Xve=AP(),Jve=Xx(),Hg=hp(),Jx=zP(),HP=i=>Array.isArray(i)?i:[i],ts=i=>i===void 0,Bg=i=>Hg(i)||Array.isArray(i)?Object.keys(i):[],Gd=(i,e)=>i.hasOwnProperty(e),Kd=i=>Yve(tw(i)),jP=i=>ts(i)||Array.isArray(i)&&i.length===0,Zve=(i,e,t,r)=>e&&Gd(e,t)&&i&&Gd(i,t)&&r(i[t],e[t]),Zx=(i,e)=>ts(i)&&e===0||ts(e)&&i===0||Ls(i,e),Qve=(i,e)=>ts(i)&&e===!1||ts(e)&&i===!1||Ls(i,e),VP=i=>ts(i)||Ls(i,{})||i===!0,zg=i=>ts(i)||Ls(i,{}),UP=i=>ts(i)||Hg(i)||i===!0||i===!1;function WP(i,e){return jP(i)&&jP(e)?!0:Ls(Kd(i),Kd(e))}function e_e(i,e){return i=HP(i),e=HP(e),Ls(Kd(i),Kd(e))}function qg(i,e,t,r){var n=tw(Bg(i).concat(Bg(e)));return zg(i)&&zg(e)?!0:zg(i)&&Bg(e).length||zg(e)&&Bg(i).length?!1:n.every(function(s){var o=i[s],a=e[s];return Array.isArray(o)&&Array.isArray(a)?Ls(Kd(i),Kd(e)):Array.isArray(o)&&!Array.isArray(a)||Array.isArray(a)&&!Array.isArray(o)?!1:Zve(i,e,s,r)})}function t_e(i,e,t,r){return Hg(i)&&Hg(e)?r(i,e):Array.isArray(i)&&Array.isArray(e)?qg(i,e,t,r):Ls(i,e)}function Qx(i,e,t,r){var n=qP(i,r),s=qP(e,r),o=Jve(n,s,r);return o.length===Math.max(n.length,s.length)}var i_e={title:Ls,uniqueItems:Qve,minLength:Zx,minItems:Zx,minProperties:Zx,required:WP,enum:WP,type:e_e,items:t_e,anyOf:Qx,allOf:Qx,oneOf:Qx,properties:qg,patternProperties:qg,dependencies:qg},r_e=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"],n_e=["additionalProperties","additionalItems","contains","propertyNames","not"];function ew(i,e,t){if(t=Xve(t,{ignore:[]}),VP(i)&&VP(e))return!0;if(!UP(i)||!UP(e))throw new Error("Either of the values are not a JSON schema.");if(i===e)return!0;if(Jx(i)&&Jx(e))return i===e;if(i===void 0&&e===!1||e===void 0&&i===!1||ts(i)&&!ts(e)||!ts(i)&&ts(e))return!1;var r=tw(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 ew(s,o,t)}return r.every(function(s){var o=i[s],a=e[s];if(n_e.indexOf(s)!==-1)return ew(o,a,t);var l=i_e[s];if(l||(l=Ls),Ls(o,a))return!0;if(r_e.indexOf(s)===-1&&(!Gd(i,s)&&Gd(e,s)||Gd(i,s)&&!Gd(e,s)))return o===a;var u=l(o,a,s,n);if(!Jx(u))throw new Error("Comparer must return true or false");return u})}GP.exports=ew});var Vg=M((q$e,KP)=>{"use strict";function s_e(i){return Object.prototype.toString.call(i)==="[object Array]"}KP.exports=Array.isArray||s_e});var XP=M((H$e,YP)=>{"use strict";function o_e(i){return(typeof i=="number"||Object.prototype.toString.call(i)==="[object Number]")&&i.valueOf()===i.valueOf()}YP.exports=o_e});var ZP=M((j$e,JP)=>{"use strict";var a_e=XP();function l_e(i){return a_e(i)&&i%1===0}JP.exports=l_e});var iw=M((V$e,QP)=>{"use strict";var u_e=Vg(),c_e=ZP();
10function d_e(i){var e;if(!u_e(i)||(e=i.length,!e))return!1;for(var t=0;t<e;t++)if(!c_e(i[t]))return!1;return!0}QP.exports=d_e});var rw=M((U$e,eF)=>{"use strict";function h_e(i){return typeof i=="function"}eF.exports=h_e});var sF=M((W$e,nF)=>{"use strict";var f_e=Vg(),tF=iw(),p_e=rw(),Ug=Math.pow(2,31)-1;function iF(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 rF(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 m_e(){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(tF(e)){if(i===2)return s=e[0],o=e[1],s<0&&(s=-s),o<0&&(o=-o),s<=Ug&&o<=Ug?rF(s,o):iF(s,o);r=e}else if(f_e(e[0]))if(i>1){if(r=e[0],t=e[1],!p_e(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&&!tF(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<=Ug&&s<=Ug?s=rF(s,o):s=iF(s,o);return s}nF.exports=m_e});var uF=M((G$e,lF)=>{"use strict";var oF=sF(),g_e=Vg(),aF=iw(),b_e=rw();function v_e(){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(aF(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/oF(s,o)*o;r=e}else if(g_e(e[0]))if(i>1){if(r=e[0],t=e[1],!b_e(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&&!aF(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/oF(s,o)*o}return s}lF.exports=v_e});var nw=M((K$e,cF)=>{var __e=pg(),y_e=_c();function x_e(i,e,t){(t!==void 0&&!y_e(i[e],t)||t===void 0&&!(e in i))&&__e(i,e,t)}cF.exports=x_e});var sw=M((Y$e,dF)=>{function w_e(i,e){if(!(e==="constructor"&&typeof i[e]=="function")&&e!="__proto__")return i[e]}dF.exports=w_e});var fF=M((X$e,hF)=>{var S_e=zd(),C_e=wc();function I_e(i){return S_e(i,C_e(i))}hF.exports=I_e});var _F=M((J$e,vF)=>{var pF=nw(),E_e=vx(),k_e=Mx(),T_e=yg(),A_e=Rx(),mF=tp(),gF=sn(),M_e=Ng(),R_e=rp(),D_e=dg(),O_e=Ds(),L_e=hp(),$_e=vg(),bF=sw(),P_e=fF();function F_e(i,e,t,r,n,s,o){var a=bF(i,t),l=bF(e,t),u=o.get(l);if(u){pF(i,t,u);return}var c=s?s(a,l,t+"",i,e,o):void 0,d=c===void 0;if(d){var h=gF(l),f=!h&&R_e(l),p=!h&&!f&&$_e(l);c=l,h||f||p?gF(a)?c=a:M_e(a)?c=T_e(a):f?(d=!1,c=E_e(l,!0)):p?(d=!1,c=k_e(l,!0)):c=[]:L_e(l)||mF(l)?(c=a,mF(a)?c=P_e(a):(!O_e(a)||D_e(a))&&(c=A_e(l))):d=!1}d&&(o.set(l,c),n(c,l,r,s,o),o.delete(l)),pF(i,t,c)}vF.exports=F_e});var ow=M((Z$e,xF)=>{var N_e=ep(),B_e=nw(),z_e=zx(),q_e=_F(),H_e=Ds(),j_e=wc(),V_e=sw();function yF(i,e,t,r,n){i!==e&&z_e(e,function(s,o){if(n||(n=new N_e),H_e(s))q_e(i,e,o,t,yF,r,n);else{var a=r?r(V_e(i,o),s,o+"",i,e,n):void 0;a===void 0&&(a=s),B_e(i,o,a)}},j_e)}xF.exports=yF});var IF=M((Q$e,CF)=>{var U_e=ow(),wF=Ds();function SF(i,e,t,r,n,s){return wF(i)&&wF(e)&&(s.set(e,i),U_e(i,e,void 0,SF,s),s.delete(e)),i}CF.exports=SF});var kF=M((ePe,EF)=>{var W_e=cl(),G_e=Og();function K_e(i){return W_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&&G_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})}EF.exports=K_e});var AF=M((tPe,TF)=>{var Y_e=ow(),X_e=kF(),J_e=X_e(function(i,e,t,r){Y_e(i,e,t,r)});TF.exports=J_e});var RF=M((iPe,MF)=>{var Z_e=jx(),Q_e=cl(),eye=IF(),tye=AF(),iye=Q_e(function(i){return i.push(void 0,eye),Z_e(tye,void 0,i)});MF.exports=iye});var aw=M((rPe,DF)=>{var rye=Mg();function nye(i){var e=i==null?0:i.length;return e?rye(i,1):[]}DF.exports=nye});var lw=M((nPe,OF)=>{var sye=Mg(),oye=1/0;function aye(i){var e=i==null?0:i.length;return e?sye(i,oye):[]}OF.exports=aye});var $F=M((sPe,LF)=>{var lye=ul(),uye=Kx(),cye=cl(),dye=Yx(),hye=cye(function(i){var e=lye(i,dye);return e.length&&e[0]===i[0]?uye(e):[]});LF.exports=hye});var FF=M((oPe,PF)=>{function fye(i,e,t,r){for(var n=t-1,s=i.length;++n<s;)if(r(i[n],e))return n;return-1}PF.exports=fye});var zF=M((aPe,BF)=>
10{var pye=ul(),mye=Ux(),gye=FF(),bye=ll(),vye=yg(),_ye=Array.prototype,NF=_ye.splice;function yye(i,e,t,r){var n=r?gye:mye,s=-1,o=e.length,a=i;for(i===e&&(e=vye(e)),t&&(a=pye(i,bye(t)));++s<o;)for(var l=0,u=e[s],c=t?t(u):u;(l=n(a,c,l,r))>-1;)a!==i&&NF.call(a,l,1),NF.call(i,l,1);return i}BF.exports=yye});var HF=M((lPe,qF)=>{var xye=zF();function wye(i,e){return i&&i.length&&e&&e.length?xye(i,e):i}qF.exports=wye});var VF=M((uPe,jF)=>{var Sye=Wd();function Cye(i){return typeof i=="function"?i:Sye}jF.exports=Cye});var uw=M((cPe,UF)=>{var Iye=hx(),Eye=qx(),kye=VF(),Tye=sn();function Aye(i,e){var t=Tye(i)?Iye:Eye;return t(i,kye(e))}UF.exports=Aye});var GF=M((dPe,WF)=>{var Mye=lp(),Rye=Lg(),Dye=$g(),Oye=ul(),Lye=ll(),$ye=up(),Pye=200;function Fye(i,e,t,r){var n=-1,s=Rye,o=!0,a=i.length,l=[],u=e.length;if(!a)return l;t&&(e=Oye(e,Lye(t))),r?(s=Dye,o=!1):e.length>=Pye&&(s=$ye,o=!1,e=new Mye(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 h=u;h--;)if(e[h]===d)continue e;l.push(c)}else s(e,d,r)||l.push(c)}return l}WF.exports=Fye});var YF=M((hPe,KF)=>{var Nye=GF(),Bye=cl(),zye=Ng(),qye=Bye(function(i,e){return zye(i)?Nye(i,e):[]});KF.exports=qye});var dw=M((fPe,QF)=>{var Hye=aw(),jye=lw(),XF=hp(),Vye=Pg(),Uye=Fg(),Wye=YF();function Gye(i){for(let e in i)JF(i,e)&&ZF(i[e])&&delete i[e];return i}var Kye=i=>Vye(jye(i.map(cw))),Yye=(i,e)=>i.map(t=>t&&t[e]),JF=(i,e)=>Object.prototype.hasOwnProperty.call(i,e),cw=i=>XF(i)||Array.isArray(i)?Object.keys(i):[],Xye=i=>i!==void 0,Jye=i=>XF(i)||i===!0||i===!1,ZF=i=>!cw(i).length&&i!==!1&&i!==!0,Zye=(i,...e)=>Wye.apply(null,[i].concat(Hye(e)));QF.exports={allUniqueKeys:Kye,deleteUndefinedProps:Gye,getValues:Yye,has:JF,isEmptySchema:ZF,isSchema:Jye,keys:cw,notUndefined:Xye,uniqWith:Uye,withoutArr:Zye}});var rN=M((pPe,iN)=>{var Qye=jg(),exe=uw(),{allUniqueKeys:txe,deleteUndefinedProps:ixe,getValues:rxe,keys:fp,notUndefined:nxe,uniqWith:sxe,withoutArr:eN}=dw();function oxe(i){exe(i,function(e,t){e===!1&&delete i[t]})}function tN(i,e){return txe(i).reduce(function(r,n){let s=rxe(i,n),o=sxe(s.filter(nxe),Qye);return r[n]=e(o,n),r},{})}iN.exports={keywords:["properties","patternProperties","additionalProperties"],resolver(i,e,t,r){r.ignoreAdditionalProperties||(i.forEach(function(s){let o=i.filter(c=>c!==s),a=fp(s.properties),u=fp(s.patternProperties).map(c=>new RegExp(c));o.forEach(function(c){let d=fp(c.properties),h=d.filter(p=>u.some(g=>g.test(p)));
10eN(d,a,h).forEach(function(p){c.properties[p]=t.properties([c.properties[p],s.additionalProperties],p)})})}),i.forEach(function(s){let o=i.filter(l=>l!==s),a=fp(s.patternProperties);s.additionalProperties===!1&&o.forEach(function(l){let u=fp(l.patternProperties);eN(u,a).forEach(d=>delete l.patternProperties[d])})}));let n={additionalProperties:t.additionalProperties(i.map(s=>s.additionalProperties)),patternProperties:tN(i.map(s=>s.patternProperties),t.patternProperties),properties:tN(i.map(s=>s.properties),t.properties)};return n.additionalProperties===!1&&oxe(n.properties),ixe(n)}}});var aN=M((mPe,oN)=>{var axe=jg(),lxe=uw(),{allUniqueKeys:uxe,deleteUndefinedProps:cxe,has:dxe,isSchema:nN,notUndefined:sN,uniqWith:hxe}=dw();function fxe(i){lxe(i,function(e,t){e===!1&&i.splice(t,1)})}function pxe(i,e){return i.map(function(t){if(t)if(Array.isArray(t.items)){let r=t.items[e];if(nN(r))return r;if(dxe(t,"additionalItems"))return t.additionalItems}else return t.items})}function mxe(i){return i.map(function(e){if(e)return Array.isArray(e.items)?e.additionalItems:e.items})}function gxe(i,e,t){return uxe(t).reduce(function(n,s){let o=pxe(i,s),a=hxe(o.filter(sN),axe);return n[s]=e(a,s),n},[])}oN.exports={keywords:["items","additionalItems"],resolver(i,e,t){let r=i.map(a=>a.items),n=r.filter(sN),s={};n.every(nN)?s.items=t.items(r):s.items=gxe(i,t.items,r);let o;return n.every(Array.isArray)?o=i.map(a=>a.additionalItems):n.some(Array.isArray)&&(o=mxe(i)),o&&(s.additionalItems=t.additionalItems(o)),s.additionalItems===!1&&Array.isArray(s.items)&&fxe(s.items),cxe(s)}}});var yN=M((gPe,_N)=>{var lN=X7(),Gg=jg(),bxe=uF(),vxe=RF(),uN=aw(),pw=lw(),_xe=$F(),yxe=Xx(),hw=$x(),Xd=hp(),xxe=HF(),cN=Vx(),mw=Pg(),Yd=Fg(),dN=rN(),hN=aN(),Wg=(i,e)=>i.indexOf(e)!==-1,wxe=i=>Xd(i)||i===!0||i===!1,Sxe=i=>i===!1,fN=i=>i===!0,Yg=(i,e,t)=>t(i),pN=i=>cN(mw(pw(i))),Kg=i=>i!==void 0,mN=i=>mw(pw(i.map(Axe))),Jd=i=>i[0],Cxe=i=>pN(i),pp=i=>Math.max.apply(Math,i),mp=i=>Math.min.apply(Math,i),Ixe=i=>i.some(fN),Exe=i=>Yd(uN(i),hw);function kxe(i){return function(e,t){return Gg({[i]:e},{[i]:t})}}function gN(i){let{allOf:e=[],...t}=i;return t=Xd(i)?t:i,[t,...e.map(gN)]}function bN(i,e){return i.map(t=>t&&t[e])}function Txe(i,e){return i.map(function(t,r){try{return e(t,r)}catch{return}}).filter(Kg)}function Axe(i){return Xd(i)||Array.isArray(i)?Object.keys(i):[]}function fw(i,e){if(e=e||[],!i.length)return e;let t=i.slice(0).shift(),r=i.slice(1);return e.length?fw(r,uN(e.map(n=>t.map(s=>[s].concat(n))))):fw(r,t.map(n=>n))}function vN(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 Mxe(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((h,f)=>(d[f]!==void 0&&(h[f]=d[f]),h),{})),l=Yd(a,Gg),u=o.keywords.reduce((d,h)=>({...d,[h]:(f,p=[])=>r(f,null,s.concat(h,p))}),{}),c=o.resolver(l,s.concat(e),u,n);return Xd(c)||vN(l,s.concat(e)),c}}function Rxe(i){return{required:i}}var Dxe=["properties","patternProperties","definitions","dependencies"],Oxe=["anyOf","oneOf"],Lxe=["additionalProperties","additionalItems","contains","propertyNames","not","items"],vt={type(i){if(i.some(Array.isArray)){let e=i.map(function(r){return Array.isArray(r)?r:[r]}),t=_xe.apply(null,e);if(t.length===1)return t[0];if(t.length>1)return mw(t)}},dependencies(i,e,t){return mN(i).reduce(function(n,s){let o=bN(i,s),a=Yd(o.filter(Kg),hw),l=a.filter(Array.isArray);if(l.length){if(l.length===a.length)n[s]=pN(a);else{let u=a.filter(wxe),c=l.map(Rxe);n[s]=t(u.concat(c),s)}return n}return a=Yd(a,Gg),n[s]=t(a,s),n},{})},oneOf(i,e,t){let r=fw(lN(i)),n=Txe(r,t),s=Yd(n,Gg);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 bxe(e)/t},enum(i){let e=yxe.apply(null,i.concat(hw));if(e.length)return cN(e)}};vt.$id=Jd;vt.$ref=Jd;vt.$schema=Jd;vt.additionalItems=Yg;vt.additionalProperties=Yg;vt.anyOf=vt.oneOf;vt.contains=Yg;vt.default=Jd;vt.definitions=vt.dependencies;vt.description=Jd;vt.examples=Exe;vt.exclusiveMaximum=mp;vt.exclusiveMinimum=pp;vt.items=hN;vt.maximum=mp;vt.maxItems=mp;vt.maxLength=mp;
12vt.maxProperties=mp;vt.minimum=pp;vt.minItems=pp;vt.minLength=pp;vt.minProperties=pp;vt.properties=dN;vt.propertyNames=Yg;vt.required=Cxe;vt.title=Jd;vt.uniqueItems=Ixe;var $xe={properties:dN,items:hN};function gw(i,e,t){t=t||[],e=vxe(e,{ignoreAdditionalProperties:!1,resolvers:vt,complexResolvers:$xe,deep:!0});let r=Object.entries(e.complexResolvers);function n(a,l,u){a=lN(a.filter(Kg)),u=u||[];let c=Xd(l)?l:{};if(!a.length)return;if(a.some(Sxe))return!1;if(a.every(fN))return!0;a=a.filter(Xd);let d=mN(a);if(e.deep&&Wg(d,"allOf"))return gw({allOf:a},e,t);let h=r.map(([f,p])=>d.filter(g=>p.keywords.includes(g)));return h.forEach(f=>xxe(d,f)),d.forEach(function(f){let p=bN(a,f),g=Yd(p.filter(Kg),kxe(f));if(g.length===1&&Wg(Oxe,f))c[f]=g[0].map(v=>n([v],v));else if(g.length===1&&!Wg(Dxe,f)&&!Wg(Lxe,f))c[f]=g[0];else{let v=e.resolvers[f]||e.resolvers.defaultResolver;if(!v)throw new Error("No resolver found for key "+f+". You can provide a resolver for this keyword in the options, or provide a default resolver.");let _=(x,y=[])=>n(x,null,u.concat(f,y));c[f]=v(g,u.concat(f),_,e),c[f]===void 0?vN(g,u.concat(f)):c[f]===void 0&&delete c[f]}}),r.reduce((f,[p,g],v)=>({...f,...Mxe(h[v],p,a,n,e,u)}),c)}let s=pw(gN(i));return n(s)}gw.options={resolvers:vt};_N.exports=gw});var Zd=b(()=>{});var gp=b(()=>{});var Cc=b(()=>{gp()});var Xg=b(()=>{Bt();Cc();As()});var Fxe,po=b(()=>{Fxe=N(yN());Bt();lg();Zd();gp();As();Xg();cg();Dn()});var Qg=b(()=>{cg();po();Bt();gp();Zd();ug()});var ww=b(()=>{As()});var Sw=b(()=>{As()});var yp=b(()=>{As()});var eb=b(()=>{Bt()});var tb=b(()=>{eb();po()});var ib=b(()=>{tb()});var SN=b(()=>{Ue()});var Ew=b(()=>{Bt()});var kw=b(()=>{Ew();vc()});var CN,EN=b(()=>{Bt();lg();Qg();Zd();Cc();As();ww();Sw();yp();Xg();ib();tb();po();eb();SN();kw();Dn();(function(i){i[i.Ignore=0]="Ignore",i[i.Invert=1]="Invert",i[i.Fallback=2]="Fallback"})(CN||(CN={}))});var Mw=b(()=>{vc()});var Rw=b(()=>{Bt();po()});var AN=b(()=>{Bt();Cc();vc();Mw();Rw();ib()});var MN=b(()=>{yp()});var JFe,RN=b(()=>{Bt();po();JFe=Symbol("no Value")});var DN=b(()=>{Bt();As();po();Cc();Dn()});var ON=b(()=>{Bt();Zd();Qg();po();Dn()});var Dw=b(()=>{EN();AN();Qg();cg();lx();Rw();ib();tb();MN();po();RN();DN();ON()});var LN=b(()=>{Dn();Dw()});var $N=b(()=>{});var nb=b(()=>{});var FN=b(()=>{nb()});var Ow=b(()=>{});var NN=b(()=>{Ow()});var sb=b(()=>{});var BN=b(()=>{sb();Dn()});var Lw=b(()=>{Dn()});var zN=b(()=>{Lw()});var qN=b(()=>{sb()});var Pw=b(()=>{Bt()});var HN=b(()=>{});var Fw=b(()=>{});var jN=b(()=>{Fw()});var VN=b(()=>{Bt();vc()});var UN=b(()=>{});var GN=M(Ct=>{"use strict";var Nw=Symbol.for("react.element"),Bw=Symbol.for("react.portal"),ob=Symbol.for("react.fragment"),ab=Symbol.for("react.strict_mode"),lb=Symbol.for("react.profiler"),ub=Symbol.for("react.provider"),cb=Symbol.for("react.context"),Jxe=Symbol.for("react.server_context"),db=Symbol.for("react.forward_ref"),hb=Symbol.for("react.suspense"),fb=Symbol.for("react.suspense_list"),pb=Symbol.for("react.memo"),mb=Symbol.for("react.lazy"),Zxe=Symbol.for("react.offscreen"),WN;WN=Symbol.for("react.module.reference");function is(i){if(typeof i=="object"&&i!==null){var e=i.$$typeof;switch(e){case Nw:switch(i=i.type,i){case ob:case lb:case ab:case hb:case fb:return i;default:switch(i=i&&i.$$typeof,i){case Jxe:case cb:case db:case mb:case pb:case ub:return i;default:return e}}case Bw:return e}}}Ct.ContextConsumer=cb;Ct.ContextProvider=ub;Ct.Element=Nw;Ct.ForwardRef=db;Ct.Fragment=ob;Ct.Lazy=mb;Ct.Memo=pb;Ct.Portal=Bw;Ct.Profiler=lb;Ct.StrictMode=ab;Ct.Suspense=hb;Ct.SuspenseList=fb;Ct.isAsyncMode=function(){return!1};Ct.isConcurrentMode=function(){return!1};Ct.isContextConsumer=function(i){return is(i)===cb};Ct.isContextProvider=function(i){return is(i)===ub};Ct.isElement=function(i){return typeof i=="object"&&i!==null&&i.$$typeof===Nw};Ct.isForwardRef=function(i){return is(i)===db};Ct.isFragment=function(i){return is(i)===ob};Ct.isLazy=function(i){return is(i)===mb};Ct.isMemo=function(i){return is(i)===pb};Ct.isPortal=function(i){return is(i)===Bw};Ct.isProfiler=function(i){return is(i)===lb};Ct.isStrictMode=function(i){return is(i)===ab};Ct.isSuspense=function(i){return is(i)===hb};Ct.isSuspenseList=function(i){return is(i)===fb};Ct.isValidElementType=function(i){return typeof i=="string"||typeof i=="function"||i===ob||i===lb||i===ab||i===hb||i===fb||i===Zxe||typeof i=="object"&&i!==null&&(i.$$typeof===mb||i.$$typeof===pb||i.$$typeof===ub||i.$$typeof===cb||i.$$typeof===db||i.$$typeof===WN||i.getModuleId!==void 0)};Ct.typeOf=is});var YN=M((iBe,KN)=>{"use strict";KN.exports=GN()});var Qxe,ewe,twe,zw=b(()=>{Qxe=N(Ne()),ewe=N(ue()),twe=N(YN());Cc()});var qw=b(()=>{});var XN=b(()=>{zw()});function gb(i,e){return`${tE(i)?i:i[Kf]}__${e}`}function Qd(i){return gb(i,"description")}function Hw(i){return gb(i,"error")}function jw(i){return gb(i,"examples")}function Vw(i){return gb(i,"help")}function na(i,e=!1){let t=e?` ${jw(i)}`:"";return`${Hw(i)} ${Qd(i)} ${Vw(i)}${t}`}var JN=b(()=>{Sie();Bt()});var ZN=b(()=>{});var QN=b(()=>{});var eB=b(()=>{});var tB=b(()=>{});var iB=b(()=>{});var rB=b(()=>{Dn()});
12var nB=b(()=>{});var Uw=b(()=>{Bt()});var sB=b(()=>{Pw()});var oB=b(()=>{});var aB=b(()=>{nb()});var uB=b(()=>{yp();Uw()});var cB=b(()=>{Bt()});var dB=b(()=>{Dn()});var hB=b(()=>{});var an,fB=b(()=>{(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)"})(an||(an={}))});var pB=b(()=>{Bt();qw();Dn()});var mB=b(()=>{Bt();pB();po();Dn()});var gB=b(()=>{mB()});var Ue=b(()=>{eD();tD();nD();sD();LN();$N();FN();Dn();NN();BN();zN();Lw();qN();sb();Pw();lg();HN();Zd();jN();Cc();VN();UN();vc();zw();gp();qw();XN();JN();eb();Mw();ww();As();ZN();QN();Sw();yp();Xg();kw();eB();nb();tB();Fw();Ow();iB();rB();Ew();nB();Uw();sB();oB();aB();uB();cB();ug();dB();hB();fB();Bt();gB();Dw()});var Awe,Mwe,yB=b(()=>{Awe=N(Ne()),Mwe=N(ue());Ue()});var Rwe,xB=b(()=>{Rwe=N(Ne());Ue()});var wB,Dwe,SB=b(()=>{wB=N(Ne()),Dwe=N(ue());Ue()});var Owe,CB,IB=b(()=>{Owe=N(Ne()),CB=N(ue());Ue()});var EB,Lwe,kB=b(()=>{EB=N(Ne()),Lwe=N(ue());Ue()});var Ww,TB,AB=b(()=>{Ww=N(Ne()),TB=N(ue());Ue()});var $we,MB=b(()=>{$we=N(Ne());Ue()});var Pwe,RB=b(()=>{Pwe=N(ue())});var DB=b(()=>{yB();xB();SB();IB();kB();AB();MB();RB()});var Fwe,OB=b(()=>{Fwe=N(Ne());Ue()});var LB,$B=b(()=>{LB=N(Ne())});var PB,FB=b(()=>{PB=N(Ne());Ue()});var Nwe,NB=b(()=>{Nwe=N(Ne());Ue()});var Gw,Bwe,BB=b(()=>{Gw=N(Ne()),Bwe=N(ue());Ue()});var zwe,zB=b(()=>{zwe=N(Ne());Ue()});var qwe,Kw=b(()=>{qwe=N(Ne());Ue()});var Hwe,qB=b(()=>{Hwe=N(Ne());Ue();Kw()});var HB=b(()=>{zB();qB();Kw()});var jwe,jB=b(()=>{jwe=N(Ne())});var VB,UB=b(()=>{VB=N(Ne());Ue()});var WB,Yw=b(()=>{WB=N(Ne())});var GB,KB=b(()=>{GB=N(Ne());Ue();Yw()});var YB=b(()=>{KB()});var Uwe,XB=b(()=>{Uwe=N(Ne());Ue()});var Wwe,JB=b(()=>{Wwe=N(Ne());Ue()});var ZB,QB=b(()=>{ZB=N(Ne());Ue()});var ez,tz=b(()=>{ez=N(Ne())});var iz,rz=b(()=>{iz=N(Ne());Ue()});var nz,sz=b(()=>{nz=N(Ne());Ue();Yw()});var oz=b(()=>{OB();$B();FB();NB();BB();HB();jB();UB();YB();XB();JB();QB();tz();rz();sz()});var az,bb,lz=b(()=>{az=N(Ne()),bb=N(ue());Ue()});var Gwe,uz=b(()=>{Gwe=N(Ne())});var cz,Kwe,dz=b(()=>{cz=N(Ne()),Kwe=N(ue());Ue()});var hz,Ywe,fz=b(()=>{hz=N(Ne()),Ywe=N(ue());Ue()});var Xwe,pz=b(()=>{Xwe=N(Ne());Ue()});var Jwe,Zwe,mz=b(()=>{Jwe=N(Ne()),Zwe=N(ue());Ue()});var Qwe,gz=b(()=>{Qwe=N(Ne());Ue()});var e2e,bz=b(()=>{e2e=N(Ne());Ue()});var Xw,vz,_z=b(()=>{Xw=N(Ne()),vz=N(ue());Ue()});var t2e,yz=b(()=>{t2e=N(Ne())});var i2e,xz=b(()=>{i2e=N(Ne());Ue()});var wz,r2e,Sz=b(()=>{wz=N(Ne()),r2e=N(ue());Ue()});var Cz,Iz=b(()=>{Cz=N(Ne())});var Ez,n2e,kz=b(()=>{Ez=N(Ne()),n2e=N(ue());Ue()});function s2e({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,vb.useCallback)(({target:{value:p}})=>l(p===""?e.emptyValue:p),[l,e.emptyValue]),h=(0,vb.useCallback)(({target:p})=>u(i,p&&p.value),[u,i]),f=(0,vb.useCallback)(({target:p})=>c(i,p&&p.value),[i,c]);return(0,Tz.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:h,onFocus:f,onChange:d,"aria-describedby":na(i)})}var Tz,vb,Az=b(()=>{Tz=N(Ne()),vb=N(ue());Ue();s2e.defaultProps={autofocus:!1,options:{}}});var o2e,Mz=b(()=>{o2e=N(Ne());Ue()});var a2e,l2e,Rz=b(()=>{a2e=N(Ne()),l2e=N(ue());Ue()});var u2e,Dz=b(()=>{u2e=N(Ne());Ue()});var c2e,Oz=b(()=>{c2e=N(Ne());Ue()});var Lz=b(()=>{lz();uz();dz();fz();pz();mz();gz();bz();_z();
12yz();xz();Sz();Iz();kz();Az();Mz();Rz();Dz();Oz()});var Jw=b(()=>{Ue();DB();oz();Lz()});var $z,Pz,Zw=b(()=>{$z=N(Ne()),Pz=N(ue());Ue();Jw()});var f2e,p2e,Fz=b(()=>{f2e=N(Ne()),p2e=N(ue());Zw()});var Nz=b(()=>{Zw();Fz();Jw()});var m2e,g2e,Bz=b(()=>{Jn();m2e=N(Ge());Nz();Ue();g2e=N(ue())});var zz=b(()=>{});var qz,Hz=b(()=>{qz=N(ue())});var jz,Vz=b(()=>{nn();(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})(jz||(jz={}))});var Uz,Wz=b(()=>{Zt();Nr();tt();nn();(function(i){i.DEFAULT_RANK=100})(Uz||(Uz={}))});function rs(i,e,t){return isNaN(i)||i<=e?e:i>=t?t:i}function ln(i,e,t){return isNaN(i)||i<=e?0:i>=t?1:i/(t-e)}function hl(i,e,t){return isNaN(i)?e:e+i*(t-e)}function Qw(i){return i*(Math.PI/180)}function Gz(i){return i*(180/Math.PI)}function Kz(i){let e=Math.round(rs(i,0,255)).toString(16);return e.length===1?"0"+e:e}function ur(i,e,t){return isNaN(i)||i<=0?e:i>=1?t:e+i*(t-e)}function _b(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 qt(i,e){let t=Math.pow(10,e);return Math.round(i*t)/t}var lUe,ns=b(()=>{lUe=Math.PI*2});var wr,Cp=b(()=>{ns();wr=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 wr(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 wr(qt(this.h,e),qt(this.s,e),qt(this.l,e))}toObject(){return{h:this.h,s:this.s,l:this.l}}}});var sa,yb=b(()=>{ns();sa=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 sa(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 sa(qt(this.h,e),qt(this.s,e),qt(this.v,e))}toObject(){return{h:this.h,s:this.s,v:this.v}}}});var bi,xb=b(()=>{ns();bi=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 bi(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 bi(qt(this.l,e),qt(this.a,e),qt(this.b,e))}toObject(){return{l:this.l,a:this.a,b:this.b}}};bi.epsilon=216/24389;bi.kappa=24389/27});var $s,Ip=b(()=>{ns();$s=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 $s(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 $s(qt(this.l,e),qt(this.c,e),qt(this.h,e))}toObject(){return{l:this.l,c:this.c,h:this.h}}}});var ct,fl=b(()=>{ns();ct=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 ct(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(hl(this.r,0,255))},${Math.round(hl(this.g,0,255))},${Math.round(hl(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(hl(this.r,0,255))},${Math.round(hl(this.g,0,255))},${Math.round(hl(this.b,0,255))},${rs(this.a,0,1)})`}roundToPrecision(e){return new ct(qt(this.r,e),qt(this.g,e),qt(this.b,e),qt(this.a,e))}clamp(){return new ct(rs(this.r,0,1),rs(this.g,0,1),rs(this.b,0,1),rs(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(e){return Kz(hl(e,0,255))}}});var Yi,wb=b(()=>{ns();Yi=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 Yi(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 Yi(qt(this.x,e),qt(this.y,e),qt(this.z,e))}toObject(){return{x:this.x,y:this.y,z:this.z}}};Yi.whitePoint=new Yi(.95047,1,1.08883)});function Cb(i){return i.r*.2126+i.g*.7152+i.b*.0722}function Sb(i){function e(t){return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return Cb(new ct(e(i.r),e(i.g),e(i.b),1))}function e2(i,e){let t=Sb(i),r=Sb(e);return t>r?Yz(t,r):Yz(r,t)}function On(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 wr(n,o,s)}function mo(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 ct(s+n,o+n,a+n,e)}function t2(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 sa(n,s,e)}function Xz(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 ct(s+n,o+n,a+n,e)}function b2e(i){let e=0,t=0;return i.h!==0&&(e=Math.cos(Qw(i.h))*i.c,t=Math.sin(Qw(i.h))*i.c),new bi(i.l,e,t)}function v2e(i){let e=0;(Math.abs(i.b)>.001||Math.abs(i.a)>.001)&&(e=Gz(Math.atan2(i.b,i.a))),e<0&&(e+=360);let t=Math.sqrt(i.a*i.a+i.b*i.b);return new $s(i.l,t,e)}function _2e(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>bi.epsilon?a=n:a=(116*t-16)/bi.kappa;let l=0;i.l>bi.epsilon*bi.kappa?l=s:l=i.l/bi.kappa;let u=0;return o>bi.epsilon?u=o:u=(116*r-16)/bi.kappa,a=Yi.whitePoint.x*a,l=Yi.whitePoint.y*l,u=Yi.whitePoint.z*u,new Yi(a,l,u)}function y2e(i){function e(l){return l>bi.epsilon?Math.pow(l,1/3):(bi.kappa*l+16)/116}let t=e(i.x/Yi.whitePoint.x),r=e(i.y/Yi.whitePoint.y),n=e(i.z/Yi.whitePoint.z),s=116*r-16,o=500*(t-r),a=200*(r-n);return new bi(s,o,a)}function Ib(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 Yi(s,o,a)}function i2(i,e=1){function t(o){return o<=.0031308?o*12.92:1.055*M
12ath.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 ct(r,n,s,e)}function Ep(i){return y2e(Ib(i))}function Eb(i,e=1){return i2(_2e(i),e)}function kp(i){return v2e(Ep(i))}function kb(i,e=1){return Eb(b2e(i),e)}var Yz,Ec=b(()=>{Cp();yb();xb();Ip();fl();wb();ns();Yz=(i,e)=>(i+.05)/(e+.05)});function s2(i,e,t=18){let r=kp(i),n=r.c+e*t;return n<0&&(n=0),kb(new $s(r.l,n,r.h))}function r2(i,e){return i*e}function o2(i,e){return new ct(r2(i.r,e.r),r2(i.g,e.g),r2(i.b,e.b),1)}function n2(i,e){return i<.5?rs(2*e*i,0,1):rs(1-2*(1-e)*(1-i),0,1)}function a2(i,e){return new ct(n2(i.r,e.r),n2(i.g,e.g),n2(i.b,e.b),1)}var Jz,l2=b(()=>{Ec();Ip();fl();ns();(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"})(Jz||(Jz={}))});function x2e(i,e,t){return isNaN(i)||i<=0?e:i>=1?t:new ct(ur(i,e.r,t.r),ur(i,e.g,t.g),ur(i,e.b,t.b),ur(i,e.a,t.a))}function w2e(i,e,t){return isNaN(i)||i<=0?e:i>=1?t:new wr(_b(i,e.h,t.h),ur(i,e.s,t.s),ur(i,e.l,t.l))}function S2e(i,e,t){return isNaN(i)||i<=0?e:i>=1?t:new sa(_b(i,e.h,t.h),ur(i,e.s,t.s),ur(i,e.v,t.v))}function C2e(i,e,t){return isNaN(i)||i<=0?e:i>=1?t:new Yi(ur(i,e.x,t.x),ur(i,e.y,t.y),ur(i,e.z,t.z))}function I2e(i,e,t){return isNaN(i)||i<=0?e:i>=1?t:new bi(ur(i,e.l,t.l),ur(i,e.a,t.a),ur(i,e.b,t.b))}function E2e(i,e,t){return isNaN(i)||i<=0?e:i>=1?t:new $s(ur(i,e.l,t.l),ur(i,e.c,t.c),_b(i,e.h,t.h))}function kc(i,e,t,r){if(isNaN(i)||i<=0)return t;if(i>=1)return r;switch(e){case Sr.HSL:return mo(w2e(i,On(t),On(r)));case Sr.HSV:return Xz(S2e(i,t2(t),t2(r)));case Sr.XYZ:return i2(C2e(i,Ib(t),Ib(r)));case Sr.LAB:return Eb(I2e(i,Ep(t),Ep(r)));case Sr.LCH:return kb(E2e(i,kp(t),kp(r)));default:return x2e(i,t,r)}}var Sr,Tp=b(()=>{Ec();Cp();yb();xb();Ip();fl();wb();ns();(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"})(Sr||(Sr={}))});var Cr,Tb=b(()=>{Ec();Tp();Cr=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 Cr(t)}getColor(e,t=Sr.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 kc(s,t,this.stops[r].color,this.stops[n].color)}trim(e,t,r=Sr.RGB){if(e<0||t>1||t<e)throw new Error("Invalid bounds");if(e===t)return new Cr([{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 Cr([{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 Cr(o)}findNextColor(e,t,r=!1,n=Sr.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(e2(a,u)<=t)return l;let d=r?0:e,h=r?e:0,f=l,p=0;for(;p<=o;){f=Math.abs(h-d)/2+d;let g=this.getColor(f,n),v=e2(a,g);if(Math.abs(v-t)<=s)return f;v>t?r?d=f:h=f:r?h=f:d=f,p++}return f}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 Cr(e)}sortColorScaleStops(e){return e.sort((t,r)=>{let n=t.position,s=r.position;return n<s?-1:n>s?1:0})}}});var u2,Zz=b(()=>{u2={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}
12,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},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 k2e(i){return tq.test(i)}function T2e(i){return iq.test(i)}function A2e(i){return T2e(i)}function M2e(i){return Qz.test(i)}function R2e(i){return eq.test(i)}function D2e(i){return u2.hasOwnProperty(i)}function un(i){let e=tq.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 ct(ln((r&16711680)>>>16,0,255),ln((r&65280)>>>8,0,255),ln(r&255,0,255),1)}function O2e(i){let e=iq.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 ct(ln((r&16711680)>>>16,0,255),ln((r&65280)>>>8,0,255),ln(r&255,0,255),ln((r&4278190080)>>>24,0,255))}function L2e(i){let e=Qz.exec(i);if(e===null)return null;let t=e[1].split(",");return new ct(ln(Number(t[0]),0,255),ln(Number(t[1]),0,255),ln(Number(t[2]),0,255),1)}function $2e(i){let e=eq.exec(i);if(e===null)return null;let t=e[1].split(",");return t.length===4?new ct(ln(Number(t[0]),0,255),ln(Number(t[1]),0,255),ln(Number(t[2]),0,255),Number(t[3])):null}function P2e(i){let e=u2[i.toLowerCase()];return e?new ct(e.r,e.g,e.b,e.hasOwnProperty("a")?e.a:void 0):null}function Ap(i){let e=i.toLowerCase();return k2e(e)?un(e):A2e(e)?O2e(e):M2e(e)?L2e(e):R2e(e)?$2e(e):D2e(e)?P2e(e):null}var Qz,eq,tq,iq,Ab=b(()=>{fl();ns();Zz();Qz=/^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,eq=/^rgba\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){3}(?:0|1|0?\.\d*)\s*)\)$/i,tq=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i,iq=/^#((?:[0-9a-f]{8}|[0-9a-f]{4}))$/i});var Ps,nWe,c2=b(()=>{l2();Ec();Tp();fl();Tb();Ab();Ps=class{constructor(e){this.config=Object.assign({},Ps.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=On(this.config.baseColor),r=new Cr([{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=s2(o,this.config.saturationLight),a=s2(a,this.config.saturationDark)),this.config.multiplyLight!==0){let l=o2(this.config.baseColor,o);o=kc(this.config.multiplyLight,this.config.interpolationMode,o,l)}if(this.config.multiplyDark!==0){let l=o2(this.config.baseColor,a);a=kc(this.config.multiplyDark,this.config.interpolationMode,a,l)}if(this.config.overlayLight!==0){let l=a2(this.config.baseColor,o);o=kc(this.config.overlayLight,this.config.interpolationMode,o,l)}if(this.config.overlayDark!==0){let l=a2(this.config.baseColor,a);a=kc(this.config.overlayDark,this.config.interpolationMode,a,l)}return this.config.baseScalePosition?this.config.baseScalePosition<=0?new Cr([{position:0,color:this.config.baseColor},{position:1,color:a.clamp()}]):this.config.baseScalePosition>=1?new Cr([{position:0,color:o.clamp()},{position:1,color:this.config.baseColor}]):new Cr([{position:0,color:o.clamp()},{position:this.config.baseScalePosition,color:this.config.baseColor},{position:1,color:a.clamp()}]):new Cr([{position:0,color:o.clamp()},{position:.5,color:this.config.baseColor},{position:1,color:a.clamp()}])}};Ps.defaultPaletteConfig={baseColor:un("#808080"),steps:11,interpolationMode:Sr.RGB,scaleColorLight:new ct(1,1,1,1),scaleColorDark:new ct(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};Ps.greyscalePaletteConfig={baseColor:un("#808080"),steps:11,interpolationMode:Sr.RGB,scaleColorLight:new ct(1,1,1,1),scaleColorDark:new ct(0,0,0,1),clipLight:0,clipDark:0,saturationAdjustmentCutoff:0,saturationLight:0,saturationDark:0,overlayLight:0,overlayDark:0,multiplyLight:0,multiplyDark:0,baseScalePosition:.5};nWe={targetSize:63,spacing:4,scaleColorLight:Ps.defaultPaletteConfig.scaleColorLight,scaleColorDark:Ps.defaultPaletteConfig.scaleColorDark}});var rq=b(()=>{});var nq=b(()=>{});var sq=b(()=>{});var Tc,oq=b(()=>{fl();c2();Ec();Tb();Cp();Tp();Ab();Tc=class{constructor(e){this.palette=[],this.config=Object.assign({},Tc.defaultPaletteConfig,e),this.regenPalettes()}regenPalettes(){let e=this.config.steps;(isNaN(e)||e<3)&&(e=3);let t=.14,r=.06,n=new ct(t,t,t,1),s=94,a=new Ps(Object.assign(Object.assign({},Ps.greyscalePaletteConfig),{baseColor:n,baseScalePosition:(1-t)*100/s,steps:e})).palette,l=Cb(this.config.baseColor),u=On(this.config.baseColor).l,c=(l+u)/2,h=this.matchRelativeLuminanceIndex(c,a)/(e-1),p=this.matchRelativeLuminanceIndex(t,a)/(e-1),g=On(this.config.baseColor),v=mo(wr.fromObject({h:g.h,s:g.s,l:t})),_=mo(wr.fromObject({h:g.h,s:g.s,l:r})),x=new Array(5);x[0]={position:0,color:new ct(1,1,1,1)},x[1]={position:h,color:this.config.baseColor},x[2]={position:p,color:v},x[3]={position:.99,color:_},x[4]={position:1,color:new ct(0,0,0,1)};let y=new Cr(x);this.palette=new Array(e);for(let C=0;C<e;C++){let S=y.getColor(C/(e-1),Sr.RGB);this.palette[C]=S}}matchRelativeLuminanceIndex(e,t){let r=Number.MAX_VALUE,n=0,s=0,o=t.length;for(;s<o;s++){let a=Math.abs(Cb(t[s])-e);a<r&&(r=a,n=s)}return n}};Tc.defaultPaletteConfig={baseColor:un("#808080"),steps:94}});var aq=b(()=>{});var lq=b(()=>{});var eh=b(()=>{l2();Ec();Cp();yb();Tp();xb();Ip();c2();sq();fl();Tb();wb();oq();rq();ns();aq();Ab();lq();nq()});function Mb(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 d2=b(()=>{});function uq(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 Fi,th,ih=b(()=>{eh();d2();Fi=Object.freeze({create(i,e,t){return new th(i,e,t)},from(i){return new th(i.r,i.g,i.b)}});th=class extends ct{constructor(e,t,r){super(e,t,r,1),this.toColorString=this.toStringHexRGB,this.contrast=Mb.bind(null,this),this.createCSS=this.toColorString,this.relativeLuminance=Sb(this)}static fromObject(e){return new th(e.r,e.g,e.b)}}});function pl(i){return Fi.create(i,i,i)}var Mp,Ac=b(()=>{ih();Mp={LightMode:1,DarkMode:.23}});function rh(i){return i.relativeLuminance<=F2e}var F2e,Rb=b(()=>{F2e=(-.1+Math.sqrt(.21))/2});function Db(){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 Fs,cq,Mc,ss,oa=b(()=>{Fs=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{}}}();Fs.trustedTypes===void 0&&(Fs.trustedTypes={createPolicy:(i,e)=>e});cq={configurable:!1,enumerable:!1,writable:!1};Fs.FAST===void 0&&Reflect.defineProperty(Fs,"FAST",Object.assign({value:Object.create(null)},cq));Mc=Fs.FAST;if(Mc.getById===void 0){let i=Object.create(null);Reflect.defineProperty(Mc,"getById",Object.assign({value(e,t){let r=i[e];return r===void 0&&(r=t?i[e]=t():null),r}},cq))}ss=Object.freeze([])});var h2,dq,f2,Rp,p2,Ob,ce,os=b(()=>{oa();h2=Fs.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&&Fs.requestAnimationFrame(n),i.push(o)}return Object.freeze({enqueue:s,process:n})}),dq=Fs.trustedTypes.createPolicy("fast-html",{createHTML:i=>i}),f2=dq,Rp=`fast-${Math.random().toString(36).substring(2,8)}`,p2=`${Rp}{`,Ob=`}${Rp}`,ce=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(i){if(f2!==dq)throw new Error("The HTML policy can only be set once.");f2=i},createHTML(i){return f2.createHTML(i)},isMarker(i){return i&&i.nodeType===8&&i.data.startsWith(Rp)},extractDirectiveIndexFromMarker(i){return parseInt(i.data.replace(`${Rp}:`,""))},createInterpolationPlaceholder(i){return`${p2}${i}${Ob}`},createCustomAttributePlaceholder(i,e){return`${i}="${this.createInterpolationPlaceholder(e)}"`},createBlockPlaceholder(i){return`<!--${Rp}:${i}-->`},queueUpdate:h2.enqueue,processUpdates:h2.process,nextUpdate(){return new Promise(h2.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 ml,nh,Dp=b(()=>{ml=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)}},nh=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 ml(this.source)),n.subscribe(e)}else this.sourceSubscribers=(r=this.sourceSubscribers)!==null&&r!==void 0?r:new ml(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 P(i,e){_e.defineProperty(i,e)}function fq(i,e,t){return Object.assign({},t,{get:function(){return _e.trackVolatile(),t.get.apply(this)}})}var _e,hq,gl,bl,go=b(()=>{os();oa();Dp();_e=Mc.getById(2,()=>{let i=/(:|&&|\|\||if)/,e=new WeakMap,t=ce.queueUpdate,r,n=u=>
12{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 nh(u))),c}let o=Db();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 h=this.field,f=c[h];if(f!==d){c[h]=d;let p=c[this.callback];typeof p=="function"&&p.call(c,f,d),s(c).notify(this.name)}}}class l extends ml{constructor(c,d,h=!1){super(c,d),this.binding=c,this.isVolatileBinding=h,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 h=r;r=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let f=this.binding(c,d);return r=h,f}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 h=this.last,f=s(c),p=h===null?this.first:{};if(p.propertySource=c,p.propertyName=d,p.notifier=f,f.subscribe(this,d),h!==null){if(!this.needsRefresh){let g;r=void 0,g=h.propertySource[h.propertyName],r=this,c===g&&(this.needsRefresh=!0)}h.next=p}this.last=p}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())}})});hq=Mc.getById(3,()=>{let i=null;return{get(){return i},set(e){i=e}}}),gl=class{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return hq.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){hq.set(e)}};_e.defineProperty(gl.prototype,"index");_e.defineProperty(gl.prototype,"length");bl=Object.seal(new gl)});var vl,sh,_l,yl=b(()=>{os();vl=class{constructor(){this.targetIndex=0}},sh=class extends vl{constructor(){super(...arguments),this.createPlaceholder=ce.createInterpolationPlaceholder}},_l=class extends vl{constructor(e,t,r){super(),this.name=e,this.behavior=t,this.options=r}createPlaceholder(e){return ce.createCustomAttributePlaceholder(this.name,e)}createBehavior(e){return new this.behavior(e,this.options)}}});function N2e(i,e){this.source=i,this.context=e,this.bindingObserver===null&&(this.bindingObserver=_e.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(i,e))}function B2e(i,e){this.source=i,this.context=e,this.target.addEventListener(this.targetName,this)}function z2e(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function q2e(){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 H2e(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function j2e(i){ce.setAttribute(this.target,this.targetName,i)}function V2e(i){ce.setBooleanAttribute(this.target,this.targetName,i)}function U2e(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 W2e(i){this.target[this.targetName]=i}function G2e(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 Rc,m2,Lb=b(()=>{os();go();yl();Rc=class extends sh{constructor(e){super(),this.binding=e,this.bind=N2e,this.unbind=z2e,this.updateTarget=j2e,this.isBindingVolatile=_e.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=W2e,this.cleanedTargetName==="innerHTML"){let t=this.binding;this.binding=(r,n)=>ce.createHTML(t(r,n))}break;case"?":this.cleanedTargetName=e.substr(1),this.updateTarget=V2e;break;case"@":this.cleanedTargetName=e.substr(1),this.bind=B2e,this.unbind=H2e;break;default:this.cleanedTargetName=e,e==="class"&&(this.updateTarget=G2e);break}}targetAtContent(){this.updateTarget=U2e,this.unbind=q2e}createBehavior(e){return new m2(e,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}},m2=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){gl.setEvent(e);let t=this.binding(this.source,this.context);gl.setEvent(null),t!==!0&&e.preventDefault()}}});function K2e(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 Rc(n);return s.targetName=e,s}function mq(i,e){let t=e.split(p2);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(Ob),l;if(a===-1)l=o;else{let u=parseInt(o.substring(0,a));r.push(i.directives[u]),l=o.substring(a+Y2e)}l!==""&&r.push(l)}return r}function pq(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=mq(i,a),u=null;l===null?t&&(u=new Rc(()=>a),u.targetName=o.name):u=K2e(l),u!==null&&(e.removeAttributeNode(o),n--,s--,i.addFactory(u))}}function X2e(i,e,t){let r=mq(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 gq(i,e){let t=i.content;document.adoptNode(t);let r=Op.borrow(e);pq(r,i,!0);let n=r.behaviorFactories;r.reset();let s=ce.createTemplateWalker(t),o;for(;o=s.nextNode();)switch(r.targetIndex++,o.nodeType){case 1:pq(r,o);break;case 3:X2e(r,o,s);break;case 8:ce.isMarker(o)&&r.addFactory(e[ce.extractDirectiveIndexFromMarker(o)])}let a=0;(ce.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,Op,Y2e,b2=b(()=>{os();Lb();g2=null,Op=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 Op;return t.directives=e,t.reset(),g2=null,t}};Y2e=Ob.length});var v2,oh,$b=b(()=>{v2=document.createRange(),oh=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){v2.setStartBefore(e[0].firstChild),v2.setEndAfter(e[e.length-1].lastChild),v2.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 Pb){let l=a;a=()=>l}if(typeof a=="function"&&(a=new Rc(a)),a instanceof sh){let l=J2e.exec(o);l!==null&&(a.targetName=l[2])}a instanceof vl?(r+=a.createPlaceholder(t.length),t.push(a)):r+=a}return r+=i[i.length-1],new Pb(r,t)}var Pb,J2e,bq=b(()=>{os();go();b2();$b();yl();Lb();Pb=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=ce.createHTML(c);let h=u.content.firstElementChild;h!==null&&h.tagName==="TEMPLATE"&&(u=h)}else u=c;let d=gq(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=ce.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 oh(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,bl),n.appendTo(t),n}},J2e=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/});function x2(i){return i.map(e=>e instanceof ri?x2(e.styles):[e]).reduce((e,t)=>
12e.concat(t),[])}function vq(i){return i.map(e=>e instanceof ri?e.behaviors:null).reduce((e,t)=>t===null?e:(e===null&&(e=[]),e.concat(t)),null)}function _q(i){let e=[],t=[];return i.forEach(r=>(r[Fb]?e:t).push(r)),{prepend:e,append:t}}function Q2e(){return`fast-style-class-${++Z2e}`}var ri,Fb,yq,xq,_2,Z2e,y2,Nb=b(()=>{os();ri=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}};ri.create=(()=>{if(ce.supportsAdoptedStyleSheets){let i=new Map;return e=>new _2(e,i)}return i=>new y2(i)})();Fb=Symbol("prependToAdoptedStyleSheets");yq=(i,e)=>{let{prepend:t,append:r}=_q(e);i.adoptedStyleSheets=[...t,...i.adoptedStyleSheets,...r]},xq=(i,e)=>{i.adoptedStyleSheets=i.adoptedStyleSheets.filter(t=>e.indexOf(t)===-1)};if(ce.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),yq=(i,e)=>{let{prepend:t,append:r}=_q(e);i.adoptedStyleSheets.splice(0,0,...t),i.adoptedStyleSheets.push(...r)},xq=(i,e)=>{for(let t of e){let r=i.adoptedStyleSheets.indexOf(t);r!==-1&&i.adoptedStyleSheets.splice(r,1)}}}catch{}_2=class extends ri{constructor(e,t){super(),this.styles=e,this.styleSheetCache=t,this._styleSheets=void 0,this.behaviors=vq(e)}get styleSheets(){if(this._styleSheets===void 0){let e=this.styles,t=this.styleSheetCache;this._styleSheets=x2(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){yq(e,this.styleSheets),super.addStylesTo(e)}removeStylesFrom(e){xq(e,this.styleSheets),super.removeStylesFrom(e)}},Z2e=0;y2=class extends ri{constructor(e){super(),this.styles=e,this.behaviors=null,this.behaviors=vq(e),this.styleSheets=x2(e),this.styleClass=Q2e()}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 A(i,e){let t;function r(n,s){arguments.length>1&&(t.property=s),Lp.locate(n.constructor).push(t)}if(arguments.length>1){t={},r(i,e);return}return t=i===void 0?{}:i,r}var Lp,Oc,me,Dc,w2=b(()=>{go();os();oa();Lp=Object.freeze({locate:Db()}),Oc={toView(i){return i?"true":"false"},fromView(i){return!(i==null||i==="false"||i===!1||i===0)}},me={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}},Dc=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=Oc)}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 _e.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"||ce.queueUpdate(()=>{r.add(e);let n=e[this.fieldName];switch(t){case"reflect":let s=this.converter;ce.setAttribute(e,this.attribute,s!==void 0?s.toView(n):n);break;case"boolean":ce.setBooleanAttribute(e,this.attribute,n);break}r.delete(e)})}static collect(e,...t){let r=[];t.push(Lp.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 Dc(e,u)):r.push(new Dc(e,u.property,u.attribute,u.mode,u.converter))}}return r}}});var wq,Sq,S2,bo,Bb=b(()=>{oa();go();Nb();w2();wq={mode:"open"},Sq={},S2=Mc.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)}})}),bo=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=Dc.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?wq:t.shadowOptions===null?void 0:Object.assign(Object.assign({},wq),t.shadowOptions),this.elementOptions=t.elementOptions===void 0?Sq:Object.assign(Object.assign({},Sq),t.elementOptions),this.styles=t.styles===void 0?void 0:Array.isArray(t.styles)?ri.create(t.styles):t.styles instanceof ri?t.styles:ri.create([t.styles])}get isDefined(){return!!S2.getByType(this.type)}
12define(e=customElements){let t=this.type;if(S2.register(this)){let r=this.attributes,n=t.prototype;for(let s=0,o=r.length;s<o;++s)_e.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}};bo.forType=S2.getByType});function C2(i){return i.shadowRoot||Cq.get(i)||null}var Cq,e3e,ah,I2=b(()=>{os();Dp();go();Bb();Cq=new WeakMap,e3e={bubbles:!0,composed:!0,cancelable:!0};ah=class extends nh{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"&&Cq.set(e,s)}let n=_e.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 _e.track(this,"isConnected"),this._isConnected}setIsConnected(e){this._isConnected=e,_e.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=C2(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=C2(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,bl)}}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,bl);let t=this.behaviors;if(t!==null)for(let[r]of t)r.bind(e,bl);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},e3e),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=C2(t)||t;this.view!==null?(this.view.dispose(),this.view=null):this.needsInitialization||ce.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=bo.forType(e.constructor);if(r===void 0)throw new Error("Missing FASTElement definition.");return e.$fastController=new ah(e,r)}}});function Iq(i){return class extends i{constructor(){super(),ah.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 xl,Eq=b(()=>{I2();Bb();xl=Object.assign(Iq(HTMLElement),{from(i){return Iq(i)},define(i,e){return new bo(i,e).define().type}})});var wl,E2=b(()=>{wl=class{createCSS(){return""}createBehavior(){}}});function kq(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 wl){let l=a.createBehavior();a=a.createCSS(),l&&n.push(l)}a instanceof ri||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 F(i,...e){let{styles:t,behaviors:r}=kq(i,e),n=ri.create(t);return r.length&&n.withBehaviors(...r),n}function $p(i,...e){let{styles:t,behaviors:r}=kq(i,e);return new k2(t,r)}var k2,Tq=b(()=>{E2();Nb();k2=class extends wl{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=ri.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 as(i,e,t){return{index:i,removed:e,addedCount:t}}function t3e(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 h=1;h<a;++h)i[e+h-1]===r[n+d-1]?l[d][h]=l[d-1][h-1]:(u=l[d-1][h]+1,c=l[d][h-1]+1,l[d][h]=u<c?u:c);return l}function i3e(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(T2),t--;continue}if(t===0){n.push(A2),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(Mq):(n.push(Rq),r=s),e--,t--):l===o?(n.push(A2),e--,r=o):(n.push(T2),t--,r=a)}return n.reverse(),n}function r3e(i,e,t){for(let r=0;r<t;++r)if(i[r]!==e[r])return r;return t}function n3e(i,e,t){let r=i.length,n=e.length,s=0;for(;s<t&&i[--r]===e[--n];)s++;return s}function s3e(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 M2(i,e,t,r,n,s){let o=0,a=0,l=Math.min(t-e,s-n);if(e===0&&n===0&&(o=r3e(i,r,l)),t===i.length&&s===r.length&&(a=n3e(i,r,l-o)),e+=o,n+=o,t-=a,s-=a,t-e===0&&s-n===0)return ss;if(e===t){let p=as(e,[],0);for(;n<s;)p.removed.push(r[n++]);return[p]}else if(n===s)return[as(e,[],t-e)];let u=i3e(t3e(i,e,t,r,n,s)),c=[],d,h=e,f=n;for(let p=0;p<u.length;++p)switch(u[p]){case Mq:d!==void 0&&(c.push(d),d=void 0),h++,f++;break;case Rq:d===void 0&&(d=as(h,[],0)),d.addedCount++,h++,d.removed.push(r[f]),f++;break;case T2:d===void 0&&(d=as(h,[],0)),d.addedCount++,h++;break;case A2:d===void 0&&(d=as(h,[],0)),d.removed.push(r[f]),f++;break}return d!==void 0&&c.push(d),c}function o3e(i,e,t,r){let n=as(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=s3e(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 h=n.removed.slice(0,l.index-n.index);Aq.apply(h,d),d=h}if(n.index+n.removed.length>l.index+l.addedCount){let h=n.removed.slice(l.index+l.addedCount-n.index);Aq.apply(d,h)}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 a3e(i){let e=[];for(let t=0,r=i.length;t<r;t++){let n=i[t];o3e(e,n.index,n.removed,n.addedCount)}return e}function Dq(i,e){let t=[],r=a3e(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(M2(i,o.index,o.index+o.addedCount,o.removed,0,o.removed.length))}return t}var Mq,Rq,T2,A2,Aq,Oq=b(()=>{oa();Mq=0,Rq=1,T2=2,A2=3;Aq=Array.prototype.push});function R2(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 $q(){if(Lq)return;Lq=!0,_e.setArrayObserverFactory(l=>new D2(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(as(this.length,[u],0)),u},i.push=function(){let l=t.apply(this,arguments),u=this.$fastController;return u!==void 0&&u.addSplice(R2(as(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(as(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(R2(as(+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(R2(as(0,[],arguments.length),this)),l}}var Lq,D2,Pq=b(()=>{os();
12Oq();Dp();go();Lq=!1;D2=class extends ml{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,ce.queueUpdate(this))}reset(e){this.oldCollection=e,this.needsQueue&&(this.needsQueue=!1,ce.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?Dq(this.source,e):M2(this.source,0,this.source.length,t,0,t.length);this.notify(r)}}});function Ae(i){return new _l("fast-ref",O2,i)}var O2,Fq=b(()=>{yl();O2=class{constructor(e,t){this.target=e,this.propertyName=t}bind(e){e[this.propertyName]=this.target}unbind(){}}});var L2,Nq=b(()=>{L2=i=>typeof i=="function"});function Bq(i){return i===void 0?l3e:L2(i)?i:()=>i}function Xe(i,e,t){let r=L2(i)?i:()=>i,n=Bq(e),s=Bq(t);return(o,a)=>r(o,a)?n(o,a):s(o,a)}var l3e,zq=b(()=>{Nq();l3e=()=>null});function u3e(i,e,t,r){i.bind(e[t],r)}function c3e(i,e,t,r){let n=Object.create(r);n.index=t,n.length=e.length,i.bind(e[t],n)}var sKe,$2,aa,qq=b(()=>{os();go();Pq();oa();yl();$b();sKe=Object.freeze({positioning:!1,recycle:!0});$2=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=u3e,this.itemsBindingObserver=_e.binding(t,this,r),this.templateBindingObserver=_e.binding(n,this,s),o.positioning&&(this.bindView=c3e)}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=ss;return}let t=this.itemsObserver,r=this.itemsObserver=_e.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,h=e.length;d<h;++d){let f=e[d],p=f.removed,g=0,v=f.index,_=v+f.addedCount,x=r.splice(f.index,p.length),y=c=l.length+x.length;for(;v<_;++v){let C=r[v],S=C?C.firstChild:this.location,R;a&&c>0?(g<=y&&x.length>0?(R=x[g],g++):(R=l[u],u++),c--):R=o.create(),r.splice(v,0,R),n(R,s,v,t),R.insertBefore(S)}x[g]&&l.push(...x.slice(g))}for(let d=u,h=l.length;d<h;++d)l[d].dispose();if(this.options.positioning)for(let d=0,h=r.length;d<h;++d){let f=r[d].context;f.length=h,f.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;if((a===0||e||!this.options.recycle)&&(oh.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 h=l[c];o(h,t,c,r)}else{let h=n.create();o(h,t,c,r),l.push(h),h.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()}},aa=class extends vl{constructor(e,t,r){super(),this.itemsBinding=e,this.templateBinding=t,this.options=r,this.createPlaceholder=ce.createBlockPlaceholder,$q(),this.isItemsBindingVolatile=_e.isVolatileBinding(e),this.isTemplateBindingVolatile=_e.isVolatileBinding(t)}createBehavior(e){return new $2(e,this.itemsBinding,this.isItemsBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile,this.options)}}});
12function Ir(i){return i?function(e,t,r){return e.nodeType===1&&e.matches(i)}:function(e,t,r){return e.nodeType===1}}var lh,zb=b(()=>{go();oa();lh=class{constructor(e,t){this.target=e,this.options=t,this.source=null}bind(e){let t=this.options.property;this.shouldUpdate=_e.getAccessors(e).some(r=>r.name===t),this.source=e,this.updateTarget(this.computeNodes()),this.shouldUpdate&&this.observe()}unbind(){this.updateTarget(ss),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 Oe(i){return typeof i=="string"&&(i={property:i}),new _l("fast-slotted",P2,i)}var P2,Hq=b(()=>{yl();zb();P2=class extends lh{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 Sl(i){return typeof i=="string"&&(i={property:i}),new _l("fast-children",F2,i)}var F2,jq=b(()=>{yl();zb();F2=class extends lh{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 B=b(()=>{oa();bq();Eq();Bb();w2();I2();b2();Nb();Tq();E2();$b();go();Dp();os();Lb();yl();Fq();zq();qq();Hq();jq();zb()});var ht,yt,xt,zKe,qKe,Ht=b(()=>{B();ht=class{handleStartContentChange(){this.startContainer.classList.toggle("start",this.start.assignedNodes().length>0)}handleEndContentChange(){this.endContainer.classList.toggle("end",this.end.assignedNodes().length>0)}},yt=(i,e)=>H`
13    <span
14        part="end"
15        ${Ae("endContainer")}
16        class=${t=>e.end?"end":void 0}
17    >
18        <slot name="end" ${Ae("end")} @slotchange="${t=>t.handleEndContentChange()}">
19            ${e.end||""}
20        </slot>
21    </span>
22`,xt=(i,e)=>H`
23    <span
24        part="start"
25        ${Ae("startContainer")}
26        class="${t=>e.start?"start":void 0}"
27    >
28        <slot
29            name="start"
30            ${Ae("start")}
31            @slotchange="${t=>t.handleStartContentChange()}"
32        >
33            ${e.start||""}
34        </slot>
35    </span>
36`,zKe=H`
37    <span part="end" ${Ae("endContainer")}>
38        <slot
39            name="end"
40            ${Ae("end")}
41            @slotchange="${i=>i.handleEndContentChange()}"
42        ></slot>
43    </span>
44`,qKe=H`
45    <span part="start" ${Ae("startContainer")}>
46        <slot
47            name="start"
48            ${Ae("start")}
49            @slotchange="${i=>i.handleStartContentChange()}"
50        ></slot>
51    </span>
52`});var Vq,Uq=b(()=>{B();Ht();Vq=(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                ${Ae("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            ${xt(i,e)}
74            ${yt(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 T(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 Le=b(()=>{});function Pp(i){let e=i.slice(),t=Object.keys(i),r=t.length,n;for(let s=0;s<r;++s)n=t[s],rH(n)||(e[n]=i[n]);return e}function Gq(i){return e=>Reflect.getOwnMetadata(i,e)}function Vb(i){return function(e){let t=function(r,n,s){kt.inject(t)(r,n,s)};return t.$isResolver=!0,t.resolve=function(r,n){return i(e,r,n)},t}}function p3e(i){return function(e,t){t=!!t;let r=function(n,s,o){kt.inject(r)(n,s,o)};return r.$isResolver=!0,r.resolve=function(n,s){return i(e,n,s,t)},r}}function V2(i,e,t){kt.inject(V2)(i,e,t)}function eH(i,e){return e.getFactory(i).construct(e)}function Yq(i){return this.get(i)}function m3e(i,e){return e(i)}function jb(i){return typeof i.register=="function"}function b3e(i){return jb(i)&&typeof i.registerInRequestor=="boolean"}function Xq(i){return b3e(i)&&i.registerInRequestor}function v3e(i){return i.prototype!==void 0}function iH(i){return function(e,t,r){if(q2.has(r))return q2.get(r);let n=i(e,t,r);return q2.set(r,n),n}}function qb(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 Jq(i,e,t){if(i instanceof Kr&&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 Qq(i){return typeof i=="object"&&i!==null||typeof i=="function"}function rH(i){switch(typeof i){case"number":return i>=0&&(i|0)===i;case"string":{let e=Hb[i];if(e!==void 0)return e;let t=i.length;if(t===0)return Hb[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 Hb[i]=!1;return Hb[i]=!0}default:return!1}}
94var N2,H2,d3e,B2,Wq,Kq,kt,h3e,KKe,f3e,YKe,XKe,JKe,ZKe,QKe,Kr,j2,g3e,_3e,tH,z2,Lc,q2,$c,Zq,y3e,Hb,Ub=b(()=>{B();N2=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=N2.get(t);r===void 0&&N2.set(t,r=new Map),r.set(i,e)},Reflect.getOwnMetadata=function(i,e){let t=N2.get(e);if(t!==void 0)return t.get(i)});H2=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,iH(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 Kr(n,e,t))}};d3e=Object.freeze({none(i){throw Error(`${i.toString()} not registered, did you forget to add @singleton()?`)},singleton(i){return new Kr(i,1,i)},transient(i){return new Kr(i,2,i)}}),B2=Object.freeze({default:Object.freeze({parentLocator:()=>null,responsibleForOwnerRequests:!1,defaultResolver:d3e.singleton})}),Wq=new Map;Kq=null,kt=Object.freeze({createContainer(i){return new Lc(null,Object.assign({},B2.default,i))},findResponsibleContainer(i){let e=i.$$container$$;return e&&e.responsibleForOwnerRequests?e:kt.findParentContainer(i)},findParentContainer(i){let e=new CustomEvent(tH,{bubbles:!0,composed:!0,cancelable:!0,detail:{container:void 0}});return i.dispatchEvent(e),e.detail.container||kt.getOrCreateDOMContainer()},getOrCreateDOMContainer(i,e){return i?i.$$container$$||new Lc(i,Object.assign({},B2.default,e,{parentLocator:kt.findParentContainer})):Kq||(Kq=new Lc(null,Object.assign({},B2.default,e,{parentLocator:()=>null})))},getDesignParamtypes:Gq("design:paramtypes"),getAnnotationParamtypes:Gq("di:paramtypes"),getOrCreateAnnotationParamTypes(i){let e=this.getAnnotationParamtypes(i);return e===void 0&&Reflect.defineMetadata("di:paramtypes",e=[],i),e},getDependencies(i){let e=Wq.get(i);if(e===void 0){let t=i.inject;if(t===void 0){let r=kt.getDesignParamtypes(i),n=kt.getAnnotationParamtypes(i);if(r===void 0)if(n===void 0){let s=Object.getPrototypeOf(i);typeof s=="function"&&s!==Function.prototype?e=Pp(kt.getDependencies(s)):e=[]}else e=Pp(n);else if(n===void 0)e=Pp(r);else{e=Pp(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],rH(l)||(e[l]=n[l])}}else e=Pp(t);Wq.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?kt.findResponsibleContainer(this):kt.getOrCreateDOMContainer()).get(t),this[n]=s,r&&this instanceof xl)){let a=this.$fastController,l=()=>{let c=kt.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||Zq,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)kt.defineProperty(o,a,s,n);else{let u=kt.getOrCreateAnnotationParamTypes(o);u[l]=s}};return s.$isInterface=!0,s.friendlyName=r??"(anonymous)",t!=null&&(s.register=function(o,a){return t(new H2(o,a??s))}),s.toString=function(){return`InterfaceSymbol<${s.friendlyName}>`},s},inject(...i){return function(e,t,r){if(typeof r=="number"){let n=kt.getOrCreateAnnotationParamTypes(e),s=i[0];s!==void 0&&(n[r]=s)}else if(t)kt.defineProperty(e,t,i[0]);else{let n=r?kt.getOrCreateAnnotationParamTypes(r.value):kt.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 $c.transient(i,i).register(t)},i.registerInRequestor=!1,i},singleton(i,e=f3e){return i.register=function(r){return $c.singleton(i,i).register(r)},i.registerInRequestor=e.scoped,i}}),h3e=kt.createInterface("Container");KKe=kt.inject,f3e={scoped:!1};YKe=p3e((i,e,t,r)=>t.getAll(i,r)),XKe=Vb((i,e,t)=>()=>t.get(i)),JKe=Vb((i,e,t)=>{if(t.has(i,!0))return t.get(i)});V2.$isResolver=!0;V2.resolve=()=>{};ZKe=Vb((i,e,t)=>{let r=eH(i,e),n=new Kr(i,0,r);return t.registerResolver(i,n),r}),QKe=Vb((i,e,t)=>eH(i,e));Kr=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}}};j2=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(Yq,e)):r=new this.Type(...this.dependencies.map(Yq,e),...t),this.transformers==null?r:this.transformers.reduce(m3e,r)}registerTransformer(e){(this.transformers||(this.transformers=[])).push(e)}},g3e={$isResolver:!0,resolve(i,e){return e}};_3e=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"]),tH="__DI_LOCATE_PARENT__",z2=new Map,Lc=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(h3e,g3e),e instanceof Node&&e.addEventListener(tH,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],!!Qq(t))if(jb(t))t.register(this,a);else if(v3e(t))$c.singleton(t,t).register(this);else for(r=Object.keys(t),s=0,o=r.length;s<o;++s)n=t[r[s]],Qq(n)&&(jb(n)?n.register(this,a):this.register(n));return--this.registerDepth,this}registerResolver(e,t){qb(e);let r=this.resolvers,n=r.get(e);return n==null?r.set(e,t):n instanceof Kr&&n.strategy===4?n.state.push(t):r.set(e,new Kr(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(qb(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=Xq(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(qb(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=Xq(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){qb(e);let r=this,n=r,s;if(t){let o=ss;for(;n!=null;)s=n.resolvers.get(e),s!=null&&(o=o.concat(Jq(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 ss}else return Jq(s,n,r);return ss}getFactory(e){let t=z2.get(e);if(t===void 0){if(y3e(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.`);z2.set(e,t=new j2(e,kt.getDependencies(e)))}return t}registerFactory(e,t){z2.set(e,t)}createChild(e){return new Lc(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(_3e.has(e.name))throw new Error(`Attempted to jitRegister an intrinsic type: ${e.name}. Did you forget to add @inject(Key)`);if(jb(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}}}},q2=new WeakMap;$c=Object.freeze({instance(i,e){return new Kr(i,0,e)},singleton(i,e){return new Kr(i,1,e)},transient(i,e){return new Kr(i,2,e)},callback(i,e){return new Kr(i,3,e)},cachedCallback(i,e){return new Kr(i,3,iH(e))},aliasTo(i,e){return new Kr(e,5,i)}});Zq="(anonymous)";y3e=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}}(),Hb={}});function nH(i){return`${i.toLowerCase()}:presentation`}var Wb,Kb,Gb,Yb=b(()=>{B();
94Ub();Wb=new Map,Kb=Object.freeze({define(i,e,t){let r=nH(i);Wb.get(r)===void 0?Wb.set(r,e):Wb.set(r,!1),t.register($c.instance(r,e))},forTag(i,e){let t=nH(i),r=Wb.get(t);return r===!1?kt.findResponsibleContainer(e).get(t):r||null}}),Gb=class{constructor(e,t){this.template=e||null,this.styles=t===void 0?null:Array.isArray(t)?ri.create(t):t instanceof ri?t:ri.create([t])}applyTo(e){let t=e.$fastController;t.template===null&&(t.template=this.template),t.styles===null&&(t.styles=this.styles)}}});function Fp(i,e,t){return typeof i=="function"?i(e,t):i}var ee,U2,Pe=b(()=>{Le();B();Yb();ee=class extends xl{constructor(){super(...arguments),this._presentation=void 0}get $presentation(){return this._presentation===void 0&&(this._presentation=Kb.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 U2(this===ee?class extends ee{}:this,e,t)}};T([P],ee.prototype,"template",void 0);T([P],ee.prototype,"styles",void 0);U2=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 Gb(Fp(r.template,a,r),Fp(r.styles,a,r));a.definePresentation(l);let u=Fp(r.shadowOptions,a,r);a.shadowRootMode&&(u?n.shadowOptions||(u.mode=a.shadowRootMode):u!==null&&(u={mode:a.shadowRootMode})),a.defineElement({elementOptions:Fp(r.elementOptions,a,r),shadowOptions:u,attributes:Fp(r.attributes,a,r)})}})}}});function He(i,...e){let t=Lp.locate(i);e.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(s=>{s!=="constructor"&&Object.defineProperty(i.prototype,s,Object.getOwnPropertyDescriptor(r.prototype,s))}),Lp.locate(r).forEach(s=>t.push(s))})}var Xi=b(()=>{B()});var ls,W2=b(()=>{Le();B();Pe();Ht();Xi();ls=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")}}};T([A({attribute:"heading-level",mode:"fromView",converter:me})],ls.prototype,"headinglevel",void 0);T([A({mode:"boolean"})],ls.prototype,"expanded",void 0);T([A],ls.prototype,"id",void 0);He(ls,ht)});var sH=b(()=>{Uq();W2()});var oH,aH=b(()=>{B();oH=(i,e)=>H`
95    <template>
96        <slot ${Oe({property:"accordionItems",filter:Ir()})}></slot>
97        <slot name="item" part="item" ${Oe("accordionItems")}></slot>
98    </template>
99`});var it,lH=b(()=>{it={horizontal:"horizontal",vertical:"vertical"}});function uH(i,e){let t=i.length;for(;t--;)if(e(i[t],t,i))return t;return-1}var cH=b(()=>{});var dH=b(()=>{});function Xb(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var hH=b(()=>{});var fH=b(()=>{});var pH=b(()=>{});var mH=b(()=>{});var G2=b(()=>{hH();fH();pH();mH()});function vo(...i){return i.every(e=>e instanceof HTMLElement)}function gH(i,e){return!i||!e||!vo(i)?void 0:Array.from(i.querySelectorAll(e)).filter(r=>r.offsetParent!==null)}function x3e(){let i=document.querySelector('meta[property="csp-nonce"]');return i?i.getAttribute("content"):null}function bH(){if(typeof Pc=="boolean")return Pc;if(!Xb())return Pc=!1,Pc;let i=document.createElement("style"),e=x3e();e!==null&&i.setAttribute("nonce",e),document.head.appendChild(i);try{i.sheet.insertRule("foo:focus-visible {color:inherit}",0),Pc=!0}catch{Pc=!1}finally{document.head.removeChild(i)}return Pc}var Pc,vH=b(()=>{G2()});var K2,Y2,la,ua,X2,J2,_H=b(()=>{K2="focus",Y2="focusin",la="focusout",ua="keydown",X2="resize",J2="scroll"});var yH=b(()=>{});var xH,Dt,Er,kr,Ot,ni,cn,Ci,Ii,wH,SH,CH,dn,Cl,IH,EH,hn,kH=b(()=>{(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"})(xH||(xH={}));Dt="ArrowDown",Er="ArrowLeft",kr="ArrowRight",Ot="ArrowUp",ni="Enter",cn="Escape",Ci="Home",Ii="End",wH="F2",SH="PageDown",CH="PageUp",dn=" ",Cl="Tab",IH="Backspace",EH="Delete",hn={ArrowDown:Dt,ArrowLeft:Er,ArrowRight:kr,ArrowUp:Ot}});var je,Z2=b(()=>{(function(i){i.ltr="ltr",i.rtl="rtl"})(je||(je={}))});function TH(i,e,t){return t<i?e:t>e?i:t}function _o(i,e,t){return Math.min(Math.max(t,i),e)}function Np(i,e,t=0){return[e,t]=[e,t].sort((r,n)=>r-n),e<=i&&i<t}var AH=b(()=>{});function Ln(i=""){return`${i}${w3e++}`}var w3e,MH=b(()=>{w3e=0});var RH=b(()=>{});var ft,DH=b(()=>{G2();Z2();ft=class{static getScrollLeft(e,t){return t===je.rtl?ft.getRtlScrollLeftConverter(e):e.scrollLeft}static setScrollLeft(e,t,r){if(r===je.rtl){ft.setRtlScrollLeftConverter(e,t);return}e.scrollLeft=t}static initialGetRtlScrollConverter(e){return ft.initializeRtlScrollConverters(),ft.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){ft.initializeRtlScrollConverters(),ft.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(!Xb()){ft.applyDirectScrollConverters();return}let e=ft.getTestElement();document.body.appendChild(e),ft.checkForScrollType(e),document.body.removeChild(e)}static checkForScrollType(e){ft.isReverse(e)?ft.applyReverseScrollConverters():ft.isDirect(e)?ft.applyDirectScrollConverters():ft.applyInvertedScrollConverters()}static isReverse(e){return e.scrollLeft>0}static isDirect(e){return e.scrollLeft=-1,e.scrollLeft<0}static applyDirectScrollConverters(){ft.setRtlScrollLeftConverter=ft.directSetRtlScrollConverter,ft.getRtlScrollLeftConverter=ft.directGetRtlScrollConverter}static applyInvertedScrollConverters(){ft.setRtlScrollLeftConverter=ft.invertedSetRtlScrollConverter,ft.getRtlScrollLeftConverter=ft.invertedGetRtlScrollConverter}static applyReverseScrollConverters(){ft.setRtlScrollLeftConverter=ft.reverseSetRtlScrollConverter,ft.getRtlScrollLeftConverter=ft.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}};ft.getRtlScrollLeftConverter=ft.initialGetRtlScrollConverter;ft.setRtlScrollLeftConverter=ft.initialSetRtlScrollConverter});var D,OH=b(()=>{(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"})(D||(D={}))});var ye=b(()=>{lH();cH();dH();vH();_H();yH();kH();Z2();AH();MH();RH();DH();OH()});var LH,Fc,$H=b(()=>{Le();B();ye();Pe();W2();LH={single:"single",multi:"multi"},Fc=class extends ee{constructor(){super(...arguments),this.expandmode=LH.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 ls&&(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 Ot:e.preventDefault(),this.adjust(-1);break;case Dt:e.preventDefault(),this.adjust(1);break;case Ci:this.activeItemIndex=0,this.focusItem();break;case Ii: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===LH.single}adjust(e){this.activeItemIndex=TH(0,this.accordionItems.length-1,this.activeItemIndex+e),this.focusItem()}focusItem(){let e=this.accordionItems[this.activeItemIndex];e instanceof ls&&e.expandbutton.focus()}};T([A({attribute:"expand-mode"})],Fc.prototype,"expandmode",void 0);T([P],Fc.prototype,"accordionItems",void 0)});var PH=b(()=>{aH();$H()});var Jb,Q2=b(()=>{B();Ht();Jb=(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        ${Ae("control")}
132    >
133        ${xt(i,e)}
134        <span class="content" part="content">
135            <slot ${Oe("defaultSlottedContent")}></slot>
136        </span>
137        ${yt(i,e)}
138    </a>
139`});var at,Bp=b(()=>{Le();B();at=class{};T([A({attribute:"aria-atomic"})],at.prototype,"ariaAtomic",void 0);T([A({attribute:"aria-busy"})],at.prototype,"ariaBusy",void 0);T([A({attribute:"aria-controls"})],at.prototype,"ariaControls",void 0);T([A({attribute:"aria-current"})],at.prototype,"ariaCurrent",void 0);T([A({attribute:"aria-describedby"})],at.prototype,"ariaDescribedby",void 0);T([A({attribute:"aria-details"})],at.prototype,"ariaDetails",void 0);T([A({attribute:"aria-disabled"})],at.prototype,"ariaDisabled",void 0);T([A({attribute:"aria-errormessage"})],at.prototype,"ariaErrormessage",void 0);T([A({attribute:"aria-flowto"})],at.prototype,"ariaFlowto",void 0);T([A({attribute:"aria-haspopup"})],at.prototype,"ariaHaspopup",void 0);T([A({attribute:"aria-hidden"})],at.prototype,"ariaHidden",void 0);T([A({attribute:"aria-invalid"})],at.prototype,"ariaInvalid",void 0);T([A({attribute:"aria-keyshortcuts"})],at.prototype,"ariaKeyshortcuts",void 0);T([A({attribute:"aria-label"})],at.prototype,"ariaLabel",void 0);T([A({attribute:"aria-labelledby"})],at.prototype,"ariaLabelledby",void 0);T([A({attribute:"aria-live"})],at.prototype,"ariaLive",void 0);T([A({attribute:"aria-owns"})],at.prototype,"ariaOwns",void 0);T([A({attribute:"aria-relevant"})],at.prototype,"ariaRelevant",void 0);T([A({attribute:"aria-roledescription"})],at.prototype,"ariaRoledescription",void 0)});var Nc=b(()=>{Bp();Ht()});var cr,Bc,e3=b(()=>{Le();B();Pe();Nc();Xi();cr=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()}};T([A],cr.prototype,"download",void 0);T([A],cr.prototype,"href",void 0);T([A],cr.prototype,"hreflang",void 0);T([A],cr.prototype,"ping",void 0);T([A],cr.prototype,"referrerpolicy",void 0);T([A],cr.prototype,"rel",void 0);T([A],cr.prototype,"target",void 0);T([A],cr.prototype,"type",void 0);T([P],cr.prototype,"defaultSlottedContent",void 0);Bc=class{};T([A({attribute:"aria-expanded"})],Bc.prototype,"ariaExpanded",void 0);He(Bc,at);He(cr,ht,Bc)});var FH=b(()=>{Q2();e3()});var NH,BH=b(()=>{B();NH=(i,e)=>H`
140    <template class="${t=>t.initialLayoutComplete?"loaded":""}">
141        ${Xe(t=>t.initialLayoutComplete,H`
142                <slot></slot>
143            `)}
144    </template>
145`});var Yr,Il=b(()=>{ye();Yr=i=>{let e=i.closest("[dir]");return e!==null&&e.dir==="rtl"?je.rtl:je.ltr}});var Zb,zH=b(()=>{B();Zb=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=()=>{Fs.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 We,zp=b(()=>{Le();B();ye();Pe();Il();zH();We=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=je.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||(We.intersectionService.requestPosition(this,this.handleIntersection),We.intersectionService.requestPosition(this.anchorElement,this.handleIntersection),this.viewportElement!==null&&We.intersectionService.requestPosition(this.viewportElement,this.handleIntersection),this.pendingPositioningUpdate=!0)},this.stopObservers=()=>{this.pendingPositioningUpdate&&(this.pendingPositioningUpdate=!1,We.intersectionService.cancelRequestPosition(this,this.handleIntersection),this.anchorElement!==null&&We.intersectionService.cancelRequestPosition(this.anchorElement,this.handleIntersection),this.viewportElement!==null&&We.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=Yr(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 h=this.horizontalDefaultPosition;if(h==="start"||h==="end"){let f=Yr(this);if(f!==this.currentDirection){this.currentDirection=f,this.initialize();return}this.currentDirection===je.ltr?h=h==="start"?"left":"right":h=h==="start"?"right":"left"}switch(h){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(X2,this.update,{passive:!0}),window.addEventListener(J2,this.update,{passive:!0,capture:!0}),this.resizeDetector!==null&&this.viewportElement!==null&&this.resizeDetector.observe(this.viewportElement)},this.stopAutoUpdateEventListeners=()=>{window.removeEventListener(X2,this.update),window.removeEventListener(J2,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(),ce.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()}};We.intersectionService=new Zb;T([A],We.prototype,"anchor",void 0);T([A],We.prototype,"viewport",void 0);T([A({attribute:"horizontal-positioning-mode"})],We.prototype,"horizontalPositioningMode",void 0);T([A({attribute:"horizontal-default-position"})],We.prototype,"horizontalDefaultPosition",void 0);T([A({attribute:"horizontal-viewport-lock",mode:"boolean"})],We.prototype,"horizontalViewportLock",void 0);T([A({attribute:"horizontal-inset",mode:"boolean"})],We.prototype,"horizontalInset",void 0);T([A({attribute:"horizontal-threshold"})],We.prototype,"horizontalThreshold",void 0);T([A({attribute:"horizontal-scaling"})],We.prototype,"horizontalScaling",void 0);T([A({attribute:"vertical-positioning-mode"})],We.prototype,"verticalPositioningMode",void 0);T([A({attribute:"vertical-default-position"})],We.prototype,"verticalDefaultPosition",void 0);T([A({attribute:"vertical-viewport-lock",mode:"boolean"})],We.prototype,"verticalViewportLock",void 0);T([A({attribute:"vertical-inset",mode:"boolean"})],We.prototype,"verticalInset",void 0);T([A({attribute:"vertical-threshold"})],We.prototype,"verticalThreshold",void 0);T([A({attribute:"vertical-scaling"})],We.prototype,"verticalScaling",void 0);T([A({attribute:"fixed-placement",mode:"boolean"})],We.prototype,"fixedPlacement",void 0);T([A({attribute:"auto-update-mode"})],We.prototype,"autoUpdateMode",void 0);T([P],We.prototype,"anchorElement",void 0);T([P],We.prototype,"viewportElement",void 0);T([P],We.prototype,"initialLayoutComplete",void 0)});var t3,i3,r3,n3,qH,s3,HH,jH=b(()=>{t3={horizontalDefaultPosition:"center",horizontalPositioningMode:"locktodefault",horizontalInset:!1,horizontalScaling:"anchor"},i3=Object.assign(Object.assign({},t3),{verticalDefaultPosition:"top",verticalPositioningMode:"locktodefault",verticalInset:!1,verticalScaling:"content"}),r3=Object.assign(Object.assign({},t3),{verticalDefaultPosition:"bottom",verticalPositioningMode:"locktodefault",verticalInset:!1,verticalScaling:"content"}),n3=Object.assign(Object.assign({},t3),{verticalPositioningMode:"dynamic",verticalInset:!1,verticalScaling:"content"}),qH=Object.assign(Object.assign({},i3),{verticalScaling:"fill"}),s3=Object.assign(Object.assign({},r3),{verticalScaling:"fill"}),HH=Object.assign(Object.assign({},n3),{verticalScaling:"fill"})});var o3=b(()=>{BH();zp();jH()});var VH,UH=b(()=>{B();VH=(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 ca,WH=b(()=>{Le();B();Pe();ca=class extends ee{connectedCallback(){super.connectedCallback(),this.shape||(this.shape="circle")}};T([A],ca.prototype,"fill",void 0);T([A],ca.prototype,"color",void 0);T([A],ca.prototype,"link",void 0);T([A],ca.prototype,"shape",void 0)});var GH=b(()=>{UH();WH()});var KH,YH=b(()=>{B();KH=(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 us,XH=b(()=>{Le();B();Pe();us=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}`}}};T([A({attribute:"fill"})],us.prototype,"fill",void 0);T([A({attribute:"color"})],us.prototype,"color",void 0);T([A({mode:"boolean"})],us.prototype,"circular",void 0)});var JH=b(()=>{YH();XH()});var ZH,QH=b(()=>{B();Q2();Ht();ZH=(i,e)=>H`
169    <div role="listitem" class="listitem" part="listitem">
170        ${Xe(t=>t.href&&t.href.length>0,H`
171                ${Jb(i,e)}
172            `)}
173        ${Xe(t=>!t.href,H`
174                ${xt(i,e)}
175                <slot></slot>
176                ${yt(i,e)}
177            `)}
178        ${Xe(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 yo,a3=b(()=>{Le();B();e3();Nc();Xi();yo=class extends cr{constructor(){super(...arguments),this.separator=!0}};T([P],yo.prototype,"separator",void 0);He(yo,ht,Bc)});var ej=b(()=>{QH();a3()});var tj,ij=b(()=>{B();tj=(i,e)=>H`
185    <template role="navigation">
186        <div role="list" class="list" part="list">
187            <slot
188                ${Oe({property:"slottedBreadcrumbItems",filter:Ir()})}
189            ></slot>
190        </div>
191    </template>
192`});var uh,rj=b(()=>{Le();B();a3();Pe();uh=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 yo&&(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 yo?t?e.setAttribute("aria-current","page"):e.removeAttribute("aria-current"):r!==null&&(t?r.setAttribute("aria-current","page"):r.removeAttribute("aria-current"))}};T([P],uh.prototype,"slottedBreadcrumbItems",void 0)});var nj=b(()=>{ij();rj()});var sj,oj=b(()=>{B();Ht();sj=(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        ${Ae("control")}
229    >
230        ${xt(i,e)}
231        <span class="content" part="content">
232            <slot ${Oe("defaultSlottedContent")}></slot>
233        </span>
234        ${yt(i,e)}
235    </button>
236`});function vi(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 uj}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 ss}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),ce.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),ce.queueUpdate(()=>this.classList.toggle("required",this.required)),this.validate()}get elementInternals(){if(!uj)return null;let t=cj.get(this);return t||(t=this.attachInternals(),cj.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",aj),this.proxySlot=document.createElement("slot"),this.proxySlot.setAttribute("name",aj)),(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 ni:if(this.form instanceof HTMLFormElement){let r=this.form.querySelector("[type=submit]");r?.click()}break}}stopPropagation(t){t.stopPropagation()}};return A({mode:"boolean"})(e.prototype,"disabled"),A({mode:"fromView",attribute:"value"})(e.prototype,"initialValue"),A({attribute:"current-value"})(e.prototype,"currentValue"),A(e.prototype,"name"),A({mode:"boolean"})(e.prototype,"required"),P(e.prototype,"value"),e}function ch(i){class e extends vi(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 A({attribute:"checked",mode:"boolean"})(t.prototype,"checkedAttribute"),A({attribute:"current-checked",converter:Oc})(t.prototype,"currentChecked"),P(t.prototype,"defaultChecked"),P(t.prototype,"checked"),t}var aj,lj,uj,cj,fn=b(()=>{B();ye();aj="form-associated-proxy",lj="ElementInternals",uj=lj in window&&"setFormValue"in window[lj].prototype,cj=new WeakMap});var l3,Qb,dj=b(()=>{fn();Pe();l3=class extends ee{},Qb=class extends vi(l3){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var Xr,dh,hj=b(()=>{Le();B();Nc();Xi();dj();Xr=class extends Qb{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)})}};T([A({mode:"boolean"})],Xr.prototype,"autofocus",void 0);T([A({attribute:"form"})],Xr.prototype,"formId",void 0);T([A],Xr.prototype,"formaction",void 0);T([A],Xr.prototype,"formenctype",void 0);T([A],Xr.prototype,"formmethod",void 0);T([A({mode:"boolean"})],Xr.prototype,"formnovalidate",void 0);T([A],Xr.prototype,"formtarget",void 0);T([A],Xr.prototype,"type",void 0);T([P],Xr.prototype,"defaultSlottedContent",void 0);dh=class{};T([A({attribute:"aria-expanded"})],dh.prototype,"ariaExpanded",void 0);T([A({attribute:"aria-pressed"})],dh.prototype,"ariaPressed",void 0);He(dh,at);He(Xr,ht,dh)});var fj=b(()=>{oj();hj()});var e1,u3=b(()=>{e1=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 $n,pj=b(()=>{Le();B();ye();Pe();u3();$n=class extends ee{constructor(){super(...arguments),this.dateFormatter=new e1,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,h=`${u}-${d}-${c}`,f=this.dateInString(h,this.disabledDates),p=this.dateInString(h,this.selectedDates),g={day:d,month:u,year:c,disabled:f,selected:p},v=a[a.length-1];a.length===0||v.length%7===0?a.push([g]):v.push(g),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===ni&&this.handleDateSelect(e,t),!0}};T([A({mode:"boolean"})],$n.prototype,"readonly",void 0);T([A],$n.prototype,"locale",void 0);T([A({converter:me})],$n.prototype,"month",void 0);T([A({converter:me})],$n.prototype,"year",void 0);T([A({attribute:"day-format",mode:"fromView"})],$n.prototype,"dayFormat",void 0);T([A({attribute:"weekday-format",mode:"fromView"})],$n.prototype,"weekdayFormat",void 0);T([A({attribute:"month-format",mode:"fromView"})],$n.prototype,"monthFormat",void 0);T([A({attribute:"year-format",mode:"fromView"})],$n.prototype,"yearFormat",void 0);T([A({attribute:"min-weeks",converter:me})],$n.prototype,"minWeeks",void 0);T([A({attribute:"disabled-dates"})],$n.prototype,"disabledDates",void 0);T([A({attribute:"selected-dates"})],$n.prototype,"selectedDates",void 0)});var qp,da,zc,t1=b(()=>{qp={none:"none",default:"default",sticky:"sticky"},da={default:"default",columnHeader:"columnheader",rowHeader:"rowheader"},zc={default:"default",header:"header",stickyHeader:"sticky-header"}});var Ei,c3=b(()=>{Le();B();ye();Pe();t1();Ei=class extends ee{constructor(){super(...arguments),this.rowType=zc.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 aa(e=>e.columnDefinitions,e=>e.activeCellItemTemplate,{positioning:!0}).createBehavior(this.cellsPlaceholder),this.$fastController.addBehaviors([this.cellsRepeatBehavior])),this.addEventListener("cell-focused",this.handleCellFocus),this.addEventListener(la,this.handleFocusout),this.addEventListener(ua,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(la,this.handleFocusout),this.removeEventListener(ua,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 Er:t=Math.max(0,this.focusColumnIndex-1),this.cellElements[t].focus(),e.preventDefault();break;case kr:t=Math.min(this.cellElements.length-1,this.focusColumnIndex+1),this.cellElements[t].focus(),e.preventDefault();break;case Ci:e.ctrlKey||(this.cellElements[0].focus(),e.preventDefault());break;case Ii:e.ctrlKey||(this.cellElements[this.cellElements.length-1].focus(),e.preventDefault());break}}updateItemTemplate(){this.activeCellItemTemplate=this.rowType===zc.default&&this.cellItemTemplate!==void 0?this.cellItemTemplate:this.rowType===zc.default&&this.cellItemTemplate===void 0?this.defaultCellItemTemplate:this.headerCellItemTemplate!==void 0?this.headerCellItemTemplate:this.defaultHeaderCellItemTemplate}};T([A({attribute:"grid-template-columns"})],Ei.prototype,"gridTemplateColumns",void 0);T([A({attribute:"row-type"})],Ei.prototype,"rowType",void 0);T([P],Ei.prototype,"rowData",void 0);T([P],Ei.prototype,"columnDefinitions",void 0);T([P],Ei.prototype,"cellItemTemplate",void 0);T([P],Ei.prototype,"headerCellItemTemplate",void 0);T([P],Ei.prototype,"rowIndex",void 0);T([P],Ei.prototype,"isActiveRow",void 0);T([P],Ei.prototype,"activeCellItemTemplate",void 0);T([P],Ei.prototype,"defaultCellItemTemplate",void 0);T([P],Ei.prototype,"defaultHeaderCellItemTemplate",void 0);T([P],Ei.prototype,"cellElements",void 0)});function S3e(i){let e=i.tagFor(Ei);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 mj,gj=b(()=>{B();c3();mj=(i,e)=>{let t=S3e(i),r=i.tagFor(Ei);return H`
243        <template
244            role="grid"
245            tabindex="0"
246            :rowElementTag="${()=>r}"
247            :defaultRowItemTemplate="${t}"
248            ${Sl({property:"rowElements",filter:Ir("[role=row]")})}
249        >
250            <slot></slot>
251        </template>
252    `}});var si,bj=b(()=>{Le();B();ye();Pe();t1();si=class extends ee{constructor(){super(),this.noTabbing=!1,this.generateHeader=qp.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,ce.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=si.generateColumns(this.rowsData[0])),this.$fastController.isConnected&&this.toggleGeneratedHeader()}columnDefinitionsChanged(){if(this.columnDefinitions===null){this.generatedGridTemplateColumns="";return}this.generatedGridTemplateColumns=si.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 aa(e=>e.rowsData,e=>e.rowItemTemplate,{positioning:!0}).createBehavior(this.rowsPlaceholder),this.$fastController.addBehaviors([this.rowsRepeatBehavior]),this.addEventListener("row-focused",this.handleRowFocus),this.addEventListener(K2,this.handleFocus),this.addEventListener(ua,this.handleKeydown),this.addEventListener(la,this.handleFocusOut),this.observer=new MutationObserver(this.onChildListChange),this.observer.observe(this,{childList:!0}),this.noTabbing&&this.setAttribute("tabindex","-1"),ce.queueUpdate(this.queueRowIndexUpdate)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("row-focused",this.handleRowFocus),this.removeEventListener(K2,this.handleFocus),this.removeEventListener(ua,this.handleKeydown),this.removeEventListener(la,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 Ot:e.preventDefault(),this.focusOnCell(this.focusRowIndex-1,this.focusColumnIndex,!0);break;case Dt:e.preventDefault(),this.focusOnCell(this.focusRowIndex+1,this.focusColumnIndex,!0);break;case CH: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 SH: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===qp.sticky&&this.generatedHeader!==null&&(a=this.generatedHeader.clientHeight),this.scrollTop=o.offsetTop-a;break}}this.focusOnCell(t,this.focusColumnIndex,!1);break;case Ci:e.ctrlKey&&(e.preventDefault(),this.focusOnCell(0,0,!0));break;case Ii: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,ce.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!==qp.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===qp.sticky?zc.stickyHeader:zc.header,(this.firstChild!==null||this.rowsPlaceholder!==null)&&this.insertBefore(e,this.firstChild!==null?this.firstChild:this.rowsPlaceholder);return}}};si.generateColumns=i=>Object.getOwnPropertyNames(i).map((e,t)=>({columnDataKey:e,gridColumn:`${t}`}));T([A({attribute:"no-tabbing",mode:"boolean"})],si.prototype,"noTabbing",void 0);T([A({attribute:"generate-header"})],si.prototype,"generateHeader",void 0);T([A({attribute:"grid-template-columns"})],si.prototype,"gridTemplateColumns",void 0);T([P],si.prototype,"rowsData",void 0);T([P],si.prototype,"columnDefinitions",void 0);T([P],si.prototype,"rowItemTemplate",void 0);T([P],si.prototype,"cellItemTemplate",void 0);T([P],si.prototype,"headerCellItemTemplate",void 0);T([P],si.prototype,"focusRowIndex",void 0);T([P],si.prototype,"focusColumnIndex",void 0);T([P],si.prototype,"defaultRowItemTemplate",void 0);T([P],si.prototype,"rowElementTag",void 0);T([P],si.prototype,"rowElements",void 0)});var C3e,I3e,cs,d3=b(()=>{Le();B();ye();Pe();t1();C3e=H`
253    <template>
254        ${i=>i.rowData===null||i.columnDefinition===null||i.columnDefinition.columnDataKey===null?null:i.rowData[i.columnDefinition.columnDataKey]}
255    </template>
256`,I3e=H`
257    <template>
258        ${i=>i.columnDefinition===null?null:i.columnDefinition.title===void 0?i.columnDefinition.columnDataKey:i.columnDefinition.title}
259    </template>
260`,cs=class extends ee{constructor(){super(...arguments),this.cellType=da.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(Y2,this.handleFocusin),this.addEventListener(la,this.handleFocusout),this.addEventListener(ua,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(Y2,this.handleFocusin),this.removeEventListener(la,this.handleFocusout),this.removeEventListener(ua,this.handleKeydown),this.disconnectCellView()}handleFocusin(e){if(!this.isActiveCell){switch(this.isActiveCell=!0,this.cellType){case da.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===da.default&&this.columnDefinition.cellInternalFocusQueue!==!0||this.cellType===da.columnHeader&&this.columnDefinition.headerCellInternalFocusQueue!==!0))switch(e.key){case ni:case wH:if(this.contains(document.activeElement)&&document.activeElement!==this)return;switch(this.cellType){case da.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 cn:this.contains(document.activeElement)&&document.activeElement!==this&&(this.focus(),e.preventDefault());break}}updateCellView(){if(this.disconnectCellView(),this.columnDefinition!==null)switch(this.cellType){case da.columnHeader:this.columnDefinition.headerCellTemplate!==void 0?this.customCellView=this.columnDefinition.headerCellTemplate.render(this,this):this.customCellView=I3e.render(this,this);break;case void 0:case da.rowHeader:case da.default:this.columnDefinition.cellTemplate!==void 0?this.customCellView=this.columnDefinition.cellTemplate.render(this,this):this.customCellView=C3e.render(this,this);break}}disconnectCellView(){this.customCellView!==null&&(this.customCellView.dispose(),this.customCellView=null)}};T([A({attribute:"cell-type"})],cs.prototype,"cellType",void 0);T([A({attribute:"grid-column"})],cs.prototype,"gridColumn",void 0);T([P],cs.prototype,"rowData",void 0);T([P],cs.prototype,"columnDefinition",void 0)});function E3e(i){let e=i.tagFor(cs);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 k3e(i){let e=i.tagFor(cs);return H`
268    <${e}
269        cell-type="columnheader"
270        grid-column="${(t,r)=>r.index+1}"
271        :columnDefinition="${t=>t}"
272    ></${e}>
273`}var vj,_j=b(()=>{B();d3();vj=(i,e)=>{let t=E3e(i),r=k3e(i);return H`
274        <template
275            role="row"
276            class="${n=>n.rowType!=="default"?n.rowType:""}"
277            :defaultCellItemTemplate="${t}"
278            :defaultHeaderCellItemTemplate="${r}"
279            ${Sl({property:"cellElements",filter:Ir('[role="cell"],[role="gridcell"],[role="columnheader"],[role="rowheader"]')})}
280        >
281            <slot ${Oe("slottedCellElements")}></slot>
282        </template>
283    `}});var yj,xj=b(()=>{B();yj=(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 wj=b(()=>{gj();bj();_j();c3();xj();d3()});var GZe,Sj=b(()=>{B();GZe=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 Cj=b(()=>{pj();Sj();u3()});var Ij,Ej=b(()=>{B();Ij=(i,e)=>H`
305    <slot></slot>
306`});var Hp,kj=b(()=>{Pe();Hp=class extends ee{}});var Tj=b(()=>{Ej();kj()});var Aj=b(()=>{});var h3,i1,Mj=b(()=>{fn();Pe();h3=class extends ee{},i1=class extends ch(h3){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var El,Rj=b(()=>{Le();B();ye();Mj();El=class extends i1{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=e=>{if(!this.readOnly)switch(e.key){case dn: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)}};T([A({attribute:"readonly",mode:"boolean"})],El.prototype,"readOnly",void 0);T([P],El.prototype,"defaultSlottedNodes",void 0);T([P],El.prototype,"indeterminate",void 0)});var Dj=b(()=>{Aj();Rj()});function f3(i){return vo(i)&&(i.getAttribute("role")==="option"||i instanceof HTMLOptionElement)}var dr,kl,p3=b(()=>{Le();B();ye();Pe();Bp();Ht();Xi();dr=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),_e.notify(this,"value")}get value(){var e;return _e.track(this,"value"),(e=this._value)!==null&&e!==void 0?e:this.text}get form(){return this.proxy?this.proxy.form:null}};T([P],dr.prototype,"checked",void 0);T([P],dr.prototype,"content",void 0);T([P],dr.prototype,"defaultSelected",void 0);T([A({mode:"boolean"})],dr.prototype,"disabled",void 0);T([A({attribute:"selected",mode:"boolean"})],dr.prototype,"selectedAttribute",void 0);T([P],dr.prototype,"selected",void 0);T([A({attribute:"value",mode:"fromView"})],dr.prototype,"initialValue",void 0);kl=class{};T([P],kl.prototype,"ariaChecked",void 0);T([P],kl.prototype,"ariaPosInSet",void 0);T([P],kl.prototype,"ariaSelected",void 0);T([P],kl.prototype,"ariaSetSize",void 0);He(kl,at);He(dr,ht,kl)});var Ut,ds,Tl=b(()=>{Le();B();ye();Pe();p3();Bp();Xi();Ut=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 _e.track(this,"options"),this._options}set options(e){this._options=e,_e.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":{Ut.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,Ut.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 Ci:{e.shiftKey||(e.preventDefault(),this.selectFirstOption());break}case Dt:{e.shiftKey||(e.preventDefault(),this.selectNextOption());break}case Ot:{e.shiftKey||(e.preventDefault(),this.selectPreviousOption());break}case Ii:{e.preventDefault(),this.selectLastOption();break}case Cl:return this.focusAndScrollOptionIntoView(),!0;case ni:case cn:return!0;case dn: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(Ut.slottedOptionFilter);(r=this.options)===null||r===void 0||r.forEach(s=>{let o=_e.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=uH(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)=>(f3(s)&&n.push(s),n),[]);let r=`${this.options.length}`;this.options.forEach((n,s)=>{n.id||(n.id=Ln("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}}};Ut.slottedOptionFilter=i=>f3(i)&&!i.hidden;Ut.TYPE_AHEAD_TIMEOUT_MS=1e3;T([A({mode:"boolean"})],Ut.prototype,"disabled",void 0);T([P],Ut.prototype,"selectedIndex",void 0);T([P],Ut.prototype,"selectedOptions",void 0);T([P],Ut.prototype,"slottedOptions",void 0);T([P],Ut.prototype,"typeaheadBuffer",void 0);ds=class{};T([P],ds.prototype,"ariaActiveDescendant",void 0);T([P],ds.prototype,"ariaDisabled",void 0);T([P],ds.prototype,"ariaExpanded",void 0);T([P],ds.prototype,"ariaMultiSelectable",void 0);He(ds,at);He(Ut,ds)});var Al,r1=b(()=>{Al={above:"above",below:"below"}});var m3,n1,Oj=b(()=>{fn();Tl();m3=class extends Ut{},n1=class extends vi(m3){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var jp,g3=b(()=>{jp={inline:"inline",list:"list",both:"both",none:"none"}});var hs,hh,Lj=b(()=>{Le();B();ye();Tl();Ht();r1();Xi();Oj();g3();hs=class extends n1{constructor(){super(...arguments),this._value="",this.filteredOptions=[],this.filter="",this.forcedPosition=!1,this.listboxId=Ln("listbox-"),this.maxHeight=0,this.open=!1}formResetCallback(){super.formResetCallback(),this.setDefaultSelectedOption(),this.updateValue()}validate(){super.validate(this.control)}get isAutocompleteInline(){return this.autocomplete===jp.inline||this.isAutocompleteBoth}get isAutocompleteList(){return this.autocomplete===jp.list||this.isAutocompleteBoth}get isAutocompleteBoth(){return this.autocomplete===jp.both}
306openChanged(){if(this.open){this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),ce.queueUpdate(()=>this.focus());return}this.ariaControls="",this.ariaExpanded="false"}get options(){return _e.track(this,"options"),this.filteredOptions.length?this.filteredOptions:this._options}set options(e){this._options=e,_e.notify(this,"options")}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}positionChanged(e,t){this.positionAttribute=t,this.setPositioning()}get value(){return _e.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),_e.notify(this,"value"))}clickHandler(e){let t=e.target.closest("option,[role=option]");if(!(this.disabled||t?.disabled)){if(this.open){if(e.composedPath()[0]===this.control)return;t&&(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===jp.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=_o(-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?Al.above:Al.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Al.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)}};T([A({attribute:"autocomplete",mode:"fromView"})],hs.prototype,"autocomplete",void 0);T([P],hs.prototype,"maxHeight",void 0);T([A({attribute:"open",mode:"boolean"})],hs.prototype,"open",void 0);T([A],hs.prototype,"placeholder",void 0);T([A({attribute:"position"})],hs.prototype,"positionAttribute",void 0);T([P],hs.prototype,"position",void 0);hh=class{};T([P],hh.prototype,"ariaAutoComplete",void 0);T([P],hh.prototype,"ariaControls",void 0);He(hh,ds);He(hs,ht,hh)});var $j,Pj=b(()=>{B();Tl();Ht();$j=(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            ${xt(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                    ${Ae("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            ${yt(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            ${Ae("listbox")}
354        >
355            <slot
356                ${Oe({filter:Ut.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
357            ></slot>
358        </div>
359    </template>
360`});var Fj=b(()=>{Lj();g3();Pj()});function ha(i){let e=i.parentElement;if(e)return e;{let t=i.getRootNode();if(t.host instanceof HTMLElement)return t.host}return null}var s1=b(()=>{});function Nj(i,e){let t=e;for(;t!==null;){if(t===i)return!0;t=ha(t)}return!1}var Bj=b(()=>{s1()});function T3e(i){return i instanceof xl}var xo,Vp,v3,_3,y3,o1,x3,_i,b3,A3e,qc,w3=b(()=>{Le();B();xo=document.createElement("div");Vp=class{setProperty(e,t){ce.queueUpdate(()=>this.target.setProperty(e,t))}removeProperty(e){ce.queueUpdate(()=>this.target.removeProperty(e))}},v3=class extends Vp{constructor(e){super();let t=new CSSStyleSheet;t[Fb]=!0,this.target=t.cssRules[t.insertRule(":host{}")].style,e.$fastController.addStyles(ri.create([t]))}},_3=class extends Vp{constructor(){super();let e=new CSSStyleSheet;this.target=e.cssRules[e.insertRule(":root{}")].style,document.adoptedStyleSheets=[...document.adoptedStyleSheets,e]}},y3=class extends Vp{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}}},o1=class{constructor(e){this.store=new Map,this.target=null;let t=e.$fastController;this.style=document.createElement("style"),t.addStyles(this.style),_e.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),ce.queueUpdate(()=>{this.target!==null&&this.target.setProperty(e,t)})}removeProperty(e){this.store.delete(e),ce.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}};T([P],o1.prototype,"target",void 0);x3=class{constructor(e){this.target=e.style}setProperty(e,t){ce.queueUpdate(()=>this.target.setProperty(e,t))}removeProperty(e){ce.queueUpdate(()=>this.target.removeProperty(e))}},_i=class{setProperty(e,t){_i.properties[e]=t;for(let r of _i.roots.values())qc.getOrCreate(_i.normalizeRoot(r)).setProperty(e,t)}removeProperty(e){delete _i.properties[e];for(let t of _i.roots.values())qc.getOrCreate(_i.normalizeRoot(t)).removeProperty(e)}static registerRoot(e){let{roots:t}=_i;if(!t.has(e)){t.add(e);let r=qc.getOrCreate(this.normalizeRoot(e));for(let n in _i.properties)r.setProperty(n,_i.properties[n])}}static unregisterRoot(e){let{roots:t}=_i;if(t.has(e)){t.delete(e);let r=qc.getOrCreate(_i.normalizeRoot(e));for(let n in _i.properties)r.removeProperty(n)}}static normalizeRoot(e){return e===xo?document:e}};_i.roots=new Set;_i.properties={};b3=new WeakMap,A3e=ce.supportsAdoptedStyleSheets?v3:o1,qc=Object.freeze({getOrCreate(i){if(b3.has(i))return b3.get(i);let e;return i===xo?e=new _i:i instanceof Document?e=ce.supportsAdoptedStyleSheets?new _3:new y3:T3e(i)?e=new A3e(i):e=new x3(i),b3.set(i,e),e}})});function M3e(i){return hr.from(i)}var hr,S3,C3,I3,Up,Wp,Jt,Pn,E3=b(()=>{Le();B();s1();Bj();w3();w3();hr=class extends wl{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=hr.uniqueId(),hr.tokensById.set(this.id,this)}get appliedTo(){return[...this._appliedTo]}static from(e){return new hr({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 hr.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=Jt.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 hr&&(t=this.alias(t)),Jt.getOrCreate(e).set(this,t),this}deleteValueFor(e){return this._appliedTo.delete(e),Jt.existsFor(e)&&Jt.getOrCreate(e).delete(this),this}withDefault(e){return this.setValueFor(xo,e),this}subscribe(e,t){let r=this.getOrCreateSubscriberSet(t);t&&!Jt.existsFor(t)&&Jt.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)}};hr.uniqueId=(()=>{let i=0;return()=>(i++,i.toString(16))})();hr.tokensById=new Map;S3=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){qc.getOrCreate(t).setProperty(e.cssCustomProperty,this.resolveCSSValue(Jt.getOrCreate(t).get(e)))}remove(e,t){qc.getOrCreate(t).removeProperty(e.cssCustomProperty)}resolveCSSValue(e){return e&&typeof e.createCSS=="function"?e.createCSS():e}},C3=class{constructor(e,t,r){this.source=e,this.token=t,this.node=r,this.dependencies=new Set,this.observer=_e.binding(e,this,!1),this.observer.handleChange=this.observer.call,this.handleChange()}disconnect(){this.observer.disconnect()}handleChange(){try{this.node.store.set(this.token,this.observer.observe(this.node.target,bl))}catch(e){console.error(e)}}},I3=class{constructor(){this.values=new Map}set(e,t){this.values.get(e)!==t&&(this.values.set(e,t),_e.getNotifier(this).notify(e.id))}get(e){return _e.track(this,e.id),this.values.get(e)}delete(e){this.values.delete(e),_e.getNotifier(this).notify(e.id)}all(){return this.values.entries()}},Up=new WeakMap,Wp=new WeakMap,Jt=class{constructor(e){this.target=e,this.store=new I3,this.children=[],this.assignedValues=new Map,this.reflecting=new Set,this.bindingObservers=new Map,this.tokenValueChangeHandler={handleChange:(t,r)=>{let n=hr.getTokenById(r);n&&(n.notify(this.target),this.updateCSSTokenReflection(t,n))}},Up.set(e,this),_e.getNotifier(this.store).subscribe(this.tokenValueChangeHandler),e instanceof xl?e.$fastController.addBehaviors([this]):e.isConnected&&this.bind()}static getOrCreate(e){return Up.get(e)||new Jt(e)}static existsFor(e){return Up.has(e)}static findParent(e){if(xo!==e.target){let t=ha(e.target);for(;t!==null;){if(Up.has(t))return Up.get(t);t=ha(t)}return Jt.getOrCreate(xo)}return null}static findClosestAssignedNode(e,t){let r=t;do{if(r.has(e))return r;r=r.parent?r.parent:r.target!==xo?Jt.getOrCreate(xo):null}while(r!==null);return null}get parent(){return Wp.get(this)||null}updateCSSTokenReflection(e,t){if(hr.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=Jt.findClosestAssignedNode(e,this))===null||t===void 0?void 0:t.getRaw(e)}set(e,t){hr.isDerivedDesignTokenValue(this.assignedValues.get(e))&&this.tearDownBindingObserver(e),this.assignedValues.set(e,t),hr.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=Jt.findParent(this);e&&e.appendChild(this);for(let t of this.assignedValues.keys())t.notify(this.target)}unbind(){this.parent&&Wp.get(this).removeChild(this);for(let e of this.bindingObservers.keys())this.tearDownBindingObserver(e)}appendChild(e){e.parent&&Wp.get(e).removeChild(e);let t=this.children.filter(r=>e.contains(r));Wp.set(e,this),this.children.push(e),t.forEach(r=>e.appendChild(r)),_e.getNotifier(this.store).subscribe(e);for(let[r,n]of this.store.all())e.hydrate(r,this.bindingObservers.has(r)?this.getRaw(r):n),e.updateCSSTokenReflection(e.store,r)}removeChild(e){let t=this.children.indexOf(e);if(t!==-1&&this.children.splice(t,1),_e.getNotifier(this.store).unsubscribe(e),e.parent!==this)return!1;let r=Wp.delete(e);for(let[n]of this.store.all())e.hydrate(n,e.getRaw(n)),e.updateCSSTokenReflection(e.store,n);return r}contains(e){return Nj(this.target,e.target)}reflectToCSS(e){this.isReflecting(e)||(this.reflecting.add(e),Jt.cssCustomPropertyReflector.startReflection(e,this.target))}stopReflectToCSS(e){this.isReflecting(e)&&(this.reflecting.delete(e),Jt.cssCustomPropertyReflector.stopReflection(e,this.target))}isReflecting(e){return this.reflecting.has(e)}handleChange(e,t){let r=hr.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);hr.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 C3(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}};Jt.cssCustomPropertyReflector=new S3;T([P],Jt.prototype,"children",void 0);Pn=Object.freeze({create:M3e,notifyConnection(i){return!i.isConnected||!Jt.existsFor(i)?!1:(Jt.getOrCreate(i).bind(),!0)},notifyDisconnection(i){return i.isConnected||!Jt.existsFor(i)?!1:(Jt.getOrCreate(i).unbind(),!0)},registerRoot(i=xo){_i.registerRoot(i)},unregisterRoot(i=xo){_i.unregisterRoot(i)}})});function R3e(i,e,t){return typeof i=="string"?{name:i,type:e,callback:t}:i}var k3,T3,a1,fh,Gp,M3,l1,A3,zj=b(()=>{B();Pe();Ub();E3();Yb();k3=Object.freeze({definitionCallbackOnly:null,ignoreDuplicate:Symbol()}),T3=new Map,a1=new Map,fh=null,Gp=kt.createInterface(i=>i.cachedCallback(e=>(fh===null&&(fh=new l1(null,e)),fh))),M3=Object.freeze({tagFor(i){return a1.get(i)},responsibleFor(i){let e=i.$$designSystem$$;return e||kt.findResponsibleContainer(i).get(Gp)},getOrCreate(i){if(!i)return fh===null&&(fh=kt.getOrCreateDOMContainer().get(Gp)),fh;let e=i.$$designSystem$$;if(e)return e;let t=kt.getOrCreateDOMContainer(i);if(t.has(Gp,!1))return t.get(Gp);{let r=new l1(i,t);return t.register($c.instance(Gp,r)),r}}});l1=class{constructor(e,t){this.owner=e,this.container=t,this.designTokensInitialized=!1,this.prefix="fast",this.shadowRootMode=void 0,this.disambiguate=()=>k3.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=R3e(a,l,u),{name:d,callback:h,baseClass:f}=c,{type:p}=c,g=d,v=T3.get(g),_=!0;for(;v;){let x=n(g,p,v);switch(x){case k3.ignoreDuplicate:return;case k3.definitionCallbackOnly:_=!1,v=void 0;break;default:g=x,v=T3.get(g);break}}_&&((a1.has(p)||p===ee)&&(p=class extends p{}),T3.set(g,p),a1.set(p,g),f&&a1.set(f,g)),r.push(new A3(t,g,p,s,h,_))}};this.designTokensInitialized||(this.designTokensInitialized=!0,this.designTokenRoot!==null&&Pn.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}},A3=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){Kb.define(this.name,e,this.container)}defineElement(e){this.definition=new bo(this.type,Object.assign(Object.assign({},e),{name:this.name}))}tagFor(e){return M3.tagFor(e)}}});var qj=b(()=>{});var Hj=b(()=>{zj();Yb();qj()});var jj=b(()=>{Ub()});var Vj,Uj=b(()=>{B();Vj=(i,e)=>H`
361    <div class="positioning-region" part="positioning-region">
362        ${Xe(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            ${Ae("dialog")}
380        >
381            <slot></slot>
382        </div>
383    </div>
384`});var Gj,D3e,Kj,Kp,R3,O3e,Yj,L3e,$3e,P3e,F3e,N3e,B3e,Wj,z3e,q3e,Xj,H3e,D3,j3e,ph,u1=b(()=>{Gj=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],D3e=Gj.join(","),Kj=typeof Element>"u",Kp=Kj?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,R3=!Kj&&Element.prototype.getRootNode?function(i){return i.getRootNode()}:function(i){return i.ownerDocument},O3e=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},Yj=function(e){return e.tagName==="INPUT"},L3e=function(e){return Yj(e)&&e.type==="hidden"},$3e=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},P3e=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},F3e=function(e){if(!e.name)return!0;var t=e.form||R3(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=P3e(n,e.form);return!s||s===e},N3e=function(e){return Yj(e)&&e.type==="radio"},B3e=function(e){return N3e(e)&&!F3e(e)},Wj=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return r===0&&n===0},z3e=function(e,t){var r=t.displayCheck,n=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var s=Kp.call(e,"details>summary:first-of-type"),o=s?e.parentElement:e;if(Kp.call(o,"details:not([open]) *"))return!0;var a=R3(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=R3(e);if(c&&!c.shadowRoot&&n(c)===!0)return Wj(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 Wj(e);return!1}
384,q3e=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 Kp.call(t,"fieldset[disabled] *")?!0:!n.contains(e)}return!0}t=t.parentElement}return!1},Xj=function(e,t){return!(t.disabled||L3e(t)||z3e(t,e)||$3e(t)||q3e(t))},H3e=function(e,t){return!(B3e(t)||O3e(t)<0||!Xj(e,t))},D3=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Kp.call(e,D3e)===!1?!1:H3e(t,e)},j3e=Gj.concat("iframe").join(","),ph=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Kp.call(e,j3e)===!1?!1:Xj(t,e)}});var Tr,Jj=b(()=>{Le();B();ye();u1();Pe();Tr=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 cn:this.dismiss(),e.preventDefault();break;case Cl: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 Tr.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),ce.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=_e.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:D3(t)||Tr.isFocusableFastElement(t)&&Tr.hasTabbableShadow(t)?(e.push(t),e):t.childElementCount?e.concat(Array.from(t.children).reduce(Tr.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=>D3(n))}};T([A({mode:"boolean"})],Tr.prototype,"modal",void 0);T([A({mode:"boolean"})],Tr.prototype,"hidden",void 0);T([A({attribute:"trap-focus",mode:"boolean"})],Tr.prototype,"trapFocus",void 0);T([A({attribute:"aria-describedby"})],Tr.prototype,"ariaDescribedby",void 0);T([A({attribute:"aria-labelledby"})],Tr.prototype,"ariaLabelledby",void 0);T([A({attribute:"aria-label"})],Tr.prototype,"ariaLabel",void 0)});var Zj=b(()=>{Uj();Jj()});var Qj,eV=b(()=>{B();Qj=(i,e)=>H`
385    <details class="disclosure" ${Ae("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 Hc,tV=b(()=>{Le();B();Pe();Hc=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")}};T([A({mode:"boolean"})],Hc.prototype,"expanded",void 0);T([A],Hc.prototype,"title",void 0)});var iV=b(()=>{eV();tV()});var rV,nV=b(()=>{B();rV=(i,e)=>H`
399    <template role="${t=>t.role}" aria-orientation="${t=>t.orientation}"></template>
400`});var sV,oV=b(()=>{sV={separator:"separator",presentation:"presentation"}});var jc,aV=b(()=>{Le();B();ye();Pe();oV();jc=class extends ee{constructor(){super(...arguments),this.role=sV.separator,this.orientation=it.horizontal}};T([A],jc.prototype,"role",void 0);T([A],jc.prototype,"orientation",void 0)});var lV=b(()=>{nV();aV()});var uV,cV=b(()=>{uV={next:"next",previous:"previous"}});var dV=b(()=>{});var Yp,hV=b(()=>{Le();B();Pe();cV();Yp=class extends ee{constructor(){super(...arguments),this.hiddenFromAT=!0,this.direction=uV.next}keyupHandler(e){if(!this.hiddenFromAT){let t=e.key;(t==="Enter"||t==="Space")&&this.$emit("click",e),t==="Escape"&&this.blur()}}};T([A({mode:"boolean"})],Yp.prototype,"disabled",void 0);T([A({attribute:"aria-hidden",converter:Oc})],Yp.prototype,"hiddenFromAT",void 0);T([A],Yp.prototype,"direction",void 0)});var fV=b(()=>{dV();hV()});var pV=b(()=>{fn()});var mV=b(()=>{Pe()});var gV,bV=b(()=>{B();Ht();gV=(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        ${xt(i,e)}
411        <span class="content" part="content">
412            <slot ${Oe("content")}></slot>
413        </span>
414        ${yt(i,e)}
415    </template>
416`});var vV=b(()=>{p3();bV()});var pn,c1=b(()=>{Le();B();ye();Tl();pn=class extends Ut{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=Np(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=Np(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=Np(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=Np(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 Ci:{this.checkFirstOption(r);return}case Dt:{this.checkNextOption(r);return}case Ot:{this.checkPreviousOption(r);return}case Ii:{this.checkLastOption(r);return}case Cl:return this.focusAndScrollOptionIntoView(),!0;case cn:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case dn: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&&ce.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)}};T([P],pn.prototype,"activeIndex",void 0);T([A({mode:"boolean"})],pn.prototype,"multiple",void 0);T([A({converter:me})],pn.prototype,"size",void 0)});var _V,yV=b(()=>{B();c1();_V=(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            ${Oe({filter:pn.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
430        ></slot>
431    </template>
432`});var xV=b(()=>{Tl();c1();yV()});var Ns,O3=b(()=>{Le();ye();B();Pe();Ns=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||Ln("option-"),this.optionElements.push(t))})}};T([P],Ns.prototype,"menuElements",void 0);T([P],Ns.prototype,"headerElements",void 0);T([P],Ns.prototype,"footerElements",void 0);T([P],Ns.prototype,"suggestionsAvailableText",void 0)});var V3e,Bs,d1=b(()=>{Le();B();Pe();V3e=H`
433    <template>
434        ${i=>i.value}
435    </template>
436`,Bs=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:V3e.render(this,this)}disconnectView(){var e;(e=this.customView)===null||e===void 0||e.dispose(),this.customView=void 0}};T([A({attribute:"value"})],Bs.prototype,"value",void 0);T([P],Bs.prototype,"contentsTemplate",void 0)});var Ml,L3=b(()=>{Pe();Ml=class extends ee{}});var U3e,zs,h1=b(()=>{Le();B();ye();Pe();U3e=H`
437    <template>
438        ${i=>i.value}
439    </template>
440`,zs=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===ni?(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:U3e.render(this,this)}disconnectView(){var e;(e=this.customView)===null||e===void 0||e.dispose(),this.customView=void 0}};T([A({attribute:"value"})],zs.prototype,"value",void 0);T([P],zs.prototype,"contentsTemplate",void 0)});function W3e(i){let e=i.tagFor(zs);return H`
441    <${e}
442        value="${t=>t}"
443        :contentsTemplate="${(t,r)=>r.parent.listItemContentsTemplate}"
444    >
445    </${e}>
446    `}function G3e(i){let e=i.tagFor(Bs);return H`
447    <${e}
448        value="${t=>t}"
449        :contentsTemplate="${(t,r)=>r.parent.menuOptionContentsTemplate}"
450    >
451    </${e}>
452    `}var wV,SV=b(()=>{B();zp();O3();d1();L3();h1();wV=(i,e)=>{let t=i.tagFor(We),r=i.tagFor(Ns),n=i.tagFor(Ml),s=i.tagFor(Ml),o=W3e(i),a=G3e(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            ${Xe(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                    ${Ae("region")}
484                >
485                    ${Xe(l=>!l.showNoOptions&&!l.showLoading,H`
486                            <slot name="menu-region"></slot>
487                        `)}
488                    ${Xe(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                    ${Xe(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 $3,f1,CV=b(()=>{fn();Pe();$3=class extends ee{},f1=class extends vi($3){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var K3e,rt,IV=b(()=>{Le();B();ye();o3();d1();h1();CV();K3e=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        ${Ae("inputElement")}
522    ></input>
523`,rt=class extends f1{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){ce.queueUpdate(this.setRegionProps);return}this.region.anchorElement=this.inputElement}},this.configLookup={top:i3,bottom:r3,tallest:n3,"top-fill":qH,"bottom-fill":s3,"tallest-fill":HH}}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&&ce.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?(ce.queueUpdate(this.setRegionProps),this.$emit("menuopening",{bubbles:!1})):this.$emit("menuclosing",{bubbles:!1})}showNoOptionsChanged(){this.$fastController.isConnected&&ce.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=K3e.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=Ln("listbox-")),this.menuId=this.menuElement.id,this.optionsPlaceholder=document.createComment(""),this.menuElement.append(this.optionsPlaceholder),this.updateMenuConfig(),ce.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 aa(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 aa(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,ce.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 Dt:{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 Ot:{if(!this.flyoutOpen)this.toggleFlyout(!0);else{let t=this.flyoutOpen?Math.max(this.menuFocusIndex-1,0):0;this.setFocusedOption(t)}return!1}case cn:return this.toggleFlyout(!1),!1;case ni:return this.menuFocusIndex!==-1&&this.menuElement.optionElements.length>this.menuFocusIndex&&this.menuElement.optionElements[this.menuFocusIndex].click(),!1;case kr:return document.activeElement!==this.inputElement?(this.incrementFocusedItem(1),!1):!0;case Er:return this.inputElement.selectionStart===0?(this.incrementFocusedItem(-1),!1):!0;case EH:case IH:{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(),ce.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(),ce.queueUpdate(()=>{this.checkMaxItems()}),this.$emit("selectionchange",{bubbles:!1}))}handleRegionLoaded(e){ce.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 zs){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(),ce.queueUpdate(()=>this.incrementFocusedItem(0))}return!1}return!0}handleOptionInvoke(e){return e.defaultPrevented?!1:e.target instanceof Bs?(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=s3),this.menuConfig=Object.assign(Object.assign({},e),{autoUpdateMode:"auto",fixedPlacement:!0,horizontalViewportLock:!1,verticalViewportLock:!1})}};T([A({attribute:"selection"})],rt.prototype,"selection",void 0);T([A({attribute:"options"})],rt.prototype,"options",void 0);T([A({attribute:"filter-selected",mode:"boolean"})],rt.prototype,"filterSelected",void 0);T([A({attribute:"filter-query",mode:"boolean"})],rt.prototype,"filterQuery",void 0);T([A({attribute:"max-selected"})],rt.prototype,"maxSelected",void 0);T([A({attribute:"no-suggestions-text"})],rt.prototype,"noSuggestionsText",void 0);T([A({attribute:"suggestions-available-text"})],rt.prototype,"suggestionsAvailableText",void 0);T([A({attribute:"loading-text"})],rt.prototype,"loadingText",void 0);T([A({attribute:"label"})],rt.prototype,"label",void 0);T([A({attribute:"labelledby"})],rt.prototype,"labelledBy",void 0);T([A({attribute:"placeholder"})],rt.prototype,"placeholder",void 0);T([A({attribute:"menu-placement"})],rt.prototype,"menuPlacement",void 0);T([P],rt.prototype,"showLoading",void 0);T([P],rt.prototype,"listItemTemplate",void 0);T([P],rt.prototype,"defaultListItemTemplate",void 0);T([P],rt.prototype,"activeListItemTemplate",void 0);T([P],rt.prototype,"menuOptionTemplate",void 0);T([P],rt.prototype,"defaultMenuOptionTemplate",void 0);T([P],rt.prototype,"activeMenuOptionTemplate",void 0);T([P],rt.prototype,"listItemContentsTemplate",void 0);T([P],rt.prototype,"menuOptionContentsTemplate",void 0);T([P],rt.prototype,"optionsList",void 0);T([P],rt.prototype,"query",void 0);T([P],rt.prototype,"filteredOptionsList",void 0);T([P],rt.prototype,"flyoutOpen",void 0);T([P],rt.prototype,"menuId",void 0);T([P],rt.prototype,"selectedListTag",void 0);T([P],rt.prototype,"menuTag",void 0);T([P],rt.prototype,"menuFocusIndex",void 0);T([P],rt.prototype,"menuFocusOptionId",void 0);T([P],rt.prototype,"showNoOptions",void 0);T([P],rt.prototype,"menuConfig",void 0);T([P],rt.prototype,"selectedItems",void 0)});var EV,kV=b(()=>{B();EV=(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" ${Oe("headerElements")}></slot>
528                </div>
529
530                <slot ${Oe("menuElements")}></slot>
531                <div class="footer-region" part="footer-region">
532                    <slot name="footer-region" ${Oe("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 TV,AV=b(()=>{B();TV=(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 MV,RV=b(()=>{B();MV=(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 DV,OV=b(()=>{B();DV=(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 LV=b(()=>{SV();IV();kV();O3();AV();d1();RV();L3();OV();h1()});var Ji,P3,$V=b(()=>{Ji={menuitem:"menuitem",menuitemcheckbox:"menuitemcheckbox",menuitemradio:"menuitemradio"},P3={[Ji.menuitem]:"menuitem",[Ji.menuitemcheckbox]:"menuitemcheckbox",[Ji.menuitemradio]:"menuitemradio"}});var fr,F3=b(()=>{Le();B();ye();Pe();Ht();Il();Xi();$V();fr=class extends ee{constructor(){super(...arguments),this.role=Ji.menuitem,this.hasSubmenu=!1,this.currentDirection=je.ltr,this.focusSubmenuOnLoad=!1,this.handleMenuItemKeyDown=e=>{if(e.defaultPrevented)return!1;switch(e.key){case ni:case dn:return this.invoke(),!1;case kr:return this.expandAndFocus(),!1;case Er: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 Ji.menuitemcheckbox:this.checked=!this.checked;break;case Ji.menuitem:this.updateSubmenu(),this.hasSubmenu?this.expandAndFocus():this.$emit("change");break;case Ji.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=Yr(this),this.$emit("expanded-change",this,{bubbles:!1})}}checkedChanged(e,t){this.$fastController.isConnected&&this.$emit("change")}connectedCallback(){super.connectedCallback(),ce.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"))}};T([A({mode:"boolean"})],fr.prototype,"disabled",void 0);T([A({mode:"boolean"})],fr.prototype,"expanded",void 0);T([P],fr.prototype,"startColumnCount",void 0);T([A],fr.prototype,"role",void 0);T([A({mode:"boolean"})],fr.prototype,"checked",void 0);T([P],fr.prototype,"submenuRegion",void 0);T([P],fr.prototype,"hasSubmenu",void 0);T([P],fr.prototype,"currentDirection",void 0);T([P],fr.prototype,"submenu",void 0);He(fr,ht)});var PV,FV=b(()=>{B();zp();Ht();F3();PV=(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!==Ji.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            ${Xe(t=>t.role===Ji.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            ${Xe(t=>t.role===Ji.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        ${xt(i,e)}
599        <span class="content" part="content">
600            <slot></slot>
601        </span>
602        ${yt(i,e)}
603        ${Xe(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        ${Xe(t=>t.expanded,H`
616                <${i.tagFor(We)}
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                    ${Ae("submenuRegion")}
627                    part="submenu-region"
628                >
629                    <slot name="submenu"></slot>
630                </${i.tagFor(We)}>
631            `)}
632    </template>
633`});var N3=b(()=>{FV();F3()});var NV,BV=b(()=>{B();NV=(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 ${Oe("items")}></slot>
641    </template>
642`});var fa,zV=b(()=>{Le();B();ye();N3();Pe();fa=class extends ee{constructor(){super(...arguments),this.expandedItem=null,this.focusIndex=-1,this.isNestedMenu=()=>this.parentElement!==null&&vo(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!==Ji.menuitem&&a===null||o===Ji.menuitem&&a!==null?1:o!==Ji.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 fr||"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===Ji.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===Ji.menuitemradio&&(o.checked=!1),a==="separator")break}}},this.isMenuItemElement=e=>vo(e)&&fa.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(),ce.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 Dt:this.setFocus(this.focusIndex+1,1);return;case Ot:this.setFocus(this.focusIndex-1,-1);return;case Ii:this.setFocus(this.menuItems.length-1,-1);return;case Ci: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}}};fa.focusableElementRoles=P3;T([P],fa.prototype,"items",void 0)});var qV=b(()=>{BV();zV()});var HV,jV=b(()=>{B();Ht();HV=(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 ${Oe("defaultSlottedNodes")}></slot>
650        </label>
651        <div class="root" part="root">
652            ${xt(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                ${Ae("control")}
695            />
696            ${Xe(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            ${yt(i,e)}
715        </div>
716    </template>
717`});var B3,p1,VV=b(()=>{fn();Pe();B3=class extends ee{},p1=class extends vi(B3){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var UV,WV=b(()=>{UV={email:"email",password:"password",tel:"tel",text:"text",url:"url"}});var pr,wo,m1=b(()=>{Le();B();Nc();Xi();VV();WV();pr=class extends p1{constructor(){super(...arguments),this.type=UV.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&&ce.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)}};T([A({attribute:"readonly",mode:"boolean"})],pr.prototype,"readOnly",void 0);T([A({mode:"boolean"})],pr.prototype,"autofocus",void 0);T([A],pr.prototype,"placeholder",void 0);T([A],pr.prototype,"type",void 0);T([A],pr.prototype,"list",void 0);T([A({converter:me})],pr.prototype,"maxlength",void 0);T([A({converter:me})],pr.prototype,"minlength",void 0);T([A],pr.prototype,"pattern",void 0);T([A({converter:me})],pr.prototype,"size",void 0);T([A({mode:"boolean"})],pr.prototype,"spellcheck",void 0);T([P],pr.prototype,"defaultSlottedNodes",void 0);wo=class{};He(wo,at);He(pr,ht,wo)});var z3,g1,GV=b(()=>{fn();Pe();z3=class extends ee{},g1=class extends vi(z3){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var Zi,KV=b(()=>{Le();B();ye();Ht();Xi();m1();GV();Zi=class extends g1{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&&ce.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 Ot:return this.stepUp(),!1;case Dt:return this.stepDown(),!1}return!0}handleBlur(){this.control.value=this.value}};T([A({attribute:"readonly",mode:"boolean"})],Zi.prototype,"readOnly",void 0);T([A({mode:"boolean"})],Zi.prototype,"autofocus",void 0);T([A({attribute:"hide-step",mode:"boolean"})],Zi.prototype,"hideStep",void 0);T([A],Zi.prototype,"placeholder",void 0);T([A],Zi.prototype,"list",void 0);T([A({converter:me})],Zi.prototype,"maxlength",void 0);T([A({converter:me})],Zi.prototype,"minlength",void 0);T([A({converter:me})],Zi.prototype,"size",void 0);T([A({converter:me})],Zi.prototype,"step",void 0);T([A({converter:me})],Zi.prototype,"max",void 0);T([A({converter:me})],Zi.prototype,"min",void 0);T([P],Zi.prototype,"defaultSlottedNodes",void 0);He(Zi,ht,wo)});var YV=b(()=>{jV();KV()});var XV,JV,ZV=b(()=>{B();XV=44,JV=(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        ${Xe(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=>XV*t.percentComplete/100}px ${XV}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 QV=b(()=>{ZV()});var Fn,eU=b(()=>{Le();B();Pe();Fn=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)}};T([A({converter:me})],Fn.prototype,"value",void 0);T([A({converter:me})],Fn.prototype,"min",void 0);T([A({converter:me})],Fn.prototype,"max",void 0);T([A({mode:"boolean"})],Fn.prototype,"paused",void 0);T([P],Fn.prototype,"percentComplete",void 0)});var tU,iU=b(()=>{B();tU=(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        ${Xe(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 rU=b(()=>{eU();iU()});var nU,sU=b(()=>{B();ye();nU=(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===it.horizontal?"horizontal":"vertical"}"
791            part="positioning-region"
792        >
793            <slot
794                ${Oe({property:"slottedRadioButtons",filter:Ir("[role=radio]")})}
795            ></slot>
796        </div>
797    </template>
798`});var fs,oU=b(()=>{Le();B();ye();Il();Pe();fs=class extends ee{constructor(){super(...arguments),this.orientation=it.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===kr,this.shouldMoveOffGroupToTheLeft=(e,t)=>(this.focusedRadio?e.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&t===Er,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 hn&&this.isInsideFoundationToolbar)return!0;switch(t){case ni:{this.checkFocusedRadio();break}case kr:case Dt:{this.direction===je.ltr?this.moveRight(e):this.moveLeft(e);break}case Er:case Ot:{this.direction===je.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=Yr(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]}}};T([A({attribute:"readonly",mode:"boolean"})],fs.prototype,"readOnly",void 0);T([A({attribute:"disabled",mode:"boolean"})],fs.prototype,"disabled",void 0);T([A],fs.prototype,"name",void 0);T([A],fs.prototype,"value",void 0);T([A],fs.prototype,"orientation",void 0);T([P],fs.prototype,"childItems",void 0);T([P],fs.prototype,"slottedRadioButtons",void 0)});var aU=b(()=>{sU();oU()});var lU=b(()=>{});var q3,b1,uU=b(()=>{fn();Pe();q3=class extends ee{},b1=class extends ch(q3){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var Rl,cU=b(()=>{Le();B();ye();uU();Rl=class extends b1{constructor(){super(),this.initialValue="on",this.keypressHandler=e=>{switch(e.key){case dn:!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)}};T([A({attribute:"readonly",mode:"boolean"})],Rl.prototype,"readOnly",void 0);T([P],Rl.prototype,"name",void 0);T([P],Rl.prototype,"defaultSlottedNodes",void 0)});var dU=b(()=>{lU();cU()});var pa,hU=b(()=>{Le();B();Pe();pa=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&&ce.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),h=Math.round(d+c);return this.isRtl?-h:(s=h,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(),h=c+d,f=l+t>c;if(f||l+u-r<h){let g=(n=[...o].sort((v,_)=>f?_-v:v-_).find(v=>f?v+t<c:v+u-(r??0)>h))!==null&&n!==void 0?n:0;this.scrollToPosition(g)}}}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)}};T([A({converter:me})],pa.prototype,"speed",void 0);T([A],pa.prototype,"duration",void 0);T([A],pa.prototype,"easing",void 0);T([A({attribute:"flippers-hidden-from-at",converter:Oc})],pa.prototype,"flippersHiddenFromAT",void 0);T([P],pa.prototype,"scrolling",void 0);T([P],pa.prototype,"scrollItems",void 0);T([A({attribute:"view"})],pa.prototype,"view",void 0)});var fU=b(()=>{});var pU=b(()=>{hU();fU()});function mh(i,e,t){return i.nodeType!==Node.TEXT_NODE?!0:typeof i.nodeValue=="string"&&!!i.nodeValue.trim().length}var v1=b(()=>{});var mU,gU=b(()=>{B();Ht();v1();mU=(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                ${Oe({property:"defaultSlottedNodes",filter:mh})}
811            ></slot>
812        </label>
813        <div class="root" part="root" ${Ae("root")}>
814            ${xt(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                    ${Ae("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            ${yt(i,e)}
879        </div>
880    </template>
881`});var H3,_1,bU=b(()=>{fn();Pe();H3=class extends ee{},_1=class extends vi(H3){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var Ar,y1,vU=b(()=>{Le();B();Nc();Xi();bU();Ar=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&&ce.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")}};T([A({attribute:"readonly",mode:"boolean"})],Ar.prototype,"readOnly",void 0);T([A({mode:"boolean"})],Ar.prototype,"autofocus",void 0);T([A],Ar.prototype,"placeholder",void 0);T([A],Ar.prototype,"list",void 0);T([A({converter:me})],Ar.prototype,"maxlength",void 0);T([A({converter:me})],Ar.prototype,"minlength",void 0);T([A],Ar.prototype,"pattern",void 0);T([A({converter:me})],Ar.prototype,"size",void 0);T([A({mode:"boolean"})],Ar.prototype,"spellcheck",void 0);T([P],Ar.prototype,"defaultSlottedNodes",void 0);y1=class{};He(y1,at);He(Ar,ht,y1)});var _U=b(()=>{gU();vU()});var j3,x1,yU=b(()=>{c1();fn();j3=class extends pn{},x1=class extends vi(j3){constructor(){super(...arguments),this.proxy=document.createElement("select")}}});var mn,Xp,xU=b(()=>{Le();B();ye();Tl();Ht();Xi();yU();r1();mn=class extends x1{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=Ln("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,ce.queueUpdate(()=>this.focus());return}this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||typeof this.size=="number")}get value(){return _e.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(f=>f.value===e),d=(n=(r=this._options[this.selectedIndex])===null||r===void 0?void 0:r.value)!==null&&n!==void 0?n:null,h=(o=(s=this._options[c])===null||s===void 0?void 0:s.value)!==null&&o!==void 0?o:null;(c===-1||d!==h)&&(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),_e.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?Al.above:Al.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===Al.above?~~e.top:~~r}get displayValue(){var e,t;return _e.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=>{_e.getNotifier(r).unsubscribe(this,"value")}),super.slottedOptionsChanged(e,t),this.options.forEach(r=>{_e.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(Ut.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 dn:{e.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break}case Ci:case Ii:{e.preventDefault();break}case ni:{e.preventDefault(),this.open=!this.open;break}case cn:{this.collapsible&&this.open&&(e.preventDefault(),this.open=!1);break}case Cl: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===Dt||t===Ot)}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&&_e.notify(this,"displayValue")}};T([A({attribute:"open",mode:"boolean"})],mn.prototype,"open",void 0);T([fq],mn.prototype,"collapsible",null);T([P],mn.prototype,"control",void 0);T([A({attribute:"position"})],mn.prototype,"positionAttribute",void 0);T([P],mn.prototype,"position",void 0);T([P],mn.prototype,"maxHeight",void 0);Xp=class{};T([P],Xp.prototype,"ariaControls",void 0);He(Xp,ds);He(mn,ht,Xp)});var wU,SU=b(()=>{B();Tl();Ht();wU=(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        ${Xe(t=>t.collapsible,H`
900                <div
901                    class="control"
902                    part="control"
903                    ?disabled="${t=>t.disabled}"
904                    ${Ae("control")}
905                >
906                    ${xt(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                    ${yt(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            ${Ae("listbox")}
928        >
929            <slot
930                ${Oe({filter:Ut.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
931            ></slot>
932        </div>
933    </template>
934`});var CU=b(()=>{xU();r1();SU()});var IU,EU=b(()=>{B();IU=(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        ${Xe(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 ma,kU=b(()=>{Le();B();Pe();ma=class extends ee{constructor(){super(...arguments),this.shape="rect"}};T([A],ma.prototype,"fill",void 0);T([A],ma.prototype,"shape",void 0);T([A],ma.prototype,"pattern",void 0);T([A({mode:"boolean"})],ma.prototype,"shimmer",void 0)});var TU=b(()=>{EU();kU()});var AU,MU=b(()=>{B();ye();AU=(i,e)=>H`
949    <template
950        aria-disabled="${t=>t.disabled}"
951        class="${t=>t.sliderOrientation||it.horizontal}
952            ${t=>t.disabled?"disabled":""}"
953    >
954        <div ${Ae("root")} part="root" class="root" style="${t=>t.positionStyle}">
955            <div class="container">
956                ${Xe(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 Jp(i,e,t,r){let n=_o(0,1,(i-e)/(t-e));return r===je.rtl&&(n=1-n),n}var V3=b(()=>{ye()});var w1,Nn,RU=b(()=>{Le();B();ye();V3();Pe();w1={min:0,max:0,direction:je.ltr,orientation:it.horizontal,disabled:!1},Nn=class extends ee{constructor(){super(...arguments),this.hideMark=!1,this.sliderDirection=je.ltr,this.getSliderConfiguration=()=>{if(!this.isSliderConfig(this.parentNode))this.sliderDirection=w1.direction||je.ltr,this.sliderOrientation=w1.orientation||it.horizontal,this.sliderMaxPosition=w1.max,this.sliderMinPosition=w1.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||je.ltr,this.sliderOrientation=s||it.horizontal,this.sliderMaxPosition=r,this.sliderMinPosition=t}},this.positionAsStyle=()=>{let e=this.sliderDirection?this.sliderDirection:je.ltr,t=Jp(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===it.horizontal?e===je.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=_e.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}};T([P],Nn.prototype,"positionStyle",void 0);T([A],Nn.prototype,"position",void 0);T([A({attribute:"hide-mark",mode:"boolean"})],Nn.prototype,"hideMark",void 0);T([A({attribute:"disabled",mode:"boolean"})],Nn.prototype,"disabled",void 0);T([P],Nn.prototype,"sliderOrientation",void 0);T([P],Nn.prototype,"sliderMinPosition",void 0);T([P],Nn.prototype,"sliderMaxPosition",void 0);T([P],Nn.prototype,"sliderDirection",void 0)});var DU=b(()=>{MU();RU()});var OU,LU=b(()=>{B();ye();OU=(i,e)=>H`
966    <template
967        role="slider"
968        class="${t=>t.readOnly?"readonly":""}
969        ${t=>t.orientation||it.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 ${Ae("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                ${Ae("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 U3,S1,$U=b(()=>{fn();Pe();U3=class extends ee{},S1=class extends vi(U3){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var Y3e,ki,PU=b(()=>{Le();B();ye();Il();V3();$U();Y3e={singleValue:"single-value"},ki=class extends S1{constructor(){super(...arguments),this.direction=je.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=it.horizontal,this.mode=Y3e.singleValue,this.keypressHandler=e=>{if(!this.readOnly){if(e.key===Ci)e.preventDefault(),this.value=`${this.min}`;else if(e.key===Ii)e.preventDefault(),this.value=`${this.max}`;else if(!e.shiftKey)switch(e.key){case kr:case Ot:e.preventDefault(),this.increment();break;case Er:case Dt: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===it.horizontal?t.pageX-document.documentElement.scrollLeft-this.trackLeft:t.pageY-document.documentElement.scrollTop;this.value=`${this.calculateNewValue(r)}`},this.calculateNewValue=e=>{let t=Jp(e,this.orientation===it.horizontal?this.trackMinWidth:this.trackMinHeight,this.orientation===it.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===it.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=Yr(this),this.updateStepMultiplier(),this.setupTrackConstraints(),this.setupListeners(),this.setupDefaultValue(),this.setThumbPositionForOrientation(this.direction)}disconnectedCallback(){this.setupListeners(!0)}increment(){let e=this.direction!==je.rtl&&this.orientation!==it.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!==je.rtl&&this.orientation!==it.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-Jp(Number(this.value),Number(this.min),Number(this.max),e))*100;this.orientation===it.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)}}};T([A({attribute:"readonly",mode:"boolean"})],ki.prototype,"readOnly",void 0);T([P],ki.prototype,"direction",void 0);T([P],ki.prototype,"isDragging",void 0);T([P],ki.prototype,"position",void 0);T([P],ki.prototype,"trackWidth",void 0);T([P],ki.prototype,"trackMinWidth",void 0);T([P],ki.prototype,"trackHeight",void 0);T([P],ki.prototype,"trackLeft",void 0);T([P],ki.prototype,"trackMinHeight",void 0);T([P],ki.prototype,"valueTextFormatter",void 0);T([A({converter:me}
998)],ki.prototype,"min",void 0);T([A({converter:me})],ki.prototype,"max",void 0);T([A({converter:me})],ki.prototype,"step",void 0);T([A],ki.prototype,"orientation",void 0);T([A],ki.prototype,"mode",void 0)});var FU=b(()=>{LU();PU()});var NU,BU=b(()=>{B();NU=(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 ${Oe("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,C1,zU=b(()=>{fn();Pe();W3=class extends ee{},C1=class extends ch(W3){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var Vc,qU=b(()=>{Le();B();ye();zU();Vc=class extends C1{constructor(){super(),this.initialValue="on",this.keypressHandler=e=>{if(!this.readOnly)switch(e.key){case ni:case dn: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")}};T([A({attribute:"readonly",mode:"boolean"})],Vc.prototype,"readOnly",void 0);T([P],Vc.prototype,"defaultSlottedNodes",void 0)});var HU=b(()=>{BU();qU()});var jU,VU=b(()=>{B();jU=(i,e)=>H`
1028    <template slot="tabpanel" role="tabpanel">
1029        <slot></slot>
1030    </template>
1031`});var Zp,UU=b(()=>{Pe();Zp=class extends ee{}});var WU=b(()=>{VU();UU()});var GU,KU=b(()=>{B();GU=(i,e)=>H`
1032    <template slot="tab" role="tab" aria-disabled="${t=>t.disabled}">
1033        <slot></slot>
1034    </template>
1035`});var gh,YU=b(()=>{Le();B();Pe();gh=class extends ee{};T([A({mode:"boolean"})],gh.prototype,"disabled",void 0)});var XU=b(()=>{KU();YU()});var JU,ZU=b(()=>{B();Ht();JU=(i,e)=>H`
1036    <template class="${t=>t.orientation}">
1037        ${xt(i,e)}
1038        <div class="tablist" part="tablist" role="tablist">
1039            <slot class="tab" name="tab" part="tab" ${Oe("tabs")}></slot>
1040
1041            ${Xe(t=>t.showActiveIndicator,H`
1042                    <div
1043                        ${Ae("activeIndicatorRef")}
1044                        class="activeIndicator"
1045                        part="activeIndicator"
1046                    ></div>
1047                `)}
1048        </div>
1049        ${yt(i,e)}
1050        <div class="tabpanel" part="tabpanel">
1051            <slot name="tabpanel" ${Oe("tabpanels")}></slot>
1052        </div>
1053    </template>
1054`});var QU,Bn,eW=b(()=>{Le();B();ye();Ht();Xi();Pe();QU={vertical:"vertical",horizontal:"horizontal"},Bn=class extends ee{constructor(){super(...arguments),this.orientation=QU.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 Er:e.preventDefault(),this.adjustBackward(e);break;case kr:e.preventDefault(),this.adjustForward(e);break}else switch(e.key){case Ot:e.preventDefault(),this.adjustBackward(e);break;case Dt:e.preventDefault(),this.adjustForward(e);break}switch(e.key){case Ci:e.preventDefault(),this.adjust(-this.activeTabIndex);break;case Ii: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-${Ln()}`})}getTabPanelIds(){return this.tabpanels.map(e=>{var t;return(t=e.getAttribute("id"))!==null&&t!==void 0?t:`panel-${Ln()}`})}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===QU.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=_o(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()}};T([A],Bn.prototype,"orientation",void 0);T([A],Bn.prototype,"activeid",void 0);T([P],Bn.prototype,"tabs",void 0);T([P],Bn.prototype,"tabpanels",void 0);T([A({mode:"boolean"})],Bn.prototype,"activeindicator",void 0);T([P],Bn.prototype,"activeIndicatorRef",void 0);T([P],Bn.prototype,"showActiveIndicator",void 0);He(Bn,ht)});var tW=b(()=>{ZU();eW()});var G3,I1,iW=b(()=>{fn();Pe();G3=class extends ee{},I1=class extends vi(G3){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}});var E1,rW=b(()=>{E1={none:"none",both:"both",horizontal:"horizontal",vertical:"vertical"}});var Ni,K3=b(()=>{Le();B();m1();Xi();iW();rW();Ni=class extends I1{constructor(){super(...arguments),this.resize=E1.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)}};T([A({mode:"boolean"})],Ni.prototype,"readOnly",void 0);T([A],Ni.prototype,"resize",void 0);T([A({mode:"boolean"})],Ni.prototype,"autofocus",void 0);T([A({attribute:"form"})],Ni.prototype,"formId",void 0);T([A],Ni.prototype,"list",void 0);T([A({converter:me})],Ni.prototype,"maxlength",void 0);T([A({converter:me})],Ni.prototype,"minlength",void 0);T([A],Ni.prototype,"name",void 0);T([A],Ni.prototype,"placeholder",void 0);T([A({converter:me,mode:"fromView"})],Ni.prototype,"cols",void 0);T([A({converter:me,mode:"fromView"})],Ni.prototype,"rows",void 0);T([A({mode:"boolean"})],Ni.prototype,"spellcheck",void 0);T([P],Ni.prototype,"defaultSlottedNodes",void 0);He(Ni,wo)});var nW,sW=b(()=>{B();K3();nW=(i,e)=>H`
1055    <template
1056        class="
1057            ${t=>t.readOnly?"readonly":""}
1058            ${t=>t.resize!==E1.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 ${Oe("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            ${Ae("control")}
1107        ></textarea>
1108    </template>
1109`});var oW=b(()=>{sW();K3()});var aW,lW=b(()=>{B();Ht();v1();aW=(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                ${Oe({property:"defaultSlottedNodes",filter:mh})}
1122            ></slot>
1123        </label>
1124        <div class="root" part="root">
1125            ${xt(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                ${Ae("control")}
1165            />
1166            ${yt(i,e)}
1167        </div>
1168    </template>
1169`});var uW=b(()=>{lW();m1()});var cW,dW=b(()=>{B();Ht();cW=(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        ${Sl({property:"childItems",attributeFilter:["disabled","hidden"],filter:Ir(),subtree:!0})}
1180    >
1181        <slot name="label"></slot>
1182        <div class="positioning-region" part="positioning-region">
1183            ${xt(i,e)}
1184            <slot
1185                ${Oe({filter:Ir(),property:"slottedItems"})}
1186            ></slot>
1187            ${yt(i,e)}
1188        </div>
1189    </template>
1190`});function hW(i){let e=i.getRootNode();return e instanceof ShadowRoot?e.activeElement:document.activeElement}var fW=b(()=>{});var pW,qs,bh,mW=b(()=>{Le();B();ye();u1();Pe();Bp();Ht();Xi();Il();fW();pW=Object.freeze({[hn.ArrowUp]:{[it.vertical]:-1},[hn.ArrowDown]:{[it.vertical]:1},[hn.ArrowLeft]:{[it.horizontal]:{[je.ltr]:-1,[je.rtl]:1}},[hn.ArrowRight]:{[it.horizontal]:{[je.ltr]:1,[je.rtl]:-1}}}),qs=class extends ee{constructor(){super(...arguments),this._activeIndex=0,this.direction=je.ltr,this.orientation=it.horizontal}get activeIndex(){return _e.track(this,"activeIndex"),this._activeIndex}set activeIndex(e){this.$fastController.isConnected&&(this._activeIndex=_o(0,this.focusableElements.length-1,e),_e.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=Yr(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=pW[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=pW[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 hn)||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(qs.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(hW(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=>ph(c));return!t.hasAttribute("disabled")&&!t.hasAttribute("hidden")&&(ph(t)||a||l||u)?(e.push(t),e):t.childElementCount?e.concat(Array.from(t.children).reduce(qs.reduceFocusableItems,[])):e}setFocusableElements(){this.$fastController.isConnected&&this.focusableElements.length>0&&this.focusableElements.forEach((e,t)=>{e.tabIndex=this.activeIndex===t?0:-1})}};T([P],qs.prototype,"direction",void 0);T([A],qs.prototype,"orientation",void 0);T([P],qs.prototype,"slottedItems",void 0);T([P],qs.prototype,"slottedLabel",void 0);T([P],qs.prototype,"childItems",void 0);bh=class{};T([A({attribute:"aria-labelledby"})],bh.prototype,"ariaLabelledby",void 0);T([A({attribute:"aria-label"})],bh.prototype,"ariaLabel",void 0);He(bh,at);He(qs,ht,bh)});var gW=b(()=>{dW();mW()});var bW,vW=b(()=>{B();zp();bW=(i,e)=>H`
1191        ${Xe(t=>t.tooltipVisible,H`
1192            <${i.tagFor(We)}
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                ${Ae("region")}
1207            >
1208                <div class="tooltip" part="tooltip" role="tooltip">
1209                    <slot></slot>
1210                </div>
1211            </${i.tagFor(We)}>
1212        `)}
1213    `});var Jr,_W=b(()=>{Jr={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 Wt,yW=b(()=>{Le();B();ye();Il();Pe();_W();Wt=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=je.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 cn: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=Yr(this),this.tooltipVisible=!0,document.addEventListener("keydown",this.handleDocumentKeydown),ce.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 Jr.top:case Jr.bottom:this.verticalDefaultPosition=this.position,this.horizontalDefaultPosition="center";break;case Jr.right:case Jr.left:case Jr.start:case Jr.end:this.verticalDefaultPosition="center",this.horizontalDefaultPosition=this.position;break;case Jr.topLeft:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="left";break;case Jr.topRight:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="right";break;case Jr.bottomLeft:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="left";break;case Jr.bottomRight:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="right";break;case Jr.topStart:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="start";break;case Jr.topEnd:this.verticalDefaultPosition="top",this.horizontalDefaultPosition="end";break;case Jr.bottomStart:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="start";break;case Jr.bottomEnd:this.verticalDefaultPosition="bottom",this.horizontalDefaultPosition="end";break;default:this.verticalPositioningMode="dynamic",this.horizontalPositioningMode="dynamic",this.verticalDefaultPosition=void 0,this.horizontalDefaultPosition="center";break}}};T([A({mode:"boolean"})],Wt.prototype,"visible",void 0);T([A],Wt.prototype,"anchor",void 0);T([A],Wt.prototype,"delay",void 0);T([A],Wt.prototype,"position",void 0);T([A({attribute:"auto-update-mode"})],Wt.prototype,"autoUpdateMode",void 0);T([A({attribute:"horizontal-viewport-lock"})],Wt.prototype,"horizontalViewportLock",void 0);T([A({attribute:"vertical-viewport-lock"})],Wt.prototype,"verticalViewportLock",void 0);T([P],Wt.prototype,"anchorElement",void 0);T([P],Wt.prototype,"viewportElement",void 0);T([P],Wt.prototype,"verticalPositioningMode",void 0);T([P],Wt.prototype,"horizontalPositioningMode",void 0);T([P],Wt.prototype,"horizontalInset",void 0);T([P],Wt.prototype,"verticalInset",void 0);T([P],Wt.prototype,"horizontalScaling",void 0);T([P],Wt.prototype,"verticalScaling",void 0);T([P],Wt.prototype,"verticalDefaultPosition",void 0);T([P],Wt.prototype,"horizontalDefaultPosition",void 0);T([P],Wt.prototype,"tooltipVisible",void 0);T([P],Wt.prototype,"currentDirection",void 0)});var xW=b(()=>{vW();yW()});var wW,SW=b(()=>{B();Ht();wW=(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        ${Sl({property:"childItems",filter:Ir()})}
1226    >
1227        <div class="positioning-region" part="positioning-region">
1228            <div class="content-region" part="content-region">
1229                ${Xe(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                            ${Ae("expandCollapseButton")}
1236                        >
1237                            <slot name="expand-collapse-glyph">
1238                                ${e.expandCollapseGlyph||""}
1239                            </slot>
1240                        </div>
1241                    `)}
1242                ${xt(i,e)}
1243                <slot></slot>
1244                ${yt(i,e)}
1245            </div>
1246        </div>
1247        ${Xe(t=>t.childItems&&t.childItemLength()>0&&(t.expanded||t.renderCollapsedChildren),H`
1248                <div role="group" class="items" part="items">
1249                    <slot name="item" ${Oe("items")}></slot>
1250                </div>
1251            `)}
1252    </template>
1253`});function Hs(i){return vo(i)&&i.getAttribute("role")==="treeitem"}var Lt,Y3=b(()=>{Le();B();ye();Ht();Xi();Pe();Lt=class extends ee{constructor(){super(...arguments),this.expanded=!1,this.focusable=!1,this.isNestedItem=()=>Hs(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=>{Hs(r)&&(r.nested=!0)})}static focusItem(e){e.focusable=!0,e.focus()}childItemLength(){let e=this.childItems.filter(t=>Hs(t));return e?e.length:0}};T([A({mode:"boolean"})],Lt.prototype,"expanded",void 0);T([A({mode:"boolean"})],Lt.prototype,"selected",void 0);T([A({mode:"boolean"})],Lt.prototype,"disabled",void 0);T([P],Lt.prototype,"focusable",void 0);T([P],Lt.prototype,"childItems",void 0);T([P],Lt.prototype,"items",void 0);T([P],Lt.prototype,"nested",void 0);T([P],Lt.prototype,"renderCollapsedChildren",void 0);He(Lt,ht)});var CW=b(()=>{SW();Y3()});var IW,EW=b(()=>{B();IW=(i,e)=>H`
1254    <template
1255        role="tree"
1256        ${Ae("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 ${Oe("slottedTreeItems")}></slot>
1264    </template>
1265`});var Dl,kW=b(()=>{Le();B();ye();Y3();Pe();Dl=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&&Lt.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 Ci:t.length&&Lt.focusItem(t[0]);return;case Ii:t.length&&Lt.focusItem(t[t.length-1]);return;case Er:if(e.target&&this.isFocusableElement(e.target)){let r=e.target;r instanceof Lt&&r.childItemLength()>0&&r.expanded?r.expanded=!1:r instanceof Lt&&r.parentElement instanceof Lt&&Lt.focusItem(r.parentElement)}return!1;case kr:if(e.target&&this.isFocusableElement(e.target)){let r=e.target;r instanceof Lt&&r.childItemLength()>0&&!r.expanded?r.expanded=!0:r instanceof Lt&&r.childItemLength()>0&&this.focusNextNode(1,e.target)}return;case Dt:e.target&&this.isFocusableElement(e.target)&&this.focusNextNode(1,e.target);return;case Ot:e.target&&this.isFocusableElement(e.target)&&this.focusNextNode(-1,e.target);return;case ni:this.handleClick(e);return}return!0},this.handleSelectedChange=e=>{if(e.defaultPrevented)return;if(!(e.target instanceof Element)||!Hs(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=>{Hs(r)&&(r.nested=this.nested)})},this.isFocusableElement=e=>Hs(e),this.isSelectedElement=e=>e.selected}slottedTreeItemsChanged(){this.$fastController.isConnected&&this.setItems()}connectedCallback(){super.connectedCallback(),this.setAttribute("tabindex","0"),ce.queueUpdate(()=>{this.setItems()})}handleClick(e){if(e.defaultPrevented)return;if(!(e.target instanceof Element)||!Hs(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];vo(n)&&Lt.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=>Hs(e)&&e.querySelector("[role='treeitem']"))}getVisibleNodes(){return gH(this,"[role='treeitem']")||[]}};T([A({attribute:"render-collapsed-nodes"})],Dl.prototype,"renderCollapsedNodes",void 0);T([P],Dl.prototype,"currentSelected",void 0);T([P],Dl.prototype,"slottedTreeItems",void 0)});var TW=b(()=>{EW();kW()});var X3,Uc,ve,blt,vlt,AW=b(()=>{X3=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))}},Uc=class extends X3{constructor(e,t){super(e),this.styles=t}static with(e){return t=>new Uc(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)}},ve=Uc.with(window.matchMedia("(forced-colors)")),blt=Uc.with(window.matchMedia("(prefers-color-scheme: dark)")),vlt=Uc.with(window.matchMedia("(prefers-color-scheme: light)"))});var k1,MW=b(()=>{B();k1=class{constructor(e,t,r){this.propertyName=e,this.value=t,this.styles=r}bind(e){_e.getNotifier(e).subscribe(this,this.propertyName),this.handleChange(e,this.propertyName)}unbind(e){_e.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 mt,RW=b(()=>{mt="not-allowed"});function we(i){return`${X3e}:host{display:${i}}`}var X3e,DW=b(()=>{X3e=":host([hidden]){display:none}"});var X,OW=b(()=>{ye();X=bH()?"focus-visible":"focus"});var LW=b(()=>{RW();DW();OW()});var $W=b(()=>{Xi();s1();AW();MW();LW();Il();v1()});var oe=b(()=>{sH();PH();FH();o3();GH();JH();ej();nj();fj();Cj();Tj();Dj();Fj();wj();Hj();E3();jj();Zj();iV();lV();fV();pV();mV();vV();xV();LV();N3();qV();YV();Nc();QV();rU();aU();dU();pU();_U();CU();TU();DU();FU();HU();WU();XU();tW();oW();uW();gW();xW();CW();TW();$W()});function T1(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])?T1(i,e,t,n):T1(i,e,n+1,r)}var PW=b(()=>{});function gn(i){return rh(i)?-1:1}var Ol=b(()=>{Rb()});function J3e(i,e,t){return typeof i=="number"?vh.from(Fi.create(i,e,t)):vh.from(i)}function Z3e(i){return uq(i)?_h.from(i):_h.from(Fi.create(i.r,i.g,i.b))}var vh,_h,FW=b(()=>{eh();ih();PW();Ol();d2();vh=Object.freeze({create:J3e,from:Z3e}),_h=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=gn(e));let l=u=>Mb(e,u)>=t;return n===-1&&(s=this.reversedSwatches,a=o-a),T1(s,l,a,o)}get(e){return this.swatches[e]||this.swatches[rs(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 _h(e,Object.freeze(new Tc({baseColor:ct.fromObject(e)}).palette.map(t=>{let r=un(t.toStringHexRGB());return Fi.create(r.r,r.g,r.b)})))}}});function NW(i,e,t,r,n,s,o,a,l){let u=i.source,c=e.closestIndexOf(t),d=Math.max(o,a,l),h=c>
1265=d?-1:1,p=i.closestIndexOf(u),g=p+h*-1*r,v=g+h*n,_=g+h*s;return{rest:i.get(g),hover:i.get(p),active:i.get(v),focus:i.get(_)}}var BW=b(()=>{});function zW(i,e,t,r,n,s,o){let a=i.source,l=i.closestIndexOf(a),u=gn(e),c=l+(u===1?Math.min(r,n):Math.max(u*r,u*n)),d=i.colorContrast(e,t,c,u),h=i.closestIndexOf(d),f=h+u*Math.abs(r-n),p=u===1?r<n:u*r>u*n,g,v;return p?(g=h,v=f):(g=f,v=h),{rest:i.get(g),hover:i.get(v),active:i.get(g+u*s),focus:i.get(g+u*o)}}var qW=b(()=>{Ol()});var yh,A1,HW,jW,VW,M1=b(()=>{eh();ih();yh=Fi.create(1,1,1),A1=Fi.create(0,0,0),HW=Fi.from(un("#808080")),jW=Fi.from(un("#DA1A5F")),VW=Fi.from(un("#D32F2F"))});function UW(i,e){return i.contrast(yh)>=e?yh:A1}var WW=b(()=>{M1()});function GW(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 KW=b(()=>{});function YW(i,e,t,r,n,s){let o=gn(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 XW=b(()=>{Ol()});function JW(i,e,t){let r=i.closestIndexOf(e);return i.get(r-(r<t?t*-1:t))}var ZW=b(()=>{});function QW(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),h=d>=c?-1:1;return{rest:i.get(d+h*t),hover:i.get(d+h*r),active:i.get(d+h*n),focus:i.get(d+h*s)}}var eG=b(()=>{});function tG(i,e,t,r,n,s){let o=gn(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 iG=b(()=>{Ol()});function rG(i,e){return i.colorContrast(e,3.5)}function nG(i,e,t){return i.colorContrast(t,3.5,i.closestIndexOf(i.source),gn(e)*-1)}var sG=b(()=>{Ol()});function oG(i,e){return i.colorContrast(e,14)}var aG=b(()=>{});function lG(i,e){return i.colorContrast(e,4.5)}var uG=b(()=>{});function cG(i,e,t){return i.get(i.closestIndexOf(pl(e))+t)}var dG=b(()=>{Ac()});function hG(i,e,t){let r=i.closestIndexOf(pl(e))-t;return i.get(r-t)}var fG=b(()=>{Ac()});function pG(i,e){return i.get(i.closestIndexOf(pl(e)))}var mG=b(()=>{Ac()});function Qp(i,e,t,r,n,s){return Math.max(i.closestIndexOf(pl(e))+t,r,n,s)}function gG(i,e,t,r,n,s){return i.get(Qp(i,e,t,r,n,s))}var R1=b(()=>{Ac()});function bG(i,e,t,r,n,s){return i.get(Qp(i,e,t,r,n,s)+t)}var vG=b(()=>{R1()});function _G(i,e,t,r,n,s){return i.get(Qp(i,e,t,r,n,s)+t*2)}var yG=b(()=>{R1()});function xG(i,e,t,r,n,s){let o=i.closestIndexOf(e),a=gn(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 wG=b(()=>{Ol()});function SG(i,e,t){return i.get(i.closestIndexOf(e)+gn(e)*t)}var CG=b(()=>{Ol()});function IG(i,e,t,r,n,s,o,a,l){let u=i.source,c=e.closestIndexOf(t),d=Math.max(o,a,l),h=c>=d?-1:1,p=i.closestIndexOf(u),g=p+h*-1*r,v=g+h*n,_=g+h*s;return{rest:i.get(g),hover:i.get(p),active:i.get(v),focus:i.get(_)}}function EG(i,e,t,r,n,s,o){let a=i.source,l=i.closestIndexOf(a),u=rh(e)?-1:1,c=l+(u===1?Math.min(r,n):Math.max(u*r,u*n)),d=i.colorContrast(e,t,c,u),h=i.closestIndexOf(d),f=h+u*Math.abs(r-n),p=u===1?r<n:u*r>u*n,g,v;return p?(g=h,v=f):(g=f,v=h),{rest:i.get(g),hover:i.get(v),active:i.get(g+u*s),focus:i.get(g+u*o)}}var kG=b(()=>{Rb()});function TG(i,e){return i.contrast(yh)>=e?yh:A1}var AG=b(()=>{M1()});function Be(i){return Pn.create({name:i,cssCustomPropertyName:null})}var Q,Me,zn,MG,So,ge,_t,K,$l,xh,wt,de,be,ke,Fe,Pl,Fl,RG,DG,Nl,OG,LG,$G,PG,FG,NG,BG,zG,qG,HG,jG,VG,Wc,D1,O1,L1,$1,P1,F1,ga,ba,va,N1,J3,Z3,Q3,eS,tS,iS,rS,nS,Q3e,sS,oS,aS,Bl,lS,uS,cS,dS,hS,em,Qi,tm,fS,eSe,idt,tSe,wh,iSe,rSe,nSe,rdt,sSe,ndt,oSe,sdt,ze,Ll,B1,ut,Ti,Gt,qe,UG,z1,Ai,mr,Bi,WG,q1,odt,adt,ldt,udt,aSe,H1,oi,_a,Co,GG,ya,Tt,ps,zl,cdt,j1,bn,Mr,Io,ddt,Eo,Rr,vn,_n,Sh,V1,Ch,Ih,Eh,KG,im,hdt,lSe,zi,uSe,YG,cSe,xa,dSe,fe,U1,Dr,wa,kh,fdt,hSe,js,W1,rm,XG,G1,$t,ai,Mi,At,JG,K1,pdt,mdt,gdt,bdt,Y1,vdt,_dt,ydt,xdt,fSe,X1,wdt,Sdt,ZG,Cdt,Te=b(()=>{oe();ye();FW();BW();qW();WW();KW();XW();ZW();eG();iG();sG();aG();uG();dG();fG();mG();R1();vG();yG();wG();CG();Ac();M1();kG();AG();({create:Q}=Pn);Me=Q("body-font").withDefault('aktiv-grotesk, "Segoe UI", Arial, Helvetica, sans-serif'),zn=Q("base-height-multiplier").withDefault(10),MG=Q("base-horizontal-spacing-multiplier").withDefault(3),So=Q("base-layer-luminance").withDefault(Mp.DarkMode),ge=Q("control-corner-radius").withDefault(4),_t=Q("density").withDefault(0),K=Q("design-unit").withDefault(4),$l=Q("element-scale").withDefault(0),xh=Q("direction").withDefault(je.ltr),wt=Q("disabled-opacity").withDefault(.4),de=Q("stroke-width").withDefault(1),be=Q("focus-stroke-width").withDefault(2),ke=Q("type-ramp-base-font-size").withDefault("14px"),Fe=Q("type-ramp-base-line-height").withDefault("20px"),Pl=Q("type-ramp-minus-1-font-size").withDefault("12px"),Fl=Q("type-ramp-minus-1-line-height").withDefault("16px"),RG=Q("type-ramp-minus-2-font-size").withDefault("10px"),DG=Q("type-ramp-minus-2-line-height").withDefault("16px"),Nl=Q("type-ramp-plus-1-font-size").withDefault("16px"),OG=Q("type-ramp-plus-1-line-height").withDefault("24px"),LG=Q("type-ramp-plus-2-font-size").withDefault("20px"),$G
1265=Q("type-ramp-plus-2-line-height").withDefault("28px"),PG=Q("type-ramp-plus-3-font-size").withDefault("28px"),FG=Q("type-ramp-plus-3-line-height").withDefault("36px"),NG=Q("type-ramp-plus-4-font-size").withDefault("34px"),BG=Q("type-ramp-plus-4-line-height").withDefault("44px"),zG=Q("type-ramp-plus-5-font-size").withDefault("46px"),qG=Q("type-ramp-plus-5-line-height").withDefault("56px"),HG=Q("type-ramp-plus-6-font-size").withDefault("60px"),jG=Q("type-ramp-plus-6-line-height").withDefault("72px"),VG=Be("accent-fill-rest-delta").withDefault(0),Wc=Be("accent-fill-hover-delta").withDefault(4),D1=Be("accent-fill-active-delta").withDefault(-5),O1=Be("accent-fill-focus-delta").withDefault(0),L1=Be("accent-foreground-rest-delta").withDefault(0),$1=Be("accent-foreground-hover-delta").withDefault(6),P1=Be("accent-foreground-active-delta").withDefault(-4),F1=Be("accent-foreground-focus-delta").withDefault(0),ga=Be("neutral-fill-rest-delta").withDefault(7),ba=Be("neutral-fill-hover-delta").withDefault(10),va=Be("neutral-fill-active-delta").withDefault(5),N1=Be("neutral-fill-focus-delta").withDefault(0),J3=Be("neutral-fill-input-rest-delta").withDefault(0),Z3=Be("neutral-fill-input-hover-delta").withDefault(0),Q3=Be("neutral-fill-input-active-delta").withDefault(0),eS=Be("neutral-fill-input-focus-delta").withDefault(0),tS=Be("neutral-fill-stealth-rest-delta").withDefault(0),iS=Be("neutral-fill-stealth-hover-delta").withDefault(5),rS=Be("neutral-fill-stealth-active-delta").withDefault(3),nS=Be("neutral-fill-stealth-focus-delta").withDefault(0),Q3e=Be("neutral-fill-strong-rest-delta").withDefault(0),sS=Be("neutral-fill-strong-hover-delta").withDefault(8),oS=Be("neutral-fill-strong-active-delta").withDefault(-5),aS=Be("neutral-fill-strong-focus-delta").withDefault(0),Bl=Be("neutral-fill-layer-rest-delta").withDefault(3),lS=Be("neutral-stroke-rest-delta").withDefault(25),uS=Be("neutral-stroke-hover-delta").withDefault(40),cS=Be("neutral-stroke-active-delta").withDefault(16),dS=Be("neutral-stroke-focus-delta").withDefault(25),hS=Be("neutral-stroke-divider-rest-delta").withDefault(8),em=Q("neutral-color").withDefault(HW),Qi=Be("neutral-palette").withDefault(i=>vh.from(em.getValueFor(i))),tm=Q("accent-color").withDefault(jW),fS=Be("accent-palette").withDefault(i=>vh.from(tm.getValueFor(i))),eSe=Be("neutral-layer-card-container-recipe").withDefault({evaluate:i=>cG(Qi.getValueFor(i),So.getValueFor(i),Bl.getValueFor(i))}),idt=Q("neutral-layer-card-container").withDefault(i=>eSe.getValueFor(i).evaluate(i)),tSe=Be("neutral-layer-floating-recipe").withDefault({evaluate:i=>hG(Qi.getValueFor(i),So.getValueFor(i),Bl.getValueFor(i))}),wh=Q("neutral-layer-floating").withDefault(i=>tSe.getValueFor(i).evaluate(i)),iSe=Be("neutral-layer-1-recipe").withDefault({evaluate:i=>pG(Qi.getValueFor(i),So.getValueFor(i))}),rSe=Q("neutral-layer-1").withDefault(i=>iSe.getValueFor(i).evaluate(i)),nSe=Be("neutral-layer-2-recipe").withDefault({evaluate:i=>gG(Qi.getValueFor(i),So.getValueFor(i),Bl.getValueFor(i),ga.getValueFor(i),ba.getValueFor(i),va.getValueFor(i))}),rdt=Q("neutral-layer-2").withDefault(i=>nSe.getValueFor(i).evaluate(i)),sSe=Be("neutral-layer-3-recipe").withDefault({evaluate:i=>bG(Qi.getValueFor(i),So.getValueFor(i),Bl.getValueFor(i),ga.getValueFor(i),ba.getValueFor(i),va.getValueFor(i))}),ndt=Q("neutral-layer-3").withDefault(i=>sSe.getValueFor(i).evaluate(i)),oSe=Be("neutral-layer-4-recipe").withDefault({evaluate:i=>_G(Qi.getValueFor(i),So.getValueFor(i),Bl.getValueFor(i),ga.getValueFor(i),ba.getValueFor(i),va.getValueFor(i))}),sdt=Q("neutral-layer-4").withDefault(i=>oSe.getValueFor(i).evaluate(i)),ze=Q("fill-color").withDefault(i=>rSe.getValueFor(i));(function(i){i[i.normal=4.5]="normal",i[i.large=7]="large"})(Ll||(Ll={}));B1=Q({name:"accent-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(i,e)=>NW(fS.getValueFor(i),Qi.getValueFor(i),e||ze.getValueFor(i),Wc.getValueFor(i),D1.getValueFor(i),O1.getValueFor(i),ga.getValueFor(i),ba.getValueFor(i),va.getValueFor(i))}),ut=Q("accent-fill-rest").withDefault(i=>B1.getValueFor(i).evaluate(i).rest),Ti=Q("accent-fill-hover").withDefault(i=>B1.getValueFor(i).evaluate(i).hover),Gt=Q("accent-fill-active").withDefault(i=>B1.getValueFor(i).evaluate(i).active),qe=Q("accent-fill-focus").withDefault(i=>B1.getValueFor(i).evaluate(i).focus),UG=i=>(e,t)=>UW(t||ut.getValueFor(e),i),z1=Be("foreground-on-accent-recipe").withDefault({evaluate:(i,e)=>UG(Ll.normal)(i,e)}),Ai=Q("foreground-on-accent-rest").withDefault(i=>z1.getValueFor(i).evaluate(i,ut.getValueFor(i))),mr=Q("foreground-on-accent-hover").withDefault(i=>z1.getValueFor(i).evaluate(i,Ti.getValueFor(i))),Bi=Q("foreground-on-accent-active").withDefault(i=>z1.getValueFor(i).evaluate(i,Gt.getValueFor(i))),WG=Q("foreground-on-accent-focus").withDefault(i=>z1.getValueFor(i).evaluate(i,qe.getValueFor(i))),q1=Be("foreground-on-accent-large-recipe").withDefault({evaluate:(i,e)=>UG(Ll.large)(i,e)}),odt=Q("foreground-on-accent-rest-large").withDefault(i=>q1.getValueFor(i).evaluate(i,ut.getValueFor(i))),adt=Q("foreground-on-accent-hover-large").withDefault(i=>q1.getValueFor(i).evaluate(i,Ti.getValueFor(i))),ldt=Q("foreground-on-accent-active-large").withDefault(i=>q1.getValueFor(i).evaluate(i,Gt.getValueFor(i))),udt=Q("foreground-on-accent-focus-large").withDefault(i=>
1265q1.getValueFor(i).evaluate(i,qe.getValueFor(i))),aSe=i=>(e,t)=>zW(fS.getValueFor(e),t||ze.getValueFor(e),i,L1.getValueFor(e),$1.getValueFor(e),P1.getValueFor(e),F1.getValueFor(e)),H1=Q({name:"accent-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(i,e)=>aSe(Ll.normal)(i,e)}),oi=Q("accent-foreground-rest").withDefault(i=>H1.getValueFor(i).evaluate(i).rest),_a=Q("accent-foreground-hover").withDefault(i=>H1.getValueFor(i).evaluate(i).hover),Co=Q("accent-foreground-active").withDefault(i=>H1.getValueFor(i).evaluate(i).active),GG=Q("accent-foreground-focus").withDefault(i=>H1.getValueFor(i).evaluate(i).focus),ya=Q({name:"neutral-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(i,e)=>GW(Qi.getValueFor(i),e||ze.getValueFor(i),ga.getValueFor(i),ba.getValueFor(i),va.getValueFor(i),N1.getValueFor(i))}),Tt=Q("neutral-fill-rest").withDefault(i=>ya.getValueFor(i).evaluate(i).rest),ps=Q("neutral-fill-hover").withDefault(i=>ya.getValueFor(i).evaluate(i).hover),zl=Q("neutral-fill-active").withDefault(i=>ya.getValueFor(i).evaluate(i).active),cdt=Q("neutral-fill-focus").withDefault(i=>ya.getValueFor(i).evaluate(i).focus),j1=Q({name:"neutral-fill-input-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(i,e)=>YW(Qi.getValueFor(i),e||ze.getValueFor(i),J3.getValueFor(i),Z3.getValueFor(i),Q3.getValueFor(i),eS.getValueFor(i))}),bn=Q("neutral-fill-input-rest").withDefault(i=>j1.getValueFor(i).evaluate(i).rest),Mr=Q("neutral-fill-input-hover").withDefault(i=>j1.getValueFor(i).evaluate(i).hover),Io=Q("neutral-fill-input-active").withDefault(i=>j1.getValueFor(i).evaluate(i).active),ddt=Q("neutral-fill-input-focus").withDefault(i=>j1.getValueFor(i).evaluate(i).focus),Eo=Q({name:"neutral-fill-stealth-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(i,e)=>QW(Qi.getValueFor(i),e||ze.getValueFor(i),tS.getValueFor(i),iS.getValueFor(i),rS.getValueFor(i),nS.getValueFor(i),ga.getValueFor(i),ba.getValueFor(i),va.getValueFor(i),N1.getValueFor(i))}),Rr=Q("neutral-fill-stealth-rest").withDefault(i=>Eo.getValueFor(i).evaluate(i).rest),vn=Q("neutral-fill-stealth-hover").withDefault(i=>Eo.getValueFor(i).evaluate(i).hover),_n=Q("neutral-fill-stealth-active").withDefault(i=>Eo.getValueFor(i).evaluate(i).active),Sh=Q("neutral-fill-stealth-focus").withDefault(i=>Eo.getValueFor(i).evaluate(i).focus),V1=Q({name:"neutral-fill-strong-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(i,e)=>tG(Qi.getValueFor(i),e||ze.getValueFor(i),Q3e.getValueFor(i),sS.getValueFor(i),oS.getValueFor(i),aS.getValueFor(i))}),Ch=Q("neutral-fill-strong-rest").withDefault(i=>V1.getValueFor(i).evaluate(i).rest),Ih=Q("neutral-fill-strong-hover").withDefault(i=>V1.getValueFor(i).evaluate(i).hover),Eh=Q("neutral-fill-strong-active").withDefault(i=>V1.getValueFor(i).evaluate(i).active),KG=Q("neutral-fill-strong-focus").withDefault(i=>V1.getValueFor(i).evaluate(i).focus),im=Be("neutral-fill-layer-recipe").withDefault({evaluate:(i,e)=>JW(Qi.getValueFor(i),e||ze.getValueFor(i),Bl.getValueFor(i))}),hdt=Q("neutral-fill-layer-rest").withDefault(i=>im.getValueFor(i).evaluate(i)),lSe=Be("focus-stroke-outer-recipe").withDefault({evaluate:i=>rG(Qi.getValueFor(i),ze.getValueFor(i))}),zi=Q("focus-stroke-outer").withDefault(i=>lSe.getValueFor(i).evaluate(i)),uSe=Be("focus-stroke-inner-recipe").withDefault({evaluate:i=>nG(fS.getValueFor(i),ze.getValueFor(i),zi.getValueFor(i))}),YG=Q("focus-stroke-inner").withDefault(i=>uSe.getValueFor(i).evaluate(i)),cSe=Be("neutral-foreground-hint-recipe").withDefault({evaluate:i=>lG(Qi.getValueFor(i),ze.getValueFor(i))}),xa=Q("neutral-foreground-hint").withDefault(i=>cSe.getValueFor(i).evaluate(i)),dSe=Be("neutral-foreground-recipe").withDefault({evaluate:i=>oG(Qi.getValueFor(i),ze.getValueFor(i))}),fe=Q("neutral-foreground-rest").withDefault(i=>dSe.getValueFor(i).evaluate(i)),U1=Q({name:"neutral-stroke-recipe",cssCustomPropertyName:null}).withDefault({evaluate:i=>xG(Qi.getValueFor(i),ze.getValueFor(i),lS.getValueFor(i),uS.getValueFor(i),cS.getValueFor(i),dS.getValueFor(i))}),Dr=Q("neutral-stroke-rest").withDefault(i=>U1.getValueFor(i).evaluate(i).rest),wa=Q("neutral-stroke-hover").withDefault(i=>U1.getValueFor(i).evaluate(i).hover),kh=Q("neutral-stroke-active").withDefault(i=>U1.getValueFor(i).evaluate(i).active),fdt=Q("neutral-stroke-focus").withDefault(i=>U1.getValueFor(i).evaluate(i).focus),hSe=Be("neutral-stroke-divider-recipe").withDefault({evaluate:(i,e)=>SG(Qi.getValueFor(i),e||ze.getValueFor(i),hS.getValueFor(i))}),js=Q("neutral-stroke-divider-rest").withDefault(i=>hSe.getValueFor(i).evaluate(i)),W1=Pn.create({name:"height-number",cssCustomPropertyName:null}).withDefault(i=>(zn.getValueFor(i)+_t.getValueFor(i))*K.getValueFor(i)),rm=Q("error-color").withDefault(VW),XG=Be("error-palette").withDefault(i=>vh.from(rm.getValueFor(i))),G1=Q({name:"error-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(i,e)=>IG(XG.getValueFor(i),Qi.getValueFor(i),e||ze.getValueFor(i),Wc.getValueFor(i),D1.getValueFor(i),O1.getValueFor(i),ga.getValueFor(i),ba.getValueFor(i),va.getValueFor(i))}),$t=Q("error-fill-rest").withDefault(i=>G1.getValueFor(i).evaluate(i).rest),ai=Q("error-fill-hover").withDefault(i=>G1.getValueFor(i).evaluate(i).hover),Mi=Q("error-fill-active").withDefault(i=>G1.getValueFor(i).evaluate(i).active),At=Q("error-fill-focus").withDefault(i=>G1.getValueFor(i).evaluate(i).focus),JG=i=>(e,t)=>TG(t||$t.getValueFor(e),i),K1=Q({name:"foreground-on-error-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(i,e)=>JG(Ll.normal)(i,e)}),pdt=Q("foreground-on-error-rest").withDefault(i=>K1.getValueFor(i).evaluate(i,$t.getValueFor(i))),mdt=Q("foreground-on-error-hover").withDefault(i=>K1.getValueFor(i).evaluate(i,ai.getValueFor(i))),gdt=Q("foreground-on-error-active").withDefault(i=>K1.getValueFor(i).evaluate(i,Mi.getValueFor(i))),bdt=Q("foreground-on-error-focus").withDefault(i=>K1.getValueFor(i).evaluate(i,At.getValueFor(i))),Y1=Q({name:"foreground-on-error-large-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(i,e)=>JG(Ll.large)(i,e)}),vdt=Q("foreground-on-error-rest-large").withDefault(i=>Y1.getValueFor(i).evaluate(i,$t.getValueFor(i))),_dt=Q("foreground-on-error-hover-large").withDefault(i=>Y1.getValueFor(i).evaluate(i,ai.getValueFor(i))),ydt=Q("foreground-on-error-active-large").withDefault(i=>Y1.getValueFor(i).evaluate(i,Mi.getValueFor(i))),xdt=Q("foreground-on-error-focus-large").withDefault(i=>Y1.getValueFor(i).evaluate(i,At.getValueFor(i))),fSe=i=>(e,t)=>EG(XG.getValueFor(e),t||ze.getValueFor(e),i,L1.getValueFor(e),$1.getValueFor(e),P1.getValueFor(e),F1.getValueFor(e)),X1=Q({name:"error-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(i,e)=>fSe(Ll.normal)(i,e)}),wdt=Q("error-foreground-rest").withDefault(i=>X1.getValueFor(i).evaluate(i).rest),Sdt=Q("error-foreground-hover").withDefault(i=>X1.getValueFor(i).evaluate(i).hover),ZG=Q("error-foreground-active").withDefault(i=>X1.getValueFor(i).evaluate(i).active),Cdt=Q("error-foreground-focus").withDefault(i=>X1.getValueFor(i).evaluate(i).focus)});function gS(){QG||(QG=!0,gSe())}function gSe(){let i=()=>{new MutationObserver(()=>{mS()}).observe(document.body,{attributes:!0,attributeFilter:[pSe],childList:!1,characterData:!1}),mS()};document.readyState==="complete"?i():window.addEventListener("load",i)}function mS(){var i;let e=getComputedStyle(document.body),t=document.body.getAttribute(mSe),r=!1;if(t)r=t==="false";else{let n=e.getPropertyValue(pS).toString();if(n){let s=Ap(n);s&&(r=rh(Fi.create(s.r,s.g,s.b)),console.debug(`Theme is ${r?"dark":"light"} based on '${pS}' value: ${n}.`))}}So.setValueFor(document.body,r?Mp.DarkMode:Mp.LightMode);for(let n in tK){let s=tK[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 pSe,mSe,pS,QG,eK,tK,iK=b(()=>{eh();ih();Ac();Rb();Te();pSe="data-jp-theme-name",mSe="data-jp-theme-light",pS="--jp-layout-color1",QG=!1;eK=i=>{let e=parseInt(i,10);return isNaN(e)?null:e},tK={"--jp-border-width":{converter:eK,token:de},"--jp-border-radius":{converter:eK,token:ge},[pS]:{converter:(i,e)=>{let t=Ap(i);if(t){let r=On(t),n=wr.fromObject({h:r.h,s:r.s,l:.5}),s=mo(n);return Fi.create(s.r,s.g,s.b)}else return null},token:em},"--jp-brand-color1":{converter:(i,e)=>{let t=Ap(i);if(t){let r=On(t),n=e?1:-1,s=wr.fromObject({h:r.h,s:r.s,l:r.l+n*Wc.getValueFor(document.body)/94}),o=mo(s);return Fi.create(o.r,o.g,o.b)}else return null},token:tm},"--jp-error-color1":{converter:(i,e)=>{let t=Ap(i);if(t){let r=On(t),n=e?1:-1,s=wr.fromObject({h:r.h,s:r.s,l:r.l+n*Wc.getValueFor(document.body)/94}),o=mo(s);return Fi.create(o.r,o.g,o.b)}else return null},token:rm},"--jp-ui-font-family":{token:Me},"--jp-ui-font-size1":{token:ke}}});var rK,nK=b(()=>{B();oe();Te();rK=(i,e)=>F`
1266  ${we("flex")} :host {
1267    box-sizing: border-box;
1268    flex-direction: column;
1269    font-family: ${Me};
1270    font-size: ${Pl};
1271    line-height: ${Fl};
1272    color: ${fe};
1273    border-top: calc(${de} * 1px) solid ${js};
1274  }
1275`});var xe,ko=b(()=>{B();Te();xe=$p`(${zn} + ${_t} + ${$l}) * ${K}`});var sK,oK=b(()=>{B();oe();ye();Te();ko();sK=(i,e)=>F`
1276    ${we("flex")} :host {
1277      box-sizing: border-box;
1278      font-family: ${Me};
1279      flex-direction: column;
1280      font-size: ${Pl};
1281      line-height: ${Fl};
1282      border-bottom: calc(${de} * 1px) solid
1283        ${js};
1284    }
1285
1286    .region {
1287      display: none;
1288      padding: calc((6 + (${K} * 2 * ${_t})) * 1px);
1289    }
1290
1291    div.heading {
1292      display: grid;
1293      position: relative;
1294      grid-template-columns: calc(${xe} * 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 + (${K} * 2 * ${_t})) * 1px);
1305      text-align: left;
1306      height: calc(${xe} * 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:${X}::before {
1332      outline: none;
1333      border: calc(${be} * 1px) solid ${qe};
1334      border-radius: calc(${ge} * 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(${K} * 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(ve(F`
1389      /* prettier-ignore */
1390      .button:${X}::before {
1391          border-color: ${D.Highlight};
1392        }
1393      :host slot[name='collapsed-icon'],
1394      :host([expanded]) slot[name='expanded-icon'] {
1395        fill: ${D.ButtonText};
1396      }
1397    `))});var bS,vS,_S=b(()=>{oe();oK();bS=class extends ls{},vS=bS.compose({baseName:"accordion-item",baseClass:ls,template:Vq,styles:sK,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 yS,xS,wS=b(()=>{oe();nK();_S();yS=class extends Fc{},xS=yS.compose({baseName:"accordion",baseClass:Fc,template:oH,styles:rK})});var ySe={};ic(ySe,{__addDisposableResource:()=>MK,__assign:()=>J1,__asyncDelegator:()=>wK,__asyncGenerator:()=>xK,__asyncValues:()=>SK,__await:()=>Th,__awaiter:()=>mK,__classPrivateFieldGet:()=>kK,__classPrivateFieldIn:()=>AK,__classPrivateFieldSet:()=>TK,__createBinding:()=>Q1,__decorate:()=>Z,__disposeResources:()=>RK,__esDecorate:()=>cK,__exportStar:()=>bK,__extends:()=>aK,__generator:()=>gK,__importDefault:()=>EK,__importStar:()=>
vendor: 8,835 bytes, line 1424
1424IK,__makeTemplateObject:()=>CK,__metadata:()=>pK,__param:()=>uK,__propKey:()=>hK,__read:()=>IS,__rest:()=>lK,__rewriteRelativeImportExtension:()=>DK,__runInitializers:()=>dK,__setFunctionName:()=>fK,__spread:()=>vK,__spreadArray:()=>yK,__spreadArrays:()=>_K,__values:()=>Z1,default:()=>_Se});function aK(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");SS(i,e);function t(){this.constructor=i}i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function lK(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 Z(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 uK(i,e){return function(t,r){e(t,r,i)}}function cK(i,e,t,r,n,s){function o(_){if(_!==void 0&&typeof _!="function")throw new TypeError("Function expected");return _}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,h=!1,f=t.length-1;f>=0;f--){var p={};for(var g in r)p[g]=g==="access"?{}:r[g];for(var g in r.access)p.access[g]=r.access[g];p.addInitializer=function(_){if(h)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(_||null))};var v=(0,t[f])(a==="accessor"?{get:c.get,set:c.set}:c[l],p);if(a==="accessor"){if(v===void 0)continue;if(v===null||typeof v!="object")throw new TypeError("Object expected");(d=o(v.get))&&(c.get=d),(d=o(v.set))&&(c.set=d),(d=o(v.init))&&n.unshift(d)}else(d=o(v))&&(a==="field"?n.unshift(d):c[l]=d)}u&&Object.defineProperty(u,r.name,c),h=!0}function dK(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 hK(i){return typeof i=="symbol"?i:"".concat(i)}function fK(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 pK(i,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(i,e)}function mK(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 gK(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 bK(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Q1(e,i,t)}function Z1(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 IS(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 vK(){for(var i=[],e=0;e<arguments.length;e++)i=i.concat(IS(arguments[e]));return i}function _K(){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 yK(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 Th(i){return this instanceof Th?(this.v=i,this):new Th(i)}function xK(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(f){return function(p){return Promise.resolve(p).then(f,d)}}function a(f,p){r[f]&&(n[f]=function(g){return new Promise(function(v,_){s.push([f,g,v,_])>1||l(f,g)})},p&&(n[f]=p(n[f])))}function l(f,p){try{u(r[f](p))}catch(g){h(s[0][3],g)}}function u(f){f.value instanceof Th?Promise.resolve(f.value.v).then(c,d):h(s[0][2],f)}function c(f){l("next",f)}function d(f){l("throw",f)}function h(f,p){f(p),s.shift(),s.length&&l(s[0][0],s[0][1])}}function wK(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:Th(i[n](o)),done:!1}:s?s(o):o}:s}}function SK(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 Z1=="function"?Z1(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 CK(i,e){return Object.defineProperty?Object.defineProperty(i,"raw",{value:e}):i.raw=e,i}function IK(i){if(i&&i.__esModule)return i;var e={};if(i!=null)for(var t=CS(i),r=0;r<t.length;r++)t[r]!=="default"&&Q1(e,i,t[r]);return bSe(e,i),e}function EK(i){return i&&i.__esModule?i:{default:i}}function kK(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 TK(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 AK(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 MK(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 RK(i){function e(s){i.error=i.hasError?new vSe(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)}
1424if(r===1)return i.hasError?Promise.reject(i.error):Promise.resolve();if(i.hasError)throw i.error}return n()}function DK(i,e){return typeof i=="string"&&/^\.\.?\//.test(i)?i.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(t,r,n,s,o){return r?e?".jsx":".js":n&&(!s||!o)?t:n+s+"."+o.toLowerCase()+"js"}):i}var SS,J1,Q1,bSe,CS,vSe,_Se,yn=b(()=>{SS=function(i,e){return SS=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])},SS(i,e)};J1=function(){return J1=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},J1.apply(this,arguments)};Q1=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]};bSe=Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e},CS=function(i){return CS=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},CS(i)};vSe=typeof SuppressedError=="function"?SuppressedError:function(i,e,t){var r=new Error(t);return r.name="SuppressedError",r.error=i,r.suppressed=e,r};_Se={__extends:aK,__assign:J1,__rest:lK,__decorate:Z,__param:uK,__esDecorate:cK,__runInitializers:dK,__propKey:hK,__setFunctionName:fK,__metadata:pK,__awaiter:mK,__generator:gK,__createBinding:Q1,__exportStar:bK,__values:Z1,__read:IS,__spread:vK,__spreadArrays:_K,__spreadArray:yK,__await:Th,__asyncGenerator:xK,__asyncDelegator:wK,__asyncValues:SK,__makeTemplateOb
1424ject:CK,__importStar:IK,__importDefault:EK,__classPrivateFieldGet:kK,__classPrivateFieldSet:TK,__classPrivateFieldIn:AK,__addDisposableResource:MK,__disposeResources:RK,__rewriteRelativeImportExtension:DK}});var xSe,wSe,Vs,ev=b(()=>{xSe="0 0 calc((var(--elevation) * 0.225px) + 2px) rgba(0, 0, 0, calc(.11 * (2 - var(--background-luminance, 1))))",wSe="0 calc(var(--elevation) * 0.4px) calc((var(--elevation) * 0.9px)) rgba(0, 0, 0, calc(.13 * (2 - var(--background-luminance, 1))))",Vs=`box-shadow: ${xSe}, ${wSe};`});var tv,iv,OK,LK,rv,nv,sv,ES=b(()=>{B();oe();ye();Te();ko();tv=F`
1425  ${we("inline-flex")} :host {
1426    font-family: ${Me};
1427    outline: none;
1428    font-size: ${ke};
1429    line-height: ${Fe};
1430    height: calc(${xe} * 1px);
1431    min-width: calc(${xe} * 1px);
1432    background-color: ${Tt};
1433    color: ${fe};
1434    border-radius: calc(${ge} * 1px);
1435    fill: currentcolor;
1436    cursor: pointer;
1437    margin: calc((${be} + 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
1449      max(
1450        1px,
1451        calc((10 + (${K} * 2 * (${_t} + ${$l})))) * 1px
1452      );
1453    white-space: nowrap;
1454    outline: none;
1455    text-decoration: none;
1456    border: calc(${de} * 1px) solid transparent;
1457    color: inherit;
1458    border-radius: inherit;
1459    fill: inherit;
1460    cursor: inherit;
1461    font-family: inherit;
1462    font-size: inherit;
1463    line-height: inherit;
1464  }
1465
1466  :host(:hover) {
1467    background-color: ${ps};
1468  }
1469
1470  :host(:active) {
1471    background-color: ${zl};
1472  }
1473
1474  :host([aria-pressed='true']) {
1475    box-shadow: inset 0px 0px 2px 2px ${Eh};
1476  }
1477
1478  :host([minimal]),
1479  :host([scale='xsmall']) {
1480    --element-scale: -4;
1481  }
1482
1483  :host([scale='small']) {
1484    --element-scale: -2;
1485  }
1486
1487  :host([scale='medium']) {
1488    --element-scale: 0;
1489  }
1490
1491  :host([scale='large']) {
1492    --element-scale: 2;
1493  }
1494
1495  :host([scale='xlarge']) {
1496    --element-scale: 4;
1497  }
1498
1499  /* prettier-ignore */
1500  .control:${X} {
1501      outline: calc(${be} * 1px) solid ${KG};
1502      outline-offset: 2px;
1503      -moz-outline-radius: 0px;
1504    }
1505
1506  .control::-moz-focus-inner {
1507    border: 0;
1508  }
1509
1510  .start,
1511  .end {
1512    display: flex;
1513  }
1514
1515  .control.icon-only {
1516    padding: 0;
1517    line-height: 0;
1518  }
1519
1520  ::slotted(svg) {
1521    ${""} width: 16px;
1522    height: 16px;
1523    pointer-events: none;
1524  }
1525
1526  .start {
1527    margin-inline-end: 11px;
1528  }
1529
1530  .end {
1531    margin-inline-start: 11px;
1532  }
1533`.withBehaviors(ve(F`
1534    :host .control {
1535      background-color: ${D.ButtonFace};
1536      border-color: ${D.ButtonText};
1537      color: ${D.ButtonText};
1538      fill: currentColor;
1539    }
1540
1541    :host(:hover) .control {
1542      forced-color-adjust: none;
1543      background-color: ${D.Highlight};
1544      color: ${D.HighlightText};
1545    }
1546
1547    /* prettier-ignore */
1548    .control:${X} {
1549          forced-color-adjust: none;
1550          background-color: ${D.Highlight};
1551          outline-color: ${D.ButtonText};
1552          color: ${D.HighlightText};
1553        }
1554
1555    .control:hover,
1556    :host([appearance='outline']) .control:hover {
1557      border-color: ${D.ButtonText};
1558    }
1559
1560    :host([href]) .control {
1561      border-color: ${D.LinkText};
1562      color: ${D.LinkText};
1563    }
1564
1565    :host([href]) .control:hover,
1566        :host([href]) .control:${X} {
1567      forced-color-adjust: none;
1568      background: ${D.ButtonFace};
1569      outline-color: ${D.LinkText};
1570      color: ${D.LinkText};
1571      fill: currentColor;
1572    }
1573  `)),iv=F`
1574  :host([appearance='accent']) {
1575    background: ${ut};
1576    color: ${Ai};
1577  }
1578
1579  :host([appearance='accent']:hover) {
1580    background: ${Ti};
1581    color: ${mr};
1582  }
1583
1584  :host([appearance='accent'][aria-pressed='true']) {
1585    box-shadow: inset 0px 0px 2px 2px ${Co};
1586  }
1587
1588  :host([appearance='accent']:active) .control:active {
1589    background: ${Gt};
1590    color: ${Bi};
1591  }
1592
1593  :host([appearance="accent"]) .control:${X} {
1594    outline-color: ${qe};
1595  }
1596`.withBehaviors(ve(F`
1597    :host([appearance='accent']) .control {
1598      forced-color-adjust: none;
1599      background: ${D.Highlight};
1600      color: ${D.HighlightText};
1601    }
1602
1603    :host([appearance='accent']) .control:hover,
1604    :host([appearance='accent']:active) .control:active {
1605      background: ${D.HighlightText};
1606      border-color: ${D.Highlight};
1607      color: ${D.Highlight};
1608    }
1609
1610    :host([appearance="accent"]) .control:${X} {
1611      outline-color: ${D.Highlight};
1612    }
1613
1614    :host([appearance='accent'][href]) .control {
1615      background: ${D.LinkText};
1616      color: ${D.HighlightText};
1617    }
1618
1619    :host([appearance='accent'][href]) .control:hover {
1620      background: ${D.ButtonFace};
1621      border-color: ${D.LinkText};
1622      box-shadow: none;
1623      color: ${D.LinkText};
1624      fill: currentColor;
1625    }
1626
1627    :host([appearance="accent"][href]) .control:${X} {
1628      outline-color: ${D.HighlightText};
1629    }
1630  `)),OK=F`
1631  :host([appearance='error']) {
1632    background: ${$t};
1633    color: ${Ai};
1634  }
1635
1636  :host([appearance='error']:hover) {
1637    background: ${ai};
1638    color: ${mr};
1639  }
1640
1641  :host([appearance='error'][aria-pressed='true']) {
1642    box-shadow: inset 0px 0px 2px 2px ${ZG};
1643  }
1644
1645  :host([appearance='error']:active) .control:active {
1646    background: ${Mi};
1647    color: ${Bi};
1648  }
1649
1650  :host([appearance="error"]) .control:${X} {
1651    outline-color: ${At};
1652  }
1653`.withBehaviors(ve(F`
1654    :host([appearance='error']) .control {
1655      forced-color-adjust: none;
1656      background: ${D.Highlight};
1657      color: ${D.HighlightText};
1658    }
1659
1660    :host([appearance='error']) .control:hover,
1661    :host([appearance='error']:active) .control:active {
1662      background: ${D.HighlightText};
1663      border-color: ${D.Highlight};
1664      color: ${D.Highlight};
1665    }
1666
1667    :host([appearance="error"]) .control:${X} {
1668      outline-color: ${D.Highlight};
1669    }
1670
1671    :host([appearance='error'][href]) .control {
1672      background: ${D.LinkText};
1673      color: ${D.HighlightText};
1674    }
1675
1676    :host([appearance='error'][href]) .control:hover {
1677      background: ${D.ButtonFace};
1678      border-color: ${D.LinkText};
1679      box-shadow: none;
1680      color: ${D.LinkText};
1681      fill: currentColor;
1682    }
1683
1684    :host([appearance="error"][href]) .control:${X} {
1685      outline-color: ${D.HighlightText};
1686    }
1687  `)),LK=F`
1688  :host([appearance='hypertext']) {
1689    font-size: inherit;
1690    line-height: inherit;
1691    height: auto;
1692    min-width: 0;
1693    background: transparent;
1694  }
1695
1696  :host([appearance='hypertext']) .control {
1697    display: inline;
1698    padding: 0;
1699    border: none;
1700    box-shadow: none;
1701    border-radius: 0;
1702    line-height: 1;
1703  }
1704
1705  :host a.control:not(:link) {
1706    background-color: transparent;
1707    cursor: default;
1708  }
1709  :host([appearance='hypertext']) .control:link,
1710  :host([appearance='hypertext']) .control:visited {
1711    background: transparent;
1712    color: ${oi};
1713    border-bottom: calc(${de} * 1px) solid ${oi};
1714  }
1715
1716  :host([appearance='hypertext']:hover),
1717  :host([appearance='hypertext']) .control:hover {
1718    background: transparent;
1719    border-bottom-color: ${_a};
1720  }
1721
1722  :host([appearance='hypertext']:active),
1723  :host([appearance='hypertext']) .control:active {
1724    background: transparent;
1725    border-bottom-color: ${Co};
1726  }
1727
1728  :host([appearance="hypertext"]) .control:${X} {
1729    outline-color: transparent;
1730    border-bottom: calc(${be} * 1px) solid ${zi};
1731    margin-bottom: calc(calc(${de} - ${be}) * 1px);
1732  }
1733`.withBehaviors(ve(F`
1734    :host([appearance='hypertext']:hover) {
1735      background-color: ${D.ButtonFace};
1736      color: ${D.ButtonText};
1737    }
1738    :host([appearance="hypertext"][href]) .control:hover,
1739        :host([appearance="hypertext"][href]) .control:active,
1740        :host([appearance="hypertext"][href]) .control:${X} {
1741      color: ${D.LinkText};
1742      border-bottom-color: ${D.LinkText};
1743      box-shadow: none;
1744    }
1745  `)),rv=F`
1746  :host([appearance='lightweight']) {
1747    background: transparent;
1748    color: ${oi};
1749  }
1750
1751  :host([appearance='lightweight']) .control {
1752    padding: 0;
1753    height: initial;
1754    border: none;
1755    box-shadow: none;
1756    border-radius: 0;
1757  }
1758
1759  :host([appearance='lightweight']:hover) {
1760    background: transparent;
1761    color: ${_a};
1762  }
1763
1764  :host([appearance='lightweight']:active) {
1765    background: transparent;
1766    color: ${Co};
1767  }
1768
1769  :host([appearance='lightweight']) .content {
1770    position: relative;
1771  }
1772
1773  :host([appearance='lightweight']) .content::before {
1774    content: '';
1775    display: block;
1776    height: calc(${de} * 1px);
1777    position: absolute;
1778    top: calc(1em + 4px);
1779    width: 100%;
1780  }
1781
1782  :host([appearance='lightweight']:hover) .content::before {
1783    background: ${_a};
1784  }
1785
1786  :host([appearance='lightweight']:active) .content::before {
1787    background: ${Co};
1788  }
1789
1790  :host([appearance="lightweight"]) .control:${X} {
1791    outline-color: transparent;
1792  }
1793
1794  :host([appearance="lightweight"]) .control:${X} .content::before {
1795    background: ${fe};
1796    height: calc(${be} * 1px);
1797  }
1798`.withBehaviors(ve(F`
1799    :host([appearance="lightweight"]) .control:hover,
1800        :host([appearance="lightweight"]) .control:${X} {
1801      forced-color-adjust: none;
1802      background: ${D.ButtonFace};
1803      color: ${D.Highlight};
1804    }
1805    :host([appearance="lightweight"]) .control:hover .content::before,
1806        :host([appearance="lightweight"]) .control:${X} .content::before {
1807      background: ${D.Highlight};
1808    }
1809
1810    :host([appearance="lightweight"][href]) .control:hover,
1811        :host([appearance="lightweight"][href]) .control:${X} {
1812      background: ${D.ButtonFace};
1813      box-shadow: none;
1814      color: ${D.LinkText};
1815    }
1816
1817    :host([appearance="lightweight"][href]) .control:hover .content::before,
1818        :host([appearance="lightweight"][href]) .control:${X} .content::before {
1819      background: ${D.LinkText};
1820    }
1821  `)),nv=F`
1822  :host([appearance='outline']) {
1823    background: transparent;
1824    border-color: ${ut};
1825  }
1826
1827  :host([appearance='outline']:hover) {
1828    border-color: ${Ti};
1829  }
1830
1831  :host([appearance='outline']:active) {
1832    border-color: ${Gt};
1833  }
1834
1835  :host([appearance='outline']) .control {
1836    border-color: inherit;
1837  }
1838
1839  :host([appearance="outline"]) .control:${X} {
1840    outline-color: ${qe};
1841  }
1842`.withBehaviors(ve(F`
1843    :host([appearance='outline']) .control {
1844      border-color: ${D.ButtonText};
1845    }
1846    :host([appearance="outline"]) .control:${X} {
1847      forced-color-adjust: none;
1848      background-color: ${D.Highlight};
1849      outline-color: ${D.ButtonText};
1850      color: ${D.HighlightText};
1851      fill: currentColor;
1852    }
1853    :host([appearance='outline'][href]) .control {
1854      background: ${D.ButtonFace};
1855      border-color: ${D.LinkText};
1856      color: ${D.LinkText};
1857      fill: currentColor;
1858    }
1859    :host([appearance="outline"][href]) .control:hover,
1860        :host([appearance="outline"][href]) .control:${X} {
1861      forced-color-adjust: none;
1862      outline-color: ${D.LinkText};
1863    }
1864  `)),sv=F`
1865  :host([appearance='stealth']),
1866  :host([appearance='stealth'][disabled]:active),
1867  :host([appearance='stealth'][disabled]:hover) {
1868    background: transparent;
1869  }
1870
1871  :host([appearance='stealth']:hover) {
1872    background: ${vn};
1873  }
1874
1875  :host([appearance='stealth']:active) {
1876    background: ${_n};
1877  }
1878
1879  :host([appearance='stealth']) .control:${X} {
1880    outline-color: ${qe};
1881  }
1882
1883  /* Make the focus outline displayed within the button if
1884     it is in a start or end slot; e.g. in a tree item
1885     This will make the focus outline bounded within the container.
1886   */
1887  :host([appearance='stealth'][slot="end"]) .control:${X},
1888  :host([appearance='stealth'][slot="start"]) .control:${X} {
1889    outline-offset: -2px;
1890  }
1891`.withBehaviors(ve(F`
1892    :host([appearance='stealth']),
1893    :host([appearance='stealth']) .control {
1894      forced-color-adjust: none;
1895      background: ${D.ButtonFace};
1896      border-color: transparent;
1897      color: ${D.ButtonText};
1898      fill: currentColor;
1899    }
1900
1901    :host([appearance='stealth']:hover) .control {
1902      background: ${D.Highlight};
1903      border-color: ${D.Highlight};
1904      color: ${D.HighlightText};
1905      fill: currentColor;
1906    }
1907
1908    :host([appearance="stealth"]:${X}) .control {
1909      outline-color: ${D.Highlight};
1910      color: ${D.HighlightText};
1911      fill: currentColor;
1912    }
1913
1914    :host([appearance='stealth'][href]) .control {
1915      color: ${D.LinkText};
1916    }
1917
1918    :host([appearance="stealth"][href]:hover) .control,
1919        :host([appearance="stealth"][href]:${X}) .control {
1920      background: ${D.LinkText};
1921      border-color: ${D.LinkText};
1922      color: ${D.HighlightText};
1923      fill: currentColor;
1924    }
1925
1926    :host([appearance="stealth"][href]:${X}) .control {
1927      forced-color-adjust: none;
1928      box-shadow: 0 0 0 1px ${D.LinkText};
1929    }
1930  `))});var ql,$K=b(()=>{B();oe();ye();Te();ko();ql=F`
1931  ${we("inline-block")} :host {
1932    font-family: ${Me};
1933    outline: none;
1934    user-select: none;
1935    /* Ensure to display focus highlight */
1936    margin: calc((${be} - ${de}) * 1px);
1937  }
1938
1939  .root {
1940    box-sizing: border-box;
1941    position: relative;
1942    display: flex;
1943    flex-direction: row;
1944    color: ${fe};
1945    background: ${bn};
1946    border-radius: calc(${ge} * 1px);
1947    border: calc(${de} * 1px) solid ${Ch};
1948    height: calc(${xe} * 1px);
1949  }
1950
1951  :host([aria-invalid='true']) .root {
1952    border-color: ${$t};
1953  }
1954
1955  .control {
1956    -webkit-appearance: none;
1957    font: inherit;
1958    background: transparent;
1959    border: 0;
1960    color: inherit;
1961    height: calc(100% - 4px);
1962    width: 100%;
1963    margin-top: auto;
1964    margin-bottom: auto;
1965    border: none;
1966    padding: 0 calc(${K} * 2px + 1px);
1967    font-size: ${ke};
1968    line-height: ${Fe};
1969  }
1970
1971  .control:placeholder-shown {
1972    text-overflow: ellipsis;
1973  }
1974
1975  .control:hover,
1976  .control:${X},
1977  .control:disabled,
1978  .control:active {
1979    outline: none;
1980  }
1981
1982  .label {
1983    display: block;
1984    color: ${fe};
1985    cursor: pointer;
1986    font-size: ${ke};
1987    line-height: ${Fe};
1988    margin-bottom: 4px;
1989  }
1990
1991  .label__hidden {
1992    display: none;
1993    visibility: hidden;
1994  }
1995
1996  .start,
1997  .end {
1998    margin: auto;
1999    fill: currentcolor;
2000  }
2001
2002  ::slotted(svg) {
2003    /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
2004    width: 16px;
2005    height: 16px;
2006  }
2007
2008  .start {
2009    margin-inline-start: 11px;
2010  }
2011
2012  .end {
2013    margin-inline-end: 11px;
2014  }
2015
2016  :host(:hover:not([disabled])) .root {
2017    background: ${Mr};
2018    border-color: ${Ih};
2019  }
2020
2021  :host([aria-invalid='true']:hover:not([disabled])) .root {
2022    border-color: ${ai};
2023  }
2024
2025  :host(:active:not([disabled])) .root {
2026    background: ${Mr};
2027    border-color: ${Eh};
2028  }
2029
2030  :host([aria-invalid='true']:active:not([disabled])) .root {
2031    border-color: ${Mi};
2032  }
2033
2034  :host(:focus-within:not([disabled])) .root {
2035    border-color: ${qe};
2036    box-shadow: 0 0 0 calc((${be} - ${de}) * 1px)
2037      ${qe};
2038  }
2039
2040  :host([aria-invalid='true']:focus-within:not([disabled])) .root {
2041    border-color: ${At};
2042    box-shadow: 0 0 0 calc((${be} - ${de}) * 1px)
2043      ${At};
2044  }
2045
2046  :host([appearance='filled']) .root {
2047    background: ${Tt};
2048  }
2049
2050  :host([appearance='filled']:hover:not([disabled])) .root {
2051    background: ${ps};
2052  }
2053
2054  :host([disabled]) .label,
2055  :host([readonly]) .label,
2056  :host([readonly]) .control,
2057  :host([disabled]) .control {
2058    cursor: ${mt};
2059  }
2060
2061  :host([disabled]) {
2062    opacity: ${wt};
2063  }
2064
2065  :host([disabled]) .control {
2066    border-color: ${Dr};
2067  }
2068`.withBehaviors(ve(F`
2069    .root,
2070    :host([appearance='filled']) .root {
2071      forced-color-adjust: none;
2072      background: ${D.Field};
2073      border-color: ${D.FieldText};
2074    }
2075    :host([aria-invalid='true']) .root {
2076      border-style: dashed;
2077    }
2078    :host(:hover:not([disabled])) .root,
2079    :host([appearance='filled']:hover:not([disabled])) .root,
2080    :host([appearance='filled']:hover) .root {
2081      background: ${D.Field};
2082      border-color: ${D.Highlight};
2083    }
2084    .start,
2085    .end {
2086      fill: currentcolor;
2087    }
2088    :host([disabled]) {
2089      opacity: 1;
2090    }
2091    :host([disabled]) .root,
2092    :host([appearance='filled']:hover[disabled]) .root {
2093      border-color: ${D.GrayText};
2094      background: ${D.Field};
2095    }
2096    :host(:focus-within:enabled) .root {
2097      border-color: ${D.Highlight};
2098      box-shadow: 0 0 0 calc((${be} - ${de}) * 1px)
2099        ${D.Highlight};
2100    }
2101    input::placeholder {
2102      color: ${D.GrayText};
2103    }
2104  `))});var PK=b(()=>{ES();$K()});var ms,kS,ov=b(()=>{Te();ms=class{constructor(e,t){this.cache=
2104new WeakMap,this.ltr=e,this.rtl=t}bind(e){this.attach(e)}unbind(e){let t=this.cache.get(e);t&&xh.unsubscribe(t)}attach(e){let t=this.cache.get(e)||new kS(this.ltr,this.rtl,e),r=xh.getValueFor(e);xh.subscribe(t),t.attach(r),this.cache.set(e,t)}},kS=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 Kt=b(()=>{ev();PK();ko();ov()});function gs(i,e){return new k1("appearance",i,e)}var TS=b(()=>{oe()});var FK,NK=b(()=>{B();Kt();TS();FK=(i,e)=>F`
2105    ${tv}
2106  `.withBehaviors(gs("accent",iv),gs("hypertext",LK),gs("lightweight",rv),gs("outline",nv),gs("stealth",sv))});var av,AS,MS=b(()=>{yn();B();oe();NK();av=class extends cr{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")}};Z([A],av.prototype,"appearance",void 0);AS=av.compose({baseName:"anchor",baseClass:cr,template:Jb,styles:FK,shadowOptions:{delegatesFocus:!0}})});var BK,zK=b(()=>{B();BK=(i,e)=>F`
2107  :host {
2108    contain: layout;
2109    display: block;
2110  }
2111`});var RS,DS,OS=b(()=>{oe();zK();RS=class extends We{},DS=RS.compose({baseName:"anchored-region",baseClass:We,template:NH,styles:BK})});var SSe,CSe,qK,HK=b(()=>{B();oe();Te();ov();SSe=(i,e)=>F`
2112  ::slotted(${i.tagFor(us)}) {
2113    left: 0;
2114  }
2115`,CSe=(i,e)=>F`
2116  ::slotted(${i.tagFor(us)}) {
2117    right: 0;
2118  }
2119`,qK=(i,e)=>F`
2120    ${we("flex")} :host {
2121      position: relative;
2122      height: var(--avatar-size, var(--avatar-size-default));
2123      width: var(--avatar-size, var(--avatar-size-default));
2124      --avatar-size-default: calc(
2125        (
2126            (${zn} + ${_t}) * ${K} +
2127              ((${K} * 8) - 40)
2128          ) * 1px
2129      );
2130      --avatar-text-size: ${ke};
2131      --avatar-text-ratio: ${K};
2132    }
2133
2134    .link {
2135      text-decoration: none;
2136      color: ${fe};
2137      display: flex;
2138      flex-direction: row;
2139      justify-content: center;
2140      align-items: center;
2141      min-width: 100%;
2142    }
2143
2144    .square {
2145      border-radius: calc(${ge} * 1px);
2146      min-width: 100%;
2147      overflow: hidden;
2148    }
2149
2150    .circle {
2151      border-radius: 100%;
2152      min-width: 100%;
2153      overflow: hidden;
2154    }
2155
2156    .backplate {
2157      position: relative;
2158      display: flex;
2159      background-color: ${ut};
2160    }
2161
2162    .media,
2163    ::slotted(img) {
2164      max-width: 100%;
2165      position: absolute;
2166      display: block;
2167    }
2168
2169    .content {
2170      font-size: calc(
2171        (
2172            var(--avatar-text-size) +
2173              var(--avatar-size, var(--avatar-size-default))
2174          ) / var(--avatar-text-ratio)
2175      );
2176      line-height: var(--avatar-size, var(--avatar-size-default));
2177      display: block;
2178      min-height: var(--avatar-size, var(--avatar-size-default));
2179    }
2180
2181    ::slotted(${i.tagFor(us)}) {
2182      position: absolute;
2183      display: block;
2184    }
2185  `.withBehaviors(new ms(CSe(i,e),SSe(i,e)))});var nm,ISe,LS,$S=b(()=>{yn();B();oe();HK();nm=class extends ca{};Z([A({attribute:"src"})],nm.prototype,"imgSrc",void 0);Z([A],nm.prototype,"alt",void 0);ISe=H`
2186  ${Xe(i=>i.imgSrc,H`
2187      <img
2188        src="${i=>i.imgSrc}"
2189        alt="${i=>i.alt}"
2190        slot="media"
2191        class="media"
2192        part="media"
2193      />
2194    `)}
2195`,LS=nm.compose({baseName:"avatar",baseClass:ca,template:VH,styles:qK,media:ISe,shadowOptions:{delegatesFocus:!0}})});var jK,VK=b(()=>{B();oe();Te();Kt();jK=(i,e)=>F`
2196  ${we("inline-block")} :host {
2197    box-sizing: border-box;
2198    font-family: ${Me};
2199    font-size: ${Pl};
2200    line-height: ${Fl};
2201  }
2202
2203  .control {
2204    border-radius: calc(${ge} * 1px);
2205    padding: calc(((${K} * 0.5) - ${de}) * 1px)
2206      calc((${K} - ${de}) * 1px);
2207    color: ${fe};
2208    font-weight: 600;
2209    border: calc(${de} * 1px) solid transparent;
2210    background-color: ${Tt};
2211  }
2212
2213  .control[style] {
2214    font-weight: 400;
2215  }
2216
2217  :host([circular]) .control {
2218    border-radius: 100px;
2219    padding: 0 calc(${K} * 1px);
2220    height: calc((${xe} - (${K} * 3)) * 1px);
2221    min-width: calc((${xe} - (${K} * 3)) * 1px);
2222    display: flex;
2223    align-items: center;
2224    justify-content: center;
2225    box-sizing: border-box;
2226  }
2227`});var PS,FS,NS=b(()=>{oe();VK();PS=class extends us{},FS=PS.compose({baseName:"badge",baseClass:us,template:KH,styles:jK})});var UK,WK=b(()=>{B();oe();Te();UK=(i,e)=>F`
2228  ${we("inline-block")} :host {
2229    box-sizing: border-box;
2230    font-family: ${Me};
2231    font-size: ${ke};
2232    line-height: ${Fe};
2233  }
2234
2235  .list {
2236    display: flex;
2237    flex-wrap: wrap;
2238  }
2239`});var BS,zS,qS=b(()=>{oe();WK();BS=class extends uh{},zS=BS.compose({baseName:"breadcrumb",baseClass:uh,template:tj,styles:UK})});var GK,KK=b(()=>{B();oe();ye();Te();Kt();GK=(i,e)=>F`
2240    ${we("inline-flex")} :host {
2241        background: transparent;
2242        box-sizing: border-box;
2243        font-family: ${Me};
2244        font-size: ${ke};
2245        fill: currentColor;
2246        line-height: ${Fe};
2247        min-width: calc(${xe} * 1px);
2248        outline: none;
2249        color: ${fe}
2250    }
2251
2252    .listitem {
2253        display: flex;
2254        align-items: center;
2255        width: max-content;
2256    }
2257
2258    .separator {
2259        margin: 0 6px;
2260        display: flex;
2261    }
2262
2263    .control {
2264        align-items: center;
2265        box-sizing: border-box;
2266        color: ${oi};
2267        cursor: pointer;
2268        display: flex;
2269        fill: inherit;
2270        outline: none;
2271        text-decoration: none;
2272        white-space: nowrap;
2273    }
2274
2275    .control:hover {
2276        color: ${_a};
2277    }
2278
2279    .control:active {
2280        color: ${Co};
2281    }
2282
2283    .control .content {
2284        position: relative;
2285    }
2286
2287    .control .content::before {
2288        content: "";
2289        display: block;
2290        height: calc(${de} * 1px);
2291        left: 0;
2292        position: absolute;
2293        right: 0;
2294        top: calc(1em + 4px);
2295        width: 100%;
2296    }
2297
2298    .control:hover .content::before {
2299        background: ${_a};
2300    }
2301
2302    .control:active .content::before {
2303        background: ${Co};
2304    }
2305
2306    .control:${X} .content::before {
2307        background: ${GG};
2308        height: calc(${be} * 1px);
2309    }
2310
2311    .control:not([href]) {
2312        color: ${fe};
2313        cursor: default;
2314    }
2315
2316    .control:not([href]) .content::before {
2317        background: none;
2318    }
2319
2320    .start,
2321    .end {
2322        display: flex;
2323    }
2324
2325    ::slotted(svg) {
2326        /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
2327        width: 16px;
2328        height: 16px;
2329    }
2330
2331    .start {
2332        margin-inline-end: 6px;
2333    }
2334
2335    .end {
2336        margin-inline-start: 6px;
2337    }
2338`.withBehaviors(ve(F`
2339      .control:hover .content::before,
2340                .control:${X} .content::before {
2341        background: ${D.LinkText};
2342      }
2343      .start,
2344      .end {
2345        fill: ${D.ButtonText};
2346      }
2347    `))});var HS,jS,VS=b(()=>{oe();KK();HS=class extends yo{},jS=HS.compose({baseName:"breadcrumb-item",baseClass:yo,template:ZH,styles:GK,separator:"/",shadowOptions:{delegatesFocus:!0}})});var YK,XK=b(()=>{B();oe();ye();Te();ES();TS();YK=(i,e)=>F`
2348    :host([disabled]),
2349    :host([disabled]:hover),
2350    :host([disabled]:active) {
2351      opacity: ${wt};
2352      background-color: ${Tt};
2353      cursor: ${mt};
2354    }
2355
2356    ${tv}
2357  `.withBehaviors(ve(F`
2358      :host([disabled]),
2359      :host([disabled]) .control,
2360      :host([disabled]:hover),
2361      :host([disabled]:active) {
2362        forced-color-adjust: none;
2363        background-color: ${D.ButtonFace};
2364        outline-color: ${D.GrayText};
2365        color: ${D.GrayText};
2366        cursor: ${mt};
2367        opacity: 1;
2368      }
2369    `),gs("accent",F`
2370        :host([appearance='accent'][disabled]),
2371        :host([appearance='accent'][disabled]:hover),
2372        :host([appearance='accent'][disabled]:active) {
2373          background: ${ut};
2374        }
2375
2376        ${iv}
2377      `.withBehaviors(ve(F`
2378          :host([appearance='accent'][disabled]) .control,
2379          :host([appearance='accent'][disabled]) .control:hover {
2380            background: ${D.ButtonFace};
2381            border-color: ${D.GrayText};
2382            color: ${D.GrayText};
2383          }
2384        `))),gs("error",F`
2385        :host([appearance='error'][disabled]),
2386        :host([appearance='error'][disabled]:hover),
2387        :host([appearance='error'][disabled]:active) {
2388          background: ${$t};
2389        }
2390
2391        ${OK}
2392      `.withBehaviors(ve(F`
2393          :host([appearance='error'][disabled]) .control,
2394          :host([appearance='error'][disabled]) .control:hover {
2395            background: ${D.ButtonFace};
2396            border-color: ${D.GrayText};
2397            color: ${D.GrayText};
2398          }
2399        `))),gs("lightweight",F`
2400        :host([appearance='lightweight'][disabled]:hover),
2401        :host([appearance='lightweight'][disabled]:active) {
2402          background-color: transparent;
2403          color: ${oi};
2404        }
2405
2406        :host([appearance='lightweight'][disabled]) .content::before,
2407        :host([appearance='lightweight'][disabled]:hover) .content::before,
2408        :host([appearance='lightweight'][disabled]:active) .content::before {
2409          background: transparent;
2410        }
2411
2412        ${rv}
2413      `.withBehaviors(ve(F`
2414          :host([appearance='lightweight'].disabled) .control {
2415            forced-color-adjust: none;
2416            color: ${D.GrayText};
2417          }
2418
2419          :host([appearance='lightweight'].disabled)
2420            .control:hover
2421            .content::before {
2422            background: none;
2423          }
2424        `))),gs("outline",F`
2425        :host([appearance='outline'][disabled]),
2426        :host([appearance='outline'][disabled]:hover),
2427        :host([appearance='outline'][disabled]:active) {
2428          background: transparent;
2429          border-color: ${ut};
2430        }
2431
2432        ${nv}
2433      `.withBehaviors(ve(F`
2434          :host([appearance='outline'][disabled]) .control {
2435            border-color: ${D.GrayText};
2436          }
2437        `))),gs("stealth",F`
2438        ${sv}
2439      `.withBehaviors(ve(F`
2440          :host([appearance='stealth'][disabled]) {
2441            background: ${D.ButtonFace};
2442          }
2443
2444          :host([appearance='stealth'][disabled]) .control {
2445            background: ${D.ButtonFace};
2446            border-color: transparent;
2447            color: ${D.GrayText};
2448          }
2449        `))))});var Ah,sm,US=b(()=>{yn();B();oe();XK();Ah=class extends Xr{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")}};Z([A],Ah.prototype,"appearance",void 0);Z([A({attribute:"minimal",mode:"boolean"})],Ah.prototype,"minimal",void 0);Z([A],Ah.prototype,"scale",void 0);sm=Ah.compose({baseName:"button",baseClass:Xr,template:sj,styles:YK,shadowOptions:{delegatesFocus:!0}})});var JK,ZK=b(()=>{B();oe();ye();Te();Kt();JK=(i,e)=>F`
2450    ${we("block")} :host {
2451      --elevation: 4;
2452      display: block;
2453      contain: content;
2454      height: var(--card-height, 100%);
2455      width: var(--card-width, 100%);
2456      box-sizing: border-box;
2457      background: ${ze};
2458      border-radius: calc(${ge} * 1px);
2459      ${Vs}
2460    }
2461  `.withBehaviors(ve(F`
2462      :host {
2463        forced-color-adjust: none;
2464        background: ${D.Canvas};
2465        box-shadow: 0 0 0 1px ${D.CanvasText};
2466      }
2467    `))});var WS,GS,KS=b(()=>{oe();Te();ZK();WS=class extends Hp{connectedCallback(){super.connectedCallback();let e=ha(this);e&&ze.setValueFor(this,t=>im.getValueFor(t).evaluate(t,ze.getValueFor(e)))}},GS=WS.compose({baseName:"card",baseClass:Hp,template:Ij,styles:JK})});var QK,eY=b(()=>{B();oe();ye();Te();Kt();QK=(i,e)=>F`
2468    ${we("inline-flex")} :host {
2469      align-items: center;
2470      outline: none;
2471      margin: calc(${K} * 1px) 0;
2472      /* Chromium likes to select label text or the default slot when the checkbox is
2473            clicked. Maybe there is a better solution here? */
2474      user-select: none;
2475    }
2476
2477    .control {
2478      position: relative;
2479      width: calc((${xe} / 2 + ${K}) * 1px);
2480      height: calc((${xe} / 2 + ${K}) * 1px);
2481      box-sizing: border-box;
2482      border-radius: calc(${ge} * 1px);
2483      border: calc(${de} * 1px) solid ${Dr};
2484      background: ${bn};
2485      outline: none;
2486      cursor: pointer;
2487    }
2488
2489    :host([aria-invalid='true']) .control {
2490      border-color: ${$t};
2491    }
2492
2493    .label {
2494      font-family: ${Me};
2495      color: ${fe};
2496      /* Need to discuss with Brian how HorizontalSpacingNumber can work.
2497            https://github.com/microsoft/fast/issues/2766 */
2498      padding-inline-start: calc(${K} * 2px + 2px);
2499      margin-inline-end: calc(${K} * 2px + 2px);
2500      cursor: pointer;
2501      font-size: ${ke};
2502      line-height: ${Fe};
2503    }
2504
2505    .label__hidden {
2506      display: none;
2507      visibility: hidden;
2508    }
2509
2510    .checked-indicator {
2511      width: 100%;
2512      height: 100%;
2513      display: block;
2514      fill: ${Ai};
2515      opacity: 0;
2516      pointer-events: none;
2517    }
2518
2519    .indeterminate-indicator {
2520      border-radius: calc(${ge} * 1px);
2521      background: ${Ai};
2522      position: absolute;
2523      top: 50%;
2524      left: 50%;
2525      width: 50%;
2526      height: 50%;
2527      transform: translate(-50%, -50%);
2528      opacity: 0;
2529    }
2530
2531    :host(:not([disabled])) .control:hover {
2532      background: ${Mr};
2533      border-color: ${wa};
2534    }
2535
2536    :host(:not([disabled])) .control:active {
2537      background: ${Io};
2538      border-color: ${kh};
2539    }
2540
2541    :host([aria-invalid='true']:not([disabled])) .control:hover {
2542      border-color: ${ai};
2543    }
2544
2545    :host([aria-invalid='true']:not([disabled])) .control:active {
2546      border-color: ${Mi};
2547    }
2548
2549    :host(:${X}) .control {
2550      outline: calc(${be} * 1px) solid ${qe};
2551      outline-offset: 2px;
2552    }
2553
2554    :host([aria-invalid='true']:${X}) .control {
2555      outline-color: ${At};
2556    }
2557
2558    :host([aria-checked='true']) .control {
2559      background: ${ut};
2560      border: calc(${de} * 1px) solid ${ut};
2561    }
2562
2563    :host([aria-checked='true']:not([disabled])) .control:hover {
2564      background: ${Ti};
2565      border: calc(${de} * 1px) solid ${Ti};
2566    }
2567
2568    :host([aria-invalid='true'][aria-checked='true']) .control {
2569      background-color: ${$t};
2570      border-color: ${$t};
2571    }
2572
2573    :host([aria-invalid='true'][aria-checked='true']:not([disabled]))
2574      .control:hover {
2575      background-color: ${ai};
2576      border-color: ${ai};
2577    }
2578
2579    :host([aria-checked='true']:not([disabled]))
2580      .control:hover
2581      .checked-indicator {
2582      fill: ${mr};
2583    }
2584
2585    :host([aria-checked='true']:not([disabled]))
2586      .control:hover
2587      .indeterminate-indicator {
2588      background: ${mr};
2589    }
2590
2591    :host([aria-checked='true']:not([disabled])) .control:active {
2592      background: ${Gt};
2593      border: calc(${de} * 1px) solid ${Gt};
2594    }
2595
2596    :host([aria-invalid='true'][aria-checked='true']:not([disabled]))
2597      .control:active {
2598      background-color: ${Mi};
2599      border-color: ${Mi};
2600    }
2601
2602    :host([aria-checked='true']:not([disabled]))
2603      .control:active
2604      .checked-indicator {
2605      fill: ${Bi};
2606    }
2607
2608    :host([aria-checked='true']:not([disabled]))
2609      .control:active
2610      .indeterminate-indicator {
2611      background: ${Bi};
2612    }
2613
2614    :host([aria-checked="true"]:${X}:not([disabled])) .control {
2615      outline: calc(${be} * 1px) solid ${qe};
2616      outline-offset: 2px;
2617    }
2618
2619    :host([aria-invalid='true'][aria-checked="true"]:${X}:not([disabled])) .control {
2620      outline-color: ${At};
2621    }
2622
2623    :host([disabled]) .label,
2624    :host([readonly]) .label,
2625    :host([readonly]) .control,
2626    :host([disabled]) .control {
2627      cursor: ${mt};
2628    }
2629
2630    :host([aria-checked='true']:not(.indeterminate)) .checked-indicator,
2631    :host(.indeterminate) .indeterminate-indicator {
2632      opacity: 1;
2633    }
2634
2635    :host([disabled]) {
2636      opacity: ${wt};
2637    }
2638  `.withBehaviors(ve(F`
2639      .control {
2640        forced-color-adjust: none;
2641        border-color: ${D.FieldText};
2642        background: ${D.Field};
2643      }
2644      :host([aria-invalid='true']) .control {
2645        border-style: dashed;
2646      }
2647      .checked-indicator {
2648        fill: ${D.FieldText};
2649      }
2650      .indeterminate-indicator {
2651        background: ${D.FieldText};
2652      }
2653      :host(:not([disabled])) .control:hover,
2654      .control:active {
2655        border-color: ${D.Highlight};
2656        background: ${D.Field};
2657      }
2658      :host(:${X}) .control {
2659        outline: calc(${be} * 1px) solid ${D.FieldText};
2660        outline-offset: 2px;
2661      }
2662      :host([aria-checked="true"]:${X}:not([disabled])) .control {
2663        outline: calc(${be} * 1px) solid ${D.FieldText};
2664        outline-offset: 2px;
2665      }
2666      :host([aria-checked='true']) .control {
2667        background: ${D.Highlight};
2668        border-color: ${D.Highlight};
2669      }
2670      :host([aria-checked='true']:not([disabled])) .control:hover,
2671      .control:active {
2672        border-color: ${D.Highlight};
2673        background: ${D.HighlightText};
2674      }
2675      :host([aria-checked='true']) .checked-indicator {
2676        fill: ${D.HighlightText};
2677      }
2678      :host([aria-checked='true']:not([disabled]))
2679        .control:hover
2680        .checked-indicator {
2681        fill: ${D.Highlight};
2682      }
2683      :host([aria-checked='true']) .indeterminate-indicator {
2684        background: ${D.HighlightText};
2685      }
2686      :host([aria-checked='true']) .control:hover .indeterminate-indicator {
2687        background: ${D.Highlight};
2688      }
2689      :host([disabled]) {
2690        opacity: 1;
2691      }
2692      :host([disabled]) .control {
2693        forced-color-adjust: none;
2694        border-color: ${D.GrayText};
2695        background: ${D.Field};
2696      }
2697      :host([disabled]) .indeterminate-indicator,
2698      :host([aria-checked='true'][disabled])
2699        .control:hover
2700        .indeterminate-indicator {
2701        forced-color-adjust: none;
2702        background: ${D.GrayText};
2703      }
2704      :host([disabled]) .checked-indicator,
2705      :host([aria-checked='true'][disabled]) .control:hover .checked-indicator {
2706        forced-color-adjust: none;
2707        fill: ${D.GrayText};
2708      }
2709    `))});var ESe,YS,XS,JS=b(()=>{oe();eY();B();ESe=(i,e)=>H`
2710  <template
2711    role="checkbox"
2712    aria-checked="${t=>t.checked}"
2713    aria-required="${t=>t.required}"
2714    aria-disabled="${t=>t.disabled}"
2715    aria-readonly="${t=>t.readOnly}"
2716    tabindex="${t=>t.disabled?null:0}"
2717    @keypress="${(t,r)=>t.keypressHandler(r.event)}"
2718    @click="${(t,r)=>t.clickHandler(r.event)}"
2719  >
2720    <div part="control" class="control">
2721      <slot name="checked-indicator">
2722        ${e.checkedIndicator||""}
2723      </slot>
2724      <slot name="indeterminate-indicator">
2725        ${e.indeterminateIndicator||""}
2726      </slot>
2727    </div>
2728    <label
2729      part="label"
2730      class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"
2731    >
2732      <slot ${Oe("defaultSlottedNodes")}></slot>
2733    </label>
2734  </template>
2735`,YS=class extends El{indeterminateChanged(e,t){this.indeterminate?this.classList.add("indeterminate"):this.classList.remove("indeterminate")}},XS=YS.compose({baseName:"checkbox",baseClass:El,template:ESe,styles:QK,checkedIndicator:`
2736        <svg
2737            part="checked-indicator"
2738            class="checked-indicator"
2739            viewBox="0 0 20 20"
2740            xmlns="http://www.w3.org/2000/svg"
2741        >
2742            <path
2743                fill-rule="evenodd"
2744                clip-rule="evenodd"
2745                d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"
2746            />
2747        </svg>
2748    `,indeterminateIndicator:`
2749        <div part="indeterminate-indicator" class="indeterminate-indicator"></div>
2750    `})});var lv,ZS=b(()=>{B();oe();ye();Te();ko();lv=(i,e)=>{let t=i.tagFor(dr),r=i.name===i.tagFor(pn)?"":".listbox";return F`
2751        ${r?"":we("inline-flex")}
2752
2753        :host ${r} {
2754            background: ${ze};
2755            border: calc(${de} * 1px) solid ${Dr};
2756            border-radius: calc(${ge} * 1px);
2757            box-sizing: border-box;
2758            flex-direction: column;
2759            padding: calc(${K} * 1px) 0;
2760        }
2761
2762        ${r?"":F`
2763:host(:${X}:not([disabled])) {
2764                outline: none;
2765            }
2766
2767            :host(:focus-within:not([disabled])) {
2768                border-color: ${zi};
2769                box-shadow: 0 0 0
2770                    calc((${be} - ${de}) * 1px)
2771                    ${zi} inset;
2772            }
2773
2774            :host([disabled]) ::slotted(*) {
2775                cursor: ${mt};
2776                opacity: ${wt};
2777                pointer-events: none;
2778            }
2779        `}
2780
2781        ${r||":host([size])"} {
2782            max-height: calc(
2783                (var(--size) * ${xe} + (${K} * ${de} * 2)) * 1px
2784            );
2785            overflow-y: auto;
2786        }
2787
2788        :host([size="0"]) ${r} {
2789            max-height: none;
2790        }
2791    `.withBehaviors(ve(F`
2792                :host(:not([multiple]):${X}) ::slotted(${t}[aria-selected="true"]),
2793                :host([multiple]:${X}) ::slotted(${t}[aria-checked="true"]) {
2794                    border-color: ${D.ButtonText};
2795                    box-shadow: 0 0 0 calc(${be} * 1px) inset ${D.HighlightText};
2796                }
2797
2798                :host(:not([multiple]):${X}) ::slotted(${t}[aria-selected="true"]) {
2799                    background: ${D.Highlight};
2800                    color: ${D.HighlightText};
2801                    fill: currentcolor;
2802                }
2803
2804                ::slotted(${t}[aria-selected="true"]:not([aria-checked="true"])) {
2805                    background: ${D.Highlight};
2806                    border-color: ${D.HighlightText};
2807                    color: ${D.HighlightText};
2808                }
2809            `))}});var uv,QS=b(()=>{B();oe();ye();Te();ZS();ev();ko();uv=(i,e)=>{let t=i.name===i.tagFor(mn);return F`
2810  ${we("inline-flex")}
2811  
2812  :host {
2813    --elevation: 14;
2814    background: ${bn};
2815    border-radius: calc(${ge} * 1px);
2816    border: calc(${de} * 1px) solid ${Ch};
2817    box-sizing: border-box;
2818    color: ${fe};
2819    font-family: ${Me};
2820    height: calc(${xe} * 1px);
2821    position: relative;
2822    user-select: none;
2823    min-width: 250px;
2824    outline: none;
2825    vertical-align: top;
2826  }
2827
2828  :host([aria-invalid='true']) {
2829    border-color: ${$t};
2830  }
2831  
2832  :host(:not([autowidth])) {
2833    min-width: 250px;
2834  }
2835  
2836  ${t?F`
2837  :host(:not([aria-haspopup])) {
2838    --elevation: 0;
2839    border: 0;
2840    height: auto;
2841    min-width: 0;
2842  }
2843  `:""}
2844  
2845  ${lv(i,e)}
2846  
2847  :host .listbox {
2848    ${Vs}
2849    border: none;
2850    display: flex;
2851    left: 0;
2852    position: absolute;
2853    width: 100%;
2854    z-index: 1;
2855  }
2856  
2857  .control + .listbox {
2858    --stroke-size: calc(${K} * ${de} * 2);
2859    max-height: calc(
2860      (var(--listbox-max-height) * ${xe} + var(--stroke-size)) * 1px
2861      );
2862  }
2863  
2864  ${t?F`
2865  :host(:not([aria-haspopup])) .listbox {
2866    left: auto;
2867    position: static;
2868    z-index: auto;
2869  }
2870  `:""}
2871  
2872  :host(:not([autowidth])) .listbox {
2873    width: 100%;
2874  }
2875  
2876  :host([autowidth]) ::slotted([role='option']),
2877  :host([autowidth]) ::slotted(option) {
2878    padding: 0 calc(1em + ${K} * 1.25px + 1px);
2879  }
2880  
2881  .listbox[hidden] {
2882    display: none;
2883  }
2884  
2885  .control {
2886    align-items: center;
2887    box-sizing: border-box;
2888    cursor: pointer;
2889    display: flex;
2890    font-size: ${ke};
2891    font-family: inherit;
2892    line-height: ${Fe};
2893    min-height: 100%;
2894    padding: 0 calc(${K} * 2.25px);
2895    width: 100%;
2896  }
2897
2898  :host([minimal]),
2899  :host([scale='xsmall']) {
2900    --element-scale: -4;
2901  }
2902
2903  :host([scale='small']) {
2904    --element-scale: -2;
2905  }
2906
2907  :host([scale='medium']) {
2908    --element-scale: 0;
2909  }
2910
2911  :host([scale='large']) {
2912    --element-scale: 2;
2913  }
2914
2915  :host([scale='xlarge']) {
2916    --element-scale: 4;
2917  }
2918  
2919  :host(:not([disabled]):hover) {
2920    background: ${Mr};
2921    border-color: ${Ih};
2922  }
2923  
2924  :host([aria-invalid='true']:not([disabled]):hover) {
2925    border-color: ${ai};
2926  }
2927  
2928  :host(:${X}) {
2929    border-color: ${qe};
2930    box-shadow: 0 0 0 calc((${be} - ${de}) * 1px)
2931    ${qe};
2932  }
2933  
2934  :host([aria-invalid='true']:${X}) {
2935    border-color: ${At};
2936    box-shadow: 0 0 0 calc((${be} - ${de}) * 1px)
2937    ${At};
2938  }
2939  
2940  :host(:not([size]):not([multiple]):not([open]):${X}),
2941  :host([multiple]:${X}),
2942  :host([size]:${X}) {
2943    box-shadow: 0 0 0 calc((${be} - ${de}) * 1px)
2944    ${qe};
2945  }
2946  
2947  :host([aria-invalid='true']:not([size]):not([multiple]):not([open]):${X}),
2948  :host([aria-invalid='true'][multiple]:${X}),
2949  :host([aria-invalid='true'][size]:${X}) {
2950    box-shadow: 0 0 0 calc((${be} - ${de}) * 1px)
2951    ${At};
2952  }
2953  
2954  :host(:not([multiple]):not([size]):${X}) ::slotted(${i.tagFor(dr)}[aria-selected="true"]:not([disabled])) {
2955    box-shadow: 0 0 0 calc(${be} * 1px) inset ${qe};
2956    border-color: ${qe};
2957    background: ${qe};
2958    color: ${WG};
2959  }
2960    
2961  :host([disabled]) {
2962    cursor: ${mt};
2963    opacity: ${wt};
2964  }
2965  
2966  :host([disabled]) .control {
2967    cursor: ${mt};
2968    user-select: none;
2969  }
2970  
2971  :host([disabled]:hover) {
2972    background: ${Rr};
2973    color: ${fe};
2974    fill: currentcolor;
2975  }
2976  
2977  :host(:not([disabled])) .control:active {
2978    background: ${Io};
2979    border-color: ${Gt};
2980    border-radius: calc(${ge} * 1px);
2981  }
2982  
2983  :host([open][position="above"]) .listbox {
2984    border-bottom-left-radius: 0;
2985    border-bottom-right-radius: 0;
2986    border-bottom: 0;
2987    bottom: calc(${xe} * 1px);
2988  }
2989  
2990  :host([open][position="below"]) .listbox {
2991    border-top-left-radius: 0;
2992    border-top-right-radius: 0;
2993    border-top: 0;
2994    top: calc(${xe} * 1px);
2995  }
2996  
2997  .selected-value {
2998    flex: 1 1 auto;
2999    font-family: inherit;
3000    overflow: hidden;
3001    text-align: start;
3002    text-overflow: ellipsis;
3003    white-space: nowrap;
3004  }
3005  
3006  .indicator {
3007    flex: 0 0 auto;
3008    margin-inline-start: 1em;
3009  }
3010  
3011  slot[name="listbox"] {
3012    display: none;
3013    width: 100%;
3014  }
3015  
3016  :host([open]) slot[name="listbox"] {
3017    display: flex;
3018    position: absolute;
3019    ${Vs}
3020  }
3021  
3022  .end {
3023    margin-inline-start: auto;
3024  }
3025  
3026  .start,
3027  .end,
3028  .indicator,
3029  .select-indicator,
3030  ::slotted(svg) {
3031    /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
3032    fill: currentcolor;
3033    height: 1em;
3034    min-height: calc(${K} * 4px);
3035    min-width: calc(${K} * 4px);
3036    width: 1em;
3037  }
3038  
3039  ::slotted([role="option"]),
3040  ::slotted(option) {
3041    flex: 0 0 auto;
3042  }
3043  `.withBehaviors(ve(F`
3044      :host(:not([disabled]):hover),
3045      :host(:not([disabled]):active) {
3046        border-color: ${D.Highlight};
3047      }
3048
3049      :host([aria-invalid='true']) {
3050        border-style: dashed;
3051      }
3052      
3053      :host(:not([disabled]):${X}) {
3054        background-color: ${D.ButtonFace};
3055        box-shadow: 0 0 0 calc(${be} * 1px) ${D.Highlight};
3056        color: ${D.ButtonText};
3057        fill: currentcolor;
3058        forced-color-adjust: none;
3059      }
3060      
3061      :host(:not([disabled]):${X}) .listbox {
3062        background: ${D.ButtonFace};
3063      }
3064      
3065      :host([disabled]) {
3066        border-color: ${D.GrayText};
3067        background-color: ${D.ButtonFace};
3068        color: ${D.GrayText};
3069        fill: currentcolor;
3070        opacity: 1;
3071        forced-color-adjust: none;
3072      }
3073      
3074      :host([disabled]:hover) {
3075        background: ${D.ButtonFace};
3076      }
3077      
3078      :host([disabled]) .control {
3079        color: ${D.GrayText};
3080        border-color: ${D.GrayText};
3081      }
3082      
3083      :host([disabled]) .control .select-indicator {
3084        fill: ${D.GrayText};
3085      }
3086      
3087      :host(:${X}) ::slotted([aria-selected="true"][role="option"]),
3088      :host(:${X}) ::slotted(option[aria-selected="true"]),
3089      :host(:${X}) ::slotted([aria-selected="true"][role="option"]:not([disabled])) {
3090        background: ${D.Highlight};
3091        border-color: ${D.ButtonText};
3092        box-shadow: 0 0 0 calc((${be} - ${de}) * 1px)
3093        ${D.HighlightText};
3094        color: ${D.HighlightText};
3095        fill: currentcolor;
3096      }
3097      
3098      .start,
3099      .end,
3100      .indicator,
3101      .select-indicator,
3102      ::slotted(svg) {
3103        color: ${D.ButtonText};
3104        fill: currentcolor;
3105      }
3106      `))}});var tY,iY=b(()=>{B();oe();Te();QS();tY=(i,e)=>F`
3107  ${uv(i,e)}
3108
3109  :host(:empty) .listbox {
3110    display: none;
3111  }
3112
3113  :host([disabled]) *,
3114  :host([disabled]) {
3115    cursor: ${mt};
3116    user-select: none;
3117  }
3118
3119  :host(:focus-within:not([disabled])) {
3120    border-color: ${qe};
3121    box-shadow: 0 0 0 calc((${be} - ${de}) * 1px)
3122      ${qe};
3123  }
3124
3125  :host([aria-invalid='true']:focus-within:not([disabled])) {
3126    border-color: ${At};
3127    box-shadow: 0 0 0 calc((${be} - ${de}) * 1px)
3128      ${At};
3129  }
3130
3131  .selected-value {
3132    -webkit-appearance: none;
3133    background: transparent;
3134    border: none;
3135    color: inherit;
3136    font-size: ${ke};
3137    line-height: ${Fe};
3138    height: calc(100% - (${de} * 1px));
3139    margin: auto 0;
3140    width: 100%;
3141  }
3142
3143  .selected-value:hover,
3144    .selected-value:${X},
3145    .selected-value:disabled,
3146    .selected-value:active {
3147    outline: none;
3148  }
3149`});var Mh,eC,tC=b(()=>{yn();B();oe();Te();iY();Mh=class extends hs{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/W1.getValueFor(this)).toString();this.computedStylesheet=F`
3150      :host {
3151        --listbox-max-height: ${e};
3152      }
3153    `,this.$fastController.addStyles(this.computedStylesheet)}};Z([A({attribute:"autowidth",mode:"boolean"})],Mh.prototype,"autoWidth",void 0);Z([A({attribute:"minimal",mode:"boolean"})],Mh.prototype,"minimal",void 0);Z([A],Mh.prototype,"scale",void 0);eC=Mh.compose({baseName:"combobox",baseClass:hs,template:$j,styles:tY,shadowOptions:{delegatesFocus:!0},indicator:`
3154        <svg
3155            class="select-indicator"
3156            part="select-indicator"
3157            viewBox="0 0 12 7"
3158            xmlns="http://www.w3.org/2000/svg"
3159        >
3160            <path
3161                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"
3162            />
3163        </svg>
3164    `})});var rY,nY=b(()=>{B();rY=(i,e)=>F`
3165  :host {
3166    display: flex;
3167    position: relative;
3168    flex-direction: column;
3169  }
3170`});var sY,oY=b(()=>{B();Te();sY=(i,e)=>F`
3171  :host {
3172    display: grid;
3173    padding: 1px 0;
3174    box-sizing: border-box;
3175    width: 100%;
3176    border-bottom: calc(${de} * 1px) solid ${js};
3177  }
3178
3179  :host(.header) {
3180  }
3181
3182  :host(.sticky-header) {
3183    background: ${Tt};
3184    position: sticky;
3185    top: 0;
3186  }
3187`});var aY,lY=b(()=>{B();ye();oe();Te();aY=(i,e)=>F`
3188    :host {
3189      padding: calc(${K} * 1px) calc(${K} * 3px);
3190      color: ${fe};
3191      box-sizing: border-box;
3192      font-family: ${Me};
3193      font-size: ${ke};
3194      line-height: ${Fe};
3195      font-weight: 400;
3196      border: transparent calc(${be} * 1px) solid;
3197      overflow: hidden;
3198      white-space: nowrap;
3199      border-radius: calc(${ge} * 1px);
3200    }
3201
3202    :host(.column-header) {
3203      font-weight: 600;
3204    }
3205
3206    :host(:${X}) {
3207      outline: calc(${be} * 1px) solid ${qe};
3208      color: ${fe};
3209    }
3210  `.withBehaviors(ve(F`
3211      :host {
3212        forced-color-adjust: none;
3213        border-color: transparent;
3214        background: ${D.Field};
3215        color: ${D.FieldText};
3216      }
3217
3218      :host(:${X}) {
3219        border-color: ${D.FieldText};
3220        box-shadow: 0 0 0 2px inset ${D.Field};
3221        color: ${D.FieldText};
3222      }
3223    `))});var iC,sC,rC,oC,nC,aC,lC=b(()=>{oe();nY();oY();lY();iC=class extends cs{},sC=iC.compose({baseName:"data-grid-cell",baseClass:cs,template:yj,styles:aY}),rC=class extends Ei{},oC=rC.compose({baseName:"data-grid-row",baseClass:Ei,template:vj,styles:sY}),nC=class extends si{},aC=nC.compose({baseName:"data-grid",baseClass:si,template:mj,styles:rY})});var uC,cv,uY=b(()=>{oe();uC=class extends ee{},cv=class extends vi(uC){constructor(){super(...arguments),this.proxy=document.createElement("input")}}});var cC,cY=b(()=>{cC={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 dC,qn,hC=b(()=>{yn();B();ye();oe();uY();cY();dC="Invalid Date",qn=class extends cv{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()===dC?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()!==dC?t.valueOf()+e:0).toString()}stepDown(){let e=864e5*this.step,t=new Date(this.value);this.value=new Date(t.toString()!==dC?Math.max(t.valueOf()-e,0):0).toString()}connectedCallback(){super.connectedCallback(),this.validate(),this.control.value=this.value,this.autofocus&&ce.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 Ot:return this.stepUp(),!1;case Dt:return this.stepDown(),!1}return!0}handleBlur(){this.control.value=this.value}};Z([A],qn.prototype,"appearance",void 0);Z([A({attribute:"readonly",mode:"boolean"})],qn.prototype,"readOnly",void 0);Z([A({mode:"boolean"})],qn.prototype,"autofocus",void 0);Z([A],qn.prototype,"list",void 0);Z([A({converter:me})],qn.prototype,"step",void 0);Z([A({converter:cC})],qn.prototype,"max",void 0);Z([A({converter:cC})],qn.prototype,"min",void 0);Z([P],qn.prototype,"defaultSlottedNodes",void 0);He(qn,ht,wo)});var dY,hY=b(()=>{B();Kt();dY=(i,e)=>F`
3224  ${ql}
3225`});var fY,fC=b(()=>{B();oe();fY=(i,e)=>H`
3226  <template class="${t=>t.readOnly?"readonly":""}">
3227    <label
3228      part="label"
3229      for="control"
3230      class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"
3231    >
3232      <slot
3233        ${Oe({property:"defaultSlottedNodes",filter:mh})}
3234      ></slot>
3235    </label>
3236    <div class="root" part="root">
3237      ${xt(i,e)}
3238      <input
3239        class="control"
3240        part="control"
3241        id="control"
3242        @input="${t=>t.handleTextInput()}"
3243        @change="${t=>t.handleChange()}"
3244        ?autofocus="${t=>t.autofocus}"
3245        ?disabled="${t=>t.disabled}"
3246        list="${t=>t.list}"
3247        ?readonly="${t=>t.readOnly}"
3248        ?required="${t=>t.required}"
3249        :value="${t=>t.value}"
3250        type="date"
3251        aria-atomic="${t=>t.ariaAtomic}"
3252        aria-busy="${t=>t.ariaBusy}"
3253        aria-controls="${t=>t.ariaControls}"
3254        aria-current="${t=>t.ariaCurrent}"
3255        aria-describedby="${t=>t.ariaDescribedby}"
3256        aria-details="${t=>t.ariaDetails}"
3257        aria-disabled="${t=>t.ariaDisabled}"
3258        aria-errormessage="${t=>t.ariaErrormessage}"
3259        aria-flowto="${t=>t.ariaFlowto}"
3260        aria-haspopup="${t=>t.ariaHaspopup}"
3261        aria-hidden="${t=>t.ariaHidden}"
3262        aria-invalid="${t=>t.ariaInvalid}"
3263        aria-keyshortcuts="${t=>t.ariaKeyshortcuts}"
3264        aria-label="${t=>t.ariaLabel}"
3265        aria-labelledby="${t=>t.ariaLabelledby}"
3266        aria-live="${t=>t.ariaLive}"
3267        aria-owns="${t=>t.ariaOwns}"
3268        aria-relevant="${t=>t.ariaRelevant}"
3269        aria-roledescription="${t=>t.ariaRoledescription}"
3270        ${Ae("control")}
3271      />
3272      ${yt(i,e)}
3273    </div>
3274  </template>
3275`});var pC,mC=b(()=>{hC();hY();fC();hC();fC();pC=qn.compose({baseName:"date-field",styles:dY,template:fY,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 dv,pY,Ce,kSe,TSe,cmt,gC=b(()=>{yn();eh();B();oe();ye();ih();Te();dv={toView(i){return i==null?null:i?.toColorString()},fromView(i){if(i==null)return null;let e=un(i);return e?Fi.create(e.r,e.g,e.b):null}},pY=F`
3276  :host {
3277    background-color: ${ze};
3278    color: ${fe};
3279  }
3280`.withBehaviors(ve(F`
3281    :host {
3282      background-color: ${D.ButtonFace};
3283      box-shadow: 0 0 0 1px ${D.CanvasText};
3284      color: ${D.ButtonText};
3285    }
3286  `));Ce=class extends ee{constructor(){super(),this.noPaint=!1;let e={handleChange:this.noPaintChanged.bind(this)};_e.getNotifier(this).subscribe(e,"fillColor"),_e.getNotifier(this).subscribe(e,"baseLayerLuminance")}noPaintChanged(){!this.noPaint&&(this.fillColor!==void 0||this.baseLayerLuminance)?this.$fastController.addStyles(pY):this.$fastController.removeStyles(pY)}};Z([A({attribute:"no-paint",mode:"boolean"})],Ce.prototype,"noPaint",void 0);Z([A({attribute:"fill-color",converter:dv}),Ie(ze)],Ce.prototype,"fillColor",void 0);Z([A({attribute:"accent-color",converter:dv,mode:"fromView"}),Ie(tm)],Ce.prototype,"accentColor",void 0);Z([A({attribute:"neutral-color",converter:dv,mode:"fromView"}),Ie(em)],Ce.prototype,"neutralColor",void 0);Z([A({attribute:"error-color",converter:dv,mode:"fromView"}),Ie(rm)],Ce.prototype,"errorColor",void 0);Z([A({converter:me}),Ie(_t)],Ce.prototype,"density",void 0);Z([A({attribute:"design-unit",converter:me}),Ie(K)],Ce.prototype,"designUnit",void 0);Z([A({attribute:"direction"}),Ie(xh)],Ce.prototype,"direction",void 0);Z([A({attribute:"base-height-multiplier",converter:me}),Ie(zn)],Ce.prototype,"baseHeightMultiplier",void 0);Z([A({attribute:"base-horizontal-spacing-multiplier",converter:me}),Ie(MG)],Ce.prototype,"baseHorizontalSpacingMultiplier",void 0);Z([A({attribute:"control-corner-radius",converter:me}),Ie(ge)],Ce.prototype,"controlCornerRadius",void 0);Z([A({attribute:"stroke-width",converter:me}),Ie(de)],Ce.prototype,"strokeWidth",void 0);Z([A({attribute:"focus-stroke-width",converter:me}),Ie(be)],Ce.prototype,"focusStrokeWidth",void 0);Z([A({attribute:"disabled-opacity",converter:me}),Ie(wt)],Ce.prototype,"disabledOpacity",void 0);Z([A({attribute:"type-ramp-minus-2-font-size"}),Ie(RG)],Ce.prototype,"typeRampMinus2FontSize",void 0);Z([A({attribute:"type-ramp-minus-2-line-height"}),Ie(DG)],Ce.prototype,"typeRampMinus2LineHeight",void 0);Z([A({attribute:"type-ramp-minus-1-font-size"}),Ie(Pl)],Ce.prototype,"typeRampMinus1FontSize",void 0);Z([A({attribute:"type-ramp-minus-1-line-height"}),Ie(Fl)],Ce.prototype,"typeRampMinus1LineHeight",void 0);Z([A({attribute:"type-ramp-base-font-size"}),Ie(ke)],Ce.prototype,"typeRampBaseFontSize",void 0);Z([A({attribute:"type-ramp-base-line-height"}),Ie(Fe)],Ce.prototype,"typeRampBaseLineHeight",void 0);Z([A({attribute:"type-ramp-plus-1-font-size"}
3286),Ie(Nl)],Ce.prototype,"typeRampPlus1FontSize",void 0);Z([A({attribute:"type-ramp-plus-1-line-height"}),Ie(OG)],Ce.prototype,"typeRampPlus1LineHeight",void 0);Z([A({attribute:"type-ramp-plus-2-font-size"}),Ie(LG)],Ce.prototype,"typeRampPlus2FontSize",void 0);Z([A({attribute:"type-ramp-plus-2-line-height"}),Ie($G)],Ce.prototype,"typeRampPlus2LineHeight",void 0);Z([A({attribute:"type-ramp-plus-3-font-size"}),Ie(PG)],Ce.prototype,"typeRampPlus3FontSize",void 0);Z([A({attribute:"type-ramp-plus-3-line-height"}),Ie(FG)],Ce.prototype,"typeRampPlus3LineHeight",void 0);Z([A({attribute:"type-ramp-plus-4-font-size"}),Ie(NG)],Ce.prototype,"typeRampPlus4FontSize",void 0);Z([A({attribute:"type-ramp-plus-4-line-height"}),Ie(BG)],Ce.prototype,"typeRampPlus4LineHeight",void 0);Z([A({attribute:"type-ramp-plus-5-font-size"}),Ie(zG)],Ce.prototype,"typeRampPlus5FontSize",void 0);Z([A({attribute:"type-ramp-plus-5-line-height"}),Ie(qG)],Ce.prototype,"typeRampPlus5LineHeight",void 0);Z([A({attribute:"type-ramp-plus-6-font-size"}),Ie(HG)],Ce.prototype,"typeRampPlus6FontSize",void 0);Z([A({attribute:"type-ramp-plus-6-line-height"}),Ie(jG)],Ce.prototype,"typeRampPlus6LineHeight",void 0);Z([A({attribute:"accent-fill-rest-delta",converter:me}),Ie(VG)],Ce.prototype,"accentFillRestDelta",void 0);Z([A({attribute:"accent-fill-hover-delta",converter:me}),Ie(Wc)],Ce.prototype,"accentFillHoverDelta",void 0);Z([A({attribute:"accent-fill-active-delta",converter:me}),Ie(D1)],Ce.prototype,"accentFillActiveDelta",void 0);Z([A({attribute:"accent-fill-focus-delta",converter:me}),Ie(O1)],Ce.prototype,"accentFillFocusDelta",void 0);Z([A({attribute:"accent-foreground-rest-delta",converter:me}),Ie(L1)],Ce.prototype,"accentForegroundRestDelta",void 0);Z([A({attribute:"accent-foreground-hover-delta",converter:me}),Ie($1)],Ce.prototype,"accentForegroundHoverDelta",void 0);Z([A({attribute:"accent-foreground-active-delta",converter:me}),Ie(P1)],Ce.prototype,"accentForegroundActiveDelta",void 0);Z([A({attribute:"accent-foreground-focus-delta",converter:me}),Ie(F1)],Ce.prototype,"accentForegroundFocusDelta",void 0);Z([A({attribute:"neutral-fill-rest-delta",converter:me}),Ie(ga)],Ce.prototype,"neutralFillRestDelta",void 0);Z([A({attribute:"neutral-fill-hover-delta",converter:me}),Ie(ba)],Ce.prototype,"neutralFillHoverDelta",void 0);Z([A({attribute:"neutral-fill-active-delta",converter:me}),Ie(va)],Ce.prototype,"neutralFillActiveDelta",void 0);Z([A({attribute:"neutral-fill-focus-delta",converter:me}),Ie(N1)],Ce.prototype,"neutralFillFocusDelta",void 0);Z([A({attribute:"neutral-fill-input-rest-delta",converter:me}),Ie(J3)],Ce.prototype,"neutralFillInputRestDelta",void 0);Z([A({attribute:"neutral-fill-input-hover-delta",converter:me}),Ie(Z3)],Ce.prototype,"neutralFillInputHoverDelta",void 0);Z([A({attribute:"neutral-fill-input-active-delta",converter:me}),Ie(Q3)],Ce.prototype,"neutralFillInputActiveDelta",void 0);Z([A({attribute:"neutral-fill-input-focus-delta",converter:me}),Ie(eS)],Ce.prototype,"neutralFillInputFocusDelta",void 0);Z([A({attribute:"neutral-fill-stealth-rest-delta",converter:me}),Ie(tS)],Ce.prototype,"neutralFillStealthRestDelta",void 0);Z([A({attribute:"neutral-fill-stealth-hover-delta",converter:me}),Ie(iS)],Ce.prototype,"neutralFillStealthHoverDelta",void 0);Z([A({attribute:"neutral-fill-stealth-active-delta",converter:me}),Ie(rS)],Ce.prototype,"neutralFillStealthActiveDelta",void 0);Z([A({attribute:"neutral-fill-stealth-focus-delta",converter:me}),Ie(nS)],Ce.prototype,"neutralFillStealthFocusDelta",void 0);Z([A({attribute:"neutral-fill-strong-hover-delta",converter:me}),Ie(sS)],Ce.prototype,"neutralFillStrongHoverDelta",void 0);Z([A({attribute:"neutral-fill-strong-active-delta",converter:me}),Ie(oS)],Ce.prototype,"neutralFillStrongActiveDelta",void 0);Z([A({attribute:"neutral-fill-strong-focus-delta",converter:me}),Ie(aS)],Ce.prototype,"neutralFillStrongFocusDelta",void 0);Z([A({attribute:"base-layer-luminance",converter:me}),Ie(So)],Ce.prototype,"baseLayerLuminance",void 0);Z([A({attribute:"neutral-fill-layer-rest-delta",converter:me}),Ie(Bl)],Ce.prototype,"neutralFillLayerRestDelta",void 0);Z([A({attribute:"neutral-stroke-divider-rest-delta",converter:me}),Ie(hS)],Ce.prototype,"neutralStrokeDividerRestDelta",void 0);Z([A({attribute:"neutral-stroke-rest-delta",converter:me}),Ie(lS)],Ce.prototype,"neutralStrokeRestDelta",void 0);Z([A({attribute:"neutral-stroke-hover-delta",converter:me}),Ie(uS)],Ce.prototype,"neutralStrokeHoverDelta",void 0);Z([A({attribute:"neutral-stroke-active-delta",converter:me}),Ie(cS)],Ce.prototype,"neutralStrokeActiveDelta",void 0);Z([A({attribute:"neutral-stroke-focus-delta",converter:me}),Ie(dS)],Ce.prototype,"neutralStrokeFocusDelta",void 0);kSe=(i,e)=>H` <slot></slot> `,TSe=(i,e)=>F`
3287  ${we("block")}
3288`,cmt=Ce.compose({baseName:"design-system-provider",template:kSe,styles:TSe})});var mY,gY=b(()=>{B();Te();
3288ev();mY=(i,e)=>F`
3289  :host([hidden]) {
3290    display: none;
3291  }
3292
3293  :host {
3294    --elevation: 14;
3295    --dialog-height: 480px;
3296    --dialog-width: 640px;
3297    display: block;
3298  }
3299
3300  .overlay {
3301    position: fixed;
3302    top: 0;
3303    left: 0;
3304    right: 0;
3305    bottom: 0;
3306    background: rgba(0, 0, 0, 0.3);
3307    touch-action: none;
3308  }
3309
3310  .positioning-region {
3311    display: flex;
3312    justify-content: center;
3313    position: fixed;
3314    top: 0;
3315    bottom: 0;
3316    left: 0;
3317    right: 0;
3318    overflow: auto;
3319  }
3320
3321  .control {
3322    ${Vs}
3323    margin-top: auto;
3324    margin-bottom: auto;
3325    width: var(--dialog-width);
3326    height: var(--dialog-height);
3327    background-color: ${ze};
3328    z-index: 1;
3329    border-radius: calc(${ge} * 1px);
3330    border: calc(${de} * 1px) solid transparent;
3331  }
3332`});var bC,vC,_C=b(()=>{oe();gY();bC=class extends Tr{},vC=bC.compose({baseName:"dialog",baseClass:Tr,template:Vj,styles:mY})});var bY,vY=b(()=>{B();Te();bY=(i,e)=>F`
3333  .disclosure {
3334    transition: height 0.35s;
3335  }
3336
3337  .disclosure .invoker::-webkit-details-marker {
3338    display: none;
3339  }
3340
3341  .disclosure .invoker {
3342    list-style-type: none;
3343  }
3344
3345  :host([appearance='accent']) .invoker {
3346    background: ${ut};
3347    color: ${Ai};
3348    font-family: ${Me};
3349    font-size: ${ke};
3350    border-radius: calc(${ge} * 1px);
3351    outline: none;
3352    cursor: pointer;
3353    margin: 16px 0;
3354    padding: 12px;
3355    max-width: max-content;
3356  }
3357
3358  :host([appearance='accent']) .invoker:active {
3359    background: ${Gt};
3360    color: ${Bi};
3361  }
3362
3363  :host([appearance='accent']) .invoker:hover {
3364    background: ${Ti};
3365    color: ${mr};
3366  }
3367
3368  :host([appearance='lightweight']) .invoker {
3369    background: transparent;
3370    color: ${oi};
3371    border-bottom: calc(${de} * 1px) solid ${oi};
3372    cursor: pointer;
3373    width: max-content;
3374    margin: 16px 0;
3375  }
3376
3377  :host([appearance='lightweight']) .invoker:active {
3378    border-bottom-color: ${Co};
3379  }
3380
3381  :host([appearance='lightweight']) .invoker:hover {
3382    border-bottom-color: ${_a};
3383  }
3384
3385  .disclosure[open] .invoker ~ * {
3386    animation: fadeIn 0.5s ease-in-out;
3387  }
3388
3389  @keyframes fadeIn {
3390    0% {
3391      opacity: 0;
3392    }
3393    100% {
3394      opacity: 1;
3395    }
3396  }
3397`});var hv,yC,xC=b(()=>{yn();B();oe();vY();hv=class extends Hc{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}};Z([A],hv.prototype,"appearance",void 0);yC=hv.compose({baseName:"disclosure",baseClass:Hc,template:Qj,styles:bY})});var _Y,yY=b(()=>{B();oe();Te();_Y=(i,e)=>F`
3398  ${we("block")} :host {
3399    box-sizing: content-box;
3400    height: 0;
3401    margin: calc(${K} * 1px) 0;
3402    border-top: calc(${de} * 1px) solid ${js};
3403    border-left: none;
3404  }
3405
3406  :host([orientation='vertical']) {
3407    height: 100%;
3408    margin: 0 calc(${K} * 1px);
3409    border-top: none;
3410    border-left: calc(${de} * 1px) solid ${js};
3411  }
3412`});var wC,SC,CC=b(()=>{oe();yY();wC=class extends jc{},SC=wC.compose({baseName:"divider",baseClass:jc,template:rV,styles:_Y})});var IC,EC,kC=b(()=>{B();oe();ZS();IC=class extends pn{sizeChanged(e,t){super.sizeChanged(e,t),this.updateComputedStylesheet()}updateComputedStylesheet(){this.computedStylesheet&&this.$fastController.removeStyles(this.computedStylesheet);let e=`${this.size}`;this.computedStylesheet=F`
3413      :host {
3414        --size: ${e};
3415      }
3416    `,this.$fastController.addStyles(this.computedStylesheet)}},EC=IC.compose({baseName:"listbox",baseClass:pn,template:_V,styles:lv})});var xY,wY=b(()=>{B();oe();ye();Te();Kt();xY=(i,e)=>F`
3417    ${we("block")} :host {
3418      --elevation: 11;
3419      background: ${ze};
3420      border: calc(${de} * 1px) solid transparent;
3421      ${Vs}
3422      margin: 0;
3423      border-radius: calc(${ge} * 1px);
3424      padding: calc(${K} * 1px) 0;
3425      max-width: 368px;
3426      min-width: 64px;
3427    }
3428
3429    :host([slot='submenu']) {
3430      width: max-content;
3431      margin: 0 calc(${K} * 1px);
3432    }
3433
3434    ::slotted(hr) {
3435      box-sizing: content-box;
3436      height: 0;
3437      margin: 0;
3438      border: none;
3439      border-top: calc(${de} * 1px) solid ${js};
3440    }
3441  `.withBehaviors(ve(F`
3442      :host {
3443        background: ${D.Canvas};
3444        border-color: ${D.CanvasText};
3445      }
3446    `))});
3446var TC,AC,MC=b(()=>{oe();Te();wY();TC=class extends fa{connectedCallback(){super.connectedCallback(),ze.setValueFor(this,wh)}},AC=TC.compose({baseName:"menu",baseClass:fa,template:NV,styles:xY})});var SY,CY=b(()=>{B();oe();ye();Te();Kt();SY=(i,e)=>F`
3447    ${we("grid")} :host {
3448      contain: layout;
3449      overflow: visible;
3450      font-family: ${Me};
3451      outline: none;
3452      box-sizing: border-box;
3453      height: calc(${xe} * 1px);
3454      grid-template-columns: minmax(42px, auto) 1fr minmax(42px, auto);
3455      grid-template-rows: auto;
3456      justify-items: center;
3457      align-items: center;
3458      padding: 0;
3459      margin: 0 calc(${K} * 1px);
3460      white-space: nowrap;
3461      background: ${Rr};
3462      color: ${fe};
3463      fill: currentcolor;
3464      cursor: pointer;
3465      font-size: ${ke};
3466      line-height: ${Fe};
3467      border-radius: calc(${ge} * 1px);
3468      border: calc(${be} * 1px) solid transparent;
3469    }
3470
3471    :host(:hover) {
3472      position: relative;
3473      z-index: 1;
3474    }
3475
3476    :host(.indent-0) {
3477      grid-template-columns: auto 1fr minmax(42px, auto);
3478    }
3479    :host(.indent-0) .content {
3480      grid-column: 1;
3481      grid-row: 1;
3482      margin-inline-start: 10px;
3483    }
3484    :host(.indent-0) .expand-collapse-glyph-container {
3485      grid-column: 5;
3486      grid-row: 1;
3487    }
3488    :host(.indent-2) {
3489      grid-template-columns:
3490        minmax(42px, auto) minmax(42px, auto) 1fr minmax(42px, auto)
3491        minmax(42px, auto);
3492    }
3493    :host(.indent-2) .content {
3494      grid-column: 3;
3495      grid-row: 1;
3496      margin-inline-start: 10px;
3497    }
3498    :host(.indent-2) .expand-collapse-glyph-container {
3499      grid-column: 5;
3500      grid-row: 1;
3501    }
3502    :host(.indent-2) .start {
3503      grid-column: 2;
3504    }
3505    :host(.indent-2) .end {
3506      grid-column: 4;
3507    }
3508
3509    :host(:${X}) {
3510      border-color: ${qe};
3511      background: ${Sh};
3512      color: ${fe};
3513    }
3514
3515    :host(:hover) {
3516      background: ${vn};
3517      color: ${fe};
3518    }
3519
3520    :host(:active) {
3521      background: ${_n};
3522    }
3523
3524    :host([aria-checked='true']),
3525    :host(.expanded) {
3526      background: ${Tt};
3527      color: ${fe};
3528    }
3529
3530    :host([disabled]) {
3531      cursor: ${mt};
3532      opacity: ${wt};
3533    }
3534
3535    :host([disabled]:hover) {
3536      color: ${fe};
3537      fill: currentcolor;
3538      background: ${Rr};
3539    }
3540
3541    :host([disabled]:hover) .start,
3542    :host([disabled]:hover) .end,
3543    :host([disabled]:hover)::slotted(svg) {
3544      fill: ${fe};
3545    }
3546
3547    .expand-collapse-glyph {
3548      /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
3549      width: calc((16 + ${_t}) * 1px);
3550      height: calc((16 + ${_t}) * 1px);
3551      fill: currentcolor;
3552    }
3553
3554    .content {
3555      grid-column-start: 2;
3556      justify-self: start;
3557      overflow: hidden;
3558      text-overflow: ellipsis;
3559    }
3560
3561    .start,
3562    .end {
3563      display: flex;
3564      justify-content: center;
3565    }
3566
3567    ::slotted(svg) {
3568      /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
3569      width: 16px;
3570      height: 16px;
3571
3572      /* Something like that would do if the typography is adaptive
3573      font-size: inherit;
3574      width: ${Nl};
3575      height: ${Nl};
3576      */
3577    }
3578
3579    :host(:hover) .start,
3580    :host(:hover) .end,
3581    :host(:hover)::slotted(svg),
3582    :host(:active) .start,
3583    :host(:active) .end,
3584    :host(:active)::slotted(svg) {
3585      fill: ${fe};
3586    }
3587
3588    :host(.indent-0[aria-haspopup='menu']) {
3589      display: grid;
3590      grid-template-columns: minmax(42px, auto) auto 1fr minmax(42px, auto) minmax(
3591          42px,
3592          auto
3593        );
3594      align-items: center;
3595      min-height: 32px;
3596    }
3597
3598    :host(.indent-1[aria-haspopup='menu']),
3599    :host(.indent-1[role='menuitemcheckbox']),
3600    :host(.indent-1[role='menuitemradio']) {
3601      display: grid;
3602      grid-template-columns: minmax(42px, auto) auto 1fr minmax(42px, auto) minmax(
3603          42px,
3604          auto
3605        );
3606      align-items: center;
3607      min-height: 32px;
3608    }
3609
3610    :host(.indent-2:not([aria-haspopup='menu'])) .end {
3611      grid-column: 5;
3612    }
3613
3614    :host .input-container,
3615    :host .expand-collapse-glyph-container {
3616      display: none;
3617    }
3618
3619    :host([aria-haspopup='menu']) .expand-collapse-glyph-container,
3620    :host([role='menuitemcheckbox']) .input-container,
3621    :host([role='menuitemradio']) .input-container {
3622      display: grid;
3623      margin-inline-end: 10px;
3624    }
3625
3626    :host([aria-haspopup='menu']) .content,
3627    :host([role='menuitemcheckbox']) .content,
3628    :host([role='menuitemradio']) .content {
3629      grid-column-start: 3;
3630    }
3631
3632    :host([aria-haspopup='menu'].indent-0) .content {
3633      grid-column-start: 1;
3634    }
3635
3636    :host([aria-haspopup='menu']) .end,
3637    :host([role='menuitemcheckbox']) .end,
3638    :host([role='menuitemradio']) .end {
3639      grid-column-start: 4;
3640    }
3641
3642    :host .expand-collapse,
3643    :host .checkbox,
3644    :host .radio {
3645      display: flex;
3646      align-items: center;
3647      justify-content: center;
3648      position: relative;
3649      width: 20px;
3650      height: 20px;
3651      box-sizing: border-box;
3652      outline: none;
3653      margin-inline-start: 10px;
3654    }
3655
3656    :host .checkbox,
3657    :host .radio {
3658      border: calc(${de} * 1px) solid ${fe};
3659    }
3660
3661    :host([aria-checked='true']) .checkbox,
3662    :host([aria-checked='true']) .radio {
3663      background: ${ut};
3664      border-color: ${ut};
3665    }
3666
3667    :host .checkbox {
3668      border-radius: calc(${ge} * 1px);
3669    }
3670
3671    :host .radio {
3672      border-radius: 999px;
3673    }
3674
3675    :host .checkbox-indicator,
3676    :host .radio-indicator,
3677    :host .expand-collapse-indicator,
3678    ::slotted([slot='checkbox-indicator']),
3679    ::slotted([slot='radio-indicator']),
3680    ::slotted([slot='expand-collapse-indicator']) {
3681      display: none;
3682    }
3683
3684    ::slotted([slot='end']:not(svg)) {
3685      margin-inline-end: 10px;
3686      color: ${xa};
3687    }
3688
3689    :host([aria-checked='true']) .checkbox-indicator,
3690    :host([aria-checked='true']) ::slotted([slot='checkbox-indicator']) {
3691      width: 100%;
3692      height: 100%;
3693      display: block;
3694      fill: ${Ai};
3695      pointer-events: none;
3696    }
3697
3698    :host([aria-checked='true']) .radio-indicator {
3699      position: absolute;
3700      top: 4px;
3701      left: 4px;
3702      right: 4px;
3703      bottom: 4px;
3704      border-radius: 999px;
3705      display: block;
3706      background: ${Ai};
3707      pointer-events: none;
3708    }
3709
3710    :host([aria-checked='true']) ::slotted([slot='radio-indicator']) {
3711      display: block;
3712      pointer-events: none;
3713    }
3714  `.withBehaviors(ve(F`
3715      :host {
3716        border-color: transparent;
3717        color: ${D.ButtonText};
3718        forced-color-adjust: none;
3719      }
3720
3721      :host(:hover) {
3722        background: ${D.Highlight};
3723        color: ${D.HighlightText};
3724      }
3725
3726      :host(:hover) .start,
3727      :host(:hover) .end,
3728      :host(:hover)::slotted(svg),
3729      :host(:active) .start,
3730      :host(:active) .end,
3731      :host(:active)::slotted(svg) {
3732        fill: ${D.HighlightText};
3733      }
3734
3735      :host(.expanded) {
3736        background: ${D.Highlight};
3737        border-color: ${D.Highlight};
3738        color: ${D.HighlightText};
3739      }
3740
3741      :host(:${X}) {
3742        background: ${D.Highlight};
3743        border-color: ${D.ButtonText};
3744        box-shadow: 0 0 0 calc(${be} * 1px) inset
3745          ${D.HighlightText};
3746        color: ${D.HighlightText};
3747        fill: currentcolor;
3748      }
3749
3750      :host([disabled]),
3751      :host([disabled]:hover),
3752      :host([disabled]:hover) .start,
3753      :host([disabled]:hover) .end,
3754      :host([disabled]:hover)::slotted(svg) {
3755        background: ${D.Canvas};
3756        color: ${D.GrayText};
3757        fill: currentcolor;
3758        opacity: 1;
3759      }
3760
3761      :host .expanded-toggle,
3762      :host .checkbox,
3763      :host .radio {
3764        border-color: ${D.ButtonText};
3765        background: ${D.HighlightText};
3766      }
3767
3768      :host([checked='true']) .checkbox,
3769      :host([checked='true']) .radio {
3770        background: ${D.HighlightText};
3771        border-color: ${D.HighlightText};
3772      }
3773
3774      :host(:hover) .expanded-toggle,
3775            :host(:hover) .checkbox,
3776            :host(:hover) .radio,
3777            :host(:${X}) .expanded-toggle,
3778            :host(:${X}) .checkbox,
3779            :host(:${X}) .radio,
3780            :host([checked="true"]:hover) .checkbox,
3781            :host([checked="true"]:hover) .radio,
3782            :host([checked="true"]:${X}) .checkbox,
3783            :host([checked="true"]:${X}) .radio {
3784        border-color: ${D.HighlightText};
3785      }
3786
3787      :host([aria-checked='true']) {
3788        background: ${D.Highlight};
3789        color: ${D.HighlightText};
3790      }
3791
3792      :host([aria-checked='true']) .checkbox-indicator,
3793      :host([aria-checked='true']) ::slotted([slot='checkbox-indicator']),
3794      :host([aria-checked='true']) ::slotted([slot='radio-indicator']) {
3795        fill: ${D.Highlight};
3796      }
3797
3798      :host([aria-checked='true']) .radio-indicator {
3799        background: ${D.Highlight};
3800      }
3801
3802      ::slotted([slot='end']:not(svg)) {
3803        color: ${D.ButtonText};
3804      }
3805
3806      :host(:hover) ::slotted([slot="end"]:not(svg)),
3807            :host(:${X}) ::slotted([slot="end"]:not(svg)) {
3808        color: ${D.HighlightText};
3809      }
3810    `),new ms(F`
3811        .expand-collapse-glyph {
3812          transform: rotate(0deg);
3813        }
3814      `,F`
3815        .expand-collapse-glyph {
3816          transform: rotate(180deg);
3817        }
3818      `))});var RC,DC,OC=b(()=>{oe();CY();RC=class extends fr{},DC=RC.compose({baseName:"menu-item",baseClass:fr,template:PV,styles:SY,checkboxIndicator:`
3819        <svg
3820            part="checkbox-indicator"
3821            class="checkbox-indicator"
3822            viewBox="0 0 20 20"
3823            xmlns="http://www.w3.org/2000/svg"
3824        >
3825            <path
3826                fill-rule="evenodd"
3827                clip-rule="evenodd"
3828                d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"
3829            />
3830        </svg>
3831    `,expandCollapseGlyph:`
3832        <svg
3833            viewBox="0 0 16 16"
3834            xmlns="http://www.w3.org/2000/svg"
3835            class="expand-collapse-glyph"
3836            part="expand-collapse-glyph"
3837        >
3838            <path
3839                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"
3840            />
3841        </svg>
3842    `,radioIndicator:`
3843        <span part="radio-indicator" class="radio-indicator"></span>
3844    `})});var IY,EY=b(()=>{B();Te();Kt();IY=(i,e)=>F`
3845  ${ql}
3846
3847  .controls {
3848    opacity: 0;
3849    margin: auto 0;
3850  }
3851
3852  .step-up-glyph,
3853  .step-down-glyph {
3854    display: block;
3855    padding: calc(
3856        (${K} + 0.5 * ${_t} + 0.5 * ${$l}) * 1px
3857      )
3858      calc((2 + 2 * ${K} + ${_t} + ${$l}) * 1px);
3859    cursor: pointer;
3860  }
3861
3862  .step-up-glyph:before,
3863  .step-down-glyph:before {
3864    content: '';
3865    display: block;
3866    border: solid transparent
3867      calc((2 + ${K} + 0.5 * ${_t} + 0.5 * ${$l}) * 1px);
3868  }
3869
3870  .step-up-glyph:hover:before,
3871  .step-down-glyph:hover:before {
3872    background-color: ${ps};
3873  }
3874
3875  .step-up-glyph:active:before,
3876  .step-down-glyph:active:before {
3877    background-color: ${zl};
3878  }
3879
3880  .step-up-glyph:before {
3881    border-bottom-color: ${fe};
3882  }
3883
3884  .step-down-glyph:before {
3885    border-top-color: ${fe};
3886  }
3887
3888  :host(:hover:not([disabled])) .controls,
3889  :host(:focus-within:not([disabled])) .controls {
3890    opacity: 1;
3891  }
3892`});var fv,LC,$C=b(()=>{yn();B();oe();EY();fv=class extends Zi{constructor(){super(...arguments),this.appearance="outline"}};Z([A],fv.prototype,"appearance",void 0);LC=fv.compose({baseName:"number-field",baseClass:Zi,styles:IY,template:HV,shadowOptions:{delegatesFocus:!0},stepDownGlyph:`
3893        <span class="step-down-glyph" part="step-down-glyph"></span>
3894    `,stepUpGlyph:`
3895        <span class="step-up-glyph" part="step-up-glyph"></span>
3896    `})});var kY,TY=b(()=>{B();oe();ye();Te();ko();kY=(i,e)=>F`
3897    ${we("inline-flex")} :host {
3898      align-items: center;
3899      font-family: ${Me};
3900      border-radius: calc(${ge} * 1px);
3901      border: calc(${be} * 1px) solid transparent;
3902      box-sizing: border-box;
3903      background: ${Rr};
3904      color: ${fe};
3905      cursor: pointer;
3906      flex: 0 0 auto;
3907      fill: currentcolor;
3908      font-size: ${ke};
3909      height: calc(${xe} * 1px);
3910      line-height: ${Fe};
3911      margin: 0 calc((${K} - ${be}) * 1px);
3912      outline: none;
3913      overflow: hidden;
3914      padding: 0 1ch;
3915      user-select: none;
3916      white-space: nowrap;
3917    }
3918
3919    :host(:not([disabled]):not([aria-selected='true']):hover) {
3920      background: ${vn};
3921    }
3922
3923    :host(:not([disabled]):not([aria-selected='true']):active) {
3924      background: ${_n};
3925    }
3926
3927    :host([aria-selected='true']) {
3928      background: ${ut};
3929      color: ${Ai};
3930    }
3931
3932    :host(:not([disabled])[aria-selected='true']:hover) {
3933      background: ${Ti};
3934      color: ${mr};
3935    }
3936
3937    :host(:not([disabled])[aria-selected='true']:active) {
3938      background: ${Gt};
3939      color: ${Bi};
3940    }
3941
3942    :host([disabled]) {
3943      cursor: ${mt};
3944      opacity: ${wt};
3945    }
3946
3947    .content {
3948      grid-column-start: 2;
3949      justify-self: start;
3950      overflow: hidden;
3951      text-overflow: ellipsis;
3952    }
3953
3954    .start,
3955    .end,
3956    ::slotted(svg) {
3957      display: flex;
3958    }
3959
3960    ::slotted(svg) {
3961      /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
3962      height: calc(${K} * 4px);
3963      width: calc(${K} * 4px);
3964    }
3965
3966    ::slotted([slot='end']) {
3967      margin-inline-start: 1ch;
3968    }
3969
3970    ::slotted([slot='start']) {
3971      margin-inline-end: 1ch;
3972    }
3973
3974    :host([aria-checked='true'][aria-selected='false']) {
3975      border-color: ${zi};
3976    }
3977
3978    :host([aria-checked='true'][aria-selected='true']) {
3979      border-color: ${zi};
3980      box-shadow: 0 0 0 calc(${be} * 2 * 1px) inset
3981        ${YG};
3982    }
3983  `.withBehaviors(ve(F`
3984      :host {
3985        border-color: transparent;
3986        forced-color-adjust: none;
3987        color: ${D.ButtonText};
3988        fill: currentcolor;
3989      }
3990
3991      :host(:not([aria-selected='true']):hover),
3992      :host([aria-selected='true']) {
3993        background: ${D.Highlight};
3994        color: ${D.HighlightText};
3995      }
3996
3997      :host([disabled]),
3998      :host([disabled][aria-selected='false']:hover) {
3999        background: ${D.Canvas};
4000        color: ${D.GrayText};
4001        fill: currentcolor;
4002        opacity: 1;
4003      }
4004
4005      :host([aria-checked='true'][aria-selected='false']) {
4006        background: ${D.ButtonFace};
4007        color: ${D.ButtonText};
4008        border-color: ${D.ButtonText};
4009      }
4010
4011      :host([aria-checked='true'][aria-selected='true']),
4012      :host([aria-checked='true'][aria-selected='true']:hover) {
4013        background: ${D.Highlight};
4014        color: ${D.HighlightText};
4015        border-color: ${D.ButtonText};
4016      }
4017    `))});var PC,FC,NC=b(()=>{oe();TY();PC=class extends dr{},FC=PC.compose({baseName:"option",baseClass:dr,template:gV,styles:kY})});var AY,MY=b(()=>{B();oe();ye();Te();AY=(i,e)=>F`
4018    ${we("flex")} :host {
4019      align-items: center;
4020      outline: none;
4021      height: calc(${K} * 1px);
4022      margin: calc(${K} * 1px) 0;
4023    }
4024
4025    .progress {
4026      background-color: ${Tt};
4027      border-radius: calc(${K} * 1px);
4028      width: 100%;
4029      height: 100%;
4030      display: flex;
4031      align-items: center;
4032      position: relative;
4033    }
4034
4035    .determinate {
4036      background-color: ${oi};
4037      border-radius: calc(${K} * 1px);
4038      height: 100%;
4039      transition: all 0.2s ease-in-out;
4040      display: flex;
4041    }
4042
4043    .indeterminate {
4044      height: 100%;
4045      border-radius: calc(${K} * 1px);
4046      display: flex;
4047      width: 100%;
4048      position: relative;
4049      overflow: hidden;
4050    }
4051
4052    .indeterminate-indicator-1 {
4053      position: absolute;
4054      opacity: 0;
4055      height: 100%;
4056      background-color: ${oi};
4057      border-radius: calc(${K} * 1px);
4058      animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
4059      width: 40%;
4060      animation: indeterminate-1 2s infinite;
4061    }
4062
4063    .indeterminate-indicator-2 {
4064      position: absolute;
4065      opacity: 0;
4066      height: 100%;
4067      background-color: ${oi};
4068      border-radius: calc(${K} * 1px);
4069      animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
4070      width: 60%;
4071      animation: indeterminate-2 2s infinite;
4072    }
4073
4074    :host([paused]) .indeterminate-indicator-1,
4075    :host([paused]) .indeterminate-indicator-2 {
4076      animation-play-state: paused;
4077      background-color: ${Tt};
4078    }
4079
4080    :host([paused]) .determinate {
4081      background-color: ${xa};
4082    }
4083
4084    @keyframes indeterminate-1 {
4085      0% {
4086        opacity: 1;
4087        transform: translateX(-100%);
4088      }
4089      70% {
4090        opacity: 1;
4091        transform: translateX(300%);
4092      }
4093      70.01% {
4094        opacity: 0;
4095      }
4096      100% {
4097        opacity: 0;
4098        transform: translateX(300%);
4099      }
4100    }
4101
4102    @keyframes indeterminate-2 {
4103      0% {
4104        opacity: 0;
4105        transform: translateX(-150%);
4106      }
4107      29.99% {
4108        opacity: 0;
4109      }
4110      30% {
4111        opacity: 1;
4112        transform: translateX(-150%);
4113      }
4114      100% {
4115        transform: translateX(166.66%);
4116        opacity: 1;
4117      }
4118    }
4119  `.withBehaviors(ve(F`
4120      .progress {
4121        forced-color-adjust: none;
4122        background-color: ${D.Field};
4123        box-shadow: 0 0 0 1px inset ${D.FieldText};
4124      }
4125      .determinate,
4126      .indeterminate-indicator-1,
4127      .indeterminate-indicator-2 {
4128        forced-color-adjust: none;
4129        background-color: ${D.FieldText};
4130      }
4131      :host([paused]) .determinate,
4132      :host([paused]) .indeterminate-indicator-1,
4133      :host([paused]) .indeterminate-indicator-2 {
4134        background-color: ${D.GrayText};
4135      }
4136    `))});var BC,zC,qC=b(()=>{oe();MY();BC=class extends Fn{},zC=BC.compose({baseName:"progress",baseClass:Fn,template:tU,styles:AY,indeterminateIndicator1:`
4137        <span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>
4138    `,indeterminateIndicator2:`
4139        <span class="indeterminate-indicator-2" part="indeterminate-indicator-2"></span>
4140    `})});var RY,DY=b(()=>{B();oe();ye();Te();ko();RY=(i,e)=>F`
4141    ${we("flex")} :host {
4142      align-items: center;
4143      outline: none;
4144      height: calc(${xe} * 1px);
4145      width: calc(${xe} * 1px);
4146      margin: calc(${xe} * 1px) 0;
4147    }
4148
4149    .progress {
4150      height: 100%;
4151      width: 100%;
4152    }
4153
4154    .background {
4155      stroke: ${Tt};
4156      fill: none;
4157      stroke-width: 2px;
4158    }
4159
4160    .determinate {
4161      stroke: ${oi};
4162      fill: none;
4163      stroke-width: 2px;
4164      stroke-linecap: round;
4165      transform-origin: 50% 50%;
4166      transform: rotate(-90deg);
4167      transition: all 0.2s ease-in-out;
4168    }
4169
4170    .indeterminate-indicator-1 {
4171      stroke: ${oi};
4172      fill: none;
4173      stroke-width: 2px;
4174      stroke-linecap: round;
4175      transform-origin: 50% 50%;
4176      transform: rotate(-90deg);
4177      transition: all 0.2s ease-in-out;
4178      animation: spin-infinite 2s linear infinite;
4179    }
4180
4181    :host([paused]) .indeterminate-indicator-1 {
4182      animation-play-state: paused;
4183      stroke: ${Tt};
4184    }
4185
4186    :host([paused]) .determinate {
4187      stroke: ${xa};
4188    }
4189
4190    @keyframes spin-infinite {
4191      0% {
4192        stroke-dasharray: 0.01px 43.97px;
4193        transform: rotate(0deg);
4194      }
4195      50% {
4196        stroke-dasharray: 21.99px 21.99px;
4197        transform: rotate(450deg);
4198      }
4199      100% {
4200        stroke-dasharray: 0.01px 43.97px;
4201        transform: rotate(1080deg);
4202      }
4203    }
4204  `.withBehaviors(ve(F`
4205      .indeterminate-indicator-1,
4206      .determinate {
4207        stroke: ${D.FieldText};
4208      }
4209      .background {
4210        stroke: ${D.Field};
4211      }
4212      :host([paused]) .indeterminate-indicator-1 {
4213        stroke: ${D.Field};
4214      }
4215      :host([paused]) .determinate {
4216        stroke: ${D.GrayText};
4217      }
4218    `))});var HC,jC,VC=b(()=>{oe();DY();HC=class extends Fn{},jC=HC.compose({baseName:"progress-ring",baseClass:Fn,template:JV,styles:RY,indeterminateIndicator:`
4219        <svg class="progress" part="progress" viewBox="0 0 16 16">
4220            <circle
4221                class="background"
4222                part="background"
4223                cx="8px"
4224                cy="8px"
4225                r="7px"
4226            ></circle>
4227            <circle
4228                class="indeterminate-indicator-1"
4229                part="indeterminate-indicator-1"
4230                cx="8px"
4231                cy="8px"
4232                r="7px"
4233            ></circle>
4234        </svg>
4235    `})});var OY,LY=b(()=>{B();oe();ye();Te();Kt();OY=(i,e)=>F`
4236    ${we("inline-flex")} :host {
4237      --input-size: calc((${xe} / 2) + ${K});
4238      align-items: center;
4239      outline: none;
4240      margin: calc(${K} * 1px) 0;
4241      /* Chromium likes to select label text or the default slot when
4242                the radio is clicked. Maybe there is a better solution here? */
4243      user-select: none;
4244      position: relative;
4245      flex-direction: row;
4246      transition: all 0.2s ease-in-out;
4247    }
4248
4249    .control {
4250      position: relative;
4251      width: calc((${xe} / 2 + ${K}) * 1px);
4252      height: calc((${xe} / 2 + ${K}) * 1px);
4253      box-sizing: border-box;
4254      border-radius: 999px;
4255      border: calc(${de} * 1px) solid ${Dr};
4256      background: ${bn};
4257      outline: none;
4258      cursor: pointer;
4259    }
4260
4261    :host([aria-invalid='true']) .control {
4262      border-color: ${$t};
4263    }
4264
4265    .label {
4266      font-family: ${Me};
4267      color: ${fe};
4268      padding-inline-start: calc(${K} * 2px + 2px);
4269      margin-inline-end: calc(${K} * 2px + 2px);
4270      cursor: pointer;
4271      font-size: ${ke};
4272      line-height: ${Fe};
4273    }
4274
4275    .label__hidden {
4276      display: none;
4277      visibility: hidden;
4278    }
4279
4280    .control,
4281    .checked-indicator {
4282      flex-shrink: 0;
4283    }
4284
4285    .checked-indicator {
4286      position: absolute;
4287      top: 5px;
4288      left: 5px;
4289      right: 5px;
4290      bottom: 5px;
4291      border-radius: 999px;
4292      display: inline-block;
4293      background: ${Ai};
4294      fill: ${Ai};
4295      opacity: 0;
4296      pointer-events: none;
4297    }
4298
4299    :host(:not([disabled])) .control:hover {
4300      background: ${Mr};
4301      border-color: ${wa};
4302    }
4303
4304    :host([aria-invalid='true']:not([disabled])) .control:hover {
4305      border-color: ${ai};
4306    }
4307
4308    :host(:not([disabled])) .control:active {
4309      background: ${Io};
4310      border-color: ${kh};
4311    }
4312
4313    :host([aria-invalid='true']:not([disabled])) .control:active {
4314      border-color: ${Mi};
4315    }
4316
4317    :host(:${X}) .control {
4318      outline: solid calc(${be} * 1px) ${qe};
4319    }
4320
4321    :host([aria-invalid='true']:${X}) .control {
4322      outline-color: ${At};
4323    }
4324
4325    :host([aria-checked='true']) .control {
4326      background: ${ut};
4327      border: calc(${de} * 1px) solid ${ut};
4328    }
4329
4330    :host([aria-invalid='true'][aria-checked='true']) .control {
4331      background-color: ${$t};
4332      border-color: ${$t};
4333    }
4334
4335    :host([aria-checked='true']:not([disabled])) .control:hover {
4336      background: ${Ti};
4337      border: calc(${de} * 1px) solid ${Ti};
4338    }
4339
4340    :host([aria-invalid='true'][aria-checked='true']:not([disabled]))
4341      .control:hover {
4342      background-color: ${ai};
4343      border-color: ${ai};
4344    }
4345
4346    :host([aria-checked='true']:not([disabled]))
4347      .control:hover
4348      .checked-indicator {
4349      background: ${mr};
4350      fill: ${mr};
4351    }
4352
4353    :host([aria-checked='true']:not([disabled])) .control:active {
4354      background: ${Gt};
4355      border: calc(${de} * 1px) solid ${Gt};
4356    }
4357
4358    :host([aria-invalid='true'][aria-checked='true']:not([disabled]))
4359      .control:active {
4360      background-color: ${Mi};
4361      border-color: ${Mi};
4362    }
4363
4364    :host([aria-checked='true']:not([disabled]))
4365      .control:active
4366      .checked-indicator {
4367      background: ${Bi};
4368      fill: ${Bi};
4369    }
4370
4371    :host([aria-checked="true"]:${X}:not([disabled])) .control {
4372      outline-offset: 2px;
4373      outline: solid calc(${be} * 1px) ${qe};
4374    }
4375
4376    :host([aria-invalid='true'][aria-checked="true"]:${X}:not([disabled])) .control {
4377      outline-color: ${At};
4378    }
4379
4380    :host([disabled]) .label,
4381    :host([readonly]) .label,
4382    :host([readonly]) .control,
4383    :host([disabled]) .control {
4384      cursor: ${mt};
4385    }
4386
4387    :host([aria-checked='true']) .checked-indicator {
4388      opacity: 1;
4389    }
4390
4391    :host([disabled]) {
4392      opacity: ${wt};
4393    }
4394  `.withBehaviors(ve(F`
4395      .control,
4396      :host([aria-checked='true']:not([disabled])) .control {
4397        forced-color-adjust: none;
4398        border-color: ${D.FieldText};
4399        background: ${D.Field};
4400      }
4401      :host([aria-invalid='true']) {
4402        border-style: dashed;
4403      }
4404      :host(:not([disabled])) .control:hover {
4405        border-color: ${D.Highlight};
4406        background: ${D.Field};
4407      }
4408      :host([aria-checked='true']:not([disabled])) .control:hover,
4409      :host([aria-checked='true']:not([disabled])) .control:active {
4410        border-color: ${D.Highlight};
4411        background: ${D.Highlight};
4412      }
4413      :host([aria-checked='true']) .checked-indicator {
4414        background: ${D.Highlight};
4415        fill: ${D.Highlight};
4416      }
4417      :host([aria-checked='true']:not([disabled]))
4418        .control:hover
4419        .checked-indicator,
4420      :host([aria-checked='true']:not([disabled]))
4421        .control:active
4422        .checked-indicator {
4423        background: ${D.HighlightText};
4424        fill: ${D.HighlightText};
4425      }
4426      :host(:${X}) .control {
4427        border-color: ${D.Highlight};
4428        outline-offset: 2px;
4429        outline: solid calc(${be} * 1px) ${D.FieldText};
4430      }
4431      :host([aria-checked="true"]:${X}:not([disabled])) .control {
4432        border-color: ${D.Highlight};
4433        outline: solid calc(${be} * 1px) ${D.FieldText};
4434      }
4435      :host([disabled]) {
4436        forced-color-adjust: none;
4437        opacity: 1;
4438      }
4439      :host([disabled]) .label {
4440        color: ${D.GrayText};
4441      }
4442      :host([disabled]) .control,
4443      :host([aria-checked='true'][disabled]) .control:hover,
4444      .control:active {
4445        background: ${D.Field};
4446        border-color: ${D.GrayText};
4447      }
4448      :host([disabled]) .checked-indicator,
4449      :host([aria-checked='true'][disabled]) .control:hover .checked-indicator {
4450        fill: ${D.GrayText};
4451        background: ${D.GrayText};
4452      }
4453    `))});var ASe,UC,WC,GC=b(()=>{oe();LY();B();ASe=(i,e)=>H`
4454  <template
4455    role="radio"
4456    aria-checked="${t=>t.checked}"
4457    aria-required="${t=>t.required}"
4458    aria-disabled="${t=>t.disabled}"
4459    aria-readonly="${t=>t.readOnly}"
4460    @keypress="${(t,r)=>t.keypressHandler(r.event)}"
4461    @click="${(t,r)=>t.clickHandler(r.event)}"
4462  >
4463    <div part="control" class="control">
4464      <slot name="checked-indicator">
4465        ${e.checkedIndicator||""}
4466      </slot>
4467    </div>
4468    <label
4469      part="label"
4470      class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"
4471    >
4472      <slot ${Oe("defaultSlottedNodes")}></slot>
4473    </label>
4474  </template>
4475`,UC=class extends Rl{},WC=UC.compose({baseName:"radio",baseClass:Rl,template:ASe,styles:OY,checkedIndicator:`
4476        <div part="checked-indicator" class="checked-indicator"></div>
4477    `})});var $Y,PY=b(()=>{B();oe();Te();$Y=(i,e)=>F`
4478  ${we("flex")} :host {
4479    align-items: flex-start;
4480    margin: calc(${K} * 1px) 0;
4481    flex-direction: column;
4482  }
4483  .positioning-region {
4484    display: flex;
4485    flex-wrap: wrap;
4486  }
4487  :host([orientation='vertical']) .positioning-region {
4488    flex-direction: column;
4489  }
4490  :host([orientation='horizontal']) .positioning-region {
4491    flex-direction: row;
4492  }
4493`});var KC,YC,XC=b(()=>{oe();PY();B();KC=class extends fs{constructor(){super();let e=_e.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")})}},YC=KC.compose({baseName:"radio-group",baseClass:fs,template:nU,styles:$Y})});var MSe,RSe,FY,NY=b(()=>{B();oe();Te();Kt();MSe=Pn.create("clear-button-hover").withDefault(i=>{let e=Eo.getValueFor(i),t=ya.getValueFor(i);return e.evaluate(i,t.evaluate(i).hover).hover}),RSe=Pn.create("clear-button-active").withDefault(i=>{let e=Eo.getValueFor(i),t=ya.getValueFor(i);return e.evaluate(i,t.evaluate(i).hover).active}),FY=(i,e)=>F`
4494  ${ql}
4495
4496  .control::-webkit-search-cancel-button {
4497    -webkit-appearance: none;
4498  }
4499
4500  .control:hover,
4501    .control:${X},
4502    .control:disabled,
4503    .control:active {
4504    outline: none;
4505  }
4506
4507  .clear-button {
4508    height: calc(100% - 2px);
4509    opacity: 0;
4510    margin: 1px;
4511    background: transparent;
4512    color: ${fe};
4513    fill: currentcolor;
4514    border: none;
4515    border-radius: calc(${ge} * 1px);
4516    min-width: calc(${xe} * 1px);
4517    font-size: ${ke};
4518    line-height: ${Fe};
4519    outline: none;
4520    font-family: ${Me};
4521    padding: 0 calc((10 + (${K} * 2 * ${_t})) * 1px);
4522  }
4523
4524  .clear-button:hover {
4525    background: ${vn};
4526  }
4527
4528  .clear-button:active {
4529    background: ${_n};
4530  }
4531
4532  :host([appearance='filled']) .clear-button:hover {
4533    background: ${MSe};
4534  }
4535
4536  :host([appearance='filled']) .clear-button:active {
4537    background: ${RSe};
4538  }
4539
4540  .input-wrapper {
4541    display: flex;
4542    position: relative;
4543    width: 100%;
4544  }
4545
4546  .start,
4547  .end {
4548    display: flex;
4549    margin: 1px;
4550    fill: currentcolor;
4551  }
4552
4553  ::slotted([slot='end']) {
4554    height: 100%;
4555  }
4556
4557  .end {
4558    margin-inline-end: 1px;
4559    height: calc(100% - 2px);
4560  }
4561
4562  ::slotted(svg) {
4563    /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
4564    width: 16px;
4565    height: 16px;
4566    margin-inline-end: 11px;
4567    margin-inline-start: 11px;
4568    margin-top: auto;
4569    margin-bottom: auto;
4570  }
4571
4572  .clear-button__hidden {
4573    opacity: 0;
4574  }
4575
4576  :host(:hover:not([disabled], [readOnly])) .clear-button,
4577  :host(:active:not([disabled], [readOnly])) .clear-button,
4578  :host(:focus-within:not([disabled], [readOnly])) .clear-button {
4579    opacity: 1;
4580  }
4581
4582  :host(:hover:not([disabled], [readOnly])) .clear-button__hidden,
4583  :host(:active:not([disabled], [readOnly])) .clear-button__hidden,
4584  :host(:focus-within:not([disabled], [readOnly])) .clear-button__hidden {
4585    opacity: 0;
4586  }
4587`});var pv,JC,ZC=b(()=>{yn();B();oe();NY();pv=class extends Ar{constructor(){super(...arguments),this.appearance="outline"}};Z([A],pv.prototype,"appearance",void 0);JC=pv.compose({baseName:"search",baseClass:Ar,template:mU,styles:FY,shadowOptions:{delegatesFocus:!0}})});var Gc,QC,e6=b(()=>{yn();B();oe();Te();QS();Gc=class extends mn{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&&ze.setValueFor(this.listbox,wh)}slottedOptionsChanged(e,t){super.slottedOptionsChanged(e,t),this.setAutoWidth()}get listboxMaxHeight(){return Math.floor(this.maxHeight/W1.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=F`
4588      :host {
4589        --listbox-max-height: ${this.listboxMaxHeight};
4590        --listbox-scroll-width: ${this.listboxScrollWidth};
4591        --size: ${this.selectSize};
4592      }
4593    `,this.$fastController.addStyles(this.computedStylesheet)}};Z([A({attribute:"autowidth",mode:"boolean"})],Gc.prototype,"autoWidth",void 0);Z([A({attribute:"minimal",mode:"boolean"})],Gc.prototype,"minimal",void 0);Z([A],Gc.prototype,"scale",void 0);Z([P],Gc.prototype,"listboxScrollWidth",void 0);QC=Gc.compose({baseName:"select",baseClass:mn,template:wU,styles:uv,indicator:`
4594        <svg
4595            class="select-indicator"
4596            part="select-indicator"
4597            viewBox="0 0 12 7"
4598            xmlns="http://www.w3.org/2000/svg"
4599        >
4600            <path
4601                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"
4602            />
4603        </svg>
4604    `})});var BY,zY=b(()=>{B();oe();ye();oe();Te();BY=(i,e)=>F`
4605    ${we("block")} :host {
4606      --skeleton-fill-default: #e1dfdd;
4607      overflow: hidden;
4608      width: 100%;
4609      position: relative;
4610      background-color: var(--skeleton-fill, var(--skeleton-fill-default));
4611      --skeleton-animation-gradient-default: linear-gradient(
4612        270deg,
4613        var(--skeleton-fill, var(--skeleton-fill-default)) 0%,
4614        #f3f2f1 51.13%,
4615        var(--skeleton-fill, var(--skeleton-fill-default)) 100%
4616      );
4617      --skeleton-animation-timing-default: ease-in-out;
4618    }
4619
4620    :host([shape='rect']) {
4621      border-radius: calc(${ge} * 1px);
4622    }
4623
4624    :host([shape='circle']) {
4625      border-radius: 100%;
4626      overflow: hidden;
4627    }
4628
4629    object {
4630      position: absolute;
4631      width: 100%;
4632      height: auto;
4633      z-index: 2;
4634    }
4635
4636    object img {
4637      width: 100%;
4638      height: auto;
4639    }
4640
4641    ${we("block")} span.shimmer {
4642      position: absolute;
4643      width: 100%;
4644      height: 100%;
4645      background-image: var(
4646        --skeleton-animation-gradient,
4647        var(--skeleton-animation-gradient-default)
4648      );
4649      background-size: 0px 0px / 90% 100%;
4650      background-repeat: no-repeat;
4651      background-color: var(--skeleton-animation-fill, ${Tt});
4652      animation: shimmer 2s infinite;
4653      animation-timing-function: var(
4654        --skeleton-animation-timing,
4655        var(--skeleton-timing-default)
4656      );
4657      animation-direction: normal;
4658      z-index: 1;
4659    }
4660
4661    ::slotted(svg) {
4662      z-index: 2;
4663    }
4664
4665    ::slotted(.pattern) {
4666      width: 100%;
4667      height: 100%;
4668    }
4669
4670    @keyframes shimmer {
4671      0% {
4672        transform: translateX(-100%);
4673      }
4674      100% {
4675        transform: translateX(100%);
4676      }
4677    }
4678  `.withBehaviors(ve(F`
4679      :host {
4680        forced-color-adjust: none;
4681        background-color: ${D.ButtonFace};
4682        box-shadow: 0 0 0 1px ${D.ButtonText};
4683      }
4684
4685      ${we("block")} span.shimmer {
4686        display: none;
4687      }
4688    `))});var t6,i6,r6=b(()=>{oe();zY();t6=class extends ma{},i6=t6.compose({baseName:"skeleton",baseClass:ma,template:IU,styles:BY})});var DSe,OSe,qY,HY=b(()=>{B();oe();ye();Te();Kt();DSe=F`
4689  .track-start {
4690    left: 0;
4691  }
4692`,OSe=F`
4693  .track-start {
4694    right: 0;
4695  }
4696`,qY=(i,e)=>F`
4697    :host([hidden]) {
4698      display: none;
4699    }
4700
4701    ${we("inline-grid")} :host {
4702      --thumb-size: calc(${xe} * 0.5 - ${K});
4703      --thumb-translate: calc(
4704        var(--thumb-size) * -0.5 + var(--track-width) / 2
4705      );
4706      --track-overhang: calc((${K} / 2) * -1);
4707      --track-width: ${K};
4708      --jp-slider-height: calc(var(--thumb-size) * 10);
4709      align-items: center;
4710      width: 100%;
4711      margin: calc(${K} * 1px) 0;
4712      user-select: none;
4713      box-sizing: border-box;
4714      border-radius: calc(${ge} * 1px);
4715      outline: none;
4716      cursor: pointer;
4717    }
4718    :host([orientation='horizontal']) .positioning-region {
4719      position: relative;
4720      margin: 0 8px;
4721      display: grid;
4722      grid-template-rows: calc(var(--thumb-size) * 1px) 1fr;
4723    }
4724    :host([orientation='vertical']) .positioning-region {
4725      position: relative;
4726      margin: 0 8px;
4727      display: grid;
4728      height: 100%;
4729      grid-template-columns: calc(var(--thumb-size) * 1px) 1fr;
4730    }
4731
4732    :host(:${X}) .thumb-cursor {
4733      box-shadow:
4734        0 0 0 2px ${ze},
4735        0 0 0 calc((2 + ${be}) * 1px) ${qe};
4736    }
4737
4738    :host([aria-invalid='true']:${X}) .thumb-cursor {
4739      box-shadow:
4740        0 0 0 2px ${ze},
4741        0 0 0 calc((2 + ${be}) * 1px) ${At};
4742    }
4743
4744    .thumb-container {
4745      position: absolute;
4746      height: calc(var(--thumb-size) * 1px);
4747      width: calc(var(--thumb-size) * 1px);
4748      transition: all 0.2s ease;
4749      color: ${fe};
4750      fill: currentcolor;
4751    }
4752    .thumb-cursor {
4753      border: none;
4754      width: calc(var(--thumb-size) * 1px);
4755      height: calc(var(--thumb-size) * 1px);
4756      background: ${fe};
4757      border-radius: calc(${ge} * 1px);
4758    }
4759    .thumb-cursor:hover {
4760      background: ${fe};
4761      border-color: ${wa};
4762    }
4763    .thumb-cursor:active {
4764      background: ${fe};
4765    }
4766    .track-start {
4767      background: ${oi};
4768      position: absolute;
4769      height: 100%;
4770      left: 0;
4771      border-radius: calc(${ge} * 1px);
4772    }
4773    :host([aria-invalid='true']) .track-start {
4774      background-color: ${$t};
4775    }
4776    :host([orientation='horizontal']) .thumb-container {
4777      transform: translateX(calc(var(--thumb-size) * 0.5px))
4778        translateY(calc(var(--thumb-translate) * 1px));
4779    }
4780    :host([orientation='vertical']) .thumb-container {
4781      transform: translateX(calc(var(--thumb-translate) * 1px))
4782        translateY(calc(var(--thumb-size) * 0.5px));
4783    }
4784    :host([orientation='horizontal']) {
4785      min-width: calc(var(--thumb-size) * 1px);
4786    }
4787    :host([orientation='horizontal']) .track {
4788      right: calc(var(--track-overhang) * 1px);
4789      left: calc(var(--track-overhang) * 1px);
4790      align-self: start;
4791      height: calc(var(--track-width) * 1px);
4792    }
4793    :host([orientation='vertical']) .track {
4794      top: calc(var(--track-overhang) * 1px);
4795      bottom: calc(var(--track-overhang) * 1px);
4796      width: calc(var(--track-width) * 1px);
4797      height: 100%;
4798    }
4799    .track {
4800      background: ${Dr};
4801      position: absolute;
4802      border-radius: calc(${ge} * 1px);
4803    }
4804    :host([orientation='vertical']) {
4805      height: calc(var(--fast-slider-height) * 1px);
4806      min-height: calc(var(--thumb-size) * 1px);
4807      min-width: calc(${K} * 20px);
4808    }
4809    :host([orientation='vertical']) .track-start {
4810      height: auto;
4811      width: 100%;
4812      top: 0;
4813    }
4814    :host([disabled]),
4815    :host([readonly]) {
4816      cursor: ${mt};
4817    }
4818    :host([disabled]) {
4819      opacity: ${wt};
4820    }
4821  `.withBehaviors(new ms(DSe,OSe),ve(F`
4822      .thumb-cursor {
4823        forced-color-adjust: none;
4824        border-color: ${D.FieldText};
4825        background: ${D.FieldText};
4826      }
4827      .thumb-cursor:hover,
4828      .thumb-cursor:active {
4829        background: ${D.Highlight};
4830      }
4831      .track {
4832        forced-color-adjust: none;
4833        background: ${D.FieldText};
4834      }
4835      :host(:${X}) .thumb-cursor {
4836        border-color: ${D.Highlight};
4837      }
4838      :host([disabled]) {
4839        opacity: 1;
4840      }
4841      :host([disabled]) .track,
4842      :host([disabled]) .thumb-cursor {
4843        forced-color-adjust: none;
4844        background: ${D.GrayText};
4845      }
4846
4847      :host(:${X}) .thumb-cursor {
4848        background: ${D.Highlight};
4849        border-color: ${D.Highlight};
4850        box-shadow:
4851          0 0 0 2px ${D.Field},
4852          0 0 0 4px ${D.FieldText};
4853      }
4854    `))});var n6,s6,o6=b(()=>{oe();HY();n6=class extends ki{},s6=n6.compose({baseName:"slider",baseClass:ki,template:OU,styles:qY,thumb:`
4855        <div class="thumb-cursor"></div>
4856    `})});var a6,l6,jY,VY=b(()=>{B();oe();ye();Te();Kt();a6=F`
4857  :host {
4858    align-self: start;
4859    grid-row: 2;
4860    margin-top: -2px;
4861    height: calc((${xe} / 2 + ${K}) * 1px);
4862    width: auto;
4863  }
4864  .container {
4865    grid-template-rows: auto auto;
4866    grid-template-columns: 0;
4867  }
4868  .label {
4869    margin: 2px 0;
4870  }
4871`,l6=F`
4872  :host {
4873    justify-self: start;
4874    grid-column: 2;
4875    margin-left: 2px;
4876    height: auto;
4877    width: calc((${xe} / 2 + ${K}) * 1px);
4878  }
4879  .container {
4880    grid-template-columns: auto auto;
4881    grid-template-rows: 0;
4882    min-width: calc(var(--thumb-size) * 1px);
4883    height: calc(var(--thumb-size) * 1px);
4884  }
4885  .mark {
4886    transform: rotate(90deg);
4887    align-self: center;
4888  }
4889  .label {
4890    margin-left: calc((${K} / 2) * 3px);
4891    align-self: center;
4892  }
4893`,jY=(i,e)=>F`
4894    ${we("block")} :host {
4895      font-family: ${Me};
4896      color: ${fe};
4897      fill: currentcolor;
4898    }
4899    .root {
4900      position: absolute;
4901      display: grid;
4902    }
4903    .container {
4904      display: grid;
4905      justify-self: center;
4906    }
4907    .label {
4908      justify-self: center;
4909      align-self: center;
4910      white-space: nowrap;
4911      max-width: 30px;
4912    }
4913    .mark {
4914      width: calc((${K} / 4) * 1px);
4915      height: calc(${xe} * 0.25 * 1px);
4916      background: ${Dr};
4917      justify-self: center;
4918    }
4919    :host(.disabled) {
4920      opacity: ${wt};
4921    }
4922  `.withBehaviors(ve(F`
4923      .mark {
4924        forced-color-adjust: none;
4925        background: ${D.FieldText};
4926      }
4927      :host(.disabled) {
4928        forced-color-adjust: none;
4929        opacity: 1;
4930      }
4931      :host(.disabled) .label {
4932        color: ${D.GrayText};
4933      }
4934      :host(.disabled) .mark {
4935        background: ${D.GrayText};
4936      }
4937    `))});var u6,c6,d6=b(()=>{oe();ye();VY();u6=class extends Nn{sliderOrientationChanged(){this.sliderOrientation===it.horizontal?(this.$fastController.addStyles(a6),this.$fastController.removeStyles(l6)):(this.$fastController.addStyles(l6),this.$fastController.removeStyles(a6))}},c6=u6.compose({baseName:"slider-label",baseClass:Nn,template:AU,styles:jY})});var UY,WY=b(()=>{B();oe();ye();Te();Kt();UY=(i,e)=>F`
4938    :host([hidden]) {
4939      display: none;
4940    }
4941
4942    ${we("inline-flex")} :host {
4943      align-items: center;
4944      outline: none;
4945      font-family: ${Me};
4946      margin: calc(${K} * 1px) 0;
4947      ${""} user-select: none;
4948    }
4949
4950    :host([disabled]) {
4951      opacity: ${wt};
4952    }
4953
4954    :host([disabled]) .label,
4955    :host([readonly]) .label,
4956    :host([readonly]) .switch,
4957    :host([disabled]) .switch {
4958      cursor: ${mt};
4959    }
4960
4961    .switch {
4962      position: relative;
4963      outline: none;
4964      box-sizing: border-box;
4965      width: calc(${xe} * 1px);
4966      height: calc((${xe} / 2 + ${K}) * 1px);
4967      background: ${bn};
4968      border-radius: calc(${ge} * 1px);
4969      border: calc(${de} * 1px) solid ${Dr};
4970    }
4971
4972    :host([aria-invalid='true']) .switch {
4973      border-color: ${$t};
4974    }
4975
4976    .switch:hover {
4977      background: ${Mr};
4978      border-color: ${wa};
4979      cursor: pointer;
4980    }
4981
4982    :host([disabled]) .switch:hover,
4983    :host([readonly]) .switch:hover {
4984      background: ${Mr};
4985      border-color: ${wa};
4986      cursor: ${mt};
4987    }
4988
4989    :host([aria-invalid='true'][disabled]) .switch:hover,
4990    :host([aria-invalid='true'][readonly]) .switch:hover {
4991      border-color: ${ai};
4992    }
4993
4994    :host(:not([disabled])) .switch:active {
4995      background: ${Io};
4996      border-color: ${kh};
4997    }
4998
4999    :host([aria-invalid='true']:not([disabled])) .switch:active {
5000      border-color: ${Mi};
5001    }
5002
5003    :host(:${X}) .switch {
5004      outline-offset: 2px;
5005      outline: solid calc(${be} * 1px) ${qe};
5006    }
5007
5008    :host([aria-invalid='true']:${X}) .switch {
5009      outline-color: ${At};
5010    }
5011
5012    .checked-indicator {
5013      position: absolute;
5014      top: 5px;
5015      bottom: 5px;
5016      background: ${fe};
5017      border-radius: calc(${ge} * 1px);
5018      transition: all 0.2s ease-in-out;
5019    }
5020
5021    .status-message {
5022      color: ${fe};
5023      cursor: pointer;
5024      font-size: ${ke};
5025      line-height: ${Fe};
5026    }
5027
5028    :host([disabled]) .status-message,
5029    :host([readonly]) .status-message {
5030      cursor: ${mt};
5031    }
5032
5033    .label {
5034      color: ${fe};
5035      margin-inline-end: calc(${K} * 2px + 2px);
5036      font-size: ${ke};
5037      line-height: ${Fe};
5038      cursor: pointer;
5039    }
5040
5041    .label__hidden {
5042      display: none;
5043      visibility: hidden;
5044    }
5045
5046    ::slotted([slot='checked-message']),
5047    ::slotted([slot='unchecked-message']) {
5048      margin-inline-start: calc(${K} * 2px + 2px);
5049    }
5050
5051    :host([aria-checked='true']) .checked-indicator {
5052      background: ${Ai};
5053    }
5054
5055    :host([aria-checked='true']) .switch {
5056      background: ${ut};
5057      border-color: ${ut};
5058    }
5059
5060    :host([aria-checked='true']:not([disabled])) .switch:hover {
5061      background: ${Ti};
5062      border-color: ${Ti};
5063    }
5064
5065    :host([aria-invalid='true'][aria-checked='true']) .switch {
5066      background-color: ${$t};
5067      border-color: ${$t};
5068    }
5069
5070    :host([aria-invalid='true'][aria-checked='true']:not([disabled]))
5071      .switch:hover {
5072      background-color: ${ai};
5073      border-color: ${ai};
5074    }
5075
5076    :host([aria-checked='true']:not([disabled]))
5077      .switch:hover
5078      .checked-indicator {
5079      background: ${mr};
5080    }
5081
5082    :host([aria-checked='true']:not([disabled])) .switch:active {
5083      background: ${Gt};
5084      border-color: ${Gt};
5085    }
5086
5087    :host([aria-invalid='true'][aria-checked='true']:not([disabled]))
5088      .switch:active {
5089      background-color: ${Mi};
5090      border-color: ${Mi};
5091    }
5092
5093    :host([aria-checked='true']:not([disabled]))
5094      .switch:active
5095      .checked-indicator {
5096      background: ${Bi};
5097    }
5098
5099    :host([aria-checked="true"]:${X}:not([disabled])) .switch {
5100      outline: solid calc(${be} * 1px) ${qe};
5101    }
5102
5103    :host([aria-invalid='true'][aria-checked="true"]:${X}:not([disabled])) .switch {
5104      outline-color: ${At};
5105    }
5106
5107    .unchecked-message {
5108      display: block;
5109    }
5110
5111    .checked-message {
5112      display: none;
5113    }
5114
5115    :host([aria-checked='true']) .unchecked-message {
5116      display: none;
5117    }
5118
5119    :host([aria-checked='true']) .checked-message {
5120      display: block;
5121    }
5122  `.withBehaviors(ve(F`
5123      .checked-indicator,
5124      :host(:not([disabled])) .switch:active .checked-indicator {
5125        forced-color-adjust: none;
5126        background: ${D.FieldText};
5127      }
5128      .switch {
5129        forced-color-adjust: none;
5130        background: ${D.Field};
5131        border-color: ${D.FieldText};
5132      }
5133      :host([aria-invalid='true']) .switch {
5134        border-style: dashed;
5135      }
5136      :host(:not([disabled])) .switch:hover {
5137        background: ${D.HighlightText};
5138        border-color: ${D.Highlight};
5139      }
5140      :host([aria-checked='true']) .switch {
5141        background: ${D.Highlight};
5142        border-color: ${D.Highlight};
5143      }
5144      :host([aria-checked='true']:not([disabled])) .switch:hover,
5145      :host(:not([disabled])) .switch:active {
5146        background: ${D.HighlightText};
5147        border-color: ${D.Highlight};
5148      }
5149      :host([aria-checked='true']) .checked-indicator {
5150        background: ${D.HighlightText};
5151      }
5152      :host([aria-checked='true']:not([disabled]))
5153        .switch:hover
5154        .checked-indicator {
5155        background: ${D.Highlight};
5156      }
5157      :host([disabled]) {
5158        opacity: 1;
5159      }
5160      :host(:${X}) .switch {
5161        border-color: ${D.Highlight};
5162        outline-offset: 2px;
5163        outline: solid calc(${be} * 1px) ${D.FieldText};
5164      }
5165      :host([aria-checked="true"]:${X}:not([disabled])) .switch {
5166        outline: solid calc(${be} * 1px) ${D.FieldText};
5167      }
5168      :host([disabled]) .checked-indicator {
5169        background: ${D.GrayText};
5170      }
5171      :host([disabled]) .switch {
5172        background: ${D.Field};
5173        border-color: ${D.GrayText};
5174      }
5175    `),new ms(F`
5176        .checked-indicator {
5177          left: 5px;
5178          right: calc(((${xe} / 2) + 1) * 1px);
5179        }
5180
5181        :host([aria-checked='true']) .checked-indicator {
5182          left: calc(((${xe} / 2) + 1) * 1px);
5183          right: 5px;
5184        }
5185      `,F`
5186        .checked-indicator {
5187          right: 5px;
5188          left: calc(((${xe} / 2) + 1) * 1px);
5189        }
5190
5191        :host([aria-checked='true']) .checked-indicator {
5192          right: calc(((${xe} / 2) + 1) * 1px);
5193          left: 5px;
5194        }
5195      `))});var h6,f6,p6=b(()=>{oe();WY();h6=class extends Vc{},f6=h6.compose({baseName:"switch",baseClass:Vc,template:NU,styles:UY,switch:`
5196        <span class="checked-indicator" part="checked-indicator"></span>
5197    `})});var GY,KY=b(()=>{B();oe();Te();GY=(i,e)=>F`
5198  ${we("block")} :host {
5199    box-sizing: border-box;
5200    font-size: ${ke};
5201    line-height: ${Fe};
5202    padding: 0 calc((6 + (${K} * 2 * ${_t})) * 1px);
5203  }
5204`});var m6,g6,b6=b(()=>{oe();KY();m6=class extends Zp{},g6=m6.compose({baseName:"tab-panel",baseClass:Zp,template:jU,styles:GY})});var YY,XY=b(()=>{B();oe();ye();Te();ko();YY=(i,e)=>F`
5205    ${we("inline-flex")} :host {
5206      box-sizing: border-box;
5207      font-family: ${Me};
5208      font-size: ${ke};
5209      line-height: ${Fe};
5210      height: calc(${xe} * 1px);
5211      padding: calc(${K} * 5px) calc(${K} * 4px);
5212      color: ${xa};
5213      fill: currentcolor;
5214      border-radius: 0 0 calc(${ge} * 1px)
5215        calc(${ge} * 1px);
5216      border: calc(${de} * 1px) solid transparent;
5217      align-items: center;
5218      justify-content: center;
5219      grid-row: 2;
5220      cursor: pointer;
5221    }
5222
5223    :host(:hover) {
5224      color: ${fe};
5225      fill: currentcolor;
5226    }
5227
5228    :host(:active) {
5229      color: ${fe};
5230      fill: currentcolor;
5231    }
5232
5233    :host([disabled]) {
5234      cursor: ${mt};
5235      opacity: ${wt};
5236    }
5237
5238    :host([disabled]:hover) {
5239      color: ${xa};
5240      background: ${Rr};
5241    }
5242
5243    :host([aria-selected='true']) {
5244      background: ${Tt};
5245      color: ${fe};
5246      fill: currentcolor;
5247    }
5248
5249    :host([aria-selected='true']:hover) {
5250      background: ${ps};
5251      color: ${fe};
5252      fill: currentcolor;
5253    }
5254
5255    :host([aria-selected='true']:active) {
5256      background: ${zl};
5257      color: ${fe};
5258      fill: currentcolor;
5259    }
5260
5261    :host(:${X}) {
5262      outline: none;
5263      border-color: ${qe};
5264      box-shadow: 0 0 0 calc((${be} - ${de}) * 1px)
5265        ${qe};
5266    }
5267
5268    :host(:focus) {
5269      outline: none;
5270    }
5271
5272    :host(.vertical) {
5273      justify-content: end;
5274      grid-column: 2;
5275      border-bottom-left-radius: 0;
5276      border-top-right-radius: calc(${ge} * 1px);
5277    }
5278
5279    :host(.vertical[aria-selected='true']) {
5280      z-index: 2;
5281    }
5282
5283    :host(.vertical:hover) {
5284      color: ${fe};
5285    }
5286
5287    :host(.vertical:active) {
5288      color: ${fe};
5289    }
5290
5291    :host(.vertical:hover[aria-selected='true']) {
5292    }
5293  `.withBehaviors(ve(F`
5294      :host {
5295        forced-color-adjust: none;
5296        border-color: transparent;
5297        color: ${D.ButtonText};
5298        fill: currentcolor;
5299      }
5300      :host(:hover),
5301      :host(.vertical:hover),
5302      :host([aria-selected='true']:hover) {
5303        background: ${D.Highlight};
5304        color: ${D.HighlightText};
5305        fill: currentcolor;
5306      }
5307      :host([aria-selected='true']) {
5308        background: ${D.HighlightText};
5309        color: ${D.Highlight};
5310        fill: currentcolor;
5311      }
5312      :host(:${X}) {
5313        border-color: ${D.ButtonText};
5314        box-shadow: none;
5315      }
5316      :host([disabled]),
5317      :host([disabled]:hover) {
5318        opacity: 1;
5319        color: ${D.GrayText};
5320        background: ${D.ButtonFace};
5321      }
5322    `))});var v6,_6,y6=b(()=>{oe();XY();v6=class extends gh{},_6=v6.compose({baseName:"tab",baseClass:gh,template:GU,styles:YY})});var JY,ZY=b(()=>{B();oe();ye();Te();Kt();JY=(i,e)=>F`
5323    ${we("grid")} :host {
5324      box-sizing: border-box;
5325      font-family: ${Me};
5326      font-size: ${ke};
5327      line-height: ${Fe};
5328      color: ${fe};
5329      grid-template-columns: auto 1fr auto;
5330      grid-template-rows: auto 1fr;
5331    }
5332
5333    .tablist {
5334      display: grid;
5335      grid-template-rows: auto auto;
5336      grid-template-columns: auto;
5337      position: relative;
5338      width: max-content;
5339      align-self: end;
5340      padding: calc(${K} * 4px) calc(${K} * 4px) 0;
5341      box-sizing: border-box;
5342    }
5343
5344    .start,
5345    .end {
5346      align-self: center;
5347    }
5348
5349    .activeIndicator {
5350      grid-row: 1;
5351      grid-column: 1;
5352      width: 100%;
5353      height: 4px;
5354      justify-self: center;
5355      background: ${ut};
5356      margin-top: 0;
5357      border-radius: calc(${ge} * 1px)
5358        calc(${ge} * 1px) 0 0;
5359    }
5360
5361    .activeIndicatorTransition {
5362      transition: transform 0.01s ease-in-out;
5363    }
5364
5365    .tabpanel {
5366      grid-row: 2;
5367      grid-column-start: 1;
5368      grid-column-end: 4;
5369      position: relative;
5370    }
5371
5372    :host([orientation='vertical']) {
5373      grid-template-rows: auto 1fr auto;
5374      grid-template-columns: auto 1fr;
5375    }
5376
5377    :host([orientation='vertical']) .tablist {
5378      grid-row-start: 2;
5379      grid-row-end: 2;
5380      display: grid;
5381      grid-template-rows: auto;
5382      grid-template-columns: auto 1fr;
5383      position: relative;
5384      width: max-content;
5385      justify-self: end;
5386      align-self: flex-start;
5387      width: 100%;
5388      padding: 0 calc(${K} * 4px)
5389        calc((${xe} - ${K}) * 1px) 0;
5390    }
5391
5392    :host([orientation='vertical']) .tabpanel {
5393      grid-column: 2;
5394      grid-row-start: 1;
5395      grid-row-end: 4;
5396    }
5397
5398    :host([orientation='vertical']) .end {
5399      grid-row: 3;
5400    }
5401
5402    :host([orientation='vertical']) .activeIndicator {
5403      grid-column: 1;
5404      grid-row: 1;
5405      width: 4px;
5406      height: 100%;
5407      margin-inline-end: 0px;
5408      align-self: center;
5409      background: ${ut};
5410      border-radius: calc(${ge} * 1px) 0 0
5411        calc(${ge} * 1px);
5412    }
5413
5414    :host([orientation='vertical']) .activeIndicatorTransition {
5415      transition: transform 0.01s ease-in-out;
5416    }
5417  `.withBehaviors(ve(F`
5418      .activeIndicator,
5419      :host([orientation='vertical']) .activeIndicator {
5420        forced-color-adjust: none;
5421        background: ${D.Highlight};
5422      }
5423    `))});var x6,w6,S6=b(()=>{oe();ZY();y6();b6();x6=class extends Bn{},w6=x6.compose({baseName:"tabs",baseClass:Bn,template:JU,styles:JY})});var QY,eX=b(()=>{B();oe();Te();Kt();QY=(i,e)=>F`
5424    ${we("inline-block")} :host {
5425      font-family: ${Me};
5426      outline: none;
5427      user-select: none;
5428    }
5429
5430    .control {
5431      box-sizing: border-box;
5432      position: relative;
5433      color: ${fe};
5434      background: ${bn};
5435      border-radius: calc(${ge} * 1px);
5436      border: calc(${de} * 1px) solid ${Ch};
5437      height: calc(${xe} * 2px);
5438      font: inherit;
5439      font-size: ${ke};
5440      line-height: ${Fe};
5441      padding: calc(${K} * 2px + 1px);
5442      width: 100%;
5443      resize: none;
5444    }
5445
5446    :host([aria-invalid='true']) .control {
5447      border-color: ${$t};
5448    }
5449
5450    .control:hover:enabled {
5451      background: ${Mr};
5452      border-color: ${Ih};
5453    }
5454
5455    :host([aria-invalid='true']) .control:hover:enabled {
5456      border-color: ${ai};
5457    }
5458
5459    .control:active:enabled {
5460      background: ${Io};
5461      border-color: ${Eh};
5462    }
5463
5464    :host([aria-invalid='true']) .control:active:enabled {
5465      border-color: ${Mi};
5466    }
5467
5468    .control:hover,
5469    .control:${X},
5470    .control:disabled,
5471    .control:active {
5472      outline: none;
5473    }
5474
5475    :host(:focus-within) .control {
5476      border-color: ${qe};
5477      box-shadow: 0 0 0 calc((${be} - ${de}) * 1px)
5478        ${qe};
5479    }
5480
5481    :host([aria-invalid='true']:focus-within) .control {
5482      border-color: ${At};
5483      box-shadow: 0 0 0 calc((${be} - ${de}) * 1px)
5484        ${At};
5485    }
5486
5487    :host([appearance='filled']) .control {
5488      background: ${Tt};
5489    }
5490
5491    :host([appearance='filled']:hover:not([disabled])) .control {
5492      background: ${ps};
5493    }
5494
5495    :host([resize='both']) .control {
5496      resize: both;
5497    }
5498
5499    :host([resize='horizontal']) .control {
5500      resize: horizontal;
5501    }
5502
5503    :host([resize='vertical']) .control {
5504      resize: vertical;
5505    }
5506
5507    .label {
5508      display: block;
5509      color: ${fe};
5510      cursor: pointer;
5511      font-size: ${ke};
5512      line-height: ${Fe};
5513      margin-bottom: 4px;
5514    }
5515
5516    .label__hidden {
5517      display: none;
5518      visibility: hidden;
5519    }
5520
5521    :host([disabled]) .label,
5522    :host([readonly]) .label,
5523    :host([readonly]) .control,
5524    :host([disabled]) .control {
5525      cursor: ${mt};
5526    }
5527    :host([disabled]) {
5528      opacity: ${wt};
5529    }
5530    :host([disabled]) .control {
5531      border-color: ${Dr};
5532    }
5533
5534    :host([cols]) {
5535      width: initial;
5536    }
5537
5538    :host([rows]) .control {
5539      height: initial;
5540    }
5541  `.withBehaviors(ve(F`
5542      :host([disabled]) {
5543        opacity: 1;
5544      }
5545
5546      :host([aria-invalid='true']) .control {
5547        border-style: dashed;
5548      }
5549    `))});var mv,C6,I6=b(()=>{yn();B();oe();eX();mv=class extends Ni{constructor(){super(...arguments),this.appearance="outline"}};Z([A],mv.prototype,"appearance",void 0);C6=mv.compose({baseName:"text-area",baseClass:Ni,template:nW,styles:QY,shadowOptions:{delegatesFocus:!0}})});var tX,iX=b(()=>{B();Kt();tX=(i,e)=>F`
5550  ${ql}
5551
5552  .start,
5553    .end {
5554    display: flex;
5555  }
5556`});var gv,E6,k6=b(()=>{yn();B();oe();iX();gv=class extends pr{constructor(){super(...arguments),this.appearance="outline"}};Z([A],gv.prototype,"appearance",void 0);E6=gv.compose({baseName:"text-field",baseClass:pr,template:aW,styles:tX,shadowOptions:{delegatesFocus:!0}})});var rX,nX=b(()=>{B();oe();ye();Te();rX=(i,e)=>F`
5557    ${we("inline-flex")} :host {
5558      --toolbar-item-gap: calc(
5559        (var(--design-unit) + calc(var(--density) + 2)) * 1px
5560      );
5561      background-color: ${ze};
5562      border-radius: calc(${ge} * 1px);
5563      fill: currentcolor;
5564      padding: var(--toolbar-item-gap);
5565    }
5566
5567    :host(${X}) {
5568      outline: calc(${de} * 1px) solid ${qe};
5569    }
5570
5571    .positioning-region {
5572      align-items: flex-start;
5573      display: inline-flex;
5574      flex-flow: row wrap;
5575      justify-content: flex-start;
5576      width: 100%;
5577      height: 100%;
5578    }
5579
5580    :host([orientation='vertical']) .positioning-region {
5581      flex-direction: column;
5582    }
5583
5584    ::slotted(:not([slot])) {
5585      flex: 0 0 auto;
5586      margin: 0 var(--toolbar-item-gap);
5587    }
5588
5589    :host([orientation='vertical']) ::slotted(:not([slot])) {
5590      margin: var(--toolbar-item-gap) 0;
5591    }
5592
5593    .start,
5594    .end {
5595      display: flex;
5596      margin: auto;
5597      margin-inline: 0;
5598    }
5599
5600    ::slotted(svg) {
5601      /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
5602      width: 16px;
5603      height: 16px;
5604    }
5605  `.withBehaviors(ve(F`
5606      :host(:${X}) {
5607        box-shadow: 0 0 0 calc(${be} * 1px)
5608          ${D.Highlight};
5609        color: ${D.ButtonText};
5610        forced-color-adjust: none;
5611      }
5612    `))});
5612var sX,Hn,Rh,T6,om,A6=b(()=>{yn();B();oe();ye();u1();Te();nX();sX=Object.freeze({[hn.ArrowUp]:{[it.vertical]:-1},[hn.ArrowDown]:{[it.vertical]:1},[hn.ArrowLeft]:{[it.horizontal]:{[je.ltr]:-1,[je.rtl]:1}},[hn.ArrowRight]:{[it.horizontal]:{[je.ltr]:1,[je.rtl]:-1}}}),Hn=class extends ee{constructor(){super(...arguments),this._activeIndex=0,this.direction=je.ltr,this.orientation=it.horizontal}get activeIndex(){return _e.track(this,"activeIndex"),this._activeIndex}set activeIndex(e){this.$fastController.isConnected&&(this._activeIndex=_o(0,this.focusableElements.length-1,e),_e.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=Yr(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=sX[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=sX[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 hn)||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(Hn.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=>ph(c));return!t.hasAttribute("disabled")&&!t.hasAttribute("hidden")&&(ph(t)||a||l||u)?(e.push(t),e):t.childElementCount?e.concat(Array.from(t.children).reduce(Hn.reduceFocusableItems,[])):e}setFocusableElements(){this.$fastController.isConnected&&this.focusableElements.length>0&&this.focusableElements.forEach((e,t)=>{e.tabIndex=this.activeIndex===t?0:-1})}};Z([P],Hn.prototype,"direction",void 0);Z([A],Hn.prototype,"orientation",void 0);Z([P],Hn.prototype,"slottedItems",void 0);Z([P],Hn.prototype,"slottedLabel",void 0);Z([P],Hn.prototype,"childItems",void 0);Rh=class{};Z([A({attribute:"aria-labelledby"})],Rh.prototype,"ariaLabelledby",void 0);Z([A({attribute:"aria-label"})],Rh.prototype,"ariaLabel",void 0);He(Rh,at);He(Hn,ht,Rh);T6=class extends Hn{connectedCallback(){super.connectedCallback();let e=ha(this);e&&ze.setValueFor(this,t=>im.getValueFor(t).evaluate(t,ze.getValueFor(e)))}},om=T6.compose({baseName:"toolbar",baseClass:Hn,template:cW,styles:rX,shadowOptions:{delegatesFocus:!0}})});var oX,aX=b(()=>{B();oe();Te();oX=(i,e)=>{let t=i.tagFor(We);return F`
5613    :host {
5614      contain: size;
5615      overflow: visible;
5616      height: 0;
5617      width: 0;
5618    }
5619
5620    .tooltip {
5621      box-sizing: border-box;
5622      border-radius: calc(${ge} * 1px);
5623      border: calc(${de} * 1px) solid ${zi};
5624      box-shadow: 0 0 0 1px ${zi} inset;
5625      background: ${Tt};
5626      color: ${fe};
5627      padding: 4px;
5628      height: fit-content;
5629      width: fit-content;
5630      font-family: ${Me};
5631      font-size: ${ke};
5632      line-height: ${Fe};
5633      white-space: nowrap;
5634      /* TODO: a mechanism to manage z-index across components
5635                    https://github.com/microsoft/fast/issues/3813 */
5636      z-index: 10000;
5637    }
5638
5639    ${t} {
5640      display: flex;
5641      justify-content: center;
5642      align-items: center;
5643      overflow: visible;
5644      flex-direction: row;
5645    }
5646
5647    ${t}.right,
5648    ${t}.left {
5649      flex-direction: column;
5650    }
5651
5652    ${t}.top .tooltip {
5653      margin-bottom: 4px;
5654    }
5655
5656    ${t}.bottom .tooltip {
5657      margin-top: 4px;
5658    }
5659
5660    ${t}.left .tooltip {
5661      margin-right: 4px;
5662    }
5663
5664    ${t}.right .tooltip {
5665      margin-left: 4px;
5666    }
5667
5668    ${t}.top.left .tooltip,
5669            ${t}.top.right .tooltip {
5670      margin-bottom: 0px;
5671    }
5672
5673    ${t}.bottom.left .tooltip,
5674            ${t}.bottom.right .tooltip {
5675      margin-top: 0px;
5676    }
5677
5678    ${t}.top.left .tooltip,
5679            ${t}.bottom.left .tooltip {
5680      margin-right: 0px;
5681    }
5682
5683    ${t}.top.right .tooltip,
5684            ${t}.bottom.right .tooltip {
5685      margin-left: 0px;
5686    }
5687  `.withBehaviors(ve(F`
5688      :host([disabled]) {
5689        opacity: 1;
5690      }
5691    `))}});var M6,R6,D6=b(()=>{oe();aX();M6=class extends Wt{},R6=M6.compose({baseName:"tooltip",baseClass:Wt,template:bW,styles:oX}
5691)});var Dh,LSe,$Se,PSe,FSe,lX,uX=b(()=>{B();oe();ye();Te();Kt();Dh=$p`(((${zn} + ${_t}) * 0.5 + 2) * ${K})`,LSe=F`
5692  .expand-collapse-glyph {
5693    transform: rotate(0deg);
5694  }
5695  :host(.nested) .expand-collapse-button {
5696    left: var(
5697      --expand-collapse-button-nested-width,
5698      calc(
5699        (
5700            ${Dh} +
5701              ((${zn} + ${_t}) * 1.25)
5702          ) * -1px
5703      )
5704    );
5705  }
5706  :host([selected])::after {
5707    left: calc(${be} * 1px);
5708  }
5709  :host([expanded]) > .positioning-region .expand-collapse-glyph {
5710    transform: rotate(90deg);
5711  }
5712`,$Se=F`
5713  .expand-collapse-glyph {
5714    transform: rotate(180deg);
5715  }
5716  :host(.nested) .expand-collapse-button {
5717    right: var(
5718      --expand-collapse-button-nested-width,
5719      calc(
5720        (
5721            ${Dh} +
5722              ((${zn} + ${_t}) * 1.25)
5723          ) * -1px
5724      )
5725    );
5726  }
5727  :host([selected])::after {
5728    right: calc(${be} * 1px);
5729  }
5730  :host([expanded]) > .positioning-region .expand-collapse-glyph {
5731    transform: rotate(90deg);
5732  }
5733`,PSe=Pn.create("tree-item-expand-collapse-hover").withDefault(i=>{let e=Eo.getValueFor(i);return e.evaluate(i,e.evaluate(i).hover).hover}),FSe=Pn.create("tree-item-expand-collapse-selected-hover").withDefault(i=>{let e=ya.getValueFor(i);return Eo.getValueFor(i).evaluate(i,e.evaluate(i).rest).hover}),lX=(i,e)=>F`
5734    /**
5735     * This animation exists because when tree item children are conditionally loaded
5736     * there is a visual bug where the DOM exists but styles have not yet been applied (essentially FOUC).
5737     * This subtle animation provides a ever so slight timing adjustment for loading that solves the issue.
5738     */
5739    @keyframes treeItemLoading {
5740      0% {
5741        opacity: 0;
5742      }
5743      100% {
5744        opacity: 1;
5745      }
5746    }
5747
5748    ${we("block")} :host {
5749      contain: content;
5750      position: relative;
5751      outline: none;
5752      color: ${fe};
5753      background: ${Rr};
5754      cursor: pointer;
5755      font-family: ${Me};
5756      --tree-item-nested-width: 0;
5757    }
5758
5759    :host(:focus) > .positioning-region {
5760      outline: none;
5761    }
5762
5763    :host(:focus) .content-region {
5764      outline: none;
5765    }
5766
5767    :host(:${X}) .positioning-region {
5768      border-color: ${qe};
5769      box-shadow: 0 0 0 calc((${be} - ${de}) * 1px)
5770        ${qe} inset;
5771      color: ${fe};
5772    }
5773
5774    .positioning-region {
5775      display: flex;
5776      position: relative;
5777      box-sizing: border-box;
5778      background: ${Rr};
5779      border: transparent calc(${de} * 1px) solid;
5780      border-radius: calc(${ge} * 1px);
5781      height: calc((${xe} + 1) * 1px);
5782    }
5783
5784    .positioning-region::before {
5785      content: '';
5786      display: block;
5787      width: var(--tree-item-nested-width);
5788      flex-shrink: 0;
5789    }
5790
5791    :host(:not([disabled])) .positioning-region:hover {
5792      background: ${vn};
5793    }
5794
5795    :host(:not([disabled])) .positioning-region:active {
5796      background: ${_n};
5797    }
5798
5799    .content-region {
5800      display: inline-flex;
5801      align-items: center;
5802      white-space: nowrap;
5803      width: 100%;
5804      min-width: 0;
5805      height: calc(${xe} * 1px);
5806      margin-inline-start: calc(${K} * 2px + 8px);
5807      font-size: ${ke};
5808      line-height: ${Fe};
5809      font-weight: 400;
5810    }
5811
5812    .items {
5813      /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
5814      font-size: calc(1em + (${K} + 16) * 1px);
5815    }
5816
5817    .expand-collapse-button {
5818      background: none;
5819      border: none;
5820      outline: none;
5821      /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
5822      width: calc(${Dh} * 1px);
5823      height: calc(${Dh} * 1px);
5824      padding: 0;
5825      display: flex;
5826      justify-content: center;
5827      align-items: center;
5828      cursor: pointer;
5829      margin-left: 6px;
5830      margin-right: 6px;
5831    }
5832
5833    .expand-collapse-glyph {
5834      /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
5835      width: calc((16 + ${_t}) * 1px);
5836      height: calc((16 + ${_t}) * 1px);
5837      transition: transform 0.1s linear;
5838
5839      pointer-events: none;
5840      fill: currentcolor;
5841    }
5842
5843    .start,
5844    .end {
5845      display: flex;
5846      fill: currentcolor;
5847    }
5848
5849    ::slotted(svg) {
5850      /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
5851      width: 16px;
5852      height: 16px;
5853
5854      /* Something like that would do if the typography is adaptive
5855      font-size: inherit;
5856      width: ${Nl};
5857      height: ${Nl};
5858      */
5859    }
5860
5861    .start {
5862      /* TODO: horizontalSpacing https://github.com/microsoft/fast/issues/2766 */
5863      margin-inline-end: calc(${K} * 2px + 2px);
5864    }
5865
5866    .end {
5867      /* TODO: horizontalSpacing https://github.com/microsoft/fast/issues/2766 */
5868      margin-inline-start: calc(${K} * 2px + 2px);
5869    }
5870
5871    :host([expanded]) > .items {
5872      animation: treeItemLoading ease-in 10ms;
5873      animation-iteration-count: 1;
5874      animation-fill-mode: forwards;
5875    }
5876
5877    :host([disabled]) .content-region {
5878      opacity: ${wt};
5879      cursor: ${mt};
5880    }
5881
5882    :host(.nested) .content-region {
5883      position: relative;
5884      /* Add left margin to collapse button size */
5885      margin-inline-start: calc(
5886        (
5887            ${Dh} +
5888              ((${zn} + ${_t}) * 1.25)
5889          ) * 1px
5890      );
5891    }
5892
5893    :host(.nested) .expand-collapse-button {
5894      position: absolute;
5895    }
5896
5897    :host(.nested:not([disabled])) .expand-collapse-button:hover {
5898      background: ${PSe};
5899    }
5900
5901    :host([selected]) .positioning-region {
5902      background: ${Tt};
5903    }
5904
5905    :host([selected]:not([disabled])) .positioning-region:hover {
5906      background: ${ps};
5907    }
5908
5909    :host([selected]:not([disabled])) .positioning-region:active {
5910      background: ${zl};
5911    }
5912
5913    :host([selected]:not([disabled])) .expand-collapse-button:hover {
5914      background: ${FSe};
5915    }
5916
5917    :host([selected])::after {
5918      /* The background needs to be calculated based on the selected background state
5919         for this control. We currently have no way of changing that, so setting to
5920         accent-foreground-rest for the time being */
5921      background: ${oi};
5922      border-radius: calc(${ge} * 1px);
5923      content: '';
5924      display: block;
5925      position: absolute;
5926      top: calc((${xe} / 4) * 1px);
5927      width: 3px;
5928      height: calc((${xe} / 2) * 1px);
5929    }
5930
5931    ::slotted(${i.tagFor(Lt)}) {
5932      --tree-item-nested-width: 1em;
5933      --expand-collapse-button-nested-width: calc(
5934        (
5935            ${Dh} +
5936              ((${zn} + ${_t}) * 1.25)
5937          ) * -1px
5938      );
5939    }
5940  `.withBehaviors(new ms(LSe,$Se),ve(F`
5941      :host {
5942        forced-color-adjust: none;
5943        border-color: transparent;
5944        background: ${D.Field};
5945        color: ${D.FieldText};
5946      }
5947      :host .content-region .expand-collapse-glyph {
5948        fill: ${D.FieldText};
5949      }
5950      :host .positioning-region:hover,
5951      :host([selected]) .positioning-region {
5952        background: ${D.Highlight};
5953      }
5954      :host .positioning-region:hover .content-region,
5955      :host([selected]) .positioning-region .content-region {
5956        color: ${D.HighlightText};
5957      }
5958      :host .positioning-region:hover .content-region .expand-collapse-glyph,
5959      :host .positioning-region:hover .content-region .start,
5960      :host .positioning-region:hover .content-region .end,
5961      :host([selected]) .content-region .expand-collapse-glyph,
5962      :host([selected]) .content-region .start,
5963      :host([selected]) .content-region .end {
5964        fill: ${D.HighlightText};
5965      }
5966      :host([selected])::after {
5967        background: ${D.Field};
5968      }
5969      :host(:${X}) .positioning-region {
5970        border-color: ${D.FieldText};
5971        box-shadow: 0 0 0 2px inset ${D.Field};
5972        color: ${D.FieldText};
5973      }
5974      :host([disabled]) .content-region,
5975      :host([disabled]) .positioning-region:hover .content-region {
5976        opacity: 1;
5977        color: ${D.GrayText};
5978      }
5979      :host([disabled]) .content-region .expand-collapse-glyph,
5980      :host([disabled]) .content-region .start,
5981      :host([disabled]) .content-region .end,
5982      :host([disabled])
5983        .positioning-region:hover
5984        .content-region
5985        .expand-collapse-glyph,
5986      :host([disabled]) .positioning-region:hover .content-region .start,
5987      :host([disabled]) .positioning-region:hover .content-region .end {
5988        fill: ${D.GrayText};
5989      }
5990      :host([disabled]) .positioning-region:hover {
5991        background: ${D.Field};
5992      }
5993      .expand-collapse-glyph,
5994      .start,
5995      .end {
5996        fill: ${D.FieldText};
5997      }
5998      :host(.nested) .expand-collapse-button:hover {
5999        background: ${D.Field};
6000      }
6001      :host(.nested) .expand-collapse-button:hover .expand-collapse-glyph {
6002        fill: ${D.FieldText};
6003      }
6004    `))});var O6,L6,$6=b(()=>{oe();uX();O6=class extends Lt{},L6=O6.compose({baseName:"tree-item",baseClass:Lt,template:wW,styles:lX,expandCollapseGlyph:`
6005        <svg
6006            viewBox="0 0 16 16"
6007            xmlns="http://www.w3.org/2000/svg"
6008            class="expand-collapse-glyph"
6009        >
6010            <path
6011                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"
6012            />
6013        </svg>
6014    `})});var cX,dX=b(()=>{B();oe();cX=(i,e)=>F`
6015  ${we("flex")} :host {
6016    flex-direction: column;
6017    align-items: stretch;
6018    min-width: fit-content;
6019    font-size: 0;
6020  }
6021
6022  :host:focus-visible {
6023    outline: none;
6024  }
6025`});var P6,F6,N6=b(()=>{oe();dX();P6=class extends Dl{handleClick(e){if(e.defaultPrevented)return;if(!(e.target instanceof Element))return!0;let t=e.target;for(;t&&!Hs(t);)t=t.parentElement,t===this&&(t=null);t&&!t.disabled&&(t.selected=!0)}},F6=P6.compose({baseName:"tree-view",baseClass:Dl,template:IW,styles:cX})});var hX,fX=b(()=>{B();Te();Kt();hX=(i,e)=>F`
6026  .region {
6027    z-index: 1000;
6028    overflow: hidden;
6029    display: flex;
6030    font-family: ${Me};
6031    font-size: ${ke};
6032  }
6033
6034  .loaded {
6035    opacity: 1;
6036    pointer-events: none;
6037  }
6038
6039  .loading-display,
6040  .no-options-display {
6041    background: ${ze};
6042    width: 100%;
6043    min-height: calc(${xe} * 1px);
6044    display: flex;
6045    flex-direction: column;
6046    align-items: center;
6047    justify-items: center;
6048    padding: calc(${K} * 1px);
6049  }
6050
6051  .loading-progress {
6052    width: 42px;
6053    height: 42px;
6054  }
6055
6056  .bottom {
6057    flex-direction: column;
6058  }
6059
6060  .top {
6061    flex-direction: column-reverse;
6062  }
6063`});var pX,mX=b(()=>{B();oe();ye();Te();Kt();pX=(i,e)=>F`
6064    :host {
6065      background: ${ze};
6066      --elevation: 11;
6067      /* TODO: a mechanism to manage z-index across components
6068            https://github.com/microsoft/fast/issues/3813 */
6069      z-index: 1000;
6070      display: flex;
6071      width: 100%;
6072      max-height: 100%;
6073      min-height: 58px;
6074      box-sizing: border-box;
6075      flex-direction: column;
6076      overflow-y: auto;
6077      overflow-x: hidden;
6078      pointer-events: auto;
6079      border-radius: calc(${ge} * 1px);
6080      padding: calc(${K} * 1px) 0;
6081      border: calc(${de} * 1px) solid transparent;
6082      ${Vs}
6083    }
6084
6085    .suggestions-available-alert {
6086      height: 0;
6087      opacity: 0;
6088      overflow: hidden;
6089    }
6090  `.withBehaviors(ve(F`
6091      :host {
6092        background: ${D.Canvas};
6093        border-color: ${D.CanvasText};
6094      }
6095    `))});var gX,bX=b(()=>{B();oe();ye();Te();Kt();gX=(i,e)=>F`
6096    :host {
6097      display: flex;
6098      align-items: center;
6099      justify-items: center;
6100      font-family: ${Me};
6101      border-radius: calc(${ge} * 1px);
6102      border: calc(${be} * 1px) solid transparent;
6103      box-sizing: border-box;
6104      background: ${Rr};
6105      color: ${fe};
6106      cursor: pointer;
6107      fill: currentcolor;
6108      font-size: ${ke};
6109      min-height: calc(${xe} * 1px);
6110      line-height: ${Fe};
6111      margin: 0 calc(${K} * 1px);
6112      outline: none;
6113      overflow: hidden;
6114      padding: 0 calc(${K} * 2.25px);
6115      user-select: none;
6116      white-space: nowrap;
6117    }
6118
6119    :host(:${X}[role="listitem"]) {
6120      border-color: ${zi};
6121      background: ${Sh};
6122    }
6123
6124    :host(:hover) {
6125      background: ${vn};
6126    }
6127
6128    :host(:active) {
6129      background: ${_n};
6130    }
6131
6132    :host([aria-selected='true']) {
6133      background: ${ut};
6134      color: ${Ai};
6135    }
6136
6137    :host([aria-selected='true']:hover) {
6138      background: ${Ti};
6139      color: ${mr};
6140    }
6141
6142    :host([aria-selected='true']:active) {
6143      background: ${Gt};
6144      color: ${Bi};
6145    }
6146  `.withBehaviors(ve(F`
6147      :host {
6148        border-color: transparent;
6149        forced-color-adjust: none;
6150        color: ${D.ButtonText};
6151        fill: currentcolor;
6152      }
6153
6154      :host(:not([aria-selected='true']):hover),
6155      :host([aria-selected='true']) {
6156        background: ${D.Highlight};
6157        color: ${D.HighlightText};
6158      }
6159
6160      :host([disabled]),
6161      :host([disabled]:not([aria-selected='true']):hover) {
6162        background: ${D.Canvas};
6163        color: ${D.GrayText};
6164        fill: currentcolor;
6165        opacity: 1;
6166      }
6167    `))});var vX,_X=b(()=>{B();oe();ye();Te();Kt();vX=(i,e)=>F`
6168        :host {
6169            display: flex;
6170            flex-direction: row;
6171            column-gap: calc(${K} * 1px);
6172            row-gap: calc(${K} * 1px);
6173            flex-wrap: wrap;
6174        }
6175
6176        ::slotted([role="combobox"]) {
6177            min-width: 260px;
6178            width: auto;
6179            box-sizing: border-box;
6180            color: ${fe};
6181            background: ${bn};
6182            border-radius: calc(${ge} * 1px);
6183            border: calc(${de} * 1px) solid ${ut};
6184            height: calc(${xe} * 1px);
6185            font-family: ${Me};
6186            outline: none;
6187            user-select: none;
6188            font-size: ${ke};
6189            line-height: ${Fe};
6190            padding: 0 calc(${K} * 2px + 1px);
6191        }
6192
6193        ::slotted([role="combobox"]:active) { {
6194            background: ${Mr};
6195            border-color: ${Gt};
6196        }
6197
6198        ::slotted([role="combobox"]:focus-within) {
6199            border-color: ${zi};
6200            box-shadow: 0 0 0 1px ${zi} inset;
6201        }
6202    `.withBehaviors(ve(F`
6203      ::slotted([role='combobox']:active) {
6204        background: ${D.Field};
6205        border-color: ${D.Highlight};
6206      }
6207      ::slotted([role='combobox']:focus-within) {
6208        border-color: ${D.Highlight};
6209        box-shadow: 0 0 0 1px ${D.Highlight} inset;
6210      }
6211      ::slotted(input:placeholder) {
6212        color: ${D.GrayText};
6213      }
6214    `))});var yX,xX=b(()=>{B();oe();ye();Te();Kt();yX=(i,e)=>F`
6215    :host {
6216      display: flex;
6217      align-items: center;
6218      justify-items: center;
6219      font-family: ${Me};
6220      border-radius: calc(${ge} * 1px);
6221      border: calc(${be} * 1px) solid transparent;
6222      box-sizing: border-box;
6223      background: ${Rr};
6224      color: ${fe};
6225      cursor: pointer;
6226      fill: currentcolor;
6227      font-size: ${ke};
6228      height: calc(${xe} * 1px);
6229      line-height: ${Fe};
6230      outline: none;
6231      overflow: hidden;
6232      padding: 0 calc(${K} * 2.25px);
6233      user-select: none;
6234      white-space: nowrap;
6235    }
6236
6237    :host(:hover) {
6238      background: ${vn};
6239    }
6240
6241    :host(:active) {
6242      background: ${_n};
6243    }
6244
6245    :host(:${X}) {
6246      background: ${Sh};
6247      border-color: ${zi};
6248    }
6249
6250    :host([aria-selected='true']) {
6251      background: ${ut};
6252      color: ${Bi};
6253    }
6254  `.withBehaviors(ve(F`
6255      :host {
6256        border-color: transparent;
6257        forced-color-adjust: none;
6258        color: ${D.ButtonText};
6259        fill: currentcolor;
6260      }
6261
6262      :host(:not([aria-selected='true']):hover),
6263      :host([aria-selected='true']) {
6264        background: ${D.Highlight};
6265        color: ${D.HighlightText};
6266      }
6267
6268      :host([disabled]),
6269      :host([disabled]:not([aria-selected='true']):hover) {
6270        background: ${D.Canvas};
6271        color: ${D.GrayText};
6272        fill: currentcolor;
6273        opacity: 1;
6274      }
6275    `))});var B6,V6,z6,U6,q6,W6,H6,G6,j6,K6,Y6=b(()=>{oe();Te();fX();mX();bX();_X();xX();B6=class extends rt{},V6=B6.compose({baseName:"draft-picker",baseClass:rt,template:wV,styles:hX,shadowOptions:{}}),z6=class extends Ns{connectedCallback(){ze.setValueFor(this,wh),super.connectedCallback()}},U6=z6.compose({baseName:"draft-picker-menu",baseClass:Ns,template:EV,styles:pX}),q6=class extends Bs{},W6=q6.compose({baseName:"draft-picker-menu-option",baseClass:Bs,template:TV,styles:gX}),H6=class extends Ml{},G6=H6.compose({baseName:"draft-picker-list",baseClass:Ml,template:MV,styles:vX}),j6=class extends zs{},K6=j6.compose({baseName:"draft-picker-list-item",baseClass:zs,template:DV,styles:yX})});var wX=b(()=>{wS();_S();MS();OS();$S();NS();qS();VS();US();KS();JS();tC();lC();mC();_C();xC();CC();kC();MC();OC();$C();NC();qC();VC();GC();XC();ZC();e6();r6();o6();d6();p6();b6();y6();S6();I6();k6();A6();D6();$6();N6();Y6()});function ie(i){return M3.getOrCreate(i).withPrefix("jp")}var SX=b(()=>{oe()});var $e=b(()=>{iK();wX();SX();wS();MS();OS();$S();NS();qS();VS();US();KS();JS();tC();mC();lC();gC();gC();Te();_C();xC();CC();kC();MC();OC();$C();NC();qC();VC();GC();XC();ZC();e6();r6();o6();d6();ov();p6();S6();I6();k6();A6();D6();N6();$6();Y6()});function $(i,e,t){(0,bv.useEffect)(()=>
6275{if(t!==void 0&&i.current&&i.current[e]!==t)try{i.current[e]=t}catch(r){console.warn(r)}},[t,i.current])}function Ee(i,e,t){(0,bv.useLayoutEffect)(()=>(t!==void 0&&i?.current?.addEventListener(e,t),()=>{t?.cancel&&t.cancel(),i?.current?.removeEventListener(e,t)}),[e,t,i.current])}var bv,Je=b(()=>{bv=N(ue())});var Hl,Z_t,CX=b(()=>{$e();Hl=N(ue());Je();ie().register(xS());Z_t=(0,Hl.forwardRef)((i,e)=>{let t=(0,Hl.useRef)(null),{className:r,expandMode:n,...s}=i;return Ee(t,"change",i.onChange),(0,Hl.useImperativeHandle)(e,()=>t.current,[t.current]),Hl.default.createElement("jp-accordion",{ref:t,...s,"expand-mode":i.expandMode||i["expand-mode"],class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var jl,ryt,IX=b(()=>{$e();jl=N(ue());Je();ie().register(vS());ryt=(0,jl.forwardRef)((i,e)=>{let t=(0,jl.useRef)(null),{className:r,headingLevel:n,id:s,expanded:o,...a}=i;return Ee(t,"change",i.onChange),$(t,"expanded",i.expanded),(0,jl.useImperativeHandle)(e,()=>t.current,[t.current]),jl.default.createElement("jp-accordion-item",{ref:t,...a,"heading-level":i.headingLevel||i["heading-level"],id:i.id,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var Vl,lyt,EX=b(()=>{$e();Vl=N(ue());Je();ie().register(DS());lyt=(0,Vl.forwardRef)((i,e)=>{let t=(0,Vl.useRef)(null),{className:r,horizontalViewportLock:n,horizontalInset:s,verticalViewportLock:o,verticalInset:a,fixedPlacement:l,anchor:u,viewport:c,horizontalPositioningMode:d,horizontalDefaultPosition:h,horizontalThreshold:f,horizontalScaling:p,verticalPositioningMode:g,verticalDefaultPosition:v,verticalThreshold:_,verticalScaling:x,autoUpdateMode:y,anchorElement:C,viewportElement:S,verticalPosition:R,horizontalPosition:I,update:E,...w}=i;return Ee(t,"loaded",i.onLoaded),Ee(t,"positionchange",i.onPositionchange),$(t,"anchorElement",i.anchorElement),$(t,"viewportElement",i.viewportElement),$(t,"verticalPosition",i.verticalPosition),$(t,"horizontalPosition",i.horizontalPosition),$(t,"update",i.update),(0,Vl.useImperativeHandle)(e,()=>t.current,[t.current]),Vl.default.createElement("jp-anchored-region",{ref:t,...w,anchor:i.anchor,viewport:i.viewport,"horizontal-positioning-mode":i.horizontalPositioningMode||i["horizontal-positioning-mode"],"horizontal-default-position":i.horizontalDefaultPosition||i["horizontal-default-position"],"horizontal-threshold":i.horizontalThreshold||i["horizontal-threshold"],"horizontal-scaling":i.horizontalScaling||i["horizontal-scaling"],"vertical-positioning-mode":i.verticalPositioningMode||i["vertical-positioning-mode"],"vertical-default-position":i.verticalDefaultPosition||i["vertical-default-position"],"vertical-threshold":i.verticalThreshold||i["vertical-threshold"],"vertical-scaling":i.verticalScaling||i["vertical-scaling"],"auto-update-mode":i.autoUpdateMode||i["auto-update-mode"],class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,"horizontal-viewport-lock":i.horizontalViewportLock?"":void 0,"horizontal-inset":i.horizontalInset?"":void 0,"vertical-viewport-lock":i.verticalViewportLock?"":void 0,"vertical-inset":i.verticalInset?"":void 0,"fixed-placement":i.fixedPlacement?"":void 0,style:{...i.style}},i.children)})});var Ul,fyt,kX=b(()=>{$e();Ul=N(ue());Je();ie().register(AS());fyt=(0,Ul.forwardRef)((i,e)=>{let t=(0,Ul.useRef)(null),{className:r,appearance:n,download:s,href:o,hreflang:a,ping:l,referrerpolicy:u,rel:c,target:d,type:h,control:f,...p}=i;return $(t,"control",i.control),(0,Ul.useImperativeHandle)(e,()=>t.current,[t.current]),Ul.default.createElement("jp-anchor",{ref:t,...p,appearance:i.appearance,download:i.download,href:i.href,hreflang:i.hreflang,ping:i.ping,referrerpolicy:i.referrerpolicy,rel:i.rel,target:i.target,type:i.type,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var Wl,byt,TX=b(()=>{$e();Wl=N(ue());ie().register(LS());byt=(0,Wl.forwardRef)((i,e)=>{let t=(0,Wl.useRef)(null),{className:r,src:n,alt:s,fill:o,color:a,link:l,shape:u,...c}=i;return(0,Wl.useImperativeHandle)(e,()=>t.current,[t.current]),Wl.default.createElement("jp-avatar",{ref:t,...c,src:i.src,alt:i.alt,fill:i.fill,color:i.color,link:i.link,shape:i.shape,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var Gl,wyt,AX=b(()=>{$e();Gl=N(ue());Je();ie().register(FS());wyt=(0,Gl.forwardRef)((i,e)=>{let t=(0,Gl.useRef)(null),{className:r,fill:n,color:s,circular:o,...a}=i;return $(t,"circular",i.circular),(0,Gl.useImperativeHandle)(e,()=>t.current,[t.current]),Gl.default.createElement("jp-badge",{ref:t,...a,fill:i.fill,color:i.color,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var Kl,Eyt,MX=b(()=>{$e();Kl=N(ue());ie().register(zS());Eyt=(0,Kl.forwardRef)((i,e)=>{let t=(0,Kl.useRef)(null),{className:r,...n}=i;return(0,Kl.useImperativeHandle)(e,()=>t.current,[t.current]),Kl.default.createElement("jp-breadcrumb",{ref:t,...n,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var Yl,Ryt,RX=b(()=>{$e();Yl=N(ue());Je();ie().register(jS());Ryt=(0,Yl.forwardRef)((i,e)=>{let t=(0,Yl.useRef)(null),{className:r,download:n,href:s,hreflang:o,ping:a,referrerpolicy:l,rel:u,target:c,type:d,control:h,...f}=i;return $(t,"control",i.control),(0,Yl.useImperativeHandle)(e,()=>t.current,[t.current]),Yl.default.createElement("jp-breadcrumb-item",{ref:t,...f,download:i.download,href:i.href,hreflang:i.hreflang,ping:i.ping,referrerpolicy:i.referrerpolicy,rel:i.rel,target:i.target,type:i.type,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var Xl,DX,OX=b(()=>{$e();Xl=N(ue());Je();ie().register(sm());DX=(0,Xl.forwardRef)((i,e)=>{let t=(0,Xl.useRef)(null),{className:r,minimal:n,appearance:s,form:o,formaction:a,formenctype:l,formmethod:u,formtarget:c,type:d,autofocus:h,formnovalidate:f,defaultSlottedContent:p,disabled:g,required:v,..._}=i;return $(t,"autofocus",i.autofocus),$(t,"formnovalidate",i.formnovalidate),$(t,"defaultSlottedContent",i.defaultSlottedContent),$(t,"disabled",i.disabled),$(t,"required",i.required),(0,Xl.useImperativeHandle)(e,()=>t.current,[t.current]),Xl.default.createElement("jp-button",{ref:t,..._,appearance:i.appearance,form:i.form,formaction:i.formaction,formenctype:i.formenctype,formmethod:i.formmethod,formtarget:i.formtarget,type:i.type,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,minimal:i.minimal?"":void 0,style:{...i.style}},i.children)})});var Jl,Byt,LX=b(()=>{$e();Jl=N(ue());ie().register(GS());Byt=(0,Jl.forwardRef)((i,e)=>{let t=(0,Jl.useRef)(null),{className:r,...n}=i;return(0,Jl.useImperativeHandle)(e,()=>t.current,[t.current]),Jl.default.createElement("jp-card",{ref:t,...n,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var Zl,Vyt,$X=b(()=>{$e();Zl=N(ue());Je();ie().register(XS());Vyt=(0,Zl.forwardRef)((i,e)=>{let t=(0,Zl.useRef)(null),{className:r,readonly:n,readOnly:s,indeterminate:o,checked:a,disabled:l,required:u,...c}=i;Ee(t,"change",i.onChange),$(t,"readOnly",i.readOnly),$(t,"indeterminate",i.indeterminate),$(t,"checked",i.checked),$(t,"disabled",i.disabled),$(t,"required",i.required),(0,Zl.useImperativeHandle)(e,()=>t.current,[t.current]);let d=r??"";return t.current?.indeterminate&&(d+=" indeterminate"),Zl.default.createElement("jp-checkbox",{ref:t,...c,class:d.trim(),exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,readonly:i.readonly?"":void 0,style:{...i.style}},i.children)})});var Ql,Kyt,PX=b(()=>{$e();Ql=N(ue());Je();ie().register(eC());
6275Kyt=(0,Ql.forwardRef)((i,e)=>{let t=(0,Ql.useRef)(null),{className:r,autowidth:n,minimal:s,open:o,autocomplete:a,placeholder:l,position:u,autoWidth:c,filteredOptions:d,options:h,value:f,length:p,disabled:g,selectedIndex:v,selectedOptions:_,required:x,...y}=i;return Ee(t,"input",i.onInput),Ee(t,"change",i.onChange),$(t,"autoWidth",i.autoWidth),$(t,"filteredOptions",i.filteredOptions),$(t,"options",i.options),$(t,"value",i.value),$(t,"length",i.length),$(t,"disabled",i.disabled),$(t,"selectedIndex",i.selectedIndex),$(t,"selectedOptions",i.selectedOptions),$(t,"required",i.required),(0,Ql.useImperativeHandle)(e,()=>t.current,[t.current]),Ql.default.createElement("jp-combobox",{ref:t,...y,autocomplete:i.autocomplete,placeholder:i.placeholder,position:i.position,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,autowidth:i.autowidth?"":void 0,minimal:i.minimal?"":void 0,open:i.open?"":void 0,style:{...i.style}},i.children)})});var eu,Qyt,FX=b(()=>{$e();eu=N(ue());Je();ie().register(pC());Qyt=(0,eu.forwardRef)((i,e)=>{let t=(0,eu.useRef)(null),{className:r,autofocus:n,step:s,max:o,min:a,disabled:l,required:u,...c}=i;return Ee(t,"input",i.onInput),Ee(t,"change",i.onChange),$(t,"autofocus",i.autofocus),$(t,"step",i.step),$(t,"max",i.max),$(t,"min",i.min),$(t,"disabled",i.disabled),$(t,"required",i.required),(0,eu.useImperativeHandle)(e,()=>t.current,[t.current]),eu.default.createElement("jp-date-field",{ref:t,...c,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var tu,nxt,NX=b(()=>{$e();tu=N(ue());Je();ie().register(sC());nxt=(0,tu.forwardRef)((i,e)=>{let t=(0,tu.useRef)(null),{className:r,cellType:n,gridColumn:s,rowData:o,columnDefinition:a,...l}=i;Ee(t,"cell-focused",i.onCellFocused),$(t,"rowData",i.rowData),$(t,"columnDefinition",i.columnDefinition),(0,tu.useImperativeHandle)(e,()=>t.current,[t.current]);let u=r??"";return t.current?.cellType==="columnheader"&&(u+=" column-header"),tu.default.createElement("jp-data-grid-cell",{ref:t,...l,"cell-type":i.cellType||i["cell-type"],"grid-column":i.gridColumn||i["grid-column"],class:u.trim(),exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var iu,uxt,BX=b(()=>{$e();iu=N(ue());Je();ie().register(oC());uxt=(0,iu.forwardRef)((i,e)=>{let t=(0,iu.useRef)(null),{className:r,gridTemplateColumns:n,rowType:s,rowData:o,columnDefinitions:a,cellItemTemplate:l,headerCellItemTemplate:u,rowIndex:c,...d}=i;Ee(t,"row-focused",i.onRowFocused),$(t,"rowData",i.rowData),$(t,"columnDefinitions",i.columnDefinitions),$(t,"cellItemTemplate",i.cellItemTemplate),$(t,"headerCellItemTemplate",i.headerCellItemTemplate),$(t,"rowIndex",i.rowIndex),(0,iu.useImperativeHandle)(e,()=>t.current,[t.current]);let h=r??"";return t.current&&t.current.rowType!=="default"&&(h+=` ${t.current.rowType}`),iu.default.createElement("jp-data-grid-row",{ref:t,...d,"grid-template-columns":i.gridTemplateColumns||i["grid-template-columns"],"row-type":i.rowType||i["row-type"],class:h.trim(),exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var ru,pxt,zX=b(()=>{$e();ru=N(ue());Je();ie().register(aC());pxt=(0,ru.forwardRef)((i,e)=>{let t=(0,ru.useRef)(null),{className:r,noTabbing:n,generateHeader:s,gridTemplateColumns:o,rowsData:a,columnDefinitions:l,rowItemTemplate:u,cellItemTemplate:c,headerCellItemTemplate:d,focusRowIndex:h,focusColumnIndex:f,rowElementTag:p,...g}=i;return $(t,"rowsData",i.rowsData),$(t,"columnDefinitions",i.columnDefinitions),$(t,"rowItemTemplate",i.rowItemTemplate),$(t,"cellItemTemplate",i.cellItemTemplate),$(t,"headerCellItemTemplate",i.headerCellItemTemplate),$(t,"focusRowIndex",i.focusRowIndex),$(t,"focusColumnIndex",i.focusColumnIndex),$(t,"rowElementTag",i.rowElementTag),(0,ru.useImperativeHandle)(e,()=>t.current,[t.current]),ru.default.createElement("jp-data-grid",{ref:t,...g,"generate-header":i.generateHeader||i["generate-header"],"grid-template-columns":i.gridTemplateColumns||i["grid-template-columns"],class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,"no-tabbing":i.noTabbing?"":void 0,style:{...i.style}},i.children)})});var nu,_xt,qX=b(()=>{$e();nu=N(ue());Je();ie().register(vC());_xt=(0,nu.forwardRef)((i,e)=>{let t=(0,nu.useRef)(null),{className:r,trapFocus:n,ariaDescribedby:s,ariaLabelledby:o,ariaLabel:a,modal:l,hidden:u,...c}=i;return Ee(t,"cancel",i.onCancel),Ee(t,"close",i.onClose),$(t,"modal",i.modal),$(t,"hidden",i.hidden),(0,nu.useImperativeHandle)(e,()=>({show:()=>t.current.show(),hide:()=>t.current.hide(),compose:(d,h)=>t.current.compose(d,h)})),nu.default.createElement("jp-dialog",{ref:t,...c,"aria-describedby":i.ariaDescribedby||i["aria-describedby"],"aria-labelledby":i.ariaLabelledby||i["aria-labelledby"],"aria-label":i.ariaLabel||i["aria-label"],class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,"trap-focus":i.trapFocus?"":void 0,style:{...i.style}},i.children)})});var su,Cxt,HX=b(()=>{$e();su=N(ue());Je();ie().register(yC());
6275Cxt=(0,su.forwardRef)((i,e)=>{let t=(0,su.useRef)(null),{className:r,appearance:n,title:s,expanded:o,...a}=i;return Ee(t,"toggle",i.onToggle),$(t,"expanded",i.expanded),(0,su.useImperativeHandle)(e,()=>t.current,[t.current]),su.default.createElement("jp-disclosure",{ref:t,...a,appearance:i.appearance,title:i.title,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var ou,Txt,jX=b(()=>{$e();ou=N(ue());ie().register(SC());Txt=(0,ou.forwardRef)((i,e)=>{let t=(0,ou.useRef)(null),{className:r,role:n,orientation:s,...o}=i;return(0,ou.useImperativeHandle)(e,()=>t.current,[t.current]),ou.default.createElement("jp-divider",{ref:t,...o,role:i.role,orientation:i.orientation,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var au,Oxt,VX=b(()=>{$e();au=N(ue());Je();ie().register(EC());Oxt=(0,au.forwardRef)((i,e)=>{let t=(0,au.useRef)(null),{className:r,multiple:n,size:s,length:o,options:a,disabled:l,selectedIndex:u,selectedOptions:c,...d}=i;return Ee(t,"change",i.onChange),$(t,"multiple",i.multiple),$(t,"size",i.size),$(t,"length",i.length),$(t,"options",i.options),$(t,"disabled",i.disabled),$(t,"selectedIndex",i.selectedIndex),$(t,"selectedOptions",i.selectedOptions),(0,au.useImperativeHandle)(e,()=>t.current,[t.current]),au.default.createElement("jp-listbox",{ref:t,...d,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var lu,Nxt,UX=b(()=>{$e();lu=N(ue());Je();ie().register(DC());Nxt=(0,lu.forwardRef)((i,e)=>{let t=(0,lu.useRef)(null),{className:r,role:n,disabled:s,expanded:o,checked:a,...l}=i;Ee(t,"expanded-change",i.onExpand),Ee(t,"change",i.onChange),$(t,"disabled",i.disabled),$(t,"expanded",i.expanded),$(t,"checked",i.checked),(0,lu.useImperativeHandle)(e,()=>t.current,[t.current]);let u=r??"";return t.current&&(u+=` indent-${t.current.startColumnCount}`,t.current.expanded&&(u+=" expanded")),lu.default.createElement("jp-menu-item",{ref:t,...l,role:i.role,class:u.trim(),exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var uu,Hxt,WX=b(()=>{$e();uu=N(ue());ie().register(AC());Hxt=(0,uu.forwardRef)((i,e)=>{let t=(0,uu.useRef)(null),{className:r,...n}=i;return(0,uu.useImperativeHandle)(e,()=>t.current,[t.current]),uu.default.createElement("jp-menu",{ref:t,...n,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var cu,Gxt,GX=b(()=>{$e();cu=N(ue());Je();ie().register(LC());Gxt=(0,cu.forwardRef)((i,e)=>{let t=(0,cu.useRef)(null),{className:r,readonly:n,hideStep:s,appearance:o,placeholder:a,list:l,readOnly:u,autofocus:c,maxlength:d,minlength:h,size:f,step:p,max:g,min:v,disabled:_,required:x,...y}=i;return Ee(t,"input",i.onInput),Ee(t,"change",i.onChange),$(t,"readOnly",i.readOnly),$(t,"autofocus",i.autofocus),$(t,"maxlength",i.maxlength),$(t,"minlength",i.minlength),$(t,"size",i.size),$(t,"step",i.step),$(t,"max",i.max),$(t,"min",i.min),$(t,"disabled",i.disabled),$(t,"required",i.required),(0,cu.useImperativeHandle)(e,()=>t.current,[t.current]),cu.default.createElement("jp-number-field",{ref:t,...y,appearance:i.appearance,placeholder:i.placeholder,list:i.list,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,readonly:i.readonly?"":void 0,"hide-step":i.hideStep?"":void 0,style:{...i.style}},i.children)})});var du,Jxt,KX=b(()=>{$e();du=N(ue());Je();ie().register(FC());Jxt=(0,du.forwardRef)((i,e)=>{let t=(0,du.useRef)(null),{className:r,selected:n,value:s,checked:o,content:a,defaultSelected:l,disabled:u,selectedAttribute:c,dirtyValue:d,...h}=i;return $(t,"checked",i.checked),$(t,"content",i.content),$(t,"defaultSelected",i.defaultSelected),$(t,"disabled",i.disabled),$(t,"selectedAttribute",i.selectedAttribute),$(t,"dirtyValue",i.dirtyValue),(0,du.useImperativeHandle)(e,()=>t.current,[t.current]),du.default.createElement("jp-option",{ref:t,...h,value:i.value,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,selected:i.selected?"":void 0,style:{...i.style}},i.children)})});var hu,iwt,YX=b(()=>{$e();hu=N(ue());Je();ie().register(jC());iwt=(0,hu.forwardRef)((i,e)=>{let t=(0,hu.useRef)(null),{className:r,value:n,min:s,max:o,paused:a,...l}=i;return $(t,"value",i.value),$(t,"min",i.min),$(t,"max",i.max),$(t,"paused",i.paused),(0,hu.useImperativeHandle)(e,()=>t.current,[t.current]),hu.default.createElement("jp-progress-ring",{ref:t,...l,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var fu,awt,XX=b(()=>{$e();fu=N(ue());Je();ie().register(zC());awt=(0,fu.forwardRef)((i,e)=>{let t=(0,fu.useRef)(null),{className:r,value:n,min:s,max:o,paused:a,...l}=i;return $(t,"value",i.value),$(t,"min",i.min),$(t,"max",i.max),$(t,"paused",i.paused),(0,fu.useImperativeHandle)(e,()=>t.current,[t.current]),fu.default.createElement("jp-progress",{ref:t,...l,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var pu,hwt,JX=b(()=>{$e();pu=N(ue());Je();ie().register(WC());hwt=(0,pu.forwardRef)((i,e)=>{let t=(0,pu.useRef)(null),{className:r,readonly:n,readOnly:s,name:o,checked:a,disabled:l,required:u,...c}=i;return Ee(t,"change",i.onChange),$(t,"readOnly",i.readOnly),$(t,"name",i.name),$(t,"checked",i.checked),$(t,"disabled",i.disabled),$(t,"required",i.required),(0,pu.useImperativeHandle)(e,()=>t.current,[t.current]),pu.default.createElement("jp-radio",{ref:t,...c,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,readonly:i.readonly?"":void 0,style:{...i.style}},i.children)})});var mu,bwt,ZX=b(()=>{$e();mu=N(ue());Je();ie().register(YC());bwt=(0,mu.forwardRef)((i,e)=>{let t=(0,mu.useRef)(null),{className:r,readonly:n,disabled:s,name:o,value:a,orientation:l,readOnly:u,...c}=i;return Ee(t,"change",i.onChange),$(t,"readOnly",i.readOnly),(0,mu.useImperativeHandle)(e,()=>t.current,[t.current]),mu.default.createElement("jp-radio-group",{ref:t,...c,name:i.name,value:i.value,orientation:i.orientation,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,readonly:i.readonly?"":void 0,disabled:i.disabled?"":void 0,style:{...i.style}},i.children)})});var gu,wwt,QX=b(()=>{$e();gu=N(ue());Je();ie().register(JC());wwt=(0,gu.forwardRef)((i,e)=>{let t=(0,gu.useRef)(null),{className:r,readonly:n,appearance:s,placeholder:o,list:a,pattern:l,readOnly:u,autofocus:c,maxlength:d,minlength:h,size:f,spellcheck:p,disabled:g,required:v,..._}=i;return Ee(t,"input",i.onInput),Ee(t,"change",i.onChange),$(t,"readOnly",i.readOnly),$(t,"autofocus",i.autofocus),$(t,"maxlength",i.maxlength),$(t,"minlength",i.minlength),$(t,"size",i.size),$(t,"spellcheck",i.spellcheck),$(t,"disabled",i.disabled),$(t,"required",i.required),(0,gu.useImperativeHandle)(e,()=>t.current,[t.current]),gu.default.createElement("jp-search",{ref:t,..._,appearance:i.appearance,placeholder:i.placeholder,list:i.list,pattern:i.pattern,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,readonly:i.readonly?"":void 0,style:{...i.style}},i.children)})});var bu,kwt,eJ=b(()=>{$e();bu=N(ue());Je();ie().register(QC());kwt=(0,bu.forwardRef)((i,e)=>{let t=(0,bu.useRef)(null),{className:r,autowidth:n,minimal:s,open:o,position:a,autoWidth:l,value:u,displayValue:c,multiple:d,size:h,length:f,options:p,disabled:g,selectedIndex:v,selectedOptions:_,required:x,...y}=i;return Ee(t,"input",i.onInput),Ee(t,"change",i.onChange),$(t,"autoWidth",i.autoWidth),$(t,"value",i.value),$(t,"displayValue",i.displayValue),$(t,"multiple",i.multiple),$(t,"size",i.size),$(t,"length",i.length),$(t,"options",i.options),$(t,"disabled",i.disabled),$(t,"selectedIndex",i.selectedIndex),$(t,"selectedOptions",i.selectedOptions),$(t,"required",i.required),(0,bu.useImperativeHandle)(e,()=>t.current,[t.current]),bu.default.createElement("jp-select",{ref:t,...y,position:i.position,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,autowidth:i.autowidth?"":void 0,minimal:i.minimal?"":void 0,open:i.open?"":void 0,style:{...i.style}},i.children)})});var vu,Dwt,tJ=b(()=>{$e();vu=N(ue());Je();ie().register(i6());Dwt=(0,vu.forwardRef)((i,e)=>{let t=(0,vu.useRef)(null),{className:r,fill:n,shape:s,pattern:o,shimmer:a,...l}=i;return $(t,"shimmer",i.shimmer),(0,vu.useImperativeHandle)(e,()=>t.current,[t.current]),vu.default.createElement("jp-skeleton",{ref:t,...l,fill:i.fill,shape:i.shape,pattern:i.pattern,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var _u,Fwt,iJ=b(()=>{$e();_u=N(ue());Je();ie().register(s6());Fwt=(0,_u.forwardRef)((i,e)=>{let t=(0,_u.useRef)(null),{className:r,readonly:n,orientation:s,mode:o,readOnly:a,valueAsNumber:l,valueTextFormatter:u,min:c,max:d,step:h,disabled:f,required:p,...g}=i;return Ee(t,"change",i.onChange),$(t,"readOnly",i.readOnly),$(t,"valueAsNumber",i.valueAsNumber),$(t,"valueTextFormatter",i.valueTextFormatter),$(t,"min",i.min),$(t,"max",i.max),$(t,"step",i.step),$(t,"disabled",i.disabled),$(t,"required",i.required),(0,_u.useImperativeHandle)(e,()=>t.current,[t.current]),_u.default.createElement("jp-slider",{ref:t,...g,orientation:i.orientation,mode:i.mode,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,readonly:i.readonly?"":void 0,style:{...i.style}},i.children)})});var yu,qwt,rJ=b(()=>{$e();yu=N(ue());ie().register(c6());qwt=(0,yu.forwardRef)((i,e)=>{let t=(0,yu.useRef)(null),{className:r,hideMark:n,disabled:s,position:o,...a}=i;(0,yu.useImperativeHandle)(e,()=>t.current,[t.current]);let l=r??"";return t.current?.disabled&&(l+=" disabled"),yu.default.createElement("jp-slider-label",{ref:t,...a,position:i.position,class:l.trim(),exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,"hide-mark":i.hideMark?"":void 0,disabled:i.disabled?"":void 0,style:{...i.style}},i.children)})});var xu,Wwt,nJ=b(()=>{$e();xu=N(ue());Je();ie().register(f6());Wwt=(0,xu.forwardRef)((i,e)=>{let t=(0,xu.useRef)(null),{className:r,readonly:n,readOnly:s,checked:o,disabled:a,required:l,...u}=i;return Ee(t,"change",i.onChange),$(t,"readOnly",i.readOnly),$(t,"checked",i.checked),$(t,"disabled",i.disabled),$(t,"required",i.required),(0,xu.useImperativeHandle)(e,()=>t.current,[t.current]),xu.default.createElement("jp-switch",{ref:t,...u,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,readonly:i.readonly?"":void 0,style:{...i.style}},i.children)})});var wu,Jwt,sJ=b(()=>{$e();wu=N(ue());Je();ie().register(_6());Jwt=(0,wu.forwardRef)((i,e)=>{let t=(0,wu.useRef)(null),{className:r,disabled:n,...s}=i;$(t,"disabled",i.disabled),(0,wu.useImperativeHandle)(e,()=>t.current,[t.current]);let o=r??"";return t.current?.classList.contains("vertical")&&(o+=" vertical"),wu.default.createElement("jp-tab",{ref:t,...s,class:o.trim(),exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});
6275var Su,t2t,oJ=b(()=>{$e();Su=N(ue());ie().register(g6());t2t=(0,Su.forwardRef)((i,e)=>{let t=(0,Su.useRef)(null),{className:r,...n}=i;return(0,Su.useImperativeHandle)(e,()=>t.current,[t.current]),Su.default.createElement("jp-tab-panel",{ref:t,...n,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var Cu,o2t,aJ=b(()=>{$e();Cu=N(ue());Je();ie().register(w6());o2t=(0,Cu.forwardRef)((i,e)=>{let t=(0,Cu.useRef)(null),{className:r,orientation:n,activeid:s,activeindicator:o,activetab:a,...l}=i;return Ee(t,"change",i.onChange),$(t,"activeindicator",i.activeindicator),$(t,"activetab",i.activetab),(0,Cu.useImperativeHandle)(e,()=>t.current,[t.current]),Cu.default.createElement("jp-tabs",{ref:t,...l,orientation:i.orientation,activeid:i.activeid,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var Iu,d2t,lJ=b(()=>{$e();Iu=N(ue());Je();ie().register(C6());d2t=(0,Iu.forwardRef)((i,e)=>{let t=(0,Iu.useRef)(null),{className:r,appearance:n,resize:s,form:o,list:a,name:l,placeholder:u,readOnly:c,autofocus:d,maxlength:h,minlength:f,cols:p,rows:g,spellcheck:v,disabled:_,required:x,...y}=i;return Ee(t,"select",i.onSelect),Ee(t,"change",i.onChange),$(t,"readOnly",i.readOnly),$(t,"autofocus",i.autofocus),$(t,"maxlength",i.maxlength),$(t,"minlength",i.minlength),$(t,"cols",i.cols),$(t,"rows",i.rows),$(t,"spellcheck",i.spellcheck),$(t,"disabled",i.disabled),$(t,"required",i.required),(0,Iu.useImperativeHandle)(e,()=>t.current,[t.current]),Iu.default.createElement("jp-text-area",{ref:t,...y,appearance:i.appearance,resize:i.resize,form:i.form,list:i.list,name:i.name,placeholder:i.placeholder,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var Eu,g2t,uJ=b(()=>{$e();Eu=N(ue());Je();ie().register(E6());g2t=(0,Eu.forwardRef)((i,e)=>{let t=(0,Eu.useRef)(null),{className:r,readonly:n,appearance:s,placeholder:o,type:a,list:l,pattern:u,readOnly:c,autofocus:d,maxlength:h,minlength:f,size:p,spellcheck:g,disabled:v,required:_,...x}=i;return Ee(t,"change",i.onChange),Ee(t,"input",i.onInput),$(t,"readOnly",i.readOnly),$(t,"autofocus",i.autofocus),$(t,"maxlength",i.maxlength),$(t,"minlength",i.minlength),$(t,"size",i.size),$(t,"spellcheck",i.spellcheck),$(t,"disabled",i.disabled),$(t,"required",i.required),(0,Eu.useImperativeHandle)(e,()=>t.current,[t.current]),Eu.default.createElement("jp-text-field",{ref:t,...x,appearance:i.appearance,placeholder:i.placeholder,type:i.type,list:i.list,pattern:i.pattern,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,readonly:i.readonly?"":void 0,style:{...i.style}},i.children)})});var ku,y2t,cJ=b(()=>{$e();ku=N(ue());ie().register(om());y2t=(0,ku.forwardRef)((i,e)=>{let t=(0,ku.useRef)(null),{className:r,...n}=i;return(0,ku.useImperativeHandle)(e,()=>t.current,[t.current]),ku.default.createElement("jp-toolbar",{ref:t,...n,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var Tu,I2t,dJ=b(()=>{$e();Tu=N(ue());Je();ie().register(R6());I2t=(0,Tu.forwardRef)((i,e)=>{let t=(0,Tu.useRef)(null),{className:r,horizontalViewportLock:n,verticalViewportLock:s,anchor:o,delay:a,position:l,autoUpdateMode:u,visible:c,anchorElement:d,...h}=i;return Ee(t,"dismiss",i.onDismiss),$(t,"visible",i.visible),$(t,"anchorElement",i.anchorElement),(0,Tu.useImperativeHandle)(e,()=>t.current,[t.current]),Tu.default.createElement("jp-tooltip",{ref:t,...h,anchor:i.anchor,delay:i.delay,position:i.position,"auto-update-mode":i.autoUpdateMode||i["auto-update-mode"],class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,"horizontal-viewport-lock":i.horizontalViewportLock?"":void 0,"vertical-viewport-lock":i.verticalViewportLock?"":void 0,style:{...i.style}},i.children)})});var Au,A2t,hJ=b(()=>{$e();Au=N(ue());Je();ie().register(L6());A2t=(0,Au.forwardRef)((i,e)=>{let t=(0,Au.useRef)(null),{className:r,expanded:n,selected:s,disabled:o,...a}=i;Ee(t,"expanded-change",i.onExpand),Ee(t,"selected-change",i.onSelect),$(t,"expanded",i.expanded),$(t,"selected",i.selected),$(t,"disabled",i.disabled),(0,Au.useImperativeHandle)(e,()=>t.current,[t.current]);let l=r??"";return t.current?.nested&&(l+=" nested"),Au.default.createElement("jp-tree-item",{ref:t,...a,class:l.trim(),exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var To,O2t,fJ=b(()=>{$e();To=N(ue());Je();ie().register(F6());O2t=(0,To.forwardRef)((i,e)=>{let t=(0,To.useRef)(null),{className:r,renderCollapsedNodes:n,currentSelected:s,...o}=i;return(0,To.useLayoutEffect)(()=>{t.current?.setItems()},[t.current]),$(t,"currentSelected",i.currentSelected),(0,To.useImperativeHandle)(e,()=>t.current,[t.current]),To.default.createElement("jp-tree-view",{ref:t,...o,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,"render-collapsed-nodes":i.renderCollapsedNodes?"":void 0,style:{...i.style}},i.children)})});
6275var Mu,N2t,pJ=b(()=>{$e();Mu=N(ue());Je();ie().register(V6());N2t=(0,Mu.forwardRef)((i,e)=>{let t=(0,Mu.useRef)(null),{className:r,filterSelected:n,filterQuery:s,selection:o,options:a,maxSelected:l,noSuggestionsText:u,suggestionsAvailableText:c,loadingText:d,label:h,labelledby:f,placeholder:p,menuPlacement:g,showLoading:v,listItemTemplate:_,defaultListItemTemplate:x,menuOptionTemplate:y,defaultMenuOptionTemplate:C,listItemContentsTemplate:S,menuOptionContentsTemplate:R,optionsList:I,query:E,itemsPlaceholderElement:w,...k}=i;return $(t,"showLoading",i.showLoading),$(t,"listItemTemplate",i.listItemTemplate),$(t,"defaultListItemTemplate",i.defaultListItemTemplate),$(t,"menuOptionTemplate",i.menuOptionTemplate),$(t,"defaultMenuOptionTemplate",i.defaultMenuOptionTemplate),$(t,"listItemContentsTemplate",i.listItemContentsTemplate),$(t,"menuOptionContentsTemplate",i.menuOptionContentsTemplate),$(t,"optionsList",i.optionsList),$(t,"query",i.query),$(t,"itemsPlaceholderElement",i.itemsPlaceholderElement),(0,Mu.useImperativeHandle)(e,()=>t.current,[t.current]),Mu.default.createElement("jp-draft-picker",{ref:t,...k,selection:i.selection,options:i.options,"max-selected":i.maxSelected||i["max-selected"],"no-suggestions-text":i.noSuggestionsText||i["no-suggestions-text"],"suggestions-available-text":i.suggestionsAvailableText||i["suggestions-available-text"],"loading-text":i.loadingText||i["loading-text"],label:i.label,labelledby:i.labelledby,placeholder:i.placeholder,"menu-placement":i.menuPlacement||i["menu-placement"],class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,"filter-selected":i.filterSelected?"":void 0,"filter-query":i.filterQuery?"":void 0,style:{...i.style}},i.children)})});var Ru,j2t,mJ=b(()=>{$e();Ru=N(ue());Je();ie().register(U6());j2t=(0,Ru.forwardRef)((i,e)=>{let t=(0,Ru.useRef)(null),{className:r,suggestionsAvailableText:n,...s}=i;return $(t,"suggestionsAvailableText",i.suggestionsAvailableText),(0,Ru.useImperativeHandle)(e,()=>t.current,[t.current]),Ru.default.createElement("jp-draft-picker-menu",{ref:t,...s,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var Du,K2t,gJ=b(()=>{$e();Du=N(ue());Je();ie().register(W6());K2t=(0,Du.forwardRef)((i,e)=>{let t=(0,Du.useRef)(null),{className:r,value:n,contentsTemplate:s,...o}=i;return $(t,"contentsTemplate",i.contentsTemplate),(0,Du.useImperativeHandle)(e,()=>t.current,[t.current]),Du.default.createElement("jp-draft-picker-menu-option",{ref:t,...o,value:i.value,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var Ou,Z2t,bJ=b(()=>{$e();Ou=N(ue());ie().register(G6());Z2t=(0,Ou.forwardRef)((i,e)=>{let t=(0,Ou.useRef)(null),{className:r,...n}=i;return(0,Ou.useImperativeHandle)(e,()=>t.current,[t.current]),Ou.default.createElement("jp-draft-picker-list",{ref:t,...n,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var Lu,r3t,vJ=b(()=>{$e();Lu=N(ue());Je();ie().register(K6());r3t=(0,Lu.forwardRef)((i,e)=>{let t=(0,Lu.useRef)(null),{className:r,value:n,contentsTemplate:s,...o}=i;return $(t,"contentsTemplate",i.contentsTemplate),(0,Lu.useImperativeHandle)(e,()=>t.current,[t.current]),Lu.default.createElement("jp-draft-picker-list-item",{ref:t,...o,value:i.value,class:i.className,exportparts:i.exportparts,for:i.htmlFor,part:i.part,tabindex:i.tabIndex,style:{...i.style}},i.children)})});var _J=b(()=>{CX();IX();EX();kX();TX();AX();MX();RX();OX();LX();$X();PX();FX();NX();BX();zX();qX();HX();jX();VX();UX();WX();GX();KX();YX();XX();JX();ZX();QX();eJ();tJ();iJ();rJ();nJ();sJ();oJ();aJ();lJ();uJ();cJ();dJ();hJ();fJ();pJ();mJ();gJ();bJ();vJ()});var yJ,xJ,Or,Ao,am,$u,X6=b(()=>{qf();tt();nn();yJ=N(ue()),xJ=N(eE()),Or=class extends j{constructor(){super(),this._rootDOM=null}static create(e){return new class extends Or{render(){return e}}}onUpdateRequest(e){this.renderPromise=this.renderDOM()}onAfterAttach(e){te.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,xJ.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()))})}},Ao=class extends Or{constructor(e){super(),this._modelChanged=new G(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())}},am=class extends yJ.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)}},$u=class{constructor(){this.stateChanged=new G(this),this._isDisposed=!1}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._isDisposed=!0,G.clearData(this))}}});function Q6(i){var e,t,r;let n=(e=i.noFocusOnClick)!==null&&e!==void 0&&e?void 0:c=>{var d;c.button===0&&((d=i.onClick)===null||d===void 0||d.call(i),c.target.focu
6275s())},s=(t=i.noFocusOnClick)!==null&&t!==void 0&&t?c=>{var d;c.button===0&&(c.preventDefault(),(d=i.onClick)===null||d===void 0||d.call(i))}:void 0,o=c=>{var d;let{key:h}=c;(h==="Enter"||h===" ")&&((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 lm.createElement(DX,{appearance:"stealth",className:i.className?i.className+" jp-ToolbarButtonComponent":"jp-ToolbarButtonComponent","aria-disabled":u,"aria-label":i.label||l,"aria-pressed":i.pressed,...Us.normalizeDataset(i.dataset),disabled:u,onClick:n,onMouseDown:s,onKeyDown:o,title:l},(i.icon||i.iconClass)&&lm.createElement(q.resolveReact,{icon:i.pressed&&(r=i.pressedIcon)!==null&&r!==void 0?r:i.icon,iconClass:fi(i.iconClass,"jp-Icon"),tag:null}),i.label&&lm.createElement("span",{className:"jp-ToolbarButtonComponent-label"},i.label))}function zSe(i){return i.addClass("jp-ToolbarButton"),i}var lm,NSe,BSe,vv,wJ,J6,Pu,_v,Oh,Z6,yv,Us,SJ=b(()=>{_J();$e();Jn();Zt();jf();qf();md();nn();Xo();lm=N(ue());Gf();Jo();X6();ie().register([sm(),om()]);gS();NSe="jp-Toolbar",BSe="jp-Toolbar-item",vv="toolbar-popup-opener",wJ="jp-Toolbar-spacer",J6=class extends Rn{constructor(){super(...arguments),this._dirty=!1}onFitRequest(e){super.onFitRequest(e),this.parent.isAttached&&(ys(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&&te.sendMessage(this.parent.parent,j.Msg.FitRequest),this._dirty&&te.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()}},Pu=class extends j{constructor(e={}){var t,r;super({node:document.createElement("jp-toolbar")}),this.addClass(NSe),this.layout=(t=e.layout)!==null&&t!==void 0?t:new J6,this.noFocusOnClick=(r=e.noFocusOnClick)!==null&&r!==void 0?r:!1}names(){let e=this.layout;return Qm(e.widgets,t=>Us.nameProperty.get(t))}addItem(e,t){let r=this.layout;return this.insertItem(r.widgets.length,e,t)}insertItem(e,t,r){if(Ui(this.names(),a=>a===t))return!1;r.addClass(BSe);let s=this.layout,o=Math.max(0,Math.min(e,s.widgets.length));return s.insertWidget(o,r),Us.nameProperty.set(r,t),r.node.dataset.jpItemName=t,this.noFocusOnClick&&(r.node.dataset.noFocusOnClick="true"),!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=Qm(this.names(),(a,l)=>({name:a,index:l})),o=Ui(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");if(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)}},_v=class extends Pu{constructor(e={}){super(e),this.popupOpener=new yv,this._widgetWidths=new Map,this._widgetPositions=new Map,this._zoomChanged=!0,this.insertItem(0,vv,this.popupOpener),this.popupOpener.hide(),this._resizer=new oc(async(t=!1)=>{await this._onResize(t)},500)}dispose(){this.isDisposed||(this._resizer&&this._resizer.dispose(),super.dispose())}insertAfter(e,t,r){return e===vv?!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 yv)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!==vv&&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!==vv&&(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 h=d.pop(),f=Us.nameProperty.get(h);c-=this._widgetWidths.get(f)||0;let p=(l=this._widgetPositions.get(f))!==null&&l!==void 0?l:0,g=this._widgetPositions.size,v=r.
6275widgetAt(0);if(v){let x=Us.nameProperty.get(v);g=(u=this._widgetPositions.get(x))!==null&&u!==void 0?u:g}let _=p-g;r.insertWidget(_,h)}if(r.widgetCount()>0){let h=[],f=0,p=r.widgetCount();for(;f<p;){let g=r.widgetAt(f);if(g)c+=this._getWidgetWidth(g),p-h.length===1&&(c-=n);else break;if(c<t)h.push(g);else break;f++}for(;h.length>0;){let g=h.shift(),v=Us.nameProperty.get(g);this._widgetPositions.has(v)?this.insertItem(this._widgetPositions.get(v),v,g):this.addItem(v,g)}}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=Us.nameProperty.get(c),h;this._zoomChanged?h=await this._saveWidgetWidth(d,c):h=this._getWidgetWidth(c)||await this._saveWidgetWidth(d,c),e+=h,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 Or&&await t.renderPromise;let r=t.hasClass(wJ)?2:t.node.clientWidth;return this._widgetWidths.set(e,r),r}_getWidgetWidth(e){let t=Us.nameProperty.get(e);return this._widgetWidths.get(t)||0}};(function(i){function e(){return new Us.Spacer}i.createSpacerItem=e})(Pu||(Pu={}));Oh=class extends Or{constructor(e={}){var t,r;super(),this.props=e,zSe(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 lm.createElement(Q6,{...this.props,noFocusOnClick:this.props.noFocusOnClick,pressed:this.pressed,enabled:this.enabled,onClick:this.onClick})}},Z6=class extends j{constructor(){super({node:document.createElement("jp-toolbar")}),this.width=0,this.node.setAttribute("aria-label","Responsive popup toolbar"),this.addClass("jp-Toolbar"),this.addClass("jp-Toolbar-responsive-popup"),this.addClass("jp-ThemedContainer"),this.layout=new Rn,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]}},yv=class extends Oh{constructor(e={}){let t=(e.translator||St).load("jupyterlab");super({icon:IR,onClick:()=>{this.handleClick()},tooltip:t.__("More commands")}),this.addClass("jp-Toolbar-responsive-opener"),this.popup=new Z6}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(n){if(!n)return;let s={};for(let[o,a]of Object.entries(n)){let l=o.startsWith("data-")?o:`data-${o}`;s[l]=a}return s}i.normalizeDataset=e;function t(n){var s,o;let{commands:a,id:l,args:u}=n,c=a.iconClass(l,u),d=a.iconLabel(l,u),h=(s=n.icon)!==null&&s!==void 0?s:a.icon(l,u),f=a.label(l,u),p=a.className(l,u),g;a.isToggleable(l,u)&&(g=a.isToggled(l,u),g&&(p+=" lm-mod-toggled")),a.isVisible(l,u)||(p+=" lm-mod-hidden");let v=typeof n.label=="function"?n.label(u??{}):n.label,_=a.caption(l,u)||v||f||d,x=a.keyBindings.find(S=>S.command===l);if(x){let S=x.keys.map(ti.formatKeystroke).join(", ");_=`${_} (${S})`}let y=()=>{a.execute(l,u)},C=a.isEnabled(l,u);return{className:p,dataset:{"data-command":n.id},noFocusOnClick:n.noFocusOnClick,icon:h,iconClass:c,tooltip:(o=n.caption)!==null&&o!==void 0?o:_,onClick:y,enabled:C,label:v??f,pressed:g}}i.propsFromCommand=t,i.nameProperty=new Ye({name:"name",create:()=>""});class r extends j{constructor(){super(),this.addClass(wJ)}}i.Spacer=r})(Us||(Us={}))});var CJ=b(()=>{nn()});var um,IJ=b(()=>{Zt();um=N(ue())});var EJ=b(()=>{Jn();nn()});var xv,kJ=b(()=>{nn();xv=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 Fu,wv,TJ=b(()=>{Gf();(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",wv.onFocus),n.addEventListener("blur",wv.onFocus),n.classList.add("jp-mod-styled"),n.parentElement&&n.parentElement.replaceChild(o,n),o.appendChild(n),s?o.classList.add("multiple"):o.appendChild(xR.element
6275({tag:"span",stylesheet:"select",right:"8px",top:"5px",width:"18px"})),o}i.wrapSelect=r})(Fu||(Fu={}));(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})(wv||(wv={}))});var AJ=b(()=>{tt();nn()});var MJ,RJ=b(()=>{MJ=N(ue())});var DJ,qSe,OJ,Nu,e4,LJ=b(()=>{Zt();DJ=N(Ge());qf();Xo();tt();nn();qSe=100,OJ=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){OJ={passive:!0}}}))}catch{}Nu=class extends j{constructor(e){var t,r;let n=(t=e.renderer)!==null&&t!==void 0?t:Nu.defaultRenderer,s=document.createElement("div");s.className="jp-WindowedPanel";let o=s.appendChild(document.createElement("div"));o.classList.add("jp-WindowedPanel-scrollbar");let a=o.appendChild(n.createScrollbarViewportIndicator?n.createScrollbarViewportIndicator():Nu.defaultRenderer.createScrollbarViewportIndicator());a.classList.add("jp-WindowedPanel-scrollbar-viewportIndicator"),o.appendChild(n.createScrollbar()).classList.add("jp-WindowedPanel-scrollbar-content");let u=s.appendChild(n.createOuter());u.classList.add("jp-WindowedPanel-outer");let c=u.appendChild(document.createElement("div"));c.className="jp-WindowedPanel-inner";let d=c.appendChild(n.createViewport());d.classList.add("jp-WindowedPanel-viewport"),super({node:s}),this.jumped=new G(this),this._scrollbarItems={},this._viewportPaddingTop=0,this._viewportPaddingBottom=0,this._needsUpdate=!1,this._requiresTotalSizeUpdate=!1,this._timerToClearScrollStatus=null,super.layout=(r=e.layout)!==null&&r!==void 0?r:new e4,this.renderer=n,this._viewportIndicator=a,this._innerElement=c,this._isScrolling=null,this._outerElement=u,this._itemsResizeObserver=null,this._scrollbarElement=o,this._scrollToItem=null,this._scrollRepaint=null,this._scrollUpdateWasRequested=!1,this._updater=new oc(()=>this.update(),50),this._viewModel=e.model,this._viewport=d,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":this._evtPointerDown(e),e.stopPropagation();break;case"scrollend":this._onScrollEnd();break;case"scroll":this.onScroll(e);break}}scrollTo(e){if(this._renderScrollbar(),!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 DJ.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),this._outerElement.addEventListener("scrollend",this)}onBeforeDetach(e){this._removeListeners(),this._scrollbarElement.removeEventListener("pointerdown",this),this._outerElement.removeEventListener("scrollend",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._renderScrollbar(),this.viewModel.windowingActive&&(this._scrollUpdateWasRequested=!1,this._viewport.dataset.isScrolling!="true"&&(this._viewport.dataset.isScrolling="true"),this._timerToClearScrollStatus&&window.clearTimeout(this._timerToClearScrollStatus),this._timerToClearScrollStatus=window.setTimeout(()=>{this._onScrollEnd()},750),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.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(){this._scrollbarResizeObserver||(this._scrollbarResizeObserver=new ResizeObserver(this._adjustDimensionsForScrollbar.bind(this)),this._scrollbarResizeObserver.observe(this._outerElement),this._scrollbarResizeObserver.observe(this._scrollbarElement)),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._areaResizeObserver||(this._areaResizeObserver=new ResizeObserver(this._onAreaResize.bind(this)),this._areaResizeObserver.observe(this._innerElement)),this._outerElement.addEventListener("scroll",this,OJ)}_applyNoWindowingStyles(){this._viewport.style.position="relative",this._viewport.style.contain="",this._viewport.style.top="0px",this._viewport.style.minHeight="",this._innerElement.style.height=""}_applyWindowingStyles(){this._viewport.style.position="absolute",this._viewport.style.contain="layout"}_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}
6275_update(){var e;if(this.isDisposed||!this.layout)return;let t=this.viewModel.getRangeToRender();if(t!==null){let[n,s]=t;this._renderScrollbar();let 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.transform=`translateY(${l}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)},qSe))}_renderScrollbar(){var e,t;if(!this.scrollbar)return[];let{node:r,renderer:n,viewModel:s}=this,o=r.querySelector(".jp-WindowedPanel-scrollbar-content"),a=[],l=new Set,u=(p,g)=>{if(p instanceof HTMLElement)return p;l.add(p.key);let v={index:g},_=this._scrollbarItems[p.key];if(_&&!_.isDisposed)try{return _.render(v)}catch{return document.createElement("div")}else{this._scrollbarItems[p.key]=p;try{return p.render(v)}catch{return document.createElement("div")}}},c=s.itemsList,d=(e=c?.length)!==null&&e!==void 0?e:s.widgetCount;for(let p=0;p<d;p++){let g=(t=c?.get)===null||t===void 0?void 0:t.call(c,p),v=n.createScrollbarItem(this,p,g),_=u(v,p);_.classList.add("jp-WindowedPanel-scrollbar-item"),_.dataset.index=`${p}`,a.push(_)}let h=Object.keys(this._scrollbarItems).filter(p=>!l.has(p));for(let p of h)this._scrollbarItems[p].dispose(),delete this._scrollbarItems[p];let f=[...o.childNodes];if((f.length!==a.length||!f.every((p,g)=>a[g]===p))&&o.replaceChildren(...a),this.scrollbar){let p=this.viewModel.getRangeToRender({virtual:!0});if(p!==null){let[g,v]=p,_=a[g],x=a[v];this._viewportIndicator.style.top=_.offsetTop-1+"px",this._viewportIndicator.style.height=x.offsetTop-_.offsetTop+x.offsetHeight+"px"}}return a}_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}}_onScrollEnd(){this._timerToClearScrollStatus&&window.clearTimeout(this._timerToClearScrollStatus),this._viewport.dataset.isScrolling="false",this._requiresTotalSizeUpdate&&this._updateTotalSize(),this._requiresTotalSizeUpdate=!1}_updateTotalSize(){if(this.viewModel.windowingActive){if(this._viewport.dataset.isScrolling=="true"){this._requiresTotalSizeUpdate=!0;return}let t=this.viewModel.getEstimatedTotalSize()+this._viewportPaddingTop+this._viewportPaddingBottom;this._innerElement.style.height=`${t}px`}}};Nu.DEFAULT_WIDGET_SIZE=50;e4=class extends Rn{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&&te.sendMessage(t,j.Msg.BeforeAttach),this.parent.viewportNode.insertBefore(t.node,r),this.parent.isAttached&&te.sendMessage(t,j.Msg.AfterAttach)}detachWidget(e,t){this.parent.isAttached&&te.sendMessage(t,j.Msg.BeforeDetach),this.parent.viewportNode.removeChild(t.node),this.parent.isAttached&&te.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")}createScrollbarViewportIndicator(){return document.createElement("div")}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})(Nu||(Nu={}))});var $J=b(()=>{ZR();QR();Bz();Hz();Vz();YR();zz();Wz();CJ();IJ();EJ();kJ();TJ();AJ();RJ();SJ();X6();LJ()});var PJ,FJ,Sv,NJ=b(()=>{PJ="jp-HoverBox",FJ="-1000";(function(i){function e(t){let{anchor:r,host:n,node:s,privilege:o,outOfViewDisplay:a}=t,l=n.getBoundingClientRect();s.classList.contains(PJ)||s.classList.add(PJ),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,h=parseInt(u.marginTop,10)||0,f=parseInt(u.marginLeft,10)||0,p=parseInt(u.minHeight,10)||t.minHeight,g
6275=parseInt(u.maxHeight,10)||t.maxHeight,v=o==="forceAbove"?!1:o==="forceBelow"?!0:o==="above"?c<g&&c<d:d>=g||d>=c;if(v?g=Math.min(d-h,g):(g=Math.min(c,g),s.style.marginTop="0px"),s.style.maxHeight=`${g}px`,!(g>=p&&(d>=p||c>=p))){s.style.zIndex=FJ,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 x=t.size?t.size.height:s.getBoundingClientRect().height,y=t.offset&&t.offset.vertical&&t.offset.vertical.above||0,C=t.offset&&t.offset.vertical&&t.offset.vertical.below||0,S=v?l.bottom-d+C:l.top+c-x+y;s.style.top=`${Math.floor(S)}px`;let R=t.offset&&t.offset.horizontal||0,I=r.left+R;s.style.left=`${Math.ceil(I)}px`;let E=s.getBoundingClientRect(),w=E.right;w>window.innerWidth&&(I-=w-window.innerWidth,w=window.innerWidth,s.style.left=`${Math.ceil(I)}px`),I<R-f&&(I=R-f,s.style.left=`${Math.ceil(I)}px`),s.style.zIndex="-1000";let k=E.bottom,O=n.contains(document.elementFromPoint(I,S)),z=n.contains(document.elementFromPoint(w,S)),Y=n.contains(document.elementFromPoint(w,k)),pe=n.contains(document.elementFromPoint(I,k));s.style.zIndex="";let U=O||z,ne=pe||Y,le=O||pe,De=Y||z,Et=k-S,Qe=w-I,ot=S<l.top,Ve=k>l.bottom,Yt=I+f<l.left,bt=w>l.right,et=!1,In=!1,Pr=!1;if(ot)switch(a?.top||"hidden-inside"){case"hidden-inside":U||(et=!0);break;case"hidden-outside":ne||(et=!0);break;case"stick-inside":l.top>S&&(S=l.top,Pr=!0);break;case"stick-outside":l.top>k&&(S=l.top-Et,Pr=!0);break}if(Ve)switch(a?.bottom||"hidden-outside"){case"hidden-inside":ne||(et=!0);break;case"hidden-outside":U||(et=!0);break;case"stick-inside":l.bottom<k&&(S=l.bottom-Et,Pr=!0);break;case"stick-outside":l.bottom<S&&(S=l.bottom,Pr=!0);break}if(Yt)switch(a?.left||"hidden-inside"){case"hidden-inside":le||(et=!0);break;case"hidden-outside":De||(et=!0);break;case"stick-inside":l.left>I+f&&(I=l.left-f,In=!0);break;case"stick-outside":l.left>w&&(I=l.left-f-Qe,In=!0);break}if(bt)switch(a?.right||"hidden-outside"){case"hidden-inside":De||(et=!0);break;case"hidden-outside":le||(et=!0);break;case"stick-inside":l.right<w&&(I=l.right-Qe,In=!0);break;case"stick-outside":l.right<I&&(I=l.right,In=!0);break}et&&(s.style.zIndex=FJ,s.style.visibility="hidden"),In&&(s.style.left=`${Math.ceil(I)}px`),Pr&&(s.style.top=`${Math.ceil(S)}px`)}i.setGeometry=e})(Sv||(Sv={}))});var t4,sCt,oCt,BJ=b(()=>{t4=N(Ge()),sCt=new t4.Token("@jupyterlab/ui-components:IFormRendererRegistry","A service for settings form renderer registration."),oCt=new t4.Token("@jupyterlab/ui-components:ILabIconManager","A service to register and request icons.")});var zJ=b(()=>{});var Mo=b(()=>{$J();Gf();NJ();BJ();Jo();zJ()});function Kc(i){return Kc=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},Kc(i)}var i4=b(()=>{});function qJ(i,e){if(Kc(i)!="object"||!i)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e||"default");if(Kc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}var HJ=b(()=>{i4()});function jJ(i){var e=qJ(i,"string");return Kc(e)=="symbol"?e:e+""}var VJ=b(()=>{i4();HJ()});function SCt(i,e,t){return(e=jJ(e))in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}var HSe=b(()=>{VJ()});function UJ(){return UJ=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},UJ.apply(null,arguments)}var jSe=b(()=>{});function r4(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 WJ=b(()=>{});function TCt(i,e){if(i){if(typeof i=="string")return r4(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)?r4(i,e):void 0}}var VSe=b(()=>{WJ()});var Cv,n4,s4=b(()=>{tt();Cv=class{constructor(e={}){if(this._map=new Map,this._changed=new G(this),this._isDisposed=!1,this._itemCmp=e.itemCmp||n4.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=[];
6275return 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,G.clearData(this),this._map.clear())}};(function(i){function e(t,r){return t===r}i.itemCmp=e})(n4||(n4={}))});var Lh,Sa,GJ=b(()=>{Lh=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 Sa.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 Sa.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 Sa.LinkedListNode)||t.list!==this)throw new Error("Reference node is not owned by the list.");let r=new Sa.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 Sa.LinkedListNode)||t.list!==this)throw new Error("Reference node is not owned by the list.");let r=new Sa.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 Sa.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})(Lh||(Lh={}));(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})(Sa||(Sa={}))});var Iv,KJ,YJ=b(()=>{Zt();GJ();Iv=class{constructor(e){this.type=e}get isConflatable(){return!1}conflate(e){return!1}};(function(i){let e=null,t=(E=>w=>{let k=!1;return E.then(()=>!k&&w()),()=>{k=!0}})(Promise.resolve());function r(E,w){let k=h.get(E);if(!k||k.length===0){_(E,w);return}Js(Ko(k),z=>z?v(z,E,w):!0)&&_(E,w)}i.sendMessage=r;function n(E,w){if(!w.isConflatable){x(E,w);return}ys(d,O=>O.handler!==E||!O.msg||O.msg.type!==w.type||!O.msg.isConflatable?!1:O.msg.conflate(w))||x(E,w)}i.postMessage=n;function s(E,w){let k=h.get(E);k&&k.indexOf(w)!==-1||(k?k.push(w):h.set(E,[w]))}i.installMessageHook=s;function o(E,w){let k=h.get(E);if(!k)return;let O=k.indexOf(w);O!==-1&&(k[O]=null,C(k))}i.removeMessageHook=o;function a(E){let w=h.get(E);w&&w.length>0&&(L.fill(w,null),C(w));for(let k of d)k.handler===E&&(k.handler=null,k.msg=null)}i.clearData=a;function l(){g||e===null||(e(),e=null,g=!0,y(),g=!1)}i.flush=l;function u(){return p}i.getExceptionHandler=u;function c(E){let w=p;return p=E,w}i.setExceptionHandler=c;let d=new Lh,h=new WeakMap,f=new Set,p=E=>{console.error(E)},g=!1;function v(E,w,k){let O=!0;
6275try{typeof E=="function"?O=E(w,k):O=E.messageHook(w,k)}catch(z){p(z)}return O}function _(E,w){try{E.processMessage(w)}catch(k){p(k)}}function x(E,w){d.addLast({handler:E,msg:w}),e===null&&(e=t(y))}function y(){if(e=null,d.isEmpty)return;let E={handler:null,msg:null};for(d.addLast(E);;){let w=d.removeFirst();if(w===E)return;w.handler&&w.msg&&r(w.handler,w.msg)}}function C(E){f.size===0&&t(S),f.add(E)}function S(){f.forEach(R),f.clear()}function R(E){L.removeAllWhere(E,I)}function I(E){return E===null}})(KJ||(KJ={}))});var o4,Ev,XJ=b(()=>{o4=N(Ge());YJ();s4();Ev=class extends Cv{constructor(e={}){super({itemCmp:o4.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]=o4.JSONExt.deepCopy(n))}return e}};(function(i){class e extends Iv{constructor(r,n){super(r),this.args=n}}i.ChangeMessage=e})(Ev||(Ev={}))});var JJ,ZJ=b(()=>{tt();JJ=class{constructor(e=""){this._text="",this._isDisposed=!1,this._changed=new G(this),this._text=e}get type(){return"String"}get changed(){return this._changed}set text(e){e.length===this._text.length&&e===this._text||(this._text=e,this._changed.emit({type:"set",start:0,end:e.length,value:e}))}get text(){return this._text}insert(e,t,r){this._text=this._text.slice(0,e)+t+this._text.slice(e),this._changed.emit({type:"insert",start:e,end:e+t.length,value:t,options:r})}remove(e,t,r){let n=this._text.slice(e,t);this._text=this._text.slice(0,e)+this._text.slice(t),this._changed.emit({type:"remove",start:e,end:t,value:n,options:r})}clear(){this.text=""}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,G.clearData(this),this.clear())}}});var kv,a4,l4=b(()=>{Zt();tt();kv=class{constructor(e={}){if(this._array=[],this._isDisposed=!1,this._changed=new G(this),e.values)for(let t of e.values)this._array.push(t);this._itemCmp=e.itemCmp||a4.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,G.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):L.insert(this._array,e,t),this._changed.emit({type:"add",oldIndex:-2,newIndex:e,oldValues:[],newValues:[t]})}removeValue(e){let t=this._itemCmp,r=L.findFirstIndex(this._array,n=>t(n,e));return r<0||this.remove(r),r}remove(e){let t=L.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:"clear",oldIndex:0,newIndex:0,newValues:[],oldValues:e})}move(e,t){if(this.length<=1||e===t)return;let r=[this._array[e]];L.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)L.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++)L.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})(a4||(a4={}))});var Tv,QJ=b(()=>{l4();Tv=class extends kv{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;
6275for(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;case"clear":t=0;for(let n of e.oldValues)this.insert(t++,r.fromJSON(n));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;case"clear":this.clear();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}}i.IdentitySerializer=e})(Tv||(Tv={}))});var eZ,Av,tZ=b(()=>{eZ=N(Ge());Nr();tt();Av=class{constructor(e=null){this._value=null,this._changed=new G(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;eZ.JSONExt.deepEqual(t,e)||(this._value=e,this._changed.emit({oldValue:t,newValue:e}))}dispose(){this._isDisposed||(this._isDisposed=!0,G.clearData(this),this._value=null)}};(function(i){class e{}i.IChangedArgs=e})(Av||(Av={}))});var USe=b(()=>{tZ();XJ();l4();s4();ZJ();QJ()});var $h,Ca,iZ=b(()=>{$h=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 Ca.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 Ca.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 Ca.LinkedListNode)||t.list!==this)throw new Error("Reference node is not owned by the list.");let r=new Ca.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 Ca.LinkedListNode)||t.list!==this)throw new Error("Reference node is not owned by the list.");let r=new Ca.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 Ca.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})($h||($h={}));(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})(Ca||(Ca={}))});var Zr,Bu,ae,rZ=b(()=>{Zt();iZ();Zr=class{constructor(e){this.type=e}get isConflatable(){return!1}conflate(e){return!1}},Bu=class extends Zr{get isConflatable(){return!0}conflate(e){return!0}};(function(i){let e=null,t=(E=>w=>{let k=!1;return E.then(()=>!k&&w()),()=>{k=!0}})(Promise.resolve());function r(E,w){let k=h.get(E);if(!k||k.length===0){_(E,w);return}Js(Ko(k),z=>z?v(z,E,w):!0)&&_(E,w)}i.sendMessage=r;
6275function n(E,w){if(!w.isConflatable){x(E,w);return}ys(d,O=>O.handler!==E||!O.msg||O.msg.type!==w.type||!O.msg.isConflatable?!1:O.msg.conflate(w))||x(E,w)}i.postMessage=n;function s(E,w){let k=h.get(E);k&&k.indexOf(w)!==-1||(k?k.push(w):h.set(E,[w]))}i.installMessageHook=s;function o(E,w){let k=h.get(E);if(!k)return;let O=k.indexOf(w);O!==-1&&(k[O]=null,C(k))}i.removeMessageHook=o;function a(E){let w=h.get(E);w&&w.length>0&&(L.fill(w,null),C(w));for(let k of d)k.handler===E&&(k.handler=null,k.msg=null)}i.clearData=a;function l(){g||e===null||(e(),e=null,g=!0,y(),g=!1)}i.flush=l;function u(){return p}i.getExceptionHandler=u;function c(E){let w=p;return p=E,w}i.setExceptionHandler=c;let d=new $h,h=new WeakMap,f=new Set,p=E=>{console.error(E)},g=!1;function v(E,w,k){let O=!0;try{typeof E=="function"?O=E(w,k):O=E.messageHook(w,k)}catch(z){p(z)}return O}function _(E,w){try{E.processMessage(w)}catch(k){p(k)}}function x(E,w){d.addLast({handler:E,msg:w}),e===null&&(e=t(y))}function y(){if(e=null,d.isEmpty)return;let E={handler:null,msg:null};for(d.addLast(E);;){let w=d.removeFirst();if(w===E)return;w.handler&&w.msg&&r(w.handler,w.msg)}}function C(E){f.size===0&&t(S),f.add(E)}function S(){f.forEach(R),f.clear()}function R(E){L.removeAllWhere(E,I)}function I(E){return E===null}})(ae||(ae={}))});var Ri,Lr,nZ=b(()=>{Nr();Ri=class{constructor(e){this._onScrollFrame=()=>{if(!this._scrollTarget)return;let{element:t,edge:r,distance:n}=this._scrollTarget,s=Lr.SCROLL_EDGE_SIZE-n,o=Math.pow(s/Lr.SCROLL_EDGE_SIZE,2),a=Math.max(1,Math.round(o*Lr.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});Lr.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"){Lr.dispatchDragLeave(this,this._currentTarget,null,e),this._finalize("none");return}let t=Lr.dispatchDrop(this,this._currentTarget,e);this._finalize(t)}_evtKeyDown(e){e.preventDefault(),e.stopPropagation(),e.keyCode===27&&this.dispose()}_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,
6275!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=Lr.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=Lr.findElementBehindBackdrop(e,this.document);this._currentElement=s,s!==n&&s!==r&&Lr.dispatchDragExit(this,r,s,e),s!==n&&s!==r&&(r=Lr.dispatchDragEnter(this,s,r,e)),r!==t&&(this._currentTarget=r,Lr.dispatchDragLeave(this,t,r,e));let o=Lr.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=Lr.validateAction(e,this.supportedActions),!(this._override&&this._dropAction===e))switch(e){case"none":this._dropAction=e,this._override=Ri.overrideCursor("no-drop",this.document);break;case"copy":this._dropAction=e,this._override=Ri.overrideCursor("copy",this.document);break;case"link":this._dropAction=e,this._override=Ri.overrideCursor("alias",this.document);break;case"move":this._dropAction=e,this._override=Ri.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 Lr.overrideCursor(r,n)}i.overrideCursor=t})(Ri||(Ri={}));(function(i){i.SCROLL_EDGE_SIZE=20;function e(C,S){return d[C]&h[S]?C:"none"}i.validateAction=e;function t(C,S=document){if(C){if(r&&C==r.event)return r.element;i.cursorBackdrop.style.zIndex="-1000";let R=S.elementFromPoint(C.clientX,C.clientY);return i.cursorBackdrop.style.zIndex="",r={event:C,element:R},R}else{let R=i.cursorBackdrop.style.transform;if(n&&R===n.transform)return n.element;let I=i.cursorBackdrop.getBoundingClientRect();i.cursorBackdrop.style.zIndex="-1000";let E=S.elementFromPoint(I.left+I.width/2,I.top+I.height/2);return i.cursorBackdrop.style.zIndex="",n={transform:R,element:E},E}}i.findElementBehindBackdrop=t;let r=null,n=null;function s(C){let S=C.clientX,R=C.clientY,I=t(C);for(;I;I=I.parentElement){if(!I.hasAttribute("data-lm-dragscroll"))continue;let E=0,w=0;I===document.body&&(E=window.pageXOffset,w=window.pageYOffset);let k=I.getBoundingClientRect(),O=k.top+w,z=k.left+E,Y=z+k.width,pe=O+k.height;if(S<z||S>=Y||R<O||R>=pe)continue;let U=S-z+1,ne=R-O+1,le=Y-S,De=pe-R,Et=Math.min(U,ne,le,De);if(Et>i.SCROLL_EDGE_SIZE)continue;let Qe;switch(Et){case De:Qe="bottom";break;case ne:Qe="top";break;case le:Qe="right";break;case U:Qe="left";break;default:throw"unreachable"}
6275let ot=I.scrollWidth-I.clientWidth,Ve=I.scrollHeight-I.clientHeight,Yt;switch(Qe){case"top":Yt=Ve>0&&I.scrollTop>0;break;case"left":Yt=ot>0&&I.scrollLeft>0;break;case"right":Yt=ot>0&&I.scrollLeft<ot;break;case"bottom":Yt=Ve>0&&I.scrollTop<Ve;break;default:throw"unreachable"}if(Yt)return{element:I,edge:Qe,distance:Et}}return null}i.findScrollTarget=s;function o(C,S,R,I){if(!S)return null;let E=new Ri.Event(I,{drag:C,related:R,type:"lm-dragenter"});if(!S.dispatchEvent(E))return S;let k=C.document instanceof Document?C.document.body:C.document.firstElementChild;return S===k?R:(E=new Ri.Event(I,{drag:C,related:R,type:"lm-dragenter"}),k.dispatchEvent(E),k)}i.dispatchDragEnter=o;function a(C,S,R,I){if(!S)return;let E=new Ri.Event(I,{drag:C,related:R,type:"lm-dragexit"});S.dispatchEvent(E)}i.dispatchDragExit=a;function l(C,S,R,I){if(!S)return;let E=new Ri.Event(I,{drag:C,related:R,type:"lm-dragleave"});S.dispatchEvent(E)}i.dispatchDragLeave=l;function u(C,S,R){if(!S)return"none";let I=new Ri.Event(R,{drag:C,related:null,type:"lm-dragover"});return S.dispatchEvent(I)?"none":I.dropAction}i.dispatchDragOver=u;function c(C,S,R){if(!S)return"none";let I=new Ri.Event(R,{drag:C,related:null,type:"lm-drop"});return S.dispatchEvent(I)?"none":I.dropAction}i.dispatchDrop=c;let d={none:0,copy:1,link:2,move:4},h={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 f(C,S=document){let R=++y,I=S instanceof Document?S.body:S.firstElementChild;return i.cursorBackdrop.isConnected||(i.cursorBackdrop.style.transform="scale(0)",I.appendChild(i.cursorBackdrop),v(),document.addEventListener("pointermove",p,{capture:!0,passive:!0}),i.cursorBackdrop.addEventListener("scroll",g,{capture:!0,passive:!0})),i.cursorBackdrop.style.cursor=C,new Li(()=>{R===y&&i.cursorBackdrop.isConnected&&(document.removeEventListener("pointermove",p,!0),i.cursorBackdrop.removeEventListener("scroll",g,!0),I.removeChild(i.cursorBackdrop))})}i.overrideCursor=f;function p(C){i.cursorBackdrop&&(i.cursorBackdrop.style.transform=`translate(${C.clientX}px, ${C.clientY}px)`)}function g(C){if(!i.cursorBackdrop)return;let S=t();if(!S)return;let R=S.closest("[data-lm-dragscroll]");R&&(R.scrollTop+=i.cursorBackdrop.scrollTop-_,R.scrollLeft+=i.cursorBackdrop.scrollLeft-_,v())}function v(){i.cursorBackdrop.scrollTop=_,i.cursorBackdrop.scrollLeft=_}let _=500;function x(){let C=document.createElement("div");return C.classList.add("lm-cursor-backdrop"),C}let y=0;i.cursorBackdrop=x()})(Lr||(Lr={}))});var Ta,Ro,jn,cm,W,Mv,Oo,Xc,Ph,Aa,dm,hm,Ws,Ea,u4,Rv,fm,c4,Jc,d4,pm,h4,Vn,Yc,Dv,f4,Fh,Ia,Do,Qr,sZ,WSe,zu,bs,p4,yi,Zc,li,ka,qi,Nh,Ov,oZ,aZ,m4,lZ,uZ,g4=b(()=>{Zt();Ta=N(Ge());Ad();rZ();md();tt();nZ();jf();el();Nr();Hf();Ro=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,h=0;for(let g=0;g<a;++g){let v=s[g],_=v.minSize,x=v.maxSize,y=v.sizeHint;v.done=!1,v.size=Math.max(_,Math.min(y,x)),c+=v.size,l+=_,u+=x,v.stretch>0&&(d+=v.stretch,h++)}if(o===c)return 0;if(o<=l){for(let g=0;g<a;++g){let v=s[g];v.size=v.minSize}return o-l}if(o>=u){for(let g=0;g<a;++g){let v=s[g];v.size=v.maxSize}return o-u}let f=.01,p=a;if(o<c){let g=c-o;for(;h>0&&g>f;){let v=g,_=d;for(let x=0;x<a;++x){let y=s[x];if(y.done||y.stretch===0)continue;let C=y.stretch*v/_;y.size-C<=y.minSize?(g-=y.size-y.minSize,d-=y.stretch,y.size=y.minSize,y.done=!0,p--,h--):(g-=C,y.size-=C)}}for(;p>0&&g>f;){let v=g/p;for(let _=0;_<a;++_){let x=s[_];x.done||(x.size-v<=x.minSize?(g-=x.size-x.minSize,x.size=x.minSize,x.done=!0,p--):(g-=v,x.size-=v))}}}else{let g=o-c;for(;h>0&&g>f;){let v=g,_=d;for(let x=0;x<a;++x){let y=s[x];if(y.done||y.stretch===0)continue;let C=y.stretch*v/_;y.size+C>=y.maxSize?(g-=y.maxSize-y.size,d-=y.stretch,y.size=y.maxSize,y.done=!0,p--,h--):(g-=C,y.size+=C)}}for(;p>0&&g>f;){let v=g/p;for(let _=0;_<a;++_){let x=s[_];x.done||(x.size+v>=x.maxSize?(g-=x.maxSize-x.size,x.size=x.maxSize,x.done=!0,p--):(g-=v,x.size+=v))}}}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 h=0;h<=o;++h){let f=s[h];l+=f.maxSize-f.size}let u=0;for(let h=o+1,f=s.length;h<f;++h){let p=s[h];u+=p.size-p.minSize}a=Math.min(a,l,u);let c=a;for(let h=o;h>=0&&c>0;--h){let f=s[h],p=f.maxSize-f.size;p>=c?(f.sizeHint=f.size+c,c=0):(f.sizeHint=f.size+p,c-=p)}let d=a;for(let h=o+1,f=s.length;h<f&&d>0;++h){let p=s[h],g=p.size-p.minSize;g>=d?(p.sizeHint=p.size-d,d=0):(p.sizeHint=p.size-g,d-=g)}}function n(s,o,a){let l=0;for(let h=o+1,f=s.length;h<f;++h){let p=s[h];l+=p.maxSize-p.size}let u=0;for(let h=0;h<=o;++h){let f=s[h];u+=f.size-f.minSize}a=Math.min(a,l,u);let c=a;for(let h=o+1,f=s.length;h<f&&c>0;++h){let p=s[h],g=p.maxSize-p.size;g>=c?(p.sizeHint=p.size+c,c=0):(p.sizeHint=p.size+g,c-=g)}let d=a;for(let h=o;h>=0&&d>0;--h){let f=s[h],p=f.size-f.minSize;p>=d?(f.sizeHint=f.size-d,d=0):(f.sizeHint=f.size-p,d-=p)}}})(jn||(jn={}));cm=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 G(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,G.clearData(this))}},W=class{constructor(e={}){this._flags=0,this._layout=null,this._parent=null,this._disposed=new G(this),this._hiddenMode=W.HiddenMode.Display,this.node=Mv.createNode(e),this.addClass("lm-Widget")}dispose(){this.isDisposed||(this.setFlag(W.Flag.IsDisposed),this._disposed.emit
6275(void 0),this.parent?this.parent=null:this.isAttached&&W.detach(this),this._layout&&(this._layout.dispose(),this._layout=null),this.title.dispose(),G.clearData(this),ae.clearData(this),Ye.clearData(this))}get disposed(){return this._disposed}get isDisposed(){return this.testFlag(W.Flag.IsDisposed)}get isAttached(){return this.testFlag(W.Flag.IsAttached)}get isHidden(){return this.testFlag(W.Flag.IsHidden)}get isVisible(){let e=this;do{if(e.isHidden||!e.isAttached)return!1;e=e.parent}while(e!=null);return!0}get title(){return Mv.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==W.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 W.ChildMessage("child-removed",this);ae.sendMessage(this._parent,t)}if(this._parent=e,this._parent&&!this._parent.isDisposed){let t=new W.ChildMessage("child-added",this);ae.sendMessage(this._parent,t)}this.isDisposed||ae.sendMessage(this,W.Msg.ParentChanged)}}get layout(){return this._layout}set layout(e){if(this._layout!==e){if(this.testFlag(W.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(){ae.postMessage(this,W.Msg.UpdateRequest)}fit(){ae.postMessage(this,W.Msg.FitRequest)}activate(){ae.postMessage(this,W.Msg.ActivateRequest)}close(){ae.sendMessage(this,W.Msg.CloseRequest)}show(){if(this.testFlag(W.Flag.IsHidden)&&(this.isAttached&&(!this.parent||this.parent.isVisible)&&ae.sendMessage(this,W.Msg.BeforeShow),this.clearFlag(W.Flag.IsHidden),this._toggleHidden(!1),this.isAttached&&(!this.parent||this.parent.isVisible)&&ae.sendMessage(this,W.Msg.AfterShow),this.parent)){let e=new W.ChildMessage("child-shown",this);ae.sendMessage(this.parent,e)}}hide(){if(!this.testFlag(W.Flag.IsHidden)&&(this.isAttached&&(!this.parent||this.parent.isVisible)&&ae.sendMessage(this,W.Msg.BeforeHide),this.setFlag(W.Flag.IsHidden),this._toggleHidden(!0),this.isAttached&&(!this.parent||this.parent.isVisible)&&ae.sendMessage(this,W.Msg.AfterHide),this.parent)){let e=new W.ChildMessage("child-hidden",this);ae.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(W.Flag.IsVisible),this.notifyLayout(e),this.onAfterShow(e);break;case"before-hide":this.notifyLayout(e),this.onBeforeHide(e);break;case"after-hide":this.clearFlag(W.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(W.Flag.IsVisible),this.setFlag(W.Flag.IsAttached),this.notifyLayout(e),this.onAfterAttach(e);break;case"before-detach":this.notifyLayout(e),this.onBeforeDetach(e);break;case"after-detach":this.clearFlag(W.Flag.IsVisible),this.clearFlag(W.Flag.IsAttached),this.notifyLayout(e),this.onAfterDetach(e);break;case"activate-request":this.notifyLayout(e),this.onActivateRequest(e);break;
6275case"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&&W.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 W.HiddenMode.Display:this.addClass("lm-mod-hidden");break;case W.HiddenMode.Scale:this.node.style.transform="scale(0)",this.node.setAttribute("aria-hidden","true");break;case W.HiddenMode.ContentVisibility:this.node.style.contentVisibility="hidden",this.node.style.zIndex="-1";break}else switch(this._hiddenMode){case W.HiddenMode.Display:this.removeClass("lm-mod-hidden");break;case W.HiddenMode.Scale:this.node.style.transform="",this.node.removeAttribute("aria-hidden");break;case W.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 Bu("update-request"),s.FitRequest=new Bu("fit-request"),s.ActivateRequest=new Bu("activate-request"),s.CloseRequest=new Bu("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.");ae.sendMessage(s,i.Msg.BeforeAttach),o.insertBefore(s.node,a),ae.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.");ae.sendMessage(s,i.Msg.BeforeDetach),s.node.parentNode.removeChild(s.node),ae.sendMessage(s,i.Msg.AfterDetach)}i.detach=n})(W||(W={}));(function(i){i.titleProperty=new Ye({name:"title",create:t=>new cm({owner:t})});function e(t){return t.node||document.createElement(t.tag||"div")}i.createNode=e})(Mv||(Mv={}));Oo=class{constructor(e={}){this._disposed=!1,this._parent=null,this._fitPolicy=e.fitPolicy||"set-min-size"}dispose(){this._parent=null,this._disposed=!0,G.clearData(this),Ye.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)ae.sendMessage(t,W.ResizeMessage.UnknownSize)}onUpdateRequest(e){for(let t of this)ae.sendMessage(t,W.ResizeMessage.UnknownSize)}onBeforeAttach(e){for(let t of this)ae.sendMessage(t,e)}onAfterAttach(e){for(let t of this)ae.sendMessage(t,e)}onBeforeDetach(e){for(let t of this)ae.sendMessage(t,e)}onAfterDetach(e){for(let t of this)ae.sendMessage(t,e)}onBeforeShow(e){for(let t of this)t.isHidden||ae.sendMessage(t,e)}onAfterShow(e){for(let t of this)t.isHidden||ae.sendMessage(t,e)}onBeforeHide(e){for(let t of this)t.isHidden||ae.sendMessage(t,e)}onAfterHide(e){for(let t of this)t.isHidden||ae.sendMessage(t,e)}onChildRemoved(e){this.removeWidget(e.child)}onFitRequest(e){}onChildShown(e){}onChildHidden(e){}};(function(i){function e(s){return Ph.horizontalAlignmentProperty.get(s)}i.getHorizontalAlignment=e;function t(s,o){Ph.horizontalAlignmentProperty.set(s,o)}i.setHorizontalAlignment=t;function r(s){return Ph.verticalAlignmentProperty.get(s)}i.getVerticalAlignment=r;function n(s,o){Ph.verticalAlignmentProperty.set(s,o)}i.setVerticalAlignment=n})(Oo||(Oo={}));Xc=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=he.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(Oo.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(Oo.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 W.ResizeMessage(s,o);ae.sendMessage(this.widget,u)}}};(function(i){i.horizontalAlignmentProperty=new Ye({name:"horizontalAlignment",create:()=>"center",changed:e}),i.verticalAlignmentProperty=new Ye({name:"verticalAlignment",create:()=>"top",changed:e});
6275function e(t){t.parent&&t.parent.layout&&t.parent.update()}})(Ph||(Ph={}));Aa=class extends Oo{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){L.insert(this._widgets,n,t),this.parent&&this.attachWidget(n,t);return}n===this._widgets.length&&n--,r!==n&&(L.move(this._widgets,r,n),this.parent&&this.moveWidget(r,n,t))}removeWidget(e){this.removeWidgetAt(this._widgets.indexOf(e))}removeWidgetAt(e){let t=L.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&&ae.sendMessage(t,W.Msg.BeforeAttach),this.parent.node.insertBefore(t.node,r),this.parent.isAttached&&ae.sendMessage(t,W.Msg.AfterAttach)}moveWidget(e,t,r){this.parent.isAttached&&ae.sendMessage(r,W.Msg.BeforeDetach),this.parent.node.removeChild(r.node),this.parent.isAttached&&ae.sendMessage(r,W.Msg.AfterDetach);let n=this.parent.node.children[t];this.parent.isAttached&&ae.sendMessage(r,W.Msg.BeforeAttach),this.parent.node.insertBefore(r.node,n),this.parent.isAttached&&ae.sendMessage(r,W.Msg.AfterAttach)}detachWidget(e,t){this.parent.isAttached&&ae.sendMessage(t,W.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&ae.sendMessage(t,W.Msg.AfterDetach)}};(function(i){function e(t){return Math.max(0,Math.floor(t))}i.clampDimension=e})(dm||(dm={}));hm=dm,Ws=class extends Aa{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=dm.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=dm.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 Ea.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=Ea.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);jn.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 Xc(t),n=Ea.createHandle(this.renderer),s=Ea.averageSize(this._sizers),o=Ea.createSizer(s);L.insert(this._items,e,r),L.insert(this._sizers,e,o),L.insert(this._handles,e,n),this.parent.isAttached&&ae.sendMessage(t,W.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.node.appendChild(n),this.parent.isAttached&&ae.sendMessage(t,W.Msg.AfterAttach),this.parent.fit()}moveWidget(e,t,r){L.move(this._items,e,t),L.move(this._sizers,e,t),L.move(this._handles,e,t),this.parent.fit()}detachWidget(e,t){let r=L.removeAt(this._items,e),n=L.removeAt(this._handles,e);L.removeAt(this._sizers,e),this.parent.isAttached&&ae.sendMessage(t,W.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.node.removeChild(n),this.parent.isAttached&&ae.sendMessage(t,W.Msg.AfterDetach),r.dispose(),this.parent.fit()}
6275onBeforeShow(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=Ws.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=he.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&&ae.sendMessage(this.parent.parent,W.Msg.FitRequest),this._dirty&&ae.sendMessage(this.parent,W.Msg.UpdateRequest)}_update(e,t){this._dirty=!1;let r=0;for(let d=0,h=this._items.length;d<h;++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=he.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 f of this._sizers)f.sizeHint*=d;this._hasNormedSizes=!1}let h=jn.calc(this._sizers,d);if(h>0)switch(this._alignment){case"start":break;case"center":l=0,u=h/2;break;case"end":l=0,u=h;break;case"justify":l=h/r,u=0;break;default:throw"unreachable"}}for(let d=0,h=this._items.length;d<h;++d){let p=this._items[d].isHidden?0:this._sizers[d].size+l;this.updateItemPosition(d,c,c?s+u:s,c?n:n+u,a,o,p);let g=this.widgetOffset+(this._handles[d].classList.contains("lm-mod-hidden")?0:this._spacing);c?s+=p+g:n+=p+g}}};(function(i){function e(r){return Ea.stretchProperty.get(r)}i.getStretch=e;function t(r,n){Ea.stretchProperty.set(r,n)}i.setStretch=t})(Ws||(Ws={}));(function(i){i.stretchProperty=new Ye({name:"stretch",create:()=>0,coerce:(o,a)=>Math.max(0,Math.floor(a)),changed:s});function e(o){let a=new Ro;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 Ws&&o.parent.fit()}})(Ea||(Ea={}));u4=class extends Ws{constructor(e){super({...e,orientation:e.orientation||"vertical"}),this._titles=[],this.titleSpace=e.titleSpace||22}get titleSpace(){return this.widgetOffset}set titleSpace(e){e=hm.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-${Ta.UUID.uuid4()}`),super.insertWidget(e,t)}attachWidget(e,t){let r=Rv.createTitle(this.renderer,t.title);L.insert(this._titles,e,r),this.parent.node.appendChild(r),t.node.setAttribute("role","regi
6275on"),t.node.setAttribute("aria-labelledby",r.id),super.attachWidget(e,t)}moveWidget(e,t,r){L.move(this._titles,e,t),super.moveWidget(e,t,r)}detachWidget(e,t){let r=L.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={}));fm=class extends W{constructor(e={}){super(),this.addClass("lm-Panel"),this.layout=c4.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 Aa}i.createLayout=e})(c4||(c4={}));Jc=class extends fm{constructor(e={}){super({layout:d4.createLayout(e)}),this._handleMoved=new G(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=L.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=Ri.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 Ws.getStretch(n)}i.getStretch=t;function r(n,s){Ws.setStretch(n,s)}i.setStretch=r})(Jc||(Jc={}));(function(i){function e(t){return t.layout||new Ws({renderer:t.renderer||Jc.defaultRenderer,orientation:t.orientation,alignment:t.alignment,spacing:t.spacing})}i.createLayout=e})(d4||(d4={}));pm=class extends Jc{constructor(e={}){super({...e,layout:h4.createLayout(e)}),this._widgetSizesCache=new WeakMap,this._expansionToggled=new G(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=L.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,h)=>{h!==e&&(l[h]-=s[h]/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=L.findFirstIndex(this.titles,n=>n.contains(t));r>=0&&(e.preventDefault(),e.stopPropagation(),this._toggleExpansion(r))}}
6275_eventKeyDown(e){if(e.defaultPrevented)return;let t=e.target,r=!1;if(t){let n=L.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 Jc.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})(pm||(pm={}));(function(i){function e(t){return t.layout||new u4({renderer:t.renderer||pm.defaultRenderer,orientation:t.orientation,alignment:t.alignment,spacing:t.spacing,titleSpace:t.titleSpace})}i.createLayout=e})(h4||(h4={}));Vn=class extends Aa{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=hm.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=hm.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){L.insert(this._items,e,new Xc(t)),L.insert(this._sizers,e,new Ro),this.parent.isAttached&&ae.sendMessage(t,W.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.isAttached&&ae.sendMessage(t,W.Msg.AfterAttach),this.parent.fit()}moveWidget(e,t,r){L.move(this._items,e,t),L.move(this._sizers,e,t),this.parent.update()}detachWidget(e,t){let r=L.removeAt(this._items,e);L.removeAt(this._sizers,e),this.parent.isAttached&&ae.sendMessage(t,W.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&ae.sendMessage(t,W.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=Yc.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}
6275u.fit(),c.sizeHint=Vn.getSizeBasis(u.widget),c.stretch=Vn.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=he.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&&ae.sendMessage(this.parent.parent,W.Msg.FitRequest),this._dirty&&ae.sendMessage(this.parent,W.Msg.UpdateRequest)}_update(e,t){this._dirty=!1;let r=0;for(let d=0,h=this._items.length;d<h;++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=he.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=jn.calc(this._sizers,Math.max(0,o-this._fixed));break;case"top-to-bottom":l=jn.calc(this._sizers,Math.max(0,a-this._fixed));break;case"right-to-left":l=jn.calc(this._sizers,Math.max(0,o-this._fixed)),s+=o;break;case"bottom-to-top":l=jn.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,h=this._items.length;d<h;++d){let f=this._items[d];if(f.isHidden)continue;let p=this._sizers[d].size;switch(this._direction){case"left-to-right":f.update(s+c,n,p+u,a),s+=p+u+this._spacing;break;case"top-to-bottom":f.update(s,n+c,o,p+u),n+=p+u+this._spacing;break;case"right-to-left":f.update(s-c-p-u,n,p+u,a),s-=p+u+this._spacing;break;case"bottom-to-top":f.update(s,n-c-p-u,o,p+u),n-=p+u+this._spacing;break;default:throw"unreachable"}}}};(function(i){function e(s){return Yc.stretchProperty.get(s)}i.getStretch=e;function t(s,o){Yc.stretchProperty.set(s,o)}i.setStretch=t;function r(s){return Yc.sizeBasisProperty.get(s)}i.getSizeBasis=r;function n(s,o){Yc.sizeBasisProperty.set(s,o)}i.setSizeBasis=n})(Vn||(Vn={}));(function(i){i.stretchProperty=new Ye({name:"stretch",create:()=>0,coerce:(n,s)=>Math.max(0,Math.floor(s)),changed:r}),i.sizeBasisProperty=new Ye({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 Vn&&n.parent.fit()}})(Yc||(Yc={}));Dv=class extends fm{constructor(e={}){super({layout:f4.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 Vn.getStretch(s)}i.getStretch=e;function t(s,o){Vn.setStretch(s,o)}i.setStretch=t;function r(s){return Vn.getSizeBasis(s)}i.getSizeBasis=r;function n(s,o){Vn.setSizeBasis(s,o)}i.setSizeBasis=n})(Dv||(Dv={}));(function(i){function e(t){return t.layout||new Vn(t)}i.createLayout=e})(f4||(f4={}));Fh=class extends W{constructor(e){super({node:Ia.createNode()}),this._activeIndex=-1,this._items=[],this._results=null,this.addClass("lm-CommandPalette"),this.setFlag(W.Flag.DisallowLayout),this.commands=e.commands,this.renderer=e.renderer||Fh.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=Ia.createItem(this.commands,e);return this._items.push(t),this.refresh(),t}addItems(e){let t=e.map(r=>Ia.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){L.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)}
6275onActivateRequest(e){if(this.isAttached){let t=this.inputNode;t.focus(),t.select()}}onUpdateRequest(e){if(!this.isVisible){Pt.render(null,this.contentNode);return}let t=this.inputNode.value,r=this.contentNode,n=this._results;if(n||(n=this._results=Ia.search(this._items,t),this._activeIndex=t?L.findFirstIndex(n,Ia.canActivate):-1),!t&&n.length===0){Pt.render(null,r);return}if(t&&n.length===0){let l=this.renderer.renderEmptyMessage({query:t});Pt.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,h=c.category;a[l]=s.renderHeader({category:h,indices:d})}else{let d=c.item,h=c.indices,f=l===o;a[l]=s.renderItem({item:d,indices:h,active:f})}}if(Pt.render(a,r),o<0||o>=n.length)r.scrollTop=0;else{let l=r.children[o];he.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=L.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=L.findFirstIndex(this._results,Ia.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=L.findLastIndex(this._results,Ia.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 re.li({className:"lm-CommandPalette-header"},n)}renderItem(r){let n=this.createItemClass(r),s=this.createItemDataset(r);return r.item.isToggleable?re.li({className:n,dataset:s,role:"menuitemcheckbox","aria-checked":`${r.item.isToggled}`},this.renderItemIcon(r),this.renderItemContent(r),this.renderItemShortcut(r)):re.li({className:n,dataset:s,role:"menuitem"},this.renderItemIcon(r),this.renderItemContent(r),this.renderItemShortcut(r))}renderEmptyMessage(r){let n=this.formatEmptyMessage(r);return re.li({className:"lm-CommandPalette-emptyMessage"},n)}renderItemIcon(r){let n=this.createIconClass(r);return re.div({className:n},r.item.icon,r.item.iconLabel)}renderItemContent(r){return re.div({className:"lm-CommandPalette-itemContent"},this.renderItemLabel(r),this.renderItemCaption(r))}renderItemLabel(r){let n=this.formatItemLabel(r);return re.div({className:"lm-CommandPalette-itemLabel"},n)}renderItemCaption(r){let n=this.formatItemCaption(r);return re.div({className:"lm-CommandPalette-itemCaption"},n)}renderItemShortcut(r){let n=this.formatItemShortcut(r);return re.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:gr.highlight(r.category,r.indices,re.mark)}formatEmptyMessage(r){return`No commands found that match '${r.query}'`}formatItemShortcut(r){let n=r.item.keyBinding;return n?ti.formatKeystroke(n.keys):null}formatItemLabel(r){return!r.indices||r.indices.length===0?r.item.label:gr.highlight(r.item.label,r.indices,re.mark)}formatItemCaption(r){return r.item.caption}}i.Renderer=e,i.defaultRenderer=new e})(Fh||(Fh={}));(function(i){function e(){let h=document.createElement("div"),f=document.createElement("div"),p=document.createElement("div"),g=document.createElement("input"),v=document.createElement("ul"),_=document.createElement("button");return f.className="lm-CommandPalette-search",p.className="lm-CommandPalette-wrapper",g.className="lm-CommandPalette-input",_.className="lm-close-icon",v.className="lm-CommandPalette-content",v.setAttribute("role","menu"),g.spellcheck=!1,p.appendChild(g),p.appendChild(_),f.appendChild(p),h.appendChild(f),h.appendChild(v),h}i.createNode=e;function t(h,f){return new d(h,f)}i.createItem=t;function r(h,f){let p=a(h,f);return p.sort(u),c(p)}i.search=r;function n(h){return h.type==="item"&&h.item.isEnabled}i.canActivate=n;function s(h){return h.trim().replace(/\s+/g," ")}function o(h){return h.replace(/\s+/g,"").toLowerCase()}function a(h,f){f=o(f);let p=[];for(let g=0,v=h.length;g<v;++g){let _=h[g];if(!_.isVisible)continue;if(!f){p.push({matchType:3,categoryIndices:null,labelIndices:null,
6275score:0,item:_});continue}let x=l(_,f);x&&(_.isEnabled||(x.score+=1e3),p.push(x))}return p}function l(h,f){let p=h.category.toLowerCase(),g=h.label.toLowerCase(),v=`${p} ${g}`,_=1/0,x=null,y=/\b\w/g;for(;;){let E=y.exec(v);if(!E)break;let w=gr.matchSumOfDeltas(v,f,E.index);if(!w)break;w.score<=_&&(_=w.score,x=w.indices)}if(!x||_===1/0)return null;let C=p.length+1,S=L.lowerBound(x,C,(E,w)=>E-w),R=x.slice(0,S),I=x.slice(S);for(let E=0,w=I.length;E<w;++E)I[E]-=C;return R.length===0?{matchType:0,categoryIndices:null,labelIndices:I,score:_,item:h}:I.length===0?{matchType:1,categoryIndices:R,labelIndices:null,score:_,item:h}:{matchType:2,categoryIndices:R,labelIndices:I,score:_,item:h}}function u(h,f){let p=h.matchType-f.matchType;if(p!==0)return p;let g=h.score-f.score;if(g!==0)return g;let v=0,_=0;switch(h.matchType){case 0:v=h.labelIndices[0],_=f.labelIndices[0];break;case 1:case 2:v=h.categoryIndices[0],_=f.categoryIndices[0];break}if(v!==_)return v-_;let x=h.item.category.localeCompare(f.item.category);if(x!==0)return x;let y=h.item.rank,C=f.item.rank;return y!==C?y<C?-1:1:h.item.label.localeCompare(f.item.label)}function c(h){let f=[];for(let p=0,g=h.length;p<g;++p){let{item:v,categoryIndices:_,labelIndices:x}=h[p],y=v.category;(p===0||y!==h[p-1].item.category)&&f.push({type:"header",category:y,indices:_}),f.push({type:"item",item:v,indices:x})}return f}class d{constructor(f,p){this._commands=f,this.category=s(p.category),this.command=p.command,this.args=p.args||Ta.JSONExt.emptyObject,this.rank=p.rank!==void 0?p.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:f,args:p}=this;return L.findLastValue(this._commands.keyBindings,g=>g.command===f&&Ta.JSONExt.deepEqual(g.args,p))||null}}}
6275)(Ia||(Ia={}));Do=class extends W{constructor(e){super({node:Qr.createNode()}),this._childIndex=-1,this._activeIndex=-1,this._openTimerID=0,this._closeTimerID=0,this._items=[],this._childMenu=null,this._parentMenu=null,this._aboutToClose=new G(this),this._menuRequested=new G(this),this.addClass("lm-Menu"),this.setFlag(W.Flag.DisallowLayout),this.commands=e.commands,this.renderer=e.renderer||Do.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&&!Qr.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=L.findFirstIndex(this._items,Qr.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=L.findLastIndex(this._items,Qr.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=Qr.createItem(this,t);return L.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,L.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,o;if(this.isAttached)return;let a=r.forceX||!1,l=r.forceY||!1,u=(n=r.host)!==null&&n!==void 0?n:null,c=(s=r.ref)!==null&&s!==void 0?s:null,d=(o=r.horizontalAlignment)!==null&&o!==void 0?o:document.documentElement.dir==="rtl"?"right":"left";Qr.openRootMenu(this,e,t,a,l,d,u,c),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=Qr.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}})}Pt.render(o,this.contentNode)}
6275onCloseRequest(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=Qn().keyForKeydownEvent(e);if(!r)return;let n=this._activeIndex+1,s=Qr.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=L.findFirstIndex(this.contentNode.children,n=>he.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(he.hitTest(this._childMenu.node,t,r)){this._cancelCloseTimer();return}this.activeIndex=-1,this._startCloseTimer()}_evtMouseDown(e){this._parentMenu||(Qr.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;Do.saveWindowData(),this._closeChildMenu(),this._childMenu=r,this._childIndex=this._activeIndex,r._parentMenu=this,ae.sendMessage(this,W.Msg.UpdateRequest);let n=this.contentNode.children[this._activeIndex];Qr.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()},Qr.TIMER_DELAY))}_startCloseTimer(){this._closeTimerID===0&&(this._closeTimerID=window.setTimeout(()=>{this._closeTimerID=0,this._closeChildMenu()},Qr.TIMER_DELAY))}_cancelOpenTimer(){this._openTimerID!==0&&(clearTimeout(this._openTimerID),this._openTimerID=0)}_cancelCloseTimer(){this._closeTimerID!==0&&(clearTimeout(this._closeTimerID),this._closeTimerID=0)}static saveWindowData(){Qr.saveWindowData()}};(function(i){class e{renderItem(r){let n=this.createItemClass(r),s=this.createItemDataset(r),o=this.createItemARIA(r);return re.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 re.div({className:n},r.item.icon,r.item.iconLabel)}renderLabel(r){let n=this.formatLabel(r);return re.div({className:"lm-Menu-itemLabel"},n)}renderShortcut(r){let n=this.formatShortcut(r);return re.div({className:"lm-Menu-itemShortcut"},n)}renderSubmenu(r){return re.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"),r.item.isToggled?(n.role="menuitemcheckbox",n["aria-checked"]="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=re.span({className:"lm-Menu-itemMnemonic"},l);return[o,u,a]}formatShortcut(r){let n=r.item.keyBinding;return n?ti.formatKeystroke(n.keys):null}}
6275i.Renderer=e,i.defaultRenderer=new e})(Do||(Do={}));(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 g=document.createElement("div"),v=document.createElement("ul");return v.className="lm-Menu-content",g.appendChild(v),v.setAttribute("role","menu"),g.tabIndex=0,g}i.createNode=s;function o(g){return g.type!=="separator"&&g.isEnabled&&g.isVisible}i.canActivate=o;function a(g,v){return new p(g.commands,v)}i.createItem=a;function l(g,v,_){for(let x=g;x;x=x.childMenu)if(he.hitTest(x.node,v,_))return!0;return!1}i.hitTestMenus=l;function u(g){let v=new Array(g.length);L.fill(v,!1);let _=0,x=g.length;for(;_<x;++_){let S=g[_];if(S.isVisible){if(S.type!=="separator")break;v[_]=!0}}let y=x-1;for(;y>=0;--y){let S=g[y];if(S.isVisible){if(S.type!=="separator")break;v[y]=!0}}let C=!1;for(;++_<y;){let S=g[_];S.isVisible&&(S.type!=="separator"?C=!1:C?v[_]=!0:C=!0)}return v}i.computeCollapsed=u;function c(){return{pageXOffset:window.pageXOffset,pageYOffset:window.pageYOffset,clientWidth:document.documentElement.clientWidth,clientHeight:document.documentElement.clientHeight}}function d(g,v,_,x,y,C,S,R){let I=r(),E=I.pageXOffset,w=I.pageYOffset,k=I.clientWidth,O=I.clientHeight;ae.sendMessage(g,W.Msg.UpdateRequest);let z=O-(y?_:0),Y=g.node,pe=Y.style;pe.opacity="0",pe.maxHeight=`${z}px`,W.attach(g,S||document.body,R);let{width:U,height:ne}=Y.getBoundingClientRect();C==="right"&&(v-=U),!x&&v+U>E+k&&(v=E+k-U),!y&&_+ne>w+O&&(_>w+O?_=w+O-ne:_=_-ne),pe.transform=`translate(${Math.max(0,v)}px, ${Math.max(0,_)}px`,pe.opacity="1"}i.openRootMenu=d;function h(g,v){let _=r(),x=_.pageXOffset,y=_.pageYOffset,C=_.clientWidth,S=_.clientHeight;ae.sendMessage(g,W.Msg.UpdateRequest);let R=S,I=g.node,E=I.style;E.opacity="0",E.maxHeight=`${R}px`,W.attach(g,document.body);let{width:w,height:k}=I.getBoundingClientRect(),O=he.boxSizing(g.node),z=v.getBoundingClientRect(),Y=z.right-i.SUB
6275MENU_OVERLAP;Y+w>x+C&&(Y=z.left+i.SUBMENU_OVERLAP-w);let pe=z.top-O.borderTop-O.paddingTop;pe+k>y+S&&(pe=z.bottom+O.borderBottom+O.paddingBottom-k),E.transform=`translate(${Math.max(0,Y)}px, ${Math.max(0,pe)}px`,E.opacity="1"}i.openSubmenu=h;function f(g,v,_){let x=-1,y=-1,C=!1,S=v.toUpperCase();for(let R=0,I=g.length;R<I;++R){let E=(R+_)%I,w=g[E];if(!o(w))continue;let k=w.label;if(k.length===0)continue;let O=w.mnemonic;if(O>=0&&O<k.length){k[O].toUpperCase()===S&&(x===-1?x=E:C=!0);continue}y===-1&&k[0].toUpperCase()===S&&(y=E)}return{index:x,multiple:C,auto:y}}i.findMnemonic=f;class p{constructor(v,_){this._commands=v,this.type=_.type||"command",this.command=_.command||"",this.args=_.args||Ta.JSONExt.emptyObject,this.submenu=_.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}get keyBinding(){if(this.type==="command"){let{command:v,args:_}=this;return L.findLastValue(this._commands.keyBindings,x=>x.command===v&&Ta.JSONExt.deepEqual(x.args,_))||null}return null}}})(Qr||(Qr={}));(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 h=[],f=o.slice();for(;c!==null;){let p=[];for(let g=0,v=f.length;g<v;++g){let _=f[g];_&&pi.matches(c,_.selector)&&(p.push(_),f[g]=null)}if(p.length!==0&&(l&&p.sort(u?s:n),h.push(...p)),c===d)break;c=c.parentElement}return l||h.sort(u?s:n),h}i.matchItems=t;function r(o){if(o.indexOf(",")!==-1)throw new Error(`Selector cannot contain commas: ${o}`);if(!pi.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=pi.calculateSpecificity(o.selector),u=pi.calculateSpecificity(a.selector);return l!==u?u-l:n(o,a)}})(sZ||(sZ={}));WSe=["ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Home","End"],zu=class extends W{constructor(e={}){super({node:bs.createNode()}),this._currentIndex=-1,this._titles=[],this._titlesEditable=!1,this._previousTitle=null,this._dragData=null,this._addButtonEnabled=!1,this._tabMoved=new G(this),this._currentChanged=new G(this),this._addRequested=new G(this),this._tabCloseRequested=new G(this),this._tabDetachRequested=new G(this),this._tabActivateRequested=new G(this),this.addClass("lm-TabBar"),this.contentNode.setAttribute("role","tablist"),this.setFlag(W.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||zu.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;
6275let 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=bs.asTitle(t),n=this._titles.indexOf(r),s=Math.max(0,Math.min(e,this._titles.length));return n===-1?(L.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||(L.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=L.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,currentTitle: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,h=d?u:u-l-1,f=a===l?0:-1;o[l]=n.renderTab({title:c,current:d,zIndex:h,tabIndex:f})}Pt.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=L.findFirstIndex(t,o=>he.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;
6275if(!(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=L.findFirstIndex(this.contentNode.children,a=>a.contains(s));o>=0&&(e.preventDefault(),e.stopPropagation(),this.currentIndex=o)}}else if(WSe.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=L.findFirstIndex(r,o=>he.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,!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&&!bs.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=bs.snapTabLayout(r,this._orientation),t.contentRect=this.contentNode.getBoundingClientRect(),t.override=Ri.overrideCursor("default"),t.tab.classList.add("lm-mod-dragging"),this.addClass("lm-mod-dragging"),t.dragActive=!0}if(!t.detachRequested&&bs.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}bs.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=L.findFirstIndex(s,u=>he.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;bs.finalizeTabPosition(t,this._orientation),t.tab.classList.remove("lm-mod-dragging");let r=bs.parseTransitionDuration(t.tab);setTimeout(()=>{if(t.dragAborted)return;this._dragData=null,bs.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||(L.move(this._titles,n,s),this._adjustCurrentForMove(n,s),this._tabMoved.emit({fromIndex:n,toIndex:s,title:this._titles[s]}),ae.sendMessage(this,W.Msg.UpdateRequest))},r)}_releaseMouse(){let e=this._dragData;e&&(this._dragData=null,this.document.removeEventListener("pointermove",this,!0),this.document.removeEventListener("pointerup",this,
6275!0),this.document.removeEventListener("keydown",this,!0),this.document.removeEventListener("contextmenu",this,!0),e.dragAborted=!0,e.dragActive&&(bs.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,currentTitle: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?re.li({id:o,key:s,className:l,title:n,style:a,dataset:u,...c},this.renderIcon(r),this.renderLabel(r),this.renderCloseIcon(r)):re.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 re.div({className:s},n.icon,n.iconLabel)}renderLabel(r){return re.div({className:"lm-TabBar-tabLabel"},r.title.label)}renderCloseIcon(r){return re.div({className:"lm-TabBar-tabCloseIcon"})}
6275createTabKey(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"})(zu||(zu={}));(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 h=document.createElement("div");return h.className="lm-TabBar-addButton lm-mod-hidden",h.setAttribute("tabindex","-1"),h.setAttribute("role","button"),c.appendChild(h),c}i.createNode=e;function t(c){return c instanceof cm?c:new cm(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 h=new Array(c.length);for(let f=0,p=c.length;f<p;++f){let g=c[f],v=window.getComputedStyle(g);d==="horizontal"?h[f]={pos:g.offsetLeft,size:g.offsetWidth,margin:parseFloat(v.marginLeft)||0}:h[f]={pos:g.offsetTop,size:g.offsetHeight,margin:parseFloat(v.marginTop)||0}}return h}i.snapTabLayout=n;function s(c,d){let h=Math.abs(d.clientX-c.pressX),f=Math.abs(d.clientY-c.pressY);return h>=i.DRAG_THRESHOLD||f>=i.DRAG_THRESHOLD}i.dragExceeded=s;function o(c,d){let h=c.contentRect;return d.clientX<h.left-i.DETACH_THRESHOLD||d.clientX>=h.right+i.DETACH_THRESHOLD||d.clientY<h.top-i.DETACH_THRESHOLD||d.clientY>=h.bottom+i.DETACH_THRESHOLD}i.detachExceeded=o;function a(c,d,h,f){let p,g,v,_;f==="horizontal"?(p=d.pressX,g=h.clientX-d.contentRect.left,v=h.clientX,_=d.contentRect.width):(p=d.pressY,g=h.clientY-d.contentRect.top,v=h.clientY,_=d.contentRect.height);let x=d.index,y=g-d.tabPressPos,C=y+d.tabSize;for(let S=0,R=c.length;S<R;++S){let I,E=d.tabLayout[S],w=E.pos+(E.size>>1);if(S<d.index&&y<w)I=`${d.tabSize+d.tabLayout[S+1].margin}px`,x=Math.min(x,S);else if(S>d.index&&C>w)I=`${-d.tabSize-E.margin}px`,x=Math.max(x,S);else if(S===d.index){let k=v-p,O=_-(d.tabPos+d.tabSize);I=`${Math.max(-d.tabPos,Math.min(k,O))}px`}else I="";f==="horizontal"?c[S].style.left=I:c[S].style.top=I}d.targetIndex=x}i.layoutTabs=a;function l(c,d){let h;d==="horizontal"?h=c.contentRect.width:h=c.contentRect.height;let f;if(c.targetIndex===c.index)f=0;else if(c.targetIndex>c.index){let v=c.tabLayout[c.targetIndex];f=v.pos+v.size-c.tabSize-c.tabPos}else f=c.tabLayout[c.targetIndex].pos-c.tabPos;let p=h-(c.tabPos+c.tabSize),g=Math.max(-c.tabPos,Math.min(f,p));d==="horizontal"?c.tab.style.left=`${g}px`:c.tab.style.top=`${g}px`}i.finalizeTabPosition=l;function u(c,d){for(let h of c)d==="horizontal"?h.style.left="":h.style.top=""}i.resetTabPositions=u})(bs||(bs={}));p4=class extends Oo{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=hm.clampDimension(e.spacing)),this._document=e.document||document,this._hiddenMode=e.hiddenMode!==void 0?e.hiddenMode:W.HiddenMode.Display}dispose(){let e=this[Symbol.iterator]();this._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=hm.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():Oi()}widgets(){return this._root?this._root.iterUserWidgets():Oi()}selectedWidgets(){return this._root?this._root.iterSelectedWidgets():Oi()}tabBars(){return this._root?this._root.iterTabBars():Oi()}handles(){return this._root?this._root.iterHandles():Oi()}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(),jn.adjust(s.node.sizers,s.index,o),this.parent&&this.parent.update(
6275))}saveLayout(){return this._root?(this._root.holdAllSizes(),{main:this._root.createConfig()}):{main:null}}restoreLayout(e){let t=new Set,r;e.main?r=yi.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=yi.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=he.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,h=this._box.borderLeft+this._box.borderRight,f=this._box.borderTop+this._box.borderBottom,p=r.width-h-(u+c),g=r.height-f-(l+d);return{tabBar:a,x:n,y:s,top:l,left:u,right:p,bottom:g,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 Xc(e)),this.parent.isAttached&&ae.sendMessage(e,W.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&ae.sendMessage(e,W.Msg.AfterAttach))}detachWidget(e){if(this.parent.node!==e.node.parentNode)return;this.parent.isAttached&&ae.sendMessage(e,W.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&ae.sendMessage(e,W.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;if(yi.removeAria(e),t.tabBar.titles.length>1){if(t.tabBar.removeTab(e.title),this._hiddenMode===W.HiddenMode.Scale&&t.tabBar.titles.length==1){let h=t.tabBar.titles[0].owner;h.hiddenMode=W.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=L.removeFirstOf(r.children,t),s=L.removeAt(r.handles,n);if(L.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 yi.TabLayoutNode){a.parent=u,u.children[c]=a;return}let d=L.removeAt(u.handles,c);L.removeAt(u.children,c),L.removeAt(u.sizers,c),d.parentNode&&d.parentNode.removeChild(d);for(let h=0,f=a.children.length;h<f;++h){let p=a.children[h],g=a.handles[h],v=a.sizers[h];L.insert(u.children,c+h,p),L.insert(u.handles,c+h,g),L.insert(u.sizers,c+h,v),p.parent=u}a.children.length=0,a.handles.length=0,a.sizers.length=0,a.parent=null,u.syncHandles()}_createTabNode(e){let t=new yi.TabLayoutNode(this._createTabBar());return t.tabBar.addTab(e.title),yi.addAria(e,t.tabBar),t}_insertTab(e,t,r,n){if(e===t)return;if(!this._root){let o=new yi.TabLayoutNode(this._createTabBar());o.tabBar.addTab(e.title),this._root=o,yi.addAria(e,o.tabBar);return}
6275r||(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===W.HiddenMode.Scale)if(r.tabBar.titles.length===0)e.hiddenMode=W.HiddenMode.Display;else if(r.tabBar.titles.length==1){let o=r.tabBar.titles[0].owner;o.hiddenMode=W.HiddenMode.Scale}else e.hiddenMode=W.HiddenMode.Scale;else e.hiddenMode=this._hiddenMode;r.tabBar.insertTab(s+(n?1:0),e.title),yi.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 h=this._splitRoot(n),f=s?h.children.length:0;h.normalizeSizes();let p=yi.createSizer(r?1:yi.GOLDEN_RATIO),g=this._createTabNode(e);L.insert(h.children,f,g),L.insert(h.sizers,f,p),L.insert(h.handles,f,this._createHandle()),g.parent=h,h.normalizeSizes(),h.syncHandles();return}let a=r.parent;if(a.orientation===n){let h=a.children.indexOf(r);if(o){let v=h+(s?1:-1),_=a.children[v];if(_ instanceof yi.TabLayoutNode){this._insertTab(e,null,_,!0),++_.tabBar.currentIndex;return}}a.normalizeSizes();let f=a.sizers[h].sizeHint/=2,p=h+(s?1:0),g=this._createTabNode(e);L.insert(a.children,p,g),L.insert(a.sizers,p,yi.createSizer(f)),L.insert(a.handles,p,this._createHandle()),g.parent=a,a.syncHandles();return}let l=L.removeFirstOf(a.children,r),u=new yi.SplitLayoutNode(n);u.normalized=!0,u.children.push(r),u.sizers.push(yi.createSizer(.5)),u.handles.push(this._createHandle()),r.parent=u;let c=s?1:0,d=this._createTabNode(e);L.insert(u.children,c,d),L.insert(u.sizers,c,yi.createSizer(.5)),L.insert(u.handles,c,this._createHandle()),d.parent=u,u.syncHandles(),L.insert(a.children,l,u),u.parent=a}_splitRoot(e){let t=this._root;if(t instanceof yi.SplitLayoutNode&&t.orientation===e)return t;let r=this._root=new yi.SplitLayoutNode(e);return t&&(r.children.push(t),r.sizers.push(yi.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=he.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&&ae.sendMessage(this.parent.parent,W.Msg.FitRequest),this._dirty&&ae.sendMessage(this.parent,W.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=he.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(h){let f=new Ro;return f.sizeHint=h,f.size=h,f}i.createSizer=e;function t(h,f){let p;return h.type==="tab-area"?p=l(h,f):p=u(h,f),p}i.normalizeAreaConfig=t;function r(h,f,p){let g;return h.type==="tab-area"?g=c(h,f,p):g=d(h,f,p),g}i.realizeAreaConfig=r;class n{constructor(f){this.parent=null,this._top=0,this._left=0,this._width=0,this._height=0;let p=new Ro,g=new Ro;p.stretch=0,g.stretch=1,this.tabBar=f,this.sizers=[p,g]}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()}*iterUserWidgets(){for(let f of this.tabBar.titles)yield f.owner}*iterSelectedWidgets(){let f=this.tabBar.currentTitle;f&&(yield f.owner)}*iterTabBars(){yield this.tabBar}*iterHandles(){}findTabNode(f){return this.tabBar.titles.indexOf(f.title)!==-1?this:null}findSplitNode(f){return null}findFirstTabNode(){return this}hitTestTabNodes(f,p){return f<this._left||f>=this._left+this._width||p<this._top||p>=this._top+this._height?null:this}
6275createConfig(){let f=this.tabBar.titles.map(g=>g.owner),p=this.tabBar.currentIndex;return{type:"tab-area",widgets:f,currentIndex:p}}holdAllSizes(){}fit(f,p){let g=0,v=0,_=1/0,x=1/0,y=p.get(this.tabBar),C=this.tabBar.currentTitle,S=C?p.get(C.owner):void 0,[R,I]=this.sizers;return y&&y.fit(),S&&S.fit(),y&&!y.isHidden?(g=Math.max(g,y.minWidth),v+=y.minHeight,R.minSize=y.minHeight,R.maxSize=y.maxHeight):(R.minSize=0,R.maxSize=0),S&&!S.isHidden?(g=Math.max(g,S.minWidth),v+=S.minHeight,I.minSize=S.minHeight,I.maxSize=1/0):(I.minSize=0,I.maxSize=1/0),{minWidth:g,minHeight:v,maxWidth:_,maxHeight:x}}update(f,p,g,v,_,x){this._top=p,this._left=f,this._width=g,this._height=v;let y=x.get(this.tabBar),C=this.tabBar.currentTitle,S=C?x.get(C.owner):void 0;if(jn.calc(this.sizers,v),y&&!y.isHidden){let R=this.sizers[0].size;y.update(f,p,g,R),p+=R}if(S&&!S.isHidden){let R=this.sizers[1].size;S.update(f,p,g,R)}}}i.TabLayoutNode=n;class s{constructor(f){this.parent=null,this.normalized=!1,this.children=[],this.sizers=[],this.handles=[],this.orientation=f}*iterAllWidgets(){for(let f of this.children)yield*f.iterAllWidgets()}*iterUserWidgets(){for(let f of this.children)yield*f.iterUserWidgets()}*iterSelectedWidgets(){for(let f of this.children)yield*f.iterSelectedWidgets()}*iterTabBars(){for(let f of this.children)yield*f.iterTabBars()}*iterHandles(){yield*this.handles;for(let f of this.children)yield*f.iterHandles()}findTabNode(f){for(let p=0,g=this.children.length;p<g;++p){let v=this.children[p].findTabNode(f);if(v)return v}return null}findSplitNode(f){let p=this.handles.indexOf(f);
6275if(p!==-1)return{index:p,node:this};for(let g=0,v=this.children.length;g<v;++g){let _=this.children[g].findSplitNode(f);if(_)return _}return null}findFirstTabNode(){return this.children.length===0?null:this.children[0].findFirstTabNode()}hitTestTabNodes(f,p){for(let g=0,v=this.children.length;g<v;++g){let _=this.children[g].hitTestTabNodes(f,p);if(_)return _}return null}createConfig(){let f=this.orientation,p=this.createNormalizedSizes(),g=this.children.map(v=>v.createConfig());return{type:"split-area",orientation:f,children:g,sizes:p}}syncHandles(){this.handles.forEach((f,p)=>{f.setAttribute("data-orientation",this.orientation),p===this.handles.length-1?f.classList.add("lm-mod-hidden"):f.classList.remove("lm-mod-hidden")})}holdSizes(){for(let f of this.sizers)f.sizeHint=f.size}holdAllSizes(){for(let f of this.children)f.holdAllSizes();this.holdSizes()}normalizeSizes(){let f=this.sizers.length;if(f===0)return;this.holdSizes();let p=this.sizers.reduce((g,v)=>g+v.sizeHint,0);if(p===0)for(let g of this.sizers)g.size=g.sizeHint=1/f;else for(let g of this.sizers)g.size=g.sizeHint/=p;this.normalized=!0}createNormalizedSizes(){let f=this.sizers.length;if(f===0)return[];let p=this.sizers.map(v=>v.size),g=p.reduce((v,_)=>v+_,0);if(g===0)for(let v=p.length-1;v>-1;v--)p[v]=1/f;else for(let v=p.length-1;v>-1;v--)p[v]/=g;return p}fit(f,p){let g=this.orientation==="horizontal",v=Math.max(0,this.children.length-1)*f,_=g?v:0,x=g?0:v,y=1/0,C=1/0;for(let S=0,R=this.children.length;S<R;++S){let I=this.children[S].fit(f,p);g?(x=Math.max(x,I.minHeight),_+=I.minWidth,this.sizers[S].minSize=I.minWidth):(_=Math.max(_,I.minWidth),x+=I.minHeight,this.sizers[S].minSize=I.minHeight)}return{minWidth:_,minHeight:x,maxWidth:y,maxHeight:C}}update(f,p,g,v,_,x){let y=this.orientation==="horizontal",C=Math.max(0,this.children.length-1)*_,S=Math.max(0,(y?g:v)-C);if(this.normalized){for(let R of this.sizers)R.sizeHint*=S;this.normalized=!1}jn.calc(this.sizers,S);for(let R=0,I=this.children.length;R<I;++R){let E=this.children[R],w=this.sizers[R].size,k=this.handles[R].style;y?(E.update(f,p,w,v,_,x),f+=w,k.top=`${p}px`,k.left=`${f}px`,k.width=`${_}px`,k.height=`${v}px`,f+=_):(E.update(f,p,g,w,_,x),p+=w,k.top=`${p}px`,k.left=`${f}px`,k.width=`${g}px`,k.height=`${_}px`,p+=_)}}}i.SplitLayoutNode=s;function o(h,f){h.node.setAttribute("role","tabpanel");let p=f.renderer;if(p instanceof zu.Renderer){let g=p.createTabKey({title:h.title,current:!1,zIndex:0});h.node.setAttribute("aria-labelledby",g)}}i.addAria=o;function a(h){h.node.removeAttribute("role"),h.node.removeAttribute("aria-labelledby")}i.removeAria=a;function l(h,f){if(h.widgets.length===0)return null;let p=[];for(let v of h.widgets)f.has(v)||(f.add(v),p.push(v));if(p.length===0)return null;let g=h.currentIndex;return g!==-1&&(g<0||g>=p.length)&&(g=0),{type:"tab-area",widgets:p,currentIndex:g}}function u(h,f){let p=h.orientation,g=[],v=[];for(let _=0,x=h.children.length;_<x;++_){let y=t(h.children[_],f);y&&(y.type==="tab-area"||y.orientation!==p?(g.push(y),v.push(Math.abs(h.sizes[_]||0))):(g.push(...y.children),v.push(...y.sizes)))}return g.length===0?null:g.length===1?g[0]:{type:"split-area",orientation:p,children:g,sizes:v}}function c(h,f,p){let g=f.createTabBar(p);for(let v of h.widgets)v.hide(),g.addTab(v.title),i.addAria(v,g);return g.currentIndex=h.currentIndex,new n(g)}function d(h,f,p){let g=new s(h.orientation);return h.children.forEach((v,_)=>{let x=r(v,f,p),y=e(h.sizes[_]),C=f.createHandle();g.children.push(x),g.handles.push(C),g.sizers.push(y),x.parent=g}),g.syncHandles(),g.normalizeSizes(),g}})(yi||(yi={}));Zc=class extends W{constructor(e={}){super(),this._drag=null,this._tabsMovable=!0,this._tabsConstrained=!1,this._addButtonEnabled=!1,this._pressData=null,this._layoutModified=new G(this),this._addRequested=new G(this),this.addClass("lm-DockPanel"),this._document=e.document||document,this._mode=e.mode||"multiple-document",this._renderer=e.renderer||Zc.defaultRenderer,this._edges=e.edges||li.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()};
6275this.layout=new p4({document:this._document,renderer:t,spacing:e.spacing,hiddenMode:e.hiddenMode}),this.overlay=e.overlay||new Zc.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(li.createSingleDocumentConfig(this));break;default:throw"unreachable"}ae.postMessage(this,li.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=Ui(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),(Ft.IS_EDGE||Ft.IS_IE)&&ae.flush(),ae.postMessage(this,li.LayoutModified)}addWidget(e,t={}){this._mode==="single-document"?this.layout.addWidget(e):this.layout.addWidget(e,t),ae.postMessage(this,li.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){li.isGeneratedTabBarProperty.get(e.child)||e.child.addClass("lm-DockPanel-widget")}onChildRemoved(e){li.isGeneratedTabBarProperty.get(e.child)||(e.child.removeClass("lm-DockPanel-widget"),ae.postMessage(this,li.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}=li.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 W)){e.dropAction="none";return}if(l.contains(this)){e.dropAction="none";return}let u=s?li.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)}
6275_evtKeyDown(e){e.preventDefault(),e.stopPropagation(),e.keyCode===27&&(this._releaseMouse(),ae.postMessage(this,li.LayoutModified))}_evtPointerDown(e){if(e.button!==0)return;let t=this.layout,r=e.target,n=Ui(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=Ri.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(),ae.postMessage(this,li.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}=li.findDropTarget(this,e,t,this._edges);if(r==="invalid")return this.overlay.hide(100),r;let s,o,a,l,u=he.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*li.GOLDEN_RATIO;break;case"root-left":s=u.paddingTop,o=u.paddingLeft,a=c.width*li.GOLDEN_RATIO,l=u.paddingBottom;break;case"root-right":s=u.paddingTop,o=c.width*li.GOLDEN_RATIO,a=u.paddingRight,l=u.paddingBottom;break;case"root-bottom":s=c.height*li.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 li.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(){ae.postMessage(this,li.LayoutModified)}_onCurrentChanged(e,t){let{previousTitle:r,currentTitle:n}=t;r&&r.owner.hide(),n&&n.owner.show(),(Ft.IS_EDGE||Ft.IS_IE)&&ae.flush(),ae.postMessage(this,li.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 Ta.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 Ri({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 zu({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})(Zc||(Zc={}));(function(i){i.GOLDEN_RATIO=.618,i.DEFAULT_EDGES={top:12,right:40,bottom:40,left:40},i.LayoutModified=new Bu("layout-modified"),i.isGeneratedTabBarProperty=new Ye({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(!he.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 y=n.node.getBoundingClientRect(),C=s-y.left+1,S=o-y.top+1,R=y.right-s,I=y.bottom-o;switch(Math.min(S,R,I,C)){case S:if(S<a.top)return{zone:"root-top",target:null};break;case R:if(R<a.right)return{zone:"root-right",target:null};break;case I:if(I<a.bottom)return{zone:"root-bottom",target:null};break;case C:if(C<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,h=u.left+u.width-u.x,f=u.top+u.height-u.y,p=u.tabBar.node.getBoundingClientRect().height;if(d<p)return{zone:"widget-tab",target:u};let g=Math.round(u.width/3),v=Math.round(u.height/3);if(c>g&&h>g&&d>v&&f>v)return{zone:"widget-all",target:u};c/=g,d/=v,h/=g,f/=v;let _=Math.min(c,d,h,f),x;switch(_){case c:x="widget-left";break;case d:x="widget-top";break;case h:x="widget-right";break;case f:x="widget-bottom";break;default:throw"unreachable"}return{zone:x,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})(li||(li={}));ka=class extends Oo{constructor(e={}){super(e),this._dirty=!1,this._rowSpacing=4,this._columnSpacing=4,this._items=[],this._rowStarts=[],this._columnStarts=[],this._rowSizers=[new Ro],this._columnSizers=[new Ro],this._box=null,e.rowCount!==void 0&&qi.reallocSizers(this._rowSizers,e.rowCount),e.columnCount!==void 0&&qi.reallocSizers(this._columnSizers,e.columnCount),e.rowSpacing!==void 0&&(this._rowSpacing=qi.clampValue(e.rowSpacing)),e.columnSpacing!==void 0&&(this._columnSpacing=qi.clampValue(e.columnSpacing))}dispose(){for(let e of this._items){let t=e.widget;
6275e.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&&(qi.reallocSizers(this._rowSizers,e),this.parent&&this.parent.fit())}get columnCount(){return this._columnSizers.length}set columnCount(e){e!==this.columnCount&&(qi.reallocSizers(this._columnSizers,e),this.parent&&this.parent.fit())}get rowSpacing(){return this._rowSpacing}set rowSpacing(e){e=qi.clampValue(e),this._rowSpacing!==e&&(this._rowSpacing=e,this.parent&&this.parent.fit())}get columnSpacing(){return this._columnSpacing}set columnSpacing(e){e=qi.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=qi.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=qi.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){L.findFirstIndex(this._items,r=>r.widget===e)===-1&&(this._items.push(new Xc(e)),this.parent&&this.attachWidget(e))}removeWidget(e){let t=L.findFirstIndex(this._items,n=>n.widget===e);if(t===-1)return;let r=L.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&&ae.sendMessage(e,W.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&ae.sendMessage(e,W.Msg.AfterAttach),this.parent.fit()}detachWidget(e){this.parent.isAttached&&ae.sendMessage(e,W.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&ae.sendMessage(e,W.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(qi.rowSpanCmp);for(let l=0,u=e.length;l<u;++l){let c=e[l],d=ka.getCellConfig(c.widget),h=Math.min(d.row,t),f=Math.min(d.row+d.rowSpan-1,t);qi.distributeMin(this._rowSizers,h,f,c.minHeight)}e.sort(qi.columnSpanCmp);for(let l=0,u=e.length;l<u;++l){let c=e[l],d=ka.getCellConfig(c.widget),h=Math.min(d.column,r),f=Math.min(d.column+d.columnSpan-1,r);qi.distributeMin(this._columnSizers,h,f,c.minWidth)}if(this.fitPolicy==="set-no-constraint"){ae.sendMessage(this.parent,W.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=he.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&&ae.sendMessage(this.parent.parent,W.Msg.FitRequest),this._dirty&&ae.sendMessage(this.parent,W.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=he.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;jn.calc(this._rowSizers,Math.max(0,o-u)),jn.calc(this._columnSizers,Math.max(0,s-c));for(let d=0,h=r,f=this.rowCount;d<f;++d)this._rowStarts[d]=h,h+=this._rowSizers[d].size+this._rowSpacing;for(let d=0,h=n,f=this.columnCount;d<f;++d)this._columnStarts[d]=h,h+=this._columnSizers[d].size+this._columnSpacing;for(let d=0,h=this._items.length;d<h;++d){let f=this._items[d];if(f.isHidden)continue;let p=ka.getCellConfig(f.widget),g=Math.min(p.row,a),v=Math.min(p.column,l),_=Math.min(p.row+p.rowSpan-1,a),x=Math.min(p.column+
6275p.columnSpan-1,l),y=this._columnStarts[v],C=this._rowStarts[g],S=this._columnStarts[x]+this._columnSizers[x].size-y,R=this._rowStarts[_]+this._rowSizers[_].size-C;f.update(y,C,S,R)}}};(function(i){function e(r){return qi.cellConfigProperty.get(r)}i.getCellConfig=e;function t(r,n){qi.cellConfigProperty.set(r,qi.normalizeConfig(n))}i.setCellConfig=t})(ka||(ka={}));(function(i){i.cellConfigProperty=new Ye({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)),h=Math.max(1,Math.floor(l.columnSpan||0));return{row:u,column:c,rowSpan:d,columnSpan:h}}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 Ro);l.length>u&&(l.length=u)}i.reallocSizers=s;function o(l,u,c,d){if(c<u)return;if(u===c){let p=l[u];p.minSize=Math.max(p.minSize,d);return}let h=0;for(let p=u;p<=c;++p)h+=l[p].minSize;if(h>=d)return;let f=(d-h)/(c-u+1);for(let p=u;p<=c;++p)l[p].minSize+=f}i.distributeMin=o;function a(l){l.parent&&l.parent.layout instanceof ka&&l.parent.fit()}})(qi||(qi={}));Nh=class extends W{constructor(e={}){super({node:Ov.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(W.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){L.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&&(L.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=L.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
6275itle.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":case"mouseleave":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("mouseleave",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("mouseleave",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 Do({commands:new ti}),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 h=this.menus[d];h.title.mnemonic=0,this._overflowMenu.insertItem(0,{type:"submenu",submenu:h}),this.removeMenu(h,!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,h=this.node.offsetWidth,f=this._overflowMenu.items.length;for(let p=0;p<f;++p){let g=r.length-1-p;if(h-l>this._menuItemSizes[g]){let v=d[0].submenu;this._overflowMenu.removeItemAt(0),this.insertMenu(a,v,!1),c[a]=n.renderItem({title:v.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)}}Pt.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=Qn().keyForKeydownEvent(e);if(!r)return;let n=this._activeIndex+1,s=Ov.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(!he.hitTest(this.node,e.clientX,e.clientY))return;e.stopPropagation(),e.stopImmediatePropagation();let t=L.findFirstIndex(this.contentNode.children,r=>he.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);Do.saveWindowData(),this.activeIndex=t,this._openChildMenu(r)}}_evtMouseMove(e){let t=L.findFirstIndex(this.contentNode.children,n=>he.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;Do.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,
6275!0),this._tabFocusIndex=this.activeIndex,ae.sendMessage(this,W.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 re.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 re.div({className:n},r.title.icon,r.title.iconLabel)}renderLabel(r){let n=this.formatLabel(r);return re.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=re.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 h=(c+s)%d,f=r[h].title;if(f.label.length===0)continue;let p=f.mnemonic;if(p>=0&&p<f.label.length){f.label[p].toUpperCase()===u&&(o===-1?o=h:l=!0);continue}a===-1&&f.label[0].toUpperCase()===u&&(a=h)}return{index:o,multiple:l,auto:a}}i.findMnemonic=t})(Ov||(Ov={}));(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})(oZ||(oZ={}));aZ=class extends Oo{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&&ae.sendMessage(e,W.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&ae.sendMessage(e,W.Msg.AfterAttach)}detachWidget(e){this.parent.isAttached&&ae.sendMessage(e,W.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&ae.sendMessage(e,W.Msg.AfterDetach)}},m4=class extends Aa{constructor(e={}){super(e),this._dirty=!1,this._items=[],this._box=null,this._hiddenMode=e.hiddenMode!==void 0?e.hiddenMode:W.HiddenMode.Display}get hiddenMode(){return this._hiddenMode}set hiddenMode(e){this._hiddenMode!==e&&(this._hiddenMode=e,this.widgets.length>
62751&&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===W.HiddenMode.Scale&&this._items.length>0?(this._items.length===1&&(this.widgets[0].hiddenMode=W.HiddenMode.Scale),t.hiddenMode=W.HiddenMode.Scale):t.hiddenMode=W.HiddenMode.Display,L.insert(this._items,e,new Xc(t)),this.parent.isAttached&&ae.sendMessage(t,W.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.isAttached&&ae.sendMessage(t,W.Msg.AfterAttach),this.parent.fit()}moveWidget(e,t,r){L.move(this._items,e,t),this.parent.update()}detachWidget(e,t){let r=L.removeAt(this._items,e);this.parent.isAttached&&ae.sendMessage(t,W.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&ae.sendMessage(t,W.Msg.AfterDetach),r.widget.node.style.zIndex="",this._hiddenMode===W.HiddenMode.Scale&&(t.hiddenMode=W.HiddenMode.Display,this._items.length===1&&(this._items[0].widget.hiddenMode=W.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=he.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&&ae.sendMessage(this.parent.parent,W.Msg.FitRequest),this._dirty&&ae.sendMessage(this.parent,W.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=he.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 m4}i.createLayout=e})(lZ||(lZ={}));(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"}})(uZ||(uZ={}))});function x6t(i){let e=new b4(i);return i.startHidden||e.launch(),e}var b4,cZ=b(()=>{Mo();g4();b4=class extends W{constructor(e){super(),this.addClass("jp-ThemedContainer"),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 Aa).addWidget(e.body),this._body.node.addEventListener("resize",()=>{this.update()})}launch(){this._setGeometry(),W.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);Sv.setGeometry({anchor:t,host:document.body,maxHeight:500,minHeight:20,node:this._body.node,offset:{horizontal:e},privilege:"forceAbove",style:n})}}});function mm(i){let{title:e,source:t,className:r,...n}=i;return dZ.createElement("span",{className:r?`jp-StatusBar-TextItem ${r}`:"jp-StatusBar-TextItem",title:e,...n},t)}var dZ,hZ=b(()=>
6275{dZ=N(ue())});function Lv(i){let{spacing:e,children:t,className:r,...n}=i,s=Qc.Children.toArray(t).filter(Boolean),o=s.length;return Qc.createElement("div",{className:`jp-StatusBar-GroupItem ${r||""}`,...n},s.map((a,l)=>{let u=`group-item-${l}`;return l===0?Qc.createElement("div",{key:u,style:{marginRight:`${e}px`}},a):l===o-1?Qc.createElement("div",{key:u,style:{marginLeft:`${e}px`}},a):Qc.createElement("div",{key:u,style:{margin:`0px ${e}px`}},a)}))}var Qc,fZ=b(()=>{Qc=N(ue())});var GSe,pZ=b(()=>{GSe=N(ue())});var KSe,mZ=b(()=>{KSe=N(ue())});var gZ=b(()=>{fZ();cZ();pZ();hZ();mZ()});var bZ,vZ=b(()=>{Zt();Nr();g4();(function(i){i.statusItemDefaults={align:"left",rank:0,priority:0,isActive:()=>!0,activeStateChanged:void 0}})(bZ||(bZ={}))});var _Z,F6t,yZ=b(()=>{_Z=N(Ge()),F6t=new _Z.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 v4=b(()=>{gZ();vZ();yZ()});var xZ,gm,_4=b(()=>{Zt();xZ=N(Ge());Ad();(function(i){function e(o,a,l){return L.findFirstIndex(o,u=>he.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-${xZ.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})(gm||(gm={}))});var Bh,Ma,wZ=b(()=>{Bh=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);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.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})(Bh||(Bh={}));(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}
6275)(Ma||(Ma={}))});var en,qu,se,$v=b(()=>{Zt();wZ();en=class{constructor(e){this.type=e}get isConflatable(){return!1}conflate(e){return!1}},qu=class extends en{get isConflatable(){return!0}conflate(e){return!0}};(function(i){let e=null,t=(E=>w=>{let k=!1;return E.then(()=>!k&&w()),()=>{k=!0}})(Promise.resolve());function r(E,w){let k=h.get(E);if(!k||k.length===0){_(E,w);return}Js(Ko(k),z=>z?v(z,E,w):!0)&&_(E,w)}i.sendMessage=r;function n(E,w){if(!w.isConflatable){x(E,w);return}ys(d,O=>O.handler!==E||!O.msg||O.msg.type!==w.type||!O.msg.isConflatable?!1:O.msg.conflate(w))||x(E,w)}i.postMessage=n;function s(E,w){let k=h.get(E);k&&k.indexOf(w)!==-1||(k?k.push(w):h.set(E,[w]))}i.installMessageHook=s;function o(E,w){let k=h.get(E);if(!k)return;let O=k.indexOf(w);O!==-1&&(k[O]=null,C(k))}i.removeMessageHook=o;function a(E){let w=h.get(E);w&&w.length>0&&(L.fill(w,null),C(w));for(let k of d)k.handler===E&&(k.handler=null,k.msg=null)}i.clearData=a;function l(){g||e===null||(e(),e=null,g=!0,y(),g=!1)}i.flush=l;function u(){return p}i.getExceptionHandler=u;function c(E){let w=p;return p=E,w}i.setExceptionHandler=c;let d=new Bh,h=new WeakMap,f=new Set,p=E=>{console.error(E)},g=!1;function v(E,w,k){let O=!0;try{typeof E=="function"?O=E(w,k):O=E.messageHook(w,k)}catch(z){p(z)}return O}function _(E,w){try{E.processMessage(w)}catch(k){p(k)}}function x(E,w){d.addLast({handler:E,msg:w}),e===null&&(e=t(y))}function y(){if(e=null,d.isEmpty)return;let E={handler:null,msg:null};for(d.addLast(E);;){let w=d.removeFirst();if(w===E)return;w.handler&&w.msg&&r(w.handler,w.msg)}}function C(E){f.size===0&&t(S),f.add(E)}function S(){f.forEach(R),f.clear()}function R(E){L.removeAllWhere(E,I)}function I(E){return E===null}})(se||(se={}))});var Di,$r,SZ=b(()=>{Nr();Di=class{constructor(e){this._onScrollFrame=()=>{if(!this._scrollTarget)return;let{element:t,edge:r,distance:n}=this._scrollTarget,s=$r.SCROLL_EDGE_SIZE-n,o=Math.pow(s/$r.SCROLL_EDGE_SIZE,2),a=Math.max(1,Math.round(o*$r.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});$r.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}
6275if(this._dropAction==="none"){$r.dispatchDragLeave(this,this._currentTarget,null,e),this._finalize("none");return}let t=$r.dispatchDrop(this,this._currentTarget,e);this._finalize(t)}_evtKeyDown(e){e.preventDefault(),e.stopPropagation(),e.keyCode===27&&this.dispose()}_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=$r.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=$r.findElementBehindBackdrop(e,this.document);this._currentElement=s,s!==n&&s!==r&&$r.dispatchDragExit(this,r,s,e),s!==n&&s!==r&&(r=$r.dispatchDragEnter(this,s,r,e)),r!==t&&(this._currentTarget=r,$r.dispatchDragLeave(this,t,r,e));let o=$r.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=$r.validateAction(e,this.supportedActions),!(this._override&&this._dropAction===e))switch(e){case"none":this._dropAction=e,this._override=Di.overrideCursor("no-drop",this.document);break;case"copy":this._dropAction=e,this._override=Di.overrideCursor("copy",this.document);break;case"link":this._dropAction=e,this._override=Di.overrideCursor("alias",this.document);break;case"move":this._dropAction=e,this._override=Di.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 $r.overrideCursor(r,n)}i.overrideCursor=t})(Di||(Di={}));(function(i){i.SCROLL_EDGE_SIZE=20;function e(C,S){return d[C]&h[S]?C:"none"}i.validateAction=e;function t(C,S=document){if(C){if(r&&C==r.event)return r.element;i.cursorBackdrop.style.zIndex="-1000";let R=S.elementFromPoint(C.clientX,C.clientY);return i.cursorBackdrop.style.zIndex="",r={event:C,element:R},R}else{let R=i.cursorBackdrop.style.transform;if(n&&R===n.transform)return n.element;let I=i.cursorBackdrop.getBoundingClientRect();i.cursorBackdrop.style.zIndex="-1000";let E=S.elementFromPoint(I.left+I.width/2,I.top+I.height/2);return i.cursorBackdrop.style.zIndex="",n={transform:R,element:E},E}}i.findElementBehindBackdrop=t;let r=null,n=null;function s(C){let S=C.clientX,R=C.clientY,I=t(C);for(;I;I=I.parentElement){if(!I.hasAttribute("data-lm-dragscroll"))continue;let E=0,w=0;I===document.body&&(E=window.pageXOffset,w=window.pageYOffset);let k=I.getBoundingClientRect(),O=k.top+w,z=k.left+E,Y=z+k.width,pe=O+k.height;if(S<z||S>=Y||R<O||R>=pe)continue;let U=S-z+1,ne=R-O+1,le=Y-S,De=pe-R,Et=Math.min(U,ne,le,De);if(Et>i.SCROLL_EDGE_SIZE)continue;let Qe;switch(Et){case De:Qe="bottom";break;case ne:Qe="top";break;case le:Qe="right";break;case U:Qe="left";break;default:throw"unreachable"}
6275let ot=I.scrollWidth-I.clientWidth,Ve=I.scrollHeight-I.clientHeight,Yt;switch(Qe){case"top":Yt=Ve>0&&I.scrollTop>0;break;case"left":Yt=ot>0&&I.scrollLeft>0;break;case"right":Yt=ot>0&&I.scrollLeft<ot;break;case"bottom":Yt=Ve>0&&I.scrollTop<Ve;break;default:throw"unreachable"}if(Yt)return{element:I,edge:Qe,distance:Et}}return null}i.findScrollTarget=s;function o(C,S,R,I){if(!S)return null;let E=new Di.Event(I,{drag:C,related:R,type:"lm-dragenter"});if(!S.dispatchEvent(E))return S;let k=C.document instanceof Document?C.document.body:C.document.firstElementChild;return S===k?R:(E=new Di.Event(I,{drag:C,related:R,type:"lm-dragenter"}),k.dispatchEvent(E),k)}i.dispatchDragEnter=o;function a(C,S,R,I){if(!S)return;let E=new Di.Event(I,{drag:C,related:R,type:"lm-dragexit"});S.dispatchEvent(E)}i.dispatchDragExit=a;function l(C,S,R,I){if(!S)return;let E=new Di.Event(I,{drag:C,related:R,type:"lm-dragleave"});S.dispatchEvent(E)}i.dispatchDragLeave=l;function u(C,S,R){if(!S)return"none";let I=new Di.Event(R,{drag:C,related:null,type:"lm-dragover"});return S.dispatchEvent(I)?"none":I.dropAction}i.dispatchDragOver=u;function c(C,S,R){if(!S)return"none";let I=new Di.Event(R,{drag:C,related:null,type:"lm-drop"});return S.dispatchEvent(I)?"none":I.dropAction}i.dispatchDrop=c;let d={none:0,copy:1,link:2,move:4},h={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 f(C,S=document){let R=++y,I=S instanceof Document?S.body:S.firstElementChild;return i.cursorBackdrop.isConnected||(i.cursorBackdrop.style.transform="scale(0)",I.appendChild(i.cursorBackdrop),v(),document.addEventListener("pointermove",p,{capture:!0,passive:!0}),i.cursorBackdrop.addEventListener("scroll",g,{capture:!0,passive:!0})),i.cursorBackdrop.style.cursor=C,new Li(()=>{R===y&&i.cursorBackdrop.isConnected&&(document.removeEventListener("pointermove",p,!0),i.cursorBackdrop.removeEventListener("scroll",g,!0),I.removeChild(i.cursorBackdrop))})}i.overrideCursor=f;function p(C){i.cursorBackdrop&&(i.cursorBackdrop.style.transform=`translate(${C.clientX}px, ${C.clientY}px)`)}function g(C){if(!i.cursorBackdrop)return;let S=t();if(!S)return;let R=S.closest("[data-lm-dragscroll]");R&&(R.scrollTop+=i.cursorBackdrop.scrollTop-_,R.scrollLeft+=i.cursorBackdrop.scrollLeft-_,v())}function v(){i.cursorBackdrop.scrollTop=_,i.cursorBackdrop.scrollLeft=_}let _=500;function x(){let C=document.createElement("div");return C.classList.add("lm-cursor-backdrop"),C}let y=0;i.cursorBackdrop=x()})($r||($r={}))});var La,Lo,Un,bm,V,Pv,Po,td,zh,Hu,vm,_m,Gs,Da,y4,Fv,$a,x4,xn,w4,ym,S4,ji,ed,qh,C4,Hh,Ra,$o,tn,CZ,YSe,Ks,vs,I4,xi,id,ui,Nv,Oa,Hi,jh,Bv,IZ,EZ,E4,kZ,TZ,Fo=b(()=>{Zt();La=N(Ge());Ad();$v();md();tt();SZ();jf();el();Nr();Hf();Lo=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,h=0;for(let g=0;g<a;++g){let v=s[g],_=v.minSize,x=v.maxSize,y=v.sizeHint;v.done=!1,v.size=Math.max(_,Math.min(y,x)),c+=v.size,l+=_,u+=x,v.stretch>0&&(d+=v.stretch,h++)}if(o===c)return 0;if(o<=l){for(let g=0;g<a;++g){let v=s[g];v.size=v.minSize}return o-l}if(o>=u){for(let g=0;g<a;++g){let v=s[g];v.size=v.maxSize}return o-u}let f=.01,p=a;if(o<c){let g=c-o;for(;h>0&&g>f;){let v=g,_=d;for(let x=0;x<a;++x){let y=s[x];if(y.done||y.stretch===0)continue;let C=y.stretch*v/_;y.size-C<=y.minSize?(g-=y.size-y.minSize,d-=y.stretch,y.size=y.minSize,y.done=!0,p--,h--):(g-=C,y.size-=C)}}for(;p>0&&g>f;){let v=g/p;for(let _=0;_<a;++_){let x=s[_];x.done||(x.size-v<=x.minSize?(g-=x.size-x.minSize,x.size=x.minSize,x.done=!0,p--):(g-=v,x.size-=v))}}}else{let g=o-c;for(;h>0&&g>f;){let v=g,_=d;for(let x=0;x<a;++x){let y=s[x];if(y.done||y.stretch===0)continue;let C=y.stretch*v/_;y.size+C>=y.maxSize?(g-=y.maxSize-y.size,d-=y.stretch,y.size=y.maxSize,y.done=!0,p--,h--):(g-=C,y.size+=C)}}for(;p>0&&g>f;){let v=g/p;for(let _=0;_<a;++_){let x=s[_];x.done||(x.size+v>=x.maxSize?(g-=x.maxSize-x.size,x.size=x.maxSize,x.done=!0,p--):(g-=v,x.size+=v))}}}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 h=0;h<=o;++h){let f=s[h];l+=f.maxSize-f.size}let u=0;for(let h=o+1,f=s.length;h<f;++h){let p=s[h];u+=p.size-p.minSize}a=Math.min(a,l,u);let c=a;for(let h=o;h>=0&&c>0;--h){let f=s[h],p=f.maxSize-f.size;p>=c?(f.sizeHint=f.size+c,c=0):(f.sizeHint=f.size+p,c-=p)}let d=a;for(let h=o+1,f=s.length;h<f&&d>0;++h){let p=s[h],g=p.size-p.minSize;g>=d?(p.sizeHint=p.size-d,d=0):(p.sizeHint=p.size-g,d-=g)}}function n(s,o,a){let l=0;for(let h=o+1,f=s.length;h<f;++h){let p=s[h];l+=p.maxSize-p.size}let u=0;for(let h=0;h<=o;++h){let f=s[h];u+=f.size-f.minSize}a=Math.min(a,l,u);let c=a;for(let h=o+1,f=s.length;h<f&&c>0;++h){let p=s[h],g=p.maxSize-p.size;g>=c?(p.sizeHint=p.size+c,c=0):(p.sizeHint=p.size+g,c-=g)}let d=a;for(let h=o;h>=0&&d>0;--h){let f=s[h],p=f.size-f.minSize;p>=d?(f.sizeHint=f.size-d,d=0):(f.sizeHint=f.size-p,d-=p)}}})(Un||(Un={}));bm=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 G(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,G.clearData(this))}},V=class{constructor(e={}){this._flags=0,this._layout=null,this._parent=null,this._disposed=new G(this),this._hiddenMode=V.HiddenMode.Display,this.node=Pv.createNode(e),this.addClass("lm-Widget")}dispose(){this.isDisposed||(this.setFlag(V.Flag.IsDisposed),this._disposed.emit
6275(void 0),this.parent?this.parent=null:this.isAttached&&V.detach(this),this._layout&&(this._layout.dispose(),this._layout=null),this.title.dispose(),G.clearData(this),se.clearData(this),Ye.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(){let e=this;do{if(e.isHidden||!e.isAttached)return!1;e=e.parent}while(e!=null);return!0}get title(){return Pv.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);se.sendMessage(this._parent,t)}if(this._parent=e,this._parent&&!this._parent.isDisposed){let t=new V.ChildMessage("child-added",this);se.sendMessage(this._parent,t)}this.isDisposed||se.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(){se.postMessage(this,V.Msg.UpdateRequest)}fit(){se.postMessage(this,V.Msg.FitRequest)}activate(){se.postMessage(this,V.Msg.ActivateRequest)}close(){se.sendMessage(this,V.Msg.CloseRequest)}show(){if(this.testFlag(V.Flag.IsHidden)&&(this.isAttached&&(!this.parent||this.parent.isVisible)&&se.sendMessage(this,V.Msg.BeforeShow),this.clearFlag(V.Flag.IsHidden),this._toggleHidden(!1),this.isAttached&&(!this.parent||this.parent.isVisible)&&se.sendMessage(this,V.Msg.AfterShow),this.parent)){let e=new V.ChildMessage("child-shown",this);se.sendMessage(this.parent,e)}}hide(){if(!this.testFlag(V.Flag.IsHidden)&&(this.isAttached&&(!this.parent||this.parent.isVisible)&&se.sendMessage(this,V.Msg.BeforeHide),this.setFlag(V.Flag.IsHidden),this._toggleHidden(!0),this.isAttached&&(!this.parent||this.parent.isVisible)&&se.sendMessage(this,V.Msg.AfterHide),this.parent)){let e=new V.ChildMessage("child-hidden",this);se.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;
6275case"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 en("before-show"),s.AfterShow=new en("after-show"),s.BeforeHide=new en("before-hide"),s.AfterHide=new en("after-hide"),s.BeforeAttach=new en("before-attach"),s.AfterAttach=new en("after-attach"),s.BeforeDetach=new en("before-detach"),s.AfterDetach=new en("after-detach"),s.ParentChanged=new en("parent-changed"),s.UpdateRequest=new qu("update-request"),s.FitRequest=new qu("fit-request"),s.ActivateRequest=new qu("activate-request"),s.CloseRequest=new qu("close-request")}(i.Msg||(i.Msg={}));class e extends en{constructor(o,a){super(o),this.child=a}}i.ChildMessage=e;class t extends en{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.");se.sendMessage(s,i.Msg.BeforeAttach),o.insertBefore(s.node,a),se.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.");se.sendMessage(s,i.Msg.BeforeDetach),s.node.parentNode.removeChild(s.node),se.sendMessage(s,i.Msg.AfterDetach)}i.detach=n})(V||(V={}));(function(i){i.titleProperty=new Ye({name:"title",create:t=>new bm({owner:t})});function e(t){return t.node||document.createElement(t.tag||"div")}i.createNode=e})(Pv||(Pv={}));Po=class{constructor(e={}){this._disposed=!1,this._parent=null,this._fitPolicy=e.fitPolicy||"set-min-size"}dispose(){this._parent=null,this._disposed=!0,G.clearData(this),Ye.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)se.sendMessage(t,V.ResizeMessage.UnknownSize)}onUpdateRequest(e){for(let t of this)se.sendMessage(t,V.ResizeMessage.UnknownSize)}onBeforeAttach(e){for(let t of this)se.sendMessage(t,e)}onAfterAttach(e){for(let t of this)se.sendMessage(t,e)}onBeforeDetach(e){for(let t of this)se.sendMessage(t,e)}onAfterDetach(e){for(let t of this)se.sendMessage(t,e)}onBeforeShow(e){for(let t of this)t.isHidden||se.sendMessage(t,e)}onAfterShow(e){for(let t of this)t.isHidden||se.sendMessage(t,e)}onBeforeHide(e){for(let t of this)t.isHidden||se.sendMessage(t,e)}onAfterHide(e){for(let t of this)t.isHidden||se.sendMessage(t,e)}onChildRemoved(e){this.removeWidget(e.child)}onFitRequest(e){}onChildShown(e){}onChildHidden(e){}};(function(i){function e(s){return zh.horizontalAlignmentProperty.get(s)}i.getHorizontalAlignment=e;function t(s,o){zh.horizontalAlignmentProperty.set(s,o)}i.setHorizontalAlignment=t;function r(s){return zh.verticalAlignmentProperty.get(s)}i.getVerticalAlignment=r;function n(s,o){zh.verticalAlignmentProperty.set(s,o)}i.setVerticalAlignment=n})(Po||(Po={}));td=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=he.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(Po.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(Po.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);se.sendMessage(this.widget,u)}}};(function(i){i.horizontalAlignmentProperty=new Ye({name:"horizontalAlignment",create:()=>"center",changed:e}),i.verticalAlignmentProperty=new Ye({name:"verticalAlignment",create:()=>"top",changed:e});
6275function e(t){t.parent&&t.parent.layout&&t.parent.update()}})(zh||(zh={}));Hu=class extends Po{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){L.insert(this._widgets,n,t),this.parent&&this.attachWidget(n,t);return}n===this._widgets.length&&n--,r!==n&&(L.move(this._widgets,r,n),this.parent&&this.moveWidget(r,n,t))}removeWidget(e){this.removeWidgetAt(this._widgets.indexOf(e))}removeWidgetAt(e){let t=L.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&&se.sendMessage(t,V.Msg.BeforeAttach),this.parent.node.insertBefore(t.node,r),this.parent.isAttached&&se.sendMessage(t,V.Msg.AfterAttach)}moveWidget(e,t,r){this.parent.isAttached&&se.sendMessage(r,V.Msg.BeforeDetach),this.parent.node.removeChild(r.node),this.parent.isAttached&&se.sendMessage(r,V.Msg.AfterDetach);let n=this.parent.node.children[t];this.parent.isAttached&&se.sendMessage(r,V.Msg.BeforeAttach),this.parent.node.insertBefore(r.node,n),this.parent.isAttached&&se.sendMessage(r,V.Msg.AfterAttach)}detachWidget(e,t){this.parent.isAttached&&se.sendMessage(t,V.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&se.sendMessage(t,V.Msg.AfterDetach)}};(function(i){function e(t){return Math.max(0,Math.floor(t))}i.clampDimension=e})(vm||(vm={}));_m=vm,Gs=class extends Hu{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=vm.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=vm.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 Da.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=Da.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);Un.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 td(t),n=Da.createHandle(this.renderer),s=Da.averageSize(this._sizers),o=Da.createSizer(s);L.insert(this._items,e,r),L.insert(this._sizers,e,o),L.insert(this._handles,e,n),this.parent.isAttached&&se.sendMessage(t,V.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.node.appendChild(n),this.parent.isAttached&&se.sendMessage(t,V.Msg.AfterAttach),this.parent.fit()}moveWidget(e,t,r){L.move(this._items,e,t),L.move(this._sizers,e,t),L.move(this._handles,e,t),this.parent.fit()}detachWidget(e,t){let r=L.removeAt(this._items,e),n=L.removeAt(this._handles,e);L.removeAt(this._sizers,e),this.parent.isAttached&&se.sendMessage(t,V.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.node.removeChild(n),this.parent.isAttached&&se.sendMessage(t,V.Msg.AfterDetach),r.dispose(),this.parent.fit()}
6275onBeforeShow(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=Gs.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=he.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&&se.sendMessage(this.parent.parent,V.Msg.FitRequest),this._dirty&&se.sendMessage(this.parent,V.Msg.UpdateRequest)}_update(e,t){this._dirty=!1;let r=0;for(let d=0,h=this._items.length;d<h;++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=he.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 f of this._sizers)f.sizeHint*=d;this._hasNormedSizes=!1}let h=Un.calc(this._sizers,d);if(h>0)switch(this._alignment){case"start":break;case"center":l=0,u=h/2;break;case"end":l=0,u=h;break;case"justify":l=h/r,u=0;break;default:throw"unreachable"}}for(let d=0,h=this._items.length;d<h;++d){let p=this._items[d].isHidden?0:this._sizers[d].size+l;this.updateItemPosition(d,c,c?s+u:s,c?n:n+u,a,o,p);let g=this.widgetOffset+(this._handles[d].classList.contains("lm-mod-hidden")?0:this._spacing);c?s+=p+g:n+=p+g}}};(function(i){function e(r){return Da.stretchProperty.get(r)}i.getStretch=e;function t(r,n){Da.stretchProperty.set(r,n)}i.setStretch=t})(Gs||(Gs={}));(function(i){i.stretchProperty=new Ye({name:"stretch",create:()=>0,coerce:(o,a)=>Math.max(0,Math.floor(a)),changed:s});function e(o){let a=new Lo;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 Gs&&o.parent.fit()}})(Da||(Da={}));y4=class extends Gs{constructor(e){super({...e,orientation:e.orientation||"vertical"}),this._titles=[],this.titleSpace=e.titleSpace||22}get titleSpace(){return this.widgetOffset}set titleSpace(e){e=_m.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=Fv.createTitle(this.renderer,t.title,n);this._titles[e]=s,this.parent.node.replaceChild(s,r)}insertWidget(e,t){t.id||(t.id=`id-${La.UUID.uuid4()}`),super.insertWidget(e,t)}attachWidget(e,t){let r=Fv.createTitle(this.renderer,t.title);L.insert(this._titles,e,r),this.parent.node.appendChild(r),t.node.setAttribute("role","regi
6275on"),t.node.setAttribute("aria-labelledby",r.id),super.attachWidget(e,t)}moveWidget(e,t,r){L.move(this._titles,e,t),super.moveWidget(e,t,r)}detachWidget(e,t){let r=L.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})(Fv||(Fv={}));$a=class extends V{constructor(e={}){super(),this.addClass("lm-Panel"),this.layout=x4.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 Hu}i.createLayout=e})(x4||(x4={}));xn=class extends $a{constructor(e={}){super({layout:w4.createLayout(e)}),this._handleMoved=new G(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=L.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=Di.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 Gs.getStretch(n)}i.getStretch=t;function r(n,s){Gs.setStretch(n,s)}i.setStretch=r})(xn||(xn={}));(function(i){function e(t){return t.layout||new Gs({renderer:t.renderer||xn.defaultRenderer,orientation:t.orientation,alignment:t.alignment,spacing:t.spacing})}i.createLayout=e})(w4||(w4={}));ym=class extends xn{constructor(e={}){super({...e,layout:S4.createLayout(e)}),this._widgetSizesCache=new WeakMap,this._expansionToggled=new G(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=L.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,h)=>{h!==e&&(l[h]-=s[h]/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=L.findFirstIndex(this.titles,n=>n.contains(t));r>=0&&(e.preventDefault(),e.stopPropagation(),this._toggleExpansion(r))}}
6275_eventKeyDown(e){if(e.defaultPrevented)return;let t=e.target,r=!1;if(t){let n=L.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 xn.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})(ym||(ym={}));(function(i){function e(t){return t.layout||new y4({renderer:t.renderer||ym.defaultRenderer,orientation:t.orientation,alignment:t.alignment,spacing:t.spacing,titleSpace:t.titleSpace})}i.createLayout=e})(S4||(S4={}));ji=class extends Hu{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=_m.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=_m.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){L.insert(this._items,e,new td(t)),L.insert(this._sizers,e,new Lo),this.parent.isAttached&&se.sendMessage(t,V.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.isAttached&&se.sendMessage(t,V.Msg.AfterAttach),this.parent.fit()}moveWidget(e,t,r){L.move(this._items,e,t),L.move(this._sizers,e,t),this.parent.update()}detachWidget(e,t){let r=L.removeAt(this._items,e);L.removeAt(this._sizers,e),this.parent.isAttached&&se.sendMessage(t,V.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&se.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=ed.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}
6275u.fit(),c.sizeHint=ji.getSizeBasis(u.widget),c.stretch=ji.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=he.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&&se.sendMessage(this.parent.parent,V.Msg.FitRequest),this._dirty&&se.sendMessage(this.parent,V.Msg.UpdateRequest)}_update(e,t){this._dirty=!1;let r=0;for(let d=0,h=this._items.length;d<h;++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=he.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=Un.calc(this._sizers,Math.max(0,o-this._fixed));break;case"top-to-bottom":l=Un.calc(this._sizers,Math.max(0,a-this._fixed));break;case"right-to-left":l=Un.calc(this._sizers,Math.max(0,o-this._fixed)),s+=o;break;case"bottom-to-top":l=Un.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,h=this._items.length;d<h;++d){let f=this._items[d];if(f.isHidden)continue;let p=this._sizers[d].size;switch(this._direction){case"left-to-right":f.update(s+c,n,p+u,a),s+=p+u+this._spacing;break;case"top-to-bottom":f.update(s,n+c,o,p+u),n+=p+u+this._spacing;break;case"right-to-left":f.update(s-c-p-u,n,p+u,a),s-=p+u+this._spacing;break;case"bottom-to-top":f.update(s,n-c-p-u,o,p+u),n-=p+u+this._spacing;break;default:throw"unreachable"}}}};(function(i){function e(s){return ed.stretchProperty.get(s)}i.getStretch=e;function t(s,o){ed.stretchProperty.set(s,o)}i.setStretch=t;function r(s){return ed.sizeBasisProperty.get(s)}i.getSizeBasis=r;function n(s,o){ed.sizeBasisProperty.set(s,o)}i.setSizeBasis=n})(ji||(ji={}));(function(i){i.stretchProperty=new Ye({name:"stretch",create:()=>0,coerce:(n,s)=>Math.max(0,Math.floor(s)),changed:r}),i.sizeBasisProperty=new Ye({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 ji&&n.parent.fit()}})(ed||(ed={}));qh=class extends $a{constructor(e={}){super({layout:C4.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 ji.getStretch(s)}i.getStretch=e;function t(s,o){ji.setStretch(s,o)}i.setStretch=t;function r(s){return ji.getSizeBasis(s)}i.getSizeBasis=r;function n(s,o){ji.setSizeBasis(s,o)}i.setSizeBasis=n})(qh||(qh={}));(function(i){function e(t){return t.layout||new ji(t)}i.createLayout=e})(C4||(C4={}));Hh=class extends V{constructor(e){super({node:Ra.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||Hh.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=Ra.createItem(this.commands,e);return this._items.push(t),this.refresh(),t}addItems(e){let t=e.map(r=>Ra.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){L.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)}
6275onActivateRequest(e){if(this.isAttached){let t=this.inputNode;t.focus(),t.select()}}onUpdateRequest(e){if(!this.isVisible){Pt.render(null,this.contentNode);return}let t=this.inputNode.value,r=this.contentNode,n=this._results;if(n||(n=this._results=Ra.search(this._items,t),this._activeIndex=t?L.findFirstIndex(n,Ra.canActivate):-1),!t&&n.length===0){Pt.render(null,r);return}if(t&&n.length===0){let l=this.renderer.renderEmptyMessage({query:t});Pt.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,h=c.category;a[l]=s.renderHeader({category:h,indices:d})}else{let d=c.item,h=c.indices,f=l===o;a[l]=s.renderItem({item:d,indices:h,active:f})}}if(Pt.render(a,r),o<0||o>=n.length)r.scrollTop=0;else{let l=r.children[o];he.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=L.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=L.findFirstIndex(this._results,Ra.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=L.findLastIndex(this._results,Ra.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 re.li({className:"lm-CommandPalette-header"},n)}renderItem(r){let n=this.createItemClass(r),s=this.createItemDataset(r);return r.item.isToggleable?re.li({className:n,dataset:s,role:"menuitemcheckbox","aria-checked":`${r.item.isToggled}`},this.renderItemIcon(r),this.renderItemContent(r),this.renderItemShortcut(r)):re.li({className:n,dataset:s,role:"menuitem"},this.renderItemIcon(r),this.renderItemContent(r),this.renderItemShortcut(r))}renderEmptyMessage(r){let n=this.formatEmptyMessage(r);return re.li({className:"lm-CommandPalette-emptyMessage"},n)}renderItemIcon(r){let n=this.createIconClass(r);return re.div({className:n},r.item.icon,r.item.iconLabel)}renderItemContent(r){return re.div({className:"lm-CommandPalette-itemContent"},this.renderItemLabel(r),this.renderItemCaption(r))}renderItemLabel(r){let n=this.formatItemLabel(r);return re.div({className:"lm-CommandPalette-itemLabel"},n)}renderItemCaption(r){let n=this.formatItemCaption(r);return re.div({className:"lm-CommandPalette-itemCaption"},n)}renderItemShortcut(r){let n=this.formatItemShortcut(r);return re.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:gr.highlight(r.category,r.indices,re.mark)}formatEmptyMessage(r){return`No commands found that match '${r.query}'`}formatItemShortcut(r){let n=r.item.keyBinding;return n?ti.formatKeystroke(n.keys):null}formatItemLabel(r){return!r.indices||r.indices.length===0?r.item.label:gr.highlight(r.item.label,r.indices,re.mark)}formatItemCaption(r){return r.item.caption}}i.Renderer=e,i.defaultRenderer=new e})(Hh||(Hh={}));(function(i){function e(){let h=document.createElement("div"),f=document.createElement("div"),p=document.createElement("div"),g=document.createElement("input"),v=document.createElement("ul"),_=document.createElement("button");return f.className="lm-CommandPalette-search",p.className="lm-CommandPalette-wrapper",g.className="lm-CommandPalette-input",_.className="lm-close-icon",v.className="lm-CommandPalette-content",v.setAttribute("role","menu"),g.spellcheck=!1,p.appendChild(g),p.appendChild(_),f.appendChild(p),h.appendChild(f),h.appendChild(v),h}i.createNode=e;function t(h,f){return new d(h,f)}i.createItem=t;function r(h,f){let p=a(h,f);return p.sort(u),c(p)}i.search=r;function n(h){return h.type==="item"&&h.item.isEnabled}i.canActivate=n;function s(h){return h.trim().replace(/\s+/g," ")}function o(h){return h.replace(/\s+/g,"").toLowerCase()}function a(h,f){f=o(f);let p=[];for(let g=0,v=h.length;g<v;++g){let _=h[g];if(!_.isVisible)continue;if(!f){p.push({matchType:3,categoryIndices:null,labelIndices:null,
6275score:0,item:_});continue}let x=l(_,f);x&&(_.isEnabled||(x.score+=1e3),p.push(x))}return p}function l(h,f){let p=h.category.toLowerCase(),g=h.label.toLowerCase(),v=`${p} ${g}`,_=1/0,x=null,y=/\b\w/g;for(;;){let E=y.exec(v);if(!E)break;let w=gr.matchSumOfDeltas(v,f,E.index);if(!w)break;w.score<=_&&(_=w.score,x=w.indices)}if(!x||_===1/0)return null;let C=p.length+1,S=L.lowerBound(x,C,(E,w)=>E-w),R=x.slice(0,S),I=x.slice(S);for(let E=0,w=I.length;E<w;++E)I[E]-=C;return R.length===0?{matchType:0,categoryIndices:null,labelIndices:I,score:_,item:h}:I.length===0?{matchType:1,categoryIndices:R,labelIndices:null,score:_,item:h}:{matchType:2,categoryIndices:R,labelIndices:I,score:_,item:h}}function u(h,f){let p=h.matchType-f.matchType;if(p!==0)return p;let g=h.score-f.score;if(g!==0)return g;let v=0,_=0;switch(h.matchType){case 0:v=h.labelIndices[0],_=f.labelIndices[0];break;case 1:case 2:v=h.categoryIndices[0],_=f.categoryIndices[0];break}if(v!==_)return v-_;let x=h.item.category.localeCompare(f.item.category);if(x!==0)return x;let y=h.item.rank,C=f.item.rank;return y!==C?y<C?-1:1:h.item.label.localeCompare(f.item.label)}function c(h){let f=[];for(let p=0,g=h.length;p<g;++p){let{item:v,categoryIndices:_,labelIndices:x}=h[p],y=v.category;(p===0||y!==h[p-1].item.category)&&f.push({type:"header",category:y,indices:_}),f.push({type:"item",item:v,indices:x})}return f}class d{constructor(f,p){this._commands=f,this.category=s(p.category),this.command=p.command,this.args=p.args||La.JSONExt.emptyObject,this.rank=p.rank!==void 0?p.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:f,args:p}=this;return L.findLastValue(this._commands.keyBindings,g=>g.command===f&&La.JSONExt.deepEqual(g.args,p))||null}}})(Ra||(Ra={}));$o=class extends V{constructor(e){super({node:tn.createNode()}),this._childIndex=-1,this._activeIndex=-1,this._openTimerID=0,this._closeTimerID=0,this._items=[],this._childMenu=null,this._parentMenu=null,this._aboutToClose=new G(this),this._menuRequested=new G(this),this.addClass("lm-Menu"),this.setFlag(V.Flag.DisallowLayout),this.commands=e.commands,this.renderer=e.renderer||$o.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&&!tn.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=L.findFirstIndex(this._items,tn.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=L.findLastIndex(this._items,tn.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=tn.createItem(this,t);return L.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,L.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,o;if(this.isAttached)return;let a=r.forceX||!1,l=r.forceY||!1,u=(n=r.host)!==null&&n!==void 0?n:null,c=(s=r.ref)!==null&&s!==void 0?s:null,d=(o=r.horizontalAlignment)!==null&&o!==void 0?o:document.documentElement.dir==="rtl"?"right":"left";tn.openRootMenu(this,e,t,a,l,d,u,c),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,
6275!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=tn.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}})}Pt.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=Qn().keyForKeydownEvent(e);if(!r)return;let n=this._activeIndex+1,s=tn.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=L.findFirstIndex(this.contentNode.children,n=>he.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(he.hitTest(this._childMenu.node,t,r)){this._cancelCloseTimer();return}this.activeIndex=-1,this._startCloseTimer()}_evtMouseDown(e){this._parentMenu||(tn.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;$o.saveWindowData(),this._closeChildMenu(),this._childMenu=r,this._childIndex=this._activeIndex,r._parentMenu=this,se.sendMessage(this,V.Msg.UpdateRequest);let n=this.contentNode.children[this._activeIndex];tn.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()},tn.TIMER_DELAY))}_startCloseTimer(){this._closeTimerID===0&&(this._closeTimerID=window.setTimeout(()=>{this._closeTimerID=0,this._closeChildMenu()},tn.TIMER_DELAY))}_cancelOpenTimer(){this._openTimerID!==0&&(clearTimeout(this._openTimerID),this._openTimerID=0)}_cancelCloseTimer(){this._closeTimerID!==0&&(clearTimeout(this._closeTimerID),this._closeTimerID=0)}static saveWindowData(){tn.saveWindowData()}};(function(i){class e{renderItem(r){let n=this.createItemClass(r),s=this.createItemDataset(r),o=this.createItemARIA(r);return re.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 re.div({className:n},r.item.icon,r.item.iconLabel)}renderLabel(r){let n=this.formatLabel(r);return re.div({className:"lm-Menu-itemLabel"},n)}renderShortcut(r){let n=this.formatShortcut(r);return re.div({className:"lm-Menu-itemShortcut"},n)}renderSubmenu(r){return re.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}
6275createItemDataset(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"),r.item.isToggled?(n.role="menuitemcheckbox",n["aria-checked"]="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=re.span({className:"lm-Menu-itemMnemonic"},l);return[o,u,a]}formatShortcut(r){let n=r.item.keyBinding;return n?ti.formatKeystroke(n.keys):null}}i.Renderer=e,i.defaultRenderer=new e})($o||($o={}));(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 g=document.createElement("div"),v=document.createElement("ul");return v.className="lm-Menu-content",g.appendChild(v),v.setAttribute("role","menu"),g.tabIndex=0,g}i.createNode=s;function o(g){return g.type!=="separator"&&g.isEnabled&&g.isVisible}i.canActivate=o;function a(g,v){return new p(g.commands,v)}i.createItem=a;function l(g,v,_){for(let x=g;x;x=x.childMenu)if(he.hitTest(x.node,v,_))return!0;return!1}i.hitTestMenus=l;function u(g){let v=new Array(g.length);L.fill(v,!1);let _=0,x=g.length;for(;_<x;++_){let S=g[_];if(S.isVisible){if(S.type!=="separator")break;v[_]=!0}}let y=x-1;for(;y>=0;--y){let S=g[y];if(S.isVisible){if(S.type!=="separator")break;v[y]=!0}}let C=!1;for(;++_<y;){let S=g[_];S.isVisible&&(S.type!=="separator"?C=!1:C?v[_]=!0:C=!0)}return v}i.computeCollapsed=u;function c(){return{pageXOffset:window.pageXOffset,pageYOffset:window.pageYOffset,clientWidth:document.documentElement.clientWidth,clientHeight:document.documentElement.clientHeight}}function d(g,v,_,x,y,C,S,R){let I=r(),E=I.pageXOffset,w=I.pageYOffset,k=I.clientWidth,O=I.clientHeight;se.sendMessage(g,V.Msg.UpdateRequest);let z=O-(y?_:0),Y=g.node,pe=Y.style;pe.opacity="0",pe.maxHeight=`${z}px`,V.attach(g,S||document.body,R);let{width:U,height:ne}=Y.getBoundingClientRect();C==="right"&&(v-=U),!x&&v+U>E+k&&(v=E+k-U),!y&&_+ne>w+O&&(_>w+O?_=w+O-ne:_=_-ne),pe.transform=`translate(${Math.max(0,v)}px, ${Math.max(0,_)}px`,pe.opacity="1"}i.openRootMenu=d;function h(g,v){let _=r(),x=_.pageXOffset,y=_.pageYOffset,C=_.clientWidth,S=_.clientHeight;se.sendMessage(g,V.Msg.UpdateRequest);let R=S,I=g.node,E=I.style;E.opacity="0",E.maxHeight=`${R}px`,V.attach(g,document.body);let{width:w,height:k}=I.getBoundingClientRect(),O=he.boxSizing(g.node),z=v.getBoundingClientRect(),Y=z.right-i.SUB
6275MENU_OVERLAP;Y+w>x+C&&(Y=z.left+i.SUBMENU_OVERLAP-w);let pe=z.top-O.borderTop-O.paddingTop;pe+k>y+S&&(pe=z.bottom+O.borderBottom+O.paddingBottom-k),E.transform=`translate(${Math.max(0,Y)}px, ${Math.max(0,pe)}px`,E.opacity="1"}i.openSubmenu=h;function f(g,v,_){let x=-1,y=-1,C=!1,S=v.toUpperCase();for(let R=0,I=g.length;R<I;++R){let E=(R+_)%I,w=g[E];if(!o(w))continue;let k=w.label;if(k.length===0)continue;let O=w.mnemonic;if(O>=0&&O<k.length){k[O].toUpperCase()===S&&(x===-1?x=E:C=!0);continue}y===-1&&k[0].toUpperCase()===S&&(y=E)}return{index:x,multiple:C,auto:y}}i.findMnemonic=f;class p{constructor(v,_){this._commands=v,this.type=_.type||"command",this.command=_.command||"",this.args=_.args||La.JSONExt.emptyObject,this.submenu=_.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}get keyBinding(){if(this.type==="command"){let{command:v,args:_}=this;return L.findLastValue(this._commands.keyBindings,x=>x.command===v&&La.JSONExt.deepEqual(x.args,_))||null}return null}}})(tn||(tn={}));(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 h=[],f=o.slice();for(;c!==null;){let p=[];for(let g=0,v=f.length;g<v;++g){let _=f[g];_&&pi.matches(c,_.selector)&&(p.push(_),f[g]=null)}if(p.length!==0&&(l&&p.sort(u?s:n),h.push(...p)),c===d)break;c=c.parentElement}return l||h.sort(u?s:n),h}i.matchItems=t;function r(o){if(o.indexOf(",")!==-1)throw new Error(`Selector cannot contain commas: ${o}`);if(!pi.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=pi.calculateSpecificity(o.selector),u=pi.calculateSpecificity(a.selector);return l!==u?u-l:n(o,a)}})(CZ||(CZ={}));YSe=["ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Home","End"],Ks=class extends V{constructor(e={}){super({node:vs.createNode()}),this._currentIndex=-1,this._titles=[],this._titlesEditable=!1,this._previousTitle=null,this._dragData=null,this._addButtonEnabled=!1,this._tabMoved=new G(this),this._currentChanged=new G(this),this._addRequested=new G(this),this._tabCloseRequested=new G(this),this._tabDetachRequested=new G(this),this._tabActivateRequested=new G(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||Ks.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;
6275let 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=vs.asTitle(t),n=this._titles.indexOf(r),s=Math.max(0,Math.min(e,this._titles.length));return n===-1?(L.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||(L.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=L.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,currentTitle: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,h=d?u:u-l-1,f=a===l?0:-1;o[l]=n.renderTab({title:c,current:d,zIndex:h,tabIndex:f})}Pt.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=L.findFirstIndex(t,o=>he.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;
6275if(!(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=L.findFirstIndex(this.contentNode.children,a=>a.contains(s));o>=0&&(e.preventDefault(),e.stopPropagation(),this.currentIndex=o)}}else if(YSe.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=L.findFirstIndex(r,o=>he.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,!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&&!vs.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=vs.snapTabLayout(r,this._orientation),t.contentRect=this.contentNode.getBoundingClientRect(),t.override=Di.overrideCursor("default"),t.tab.classList.add("lm-mod-dragging"),this.addClass("lm-mod-dragging"),t.dragActive=!0}if(!t.detachRequested&&vs.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}vs.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=L.findFirstIndex(s,u=>he.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;vs.finalizeTabPosition(t,this._orientation),t.tab.classList.remove("lm-mod-dragging");let r=vs.parseTransitionDuration(t.tab);setTimeout(()=>{if(t.dragAborted)return;this._dragData=null,vs.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||(L.move(this._titles,n,s),this._adjustCurrentForMove(n,s),this._tabMoved.emit({fromIndex:n,toIndex:s,title:this._titles[s]}),se.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,
6275!0),this.document.removeEventListener("keydown",this,!0),this.document.removeEventListener("contextmenu",this,!0),e.dragAborted=!0,e.dragActive&&(vs.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,currentTitle: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?re.li({id:o,key:s,className:l,title:n,style:a,dataset:u,...c},this.renderIcon(r),this.renderLabel(r),this.renderCloseIcon(r)):re.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 re.div({className:s},n.icon,n.iconLabel)}renderLabel(r){return re.div({className:"lm-TabBar-tabLabel"},r.title.label)}renderCloseIcon(r){return re.div({className:"lm-TabBar-tabCloseIcon"})}
6275createTabKey(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"})(Ks||(Ks={}));(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 h=document.createElement("div");return h.className="lm-TabBar-addButton lm-mod-hidden",h.setAttribute("tabindex","-1"),h.setAttribute("role","button"),c.appendChild(h),c}i.createNode=e;function t(c){return c instanceof bm?c:new bm(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 h=new Array(c.length);for(let f=0,p=c.length;f<p;++f){let g=c[f],v=window.getComputedStyle(g);d==="horizontal"?h[f]={pos:g.offsetLeft,size:g.offsetWidth,margin:parseFloat(v.marginLeft)||0}:h[f]={pos:g.offsetTop,size:g.offsetHeight,margin:parseFloat(v.marginTop)||0}}return h}i.snapTabLayout=n;function s(c,d){let h=Math.abs(d.clientX-c.pressX),f=Math.abs(d.clientY-c.pressY);return h>=i.DRAG_THRESHOLD||f>=i.DRAG_THRESHOLD}i.dragExceeded=s;function o(c,d){let h=c.contentRect;return d.clientX<h.left-i.DETACH_THRESHOLD||d.clientX>=h.right+i.DETACH_THRESHOLD||d.clientY<h.top-i.DETACH_THRESHOLD||d.clientY>=h.bottom+i.DETACH_THRESHOLD}i.detachExceeded=o;function a(c,d,h,f){let p,g,v,_;f==="horizontal"?(p=d.pressX,g=h.clientX-d.contentRect.left,v=h.clientX,_=d.contentRect.width):(p=d.pressY,g=h.clientY-d.contentRect.top,v=h.clientY,_=d.contentRect.height);let x=d.index,y=g-d.tabPressPos,C=y+d.tabSize;for(let S=0,R=c.length;S<R;++S){let I,E=d.tabLayout[S],w=E.pos+(E.size>>1);if(S<d.index&&y<w)I=`${d.tabSize+d.tabLayout[S+1].margin}px`,x=Math.min(x,S);else if(S>d.index&&C>w)I=`${-d.tabSize-E.margin}px`,x=Math.max(x,S);else if(S===d.index){let k=v-p,O=_-(d.tabPos+d.tabSize);I=`${Math.max(-d.tabPos,Math.min(k,O))}px`}else I="";f==="horizontal"?c[S].style.left=I:c[S].style.top=I}d.targetIndex=x}i.layoutTabs=a;function l(c,d){let h;d==="horizontal"?h=c.contentRect.width:h=c.contentRect.height;let f;if(c.targetIndex===c.index)f=0;else if(c.targetIndex>c.index){let v=c.tabLayout[c.targetIndex];f=v.pos+v.size-c.tabSize-c.tabPos}else f=c.tabLayout[c.targetIndex].pos-c.tabPos;let p=h-(c.tabPos+c.tabSize),g=Math.max(-c.tabPos,Math.min(f,p));d==="horizontal"?c.tab.style.left=`${g}px`:c.tab.style.top=`${g}px`}i.finalizeTabPosition=l;function u(c,d){for(let h of c)d==="horizontal"?h.style.left="":h.style.top=""}i.resetTabPositions=u})(vs||(vs={}));I4=class extends Po{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=_m.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]();this._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=_m.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():Oi()}widgets(){return this._root?this._root.iterUserWidgets():Oi()}selectedWidgets(){return this._root?this._root.iterSelectedWidgets():Oi()}tabBars(){return this._root?this._root.iterTabBars():Oi()}handles(){return this._root?this._root.iterHandles():Oi()}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(),Un.adjust(s.node.sizers,s.index,o),this.parent&&this.parent.update(
6275))}saveLayout(){return this._root?(this._root.holdAllSizes(),{main:this._root.createConfig()}):{main:null}}restoreLayout(e){let t=new Set,r;e.main?r=xi.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=xi.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=he.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,h=this._box.borderLeft+this._box.borderRight,f=this._box.borderTop+this._box.borderBottom,p=r.width-h-(u+c),g=r.height-f-(l+d);return{tabBar:a,x:n,y:s,top:l,left:u,right:p,bottom:g,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 td(e)),this.parent.isAttached&&se.sendMessage(e,V.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&se.sendMessage(e,V.Msg.AfterAttach))}detachWidget(e){if(this.parent.node!==e.node.parentNode)return;this.parent.isAttached&&se.sendMessage(e,V.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&se.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;if(xi.removeAria(e),t.tabBar.titles.length>1){if(t.tabBar.removeTab(e.title),this._hiddenMode===V.HiddenMode.Scale&&t.tabBar.titles.length==1){let h=t.tabBar.titles[0].owner;h.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=L.removeFirstOf(r.children,t),s=L.removeAt(r.handles,n);if(L.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 xi.TabLayoutNode){a.parent=u,u.children[c]=a;return}let d=L.removeAt(u.handles,c);L.removeAt(u.children,c),L.removeAt(u.sizers,c),d.parentNode&&d.parentNode.removeChild(d);for(let h=0,f=a.children.length;h<f;++h){let p=a.children[h],g=a.handles[h],v=a.sizers[h];L.insert(u.children,c+h,p),L.insert(u.handles,c+h,g),L.insert(u.sizers,c+h,v),p.parent=u}a.children.length=0,a.handles.length=0,a.sizers.length=0,a.parent=null,u.syncHandles()}_createTabNode(e){let t=new xi.TabLayoutNode(this._createTabBar());return t.tabBar.addTab(e.title),xi.addAria(e,t.tabBar),t}_insertTab(e,t,r,n){if(e===t)return;if(!this._root){let o=new xi.TabLayoutNode(this._createTabBar());o.tabBar.addTab(e.title),this._root=o,xi.addAria(e,o.tabBar);return}
6275r||(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),xi.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 h=this._splitRoot(n),f=s?h.children.length:0;h.normalizeSizes();let p=xi.createSizer(r?1:xi.GOLDEN_RATIO),g=this._createTabNode(e);L.insert(h.children,f,g),L.insert(h.sizers,f,p),L.insert(h.handles,f,this._createHandle()),g.parent=h,h.normalizeSizes(),h.syncHandles();return}let a=r.parent;if(a.orientation===n){let h=a.children.indexOf(r);if(o){let v=h+(s?1:-1),_=a.children[v];if(_ instanceof xi.TabLayoutNode){this._insertTab(e,null,_,!0),++_.tabBar.currentIndex;return}}a.normalizeSizes();let f=a.sizers[h].sizeHint/=2,p=h+(s?1:0),g=this._createTabNode(e);L.insert(a.children,p,g),L.insert(a.sizers,p,xi.createSizer(f)),L.insert(a.handles,p,this._createHandle()),g.parent=a,a.syncHandles();return}let l=L.removeFirstOf(a.children,r),u=new xi.SplitLayoutNode(n);u.normalized=!0,u.children.push(r),u.sizers.push(xi.createSizer(.5)),u.handles.push(this._createHandle()),r.parent=u;let c=s?1:0,d=this._createTabNode(e);L.insert(u.children,c,d),L.insert(u.sizers,c,xi.createSizer(.5)),L.insert(u.handles,c,this._createHandle()),d.parent=u,u.syncHandles(),L.insert(a.children,l,u),u.parent=a}_splitRoot(e){let t=this._root;if(t instanceof xi.SplitLayoutNode&&t.orientation===e)return t;let r=this._root=new xi.SplitLayoutNode(e);return t&&(r.children.push(t),r.sizers.push(xi.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=he.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&&se.sendMessage(this.parent.parent,V.Msg.FitRequest),this._dirty&&se.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=he.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(h){let f=new Lo;return f.sizeHint=h,f.size=h,f}i.createSizer=e;function t(h,f){let p;return h.type==="tab-area"?p=l(h,f):p=u(h,f),p}i.normalizeAreaConfig=t;function r(h,f,p){let g;return h.type==="tab-area"?g=c(h,f,p):g=d(h,f,p),g}i.realizeAreaConfig=r;class n{constructor(f){this.parent=null,this._top=0,this._left=0,this._width=0,this._height=0;let p=new Lo,g=new Lo;p.stretch=0,g.stretch=1,this.tabBar=f,this.sizers=[p,g]}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()}*iterUserWidgets(){for(let f of this.tabBar.titles)yield f.owner}*iterSelectedWidgets(){let f=this.tabBar.currentTitle;f&&(yield f.owner)}*iterTabBars(){yield this.tabBar}*iterHandles(){}findTabNode(f){return this.tabBar.titles.indexOf(f.title)!==-1?this:null}findSplitNode(f){return null}findFirstTabNode(){return this}hitTestTabNodes(f,p){return f<this._left||f>=this._left+this._width||p<this._top||p>=this._top+this._height?null:this}
6275createConfig(){let f=this.tabBar.titles.map(g=>g.owner),p=this.tabBar.currentIndex;return{type:"tab-area",widgets:f,currentIndex:p}}holdAllSizes(){}fit(f,p){let g=0,v=0,_=1/0,x=1/0,y=p.get(this.tabBar),C=this.tabBar.currentTitle,S=C?p.get(C.owner):void 0,[R,I]=this.sizers;return y&&y.fit(),S&&S.fit(),y&&!y.isHidden?(g=Math.max(g,y.minWidth),v+=y.minHeight,R.minSize=y.minHeight,R.maxSize=y.maxHeight):(R.minSize=0,R.maxSize=0),S&&!S.isHidden?(g=Math.max(g,S.minWidth),v+=S.minHeight,I.minSize=S.minHeight,I.maxSize=1/0):(I.minSize=0,I.maxSize=1/0),{minWidth:g,minHeight:v,maxWidth:_,maxHeight:x}}update(f,p,g,v,_,x){this._top=p,this._left=f,this._width=g,this._height=v;let y=x.get(this.tabBar),C=this.tabBar.currentTitle,S=C?x.get(C.owner):void 0;if(Un.calc(this.sizers,v),y&&!y.isHidden){let R=this.sizers[0].size;y.update(f,p,g,R),p+=R}if(S&&!S.isHidden){let R=this.sizers[1].size;S.update(f,p,g,R)}}}i.TabLayoutNode=n;class s{constructor(f){this.parent=null,this.normalized=!1,this.children=[],this.sizers=[],this.handles=[],this.orientation=f}*iterAllWidgets(){for(let f of this.children)yield*f.iterAllWidgets()}*iterUserWidgets(){for(let f of this.children)yield*f.iterUserWidgets()}*iterSelectedWidgets(){for(let f of this.children)yield*f.iterSelectedWidgets()}*iterTabBars(){for(let f of this.children)yield*f.iterTabBars()}*iterHandles(){yield*this.handles;for(let f of this.children)yield*f.iterHandles()}findTabNode(f){for(let p=0,g=this.children.length;p<g;++p){let v=this.children[p].findTabNode(f);if(v)return v}return null}findSplitNode(f){let p=this.handles.indexOf(f);
6275if(p!==-1)return{index:p,node:this};for(let g=0,v=this.children.length;g<v;++g){let _=this.children[g].findSplitNode(f);if(_)return _}return null}findFirstTabNode(){return this.children.length===0?null:this.children[0].findFirstTabNode()}hitTestTabNodes(f,p){for(let g=0,v=this.children.length;g<v;++g){let _=this.children[g].hitTestTabNodes(f,p);if(_)return _}return null}createConfig(){let f=this.orientation,p=this.createNormalizedSizes(),g=this.children.map(v=>v.createConfig());return{type:"split-area",orientation:f,children:g,sizes:p}}syncHandles(){this.handles.forEach((f,p)=>{f.setAttribute("data-orientation",this.orientation),p===this.handles.length-1?f.classList.add("lm-mod-hidden"):f.classList.remove("lm-mod-hidden")})}holdSizes(){for(let f of this.sizers)f.sizeHint=f.size}holdAllSizes(){for(let f of this.children)f.holdAllSizes();this.holdSizes()}normalizeSizes(){let f=this.sizers.length;if(f===0)return;this.holdSizes();let p=this.sizers.reduce((g,v)=>g+v.sizeHint,0);if(p===0)for(let g of this.sizers)g.size=g.sizeHint=1/f;else for(let g of this.sizers)g.size=g.sizeHint/=p;this.normalized=!0}createNormalizedSizes(){let f=this.sizers.length;if(f===0)return[];let p=this.sizers.map(v=>v.size),g=p.reduce((v,_)=>v+_,0);if(g===0)for(let v=p.length-1;v>-1;v--)p[v]=1/f;else for(let v=p.length-1;v>-1;v--)p[v]/=g;return p}fit(f,p){let g=this.orientation==="horizontal",v=Math.max(0,this.children.length-1)*f,_=g?v:0,x=g?0:v,y=1/0,C=1/0;for(let S=0,R=this.children.length;S<R;++S){let I=this.children[S].fit(f,p);g?(x=Math.max(x,I.minHeight),_+=I.minWidth,this.sizers[S].minSize=I.minWidth):(_=Math.max(_,I.minWidth),x+=I.minHeight,this.sizers[S].minSize=I.minHeight)}return{minWidth:_,minHeight:x,maxWidth:y,maxHeight:C}}update(f,p,g,v,_,x){let y=this.orientation==="horizontal",C=Math.max(0,this.children.length-1)*_,S=Math.max(0,(y?g:v)-C);if(this.normalized){for(let R of this.sizers)R.sizeHint*=S;this.normalized=!1}Un.calc(this.sizers,S);for(let R=0,I=this.children.length;R<I;++R){let E=this.children[R],w=this.sizers[R].size,k=this.handles[R].style;y?(E.update(f,p,w,v,_,x),f+=w,k.top=`${p}px`,k.left=`${f}px`,k.width=`${_}px`,k.height=`${v}px`,f+=_):(E.update(f,p,g,w,_,x),p+=w,k.top=`${p}px`,k.left=`${f}px`,k.width=`${g}px`,k.height=`${_}px`,p+=_)}}}i.SplitLayoutNode=s;function o(h,f){h.node.setAttribute("role","tabpanel");let p=f.renderer;if(p instanceof Ks.Renderer){let g=p.createTabKey({title:h.title,current:!1,zIndex:0});h.node.setAttribute("aria-labelledby",g)}}i.addAria=o;function a(h){h.node.removeAttribute("role"),h.node.removeAttribute("aria-labelledby")}i.removeAria=a;function l(h,f){if(h.widgets.length===0)return null;let p=[];for(let v of h.widgets)f.has(v)||(f.add(v),p.push(v));if(p.length===0)return null;let g=h.currentIndex;return g!==-1&&(g<0||g>=p.length)&&(g=0),{type:"tab-area",widgets:p,currentIndex:g}}function u(h,f){let p=h.orientation,g=[],v=[];for(let _=0,x=h.children.length;_<x;++_){let y=t(h.children[_],f);y&&(y.type==="tab-area"||y.orientation!==p?(g.push(y),v.push(Math.abs(h.sizes[_]||0))):(g.push(...y.children),v.push(...y.sizes)))}return g.length===0?null:g.length===1?g[0]:{type:"split-area",orientation:p,children:g,sizes:v}}function c(h,f,p){let g=f.createTabBar(p);for(let v of h.widgets)v.hide(),g.addTab(v.title),i.addAria(v,g);return g.currentIndex=h.currentIndex,new n(g)}function d(h,f,p){let g=new s(h.orientation);return h.children.forEach((v,_)=>{let x=r(v,f,p),y=e(h.sizes[_]),C=f.createHandle();g.children.push(x),g.handles.push(C),g.sizers.push(y),x.parent=g}),g.syncHandles(),g.normalizeSizes(),g}})(xi||(xi={}));id=class extends V{constructor(e={}){super(),this._drag=null,this._tabsMovable=!0,this._tabsConstrained=!1,this._addButtonEnabled=!1,this._pressData=null,this._layoutModified=new G(this),this._addRequested=new G(this),this.addClass("lm-DockPanel"),this._document=e.document||document,this._mode=e.mode||"multiple-document",this._renderer=e.renderer||id.defaultRenderer,this._edges=e.edges||ui.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 I4({document:this._document,renderer:t,spacing:e.spacing,hiddenMode:e.hiddenMode}),this.overlay=e.overlay||new id.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(ui.createSingleDocumentConfig(this));break;default:throw"unreachable"}se.postMessage(this,ui.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=Ui(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),(Ft.IS_EDGE||Ft.IS_IE)&&se.flush(),se.postMessage(this,ui.LayoutModified)}addWidget(e,t={}){this._mode==="single-document"?this.layout.addWidget(e):this.layout.addWidget(e,t),se.postMessage(this,ui.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){ui.isGeneratedTabBarProperty.get(e.child)||e.child.addClass("lm-DockPanel-widget")}onChildRemoved(e){ui.isGeneratedTabBarProperty.get(e.child)||(e.child.removeClass("lm-DockPanel-widget"),se.postMessage(this,ui.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}=ui.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?ui.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)}
6275_evtKeyDown(e){e.preventDefault(),e.stopPropagation(),e.keyCode===27&&(this._releaseMouse(),se.postMessage(this,ui.LayoutModified))}_evtPointerDown(e){if(e.button!==0)return;let t=this.layout,r=e.target,n=Ui(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=Di.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(),se.postMessage(this,ui.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}=ui.findDropTarget(this,e,t,this._edges);if(r==="invalid")return this.overlay.hide(100),r;let s,o,a,l,u=he.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*ui.GOLDEN_RATIO;break;case"root-left":s=u.paddingTop,o=u.paddingLeft,a=c.width*ui.GOLDEN_RATIO,l=u.paddingBottom;break;case"root-right":s=u.paddingTop,o=c.width*ui.GOLDEN_RATIO,a=u.paddingRight,l=u.paddingBottom;break;case"root-bottom":s=c.height*ui.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 ui.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(){se.postMessage(this,ui.LayoutModified)}_onCurrentChanged(e,t){let{previousTitle:r,currentTitle:n}=t;r&&r.owner.hide(),n&&n.owner.show(),(Ft.IS_EDGE||Ft.IS_IE)&&se.flush(),se.postMessage(this,ui.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 La.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 Di({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 Ks({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})(id||(id={}));(function(i){i.GOLDEN_RATIO=.618,i.DEFAULT_EDGES={top:12,right:40,bottom:40,left:40},i.LayoutModified=new qu("layout-modified"),i.isGeneratedTabBarProperty=new Ye({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(!he.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 y=n.node.getBoundingClientRect(),C=s-y.left+1,S=o-y.top+1,R=y.right-s,I=y.bottom-o;switch(Math.min(S,R,I,C)){case S:if(S<a.top)return{zone:"root-top",target:null};break;case R:if(R<a.right)return{zone:"root-right",target:null};break;case I:if(I<a.bottom)return{zone:"root-bottom",target:null};break;case C:if(C<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,h=u.left+u.width-u.x,f=u.top+u.height-u.y,p=u.tabBar.node.getBoundingClientRect().height;if(d<p)return{zone:"widget-tab",target:u};let g=Math.round(u.width/3),v=Math.round(u.height/3);if(c>g&&h>g&&d>v&&f>v)return{zone:"widget-all",target:u};c/=g,d/=v,h/=g,f/=v;let _=Math.min(c,d,h,f),x;switch(_){case c:x="widget-left";break;case d:x="widget-top";break;case h:x="widget-right";break;case f:x="widget-bottom";break;default:throw"unreachable"}return{zone:x,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})(ui||(ui={}));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 G(this),this._currentChanged=new G(this)}dispose(){if(!(this._counter<0)){this._counter=-1,G.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._setWi
6275dgets(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),L.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=uf(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._setWidgets(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)&&!Ui(this._widgets,n=>n.node.contains(r))){this._setWidgets(this._currentWidget,null);return}}_onWidgetDisposed(e){this.remove(e)}},Oa=class extends Po{constructor(e={}){super(e),this._dirty=!1,this._rowSpacing=4,this._columnSpacing=4,this._items=[],this._rowStarts=[],this._columnStarts=[],this._rowSizers=[new Lo],this._columnSizers=[new Lo],this._box=null,e.rowCount!==void 0&&Hi.reallocSizers(this._rowSizers,e.rowCount),e.columnCount!==void 0&&Hi.reallocSizers(this._columnSizers,e.columnCount),e.rowSpacing!==void 0&&(this._rowSpacing=Hi.clampValue(e.rowSpacing)),e.columnSpacing!==void 0&&(this._columnSpacing=Hi.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&&(Hi.reallocSizers(this._rowSizers,e),this.parent&&this.parent.fit())}get columnCount(){return this._columnSizers.length}set columnCount(e){e!==this.columnCount&&(Hi.reallocSizers(this._columnSizers,e),this.parent&&this.parent.fit())}get rowSpacing(){return this._rowSpacing}set rowSpacing(e){e=Hi.clampValue(e),this._rowSpacing!==e&&(this._rowSpacing=e,this.parent&&this.parent.fit())}get columnSpacing(){return this._columnSpacing}set columnSpacing(e){e=Hi.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=Hi.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=Hi.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){L.findFirstIndex(this._items,r=>r.widget===e)===-1&&(this._items.push(new td(e)),this.parent&&this.attachWidget(e))}removeWidget(e){let t=L.findFirstIndex(this._items,n=>n.widget===e);if(t===-1)return;let r=L.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&&se.sendMessage(e,V.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&se.sendMessage(e,V.Msg.AfterAttach),this.parent.fit()}detachWidget(e){this.parent.isAttached&&se.sendMessage(e,V.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&se.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(Hi.rowSpanCmp);for(let l=0,u=e.length;l<u;++l){let c=e[l],d=Oa.getCellConfig(c.widget),h=Math.min(d.row,t),f=Math.min(d.row+d.rowSpan-1,t);Hi.distributeMin(this._rowSizers,h,f,c.minHeight)}e.sort(Hi.columnSpanCmp);for(let l=0,u=e.length;l<u;++l){let c=e[l],d=Oa.getCellConfig(c.widget),h=Math.min(d.column,r),f=Math.min(d.column+d.columnSpan-1,r);Hi.distributeMin(this._columnSizers,h,f,c.minWidth)}if(this.fitPolicy==="set-no-constraint"){se.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=he.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&&se.sendMessage(this.parent.parent,V.Msg.FitRequest),this._dirty&&se.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=he.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;Un.calc(this._rowSizers,Math.max(0,o-u)),Un.calc(this._columnSizers,Math.max(0,s-c));for(let d=0,h=r,f=this.rowCount;d<f;++d)this._rowStarts[d]=h,h+=this._rowSizers[d].size+this._rowSpacing;for(let d=0,h=n,f=this.columnCount;d<f;++d)this._columnStarts[d]=h,h+=this._columnSizers[d].size+this._columnSpacing;for(let d=0,h=this._items.length;d<h;++d){let f=this._items[d];if(f.isHidden)continue;let p=Oa.getCellConfig(f.widget),g=Math.min(p.row,a),v=Math.min(p.column,l),_=Math.min(p.row+p.rowSpan-1,a),x=Math.min(p.column+
6275p.columnSpan-1,l),y=this._columnStarts[v],C=this._rowStarts[g],S=this._columnStarts[x]+this._columnSizers[x].size-y,R=this._rowStarts[_]+this._rowSizers[_].size-C;f.update(y,C,S,R)}}};(function(i){function e(r){return Hi.cellConfigProperty.get(r)}i.getCellConfig=e;function t(r,n){Hi.cellConfigProperty.set(r,Hi.normalizeConfig(n))}i.setCellConfig=t})(Oa||(Oa={}));(function(i){i.cellConfigProperty=new Ye({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)),h=Math.max(1,Math.floor(l.columnSpan||0));return{row:u,column:c,rowSpan:d,columnSpan:h}}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 Lo);l.length>u&&(l.length=u)}i.reallocSizers=s;function o(l,u,c,d){if(c<u)return;if(u===c){let p=l[u];p.minSize=Math.max(p.minSize,d);return}let h=0;for(let p=u;p<=c;++p)h+=l[p].minSize;if(h>=d)return;let f=(d-h)/(c-u+1);for(let p=u;p<=c;++p)l[p].minSize+=f}i.distributeMin=o;function a(l){l.parent&&l.parent.layout instanceof Oa&&l.parent.fit()}})(Hi||(Hi={}));jh=class extends V{constructor(e={}){super({node:Bv.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||jh.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){L.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&&(L.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=L.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
6275itle.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":case"mouseleave":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("mouseleave",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("mouseleave",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 $o({commands:new ti}),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 h=this.menus[d];h.title.mnemonic=0,this._overflowMenu.insertItem(0,{type:"submenu",submenu:h}),this.removeMenu(h,!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,h=this.node.offsetWidth,f=this._overflowMenu.items.length;for(let p=0;p<f;++p){let g=r.length-1-p;if(h-l>this._menuItemSizes[g]){let v=d[0].submenu;this._overflowMenu.removeItemAt(0),this.insertMenu(a,v,!1),c[a]=n.renderItem({title:v.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)}}Pt.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=Qn().keyForKeydownEvent(e);if(!r)return;let n=this._activeIndex+1,s=Bv.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(!he.hitTest(this.node,e.clientX,e.clientY))return;e.stopPropagation(),e.stopImmediatePropagation();let t=L.findFirstIndex(this.contentNode.children,r=>he.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);$o.saveWindowData(),this.activeIndex=t,this._openChildMenu(r)}}_evtMouseMove(e){let t=L.findFirstIndex(this.contentNode.children,n=>he.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;$o.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,
6275!0),this._tabFocusIndex=this.activeIndex,se.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 re.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 re.div({className:n},r.title.icon,r.title.iconLabel)}renderLabel(r){let n=this.formatLabel(r);return re.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=re.span({className:"lm-MenuBar-itemMnemonic"},l);return[o,u,a]}}i.Renderer=e,i.defaultRenderer=new e})(jh||(jh={}));(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 h=(c+s)%d,f=r[h].title;if(f.label.length===0)continue;let p=f.mnemonic;if(p>=0&&p<f.label.length){f.label[p].toUpperCase()===u&&(o===-1?o=h:l=!0);continue}a===-1&&f.label[0].toUpperCase()===u&&(a=h)}return{index:o,multiple:l,auto:a}}i.findMnemonic=t})(Bv||(Bv={}));(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})(IZ||(IZ={}));EZ=class extends Po{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&&se.sendMessage(e,V.Msg.BeforeAttach),this.parent.node.appendChild(e.node),this.parent.isAttached&&se.sendMessage(e,V.Msg.AfterAttach)}detachWidget(e){this.parent.isAttached&&se.sendMessage(e,V.Msg.BeforeDetach),this.parent.node.removeChild(e.node),this.parent.isAttached&&se.sendMessage(e,V.Msg.AfterDetach)}},E4=class extends Hu{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>
62751&&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,L.insert(this._items,e,new td(t)),this.parent.isAttached&&se.sendMessage(t,V.Msg.BeforeAttach),this.parent.node.appendChild(t.node),this.parent.isAttached&&se.sendMessage(t,V.Msg.AfterAttach),this.parent.fit()}moveWidget(e,t,r){L.move(this._items,e,t),this.parent.update()}detachWidget(e,t){let r=L.removeAt(this._items,e);this.parent.isAttached&&se.sendMessage(t,V.Msg.BeforeDetach),this.parent.node.removeChild(t.node),this.parent.isAttached&&se.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=he.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&&se.sendMessage(this.parent.parent,V.Msg.FitRequest),this._dirty&&se.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=he.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 E4}i.createLayout=e})(kZ||(kZ={}));(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"}})(TZ||(TZ={}))});var AZ,zv,k4=b(()=>{AZ=N(o0());tt();Fo();zv=class{constructor(e){this._currentChanged=new G(this),this._deferred=null,this._isDisposed=!1,this._widgetAdded=new G(this),this._widgetUpdated=new G(this);let t=this._focusTracker=new Nv,r=this._pool=new AZ.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(),G.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 Pa(i={}){return new pt(i).launch()}var T4,Vh,pt,ju,qv=b(()=>{Jn();Mo();Zt();T4=N(Ge());$v();Fo();Vh=N(ue());k4();pt=class extends V{constructor(e={}){let t=document.createElement("dialog");t.ariaModal="true",super({node:t}),this._hasValidationErrors=!1,this._ready=new T4.PromiseDelegate,this._focusNodeSelector="",this.addClass("jp-Dialog"),this.addClass("jp-ThemedContainer");let r=ju.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:h=!1,className:f=""}=r.checkbox;this._checkboxNode=n.createCheckboxNode({label:c,caption:d??c,checked:h,className:f})}let s=this.layout=new Hu,o=new $a;
6275o.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,pt.tracker.add(this)}get ready(){return this._ready.promise}dispose(){let e=this._promise;e&&(this._promise=null,e.reject(void 0),L.removeFirstOf(ju.launchQueue,e.promise)),super.dispose()}launch(){if(this._promise)return this._promise.promise;let e=this._promise=new T4.PromiseDelegate,t=Promise.all(ju.launchQueue);return ju.launchQueue.push(this._promise.promise),t.then(()=>this._promise?(V.attach(this,this._host),e.promise):Promise.resolve({button:pt.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(pt.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=ju.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 Or&&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;if(t instanceof HTMLButtonElement){let r=this._buttonNodes.indexOf(t);r!==-1&&this.resolve(r)}else if(!(t instanceof HTMLTextAreaElement)){let r=this._defaultButton;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
6275s())}_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,L.removeFirstOf(ju.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=St;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,h=p=>{p.button===0&&(p.preventDefault(),u())},f=p=>{let{key:g}=p;(g==="Enter"||g===" ")&&u()};if(typeof l=="string"){let p=i.translator.load("jupyterlab");d=Or.create(Vh.createElement(Vh.Fragment,null,l,c.hasClose&&Vh.createElement(JR,{className:"jp-Dialog-close-button",onMouseDown:h,onKeyDown:f,title:p.__("Cancel"),minimal:!0},Vh.createElement(q.resolveReact,{icon:ig,tag:"span"}))))}else d=Or.create(l);return d.addClass("jp-Dialog-header"),Fu.styleNode(d.node),d}createBody(l){let u=d=>{d.renderPromise!==void 0?d.renderPromise.then(()=>{Fu.styleNode(d.node)}).catch(()=>{console.error("Error while loading Dialog's body")}):Fu.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 Or?u(c):Fu.styleNode(c.node)):(c=Or.create(l),se.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>'));let d=document.createElement("div");d.classList.add("jp-Dialog-footerButtons");for(let h of l)d.appendChild(h);return c.node.appendChild(d),Fu.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 zv({namespace:"@jupyterlab/apputils:Dialog"})})(pt||(pt={}));(function(i){i.launchQueue=[],i.errorMessagePromiseCache=new Map;function e(r={}){var n,s,o,a,l,u,c,d,h;let f=(n=r.buttons)!==null&&n!==void 0?n:[pt.cancelButton(),pt.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:f,defaultButton:(u=r.defaultButton)!==null&&u!==void 0?u:f.length-1,renderer:(c=r.renderer)!==null&&c!==void 0?c:pt.defaultRenderer,focusNodeSelector:(d=r.focusNodeSelector)!==null&&d!==void 0?d:"",hasClose:(h=r.hasClose)!==null&&h!==void 0?h:!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})(ju||(ju={}))});var XSe,MZ=b(()=>{Zt();XSe=N(Ge())});var RZ=b(()=>{Fo();tt()});var Hv,No,xm,jv,Vu,wm,A4=b(()=>{Hv=N(ci());Jn();Zt();No=N(Ge());tt();Fo();xm=N(ue());qv();jv=class{constructor(e){var t,r,n,s;this._path="",this._name="",this._type="",this._prevKernelName="",this._isDisposed=!1,this._disposed=new G(this),this._session=null,this._ready=new No.PromiseDelegate,this._initializing=!1,this._initStarted=new No.PromiseDelegate,this._initPromise=new No.PromiseDelegate,this._isReady=!1,this._isTerminating=!1,this._isRestarting=!1,this._kernelChanged=new G(this),this._preferenceChanged=new G(this),this._sessionChanged=new G(this),this._statusChanged=new G(this),this._connectionStatusChanged=new G(this),this._pendingInput=!1,this._iopubMessage=new G(this),this._unhandledMessage=new G(this),this._propertyChanged=new G(this),this._dialog=null,this._busyDisposable=null,this._pendingKernelName="",this._pendingSessionRequest="",this.kernelManager=e.kernelManager,this.sessionManager=e.sessionManager,this.specsManager=e.specsManager,this.translator=e.translator||St,this._trans=this.translator.load("jupyterlab"),this._path=(t=e.path)!==null&&t!==void 0?t:No.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(!No.JSONExt.deepEqual(e,this._kernelPreference)){let t=this._kernelPreference;this._kernelPreference=e,this._preferenceChanged.emit({name:"kernelPreference",oldValue:t,newValue:No.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
6275ndingKernelName?(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),G.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=wm.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=Ui(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={}
6275){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=Hv.PathExt.dirname(this._path),r=this._pendingSessionRequest=Hv.PathExt.join(t,No.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=xm.createElement("div",null,e&&xm.createElement("pre",null,e),t&&xm.createElement("details",{className:"jp-mod-wide"},xm.createElement("pre",null,t)));await(this._dialog=new pt({title:this._trans.__("Error Starting Kernel"),body:r,buttons:[pt.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:wm.getDefaultKernel(t)}i.getDefaultKernel=e})(jv||(jv={}));Vu=class{constructor(e={}){var t;this._translator=(t=e.translator)!==null&&t!==void 0?t:St,this._settingRegistry=e.settingRegistry||null}async selectKernel(e){if(e.isDisposed)return Promise.resolve();let t=this._translator,r=t.load("jupyterlab"),n=r.__("Cancel");e.hasNoKernel&&(n=e.kernelDisplayName);let s=[pt.cancelButton({label:n}),pt.okButton({label:r.__("Select"),ariaLabel:r.__("Select Kernel")})],o=e.kernelPreference.autoStartDefault,a=typeof o=="boolean",u=await new pt({title:r.__("Select Kernel"),body:wm.createKernelSelector(e,t),buttons:s,checkbox:a?{label:r.__("Always start the preferred kernel"),caption:r.__("Remember my choice and always start the preferred kernel"),checked:o}:null}).launch();if(e.isDisposed||!u.button.accept)return;a&&u.isChecked!==null&&(e.kernelPreference={...e.kernelPreference,autoStartDefault:u.isChecked});let c=u.value;if(c===null&&!e.hasNoKernel)return e.shutdown();c&&await e.changeKernel(c)}async restart(e){var t,r,n,s,o;let a=this._translator.load("jupyterlab");if(await e.initialize(),e.isDisposed)throw new Error("session already disposed");let l=(t=e.session)===null||t===void 0?void 0:t.kernel;if(!l&&e.prevKernelName)return await e.changeKernel({name:e.prevKernelName}),!0;if(!l)throw new Error("No kernel to restart");let u="@jupyterlab/apputils-extension:sessionDialogs",c=(n=(r=e.kernelPreference)===null||r===void 0?void 0:r.skipKernelRestartDialog)!==null&&n!==void 0?n:!1;if(((o=await((s=this._settingRegistry)===null||s===void 0?void 0:s.get(u,"skipKernelRestartDialog")))===null||o===void 0?void 0:o.composite)||c)return await e.restartKernel(),!0;let h=pt.warnButton({label:a.__("Restart"),ariaLabel:a.__("Confirm Kernel Restart")}),f=await Pa({title:a.__("Restart Kernel?"),body:a.__("Do you want to restart the kernel of %1? All variables will be lost.",e.name),buttons:[pt.cancelButton({ariaLabel:a.__("Cancel Kernel Restart")}),h],checkbox:{label:a.__("Do not ask me again."),caption:a.__("If checked, the kernel will restart without confirmation prompt in the future; you can change this back in the settings.")}});return l.isDisposed?!1:f.button.accept?(typeof f.isChecked=="boolean"&&f.isChecked==!0&&(e.kernelPreference={...e.kernelPreference,skipKernelRestartDialog:!0}),await e.restartKernel(),!0):!1}};(function(i){function e(t,r=null){var n,s,o,a,l,u,c;let d={disabled:!1,groups:[]},h=Array.from((s=(n=t.kernelManager)===null||n===void 0?void 0:n.running())!==null&&s!==void 0?s:Array.from(t.sessionManager.running()).filter(w=>!!w.kernel).map(w=>w.kernel)),f=Array.from((o=t.sessionManager.running())!==null&&o!==void 0?o:[]).reduce((w,k)=>{var O;
6275return!((O=k.kernel)===null||O===void 0)&&O.id&&(w[k.kernel.id]=k),w},{}),p={...t.kernelPreference,id:(l=(a=t.session)===null||a===void 0?void 0:a.kernel)===null||l===void 0?void 0:l.id},g=t.hasNoKernel?null:t.kernelDisplayName,v={default:"",kernelspecs:Object.create(null),...t.specsManager.specs},_=[],x=Object.create(null);for(let w in v.kernelspecs)_.push(v.kernelspecs[w]),x[w]=v.kernelspecs[w].language;_.sort((w,k)=>w.display_name.localeCompare(k.display_name)),r=r||St;let y=r.load("jupyterlab"),C=p.language||x[p.name]||(p.id?x[(u=f[p.id])===null||u===void 0?void 0:u.name]:""),S={connectKernel:y.__("Connect to Existing Kernel"),startPreferred:y.__("Start %1 Kernel",C),startOther:y.__("Start Kernel"),connectToPreferred:y.__("Connect to Existing %1 Kernel",C),connectToOther:y.__("Connect to Other Kernel"),noKernel:y.__("No Kernel"),startKernel:y.__("Start Kernel"),useNoKernel:y.__("Use No Kernel")},R={label:S.useNoKernel,options:[{text:S.noKernel,title:S.noKernel,value:JSON.stringify(null)}]},I=(w,k,O)=>{let z=O?O.name||Hv.PathExt.basename(O.path):w.name||y.__("Unknown Kernel");return{text:`${z} (${w.id.split("-")[0]})`,title:(O?`${y.__("Path: %1",O.path)}
6276`:"")+`${y.__("Name: %1",z)}
6277${y.__("Kernel Name: %1",k??w.name)}
6278${y.__("Kernel Id: %1",w.id)}`,value:JSON.stringify({id:w.id})}},E=w=>({text:w.display_name,value:JSON.stringify({name:w.name})});if(p.canStart===!1)return d.disabled=!0,d.groups.push(R),d;if(C){let w={label:S.startPreferred,options:[]},k={label:S.startOther,options:[]},O={label:S.connectToPreferred,options:[]},z={label:S.connectToOther,options:[]};for(let Y of _)(Y.language===C?w:k).options.push(E(Y));d.groups.push(w),d.groups.push(R),d.groups.push(k),h.map(Y=>{var pe,U;return{option:I(Y,(U=(pe=v.kernelspecs[Y.name])===null||pe===void 0?void 0:pe.display_name)!==null&&U!==void 0?U:"",f[Y.id]),language:x[Y.name]}}).sort((Y,pe)=>Y.option.text.localeCompare(pe.option.text)).forEach(Y=>(C===Y.language?O:z).options.push(Y.option)),O.options.length&&d.groups.push(O),z.options.length&&d.groups.push(z)}else d.groups.push({label:S.startKernel,options:_.map(w=>E(w))}),d.groups.push(R),d.groups.push({label:S.connectKernel,options:h.map(w=>{var k,O;return I(w,(O=(k=v.kernelspecs[w.name])===null||k===void 0?void 0:k.display_name)!==null&&O!==void 0?O:"",f[w.id])}).sort((w,k)=>w.text.localeCompare(k.text))});if(p.id||g||p.name)for(let w of d.groups)for(let k of w.options){let O=JSON.parse(k.value);if(O){if(p.id){if(p.id===O.id)return k.selected=!0,d;continue}if(g){if(g===((c=v.kernelspecs[O.name])===null||c===void 0?void 0:c.display_name))return k.selected=!0,d;continue}if(p.name){if(p.name===O.name)return k.selected=!0,d;continue}}}return d}i.kernelOptions=e})(Vu||(Vu={}));(function(i){i.createKernelSelector=(n,s)=>new e({node:t(n,s)});class e extends V{getValue(){let s=this.node.querySelector("select");return JSON.parse(s.value)}}function t(n,s){s=s||St;let o=s.load("jupyterlab"),a=document.createElement("div"),l=document.createElement("label");l.textContent=`${o.__("Select kernel for:")} "${n.name}"`,a.appendChild(l);let u=document.createElement("select"),c=Vu.kernelOptions(n,s);c.disabled&&(u.disabled=!0);for(let d of c.groups){let{label:h,options:f}=d,p=document.createElement("optgroup");p.label=h;for(let{selected:g,text:v,title:_,value:x}of f){let y=document.createElement("option");g&&(y.selected=!0),_&&(y.title=_),y.text=v,y.value=x,p.appendChild(y)}u.appendChild(p)}return a.appendChild(u),a}function r(n){var s;let{specs:o,preference:a}=n,{name:l,language:u,canStart:c,autoStartDefault:d}=a;if(!o||c===!1)return null;let h=d?o.default:null;if(!l&&!u)return h;for(let p in o.kernelspecs)if(p===l)return l;if(!u)return h;let f=[];for(let p in o.kernelspecs){let g=(s=o.kernelspecs[p])===null||s===void 0?void 0:s.language;u===g&&f.push(p)}if(f.length===1){let p=f[0];return console.warn("No exact match found for "+p+", using kernel "+p+" that matches language="+u),p}return h}i.getDefaultKernel=r})(wm||(wm={}))});function R4(i){i=i||St;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 JSe(i){let t=(i.translator||St).load("jupyterlab"),r="";return i.status&&(r=` | ${i.status}`),M4.default.createElement(mm,{role:"button","aria-haspopup":!0,onClick:i.handleClick,onKeyDown:i.handleKeyDown,source:`${i.kernelName}${r}`,title:t.__("Change kernel for %1",i.activityName),tabIndex:0})}var DZ,M4,Uh,D4=b(()=>{v4();Jn();Mo();DZ=N(Ge()),M4=N(ue());Uh=class extends Ao{constructor(e,t){super(new Uh.Model(t)),this.translator=t||St,this._handleClick=e.onClick,this._handleKeyDown=e.onKeyDown,this.addClass("jp-mod-highlighted")}render(){return this.model===null?null:M4.default.createElement(JSe,{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 $u{constructor(r){super(),this._activityName="",this._kernelName="",this._kernelStatus="",this._sessionContext=null,r=r??St,this._trans=r.load("jupyterlab"),this._statusNames=R4(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){DZ.JSONExt.deepEqual(r,n)&&this.stateChanged.emit(void 0)}}i.Model=e})(Uh||(Uh={}))});var Vv,ZSe,QSe,rd,Uv,OZ=b(()=>{Jn();Mo();Fo();Vv=N(ue());A4();D4();ZSe="jp-Toolbar-kernelName",QSe="jp-Toolbar-kernelStatus";(function(i){function e(s,o){o=o||St;let a=o.load("jupyterlab");return new Oh({icon:OR,onClick:()=>{var l,u;
6278(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??St;let l=a.load("jupyterlab");return new Oh({icon:RR,onClick:()=>{(o??new Vu({translator:a})).restart(s)},tooltip:l.__("Restart the kernel")})}i.createRestartButton=t;function r(s,o,a){let l=Or.create(Vv.createElement(Uv.KernelNameComponent,{sessionContext:s,dialogs:o??new Vu({translator:a}),translator:a}));return l.addClass("jp-KernelName"),l}i.createKernelNameItem=r;function n(s,o){return new Uv.KernelStatus(s,o)}i.createKernelStatusItem=n})(rd||(rd={}));(function(i){function e(r){let s=(r.translator||St).load("jupyterlab"),o=()=>{r.dialogs.selectKernel(r.sessionContext)};return Vv.createElement(am,{signal:r.sessionContext.kernelChanged,initialSender:r.sessionContext},a=>Vv.createElement(Q6,{className:ZSe,onClick:o,tooltip:s.__("Switch kernel"),label:a?.kernelDisplayName}))}i.KernelNameComponent=e;class t extends V{constructor(n,s){super(),this.translator=s||St,this._trans=this.translator.load("jupyterlab"),this.addClass(QSe),this._statusNames=R4(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"};q.remove(this.node),s==="busy"||s==="starting"||s==="terminating"||s==="restarting"||s==="initializing"?CR.element(o):s==="connecting"||s==="disconnected"||s==="unknown"?MR.element(o):SR.element(o)}}i.KernelStatus=t})(Uv||(Uv={}))});var LZ=b(()=>{MZ();RZ();OZ()});var O4,$Z,PZ,Sm,FZ=b(()=>{O4=N(Ge());(function(i){function e(){return Sm.instance}i.getInstance=e;function t(s){Sm.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})($Z||($Z={}));(function(i){function e(){return Sm.systemInstance}i.getInstance=e})(PZ||(PZ={}));(function(i){let e="application/vnd.jupyter.cells";class t{constructor(n){this.fallback=n||new O4.MimeData;let{systemClipboard:s}=this;s||console.warn("Clipboard API not available")}clear(){this.fallback.clear()}async hasData(n){let{systemClipboard:s}=this;if(!s)return this.fallback.hasData(n);let o;try{o=await s.readText()}catch(a){return console.warn("Failed to read data from clipboard:",a),a.name==="NotAllowedError"?this.fallback.hasData(n):!1}try{return this.convertStringToData(n,o),!0}catch{return!1}}async getData(n){let{systemClipboard:s}=this;if(!s)return this.fallback.getData(n);try{let o=await s.readText();return this.convertStringToData(n,o)}catch(o){return console.warn("Failed to read data from clipboard:",o),o.name==="NotAllowedError"?this.fallback.getData(n):null}}async setData(n,s){let{systemClipboard:o}=this;if(!o){this.fallback.clear(),this.fallback.setData(n,s);return}try{await o.writeText(this.convertDataToString(n,s))}catch(a){console.warn("Failed to write data to clipboard:",a),this.fallback.clear(),this.fallback.setData(n,s)}}convertDataToString(n,s){return n===e?JSON.stringify(s):(s||"").toString()}convertStringToData(n,s){return n===e?JSON.parse(s):s}get systemClipboard(){return navigator.clipboard}}i.instance=new O4.MimeData,i.systemInstance=new t})(Sm||(Sm={}))});var eCe,NZ=b(()=>{eCe=N(Ge())});var BZ=b(()=>{Fo()});var tCe,iCe,zZ,nd,L4,$4,Wv,P4,F4,N4,B4,qZ=b(()=>{Fo();qv();tCe="jp-Input-Dialog",iCe="jp-Input-Boolean-Dialog";(function(i){function e(a){return Pa({...a,body:new L4(a),buttons:[pt.cancelButton({label:a.cancelLabel}),pt.okButton({label:a.okLabel})],focusNodeSelector:"input"})}i.getBoolean=e;function t(a){return Pa({...a,body:new $4(a),buttons:[pt.cancelButton({label:a.cancelLabel}),pt.okButton({label:a.okLabel})],focusNodeSelector:"input"})}i.getNumber=t;function r(a){return Pa({...a,body:new N4(a),buttons:[pt.cancelButton({label:a.cancelLabel}),pt.okButton({label:a.okLabel})],focusNodeSelector:a.editable?"input":"select"})}i.getItem=r;function n(a){return Pa({...a,body:new B4(a),buttons:[pt.cancelButton({label:a.cancelLabel}),pt.okButton({label:a.okLabel})]})}i.getMultipleItems=n;function s(a){return Pa({...a,body:new P4(a),buttons:[pt.cancelButton({label:a.cancelLabel}),pt.okButton({label:a.okLabel})],focusNodeSelector:"input"})}i.getText=s;function o(a){return Pa({...a,body:new F4(a),buttons:[pt.cancelButton({label:a.cancelLabel}),pt.okButton({label:a.okLabel})],focusNodeSelector:"input"})}i.getPassword=o})(zZ||(zZ={}));nd=class extends V{constructor(e){if(super(),this.addClass(tCe),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)}},L4=class extends nd{constructor(e){super(e),this.addClass(iCe),this._input.type="checkbox",this._input.checked=!!e.value}getValue(){return this._input.checked}},$4=class extends nd{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}},Wv=class extends nd{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}},P4=class extends Wv{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)}},F4=class extends Wv{constructor(e){super(e),this._input.type="password"}onAfterAttach(e){super.onAfterAttach(e),this._input.value&&this._input.select()}},N4=class extends nd{constructor(e){super(e),this._editable=e.editable||!1;let t=e.current||0,r;
6278if(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}},B4=class extends nd{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 z4,jZ,lt,Gv,HZ,Fa,VZ=b(()=>{z4=N(ws());Mo();jZ=N(Ge());tt();el();Fo();lt=N(ue()),Gv=N(ci()),HZ="jp-Licenses-Filters-title",Fa=class extends xn{constructor(e){super(),this.addClass("jp-Licenses"),this.model=e.model,this.initLeftPanel(),this.initFilters(),this.initBundles(),this.initGrid(),this.initLicenseText(),this.setRelativeSizes([1,2,3]),this.model.initLicenses().then(()=>this._updateBundles()),this.model.trackerDataChanged.connect(()=>{this.title.label=this.model.title})}dispose(){this.isDisposed||(this._bundles.currentChanged.disconnect(this.onBundleSelected,this),this.model.dispose(),super.dispose())}initLeftPanel(){this._leftPanel=new $a,this._leftPanel.addClass("jp-Licenses-FormArea"),this.addWidget(this._leftPanel),xn.setStretch(this._leftPanel,1)}initFilters(){this._filters=new Fa.Filters(this.model),xn.setStretch(this._filters,1),this._leftPanel.addWidget(this._filters)}initBundles(){this._bundles=new Ks({orientation:"vertical",renderer:new Fa.BundleTabRenderer(this.model)}),this._bundles.addClass("jp-Licenses-Bundles"),xn.setStretch(this._bundles,1),this._leftPanel.addWidget(this._bundles),this._bundles.currentChanged.connect(this.onBundleSelected,this),this.model.stateChanged.connect(()=>this._bundles.update())}initGrid(){this._grid=new Fa.Grid(this.model),xn.setStretch(this._grid,1),this.addWidget(this._grid)}initLicenseText(){this._licenseText=new Fa.FullText(this.model),xn.setStretch(this._grid,1),this.addWidget(this._licenseText)}onBundleSelected(){var e;!((e=this._bundles.currentTitle)===null||e===void 0)&&e.label&&(this.model.currentBundleName=this._bundles.currentTitle.label)}_updateBundles(){this._bundles.clearTabs();let e=0,{currentBundleName:t}=this.model,r=0;for(let n of this.model.bundleNames){let s=new V;s.title.label=n,n===t&&(r=e),this._bundles.insertTab(++e,s.title)}this._bundles.currentIndex=r}};(function(i){i.REPORT_FORMATS={markdown:{id:"markdown",title:"Markdown",icon:AR},csv:{id:"csv",title:"CSV",icon:DR},json:{id:"json",title:"JSON",icon:kR}},i.DEFAULT_FORMAT="markdown";class e{constructor(l={}){var u;this._preferredLicensesUrl=l.licensesUrl,this._serverSettings=(u=l.serverSettings)!==null&&u!==void 0?u:z4.ServerConnection.makeSettings()}async download(l){let u=`${this._licensesUrl}?format=${l.format}&download=1`,c=document.createElement("a");c.href=u,c.download="",document.body.appendChild(c),c.click(),document.body.removeChild(c),URL.revokeObjectURL(u)}async getBundles(){return(await z4.ServerConnection.makeRequest(this._licensesUrl,{},this._serverSettings)).json()}get _licensesUrl(){var l;return(l=this._preferredLicensesUrl)!==null&&l!==void 0?l:Gv.URLExt.join(this._serverSettings.baseUrl,Gv.PageConfig.getOption("licensesUrl"))+"/"}}i.LicensesClient=e;class t extends $u{constructor(l){super(),this._selectedPackageChanged=new G(this),this._trackerDataChanged=new G(this),this._currentPackageIndex=0,this._licenses
6278Ready=new jZ.PromiseDelegate,this._packageFilter={},this._trans=l.trans,this._client=l.client,l.currentBundleName&&(this._currentBundleName=l.currentBundleName),l.packageFilter&&(this._packageFilter=l.packageFilter),l.currentPackageIndex&&(this._currentPackageIndex=l.currentPackageIndex)}async initLicenses(){try{this._serverResponse=await this._client.getBundles(),this._licensesReady.resolve(),this.stateChanged.emit(void 0)}catch(l){this._licensesReady.reject(l)}}async download(l){return this._client.download(l)}get selectedPackageChanged(){return this._selectedPackageChanged}get trackerDataChanged(){return this._trackerDataChanged}get bundleNames(){var l;return Object.keys(((l=this._serverResponse)===null||l===void 0?void 0:l.bundles)||{})}get currentBundleName(){return this._currentBundleName?this._currentBundleName:this.bundleNames.length?this.bundleNames[0]:null}set currentBundleName(l){this._currentBundleName!==l&&(this._currentBundleName=l,this.stateChanged.emit(void 0),this._trackerDataChanged.emit(void 0))}get licensesReady(){return this._licensesReady.promise}get bundles(){var l;return((l=this._serverResponse)===null||l===void 0?void 0:l.bundles)||{}}get currentPackageIndex(){return this._currentPackageIndex}set currentPackageIndex(l){this._currentPackageIndex!==l&&(this._currentPackageIndex=l,this._selectedPackageChanged.emit(void 0),this.stateChanged.emit(void 0),this._trackerDataChanged.emit(void 0))}get currentPackage(){var l;return this.currentBundleName&&this.bundles&&this._currentPackageIndex!=null?this.getFilteredPackages(((l=this.bundles[this.currentBundleName])===null||l===void 0?void 0:l.packages)||[])[this._currentPackageIndex]:null}get trans(){return this._trans}get title(){return`${this._currentBundleName||""} ${this._trans.__("Licenses")}`.trim()}get packageFilter(){return this._packageFilter}set packageFilter(l){this._packageFilter=l,this.stateChanged.emit(void 0),this._trackerDataChanged.emit(void 0)}getFilteredPackages(l){let u=[],c=Object.entries(this._packageFilter).filter(([d,h])=>h&&`${h}`.trim().length).map(([d,h])=>[d,`${h}`.toLowerCase().trim().split(" ")]);for(let d of l){let h=0;for(let[f,p]of c){let g=0,v=`${d[f]}`.toLowerCase();for(let _ of p)v.includes(_)&&(g+=1);g&&(h+=1)}h===c.length&&u.push(d)}return Object.values(u)}}i.Model=t;class r extends Ao{constructor(l){super(l),this.renderFilter=u=>{let c=this.model.packageFilter[u]||"";return lt.createElement("input",{type:"text",name:u,defaultValue:c,className:"jp-mod-styled",onInput:this.onFilterInput})},this.onFilterInput=u=>{let c=u.currentTarget,{name:d,value:h}=c;this.model.packageFilter={...this.model.packageFilter,[d]:h}},this.addClass("jp-Licenses-Filters"),this.addClass("jp-RenderedHTMLCommon")}render(){let{trans:l}=this.model;return lt.createElement("div",null,lt.createElement("label",null,lt.createElement("strong",{className:HZ},l.__("Filter Licenses By"))),lt.createElement("ul",null,lt.createElement("li",null,lt.createElement("label",null,l.__("Package")),this.renderFilter("name")),lt.createElement("li",null,lt.createElement("label",null,l.__("Version")),this.renderFilter("versionInfo")),lt.createElement("li",null,lt.createElement("label",null,l.__("License")),this.renderFilter("licenseId"))),lt.createElement("label",null,lt.createElement("strong",{className:HZ},l.__("Distributions"))))}}i.Filters=r;class n extends Ks.Renderer{constructor(l){super(),this.closeIconSelector=".lm-TabBar-tabCloseIcon",this.model=l}renderTab(l){let u=l.title.caption,c=this.createTabKey(l),d=this.createTabStyle(l),h=this.createTabClass(l),f=this.createTabDataset(l);return re.li({key:c,className:h,title:u,style:d,dataset:f},this.renderIcon(l),this.renderLabel(l),this.renderCountBadge(l))}renderCountBadge(l){let u=l.title.label,{bundles:c}=this.model,d=this.model.getFilteredPackages((c&&u?c[u].packages:[])||[]);return re.label({},`${d.length}`)}}i.BundleTabRenderer=n;class s extends Ao{constructor(l){super(l),this.renderRow=(u,c)=>{let d=c===this.model.currentPackageIndex,h=()=>this.model.currentPackageIndex=c;return lt.createElement("tr",{key:u.name,className:d?"jp-mod-selected":"",onClick:h},lt.createElement("td",null,lt.createElement("input",{type:"radio",name:"show-package-license",value:c,onChange:h,checked:d}
6278)),lt.createElement("th",null,u.name),lt.createElement("td",null,lt.createElement("code",null,u.versionInfo)),lt.createElement("td",null,lt.createElement("code",null,u.licenseId)))},this.addClass("jp-Licenses-Grid"),this.addClass("jp-RenderedHTMLCommon")}render(){var l;let{bundles:u,currentBundleName:c,trans:d}=this.model,h=this.model.getFilteredPackages(u&&c?((l=u[c])===null||l===void 0?void 0:l.packages)||[]:[]);return h.length?lt.createElement("form",null,lt.createElement("table",null,lt.createElement("thead",null,lt.createElement("tr",null,lt.createElement("td",null),lt.createElement("th",null,d.__("Package")),lt.createElement("th",null,d.__("Version")),lt.createElement("th",null,d.__("License")))),lt.createElement("tbody",null,h.map(this.renderRow)))):lt.createElement("blockquote",null,lt.createElement("em",null,d.__("No Packages found")))}}i.Grid=s;class o extends Ao{constructor(l){super(l),this.addClass("jp-Licenses-Text"),this.addClass("jp-RenderedHTMLCommon"),this.addClass("jp-RenderedMarkdown")}render(){let{currentPackage:l,trans:u}=this.model,c="",d=u.__("No Package selected"),h="";if(l){let{name:f,versionInfo:p,licenseId:g,extractedText:v}=l;c=`${f} v${p}`,d=`${u.__("License")}: ${g||u.__("No License ID found")}`,h=v||u.__("No License Text found")}return[lt.createElement("h1",{key:"h1"},c),lt.createElement("blockquote",{key:"quote"},lt.createElement("em",null,d)),lt.createElement("code",{key:"code"},h)]}}i.FullText=o})(Fa||(Fa={}))});var q4,Cm,H4=b(()=>{q4=N(ws());(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,h){let f=h??q4.ServerConnection.makeSettings(),p=await(await q4.ServerConnection.makeRequest(d,{},f)).text();return s(p)}i.printURL=n;async function s(d){let h=typeof d=="string",f=o(),p=window.document.body;p.appendChild(f),h?(f.srcdoc=d,await l(f)):(f.src="about:blank",await l(f),a(f,d));let g=u();c(f.contentWindow),await g,p.removeChild(f)}function o(){let d=window.document.createElement("iframe");d.setAttribute("sandbox","allow-modals allow-same-origin");let h="visibility:hidden;width:0;height:0;position:absolute;z-index:-9999;bottom:0;";return d.setAttribute("style",h),d.setAttribute("width","0"),d.setAttribute("height","0"),d}function a(d,h){d.contentDocument.body.appendChild(h.cloneNode(!0)),d.contentDocument.close()}function l(d){return new Promise(h=>{d.onload=()=>h()})}function u(){return new Promise(d=>{let h=()=>{document.removeEventListener("mousemove",h,!0),document.removeEventListener("mousedown",h,!0),document.removeEventListener("keydown",h,!0),d()};document.addEventListener("mousemove",h,!0),document.addEventListener("mousedown",h,!0),document.addEventListener("keydown",h,!0)})}function c(d){d.document.execCommand("print",!1)||d.print()}})(Cm||(Cm={}))});var UZ,WZ,GZ=b(()=>{Jn();Mo();$v();Fo();_4();H4();UZ=!0,WZ=class extends V{constructor(e){super(e),this._changeGuard=!1,this._spinner=new xv,this._isRevealed=!1,this._evtMouseDown=()=>{this.node.contains(document.activeElement)||this._focusContent()},this.addClass("jp-MainAreaWidget"),this.addClass("jp-MainAreaWidget-ContainStrict"),this.id=gm.createDomID();let t=(e.translator||St).load("jupyterlab"),r=this._content=e.content;r.node.setAttribute("role","region"),r.node.setAttribute("aria-label",t.__("main area content"));let n=this._toolbar=e.toolbar||new _v({noFocusOnClick:!0});n.node.setAttribute("role","toolbar"),n.node.setAttribute("aria-label",t.__("main area toolbar"));let s=this._contentHeader=e.contentHeader||new qh({direction:"top-to-bottom",spacing:0}),o=this.layout=new ji({spacing:0});o.direction="top-to-bottom",ji.setStretch(n,0),ji.setStretch(s,0),ji.setStretch(r,1),o.addWidget(n),o.addWidget(s),o.addWidget(r),r.id||(r.id=gm.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(()=>
6278{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),ji.setStretch(l,1),this._disposeSpinner(),r.dispose(),this._content=null,n.dispose(),this._toolbar=null,o.addWidget(l),this._isRevealed=!0,l})):(this._spinner.dispose(),this.removeClass("jp-MainAreaWidget-ContainStrict"),r.disposed.connect(()=>this.dispose()),this._isRevealed=!0,this._revealed=Promise.resolve(void 0))}[Cm.symbol](){return this._content?Cm.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,UZ)}onBeforeDetach(e){this.node.removeEventListener("mousedown",this._evtMouseDown,UZ),super.onBeforeDetach(e)}onCloseRequest(e){this.dispose()}onUpdateRequest(e){this._content&&se.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 YZ,XZ,KZ,JZ=b(()=>{YZ=N(ci());Mo();XZ=N(Ge());(function(i){function e(a,l){return a.filter(u=>!u.disabled).sort((u,c)=>{var d,h;return((d=u.rank)!==null&&d!==void 0?d:1/0)-((h=c.rank)!==null&&h!==void 0?h: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:YZ.Text.titleCase(d.id.trim())),a.icon&&(d.title.icon=q.resolve({icon:a.icon})),a.mnemonic!==void 0&&(d.title.mnemonic=a.mnemonic),(c=a.items)===null||c===void 0||c.filter(h=>!h.disabled).sort((h,f)=>{var p,g;return((p=h.rank)!==null&&p!==void 0?p:1/0)-((g=f.rank)!==null&&g!==void 0?g:1/0)}).map(h=>{n(h,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 h=a.find(f=>f.id===d.id);h?o(d,h,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 h,f;let p=l?.items.find((g,v)=>{var _,x,y;return g.type===d.type&&g.command===((_=d.command)!==null&&_!==void 0?_:"")&&((x=g.submenu)===null||x===void 0?void 0:x.id)===((y=d.submenu)===null||y===void 0?void 0:y.id)});if(p&&d.type!=="separator")if(d.disabled)l.removeItem(p);else switch((h=d.type)!==null&&h!==void 0?h:"command"){case"command":d.command&&(XZ.JSONExt.deepEqual(p.args,(f=d.args)!==null&&f!==void 0?f:{})||n(d,l,u));break;case"submenu":d.submenu&&o(d.submenu,p.submenu,u)}else n(d,l,u)})}})(KZ||(KZ={}))});var QZ,j4,ZZ,eQ=b(()=>{QZ=N(Ge());tt();j4=class{constructor(){this._isDisposed=!1,this._queue=[],this._changed=new G(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=>
6278r.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,G.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:QZ.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],h=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(h),this._changed.emit({type:"updated",notification:h}),!0}return!1}};(function(i){i.manager=new j4;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:h,error:f,success:p}=c,g=i.manager.notify(h.message,"in-progress",(d=h.options)!==null&&d!==void 0?d:{});return u.then(v=>{var _,x,y;i.manager.update({id:g,message:p.message(v,(_=p.options)===null||_===void 0?void 0:_.data),type:"success",...p.options,data:(y=(x=p.options)===null||x===void 0?void 0:x.data)!==null&&y!==void 0?y:v})}).catch(v=>{var _,x,y;i.manager.update({id:g,message:f.message(v,(_=f.options)===null||_===void 0?void 0:_.data),type:"error",...f.options,data:(y=(x=f.options)===null||x===void 0?void 0:x.data)!==null&&y!==void 0?y:v})}),g}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})(ZZ||(ZZ={}))});function rCe(i){var e,t;let r=(e=i.showKernels)!==null&&e!==void 0?e:!0,n=(t=i.showTerminals)!==null&&t!==void 0?t:i.terminals>0;return Na.default.createElement(Lv,{role:"button",tabIndex:0,spacing:V4,onClick:i.handleClick,onKeyDown:i.handleKeyDown,style:{cursor:"pointer"}},n?Na.default.createElement(Lv,{spacing:V4},Na.default.createElement(mm,{source:i.terminals}),Na.default.createElement(LR.react,{verticalAlign:"middle",stylesheet:"statusBar"})):null,r?Na.default.createElement(Lv,{spacing:V4},Na.default.createElement(mm,{source:i.sessions}),Na.default.createElement(TR.react,{verticalAlign:"middle",stylesheet:"statusBar"})):null)}var Na,V4,Wh,tQ=b(()=>{Jn();Mo();Na=N(ue());v4();V4=4;Wh=class extends Ao{constructor(e){super(new Wh.Model),this._serviceManager=e.serviceManager,this._handleClick=e.onClick,this._handleKeyDown=e.onKeyDown,this.translator=e.translator||St,this._showKernels=e.showKernels,this._showTerminals=e.showTerminals,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(){if(!this.model)return null;let e=this._trans.__("%1 Terminals, %2 Kernel sessions",this.model.terminals,this.model.sessions);return this.node.title=e,Na.default.createElement(rCe,{sessions:this.model.sessions,terminals:this.model.terminals,handleClick:this._handleClick,handleKeyDown:this._handleKeyDown,showKernels:this._showKernels,showTerminals:this._showTerminals})}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 $u{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})(Wh||(Wh={}))});var iQ=M(U4=>{"use strict";
6278Object.defineProperty(U4,"__esModule",{value:!0});U4.default
vendor: 47,163 bytes, line 6278
6278=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: 10,474 bytes, line 6278
6278function(i){return i.charCodeAt(0)}))});var rQ=M(W4=>{"use strict";Object.defineProperty(W4,"__esModule",{value:!0});W4.default=new Uint16Array("\u0200aglq	��\x1B\u026D�\0\0�p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(function(i){return i.charCodeAt(0)}))});var K4=M(Uu=>{"use strict";var G4;Object.defineProperty(Uu,"__esModule",{value:!0});Uu.replaceCodePoint=Uu.fromCodePoint=void 0;var nCe=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]]);Uu.fromCodePoint=(G4=String.fromCodePoint)!==null&&G4!==void 0?G4: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 nQ(i){var e;return i>=55296&&i<=57343||i>1114111?65533:(e=nCe.get(i))!==null&&e!==void 0?e:i}Uu.replaceCodePoint=nQ;function sCe(i){return(0,Uu.fromCodePoint)(nQ(i))}Uu.default=sCe});var Z4=M(nt=>{"use strict";var oCe=nt&&nt.__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]}),aCe=nt&&nt.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),lCe=nt&&nt.__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)&&oCe(e,i,t);return aCe(e,i),e},sQ=nt&&nt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(nt,"__esModule",{value:!0});nt.decodeXML=nt.decodeHTMLStrict=nt.decodeHTMLAttribute=nt.decodeHTML=nt.determineBranch=nt.EntityDecoder=nt.DecodingMode=nt.BinTrieFlags=nt.fromCodePoint=nt.replaceCodePoint=nt.decodeCodePoint=nt.xmlDecodeTree=nt.htmlDecodeTree=void 0;var oQ=sQ(iQ());nt.htmlDecodeTree=oQ.default;var aQ=sQ(rQ());nt.xmlDecodeTree=aQ.default;var X4=lCe(K4());nt.decodeCodePoint=X4.default;var lQ=K4();Object.defineProperty(nt,"replaceCodePoint",{enumerable:!0,get:function(){return lQ.replaceCodePoint}});Object.defineProperty(nt,"fromCodePoint",{enumerable:!0,get:function(){return lQ.fromCodePoint}});var tr;(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"})(tr||(tr={}));var uCe=32,sd;(function(i){i[i.VALUE_LENGTH=49152]="VALUE_LENGTH",i[i.BRANCH_LENGTH=16256]="BRANCH_LENGTH",i[i.JUMP_TABLE=127]="JUMP_TABLE"})(sd=nt.BinTrieFlags||(nt.BinTrieFlags={}));function Y4(i){return i>=tr.ZERO&&i<=tr.NINE}function cCe(i){return i>=tr.UPPER_A&&i<=tr.UPPER_F||i>=tr.LOWER_A&&i<=tr.LOWER_F}function dCe(i){return i>=tr.UPPER_A&&i<=tr.UPPER_Z||i>=tr.LOWER_A&&i<=tr.LOWER_Z||Y4(i)}function hCe(i){return i===tr.EQUALS||dCe(i)}var er;(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"})(er||(er={}));var Bo;(function(i){i[i.Legacy=0]="Legacy",i[i.Strict=1]="Strict",i[i.Attribute=2]="Attribute"})(Bo=nt.DecodingMode||(nt.DecodingMode={}));var uQ=function(){function i(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=er.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Bo.Strict}return i.prototype.startEntity=function(e){this.decodeMode=e,this.state=er.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},i.prototype.write=function(e,t){switch(this.state){case er.EntityStart:return e.charCodeAt(t)===tr.NUM?(this.state=er.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=er.NamedEntity,this.stateNamedEntity(e,t));case er.NumericStart:return this.stateNumericStart(e,t);case er.NumericDecimal:return this.stateNumericDecimal(e,t);case er.NumericHex:return this.stateNumericHex(e,t);case er.NamedEntity:return this.stateNamedEntity(e,t)}},i.prototype.stateNumericStart=function(e,t){return t>=e.length?-1:(e.charCodeAt(t)|uCe)===tr.LOWER_X?(this.state=er.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=er.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(Y4(n)||cCe(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(Y4(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===tr.SEMI)this.consumed+=1;else if(this.decodeMode===Bo.Strict)return 0;return this.emitCodePoint((0,X4.replaceCodePoint)(this.result),this.consumed),this.errors&&(e!==tr.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&sd.VALUE_LENGTH)>>14;t<e.length;t++,this.excess++){var o=e.charCodeAt(t);if(this.treeIndex=dQ(r,n,this.treeIndex+Math.max(1,s),o),this.treeIndex<0)return this.result===0||this.decodeMode===Bo.Attribute&&(s===0||hCe(o))?0:this.emitNotTerminatedNamedEntity();if(n=r[this.treeIndex],s=(n&sd.VALUE_LENGTH)>>14,s!==0){if(o===tr.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Bo.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]&sd.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]&~sd.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 er.NamedEntity:return this.result!==0&&(this.decodeMode!==Bo.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case er.NumericDecimal:return this.emitNumericEntity(0,2);case er.NumericHex:return this.emitNumericEntity(0,3);case er.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case er.EntityStart:return 0}},i}();nt.EntityDecoder=uQ;function cQ(i){var e="",t=new uQ(i,function(r){return e+=(0,X4.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 dQ(i,e,t,r){var n=(e&sd.BRANCH_LENGTH)>>7,s=e&sd.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}nt.determineBranch=dQ;var J4=cQ(oQ.default),fCe=cQ(aQ.default);function pCe(i,e){return e===void 0&&(e=Bo.Legacy),J4(i,e)}nt.decodeHTML=pCe;function mCe(i){return J4(i,Bo.Attribute)}nt.decodeHTMLAttribute=mCe;function gCe(i){return J4(i,Bo.Strict)}nt.decodeHTMLStrict=gCe;function bCe(i){return fCe(i,Bo.Strict)}nt.decodeXML=bCe});var Q4=M(Kh=>{"use strict";Object.defineProperty(Kh,"__esModule",{value:!0});Kh.QuoteType=void 0;var od=Z4(),Se;(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"})(Se||(Se={}));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 Ba(i){return i===Se.Space||i===Se.NewLine||i===Se.Tab||i===Se.FormFeed||i===Se.CarriageReturn}function Kv(i){return i===Se.Slash||i===Se.Gt||Ba(i)}function hQ(i){return i>=Se.Zero&&i<=Se.Nine}function vCe(i){return i>
6278=Se.LowerA&&i<=Se.LowerZ||i>=Se.UpperA&&i<=Se.UpperZ}function _Ce(i){return i>=Se.UpperA&&i<=Se.UpperF||i>=Se.LowerA&&i<=Se.LowerF}var Gh;(function(i){i[i.NoValue=0]="NoValue",i[i.Unquoted=1]="Unquoted",i[i.Single=2]="Single",i[i.Double=3]="Double"})(Gh=Kh.QuoteType||(Kh.QuoteType={}));var wn={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])},yCe=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?od.xmlDecodeTree:od.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===Se.Lt||!this.decodeEntities&&this.fastForwardTo(Se.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=J.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===Se.Amp&&(this.state=J.BeforeEntity)},i.prototype.stateSpecialStartSequence=function(e){var t=this.sequenceIndex===this.currentSequence.length,r=t?Kv(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===Se.Gt||Ba(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===wn.TitleEnd?this.decodeEntities&&e===Se.Amp&&(this.state=J.BeforeEntity):this.fastForwardTo(Se.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===Se.Lt)},i.prototype.stateCDATASequence=function(e){e===wn.Cdata[this.sequenceIndex]?++this.sequenceIndex===wn.Cdata.length&&(this.state=J.InCommentLike,this.currentSequence=wn.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===wn.CdataEnd?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?!Kv(e):vCe(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===Se.ExclamationMark)this.state=J.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===Se.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===wn.TitleEnd[2]?this.startSpecial(wn.TitleEnd,3):this.state=!this.xmlMode&&t===wn.ScriptEnd[2]?J.BeforeSpecialS:J.InTagName}else e===Se.Slash?this.state=J.BeforeClosingTagName:(this.state=J.Text,this.stateText(e))},i.prototype.stateInTagName=function(e){Kv(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=J.BeforeAttributeName,this.stateBeforeAttributeName(e))},i.prototype.stateBeforeClosingTagName=function(e){Ba(e)||(e===Se.Gt?this.state=J.Text:(this.state=this.isTagStartChar(e)?J.InClosingTagName:J.InSpecialComment,this.sectionStart=this.index))},i.prototype.stateInClosingTagName=function(e){(e===Se.Gt||Ba(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=J.AfterClosingTagName,this.stateAfterClosingTagName(e))},i.prototype.stateAfterClosingTagName=function(e){(e===Se.Gt||this.fastForwardTo(Se.Gt))&&(this.state=J.Text,this.baseState=J.Text,this.sectionStart=this.index+1)},i.prototype.stateBeforeAttributeName=function(e){e===Se.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===Se.Slash?this.state=J.InSelfClosingTag:Ba(e)||(this.state=J.InAttributeName,this.sectionStart=this.index)},i.prototype.stateInSelfClosingTag=function(e){e===Se.Gt?(this.cbs.onselfclosingtag(this.index),this.state=J.Text,this.baseState=J.Text,this.sectionStart=this.index+1,this.isSpecial=!1):Ba(e)||(this.state=J.BeforeAttributeName,this.stateBeforeAttributeName(e))},i.prototype.stateInAttributeName=function(e){(e===Se.Eq||Kv(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=J.AfterAttributeName,this.stateAfterAttributeName(e))},i.prototype.stateAfterAttributeName=function(e){e===Se.Eq?this.state=J.BeforeAttributeValue:e===Se.Slash||e===Se.Gt?(this.cbs.onattribend(Gh.NoValue,this.index),this.state=J.BeforeAttributeName,this.stateBeforeAttributeName(e)):Ba(e)||(this.cbs.onattribend(Gh.NoValue,this.index),this.state=J.InAttributeName,this.sectionStart=this.index)},i.prototype.stateBeforeAttributeValue=function(e){e===Se.DoubleQuote?(this.state=J.InAttributeValueDq,this.sectionStart=this.index+1):e===Se.SingleQuote?(this.state=J.InAttributeValueSq,this.sectionStart=this.index+1):Ba(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===Se.DoubleQuote?Gh.Double:Gh.Single,this.index),this.state=J.BeforeAttributeName):this.decodeEntities&&e===Se.Amp&&(this.baseState=this.state,this.state=J.BeforeEntity)},i.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,Se.DoubleQuote)},i.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,Se.SingleQuote)},i.prototype.stateInAttributeValueNoQuotes=function(e){Ba(e)||e===Se.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(Gh.Unquoted,this.index),this.state=J.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===Se.Amp&&(this.baseState=this.state,this.state=J.BeforeEntity)},i.prototype.stateBeforeDeclaration=function(e){e===Se.OpeningSquareBracket?(this.state=J.CDATASequence,this.sequenceIndex=0):this.state=e===Se.Dash?J.BeforeComment:J.InDeclaration},i.prototype.stateInDeclaration=function(e){(e===Se.Gt||this.fastForwardTo(Se.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=J.Text,this.sectionStart=this.index+1)},i.prototype.stateInProcessingInstruction=function(e){(e===Se.Gt||this.fastForwardTo(Se.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=J.Text,this.sectionStart=this.index+1)},i.prototype.stateBeforeComment=function(e){e===Se.Dash?(this.state=J.InCommentLike,this.currentSequence=wn.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=J.InDeclaration},i.prototype.stateInSpecialComment=function(e){(e===Se.Gt||this.fastForwardTo(Se.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===wn.ScriptEnd[3]?this.startSpecial(wn.ScriptEnd,4):t===wn.StyleEnd[3]?this.startSpecial(wn.StyleEnd,4):(this.state=J.InTagName,this.stateInTagName(e))},i.prototype.stateBeforeEntity=function(e){this.entityExcess=1,this.entityResult=0,e===Se.Number?this.state=J.BeforeNumericEntity:e===Se.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,od.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&od.BinTrieFlags.VALUE_LENGTH;if(t){var r=(t>>14)-1;if(!this.allowLegacyEntity()&&e!==Se.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]&od.BinTrieFlags.VALUE_LENGTH)>>14;switch(e){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~od.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)===Se.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,od.replaceCodePoint)(this.entityResult))),this.state=this.baseState},i.prototype.stateInNumericEntity=function(e){e===Se.Semi?this.emitNumericEntity(!0):hQ(e)?(this.entityResult=this.entityResult*10+(e-Se.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},i.prototype.stateInHexEntity=function(e){e===Se.Semi?this.emitNumericEntity(!0):hQ(e)?(this.entityResult=this.entityResult*16+(e-Se.Zero),this.entityExcess++):_Ce(e)?(this.entityResult=this.entityResult*16+((e|32)-Se.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;this.state===J.InCommentLike?this.currentSequence===wn.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}();Kh.default=yCe});var eI=M(zo=>{"use strict";var xCe=zo&&zo.__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]}),wCe=zo&&zo.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),SCe=zo&&zo.__importStar||function(i){if(i&&i.__esModule)return i;var e={};
6278if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&xCe(e,i,t);return wCe(e,i),e};Object.defineProperty(zo,"__esModule",{value:!0});zo.Parser=void 0;var Yv=SCe(Q4()),fQ=Z4(),Yh=new Set(["input","option","optgroup","select","button","datalist","textarea"]),Mt=new Set(["p"]),pQ=new Set(["thead","tbody"]),mQ=new Set(["dd","dt"]),gQ=new Set(["rt","rp"]),CCe=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",Mt],["h1",Mt],["h2",Mt],["h3",Mt],["h4",Mt],["h5",Mt],["h6",Mt],["select",Yh],["input",Yh],["output",Yh],["button",Yh],["datalist",Yh],["textarea",Yh],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",mQ],["dt",mQ],["address",Mt],["article",Mt],["aside",Mt],["blockquote",Mt],["details",Mt],["div",Mt],["dl",Mt],["fieldset",Mt],["figcaption",Mt],["figure",Mt],["footer",Mt],["form",Mt],["header",Mt],["hr",Mt],["main",Mt],["nav",Mt],["ol",Mt],["pre",Mt],["section",Mt],["table",Mt],["ul",Mt],["rt",gQ],["rp",gQ],["tbody",pQ],["tfoot",pQ]]),ICe=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),bQ=new Set(["math","svg"]),vQ=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),ECe=/\s|\//,kCe=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:Yv.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,fQ.fromCodePoint)(e)),this.startIndex=n},i.prototype.isVoidElement=function(e){return!this.options.xmlMode&&ICe.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&&CCe.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),bQ.has(e)?this.foreignContext.push(!0):vQ.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()),(bQ.has(u)||vQ.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,fQ.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===Yv.QuoteType.Double?'"':e===Yv.QuoteType.Single?"'":e===Yv.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(ECe),r=t
6278<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,h,f;this.endIndex=t;var p=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,p),(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(p,"]]")),(f=(h=this.cbs).oncommentend)===null||f===void 0||f.call(h)),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}();zo.Parser=kCe});var Xh=M(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.Doctype=jt.CDATA=jt.Tag=jt.Style=jt.Script=jt.Comment=jt.Directive=jt.Text=jt.Root=jt.isTag=jt.ElementType=void 0;var Wn;(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"})(Wn=jt.ElementType||(jt.ElementType={}));function TCe(i){return i.type===Wn.Tag||i.type===Wn.Script||i.type===Wn.Style}jt.isTag=TCe;jt.Root=Wn.Root;jt.Text=Wn.Text;jt.Directive=Wn.Directive;jt.Comment=Wn.Comment;jt.Script=Wn.Script;jt.Style=Wn.Style;jt.Tag=Wn.Tag;jt.CDATA=Wn.CDATA;jt.Doctype=Wn.Doctype});var nI=M(Ze=>{"use strict";var Wu=Ze&&Ze.__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}
6278e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Im=Ze&&Ze.__assign||function(){return Im=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},Im.apply(this,arguments)};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.cloneNode=Ze.hasChildren=Ze.isDocument=Ze.isDirective=Ze.isComment=Ze.isText=Ze.isCDATA=Ze.isTag=Ze.Element=Ze.Document=Ze.CDATA=Ze.NodeWithChildren=Ze.ProcessingInstruction=Ze.Comment=Ze.Text=Ze.DataNode=Ze.Node=void 0;var Sn=Xh(),iI=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),rI(this,e)},i}();Ze.Node=iI;var Xv=function(i){Wu(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}(iI);Ze.DataNode=Xv;var _Q=function(i){Wu(e,i);function e(){var t=i!==null&&i.apply(this,arguments)||this;return t.type=Sn.ElementType.Text,t}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(Xv);Ze.Text=_Q;var yQ=function(i){Wu(e,i);function e(){var t=i!==null&&i.apply(this,arguments)||this;return t.type=Sn.ElementType.Comment,t}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(Xv);Ze.Comment=yQ;var xQ=function(i){Wu(e,i);function e(t,r){var n=i.call(this,r)||this;return n.name=t,n.type=Sn.ElementType.Directive,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(Xv);Ze.ProcessingInstruction=xQ;var Jv=function(i){Wu(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}(iI);Ze.NodeWithChildren=Jv;var wQ=function(i){Wu(e,i);function e(){var t=i!==null&&i.apply(this,arguments)||this;return t.type=Sn.ElementType.CDATA,t}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(Jv);Ze.CDATA=wQ;var SQ=function(i){Wu(e,i);function e(){var t=i!==null&&i.apply(this,arguments)||this;return t.type=Sn.ElementType.Root,t}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(Jv);Ze.Document=SQ;var CQ=function(i){Wu(e,i);function e(t,r,n,s){n===void 0&&(n=[]),s===void 0&&(s=t==="script"?Sn.ElementType.Script:t==="style"?Sn.ElementType.Style:Sn.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]}})}
vendor: 4,604 bytes, line 6278
6278,enumerable:!1,configurable:!0}),e}(Jv);Ze.Element=CQ;function IQ(i){return(0,Sn.isTag)(i)}Ze.isTag=IQ;function EQ(i){return i.type===Sn.ElementType.CDATA}Ze.isCDATA=EQ;function kQ(i){return i.type===Sn.ElementType.Text}Ze.isText=kQ;function TQ(i){return i.type===Sn.ElementType.Comment}Ze.isComment=TQ;function AQ(i){return i.type===Sn.ElementType.Directive}Ze.isDirective=AQ;function MQ(i){return i.type===Sn.ElementType.Root}Ze.isDocument=MQ;function ACe(i){return Object.prototype.hasOwnProperty.call(i,"children")}Ze.hasChildren=ACe;function rI(i,e){e===void 0&&(e=!1);var t;if(kQ(i))t=new _Q(i.data);else if(TQ(i))t=new yQ(i.data);else if(IQ(i)){var r=e?tI(i.children):[],n=new CQ(i.name,Im({},i.attribs),r);r.forEach(function(l){return l.parent=n}),i.namespace!=null&&(n.namespace=i.namespace),i["x-attribsNamespace"]&&(n["x-attribsNamespace"]=Im({},i["x-attribsNamespace"])),i["x-attribsPrefix"]&&(n["x-attribsPrefix"]=Im({},i["x-attribsPrefix"])),t=n}else if(EQ(i)){var r=e?tI(i.children):[],s=new wQ(r);r.forEach(function(u){return u.parent=s}),t=s}else if(MQ(i)){var r=e?tI(i.children):[],o=new SQ(r);r.forEach(function(u){return u.parent=o}),i["x-mode"]&&(o["x-mode"]=i["x-mode"]),t=o}else if(AQ(i)){var a=new xQ(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}Ze.cloneNode=rI;function tI(i){for(var e=i.map(function(r){return rI(r,!0)}),t=1;t<e.length;t++)e[t].prev=e[t-1],e[t-1].next=e[t];return e}});var za=M(qo=>{"use strict";var MCe=qo&&qo.__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]}),RCe=qo&&qo.__exportStar||function(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&MCe(e,i,t)};Object.defineProperty(qo,"__esModule",{value:!0});qo.DomHandler=void 0;var sI=Xh(),Gu=nI();RCe(nI(),qo);var RQ={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},DQ=function(){function i(e,t,r){this.dom=[],this.root=new Gu.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof t=="function"&&(r=t,t=RQ),typeof e=="object"&&(t=e,e=void 0),this.callback=e??null,this.options=t??RQ,this.elementCB=r??null}return i.prototype.onparserinit=function(e){this.parser=e},i.prototype.onreset=function(){this.dom=[],this.root=new Gu.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?sI.ElementType.Tag:void 0,n=new Gu.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===sI.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var r=new Gu.Text(e);this.addNode(r),this.lastNode=r}},i.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===sI.ElementType.Comment){this.lastNode.data+=e;return}var t=new Gu.Comment(e);this.addNode(t),this.lastNode=t},i.prototype.oncommentend=function(){this.lastNode=null},i.prototype.oncdatastart=function(){var e=new Gu.Text(""),t=new Gu.CDATA([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 Gu.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}();qo.DomHandler=DQ;qo.default=DQ});var OQ=M(oI=>{"use strict";Object.defineProperty(oI,"__esModule",{value:!0});oI.default
vendor: 47,163 bytes, line 6278
6278=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(
6278function(i){return i.charCodeAt(0)}))});var LQ=M(aI=>{"use strict";Object.defineProperty(aI,"__esModule",{value:!0});aI.default=new Uint16Array("\u0200aglq	��\x1B\u026D�\0\0�p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(function(i){return i.charCodeAt(0)}))});var uI=M(Ku=>{"use strict";var lI;Object.defineProperty(Ku,"__esModule",{value:!0});Ku.replaceCodePoint=Ku.fromCodePoint=void 0;var DCe=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]]);Ku.fromCodePoint=(lI=String.fromCodePoint)!==null&&lI!==void 0?lI: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 $Q(i){var e;return i>=55296&&i<=57343||i>1114111?65533:(e=DCe.get(i))!==null&&e!==void 0?e:i}Ku.replaceCodePoint=$Q;function OCe(i){return(0,Ku.fromCodePoint)($Q(i))}Ku.default=OCe});var fI=M(st=>{"use strict";var LCe=st&&st.__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]}),$Ce=st&&st.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),PCe=st&&st.__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)&&LCe(e,i,t);return $Ce(e,i),e},PQ=st&&st.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(st,"__esModule",{value:!0});st.decodeXML=st.decodeHTMLStrict=st.decodeHTMLAttribute=st.decodeHTML=st.determineBranch=st.EntityDecoder=st.DecodingMode=st.BinTrieFlags=st.fromCodePoint=st.replaceCodePoint=st.decodeCodePoint=st.xmlDecodeTree=st.htmlDecodeTree=void 0;var FQ=PQ(OQ());st.htmlDecodeTree=FQ.default;var NQ=PQ(LQ());st.xmlDecodeTree=NQ.default;var dI=PCe(uI());st.decodeCodePoint=dI.default;var BQ=uI();Object.defineProperty(st,"replaceCodePoint",{enumerable:!0,get:function(){return BQ.replaceCodePoint}});Object.defineProperty(st,"fromCodePoint",{enumerable:!0,get:function(){return BQ.fromCodePoint}});var rr;(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"})(rr||(rr={}));var FCe=32,ad;(function(i){i[i.VALUE_LENGTH=49152]="VALUE_LENGTH",i[i.BRANCH_LENGTH=16256]="BRANCH_LENGTH",i[i.JUMP_TABLE=127]="JUMP_TABLE"})(ad=st.BinTrieFlags||(st.BinTrieFlags={}));function cI(i){return i>=rr.ZERO&&i<=rr.NINE}function NCe(i){return i>=rr.UPPER_A&&i<=rr.UPPER_F||i>=rr.LOWER_A&&i<=rr.LOWER_F}function BCe(i){return i>=rr.UPPER_A&&i<=rr.UPPER_Z||i>=rr.LOWER_A&&i<=rr.LOWER_Z||cI(i)}function zCe(i){return i===rr.EQUALS||BCe(i)}var ir;(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"})(ir||(ir={}));var Ho;(function(i){i[i.Legacy=0]="Legacy",i[i.Strict=1]="Strict",i[i.Attribute=2]="Attribute"}
vendor: 4,754 bytes, line 6278
6278)(Ho=st.DecodingMode||(st.DecodingMode={}));var zQ=function(){function i(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=ir.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ho.Strict}return i.prototype.startEntity=function(e){this.decodeMode=e,this.state=ir.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},i.prototype.write=function(e,t){switch(this.state){case ir.EntityStart:return e.charCodeAt(t)===rr.NUM?(this.state=ir.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=ir.NamedEntity,this.stateNamedEntity(e,t));case ir.NumericStart:return this.stateNumericStart(e,t);case ir.NumericDecimal:return this.stateNumericDecimal(e,t);case ir.NumericHex:return this.stateNumericHex(e,t);case ir.NamedEntity:return this.stateNamedEntity(e,t)}},i.prototype.stateNumericStart=function(e,t){return t>=e.length?-1:(e.charCodeAt(t)|FCe)===rr.LOWER_X?(this.state=ir.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=ir.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(cI(n)||NCe(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(cI(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===rr.SEMI)this.consumed+=1;else if(this.decodeMode===Ho.Strict)return 0;return this.emitCodePoint((0,dI.replaceCodePoint)(this.result),this.consumed),this.errors&&(e!==rr.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&ad.VALUE_LENGTH)>>14;t<e.length;t++,this.excess++){var o=e.charCodeAt(t);if(this.treeIndex=HQ(r,n,this.treeIndex+Math.max(1,s),o),this.treeIndex<0)return this.result===0||this.decodeMode===Ho.Attribute&&(s===0||zCe(o))?0:this.emitNotTerminatedNamedEntity();if(n=r[this.treeIndex],s=(n&ad.VALUE_LENGTH)>>14,s!==0){if(o===rr.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Ho.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]&ad.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]&~ad.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 ir.NamedEntity:return this.result!==0&&(this.decodeMode!==Ho.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ir.NumericDecimal:return this.emitNumericEntity(0,2);case ir.NumericHex:return this.emitNumericEntity(0,3);case ir.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ir.EntityStart:return 0}},i}();st.EntityDecoder=zQ;function qQ(i){var e="",t=new zQ(i,function(r){return e+=(0,dI.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 HQ(i,e,t,r){var n=(e&ad.BRANCH_LENGTH)>>7,s=e&ad.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}st.determineBranch=HQ;var hI=qQ(FQ.default),qCe=qQ(NQ.default);function HCe(i,e){return e===void 0&&(e=Ho.Legacy),hI(i,e)}st.decodeHTML=HCe;function jCe(i){return hI(i,Ho.Attribute)}st.decodeHTMLAttribute=jCe;function VCe(i){return hI(i,Ho.Strict)}st.decodeHTMLStrict=VCe;function UCe(i){return qCe(i,Ho.Strict)}st.decodeXML=UCe});var jQ=M(pI=>{"use strict";Object.defineProperty(pI,"__esModule",{value:!0});function Zv(i){for(var e=1;e<i.length;e++)i[e][0]+=i[e-1][0]+1;return i}pI.default=new Map(Zv
vendor: 10,610 bytes, line 6278
6278([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(
6278Zv([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(Zv([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;
6278"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(Zv([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]))});var Qv=M(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.escapeText=Vi.escapeAttribute=Vi.escapeUTF8=Vi.escape=Vi.encodeXML=Vi.getCodePoint=Vi.xmlReplacer=void 0;Vi.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var VQ=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);Vi.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 UQ(i){for(var e="",t=0,r;(r=Vi.xmlReplacer.exec(i))!==null;){var n=r.index,s=i.charCodeAt(n),o=VQ.get(s);o!==void 0?(e+=i.substring(t,n)+o,t=n+1):(e+="".concat(i.substring(t,n),"&#x").concat((0,Vi.getCodePoint)(i,n).toString(16),";"),t=Vi.xmlReplacer.lastIndex+=Number((s&64512)===55296))}return e+i.substr(t)}Vi.encodeXML=UQ;Vi.escape=UQ;function mI(i,e){return function(r){for(var n,s=0,o="";n=i.exec(r);
6278)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)}}Vi.escapeUTF8=mI(/[&<>'"]/g,VQ);Vi.escapeAttribute=mI(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]]));Vi.escapeText=mI(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))});var gI=M(Yu=>{"use strict";var WCe=Yu&&Yu.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Yu,"__esModule",{value:!0});Yu.encodeNonAsciiHTML=Yu.encodeHTML=void 0;var GCe=WCe(jQ()),WQ=Qv(),KCe=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function YCe(i){return GQ(KCe,i)}Yu.encodeHTML=YCe;function XCe(i){return GQ(WQ.xmlReplacer,i)}Yu.encodeNonAsciiHTML=XCe;function GQ(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=GCe.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,WQ.getCodePoint)(e,s);t+="&#x".concat(c.toString(16),";"),r=i.lastIndex+=Number(c!==o)}}return t+e.substr(r)}});var XQ=M(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.decodeXMLStrict=Re.decodeHTML5Strict=Re.decodeHTML4Strict=Re.decodeHTML5=Re.decodeHTML4=Re.decodeHTMLAttribute=Re.decodeHTMLStrict=Re.decodeHTML=Re.decodeXML=Re.DecodingMode=Re.EntityDecoder=Re.encodeHTML5=Re.encodeHTML4=Re.encodeNonAsciiHTML=Re.encodeHTML=Re.escapeText=Re.escapeAttribute=Re.escapeUTF8=Re.escape=Re.encodeXML=Re.encode=Re.decodeStrict=Re.decode=Re.EncodingMode=Re.EntityLevel=void 0;var bI=fI(),KQ=gI(),e_=Qv(),Jh;(function(i){i[i.XML=0]="XML",i[i.HTML=1]="HTML"})(Jh=Re.EntityLevel||(Re.EntityLevel={}));var Em;(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"})(Em=Re.EncodingMode||(Re.EncodingMode={}));function YQ(i,e){e===void 0&&(e=Jh.XML);var t=typeof e=="number"?e:e.level;if(t===Jh.HTML){var r=typeof e=="object"?e.mode:void 0;return(0,bI.decodeHTML)(i,r)}return(0,bI.decodeXML)(i)}Re.decode=YQ;function JCe(i,e){var t;e===void 0&&(e=Jh.XML);var r=typeof e=="number"?{level:e}:e;return(t=r.mode)!==null&&t!==void 0||(r.mode=bI.DecodingMode.Strict),YQ(i,r)}Re.decodeStrict=JCe;function ZCe(i,e){e===void 0&&(e=Jh.XML);var t=typeof e=="number"?{level:e}:e;return t.mode===Em.UTF8?(0,e_.escapeUTF8)(i):t.mode===Em.Attribute?(0,e_.escapeAttribute)(i):t.mode===Em.Text?(0,e_.escapeText)(i):t.level===Jh.HTML?t.mode===Em.ASCII?(0,KQ.encodeNonAsciiHTML)(i):(0,KQ.encodeHTML)(i):(0,e_.encodeXML)(i)}Re.encode=ZCe;var km=Qv();Object.defineProperty(Re,"encodeXML",{enumerable:!0,get:function(){return km.encodeXML}});Object.defineProperty(Re,"escape",{enumerable:!0,get:function(){return km.escape}});Object.defineProperty(Re,"escapeUTF8",{enumerable:!0,get:function(){return km.escapeUTF8}});Object.defineProperty(Re,"escapeAttribute",{enumerable:!0,get:function(){return km.escapeAttribute}});Object.defineProperty(Re,"escapeText",{enumerable:!0,get:function(){return km.escapeText}});var t_=gI();Object.defineProperty(Re,"encodeHTML",{enumerable:!0,get:function(){return t_.encodeHTML}});Object.defineProperty(Re,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return t_.encodeNonAsciiHTML}});Object.defineProperty(Re,"encodeHTML4",{enumerable:!0,get:function(){return t_.encodeHTML}});Object.defineProperty(Re,"encodeHTML5",{enumerable:!0,get:function(){return t_.encodeHTML}});var Ys=fI();Object.defineProperty(Re,"EntityDecoder",{enumerable:!0,get:function(){return Ys.EntityDecoder}});Object.defineProperty(Re,"DecodingMode",{enumerable:!0,get:function(){return Ys.DecodingMode}});Object.defineProperty(Re,"decodeXML",{enumerable:!0,get:function(){return Ys.decodeXML}});Object.defineProperty(Re,"decodeHTML",{enumerable:!0,get:function(){return Ys.decodeHTML}});Object.defineProperty(Re,"decodeHTMLStrict",{enumerable:!0,get:function(){return Ys.decodeHTMLStrict}});Object.defineProperty(Re,"decodeHTMLAttribute",{enumerable:!0,get:function(){return Ys.decodeHTMLAttribute}});Object.defineProperty(Re,"decodeHTML4",{enumerable:!0,get:function(){return Ys.decodeHTML}});Object.defineProperty(Re,"decodeHTML5",{enumerable:!0,get:function(){return Ys.decodeHTML}});Object.defineProperty(Re,"decodeHTML4Strict",{enumerable:!0,get:function(){return Ys.decodeHTMLStrict}});Object.defineProperty(Re,"decodeHTML5Strict",{enumerable:!0,get:function(){return Ys.decodeHTMLStrict}});Object.defineProperty(Re,"decodeXMLStrict",{enumerable:!0,get:function(){return Ys.decodeXML}})});var JQ=M(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{value:!0});Zh.attributeNames=Zh.elementNames=void 0;Zh.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]}));Zh.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 eee=M(Gn=>{"use strict";var Qh=Gn&&Gn.__assign||function(){return Qh=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},Qh.apply(this,arguments)},QCe=Gn&&Gn.__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]}),e6e=Gn&&Gn.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),t6e=Gn&&Gn.__importStar||function(i){if(i&&i.__esModule)return i;var e={};
vendor: 10,179 bytes, lines 6278-6279
6278if(i!=null)for(var t in i)t!=="default"&&Object.prototype.hasOwnProperty.call(i,t)&&QCe(e,i,t);return e6e(e,i),e};Object.defineProperty(Gn,"__esModule",{value:!0});Gn.render=void 0;var qa=t6e(Xh()),i_=XQ(),QQ=JQ(),i6e=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function r6e(i){return i.replace(/"/g,"&quot;")}function n6e(i,e){var t;if(i){var r=((t=e.encodeEntities)!==null&&t!==void 0?t:e.decodeEntities)===!1?r6e:e.xmlMode||e.encodeEntities!=="utf8"?i_.encodeXML:i_.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=QQ.attributeNames.get(n))!==null&&o!==void 0?o:n),!e.emptyAttrs&&!e.xmlMode&&a===""?n:"".concat(n,'="').concat(r(a),'"')}).join(" ")}}var ZQ=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function r_(i,e){e===void 0&&(e={});for(var t=("length"in i)?i:[i],r="",n=0;n<t.length;n++)r+=s6e(t[n],e);return r}Gn.render=r_;Gn.default=r_;function s6e(i,e){switch(i.type){case qa.Root:return r_(i.children,e);case qa.Doctype:case qa.Directive:return u6e(i);case qa.Comment:return h6e(i);case qa.CDATA:return d6e(i);case qa.Script:case qa.Style:case qa.Tag:return l6e(i,e);case qa.Text:return c6e(i,e)}}var o6e=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),a6e=new Set(["svg","math"]);function l6e(i,e){var t;e.xmlMode==="foreign"&&(i.name=(t=QQ.elementNames.get(i.name))!==null&&t!==void 0?t:i.name,i.parent&&o6e.has(i.parent.name)&&(e=Qh(Qh({},e),{xmlMode:!1}))),!e.xmlMode&&a6e.has(i.name)&&(e=Qh(Qh({},e),{xmlMode:"foreign"}));var r="<".concat(i.name),n=n6e(i.attribs,e);return n&&(r+=" ".concat(n)),i.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&ZQ.has(i.name))?(e.xmlMode||(r+=" "),r+="/>"):(r+=">",i.children.length>0&&(r+=r_(i.children,e)),(e.xmlMode||!ZQ.has(i.name))&&(r+="</".concat(i.name,">"))),r}function u6e(i){return"<".concat(i.data,">")}function c6e(i,e){var t,r=i.data||"";return((t=e.encodeEntities)!==null&&t!==void 0?t:e.decodeEntities)!==!1&&!(!e.xmlMode&&i.parent&&i6e.has(i.parent.name))&&(r=e.xmlMode||e.encodeEntities!=="utf8"?(0,i_.encodeXML)(r):(0,i_.escapeText)(r)),r}function d6e(i){return"<![CDATA[".concat(i.children[0].data,"]]>")}function h6e(i){return"<!--".concat(i.data,"-->")}});var yI=M(Ha=>{"use strict";var f6e=Ha&&Ha.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ha,"__esModule",{value:!0});Ha.getOuterHTML=tee;Ha.getInnerHTML=g6e;Ha.getText=n_;Ha.textContent=vI;Ha.innerText=_I;var jo=za(),p6e=f6e(eee()),m6e=Xh();function tee(i,e){return(0,p6e.default)(i,e)}function g6e(i,e){return(0,jo.hasChildren)(i)?i.children.map(function(t){return tee(t,e)}).join(""):""}function n_(i){return Array.isArray(i)?i.map(n_).join(""):(0,jo.isTag)(i)?i.name==="br"?`
6279`:n_(i.children):(0,jo.isCDATA)(i)?n_(i.children):(0,jo.isText)(i)?i.data:""}function vI(i){return Array.isArray(i)?i.map(vI).join(""):(0,jo.hasChildren)(i)&&!(0,jo.isComment)(i)?vI(i.children):(0,jo.isText)(i)?i.data:""}function _I(i){return Array.isArray(i)?i.map(_I).join(""):(0,jo.hasChildren)(i)&&(i.type===m6e.ElementType.Tag||(0,jo.isCDATA)(i))?_I(i.children):(0,jo.isText)(i)?i.data:""}});var nee=M(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.getChildren=iee;Vo.getParent=ree;Vo.getSiblings=b6e;Vo.getAttributeValue=v6e;Vo.hasAttrib=_6e;Vo.getName=y6e;Vo.nextElementSibling=x6e;Vo.prevElementSibling=w6e;var xI=za();function iee(i){return(0,xI.hasChildren)(i)?i.children:[]}function ree(i){return i.parent||null}function b6e(i){var e,t,r=ree(i);if(r!=null)return iee(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}function v6e(i,e){var t;return(t=i.attribs)===null||t===void 0?void 0:t[e]}function _6e(i,e){return i.attribs!=null&&Object.prototype.hasOwnProperty.call(i.attribs,e)&&i.attribs[e]!=null}function y6e(i){return i.name}function x6e(i){for(var e,t=i.next;t!==null&&!(0,xI.isTag)(t);)e=t,t=e.next;return t}function w6e(i){for(var e,t=i.prev;t!==null&&!(0,xI.isTag)(t);)e=t,t=e.prev;return t}});var see=M(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.removeElement=Tm;Xu.replaceElement=S6e;Xu.appendChild=C6e;Xu.append=I6e;Xu.prependChild=E6e;Xu.prepend=k6e;function Tm(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}function S6e(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}}function C6e(i,e){if(Tm(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}function I6e(i,e){Tm(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)}function E6e(i,e){if(Tm(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}function k6e(i,e){Tm(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}});var wI=M(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.filter=T6e;Ju.find=oee;Ju.findOneChild=A6e;Ju.findOne=aee;Ju.existsOne=lee;Ju.findAll=M6e;var ld=za();function T6e(i,e,t,r){return t===void 0&&(t=!0),r===void 0&&(r=1/0),oee(i,Array.isArray(e)?e:[e],t,r)}function oee(i,e,t,r){for(var n=[],s=[Array.isArray(e)?e:[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,ld.hasChildren)(a)&&a.children.length>0&&(o.unshift(0),s.unshift(a.children))}}function A6e(i,e){return e.find(i)}function aee(i,e,t){t===void 0&&(t=!0);for(var r=Array.isArray(e)?e:[e],n=0;n<r.length;n++){var s=r[n];if((0,ld.isTag)(s)&&i(s))return s;if(t&&(0,ld.hasChildren)(s)&&s.children.length>0){var o=aee(i,s.children,!0);if(o)return o}}return null}function lee(i,e){return(Array.isArray(e)?e:[e]).some(function(t){return(0,ld.isTag)(t)&&i(t)||(0,ld.hasChildren)(t)&&lee(i,t.children)})}function M6e(i,e){for(var t=[],r=[Array.isArray(e)?e:[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,ld.isTag)(s)&&i(s)&&t.push(s),(0,ld.hasChildren)(s)&&s.children.length>0&&(n.unshift(0),r.unshift(s.children))}}});var CI=M(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.testElement=D6e;Zu.getElements=O6e;Zu.getElementById=L6e;Zu.getElementsByTagName=$6e;Zu.getElementsByClassName=P6e;Zu.getElementsByTagType=F6e;var ud=za(),Am=wI(),s_={tag_name:function(i){return typeof i=="function"?function(e){return(0,ud.isTag)(e)&&i(e.name)}:i==="*"?ud.isTag:function(e){return(0,ud.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,ud.isText)(e)&&i(e.data)}:function(e){return(0,ud.isText)(e)&&e.data===i}}};function SI(i,e){return typeof e=="function"?function(t){return(0,ud.isTag)(t)&&e(t.attribs[i])}:function(t){return(0,ud.isTag)(t)&&t.attribs[i]===e}}function R6e(i,e){return function(t){return i(t)||e(t)}}function uee(i){var e=Object.keys(i).map(function(t){var r=i[t];return Object.prototype.hasOwnProperty.call(s_,t)?s_[t](r):SI(t,r)});return e.length===0?null:e.reduce(R6e)}function D6e(i,e){var t=uee(i);return t?t(e):!0}function O6e(i,e,t,r){r===void 0&&(r=1/0);var n=uee(i);return n?(0,Am.filter)(n,e,t,r):[]}function L6e(i,e,t){return t===void 0&&(t=!0),Array.isArray(e)||(e=[e]),(0,Am.findOne)(SI("id",i),e,t)}function $6e(i,e,t,r){return t===void 0&&(t=!0),r===void 0&&(r=1/0),(0,Am.filter)(s_.tag_name(i),e,t,r)}function P6e(i,e,t,r){return t===void 0&&(t=!0),r===void 0&&(r=1/0),(0,Am.filter)(SI("class",i),e,t,r)}function F6e(i,e,t,r){return t===void 0&&(t=!0),r===void 0&&(r=1/0),(0,Am.filter)(s_.tag_type(i),e,t,r)}});var hee=M(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.DocumentPosition=void 0;cd.removeSubsets=N6e;cd.compareDocumentPosition=dee;cd.uniqueSort=B6e;var cee=za();function N6e(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}var Xs;(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"})(Xs||(cd.DocumentPosition=Xs={}));function dee(i,e){var t=[],r=[];if(i===e)return 0;for(var n=(0,cee.hasChildren)(i)?i:i.parent;n;)t.unshift(n),n=n.parent;for(n=(0,cee.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 Xs.DISCONNECTED;var a=t[o-1],l=a.children,u=t[o],c=r[o];return l.indexOf(u)>l.indexOf(c)?a===e?Xs.FOLLOWING|Xs.CONTAINED_BY:Xs.FOLLOWING:a===i?Xs.PRECEDING|Xs.CONTAINS:Xs.PRECEDING}function B6e(i){return i=i.filter(function(e,t,r){return!r.includes(e,t+1)}),i.sort(function(e,t){var r=dee(e,t);return r&Xs.PRECEDING?-1:r&Xs.FOLLOWING?1:0}),i}});var pee=M(II=>{"use strict";Object.defineProperty(II,"__esModule",{value:!0});II.getFeed=q6e;var z6e=yI(),Mm=CI();function q6e(i){var e=o_(W6e,i);return e?e.name==="feed"?H6e(e):j6e(e):null}function H6e(i){var e,t=i.children,r={type:"atom",items:(0,Mm.getElementsByTagName)("entry",t).map(function(o){var a,l=o.children,u={media:fee(l)};Cn(u,"id","id",l),Cn(u,"title","title",l);var c=(a=o_("link",l))===null||a===void 0?void 0:a.attribs.href;c&&(u.link=c);var d=Qu("summary",l)||Qu("content",l);d&&(u.description=d);var h=Qu("updated",l);return h&&(u.pubDate=new Date(h)),u})};Cn(r,"id","id",t),Cn(r,"title","title",t);var n=(e=o_("link",t))===null||e===void 0?void 0:e.attribs.href;
6279n&&(r.link=n),Cn(r,"description","subtitle",t);var s=Qu("updated",t);return s&&(r.updated=new Date(s)),Cn(r,"author","email",t,!0),r}function j6e(i){var e,t,r=(t=(e=o_("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,Mm.getElementsByTagName)("item",i.children).map(function(o){var a=o.children,l={media:fee(a)};Cn(l,"id","guid",a),Cn(l,"title","title",a),Cn(l,"link","link",a),Cn(l,"description","description",a);var u=Qu("pubDate",a)||Qu("dc:date",a);return u&&(l.pubDate=new Date(u)),l})};Cn(n,"title","title",r),Cn(n,"link","link",r),Cn(n,"description","description",r);var s=Qu("lastBuildDate",r);return s&&(n.updated=new Date(s)),Cn(n,"author","managingEditor",r,!0),n}var V6e=["url","type","lang"],U6e=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function fee(i){return(0,Mm.getElementsByTagName)("media:content",i).map(function(e){for(var t=e.attribs,r={medium:t.medium,isDefault:!!t.isDefault},n=0,s=V6e;n<s.length;n++){var o=s[n];t[o]&&(r[o]=t[o])}for(var a=0,l=U6e;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 o_(i,e){return(0,Mm.getElementsByTagName)(i,e,!0,1)[0]}function Qu(i,e,t){return t===void 0&&(t=!1),(0,z6e.textContent)((0,Mm.getElementsByTagName)(i,e,t,1)).trim()}function Cn(i,e,t,r,n){n===void 0&&(n=!1);var s=Qu(t,r,n);s&&(i[e]=s)}function W6e(i){return i==="rss"||i==="feed"||i==="rdf:RDF"}});var a_=M(Vt=>{"use strict";var G6e=Vt&&Vt.__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]}),dd=Vt&&Vt.__exportStar||function(i,e){for(var t in i)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&G6e(e,i,t)};Object.defineProperty(Vt,"__esModule",{value:!0});Vt.hasChildren=Vt.isDocument=Vt.isComment=Vt.isText=Vt.isCDATA=Vt.isTag=void 0;dd(yI(),Vt);dd(nee(),Vt);dd(see(),Vt);dd(wI(),Vt);dd(CI(),Vt);dd(hee(),Vt);dd(pee(),Vt);var ef=za();Object.defineProperty(Vt,"isTag",{enumerable:!0,get:function(){return ef.isTag}});Object.defineProperty(Vt,"isCDATA",{enumerable:!0,get:function(){return ef.isCDATA}});Object.defineProperty(Vt,"isText",{enumerable:!0,get:function(){return ef.isText}});Object.defineProperty(Vt,"isComment",{enumerable:!0,get:function(){return ef.isComment}});Object.defineProperty(Vt,"isDocument",{enumerable:!0,get:function(){return ef.isDocument}});Object.defineProperty(Vt,"hasChildren",{enumerable:!0,get:function(){return ef.hasChildren}})});var xee=M(gt=>{"use strict";var K6e=gt&&gt.__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]}),Y6e=gt&&gt.__setModuleDefault||(Object.create?function(i,e){Object.defineProperty(i,"default",{enumerable:!0,value:e})}:function(i,e){i.default=e}),mee=gt&&gt.__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)&&K6e(e,i,t);return Y6e(e,i),e},X6e=gt&&gt.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(gt,"__esModule",{value:!0});gt.DomUtils=gt.parseFeed=gt.getFeed=gt.ElementType=gt.Tokenizer=gt.createDomStream=gt.parseDOM=gt.parseDocument=gt.DefaultHandler=gt.DomHandler=gt.Parser=void 0;var gee=eI(),J6e=eI();Object.defineProperty(gt,"Parser",{enumerable:!0,get:function(){return J6e.Parser}});var bee=za(),vee=za();Object.defineProperty(gt,"DomHandler",{enumerable:!0,get:function(){return vee.DomHandler}});Object.defineProperty(gt,"DefaultHandler",{enumerable:!0,get:function(){return vee.DomHandler}});function _ee(i,e){var t=new bee.DomHandler(void 0,e);return new gee.Parser(t,e).end(i),t.root}gt.parseDocument=_ee;function yee(i,e){return _ee(i,e).children}gt.parseDOM=yee;function Z6e(i,e,t){var r=new bee.DomHandler(i,e,t);return new gee.Parser(r,e)}gt.createDomStream=Z6e;var Q6e=Q4();Object.defineProperty(gt,"Tokenizer",{enumerable:!0,get:function(){return X6e(Q6e).default}});gt.ElementType=mee(Xh());var e4e=a_(),t4e=a_();Object.defineProperty(gt,"getFeed",{enumerable:!0,get:function(){return t4e.getFeed}});var i4e={xmlMode:!0};function r4e(i,e){return e===void 0&&(e=i4e),(0,e4e.getFeed)(yee(i,e))}gt.parseFeed=r4e;gt.DomUtils=mee(a_())});var See=M((WIt,wee)=>{"use strict";wee.exports=i=>
6279{if(typeof i!="string")throw new TypeError("Expected a string");return i.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}});var Iee=M(EI=>{"use strict";Object.defineProperty(EI,"__esModule",{value:!0});function Cee(i){return Object.prototype.toString.call(i)==="[object Object]"}function n4e(i){var e,t;return Cee(i)===!1?!1:(e=i.constructor,e===void 0?!0:(t=e.prototype,!(Cee(t)===!1||t.hasOwnProperty("isPrototypeOf")===!1)))}EI.isPlainObject=n4e});var Aee=M((KIt,Tee)=>{"use strict";var s4e=function(e){return o4e(e)&&!a4e(e)};function o4e(i){return!!i&&typeof i=="object"}function a4e(i){var e=Object.prototype.toString.call(i);return e==="[object RegExp]"||e==="[object Date]"||c4e(i)}var l4e=typeof Symbol=="function"&&Symbol.for,u4e=l4e?Symbol.for("react.element"):60103;function c4e(i){return i.$$typeof===u4e}function d4e(i){return Array.isArray(i)?[]:{}}function Rm(i,e){return e.clone!==!1&&e.isMergeableObject(i)?tf(d4e(i),i,e):i}function h4e(i,e,t){return i.concat(e).map(function(r){return Rm(r,t)})}function f4e(i,e){if(!e.customMerge)return tf;var t=e.customMerge(i);return typeof t=="function"?t:tf}function p4e(i){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(i).filter(function(e){return Object.propertyIsEnumerable.call(i,e)}):[]}function Eee(i){return Object.keys(i).concat(p4e(i))}function kee(i,e){try{return e in i}catch{return!1}}function m4e(i,e){return kee(i,e)&&!(Object.hasOwnProperty.call(i,e)&&Object.propertyIsEnumerable.call(i,e))}function g4e(i,e,t){var r={};return t.isMergeableObject(i)&&Eee(i).forEach(function(n){r[n]=Rm(i[n],t)}),Eee(e).forEach(function(n){m4e(i,n)||(kee(i,n)&&t.isMergeableObject(e[n])?r[n]=f4e(n,t)(i[n],e[n],t):r[n]=Rm(e[n],t))}),r}function tf(i,e,t){t=t||{},t.arrayMerge=t.arrayMerge||h4e,t.isMergeableObject=t.isMergeableObject||s4e,t.cloneUnlessOtherwiseSpecified=Rm;var r=Array.isArray(e),n=Array.isArray(i),s=r===n;return s?r?t.arrayMerge(i,e,t):g4e(i,e,t):Rm(e,t)}tf.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,n){return tf(r,n,t)},{})};var b4e=tf;Tee.exports=b4e});var Ree=M((Mee,l_)=>{(function(i,e){typeof define=="function"&&define.amd?define([],e):typeof l_=="object"&&l_.exports?l_.exports=e():i.parseSrcset=e()})(Mee,function(){return function(i){function e(y){return y===" "||y==="	"||y===`
6280`||y==="\f"||y==="\r"}function t(y){var C,S=y.exec(i.substring(g));if(S)return C=S[0],g+=C.length,C}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,h,f,p,g=0,v=[];;){if(t(s),g>=r)return v;c=t(o),d=[],c.slice(-1)===","?(c=c.replace(a,""),x()):_()}function _(){for(t(n),h="",f="in descriptor";;){if(p=i.charAt(g),f==="in descriptor")if(e(p))h&&(d.push(h),h="",f="after descriptor");else if(p===","){g+=1,h&&d.push(h),x();return}else if(p==="(")h=h+p,f="in parens";else if(p===""){h&&d.push(h),x();return}else h=h+p;else if(f==="in parens")if(p===")")h=h+p,f="in descriptor";else if(p===""){d.push(h),x();return}else h=h+p;else if(f==="after descriptor"&&!e(p))if(p===""){x();return}else f="in descriptor",g-=1;g+=1}}function x(){var y=!1,C,S,R,I,E={},w,k,O,z,Y;for(I=0;I<d.length;I++)w=d[I],k=w[w.length-1],O=w.substring(0,w.length-1),z=parseInt(O,10),Y=parseFloat(O),l.test(O)&&k==="w"?((C||S)&&(y=!0),z===0?y=!0:C=z):u.test(O)&&k==="x"?((C||S||R)&&(y=!0),Y<0?y=!0:S=Y):l.test(O)&&k==="h"?((R||S)&&(y=!0),z===0?y=!0:R=z):y=!0;y?console&&console.log&&console.log("Invalid srcset descriptor found in '"+i+"' at '"+w+"'."):(E.url=c,C&&(E.w=C),S&&(E.d=S),R&&(E.h=R),v.push(E))}}})});var Oee=M((YIt,kI)=>{var Ke=String,Dee=function(){return{isColorSupported:!1,reset:Ke,bold:Ke,dim:Ke,italic:Ke,underline:Ke,inverse:Ke,hidden:Ke,strikethrough:Ke,black:Ke,red:Ke,green:Ke,yellow:Ke,blue:Ke,magenta:Ke,cyan:Ke,white:Ke,gray:Ke,bgBlack:Ke,bgRed:Ke,bgGreen:Ke,bgYellow:Ke,bgBlue:Ke,bgMagenta:Ke,bgCyan:Ke,bgWhite:Ke,blackBright:Ke,redBright:Ke,greenBright:Ke,yellowBright:Ke,blueBright:Ke,magentaBright:Ke,cyanBright:Ke,whiteBright:Ke,bgBlackBright:Ke,bgRedBright:Ke,bgGreen
6280Bright:Ke,bgYellowBright:Ke,bgBlueBright:Ke,bgMagentaBright:Ke,bgCyanBright:Ke,bgWhiteBright:Ke}};kI.exports=Dee();kI.exports.createColors=Dee});var TI=M(()=>{});var u_=M((ZIt,Pee)=>{"use strict";var Lee=Oee(),$ee=TI(),hd=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,hd)}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=Lee.isColorSupported);let r=c=>c,n=c=>c,s=c=>c;if(e){let{bold:c,gray:d,red:h}=Lee.createColors(!0);n=f=>c(h(f)),r=f=>d(f),$ee&&(s=f=>$ee(f))}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 h=a+1+d,f=" "+(" "+h).slice(-u)+" | ";if(h===this.line){if(c.length>160){let g=20,v=Math.max(0,this.column-g),_=Math.max(this.column+g,this.endColumn+g),x=c.slice(v,_),y=r(f.replace(/\d/g," "))+c.slice(0,Math.min(this.column-1,g-1)).replace(/[^\t]/g," ");return n(">")+r(f)+s(x)+`
6281 `+y+n("^")}let p=r(f.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(f)+s(c)+`
6282 `+p+n("^")}return" "+r(f)+s(c)}).join(`
6283`)}toString(){let e=this.showSourceCode();return e&&(e=`
6284
6285`+e+`
6286`),this.name+": "+this.message+e}};Pee.exports=hd;hd.default=hd});var AI=M((QIt,Nee)=>{"use strict";var Fee={after:`
6287`,beforeClose:`
6288`,beforeComment:`
6289`,beforeDecl:`
6290`,beforeOpen:" ",beforeRule:`
6291`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:"    ",semicolon:!1};function v4e(i){return i[0].toUpperCase()+i.slice(1)}var Dm=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(`
6292`)){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 Fee[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"+v4e(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=Fee[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(`
6293`)&&(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(`
6294`)&&(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(`
6295`)&&(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(`
6296`)&&(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(`
6297`);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)}};Nee.exports=Dm;Dm.default=Dm});var Om=M((eEt,Bee)=>{"use strict";var _4e=AI();function MI(i,e){new _4e(e).stringify(i)}Bee.exports=MI;MI.default=MI});var c_=M((tEt,RI)=>{"use strict";RI.exports.isClean=Symbol("isClean");RI.exports.my=Symbol("my")});var Pm=M((iEt,zee)=>{"use strict";var y4e=u_(),x4e=AI(),w4e=Om(),{isClean:Lm,my:S4e}=c_();function DI(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=>DI(o,t)):(s==="object"&&n!==null&&(n=DI(n)),t[r]=n)}return t}function ja(i,e){if(e&&typeof e.offset<"u")return e.offset;let t=1,r=1,n=0;for(let s=0;s<i.length;s++){if(r===e.line&&t===e.column){n=s;break}i[s]===`
6298`?(t=1,r+=1):t+=1}return n}var $m=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[Lm]=!1,this[S4e]=!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=DI(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}error(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 y4e(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[Lm]=!0}
6298markDirty(){if(this[Lm]){this[Lm]=!1;let e=this;for(;e=e.parent;)e[Lm]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,s=r.slice(ja(r,this.source.start),ja(r,this.source.end)).indexOf(e.word);s!==-1&&(t=this.positionInside(s))}return t}positionInside(e){let t=this.source.start.column,r=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,s=ja(n,this.source.start),o=s+e;for(let a=s;a<o;a++)n[a]===`
6299`?(t=1,r+=1):t+=1;return{column:t,line:r,offset:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:ja(t,this.source.start)},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:ja(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let o=t.slice(ja(t,this.source.start),ja(t,this.source.end)).indexOf(e.word);o!==-1&&(r=this.positionInside(o),n=this.positionInside(o+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:ja(t,e.start)}:e.index&&(r=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line,offset:ja(t,e.end)}:typeof e.endIndex=="number"?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<r.line||n.line===r.line&&n.column<=r.column)&&(n={column:r.column+1,line:r.line,offset:r.offset+1}),{end:n,start:r}}raw(e,t){return new x4e().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"){if(a==null)continue;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}toString(e=w4e){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)}};zee.exports=$m;$m.default=$m});var Nm=M((rEt,qee)=>{"use strict";var C4e=Pm(),Fm=class extends C4e{constructor(e){super(e),this.type="comment"}};qee.exports=Fm;Fm.default=Fm});var zm=M((nEt,Hee)=>{"use strict";var I4e=Pm(),Bm=class extends I4e{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};Hee.exports=Bm;Bm.default=Bm});var ec=M((sEt,Jee)=>{"use strict";var jee=Nm(),Vee=zm(),E4e=Pm(),{isClean:Uee,my:Wee}=c_(),OI,Gee,Kee,LI;function Yee(i){return i.map(e=>(e.nodes&&(e.nodes=Yee(e.nodes)),delete e.source,e))}function Xee(i){if(i[Uee]=!1,i.proxyOf.nodes)for(let e of i.proxyOf.nodes)Xee(e)}var Kn=class extends E4e{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]}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"?()=>
vendor: 11,433 bytes, lines 6299-6300
6299e.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=Yee(Gee(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 Vee(e)]}else if(e.selector||e.selectors)e=[new LI(e)];else if(e.name)e=[new OI(e)];else if(e.text)e=[new jee(e)];else throw new Error("Unknown node type in node creation");return e.map(n=>(n[Wee]||Kn.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[Uee]&&Xee(n),n.raws||(n.raws={}),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)}))}};Kn.registerParse=i=>{Gee=i};Kn.registerRule=i=>{LI=i};Kn.registerAtRule=i=>{OI=i};Kn.registerRoot=i=>{Kee=i};Jee.exports=Kn;Kn.default=Kn;Kn.rebuild=i=>{i.type==="atrule"?Object.setPrototypeOf(i,OI.prototype):i.type==="rule"?Object.setPrototypeOf(i,LI.prototype):i.type==="decl"?Object.setPrototypeOf(i,Vee.prototype):i.type==="comment"?Object.setPrototypeOf(i,jee.prototype):i.type==="root"&&Object.setPrototypeOf(i,Kee.prototype),i[Wee]=!0,i.nodes&&i.nodes.forEach(e=>{Kn.rebuild(e)})}});var d_=M((oEt,Qee)=>{"use strict";var Zee=ec(),rf=class extends Zee{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)}};Qee.exports=rf;rf.default=rf;Zee.registerAtRule(rf)});var h_=M((aEt,ite)=>{"use strict";var k4e=ec(),ete,tte,fd=class extends k4e{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new ete(new tte,this,e).stringify()}};fd.registerLazyResult=i=>{ete=i};fd.registerProcessor=i=>{tte=i};ite.exports=fd;fd.default=fd});var nte=M((lEt,rte)=>{var T4e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",A4e=(i,e=21)=>(t=e)=>{let r="",n=t|0;for(;n--;)r+=i[Math.random()*i.length|0];return r},M4e=(i=21)=>{let e="",t=i|0;for(;t--;)e+=T4e[Math.random()*64|0];return e};rte.exports={nanoid:M4e,customAlphabet:A4e}});var f_=M((uEt,ste)=>{ste.exports={}});var p_=M(()=>{});var $I=M((hEt,ote)=>{ote.exports={}});var lte=M((fEt,ate)=>{ate.exports={}});var FI=M((pEt,dte)=>{"use strict";var{existsSync:R4e,readFileSync:D4e}=lte(),{dirname:PI,join:O4e}=f_(),{SourceMapConsumer:ute,SourceMapGenerator:cte}=p_();function L4e(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}var qm=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=PI(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new ute(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 L4e(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=PI(e),R4e(e))return this.mapFile=e,D4e(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 ute)return cte.fromSourceMap(t).toString();if(t instanceof cte)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=O4e(PI(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)}};dte.exports=qm;qm.default=qm});var Hm=M((mEt,gte)=>{"use strict";var{nanoid:$4e}=nte(),{isAbsolute:zI,resolve:qI}=f_(),{SourceMapConsumer:P4e,SourceMapGenerator:F4e}=p_(),{fileURLToPath:hte,pathToFileURL:m_}=$I(),fte=u_(),N4e=FI(),NI=TI(),BI=Symbol("lineToIndexCache"),B4e=Boolean(P4e&&F4e),pte=Boolean(qI&&zI);function mte(i){if(i[BI])return i[BI];let e=i.css.split(`
6300`),t=new Array(e.length),r=0;for(let n=0,s=e.length;n<s;n++)t[n]=r,r+=e[n].length+1;return i[BI]=t,t}var nf=class{get from(){return this.file||this.id}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,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!pte||/^\w+:\/\//.test(t.from)||zI(t.from)?this.file=t.from:this.file=qI(t.from)),pte&&B4e){let r=new N4e(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 "+$4e(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,n={}){let s,o,a,l,u;if(t&&typeof t=="object"){let d=t,h=r;if(typeof d.offset=="number"){l=d.offset;let f=this.fromOffset(l);t=f.line,r=f.col}else t=d.line,r=d.column,l=this.fromLineAndColumn(t,r);if(typeof h.offset=="number"){a=h.offset;let f=this.fromOffset(a);o=f.line,s=f.col}else o=h.line,s=h.column,a=this.fromLineAndColumn(h.line,h.column)}else if(r)l=this.fromLineAndColumn(t,r);else{l=t;let d=this.fromOffset(l);t=d.line,r=d.col}let c=this.origin(t,r,o,s);return c?u=new fte(e,c.endLine===void 0?c.line:{column:c.column,line:c.line},c.endLine===void 0?c.column:{column:c.endColumn,line:c.endLine},c.source,c.file,n.plugin):u=new fte(e,o===void 0?t:{column:r,line:t},o===void 0?r:{column:s,line:o},this.css,this.file,n.plugin),u.input={column:r,endColumn:s,endLine:o,endOffset:a,line:t,offset:l,source:this.css},this.file&&(m_&&(u.input.url=m_(this.file).toString()),u.input.file=this.file),u}fromLineAndColumn(e,t){return mte(this)[e-1]+t-1}fromOffset(e){let t=mte(this),r=t[t.length-1],n=0;if(e>=r)n=t.length-1;else{let s=t.length-2,o;for(;n<s;)if(o=n+(s-n>>1),e<t[o])s=o-1;else if(e>=t[o+1])n=o+1;else{n=o;break}}return{col:e-t[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:qI(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;zI(o.source)?l=m_(o.source):l=new URL(o.source,this.map.consumer().sourceRoot||m_(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(hte)u.file=hte(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}};gte.exports=nf;nf.default=nf;NI&&NI.registerInput&&NI.registerInput(nf)});var sf=M((gEt,yte)=>{"use strict";var bte=ec(),vte,_te,tc=class extends bte{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 vte(new _te,this,e).stringify()}};tc.registerLazyResult=i=>{vte=i};tc.registerProcessor=i=>{_te=i};yte.exports=tc;tc.default=tc;bte.registerRoot(tc)});var HI=M((bEt,xte)=>{"use strict";var jm={comma(i){return jm.split(i,[","],!0)},space(i){let e=[" ",`
6301`,"	"];return jm.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}};xte.exports=jm;jm.default=jm});var g_=M((vEt,Ste)=>{"use strict";var wte=ec(),z4e=HI(),of=class extends wte{get selectors(){return z4e.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)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};Ste.exports=of;of.default=of;wte.registerRule(of)});var Ite=M((_Et,Cte)=>{"use strict";var q4e=d_(),H4e=Nm(),j4e=zm(),V4e=Hm(),U4e=FI(),W4e=sf(),G4e=g_();function Vm(i,e){if(Array.isArray(i))return i.map(n=>Vm(n));let{inputs:t,...r}=i;if(t){e=[];for(let n of t){let s={...n,__proto__:V4e.prototype};s.map&&(s.map={...s.map,__proto__:U4e.prototype}),e.push(s)}}if(r.nodes&&(r.nodes=i.nodes.map(n=>Vm(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 W4e(r);if(r.type==="decl")return new j4e(r);if(r.type==="rule")return new G4e(r);if(r.type==="comment")return new H4e(r);if(r.type==="atrule")return new q4e(r);throw new Error("Unknown node type: "+i.type)}Cte.exports=Vm;Vm.default=Vm});var VI=M((yEt,Rte)=>{"use strict";var{dirname:b_,relative:kte,resolve:Tte,sep:Ate}=f_(),{SourceMapConsumer:Mte,SourceMapGenerator:v_}=p_(),{pathToFileURL:Ete}=$I(),K4e=Hm(),Y4e=Boolean(Mte&&v_),X4e=Boolean(b_&&Tte&&kte&&Ate),jI=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=`
6302`;this.css.includes(`\r
6303`)&&(t=`\r
6304`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||b_(e.file),n;this.mapOpts.sourcesContent===!1?(n=new Mte(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(),X4e&&Y4e&&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=v_.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new v_({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 v_({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(`
6305`),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?b_(this.opts.to):".";
vendor: 4,458 bytes, lines 6305-6306
6305typeof this.mapOpts.annotation=="string"&&(r=b_(Tte(r,this.mapOpts.annotation)));let n=kte(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 K4e(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(Ete){let r=Ete(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;Ate==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};Rte.exports=jI});var Pte=M((xEt,$te)=>{"use strict";var UI="'".charCodeAt(0),Dte='"'.charCodeAt(0),__="\\".charCodeAt(0),Ote="/".charCodeAt(0),y_=`
6306`.charCodeAt(0),Um=" ".charCodeAt(0),x_="\f".charCodeAt(0),w_="	".charCodeAt(0),S_="\r".charCodeAt(0),J4e="[".charCodeAt(0),Z4e="]".charCodeAt(0),Q4e="(".charCodeAt(0),eIe=")".charCodeAt(0),tIe="{".charCodeAt(0),iIe="}".charCodeAt(0),rIe=";".charCodeAt(0),nIe="*".charCodeAt(0),sIe=":".charCodeAt(0),oIe="@".charCodeAt(0),C_=/[\t\n\f\r "#'()/;[\\\]{}]/g,I_=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,aIe=/.[\r\n"'(/\\]/,Lte=/[\da-f]/i;$te.exports=function(e,t={}){let r=e.css.valueOf(),n=t.ignoreErrors,s,o,a,l,u,c,d,h,f,p,g=r.length,v=0,_=[],x=[];function y(){return v}function C(E){throw e.error("Unclosed "+E,v)}function S(){return x.length===0&&v>=g}function R(E){if(x.length)return x.pop();if(v>=g)return;let w=E?E.ignoreUnclosed:!1;switch(s=r.charCodeAt(v),s){case y_:case Um:case w_:case S_:case x_:{l=v;do l+=1,s=r.charCodeAt(l);while(s===Um||s===y_||s===w_||s===S_||s===x_);c=["space",r.slice(v,l)],v=l-1;break}case J4e:case Z4e:case tIe:case iIe:case sIe:case rIe:case eIe:{let k=String.fromCharCode(s);c=[k,k,v];break}case Q4e:{if(p=_.length?_.pop()[1]:"",f=r.charCodeAt(v+1),p==="url"&&f!==UI&&f!==Dte&&f!==Um&&f!==y_&&f!==w_&&f!==x_&&f!==S_){l=v;do{if(d=!1,l=r.indexOf(")",l+1),l===-1)if(n||w){l=v;break}else C("bracket");for(h=l;r.charCodeAt(h-1)===__;)h-=1,d=!d}while(d);c=["brackets",r.slice(v,l+1),v,l],v=l}else l=r.indexOf(")",v+1),o=r.slice(v,l+1),l===-1||aIe.test(o)?c=["(","(",v]:(c=["brackets",o,v,l],v=l);break}case UI:case Dte:{u=s===UI?"'":'"',l=v;do{if(d=!1,l=r.indexOf(u,l+1),l===-1)if(n||w){l=v+1;break}else C("string");for(h=l;r.charCodeAt(h-1)===__;)h-=1,d=!d}while(d);c=["string",r.slice(v,l+1),v,l],v=l;break}case oIe:{C_.lastIndex=v+1,C_.test(r),C_.lastIndex===0?l=r.length-1:l=C_.lastIndex-2,c=["at-word",r.slice(v,l+1),v,l],v=l;break}case __:{for(l=v,a=!0;r.charCodeAt(l+1)===__;)l+=1,a=!a;if(s=r.charCodeAt(l+1),a&&s!==Ote&&s!==Um&&s!==y_&&s!==w_&&s!==S_&&s!==x_&&(l+=1,Lte.test(r.charAt(l)))){for(;Lte.test(r.charAt(l+1));)l+=1;r.charCodeAt(l+1)===Um&&(l+=1)}c=["word",r.slice(v,l+1),v,l],v=l;break}default:{s===Ote&&r.charCodeAt(v+1)===nIe?(l=r.indexOf("*/",v+2)+1,l===0&&(n||w?l=r.length:C("comment")),c=["comment",r.slice(v,l+1),v,l],v=l):(I_.lastIndex=v+1,I_.test(r),I_.lastIndex===0?l=r.length-1:l=I_.lastIndex-2,c=["word",r.slice(v,l+1),v,l],_.push(c),v=l);break}}return v++,c}function I(E){x.push(E)}return{back:I,endOfFile:S,nextToken:R,position:y}}});var zte=M((wEt,Bte)=>{"use strict";var lIe=d_(),uIe=Nm(),cIe=zm(),dIe=sf(),Fte=g_(),hIe=Pte(),Nte={empty:!0,space:!0};function fIe(i){for(let e=i.length-1;e>=0;e--){let t=i[e],r=t[3]||t[2];if(r)return r}}var WI=class{constructor(e){this.input=e,this.root=new dIe,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 lIe;
vendor: 4,986 bytes, line 6306
6306t.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;for(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 uIe;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=hIe(this.input)}decl(e,t){let r=new cIe;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]||fIe(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 h=u;h>0;h--){let f=c[h][0];if(d.trim().startsWith("!")&&f!=="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 Fte;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="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}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()}
vendor: 4,326 bytes, line 6306
6306if(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 h=0;h<a;h+=1)s=r[h],o=s[0],o==="space"&&h===a-1&&!n?u=!1:o==="comment"?(d=r[h-1]?r[h-1][0]:"empty",c=r[h+1]?r[h+1][0]:"empty",!Nte[d]&&!Nte[c]?l.slice(-1)===","?u=!1:l+=s[1]:u=!1):l+=s[1];if(!u){let h=r.reduce((f,p)=>f+p[1],"");e.raws[t]={raw:h,value:l}}e[t]=l}rule(e){e.pop();let t=new Fte;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(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 "+e[0][1],{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})}};Bte.exports=WI});var k_=M((SEt,qte)=>{"use strict";var pIe=ec(),mIe=Hm(),gIe=zte();function E_(i,e){let t=new mIe(i,e),r=new gIe(t);try{r.parse()}catch(n){throw n}return r.root}qte.exports=E_;E_.default=E_;pIe.registerParse(E_)});var GI=M((CEt,Hte)=>{"use strict";var Wm=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}};Hte.exports=Wm;Wm.default=Wm});var T_=M((IEt,jte)=>{"use strict";var bIe=GI(),Gm=class{get content(){return this.css}constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css="",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 bIe(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};jte.exports=Gm;Gm.default=Gm});var KI=M((EEt,Ute)=>{"use strict";var Vte={};Ute.exports=function(e){Vte[e]||(Vte[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))}});var JI=M((TEt,Yte)=>{"use strict";var vIe=ec(),_Ie=h_(),yIe=VI(),xIe=k_(),Wte=T_(),wIe=sf(),SIe=Om(),{isClean:Uo,my:CIe}=c_(),kEt=KI(),IIe={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},EIe={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},kIe={Once:!0,postcssPlugin:!0,prepare:!0},af=0;function Km(i){return typeof i=="object"&&typeof i.then=="function"}function Kte(i){let e=!1,t=IIe[i.type];return i.type==="decl"?e=i.prop.toLowerCase():i.type==="atrule"&&(e=i.name.toLowerCase()),e&&i.append?[t,t+"-"+e,af,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:i.append?[t,af,t+"Exit"]:[t,t+"Exit"]}function Gte(i){let e;return i.type==="document"?e=["Document",af,"DocumentExit"]:i.type==="root"?e=["Root",af,"RootExit"]:e=Kte(i),{eventIndex:0,events:e,iterator:0,node:i,visitorIndex:0,visitors:[]}}
vendor: 4,340 bytes, line 6306
6306function YI(i){return i[Uo]=!1,i.nodes&&i.nodes.forEach(e=>YI(e)),i}var XI={},Wo=class{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"}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=YI(t);else if(t instanceof Wo||t instanceof Wte)n=YI(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=xIe;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[CIe]&&vIe.rebuild(n)}this.result=new Wte(e,n,r),this.helpers={...XI,postcss:XI,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(!EIe[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!kIe[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(Km(r))try{await r}catch(n){throw this.handleError(n)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Uo];){e[Uo]=!0;let t=[Gte(e)];for(;t.length>0;){let r=this.visitTick(t);if(Km(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 Km(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=SIe;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new yIe(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(Km(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Uo];)e[Uo]=!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;
6306if(Km(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[Uo]){a[Uo]=!0,e.push(Gte(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===af){r.nodes&&r.nodes.length&&(r[Uo]=!0,t.iterator=r.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[Uo]=!0;let t=Kte(e);for(let r of t)if(r===af)e.nodes&&e.each(n=>{n[Uo]||this.walkSync(n)});else{let n=this.listeners[r];if(n&&this.visitSync(n,e.toProxy()))return}}warnings(){return this.sync().warnings()}};Wo.registerPostcss=i=>{XI=i};Yte.exports=Wo;Wo.default=Wo;wIe.registerLazyResult(Wo);_Ie.registerLazyResult(Wo)});var Jte=M((MEt,Xte)=>{"use strict";var TIe=VI(),AIe=k_(),MIe=T_(),RIe=Om(),AEt=KI(),Ym=class{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=AIe;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"}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=RIe;this.result=new MIe(this._processor,n,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new TIe(s,n,this._opts,t);if(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[]}};Xte.exports=Ym;Ym.default=Ym});var Qte=M((REt,Zte)=>{"use strict";var DIe=h_(),OIe=JI(),LIe=Jte(),$Ie=sf(),pd=class{constructor(e=[]){this.version="8.5.6",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 LIe(this,e,t):new OIe(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};Zte.exports=pd;pd.default=pd;$Ie.registerProcessor(pd);DIe.registerProcessor(pd)});var aie=M((DEt,oie)=>{"use strict";var eie=d_(),tie=Nm(),PIe=ec(),FIe=u_(),iie=zm(),rie=h_(),NIe=Ite(),BIe=Hm(),zIe=JI(),qIe=HI(),HIe=Pm(),jIe=k_(),ZI=Qte(),VIe=T_(),nie=sf(),sie=g_(),UIe=Om(),WIe=GI();function It(...i){return i.length===1&&Array.isArray(i[0])&&(i=i[0]),new ZI(i)}It.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:
6307https://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:
6308https://www.w3ctech.com/topic/2226`));let a=t(...o);return a.postcssPlugin=e,a.postcssVersion=new ZI().version,a}let s;return Object.defineProperty(n,"postcss",{get(){return s||(s=n()),s}}),n.process=function(o,a,l){return It([n(l)]).process(o,a)},n};It.stringify=UIe;It.parse=jIe;It.fromJSON=NIe;It.list=qIe;It.comment=i=>new tie(i);It.atRule=i=>new eie(i);It.decl=i=>new iie(i);It.rule=i=>new sie(i);It.root=i=>new nie(i);It.document=i=>new rie(i);It.CssSyntaxError=FIe;It.Declaration=iie;It.Container=PIe;It.Processor=ZI;It.Document=rie;It.Comment=tie;It.Warning=WIe;It.AtRule=eie;It.Result=VIe;It.Input=BIe;It.Rule=sie;It.Root=nie;It.Node=HIe;zIe.registerPostcss(It);oie.exports=It;It.default=It});var hie=M((OEt,die)=>{var GIe=xee(),lie=See(),{isPlainObject:KIe}=Iee(),uie=Aee(),YIe=Ree(),{parse:XIe}=aie(),JIe=["img","audio","video","picture","svg","object","map","iframe","embed"],ZIe=["script","style"];
vendor: 1,847 bytes, lines 6308-6315
6308function Xm(i,e){i&&Object.keys(i).forEach(function(t){e(i[t],t)})}function Va(i,e){return{}.hasOwnProperty.call(i,e)}function cie(i,e){let t=[];return Xm(i,function(r){e(r)&&t.push(r)}),t}function QIe(i){for(let e in i)if(Va(i,e))return!1;return!0}function eEe(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(", ")}die.exports=Jm;var tEe=/^[^\0\t\n\f\r /<=>]+$/;function Jm(i,e,t){if(i==null)return"";typeof i=="number"&&(i=i.toString());let r="",n="";function s(U,ne){let le=this;this.tag=U,this.attribs=ne||{},this.tagPosition=r.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(v.length){let De=v[v.length-1];De.text+=le.text}},this.updateParentNodeMediaChildren=function(){v.length&&JIe.includes(this.tag)&&v[v.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},Jm.defaults,e),e.parser=Object.assign({},iEe,e.parser);let o=function(U){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(U)>-1};ZIe.forEach(function(U){o(U)&&!e.allowVulnerableTags&&console.warn(`
6309
6310\u26A0\uFE0F Your \`allowedTags\` option includes, \`${U}\`, which is inherently
6311vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
6312Or, to disable this warning, add the \`allowVulnerableTags\` option
6313and ensure you are accounting for this risk.
6314
6315`)});let a=e.nonTextTags||["script","style","textarea","option"],l,u;e.allowedAttributes&&(l={},u={},Xm(e.allowedAttributes,function(U,ne){l[ne]=[];let le=[];U.forEach(function(De){typeof De=="string"&&De.indexOf("*")>=0?le.push(lie(De).replace(/\\\*/g,".*")):l[ne].push(De)}),le.length&&(u[ne]=new RegExp("^("+le.join("|")+")$"))}));let c={},d={},h={};Xm(e.allowedClasses,function(U,ne){if(l&&(Va(l,ne)||(l[ne]=[]),l[ne].push("class")),c[ne]=U,Array.isArray(U)){let le=[];
6315c[ne]=[],h[ne]=[],U.forEach(function(De){typeof De=="string"&&De.indexOf("*")>=0?le.push(lie(De).replace(/\\\*/g,".*")):De instanceof RegExp?h[ne].push(De):c[ne].push(De)}),le.length&&(d[ne]=new RegExp("^("+le.join("|")+")$"))}});let f={},p;Xm(e.transformTags,function(U,ne){let le;typeof U=="function"?le=U:typeof U=="string"&&(le=Jm.simpleTransform(U)),ne==="*"?p=le:f[ne]=le});let g,v,_,x,y,C,S=!1;I();let R=new GIe.Parser({onopentag:function(U,ne){if(e.enforceHtmlBoundary&&U==="html"&&I(),y){C++;return}let le=new s(U,ne);v.push(le);let De=!1,Et=!!le.text,Qe;if(Va(f,U)&&(Qe=f[U](U,ne),le.attribs=ne=Qe.attribs,Qe.text!==void 0&&(le.innerText=Qe.text),U!==Qe.tagName&&(le.name=U=Qe.tagName,x[g]=Qe.tagName)),p&&(Qe=p(U,ne),le.attribs=ne=Qe.attribs,U!==Qe.tagName&&(le.name=U=Qe.tagName,x[g]=Qe.tagName)),(!o(U)||e.disallowedTagsMode==="recursiveEscape"&&!QIe(_)||e.nestingLimit!=null&&g>=e.nestingLimit)&&(De=!0,_[g]=!0,e.disallowedTagsMode==="discard"&&a.indexOf(U)!==-1&&(y=!0,C=1),_[g]=!0),g++,De){if(e.disallowedTagsMode==="discard")return;n=r,r=""}r+="<"+U,U==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(le.innerText=""),(!l||Va(l,U)||l["*"])&&Xm(ne,function(ot,Ve){if(!tEe.test(Ve)){delete le.attribs[Ve];return}if(ot===""&&!e.allowedEmptyAttributes.includes(Ve)&&(e.nonBooleanAttributes.includes(Ve)||e.nonBooleanAttributes.includes("*"))){delete le.attribs[Ve];return}let Yt=!1;if(!l||Va(l,U)&&l[U].indexOf(Ve)!==-1||l["*"]&&l["*"].indexOf(Ve)!==-1||Va(u,U)&&u[U].test(Ve)||u["*"]&&u["*"].test(Ve))Yt=!0;else if(l&&l[U]){for(let bt of l[U])if(KIe(bt)&&bt.name&&bt.name===Ve){Yt=!0;let et="";if(bt.multiple===!0){let In=ot.split(" ");for(let Pr of In)bt.values.indexOf(Pr)!==-1&&(et===""?et=Pr:et+=" "+Pr)}else bt.values.indexOf(ot)>=0&&(et=ot);ot=et}}if(Yt){if(e.allowedSchemesAppliedToAttributes.indexOf(Ve)!==-1&&w(U,ot)){delete le.attribs[Ve];return}if(U==="script"&&Ve==="src"){let bt=!0;try{let et=k(ot);if(e.allowedScriptHostnames||e.allowedScriptDomains){let In=(e.allowedScriptHostnames||[]).find(function(_s){return _s===et.url.hostname}),Pr=(e.allowedScriptDomains||[]).find(function(_s){return et.url.hostname===_s||et.url.hostname.endsWith(`.${_s}`)});bt=In||Pr}}catch{bt=!1}if(!bt){delete le.attribs[Ve];return}}if(U==="iframe"&&Ve==="src"){let bt=!0;try{let et=k(ot);if(et.isRelativeUrl)bt=Va(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){let In=(e.allowedIframeHostnames||[]).find(function(_s){return _s===et.url.hostname}),Pr=(e.allowedIframeDomains||[]).find(function(_s){return et.url.hostname===_s||et.url.hostname.endsWith(`.${_s}`)});bt=In||Pr}}catch{bt=!1}if(!bt){delete le.attribs[Ve];return}}if(Ve==="srcset")try{let bt=YIe(ot);if(bt.forEach(function(et){w("srcset",et.url)&&(et.evil=!0)}),bt=cie(bt,function(et){return!et.evil}),bt.length)ot=eEe(cie(bt,function(et){return!et.evil})),le.attribs[Ve]=ot;else{delete le.attribs[Ve];return}}catch{delete le.attribs[Ve];return}if(Ve==="class"){let bt=c[U],et=c["*"],In=d[U],Pr=h[U],_s=d["*"],QI=[In,_s].concat(Pr).filter(function(wie){return wie});if(bt&&et?ot=pe(ot,uie(bt,et),QI):ot=pe(ot,bt||et,QI),!ot.length){delete le.attribs[Ve];return}}if(Ve==="style"){if(e.parseStyleAttributes)try{let bt=XIe(U+" {"+ot+"}",{map:!1}),et=O(bt,e.allowedStyles);if(ot=z(et),ot.length===0){delete le.attribs[Ve];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+U+" {"+ot+`}", 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 le.attribs[Ve];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}r+=" "+Ve,ot&&ot.length?r+='="'+E(ot,!0)+'"':e.allowedEmptyAttributes.includes(Ve)&&(r+='=""')}else delete le.attribs[Ve]}),e.selfClosing.indexOf(U)!==-1?r+=" />":(r+=">",le.innerText&&!Et&&!e.textFilter&&(r+=E(le.innerText),S=!0)),De&&(r=n+E(r),n="")}
6315,ontext:function(U){if(y)return;let ne=v[v.length-1],le;if(ne&&(le=ne.tag,U=ne.innerText!==void 0?ne.innerText:U),e.disallowedTagsMode==="discard"&&(le==="script"||le==="style"))r+=U;else{let De=E(U,!1);e.textFilter&&!S?r+=e.textFilter(De,le):S||(r+=De)}if(v.length){let De=v[v.length-1];De.text+=U}},onclosetag:function(U,ne){if(y)if(C--,!C)y=!1;else return;let le=v.pop();if(!le)return;if(le.tag!==U){v.push(le);return}y=e.enforceHtmlBoundary?U==="html":!1,g--;let De=_[g];if(De){if(delete _[g],e.disallowedTagsMode==="discard"){le.updateParentNodeText();return}n=r,r=""}if(x[g]&&(U=x[g],delete x[g]),e.exclusiveFilter&&e.exclusiveFilter(le)){r=r.substr(0,le.tagPosition);return}if(le.updateParentNodeMediaChildren(),le.updateParentNodeText(),e.selfClosing.indexOf(U)!==-1||ne&&!o(U)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){De&&(r=n,n="");return}r+="</"+U+">",De&&(r=n+E(r),n=""),S=!1}},e.parser);return R.write(i),R.end(),r;function I(){r="",g=0,v=[],_={},x={},y=!1,C=0}function E(U,ne){return typeof U!="string"&&(U=U+""),e.parser.decodeEntities&&(U=U.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),ne&&(U=U.replace(/"/g,"&quot;"))),U=U.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),ne&&(U=U.replace(/"/g,"&quot;")),U}function w(U,ne){for(ne=ne.replace(/[\x00-\x20]+/g,"");;){let Et=ne.indexOf("<!--");if(Et===-1)break;let Qe=ne.indexOf("-->",Et+4);if(Qe===-1)break;ne=ne.substring(0,Et)+ne.substring(Qe+3)}let le=ne.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!le)return ne.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;let De=le[1].toLowerCase();return Va(e.allowedSchemesByTag,U)?e.allowedSchemesByTag[U].indexOf(De)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(De)===-1}function k(U){if(U=U.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),U.startsWith("relative:"))throw new Error("relative: exploit attempt");let ne="relative://relative-site";for(let Et=0;Et<100;Et++)ne+=`/${Et}`;let le=new URL(U,ne);return{isRelativeUrl:le&&le.hostname==="relative-site"&&le.protocol==="relative:",url:le}}function O(U,ne){if(!ne)return U;let le=U.nodes[0],De;return ne[le.selector]&&ne["*"]?De=uie(ne[le.selector],ne["*"]):De=ne[le.selector]||ne["*"],De&&(U.nodes[0].nodes=le.nodes.reduce(Y(De),[])),U}function z(U){return U.nodes[0].nodes.reduce(function(ne,le){return ne.push(`${le.prop}:${le.value}${le.important?" !important":""}`),ne},[]).join(";")}function Y(U){return function(ne,le){return Va(U,le.prop)&&U[le.prop].some(function(Et){return Et.test(le.value)})&&ne.push(le),ne}}function pe(U,ne,le){return ne?(U=U.split(/\s+/),U.filter(function(De){return ne.indexOf(De)!==-1||le.some(function(Et){return Et.test(De)})}).join(" ")):U}}var iEe={decodeEntities:!0};Jm.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","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxcl
6315ick","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};Jm.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 Zm,m,fie,pie=b(()=>{Zm=N(hie()),m=class{static reg(e){return new RegExp("^"+e+"$","i")}};m.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])",integer_non_zero:"[+-]?([1-9][0-9]*)",integer_pos_non_zero:"[+]?([1-9][0-9]*)",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]+)?)"};m._B={angle:`(${m.N.number}(deg|rad|grad|turn)|0)`,frequency:`${m.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|${m.N.number}(px|em|rem|ex|in|cm|mm|pt|pc|%))`,length:`(${m.N.number}(px|em|rem|ex|in|cm|mm|pt|pc)|0)`,length_pos:`(${m.N.number_pos}(px|em|rem|ex|in|cm|mm|pt|pc)|0)`,percentage:`${m.N.number}%`,percentage_pos:`${m.N.number_pos}%`,percentage_zero_hundred:`${m.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:`${m.N.number}(s|ms)`,url:"url\\(.*?\\)",z_index:"[+-]?[0-9]{1,7}"};m._B1={flex:`(${m.N.number}|${m._B.len_or_perc}|none|auto)\\s*((${m.N.number}|${m._B.len_or_perc}|auto)\\s*){0,2}`,fixed_breadth:`${m._B.len_or_perc}`,grid_line:`auto|${m._B.ident}|(${m.N.integer_non_zero}(\\s+${m._B.ident})?)|(span\\s+(${m.N.integer_pos_non_zero}|${m._B.ident}))`,line_names:String.raw`\[\s*${m._B.ident}(\s+${m._B.ident})*\s*\]`};m._B2={inflexible_breadth:`${m._B.len_or_perc}|auto|min-content|max-content`,track_breadth:`${m._B.len_or_perc}|${m._B1.flex}|auto|min-content|max-content`};m._B3={fixed_size:`${m._B1.fixed_breadth}|minmax\\(\\s*${m._B2.inflexible_breadth}\\s*,\\s*${m._B1.fixed_breadth}\\s*\\)|minmax\\(\\s*${m._B1.fixed_breadth}\\s*,\\s*${m._B2.track_breadth}\\s*\\)`,track_size:`${m._B2.track_breadth}|minmax\\(\\s*${m._B2.inflexible_breadth}\\s*,\\s*${m._B2.track_breadth}\\s*\\)|fit-content\\(\\s*(${m._B.len_or_perc}\\s*)*\\)`};m._B4={name_repeat:`repeat\\(\\s*(${m.N.integer_pos_non_zero}|auto-fill)\\s*,\\s*(${m._B1.line_names})+\\s*\\)`,auto_repeat:`repeat\\(\\s*(auto-fill|auto-fit)\\s*,\\s*((${m._B1.line_names}\\s+)?${m._B3.fixed_size}\\s*)+(${m._B1.line_names})?\\s*\\)`,fixed_repeat:`repeat\\(\\s*(${m.N.integer_pos_non_zero})\\s*,\\s*((${m._B1.line_names}\\s+)?${m._B3.fixed_size}\\s*)+(${m._B1.line_names})?\\s*\\)`};m._B5={auto_track_list:`(${m._B1.line_names}\\s*)?(${m._B3.fixed_size}|${m._B4.fixed_repeat})*(${m._B1.line_names}\\s*)?${m._B4.auto_repeat}(${m._B1.line_names}\\s*)?(${m._B3.fixed_size}|${m._B4.fixed_repeat})*(${m._B1.line_names}\\s*)?`,explicit_track_list:`(${m._B1.line_names}\\s*)?(${m._B3.track_size})+(${m._B1.line_names}\\s*)?`,track_list:`(${m._B1.line_names}\\s*)?(${m._B3.track_size}|${m._B4.name_repeat})+(${m._B1.line_names}\\s*)?`};m._B6={grid_template_rows:`none|${m._B5.track_list}|${m._B5.auto_track_list}|subgrid\\s*(${m._B1.line_names})?`,grid_template_columns:`none|${m._B5.track_list}|${m._B5.auto_track_list}|subgrid\\s*(${m._B1.line_names})?`};m.B={...m._B,...m._B1,...m._B2,...m._B3,...m._B4,...m._B5,...m._B6};m.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"};m._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*(${m.N.integer_zero_ff}|${m.N.number_zero_one}|${m.B.percentage_zero_hundred})\s*\)`};m._C={alpha:`${m.N.integer_zero_ff}|${m.N.number_zero_one}|${m.B.percentage_zero_hundred}`,alphavalue:m.N.number_zero_one,bg_position:`((${m.B.len_or_perc}|left|center|right|top|bottom)\\s*){1,4}`,bg_size:`(${m.B.length_pos}|${m.B.percentage}|auto){1,2}|cover|contain`,border_width:`thin|medium|thick|${m.B.length}`,bottom:`${m.B.length}|auto`,color:`${m._COLOR.hex}|${m._COLOR.rgb}|${m._COLOR.rgba}|${m._COLOR.name}`,color_stop_length:`(${m.B.len_or_perc}\\s*){1,2}`,linear_color_hint:`${m.B.len_or_perc}`,family_name:`${m.B.string}|(${m.B.ident}\\s*)+`,image_decl:m.B.url,left:`${m.B.length}|auto`,loose_quotable_words:`(${m.B.ident})+`,margin_width:`${m.B.len_or_perc}|auto`,padding_width:`${m.B.length_pos}|${m.B.percentage_pos}`,page_url:m.B.url,position:`((${m.B.len_or_perc}|left|center|right|top|bottom)\\s*){1,4}`,right:`${m.B.length}|auto`,shadow:"",size:`closest-side|farthest-side|closest-corner|farthest-corner|${m.B.length}|(${m.B.len_or_perc})\\s+(${m.B.len_or_perc})`,top:`${m.B.length}|auto`};m._C1={image_list:`image\\(\\s*(${m.B.url})*\\s*(${m.B.url}|${m._C.color})\\s*\\)`,linear_color_stop:`(${m._C.color})(\\s*${m._C.color_stop_length})?`,shadow:`((${m._C.color})\\s+((${m.B.length})\\s*){2,4}(s+inset)?)|((inset\\s+)?((${m.B.length})\\s*){2,4}\\s*(${m._C.color})?)`};m._C2={color_stop_list:`((${m._C1.linear_color_stop})(\\s*(${m._C.linear_color_hint}
6315))?\\s*,\\s*)+(${m._C1.linear_color_stop})`,shape:`rect\\(\\s*(${m._C.top})\\s*,\\s*(${m._C.right})\\s*,\\s*(${m._C.bottom})\\s*,\\s*(${m._C.left})\\s*\\)`};m._C3={linear_gradient:`linear-gradient\\((((${m.B.angle})|to\\s+(${m.A.side_or_corner}))\\s*,\\s*)?\\s*(${m._C2.color_stop_list})\\s*\\)`,radial_gradient:`radial-gradient\\(((((${m.A.ending_shape})|(${m._C.size}))\\s*)*\\s*(at\\s+${m._C.position})?\\s*,\\s*)?\\s*(${m._C2.color_stop_list})\\s*\\)`};m._C4={image:`${m.B.url}|${m._C3.linear_gradient}|${m._C3.radial_gradient}|${m._C1.image_list}`,bg_image:`(${m.B.url}|${m._C3.linear_gradient}|${m._C3.radial_gradient}|${m._C1.image_list})|none`};m.C={...m._C,...m._C1,...m._C2,...m._C3,...m._C4};m.AP={baseline_position:"baseline|first baseline|last baseline",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",content_position:"start|end|center|flex-start|flex-end",content_distribution:"stretch|space-between|space-around|space-evenly",direction:"ltr|rtl",empty_cells:"show|hide",flex_direction:"row|row-reverse|column|column-reverse",flex_wrap:"nowrap|wrap|wrap-reverse",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",gap:"normal",grid_auto_flow:"row|column|dense|row dense|column dense",justify_content:"start|end|center|stretch|space-between|space-around|space-evenly",justify_items:"start|end|center|stretch",justify_self:"auto|start|end|center|stretch",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_position:"unsafe|safe",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",place_content:"(center|start|end|space-between|space-around|space-evenly|stretch){1,2}",place_items:"(center|start|end|baseline|stretch){1,2}",place_self:"(center|start|end|baseline|stretch){1,2}",position:"static|relative|absolute",resize:"none|both|horizontal|vertical",speak:"normal|none|spell-out",self_position:"center|start|end|self-start|self-end|flex-start|flex-end",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"};m._CP={align_content:`normal|${m.AP.baseline_position}|${m.AP.content_distribution}|${m.AP.overflow_position}|${m.AP.content_position}`,align_items:`normal|stretch|${m.AP.baseline_position}|(${m.AP.overflow_position})?\\s*${m.AP.self_position}|anchor-center`,align_self:`auto|normal|stretch|${m.AP.baseline_position}|(${m.AP.overflow_position})?\\s*${m.AP.self_position}|anchor-center`,background_attachment:`${m.A.attachment}(,\\s*${m.A.attachment})*`,background_color:m.C.color,background_origin:`${m.A.box}(,\\s*${m.A.box})*`,background_repeat:`${m.A.repeat_style}(,\\s*${m.A.repeat_style})*`,border:`((${m.C.border_width}|${m.A.border_style}|${m.C.color})\\s*){1,3}`,border_radius:`((${m.B.len_or_perc})\\s*){1,4}(\\/\\s*((${m.B.len_or_perc})\\s*){1,4})?`,border_spacing:`${m.B.length}\\s*(${m.B.length})?`,border_top_color:m.C.color,border_top_style:m.A.border_style,border_width:`((${m.C.border_width})\\s*){1,4}`,color:m.C.color,cursor:`(${m.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|n
6315ot-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|${m.A.display_inside}|${m.A.display_outside}|inherit|inline-box|inline-stack`,display_outside:m.A.display_outside,elevation:`${m.B.angle}|below|level|above|higher|lower`,font_family:`(${m.C.family_name}|${m.A.generic_family})(,\\s*(${m.C.family_name}|${m.A.generic_family}))*`,height:`${m.B.length}|${m.B.percentage}|auto`,letter_spacing:`normal|${m.B.length}`,list_style_image:`${m.C.image}|none`,margin_right:m.C.margin_width,max_height:`${m.B.length_pos}|${m.B.percentage_pos}|none|auto`,min_height:`${m.B.length_pos}|${m.B.percentage_pos}|auto`,opacity:m.C.alphavalue,outline_color:`${m.C.color}|invert`,outline_width:m.C.border_width,padding:`((${m.C.padding_width})\\s*){1,4}`,padding_top:m.C.padding_width,pitch_range:m.N.number,right:`${m.B.length}|${m.B.percentage}|auto`,stress:m.N.number,text_indent:`${m.B.length}|${m.B.percentage}`,text_shadow:`none|${m.C.shadow}(,\\s*(${m.C.shadow}))*`,volume:`${m.N.number_pos}|${m.B.percentage_pos}|silent|x-soft|soft|medium|loud|x-loud`,word_wrap:m.AP.overflow_wrap,zoom:`normal|${m.N.number_pos}|${m.B.percentage_pos}`,backface_visibility:m.AP.visibility,background_clip:`${m.A.box}(,\\s*(${m.A.box}))*`,background_position:`${m.C.bg_position}(,\\s*(${m.C.bg_position}))*`,border_bottom_color:m.C.color,border_bottom_style:m.A.border_style,border_color:`((${m.C.color})\\s*){1,4}`,border_left_color:m.C.color,border_right_color:m.C.color,border_style:`((${m.A.border_style})\\s*){1,4}`,border_top_left_radius:`(${m.B.length}|${m.B.percentage})(\\s*(${m.B.length}|${m.B.percentage}))?`,border_top_width:m.C.border_width,box_shadow:`none|${m.C.shadow}(,\\s*(${m.C.shadow}))*`,clip:`${m.C.shape}|auto`,display_inside:m.A.display_inside,font_size:`${m.A.absolute_size}|${m.A.relative_size}|${m.B.length_pos}|${m.B.percentage_pos}`,line_height:`normal|${m.N.number_pos}|${m.B.length_pos}|${m.B.percentage_pos}`,margin_left:m.C.margin_width,max_width:`${m.B.length_pos}|${m.B.percentage_pos}|none|auto`,outline_style:m.A.border_style,padding_bottom:m.C.padding_width,padding_right:m.C.padding_width,perspective:`none|${m.B.length}`,richness:m.N.number,text_overflow:`((clip|ellipsis|${m.B.string})\\s*){1,2}`,top:`${m.B.length}|${m.B.percentage}|auto`,width:`${m.B.length_pos}|${m.B.percentage_pos}|auto`,z_index:`auto|${m.B.z_index}`,background:`(((${m.C.bg_position}\\s*(\\/\\s*${m.C.bg_size})?)|(${m.A.repeat_style})|(${m.A.attachment})|(${m.A.bg_origin})|(${m.C.bg_image})|(${m.C.color}))\\s*)+`,background_size:`${m.C.bg_size}(,\\s*${m.C.bg_size})*`,border_bottom_left_radius:`(${m.B.length}|${m.B.percentage})(\\s*(${m.B.length}|${m.B.percentage}))?`,border_bottom_width:m.C.border_width,border_left_style:m.A.border_style,border_right_style:m.A.border_style,border_top:`((${m.C.border_width}|${m.A.border_style}|${m.C.color})\\s*){1,3}`,bottom:`${m.B.len_or_perc}|auto`,list_style:`((${m.AP.list_style_type}|${m.AP.list_style_position}|${m.C.image}|none})\\s*){1,3}`,margin_top:m.C.margin_width,outline:`((${m.C.color}|invert|${m.A.border_style}|${m.C.border_width})\\s*){1,3}`,overflow_y:m.AP.overflow_x,pitch:`${m.B.frequency}|x-low|low|medium|high|x-high`,vertical_align:`baseline|sub|super|top|text-top|middle|bottom|text-bottom|${m.B.len_or_perc}`,word_spacing:`normal|${m.B.length}`,background_image:`${m.C.bg_image}(,\\s*${m.C.bg_image})*`,border_bottom_right_radius:`(${m.B.length}|${m.B.percentage})(\\s*(${m.B.length}|${m.B.percentage}))?`,border_left_width:m.C.border_width,border_right_width:m.C.border_width,left:`${m.B.len_or_perc}|auto`,margin_bottom:m.C.margin_width,pause_after:`${m.B.time}|${m.B.percentage}`,speech_rate:`${m.N.number}|x-slow|slow|medium|fast|x-fast|faster|slower`,transition_duration:`${m.B.time}(,\\s*${m.B.time})*`,border_bottom:`((${m.C.border_width}|${m.A.border_style}|${m.C.color})\\s*){1,3}`,border_right:`((${m.C.border_width}|${m.A.border_style}|${m.C.color})\\s*){1,3}`,margin:`((${m.C.margin_width})\\s*){1,4}`,padding_left:m.C.padding_width,border_left:`((${m.C.border_width}|${m.A.border_style}|${m.C.color})\\s*){1,3}`,quotes:`(${m.B.string}\\s*${m.B.string})+|none`,border_top_right_radius:`(${m.B.length}|${m.B.percentage})(\\s*(${m.B.length}|${m.B.percentage}))?`,min_width:`${m.B.length_pos}|${m.B.percentage_pos}|auto`,flex_basis:`${m.B.len_or_perc}|auto|content|max-content|min-content|fit-content\\(\\s*(${m.B.len_or_perc}\\s*)*\\)`,flex_grow:m.N.number_pos,flex_shrink:m.N.number_pos,grid:`(${m.B.string}|none|subgrid)\\s*(\\/\\s*(${m.B.string}|none|subgrid))?`,grid_area:`${m.B.ident}|auto|(${m.N.integer}\\s*\\/\\s*${m.N.integer}\\s*\\/\\s*${m.N.integer}\\s*\\/\\s*${m.N.integer})`,grid_auto_columns:`(${m.B.track_size})+`,grid_auto_rows:`(${m.B.track_size})+`,grid_column:`${m.B.grid_line}(\\s*\\/\\s*${m.B.grid_line})?`,grid_column_start:`${m.B.grid_line}`,grid_column_end:`${m.B.grid_line}`,grid_column_gap:`${m.B.len_or_perc}
6315|normal`,grid_gap:`(${m.B.len_or_perc}|normal)(\\s*(${m.B.len_or_perc}|normal))?`,grid_row:`${m.B.grid_line}(\\s*\\/\\s*${m.B.grid_line})?`,grid_row_start:`${m.B.grid_line}`,grid_row_end:`${m.B.grid_line}`,grid_row_gap:`${m.B.len_or_perc}|normal`,grid_template:`none|(${m.B.grid_template_rows}\\s*\\/\\s*${m.B.grid_template_columns})|(${m.B.line_names}\\s*)?(${m.B.string}\\s*${m.B.track_size}\\s*(${m.B.line_names}\\s*)?)+\\s*(\\/\\s*${m.B.explicit_track_list})?`,grid_template_areas:`none|(${m.B.string})+`,grid_template_columns:`${m.B.grid_template_columns}`,grid_template_rows:`${m.B.grid_template_rows}`,row_gap:`${m.B.len_or_perc}|normal`,column_gap:`${m.B.len_or_perc}|normal`,gap:`(${m.B.len_or_perc}|normal)(\\s*(${m.B.len_or_perc}|normal))?`,order:m.N.integer};m._CP1={font:`(((((${m.AP.font_style}|${m.AP.font_variant}|${m.AP.font_weight})\\s*){1,3})?\\s*(${m._CP.font_size})\\s*(\\/\\s*(${m._CP.line_height}))?\\s+(${m._CP.font_family}))|caption|icon|menu|message-box|small-caption|status-bar)`};m.CP={...m._CP,...m._CP1};m.BORDER_COLLAPSE=m.reg(m.AP.border_collapse);m.BOX=m.reg(m.AP.box);m.BOX_SIZING=m.reg(m.AP.box_sizing);m.CAPTION_SIDE=m.reg(m.AP.caption_side);m.CLEAR=m.reg(m.AP.clear);m.DIRECTION=m.reg(m.AP.direction);m.EMPTY_CELLS=m.reg(m.AP.empty_cells);m.FLOAT=m.reg(m.AP.float);m.FONT_STRETCH=m.reg(m.AP.font_stretch);m.FONT_STYLE=m.reg(m.AP.font_style);m.FONT_VARIANT=m.reg(m.AP.font_variant);m.FONT_WEIGHT=m.reg(m.AP.font_weight);m.LIST_STYLE_POSITION=m.reg(m.AP.list_style_position);m.LIST_STYLE_TYPE=m.reg(m.AP.list_style_type);m.OVERFLOW=m.reg(m.AP.overflow);m.OVERFLOW_WRAP=m.reg(m.AP.overflow_wrap);m.OVERFLOW_X=m.reg(m.AP.overflow_x);m.PAGE_BREAK_AFTER=m.reg(m.AP.page_break_after);m.PAGE_BREAK_BEFORE=m.reg(m.AP.page_break_before);m.PAGE_BREAK_INSIDE=m.reg(m.AP.page_break_inside);m.POSITION=m.reg(m.AP.position);m.RESIZE=m.reg(m.AP.resize);m.SPEAK=m.reg(m.AP.speak);m.SPEAK_HEADER=m.reg(m.AP.speak_header);m.SPEAK_NUMERAL=m.reg(m.AP.speak_numeral);m.SPEAK_PUNCTUATION=m.reg(m.AP.speak_punctuation);m.TABLE_LAYOUT=m.reg(m.AP.table_layout);m.TEXT_ALIGN=m.reg(m.AP.text_align);m.TEXT_DECORATION=m.reg(m.AP.text_decoration);m.TEXT_TRANSFORM=m.reg(m.AP.text_transform);m.TEXT_WRAP=m.reg(m.AP.text_wrap);m.UNICODE_BIDI=m.reg(m.AP.unicode_bidi);m.VISIBILITY=m.reg(m.AP.visibility);m.WHITE_SPACE=m.reg(m.AP.white_space);m.WORD_BREAK=m.reg(m.AP.word_break);m.BACKGROUND_ATTACHMENT=m.reg(m.CP.background_attachment);m.BACKGROUND_COLOR=m.reg(m.CP.background_color);m.BACKGROUND_ORIGIN=m.reg(m.CP.background_origin);m.BACKGROUND_REPEAT=m.reg(m.CP.background_repeat);m.BORDER=m.reg(m.CP.border);m.BORDER_RADIUS=m.reg(m.CP.border_radius);m.BORDER_SPACING=m.reg(m.CP.border_spacing);m.BORDER_TOP_COLOR=m.reg(m.CP.border_top_color);m.BORDER_TOP_STYLE=m.reg(m.CP.border_top_style);m.BORDER_WIDTH=m.reg(m.CP.border_width);m.COLOR=m.reg(m.CP.color);m.CURSOR=m.reg(m.CP.cursor);m.DISPLAY=m.reg(m.CP.display);m.DISPLAY_OUTSIDE=m.reg(m.CP.display_outside);m.ELEVATION=m.reg(m.CP.elevation);m.FONT_FAMILY=m.reg(m.CP.font_family);m.HEIGHT=m.reg(m.CP.height);m.LETTER_SPACING=m.reg(m.CP.letter_spacing);m.LIST_STYLE_IMAGE=m.reg(m.CP.list_style_image);m.MARGIN_RIGHT=m.reg(m.CP.margin_right);m.MAX_HEIGHT=m.reg(m.CP.max_height);m.MIN_HEIGHT=m.reg(m.CP.min_height);m.OPACITY=m.reg(m.CP.opacity);m.OUTLINE_COLOR=m.reg(m.CP.outline_color);m.OUTLINE_WIDTH=m.reg(m.CP.outline_width);m.PADDING=m.reg(m.CP.padding);m.PADDING_TOP=m.reg(m.CP.padding_top);m.PITCH_RANGE=m.reg(m.CP.pitch_range);m.RIGHT=m.reg(m.CP.right);m.STRESS=m.reg(m.CP.stress);m.TEXT_INDENT=m.reg(m.CP.text_indent);m.TEXT_SHADOW=m.reg(m.CP.text_shadow);m.VOLUME=m.reg(m.CP.volume);m.WORD_WRAP=m.reg(m.CP.word_wrap);m.ZOOM=m.reg(m.CP.zoom);m.BACKFACE_VISIBILITY=m.reg(m.CP.backface_visibility);m.BACKGROUND_CLIP=m.reg(m.CP.background_clip);m.BACKGROUND_POSITION=m.reg(m.CP.background_position);m.BORDER_BOTTOM_COLOR=m.reg(m.CP.border_bottom_color);m.BORDER_BOTTOM_STYLE=m.reg(m.CP.border_bottom_style);m.BORDER_COLOR=m.reg(m.CP.border_color);m.BORDER_LEFT_COLOR=m.reg(m.CP.border_left_color);m.BORDER_RIGHT_COLOR=m.reg(m.CP.border_right_color);m.BORDER_STYLE=m.reg(m.CP.border_style);m.BORDER_TOP_LEFT_RADIUS=m.reg(m.CP.border_top_left_radius);m.BORDER_TOP_WIDTH=m.reg(m.CP.border_top_width);m.BOX_SHADOW=m.reg(m.CP.box_shadow);m.CLIP=m.reg(m.CP.clip);m.DISPLAY_INSIDE=m.reg(m.CP.display_inside);m.FONT_SIZE=m.reg(m.CP.font_size);m.LINE_HEIGHT=m.reg(m.CP.line_height);m.MARGIN_LEFT=m.reg(m.CP.margin_left);m.MAX_WIDTH=m.reg(m.CP.max_width);m.OUTLINE_STYLE=m.reg(m.CP.outline_style);m.PADDING_BOTTOM=m.reg(m.CP.padding_bottom);m.PADDING_RIGHT=m.reg(m.CP.padding_right);m.PERSPECTIVE=m.reg(m.CP.perspective);m.RICHNESS=m.reg(m.CP.richness);m.TEXT_OVERFLOW=m.reg(m.CP.text_overflow);m.TOP=m.reg(m.CP.top);m.WIDTH=m.reg(m.CP.width);m.Z_INDEX=m.reg(m.CP.z_index);m.BACKGROUND=m.reg(m.CP.background);m.BACKGROUND_SIZE=m.reg(m.CP.background_size);m.BORDER_BOTTOM_LEFT_RADIUS=m.reg(m.CP.border_bottom_left_radius);m.BORDER_BOTTOM_WIDTH=m.reg(m.CP.border_bottom_width);m.BORDER_LEFT_STYLE=m.reg(m.CP.border_left_style);m.BORDER_RIGHT_STYLE=m.reg(m.CP.border_right_style);m.BORDER_TOP=m.reg(m.CP.border_top);m.BOTTOM=m.reg(m.CP.bottom);m.LIST_STYLE=m.reg(m.CP.list_style);m.MARGIN_TOP=m.reg(m.CP.margin_top);m.OUTLINE=m.reg(m.CP.outline);m.OVERFLOW_Y=m.reg(m.CP.overflow_y);m.PITCH=m.reg(m.CP.pitch);m.VERTICAL_ALIGN=m.reg(m.CP.vertical_align);m.WORD_SPACING=m.reg(m.CP.word_spacing);m.BACKGROUND_IMAGE=m.reg(m.CP.background_image);m.BORDER_BOTTOM_RIGHT_RADIUS=m.reg(m.CP.border_bottom_right_radius);m.BORDER_LEFT_WIDTH=m.reg(m.CP.border_left_width);m.BORDER_RIGHT_WIDTH=m.reg(m.CP.border_right_width);m.LEFT=m.reg(m.CP.left);m.MARGIN_BOTTOM=m.reg(m.CP.margin_bottom);m.PAUSE_AFTER=m.reg(m.CP.pause_after);m.SPEECH_RATE=m.reg(m.CP.speech_rate);m.TRANSITION_DURATION=m.reg(m.CP.transition_duration);m.BORDER_BOTTOM=m.reg(m.CP.border_bottom);m.BORDER_RIGHT=m.reg(m.CP.border_right);m.MARGIN=m.reg(m.CP.margin);m.PADDING_LEFT=m.reg(m.CP.padding_left);m.BORDER_LEFT=m.reg(m.CP.border_left);m.FONT=m.reg(m.CP.font);m.QUOTES=m.reg(m.CP.quotes);m.BORDER_TOP_RIGHT_RADIUS=m.reg(m.CP.border_top_right_radius);m.MIN_WIDTH=m.reg(m.CP.min_width);m.ALIGN_CONTENT=m.reg(m.CP.align_content);m.ALIGN_ITEMS=m.reg(m.CP.align_items);m.ALIGN_SELF=m.reg(m.CP.align_self);m.FLEX=m.reg(m.B.flex);m.FLEX_BASIS=m.reg(m.CP.flex_basis);m.FLEX_DIRECTION=m.reg(m.AP.flex_direction);m.FLEX_GROW=m.reg(m.CP.flex_grow);m.FLEX_SHRINK=m.reg(m.CP.flex_shrink);m.FLEX_WRAP=m.reg(m.AP.flex_wrap);m.JUSTIFY_CONTENT=m.reg(m.AP.justify_content);m.JUSTIFY_ITEMS=m.reg(m.AP.justify_items);m.JUSTIFY_SELF=m.reg(m.AP.justify_self);m.ORDER=m.reg(m.CP.order);m.GRID=m.reg(m.CP.grid);m.GRID_AREA=m.reg(m.CP.grid_area);m.GRID_AUTO_COLUMNS=m.reg(m.CP.grid_auto_columns);m.GRID_AUTO_FLOW=m.reg(m.AP.grid_auto_flow);m.GRID_AUTO_ROWS=m.reg(m.CP.grid_auto_rows);m.GRID_COLUMN=m.reg(m.CP.grid_column);m.GRID_COLUMN_END=m.reg(m.CP.grid_column_end);m.GRID_COLUMN_GAP=m.reg(m.CP.grid_column_gap);m.GRID_COLUMN_START=m.reg(m.CP.grid_column_start);
6315m.GRID_GAP=m.reg(m.CP.grid_gap);m.GRID_ROW=m.reg(m.CP.grid_row);m.GRID_ROW_END=m.reg(m.CP.grid_row_end);m.GRID_ROW_GAP=m.reg(m.CP.grid_row_gap);m.GRID_ROW_START=m.reg(m.CP.grid_row_start);m.GRID_TEMPLATE=m.reg(m.CP.grid_template);m.GRID_TEMPLATE_AREAS=m.reg(m.CP.grid_template_areas);m.GRID_TEMPLATE_COLUMNS=m.reg(m.CP.grid_template_columns);m.GRID_TEMPLATE_ROWS=m.reg(m.CP.grid_template_rows);m.GAP=m.reg(m.CP.gap);m.ROW_GAP=m.reg(m.CP.row_gap);m.COLUMN_GAP=m.reg(m.CP.column_gap);m.PLACE_CONTENT=m.reg(m.AP.place_content);m.PLACE_ITEMS=m.reg(m.AP.place_items);m.PLACE_SELF=m.reg(m.AP.place_self);fie=class{constructor(){this._autolink=!0,this._allowNamedProperties=!1,this._generateOptions=()=>{let e=Array.isArray(this._customAllowedSchemes)?this._customAllowedSchemes:[...Zm.default.defaults.allowedSchemes];return{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","s","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","data-jupyter-id","dir","draggable","hidden","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","
6315scope","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":[m.BACKFACE_VISIBILITY],background:[m.BACKGROUND],"background-attachment":[m.BACKGROUND_ATTACHMENT],"background-clip":[m.BACKGROUND_CLIP],"background-color":[m.BACKGROUND_COLOR],"background-image":[m.BACKGROUND_IMAGE],"background-origin":[m.BACKGROUND_ORIGIN],"background-position":[m.BACKGROUND_POSITION],"background-repeat":[m.BACKGROUND_REPEAT],"background-size":[m.BACKGROUND_SIZE],border:[m.BORDER],"border-bottom":[m.BORDER_BOTTOM],"border-bottom-color":[m.BORDER_BOTTOM_COLOR],"border-bottom-left-radius":[m.BORDER_BOTTOM_LEFT_RADIUS],"border-bottom-right-radius":[m.BORDER_BOTTOM_RIGHT_RADIUS],"border-bottom-style":[m.BORDER_BOTTOM_STYLE],"border-bottom-width":[m.BORDER_BOTTOM_WIDTH],"border-collapse":[m.BORDER_COLLAPSE],"border-color":[m.BORDER_COLOR],"border-left":[m.BORDER_LEFT],"border-left-color":[m.BORDER_LEFT_COLOR],"border-left-style":[m.BORDER_LEFT_STYLE],"border-left-width":[m.BORDER_LEFT_WIDTH],"border-radius":[m.BORDER_RADIUS],"border-right":[m.BORDER_RIGHT],"border-right-color":[m.BORDER_RIGHT_COLOR],"border-right-style":[m.BORDER_RIGHT_STYLE],"border-right-width":[m.BORDER_RIGHT_WIDTH],"border-spacing":[m.BORDER_SPACING],"border-style":[m.BORDER_STYLE],"border-top":[m.BORDER_TOP],"border-top-color":[m.BORDER_TOP_COLOR],"border-top-left-radius":[m.BORDER_TOP_LEFT_RADIUS],"border-top-right-radius":[m.BORDER_TOP_RIGHT_RADIUS],"border-top-style":[m.BORDER_TOP_STYLE],"border-top-width":[m.BORDER_TOP_WIDTH],"border-width":[m.BORDER_WIDTH],bottom:[m.BOTTOM],box:[m.BOX],"box-shadow":[m.BOX_SHADOW],"box-sizing":[m.BOX_SIZING],"caption-side":[m.CAPTION_SIDE],clear:[m.CLEAR],clip:[m.CLIP],color:[m.COLOR],cursor:[m.CURSOR],direction:[m.DIRECTION],display:[m.DISPLAY],"display-inside":[m.DISPLAY_INSIDE],"display-outside":[m.DISPLAY_OUTSIDE],elevation:[m.ELEVATION],"empty-cells":[m.EMPTY_CELLS],float:[m.FLOAT],font:[m.FONT],"font-family":[m.FONT_FAMILY],"font-size":[m.FONT_SIZE],"font-stretch":[m.FONT_STRETCH],"font-style":[m.FONT_STYLE],"font-variant":[m.FONT_VARIANT],"font-weight":[m.FONT_WEIGHT],height:[m.HEIGHT],left:[m.LEFT],"letter-spacing":[m.LETTER_SPACING],"line-height":[m.LINE_HEIGHT],"list-style":[m.LIST_STYLE],"list-style-image":[m.LIST_STYLE_IMAGE],"list-style-position":[m.LIST_STYLE_POSITION],"list-style-type":[m.LIST_STYLE_TYPE],margin:[m.MARGIN],"margin-bottom":[m.MARGIN_BOTTOM],"margin-left":[m.MARGIN_LEFT],"margin-right":[m.MARGIN_RIGHT],"margin-top":[m.MARGIN_TOP],"max-height":[m.MAX_HEIGHT],"max-width":[m.MAX_WIDTH],"min-height":[m.MIN_HEIGHT],"min-width":[m.MIN_WIDTH],opacity:[m.OPACITY],outline:[m.OUTLINE],"outline-color":[m.OUTLINE_COLOR],"outline-style":[m.OUTLINE_STYLE],"outline-width":[m.OUTLINE_WIDTH],overflow:[m.OVERFLOW],"overflow-wrap":[m.OVERFLOW_WRAP],"overflow-x":[m.OVERFLOW_X],"overflow-y":[m.OVERFLOW_Y],padding:[m.PADDING],"padding-bottom":[m.PADDING_BOTTOM],"padding-left":[m.PADDING_LEFT],"padding-right":[m.PADDING_RIGHT],"padding-top":[m.PADDING_TOP],"page-break-after":[m.PAGE_BREAK_AFTER],"page-break-before":[m.PAGE_BREAK_BEFORE],"page-break-inside":[m.PAGE_BREAK_INSIDE],"pause-after":[m.PAUSE_AFTER],perspective:[m.PERSPECTIVE],pitch:[m.PITCH],"pitch-range":[m.PITCH_RANGE],position:[m.POSITION],quotes:[m.QUOTES],resize:[m.RESIZE],richness:[m.RICHNESS],right:[m.RIGHT],speak:[m.SPEAK],"speak-header":[m.SPEAK_HEADER],"speak-numeral":[m.SPEAK_NUMERAL],"speak-punctuation":[m.SPEAK_PUNCTUATION],"speech-rate":[m.SPEECH_RATE],stress:[m.STRESS],"table-layout":[m.TABLE_LAYOUT],"text-align":[m.TEXT_ALIGN],"text-decoration":[m.TEXT_DECORATION],"text-indent":[m.TEXT_INDENT],"text-overflow":[m.TEXT_OVERFLOW],"text-shadow":[m.TEXT_SHADOW],"text-transform":[m.TEXT_TRANSFORM],"text-wrap":[m.TEXT_WRAP],top:[m.TOP],"unicode
6315-bidi":[m.UNICODE_BIDI],"vertical-align":[m.VERTICAL_ALIGN],visibility:[m.VISIBILITY],volume:[m.VOLUME],"white-space":[m.WHITE_SPACE],width:[m.WIDTH],"word-break":[m.WORD_BREAK],"word-spacing":[m.WORD_SPACING],"word-wrap":[m.WORD_WRAP],"z-index":[m.Z_INDEX],zoom:[m.ZOOM],"align-content":[m.ALIGN_CONTENT],"align-items":[m.ALIGN_ITEMS],"align-self":[m.ALIGN_SELF],flex:[m.FLEX],"flex-basis":[m.FLEX_BASIS],"flex-direction":[m.FLEX_DIRECTION],"flex-grow":[m.FLEX_GROW],"flex-shrink":[m.FLEX_SHRINK],"flex-wrap":[m.FLEX_WRAP],grid:[m.GRID],"grid-area":[m.GRID_AREA],"grid-auto-columns":[m.GRID_AUTO_COLUMNS],"grid-auto-flow":[m.GRID_AUTO_FLOW],"grid-auto-rows":[m.GRID_AUTO_ROWS],"grid-column":[m.GRID_COLUMN],"grid-column-end":[m.GRID_COLUMN_END],"grid-column-gap":[m.GRID_COLUMN_GAP],"grid-column-start":[m.GRID_COLUMN_START],"grid-gap":[m.GRID_GAP],"grid-row":[m.GRID_ROW],"grid-row-end":[m.GRID_ROW_END],"grid-row-gap":[m.GRID_ROW_GAP],"grid-row-start":[m.GRID_ROW_START],"grid-template":[m.GRID_TEMPLATE],"grid-template-areas":[m.GRID_TEMPLATE_AREAS],"grid-template-columns":[m.GRID_TEMPLATE_COLUMNS],"grid-template-rows":[m.GRID_TEMPLATE_ROWS],gap:[m.GAP],"row-gap":[m.ROW_GAP],"column-gap":[m.COLUMN_GAP],"justify-content":[m.JUSTIFY_CONTENT],"justify-items":[m.JUSTIFY_ITEMS],"justify-self":[m.JUSTIFY_SELF],order:[m.ORDER],"place-content":[m.PLACE_CONTENT],"place-items":[m.PLACE_ITEMS],"place-self":[m.PLACE_SELF]}},transformTags:{a:Zm.default.simpleTransform("a",{rel:"nofollow"}),input:Zm.default.simpleTransform("input",{disabled:"disabled"}),...this._allowNamedProperties?{}:{"*":function(t,r){return r.id!==void 0&&(r["data-jupyter-id"]=r.id,delete r.id),{tagName:t,attribs:{...r}}}}},allowedSchemes:e,allowedSchemesByTag:{img:[...e,"attachment"]},allowedSchemesAppliedToAttributes:["href","cite"]}},this._options=this._generateOptions()}sanitize(e,t){return(0,Zm.default)(e,{...this._options,...t||{}})}getAutolink(){return this._autolink}get allowNamedProperties(){return this._allowNamedProperties}setAllowedSchemes(e){this._customAllowedSchemes=[...e],this._options=this._generateOptions()}setAutolink(e){this._autolink=e}setAllowNamedProperties(e){this._allowNamedProperties=e,this._options=this._generateOptions()}}});var lf,mie=b(()=>{lf=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:lf.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=>
6315r.id===e);t>=0&&this._commands.splice(t,1)}};lf.DEFAULT_RANK=500;lf.WIDGET="semanticWidget"});var gie,bie=b(()=>{Jn();Nr();tt();(function(i){function e(t){for(let r of t.children())e(r);t.fit()}i.fitAll=e})(gie||(gie={}))});var Go,zEt,qEt,HEt,jEt,VEt,UEt,WEt,GEt,KEt,vie=b(()=>{Go=N(Ge()),zEt=new Go.Token("@jupyterlab/apputils:ICommandPalette",`A service for the application command palette
6316  in the left panel. Use this to add commands to the palette.`),qEt=new Go.Token("@jupyterlab/apputils:IKernelStatusModel","A service to register kernel session provider to the kernel status indicator."),HEt=new Go.Token("@jupyterlab/apputils:ILicensesClient","A service for fetching licenses."),jEt=new Go.Token("@jupyterlab/apputils:ISessionContextDialogs","A service for handling the session dialogs."),VEt=new Go.Token("@jupyterlab/apputils:IThemeManager","A service for the theme manager for the application. This is used primarily in theme extensions to register new themes."),UEt=new Go.Token("@jupyterlab/apputils:ISanitizer","A service for sanitizing HTML strings."),WEt=new Go.Token("@jupyterlab/apputils:ISplashScreen",`A service for the splash screen for the application.
6317  Use this if you want to show the splash screen for your own purposes.`),GEt=new Go.Token("@jupyterlab/apputils:IWindowResolver",`A service for a window resolver for the
6318  application. JupyterLab workspaces are given a name, which are determined using
6319  the window resolver. Require this if you want to use the name of the current workspace.`),KEt=new Go.Token("@jupyterlab/apputils:IToolbarWidgetRegistry",`A registry for toolbar widgets. Require this
6320  if you want to build the toolbar dynamically from a data definition (stored in settings for example).`)});var yie,_ie,xie=b(()=>{yie=N(Ge());(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 yie.PromiseDelegate,l={},u=null,c=!1;function d(){window.addEventListener("storage",g=>{let{key:v,newValue:_}=g;if(_===null)return;if(v===t&&_!==s&&o!==null){h(c?u:o);return}if(c||v!==n)return;let x=_.replace(/\-\d+$/,"");l[x]=null,(!o||o in l)&&f()})}function h(g){if(g===null)return;let{localStorage:v}=window;v.setItem(n,`${g}-${new Date().getTime()}`)}function f(){c=!0,s=null,a.reject(`Window name candidate "${o}" already exists`)}function p(g){if(c)return a.promise;if(o=g,o in l)return f(),a.promise;let{localStorage:v,setTimeout:_}=window;return _(()=>{if(!c){if(!o||o in l)return f();c=!0,s=null,a.resolve(u=o),h(u)}},r),s=`${Math.random()}-${new Date().getTime()}`,v.setItem(t,s),a.promise}i.resolve=p,d()})(_ie||(_ie={}))});var A_,rEe=b(()=>{Mo();LZ();FZ();NZ();BZ();qv();_4();qZ();D4();VZ();GZ();JZ();eQ();H4();tQ();pie();mie();A4();bie();vie();k4();xie();A_=class extends Pu{};(function(i){i.createInterruptButton=rd.createInterruptButton,i.createKernelNameItem=rd.createKernelNameItem,i.createKernelStatusItem=rd.createKernelStatusItem,i.createRestartButton=rd.createRestartButton,i.createSpacerItem=Pu.createSpacerItem})(A_||(A_={}))});export{r4 as a,WJ as b,TCt as c,VSe as d,Kc as e,i4 as f,jJ as g,VJ as h,SCt as i,HSe as j,UJ as k,jSe as l,J1 as m,lK as n,mK as o,yK as p,ySe as q,yn as r,L as s,Oi as t,Ui as u,Rie as v,Js as w,ys as x,Qm as y,Ko as z,gr as A,Zt as B,Ge as C,G as D,tt as E,ci as F,Li as G,Nr as H,Ye as I,md as J,ws as K,he as L,Ft as M,pi as N,Ad as O,Qn as P,Hf as Q,ti as R,jf as S,re as T,Pt as U,el as V,fi as W,jRe as X,St as Y,Jn as Z,$x as _,H9e as $,Or as aa,Ao as ba,$u as ca,Mo as da,Cv as ea,Ev as fa,JJ as ga,kv as ha,USe as ia,x6t as ja,mm as ka,v4 as la,zv as ma,gm as na,Cm as oa,xee as pa,See as qa,Iee as ra,Aee as sa,Ree as ta,aie as ua,fie as va,rEe as wa};
6321/*! Bundled license information:
6322
6323react-is/cjs/react-is.production.min.js:
6324  (**
6325   * @license React
6326   * react-is.production.min.js
6327   *
6328   * Copyright (c) Facebook, Inc. and its affiliates.
6329   *
6330   * This source code is licensed under the MIT license found in the
6331   * LICENSE file in the root directory of this source tree.
6332   *)
6333
6334tslib/tslib.es6.js:
6335  (*! *****************************************************************************
6336  Copyright (c) Microsoft Corporation.
6337  
6338  Permission to use, copy, modify, and/or distribute this software for any
6339  purpose with or without fee is hereby granted.
6340  
6341  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
6342  REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
6343  AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
6344  INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
6345  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
6346  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
6347  PERFORMANCE OF THIS SOFTWARE.
6348  ***************************************************************************** *)
6349
6350tabbable/dist/index.esm.js:
6351  (*!
6352  * tabbable 5.3.3
6353  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
6354  *)
6355
6356is-plain-object/dist/is-plain-object.js:
6357  (*!
6358   * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
6359   *
6360   * Copyright (c) 2014-2017, Jon Schlinkert.
6361   * Released under the MIT License.
6362   *)
6363*/

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.