["']).*\k$/su.test(e));let n=e.slice(1,-1),r=t.parser==="json"||t.parser==="jsonc"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":Xr(n,t.singleQuote);return e.charAt(0)===r?e:hs(n,r,!1)}var lt=Ss;function U(e){var t,n,r;let u=((t=e.range)==null?void 0:t[0])??e.start,a=(r=((n=e.declaration)==null?void 0:n.decorators)??e.decorators)==null?void 0:r[0];return a?Math.min(U(a),u):u}function j(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function en(e,t){let n=U(e);return Number.isInteger(n)&&n===U(t)}function bs(e,t){let n=j(e);return Number.isInteger(n)&&n===j(t)}function Bs(e,t){return en(e,t)&&bs(e,t)}var ht=null;function bt(e){if(ht!==null&&typeof ht.property){let t=ht;return ht=bt.prototype=null,t}return ht=bt.prototype=e??Object.create(null),new bt}var vs=10;for(let e=0;e<=vs;e++)bt();function ks(e){return bt(e)}function Ps(e,t="type"){ks(e);function n(r){let u=r[t],a=e[u];if(!Array.isArray(a))throw Object.assign(new Error(`Missing visitor keys for '${u}'.`),{node:r});return a}return n}var Rr=Ps,ws={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","returnType","body","predicate"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","returnType","body","predicate"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","key","typeAnnotation","value","variance"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","key","typeAnnotation","value","variance"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["qualification","id"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument","typeArguments"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:["members"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],AsConstExpression:["expression"],AsExpression:["expression","typeAnnotation"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:["name","typeAnnotation"],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclareEnum:["id","body"],DeclareHook:["id"],DeclareNamespace:["id","body"],EnumBigIntBody:["members"],EnumBigIntMember:["id","init"],HookDeclaration:["id","params","body","typeParameters","returnType"],HookTypeAnnotation:["params","returnType","rest","typeParameters"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeOperator:["typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[],SatisfiesExpression:["expression","typeAnnotation"]},Ns=Rr(ws),_r=Ns;function Is(e){let t=new Set(e);return n=>t.has(n==null?void 0:n.type)}var X=Is,js=X(["Block","CommentBlock","MultiLine"]),De=js,Ls=X(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),$r=Ls;function Ms(e,t){let n=t.split(".");for(let r=n.length-1;r>=0;r--){let u=n[r];if(r===0)return e.type==="Identifier"&&e.name===u;if(e.type!=="MemberExpression"||e.optional||e.computed||e.property.type!=="Identifier"||e.property.name!==u)return!1;e=e.object}}function Os(e,t){return t.some(n=>Ms(e,n))}var Js=Os;function qs({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var Ur=qs;function xn(e,t){return t(e)||os(e,{getVisitorKeys:_r,predicate:t})}function Rn(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||L(e)||W(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||xe(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function Xs(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function Wr(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var yt=X(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),Rs=X(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),Q=X(["ArrayExpression","TupleExpression"]),Fe=X(["ObjectExpression","RecordExpression"]);function _s(e){return e.type==="LogicalExpression"&&e.operator==="??"}function be(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function Gr(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&be(e.argument)}function ue(e){return!!(e&&(e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"))}function Vr(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}var _n=X(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),$s=X(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),je=X(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),kt=X(["FunctionExpression","ArrowFunctionExpression"]);function Us(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function ln(e){return L(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var K=X(["JSXElement","JSXFragment"]);function tn(e){return e.method&&e.kind==="init"||e.kind==="get"||e.kind==="set"}function Kr(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.static&&!e.method&&e.kind!=="get"&&e.kind!=="set"&&e.value.type==="FunctionTypeAnnotation"}function Ws(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!en(e,e.typeAnnotation)}var Be=X(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function ut(e){return W(e)||e.type==="BindExpression"&&!!e.object}var Gs=X(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function $n(e){return Ur(e)||$r(e)||Gs(e)||(e.type==="GenericTypeAnnotation"||e.type==="TSTypeReference")&&!e.typeParameters&&!e.typeArguments}function Vs(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}var Ks=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function Hs(e){return Js(e,Ks)}function nn(e,t){if((e==null?void 0:e.type)!=="CallExpression"||e.optional)return!1;let n=ye(e);if(n.length===1){if(ln(e)&&nn(t))return kt(n[0]);if(Vs(e.callee))return ln(n[0])}else if((n.length===2||n.length===3)&&(n[0].type==="TemplateLiteral"||ue(n[0]))&&Hs(e.callee))return n[2]&&!be(n[2])?!1:(n.length===2?kt(n[1]):Us(n[1])&&Z(n[1]).length<=1)||ln(n[1]);return!1}var Hr=e=>t=>((t==null?void 0:t.type)==="ChainExpression"&&(t=t.expression),e(t)),L=Hr(X(["CallExpression","OptionalCallExpression"])),W=Hr(X(["MemberExpression","OptionalMemberExpression"]));function lr(e,t=5){return zr(e,t)<=t}function zr(e,t){let n=0;for(let r in e){let u=e[r];if(u&&typeof u=="object"&&typeof u.type=="string"&&(n++,n+=zr(u,t-n)),n>t)return n}return n}var zs=.25;function Un(e,t){let{printWidth:n}=t;if(C(e))return!1;let r=n*zs;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=r||Gr(e)&&!C(e.argument))return!0;let u=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return u?u.length<=r:ue(e)?lt(pe(e),t).length<=r:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=r&&!e.quasis[0].value.raw.includes(` +`):e.type==="UnaryExpression"?Un(e.argument,{printWidth:n}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=r-2:_n(e)}function Ue(e,t){return K(t)?rn(t):C(t,h.Leading,n=>oe(e,j(n)))}function cr(e){return e.quasis.some(t=>t.value.raw.includes(` +`))}function Qr(e,t){return(e.type==="TemplateLiteral"&&cr(e)||e.type==="TaggedTemplateExpression"&&cr(e.quasi))&&!oe(t,U(e),{backwards:!0})}function Yr(e){if(!C(e))return!1;let t=M(!1,st(e,h.Dangling),-1);return t&&!De(t)}function Qs(e){if(e.length<=1)return!1;let t=0;for(let n of e)if(kt(n)){if(t+=1,t>1)return!0}else if(L(n)){for(let r of ye(n))if(kt(r))return!0}return!1}function Zr(e){let{node:t,parent:n,key:r}=e;return r==="callee"&&L(t)&&L(n)&&n.arguments.length>0&&t.arguments.length>n.arguments.length}var Ys=new Set(["!","-","+","~"]);function fe(e,t=2){if(t<=0)return!1;if(e.type==="ChainExpression"||e.type==="TSNonNullExpression")return fe(e.expression,t);let n=r=>fe(r,t-1);if(Vr(e))return ot(e.pattern??e.regex.pattern)<=5;if(_n(e)||$s(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(r=>!r.value.raw.includes(` +`))&&e.expressions.every(n);if(Fe(e))return e.properties.every(r=>!r.computed&&(r.shorthand||r.value&&n(r.value)));if(Q(e))return e.elements.every(r=>r===null||n(r));if(ct(e)){if(e.type==="ImportExpression"||fe(e.callee,t)){let r=ye(e);return r.length<=t&&r.every(n)}return!1}return W(e)?fe(e.object,t)&&fe(e.property,t):e.type==="UnaryExpression"&&Ys.has(e.operator)||e.type==="UpdateExpression"?fe(e.argument,t):!1}function pe(e){var t;return((t=e.extra)==null?void 0:t.raw)??e.raw}function Zs(e){return e}function ke(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function ee(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ee(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return ee(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:ee(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:ee(e.callee,t);case"ConditionalExpression":return ee(e.test,t);case"UpdateExpression":return!e.prefix&&ee(e.argument,t);case"BindExpression":return e.object&&ee(e.object,t);case"SequenceExpression":return ee(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return ee(e.expression,t);default:return t(e)}}var Dr={"==":!0,"!=":!0,"===":!0,"!==":!0},Xt={"*":!0,"/":!0,"%":!0},Cn={">>":!0,">>>":!0,"<<":!0};function Wn(e,t){return!(Kt(t)!==Kt(e)||e==="**"||Dr[e]&&Dr[t]||t==="%"&&Xt[e]||e==="%"&&Xt[t]||t!==e&&Xt[t]&&Xt[e]||Cn[e]&&Cn[t])}var eo=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(n=>[n,t])));function Kt(e){return eo.get(e)}function to(e){return!!Cn[e]||e==="|"||e==="^"||e==="&"}function no(e){var t;if(e.rest)return!0;let n=Z(e);return((t=M(!1,n,-1))==null?void 0:t.type)==="RestElement"}var cn=new WeakMap;function Z(e){if(cn.has(e))return cn.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),cn.set(e,t),t}function ro(e,t){let{node:n}=e,r=0,u=a=>t(a,r++);n.this&&e.call(u,"this"),Array.isArray(n.parameters)?e.each(u,"parameters"):Array.isArray(n.params)&&e.each(u,"params"),n.rest&&e.call(u,"rest")}var Dn=new WeakMap;function ye(e){if(Dn.has(e))return Dn.get(e);if(e.type==="ChainExpression")return ye(e.expression);let t=e.arguments;return e.type==="ImportExpression"&&(t=[e.source],e.options&&t.push(e.options)),Dn.set(e,t),t}function Ht(e,t){let{node:n}=e;if(n.type==="ChainExpression")return e.call(()=>Ht(e,t),"expression");n.type==="ImportExpression"?(e.call(r=>t(r,0),"source"),n.options&&e.call(r=>t(r,1),"options")):e.each(t,"arguments")}function yr(e,t){let n=[];if(e.type==="ChainExpression"&&(e=e.expression,n.push("expression")),e.type==="ImportExpression"){if(t===0||t===(e.options?-2:-1))return[...n,"source"];if(e.options&&(t===1||t===-1))return[...n,"options"];throw new RangeError("Invalid argument index")}if(t<0&&(t=e.arguments.length+t),t<0||t>=e.arguments.length)throw new RangeError("Invalid argument index");return[...n,"arguments",t]}function zt(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}function rn(e){return(e==null?void 0:e.prettierIgnore)||C(e,h.PrettierIgnore)}var h={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},eu=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(n,r,u)=>!(e&h.Leading&&!n.leading||e&h.Trailing&&!n.trailing||e&h.Dangling&&(n.leading||n.trailing)||e&h.Block&&!De(n)||e&h.Line&&!yt(n)||e&h.First&&r!==0||e&h.Last&&r!==u.length-1||e&h.PrettierIgnore&&!zt(n)||t&&!t(n))};function C(e,t,n){if(!O(e==null?void 0:e.comments))return!1;let r=eu(t,n);return r?e.comments.some(r):!0}function st(e,t,n){if(!Array.isArray(e==null?void 0:e.comments))return[];let r=eu(t,n);return r?e.comments.filter(r):e.comments}var Pe=(e,{originalText:t})=>qn(t,j(e));function ct(e){return L(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function we(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!tn(e))}var xe=X(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),We=X(["UnionTypeAnnotation","TSUnionType"]),tu=X(["IntersectionTypeAnnotation","TSIntersectionType"]),uo=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),rt=e=>{for(let t of e.quasis)delete t.value};function nu(e,t,n){var r,u;if(e.type==="Program"&&delete t.sourceType,(e.type==="BigIntLiteral"||e.type==="BigIntLiteralTypeAnnotation")&&e.value&&(t.value=e.value.toLowerCase()),(e.type==="BigIntLiteral"||e.type==="Literal")&&e.bigint&&(t.bigint=e.bigint.toLowerCase()),e.type==="EmptyStatement"||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if((e.type==="Property"||e.type==="ObjectProperty"||e.type==="MethodDefinition"||e.type==="ClassProperty"||e.type==="ClassMethod"||e.type==="PropertyDefinition"||e.type==="TSDeclareMethod"||e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty"||e.type==="ImportAttribute")&&e.key&&!e.computed){let{key:s}=e;ue(s)||be(s)?t.key=String(s.value):s.type==="Identifier"&&(t.key=s.name)}if(e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(s=>s.type==="JSXAttribute"&&s.name.name==="jsx"))for(let{type:s,expression:o}of t.children)s==="JSXExpressionContainer"&&o.type==="TemplateLiteral"&&rt(o);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&rt(t.value.expression),e.type==="JSXAttribute"&&((r=e.value)==null?void 0:r.type)==="Literal"&&/["']|"|'/u.test(e.value.value)&&(t.value.value=H(!1,e.value.value,/["']|"|'/gu,'"'));let a=e.expression||e.callee;if(e.type==="Decorator"&&a.type==="CallExpression"&&a.callee.name==="Component"&&a.arguments.length===1){let s=e.expression.arguments[0].properties;for(let[o,i]of t.expression.arguments[0].properties.entries())switch(s[o].key.name){case"styles":Q(i.value)&&rt(i.value.elements[0]);break;case"template":i.value.type==="TemplateLiteral"&&rt(i.value);break}}e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&rt(t.quasi),e.type==="TemplateLiteral"&&((u=e.leadingComments)!=null&&u.some(s=>De(s)&&["GraphQL","HTML"].some(o=>s.value===` ${o} `))||n.type==="CallExpression"&&n.callee.name==="graphql"||!e.leadingComments)&&rt(t),e.type==="ChainExpression"&&e.expression.type==="TSNonNullExpression"&&(t.type="TSNonNullExpression",t.expression.type="ChainExpression"),e.type==="TSMappedType"&&(delete t.key,delete t.constraint),e.type==="TSEnumDeclaration"&&delete t.body}nu.ignoredProperties=uo;var ao=nu,dt="string",Le="array",mt="cursor",Ke="indent",He="align",ft="trim",le="group",Oe="fill",Ce="if-break",ze="indent-if-break",Qe="line-suffix",Ye="line-suffix-boundary",ie="line",Je="label",qe="break-parent",ru=new Set([mt,Ke,He,ft,le,Oe,Ce,ze,Qe,Ye,ie,Je,qe]);function so(e){if(typeof e=="string")return dt;if(Array.isArray(e))return Le;if(!e)return;let{type:t}=e;if(ru.has(t))return t}var Et=so,oo=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function io(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(Et(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let r=oo([...ru].map(u=>`'${u}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${r}.`}var po=class extends Error{constructor(t){super(io(t));Jt(this,"name","InvalidDocError");this.doc=t}},Pt=po,dr={};function lo(e,t,n,r){let u=[e];for(;u.length>0;){let a=u.pop();if(a===dr){n(u.pop());continue}n&&u.push(a,dr);let s=Et(a);if(!s)throw new Pt(a);if((t==null?void 0:t(a))!==!1)switch(s){case Le:case Oe:{let o=s===Le?a:a.parts;for(let i=o.length,l=i-1;l>=0;--l)u.push(o[l]);break}case Ce:u.push(a.flatContents,a.breakContents);break;case le:if(r&&a.expandedStates)for(let o=a.expandedStates.length,i=o-1;i>=0;--i)u.push(a.expandedStates[i]);else u.push(a.contents);break;case He:case Ke:case ze:case Je:case Qe:u.push(a.contents);break;case dt:case mt:case ft:case Ye:case ie:case qe:break;default:throw new Pt(a)}}}var uu=lo,co=()=>{},Do=co;function A(e){return{type:Ke,contents:e}}function Te(e,t){return{type:He,contents:t,n:e}}function m(e,t={}){return Do(t.expandedStates),{type:le,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function yo(e){return Te(Number.NEGATIVE_INFINITY,e)}function au(e){return Te(-1,e)}function $e(e,t){return m(e[0],{...t,expandedStates:e})}function su(e){return{type:Oe,parts:e}}function w(e,t="",n={}){return{type:Ce,breakContents:e,flatContents:t,groupId:n.groupId}}function un(e,t){return{type:ze,contents:e,groupId:t.groupId,negate:t.negate}}function mr(e){return{type:Qe,contents:e}}var ve={type:Ye},he={type:qe},ou={type:ie,hard:!0},mo={type:ie,hard:!0,literal:!0},T={type:ie},f={type:ie,soft:!0},E=[ou,he],iu=[mo,he],Rt={type:mt};function I(e,t){let n=[];for(let r=0;r0){for(let u=0;u 0){let t=M(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Fo(e){let t=new Set,n=[];function r(a){if(a.type===qe&&fr(n),a.type===le){if(n.push(a),t.has(a))return!1;t.add(a)}}function u(a){a.type===le&&n.pop().break&&fr(n)}uu(e,r,u,!0)}function Ao(e){return e.type===ie&&!e.hard?e.soft?"":" ":e.type===Ce?e.flatContents:e}function Tn(e){return Ft(e,Ao)}function go(e){switch(Et(e)){case Oe:if(e.parts.every(t=>t===""))return"";break;case le:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===le&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case He:case Ke:case ze:case Qe:if(!e.contents)return"";break;case Ce:if(!e.flatContents&&!e.breakContents)return"";break;case Le:{let t=[];for(let n of e){if(!n)continue;let[r,...u]=Array.isArray(n)?n:[n];typeof r=="string"&&typeof M(!1,t,-1)=="string"?t[t.length-1]+=r:t.push(r),t.push(...u)}return t.length===0?"":t.length===1?t[0]:t}case dt:case mt:case ft:case Ye:case ie:case Je:case qe:break;default:throw new Pt(e)}return e}function Gn(e){return Ft(e,t=>go(t))}function Ge(e,t=iu){return Ft(e,n=>typeof n=="string"?I(t,n.split(` +`)):n)}function xo(e){if(e.type===ie)return!0}function Co(e){return pu(e,xo,!1)}function hn(e,t){return e.type===Je?{...e,contents:t(e.contents)}:t(e)}function To(e){let t=`*${e.value}*`.split(` +`);return t.length>1&&t.every(n=>n.trimStart()[0]==="*")}var ho=To;function So(e,t){let n=e.node;if(yt(n))return t.originalText.slice(U(n),j(n)).trimEnd();if(De(n))return ho(n)?bo(n):["/*",Ge(n.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(n))}function bo(e){let t=e.value.split(` +`);return["/*",I(E,t.map((n,r)=>r===0?n.trimEnd():" "+(r jo,ownLine:()=>Io,remaining:()=>Lo});function Bo(e){let t=e.type||e.kind||"(unknown type)",n=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return n.length>20&&(n=n.slice(0,19)+"…"),t+(n?" "+n:"")}function Vn(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=Bo(e)}function Y(e,t){t.leading=!0,t.trailing=!1,Vn(e,t)}function ce(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),Vn(e,t)}function $(e,t){t.leading=!1,t.trailing=!0,Vn(e,t)}function vo(e,t){let n=null,r=t;for(;r!==n;)n=r,r=it(e,r),r=On(e,r),r=Jn(e,r),r=pt(e,r);return r}var At=vo;function ko(e,t){let n=At(e,t);return n===!1?"":e.charAt(n)}var Ae=ko;function Po(e,t,n){for(let r=t;r t(e))}function jo(e){return[Mo,mu,Du,Eu,Kn,Hn,cu,yu,fu,Vo,Ho,Qn,ei,zn,ri,ui,si].some(t=>t(e))}function Lo(e){return[Fu,Kn,Hn,qo,Wo,du,Qn,Uo,$o,ni,zn,ti].some(t=>t(e))}function Ze(e,t){let n=(e.body||e.properties).find(({type:r})=>r!=="EmptyStatement");n?Y(n,t):ce(e,t)}function Sn(e,t){e.type==="BlockStatement"?Ze(e,t):Y(e,t)}function Mo({comment:e,followingNode:t}){return t&&No(e)?(Y(t,e),!0):!1}function Kn({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u}){if((n==null?void 0:n.type)!=="IfStatement"||!r)return!1;if(Ae(u,j(e))===")")return $(t,e),!0;if(t===n.consequent&&r===n.alternate){let a=At(u,j(n.consequent));if(U(e)"?(ce(t,e),!0):!1}function Wo({comment:e,enclosingNode:t,text:n}){return Ae(n,j(e))!==")"?!1:t&&(Au(t)&&Z(t).length===0||ct(t)&&ye(t).length===0)?(ce(t,e),!0):((t==null?void 0:t.type)==="MethodDefinition"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&Z(t.value).length===0?(ce(t.value,e),!0):!1}function Go({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u}){return(t==null?void 0:t.type)==="ComponentTypeParameter"&&((n==null?void 0:n.type)==="DeclareComponent"||(n==null?void 0:n.type)==="ComponentTypeAnnotation")&&(r==null?void 0:r.type)!=="ComponentTypeParameter"||((t==null?void 0:t.type)==="ComponentParameter"||(t==null?void 0:t.type)==="RestElement")&&(n==null?void 0:n.type)==="ComponentDeclaration"&&Ae(u,j(e))===")"?($(t,e),!0):!1}function mu({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:u}){return(t==null?void 0:t.type)==="FunctionTypeParam"&&(n==null?void 0:n.type)==="FunctionTypeAnnotation"&&(r==null?void 0:r.type)!=="FunctionTypeParam"||((t==null?void 0:t.type)==="Identifier"||(t==null?void 0:t.type)==="AssignmentPattern"||(t==null?void 0:t.type)==="ObjectPattern"||(t==null?void 0:t.type)==="ArrayPattern"||(t==null?void 0:t.type)==="RestElement"||(t==null?void 0:t.type)==="TSParameterProperty")&&Au(n)&&Ae(u,j(e))===")"?($(t,e),!0):!De(e)&&((n==null?void 0:n.type)==="FunctionDeclaration"||(n==null?void 0:n.type)==="FunctionExpression"||(n==null?void 0:n.type)==="ObjectMethod")&&(r==null?void 0:r.type)==="BlockStatement"&&n.body===r&&At(u,j(e))===U(r)?(Ze(r,e),!0):!1}function fu({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="LabeledStatement"?(Y(t,e),!0):!1}function zn({comment:e,enclosingNode:t}){return((t==null?void 0:t.type)==="ContinueStatement"||(t==null?void 0:t.type)==="BreakStatement")&&!t.label?($(t,e),!0):!1}function Vo({comment:e,precedingNode:t,enclosingNode:n}){return L(n)&&t&&n.callee===t&&n.arguments.length>0?(Y(n.arguments[0],e),!0):!1}function Ko({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return We(n)?(zt(e)&&(r.prettierIgnore=!0,e.unignore=!0),t?($(t,e),!0):!1):(We(r)&&zt(e)&&(r.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function Ho({comment:e,enclosingNode:t}){return we(t)?(Y(t,e),!0):!1}function Qn({comment:e,enclosingNode:t,ast:n,isLastComment:r}){var u;return((u=n==null?void 0:n.body)==null?void 0:u.length)===0?(r?ce(n,e):Y(n,e),!0):(t==null?void 0:t.type)==="Program"&&t.body.length===0&&!O(t.directives)?(r?ce(t,e):Y(t,e),!0):!1}function zo({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="ForInStatement"||(t==null?void 0:t.type)==="ForOfStatement"?(Y(t,e),!0):!1}function Eu({comment:e,precedingNode:t,enclosingNode:n,text:r}){if((n==null?void 0:n.type)==="ImportSpecifier"||(n==null?void 0:n.type)==="ExportSpecifier")return Y(n,e),!0;let u=(t==null?void 0:t.type)==="ImportSpecifier"&&(n==null?void 0:n.type)==="ImportDeclaration",a=(t==null?void 0:t.type)==="ExportSpecifier"&&(n==null?void 0:n.type)==="ExportNamedDeclaration";return(u||a)&&oe(r,j(e))?($(t,e),!0):!1}function Qo({comment:e,enclosingNode:t}){return(t==null?void 0:t.type)==="AssignmentPattern"?(Y(t,e),!0):!1}var Yo=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),Zo=new Set(["ObjectExpression","RecordExpression","ArrayExpression","TupleExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function ei({comment:e,enclosingNode:t,followingNode:n}){return Yo.has(t==null?void 0:t.type)&&n&&(Zo.has(n.type)||De(e))?(Y(n,e),!0):!1}function ti({comment:e,enclosingNode:t,followingNode:n,text:r}){return!n&&((t==null?void 0:t.type)==="TSMethodSignature"||(t==null?void 0:t.type)==="TSDeclareFunction"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&Ae(r,j(e))===";"?($(t,e),!0):!1}function Fu({comment:e,enclosingNode:t,followingNode:n}){if(zt(e)&&(t==null?void 0:t.type)==="TSMappedType"&&(n==null?void 0:n.type)==="TSTypeParameter"&&n.constraint)return t.prettierIgnore=!0,e.unignore=!0,!0}function ni({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return(n==null?void 0:n.type)!=="TSMappedType"?!1:(r==null?void 0:r.type)==="TSTypeParameter"&&r.name?(Y(r.name,e),!0):(t==null?void 0:t.type)==="TSTypeParameter"&&t.constraint?($(t.constraint,e),!0):!1}function ri({comment:e,enclosingNode:t,followingNode:n}){return!t||t.type!=="SwitchCase"||t.test||!n||n!==t.consequent[0]?!1:(n.type==="BlockStatement"&&yt(e)?Ze(n,e):ce(t,e),!0)}function ui({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return We(t)&&((n.type==="TSArrayType"||n.type==="ArrayTypeAnnotation")&&!r||tu(n))?($(M(!1,t.types,-1),e),!0):!1}function ai({comment:e,enclosingNode:t,precedingNode:n,followingNode:r}){if(((t==null?void 0:t.type)==="ObjectPattern"||(t==null?void 0:t.type)==="ArrayPattern")&&(r==null?void 0:r.type)==="TSTypeAnnotation")return n?$(n,e):ce(t,e),!0}function si({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){var u;if(!r&&(n==null?void 0:n.type)==="UnaryExpression"&&((t==null?void 0:t.type)==="LogicalExpression"||(t==null?void 0:t.type)==="BinaryExpression")){let a=((u=n.argument.loc)==null?void 0:u.start.line)!==t.right.loc.start.line,s=yt(e)||e.loc.start.line===e.loc.end.line,o=e.loc.start.line===t.right.loc.start.line;if(a&&s&&o)return $(t.right,e),!0}return!1}var Au=X(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]),oi=new Set(["EmptyStatement","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]);function ii(e){return!oi.has(e.type)}function pi(e,t){var n;if((t.parser==="typescript"||t.parser==="flow"||t.parser==="acorn"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree")&&e.type==="MethodDefinition"&&((n=e.value)==null?void 0:n.type)==="FunctionExpression"&&Z(e.value).length===0&&!e.value.returnType&&!O(e.value.typeParameters)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]}function gu(e){let{node:t,parent:n}=e;return(K(t)||n&&(n.type==="JSXSpreadAttribute"||n.type==="JSXSpreadChild"||We(n)||(n.type==="ClassDeclaration"||n.type==="ClassExpression")&&n.superClass===t))&&(!rn(t)||We(n))}function li(e,{parser:t}){if(t==="flow"||t==="babel-flow")return e=H(!1,e,/[\s(]/gu,""),e===""||e==="/*"||e==="/*::"}function ci(e){switch(e){case"cr":return"\r";case"crlf":return`\r +`;default:return` +`}}var re=Symbol("MODE_BREAK"),ge=Symbol("MODE_FLAT"),at=Symbol("cursor"),Er=Symbol("DOC_FILL_PRINTED_LENGTH");function xu(){return{value:"",length:0,queue:[]}}function Di(e,t){return bn(e,{type:"indent"},t)}function yi(e,t,n){return t===Number.NEGATIVE_INFINITY?e.root||xu():t<0?bn(e,{type:"dedent"},n):t?t.type==="root"?{...e,root:e}:bn(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},n):e}function bn(e,t,n){let r=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],u="",a=0,s=0,o=0;for(let y of r)switch(y.type){case"indent":d(),n.useTabs?i(1):l(n.tabWidth);break;case"stringAlign":d(),u+=y.n,a+=y.n.length;break;case"numberAlign":s+=1,o+=y.n;break;default:throw new Error(`Unexpected type '${y.type}'`)}return D(),{...e,value:u,length:a,queue:r};function i(y){u+=" ".repeat(y),a+=n.tabWidth*y}function l(y){u+=" ".repeat(y),a+=y}function d(){n.useTabs?c():D()}function c(){s>0&&i(s),p()}function D(){o>0&&l(o),p()}function p(){s=0,o=0}}function Bn(e){let t=0,n=0,r=e.length;e:for(;r--;){let u=e[r];if(u===at){n++;continue}for(let a=u.length-1;a>=0;a--){let s=u[a];if(s===" "||s===" ")t++;else{e[r]=u.slice(0,a+1);break e}}}if(t>0||n>0)for(e.length=r+1;n-- >0;)e.push(at);return t}function _t(e,t,n,r,u,a){if(n===Number.POSITIVE_INFINITY)return!0;let s=t.length,o=[e],i=[];for(;n>=0;){if(o.length===0){if(s===0)return!0;o.push(t[--s]);continue}let{mode:l,doc:d}=o.pop(),c=Et(d);switch(c){case dt:i.push(d),n-=ot(d);break;case Le:case Oe:{let D=c===Le?d:d.parts;for(let p=D.length-1;p>=0;p--)o.push({mode:l,doc:D[p]});break}case Ke:case He:case ze:case Je:o.push({mode:l,doc:d.contents});break;case ft:n+=Bn(i);break;case le:{if(a&&d.break)return!1;let D=d.break?re:l,p=d.expandedStates&&D===re?M(!1,d.expandedStates,-1):d.contents;o.push({mode:D,doc:p});break}case Ce:{let D=(d.groupId?u[d.groupId]||ge:l)===re?d.breakContents:d.flatContents;D&&o.push({mode:l,doc:D});break}case ie:if(l===re||d.hard)return!0;d.soft||(i.push(" "),n--);break;case Qe:r=!0;break;case Ye:if(r)return!1;break}}return!1}function Cu(e,t){let n={},r=t.printWidth,u=ci(t.endOfLine),a=0,s=[{ind:xu(),mode:re,doc:e}],o=[],i=!1,l=[],d=0;for(Fo(e);s.length>0;){let{ind:D,mode:p,doc:y}=s.pop();switch(Et(y)){case dt:{let F=u!==` +`?H(!1,y,` +`,u):y;o.push(F),s.length>0&&(a+=ot(F));break}case Le:for(let F=y.length-1;F>=0;F--)s.push({ind:D,mode:p,doc:y[F]});break;case mt:if(d>=2)throw new Error("There are too many 'cursor' in doc.");o.push(at),d++;break;case Ke:s.push({ind:Di(D,t),mode:p,doc:y.contents});break;case He:s.push({ind:yi(D,y.n,t),mode:p,doc:y.contents});break;case ft:a-=Bn(o);break;case le:switch(p){case ge:if(!i){s.push({ind:D,mode:y.break?re:ge,doc:y.contents});break}case re:{i=!1;let F={ind:D,mode:ge,doc:y.contents},g=r-a,S=l.length>0;if(!y.break&&_t(F,s,g,S,n))s.push(F);else if(y.expandedStates){let b=M(!1,y.expandedStates,-1);if(y.break){s.push({ind:D,mode:re,doc:b});break}else for(let x=1;x =y.expandedStates.length){s.push({ind:D,mode:re,doc:b});break}else{let N=y.expandedStates[x],v={ind:D,mode:ge,doc:N};if(_t(v,s,g,S,n)){s.push(v);break}}}else s.push({ind:D,mode:re,doc:y.contents});break}}y.id&&(n[y.id]=M(!1,s,-1).mode);break;case Oe:{let F=r-a,g=y[Er]??0,{parts:S}=y,b=S.length-g;if(b===0)break;let x=S[g+0],N=S[g+1],v={ind:D,mode:ge,doc:x},B={ind:D,mode:re,doc:x},q=_t(v,[],F,l.length>0,n,!0);if(b===1){q?s.push(v):s.push(B);break}let k={ind:D,mode:ge,doc:N},J={ind:D,mode:re,doc:N};if(b===2){q?s.push(k,v):s.push(J,B);break}let V=S[g+2],R={ind:D,mode:p,doc:{...y,[Er]:g+2}};_t({ind:D,mode:ge,doc:[x,N,V]},[],F,l.length>0,n,!0)?s.push(R,k,v):q?s.push(R,J,v):s.push(R,J,B);break}case Ce:case ze:{let F=y.groupId?n[y.groupId]:p;if(F===re){let g=y.type===Ce?y.breakContents:y.negate?y.contents:A(y.contents);g&&s.push({ind:D,mode:p,doc:g})}if(F===ge){let g=y.type===Ce?y.flatContents:y.negate?A(y.contents):y.contents;g&&s.push({ind:D,mode:p,doc:g})}break}case Qe:l.push({ind:D,mode:p,doc:y.contents});break;case Ye:l.length>0&&s.push({ind:D,mode:p,doc:ou});break;case ie:switch(p){case ge:if(y.hard)i=!0;else{y.soft||(o.push(" "),a+=1);break}case re:if(l.length>0){s.push({ind:D,mode:p,doc:y},...l.reverse()),l.length=0;break}y.literal?D.root?(o.push(u,D.root.value),a=D.root.length):(o.push(u),a=0):(a-=Bn(o),o.push(u+D.value),a=D.length);break}break;case Je:s.push({ind:D,mode:p,doc:y.contents});break;case qe:break;default:throw new Pt(y)}s.length===0&&l.length>0&&(s.push(...l.reverse()),l.length=0)}let c=o.indexOf(at);if(c!==-1){let D=o.indexOf(at,c+1);if(D===-1)return{formatted:o.filter(g=>g!==at).join("")};let p=o.slice(0,c).join(""),y=o.slice(c+1,D).join(""),F=o.slice(D+1).join("");return{formatted:p+y+F,cursorNodeStart:p.length,cursorNodeText:y}}return{formatted:o.join("")}}function di(e,t,n=0){let r=0;for(let u=n;u {if(a.push(t()),l.tail)return;let{tabWidth:d}=n,c=l.value.raw,D=c.includes(` +`)?Ei(c,d):o;o=D;let p=s[i],y=r[u][i],F=Me(n.originalText,j(l),U(r.quasis[i+1]));if(!F){let S=Cu(p,{...n,printWidth:Number.POSITIVE_INFINITY}).formatted;S.includes(` +`)?F=!0:p=S}F&&(C(y)||y.type==="Identifier"||W(y)||y.type==="ConditionalExpression"||y.type==="SequenceExpression"||xe(y)||Be(y))&&(p=[A([f,p]),f]);let g=D===0&&c.endsWith(` +`)?Te(Number.NEGATIVE_INFINITY,p):fo(p,D,d);a.push(m(["${",g,ve,"}"]))},"quasis"),a.push("`"),a}function Fi(e,t){let n=t("quasi");return It(n.label&&{tagged:!0,...n.label},[t("tag"),t(e.node.typeArguments?"typeArguments":"typeParameters"),ve,n])}function Ai(e,t,n){let{node:r}=e,u=r.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(u.length>1||u.some(a=>a.length>0)){t.__inJestEach=!0;let a=e.map(n,"expressions");t.__inJestEach=!1;let s=[],o=a.map(D=>"${"+Cu(D,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),i=[{hasLineBreak:!1,cells:[]}];for(let D=1;D D.cells.length)),d=Array.from({length:l}).fill(0),c=[{cells:u},...i.filter(D=>D.cells.length>0)];for(let{cells:D}of c.filter(p=>!p.hasLineBreak))for(let[p,y]of D.entries())d[p]=Math.max(d[p],ot(y));return s.push(ve,"`",A([E,I(E,c.map(D=>I(" | ",D.cells.map((p,y)=>D.hasLineBreak?p:p+" ".repeat(d[y]-ot(p))))))]),E,"`"),s}}function gi(e,t){let{node:n}=e,r=t();return C(n)&&(r=m([A([f,r]),f])),["${",r,ve,"}"]}function Yn(e,t){return e.map(n=>gi(n,t),"expressions")}function hu(e,t){return Ft(e,n=>typeof n=="string"?t?H(!1,n,/(\\*)`/gu,"$1$1\\`"):Su(n):n)}function Su(e){return H(!1,e,/([\\`]|\$\{)/gu,String.raw`\$1`)}function xi({node:e,parent:t}){let n=/^[fx]?(?:describe|it|test)$/u;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&n.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&n.test(t.tag.object.object.name))}var vn=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];function Ci(e){let t=r=>r.type==="TemplateLiteral",n=(r,u)=>we(r)&&!r.computed&&r.key.type==="Identifier"&&r.key.name==="styles"&&u==="value";return e.match(t,(r,u)=>Q(r)&&u==="elements",n,...vn)||e.match(t,n,...vn)}function Ti(e){return e.match(t=>t.type==="TemplateLiteral",(t,n)=>we(t)&&!t.computed&&t.key.type==="Identifier"&&t.key.name==="template"&&n==="value",...vn)}function yn(e,t){return C(e,h.Block|h.Leading,({value:n})=>n===` ${t} `)}function bu({node:e,parent:t},n){return yn(e,n)||hi(t)&&yn(t,n)||t.type==="ExpressionStatement"&&yn(t,n)}function hi(e){return e.type==="AsConstExpression"||e.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const"}async function Si(e,t,n){let{node:r}=n,u=r.quasis.map(d=>d.value.raw),a=0,s=u.reduce((d,c,D)=>D===0?c:d+"@prettier-placeholder-"+a+++"-id"+c,""),o=await e(s,{parser:"scss"}),i=Yn(n,t),l=bi(o,i);if(!l)throw new Error("Couldn't insert all the expressions");return["`",A([E,l]),f,"`"]}function bi(e,t){if(!O(t))return e;let n=0,r=Ft(Gn(e),u=>typeof u!="string"||!u.includes("@prettier-placeholder")?u:u.split(/@prettier-placeholder-(\d+)-id/u).map((a,s)=>s%2===0?Ge(a):(n++,t[a])));return t.length===n?r:null}function Bi({node:e,parent:t,grandparent:n}){return n&&e.quasis&&t.type==="JSXExpressionContainer"&&n.type==="JSXElement"&&n.openingElement.name.name==="style"&&n.openingElement.attributes.some(r=>r.type==="JSXAttribute"&&r.name.name==="jsx")||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="css"||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="MemberExpression"&&t.tag.object.name==="css"&&(t.tag.property.name==="global"||t.tag.property.name==="resolve")}function $t(e){return e.type==="Identifier"&&e.name==="styled"}function Fr(e){return/^[A-Z]/u.test(e.object.name)&&e.property.name==="extend"}function vi({parent:e}){if(!e||e.type!=="TaggedTemplateExpression")return!1;let t=e.tag.type==="ParenthesizedExpression"?e.tag.expression:e.tag;switch(t.type){case"MemberExpression":return $t(t.object)||Fr(t);case"CallExpression":return $t(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&($t(t.callee.object.object)||Fr(t.callee.object))||t.callee.object.type==="CallExpression"&&$t(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function ki({parent:e,grandparent:t}){return(t==null?void 0:t.type)==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}function Pi(e){if(Bi(e)||vi(e)||ki(e)||Ci(e))return Si}var wi=Pi;async function Ni(e,t,n){let{node:r}=n,u=r.quasis.length,a=Yn(n,t),s=[];for(let o=0;o2&&D[0].trim()===""&&D[1].trim()==="",g=p>2&&D[p-1].trim()===""&&D[p-2].trim()==="",S=D.every(x=>/^\s*(?:#[^\n\r]*)?$/u.test(x));if(!d&&/#[^\n\r]*$/u.test(D[p-1]))return null;let b=null;S?b=Ii(D):b=await e(c,{parser:"graphql"}),b?(b=hu(b,!1),!l&&F&&s.push(""),s.push(b),!d&&g&&s.push("")):!l&&!d&&F&&s.push(""),y&&s.push(y)}return["`",A([E,I(E,s)]),E,"`"]}function Ii(e){let t=[],n=!1,r=e.map(u=>u.trim());for(let[u,a]of r.entries())a!==""&&(r[u-1]===""&&n?t.push([E,a]):t.push(a),n=!0);return t.length===0?null:I(E,t)}function ji({node:e,parent:t}){return bu({node:e,parent:t},"GraphQL")||t&&(t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"&&t.tag.object.name==="graphql"&&t.tag.property.name==="experimental"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"))||t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="graphql")}function Li(e){if(ji(e))return Ni}var Mi=Li,dn=0;async function Bu(e,t,n,r,u){let{node:a}=r,s=dn;dn=dn+1>>>0;let o=S=>`PRETTIER_HTML_PLACEHOLDER_${S}_${s}_IN_JS`,i=a.quasis.map((S,b,x)=>b===x.length-1?S.value.cooked:S.value.cooked+o(b)).join(""),l=Yn(r,n),d=new RegExp(o(String.raw`(\d+)`),"gu"),c=0,D=await t(i,{parser:e,__onHtmlRoot(S){c=S.children.length}}),p=Ft(D,S=>{if(typeof S!="string")return S;let b=[],x=S.split(d);for(let N=0;N 1?A(m(p)):m(p),F,"`"]))}function Oi(e){return bu(e,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,n)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&n==="quasi")}var Ji=Bu.bind(void 0,"html"),qi=Bu.bind(void 0,"angular");function Xi(e){if(Oi(e))return Ji;if(Ti(e))return qi}var Ri=Xi;async function _i(e,t,n){let{node:r}=n,u=H(!1,r.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(i,l)=>"\\".repeat(l.length/2)+"`"),a=$i(u),s=a!=="";s&&(u=H(!1,u,new RegExp(`^${a}`,"gmu"),""));let o=hu(await e(u,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",s?A([f,o]):[iu,yo(o)],f,"`"]}function $i(e){let t=e.match(/^([^\S\n]*)\S/mu);return t===null?"":t[1]}function Ui(e){if(Wi(e))return _i}function Wi({node:e,parent:t}){return(t==null?void 0:t.type)==="TaggedTemplateExpression"&&e.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}var Gi=Ui;function Vi(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||Ki(t))return;let n;for(let r of[wi,Mi,Ri,Gi])if(n=r(e),!!n)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":async(...u)=>{let a=await n(...u);return a&&It({embed:!0,...a.label},a)}}function Ki({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var Hi=Vi,zi=/\*\/$/,Qi=/^\/\*\*?/,vu=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Yi=/(^|\s+)\/\/([^\n\r]*)/g,Ar=/^(\r?\n)+/,Zi=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,gr=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,ep=/(\r?\n|^) *\* ?/g,ku=[];function tp(e){let t=e.match(vu);return t?t[0].trimStart():""}function np(e){let t=e.match(vu),n=t==null?void 0:t[0];return n==null?e:e.slice(n.length)}function rp(e){let t=` +`;e=H(!1,e.replace(Qi,"").replace(zi,""),ep,"$1");let n="";for(;n!==e;)n=e,e=H(!1,e,Zi,`${t}$1 $2${t}`);e=e.replace(Ar,"").trimEnd();let r=Object.create(null),u=H(!1,e,gr,"").replace(Ar,"").trimEnd(),a;for(;a=gr.exec(e);){let s=H(!1,a[2],Yi,"");if(typeof r[a[1]]=="string"||Array.isArray(r[a[1]])){let o=r[a[1]];r[a[1]]=[...ku,...Array.isArray(o)?o:[o],s]}else r[a[1]]=s}return{comments:u,pragmas:r}}function up({comments:e="",pragmas:t={}}){let n=` +`,r="/**",u=" *",a=" */",s=Object.keys(t),o=s.flatMap(l=>xr(l,t[l])).map(l=>`${u} ${l}${n}`).join("");if(!e){if(s.length===0)return"";if(s.length===1&&!Array.isArray(t[s[0]])){let l=t[s[0]];return`${r} ${xr(s[0],l)[0]}${a}`}}let i=e.split(n).map(l=>`${u} ${l}`).join(n)+n;return r+n+(e?i:"")+(e&&s.length>0?u+n:"")+o+a}function xr(e,t){return[...ku,...Array.isArray(t)?t:[t]].map(n=>`@${e} ${n}`.trim())}function ap(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(` +`);return t===-1?e:e.slice(0,t)}var sp=ap;function op(e){let t=sp(e);t&&(e=e.slice(t.length+1));let n=tp(e),{pragmas:r,comments:u}=rp(n);return{shebang:t,text:e,pragmas:r,comments:u}}function ip(e){let{shebang:t,text:n,pragmas:r,comments:u}=op(e),a=np(n),s=up({pragmas:{format:"",...r},comments:u.trimStart()});return(t?`${t} +`:"")+s+(a.startsWith(` +`)?` +`:` + +`)+a}function pp(e,t){let{originalText:n,[Symbol.for("comments")]:r,locStart:u,locEnd:a,[Symbol.for("printedComments")]:s}=t,{node:o}=e,i=u(o),l=a(o);for(let d of r)u(d)>=i&&a(d)<=l&&s.add(d);return n.slice(i,l)}var lp=pp;function kn(e,t){var n,r,u,a,s,o,i,l,d;if(e.isRoot)return!1;let{node:c,key:D,parent:p}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&dp(c)&&St(e))return!0;if(cp(c))return!1;if(c.type==="Identifier"){if((n=c.extra)!=null&&n.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(c.name)||D==="left"&&(c.name==="async"&&!p.await||c.name==="let")&&p.type==="ForOfStatement")return!0;if(c.name==="let"){let y=(r=e.findAncestor(F=>F.type==="ForOfStatement"))==null?void 0:r.left;if(y&&ee(y,F=>F===c))return!0}if(D==="object"&&c.name==="let"&&p.type==="MemberExpression"&&p.computed&&!p.optional){let y=e.findAncestor(g=>g.type==="ExpressionStatement"||g.type==="ForStatement"||g.type==="ForInStatement"),F=y?y.type==="ExpressionStatement"?y.expression:y.type==="ForStatement"?y.init:y.left:void 0;if(F&&ee(F,g=>g===c))return!0}if(D==="expression")switch(c.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let y=e.findAncestor(F=>!xe(F));if(y!==p&&y.type==="ExpressionStatement")return!0}}return!1}if(c.type==="ObjectExpression"||c.type==="FunctionExpression"||c.type==="ClassExpression"||c.type==="DoExpression"){let y=(u=e.findAncestor(F=>F.type==="ExpressionStatement"))==null?void 0:u.expression;if(y&&ee(y,F=>F===c))return!0}if(c.type==="ObjectExpression"){let y=(a=e.findAncestor(F=>F.type==="ArrowFunctionExpression"))==null?void 0:a.body;if(y&&y.type!=="SequenceExpression"&&y.type!=="AssignmentExpression"&&ee(y,F=>F===c))return!0}switch(p.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(D==="superClass"&&(c.type==="ArrowFunctionExpression"||c.type==="AssignmentExpression"||c.type==="AwaitExpression"||c.type==="BinaryExpression"||c.type==="ConditionalExpression"||c.type==="LogicalExpression"||c.type==="NewExpression"||c.type==="ObjectExpression"||c.type==="SequenceExpression"||c.type==="TaggedTemplateExpression"||c.type==="UnaryExpression"||c.type==="UpdateExpression"||c.type==="YieldExpression"||c.type==="TSNonNullExpression"||c.type==="ClassExpression"&&O(c.decorators)))return!0;break;case"ExportDefaultDeclaration":return Pu(e,t)||c.type==="SequenceExpression";case"Decorator":if(D==="expression"&&!fp(c))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(y,F)=>F==="returnType"&&y.type==="ArrowFunctionExpression")&&yp(c))return!0;break;case"BinaryExpression":if(D==="left"&&(p.operator==="in"||p.operator==="instanceof")&&c.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(D==="init"&&e.match(void 0,void 0,(y,F)=>F==="declarations"&&y.type==="VariableDeclaration",(y,F)=>F==="left"&&y.type==="ForInStatement"))return!0;break}switch(c.type){case"UpdateExpression":if(p.type==="UnaryExpression")return c.prefix&&(c.operator==="++"&&p.operator==="+"||c.operator==="--"&&p.operator==="-");case"UnaryExpression":switch(p.type){case"UnaryExpression":return c.operator===p.operator&&(c.operator==="+"||c.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return D==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return D==="callee";case"BinaryExpression":return D==="left"&&p.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(p.type==="UpdateExpression"||c.operator==="in"&&Dp(e))return!0;if(c.operator==="|>"&&(s=c.extra)!=null&&s.parenthesized){let y=e.grandparent;if(y.type==="BinaryExpression"&&y.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(p.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!xe(c);case"ConditionalExpression":return xe(c)||_s(c);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return D==="callee";case"ClassExpression":case"ClassDeclaration":return D==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return D==="object";case"AssignmentExpression":case"AssignmentPattern":return D==="left"&&(c.type==="TSTypeAssertion"||xe(c));case"LogicalExpression":if(c.type==="LogicalExpression")return p.operator!==c.operator;case"BinaryExpression":{let{operator:y,type:F}=c;if(!y&&F!=="TSTypeAssertion")return!0;let g=Kt(y),S=p.operator,b=Kt(S);return b>g||D==="right"&&b===g||b===g&&!Wn(S,y)?!0:b ");default:return!1}case"TSFunctionType":if(e.match(y=>y.type==="TSFunctionType",(y,F)=>F==="typeAnnotation"&&y.type==="TSTypeAnnotation",(y,F)=>F==="returnType"&&y.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":if(D==="extendsType"&&p.type==="TSConditionalType"){if(c.type==="TSConditionalType")return!0;let{typeAnnotation:y}=c.returnType||c.typeAnnotation;if(y.type==="TSTypePredicate"&&y.typeAnnotation&&(y=y.typeAnnotation.typeAnnotation),y.type==="TSInferType"&&y.typeParameter.constraint)return!0}if(D==="checkType"&&p.type==="TSConditionalType")return!0;case"TSUnionType":case"TSIntersectionType":if((p.type==="TSUnionType"||p.type==="TSIntersectionType")&&p.types.length>1&&(!c.types||c.types.length>1))return!0;case"TSInferType":if(c.type==="TSInferType"){if(p.type==="TSRestType")return!1;if(D==="types"&&(p.type==="TSUnionType"||p.type==="TSIntersectionType")&&c.typeParameter.type==="TSTypeParameter"&&c.typeParameter.constraint)return!0}case"TSTypeOperator":return p.type==="TSArrayType"||p.type==="TSOptionalType"||p.type==="TSRestType"||D==="objectType"&&p.type==="TSIndexedAccessType"||p.type==="TSTypeOperator"||p.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return D==="objectType"&&p.type==="TSIndexedAccessType"||D==="elementType"&&p.type==="TSArrayType";case"TypeOperator":return p.type==="ArrayTypeAnnotation"||p.type==="NullableTypeAnnotation"||D==="objectType"&&(p.type==="IndexedAccessType"||p.type==="OptionalIndexedAccessType")||p.type==="TypeOperator";case"TypeofTypeAnnotation":return D==="objectType"&&(p.type==="IndexedAccessType"||p.type==="OptionalIndexedAccessType")||D==="elementType"&&p.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return p.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return p.type==="TypeOperator"||p.type==="ArrayTypeAnnotation"||p.type==="NullableTypeAnnotation"||p.type==="IntersectionTypeAnnotation"||p.type==="UnionTypeAnnotation"||D==="objectType"&&(p.type==="IndexedAccessType"||p.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return p.type==="ArrayTypeAnnotation"||D==="objectType"&&(p.type==="IndexedAccessType"||p.type==="OptionalIndexedAccessType");case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if(c.type==="ComponentTypeAnnotation"&&(c.rendersType===null||c.rendersType===void 0))return!1;if(e.match(void 0,(F,g)=>g==="typeAnnotation"&&F.type==="TypeAnnotation",(F,g)=>g==="returnType"&&F.type==="ArrowFunctionExpression")||e.match(void 0,(F,g)=>g==="typeAnnotation"&&F.type==="TypePredicate",(F,g)=>g==="typeAnnotation"&&F.type==="TypeAnnotation",(F,g)=>g==="returnType"&&F.type==="ArrowFunctionExpression"))return!0;let y=p.type==="NullableTypeAnnotation"?e.grandparent:p;return y.type==="UnionTypeAnnotation"||y.type==="IntersectionTypeAnnotation"||y.type==="ArrayTypeAnnotation"||D==="objectType"&&(y.type==="IndexedAccessType"||y.type==="OptionalIndexedAccessType")||D==="checkType"&&p.type==="ConditionalTypeAnnotation"||D==="extendsType"&&p.type==="ConditionalTypeAnnotation"&&((o=c.returnType)==null?void 0:o.type)==="InferTypeAnnotation"&&((i=c.returnType)==null?void 0:i.typeParameter.bound)||y.type==="NullableTypeAnnotation"||p.type==="FunctionTypeParam"&&p.name===null&&Z(c).some(F=>{var g;return((g=F.typeAnnotation)==null?void 0:g.type)==="NullableTypeAnnotation"})}case"ConditionalTypeAnnotation":if(D==="extendsType"&&p.type==="ConditionalTypeAnnotation"&&c.type==="ConditionalTypeAnnotation"||D==="checkType"&&p.type==="ConditionalTypeAnnotation")return!0;case"OptionalIndexedAccessType":return D==="objectType"&&p.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof c.value=="string"&&p.type==="ExpressionStatement"&&!p.directive){let y=e.grandparent;return y.type==="Program"||y.type==="BlockStatement"}return D==="object"&&p.type==="MemberExpression"&&typeof c.value=="number";case"AssignmentExpression":{let y=e.grandparent;return D==="body"&&p.type==="ArrowFunctionExpression"?!0:D==="key"&&(p.type==="ClassProperty"||p.type==="PropertyDefinition")&&p.computed||(D==="init"||D==="update")&&p.type==="ForStatement"?!1:p.type==="ExpressionStatement"?c.left.type==="ObjectPattern":!(D==="key"&&p.type==="TSPropertySignature"||p.type==="AssignmentExpression"||p.type==="SequenceExpression"&&y.type==="ForStatement"&&(y.init===p||y.update===p)||D==="value"&&p.type==="Property"&&y.type==="ObjectPattern"&&y.properties.includes(p)||p.type==="NGChainedExpression"||D==="node"&&p.type==="JsExpressionRoot")}case"ConditionalExpression":switch(p.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return D==="callee";case"ConditionalExpression":return t.experimentalTernaries?!1:D==="test";case"MemberExpression":case"OptionalMemberExpression":return D==="object";default:return!1}case"FunctionExpression":switch(p.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return D==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(p.type){case"BinaryExpression":return p.operator!=="|>"||((l=c.extra)==null?void 0:l.parenthesized);case"NewExpression":case"CallExpression":case"OptionalCallExpression":return D==="callee";case"MemberExpression":case"OptionalMemberExpression":return D==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return D==="test";default:return!1}case"ClassExpression":switch(p.type){case"NewExpression":return D==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(mp(e))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(D==="callee"&&(p.type==="BindExpression"||p.type==="NewExpression")){let y=c;for(;y;)switch(y.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":y=y.object;break;case"TaggedTemplateExpression":y=y.tag;break;case"TSNonNullExpression":y=y.expression;break;default:return!1}}return!1;case"BindExpression":return D==="callee"&&(p.type==="BindExpression"||p.type==="NewExpression")||D==="object"&&W(p);case"NGPipeExpression":return!(p.type==="NGRoot"||p.type==="NGMicrosyntaxExpression"||p.type==="ObjectProperty"&&!((d=c.extra)!=null&&d.parenthesized)||Q(p)||D==="arguments"&&L(p)||D==="right"&&p.type==="NGPipeExpression"||D==="property"&&p.type==="MemberExpression"||p.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return D==="callee"||D==="left"&&p.type==="BinaryExpression"&&p.operator==="<"||!Q(p)&&p.type!=="ArrowFunctionExpression"&&p.type!=="AssignmentExpression"&&p.type!=="AssignmentPattern"&&p.type!=="BinaryExpression"&&p.type!=="NewExpression"&&p.type!=="ConditionalExpression"&&p.type!=="ExpressionStatement"&&p.type!=="JsExpressionRoot"&&p.type!=="JSXAttribute"&&p.type!=="JSXElement"&&p.type!=="JSXExpressionContainer"&&p.type!=="JSXFragment"&&p.type!=="LogicalExpression"&&!L(p)&&!we(p)&&p.type!=="ReturnStatement"&&p.type!=="ThrowStatement"&&p.type!=="TypeCastExpression"&&p.type!=="VariableDeclarator"&&p.type!=="YieldExpression";case"TSInstantiationExpression":return D==="object"&&W(p)}return!1}var cp=X(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function Dp(e){let t=0,{node:n}=e;for(;n;){let r=e.getParentNode(t++);if((r==null?void 0:r.type)==="ForStatement"&&r.init===n)return!0;n=r}return!1}function yp(e){return xn(e,t=>t.type==="ObjectTypeAnnotation"&&xn(t,n=>n.type==="FunctionTypeAnnotation"))}function dp(e){return Fe(e)}function St(e){let{parent:t,key:n}=e;switch(t.type){case"NGPipeExpression":if(n==="arguments"&&e.isLast)return e.callParent(St);break;case"ObjectProperty":if(n==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(n==="right")return e.callParent(St);break;case"ConditionalExpression":if(n==="alternate")return e.callParent(St);break;case"UnaryExpression":if(t.prefix)return e.callParent(St);break}return!1}function Pu(e,t){let{node:n,parent:r}=e;return n.type==="FunctionExpression"||n.type==="ClassExpression"?r.type==="ExportDefaultDeclaration"||!kn(e,t):!Rn(n)||r.type!=="ExportDefaultDeclaration"&&kn(e,t)?!1:e.call(()=>Pu(e,t),...Wr(n))}function mp(e){return!!(e.match(void 0,(t,n)=>n==="expression"&&t.type==="ChainExpression",(t,n)=>n==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,n)=>n==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,n)=>n==="expression"&&t.type==="TSNonNullExpression",(t,n)=>n==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,n)=>n==="expression"&&t.type==="ChainExpression",(t,n)=>n==="expression"&&t.type==="TSNonNullExpression",(t,n)=>n==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,n)=>n==="expression"&&t.type==="TSNonNullExpression",(t,n)=>n==="expression"&&t.type==="ChainExpression",(t,n)=>n==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,n)=>n==="object"&&t.type==="MemberExpression"||n==="callee"&&(t.type==="CallExpression"||t.type==="NewExpression"))||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,n)=>n==="expression"&&t.type==="TSNonNullExpression",(t,n)=>n==="object"&&t.type==="MemberExpression"||n==="callee"&&t.type==="CallExpression")||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,n)=>n==="expression"&&t.type==="ChainExpression")&&(e.match(void 0,void 0,(t,n)=>n==="callee"&&(t.type==="CallExpression"&&!t.optional||t.type==="NewExpression")||n==="object"&&t.type==="MemberExpression"&&!t.optional)||e.match(void 0,void 0,(t,n)=>n==="expression"&&t.type==="TSNonNullExpression",(t,n)=>n==="object"&&t.type==="MemberExpression"||n==="callee"&&t.type==="CallExpression"))||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,n)=>n==="expression"&&t.type==="TSNonNullExpression",(t,n)=>n==="expression"&&t.type==="ChainExpression",(t,n)=>n==="object"&&t.type==="MemberExpression"||n==="callee"&&t.type==="CallExpression"))}function Pn(e){return e.type==="Identifier"?!0:W(e)?!e.computed&&!e.optional&&e.property.type==="Identifier"&&Pn(e.object):!1}function fp(e){return e.type==="ChainExpression"&&(e=e.expression),Pn(e)||L(e)&&!e.optional&&Pn(e.callee)}var et=kn;function Ep(e,t){let n=t-1;n=it(e,n,{backwards:!0}),n=pt(e,n,{backwards:!0}),n=it(e,n,{backwards:!0});let r=pt(e,n,{backwards:!0});return n!==r}var Fp=Ep,Ap=()=>!0;function Zn(e,t){let n=e.node;return n.printed=!0,t.printer.printComment(e,t)}function gp(e,t){var n;let r=e.node,u=[Zn(e,t)],{printer:a,originalText:s,locStart:o,locEnd:i}=t;if((n=a.isBlockComment)!=null&&n.call(a,r)){let d=oe(s,i(r))?oe(s,o(r),{backwards:!0})?E:T:" ";u.push(d)}else u.push(E);let l=pt(s,it(s,i(r)));return l!==!1&&oe(s,l)&&u.push(E),u}function xp(e,t,n){var r;let u=e.node,a=Zn(e,t),{printer:s,originalText:o,locStart:i}=t,l=(r=s.isBlockComment)==null?void 0:r.call(s,u);if(n!=null&&n.hasLineSuffix&&!(n!=null&&n.isBlock)||oe(o,i(u),{backwards:!0})){let d=Fp(o,i(u));return{doc:mr([E,d?E:"",a]),isBlock:l,hasLineSuffix:!0}}return!l||n!=null&&n.hasLineSuffix?{doc:[mr([" ",a]),he],isBlock:l,hasLineSuffix:!0}:{doc:[" ",a],isBlock:l,hasLineSuffix:!1}}function _(e,t,n={}){let{node:r}=e;if(!O(r==null?void 0:r.comments))return"";let{indent:u=!1,marker:a,filter:s=Ap}=n,o=[];if(e.each(({node:l})=>{l.leading||l.trailing||l.marker!==a||!s(l)||o.push(Zn(e,t))},"comments"),o.length===0)return"";let i=I(E,o);return u?A([E,i]):i}function wu(e,t){let n=e.node;if(!n)return{};let r=t[Symbol.for("printedComments")];if((n.comments||[]).filter(o=>!r.has(o)).length===0)return{leading:"",trailing:""};let u=[],a=[],s;return e.each(()=>{let o=e.node;if(r!=null&&r.has(o))return;let{leading:i,trailing:l}=o;i?u.push(gp(e,t)):l&&(s=xp(e,t,s),a.push(s.doc))},"comments"),{leading:u,trailing:a}}function Ee(e,t,n){let{leading:r,trailing:u}=wu(e,n);return!r&&!u?t:hn(t,a=>[r,a,u])}var Cp=class extends Error{constructor(t,n,r="type"){super(`Unexpected ${n} node ${r}: ${JSON.stringify(t[r])}.`);Jt(this,"name","UnexpectedNodeError");this.node=t}},gt=Cp;function Tp(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var me,hp=class{constructor(e){Ya(this,me),Za(this,me,new Set(e))}getLeadingWhitespaceCount(e){let t=Ne(this,me),n=0;for(let r=0;r /g,">")}function ZZ(n){return Object.keys(n||{}).reduce(function(e,t){return e+"".concat(t,'="').concat(wW(n[t]),'" ')},"").trim()}function Xx(n){return Object.keys(n||{}).reduce(function(e,t){return e+"".concat(t,": ").concat(n[t].trim(),";")},"")}function lM(n){return n.size!==Fa.size||n.x!==Fa.x||n.y!==Fa.y||n.rotate!==Fa.rotate||n.flipX||n.flipY}function XZ(n){var e=n.transform,t=n.containerWidth,i=n.iconWidth,s={transform:"translate(".concat(t/2," 256)")},o="translate(".concat(e.x*32,", ").concat(e.y*32,") "),r="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),a="rotate(".concat(e.rotate," 0 0)"),l={transform:"".concat(o," ").concat(r," ").concat(a)},c={transform:"translate(".concat(i/2*-1," -256)")};return{outer:s,inner:l,path:c}}function QZ(n){var e=n.transform,t=n.width,i=t===void 0?TE:t,s=n.height,o=s===void 0?TE:s,r=n.startCentered,a=r===void 0?!1:r,l="";return a&&gW?l+="translate(".concat(e.x/Tc-i/2,"em, ").concat(e.y/Tc-o/2,"em) "):a?l+="translate(calc(-50% + ".concat(e.x/Tc,"em), calc(-50% + ").concat(e.y/Tc,"em)) "):l+="translate(".concat(e.x/Tc,"em, ").concat(e.y/Tc,"em) "),l+="scale(".concat(e.size/Tc*(e.flipX?-1:1),", ").concat(e.size/Tc*(e.flipY?-1:1),") "),l+="rotate(".concat(e.rotate,"deg) "),l}var JZ=`:root, :host { - --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; - --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; - --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; - --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; + */const sW=()=>new DZ;let DZ=class{};const dk=new WeakMap,m5=tW(class extends LZ{render(n){return zi}update(n,[e]){var i;const t=e!==this.Y;return t&&this.Y!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.Y=e,this.ht=(i=n.options)==null?void 0:i.host,this.rt(this.ct=n.element)),zi}rt(n){if(this.isConnected||(n=void 0),typeof this.Y=="function"){const e=this.ht??globalThis;let t=dk.get(e);t===void 0&&(t=new WeakMap,dk.set(e,t)),t.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),t.set(this.Y,n),n!==void 0&&this.Y.call(this.ht,n)}else this.Y.value=n}get lt(){var n,e;return typeof this.Y=="function"?(n=dk.get(this.ht??globalThis))==null?void 0:n.get(this.Y):(e=this.Y)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}}),_5=()=>{};let iM={},oW={},rW=null,aW={mark:_5,measure:_5};try{typeof window<"u"&&(iM=window),typeof document<"u"&&(oW=document),typeof MutationObserver<"u"&&(rW=MutationObserver),typeof performance<"u"&&(aW=performance)}catch{}const{userAgent:b5=""}=iM.navigator||{},zd=iM,Fi=oW,v5=rW,Sy=aW;zd.document;const vc=!!Fi.documentElement&&!!Fi.head&&typeof Fi.addEventListener=="function"&&typeof Fi.createElement=="function",lW=~b5.indexOf("MSIE")||~b5.indexOf("Trident/");var $i="classic",cW="duotone",Bo="sharp",Wo="sharp-duotone",kZ=[$i,cW,Bo,Wo],EZ={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}},y5={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},AZ=["kit"],IZ=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,TZ=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,NZ={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},RZ={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"}},MZ={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}},PZ={classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]},OZ={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}},FZ={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}},dW={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},BZ=["solid","regular","light","thin","duotone","brands"],uW=[1,2,3,4,5,6,7,8,9,10],WZ=uW.concat([11,12,13,14,15,16,17,18,19,20]),Q0={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},VZ=[...Object.keys(PZ),...BZ,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Q0.GROUP,Q0.SWAP_OPACITY,Q0.PRIMARY,Q0.SECONDARY].concat(uW.map(n=>"".concat(n,"x"))).concat(WZ.map(n=>"w-".concat(n))),zZ={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},HZ={kit:{"fa-kit":"fak"},"kit-duotone":{"fa-kit-duotone":"fakd"}},$Z={kit:{fak:"fa-kit"},"kit-duotone":{fakd:"fa-kit-duotone"}},w5={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}};const hc="___FONT_AWESOME___",LE=16,hW="fa",fW="svg-inline--fa",uf="data-fa-i2svg",DE="data-fa-pseudo-element",UZ="data-fa-pseudo-element-pending",nM="data-prefix",sM="data-icon",C5="fontawesome-i2svg",jZ="async",qZ=["HTML","HEAD","STYLE","SCRIPT"],gW=(()=>{try{return!0}catch{return!1}})(),pW=[$i,Bo,Wo];function g1(n){return new Proxy(n,{get(e,t){return t in e?e[t]:e[$i]}})}const mW={...dW};mW[$i]={...dW[$i],...y5.kit,...y5["kit-duotone"]};const Hh=g1(mW),kE={...FZ};kE[$i]={...kE[$i],...w5.kit,...w5["kit-duotone"]};const cb=g1(kE),EE={...OZ};EE[$i]={...EE[$i],...$Z.kit};const $h=g1(EE),AE={...MZ};AE[$i]={...AE[$i],...HZ.kit};const GZ=g1(AE),KZ=IZ,_W="fa-layers-text",YZ=TZ,ZZ={...EZ};g1(ZZ);const XZ=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],uk=Q0,tm=new Set;Object.keys(cb[$i]).map(tm.add.bind(tm));Object.keys(cb[Bo]).map(tm.add.bind(tm));Object.keys(cb[Wo]).map(tm.add.bind(tm));const QZ=[...AZ,...VZ],I_=zd.FontAwesomeConfig||{};function JZ(n){var e=Fi.querySelector("script["+n+"]");if(e)return e.getAttribute(n)}function eX(n){return n===""?!0:n==="false"?!1:n==="true"?!0:n}Fi&&typeof Fi.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(e=>{let[t,i]=e;const s=eX(JZ(t));s!=null&&(I_[i]=s)});const bW={styleDefault:"solid",familyDefault:"classic",cssPrefix:hW,replacementClass:fW,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};I_.familyPrefix&&(I_.cssPrefix=I_.familyPrefix);const im={...bW,...I_};im.autoReplaceSvg||(im.observeMutations=!1);const Be={};Object.keys(bW).forEach(n=>{Object.defineProperty(Be,n,{enumerable:!0,set:function(e){im[n]=e,T_.forEach(t=>t(Be))},get:function(){return im[n]}})});Object.defineProperty(Be,"familyPrefix",{enumerable:!0,set:function(n){im.cssPrefix=n,T_.forEach(e=>e(Be))},get:function(){return im.cssPrefix}});zd.FontAwesomeConfig=Be;const T_=[];function tX(n){return T_.push(n),()=>{T_.splice(T_.indexOf(n),1)}}const Tc=LE,Pa={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function iX(n){if(!n||!vc)return;const e=Fi.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=n;const t=Fi.head.childNodes;let i=null;for(let s=t.length-1;s>-1;s--){const o=t[s],r=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(r)>-1&&(i=o)}return Fi.head.insertBefore(e,i),n}const nX="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function db(){let n=12,e="";for(;n-- >0;)e+=nX[Math.random()*62|0];return e}function Ym(n){const e=[];for(let t=(n||[]).length>>>0;t--;)e[t]=n[t];return e}function oM(n){return n.classList?Ym(n.classList):(n.getAttribute("class")||"").split(" ").filter(e=>e)}function vW(n){return"".concat(n).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function sX(n){return Object.keys(n||{}).reduce((e,t)=>e+"".concat(t,'="').concat(vW(n[t]),'" '),"").trim()}function Ux(n){return Object.keys(n||{}).reduce((e,t)=>e+"".concat(t,": ").concat(n[t].trim(),";"),"")}function rM(n){return n.size!==Pa.size||n.x!==Pa.x||n.y!==Pa.y||n.rotate!==Pa.rotate||n.flipX||n.flipY}function oX(n){let{transform:e,containerWidth:t,iconWidth:i}=n;const s={transform:"translate(".concat(t/2," 256)")},o="translate(".concat(e.x*32,", ").concat(e.y*32,") "),r="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),a="rotate(".concat(e.rotate," 0 0)"),l={transform:"".concat(o," ").concat(r," ").concat(a)},c={transform:"translate(".concat(i/2*-1," -256)")};return{outer:s,inner:l,path:c}}function rX(n){let{transform:e,width:t=LE,height:i=LE,startCentered:s=!1}=n,o="";return s&&lW?o+="translate(".concat(e.x/Tc-t/2,"em, ").concat(e.y/Tc-i/2,"em) "):s?o+="translate(calc(-50% + ".concat(e.x/Tc,"em), calc(-50% + ").concat(e.y/Tc,"em)) "):o+="translate(".concat(e.x/Tc,"em, ").concat(e.y/Tc,"em) "),o+="scale(".concat(e.size/Tc*(e.flipX?-1:1),", ").concat(e.size/Tc*(e.flipY?-1:1),") "),o+="rotate(".concat(e.rotate,"deg) "),o}var aX=`:root, :host { + --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free"; + --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free"; + --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro"; + --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro"; --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; + --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp"; - --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; + --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone"; } svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { @@ -117,17 +116,14 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { width: 1em; } .fa-layers svg.svg-inline--fa { - -webkit-transform-origin: center center; - transform-origin: center center; + transform-origin: center center; } .fa-layers-text { left: 50%; top: 50%; - -webkit-transform: translate(-50%, -50%); - transform: translate(-50%, -50%); - -webkit-transform-origin: center center; - transform-origin: center center; + transform: translate(-50%, -50%); + transform-origin: center center; } .fa-layers-counter { @@ -143,20 +139,16 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { right: var(--fa-right, 0); text-overflow: ellipsis; top: var(--fa-top, 0); - -webkit-transform: scale(var(--fa-counter-scale, 0.25)); - transform: scale(var(--fa-counter-scale, 0.25)); - -webkit-transform-origin: top right; - transform-origin: top right; + transform: scale(var(--fa-counter-scale, 0.25)); + transform-origin: top right; } .fa-layers-bottom-right { bottom: var(--fa-bottom, 0); right: var(--fa-right, 0); top: auto; - -webkit-transform: scale(var(--fa-layers-scale, 0.25)); - transform: scale(var(--fa-layers-scale, 0.25)); - -webkit-transform-origin: bottom right; - transform-origin: bottom right; + transform: scale(var(--fa-layers-scale, 0.25)); + transform-origin: bottom right; } .fa-layers-bottom-left { @@ -164,29 +156,23 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { left: var(--fa-left, 0); right: auto; top: auto; - -webkit-transform: scale(var(--fa-layers-scale, 0.25)); - transform: scale(var(--fa-layers-scale, 0.25)); - -webkit-transform-origin: bottom left; - transform-origin: bottom left; + transform: scale(var(--fa-layers-scale, 0.25)); + transform-origin: bottom left; } .fa-layers-top-right { top: var(--fa-top, 0); right: var(--fa-right, 0); - -webkit-transform: scale(var(--fa-layers-scale, 0.25)); - transform: scale(var(--fa-layers-scale, 0.25)); - -webkit-transform-origin: top right; - transform-origin: top right; + transform: scale(var(--fa-layers-scale, 0.25)); + transform-origin: top right; } .fa-layers-top-left { left: var(--fa-left, 0); right: auto; top: var(--fa-top, 0); - -webkit-transform: scale(var(--fa-layers-scale, 0.25)); - transform: scale(var(--fa-layers-scale, 0.25)); - -webkit-transform-origin: top left; - transform-origin: top left; + transform: scale(var(--fa-layers-scale, 0.25)); + transform-origin: top left; } .fa-1x { @@ -280,7 +266,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { } .fa-li { - left: calc(var(--fa-li-width, 2em) * -1); + left: calc(-1 * var(--fa-li-width, 2em)); position: absolute; text-align: center; width: var(--fa-li-width, 2em); @@ -306,108 +292,66 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { } .fa-beat { - -webkit-animation-name: fa-beat; - animation-name: fa-beat; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); - animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-name: fa-beat; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-in-out); } .fa-bounce { - -webkit-animation-name: fa-bounce; - animation-name: fa-bounce; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); - animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); + animation-name: fa-bounce; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); } .fa-fade { - -webkit-animation-name: fa-fade; - animation-name: fa-fade; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); - animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-name: fa-fade; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); } .fa-beat-fade { - -webkit-animation-name: fa-beat-fade; - animation-name: fa-beat-fade; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); - animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-name: fa-beat-fade; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); } .fa-flip { - -webkit-animation-name: fa-flip; - animation-name: fa-flip; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); - animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-name: fa-flip; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, ease-in-out); } .fa-shake { - -webkit-animation-name: fa-shake; - animation-name: fa-shake; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, linear); - animation-timing-function: var(--fa-animation-timing, linear); + animation-name: fa-shake; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, linear); } .fa-spin { - -webkit-animation-name: fa-spin; - animation-name: fa-spin; - -webkit-animation-delay: var(--fa-animation-delay, 0s); - animation-delay: var(--fa-animation-delay, 0s); - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 2s); - animation-duration: var(--fa-animation-duration, 2s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, linear); - animation-timing-function: var(--fa-animation-timing, linear); + animation-name: fa-spin; + animation-delay: var(--fa-animation-delay, 0s); + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 2s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, linear); } .fa-spin-reverse { @@ -416,16 +360,11 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { .fa-pulse, .fa-spin-pulse { - -webkit-animation-name: fa-spin; - animation-name: fa-spin; - -webkit-animation-direction: var(--fa-animation-direction, normal); - animation-direction: var(--fa-animation-direction, normal); - -webkit-animation-duration: var(--fa-animation-duration, 1s); - animation-duration: var(--fa-animation-duration, 1s); - -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); - animation-iteration-count: var(--fa-animation-iteration-count, infinite); - -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); - animation-timing-function: var(--fa-animation-timing, steps(8)); + animation-name: fa-spin; + animation-direction: var(--fa-animation-direction, normal); + animation-duration: var(--fa-animation-duration, 1s); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-timing-function: var(--fa-animation-timing, steps(8)); } @media (prefers-reduced-motion: reduce) { @@ -438,101 +377,42 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { .fa-shake, .fa-spin, .fa-spin-pulse { - -webkit-animation-delay: -1ms; - animation-delay: -1ms; - -webkit-animation-duration: 1ms; - animation-duration: 1ms; - -webkit-animation-iteration-count: 1; - animation-iteration-count: 1; - -webkit-transition-delay: 0s; - transition-delay: 0s; - -webkit-transition-duration: 0s; - transition-duration: 0s; - } -} -@-webkit-keyframes fa-beat { - 0%, 90% { - -webkit-transform: scale(1); - transform: scale(1); - } - 45% { - -webkit-transform: scale(var(--fa-beat-scale, 1.25)); - transform: scale(var(--fa-beat-scale, 1.25)); + animation-delay: -1ms; + animation-duration: 1ms; + animation-iteration-count: 1; + transition-delay: 0s; + transition-duration: 0s; } } @keyframes fa-beat { 0%, 90% { - -webkit-transform: scale(1); - transform: scale(1); + transform: scale(1); } 45% { - -webkit-transform: scale(var(--fa-beat-scale, 1.25)); - transform: scale(var(--fa-beat-scale, 1.25)); - } -} -@-webkit-keyframes fa-bounce { - 0% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } - 10% { - -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); - transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); - } - 30% { - -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); - transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); - } - 50% { - -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); - transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); - } - 57% { - -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); - transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); - } - 64% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } - 100% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); + transform: scale(var(--fa-beat-scale, 1.25)); } } @keyframes fa-bounce { 0% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); } 10% { - -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); - transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); } 30% { - -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); - transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); } 50% { - -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); - transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); } 57% { - -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); - transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); } 64% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); } 100% { - -webkit-transform: scale(1, 1) translateY(0); - transform: scale(1, 1) translateY(0); - } -} -@-webkit-keyframes fa-fade { - 50% { - opacity: var(--fa-fade-opacity, 0.4); + transform: scale(1, 1) translateY(0); } } @keyframes fa-fade { @@ -540,172 +420,85 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { opacity: var(--fa-fade-opacity, 0.4); } } -@-webkit-keyframes fa-beat-fade { - 0%, 100% { - opacity: var(--fa-beat-fade-opacity, 0.4); - -webkit-transform: scale(1); - transform: scale(1); - } - 50% { - opacity: 1; - -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); - transform: scale(var(--fa-beat-fade-scale, 1.125)); - } -} @keyframes fa-beat-fade { 0%, 100% { opacity: var(--fa-beat-fade-opacity, 0.4); - -webkit-transform: scale(1); - transform: scale(1); + transform: scale(1); } 50% { opacity: 1; - -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); - transform: scale(var(--fa-beat-fade-scale, 1.125)); - } -} -@-webkit-keyframes fa-flip { - 50% { - -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); - transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); } } @keyframes fa-flip { 50% { - -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); - transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); - } -} -@-webkit-keyframes fa-shake { - 0% { - -webkit-transform: rotate(-15deg); - transform: rotate(-15deg); - } - 4% { - -webkit-transform: rotate(15deg); - transform: rotate(15deg); - } - 8%, 24% { - -webkit-transform: rotate(-18deg); - transform: rotate(-18deg); - } - 12%, 28% { - -webkit-transform: rotate(18deg); - transform: rotate(18deg); - } - 16% { - -webkit-transform: rotate(-22deg); - transform: rotate(-22deg); - } - 20% { - -webkit-transform: rotate(22deg); - transform: rotate(22deg); - } - 32% { - -webkit-transform: rotate(-12deg); - transform: rotate(-12deg); - } - 36% { - -webkit-transform: rotate(12deg); - transform: rotate(12deg); - } - 40%, 100% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); } } @keyframes fa-shake { 0% { - -webkit-transform: rotate(-15deg); - transform: rotate(-15deg); + transform: rotate(-15deg); } 4% { - -webkit-transform: rotate(15deg); - transform: rotate(15deg); + transform: rotate(15deg); } 8%, 24% { - -webkit-transform: rotate(-18deg); - transform: rotate(-18deg); + transform: rotate(-18deg); } 12%, 28% { - -webkit-transform: rotate(18deg); - transform: rotate(18deg); + transform: rotate(18deg); } 16% { - -webkit-transform: rotate(-22deg); - transform: rotate(-22deg); + transform: rotate(-22deg); } 20% { - -webkit-transform: rotate(22deg); - transform: rotate(22deg); + transform: rotate(22deg); } 32% { - -webkit-transform: rotate(-12deg); - transform: rotate(-12deg); + transform: rotate(-12deg); } 36% { - -webkit-transform: rotate(12deg); - transform: rotate(12deg); + transform: rotate(12deg); } 40%, 100% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } -} -@-webkit-keyframes fa-spin { - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); + transform: rotate(0deg); } } @keyframes fa-spin { 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); + transform: rotate(0deg); } 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); + transform: rotate(360deg); } } .fa-rotate-90 { - -webkit-transform: rotate(90deg); - transform: rotate(90deg); + transform: rotate(90deg); } .fa-rotate-180 { - -webkit-transform: rotate(180deg); - transform: rotate(180deg); + transform: rotate(180deg); } .fa-rotate-270 { - -webkit-transform: rotate(270deg); - transform: rotate(270deg); + transform: rotate(270deg); } .fa-flip-horizontal { - -webkit-transform: scale(-1, 1); - transform: scale(-1, 1); + transform: scale(-1, 1); } .fa-flip-vertical { - -webkit-transform: scale(1, -1); - transform: scale(1, -1); + transform: scale(1, -1); } .fa-flip-both, .fa-flip-horizontal.fa-flip-vertical { - -webkit-transform: scale(-1, -1); - transform: scale(-1, -1); + transform: scale(-1, -1); } .fa-rotate-by { - -webkit-transform: rotate(var(--fa-rotate-angle, 0)); - transform: rotate(var(--fa-rotate-angle, 0)); + transform: rotate(var(--fa-rotate-angle, 0)); } .fa-stack { @@ -792,18 +585,18 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { .fad.fa-inverse, .fa-duotone.fa-inverse { color: var(--fa-inverse, #fff); -}`;function CW(){var n=pW,e=mW,t=ze.cssPrefix,i=ze.replacementClass,s=JZ;if(t!==n||i!==e){var o=new RegExp("\\.".concat(n,"\\-"),"g"),r=new RegExp("\\--".concat(n,"\\-"),"g"),a=new RegExp("\\.".concat(e),"g");s=s.replace(o,".".concat(t,"-")).replace(r,"--".concat(t,"-")).replace(a,".".concat(i))}return s}var L5=!1;function bk(){ze.autoAddCss&&!L5&&(KZ(CW()),L5=!0)}var eX={mixout:function(){return{dom:{css:CW,insertCss:bk}}},hooks:function(){return{beforeDOMElementCreation:function(){bk()},beforeI2svg:function(){bk()}}}},hc=Vd||{};hc[uc]||(hc[uc]={});hc[uc].styles||(hc[uc].styles={});hc[uc].hooks||(hc[uc].hooks={});hc[uc].shims||(hc[uc].shims=[]);var ea=hc[uc],SW=[],tX=function n(){Bi.removeEventListener("DOMContentLoaded",n),qC=1,SW.map(function(e){return e()})},qC=!1;vc&&(qC=(Bi.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Bi.readyState),qC||Bi.addEventListener("DOMContentLoaded",tX));function iX(n){vc&&(qC?setTimeout(n,0):SW.push(n))}function f1(n){var e=n.tag,t=n.attributes,i=t===void 0?{}:t,s=n.children,o=s===void 0?[]:s;return typeof n=="string"?wW(n):"<".concat(e," ").concat(ZZ(i),">").concat(o.map(f1).join(""),"").concat(e,">")}function D5(n,e,t){if(n&&n[e]&&n[e][t])return{prefix:e,iconName:t,icon:n[e][t]}}var vk=function(e,t,i,s){var o=Object.keys(e),r=o.length,a=t,l,c,d;for(i===void 0?(l=1,d=e[o[0]]):(l=0,d=i);l=0&&t.has(e.charAt(r));r--)n++;return n}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return Ne(this,me).has(e.charAt(0))}hasTrailingWhitespace(e){return Ne(this,me).has(M(!1,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let n=`[${Tp([...Ne(this,me)].join(""))}]+`,r=new RegExp(t?`(${n})`:n,"u");return e.split(r)}hasWhitespaceCharacter(e){let t=Ne(this,me);return Array.prototype.some.call(e,n=>t.has(n))}hasNonWhitespaceCharacter(e){let t=Ne(this,me);return Array.prototype.some.call(e,n=>!t.has(n))}isWhitespaceOnly(e){let t=Ne(this,me);return Array.prototype.every.call(e,n=>t.has(n))}};me=new WeakMap;var Sp=hp,Wt=new Sp(` +\r `),mn=e=>e===""||e===T||e===E||e===f;function bp(e,t,n){var r,u,a,s,o;let{node:i}=e;if(i.type==="JSXElement"&&Rp(i))return[n("openingElement"),n("closingElement")];let l=i.type==="JSXElement"?n("openingElement"):n("openingFragment"),d=i.type==="JSXElement"?n("closingElement"):n("closingFragment");if(i.children.length===1&&i.children[0].type==="JSXExpressionContainer"&&(i.children[0].expression.type==="TemplateLiteral"||i.children[0].expression.type==="TaggedTemplateExpression"))return[l,...e.map(n,"children"),d];i.children=i.children.map(k=>_p(k)?{type:"JSXText",value:" ",raw:" "}:k);let c=i.children.some(K),D=i.children.filter(k=>k.type==="JSXExpressionContainer").length>1,p=i.type==="JSXElement"&&i.openingElement.attributes.length>1,y=te(l)||c||p||D,F=e.parent.rootMarker==="mdx",g=t.singleQuote?"{' '}":'{" "}',S=F?" ":w([g,f]," "),b=((u=(r=i.openingElement)==null?void 0:r.name)==null?void 0:u.name)==="fbt",x=Bp(e,t,n,S,b),N=i.children.some(k=>wt(k));for(let k=x.length-2;k>=0;k--){let J=x[k]===""&&x[k+1]==="",V=x[k]===E&&x[k+1]===""&&x[k+2]===E,R=(x[k]===f||x[k]===E)&&x[k+1]===""&&x[k+2]===S,nt=x[k]===S&&x[k+1]===""&&(x[k+2]===f||x[k+2]===E),Xe=x[k]===S&&x[k+1]===""&&x[k+2]===S,P=x[k]===f&&x[k+1]===""&&x[k+2]===E||x[k]===E&&x[k+1]===""&&x[k+2]===f;V&&N||J||R||Xe||P?x.splice(k,2):nt&&x.splice(k+1,2)}for(;x.length>0&&mn(M(!1,x,-1));)x.pop();for(;x.length>1&&mn(x[0])&&mn(x[1]);)x.shift(),x.shift();let v=[];for(let[k,J]of x.entries()){if(J===S){if(k===1&&x[k-1]===""){if(x.length===2){v.push(g);continue}v.push([g,E]);continue}else if(k===x.length-1){v.push(g);continue}else if(x[k-1]===""&&x[k-2]===E){v.push(g);continue}}v.push(J),te(J)&&(y=!0)}let B=N?su(v):m(v,{shouldBreak:!0});if(((a=t.cursorNode)==null?void 0:a.type)==="JSXText"&&i.children.includes(t.cursorNode)?B=[Rt,B,Rt]:((s=t.nodeBeforeCursor)==null?void 0:s.type)==="JSXText"&&i.children.includes(t.nodeBeforeCursor)?B=[Rt,B]:((o=t.nodeAfterCursor)==null?void 0:o.type)==="JSXText"&&i.children.includes(t.nodeAfterCursor)&&(B=[B,Rt]),F)return B;let q=m([l,A([E,B]),E,d]);return y?q:$e([m([l,...x,d]),q])}function Bp(e,t,n,r,u){let a=[];return e.each(({node:s,next:o})=>{if(s.type==="JSXText"){let i=pe(s);if(wt(s)){let l=Wt.split(i,!0);l[0]===""&&(a.push(""),l.shift(),/\n/u.test(l[0])?a.push(Tr(u,l[1],s,o)):a.push(r),l.shift());let d;if(M(!1,l,-1)===""&&(l.pop(),d=l.pop()),l.length===0)return;for(let[c,D]of l.entries())c%2===1?a.push(T):a.push(D);d!==void 0?/\n/u.test(d)?a.push(Tr(u,M(!1,a,-1),s,o)):a.push(r):a.push(Cr(u,M(!1,a,-1),s,o))}else/\n/u.test(i)?i.match(/\n/gu).length>1&&a.push("",E):a.push("",r)}else{let i=n();if(a.push(i),o&&wt(o)){let l=Wt.trim(pe(o)),[d]=Wt.split(l);a.push(Cr(u,d,s,o))}else a.push(E)}},"children"),a}function Cr(e,t,n,r){return e?"":n.type==="JSXElement"&&!n.closingElement||(r==null?void 0:r.type)==="JSXElement"&&!r.closingElement?t.length===1?f:E:f}function Tr(e,t,n,r){return e?E:t.length===1?n.type==="JSXElement"&&!n.closingElement||(r==null?void 0:r.type)==="JSXElement"&&!r.closingElement?E:f:E}var vp=new Set(["ArrayExpression","TupleExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot"]);function kp(e,t,n){let{parent:r}=e;if(vp.has(r.type))return t;let u=e.match(void 0,s=>s.type==="ArrowFunctionExpression",L,s=>s.type==="JSXExpressionContainer"),a=et(e,n);return m([a?"":w("("),A([f,t]),f,a?"":w(")")],{shouldBreak:u})}function Pp(e,t,n){let{node:r}=e,u=[];if(u.push(n("name")),r.value){let a;if(ue(r.value)){let s=pe(r.value),o=H(!1,H(!1,s.slice(1,-1),"'","'"),""",'"'),i=Xr(o,t.jsxSingleQuote);o=i==='"'?H(!1,o,'"',"""):H(!1,o,"'","'"),a=e.call(()=>Ee(e,Ge(i+o+i),t),"value")}else a=n("value");u.push("=",a)}return u}function wp(e,t,n){let{node:r}=e,u=(a,s)=>a.type==="JSXEmptyExpression"||!C(a)&&(Q(a)||Fe(a)||a.type==="ArrowFunctionExpression"||a.type==="AwaitExpression"&&(u(a.argument,a)||a.argument.type==="JSXElement")||L(a)||a.type==="ChainExpression"&&L(a.expression)||a.type==="FunctionExpression"||a.type==="TemplateLiteral"||a.type==="TaggedTemplateExpression"||a.type==="DoExpression"||K(s)&&(a.type==="ConditionalExpression"||Be(a)));return u(r.expression,e.parent)?m(["{",n("expression"),ve,"}"]):m(["{",A([f,n("expression")]),f,ve,"}"])}function Np(e,t,n){var r,u;let{node:a}=e,s=C(a.name)||C(a.typeParameters)||C(a.typeArguments);if(a.selfClosing&&a.attributes.length===0&&!s)return["<",n("name"),a.typeArguments?n("typeArguments"):n("typeParameters")," />"];if(((r=a.attributes)==null?void 0:r.length)===1&&ue(a.attributes[0].value)&&!a.attributes[0].value.value.includes(` +`)&&!s&&!C(a.attributes[0]))return m(["<",n("name"),a.typeArguments?n("typeArguments"):n("typeParameters")," ",...e.map(n,"attributes"),a.selfClosing?" />":">"]);let o=(u=a.attributes)==null?void 0:u.some(l=>ue(l.value)&&l.value.value.includes(` +`)),i=t.singleAttributePerLine&&a.attributes.length>1?E:T;return m(["<",n("name"),a.typeArguments?n("typeArguments"):n("typeParameters"),A(e.map(()=>[i,n()],"attributes")),...Ip(a,t,s)],{shouldBreak:o})}function Ip(e,t,n){return e.selfClosing?[T,"/>"]:jp(e,t,n)?[">"]:[f,">"]}function jp(e,t,n){let r=e.attributes.length>0&&C(M(!1,e.attributes,-1),h.Trailing);return e.attributes.length===0&&!n||(t.bracketSameLine||t.jsxBracketSameLine)&&(!n||e.attributes.length>0)&&!r}function Lp(e,t,n){let{node:r}=e,u=[];u.push("");let a=n("name");return C(r.name,h.Leading|h.Line)?u.push(A([E,a]),E):C(r.name,h.Leading|h.Block)?u.push(" ",a):u.push(a),u.push(">"),u}function Mp(e,t){let{node:n}=e,r=C(n),u=C(n,h.Line),a=n.type==="JSXOpeningFragment";return[a?"<":"",A([u?E:r&&!a?" ":"",_(e,t)]),u?E:"",">"]}function Op(e,t,n){let r=Ee(e,bp(e,t,n),t);return kp(e,r,t)}function Jp(e,t){let{node:n}=e,r=C(n,h.Line);return[_(e,t,{indent:r}),r?E:""]}function qp(e,t,n){let{node:r}=e;return["{",e.call(({node:u})=>{let a=["...",n()];return!C(u)||!gu(e)?a:[A([f,Ee(e,a,t)]),f]},r.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function Xp(e,t,n){let{node:r}=e;if(r.type.startsWith("JSX"))switch(r.type){case"JSXAttribute":return Pp(e,t,n);case"JSXIdentifier":return r.name;case"JSXNamespacedName":return I(":",[n("namespace"),n("name")]);case"JSXMemberExpression":return I(".",[n("object"),n("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return qp(e,t,n);case"JSXExpressionContainer":return wp(e,t,n);case"JSXFragment":case"JSXElement":return Op(e,t,n);case"JSXOpeningElement":return Np(e,t,n);case"JSXClosingElement":return Lp(e,t,n);case"JSXOpeningFragment":case"JSXClosingFragment":return Mp(e,t);case"JSXEmptyExpression":return Jp(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new gt(r,"JSX")}}function Rp(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!wt(t)}function wt(e){return e.type==="JSXText"&&(Wt.hasNonWhitespaceCharacter(pe(e))||!/\n/u.test(pe(e)))}function _p(e){return e.type==="JSXExpressionContainer"&&ue(e.expression)&&e.expression.value===" "&&!C(e.expression)}function $p(e){let{node:t,parent:n}=e;if(!K(t)||!K(n))return!1;let{index:r,siblings:u}=e,a;for(let s=r;s>0;s--){let o=u[s-1];if(!(o.type==="JSXText"&&!wt(o))){a=o;break}}return(a==null?void 0:a.type)==="JSXExpressionContainer"&&a.expression.type==="JSXEmptyExpression"&&rn(a.expression)}function Up(e){return rn(e.node)||$p(e)}var Nu=Up,Wp=0;function Iu(e,t,n){var r;let{node:u,parent:a,grandparent:s,key:o}=e,i=o!=="body"&&(a.type==="IfStatement"||a.type==="WhileStatement"||a.type==="SwitchStatement"||a.type==="DoWhileStatement"),l=u.operator==="|>"&&((r=e.root.extra)==null?void 0:r.__isUsingHackPipeline),d=wn(e,n,t,!1,i);if(i)return d;if(l)return m(d);if(L(a)&&a.callee===u||a.type==="UnaryExpression"||W(a)&&!a.computed)return m([A([f,...d]),f]);let c=a.type==="ReturnStatement"||a.type==="ThrowStatement"||a.type==="JSXExpressionContainer"&&s.type==="JSXAttribute"||u.operator!=="|"&&a.type==="JsExpressionRoot"||u.type!=="NGPipeExpression"&&(a.type==="NGRoot"&&t.parser==="__ng_binding"||a.type==="NGMicrosyntaxExpression"&&s.type==="NGMicrosyntax"&&s.body.length===1)||u===a.body&&a.type==="ArrowFunctionExpression"||u!==a.body&&a.type==="ForStatement"||a.type==="ConditionalExpression"&&s.type!=="ReturnStatement"&&s.type!=="ThrowStatement"&&!L(s)||a.type==="TemplateLiteral",D=a.type==="AssignmentExpression"||a.type==="VariableDeclarator"||a.type==="ClassProperty"||a.type==="PropertyDefinition"||a.type==="TSAbstractPropertyDefinition"||a.type==="ClassPrivateProperty"||we(a),p=Be(u.left)&&Wn(u.operator,u.left.operator);if(c||Nt(u)&&!p||!Nt(u)&&D)return m(d);if(d.length===0)return"";let y=K(u.right),F=d.findIndex(v=>typeof v!="string"&&!Array.isArray(v)&&v.type===le),g=d.slice(0,F===-1?1:F+1),S=d.slice(g.length,y?-1:void 0),b=Symbol("logicalChain-"+ ++Wp),x=m([...g,A(S)],{id:b});if(!y)return x;let N=M(!1,d,-1);return m([x,un(N,{groupId:b})])}function wn(e,t,n,r,u){var a;let{node:s}=e;if(!Be(s))return[m(t())];let o=[];Wn(s.operator,s.left.operator)?o=e.call(g=>wn(g,t,n,!0,u),"left"):o.push(m(t("left")));let i=Nt(s),l=(s.operator==="|>"||s.type==="NGPipeExpression"||Gp(e,n))&&!Ue(n.originalText,s.right),d=s.type==="NGPipeExpression"?"|":s.operator,c=s.type==="NGPipeExpression"&&s.arguments.length>0?m(A([f,": ",I([T,": "],e.map(()=>Te(2,m(t())),"arguments"))])):"",D;if(i)D=[d," ",t("right"),c];else{let g=d==="|>"&&((a=e.root.extra)!=null&&a.__isUsingHackPipeline)?e.call(S=>wn(S,t,n,!0,u),"right"):t("right");D=[l?T:"",d,l?" ":T,g,c]}let{parent:p}=e,y=C(s.left,h.Trailing|h.Line),F=y||!(u&&s.type==="LogicalExpression")&&p.type!==s.type&&s.left.type!==s.type&&s.right.type!==s.type;if(o.push(l?"":" ",F?m(D,{shouldBreak:y}):D),r&&C(s)){let g=Gn(Ee(e,o,n));return g.type===Oe?g.parts:Array.isArray(g)?g:[g]}return o}function Nt(e){return e.type!=="LogicalExpression"?!1:!!(Fe(e.right)&&e.right.properties.length>0||Q(e.right)&&e.right.elements.length>0||K(e.right))}var hr=e=>e.type==="BinaryExpression"&&e.operator==="|";function Gp(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&hr(e.node)&&!e.hasAncestor(n=>!hr(n)&&n.type!=="JsExpressionRoot")}function Vp(e,t,n){let{node:r}=e;if(r.type.startsWith("NG"))switch(r.type){case"NGRoot":return[n("node"),C(r.node)?" //"+st(r.node)[0].value.trimEnd():""];case"NGPipeExpression":return Iu(e,t,n);case"NGChainedExpression":return m(I([";",T],e.map(()=>Hp(e)?n():["(",n(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":Sr(e)?" ":[";",T],n()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(r.name)?r.name:JSON.stringify(r.name);case"NGMicrosyntaxExpression":return[n("expression"),r.alias===null?"":[" as ",n("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:u,parent:a}=e,s=Sr(e)||(u===1&&(r.key.name==="then"||r.key.name==="else"||r.key.name==="as")||(u===2||u===3)&&(r.key.name==="else"&&a.body[u-1].type==="NGMicrosyntaxKeyedExpression"&&a.body[u-1].key.name==="then"||r.key.name==="track"))&&a.body[0].type==="NGMicrosyntaxExpression";return[n("key"),s?" ":": ",n("expression")]}case"NGMicrosyntaxLet":return["let ",n("key"),r.value===null?"":[" = ",n("value")]];case"NGMicrosyntaxAs":return[n("key")," as ",n("alias")];default:throw new gt(r,"Angular")}}function Sr({node:e,index:t}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1}var Kp=X(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function Hp({node:e}){return xn(e,Kp)}function ju(e,t,n){let{node:r}=e;return m([I(T,e.map(n,"decorators")),Lu(r,t)?E:T])}function zp(e,t,n){return Mu(e.node)?[I(E,e.map(n,"declaration","decorators")),E]:""}function Qp(e,t,n){let{node:r,parent:u}=e,{decorators:a}=r;if(!O(a)||Mu(u)||Nu(e))return"";let s=r.type==="ClassExpression"||r.type==="ClassDeclaration"||Lu(r,t);return[e.key==="declaration"&&Rs(u)?E:s?he:"",I(T,e.map(n,"decorators")),T]}function Lu(e,t){return e.decorators.some(n=>oe(t.originalText,j(n)))}function Mu(e){var t;if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let n=(t=e.declaration)==null?void 0:t.decorators;return O(n)&&en(e,n[0])}var Qt=class extends Error{constructor(){super(...arguments);Jt(this,"name","ArgExpansionBailout")}};function Yp(e,t,n){let{node:r}=e,u=ye(r);if(u.length===0)return["(",_(e,t),")"];let a=u.length-1;if(tl(u)){let c=["("];return Ht(e,(D,p)=>{c.push(n()),p!==a&&c.push(", ")}),c.push(")"),c}let s=!1,o=[];Ht(e,({node:c},D)=>{let p=n();D===a||(Pe(c,t)?(s=!0,p=[p,",",E,E]):p=[p,",",T]),o.push(p)});let i=!t.parser.startsWith("__ng_")&&r.type!=="ImportExpression"&&ke(t,"all")?",":"";function l(){return m(["(",A([T,...o]),i,T,")"],{shouldBreak:!0})}if(s||e.parent.type!=="Decorator"&&Qs(u))return l();if(el(u)){let c=o.slice(1);if(c.some(te))return l();let D;try{D=n(yr(r,0),{expandFirstArg:!0})}catch(p){if(p instanceof Qt)return l();throw p}return te(D)?[he,$e([["(",m(D,{shouldBreak:!0}),", ",...c,")"],l()])]:$e([["(",D,", ",...c,")"],["(",m(D,{shouldBreak:!0}),", ",...c,")"],l()])}if(Zp(u,o,t)){let c=o.slice(0,-1);if(c.some(te))return l();let D;try{D=n(yr(r,-1),{expandLastArg:!0})}catch(p){if(p instanceof Qt)return l();throw p}return te(D)?[he,$e([["(",...c,m(D,{shouldBreak:!0}),")"],l()])]:$e([["(",...c,D,")"],["(",...c,m(D,{shouldBreak:!0}),")"],l()])}let d=["(",A([f,...o]),w(i),f,")"];return Zr(e)?d:m(d,{shouldBreak:o.some(te)||s})}function Bt(e,t=!1){return Fe(e)&&(e.properties.length>0||C(e))||Q(e)&&(e.elements.length>0||C(e))||e.type==="TSTypeAssertion"&&Bt(e.expression)||xe(e)&&Bt(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||nl(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&Bt(e.body,!0)||Fe(e.body)||Q(e.body)||!t&&(L(e.body)||e.body.type==="ConditionalExpression")||K(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function Zp(e,t,n){var r,u;let a=M(!1,e,-1);if(e.length===1){let o=M(!1,t,-1);if((r=o.label)!=null&&r.embed&&((u=o.label)==null?void 0:u.hug)!==!1)return!0}let s=M(!1,e,-2);return!C(a,h.Leading)&&!C(a,h.Trailing)&&Bt(a)&&(!s||s.type!==a.type)&&(e.length!==2||s.type!=="ArrowFunctionExpression"||!Q(a))&&!(e.length>1&&ia(a,n))}function el(e){if(e.length!==2)return!1;let[t,n]=e;return t.type==="ModuleExpression"&&rl(n)?!0:!C(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&n.type!=="FunctionExpression"&&n.type!=="ArrowFunctionExpression"&&n.type!=="ConditionalExpression"&&Ou(n)&&!Bt(n)}function Ou(e){if(e.type==="ParenthesizedExpression")return Ou(e.expression);if(xe(e)||e.type==="TypeCastExpression"){let{typeAnnotation:t}=e;if(t.type==="TypeAnnotation"&&(t=t.typeAnnotation),t.type==="TSArrayType"&&(t=t.elementType,t.type==="TSArrayType"&&(t=t.elementType)),t.type==="GenericTypeAnnotation"||t.type==="TSTypeReference"){let n=t.typeArguments??t.typeParameters;(n==null?void 0:n.params.length)===1&&(t=n.params[0])}return $n(t)&&fe(e.expression,1)}return ct(e)&&ye(e).length>1?!1:Be(e)?fe(e.left,1)&&fe(e.right,1):Vr(e)||fe(e)}function tl(e){return e.length===2?br(e,0):e.length===3?e[0].type==="Identifier"&&br(e,1):!1}function br(e,t){let n=e[t],r=e[t+1];return n.type==="ArrowFunctionExpression"&&Z(n).length===0&&n.body.type==="BlockStatement"&&r.type==="ArrayExpression"&&!e.some(u=>C(u))}function nl(e){return e.type==="BlockStatement"&&(e.body.some(t=>t.type!=="EmptyStatement")||C(e,h.Dangling))}function rl(e){return e.type==="ObjectExpression"&&e.properties.length===1&&we(e.properties[0])&&e.properties[0].key.type==="Identifier"&&e.properties[0].key.name==="type"&&ue(e.properties[0].value)&&e.properties[0].value.value==="module"}var Nn=Yp,ul=e=>((e.type==="ChainExpression"||e.type==="TSNonNullExpression")&&(e=e.expression),L(e)&&ye(e).length>0);function al(e,t,n){var r;let u=n("object"),a=Ju(e,t,n),{node:s}=e,o=e.findAncestor(d=>!(W(d)||d.type==="TSNonNullExpression")),i=e.findAncestor(d=>!(d.type==="ChainExpression"||d.type==="TSNonNullExpression")),l=o&&(o.type==="NewExpression"||o.type==="BindExpression"||o.type==="AssignmentExpression"&&o.left.type!=="Identifier")||s.computed||s.object.type==="Identifier"&&s.property.type==="Identifier"&&!W(i)||(i.type==="AssignmentExpression"||i.type==="VariableDeclarator")&&(ul(s.object)||((r=u.label)==null?void 0:r.memberChain));return It(u.label,[u,l?a:m(A([f,a]))])}function Ju(e,t,n){let r=n("property"),{node:u}=e,a=ne(e);return u.computed?!u.property||be(u.property)?[a,"[",r,"]"]:m([a,"[",A([f,r]),f,"]"]):[a,".",r]}function qu(e,t,n){if(e.node.type==="ChainExpression")return e.call(()=>qu(e,t,n),"expression");let{parent:r}=e,u=!r||r.type==="ExpressionStatement",a=[];function s(P){let{originalText:G}=t,se=At(G,j(P));return G.charAt(se)===")"?se!==!1&&qn(G,se+1):Pe(P,t)}function o(){let{node:P}=e;if(P.type==="ChainExpression")return e.call(o,"expression");if(L(P)&&(ut(P.callee)||L(P.callee))){let G=s(P);a.unshift({node:P,hasTrailingEmptyLine:G,printed:[Ee(e,[ne(e),Ve(e,t,n),Nn(e,t,n)],t),G?E:""]}),e.call(o,"callee")}else ut(P)?(a.unshift({node:P,needsParens:et(e,t),printed:Ee(e,W(P)?Ju(e,t,n):sa(e,t,n),t)}),e.call(o,"object")):P.type==="TSNonNullExpression"?(a.unshift({node:P,printed:Ee(e,"!",t)}),e.call(o,"expression")):a.unshift({node:P,printed:n()})}let{node:i}=e;a.unshift({node:i,printed:[ne(e),Ve(e,t,n),Nn(e,t,n)]}),i.callee&&e.call(o,"callee");let l=[],d=[a[0]],c=1;for(;c 0&&l.push(d);function p(P){return/^[A-Z]|^[$_]+$/u.test(P)}function y(P){return P.length<=t.tabWidth}function F(P){var G;let se=(G=P[1][0])==null?void 0:G.node.computed;if(P[0].length===1){let Re=P[0][0].node;return Re.type==="ThisExpression"||Re.type==="Identifier"&&(p(Re.name)||u&&y(Re.name)||se)}let Se=M(!1,P[0],-1).node;return W(Se)&&Se.property.type==="Identifier"&&(p(Se.property.name)||se)}let g=l.length>=2&&!C(l[1][0].node)&&F(l);function S(P){let G=P.map(se=>se.printed);return P.length>0&&M(!1,P,-1).needsParens?["(",...G,")"]:G}function b(P){return P.length===0?"":A([E,I(E,P.map(S))])}let x=l.map(S),N=x,v=g?3:2,B=l.flat(),q=B.slice(1,-1).some(P=>C(P.node,h.Leading))||B.slice(0,-1).some(P=>C(P.node,h.Trailing))||l[v]&&C(l[v][0].node,h.Leading);if(l.length<=v&&!q&&!l.some(P=>M(!1,P,-1).hasTrailingEmptyLine))return Zr(e)?N:m(N);let k=M(!1,l[g?1:0],-1).node,J=!L(k)&&s(k),V=[S(l[0]),g?l.slice(1,2).map(S):"",J?E:"",b(l.slice(g?2:1))],R=a.map(({node:P})=>P).filter(L);function nt(){let P=M(!1,M(!1,l,-1),-1).node,G=M(!1,x,-1);return L(P)&&te(G)&&R.slice(0,-1).some(se=>se.arguments.some(kt))}let Xe;return q||R.length>2&&R.some(P=>!P.arguments.every(G=>fe(G)))||x.slice(0,-1).some(te)||nt()?Xe=m(V):Xe=[te(N)||J?he:"",$e([N,V])],It({memberChain:!0},Xe)}var sl=qu;function Xu(e,t,n){var r;let{node:u}=e,a=u.type==="NewExpression",s=u.type==="ImportExpression",o=ne(e),i=ye(u),l=i.length===1&&Qr(i[0],t.originalText);if(l||ol(e)||nn(u,e.parent)){let c=[];if(Ht(e,()=>{c.push(n())}),!(l&&(r=c[0].label)!=null&&r.embed))return[a?"new ":"",Br(e,n),o,Ve(e,t,n),"(",I(", ",c),")"]}if(!s&&!a&&ut(u.callee)&&!e.call(c=>et(c,t),"callee",...u.callee.type==="ChainExpression"?["expression"]:[]))return sl(e,t,n);let d=[a?"new ":"",Br(e,n),o,Ve(e,t,n),Nn(e,t,n)];return s||L(u.callee)?m(d):d}function Br(e,t){let{node:n}=e;return n.type==="ImportExpression"?`import${n.phase?`.${n.phase}`:""}`:t("callee")}function ol(e){let{node:t}=e;if(t.type!=="CallExpression"||t.optional||t.callee.type!=="Identifier")return!1;let n=ye(t);return t.callee.name==="require"?n.length===1&&ue(n[0])||n.length>1:t.callee.name==="define"&&e.parent.type==="ExpressionStatement"?n.length===1||n.length===2&&n[0].type==="ArrayExpression"||n.length===3&&ue(n[0])&&n[1].type==="ArrayExpression":!1}function jt(e,t,n,r,u,a){let s=ll(e,t,n,r,a),o=a?n(a,{assignmentLayout:s}):"";switch(s){case"break-after-operator":return m([m(r),u,m(A([T,o]))]);case"never-break-after-operator":return m([m(r),u," ",o]);case"fluid":{let i=Symbol("assignment");return m([m(r),u,m(A(T),{id:i}),ve,un(o,{groupId:i})])}case"break-lhs":return m([r,u," ",m(o)]);case"chain":return[m(r),u,T,o];case"chain-tail":return[m(r),u,A([T,o])];case"chain-tail-arrow-chain":return[m(r),u,o];case"only-left":return r}}function il(e,t,n){let{node:r}=e;return jt(e,t,n,n("left"),[" ",r.operator],"right")}function pl(e,t,n){return jt(e,t,n,n("id")," =","init")}function ll(e,t,n,r,u){let{node:a}=e,s=a[u];if(!s)return"only-left";let o=!Gt(s);if(e.match(Gt,Ru,d=>!o||d.type!=="ExpressionStatement"&&d.type!=="VariableDeclaration"))return o?s.type==="ArrowFunctionExpression"&&s.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!o&&Gt(s.right)||Ue(t.originalText,s))return"break-after-operator";if(a.type==="ImportAttribute"||s.type==="CallExpression"&&s.callee.name==="require"||t.parser==="json5"||t.parser==="jsonc"||t.parser==="json")return"never-break-after-operator";let i=Co(r);if(Dl(a)||fl(a)||_u(a)&&i)return"break-lhs";let l=Fl(a,r,t);return e.call(()=>cl(e,t,n,l),u)?"break-after-operator":yl(a)?"break-lhs":!i&&(l||s.type==="TemplateLiteral"||s.type==="TaggedTemplateExpression"||s.type==="BooleanLiteral"||be(s)||s.type==="ClassExpression")?"never-break-after-operator":"fluid"}function cl(e,t,n,r){let u=e.node;if(Be(u)&&!Nt(u))return!0;switch(u.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!xl(u))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:l}=u;return Be(l)&&!Nt(l)}let{consequent:o,alternate:i}=u;return o.type==="ConditionalExpression"||i.type==="ConditionalExpression"}case"ClassExpression":return O(u.decorators)}if(r)return!1;let a=u,s=[];for(;;)if(a.type==="UnaryExpression"||a.type==="AwaitExpression"||a.type==="YieldExpression"&&a.argument!==null)a=a.argument,s.push("argument");else if(a.type==="TSNonNullExpression")a=a.expression,s.push("expression");else break;return!!(ue(a)||e.call(()=>$u(e,t,n),...s))}function Dl(e){if(Ru(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(n=>{var r;return we(n)&&(!n.shorthand||((r=n.value)==null?void 0:r.type)==="AssignmentPattern")})}return!1}function Gt(e){return e.type==="AssignmentExpression"}function Ru(e){return Gt(e)||e.type==="VariableDeclarator"}function yl(e){let t=ml(e);if(O(t)){let n=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(r=>r[n]||r.default))return!0}return!1}var dl=X(["TSTypeAliasDeclaration","TypeAlias"]);function ml(e){var t;if(dl(e))return(t=e.typeParameters)==null?void 0:t.params}function fl(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let n=vr(t.typeAnnotation);return O(n)&&n.length>1&&n.some(r=>O(vr(r))||r.type==="TSConditionalType")}function _u(e){var t;return e.type==="VariableDeclarator"&&((t=e.init)==null?void 0:t.type)==="ArrowFunctionExpression"}var El=X(["TSTypeReference","GenericTypeAnnotation"]);function vr(e){var t;if(El(e))return(t=e.typeArguments??e.typeParameters)==null?void 0:t.params}function $u(e,t,n,r=!1){var u;let{node:a}=e,s=()=>$u(e,t,n,!0);if(a.type==="ChainExpression"||a.type==="TSNonNullExpression")return e.call(s,"expression");if(L(a)){if((u=Xu(e,t,n).label)!=null&&u.memberChain)return!1;let o=ye(a);return!(o.length===0||o.length===1&&Un(o[0],t))||Al(a,n)?!1:e.call(s,"callee")}return W(a)?e.call(s,"object"):r&&(a.type==="Identifier"||a.type==="ThisExpression")}function Fl(e,t,n){return we(e)?(t=Gn(t),typeof t=="string"&&ot(t) 1)return!0;if(n.length===1){let u=n[0];if(We(u)||tu(u)||u.type==="TSTypeLiteral"||u.type==="ObjectTypeAnnotation")return!0}let r=e.typeParameters?"typeParameters":"typeArguments";if(te(t(r)))return!0}return!1}function gl(e){var t;return(t=e.typeParameters??e.typeArguments)==null?void 0:t.params}function xl(e){function t(n){switch(n.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!n.typeParameters;case"TSTypeReference":return!!(n.typeArguments??n.typeParameters);default:return!1}}return t(e.checkType)||t(e.extendsType)}function tt(e,t,n,r,u){let a=e.node,s=Z(a),o=u?Ve(e,n,t):"";if(s.length===0)return[o,"(",_(e,n,{filter:p=>Ae(n.originalText,j(p))===")"}),")"];let{parent:i}=e,l=nn(i),d=Uu(a),c=[];if(ro(e,(p,y)=>{let F=y===s.length-1;F&&a.rest&&c.push("..."),c.push(t()),!F&&(c.push(","),l||d?c.push(" "):Pe(s[y],n)?c.push(E,E):c.push(T))}),r&&!Tl(e)){if(te(o)||te(c))throw new Qt;return m([Tn(o),"(",Tn(c),")"])}let D=s.every(p=>!O(p.decorators));return d&&D?[o,"(",...c,")"]:l?[o,"(",...c,")"]:(Kr(i)||Ws(i)||i.type==="TypeAlias"||i.type==="UnionTypeAnnotation"||i.type==="IntersectionTypeAnnotation"||i.type==="FunctionTypeAnnotation"&&i.returnType===a)&&s.length===1&&s[0].name===null&&a.this!==s[0]&&s[0].typeAnnotation&&a.typeParameters===null&&$n(s[0].typeAnnotation)&&!a.rest?n.arrowParens==="always"||a.type==="HookTypeAnnotation"?["(",...c,")"]:c:[o,"(",A([f,...c]),w(!no(a)&&ke(n,"all")?",":""),f,")"]}function Uu(e){if(!e)return!1;let t=Z(e);if(t.length!==1)return!1;let[n]=t;return!C(n)&&(n.type==="ObjectPattern"||n.type==="ArrayPattern"||n.type==="Identifier"&&n.typeAnnotation&&(n.typeAnnotation.type==="TypeAnnotation"||n.typeAnnotation.type==="TSTypeAnnotation")&&je(n.typeAnnotation.typeAnnotation)||n.type==="FunctionTypeParam"&&je(n.typeAnnotation)&&n!==e.rest||n.type==="AssignmentPattern"&&(n.left.type==="ObjectPattern"||n.left.type==="ArrayPattern")&&(n.right.type==="Identifier"||Fe(n.right)&&n.right.properties.length===0||Q(n.right)&&n.right.elements.length===0))}function Cl(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function xt(e,t){var n;let r=Cl(e);if(!r)return!1;let u=(n=e.typeParameters)==null?void 0:n.params;if(u){if(u.length>1)return!1;if(u.length===1){let a=u[0];if(a.constraint||a.default)return!1}}return Z(e).length===1&&(je(r)||te(t))}function Tl(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,n)=>{if(t.type==="CallExpression"&&n==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let r=t.callee.callee;return r.type==="Identifier"||r.type==="MemberExpression"&&!r.computed&&r.object.type==="Identifier"&&r.property.type==="Identifier"}return!1},(t,n)=>t.type==="VariableDeclarator"&&n==="init"||t.type==="ExportDefaultDeclaration"&&n==="declaration"||t.type==="TSExportAssignment"&&n==="expression"||t.type==="AssignmentExpression"&&n==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function hl(e){let t=Z(e);return t.length>1&&t.some(n=>n.type==="TSParameterProperty")}var Sl=X(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),bl=X(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function Bl(e){let{types:t}=e;if(t.some(r=>C(r)))return!1;let n=t.find(r=>bl(r));return n?t.every(r=>r===n||Sl(r)):!1}function Wu(e){return $n(e)||je(e)?!0:We(e)?Bl(e):!1}function vl(e,t,n){let r=t.semi?";":"",{node:u}=e,a=[ae(e),"opaque type ",n("id"),n("typeParameters")];return u.supertype&&a.push(": ",n("supertype")),u.impltype&&a.push(" = ",n("impltype")),a.push(r),a}function Gu(e,t,n){let r=t.semi?";":"",{node:u}=e,a=[ae(e)];a.push("type ",n("id"),n("typeParameters"));let s=u.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[jt(e,t,n,a," =",s),r]}function Vu(e,t,n){let r=!1;return m(e.map(({isFirst:u,previous:a,node:s,index:o})=>{let i=n();if(u)return i;let l=je(s),d=je(a);return d&&l?[" & ",r?A(i):i]:!d&&!l?A([" &",T,i]):(o>1&&(r=!0),[" & ",o>1?A(i):i])},"types"))}function Ku(e,t,n){let{node:r}=e,{parent:u}=e,a=u.type!=="TypeParameterInstantiation"&&(u.type!=="TSConditionalType"||!t.experimentalTernaries)&&(u.type!=="ConditionalTypeAnnotation"||!t.experimentalTernaries)&&u.type!=="TSTypeParameterInstantiation"&&u.type!=="GenericTypeAnnotation"&&u.type!=="TSTypeReference"&&u.type!=="TSTypeAssertion"&&u.type!=="TupleTypeAnnotation"&&u.type!=="TSTupleType"&&!(u.type==="FunctionTypeParam"&&!u.name&&e.grandparent.this!==u)&&!((u.type==="TypeAlias"||u.type==="VariableDeclarator"||u.type==="TSTypeAliasDeclaration")&&Ue(t.originalText,r)),s=Wu(r),o=e.map(d=>{let c=n();return s||(c=Te(2,c)),Ee(d,c,t)},"types");if(s)return I(" | ",o);let i=a&&!Ue(t.originalText,r),l=[w([i?T:"","| "]),I([T,"| "],o)];return et(e,t)?m([A(l),f]):(u.type==="TupleTypeAnnotation"||u.type==="TSTupleType")&&u[u.type==="TupleTypeAnnotation"&&u.types?"types":"elementTypes"].length>1?m([A([w(["(",f]),l]),f,w(")")]):m(a?A(l):l)}function kl(e){var t;let{node:n,parent:r}=e;return n.type==="FunctionTypeAnnotation"&&(Kr(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&en(r,n)||r.type==="ObjectTypeCallProperty"||((t=e.getParentNode(2))==null?void 0:t.type)==="DeclareFunction"))}function Hu(e,t,n){let{node:r}=e,u=[an(e)];(r.type==="TSConstructorType"||r.type==="TSConstructSignatureDeclaration")&&u.push("new ");let a=tt(e,n,t,!1,!0),s=[];return r.type==="FunctionTypeAnnotation"?s.push(kl(e)?" => ":": ",n("returnType")):s.push(z(e,n,r.returnType?"returnType":"typeAnnotation")),xt(r,s)&&(a=m(a)),u.push(a,s),m(u)}function zu(e,t,n){return[n("objectType"),ne(e),"[",n("indexType"),"]"]}function Qu(e,t,n){return["infer ",n("typeParameter")]}function kr(e,t,n){let{node:r}=e;return[r.postfix?"":n,z(e,t),r.postfix?n:""]}function Yu(e,t,n){let{node:r}=e;return["...",...r.type==="TupleTypeSpreadElement"&&r.label?[n("label"),": "]:[],n("typeAnnotation")]}function Zu(e,t,n){let{node:r}=e;return[r.variance?n("variance"):"",n("label"),r.optional?"?":"",": ",n("elementType")]}var Pl=new WeakSet;function z(e,t,n="typeAnnotation"){let{node:{[n]:r}}=e;if(!r)return"";let u=!1;if(r.type==="TSTypeAnnotation"||r.type==="TypeAnnotation"){let a=e.call(ea,n);(a==="=>"||a===":"&&C(r,h.Leading))&&(u=!0),Pl.add(r)}return u?[" ",t(n)]:t(n)}var ea=e=>e.match(t=>t.type==="TSTypeAnnotation",(t,n)=>(n==="returnType"||n==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match(t=>t.type==="TSTypeAnnotation",(t,n)=>n==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match(t=>t.type==="TypeAnnotation",(t,n)=>n==="typeAnnotation"&&t.type==="Identifier",(t,n)=>n==="id"&&t.type==="DeclareFunction")||e.match(t=>t.type==="TypeAnnotation",(t,n)=>n==="typeAnnotation"&&t.type==="Identifier",(t,n)=>n==="id"&&t.type==="DeclareHook")||e.match(t=>t.type==="TypeAnnotation",(t,n)=>n==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":";function ta(e,t,n){let r=ea(e);return r?[r," ",n("typeAnnotation")]:n("typeAnnotation")}function na(e){return[e("elementType"),"[]"]}function ra({node:e},t){let n=e.type==="TSTypeQuery"?"exprName":"argument",r=e.type==="TypeofTypeAnnotation"||e.typeArguments?"typeArguments":"typeParameters";return["typeof ",t(n),t(r)]}function ua(e,t){let{node:n}=e;return[n.type==="TSTypePredicate"&&n.asserts?"asserts ":n.type==="TypePredicate"&&n.kind?`${n.kind} `:"",t("parameterName"),n.typeAnnotation?[" is ",z(e,t)]:""]}function ne(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":L(t)||W(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function aa(e){return e.node.definite||e.match(void 0,(t,n)=>n==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var wl=new Set(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function ae(e){let{node:t}=e;return t.declare||wl.has(t.type)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}var Nl=new Set(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function an({node:e}){return e.abstract||Nl.has(e.type)?"abstract ":""}function Ve(e,t,n){let r=e.node;return r.typeArguments?n("typeArguments"):r.typeParameters?n("typeParameters"):""}function sa(e,t,n){return["::",n("callee")]}function Ie(e,t,n){return e.type==="EmptyStatement"?";":e.type==="BlockStatement"||n?[" ",t]:A([T,t])}function oa(e,t){return["...",t("argument"),z(e,t)]}function Yt(e){return e.accessibility?e.accessibility+" ":""}function Il(e,t,n,r){let{node:u}=e,a=u.inexact?"...":"";return C(u,h.Dangling)?m([n,a,_(e,t,{indent:!0}),f,r]):[n,a,r]}function er(e,t,n){let{node:r}=e,u=[],a=r.type==="TupleExpression"?"#[":"[",s="]",o=r.type==="TupleTypeAnnotation"&&r.types?"types":r.type==="TSTupleType"||r.type==="TupleTypeAnnotation"?"elementTypes":"elements",i=r[o];if(i.length===0)u.push(Il(e,t,a,s));else{let l=M(!1,i,-1),d=(l==null?void 0:l.type)!=="RestElement"&&!r.inexact,c=l===null,D=Symbol("array"),p=!t.__inJestEach&&i.length>1&&i.every((g,S,b)=>{let x=g==null?void 0:g.type;if(!Q(g)&&!Fe(g))return!1;let N=b[S+1];if(N&&x!==N.type)return!1;let v=Q(g)?"elements":"properties";return g[v]&&g[v].length>1}),y=ia(r,t),F=d?c?",":ke(t)?y?w(",","",{groupId:D}):w(","):"":"";u.push(m([a,A([f,y?Ll(e,t,n,F):[jl(e,t,o,r.inexact,n),F],_(e,t)]),f,s],{shouldBreak:p,id:D}))}return u.push(ne(e),z(e,n)),u}function ia(e,t){return Q(e)&&e.elements.length>1&&e.elements.every(n=>n&&(be(n)||Gr(n)&&!C(n.argument))&&!C(n,h.Trailing|h.Line,r=>!oe(t.originalText,U(r),{backwards:!0})))}function pa({node:e},{originalText:t}){let n=u=>On(t,Jn(t,u)),r=u=>t[u]===","?u:r(n(u+1));return qn(t,r(j(e)))}function jl(e,t,n,r,u){let a=[];return e.each(({node:s,isLast:o})=>{a.push(s?m(u()):""),(!o||r)&&a.push([",",T,s&&pa(e,t)?f:""])},n),r&&a.push("..."),a}function Ll(e,t,n,r){let u=[];return e.each(({isLast:a,next:s})=>{u.push([n(),a?r:","]),a||u.push(pa(e,t)?[E,E]:C(s,h.Leading|h.Line)?E:T)},"elements"),su(u)}var Ml=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,Ol=e=>Ml.test(e),Jl=Ol;function ql(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var Dt=ql,Vt=new WeakMap;function la(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function Pr(e,t){return t.parser==="json"||t.parser==="jsonc"||!ue(e.key)||lt(pe(e.key),t).slice(1,-1)!==e.key.value?!1:!!(Jl(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||t.parser==="typescript"&&e.type==="PropertyDefinition")||la(e.key.value)&&String(Number(e.key.value))===e.key.value&&e.type!=="ImportAttribute"&&(t.parser==="babel"||t.parser==="acorn"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))}function Xl(e,t){let{key:n}=e.node;return(n.type==="Identifier"||be(n)&&la(Dt(pe(n)))&&String(n.value)===Dt(pe(n))&&!(t.parser==="typescript"||t.parser==="babel-ts"))&&(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&Vt.get(e.parent))}function Lt(e,t,n){let{node:r}=e;if(r.computed)return["[",n("key"),"]"];let{parent:u}=e,{key:a}=r;if(t.quoteProps==="consistent"&&!Vt.has(u)){let s=e.siblings.some(o=>!o.computed&&ue(o.key)&&!Pr(o,t));Vt.set(u,s)}if(Xl(e,t)){let s=lt(JSON.stringify(a.type==="Identifier"?a.name:a.value.toString()),t);return e.call(o=>Ee(o,s,t),"key")}return Pr(r,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!Vt.get(u))?e.call(s=>Ee(s,/^\d/u.test(a.value)?Dt(a.value):a.value,t),"key"):n("key")}function fn(e,t,n){let{node:r}=e;return r.shorthand?n("value"):jt(e,t,n,Lt(e,t,n),":","value")}var Rl=({node:e,key:t,parent:n})=>t==="value"&&e.type==="FunctionExpression"&&(n.type==="ObjectMethod"||n.type==="ClassMethod"||n.type==="ClassPrivateMethod"||n.type==="MethodDefinition"||n.type==="TSAbstractMethodDefinition"||n.type==="TSDeclareMethod"||n.type==="Property"&&tn(n));function ca(e,t,n,r){if(Rl(e))return tr(e,n,t);let{node:u}=e,a=!1;if((u.type==="FunctionDeclaration"||u.type==="FunctionExpression")&&r!=null&&r.expandLastArg){let{parent:d}=e;L(d)&&(ye(d).length>1||Z(u).every(c=>c.type==="Identifier"&&!c.typeAnnotation))&&(a=!0)}let s=[ae(e),u.async?"async ":"",`function${u.generator?"*":""} `,u.id?t("id"):""],o=tt(e,t,n,a),i=sn(e,t),l=xt(u,i);return s.push(Ve(e,n,t),m([l?m(o):o,i]),u.body?" ":"",t("body")),n.semi&&(u.declare||!u.body)&&s.push(";"),s}function In(e,t,n){let{node:r}=e,{kind:u}=r,a=r.value||r,s=[];return!u||u==="init"||u==="method"||u==="constructor"?a.async&&s.push("async "):(Xn.ok(u==="get"||u==="set"),s.push(u," ")),a.generator&&s.push("*"),s.push(Lt(e,t,n),r.optional||r.key.optional?"?":"",r===a?tr(e,t,n):n("value")),s}function tr(e,t,n){let{node:r}=e,u=tt(e,n,t),a=sn(e,n),s=hl(r),o=xt(r,a),i=[Ve(e,t,n),m([s?m(u,{shouldBreak:!0}):o?m(u):u,a])];return r.body?i.push(" ",n("body")):i.push(t.semi?";":""),i}function _l(e){let t=Z(e);return t.length===1&&!e.typeParameters&&!C(e,h.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!C(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function Da(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:n}=e;return _l(n)}return!1}function sn(e,t){let{node:n}=e,r=[z(e,t,"returnType")];return n.predicate&&r.push(t("predicate")),r}function ya(e,t,n){let{node:r}=e,u=t.semi?";":"",a=[];if(r.argument){let i=n("argument");Wl(t,r.argument)?i=["(",A([E,i]),E,")"]:(Be(r.argument)||r.argument.type==="SequenceExpression"||t.experimentalTernaries&&r.argument.type==="ConditionalExpression"&&(r.argument.consequent.type==="ConditionalExpression"||r.argument.alternate.type==="ConditionalExpression"))&&(i=m([w("("),A([f,i]),f,w(")")])),a.push(" ",i)}let s=C(r,h.Dangling),o=u&&s&&C(r,h.Last|h.Line);return o&&a.push(u),s&&a.push(" ",_(e,t)),o||a.push(u),a}function $l(e,t,n){return["return",ya(e,t,n)]}function Ul(e,t,n){return["throw",ya(e,t,n)]}function Wl(e,t){if(Ue(e.originalText,t)||C(t,h.Leading,n=>Me(e.originalText,U(n),j(n)))&&!K(t))return!0;if(Rn(t)){let n=t,r;for(;r=Xs(n);)if(n=r,Ue(e.originalText,n))return!0}return!1}var En=new WeakMap;function da(e){return En.has(e)||En.set(e,e.type==="ConditionalExpression"&&!ee(e,t=>t.type==="ObjectExpression")),En.get(e)}var ma=e=>e.type==="SequenceExpression";function Gl(e,t,n,r={}){let u=[],a,s=[],o=!1,i=!r.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",l;(function S(){let{node:b}=e,x=Vl(e,t,n,r);if(u.length===0)u.push(x);else{let{leading:N,trailing:v}=wu(e,t);u.push([N,x]),s.unshift(v)}i&&(o||(o=b.returnType&&Z(b).length>0||b.typeParameters||Z(b).some(N=>N.type!=="Identifier"))),!i||b.body.type!=="ArrowFunctionExpression"?(a=n("body",r),l=b.body):e.call(S,"body")})();let d=!Ue(t.originalText,l)&&(ma(l)||Kl(l,a,t)||!o&&da(l)),c=e.key==="callee"&&ct(e.parent),D=Symbol("arrow-chain"),p=Hl(e,r,{signatureDocs:u,shouldBreak:o}),y=!1,F=!1,g=!1;return i&&(c||r.assignmentLayout)&&(F=!0,g=!C(e.node,h.Leading&h.Line),y=r.assignmentLayout==="chain-tail-arrow-chain"||c&&!d),a=zl(e,t,r,{bodyDoc:a,bodyComments:s,functionBody:l,shouldPutBodyOnSameLine:d}),m([m(F?A([g?f:"",p]):p,{shouldBreak:y,id:D})," =>",i?un(a,{groupId:D}):m(a),i&&c?w(f,"",{groupId:D}):""])}function Vl(e,t,n,r){let{node:u}=e,a=[];if(u.async&&a.push("async "),Da(e,t))a.push(n(["params",0]));else{let o=r.expandLastArg||r.expandFirstArg,i=sn(e,n);if(o){if(te(i))throw new Qt;i=m(Tn(i))}a.push(m([tt(e,n,t,o,!0),i]))}let s=_(e,t,{filter(o){let i=At(t.originalText,j(o));return i!==!1&&t.originalText.slice(i,i+2)==="=>"}});return s&&a.push(" ",s),a}function Kl(e,t,n){var r,u;return Q(e)||Fe(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||K(e)||((r=t.label)==null?void 0:r.hug)!==!1&&(((u=t.label)==null?void 0:u.embed)||Qr(e,n.originalText))}function Hl(e,t,{signatureDocs:n,shouldBreak:r}){if(n.length===1)return n[0];let{parent:u,key:a}=e;return a!=="callee"&&ct(u)||Be(u)?m([n[0]," =>",A([T,I([" =>",T],n.slice(1))])],{shouldBreak:r}):a==="callee"&&ct(u)||t.assignmentLayout?m(I([" =>",T],n),{shouldBreak:r}):m(A(I([" =>",T],n)),{shouldBreak:r})}function zl(e,t,n,{bodyDoc:r,bodyComments:u,functionBody:a,shouldPutBodyOnSameLine:s}){let{node:o,parent:i}=e,l=n.expandLastArg&&ke(t,"all")?w(","):"",d=(n.expandLastArg||i.type==="JSXExpressionContainer")&&!C(o)?f:"";return s&&da(a)?[" ",m([w("","("),A([f,r]),w("",")"),l,d]),u]:(ma(a)&&(r=m(["(",A([f,r]),f,")"])),s?[" ",r,u]:[A([T,r,u]),l,d])}var Ql=(e,t,n)=>{if(!(e&&t==null)){if(t.findLast)return t.findLast(n);for(let r=t.length-1;r>=0;r--){let u=t[r];if(n(u,r,t))return u}}},Yl=Ql;function jn(e,t,n,r){let{node:u}=e,a=[],s=Yl(!1,u[r],o=>o.type!=="EmptyStatement");return e.each(({node:o})=>{o.type!=="EmptyStatement"&&(a.push(n()),o!==s&&(a.push(E),Pe(o,t)&&a.push(E)))},r),a}function fa(e,t,n){let r=Zl(e,t,n),{node:u,parent:a}=e;if(u.type==="Program"&&(a==null?void 0:a.type)!=="ModuleExpression")return r?[r,E]:"";let s=[];if(u.type==="StaticBlock"&&s.push("static "),s.push("{"),r)s.push(A([E,r]),E);else{let o=e.grandparent;a.type==="ArrowFunctionExpression"||a.type==="FunctionExpression"||a.type==="FunctionDeclaration"||a.type==="ComponentDeclaration"||a.type==="HookDeclaration"||a.type==="ObjectMethod"||a.type==="ClassMethod"||a.type==="ClassPrivateMethod"||a.type==="ForStatement"||a.type==="WhileStatement"||a.type==="DoWhileStatement"||a.type==="DoExpression"||a.type==="ModuleExpression"||a.type==="CatchClause"&&!o.finalizer||a.type==="TSModuleDeclaration"||u.type==="StaticBlock"||s.push(E)}return s.push("}"),s}function Zl(e,t,n){let{node:r}=e,u=O(r.directives),a=r.body.some(i=>i.type!=="EmptyStatement"),s=C(r,h.Dangling);if(!u&&!a&&!s)return"";let o=[];return u&&(o.push(jn(e,t,n,"directives")),(a||s)&&(o.push(E),Pe(M(!1,r.directives,-1),t)&&o.push(E))),a&&o.push(jn(e,t,n,"body")),s&&o.push(_(e,t)),o}function ec(e){let t=new WeakMap;return function(n){return t.has(n)||t.set(n,Symbol(e)),t.get(n)}}var Ea=ec;function tc(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function nc(e,t,n){let{node:r}=e;return m([r.variance?n("variance"):"","[",A([n("keyTparam")," in ",n("sourceType")]),"]",tc(r.optional),": ",n("propType")])}function Fa(e,t){return e==="+"||e==="-"?e+t:t}function rc(e,t,n){let{node:r}=e,u=Me(t.originalText,U(r),U(r.typeParameter));return m(["{",A([t.bracketSpacing?T:f,m([n("typeParameter"),r.optional?Fa(r.optional,"?"):"",r.typeAnnotation?": ":"",n("typeAnnotation")]),t.semi?w(";"):""]),_(e,t),t.bracketSpacing?T:f,"}"],{shouldBreak:u})}var nr=Ea("typeParameters");function uc(e,t,n){let{node:r}=e;return Z(r).length===1&&r.type.startsWith("TS")&&!r[n][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/u.test(t.filepath))}function vt(e,t,n,r){let{node:u}=e;if(!u[r])return"";if(!Array.isArray(u[r]))return n(r);let a=nn(e.grandparent),s=e.match(i=>!(i[r].length===1&&je(i[r][0])),void 0,(i,l)=>l==="typeAnnotation",i=>i.type==="Identifier",_u);if(u[r].length===0||!s&&(a||u[r].length===1&&(u[r][0].type==="NullableTypeAnnotation"||Wu(u[r][0]))))return["<",I(", ",e.map(n,r)),ac(e,t),">"];let o=u.type==="TSTypeParameterInstantiation"?"":uc(e,t,r)?",":ke(t)?w(","):"";return m(["<",A([f,I([",",T],e.map(n,r))]),o,f,">"],{id:nr(u)})}function ac(e,t){let{node:n}=e;if(!C(n,h.Dangling))return"";let r=!C(n,h.Line),u=_(e,t,{indent:!r});return r?u:[u,E]}function Aa(e,t,n){let{node:r,parent:u}=e,a=[r.type==="TSTypeParameter"&&r.const?"const ":""],s=r.type==="TSTypeParameter"?n("name"):r.name;if(u.type==="TSMappedType")return u.readonly&&a.push(Fa(u.readonly,"readonly")," "),a.push("[",s),r.constraint&&a.push(" in ",n("constraint")),u.nameType&&a.push(" as ",e.callParent(()=>n("nameType"))),a.push("]"),a;if(r.variance&&a.push(n("variance")),r.in&&a.push("in "),r.out&&a.push("out "),a.push(s),r.bound&&(r.usesExtendsBound&&a.push(" extends "),a.push(z(e,n,"bound"))),r.constraint){let o=Symbol("constraint");a.push(" extends",m(A(T),{id:o}),ve,un(n("constraint"),{groupId:o}))}return r.default&&a.push(" = ",n("default")),m(a)}var ga=X(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function xa(e,t,n){let{node:r}=e,u=[ae(e),an(e),"class"],a=C(r.id,h.Trailing)||C(r.typeParameters,h.Trailing)||C(r.superClass)||O(r.extends)||O(r.mixins)||O(r.implements),s=[],o=[];if(r.id&&s.push(" ",n("id")),s.push(n("typeParameters")),r.superClass){let d=[ic(e,t,n),n(r.superTypeArguments?"superTypeArguments":"superTypeParameters")],c=e.call(D=>["extends ",Ee(D,d,t)],"superClass");a?o.push(T,m(c)):o.push(" ",c)}else o.push(Fn(e,t,n,"extends"));o.push(Fn(e,t,n,"mixins"),Fn(e,t,n,"implements"));let i;if(a){let d;Ta(r)?d=[...s,A(o)]:d=A([...s,o]),i=Ca(r),u.push(m(d,{id:i}))}else u.push(...s,...o);let l=r.body;return a&&O(l.body)?u.push(w(E," ",{groupId:i})):u.push(" "),u.push(n("body")),u}var Ca=Ea("heritageGroup");function sc(e){return w(E,"",{groupId:Ca(e)})}function oc(e){return["extends","mixins","implements"].reduce((t,n)=>t+(Array.isArray(e[n])?e[n].length:0),e.superClass?1:0)>1}function Ta(e){return e.typeParameters&&!C(e.typeParameters,h.Trailing|h.Line)&&!oc(e)}function Fn(e,t,n,r){let{node:u}=e;if(!O(u[r]))return"";let a=_(e,t,{marker:r});return[Ta(u)?w(" ",T,{groupId:nr(u.typeParameters)}):T,a,a&&E,r,m(A([T,I([",",T],e.map(n,r))]))]}function ic(e,t,n){let r=n("superClass"),{parent:u}=e;return u.type==="AssignmentExpression"?m(w(["(",A([f,r]),f,")"],r)):r}function ha(e,t,n){let{node:r}=e,u=[];return O(r.decorators)&&u.push(ju(e,t,n)),u.push(Yt(r)),r.static&&u.push("static "),u.push(an(e)),r.override&&u.push("override "),u.push(In(e,t,n)),u}function Sa(e,t,n){let{node:r}=e,u=[],a=t.semi?";":"";O(r.decorators)&&u.push(ju(e,t,n)),u.push(ae(e),Yt(r)),r.static&&u.push("static "),u.push(an(e)),r.override&&u.push("override "),r.readonly&&u.push("readonly "),r.variance&&u.push(n("variance")),(r.type==="ClassAccessorProperty"||r.type==="AccessorProperty"||r.type==="TSAbstractAccessorProperty")&&u.push("accessor "),u.push(Lt(e,t,n),ne(e),aa(e),z(e,n));let s=r.type==="TSAbstractPropertyDefinition"||r.type==="TSAbstractAccessorProperty";return[jt(e,t,n,u," =",s?void 0:"value"),a]}function pc(e,t,n){let{node:r}=e,u=[];return e.each(({node:a,next:s,isLast:o})=>{u.push(n()),!t.semi&&ga(a)&&lc(a,s)&&u.push(";"),o||(u.push(E),Pe(a,t)&&u.push(E))},"body"),C(r,h.Dangling)&&u.push(_(e,t)),["{",u.length>0?[A([E,u]),E]:"","}"]}function lc(e,t){var n;let{type:r,name:u}=e.key;if(!e.computed&&r==="Identifier"&&(u==="static"||u==="get"||u==="set")&&!e.value&&!e.typeAnnotation)return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let a=(n=t.key)==null?void 0:n.name;if(a==="in"||a==="instanceof")return!0}if(ga(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||t.kind==="get"||t.kind==="set")return!1;let a=t.value?t.value.generator:t.generator;return!!(t.computed||a)}case"TSIndexSignature":return!0}return!1}var cc=X(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function ba(e){return cc(e)?ba(e.expression):e}var Dc=X(["FunctionExpression","ArrowFunctionExpression"]);function yc(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="Identifier"&&e.name!=="undefined"}function dc(e,t){if(t.semi||va(e,t)||ka(e,t))return!1;let{node:n,key:r,parent:u}=e;return!!(n.type==="ExpressionStatement"&&(r==="body"&&(u.type==="Program"||u.type==="BlockStatement"||u.type==="StaticBlock"||u.type==="TSModuleBlock")||r==="consequent"&&u.type==="SwitchCase")&&e.call(()=>Ba(e,t),"expression"))}function Ba(e,t){let{node:n}=e;switch(n.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!Da(e,t))return!0;break;case"UnaryExpression":{let{prefix:r,operator:u}=n;if(r&&(u==="+"||u==="-"))return!0;break}case"BindExpression":if(!n.object)return!0;break;case"Literal":if(n.regex)return!0;break;default:if(K(n))return!0}return et(e,t)?!0:Rn(n)?e.call(()=>Ba(e,t),...Wr(n)):!1}function va({node:e,parent:t},n){return(n.parentParser==="markdown"||n.parentParser==="mdx")&&e.type==="ExpressionStatement"&&K(e.expression)&&t.type==="Program"&&t.body.length===1}function ka({node:e,parent:t},n){return(n.parser==="__vue_event_binding"||n.parser==="__vue_ts_event_binding")&&e.type==="ExpressionStatement"&&t.type==="Program"&&t.body.length===1}function mc(e,t,n){let r=[n("expression")];if(ka(e,t)){let u=ba(e.node.expression);(Dc(u)||yc(u))&&r.push(";")}else va(e,t)||t.semi&&r.push(";");return r}function fc(e,t,n){if(t.__isVueBindings||t.__isVueForBindingLeft){let r=e.map(n,"program","body",0,"params");if(r.length===1)return r[0];let u=I([",",T],r);return t.__isVueForBindingLeft?["(",A([f,m(u)]),f,")"]:u}if(t.__isEmbeddedTypescriptGenericParameters){let r=e.map(n,"program","body",0,"typeParameters","params");return I([",",T],r)}}function Ec(e,t){let{node:n}=e;switch(n.type){case"RegExpLiteral":return wr(n);case"BigIntLiteral":return Ln(n.extra.raw);case"NumericLiteral":return Dt(n.extra.raw);case"StringLiteral":return Ge(lt(n.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(n.value);case"DirectiveLiteral":return Nr(n.extra.raw,t);case"Literal":{if(n.regex)return wr(n.regex);if(n.bigint)return Ln(n.raw);let{value:r}=n;return typeof r=="number"?Dt(n.raw):typeof r=="string"?Fc(e)?Nr(n.raw,t):Ge(lt(n.raw,t)):String(r)}}}function Fc(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&t.directive}function Ln(e){return e.toLowerCase()}function wr({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}function Nr(e,t){let n=e.slice(1,-1);if(n.includes('"')||n.includes("'"))return e;let r=t.singleQuote?"'":'"';return r+n+r}function Ac(e,t,n){let r=e.originalText.slice(t,n);for(let u of e[Symbol.for("comments")]){let a=U(u);if(a>n)break;let s=j(u);if(s e.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function Na(e,t,n){let{node:r}=e,u=[zp(e,t,n),ae(e),"export",wa(r)?" default":""],{declaration:a,exported:s}=r;return C(r,h.Dangling)&&(u.push(" ",_(e,t)),Yr(r)&&u.push(E)),a?u.push(" ",n("declaration")):(u.push(Tc(r)),r.type==="ExportAllDeclaration"||r.type==="DeclareExportAllDeclaration"?(u.push(" *"),s&&u.push(" as ",n("exported"))):u.push(La(e,t,n)),u.push(ja(e,t,n),Oa(e,t,n))),u.push(Cc(r,t)),u}var xc=X(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function Cc(e,t){return t.semi&&(!e.declaration||wa(e)&&!xc(e.declaration))?";":""}function rr(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function Ia(e,t){return rr(e.importKind,t)}function Tc(e){return rr(e.exportKind)}function ja(e,t,n){let{node:r}=e;if(!r.source)return"";let u=[];return Ma(r,t)&&u.push(" from"),u.push(" ",n("source")),u}function La(e,t,n){let{node:r}=e;if(!Ma(r,t))return"";let u=[" "];if(O(r.specifiers)){let a=[],s=[];e.each(()=>{let o=e.node.type;if(o==="ExportNamespaceSpecifier"||o==="ExportDefaultSpecifier"||o==="ImportNamespaceSpecifier"||o==="ImportDefaultSpecifier")a.push(n());else if(o==="ExportSpecifier"||o==="ImportSpecifier")s.push(n());else throw new gt(r,"specifier")},"specifiers"),u.push(I(", ",a)),s.length>0&&(a.length>0&&u.push(", "),s.length>1||a.length>0||r.specifiers.some(o=>C(o))?u.push(m(["{",A([t.bracketSpacing?T:f,I([",",T],s)]),w(ke(t)?",":""),t.bracketSpacing?T:f,"}"])):u.push(["{",t.bracketSpacing?" ":"",...s,t.bracketSpacing?" ":"","}"]))}else u.push("{}");return u}function Ma(e,t){return e.type!=="ImportDeclaration"||O(e.specifiers)||e.importKind==="type"?!0:Pa(t,U(e),U(e.source)).trimEnd().endsWith("from")}function hc(e,t){var n,r;if((n=e.extra)!=null&&n.deprecatedAssertSyntax)return"assert";let u=Pa(t,j(e.source),(r=e.attributes)!=null&&r[0]?U(e.attributes[0]):j(e)).trimStart();return u.startsWith("assert")?"assert":u.startsWith("with")||O(e.attributes)?"with":void 0}function Oa(e,t,n){let{node:r}=e;if(!r.source)return"";let u=hc(r,t);if(!u)return"";let a=[` ${u} {`];return O(r.attributes)&&(t.bracketSpacing&&a.push(" "),a.push(I(", ",e.map(n,"attributes"))),t.bracketSpacing&&a.push(" ")),a.push("}"),a}function Sc(e,t,n){let{node:r}=e,{type:u}=r,a=u.startsWith("Import"),s=a?"imported":"local",o=a?"local":"exported",i=r[s],l=r[o],d="",c="";return u==="ExportNamespaceSpecifier"||u==="ImportNamespaceSpecifier"?d="*":i&&(d=n(s)),l&&!bc(r)&&(c=n(o)),[rr(u==="ImportSpecifier"?r.importKind:r.exportKind,!1),d,d&&c?" as ":"",c]}function bc(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:n}=e;if(t.type!==n.type||!Bs(t,n))return!1;if(ue(t))return t.value===n.value&&pe(t)===pe(n);switch(t.type){case"Identifier":return t.name===n.name;default:return!1}}function on(e,t,n){var r;let u=t.semi?";":"",{node:a}=e,s=a.type==="ObjectTypeAnnotation",o=a.type==="TSEnumDeclaration"||a.type==="EnumBooleanBody"||a.type==="EnumNumberBody"||a.type==="EnumBigIntBody"||a.type==="EnumStringBody"||a.type==="EnumSymbolBody",i=[a.type==="TSTypeLiteral"||o?"members":a.type==="TSInterfaceBody"?"body":"properties"];s&&i.push("indexers","callProperties","internalSlots");let l=i.flatMap(B=>e.map(({node:q})=>({node:q,printed:n(),loc:U(q)}),B));i.length>1&&l.sort((B,q)=>B.loc-q.loc);let{parent:d,key:c}=e,D=s&&c==="body"&&(d.type==="InterfaceDeclaration"||d.type==="DeclareInterface"||d.type==="DeclareClass"),p=a.type==="TSInterfaceBody"||o||D||a.type==="ObjectPattern"&&d.type!=="FunctionDeclaration"&&d.type!=="FunctionExpression"&&d.type!=="ArrowFunctionExpression"&&d.type!=="ObjectMethod"&&d.type!=="ClassMethod"&&d.type!=="ClassPrivateMethod"&&d.type!=="AssignmentPattern"&&d.type!=="CatchClause"&&a.properties.some(B=>B.value&&(B.value.type==="ObjectPattern"||B.value.type==="ArrayPattern"))||a.type!=="ObjectPattern"&&l.length>0&&Me(t.originalText,U(a),l[0].loc),y=D?";":a.type==="TSInterfaceBody"||a.type==="TSTypeLiteral"?w(u,";"):",",F=a.type==="RecordExpression"?"#{":a.exact?"{|":"{",g=a.exact?"|}":"}",S=[],b=l.map(B=>{let q=[...S,m(B.printed)];return S=[y,T],(B.node.type==="TSPropertySignature"||B.node.type==="TSMethodSignature"||B.node.type==="TSConstructSignatureDeclaration"||B.node.type==="TSCallSignatureDeclaration")&&C(B.node,h.PrettierIgnore)&&S.shift(),Pe(B.node,t)&&S.push(E),q});if(a.inexact||a.hasUnknownMembers){let B;if(C(a,h.Dangling)){let q=C(a,h.Line);B=[_(e,t),q||oe(t.originalText,j(M(!1,st(a),-1)))?E:T,"..."]}else B=["..."];b.push([...S,...B])}let x=(r=M(!1,l,-1))==null?void 0:r.node,N=!(a.inexact||a.hasUnknownMembers||x&&(x.type==="RestElement"||(x.type==="TSPropertySignature"||x.type==="TSCallSignatureDeclaration"||x.type==="TSMethodSignature"||x.type==="TSConstructSignatureDeclaration")&&C(x,h.PrettierIgnore))),v;if(b.length===0){if(!C(a,h.Dangling))return[F,g,z(e,n)];v=m([F,_(e,t,{indent:!0}),f,g,ne(e),z(e,n)])}else v=[D&&O(a.properties)?sc(d):"",F,A([t.bracketSpacing?T:f,...b]),w(N&&(y!==","||ke(t))?y:""),t.bracketSpacing?T:f,g,ne(e),z(e,n)];return e.match(B=>B.type==="ObjectPattern"&&!O(B.decorators),An)||je(a)&&(e.match(void 0,(B,q)=>q==="typeAnnotation",(B,q)=>q==="typeAnnotation",An)||e.match(void 0,(B,q)=>B.type==="FunctionTypeParam"&&q==="typeAnnotation",An))||!p&&e.match(B=>B.type==="ObjectPattern",B=>B.type==="AssignmentExpression"||B.type==="VariableDeclarator")?v:m(v,{shouldBreak:p})}function An(e,t){return(t==="params"||t==="parameters"||t==="this"||t==="rest")&&Uu(e)}function Bc(e){let t=[e];for(let n=0;n D[J]===r),y=D.type===r.type&&!p,F,g,S=0;do g=F||r,F=e.getParentNode(S),S++;while(F&&F.type===r.type&&o.every(J=>F[J]!==g));let b=F||D,x=g;if(u&&(K(r[o[0]])||K(i)||K(l)||Bc(x))){c=!0,y=!0;let J=R=>[w("("),A([f,R]),f,w(")")],V=R=>R.type==="NullLiteral"||R.type==="Literal"&&R.value===null||R.type==="Identifier"&&R.name==="undefined";d.push(" ? ",V(i)?n(a):J(n(a))," : ",l.type===r.type||V(l)?n(s):J(n(s)))}else{let J=R=>t.useTabs?A(n(R)):Te(2,n(R)),V=[T,"? ",i.type===r.type?w("","("):"",J(a),i.type===r.type?w("",")"):"",T,": ",J(s)];d.push(D.type!==r.type||D[s]===r||p?V:t.useTabs?au(A(V)):Te(Math.max(0,t.tabWidth-2),V))}let N=[a,s,...o].some(J=>C(r[J],V=>De(V)&&Me(t.originalText,U(V),j(V)))),v=J=>D===b?m(J,{shouldBreak:N}):N?[J,he]:J,B=!c&&(W(D)||D.type==="NGPipeExpression"&&D.left===r)&&!D.computed,q=Pc(e),k=v([vc(e,t,n),y?d:A(d),u&&B&&!q?f:""]);return p||q?m([A([f,k]),f]):k}function Nc(e,t){return(W(t)||t.type==="NGPipeExpression"&&t.left===e)&&!t.computed}function Ic(e,t,n,r){return[...e.map(u=>st(u)),st(t),st(n)].flat().some(u=>De(u)&&Me(r.originalText,U(u),j(u)))}var jc=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function Lc(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let n,r=t;for(let u=0;!n;u++){let a=e.getParentNode(u);if(a.type==="ChainExpression"&&a.expression===r||L(a)&&a.callee===r||W(a)&&a.object===r||a.type==="TSNonNullExpression"&&a.expression===r){r=a;continue}a.type==="NewExpression"&&a.callee===r||xe(a)&&a.expression===r?(n=e.getParentNode(u+1),r=a):n=a}return r===t?!1:n[jc.get(n.type)]===r}var gn=e=>[w("("),A([f,e]),f,w(")")];function ur(e,t,n,r){if(!t.experimentalTernaries)return wc(e,t,n);let{node:u}=e,a=u.type==="ConditionalExpression",s=u.type==="TSConditionalType"||u.type==="ConditionalTypeAnnotation",o=a?"consequent":"trueType",i=a?"alternate":"falseType",l=a?["test"]:["checkType","extendsType"],d=u[o],c=u[i],D=l.map(de=>u[de]),{parent:p}=e,y=p.type===u.type,F=y&&l.some(de=>p[de]===u),g=y&&p[i]===u,S=d.type===u.type,b=c.type===u.type,x=b||g,N=t.tabWidth>2||t.useTabs,v,B,q=0;do B=v||u,v=e.getParentNode(q),q++;while(v&&v.type===u.type&&l.every(de=>v[de]!==B));let k=v||p,J=r&&r.assignmentLayout&&r.assignmentLayout!=="break-after-operator"&&(p.type==="AssignmentExpression"||p.type==="VariableDeclarator"||p.type==="ClassProperty"||p.type==="PropertyDefinition"||p.type==="ClassPrivateProperty"||p.type==="ObjectProperty"||p.type==="Property"),V=(p.type==="ReturnStatement"||p.type==="ThrowStatement")&&!(S||b),R=a&&k.type==="JSXExpressionContainer"&&e.grandparent.type!=="JSXAttribute",nt=Lc(e),Xe=Nc(u,p),P=s&&et(e,t),G=N?t.useTabs?" ":" ".repeat(t.tabWidth-1):"",se=Ic(D,d,c,t)||S||b,Se=!x&&!y&&!s&&(R?d.type==="NullLiteral"||d.type==="Literal"&&d.value===null:Un(d,t)&&lr(u.test,3)),Re=x||g||s&&!y||y&&a&&lr(u.test,1)||Se,ar=[];!S&&C(d,h.Dangling)&&e.call(de=>{ar.push(_(de,t),E)},"consequent");let Ct=[];C(u.test,h.Dangling)&&e.call(de=>{Ct.push(_(de,t))},"test"),!b&&C(c,h.Dangling)&&e.call(de=>{Ct.push(_(de,t))},"alternate"),C(u,h.Dangling)&&Ct.push(_(e,t));let sr=Symbol("test"),Wa=Symbol("consequent"),Mt=Symbol("test-and-consequent"),Ga=a?[gn(n("test")),u.test.type==="ConditionalExpression"?he:""]:[n("checkType")," ","extends"," ",u.extendsType.type==="TSConditionalType"||u.extendsType.type==="ConditionalTypeAnnotation"||u.extendsType.type==="TSMappedType"?n("extendsType"):m(gn(n("extendsType")))],or=m([Ga," ?"],{id:sr}),Va=n(o),Ot=A([S||R&&(K(d)||y||x)?E:T,ar,Va]),Ka=Re?m([or,x?Ot:w(Ot,m(Ot,{id:Wa}),{groupId:sr})],{id:Mt}):[or,Ot],pn=n(i),ir=Se?w(pn,au(gn(pn)),{groupId:Mt}):pn,Tt=[Ka,Ct.length>0?[A([E,Ct]),E]:b?E:Se?w(T," ",{groupId:Mt}):T,":",b?" ":N?Re?w(G,w(x||Se?" ":G," "),{groupId:Mt}):w(G," "):" ",b?ir:m([A(ir),R&&!Se?f:""]),Xe&&!nt?f:"",se?he:""];return J&&!se?m(A([f,m(Tt)])):J||V?m(A(Tt)):nt||s&&F?m([A([f,Tt]),P?f:""]):p===k?m(Tt):Tt}function Mc(e,t,n,r){let{node:u}=e;if(_n(u))return Ec(e,t);let a=t.semi?";":"",s=[];switch(u.type){case"JsExpressionRoot":return n("node");case"JsonRoot":return[n("node"),E];case"File":return fc(e,t,n)??n("program");case"EmptyStatement":return"";case"ExpressionStatement":return mc(e,t,n);case"ChainExpression":return n("expression");case"ParenthesizedExpression":return!C(u.expression)&&(Fe(u.expression)||Q(u.expression))?["(",n("expression"),")"]:m(["(",A([f,n("expression")]),f,")"]);case"AssignmentExpression":return il(e,t,n);case"VariableDeclarator":return pl(e,t,n);case"BinaryExpression":case"LogicalExpression":return Iu(e,t,n);case"AssignmentPattern":return[n("left")," = ",n("right")];case"OptionalMemberExpression":case"MemberExpression":return al(e,t,n);case"MetaProperty":return[n("meta"),".",n("property")];case"BindExpression":return u.object&&s.push(n("object")),s.push(m(A([f,sa(e,t,n)]))),s;case"Identifier":return[u.name,ne(e),aa(e),z(e,n)];case"V8IntrinsicIdentifier":return["%",u.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadPropertyPattern":case"RestElement":return oa(e,n);case"FunctionDeclaration":case"FunctionExpression":return ca(e,n,t,r);case"ArrowFunctionExpression":return Gl(e,t,n,r);case"YieldExpression":return s.push("yield"),u.delegate&&s.push("*"),u.argument&&s.push(" ",n("argument")),s;case"AwaitExpression":if(s.push("await"),u.argument){s.push(" ",n("argument"));let{parent:o}=e;if(L(o)&&o.callee===u||W(o)&&o.object===u){s=[A([f,...s]),f];let i=e.findAncestor(l=>l.type==="AwaitExpression"||l.type==="BlockStatement");if((i==null?void 0:i.type)!=="AwaitExpression"||!ee(i.argument,l=>l===u))return m(s)}}return s;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return Na(e,t,n);case"ImportDeclaration":return gc(e,t,n);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return Sc(e,t,n);case"ImportAttribute":return fn(e,t,n);case"Program":case"BlockStatement":case"StaticBlock":return fa(e,t,n);case"ClassBody":return pc(e,t,n);case"ThrowStatement":return Ul(e,t,n);case"ReturnStatement":return $l(e,t,n);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return Xu(e,t,n);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return on(e,t,n);case"Property":return tn(u)?In(e,t,n):fn(e,t,n);case"ObjectProperty":return fn(e,t,n);case"ObjectMethod":return In(e,t,n);case"Decorator":return["@",n("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return er(e,t,n);case"SequenceExpression":{let{parent:o}=e;if(o.type==="ExpressionStatement"||o.type==="ForStatement"){let i=[];return e.each(({isFirst:l})=>{l?i.push(n()):i.push(",",A([T,n()]))},"expressions"),m(i)}return m(I([",",T],e.map(n,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[n("value"),a];case"UnaryExpression":return s.push(u.operator),/[a-z]$/u.test(u.operator)&&s.push(" "),C(u.argument)?s.push(m(["(",A([f,n("argument")]),f,")"])):s.push(n("argument")),s;case"UpdateExpression":return[u.prefix?u.operator:"",n("argument"),u.prefix?"":u.operator];case"ConditionalExpression":return ur(e,t,n,r);case"VariableDeclaration":{let o=e.map(n,"declarations"),i=e.parent,l=i.type==="ForStatement"||i.type==="ForInStatement"||i.type==="ForOfStatement",d=u.declarations.some(D=>D.init),c;return o.length===1&&!C(u.declarations[0])?c=o[0]:o.length>0&&(c=A(o[0])),s=[ae(e),u.kind,c?[" ",c]:"",A(o.slice(1).map(D=>[",",d&&!l?E:T,D]))],l&&i.body!==u||s.push(a),m(s)}case"WithStatement":return m(["with (",n("object"),")",Ie(u.body,n("body"))]);case"IfStatement":{let o=Ie(u.consequent,n("consequent")),i=m(["if (",m([A([f,n("test")]),f]),")",o]);if(s.push(i),u.alternate){let l=C(u.consequent,h.Trailing|h.Line)||Yr(u),d=u.consequent.type==="BlockStatement"&&!l;s.push(d?" ":E),C(u,h.Dangling)&&s.push(_(e,t),l?E:" "),s.push("else",m(Ie(u.alternate,n("alternate"),u.alternate.type==="IfStatement")))}return s}case"ForStatement":{let o=Ie(u.body,n("body")),i=_(e,t),l=i?[i,f]:"";return!u.init&&!u.test&&!u.update?[l,m(["for (;;)",o])]:[l,m(["for (",m([A([f,n("init"),";",T,n("test"),";",T,n("update")]),f]),")",o])]}case"WhileStatement":return m(["while (",m([A([f,n("test")]),f]),")",Ie(u.body,n("body"))]);case"ForInStatement":return m(["for (",n("left")," in ",n("right"),")",Ie(u.body,n("body"))]);case"ForOfStatement":return m(["for",u.await?" await":""," (",n("left")," of ",n("right"),")",Ie(u.body,n("body"))]);case"DoWhileStatement":{let o=Ie(u.body,n("body"));return s=[m(["do",o])],u.body.type==="BlockStatement"?s.push(" "):s.push(E),s.push("while (",m([A([f,n("test")]),f]),")",a),s}case"DoExpression":return[u.async?"async ":"","do ",n("body")];case"BreakStatement":case"ContinueStatement":return s.push(u.type==="BreakStatement"?"break":"continue"),u.label&&s.push(" ",n("label")),s.push(a),s;case"LabeledStatement":return u.body.type==="EmptyStatement"?[n("label"),":;"]:[n("label"),": ",n("body")];case"TryStatement":return["try ",n("block"),u.handler?[" ",n("handler")]:"",u.finalizer?[" finally ",n("finalizer")]:""];case"CatchClause":if(u.param){let o=C(u.param,l=>!De(l)||l.leading&&oe(t.originalText,j(l))||l.trailing&&oe(t.originalText,U(l),{backwards:!0})),i=n("param");return["catch ",o?["(",A([f,i]),f,") "]:["(",i,") "],n("body")]}return["catch ",n("body")];case"SwitchStatement":return[m(["switch (",A([f,n("discriminant")]),f,")"])," {",u.cases.length>0?A([E,I(E,e.map(({node:o,isLast:i})=>[n(),!i&&Pe(o,t)?E:""],"cases"))]):"",E,"}"];case"SwitchCase":{u.test?s.push("case ",n("test"),":"):s.push("default:"),C(u,h.Dangling)&&s.push(" ",_(e,t));let o=u.consequent.filter(i=>i.type!=="EmptyStatement");if(o.length>0){let i=jn(e,t,n,"consequent");s.push(o.length===1&&o[0].type==="BlockStatement"?[" ",i]:A([E,i]))}return s}case"DebuggerStatement":return["debugger",a];case"ClassDeclaration":case"ClassExpression":return xa(e,t,n);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return ha(e,t,n);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return Sa(e,t,n);case"TemplateElement":return Ge(u.value.raw);case"TemplateLiteral":return Tu(e,n,t);case"TaggedTemplateExpression":return Fi(e,n);case"PrivateIdentifier":return["#",u.name];case"PrivateName":return["#",n("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",n("body")];case"InterpreterDirective":default:throw new gt(u,"ESTree")}}function Ja(e,t,n){let{parent:r,node:u,key:a}=e,s=[n("expression")];switch(u.type){case"AsConstExpression":s.push(" as const");break;case"AsExpression":case"TSAsExpression":s.push(" as ",n("typeAnnotation"));break;case"SatisfiesExpression":case"TSSatisfiesExpression":s.push(" satisfies ",n("typeAnnotation"));break}return a==="callee"&&L(r)||a==="object"&&W(r)?m([A([f,...s]),f]):s}function Oc(e,t,n){let{node:r}=e,u=[ae(e),"component"];r.id&&u.push(" ",n("id")),u.push(n("typeParameters"));let a=Jc(e,n,t);return r.rendersType?u.push(m([a," ",n("rendersType")])):u.push(m([a])),r.body&&u.push(" ",n("body")),t.semi&&r.type==="DeclareComponent"&&u.push(";"),u}function Jc(e,t,n){let{node:r}=e,u=r.params;if(r.rest&&(u=[...u,r.rest]),u.length===0)return["(",_(e,n,{filter:s=>Ae(n.originalText,j(s))===")"}),")"];let a=[];return Xc(e,(s,o)=>{let i=o===u.length-1;i&&r.rest&&a.push("..."),a.push(t()),!i&&(a.push(","),Pe(u[o],n)?a.push(E,E):a.push(T))}),["(",A([f,...a]),w(ke(n,"all")&&!qc(r,u)?",":""),f,")"]}function qc(e,t){var n;return e.rest||((n=M(!1,t,-1))==null?void 0:n.type)==="RestElement"}function Xc(e,t){let{node:n}=e,r=0,u=a=>t(a,r++);e.each(u,"params"),n.rest&&e.call(u,"rest")}function Rc(e,t,n){let{node:r}=e;return r.shorthand?n("local"):[n("name")," as ",n("local")]}function _c(e,t,n){let{node:r}=e,u=[];return r.name&&u.push(n("name"),r.optional?"?: ":": "),u.push(n("typeAnnotation")),u}function qa(e,t,n){return on(e,n,t)}function Xa(e,t){let{node:n}=e,r=t("id");n.computed&&(r=["[",r,"]"]);let u="";return n.initializer&&(u=t("initializer")),n.init&&(u=t("init")),u?[r," = ",u]:r}function $c(e,t,n){let{node:r}=e,u;if(r.type==="EnumSymbolBody"||r.explicitType)switch(r.type){case"EnumBooleanBody":u="boolean";break;case"EnumNumberBody":u="number";break;case"EnumBigIntBody":u="bigint";break;case"EnumStringBody":u="string";break;case"EnumSymbolBody":u="symbol";break}return[u?`of ${u} `:"",qa(e,t,n)]}function Ra(e,t,n){let{node:r}=e;return[ae(e),r.const?"const ":"","enum ",t("id")," ",r.type==="TSEnumDeclaration"?qa(e,t,n):t("body")]}function Uc(e,t,n){let{node:r}=e,u=["hook"];r.id&&u.push(" ",n("id"));let a=tt(e,n,t,!1,!0),s=sn(e,n),o=xt(r,s);return u.push(m([o?m(a):a,s]),r.body?" ":"",n("body")),u}function Wc(e,t,n){let{node:r}=e,u=[ae(e),"hook"];return r.id&&u.push(" ",n("id")),t.semi&&u.push(";"),u}function Ir(e){var t;let{node:n}=e;return n.type==="HookTypeAnnotation"&&((t=e.getParentNode(2))==null?void 0:t.type)==="DeclareHook"}function Gc(e,t,n){let{node:r}=e,u=[];u.push(Ir(e)?"":"hook ");let a=tt(e,n,t,!1,!0),s=[];return s.push(Ir(e)?": ":" => ",n("returnType")),xt(r,s)&&(a=m(a)),u.push(a,s),m(u)}function _a(e,t,n){let{node:r}=e,u=[ae(e),"interface"],a=[],s=[];r.type!=="InterfaceTypeAnnotation"&&a.push(" ",n("id"),n("typeParameters"));let o=r.typeParameters&&!C(r.typeParameters,h.Trailing|h.Line);return O(r.extends)&&s.push(o?w(" ",T,{groupId:nr(r.typeParameters)}):T,"extends ",(r.extends.length===1?Zs:A)(I([",",T],e.map(n,"extends")))),C(r.id,h.Trailing)||O(r.extends)?o?u.push(m([...a,A(s)])):u.push(m(A([...a,...s]))):u.push(...a,...s),u.push(" ",n("body")),m(u)}function Vc(e,t,n){let{node:r}=e;if($r(r))return r.type.slice(0,-14).toLowerCase();let u=t.semi?";":"";switch(r.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return Oc(e,t,n);case"ComponentParameter":return Rc(e,t,n);case"ComponentTypeParameter":return _c(e,t,n);case"HookDeclaration":return Uc(e,t,n);case"DeclareHook":return Wc(e,t,n);case"HookTypeAnnotation":return Gc(e,t,n);case"DeclareClass":return xa(e,t,n);case"DeclareFunction":return[ae(e),"function ",n("id"),n("predicate"),u];case"DeclareModule":return["declare module ",n("id")," ",n("body")];case"DeclareModuleExports":return["declare module.exports",z(e,n),u];case"DeclareNamespace":return["declare namespace ",n("id")," ",n("body")];case"DeclareVariable":return[ae(e),r.kind??"var"," ",n("id"),u];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return Na(e,t,n);case"DeclareOpaqueType":case"OpaqueType":return vl(e,t,n);case"DeclareTypeAlias":case"TypeAlias":return Gu(e,t,n);case"IntersectionTypeAnnotation":return Vu(e,t,n);case"UnionTypeAnnotation":return Ku(e,t,n);case"ConditionalTypeAnnotation":return ur(e,t,n);case"InferTypeAnnotation":return Qu(e,t,n);case"FunctionTypeAnnotation":return Hu(e,t,n);case"TupleTypeAnnotation":return er(e,t,n);case"TupleTypeLabeledElement":return Zu(e,t,n);case"TupleTypeSpreadElement":return Yu(e,t,n);case"GenericTypeAnnotation":return[n("id"),vt(e,t,n,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return zu(e,t,n);case"TypeAnnotation":return ta(e,t,n);case"TypeParameter":return Aa(e,t,n);case"TypeofTypeAnnotation":return ra(e,n);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return na(n);case"DeclareEnum":case"EnumDeclaration":return Ra(e,n,t);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return $c(e,n,t);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return Xa(e,n);case"FunctionTypeParam":{let a=r.name?n("name"):e.parent.this===r?"this":"";return[a,ne(e),a?": ":"",n("typeAnnotation")]}case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return _a(e,t,n);case"ClassImplements":case"InterfaceExtends":return[n("id"),n("typeParameters")];case"NullableTypeAnnotation":return["?",n("typeAnnotation")];case"Variance":{let{kind:a}=r;return Xn.ok(a==="plus"||a==="minus"),a==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",n("argument")];case"ObjectTypeCallProperty":return[r.static?"static ":"",n("value")];case"ObjectTypeMappedTypeProperty":return nc(e,t,n);case"ObjectTypeIndexer":return[r.static?"static ":"",r.variance?n("variance"):"","[",n("id"),r.id?": ":"",n("key"),"]: ",n("value")];case"ObjectTypeProperty":{let a="";return r.proto?a="proto ":r.static&&(a="static "),[a,r.kind!=="init"?r.kind+" ":"",r.variance?n("variance"):"",Lt(e,t,n),ne(e),tn(r)?"":": ",n("value")]}case"ObjectTypeAnnotation":return on(e,t,n);case"ObjectTypeInternalSlot":return[r.static?"static ":"","[[",n("id"),"]]",ne(e),r.method?"":": ",n("value")];case"ObjectTypeSpreadProperty":return oa(e,n);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[n("qualification"),".",n("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(r.value);case"StringLiteralTypeAnnotation":return Ge(lt(pe(r),t));case"NumberLiteralTypeAnnotation":return Dt(r.raw??r.extra.raw);case"BigIntLiteralTypeAnnotation":return Ln(r.raw??r.extra.raw);case"TypeCastExpression":return["(",n("expression"),z(e,n),")"];case"TypePredicate":return ua(e,n);case"TypeOperator":return[r.operator," ",n("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return vt(e,t,n,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...r.type==="DeclaredPredicate"?["(",n("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return Ja(e,t,n)}}function Kc(e,t,n){var r;let{node:u}=e;if(!u.type.startsWith("TS"))return;if(Ur(u))return u.type.slice(2,-7).toLowerCase();let a=t.semi?";":"",s=[];switch(u.type){case"TSThisType":return"this";case"TSTypeAssertion":{let o=!(Q(u.expression)||Fe(u.expression)),i=m(["<",A([f,n("typeAnnotation")]),f,">"]),l=[w("("),A([f,n("expression")]),f,w(")")];return o?$e([[i,n("expression")],[i,m(l,{shouldBreak:!0})],[i,n("expression")]]):m([i,n("expression")])}case"TSDeclareFunction":return ca(e,n,t);case"TSExportAssignment":return["export = ",n("expression"),a];case"TSModuleBlock":return fa(e,t,n);case"TSInterfaceBody":case"TSTypeLiteral":return on(e,t,n);case"TSTypeAliasDeclaration":return Gu(e,t,n);case"TSQualifiedName":return[n("left"),".",n("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return ha(e,t,n);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return Sa(e,t,n);case"TSInterfaceHeritage":case"TSClassImplements":case"TSExpressionWithTypeArguments":case"TSInstantiationExpression":return[n("expression"),n(u.typeArguments?"typeArguments":"typeParameters")];case"TSTemplateLiteralType":return Tu(e,n,t);case"TSNamedTupleMember":return Zu(e,t,n);case"TSRestType":return Yu(e,t,n);case"TSOptionalType":return[n("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return _a(e,t,n);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return vt(e,t,n,"params");case"TSTypeParameter":return Aa(e,t,n);case"TSAsExpression":case"TSSatisfiesExpression":return Ja(e,t,n);case"TSArrayType":return na(n);case"TSPropertySignature":return[u.readonly?"readonly ":"",Lt(e,t,n),ne(e),z(e,n)];case"TSParameterProperty":return[Yt(u),u.static?"static ":"",u.override?"override ":"",u.readonly?"readonly ":"",n("parameter")];case"TSTypeQuery":return ra(e,n);case"TSIndexSignature":{let o=u.parameters.length>1?w(ke(t)?",":""):"",i=m([A([f,I([", ",f],e.map(n,"parameters"))]),o,f]),l=e.parent.type==="ClassBody"&&e.key==="body";return[l&&u.static?"static ":"",u.readonly?"readonly ":"","[",u.parameters?i:"","]",z(e,n),l?a:""]}case"TSTypePredicate":return ua(e,n);case"TSNonNullExpression":return[n("expression"),"!"];case"TSImportType":return[u.isTypeOf?"typeof ":"","import(",n("argument"),")",u.qualifier?[".",n("qualifier")]:"",vt(e,t,n,u.typeArguments?"typeArguments":"typeParameters")];case"TSLiteralType":return n("literal");case"TSIndexedAccessType":return zu(e,t,n);case"TSTypeOperator":return[u.operator," ",n("typeAnnotation")];case"TSMappedType":return rc(e,t,n);case"TSMethodSignature":{let o=u.kind&&u.kind!=="method"?`${u.kind} `:"";s.push(Yt(u),o,u.computed?"[":"",n("key"),u.computed?"]":"",ne(e));let i=tt(e,n,t,!1,!0),l=u.returnType?"returnType":"typeAnnotation",d=u[l],c=d?z(e,n,l):"",D=xt(u,c);return s.push(D?m(i):i),d&&s.push(m(c)),m(s)}case"TSNamespaceExportDeclaration":return["export as namespace ",n("id"),t.semi?";":""];case"TSEnumDeclaration":return Ra(e,n,t);case"TSEnumMember":return Xa(e,n);case"TSImportEqualsDeclaration":return[u.isExport?"export ":"","import ",Ia(u,!1),n("id")," = ",n("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return["require(",n("expression"),")"];case"TSModuleDeclaration":{let{parent:o}=e,i=o.type==="TSModuleDeclaration",l=((r=u.body)==null?void 0:r.type)==="TSModuleDeclaration";return i?s.push("."):(s.push(ae(e)),u.kind!=="global"&&s.push(u.kind," ")),s.push(n("id")),l?s.push(n("body")):u.body?s.push(" ",m(n("body"))):s.push(a),s}case"TSConditionalType":return ur(e,t,n);case"TSInferType":return Qu(e,t,n);case"TSIntersectionType":return Vu(e,t,n);case"TSUnionType":return Ku(e,t,n);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return Hu(e,t,n);case"TSTupleType":return er(e,t,n);case"TSTypeReference":return[n("typeName"),vt(e,t,n,u.typeArguments?"typeArguments":"typeParameters")];case"TSTypeAnnotation":return ta(e,t,n);case"TSEmptyBodyFunctionExpression":return tr(e,t,n);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return kr(e,n,"?");case"TSJSDocNonNullableType":return kr(e,n,"!");case"TSParenthesizedType":default:throw new gt(u,"TypeScript")}}function Hc(e,t,n,r){if(Nu(e))return lp(e,t);for(let u of[Vp,Xp,Vc,Kc,Mc]){let a=u(e,t,n,r);if(a!==void 0)return a}}var zc=X(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function Qc(e,t,n,r){var u;e.isRoot&&((u=t.__onHtmlBindingRoot)==null||u.call(t,e.node,t));let a=Hc(e,t,n,r);if(!a)return"";let{node:s}=e;if(zc(s))return a;let o=O(s.decorators),i=Qp(e,t,n),l=s.type==="ClassExpression";if(o&&!l)return hn(a,D=>m([i,D]));let d=et(e,t),c=dc(e,t);return!i&&!d&&!c?a:hn(a,D=>[c?";":"",d?"(":"",d&&l&&o?[A([T,i,D]),T]:[i,D],d?")":""])}var Yc=Qc,Zc={avoidAstMutation:!0},eD=[{linguistLanguageId:174,name:"JSON.stringify",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"]},{linguistLanguageId:174,name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","flake.lock","mcmod.info",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["json"]},{linguistLanguageId:423,name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],parsers:["jsonc"],vscodeLanguageIds:["jsonc"]},{linguistLanguageId:175,name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"]}],$a={};Zt($a,{getVisitorKeys:()=>uD,massageAstNode:()=>Ua,print:()=>aD});var tD={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:[],BooleanLiteral:[],StringLiteral:[],NumericLiteral:[],Identifier:[],TemplateLiteral:["quasis"],TemplateElement:[]},nD=tD,rD=Rr(nD),uD=rD;function aD(e,t,n){let{node:r}=e;switch(r.type){case"JsonRoot":return[n("node"),E];case"ArrayExpression":{if(r.elements.length===0)return"[]";let u=e.map(()=>e.node===null?"null":n(),"elements");return["[",A([E,I([",",E],u)]),E,"]"]}case"ObjectExpression":return r.properties.length===0?"{}":["{",A([E,I([",",E],e.map(n,"properties"))]),E,"}"];case"ObjectProperty":return[n("key"),": ",n("value")];case"UnaryExpression":return[r.operator==="+"?"":r.operator,n("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return r.value?"true":"false";case"StringLiteral":return JSON.stringify(r.value);case"NumericLiteral":return jr(e)?JSON.stringify(String(r.value)):JSON.stringify(r.value);case"Identifier":return jr(e)?JSON.stringify(r.name):r.name;case"TemplateLiteral":return n(["quasis",0]);case"TemplateElement":return JSON.stringify(r.value.cooked);default:throw new gt(r,"JSON")}}function jr(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var sD=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function Ua(e,t){let{type:n}=e;if(n==="ObjectProperty"){let{key:r}=e;r.type==="Identifier"?t.key={type:"StringLiteral",value:r.name}:r.type==="NumericLiteral"&&(t.key={type:"StringLiteral",value:String(r.value)});return}if(n==="UnaryExpression"&&e.operator==="+")return t.argument;if(n==="ArrayExpression"){for(let[r,u]of e.elements.entries())u===null&&t.elements.splice(r,0,{type:"NullLiteral"});return}if(n==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}Ua.ignoredProperties=sD;var Ut={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},_e="JavaScript",oD={arrowParens:{category:_e,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:Ut.bracketSameLine,bracketSpacing:Ut.bracketSpacing,jsxBracketSameLine:{category:_e,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:_e,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalTernaries:{category:_e,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:Ut.singleQuote,jsxSingleQuote:{category:_e,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:_e,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:_e,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:Ut.singleAttributePerLine},iD=oD,pD={estree:Jr,"estree-json":$a},lD=[...es,...eD],DD=Or;export{DD as default,lD as languages,iD as options,pD as printers}; diff --git a/playground/assets/index-5ps_llgo.js b/playground/assets/index-5ps_llgo.js new file mode 100644 index 0000000..c016edc --- /dev/null +++ b/playground/assets/index-5ps_llgo.js @@ -0,0 +1,2 @@ +import{A as J,L as K}from"./index-D15XeWB2.js";import{b as Q}from"./index-CJAFAeH3.js";import{L as B}from"./__vite-browser-external-D80GqXp3.js";import{R as A}from"./remoteFile-_ulnNXZo.js";import{u as z,L as H,a as Z}from"./long-eu6Hf4GH.js";import"./_commonjsHelpers-C932wzq6.js";function j(o){if(o.greaterThan(Number.MAX_SAFE_INTEGER)||o.lessThan(Number.MIN_SAFE_INTEGER))throw new Error("integer overflow");return o.toNumber()}class ee extends Error{}function L(o){if(o&&o.aborted){if(typeof DOMException<"u")throw new DOMException("aborted","AbortError");{const e=new ee("aborted");throw e.code="ERR_ABORTED",e}}}function te(o,e){return e.minv.blockPosition-o.maxv.blockPosition<65e3&&e.maxv.blockPosition-o.minv.blockPosition<5e6}function X(o,e){const t=[];let n=null;return o.length===0?o:(o.sort(function(i,a){const r=i.minv.blockPosition-a.minv.blockPosition;return r!==0?r:i.minv.dataPosition-a.minv.dataPosition}),o.forEach(i=>{(!e||i.maxv.compareTo(e)>0)&&(n===null?(t.push(i),n=i):te(n,i)?i.maxv.compareTo(n.maxv)>0&&(n.maxv=i.maxv):(t.push(i),n=i))}),t)}class V{constructor(e,t){this.blockPosition=e,this.dataPosition=t}toString(){return`${this.blockPosition}:${this.dataPosition}`}compareTo(e){return this.blockPosition-e.blockPosition||this.dataPosition-e.dataPosition}}function T(o,e=0,t=!1){if(t)throw new Error("big-endian virtual file offsets not implemented");return new V(o[e+7]*1099511627776+o[e+6]*4294967296+o[e+5]*16777216+o[e+4]*65536+o[e+3]*256+o[e+2],o[e+1]<<8|o[e])}class D{constructor(e,t,n,i=void 0){this.minv=e,this.maxv=t,this.bin=n,this._fetchedSize=i}toUniqueString(){return`${this.minv}..${this.maxv} (bin ${this.bin}, fetchedSize ${this.fetchedSize()})`}toString(){return this.toUniqueString()}compareTo(e){return this.minv.compareTo(e.minv)||this.maxv.compareTo(e.maxv)||this.bin-e.bin}fetchedSize(){return this._fetchedSize!==void 0?this._fetchedSize:this.maxv.blockPosition+65536-this.minv.blockPosition}}class W{constructor({filehandle:e,renameRefSeqs:t=n=>n}){this.filehandle=e,this.renameRefSeq=t}async getMetadata(e={}){const{indices:t,...n}=await this.parse(e);return n}_findFirstData(e,t){return e?e.compareTo(t)>0?t:e:t}async parse(e={}){return this.parseP||(this.parseP=this._parse(e).catch(t=>{throw this.parseP=void 0,t})),this.parseP}async hasRefSeq(e,t={}){var n;return!!(!((n=(await this.parse(t)).indices[e])===null||n===void 0)&&n.binIndex)}}const ne=21578324,U=14;function ie(o,e){return o+=1,e-=1,[[0,0],[1+(o>>26),1+(e>>26)],[9+(o>>23),9+(e>>23)],[73+(o>>20),73+(e>>20)],[585+(o>>17),585+(e>>17)],[4681+(o>>14),4681+(e>>14)]]}class k extends W{async lineCount(e,t={}){const n=await this.parse(t),i=n.refNameToId[e];if(i===void 0||!n.indices[i])return-1;const{stats:r}=n.indices[i];return r?r.lineCount:-1}async _parse(e={}){const t=await this.filehandle.readFile(e),n=await z(t);if(L(e.signal),n.readUInt32LE(0)!==ne)throw new Error("Not a TBI file");const i=n.readInt32LE(4),a=n.readInt32LE(8),r=a&65536?"zero-based-half-open":"1-based-closed",d={0:"generic",1:"SAM",2:"VCF"}[a&15];if(!d)throw new Error(`invalid Tabix preset format flags ${a}`);const l={ref:n.readInt32LE(12),start:n.readInt32LE(16),end:n.readInt32LE(20)},u=n.readInt32LE(24),c=5,f=((1<<(c+1)*3)-1)/7,I=2**(14+c*3),w=u?String.fromCharCode(u):null,m=n.readInt32LE(28),b=n.readInt32LE(32),{refNameToId:p,refIdToName:x}=this._parseNameBytes(n.slice(36,36+b));let h=36+b,g;return{indices:new Array(i).fill(0).map(()=>{const y=n.readInt32LE(h);h+=4;const S={};let v;for(let C=0;C f+1)throw new Error("tabix index contains too many bins, please use a CSI index");if(_===f+1){const N=n.readInt32LE(h);h+=4,N===2&&(v=this.parsePseudoBin(n,h)),h+=16*N}else{const N=n.readInt32LE(h);h+=4;const O=new Array(N);for(let F=0;F >U>=s.linearIndex.length?s.linearIndex.length-1:t>>U]:new V(0,0))||console.warn("querying outside of possible tabix range");const l=ie(t,n),u=[];for(const[m,b]of l)for(let p=m;p<=b;p++)if(s.binIndex[p])for(const x of s.binIndex[p])u.push(new D(x.minv,x.maxv,p));const c=s.linearIndex.length;let f=null;const I=Math.min(t>>14,c-1),w=Math.min(n>>14,c-1);for(let m=I;m<=w;++m){const b=s.linearIndex[m];b&&(!f||b.compareTo(f)<0)&&(f=b)}return X(u,f)}}const re=21582659,se=38359875;function ae(o,e){return o*2**e}function G(o,e){return Math.floor(o/2**e)}class M extends W{constructor(e){super(e),this.maxBinNumber=0,this.depth=0,this.minShift=0}async lineCount(e,t={}){const n=await this.parse(t),i=n.refNameToId[e];if(i===void 0||!n.indices[i])return-1;const{stats:r}=n.indices[i];return r?r.lineCount:-1}indexCov(){throw new Error("CSI indexes do not support indexcov")}parseAuxData(e,t){const n=e.readInt32LE(t),i=n&65536?"zero-based-half-open":"1-based-closed",a={0:"generic",1:"SAM",2:"VCF"}[n&15];if(!a)throw new Error(`invalid Tabix preset format flags ${n}`);const r={ref:e.readInt32LE(t+4),start:e.readInt32LE(t+8),end:e.readInt32LE(t+12)},s=e.readInt32LE(t+16),d=s?String.fromCharCode(s):null,l=e.readInt32LE(t+20),u=e.readInt32LE(t+24),{refIdToName:c,refNameToId:f}=this._parseNameBytes(e.slice(t+28,t+28+u));return{refIdToName:c,refNameToId:f,skipLines:l,metaChar:d,columnNumbers:r,format:a,coordinateType:i}}_parseNameBytes(e){let t=0,n=0;const i=[],a={};for(let r=0;r =30?this.parseAuxData(t,16):{refIdToName:[],refNameToId:{},metaChar:null,columnNumbers:{ref:0,start:1,end:2},coordinateType:"zero-based-half-open",format:"generic"},s=t.readInt32LE(16+a);let d,l=16+a+4;const u=new Array(s).fill(0).map(()=>{const c=t.readInt32LE(l);l+=4;const f={};let I;for(let w=0;w this.maxBinNumber)I=this.parsePseudoBin(t,l+4),l+=48;else{const b=T(t,l+4);d=this._findFirstData(d,b);const p=t.readInt32LE(l+12);l+=16;const x=new Array(p);for(let h=0;h 2**50&&(t=2**34),t-=1;let n=0,i=0,a=this.minShift+this.depth*3;const r=[];for(;n<=this.depth;a-=3,i+=ae(1,n*3),n+=1){const s=i+G(e,a),d=i+G(t,a);if(d-s+r.length>this.maxBinNumber)throw new Error(`query ${e}-${t} is too large for current binning scheme (shift ${this.minShift}, depth ${this.depth}), try a smaller query or a coarser index binning scheme`);r.push([s,d])}return r}}const $=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function oe(o){return new Promise(e=>setTimeout(e,o))}class me{constructor({path:e,filehandle:t,url:n,tbiPath:i,tbiUrl:a,tbiFilehandle:r,csiPath:s,csiUrl:d,csiFilehandle:l,yieldTime:u=500,renameRefSeqs:c=I=>I,chunkCacheSize:f=5*2**20}){if(t)this.filehandle=t;else if(e)this.filehandle=new B(e);else if(n)this.filehandle=new A(n);else throw new TypeError("must provide either filehandle or path");if(r)this.index=new k({filehandle:r,renameRefSeqs:c});else if(l)this.index=new M({filehandle:l,renameRefSeqs:c});else if(i)this.index=new k({filehandle:new B(i),renameRefSeqs:c});else if(s)this.index=new M({filehandle:new B(s),renameRefSeqs:c});else if(e)this.index=new k({filehandle:new B(`${e}.tbi`),renameRefSeqs:c});else if(d)this.index=new M({filehandle:new A(d)});else if(a)this.index=new k({filehandle:new A(a)});else if(n)this.index=new k({filehandle:new A(`${n}.tbi`)});else throw new TypeError("must provide one of tbiFilehandle, tbiPath, csiFilehandle, csiPath, tbiUrl, csiUrl");this.renameRefSeq=c,this.yieldTime=u,this.chunkCache=new J({cache:new K({maxSize:Math.floor(f/65536)}),fill:(I,w)=>this.readChunk(I,{signal:w})})}async getLines(e,t,n,i){var a;let r,s={},d;typeof i=="function"?d=i:(s=i,d=i.lineCallback,r=i.signal);const l=await this.index.getMetadata(s);L(r);const u=t??0,c=n??l.maxRefLength;if(!(u<=c))throw new TypeError("invalid start and end coordinates. start must be less than or equal to end");if(u===c)return;const f=await this.index.blocksForRange(e,u,c,s);L(r);let I=Date.now();for(const w of f){let m;const{buffer:b,cpositions:p,dpositions:x}=await this.chunkCache.get(w.toString(),w,r);L(r);let h=0,g=0;for(;h
=x[g++];);g--}const{startCoordinate:v,overlaps:P}=this.checkLine(l,e,u,c,S);if(m!==void 0&&v!==void 0&&m>v)throw new Error(`Lines not sorted by start coordinate (${m} > ${v}), this file is not usable with Tabix.`);if(m=v,P)d(S.trim(),p[g]*256+(h-x[g])+w.minv.dataPosition+1);else if(v!==void 0&&v>=c)return;this.yieldTime&&I-Date.now()>this.yieldTime&&(I=Date.now(),L(r),await oe(1)),h=E+1}}}async getMetadata(e={}){return this.index.getMetadata(e)}async getHeaderBuffer(e={}){const{firstDataLine:t,metaChar:n,maxBlockSize:i}=await this.getMetadata(e);L(e.signal);const a=((t==null?void 0:t.blockPosition)||0)+i,r=await this._readRegion(0,a,e),s=await z(r);if(n){let d=-1;const l=10,u=n.charCodeAt(0);for(let c=0;c =i)return{startCoordinate:p,overlaps:!1};if((f===0||f===c)&&p+1<=n)return{startCoordinate:p,overlaps:!1}}else if(l==="VCF"&&w===4)b=a.slice(m,x);else if(w===f&&(l==="VCF"?this._getVcfEnd(p,b,a.slice(m,x)):parseInt(a.slice(m,x),10))<=n)return{overlaps:!1};if(m=x+1,w+=1,w>I)break}return{startCoordinate:p,overlaps:!0}}_getVcfEnd(e,t,n){let i=e+t.length;const a=n.includes("SVTYPE=TRA");if(n[0]!=="."&&!a){let r=";";for(let s=0;s i.map(i=>d[i]); -var XY=Object.defineProperty;var r5=n=>{throw TypeError(n)};var QY=(n,e,t)=>e in n?XY(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var zi=(n,e,t)=>QY(n,typeof e!="symbol"?e+"":e,t),hk=(n,e,t)=>e.has(n)||r5("Cannot "+t);var X=(n,e,t)=>(hk(n,e,"read from private field"),t?t.call(n):e.get(n)),Oe=(n,e,t)=>e.has(n)?r5("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),ut=(n,e,t,i)=>(hk(n,e,"write to private field"),i?i.call(n,t):e.set(n,t),t),Le=(n,e,t)=>(hk(n,e,"access private method"),t);var a5=(n,e,t,i)=>({set _(s){ut(n,e,s,t)},get _(){return X(n,e,i)}});(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&i(r)}).observe(document,{childList:!0,subtree:!0});function t(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(s){if(s.ep)return;s.ep=!0;const o=t(s);fetch(s.href,o)}})();/** +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-CJAFAeH3.js","./_commonjsHelpers-C932wzq6.js","./index-ClLbYkVu.js","./__vite-browser-external-D80GqXp3.js","./long-eu6Hf4GH.js","./index-C8ZlFX0-.js","./remoteFile-_ulnNXZo.js","./index-BoBOlxMr.js","./index-D15XeWB2.js","./index-CRu-ZoZD.js","./index-N9VUB_9p.js","./index-5ps_llgo.js","./index-bwxybPiq.js"])))=>i.map(i=>d[i]); +var QY=Object.defineProperty;var n5=n=>{throw TypeError(n)};var JY=(n,e,t)=>e in n?QY(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Ei=(n,e,t)=>JY(n,typeof e!="symbol"?e+"":e,t),ok=(n,e,t)=>e.has(n)||n5("Cannot "+t);var X=(n,e,t)=>(ok(n,e,"read from private field"),t?t.call(n):e.get(n)),Pe=(n,e,t)=>e.has(n)?n5("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(n):e.set(n,t),dt=(n,e,t,i)=>(ok(n,e,"write to private field"),i?i.call(n,t):e.set(n,t),t),xe=(n,e,t)=>(ok(n,e,"access private method"),t);var s5=(n,e,t,i)=>({set _(s){dt(n,e,s,t)},get _(){return X(n,e,i)}});(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&i(r)}).observe(document,{childList:!0,subtree:!0});function t(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(s){if(s.ep)return;s.ep=!0;const o=t(s);fetch(s.href,o)}})();const eZ="modulepreload",tZ=function(n,e){return new URL(n,e).href},o5={},Zn=function(e,t,i){let s=Promise.resolve();if(t&&t.length>0){const r=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=Promise.allSettled(t.map(c=>{if(c=tZ(c,i),c in o5)return;o5[c]=!0;const d=c.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(!!i)for(let g=r.length-1;g>=0;g--){const p=r[g];if(p.href===c&&(!d||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${c}"]${u}`))return;const f=document.createElement("link");if(f.rel=d?"stylesheet":eZ,d||(f.as="script"),f.crossOrigin="",f.href=c,l&&f.setAttribute("nonce",l),document.head.appendChild(f),d)return new Promise((g,p)=>{f.addEventListener("load",g),f.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(r){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=r,window.dispatchEvent(a),!a.defaultPrevented)throw r}return s.then(r=>{for(const a of r||[])a.status==="rejected"&&o(a.reason);return e().catch(o)})};/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Qw=globalThis,tM=Qw.ShadowRoot&&(Qw.ShadyCSS===void 0||Qw.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,QB=Symbol(),l5=new WeakMap;let JY=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==QB)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(tM&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=l5.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&l5.set(t,e))}return e}toString(){return this.cssText}};const eZ=n=>new JY(typeof n=="string"?n:n+"",void 0,QB),tZ=(n,e)=>{if(tM)n.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),s=Qw.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=t.cssText,n.appendChild(i)}},c5=tM?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return eZ(t)})(n):n;/** + */const qw=globalThis,JR=qw.ShadowRoot&&(qw.ShadyCSS===void 0||qw.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,eM=Symbol(),r5=new WeakMap;let KB=class{constructor(e,t,i){if(this._$cssResult$=!0,i!==eM)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const t=this.t;if(JR&&e===void 0){const i=t!==void 0&&t.length===1;i&&(e=r5.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&r5.set(t,e))}return e}toString(){return this.cssText}};const iZ=n=>new KB(typeof n=="string"?n:n+"",void 0,eM),nZ=(n,...e)=>{const t=n.length===1?n[0]:e.reduce((i,s,o)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[o+1],n[0]);return new KB(t,n,eM)},sZ=(n,e)=>{if(JR)n.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),s=qw.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=t.cssText,n.appendChild(i)}},a5=JR?n=>n:n=>n instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return iZ(t)})(n):n;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const{is:iZ,defineProperty:nZ,getOwnPropertyDescriptor:sZ,getOwnPropertyNames:oZ,getOwnPropertySymbols:rZ,getPrototypeOf:aZ}=Object,Sd=globalThis,d5=Sd.trustedTypes,lZ=d5?d5.emptyScript:"",fk=Sd.reactiveElementPolyfillSupport,C_=(n,e)=>n,AE={toAttribute(n,e){switch(e){case Boolean:n=n?lZ:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let t=n;switch(e){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},JB=(n,e)=>!iZ(n,e),u5={attribute:!0,type:String,converter:AE,reflect:!1,hasChanged:JB};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Sd.litPropertyMetadata??(Sd.litPropertyMetadata=new WeakMap);class Lg extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=u5){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(e,i,t);s!==void 0&&nZ(this.prototype,e,s)}}static getPropertyDescriptor(e,t,i){const{get:s,set:o}=sZ(this.prototype,e)??{get(){return this[t]},set(r){this[t]=r}};return{get(){return s==null?void 0:s.call(this)},set(r){const a=s==null?void 0:s.call(this);o.call(this,r),this.requestUpdate(e,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??u5}static _$Ei(){if(this.hasOwnProperty(C_("elementProperties")))return;const e=aZ(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(C_("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(C_("properties"))){const t=this.properties,i=[...oZ(t),...rZ(t)];for(const s of i)this.createProperty(s,t[s])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,s]of t)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const s=this._$Eu(t,i);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const s of i)t.unshift(c5(s))}else e!==void 0&&t.push(c5(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return tZ(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EC(e,t){var o;const i=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,i);if(s!==void 0&&i.reflect===!0){const r=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:AE).toAttribute(t,i.type);this._$Em=e,r==null?this.removeAttribute(s):this.setAttribute(s,r),this._$Em=null}}_$AK(e,t){var o;const i=this.constructor,s=i._$Eh.get(e);if(s!==void 0&&this._$Em!==s){const r=i.getPropertyOptions(s),a=typeof r.converter=="function"?{fromAttribute:r.converter}:((o=r.converter)==null?void 0:o.fromAttribute)!==void 0?r.converter:AE;this._$Em=s,this[s]=a.fromAttribute(t,r.type),this._$Em=null}}requestUpdate(e,t,i){if(e!==void 0){if(i??(i=this.constructor.getPropertyOptions(e)),!(i.hasChanged??JB)(this[e],t))return;this.P(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,i){this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,r]of this._$Ep)this[o]=r;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[o,r]of s)r.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],r)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(s=>{var o;return(o=s.hostUpdate)==null?void 0:o.call(s)}),this.update(t)):this._$EU()}catch(s){throw e=!1,this._$EU(),s}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}}Lg.elementStyles=[],Lg.shadowRootOptions={mode:"open"},Lg[C_("elementProperties")]=new Map,Lg[C_("finalized")]=new Map,fk==null||fk({ReactiveElement:Lg}),(Sd.reactiveElementVersions??(Sd.reactiveElementVersions=[])).push("2.0.4");/** + */const{is:oZ,defineProperty:rZ,getOwnPropertyDescriptor:aZ,getOwnPropertyNames:lZ,getOwnPropertySymbols:cZ,getPrototypeOf:dZ}=Object,xd=globalThis,l5=xd.trustedTypes,uZ=l5?l5.emptyScript:"",rk=xd.reactiveElementPolyfillSupport,k_=(n,e)=>n,xE={toAttribute(n,e){switch(e){case Boolean:n=n?uZ:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,e){let t=n;switch(e){case Boolean:t=n!==null;break;case Number:t=n===null?null:Number(n);break;case Object:case Array:try{t=JSON.parse(n)}catch{t=null}}return t}},YB=(n,e)=>!oZ(n,e),c5={attribute:!0,type:String,converter:xE,reflect:!1,hasChanged:YB};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),xd.litPropertyMetadata??(xd.litPropertyMetadata=new WeakMap);class Eg extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??(this.l=[])).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=c5){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(e,i,t);s!==void 0&&rZ(this.prototype,e,s)}}static getPropertyDescriptor(e,t,i){const{get:s,set:o}=aZ(this.prototype,e)??{get(){return this[t]},set(r){this[t]=r}};return{get(){return s==null?void 0:s.call(this)},set(r){const a=s==null?void 0:s.call(this);o.call(this,r),this.requestUpdate(e,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??c5}static _$Ei(){if(this.hasOwnProperty(k_("elementProperties")))return;const e=dZ(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(k_("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(k_("properties"))){const t=this.properties,i=[...lZ(t),...cZ(t)];for(const s of i)this.createProperty(s,t[s])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,s]of t)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const s=this._$Eu(t,i);s!==void 0&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const s of i)t.unshift(a5(s))}else e!==void 0&&t.push(a5(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t;(this._$EO??(this._$EO=new Set)).add(e),this.renderRoot!==void 0&&this.isConnected&&((t=e.hostConnected)==null||t.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return sZ(e,this.constructor.elementStyles),e}connectedCallback(){var e;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EC(e,t){var o;const i=this.constructor.elementProperties.get(e),s=this.constructor._$Eu(e,i);if(s!==void 0&&i.reflect===!0){const r=(((o=i.converter)==null?void 0:o.toAttribute)!==void 0?i.converter:xE).toAttribute(t,i.type);this._$Em=e,r==null?this.removeAttribute(s):this.setAttribute(s,r),this._$Em=null}}_$AK(e,t){var o;const i=this.constructor,s=i._$Eh.get(e);if(s!==void 0&&this._$Em!==s){const r=i.getPropertyOptions(s),a=typeof r.converter=="function"?{fromAttribute:r.converter}:((o=r.converter)==null?void 0:o.fromAttribute)!==void 0?r.converter:xE;this._$Em=s,this[s]=a.fromAttribute(t,r.type),this._$Em=null}}requestUpdate(e,t,i){if(e!==void 0){if(i??(i=this.constructor.getPropertyOptions(e)),!(i.hasChanged??YB)(this[e],t))return;this.P(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,i){this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$Em!==e&&(this._$Ej??(this._$Ej=new Set)).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,r]of this._$Ep)this[o]=r;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[o,r]of s)r.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],r)}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(s=>{var o;return(o=s.hostUpdate)==null?void 0:o.call(s)}),this.update(t)):this._$EU()}catch(s){throw e=!1,this._$EU(),s}e&&this._$AE(t)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}}Eg.elementStyles=[],Eg.shadowRootOptions={mode:"open"},Eg[k_("elementProperties")]=new Map,Eg[k_("finalized")]=new Map,rk==null||rk({ReactiveElement:Eg}),(xd.reactiveElementVersions??(xd.reactiveElementVersions=[])).push("2.0.4");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const S_=globalThis,$C=S_.trustedTypes,h5=$C?$C.createPolicy("lit-html",{createHTML:n=>n}):void 0,eW="$lit$",Zc=`lit$${Math.random().toFixed(9).slice(2)}$`,tW="?"+Zc,cZ=`<${tW}>`,rf=document,tb=()=>rf.createComment(""),ib=n=>n===null||typeof n!="object"&&typeof n!="function",iW=Array.isArray,dZ=n=>iW(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",gk=`[ -\f\r]`,g0=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,f5=/-->/g,g5=/>/g,Vu=RegExp(`>|${gk}(?:([^\\s"'>=/]+)(${gk}*=${gk}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),p5=/'/g,m5=/"/g,nW=/^(?:script|style|textarea|title)$/i,uZ=n=>(e,...t)=>({_$litType$:n,strings:e,values:t}),It=uZ(1),af=Symbol.for("lit-noChange"),$i=Symbol.for("lit-nothing"),_5=new WeakMap,bh=rf.createTreeWalker(rf,129);function sW(n,e){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return h5!==void 0?h5.createHTML(e):e}const hZ=(n,e)=>{const t=n.length-1,i=[];let s,o=e===2?"":"")),i]};class nb{constructor({strings:e,_$litType$:t},i){let s;this.parts=[];let o=0,r=0;const a=e.length-1,l=this.parts,[c,d]=hZ(e,t);if(this.el=nb.createElement(c,i),bh.currentNode=this.el.content,t===2){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(s=bh.nextNode())!==null&&l.length0){s.textContent=$C?$C.emptyScript:"";for(let f=0;f 2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=$i}_$AI(e,t=this,i,s){const o=this.strings;let r=!1;if(o===void 0)e=Xp(this,e,t,0),r=!ib(e)||e!==this._$AH&&e!==af,r&&(this._$AH=e);else{const a=e;let l,c;for(e=o[0],l=0;l {const i=(t==null?void 0:t.renderBefore)??e;let s=i._$litPart$;if(s===void 0){const o=(t==null?void 0:t.renderBefore)??null;i._$litPart$=s=new d1(e.insertBefore(tb(),o),o,void 0,t??{})}return s._$AI(n),s};/** + */const E_=globalThis,FC=E_.trustedTypes,d5=FC?FC.createPolicy("lit-html",{createHTML:n=>n}):void 0,ZB="$lit$",Zc=`lit$${Math.random().toFixed(9).slice(2)}$`,XB="?"+Zc,hZ=`<${XB}>`,cf=document,rb=()=>cf.createComment(""),ab=n=>n===null||typeof n!="object"&&typeof n!="function",tM=Array.isArray,fZ=n=>tM(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",ak=`[ +\f\r]`,b0=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,u5=/-->/g,h5=/>/g,zu=RegExp(`>|${ak}(?:([^\\s"'>=/]+)(${ak}*=${ak}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),f5=/'/g,g5=/"/g,QB=/^(?:script|style|textarea|title)$/i,gZ=n=>(e,...t)=>({_$litType$:n,strings:e,values:t}),Lt=gZ(1),df=Symbol.for("lit-noChange"),zi=Symbol.for("lit-nothing"),p5=new WeakMap,yh=cf.createTreeWalker(cf,129);function JB(n,e){if(!tM(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return d5!==void 0?d5.createHTML(e):e}const pZ=(n,e)=>{const t=n.length-1,i=[];let s,o=e===2?"":e===3?"":"")),i]};class lb{constructor({strings:e,_$litType$:t},i){let s;this.parts=[];let o=0,r=0;const a=e.length-1,l=this.parts,[c,d]=pZ(e,t);if(this.el=lb.createElement(c,i),yh.currentNode=this.el.content,t===2||t===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(s=yh.nextNode())!==null&&l.length0){s.textContent=FC?FC.emptyScript:"";for(let f=0;f 2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=zi}_$AI(e,t=this,i,s){const o=this.strings;let r=!1;if(o===void 0)e=Jp(this,e,t,0),r=!ab(e)||e!==this._$AH&&e!==df,r&&(this._$AH=e);else{const a=e;let l,c;for(e=o[0],l=0;l {const i=(t==null?void 0:t.renderBefore)??e;let s=i._$litPart$;if(s===void 0){const o=(t==null?void 0:t.renderBefore)??null;i._$litPart$=s=new f1(e.insertBefore(rb(),o),o,void 0,t??{})}return s._$AI(n),s};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */let rp=class extends Lg{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Qp(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return af}};var ZB;rp._$litElement$=!0,rp.finalized=!0,(ZB=globalThis.litElementHydrateSupport)==null||ZB.call(globalThis,{LitElement:rp});const mk=globalThis.litElementPolyfillSupport;mk==null||mk({LitElement:rp});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.5");/** + */let zh=class extends Eg{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const e=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=e.firstChild),e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=em(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return df}};var qB;zh._$litElement$=!0,zh.finalized=!0,(qB=globalThis.litElementHydrateSupport)==null||qB.call(globalThis,{LitElement:zh});const ck=globalThis.litElementPolyfillSupport;ck==null||ck({LitElement:zh});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const bZ=n=>n.strings===void 0;/** + */const wZ=n=>n.strings===void 0;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const oW={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},rW=n=>(...e)=>({_$litDirective$:n,values:e});let aW=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};/** + */const eW={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},tW=n=>(...e)=>({_$litDirective$:n,values:e});let iW=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,i){this._$Ct=e,this._$AM=t,this._$Ci=i}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const x_=(n,e)=>{var i;const t=n._$AN;if(t===void 0)return!1;for(const s of t)(i=s._$AO)==null||i.call(s,e,!1),x_(s,e);return!0},UC=n=>{let e,t;do{if((e=n._$AM)===void 0)break;t=e._$AN,t.delete(n),n=e}while((t==null?void 0:t.size)===0)},lW=n=>{for(let e;e=n._$AM;n=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(n))break;t.add(n),wZ(e)}};function vZ(n){this._$AN!==void 0?(UC(this),this._$AM=n,lW(this)):this._$AM=n}function yZ(n,e=!1,t=0){const i=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(e)if(Array.isArray(i))for(let o=t;o {n.type==oW.CHILD&&(n._$AP??(n._$AP=yZ),n._$AQ??(n._$AQ=vZ))};class CZ extends aW{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,i){super._$AT(e,t,i),lW(this),this.isConnected=e._$AU}_$AO(e,t=!0){var i,s;e!==this.isConnected&&(this.isConnected=e,e?(i=this.reconnected)==null||i.call(this):(s=this.disconnected)==null||s.call(this)),t&&(x_(this,e),UC(this))}setValue(e){if(bZ(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}/** + */const A_=(n,e)=>{var i;const t=n._$AN;if(t===void 0)return!1;for(const s of t)(i=s._$AO)==null||i.call(s,e,!1),A_(s,e);return!0},BC=n=>{let e,t;do{if((e=n._$AM)===void 0)break;t=e._$AN,t.delete(n),n=e}while((t==null?void 0:t.size)===0)},nW=n=>{for(let e;e=n._$AM;n=e){let t=e._$AN;if(t===void 0)e._$AN=t=new Set;else if(t.has(n))break;t.add(n),xZ(e)}};function CZ(n){this._$AN!==void 0?(BC(this),this._$AM=n,nW(this)):this._$AM=n}function SZ(n,e=!1,t=0){const i=this._$AH,s=this._$AN;if(s!==void 0&&s.size!==0)if(e)if(Array.isArray(i))for(let o=t;o {n.type==eW.CHILD&&(n._$AP??(n._$AP=SZ),n._$AQ??(n._$AQ=CZ))};class LZ extends iW{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,i){super._$AT(e,t,i),nW(this),this.isConnected=e._$AU}_$AO(e,t=!0){var i,s;e!==this.isConnected&&(this.isConnected=e,e?(i=this.reconnected)==null||i.call(this):(s=this.disconnected)==null||s.call(this)),t&&(A_(this,e),BC(this))}setValue(e){if(wZ(this._$Ct))this._$Ct._$AI(e,this);else{const t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const cW=()=>new SZ;let SZ=class{};const _k=new WeakMap,b5=rW(class extends CZ{render(n){return $i}update(n,[e]){var i;const t=e!==this.Y;return t&&this.Y!==void 0&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.Y=e,this.ht=(i=n.options)==null?void 0:i.host,this.rt(this.ct=n.element)),$i}rt(n){if(typeof this.Y=="function"){const e=this.ht??globalThis;let t=_k.get(e);t===void 0&&(t=new WeakMap,_k.set(e,t)),t.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),t.set(this.Y,n),n!==void 0&&this.Y.call(this.ht,n)}else this.Y.value=n}get lt(){var n,e;return typeof this.Y=="function"?(n=_k.get(this.ht??globalThis))==null?void 0:n.get(this.Y):(e=this.Y)==null?void 0:e.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});function v5(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(n,s).enumerable})),t.push.apply(t,i)}return t}function Me(n){for(var e=1;e n.length)&&(e=n.length);for(var t=0,i=new Array(e);t -1;s--){var o=t[s],r=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(r)>-1&&(i=o)}return Bi.head.insertBefore(e,i),n}}var YZ="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function lb(){for(var n=12,e="";n-- >0;)e+=YZ[Math.random()*62|0];return e}function jm(n){for(var e=[],t=(n||[]).length>>>0;t--;)e[t]=n[t];return e}function aM(n){return n.classList?jm(n.classList):(n.getAttribute("class")||"").split(" ").filter(function(e){return e})}function wW(n){return"".concat(n).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/ =55296&&s<=56319&&t=55296&&i<=56319&&t>e+1&&(s=n.charCodeAt(e+1),s>=56320&&s<=57343)?(i-55296)*1024+s-56320+65536:i}function k5(n){return Object.keys(n).reduce(function(e,t){var i=n[t],s=!!i.icon;return s?e[i.iconName]=i.icon:e[t]=i,e},{})}function ME(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=t.skipHooks,s=i===void 0?!1:i,o=k5(e);typeof ea.hooks.addPack=="function"&&!s?ea.hooks.addPack(n,k5(e)):ea.styles[n]=Me(Me({},ea.styles[n]||{}),o),n==="fas"&&ME("fa",e)}var ky,Ey,Ay,Tg=ea.styles,oX=ea.shims,rX=(ky={},Fn(ky,Pi,Object.values(rb[Pi])),Fn(ky,nn,Object.values(rb[nn])),ky),cM=null,xW={},LW={},DW={},kW={},EW={},aX=(Ey={},Fn(Ey,Pi,Object.keys(sb[Pi])),Fn(Ey,nn,Object.keys(sb[nn])),Ey);function lX(n){return~$Z.indexOf(n)}function cX(n,e){var t=e.split("-"),i=t[0],s=t.slice(1).join("-");return i===n&&s!==""&&!lX(s)?s:null}var AW=function(){var e=function(o){return vk(Tg,function(r,a,l){return r[l]=vk(a,o,{}),r},{})};xW=e(function(s,o,r){if(o[3]&&(s[o[3]]=r),o[2]){var a=o[2].filter(function(l){return typeof l=="number"});a.forEach(function(l){s[l.toString(16)]=r})}return s}),LW=e(function(s,o,r){if(s[r]=r,o[2]){var a=o[2].filter(function(l){return typeof l=="string"});a.forEach(function(l){s[l]=r})}return s}),EW=e(function(s,o,r){var a=o[2];return s[r]=r,a.forEach(function(l){s[l]=r}),s});var t="far"in Tg||ze.autoFetchSvg,i=vk(oX,function(s,o){var r=o[0],a=o[1],l=o[2];return a==="far"&&!t&&(a="fas"),typeof r=="string"&&(s.names[r]={prefix:a,iconName:l}),typeof r=="number"&&(s.unicodes[r.toString(16)]={prefix:a,iconName:l}),s},{names:{},unicodes:{}});DW=i.names,kW=i.unicodes,cM=Qx(ze.styleDefault,{family:ze.familyDefault})};GZ(function(n){cM=Qx(n.styleDefault,{family:ze.familyDefault})});AW();function dM(n,e){return(xW[n]||{})[e]}function dX(n,e){return(LW[n]||{})[e]}function yh(n,e){return(EW[n]||{})[e]}function IW(n){return DW[n]||{prefix:null,iconName:null}}function uX(n){var e=kW[n],t=dM("fas",n);return e||(t?{prefix:"fas",iconName:t}:null)||{prefix:null,iconName:null}}function zd(){return cM}var uM=function(){return{prefix:null,iconName:null,rest:[]}};function Qx(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.family,i=t===void 0?Pi:t,s=sb[i][n],o=ob[i][n]||ob[i][s],r=n in ea.styles?n:null;return o||r||null}var E5=(Ay={},Fn(Ay,Pi,Object.keys(rb[Pi])),Fn(Ay,nn,Object.keys(rb[nn])),Ay);function Jx(n){var e,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.skipLookups,s=i===void 0?!1:i,o=(e={},Fn(e,Pi,"".concat(ze.cssPrefix,"-").concat(Pi)),Fn(e,nn,"".concat(ze.cssPrefix,"-").concat(nn)),e),r=null,a=Pi;(n.includes(o[Pi])||n.some(function(c){return E5[Pi].includes(c)}))&&(a=Pi),(n.includes(o[nn])||n.some(function(c){return E5[nn].includes(c)}))&&(a=nn);var l=n.reduce(function(c,d){var u=cX(ze.cssPrefix,d);if(Tg[d]?(d=rX[a].includes(d)?FZ[a][d]:d,r=d,c.prefix=d):aX[a].indexOf(d)>-1?(r=d,c.prefix=Qx(d,{family:a})):u?c.iconName=u:d!==ze.replacementClass&&d!==o[Pi]&&d!==o[nn]&&c.rest.push(d),!s&&c.prefix&&c.iconName){var h=r==="fa"?IW(c.iconName):{},f=yh(c.prefix,c.iconName);h.prefix&&(r=null),c.iconName=h.iconName||f||c.iconName,c.prefix=h.prefix||c.prefix,c.prefix==="far"&&!Tg.far&&Tg.fas&&!ze.autoFetchSvg&&(c.prefix="fas")}return c},uM());return(n.includes("fa-brands")||n.includes("fab"))&&(l.prefix="fab"),(n.includes("fa-duotone")||n.includes("fad"))&&(l.prefix="fad"),!l.prefix&&a===nn&&(Tg.fass||ze.autoFetchSvg)&&(l.prefix="fass",l.iconName=yh(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||r==="fa")&&(l.prefix=zd()||"fas"),l}var hX=function(){function n(){xZ(this,n),this.definitions={}}return DZ(n,[{key:"add",value:function(){for(var t=this,i=arguments.length,s=new Array(i),o=0;o0&&d.forEach(function(u){typeof u=="string"&&(t[a][u]=c)}),t[a][l]=c}),t}}]),n}(),A5=[],Ng={},ap={},fX=Object.keys(ap);function gX(n,e){var t=e.mixoutsTo;return A5=n,Ng={},Object.keys(ap).forEach(function(i){fX.indexOf(i)===-1&&delete ap[i]}),A5.forEach(function(i){var s=i.mixout?i.mixout():{};if(Object.keys(s).forEach(function(r){typeof s[r]=="function"&&(t[r]=s[r]),jC(s[r])==="object"&&Object.keys(s[r]).forEach(function(a){t[r]||(t[r]={}),t[r][a]=s[r][a]})}),i.hooks){var o=i.hooks();Object.keys(o).forEach(function(r){Ng[r]||(Ng[r]=[]),Ng[r].push(o[r])})}i.provides&&i.provides(ap)}),t}function PE(n,e){for(var t=arguments.length,i=new Array(t>2?t-2:0),s=2;s 1?e-1:0),i=1;i 0&&arguments[0]!==void 0?arguments[0]:{};return vc?(cf("beforeI2svg",e),fc("pseudoElements2svg",e),fc("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.autoReplaceSvgRoot;ze.autoReplaceSvg===!1&&(ze.autoReplaceSvg=!0),ze.observeMutations=!0,iX(function(){bX({autoReplaceSvgRoot:t}),cf("watch",e)})}},_X={icon:function(e){if(e===null)return null;if(jC(e)==="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:yh(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){var t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],i=Qx(e[0]);return{prefix:i,iconName:yh(i,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(ze.cssPrefix,"-"))>-1||e.match(BZ))){var s=Jx(e.split(" "),{skipLookups:!0});return{prefix:s.prefix||zd(),iconName:yh(s.prefix,s.iconName)||s.iconName}}if(typeof e=="string"){var o=zd();return{prefix:o,iconName:yh(o,e)||e}}}},Zo={noAuto:pX,config:ze,dom:mX,parse:_X,library:TW,findIconDefinition:OE,toHtml:f1},bX=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.autoReplaceSvgRoot,i=t===void 0?Bi:t;(Object.keys(ea.styles).length>0||ze.autoFetchSvg)&&vc&&ze.autoReplaceSvg&&Zo.dom.i2svg({node:i})};function eL(n,e){return Object.defineProperty(n,"abstract",{get:e}),Object.defineProperty(n,"html",{get:function(){return n.abstract.map(function(i){return f1(i)})}}),Object.defineProperty(n,"node",{get:function(){if(vc){var i=Bi.createElement("div");return i.innerHTML=n.html,i.children}}}),n}function vX(n){var e=n.children,t=n.main,i=n.mask,s=n.attributes,o=n.styles,r=n.transform;if(lM(r)&&t.found&&!i.found){var a=t.width,l=t.height,c={x:a/l/2,y:.5};s.style=Xx(Me(Me({},o),{},{"transform-origin":"".concat(c.x+r.x/16,"em ").concat(c.y+r.y/16,"em")}))}return[{tag:"svg",attributes:s,children:e}]}function yX(n){var e=n.prefix,t=n.iconName,i=n.children,s=n.attributes,o=n.symbol,r=o===!0?"".concat(e,"-").concat(ze.cssPrefix,"-").concat(t):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Me(Me({},s),{},{id:r}),children:i}]}]}function hM(n){var e=n.icons,t=e.main,i=e.mask,s=n.prefix,o=n.iconName,r=n.transform,a=n.symbol,l=n.title,c=n.maskId,d=n.titleId,u=n.extra,h=n.watchable,f=h===void 0?!1:h,g=i.found?i:t,p=g.width,_=g.height,v=s==="fak",b=[ze.replacementClass,o?"".concat(ze.cssPrefix,"-").concat(o):""].filter(function(k){return u.classes.indexOf(k)===-1}).filter(function(k){return k!==""||!!k}).concat(u.classes).join(" "),y={children:[],attributes:Me(Me({},u.attributes),{},{"data-prefix":s,"data-icon":o,class:b,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(p," ").concat(_)})},w=v&&!~u.classes.indexOf("fa-fw")?{width:"".concat(p/_*16*.0625,"em")}:{};f&&(y.attributes[lf]=""),l&&(y.children.push({tag:"title",attributes:{id:y.attributes["aria-labelledby"]||"title-".concat(d||lb())},children:[l]}),delete y.attributes.title);var C=Me(Me({},y),{},{prefix:s,iconName:o,main:t,mask:i,maskId:c,transform:r,symbol:a,styles:Me(Me({},w),u.styles)}),L=i.found&&t.found?fc("generateAbstractMask",C)||{children:[],attributes:{}}:fc("generateAbstractIcon",C)||{children:[],attributes:{}},x=L.children,D=L.attributes;return C.children=x,C.attributes=D,a?yX(C):vX(C)}function I5(n){var e=n.content,t=n.width,i=n.height,s=n.transform,o=n.title,r=n.extra,a=n.watchable,l=a===void 0?!1:a,c=Me(Me(Me({},r.attributes),o?{title:o}:{}),{},{class:r.classes.join(" ")});l&&(c[lf]="");var d=Me({},r.styles);lM(s)&&(d.transform=QZ({transform:s,startCentered:!0,width:t,height:i}),d["-webkit-transform"]=d.transform);var u=Xx(d);u.length>0&&(c.style=u);var h=[];return h.push({tag:"span",attributes:c,children:[e]}),o&&h.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),h}function wX(n){var e=n.content,t=n.title,i=n.extra,s=Me(Me(Me({},i.attributes),t?{title:t}:{}),{},{class:i.classes.join(" ")}),o=Xx(i.styles);o.length>0&&(s.style=o);var r=[];return r.push({tag:"span",attributes:s,children:[e]}),t&&r.push({tag:"span",attributes:{class:"sr-only"},children:[t]}),r}var yk=ea.styles;function FE(n){var e=n[0],t=n[1],i=n.slice(4),s=iM(i,1),o=s[0],r=null;return Array.isArray(o)?r={tag:"g",attributes:{class:"".concat(ze.cssPrefix,"-").concat(vh.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ze.cssPrefix,"-").concat(vh.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(ze.cssPrefix,"-").concat(vh.PRIMARY),fill:"currentColor",d:o[1]}}]}:r={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:e,height:t,icon:r}}var CX={found:!1,width:512,height:512};function SX(n,e){!_W&&!ze.showMissingIcons&&n&&console.error('Icon with name "'.concat(n,'" and prefix "').concat(e,'" is missing.'))}function BE(n,e){var t=e;return e==="fa"&&ze.styleDefault!==null&&(e=zd()),new Promise(function(i,s){if(fc("missingIconAbstract"),t==="fa"){var o=IW(n)||{};n=o.iconName||n,e=o.prefix||e}if(n&&e&&yk[e]&&yk[e][n]){var r=yk[e][n];return i(FE(r))}SX(n,e),i(Me(Me({},CX),{},{icon:ze.showMissingIcons&&n?fc("missingIconAbstract")||{}:{}}))})}var T5=function(){},WE=ze.measurePerformance&&wy&&wy.mark&&wy.measure?wy:{mark:T5,measure:T5},K0='FA "6.5.2"',xX=function(e){return WE.mark("".concat(K0," ").concat(e," begins")),function(){return NW(e)}},NW=function(e){WE.mark("".concat(K0," ").concat(e," ends")),WE.measure("".concat(K0," ").concat(e),"".concat(K0," ").concat(e," begins"),"".concat(K0," ").concat(e," ends"))},fM={begin:xX,end:NW},Jw=function(){};function N5(n){var e=n.getAttribute?n.getAttribute(lf):null;return typeof e=="string"}function LX(n){var e=n.getAttribute?n.getAttribute(sM):null,t=n.getAttribute?n.getAttribute(oM):null;return e&&t}function DX(n){return n&&n.classList&&n.classList.contains&&n.classList.contains(ze.replacementClass)}function kX(){if(ze.autoReplaceSvg===!0)return eC.replace;var n=eC[ze.autoReplaceSvg];return n||eC.replace}function EX(n){return Bi.createElementNS("http://www.w3.org/2000/svg",n)}function AX(n){return Bi.createElement(n)}function RW(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.ceFn,i=t===void 0?n.tag==="svg"?EX:AX:t;if(typeof n=="string")return Bi.createTextNode(n);var s=i(n.tag);Object.keys(n.attributes||[]).forEach(function(r){s.setAttribute(r,n.attributes[r])});var o=n.children||[];return o.forEach(function(r){s.appendChild(RW(r,{ceFn:i}))}),s}function IX(n){var e=" ".concat(n.outerHTML," ");return e="".concat(e,"Font Awesome fontawesome.com "),e}var eC={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(s){t.parentNode.insertBefore(RW(s),t)}),t.getAttribute(lf)===null&&ze.keepOriginalSource){var i=Bi.createComment(IX(t));t.parentNode.replaceChild(i,t)}else t.remove()},nest:function(e){var t=e[0],i=e[1];if(~aM(t).indexOf(ze.replacementClass))return eC.replace(e);var s=new RegExp("".concat(ze.cssPrefix,"-.*"));if(delete i[0].attributes.id,i[0].attributes.class){var o=i[0].attributes.class.split(" ").reduce(function(a,l){return l===ze.replacementClass||l.match(s)?a.toSvg.push(l):a.toNode.push(l),a},{toNode:[],toSvg:[]});i[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}var r=i.map(function(a){return f1(a)}).join(` -`);t.setAttribute(lf,""),t.innerHTML=r}};function R5(n){n()}function MW(n,e){var t=typeof e=="function"?e:Jw;if(n.length===0)t();else{var i=R5;ze.mutateApproach===PZ&&(i=Vd.requestAnimationFrame||R5),i(function(){var s=kX(),o=fM.begin("mutate");n.map(s),o(),t()})}}var gM=!1;function PW(){gM=!0}function VE(){gM=!1}var GC=null;function M5(n){if(S5&&ze.observeMutations){var e=n.treeCallback,t=e===void 0?Jw:e,i=n.nodeCallback,s=i===void 0?Jw:i,o=n.pseudoElementsCallback,r=o===void 0?Jw:o,a=n.observeMutationsRoot,l=a===void 0?Bi:a;GC=new S5(function(c){if(!gM){var d=zd();jm(c).forEach(function(u){if(u.type==="childList"&&u.addedNodes.length>0&&!N5(u.addedNodes[0])&&(ze.searchPseudoElements&&r(u.target),t(u.target)),u.type==="attributes"&&u.target.parentNode&&ze.searchPseudoElements&&r(u.target.parentNode),u.type==="attributes"&&N5(u.target)&&~HZ.indexOf(u.attributeName))if(u.attributeName==="class"&&LX(u.target)){var h=Jx(aM(u.target)),f=h.prefix,g=h.iconName;u.target.setAttribute(sM,f||d),g&&u.target.setAttribute(oM,g)}else DX(u.target)&&s(u.target)})}}),vc&&GC.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function TX(){GC&&GC.disconnect()}function NX(n){var e=n.getAttribute("style"),t=[];return e&&(t=e.split(";").reduce(function(i,s){var o=s.split(":"),r=o[0],a=o.slice(1);return r&&a.length>0&&(i[r]=a.join(":").trim()),i},{})),t}function RX(n){var e=n.getAttribute("data-prefix"),t=n.getAttribute("data-icon"),i=n.innerText!==void 0?n.innerText.trim():"",s=Jx(aM(n));return s.prefix||(s.prefix=zd()),e&&t&&(s.prefix=e,s.iconName=t),s.iconName&&s.prefix||(s.prefix&&i.length>0&&(s.iconName=dX(s.prefix,n.innerText)||dM(s.prefix,RE(n.innerText))),!s.iconName&&ze.autoFetchSvg&&n.firstChild&&n.firstChild.nodeType===Node.TEXT_NODE&&(s.iconName=n.firstChild.data)),s}function MX(n){var e=jm(n.attributes).reduce(function(s,o){return s.name!=="class"&&s.name!=="style"&&(s[o.name]=o.value),s},{}),t=n.getAttribute("title"),i=n.getAttribute("data-fa-title-id");return ze.autoA11y&&(t?e["aria-labelledby"]="".concat(ze.replacementClass,"-title-").concat(i||lb()):(e["aria-hidden"]="true",e.focusable="false")),e}function PX(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Fa,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function P5(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},t=RX(n),i=t.iconName,s=t.prefix,o=t.rest,r=MX(n),a=PE("parseNodeAttributes",{},n),l=e.styleParser?NX(n):[];return Me({iconName:i,title:n.getAttribute("title"),titleId:n.getAttribute("data-fa-title-id"),prefix:s,transform:Fa,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:l,attributes:r}},a)}var OX=ea.styles;function OW(n){var e=ze.autoReplaceSvg==="nest"?P5(n,{styleParser:!1}):P5(n);return~e.extra.classes.indexOf(bW)?fc("generateLayersText",n,e):fc("generateSvgReplacementMutation",n,e)}var Hd=new Set;rM.map(function(n){Hd.add("fa-".concat(n))});Object.keys(sb[Pi]).map(Hd.add.bind(Hd));Object.keys(sb[nn]).map(Hd.add.bind(Hd));Hd=u1(Hd);function O5(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!vc)return Promise.resolve();var t=Bi.documentElement.classList,i=function(u){return t.add("".concat(x5,"-").concat(u))},s=function(u){return t.remove("".concat(x5,"-").concat(u))},o=ze.autoFetchSvg?Hd:rM.map(function(d){return"fa-".concat(d)}).concat(Object.keys(OX));o.includes("fa")||o.push("fa");var r=[".".concat(bW,":not([").concat(lf,"])")].concat(o.map(function(d){return".".concat(d,":not([").concat(lf,"])")})).join(", ");if(r.length===0)return Promise.resolve();var a=[];try{a=jm(n.querySelectorAll(r))}catch{}if(a.length>0)i("pending"),s("complete");else return Promise.resolve();var l=fM.begin("onTree"),c=a.reduce(function(d,u){try{var h=OW(u);h&&d.push(h)}catch(f){_W||f.name==="MissingIcon"&&console.error(f)}return d},[]);return new Promise(function(d,u){Promise.all(c).then(function(h){MW(h,function(){i("active"),i("complete"),s("pending"),typeof e=="function"&&e(),l(),d()})}).catch(function(h){l(),u(h)})})}function FX(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;OW(n).then(function(t){t&&MW([t],e)})}function BX(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=(e||{}).icon?e:OE(e||{}),s=t.mask;return s&&(s=(s||{}).icon?s:OE(s||{})),n(i,Me(Me({},t),{},{mask:s}))}}var WX=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.transform,s=i===void 0?Fa:i,o=t.symbol,r=o===void 0?!1:o,a=t.mask,l=a===void 0?null:a,c=t.maskId,d=c===void 0?null:c,u=t.title,h=u===void 0?null:u,f=t.titleId,g=f===void 0?null:f,p=t.classes,_=p===void 0?[]:p,v=t.attributes,b=v===void 0?{}:v,y=t.styles,w=y===void 0?{}:y;if(e){var C=e.prefix,L=e.iconName,x=e.icon;return eL(Me({type:"icon"},e),function(){return cf("beforeDOMElementCreation",{iconDefinition:e,params:t}),ze.autoA11y&&(h?b["aria-labelledby"]="".concat(ze.replacementClass,"-title-").concat(g||lb()):(b["aria-hidden"]="true",b.focusable="false")),hM({icons:{main:FE(x),mask:l?FE(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:C,iconName:L,transform:Me(Me({},Fa),s),symbol:r,title:h,maskId:d,titleId:g,extra:{attributes:b,styles:w,classes:_}})})}},VX={mixout:function(){return{icon:BX(WX)}},hooks:function(){return{mutationObserverCallbacks:function(t){return t.treeCallback=O5,t.nodeCallback=FX,t}}},provides:function(e){e.i2svg=function(t){var i=t.node,s=i===void 0?Bi:i,o=t.callback,r=o===void 0?function(){}:o;return O5(s,r)},e.generateSvgReplacementMutation=function(t,i){var s=i.iconName,o=i.title,r=i.titleId,a=i.prefix,l=i.transform,c=i.symbol,d=i.mask,u=i.maskId,h=i.extra;return new Promise(function(f,g){Promise.all([BE(s,a),d.iconName?BE(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(p){var _=iM(p,2),v=_[0],b=_[1];f([t,hM({icons:{main:v,mask:b},prefix:a,iconName:s,transform:l,symbol:c,maskId:u,title:o,titleId:r,extra:h,watchable:!0})])}).catch(g)})},e.generateAbstractIcon=function(t){var i=t.children,s=t.attributes,o=t.main,r=t.transform,a=t.styles,l=Xx(a);l.length>0&&(s.style=l);var c;return lM(r)&&(c=fc("generateAbstractTransformGrouping",{main:o,transform:r,containerWidth:o.width,iconWidth:o.width})),i.push(c||o.icon),{children:i,attributes:s}}}},zX={mixout:function(){return{layer:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=i.classes,o=s===void 0?[]:s;return eL({type:"layer"},function(){cf("beforeDOMElementCreation",{assembler:t,params:i});var r=[];return t(function(a){Array.isArray(a)?a.map(function(l){r=r.concat(l.abstract)}):r=r.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(ze.cssPrefix,"-layers")].concat(u1(o)).join(" ")},children:r}]})}}}},HX={mixout:function(){return{counter:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=i.title,o=s===void 0?null:s,r=i.classes,a=r===void 0?[]:r,l=i.attributes,c=l===void 0?{}:l,d=i.styles,u=d===void 0?{}:d;return eL({type:"counter",content:t},function(){return cf("beforeDOMElementCreation",{content:t,params:i}),wX({content:t.toString(),title:o,extra:{attributes:c,styles:u,classes:["".concat(ze.cssPrefix,"-layers-counter")].concat(u1(a))}})})}}}},$X={mixout:function(){return{text:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=i.transform,o=s===void 0?Fa:s,r=i.title,a=r===void 0?null:r,l=i.classes,c=l===void 0?[]:l,d=i.attributes,u=d===void 0?{}:d,h=i.styles,f=h===void 0?{}:h;return eL({type:"text",content:t},function(){return cf("beforeDOMElementCreation",{content:t,params:i}),I5({content:t,transform:Me(Me({},Fa),o),title:a,extra:{attributes:u,styles:f,classes:["".concat(ze.cssPrefix,"-layers-text")].concat(u1(c))}})})}}},provides:function(e){e.generateLayersText=function(t,i){var s=i.title,o=i.transform,r=i.extra,a=null,l=null;if(gW){var c=parseInt(getComputedStyle(t).fontSize,10),d=t.getBoundingClientRect();a=d.width/c,l=d.height/c}return ze.autoA11y&&!s&&(r.attributes["aria-hidden"]="true"),Promise.resolve([t,I5({content:t.innerHTML,width:a,height:l,transform:o,title:s,extra:r,watchable:!0})])}}},UX=new RegExp('"',"ug"),F5=[1105920,1112319];function jX(n){var e=n.replace(UX,""),t=sX(e,0),i=t>=F5[0]&&t<=F5[1],s=e.length===2?e[0]===e[1]:!1;return{value:RE(s?e[0]:e),isSecondary:i||s}}function B5(n,e){var t="".concat(MZ).concat(e.replace(":","-"));return new Promise(function(i,s){if(n.getAttribute(t)!==null)return i();var o=jm(n.children),r=o.filter(function(x){return x.getAttribute(NE)===e})[0],a=Vd.getComputedStyle(n,e),l=a.getPropertyValue("font-family").match(WZ),c=a.getPropertyValue("font-weight"),d=a.getPropertyValue("content");if(r&&!l)return n.removeChild(r),i();if(l&&d!=="none"&&d!==""){var u=a.getPropertyValue("content"),h=~["Sharp"].indexOf(l[2])?nn:Pi,f=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?ob[h][l[2].toLowerCase()]:VZ[h][c],g=jX(u),p=g.value,_=g.isSecondary,v=l[0].startsWith("FontAwesome"),b=dM(f,p),y=b;if(v){var w=uX(p);w.iconName&&w.prefix&&(b=w.iconName,f=w.prefix)}if(b&&!_&&(!r||r.getAttribute(sM)!==f||r.getAttribute(oM)!==y)){n.setAttribute(t,y),r&&n.removeChild(r);var C=PX(),L=C.extra;L.attributes[NE]=e,BE(b,f).then(function(x){var D=hM(Me(Me({},C),{},{icons:{main:x,mask:uM()},prefix:f,iconName:y,extra:L,watchable:!0})),k=Bi.createElementNS("http://www.w3.org/2000/svg","svg");e==="::before"?n.insertBefore(k,n.firstChild):n.appendChild(k),k.outerHTML=D.map(function(P){return f1(P)}).join(` -`),n.removeAttribute(t),i()}).catch(s)}else i()}else i()})}function qX(n){return Promise.all([B5(n,"::before"),B5(n,"::after")])}function GX(n){return n.parentNode!==document.head&&!~OZ.indexOf(n.tagName.toUpperCase())&&!n.getAttribute(NE)&&(!n.parentNode||n.parentNode.tagName!=="svg")}function W5(n){if(vc)return new Promise(function(e,t){var i=jm(n.querySelectorAll("*")).filter(GX).map(qX),s=fM.begin("searchPseudoElements");PW(),Promise.all(i).then(function(){s(),VE(),e()}).catch(function(){s(),VE(),t()})})}var KX={hooks:function(){return{mutationObserverCallbacks:function(t){return t.pseudoElementsCallback=W5,t}}},provides:function(e){e.pseudoElements2svg=function(t){var i=t.node,s=i===void 0?Bi:i;ze.searchPseudoElements&&W5(s)}}},V5=!1,YX={mixout:function(){return{dom:{unwatch:function(){PW(),V5=!0}}}},hooks:function(){return{bootstrap:function(){M5(PE("mutationObserverCallbacks",{}))},noAuto:function(){TX()},watch:function(t){var i=t.observeMutationsRoot;V5?VE():M5(PE("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},z5=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce(function(i,s){var o=s.toLowerCase().split("-"),r=o[0],a=o.slice(1).join("-");if(r&&a==="h")return i.flipX=!0,i;if(r&&a==="v")return i.flipY=!0,i;if(a=parseFloat(a),isNaN(a))return i;switch(r){case"grow":i.size=i.size+a;break;case"shrink":i.size=i.size-a;break;case"left":i.x=i.x-a;break;case"right":i.x=i.x+a;break;case"up":i.y=i.y-a;break;case"down":i.y=i.y+a;break;case"rotate":i.rotate=i.rotate+a;break}return i},t)},ZX={mixout:function(){return{parse:{transform:function(t){return z5(t)}}}},hooks:function(){return{parseNodeAttributes:function(t,i){var s=i.getAttribute("data-fa-transform");return s&&(t.transform=z5(s)),t}}},provides:function(e){e.generateAbstractTransformGrouping=function(t){var i=t.main,s=t.transform,o=t.containerWidth,r=t.iconWidth,a={transform:"translate(".concat(o/2," 256)")},l="translate(".concat(s.x*32,", ").concat(s.y*32,") "),c="scale(".concat(s.size/16*(s.flipX?-1:1),", ").concat(s.size/16*(s.flipY?-1:1),") "),d="rotate(".concat(s.rotate," 0 0)"),u={transform:"".concat(l," ").concat(c," ").concat(d)},h={transform:"translate(".concat(r/2*-1," -256)")},f={outer:a,inner:u,path:h};return{tag:"g",attributes:Me({},f.outer),children:[{tag:"g",attributes:Me({},f.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:Me(Me({},i.icon.attributes),f.path)}]}]}}}},wk={x:0,y:0,width:"100%",height:"100%"};function H5(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n.attributes&&(n.attributes.fill||e)&&(n.attributes.fill="black"),n}function XX(n){return n.tag==="g"?n.children:[n]}var QX={hooks:function(){return{parseNodeAttributes:function(t,i){var s=i.getAttribute("data-fa-mask"),o=s?Jx(s.split(" ").map(function(r){return r.trim()})):uM();return o.prefix||(o.prefix=zd()),t.mask=o,t.maskId=i.getAttribute("data-fa-mask-id"),t}}},provides:function(e){e.generateAbstractMask=function(t){var i=t.children,s=t.attributes,o=t.main,r=t.mask,a=t.maskId,l=t.transform,c=o.width,d=o.icon,u=r.width,h=r.icon,f=XZ({transform:l,containerWidth:u,iconWidth:c}),g={tag:"rect",attributes:Me(Me({},wk),{},{fill:"white"})},p=d.children?{children:d.children.map(H5)}:{},_={tag:"g",attributes:Me({},f.inner),children:[H5(Me({tag:d.tag,attributes:Me(Me({},d.attributes),f.path)},p))]},v={tag:"g",attributes:Me({},f.outer),children:[_]},b="mask-".concat(a||lb()),y="clip-".concat(a||lb()),w={tag:"mask",attributes:Me(Me({},wk),{},{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[g,v]},C={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:XX(h)},w]};return i.push(C,{tag:"rect",attributes:Me({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(b,")")},wk)}),{children:i,attributes:s}}}},JX={provides:function(e){var t=!1;Vd.matchMedia&&(t=Vd.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var i=[],s={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};i.push({tag:"path",attributes:Me(Me({},s),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var r=Me(Me({},o),{},{attributeName:"opacity"}),a={tag:"circle",attributes:Me(Me({},s),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:Me(Me({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Me(Me({},r),{},{values:"1;0;1;1;0;1;"})}),i.push(a),i.push({tag:"path",attributes:Me(Me({},s),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Me(Me({},r),{},{values:"1;0;0;0;0;1;"})}]}),t||i.push({tag:"path",attributes:Me(Me({},s),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Me(Me({},r),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:i}}}},eQ={hooks:function(){return{parseNodeAttributes:function(t,i){var s=i.getAttribute("data-fa-symbol"),o=s===null?!1:s===""?!0:s;return t.symbol=o,t}}}},tQ=[eX,VX,zX,HX,$X,KX,YX,ZX,QX,JX,eQ];gX(tQ,{mixoutsTo:Zo});Zo.noAuto;Zo.config;Zo.library;Zo.dom;Zo.parse;Zo.findIconDefinition;Zo.toHtml;var $5=Zo.icon;Zo.layer;Zo.text;Zo.counter;var iQ={prefix:"fas",iconName:"table-columns",icon:[512,512,["columns"],"f0db","M0 96C0 60.7 28.7 32 64 32H448c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96zm64 64V416H224V160H64zm384 0H288V416H448V160z"]},nQ=iQ,sQ={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},oQ=sQ;function uu(n,e,t){return n.fields=e||[],n.fname=t,n}function rQ(n){return n==null?null:n.fname}function aQ(n){return n==null?null:n.fields}function lQ(n){return n.length===1?cQ(n[0]):dQ(n)}const cQ=n=>function(e){return e[n]},dQ=n=>{const e=n.length;return function(t){for(let i=0;i r?c():r=a+1:l==="["?(a>r&&c(),s=r=a+1):l==="]"&&(s||Nn("Access path missing open bracket: "+n),s>0&&c(),s=0,r=a+1)}return s&&Nn("Access path missing closing bracket: "+n),i&&Nn("Access path missing closing quote: "+n),a>r&&(a++,c()),e}function tL(n,e,t){const i=uQ(n);return n=i.length===1?i[0]:n,uu((t&&t.get||lQ)(i),[n],e||n)}tL("id");const iL=uu(n=>n,[],"identity");uu(()=>0,[],"zero");uu(()=>1,[],"one");uu(()=>!0,[],"true");uu(()=>!1,[],"false");var Ps=Array.isArray;function Os(n){return n===Object(n)}function sa(n){return n[n.length-1]}function cb(n){return n==null||n===""?null:+n}const FW=n=>e=>n*Math.exp(e),BW=n=>e=>Math.log(n*e),hQ=n=>e=>Math.sign(e)*Math.log1p(Math.abs(e/n)),fQ=n=>e=>Math.sign(e)*Math.expm1(Math.abs(e))*n,KC=n=>e=>e<0?-Math.pow(-e,n):Math.pow(e,n);function pM(n,e,t,i){const s=t(n[0]),o=t(sa(n)),r=(o-s)*e;return[i(s-r),i(o-r)]}function gQ(n,e){return pM(n,e,cb,iL)}function pQ(n,e){var t=Math.sign(n[0]);return pM(n,e,BW(t),FW(t))}function mQ(n,e,t){return pM(n,e,KC(t),KC(1/t))}function nL(n,e,t,i,s){const o=i(n[0]),r=i(sa(n)),a=e!=null?i(e):(o+r)/2;return[s(a+(o-a)*t),s(a+(r-a)*t)]}function WW(n,e,t){return nL(n,e,t,cb,iL)}function VW(n,e,t){const i=Math.sign(n[0]);return nL(n,e,t,BW(i),FW(i))}function zE(n,e,t,i){return nL(n,e,t,KC(i),KC(1/i))}function _Q(n,e,t,i){return nL(n,e,t,hQ(i),fQ(i))}function HE(n){return n!=null?Ps(n)?n:[n]:[]}function bQ(n,e,t){let i=n[0],s=n[1],o;return s=t-e?[e,t]:[i=Math.min(Math.max(i,e),t-o),i+o]}function gr(n){return typeof n=="function"}const vQ="descending";function zW(n,e,t){t=t||{},e=HE(e)||[];const i=[],s=[],o={},r=t.comparator||yQ;return HE(n).forEach((a,l)=>{a!=null&&(i.push(e[l]===vQ?-1:1),s.push(a=gr(a)?a:tL(a,null,t)),(aQ(a)||[]).forEach(c=>o[c]=1))}),s.length===0?null:uu(r(s,i),Object.keys(o))}const HW=(n,e)=>(n e||e==null)&&n!=null?1:(e=e instanceof Date?+e:e,(n=n instanceof Date?+n:n)!==n&&e===e?-1:e!==e&&n===n?1:0),yQ=(n,e)=>n.length===1?wQ(n[0],e[0]):CQ(n,e,n.length),wQ=(n,e)=>function(t,i){return HW(n(t),n(i))*e},CQ=(n,e,t)=>(e.push(0),function(i,s){let o,r=0,a=-1;for(;r===0&&++a to(n)||LQ(n)?n:Date.parse(n);function IQ(n,e){return e=e||AQ,n==null||n===""?null:e(n)}function TQ(n){return n==null||n===""?null:n+""}function ZC(n){const e={},t=n.length;for(let i=0;i 9999?"+"+fo(n,6):fo(n,4)}function MQ(n){var e=n.getUTCHours(),t=n.getUTCMinutes(),i=n.getUTCSeconds(),s=n.getUTCMilliseconds();return isNaN(n)?"Invalid Date":RQ(n.getUTCFullYear())+"-"+fo(n.getUTCMonth()+1,2)+"-"+fo(n.getUTCDate(),2)+(s?"T"+fo(e,2)+":"+fo(t,2)+":"+fo(i,2)+"."+fo(s,3)+"Z":i?"T"+fo(e,2)+":"+fo(t,2)+":"+fo(i,2)+"Z":t||e?"T"+fo(e,2)+":"+fo(t,2)+"Z":"")}function jW(n){var e=new RegExp('["'+n+` -\r]`),t=n.charCodeAt(0);function i(u,h){var f,g,p=s(u,function(_,v){if(f)return f(_,v-1);g=_,f=h?NQ(_,h):UW(_)});return p.columns=g||[],p}function s(u,h){var f=[],g=u.length,p=0,_=0,v,b=g<=0,y=!1;u.charCodeAt(g-1)===p0&&--g,u.charCodeAt(g-1)===xk&&--g;function w(){if(b)return Ck;if(y)return y=!1,U5;var L,x=p,D;if(u.charCodeAt(x)===Sk){for(;p++ =g?b=!0:(D=u.charCodeAt(p++))===p0?y=!0:D===xk&&(y=!0,u.charCodeAt(p)===p0&&++p),u.slice(x+1,L-1).replace(/""/g,'"')}for(;p n())};let WC=!1;vc&&(WC=(Fi.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Fi.readyState),WC||Fi.addEventListener("DOMContentLoaded",CW));function cX(n){vc&&(WC?setTimeout(n,0):wW.push(n))}function p1(n){const{tag:e,attributes:t={},children:i=[]}=n;return typeof n=="string"?vW(n):"<".concat(e," ").concat(sX(t),">").concat(i.map(p1).join(""),"").concat(e,">")}function x5(n,e,t){if(n&&n[e]&&n[e][t])return{prefix:e,iconName:t,icon:n[e][t]}}var fk=function(e,t,i,s){var o=Object.keys(e),r=o.length,a=t,l,c,d;for(i===void 0?(l=1,d=e[o[0]]):(l=0,d=i);l =55296&&s<=56319&&t=55296&&i<=56319&&t>e+1&&(s=n.charCodeAt(e+1),s>=56320&&s<=57343)?(i-55296)*1024+s-56320+65536:i}function L5(n){return Object.keys(n).reduce((e,t)=>{const i=n[t];return!!i.icon?e[i.iconName]=i.icon:e[t]=i,e},{})}function TE(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:i=!1}=t,s=L5(e);typeof Oa.hooks.addPack=="function"&&!i?Oa.hooks.addPack(n,L5(e)):Oa.styles[n]={...Oa.styles[n]||{},...s},n==="fas"&&TE("fa",e)}const{styles:ah,shims:hX}=Oa,fX={[$i]:Object.values($h[$i]),[Bo]:Object.values($h[Bo]),[Wo]:Object.values($h[Wo])};let aM=null,SW={},xW={},LW={},DW={},kW={};const gX={[$i]:Object.keys(Hh[$i]),[Bo]:Object.keys(Hh[Bo]),[Wo]:Object.keys(Hh[Wo])};function pX(n){return~QZ.indexOf(n)}function mX(n,e){const t=e.split("-"),i=t[0],s=t.slice(1).join("-");return i===n&&s!==""&&!pX(s)?s:null}const EW=()=>{const n=i=>fk(ah,(s,o,r)=>(s[r]=fk(o,i,{}),s),{});SW=n((i,s,o)=>(s[3]&&(i[s[3]]=o),s[2]&&s[2].filter(a=>typeof a=="number").forEach(a=>{i[a.toString(16)]=o}),i)),xW=n((i,s,o)=>(i[o]=o,s[2]&&s[2].filter(a=>typeof a=="string").forEach(a=>{i[a]=o}),i)),kW=n((i,s,o)=>{const r=s[2];return i[o]=o,r.forEach(a=>{i[a]=o}),i});const e="far"in ah||Be.autoFetchSvg,t=fk(hX,(i,s)=>{const o=s[0];let r=s[1];const a=s[2];return r==="far"&&!e&&(r="fas"),typeof o=="string"&&(i.names[o]={prefix:r,iconName:a}),typeof o=="number"&&(i.unicodes[o.toString(16)]={prefix:r,iconName:a}),i},{names:{},unicodes:{}});LW=t.names,DW=t.unicodes,aM=jx(Be.styleDefault,{family:Be.familyDefault})};tX(n=>{aM=jx(n.styleDefault,{family:Be.familyDefault})});EW();function lM(n,e){return(SW[n]||{})[e]}function _X(n,e){return(xW[n]||{})[e]}function ad(n,e){return(kW[n]||{})[e]}function AW(n){return LW[n]||{prefix:null,iconName:null}}function bX(n){const e=DW[n],t=lM("fas",n);return e||(t?{prefix:"fas",iconName:t}:null)||{prefix:null,iconName:null}}function Hd(){return aM}const cM=()=>({prefix:null,iconName:null,rest:[]});function jx(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:t=$i}=e,i=Hh[t][n],s=cb[t][n]||cb[t][i],o=n in Oa.styles?n:null;return s||o||null}const vX={[$i]:Object.keys($h[$i]),[Bo]:Object.keys($h[Bo]),[Wo]:Object.keys($h[Wo])};function qx(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:t=!1}=e,i={[$i]:"".concat(Be.cssPrefix,"-").concat($i),[Bo]:"".concat(Be.cssPrefix,"-").concat(Bo),[Wo]:"".concat(Be.cssPrefix,"-").concat(Wo)};let s=null,o=$i;const r=kZ.filter(l=>l!==cW);r.forEach(l=>{(n.includes(i[l])||n.some(c=>vX[l].includes(c)))&&(o=l)});const a=n.reduce((l,c)=>{const d=mX(Be.cssPrefix,c);if(ah[c]?(c=fX[o].includes(c)?GZ[o][c]:c,s=c,l.prefix=c):gX[o].indexOf(c)>-1?(s=c,l.prefix=jx(c,{family:o})):d?l.iconName=d:c!==Be.replacementClass&&!r.some(u=>c===i[u])&&l.rest.push(c),!t&&l.prefix&&l.iconName){const u=s==="fa"?AW(l.iconName):{},h=ad(l.prefix,l.iconName);u.prefix&&(s=null),l.iconName=u.iconName||h||l.iconName,l.prefix=u.prefix||l.prefix,l.prefix==="far"&&!ah.far&&ah.fas&&!Be.autoFetchSvg&&(l.prefix="fas")}return l},cM());return(n.includes("fa-brands")||n.includes("fab"))&&(a.prefix="fab"),(n.includes("fa-duotone")||n.includes("fad"))&&(a.prefix="fad"),!a.prefix&&o===Bo&&(ah.fass||Be.autoFetchSvg)&&(a.prefix="fass",a.iconName=ad(a.prefix,a.iconName)||a.iconName),!a.prefix&&o===Wo&&(ah.fasds||Be.autoFetchSvg)&&(a.prefix="fasds",a.iconName=ad(a.prefix,a.iconName)||a.iconName),(a.prefix==="fa"||s==="fa")&&(a.prefix=Hd()||"fas"),a}class yX{constructor(){this.definitions={}}add(){for(var e=arguments.length,t=new Array(e),i=0;i {this.definitions[o]={...this.definitions[o]||{},...s[o]},TE(o,s[o]);const r=$h[$i][o];r&&TE(r,s[o]),EW()})}reset(){this.definitions={}}_pullDefinitions(e,t){const i=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(i).map(s=>{const{prefix:o,iconName:r,icon:a}=i[s],l=a[2];e[o]||(e[o]={}),l.length>0&&l.forEach(c=>{typeof c=="string"&&(e[o][c]=a)}),e[o][r]=a}),e}}let D5=[],Mg={};const cp={},wX=Object.keys(cp);function CX(n,e){let{mixoutsTo:t}=e;return D5=n,Mg={},Object.keys(cp).forEach(i=>{wX.indexOf(i)===-1&&delete cp[i]}),D5.forEach(i=>{const s=i.mixout?i.mixout():{};if(Object.keys(s).forEach(o=>{typeof s[o]=="function"&&(t[o]=s[o]),typeof s[o]=="object"&&Object.keys(s[o]).forEach(r=>{t[o]||(t[o]={}),t[o][r]=s[o][r]})}),i.hooks){const o=i.hooks();Object.keys(o).forEach(r=>{Mg[r]||(Mg[r]=[]),Mg[r].push(o[r])})}i.provides&&i.provides(cp)}),t}function NE(n,e){for(var t=arguments.length,i=new Array(t>2?t-2:0),s=2;s {e=r.apply(null,[e,...i])}),e}function hf(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),i=1;i {o.apply(null,t)})}function $d(){const n=arguments[0],e=Array.prototype.slice.call(arguments,1);return cp[n]?cp[n].apply(null,e):void 0}function RE(n){n.prefix==="fa"&&(n.prefix="fas");let{iconName:e}=n;const t=n.prefix||Hd();if(e)return e=ad(t,e)||e,x5(IW.definitions,t,e)||x5(Oa.styles,t,e)}const IW=new yX,SX=()=>{Be.autoReplaceSvg=!1,Be.observeMutations=!1,hf("noAuto")},xX={i2svg:function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return vc?(hf("beforeI2svg",n),$d("pseudoElements2svg",n),$d("i2svg",n)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:e}=n;Be.autoReplaceSvg===!1&&(Be.autoReplaceSvg=!0),Be.observeMutations=!0,cX(()=>{DX({autoReplaceSvgRoot:e}),hf("watch",n)})}},LX={icon:n=>{if(n===null)return null;if(typeof n=="object"&&n.prefix&&n.iconName)return{prefix:n.prefix,iconName:ad(n.prefix,n.iconName)||n.iconName};if(Array.isArray(n)&&n.length===2){const e=n[1].indexOf("fa-")===0?n[1].slice(3):n[1],t=jx(n[0]);return{prefix:t,iconName:ad(t,e)||e}}if(typeof n=="string"&&(n.indexOf("".concat(Be.cssPrefix,"-"))>-1||n.match(KZ))){const e=qx(n.split(" "),{skipLookups:!0});return{prefix:e.prefix||Hd(),iconName:ad(e.prefix,e.iconName)||e.iconName}}if(typeof n=="string"){const e=Hd();return{prefix:e,iconName:ad(e,n)||n}}}},Yo={noAuto:SX,config:Be,dom:xX,parse:LX,library:IW,findIconDefinition:RE,toHtml:p1},DX=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:e=Fi}=n;(Object.keys(Oa.styles).length>0||Be.autoFetchSvg)&&vc&&Be.autoReplaceSvg&&Yo.dom.i2svg({node:e})};function Gx(n,e){return Object.defineProperty(n,"abstract",{get:e}),Object.defineProperty(n,"html",{get:function(){return n.abstract.map(t=>p1(t))}}),Object.defineProperty(n,"node",{get:function(){if(!vc)return;const t=Fi.createElement("div");return t.innerHTML=n.html,t.children}}),n}function kX(n){let{children:e,main:t,mask:i,attributes:s,styles:o,transform:r}=n;if(rM(r)&&t.found&&!i.found){const{width:a,height:l}=t,c={x:a/l/2,y:.5};s.style=Ux({...o,"transform-origin":"".concat(c.x+r.x/16,"em ").concat(c.y+r.y/16,"em")})}return[{tag:"svg",attributes:s,children:e}]}function EX(n){let{prefix:e,iconName:t,children:i,attributes:s,symbol:o}=n;const r=o===!0?"".concat(e,"-").concat(Be.cssPrefix,"-").concat(t):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...s,id:r},children:i}]}]}function dM(n){const{icons:{main:e,mask:t},prefix:i,iconName:s,transform:o,symbol:r,title:a,maskId:l,titleId:c,extra:d,watchable:u=!1}=n,{width:h,height:f}=t.found?t:e,g=i==="fak",p=[Be.replacementClass,s?"".concat(Be.cssPrefix,"-").concat(s):""].filter(S=>d.classes.indexOf(S)===-1).filter(S=>S!==""||!!S).concat(d.classes).join(" ");let _={children:[],attributes:{...d.attributes,"data-prefix":i,"data-icon":s,class:p,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(h," ").concat(f)}};const v=g&&!~d.classes.indexOf("fa-fw")?{width:"".concat(h/f*16*.0625,"em")}:{};u&&(_.attributes[uf]=""),a&&(_.children.push({tag:"title",attributes:{id:_.attributes["aria-labelledby"]||"title-".concat(c||db())},children:[a]}),delete _.attributes.title);const b={..._,prefix:i,iconName:s,main:e,mask:t,maskId:l,transform:o,symbol:r,styles:{...v,...d.styles}},{children:y,attributes:w}=t.found&&e.found?$d("generateAbstractMask",b)||{children:[],attributes:{}}:$d("generateAbstractIcon",b)||{children:[],attributes:{}};return b.children=y,b.attributes=w,r?EX(b):kX(b)}function k5(n){const{content:e,width:t,height:i,transform:s,title:o,extra:r,watchable:a=!1}=n,l={...r.attributes,...o?{title:o}:{},class:r.classes.join(" ")};a&&(l[uf]="");const c={...r.styles};rM(s)&&(c.transform=rX({transform:s,startCentered:!0,width:t,height:i}),c["-webkit-transform"]=c.transform);const d=Ux(c);d.length>0&&(l.style=d);const u=[];return u.push({tag:"span",attributes:l,children:[e]}),o&&u.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),u}function AX(n){const{content:e,title:t,extra:i}=n,s={...i.attributes,...t?{title:t}:{},class:i.classes.join(" ")},o=Ux(i.styles);o.length>0&&(s.style=o);const r=[];return r.push({tag:"span",attributes:s,children:[e]}),t&&r.push({tag:"span",attributes:{class:"sr-only"},children:[t]}),r}const{styles:gk}=Oa;function ME(n){const e=n[0],t=n[1],[i]=n.slice(4);let s=null;return Array.isArray(i)?s={tag:"g",attributes:{class:"".concat(Be.cssPrefix,"-").concat(uk.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Be.cssPrefix,"-").concat(uk.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(Be.cssPrefix,"-").concat(uk.PRIMARY),fill:"currentColor",d:i[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:e,height:t,icon:s}}const IX={found:!1,width:512,height:512};function TX(n,e){!gW&&!Be.showMissingIcons&&n&&console.error('Icon with name "'.concat(n,'" and prefix "').concat(e,'" is missing.'))}function PE(n,e){let t=e;return e==="fa"&&Be.styleDefault!==null&&(e=Hd()),new Promise((i,s)=>{if(t==="fa"){const o=AW(n)||{};n=o.iconName||n,e=o.prefix||e}if(n&&e&&gk[e]&&gk[e][n]){const o=gk[e][n];return i(ME(o))}TX(n,e),i({...IX,icon:Be.showMissingIcons&&n?$d("missingIconAbstract")||{}:{}})})}const E5=()=>{},OE=Be.measurePerformance&&Sy&&Sy.mark&&Sy.measure?Sy:{mark:E5,measure:E5},J0='FA "6.6.0"',NX=n=>(OE.mark("".concat(J0," ").concat(n," begins")),()=>TW(n)),TW=n=>{OE.mark("".concat(J0," ").concat(n," ends")),OE.measure("".concat(J0," ").concat(n),"".concat(J0," ").concat(n," begins"),"".concat(J0," ").concat(n," ends"))};var uM={begin:NX,end:TW};const Gw=()=>{};function A5(n){return typeof(n.getAttribute?n.getAttribute(uf):null)=="string"}function RX(n){const e=n.getAttribute?n.getAttribute(nM):null,t=n.getAttribute?n.getAttribute(sM):null;return e&&t}function MX(n){return n&&n.classList&&n.classList.contains&&n.classList.contains(Be.replacementClass)}function PX(){return Be.autoReplaceSvg===!0?Kw.replace:Kw[Be.autoReplaceSvg]||Kw.replace}function OX(n){return Fi.createElementNS("http://www.w3.org/2000/svg",n)}function FX(n){return Fi.createElement(n)}function NW(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:t=n.tag==="svg"?OX:FX}=e;if(typeof n=="string")return Fi.createTextNode(n);const i=t(n.tag);return Object.keys(n.attributes||[]).forEach(function(o){i.setAttribute(o,n.attributes[o])}),(n.children||[]).forEach(function(o){i.appendChild(NW(o,{ceFn:t}))}),i}function BX(n){let e=" ".concat(n.outerHTML," ");return e="".concat(e,"Font Awesome fontawesome.com "),e}const Kw={replace:function(n){const e=n[0];if(e.parentNode)if(n[1].forEach(t=>{e.parentNode.insertBefore(NW(t),e)}),e.getAttribute(uf)===null&&Be.keepOriginalSource){let t=Fi.createComment(BX(e));e.parentNode.replaceChild(t,e)}else e.remove()},nest:function(n){const e=n[0],t=n[1];if(~oM(e).indexOf(Be.replacementClass))return Kw.replace(n);const i=new RegExp("".concat(Be.cssPrefix,"-.*"));if(delete t[0].attributes.id,t[0].attributes.class){const o=t[0].attributes.class.split(" ").reduce((r,a)=>(a===Be.replacementClass||a.match(i)?r.toSvg.push(a):r.toNode.push(a),r),{toNode:[],toSvg:[]});t[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?e.removeAttribute("class"):e.setAttribute("class",o.toNode.join(" "))}const s=t.map(o=>p1(o)).join(` +`);e.setAttribute(uf,""),e.innerHTML=s}};function I5(n){n()}function RW(n,e){const t=typeof e=="function"?e:Gw;if(n.length===0)t();else{let i=I5;Be.mutateApproach===jZ&&(i=zd.requestAnimationFrame||I5),i(()=>{const s=PX(),o=uM.begin("mutate");n.map(s),o(),t()})}}let hM=!1;function MW(){hM=!0}function FE(){hM=!1}let VC=null;function T5(n){if(!v5||!Be.observeMutations)return;const{treeCallback:e=Gw,nodeCallback:t=Gw,pseudoElementsCallback:i=Gw,observeMutationsRoot:s=Fi}=n;VC=new v5(o=>{if(hM)return;const r=Hd();Ym(o).forEach(a=>{if(a.type==="childList"&&a.addedNodes.length>0&&!A5(a.addedNodes[0])&&(Be.searchPseudoElements&&i(a.target),e(a.target)),a.type==="attributes"&&a.target.parentNode&&Be.searchPseudoElements&&i(a.target.parentNode),a.type==="attributes"&&A5(a.target)&&~XZ.indexOf(a.attributeName))if(a.attributeName==="class"&&RX(a.target)){const{prefix:l,iconName:c}=qx(oM(a.target));a.target.setAttribute(nM,l||r),c&&a.target.setAttribute(sM,c)}else MX(a.target)&&t(a.target)})}),vc&&VC.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function WX(){VC&&VC.disconnect()}function VX(n){const e=n.getAttribute("style");let t=[];return e&&(t=e.split(";").reduce((i,s)=>{const o=s.split(":"),r=o[0],a=o.slice(1);return r&&a.length>0&&(i[r]=a.join(":").trim()),i},{})),t}function zX(n){const e=n.getAttribute("data-prefix"),t=n.getAttribute("data-icon"),i=n.innerText!==void 0?n.innerText.trim():"";let s=qx(oM(n));return s.prefix||(s.prefix=Hd()),e&&t&&(s.prefix=e,s.iconName=t),s.iconName&&s.prefix||(s.prefix&&i.length>0&&(s.iconName=_X(s.prefix,n.innerText)||lM(s.prefix,IE(n.innerText))),!s.iconName&&Be.autoFetchSvg&&n.firstChild&&n.firstChild.nodeType===Node.TEXT_NODE&&(s.iconName=n.firstChild.data)),s}function HX(n){const e=Ym(n.attributes).reduce((s,o)=>(s.name!=="class"&&s.name!=="style"&&(s[o.name]=o.value),s),{}),t=n.getAttribute("title"),i=n.getAttribute("data-fa-title-id");return Be.autoA11y&&(t?e["aria-labelledby"]="".concat(Be.replacementClass,"-title-").concat(i||db()):(e["aria-hidden"]="true",e.focusable="false")),e}function $X(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Pa,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function N5(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:t,prefix:i,rest:s}=zX(n),o=HX(n),r=NE("parseNodeAttributes",{},n);let a=e.styleParser?VX(n):[];return{iconName:t,title:n.getAttribute("title"),titleId:n.getAttribute("data-fa-title-id"),prefix:i,transform:Pa,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:a,attributes:o},...r}}const{styles:UX}=Oa;function PW(n){const e=Be.autoReplaceSvg==="nest"?N5(n,{styleParser:!1}):N5(n);return~e.extra.classes.indexOf(_W)?$d("generateLayersText",n,e):$d("generateSvgReplacementMutation",n,e)}let Qa=new Set;pW.map(n=>{Qa.add("fa-".concat(n))});Object.keys(Hh[$i]).map(Qa.add.bind(Qa));Object.keys(Hh[Bo]).map(Qa.add.bind(Qa));Object.keys(Hh[Wo]).map(Qa.add.bind(Qa));Qa=[...Qa];function R5(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!vc)return Promise.resolve();const t=Fi.documentElement.classList,i=d=>t.add("".concat(C5,"-").concat(d)),s=d=>t.remove("".concat(C5,"-").concat(d)),o=Be.autoFetchSvg?Qa:pW.map(d=>"fa-".concat(d)).concat(Object.keys(UX));o.includes("fa")||o.push("fa");const r=[".".concat(_W,":not([").concat(uf,"])")].concat(o.map(d=>".".concat(d,":not([").concat(uf,"])"))).join(", ");if(r.length===0)return Promise.resolve();let a=[];try{a=Ym(n.querySelectorAll(r))}catch{}if(a.length>0)i("pending"),s("complete");else return Promise.resolve();const l=uM.begin("onTree"),c=a.reduce((d,u)=>{try{const h=PW(u);h&&d.push(h)}catch(h){gW||h.name==="MissingIcon"&&console.error(h)}return d},[]);return new Promise((d,u)=>{Promise.all(c).then(h=>{RW(h,()=>{i("active"),i("complete"),s("pending"),typeof e=="function"&&e(),l(),d()})}).catch(h=>{l(),u(h)})})}function jX(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;PW(n).then(t=>{t&&RW([t],e)})}function qX(n){return function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const i=(e||{}).icon?e:RE(e||{});let{mask:s}=t;return s&&(s=(s||{}).icon?s:RE(s||{})),n(i,{...t,mask:s})}}const GX=function(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:t=Pa,symbol:i=!1,mask:s=null,maskId:o=null,title:r=null,titleId:a=null,classes:l=[],attributes:c={},styles:d={}}=e;if(!n)return;const{prefix:u,iconName:h,icon:f}=n;return Gx({type:"icon",...n},()=>(hf("beforeDOMElementCreation",{iconDefinition:n,params:e}),Be.autoA11y&&(r?c["aria-labelledby"]="".concat(Be.replacementClass,"-title-").concat(a||db()):(c["aria-hidden"]="true",c.focusable="false")),dM({icons:{main:ME(f),mask:s?ME(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:u,iconName:h,transform:{...Pa,...t},symbol:i,title:r,maskId:o,titleId:a,extra:{attributes:c,styles:d,classes:l}})))};var KX={mixout(){return{icon:qX(GX)}},hooks(){return{mutationObserverCallbacks(n){return n.treeCallback=R5,n.nodeCallback=jX,n}}},provides(n){n.i2svg=function(e){const{node:t=Fi,callback:i=()=>{}}=e;return R5(t,i)},n.generateSvgReplacementMutation=function(e,t){const{iconName:i,title:s,titleId:o,prefix:r,transform:a,symbol:l,mask:c,maskId:d,extra:u}=t;return new Promise((h,f)=>{Promise.all([PE(i,r),c.iconName?PE(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(g=>{let[p,_]=g;h([e,dM({icons:{main:p,mask:_},prefix:r,iconName:i,transform:a,symbol:l,maskId:d,title:s,titleId:o,extra:u,watchable:!0})])}).catch(f)})},n.generateAbstractIcon=function(e){let{children:t,attributes:i,main:s,transform:o,styles:r}=e;const a=Ux(r);a.length>0&&(i.style=a);let l;return rM(o)&&(l=$d("generateAbstractTransformGrouping",{main:s,transform:o,containerWidth:s.width,iconWidth:s.width})),t.push(l||s.icon),{children:t,attributes:i}}}},YX={mixout(){return{layer(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:t=[]}=e;return Gx({type:"layer"},()=>{hf("beforeDOMElementCreation",{assembler:n,params:e});let i=[];return n(s=>{Array.isArray(s)?s.map(o=>{i=i.concat(o.abstract)}):i=i.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat(Be.cssPrefix,"-layers"),...t].join(" ")},children:i}]})}}}},ZX={mixout(){return{counter(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:t=null,classes:i=[],attributes:s={},styles:o={}}=e;return Gx({type:"counter",content:n},()=>(hf("beforeDOMElementCreation",{content:n,params:e}),AX({content:n.toString(),title:t,extra:{attributes:s,styles:o,classes:["".concat(Be.cssPrefix,"-layers-counter"),...i]}})))}}}},XX={mixout(){return{text(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:t=Pa,title:i=null,classes:s=[],attributes:o={},styles:r={}}=e;return Gx({type:"text",content:n},()=>(hf("beforeDOMElementCreation",{content:n,params:e}),k5({content:n,transform:{...Pa,...t},title:i,extra:{attributes:o,styles:r,classes:["".concat(Be.cssPrefix,"-layers-text"),...s]}})))}}},provides(n){n.generateLayersText=function(e,t){const{title:i,transform:s,extra:o}=t;let r=null,a=null;if(lW){const l=parseInt(getComputedStyle(e).fontSize,10),c=e.getBoundingClientRect();r=c.width/l,a=c.height/l}return Be.autoA11y&&!i&&(o.attributes["aria-hidden"]="true"),Promise.resolve([e,k5({content:e.innerHTML,width:r,height:a,transform:s,title:i,extra:o,watchable:!0})])}}};const QX=new RegExp('"',"ug"),M5=[1105920,1112319],P5={FontAwesome:{normal:"fas",400:"fas"},...RZ,...NZ,...zZ},BE=Object.keys(P5).reduce((n,e)=>(n[e.toLowerCase()]=P5[e],n),{}),JX=Object.keys(BE).reduce((n,e)=>{const t=BE[e];return n[e]=t[900]||[...Object.entries(t)][0][1],n},{});function eQ(n){const e=n.replace(QX,""),t=uX(e,0),i=t>=M5[0]&&t<=M5[1],s=e.length===2?e[0]===e[1]:!1;return{value:IE(s?e[0]:e),isSecondary:i||s}}function tQ(n,e){const t=n.replace(/^['"]|['"]$/g,"").toLowerCase(),i=parseInt(e),s=isNaN(i)?"normal":i;return(BE[t]||{})[s]||JX[t]}function O5(n,e){const t="".concat(UZ).concat(e.replace(":","-"));return new Promise((i,s)=>{if(n.getAttribute(t)!==null)return i();const r=Ym(n.children).filter(h=>h.getAttribute(DE)===e)[0],a=zd.getComputedStyle(n,e),l=a.getPropertyValue("font-family"),c=l.match(YZ),d=a.getPropertyValue("font-weight"),u=a.getPropertyValue("content");if(r&&!c)return n.removeChild(r),i();if(c&&u!=="none"&&u!==""){const h=a.getPropertyValue("content");let f=tQ(l,d);const{value:g,isSecondary:p}=eQ(h),_=c[0].startsWith("FontAwesome");let v=lM(f,g),b=v;if(_){const y=bX(g);y.iconName&&y.prefix&&(v=y.iconName,f=y.prefix)}if(v&&!p&&(!r||r.getAttribute(nM)!==f||r.getAttribute(sM)!==b)){n.setAttribute(t,b),r&&n.removeChild(r);const y=$X(),{extra:w}=y;w.attributes[DE]=e,PE(v,f).then(S=>{const L=dM({...y,icons:{main:S,mask:cM()},prefix:f,iconName:b,extra:w,watchable:!0}),x=Fi.createElementNS("http://www.w3.org/2000/svg","svg");e==="::before"?n.insertBefore(x,n.firstChild):n.appendChild(x),x.outerHTML=L.map(D=>p1(D)).join(` +`),n.removeAttribute(t),i()}).catch(s)}else i()}else i()})}function iQ(n){return Promise.all([O5(n,"::before"),O5(n,"::after")])}function nQ(n){return n.parentNode!==document.head&&!~qZ.indexOf(n.tagName.toUpperCase())&&!n.getAttribute(DE)&&(!n.parentNode||n.parentNode.tagName!=="svg")}function F5(n){if(vc)return new Promise((e,t)=>{const i=Ym(n.querySelectorAll("*")).filter(nQ).map(iQ),s=uM.begin("searchPseudoElements");MW(),Promise.all(i).then(()=>{s(),FE(),e()}).catch(()=>{s(),FE(),t()})})}var sQ={hooks(){return{mutationObserverCallbacks(n){return n.pseudoElementsCallback=F5,n}}},provides(n){n.pseudoElements2svg=function(e){const{node:t=Fi}=e;Be.searchPseudoElements&&F5(t)}}};let B5=!1;var oQ={mixout(){return{dom:{unwatch(){MW(),B5=!0}}}},hooks(){return{bootstrap(){T5(NE("mutationObserverCallbacks",{}))},noAuto(){WX()},watch(n){const{observeMutationsRoot:e}=n;B5?FE():T5(NE("mutationObserverCallbacks",{observeMutationsRoot:e}))}}}};const W5=n=>{let e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return n.toLowerCase().split(" ").reduce((t,i)=>{const s=i.toLowerCase().split("-"),o=s[0];let r=s.slice(1).join("-");if(o&&r==="h")return t.flipX=!0,t;if(o&&r==="v")return t.flipY=!0,t;if(r=parseFloat(r),isNaN(r))return t;switch(o){case"grow":t.size=t.size+r;break;case"shrink":t.size=t.size-r;break;case"left":t.x=t.x-r;break;case"right":t.x=t.x+r;break;case"up":t.y=t.y-r;break;case"down":t.y=t.y+r;break;case"rotate":t.rotate=t.rotate+r;break}return t},e)};var rQ={mixout(){return{parse:{transform:n=>W5(n)}}},hooks(){return{parseNodeAttributes(n,e){const t=e.getAttribute("data-fa-transform");return t&&(n.transform=W5(t)),n}}},provides(n){n.generateAbstractTransformGrouping=function(e){let{main:t,transform:i,containerWidth:s,iconWidth:o}=e;const r={transform:"translate(".concat(s/2," 256)")},a="translate(".concat(i.x*32,", ").concat(i.y*32,") "),l="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),c="rotate(".concat(i.rotate," 0 0)"),d={transform:"".concat(a," ").concat(l," ").concat(c)},u={transform:"translate(".concat(o/2*-1," -256)")},h={outer:r,inner:d,path:u};return{tag:"g",attributes:{...h.outer},children:[{tag:"g",attributes:{...h.inner},children:[{tag:t.icon.tag,children:t.icon.children,attributes:{...t.icon.attributes,...h.path}}]}]}}}};const pk={x:0,y:0,width:"100%",height:"100%"};function V5(n){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n.attributes&&(n.attributes.fill||e)&&(n.attributes.fill="black"),n}function aQ(n){return n.tag==="g"?n.children:[n]}var lQ={hooks(){return{parseNodeAttributes(n,e){const t=e.getAttribute("data-fa-mask"),i=t?qx(t.split(" ").map(s=>s.trim())):cM();return i.prefix||(i.prefix=Hd()),n.mask=i,n.maskId=e.getAttribute("data-fa-mask-id"),n}}},provides(n){n.generateAbstractMask=function(e){let{children:t,attributes:i,main:s,mask:o,maskId:r,transform:a}=e;const{width:l,icon:c}=s,{width:d,icon:u}=o,h=oX({transform:a,containerWidth:d,iconWidth:l}),f={tag:"rect",attributes:{...pk,fill:"white"}},g=c.children?{children:c.children.map(V5)}:{},p={tag:"g",attributes:{...h.inner},children:[V5({tag:c.tag,attributes:{...c.attributes,...h.path},...g})]},_={tag:"g",attributes:{...h.outer},children:[p]},v="mask-".concat(r||db()),b="clip-".concat(r||db()),y={tag:"mask",attributes:{...pk,id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[f,_]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:aQ(u)},y]};return t.push(w,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(v,")"),...pk}}),{children:t,attributes:i}}}},cQ={provides(n){let e=!1;zd.matchMedia&&(e=zd.matchMedia("(prefers-reduced-motion: reduce)").matches),n.missingIconAbstract=function(){const t=[],i={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};t.push({tag:"path",attributes:{...i,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const o={...s,attributeName:"opacity"},r={tag:"circle",attributes:{...i,cx:"256",cy:"364",r:"28"},children:[]};return e||r.children.push({tag:"animate",attributes:{...s,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...o,values:"1;0;1;1;0;1;"}}),t.push(r),t.push({tag:"path",attributes:{...i,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:e?[]:[{tag:"animate",attributes:{...o,values:"1;0;0;0;0;1;"}}]}),e||t.push({tag:"path",attributes:{...i,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...o,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:t}}}},dQ={hooks(){return{parseNodeAttributes(n,e){const t=e.getAttribute("data-fa-symbol"),i=t===null?!1:t===""?!0:t;return n.symbol=i,n}}}},uQ=[lX,KX,YX,ZX,XX,sQ,oQ,rQ,lQ,cQ,dQ];CX(uQ,{mixoutsTo:Yo});Yo.noAuto;Yo.config;Yo.library;Yo.dom;Yo.parse;Yo.findIconDefinition;Yo.toHtml;const mk=Yo.icon;Yo.layer;Yo.text;Yo.counter;const hQ={prefix:"fas",iconName:"table-columns",icon:[512,512,["columns"],"f0db","M0 96C0 60.7 28.7 32 64 32l384 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zm64 64l0 256 160 0 0-256L64 160zm384 0l-160 0 0 256 160 0 0-256z"]},fQ=hQ,gQ={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3l58.3 0c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24l0-13.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1l-58.3 0c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},pQ=gQ,mQ={prefix:"fas",iconName:"indent",icon:[448,512,[],"f03c","M0 64C0 46.3 14.3 32 32 32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64zM192 192c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32zm32 96l192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32s14.3-32 32-32zM0 448c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 480c-17.7 0-32-14.3-32-32zM127.8 268.6L25.8 347.9C15.3 356.1 0 348.6 0 335.3L0 176.7c0-13.3 15.3-20.8 25.8-12.6l101.9 79.3c8.2 6.4 8.2 18.9 0 25.3z"]};function hu(n,e,t){return n.fields=e||[],n.fname=t,n}function _Q(n){return n==null?null:n.fname}function bQ(n){return n==null?null:n.fields}function vQ(n){return n.length===1?yQ(n[0]):wQ(n)}const yQ=n=>function(e){return e[n]},wQ=n=>{const e=n.length;return function(t){for(let i=0;i r?c():r=a+1:l==="["?(a>r&&c(),s=r=a+1):l==="]"&&(s||In("Access path missing open bracket: "+n),s>0&&c(),s=0,r=a+1)}return s&&In("Access path missing closing bracket: "+n),i&&In("Access path missing closing quote: "+n),a>r&&(a++,c()),e}function Kx(n,e,t){const i=CQ(n);return n=i.length===1?i[0]:n,hu((t&&t.get||vQ)(i),[n],e||n)}Kx("id");const Yx=hu(n=>n,[],"identity");hu(()=>0,[],"zero");hu(()=>1,[],"one");hu(()=>!0,[],"true");hu(()=>!1,[],"false");var cs=Array.isArray;function Ms(n){return n===Object(n)}function ia(n){return n[n.length-1]}function ub(n){return n==null||n===""?null:+n}const OW=n=>e=>n*Math.exp(e),FW=n=>e=>Math.log(n*e),SQ=n=>e=>Math.sign(e)*Math.log1p(Math.abs(e/n)),xQ=n=>e=>Math.sign(e)*Math.expm1(Math.abs(e))*n,zC=n=>e=>e<0?-Math.pow(-e,n):Math.pow(e,n);function fM(n,e,t,i){const s=t(n[0]),o=t(ia(n)),r=(o-s)*e;return[i(s-r),i(o-r)]}function LQ(n,e){return fM(n,e,ub,Yx)}function DQ(n,e){var t=Math.sign(n[0]);return fM(n,e,FW(t),OW(t))}function kQ(n,e,t){return fM(n,e,zC(t),zC(1/t))}function Zx(n,e,t,i,s){const o=i(n[0]),r=i(ia(n)),a=e!=null?i(e):(o+r)/2;return[s(a+(o-a)*t),s(a+(r-a)*t)]}function BW(n,e,t){return Zx(n,e,t,ub,Yx)}function WW(n,e,t){const i=Math.sign(n[0]);return Zx(n,e,t,FW(i),OW(i))}function WE(n,e,t,i){return Zx(n,e,t,zC(i),zC(1/i))}function EQ(n,e,t,i){return Zx(n,e,t,SQ(i),xQ(i))}function VE(n){return n!=null?cs(n)?n:[n]:[]}function AQ(n,e,t){let i=n[0],s=n[1],o;return s=t-e?[e,t]:[i=Math.min(Math.max(i,e),t-o),i+o]}function fr(n){return typeof n=="function"}const IQ="descending";function VW(n,e,t){t=t||{},e=VE(e)||[];const i=[],s=[],o={},r=t.comparator||TQ;return VE(n).forEach((a,l)=>{a!=null&&(i.push(e[l]===IQ?-1:1),s.push(a=fr(a)?a:Kx(a,null,t)),(bQ(a)||[]).forEach(c=>o[c]=1))}),s.length===0?null:hu(r(s,i),Object.keys(o))}const zW=(n,e)=>(n e||e==null)&&n!=null?1:(e=e instanceof Date?+e:e,(n=n instanceof Date?+n:n)!==n&&e===e?-1:e!==e&&n===n?1:0),TQ=(n,e)=>n.length===1?NQ(n[0],e[0]):RQ(n,e,n.length),NQ=(n,e)=>function(t,i){return zW(n(t),n(i))*e},RQ=(n,e,t)=>(e.push(0),function(i,s){let o,r=0,a=-1;for(;r===0&&++a Qs(n)||OQ(n)?n:Date.parse(n);function zQ(n,e){return e=e||VQ,n==null||n===""?null:e(n)}function HQ(n){return n==null||n===""?null:n+""}function $C(n){const e={},t=n.length;for(let i=0;i 9999?"+"+co(n,6):co(n,4)}function jQ(n){var e=n.getUTCHours(),t=n.getUTCMinutes(),i=n.getUTCSeconds(),s=n.getUTCMilliseconds();return isNaN(n)?"Invalid Date":UQ(n.getUTCFullYear())+"-"+co(n.getUTCMonth()+1,2)+"-"+co(n.getUTCDate(),2)+(s?"T"+co(e,2)+":"+co(t,2)+":"+co(i,2)+"."+co(s,3)+"Z":i?"T"+co(e,2)+":"+co(t,2)+":"+co(i,2)+"Z":t||e?"T"+co(e,2)+":"+co(t,2)+"Z":"")}function UW(n){var e=new RegExp('["'+n+` +\r]`),t=n.charCodeAt(0);function i(u,h){var f,g,p=s(u,function(_,v){if(f)return f(_,v-1);g=_,f=h?$Q(_,h):$W(_)});return p.columns=g||[],p}function s(u,h){var f=[],g=u.length,p=0,_=0,v,b=g<=0,y=!1;u.charCodeAt(g-1)===v0&&--g,u.charCodeAt(g-1)===vk&&--g;function w(){if(b)return _k;if(y)return y=!1,z5;var L,x=p,D;if(u.charCodeAt(x)===bk){for(;p++ =g?b=!0:(D=u.charCodeAt(p++))===v0?y=!0:D===vk&&(y=!0,u.charCodeAt(p)===v0&&++p),u.slice(x+1,L-1).replace(/""/g,'"')}for(;p 1)i=UQ(n,e,t);else for(s=0,i=new Array(o=n.arcs.length);s e?1:n>=e?0:NaN}function jQ(n,e){return n==null||e==null?NaN:e n?1:e>=n?0:NaN}function em(n){let e,t,i;n.length!==2?(e=zh,t=(a,l)=>zh(n(a),l),i=(a,l)=>n(a)-l):(e=n===zh||n===jQ?n:qQ,t=n,i=n);function s(a,l,c=0,d=a.length){if(c >>1;t(a[u],l)<0?c=u+1:d=u}while(c >>1;t(a[u],l)<=0?c=u+1:d=u}while(c c&&i(a[u-1],l)>-i(a[u],l)?u-1:u}return{left:s,center:r,right:o}}function qQ(){return 0}function GW(n){return n===null?NaN:+n}function*GQ(n,e){if(e===void 0)for(let t of n)t!=null&&(t=+t)>=t&&(yield t);else{let t=-1;for(let i of n)(i=e(i,++t,n))!=null&&(i=+i)>=i&&(yield i)}}const KW=em(zh),$d=KW.right;KW.left;em(GW).center;function KQ(n,e){let t=0;if(e===void 0)for(let i of n)i!=null&&(i=+i)>=i&&++t;else{let i=-1;for(let s of n)(s=e(s,++i,n))!=null&&(s=+s)>=s&&++t}return t}function YQ(n,e){let t=0,i,s=0,o=0;if(e===void 0)for(let r of n)r!=null&&(r=+r)>=r&&(i=r-s,s+=i/++t,o+=i*(r-s));else{let r=-1;for(let a of n)(a=e(a,++r,n))!=null&&(a=+a)>=a&&(i=a-s,s+=i/++t,o+=i*(a-s))}if(t>1)return o/(t-1)}function ZQ(n,e){let t,i;for(const s of n)s!=null&&(t===void 0?s>=s&&(t=i=s):(t>s&&(t=s),i =i.length)return t(o);const a=new gc,l=i[r++];let c=-1;for(const d of o){const u=l(d,++c,o),h=a.get(u);h?h.push(d):a.set(u,[d])}for(const[d,u]of a)a.set(d,s(u,r));return e(a)}(n,0)}function tJ(n=zh){if(n===zh)return ZW;if(typeof n!="function")throw new TypeError("compare is not a function");return(e,t)=>{const i=n(e,t);return i||i===0?i:(n(t,t)===0)-(n(e,e)===0)}}function ZW(n,e){return(n==null||!(n>=n))-(e==null||!(e>=e))||(ne?1:0)}const iJ=Math.sqrt(50),nJ=Math.sqrt(10),sJ=Math.sqrt(2);function XC(n,e,t){const i=(e-n)/Math.max(0,t),s=Math.floor(Math.log10(i)),o=i/Math.pow(10,s),r=o>=iJ?10:o>=nJ?5:o>=sJ?2:1;let a,l,c;return s<0?(c=Math.pow(10,-s)/r,a=Math.round(n*c),l=Math.round(e*c),a/c e&&--l,c=-c):(c=Math.pow(10,s)*r,a=Math.round(n/c),l=Math.round(e/c),a*c e&&--l),l0))return[];if(n===e)return[n];const i=e =s))return[];const a=o-s+1,l=new Array(a);if(i)if(r<0)for(let c=0;c=i)&&(t=i);else{let i=-1;for(let s of n)(s=e(s,++i,n))!=null&&(t =s)&&(t=s)}return t}function qE(n,e){let t;if(e===void 0)for(const i of n)i!=null&&(t>i||t===void 0&&i>=i)&&(t=i);else{let i=-1;for(let s of n)(s=e(s,++i,n))!=null&&(t>s||t===void 0&&s>=s)&&(t=s)}return t}function XW(n,e,t=0,i=1/0,s){if(e=Math.floor(e),t=Math.floor(Math.max(0,t)),i=Math.floor(Math.min(n.length-1,i)),!(t<=e&&e<=i))return n;for(s=s===void 0?ZW:tJ(s);i>t;){if(i-t>600){const l=i-t+1,c=e-t+1,d=Math.log(l),u=.5*Math.exp(2*d/3),h=.5*Math.sqrt(d*u*(l-u)/l)*(c-l/2<0?-1:1),f=Math.max(t,Math.floor(e-c*u/l+h)),g=Math.min(i,Math.floor(e+(l-c)*u/l+h));XW(n,e,f,g,s)}const o=n[e];let r=t,a=i;for(m0(n,t,e),s(n[i],o)>0&&m0(n,t,i);r0;)--a}s(n[t],o)===0?m0(n,t,a):(++a,m0(n,a,i)),a<=e&&(t=a+1),e<=a&&(i=a-1)}return n}function m0(n,e,t){const i=n[e];n[e]=n[t],n[t]=i}function oJ(n,e,t){if(n=Float64Array.from(GQ(n,t)),!(!(i=n.length)||isNaN(e=+e))){if(e<=0||i<2)return qE(n);if(e>=1)return jE(n);var i,s=(i-1)*e,o=Math.floor(s),r=jE(XW(n,o).subarray(0,o+1)),a=qE(n.subarray(o+1));return r+(a-r)*(s-o)}}function QW(n,e,t=GW){if(!(!(i=n.length)||isNaN(e=+e))){if(e<=0||i<2)return+t(n[0],0,n);if(e>=1)return+t(n[i-1],i-1,n);var i,s=(i-1)*e,o=Math.floor(s),r=+t(n[o],o,n),a=+t(n[o+1],o+1,n);return r+(a-r)*(s-o)}}function rJ(n,e){let t=0,i=0;if(e===void 0)for(let s of n)s!=null&&(s=+s)>=s&&(++t,i+=s);else{let s=-1;for(let o of n)(o=e(o,++s,n))!=null&&(o=+o)>=o&&(++t,i+=o)}if(t)return i/t}function aJ(n,e){return oJ(n,.5,e)}function db(n,e,t){n=+n,e=+e,t=(s=arguments.length)<2?(e=n,n=0,1):s<3?1:+t;for(var i=-1,s=Math.max(0,Math.ceil((e-n)/t))|0,o=new Array(s);++i=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function JC(n,e){if((t=(n=e?n.toExponential(e-1):n.toExponential()).indexOf("e"))<0)return null;var t,i=n.slice(0,t);return[i.length>1?i[0]+i.slice(2):i,+n.slice(t+1)]}function tm(n){return n=JC(Math.abs(n)),n?n[1]:NaN}function cJ(n,e){return function(t,i){for(var s=t.length,o=[],r=0,a=n[0],l=0;s>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),o.push(t.substring(s-=a,s+a)),!((l+=a+1)>i));)a=n[r=(r+1)%n.length];return o.reverse().join(e)}}function dJ(n){return function(e){return e.replace(/[0-9]/g,function(t){return n[+t]})}}var uJ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function im(n){if(!(e=uJ.exec(n)))throw new Error("invalid format: "+n);var e;return new _M({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}im.prototype=_M.prototype;function _M(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}_M.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function hJ(n){e:for(var e=n.length,t=1,i=-1,s;t0&&(i=0);break}return i>0?n.slice(0,i)+n.slice(s+1):n}var JW;function fJ(n,e){var t=JC(n,e);if(!t)return n+"";var i=t[0],s=t[1],o=s-(JW=Math.max(-8,Math.min(8,Math.floor(s/3)))*3)+1,r=i.length;return o===r?i:o>r?i+new Array(o-r+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+JC(n,Math.max(0,e+o-1))[0]}function K5(n,e){var t=JC(n,e);if(!t)return n+"";var i=t[0],s=t[1];return s<0?"0."+new Array(-s).join("0")+i:i.length>s+1?i.slice(0,s+1)+"."+i.slice(s+1):i+new Array(s-i.length+2).join("0")}const Y5={"%":(n,e)=>(n*100).toFixed(e),b:n=>Math.round(n).toString(2),c:n=>n+"",d:lJ,e:(n,e)=>n.toExponential(e),f:(n,e)=>n.toFixed(e),g:(n,e)=>n.toPrecision(e),o:n=>Math.round(n).toString(8),p:(n,e)=>K5(n*100,e),r:K5,s:fJ,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function Z5(n){return n}var X5=Array.prototype.map,Q5=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function gJ(n){var e=n.grouping===void 0||n.thousands===void 0?Z5:cJ(X5.call(n.grouping,Number),n.thousands+""),t=n.currency===void 0?"":n.currency[0]+"",i=n.currency===void 0?"":n.currency[1]+"",s=n.decimal===void 0?".":n.decimal+"",o=n.numerals===void 0?Z5:dJ(X5.call(n.numerals,String)),r=n.percent===void 0?"%":n.percent+"",a=n.minus===void 0?"−":n.minus+"",l=n.nan===void 0?"NaN":n.nan+"";function c(u){u=im(u);var h=u.fill,f=u.align,g=u.sign,p=u.symbol,_=u.zero,v=u.width,b=u.comma,y=u.precision,w=u.trim,C=u.type;C==="n"?(b=!0,C="g"):Y5[C]||(y===void 0&&(y=12),w=!0,C="g"),(_||h==="0"&&f==="=")&&(_=!0,h="0",f="=");var L=p==="$"?t:p==="#"&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",x=p==="$"?i:/[%p]/.test(C)?r:"",D=Y5[C],k=/[defgprs%]/.test(C);y=y===void 0?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function P(O){var M=L,R=x,z,G,te;if(C==="c")R=D(O)+R,O="";else{O=+O;var ae=O<0||1/O<0;if(O=isNaN(O)?l:D(Math.abs(O),y),w&&(O=hJ(O)),ae&&+O==0&&g!=="+"&&(ae=!1),M=(ae?g==="("?g:a:g==="-"||g==="("?"":g)+M,R=(C==="s"?Q5[8+JW/3]:"")+R+(ae&&g==="("?")":""),k){for(z=-1,G=O.length;++z te||te>57){R=(te===46?s+O.slice(z+1):O.slice(z))+R,O=O.slice(0,z);break}}}b&&!_&&(O=e(O,1/0));var fe=M.length+O.length+R.length,oe=fe >1)+M+O+R+oe.slice(fe);break;default:O=oe+M+O+R;break}return o(O)}return P.toString=function(){return u+""},P}function d(u,h){var f=c((u=im(u),u.type="f",u)),g=Math.max(-8,Math.min(8,Math.floor(tm(h)/3)))*3,p=Math.pow(10,-g),_=Q5[8+g/3];return function(v){return f(p*v)+_}}return{format:c,formatPrefix:d}}var Iy,Ts,eV;pJ({thousands:",",grouping:[3],currency:["$",""]});function pJ(n){return Iy=gJ(n),Ts=Iy.format,eV=Iy.formatPrefix,Iy}function mJ(n){return Math.max(0,-tm(Math.abs(n)))}function _J(n,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(tm(e)/3)))*3-tm(Math.abs(n)))}function bJ(n,e){return n=Math.abs(n),e=Math.abs(e)-n,Math.max(0,tm(e)-tm(n))+1}const Lk=new Date,Dk=new Date;function Vn(n,e,t,i){function s(o){return n(o=arguments.length===0?new Date:new Date(+o)),o}return s.floor=o=>(n(o=new Date(+o)),o),s.ceil=o=>(n(o=new Date(o-1)),e(o,1),n(o),o),s.round=o=>{const r=s(o),a=s.ceil(o);return o-r (e(o=new Date(+o),r==null?1:Math.floor(r)),o),s.range=(o,r,a)=>{const l=[];if(o=s.ceil(o),a=a==null?1:Math.floor(a),!(o 0))return l;let c;do l.push(c=new Date(+o)),e(o,a),n(o);while(c Vn(r=>{if(r>=r)for(;n(r),!o(r);)r.setTime(r-1)},(r,a)=>{if(r>=r)if(a<0)for(;++a<=0;)for(;e(r,-1),!o(r););else for(;--a>=0;)for(;e(r,1),!o(r););}),t&&(s.count=(o,r)=>(Lk.setTime(+o),Dk.setTime(+r),n(Lk),n(Dk),Math.floor(t(Lk,Dk))),s.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?s.filter(i?r=>i(r)%o===0:r=>s.count(0,r)%o===0):s)),s}const nm=Vn(()=>{},(n,e)=>{n.setTime(+n+e)},(n,e)=>e-n);nm.every=n=>(n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?Vn(e=>{e.setTime(Math.floor(e/n)*n)},(e,t)=>{e.setTime(+e+t*n)},(e,t)=>(t-e)/n):nm);nm.range;const Gl=1e3,lr=Gl*60,Kl=lr*60,pc=Kl*24,bM=pc*7,J5=pc*30,kk=pc*365,Yl=Vn(n=>{n.setTime(n-n.getMilliseconds())},(n,e)=>{n.setTime(+n+e*Gl)},(n,e)=>(e-n)/Gl,n=>n.getUTCSeconds());Yl.range;const oL=Vn(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*Gl)},(n,e)=>{n.setTime(+n+e*lr)},(n,e)=>(e-n)/lr,n=>n.getMinutes());oL.range;const rL=Vn(n=>{n.setUTCSeconds(0,0)},(n,e)=>{n.setTime(+n+e*lr)},(n,e)=>(e-n)/lr,n=>n.getUTCMinutes());rL.range;const aL=Vn(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*Gl-n.getMinutes()*lr)},(n,e)=>{n.setTime(+n+e*Kl)},(n,e)=>(e-n)/Kl,n=>n.getHours());aL.range;const lL=Vn(n=>{n.setUTCMinutes(0,0,0)},(n,e)=>{n.setTime(+n+e*Kl)},(n,e)=>(e-n)/Kl,n=>n.getUTCHours());lL.range;const xd=Vn(n=>n.setHours(0,0,0,0),(n,e)=>n.setDate(n.getDate()+e),(n,e)=>(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*lr)/pc,n=>n.getDate()-1);xd.range;const Hh=Vn(n=>{n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCDate(n.getUTCDate()+e)},(n,e)=>(e-n)/pc,n=>n.getUTCDate()-1);Hh.range;const tV=Vn(n=>{n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCDate(n.getUTCDate()+e)},(n,e)=>(e-n)/pc,n=>Math.floor(n/pc));tV.range;function Rf(n){return Vn(e=>{e.setDate(e.getDate()-(e.getDay()+7-n)%7),e.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*lr)/bM)}const p1=Rf(0),eS=Rf(1),vJ=Rf(2),yJ=Rf(3),sm=Rf(4),wJ=Rf(5),CJ=Rf(6);p1.range;eS.range;vJ.range;yJ.range;sm.range;wJ.range;CJ.range;function Mf(n){return Vn(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-n)%7),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/bM)}const m1=Mf(0),tS=Mf(1),SJ=Mf(2),xJ=Mf(3),om=Mf(4),LJ=Mf(5),DJ=Mf(6);m1.range;tS.range;SJ.range;xJ.range;om.range;LJ.range;DJ.range;const ub=Vn(n=>{n.setDate(1),n.setHours(0,0,0,0)},(n,e)=>{n.setMonth(n.getMonth()+e)},(n,e)=>e.getMonth()-n.getMonth()+(e.getFullYear()-n.getFullYear())*12,n=>n.getMonth());ub.range;const hb=Vn(n=>{n.setUTCDate(1),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCMonth(n.getUTCMonth()+e)},(n,e)=>e.getUTCMonth()-n.getUTCMonth()+(e.getUTCFullYear()-n.getUTCFullYear())*12,n=>n.getUTCMonth());hb.range;const Ja=Vn(n=>{n.setMonth(0,1),n.setHours(0,0,0,0)},(n,e)=>{n.setFullYear(n.getFullYear()+e)},(n,e)=>e.getFullYear()-n.getFullYear(),n=>n.getFullYear());Ja.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:Vn(e=>{e.setFullYear(Math.floor(e.getFullYear()/n)*n),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t*n)});Ja.range;const el=Vn(n=>{n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCFullYear(n.getUTCFullYear()+e)},(n,e)=>e.getUTCFullYear()-n.getUTCFullYear(),n=>n.getUTCFullYear());el.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:Vn(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/n)*n),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t*n)});el.range;function iV(n,e,t,i,s,o){const r=[[Yl,1,Gl],[Yl,5,5*Gl],[Yl,15,15*Gl],[Yl,30,30*Gl],[o,1,lr],[o,5,5*lr],[o,15,15*lr],[o,30,30*lr],[s,1,Kl],[s,3,3*Kl],[s,6,6*Kl],[s,12,12*Kl],[i,1,pc],[i,2,2*pc],[t,1,bM],[e,1,J5],[e,3,3*J5],[n,1,kk]];function a(c,d,u){const h=d _).right(r,h);if(f===r.length)return n.every(df(c/kk,d/kk,u));if(f===0)return nm.every(Math.max(df(c,d,u),1));const[g,p]=r[h/r[f-1][2] (n[e]=1+t,n),{});const NJ={[fb]:Ja,[gb]:ub.every(3),[pb]:ub,[mb]:p1,[_b]:xd,[cL]:xd,[vM]:xd,[bb]:aL,[vb]:oL,[yb]:Yl,[dL]:nm},RJ={[fb]:el,[gb]:hb.every(3),[pb]:hb,[mb]:m1,[_b]:Hh,[cL]:Hh,[vM]:Hh,[bb]:lL,[vb]:rL,[yb]:Yl,[dL]:nm};function MJ(n){return NJ[n]}function PJ(n){return RJ[n]}function Ek(n){if(0<=n.y&&n.y<100){var e=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return e.setFullYear(n.y),e}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function Ak(n){if(0<=n.y&&n.y<100){var e=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return e.setUTCFullYear(n.y),e}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function _0(n,e,t){return{y:n,m:e,d:t,H:0,M:0,S:0,L:0}}function nV(n){var e=n.dateTime,t=n.date,i=n.time,s=n.periods,o=n.days,r=n.shortDays,a=n.months,l=n.shortMonths,c=b0(s),d=v0(s),u=b0(o),h=v0(o),f=b0(r),g=v0(r),p=b0(a),_=v0(a),v=b0(l),b=v0(l),y={a:ae,A:fe,b:oe,B:Se,c:null,d:oO,e:oO,f:see,g:gee,G:mee,H:tee,I:iee,j:nee,L:sV,m:oee,M:ree,p:Ie,q:me,Q:lO,s:cO,S:aee,u:lee,U:cee,V:dee,w:uee,W:hee,x:null,X:null,y:fee,Y:pee,Z:_ee,"%":aO},w={a:ie,A:Xt,b:Dt,B:Nt,c:null,d:rO,e:rO,f:wee,g:Tee,G:Ree,H:bee,I:vee,j:yee,L:rV,m:Cee,M:See,p:Ge,q:si,Q:lO,s:cO,S:xee,u:Lee,U:Dee,V:kee,w:Eee,W:Aee,x:null,X:null,y:Iee,Y:Nee,Z:Mee,"%":aO},C={a:P,A:O,b:M,B:R,c:z,d:nO,e:nO,f:XJ,g:iO,G:tO,H:sO,I:sO,j:GJ,L:ZJ,m:qJ,M:KJ,p:k,q:jJ,Q:JJ,s:eee,S:YJ,u:VJ,U:zJ,V:HJ,w:WJ,W:$J,x:G,X:te,y:iO,Y:tO,Z:UJ,"%":QJ};y.x=L(t,y),y.X=L(i,y),y.c=L(e,y),w.x=L(t,w),w.X=L(i,w),w.c=L(e,w);function L(ke,Ve){return function(ge){var he=[],Ei=-1,kt=0,Tt=ke.length,yi,er,Mu;for(ge instanceof Date||(ge=new Date(+ge));++Ei53)return null;"w"in he||(he.w=1),"Z"in he?(kt=Ak(_0(he.y,0,1)),Tt=kt.getUTCDay(),kt=Tt>4||Tt===0?tS.ceil(kt):tS(kt),kt=Hh.offset(kt,(he.V-1)*7),he.y=kt.getUTCFullYear(),he.m=kt.getUTCMonth(),he.d=kt.getUTCDate()+(he.w+6)%7):(kt=Ek(_0(he.y,0,1)),Tt=kt.getDay(),kt=Tt>4||Tt===0?eS.ceil(kt):eS(kt),kt=xd.offset(kt,(he.V-1)*7),he.y=kt.getFullYear(),he.m=kt.getMonth(),he.d=kt.getDate()+(he.w+6)%7)}else("W"in he||"U"in he)&&("w"in he||(he.w="u"in he?he.u%7:"W"in he?1:0),Tt="Z"in he?Ak(_0(he.y,0,1)).getUTCDay():Ek(_0(he.y,0,1)).getDay(),he.m=0,he.d="W"in he?(he.w+6)%7+he.W*7-(Tt+5)%7:he.w+he.U*7-(Tt+6)%7);return"Z"in he?(he.H+=he.Z/100|0,he.M+=he.Z%100,Ak(he)):Ek(he)}}function D(ke,Ve,ge,he){for(var Ei=0,kt=Ve.length,Tt=ge.length,yi,er;Ei =Tt)return-1;if(yi=Ve.charCodeAt(Ei++),yi===37){if(yi=Ve.charAt(Ei++),er=C[yi in eO?Ve.charAt(Ei++):yi],!er||(he=er(ke,ge,he))<0)return-1}else if(yi!=ge.charCodeAt(he++))return-1}return he}function k(ke,Ve,ge){var he=c.exec(Ve.slice(ge));return he?(ke.p=d.get(he[0].toLowerCase()),ge+he[0].length):-1}function P(ke,Ve,ge){var he=f.exec(Ve.slice(ge));return he?(ke.w=g.get(he[0].toLowerCase()),ge+he[0].length):-1}function O(ke,Ve,ge){var he=u.exec(Ve.slice(ge));return he?(ke.w=h.get(he[0].toLowerCase()),ge+he[0].length):-1}function M(ke,Ve,ge){var he=v.exec(Ve.slice(ge));return he?(ke.m=b.get(he[0].toLowerCase()),ge+he[0].length):-1}function R(ke,Ve,ge){var he=p.exec(Ve.slice(ge));return he?(ke.m=_.get(he[0].toLowerCase()),ge+he[0].length):-1}function z(ke,Ve,ge){return D(ke,e,Ve,ge)}function G(ke,Ve,ge){return D(ke,t,Ve,ge)}function te(ke,Ve,ge){return D(ke,i,Ve,ge)}function ae(ke){return r[ke.getDay()]}function fe(ke){return o[ke.getDay()]}function oe(ke){return l[ke.getMonth()]}function Se(ke){return a[ke.getMonth()]}function Ie(ke){return s[+(ke.getHours()>=12)]}function me(ke){return 1+~~(ke.getMonth()/3)}function ie(ke){return r[ke.getUTCDay()]}function Xt(ke){return o[ke.getUTCDay()]}function Dt(ke){return l[ke.getUTCMonth()]}function Nt(ke){return a[ke.getUTCMonth()]}function Ge(ke){return s[+(ke.getUTCHours()>=12)]}function si(ke){return 1+~~(ke.getUTCMonth()/3)}return{format:function(ke){var Ve=L(ke+="",y);return Ve.toString=function(){return ke},Ve},parse:function(ke){var Ve=x(ke+="",!1);return Ve.toString=function(){return ke},Ve},utcFormat:function(ke){var Ve=L(ke+="",w);return Ve.toString=function(){return ke},Ve},utcParse:function(ke){var Ve=x(ke+="",!0);return Ve.toString=function(){return ke},Ve}}}var eO={"-":"",_:" ",0:"0"},es=/^\s*\d+/,OJ=/^%/,FJ=/[\\^$*+?|[\]().{}]/g;function Yt(n,e,t){var i=n<0?"-":"",s=(i?-n:n)+"",o=s.length;return i+(o [e.toLowerCase(),t]))}function WJ(n,e,t){var i=es.exec(e.slice(t,t+1));return i?(n.w=+i[0],t+i[0].length):-1}function VJ(n,e,t){var i=es.exec(e.slice(t,t+1));return i?(n.u=+i[0],t+i[0].length):-1}function zJ(n,e,t){var i=es.exec(e.slice(t,t+2));return i?(n.U=+i[0],t+i[0].length):-1}function HJ(n,e,t){var i=es.exec(e.slice(t,t+2));return i?(n.V=+i[0],t+i[0].length):-1}function $J(n,e,t){var i=es.exec(e.slice(t,t+2));return i?(n.W=+i[0],t+i[0].length):-1}function tO(n,e,t){var i=es.exec(e.slice(t,t+4));return i?(n.y=+i[0],t+i[0].length):-1}function iO(n,e,t){var i=es.exec(e.slice(t,t+2));return i?(n.y=+i[0]+(+i[0]>68?1900:2e3),t+i[0].length):-1}function UJ(n,e,t){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(t,t+6));return i?(n.Z=i[1]?0:-(i[2]+(i[3]||"00")),t+i[0].length):-1}function jJ(n,e,t){var i=es.exec(e.slice(t,t+1));return i?(n.q=i[0]*3-3,t+i[0].length):-1}function qJ(n,e,t){var i=es.exec(e.slice(t,t+2));return i?(n.m=i[0]-1,t+i[0].length):-1}function nO(n,e,t){var i=es.exec(e.slice(t,t+2));return i?(n.d=+i[0],t+i[0].length):-1}function GJ(n,e,t){var i=es.exec(e.slice(t,t+3));return i?(n.m=0,n.d=+i[0],t+i[0].length):-1}function sO(n,e,t){var i=es.exec(e.slice(t,t+2));return i?(n.H=+i[0],t+i[0].length):-1}function KJ(n,e,t){var i=es.exec(e.slice(t,t+2));return i?(n.M=+i[0],t+i[0].length):-1}function YJ(n,e,t){var i=es.exec(e.slice(t,t+2));return i?(n.S=+i[0],t+i[0].length):-1}function ZJ(n,e,t){var i=es.exec(e.slice(t,t+3));return i?(n.L=+i[0],t+i[0].length):-1}function XJ(n,e,t){var i=es.exec(e.slice(t,t+6));return i?(n.L=Math.floor(i[0]/1e3),t+i[0].length):-1}function QJ(n,e,t){var i=OJ.exec(e.slice(t,t+1));return i?t+i[0].length:-1}function JJ(n,e,t){var i=es.exec(e.slice(t));return i?(n.Q=+i[0],t+i[0].length):-1}function eee(n,e,t){var i=es.exec(e.slice(t));return i?(n.s=+i[0],t+i[0].length):-1}function oO(n,e){return Yt(n.getDate(),e,2)}function tee(n,e){return Yt(n.getHours(),e,2)}function iee(n,e){return Yt(n.getHours()%12||12,e,2)}function nee(n,e){return Yt(1+xd.count(Ja(n),n),e,3)}function sV(n,e){return Yt(n.getMilliseconds(),e,3)}function see(n,e){return sV(n,e)+"000"}function oee(n,e){return Yt(n.getMonth()+1,e,2)}function ree(n,e){return Yt(n.getMinutes(),e,2)}function aee(n,e){return Yt(n.getSeconds(),e,2)}function lee(n){var e=n.getDay();return e===0?7:e}function cee(n,e){return Yt(p1.count(Ja(n)-1,n),e,2)}function oV(n){var e=n.getDay();return e>=4||e===0?sm(n):sm.ceil(n)}function dee(n,e){return n=oV(n),Yt(sm.count(Ja(n),n)+(Ja(n).getDay()===4),e,2)}function uee(n){return n.getDay()}function hee(n,e){return Yt(eS.count(Ja(n)-1,n),e,2)}function fee(n,e){return Yt(n.getFullYear()%100,e,2)}function gee(n,e){return n=oV(n),Yt(n.getFullYear()%100,e,2)}function pee(n,e){return Yt(n.getFullYear()%1e4,e,4)}function mee(n,e){var t=n.getDay();return n=t>=4||t===0?sm(n):sm.ceil(n),Yt(n.getFullYear()%1e4,e,4)}function _ee(n){var e=n.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Yt(e/60|0,"0",2)+Yt(e%60,"0",2)}function rO(n,e){return Yt(n.getUTCDate(),e,2)}function bee(n,e){return Yt(n.getUTCHours(),e,2)}function vee(n,e){return Yt(n.getUTCHours()%12||12,e,2)}function yee(n,e){return Yt(1+Hh.count(el(n),n),e,3)}function rV(n,e){return Yt(n.getUTCMilliseconds(),e,3)}function wee(n,e){return rV(n,e)+"000"}function Cee(n,e){return Yt(n.getUTCMonth()+1,e,2)}function See(n,e){return Yt(n.getUTCMinutes(),e,2)}function xee(n,e){return Yt(n.getUTCSeconds(),e,2)}function Lee(n){var e=n.getUTCDay();return e===0?7:e}function Dee(n,e){return Yt(m1.count(el(n)-1,n),e,2)}function aV(n){var e=n.getUTCDay();return e>=4||e===0?om(n):om.ceil(n)}function kee(n,e){return n=aV(n),Yt(om.count(el(n),n)+(el(n).getUTCDay()===4),e,2)}function Eee(n){return n.getUTCDay()}function Aee(n,e){return Yt(tS.count(el(n)-1,n),e,2)}function Iee(n,e){return Yt(n.getUTCFullYear()%100,e,2)}function Tee(n,e){return n=aV(n),Yt(n.getUTCFullYear()%100,e,2)}function Nee(n,e){return Yt(n.getUTCFullYear()%1e4,e,4)}function Ree(n,e){var t=n.getUTCDay();return n=t>=4||t===0?om(n):om.ceil(n),Yt(n.getUTCFullYear()%1e4,e,4)}function Mee(){return"+0000"}function aO(){return"%"}function lO(n){return+n}function cO(n){return Math.floor(+n/1e3)}var ag,yM,lV,wM,cV;Pee({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Pee(n){return ag=nV(n),yM=ag.format,lV=ag.parse,wM=ag.utcFormat,cV=ag.utcParse,ag}function Ty(n){const e={};return t=>e[t]||(e[t]=n(t))}function dO(n,e,t){t=t||{},Os(t)||Nn(`Invalid time multi-format specifier: ${t}`);const i=e(yb),s=e(vb),o=e(bb),r=e(_b),a=e(mb),l=e(pb),c=e(gb),d=e(fb),u=n(t[dL]||".%L"),h=n(t[yb]||":%S"),f=n(t[vb]||"%I:%M"),g=n(t[bb]||"%I %p"),p=n(t[_b]||t[cL]||"%a %d"),_=n(t[mb]||"%b %d"),v=n(t[pb]||"%B"),b=n(t[gb]||"%B"),y=n(t[fb]||"%Y");return w=>(i(w) Ti(i)?e(i):dO(e,MJ,i),utcFormat:i=>Ti(i)?t(i):dO(t,PJ,i),timeParse:Ty(n.parse),utcParse:Ty(n.utcParse)}}let GE;Oee();function Oee(){return GE=dV({format:yM,parse:lV,utcFormat:wM,utcParse:cV})}function Fee(n){return dV(nV(n))}function Bee(n){return arguments.length?GE=Fee(n):GE}const Wee=n=>n!=null&&n===n,Vee=n=>n==="true"||n==="false"||n===!0||n===!1,zee=n=>!Number.isNaN(Date.parse(n)),uV=n=>!Number.isNaN(+n)&&!(n instanceof Date),Hee=n=>uV(n)&&Number.isInteger(+n),uO={boolean:EQ,integer:cb,number:cb,date:IQ,string:TQ,unknown:iL},Ny=[Vee,Hee,uV,zee],$ee=["boolean","integer","number","date"];function Uee(n,e){if(!n||!n.length)return"unknown";const t=n.length,i=Ny.length,s=Ny.map((o,r)=>r+1);for(let o=0,r=0,a,l;o o===0?r:o,0)-1]}function jee(n,e){return e.reduce((t,i)=>(t[i]=Uee(n,i),t),{})}function hO(n){const e=function(t,i){const s={delimiter:n};return CM(t,i?SQ(i,s):s)};return e.responseType="text",e}function CM(n,e){return e.header&&(n=e.header.map(mM).join(e.delimiter)+` -`+n),jW(e.delimiter).parse(n+"")}CM.responseType="text";function qee(n){return typeof Buffer=="function"&&gr(Buffer.isBuffer)?Buffer.isBuffer(n):!1}function SM(n,e){const t=e&&e.property?tL(e.property):iL;return Os(n)&&!qee(n)?Gee(t(n),e):t(JSON.parse(n))}SM.responseType="json";function Gee(n,e){return!Ps(n)&&DQ(n)&&(n=[...n]),e&&e.copy?JSON.parse(JSON.stringify(n)):n}const Kee={interior:(n,e)=>n!==e,exterior:(n,e)=>n===e};function hV(n,e){let t,i,s,o;return n=SM(n,e),e&&e.feature?(t=VQ,s=e.feature):e&&e.mesh?(t=HQ,s=e.mesh,o=Kee[e.filter]):Nn("Missing TopoJSON feature or mesh parameter."),i=(i=n.objects[s])?t(n,i,o):Nn("Invalid TopoJSON object: "+s),i&&i.features||[i]}hV.responseType="json";const Ik={dsv:CM,csv:hO(","),tsv:hO(" "),json:SM,topojson:hV};function xM(n,e){return arguments.length>1?(Ik[n]=e,this):Rg(Ik,n)?Ik[n]:null}function LM(n,e,t,i){e=e||{};const s=xM(e.type||"json");return s||Nn("Unknown data format type: "+e.type),n=s(n,e),e.parse&&Yee(n,e.parse,t,i),Rg(n,"columns")&&delete n.columns,n}function Yee(n,e,t,i){if(!n.length)return;const s=Bee();t=t||s.timeParse,i=i||s.utcParse;let o=n.columns||Object.keys(n[0]),r,a,l,c,d,u;e==="auto"&&(e=jee(n,o)),o=Object.keys(e);const h=o.map(f=>{const g=e[f];let p,_;if(g&&(g.startsWith("date:")||g.startsWith("utc:")))return p=g.split(/:(.+)?/,2),_=p[1],(_[0]==="'"&&_[_.length-1]==="'"||_[0]==='"'&&_[_.length-1]==='"')&&(_=_.slice(1,-1)),(p[0]==="utc"?i:t)(_);if(!uO[g])throw Error("Illegal format pattern: "+f+":"+g);return uO[g]});for(l=0,d=n.length,u=o.length;l 1)i=tJ(n,e,t);else for(s=0,i=new Array(o=n.arcs.length);s e?1:n>=e?0:NaN}function iJ(n,e){return n==null||e==null?NaN:e n?1:e>=n?0:NaN}function nm(n){let e,t,i;n.length!==2?(e=Uh,t=(a,l)=>Uh(n(a),l),i=(a,l)=>n(a)-l):(e=n===Uh||n===iJ?n:nJ,t=n,i=n);function s(a,l,c=0,d=a.length){if(c >>1;t(a[u],l)<0?c=u+1:d=u}while(c >>1;t(a[u],l)<=0?c=u+1:d=u}while(c c&&i(a[u-1],l)>-i(a[u],l)?u-1:u}return{left:s,center:r,right:o}}function nJ(){return 0}function qW(n){return n===null?NaN:+n}function*sJ(n,e){if(e===void 0)for(let t of n)t!=null&&(t=+t)>=t&&(yield t);else{let t=-1;for(let i of n)(i=e(i,++t,n))!=null&&(i=+i)>=i&&(yield i)}}const GW=nm(Uh),Ud=GW.right;GW.left;nm(qW).center;function oJ(n,e){let t=0;if(e===void 0)for(let i of n)i!=null&&(i=+i)>=i&&++t;else{let i=-1;for(let s of n)(s=e(s,++i,n))!=null&&(s=+s)>=s&&++t}return t}function rJ(n,e){let t=0,i,s=0,o=0;if(e===void 0)for(let r of n)r!=null&&(r=+r)>=r&&(i=r-s,s+=i/++t,o+=i*(r-s));else{let r=-1;for(let a of n)(a=e(a,++r,n))!=null&&(a=+a)>=a&&(i=a-s,s+=i/++t,o+=i*(a-s))}if(t>1)return o/(t-1)}function aJ(n,e){let t,i;for(const s of n)s!=null&&(t===void 0?s>=s&&(t=i=s):(t>s&&(t=s),i =i.length)return t(o);const a=new gc,l=i[r++];let c=-1;for(const d of o){const u=l(d,++c,o),h=a.get(u);h?h.push(d):a.set(u,[d])}for(const[d,u]of a)a.set(d,s(u,r));return e(a)}(n,0)}function hJ(n=Uh){if(n===Uh)return YW;if(typeof n!="function")throw new TypeError("compare is not a function");return(e,t)=>{const i=n(e,t);return i||i===0?i:(n(t,t)===0)-(n(e,e)===0)}}function YW(n,e){return(n==null||!(n>=n))-(e==null||!(e>=e))||(ne?1:0)}const fJ=Math.sqrt(50),gJ=Math.sqrt(10),pJ=Math.sqrt(2);function UC(n,e,t){const i=(e-n)/Math.max(0,t),s=Math.floor(Math.log10(i)),o=i/Math.pow(10,s),r=o>=fJ?10:o>=gJ?5:o>=pJ?2:1;let a,l,c;return s<0?(c=Math.pow(10,-s)/r,a=Math.round(n*c),l=Math.round(e*c),a/c e&&--l,c=-c):(c=Math.pow(10,s)*r,a=Math.round(n/c),l=Math.round(e/c),a*c e&&--l),l0))return[];if(n===e)return[n];const i=e =s))return[];const a=o-s+1,l=new Array(a);if(i)if(r<0)for(let c=0;c=i)&&(t=i);else{let i=-1;for(let s of n)(s=e(s,++i,n))!=null&&(t =s)&&(t=s)}return t}function UE(n,e){let t;if(e===void 0)for(const i of n)i!=null&&(t>i||t===void 0&&i>=i)&&(t=i);else{let i=-1;for(let s of n)(s=e(s,++i,n))!=null&&(t>s||t===void 0&&s>=s)&&(t=s)}return t}function ZW(n,e,t=0,i=1/0,s){if(e=Math.floor(e),t=Math.floor(Math.max(0,t)),i=Math.floor(Math.min(n.length-1,i)),!(t<=e&&e<=i))return n;for(s=s===void 0?YW:hJ(s);i>t;){if(i-t>600){const l=i-t+1,c=e-t+1,d=Math.log(l),u=.5*Math.exp(2*d/3),h=.5*Math.sqrt(d*u*(l-u)/l)*(c-l/2<0?-1:1),f=Math.max(t,Math.floor(e-c*u/l+h)),g=Math.min(i,Math.floor(e+(l-c)*u/l+h));ZW(n,e,f,g,s)}const o=n[e];let r=t,a=i;for(y0(n,t,e),s(n[i],o)>0&&y0(n,t,i);r0;)--a}s(n[t],o)===0?y0(n,t,a):(++a,y0(n,a,i)),a<=e&&(t=a+1),e<=a&&(i=a-1)}return n}function y0(n,e,t){const i=n[e];n[e]=n[t],n[t]=i}function mJ(n,e,t){if(n=Float64Array.from(sJ(n,t)),!(!(i=n.length)||isNaN(e=+e))){if(e<=0||i<2)return UE(n);if(e>=1)return $E(n);var i,s=(i-1)*e,o=Math.floor(s),r=$E(ZW(n,o).subarray(0,o+1)),a=UE(n.subarray(o+1));return r+(a-r)*(s-o)}}function XW(n,e,t=qW){if(!(!(i=n.length)||isNaN(e=+e))){if(e<=0||i<2)return+t(n[0],0,n);if(e>=1)return+t(n[i-1],i-1,n);var i,s=(i-1)*e,o=Math.floor(s),r=+t(n[o],o,n),a=+t(n[o+1],o+1,n);return r+(a-r)*(s-o)}}function _J(n,e){let t=0,i=0;if(e===void 0)for(let s of n)s!=null&&(s=+s)>=s&&(++t,i+=s);else{let s=-1;for(let o of n)(o=e(o,++s,n))!=null&&(o=+o)>=o&&(++t,i+=o)}if(t)return i/t}function bJ(n,e){return mJ(n,.5,e)}function hb(n,e,t){n=+n,e=+e,t=(s=arguments.length)<2?(e=n,n=0,1):s<3?1:+t;for(var i=-1,s=Math.max(0,Math.ceil((e-n)/t))|0,o=new Array(s);++i=1e21?n.toLocaleString("en").replace(/,/g,""):n.toString(10)}function qC(n,e){if((t=(n=e?n.toExponential(e-1):n.toExponential()).indexOf("e"))<0)return null;var t,i=n.slice(0,t);return[i.length>1?i[0]+i.slice(2):i,+n.slice(t+1)]}function sm(n){return n=qC(Math.abs(n)),n?n[1]:NaN}function yJ(n,e){return function(t,i){for(var s=t.length,o=[],r=0,a=n[0],l=0;s>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),o.push(t.substring(s-=a,s+a)),!((l+=a+1)>i));)a=n[r=(r+1)%n.length];return o.reverse().join(e)}}function wJ(n){return function(e){return e.replace(/[0-9]/g,function(t){return n[+t]})}}var CJ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function om(n){if(!(e=CJ.exec(n)))throw new Error("invalid format: "+n);var e;return new pM({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}om.prototype=pM.prototype;function pM(n){this.fill=n.fill===void 0?" ":n.fill+"",this.align=n.align===void 0?">":n.align+"",this.sign=n.sign===void 0?"-":n.sign+"",this.symbol=n.symbol===void 0?"":n.symbol+"",this.zero=!!n.zero,this.width=n.width===void 0?void 0:+n.width,this.comma=!!n.comma,this.precision=n.precision===void 0?void 0:+n.precision,this.trim=!!n.trim,this.type=n.type===void 0?"":n.type+""}pM.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function SJ(n){e:for(var e=n.length,t=1,i=-1,s;t0&&(i=0);break}return i>0?n.slice(0,i)+n.slice(s+1):n}var QW;function xJ(n,e){var t=qC(n,e);if(!t)return n+"";var i=t[0],s=t[1],o=s-(QW=Math.max(-8,Math.min(8,Math.floor(s/3)))*3)+1,r=i.length;return o===r?i:o>r?i+new Array(o-r+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+qC(n,Math.max(0,e+o-1))[0]}function j5(n,e){var t=qC(n,e);if(!t)return n+"";var i=t[0],s=t[1];return s<0?"0."+new Array(-s).join("0")+i:i.length>s+1?i.slice(0,s+1)+"."+i.slice(s+1):i+new Array(s-i.length+2).join("0")}const q5={"%":(n,e)=>(n*100).toFixed(e),b:n=>Math.round(n).toString(2),c:n=>n+"",d:vJ,e:(n,e)=>n.toExponential(e),f:(n,e)=>n.toFixed(e),g:(n,e)=>n.toPrecision(e),o:n=>Math.round(n).toString(8),p:(n,e)=>j5(n*100,e),r:j5,s:xJ,X:n=>Math.round(n).toString(16).toUpperCase(),x:n=>Math.round(n).toString(16)};function G5(n){return n}var K5=Array.prototype.map,Y5=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function LJ(n){var e=n.grouping===void 0||n.thousands===void 0?G5:yJ(K5.call(n.grouping,Number),n.thousands+""),t=n.currency===void 0?"":n.currency[0]+"",i=n.currency===void 0?"":n.currency[1]+"",s=n.decimal===void 0?".":n.decimal+"",o=n.numerals===void 0?G5:wJ(K5.call(n.numerals,String)),r=n.percent===void 0?"%":n.percent+"",a=n.minus===void 0?"−":n.minus+"",l=n.nan===void 0?"NaN":n.nan+"";function c(u){u=om(u);var h=u.fill,f=u.align,g=u.sign,p=u.symbol,_=u.zero,v=u.width,b=u.comma,y=u.precision,w=u.trim,S=u.type;S==="n"?(b=!0,S="g"):q5[S]||(y===void 0&&(y=12),w=!0,S="g"),(_||h==="0"&&f==="=")&&(_=!0,h="0",f="=");var L=p==="$"?t:p==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",x=p==="$"?i:/[%p]/.test(S)?r:"",D=q5[S],k=/[defgprs%]/.test(S);y=y===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y));function P(O){var M=L,R=x,z,G,te;if(S==="c")R=D(O)+R,O="";else{O=+O;var ae=O<0||1/O<0;if(O=isNaN(O)?l:D(Math.abs(O),y),w&&(O=SJ(O)),ae&&+O==0&&g!=="+"&&(ae=!1),M=(ae?g==="("?g:a:g==="-"||g==="("?"":g)+M,R=(S==="s"?Y5[8+QW/3]:"")+R+(ae&&g==="("?")":""),k){for(z=-1,G=O.length;++z te||te>57){R=(te===46?s+O.slice(z+1):O.slice(z))+R,O=O.slice(0,z);break}}}b&&!_&&(O=e(O,1/0));var fe=M.length+O.length+R.length,oe=fe >1)+M+O+R+oe.slice(fe);break;default:O=oe+M+O+R;break}return o(O)}return P.toString=function(){return u+""},P}function d(u,h){var f=c((u=om(u),u.type="f",u)),g=Math.max(-8,Math.min(8,Math.floor(sm(h)/3)))*3,p=Math.pow(10,-g),_=Y5[8+g/3];return function(v){return f(p*v)+_}}return{format:c,formatPrefix:d}}var xy,Is,JW;DJ({thousands:",",grouping:[3],currency:["$",""]});function DJ(n){return xy=LJ(n),Is=xy.format,JW=xy.formatPrefix,xy}function kJ(n){return Math.max(0,-sm(Math.abs(n)))}function EJ(n,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(sm(e)/3)))*3-sm(Math.abs(n)))}function AJ(n,e){return n=Math.abs(n),e=Math.abs(e)-n,Math.max(0,sm(e)-sm(n))+1}const yk=new Date,wk=new Date;function Fn(n,e,t,i){function s(o){return n(o=arguments.length===0?new Date:new Date(+o)),o}return s.floor=o=>(n(o=new Date(+o)),o),s.ceil=o=>(n(o=new Date(o-1)),e(o,1),n(o),o),s.round=o=>{const r=s(o),a=s.ceil(o);return o-r (e(o=new Date(+o),r==null?1:Math.floor(r)),o),s.range=(o,r,a)=>{const l=[];if(o=s.ceil(o),a=a==null?1:Math.floor(a),!(o 0))return l;let c;do l.push(c=new Date(+o)),e(o,a),n(o);while(c Fn(r=>{if(r>=r)for(;n(r),!o(r);)r.setTime(r-1)},(r,a)=>{if(r>=r)if(a<0)for(;++a<=0;)for(;e(r,-1),!o(r););else for(;--a>=0;)for(;e(r,1),!o(r););}),t&&(s.count=(o,r)=>(yk.setTime(+o),wk.setTime(+r),n(yk),n(wk),Math.floor(t(yk,wk))),s.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?s.filter(i?r=>i(r)%o===0:r=>s.count(0,r)%o===0):s)),s}const rm=Fn(()=>{},(n,e)=>{n.setTime(+n+e)},(n,e)=>e-n);rm.every=n=>(n=Math.floor(n),!isFinite(n)||!(n>0)?null:n>1?Fn(e=>{e.setTime(Math.floor(e/n)*n)},(e,t)=>{e.setTime(+e+t*n)},(e,t)=>(t-e)/n):rm);rm.range;const Kl=1e3,ar=Kl*60,Yl=ar*60,pc=Yl*24,mM=pc*7,Z5=pc*30,Ck=pc*365,Zl=Fn(n=>{n.setTime(n-n.getMilliseconds())},(n,e)=>{n.setTime(+n+e*Kl)},(n,e)=>(e-n)/Kl,n=>n.getUTCSeconds());Zl.range;const Qx=Fn(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*Kl)},(n,e)=>{n.setTime(+n+e*ar)},(n,e)=>(e-n)/ar,n=>n.getMinutes());Qx.range;const Jx=Fn(n=>{n.setUTCSeconds(0,0)},(n,e)=>{n.setTime(+n+e*ar)},(n,e)=>(e-n)/ar,n=>n.getUTCMinutes());Jx.range;const eL=Fn(n=>{n.setTime(n-n.getMilliseconds()-n.getSeconds()*Kl-n.getMinutes()*ar)},(n,e)=>{n.setTime(+n+e*Yl)},(n,e)=>(e-n)/Yl,n=>n.getHours());eL.range;const tL=Fn(n=>{n.setUTCMinutes(0,0,0)},(n,e)=>{n.setTime(+n+e*Yl)},(n,e)=>(e-n)/Yl,n=>n.getUTCHours());tL.range;const Ld=Fn(n=>n.setHours(0,0,0,0),(n,e)=>n.setDate(n.getDate()+e),(n,e)=>(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*ar)/pc,n=>n.getDate()-1);Ld.range;const jh=Fn(n=>{n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCDate(n.getUTCDate()+e)},(n,e)=>(e-n)/pc,n=>n.getUTCDate()-1);jh.range;const eV=Fn(n=>{n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCDate(n.getUTCDate()+e)},(n,e)=>(e-n)/pc,n=>Math.floor(n/pc));eV.range;function Of(n){return Fn(e=>{e.setDate(e.getDate()-(e.getDay()+7-n)%7),e.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ar)/mM)}const _1=Of(0),GC=Of(1),IJ=Of(2),TJ=Of(3),am=Of(4),NJ=Of(5),RJ=Of(6);_1.range;GC.range;IJ.range;TJ.range;am.range;NJ.range;RJ.range;function Ff(n){return Fn(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-n)%7),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/mM)}const b1=Ff(0),KC=Ff(1),MJ=Ff(2),PJ=Ff(3),lm=Ff(4),OJ=Ff(5),FJ=Ff(6);b1.range;KC.range;MJ.range;PJ.range;lm.range;OJ.range;FJ.range;const fb=Fn(n=>{n.setDate(1),n.setHours(0,0,0,0)},(n,e)=>{n.setMonth(n.getMonth()+e)},(n,e)=>e.getMonth()-n.getMonth()+(e.getFullYear()-n.getFullYear())*12,n=>n.getMonth());fb.range;const gb=Fn(n=>{n.setUTCDate(1),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCMonth(n.getUTCMonth()+e)},(n,e)=>e.getUTCMonth()-n.getUTCMonth()+(e.getUTCFullYear()-n.getUTCFullYear())*12,n=>n.getUTCMonth());gb.range;const Ja=Fn(n=>{n.setMonth(0,1),n.setHours(0,0,0,0)},(n,e)=>{n.setFullYear(n.getFullYear()+e)},(n,e)=>e.getFullYear()-n.getFullYear(),n=>n.getFullYear());Ja.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:Fn(e=>{e.setFullYear(Math.floor(e.getFullYear()/n)*n),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t*n)});Ja.range;const el=Fn(n=>{n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,e)=>{n.setUTCFullYear(n.getUTCFullYear()+e)},(n,e)=>e.getUTCFullYear()-n.getUTCFullYear(),n=>n.getUTCFullYear());el.every=n=>!isFinite(n=Math.floor(n))||!(n>0)?null:Fn(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/n)*n),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t*n)});el.range;function tV(n,e,t,i,s,o){const r=[[Zl,1,Kl],[Zl,5,5*Kl],[Zl,15,15*Kl],[Zl,30,30*Kl],[o,1,ar],[o,5,5*ar],[o,15,15*ar],[o,30,30*ar],[s,1,Yl],[s,3,3*Yl],[s,6,6*Yl],[s,12,12*Yl],[i,1,pc],[i,2,2*pc],[t,1,mM],[e,1,Z5],[e,3,3*Z5],[n,1,Ck]];function a(c,d,u){const h=d _).right(r,h);if(f===r.length)return n.every(ff(c/Ck,d/Ck,u));if(f===0)return rm.every(Math.max(ff(c,d,u),1));const[g,p]=r[h/r[f-1][2] (n[e]=1+t,n),{});const $J={[pb]:Ja,[mb]:fb.every(3),[_b]:fb,[bb]:_1,[vb]:Ld,[iL]:Ld,[_M]:Ld,[yb]:eL,[wb]:Qx,[Cb]:Zl,[nL]:rm},UJ={[pb]:el,[mb]:gb.every(3),[_b]:gb,[bb]:b1,[vb]:jh,[iL]:jh,[_M]:jh,[yb]:tL,[wb]:Jx,[Cb]:Zl,[nL]:rm};function jJ(n){return $J[n]}function qJ(n){return UJ[n]}function Sk(n){if(0<=n.y&&n.y<100){var e=new Date(-1,n.m,n.d,n.H,n.M,n.S,n.L);return e.setFullYear(n.y),e}return new Date(n.y,n.m,n.d,n.H,n.M,n.S,n.L)}function xk(n){if(0<=n.y&&n.y<100){var e=new Date(Date.UTC(-1,n.m,n.d,n.H,n.M,n.S,n.L));return e.setUTCFullYear(n.y),e}return new Date(Date.UTC(n.y,n.m,n.d,n.H,n.M,n.S,n.L))}function w0(n,e,t){return{y:n,m:e,d:t,H:0,M:0,S:0,L:0}}function iV(n){var e=n.dateTime,t=n.date,i=n.time,s=n.periods,o=n.days,r=n.shortDays,a=n.months,l=n.shortMonths,c=C0(s),d=S0(s),u=C0(o),h=S0(o),f=C0(r),g=S0(r),p=C0(a),_=S0(a),v=C0(l),b=S0(l),y={a:ae,A:fe,b:oe,B:Se,c:null,d:iO,e:iO,f:pee,g:Lee,G:kee,H:hee,I:fee,j:gee,L:nV,m:mee,M:_ee,p:Ie,q:me,Q:oO,s:rO,S:bee,u:vee,U:yee,V:wee,w:Cee,W:See,x:null,X:null,y:xee,Y:Dee,Z:Eee,"%":sO},w={a:ie,A:Zt,b:Dt,B:Tt,c:null,d:nO,e:nO,f:Nee,g:Hee,G:Uee,H:Aee,I:Iee,j:Tee,L:oV,m:Ree,M:Mee,p:qe,q:ni,Q:oO,s:rO,S:Pee,u:Oee,U:Fee,V:Bee,w:Wee,W:Vee,x:null,X:null,y:zee,Y:$ee,Z:jee,"%":sO},S={a:P,A:O,b:M,B:R,c:z,d:eO,e:eO,f:lee,g:J5,G:Q5,H:tO,I:tO,j:see,L:aee,m:nee,M:oee,p:k,q:iee,Q:dee,s:uee,S:ree,u:XJ,U:QJ,V:JJ,w:ZJ,W:eee,x:G,X:te,y:J5,Y:Q5,Z:tee,"%":cee};y.x=L(t,y),y.X=L(i,y),y.c=L(e,y),w.x=L(t,w),w.X=L(i,w),w.c=L(e,w);function L(ke,Ve){return function(ge){var he=[],ki=-1,kt=0,It=ke.length,vi,Jo,Pu;for(ge instanceof Date||(ge=new Date(+ge));++ki 53)return null;"w"in he||(he.w=1),"Z"in he?(kt=xk(w0(he.y,0,1)),It=kt.getUTCDay(),kt=It>4||It===0?KC.ceil(kt):KC(kt),kt=jh.offset(kt,(he.V-1)*7),he.y=kt.getUTCFullYear(),he.m=kt.getUTCMonth(),he.d=kt.getUTCDate()+(he.w+6)%7):(kt=Sk(w0(he.y,0,1)),It=kt.getDay(),kt=It>4||It===0?GC.ceil(kt):GC(kt),kt=Ld.offset(kt,(he.V-1)*7),he.y=kt.getFullYear(),he.m=kt.getMonth(),he.d=kt.getDate()+(he.w+6)%7)}else("W"in he||"U"in he)&&("w"in he||(he.w="u"in he?he.u%7:"W"in he?1:0),It="Z"in he?xk(w0(he.y,0,1)).getUTCDay():Sk(w0(he.y,0,1)).getDay(),he.m=0,he.d="W"in he?(he.w+6)%7+he.W*7-(It+5)%7:he.w+he.U*7-(It+6)%7);return"Z"in he?(he.H+=he.Z/100|0,he.M+=he.Z%100,xk(he)):Sk(he)}}function D(ke,Ve,ge,he){for(var ki=0,kt=Ve.length,It=ge.length,vi,Jo;ki =It)return-1;if(vi=Ve.charCodeAt(ki++),vi===37){if(vi=Ve.charAt(ki++),Jo=S[vi in X5?Ve.charAt(ki++):vi],!Jo||(he=Jo(ke,ge,he))<0)return-1}else if(vi!=ge.charCodeAt(he++))return-1}return he}function k(ke,Ve,ge){var he=c.exec(Ve.slice(ge));return he?(ke.p=d.get(he[0].toLowerCase()),ge+he[0].length):-1}function P(ke,Ve,ge){var he=f.exec(Ve.slice(ge));return he?(ke.w=g.get(he[0].toLowerCase()),ge+he[0].length):-1}function O(ke,Ve,ge){var he=u.exec(Ve.slice(ge));return he?(ke.w=h.get(he[0].toLowerCase()),ge+he[0].length):-1}function M(ke,Ve,ge){var he=v.exec(Ve.slice(ge));return he?(ke.m=b.get(he[0].toLowerCase()),ge+he[0].length):-1}function R(ke,Ve,ge){var he=p.exec(Ve.slice(ge));return he?(ke.m=_.get(he[0].toLowerCase()),ge+he[0].length):-1}function z(ke,Ve,ge){return D(ke,e,Ve,ge)}function G(ke,Ve,ge){return D(ke,t,Ve,ge)}function te(ke,Ve,ge){return D(ke,i,Ve,ge)}function ae(ke){return r[ke.getDay()]}function fe(ke){return o[ke.getDay()]}function oe(ke){return l[ke.getMonth()]}function Se(ke){return a[ke.getMonth()]}function Ie(ke){return s[+(ke.getHours()>=12)]}function me(ke){return 1+~~(ke.getMonth()/3)}function ie(ke){return r[ke.getUTCDay()]}function Zt(ke){return o[ke.getUTCDay()]}function Dt(ke){return l[ke.getUTCMonth()]}function Tt(ke){return a[ke.getUTCMonth()]}function qe(ke){return s[+(ke.getUTCHours()>=12)]}function ni(ke){return 1+~~(ke.getUTCMonth()/3)}return{format:function(ke){var Ve=L(ke+="",y);return Ve.toString=function(){return ke},Ve},parse:function(ke){var Ve=x(ke+="",!1);return Ve.toString=function(){return ke},Ve},utcFormat:function(ke){var Ve=L(ke+="",w);return Ve.toString=function(){return ke},Ve},utcParse:function(ke){var Ve=x(ke+="",!0);return Ve.toString=function(){return ke},Ve}}}var X5={"-":"",_:" ",0:"0"},Qn=/^\s*\d+/,GJ=/^%/,KJ=/[\\^$*+?|[\]().{}]/g;function Kt(n,e,t){var i=n<0?"-":"",s=(i?-n:n)+"",o=s.length;return i+(o [e.toLowerCase(),t]))}function ZJ(n,e,t){var i=Qn.exec(e.slice(t,t+1));return i?(n.w=+i[0],t+i[0].length):-1}function XJ(n,e,t){var i=Qn.exec(e.slice(t,t+1));return i?(n.u=+i[0],t+i[0].length):-1}function QJ(n,e,t){var i=Qn.exec(e.slice(t,t+2));return i?(n.U=+i[0],t+i[0].length):-1}function JJ(n,e,t){var i=Qn.exec(e.slice(t,t+2));return i?(n.V=+i[0],t+i[0].length):-1}function eee(n,e,t){var i=Qn.exec(e.slice(t,t+2));return i?(n.W=+i[0],t+i[0].length):-1}function Q5(n,e,t){var i=Qn.exec(e.slice(t,t+4));return i?(n.y=+i[0],t+i[0].length):-1}function J5(n,e,t){var i=Qn.exec(e.slice(t,t+2));return i?(n.y=+i[0]+(+i[0]>68?1900:2e3),t+i[0].length):-1}function tee(n,e,t){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(t,t+6));return i?(n.Z=i[1]?0:-(i[2]+(i[3]||"00")),t+i[0].length):-1}function iee(n,e,t){var i=Qn.exec(e.slice(t,t+1));return i?(n.q=i[0]*3-3,t+i[0].length):-1}function nee(n,e,t){var i=Qn.exec(e.slice(t,t+2));return i?(n.m=i[0]-1,t+i[0].length):-1}function eO(n,e,t){var i=Qn.exec(e.slice(t,t+2));return i?(n.d=+i[0],t+i[0].length):-1}function see(n,e,t){var i=Qn.exec(e.slice(t,t+3));return i?(n.m=0,n.d=+i[0],t+i[0].length):-1}function tO(n,e,t){var i=Qn.exec(e.slice(t,t+2));return i?(n.H=+i[0],t+i[0].length):-1}function oee(n,e,t){var i=Qn.exec(e.slice(t,t+2));return i?(n.M=+i[0],t+i[0].length):-1}function ree(n,e,t){var i=Qn.exec(e.slice(t,t+2));return i?(n.S=+i[0],t+i[0].length):-1}function aee(n,e,t){var i=Qn.exec(e.slice(t,t+3));return i?(n.L=+i[0],t+i[0].length):-1}function lee(n,e,t){var i=Qn.exec(e.slice(t,t+6));return i?(n.L=Math.floor(i[0]/1e3),t+i[0].length):-1}function cee(n,e,t){var i=GJ.exec(e.slice(t,t+1));return i?t+i[0].length:-1}function dee(n,e,t){var i=Qn.exec(e.slice(t));return i?(n.Q=+i[0],t+i[0].length):-1}function uee(n,e,t){var i=Qn.exec(e.slice(t));return i?(n.s=+i[0],t+i[0].length):-1}function iO(n,e){return Kt(n.getDate(),e,2)}function hee(n,e){return Kt(n.getHours(),e,2)}function fee(n,e){return Kt(n.getHours()%12||12,e,2)}function gee(n,e){return Kt(1+Ld.count(Ja(n),n),e,3)}function nV(n,e){return Kt(n.getMilliseconds(),e,3)}function pee(n,e){return nV(n,e)+"000"}function mee(n,e){return Kt(n.getMonth()+1,e,2)}function _ee(n,e){return Kt(n.getMinutes(),e,2)}function bee(n,e){return Kt(n.getSeconds(),e,2)}function vee(n){var e=n.getDay();return e===0?7:e}function yee(n,e){return Kt(_1.count(Ja(n)-1,n),e,2)}function sV(n){var e=n.getDay();return e>=4||e===0?am(n):am.ceil(n)}function wee(n,e){return n=sV(n),Kt(am.count(Ja(n),n)+(Ja(n).getDay()===4),e,2)}function Cee(n){return n.getDay()}function See(n,e){return Kt(GC.count(Ja(n)-1,n),e,2)}function xee(n,e){return Kt(n.getFullYear()%100,e,2)}function Lee(n,e){return n=sV(n),Kt(n.getFullYear()%100,e,2)}function Dee(n,e){return Kt(n.getFullYear()%1e4,e,4)}function kee(n,e){var t=n.getDay();return n=t>=4||t===0?am(n):am.ceil(n),Kt(n.getFullYear()%1e4,e,4)}function Eee(n){var e=n.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Kt(e/60|0,"0",2)+Kt(e%60,"0",2)}function nO(n,e){return Kt(n.getUTCDate(),e,2)}function Aee(n,e){return Kt(n.getUTCHours(),e,2)}function Iee(n,e){return Kt(n.getUTCHours()%12||12,e,2)}function Tee(n,e){return Kt(1+jh.count(el(n),n),e,3)}function oV(n,e){return Kt(n.getUTCMilliseconds(),e,3)}function Nee(n,e){return oV(n,e)+"000"}function Ree(n,e){return Kt(n.getUTCMonth()+1,e,2)}function Mee(n,e){return Kt(n.getUTCMinutes(),e,2)}function Pee(n,e){return Kt(n.getUTCSeconds(),e,2)}function Oee(n){var e=n.getUTCDay();return e===0?7:e}function Fee(n,e){return Kt(b1.count(el(n)-1,n),e,2)}function rV(n){var e=n.getUTCDay();return e>=4||e===0?lm(n):lm.ceil(n)}function Bee(n,e){return n=rV(n),Kt(lm.count(el(n),n)+(el(n).getUTCDay()===4),e,2)}function Wee(n){return n.getUTCDay()}function Vee(n,e){return Kt(KC.count(el(n)-1,n),e,2)}function zee(n,e){return Kt(n.getUTCFullYear()%100,e,2)}function Hee(n,e){return n=rV(n),Kt(n.getUTCFullYear()%100,e,2)}function $ee(n,e){return Kt(n.getUTCFullYear()%1e4,e,4)}function Uee(n,e){var t=n.getUTCDay();return n=t>=4||t===0?lm(n):lm.ceil(n),Kt(n.getUTCFullYear()%1e4,e,4)}function jee(){return"+0000"}function sO(){return"%"}function oO(n){return+n}function rO(n){return Math.floor(+n/1e3)}var dg,bM,aV,vM,lV;qee({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function qee(n){return dg=iV(n),bM=dg.format,aV=dg.parse,vM=dg.utcFormat,lV=dg.utcParse,dg}function Ly(n){const e={};return t=>e[t]||(e[t]=n(t))}function aO(n,e,t){t=t||{},Ms(t)||In(`Invalid time multi-format specifier: ${t}`);const i=e(Cb),s=e(wb),o=e(yb),r=e(vb),a=e(bb),l=e(_b),c=e(mb),d=e(pb),u=n(t[nL]||".%L"),h=n(t[Cb]||":%S"),f=n(t[wb]||"%I:%M"),g=n(t[yb]||"%I %p"),p=n(t[vb]||t[iL]||"%a %d"),_=n(t[bb]||"%b %d"),v=n(t[_b]||"%B"),b=n(t[mb]||"%B"),y=n(t[pb]||"%Y");return w=>(i(w) Ti(i)?e(i):aO(e,jJ,i),utcFormat:i=>Ti(i)?t(i):aO(t,qJ,i),timeParse:Ly(n.parse),utcParse:Ly(n.utcParse)}}let jE;Gee();function Gee(){return jE=cV({format:bM,parse:aV,utcFormat:vM,utcParse:lV})}function Kee(n){return cV(iV(n))}function Yee(n){return arguments.length?jE=Kee(n):jE}const Zee=n=>n!=null&&n===n,Xee=n=>n==="true"||n==="false"||n===!0||n===!1,Qee=n=>!Number.isNaN(Date.parse(n)),dV=n=>!Number.isNaN(+n)&&!(n instanceof Date),Jee=n=>dV(n)&&Number.isInteger(+n),lO={boolean:WQ,integer:ub,number:ub,date:zQ,string:HQ,unknown:Yx},Dy=[Xee,Jee,dV,Qee],ete=["boolean","integer","number","date"];function tte(n,e){if(!n||!n.length)return"unknown";const t=n.length,i=Dy.length,s=Dy.map((o,r)=>r+1);for(let o=0,r=0,a,l;o o===0?r:o,0)-1]}function ite(n,e){return e.reduce((t,i)=>(t[i]=tte(n,i),t),{})}function cO(n){const e=function(t,i){const s={delimiter:n};return yM(t,i?MQ(i,s):s)};return e.responseType="text",e}function yM(n,e){return e.header&&(n=e.header.map(gM).join(e.delimiter)+` +`+n),UW(e.delimiter).parse(n+"")}yM.responseType="text";function nte(n){return typeof Buffer=="function"&&fr(Buffer.isBuffer)?Buffer.isBuffer(n):!1}function wM(n,e){const t=e&&e.property?Kx(e.property):Yx;return Ms(n)&&!nte(n)?ste(t(n),e):t(JSON.parse(n))}wM.responseType="json";function ste(n,e){return!cs(n)&&FQ(n)&&(n=[...n]),e&&e.copy?JSON.parse(JSON.stringify(n)):n}const ote={interior:(n,e)=>n!==e,exterior:(n,e)=>n===e};function uV(n,e){let t,i,s,o;return n=wM(n,e),e&&e.feature?(t=XQ,s=e.feature):e&&e.mesh?(t=JQ,s=e.mesh,o=ote[e.filter]):In("Missing TopoJSON feature or mesh parameter."),i=(i=n.objects[s])?t(n,i,o):In("Invalid TopoJSON object: "+s),i&&i.features||[i]}uV.responseType="json";const Lk={dsv:yM,csv:cO(","),tsv:cO(" "),json:wM,topojson:uV};function CM(n,e){return arguments.length>1?(Lk[n]=e,this):Pg(Lk,n)?Lk[n]:null}function SM(n,e,t,i){e=e||{};const s=CM(e.type||"json");return s||In("Unknown data format type: "+e.type),n=s(n,e),e.parse&&rte(n,e.parse,t,i),Pg(n,"columns")&&delete n.columns,n}function rte(n,e,t,i){if(!n.length)return;const s=Yee();t=t||s.timeParse,i=i||s.utcParse;let o=n.columns||Object.keys(n[0]),r,a,l,c,d,u;e==="auto"&&(e=ite(n,o)),o=Object.keys(e);const h=o.map(f=>{const g=e[f];let p,_;if(g&&(g.startsWith("date:")||g.startsWith("utc:")))return p=g.split(/:(.+)?/,2),_=p[1],(_[0]==="'"&&_[_.length-1]==="'"||_[0]==='"'&&_[_.length-1]==='"')&&(_=_.slice(1,-1)),(p[0]==="utc"?i:t)(_);if(!lO[g])throw Error("Illegal format pattern: "+f+":"+g);return lO[g]});for(l=0,d=n.length,u=o.length;l 2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(n){return Object.keys(n).reduce((e,t)=>{const i=n[t];return i==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(n,[e]){const{style:t}=n.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(const i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?t.removeProperty(i):t[i]=null);for(const i in e){const s=e[i];if(s!=null){this.ft.add(i);const o=typeof s=="string"&&s.endsWith(Zee);i.includes("-")||o?t.setProperty(i,o?s.slice(0,-11):s,o?fV:""):t[i]=s}}return af}}),Qee="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cstyle%3e.spinner_ajPY{transform-origin:center;animation:spinner_AtaB%20.75s%20infinite%20linear}@keyframes%20spinner_AtaB{100%25{transform:rotate(360deg)}}%3c/style%3e%3cpath%20d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z'%20opacity='.25'/%3e%3cpath%20d='M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z'%20class='spinner_ajPY'/%3e%3c/svg%3e",Jee=` + */const hV="important",ate=" !"+hV,lte=tW(class extends iW{constructor(n){var e;if(super(n),n.type!==eW.ATTRIBUTE||n.name!=="style"||((e=n.strings)==null?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(n){return Object.keys(n).reduce((e,t)=>{const i=n[t];return i==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(n,[e]){const{style:t}=n.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(const i of this.ft)e[i]==null&&(this.ft.delete(i),i.includes("-")?t.removeProperty(i):t[i]=null);for(const i in e){const s=e[i];if(s!=null){this.ft.add(i);const o=typeof s=="string"&&s.endsWith(ate);i.includes("-")||o?t.setProperty(i,o?s.slice(0,-11):s,o?hV:""):t[i]=s}}return df}}),cte="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cstyle%3e.spinner_ajPY{transform-origin:center;animation:spinner_AtaB%20.75s%20infinite%20linear}@keyframes%20spinner_AtaB{100%25{transform:rotate(360deg)}}%3c/style%3e%3cpath%20d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z'%20opacity='.25'/%3e%3cpath%20d='M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z'%20class='spinner_ajPY'/%3e%3c/svg%3e",dte=` .genome-spy { font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; position: relative; @@ -996,9 +789,9 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { font-size: 14px; padding: 10px; } -`;function ete(n,e){var t=n.getBoundingClientRect();return[e.clientX-t.left-n.clientLeft,e.clientY-t.top-n.clientTop]}function iS(n,e){return n.length==e.length&&n.every((t,i)=>n[i]===e[i])}function Zs(n){return Array.isArray(n)?n:typeof n<"u"?[n]:[]}function _1(n){return n[n.length-1]}class tte{constructor(e){this.container=e,this.element=document.createElement("div"),this.element.className="tooltip",this._visible=!0,this.container.appendChild(this.element),this._previousTooltipDatum=void 0,this.enabledStack=[!0],this._penaltyUntil=0,this._lastCoords=void 0,this._previousMove=0,this.clear()}set visible(e){e!=this._visible&&(this.element.style.display=e?null:"none",this._visible=e)}get visible(){return this._visible}get enabled(){return _1(this.enabledStack)??!0}pushEnabledState(e){this.enabledStack.push(e),e||(this.visible=!1)}popEnabledState(){this.enabledStack.pop()}handleMouseMove(e){this.mouseCoords=ete(this.container,e);const t=performance.now();!this.visible&&!this._isPenalty()&&t-this._previousMove>500&&(this._penaltyUntil=t+70),this._lastCoords&&ite(this.mouseCoords,this._lastCoords)>20&&(this._penaltyUntil=t+400),this._lastCoords=this.mouseCoords,this.visible&&this.updatePlacement(),this._previousMove=t}updatePlacement(){const[t,i]=this.mouseCoords;let s=t+20;s>this.container.clientWidth-this.element.offsetWidth&&(s=t-20-this.element.offsetWidth),this.element.style.left=s+"px",this.element.style.top=Math.min(i+20,this.container.clientHeight-this.element.offsetHeight)+"px"}setContent(e){if(!e||!this.enabled||this._isPenalty()){this.visible&&(Qp("",this.element),this.visible=!1),this._previousTooltipDatum=void 0;return}Qp(e,this.element),this.visible=!0,this.updatePlacement()}clear(){this._previousTooltipDatum=void 0,this.setContent(void 0)}updateWithDatum(e,t){e!==this._previousTooltipDatum&&(this._previousTooltipDatum=e,t||(t=i=>Promise.resolve(It` ${JSON.stringify(i)} `)),t(e).then(i=>this.setContent(i)).catch(i=>{if(i!=="debounced")throw i}))}_isPenalty(){return this._penaltyUntil&&this._penaltyUntil>performance.now()}}function ite(n,e){let t=0;for(let i=0;i n[i]===e[i])}function Ks(n){return Array.isArray(n)?n:typeof n<"u"?[n]:[]}function v1(n){return n[n.length-1]}class hte{constructor(e){this.container=e,this.element=document.createElement("div"),this.element.className="tooltip",this._visible=!0,this.container.appendChild(this.element),this._previousTooltipDatum=void 0,this.enabledStack=[!0],this._penaltyUntil=0,this._lastCoords=void 0,this._previousMove=0,this.clear()}set visible(e){e!=this._visible&&(this.element.style.display=e?null:"none",this._visible=e)}get visible(){return this._visible}get enabled(){return v1(this.enabledStack)??!0}pushEnabledState(e){this.enabledStack.push(e),e||(this.visible=!1)}popEnabledState(){this.enabledStack.pop()}handleMouseMove(e){this.mouseCoords=ute(this.container,e);const t=performance.now();!this.visible&&!this._isPenalty()&&t-this._previousMove>500&&(this._penaltyUntil=t+70),this._lastCoords&&fte(this.mouseCoords,this._lastCoords)>20&&(this._penaltyUntil=t+400),this._lastCoords=this.mouseCoords,this.visible&&this.updatePlacement(),this._previousMove=t}updatePlacement(){const[t,i]=this.mouseCoords;let s=t+20;s>this.container.clientWidth-this.element.offsetWidth&&(s=t-20-this.element.offsetWidth),this.element.style.left=s+"px",this.element.style.top=Math.min(i+20,this.container.clientHeight-this.element.offsetHeight)+"px"}setContent(e){if(!e||!this.enabled||this._isPenalty()){this.visible&&(em("",this.element),this.visible=!1),this._previousTooltipDatum=void 0;return}em(e,this.element),this.visible=!0,this.updatePlacement()}clear(){this._previousTooltipDatum=void 0,this.setContent(void 0)}updateWithDatum(e,t){e!==this._previousTooltipDatum&&(this._previousTooltipDatum=e,t||(t=i=>Promise.resolve(Lt` ${JSON.stringify(i)} `)),t(e).then(i=>this.setContent(i)).catch(i=>{if(i!=="debounced")throw i}))}_isPenalty(){return this._penaltyUntil&&this._penaltyUntil>performance.now()}}function fte(n,e){let t=0;for(let i=0;i 0)throw new Error(`Can not guess numComponents for attribute '${n}'. Tried ${t} but ${e} values is not evenly divisible by ${t}. You should specify it.`);return t}function Tte(n,e){return n.numComponents||n.size||CV(e,Ete(n).length)}function RM(n,e){if(nS(n))return n;if(nS(n.data))return n.data;Array.isArray(n)&&(n={data:n});let t=n.type;return t||(wV(e)?t=Uint16Array:t=Float32Array),new t(n.data)}function Nte(n,e){const t={};return Object.keys(e).forEach(function(i){if(!wV(i)){const s=e[i],o=s.attrib||s.name||s.attribName||bV.attribPrefix+i;if(s.value){if(!Array.isArray(s.value)&&!nS(s.value))throw new Error("array.value is not array or typedarray");t[o]={value:s.value}}else{let r,a,l,c;if(s.buffer&&s.buffer instanceof WebGLBuffer)r=s.buffer,c=s.numComponents||s.size,a=s.type,l=s.normalize;else if(typeof s=="number"||typeof s.data=="number"){const d=s.data||s,u=s.type||Float32Array,h=d*u.BYTES_PER_ELEMENT;a=hte(u),l=s.normalize!==void 0?s.normalize:kte(u),c=s.numComponents||s.size||CV(i,d),r=n.createBuffer(),n.bindBuffer(Ga,r),n.bufferData(Ga,h,s.drawType||_V)}else{const d=RM(s,i);r=yV(n,d,void 0,s.drawType),a=NM(d),l=s.normalize!==void 0?s.normalize:Dte(d),c=Tte(s,i)}t[o]={buffer:r,numComponents:c,type:a,normalize:l,stride:s.stride||0,offset:s.offset||0,divisor:s.divisor===void 0?void 0:s.divisor,drawType:s.drawType}}}}),n.bindBuffer(Ga,null),t}function Rte(n,e,t,i){t=RM(t),i!==void 0?(n.bindBuffer(Ga,e.buffer),n.bufferSubData(Ga,i,t)):vV(n,Ga,e.buffer,t,e.drawType)}function Mte(n,e){return e===vte||e===yte?1:e===wte||e===Cte?2:e===Ste||e===xte||e===Lte?4:0}const Tk=["position","positions","a_position"];function Pte(n,e){let t,i;for(i=0;i {const y=v*b.ndx,w=t.subarray(y,y+v);n.texImage2D(b.face,l,c,o,r,0,u,h,w)})}else s===Ud||s===jd?n.texImage3D(s,l,c,o,r,a,0,u,h,t):n.texImage2D(s,l,c,o,r,0,u,h,t);return{width:o,height:r,depth:a,type:h}}function fne(n,e,t){const i=t.target||yc;n.bindTexture(i,e);const s=t.level||0,o=t.internalFormat||t.format||Ii,r=Gm(o),a=t.format||r.format,l=t.type||r.type;if(am(n,t),i===mc)for(let c=0;c<6;++c)n.texImage2D(hL+c,s,o,t.width,t.height,0,a,l,null);else i===Ud||i===jd?n.texImage3D(i,s,o,t.width,t.height,t.depth,0,a,l,null):n.texImage2D(i,s,o,t.width,t.height,0,a,l,null)}function Sb(n,e,t){t=t||b1,e=e||hu.textureOptions;const i=n.createTexture(),s=e.target||yc;let o=e.width||1,r=e.height||1;const a=e.internalFormat||Ii;n.bindTexture(s,i),s===mc&&(n.texParameteri(s,oS,sS),n.texParameteri(s,rS,sS));let l=e.src;if(l)if(typeof l=="function"&&(l=l(n,e)),typeof l=="string")dne(n,i,e,t);else if(rm(l)||Array.isArray(l)&&(typeof l[0]=="number"||Array.isArray(l[0])||rm(l[0]))){const c=MV(n,i,l,e);o=c.width,r=c.height}else Array.isArray(l)&&(typeof l[0]=="string"||RV(l[0]))?s===mc?une(n,i,e,t):hne(n,i,e,t):(NV(n,i,l,e),o=l.width,r=l.height);else fne(n,i,e);return Cb(e)&&tA(n,i,e,o,r,a),TV(n,i,e),i}function gne(n,e,t,i,s,o){i=i||t.width,s=s||t.height,o=o||t.depth;const r=t.target||yc;n.bindTexture(r,e);const a=t.level||0,l=t.internalFormat||t.format||Ii,c=Gm(l),d=t.format||c.format;let u;const h=t.src;if(h&&(rm(h)||Array.isArray(h)&&typeof h[0]=="number")?u=t.type||AV(n,h,c.type):u=t.type||c.type,r===mc)for(let f=0;f<6;++f)n.texImage2D(hL+f,a,l,i,s,0,d,u,null);else r===Ud||r===jd?n.texImage3D(r,a,l,i,s,o,0,d,u,null):n.texImage2D(r,a,l,i,s,0,d,u,null)}const pne=pV,aS=33984,mne=35048,gL=34962,_ne=34963,FM=35345,PV=35718,bne=35721,vne=35971,yne=35382,wne=35396,Cne=35398,Sne=35392,xne=35395,pL=5126,OV=35664,FV=35665,BV=35666,BM=5124,WV=35667,VV=35668,zV=35669,HV=35670,$V=35671,UV=35672,jV=35673,qV=35674,GV=35675,KV=35676,Lne=35678,Dne=35680,kne=35679,Ene=35682,Ane=35685,Ine=35686,Tne=35687,Nne=35688,Rne=35689,Mne=35690,Pne=36289,One=36292,Fne=36293,WM=5125,YV=36294,ZV=36295,XV=36296,Bne=36298,Wne=36299,Vne=36300,zne=36303,Hne=36306,$ne=36307,Une=36308,jne=36311,mL=3553,_L=34067,VM=32879,bL=35866,wt={};function QV(n,e){return wt[e].bindPoint}function qne(n,e){return function(t){n.uniform1f(e,t)}}function Gne(n,e){return function(t){n.uniform1fv(e,t)}}function Kne(n,e){return function(t){n.uniform2fv(e,t)}}function Yne(n,e){return function(t){n.uniform3fv(e,t)}}function Zne(n,e){return function(t){n.uniform4fv(e,t)}}function JV(n,e){return function(t){n.uniform1i(e,t)}}function ez(n,e){return function(t){n.uniform1iv(e,t)}}function tz(n,e){return function(t){n.uniform2iv(e,t)}}function iz(n,e){return function(t){n.uniform3iv(e,t)}}function nz(n,e){return function(t){n.uniform4iv(e,t)}}function Xne(n,e){return function(t){n.uniform1ui(e,t)}}function Qne(n,e){return function(t){n.uniform1uiv(e,t)}}function Jne(n,e){return function(t){n.uniform2uiv(e,t)}}function ese(n,e){return function(t){n.uniform3uiv(e,t)}}function tse(n,e){return function(t){n.uniform4uiv(e,t)}}function ise(n,e){return function(t){n.uniformMatrix2fv(e,!1,t)}}function nse(n,e){return function(t){n.uniformMatrix3fv(e,!1,t)}}function sse(n,e){return function(t){n.uniformMatrix4fv(e,!1,t)}}function ose(n,e){return function(t){n.uniformMatrix2x3fv(e,!1,t)}}function rse(n,e){return function(t){n.uniformMatrix3x2fv(e,!1,t)}}function ase(n,e){return function(t){n.uniformMatrix2x4fv(e,!1,t)}}function lse(n,e){return function(t){n.uniformMatrix4x2fv(e,!1,t)}}function cse(n,e){return function(t){n.uniformMatrix3x4fv(e,!1,t)}}function dse(n,e){return function(t){n.uniformMatrix4x3fv(e,!1,t)}}function oo(n,e,t,i){const s=QV(n,e);return qm(n)?function(o){let r,a;uL(n,o)?(r=o,a=null):(r=o.texture,a=o.sampler),n.uniform1i(i,t),n.activeTexture(aS+t),n.bindTexture(s,r),n.bindSampler(t,a)}:function(o){n.uniform1i(i,t),n.activeTexture(aS+t),n.bindTexture(s,o)}}function ro(n,e,t,i,s){const o=QV(n,e),r=new Int32Array(s);for(let a=0;a n>="0"&&n<="9";function oz(n,e,t,i){const s=n.split(use).filter(a=>a!=="");let o=0,r="";for(;;){const a=s[o++];r+=a;const l=hse(a[0]),c=l?parseInt(a):a;if(l&&(r+=s[o++]),o===s.length){t[c]=e;break}else{const u=s[o++],h=u==="[",f=t[c]||(h?[]:{});t[c]=f,t=f,i[r]=i[r]||function(g){return function(p){az(g,p)}}(f),r+=u}}}function fse(n,e){let t=0;function i(a,l,c){const d=l.name.endsWith("[0]"),u=l.type,h=wt[u];if(!h)throw new Error(`unknown type: 0x${u.toString(16)}`);let f;if(h.bindPoint){const g=t;t+=l.size,d?f=h.arraySetter(n,u,g,c,l.size):f=h.setter(n,u,g,c,l.size)}else h.arraySetter&&d?f=h.arraySetter(n,c):f=h.setter(n,c);return f.location=c,f}const s={},o={},r=n.getProgramParameter(e,PV);for(let a=0;a((n+(e-1))/e|0)*e;function _se(n,e,t,i){if(e||t){i=i||1;const o=n.length/4;return function(r){let a=0,l=0;for(let c=0;c =sA&&n 1?n.renderbufferStorageMultisample(Ch,u,h,t,i):n.renderbufferStorage(Ch,h,t,i);else{const g=Object.assign({},l);g.width=t,g.height=i,g.auto===void 0&&(g.auto=!1,g.min=g.min||g.minMag||rA,g.mag=g.mag||g.minMag||rA,g.wrapS=g.wrapS||g.wrap||oA,g.wrapT=g.wrapT||g.wrap||oA),d=Sb(n,g)}if(mV(n,d))n.framebufferRenderbuffer(s,f,Ch,d);else if(uL(n,d))l.layer!==void 0?n.framebufferTextureLayer(s,f,d,l.level||0,l.layer):n.framebufferTexture2D(s,f,l.target||xse,d,l.level||0);else throw new Error("unknown attachment type");a.attachments.push(d)}),n.drawBuffers&&n.drawBuffers(r),a}function Vse(n,e,t,i,s){i=i||n.drawingBufferWidth,s=s||n.drawingBufferHeight,e.width=i,e.height=s,t=t||hz,t.forEach(function(o,r){const a=e.attachments[r],l=o.format,c=o.samples;if(c!==void 0||mV(n,a))n.bindRenderbuffer(Ch,a),c>1?n.renderbufferStorageMultisample(Ch,c,l,i,s):n.renderbufferStorage(Ch,l,i,s);else if(uL(n,a))gne(n,a,o,i,s);else throw new Error("unknown attachment type")})}function zse(n,e,t){const i=n.createVertexArray();return n.bindVertexArray(i),e.length||(e=[e]),e.forEach(function(s){uf(n,s,t)}),n.bindVertexArray(null),{numElements:t.numElements,elementType:t.elementType,vertexArrayObject:i}}const Hse=/^(.*?)_/;function $se(n,e){KE(n,0);const t=n.getExtension(e);if(t){const i={},s=Hse.exec(e)[1],o="_"+s;for(const r in t){const a=t[r],l=typeof a=="function",c=l?s:o;let d=r;r.endsWith(c)&&(d=r.substring(0,r.length-c.length)),n[d]!==void 0?!l&&n[d]!==a&&pV(d,n[d],a,r):l?n[d]=function(u){return function(){return u.apply(t,arguments)}}(a):(n[d]=a,i[d]=a)}i.constructor={name:t.constructor.name},KE(i,0)}return t}const CO=["ANGLE_instanced_arrays","EXT_blend_minmax","EXT_color_buffer_float","EXT_color_buffer_half_float","EXT_disjoint_timer_query","EXT_disjoint_timer_query_webgl2","EXT_frag_depth","EXT_sRGB","EXT_shader_texture_lod","EXT_texture_filter_anisotropic","OES_element_index_uint","OES_standard_derivatives","OES_texture_float","OES_texture_float_linear","OES_texture_half_float","OES_texture_half_float_linear","OES_vertex_array_object","WEBGL_color_buffer_float","WEBGL_compressed_texture_atc","WEBGL_compressed_texture_etc1","WEBGL_compressed_texture_pvrtc","WEBGL_compressed_texture_s3tc","WEBGL_compressed_texture_s3tc_srgb","WEBGL_depth_texture","WEBGL_draw_buffers"];function fz(n){for(let e=0;e 0)throw new Error(`Can not guess numComponents for attribute '${n}'. Tried ${t} but ${e} values is not evenly divisible by ${t}. You should specify it.`);return t}function Hte(n,e){return n.numComponents||n.size||wV(e,Wte(n).length)}function TM(n,e){if(ZC(n))return n;if(ZC(n.data))return n.data;Array.isArray(n)&&(n={data:n});let t=n.type;return t||(yV(e)?t=Uint16Array:t=Float32Array),new t(n.data)}function $te(n,e){const t={};return Object.keys(e).forEach(function(i){if(!yV(i)){const s=e[i],o=s.attrib||s.name||s.attribName||_V.attribPrefix+i;if(s.value){if(!Array.isArray(s.value)&&!ZC(s.value))throw new Error("array.value is not array or typedarray");t[o]={value:s.value}}else{let r,a,l,c;if(s.buffer&&s.buffer instanceof WebGLBuffer)r=s.buffer,c=s.numComponents||s.size,a=s.type,l=s.normalize;else if(typeof s=="number"||typeof s.data=="number"){const d=s.data||s,u=s.type||Float32Array,h=d*u.BYTES_PER_ELEMENT;a=Ste(u),l=s.normalize!==void 0?s.normalize:Bte(u),c=s.numComponents||s.size||wV(i,d),r=n.createBuffer(),n.bindBuffer(qa,r),n.bufferData(qa,h,s.drawType||mV)}else{const d=TM(s,i);r=vV(n,d,void 0,s.drawType),a=IM(d),l=s.normalize!==void 0?s.normalize:Fte(d),c=Hte(s,i)}t[o]={buffer:r,numComponents:c,type:a,normalize:l,stride:s.stride||0,offset:s.offset||0,divisor:s.divisor===void 0?void 0:s.divisor,drawType:s.drawType}}}}),n.bindBuffer(qa,null),t}function Ute(n,e,t,i){t=TM(t),i!==void 0?(n.bindBuffer(qa,e.buffer),n.bufferSubData(qa,i,t)):bV(n,qa,e.buffer,t,e.drawType)}function jte(n,e){return e===Ite||e===Tte?1:e===Nte||e===Rte?2:e===Mte||e===Pte||e===Ote?4:0}const Dk=["position","positions","a_position"];function qte(n,e){let t,i;for(i=0;i {const y=v*b.ndx,w=t.subarray(y,y+v);n.texImage2D(b.face,l,c,o,r,0,u,h,w)})}else s===jd||s===qd?n.texImage3D(s,l,c,o,r,a,0,u,h,t):n.texImage2D(s,l,c,o,r,0,u,h,t);return{width:o,height:r,depth:a,type:h}}function xne(n,e,t){const i=t.target||yc;n.bindTexture(i,e);const s=t.level||0,o=t.internalFormat||t.format||Ii,r=Xm(o),a=t.format||r.format,l=t.type||r.type;if(dm(n,t),i===mc)for(let c=0;c<6;++c)n.texImage2D(oL+c,s,o,t.width,t.height,0,a,l,null);else i===jd||i===qd?n.texImage3D(i,s,o,t.width,t.height,t.depth,0,a,l,null):n.texImage2D(i,s,o,t.width,t.height,0,a,l,null)}function Lb(n,e,t){t=t||y1,e=e||fu.textureOptions;const i=n.createTexture(),s=e.target||yc;let o=e.width||1,r=e.height||1;const a=e.internalFormat||Ii;n.bindTexture(s,i),s===mc&&(n.texParameteri(s,QC,XC),n.texParameteri(s,JC,XC));let l=e.src;if(l)if(typeof l=="function"&&(l=l(n,e)),typeof l=="string")wne(n,i,e,t);else if(cm(l)||Array.isArray(l)&&(typeof l[0]=="number"||Array.isArray(l[0])||cm(l[0]))){const c=RV(n,i,l,e);o=c.width,r=c.height}else Array.isArray(l)&&(typeof l[0]=="string"||NV(l[0]))?s===mc?Cne(n,i,e,t):Sne(n,i,e,t):(TV(n,i,l,e),o=l.width,r=l.height);else xne(n,i,e);return xb(e)&&JE(n,i,e,o,r,a),IV(n,i,e),i}function Lne(n,e,t,i,s,o){i=i||t.width,s=s||t.height,o=o||t.depth;const r=t.target||yc;n.bindTexture(r,e);const a=t.level||0,l=t.internalFormat||t.format||Ii,c=Xm(l),d=t.format||c.format;let u;const h=t.src;if(h&&(cm(h)||Array.isArray(h)&&typeof h[0]=="number")?u=t.type||EV(n,h,c.type):u=t.type||c.type,r===mc)for(let f=0;f<6;++f)n.texImage2D(oL+f,a,l,i,s,0,d,u,null);else r===jd||r===qd?n.texImage3D(r,a,l,i,s,o,0,d,u,null):n.texImage2D(r,a,l,i,s,0,d,u,null)}const Dne=gV,eS=33984,kne=35048,aL=34962,Ene=34963,PM=35345,MV=35718,Ane=35721,Ine=35971,Tne=35382,Nne=35396,Rne=35398,Mne=35392,Pne=35395,lL=5126,PV=35664,OV=35665,FV=35666,OM=5124,BV=35667,WV=35668,VV=35669,zV=35670,HV=35671,$V=35672,UV=35673,jV=35674,qV=35675,GV=35676,One=35678,Fne=35680,Bne=35679,Wne=35682,Vne=35685,zne=35686,Hne=35687,$ne=35688,Une=35689,jne=35690,qne=36289,Gne=36292,Kne=36293,FM=5125,KV=36294,YV=36295,ZV=36296,Yne=36298,Zne=36299,Xne=36300,Qne=36303,Jne=36306,ese=36307,tse=36308,ise=36311,cL=3553,dL=34067,BM=32879,uL=35866,yt={};function XV(n,e){return yt[e].bindPoint}function nse(n,e){return function(t){n.uniform1f(e,t)}}function sse(n,e){return function(t){n.uniform1fv(e,t)}}function ose(n,e){return function(t){n.uniform2fv(e,t)}}function rse(n,e){return function(t){n.uniform3fv(e,t)}}function ase(n,e){return function(t){n.uniform4fv(e,t)}}function QV(n,e){return function(t){n.uniform1i(e,t)}}function JV(n,e){return function(t){n.uniform1iv(e,t)}}function ez(n,e){return function(t){n.uniform2iv(e,t)}}function tz(n,e){return function(t){n.uniform3iv(e,t)}}function iz(n,e){return function(t){n.uniform4iv(e,t)}}function lse(n,e){return function(t){n.uniform1ui(e,t)}}function cse(n,e){return function(t){n.uniform1uiv(e,t)}}function dse(n,e){return function(t){n.uniform2uiv(e,t)}}function use(n,e){return function(t){n.uniform3uiv(e,t)}}function hse(n,e){return function(t){n.uniform4uiv(e,t)}}function fse(n,e){return function(t){n.uniformMatrix2fv(e,!1,t)}}function gse(n,e){return function(t){n.uniformMatrix3fv(e,!1,t)}}function pse(n,e){return function(t){n.uniformMatrix4fv(e,!1,t)}}function mse(n,e){return function(t){n.uniformMatrix2x3fv(e,!1,t)}}function _se(n,e){return function(t){n.uniformMatrix3x2fv(e,!1,t)}}function bse(n,e){return function(t){n.uniformMatrix2x4fv(e,!1,t)}}function vse(n,e){return function(t){n.uniformMatrix4x2fv(e,!1,t)}}function yse(n,e){return function(t){n.uniformMatrix3x4fv(e,!1,t)}}function wse(n,e){return function(t){n.uniformMatrix4x3fv(e,!1,t)}}function io(n,e,t,i){const s=XV(n,e);return Zm(n)?function(o){let r,a;sL(n,o)?(r=o,a=null):(r=o.texture,a=o.sampler),n.uniform1i(i,t),n.activeTexture(eS+t),n.bindTexture(s,r),n.bindSampler(t,a)}:function(o){n.uniform1i(i,t),n.activeTexture(eS+t),n.bindTexture(s,o)}}function no(n,e,t,i,s){const o=XV(n,e),r=new Int32Array(s);for(let a=0;a n>="0"&&n<="9";function sz(n,e,t,i){const s=n.split(Cse).filter(a=>a!=="");let o=0,r="";for(;;){const a=s[o++];r+=a;const l=Sse(a[0]),c=l?parseInt(a):a;if(l&&(r+=s[o++]),o===s.length){t[c]=e;break}else{const u=s[o++],h=u==="[",f=t[c]||(h?[]:{});t[c]=f,t=f,i[r]=i[r]||function(g){return function(p){rz(g,p)}}(f),r+=u}}}function xse(n,e){let t=0;function i(a,l,c){const d=l.name.endsWith("[0]"),u=l.type,h=yt[u];if(!h)throw new Error(`unknown type: 0x${u.toString(16)}`);let f;if(h.bindPoint){const g=t;t+=l.size,d?f=h.arraySetter(n,u,g,c,l.size):f=h.setter(n,u,g,c,l.size)}else h.arraySetter&&d?f=h.arraySetter(n,c):f=h.setter(n,c);return f.location=c,f}const s={},o={},r=n.getProgramParameter(e,MV);for(let a=0;a((n+(e-1))/e|0)*e;function Ese(n,e,t,i){if(e||t){i=i||1;const o=n.length/4;return function(r){let a=0,l=0;for(let c=0;c =iA&&n 1?n.renderbufferStorageMultisample(Ch,u,h,t,i):n.renderbufferStorage(Ch,h,t,i);else{const g=Object.assign({},l);g.width=t,g.height=i,g.auto===void 0&&(g.auto=!1,g.min=g.min||g.minMag||sA,g.mag=g.mag||g.minMag||sA,g.wrapS=g.wrapS||g.wrap||nA,g.wrapT=g.wrapT||g.wrap||nA),d=Lb(n,g)}if(pV(n,d))n.framebufferRenderbuffer(s,f,Ch,d);else if(sL(n,d))l.layer!==void 0?n.framebufferTextureLayer(s,f,d,l.level||0,l.layer):n.framebufferTexture2D(s,f,l.target||Pse,d,l.level||0);else throw new Error("unknown attachment type");a.attachments.push(d)}),n.drawBuffers&&n.drawBuffers(r),a}function Xse(n,e,t,i,s){i=i||n.drawingBufferWidth,s=s||n.drawingBufferHeight,e.width=i,e.height=s,t=t||uz,t.forEach(function(o,r){const a=e.attachments[r],l=o.format,c=o.samples;if(c!==void 0||pV(n,a))n.bindRenderbuffer(Ch,a),c>1?n.renderbufferStorageMultisample(Ch,c,l,i,s):n.renderbufferStorage(Ch,l,i,s);else if(sL(n,a))Lne(n,a,o,i,s);else throw new Error("unknown attachment type")})}function Qse(n,e,t){const i=n.createVertexArray();return n.bindVertexArray(i),e.length||(e=[e]),e.forEach(function(s){gf(n,s,t)}),n.bindVertexArray(null),{numElements:t.numElements,elementType:t.elementType,vertexArrayObject:i}}const Jse=/^(.*?)_/;function eoe(n,e){qE(n,0);const t=n.getExtension(e);if(t){const i={},s=Jse.exec(e)[1],o="_"+s;for(const r in t){const a=t[r],l=typeof a=="function",c=l?s:o;let d=r;r.endsWith(c)&&(d=r.substring(0,r.length-c.length)),n[d]!==void 0?!l&&n[d]!==a&&gV(d,n[d],a,r):l?n[d]=function(u){return function(){return u.apply(t,arguments)}}(a):(n[d]=a,i[d]=a)}i.constructor={name:t.constructor.name},qE(i,0)}return t}const vO=["ANGLE_instanced_arrays","EXT_blend_minmax","EXT_color_buffer_float","EXT_color_buffer_half_float","EXT_disjoint_timer_query","EXT_disjoint_timer_query_webgl2","EXT_frag_depth","EXT_sRGB","EXT_shader_texture_lod","EXT_texture_filter_anisotropic","OES_element_index_uint","OES_standard_derivatives","OES_texture_float","OES_texture_float_linear","OES_texture_half_float","OES_texture_half_float_linear","OES_vertex_array_object","WEBGL_color_buffer_float","WEBGL_compressed_texture_atc","WEBGL_compressed_texture_etc1","WEBGL_compressed_texture_pvrtc","WEBGL_compressed_texture_s3tc","WEBGL_compressed_texture_s3tc_srgb","WEBGL_depth_texture","WEBGL_draw_buffers"];function hz(n){for(let e=0;e >8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):t===8?Oy(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):t===4?Oy(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Zse.exec(n))?new Zn(e[1],e[2],e[3],1):(e=Xse.exec(n))?new Zn(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Qse.exec(n))?Oy(e[1],e[2],e[3],e[4]):(e=Jse.exec(n))?Oy(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=eoe.exec(n))?AO(e[1],e[2]/100,e[3]/100,1):(e=toe.exec(n))?AO(e[1],e[2]/100,e[3]/100,e[4]):SO.hasOwnProperty(n)?DO(SO[n]):n==="transparent"?new Zn(NaN,NaN,NaN,0):null}function DO(n){return new Zn(n>>16&255,n>>8&255,n&255,1)}function Oy(n,e,t,i){return i<=0&&(n=e=t=NaN),new Zn(n,e,t,i)}function jM(n){return n instanceof mu||(n=qd(n)),n?(n=n.rgb(),new Zn(n.r,n.g,n.b,n.opacity)):new Zn}function lS(n,e,t,i){return arguments.length===1?jM(n):new Zn(n,e,t,i??1)}function Zn(n,e,t,i){this.r=+n,this.g=+e,this.b=+t,this.opacity=+i}Km(Zn,lS,v1(mu,{brighter(n){return n=n==null?lm:Math.pow(lm,n),new Zn(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?hf:Math.pow(hf,n),new Zn(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new Zn($h(this.r),$h(this.g),$h(this.b),cS(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:kO,formatHex:kO,formatHex8:soe,formatRgb:EO,toString:EO}));function kO(){return`#${Sh(this.r)}${Sh(this.g)}${Sh(this.b)}`}function soe(){return`#${Sh(this.r)}${Sh(this.g)}${Sh(this.b)}${Sh((isNaN(this.opacity)?1:this.opacity)*255)}`}function EO(){const n=cS(this.opacity);return`${n===1?"rgb(":"rgba("}${$h(this.r)}, ${$h(this.g)}, ${$h(this.b)}${n===1?")":`, ${n})`}`}function cS(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function $h(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function Sh(n){return n=$h(n),(n<16?"0":"")+n.toString(16)}function AO(n,e,t,i){return i<=0?n=e=t=NaN:t<=0||t>=1?n=e=NaN:e<=0&&(n=NaN),new Xr(n,e,t,i)}function gz(n){if(n instanceof Xr)return new Xr(n.h,n.s,n.l,n.opacity);if(n instanceof mu||(n=qd(n)),!n)return new Xr;if(n instanceof Xr)return n;n=n.rgb();var e=n.r/255,t=n.g/255,i=n.b/255,s=Math.min(e,t,i),o=Math.max(e,t,i),r=NaN,a=o-s,l=(o+s)/2;return a?(e===o?r=(t-i)/a+(t0&&l<1?0:r,new Xr(r,a,l,n.opacity)}function lA(n,e,t,i){return arguments.length===1?gz(n):new Xr(n,e,t,i??1)}function Xr(n,e,t,i){this.h=+n,this.s=+e,this.l=+t,this.opacity=+i}Km(Xr,lA,v1(mu,{brighter(n){return n=n==null?lm:Math.pow(lm,n),new Xr(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?hf:Math.pow(hf,n),new Xr(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+(this.h<0)*360,e=isNaN(n)||isNaN(this.s)?0:this.s,t=this.l,i=t+(t<.5?t:1-t)*e,s=2*t-i;return new Zn(Mk(n>=240?n-240:n+120,s,i),Mk(n,s,i),Mk(n<120?n+240:n-120,s,i),this.opacity)},clamp(){return new Xr(IO(this.h),Fy(this.s),Fy(this.l),cS(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const n=cS(this.opacity);return`${n===1?"hsl(":"hsla("}${IO(this.h)}, ${Fy(this.s)*100}%, ${Fy(this.l)*100}%${n===1?")":`, ${n})`}`}}));function IO(n){return n=(n||0)%360,n<0?n+360:n}function Fy(n){return Math.max(0,Math.min(1,n||0))}function Mk(n,e,t){return(n<60?e+(t-e)*n/60:n<180?t:n<240?e+(t-e)*(240-n)/60:e)*255}const pz=Math.PI/180,mz=180/Math.PI,dS=18,_z=.96422,bz=1,vz=.82521,yz=4/29,cp=6/29,wz=3*cp*cp,ooe=cp*cp*cp;function Cz(n){if(n instanceof Ya)return new Ya(n.l,n.a,n.b,n.opacity);if(n instanceof Zl)return Sz(n);n instanceof Zn||(n=jM(n));var e=Bk(n.r),t=Bk(n.g),i=Bk(n.b),s=Pk((.2225045*e+.7168786*t+.0606169*i)/bz),o,r;return e===t&&t===i?o=r=s:(o=Pk((.4360747*e+.3850649*t+.1430804*i)/_z),r=Pk((.0139322*e+.0971045*t+.7141733*i)/vz)),new Ya(116*s-16,500*(o-s),200*(s-r),n.opacity)}function cA(n,e,t,i){return arguments.length===1?Cz(n):new Ya(n,e,t,i??1)}function Ya(n,e,t,i){this.l=+n,this.a=+e,this.b=+t,this.opacity=+i}Km(Ya,cA,v1(mu,{brighter(n){return new Ya(this.l+dS*(n??1),this.a,this.b,this.opacity)},darker(n){return new Ya(this.l-dS*(n??1),this.a,this.b,this.opacity)},rgb(){var n=(this.l+16)/116,e=isNaN(this.a)?n:n+this.a/500,t=isNaN(this.b)?n:n-this.b/200;return e=_z*Ok(e),n=bz*Ok(n),t=vz*Ok(t),new Zn(Fk(3.1338561*e-1.6168667*n-.4906146*t),Fk(-.9787684*e+1.9161415*n+.033454*t),Fk(.0719453*e-.2289914*n+1.4052427*t),this.opacity)}}));function Pk(n){return n>ooe?Math.pow(n,1/3):n/wz+yz}function Ok(n){return n>cp?n*n*n:wz*(n-yz)}function Fk(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function Bk(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function roe(n){if(n instanceof Zl)return new Zl(n.h,n.c,n.l,n.opacity);if(n instanceof Ya||(n=Cz(n)),n.a===0&&n.b===0)return new Zl(NaN,0 =1?(t=1,e-1):Math.floor(t*e),s=n[i],o=n[i+1],r=i>0?n[i-1]:2*s-o,a=i ()=>n;function Ez(n,e){return function(t){return n+t*e}}function loe(n,e,t){return n=Math.pow(n,t),e=Math.pow(e,t)-n,t=1/t,function(i){return Math.pow(n+i*e,t)}}function LL(n,e){var t=e-n;return t?Ez(n,t>180||t<-180?t-360*Math.round(t/360):t):xL(isNaN(n)?e:n)}function coe(n){return(n=+n)==1?Xn:function(e,t){return t-e?loe(e,t,n):xL(isNaN(e)?t:e)}}function Xn(n,e){var t=e-n;return t?Ez(n,t):xL(isNaN(n)?e:n)}const hA=function n(e){var t=coe(e);function i(s,o){var r=t((s=lS(s)).r,(o=lS(o)).r),a=t(s.g,o.g),l=t(s.b,o.b),c=Xn(s.opacity,o.opacity);return function(d){return s.r=r(d),s.g=a(d),s.b=l(d),s.opacity=c(d),s+""}}return i.gamma=n,i}(1);function Az(n){return function(e){var t=e.length,i=new Array(t),s=new Array(t),o=new Array(t),r,a;for(r=0;r t&&(o=e.slice(t,o),a[r]?a[r]+=o:a[++r]=o),(i=i[0])===(s=s[0])?a[r]?a[r]+=s:a[++r]=s:(a[++r]=null,l.push({i:r,x:Kr(i,s)})),t=Wk.lastIndex;return t 180?d+=360:d-c>180&&(c+=360),h.push({i:u.push(s(u)+"rotate(",null,i)-2,x:Kr(c,d)})):d&&u.push(s(u)+"rotate("+d+i)}function a(c,d,u,h){c!==d?h.push({i:u.push(s(u)+"skewX(",null,i)-2,x:Kr(c,d)}):d&&u.push(s(u)+"skewX("+d+i)}function l(c,d,u,h,f,g){if(c!==u||d!==h){var p=f.push(s(f)+"scale(",null,",",null,")");g.push({i:p-4,x:Kr(c,u)},{i:p-2,x:Kr(d,h)})}else(u!==1||h!==1)&&f.push(s(f)+"scale("+u+","+h+")")}return function(c,d){var u=[],h=[];return c=n(c),d=n(d),o(c.translateX,c.translateY,d.translateX,d.translateY,u,h),r(c.rotate,d.rotate,u,h),a(c.skewX,d.skewX,u,h),l(c.scaleX,c.scaleY,d.scaleX,d.scaleY,u,h),c=d=null,function(f){for(var g=-1,p=h.length,_;++g e&&(t=n,n=e,e=t),function(i){return Math.max(n,Math.min(e,i))}}function Ooe(n,e,t){var i=n[0],s=n[1],o=e[0],r=e[1];return s2?Foe:Ooe,l=c=null,u}function u(h){return h==null||isNaN(h=+h)?o:(l||(l=a(n.map(i),e,t)))(i(r(h)))}return u.invert=function(h){return r(s((c||(c=a(e,n.map(i),Kr)))(h)))},u.domain=function(h){return arguments.length?(n=Array.from(h,pA),d()):n.slice()},u.range=function(h){return arguments.length?(e=Array.from(h),d()):e.slice()},u.rangeRound=function(h){return e=Array.from(h),t=y1,d()},u.clamp=function(h){return arguments.length?(r=h?!0:yo,d()):r!==yo},u.interpolate=function(h){return arguments.length?(t=h,d()):t},u.unknown=function(h){return arguments.length?(o=h,u):o},function(h,f){return i=h,s=f,d()}}function Vz(){return DL()(yo,yo)}function zz(n,e,t,i){var s=df(n,e,t),o;switch(i=im(i??",f"),i.type){case"s":{var r=Math.max(Math.abs(n),Math.abs(e));return i.precision==null&&!isNaN(o=_J(s,r))&&(i.precision=o),eV(i,r)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(o=bJ(s,Math.max(Math.abs(n),Math.abs(e))))&&(i.precision=o-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(o=mJ(s))&&(i.precision=o-(i.type==="%")*2);break}}return Ts(i)}function Pf(n){var e=n.domain;return n.ticks=function(t){var i=e();return QC(i[0],i[i.length-1],t??10)},n.tickFormat=function(t,i){var s=e();return zz(s[0],s[s.length-1],t??10,i)},n.nice=function(t){t==null&&(t=10);var i=e(),s=0,o=i.length-1,r=i[s],a=i[o],l,c,d=10;for(a
0;){if(c=UE(r,a,t),c===l)return i[s]=r,i[o]=a,e(i);if(c>0)r=Math.floor(r/c)*c,a=Math.ceil(a/c)*c;else if(c<0)r=Math.ceil(r*c)/c,a=Math.floor(a*c)/c;else break;l=c}return n},n}function Hz(){var n=Vz();return n.copy=function(){return w1(n,Hz())},ul.apply(n,arguments),Pf(n)}function $z(n){var e;function t(i){return i==null||isNaN(i=+i)?e:i}return t.invert=t,t.domain=t.range=function(i){return arguments.length?(n=Array.from(i,pA),t):n.slice()},t.unknown=function(i){return arguments.length?(e=i,t):e},t.copy=function(){return $z(n).unknown(e)},n=arguments.length?Array.from(n,pA):[0,1],Pf(t)}function Uz(n,e){n=n.slice();var t=0,i=n.length-1,s=n[t],o=n[i],r;return o Math.pow(n,e)}function Hoe(n){return n===Math.E?Math.log:n===10&&Math.log10||n===2&&Math.log2||(n=Math.log(n),e=>Math.log(e)/n)}function WO(n){return(e,t)=>-n(-e,t)}function ZM(n){const e=n(FO,BO),t=e.domain;let i=10,s,o;function r(){return s=Hoe(i),o=zoe(i),t()[0]<0?(s=WO(s),o=WO(o),n(Boe,Woe)):n(FO,BO),e}return e.base=function(a){return arguments.length?(i=+a,r()):i},e.domain=function(a){return arguments.length?(t(a),r()):t()},e.ticks=a=>{const l=t();let c=l[0],d=l[l.length-1];const u=d0){for(;h<=f;++h)for(g=1;gd)break;v.push(p)}}else for(;h<=f;++h)for(g=i-1;g>=1;--g)if(p=h>0?g/o(-h):g*o(h),!(p d)break;v.push(p)}v.length*2<_&&(v=QC(c,d,_))}else v=QC(h,f,Math.min(f-h,_)).map(o);return u?v.reverse():v},e.tickFormat=(a,l)=>{if(a==null&&(a=10),l==null&&(l=i===10?"s":","),typeof l!="function"&&(!(i%1)&&(l=im(l)).precision==null&&(l.trim=!0),l=Ts(l)),a===1/0)return l;const c=Math.max(1,i*a/e.ticks().length);return d=>{let u=d/o(Math.round(s(d)));return u*i t(Uz(t(),{floor:a=>o(Math.floor(s(a))),ceil:a=>o(Math.ceil(s(a)))})),e}function XM(){const n=ZM(DL()).domain([1,10]);return n.copy=()=>w1(n,XM()).base(n.base()),ul.apply(n,arguments),n}function VO(n){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/n))}}function zO(n){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*n}}function QM(n){var e=1,t=n(VO(e),zO(e));return t.constant=function(i){return arguments.length?n(VO(e=+i),zO(e)):e},Pf(t)}function jz(){var n=QM(DL());return n.copy=function(){return w1(n,jz()).constant(n.constant())},ul.apply(n,arguments)}function HO(n){return function(e){return e<0?-Math.pow(-e,n):Math.pow(e,n)}}function $oe(n){return n<0?-Math.sqrt(-n):Math.sqrt(n)}function Uoe(n){return n<0?-n*n:n*n}function JM(n){var e=n(yo,yo),t=1;function i(){return t===1?n(yo,yo):t===.5?n($oe,Uoe):n(HO(t),HO(1/t))}return e.exponent=function(s){return arguments.length?(t=+s,i()):t},Pf(e)}function e4(){var n=JM(DL());return n.copy=function(){return w1(n,e4()).exponent(n.exponent())},ul.apply(n,arguments),n}function joe(){return e4.apply(null,arguments).exponent(.5)}function qz(){var n=[],e=[],t=[],i;function s(){var r=0,a=Math.max(1,e.length);for(t=new Array(a-1);++r0?t[a-1]:n[0],a =t?[i[t-1],e]:[i[c-1],i[c]]},r.unknown=function(l){return arguments.length&&(o=l),r},r.thresholds=function(){return i.slice()},r.copy=function(){return Gz().domain([n,e]).range(s).unknown(o)},ul.apply(Pf(r),arguments)}function Kz(){var n=[.5],e=[0,1],t,i=1;function s(o){return o!=null&&o<=o?e[$d(n,o,0,i)]:t}return s.domain=function(o){return arguments.length?(n=Array.from(o),i=Math.min(n.length,e.length-1),s):n.slice()},s.range=function(o){return arguments.length?(e=Array.from(o),i=Math.min(n.length,e.length-1),s):e.slice()},s.invertExtent=function(o){var r=e.indexOf(o);return[n[r-1],n[r]]},s.unknown=function(o){return arguments.length?(t=o,s):t},s.copy=function(){return Kz().domain(n).range(e).unknown(t)},ul.apply(s,arguments)}function qoe(n){return new Date(n)}function Goe(n){return n instanceof Date?+n:+new Date(+n)}function t4(n,e,t,i,s,o,r,a,l,c){var d=Vz(),u=d.invert,h=d.domain,f=c(".%L"),g=c(":%S"),p=c("%I:%M"),_=c("%I %p"),v=c("%a %d"),b=c("%b %d"),y=c("%B"),w=c("%Y");function C(L){return(l(L) 0?i:1:0}const Qoe="identity",cm="linear",Gd="log",C1="pow",S1="sqrt",AL="symlog",eH="time",tH="utc",Za="sequential",Ym="diverging",_A="quantile",iH="quantize",nH="threshold",r4="ordinal",bA="point",sH="band",a4="bin-ordinal",zn="continuous",x1="discrete",L1="discretizing",Ar="interpolating",oH="temporal";function Joe(n){return function(e){let t=e[0],i=e[1],s;return i =i&&t[l]<=s&&(o<0&&(o=l),r=l);if(!(o<0))return i=n.invertExtent(t[o]),s=n.invertExtent(t[r]),[i[0]===void 0?i[1]:i[0],s[1]===void 0?s[0]:s[1]]}}function l4(){const n=UM().unknown(void 0),e=n.domain,t=n.range;let i=[0,1],s,o,r=!1,a=0,l=0,c=.5;delete n.unknown;function d(){const u=e().length,h=i[1]p+s*v);return t(h?_.reverse():_)}return n.domain=function(u){return arguments.length?(e(u),d()):e()},n.range=function(u){return arguments.length?(i=[+u[0],+u[1]],d()):i.slice()},n.rangeRound=function(u){return i=[+u[0],+u[1]],r=!0,d()},n.bandwidth=function(){return o},n.step=function(){return s},n.round=function(u){return arguments.length?(r=!!u,d()):r},n.padding=function(u){return arguments.length?(l=Math.max(0,Math.min(1,u)),a=l,d()):a},n.paddingInner=function(u){return arguments.length?(a=Math.max(0,Math.min(1,u)),d()):a},n.paddingOuter=function(u){return arguments.length?(l=Math.max(0,Math.min(1,u)),d()):l},n.align=function(u){return arguments.length?(c=Math.max(0,Math.min(1,u)),d()):c},n.invertRange=function(u){if(u[0]==null||u[1]==null)return;const h=i[1]i[1-h])))return v=Math.max(0,$d(f,p)-1),b=p===_?v:$d(f,_)-1,p-f[v]>o+1e-10&&++v,h&&(y=v,v=g-b,b=g-y),v>b?void 0:e().slice(v,b+1)},n.invert=function(u){const h=n.invertRange([u,u]);return h&&h[0]},n.copy=function(){return l4().domain(e()).range(i).round(r).paddingInner(a).paddingOuter(l).align(c)},d()}function rH(n){const e=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,n.copy=function(){return rH(e())},n}function tre(){return rH(l4().paddingInner(1))}var ire=Array.prototype.map;function nre(n){return ire.call(n,cb)}const sre=Array.prototype.slice;function aH(){let n=[],e=[];function t(i){return i==null||i!==i?void 0:e[($d(n,i)-1)%e.length]}return t.domain=function(i){return arguments.length?(n=nre(i),t):n.slice()},t.range=function(i){return arguments.length?(e=sre.call(i),t):e.slice()},t.tickFormat=function(i,s){return zz(n[0],sa(n),i??10,s)},t.copy=function(){return aH().domain(t.domain()).range(t.range())},t}const uS=new Map,ore=Symbol("vega_scale");function rre(n){return n[ore]=!0,n}function are(n,e,t){const i=function(){const o=e();return o.invertRange||(o.invertRange=o.invert?Joe(o):o.invertExtent?ere(o):void 0),o.type=n,rre(o)};return i.metadata=ZC(HE(t)),i}function ii(n,e,t){return arguments.length>1?(uS.set(n,are(n,e,t)),this):lre(n)?uS.get(n):void 0}ii(Qoe,$z);ii(cm,Hz,zn);ii(Gd,XM,[zn,Gd]);ii(C1,e4,zn);ii(S1,joe,zn);ii(AL,jz,zn);ii(eH,Koe,[zn,oH]);ii(tH,Yoe,[zn,oH]);ii(Za,i4,[zn,Ar]);ii(`${Za}-${cm}`,i4,[zn,Ar]);ii(`${Za}-${Gd}`,Yz,[zn,Ar,Gd]);ii(`${Za}-${C1}`,n4,[zn,Ar]);ii(`${Za}-${S1}`,Zoe,[zn,Ar]);ii(`${Za}-${AL}`,Zz,[zn,Ar]);ii(`${Ym}-${cm}`,Xz,[zn,Ar]);ii(`${Ym}-${Gd}`,Qz,[zn,Ar,Gd]);ii(`${Ym}-${C1}`,s4,[zn,Ar]);ii(`${Ym}-${S1}`,Xoe,[zn,Ar]);ii(`${Ym}-${AL}`,Jz,[zn,Ar]);ii(_A,qz,[L1,_A]);ii(iH,Gz,L1);ii(nH,Kz,L1);ii(a4,aH,[x1,L1]);ii(r4,UM,x1);ii(sH,l4,x1);ii(bA,tre,x1);function lre(n){return uS.has(n)}function D1(n,e){const t=uS.get(n);return t&&t.metadata[e]}function as(n){return D1(n,zn)}function Kd(n){return D1(n,x1)}function rh(n){return D1(n,L1)}function lH(n){return D1(n,Gd)}function IL(n){return D1(n,Ar)}function cre(n,e){const t=e[0],i=sa(e)-t;return function(s){return n(t+s*i)}}function TL(n,e,t){return YM(cH(e||"rgb",t),n)}function dre(n,e){const t=new Array(e),i=e+1;for(let s=0;s e[0].toUpperCase()+e.slice(1)).join("")}const hre={blues:"cfe1f2bed8eca8cee58fc1de74b2d75ba3cf4592c63181bd206fb2125ca40a4a90",greens:"d3eecdc0e6baabdda594d3917bc77d60ba6c46ab5e329a512089430e7735036429",greys:"e2e2e2d4d4d4c4c4c4b1b1b19d9d9d8888887575756262624d4d4d3535351e1e1e",oranges:"fdd8b3fdc998fdb87bfda55efc9244f87f2cf06b18e4580bd14904b93d029f3303",purples:"e2e1efd4d4e8c4c5e0b4b3d6a3a0cc928ec3827cb97566ae684ea25c3696501f8c",reds:"fdc9b4fcb49afc9e80fc8767fa7051f6573fec3f2fdc2a25c81b1db21218970b13",blueGreen:"d5efedc1e8e0a7ddd18bd2be70c6a958ba9144ad77319c5d2089460e7736036429",bluePurple:"ccddecbad0e4a8c2dd9ab0d4919cc98d85be8b6db28a55a6873c99822287730f71",greenBlue:"d3eecec5e8c3b1e1bb9bd8bb82cec269c2ca51b2cd3c9fc7288abd1675b10b60a1",orangeRed:"fddcaffdcf9bfdc18afdad77fb9562f67d53ee6545e24932d32d1ebf130da70403",purpleBlue:"dbdaebc8cee4b1c3de97b7d87bacd15b9fc93a90c01e7fb70b70ab056199045281",purpleBlueGreen:"dbd8eac8cee4b0c3de93b7d872acd1549fc83892bb1c88a3097f8702736b016353",purpleRed:"dcc9e2d3b3d7ce9eccd186c0da6bb2e14da0e23189d91e6fc61159ab07498f023a",redPurple:"fccfccfcbec0faa9b8f98faff571a5ec539ddb3695c41b8aa908808d0179700174",yellowGreen:"e4f4acd1eca0b9e2949ed68880c97c62bb6e47aa5e3297502083440e723b036034",yellowOrangeBrown:"feeaa1fedd84fecc63feb746fca031f68921eb7215db5e0bc54c05ab3d038f3204",yellowOrangeRed:"fee087fed16ffebd59fea849fd903efc7335f9522bee3423de1b20ca0b22af0225",blueOrange:"134b852f78b35da2cb9dcae1d2e5eff2f0ebfce0bafbbf74e8932fc5690d994a07",brownBlueGreen:"704108a0651ac79548e3c78af3e6c6eef1eac9e9e48ed1c74da79e187a72025147",purpleGreen:"5b1667834792a67fb6c9aed3e6d6e8eff0efd9efd5aedda971bb75368e490e5e29",purpleOrange:"4114696647968f83b7b9b4d6dadbebf3eeeafce0bafbbf74e8932fc5690d994a07",redBlue:"8c0d25bf363adf745ef4ae91fbdbc9f2efeed2e5ef9dcae15da2cb2f78b3134b85",redGrey:"8c0d25bf363adf745ef4ae91fcdccbfaf4f1e2e2e2c0c0c0969696646464343434",yellowGreenBlue:"eff9bddbf1b4bde5b594d5b969c5be45b4c22c9ec02182b82163aa23479c1c3185",redYellowBlue:"a50026d4322cf16e43fcac64fedd90faf8c1dcf1ecabd6e875abd04a74b4313695",redYellowGreen:"a50026d4322cf16e43fcac63fedd8df9f7aed7ee8ea4d86e64bc6122964f006837",pinkYellowGreen:"8e0152c0267edd72adf0b3d6faddedf5f3efe1f2cab6de8780bb474f9125276419",spectral:"9e0142d13c4bf0704afcac63fedd8dfbf8b0e0f3a1a9dda269bda94288b55e4fa2",viridis:"440154470e61481a6c482575472f7d443a834144873d4e8a39568c35608d31688e2d708e2a788e27818e23888e21918d1f988b1fa08822a8842ab07f35b77943bf7154c56866cc5d7ad1518fd744a5db36bcdf27d2e21be9e51afde725",magma:"0000040404130b0924150e3720114b2c11603b0f704a107957157e651a80721f817f24828c29819a2e80a8327db6377ac43c75d1426fde4968e95462f1605df76f5cfa7f5efc8f65fe9f6dfeaf78febf84fece91fddea0fcedaffcfdbf",inferno:"0000040403130c0826170c3b240c4f330a5f420a68500d6c5d126e6b176e781c6d86216b932667a12b62ae305cbb3755c73e4cd24644dd513ae65c30ed6925f3771af8850ffb9506fca50afcb519fac62df6d645f2e661f3f484fcffa4",plasma:"0d088723069033059742039d5002a25d01a66a00a87801a88405a7900da49c179ea72198b12a90ba3488c33d80cb4779d35171da5a69e16462e76e5bed7953f2834cf68f44fa9a3dfca636fdb32ffec029fcce25f9dc24f5ea27f0f921",cividis:"00205100235800265d002961012b65042e670831690d346b11366c16396d1c3c6e213f6e26426e2c456e31476e374a6e3c4d6e42506e47536d4c566d51586e555b6e5a5e6e5e616e62646f66676f6a6a706e6d717270717573727976737c79747f7c75827f758682768985778c8877908b78938e789691789a94789e9778a19b78a59e77a9a177aea575b2a874b6ab73bbaf71c0b26fc5b66dc9b96acebd68d3c065d8c462ddc85fe2cb5ce7cf58ebd355f0d652f3da4ff7de4cfae249fce647",rainbow:"6e40aa883eb1a43db3bf3cafd83fa4ee4395fe4b83ff576eff6659ff7847ff8c38f3a130e2b72fcfcc36bee044aff05b8ff4576ff65b52f6673af27828ea8d1ddfa319d0b81cbecb23abd82f96e03d82e14c6edb5a5dd0664dbf6e40aa",sinebow:"ff4040fc582af47218e78d0bd5a703bfbf00a7d5038de70b72f41858fc2a40ff402afc5818f4720be78d03d5a700bfbf03a7d50b8de71872f42a58fc4040ff582afc7218f48d0be7a703d5bf00bfd503a7e70b8df41872fc2a58ff4040",turbo:"23171b32204a3e2a71453493493eae4b49c54a53d7485ee44569ee4074f53c7ff8378af93295f72e9ff42ba9ef28b3e926bce125c5d925cdcf27d5c629dcbc2de3b232e9a738ee9d3ff39347f68950f9805afc7765fd6e70fe667cfd5e88fc5795fb51a1f84badf545b9f140c5ec3cd0e637dae034e4d931ecd12ef4c92bfac029ffb626ffad24ffa223ff9821ff8d1fff821dff771cfd6c1af76118f05616e84b14df4111d5380fcb2f0dc0260ab61f07ac1805a313029b0f00950c00910b00",browns:"eedbbdecca96e9b97ae4a865dc9856d18954c7784cc0673fb85536ad44339f3632",tealBlues:"bce4d89dd3d181c3cb65b3c245a2b9368fae347da0306a932c5985",teals:"bbdfdfa2d4d58ac9c975bcbb61b0af4da5a43799982b8b8c1e7f7f127273006667",warmGreys:"dcd4d0cec5c1c0b8b4b3aaa7a59c9998908c8b827f7e7673726866665c5a59504e",goldGreen:"f4d166d5ca60b6c35c98bb597cb25760a6564b9c533f8f4f33834a257740146c36",goldOrange:"f4d166f8be5cf8aa4cf5983bf3852aef701be2621fd65322c54923b142239e3a26",goldRed:"f4d166f6be59f9aa51fc964ef6834bee734ae56249db5247cf4244c43141b71d3e",lightGreyRed:"efe9e6e1dad7d5cbc8c8bdb9bbaea9cd967ddc7b43e15f19df4011dc000b",lightGreyTeal:"e4eaead6dcddc8ced2b7c2c7a6b4bc64b0bf22a6c32295c11f85be1876bc",lightMulti:"e0f1f2c4e9d0b0de9fd0e181f6e072f6c053f3993ef77440ef4a3c",lightOrange:"f2e7daf7d5baf9c499fab184fa9c73f68967ef7860e8645bde515bd43d5b",lightTealBlue:"e3e9e0c0dccf9aceca7abfc859afc0389fb9328dad2f7ca0276b95255988",darkBlue:"3232322d46681a5c930074af008cbf05a7ce25c0dd38daed50f3faffffff",darkGold:"3c3c3c584b37725e348c7631ae8b2bcfa424ecc31ef9de30fff184ffffff",darkGreen:"3a3a3a215748006f4d048942489e4276b340a6c63dd2d836ffeb2cffffaa",darkMulti:"3737371f5287197d8c29a86995ce3fffe800ffffff",darkRed:"3434347036339e3c38cc4037e75d1eec8620eeab29f0ce32ffeb2c"},fre={category10:"1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf",category20:"1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5",category20b:"393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6",category20c:"3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9",tableau10:"4c78a8f58518e4575672b7b254a24beeca3bb279a2ff9da69d755dbab0ac",tableau20:"4c78a89ecae9f58518ffbf7954a24b88d27ab79a20f2cf5b43989483bcb6e45756ff9d9879706ebab0acd67195fcbfd2b279a2d6a5c99e765fd8b5a5",accent:"7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666",dark2:"1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666",paired:"a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928",pastel1:"fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2",pastel2:"b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc",set1:"e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999",set2:"66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3",set3:"8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"};function dH(n){const e=n.length/6|0,t=new Array(e);for(let i=0;i TL(dH(n)));function c4(n,e){return n=n&&n.toLowerCase(),arguments.length>1?($O[n]=e,this):$O[n]}function di(n,e=n){if(/^[A-Za-z0-9_]+$/.test(n)){const t=new Function("datum",`return datum[${JSON.stringify(n)}]`);return uu(t,[n],e)}else return tL(n)}const gre="RawCode",pre="Literal",mre="Property",_re="Identifier",bre="ArrayExpression",vre="BinaryExpression",yre="CallExpression",wre="ConditionalExpression",Cre="LogicalExpression",Sre="MemberExpression",xre="ObjectExpression",Lre="UnaryExpression";function ha(n){this.type=n}ha.prototype.visit=function(n){let e,t,i;if(n(this))return 1;for(e=Dre(this),t=0,i=e.length;t";hl[ff]="Identifier";hl[vu]="Keyword";hl[RL]="Null";hl[Of]="Numeric";hl[po]="Punctuator";hl[E1]="String";hl[kre]="RegularExpression";var Ere="ArrayExpression",Are="BinaryExpression",Ire="CallExpression",Tre="ConditionalExpression",hH="Identifier",Nre="Literal",Rre="LogicalExpression",Mre="MemberExpression",Pre="ObjectExpression",Ore="Property",Fre="UnaryExpression",Qn="Unexpected token %0",Bre="Unexpected number",Wre="Unexpected string",Vre="Unexpected identifier",zre="Unexpected reserved word",Hre="Unexpected end of input",vA="Invalid regular expression",Vk="Invalid regular expression: missing /",fH="Octal literals are not allowed in strict mode.",$re="Duplicate data property in object literal not allowed in strict mode",ls="ILLEGAL",kb="Disabled.",Ure=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),jre=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58\\u0C59\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");function ML(n,e){if(!n)throw new Error("ASSERT: "+e)}function Tl(n){return n>=48&&n<=57}function d4(n){return"0123456789abcdefABCDEF".indexOf(n)>=0}function k_(n){return"01234567".indexOf(n)>=0}function qre(n){return n===32||n===9||n===11||n===12||n===160||n>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(n)>=0}function Eb(n){return n===10||n===13||n===8232||n===8233}function A1(n){return n===36||n===95||n>=65&&n<=90||n>=97&&n<=122||n===92||n>=128&&Ure.test(String.fromCharCode(n))}function hS(n){return n===36||n===95||n>=65&&n<=90||n>=97&&n<=122||n>=48&&n<=57||n===92||n>=128&&jre.test(String.fromCharCode(n))}const Gre={if:1,in:1,do:1,var:1,for:1,new:1,try:1,let:1,this:1,else:1,case:1,void:1,with:1,enum:1,while:1,break:1,catch:1,throw:1,const:1,yield:1,class:1,super:1,return:1,typeof:1,delete:1,switch:1,export:1,import:1,public:1,static:1,default:1,finally:1,extends:1,package:1,private:1,function:1,continue:1,debugger:1,interface:1,protected:1,instanceof:1,implements:1};function gH(){for(;ne 1114111||n!=="}")&&Kt({},Qn,ls),e<=65535?String.fromCharCode(e):(t=(e-65536>>10)+55296,i=(e-65536&1023)+56320,String.fromCharCode(t,i))}function pH(){var n,e;for(n=Be.charCodeAt(ne++),e=String.fromCharCode(n),n===92&&(Be.charCodeAt(ne)!==117&&Kt({},Qn,ls),++ne,n=yA("u"),(!n||n==="\\"||!A1(n.charCodeAt(0)))&&Kt({},Qn,ls),e=n);ne >>=")return ne+=4,{type:po,value:r,start:n,end:ne};if(o=r.substr(0,3),o===">>>"||o==="<<="||o===">>=")return ne+=3,{type:po,value:o,start:n,end:ne};if(s=o.substr(0,2),i===s[1]&&"+-<>&|".indexOf(i)>=0||s==="=>")return ne+=2,{type:po,value:s,start:n,end:ne};if(s==="//"&&Kt({},Qn,ls),"<>=!+-*%&|^/".indexOf(i)>=0)return++ne,{type:po,value:i,start:n,end:ne};Kt({},Qn,ls)}function Xre(n){let e="";for(;ne =0&&ne =0&&(t=t.replace(/\\u\{([0-9a-fA-F]+)\}/g,(i,s)=>{if(parseInt(s,16)<=1114111)return"x";Kt({},vA)}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"));try{new RegExp(t)}catch{Kt({},vA)}try{return new RegExp(n,e)}catch{return null}}function tae(){var n,e,t,i,s;for(n=Be[ne],ML(n==="/","Regular expression literal must start with a slash"),e=Be[ne++],t=!1,i=!1;ne =0&&Kt({},vA,t),{value:t,literal:e}}function nae(){var n,e,t,i;return ci=null,gH(),n=ne,e=tae(),t=iae(),i=eae(e.value,t.value),{literal:e.literal+t.literal,value:i,regex:{pattern:e.value,flags:t.value},start:n,end:ne}}function sae(n){return n.type===ff||n.type===vu||n.type===NL||n.type===RL}function mH(){if(gH(),ne>=Ns)return{type:k1,start:ne,end:ne};const n=Be.charCodeAt(ne);return A1(n)?Zre():n===40||n===41||n===59?zk():n===39||n===34?Jre():n===46?Tl(Be.charCodeAt(ne+1))?UO():zk():Tl(n)?UO():zk()}function _o(){const n=ci;return ne=n.end,ci=mH(),ne=n.end,n}function _H(){const n=ne;ci=mH(),ne=n}function oae(n){const e=new ha(Ere);return e.elements=n,e}function jO(n,e,t){const i=new ha(n==="||"||n==="&&"?Rre:Are);return i.operator=n,i.left=e,i.right=t,i}function rae(n,e){const t=new ha(Ire);return t.callee=n,t.arguments=e,t}function aae(n,e,t){const i=new ha(Tre);return i.test=n,i.consequent=e,i.alternate=t,i}function u4(n){const e=new ha(hH);return e.name=n,e}function Q0(n){const e=new ha(Nre);return e.value=n.value,e.raw=Be.slice(n.start,n.end),n.regex&&(e.raw==="//"&&(e.raw="/(?:)/"),e.regex=n.regex),e}function qO(n,e,t){const i=new ha(Mre);return i.computed=n==="[",i.object=e,i.property=t,i.computed||(t.member=!0),i}function lae(n){const e=new ha(Pre);return e.properties=n,e}function GO(n,e,t){const i=new ha(Ore);return i.key=e,i.value=t,i.kind=n,i}function cae(n,e){const t=new ha(Fre);return t.operator=n,t.argument=e,t.prefix=!0,t}function Kt(n,e){var t,i=Array.prototype.slice.call(arguments,2),s=e.replace(/%(\d)/g,(o,r)=>(ML(r ":case"<=":case">=":case"instanceof":case"in":e=7;break;case"<<":case">>":case">>>":e=8;break;case"+":case"-":e=9;break;case"*":case"/":case"%":e=11;break}return e}function wae(){var n,e,t,i,s,o,r,a,l,c;if(n=ci,l=tC(),i=ci,s=ZO(i),s===0)return l;for(i.prec=s,_o(),e=[n,ci],r=tC(),o=[l,i,r];(s=ZO(ci))>0;){for(;o.length>2&&s<=o[o.length-2].prec;)r=o.pop(),a=o.pop().value,l=o.pop(),e.pop(),t=jO(a,l,r),o.push(t);i=_o(),i.prec=s,o.push(i),e.push(ci),t=tC(),o.push(t)}for(c=o.length-1,t=o[c],e.pop();c>1;)e.pop(),t=jO(o[c-1].value,o[c-2],t),c-=2;return t}function gf(){var n,e,t;return n=wae(),Oi("?")&&(_o(),e=gf(),Rs(":"),t=gf(),n=aae(n,e,t)),n}function h4(){const n=gf();if(Oi(","))throw new Error(kb);return n}function Cae(n){Be=n,ne=0,Ns=Be.length,ci=null,_H();const e=h4();if(ci.type!==k1)throw new Error("Unexpect token after expression.");return e}var Sae={NaN:"NaN",E:"Math.E",LN2:"Math.LN2",LN10:"Math.LN10",LOG2E:"Math.LOG2E",LOG10E:"Math.LOG10E",PI:"Math.PI",SQRT1_2:"Math.SQRT1_2",SQRT2:"Math.SQRT2",MIN_VALUE:"Number.MIN_VALUE",MAX_VALUE:"Number.MAX_VALUE"};function bH(n){function e(r,a,l,c){let d=n(a[0]);return l&&(d=l+"("+d+")",l.lastIndexOf("new ",0)===0&&(d="("+d+")")),d+"."+r+(c<0?"":c===0?"()":"("+a.slice(1).map(n).join(",")+")")}function t(r,a,l){return c=>e(r,c,a,l)}const i="new Date",s="String",o="RegExp";return{isNaN:"Number.isNaN",isFinite:"Number.isFinite",abs:"Math.abs",acos:"Math.acos",asin:"Math.asin",atan:"Math.atan",atan2:"Math.atan2",ceil:"Math.ceil",cos:"Math.cos",exp:"Math.exp",floor:"Math.floor",hypot:"Math.hypot",log:"Math.log",max:"Math.max",min:"Math.min",pow:"Math.pow",random:"Math.random",round:"Math.round",sin:"Math.sin",sqrt:"Math.sqrt",tan:"Math.tan",clamp:function(r){r.length<3&&Nn("Missing arguments to clamp function."),r.length>3&&Nn("Too many arguments to clamp function.");const a=r.map(n);return"Math.max("+a[1]+", Math.min("+a[2]+","+a[0]+"))"},now:"Date.now",utc:"Date.UTC",datetime:i,date:t("getDate",i,0),day:t("getDay",i,0),year:t("getFullYear",i,0),month:t("getMonth",i,0),hours:t("getHours",i,0),minutes:t("getMinutes",i,0),seconds:t("getSeconds",i,0),milliseconds:t("getMilliseconds",i,0),time:t("getTime",i,0),timezoneoffset:t("getTimezoneOffset",i,0),utcdate:t("getUTCDate",i,0),utcday:t("getUTCDay",i,0),utcyear:t("getUTCFullYear",i,0),utcmonth:t("getUTCMonth",i,0),utchours:t("getUTCHours",i,0),utcminutes:t("getUTCMinutes",i,0),utcseconds:t("getUTCSeconds",i,0),utcmilliseconds:t("getUTCMilliseconds",i,0),length:t("length",null,-1),parseFloat:"parseFloat",parseInt:"parseInt",upper:t("toUpperCase",s,0),lower:t("toLowerCase",s,0),substring:t("substring",s),split:t("split",s),trim:t("trim",s,0),regexp:o,test:t("test",o),if:function(r){r.length<3&&Nn("Missing arguments to if function."),r.length>3&&Nn("Too many arguments to if function.");const a=r.map(n);return"("+a[0]+"?"+a[1]+":"+a[2]+")"}}}function xae(n){const e=n&&n.length-1;return e&&(n[0]==='"'&&n[e]==='"'||n[0]==="'"&&n[e]==="'")?n.slice(1,-1):n}function Lae(n){n=n||{};const e=n.allowed?ZC(n.allowed):{},t=n.forbidden?ZC(n.forbidden):{},i=n.constants||Sae,s=(n.functions||bH)(u),o=n.globalvar,r=n.fieldvar,a=gr(o)?o:g=>`${o}["${g}"]`;let l={},c={},d=0;function u(g){if(Ti(g))return g;const p=h[g.type];return p==null&&Nn("Unsupported type: "+g.type),p(g)}const h={Literal:g=>g.raw,Identifier:g=>{const p=g.name;return d>0?p:Rg(t,p)?Nn("Illegal identifier: "+p):Rg(i,p)?i[p]:Rg(e,p)?p:(l[p]=1,a(p))},MemberExpression:g=>{const p=!g.computed,_=u(g.object);p&&(d+=1);const v=u(g.property);return _===r&&(c[xae(v)]=1),p&&(d-=1),_+(p?"."+v:"["+v+"]")},CallExpression:g=>{g.callee.type!=="Identifier"&&Nn("Illegal callee type: "+g.callee.type);const p=g.callee.name,_=g.arguments,v=Rg(s,p)&&s[p];return v||Nn("Unrecognized function: "+p),gr(v)?v(_):v+"("+_.map(u).join(",")+")"},ArrayExpression:g=>"["+g.elements.map(u).join(",")+"]",BinaryExpression:g=>"("+u(g.left)+" "+g.operator+" "+u(g.right)+")",UnaryExpression:g=>"("+g.operator+u(g.argument)+")",ConditionalExpression:g=>"("+u(g.test)+"?"+u(g.consequent)+":"+u(g.alternate)+")",LogicalExpression:g=>"("+u(g.left)+g.operator+u(g.right)+")",ObjectExpression:g=>"{"+g.properties.map(u).join(",")+"}",Property:g=>{d+=1;const p=u(g.key);return d-=1,p+":"+u(g.value)}};function f(g){const p={code:u(g),globals:Object.keys(l),fields:Object.keys(c)};return l={},c={},p}return f.functions=s,f.constants=i,f}function vH(n,e,t){return t=(t-n)/(e-n),t=Math.max(0,Math.min(1,t)),t*t*(3-2*t)}function dm(n,e=0,t=1){return Math.max(e,Math.min(t,n))}function Dae(n,e,t){return dm((t-n)/(e-n),0,1)}const fl=1,yu=2,f4=4;var Rh,J0;class g4{constructor(e){Oe(this,Rh);zi(this,"stats",{count:0,first:null});zi(this,"paramMediatorProvider",null);this.paramMediatorProvider=e,this.children=[],this.parent=void 0,this.completed=!1}get behavior(){return 0}get label(){return`(${this.constructor.name})`}reset(){this.completed=!1;for(const e of this.children)e.reset();this.stats.count=0,this.stats.first=null}initialize(){}setParent(e){this.parent=e}addChild(e){if(e.parent)throw new Error("Cannot add the child! It already has a parent.");return this.children.push(e),e.setParent(this),Le(this,Rh,J0).call(this),this}adopt(e){e.parent&&e.parent.removeChild(e),this.addChild(e)}adoptChildrenOf(e){for(const t of e.children)this.adopt(t)}insertAsParent(e){var t;if(this.isRoot())throw new Error("Cannot insert a new parent for a root node!");e.parent=this.parent,this.parent.children[this.parent.children.indexOf(this)]=e,Le(t=this.parent,Rh,J0).call(t),this.parent=void 0,e.addChild(this)}removeChild(e){const t=this.children.indexOf(e);if(t>-1)this.children.splice(t,1),e.parent=void 0,Le(this,Rh,J0).call(this);else throw new Error("Trying to remove an unknown child node!")}excise(){var e;if(this.isRoot())throw new Error("Cannot excise root node!");if(this.isTerminal())this.parent.removeChild(this);else if(this.children.length==1){const t=this.children[0];t.setParent(this.parent),this.parent.children[this.parent.children.indexOf(this)]=t,Le(e=this.parent,Rh,J0).call(e),this.setParent(void 0),this.children.length=0}else throw new Error("Cannot excise a node that has multiple children!")}isRoot(){return!this.parent}isBranching(){return this.children.length>1}isTerminal(){return this.children.length==0}visit(e){e(this);for(const t of this.children)t.visit(e);e.afterChildren&&e.afterChildren(this)}subtreeToString(e=0){const t=this.children.map(i=>i.subtreeToString(e+1)).join("");return`${" ".repeat(e*2)}* ${this.label}${("identifier"in this&&this.identifier?": "+this.identifier:"")??""} -${t}`}handle(e){this._propagate(e)}complete(){this.completed=!0;for(const e of this.children)e.complete()}beginBatch(e){for(const t of this.children)t.beginBatch(e)}get paramMediator(){if(this.paramMediatorProvider)return this.paramMediatorProvider.paramMediator;if(!this.parent)throw new Error("Cannot find paramMediator!");return this.parent.paramMediator}repropagate(){if(this.parent)this.parent.repropagate();else throw new Error("Cannot repropagate data, no FlowNode with stored data found!")}_propagate(e){}}Rh=new WeakSet,J0=function(){this._propagate=Function("children","stats",db(this.children.length).map(e=>`const child${e} = children[${e}];`).join(` +`;function ul(n,e){switch(arguments.length){case 0:break;case 1:this.range(n);break;default:this.range(e).domain(n);break}return this}function mu(n,e){switch(arguments.length){case 0:break;case 1:{typeof n=="function"?this.interpolator(n):this.range(n);break}default:{this.domain(n),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const oA=Symbol("implicit");function HM(){var n=new gc,e=[],t=[],i=oA;function s(o){let r=n.get(o);if(r===void 0){if(i!==oA)return i;n.set(o,r=e.push(o)-1)}return t[r%t.length]}return s.domain=function(o){if(!arguments.length)return e.slice();e=[],n=new gc;for(const r of o)n.has(r)||n.set(r,e.push(r)-1);return s},s.range=function(o){return arguments.length?(t=Array.from(o),s):t.slice()},s.unknown=function(o){return arguments.length?(i=o,s):i},s.copy=function(){return HM(e,t).unknown(i)},ul.apply(s,arguments),s}function Qm(n,e,t){n.prototype=e.prototype=t,t.constructor=n}function w1(n,e){var t=Object.create(n.prototype);for(var i in e)t[i]=e[i];return t}function _u(){}var pf=.7,um=1/pf,dp="\\s*([+-]?\\d+)\\s*",kb="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ga="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",roe=/^#([0-9a-f]{3,8})$/,aoe=new RegExp(`^rgb\\(${dp},${dp},${dp}\\)$`),loe=new RegExp(`^rgb\\(${Ga},${Ga},${Ga}\\)$`),coe=new RegExp(`^rgba\\(${dp},${dp},${dp},${kb}\\)$`),doe=new RegExp(`^rgba\\(${Ga},${Ga},${Ga},${kb}\\)$`),uoe=new RegExp(`^hsl\\(${kb},${Ga},${Ga}\\)$`),hoe=new RegExp(`^hsla\\(${kb},${Ga},${Ga},${kb}\\)$`),yO={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Qm(_u,Gd,{copy(n){return Object.assign(new this.constructor,this,n)},displayable(){return this.rgb().displayable()},hex:wO,formatHex:wO,formatHex8:foe,formatHsl:goe,formatRgb:CO,toString:CO});function wO(){return this.rgb().formatHex()}function foe(){return this.rgb().formatHex8()}function goe(){return fz(this).formatHsl()}function CO(){return this.rgb().formatRgb()}function Gd(n){var e,t;return n=(n+"").trim().toLowerCase(),(e=roe.exec(n))?(t=e[1].length,e=parseInt(e[1],16),t===6?SO(e):t===3?new Gn(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):t===8?Iy(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):t===4?Iy(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=aoe.exec(n))?new Gn(e[1],e[2],e[3],1):(e=loe.exec(n))?new Gn(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=coe.exec(n))?Iy(e[1],e[2],e[3],e[4]):(e=doe.exec(n))?Iy(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=uoe.exec(n))?DO(e[1],e[2]/100,e[3]/100,1):(e=hoe.exec(n))?DO(e[1],e[2]/100,e[3]/100,e[4]):yO.hasOwnProperty(n)?SO(yO[n]):n==="transparent"?new Gn(NaN,NaN,NaN,0):null}function SO(n){return new Gn(n>>16&255,n>>8&255,n&255,1)}function Iy(n,e,t,i){return i<=0&&(n=e=t=NaN),new Gn(n,e,t,i)}function $M(n){return n instanceof _u||(n=Gd(n)),n?(n=n.rgb(),new Gn(n.r,n.g,n.b,n.opacity)):new Gn}function tS(n,e,t,i){return arguments.length===1?$M(n):new Gn(n,e,t,i??1)}function Gn(n,e,t,i){this.r=+n,this.g=+e,this.b=+t,this.opacity=+i}Qm(Gn,tS,w1(_u,{brighter(n){return n=n==null?um:Math.pow(um,n),new Gn(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?pf:Math.pow(pf,n),new Gn(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new Gn(qh(this.r),qh(this.g),qh(this.b),iS(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:xO,formatHex:xO,formatHex8:poe,formatRgb:LO,toString:LO}));function xO(){return`#${Sh(this.r)}${Sh(this.g)}${Sh(this.b)}`}function poe(){return`#${Sh(this.r)}${Sh(this.g)}${Sh(this.b)}${Sh((isNaN(this.opacity)?1:this.opacity)*255)}`}function LO(){const n=iS(this.opacity);return`${n===1?"rgb(":"rgba("}${qh(this.r)}, ${qh(this.g)}, ${qh(this.b)}${n===1?")":`, ${n})`}`}function iS(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function qh(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function Sh(n){return n=qh(n),(n<16?"0":"")+n.toString(16)}function DO(n,e,t,i){return i<=0?n=e=t=NaN:t<=0||t>=1?n=e=NaN:e<=0&&(n=NaN),new Zr(n,e,t,i)}function fz(n){if(n instanceof Zr)return new Zr(n.h,n.s,n.l,n.opacity);if(n instanceof _u||(n=Gd(n)),!n)return new Zr;if(n instanceof Zr)return n;n=n.rgb();var e=n.r/255,t=n.g/255,i=n.b/255,s=Math.min(e,t,i),o=Math.max(e,t,i),r=NaN,a=o-s,l=(o+s)/2;return a?(e===o?r=(t-i)/a+(t0&&l<1?0:r,new Zr(r,a,l,n.opacity)}function rA(n,e,t,i){return arguments.length===1?fz(n):new Zr(n,e,t,i??1)}function Zr(n,e,t,i){this.h=+n,this.s=+e,this.l=+t,this.opacity=+i}Qm(Zr,rA,w1(_u,{brighter(n){return n=n==null?um:Math.pow(um,n),new Zr(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?pf:Math.pow(pf,n),new Zr(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+(this.h<0)*360,e=isNaN(n)||isNaN(this.s)?0:this.s,t=this.l,i=t+(t<.5?t:1-t)*e,s=2*t-i;return new Gn(Ak(n>=240?n-240:n+120,s,i),Ak(n,s,i),Ak(n<120?n+240:n-120,s,i),this.opacity)},clamp(){return new Zr(kO(this.h),Ty(this.s),Ty(this.l),iS(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const n=iS(this.opacity);return`${n===1?"hsl(":"hsla("}${kO(this.h)}, ${Ty(this.s)*100}%, ${Ty(this.l)*100}%${n===1?")":`, ${n})`}`}}));function kO(n){return n=(n||0)%360,n<0?n+360:n}function Ty(n){return Math.max(0,Math.min(1,n||0))}function Ak(n,e,t){return(n<60?e+(t-e)*n/60:n<180?t:n<240?e+(t-e)*(240-n)/60:e)*255}const gz=Math.PI/180,pz=180/Math.PI,nS=18,mz=.96422,_z=1,bz=.82521,vz=4/29,up=6/29,yz=3*up*up,moe=up*up*up;function wz(n){if(n instanceof Ka)return new Ka(n.l,n.a,n.b,n.opacity);if(n instanceof Xl)return Cz(n);n instanceof Gn||(n=$M(n));var e=Rk(n.r),t=Rk(n.g),i=Rk(n.b),s=Ik((.2225045*e+.7168786*t+.0606169*i)/_z),o,r;return e===t&&t===i?o=r=s:(o=Ik((.4360747*e+.3850649*t+.1430804*i)/mz),r=Ik((.0139322*e+.0971045*t+.7141733*i)/bz)),new Ka(116*s-16,500*(o-s),200*(s-r),n.opacity)}function aA(n,e,t,i){return arguments.length===1?wz(n):new Ka(n,e,t,i??1)}function Ka(n,e,t,i){this.l=+n,this.a=+e,this.b=+t,this.opacity=+i}Qm(Ka,aA,w1(_u,{brighter(n){return new Ka(this.l+nS*(n??1),this.a,this.b,this.opacity)},darker(n){return new Ka(this.l-nS*(n??1),this.a,this.b,this.opacity)},rgb(){var n=(this.l+16)/116,e=isNaN(this.a)?n:n+this.a/500,t=isNaN(this.b)?n:n-this.b/200;return e=mz*Tk(e),n=_z*Tk(n),t=bz*Tk(t),new Gn(Nk(3.1338561*e-1.6168667*n-.4906146*t),Nk(-.9787684*e+1.9161415*n+.033454*t),Nk(.0719453*e-.2289914*n+1.4052427*t),this.opacity)}}));function Ik(n){return n>moe?Math.pow(n,1/3):n/yz+vz}function Tk(n){return n>up?n*n*n:yz*(n-vz)}function Nk(n){return 255*(n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055)}function Rk(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function _oe(n){if(n instanceof Xl)return new Xl(n.h,n.c,n.l,n.opacity);if(n instanceof Ka||(n=wz(n)),n.a===0&&n.b===0)return new Xl(NaN,0 =1?(t=1,e-1):Math.floor(t*e),s=n[i],o=n[i+1],r=i>0?n[i-1]:2*s-o,a=i ()=>n;function kz(n,e){return function(t){return n+t*e}}function voe(n,e,t){return n=Math.pow(n,t),e=Math.pow(e,t)-n,t=1/t,function(i){return Math.pow(n+i*e,t)}}function bL(n,e){var t=e-n;return t?kz(n,t>180||t<-180?t-360*Math.round(t/360):t):_L(isNaN(n)?e:n)}function yoe(n){return(n=+n)==1?Kn:function(e,t){return t-e?voe(e,t,n):_L(isNaN(e)?t:e)}}function Kn(n,e){var t=e-n;return t?kz(n,t):_L(isNaN(n)?e:n)}const dA=function n(e){var t=yoe(e);function i(s,o){var r=t((s=tS(s)).r,(o=tS(o)).r),a=t(s.g,o.g),l=t(s.b,o.b),c=Kn(s.opacity,o.opacity);return function(d){return s.r=r(d),s.g=a(d),s.b=l(d),s.opacity=c(d),s+""}}return i.gamma=n,i}(1);function Ez(n){return function(e){var t=e.length,i=new Array(t),s=new Array(t),o=new Array(t),r,a;for(r=0;r t&&(o=e.slice(t,o),a[r]?a[r]+=o:a[++r]=o),(i=i[0])===(s=s[0])?a[r]?a[r]+=s:a[++r]=s:(a[++r]=null,l.push({i:r,x:Gr(i,s)})),t=Mk.lastIndex;return t 180?d+=360:d-c>180&&(c+=360),h.push({i:u.push(s(u)+"rotate(",null,i)-2,x:Gr(c,d)})):d&&u.push(s(u)+"rotate("+d+i)}function a(c,d,u,h){c!==d?h.push({i:u.push(s(u)+"skewX(",null,i)-2,x:Gr(c,d)}):d&&u.push(s(u)+"skewX("+d+i)}function l(c,d,u,h,f,g){if(c!==u||d!==h){var p=f.push(s(f)+"scale(",null,",",null,")");g.push({i:p-4,x:Gr(c,u)},{i:p-2,x:Gr(d,h)})}else(u!==1||h!==1)&&f.push(s(f)+"scale("+u+","+h+")")}return function(c,d){var u=[],h=[];return c=n(c),d=n(d),o(c.translateX,c.translateY,d.translateX,d.translateY,u,h),r(c.rotate,d.rotate,u,h),a(c.skewX,d.skewX,u,h),l(c.scaleX,c.scaleY,d.scaleX,d.scaleY,u,h),c=d=null,function(f){for(var g=-1,p=h.length,_;++g e&&(t=n,n=e,e=t),function(i){return Math.max(n,Math.min(e,i))}}function Goe(n,e,t){var i=n[0],s=n[1],o=e[0],r=e[1];return s2?Koe:Goe,l=c=null,u}function u(h){return h==null||isNaN(h=+h)?o:(l||(l=a(n.map(i),e,t)))(i(r(h)))}return u.invert=function(h){return r(s((c||(c=a(e,n.map(i),Gr)))(h)))},u.domain=function(h){return arguments.length?(n=Array.from(h,fA),d()):n.slice()},u.range=function(h){return arguments.length?(e=Array.from(h),d()):e.slice()},u.rangeRound=function(h){return e=Array.from(h),t=C1,d()},u.clamp=function(h){return arguments.length?(r=h?!0:_o,d()):r!==_o},u.interpolate=function(h){return arguments.length?(t=h,d()):t},u.unknown=function(h){return arguments.length?(o=h,u):o},function(h,f){return i=h,s=f,d()}}function Wz(){return vL()(_o,_o)}function Vz(n,e,t,i){var s=ff(n,e,t),o;switch(i=om(i??",f"),i.type){case"s":{var r=Math.max(Math.abs(n),Math.abs(e));return i.precision==null&&!isNaN(o=EJ(s,r))&&(i.precision=o),JW(i,r)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(o=AJ(s,Math.max(Math.abs(n),Math.abs(e))))&&(i.precision=o-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(o=kJ(s))&&(i.precision=o-(i.type==="%")*2);break}}return Is(i)}function Bf(n){var e=n.domain;return n.ticks=function(t){var i=e();return jC(i[0],i[i.length-1],t??10)},n.tickFormat=function(t,i){var s=e();return Vz(s[0],s[s.length-1],t??10,i)},n.nice=function(t){t==null&&(t=10);var i=e(),s=0,o=i.length-1,r=i[s],a=i[o],l,c,d=10;for(a
0;){if(c=HE(r,a,t),c===l)return i[s]=r,i[o]=a,e(i);if(c>0)r=Math.floor(r/c)*c,a=Math.ceil(a/c)*c;else if(c<0)r=Math.ceil(r*c)/c,a=Math.floor(a*c)/c;else break;l=c}return n},n}function zz(){var n=Wz();return n.copy=function(){return S1(n,zz())},ul.apply(n,arguments),Bf(n)}function Hz(n){var e;function t(i){return i==null||isNaN(i=+i)?e:i}return t.invert=t,t.domain=t.range=function(i){return arguments.length?(n=Array.from(i,fA),t):n.slice()},t.unknown=function(i){return arguments.length?(e=i,t):e},t.copy=function(){return Hz(n).unknown(e)},n=arguments.length?Array.from(n,fA):[0,1],Bf(t)}function $z(n,e){n=n.slice();var t=0,i=n.length-1,s=n[t],o=n[i],r;return o Math.pow(n,e)}function Joe(n){return n===Math.E?Math.log:n===10&&Math.log10||n===2&&Math.log2||(n=Math.log(n),e=>Math.log(e)/n)}function OO(n){return(e,t)=>-n(-e,t)}function KM(n){const e=n(MO,PO),t=e.domain;let i=10,s,o;function r(){return s=Joe(i),o=Qoe(i),t()[0]<0?(s=OO(s),o=OO(o),n(Yoe,Zoe)):n(MO,PO),e}return e.base=function(a){return arguments.length?(i=+a,r()):i},e.domain=function(a){return arguments.length?(t(a),r()):t()},e.ticks=a=>{const l=t();let c=l[0],d=l[l.length-1];const u=d0){for(;h<=f;++h)for(g=1;gd)break;v.push(p)}}else for(;h<=f;++h)for(g=i-1;g>=1;--g)if(p=h>0?g/o(-h):g*o(h),!(p d)break;v.push(p)}v.length*2<_&&(v=jC(c,d,_))}else v=jC(h,f,Math.min(f-h,_)).map(o);return u?v.reverse():v},e.tickFormat=(a,l)=>{if(a==null&&(a=10),l==null&&(l=i===10?"s":","),typeof l!="function"&&(!(i%1)&&(l=om(l)).precision==null&&(l.trim=!0),l=Is(l)),a===1/0)return l;const c=Math.max(1,i*a/e.ticks().length);return d=>{let u=d/o(Math.round(s(d)));return u*i t($z(t(),{floor:a=>o(Math.floor(s(a))),ceil:a=>o(Math.ceil(s(a)))})),e}function YM(){const n=KM(vL()).domain([1,10]);return n.copy=()=>S1(n,YM()).base(n.base()),ul.apply(n,arguments),n}function FO(n){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/n))}}function BO(n){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*n}}function ZM(n){var e=1,t=n(FO(e),BO(e));return t.constant=function(i){return arguments.length?n(FO(e=+i),BO(e)):e},Bf(t)}function Uz(){var n=ZM(vL());return n.copy=function(){return S1(n,Uz()).constant(n.constant())},ul.apply(n,arguments)}function WO(n){return function(e){return e<0?-Math.pow(-e,n):Math.pow(e,n)}}function ere(n){return n<0?-Math.sqrt(-n):Math.sqrt(n)}function tre(n){return n<0?-n*n:n*n}function XM(n){var e=n(_o,_o),t=1;function i(){return t===1?n(_o,_o):t===.5?n(ere,tre):n(WO(t),WO(1/t))}return e.exponent=function(s){return arguments.length?(t=+s,i()):t},Bf(e)}function QM(){var n=XM(vL());return n.copy=function(){return S1(n,QM()).exponent(n.exponent())},ul.apply(n,arguments),n}function ire(){return QM.apply(null,arguments).exponent(.5)}function jz(){var n=[],e=[],t=[],i;function s(){var r=0,a=Math.max(1,e.length);for(t=new Array(a-1);++r0?t[a-1]:n[0],a =t?[i[t-1],e]:[i[c-1],i[c]]},r.unknown=function(l){return arguments.length&&(o=l),r},r.thresholds=function(){return i.slice()},r.copy=function(){return qz().domain([n,e]).range(s).unknown(o)},ul.apply(Bf(r),arguments)}function Gz(){var n=[.5],e=[0,1],t,i=1;function s(o){return o!=null&&o<=o?e[Ud(n,o,0,i)]:t}return s.domain=function(o){return arguments.length?(n=Array.from(o),i=Math.min(n.length,e.length-1),s):n.slice()},s.range=function(o){return arguments.length?(e=Array.from(o),i=Math.min(n.length,e.length-1),s):e.slice()},s.invertExtent=function(o){var r=e.indexOf(o);return[n[r-1],n[r]]},s.unknown=function(o){return arguments.length?(t=o,s):t},s.copy=function(){return Gz().domain(n).range(e).unknown(t)},ul.apply(s,arguments)}function nre(n){return new Date(n)}function sre(n){return n instanceof Date?+n:+new Date(+n)}function JM(n,e,t,i,s,o,r,a,l,c){var d=Wz(),u=d.invert,h=d.domain,f=c(".%L"),g=c(":%S"),p=c("%I:%M"),_=c("%I %p"),v=c("%a %d"),b=c("%b %d"),y=c("%B"),w=c("%Y");function S(L){return(l(L) 0?i:1:0}const vre="identity",hm="linear",Kd="log",x1="pow",L1="sqrt",CL="symlog",Jz="time",eH="utc",Ya="sequential",Jm="diverging",pA="quantile",tH="quantize",iH="threshold",s4="ordinal",mA="point",nH="band",o4="bin-ordinal",Bn="continuous",D1="discrete",k1="discretizing",Er="interpolating",sH="temporal";function yre(n){return function(e){let t=e[0],i=e[1],s;return i =i&&t[l]<=s&&(o<0&&(o=l),r=l);if(!(o<0))return i=n.invertExtent(t[o]),s=n.invertExtent(t[r]),[i[0]===void 0?i[1]:i[0],s[1]===void 0?s[0]:s[1]]}}function r4(){const n=HM().unknown(void 0),e=n.domain,t=n.range;let i=[0,1],s,o,r=!1,a=0,l=0,c=.5;delete n.unknown;function d(){const u=e().length,h=i[1]p+s*v);return t(h?_.reverse():_)}return n.domain=function(u){return arguments.length?(e(u),d()):e()},n.range=function(u){return arguments.length?(i=[+u[0],+u[1]],d()):i.slice()},n.rangeRound=function(u){return i=[+u[0],+u[1]],r=!0,d()},n.bandwidth=function(){return o},n.step=function(){return s},n.round=function(u){return arguments.length?(r=!!u,d()):r},n.padding=function(u){return arguments.length?(l=Math.max(0,Math.min(1,u)),a=l,d()):a},n.paddingInner=function(u){return arguments.length?(a=Math.max(0,Math.min(1,u)),d()):a},n.paddingOuter=function(u){return arguments.length?(l=Math.max(0,Math.min(1,u)),d()):l},n.align=function(u){return arguments.length?(c=Math.max(0,Math.min(1,u)),d()):c},n.invertRange=function(u){if(u[0]==null||u[1]==null)return;const h=i[1]i[1-h])))return v=Math.max(0,Ud(f,p)-1),b=p===_?v:Ud(f,_)-1,p-f[v]>o+1e-10&&++v,h&&(y=v,v=g-b,b=g-y),v>b?void 0:e().slice(v,b+1)},n.invert=function(u){const h=n.invertRange([u,u]);return h&&h[0]},n.copy=function(){return r4().domain(e()).range(i).round(r).paddingInner(a).paddingOuter(l).align(c)},d()}function oH(n){const e=n.copy;return n.padding=n.paddingOuter,delete n.paddingInner,n.copy=function(){return oH(e())},n}function Cre(){return oH(r4().paddingInner(1))}var Sre=Array.prototype.map;function xre(n){return Sre.call(n,ub)}const Lre=Array.prototype.slice;function rH(){let n=[],e=[];function t(i){return i==null||i!==i?void 0:e[(Ud(n,i)-1)%e.length]}return t.domain=function(i){return arguments.length?(n=xre(i),t):n.slice()},t.range=function(i){return arguments.length?(e=Lre.call(i),t):e.slice()},t.tickFormat=function(i,s){return Vz(n[0],ia(n),i??10,s)},t.copy=function(){return rH().domain(t.domain()).range(t.range())},t}const sS=new Map,Dre=Symbol("vega_scale");function kre(n){return n[Dre]=!0,n}function Ere(n,e,t){const i=function(){const o=e();return o.invertRange||(o.invertRange=o.invert?yre(o):o.invertExtent?wre(o):void 0),o.type=n,kre(o)};return i.metadata=$C(VE(t)),i}function ti(n,e,t){return arguments.length>1?(sS.set(n,Ere(n,e,t)),this):Are(n)?sS.get(n):void 0}ti(vre,Hz);ti(hm,zz,Bn);ti(Kd,YM,[Bn,Kd]);ti(x1,QM,Bn);ti(L1,ire,Bn);ti(CL,Uz,Bn);ti(Jz,ore,[Bn,sH]);ti(eH,rre,[Bn,sH]);ti(Ya,e4,[Bn,Er]);ti(`${Ya}-${hm}`,e4,[Bn,Er]);ti(`${Ya}-${Kd}`,Kz,[Bn,Er,Kd]);ti(`${Ya}-${x1}`,t4,[Bn,Er]);ti(`${Ya}-${L1}`,are,[Bn,Er]);ti(`${Ya}-${CL}`,Yz,[Bn,Er]);ti(`${Jm}-${hm}`,Zz,[Bn,Er]);ti(`${Jm}-${Kd}`,Xz,[Bn,Er,Kd]);ti(`${Jm}-${x1}`,i4,[Bn,Er]);ti(`${Jm}-${L1}`,lre,[Bn,Er]);ti(`${Jm}-${CL}`,Qz,[Bn,Er]);ti(pA,jz,[k1,pA]);ti(tH,qz,k1);ti(iH,Gz,k1);ti(o4,rH,[D1,k1]);ti(s4,HM,D1);ti(nH,r4,D1);ti(mA,Cre,D1);function Are(n){return sS.has(n)}function E1(n,e){const t=sS.get(n);return t&&t.metadata[e]}function os(n){return E1(n,Bn)}function Yd(n){return E1(n,D1)}function lh(n){return E1(n,k1)}function aH(n){return E1(n,Kd)}function SL(n){return E1(n,Er)}function Ire(n,e){const t=e[0],i=ia(e)-t;return function(s){return n(t+s*i)}}function xL(n,e,t){return GM(lH(e||"rgb",t),n)}function Tre(n,e){const t=new Array(e),i=e+1;for(let s=0;s e[0].toUpperCase()+e.slice(1)).join("")}const Rre={blues:"cfe1f2bed8eca8cee58fc1de74b2d75ba3cf4592c63181bd206fb2125ca40a4a90",greens:"d3eecdc0e6baabdda594d3917bc77d60ba6c46ab5e329a512089430e7735036429",greys:"e2e2e2d4d4d4c4c4c4b1b1b19d9d9d8888887575756262624d4d4d3535351e1e1e",oranges:"fdd8b3fdc998fdb87bfda55efc9244f87f2cf06b18e4580bd14904b93d029f3303",purples:"e2e1efd4d4e8c4c5e0b4b3d6a3a0cc928ec3827cb97566ae684ea25c3696501f8c",reds:"fdc9b4fcb49afc9e80fc8767fa7051f6573fec3f2fdc2a25c81b1db21218970b13",blueGreen:"d5efedc1e8e0a7ddd18bd2be70c6a958ba9144ad77319c5d2089460e7736036429",bluePurple:"ccddecbad0e4a8c2dd9ab0d4919cc98d85be8b6db28a55a6873c99822287730f71",greenBlue:"d3eecec5e8c3b1e1bb9bd8bb82cec269c2ca51b2cd3c9fc7288abd1675b10b60a1",orangeRed:"fddcaffdcf9bfdc18afdad77fb9562f67d53ee6545e24932d32d1ebf130da70403",purpleBlue:"dbdaebc8cee4b1c3de97b7d87bacd15b9fc93a90c01e7fb70b70ab056199045281",purpleBlueGreen:"dbd8eac8cee4b0c3de93b7d872acd1549fc83892bb1c88a3097f8702736b016353",purpleRed:"dcc9e2d3b3d7ce9eccd186c0da6bb2e14da0e23189d91e6fc61159ab07498f023a",redPurple:"fccfccfcbec0faa9b8f98faff571a5ec539ddb3695c41b8aa908808d0179700174",yellowGreen:"e4f4acd1eca0b9e2949ed68880c97c62bb6e47aa5e3297502083440e723b036034",yellowOrangeBrown:"feeaa1fedd84fecc63feb746fca031f68921eb7215db5e0bc54c05ab3d038f3204",yellowOrangeRed:"fee087fed16ffebd59fea849fd903efc7335f9522bee3423de1b20ca0b22af0225",blueOrange:"134b852f78b35da2cb9dcae1d2e5eff2f0ebfce0bafbbf74e8932fc5690d994a07",brownBlueGreen:"704108a0651ac79548e3c78af3e6c6eef1eac9e9e48ed1c74da79e187a72025147",purpleGreen:"5b1667834792a67fb6c9aed3e6d6e8eff0efd9efd5aedda971bb75368e490e5e29",purpleOrange:"4114696647968f83b7b9b4d6dadbebf3eeeafce0bafbbf74e8932fc5690d994a07",redBlue:"8c0d25bf363adf745ef4ae91fbdbc9f2efeed2e5ef9dcae15da2cb2f78b3134b85",redGrey:"8c0d25bf363adf745ef4ae91fcdccbfaf4f1e2e2e2c0c0c0969696646464343434",yellowGreenBlue:"eff9bddbf1b4bde5b594d5b969c5be45b4c22c9ec02182b82163aa23479c1c3185",redYellowBlue:"a50026d4322cf16e43fcac64fedd90faf8c1dcf1ecabd6e875abd04a74b4313695",redYellowGreen:"a50026d4322cf16e43fcac63fedd8df9f7aed7ee8ea4d86e64bc6122964f006837",pinkYellowGreen:"8e0152c0267edd72adf0b3d6faddedf5f3efe1f2cab6de8780bb474f9125276419",spectral:"9e0142d13c4bf0704afcac63fedd8dfbf8b0e0f3a1a9dda269bda94288b55e4fa2",viridis:"440154470e61481a6c482575472f7d443a834144873d4e8a39568c35608d31688e2d708e2a788e27818e23888e21918d1f988b1fa08822a8842ab07f35b77943bf7154c56866cc5d7ad1518fd744a5db36bcdf27d2e21be9e51afde725",magma:"0000040404130b0924150e3720114b2c11603b0f704a107957157e651a80721f817f24828c29819a2e80a8327db6377ac43c75d1426fde4968e95462f1605df76f5cfa7f5efc8f65fe9f6dfeaf78febf84fece91fddea0fcedaffcfdbf",inferno:"0000040403130c0826170c3b240c4f330a5f420a68500d6c5d126e6b176e781c6d86216b932667a12b62ae305cbb3755c73e4cd24644dd513ae65c30ed6925f3771af8850ffb9506fca50afcb519fac62df6d645f2e661f3f484fcffa4",plasma:"0d088723069033059742039d5002a25d01a66a00a87801a88405a7900da49c179ea72198b12a90ba3488c33d80cb4779d35171da5a69e16462e76e5bed7953f2834cf68f44fa9a3dfca636fdb32ffec029fcce25f9dc24f5ea27f0f921",cividis:"00205100235800265d002961012b65042e670831690d346b11366c16396d1c3c6e213f6e26426e2c456e31476e374a6e3c4d6e42506e47536d4c566d51586e555b6e5a5e6e5e616e62646f66676f6a6a706e6d717270717573727976737c79747f7c75827f758682768985778c8877908b78938e789691789a94789e9778a19b78a59e77a9a177aea575b2a874b6ab73bbaf71c0b26fc5b66dc9b96acebd68d3c065d8c462ddc85fe2cb5ce7cf58ebd355f0d652f3da4ff7de4cfae249fce647",rainbow:"6e40aa883eb1a43db3bf3cafd83fa4ee4395fe4b83ff576eff6659ff7847ff8c38f3a130e2b72fcfcc36bee044aff05b8ff4576ff65b52f6673af27828ea8d1ddfa319d0b81cbecb23abd82f96e03d82e14c6edb5a5dd0664dbf6e40aa",sinebow:"ff4040fc582af47218e78d0bd5a703bfbf00a7d5038de70b72f41858fc2a40ff402afc5818f4720be78d03d5a700bfbf03a7d50b8de71872f42a58fc4040ff582afc7218f48d0be7a703d5bf00bfd503a7e70b8df41872fc2a58ff4040",turbo:"23171b32204a3e2a71453493493eae4b49c54a53d7485ee44569ee4074f53c7ff8378af93295f72e9ff42ba9ef28b3e926bce125c5d925cdcf27d5c629dcbc2de3b232e9a738ee9d3ff39347f68950f9805afc7765fd6e70fe667cfd5e88fc5795fb51a1f84badf545b9f140c5ec3cd0e637dae034e4d931ecd12ef4c92bfac029ffb626ffad24ffa223ff9821ff8d1fff821dff771cfd6c1af76118f05616e84b14df4111d5380fcb2f0dc0260ab61f07ac1805a313029b0f00950c00910b00",browns:"eedbbdecca96e9b97ae4a865dc9856d18954c7784cc0673fb85536ad44339f3632",tealBlues:"bce4d89dd3d181c3cb65b3c245a2b9368fae347da0306a932c5985",teals:"bbdfdfa2d4d58ac9c975bcbb61b0af4da5a43799982b8b8c1e7f7f127273006667",warmGreys:"dcd4d0cec5c1c0b8b4b3aaa7a59c9998908c8b827f7e7673726866665c5a59504e",goldGreen:"f4d166d5ca60b6c35c98bb597cb25760a6564b9c533f8f4f33834a257740146c36",goldOrange:"f4d166f8be5cf8aa4cf5983bf3852aef701be2621fd65322c54923b142239e3a26",goldRed:"f4d166f6be59f9aa51fc964ef6834bee734ae56249db5247cf4244c43141b71d3e",lightGreyRed:"efe9e6e1dad7d5cbc8c8bdb9bbaea9cd967ddc7b43e15f19df4011dc000b",lightGreyTeal:"e4eaead6dcddc8ced2b7c2c7a6b4bc64b0bf22a6c32295c11f85be1876bc",lightMulti:"e0f1f2c4e9d0b0de9fd0e181f6e072f6c053f3993ef77440ef4a3c",lightOrange:"f2e7daf7d5baf9c499fab184fa9c73f68967ef7860e8645bde515bd43d5b",lightTealBlue:"e3e9e0c0dccf9aceca7abfc859afc0389fb9328dad2f7ca0276b95255988",darkBlue:"3232322d46681a5c930074af008cbf05a7ce25c0dd38daed50f3faffffff",darkGold:"3c3c3c584b37725e348c7631ae8b2bcfa424ecc31ef9de30fff184ffffff",darkGreen:"3a3a3a215748006f4d048942489e4276b340a6c63dd2d836ffeb2cffffaa",darkMulti:"3737371f5287197d8c29a86995ce3fffe800ffffff",darkRed:"3434347036339e3c38cc4037e75d1eec8620eeab29f0ce32ffeb2c"},Mre={accent:dre,category10:cre,category20:"1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5",category20b:"393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6",category20c:"3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9",dark2:ure,observable10:hre,paired:fre,pastel1:gre,pastel2:pre,set1:mre,set2:_re,set3:bre,tableau10:"4c78a8f58518e4575672b7b254a24beeca3bb279a2ff9da69d755dbab0ac",tableau20:"4c78a89ecae9f58518ffbf7954a24b88d27ab79a20f2cf5b43989483bcb6e45756ff9d9879706ebab0acd67195fcbfd2b279a2d6a5c99e765fd8b5a5"};function cH(n){if(cs(n))return n;const e=n.length/6|0,t=new Array(e);for(let i=0;i xL(cH(n)));function a4(n,e){return n=n&&n.toLowerCase(),arguments.length>1?(VO[n]=e,this):VO[n]}function ci(n,e=n){if(/^[A-Za-z0-9_]+$/.test(n)){const t=function(s){n in s||Pre(s,n)},i=new Function("validator",` + let validated = !validator; + return function accessField(datum) { + if (!validated) { + validator(datum); + validated = true; + } + return datum[${JSON.stringify(n)}]; + }`)(t);return hu(i,[n],e)}else return Kx(n)}function Pre(n,e){throw new Error(`Invalid field "${e}". Available fields or properties: ${Object.keys(n).join(", ")}`)}const Ore="RawCode",Fre="Literal",Bre="Property",Wre="Identifier",Vre="ArrayExpression",zre="BinaryExpression",Hre="CallExpression",$re="ConditionalExpression",Ure="LogicalExpression",jre="MemberExpression",qre="ObjectExpression",Gre="UnaryExpression";function da(n){this.type=n}da.prototype.visit=function(n){let e,t,i;if(n(this))return 1;for(e=Kre(this),t=0,i=e.length;t";fl[mf]="Identifier";fl[yu]="Keyword";fl[DL]="Null";fl[Wf]="Numeric";fl[ho]="Punctuator";fl[I1]="String";fl[Yre]="RegularExpression";var Zre="ArrayExpression",Xre="BinaryExpression",Qre="CallExpression",Jre="ConditionalExpression",uH="Identifier",eae="Literal",tae="LogicalExpression",iae="MemberExpression",nae="ObjectExpression",sae="Property",oae="UnaryExpression",Yn="Unexpected token %0",rae="Unexpected number",aae="Unexpected string",lae="Unexpected identifier",cae="Unexpected reserved word",dae="Unexpected end of input",_A="Invalid regular expression",Pk="Invalid regular expression: missing /",hH="Octal literals are not allowed in strict mode.",uae="Duplicate data property in object literal not allowed in strict mode",rs="ILLEGAL",Ab="Disabled.",hae=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),fae=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58\\u0C59\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");function kL(n,e){if(!n)throw new Error("ASSERT: "+e)}function Nl(n){return n>=48&&n<=57}function l4(n){return"0123456789abcdefABCDEF".includes(n)}function N_(n){return"01234567".includes(n)}function gae(n){return n===32||n===9||n===11||n===12||n===160||n>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(n)}function Ib(n){return n===10||n===13||n===8232||n===8233}function T1(n){return n===36||n===95||n>=65&&n<=90||n>=97&&n<=122||n===92||n>=128&&hae.test(String.fromCharCode(n))}function oS(n){return n===36||n===95||n>=65&&n<=90||n>=97&&n<=122||n>=48&&n<=57||n===92||n>=128&&fae.test(String.fromCharCode(n))}const pae={if:1,in:1,do:1,var:1,for:1,new:1,try:1,let:1,this:1,else:1,case:1,void:1,with:1,enum:1,while:1,break:1,catch:1,throw:1,const:1,yield:1,class:1,super:1,return:1,typeof:1,delete:1,switch:1,export:1,import:1,public:1,static:1,default:1,finally:1,extends:1,package:1,private:1,function:1,continue:1,debugger:1,interface:1,protected:1,instanceof:1,implements:1};function fH(){for(;ne 1114111||n!=="}")&&Gt({},Yn,rs),e<=65535?String.fromCharCode(e):(t=(e-65536>>10)+55296,i=(e-65536&1023)+56320,String.fromCharCode(t,i))}function gH(){var n,e;for(n=Fe.charCodeAt(ne++),e=String.fromCharCode(n),n===92&&(Fe.charCodeAt(ne)!==117&&Gt({},Yn,rs),++ne,n=bA("u"),(!n||n==="\\"||!T1(n.charCodeAt(0)))&&Gt({},Yn,rs),e=n);ne >>=")return ne+=4,{type:ho,value:r,start:n,end:ne};if(o=r.substr(0,3),o===">>>"||o==="<<="||o===">>=")return ne+=3,{type:ho,value:o,start:n,end:ne};if(s=o.substr(0,2),i===s[1]&&"+-<>&|".includes(i)||s==="=>")return ne+=2,{type:ho,value:s,start:n,end:ne};if(s==="//"&&Gt({},Yn,rs),"<>=!+-*%&|^/".includes(i))return++ne,{type:ho,value:i,start:n,end:ne};Gt({},Yn,rs)}function vae(n){let e="";for(;ne {if(parseInt(s,16)<=1114111)return"x";Gt({},_A)}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x"));try{new RegExp(t)}catch{Gt({},_A)}try{return new RegExp(n,e)}catch{return null}}function Sae(){var n,e,t,i,s;for(n=Fe[ne],kL(n==="/","Regular expression literal must start with a slash"),e=Fe[ne++],t=!1,i=!1;ne =0&&Gt({},_A,t),{value:t,literal:e}}function Lae(){var n,e,t,i;return li=null,fH(),n=ne,e=Sae(),t=xae(),i=Cae(e.value,t.value),{literal:e.literal+t.literal,value:i,regex:{pattern:e.value,flags:t.value},start:n,end:ne}}function Dae(n){return n.type===mf||n.type===yu||n.type===LL||n.type===DL}function pH(){if(fH(),ne>=Ts)return{type:A1,start:ne,end:ne};const n=Fe.charCodeAt(ne);return T1(n)?bae():n===40||n===41||n===59?Ok():n===39||n===34?wae():n===46?Nl(Fe.charCodeAt(ne+1))?zO():Ok():Nl(n)?zO():Ok()}function go(){const n=li;return ne=n.end,li=pH(),ne=n.end,n}function mH(){const n=ne;li=pH(),ne=n}function kae(n){const e=new da(Zre);return e.elements=n,e}function HO(n,e,t){const i=new da(n==="||"||n==="&&"?tae:Xre);return i.operator=n,i.left=e,i.right=t,i}function Eae(n,e){const t=new da(Qre);return t.callee=n,t.arguments=e,t}function Aae(n,e,t){const i=new da(Jre);return i.test=n,i.consequent=e,i.alternate=t,i}function c4(n){const e=new da(uH);return e.name=n,e}function n_(n){const e=new da(eae);return e.value=n.value,e.raw=Fe.slice(n.start,n.end),n.regex&&(e.raw==="//"&&(e.raw="/(?:)/"),e.regex=n.regex),e}function $O(n,e,t){const i=new da(iae);return i.computed=n==="[",i.object=e,i.property=t,i.computed||(t.member=!0),i}function Iae(n){const e=new da(nae);return e.properties=n,e}function UO(n,e,t){const i=new da(sae);return i.key=e,i.value=t,i.kind=n,i}function Tae(n,e){const t=new da(oae);return t.operator=n,t.argument=e,t.prefix=!0,t}function Gt(n,e){var t,i=Array.prototype.slice.call(arguments,2),s=e.replace(/%(\d)/g,(o,r)=>(kL(r ":case"<=":case">=":case"instanceof":case"in":e=7;break;case"<<":case">>":case">>>":e=8;break;case"+":case"-":e=9;break;case"*":case"/":case"%":e=11;break}return e}function $ae(){var n,e,t,i,s,o,r,a,l,c;if(n=li,l=Yw(),i=li,s=GO(i),s===0)return l;for(i.prec=s,go(),e=[n,li],r=Yw(),o=[l,i,r];(s=GO(li))>0;){for(;o.length>2&&s<=o[o.length-2].prec;)r=o.pop(),a=o.pop().value,l=o.pop(),e.pop(),t=HO(a,l,r),o.push(t);i=go(),i.prec=s,o.push(i),e.push(li),t=Yw(),o.push(t)}for(c=o.length-1,t=o[c],e.pop();c>1;)e.pop(),t=HO(o[c-1].value,o[c-2],t),c-=2;return t}function _f(){var n,e,t;return n=$ae(),Pi("?")&&(go(),e=_f(),Ns(":"),t=_f(),n=Aae(n,e,t)),n}function d4(){const n=_f();if(Pi(","))throw new Error(Ab);return n}function Uae(n){Fe=n,ne=0,Ts=Fe.length,li=null,mH();const e=d4();if(li.type!==A1)throw new Error("Unexpect token after expression.");return e}var jae={NaN:"NaN",E:"Math.E",LN2:"Math.LN2",LN10:"Math.LN10",LOG2E:"Math.LOG2E",LOG10E:"Math.LOG10E",PI:"Math.PI",SQRT1_2:"Math.SQRT1_2",SQRT2:"Math.SQRT2",MIN_VALUE:"Number.MIN_VALUE",MAX_VALUE:"Number.MAX_VALUE"};function _H(n){function e(r,a,l,c){let d=n(a[0]);return l&&(d=l+"("+d+")",l.lastIndexOf("new ",0)===0&&(d="("+d+")")),d+"."+r+(c<0?"":c===0?"()":"("+a.slice(1).map(n).join(",")+")")}function t(r,a,l){return c=>e(r,c,a,l)}const i="new Date",s="String",o="RegExp";return{isNaN:"Number.isNaN",isFinite:"Number.isFinite",abs:"Math.abs",acos:"Math.acos",asin:"Math.asin",atan:"Math.atan",atan2:"Math.atan2",ceil:"Math.ceil",cos:"Math.cos",exp:"Math.exp",floor:"Math.floor",hypot:"Math.hypot",log:"Math.log",max:"Math.max",min:"Math.min",pow:"Math.pow",random:"Math.random",round:"Math.round",sin:"Math.sin",sqrt:"Math.sqrt",tan:"Math.tan",clamp:function(r){r.length<3&&In("Missing arguments to clamp function."),r.length>3&&In("Too many arguments to clamp function.");const a=r.map(n);return"Math.max("+a[1]+", Math.min("+a[2]+","+a[0]+"))"},now:"Date.now",utc:"Date.UTC",datetime:i,date:t("getDate",i,0),day:t("getDay",i,0),year:t("getFullYear",i,0),month:t("getMonth",i,0),hours:t("getHours",i,0),minutes:t("getMinutes",i,0),seconds:t("getSeconds",i,0),milliseconds:t("getMilliseconds",i,0),time:t("getTime",i,0),timezoneoffset:t("getTimezoneOffset",i,0),utcdate:t("getUTCDate",i,0),utcday:t("getUTCDay",i,0),utcyear:t("getUTCFullYear",i,0),utcmonth:t("getUTCMonth",i,0),utchours:t("getUTCHours",i,0),utcminutes:t("getUTCMinutes",i,0),utcseconds:t("getUTCSeconds",i,0),utcmilliseconds:t("getUTCMilliseconds",i,0),length:t("length",null,-1),parseFloat:"parseFloat",parseInt:"parseInt",upper:t("toUpperCase",s,0),lower:t("toLowerCase",s,0),substring:t("substring",s),split:t("split",s),trim:t("trim",s,0),regexp:o,test:t("test",o),if:function(r){r.length<3&&In("Missing arguments to if function."),r.length>3&&In("Too many arguments to if function.");const a=r.map(n);return"("+a[0]+"?"+a[1]+":"+a[2]+")"}}}function qae(n){const e=n&&n.length-1;return e&&(n[0]==='"'&&n[e]==='"'||n[0]==="'"&&n[e]==="'")?n.slice(1,-1):n}function Gae(n){n=n||{};const e=n.allowed?$C(n.allowed):{},t=n.forbidden?$C(n.forbidden):{},i=n.constants||jae,s=(n.functions||_H)(u),o=n.globalvar,r=n.fieldvar,a=fr(o)?o:g=>`${o}["${g}"]`;let l={},c={},d=0;function u(g){if(Ti(g))return g;const p=h[g.type];return p==null&&In("Unsupported type: "+g.type),p(g)}const h={Literal:g=>g.raw,Identifier:g=>{const p=g.name;return d>0?p:Pg(t,p)?In("Illegal identifier: "+p):Pg(i,p)?i[p]:Pg(e,p)?p:(l[p]=1,a(p))},MemberExpression:g=>{const p=!g.computed,_=u(g.object);p&&(d+=1);const v=u(g.property);return _===r&&(c[qae(v)]=1),p&&(d-=1),_+(p?"."+v:"["+v+"]")},CallExpression:g=>{g.callee.type!=="Identifier"&&In("Illegal callee type: "+g.callee.type);const p=g.callee.name,_=g.arguments,v=Pg(s,p)&&s[p];return v||In("Unrecognized function: "+p),fr(v)?v(_):v+"("+_.map(u).join(",")+")"},ArrayExpression:g=>"["+g.elements.map(u).join(",")+"]",BinaryExpression:g=>"("+u(g.left)+" "+g.operator+" "+u(g.right)+")",UnaryExpression:g=>"("+g.operator+u(g.argument)+")",ConditionalExpression:g=>"("+u(g.test)+"?"+u(g.consequent)+":"+u(g.alternate)+")",LogicalExpression:g=>"("+u(g.left)+g.operator+u(g.right)+")",ObjectExpression:g=>"{"+g.properties.map(u).join(",")+"}",Property:g=>{d+=1;const p=u(g.key);return d-=1,p+":"+u(g.value)}};function f(g){const p={code:u(g),globals:Object.keys(l),fields:Object.keys(c)};return l={},c={},p}return f.functions=s,f.constants=i,f}function bH(n,e,t){return t=(t-n)/(e-n),t=Math.max(0,Math.min(1,t)),t*t*(3-2*t)}function fm(n,e=0,t=1){return Math.max(e,Math.min(t,n))}function Kae(n,e,t){return fm((t-n)/(e-n),0,1)}const gl=1,wu=2,u4=4;var Rh,s_;class h4{constructor(e){Pe(this,Rh);Ei(this,"stats",{count:0,first:null});Ei(this,"paramMediatorProvider",null);this.paramMediatorProvider=e,this.children=[],this.parent=void 0,this.completed=!1}get behavior(){return 0}get label(){return`(${this.constructor.name})`}reset(){this.completed=!1;for(const e of this.children)e.reset();this.stats.count=0,this.stats.first=null}initialize(){}setParent(e){this.parent=e}addChild(e){if(e.parent)throw new Error("Cannot add the child! It already has a parent.");return this.children.push(e),e.setParent(this),xe(this,Rh,s_).call(this),this}adopt(e){e.parent&&e.parent.removeChild(e),this.addChild(e)}adoptChildrenOf(e){for(const t of e.children)this.adopt(t)}insertAsParent(e){var t;if(this.isRoot())throw new Error("Cannot insert a new parent for a root node!");e.parent=this.parent,this.parent.children[this.parent.children.indexOf(this)]=e,xe(t=this.parent,Rh,s_).call(t),this.parent=void 0,e.addChild(this)}removeChild(e){const t=this.children.indexOf(e);if(t>-1)this.children.splice(t,1),e.parent=void 0,xe(this,Rh,s_).call(this);else throw new Error("Trying to remove an unknown child node!")}excise(){var e;if(this.isRoot())throw new Error("Cannot excise root node!");if(this.isTerminal())this.parent.removeChild(this);else if(this.children.length==1){const t=this.children[0];t.setParent(this.parent),this.parent.children[this.parent.children.indexOf(this)]=t,xe(e=this.parent,Rh,s_).call(e),this.setParent(void 0),this.children.length=0}else throw new Error("Cannot excise a node that has multiple children!")}isRoot(){return!this.parent}isBranching(){return this.children.length>1}isTerminal(){return this.children.length==0}visit(e){e(this);for(const t of this.children)t.visit(e);e.afterChildren&&e.afterChildren(this)}subtreeToString(e=0){const t=this.children.map(i=>i.subtreeToString(e+1)).join("");return`${" ".repeat(e*2)}* ${this.label}${"identifier"in this&&this.identifier?": "+this.identifier:""} +${t}`}handle(e){this._propagate(e)}complete(){this.completed=!0;for(const e of this.children)e.complete()}beginBatch(e){for(const t of this.children)t.beginBatch(e)}get paramMediator(){if(this.paramMediatorProvider)return this.paramMediatorProvider.paramMediator;if(!this.parent)throw new Error("Cannot find paramMediator!");return this.parent.paramMediator}repropagate(){if(this.parent)this.parent.repropagate();else throw new Error("Cannot repropagate data, no FlowNode with stored data found!")}_propagate(e){}}Rh=new WeakSet,s_=function(){this._propagate=Function("children","stats",hb(this.children.length).map(e=>`const child${e} = children[${e}];`).join(` `)+`return function propagate(datum) { if (stats.count === 0) { stats.first = structuredClone(datum); } stats.count++; - ${db(this.children.length).map(e=>`child${e}.handle(datum);`).join(` + ${hb(this.children.length).map(e=>`child${e}.handle(datum);`).join(` `)} - };`)(this.children,this.stats)};function yH(n){return n.type=="file"}function kae(n){return n.type=="facet"}var jv;class Hn extends g4{constructor(t,i){super(i);Oe(this,jv);ut(this,jv,t.type)}get label(){return X(this,jv)}}jv=new WeakMap;const pr="_uniqueId",XO=1e4,QO=[null];class wA extends Hn{get behavior(){return yu}constructor(e){super(e),this.params=e,this.as=e.as??pr,this._blocks=[],this._usedBlocks=0,this._id=-1}initialize(){}reset(){super.reset(),this._usedBlocks=0,this._id=-1}handle(e){e[this.as]=this._nextId(),this._propagate(e)}_nextId(){return++this._id%XO==0&&(this._id=this._getBlock()*XO),this._id}_getBlock(){return this._usedBlocks [e[pr],e]))}}function Eae(n,{add:e,remove:t,toggle:i}){const s=n.data;for(const o of e??[])s.set(o[pr],o);for(const o of t??[])s.delete(o[pr]);for(const o of i??[]){const r=o[pr];s.has(r)?s.delete(r):s.set(r,o)}return{type:"multi",data:s}}function Aae(n,e,t=!0){if(!n||!e)return!1;if(xH(n))return n.uniqueId==null?t:n.uniqueId===e[pr];if(p4(n))return n.data.size==0?t:n.data.has(e[pr]);throw new Error("Not a selection: "+JSON.stringify(n))}function SH(n){return`selectionTest(${fS(n.param)}, datum, ${!!(n.empty??!0)})`}function xH(n){return n.type==="single"}function p4(n){return n.type==="multi"}function LH(n){const e=typeof n=="string"?{type:n}:n;return m4(e)&&(e.on??(e.on="click"),e.on==="click"&&(e.toggle=!0)),e}function m4(n){return n&&n.type=="point"}const DH={clamp:dm,isArray:Ps,isBoolean:g1,isDefined(n){return n!==void 0},isNumber:to,isObject:Os,isRegExp:kQ,isString:Ti,isValid(n){return n!=null&&n===n},lerp:$W,linearstep:Dae,smoothstep:vH,selectionTest:Aae};function Iae(n){const e=bH(n);for(const t in DH)e[t]=`this.${t}`;return e}const Tae=Lae({forbidden:[],allowed:["datum","undefined"],globalvar:"globalObject",fieldvar:"datum",functions:Iae});function Nae(n,e={}){try{const t=Cae(n),i=Tae(t),s=Function("datum","globalObject",`"use strict"; + };`)(this.children,this.stats)};function vH(n){return n.type=="file"}function Yae(n){return n.type=="facet"}var Kv;class Wn extends h4{constructor(t,i){super(i);Pe(this,Kv);dt(this,Kv,t.type)}get label(){return X(this,Kv)}}Kv=new WeakMap;const gr="_uniqueId",KO=1e4,YO=[null];class vA extends Wn{get behavior(){return wu}constructor(e){super(e),this.params=e,this.as=e.as??gr,this._blocks=[],this._usedBlocks=0,this._id=-1}initialize(){}reset(){super.reset(),this._usedBlocks=0,this._id=-1}handle(e){e[this.as]=this._nextId(),this._propagate(e)}_nextId(){return++this._id%KO==0&&(this._id=this._getBlock()*KO),this._id}_getBlock(){return this._usedBlocks [e[gr],e]))}}function Zae(n,{add:e,remove:t,toggle:i}){const s=n.data;for(const o of e??[])s.set(o[gr],o);for(const o of t??[])s.delete(o[gr]);for(const o of i??[]){const r=o[gr];s.has(r)?s.delete(r):s.set(r,o)}return{type:"multi",data:s}}function Xae(n,e,t=!0){if(!n||!e)return!1;if(SH(n))return n.uniqueId==null?t:n.uniqueId===e[gr];if(f4(n))return n.data.size==0?t:n.data.has(e[gr]);throw new Error("Not a selection: "+JSON.stringify(n))}function CH(n){return`selectionTest(${rS(n.param)}, datum, ${!!(n.empty??!0)})`}function SH(n){return n.type==="single"}function f4(n){return n.type==="multi"}function xH(n){const e=typeof n=="string"?{type:n}:n;return g4(e)&&(e.on??(e.on="click"),e.on==="click"&&(e.toggle=!0)),e}function g4(n){return n&&n.type=="point"}const LH={clamp:fm,isArray:cs,isBoolean:m1,isDefined(n){return n!==void 0},isNumber:Qs,isObject:Ms,isRegExp:BQ,isString:Ti,isValid(n){return n!=null&&n===n},lerp:HW,linearstep:Kae,smoothstep:bH,selectionTest:Xae};function Qae(n){const e=_H(n);for(const t in LH)e[t]=`this.${t}`;return e}const Jae=Gae({forbidden:[],allowed:["datum","undefined"],globalvar:"globalObject",fieldvar:"datum",functions:Qae});function ele(n,e={}){try{const t=Uae(n),i=Jae(t),s=Function("datum","globalObject",`"use strict"; try { return (${i.code}); } catch (e) { throw new Error("Error evaluating expression: " + ${JSON.stringify(n)} + ", " + e.message, e); - }`).bind(DH),o=r=>s(r,e);return o.fields=i.fields,o.globals=i.globals,o.code=i.code,o}catch(t){throw new Error(`Invalid expression: ${n}, ${t.message}`)}}var nd,Mh,Pp,Op,qv;class Rae{constructor(e){Oe(this,nd);zi(this,"paramListeners");Oe(this,Mh,new Map);Oe(this,Pp,new Map);Oe(this,Op,new Map);Oe(this,qv);ut(this,qv,e??(()=>{})),ut(this,nd,new Map),this.paramListeners=new Map}registerParam(e){const t=e.name;if("value"in e&&"expr"in e)throw new Error(`The parameter "${t}" must not have both value and expr properties!`);let i;if(e.push=="outer"){const s=this.findMediatorForParam(t);if(!s)throw new Error(`Parameter "${t}" not found in outer scope!`);const o=s.paramConfigs.get(t);if("expr"in o||"select"in o)throw new Error(`The outer parameter "${t}" must not have expr or select properties!`);i=s.getSetter(t),X(this,Mh).set(t,i)}else if("value"in e)i=this.allocateSetter(t,e.value);else if("expr"in e){const s=this.createExpression(e.expr),o=this.allocateSetter(t,s(null));s.addListener(()=>o(s(null))),i=r=>{}}else i=this.allocateSetter(t,null);if("select"in e){const s=LH(e.select);m4(s)&&i(s.toggle?CH():wH(null))}return X(this,Op).set(t,e),i}allocateSetter(e,t,i=!1){if(fS(e),X(this,Mh).has(e))throw new Error("Setter already allocated for parameter: "+e);const s=o=>{const r=X(this,nd).get(e);if(o!==r){X(this,nd).set(e,o);const a=this.paramListeners.get(e);if(a&&!i)for(const l of a)l()}};return s(t),X(this,Mh).set(e,s),s}getSetter(e){const t=X(this,Mh).get(e);if(!t)throw new Error("Setter not found for parameter: "+e);return t}getValue(e){return X(this,nd).get(e)}findValue(e){const t=this.findMediatorForParam(e);return t==null?void 0:t.getValue(e)}get paramConfigs(){return X(this,Op)}findMediatorForParam(e){var t;return X(this,nd).has(e)?this:(t=X(this,qv).call(this))==null?void 0:t.findMediatorForParam(e)}createExpression(e){if(X(this,Pp).has(e))return X(this,Pp).get(e);const t={},i=Nae(e,t),s=new Map;for(const r of i.globals){const a=this.findMediatorForParam(r);if(!a)throw new Error(`Unknown variable "${r}" in expression: ${e}`);s.set(r,a),Object.defineProperty(t,r,{enumerable:!0,get(){return a.getValue(r)}})}const o=new Set;return i.addListener=r=>{for(const[a,l]of s){const c=l.paramListeners.get(a)??new Set;l.paramListeners.set(a,c),c.add(r),o.add(r)}},i.invalidate=()=>{var r;for(const[a,l]of s)for(const c of o)(r=l.paramListeners.get(a))==null||r.delete(c)},i.identifier=()=>i.code,X(this,Pp).set(e,i),i}evaluateAndGet(e){return this.createExpression(e)()}hasPointSelections(){for(const e of X(this,Op).values())if(Pae(e)){const t=e.select;if(Ti(t)){if(t=="point")return!0}else if(t.type=="point")return!0}return!1}}nd=new WeakMap,Mh=new WeakMap,Pp=new WeakMap,Op=new WeakMap,qv=new WeakMap;function Gs(n){return typeof n=="object"&&n!=null&&"expr"in n&&Ti(n.expr)}function Fo(n){if(Gs(n))throw new Error(`ExprRef ${JSON.stringify(n)} not allowed here. Expected a scalar value.`);return n}function Mae(n){return("expr"in n||"bind"in n)&&!("select"in n)}function Pae(n){return!("expr"in n||"bind"in n)&&"select"in n}function OL(n,e,t){const i={...e},s=[],o=r=>{s.push(r),s.length===1&&queueMicrotask(()=>{t(s.slice()),s.length=0})};for(const[r,a]of Object.entries(e))if(Gs(a)){const l=n.createExpression(a.expr);t&&l.addListener(()=>o(r)),Object.defineProperty(i,r,{enumerable:!0,get(){return l()}})}else i[r]=a;return i}function fS(n){if(!/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(n))throw new Error(`Invalid parameter name: ${n}. Must be a valid JavaScript identifier.`);return n}function Oae(n){return Object.assign(()=>n,{addListener:()=>{},invalidate:()=>{},identifier:()=>"constant",fields:[],globals:[],code:JSON.stringify(n)})}function JO(n,e,t){if(!n)return;function i(o){const r=o;return r.fields??(r.fields=[]),r.constant=r.fields.length===0,r.channelDef=e,r.channel=n,r.scaleChannel=((zo(e)&&e.resolutionChannel)??(Ib(n)&&n))||void 0,"param"in e?(r.predicate=t.createExpression(SH(e)),r.predicate.param=e.param,r.predicate.empty=e.empty??!0):(r.predicate=Oae(!0),r.predicate.empty=!1),r.asNumberAccessor=()=>r,r}function s(o){if(Gs(o)){const r=i(t.createExpression(o.expr));if(r.fields.length>0)throw new Error("Expression in DatumDef/ValueDef cannot access data fields: "+o.expr);return r}else{const r=o;return i(()=>r)}}if(wu(e))try{return i(di(e.field))}catch(o){throw new Error(`Invalid field definition: ${o.message}`)}else{if(T1(e))return i(t.createExpression(e.expr));if(I1(e))return s(e.datum);if(Sr(e))return s(e.value);throw new Error(`Invalid channel definition: ${JSON.stringify(e)}. Cannot create an accessor for channel ${n}!`)}}function Fae(n,e,t){const i=[];if(zae(e)||Hae(e)){const s=Array.isArray(e.condition)?e.condition:[e.condition];for(const o of s)i.push(JO(n,o,t))}if(i.push(JO(n,e,t)),i.filter(s=>!s.constant).length>1)throw new Error("Only one accessor can be non-constant. Channel: "+n);return i}function Bae(n,e){const t={},i=s=>{var o;return(o=n.getScaleResolution(s))==null?void 0:o.scale};for(const[s,o]of Object.entries(e))o&&(t[s]=Wae(Fae(s,o,n.paramMediator),i));return t}function Wae(n,e){if(n.length===1)return eF(n[0],e);const t=n.map(o=>o.predicate),i=n.map(o=>eF(o,e));return Object.assign(o=>{for(let r=0;r o.accessors[0]),dataAccessor:i.map(o=>o.dataAccessor).find(o=>o),scale:i.map(o=>o.scale).find(o=>o),channelDef:n.at(-1).channelDef})}function eF(n,e){const{channel:t,scaleChannel:i,channelDef:s}=n,o=n.scaleChannel?e(i):void 0;if(i&&!o)throw new Error(`Missing scale! "${t}": ${JSON.stringify(s)}`);return Object.assign(o?r=>o(n(r)):r=>n(r),{scale:o,constant:n.constant,accessors:[n],dataAccessor:n.constant?void 0:n,channelDef:s})}function Sr(n){return n&&"value"in n}function wu(n){return n&&"field"in n}function I1(n){return n&&"datum"in n}function zo(n){return wu(n)||I1(n)||T1(n)||kH(n)}function Vae(n,e){const t=n.mark.encoding[e];if(zo(t))return t;throw new Error("Not a channel def with scale!")}function kH(n){return n&&"chrom"in n}function T1(n){return n&&"expr"in n}function zae(n){return(wu(n)||I1(n))&&"condition"in n}function Hae(n){return Sr(n)&&"condition"in n}const Zm=["x","y"],$ae=["x2","y2"],Uae=[...Zm,...$ae];function EH(n){return Zm.includes(n)}function Ab(n){return Uae.includes(n)}const AH={x:"x2",y:"y2"},IH=Object.fromEntries(Object.entries(AH).map(n=>[n[1],n[0]]));function TH(n){return n in IH}function jae(n){const e=AH[n];if(e)return e;throw new Error(`${n} has no secondary channel!`)}function pf(n){return IH[n]??n}function Yd(n){return["color","fill","stroke"].includes(pf(n))}function FL(n){return["shape"].includes(n)}function Ib(n){return["x","y","x2","y2","color","fill","stroke","opacity","fillOpacity","strokeOpacity","strokeWidth","size","shape","angle","dx","dy"].includes(n)}function qae(n){switch(n){case"shape":return["circle","square","cross","diamond","triangle-up","triangle-right","triangle-down","triangle-left","tick-up","tick-right","tick-down","tick-left"]}}function NH(n){if(!FL(n))throw new Error("Not a discrete channel: "+n);const e=new Map(qae(n).map((t,i)=>[t,i]));return t=>{const i=e.get(t);if(i!==void 0)return i;throw new Error(`Invalid value for "${n}" channel: ${t}`)}}function _4(){const n=e=>e;return n.invert=e=>e,n.copy=_4,n.invertRange=()=>{},n.type="null",n}const BL="attr_",Gae="uDomain_",Kae="range_",Yae="accessor_",RH="scale_",Zae="getScaled_",CA="uRangeTexture_",$k="uParam_",iC="checkSelection_",tF=3402823466e29;function Xae(n){const e=n.match(/^(?:(\w+)-)?(\w+)$/);if(!e)throw new Error("Not a scale type: "+n);return{family:e[1]||"continuous",transform:e[2]}}function N1(n,e){return`${Yae}${n}_${e}`}function Qae(n,e,t){let i;if(FL(n))i=xh(NH(n)(t));else if(Ti(t))if(Yd(n))i=nle(t);else throw new Error(`String values are not supported on the "${n}" channel: ${t}`);else if(g1(t))i=xh(t?1:0);else if(t===null)if(Yd(n))i=xh([0,0,0]);else throw new Error(`null value is not supported on the "${n}" chanel.`);else i=xh(t);const s=N1(n,e),o=` + }`).bind(LH),o=r=>s(r,e);return o.fields=i.fields,o.globals=i.globals,o.code=i.code,o}catch(t){throw new Error(`Invalid expression: ${n}, ${t.message}`)}}var nd,Mh,Fp,Bp,Yv;class tle{constructor(e){Pe(this,nd);Ei(this,"paramListeners");Pe(this,Mh,new Map);Pe(this,Fp,new Map);Pe(this,Bp,new Map);Pe(this,Yv);dt(this,Yv,e??(()=>{})),dt(this,nd,new Map),this.paramListeners=new Map}registerParam(e){const t=e.name;if("value"in e&&"expr"in e)throw new Error(`The parameter "${t}" must not have both value and expr properties!`);let i;if(e.push=="outer"){const s=this.findMediatorForParam(t);if(!s)throw new Error(`Parameter "${t}" not found in outer scope!`);const o=s.paramConfigs.get(t);if("expr"in o||"select"in o)throw new Error(`The outer parameter "${t}" must not have expr or select properties!`);i=s.getSetter(t),X(this,Mh).set(t,i)}else if("value"in e)i=this.allocateSetter(t,e.value);else if("expr"in e){const s=this.createExpression(e.expr),o=this.allocateSetter(t,s(null));s.addListener(()=>o(s(null))),i=r=>{}}else i=this.allocateSetter(t,null);if("select"in e){const s=xH(e.select);g4(s)&&i(s.toggle?wH():yH(null))}return X(this,Bp).set(t,e),i}allocateSetter(e,t,i=!1){if(rS(e),X(this,Mh).has(e))throw new Error("Setter already allocated for parameter: "+e);const s=o=>{const r=X(this,nd).get(e);if(o!==r){X(this,nd).set(e,o);const a=this.paramListeners.get(e);if(a&&!i)for(const l of a)l()}};return s(t),X(this,Mh).set(e,s),s}getSetter(e){const t=X(this,Mh).get(e);if(!t)throw new Error("Setter not found for parameter: "+e);return t}getValue(e){return X(this,nd).get(e)}findValue(e){const t=this.findMediatorForParam(e);return t==null?void 0:t.getValue(e)}get paramConfigs(){return X(this,Bp)}findMediatorForParam(e){var t;return X(this,nd).has(e)?this:(t=X(this,Yv).call(this))==null?void 0:t.findMediatorForParam(e)}createExpression(e){if(X(this,Fp).has(e))return X(this,Fp).get(e);const t={},i=ele(e,t),s=new Map;for(const r of i.globals){const a=this.findMediatorForParam(r);if(!a)throw new Error(`Unknown variable "${r}" in expression: ${e}`);s.set(r,a),Object.defineProperty(t,r,{enumerable:!0,get(){return a.getValue(r)}})}const o=new Set;return i.addListener=r=>{for(const[a,l]of s){const c=l.paramListeners.get(a)??new Set;l.paramListeners.set(a,c),c.add(r),o.add(r)}},i.invalidate=()=>{var r;for(const[a,l]of s)for(const c of o)(r=l.paramListeners.get(a))==null||r.delete(c)},i.identifier=()=>i.code,X(this,Fp).set(e,i),i}evaluateAndGet(e){return this.createExpression(e)()}hasPointSelections(){for(const e of X(this,Bp).values())if(nle(e)){const t=e.select;if(Ti(t)){if(t=="point")return!0}else if(t.type=="point")return!0}return!1}}nd=new WeakMap,Mh=new WeakMap,Fp=new WeakMap,Bp=new WeakMap,Yv=new WeakMap;function js(n){return typeof n=="object"&&n!=null&&"expr"in n&&Ti(n.expr)}function Mo(n){if(js(n))throw new Error(`ExprRef ${JSON.stringify(n)} not allowed here. Expected a scalar value.`);return n}function ile(n){return("expr"in n||"bind"in n)&&!("select"in n)}function nle(n){return!("expr"in n||"bind"in n)&&"select"in n}function AL(n,e,t){const i={...e},s=[],o=r=>{s.push(r),s.length===1&&queueMicrotask(()=>{t(s.slice()),s.length=0})};for(const[r,a]of Object.entries(e))if(js(a)){const l=n.createExpression(a.expr);t&&l.addListener(()=>o(r)),Object.defineProperty(i,r,{enumerable:!0,get(){return l()}})}else i[r]=a;return i}function rS(n){if(!/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(n))throw new Error(`Invalid parameter name: ${n}. Must be a valid JavaScript identifier.`);return n}function sle(n){return Object.assign(()=>n,{addListener:()=>{},invalidate:()=>{},identifier:()=>"constant",fields:[],globals:[],code:JSON.stringify(n)})}function ZO(n,e,t){if(!n)return;function i(o){const r=o;return r.fields??(r.fields=[]),r.constant=r.fields.length===0,r.channelDef=e,r.channel=n,r.scaleChannel=((Vo(e)&&e.resolutionChannel)??(Nb(n)&&n))||void 0,"param"in e?(r.predicate=t.createExpression(CH(e)),r.predicate.param=e.param,r.predicate.empty=e.empty??!0):(r.predicate=sle(!0),r.predicate.empty=!1),r.asNumberAccessor=()=>r,r}function s(o){if(js(o)){const r=i(t.createExpression(o.expr));if(r.fields.length>0)throw new Error("Expression in DatumDef/ValueDef cannot access data fields: "+o.expr);return r}else{const r=o;return i(()=>r)}}if(Cu(e))try{return i(ci(e.field))}catch(o){throw new Error(`Invalid field definition: ${o.message}`)}else{if(R1(e))return i(t.createExpression(e.expr));if(N1(e))return s(e.datum);if(Cr(e))return s(e.value);throw new Error(`Invalid channel definition: ${JSON.stringify(e)}. Cannot create an accessor for channel ${n}!`)}}function ole(n,e,t){const i=[];if(cle(e)||dle(e)){const s=Array.isArray(e.condition)?e.condition:[e.condition];for(const o of s)i.push(ZO(n,o,t))}if(i.push(ZO(n,e,t)),i.filter(s=>!s.constant).length>1)throw new Error("Only one accessor can be non-constant. Channel: "+n);return i}function rle(n,e){const t={},i=s=>{var o;return(o=n.getScaleResolution(s))==null?void 0:o.scale};for(const[s,o]of Object.entries(e))o&&(t[s]=ale(ole(s,o,n.paramMediator),i));return t}function ale(n,e){if(n.length===1)return XO(n[0],e);const t=n.map(o=>o.predicate),i=n.map(o=>XO(o,e));return Object.assign(o=>{for(let r=0;r o.accessors[0]),dataAccessor:i.map(o=>o.dataAccessor).find(o=>o),scale:i.map(o=>o.scale).find(o=>o),channelDef:n.at(-1).channelDef})}function XO(n,e){const{channel:t,scaleChannel:i,channelDef:s}=n,o=n.scaleChannel?e(i):void 0;if(i&&!o)throw new Error(`Missing scale! "${t}": ${JSON.stringify(s)}`);return Object.assign(o?r=>o(n(r)):r=>n(r),{scale:o,constant:n.constant,accessors:[n],dataAccessor:n.constant?void 0:n,channelDef:s})}function Cr(n){return n&&"value"in n}function Cu(n){return n&&"field"in n}function N1(n){return n&&"datum"in n}function Vo(n){return Cu(n)||N1(n)||R1(n)||DH(n)}function lle(n,e){const t=n.mark.encoding[e];if(Vo(t))return t;throw new Error("Not a channel def with scale!")}function DH(n){return n&&"chrom"in n}function R1(n){return n&&"expr"in n}function cle(n){return(Cu(n)||N1(n))&&"condition"in n}function dle(n){return Cr(n)&&"condition"in n}const e0=["x","y"],ule=["x2","y2"],hle=[...e0,...ule];function kH(n){return e0.includes(n)}function Tb(n){return hle.includes(n)}const EH={x:"x2",y:"y2"},AH=Object.fromEntries(Object.entries(EH).map(n=>[n[1],n[0]]));function IH(n){return n in AH}function fle(n){const e=EH[n];if(e)return e;throw new Error(`${n} has no secondary channel!`)}function bf(n){return AH[n]??n}function Zd(n){return["color","fill","stroke"].includes(bf(n))}function IL(n){return["shape"].includes(n)}function Nb(n){return["x","y","x2","y2","color","fill","stroke","opacity","fillOpacity","strokeOpacity","strokeWidth","size","shape","angle","dx","dy","sample"].includes(n)}function gle(n){switch(n){case"shape":return["circle","square","cross","diamond","triangle-up","triangle-right","triangle-down","triangle-left","tick-up","tick-right","tick-down","tick-left"]}}function TH(n){if(!IL(n))throw new Error("Not a discrete channel: "+n);const e=new Map(gle(n).map((t,i)=>[t,i]));return t=>{const i=e.get(t);if(i!==void 0)return i;throw new Error(`Invalid value for "${n}" channel: ${t}`)}}function p4(){const n=e=>e;return n.invert=e=>e,n.copy=p4,n.invertRange=()=>{},n.type="null",n}const TL="attr_",ple="uDomain_",mle="range_",_le="accessor_",NH="scale_",ble="getScaled_",yA="uRangeTexture_",Bk="uParam_",Zw="checkSelection_",QO=3402823466e29;function vle(n){const e=n.match(/^(?:(\w+)-)?(\w+)$/);if(!e)throw new Error("Not a scale type: "+n);return{family:e[1]||"continuous",transform:e[2]}}function M1(n,e){return`${_le}${n}_${e}`}function yle(n,e,t){let i;if(IL(n))i=xh(TH(n)(t));else if(Ti(t))if(Zd(n))i=Lle(t);else throw new Error(`String values are not supported on the "${n}" channel: ${t}`);else if(m1(t))i=xh(t?1:0);else if(t===null)if(Zd(n))i=xh([0,0,0]);else throw new Error(`null value is not supported on the "${n}" chanel.`);else i=xh(t);const s=M1(n,e),o=` ${i.type} ${s}() { // Constant value return ${i}; -}`;return{channel:n,accessorGlsl:o,accessorFunctionName:s}}function Jae(n,e){let t="float",i=l=>l;Yd(n)&&(t="vec3",i=l=>FH(l));const s=`u${cle(n)}_${e}`,o=` // Dynamic value - uniform ${t} ${s};`,r=N1(n,e);let a=` +}`;return{channel:n,accessorGlsl:o,accessorFunctionName:s}}function wle(n,e){let t="float",i=l=>l;Zd(n)&&(t="vec3",i=l=>OH(l));const s=`u${Tle(n)}_${e}`,o=` // Dynamic value + uniform ${t} ${s};`,r=M1(n,e);let a=` ${t} ${r}() { // Dynamic value return ${s}; -}`;return{channel:n,uniformName:s,uniformGlsl:o,accessorGlsl:a,accessorFunctionName:r,adjuster:i}}function iF(n,e,t,i=[n]){const{attributeType:s}=R1(e,n),o=BL+b4(i),r=`in highp ${s} ${o};`,a=N1(n,t),l=` +}`;return{channel:n,uniformName:s,uniformGlsl:o,accessorGlsl:a,accessorFunctionName:r,adjuster:i}}function JO(n,e,t,i=[n]){const{attributeType:s}=P1(e,n),o=TL+m4(i),r=`in highp ${s} ${o};`,a=M1(n,t),l=` ${s} ${a}() { return ${o}; -}`;return{channel:n,attributeName:o,attributeGlsl:r,accessorGlsl:l,accessorFunctionName:a}}function ele(n,e,t){const{attributeType:i}=R1(e,n),s=BL+b4(n),o=` uniform highp ${i} ${s};`,r=N1(n,t),a=` +}`;return{channel:n,attributeName:o,attributeGlsl:r,accessorGlsl:l,accessorFunctionName:a}}function Cle(n,e,t){const{attributeType:i}=P1(e,n),s=TL+m4(n),o=` uniform highp ${i} ${s};`,r=M1(n,t),a=` ${i} ${r}() { return ${s}; -}`;return{channel:n,uniformName:s,uniformGlsl:o,accessorGlsl:a,accessorFunctionName:r}}function tle(n,e,t){e??(e=_4());const i=pf(n),s=Gae+i,o=Kae+i,{hp:r,attributeType:a}=R1(e,n),l=e.domain?e.domain().length:void 0;let c;const d=[];d.push(""),d.push("/".repeat(70)),d.push(`// Channel: ${n}`),d.push("");const{transform:u}=Xae(e.type),h=(x,...D)=>sle.apply(null,[x,"value",...D]);let f;switch(u){case"linear":f=h("scaleLinear","domain",o);break;case"log":f=h("scaleLog","domain",o,e.base());break;case"symlog":f=h("scaleSymlog","domain",o,e.constant());break;case"pow":case"sqrt":f=h("scalePow","domain",o,e.exponent());break;case"index":case"locus":f=h("scaleBandHp","domain",o,e.paddingInner(),e.paddingOuter(),e.align(),t.band??.5);break;case"point":case"band":f=h("scaleBand","domain",o,e.paddingInner(),e.paddingOuter(),e.align(),t.band??.5);break;case"ordinal":case"null":case"identity":f=h("scaleIdentity");break;case"threshold":break;default:throw new Error(`Unsupported scale type: ${e.type}! ${n}: ${JSON.stringify(t)}`)}const g=zH(e,n);let p;if(g&&n==i){const x=e.props.range??[];if(Gs(x)||x.some(Gs)){if(g.length<1||g.length>4)throw new Error(`A range with ExprRefs must have 1-4 elements, not ${g.length}! Range: ${JSON.stringify(g)}`);p=` uniform ${PH(g.length)} ${o};`}else if(g.length&&g.every(to)){const D=nF(g);d.push(`const ${D.type} ${o} = ${D};`)}}const _=OH(n);let v;if(Yd(n)){const x=CA+i;if(n==i&&d.push(`uniform sampler2D ${x};`),as(e.type))v=`getInterpolatedColor(${x}, transformed)`;else if(Kd(e.type)||rh(e.type))v=`getDiscreteColor(${x}, int(transformed))`;else throw new Error("Problem with color scale!")}else if(e.type==="ordinal"||rh(e.type)){const x=CA+i;n==i&&d.push(`uniform sampler2D ${x};`),v=`getDiscreteColor(${x}, int(transformed)).r`}const b=[],y=as(e.type)&&l>2,w=rh(e.type)||y;if(b.push("int slot = 0;"),w){const x=s;b.push(y?`while (slot < ${x}.length() - 2 && value >= ${x}[slot + 1]) { slot++; }`:`while (slot < ${x}.length() && value >= ${x}[slot]) { slot++; }`)}const C=as(e.type)||rh(e.type)||["band","point"].includes(e.type);if(f){const x=s;C&&(r?b.push(`vec3 domain = ${x};`):b.push(`vec2 domain = vec2(${x}[slot], ${x}[slot + 1]);`)),b.push(`float transformed = ${f};`),y&&b.push(`transformed = (float(slot) + transformed) / (float(${x}.length() - 1));`)}else b.push("float transformed = float(slot);");"clamp"in e&&e.clamp()&&b.push(`transformed = clampToRange(transformed, ${nF(g)});`),b.push(`return ${v??"transformed"};`),d.push(` -${_} ${RH}${n}(${a} value) { +}`;return{channel:n,uniformName:s,uniformGlsl:o,accessorGlsl:a,accessorFunctionName:r}}function Sle(n,e,t){e??(e=p4());const i=bf(n),s=ple+i,o=mle+i,{hp:r,attributeType:a}=P1(e,n),l=e.domain?e.domain().length:void 0;let c;const d=[];d.push(""),d.push("/".repeat(70)),d.push(`// Channel: ${n}`),d.push("");const{transform:u}=vle(e.type),h=(x,...D)=>Dle.apply(null,[x,"value",...D]);let f;switch(u){case"linear":f=h("scaleLinear","domain",o);break;case"log":f=h("scaleLog","domain",o,e.base());break;case"symlog":f=h("scaleSymlog","domain",o,e.constant());break;case"pow":case"sqrt":f=h("scalePow","domain",o,e.exponent());break;case"index":case"locus":f=h("scaleBandHp","domain",o,e.paddingInner(),e.paddingOuter(),e.align(),t.band??.5);break;case"point":case"band":f=h("scaleBand","domain",o,e.paddingInner(),e.paddingOuter(),e.align(),t.band??.5);break;case"ordinal":case"null":case"identity":f=h("scaleIdentity");break;case"threshold":break;default:throw new Error(`Unsupported scale type: ${e.type}! ${n}: ${JSON.stringify(t)}`)}const g=VH(e,n);let p;if(g&&n==i){const x=e.props.range??[];if(js(x)||x.some(js)){if(g.length<1||g.length>4)throw new Error(`A range with ExprRefs must have 1-4 elements, not ${g.length}! Range: ${JSON.stringify(g)}`);p=` uniform ${MH(g.length)} ${o};`}else if(g.length&&g.every(Qs)){const D=eF(g);d.push(`const ${D.type} ${o} = ${D};`)}}const _=PH(n);let v;if(Zd(n)){const x=yA+i;if(n==i&&d.push(`uniform sampler2D ${x};`),os(e.type))v=`getInterpolatedColor(${x}, transformed)`;else if(Yd(e.type)||lh(e.type))v=`getDiscreteColor(${x}, int(transformed))`;else throw new Error("Problem with color scale!")}else if(e.type==="ordinal"||lh(e.type)){const x=yA+i;n==i&&d.push(`uniform sampler2D ${x};`),v=`getDiscreteColor(${x}, int(transformed)).r`}const b=[],y=os(e.type)&&l>2,w=lh(e.type)||y;if(b.push("int slot = 0;"),w){const x=s;b.push(y?`while (slot < ${x}.length() - 2 && value >= ${x}[slot + 1]) { slot++; }`:`while (slot < ${x}.length() && value >= ${x}[slot]) { slot++; }`)}const S=os(e.type)||lh(e.type)||["band","point"].includes(e.type);if(f){const x=s;S&&(r?b.push(`vec3 domain = ${x};`):b.push(`vec2 domain = vec2(${x}[slot], ${x}[slot + 1]);`)),b.push(`float transformed = ${f};`),y&&b.push(`transformed = (float(slot) + transformed) / (float(${x}.length() - 1));`)}else b.push("float transformed = float(slot);");"clamp"in e&&e.clamp()&&b.push(`transformed = clampToRange(transformed, ${eF(g)});`),b.push(`return ${v??"transformed"};`),d.push(` +${_} ${NH}${n}(${a} value) { ${b.map(x=>` ${x} `).join("")} }`);const L=d.join(` -`);if(C&&n==i){const x=as(e.type)||rh(e.type)?l:2;c=r?` highp vec3 ${s};`:` mediump float ${s}[${x}];`}return{glsl:L,domainUniformName:s,domainUniform:c,rangeUniformName:o,rangeUniform:p}}function ile(n,e){const t=OH(n),i=[],s=[];for(let o=0;o 4)throw new Error("Invalid number of components: "+e);const t=PH(e),i=`${t}(${n.map(MH).join(", ")})`;return Object.assign(i,{type:t,numComponents:e})}function PH(n){switch(n){case 1:return"float";case 2:return"vec2";case 3:return"vec3";case 4:return"vec4";default:throw new Error("Invalid number of components: "+n)}}function OH(n){return Yd(n)?"vec3":n=="uniqueId"?"uint":"float"}function FH(n){const e=qd(n).rgb();return[e.r,e.g,e.b].map(t=>t/255)}function nle(n){return xh(FH(n))}function nF(n){return xh([n[0],_1(n)])}function sle(n,...e){const t=[];for(const i of e)to(i)?t.push(MH(i)):Ps(i)?t.push(xh(i)):t.push(i);return`${n}(${t.join(", ")})`}function R1(n,e){var r;const t=n&&Kd(n.type),i=n&&BH(n.type),s=i&&ole(n.domain()),o=s?{attributeType:"uvec2",arrayConstructor:Uint32Array}:i?{attributeType:"uint",arrayConstructor:Uint32Array}:t?{attributeType:"uint",arrayConstructor:Uint16Array}:e=="uniqueId"?{attributeType:"uint",arrayConstructor:Uint32Array}:{attributeType:"float",arrayConstructor:Float32Array};return Object.assign(o,{numComponents:+(((r=o.attributeType.match(/^vec([234])$/))==null?void 0:r[1])??1),discrete:t,hp:i,largeHp:s})}function BH(n){return n=="index"||n=="locus"}function ole(n){return n[1]>2**32}const rle=12,SA=2**rle;function WH(n,e=[]){const t=n%SA,i=(n-t)/SA;return e[0]=i,e[1]=t,e}function ale(n){const e=n%SA;return[n-e,e]}function lle(n){return[...ale(n[0]),n[1]-n[0]]}function VH(n){const e=new gc([],JSON.stringify);for(const[t,i]of Object.entries(n)){const s=i.channelDef;if(wu(s)){const r=[s.field,i.scale?(as(i.scale.type)||rh(i.scale.type))??!1:!1];e.set(r,[...e.get(r)??[],t])}}return e}function b4(n){return Zs(n).join("_")}function cle(n){return n[0].toUpperCase()+n.slice(1)}const zH=(n,e)=>IL(n.type)||as(n.type)&&Yd(e)?[0,1]:n.range?n.range():void 0;function dle(n,e){if(n.length!=e.length)throw new Error("Unequal array lengths");const t=n.length;if(t==0)return"";if(t==1&&n[0]==null)return e[0];const i=[];for(let s=0;s 4)throw new Error("Invalid number of components: "+e);const t=MH(e),i=`${t}(${n.map(RH).join(", ")})`;return Object.assign(i,{type:t,numComponents:e})}function MH(n){switch(n){case 1:return"float";case 2:return"vec2";case 3:return"vec3";case 4:return"vec4";default:throw new Error("Invalid number of components: "+n)}}function PH(n){return Zd(n)?"vec3":n=="uniqueId"?"uint":"float"}function OH(n){const e=Gd(n).rgb();return[e.r,e.g,e.b].map(t=>t/255)}function Lle(n){return xh(OH(n))}function eF(n){return xh([n[0],v1(n)])}function Dle(n,...e){const t=[];for(const i of e)Qs(i)?t.push(RH(i)):cs(i)?t.push(xh(i)):t.push(i);return`${n}(${t.join(", ")})`}function P1(n,e){var r;const t=n&&Yd(n.type),i=n&&FH(n.type),s=i&&kle(n.domain()),o=s?{attributeType:"uvec2",arrayConstructor:Uint32Array}:i?{attributeType:"uint",arrayConstructor:Uint32Array}:t?{attributeType:"uint",arrayConstructor:Uint16Array}:e=="uniqueId"?{attributeType:"uint",arrayConstructor:Uint32Array}:{attributeType:"float",arrayConstructor:Float32Array};return Object.assign(o,{numComponents:+(((r=o.attributeType.match(/^vec([234])$/))==null?void 0:r[1])??1),discrete:t,hp:i,largeHp:s})}function FH(n){return n=="index"||n=="locus"}function kle(n){return n[1]>2**32}const Ele=12,wA=2**Ele;function BH(n,e=[]){const t=n%wA,i=(n-t)/wA;return e[0]=i,e[1]=t,e}function Ale(n){const e=n%wA;return[n-e,e]}function Ile(n){return[...Ale(n[0]),n[1]-n[0]]}function WH(n){const e=new gc([],JSON.stringify);for(const[t,i]of Object.entries(n)){const s=i.channelDef;if(Cu(s)){const r=[s.field,i.scale?(os(i.scale.type)||lh(i.scale.type))??!1:!1];e.set(r,[...e.get(r)??[],t])}}return e}function m4(n){return Ks(n).join("_")}function Tle(n){return n[0].toUpperCase()+n.slice(1)}const VH=(n,e)=>SL(n.type)||os(n.type)&&Zd(e)?[0,1]:n.range?n.range():void 0;function Nle(n,e){if(n.length!=e.length)throw new Error("Unequal array lengths");const t=n.length;if(t==0)return"";if(t==1&&n[0]==null)return e[0];const i=[];for(let s=0;s i(s(o)):o=>i(s(o)))}createUpdater(e,t,i=Float32Array,s=void 0){if(!to(this.size))throw new Error("The number of vertices must be defined!");let o,r,a=0;const l=new i(this.size*t);if(this.arrays[e]={data:l,numComponents:t},t==1){let c=0;const d=u=>{c=+u};o=()=>{l[a++]=c},r=d}else{let c=s??[0];const d=s?u=>{}:u=>{c=u};switch(t){case 1:break;case 2:o=()=>{l[a++]=c[0],l[a++]=c[1]},r=d;break;case 3:o=()=>{l[a++]=c[0],l[a++]=c[1],l[a++]=c[2]},r=d;break;case 4:o=()=>{l[a++]=c[0],l[a++]=c[1],l[a++]=c[2],l[a++]=c[3]},r=d;break;default:throw new Error("Invalid numComponents: "+t)}}return this.pushers.push(o),r}pushAll(){throw new Error("Call configure() first!")}updateFromDatum(e){throw new Error("Call configure() first!")}pushFromDatum(e){this.updateFromDatum(e),this.pushAll()}}Gv=new WeakMap,Um=new WeakSet,HH=function(){if(this.size>sF){const e=this.pushers.map((i,s)=>`const p${s} = that.pushers[${s}];`).join(` +`)}const tF=1e4;var Zv,Gm,zH,HH;class Rle{constructor(e){Pe(this,Gm);Pe(this,Zv,!1);this.size=e,this.arrays={},this.pushers=[],this.dataUpdaters=[],this.vertexCount=0}configure(){if(X(this,Zv))throw new Error("Already configured!");xe(this,Gm,zH).call(this),xe(this,Gm,HH).call(this),dt(this,Zv,!0)}addConverter(e,t){const i=this.createUpdater(TL+e,t.numComponents||1,t.targetArrayType??Float32Array,t.arrayReference),s=t.f;this.dataUpdaters.push(t.arrayReference?o=>i(s(o)):o=>i(s(o)))}createUpdater(e,t,i=Float32Array,s=void 0){if(!Qs(this.size))throw new Error("The number of vertices must be defined!");let o,r,a=0;const l=new i(this.size*t);if(this.arrays[e]={data:l,numComponents:t},t==1){let c=0;const d=u=>{c=+u};o=()=>{l[a++]=c},r=d}else{let c=s??[0];const d=s?u=>{}:u=>{c=u};switch(t){case 1:break;case 2:o=()=>{l[a++]=c[0],l[a++]=c[1]},r=d;break;case 3:o=()=>{l[a++]=c[0],l[a++]=c[1],l[a++]=c[2]},r=d;break;case 4:o=()=>{l[a++]=c[0],l[a++]=c[1],l[a++]=c[2],l[a++]=c[3]},r=d;break;default:throw new Error("Invalid numComponents: "+t)}}return this.pushers.push(o),r}pushAll(){throw new Error("Call configure() first!")}updateFromDatum(e){throw new Error("Call configure() first!")}pushFromDatum(e){this.updateFromDatum(e),this.pushAll()}}Zv=new WeakMap,Gm=new WeakSet,zH=function(){if(this.size>tF){const e=this.pushers.map((i,s)=>`const p${s} = that.pushers[${s}];`).join(` `),t=this.pushers.map((i,s)=>` p${s}();`).join(` `);this.pushAll=new Function("that",`${e} return function unrolledPushAll() { ${t} that.vertexCount++; -};`)(this)}else this.pushAll=()=>{for(let e=0;e sF){const e=this.dataUpdaters.map((i,s)=>`const u${s} = that.dataUpdaters[${s}];`).join(` +};`)(this)}else this.pushAll=()=>{for(let e=0;e tF){const e=this.dataUpdaters.map((i,s)=>`const u${s} = that.dataUpdaters[${s}];`).join(` `),t=this.dataUpdaters.map((i,s)=>` u${s}(datum);`).join(` `);this.updateFromDatum=new Function("that","datum",`${e} return function unrolledUpdateFromDatum(datum) { ${t} -};`)(this)}else this.updateFromDatum=e=>{for(let t=0;t {const y=(v-c)/u,w=Math.floor(y);return dm(b&&w==y?w-1:w,0,n-1)};function f(v,b,y){if(a)return;if(b>o)o=b;else{a=!0,console.debug("Items are not ordered properly. Disabling binned index.");return}const w=t(v);if(w b&&(s[C]=b),l[C] o)o=b;else{a=!0,console.debug("Items (vertices) are not ordered properly. Disabling binned index.");return}const w=t(v),C=i(v);if(w b&&(s[D]=b),l[D] {const w=h(v,!1),C=h(b,!0),L=s[w],x=Math.max(l[C],L);return y[0]=L,y[1]=x,y},_=()=>{if(a)return;for(let b=1;b 0;b--)v&&s[b]==oF?(s[b]=l[b],v=!1):s[b-1]>s[b]&&(s[b-1]=s[b]);return p};return f.getIndex=_,g.getIndex=_,t==i?f:g}function gle(){let n=0,e,t=0;const i=new Map,s=o=>(o===e||(t=i.get(o),t===void 0&&(t=n++,i.set(o,t)),e=o),t);return s.addAll=o=>{for(const r of o)s(r)},s.invert=o=>{for(const r of i.entries())if(r[1]==o)return r[0]},s.domain=()=>[...i.keys()],s}class M1{constructor({encoders:e,numVertices:t=void 0,attributes:i=[]}){this.encoders=e,this.variableEncoders=Object.fromEntries(Object.entries(e).filter(([o,r])=>i.includes(o)&&r&&!r.constant));const s=[...VH(e).entries()].filter(([o,r])=>o[1]&&r.length>1).map(([o,r])=>r);this.allocatedVertices=t,this.variableBuilder=new ule(t);for(const[o,r]of Object.entries(this.variableEncoders)){const a=r.dataAccessor;if(!a)continue;const l=s.find(y=>y.find(w=>w==o));if(l&&o!=l[0])continue;const c=a.asNumberAccessor(),d=r.scale,{largeHp:u,arrayConstructor:h,discrete:f,numComponents:g}=R1(d,o),p=[0,0];let _;d&&f&&"domain"in d&&(_=gle(),_.addAll(d.domain()));const v=_?y=>_(a(y)):u?y=>WH(c(y),p):c,b=l?b4(l):o;this.variableBuilder.addConverter(b,{f:v,numComponents:g,arrayReference:u?p:void 0,targetArrayType:h})}this.lastOffset=0,this.rangeMap=new gc([],JSON.stringify)}registerBatch(e){var o;const t=this.lastOffset,i=this.variableBuilder.vertexCount,s=i-t;s&&this.rangeMap.set(e,{offset:t,count:s,xIndex:(o=this.xIndexer)==null?void 0:o.getIndex()}),this.lastOffset=i}addBatches(e){for(const[t,i]of e)this.addBatch(t,i)}addBatch(e,t,i=0,s=t.length){this.prepareXIndexer(t,i,s);for(let o=i;o {this.addToXIndex=d=>{},this.xIndexer=void 0},o=(c=this.encoders.x)==null?void 0:c.channelDef;if(!("buildIndex"in o)||!o.buildIndex||!e.length||i-t<0){s();return}const r=d=>{var u;return d&&as((u=d.scale)==null?void 0:u.type)&&d},a=r(this.variableEncoders.x),l=r(this.variableEncoders.x2);if(a&&!a.constant&&(!l||!l.constant)){const d=a.dataAccessor.asNumberAccessor(),u=l?l.dataAccessor.asNumberAccessor():d,h=[d(e[t]),u(e[i-1])];if(h[1]>h[0]){this.xIndexer=fle(50,h,d,u);let f=this.variableBuilder.vertexCount;this.addToXIndex=g=>{let p=this.variableBuilder.vertexCount;this.xIndexer(g,f,p),f=p}}else s()}else s()}addToXIndex(e){}toArrays(){return{arrays:this.variableBuilder.arrays,vertexCount:this.variableBuilder.vertexCount,allocatedVertices:this.allocatedVertices,rangeMap:this.rangeMap}}}class ple extends M1{constructor({encoders:e,attributes:t,numItems:i}){super({encoders:e,attributes:t,numVertices:i*6}),this.variableBuilder.configure();const s=this.variableBuilder.pushAll;this.pushAllSixTimes=i>500?new Function("pushAll",`return function unrolledPushAllSixTimes() { +};`)(this)}else this.updateFromDatum=e=>{for(let t=0;t{const y=(v-c)/u,w=Math.floor(y);return fm(b&&w==y?w-1:w,0,n-1)};function f(v,b,y){if(a)return;if(b>o)o=b;else{a=!0,console.debug("Items are not ordered properly. Disabling binned index.");return}const w=t(v);if(w b&&(s[S]=b),l[S] o)o=b;else{a=!0,console.debug("Items (vertices) are not ordered properly. Disabling binned index.");return}const w=t(v),S=i(v);if(w b&&(s[D]=b),l[D] {const w=h(v,!1),S=h(b,!0),L=s[w],x=Math.max(l[S],L);return y[0]=L,y[1]=x,y},_=()=>{if(a)return;for(let b=1;b 0;b--)v&&s[b]==iF?(s[b]=l[b],v=!1):s[b-1]>s[b]&&(s[b-1]=s[b]);return p};return f.getIndex=_,g.getIndex=_,t==i?f:g}function Ole(){let n=0,e,t=0;const i=new Map,s=o=>(o===e||(t=i.get(o),t===void 0&&(t=n++,i.set(o,t)),e=o),t);return s.addAll=o=>{for(const r of o)s(r)},s.invert=o=>{for(const r of i.entries())if(r[1]==o)return r[0]},s.domain=()=>[...i.keys()],s}class O1{constructor({encoders:e,numVertices:t=void 0,attributes:i=[]}){this.encoders=e,this.variableEncoders=Object.fromEntries(Object.entries(e).filter(([o,r])=>i.includes(o)&&r&&!r.constant));const s=[...WH(e).entries()].filter(([o,r])=>o[1]&&r.length>1).map(([o,r])=>r);this.allocatedVertices=t,this.variableBuilder=new Rle(t);for(const[o,r]of Object.entries(this.variableEncoders)){const a=r.dataAccessor;if(!a)continue;const l=s.find(y=>y.find(w=>w==o));if(l&&o!=l[0])continue;const c=a.asNumberAccessor(),d=r.scale,{largeHp:u,arrayConstructor:h,discrete:f,numComponents:g}=P1(d,o),p=[0,0];let _;d&&f&&"domain"in d&&(_=Ole(),_.addAll(d.domain()));const v=_?y=>_(a(y)):u?y=>BH(c(y),p):c,b=l?m4(l):o;this.variableBuilder.addConverter(b,{f:v,numComponents:g,arrayReference:u?p:void 0,targetArrayType:h})}this.lastOffset=0,this.rangeMap=new gc([],JSON.stringify)}registerBatch(e){var o;const t=this.lastOffset,i=this.variableBuilder.vertexCount,s=i-t;s&&this.rangeMap.set(e,{offset:t,count:s,xIndex:(o=this.xIndexer)==null?void 0:o.getIndex()}),this.lastOffset=i}addBatches(e){for(const[t,i]of e)this.addBatch(t,i)}addBatch(e,t,i=0,s=t.length){this.prepareXIndexer(t,i,s);for(let o=i;o {this.addToXIndex=d=>{},this.xIndexer=void 0},o=(c=this.encoders.x)==null?void 0:c.channelDef;if(!("buildIndex"in o)||!o.buildIndex||!e.length||i-t<0){s();return}const r=d=>{var u;return d&&os((u=d.scale)==null?void 0:u.type)&&d},a=r(this.variableEncoders.x),l=r(this.variableEncoders.x2);if(a&&!a.constant&&(!l||!l.constant)){const d=a.dataAccessor.asNumberAccessor(),u=l?l.dataAccessor.asNumberAccessor():d,h=[d(e[t]),u(e[i-1])];if(h[1]>h[0]){this.xIndexer=Ple(50,h,d,u);let f=this.variableBuilder.vertexCount;this.addToXIndex=g=>{let p=this.variableBuilder.vertexCount;this.xIndexer(g,f,p),f=p}}else s()}else s()}addToXIndex(e){}toArrays(){return{arrays:this.variableBuilder.arrays,vertexCount:this.variableBuilder.vertexCount,allocatedVertices:this.allocatedVertices,rangeMap:this.rangeMap}}}class Fle extends O1{constructor({encoders:e,attributes:t,numItems:i}){super({encoders:e,attributes:t,numVertices:i*6}),this.variableBuilder.configure();const s=this.variableBuilder.pushAll;this.pushAllSixTimes=i>500?new Function("pushAll",`return function unrolledPushAllSixTimes() { pushAll(); pushAll(); pushAll(); pushAll(); pushAll(); pushAll(); -};`)(s):function(){s(),s(),s(),s(),s(),s()}}addBatch(e,t,i=0,s=t.length){if(!(s<=i)){this.prepareXIndexer(t,i,s);for(let o=i;ol,this.updateVertexCoord=this.variableBuilder.createUpdater("vertexCoord",2),this.updateTextureCoord=this.variableBuilder.createUpdater("textureCoord",2),this.updateWidth=this.variableBuilder.createUpdater("width",1),this.variableBuilder.configure()}addBatch(e,t,i=0,s=t.length){const o=this.properties.align||"left",r=this.properties.logoLetters??!1,a=this.metadata.common.base,l=this.metadata.common.scaleH;let c=-Mg;switch(this.properties.baseline){case"top":c+=this.metrics.capHeight;break;case"middle":c+=this.metrics.capHeight/2;break;case"bottom":c-=this.metrics.descent;break}const d=this.encoders.text,u=[0,0];this.updateVertexCoord(u);const h=[0,0];this.updateTextureCoord(h),this.prepareXIndexer(t,i,s);for(let f=i;fl,this.updateVertexCoord=this.variableBuilder.createUpdater("vertexCoord",2),this.updateTextureCoord=this.variableBuilder.createUpdater("textureCoord",2),this.updateWidth=this.variableBuilder.createUpdater("width",1),this.variableBuilder.configure()}addBatch(e,t,i=0,s=t.length){const o=this.properties.align||"left",r=this.properties.logoLetters??!1,a=this.metadata.common.base,l=this.metadata.common.scaleH;let c=-Og;switch(this.properties.baseline){case"top":c+=this.metrics.capHeight;break;case"middle":c+=this.metrics.capHeight/2;break;case"bottom":c-=this.metrics.descent;break}const d=this.encoders.text,u=[0,0];this.updateVertexCoord(u);const h=[0,0];this.updateTextureCoord(h),this.prepareXIndexer(t,i,s);for(let f=i;fa/(i-1)).map(a=>s+a/o).map(n);return t&&r.reverse(),qH(r)}function qH(n,e){const t=Math.max(n.length,e||0),i=new Uint8Array(t*3);for(let s=0;s({width:void 0,height:void 0})),this._shaderCache=new Map,this.rangeTextures=new WeakMap,this.selectionTextures=new WeakMap;const o=document.createElement("canvas");e.appendChild(o);const r=jse(o,{antialias:!0,depth:!1,premultipliedAlpha:!0,...s});if(!r)throw new Error("Unable to initialize WebGL. Your browser or machine may not support it.");if(!qm(r))throw new Error("Your web browser does not support WebGL 2.0. Chrome, Firefox, and Safari Tech Preview should work.");if(fz(r),r.blendFunc(r.ONE,r.ONE_MINUS_SRC_ALPHA),this.canvas=o,this.gl=r,this._pickingAttachmentOptions=[{format:r.RGBA,type:r.UNSIGNED_BYTE,minMag:r.LINEAR,wrap:r.CLAMP_TO_EDGE}],this._pickingBufferInfo=Wse(r,this._pickingAttachmentOptions),r.bindFramebuffer(r.FRAMEBUFFER,null),this.adjustGl(),this._updateDpr(),this._clearColor=[0,0,0,0],i){const a=qd(i).rgb();this._clearColor=[a.r/255,a.g/255,a.b/255,a.opacity]}}invalidateSize(){this._logicalCanvasSize=void 0,this._updateDpr(),this.adjustGl()}_updateDpr(){this.dpr=window.devicePixelRatio}compileShader(e,t){const i="#version 300 es",s="precision mediump float;";Ps(t)&&(t=t.join(` +`,jle=`in highp vec4 vPickingColor; +`,Xw=Symbol("cacheMap");function NL(n,e,t){let i=Rb(n).get(e);return i===void 0&&(i=t(e),Rb(n).set(e,i)),i}function qle(n,e){Rb(n).delete(e)}function Qw(n,e){const t=Rb(n);for(const i of t.keys())i.startsWith(e)&&t.delete(i);Rb(n).delete(e)}function $H(n){n[Xw]=new Map}function Rb(n){return n[Xw]||$H(n),n[Xw]}function Gle(n,e,t,i){const s=Ti(n)?n:n.name,o=!Ti(n)&&n.extent||[0,1];if(t===void 0&&!Ti(n)&&(t=n.count),s){const r=a4(s);if(fr(r)){const a=UH(r,{extent:o,count:t});return F1(e,{minMag:e.LINEAR,format:e.RGB,height:1,wrap:e.CLAMP_TO_EDGE},a,i)}else{if(cs(r))return SA(r,e);throw new Error("Unknown scheme: "+s)}}}function Kle(n,e="rgb",t,i){const s=xL(n,Ti(e)?e:e.type,Ti(e)?void 0:e.gamma),o=UH(s);return F1(t,{minMag:t.LINEAR,format:t.RGB,height:1,wrap:t.CLAMP_TO_EDGE},o,i)}function Yle(n,e,t,i){const s=Math.max(n.length,t||0),o=new Float32Array(s);for(let r=0;r a/(i-1)).map(a=>s+a/o).map(n);return t&&r.reverse(),jH(r)}function jH(n,e){const t=Math.max(n.length,e||0),i=new Uint8Array(t*3);for(let s=0;s({width:void 0,height:void 0})),this._shaderCache=new Map,this.rangeTextures=new WeakMap,this.selectionTextures=new WeakMap;const o=document.createElement("canvas");e.appendChild(o);const r=ioe(o,{antialias:!0,depth:!1,premultipliedAlpha:!0,...s});if(!r)throw new Error("Unable to initialize WebGL. Your browser or machine may not support it.");if(!Zm(r))throw new Error("Your web browser does not support WebGL 2.0. Chrome, Firefox, and Safari Tech Preview should work.");if(hz(r),r.blendFunc(r.ONE,r.ONE_MINUS_SRC_ALPHA),this.canvas=o,this.gl=r,this._pickingAttachmentOptions=[{format:r.RGBA,type:r.UNSIGNED_BYTE,minMag:r.LINEAR,wrap:r.CLAMP_TO_EDGE}],this._pickingBufferInfo=Zse(r,this._pickingAttachmentOptions),r.bindFramebuffer(r.FRAMEBUFFER,null),this.adjustGl(),this._updateDpr(),this._clearColor=[0,0,0,0],i){const a=Gd(i).rgb();this._clearColor=[a.r/255,a.g/255,a.b/255,a.opacity]}}invalidateSize(){this._logicalCanvasSize=void 0,this._updateDpr(),this.adjustGl()}_updateDpr(){this.dpr=window.devicePixelRatio}compileShader(e,t){const i="#version 300 es",s="precision mediump float;";cs(t)&&(t=t.join(` `));const o=this.gl,r=t.replaceAll(/ {2,}|^\s*\/\/.*$/gm,"");let a=this._shaderCache.get(r);if(!a){const l=[i,s,t].join(` -`);a=o.createShader(e),o.shaderSource(a,l),o.compileShader(a),this._shaderCache.set(r,a)}return a}adjustGl(){const e=this.getLogicalCanvasSize();this.canvas.style.width=`${e.width}px`,this.canvas.style.height=`${e.height}px`;const t=this.getPhysicalCanvasSize(e);this.canvas.width=t.width,this.canvas.height=t.height,Vse(this.gl,this._pickingBufferInfo,this._pickingAttachmentOptions)}finalize(){this.canvas.remove()}getPhysicalCanvasSize(e){return e=e||this.getLogicalCanvasSize(),{width:e.width*this.dpr,height:e.height*this.dpr}}getLogicalCanvasSize(){if(this._logicalCanvasSize)return this._logicalCanvasSize;const e=this._sizeSource(),t=window.getComputedStyle(this._container,null),i=e.width??this._container.clientWidth-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight),s=e.height??this._container.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom);return this._logicalCanvasSize={width:i,height:s},this._logicalCanvasSize}readPickingPixel(e,t){const i=this.gl;e*=this.dpr,t*=this.dpr;const s=this.getPhysicalCanvasSize().height,o=new Uint8Array(4);return i.bindFramebuffer(i.FRAMEBUFFER,this._pickingBufferInfo.framebuffer),i.readPixels(e,s-t-1,1,1,i.RGBA,i.UNSIGNED_BYTE,o),i.bindFramebuffer(i.FRAMEBUFFER,null),o}clearAll(){const e=this.gl,{width:t,height:i}=this.getPhysicalCanvasSize();e.viewport(0,0,t,i),e.disable(e.SCISSOR_TEST),e.clearColor(...this._clearColor),e.clear(e.COLOR_BUFFER_BIT)}createRangeTexture(e,t=!1){const i=this.rangeTextures.get(e);if(!t&&i)return;function s(r,a){return Kd(a.type)?a.domain().length:a.type=="threshold"?a.domain().length+1:a.type=="quantize"||a.type=="quantile"?r??4:r}const o=e.channel;if(Yd(o)){const r=e.scale,a=r.props,l=r.range();let c;if(a.scheme)if(r.type=="threshold"&&l)c=LA(l,this.gl,r.domain().length,i);else{let d=Ti(a.scheme)?void 0:a.scheme.count;d=s(d,r),c=Lle(a.scheme,this.gl,d,i)}else IL(r.type)||as(r.type)&&l.length>1?c=Dle(l,a.interpolate,this.gl,i):c=LA(l,this.gl,r.domain().length,i);this.rangeTextures.set(e,c)}else{const r=e.scale;if(r.type==="ordinal"||rh(r.type)){const a=FL(o)?NH(o):c=>c,l=r.range();this.rangeTextures.set(e,kle(l.map(a),this.gl,r.domain().length,i))}}}createSelectionTexture(e,t=!0){if(!p4(e))throw new Error("Not a multi-point selection, cannot create texture");const i=Array.from(e.data.keys()),s=i.length>0?i.sort((l,c)=>l-c):[0],o=this.selectionTextures.get(e),r=this.gl,a=P1(this.gl,{level:0,minMag:r.NEAREST,format:r.RED_INTEGER,internalFormat:r.R32UI,height:1,width:s.length},new Uint32Array(s),t?o:!1);this.selectionTextures.set(e,a)}}function Ale(n,e="",t=0){const i=/ERROR:\s*\d+:(\d+)/gi,s=[...e.matchAll(i)],o=new Map(s.map((r,a)=>{const l=parseInt(r[1]),c=s[a+1],d=c?c.index:e.length,u=e.substring(r.index,d);return[l-1,u]}));return n.split(` +`);a=o.createShader(e),o.shaderSource(a,l),o.compileShader(a),this._shaderCache.set(r,a)}return a}adjustGl(){const e=this.getLogicalCanvasSize();this.canvas.style.width=`${e.width}px`,this.canvas.style.height=`${e.height}px`;const t=this.getPhysicalCanvasSize(e);this.canvas.width=t.width,this.canvas.height=t.height,Xse(this.gl,this._pickingBufferInfo,this._pickingAttachmentOptions)}finalize(){this.canvas.remove()}getPhysicalCanvasSize(e){return e=e||this.getLogicalCanvasSize(),{width:e.width*this.dpr,height:e.height*this.dpr}}getLogicalCanvasSize(){if(this._logicalCanvasSize)return this._logicalCanvasSize;const e=this._sizeSource(),t=window.getComputedStyle(this._container,null),i=e.width??this._container.clientWidth-parseFloat(t.paddingLeft)-parseFloat(t.paddingRight),s=e.height??this._container.clientHeight-parseFloat(t.paddingTop)-parseFloat(t.paddingBottom);return this._logicalCanvasSize={width:i,height:s},this._logicalCanvasSize}readPickingPixel(e,t){const i=this.gl;e*=this.dpr,t*=this.dpr;const s=this.getPhysicalCanvasSize().height,o=new Uint8Array(4);return i.bindFramebuffer(i.FRAMEBUFFER,this._pickingBufferInfo.framebuffer),i.readPixels(e,s-t-1,1,1,i.RGBA,i.UNSIGNED_BYTE,o),i.bindFramebuffer(i.FRAMEBUFFER,null),o}clearAll(){const e=this.gl,{width:t,height:i}=this.getPhysicalCanvasSize();e.viewport(0,0,t,i),e.disable(e.SCISSOR_TEST),e.clearColor(...this._clearColor),e.clear(e.COLOR_BUFFER_BIT)}createRangeTexture(e,t=!1){const i=this.rangeTextures.get(e);if(!t&&i)return;function s(r,a){return Yd(a.type)?a.domain().length:a.type=="threshold"?a.domain().length+1:a.type=="quantize"||a.type=="quantile"?r??4:r}const o=e.channel;if(Zd(o)){const r=e.scale,a=r.props,l=r.range();let c;if(a.scheme)if(r.type=="threshold"&&l)c=SA(l,this.gl,r.domain().length,i);else{let d=Ti(a.scheme)?void 0:a.scheme.count;d=s(d,r),c=Gle(a.scheme,this.gl,d,i)}else SL(r.type)||os(r.type)&&l.length>1?c=Kle(l,a.interpolate,this.gl,i):c=SA(l,this.gl,r.domain().length,i);this.rangeTextures.set(e,c)}else{const r=e.scale;if(r.type==="ordinal"||lh(r.type)){const a=IL(o)?TH(o):c=>c,l=r.range();this.rangeTextures.set(e,Yle(l.map(a),this.gl,r.domain().length,i))}}}createSelectionTexture(e,t=!0){if(!f4(e))throw new Error("Not a multi-point selection, cannot create texture");const i=Array.from(e.data.keys()),s=i.length>0?i.sort((l,c)=>l-c):[0],o=this.selectionTextures.get(e),r=this.gl,a=F1(this.gl,{level:0,minMag:r.NEAREST,format:r.RED_INTEGER,internalFormat:r.R32UI,height:1,width:s.length},new Uint32Array(s),t?o:!1);this.selectionTextures.set(e,a)}}function Xle(n,e="",t=0){const i=/ERROR:\s*\d+:(\d+)/gi,s=[...e.matchAll(i)],o=new Map(s.map((r,a)=>{const l=parseInt(r[1]),c=s[a+1],d=c?c.index:e.length,u=e.substring(r.index,d);return[l-1,u]}));return n.split(` `).map((r,a)=>{const l=o.get(a);return`${a+1+t}: ${r}${l?` ^^^ ${l}`:""}`}).join(` -`)}function Ile(n,e,t){const i=n.createProgram();n.attachShader(i,e),n.attachShader(i,t),n.linkProgram(i);function s(){let o,r;if(!n.getProgramParameter(i,n.LINK_STATUS)){o=n.getProgramInfoLog(i);for(const l of[e,t])n.getShaderParameter(l,n.COMPILE_STATUS)||(o=n.getShaderInfoLog(l),r=Ale(n.getShaderSource(l),o,0)+` -Error compiling: ${o}`,n.deleteShader(l));n.deleteProgram(i)}if(o)return{message:o,detail:r}}return{program:i,getProgramErrors:s}}function P1(n,e,t,i){return i?MV(n,i,t,e):i=Sb(n,{...e,src:t}),i}function aF(...n){const e={get(t,i,s){for(const o of n){const a=o()[i];if(a!==void 0)return a}},has(t,i,s){for(const o of n){const r=o();if(i in r)return!0}return!1}};return new Proxy({},e)}function Tle(n){return Ti(n)||to(n)||g1(n)}class jh extends Error{constructor(e,t){super(e),this.name="ViewError",this.view=t}}const Nle="SAMPLE_FACET_UNIFORM",lF="SAMPLE_FACET_TEXTURE",cF="uSelectionTexture_";var Da;class O1{constructor(e){Oe(this,Da,[]);this.unitView=e,this.encoders=void 0,this.bufferInfo=void 0,this.bytesPerElement=new Map,this.programInfo=void 0,this.vertexArrayInfo=void 0,this.viewUniformInfo=void 0,this.markUniformInfo=void 0,this.markUniformsAltered=!0,this.selectionTextureOps=[],this.rangeMap=new Rle,this.defaultProperties={get clip(){return["x","y"].map(t=>e.getScaleResolution(t)).some(t=>(t==null?void 0:t.isZoomable())??!1)},xOffset:0,yOffset:0,minBufferSize:0},this.properties=aF(typeof this.unitView.spec.mark=="object"?()=>this.unitView.spec.mark:()=>({}),()=>this.defaultProperties)}augmentDefaultProperties(e){Object.defineProperties(this.defaultProperties,Object.getOwnPropertyDescriptors(e))}get opaque(){return!1}getAttributes(){throw new Error("Not implemented!")}getSupportedChannels(){return["sample","facetIndex","x","y","color","opacity","search","uniqueId"]}getDefaultEncoding(){const e={sample:void 0,uniqueId:void 0};return this.isPickingParticipant()&&(e.uniqueId={field:pr}),e}fixEncoding(e){return e}setupExprRefsNeedingGraphicsUpdate(e){const t=this.getSupportedChannels(),i={};for(const o of e){const r=this.properties[o];if(r&&Gs(r)){const a=this.unitView.paramMediator.createExpression(r.expr);a.addListener(()=>{this.updateGraphicsData(),this.unitView.context.animator.requestRender()}),t.includes(o)||Object.defineProperty(i,o,{get(){return a()}})}}const s=this.properties;this.properties=aF(()=>i,()=>s)}get encoding(){return WL(this,"encoding",()=>{var r;const e=this.getDefaultEncoding(),t=this.unitView.getEncoding(),i=a=>{const l=this.properties[a];return Tle(l)||Gs(l)?{value:l}:void 0},s=Object.fromEntries(this.getSupportedChannels().map(a=>[a,i(a)]).filter(a=>Sr(a[1]))),o=this.fixEncoding({...e,...s,...t});for(const a of Object.keys(o))this.getSupportedChannels().includes(a)||delete o[a];return o.x&&((r=o.x).buildIndex??(r.buildIndex=!0)),o})}getContext(){return this.unitView.context}getType(){return this.unitView.getMarkType()}initializeData(){}initializeEncoders(){this.encoders=Bae(this.unitView,this.encoding)}async initializeGraphics(){}updateGraphicsData(){}getSampleFacetMode(){if(this.encoders.facetIndex)return lF;if(this.unitView.getLayoutAncestors().find(e=>"samples"in e.spec))return Nle}createAndLinkShaders(e,t,i=[]){const s=this.getAttributes(),o=this.encoders,r=this.getSampleFacetMode();r&&i.push(`#define ${r}`);const a="// view: "+this.unitView.getPathString();let l=[];const c=new Set,d=VH(o),u=[],h=Object.values(o).flatMap(C=>C.accessors).map(C=>C.predicate).filter(C=>C.param),f=new Map;for(const C of h){const L=C.param,x=this.unitView.paramMediator,D=x.getValue(L);if(!D)throw new Error(`Cannot infer selection type as the parameter "${L}" has no value. Please ensure that the parameter is properly defined!`);const k=BL+"uniqueId";if(xH(D)){if(!f.has(L)){const P=$k+fS(L);f.set(L,"single"),u.push(" // Selection parameter"),u.push(` uniform highp uint ${P};`),X(this,Da).push(()=>{this.registerMarkUniformValue(P,{expr:L},O=>O.uniqueId??0)}),l.push(`bool ${iC}${L}(bool empty) { - return ${$k}${L} == ${k} || (empty && ${$k}${L} == 0u); -}`)}}else if(p4(D)&&!f.has(L)){f.set(L,"multi");const P=cF+fS(L);l.push(`// Selection texture -uniform highp usampler2D ${P};`);const O=this.getContext().glHelper,M=O.selectionTextures;this.selectionTextureOps.push(()=>{const G=x.getValue(L),te=M.get(G);if(!te)throw new Error(`Bug: no selection texture found for "${L}"!`);wh(this.programInfo,{[P]:te})});const R=cF+L;l.push(`bool ${iC}${L}(bool empty) { +`)}function Qle(n,e,t){const i=n.createProgram();n.attachShader(i,e),n.attachShader(i,t),n.linkProgram(i);function s(){let o,r;if(!n.getProgramParameter(i,n.LINK_STATUS)){o=n.getProgramInfoLog(i);for(const l of[e,t])n.getShaderParameter(l,n.COMPILE_STATUS)||(o=n.getShaderInfoLog(l),r=Xle(n.getShaderSource(l),o,0)+` +Error compiling: ${o}`,n.deleteShader(l));n.deleteProgram(i)}if(o)return{message:o,detail:r}}return{program:i,getProgramErrors:s}}function F1(n,e,t,i){return i?RV(n,i,t,e):i=Lb(n,{...e,src:t}),i}function sF(...n){const e={get(t,i,s){for(const o of n){const a=o()[i];if(a!==void 0)return a}},has(t,i,s){for(const o of n){const r=o();if(i in r)return!0}return!1}};return new Proxy({},e)}function Jle(n){return Ti(n)||Qs(n)||m1(n)}class Kh extends Error{constructor(e,t){super(e),this.name="ViewError",this.view=t}}const ece="SAMPLE_FACET_UNIFORM",oF="SAMPLE_FACET_TEXTURE",rF="uSelectionTexture_";var xa;class B1{constructor(e){Pe(this,xa,[]);this.unitView=e,this.encoders=void 0,this.bufferInfo=void 0,this.bytesPerElement=new Map,this.programInfo=void 0,this.vertexArrayInfo=void 0,this.viewUniformInfo=void 0,this.markUniformInfo=void 0,this.markUniformsAltered=!0,this.selectionTextureOps=[],this.rangeMap=new tce,this.defaultProperties={get clip(){return["x","y"].map(t=>e.getScaleResolution(t)).some(t=>(t==null?void 0:t.isZoomable())??!1)},xOffset:0,yOffset:0,minBufferSize:0},this.properties=sF(typeof this.unitView.spec.mark=="object"?()=>this.unitView.spec.mark:()=>({}),()=>this.defaultProperties)}augmentDefaultProperties(e){Object.defineProperties(this.defaultProperties,Object.getOwnPropertyDescriptors(e))}get opaque(){return!1}getAttributes(){throw new Error("Not implemented!")}getSupportedChannels(){return["sample","facetIndex","x","y","color","opacity","search","uniqueId"]}getDefaultEncoding(){const e={sample:void 0,uniqueId:void 0};return this.isPickingParticipant()&&(e.uniqueId={field:gr}),e}fixEncoding(e){return e}setupExprRefsNeedingGraphicsUpdate(e){const t=this.getSupportedChannels(),i={};for(const o of e){const r=this.properties[o];if(r&&js(r)){const a=this.unitView.paramMediator.createExpression(r.expr);a.addListener(()=>{this.updateGraphicsData(),this.unitView.context.animator.requestRender()}),t.includes(o)||Object.defineProperty(i,o,{get(){return a()}})}}const s=this.properties;this.properties=sF(()=>i,()=>s)}get encoding(){return NL(this,"encoding",()=>{var r;const e=this.getDefaultEncoding(),t=this.unitView.getEncoding(),i=a=>{const l=this.properties[a];return Jle(l)||js(l)?{value:l}:void 0},s=Object.fromEntries(this.getSupportedChannels().map(a=>[a,i(a)]).filter(a=>Cr(a[1]))),o=this.fixEncoding({...e,...s,...t});for(const a of Object.keys(o))this.getSupportedChannels().includes(a)||delete o[a];return o.x&&((r=o.x).buildIndex??(r.buildIndex=!0)),o})}getContext(){return this.unitView.context}getType(){return this.unitView.getMarkType()}initializeData(){}initializeEncoders(){this.encoders=rle(this.unitView,this.encoding)}async initializeGraphics(){}updateGraphicsData(){}getSampleFacetMode(){if(this.encoders.facetIndex)return oF;if(this.unitView.getLayoutAncestors().find(e=>"samples"in e.spec))return ece}createAndLinkShaders(e,t,i=[]){const s=this.getAttributes(),o=this.encoders,r=this.getSampleFacetMode();r&&i.push(`#define ${r}`);const a="// view: "+this.unitView.getPathString();let l=[];const c=new Set,d=WH(o),u=[],h=Object.values(o).flatMap(S=>S.accessors).map(S=>S.predicate).filter(S=>S.param),f=new Map;for(const S of h){const L=S.param,x=this.unitView.paramMediator,D=x.getValue(L);if(!D)throw new Error(`Cannot infer selection type as the parameter "${L}" has no value. Please ensure that the parameter is properly defined!`);const k=TL+"uniqueId";if(SH(D)){if(!f.has(L)){const P=Bk+rS(L);f.set(L,"single"),u.push(" // Selection parameter"),u.push(` uniform highp uint ${P};`),X(this,xa).push(()=>{this.registerMarkUniformValue(P,{expr:L},O=>O.uniqueId??0)}),l.push(`bool ${Zw}${L}(bool empty) { + return ${Bk}${L} == ${k} || (empty && ${Bk}${L} == 0u); +}`)}}else if(f4(D)&&!f.has(L)){f.set(L,"multi");const P=rF+rS(L);l.push(`// Selection texture +uniform highp usampler2D ${P};`);const O=this.getContext().glHelper,M=O.selectionTextures;this.selectionTextureOps.push(()=>{const G=x.getValue(L),te=M.get(G);if(!te)throw new Error(`Bug: no selection texture found for "${L}"!`);wh(this.programInfo,{[P]:te})});const R=rF+L;l.push(`bool ${Zw}${L}(bool empty) { return binarySearchTexture(${R}, ${k}) || (empty && isEmptyBinarySearchTexture(${R})); -}`),O.createSelectionTexture(D);const z=x.createExpression(L);z.addListener(()=>{const G=z(null);O.createSelectionTexture(G),this.getContext().animator.requestRender()})}}const g=(C,L,x,D)=>{const k=L.channelDef;if(Sr(k))if(Gs(k.value)){const{uniformName:P,uniformGlsl:O,accessorGlsl:M,adjuster:R}=Jae(C,x);l.push(M),u.push(O),X(this,Da).push(()=>{this.registerMarkUniformValue(P,k.value,R)})}else l.push(Qae(C,x,k.value).accessorGlsl);else if(I1(k)){const{uniformName:P,uniformGlsl:O,accessorGlsl:M}=ele(C,D,x);u.push(O),l.push(M);const{largeHp:R,discrete:z}=R1(D,C),G=z&&"domain"in D?te=>D.domain().indexOf(te):R?WH:te=>+te;X(this,Da).push(()=>{this.registerMarkUniformValue(P,k.datum,G)})}else if(wu(k)){const P=d.get([k.field,!0]),{attributeGlsl:O,accessorGlsl:M}=iF(C,D,x,P!=null&&P.includes(C)?P:void 0);c.add(O),l.push(M)}else if(T1(k)){const{attributeGlsl:P,accessorGlsl:O}=iF(C,D,x);c.add(P),l.push(O)}else throw new jh(`Unsupported channel definition: ${JSON.stringify(k)}`,this.unitView)};for(const[C,L]of Object.entries(o)){if(!s.includes(C))continue;const{channelDef:x,accessors:D,scale:k}=L;for(let P=0;P {const ae=this.createMarkUniformSetter(te),fe=()=>ae(zH(k,C));O.addEventListener("range",fe),fe()}),R&&X(this,Da).push(()=>{const ae=this.createMarkUniformSetter(z),fe=()=>{const oe=Kd(k.type)?[0,k.domain().length]:k.domain();ae(BH(k.type)?lle(oe):oe)};O.addEventListener("domain",fe),fe()})}l.push(ile(C,D))}const p=[...f.keys()].map(C=>`${iC}${C}(false)`);l.push(`bool isPointSelected() { +}`),O.createSelectionTexture(D);const z=x.createExpression(L);z.addListener(()=>{const G=z(null);O.createSelectionTexture(G),this.getContext().animator.requestRender()})}}const g=(S,L,x,D)=>{const k=L.channelDef;if(Cr(k))if(js(k.value)){const{uniformName:P,uniformGlsl:O,accessorGlsl:M,adjuster:R}=wle(S,x);l.push(M),u.push(O),X(this,xa).push(()=>{this.registerMarkUniformValue(P,k.value,R)})}else l.push(yle(S,x,k.value).accessorGlsl);else if(N1(k)){const{uniformName:P,uniformGlsl:O,accessorGlsl:M}=Cle(S,D,x);u.push(O),l.push(M);const{largeHp:R,discrete:z}=P1(D,S),G=z&&"domain"in D?te=>D.domain().indexOf(te):R?BH:te=>+te;X(this,xa).push(()=>{this.registerMarkUniformValue(P,k.datum,G)})}else if(Cu(k)){const P=d.get([k.field,!0]),{attributeGlsl:O,accessorGlsl:M}=JO(S,D,x,P!=null&&P.includes(S)?P:void 0);c.add(O),l.push(M)}else if(R1(k)){const{attributeGlsl:P,accessorGlsl:O}=JO(S,D,x);c.add(P),l.push(O)}else throw new Kh(`Unsupported channel definition: ${JSON.stringify(k)}`,this.unitView)};for(const[S,L]of Object.entries(o)){if(!s.includes(S))continue;const{channelDef:x,accessors:D,scale:k}=L;for(let P=0;P {const ae=this.createMarkUniformSetter(te),fe=()=>ae(VH(k,S));O.addEventListener("range",fe),fe()}),R&&X(this,xa).push(()=>{const ae=this.createMarkUniformSetter(z),fe=()=>{const oe=Yd(k.type)?[0,k.domain().length]:k.domain();ae(FH(k.type)?Ile(oe):oe)};O.addEventListener("domain",fe),fe()})}l.push(xle(S,D))}const p=[...f.keys()].map(S=>`${Zw}${S}(false)`);l.push(`bool isPointSelected() { `+(this.encoders.uniqueId&&p.length>0?` return ${p.join(" || ")};`:" return false;")+` }`);const _=`precision highp float; -precision highp int;`,v=C=>C.replace("#pragma markUniforms",u.join(` -`));i=i.map(v),e=v(e),t=v(t);const b=[_,a,...i,rF,yle,[...c].join(` -`),...l,wle,Cle,e],y=[_,a,...i,rF,Sle,t],w=this.gl;this.programStatus=Ile(w,this.glHelper.compileShader(w.VERTEX_SHADER,b),this.glHelper.compileShader(w.FRAGMENT_SHADER,y))}finalizeGraphicsInitialization(){const e=this.programStatus.getProgramErrors();if(e){e.detail&&console.warn(e.detail);const t=new Error("Cannot create shader program: "+e.message);throw t.view=this.unitView,t}this.programInfo=wse(this.gl,this.programStatus.program),delete this.programStatus,this.viewUniformInfo=vO(this.gl,this.programInfo,"View"),this.markUniformInfo=vO(this.gl,this.programInfo,"Mark"),this.gl.useProgram(this.programInfo.program),wh(this.programInfo,{uSampleFacet:[0,1,0,1],uTransitionOffset:0,uZero:0});for(const t of X(this,Da))t();ut(this,Da,void 0)}createMarkUniformSetter(e){const t=this.markUniformInfo.setters[e];if(!t)throw new Error(`Uniform "${e}" not found int the Mark block!`);return i=>{t(i),this.markUniformsAltered=!0,this.unitView.context.animator.requestRender()}}registerMarkUniformValue(e,t,i=s=>s){const s=this.createMarkUniformSetter(e),o=r=>{if(r==null)throw new Error(`Trying to set null/undefined value for uniform: ${e}${Gs(t)?`Expr: ${t.expr}`:""}`);s(r)};if(Gs(t)){const r=this.unitView.paramMediator.createExpression(t.expr),a=()=>o(i(r(null)));r.addListener(a),a()}else o(i(t))}deleteGraphicsData(){const e=this.gl;if(this.vertexArrayInfo&&(this.gl.bindVertexArray(null),e.deleteVertexArray(this.vertexArrayInfo.vertexArrayObject),this.vertexArrayInfo=void 0),this.bufferInfo){for(let t=0;t<8;t++)e.disableVertexAttribArray(t);Object.values(this.bufferInfo.attribs).forEach(t=>this.gl.deleteBuffer(t.buffer)),this.bufferInfo.indices&&this.gl.deleteBuffer(this.bufferInfo.indices),this.bufferInfo=void 0}}updateBufferInfo(e){if(this.gl.bindVertexArray(null),this.bufferInfo&&e.vertexCount<=this.bufferInfo.allocatedVertices)for(const[t,i]of Object.entries(e.arrays))i.data&&Rte(this.gl,this.bufferInfo.attribs[t],i.data,0);else{this.deleteGraphicsData(),this.bufferInfo=Ote(this.gl,e.arrays,{numElements:e.vertexCount}),this.bufferInfo.allocatedVertices=e.allocatedVertices;for(const[t,i]of Object.entries(e.arrays))this.bytesPerElement.set(t,i.data.BYTES_PER_ELEMENT)}}get glHelper(){return this.getContext().glHelper}get gl(){return this.glHelper.gl}onBeforeSampleAnimation(){}onAfterSampleAnimation(){}isReady(){return this.bufferInfo&&this.programInfo}isPickingParticipant(){if(this.properties.tooltip===null&&!this.unitView.paramMediator.hasPointSelections())return!1;for(const e of this.unitView.getLayoutAncestors())if(!e.isPickingSupported())return!1;return!0}bindOrSetMarkUniformBlock(){this.markUniformsAltered?(yO(this.gl,this.programInfo,this.markUniformInfo),this.markUniformsAltered=!1):rz(this.gl,this.programInfo,this.markUniformInfo)}prepareRender(e){const t=this.glHelper,i=this.gl,s=[];s.push(()=>{this.vertexArrayInfo||(this.vertexArrayInfo=zse(this.gl,this.programInfo,this.bufferInfo)),i.useProgram(this.programInfo.program)});for(const[r,a]of Object.entries(this.encoding))if(zo(a)){const l=zo(a)&&a.resolutionChannel||r;if(Ib(l)){const c=this.unitView.getScaleResolution(l),d=t.rangeTextures.get(c);d&&s.push(()=>wh(this.programInfo,{[CA+r]:d}))}}s.push(...this.selectionTextureOps),this.getSampleFacetMode()==lF&&s.push(()=>{let r;for(const a of this.unitView.getLayoutAncestors())if(r=a.getSampleFacetTexture(),r)break;if(!r)throw new Error("No facet texture available. This is bug.");wh(this.programInfo,{uSampleFacetTexture:r})});const o=(e.picking??!1)&&this.isPickingParticipant();return s.push(()=>xb(this.viewUniformInfo,{uViewOpacity:this.unitView.getEffectiveOpacity(),uPickingEnabled:o})),this.opaque||e.picking?s.push(()=>i.disable(i.BLEND)):s.push(()=>i.enable(i.BLEND)),s}prepareSampleFacetRendering(e){const t=e.sampleFacetRenderingOptions,i=this.programInfo.uniformSetters.uSampleFacet;if(t&&i){const s=t.locSize?t.locSize.location:0,o=t.locSize?t.locSize.size:1;if(s>1||s+o<0)return!1;const r=t.targetLocSize?t.targetLocSize.location:s,a=t.targetLocSize?t.targetLocSize.size:o;this.gl.uniform4f(i.location,s,o,r,a)}return!0}render(e){}createRenderCallback(e,t){var u;if(!this.bufferInfo)return()=>{};const i=this;let s;const o=(u=this.unitView.getScaleResolution("x"))==null?void 0:u.scale,r=o&&as(o.type),a=["index","locus"].includes(o==null?void 0:o.type)?-1:0,l=[0,0];s=h=>{if(r&&h.xIndex){const f=o.domain(),g=h.xIndex(f[0]+a,f[1],l),p=g[0],_=g[1]-p;_>0&&e(p,_)}else e(h.offset,h.count)};const c=this.rangeMap.get(void 0).count==0?t.facetId:void 0,d=this.rangeMap.get(c);return t.sampleFacetRenderingOptions?function(){d.count&&i.prepareSampleFacetRendering(t)&&s(d)}:function(){d.count&&s(d)}}setViewport(e,t){e=e.flatten();const i=this.unitView.context.devicePixelRatio,s=this.gl,o=this.properties,r=this.glHelper.getLogicalCanvasSize(),a=.5,l=(o.xOffset??0)+a,c=(o.yOffset??0)+a;let d,u=e;if(o.clip!=="never"&&(o.clip||t)){let h=0,f=0,g;if(t){if(u=e.intersect(t).flatten(),!u.isDefined())return!1;g=[e.width/u.width,e.height/u.height],f=Math.max(0,e.y2-t.y2),h=Math.min(0,e.x-t.x)}else g=[1,1];const p=[u.x,r.height-u.y2,u.width,u.height].map(y=>y*i),_=p.map(y=>Math.floor(y)),v=p[0]-_[0],b=p[1]-_[1];s.viewport(..._),s.scissor(..._),s.enable(s.SCISSOR_TEST),d={uViewOffset:[(l+h+v/i)/u.width,-(c+f-b/i)/u.height],uViewScale:g}}else{if(!e.isDefined())return!1;s.viewport(0,0,r.width*i,r.height*i),s.disable(s.SCISSOR_TEST),d={uViewOffset:[(e.x+l)/r.width,(r.height-e.y-c-e.height)/r.height],uViewScale:[e.width/r.width,e.height/r.height]}}return xb(this.viewUniformInfo,{...d,uViewportSize:[e.width,e.height],uDevicePixelRatio:i}),yO(this.gl,this.programInfo,this.viewUniformInfo),!0}findDatumAt(e,t){}}Da=new WeakMap;let Rle=class extends gc{constructor(){super([],JSON.stringify)}get(e){let t=super.get(e);return t===void 0&&(t={offset:0,count:0,xIndex:void 0},super.set(e,t)),t}migrateEntries(e){for(const[t,i]of this.entries())e.has(t)||(i.offset=0,i.count=0,i.xIndex=void 0);for(const[t,i]of e.entries())Object.assign(this.get(t),i)}};function DA(n,e){const t=jae(e);let i=n[e]&&{...n[e]},s=n[t]&&{...n[t]};if(!(Sr(i)||Sr(s))){if(i){if(!zo(n[e]))return;if(s){if(i.type!="quantitative"){const o=(1-(i.band||1))/2;i.band=o,s.band=-o}}else if(i.type=="quantitative")s={datum:0,contributesToScaleDomain:!1};else{s={...i};const o=(1-(i.band??1))/2;i.band=0+o,s.band=1-o}}else i={value:0},s={value:1};n[e]=i,n[t]=s}}function GH(n,e){n.stroke||(e?n.stroke={value:null}:n.stroke={resolutionChannel:"color",...n.color}),Sr(n.stroke)&&n.stroke.value===null&&(n.strokeWidth={value:0}),n.strokeOpacity||(n.strokeOpacity={resolutionChannel:"opacity",...n.opacity})}function KH(n,e){Sr(n.fill)&&n.fill.value===null?n.fillOpacity={value:0}:n.fill||(n.fill={resolutionChannel:"color",...n.color},!e&&!n.fillOpacity&&(n.fillOpacity={value:0})),n.fillOpacity||(e?n.fillOpacity={resolutionChannel:"opacity",...n.opacity}:n.fillOpacity={value:0})}var du,kA,EA;class Mle extends O1{constructor(t){super(t);Oe(this,du);this.augmentDefaultProperties({x2:void 0,y2:void 0,filled:!0,color:"#4c78a8",opacity:1,strokeWidth:3,cornerRadius:0,minWidth:.5,minHeight:.5,minOpacity:1})}getAttributes(){return["uniqueId","facetIndex","x","x2","y","y2","fill","stroke","fillOpacity","strokeOpacity","strokeWidth"]}getSupportedChannels(){return[...super.getSupportedChannels(),"x2","y2","fill","stroke","fillOpacity","strokeOpacity","strokeWidth"]}get opaque(){return WL(this,"opaque",()=>!Le(this,du,kA).call(this)&&!Le(this,du,EA).call(this)&&Sr(this.encoding.fillOpacity)&&this.encoding.fillOpacity.value==1&&this.properties.minOpacity==1)&&this.unitView.getEffectiveOpacity()==1}fixEncoding(t){return DA(t,"x"),DA(t,"y"),GH(t,this.properties.filled),KH(t,this.properties.filled),delete t.color,delete t.opacity,t}onBeforeSampleAnimation(){}onAfterSampleAnimation(){}async initializeGraphics(){await super.initializeGraphics();const t=[];Le(this,du,kA).call(this)&&t.push("ROUNDED_CORNERS"),Le(this,du,EA).call(this)&&t.push("STROKED"),this.createAndLinkShaders(qse,Gse,[Kse,...t.map(i=>"#define "+i)])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const t=this.properties;this.registerMarkUniformValue("uMinWidth",t.minWidth),this.registerMarkUniformValue("uMinHeight",t.minHeight),this.registerMarkUniformValue("uMinOpacity",t.minOpacity),this.registerMarkUniformValue("uCornerRadiusTopRight",t.cornerRadiusTopRight??t.cornerRadius??0),this.registerMarkUniformValue("uCornerRadiusBottomRight",t.cornerRadiusBottomRight??t.cornerRadius??0),this.registerMarkUniformValue("uCornerRadiusTopLeft",t.cornerRadiusTopLeft??t.cornerRadius??0),this.registerMarkUniformValue("uCornerRadiusBottomLeft",t.cornerRadiusBottomLeft??t.cornerRadius??0)}updateGraphicsData(){const t=this.unitView.getCollector();if(!t){console.debug("No collector");return}const i=t.getItemCount(),s=new ple({encoders:this.encoders,attributes:this.getAttributes(),numItems:i});s.addBatches(t.facetBatches);const o=s.toArrays();this.rangeMap.migrateEntries(o.rangeMap),this.updateBufferInfo(o)}prepareRender(t){const i=super.prepareRender(t);return i.push(()=>this.bindOrSetMarkUniformBlock()),i.push(()=>uf(this.gl,this.programInfo,this.vertexArrayInfo)),i}render(t){const i=this.gl;return this.createRenderCallback((s,o)=>{wL(i,this.vertexArrayInfo,i.TRIANGLE_STRIP,o,s)},t)}findDatumAt(t,i){t=Zs(t);const s=this.unitView.getCollector().facetBatches.get(t);if(!s)return;const o=this.encoders,r=o.x.scale.type;if(Kd(r)){const a=o.x.dataAccessor;return s.find(l=>i==a(l))}else{const a=o.x.dataAccessor,l=o.x2.dataAccessor;return s.find(c=>i>=a(c)&&i S.replace("#pragma markUniforms",u.join(` +`));i=i.map(v),e=v(e),t=v(t);const b=[_,a,...i,nF,Hle,[...c].join(` +`),...l,$le,Ule,e],y=[_,a,...i,nF,jle,t],w=this.gl;this.programStatus=Qle(w,this.glHelper.compileShader(w.VERTEX_SHADER,b),this.glHelper.compileShader(w.FRAGMENT_SHADER,y))}finalizeGraphicsInitialization(){const e=this.programStatus.getProgramErrors();if(e){e.detail&&console.warn(e.detail);const t=new Error("Cannot create shader program: "+e.message);throw t.view=this.unitView,t}this.programInfo=Nse(this.gl,this.programStatus.program),delete this.programStatus,this.viewUniformInfo=mO(this.gl,this.programInfo,"View"),this.markUniformInfo=mO(this.gl,this.programInfo,"Mark"),this.gl.useProgram(this.programInfo.program),wh(this.programInfo,{uSampleFacet:[0,1,0,1],uTransitionOffset:0,uZero:0});for(const t of X(this,xa))t();dt(this,xa,void 0)}createMarkUniformSetter(e){const t=this.markUniformInfo.setters[e];if(!t)throw new Error(`Uniform "${e}" not found int the Mark block!`);return i=>{t(i),this.markUniformsAltered=!0,this.unitView.context.animator.requestRender()}}registerMarkUniformValue(e,t,i=s=>s){const s=this.createMarkUniformSetter(e),o=r=>{if(r==null)throw new Error(`Trying to set null/undefined value for uniform: ${e}${js(t)?`Expr: ${t.expr}`:""}`);s(r)};if(js(t)){const r=this.unitView.paramMediator.createExpression(t.expr),a=()=>o(i(r(null)));r.addListener(a),a()}else o(i(t))}deleteGraphicsData(){const e=this.gl;if(this.vertexArrayInfo&&(this.gl.bindVertexArray(null),e.deleteVertexArray(this.vertexArrayInfo.vertexArrayObject),this.vertexArrayInfo=void 0),this.bufferInfo){for(let t=0;t<8;t++)e.disableVertexAttribArray(t);Object.values(this.bufferInfo.attribs).forEach(t=>this.gl.deleteBuffer(t.buffer)),this.bufferInfo.indices&&this.gl.deleteBuffer(this.bufferInfo.indices),this.bufferInfo=void 0}}updateBufferInfo(e){if(this.gl.bindVertexArray(null),this.bufferInfo&&e.vertexCount<=this.bufferInfo.allocatedVertices)for(const[t,i]of Object.entries(e.arrays))i.data&&Ute(this.gl,this.bufferInfo.attribs[t],i.data,0);else{this.deleteGraphicsData(),this.bufferInfo=Gte(this.gl,e.arrays,{numElements:e.vertexCount}),this.bufferInfo.allocatedVertices=e.allocatedVertices;for(const[t,i]of Object.entries(e.arrays))this.bytesPerElement.set(t,i.data.BYTES_PER_ELEMENT)}}get glHelper(){return this.getContext().glHelper}get gl(){return this.glHelper.gl}onBeforeSampleAnimation(){}onAfterSampleAnimation(){}isReady(){return this.bufferInfo&&this.programInfo}isPickingParticipant(){if(this.properties.tooltip===null&&!this.unitView.paramMediator.hasPointSelections())return!1;for(const e of this.unitView.getLayoutAncestors())if(!e.isPickingSupported())return!1;return!0}bindOrSetMarkUniformBlock(){this.markUniformsAltered?(_O(this.gl,this.programInfo,this.markUniformInfo),this.markUniformsAltered=!1):oz(this.gl,this.programInfo,this.markUniformInfo)}prepareRender(e){const t=this.glHelper,i=this.gl,s=[];s.push(()=>{this.vertexArrayInfo||(this.vertexArrayInfo=Qse(this.gl,this.programInfo,this.bufferInfo)),i.useProgram(this.programInfo.program)});for(const[r,a]of Object.entries(this.encoding))if(Vo(a)){const l=Vo(a)&&a.resolutionChannel||r;if(Nb(l)){const c=this.unitView.getScaleResolution(l),d=t.rangeTextures.get(c);d&&s.push(()=>wh(this.programInfo,{[yA+r]:d}))}}s.push(...this.selectionTextureOps),this.getSampleFacetMode()==oF&&s.push(()=>{let r;for(const a of this.unitView.getLayoutAncestors())if(r=a.getSampleFacetTexture(),r)break;if(!r)throw new Error("No facet texture available. This is bug.");wh(this.programInfo,{uSampleFacetTexture:r})});const o=(e.picking??!1)&&this.isPickingParticipant();return s.push(()=>Db(this.viewUniformInfo,{uViewOpacity:this.unitView.getEffectiveOpacity(),uPickingEnabled:o})),this.opaque||e.picking?s.push(()=>i.disable(i.BLEND)):s.push(()=>i.enable(i.BLEND)),s}prepareSampleFacetRendering(e){const t=e.sampleFacetRenderingOptions,i=this.programInfo.uniformSetters.uSampleFacet;if(t&&i){const s=t.locSize?t.locSize.location:0,o=t.locSize?t.locSize.size:1;if(s>1||s+o<0)return!1;const r=t.targetLocSize?t.targetLocSize.location:s,a=t.targetLocSize?t.targetLocSize.size:o;this.gl.uniform4f(i.location,s,o,r,a)}return!0}render(e){}createRenderCallback(e,t){var u;if(!this.bufferInfo)return()=>{};const i=this;let s;const o=(u=this.unitView.getScaleResolution("x"))==null?void 0:u.scale,r=o&&os(o.type),a=["index","locus"].includes(o==null?void 0:o.type)?-1:0,l=[0,0];s=h=>{if(r&&h.xIndex){const f=o.domain(),g=h.xIndex(f[0]+a,f[1],l),p=g[0],_=g[1]-p;_>0&&e(p,_)}else e(h.offset,h.count)};const c=this.rangeMap.get(void 0).count==0?t.facetId:void 0,d=this.rangeMap.get(c);return t.sampleFacetRenderingOptions?function(){d.count&&i.prepareSampleFacetRendering(t)&&s(d)}:function(){d.count&&s(d)}}setViewport(e,t){e=e.flatten();const i=this.unitView.context.devicePixelRatio,s=this.gl,o=this.properties,r=this.glHelper.getLogicalCanvasSize(),a=.5,l=(o.xOffset??0)+a,c=(o.yOffset??0)+a;let d,u=e;if(o.clip!=="never"&&(o.clip||t)){let h=0,f=0,g;if(t){if(u=e.intersect(t).flatten(),!u.isDefined())return!1;g=[e.width/u.width,e.height/u.height],f=Math.max(0,e.y2-t.y2),h=Math.min(0,e.x-t.x)}else g=[1,1];const p=[u.x,r.height-u.y2,u.width,u.height].map(y=>y*i),_=p.map(y=>Math.floor(y)),v=p[0]-_[0],b=p[1]-_[1];s.viewport(..._),s.scissor(..._),s.enable(s.SCISSOR_TEST),d={uViewOffset:[(l+h+v/i)/u.width,-(c+f-b/i)/u.height],uViewScale:g}}else{if(!e.isDefined())return!1;s.viewport(0,0,r.width*i,r.height*i),s.disable(s.SCISSOR_TEST),d={uViewOffset:[(e.x+l)/r.width,(r.height-e.y-c-e.height)/r.height],uViewScale:[e.width/r.width,e.height/r.height]}}return Db(this.viewUniformInfo,{...d,uViewportSize:[e.width,e.height],uDevicePixelRatio:i}),_O(this.gl,this.programInfo,this.viewUniformInfo),!0}findDatumAt(e,t){}}xa=new WeakMap;let tce=class extends gc{constructor(){super([],JSON.stringify)}get(e){let t=super.get(e);return t===void 0&&(t={offset:0,count:0,xIndex:void 0},super.set(e,t)),t}migrateEntries(e){for(const[t,i]of this.entries())e.has(t)||(i.offset=0,i.count=0,i.xIndex=void 0);for(const[t,i]of e.entries())Object.assign(this.get(t),i)}};function xA(n,e){const t=fle(e);let i=n[e]&&{...n[e]},s=n[t]&&{...n[t]};if(!(Cr(i)||Cr(s))){if(i){if(!Vo(n[e]))return;if(s){if(i.type!="quantitative"){const o=(1-(i.band||1))/2;i.band=o,s.band=-o}}else if(i.type=="quantitative")s={datum:0,contributesToScaleDomain:!1};else{s={...i};const o=(1-(i.band??1))/2;i.band=0+o,s.band=1-o}}else i={value:0},s={value:1};n[e]=i,n[t]=s}}function qH(n,e){n.stroke||(e?n.stroke={value:null}:n.stroke={resolutionChannel:"color",...n.color}),Cr(n.stroke)&&n.stroke.value===null&&(n.strokeWidth={value:0}),n.strokeOpacity||(n.strokeOpacity={resolutionChannel:"opacity",...n.opacity})}function GH(n,e){Cr(n.fill)&&n.fill.value===null?n.fillOpacity={value:0}:n.fill||(n.fill={resolutionChannel:"color",...n.color},!e&&!n.fillOpacity&&(n.fillOpacity={value:0})),n.fillOpacity||(e?n.fillOpacity={resolutionChannel:"opacity",...n.opacity}:n.fillOpacity={value:0})}var uu,LA,DA;class ice extends B1{constructor(t){super(t);Pe(this,uu);this.augmentDefaultProperties({x2:void 0,y2:void 0,filled:!0,color:"#4c78a8",opacity:1,strokeWidth:3,cornerRadius:0,minWidth:.5,minHeight:.5,minOpacity:1})}getAttributes(){return["uniqueId","facetIndex","x","x2","y","y2","fill","stroke","fillOpacity","strokeOpacity","strokeWidth"]}getSupportedChannels(){return[...super.getSupportedChannels(),"x2","y2","fill","stroke","fillOpacity","strokeOpacity","strokeWidth"]}get opaque(){return NL(this,"opaque",()=>!xe(this,uu,LA).call(this)&&!xe(this,uu,DA).call(this)&&Cr(this.encoding.fillOpacity)&&this.encoding.fillOpacity.value==1&&this.properties.minOpacity==1)&&this.unitView.getEffectiveOpacity()==1}fixEncoding(t){return xA(t,"x"),xA(t,"y"),qH(t,this.properties.filled),GH(t,this.properties.filled),delete t.color,delete t.opacity,t}onBeforeSampleAnimation(){}onAfterSampleAnimation(){}async initializeGraphics(){await super.initializeGraphics();const t=[];xe(this,uu,LA).call(this)&&t.push("ROUNDED_CORNERS"),xe(this,uu,DA).call(this)&&t.push("STROKED"),this.createAndLinkShaders(noe,soe,[ooe,...t.map(i=>"#define "+i)])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const t=this.properties;this.registerMarkUniformValue("uMinWidth",t.minWidth),this.registerMarkUniformValue("uMinHeight",t.minHeight),this.registerMarkUniformValue("uMinOpacity",t.minOpacity),this.registerMarkUniformValue("uCornerRadiusTopRight",t.cornerRadiusTopRight??t.cornerRadius??0),this.registerMarkUniformValue("uCornerRadiusBottomRight",t.cornerRadiusBottomRight??t.cornerRadius??0),this.registerMarkUniformValue("uCornerRadiusTopLeft",t.cornerRadiusTopLeft??t.cornerRadius??0),this.registerMarkUniformValue("uCornerRadiusBottomLeft",t.cornerRadiusBottomLeft??t.cornerRadius??0)}updateGraphicsData(){const t=this.unitView.getCollector();if(!t){console.debug("No collector");return}const i=t.getItemCount(),s=new Fle({encoders:this.encoders,attributes:this.getAttributes(),numItems:i});s.addBatches(t.facetBatches);const o=s.toArrays();this.rangeMap.migrateEntries(o.rangeMap),this.updateBufferInfo(o)}prepareRender(t){const i=super.prepareRender(t);return i.push(()=>this.bindOrSetMarkUniformBlock()),i.push(()=>gf(this.gl,this.programInfo,this.vertexArrayInfo)),i}render(t){const i=this.gl;return this.createRenderCallback((s,o)=>{gL(i,this.vertexArrayInfo,i.TRIANGLE_STRIP,o,s)},t)}findDatumAt(t,i){t=Ks(t);const s=this.unitView.getCollector().facetBatches.get(t);if(!s)return;const o=this.encoders,r=o.x.scale.type;if(Yd(r)){const a=o.x.dataAccessor;return s.find(l=>i==a(l))}else{const a=o.x.dataAccessor,l=o.x2.dataAccessor;return s.find(c=>i>=a(c)&&i 0);this.augmentDefaultProperties({x:.5,y:.5,color:"#4c78a8",filled:!0,opacity:1,size:100,semanticScore:0,shape:"circle",strokeWidth:2,fillGradientStrength:0,dx:0,dy:0,angle:0,sampleFacetPadding:.1,semanticZoomFraction:.02,minPickingSize:2});const i=this.properties.semanticZoomFraction;if(i!=null)if(Gs(i)){const s=this.unitView.paramMediator.createExpression(i.expr);s.addListener(()=>this.getContext().animator.requestRender()),ut(this,Fp,s)}else ut(this,Fp,()=>i)}getAttributes(){return["uniqueId","facetIndex","x","y","size","semanticScore","shape","strokeWidth","dx","dy","fill","stroke","fillOpacity","strokeOpacity","angle"]}getSupportedChannels(){return[...super.getSupportedChannels(),"size","semanticScore","shape","strokeWidth","dx","dy","fill","stroke","fillOpacity","strokeOpacity","angle"]}getDefaultEncoding(){return{...super.getDefaultEncoding(),...Wle}}fixEncoding(t){return GH(t,this.properties.filled),KH(t,this.properties.filled),delete t.color,delete t.opacity,t}initializeData(){var i,s;super.initializeData();const t=(s=(i=this.encoders.semanticScore)==null?void 0:i.dataAccessor)==null?void 0:s.asNumberAccessor();t&&(this.sampledSemanticScores=Float32Array.from(Ble(1e4,this.unitView.getCollector().getData(),t)),this.sampledSemanticScores.sort((o,r)=>o-r))}async initializeGraphics(){await super.initializeGraphics(),this.createAndLinkShaders(Ple,Ole,[Fle])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const t=this.properties;this.registerMarkUniformValue("uInwardStroke",t.inwardStroke,i=>!!i),this.registerMarkUniformValue("uGradientStrength",t.fillGradientStrength),this.registerMarkUniformValue("uMinPickingSize",t.minPickingSize)}updateGraphicsData(){const t=this.unitView.getCollector();if(!t){console.debug("No collector");return}const i=t.getItemCount(),s=new _le({encoders:this.encoders,attributes:this.getAttributes(),numItems:Math.max(i,this.properties.minBufferSize||0)});s.addBatches(t.facetBatches);const o=s.toArrays();this.rangeMap.migrateEntries(o.rangeMap),this.updateBufferInfo(o)}getSemanticThreshold(){if(this.sampledSemanticScores){const t=Math.max(0,1-X(this,Fp).call(this)*this.unitView.getZoomLevel());if(t<=0)return-1/0;if(t>=1)return 1/0;{const i=this.sampledSemanticScores;return QW(i,t)}}else return-1}prepareRender(t){const i=super.prepareRender(t);return i.push(()=>{xb(this.markUniformInfo,{uScaleFactor:Le(this,Kx,ZH).call(this),uSemanticThreshold:this.getSemanticThreshold()}),this.markUniformsAltered=!0}),i.push(()=>this.bindOrSetMarkUniformBlock()),i.push(()=>uf(this.gl,this.programInfo,this.vertexArrayInfo)),i}render(t){const i=this.gl;return this.createRenderCallback((s,o)=>{o&&wL(i,this.vertexArrayInfo,i.POINTS,o,s)},t)}}Fp=new WeakMap,Kx=new WeakSet,ZH=function(){const t=Math.pow(2,this.properties.geometricZoomBound||0);return Math.pow(Math.min(1,this.unitView.getZoomLevel()/t),1/3)};const zle=`// Line caps +`;class KH extends Wn{constructor(e){super(e),this.params=e,this.k=e.size||500,this.reset()}reset(){super.reset(),this.reservoir=[],this.W=void 0,this.ingester=this._initialIngester}_initialIngester(e){this.reservoir.push(e),this.reservoir.length==this.k&&(this.W=Math.exp(Math.log(Math.random())/this.k),this.i=this.k,this.next=this.i,this.ingester=this._finalIngester,this._setNextStop())}_finalIngester(e){++this.i==this.next&&(this.reservoir[Math.floor(Math.random()*this.k)]=e,this.W*=Math.exp(Math.log(Math.random())/this.k),this._setNextStop())}_setNextStop(){this.next+=Math.floor(Math.log(Math.random())/Math.log(1-this.W))+1}handle(e){this.ingester(e)}complete(){for(const e of this.reservoir)this._propagate(e);super.complete()}}function rce(n,e,t){const i=new KH({type:"sample",size:n});for(const s of e)i.handle(t(s));return i.complete(),i.reservoir}const ace={};var Wp,zx,YH;class lce extends B1{constructor(t){super(t);Pe(this,zx);Pe(this,Wp,()=>0);this.augmentDefaultProperties({x:.5,y:.5,color:"#4c78a8",filled:!0,opacity:1,size:100,semanticScore:0,shape:"circle",strokeWidth:2,fillGradientStrength:0,dx:0,dy:0,angle:0,sampleFacetPadding:.1,semanticZoomFraction:.02,minPickingSize:2});const i=this.properties.semanticZoomFraction;if(i!=null)if(js(i)){const s=this.unitView.paramMediator.createExpression(i.expr);s.addListener(()=>this.getContext().animator.requestRender()),dt(this,Wp,s)}else dt(this,Wp,()=>i)}getAttributes(){return["uniqueId","facetIndex","x","y","size","semanticScore","shape","strokeWidth","dx","dy","fill","stroke","fillOpacity","strokeOpacity","angle"]}getSupportedChannels(){return[...super.getSupportedChannels(),"size","semanticScore","shape","strokeWidth","dx","dy","fill","stroke","fillOpacity","strokeOpacity","angle"]}getDefaultEncoding(){return{...super.getDefaultEncoding(),...ace}}fixEncoding(t){return qH(t,this.properties.filled),GH(t,this.properties.filled),delete t.color,delete t.opacity,t}initializeData(){var i,s;super.initializeData();const t=(s=(i=this.encoders.semanticScore)==null?void 0:i.dataAccessor)==null?void 0:s.asNumberAccessor();t&&(this.sampledSemanticScores=Float32Array.from(rce(1e4,this.unitView.getCollector().getData(),t)),this.sampledSemanticScores.sort((o,r)=>o-r))}async initializeGraphics(){await super.initializeGraphics(),this.createAndLinkShaders(nce,sce,[oce])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const t=this.properties;this.registerMarkUniformValue("uInwardStroke",t.inwardStroke,i=>!!i),this.registerMarkUniformValue("uGradientStrength",t.fillGradientStrength),this.registerMarkUniformValue("uMinPickingSize",t.minPickingSize)}updateGraphicsData(){const t=this.unitView.getCollector();if(!t){console.debug("No collector");return}const i=t.getItemCount(),s=new Wle({encoders:this.encoders,attributes:this.getAttributes(),numItems:Math.max(i,this.properties.minBufferSize||0)});s.addBatches(t.facetBatches);const o=s.toArrays();this.rangeMap.migrateEntries(o.rangeMap),this.updateBufferInfo(o)}getSemanticThreshold(){if(this.sampledSemanticScores){const t=Math.max(0,1-X(this,Wp).call(this)*this.unitView.getZoomLevel());if(t<=0)return-1/0;if(t>=1)return 1/0;{const i=this.sampledSemanticScores;return XW(i,t)}}else return-1}prepareRender(t){const i=super.prepareRender(t);return i.push(()=>{Db(this.markUniformInfo,{uScaleFactor:xe(this,zx,YH).call(this),uSemanticThreshold:this.getSemanticThreshold()}),this.markUniformsAltered=!0}),i.push(()=>this.bindOrSetMarkUniformBlock()),i.push(()=>gf(this.gl,this.programInfo,this.vertexArrayInfo)),i}render(t){const i=this.gl;return this.createRenderCallback((s,o)=>{o&&gL(i,this.vertexArrayInfo,i.POINTS,o,s)},t)}}Wp=new WeakMap,zx=new WeakSet,YH=function(){const t=Math.pow(2,this.properties.geometricZoomBound||0);return Math.pow(Math.min(1,this.unitView.getZoomLevel()/t),1/3)};const cce=`// Line caps const int BUTT = 0; const int SQUARE = 1; const int ROUND = 2; @@ -2001,7 +1802,7 @@ void main(void) { setupPicking(); } -`,Hle=`// Line ending +`,dce=`// Line ending const int BUTT = 0; const int SQUARE = 1; const int ROUND = 2; @@ -2050,7 +1851,7 @@ void main(void) { fragColor = vPickingColor; } } -`,$le=`layout(std140) uniform Mark { +`,uce=`layout(std140) uniform Mark { /** Minimum rule length in pixels */ uniform mediump float uMinLength; @@ -2060,7 +1861,7 @@ void main(void) { #pragma markUniforms }; -`;class Ule extends O1{constructor(e){super(e),this.dashTextureSize=0,this.augmentDefaultProperties({x2:void 0,y2:void 0,size:1,color:"black",opacity:1,minLength:0,strokeDash:null,strokeDashOffset:0,strokeCap:"butt"})}getAttributes(){return["uniqueId","facetIndex","x","x2","y","y2","size","color","opacity"]}getSupportedChannels(){return[...super.getSupportedChannels(),"x2","y2","size"]}fixEncoding(e){if(!(e.x&&e.y&&e.x2&&e.y2))if(e.x&&e.x2&&!e.y)e.y={value:.5},e.y2=e.y;else if(e.y&&e.y2&&!e.x)e.x={value:.5},e.x2=e.x;else if(e.x&&!e.y)e.y={value:0},e.y2={value:1},e.x2=e.x;else if(e.y&&!e.x)e.x={value:0},e.x2={value:1},e.y2=e.y;else if(e.x&&e.y&&e.y2)e.x2=e.x;else if(e.y&&e.x&&e.x2)e.y2=e.y;else if(e.y&&e.x)if(!e.x2&&zo(e.y)&&e.y.type=="quantitative")e.x2=e.x,e.y2={datum:0};else if(!e.y2&&zo(e.x)&&e.x.type=="quantitative")e.y2=e.y,e.x2={datum:0};else throw new Error("A bug!");else throw new Error("Invalid x and y encodings for rule mark: "+JSON.stringify(e));return e}async initializeGraphics(){await super.initializeGraphics();const e=this.gl,t=jle(this.properties.strokeDash);this.dashTexture=Sb(e,{level:0,mag:e.NEAREST,min:e.NEAREST,internalFormat:e.R8,format:e.RED,src:t,height:1}),this.dashTextureSize=t.length,this.createAndLinkShaders(zle,Hle,[$le])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const e=this.properties;this.registerMarkUniformValue("uMinLength",e.minLength),this.registerMarkUniformValue("uStrokeCap",e.strokeCap??"butt",t=>["butt","square","round"].indexOf(t)),xb(this.markUniformInfo,{uDashTextureSize:+this.dashTextureSize}),this.markUniformsAltered=!0}updateGraphicsData(){const e=this.unitView.getCollector();if(!e){console.debug("No collector");return}const t=e.getItemCount(),i=new mle({encoders:this.encoders,attributes:this.getAttributes(),numItems:Math.max(t,this.properties.minBufferSize||0)});i.addBatches(e.facetBatches);const s=i.toArrays();this.rangeMap.migrateEntries(s.rangeMap),this.updateBufferInfo(s)}prepareRender(e){const t=super.prepareRender(e);return t.push(()=>this.bindOrSetMarkUniformBlock()),t.push(()=>wh(this.programInfo,{uDashTexture:this.dashTexture})),t.push(()=>uf(this.gl,this.programInfo,this.vertexArrayInfo)),t}render(e){const t=this.gl;return this.createRenderCallback((i,s)=>wL(t,this.vertexArrayInfo,t.TRIANGLE_STRIP,s,i),e)}}function jle(n){if(!n)return new Uint8Array(0);if(n.length==0||n.length%2||n.findIndex(o=>Math.round(o)!=o||o<1||o>1e3)>=0)throw new Error("Invalid stroke dash pattern: "+JSON.stringify(n));const e=n.reduce((o,r)=>o+r),t=new Uint8Array(e);let i=!0,s=0;for(let o of n){for(;o;)t[s++]=i&&255||0,o--;i=!i}return t}const qle=`out vec4 vColor; +`;class hce extends B1{constructor(e){super(e),this.dashTextureSize=0,this.augmentDefaultProperties({x2:void 0,y2:void 0,size:1,color:"black",opacity:1,minLength:0,strokeDash:null,strokeDashOffset:0,strokeCap:"butt"})}getAttributes(){return["uniqueId","facetIndex","x","x2","y","y2","size","color","opacity"]}getSupportedChannels(){return[...super.getSupportedChannels(),"x2","y2","size"]}fixEncoding(e){if(!(e.x&&e.y&&e.x2&&e.y2))if(e.x&&e.x2&&!e.y)e.y={value:.5},e.y2=e.y;else if(e.y&&e.y2&&!e.x)e.x={value:.5},e.x2=e.x;else if(e.x&&!e.y)e.y={value:0},e.y2={value:1},e.x2=e.x;else if(e.y&&!e.x)e.x={value:0},e.x2={value:1},e.y2=e.y;else if(e.x&&e.y&&e.y2)e.x2=e.x;else if(e.y&&e.x&&e.x2)e.y2=e.y;else if(e.y&&e.x)if(!e.x2&&Vo(e.y)&&e.y.type=="quantitative")e.x2=e.x,e.y2={datum:0};else if(!e.y2&&Vo(e.x)&&e.x.type=="quantitative")e.y2=e.y,e.x2={datum:0};else throw new Error("A bug!");else throw new Error("Invalid x and y encodings for rule mark: "+JSON.stringify(e));return e}async initializeGraphics(){await super.initializeGraphics();const e=this.gl,t=fce(this.properties.strokeDash);this.dashTexture=Lb(e,{level:0,mag:e.NEAREST,min:e.NEAREST,internalFormat:e.R8,format:e.RED,src:t,height:1}),this.dashTextureSize=t.length,this.createAndLinkShaders(cce,dce,[uce])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const e=this.properties;this.registerMarkUniformValue("uMinLength",e.minLength),this.registerMarkUniformValue("uStrokeCap",e.strokeCap??"butt",t=>["butt","square","round"].indexOf(t)),Db(this.markUniformInfo,{uDashTextureSize:+this.dashTextureSize}),this.markUniformsAltered=!0}updateGraphicsData(){const e=this.unitView.getCollector();if(!e){console.debug("No collector");return}const t=e.getItemCount(),i=new Ble({encoders:this.encoders,attributes:this.getAttributes(),numItems:Math.max(t,this.properties.minBufferSize||0)});i.addBatches(e.facetBatches);const s=i.toArrays();this.rangeMap.migrateEntries(s.rangeMap),this.updateBufferInfo(s)}prepareRender(e){const t=super.prepareRender(e);return t.push(()=>this.bindOrSetMarkUniformBlock()),t.push(()=>wh(this.programInfo,{uDashTexture:this.dashTexture})),t.push(()=>gf(this.gl,this.programInfo,this.vertexArrayInfo)),t}render(e){const t=this.gl;return this.createRenderCallback((i,s)=>gL(t,this.vertexArrayInfo,t.TRIANGLE_STRIP,s,i),e)}}function fce(n){if(!n)return new Uint8Array(0);if(n.length==0||n.length%2||n.findIndex(o=>Math.round(o)!=o||o<1||o>1e3)>=0)throw new Error("Invalid stroke dash pattern: "+JSON.stringify(n));const e=n.reduce((o,r)=>o+r),t=new Uint8Array(e);let i=!0,s=0;for(let o of n){for(;o;)t[s++]=i&&255||0,o--;i=!i}return t}const gce=`out vec4 vColor; /** Stroke width */ out float vSize; @@ -2264,7 +2065,7 @@ void main(void) { setupPicking(); } -`,Gle=`in vec4 vColor; +`,pce=`in vec4 vColor; in float vSize; in float vNormalLengthInPixels; in float vGamma; @@ -2285,7 +2086,7 @@ void main(void) { fragColor = vPickingColor; } } -`,Kle=`layout(std140) uniform Mark { +`,mce=`layout(std140) uniform Mark { uniform float uArcHeightFactor; /** Make very small arcs visible */ @@ -2308,7 +2109,7 @@ void main(void) { #pragma markUniforms }; -`,Yle=["arc","dome","diagonal","line"],Zle=["vertical","horizontal"];class Xle extends O1{constructor(e){super(e),this.augmentDefaultProperties({x:0,x2:void 0,y:0,y2:void 0,size:1,color:"black",opacity:1,segments:101,arcHeightFactor:1,minArcHeight:1.5,minPickingSize:3,clampApex:!1,maxChordLength:5e4,arcFadingDistance:!1,noFadingOnPointSelection:!0,linkShape:"arc",orient:"vertical"}),this._baseInstanceExt=this.gl.getExtension("WEBGL_draw_instanced_base_vertex_base_instance")}getAttributes(){return["uniqueId","facetIndex","x","x2","y","y2","size","color","opacity"]}getSupportedChannels(){return[...super.getSupportedChannels(),"x2","y2","size"]}fixEncoding(e){return e.x2||(zo(e.x)?e.x2={datum:0}:e.x2=e.x),e.y2||(zo(e.y)?e.y2={datum:0}:e.y2=e.y),e}async initializeGraphics(){await super.initializeGraphics(),this.createAndLinkShaders(qle,Gle,[Kle])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const e=this.properties;this.registerMarkUniformValue("uArcFadingDistance",e.arcFadingDistance,t=>t||[0,0]),this.registerMarkUniformValue("uArcHeightFactor",e.arcHeightFactor),this.registerMarkUniformValue("uMinArcHeight",e.minArcHeight),this.registerMarkUniformValue("uMinPickingSize",e.minPickingSize),this.registerMarkUniformValue("uShape",e.linkShape,t=>Yle.indexOf(t)),this.registerMarkUniformValue("uOrient",e.orient,t=>Zle.indexOf(t)),this.registerMarkUniformValue("uClampApex",e.clampApex,t=>!!t),this.registerMarkUniformValue("uMaxChordLength",e.maxChordLength),this.registerMarkUniformValue("uSegmentBreaks",e.segments,t=>t),this.registerMarkUniformValue("uNoFadingOnPointSelection",e.noFadingOnPointSelection,t=>!!t)}updateGraphicsData(){const e=this.unitView.getCollector();if(!e){console.debug("No collector");return}const t=e.getItemCount(),i=new ble({encoders:this.encoders,attributes:this.getAttributes(),numItems:t});i.addBatches(e.facetBatches);const s=i.toArrays();this.rangeMap.migrateEntries(s.rangeMap),this.arrays=Object.fromEntries(Object.entries(s.arrays).map(([o,r])=>[o,{...r,data:void 0}])),this.updateBufferInfo(s)}prepareRender(e){const t=super.prepareRender(e);return t.push(()=>this.bindOrSetMarkUniformBlock()),this._baseInstanceExt?t.push(()=>uf(this.gl,this.programInfo,this.vertexArrayInfo)):t.push(()=>this.gl.bindVertexArray(null)),t}render(e){const t=this.gl,i=()=>(this.markUniformInfo.uniforms.uSegmentBreaks[0]+1)*2;return this._baseInstanceExt?this.createRenderCallback((s,o)=>{this._baseInstanceExt.drawArraysInstancedBaseInstanceWEBGL(t.TRIANGLE_STRIP,0,i(),o,s)},e):this.createRenderCallback((s,o)=>{for(const r of Object.entries(this.bufferInfo.attribs)){const[a,l]=r;l.buffer&&l.numComponents&&l.divisor&&(l.offset=s*this.arrays[a].numComponents*this.bytesPerElement.get(a))}uf(t,this.programInfo,this.bufferInfo),t.drawArraysInstanced(t.TRIANGLE_STRIP,0,i(),o)},e)}}const Qle=`in mediump vec2 vertexCoord; +`,_ce=["arc","dome","diagonal","line"],bce=["vertical","horizontal"];class vce extends B1{constructor(e){super(e),this.augmentDefaultProperties({x:0,x2:void 0,y:0,y2:void 0,size:1,color:"black",opacity:1,segments:101,arcHeightFactor:1,minArcHeight:1.5,minPickingSize:3,clampApex:!1,maxChordLength:5e4,arcFadingDistance:!1,noFadingOnPointSelection:!0,linkShape:"arc",orient:"vertical"}),this._baseInstanceExt=this.gl.getExtension("WEBGL_draw_instanced_base_vertex_base_instance")}getAttributes(){return["uniqueId","facetIndex","x","x2","y","y2","size","color","opacity"]}getSupportedChannels(){return[...super.getSupportedChannels(),"x2","y2","size"]}fixEncoding(e){return e.x2||(Vo(e.x)?e.x2={datum:0}:e.x2=e.x),e.y2||(Vo(e.y)?e.y2={datum:0}:e.y2=e.y),e}async initializeGraphics(){await super.initializeGraphics(),this.createAndLinkShaders(gce,pce,[mce])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const e=this.properties;this.registerMarkUniformValue("uArcFadingDistance",e.arcFadingDistance,t=>t||[0,0]),this.registerMarkUniformValue("uArcHeightFactor",e.arcHeightFactor),this.registerMarkUniformValue("uMinArcHeight",e.minArcHeight),this.registerMarkUniformValue("uMinPickingSize",e.minPickingSize),this.registerMarkUniformValue("uShape",e.linkShape,t=>_ce.indexOf(t)),this.registerMarkUniformValue("uOrient",e.orient,t=>bce.indexOf(t)),this.registerMarkUniformValue("uClampApex",e.clampApex,t=>!!t),this.registerMarkUniformValue("uMaxChordLength",e.maxChordLength),this.registerMarkUniformValue("uSegmentBreaks",e.segments,t=>t),this.registerMarkUniformValue("uNoFadingOnPointSelection",e.noFadingOnPointSelection,t=>!!t)}updateGraphicsData(){const e=this.unitView.getCollector();if(!e){console.debug("No collector");return}const t=e.getItemCount(),i=new Vle({encoders:this.encoders,attributes:this.getAttributes(),numItems:t});i.addBatches(e.facetBatches);const s=i.toArrays();this.rangeMap.migrateEntries(s.rangeMap),this.arrays=Object.fromEntries(Object.entries(s.arrays).map(([o,r])=>[o,{...r,data:void 0}])),this.updateBufferInfo(s)}prepareRender(e){const t=super.prepareRender(e);return t.push(()=>this.bindOrSetMarkUniformBlock()),this._baseInstanceExt?t.push(()=>gf(this.gl,this.programInfo,this.vertexArrayInfo)):t.push(()=>this.gl.bindVertexArray(null)),t}render(e){const t=this.gl,i=()=>(this.markUniformInfo.uniforms.uSegmentBreaks[0]+1)*2;return this._baseInstanceExt?this.createRenderCallback((s,o)=>{this._baseInstanceExt.drawArraysInstancedBaseInstanceWEBGL(t.TRIANGLE_STRIP,0,i(),o,s)},e):this.createRenderCallback((s,o)=>{for(const r of Object.entries(this.bufferInfo.attribs)){const[a,l]=r;l.buffer&&l.numComponents&&l.divisor&&(l.offset=s*this.arrays[a].numComponents*this.bytesPerElement.get(a))}gf(t,this.programInfo,this.bufferInfo),t.drawArraysInstanced(t.TRIANGLE_STRIP,0,i(),o)},e)}}const yce=`in mediump vec2 vertexCoord; in lowp vec2 textureCoord; // Width of the text (all letters) @@ -2537,7 +2338,7 @@ void main(void) { setupPicking(); } -`,Jle=`uniform sampler2D uTexture; +`,wce=`uniform sampler2D uTexture; in vec2 vTexCoord; in float vEdgeFadeOpacity; @@ -2578,7 +2379,7 @@ void main() { fragColor = vPickingColor; } } -`,ece=`layout(std140) uniform Mark { +`,Cce=`layout(std140) uniform Mark { uniform mediump float uSdfNumerator; uniform mediump vec2 uD; // dx & dy @@ -2600,7 +2401,7 @@ void main() { #pragma markUniforms }; -`,tce={left:-1,center:0,right:1},ice={top:-1,middle:0,bottom:1,alphabetic:1};class nce extends O1{constructor(e){super(e),this.augmentDefaultProperties({x:.5,y:.5,x2:void 0,y2:void 0,text:"",size:11,color:"black",opacity:1,font:void 0,fontStyle:void 0,fontWeight:void 0,align:"center",baseline:"middle",dx:0,dy:0,angle:0,fitToBand:!1,squeeze:!0,paddingX:0,paddingY:0,flushX:!0,flushY:!0,logoLetters:!1,viewportEdgeFadeWidthTop:0,viewportEdgeFadeWidthRight:0,viewportEdgeFadeWidthBottom:0,viewportEdgeFadeWidthLeft:0,viewportEdgeFadeDistanceTop:-1/0,viewportEdgeFadeDistanceRight:-1/0,viewportEdgeFadeDistanceBottom:-1/0,viewportEdgeFadeDistanceLeft:-1/0}),this.font=this.properties.font?e.context.fontManager.getFont(this.properties.font,this.properties.fontStyle,this.properties.fontWeight):e.context.fontManager.getDefaultFont(),this.setupExprRefsNeedingGraphicsUpdate(["text","fitToBand","logoLetters"])}getAttributes(){return["uniqueId","facetIndex","x","x2","y","y2","color","size","opacity","angle"]}getSupportedChannels(){return[...super.getSupportedChannels(),"x2","y2","size","text","angle"]}fixEncoding(e){for(const t of Zm)this.properties.fitToBand&&DA(e,t);return e}async initializeGraphics(){await super.initializeGraphics(),this.createAndLinkShaders(Qle,Jle,[ece])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const e=this.properties;this.registerMarkUniformValue("uSdfNumerator",{expr:"devicePixelRatio"},t=>{let i=.35;return this.properties.logoLetters&&(i/=2),this.font.metrics.common.base/(t/i)}),this.registerMarkUniformValue("uPaddingX",e.paddingX),this.registerMarkUniformValue("uPaddingY",e.paddingY),this.registerMarkUniformValue("uFlushX",e.flushX,t=>!!t),this.registerMarkUniformValue("uFlushY",e.flushY,t=>!!t),this.registerMarkUniformValue("uSqueeze",e.squeeze,t=>!!t),xb(this.markUniformInfo,{uAlign:[tce[e.align],ice[e.baseline]],uD:[e.dx,-e.dy],uLogoLetter:!!e.logoLetters,uViewportEdgeFadeWidth:[e.viewportEdgeFadeWidthTop,e.viewportEdgeFadeWidthRight,e.viewportEdgeFadeWidthBottom,e.viewportEdgeFadeWidthLeft],uViewportEdgeFadeDistance:[e.viewportEdgeFadeDistanceTop,e.viewportEdgeFadeDistanceRight,e.viewportEdgeFadeDistanceBottom,e.viewportEdgeFadeDistanceLeft]})}updateGraphicsData(){const e=this.unitView.getCollector();if(!e){console.debug("No collector");return}const t=e.getData(),i=this.encoding,s=this.encoders.text;let o=0;const r="format"in i.text?Ts(i.text.format):c=>c;for(const c of t){const d=r(s(c)),u=Ti(d)?d:d===null?"":""+d;o+=u&&u.length||0}const a=new vle({encoders:this.encoders,attributes:this.getAttributes(),properties:this.properties,fontMetrics:this.font.metrics,numCharacters:Math.max(o,this.properties.minBufferSize||1024)});a.addBatches(e.facetBatches);const l=a.toArrays();this.rangeMap.migrateEntries(l.rangeMap),this.updateBufferInfo(l)}prepareRender(e){const t=super.prepareRender(e);return t.push(()=>{wh(this.programInfo,{uTexture:this.font.texture})}),t.push(()=>this.bindOrSetMarkUniformBlock()),t.push(()=>uf(this.gl,this.programInfo,this.vertexArrayInfo)),t}render(e){const t=this.gl;return this.createRenderCallback((i,s)=>wL(t,this.vertexArrayInfo,t.TRIANGLES,s,i),e)}}const dF=1;function v4(){let n=[0,1],e=[0,1],t=1,i=1,s=0,o=0,r=.5,a=0;const c=d=>(d+r-n[0])/t*i+e[0];return c.invert=d=>(d-e[0])/i*t+n[0]-r,c.domain=function(d){if(arguments.length){n=ZQ(d),t=n[1]-n[0];const u=n[0]===0&&n[0]===0;if(t i/t,c.bandwidth=()=>c.step(),c.ticks=d=>{const u=c.align(),h=c.numberingOffset();return QC(n[0]-u+h,n[1]-u+h,Math.min(d,Math.ceil(t))).filter(Number.isInteger).map(f=>f-a)},c.tickFormat=(d,u)=>{if(u)throw new Error("Index scale's tickFormat does not support a specifier!");const f=df(n[0],n[1],Math.min(d,Math.ceil(t)))<1e5?Ts(","):Ts(".3s");return g=>f(g+a)},c.copy=()=>v4().domain(n).range(e).paddingInner(s).paddingOuter(o).numberingOffset(a),c}function sce(){const n=v4().numberingOffset(1);let e;n.genome=function(i){return arguments.length?(e=i,n):e},n.ticks=i=>{if(!e)return[];const s=n.domain(),o=n.numberingOffset(),[r,a]=[Math.max(s[0],0),Math.min(s[1],e.totalSize-1)].map(d=>e.toChromosome(d)),l=Math.max(1,df(s[0],s[1],i)),c=[];for(let d=r.index;d<=a.index;d++){const u=e.chromosomes[d],h=Math.max(u.continuousStart+l,s[0]-(s[0]-u.continuousStart)%l),f=Math.min(u.continuousEnd-l/4,s[1]+1);for(let g=h;g<=f;g+=l){const p=g-o;p>=s[0]&&p {if(!e)return;if(s)throw new Error("Locus scale's tickFormat does not support a specifier!");const o=n.domain(),r=o[1]-o[0],a=n.numberingOffset(),c=df(o[0],o[1],Math.min(i,Math.ceil(r)))<1e6?Ts(","):Ts(".3s"),d=u=>u-e.toChromosome(u).continuousStart;return u=>c(d(u)+a)};const t=n.copy;return n.copy=()=>t().genome(e),n}function oce(n){return n.type=="locus"}function gS(n,e,t){if(t=t||[],n.some(r=>r===null)){if(n.every(r=>r===null))return null;throw console.warn(n),new Error("Cannot merge objects with nulls!")}const i={},s=(r,a)=>r===a||cg(r)&&cg(a)||cg(r)&&a===!0||r===!0&&Os(a),o=r=>{for(let a in r){const l=r[a];if(!t.includes(a)&&l!==void 0)if(i[a]!==void 0&&!s(i[a],l))console.warn(`Conflicting property ${a} of ${e}: (${JSON.stringify(i[a])} and ${JSON.stringify(r[a])}). Using ${JSON.stringify(i[a])}.`);else{const c=i[a];if(cg(c))cg(l)&&(i[a]=gS([c,l],a));else if(cg(l)){if(!(c===!0||c===void 0))throw new Error("Bug in merge! Target is: "+c);i[a]=gS([{},l],a)}else i[a]=l}}};for(const r of n)o(r);return i}function cg(n){return Os(n)&&!Array.isArray(n)}/*! +`,Sce={left:-1,center:0,right:1},xce={top:-1,middle:0,bottom:1,alphabetic:1};class Lce extends B1{constructor(e){super(e),this.augmentDefaultProperties({x:.5,y:.5,x2:void 0,y2:void 0,text:"",size:11,color:"black",opacity:1,font:void 0,fontStyle:void 0,fontWeight:void 0,align:"center",baseline:"middle",dx:0,dy:0,angle:0,fitToBand:!1,squeeze:!0,paddingX:0,paddingY:0,flushX:!0,flushY:!0,logoLetters:!1,viewportEdgeFadeWidthTop:0,viewportEdgeFadeWidthRight:0,viewportEdgeFadeWidthBottom:0,viewportEdgeFadeWidthLeft:0,viewportEdgeFadeDistanceTop:-1/0,viewportEdgeFadeDistanceRight:-1/0,viewportEdgeFadeDistanceBottom:-1/0,viewportEdgeFadeDistanceLeft:-1/0}),this.font=this.properties.font?e.context.fontManager.getFont(this.properties.font,this.properties.fontStyle,this.properties.fontWeight):e.context.fontManager.getDefaultFont(),this.setupExprRefsNeedingGraphicsUpdate(["text","fitToBand","logoLetters"])}getAttributes(){return["uniqueId","facetIndex","x","x2","y","y2","color","size","opacity","angle"]}getSupportedChannels(){return[...super.getSupportedChannels(),"x2","y2","size","text","angle"]}fixEncoding(e){for(const t of e0)this.properties.fitToBand&&xA(e,t);return e}async initializeGraphics(){await super.initializeGraphics(),this.createAndLinkShaders(yce,wce,[Cce])}finalizeGraphicsInitialization(){super.finalizeGraphicsInitialization(),this.gl.useProgram(this.programInfo.program);const e=this.properties;this.registerMarkUniformValue("uSdfNumerator",{expr:"devicePixelRatio"},t=>{let i=.35;return this.properties.logoLetters&&(i/=2),this.font.metrics.common.base/(t/i)}),this.registerMarkUniformValue("uPaddingX",e.paddingX),this.registerMarkUniformValue("uPaddingY",e.paddingY),this.registerMarkUniformValue("uFlushX",e.flushX,t=>!!t),this.registerMarkUniformValue("uFlushY",e.flushY,t=>!!t),this.registerMarkUniformValue("uSqueeze",e.squeeze,t=>!!t),Db(this.markUniformInfo,{uAlign:[Sce[e.align],xce[e.baseline]],uD:[e.dx,-e.dy],uLogoLetter:!!e.logoLetters,uViewportEdgeFadeWidth:[e.viewportEdgeFadeWidthTop,e.viewportEdgeFadeWidthRight,e.viewportEdgeFadeWidthBottom,e.viewportEdgeFadeWidthLeft],uViewportEdgeFadeDistance:[e.viewportEdgeFadeDistanceTop,e.viewportEdgeFadeDistanceRight,e.viewportEdgeFadeDistanceBottom,e.viewportEdgeFadeDistanceLeft]})}updateGraphicsData(){const e=this.unitView.getCollector();if(!e){console.debug("No collector");return}const t=e.getData(),i=this.encoding,s=this.encoders.text;let o=0;const r="format"in i.text?Is(i.text.format):c=>c;for(const c of t){const d=r(s(c)),u=Ti(d)?d:d===null?"":""+d;o+=u&&u.length||0}const a=new zle({encoders:this.encoders,attributes:this.getAttributes(),properties:this.properties,fontMetrics:this.font.metrics,numCharacters:Math.max(o,this.properties.minBufferSize||1024)});a.addBatches(e.facetBatches);const l=a.toArrays();this.rangeMap.migrateEntries(l.rangeMap),this.updateBufferInfo(l)}prepareRender(e){const t=super.prepareRender(e);return t.push(()=>{wh(this.programInfo,{uTexture:this.font.texture})}),t.push(()=>this.bindOrSetMarkUniformBlock()),t.push(()=>gf(this.gl,this.programInfo,this.vertexArrayInfo)),t}render(e){const t=this.gl;return this.createRenderCallback((i,s)=>gL(t,this.vertexArrayInfo,t.TRIANGLES,s,i),e)}}const aF=1;function _4(){let n=[0,1],e=[0,1],t=1,i=1,s=0,o=0,r=.5,a=0;const c=d=>(d+r-n[0])/t*i+e[0];return c.invert=d=>(d-e[0])/i*t+n[0]-r,c.domain=function(d){if(arguments.length){n=aJ(d),t=n[1]-n[0];const u=n[0]===0&&n[0]===0;if(ti/t,c.bandwidth=()=>c.step(),c.ticks=d=>{const u=c.align(),h=c.numberingOffset();return jC(n[0]-u+h,n[1]-u+h,Math.min(d,Math.ceil(t))).filter(Number.isInteger).map(f=>f-a)},c.tickFormat=(d,u)=>{if(u)throw new Error("Index scale's tickFormat does not support a specifier!");const f=ff(n[0],n[1],Math.min(d,Math.ceil(t)))<1e5?Is(","):Is(".3s");return g=>f(g+a)},c.copy=()=>_4().domain(n).range(e).paddingInner(s).paddingOuter(o).numberingOffset(a),c}function Dce(){const n=_4().numberingOffset(1);let e;n.genome=function(i){return arguments.length?(e=i,n):e},n.ticks=i=>{if(!e)return[];const s=n.domain(),o=n.numberingOffset(),[r,a]=[Math.max(s[0],0),Math.min(s[1],e.totalSize-1)].map(d=>e.toChromosome(d)),l=Math.max(1,ff(s[0],s[1],i)),c=[];for(let d=r.index;d<=a.index;d++){const u=e.chromosomes[d],h=Math.max(u.continuousStart+l,s[0]-(s[0]-u.continuousStart)%l),f=Math.min(u.continuousEnd-l/4,s[1]+1);for(let g=h;g<=f;g+=l){const p=g-o;p>=s[0]&&p {if(!e)return;if(s)throw new Error("Locus scale's tickFormat does not support a specifier!");const o=n.domain(),r=o[1]-o[0],a=n.numberingOffset(),c=ff(o[0],o[1],Math.min(i,Math.ceil(r)))<1e6?Is(","):Is(".3s"),d=u=>u-e.toChromosome(u).continuousStart;return u=>c(d(u)+a)};const t=n.copy;return n.copy=()=>t().genome(e),n}function kce(n){return n.type=="locus"}function aS(n,e,t){if(t=t||[],n.some(r=>r===null)){if(n.every(r=>r===null))return null;throw console.warn(n),new Error("Cannot merge objects with nulls!")}const i={},s=(r,a)=>r===a||hg(r)&&hg(a)||hg(r)&&a===!0||r===!0&&Ms(a),o=r=>{for(let a in r){const l=r[a];if(!t.includes(a)&&l!==void 0)if(i[a]!==void 0&&!s(i[a],l))console.warn(`Conflicting property ${a} of ${e}: (${JSON.stringify(i[a])} and ${JSON.stringify(r[a])}). Using ${JSON.stringify(i[a])}.`);else{const c=i[a];if(hg(c))hg(l)&&(i[a]=aS([c,l],a));else if(hg(l)){if(!(c===!0||c===void 0))throw new Error("Bug in merge! Target is: "+c);i[a]=aS([{},l],a)}else i[a]=l}}};for(const r of n)o(r);return i}function hg(n){return Ms(n)&&!Array.isArray(n)}/*! * Adapted from vega-encode: * https://github.com/vega/vega/blob/master/packages/vega-encode/src/ticks.js * @@ -2608,7 +2409,7 @@ void main() { * All rights reserved. * * BSD-3-Clause License: https://github.com/vega/vega-lite/blob/master/LICENSE - */function XH(n,e,t){return to(e)&&t!=null&&(e=Math.min(e,~~(YC(n.domain())/t)||1)),Os(e)&&(e.step,e=e.interval),e}function QH(n,e,t){var i=n.range(),s=Math.floor(i[0]),o=Math.ceil(sa(i));if(s>o&&(i=o,o=s,s=i),e=e.filter(function(a){return a=n(a),s<=a&&a<=o}),t>0&&e.length>1){for(var r=[e[0],sa(e)];e.length>t&&e.length>=3;)e=e.filter(function(a,l){return!(l%2)});e.length<3&&(e=r)}return e}function rce(n,e){return n.bins?QH(n,ace(n.bins,e)):n.ticks?n.ticks(e):n.domain()}function ace(n,e){var t=n.length,i=~~(t/(e||t));return i<2?n.slice():n.filter(function(s,o){return!(o%i)})}function lce(n,e,t){var i=n.tickFormat?n.tickFormat(e,t):t?Ts(t):String;if(lH(n.type)){var s=dce(t);i=n.bins?s:cce(i,s)}return i}function cce(n,e){return function(t){return n(t)?e(t):""}}function dce(n){var e=im(n||",");if(e.precision==null){switch(e.precision=12,e.type){case"%":e.precision-=2;break;case"e":e.precision-=1;break}return uce(Ts(e),Ts(".1f")(1)[1])}else return Ts(e)}function uce(n,e){return function(t){var i=n(t),s=i.indexOf(e),o,r;if(s<0)return i;for(o=hce(i,s),r=os;)if(i[o]!=="0"){++o;break}return i.slice(0,o)+r}}function hce(n,e){var t=n.lastIndexOf("e"),i;if(t>0)return t;for(t=n.length;--t>e;)if(i=n.charCodeAt(t),i>=48&&i<=57)return t+1}/*! + */function ZH(n,e,t){return Qs(e)&&t!=null&&(e=Math.min(e,~~(HC(n.domain())/t)||1)),Ms(e)&&(e.step,e=e.interval),e}function XH(n,e,t){var i=n.range(),s=Math.floor(i[0]),o=Math.ceil(ia(i));if(s>o&&(i=o,o=s,s=i),e=e.filter(function(a){return a=n(a),s<=a&&a<=o}),t>0&&e.length>1){for(var r=[e[0],ia(e)];e.length>t&&e.length>=3;)e=e.filter(function(a,l){return!(l%2)});e.length<3&&(e=r)}return e}function Ece(n,e){return n.bins?XH(n,Ace(n.bins,e)):n.ticks?n.ticks(e):n.domain()}function Ace(n,e){var t=n.length,i=~~(t/(e||t));return i<2?n.slice():n.filter(function(s,o){return!(o%i)})}function Ice(n,e,t){var i=n.tickFormat?n.tickFormat(e,t):t?Is(t):String;if(aH(n.type)){var s=Nce(t);i=n.bins?s:Tce(i,s)}return i}function Tce(n,e){return function(t){return n(t)?e(t):""}}function Nce(n){var e=om(n||",");if(e.precision==null){switch(e.precision=12,e.type){case"%":e.precision-=2;break;case"e":e.precision-=1;break}return Rce(Is(e),Is(".1f")(1)[1])}else return Is(e)}function Rce(n,e){return function(t){var i=n(t),s=i.indexOf(e),o,r;if(s<0)return i;for(o=Mce(i,s),r=o s;)if(i[o]!=="0"){++o;break}return i.slice(0,o)+r}}function Mce(n,e){var t=n.lastIndexOf("e"),i;if(t>0)return t;for(t=n.length;--t>e;)if(i=n.charCodeAt(t),i>=48&&i<=57)return t+1}/*! * Adapted from vega-encode: * https://github.com/vega/vega/blob/master/packages/vega-encode/src/Scale.js * @@ -2616,14 +2417,14 @@ void main() { * All rights reserved. * * BSD-3-Clause License: https://github.com/vega/vega-lite/blob/master/LICENSE - */const fce="locus",gce="index";var pce=5;function mce(n){const e=n.type;return!n.bins&&(e===cm||e===C1||e===S1)}function JH(n){return as(n)&&![Za,gce,fce].includes(n)}function e$(n){return n||{warn:(e,...t)=>console.warn(e,...t)}}var _ce=ZC(["set","modified","clear","type","scheme","schemeExtent","schemeCount","domain","domainMin","domainMid","domainMax","domainRaw","domainImplicit","nice","zero","bins","range","rangeStep","round","reverse","interpolate","interpolateGamma","zoom","fp64","name"]);function t$(n,e,t){t=e$(t);for(const i in n)if(!_ce[i]){if(i==="padding"&&JH(e.type))continue;gr(e[i])?e[i](n[i]):t.warn("Unsupported scale property: "+i)}Lce(e,n,xce(e,n,wce(e,n,t)))}function bce(n,e){const t=vce(n),i=ii(t);if(!i)throw new Error("Unknown scale type: "+t);const s=i();return!n.domain&&as(s.type)&&(n.domain=[0,0]),t$(n,s,e),s}function vce(n){var e=n.type,t="",i;return e===Za?Za+"-"+cm:(yce(n)&&(i=n.rawDomain?n.rawDomain.length:n.domain?n.domain.length+ +(n.domainMid!=null):0,t=i===2?Za+"-":i===3?Ym+"-":""),(t+e||cm).toLowerCase())}function yce(n){const e=n.type;return as(e)&&e!==eH&&e!==tH&&(n.scheme||n.range&&n.range.length&&n.range.every(Ti))}function wce(n,e,t){if(!n.domain)return 0;t=e$(t);var i=Cce(n,e.domainRaw,t);if(i>-1)return i;var s=e.domain,o=n.type,r=e.zero||e.zero===void 0&&mce(n),a,l;return s?(JH(o)&&e.padding&&s[0]!==sa(s)&&(s=Sce(o,s,e.range,e.padding,e.exponent,e.constant)),(r||e.domainMin!=null||e.domainMax!=null||e.domainMid!=null)&&(a=(s=s.slice()).length-1||1,r&&(s[0]>0&&(s[0]=0),s[a]<0&&(s[a]=0)),e.domainMin!=null&&(s[0]=e.domainMin),e.domainMax!=null&&(s[a]=e.domainMax),e.domainMid!=null&&(l=e.domainMid,(l s[a])&&t.warn("Scale domainMid exceeds domain min or max.",l),s.splice(a,0,l))),n.domain(i$(o,s,t)),o===r4&&n.unknown(e.domainImplicit?aA:void 0),e.nice&&n.nice&&n.nice(e.nice!==!0&&XH(n,e.nice)||null),s.length):0}function Cce(n,e,t){return e?(n.domain(i$(n.type,e,t)),e.length):-1}function Sce(n,e,t,i,s,o){t??(t=[0,1]);var r=Math.abs(sa(t)-t[0]),a=r/(r-2*i),l=n===Gd?VW(e,null,a):n===S1?zE(e,null,a,.5):n===C1?zE(e,null,a,s||1):n===AL?_Q(e,null,a,o||1):WW(e,null,a);return e=e.slice(),e[0]=l[0],e[e.length-1]=l[1],e}function i$(n,e,t){if(lH(n)){var i=Math.abs(e.reduce(function(s,o){return s+(o<0?-1:o>0?1:0)},0));i!==e.length&&t.warn("Log scale domain includes zero: "+mM(e))}return e}function xce(n,e,t){let i=e.bins;if(i&&!Ps(i)){const s=(i.start==null||i.stop==null)&&n.domain(),o=i.start==null?s[0]:i.start,r=i.stop==null?sa(s):i.stop,a=i.step;a||Nn("Scale bins parameter missing step property."),i=db(o,r+a,a)}return i?n.bins=i:n.bins&&delete n.bins,n.type===a4&&(i?!e.domain&&!e.domainRaw&&(n.domain(i),t=i.length):n.bins=n.domain()),t}function Lce(n,e,t){var i=n.type,s=e.round||!1,o=e.range;if(e.rangeStep!=null)o=Dce(i,e,t);else if(e.scheme&&(o=kce(i,e,t),gr(o))){if(n.interpolator)return n.interpolator(o);Nn(`Scale type ${i} does not support interpolating color schemes.`)}if(o&&IL(i))return n.interpolator(TL(AA(o,e.reverse),e.interpolate,e.interpolateGamma));o&&e.interpolate&&n.interpolate?n.interpolate(cH(e.interpolate,e.interpolateGamma)):gr(n.round)?n.round(s):gr(n.rangeRound)&&n.interpolate(s?y1:_u),o&&n.range(AA(o,e.reverse))}function Dce(n,e,t){n!==sH&&n!==bA&&Nn("Only band and point scales support rangeStep.");var i=(e.paddingOuter!=null?e.paddingOuter:e.padding)||0,s=n===bA?1:(e.paddingInner!=null?e.paddingInner:e.padding)||0;return[0,e.rangeStep*o4(t,s,i)]}function kce(n,e,t){var i=e.schemeExtent,s,o;return Ps(e.scheme)?o=TL(e.scheme,e.interpolate,e.interpolateGamma):(s=e.scheme.toLowerCase(),o=c4(s),o||Nn(`Unrecognized scheme name: ${e.scheme}`)),t=n===nH?t+1:n===a4?t-1:n===_A||n===iH?+e.schemeCount||pce:t,IL(n)?uF(o,i,e.reverse):gr(o)?dre(uF(o,i),t):n===r4?o:o.slice(0,t)}function uF(n,e,t){return gr(n)&&(e||t)?cre(n,AA(e||[0,1],t)):n}function AA(n,e){return e?n.slice().reverse():n}const hF=Ts(",d");function Ece(n,e){return n.chrom+":"+hF(Math.floor(n.pos+1))+"-"+(n.chrom!=e.chrom?e.chrom+":":"")+hF(Math.ceil(e.pos))}const Ace=`chr3R 32079331 + */const Pce="locus",Oce="index";var Fce=5;function Bce(n){const e=n.type;return!n.bins&&(e===hm||e===x1||e===L1)}function QH(n){return os(n)&&![Ya,Oce,Pce].includes(n)}function JH(n){return n||{warn:(e,...t)=>console.warn(e,...t)}}var Wce=$C(["set","modified","clear","type","scheme","schemeExtent","schemeCount","domain","domainMin","domainMid","domainMax","domainRaw","domainImplicit","nice","zero","bins","range","rangeStep","round","reverse","interpolate","interpolateGamma","zoom","fp64","name"]);function e$(n,e,t){t=JH(t);for(const i in n)if(!Wce[i]){if(i==="padding"&&QH(e.type))continue;fr(e[i])?e[i](n[i]):t.warn("Unsupported scale property: "+i)}Gce(e,n,qce(e,n,$ce(e,n,t)))}function Vce(n,e){const t=zce(n),i=ti(t);if(!i)throw new Error("Unknown scale type: "+t);const s=i();return!n.domain&&os(s.type)&&(n.domain=[0,0]),e$(n,s,e),s}function zce(n){var e=n.type,t="",i;return e===Ya?Ya+"-"+hm:(Hce(n)&&(i=n.rawDomain?n.rawDomain.length:n.domain?n.domain.length+ +(n.domainMid!=null):0,t=i===2?Ya+"-":i===3?Jm+"-":""),(t+e||hm).toLowerCase())}function Hce(n){const e=n.type;return os(e)&&e!==Jz&&e!==eH&&(n.scheme||n.range&&n.range.length&&n.range.every(Ti))}function $ce(n,e,t){if(!n.domain)return 0;t=JH(t);var i=Uce(n,e.domainRaw,t);if(i>-1)return i;var s=e.domain,o=n.type,r=e.zero||e.zero===void 0&&Bce(n),a,l;return s?(QH(o)&&e.padding&&s[0]!==ia(s)&&(s=jce(o,s,e.range,e.padding,e.exponent,e.constant)),(r||e.domainMin!=null||e.domainMax!=null||e.domainMid!=null)&&(a=(s=s.slice()).length-1||1,r&&(s[0]>0&&(s[0]=0),s[a]<0&&(s[a]=0)),e.domainMin!=null&&(s[0]=e.domainMin),e.domainMax!=null&&(s[a]=e.domainMax),e.domainMid!=null&&(l=e.domainMid,(ls[a])&&t.warn("Scale domainMid exceeds domain min or max.",l),s.splice(a,0,l))),n.domain(t$(o,s,t)),o===s4&&n.unknown(e.domainImplicit?oA:void 0),e.nice&&n.nice&&n.nice(e.nice!==!0&&ZH(n,e.nice)||null),s.length):0}function Uce(n,e,t){return e?(n.domain(t$(n.type,e,t)),e.length):-1}function jce(n,e,t,i,s,o){t??(t=[0,1]);var r=Math.abs(ia(t)-t[0]),a=r/(r-2*i),l=n===Kd?WW(e,null,a):n===L1?WE(e,null,a,.5):n===x1?WE(e,null,a,s||1):n===CL?EQ(e,null,a,o||1):BW(e,null,a);return e=e.slice(),e[0]=l[0],e[e.length-1]=l[1],e}function t$(n,e,t){if(aH(n)){var i=Math.abs(e.reduce(function(s,o){return s+(o<0?-1:o>0?1:0)},0));i!==e.length&&t.warn("Log scale domain includes zero: "+gM(e))}return e}function qce(n,e,t){let i=e.bins;if(i&&!cs(i)){const s=(i.start==null||i.stop==null)&&n.domain(),o=i.start==null?s[0]:i.start,r=i.stop==null?ia(s):i.stop,a=i.step;a||In("Scale bins parameter missing step property."),i=hb(o,r+a,a)}return i?n.bins=i:n.bins&&delete n.bins,n.type===o4&&(i?!e.domain&&!e.domainRaw&&(n.domain(i),t=i.length):n.bins=n.domain()),t}function Gce(n,e,t){var i=n.type,s=e.round||!1,o=e.range;if(e.rangeStep!=null)o=Kce(i,e,t);else if(e.scheme&&(o=Yce(i,e,t),fr(o))){if(n.interpolator)return n.interpolator(o);In(`Scale type ${i} does not support interpolating color schemes.`)}if(o&&SL(i))return n.interpolator(xL(kA(o,e.reverse),e.interpolate,e.interpolateGamma));o&&e.interpolate&&n.interpolate?n.interpolate(lH(e.interpolate,e.interpolateGamma)):fr(n.round)?n.round(s):fr(n.rangeRound)&&n.interpolate(s?C1:bu),o&&n.range(kA(o,e.reverse))}function Kce(n,e,t){n!==nH&&n!==mA&&In("Only band and point scales support rangeStep.");var i=(e.paddingOuter!=null?e.paddingOuter:e.padding)||0,s=n===mA?1:(e.paddingInner!=null?e.paddingInner:e.padding)||0;return[0,e.rangeStep*n4(t,s,i)]}function Yce(n,e,t){var i=e.schemeExtent,s,o;return cs(e.scheme)?o=xL(e.scheme,e.interpolate,e.interpolateGamma):(s=e.scheme.toLowerCase(),o=a4(s),o||In(`Unrecognized scheme name: ${e.scheme}`)),t=n===iH?t+1:n===o4?t-1:n===pA||n===tH?+e.schemeCount||Fce:t,SL(n)?lF(o,i,e.reverse):fr(o)?Tre(lF(o,i),t):n===s4?o:o.slice(0,t)}function lF(n,e,t){return fr(n)&&(e||t)?Ire(n,kA(e||[0,1],t)):n}function kA(n,e){return e?n.slice().reverse():n}const cF=Is(",d");function Zce(n,e){return n.chrom+":"+cF(Math.floor(n.pos+1))+"-"+(n.chrom!=e.chrom?e.chrom+":":"")+cF(Math.ceil(e.pos))}const Xce=`chr3R 32079331 chr3L 28110227 chr2R 25286936 chrX 23542271 chr2L 23513712 chrY 3667352 chr4 1348131 -chrM 19524`,Ice=`chr1 247249719 +chrM 19524`,Qce=`chr1 247249719 chr2 242951149 chr3 199501827 chr4 191273063 @@ -2647,7 +2448,7 @@ chr21 46944323 chr22 49691432 chrX 154913754 chrY 57772954 -chrM 16571`,Tce=`chr1 249250621 +chrM 16571`,Jce=`chr1 249250621 chr2 243199373 chr3 198022430 chr4 191154276 @@ -2671,7 +2472,7 @@ chr21 48129895 chr22 51304566 chrX 155270560 chrY 59373566 -chrM 16571`,Nce=`chr1 248956422 +chrM 16571`,ede=`chr1 248956422 chr2 242193529 chr3 198295559 chr4 190214555 @@ -2695,7 +2496,7 @@ chr21 46709983 chr22 50818468 chrX 156040895 chrY 57227415 -chrM 16569`,Rce=`chr1 197195432 +chrM 16569`,tde=`chr1 197195432 chr2 181748087 chr3 159599783 chr4 155630120 @@ -2716,7 +2517,7 @@ chr18 90772031 chr19 61342430 chrX 166650296 chrY 15902555 -chrM 16299`,Mce=`chr1 195471971 +chrM 16299`,ide=`chr1 195471971 chr2 182113224 chr3 160039680 chr4 156508116 @@ -2737,12 +2538,12 @@ chr18 90702639 chr19 61431566 chrX 171031299 chrY 91744698 -chrM 16299`,fF={dm6:Ace,hg18:Ice,hg19:Tce,hg38:Nce,mm9:Rce,mm10:Mce};function Pce(n){if(!(n in fF))throw new Error(`Unknown assembly: ${n}`);return fF[n].split(` -`).map(e=>{const t=e.split(" ");return{name:t[0],size:parseInt(t[1])}})}const Oce=/^([A-Za-z]+:)?\/\//;function Nb(n,e){if(e&&Oce.test(e))return e;const t=typeof n=="function"?n():n;if(!t)return e;if(!e)return t;if(/[#?]/.test(t))throw new Error(`Cannot append to a url with query or hash. Append: ${e}, base: ${t}`);return n$(t)+e}function n$(n){const e=n.replace(/[^/]*$/,"");return e===""?void 0:e.endsWith("://")?n+"/":e}class Fce{constructor(e){if(this.config={name:"custom",...e},"baseUrl"in e)throw new Error("The `baseUrl` property in genome config has been removed in GenomeSpy v0.52.0. Use `url` instead. See https://genomespy.app/docs/genomic-data/genomic-coordinates/.");if(!y4(e))throw new Error("Not a genome configuration: "+JSON.stringify(e));if(this.chromosomes=[],this.cumulativeChromPositions=new Map,this.chromosomesByName=new Map,this.startByIndex=[],this.totalSize=0,o$(this.config))this.setChromSizes(this.config.contigs);else if(!IA(this.config)){const t=Pce(this.config.name);if(t)this.setChromSizes(t);else throw new Error(`Unknown genome: ${this.config.name}. Please provide contigs or a URL. See https://genomespy.app/docs/genomic-data/genomic-coordinates/.`)}}get name(){return this.config.name}async load(e){if(IA(this.config))try{const t=Nb(e,this.config.url),i=await fetch(t);if(!i.ok)throw new Error(`${i.status} ${i.statusText}`);this.setChromSizes(Bce(await i.text()))}catch(t){throw new Error(`Could not load chrom sizes: ${this.config.url}. Reason: ${t.message}`)}}hasChrPrefix(){return this.chromosomes.some(e=>e.name.startsWith("chr"))}setChromSizes(e){let t=0;this.startByIndex=[0];for(let i=0;ithis.totalSize)return;e=Math.floor(e);const t=$d(this.startByIndex,e)-1;if(t>0&&t<=this.chromosomes.length)return this.chromosomes[t-1]}toChromosomal(e){const t=this.toChromosome(e);if(t)return{chrom:t.name,pos:Math.floor(e)-t.continuousStart}}getChromosome(e){return this.chromosomesByName.get(e)}formatInterval(e){return Ece(...this.toChromosomalInterval(e))}toChromosomalInterval(e){const t=this.toChromosomal(e[0]+.5),i=this.toChromosomal(e[1]-.5);return i.pos+=1,[t,i]}toContinuousInterval(e){var s;let[t,i]=e;return i||(i=t),[this.toContinuous(t.chrom,t.pos??0),this.toContinuous(i.chrom,i.pos??((s=this.chromosomesByName.get(i.chrom))==null?void 0:s.size))]}toDiscreteChromosomeIntervals(e){const t=e[0],i=e[1],s=[];if(t.chrom===i.chrom)s.push({chrom:t.chrom,startPos:t.pos,endPos:i.pos});else{const o=this.chromosomes.findIndex(a=>a.name===t.chrom),r=this.chromosomes.findIndex(a=>a.name===i.chrom);s.push({chrom:t.chrom,startPos:t.pos,endPos:this.chromosomes[o].size});for(let a=o+1;a a===void 0)){const a=this.getChromosome(i);return a?[a.continuousStart,a.continuousEnd]:void 0}const s=t[3]||i,o=parseInt(t[2].replace(/,/g,"")),r=t[4]!==void 0?parseInt(t[4].replace(/,/g,"")):o;return[this.toContinuous(i,o-1),this.toContinuous(s,r)]}}}function Bce(n){return OQ(n).map(([e,t])=>({name:e,size:parseInt(t)}))}function s$(n){return Os(n)&&"chrom"in n}function Wce(n){return n.every(s$)}function y4(n){return Os(n)&&("name"in n||IA(n)||o$(n))}function IA(n){return y4(n)&&"url"in n}function o$(n){return y4(n)&&"contigs"in n}class F1 extends Array{constructor(){super(),this.type=void 0}extend(e){return this}extendAll(e){if(e instanceof F1&&e.type!=this.type)throw new Error(`Cannot combine different types of domains: ${this.type} and ${e.type}`);for(const t of e)this.extend(t);return this}extendAllWithAccessor(e,t){for(const i of e)this.extend(t(i));return this}}class jk extends F1{constructor(){super(),this.type="quantitative"}extend(e){return e==null||Number.isNaN(e)?this:(e=+e,this.length?e this[1]&&(this[1]=e):(this.push(e),this.push(e)),this)}}class r$ extends F1{constructor(){super(),this.type="ordinal",this.uniqueValues=new Set}extend(e){return e==null||Number.isNaN(e)?this:(this.uniqueValues.has(e)||(this.uniqueValues.add(e),this.push(e)),this)}}class a$ extends r${constructor(){super(),this.type="nominal"}}class Vce extends F1{constructor(e){super();let t=0;for(let i=1;i this.push(i))}extend(e){if(this.includes(e))return this;throw new Error("Piecewise domains are immutable and cannot be unioned!")}}const gF={quantitative:jk,index:jk,locus:jk,nominal:a$,ordinal:r$};function l$(n,e){if(n=="quantitative"&&zce(e)){const t=new Vce(e);return t.type=n,t}else if(gF[n]){const t=new gF[n];return t.type=n,e&&t.extendAll(e),t}throw new Error("Unknown type: "+n)}function zce(n){return n&&n.length>0&&n.length!=2&&n.every(e=>typeof e=="number")}function Hce(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}function $ce(n,e,t){return n*Math.pow(e/n,t)}ii("index",v4,["continuous"]);ii("locus",sce,["continuous"]);ii("null",_4,[]);const pF="quantitative",c$="ordinal",d$="nominal",u$="locus",Uce="index";var Ol,Bp,No,Kv,lt,TA,NA,Dl,RA,h$,f$,MA,PA,oC,OA,Qu,FA,g$;class jce{constructor(e){Oe(this,lt);Oe(this,Ol);Oe(this,Bp,{domain:new Set,range:new Set});Oe(this,No);Oe(this,Kv,new Set);this.channel=e,this.members=[],this.type=null,this.name=void 0}addEventListener(e,t){X(this,Bp)[e].add(t)}removeEventListener(e,t){X(this,Bp)[e].delete(t)}addMember(e){var r;const{channel:t,channelDef:i}=e,s=i.type,o=(r=i==null?void 0:i.scale)==null?void 0:r.name;if(o){if(this.name!==void 0&&o!=this.name)throw new Error(`Shared scales have conflicting names: "${o}" vs. "${this.name}"!`);this.name=o}if(!this.type)this.type=s;else if(s!==this.type&&!TH(t))throw new Error(`Can not use shared scale for different data types: ${this.type} vs. ${s}. Use "resolve: independent" for channel ${this.channel}`);this.members.push(e)}getDataDomain(){return this.members.map(e=>{var t;return(t=e.dataDomainSource)==null?void 0:t.call(e,e.channel,this.type)}).filter(e=>!!e).reduce((e,t)=>e.extendAll(t))}reconfigure(){const e=X(this,No);if(!e||e.type=="null")return;const t=Le(this,lt,h$).call(this),i=e.domain(),s=Le(this,lt,MA).call(this,!0);if(t$({...s,range:void 0},e),e.props=s,Le(this,lt,PA).call(this),as(e.type)&&ut(this,Ol,Le(this,lt,FA).call(this)),!t){Le(this,lt,Dl).call(this,"domain");return}const o=e.domain();iS(o,i)||(this.isZoomable()?e.domain(i):Le(this,lt,Qu).call(this)?(e.domain(i),this.zoomTo(o,500)):Le(this,lt,Dl).call(this,"domain"))}get scale(){if(X(this,No))return X(this,No);const e=Le(this,lt,MA).call(this),t=bce({...e,range:void 0});t.props=e,"unknown"in t&&t.unknown(null),ut(this,No,t),Le(this,lt,PA).call(this),oce(t)&&t.genome(this.getGenome()),as(t.type)&&ut(this,Ol,Le(this,lt,FA).call(this));const i=t.range;if(i){const s=()=>Le(this,lt,Dl).call(this,"range");t.range=function(o){if(arguments.length)i(o),s();else return i()},s()}return t}getDomain(){return this.scale.domain()}getComplexDomain(){var e;return((e=this.getGenome())==null?void 0:e.toChromosomalInterval(this.getDomain()))??this.getDomain()}isZoomed(){return Le(this,lt,Qu).call(this)&&iS(Le(this,lt,oC).call(this),this.getDomain())}isZoomable(){return Le(this,lt,Qu).call(this)&&!!this.scale.props.zoom}zoom(e,t,i){if(!Le(this,lt,Qu).call(this))return!1;const s=this.scale,o=s.domain();let r=[...o],a=s.invert(t);switch(s.props.reverse&&(i=-i),"align"in s&&(a+=s.align()),s.type){case"linear":case"index":case"locus":r=gQ(r,i||0),r=WW(r,a,e);break;case"log":r=pQ(r,i||0),r=VW(r,a,e);break;case"pow":case"sqrt":{const l=s;r=mQ(r,i||0,l.exponent()),r=zE(r,a,e,l.exponent());break}default:throw new Error("Zooming is not implemented for: "+s.type)}return X(this,Ol)&&(r=bQ(r,X(this,Ol)[0],X(this,Ol)[1])),[0,1].some(l=>r[l]!=o[l])?(s.domain(r),Le(this,lt,Dl).call(this,"domain"),!0):!1}async zoomTo(e,t=!1){if(g1(t)&&(t=t?700:0),!Le(this,lt,Qu).call(this))throw new Error("Not a zoomable scale!");const i=this.fromComplexInterval(e),s=X(this,lt,NA).animator,o=this.scale,r=o.domain();if(t>0&&r.length==2){const a=r[1]-r[0],l=i[1]-i[0],c=r[0]+a/2,d=i[0]+l/2,u=r[0]==i[0],h=r[1]==i[1];await s.transition({duration:t,easingFunction:Hce,onUpdate:f=>{const g=$ce(a,l,f),p=a==l?f:(a-g)/(a-l),_=p*d+(1-p)*c,v=[u?r[0]:_-g/2,h?r[1]:_+g/2];o.domain(v),Le(this,lt,Dl).call(this,"domain")}}),o.domain(i),Le(this,lt,Dl).call(this,"domain")}else o.domain(i),s==null||s.requestRender(),Le(this,lt,Dl).call(this,"domain")}resetZoom(){if(!Le(this,lt,Qu).call(this))throw new Error("Not a zoomable scale!");const e=this.getDomain(),t=Le(this,lt,oC).call(this);return[0,1].some(i=>t[i]!=e[i])?(X(this,No).domain(t),Le(this,lt,Dl).call(this,"domain"),!0):!1}getZoomLevel(){return this.isZoomable()?YC(X(this,Ol))/YC(this.scale.domain()):1}getAxisLength(){if(this.channel!=="x"&&this.channel!=="y")throw new Error("Axis length is only defined for x and y channels!");const e=this.members.map(t=>{var i;return(i=t.view.coords)==null?void 0:i[this.channel==="x"?"width":"height"]}).filter(t=>t>0);return e.length?e.reduce((t,i)=>Math.min(t,i),1e4):0}getGenome(){var t;if(this.type!=="locus")return;const e=(t=X(this,lt,NA).genomeStore)==null?void 0:t.getGenome();if(!e)throw new Error("No genome has been defined!");return e}invertToComplex(e){const t=this.scale;if("invert"in t){const i=t.invert(e);return this.toComplex(i)}else throw new Error("The scale does not support inverting!")}toComplex(e){const t=this.getGenome();return t?t.toChromosomal(e):e}fromComplex(e){return s$(e)?this.getGenome().toContinuous(e.chrom,e.pos):e}fromComplexInterval(e){return this.type==="locus"&&Wce(e)?this.getGenome().toContinuousInterval(e):e}}Ol=new WeakMap,Bp=new WeakMap,No=new WeakMap,Kv=new WeakMap,lt=new WeakSet,TA=function(){return this.members[0].view},NA=function(){return X(this,lt,TA).context},Dl=function(e){for(const t of X(this,Bp)[e].values())t({type:e,scaleResolution:this})},RA=function(){return!!Le(this,lt,OA).call(this)},h$=function(){const e=X(this,No);if(!e)return!1;const t=e.domain();return as(e.type)?t.length>2||t.length==2&&(t[0]!==0||t[1]!==0):t.length>0},f$=function(){const e=this.members.map(t=>t.channelDef.scale).filter(t=>t!==void 0);return gS(e,"scale",["domain"])},MA=function(e=!1){const t=Le(this,lt,f$).call(this);if(t===null||t.type=="null")return{type:"null"};const i={...Le(this,lt,g$).call(this,this.type),...t};i.type||(i.type=qce(this.channel,this.type));const s=Le(this,lt,oC).call(this,e);return s&&s.length>0?i.domain=s:Kd(i.type)&&(i.domain=new a$),!i.domain&&i.domainMid!==void 0&&(i.domain=[i.domainMin??0,i.domainMax??1]),this.channel=="y"&&Kd(i.type)&&i.reverse==null&&(i.reverse=!0),i.range&&i.scheme&&delete i.scheme,!("zoom"in i)&&["index","locus"].includes(i.type)&&(i.zoom=!0),Gce(i,this.channel),i},PA=function(){const e=X(this,No).props,t=e.range;if(X(this,Kv).forEach(s=>s.invalidate()),!t||!Ps(t))return;const i=(s,o)=>o?s.slice().reverse():s;if(t.some(Gs)){let s;const o=()=>{X(this,No).range(i(s.map(r=>r()),e.reverse))};s=t.map(r=>{if(Gs(r)){const a=X(this,lt,TA).paramMediator.createExpression(r.expr);return a.addListener(o),X(this,Kv).add(a),()=>a(null)}else return()=>r}),o()}else X(this,No).range(i(t,e.reverse))},oC=function(e=!1){return Le(this,lt,OA).call(this)??(this.type==u$?this.getGenome().getExtent():e?this.getDataDomain():[])},OA=function(){const e=this.members.map(t=>t.channelDef).filter(t=>{var i;return(i=t.scale)==null?void 0:i.domain}).map(t=>l$(t.type,this.fromComplexInterval(t.scale.domain)));if(e.length>0)return e.reduce((t,i)=>t.extendAll(i))},Qu=function(){const e=this.scale.type;return as(e)},FA=function(){const e=this.scale.props,t=e.zoom;if(Kce(t)&&Ps(t.extent))return this.fromComplexInterval(t.extent);if(t)return e.type=="locus"?this.getGenome().getExtent():X(this,No).domain()},g$=function(e){const t=this.channel,i={};return Le(this,lt,RA).call(this)&&(i.zero=!1),Ab(t)?i.nice=!Le(this,lt,RA).call(this):Yd(t)?i.scheme=e==d$?"tableau10":e==c$?"blues":"viridis":FL(t)?i.range=t=="shape"?["circle","square","triangle-up","cross","diamond"]:[]:t=="size"?i.range=[0,400]:t=="angle"&&(i.range=[0,360]),i};function qce(n,e){if(e==Uce||e==u$){if(EH(n))return e;throw new Error(`${n} does not support ${e} data type. Only positional channels do.`)}const t={x:["band","band","linear"],y:["band","band","linear"],size:[void 0,"point","linear"],opacity:[void 0,"point","linear"],fillOpacity:[void 0,"point","linear"],strokeOpacity:[void 0,"point","linear"],color:["ordinal","ordinal","linear"],fill:["ordinal","ordinal","linear"],stroke:["ordinal","ordinal","linear"],strokeWidth:[void 0,void 0,"linear"],shape:["ordinal","ordinal",void 0],dx:[void 0,void 0,"null"],dy:[void 0,void 0,"null"],angle:[void 0,void 0,"linear"]},s=["sample"].includes(n)?"null":t[n]?t[n][[d$,c$,pF].indexOf(e)]:e==pF?"linear":"ordinal";if(s===void 0)throw new Error(`Channel "${n}" is not compatible with "${e}" data type. Use of a proper scale may be needed.`);return s}function Gce(n,e){Ab(e)&&n.type!=="ordinal"&&(n.range=[0,1]),e=="opacity"&&as(n.type)&&(n.clamp=!0)}function Kce(n){return Os(n)}function BA(n){const e=new Set;function t(i){for(const s of Object.values(i.resolutions.scale))e.add(s)}for(const i of Zs(n)){i.visit(t);for(const s of i.getDataAncestors()){if(!s.options.contributesToScaleDomain)break;t(s)}}e.forEach(i=>i.reconfigure())}function qk(...n){for(const e of n)if(e!==void 0)return e}class Yce{constructor(e){this.channel=e,this.members=[]}get scaleResolution(){var e;return(e=_1(this.members))==null?void 0:e.view.getScaleResolution(this.channel)}addMember(e){const{view:t}=e,i=t.getScaleResolution(this.channel);if(!i)throw new Error("Cannot find a scale resolution!");if(this.scaleResolution&&i!==this.scaleResolution)throw new Error(`Shared axes must have a shared scale! Channel: ${this.channel}, existing views: [${this.members.map(s=>s.view.getPathString()).join(", ")}], new view: ${t.getPathString()}.`);this.members.push(e)}getAxisProps(){return WL(this,"axisProps",()=>{const e=this.members.map(t=>{const i=t.view.mark.encoding[t.channel];return"axis"in i&&i.axis});return e.length>0&&e.some(t=>t===null)?null:gS(e.filter(t=>t!==void 0),"axis",["title"])})}getTitle(){const e=o=>{var a;const r=Vae(o.view,o.channel);if(!Sr(r))return{member:o,explicitTitle:qk("axis"in r?(a=r.axis)==null?void 0:a.title:void 0,r.title),implicitTitle:qk(wu(r)?r.field:void 0,T1(r)?r.expr:void 0)}},t=this.members.map(e),i=t.filter(o=>{var r;if(TH(o.member.channel)&&!o.explicitTitle){const a=pf(o.member.channel);return((r=t.find(l=>l.member.view==o.member.view&&l.member.channel==a))==null?void 0:r.explicitTitle)===void 0}return!0}),s=new Set(i.map(o=>qk(o.explicitTitle,o.implicitTitle)).filter(Ti));return s.size?[...s].join(", "):null}}function mF(n,e,{spacing:t,devicePixelRatio:i,offset:s,reverse:o}={}){t=t||0,s=s||0;let r=0,a=0;for(const g of n)r+=Wy(g.px)+(Gk(g)?0:t),a+=Wy(g.grow);r-=t;const l=Math.max(0,e-r),c=i!==void 0?g=>Math.round(g*i)/i:g=>g,d=[],u=[],h=g=>{const p=d.length;if(!p)return;const _=(g?t:0)*(o?-1:1);f-=_;for(let v=0;v 0);const _=Wy(p.px)+(a?Wy(p.grow)/a*l:0);o&&(f-=_),u.push({location:c(f),size:c(_)}),o?f-=t:f+=_+t}}return f+=o?t:-t,h(!1),u}function Zce(n){let e=0,t=0;for(const i of n)e=Math.max(e,i.px??0),t=Math.max(t,i.grow??0);return{px:e,grow:t}}var Yv,WA;const e5=class e5{constructor(e,t){Oe(this,Yv);this.width=e,this.height=t}addPadding(e){return Le(this,Yv,WA).call(this,e.width,e.height)}subtractPadding(e){return Le(this,Yv,WA).call(this,-e.width,-e.height)}isGrowing(){return!!(this.width.grow||this.height.grow)}};Yv=new WeakSet,WA=function(e,t){return new e5({px:(this.width.px??0)+e,grow:this.width.grow},{px:(this.height.px??0)+t,grow:this.height.grow})};let Zd=e5;const E_=Object.freeze({px:0,grow:0}),_F=new Zd(E_,E_);function Gk(n){return!n.px&&!n.grow}function Wy(n){return n||0}function Xce(n){return n&&(to(n.px)||to(n.grow))}function p$(n){if(_$(n))throw new Error("parseSizeDef does not accept step-based sizes.");if(Xce(n))return n;if(to(n))return{px:n,grow:0};if(n==="container")return{px:0,grow:1};if(!n)return{px:0,grow:1};throw new Error(`Invalid sizeDef: ${n}`)}class Cs{constructor(e,t,i,s){this.top=e||0,this.right=t||0,this.bottom=i||0,this.left=s||0}get width(){return this.left+this.right}get height(){return this.top+this.bottom}expand(e){return e<=0?this:new Cs(this.top+e,this.right+e,this.bottom+e,this.left+e)}add(e){return new Cs(this.top+e.top,this.right+e.right,this.bottom+e.bottom,this.left+e.left)}subtract(e){return new Cs(this.top-e.top,this.right-e.right,this.bottom-e.bottom,this.left-e.left)}union(e){return new Cs(Math.max(this.top,e.top),Math.max(this.right,e.right),Math.max(this.bottom,e.bottom),Math.max(this.left,e.left))}getHorizontal(){return new Cs(0,this.right,0,this.left)}getVertical(){return new Cs(this.top,0,this.bottom,0)}get horizontalTotal(){return this.left+this.right}get verticalTotal(){return this.top+this.bottom}static createFromConfig(e){return typeof e=="number"?this.createUniformPadding(e):e?this.createFromRecord(e):VA}static createFromRecord(e){return new Cs(e.top,e.right,e.bottom,e.left)}static zero(){return VA}static createUniformPadding(e){return new Cs(e,e,e,e)}}const VA=Cs.createUniformPadding(0);Object.freeze(VA);function B1(n,e){return!e||/^(data:|([A-Za-z]+:)?\/\/)/.test(n)||n.startsWith("/")?n:(e.endsWith("/")||(e+="/"),e+n)}function Qce(n){if(!n)return n;if(/[?#]/.test(n))throw new Error(`Invalid base URL: ${n} - cannot contain query or hash.`);return n.endsWith("/")?n:n+"/"}const Jce="VISIT_SKIP",A_="VISIT_STOP",bF=n=>n;var Wp,Zv,Xv,Qv,Jv,qa,e_,zA,XB;let m$=(XB=class{constructor(e,t,i,s,o,r={}){Oe(this,qa);Oe(this,Wp,{});Oe(this,Zv,{});Oe(this,Xv,{});Oe(this,Qv);Oe(this,Jv);zi(this,"opacityFunction",bF);zi(this,"facetCoords",new gc([],JSON.stringify));var a;if(!e)throw new Error("View spec must be defined!");if(this.context=t,this.layoutParent=i,this.dataParent=s,this.name=e.name||o,this.spec=e,this.resolutions={scale:{},axis:{}},UH(this),this.options={blockEncodingInheritance:!1,contributesToScaleDomain:!0,...r},this.needsAxes={x:!1,y:!1},this.paramMediator=new Rae(()=>{var l;return(l=this.dataParent)==null?void 0:l.paramMediator}),e.params)for(const l of e.params)this.paramMediator.registerParam(l);if(!((a=this.layoutParent)!=null&&a.options.layeredChildren)){const l=c=>this.paramMediator.findMediatorForParam(c)?void 0:this.paramMediator.allocateSetter(c,0);ut(this,Jv,l("height")),ut(this,Qv,l("width"))}}get coords(){return this.facetCoords.values().next().value}getPadding(){return this._cache("size/padding",()=>Cs.createFromConfig(this.spec.padding))}getOverhang(){return Cs.zero()}isScrollable(){return this.spec.viewportWidth!=null||this.spec.viewportHeight!=null}getSize(){return this._cache("size/size",()=>this.isConfiguredVisible()?new Zd(Le(this,qa,e_).call(this,"width"),Le(this,qa,e_).call(this,"height")):_F)}getViewportSize(){if(!this.isScrollable())return this.getSize();if(!this.isConfiguredVisible())return _F;const e=this.getSize();return new Zd(Le(this,qa,e_).call(this,"viewportWidth")??e.width,Le(this,qa,e_).call(this,"viewportHeight")??e.height)}isConfiguredVisible(){return this.context.isViewConfiguredVisible(this)}isVisibleInSpec(){return this.spec.visible??!0}isVisible(){return this.getLayoutAncestors().every(e=>e.isConfiguredVisible())}getEffectiveOpacity(){var e;return this.opacityFunction(((e=this.layoutParent)==null?void 0:e.getEffectiveOpacity())??1)}getPathString(){return this.getLayoutAncestors().map(e=>e.name).reverse().join("/")}getLayoutAncestors(){return Le(this,qa,zA).call(this,"layoutParent")}getDataAncestors(){return Le(this,qa,zA).call(this,"dataParent")}handleBroadcast(e){for(const t of X(this,Wp)[e.type]||[])t(e)}_addBroadcastHandler(e,t){let i=X(this,Wp)[e];i||(i=[],X(this,Wp)[e]=i),i.push(t)}handleInteractionEvent(e,t,i){const s=i?X(this,Zv):X(this,Xv);for(const o of s[t.type]||[])o(e,t)}addInteractionEventListener(e,t,i){const s=i?X(this,Zv):X(this,Xv);let o=s[e];o||(o=[],s[e]=o),o.push(t)}visit(e){try{const t=e(this);if(e.postOrder&&e.postOrder(this),t!==A_)return t}catch(t){throw t.view=this,t}}getDescendants(){const e=[];return this.visit(t=>{e.push(t)}),e}configureViewOpacity(){(!this.opacityFunction||this.opacityFunction===bF)&&(this.opacityFunction=tde(this))}onBeforeRender(){}render(e,t,i={}){var s,o;i.firstFacet&&this.facetCoords.clear(),this.facetCoords.set(i.facetId,i.clipRect?t.intersect(i.clipRect):t),(s=X(this,Qv))==null||s.call(this,t.width),(o=X(this,Jv))==null||o.call(this,t.height)}getEncoding(){const e=this.dataParent&&!this.options.blockEncodingInheritance?this.dataParent.getEncoding():{},t=this.spec.encoding||{},i={...e,...t};for(const[s,o]of Object.entries(i))o===null&&delete i[s];return i}getFacetAccessor(e){if(this.layoutParent)return this.layoutParent.getFacetAccessor(this)}getFacetFields(e){var i;const t=this.getEncoding().sample;return wu(t)?[t.field]:(i=this.layoutParent)==null?void 0:i.getFacetFields(this)}getSampleFacetTexture(){}getScaleResolution(e){const t=pf(e);return this.getDataAncestors().map(i=>i.resolutions.scale[t]).find(i=>i)}getAxisResolution(e){const t=pf(e);return this.getDataAncestors().map(i=>i.resolutions.axis[t]).find(i=>i)}getConfiguredResolution(e,t){var i,s;return(s=(i=this.spec.resolve)==null?void 0:i[t])==null?void 0:s[e]}getConfiguredOrDefaultResolution(e,t){return this.getConfiguredResolution(e,t)??this.getConfiguredResolution("default",t)??this.getDefaultResolution(e,t)}getDefaultResolution(e,t){return"independent"}getBaseUrl(){return Nb(()=>{var e;return(e=this.dataParent)==null?void 0:e.getBaseUrl()},Qce(this.spec.baseUrl))}isPickingSupported(){return!0}getTitleText(){const e=this.spec.title;if(e)return Ti(e)?e:Gs(e.text)?this.paramMediator.evaluateAndGet(e.text.expr):e.text}_cache(e,t){return WL(this,e,t)}_invalidateCacheByPrefix(e,t="self"){switch(t){case"self":sC(this,e);break;case"ancestors":for(const i of this.getLayoutAncestors())sC(i,e);break;case"progeny":this.visit(i=>sC(i,e));break}}invalidateSizeCache(){this._invalidateCacheByPrefix("size/","ancestors")}propagateInteractionEvent(e){}},Wp=new WeakMap,Zv=new WeakMap,Xv=new WeakMap,Qv=new WeakMap,Jv=new WeakMap,qa=new WeakSet,e_=function(e){var s;let t=this.spec[e];const i=e=="viewportWidth"||e=="viewportHeight";if(_$(t)){if(i)throw new jh(`Cannot use step-based size with "${e}"!`,this);const o=t.step,r=(s=this.getScaleResolution(e=="width"?"x":"y"))==null?void 0:s.scale;if(r){let a=0;if(Kd(r.type))a=r.domain().length;else if(["locus","index"].includes(r.type)){const c=r.domain();a=_1(c)-c[0]}else throw new jh(`Cannot use step-based size with "${r.type}" scale!`,this);const l=r;return a=o4(a,l.paddingInner(),l.paddingOuter()),{px:a*o,grow:0}}else throw new jh("Cannot use 'step' size with missing scale!",this)}else return(t&&p$(t))??(i?void 0:{px:0,grow:1})},zA=function(e){const t=[];let i=this;do t.push(i),i=i[e];while(i);return t},XB);function ede(n){return"unitsPerPixel"in n}function tde(n){const e="opacity"in n.spec?n.spec.opacity:void 0;if(e!==void 0){if(to(e))return t=>t*e;if(ede(e)){const t=o=>{var a;const r=(a=n.getScaleResolution(o))==null?void 0:a.scale;if(["linear","index","locus"].includes(r==null?void 0:r.type))return r},i=e.channel?t(e.channel):t("x")??t("y");if(!i)throw new jh("Cannot find a resolved quantitative scale for dynamic opacity!",n);const s=XM().domain(e.unitsPerPixel).range(e.values).clamp(!0);return o=>{const a=YC(i.domain())/1e3;return s(a)*o}}else if(Gs(e)){const t=n.paramMediator.createExpression(e.expr);return t.addListener(()=>n.context.animator.requestRender()),i=>t(null)*i}}return t=>t}const _$=n=>!!(n!=null&&n.step),ide={point:Vle,rect:Mle,rule:Ule,link:Xle,text:nce};var e1,Yx,b$;class Bo extends m${constructor(t,i,s,o,r,a){super(t,i,s,o,r,a);Oe(this,Yx);Oe(this,e1);this.spec=t;const l=ide[this.getMarkType()];if(l)this.mark=new l(this);else throw new Error(`No such mark: ${this.getMarkType()}`);this.resolve(),ut(this,e1,this.paramMediator.allocateSetter("zoomLevel",1)),["x","y"].forEach(c=>{var d;return(d=this.getScaleResolution(c))==null?void 0:d.addEventListener("domain",()=>X(this,e1).call(this,Math.sqrt(this.getZoomLevel())))}),this.needsAxes={x:!0,y:!0},Le(this,Yx,b$).call(this)}render(t,i,s={}){super.render(t,i,s),this.isConfiguredVisible()&&(t.pushView(this,i),t.renderMark(this.mark,s),t.popView(this))}getMarkType(){return typeof this.spec.mark=="object"?this.spec.mark.type:this.spec.mark}resolve(t){t||(this.resolve("scale"),this.resolve("axis"));const i=this.mark.encoding;for(const[s,o]of Object.entries(i)){if(!zo(o))continue;const r=pf(o.resolutionChannel??s);if(!Ib(r)||t=="axis"&&!Ab(r))continue;let a=this;for(;(a.getConfiguredOrDefaultResolution(r,t)=="forced"||a.dataParent&&["shared","excluded","forced"].includes(a.dataParent.getConfiguredOrDefaultResolution(r,t)))&&a.getConfiguredOrDefaultResolution(r,t)!="excluded";)a=a.dataParent;if(t=="axis"&&Ab(s)&&EH(r))a.resolutions[t][r]||(a.resolutions[t][r]=new Yce(r)),a.resolutions[t][r].addMember({view:this,channel:s,channelDef:o});else if(t=="scale"&&Ib(s)){if(!a.resolutions[t][r]){const c=new jce(r);a.resolutions[t][r]=c,c.addEventListener("range",d=>{var u;(u=this.context.glHelper)==null||u.createRangeTexture(d.scaleResolution,!0)})}const l=this.getLayoutAncestors().some(c=>!c.options.contributesToScaleDomain)||zo(o)&&o.contributesToScaleDomain===!1?void 0:this.extractDataDomain.bind(this);a.resolutions[t][r].addMember({view:this,channel:s,channelDef:o,dataDomainSource:l})}}}getDataAccessor(t){var i;return(i=this.mark.encoders[t])==null?void 0:i.dataAccessor}getFacetAccessor(t){const i=this.getDataAccessor("sample");return i||super.getFacetAccessor(this)}getCollector(){return this.context.dataFlow.findCollectorByKey(this)}extractDataDomain(t,i){var o;let s=l$(i);return(((o=this.mark.encoders[t])==null?void 0:o.accessors)??[]).filter(r=>r.scaleChannel).forEach(r=>{if(r.constant)s.extend(r({}));else{const a=this.getCollector();a!=null&&a.completed&&a.visitData(l=>s.extend(r(l)))}}),s}getZoomLevel(){const t=i=>{var s;return((s=this.getScaleResolution(i))==null?void 0:s.getZoomLevel())??1};return Zm.map(t).reduce((i,s)=>i*s,1)}propagateInteractionEvent(t){this.handleInteractionEvent(void 0,t,!0),t.target=this,!t.stopped&&this.handleInteractionEvent(void 0,t,!1)}getDefaultResolution(t,i){return t=="x"?"shared":"independent"}}e1=new WeakMap,Yx=new WeakSet,b$=function(){for(const[t,i]of this.paramMediator.paramConfigs){if(!("select"in i))continue;const s=LH(i.select);if(m4(s)){let r=0;const a=this.paramMediator.getSetter(t),l=()=>{var u;const d=this.context.getCurrentHover();return((u=d==null?void 0:d.mark)==null?void 0:u.unitView)===this?d.datum:null},c=(d,u)=>{const h=u.uiEvent,f=l(),g=f?f[pr]:0;let p;if(s.toggle)if(h.shiftKey){if(f){const v=this.paramMediator.getValue(t);p=Eae(v,{toggle:[f]})}}else p=CH(f?[f]:null);else g!=r&&(r=g,p=wH(f));p!==void 0&&a(p)};this.addInteractionEventListener(["mouseover","pointerover"].includes(s.on)?"mousemove":"click",c)}}};function*w4(n,e=[]){for(const[t,i]of n.entries())if(i instanceof Map)for(const s of w4(i,[...e,t]))yield s;else yield[[...e,t],i]}const v$=2147483647,nde=y$([v$]);function y$(n){let e=0;for(let t=0,i=n.length;tr),i=new Array(n.length);const s=new Array(16);for(let o=0;o
{const d=n[t[c]];return o>=nde?d>v$?Math.floor(d/a)%16:0:d>>r&15};for(let c=0;c =0;c--)i[--s[l(c)]]=t[c];[t,i]=[i,t]}return t}var Fl,t1,Ph,Oh,Yo,HA,$A,UA,C$;class w$ extends g4{constructor(t){super();Oe(this,Yo);Oe(this,Fl,[]);Oe(this,t1,di(pr));Oe(this,Ph,[]);Oe(this,Oh);this.params=t??{type:"collect"},this.observers=[],this.facetBatches=new gc([],JSON.stringify),Le(this,Yo,HA).call(this)}get behavior(){return f4}get label(){return"collect"}reset(){super.reset(),Le(this,Yo,HA).call(this)}handle(t){X(this,Fl).push(t)}beginBatch(t){kae(t)&&(ut(this,Fl,[]),this.facetBatches.set(Zs(t.facetId),X(this,Fl)))}complete(){var o,r;ut(this,Fl,[]);const t=(o=this.params)==null?void 0:o.sort,i=t?zW(t.field,t.order):void 0,s=a=>{i&&a.sort(i)};if((r=this.params.groupby)!=null&&r.length){if(this.facetBatches.size>1)throw new Error("TODO: Support faceted data!");const a=this.facetBatches.get(void 0),l=this.params.groupby.map(d=>di(d)),c=l.length>1?sL(a,...l):ode(a,l[0]);this.facetBatches.clear();for(const[d,u]of w4(c))this.facetBatches.set(d,u)}for(const a of this.facetBatches.values())s(a);Le(this,Yo,C$).call(this),Le(this,Yo,$A).call(this),super.complete();for(const a of this.observers)a(this)}repropagate(){for(const t of this.children)t.reset();Le(this,Yo,$A).call(this);for(const t of this.children)t.complete()}getData(){switch(Le(this,Yo,UA).call(this),this.facetBatches.size){case 0:return[];case 1:return[...this.facetBatches.values()][0];default:{const t=this.facetBatches;return{[Symbol.iterator]:function*(){for(const s of t.values())yield*s}}}}}visitData(t){Le(this,Yo,UA).call(this);for(const i of this.facetBatches.values())for(let s=0;s l.start).right,s=X(this,t1),o=em(l=>s(r(l))).left,r=l=>{const c=i(X(this,Oh),l),d=X(this,Oh)[c-1];return!d||l>=d.stop?void 0:this.facetBatches.get(d.facetId)[l-d.start]},a=o(X(this,Ph),t);if(a>=0){const l=r(X(this,Ph)[a]);if(l&&s(l)===t)return l}}}Fl=new WeakMap,t1=new WeakMap,Ph=new WeakMap,Oh=new WeakMap,Yo=new WeakSet,HA=function(){ut(this,Fl,[]),this.facetBatches.clear(),this.facetBatches.set(void 0,X(this,Fl))},$A=function(){if(this.children.length)for(const[t,i]of this.facetBatches.entries()){if(t){const s={type:"facet",facetId:t};for(const o of this.children)o.beginBatch(s)}for(let s=0,o=i.length;s 0;){const s=i-1>>1,o=this.values[s];if(t>=o)break;this.ids[i]=this.ids[s],this.values[i]=o,i=s}this.ids[i]=e,this.values[i]=t}pop(){if(this.length===0)return;const e=this.ids[0];if(this.length--,this.length>0){const t=this.ids[0]=this.ids[this.length],i=this.values[0]=this.values[this.length],s=this.length>>1;let o=0;for(;o =i)break;this.ids[o]=l,this.values[o]=c,o=r}this.ids[o]=t,this.values[o]=i}return e}peek(){if(this.length!==0)return this.ids[0]}peekValue(){if(this.length!==0)return this.values[0]}shrink(){this.ids.length=this.values.length=this.length}}class rde extends Hn{get behavior(){return fl}constructor(e){super(e),this.params=e,this.startAccessor=di(e.start),this.endAccessor=di(e.end),this.chromAccessor=e.chrom?di(e.chrom):t=>{},this.weightAccessor=e.weight?di(e.weight):t=>1,this.as={coverage:e.as??"coverage",start:e.asStart??e.start,end:e.asEnd??e.end,chrom:e.asChrom??e.chrom},this.createSegment=new Function("start","end","coverage","chrom","return {"+Object.entries(this.as).filter(([t,i])=>i).map(([t,i])=>`${JSON.stringify(i)}: ${t}`).join(", ")+"};"),this.ends=new pS}reset(){super.reset(),this.initialize()}initialize(){const e=this.as.coverage,t=this.as.end,i=this.as.chrom,s=this.startAccessor,o=this.endAccessor,r=this.chromAccessor,a=this.weightAccessor;let l,c,d,u=0,h=NaN;const f=this.ends;f.clear();const g=v=>{this._propagate(v),l=null},p=(v,b,y)=>{if(v==b)return;let w=!1;l&&(l[e]===y?(l[t]=b,w=!0):l[e]!=0&&g(l)),w||(l=this.createSegment(v,b,y,d))},_=()=>{let v=0;for(;(v=f.peekValue())!==void 0;)p(h,v,u),h=v,u-=f.pop();h=NaN,l&&g(l)};this.handle=v=>{const b=s(v);let y=0;for(;(y=f.peekValue())!==void 0&&y{_(),super.complete()},this.beginBatch=v=>{_(),c=null,super.beginBatch(v)}}}function ade(n,e,t=0,i=n.length){const s=new pS,o=i-t;let r;for(r=0;r=s.peekValue()&&(s.push(r,c),s.pop())}const a=[];let l;for(;(l=s.pop())!==void 0;)a.push(t+l);return a.reverse()}class lde{constructor(e,t=-1/0,i=1/0){this.maxSize=e,this.lowerLimit=t,this.upperLimit=i;const s=this.maxSize*2+1;this.lowerLimits=new Float64Array(s),this.upperLimits=new Float64Array(s),this.lowerChildren=new Int32Array(s),this.upperChildren=new Int32Array(s),this.reset()}reset(){this.lowerLimits.fill(0),this.upperLimits.fill(0),this.lowerChildren.fill(0),this.upperChildren.fill(0),this.n=1,this.lowerLimits[0]=this.lowerLimit,this.upperLimits[0]=this.upperLimit}_findSlot(e,t,i=0){if(e>=this.lowerLimits[i]&&t<=this.upperLimits[i]){const s=this.lowerChildren[i];if(s){const o=this._findSlot(e,t,s);return o>=0?o:this._findSlot(e,t,this.upperChildren[i])}else return i}else return-1}reserve(e,t){if(t-e<=0)throw new Error("Cannot reserve an empty or negative-size slot!");if(this.n+1>this.lowerLimits.length)return!1;const i=this._findSlot(e,t);if(i<0)return!1;const s=this.n++,o=this.n++;return this.lowerLimits[s]=this.lowerLimits[i],this.upperLimits[s]=e,this.lowerLimits[o]=t,this.upperLimits[o]=this.upperLimits[i],this.lowerChildren[i]=s,this.upperChildren[i]=o,!0}}class cde extends Hn{get behavior(){return f4}constructor(e,t){if(super(e),this.params=e,this._data=[],this.channel=e.channel??"x",!["x","y"].includes(this.channel))throw new Error("Invalid channel: "+this.channel);this.posAccessor=di(this.params.pos),this.posBisector=em(this.posAccessor),this.scoreAccessor=di(this.params.score),this.widthAccessor=di(this.params.width),this.laneAccessor=this.params.lane?di(this.params.lane):s=>0,this.padding=this.params.padding??0,this.reservationMaps=new Map,this.resolution=t.getScaleResolution(this.channel);const i=()=>this._filterAndPropagate();this.schedule=()=>t.context.animator.requestTransition(i),this.resolution.addEventListener("domain",s=>this.schedule()),t._addBroadcastHandler("layoutComputed",()=>this.schedule())}complete(){const e=this.posAccessor;this._data.sort((t,i)=>e(t)-e(i)),this._scores=this._data.map(this.scoreAccessor);for(const t of new Set(this._data.map(this.laneAccessor)))this.reservationMaps.set(t,new lde(200));this.schedule(),super.complete()}_filterAndPropagate(){super.reset();const e=this.resolution.scale,t=this.resolution.getAxisLength();if(!t)return;for(const r of this.reservationMaps.values())r.reset();const i=e.domain(),o=ade(this._scores,70,this.posBisector.left(this._data,i[0]),this.posBisector.right(this._data,i[1]));for(const r of o){const a=this._data[r],l=e(this.posAccessor(a))*t,c=this.widthAccessor(a)/2+this.padding;this.reservationMaps.get(this.laneAccessor(a)).reserve(l-c,l+c)&&this._propagate(a)}super.complete()}reset(){super.reset(),this._data=[],this.groups=new Map}handle(e){this._data.push(e)}}class dde extends Hn{constructor(e,t){super(e,t),this.params=e,this.predicate=void 0}initialize(){let e="";if(ude(this.params))e=this.params.expr;else if(hde(this.params))e=SH(this.params);else throw new Error("Invalid filter params: "+JSON.stringify(this.params));this.predicate=this.paramMediator.createExpression(e),this.predicate.addListener(()=>this.repropagate())}handle(e){this.predicate(e)&&this._propagate(e)}}function ude(n){return"expr"in n}function hde(n){return"param"in n}class fde extends Hn{get behavior(){return fl}constructor(e){super(e),this.params=e;const t=e.index;if(e.fields){const i=Zs(e.fields).map(o=>di(o)),s=Zs(e.as||e.fields);if(i.length!==s.length)throw new Error(`Lengths of "fields" (${i.length}), and "as" (${s.length}) do not match!`);this.handle=o=>{const r=i.map((l,c)=>l(o)??[]),a=r[0].length;for(let l=0;l{for(let s=0;s {let a=i(r),l=a,c=!0;const d=t(r);for(const u of pde(d)){if(c)l=a+u;else{a=l+u;const h=Object.assign({},r);h[s]=l,h[o]=a,this._propagate(h)}c=!c}}}}class _de extends Hn{get behavior(){return fl}constructor(e){super(e);const t=Zs(e.field).map(o=>di(o)),i=Zs(e.separator),s=Zs(e.as||e.field);if(t.length!==i.length||t.length!==s.length)throw new Error(`Lengths of "separator" (${i.length}), "fields" (${t.length}), and "as" (${s.length}) do not match!`);this.handle=o=>{if(t.some(l=>!l(o)))return;const r=t.map((l,c)=>l(o).split(i[c]));bde(r,o);const a=r[0].length;for(let l=0;li.length);if(!t.every(i=>i==t[0]))throw new Error("Mismatching number of elements in the fields to be split: "+JSON.stringify(e))}class vde extends Hn{get behavior(){return yu}constructor(e,t){super(e,t),this.params=e,this.as=e.as,this.fn=void 0}initialize(){this.fn=this.paramMediator.createExpression(this.params.expr),this.fn.addListener(()=>this.repropagate())}handle(e){e[this.as]=this.fn(e),this._propagate(e)}}class S$ extends Hn{get behavior(){return yu}constructor(e,t){e={channel:"x",...e},super(e),this.params=e;const i=e.channel;if(!["x","y"].includes(i))throw new Error("Invalid channel: "+i);const s=t.getScaleResolution(i).getGenome();if(!s)throw new Error("LinearizeGenomicCoordinate transform requires a locus scale!");const o=di(e.chrom),r=Zs(e.pos).map(g=>di(g)),a=Zs(e.as);if(r.length!=a.length)throw new Error('The number of "pos" and "as" elements must be equal!');const l=Zs(e.offset);let c;if(l.length==0)c=new Array(r.length).fill(0);else if(l.length==1)c=new Array(r.length).fill(l[0]);else if(l.length==r.length)c=l;else throw new Error(`Invalid "offset" parameter: ${JSON.stringify(e.offset)}!`);const d=new Function("datum","chromOffset","posAccessors",a.map((g,p)=>`datum[${JSON.stringify(g)}] = chromOffset + +posAccessors[${p}](datum) - ${c[p]};`).join(` -`));let u,h=0;const f=g=>{if(g!==u){if(h=s.cumulativeChromPositions.get(g),h===void 0)throw new Error("Unknown chromosome/contig: "+g);u=g}return h};this.handle=g=>{d(g,f(o(g)),r),this._propagate(g)}}}const yde=["Lato-Regular.png"],wde=[{id:87,width:53,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:43.491,chnl:15,x:0,y:0,page:0},{id:124,width:17,height:50,xoffset:0,yoffset:-32.193000000000005,xadvance:10.521,chnl:15,x:0,y:42,page:0},{id:40,width:20,height:49,xoffset:0,yoffset:-32.571000000000005,xadvance:11.214,chnl:15,x:0,y:94,page:0},{id:41,width:19,height:49,xoffset:0,yoffset:-32.571000000000005,xadvance:11.214,chnl:15,x:0,y:145,page:0},{id:36,width:32,height:49,xoffset:0,yoffset:-34.419000000000004,xadvance:24.360000000000003,chnl:15,x:0,y:196,page:0},{id:125,width:21,height:48,xoffset:0,yoffset:-32.193000000000005,xadvance:12.642000000000001,chnl:15,x:0,y:247,page:0},{id:91,width:22,height:48,xoffset:0,yoffset:-32.193000000000005,xadvance:12.852,chnl:15,x:0,y:297,page:0},{id:93,width:19,height:48,xoffset:0,yoffset:-32.193000000000005,xadvance:12.852,chnl:15,x:0,y:347,page:0},{id:123,width:21,height:48,xoffset:0,yoffset:-32.193000000000005,xadvance:12.642000000000001,chnl:15,x:0,y:397,page:0},{id:106,width:19,height:48,xoffset:0,yoffset:-30.639000000000003,xadvance:10.08,chnl:15,x:0,y:447,page:0},{id:81,width:43,height:47,xoffset:0,yoffset:-30.429000000000002,xadvance:33.621,chnl:15,x:21,y:447,page:0},{id:77,width:45,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:38.997,chnl:15,x:66,y:447,page:0},{id:64,width:43,height:44,xoffset:0,yoffset:-28.539,xadvance:35.133,chnl:15,x:23,y:397,page:0},{id:92,width:28,height:43,xoffset:0,yoffset:-30.933000000000003,xadvance:18.984,chnl:15,x:68,y:397,page:0},{id:47,width:28,height:43,xoffset:0,yoffset:-30.933000000000003,xadvance:18.984,chnl:15,x:98,y:397,page:0},{id:109,width:42,height:32,xoffset:0,yoffset:-21.609,xadvance:34.545,chnl:15,x:113,y:447,page:0},{id:119,width:42,height:31,xoffset:0,yoffset:-21.315,xadvance:32.991,chnl:15,x:157,y:447,page:0},{id:42,width:25,height:42,xoffset:0,yoffset:-31.626,xadvance:17.85,chnl:15,x:128,y:397,page:0},{id:37,width:42,height:41,xoffset:0,yoffset:-30.387,xadvance:33.663000000000004,chnl:15,x:155,y:397,page:0},{id:79,width:42,height:41,xoffset:0,yoffset:-30.429000000000002,xadvance:33.621,chnl:15,x:199,y:397,page:0},{id:102,width:24,height:41,xoffset:0,yoffset:-30.534000000000002,xadvance:14.721,chnl:15,x:243,y:397,page:0},{id:100,width:31,height:41,xoffset:0,yoffset:-30.933000000000003,xadvance:23.520000000000003,chnl:15,x:269,y:397,page:0},{id:98,width:32,height:41,xoffset:0,yoffset:-30.933000000000003,xadvance:23.520000000000003,chnl:15,x:302,y:397,page:0},{id:56,width:32,height:41,xoffset:0,yoffset:-30.429000000000002,xadvance:24.360000000000003,chnl:15,x:336,y:397,page:0},{id:38,width:40,height:41,xoffset:0,yoffset:-30.429000000000002,xadvance:29.904000000000003,chnl:15,x:370,y:397,page:0},{id:108,width:17,height:41,xoffset:0,yoffset:-30.933000000000003,xadvance:9.912,chnl:15,x:412,y:397,page:0},{id:107,width:31,height:41,xoffset:0,yoffset:-30.933000000000003,xadvance:21.336000000000002,chnl:15,x:431,y:397,page:0},{id:48,width:33,height:41,xoffset:0,yoffset:-30.429000000000002,xadvance:24.360000000000003,chnl:15,x:464,y:397,page:0},{id:71,width:38,height:41,xoffset:0,yoffset:-30.429000000000002,xadvance:30.681,chnl:15,x:21,y:347,page:0},{id:83,width:31,height:41,xoffset:0,yoffset:-30.429000000000002,xadvance:22.785,chnl:15,x:61,y:347,page:0},{id:63,width:27,height:41,xoffset:0,yoffset:-30.429000000000002,xadvance:18.795,chnl:15,x:94,y:347,page:0},{id:105,width:18,height:41,xoffset:0,yoffset:-30.639000000000003,xadvance:10.08,chnl:15,x:123,y:347,page:0},{id:51,width:32,height:41,xoffset:0,yoffset:-30.429000000000002,xadvance:24.360000000000003,chnl:15,x:143,y:347,page:0},{id:104,width:31,height:41,xoffset:0,yoffset:-30.933000000000003,xadvance:23.436,chnl:15,x:177,y:347,page:0},{id:67,width:37,height:41,xoffset:0,yoffset:-30.429000000000002,xadvance:28.056,chnl:15,x:210,y:347,page:0},{id:88,width:37,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:27.258000000000003,chnl:15,x:249,y:347,page:0},{id:68,width:40,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:31.941000000000003,chnl:15,x:288,y:347,page:0},{id:70,width:32,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:23.751,chnl:15,x:330,y:347,page:0},{id:34,width:23,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:15.561000000000002,chnl:15,x:364,y:347,page:0},{id:72,width:38,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:32.067,chnl:15,x:389,y:347,page:0},{id:73,width:18,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:11.760000000000002,chnl:15,x:429,y:347,page:0},{id:74,width:24,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:17.745,chnl:15,x:449,y:347,page:0},{id:75,width:38,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:27.825000000000003,chnl:15,x:24,y:297,page:0},{id:76,width:31,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:21.567,chnl:15,x:475,y:347,page:0},{id:66,width:35,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:27.153000000000002,chnl:15,x:64,y:297,page:0},{id:78,width:38,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:32.067,chnl:15,x:101,y:297,page:0},{id:33,width:18,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:11.298,chnl:15,x:141,y:297,page:0},{id:80,width:34,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:25.221,chnl:15,x:161,y:297,page:0},{id:65,width:38,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:28.434,chnl:15,x:197,y:297,page:0},{id:82,width:36,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:26.313000000000002,chnl:15,x:237,y:297,page:0},{id:35,width:33,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:24.360000000000003,chnl:15,x:275,y:297,page:0},{id:84,width:34,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:24.801000000000002,chnl:15,x:310,y:297,page:0},{id:85,width:37,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:30.891000000000002,chnl:15,x:346,y:297,page:0},{id:86,width:38,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:28.434,chnl:15,x:385,y:297,page:0},{id:39,width:16,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:8.568000000000001,chnl:15,x:425,y:297,page:0},{id:69,width:32,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:24.255000000000003,chnl:15,x:443,y:297,page:0},{id:89,width:36,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:26.208000000000002,chnl:15,x:23,y:247,page:0},{id:90,width:34,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:25.284000000000002,chnl:15,x:477,y:297,page:0},{id:49,width:31,height:40,xoffset:0,yoffset:-30.156000000000002,xadvance:24.360000000000003,chnl:15,x:61,y:247,page:0},{id:50,width:32,height:40,xoffset:0,yoffset:-30.429000000000002,xadvance:24.360000000000003,chnl:15,x:94,y:247,page:0},{id:57,width:32,height:40,xoffset:0,yoffset:-30.429000000000002,xadvance:24.360000000000003,chnl:15,x:128,y:247,page:0},{id:94,width:32,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:24.360000000000003,chnl:15,x:162,y:247,page:0},{id:96,width:21,height:40,xoffset:0,yoffset:-30.429000000000002,xadvance:16.8,chnl:15,x:196,y:247,page:0},{id:55,width:33,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:24.360000000000003,chnl:15,x:219,y:247,page:0},{id:54,width:33,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:24.360000000000003,chnl:15,x:254,y:247,page:0},{id:53,width:32,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:24.360000000000003,chnl:15,x:289,y:247,page:0},{id:52,width:33,height:40,xoffset:0,yoffset:-30.093000000000004,xadvance:24.360000000000003,chnl:15,x:323,y:247,page:0},{id:103,width:31,height:39,xoffset:0,yoffset:-21.630000000000003,xadvance:21.84,chnl:15,x:358,y:247,page:0},{id:112,width:32,height:39,xoffset:0,yoffset:-21.651,xadvance:23.541,chnl:15,x:391,y:247,page:0},{id:113,width:31,height:39,xoffset:0,yoffset:-21.651,xadvance:23.520000000000003,chnl:15,x:425,y:247,page:0},{id:116,width:25,height:39,xoffset:0,yoffset:-28.182000000000002,xadvance:15.057,chnl:15,x:458,y:247,page:0},{id:121,width:31,height:38,xoffset:0,yoffset:-21.273,xadvance:21.651,chnl:15,x:34,y:196,page:0},{id:59,width:18,height:36,xoffset:0,yoffset:-20.706,xadvance:10.983,chnl:15,x:485,y:247,page:0},{id:43,width:32,height:34,xoffset:0,yoffset:-24.486,xadvance:24.360000000000003,chnl:15,x:67,y:196,page:0},{id:60,width:30,height:33,xoffset:0,yoffset:-23.331000000000003,xadvance:24.360000000000003,chnl:15,x:101,y:196,page:0},{id:62,width:31,height:33,xoffset:0,yoffset:-23.331000000000003,xadvance:24.360000000000003,chnl:15,x:133,y:196,page:0},{id:117,width:30,height:32,xoffset:0,yoffset:-21.273,xadvance:23.415000000000003,chnl:15,x:166,y:196,page:0},{id:99,width:29,height:32,xoffset:0,yoffset:-21.609,xadvance:20.055,chnl:15,x:198,y:196,page:0},{id:110,width:31,height:32,xoffset:0,yoffset:-21.609,xadvance:23.436,chnl:15,x:229,y:196,page:0},{id:111,width:32,height:32,xoffset:0,yoffset:-21.609,xadvance:23.814,chnl:15,x:262,y:196,page:0},{id:126,width:32,height:26,xoffset:0,yoffset:-16.128,xadvance:24.360000000000003,chnl:15,x:201,y:447,page:0},{id:101,width:31,height:32,xoffset:0,yoffset:-21.609,xadvance:22.176000000000002,chnl:15,x:296,y:196,page:0},{id:114,width:25,height:32,xoffset:0,yoffset:-21.651,xadvance:15.288,chnl:15,x:329,y:196,page:0},{id:115,width:27,height:32,xoffset:0,yoffset:-21.609,xadvance:18.186,chnl:15,x:356,y:196,page:0},{id:97,width:28,height:32,xoffset:0,yoffset:-21.651,xadvance:20.874000000000002,chnl:15,x:385,y:196,page:0},{id:118,width:31,height:31,xoffset:0,yoffset:-21.273,xadvance:21.672,chnl:15,x:415,y:196,page:0},{id:61,width:31,height:29,xoffset:0,yoffset:-19.089000000000002,xadvance:24.360000000000003,chnl:15,x:448,y:196,page:0},{id:120,width:30,height:31,xoffset:0,yoffset:-21.273,xadvance:20.916,chnl:15,x:21,y:145,page:0},{id:58,width:18,height:31,xoffset:0,yoffset:-20.706,xadvance:10.5,chnl:15,x:53,y:145,page:0},{id:122,width:28,height:31,xoffset:0,yoffset:-21.273,xadvance:18.984,chnl:15,x:73,y:145,page:0},{id:95,width:28,height:16,xoffset:0,yoffset:0,xadvance:19.278000000000002,chnl:15,x:235,y:447,page:0},{id:45,width:23,height:24,xoffset:0,yoffset:-14.175,xadvance:15.603000000000002,chnl:15,x:481,y:196,page:0},{id:44,width:17,height:21,xoffset:0,yoffset:-4.956,xadvance:9.534,chnl:15,x:103,y:145,page:0},{id:46,width:18,height:15,xoffset:0,yoffset:-4.956,xadvance:9.912,chnl:15,x:0,y:497,page:0},{id:32,width:0,height:0,xoffset:0,yoffset:0,xadvance:10.752,chnl:15,x:20,y:497,page:0}],Cde={face:"Lato Regular",size:42,bold:0,italic:0,charset:[" ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","\\","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~"],unicode:1,stretchH:100,smooth:1,aa:1,padding:[0,0,0,0],spacing:[2,2]},Sde={lineHeight:50.400000000000006,base:41.454,scaleW:512,scaleH:512,pages:1,packed:0,alphaChnl:0,redChnl:0,greenChnl:0,blueChnl:0},xde=[],x$={pages:yde,chars:wde,info:Cde,common:Sde,kernings:xde};class Lde extends Hn{get behavior(){return yu}constructor(e){super(e),this.params=e;const t=xA(x$),i=di(e.field),s=e.as,o=e.fontSize;this.handle=r=>{const a=i(r);a!==void 0?r[s]=t.measureWidth(a,o):r[s]=0,this._propagate(r)}}}const Dde=65536;class kde extends Hn{get behavior(){return yu}constructor(e){super(e),this.params=e}reset(){super.reset(),this.initialize()}initialize(){const e=this.params,t=e.as||"lane",i=to(e.spacing)?e.spacing:1,s=di(e.start),o=di(e.end);if(!e.preference!=!e.preferredOrder)throw new Error('Must specify both "preference" and "preferredOrder"');if(e.preference){const r=new Float64Array(Dde),a=di(e.preference),l=e.preferredOrder;let c=1/0;this.handle=d=>{const u=s(d);u =0&&r[h]=r.length)throw new Error("Out of lanes!")}r[f]=o(d)+i,d[t]=f,this._propagate(d)}}else{const r=new pS,a=new pS;let l=-1/0,c=0;this.handle=d=>{const u=s(d);for(;r.length&&(r.peekValue()<=u||u di(s)),i=e.as?e.as:t.map(rQ);this.handle=s=>{const o={};for(let r=0;r {const r=s(o);if(Ti(r)){const a=r.match(t);if(a){if(a.length-1!=i.length)throw new Error('The number of RegEx groups and the length of "as" do not match!');for(let l=0;l