sveast 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +76 -3
- package/core.js +1 -1
- package/entities.js +1 -1
- package/index.d.ts +437 -0
- package/index.js +1 -1
- package/is-valid-type.js +1 -1
- package/lexer.js +3 -3
- package/module.js +1 -1
- package/package.json +6 -1
- package/parse-imports-exports.js +1 -1
- package/parse-module.js +1 -1
- package/parse-sections.js +1 -1
- package/parse.js +1 -1
- package/runes.js +1 -1
- package/scope.d.ts +1792 -0
- package/scope.js +1 -0
- package/shared-2by923ar.js +3 -0
- package/shared-3371ehgf.js +2 -0
- package/shared-4wqe6a27.js +5 -0
- package/shared-4zk9ntab.js +2 -0
- package/shared-artd3d80.js +2 -0
- package/{shared-7q3geqgt.js → shared-c9gzmr05.js} +2 -2
- package/shared-h6c4cer7.js +2 -0
- package/shared-hjcsmz9f.js +2 -0
- package/shared-jxkrk6hx.js +10 -0
- package/{shared-bx03zqyq.js → shared-n0fpkmn8.js} +2 -2
- package/shared-n1wnwhk8.js +3 -0
- package/{shared-wr6wdcs6.js → shared-nbaaegmc.js} +2 -2
- package/shared-rh41v5ez.js +3 -0
- package/shared-shxvsq2a.js +2 -0
- package/{shared-3ez2yv7r.js → shared-stdj6se1.js} +2 -2
- package/{shared-4t495q2a.js → shared-v0nj05q2.js} +2 -2
- package/shared-vjpq32kx.js +2 -0
- package/shared-xyqvjc3m.js +10 -0
- package/shared-znzncsf2.js +2 -0
- package/typescript.js +1 -1
- package/walk.d.ts +247 -0
- package/walk.js +1 -1
- package/shared-1z80250f.js +0 -2
- package/shared-2m9w933n.js +0 -2
- package/shared-3bhr0q10.js +0 -2
- package/shared-bbp47cz4.js +0 -10
- package/shared-cr4ebmgx.js +0 -5
- package/shared-g06vtkxe.js +0 -2
- package/shared-g7qbtk93.js +0 -3
- package/shared-j1r12f45.js +0 -3
- package/shared-njpj8eam.js +0 -2
- package/shared-qbw8n9am.js +0 -2
- package/shared-saxr459v.js +0 -2
- package/shared-wfjkg544.js +0 -10
- package/shared-xa3xp3kp.js +0 -3
package/walk.d.ts
CHANGED
|
@@ -118,6 +118,7 @@ export declare const visitorKeys: {
|
|
|
118
118
|
readonly AwaitExpression: readonly ["argument"];
|
|
119
119
|
readonly ImportExpression: readonly ["source", "options", "arguments"];
|
|
120
120
|
readonly ChainExpression: readonly ["expression"];
|
|
121
|
+
readonly ParenthesizedExpression: readonly ["expression"];
|
|
121
122
|
readonly MetaProperty: readonly ["meta", "property"];
|
|
122
123
|
readonly ObjectPattern: readonly ["decorators", "properties", "typeAnnotation"];
|
|
123
124
|
readonly ArrayPattern: readonly ["decorators", "elements", "typeAnnotation"];
|
|
@@ -250,6 +251,220 @@ export declare const markupVisitorKeys: {
|
|
|
250
251
|
readonly SnippetBlock: readonly ["body"];
|
|
251
252
|
};
|
|
252
253
|
|
|
254
|
+
/**
|
|
255
|
+
* {@link visitorKeys} without TypeScript's types: a {@link walk} with it
|
|
256
|
+
* reaches every value and binding but no type annotation, type
|
|
257
|
+
* parameter, type argument, `implements` clause or type in `as` and
|
|
258
|
+
* `satisfies`, so an `Identifier` it reaches in a TypeScript node is
|
|
259
|
+
* never a type's name. It still enters a declaration that holds only
|
|
260
|
+
* types, such as `type T = ...`, `interface I {}` or an index signature,
|
|
261
|
+
* but not its children, and of `declare function f(): void` it visits
|
|
262
|
+
* only the name. The
|
|
263
|
+
* TypeScript nodes it enters children of hold values: `as`,
|
|
264
|
+
* `satisfies`, `<T>a`, `a!` and `a<T>` hold their expression, an enum
|
|
265
|
+
* its members, a namespace its body, `import a = b` and `export =` their
|
|
266
|
+
* value, and a parameter property its parameter.
|
|
267
|
+
*/
|
|
268
|
+
export declare const valueVisitorKeys: {
|
|
269
|
+
readonly FunctionDeclaration: readonly ["id", "params", "body"];
|
|
270
|
+
readonly FunctionExpression: readonly ["id", "params", "body"];
|
|
271
|
+
readonly ArrowFunctionExpression: readonly ["params", "body"];
|
|
272
|
+
readonly ClassDeclaration: readonly ["decorators", "id", "superClass", "body"];
|
|
273
|
+
readonly ClassExpression: readonly ["decorators", "id", "superClass", "body"];
|
|
274
|
+
readonly MethodDefinition: readonly ["decorators", "key", "value"];
|
|
275
|
+
readonly PropertyDefinition: readonly ["decorators", "key", "value"];
|
|
276
|
+
readonly Identifier: readonly ["decorators"];
|
|
277
|
+
readonly CallExpression: readonly ["callee", "arguments"];
|
|
278
|
+
readonly NewExpression: readonly ["callee", "arguments"];
|
|
279
|
+
readonly TaggedTemplateExpression: readonly ["tag", "quasi"];
|
|
280
|
+
readonly RestElement: readonly ["decorators", "argument"];
|
|
281
|
+
readonly ObjectPattern: readonly ["decorators", "properties"];
|
|
282
|
+
readonly ArrayPattern: readonly ["decorators", "elements"];
|
|
283
|
+
readonly TSTypeAnnotation: readonly [];
|
|
284
|
+
readonly TSTypeParameterDeclaration: readonly [];
|
|
285
|
+
readonly TSTypeParameterInstantiation: readonly [];
|
|
286
|
+
readonly TSTypeParameter: readonly [];
|
|
287
|
+
readonly TSArrayType: readonly [];
|
|
288
|
+
readonly TSTupleType: readonly [];
|
|
289
|
+
readonly TSNamedTupleMember: readonly [];
|
|
290
|
+
readonly TSOptionalType: readonly [];
|
|
291
|
+
readonly TSRestType: readonly [];
|
|
292
|
+
readonly TSUnionType: readonly [];
|
|
293
|
+
readonly TSIntersectionType: readonly [];
|
|
294
|
+
readonly TSConditionalType: readonly [];
|
|
295
|
+
readonly TSInferType: readonly [];
|
|
296
|
+
readonly TSParenthesizedType: readonly [];
|
|
297
|
+
readonly TSTypeOperator: readonly [];
|
|
298
|
+
readonly TSIndexedAccessType: readonly [];
|
|
299
|
+
readonly TSMappedType: readonly [];
|
|
300
|
+
readonly TSLiteralType: readonly [];
|
|
301
|
+
readonly TSTypeReference: readonly [];
|
|
302
|
+
readonly TSTypeQuery: readonly [];
|
|
303
|
+
readonly TSImportType: readonly [];
|
|
304
|
+
readonly TSTypeLiteral: readonly [];
|
|
305
|
+
readonly TSPropertySignature: readonly [];
|
|
306
|
+
readonly TSMethodSignature: readonly [];
|
|
307
|
+
readonly TSCallSignatureDeclaration: readonly [];
|
|
308
|
+
readonly TSConstructSignatureDeclaration: readonly [];
|
|
309
|
+
readonly TSFunctionType: readonly [];
|
|
310
|
+
readonly TSConstructorType: readonly [];
|
|
311
|
+
readonly TSIndexSignature: readonly [];
|
|
312
|
+
readonly TSTypePredicate: readonly [];
|
|
313
|
+
readonly TSInterfaceDeclaration: readonly [];
|
|
314
|
+
readonly TSInterfaceBody: readonly [];
|
|
315
|
+
readonly TSExpressionWithTypeArguments: readonly [];
|
|
316
|
+
readonly TSTypeAliasDeclaration: readonly [];
|
|
317
|
+
readonly TSNamespaceExportDeclaration: readonly [];
|
|
318
|
+
readonly TSDeclareFunction: readonly ["id"];
|
|
319
|
+
readonly TSDeclareMethod: readonly [];
|
|
320
|
+
readonly TSAsExpression: readonly ["expression"];
|
|
321
|
+
readonly TSSatisfiesExpression: readonly ["expression"];
|
|
322
|
+
readonly TSTypeAssertion: readonly ["expression"];
|
|
323
|
+
readonly TSInstantiationExpression: readonly ["expression"];
|
|
324
|
+
readonly Root: readonly ["module", "instance", "fragment", "css"];
|
|
325
|
+
readonly Script: readonly ["attributes", "content"];
|
|
326
|
+
readonly Fragment: readonly ["nodes"];
|
|
327
|
+
readonly Text: readonly [];
|
|
328
|
+
readonly Comment: readonly [];
|
|
329
|
+
readonly ExpressionTag: readonly ["expression"];
|
|
330
|
+
readonly HtmlTag: readonly ["expression"];
|
|
331
|
+
readonly ConstTag: readonly ["declaration"];
|
|
332
|
+
readonly DeclarationTag: readonly ["declaration"];
|
|
333
|
+
readonly DebugTag: readonly ["identifiers"];
|
|
334
|
+
readonly RenderTag: readonly ["expression"];
|
|
335
|
+
readonly AttachTag: readonly ["expression"];
|
|
336
|
+
readonly Attribute: readonly ["value"];
|
|
337
|
+
readonly SpreadAttribute: readonly ["expression"];
|
|
338
|
+
readonly AnimateDirective: readonly ["expression"];
|
|
339
|
+
readonly BindDirective: readonly ["expression"];
|
|
340
|
+
readonly ClassDirective: readonly ["expression"];
|
|
341
|
+
readonly LetDirective: readonly ["expression"];
|
|
342
|
+
readonly OnDirective: readonly ["expression"];
|
|
343
|
+
readonly StyleDirective: readonly ["value"];
|
|
344
|
+
readonly TransitionDirective: readonly ["expression"];
|
|
345
|
+
readonly UseDirective: readonly ["expression"];
|
|
346
|
+
readonly Component: readonly ["attributes", "fragment"];
|
|
347
|
+
readonly TitleElement: readonly ["attributes", "fragment"];
|
|
348
|
+
readonly SlotElement: readonly ["attributes", "fragment"];
|
|
349
|
+
readonly RegularElement: readonly ["attributes", "fragment"];
|
|
350
|
+
readonly SvelteBody: readonly ["attributes", "fragment"];
|
|
351
|
+
readonly SvelteBoundary: readonly ["attributes", "fragment"];
|
|
352
|
+
readonly SvelteComponent: readonly ["expression", "attributes", "fragment"];
|
|
353
|
+
readonly SvelteDocument: readonly ["attributes", "fragment"];
|
|
354
|
+
readonly SvelteElement: readonly ["tag", "attributes", "fragment"];
|
|
355
|
+
readonly SvelteFragment: readonly ["attributes", "fragment"];
|
|
356
|
+
readonly SvelteHead: readonly ["attributes", "fragment"];
|
|
357
|
+
readonly SvelteOptions: readonly ["attributes", "fragment"];
|
|
358
|
+
readonly SvelteSelf: readonly ["attributes", "fragment"];
|
|
359
|
+
readonly SvelteWindow: readonly ["attributes", "fragment"];
|
|
360
|
+
readonly IfBlock: readonly ["test", "consequent", "alternate"];
|
|
361
|
+
readonly EachBlock: readonly ["expression", "context", "key", "body", "fallback"];
|
|
362
|
+
readonly AwaitBlock: readonly ["expression", "pending", "value", "then", "error", "catch"];
|
|
363
|
+
readonly KeyBlock: readonly ["expression", "fragment"];
|
|
364
|
+
readonly SnippetBlock: readonly ["expression", "parameters", "body"];
|
|
365
|
+
readonly StyleSheet: readonly ["attributes", "children"];
|
|
366
|
+
readonly Rule: readonly ["prelude", "block"];
|
|
367
|
+
readonly Atrule: readonly ["block"];
|
|
368
|
+
readonly SelectorList: readonly ["children"];
|
|
369
|
+
readonly ComplexSelector: readonly ["children"];
|
|
370
|
+
readonly RelativeSelector: readonly ["combinator", "selectors"];
|
|
371
|
+
readonly Combinator: readonly [];
|
|
372
|
+
readonly TypeSelector: readonly [];
|
|
373
|
+
readonly IdSelector: readonly [];
|
|
374
|
+
readonly ClassSelector: readonly [];
|
|
375
|
+
readonly AttributeSelector: readonly [];
|
|
376
|
+
readonly PseudoElementSelector: readonly ["args"];
|
|
377
|
+
readonly PseudoClassSelector: readonly ["args"];
|
|
378
|
+
readonly Percentage: readonly [];
|
|
379
|
+
readonly Nth: readonly [];
|
|
380
|
+
readonly NestingSelector: readonly [];
|
|
381
|
+
readonly Block: readonly ["children"];
|
|
382
|
+
readonly Declaration: readonly [];
|
|
383
|
+
readonly Program: readonly ["body"];
|
|
384
|
+
readonly ExpressionStatement: readonly ["expression"];
|
|
385
|
+
readonly BlockStatement: readonly ["body"];
|
|
386
|
+
readonly StaticBlock: readonly ["body"];
|
|
387
|
+
readonly EmptyStatement: readonly [];
|
|
388
|
+
readonly DebuggerStatement: readonly [];
|
|
389
|
+
readonly WithStatement: readonly ["object", "body"];
|
|
390
|
+
readonly ReturnStatement: readonly ["argument"];
|
|
391
|
+
readonly LabeledStatement: readonly ["label", "body"];
|
|
392
|
+
readonly BreakStatement: readonly ["label"];
|
|
393
|
+
readonly ContinueStatement: readonly ["label"];
|
|
394
|
+
readonly IfStatement: readonly ["test", "consequent", "alternate"];
|
|
395
|
+
readonly SwitchStatement: readonly ["discriminant", "cases"];
|
|
396
|
+
readonly SwitchCase: readonly ["test", "consequent"];
|
|
397
|
+
readonly ThrowStatement: readonly ["argument"];
|
|
398
|
+
readonly TryStatement: readonly ["block", "handler", "finalizer"];
|
|
399
|
+
readonly CatchClause: readonly ["param", "body"];
|
|
400
|
+
readonly WhileStatement: readonly ["test", "body"];
|
|
401
|
+
readonly DoWhileStatement: readonly ["body", "test"];
|
|
402
|
+
readonly ForStatement: readonly ["init", "test", "update", "body"];
|
|
403
|
+
readonly ForInStatement: readonly ["left", "right", "body"];
|
|
404
|
+
readonly ForOfStatement: readonly ["left", "right", "body"];
|
|
405
|
+
readonly VariableDeclaration: readonly ["declarations"];
|
|
406
|
+
readonly VariableDeclarator: readonly ["id", "init"];
|
|
407
|
+
readonly ClassBody: readonly ["body"];
|
|
408
|
+
readonly Property: readonly ["decorators", "key", "value"];
|
|
409
|
+
readonly ThisExpression: readonly [];
|
|
410
|
+
readonly Super: readonly [];
|
|
411
|
+
readonly Literal: readonly [];
|
|
412
|
+
readonly PrivateIdentifier: readonly [];
|
|
413
|
+
readonly ArrayExpression: readonly ["elements"];
|
|
414
|
+
readonly ObjectExpression: readonly ["properties"];
|
|
415
|
+
readonly UnaryExpression: readonly ["argument"];
|
|
416
|
+
readonly UpdateExpression: readonly ["argument"];
|
|
417
|
+
readonly BinaryExpression: readonly ["left", "right"];
|
|
418
|
+
readonly LogicalExpression: readonly ["left", "right"];
|
|
419
|
+
readonly AssignmentExpression: readonly ["left", "right"];
|
|
420
|
+
readonly MemberExpression: readonly ["object", "property"];
|
|
421
|
+
readonly ConditionalExpression: readonly ["test", "consequent", "alternate"];
|
|
422
|
+
readonly SequenceExpression: readonly ["expressions"];
|
|
423
|
+
readonly TemplateLiteral: readonly ["quasis", "expressions"];
|
|
424
|
+
readonly TemplateElement: readonly [];
|
|
425
|
+
readonly SpreadElement: readonly ["argument"];
|
|
426
|
+
readonly YieldExpression: readonly ["argument"];
|
|
427
|
+
readonly AwaitExpression: readonly ["argument"];
|
|
428
|
+
readonly ImportExpression: readonly ["source", "options", "arguments"];
|
|
429
|
+
readonly ChainExpression: readonly ["expression"];
|
|
430
|
+
readonly ParenthesizedExpression: readonly ["expression"];
|
|
431
|
+
readonly MetaProperty: readonly ["meta", "property"];
|
|
432
|
+
readonly AssignmentPattern: readonly ["decorators", "left", "right"];
|
|
433
|
+
readonly ImportDeclaration: readonly ["specifiers", "source", "attributes"];
|
|
434
|
+
readonly ImportSpecifier: readonly ["imported", "local"];
|
|
435
|
+
readonly ImportDefaultSpecifier: readonly ["local"];
|
|
436
|
+
readonly ImportNamespaceSpecifier: readonly ["local"];
|
|
437
|
+
readonly ImportAttribute: readonly ["key", "value"];
|
|
438
|
+
readonly ExportNamedDeclaration: readonly ["declaration", "specifiers", "source", "attributes"];
|
|
439
|
+
readonly ExportSpecifier: readonly ["local", "exported"];
|
|
440
|
+
readonly ExportDefaultDeclaration: readonly ["declaration"];
|
|
441
|
+
readonly ExportAllDeclaration: readonly ["exported", "source", "attributes"];
|
|
442
|
+
readonly Decorator: readonly ["expression"];
|
|
443
|
+
readonly TSAnyKeyword: readonly [];
|
|
444
|
+
readonly TSBigIntKeyword: readonly [];
|
|
445
|
+
readonly TSBooleanKeyword: readonly [];
|
|
446
|
+
readonly TSNeverKeyword: readonly [];
|
|
447
|
+
readonly TSNullKeyword: readonly [];
|
|
448
|
+
readonly TSNumberKeyword: readonly [];
|
|
449
|
+
readonly TSObjectKeyword: readonly [];
|
|
450
|
+
readonly TSStringKeyword: readonly [];
|
|
451
|
+
readonly TSSymbolKeyword: readonly [];
|
|
452
|
+
readonly TSUndefinedKeyword: readonly [];
|
|
453
|
+
readonly TSUnknownKeyword: readonly [];
|
|
454
|
+
readonly TSVoidKeyword: readonly [];
|
|
455
|
+
readonly TSThisType: readonly [];
|
|
456
|
+
readonly TSQualifiedName: readonly ["left", "right"];
|
|
457
|
+
readonly TSEnumDeclaration: readonly ["id", "members"];
|
|
458
|
+
readonly TSEnumMember: readonly ["id", "initializer"];
|
|
459
|
+
readonly TSModuleDeclaration: readonly ["id", "body"];
|
|
460
|
+
readonly TSModuleBlock: readonly ["body"];
|
|
461
|
+
readonly TSImportEqualsDeclaration: readonly ["id", "moduleReference"];
|
|
462
|
+
readonly TSExternalModuleReference: readonly ["expression"];
|
|
463
|
+
readonly TSExportAssignment: readonly ["expression"];
|
|
464
|
+
readonly TSParameterProperty: readonly ["parameter"];
|
|
465
|
+
readonly TSNonNullExpression: readonly ["expression"];
|
|
466
|
+
};
|
|
467
|
+
|
|
253
468
|
/**
|
|
254
469
|
* Return it from `enter` or `leave` to end the walk: no further `enter` or
|
|
255
470
|
* `leave` calls, including `leave` on the node's ancestors.
|
|
@@ -289,6 +504,22 @@ export interface Visitor {
|
|
|
289
504
|
*/
|
|
290
505
|
export declare function walk(node: AST.SvelteNode, visitor: Visitor, keys?: VisitorKeys): void;
|
|
291
506
|
|
|
507
|
+
/**
|
|
508
|
+
* Calls `callback` with each of `node`'s child nodes in source order, as
|
|
509
|
+
* {@link walk} would visit them, with the field that holds the child and
|
|
510
|
+
* its index when the field is an array. Allocates nothing. `keys` is as
|
|
511
|
+
* in {@link walk}.
|
|
512
|
+
*/
|
|
513
|
+
export declare function forEachChild(node: AST.SvelteNode, callback: (child: AST.SvelteNode, key: string, index: number | null) => void, keys?: VisitorKeys): void;
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* `node`'s child nodes in source order, as {@link walk} would visit them.
|
|
517
|
+
* The array is made on the first call for each node and `keys`, and the
|
|
518
|
+
* same one is returned after, so don't change it; a node that
|
|
519
|
+
* {@link walk} replaces later isn't in it. `keys` is as in {@link walk}.
|
|
520
|
+
*/
|
|
521
|
+
export declare function children(node: AST.SvelteNode, keys?: VisitorKeys): readonly AST.SvelteNode[];
|
|
522
|
+
|
|
292
523
|
type Namespace = "html" | "svg" | "mathml";
|
|
293
524
|
|
|
294
525
|
export declare namespace AST {
|
|
@@ -1939,6 +2170,20 @@ export declare function extractIdentifiers(pattern: Pattern | TSParameterPropert
|
|
|
1939
2170
|
*/
|
|
1940
2171
|
export declare function isReference(node: AST.SvelteNode, parent: AST.SvelteNode | null): boolean;
|
|
1941
2172
|
|
|
2173
|
+
/**
|
|
2174
|
+
* The `{ line, column }` of `offset` in `text`, line from 1 and column
|
|
2175
|
+
* from 0, as {@link createLocator}'s function gives it, without keeping
|
|
2176
|
+
* a locator: the lines of the last 64 texts are kept, so calls for
|
|
2177
|
+
* several files in any order cost a lookup each after the first.
|
|
2178
|
+
*
|
|
2179
|
+
* ```ts
|
|
2180
|
+
* import { locate } from "sveast";
|
|
2181
|
+
*
|
|
2182
|
+
* `${file}:${locate(source, node.start).line}`;
|
|
2183
|
+
* ```
|
|
2184
|
+
*/
|
|
2185
|
+
export declare function locate(text: string, offset: number): Position;
|
|
2186
|
+
|
|
1942
2187
|
/**
|
|
1943
2188
|
* A function from an offset in `text` to its line, from 1, and column,
|
|
1944
2189
|
* from 0, in UTF-16 code units: what `loc: true` gives the node that
|
|
@@ -1961,3 +2206,5 @@ export declare function isReference(node: AST.SvelteNode, parent: AST.SvelteNode
|
|
|
1961
2206
|
* ```
|
|
1962
2207
|
*/
|
|
1963
2208
|
export declare function createLocator(text: string): (offset: number) => Position;
|
|
2209
|
+
|
|
2210
|
+
export declare function skipTypeWrappers(node: AST.SvelteNode): AST.SvelteNode;
|
package/walk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{p,I,Nt,Ct,x,Pt,g,j,y,L,_t,It}from"./shared-4zk9ntab.js";import{Lt}from"./shared-4wqe6a27.js";export{y as SKIP,j as STOP,It as children,Lt as createLocator,p as extractIdentifiers,_t as forEachChild,I as isReference,Nt as locate,Pt as markupVisitorKeys,Ct as skipTypeWrappers,g as valueVisitorKeys,x as visitorKeys,L as walk};
|
package/shared-1z80250f.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{v}from"./shared-bx03zqyq.js";import{te,le,pe,ce}from"./shared-j1r12f45.js";import{ve}from"./shared-g7qbtk93.js";import{x}from"./shared-4t495q2a.js";import{l}from"./shared-qbw8n9am.js";function f(t,n,c){let p=le(t,n,c);return y(p),pe(p)}function y(t){let{source:n}=t,{tags:c,comments:p}=ve(n),i=t.root.fragment.nodes,a=(e,r)=>{if(r<=e)return;let o=n.slice(e,r),d=o.includes("<")||o.includes("{")?o:v(o,!1,t.entityNames);i.push({type:"Text",start:e,end:r,raw:o,data:d})},s=0,m=0;for(let e of c){for(;m<p.length&&p[m]<e;m+=2){let r=p[m];if(r<s)continue;let o=p[m+1];a(s,r),i.push({type:"Comment",start:r,end:o,data:n.slice(r+4,o-3)}),s=o}if(e<s)continue;a(s,e),t.index=e,te(t);while(t.stack.length>1&&t.index<n.length)ce(t);s=t.index}let u=i.filter((e)=>e.type==="SvelteOptions");i.length=0,i.push(...u)}var S={typescript:l,entityNames:x};function ae(t,n){return f(t,n,S)}
|
|
2
|
-
export{ae};
|
package/shared-2m9w933n.js
DELETED
package/shared-3bhr0q10.js
DELETED
package/shared-bbp47cz4.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import{bt,c,vt,St,d,E,O}from"./shared-cr4ebmgx.js";import{q,J,D,a}from"./shared-wfjkg544.js";import{Y}from"./shared-njpj8eam.js";var ee=/^\t+/;class e extends Error{name="ParseError";code;reason;position;start;end;frame;constructor(t,o,i){super(`${i}
|
|
2
|
-
https://svelte.dev/e/${o}`);this.code=o,this.reason=i;let l=typeof t==="number"?t:t?.start,p=typeof t==="number"?t:t?.end;if(l!==void 0)this.position=[l,p??l],this.start=c(this.position[0]),this.end=c(this.position[1]),this.frame=te(this.start.line-1,this.end.column)}}var W=(t)=>t.replace(ee,(o)=>" ".repeat(o.length));function te(t,o){let i=Math.max(0,t-2),l=[];for(let r=i;r<t+3;r++){let s=St(r);if(s===void 0)break;l.push(s)}let p=String(i+l.length+1).length;return l.map((r,s)=>{let u=`${String(i+s+1).padStart(p," ")}: ${W(r)}`;if(i+s!==t)return u;return`${u}
|
|
3
|
-
${" ".repeat(p+2+W(r.slice(0,o)).length)}^`}).join(`
|
|
4
|
-
`)}function Te(t){throw new e(t,"attribute_duplicate","Attributes need to be unique")}function Ae(t){throw new e(t,"attribute_empty_shorthand","Attribute shorthand cannot be empty")}function we(t,o){throw new e(t,"block_duplicate_clause",`${o} cannot appear more than once within a block`)}function Ee(t){throw new e(t,"block_invalid_continuation_placement","{:...} block is invalid at this position (did you forget to close the preceding element or block?)")}function Ce(t){throw new e(t,"block_invalid_elseif","'elseif' should be 'else if'")}function Ne(t,o,i){throw new e(t,"block_invalid_placement",`{#${o} ...} block cannot be ${i}`)}function _e(t){throw new e(t,"block_unclosed","Block was left open")}function Pe(t){throw new e(t,"block_unexpected_close","Unexpected block closing tag")}function Le(t){throw new e(t,"const_tag_invalid_expression","{@const ...} must consist of a single variable declaration")}function Ie(t){throw new e(t,"css_empty_declaration","Declaration cannot be empty")}function ue(t){throw new e(t,"css_expected_identifier","Expected a valid CSS identifier")}function $e(t){throw new e(t,"css_selector_invalid","Invalid selector")}function Re(t){throw new e(t,"debug_tag_invalid_arguments","{@debug ...} arguments must be identifiers, not arbitrary expressions")}function fe(t){throw new e(t,"declaration_tag_invalid_type","Declaration tags must be `let` or `const` declarations")}function Oe(t){throw new e(t,"directive_invalid_value","Directive value must be a JavaScript expression enclosed in curly braces")}function qe(t,o){throw new e(t,"directive_missing_name",`\`${o}\` name cannot be empty`)}function De(t,o){throw new e(t,"element_invalid_closing_tag",`\`</${o}>\` attempted to close an element that was not open`)}function Be(t,o,i){throw new e(t,"element_invalid_closing_tag_autoclosed",`\`</${o}>\` attempted to close element that was already automatically closed by \`<${i}>\` (cannot nest \`<${i}>\` inside \`<${o}>\`)`)}function re(t,o){throw new e(t,"element_unclosed",`\`<${o}>\` was left open`)}function de(t){throw new e(t,"expected_attribute_value","Expected attribute value")}function Me(t){throw new e(t,"expected_block_type","Expected 'if', 'each', 'await', 'key' or 'snippet'")}function me(t){throw new e(t,"expected_identifier","Expected an identifier")}function Fe(t){throw new e(t,"expected_pattern","Expected identifier or destructure pattern")}function Ve(t){throw new e(t,"expected_tag","Expected 'html', 'render', 'attach', 'const', or 'debug'")}function h(t,o){throw new e(t,"expected_token",`Expected token ${o}`)}function We(t){throw new e(t,"expected_whitespace","Expected whitespace")}function B(t,o){throw new e(t,"js_parse_error",`${o}`)}function je(t){throw new e(t,"render_tag_invalid_expression","`{@render ...}` tags can only contain call expressions")}function ze(t){throw new e(t,"script_duplicate","A component can have a single top-level `<script>` element and/or a single top-level `<script module>` element")}function Ue(t,o){throw new e(t,"script_invalid_attribute_value",`If the \`${o}\` attribute is supplied, it must be a boolean attribute`)}function Ke(t){throw new e(t,"script_invalid_context",'If the context attribute is supplied, its value must be "module"')}function Ge(t,o){throw new e(t,"script_reserved_attribute",`The \`${o}\` attribute is reserved and cannot be used`)}function He(t){throw new e(t,"style_duplicate","A component can have a single top-level `<style>` element")}function Qe(t){throw new e(t,"svelte_component_invalid_this","Invalid component definition — must be an `{expression}`")}function Xe(t){throw new e(t,"svelte_component_missing_this","`<svelte:component>` must have a 'this' attribute")}function ye(t){throw new e(t,"svelte_element_missing_this","`<svelte:element>` must have a 'this' attribute with a value")}function Ye(t,o){throw new e(t,"svelte_meta_duplicate",`A component can only have one \`<${o}>\` element`)}function Je(t,o){throw new e(t,"svelte_meta_invalid_content",`<${o}> cannot have children`)}function Ze(t,o){throw new e(t,"svelte_meta_invalid_placement",`\`<${o}>\` tags cannot be inside elements or blocks`)}function et(t,o){throw new e(t,"svelte_meta_invalid_tag",`Valid \`<svelte:...>\` tag names are ${o}`)}function tt(t){throw new e(t,"svelte_options_deprecated_tag",'"tag" option is deprecated — use "customElement" instead')}function it(t){throw new e(t,"svelte_options_invalid_attribute","`<svelte:options>` can only receive static attributes")}function se(t,o){throw new e(t,"svelte_options_invalid_attribute_value",`Value must be ${o}, if specified`)}function rt(t){throw new e(t,"svelte_options_invalid_customelement",'"customElement" must be a string literal defining a valid custom element name or an object of the form { tag?: string; shadow?: "open" | "none" | `ShadowRootInit`; props?: { [key: string]: { attribute?: string; reflect?: boolean; type: .. } } }')}function st(t){throw new e(t,"svelte_options_invalid_customelement_props",'"props" must be a statically analyzable object literal of the form "{ [key: string]: { attribute?: string; reflect?: boolean; type?: "String" | "Boolean" | "Number" | "Array" | "Object" }"')}function nt(t){throw new e(t,"svelte_options_invalid_customelement_shadow",'"shadow" must be either "open", "none" or `ShadowRootInit` object.')}function xe(t){throw new e(t,"svelte_options_invalid_tagname","Tag name must be lowercase and hyphenated")}function ot(t){throw new e(t,"svelte_options_reserved_tagname","Tag name is reserved")}function at(t,o){throw new e(t,"svelte_options_unknown_attribute",`\`<svelte:options>\` unknown attribute '${o}'`)}function lt(t){throw new e(t,"tag_invalid_name","Expected a valid element or component name. Components must have a valid variable name or dot notation expression")}function pt(t,o,i){throw new e(t,"tag_invalid_placement",`{@${o} ...} tag cannot be ${i}`)}function n(t){throw new e(t,"unexpected_eof","Unexpected end of input")}function ct(t,o){throw new e(t,"unexpected_reserved_word",`'${o}' is a reserved word in JavaScript and cannot be used here`)}function ht(t){throw new e(t,"unterminated_string_constant","Unterminated string constant")}function ut(t){throw new e(t,"void_element_invalid_content","Void elements cannot have children or closing tags")}var w="",j=[],y=0,v=[],g=0;function F(t,o){w=t,j=o,y=0}function V(){return y}function U(t,o,i,l){y=l}function z(t,o,i,l,p,r){y=l;let s=o;if(t&&s.includes(`
|
|
5
|
-
`)){let m=w.lastIndexOf(`
|
|
6
|
-
`,i-1)+1,f=m,_=w.charCodeAt(f);while(_===32||_===9)_=w.charCodeAt(++f);if(f>m)s=ne(s,w.slice(m,f))}let u={type:t?"Block":"Line",value:s,start:i,end:l};if(p&&r)u.loc={start:p,end:r};j.push(u)}function ne(t,o){let i=t.startsWith(o)?o.length:0,l="",p=t.indexOf(`
|
|
7
|
-
`,i);while(p!==-1){if(l+=t.slice(i,p+1),i=p+1,t.startsWith(o,i))i+=o.length;p=t.indexOf(`
|
|
8
|
-
`,i)}return l+t.slice(i)}function K(t,o,i){let l=0,p=o.length;while(l<p){let r=l+p>>>1;if(o[r].start<i)l=r+1;else p=r}if(l>=o.length)return;if(v=o.slice(l).map(({type:r,value:s,start:u,end:m})=>({type:r,value:s,start:u,end:m})),g=0,C(t,void 0,!1),g<v.length&&(v[g].start>=t.end||t.type==="Program")){t.trailingComments??=[];while(g<v.length)t.trailingComments.push(v[g++])}}var oe=new Map([["BlockStatement","body"],["Program","body"],["ArrayExpression","elements"],["ObjectExpression","properties"]]);function M(t,o){for(let i=t;i<o;i++){let l=w.charCodeAt(i);if(l!==44&&l!==41&&l!==32&&l!==9)return!0}return!1}function C(t,o,i){while(g<v.length&&v[g].start<t.start)t.leadingComments??=[],t.leadingComments.push(v[g++]);if(g>=v.length)return;let l=v[g].start;if(l<t.end||!M(t.end,l)){let p=E(t),r=oe.get(t.type),s=r===void 0?void 0:p[r],u=Array.isArray(s)&&s.length===0;for(let m in p){if(g>=v.length)return;if(m==="type")continue;let f=p[m];if(Array.isArray(f)){let _=m===r;for(let x=0;x<f.length;x++){let I=f[x];if(d(I))C(I,t,_?x===f.length-1:u)}}else if(d(f))C(f,t,u)}if(g>=v.length)return}if(o!==void 0&&t.end===o.end)return;if(i)while(g<v.length){if(o&&v[g].start>=o.end)break;t.trailingComments??=[],t.trailingComments.push(v[g++])}else if(t.end<=v[g].start&&!M(t.end,v[g].start))t.trailingComments=[v[g++]]}var R=new Set("arguments await break case catch class const continue debugger default delete do else enum eval export extends false finally for function if implements import in instanceof interface let new null package private protected public return static super switch this throw true try typeof var void while with yield".split(" "));var L=!1,k=1,ie=2,ae=32,ce=256,le=k|ie|ce,pe=2,he=3,ve=4,ke=/\r\n?|\n|\u2028|\u2029/,X=new Map;function N(t){if(!(t instanceof RegExp))return t;let o=X.get(t);if(!o){let i=new Set(t.source.slice(4,-2).split("|"));o={test:(l)=>i.has(l)},X.set(t,o)}return o}var ge=q((t)=>class extends t{declareName(o,i,l){let p=!1;if(i===pe){let r=this.currentScope();if(p=a(r.lexical,o)||a(r.functions,o)||a(r.var,o),r.lexical.push(o),this.inModule&&r.flags&k)delete this.undefinedExports[o]}else if(i===ve)this.currentScope().lexical.push(o);else if(i===he){let r=this.currentScope();p=this.treatFunctionsAsVar?a(r.lexical,o):a(r.lexical,o)||a(r.var,o),r.functions.push(o)}else for(let r=this.scopeStack.length-1;r>=0;--r){let s=this.scopeStack[r];if(a(s.lexical,o)&&!(s.flags&ae&&s.lexical[0]===o)||!this.treatFunctionsAsVarInScope(s)&&a(s.functions,o)){p=!0;break}if(s.var.push(o),this.inModule&&s.flags&k)delete this.undefinedExports[o];if(s.flags&le)break}if(p)this.raiseRecoverable(l,`Identifier '${o}' has already been declared`)}}),be=q((t)=>{let{keywordTypes:o,tokTypes:i}=t.acorn,l=new Map("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this const class extends export import super".split(" ").map((r)=>[r,o[r]])),p;return class extends t{constructor(r,s,u){super(r,s,u);this.keywords=N(this.keywords),this.reservedWords=N(this.reservedWords),this.reservedWordsStrict=N(this.reservedWordsStrict),this.reservedWordsStrictBind=N(this.reservedWordsStrictBind),p??=this.context[0]}reset(r,s,u){if(super.reset?.(r,s,u),this.input=r,this.containsEsc=!1,this.pos=s,u)this.lineStart=s-u.column,this.curLine=u.line;else this.lineStart=r.lastIndexOf(`
|
|
9
|
-
`,s-1)+1,this.curLine=this.options.locations?r.slice(0,this.lineStart).split(ke).length:1;this.type=i.eof,this.value=null,this.start=this.end=s,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=s;let m=this.context;if(m.length!==1||m[0]!==p)this.context=this.initialContext();if(this.exprAllowed=!0,this.strict=!0,this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels.length>0)this.labels=[];for(let x in this.undefinedExports){this.undefinedExports=Object.create(null);break}let f=this.scopeStack,_=f[0];if(f.length!==1||_.flags!==k||_.var.length>0||_.lexical.length>0||_.functions.length>0||_.tsTypes!==void 0||_.tsExportOnly!==void 0||_.tsEnums!==void 0)this.scopeStack=[],this.enterScope(k);if(this.regexpState=null,this.privateNameStack.length>0)this.privateNameStack=[];this.inTemplateElement=!1}parseParenAndDistinguishExpression(r,s){let u=super.parseParenAndDistinguishExpression(r,s);if(u.type==="ParenthesizedExpression")L=!0;return u}checkUnreserved(r){if(R.has(r.name))super.checkUnreserved(r)}canInsertSemicolon(){let r=this.type;return r===i.eof||r===i.braceR||D(this.input,this.lastTokEnd,this.start)}checkLocalExport(){}skipSpace(){let r=this.input,s=this.options.locations,u=this.pos,m=r.charCodeAt(u);for(;;)if(m===32||m===9)m=r.charCodeAt(++u);else if(m===10){if(m=r.charCodeAt(++u),s)this.curLine++,this.lineStart=u}else break;if(this.pos=u,m===47||m<33||m>=128)super.skipSpace()}readWord1(){let r=this.input,s=this.pos,u=s,m=r.charCodeAt(u),f=0;while(m>=97&&m<=122||m>=65&&m<=90||m>=48&&m<=57||m===95||m===36)f=Math.imul(f,31)+m|0,m=r.charCodeAt(++u);if(m>=128||m===92)return super.readWord1();return this.containsEsc=!1,this.pos=u,bt(r,s,u,f)}readWord(){let r=this.readWord1();return this.finishToken(l.get(r)??i.name,r)}}}),G=J(ge,be),Se=/ \(\d+:\d+\)$/;function b(t){return t}function H(t){return t instanceof SyntaxError&&"pos"in t&&typeof t.pos==="number"}function S(t,o,i,l,p,r=t.root.comments.length){let s=t.root.comments;F(o,s);let u={onComment:t.comments?z:U,sourceType:"module",ecmaVersion:16,locations:t.loc,preserveParens:l};if(t.lfOnly)u.startLocation=c(i);let m=t.isTypeScript?t.typescript:G;if(!m)Y();let f;try{f=p(m,u)}catch(_){if(!H(_))throw _;B(_.pos,_.message.replace(Se,""))}if(s.length>r)K(b(f),s,i);return f}function Q(t,o,i=0){return b(S(t,o,0,!1,(l,p)=>{if(i>0&&p.locations)p.startLocation=c(i);let r=new l(p,o,i).parse();return r.start=0,r},0))}function _t(t,o){if(!o)return{line:1,column:0};let{column:i}=c(t);return{line:vt(t-i)+1,column:i}}var gt={count:0},P,xt=(t)=>t.parseExpression();function wt(t,o,i,l,p){let r=P;if(P=void 0,r?.ParserClass===t&&r.onComment===o.onComment&&r.locations===o.locations&&r.parser.reset)r.parser.reset(i,l,o.startLocation);else r={ParserClass:t,onComment:o.onComment,locations:o.locations,parser:new t(o,i,l)};let s=r.parser;s.nextToken();let u=p(s);return s.input="",P=r,u}function Z(t,o,i,l){return gt.count+=1,L=!1,S(t,o,i,!0,(p,r)=>(r.startLocation??=_t(i,r.locations),wt(p,r,o,i,l)))}function T(t,o,i,l=!1){let p=b(Z(t,o,i,xt)),r=Math.max(p.end,V());return{node:L&&!l?A(p):p,end:r}}function ft(t,o,i){let l=t.root.comments.length,p=!0,r=Z(t,o,i,(u)=>{let m={shorthandAssign:-1,trailingComma:-1,parenthesizedAssign:-1,parenthesizedBind:-1,doubleProto:-1},f=u.parseMaybeConditional(void 0,m);if(u.type!==G.acorn.tokTypes.eof)return p=!1,f;let _=u.toAssignable(f,!1,m);return u.checkLValPattern(_),_});if(!p){t.root.comments.length=l;return}let s=b(r);return L?A(s):s}function dt(t,o,i){return b(S(t,o,i,!1,(l,p)=>{let r=new l(p,o,i);try{return r.nextToken(),r.parseStatement(null,!0,Object.create(null))}catch(s){if(H(s)&&s.pos===o.length)n(o.length);throw s}}))}function mt(t,o,i){let l=S(t,o,0,!1,(p,r)=>{let s=new p(r,o,0),u=s.startNode(),m=[],f=Object.create(null);return i((_)=>{s.pos=_,s.context=s.initialContext(),s.exprAllowed=!0,s.nextToken();let x=s.parseStatement(null,!0,f);return m.push(x),x.end}),u.body=m,s.finishNode(u,"Program")});return b(l).body}function A(t){let o=t;while(o.type==="ParenthesizedExpression")o=o.expression;return O(o,A),o}
|
|
10
|
-
export{e,Te,Ae,we,Ee,Ce,Ne,_e,Pe,Le,Ie,ue,$e,Re,fe,Oe,qe,De,Be,re,de,Me,me,Fe,Ve,h,We,je,ze,Ue,Ke,Ge,He,Qe,Xe,ye,Ye,Je,Ze,et,tt,it,se,rt,st,nt,xe,ot,at,lt,pt,n,ct,ht,ut,R,ge,be,Q,T,ft,dt,mt};
|
package/shared-cr4ebmgx.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
var m=Array(2048).fill(void 0);function g(){m.fill(void 0)}function bt(e,n,t,r){let i=r&2047,o=m[i];if(o!==void 0&&o.length===t-n&&e.startsWith(o,n))return o;let b=e.slice(n,t);return m[i]=b,b}var p="",s=[0],l=0,f=0,u;function A(e){g(),p=e,s=[0],l=0,f=0,u=void 0}function h(e){while(l<=e){let n=p.indexOf(`
|
|
2
|
-
`,l);if(n===-1){l=Number.POSITIVE_INFINITY;return}l=n+1,s.push(l)}}function y(e){let n=[0],t=e.indexOf(`
|
|
3
|
-
`);while(t!==-1)n.push(t+1),t=e.indexOf(`
|
|
4
|
-
`,t+1);return n}function x(e,n,t){let r=0,i=e.length-1;if(n>=e[t])r=t;else i=t-1;if(r<i&&n<e[r+1])i=r;while(r<i){let o=r+i+1>>>1;if(e[o]<=n)r=o;else i=o-1}return r}function c(e){return h(e),f=x(s,e,f),{line:f+1,column:e-s[f],character:e}}var a=/\r\n?|\n|\u2028|\u2029/g,N=/[\r\u2028\u2029]/;function vt(e){if(u===void 0){u=N.test(p)?[]:null,a.lastIndex=0;while(u!==null&&a.exec(p)!==null)u.push(a.lastIndex)}if(u===null)return h(e),x(s,e,f);let n=0,t=u.length;while(n<t){let r=n+t>>>1;if(u[r]<=e)n=r+1;else t=r}return n}function w(e){let{line:n,column:t}=c(e);return{line:n,column:t}}function St(e){while(s.length<=e+1&&l!==Number.POSITIVE_INFINITY)h(l);if(e>=s.length)return;let n=e+1<s.length?s[e+1]-1:p.length;return p.slice(s[e],n)}function Tt(e){let n,t=0;return(r)=>(n??=y(e),t=x(n,r,t),{line:t+1,column:r-n[t]})}function d(e){return typeof e==="object"&&e!==null&&typeof E(e).type==="string"}function E(e){return e}function O(e,n){let t=E(e);for(let r in t){let i=t[r];if(Array.isArray(i)){for(let o=0;o<i.length;o++)if(d(i[o]))i[o]=n(i[o])}else if(d(i))t[r]=n(i)}}function ne(e,...n){if(!n.some((t)=>t===e.type))throw Error(`expected ${n.join(" or ")}, got ${e.type}`)}
|
|
5
|
-
export{bt,A,c,vt,w,St,Tt,d,E,O,ne};
|
package/shared-g06vtkxe.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{d,E}from"./shared-cr4ebmgx.js";function C(t){let e=[];return i(t,e),e}function i(t,e){switch(t.type){case"Identifier":e.push(t);return;case"ObjectPattern":for(let r of t.properties)i(r.type==="RestElement"?r.argument:r.value,e);return;case"ArrayPattern":for(let r of t.elements)if(r!==null)i(r,e);return;case"RestElement":i(t.argument,e);return;case"AssignmentPattern":i(t.left,e);return;case"TSParameterProperty":i(t.parameter,e);return;case"TSAsExpression":case"TSNonNullExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":i(t.expression,e)}}function Z(t,e){if(t.type!=="Identifier")return!1;if(e===null)return!0;switch(e.type){case"MemberExpression":return e.computed||t===e.object;case"MethodDefinition":return e.computed;case"Property":case"PropertyDefinition":return e.computed||t===e.value;case"ExportSpecifier":case"ImportSpecifier":return t===e.local;case"MetaProperty":case"ImportAttribute":case"ExportAllDeclaration":case"LabeledStatement":case"BreakStatement":case"ContinueStatement":return!1;case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":case"TSInstantiationExpression":case"TSExportAssignment":return t===e.expression;case"TSEnumMember":return t===e.initializer;case"TSParameterProperty":case"TSEnumDeclaration":case"TSImportEqualsDeclaration":return!0;default:return!e.type.startsWith("TS")}}var B={Root:["module","instance","fragment","css"],Script:["attributes","content"],Fragment:["nodes"],Text:[],Comment:[],ExpressionTag:["expression"],HtmlTag:["expression"],ConstTag:["declaration"],DeclarationTag:["declaration"],DebugTag:["identifiers"],RenderTag:["expression"],AttachTag:["expression"],Attribute:["value"],SpreadAttribute:["expression"],AnimateDirective:["expression"],BindDirective:["expression"],ClassDirective:["expression"],LetDirective:["expression"],OnDirective:["expression"],StyleDirective:["value"],TransitionDirective:["expression"],UseDirective:["expression"],Component:["attributes","fragment"],TitleElement:["attributes","fragment"],SlotElement:["attributes","fragment"],RegularElement:["attributes","fragment"],SvelteBody:["attributes","fragment"],SvelteBoundary:["attributes","fragment"],SvelteComponent:["expression","attributes","fragment"],SvelteDocument:["attributes","fragment"],SvelteElement:["tag","attributes","fragment"],SvelteFragment:["attributes","fragment"],SvelteHead:["attributes","fragment"],SvelteOptions:["attributes","fragment"],SvelteSelf:["attributes","fragment"],SvelteWindow:["attributes","fragment"],IfBlock:["test","consequent","alternate"],EachBlock:["expression","context","key","body","fallback"],AwaitBlock:["expression","pending","value","then","error","catch"],KeyBlock:["expression","fragment"],SnippetBlock:["expression","parameters","body"],StyleSheet:["attributes","children"],Rule:["prelude","block"],Atrule:["block"],SelectorList:["children"],ComplexSelector:["children"],RelativeSelector:["combinator","selectors"],Combinator:[],TypeSelector:[],IdSelector:[],ClassSelector:[],AttributeSelector:[],PseudoElementSelector:["args"],PseudoClassSelector:["args"],Percentage:[],Nth:[],NestingSelector:[],Block:["children"],Declaration:[],Program:["body"],ExpressionStatement:["expression"],BlockStatement:["body"],StaticBlock:["body"],EmptyStatement:[],DebuggerStatement:[],WithStatement:["object","body"],ReturnStatement:["argument"],LabeledStatement:["label","body"],BreakStatement:["label"],ContinueStatement:["label"],IfStatement:["test","consequent","alternate"],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],CatchClause:["param","body"],WhileStatement:["test","body"],DoWhileStatement:["body","test"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","typeParameters","params","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],ArrowFunctionExpression:["typeParameters","params","returnType","body"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","implements","body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","implements","body"],ClassBody:["body"],MethodDefinition:["decorators","key","typeParameters","value"],PropertyDefinition:["decorators","key","typeAnnotation","value"],Property:["decorators","key","value"],ThisExpression:[],Super:[],Literal:[],Identifier:["decorators","typeAnnotation"],PrivateIdentifier:[],ArrayExpression:["elements"],ObjectExpression:["properties"],UnaryExpression:["argument"],UpdateExpression:["argument"],BinaryExpression:["left","right"],LogicalExpression:["left","right"],AssignmentExpression:["left","right"],MemberExpression:["object","property"],ConditionalExpression:["test","consequent","alternate"],CallExpression:["callee","typeArguments","arguments"],NewExpression:["callee","typeArguments","arguments"],SequenceExpression:["expressions"],TemplateLiteral:["quasis","expressions"],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:[],SpreadElement:["argument"],RestElement:["decorators","argument","typeAnnotation"],YieldExpression:["argument"],AwaitExpression:["argument"],ImportExpression:["source","options","arguments"],ChainExpression:["expression"],MetaProperty:["meta","property"],ObjectPattern:["decorators","properties","typeAnnotation"],ArrayPattern:["decorators","elements","typeAnnotation"],AssignmentPattern:["decorators","left","right"],ImportDeclaration:["specifiers","source","attributes"],ImportSpecifier:["imported","local"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportAttribute:["key","value"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ExportDefaultDeclaration:["declaration"],ExportAllDeclaration:["exported","source","attributes"],Decorator:["expression"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterDeclaration:["params"],TSTypeParameterInstantiation:["params"],TSTypeParameter:["constraint","default"],TSAnyKeyword:[],TSBigIntKeyword:[],TSBooleanKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSNamedTupleMember:["label","elementType"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","nameType","typeAnnotation"],TSLiteralType:["literal"],TSTypeReference:["typeName","typeArguments"],TSQualifiedName:["left","right"],TSTypeQuery:["exprName","typeArguments"],TSImportType:["argument","qualifier","typeArguments"],TSTypeLiteral:["members"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation"],TSFunctionType:["typeParameters","parameters","typeAnnotation"],TSConstructorType:["typeParameters","parameters","typeAnnotation"],TSIndexSignature:["decorators","parameters","typeAnnotation"],TSTypePredicate:["parameterName","typeAnnotation"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSDeclareFunction:["id","typeParameters","params","returnType"],TSDeclareMethod:["typeParameters","params","returnType"],TSParameterProperty:["parameter"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSNonNullExpression:["expression"],TSInstantiationExpression:["expression","typeArguments"]},n=["attributes","fragment"],kt={Root:["fragment"],Fragment:["nodes"],Text:[],Comment:[],ExpressionTag:[],HtmlTag:[],ConstTag:[],DeclarationTag:[],DebugTag:[],RenderTag:[],AttachTag:[],Attribute:["value"],SpreadAttribute:[],AnimateDirective:[],BindDirective:[],ClassDirective:[],LetDirective:[],OnDirective:[],StyleDirective:["value"],TransitionDirective:[],UseDirective:[],Component:n,TitleElement:n,SlotElement:n,RegularElement:n,SvelteBody:n,SvelteBoundary:n,SvelteComponent:n,SvelteDocument:n,SvelteElement:n,SvelteFragment:n,SvelteHead:n,SvelteOptions:n,SvelteSelf:n,SvelteWindow:n,IfBlock:["consequent","alternate"],EachBlock:["body","fallback"],AwaitBlock:["pending","then","catch"],KeyBlock:["fragment"],SnippetBlock:["body"]},g=Object.assign(Object.create(null),B),b=[],M=Symbol("sveast.walk.stop"),f=Symbol("sveast.walk.skip");function N(t,e,r){m(t,null,null,null,e,r===void 0||r===B?A:(a)=>Object.hasOwn(r,a.type)?r[a.type]:void 0)}function m(t,e,r,a,s,l){let p=l(t);if(p===void 0)throw Error(`unknown node type: ${t.type}`);let o=s.enter?.(t,e,r,a);if(o===M)return!0;if(o!==f){if(o!==t&&d(o))return v(o,e,r,a,s,l);let x=E(t);for(let u=0;u<p.length;u++){let S=p[u],c=x[S];if(Array.isArray(c))for(let y=0;y<c.length;y++){let T=c[y];if(d(T)&&m(T,t,S,y,s,l))return!0}else if(d(c)&&m(c,t,S,null,s,l))return!0}}return s.leave?.(t,e,r,a)===M}function A(t){let e=t.type;if(e==="Identifier")return t.typeAnnotation===void 0&&t.decorators===void 0?b:B.Identifier;if(e==="Literal")return B.Literal;if(e==="Text")return B.Text;return g[e]}function v(t,e,r,a,s,l){if(e===null||r===null)throw Error("walk can't replace the node it was called with");let p=E(e),o=p[r];if(a===null)p[r]=t;else if(Array.isArray(o))o[a]=t;return m(t,e,r,a,s,l)}
|
|
2
|
-
export{C,Z,B,kt,M,f,N};
|
package/shared-g7qbtk93.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{W}from"./shared-3ez2yv7r.js";import{S,i,t,z,U,K,I,G,p,k,H}from"./shared-wr6wdcs6.js";import{_}from"./shared-xa3xp3kp.js";var T="{",v=60,C=62,x=47,y=61,b=123,E=/\s*>/y,L=/<\/textarea(\s[^>]*)?>/iy,N=["cript","tyle","velte:options"],O="</svelte:options";function ee(e){let r=S(e).trimEnd();return w(r,z(r),null)}function ve(e){let r={tags:[],comments:[]};return w(e,!1,r),r}function w(e,r,d){let n={typescript:r,instance:null,module:null,css:null,options:null},o=M(e),s=[],l=0;while(l<=o){let f=e.charCodeAt(l);if(f===v)l=R(e,l,s,n,d);else if(f===b)l=B(e,l,s);else l++}return n}function M(e){let r=-1,d=e.indexOf("<s");while(d!==-1){let n=q(e,d+2);if(n!==-1){let o=e.charCodeAt(n);if(n===e.length||i(o)||o===x||o===C)r=d}d=e.indexOf("<s",d+2)}return r}function q(e,r){for(let d of N)if(e.startsWith(d,r))return r+d.length;return-1}function A(e,r){return Math.min(_(e,r)+1,e.length)}function B(e,r,d){let n=t(e,r+1),o=e.charCodeAt(n),s=e.charCodeAt(n+1);if(o===35||o===58||o===64||o===x&&s!==x&&s!==42){n++;while(n<e.length){let l=e.charCodeAt(n);if(l<97||l>122)break;n++}if(o===35)d.push(T);else if(o===x){let l=d.lastIndexOf(T);if(l!==-1)d.length=l}}return A(e,n)}function R(e,r,d,n,o){if(e.startsWith("!--",r+1)){let h=e.indexOf("-->",r+4),c=h===-1?e.length:h+3;if(o&&d.length===0)o.comments.push(r,c);return c}if(e.charCodeAt(r+1)===x){let h=r+2,c=e.slice(h,k(e,h,!1)),g=d.lastIndexOf(c);if(g!==-1)d.length=g;return u(e,t(e,h+c.length))}let s=e.slice(r+1,k(e,r+1,!1)),l=t(e,r+1+s.length),f=d[d.length-1];if(f!==void 0&&W(f,s))d.pop();let a=d.length===0;if(o&&a&&(s==="script"||s==="style"||s==="svelte:options"))o.tags.push(r);if(a&&(s==="script"||s==="style")){let h=[];if(l=u(e,Q(e,l,h)),s==="script"){let g=V(e,r,l,h);if(g.context==="module")n.module??=g;else n.instance??=g;return g.end}let c=X(e,r,l,h);return n.css??=c,c.end}let m=a&&s==="svelte:options"?[]:null;if(l=D(e,l,m),e.charCodeAt(l)===x||I(s)){if(e.charCodeAt(l)===x)l++;l=u(e,l)}else{if(l=u(e,l),s==="textarea")return Y(e,l);if(s==="script"||s==="style"){let h=`</${s}>`,c=e.indexOf(h,l);return c===-1?e.length:c+h.length}if(m&&e.startsWith(O,l))l=u(e,t(e,l+O.length));else return d.push(s),l}if(m)n.options??={start:r,end:l,attributes:m};return l}function u(e,r){return e.charCodeAt(r)===C?r+1:r}function V(e,r,d,n){let o=U(e,d),s=o===-1?e.length:o,l=n.some((f)=>f.name==="module"||f.name==="context");return{start:r,end:o===-1?e.length:K(e,o),context:l?"module":"default",attributes:n,content:{start:d,end:s}}}function X(e,r,d,n){let o=G(e,d),s=o;if(e.startsWith("</style",s)){s+=7,E.lastIndex=s;let l=E.exec(e);if(l)s+=l[0].length}return{start:r,end:s,attributes:n,content:{start:d,end:o}}}function Q(e,r,d){let n=r;for(;;){let o=n,s=k(e,n,!0);if(s===o)return n;n=s;let l=!0;if(e.charCodeAt(n)===y){let f=t(e,n+1),a=e.charCodeAt(f),m=-1;if(p(a)){let c=e.indexOf(e[f],f+1);if(c!==-1)m=c+1}if(m===-1){m=f;while(m<e.length&&e.charCodeAt(m)!==C&&!i(e.charCodeAt(m)))m++}let h=p(a)?1:0;l=e.slice(f+h,m-h),n=m}d.push({name:e.slice(o,s),value:l,start:o,end:n}),n=t(e,n)}}function D(e,r,d){let n=r;for(;;){for(;;){if(e.startsWith("/*",n)){let a=e.indexOf("*/",n+2);n=a===-1?e.length:a+2}else if(e.startsWith("//",n)){let a=e.indexOf(`
|
|
2
|
-
`,n+2);n=a===-1?e.length:a}else break;n=t(e,n)}let o=n;if(e.charCodeAt(n)===b){n=t(e,A(e,n+1));continue}let s=k(e,n,!0);if(s===o)return n;let l=s,f=!0;if(n=t(e,s),e.charCodeAt(n)===y){let a=t(e,n+1);l=e.startsWith("/>",a)?a+1:P(e,a),f=p(e.charCodeAt(a))?e.slice(a+1,Math.max(a+1,l-1)):e.slice(a,l),n=t(e,l)}d?.push({name:e.slice(o,s),value:f,start:o,end:l})}}function P(e,r){let d=e.charCodeAt(r);if(p(d)){let o=r+1;while(o<e.length){let s=e.charCodeAt(o);if(s===d)return o+1;o=s===b?A(e,o+1):o+1}return e.length}let n=r;while(n<e.length&&!H(e,n))n=e.charCodeAt(n)===b?A(e,n+1):n+1;return n}function Y(e,r){let d=r;while(d<e.length){let n=e.charCodeAt(d);if(n===v){if(L.lastIndex=d,L.test(e))return L.lastIndex}d=n===b?A(e,d+1):d+1}return e.length}
|
|
3
|
-
export{ee,ve};
|
package/shared-j1r12f45.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{W}from"./shared-3ez2yv7r.js";import{A,c,w,O,ne}from"./shared-cr4ebmgx.js";import{u,y}from"./shared-wfjkg544.js";import{e,Te,Ae,we,Ee,Ce,Ne,_e,Pe,Le,Ie,ue,$e,Re,fe,Oe,qe,De,Be,re,de,Me,me,Fe,Ve,h,We,je,ze,Ue,Ke,Ge,He,Qe,Xe,ye,Ye,Je,Ze,et,tt,it,se,rt,st,nt,xe,ot,at,lt,pt,n,ct,ht,ut,R,Q,T,ft,dt}from"./shared-bbp47cz4.js";import{S,s,i,t,z,U,K,I,G,p,k,H}from"./shared-wr6wdcs6.js";import{v}from"./shared-bx03zqyq.js";import{Y}from"./shared-njpj8eam.js";var Yn=/\r(?!\n)|[\u2028\u2029]/,J=/\s*}/y;function ee(r,o){let l=r.codePointAt(o);if(l===void 0||!u(l,!0))return o;let a=o+(l<=65535?1:2),d=r.codePointAt(a);while(d!==void 0&&y(d,!0))a+=d<=65535?1:2,d=r.codePointAt(a);return a}class be{source;index=0;loc;lfOnly;isTypeScript;typescript;entityNames;css;script;comments;root;stack;fragments;metaTags=new Set;lastAutoClosedTag;nextAngle=-1;nextBrace=-1;constructor(r,o,l,a={}){if(this.source=r,this.loc=a.loc??!1,this.lfOnly=this.loc&&!Yn.test(r),this.isTypeScript=z(r),this.typescript=l.typescript,this.isTypeScript&&!this.typescript)Y();this.entityNames=l.entityNames,this.css=a.css??!0,this.script=a.script??!0,this.comments=a.comments??!0,this.root={type:"Root",start:0,end:o,css:null,js:[],options:null,fragment:{type:"Fragment",nodes:[]},comments:[]},this.stack=[this.root],this.fragments=[this.root.fragment]}match(r){if(r.length===1)return this.source.charCodeAt(this.index)===r.charCodeAt(0);return this.source.startsWith(r,this.index)}matchRegex(r){return r.lastIndex=this.index,r.exec(this.source)?.[0]??null}eat(r,o=!1){if(this.match(r))return this.index+=r.length,!0;if(o)h(this.index,r);return!1}read(r){let o=this.matchRegex(r);if(o)this.index+=o.length;return o}readUntil(r){if(this.index>=this.source.length)n(this.source.length);let o=this.source.indexOf(r,this.index),l=o===-1?this.source.length:o,a=this.source.slice(this.index,l);return this.index=l,a}allowWhitespace(){this.index=t(this.source,this.index)}requireWhitespace(){if(!i(this.source.charCodeAt(this.index)))We(this.index);this.allowWhitespace()}eatClosingBrace(){this.allowWhitespace(),this.eat("}",!0)}sourceLocation(r,o){return this.loc?{start:c(r),end:c(o)}:void 0}readIdentifierName(){let r=this.index,o=ee(this.source,r),l=this.source.slice(r,o);if(this.index=o,R.has(l))ct(r,l);let a={type:"Identifier",name:l,start:r,end:o};if(this.loc)a.loc=this.sourceLocation(r,o);return a}current(){return this.stack[this.stack.length-1]}append(r){this.fragments[this.fragments.length-1].nodes.push(r)}open(r,o){this.append(r),this.stack.push(r),this.fragments.push(o)}setFragment(r){this.fragments[this.fragments.length-1]=r}close(){this.stack.pop(),this.fragments.pop()}}var Jn={"||":1,"??":1,"&&":2,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"+":9,"-":9,"*":10,"/":10,"%":10};function ve(r,o,l,a){return{type:"Literal",start:o,end:l,value:a,raw:r.slice(o,l)}}function pn(r,o){let l=r.charCodeAt(o);if(l===34||l===39){for(let d=o+1;d<r.length;d++){let f=r.charCodeAt(d);if(f===l)return ve(r,o,d+1,r.slice(o+1,d));if(f===92||f===10||f===13)return null}return null}let a=o;for(;a<r.length;a++){let d=r.charCodeAt(a);if(d<48||d>57)break}if(a===o||l===48&&a-o>1)return null;return ve(r,o,a,Number(r.slice(o,a)))}function mt(r,o,l){let a=ee(r,o);if(a===o)return pn(r,o);let d=r.slice(o,a);if(d==="true"||d==="false"||d==="null")return ve(r,o,a,d==="null"?null:d==="true");if(R.has(d))return null;let f={type:"Identifier",start:o,end:a,name:d};for(let m=a;;){let E=r.charCodeAt(m);if(E===40){let C=xt(r,m+1,l);if(!C)return null;f={type:"CallExpression",start:o,end:C.end,callee:f,arguments:C.arguments,optional:!1},m=C.end;continue}let x,g;if(E===46){if(g=ee(r,m+1),g===m+1)return null;x={type:"Identifier",start:m+1,end:g,name:r.slice(m+1,g)}}else if(E===91){if(x=pn(r,m+1),!x||r.charCodeAt(x.end)!==93)return null;g=x.end+1}else return f;f={type:"MemberExpression",start:o,end:g,object:f,property:x,computed:E===91,optional:!1},m=g}}function xt(r,o,l){let a=[],d=t(r,o);if(r.charCodeAt(d)===41)return{arguments:a,end:d+1};for(;;){let f=ie(r,d,l);if(!f)return null;a.push(f),d=t(r,f.end);let m=r.charCodeAt(d);if(m===41)return{arguments:a,end:d+1};if(m!==44)return null;if(d=t(r,d+1),r.charCodeAt(d)===41)return null}}function en(r,o,l){let a=r.charCodeAt(o),d=r.charCodeAt(o+1);if(!(a===33&&d!==61)&&!(a===45&&d!==45&&d!==61))return mt(r,o,l);let f=en(r,t(r,o+1),l);if(!f)return null;return{type:"UnaryExpression",start:o,end:f.end,operator:a===33?"!":"-",prefix:!0,argument:f}}function dn(r,o,l){let a=r.charCodeAt(o),d=r.charCodeAt(o+1);switch(a){case 124:return d===124&&r.charCodeAt(o+2)!==61?"||":null;case 38:return d===38&&r.charCodeAt(o+2)!==61?"&&":null;case 63:return d===63&&r.charCodeAt(o+2)!==61?"??":null;case 61:if(d!==61)return null;return r.charCodeAt(o+2)===61?"===":"==";case 33:if(d!==61)return null;return r.charCodeAt(o+2)===61?"!==":"!=";case 60:case 62:if(l||d===a)return null;if(d===61)return a===60?"<=":">=";return a===60?"<":">";case 43:return d===43||d===61?null:"+";case 45:return d===45||d===61?null:"-";case 42:return d===42||d===61?null:"*";case 47:return d===47||d===42||d===61?null:"/";case 37:return d===61?null:"%";default:return null}}function ke(r,o,l,a){if(fn(r.charCodeAt(o.end)))return o;let d=t(r,o.end),f=dn(r,d,a);if(f===null)return o;let m=Jn[f];if(m<=l)return o;let E=en(r,t(r,d+f.length),a);if(!E)return null;let x=ke(r,E,f==="??"?2:m,a);if(!x)return null;let g;if(f==="||"||f==="&&"||f==="??"){let C=dn(r,t(r,x.end),a);if(f==="??"?C==="||"||C==="&&":C==="??")return null;g={type:"LogicalExpression",start:o.start,end:x.end,left:o,operator:f,right:x}}else g={type:"BinaryExpression",start:o.start,end:x.end,left:o,operator:f,right:x};return ke(r,g,l,a)}function ie(r,o,l){let a=en(r,o,l);if(!a)return null;let d=ke(r,a,-1,l);if(!d||fn(r.charCodeAt(d.end)))return d;let f=t(r,d.end);if(r.charCodeAt(f)!==63)return d;let m=r.charCodeAt(f+1);if(m===46||m===63)return null;let E=ie(r,t(r,f+1),l);if(!E)return null;let x=t(r,E.end);if(r.charCodeAt(x)!==58)return null;let g=ie(r,t(r,x+1),l);if(!g)return null;return{type:"ConditionalExpression",start:d.start,end:g.end,test:d,consequent:E,alternate:g}}function fn(r){return r===125||r===41||r===44||r===58}function St(r,o){let l=r.charCodeAt(t(r,o));return l===125||l===41}function gt(r,o,l){let a=ie(r,o,l);return a&&St(r,a.end)?a:null}function B(r){switch(r.loc={start:w(r.start),end:w(r.end)},r.type){case"MemberExpression":B(r.object),B(r.property);break;case"CallExpression":B(r.callee);for(let o of r.arguments)B(o);break;case"UnaryExpression":B(r.argument);break;case"BinaryExpression":case"LogicalExpression":B(r.left),B(r.right);break;case"ConditionalExpression":B(r.test),B(r.consequent),B(r.alternate);break}}function _(r){let o=!r.loc||r.lfOnly?gt(r.source,r.index,r.isTypeScript):null;if(o){if(r.index=o.end,r.loc)B(o);return o}let{node:l,end:a}=T(r,r.source,r.index);return r.index=a,l}var At=new Set(["server","client","worker","test","default"]);function mn(r,o,l){let{source:a,index:d}=r;if(d>=a.length)n(a.length);let f=U(a,d);if(f===-1)re(a.length,"script");r.index=K(a,f);let m=r.script?Q(r,a.slice(0,f),d):{type:"Program",start:d,end:f,body:[],sourceType:"module"};if(m.start=d,m.loc)Object.assign(m.loc.start,w(o)),Object.assign(m.loc.end,w(r.index));else if(r.loc)m.loc={start:w(o),end:w(r.index)};let E="default";for(let x of l){if(At.has(x.name))Ge(x,x.name);if(x.name==="module"){if(x.value!==!0)Ue(x,x.name);E="module"}if(x.name==="context"){let g=x.value;if(!Array.isArray(g)||g.length!==1||g[0].type!=="Text"||g[0].data!=="module")Ke(x);E="module"}}return{type:"Script",start:o,end:r.index,context:E,content:m,attributes:l}}var yt=/(even|odd|\+?(\d+|\d*n(\s*[+-]\s*\d+)?)|-\d*n(\s*\+\s*\d+))((?=\s*[,)])|\s+of(\s+|(?=[.#[*:&])))/y,Tt=/\d+(\.\d+)?%/y,Et=/\\[0-9a-fA-F]{1,6}(\r\n|\s)?/y,Ct=/\s*>/y,D=-1,gn=34,bt=35,_t=36,vt=38,An=39,Pt=40,kt=41,ae=42,wt=43,Rt=45,Nt=46,yn=47,nn=58,Bt=59,Ot=60,hn=61,Lt=62,Dt=91,rn=92,Wt=93,Ft=94,Tn=123,tn=124,It=125,En=126,oe=[];function Cn(r,o,l){let a=r.index;oe=[];let d=r.css?Gt(r):Mt(r),f=r.index;return r.eat("</style",!0),r.read(Ct),{type:"StyleSheet",start:o,end:r.index,attributes:l,children:d,comments:oe,content:{start:a,end:f,styles:r.source.slice(a,f),comment:null}}}function Mt(r){return r.index=G(r.source,r.index),[]}function Gt(r){let o=[];for(;;){if(q(r,!0),r.match("</style")||r.index>=r.source.length)break;o.push(r.match("@")?bn(r):_n(r))}return o}function bn(r){let o=r.index;r.eat("@",!0);let l=F(r),a=on(r,!0),d=null;if(r.match("{"))d=kn(r);else r.eat(";",!0);return{type:"Atrule",start:o,end:r.index,name:l,prelude:a,block:d}}function _n(r){let o=r.index;return{type:"Rule",prelude:vn(r,!1),block:kn(r),start:o,end:r.index}}function vn(r,o){let l=[];q(r,!0);let a=r.index;while(r.index<r.source.length){l.push(qt(r,o));let d=r.index;if(q(r,!0),r.match(o?")":"{"))return{type:"SelectorList",start:a,end:d,children:l};r.eat(",",!0),q(r,!0)}return n(r.source.length)}function xn(r,o){return{type:"RelativeSelector",combinator:r,selectors:[],start:o,end:-1}}function qt(r,o){let{source:l,index:a}=r,d=[],f=xn(null,r.index);while(r.index<l.length){let m=r.index,E=l.charCodeAt(m),x=f.selectors;if(E===vt)r.index++,x.push({type:"NestingSelector",name:"&",start:m,end:r.index});else if(E===ae)r.index++,x.push(Sn(r,m,"*"));else if(E===bt)r.index++,x.push({type:"IdSelector",name:F(r),start:m,end:r.index});else if(E===Nt)r.index++,x.push({type:"ClassSelector",name:F(r),start:m,end:r.index});else if(E===nn){let P=l.charCodeAt(m+1)===nn;r.index+=P?2:1;let N=F(r),M=null;if(r.eat("("))M=vn(r,!0),r.eat(")",!0);if(P)x.push({type:"PseudoElementSelector",name:N,start:m,end:r.index,...M&&{args:M}});else x.push({type:"PseudoClassSelector",name:N,args:M,start:m,end:r.index})}else if(E===Dt)r.index++,x.push(Ut(r,m));else{let P=o?r.read(yt):null,N=!P&&s(E)?r.read(Tt):null;if(P)x.push({type:"Nth",value:P,start:m,end:r.index});else if(N)x.push({type:"Percentage",value:N,start:m,end:r.index});else if(Pn(l,m)===0){let M=F(r);x.push(Sn(r,m,M))}}let g=r.index;q(r,!1);let C=r.match(",")||r.match(o?")":"{");if(r.index=g,C)return f.end=g,d.push(f),{type:"ComplexSelector",start:a,end:g,children:d};let b=$t(r);if(b){if(f.selectors.length>0)f.end=g,d.push(f);if(f=xn(b,b.start),r.allowWhitespace(),r.match(",")||r.match(o?")":"{"))$e(r.index)}}return n(l.length)}function Sn(r,o,l){let a=l,d;if(r.eat("|"))d=a,a=r.eat("*")?"*":F(r);return{type:"TypeSelector",name:a,...d!==void 0&&{namespace:d},start:o,end:r.index}}function Ut(r,o){let l=r.source;r.allowWhitespace();let a=F(r);r.allowWhitespace();let d=null,f=null,m=l.charCodeAt(r.index);if(m===hn)f="=";else if((m===En||m===Ft||m===_t||m===ae||m===tn)&&l.charCodeAt(r.index+1)===hn)f=l.slice(r.index,r.index+2);if(f)r.index+=f.length,r.allowWhitespace(),d=Xt(r);r.allowWhitespace();let E=r.index;while(Rn(l.charCodeAt(r.index)))r.index++;let x=r.index>E?l.slice(E,r.index):null;return r.allowWhitespace(),r.eat("]",!0),{type:"AttributeSelector",start:o,end:r.index,name:a,matcher:f,value:d,flags:x}}function Pn(r,o){let l=r.charCodeAt(o);if(l===wt||l===En||l===Lt)return 1;if(l===tn&&r.charCodeAt(o+1)===tn)return 2;return 0}function $t(r){let o=r.index;r.allowWhitespace();let l=r.index,a=Pn(r.source,l);if(a>0){r.index+=a;let d=r.index;return r.allowWhitespace(),{type:"Combinator",name:r.source.slice(l,d),start:l,end:d}}if(r.index!==o)return{type:"Combinator",name:" ",start:o,end:r.index};return null}function kn(r){let o=r.index;r.eat("{",!0);let l=[];while(r.index<r.source.length){if(q(r,!0),r.match("}"))break;l.push(Vt(r))}return r.eat("}",!0),{type:"Block",start:o,end:r.index,children:l}}function Vt(r){if(r.match("@"))return bn(r);let o=r.index;on(r,!1);let l=r.source.charCodeAt(r.index);return r.index=o,l===Tn?_n(r):jt(r)}function jt(r){let{source:o,index:l}=r;if(l>=o.length)n(o.length);let a=l;while(a<o.length){let x=o.charCodeAt(a);if(x===nn||i(x))break;a++}let d=o.slice(l,a);r.index=a,r.allowWhitespace(),r.eat(":");let f=r.index;r.allowWhitespace();let m=on(r,!0);if(!m&&!d.startsWith("--"))Ie({start:l,end:f});let E=r.index;if(!r.match("}"))r.eat(";",!0);return{type:"Declaration",start:l,end:E,property:d,value:m}}function on(r,o){let l=r.source,a=l.length,d="",f=r.index,m=null,E=!1,x=!1,g=D,C=r.index;while(C<a){let b=l.charCodeAt(C);if(E){E=!1,C++;continue}if(b===rn){E=!0,C++;continue}if(b===g)g=D;else if(b===kt)x=!1;else if(g===D&&(b===gn||b===An))g=b;else if(b===Pt){if(Ht(l,d,f,C))x=!0}else if((b===Bt||b===Tn||b===It)&&!x&&g===D){if(r.index=C,!o)return"";if(d+=l.slice(f,C),m){let P=d.length-d.trimStart().length;for(let N of m)N.position=Math.max(0,(N.position??0)-P)}return d.trim()}else if(b===yn&&!x&&g===D&&l.charCodeAt(C+1)===ae){d+=l.slice(f,C),r.index=C;let P=wn(r);if(o)P.position=d.length,oe.push(P),m??=[],m.push(P);C=r.index,f=C;continue}C++}return r.index=a,n(a)}function Ht(r,o,l,a){if(a-l>=3)return r.charCodeAt(a-3)===117&&r.charCodeAt(a-2)===114&&r.charCodeAt(a-1)===108;return(o+r.slice(l,a)).endsWith("url")}function Xt(r){let o=r.source,l=D;if(r.eat('"'))l=gn;else if(r.eat("'"))l=An;let a=r.index,d=!1,f=a;while(f<o.length){let m=o.charCodeAt(f);if(d)d=!1;else if(m===rn)d=!0;else if(l===D?m===Wt||i(m):m===l)return r.index=l===D?f:f+1,o.slice(a,f).trim();f++}return r.index=f,n(o.length)}function F(r){let{source:o,index:l}=r,a=o.charCodeAt(l);if(s(a)||a===Rt&&s(o.charCodeAt(l+1)))ue(l);let d="",f=l,m=l;while(m<o.length){let E=o.charCodeAt(m);if(E===rn){d+=o.slice(f,m),r.index=m;let x=r.matchRegex(Et);if(x){let g=String.fromCodePoint(Number.parseInt(x.slice(1),16));d+=g==="\\"?"\\\\":g,m+=x.length}else d+=`\\${o[m+1]}`,m+=2;f=m}else if(E>=160||zt(E))m++;else break}if(d+=o.slice(f,m),r.index=m,d==="")ue(l);return d}function q(r,o){let l=r.source;r.allowWhitespace();for(;;){let a=l.charCodeAt(r.index);if(a===yn&&l.charCodeAt(r.index+1)===ae){let d=wn(r);if(o)oe.push(d)}else if(a===Ot&&r.eat("<!--"))r.readUntil("-->"),r.eat("-->",!0);else break;r.allowWhitespace()}}function wn(r){let o=r.index;r.eat("/*",!0);let l=r.readUntil("*/");return r.eat("*/",!0),{type:"CSSComment",value:l,start:o,end:r.index}}function Rn(r){return r>=65&&r<=90||r>=97&&r<=122}function zt(r){return Rn(r)||s(r)||r===95||r===45}var ln=/<\/textarea(\s[^>]*)?>/iy,Zt=/^![a-zA-Z]+$/,Kt=/^[a-zA-Z][a-zA-Z0-9]*:[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/,Qt=/^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9.\-_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}]*)?$/u,sn="\\u200C\\u200D",Yt=new RegExp(`^(?:\\p{Lu}[$${sn}\\p{ID_Continue}.]*|\\p{ID_Start}[$${sn}\\p{ID_Continue}]*(?:\\.[$${sn}\\p{ID_Continue}]+)+)$`,"u"),Jt=new Map([["use","UseDirective"],["animate","AnimateDirective"],["bind","BindDirective"],["class","ClassDirective"],["style","StyleDirective"],["on","OnDirective"],["let","LetDirective"],["in","TransitionDirective"],["out","TransitionDirective"],["transition","TransitionDirective"]]),cn=new Map([["svelte:head",["SvelteHead",!0]],["svelte:options",["SvelteOptions",!0]],["svelte:window",["SvelteWindow",!0]],["svelte:document",["SvelteDocument",!0]],["svelte:body",["SvelteBody",!0]],["svelte:element",["SvelteElement",!1]],["svelte:component",["SvelteComponent",!1]],["svelte:self",["SvelteSelf",!1]],["svelte:fragment",["SvelteFragment",!1]],["svelte:boundary",["SvelteBoundary",!1]]]),Nn=[...cn.keys()],er=`${Nn.slice(0,-1).join(", ")} or ${Nn.at(-1)}`,nr=62,Bn=123;function he(r,o){let l=r.index;if(l>=r.source.length)n(r.source.length);let a=k(r.source,l,o);return r.index=a,{name:r.source.slice(l,a),start:l,end:a,loc:r.sourceLocation(l,a)}}var X=(r,o,l,a=l)=>({start:r,end:o,type:"Text",raw:l,data:a});function tr(r){let o=r.charCodeAt(0);if(o>=97&&o<=122&&!r.includes("."))return!1;return Yt.test(r)}function rr(r){let o=!0;for(let l=0;l<r.length&&o;l++){let a=r.charCodeAt(l);o=a>=97&&a<=122||l>0&&a>=48&&a<=57}return o&&r.length>0||Zt.test(r)||Kt.test(r)||Qt.test(r)}function On(r,o){for(let l=r.length-1;l>=0;l--){let a=o(r[l]);if(a!==void 0)return a}return!1}function ir(r,o,l){let a=cn.get(o);if(a)return a[0];if(l)return"Component";if(o==="title"){if(On(r.stack,({type:f})=>{if(f==="SvelteHead")return!0;return f==="RegularElement"||f==="Component"?!1:void 0}))return"TitleElement"}if(o==="slot"){if(!On(r.stack,(f)=>f.type==="RegularElement"&&f.attributes.some((m)=>m.type==="Attribute"&&m.name==="shadowrootmode")?!0:void 0))return"SlotElement"}return"RegularElement"}function te(r){let o=r.index++;if(r.eat("!--")){let l=r.readUntil("-->");r.eat("-->",!0),r.append({type:"Comment",start:o,end:r.index,data:l})}else if(r.eat("/"))or(r,o);else sr(r,o)}function or(r,o){let{name:l}=he(r,!1);if(r.allowWhitespace(),r.eat(">",!0),I(l))ut(o);let a=r.current();while(!("name"in a)||a.name!==l){if(a.type!=="RegularElement"){let d=r.lastAutoClosedTag;if(d?.tag===l)Be(o,l,d.reason);De(o,l)}a.end=o,r.close(),a=r.current()}if(a.end=r.index,r.close(),r.stack.length<(r.lastAutoClosedTag?.depth??0))r.lastAutoClosedTag=void 0}function lr(r,o,l){return{type:r,start:o,end:-1,name:l}}function sr(r,o){let l=he(r,!1),{name:a}=l,d=cn.get(a);if(!d&&a.startsWith("svelte:"))et(l,er);let f=tr(a);if(!f&&!rr(a))lt(l);if(d?.[1]){if(r.metaTags.has(a))Ye(o,a);if(r.current().type!=="Root")Ze(o,a);r.metaTags.add(a)}let m=lr(ir(r,a,f),o,a);if(r.loc)m.name_loc=l.loc;m.attributes=[],m.fragment={type:"Fragment",nodes:[]},r.allowWhitespace();let E=r.current();if(E.type==="RegularElement"&&W(E.name,a))E.end=o,r.close(),r.lastAutoClosedTag={tag:E.name,reason:a,depth:r.stack.length};if((a==="script"||a==="style")&&r.current().type==="Root"){let g=[];m.attributes=g,Fn(r,g,fr),ar(r,m,o,g);return}if(Fn(r,m.attributes,hr),m.type==="SvelteComponent"){let g=Ln(m);if(!g)Xe(o);if(!Dn(g.value))Qe(g.start);m.expression=Wn(g.value)}else if(m.type==="SvelteElement"){let g=Ln(m);if(!g)ye(o);if(g.value===!0)ye(g);m.tag=Dn(g.value)?Wn(g.value):dr(g.value[0])}if(!r.eat("/")&&!I(a))if(r.eat(">",!0),a==="textarea")m.fragment.nodes=Mn(r,(g,C)=>(ln.lastIndex=C,ln.test(g)),"inside <textarea>"),r.read(ln);else if(a==="script"||a==="style")m.fragment.nodes.push(cr(r,`</${a}>`));else{r.open(m,m.fragment);return}else r.eat(">",!0);m.end=r.index,r.append(m)}function cr(r,o){let l=r.index,a=r.source.indexOf(o,l);r.index=a===-1?r.source.length:a;let d=X(l,r.index,r.source.slice(l,r.index));return r.eat(o,!0),d}function ar(r,o,l,a){r.eat(">",!0);let d=ur(r.root.fragment.nodes,l);if(o.name==="style"){let E=Cn(r,l,a);if(E.content.comment=d,r.root.css)He(l);r.root.css=E;return}let f=mn(r,l,a);if(d&&r.comments)f.content.leadingComments=[{type:"Line",value:d.data}];let m=f.context==="module"?"module":"instance";if(r.root[m])ze(l);r.root[m]=f}function ur(r,o){let l=r.length-1;if(l<0||r[l].end!==o)return null;for(let a=l;a>=0;a--){let d=r[a];if(d.type==="Comment")return d;if(d.type!=="Text"||d.data.trim())return null}return null}var pr=(r)=>r.type==="Attribute"&&r.name==="this";function Ln(r){let o=r.attributes.find(pr);if(o)r.attributes.splice(r.attributes.indexOf(o),1);return o}function Dn(r){if(r===!0)return!1;if(!Array.isArray(r))return!0;return r.length===1&&r[0].type==="ExpressionTag"}function Wn(r){return(Array.isArray(r)?r[0]:r).expression}function dr(r){if(r.type!=="Text")return r.expression;return{type:"Literal",value:r.data,raw:`'${r.raw}'`,start:r.start,end:r.end}}function Fn(r,o,l){let a=new Set;for(;;){let d=l(r);if(!d)return;let{type:f}=d;if(f==="Attribute"||f==="BindDirective"||f==="StyleDirective"||f==="ClassDirective"){let m=`${f==="BindDirective"?"Attribute":f}${d.name}`;if(a.has(m))Te(d);if(d.name!=="this")a.add(m)}o.push(d),r.allowWhitespace()}}function an(r,o,l,a,d){return r.loc?{type:"Attribute",start:l,end:a,name:o.name,name_loc:o.loc,value:d}:{type:"Attribute",start:l,end:a,name:o.name,value:d}}function In(r){if(p(r.source.charCodeAt(r.index)))h(r.index,"=")}function fr(r){let o=r.index,l=he(r,!0);if(!l.name)return null;let a=!0;if(r.eat("=")){r.allowWhitespace();let{source:d}=r,f=r.index,m=p(d.charCodeAt(f)),E=-1;if(m){let C=d.indexOf(d[f],f+1);if(C!==-1)E=C+1}if(E===-1){E=f;while(E<d.length&&d.charCodeAt(E)!==nr&&!i(d.charCodeAt(E)))E++;if(E===f)de(f)}r.index=E;let x=m?1:0,g=d.slice(f+x,E-x);a=[X(E-g.length-x,E-x,g,v(g,!0,r.entityNames))]}return In(r),an(r,l,o,r.index,a)}function mr(r){let o=r.index,l=r.match("/*");if(!l&&!r.match("//"))return!1;r.index+=2;let a=r.readUntil(l?"*/":`
|
|
2
|
-
`);if(l)r.eat("*/");let d={type:l?"Block":"Line",start:o,end:r.index,value:a},f=r.sourceLocation(o,r.index);if(f)d.loc=f;if(r.comments)r.root.comments.push(d);return!0}function hr(r){while(mr(r))r.allowWhitespace();let o=r.index;if(r.eat("{"))return xr(r,o);let l=he(r,!0);if(!l.name)return null;let a=r.index;r.allowWhitespace();let d=!0;if(r.eat("=")){if(r.allowWhitespace(),r.match("/>"))d=[X(r.index,r.index+1,"/")],r.index++;else d=Ar(r);a=r.index}else In(r);let f=l.name.indexOf(":"),m=f>0?Jt.get(l.name.slice(0,f)):void 0;return m?gr(r,m,l,f,o,a,d):an(r,l,o,a,d)}function xr(r,o){if(r.allowWhitespace(),r.eat("@attach")){r.requireWhitespace();let d=_(r);return r.eatClosingBrace(),{type:"AttachTag",start:o,end:r.index,expression:d}}if(r.eat("...")){let d=_(r);return r.eatClosingBrace(),{type:"SpreadAttribute",start:o,end:r.index,expression:d}}let l=r.readIdentifierName();if(l.name==="")Ae(o);r.eatClosingBrace();let a={type:"ExpressionTag",start:l.start,end:l.end,expression:l};return an(r,l,o,r.index,a)}function Sr(r){if(r===!0)return;return Array.isArray(r)?r[0]:r}function gr(r,o,l,a,d,f,m){let[E,...x]=l.name.slice(a+1).split("|");if(E==="")qe({start:d,end:d+a+1},l.name);let g={start:d,end:f,type:o,name:E};if(r.loc)g.name_loc=l.loc;if(o==="StyleDirective")return g.modifiers=x,g.value=m,g;let C=Sr(m);if(C&&(Array.isArray(m)&&m.length>1||C.type==="Text"))Oe(C.start);if(g.expression=C?.expression??null,g.modifiers=x,o==="TransitionDirective"){let b=l.name.slice(0,a);g.intro=b!=="out",g.outro=b!=="in"}if((o==="BindDirective"||o==="ClassDirective")&&!g.expression)g.expression={start:d+a+1,end:f,type:"Identifier",name:E};return g}function Ar(r){let o=r.source.charCodeAt(r.index),l=p(o);if(l){if(r.index++,r.source.charCodeAt(r.index)===o)return r.index++,[X(r.index-1,r.index-1,"")]}let a;try{a=Mn(r,l?(d,f)=>d.charCodeAt(f)===o:H,"in attribute value",l?o:void 0)}catch(d){let f=d instanceof e&&d.code==="js_parse_error"?d.position?.[0]:void 0;if(f!==void 0&&r.source.startsWith("/>",f-1))r.index=f,h(f,l?String.fromCharCode(o):"}");throw d}if(l)r.index++;else if(a.length===0)de(r.index);return l||a.length>1||a[0].type==="Text"?a:a[0]}function Mn(r,o,l,a){let{source:d}=r,f=[],m=r.index,E=(x)=>{if(x<=m)return;let g=d.slice(m,x);f.push(X(m,x,g,v(g,!0,r.entityNames)))};while(r.index<d.length){let x=r.index;if(o(d,x))return E(x),f;if(d.charCodeAt(x)!==Bn){if(r.index++,a!==void 0)while(r.index<d.length&&d.charCodeAt(r.index)!==Bn&&d.charCodeAt(r.index)!==a)r.index++;continue}r.index++;let g=d.charCodeAt(r.index);if(g===35||g===64){r.index++;let b=r.index;while(r.index<d.length&&d.charCodeAt(r.index)>=97&&d.charCodeAt(r.index)<=122)r.index++;let P=d.slice(b,r.index);(g===35?Ne:pt)(x,P,l)}E(x),r.allowWhitespace();let C=_(r);r.eatClosingBrace(),f.push({type:"ExpressionTag",start:x,end:r.index,expression:C}),m=r.index}n(d.length)}var yr=new Map([["html","html"],["svg","svg"],["mathml","mathml"],["http://www.w3.org/2000/svg","svg"],["http://www.w3.org/1998/Math/MathML","mathml"]]),Tr=new Map([["type",(r,o)=>{if(o!=="String"&&o!=="Number"&&o!=="Boolean"&&o!=="Array"&&o!=="Object")return!1;return r.type=o,!0}],["reflect",(r,o)=>{if(typeof o!=="boolean")return!1;return r.reflect=o,!0}],["attribute",(r,o)=>{if(typeof o!=="string")return!1;return r.attribute=o,!0}]]),Gn="[a-z0-9_.\\xB7\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u203F-\\u2040\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\u{10000}-\\u{EFFFF}-]",Er=new RegExp(`^[a-z]${Gn}*-${Gn}*$`,"u"),Cr=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ")),Se=(r)=>(o,l)=>{let a=ge(l);if(typeof a!=="boolean")se(l,"true or false");o[r]=a},br=new Map([["runes",Se("runes")],["immutable",Se("immutable")],["preserveWhitespace",Se("preserveWhitespace")],["accessors",Se("accessors")],["namespace",(r,o)=>{let l=yr.get(ge(o));if(!l)se(o,'"html", "mathml" or "svg"');r.namespace=l}],["css",(r,o)=>{if(ge(o)!=="injected")se(o,'"injected"');r.css="injected"}],["tag",(r,o)=>tt(o)],["customElement",(r,o)=>{let l=vr(o);if(l)r.customElement=l}]]);function Un(r){let o=[],l={start:r.start,end:r.end,attributes:o};for(let a of r.attributes){if(a.type!=="Attribute")it(a);o.push(a);let d=br.get(a.name);if(!d)at(a,a.name);d(l,a)}return l}function ge({value:r}){if(r===!0)return!0;let o=Array.isArray(r)?r:[r];if(o.length===0)return!0;if(o.length>1)return null;let[l]=o;if(l.type==="Text")return l.data;return l.expression.type==="Literal"?l.expression.value:null}function qn(r,o){if(typeof o!=="string")xe(r);if(!o)return;if(!Er.test(o))xe(r);if(Cr.has(o))ot(r)}function un(r){return r.type==="Property"&&!r.computed&&r.key.type==="Identifier"}function _r(r,o){let l=new Map;for(let a of r.properties){if(!un(a))o();if(!l.has(a.key.name))l.set(a.key.name,a.value)}return l}function vr(r){let o=()=>rt(r);if(r.value===!0)o();let l=Array.isArray(r.value)?r.value[0]:r.value;if(l.type==="Text"){let C=ge(r);return qn(r,C),{tag:C}}let{expression:a}=l;if(a.type!=="ObjectExpression"){if(a.type==="Literal"&&a.value===null)return;o()}let d=_r(a,o),f={},m=d.get("tag");if(m){let C=m.type==="Literal"?m.value:void 0;qn(null,C),f.tag=C}let E=d.get("props");if(E){let C=()=>st(r);if(E.type!=="ObjectExpression")C();f.props={};for(let b of E.properties){if(!un(b)||b.value.type!=="ObjectExpression")C();let P={};f.props[b.key.name]=P;for(let N of b.value.properties){if(!un(N)||N.value.type!=="Literal")C();if(!Tr.get(N.key.name)?.(P,N.value.value))C()}}}let x=d.get("shadow");if(x)if(x.type==="ObjectExpression")f.shadow=x;else if(x.type==="Literal"&&(x.value==="open"||x.value==="none"))f.shadow=x.value;else nt(r);let g=d.get("extend");if(g)f.extend=g;return f}var Pr={"{":"}","(":")","[":"]"};function Z(r,o,l=Pr){let a=Object.values(l),d=[],f=o;while(f<r.length){let m=r[f++];if(m==="'"||m==='"'||m==="`")f=kr(r,f,m);else if(Object.hasOwn(l,m))d.push(m);else if(a.includes(m)){let E=l[d.pop()??""];if(m!==E)h(f-1,E);if(d.length===0)return f}}n(r.length)}function kr(r,o,l){let a=o;while(a<r.length){let d=r[a++];if(d===l)return a;if(d==="\\")a++;else if(l==="`"&&d==="$"&&r[a]==="{")a=Z(r,a)}ht(o)}var wr=/\?\s*:/g;function j(r){let o=r.index,l=r.readIdentifierName();if(l.name!=="")return{...l,typeAnnotation:$n(r)};let a=r.source[r.index];if(a!=="{"&&a!=="[")Fe(r.index);r.index=Z(r.source,o);let d=ft(r,r.source.slice(0,r.index),o)??Rr(r,o);ne(d,"ObjectPattern","ArrayPattern");let f=$n(r);if(d.typeAnnotation=f,f)d.end=f.end;return d}function Rr(r,o){let{node:l}=T(r,`${r.source.slice(0,r.index)} = 1`,o);return ne(l,"AssignmentExpression"),l.left}function $n(r){let o=r.index;if(r.allowWhitespace(),!r.eat(":")){r.index=o;return}let l="_ as ",a=r.index-l.length,d=r.source.slice(0,a)+l+r.source.slice(r.index).replace(wr,":"),f=T(r,d,a).node;if(f.type==="AssignmentExpression"){let m=f.right.start;while(d[m]!=="=")m-=1;f=T(r,d.slice(0,m),a).node}if(f.type==="SequenceExpression")f=f.expressions[0];return ne(f,"TSAsExpression"),r.index=f.end,{type:"TSTypeAnnotation",start:o,end:r.index,typeAnnotation:f.typeAnnotation}}var Nr={IfBlock:"if",EachBlock:"each",KeyBlock:"key",AwaitBlock:"await",SnippetBlock:"snippet"},L=()=>({type:"Fragment",nodes:[]});function jn(r,o){if(r.eat("if")){r.requireWhitespace();let l=_(r);r.eatClosingBrace();let a=L();r.open({type:"IfBlock",elseif:!1,start:o,end:-1,test:l,consequent:a,alternate:null},a)}else if(r.eat("each"))Or(r,o);else if(r.eat("await")){r.requireWhitespace();let l=_(r);r.allowWhitespace();let a={type:"AwaitBlock",start:o,end:-1,expression:l,value:null,error:null,pending:null,then:null,catch:null},d=L();if(r.eat("then"))a.value=Vn(r),a.then=d;else if(r.eat("catch"))a.error=Vn(r),a.catch=d;else a.pending=d;r.eat("}",!0),r.open(a,d)}else if(r.eat("key")){r.requireWhitespace();let l=_(r);r.eatClosingBrace();let a=L();r.open({type:"KeyBlock",start:o,end:-1,expression:l,fragment:a},a)}else if(r.eat("snippet"))Lr(r,o);else Me(r.index)}function Vn(r){if(r.matchRegex(J))return r.allowWhitespace(),null;r.requireWhitespace();let o=j(r);return r.allowWhitespace(),o}function Br(r){let o={assertion:null},l=r.end,a=(f)=>{if(f.type==="TSAsExpression"&&f.end===r.end)return o.assertion=f,l=f.expression.end,f.expression;return O(f,a),f},d=r;if(r.type==="TSAsExpression")o.assertion=r,d=r.expression,l=d.end;else O(r,a);return d.end=l,{expression:d,assertion:o.assertion}}function Or(r,o){r.requireWhitespace();let l=r.source,a;while(!a)try{a=_(r)}catch(x){let C=((x instanceof e?x.position:void 0)?.[0]??o)-2;while(C>o&&r.source.slice(C,C+2)!=="as")C-=1;if(C<=o)throw r.source=l,x;r.source=l.slice(0,C)}if(r.source=l,r.allowWhitespace(),!r.match("as")){if(a.type==="SequenceExpression")a=a.expressions[0];let x=Br(a);if(a=x.expression,x.assertion){let g=x.assertion.typeAnnotation.start-2;while(r.source.slice(g,g+2)!=="as")g-=1;r.index=g}}let d=null,f,m;if(r.eat("as"))r.requireWhitespace(),d=j(r);else r.index=a.end;if(r.allowWhitespace(),r.eat(",")){if(r.allowWhitespace(),f=r.readIdentifierName().name,!f)me(r.index);r.allowWhitespace()}if(r.eat("("))r.allowWhitespace(),m=_(r),r.allowWhitespace(),r.eat(")",!0),r.allowWhitespace();r.eat("}",!0);let E=L();r.open({type:"EachBlock",start:o,end:-1,expression:a,body:E,context:d,index:f,key:m},E)}function Lr(r,o){r.requireWhitespace();let l=r.readIdentifierName();if(l.name==="")me(r.index);r.allowWhitespace();let a=r.index,d;if(r.isTypeScript&&r.match("<")){let x=Z(r.source,a,{"<":">"});d=r.source.slice(a+1,x-1),r.index=x}r.allowWhitespace(),r.eat("(",!0);let f=1;while(r.index<r.source.length&&(!r.match(")")||f!==1)){if(r.match("("))f++;if(r.match(")"))f--;r.index+=1}r.eat(")",!0);let{node:m}=T(r,`${r.source.slice(0,r.index)} => {}`,a,!0);r.eatClosingBrace();let E=L();r.open({type:"SnippetBlock",start:o,end:-1,expression:l,typeParams:d,parameters:m.type==="ArrowFunctionExpression"?m.params:void 0,body:E},E)}function Hn(r,o){let l=r.index-1,a=r.current();if(a.type==="IfBlock"){if(!r.eat("else"))h(l,"{:else} or {:else if}");if(r.eat("if"))Ce(l);if(r.allowWhitespace(),a.alternate=L(),r.setFragment(a.alternate),r.eat("if")){r.requireWhitespace();let d=_(r);r.eatClosingBrace();let f=L();r.open({start:o,end:-1,type:"IfBlock",elseif:!0,test:d,consequent:f,alternate:null},f)}else r.eatClosingBrace()}else if(a.type==="EachBlock"){if(!r.eat("else"))h(l,"{:else}");r.eatClosingBrace(),a.fallback=L(),r.setFragment(a.fallback)}else if(a.type==="AwaitBlock"){let d;if(r.eat("then"))d="then";else if(r.eat("catch"))d="catch";else h(l,"{:then ...} or {:catch ...}");if(a[d])we(l,`{:${d}}`);if(!r.eat("}")){r.requireWhitespace();let m=j(r);if(d==="then")a.value=m;else a.error=m;r.eatClosingBrace()}let f=L();a[d]=f,r.setFragment(f)}else Ee(l)}function Xn(r){let o=r.current(),l=Nr[o.type];if(!l)Pe(r.index-1);r.eat(l,!0),r.eatClosingBrace();while(o.type==="IfBlock"&&o.elseif)o.end=r.index,r.close(),o=r.current();o.end=r.index,r.close()}function Dr(r){return r.type==="CallExpression"||r.type==="ChainExpression"&&r.expression.type==="CallExpression"}function zn(r,o){if(r.eat("html")){r.requireWhitespace();let l=_(r);r.eatClosingBrace(),r.append({type:"HtmlTag",start:o,end:r.index,expression:l})}else if(r.eat("debug")){let l=[];if(!r.read(J)){let a=_(r),d=a.type==="SequenceExpression"?a.expressions:[a];for(let f of d){if(f.type!=="Identifier")Re(f.start);l.push(f)}r.eatClosingBrace()}r.append({type:"DebugTag",start:o,end:r.index,identifiers:l})}else if(r.eat("const")){r.requireWhitespace();let l=j(r);r.allowWhitespace(),r.eat("=",!0),r.allowWhitespace();let a=r.index,d=_(r),f=r.index;if(d.type==="SequenceExpression"&&!r.source.slice(a,d.start).includes("("))Le(d);r.eatClosingBrace();let m={type:"VariableDeclarator",id:l,init:d,start:l.start,end:f};r.append({type:"ConstTag",start:o,end:r.index,declaration:{type:"VariableDeclaration",kind:"const",declarations:[m],start:o+2,end:r.index-1}})}else if(r.eat("render")){r.requireWhitespace();let l=_(r);if(!Dr(l))je(l);r.eatClosingBrace(),r.append({type:"RenderTag",start:o,end:r.index,expression:l})}else Ve(r.index)}var Wr=/(?:var|interface|enum)\b/y,Fr=/(?:let|const|type)\b/y;function Zn(r){let o=r.index;if(r.index+=1,r.allowWhitespace(),r.eat("#"))jn(r,o);else if(r.eat(":"))Hn(r,o);else if(r.eat("@"))zn(r,o);else if(r.match("/")&&!r.match("/*")&&!r.match("//"))r.index+=1,Xn(r);else if(!Ir(r,o)){let l=_(r);r.eatClosingBrace(),r.append({type:"ExpressionTag",start:o,end:r.index,expression:l})}}function Ir(r,o){let l=r.index,a=r.matchRegex(Wr);if(a)fe({start:l,end:l+a.length});if(!r.matchRegex(Fr))return!1;let d=r.root.comments.length,f=dt(r,r.source,l);if(f.type==="ExpressionStatement")return r.root.comments.length=d,!1;if(f.type!=="VariableDeclaration"||f.kind!=="let"&&f.kind!=="const")fe(f);return r.index=f.end,r.eatClosingBrace(),r.append({type:"DeclarationTag",start:o,end:r.index,declaration:f}),!0}function Qn(r){let{source:o,index:l}=r;if(r.nextAngle<l)r.nextAngle=Kn(o,"<",l);if(r.nextBrace<l)r.nextBrace=Kn(o,"{",l);let a=Math.min(r.nextAngle,r.nextBrace);r.index=a;let d=o.slice(l,a);r.append({type:"Text",start:l,end:a,raw:d,data:v(d,!1,r.entityNames)})}function Kn(r,o,l){let a=r.indexOf(o,l);return a===-1?r.length:a}function V(r,o,l){let a=le(r,o,l);while(a.index<a.source.length)ce(a);return pe(a)}function le(r,o,l){let a=S(r);return A(a),new be(a.trimEnd(),a.length,l,o)}function pe(r){if(r.stack.length>1){let d=r.current();if(d.end=d.start+1,d.type==="RegularElement")re(d,d.name);_e(d)}let{nodes:o}=r.root.fragment,l=o.findIndex((d)=>d.type==="SvelteOptions"),a=o[l];if(a?.type==="SvelteOptions"){o.splice(l,1),r.root.options=Un(a);let{nodes:d}=a.fragment;if(d.length>0)Je({start:d[0].start,end:d[d.length-1].end},a.name)}return r.root}function ce(r){if(r.match("<"))te(r);else if(r.match("{"))Zn(r);else Qn(r)}
|
|
3
|
-
export{te,V,le,pe,ce};
|
package/shared-njpj8eam.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function yt(t){return{support:"typescript",parser:t}}function xt(t){return{support:"entities",names:t}}function X(t){return t&&"parser"in t?t.parser:void 0}function gt(t){return t&&"names"in t?t.names:void 0}function Y(){throw Error('sveast: parsing TypeScript needs `typescript` from "sveast/typescript": createParser({ typescript }) or createModuleParser({ typescript })')}
|
|
2
|
-
export{yt,xt,X,gt,Y};
|
package/shared-qbw8n9am.js
DELETED
package/shared-saxr459v.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{A}from"./shared-cr4ebmgx.js";import{mt}from"./shared-bbp47cz4.js";import{j}from"./shared-xa3xp3kp.js";function b(t,r,o){A(t);let e={isTypeScript:r.typescript??!1,typescript:o,loc:!1,comments:!1,root:{comments:[]}};return mt(e,t,(s)=>j(t,r.localExports??!0,s))}
|
|
2
|
-
export{b};
|