mongoku 2.0.2 → 2.0.3

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.
Files changed (151) hide show
  1. package/Dockerfile +27 -0
  2. package/build/client/_app/immutable/chunks/{MHUppGzk.js → BAM9w9EL.js} +1 -1
  3. package/build/client/_app/immutable/chunks/BAM9w9EL.js.br +0 -0
  4. package/build/client/_app/immutable/chunks/BAM9w9EL.js.gz +0 -0
  5. package/build/client/_app/immutable/chunks/{CN-ecO3-.js → BMa204Dm.js} +1 -1
  6. package/build/client/_app/immutable/chunks/BMa204Dm.js.br +0 -0
  7. package/build/client/_app/immutable/chunks/BMa204Dm.js.gz +0 -0
  8. package/build/client/_app/immutable/chunks/{_2kcttvK.js → BdR-m9Ad.js} +1 -1
  9. package/build/client/_app/immutable/chunks/BdR-m9Ad.js.br +0 -0
  10. package/build/client/_app/immutable/chunks/BdR-m9Ad.js.gz +0 -0
  11. package/build/client/_app/immutable/chunks/BzAcxkRZ.js +4 -0
  12. package/build/client/_app/immutable/chunks/BzAcxkRZ.js.br +0 -0
  13. package/build/client/_app/immutable/chunks/BzAcxkRZ.js.gz +0 -0
  14. package/build/client/_app/immutable/chunks/{BFhvhM4X.js → CyQLXPZI.js} +1 -1
  15. package/build/client/_app/immutable/chunks/CyQLXPZI.js.br +0 -0
  16. package/build/client/_app/immutable/chunks/CyQLXPZI.js.gz +0 -0
  17. package/build/client/_app/immutable/chunks/{BdWVCPGW.js → D4VhtiDg.js} +1 -1
  18. package/build/client/_app/immutable/chunks/D4VhtiDg.js.br +0 -0
  19. package/build/client/_app/immutable/chunks/D4VhtiDg.js.gz +0 -0
  20. package/build/client/_app/immutable/chunks/{zXvB9_Mi.js → XYFbSe2V.js} +1 -1
  21. package/build/client/_app/immutable/chunks/XYFbSe2V.js.br +0 -0
  22. package/build/client/_app/immutable/chunks/XYFbSe2V.js.gz +0 -0
  23. package/build/client/_app/immutable/chunks/{CGIdus8b.js → uMNMODvc.js} +1 -1
  24. package/build/client/_app/immutable/chunks/uMNMODvc.js.br +0 -0
  25. package/build/client/_app/immutable/chunks/uMNMODvc.js.gz +0 -0
  26. package/build/client/_app/immutable/entry/{app.hGE78f-O.js → app.9nC_873E.js} +2 -2
  27. package/build/client/_app/immutable/entry/app.9nC_873E.js.br +0 -0
  28. package/build/client/_app/immutable/entry/app.9nC_873E.js.gz +0 -0
  29. package/build/client/_app/immutable/entry/start.Bn88Alw2.js +1 -0
  30. package/build/client/_app/immutable/entry/start.Bn88Alw2.js.br +2 -0
  31. package/build/client/_app/immutable/entry/start.Bn88Alw2.js.gz +0 -0
  32. package/build/client/_app/immutable/nodes/{0.DyBXVtnT.js → 0.COxTCtn2.js} +1 -1
  33. package/build/client/_app/immutable/nodes/0.COxTCtn2.js.br +0 -0
  34. package/build/client/_app/immutable/nodes/0.COxTCtn2.js.gz +0 -0
  35. package/build/client/_app/immutable/nodes/{1.FqB0jq88.js → 1.Bc8yPK_D.js} +1 -1
  36. package/build/client/_app/immutable/nodes/1.Bc8yPK_D.js.br +0 -0
  37. package/build/client/_app/immutable/nodes/1.Bc8yPK_D.js.gz +0 -0
  38. package/build/client/_app/immutable/nodes/{3.Bekn_8hM.js → 3.CI2GcqTf.js} +1 -1
  39. package/build/client/_app/immutable/nodes/3.CI2GcqTf.js.br +0 -0
  40. package/build/client/_app/immutable/nodes/3.CI2GcqTf.js.gz +0 -0
  41. package/build/client/_app/immutable/nodes/{4.DQfaAvJi.js → 4.ChSdW7ac.js} +1 -1
  42. package/build/client/_app/immutable/nodes/4.ChSdW7ac.js.br +0 -0
  43. package/build/client/_app/immutable/nodes/4.ChSdW7ac.js.gz +0 -0
  44. package/build/client/_app/immutable/nodes/{5.B1E6iW2R.js → 5.DaMML2go.js} +1 -1
  45. package/build/client/_app/immutable/nodes/5.DaMML2go.js.br +0 -0
  46. package/build/client/_app/immutable/nodes/5.DaMML2go.js.gz +0 -0
  47. package/build/client/_app/immutable/nodes/{6.28eZQkvz.js → 6.Dcq0qwvO.js} +1 -1
  48. package/build/client/_app/immutable/nodes/6.Dcq0qwvO.js.br +0 -0
  49. package/build/client/_app/immutable/nodes/6.Dcq0qwvO.js.gz +0 -0
  50. package/build/client/_app/immutable/nodes/{7.qpcLWZb7.js → 7.CU-ncPes.js} +1 -1
  51. package/build/client/_app/immutable/nodes/7.CU-ncPes.js.br +0 -0
  52. package/build/client/_app/immutable/nodes/7.CU-ncPes.js.gz +0 -0
  53. package/build/client/_app/version.json +1 -1
  54. package/build/client/_app/version.json.br +0 -0
  55. package/build/client/_app/version.json.gz +0 -0
  56. package/build/server/chunks/{0-m42kIUxj.js → 0-C1NyHW8A.js} +2 -2
  57. package/build/server/chunks/{0-m42kIUxj.js.map → 0-C1NyHW8A.js.map} +1 -1
  58. package/build/server/chunks/{1-uc74UVG3.js → 1-CThf4W5r.js} +2 -2
  59. package/build/server/chunks/{1-uc74UVG3.js.map → 1-CThf4W5r.js.map} +1 -1
  60. package/build/server/chunks/{3-Bi8teWON.js → 3-CJf0NbiV.js} +2 -2
  61. package/build/server/chunks/{3-Bi8teWON.js.map → 3-CJf0NbiV.js.map} +1 -1
  62. package/build/server/chunks/{4-u1WGAtFU.js → 4-Dfbpsagm.js} +2 -2
  63. package/build/server/chunks/{4-u1WGAtFU.js.map → 4-Dfbpsagm.js.map} +1 -1
  64. package/build/server/chunks/{5-BlGdcdjs.js → 5-DLB6GOjf.js} +2 -2
  65. package/build/server/chunks/{5-BlGdcdjs.js.map → 5-DLB6GOjf.js.map} +1 -1
  66. package/build/server/chunks/{6-YCp6xyCU.js → 6-DfCARDKO.js} +2 -2
  67. package/build/server/chunks/{6-YCp6xyCU.js.map → 6-DfCARDKO.js.map} +1 -1
  68. package/build/server/chunks/{7-ieA4k9K_.js → 7-B5o4OymX.js} +2 -2
  69. package/build/server/chunks/{7-ieA4k9K_.js.map → 7-B5o4OymX.js.map} +1 -1
  70. package/build/server/index.js +1 -1
  71. package/build/server/index.js.map +1 -1
  72. package/build/server/manifest.js +8 -8
  73. package/build/server/manifest.js.map +1 -1
  74. package/cli.ts +148 -0
  75. package/dist/cli.js +2 -3
  76. package/ecosystem.config.js +9 -0
  77. package/package.json +10 -2
  78. package/src/api/servers.remote.ts +98 -0
  79. package/src/app.css +228 -0
  80. package/src/app.d.ts +16 -0
  81. package/src/app.html +11 -0
  82. package/src/hooks.server.ts +34 -0
  83. package/src/lib/components/Breadcrumbs.svelte +133 -0
  84. package/src/lib/components/JsonValue.svelte +248 -0
  85. package/src/lib/components/Notifications.svelte +81 -0
  86. package/src/lib/components/Panel.svelte +37 -0
  87. package/src/lib/components/PrettyJson.svelte +187 -0
  88. package/src/lib/components/SearchBox.svelte +160 -0
  89. package/src/lib/components/TooltipTable.svelte +137 -0
  90. package/src/lib/server/HostsManager.ts +105 -0
  91. package/src/lib/server/JsonEncoder.ts +62 -0
  92. package/src/lib/server/mongo.ts +199 -0
  93. package/src/lib/stores/notifications.svelte.ts +45 -0
  94. package/src/lib/types.ts +56 -0
  95. package/src/lib/utils/filters.ts +25 -0
  96. package/src/lib/utils/jsonParser.ts +125 -0
  97. package/src/routes/+layout.server.ts +7 -0
  98. package/src/routes/+layout.svelte +27 -0
  99. package/src/routes/+page.server.ts +6 -0
  100. package/src/routes/servers/+page.server.ts +53 -0
  101. package/src/routes/servers/+page.svelte +196 -0
  102. package/src/routes/servers/[server]/databases/+page.server.ts +47 -0
  103. package/src/routes/servers/[server]/databases/+page.svelte +88 -0
  104. package/src/routes/servers/[server]/databases/[database]/collections/+page.server.ts +21 -0
  105. package/src/routes/servers/[server]/databases/[database]/collections/+page.svelte +110 -0
  106. package/src/routes/servers/[server]/databases/[database]/collections/[collection]/+page.server.ts +106 -0
  107. package/src/routes/servers/[server]/databases/[database]/collections/[collection]/+page.svelte +174 -0
  108. package/src/routes/servers/[server]/databases/[database]/collections/[collection]/documents/[document]/+page.server.ts +25 -0
  109. package/src/routes/servers/[server]/databases/[database]/collections/[collection]/documents/[document]/+page.svelte +90 -0
  110. package/src/tests/api/readonly.test.ts +89 -0
  111. package/src/tests/setup.ts +19 -0
  112. package/svelte.config.js +28 -0
  113. package/tsconfig.cli.json +15 -0
  114. package/tsconfig.json +19 -0
  115. package/vite.config.ts +7 -0
  116. package/build/client/_app/immutable/chunks/BFhvhM4X.js.br +0 -0
  117. package/build/client/_app/immutable/chunks/BFhvhM4X.js.gz +0 -0
  118. package/build/client/_app/immutable/chunks/BdWVCPGW.js.br +0 -0
  119. package/build/client/_app/immutable/chunks/BdWVCPGW.js.gz +0 -0
  120. package/build/client/_app/immutable/chunks/CGIdus8b.js.br +0 -0
  121. package/build/client/_app/immutable/chunks/CGIdus8b.js.gz +0 -0
  122. package/build/client/_app/immutable/chunks/CN-ecO3-.js.br +0 -0
  123. package/build/client/_app/immutable/chunks/CN-ecO3-.js.gz +0 -0
  124. package/build/client/_app/immutable/chunks/DB3PPjLu.js +0 -4
  125. package/build/client/_app/immutable/chunks/DB3PPjLu.js.br +0 -0
  126. package/build/client/_app/immutable/chunks/DB3PPjLu.js.gz +0 -0
  127. package/build/client/_app/immutable/chunks/MHUppGzk.js.br +0 -0
  128. package/build/client/_app/immutable/chunks/MHUppGzk.js.gz +0 -0
  129. package/build/client/_app/immutable/chunks/_2kcttvK.js.br +0 -0
  130. package/build/client/_app/immutable/chunks/_2kcttvK.js.gz +0 -0
  131. package/build/client/_app/immutable/chunks/zXvB9_Mi.js.br +0 -0
  132. package/build/client/_app/immutable/chunks/zXvB9_Mi.js.gz +0 -0
  133. package/build/client/_app/immutable/entry/app.hGE78f-O.js.br +0 -0
  134. package/build/client/_app/immutable/entry/app.hGE78f-O.js.gz +0 -0
  135. package/build/client/_app/immutable/entry/start._GE1Zd3d.js +0 -1
  136. package/build/client/_app/immutable/entry/start._GE1Zd3d.js.br +0 -2
  137. package/build/client/_app/immutable/entry/start._GE1Zd3d.js.gz +0 -0
  138. package/build/client/_app/immutable/nodes/0.DyBXVtnT.js.br +0 -0
  139. package/build/client/_app/immutable/nodes/0.DyBXVtnT.js.gz +0 -0
  140. package/build/client/_app/immutable/nodes/1.FqB0jq88.js.br +0 -2
  141. package/build/client/_app/immutable/nodes/1.FqB0jq88.js.gz +0 -0
  142. package/build/client/_app/immutable/nodes/3.Bekn_8hM.js.br +0 -0
  143. package/build/client/_app/immutable/nodes/3.Bekn_8hM.js.gz +0 -0
  144. package/build/client/_app/immutable/nodes/4.DQfaAvJi.js.br +0 -0
  145. package/build/client/_app/immutable/nodes/4.DQfaAvJi.js.gz +0 -0
  146. package/build/client/_app/immutable/nodes/5.B1E6iW2R.js.br +0 -0
  147. package/build/client/_app/immutable/nodes/5.B1E6iW2R.js.gz +0 -0
  148. package/build/client/_app/immutable/nodes/6.28eZQkvz.js.br +0 -0
  149. package/build/client/_app/immutable/nodes/6.28eZQkvz.js.gz +0 -0
  150. package/build/client/_app/immutable/nodes/7.qpcLWZb7.js.br +0 -0
  151. package/build/client/_app/immutable/nodes/7.qpcLWZb7.js.gz +0 -0
package/Dockerfile ADDED
@@ -0,0 +1,27 @@
1
+ FROM node:24-alpine AS base
2
+ ENV PNPM_HOME="/pnpm"
3
+ ENV PATH="$PNPM_HOME:$PATH"
4
+ RUN corepack enable
5
+ COPY . /app
6
+ WORKDIR /app
7
+
8
+ FROM base AS prod-deps
9
+ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile
10
+
11
+ FROM base AS build
12
+ RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
13
+ RUN pnpm build
14
+
15
+ FROM base
16
+ COPY --from=prod-deps /app/node_modules /app/node_modules
17
+ COPY --from=build /app/build /app/build
18
+
19
+ # See also other MONGOKU_SERVER_ env vars, in README.md. Like MONGOKU_SERVER_ORIGIN, or reverse-proxy-related vars.
20
+ # See https://svelte.dev/docs/kit/adapter-node#environment-variables-port-and-host
21
+ ENV MONGOKU_SERVER_PORT=3100
22
+
23
+ EXPOSE 3100
24
+
25
+ LABEL description="MongoDB client for the web. Query your data directly from your browser. You can host it locally, or anywhere else, for you and your team."
26
+
27
+ CMD ["node", "build"]
@@ -1 +1 @@
1
- import{s as e,p as r}from"./DB3PPjLu.js";const t={get error(){return r.error},get params(){return r.params},get status(){return r.status},get url(){return r.url}};e.updated.check;const a=t;export{a as p};
1
+ import{s as e,p as r}from"./BzAcxkRZ.js";const t={get error(){return r.error},get params(){return r.params},get status(){return r.status},get url(){return r.url}};e.updated.check;const a=t;export{a as p};
@@ -1,4 +1,4 @@
1
- import"./BY57TmdO.js";import{a3 as it,p as rt,g as Q,a as W,b as T,c as st,f as U,d as P,s as O,r as M,i as L,u as ge,t as _,e as j,n as ze,h as Ze,M as Ue,aS as at,N as me}from"./BaB-cr9N.js";import{i as R}from"./D17Lj1H7.js";import{b as de,s as nt,e as $e,i as ut,r as ot}from"./BFhvhM4X.js";import{b as ht}from"./BdWVCPGW.js";import{b as lt}from"./D72Du7TF.js";import{p as Fe}from"./iHsChU5o.js";import{n as ct}from"./BKCvWebR.js";import{P as pt}from"./zXvB9_Mi.js";var Oe={exports:{}},ft=Oe.exports,et;function dt(){return et||(et=1,(function(I,S){(function(c,A){I.exports=A()})(ft,function(){return(function(w){var c={};function A(h){if(c[h])return c[h].exports;var v=c[h]={exports:{},id:h,loaded:!1};return w[h].call(v.exports,v,v.exports,A),v.loaded=!0,v.exports}return A.m=w,A.c=c,A.p="",A(0)})([function(w,c,A){Object.defineProperty(c,"__esModule",{value:!0});var h=A(1),v=A(3),f=A(8),o=A(15);function k(s,e,t){var i=null,r=function(B,N){t&&t(B,N),i&&i.visit(B,N)},a=typeof t=="function"?r:null,l=!1;if(e){l=typeof e.comment=="boolean"&&e.comment;var D=typeof e.attachComment=="boolean"&&e.attachComment;(l||D)&&(i=new h.CommentHandler,i.attach=D,e.comment=!0,a=r)}var E=!1;e&&typeof e.sourceType=="string"&&(E=e.sourceType==="module");var C;e&&typeof e.jsx=="boolean"&&e.jsx?C=new v.JSXParser(s,e,a):C=new f.Parser(s,e,a);var g=E?C.parseModule():C.parseScript(),b=g;return l&&i&&(b.comments=i.comments),C.config.tokens&&(b.tokens=C.tokens),C.config.tolerant&&(b.errors=C.errorHandler.errors),b}c.parse=k;function x(s,e,t){var i=e||{};return i.sourceType="module",k(s,i,t)}c.parseModule=x;function m(s,e,t){var i=e||{};return i.sourceType="script",k(s,i,t)}c.parseScript=m;function n(s,e,t){var i=new o.Tokenizer(s,e),r;r=[];try{for(;;){var a=i.getNextToken();if(!a)break;t&&(a=t(a)),r.push(a)}}catch(l){i.errorHandler.tolerate(l)}return i.errorHandler.tolerant&&(r.errors=i.errors()),r}c.tokenize=n;var u=A(2);c.Syntax=u.Syntax,c.version="4.0.1"},function(w,c,A){Object.defineProperty(c,"__esModule",{value:!0});var h=A(2),v=(function(){function f(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return f.prototype.insertInnerComments=function(o,k){if(o.type===h.Syntax.BlockStatement&&o.body.length===0){for(var x=[],m=this.leading.length-1;m>=0;--m){var n=this.leading[m];k.end.offset>=n.start&&(x.unshift(n.comment),this.leading.splice(m,1),this.trailing.splice(m,1))}x.length&&(o.innerComments=x)}},f.prototype.findTrailingComments=function(o){var k=[];if(this.trailing.length>0){for(var x=this.trailing.length-1;x>=0;--x){var m=this.trailing[x];m.start>=o.end.offset&&k.unshift(m.comment)}return this.trailing.length=0,k}var n=this.stack[this.stack.length-1];if(n&&n.node.trailingComments){var u=n.node.trailingComments[0];u&&u.range[0]>=o.end.offset&&(k=n.node.trailingComments,delete n.node.trailingComments)}return k},f.prototype.findLeadingComments=function(o){for(var k=[],x;this.stack.length>0;){var m=this.stack[this.stack.length-1];if(m&&m.start>=o.start.offset)x=m.node,this.stack.pop();else break}if(x){for(var n=x.leadingComments?x.leadingComments.length:0,u=n-1;u>=0;--u){var s=x.leadingComments[u];s.range[1]<=o.start.offset&&(k.unshift(s),x.leadingComments.splice(u,1))}return x.leadingComments&&x.leadingComments.length===0&&delete x.leadingComments,k}for(var u=this.leading.length-1;u>=0;--u){var m=this.leading[u];m.start<=o.start.offset&&(k.unshift(m.comment),this.leading.splice(u,1))}return k},f.prototype.visitNode=function(o,k){if(!(o.type===h.Syntax.Program&&o.body.length>0)){this.insertInnerComments(o,k);var x=this.findTrailingComments(k),m=this.findLeadingComments(k);m.length>0&&(o.leadingComments=m),x.length>0&&(o.trailingComments=x),this.stack.push({node:o,start:k.start.offset})}},f.prototype.visitComment=function(o,k){var x=o.type[0]==="L"?"Line":"Block",m={type:x,value:o.value};if(o.range&&(m.range=o.range),o.loc&&(m.loc=o.loc),this.comments.push(m),this.attach){var n={comment:{type:x,value:o.value,range:[k.start.offset,k.end.offset]},start:k.start.offset};o.loc&&(n.comment.loc=o.loc),o.type=x,this.leading.push(n),this.trailing.push(n)}},f.prototype.visit=function(o,k){o.type==="LineComment"?this.visitComment(o,k):o.type==="BlockComment"?this.visitComment(o,k):this.attach&&this.visitNode(o,k)},f})();c.CommentHandler=v},function(w,c){Object.defineProperty(c,"__esModule",{value:!0}),c.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(w,c,A){var h=this&&this.__extends||(function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])};return function(t,i){e(t,i);function r(){this.constructor=t}t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}})();Object.defineProperty(c,"__esModule",{value:!0});var v=A(4),f=A(5),o=A(6),k=A(7),x=A(8),m=A(13),n=A(14);m.TokenName[100]="JSXIdentifier",m.TokenName[101]="JSXText";function u(e){var t;switch(e.type){case o.JSXSyntax.JSXIdentifier:var i=e;t=i.name;break;case o.JSXSyntax.JSXNamespacedName:var r=e;t=u(r.namespace)+":"+u(r.name);break;case o.JSXSyntax.JSXMemberExpression:var a=e;t=u(a.object)+"."+u(a.property);break}return t}var s=(function(e){h(t,e);function t(i,r,a){return e.call(this,i,r,a)||this}return t.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(i){for(var r="&",a=!0,l=!1,D=!1,E=!1;!this.scanner.eof()&&a&&!l;){var C=this.scanner.source[this.scanner.index];if(C===i)break;if(l=C===";",r+=C,++this.scanner.index,!l)switch(r.length){case 2:D=C==="#";break;case 3:D&&(E=C==="x",a=E||v.Character.isDecimalDigit(C.charCodeAt(0)),D=D&&!E);break;default:a=a&&!(D&&!v.Character.isDecimalDigit(C.charCodeAt(0))),a=a&&!(E&&!v.Character.isHexDigit(C.charCodeAt(0)));break}}if(a&&l&&r.length>2){var g=r.substr(1,r.length-2);D&&g.length>1?r=String.fromCharCode(parseInt(g.substr(1),10)):E&&g.length>2?r=String.fromCharCode(parseInt("0"+g.substr(1),16)):!D&&!E&&n.XHTMLEntities[g]&&(r=n.XHTMLEntities[g])}return r},t.prototype.lexJSX=function(){var i=this.scanner.source.charCodeAt(this.scanner.index);if(i===60||i===62||i===47||i===58||i===61||i===123||i===125){var r=this.scanner.source[this.scanner.index++];return{type:7,value:r,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(i===34||i===39){for(var a=this.scanner.index,l=this.scanner.source[this.scanner.index++],D="";!this.scanner.eof();){var E=this.scanner.source[this.scanner.index++];if(E===l)break;E==="&"?D+=this.scanXHTMLEntity(l):D+=E}return{type:8,value:D,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:a,end:this.scanner.index}}if(i===46){var C=this.scanner.source.charCodeAt(this.scanner.index+1),g=this.scanner.source.charCodeAt(this.scanner.index+2),r=C===46&&g===46?"...":".",a=this.scanner.index;return this.scanner.index+=r.length,{type:7,value:r,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:a,end:this.scanner.index}}if(i===96)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(v.Character.isIdentifierStart(i)&&i!==92){var a=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var E=this.scanner.source.charCodeAt(this.scanner.index);if(v.Character.isIdentifierPart(E)&&E!==92)++this.scanner.index;else if(E===45)++this.scanner.index;else break}var b=this.scanner.source.slice(a,this.scanner.index);return{type:100,value:b,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:a,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var i=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(i)),i},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var i=this.scanner.index,r="";!this.scanner.eof();){var a=this.scanner.source[this.scanner.index];if(a==="{"||a==="<")break;++this.scanner.index,r+=a,v.Character.isLineTerminator(a.charCodeAt(0))&&(++this.scanner.lineNumber,a==="\r"&&this.scanner.source[this.scanner.index]===`
1
+ import"./BY57TmdO.js";import{a3 as it,p as rt,g as Q,a as W,b as T,c as st,f as U,d as P,s as O,r as M,i as L,u as ge,t as _,e as j,n as ze,h as Ze,M as Ue,aS as at,N as me}from"./BaB-cr9N.js";import{i as R}from"./D17Lj1H7.js";import{b as de,s as nt,e as $e,i as ut,r as ot}from"./CyQLXPZI.js";import{b as ht}from"./D4VhtiDg.js";import{b as lt}from"./D72Du7TF.js";import{p as Fe}from"./iHsChU5o.js";import{n as ct}from"./BKCvWebR.js";import{P as pt}from"./XYFbSe2V.js";var Oe={exports:{}},ft=Oe.exports,et;function dt(){return et||(et=1,(function(I,S){(function(c,A){I.exports=A()})(ft,function(){return(function(w){var c={};function A(h){if(c[h])return c[h].exports;var v=c[h]={exports:{},id:h,loaded:!1};return w[h].call(v.exports,v,v.exports,A),v.loaded=!0,v.exports}return A.m=w,A.c=c,A.p="",A(0)})([function(w,c,A){Object.defineProperty(c,"__esModule",{value:!0});var h=A(1),v=A(3),f=A(8),o=A(15);function k(s,e,t){var i=null,r=function(B,N){t&&t(B,N),i&&i.visit(B,N)},a=typeof t=="function"?r:null,l=!1;if(e){l=typeof e.comment=="boolean"&&e.comment;var D=typeof e.attachComment=="boolean"&&e.attachComment;(l||D)&&(i=new h.CommentHandler,i.attach=D,e.comment=!0,a=r)}var E=!1;e&&typeof e.sourceType=="string"&&(E=e.sourceType==="module");var C;e&&typeof e.jsx=="boolean"&&e.jsx?C=new v.JSXParser(s,e,a):C=new f.Parser(s,e,a);var g=E?C.parseModule():C.parseScript(),b=g;return l&&i&&(b.comments=i.comments),C.config.tokens&&(b.tokens=C.tokens),C.config.tolerant&&(b.errors=C.errorHandler.errors),b}c.parse=k;function x(s,e,t){var i=e||{};return i.sourceType="module",k(s,i,t)}c.parseModule=x;function m(s,e,t){var i=e||{};return i.sourceType="script",k(s,i,t)}c.parseScript=m;function n(s,e,t){var i=new o.Tokenizer(s,e),r;r=[];try{for(;;){var a=i.getNextToken();if(!a)break;t&&(a=t(a)),r.push(a)}}catch(l){i.errorHandler.tolerate(l)}return i.errorHandler.tolerant&&(r.errors=i.errors()),r}c.tokenize=n;var u=A(2);c.Syntax=u.Syntax,c.version="4.0.1"},function(w,c,A){Object.defineProperty(c,"__esModule",{value:!0});var h=A(2),v=(function(){function f(){this.attach=!1,this.comments=[],this.stack=[],this.leading=[],this.trailing=[]}return f.prototype.insertInnerComments=function(o,k){if(o.type===h.Syntax.BlockStatement&&o.body.length===0){for(var x=[],m=this.leading.length-1;m>=0;--m){var n=this.leading[m];k.end.offset>=n.start&&(x.unshift(n.comment),this.leading.splice(m,1),this.trailing.splice(m,1))}x.length&&(o.innerComments=x)}},f.prototype.findTrailingComments=function(o){var k=[];if(this.trailing.length>0){for(var x=this.trailing.length-1;x>=0;--x){var m=this.trailing[x];m.start>=o.end.offset&&k.unshift(m.comment)}return this.trailing.length=0,k}var n=this.stack[this.stack.length-1];if(n&&n.node.trailingComments){var u=n.node.trailingComments[0];u&&u.range[0]>=o.end.offset&&(k=n.node.trailingComments,delete n.node.trailingComments)}return k},f.prototype.findLeadingComments=function(o){for(var k=[],x;this.stack.length>0;){var m=this.stack[this.stack.length-1];if(m&&m.start>=o.start.offset)x=m.node,this.stack.pop();else break}if(x){for(var n=x.leadingComments?x.leadingComments.length:0,u=n-1;u>=0;--u){var s=x.leadingComments[u];s.range[1]<=o.start.offset&&(k.unshift(s),x.leadingComments.splice(u,1))}return x.leadingComments&&x.leadingComments.length===0&&delete x.leadingComments,k}for(var u=this.leading.length-1;u>=0;--u){var m=this.leading[u];m.start<=o.start.offset&&(k.unshift(m.comment),this.leading.splice(u,1))}return k},f.prototype.visitNode=function(o,k){if(!(o.type===h.Syntax.Program&&o.body.length>0)){this.insertInnerComments(o,k);var x=this.findTrailingComments(k),m=this.findLeadingComments(k);m.length>0&&(o.leadingComments=m),x.length>0&&(o.trailingComments=x),this.stack.push({node:o,start:k.start.offset})}},f.prototype.visitComment=function(o,k){var x=o.type[0]==="L"?"Line":"Block",m={type:x,value:o.value};if(o.range&&(m.range=o.range),o.loc&&(m.loc=o.loc),this.comments.push(m),this.attach){var n={comment:{type:x,value:o.value,range:[k.start.offset,k.end.offset]},start:k.start.offset};o.loc&&(n.comment.loc=o.loc),o.type=x,this.leading.push(n),this.trailing.push(n)}},f.prototype.visit=function(o,k){o.type==="LineComment"?this.visitComment(o,k):o.type==="BlockComment"?this.visitComment(o,k):this.attach&&this.visitNode(o,k)},f})();c.CommentHandler=v},function(w,c){Object.defineProperty(c,"__esModule",{value:!0}),c.Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"}},function(w,c,A){var h=this&&this.__extends||(function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])};return function(t,i){e(t,i);function r(){this.constructor=t}t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}})();Object.defineProperty(c,"__esModule",{value:!0});var v=A(4),f=A(5),o=A(6),k=A(7),x=A(8),m=A(13),n=A(14);m.TokenName[100]="JSXIdentifier",m.TokenName[101]="JSXText";function u(e){var t;switch(e.type){case o.JSXSyntax.JSXIdentifier:var i=e;t=i.name;break;case o.JSXSyntax.JSXNamespacedName:var r=e;t=u(r.namespace)+":"+u(r.name);break;case o.JSXSyntax.JSXMemberExpression:var a=e;t=u(a.object)+"."+u(a.property);break}return t}var s=(function(e){h(t,e);function t(i,r,a){return e.call(this,i,r,a)||this}return t.prototype.parsePrimaryExpression=function(){return this.match("<")?this.parseJSXRoot():e.prototype.parsePrimaryExpression.call(this)},t.prototype.startJSX=function(){this.scanner.index=this.startMarker.index,this.scanner.lineNumber=this.startMarker.line,this.scanner.lineStart=this.startMarker.index-this.startMarker.column},t.prototype.finishJSX=function(){this.nextToken()},t.prototype.reenterJSX=function(){this.startJSX(),this.expectJSX("}"),this.config.tokens&&this.tokens.pop()},t.prototype.createJSXNode=function(){return this.collectComments(),{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.createJSXChildNode=function(){return{index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}},t.prototype.scanXHTMLEntity=function(i){for(var r="&",a=!0,l=!1,D=!1,E=!1;!this.scanner.eof()&&a&&!l;){var C=this.scanner.source[this.scanner.index];if(C===i)break;if(l=C===";",r+=C,++this.scanner.index,!l)switch(r.length){case 2:D=C==="#";break;case 3:D&&(E=C==="x",a=E||v.Character.isDecimalDigit(C.charCodeAt(0)),D=D&&!E);break;default:a=a&&!(D&&!v.Character.isDecimalDigit(C.charCodeAt(0))),a=a&&!(E&&!v.Character.isHexDigit(C.charCodeAt(0)));break}}if(a&&l&&r.length>2){var g=r.substr(1,r.length-2);D&&g.length>1?r=String.fromCharCode(parseInt(g.substr(1),10)):E&&g.length>2?r=String.fromCharCode(parseInt("0"+g.substr(1),16)):!D&&!E&&n.XHTMLEntities[g]&&(r=n.XHTMLEntities[g])}return r},t.prototype.lexJSX=function(){var i=this.scanner.source.charCodeAt(this.scanner.index);if(i===60||i===62||i===47||i===58||i===61||i===123||i===125){var r=this.scanner.source[this.scanner.index++];return{type:7,value:r,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index-1,end:this.scanner.index}}if(i===34||i===39){for(var a=this.scanner.index,l=this.scanner.source[this.scanner.index++],D="";!this.scanner.eof();){var E=this.scanner.source[this.scanner.index++];if(E===l)break;E==="&"?D+=this.scanXHTMLEntity(l):D+=E}return{type:8,value:D,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:a,end:this.scanner.index}}if(i===46){var C=this.scanner.source.charCodeAt(this.scanner.index+1),g=this.scanner.source.charCodeAt(this.scanner.index+2),r=C===46&&g===46?"...":".",a=this.scanner.index;return this.scanner.index+=r.length,{type:7,value:r,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:a,end:this.scanner.index}}if(i===96)return{type:10,value:"",lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:this.scanner.index,end:this.scanner.index};if(v.Character.isIdentifierStart(i)&&i!==92){var a=this.scanner.index;for(++this.scanner.index;!this.scanner.eof();){var E=this.scanner.source.charCodeAt(this.scanner.index);if(v.Character.isIdentifierPart(E)&&E!==92)++this.scanner.index;else if(E===45)++this.scanner.index;else break}var b=this.scanner.source.slice(a,this.scanner.index);return{type:100,value:b,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:a,end:this.scanner.index}}return this.scanner.lex()},t.prototype.nextJSXToken=function(){this.collectComments(),this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;var i=this.lexJSX();return this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.config.tokens&&this.tokens.push(this.convertToken(i)),i},t.prototype.nextJSXText=function(){this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart;for(var i=this.scanner.index,r="";!this.scanner.eof();){var a=this.scanner.source[this.scanner.index];if(a==="{"||a==="<")break;++this.scanner.index,r+=a,v.Character.isLineTerminator(a.charCodeAt(0))&&(++this.scanner.lineNumber,a==="\r"&&this.scanner.source[this.scanner.index]===`
2
2
  `&&++this.scanner.index,this.scanner.lineStart=this.scanner.index)}this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart;var l={type:101,value:r,lineNumber:this.scanner.lineNumber,lineStart:this.scanner.lineStart,start:i,end:this.scanner.index};return r.length>0&&this.config.tokens&&this.tokens.push(this.convertToken(l)),l},t.prototype.peekJSXToken=function(){var i=this.scanner.saveState();this.scanner.scanComments();var r=this.lexJSX();return this.scanner.restoreState(i),r},t.prototype.expectJSX=function(i){var r=this.nextJSXToken();(r.type!==7||r.value!==i)&&this.throwUnexpectedToken(r)},t.prototype.matchJSX=function(i){var r=this.peekJSXToken();return r.type===7&&r.value===i},t.prototype.parseJSXIdentifier=function(){var i=this.createJSXNode(),r=this.nextJSXToken();return r.type!==100&&this.throwUnexpectedToken(r),this.finalize(i,new f.JSXIdentifier(r.value))},t.prototype.parseJSXElementName=function(){var i=this.createJSXNode(),r=this.parseJSXIdentifier();if(this.matchJSX(":")){var a=r;this.expectJSX(":");var l=this.parseJSXIdentifier();r=this.finalize(i,new f.JSXNamespacedName(a,l))}else if(this.matchJSX("."))for(;this.matchJSX(".");){var D=r;this.expectJSX(".");var E=this.parseJSXIdentifier();r=this.finalize(i,new f.JSXMemberExpression(D,E))}return r},t.prototype.parseJSXAttributeName=function(){var i=this.createJSXNode(),r,a=this.parseJSXIdentifier();if(this.matchJSX(":")){var l=a;this.expectJSX(":");var D=this.parseJSXIdentifier();r=this.finalize(i,new f.JSXNamespacedName(l,D))}else r=a;return r},t.prototype.parseJSXStringLiteralAttribute=function(){var i=this.createJSXNode(),r=this.nextJSXToken();r.type!==8&&this.throwUnexpectedToken(r);var a=this.getTokenRaw(r);return this.finalize(i,new k.Literal(r.value,a))},t.prototype.parseJSXExpressionAttribute=function(){var i=this.createJSXNode();this.expectJSX("{"),this.finishJSX(),this.match("}")&&this.tolerateError("JSX attributes must only be assigned a non-empty expression");var r=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(i,new f.JSXExpressionContainer(r))},t.prototype.parseJSXAttributeValue=function(){return this.matchJSX("{")?this.parseJSXExpressionAttribute():this.matchJSX("<")?this.parseJSXElement():this.parseJSXStringLiteralAttribute()},t.prototype.parseJSXNameValueAttribute=function(){var i=this.createJSXNode(),r=this.parseJSXAttributeName(),a=null;return this.matchJSX("=")&&(this.expectJSX("="),a=this.parseJSXAttributeValue()),this.finalize(i,new f.JSXAttribute(r,a))},t.prototype.parseJSXSpreadAttribute=function(){var i=this.createJSXNode();this.expectJSX("{"),this.expectJSX("..."),this.finishJSX();var r=this.parseAssignmentExpression();return this.reenterJSX(),this.finalize(i,new f.JSXSpreadAttribute(r))},t.prototype.parseJSXAttributes=function(){for(var i=[];!this.matchJSX("/")&&!this.matchJSX(">");){var r=this.matchJSX("{")?this.parseJSXSpreadAttribute():this.parseJSXNameValueAttribute();i.push(r)}return i},t.prototype.parseJSXOpeningElement=function(){var i=this.createJSXNode();this.expectJSX("<");var r=this.parseJSXElementName(),a=this.parseJSXAttributes(),l=this.matchJSX("/");return l&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(i,new f.JSXOpeningElement(r,l,a))},t.prototype.parseJSXBoundaryElement=function(){var i=this.createJSXNode();if(this.expectJSX("<"),this.matchJSX("/")){this.expectJSX("/");var r=this.parseJSXElementName();return this.expectJSX(">"),this.finalize(i,new f.JSXClosingElement(r))}var a=this.parseJSXElementName(),l=this.parseJSXAttributes(),D=this.matchJSX("/");return D&&this.expectJSX("/"),this.expectJSX(">"),this.finalize(i,new f.JSXOpeningElement(a,D,l))},t.prototype.parseJSXEmptyExpression=function(){var i=this.createJSXChildNode();return this.collectComments(),this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.finalize(i,new f.JSXEmptyExpression)},t.prototype.parseJSXExpressionContainer=function(){var i=this.createJSXNode();this.expectJSX("{");var r;return this.matchJSX("}")?(r=this.parseJSXEmptyExpression(),this.expectJSX("}")):(this.finishJSX(),r=this.parseAssignmentExpression(),this.reenterJSX()),this.finalize(i,new f.JSXExpressionContainer(r))},t.prototype.parseJSXChildren=function(){for(var i=[];!this.scanner.eof();){var r=this.createJSXChildNode(),a=this.nextJSXText();if(a.start<a.end){var l=this.getTokenRaw(a),D=this.finalize(r,new f.JSXText(a.value,l));i.push(D)}if(this.scanner.source[this.scanner.index]==="{"){var E=this.parseJSXExpressionContainer();i.push(E)}else break}return i},t.prototype.parseComplexJSXElement=function(i){for(var r=[];!this.scanner.eof();){i.children=i.children.concat(this.parseJSXChildren());var a=this.createJSXChildNode(),l=this.parseJSXBoundaryElement();if(l.type===o.JSXSyntax.JSXOpeningElement){var D=l;if(D.selfClosing){var E=this.finalize(a,new f.JSXElement(D,[],null));i.children.push(E)}else r.push(i),i={node:a,opening:D,closing:null,children:[]}}if(l.type===o.JSXSyntax.JSXClosingElement){i.closing=l;var C=u(i.opening.name),g=u(i.closing.name);if(C!==g&&this.tolerateError("Expected corresponding JSX closing tag for %0",C),r.length>0){var E=this.finalize(i.node,new f.JSXElement(i.opening,i.children,i.closing));i=r[r.length-1],i.children.push(E),r.pop()}else break}}return i},t.prototype.parseJSXElement=function(){var i=this.createJSXNode(),r=this.parseJSXOpeningElement(),a=[],l=null;if(!r.selfClosing){var D=this.parseComplexJSXElement({node:i,opening:r,closing:l,children:a});a=D.children,l=D.closing}return this.finalize(i,new f.JSXElement(r,a,l))},t.prototype.parseJSXRoot=function(){this.config.tokens&&this.tokens.pop(),this.startJSX();var i=this.parseJSXElement();return this.finishJSX(),i},t.prototype.isStartOfExpression=function(){return e.prototype.isStartOfExpression.call(this)||this.match("<")},t})(x.Parser);c.JSXParser=s},function(w,c){Object.defineProperty(c,"__esModule",{value:!0});var A={NonAsciiIdentifierStart:/[\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\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\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\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-\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\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\u2118-\u211D\u2124\u2126\u2128\u212A-\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\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\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-\uA7AD\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\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\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\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\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\u1369-\u1371\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-\u19DA\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\u2118-\u211D\u2124\u2126\u2128\u212A-\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\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\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-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};c.Character={fromCodePoint:function(h){return h<65536?String.fromCharCode(h):String.fromCharCode(55296+(h-65536>>10))+String.fromCharCode(56320+(h-65536&1023))},isWhiteSpace:function(h){return h===32||h===9||h===11||h===12||h===160||h>=5760&&[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(h)>=0},isLineTerminator:function(h){return h===10||h===13||h===8232||h===8233},isIdentifierStart:function(h){return h===36||h===95||h>=65&&h<=90||h>=97&&h<=122||h===92||h>=128&&A.NonAsciiIdentifierStart.test(c.Character.fromCodePoint(h))},isIdentifierPart:function(h){return h===36||h===95||h>=65&&h<=90||h>=97&&h<=122||h>=48&&h<=57||h===92||h>=128&&A.NonAsciiIdentifierPart.test(c.Character.fromCodePoint(h))},isDecimalDigit:function(h){return h>=48&&h<=57},isHexDigit:function(h){return h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102},isOctalDigit:function(h){return h>=48&&h<=55}}},function(w,c,A){Object.defineProperty(c,"__esModule",{value:!0});var h=A(6),v=(function(){function i(r){this.type=h.JSXSyntax.JSXClosingElement,this.name=r}return i})();c.JSXClosingElement=v;var f=(function(){function i(r,a,l){this.type=h.JSXSyntax.JSXElement,this.openingElement=r,this.children=a,this.closingElement=l}return i})();c.JSXElement=f;var o=(function(){function i(){this.type=h.JSXSyntax.JSXEmptyExpression}return i})();c.JSXEmptyExpression=o;var k=(function(){function i(r){this.type=h.JSXSyntax.JSXExpressionContainer,this.expression=r}return i})();c.JSXExpressionContainer=k;var x=(function(){function i(r){this.type=h.JSXSyntax.JSXIdentifier,this.name=r}return i})();c.JSXIdentifier=x;var m=(function(){function i(r,a){this.type=h.JSXSyntax.JSXMemberExpression,this.object=r,this.property=a}return i})();c.JSXMemberExpression=m;var n=(function(){function i(r,a){this.type=h.JSXSyntax.JSXAttribute,this.name=r,this.value=a}return i})();c.JSXAttribute=n;var u=(function(){function i(r,a){this.type=h.JSXSyntax.JSXNamespacedName,this.namespace=r,this.name=a}return i})();c.JSXNamespacedName=u;var s=(function(){function i(r,a,l){this.type=h.JSXSyntax.JSXOpeningElement,this.name=r,this.selfClosing=a,this.attributes=l}return i})();c.JSXOpeningElement=s;var e=(function(){function i(r){this.type=h.JSXSyntax.JSXSpreadAttribute,this.argument=r}return i})();c.JSXSpreadAttribute=e;var t=(function(){function i(r,a){this.type=h.JSXSyntax.JSXText,this.value=r,this.raw=a}return i})();c.JSXText=t},function(w,c){Object.defineProperty(c,"__esModule",{value:!0}),c.JSXSyntax={JSXAttribute:"JSXAttribute",JSXClosingElement:"JSXClosingElement",JSXElement:"JSXElement",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXIdentifier:"JSXIdentifier",JSXMemberExpression:"JSXMemberExpression",JSXNamespacedName:"JSXNamespacedName",JSXOpeningElement:"JSXOpeningElement",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText"}},function(w,c,A){Object.defineProperty(c,"__esModule",{value:!0});var h=A(2),v=(function(){function p(d){this.type=h.Syntax.ArrayExpression,this.elements=d}return p})();c.ArrayExpression=v;var f=(function(){function p(d){this.type=h.Syntax.ArrayPattern,this.elements=d}return p})();c.ArrayPattern=f;var o=(function(){function p(d,y,F){this.type=h.Syntax.ArrowFunctionExpression,this.id=null,this.params=d,this.body=y,this.generator=!1,this.expression=F,this.async=!1}return p})();c.ArrowFunctionExpression=o;var k=(function(){function p(d,y,F){this.type=h.Syntax.AssignmentExpression,this.operator=d,this.left=y,this.right=F}return p})();c.AssignmentExpression=k;var x=(function(){function p(d,y){this.type=h.Syntax.AssignmentPattern,this.left=d,this.right=y}return p})();c.AssignmentPattern=x;var m=(function(){function p(d,y,F){this.type=h.Syntax.ArrowFunctionExpression,this.id=null,this.params=d,this.body=y,this.generator=!1,this.expression=F,this.async=!0}return p})();c.AsyncArrowFunctionExpression=m;var n=(function(){function p(d,y,F){this.type=h.Syntax.FunctionDeclaration,this.id=d,this.params=y,this.body=F,this.generator=!1,this.expression=!1,this.async=!0}return p})();c.AsyncFunctionDeclaration=n;var u=(function(){function p(d,y,F){this.type=h.Syntax.FunctionExpression,this.id=d,this.params=y,this.body=F,this.generator=!1,this.expression=!1,this.async=!0}return p})();c.AsyncFunctionExpression=u;var s=(function(){function p(d){this.type=h.Syntax.AwaitExpression,this.argument=d}return p})();c.AwaitExpression=s;var e=(function(){function p(d,y,F){var J=d==="||"||d==="&&";this.type=J?h.Syntax.LogicalExpression:h.Syntax.BinaryExpression,this.operator=d,this.left=y,this.right=F}return p})();c.BinaryExpression=e;var t=(function(){function p(d){this.type=h.Syntax.BlockStatement,this.body=d}return p})();c.BlockStatement=t;var i=(function(){function p(d){this.type=h.Syntax.BreakStatement,this.label=d}return p})();c.BreakStatement=i;var r=(function(){function p(d,y){this.type=h.Syntax.CallExpression,this.callee=d,this.arguments=y}return p})();c.CallExpression=r;var a=(function(){function p(d,y){this.type=h.Syntax.CatchClause,this.param=d,this.body=y}return p})();c.CatchClause=a;var l=(function(){function p(d){this.type=h.Syntax.ClassBody,this.body=d}return p})();c.ClassBody=l;var D=(function(){function p(d,y,F){this.type=h.Syntax.ClassDeclaration,this.id=d,this.superClass=y,this.body=F}return p})();c.ClassDeclaration=D;var E=(function(){function p(d,y,F){this.type=h.Syntax.ClassExpression,this.id=d,this.superClass=y,this.body=F}return p})();c.ClassExpression=E;var C=(function(){function p(d,y){this.type=h.Syntax.MemberExpression,this.computed=!0,this.object=d,this.property=y}return p})();c.ComputedMemberExpression=C;var g=(function(){function p(d,y,F){this.type=h.Syntax.ConditionalExpression,this.test=d,this.consequent=y,this.alternate=F}return p})();c.ConditionalExpression=g;var b=(function(){function p(d){this.type=h.Syntax.ContinueStatement,this.label=d}return p})();c.ContinueStatement=b;var B=(function(){function p(){this.type=h.Syntax.DebuggerStatement}return p})();c.DebuggerStatement=B;var N=(function(){function p(d,y){this.type=h.Syntax.ExpressionStatement,this.expression=d,this.directive=y}return p})();c.Directive=N;var z=(function(){function p(d,y){this.type=h.Syntax.DoWhileStatement,this.body=d,this.test=y}return p})();c.DoWhileStatement=z;var X=(function(){function p(){this.type=h.Syntax.EmptyStatement}return p})();c.EmptyStatement=X;var K=(function(){function p(d){this.type=h.Syntax.ExportAllDeclaration,this.source=d}return p})();c.ExportAllDeclaration=K;var H=(function(){function p(d){this.type=h.Syntax.ExportDefaultDeclaration,this.declaration=d}return p})();c.ExportDefaultDeclaration=H;var $=(function(){function p(d,y,F){this.type=h.Syntax.ExportNamedDeclaration,this.declaration=d,this.specifiers=y,this.source=F}return p})();c.ExportNamedDeclaration=$;var we=(function(){function p(d,y){this.type=h.Syntax.ExportSpecifier,this.exported=y,this.local=d}return p})();c.ExportSpecifier=we;var re=(function(){function p(d){this.type=h.Syntax.ExpressionStatement,this.expression=d}return p})();c.ExpressionStatement=re;var se=(function(){function p(d,y,F){this.type=h.Syntax.ForInStatement,this.left=d,this.right=y,this.body=F,this.each=!1}return p})();c.ForInStatement=se;var ke=(function(){function p(d,y,F){this.type=h.Syntax.ForOfStatement,this.left=d,this.right=y,this.body=F}return p})();c.ForOfStatement=ke;var _e=(function(){function p(d,y,F,J){this.type=h.Syntax.ForStatement,this.init=d,this.test=y,this.update=F,this.body=J}return p})();c.ForStatement=_e;var Ke=(function(){function p(d,y,F,J){this.type=h.Syntax.FunctionDeclaration,this.id=d,this.params=y,this.body=F,this.generator=J,this.expression=!1,this.async=!1}return p})();c.FunctionDeclaration=Ke;var ne=(function(){function p(d,y,F,J){this.type=h.Syntax.FunctionExpression,this.id=d,this.params=y,this.body=F,this.generator=J,this.expression=!1,this.async=!1}return p})();c.FunctionExpression=ne;var Ee=(function(){function p(d){this.type=h.Syntax.Identifier,this.name=d}return p})();c.Identifier=Ee;var je=(function(){function p(d,y,F){this.type=h.Syntax.IfStatement,this.test=d,this.consequent=y,this.alternate=F}return p})();c.IfStatement=je;var He=(function(){function p(d,y){this.type=h.Syntax.ImportDeclaration,this.specifiers=d,this.source=y}return p})();c.ImportDeclaration=He;var We=(function(){function p(d){this.type=h.Syntax.ImportDefaultSpecifier,this.local=d}return p})();c.ImportDefaultSpecifier=We;var ae=(function(){function p(d){this.type=h.Syntax.ImportNamespaceSpecifier,this.local=d}return p})();c.ImportNamespaceSpecifier=ae;var ue=(function(){function p(d,y){this.type=h.Syntax.ImportSpecifier,this.local=d,this.imported=y}return p})();c.ImportSpecifier=ue;var ye=(function(){function p(d,y){this.type=h.Syntax.LabeledStatement,this.label=d,this.body=y}return p})();c.LabeledStatement=ye;var be=(function(){function p(d,y){this.type=h.Syntax.Literal,this.value=d,this.raw=y}return p})();c.Literal=be;var Ge=(function(){function p(d,y){this.type=h.Syntax.MetaProperty,this.meta=d,this.property=y}return p})();c.MetaProperty=Ge;var oe=(function(){function p(d,y,F,J,ie){this.type=h.Syntax.MethodDefinition,this.key=d,this.computed=y,this.value=F,this.kind=J,this.static=ie}return p})();c.MethodDefinition=oe;var he=(function(){function p(d){this.type=h.Syntax.Program,this.body=d,this.sourceType="module"}return p})();c.Module=he;var Ce=(function(){function p(d,y){this.type=h.Syntax.NewExpression,this.callee=d,this.arguments=y}return p})();c.NewExpression=Ce;var Be=(function(){function p(d){this.type=h.Syntax.ObjectExpression,this.properties=d}return p})();c.ObjectExpression=Be;var Ve=(function(){function p(d){this.type=h.Syntax.ObjectPattern,this.properties=d}return p})();c.ObjectPattern=Ve;var le=(function(){function p(d,y,F,J,ie,Xe){this.type=h.Syntax.Property,this.key=y,this.computed=F,this.value=J,this.kind=d,this.method=ie,this.shorthand=Xe}return p})();c.Property=le;var ce=(function(){function p(d,y,F,J){this.type=h.Syntax.Literal,this.value=d,this.raw=y,this.regex={pattern:F,flags:J}}return p})();c.RegexLiteral=ce;var Te=(function(){function p(d){this.type=h.Syntax.RestElement,this.argument=d}return p})();c.RestElement=Te;var Ye=(function(){function p(d){this.type=h.Syntax.ReturnStatement,this.argument=d}return p})();c.ReturnStatement=Ye;var qe=(function(){function p(d){this.type=h.Syntax.Program,this.body=d,this.sourceType="script"}return p})();c.Script=qe;var pe=(function(){function p(d){this.type=h.Syntax.SequenceExpression,this.expressions=d}return p})();c.SequenceExpression=pe;var xe=(function(){function p(d){this.type=h.Syntax.SpreadElement,this.argument=d}return p})();c.SpreadElement=xe;var Ne=(function(){function p(d,y){this.type=h.Syntax.MemberExpression,this.computed=!1,this.object=d,this.property=y}return p})();c.StaticMemberExpression=Ne;var Ie=(function(){function p(){this.type=h.Syntax.Super}return p})();c.Super=Ie;var Me=(function(){function p(d,y){this.type=h.Syntax.SwitchCase,this.test=d,this.consequent=y}return p})();c.SwitchCase=Me;var G=(function(){function p(d,y){this.type=h.Syntax.SwitchStatement,this.discriminant=d,this.cases=y}return p})();c.SwitchStatement=G;var V=(function(){function p(d,y){this.type=h.Syntax.TaggedTemplateExpression,this.tag=d,this.quasi=y}return p})();c.TaggedTemplateExpression=V;var fe=(function(){function p(d,y){this.type=h.Syntax.TemplateElement,this.value=d,this.tail=y}return p})();c.TemplateElement=fe;var te=(function(){function p(d,y){this.type=h.Syntax.TemplateLiteral,this.quasis=d,this.expressions=y}return p})();c.TemplateLiteral=te;var Pe=(function(){function p(){this.type=h.Syntax.ThisExpression}return p})();c.ThisExpression=Pe;var ee=(function(){function p(d){this.type=h.Syntax.ThrowStatement,this.argument=d}return p})();c.ThrowStatement=ee;var Y=(function(){function p(d,y,F){this.type=h.Syntax.TryStatement,this.block=d,this.handler=y,this.finalizer=F}return p})();c.TryStatement=Y;var De=(function(){function p(d,y){this.type=h.Syntax.UnaryExpression,this.operator=d,this.argument=y,this.prefix=!0}return p})();c.UnaryExpression=De;var ve=(function(){function p(d,y,F){this.type=h.Syntax.UpdateExpression,this.operator=d,this.argument=y,this.prefix=F}return p})();c.UpdateExpression=ve;var Je=(function(){function p(d,y){this.type=h.Syntax.VariableDeclaration,this.declarations=d,this.kind=y}return p})();c.VariableDeclaration=Je;var Ae=(function(){function p(d,y){this.type=h.Syntax.VariableDeclarator,this.id=d,this.init=y}return p})();c.VariableDeclarator=Ae;var Se=(function(){function p(d,y){this.type=h.Syntax.WhileStatement,this.test=d,this.body=y}return p})();c.WhileStatement=Se;var q=(function(){function p(d,y){this.type=h.Syntax.WithStatement,this.object=d,this.body=y}return p})();c.WithStatement=q;var Z=(function(){function p(d,y){this.type=h.Syntax.YieldExpression,this.argument=d,this.delegate=y}return p})();c.YieldExpression=Z},function(w,c,A){Object.defineProperty(c,"__esModule",{value:!0});var h=A(9),v=A(10),f=A(11),o=A(7),k=A(12),x=A(2),m=A(13),n="ArrowParameterPlaceHolder",u=(function(){function s(e,t,i){t===void 0&&(t={}),this.config={range:typeof t.range=="boolean"&&t.range,loc:typeof t.loc=="boolean"&&t.loc,source:null,tokens:typeof t.tokens=="boolean"&&t.tokens,comment:typeof t.comment=="boolean"&&t.comment,tolerant:typeof t.tolerant=="boolean"&&t.tolerant},this.config.loc&&t.source&&t.source!==null&&(this.config.source=String(t.source)),this.delegate=i,this.errorHandler=new v.ErrorHandler,this.errorHandler.tolerant=this.config.tolerant,this.scanner=new k.Scanner(e,this.errorHandler),this.scanner.trackComment=this.config.comment,this.operatorPrecedence={")":0,";":0,",":0,"=":0,"]":0,"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":11,"/":11,"%":11},this.lookahead={type:2,value:"",lineNumber:this.scanner.lineNumber,lineStart:0,start:0,end:0},this.hasLineTerminator=!1,this.context={isModule:!1,await:!1,allowIn:!0,allowStrictDirective:!0,allowYield:!0,firstCoverInitializedNameError:null,isAssignmentTarget:!1,isBindingElement:!1,inFunctionBody:!1,inIteration:!1,inSwitch:!1,labelSet:{},strict:!1},this.tokens=[],this.startMarker={index:0,line:this.scanner.lineNumber,column:0},this.lastMarker={index:0,line:this.scanner.lineNumber,column:0},this.nextToken(),this.lastMarker={index:this.scanner.index,line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}return s.prototype.throwError=function(e){var t=Array.prototype.slice.call(arguments,1),i=e.replace(/%(\d)/g,function(D,E){return h.assert(E<t.length,"Message reference must be in range"),t[E]}),r=this.lastMarker.index,a=this.lastMarker.line,l=this.lastMarker.column+1;throw this.errorHandler.createError(r,a,l,i)},s.prototype.tolerateError=function(e){var t=Array.prototype.slice.call(arguments,1),i=e.replace(/%(\d)/g,function(D,E){return h.assert(E<t.length,"Message reference must be in range"),t[E]}),r=this.lastMarker.index,a=this.scanner.lineNumber,l=this.lastMarker.column+1;this.errorHandler.tolerateError(r,a,l,i)},s.prototype.unexpectedTokenError=function(e,t){var i=t||f.Messages.UnexpectedToken,r;if(e?(t||(i=e.type===2?f.Messages.UnexpectedEOS:e.type===3?f.Messages.UnexpectedIdentifier:e.type===6?f.Messages.UnexpectedNumber:e.type===8?f.Messages.UnexpectedString:e.type===10?f.Messages.UnexpectedTemplate:f.Messages.UnexpectedToken,e.type===4&&(this.scanner.isFutureReservedWord(e.value)?i=f.Messages.UnexpectedReserved:this.context.strict&&this.scanner.isStrictModeReservedWord(e.value)&&(i=f.Messages.StrictReservedWord))),r=e.value):r="ILLEGAL",i=i.replace("%0",r),e&&typeof e.lineNumber=="number"){var a=e.start,l=e.lineNumber,D=this.lastMarker.index-this.lastMarker.column,E=e.start-D+1;return this.errorHandler.createError(a,l,E,i)}else{var a=this.lastMarker.index,l=this.lastMarker.line,E=this.lastMarker.column+1;return this.errorHandler.createError(a,l,E,i)}},s.prototype.throwUnexpectedToken=function(e,t){throw this.unexpectedTokenError(e,t)},s.prototype.tolerateUnexpectedToken=function(e,t){this.errorHandler.tolerate(this.unexpectedTokenError(e,t))},s.prototype.collectComments=function(){if(!this.config.comment)this.scanner.scanComments();else{var e=this.scanner.scanComments();if(e.length>0&&this.delegate)for(var t=0;t<e.length;++t){var i=e[t],r=void 0;r={type:i.multiLine?"BlockComment":"LineComment",value:this.scanner.source.slice(i.slice[0],i.slice[1])},this.config.range&&(r.range=i.range),this.config.loc&&(r.loc=i.loc);var a={start:{line:i.loc.start.line,column:i.loc.start.column,offset:i.range[0]},end:{line:i.loc.end.line,column:i.loc.end.column,offset:i.range[1]}};this.delegate(r,a)}}},s.prototype.getTokenRaw=function(e){return this.scanner.source.slice(e.start,e.end)},s.prototype.convertToken=function(e){var t={type:m.TokenName[e.type],value:this.getTokenRaw(e)};if(this.config.range&&(t.range=[e.start,e.end]),this.config.loc&&(t.loc={start:{line:this.startMarker.line,column:this.startMarker.column},end:{line:this.scanner.lineNumber,column:this.scanner.index-this.scanner.lineStart}}),e.type===9){var i=e.pattern,r=e.flags;t.regex={pattern:i,flags:r}}return t},s.prototype.nextToken=function(){var e=this.lookahead;this.lastMarker.index=this.scanner.index,this.lastMarker.line=this.scanner.lineNumber,this.lastMarker.column=this.scanner.index-this.scanner.lineStart,this.collectComments(),this.scanner.index!==this.startMarker.index&&(this.startMarker.index=this.scanner.index,this.startMarker.line=this.scanner.lineNumber,this.startMarker.column=this.scanner.index-this.scanner.lineStart);var t=this.scanner.lex();return this.hasLineTerminator=e.lineNumber!==t.lineNumber,t&&this.context.strict&&t.type===3&&this.scanner.isStrictModeReservedWord(t.value)&&(t.type=4),this.lookahead=t,this.config.tokens&&t.type!==2&&this.tokens.push(this.convertToken(t)),e},s.prototype.nextRegexToken=function(){this.collectComments();var e=this.scanner.scanRegExp();return this.config.tokens&&(this.tokens.pop(),this.tokens.push(this.convertToken(e))),this.lookahead=e,this.nextToken(),e},s.prototype.createNode=function(){return{index:this.startMarker.index,line:this.startMarker.line,column:this.startMarker.column}},s.prototype.startNode=function(e,t){t===void 0&&(t=0);var i=e.start-e.lineStart,r=e.lineNumber;return i<0&&(i+=t,r--),{index:e.start,line:r,column:i}},s.prototype.finalize=function(e,t){if(this.config.range&&(t.range=[e.index,this.lastMarker.index]),this.config.loc&&(t.loc={start:{line:e.line,column:e.column},end:{line:this.lastMarker.line,column:this.lastMarker.column}},this.config.source&&(t.loc.source=this.config.source)),this.delegate){var i={start:{line:e.line,column:e.column,offset:e.index},end:{line:this.lastMarker.line,column:this.lastMarker.column,offset:this.lastMarker.index}};this.delegate(t,i)}return t},s.prototype.expect=function(e){var t=this.nextToken();(t.type!==7||t.value!==e)&&this.throwUnexpectedToken(t)},s.prototype.expectCommaSeparator=function(){if(this.config.tolerant){var e=this.lookahead;e.type===7&&e.value===","?this.nextToken():e.type===7&&e.value===";"?(this.nextToken(),this.tolerateUnexpectedToken(e)):this.tolerateUnexpectedToken(e,f.Messages.UnexpectedToken)}else this.expect(",")},s.prototype.expectKeyword=function(e){var t=this.nextToken();(t.type!==4||t.value!==e)&&this.throwUnexpectedToken(t)},s.prototype.match=function(e){return this.lookahead.type===7&&this.lookahead.value===e},s.prototype.matchKeyword=function(e){return this.lookahead.type===4&&this.lookahead.value===e},s.prototype.matchContextualKeyword=function(e){return this.lookahead.type===3&&this.lookahead.value===e},s.prototype.matchAssign=function(){if(this.lookahead.type!==7)return!1;var e=this.lookahead.value;return e==="="||e==="*="||e==="**="||e==="/="||e==="%="||e==="+="||e==="-="||e==="<<="||e===">>="||e===">>>="||e==="&="||e==="^="||e==="|="},s.prototype.isolateCoverGrammar=function(e){var t=this.context.isBindingElement,i=this.context.isAssignmentTarget,r=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var a=e.call(this);return this.context.firstCoverInitializedNameError!==null&&this.throwUnexpectedToken(this.context.firstCoverInitializedNameError),this.context.isBindingElement=t,this.context.isAssignmentTarget=i,this.context.firstCoverInitializedNameError=r,a},s.prototype.inheritCoverGrammar=function(e){var t=this.context.isBindingElement,i=this.context.isAssignmentTarget,r=this.context.firstCoverInitializedNameError;this.context.isBindingElement=!0,this.context.isAssignmentTarget=!0,this.context.firstCoverInitializedNameError=null;var a=e.call(this);return this.context.isBindingElement=this.context.isBindingElement&&t,this.context.isAssignmentTarget=this.context.isAssignmentTarget&&i,this.context.firstCoverInitializedNameError=r||this.context.firstCoverInitializedNameError,a},s.prototype.consumeSemicolon=function(){this.match(";")?this.nextToken():this.hasLineTerminator||(this.lookahead.type!==2&&!this.match("}")&&this.throwUnexpectedToken(this.lookahead),this.lastMarker.index=this.startMarker.index,this.lastMarker.line=this.startMarker.line,this.lastMarker.column=this.startMarker.column)},s.prototype.parsePrimaryExpression=function(){var e=this.createNode(),t,i,r;switch(this.lookahead.type){case 3:(this.context.isModule||this.context.await)&&this.lookahead.value==="await"&&this.tolerateUnexpectedToken(this.lookahead),t=this.matchAsyncFunction()?this.parseFunctionExpression():this.finalize(e,new o.Identifier(this.nextToken().value));break;case 6:case 8:this.context.strict&&this.lookahead.octal&&this.tolerateUnexpectedToken(this.lookahead,f.Messages.StrictOctalLiteral),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,i=this.nextToken(),r=this.getTokenRaw(i),t=this.finalize(e,new o.Literal(i.value,r));break;case 1:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,i=this.nextToken(),r=this.getTokenRaw(i),t=this.finalize(e,new o.Literal(i.value==="true",r));break;case 5:this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,i=this.nextToken(),r=this.getTokenRaw(i),t=this.finalize(e,new o.Literal(null,r));break;case 10:t=this.parseTemplateLiteral();break;case 7:switch(this.lookahead.value){case"(":this.context.isBindingElement=!1,t=this.inheritCoverGrammar(this.parseGroupExpression);break;case"[":t=this.inheritCoverGrammar(this.parseArrayInitializer);break;case"{":t=this.inheritCoverGrammar(this.parseObjectInitializer);break;case"/":case"/=":this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.scanner.index=this.startMarker.index,i=this.nextRegexToken(),r=this.getTokenRaw(i),t=this.finalize(e,new o.RegexLiteral(i.regex,r,i.pattern,i.flags));break;default:t=this.throwUnexpectedToken(this.nextToken())}break;case 4:!this.context.strict&&this.context.allowYield&&this.matchKeyword("yield")?t=this.parseIdentifierName():!this.context.strict&&this.matchKeyword("let")?t=this.finalize(e,new o.Identifier(this.nextToken().value)):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.matchKeyword("function")?t=this.parseFunctionExpression():this.matchKeyword("this")?(this.nextToken(),t=this.finalize(e,new o.ThisExpression)):this.matchKeyword("class")?t=this.parseClassExpression():t=this.throwUnexpectedToken(this.nextToken()));break;default:t=this.throwUnexpectedToken(this.nextToken())}return t},s.prototype.parseSpreadElement=function(){var e=this.createNode();this.expect("...");var t=this.inheritCoverGrammar(this.parseAssignmentExpression);return this.finalize(e,new o.SpreadElement(t))},s.prototype.parseArrayInitializer=function(){var e=this.createNode(),t=[];for(this.expect("[");!this.match("]");)if(this.match(","))this.nextToken(),t.push(null);else if(this.match("...")){var i=this.parseSpreadElement();this.match("]")||(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1,this.expect(",")),t.push(i)}else t.push(this.inheritCoverGrammar(this.parseAssignmentExpression)),this.match("]")||this.expect(",");return this.expect("]"),this.finalize(e,new o.ArrayExpression(t))},s.prototype.parsePropertyMethod=function(e){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var t=this.context.strict,i=this.context.allowStrictDirective;this.context.allowStrictDirective=e.simple;var r=this.isolateCoverGrammar(this.parseFunctionSourceElements);return this.context.strict&&e.firstRestricted&&this.tolerateUnexpectedToken(e.firstRestricted,e.message),this.context.strict&&e.stricted&&this.tolerateUnexpectedToken(e.stricted,e.message),this.context.strict=t,this.context.allowStrictDirective=i,r},s.prototype.parsePropertyMethodFunction=function(){var e=!1,t=this.createNode(),i=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters(),a=this.parsePropertyMethod(r);return this.context.allowYield=i,this.finalize(t,new o.FunctionExpression(null,r.params,a,e))},s.prototype.parsePropertyMethodAsyncFunction=function(){var e=this.createNode(),t=this.context.allowYield,i=this.context.await;this.context.allowYield=!1,this.context.await=!0;var r=this.parseFormalParameters(),a=this.parsePropertyMethod(r);return this.context.allowYield=t,this.context.await=i,this.finalize(e,new o.AsyncFunctionExpression(null,r.params,a))},s.prototype.parseObjectPropertyKey=function(){var e=this.createNode(),t=this.nextToken(),i;switch(t.type){case 8:case 6:this.context.strict&&t.octal&&this.tolerateUnexpectedToken(t,f.Messages.StrictOctalLiteral);var r=this.getTokenRaw(t);i=this.finalize(e,new o.Literal(t.value,r));break;case 3:case 1:case 5:case 4:i=this.finalize(e,new o.Identifier(t.value));break;case 7:t.value==="["?(i=this.isolateCoverGrammar(this.parseAssignmentExpression),this.expect("]")):i=this.throwUnexpectedToken(t);break;default:i=this.throwUnexpectedToken(t)}return i},s.prototype.isPropertyKey=function(e,t){return e.type===x.Syntax.Identifier&&e.name===t||e.type===x.Syntax.Literal&&e.value===t},s.prototype.parseObjectProperty=function(e){var t=this.createNode(),i=this.lookahead,r,a=null,l=null,D=!1,E=!1,C=!1,g=!1;if(i.type===3){var b=i.value;this.nextToken(),D=this.match("["),g=!this.hasLineTerminator&&b==="async"&&!this.match(":")&&!this.match("(")&&!this.match("*")&&!this.match(","),a=g?this.parseObjectPropertyKey():this.finalize(t,new o.Identifier(b))}else this.match("*")?this.nextToken():(D=this.match("["),a=this.parseObjectPropertyKey());var B=this.qualifiedPropertyName(this.lookahead);if(i.type===3&&!g&&i.value==="get"&&B)r="get",D=this.match("["),a=this.parseObjectPropertyKey(),this.context.allowYield=!1,l=this.parseGetterMethod();else if(i.type===3&&!g&&i.value==="set"&&B)r="set",D=this.match("["),a=this.parseObjectPropertyKey(),l=this.parseSetterMethod();else if(i.type===7&&i.value==="*"&&B)r="init",D=this.match("["),a=this.parseObjectPropertyKey(),l=this.parseGeneratorMethod(),E=!0;else if(a||this.throwUnexpectedToken(this.lookahead),r="init",this.match(":")&&!g)!D&&this.isPropertyKey(a,"__proto__")&&(e.value&&this.tolerateError(f.Messages.DuplicateProtoProperty),e.value=!0),this.nextToken(),l=this.inheritCoverGrammar(this.parseAssignmentExpression);else if(this.match("("))l=g?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),E=!0;else if(i.type===3){var b=this.finalize(t,new o.Identifier(i.value));if(this.match("=")){this.context.firstCoverInitializedNameError=this.lookahead,this.nextToken(),C=!0;var N=this.isolateCoverGrammar(this.parseAssignmentExpression);l=this.finalize(t,new o.AssignmentPattern(b,N))}else C=!0,l=b}else this.throwUnexpectedToken(this.nextToken());return this.finalize(t,new o.Property(r,a,D,l,E,C))},s.prototype.parseObjectInitializer=function(){var e=this.createNode();this.expect("{");for(var t=[],i={value:!1};!this.match("}");)t.push(this.parseObjectProperty(i)),this.match("}")||this.expectCommaSeparator();return this.expect("}"),this.finalize(e,new o.ObjectExpression(t))},s.prototype.parseTemplateHead=function(){h.assert(this.lookahead.head,"Template literal must start with a template head");var e=this.createNode(),t=this.nextToken(),i=t.value,r=t.cooked;return this.finalize(e,new o.TemplateElement({raw:i,cooked:r},t.tail))},s.prototype.parseTemplateElement=function(){this.lookahead.type!==10&&this.throwUnexpectedToken();var e=this.createNode(),t=this.nextToken(),i=t.value,r=t.cooked;return this.finalize(e,new o.TemplateElement({raw:i,cooked:r},t.tail))},s.prototype.parseTemplateLiteral=function(){var e=this.createNode(),t=[],i=[],r=this.parseTemplateHead();for(i.push(r);!r.tail;)t.push(this.parseExpression()),r=this.parseTemplateElement(),i.push(r);return this.finalize(e,new o.TemplateLiteral(i,t))},s.prototype.reinterpretExpressionAsPattern=function(e){switch(e.type){case x.Syntax.Identifier:case x.Syntax.MemberExpression:case x.Syntax.RestElement:case x.Syntax.AssignmentPattern:break;case x.Syntax.SpreadElement:e.type=x.Syntax.RestElement,this.reinterpretExpressionAsPattern(e.argument);break;case x.Syntax.ArrayExpression:e.type=x.Syntax.ArrayPattern;for(var t=0;t<e.elements.length;t++)e.elements[t]!==null&&this.reinterpretExpressionAsPattern(e.elements[t]);break;case x.Syntax.ObjectExpression:e.type=x.Syntax.ObjectPattern;for(var t=0;t<e.properties.length;t++)this.reinterpretExpressionAsPattern(e.properties[t].value);break;case x.Syntax.AssignmentExpression:e.type=x.Syntax.AssignmentPattern,delete e.operator,this.reinterpretExpressionAsPattern(e.left);break}},s.prototype.parseGroupExpression=function(){var e;if(this.expect("("),this.match(")"))this.nextToken(),this.match("=>")||this.expect("=>"),e={type:n,params:[],async:!1};else{var t=this.lookahead,i=[];if(this.match("..."))e=this.parseRestElement(i),this.expect(")"),this.match("=>")||this.expect("=>"),e={type:n,params:[e],async:!1};else{var r=!1;if(this.context.isBindingElement=!0,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.match(",")){var a=[];for(this.context.isAssignmentTarget=!1,a.push(e);this.lookahead.type!==2&&this.match(",");){if(this.nextToken(),this.match(")")){this.nextToken();for(var l=0;l<a.length;l++)this.reinterpretExpressionAsPattern(a[l]);r=!0,e={type:n,params:a,async:!1}}else if(this.match("...")){this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),a.push(this.parseRestElement(i)),this.expect(")"),this.match("=>")||this.expect("=>"),this.context.isBindingElement=!1;for(var l=0;l<a.length;l++)this.reinterpretExpressionAsPattern(a[l]);r=!0,e={type:n,params:a,async:!1}}else a.push(this.inheritCoverGrammar(this.parseAssignmentExpression));if(r)break}r||(e=this.finalize(this.startNode(t),new o.SequenceExpression(a)))}if(!r){if(this.expect(")"),this.match("=>")&&(e.type===x.Syntax.Identifier&&e.name==="yield"&&(r=!0,e={type:n,params:[e],async:!1}),!r)){if(this.context.isBindingElement||this.throwUnexpectedToken(this.lookahead),e.type===x.Syntax.SequenceExpression)for(var l=0;l<e.expressions.length;l++)this.reinterpretExpressionAsPattern(e.expressions[l]);else this.reinterpretExpressionAsPattern(e);var D=e.type===x.Syntax.SequenceExpression?e.expressions:[e];e={type:n,params:D,async:!1}}this.context.isBindingElement=!1}}}return e},s.prototype.parseArguments=function(){this.expect("(");var e=[];if(!this.match(")"))for(;;){var t=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAssignmentExpression);if(e.push(t),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),e},s.prototype.isIdentifierName=function(e){return e.type===3||e.type===4||e.type===1||e.type===5},s.prototype.parseIdentifierName=function(){var e=this.createNode(),t=this.nextToken();return this.isIdentifierName(t)||this.throwUnexpectedToken(t),this.finalize(e,new o.Identifier(t.value))},s.prototype.parseNewExpression=function(){var e=this.createNode(),t=this.parseIdentifierName();h.assert(t.name==="new","New expression must start with `new`");var i;if(this.match("."))if(this.nextToken(),this.lookahead.type===3&&this.context.inFunctionBody&&this.lookahead.value==="target"){var r=this.parseIdentifierName();i=new o.MetaProperty(t,r)}else this.throwUnexpectedToken(this.lookahead);else{var a=this.isolateCoverGrammar(this.parseLeftHandSideExpression),l=this.match("(")?this.parseArguments():[];i=new o.NewExpression(a,l),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return this.finalize(e,i)},s.prototype.parseAsyncArgument=function(){var e=this.parseAssignmentExpression();return this.context.firstCoverInitializedNameError=null,e},s.prototype.parseAsyncArguments=function(){this.expect("(");var e=[];if(!this.match(")"))for(;;){var t=this.match("...")?this.parseSpreadElement():this.isolateCoverGrammar(this.parseAsyncArgument);if(e.push(t),this.match(")")||(this.expectCommaSeparator(),this.match(")")))break}return this.expect(")"),e},s.prototype.parseLeftHandSideExpressionAllowCall=function(){var e=this.lookahead,t=this.matchContextualKeyword("async"),i=this.context.allowIn;this.context.allowIn=!0;var r;for(this.matchKeyword("super")&&this.context.inFunctionBody?(r=this.createNode(),this.nextToken(),r=this.finalize(r,new o.Super),!this.match("(")&&!this.match(".")&&!this.match("[")&&this.throwUnexpectedToken(this.lookahead)):r=this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var a=this.parseIdentifierName();r=this.finalize(this.startNode(e),new o.StaticMemberExpression(r,a))}else if(this.match("(")){var l=t&&e.lineNumber===this.lookahead.lineNumber;this.context.isBindingElement=!1,this.context.isAssignmentTarget=!1;var D=l?this.parseAsyncArguments():this.parseArguments();if(r=this.finalize(this.startNode(e),new o.CallExpression(r,D)),l&&this.match("=>")){for(var E=0;E<D.length;++E)this.reinterpretExpressionAsPattern(D[E]);r={type:n,params:D,async:!0}}}else if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var a=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),r=this.finalize(this.startNode(e),new o.ComputedMemberExpression(r,a))}else if(this.lookahead.type===10&&this.lookahead.head){var C=this.parseTemplateLiteral();r=this.finalize(this.startNode(e),new o.TaggedTemplateExpression(r,C))}else break;return this.context.allowIn=i,r},s.prototype.parseSuper=function(){var e=this.createNode();return this.expectKeyword("super"),!this.match("[")&&!this.match(".")&&this.throwUnexpectedToken(this.lookahead),this.finalize(e,new o.Super)},s.prototype.parseLeftHandSideExpression=function(){h.assert(this.context.allowIn,"callee of new expression always allow in keyword.");for(var e=this.startNode(this.lookahead),t=this.matchKeyword("super")&&this.context.inFunctionBody?this.parseSuper():this.inheritCoverGrammar(this.matchKeyword("new")?this.parseNewExpression:this.parsePrimaryExpression);;)if(this.match("[")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect("[");var i=this.isolateCoverGrammar(this.parseExpression);this.expect("]"),t=this.finalize(e,new o.ComputedMemberExpression(t,i))}else if(this.match(".")){this.context.isBindingElement=!1,this.context.isAssignmentTarget=!0,this.expect(".");var i=this.parseIdentifierName();t=this.finalize(e,new o.StaticMemberExpression(t,i))}else if(this.lookahead.type===10&&this.lookahead.head){var r=this.parseTemplateLiteral();t=this.finalize(e,new o.TaggedTemplateExpression(t,r))}else break;return t},s.prototype.parseUpdateExpression=function(){var e,t=this.lookahead;if(this.match("++")||this.match("--")){var i=this.startNode(t),r=this.nextToken();e=this.inheritCoverGrammar(this.parseUnaryExpression),this.context.strict&&e.type===x.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(f.Messages.StrictLHSPrefix),this.context.isAssignmentTarget||this.tolerateError(f.Messages.InvalidLHSInAssignment);var a=!0;e=this.finalize(i,new o.UpdateExpression(r.value,e,a)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else if(e=this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall),!this.hasLineTerminator&&this.lookahead.type===7&&(this.match("++")||this.match("--"))){this.context.strict&&e.type===x.Syntax.Identifier&&this.scanner.isRestrictedWord(e.name)&&this.tolerateError(f.Messages.StrictLHSPostfix),this.context.isAssignmentTarget||this.tolerateError(f.Messages.InvalidLHSInAssignment),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var l=this.nextToken().value,a=!1;e=this.finalize(this.startNode(t),new o.UpdateExpression(l,e,a))}return e},s.prototype.parseAwaitExpression=function(){var e=this.createNode();this.nextToken();var t=this.parseUnaryExpression();return this.finalize(e,new o.AwaitExpression(t))},s.prototype.parseUnaryExpression=function(){var e;if(this.match("+")||this.match("-")||this.match("~")||this.match("!")||this.matchKeyword("delete")||this.matchKeyword("void")||this.matchKeyword("typeof")){var t=this.startNode(this.lookahead),i=this.nextToken();e=this.inheritCoverGrammar(this.parseUnaryExpression),e=this.finalize(t,new o.UnaryExpression(i.value,e)),this.context.strict&&e.operator==="delete"&&e.argument.type===x.Syntax.Identifier&&this.tolerateError(f.Messages.StrictDelete),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}else this.context.await&&this.matchContextualKeyword("await")?e=this.parseAwaitExpression():e=this.parseUpdateExpression();return e},s.prototype.parseExponentiationExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseUnaryExpression);if(t.type!==x.Syntax.UnaryExpression&&this.match("**")){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var i=t,r=this.isolateCoverGrammar(this.parseExponentiationExpression);t=this.finalize(this.startNode(e),new o.BinaryExpression("**",i,r))}return t},s.prototype.binaryPrecedence=function(e){var t=e.value,i;return e.type===7?i=this.operatorPrecedence[t]||0:e.type===4?i=t==="instanceof"||this.context.allowIn&&t==="in"?7:0:i=0,i},s.prototype.parseBinaryExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseExponentiationExpression),i=this.lookahead,r=this.binaryPrecedence(i);if(r>0){this.nextToken(),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;for(var a=[e,this.lookahead],l=t,D=this.isolateCoverGrammar(this.parseExponentiationExpression),E=[l,i.value,D],C=[r];r=this.binaryPrecedence(this.lookahead),!(r<=0);){for(;E.length>2&&r<=C[C.length-1];){D=E.pop();var g=E.pop();C.pop(),l=E.pop(),a.pop();var b=this.startNode(a[a.length-1]);E.push(this.finalize(b,new o.BinaryExpression(g,l,D)))}E.push(this.nextToken().value),C.push(r),a.push(this.lookahead),E.push(this.isolateCoverGrammar(this.parseExponentiationExpression))}var B=E.length-1;t=E[B];for(var N=a.pop();B>1;){var z=a.pop(),X=N&&N.lineStart,b=this.startNode(z,X),g=E[B-1];t=this.finalize(b,new o.BinaryExpression(g,E[B-2],t)),B-=2,N=z}}return t},s.prototype.parseConditionalExpression=function(){var e=this.lookahead,t=this.inheritCoverGrammar(this.parseBinaryExpression);if(this.match("?")){this.nextToken();var i=this.context.allowIn;this.context.allowIn=!0;var r=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowIn=i,this.expect(":");var a=this.isolateCoverGrammar(this.parseAssignmentExpression);t=this.finalize(this.startNode(e),new o.ConditionalExpression(t,r,a)),this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1}return t},s.prototype.checkPatternParam=function(e,t){switch(t.type){case x.Syntax.Identifier:this.validateParam(e,t,t.name);break;case x.Syntax.RestElement:this.checkPatternParam(e,t.argument);break;case x.Syntax.AssignmentPattern:this.checkPatternParam(e,t.left);break;case x.Syntax.ArrayPattern:for(var i=0;i<t.elements.length;i++)t.elements[i]!==null&&this.checkPatternParam(e,t.elements[i]);break;case x.Syntax.ObjectPattern:for(var i=0;i<t.properties.length;i++)this.checkPatternParam(e,t.properties[i].value);break}e.simple=e.simple&&t instanceof o.Identifier},s.prototype.reinterpretAsCoverFormalsList=function(e){var t=[e],i,r=!1;switch(e.type){case x.Syntax.Identifier:break;case n:t=e.params,r=e.async;break;default:return null}i={simple:!0,paramSet:{}};for(var a=0;a<t.length;++a){var l=t[a];l.type===x.Syntax.AssignmentPattern?l.right.type===x.Syntax.YieldExpression&&(l.right.argument&&this.throwUnexpectedToken(this.lookahead),l.right.type=x.Syntax.Identifier,l.right.name="yield",delete l.right.argument,delete l.right.delegate):r&&l.type===x.Syntax.Identifier&&l.name==="await"&&this.throwUnexpectedToken(this.lookahead),this.checkPatternParam(i,l),t[a]=l}if(this.context.strict||!this.context.allowYield)for(var a=0;a<t.length;++a){var l=t[a];l.type===x.Syntax.YieldExpression&&this.throwUnexpectedToken(this.lookahead)}if(i.message===f.Messages.StrictParamDupe){var D=this.context.strict?i.stricted:i.firstRestricted;this.throwUnexpectedToken(D,i.message)}return{simple:i.simple,params:t,stricted:i.stricted,firstRestricted:i.firstRestricted,message:i.message}},s.prototype.parseAssignmentExpression=function(){var e;if(!this.context.allowYield&&this.matchKeyword("yield"))e=this.parseYieldExpression();else{var t=this.lookahead,i=t;if(e=this.parseConditionalExpression(),i.type===3&&i.lineNumber===this.lookahead.lineNumber&&i.value==="async"&&(this.lookahead.type===3||this.matchKeyword("yield"))){var r=this.parsePrimaryExpression();this.reinterpretExpressionAsPattern(r),e={type:n,params:[r],async:!0}}if(e.type===n||this.match("=>")){this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1;var a=e.async,l=this.reinterpretAsCoverFormalsList(e);if(l){this.hasLineTerminator&&this.tolerateUnexpectedToken(this.lookahead),this.context.firstCoverInitializedNameError=null;var D=this.context.strict,E=this.context.allowStrictDirective;this.context.allowStrictDirective=l.simple;var C=this.context.allowYield,g=this.context.await;this.context.allowYield=!0,this.context.await=a;var b=this.startNode(t);this.expect("=>");var B=void 0;if(this.match("{")){var N=this.context.allowIn;this.context.allowIn=!0,B=this.parseFunctionSourceElements(),this.context.allowIn=N}else B=this.isolateCoverGrammar(this.parseAssignmentExpression);var z=B.type!==x.Syntax.BlockStatement;this.context.strict&&l.firstRestricted&&this.throwUnexpectedToken(l.firstRestricted,l.message),this.context.strict&&l.stricted&&this.tolerateUnexpectedToken(l.stricted,l.message),e=a?this.finalize(b,new o.AsyncArrowFunctionExpression(l.params,B,z)):this.finalize(b,new o.ArrowFunctionExpression(l.params,B,z)),this.context.strict=D,this.context.allowStrictDirective=E,this.context.allowYield=C,this.context.await=g}}else if(this.matchAssign()){if(this.context.isAssignmentTarget||this.tolerateError(f.Messages.InvalidLHSInAssignment),this.context.strict&&e.type===x.Syntax.Identifier){var X=e;this.scanner.isRestrictedWord(X.name)&&this.tolerateUnexpectedToken(i,f.Messages.StrictLHSAssignment),this.scanner.isStrictModeReservedWord(X.name)&&this.tolerateUnexpectedToken(i,f.Messages.StrictReservedWord)}this.match("=")?this.reinterpretExpressionAsPattern(e):(this.context.isAssignmentTarget=!1,this.context.isBindingElement=!1),i=this.nextToken();var K=i.value,H=this.isolateCoverGrammar(this.parseAssignmentExpression);e=this.finalize(this.startNode(t),new o.AssignmentExpression(K,e,H)),this.context.firstCoverInitializedNameError=null}}return e},s.prototype.parseExpression=function(){var e=this.lookahead,t=this.isolateCoverGrammar(this.parseAssignmentExpression);if(this.match(",")){var i=[];for(i.push(t);this.lookahead.type!==2&&this.match(",");)this.nextToken(),i.push(this.isolateCoverGrammar(this.parseAssignmentExpression));t=this.finalize(this.startNode(e),new o.SequenceExpression(i))}return t},s.prototype.parseStatementListItem=function(){var e;if(this.context.isAssignmentTarget=!0,this.context.isBindingElement=!0,this.lookahead.type===4)switch(this.lookahead.value){case"export":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,f.Messages.IllegalExportDeclaration),e=this.parseExportDeclaration();break;case"import":this.context.isModule||this.tolerateUnexpectedToken(this.lookahead,f.Messages.IllegalImportDeclaration),e=this.parseImportDeclaration();break;case"const":e=this.parseLexicalDeclaration({inFor:!1});break;case"function":e=this.parseFunctionDeclaration();break;case"class":e=this.parseClassDeclaration();break;case"let":e=this.isLexicalDeclaration()?this.parseLexicalDeclaration({inFor:!1}):this.parseStatement();break;default:e=this.parseStatement();break}else e=this.parseStatement();return e},s.prototype.parseBlock=function(){var e=this.createNode();this.expect("{");for(var t=[];!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.finalize(e,new o.BlockStatement(t))},s.prototype.parseLexicalBinding=function(e,t){var i=this.createNode(),r=[],a=this.parsePattern(r,e);this.context.strict&&a.type===x.Syntax.Identifier&&this.scanner.isRestrictedWord(a.name)&&this.tolerateError(f.Messages.StrictVarName);var l=null;return e==="const"?!this.matchKeyword("in")&&!this.matchContextualKeyword("of")&&(this.match("=")?(this.nextToken(),l=this.isolateCoverGrammar(this.parseAssignmentExpression)):this.throwError(f.Messages.DeclarationMissingInitializer,"const")):(!t.inFor&&a.type!==x.Syntax.Identifier||this.match("="))&&(this.expect("="),l=this.isolateCoverGrammar(this.parseAssignmentExpression)),this.finalize(i,new o.VariableDeclarator(a,l))},s.prototype.parseBindingList=function(e,t){for(var i=[this.parseLexicalBinding(e,t)];this.match(",");)this.nextToken(),i.push(this.parseLexicalBinding(e,t));return i},s.prototype.isLexicalDeclaration=function(){var e=this.scanner.saveState();this.scanner.scanComments();var t=this.scanner.lex();return this.scanner.restoreState(e),t.type===3||t.type===7&&t.value==="["||t.type===7&&t.value==="{"||t.type===4&&t.value==="let"||t.type===4&&t.value==="yield"},s.prototype.parseLexicalDeclaration=function(e){var t=this.createNode(),i=this.nextToken().value;h.assert(i==="let"||i==="const","Lexical declaration must be either let or const");var r=this.parseBindingList(i,e);return this.consumeSemicolon(),this.finalize(t,new o.VariableDeclaration(r,i))},s.prototype.parseBindingRestElement=function(e,t){var i=this.createNode();this.expect("...");var r=this.parsePattern(e,t);return this.finalize(i,new o.RestElement(r))},s.prototype.parseArrayPattern=function(e,t){var i=this.createNode();this.expect("[");for(var r=[];!this.match("]");)if(this.match(","))this.nextToken(),r.push(null);else{if(this.match("...")){r.push(this.parseBindingRestElement(e,t));break}else r.push(this.parsePatternWithDefault(e,t));this.match("]")||this.expect(",")}return this.expect("]"),this.finalize(i,new o.ArrayPattern(r))},s.prototype.parsePropertyPattern=function(e,t){var i=this.createNode(),r=!1,a=!1,l=!1,D,E;if(this.lookahead.type===3){var C=this.lookahead;D=this.parseVariableIdentifier();var g=this.finalize(i,new o.Identifier(C.value));if(this.match("=")){e.push(C),a=!0,this.nextToken();var b=this.parseAssignmentExpression();E=this.finalize(this.startNode(C),new o.AssignmentPattern(g,b))}else this.match(":")?(this.expect(":"),E=this.parsePatternWithDefault(e,t)):(e.push(C),a=!0,E=g)}else r=this.match("["),D=this.parseObjectPropertyKey(),this.expect(":"),E=this.parsePatternWithDefault(e,t);return this.finalize(i,new o.Property("init",D,r,E,l,a))},s.prototype.parseObjectPattern=function(e,t){var i=this.createNode(),r=[];for(this.expect("{");!this.match("}");)r.push(this.parsePropertyPattern(e,t)),this.match("}")||this.expect(",");return this.expect("}"),this.finalize(i,new o.ObjectPattern(r))},s.prototype.parsePattern=function(e,t){var i;return this.match("[")?i=this.parseArrayPattern(e,t):this.match("{")?i=this.parseObjectPattern(e,t):(this.matchKeyword("let")&&(t==="const"||t==="let")&&this.tolerateUnexpectedToken(this.lookahead,f.Messages.LetInLexicalBinding),e.push(this.lookahead),i=this.parseVariableIdentifier(t)),i},s.prototype.parsePatternWithDefault=function(e,t){var i=this.lookahead,r=this.parsePattern(e,t);if(this.match("=")){this.nextToken();var a=this.context.allowYield;this.context.allowYield=!0;var l=this.isolateCoverGrammar(this.parseAssignmentExpression);this.context.allowYield=a,r=this.finalize(this.startNode(i),new o.AssignmentPattern(r,l))}return r},s.prototype.parseVariableIdentifier=function(e){var t=this.createNode(),i=this.nextToken();return i.type===4&&i.value==="yield"?this.context.strict?this.tolerateUnexpectedToken(i,f.Messages.StrictReservedWord):this.context.allowYield||this.throwUnexpectedToken(i):i.type!==3?this.context.strict&&i.type===4&&this.scanner.isStrictModeReservedWord(i.value)?this.tolerateUnexpectedToken(i,f.Messages.StrictReservedWord):(this.context.strict||i.value!=="let"||e!=="var")&&this.throwUnexpectedToken(i):(this.context.isModule||this.context.await)&&i.type===3&&i.value==="await"&&this.tolerateUnexpectedToken(i),this.finalize(t,new o.Identifier(i.value))},s.prototype.parseVariableDeclaration=function(e){var t=this.createNode(),i=[],r=this.parsePattern(i,"var");this.context.strict&&r.type===x.Syntax.Identifier&&this.scanner.isRestrictedWord(r.name)&&this.tolerateError(f.Messages.StrictVarName);var a=null;return this.match("=")?(this.nextToken(),a=this.isolateCoverGrammar(this.parseAssignmentExpression)):r.type!==x.Syntax.Identifier&&!e.inFor&&this.expect("="),this.finalize(t,new o.VariableDeclarator(r,a))},s.prototype.parseVariableDeclarationList=function(e){var t={inFor:e.inFor},i=[];for(i.push(this.parseVariableDeclaration(t));this.match(",");)this.nextToken(),i.push(this.parseVariableDeclaration(t));return i},s.prototype.parseVariableStatement=function(){var e=this.createNode();this.expectKeyword("var");var t=this.parseVariableDeclarationList({inFor:!1});return this.consumeSemicolon(),this.finalize(e,new o.VariableDeclaration(t,"var"))},s.prototype.parseEmptyStatement=function(){var e=this.createNode();return this.expect(";"),this.finalize(e,new o.EmptyStatement)},s.prototype.parseExpressionStatement=function(){var e=this.createNode(),t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new o.ExpressionStatement(t))},s.prototype.parseIfClause=function(){return this.context.strict&&this.matchKeyword("function")&&this.tolerateError(f.Messages.StrictFunction),this.parseStatement()},s.prototype.parseIfStatement=function(){var e=this.createNode(),t,i=null;this.expectKeyword("if"),this.expect("(");var r=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(")"),t=this.parseIfClause(),this.matchKeyword("else")&&(this.nextToken(),i=this.parseIfClause())),this.finalize(e,new o.IfStatement(r,t,i))},s.prototype.parseDoWhileStatement=function(){var e=this.createNode();this.expectKeyword("do");var t=this.context.inIteration;this.context.inIteration=!0;var i=this.parseStatement();this.context.inIteration=t,this.expectKeyword("while"),this.expect("(");var r=this.parseExpression();return!this.match(")")&&this.config.tolerant?this.tolerateUnexpectedToken(this.nextToken()):(this.expect(")"),this.match(";")&&this.nextToken()),this.finalize(e,new o.DoWhileStatement(i,r))},s.prototype.parseWhileStatement=function(){var e=this.createNode(),t;this.expectKeyword("while"),this.expect("(");var i=this.parseExpression();if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(")");var r=this.context.inIteration;this.context.inIteration=!0,t=this.parseStatement(),this.context.inIteration=r}return this.finalize(e,new o.WhileStatement(i,t))},s.prototype.parseForStatement=function(){var e=null,t=null,i=null,r=!0,a,l,D=this.createNode();if(this.expectKeyword("for"),this.expect("("),this.match(";"))this.nextToken();else if(this.matchKeyword("var")){e=this.createNode(),this.nextToken();var E=this.context.allowIn;this.context.allowIn=!1;var C=this.parseVariableDeclarationList({inFor:!0});if(this.context.allowIn=E,C.length===1&&this.matchKeyword("in")){var g=C[0];g.init&&(g.id.type===x.Syntax.ArrayPattern||g.id.type===x.Syntax.ObjectPattern||this.context.strict)&&this.tolerateError(f.Messages.ForInOfLoopInitializer,"for-in"),e=this.finalize(e,new o.VariableDeclaration(C,"var")),this.nextToken(),a=e,l=this.parseExpression(),e=null}else C.length===1&&C[0].init===null&&this.matchContextualKeyword("of")?(e=this.finalize(e,new o.VariableDeclaration(C,"var")),this.nextToken(),a=e,l=this.parseAssignmentExpression(),e=null,r=!1):(e=this.finalize(e,new o.VariableDeclaration(C,"var")),this.expect(";"))}else if(this.matchKeyword("const")||this.matchKeyword("let")){e=this.createNode();var b=this.nextToken().value;if(!this.context.strict&&this.lookahead.value==="in")e=this.finalize(e,new o.Identifier(b)),this.nextToken(),a=e,l=this.parseExpression(),e=null;else{var E=this.context.allowIn;this.context.allowIn=!1;var C=this.parseBindingList(b,{inFor:!0});this.context.allowIn=E,C.length===1&&C[0].init===null&&this.matchKeyword("in")?(e=this.finalize(e,new o.VariableDeclaration(C,b)),this.nextToken(),a=e,l=this.parseExpression(),e=null):C.length===1&&C[0].init===null&&this.matchContextualKeyword("of")?(e=this.finalize(e,new o.VariableDeclaration(C,b)),this.nextToken(),a=e,l=this.parseAssignmentExpression(),e=null,r=!1):(this.consumeSemicolon(),e=this.finalize(e,new o.VariableDeclaration(C,b)))}}else{var B=this.lookahead,E=this.context.allowIn;if(this.context.allowIn=!1,e=this.inheritCoverGrammar(this.parseAssignmentExpression),this.context.allowIn=E,this.matchKeyword("in"))(!this.context.isAssignmentTarget||e.type===x.Syntax.AssignmentExpression)&&this.tolerateError(f.Messages.InvalidLHSInForIn),this.nextToken(),this.reinterpretExpressionAsPattern(e),a=e,l=this.parseExpression(),e=null;else if(this.matchContextualKeyword("of"))(!this.context.isAssignmentTarget||e.type===x.Syntax.AssignmentExpression)&&this.tolerateError(f.Messages.InvalidLHSInForLoop),this.nextToken(),this.reinterpretExpressionAsPattern(e),a=e,l=this.parseAssignmentExpression(),e=null,r=!1;else{if(this.match(",")){for(var N=[e];this.match(",");)this.nextToken(),N.push(this.isolateCoverGrammar(this.parseAssignmentExpression));e=this.finalize(this.startNode(B),new o.SequenceExpression(N))}this.expect(";")}}typeof a>"u"&&(this.match(";")||(t=this.parseExpression()),this.expect(";"),this.match(")")||(i=this.parseExpression()));var z;if(!this.match(")")&&this.config.tolerant)this.tolerateUnexpectedToken(this.nextToken()),z=this.finalize(this.createNode(),new o.EmptyStatement);else{this.expect(")");var X=this.context.inIteration;this.context.inIteration=!0,z=this.isolateCoverGrammar(this.parseStatement),this.context.inIteration=X}return typeof a>"u"?this.finalize(D,new o.ForStatement(e,t,i,z)):r?this.finalize(D,new o.ForInStatement(a,l,z)):this.finalize(D,new o.ForOfStatement(a,l,z))},s.prototype.parseContinueStatement=function(){var e=this.createNode();this.expectKeyword("continue");var t=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var i=this.parseVariableIdentifier();t=i;var r="$"+i.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)||this.throwError(f.Messages.UnknownLabel,i.name)}return this.consumeSemicolon(),t===null&&!this.context.inIteration&&this.throwError(f.Messages.IllegalContinue),this.finalize(e,new o.ContinueStatement(t))},s.prototype.parseBreakStatement=function(){var e=this.createNode();this.expectKeyword("break");var t=null;if(this.lookahead.type===3&&!this.hasLineTerminator){var i=this.parseVariableIdentifier(),r="$"+i.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,r)||this.throwError(f.Messages.UnknownLabel,i.name),t=i}return this.consumeSemicolon(),t===null&&!this.context.inIteration&&!this.context.inSwitch&&this.throwError(f.Messages.IllegalBreak),this.finalize(e,new o.BreakStatement(t))},s.prototype.parseReturnStatement=function(){this.context.inFunctionBody||this.tolerateError(f.Messages.IllegalReturn);var e=this.createNode();this.expectKeyword("return");var t=!this.match(";")&&!this.match("}")&&!this.hasLineTerminator&&this.lookahead.type!==2||this.lookahead.type===8||this.lookahead.type===10,i=t?this.parseExpression():null;return this.consumeSemicolon(),this.finalize(e,new o.ReturnStatement(i))},s.prototype.parseWithStatement=function(){this.context.strict&&this.tolerateError(f.Messages.StrictModeWith);var e=this.createNode(),t;this.expectKeyword("with"),this.expect("(");var i=this.parseExpression();return!this.match(")")&&this.config.tolerant?(this.tolerateUnexpectedToken(this.nextToken()),t=this.finalize(this.createNode(),new o.EmptyStatement)):(this.expect(")"),t=this.parseStatement()),this.finalize(e,new o.WithStatement(i,t))},s.prototype.parseSwitchCase=function(){var e=this.createNode(),t;this.matchKeyword("default")?(this.nextToken(),t=null):(this.expectKeyword("case"),t=this.parseExpression()),this.expect(":");for(var i=[];!(this.match("}")||this.matchKeyword("default")||this.matchKeyword("case"));)i.push(this.parseStatementListItem());return this.finalize(e,new o.SwitchCase(t,i))},s.prototype.parseSwitchStatement=function(){var e=this.createNode();this.expectKeyword("switch"),this.expect("(");var t=this.parseExpression();this.expect(")");var i=this.context.inSwitch;this.context.inSwitch=!0;var r=[],a=!1;for(this.expect("{");!this.match("}");){var l=this.parseSwitchCase();l.test===null&&(a&&this.throwError(f.Messages.MultipleDefaultsInSwitch),a=!0),r.push(l)}return this.expect("}"),this.context.inSwitch=i,this.finalize(e,new o.SwitchStatement(t,r))},s.prototype.parseLabelledStatement=function(){var e=this.createNode(),t=this.parseExpression(),i;if(t.type===x.Syntax.Identifier&&this.match(":")){this.nextToken();var r=t,a="$"+r.name;Object.prototype.hasOwnProperty.call(this.context.labelSet,a)&&this.throwError(f.Messages.Redeclaration,"Label",r.name),this.context.labelSet[a]=!0;var l=void 0;if(this.matchKeyword("class"))this.tolerateUnexpectedToken(this.lookahead),l=this.parseClassDeclaration();else if(this.matchKeyword("function")){var D=this.lookahead,E=this.parseFunctionDeclaration();this.context.strict?this.tolerateUnexpectedToken(D,f.Messages.StrictFunction):E.generator&&this.tolerateUnexpectedToken(D,f.Messages.GeneratorInLegacyContext),l=E}else l=this.parseStatement();delete this.context.labelSet[a],i=new o.LabeledStatement(r,l)}else this.consumeSemicolon(),i=new o.ExpressionStatement(t);return this.finalize(e,i)},s.prototype.parseThrowStatement=function(){var e=this.createNode();this.expectKeyword("throw"),this.hasLineTerminator&&this.throwError(f.Messages.NewlineAfterThrow);var t=this.parseExpression();return this.consumeSemicolon(),this.finalize(e,new o.ThrowStatement(t))},s.prototype.parseCatchClause=function(){var e=this.createNode();this.expectKeyword("catch"),this.expect("("),this.match(")")&&this.throwUnexpectedToken(this.lookahead);for(var t=[],i=this.parsePattern(t),r={},a=0;a<t.length;a++){var l="$"+t[a].value;Object.prototype.hasOwnProperty.call(r,l)&&this.tolerateError(f.Messages.DuplicateBinding,t[a].value),r[l]=!0}this.context.strict&&i.type===x.Syntax.Identifier&&this.scanner.isRestrictedWord(i.name)&&this.tolerateError(f.Messages.StrictCatchVariable),this.expect(")");var D=this.parseBlock();return this.finalize(e,new o.CatchClause(i,D))},s.prototype.parseFinallyClause=function(){return this.expectKeyword("finally"),this.parseBlock()},s.prototype.parseTryStatement=function(){var e=this.createNode();this.expectKeyword("try");var t=this.parseBlock(),i=this.matchKeyword("catch")?this.parseCatchClause():null,r=this.matchKeyword("finally")?this.parseFinallyClause():null;return!i&&!r&&this.throwError(f.Messages.NoCatchOrFinally),this.finalize(e,new o.TryStatement(t,i,r))},s.prototype.parseDebuggerStatement=function(){var e=this.createNode();return this.expectKeyword("debugger"),this.consumeSemicolon(),this.finalize(e,new o.DebuggerStatement)},s.prototype.parseStatement=function(){var e;switch(this.lookahead.type){case 1:case 5:case 6:case 8:case 10:case 9:e=this.parseExpressionStatement();break;case 7:var t=this.lookahead.value;t==="{"?e=this.parseBlock():t==="("?e=this.parseExpressionStatement():t===";"?e=this.parseEmptyStatement():e=this.parseExpressionStatement();break;case 3:e=this.matchAsyncFunction()?this.parseFunctionDeclaration():this.parseLabelledStatement();break;case 4:switch(this.lookahead.value){case"break":e=this.parseBreakStatement();break;case"continue":e=this.parseContinueStatement();break;case"debugger":e=this.parseDebuggerStatement();break;case"do":e=this.parseDoWhileStatement();break;case"for":e=this.parseForStatement();break;case"function":e=this.parseFunctionDeclaration();break;case"if":e=this.parseIfStatement();break;case"return":e=this.parseReturnStatement();break;case"switch":e=this.parseSwitchStatement();break;case"throw":e=this.parseThrowStatement();break;case"try":e=this.parseTryStatement();break;case"var":e=this.parseVariableStatement();break;case"while":e=this.parseWhileStatement();break;case"with":e=this.parseWithStatement();break;default:e=this.parseExpressionStatement();break}break;default:e=this.throwUnexpectedToken(this.lookahead)}return e},s.prototype.parseFunctionSourceElements=function(){var e=this.createNode();this.expect("{");var t=this.parseDirectivePrologues(),i=this.context.labelSet,r=this.context.inIteration,a=this.context.inSwitch,l=this.context.inFunctionBody;for(this.context.labelSet={},this.context.inIteration=!1,this.context.inSwitch=!1,this.context.inFunctionBody=!0;this.lookahead.type!==2&&!this.match("}");)t.push(this.parseStatementListItem());return this.expect("}"),this.context.labelSet=i,this.context.inIteration=r,this.context.inSwitch=a,this.context.inFunctionBody=l,this.finalize(e,new o.BlockStatement(t))},s.prototype.validateParam=function(e,t,i){var r="$"+i;this.context.strict?(this.scanner.isRestrictedWord(i)&&(e.stricted=t,e.message=f.Messages.StrictParamName),Object.prototype.hasOwnProperty.call(e.paramSet,r)&&(e.stricted=t,e.message=f.Messages.StrictParamDupe)):e.firstRestricted||(this.scanner.isRestrictedWord(i)?(e.firstRestricted=t,e.message=f.Messages.StrictParamName):this.scanner.isStrictModeReservedWord(i)?(e.firstRestricted=t,e.message=f.Messages.StrictReservedWord):Object.prototype.hasOwnProperty.call(e.paramSet,r)&&(e.stricted=t,e.message=f.Messages.StrictParamDupe)),typeof Object.defineProperty=="function"?Object.defineProperty(e.paramSet,r,{value:!0,enumerable:!0,writable:!0,configurable:!0}):e.paramSet[r]=!0},s.prototype.parseRestElement=function(e){var t=this.createNode();this.expect("...");var i=this.parsePattern(e);return this.match("=")&&this.throwError(f.Messages.DefaultRestParameter),this.match(")")||this.throwError(f.Messages.ParameterAfterRestParameter),this.finalize(t,new o.RestElement(i))},s.prototype.parseFormalParameter=function(e){for(var t=[],i=this.match("...")?this.parseRestElement(t):this.parsePatternWithDefault(t),r=0;r<t.length;r++)this.validateParam(e,t[r],t[r].value);e.simple=e.simple&&i instanceof o.Identifier,e.params.push(i)},s.prototype.parseFormalParameters=function(e){var t;if(t={simple:!0,params:[],firstRestricted:e},this.expect("("),!this.match(")"))for(t.paramSet={};this.lookahead.type!==2&&(this.parseFormalParameter(t),!(this.match(")")||(this.expect(","),this.match(")")))););return this.expect(")"),{simple:t.simple,params:t.params,stricted:t.stricted,firstRestricted:t.firstRestricted,message:t.message}},s.prototype.matchAsyncFunction=function(){var e=this.matchContextualKeyword("async");if(e){var t=this.scanner.saveState();this.scanner.scanComments();var i=this.scanner.lex();this.scanner.restoreState(t),e=t.lineNumber===i.lineNumber&&i.type===4&&i.value==="function"}return e},s.prototype.parseFunctionDeclaration=function(e){var t=this.createNode(),i=this.matchContextualKeyword("async");i&&this.nextToken(),this.expectKeyword("function");var r=i?!1:this.match("*");r&&this.nextToken();var a,l=null,D=null;if(!e||!this.match("(")){var E=this.lookahead;l=this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(E.value)&&this.tolerateUnexpectedToken(E,f.Messages.StrictFunctionName):this.scanner.isRestrictedWord(E.value)?(D=E,a=f.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(E.value)&&(D=E,a=f.Messages.StrictReservedWord)}var C=this.context.await,g=this.context.allowYield;this.context.await=i,this.context.allowYield=!r;var b=this.parseFormalParameters(D),B=b.params,N=b.stricted;D=b.firstRestricted,b.message&&(a=b.message);var z=this.context.strict,X=this.context.allowStrictDirective;this.context.allowStrictDirective=b.simple;var K=this.parseFunctionSourceElements();return this.context.strict&&D&&this.throwUnexpectedToken(D,a),this.context.strict&&N&&this.tolerateUnexpectedToken(N,a),this.context.strict=z,this.context.allowStrictDirective=X,this.context.await=C,this.context.allowYield=g,i?this.finalize(t,new o.AsyncFunctionDeclaration(l,B,K)):this.finalize(t,new o.FunctionDeclaration(l,B,K,r))},s.prototype.parseFunctionExpression=function(){var e=this.createNode(),t=this.matchContextualKeyword("async");t&&this.nextToken(),this.expectKeyword("function");var i=t?!1:this.match("*");i&&this.nextToken();var r,a=null,l,D=this.context.await,E=this.context.allowYield;if(this.context.await=t,this.context.allowYield=!i,!this.match("(")){var C=this.lookahead;a=!this.context.strict&&!i&&this.matchKeyword("yield")?this.parseIdentifierName():this.parseVariableIdentifier(),this.context.strict?this.scanner.isRestrictedWord(C.value)&&this.tolerateUnexpectedToken(C,f.Messages.StrictFunctionName):this.scanner.isRestrictedWord(C.value)?(l=C,r=f.Messages.StrictFunctionName):this.scanner.isStrictModeReservedWord(C.value)&&(l=C,r=f.Messages.StrictReservedWord)}var g=this.parseFormalParameters(l),b=g.params,B=g.stricted;l=g.firstRestricted,g.message&&(r=g.message);var N=this.context.strict,z=this.context.allowStrictDirective;this.context.allowStrictDirective=g.simple;var X=this.parseFunctionSourceElements();return this.context.strict&&l&&this.throwUnexpectedToken(l,r),this.context.strict&&B&&this.tolerateUnexpectedToken(B,r),this.context.strict=N,this.context.allowStrictDirective=z,this.context.await=D,this.context.allowYield=E,t?this.finalize(e,new o.AsyncFunctionExpression(a,b,X)):this.finalize(e,new o.FunctionExpression(a,b,X,i))},s.prototype.parseDirective=function(){var e=this.lookahead,t=this.createNode(),i=this.parseExpression(),r=i.type===x.Syntax.Literal?this.getTokenRaw(e).slice(1,-1):null;return this.consumeSemicolon(),this.finalize(t,r?new o.Directive(i,r):new o.ExpressionStatement(i))},s.prototype.parseDirectivePrologues=function(){for(var e=null,t=[];;){var i=this.lookahead;if(i.type!==8)break;var r=this.parseDirective();t.push(r);var a=r.directive;if(typeof a!="string")break;a==="use strict"?(this.context.strict=!0,e&&this.tolerateUnexpectedToken(e,f.Messages.StrictOctalLiteral),this.context.allowStrictDirective||this.tolerateUnexpectedToken(i,f.Messages.IllegalLanguageModeDirective)):!e&&i.octal&&(e=i)}return t},s.prototype.qualifiedPropertyName=function(e){switch(e.type){case 3:case 8:case 1:case 5:case 6:case 4:return!0;case 7:return e.value==="["}return!1},s.prototype.parseGetterMethod=function(){var e=this.createNode(),t=!1,i=this.context.allowYield;this.context.allowYield=!t;var r=this.parseFormalParameters();r.params.length>0&&this.tolerateError(f.Messages.BadGetterArity);var a=this.parsePropertyMethod(r);return this.context.allowYield=i,this.finalize(e,new o.FunctionExpression(null,r.params,a,t))},s.prototype.parseSetterMethod=function(){var e=this.createNode(),t=!1,i=this.context.allowYield;this.context.allowYield=!t;var r=this.parseFormalParameters();r.params.length!==1?this.tolerateError(f.Messages.BadSetterArity):r.params[0]instanceof o.RestElement&&this.tolerateError(f.Messages.BadSetterRestParameter);var a=this.parsePropertyMethod(r);return this.context.allowYield=i,this.finalize(e,new o.FunctionExpression(null,r.params,a,t))},s.prototype.parseGeneratorMethod=function(){var e=this.createNode(),t=!0,i=this.context.allowYield;this.context.allowYield=!0;var r=this.parseFormalParameters();this.context.allowYield=!1;var a=this.parsePropertyMethod(r);return this.context.allowYield=i,this.finalize(e,new o.FunctionExpression(null,r.params,a,t))},s.prototype.isStartOfExpression=function(){var e=!0,t=this.lookahead.value;switch(this.lookahead.type){case 7:e=t==="["||t==="("||t==="{"||t==="+"||t==="-"||t==="!"||t==="~"||t==="++"||t==="--"||t==="/"||t==="/=";break;case 4:e=t==="class"||t==="delete"||t==="function"||t==="let"||t==="new"||t==="super"||t==="this"||t==="typeof"||t==="void"||t==="yield";break}return e},s.prototype.parseYieldExpression=function(){var e=this.createNode();this.expectKeyword("yield");var t=null,i=!1;if(!this.hasLineTerminator){var r=this.context.allowYield;this.context.allowYield=!1,i=this.match("*"),i?(this.nextToken(),t=this.parseAssignmentExpression()):this.isStartOfExpression()&&(t=this.parseAssignmentExpression()),this.context.allowYield=r}return this.finalize(e,new o.YieldExpression(t,i))},s.prototype.parseClassElement=function(e){var t=this.lookahead,i=this.createNode(),r="",a=null,l=null,D=!1,E=!1,C=!1,g=!1;if(this.match("*"))this.nextToken();else{D=this.match("["),a=this.parseObjectPropertyKey();var b=a;if(b.name==="static"&&(this.qualifiedPropertyName(this.lookahead)||this.match("*"))&&(t=this.lookahead,C=!0,D=this.match("["),this.match("*")?this.nextToken():a=this.parseObjectPropertyKey()),t.type===3&&!this.hasLineTerminator&&t.value==="async"){var B=this.lookahead.value;B!==":"&&B!=="("&&B!=="*"&&(g=!0,t=this.lookahead,a=this.parseObjectPropertyKey(),t.type===3&&t.value==="constructor"&&this.tolerateUnexpectedToken(t,f.Messages.ConstructorIsAsync))}}var N=this.qualifiedPropertyName(this.lookahead);return t.type===3?t.value==="get"&&N?(r="get",D=this.match("["),a=this.parseObjectPropertyKey(),this.context.allowYield=!1,l=this.parseGetterMethod()):t.value==="set"&&N&&(r="set",D=this.match("["),a=this.parseObjectPropertyKey(),l=this.parseSetterMethod()):t.type===7&&t.value==="*"&&N&&(r="init",D=this.match("["),a=this.parseObjectPropertyKey(),l=this.parseGeneratorMethod(),E=!0),!r&&a&&this.match("(")&&(r="init",l=g?this.parsePropertyMethodAsyncFunction():this.parsePropertyMethodFunction(),E=!0),r||this.throwUnexpectedToken(this.lookahead),r==="init"&&(r="method"),D||(C&&this.isPropertyKey(a,"prototype")&&this.throwUnexpectedToken(t,f.Messages.StaticPrototype),!C&&this.isPropertyKey(a,"constructor")&&((r!=="method"||!E||l&&l.generator)&&this.throwUnexpectedToken(t,f.Messages.ConstructorSpecialMethod),e.value?this.throwUnexpectedToken(t,f.Messages.DuplicateConstructor):e.value=!0,r="constructor")),this.finalize(i,new o.MethodDefinition(a,D,l,r,C))},s.prototype.parseClassElementList=function(){var e=[],t={value:!1};for(this.expect("{");!this.match("}");)this.match(";")?this.nextToken():e.push(this.parseClassElement(t));return this.expect("}"),e},s.prototype.parseClassBody=function(){var e=this.createNode(),t=this.parseClassElementList();return this.finalize(e,new o.ClassBody(t))},s.prototype.parseClassDeclaration=function(e){var t=this.createNode(),i=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var r=e&&this.lookahead.type!==3?null:this.parseVariableIdentifier(),a=null;this.matchKeyword("extends")&&(this.nextToken(),a=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var l=this.parseClassBody();return this.context.strict=i,this.finalize(t,new o.ClassDeclaration(r,a,l))},s.prototype.parseClassExpression=function(){var e=this.createNode(),t=this.context.strict;this.context.strict=!0,this.expectKeyword("class");var i=this.lookahead.type===3?this.parseVariableIdentifier():null,r=null;this.matchKeyword("extends")&&(this.nextToken(),r=this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall));var a=this.parseClassBody();return this.context.strict=t,this.finalize(e,new o.ClassExpression(i,r,a))},s.prototype.parseModule=function(){this.context.strict=!0,this.context.isModule=!0,this.scanner.isModule=!0;for(var e=this.createNode(),t=this.parseDirectivePrologues();this.lookahead.type!==2;)t.push(this.parseStatementListItem());return this.finalize(e,new o.Module(t))},s.prototype.parseScript=function(){for(var e=this.createNode(),t=this.parseDirectivePrologues();this.lookahead.type!==2;)t.push(this.parseStatementListItem());return this.finalize(e,new o.Script(t))},s.prototype.parseModuleSpecifier=function(){var e=this.createNode();this.lookahead.type!==8&&this.throwError(f.Messages.InvalidModuleSpecifier);var t=this.nextToken(),i=this.getTokenRaw(t);return this.finalize(e,new o.Literal(t.value,i))},s.prototype.parseImportSpecifier=function(){var e=this.createNode(),t,i;return this.lookahead.type===3?(t=this.parseVariableIdentifier(),i=t,this.matchContextualKeyword("as")&&(this.nextToken(),i=this.parseVariableIdentifier())):(t=this.parseIdentifierName(),i=t,this.matchContextualKeyword("as")?(this.nextToken(),i=this.parseVariableIdentifier()):this.throwUnexpectedToken(this.nextToken())),this.finalize(e,new o.ImportSpecifier(i,t))},s.prototype.parseNamedImports=function(){this.expect("{");for(var e=[];!this.match("}");)e.push(this.parseImportSpecifier()),this.match("}")||this.expect(",");return this.expect("}"),e},s.prototype.parseImportDefaultSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName();return this.finalize(e,new o.ImportDefaultSpecifier(t))},s.prototype.parseImportNamespaceSpecifier=function(){var e=this.createNode();this.expect("*"),this.matchContextualKeyword("as")||this.throwError(f.Messages.NoAsAfterImportNamespace),this.nextToken();var t=this.parseIdentifierName();return this.finalize(e,new o.ImportNamespaceSpecifier(t))},s.prototype.parseImportDeclaration=function(){this.context.inFunctionBody&&this.throwError(f.Messages.IllegalImportDeclaration);var e=this.createNode();this.expectKeyword("import");var t,i=[];if(this.lookahead.type===8)t=this.parseModuleSpecifier();else{if(this.match("{")?i=i.concat(this.parseNamedImports()):this.match("*")?i.push(this.parseImportNamespaceSpecifier()):this.isIdentifierName(this.lookahead)&&!this.matchKeyword("default")?(i.push(this.parseImportDefaultSpecifier()),this.match(",")&&(this.nextToken(),this.match("*")?i.push(this.parseImportNamespaceSpecifier()):this.match("{")?i=i.concat(this.parseNamedImports()):this.throwUnexpectedToken(this.lookahead))):this.throwUnexpectedToken(this.nextToken()),!this.matchContextualKeyword("from")){var r=this.lookahead.value?f.Messages.UnexpectedToken:f.Messages.MissingFromClause;this.throwError(r,this.lookahead.value)}this.nextToken(),t=this.parseModuleSpecifier()}return this.consumeSemicolon(),this.finalize(e,new o.ImportDeclaration(i,t))},s.prototype.parseExportSpecifier=function(){var e=this.createNode(),t=this.parseIdentifierName(),i=t;return this.matchContextualKeyword("as")&&(this.nextToken(),i=this.parseIdentifierName()),this.finalize(e,new o.ExportSpecifier(t,i))},s.prototype.parseExportDeclaration=function(){this.context.inFunctionBody&&this.throwError(f.Messages.IllegalExportDeclaration);var e=this.createNode();this.expectKeyword("export");var t;if(this.matchKeyword("default"))if(this.nextToken(),this.matchKeyword("function")){var i=this.parseFunctionDeclaration(!0);t=this.finalize(e,new o.ExportDefaultDeclaration(i))}else if(this.matchKeyword("class")){var i=this.parseClassDeclaration(!0);t=this.finalize(e,new o.ExportDefaultDeclaration(i))}else if(this.matchContextualKeyword("async")){var i=this.matchAsyncFunction()?this.parseFunctionDeclaration(!0):this.parseAssignmentExpression();t=this.finalize(e,new o.ExportDefaultDeclaration(i))}else{this.matchContextualKeyword("from")&&this.throwError(f.Messages.UnexpectedToken,this.lookahead.value);var i=this.match("{")?this.parseObjectInitializer():this.match("[")?this.parseArrayInitializer():this.parseAssignmentExpression();this.consumeSemicolon(),t=this.finalize(e,new o.ExportDefaultDeclaration(i))}else if(this.match("*")){if(this.nextToken(),!this.matchContextualKeyword("from")){var r=this.lookahead.value?f.Messages.UnexpectedToken:f.Messages.MissingFromClause;this.throwError(r,this.lookahead.value)}this.nextToken();var a=this.parseModuleSpecifier();this.consumeSemicolon(),t=this.finalize(e,new o.ExportAllDeclaration(a))}else if(this.lookahead.type===4){var i=void 0;switch(this.lookahead.value){case"let":case"const":i=this.parseLexicalDeclaration({inFor:!1});break;case"var":case"class":case"function":i=this.parseStatementListItem();break;default:this.throwUnexpectedToken(this.lookahead)}t=this.finalize(e,new o.ExportNamedDeclaration(i,[],null))}else if(this.matchAsyncFunction()){var i=this.parseFunctionDeclaration();t=this.finalize(e,new o.ExportNamedDeclaration(i,[],null))}else{var l=[],D=null,E=!1;for(this.expect("{");!this.match("}");)E=E||this.matchKeyword("default"),l.push(this.parseExportSpecifier()),this.match("}")||this.expect(",");if(this.expect("}"),this.matchContextualKeyword("from"))this.nextToken(),D=this.parseModuleSpecifier(),this.consumeSemicolon();else if(E){var r=this.lookahead.value?f.Messages.UnexpectedToken:f.Messages.MissingFromClause;this.throwError(r,this.lookahead.value)}else this.consumeSemicolon();t=this.finalize(e,new o.ExportNamedDeclaration(null,l,D))}return t},s})();c.Parser=u},function(w,c){Object.defineProperty(c,"__esModule",{value:!0});function A(h,v){if(!h)throw new Error("ASSERT: "+v)}c.assert=A},function(w,c){Object.defineProperty(c,"__esModule",{value:!0});var A=(function(){function h(){this.errors=[],this.tolerant=!1}return h.prototype.recordError=function(v){this.errors.push(v)},h.prototype.tolerate=function(v){if(this.tolerant)this.recordError(v);else throw v},h.prototype.constructError=function(v,f){var o=new Error(v);try{throw o}catch(k){Object.create&&Object.defineProperty&&(o=Object.create(k),Object.defineProperty(o,"column",{value:f}))}return o},h.prototype.createError=function(v,f,o,k){var x="Line "+f+": "+k,m=this.constructError(x,o);return m.index=v,m.lineNumber=f,m.description=k,m},h.prototype.throwError=function(v,f,o,k){throw this.createError(v,f,o,k)},h.prototype.tolerateError=function(v,f,o,k){var x=this.createError(v,f,o,k);if(this.tolerant)this.recordError(x);else throw x},h})();c.ErrorHandler=A},function(w,c){Object.defineProperty(c,"__esModule",{value:!0}),c.Messages={BadGetterArity:"Getter must not have any formal parameters",BadSetterArity:"Setter must have exactly one formal parameter",BadSetterRestParameter:"Setter function argument must not be a rest parameter",ConstructorIsAsync:"Class constructor may not be an async method",ConstructorSpecialMethod:"Class constructor may not be an accessor",DeclarationMissingInitializer:"Missing initializer in %0 declaration",DefaultRestParameter:"Unexpected token =",DuplicateBinding:"Duplicate binding %0",DuplicateConstructor:"A class may only have one constructor",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ForInOfLoopInitializer:"%0 loop variable declaration may not have an initializer",GeneratorInLegacyContext:"Generator declarations are not allowed in legacy contexts",IllegalBreak:"Illegal break statement",IllegalContinue:"Illegal continue statement",IllegalExportDeclaration:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list",IllegalReturn:"Illegal return statement",InvalidEscapedReservedWord:"Keyword must not contain escaped characters",InvalidHexEscapeSequence:"Invalid hexadecimal escape sequence",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",InvalidModuleSpecifier:"Unexpected token",InvalidRegExp:"Invalid regular expression",LetInLexicalBinding:"let is disallowed as a lexically bound name",MissingFromClause:"Unexpected token",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NewlineAfterThrow:"Illegal newline after throw",NoAsAfterImportNamespace:"Unexpected token",NoCatchOrFinally:"Missing catch or finally after try",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",Redeclaration:"%0 '%1' has already been declared",StaticPrototype:"Classes may not have static property named prototype",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictModeWith:"Strict mode code may not include a with statement",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",UnexpectedEOS:"Unexpected end of input",UnexpectedIdentifier:"Unexpected identifier",UnexpectedNumber:"Unexpected number",UnexpectedReserved:"Unexpected reserved word",UnexpectedString:"Unexpected string",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedToken:"Unexpected token %0",UnexpectedTokenIllegal:"Unexpected token ILLEGAL",UnknownLabel:"Undefined label '%0'",UnterminatedRegExp:"Invalid regular expression: missing /"}},function(w,c,A){Object.defineProperty(c,"__esModule",{value:!0});var h=A(9),v=A(4),f=A(11);function o(m){return"0123456789abcdef".indexOf(m.toLowerCase())}function k(m){return"01234567".indexOf(m)}var x=(function(){function m(n,u){this.source=n,this.errorHandler=u,this.trackComment=!1,this.isModule=!1,this.length=n.length,this.index=0,this.lineNumber=n.length>0?1:0,this.lineStart=0,this.curlyStack=[]}return m.prototype.saveState=function(){return{index:this.index,lineNumber:this.lineNumber,lineStart:this.lineStart}},m.prototype.restoreState=function(n){this.index=n.index,this.lineNumber=n.lineNumber,this.lineStart=n.lineStart},m.prototype.eof=function(){return this.index>=this.length},m.prototype.throwUnexpectedToken=function(n){return n===void 0&&(n=f.Messages.UnexpectedTokenIllegal),this.errorHandler.throwError(this.index,this.lineNumber,this.index-this.lineStart+1,n)},m.prototype.tolerateUnexpectedToken=function(n){n===void 0&&(n=f.Messages.UnexpectedTokenIllegal),this.errorHandler.tolerateError(this.index,this.lineNumber,this.index-this.lineStart+1,n)},m.prototype.skipSingleLineComment=function(n){var u=[],s,e;for(this.trackComment&&(u=[],s=this.index-n,e={start:{line:this.lineNumber,column:this.index-this.lineStart-n},end:{}});!this.eof();){var t=this.source.charCodeAt(this.index);if(++this.index,v.Character.isLineTerminator(t)){if(this.trackComment){e.end={line:this.lineNumber,column:this.index-this.lineStart-1};var i={multiLine:!1,slice:[s+n,this.index-1],range:[s,this.index-1],loc:e};u.push(i)}return t===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,u}}if(this.trackComment){e.end={line:this.lineNumber,column:this.index-this.lineStart};var i={multiLine:!1,slice:[s+n,this.index],range:[s,this.index],loc:e};u.push(i)}return u},m.prototype.skipMultiLineComment=function(){var n=[],u,s;for(this.trackComment&&(n=[],u=this.index-2,s={start:{line:this.lineNumber,column:this.index-this.lineStart-2},end:{}});!this.eof();){var e=this.source.charCodeAt(this.index);if(v.Character.isLineTerminator(e))e===13&&this.source.charCodeAt(this.index+1)===10&&++this.index,++this.lineNumber,++this.index,this.lineStart=this.index;else if(e===42){if(this.source.charCodeAt(this.index+1)===47){if(this.index+=2,this.trackComment){s.end={line:this.lineNumber,column:this.index-this.lineStart};var t={multiLine:!0,slice:[u+2,this.index-2],range:[u,this.index],loc:s};n.push(t)}return n}++this.index}else++this.index}if(this.trackComment){s.end={line:this.lineNumber,column:this.index-this.lineStart};var t={multiLine:!0,slice:[u+2,this.index],range:[u,this.index],loc:s};n.push(t)}return this.tolerateUnexpectedToken(),n},m.prototype.scanComments=function(){var n;this.trackComment&&(n=[]);for(var u=this.index===0;!this.eof();){var s=this.source.charCodeAt(this.index);if(v.Character.isWhiteSpace(s))++this.index;else if(v.Character.isLineTerminator(s))++this.index,s===13&&this.source.charCodeAt(this.index)===10&&++this.index,++this.lineNumber,this.lineStart=this.index,u=!0;else if(s===47)if(s=this.source.charCodeAt(this.index+1),s===47){this.index+=2;var e=this.skipSingleLineComment(2);this.trackComment&&(n=n.concat(e)),u=!0}else if(s===42){this.index+=2;var e=this.skipMultiLineComment();this.trackComment&&(n=n.concat(e))}else break;else if(u&&s===45)if(this.source.charCodeAt(this.index+1)===45&&this.source.charCodeAt(this.index+2)===62){this.index+=3;var e=this.skipSingleLineComment(3);this.trackComment&&(n=n.concat(e))}else break;else if(s===60&&!this.isModule)if(this.source.slice(this.index+1,this.index+4)==="!--"){this.index+=4;var e=this.skipSingleLineComment(4);this.trackComment&&(n=n.concat(e))}else break;else break}return n},m.prototype.isFutureReservedWord=function(n){switch(n){case"enum":case"export":case"import":case"super":return!0;default:return!1}},m.prototype.isStrictModeReservedWord=function(n){switch(n){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}},m.prototype.isRestrictedWord=function(n){return n==="eval"||n==="arguments"},m.prototype.isKeyword=function(n){switch(n.length){case 2:return n==="if"||n==="in"||n==="do";case 3:return n==="var"||n==="for"||n==="new"||n==="try"||n==="let";case 4:return n==="this"||n==="else"||n==="case"||n==="void"||n==="with"||n==="enum";case 5:return n==="while"||n==="break"||n==="catch"||n==="throw"||n==="const"||n==="yield"||n==="class"||n==="super";case 6:return n==="return"||n==="typeof"||n==="delete"||n==="switch"||n==="export"||n==="import";case 7:return n==="default"||n==="finally"||n==="extends";case 8:return n==="function"||n==="continue"||n==="debugger";case 10:return n==="instanceof";default:return!1}},m.prototype.codePointAt=function(n){var u=this.source.charCodeAt(n);if(u>=55296&&u<=56319){var s=this.source.charCodeAt(n+1);if(s>=56320&&s<=57343){var e=u;u=(e-55296)*1024+s-56320+65536}}return u},m.prototype.scanHexEscape=function(n){for(var u=n==="u"?4:2,s=0,e=0;e<u;++e)if(!this.eof()&&v.Character.isHexDigit(this.source.charCodeAt(this.index)))s=s*16+o(this.source[this.index++]);else return null;return String.fromCharCode(s)},m.prototype.scanUnicodeCodePointEscape=function(){var n=this.source[this.index],u=0;for(n==="}"&&this.throwUnexpectedToken();!this.eof()&&(n=this.source[this.index++],!!v.Character.isHexDigit(n.charCodeAt(0)));)u=u*16+o(n);return(u>1114111||n!=="}")&&this.throwUnexpectedToken(),v.Character.fromCodePoint(u)},m.prototype.getIdentifier=function(){for(var n=this.index++;!this.eof();){var u=this.source.charCodeAt(this.index);if(u===92)return this.index=n,this.getComplexIdentifier();if(u>=55296&&u<57343)return this.index=n,this.getComplexIdentifier();if(v.Character.isIdentifierPart(u))++this.index;else break}return this.source.slice(n,this.index)},m.prototype.getComplexIdentifier=function(){var n=this.codePointAt(this.index),u=v.Character.fromCodePoint(n);this.index+=u.length;var s;for(n===92&&(this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,s=this.scanUnicodeCodePointEscape()):(s=this.scanHexEscape("u"),(s===null||s==="\\"||!v.Character.isIdentifierStart(s.charCodeAt(0)))&&this.throwUnexpectedToken()),u=s);!this.eof()&&(n=this.codePointAt(this.index),!!v.Character.isIdentifierPart(n));)s=v.Character.fromCodePoint(n),u+=s,this.index+=s.length,n===92&&(u=u.substr(0,u.length-1),this.source.charCodeAt(this.index)!==117&&this.throwUnexpectedToken(),++this.index,this.source[this.index]==="{"?(++this.index,s=this.scanUnicodeCodePointEscape()):(s=this.scanHexEscape("u"),(s===null||s==="\\"||!v.Character.isIdentifierPart(s.charCodeAt(0)))&&this.throwUnexpectedToken()),u+=s);return u},m.prototype.octalToDecimal=function(n){var u=n!=="0",s=k(n);return!this.eof()&&v.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(u=!0,s=s*8+k(this.source[this.index++]),"0123".indexOf(n)>=0&&!this.eof()&&v.Character.isOctalDigit(this.source.charCodeAt(this.index))&&(s=s*8+k(this.source[this.index++]))),{code:s,octal:u}},m.prototype.scanIdentifier=function(){var n,u=this.index,s=this.source.charCodeAt(u)===92?this.getComplexIdentifier():this.getIdentifier();if(s.length===1?n=3:this.isKeyword(s)?n=4:s==="null"?n=5:s==="true"||s==="false"?n=1:n=3,n!==3&&u+s.length!==this.index){var e=this.index;this.index=u,this.tolerateUnexpectedToken(f.Messages.InvalidEscapedReservedWord),this.index=e}return{type:n,value:s,lineNumber:this.lineNumber,lineStart:this.lineStart,start:u,end:this.index}},m.prototype.scanPunctuator=function(){var n=this.index,u=this.source[this.index];switch(u){case"(":case"{":u==="{"&&this.curlyStack.push("{"),++this.index;break;case".":++this.index,this.source[this.index]==="."&&this.source[this.index+1]==="."&&(this.index+=2,u="...");break;case"}":++this.index,this.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++this.index;break;default:u=this.source.substr(this.index,4),u===">>>="?this.index+=4:(u=u.substr(0,3),u==="==="||u==="!=="||u===">>>"||u==="<<="||u===">>="||u==="**="?this.index+=3:(u=u.substr(0,2),u==="&&"||u==="||"||u==="=="||u==="!="||u==="+="||u==="-="||u==="*="||u==="/="||u==="++"||u==="--"||u==="<<"||u===">>"||u==="&="||u==="|="||u==="^="||u==="%="||u==="<="||u===">="||u==="=>"||u==="**"?this.index+=2:(u=this.source[this.index],"<>=!+-*%&|^/".indexOf(u)>=0&&++this.index)))}return this.index===n&&this.throwUnexpectedToken(),{type:7,value:u,lineNumber:this.lineNumber,lineStart:this.lineStart,start:n,end:this.index}},m.prototype.scanHexLiteral=function(n){for(var u="";!this.eof()&&v.Character.isHexDigit(this.source.charCodeAt(this.index));)u+=this.source[this.index++];return u.length===0&&this.throwUnexpectedToken(),v.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseInt("0x"+u,16),lineNumber:this.lineNumber,lineStart:this.lineStart,start:n,end:this.index}},m.prototype.scanBinaryLiteral=function(n){for(var u="",s;!this.eof()&&(s=this.source[this.index],!(s!=="0"&&s!=="1"));)u+=this.source[this.index++];return u.length===0&&this.throwUnexpectedToken(),this.eof()||(s=this.source.charCodeAt(this.index),(v.Character.isIdentifierStart(s)||v.Character.isDecimalDigit(s))&&this.throwUnexpectedToken()),{type:6,value:parseInt(u,2),lineNumber:this.lineNumber,lineStart:this.lineStart,start:n,end:this.index}},m.prototype.scanOctalLiteral=function(n,u){var s="",e=!1;for(v.Character.isOctalDigit(n.charCodeAt(0))?(e=!0,s="0"+this.source[this.index++]):++this.index;!this.eof()&&v.Character.isOctalDigit(this.source.charCodeAt(this.index));)s+=this.source[this.index++];return!e&&s.length===0&&this.throwUnexpectedToken(),(v.Character.isIdentifierStart(this.source.charCodeAt(this.index))||v.Character.isDecimalDigit(this.source.charCodeAt(this.index)))&&this.throwUnexpectedToken(),{type:6,value:parseInt(s,8),octal:e,lineNumber:this.lineNumber,lineStart:this.lineStart,start:u,end:this.index}},m.prototype.isImplicitOctalLiteral=function(){for(var n=this.index+1;n<this.length;++n){var u=this.source[n];if(u==="8"||u==="9")return!1;if(!v.Character.isOctalDigit(u.charCodeAt(0)))return!0}return!0},m.prototype.scanNumericLiteral=function(){var n=this.index,u=this.source[n];h.assert(v.Character.isDecimalDigit(u.charCodeAt(0))||u===".","Numeric literal must start with a decimal digit or a decimal point");var s="";if(u!=="."){if(s=this.source[this.index++],u=this.source[this.index],s==="0"){if(u==="x"||u==="X")return++this.index,this.scanHexLiteral(n);if(u==="b"||u==="B")return++this.index,this.scanBinaryLiteral(n);if(u==="o"||u==="O")return this.scanOctalLiteral(u,n);if(u&&v.Character.isOctalDigit(u.charCodeAt(0))&&this.isImplicitOctalLiteral())return this.scanOctalLiteral(u,n)}for(;v.Character.isDecimalDigit(this.source.charCodeAt(this.index));)s+=this.source[this.index++];u=this.source[this.index]}if(u==="."){for(s+=this.source[this.index++];v.Character.isDecimalDigit(this.source.charCodeAt(this.index));)s+=this.source[this.index++];u=this.source[this.index]}if(u==="e"||u==="E")if(s+=this.source[this.index++],u=this.source[this.index],(u==="+"||u==="-")&&(s+=this.source[this.index++]),v.Character.isDecimalDigit(this.source.charCodeAt(this.index)))for(;v.Character.isDecimalDigit(this.source.charCodeAt(this.index));)s+=this.source[this.index++];else this.throwUnexpectedToken();return v.Character.isIdentifierStart(this.source.charCodeAt(this.index))&&this.throwUnexpectedToken(),{type:6,value:parseFloat(s),lineNumber:this.lineNumber,lineStart:this.lineStart,start:n,end:this.index}},m.prototype.scanStringLiteral=function(){var n=this.index,u=this.source[n];h.assert(u==="'"||u==='"',"String literal must starts with a quote"),++this.index;for(var s=!1,e="";!this.eof();){var t=this.source[this.index++];if(t===u){u="";break}else if(t==="\\")if(t=this.source[this.index++],!t||!v.Character.isLineTerminator(t.charCodeAt(0)))switch(t){case"u":if(this.source[this.index]==="{")++this.index,e+=this.scanUnicodeCodePointEscape();else{var i=this.scanHexEscape(t);i===null&&this.throwUnexpectedToken(),e+=i}break;case"x":var r=this.scanHexEscape(t);r===null&&this.throwUnexpectedToken(f.Messages.InvalidHexEscapeSequence),e+=r;break;case"n":e+=`
3
3
  `;break;case"r":e+="\r";break;case"t":e+=" ";break;case"b":e+="\b";break;case"f":e+="\f";break;case"v":e+="\v";break;case"8":case"9":e+=t,this.tolerateUnexpectedToken();break;default:if(t&&v.Character.isOctalDigit(t.charCodeAt(0))){var a=this.octalToDecimal(t);s=a.octal||s,e+=String.fromCharCode(a.code)}else e+=t;break}else++this.lineNumber,t==="\r"&&this.source[this.index]===`
4
4
  `&&++this.index,this.lineStart=this.index;else{if(v.Character.isLineTerminator(t.charCodeAt(0)))break;e+=t}}return u!==""&&(this.index=n,this.throwUnexpectedToken()),{type:8,value:e,octal:s,lineNumber:this.lineNumber,lineStart:this.lineStart,start:n,end:this.index}},m.prototype.scanTemplate=function(){var n="",u=!1,s=this.index,e=this.source[s]==="`",t=!1,i=2;for(++this.index;!this.eof();){var r=this.source[this.index++];if(r==="`"){i=1,t=!0,u=!0;break}else if(r==="$"){if(this.source[this.index]==="{"){this.curlyStack.push("${"),++this.index,u=!0;break}n+=r}else if(r==="\\")if(r=this.source[this.index++],v.Character.isLineTerminator(r.charCodeAt(0)))++this.lineNumber,r==="\r"&&this.source[this.index]===`
@@ -1 +1 @@
1
- import"./BY57TmdO.js";import{l as L,p as U,M as B,a6 as V,Z as X,i as t,a7 as Y,N as w,f as c,d as b,a8 as $,a9 as tt,r as n,s as N,a4 as Z,b as h,c as et,t as H,e as j}from"./BaB-cr9N.js";import{i as k}from"./D17Lj1H7.js";import{t as rt,e as M,i as P,b as q}from"./BFhvhM4X.js";import{b as D}from"./D72Du7TF.js";function R(o,a={},i,r){for(var l in i){var e=i[l];a[l]!==e&&(i[l]==null?o.style.removeProperty(l):o.style.setProperty(l,e,r))}}function ot(o,a,i,r){var l=o.__style;if(L||l!==a){var e=rt(a,r);(!L||e!==o.getAttribute("style"))&&(e==null?o.removeAttribute("style"):o.style.cssText=e),o.__style=a}else r&&(Array.isArray(r)?(R(o,i?.[0],r[0]),R(o,i?.[1],r[1],"important")):R(o,i,r));return r}var at=c("<th> </th>"),it=c("<thead><tr></tr></thead>"),lt=c("<td> </td>"),st=c("<tr></tr>"),nt=c('<div class="absolute bg-[var(--color-2)] border border-[var(--color-3)] rounded p-0 z-[1000] whitespace-nowrap shadow-lg"><table class="w-full border-collapse text-base font-medium"><!><tbody></tbody></table></div>'),dt=c('<div class="relative inline-block"><button class="dotted text-center"><!></button> <!></div>');function ht(o,a){U(a,!0);let i=B(!1),r=B(void 0),l=B(void 0),e=B(V({left:"",right:"",top:"",bottom:"",marginTop:"",marginBottom:""}));function F(){w(i,!0)}function G(){w(i,!1)}X(()=>{t(i)&&t(r)&&t(l)&&Y().then(()=>{if(!t(l)||!t(r))return;const f=t(r).getBoundingClientRect(),v=window.innerWidth,y=window.innerHeight;w(e,{left:"",right:"",top:"",bottom:"",marginTop:"",marginBottom:""},!0),f.right>v?t(e).right="0":t(e).left="0",f.bottom>y?(t(e).bottom="100%",t(e).marginBottom="5px"):(t(e).top="100%",t(e).marginTop="5px")})});var x=dt(),m=b(x),I=b(m);$(I,()=>a.children??tt),n(m);var J=N(m,2);{var K=f=>{var v=nt();let y;var W=b(v),z=b(W);{var O=d=>{var u=it(),g=b(u);M(g,21,()=>a.columns,P,(A,s)=>{var _=at();let E;var p=b(_,!0);n(_),H(T=>{E=q(_,1,"px-2 py-1 border-b border-[var(--color-3)] bg-[var(--color-4)] font-bold",null,E,T),j(p,t(s).header)},[()=>({"text-left":t(s).align==="left"||!t(s).align,"text-right":t(s).align==="right","text-center":t(s).align==="center"})]),h(A,_)}),n(g),n(u),h(d,u)};k(z,d=>{a.hideHeader||d(O)})}var C=N(z);M(C,21,()=>a.rows,P,(d,u)=>{var g=st();M(g,21,()=>a.columns,P,(A,s,_,E)=>{var p=lt();let T;var Q=b(p,!0);n(p),H(S=>{T=q(p,1,"px-2 py-1 border-b border-[var(--color-3)]",null,T,S),j(Q,t(u)[t(s).key])},[()=>({"text-left":t(s).align==="left"||!t(s).align,"text-right":t(s).align==="right","text-center":t(s).align==="center"})]),h(A,p)}),n(g),h(d,g)}),n(C),n(W),n(v),D(v,d=>w(r,d),()=>t(r)),H(d=>y=ot(v,"",y,d),[()=>({left:t(e).left,right:t(e).right,top:t(e).top,bottom:t(e).bottom,"margin-top":t(e).marginTop,"margin-bottom":t(e).marginBottom})]),h(f,v)};k(J,f=>{t(i)&&f(K)})}n(x),D(x,f=>w(l,f),()=>t(l)),Z("mouseenter",m,F),Z("mouseleave",m,G),h(o,x),et()}export{ht as T};
1
+ import"./BY57TmdO.js";import{l as L,p as U,M as B,a6 as V,Z as X,i as t,a7 as Y,N as w,f as c,d as b,a8 as $,a9 as tt,r as n,s as N,a4 as Z,b as h,c as et,t as H,e as j}from"./BaB-cr9N.js";import{i as k}from"./D17Lj1H7.js";import{t as rt,e as M,i as P,b as q}from"./CyQLXPZI.js";import{b as D}from"./D72Du7TF.js";function R(o,a={},i,r){for(var l in i){var e=i[l];a[l]!==e&&(i[l]==null?o.style.removeProperty(l):o.style.setProperty(l,e,r))}}function ot(o,a,i,r){var l=o.__style;if(L||l!==a){var e=rt(a,r);(!L||e!==o.getAttribute("style"))&&(e==null?o.removeAttribute("style"):o.style.cssText=e),o.__style=a}else r&&(Array.isArray(r)?(R(o,i?.[0],r[0]),R(o,i?.[1],r[1],"important")):R(o,i,r));return r}var at=c("<th> </th>"),it=c("<thead><tr></tr></thead>"),lt=c("<td> </td>"),st=c("<tr></tr>"),nt=c('<div class="absolute bg-[var(--color-2)] border border-[var(--color-3)] rounded p-0 z-[1000] whitespace-nowrap shadow-lg"><table class="w-full border-collapse text-base font-medium"><!><tbody></tbody></table></div>'),dt=c('<div class="relative inline-block"><button class="dotted text-center"><!></button> <!></div>');function ht(o,a){U(a,!0);let i=B(!1),r=B(void 0),l=B(void 0),e=B(V({left:"",right:"",top:"",bottom:"",marginTop:"",marginBottom:""}));function F(){w(i,!0)}function G(){w(i,!1)}X(()=>{t(i)&&t(r)&&t(l)&&Y().then(()=>{if(!t(l)||!t(r))return;const f=t(r).getBoundingClientRect(),v=window.innerWidth,y=window.innerHeight;w(e,{left:"",right:"",top:"",bottom:"",marginTop:"",marginBottom:""},!0),f.right>v?t(e).right="0":t(e).left="0",f.bottom>y?(t(e).bottom="100%",t(e).marginBottom="5px"):(t(e).top="100%",t(e).marginTop="5px")})});var x=dt(),m=b(x),I=b(m);$(I,()=>a.children??tt),n(m);var J=N(m,2);{var K=f=>{var v=nt();let y;var W=b(v),z=b(W);{var O=d=>{var u=it(),g=b(u);M(g,21,()=>a.columns,P,(A,s)=>{var _=at();let E;var p=b(_,!0);n(_),H(T=>{E=q(_,1,"px-2 py-1 border-b border-[var(--color-3)] bg-[var(--color-4)] font-bold",null,E,T),j(p,t(s).header)},[()=>({"text-left":t(s).align==="left"||!t(s).align,"text-right":t(s).align==="right","text-center":t(s).align==="center"})]),h(A,_)}),n(g),n(u),h(d,u)};k(z,d=>{a.hideHeader||d(O)})}var C=N(z);M(C,21,()=>a.rows,P,(d,u)=>{var g=st();M(g,21,()=>a.columns,P,(A,s,_,E)=>{var p=lt();let T;var Q=b(p,!0);n(p),H(S=>{T=q(p,1,"px-2 py-1 border-b border-[var(--color-3)]",null,T,S),j(Q,t(u)[t(s).key])},[()=>({"text-left":t(s).align==="left"||!t(s).align,"text-right":t(s).align==="right","text-center":t(s).align==="center"})]),h(A,p)}),n(g),h(d,g)}),n(C),n(W),n(v),D(v,d=>w(r,d),()=>t(r)),H(d=>y=ot(v,"",y,d),[()=>({left:t(e).left,right:t(e).right,top:t(e).top,bottom:t(e).bottom,"margin-top":t(e).marginTop,"margin-bottom":t(e).marginBottom})]),h(f,v)};k(J,f=>{t(i)&&f(K)})}n(x),D(x,f=>w(l,f),()=>t(l)),Z("mouseenter",m,F),Z("mouseleave",m,G),h(o,x),et()}export{ht as T};
@@ -0,0 +1,4 @@
1
+ import{o as We,s as jt}from"./sBKW2MYH.js";import{p as xt,e as Nt,c as Dt,b as U}from"./uMNMODvc.js";import{a9 as ve,aT as Bt,M as I,i as P,N as L,a7 as Xe}from"./BaB-cr9N.js";const M=[];function $e(e,t=ve){let n=null;const r=new Set;function a(s){if(Bt(e,s)&&(e=s,n)){const l=!M.length;for(const i of r)i[1](),M.push(i,e);if(l){for(let i=0;i<M.length;i+=2)M[i][0](M[i+1]);M.length=0}}}function o(s){a(s(e))}function c(s,l=ve){const i=[s,l];return r.add(i),r.size===1&&(n=t(a,o)||ve),s(e),()=>{r.delete(i),r.size===0&&n&&(n(),n=null)}}return{set:a,update:o,subscribe:c}}class pe{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Ce{constructor(t,n){this.status=t,this.location=n}}class je extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function Mt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function qt(e){return e.split("%25").map(decodeURI).join("%25")}function Ft(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function be({href:e}){return e.split("#")[0]}function Vt(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(c,s){if(s==="get"||s==="getAll"||s==="has")return i=>(n(i),c[s](i));t();const l=Reflect.get(c,s);return typeof l=="function"?l.bind(c):l}}),enumerable:!0,configurable:!0});const o=["href","pathname","search","toString","toJSON"];r&&o.push("hash");for(const c of o)Object.defineProperty(a,c,{get(){return t(),e[c]},enumerable:!0,configurable:!0});return a}function Gt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;const Yt=new TextDecoder;function Ht(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function Jt(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const Kt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&J.delete(xe(e)),Kt(e,t));const J=new Map;function zt(e,t){const n=xe(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...o}=JSON.parse(r.textContent);const c=r.getAttribute("data-ttl");return c&&J.set(n,{body:a,init:o,ttl:1e3*Number(c)}),r.getAttribute("data-b64")!==null&&(a=Jt(a)),Promise.resolve(new Response(a,o))}return window.fetch(e,t)}function Wt(e,t,n){if(J.size>0){const r=xe(e,n),a=J.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);J.delete(r)}}return window.fetch(t,n)}function xe(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${Gt(...a)}"]`}return r}function Xt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([s,[l,i,h]])=>{const{pattern:u,params:d}=xt(s),f={id:s,exec:p=>{const v=u.exec(p);if(v)return Nt(v,d,r)},errors:[1,...h||[]].map(p=>e[p]),layouts:[0,...i||[]].map(c),leaf:o(l)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function o(s){const l=s<0;return l&&(s=~s),[l,e[s]]}function c(s){return s===void 0?s:[a.has(s),e[s]]}}function ct(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ze(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const Zt="1760425235891",lt="sveltekit:snapshot",ft="sveltekit:scroll",ut="sveltekit:states",Qt="sveltekit:pageurl",F="sveltekit:history",W="sveltekit:navigation",D={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},ee=location.origin;function Ne(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function ge(){return{x:pageXOffset,y:pageYOffset}}function q(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Qe={...D,"":D.hover};function dt(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function ht(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=dt(e)}}function Te(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const s=location.hash.split("#")[1]||"/";r.hash=`#${s}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,o=!r||!!a||me(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),c=r?.origin===ee&&e.hasAttribute("download");return{url:r,external:o,target:a,download:c}}function oe(e){let t=null,n=null,r=null,a=null,o=null,c=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=q(s,"preload-code")),a===null&&(a=q(s,"preload-data")),t===null&&(t=q(s,"keepfocus")),n===null&&(n=q(s,"noscroll")),o===null&&(o=q(s,"reload")),c===null&&(c=q(s,"replacestate")),s=dt(s);function l(i){switch(i){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Qe[r??"off"],preload_data:Qe[a??"off"],keepfocus:l(t),noscroll:l(n),reload:l(o),replace_state:l(c)}}function et(e){const t=$e(e);let n=!0;function r(){n=!0,t.update(c=>c)}function a(c){n=!1,t.set(c)}function o(c){let s;return t.subscribe(l=>{(s===void 0||n&&l!==s)&&c(s=l)})}return{notify:r,set:a,subscribe:o}}const pt={v:()=>{}};function en(){const{set:e,subscribe:t}=$e(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Dt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const c=(await a.json()).version!==Zt;return c&&(e(!0),pt.v(),clearTimeout(n)),c}catch{return!1}}return{subscribe:t,check:r}}function me(e,t,n){return e.origin!==ee||!e.pathname.startsWith(t)?!0:n?!(e.pathname===t+"/"||e.pathname===t+"/index.html"||e.protocol==="file:"&&e.pathname.replace(/\/[^/]+\.html?$/,"")===t):!1}function Vn(e){}class Ae extends Error{constructor(t,n){super(t),this.name="DevalueError",this.path=n.join("")}}function tt(e){return Object(e)!==e}const tn=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function nn(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join("\0")===tn}function rn(e){return Object.prototype.toString.call(e).slice(8,-1)}function an(e){switch(e){case'"':return'\\"';case"<":return"\\u003C";case"\\":return"\\\\";case`
2
+ `:return"\\n";case"\r":return"\\r";case" ":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return e<" "?`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`:""}}function C(e){let t="",n=0;const r=e.length;for(let a=0;a<r;a+=1){const o=e[a],c=an(o);c&&(t+=e.slice(n,a)+c,n=a+1)}return`"${n===0?e:t+e.slice(n)}"`}function on(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)}const sn=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function nt(e){return sn.test(e)?"."+e:"["+JSON.stringify(e)+"]"}function cn(e){const t=new DataView(e);let n="";for(let r=0;r<e.byteLength;r++)n+=String.fromCharCode(t.getUint8(r));return un(n)}function ln(e){const t=fn(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let a=0;a<n.byteLength;a++)r.setUint8(a,t.charCodeAt(a));return n}const gt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function fn(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let a=0;a<e.length;a++)n<<=6,n|=gt.indexOf(e[a]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}function un(e){let t="";for(let n=0;n<e.length;n+=3){const r=[void 0,void 0,void 0,void 0];r[0]=e.charCodeAt(n)>>2,r[1]=(e.charCodeAt(n)&3)<<4,e.length>n+1&&(r[1]|=e.charCodeAt(n+1)>>4,r[2]=(e.charCodeAt(n+1)&15)<<2),e.length>n+2&&(r[2]|=e.charCodeAt(n+2)>>6,r[3]=e.charCodeAt(n+2)&63);for(let a=0;a<r.length;a++)typeof r[a]>"u"?t+="=":t+=gt[r[a]]}return t}const De=-1,mt=-2,yt=-3,_t=-4,wt=-5,Be=-6;function Gn(e,t){return vt(JSON.parse(e),t)}function vt(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(o,c=!1){if(o===De)return;if(o===yt)return NaN;if(o===_t)return 1/0;if(o===wt)return-1/0;if(o===Be)return-0;if(c||typeof o!="number")throw new Error("Invalid input");if(o in r)return r[o];const s=n[o];if(!s||typeof s!="object")r[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const l=s[0],i=t?.[l];if(i)return r[o]=i(a(s[1]));switch(l){case"Date":r[o]=new Date(s[1]);break;case"Set":const h=new Set;r[o]=h;for(let f=1;f<s.length;f+=1)h.add(a(s[f]));break;case"Map":const u=new Map;r[o]=u;for(let f=1;f<s.length;f+=2)u.set(a(s[f]),a(s[f+1]));break;case"RegExp":r[o]=new RegExp(s[1],s[2]);break;case"Object":r[o]=Object(s[1]);break;case"BigInt":r[o]=BigInt(s[1]);break;case"null":const d=Object.create(null);r[o]=d;for(let f=1;f<s.length;f+=2)d[s[f]]=a(s[f+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const f=globalThis[l],p=new f(a(s[1]));r[o]=s[2]!==void 0?p.subarray(s[2],s[3]):p;break}case"ArrayBuffer":{const f=s[1],p=ln(f);r[o]=p;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const f=l.slice(9);r[o]=Temporal[f].from(s[1]);break}case"URL":{const f=new URL(s[1]);r[o]=f;break}case"URLSearchParams":{const f=new URLSearchParams(s[1]);r[o]=f;break}default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(s.length);r[o]=l;for(let i=0;i<s.length;i+=1){const h=s[i];h!==mt&&(l[i]=a(h))}}else{const l={};r[o]=l;for(const i in s){if(i==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const h=s[i];l[i]=a(h)}}return r[o]}return a(0)}function dn(e,t){const n=[],r=new Map,a=[];if(t)for(const i of Object.getOwnPropertyNames(t))a.push({key:i,fn:t[i]});const o=[];let c=0;function s(i){if(typeof i=="function")throw new Ae("Cannot stringify a function",o);if(i===void 0)return De;if(Number.isNaN(i))return yt;if(i===1/0)return _t;if(i===-1/0)return wt;if(i===0&&1/i<0)return Be;if(r.has(i))return r.get(i);const h=c++;r.set(i,h);for(const{key:d,fn:f}of a){const p=f(i);if(p)return n[h]=`["${d}",${s(p)}]`,h}let u="";if(tt(i))u=Se(i);else{const d=rn(i);switch(d){case"Number":case"String":case"Boolean":u=`["Object",${Se(i)}]`;break;case"BigInt":u=`["BigInt",${i}]`;break;case"Date":u=`["Date","${!isNaN(i.getDate())?i.toISOString():""}"]`;break;case"URL":u=`["URL",${C(i.toString())}]`;break;case"URLSearchParams":u=`["URLSearchParams",${C(i.toString())}]`;break;case"RegExp":const{source:p,flags:v}=i;u=v?`["RegExp",${C(p)},"${v}"]`:`["RegExp",${C(p)}]`;break;case"Array":u="[";for(let g=0;g<i.length;g+=1)g>0&&(u+=","),g in i?(o.push(`[${g}]`),u+=s(i[g]),o.pop()):u+=mt;u+="]";break;case"Set":u='["Set"';for(const g of i)u+=`,${s(g)}`;u+="]";break;case"Map":u='["Map"';for(const[g,m]of i)o.push(`.get(${tt(g)?Se(g):"..."})`),u+=`,${s(g)},${s(m)}`,o.pop();u+="]";break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const g=i;u='["'+d+'",'+s(g.buffer);const m=i.byteOffset,O=m+i.byteLength;if(m>0||O!==g.buffer.byteLength){const k=+/(\d+)/.exec(d)[1]/8;u+=`,${m/k},${O/k}`}u+="]";break}case"ArrayBuffer":{u=`["ArrayBuffer","${cn(i)}"]`;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":u=`["${d}",${C(i.toString())}]`;break;default:if(!nn(i))throw new Ae("Cannot stringify arbitrary non-POJOs",o);if(on(i).length>0)throw new Ae("Cannot stringify POJOs with symbolic keys",o);if(Object.getPrototypeOf(i)===null){u='["null"';for(const g in i)o.push(nt(g)),u+=`,${C(g)},${s(i[g])}`,o.pop();u+="]"}else{u="{";let g=!1;for(const m in i)g&&(u+=","),g=!0,o.push(nt(m)),u+=`${C(m)}:${s(i[m])}`,o.pop();u+="}"}}}return n[h]=u,h}const l=s(e);return l<0?`${l}`:`[${n.join(",")}]`}function Se(e){const t=typeof e;return t==="string"?C(e):e instanceof String?C(e.toString()):e===void 0?De.toString():e===0&&1/e<0?Be.toString():t==="bigint"?`["BigInt","${e}"]`:String(e)}const bt=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...bt];const hn=new Set([...bt]);[...hn];function pn(e){return e.filter(t=>t!=null)}const gn="x-sveltekit-invalidated",mn="x-sveltekit-trailing-slash";function yn(e,t){const n=Object.fromEntries(Object.entries(t).map(([r,a])=>[r,a.encode]));return dn(e,n)}function Yn(e,t){if(e===void 0)return"";const n=yn(e,t),r=new TextEncoder().encode(n);return Ht(r).replaceAll("=","").replaceAll("+","-").replaceAll("/","_")}function se(e){return e instanceof pe||e instanceof je?e.status:500}function _n(e){return e instanceof je?e.text:"Internal Error"}let R,X,ke;const wn=We.toString().includes("$$")||/function \w+\(\) \{\}/.test(We.toString());wn?(R={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},X={current:null},ke={current:!1}):(R=new class{#e=I({});get data(){return P(this.#e)}set data(t){L(this.#e,t)}#t=I(null);get form(){return P(this.#t)}set form(t){L(this.#t,t)}#n=I(null);get error(){return P(this.#n)}set error(t){L(this.#n,t)}#r=I({});get params(){return P(this.#r)}set params(t){L(this.#r,t)}#a=I({id:null});get route(){return P(this.#a)}set route(t){L(this.#a,t)}#o=I({});get state(){return P(this.#o)}set state(t){L(this.#o,t)}#s=I(-1);get status(){return P(this.#s)}set status(t){L(this.#s,t)}#i=I(new URL("https://example.com"));get url(){return P(this.#i)}set url(t){L(this.#i,t)}},X=new class{#e=I(null);get current(){return P(this.#e)}set current(t){L(this.#e,t)}},ke=new class{#e=I(!1);get current(){return P(this.#e)}set current(t){L(this.#e,t)}},pt.v=()=>ke.current=!0);function At(e){Object.assign(R,e)}const vn="/__data.json",bn=".html__data.json";function An(e){return e.endsWith(".html")?e.replace(/\.html$/,bn):e.replace(/\/$/,"")+vn}const rt={spanContext(){return Sn},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},Sn={traceId:"",spanId:"",traceFlags:0},{tick:kn}=jt,En=new Set(["icon","shortcut icon","apple-touch-icon"]),B=ct(ft)??{},Z=ct(lt)??{},N={url:et({}),page:et({}),navigating:$e(null),updated:en()};function Me(e){B[e]=ge()}function Rn(e,t){let n=e+1;for(;B[n];)delete B[n],n+=1;for(n=t+1;Z[n];)delete Z[n],n+=1}function Y(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function St(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(U||"/");e&&await e.update()}}function Oe(){}let qe,Ue,ie,j,Ie,S;const ce=[],le=[];let $=null;const ae=new Map,kt=new Set,Tn=new Set,K=new Set;let _={branch:[],error:null,url:null},Fe=!1,fe=!1,at=!0,Q=!1,H=!1,Et=!1,te=!1,Ve,E,T,x;const z=new Set;let Ee;const ue=new Map;async function zn(e,t,n){globalThis.__sveltekit_9qlk8i?.data&&globalThis.__sveltekit_9qlk8i.data,document.URL!==location.href&&(location.href=location.href),S=e,await e.hooks.init?.(),qe=Xt(e),j=document.documentElement,Ie=t,Ue=e.nodes[0],ie=e.nodes[1],Ue(),ie(),E=history.state?.[F],T=history.state?.[W],E||(E=T=Date.now(),history.replaceState({...history.state,[F]:E,[W]:T},""));const r=B[E];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await Nn(Ie,n)):(await V({type:"enter",url:Ne(S.hash?Bn(new URL(location.href)):location.href),replace_state:!0}),a()),xn()}async function On(e=!0,t=!0){if(await(Ee||=Promise.resolve()),!Ee)return;Ee=null;const n=x={},r=await ne(_.url,!0);if($=null,te&&ue.forEach(({resource:a})=>{a.refresh?.()}),e){const a=R.state,o=r&&await Je(r);if(!o||n!==x)return;if(o.type==="redirect")return Ge(new URL(o.location,_.url).href,{replaceState:!0},1,n);t||(o.props.page.state=a),At(o.props.page),_=o.state,Pe(),Ve.$set(o.props)}else Pe();await Promise.all([...ue.values()].map(({resource:a})=>a)).catch(Oe)}function Pe(){ce.length=0,te=!1}function Rt(e){le.some(t=>t?.snapshot)&&(Z[e]=le.map(t=>t?.snapshot?.capture()))}function Tt(e){Z[e]?.forEach((t,n)=>{le[n]?.snapshot?.restore(t)})}function ot(){Me(E),Ze(ft,B),Rt(T),Ze(lt,Z)}async function Ge(e,t,n,r){let a;t.invalidateAll&&($=null),await V({type:"goto",url:Ne(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(te=!0,a=[...ue.keys()]),t.invalidate&&t.invalidate.forEach(jn)}}),t.invalidateAll&&Xe().then(Xe).then(()=>{ue.forEach(({resource:o},c)=>{a?.includes(c)&&o.refresh?.()})})}async function Un(e){if(e.id!==$?.id){const t={};z.add(t),$={id:e.id,token:t,promise:Je({...e,preload:t}).then(n=>(z.delete(t),n.type==="loaded"&&n.state.error&&($=null),n))}}return $.promise}async function Re(e){const t=(await ne(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function Ot(e,t,n){_=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(R,e.props.page),Ve=new S.root({target:t,props:{...e.props,stores:N,components:le},hydrate:n,sync:!1}),Tt(T),n){const a={from:null,to:{params:_.params,route:{id:_.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};K.forEach(o=>o(a))}fe=!0}function de({url:e,params:t,branch:n,status:r,error:a,route:o,form:c}){let s="never";if(U&&(e.pathname===U||e.pathname===U+"/"))s="always";else for(const f of n)f?.slash!==void 0&&(s=f.slash);e.pathname=Mt(e.pathname,s),e.search=e.search;const l={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:pn(n).map(f=>f.node.component),page:ze(R)}};c!==void 0&&(l.props.form=c);let i={},h=!R,u=0;for(let f=0;f<Math.max(n.length,_.branch.length);f+=1){const p=n[f],v=_.branch[f];p?.data!==v?.data&&(h=!0),p&&(i={...i,...p.data},h&&(l.props[`data_${u}`]=i),u+=1)}return(!_.url||e.href!==_.url.href||_.error!==a||c!==void 0&&c!==R.form||h)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:r,url:new URL(e),form:c??null,data:h?i:R.data}),l}async function Ye({loader:e,parent:t,url:n,params:r,route:a,server_data_node:o}){let c=null,s=!0;const l={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},i=await e();if(i.universal?.load){let h=function(...d){for(const f of d){const{href:p}=new URL(f,n);l.dependencies.add(p)}};const u={tracing:{enabled:!1,root:rt,current:rt},route:new Proxy(a,{get:(d,f)=>(s&&(l.route=!0),d[f])}),params:new Proxy(r,{get:(d,f)=>(s&&l.params.add(f),d[f])}),data:o?.data??null,url:Vt(n,()=>{s&&(l.url=!0)},d=>{s&&l.search_params.add(d)},S.hash),async fetch(d,f){d instanceof Request&&(f={body:d.method==="GET"||d.method==="HEAD"?void 0:await d.blob(),cache:d.cache,credentials:d.credentials,headers:[...d.headers].length>0?d?.headers:void 0,integrity:d.integrity,keepalive:d.keepalive,method:d.method,mode:d.mode,redirect:d.redirect,referrer:d.referrer,referrerPolicy:d.referrerPolicy,signal:d.signal,...f});const{resolved:p,promise:v}=Ut(d,f,n);return s&&h(p.href),v},setHeaders:()=>{},depends:h,parent(){return s&&(l.parent=!0),t()},untrack(d){s=!1;try{return d()}finally{s=!0}}};c=await i.universal.load.call(null,u)??null}return{node:i,loader:e,server:o,universal:i.universal?.load?{type:"data",data:c,uses:l}:null,data:c??o?.data??null,slash:i.universal?.trailingSlash??o?.slash}}function Ut(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const o=fe?Wt(r,a.href,t):zt(r,t);return{resolved:a,promise:o}}function st(e,t,n,r,a,o){if(te)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const c of a.search_params)if(r.has(c))return!0;for(const c of a.params)if(o[c]!==_.params[c])return!0;for(const c of a.dependencies)if(ce.some(s=>s(new URL(c))))return!0;return!1}function He(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function In(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),o=t.searchParams.getAll(r);a.every(c=>o.includes(c))&&o.every(c=>a.includes(c))&&n.delete(r)}return n}function it({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:ze(R),constructors:[]}}}async function Je({id:e,invalidating:t,url:n,params:r,route:a,preload:o}){if($?.id===e)return z.delete($.token),$.promise;const{errors:c,layouts:s,leaf:l}=a,i=[...s,l];c.forEach(w=>w?.().catch(()=>{})),i.forEach(w=>w?.[1]().catch(()=>{}));let h=null;const u=_.url?e!==he(_.url):!1,d=_.route?a.id!==_.route.id:!1,f=In(_.url,n);let p=!1;const v=i.map((w,y)=>{const b=_.branch[y],A=!!w?.[0]&&(b?.loader!==w[1]||st(p,d,u,f,b.server?.uses,r));return A&&(p=!0),A});if(v.some(Boolean)){try{h=await Lt(n,v)}catch(w){const y=await G(w,{url:n,params:r,route:{id:e}});return z.has(o)?it({error:y,url:n,params:r,route:a}):ye({status:se(w),error:y,url:n,route:a})}if(h.type==="redirect")return h}const g=h?.nodes;let m=!1;const O=i.map(async(w,y)=>{if(!w)return;const b=_.branch[y],A=g?.[y];if((!A||A.type==="skip")&&w[1]===b?.loader&&!st(m,d,u,f,b.universal?.uses,r))return b;if(m=!0,A?.type==="error")throw A;return Ye({loader:w[1],url:n,params:r,route:a,parent:async()=>{const _e={};for(let we=0;we<y;we+=1)Object.assign(_e,(await O[we])?.data);return _e},server_data_node:He(A===void 0&&w[0]?{type:"skip"}:A??null,w[0]?b?.server:void 0)})});for(const w of O)w.catch(()=>{});const k=[];for(let w=0;w<i.length;w+=1)if(i[w])try{k.push(await O[w])}catch(y){if(y instanceof Ce)return{type:"redirect",location:y.location};if(z.has(o))return it({error:await G(y,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let b=se(y),A;if(g?.includes(y))b=y.status??b,A=y.error;else if(y instanceof pe)A=y.body;else{if(await N.updated.check())return await St(),await Y(n);A=await G(y,{params:r,url:n,route:{id:a.id}})}const re=await Pn(w,k,c);return re?de({url:n,params:r,branch:k.slice(0,re.idx).concat(re.node),status:b,error:A,route:a}):await Pt(n,{id:a.id},A,b)}else k.push(void 0);return de({url:n,params:r,branch:k,status:200,error:null,route:a,form:t?void 0:null})}async function Pn(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function ye({status:e,error:t,url:n,route:r}){const a={};let o=null;if(S.server_loads[0]===0)try{const s=await Lt(n,[!0]);if(s.type!=="data"||s.nodes[0]&&s.nodes[0].type!=="data")throw 0;o=s.nodes[0]??null}catch{(n.origin!==ee||n.pathname!==location.pathname||Fe)&&await Y(n)}try{const s=await Ye({loader:Ue,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:He(o)}),l={node:await ie(),loader:ie,universal:null,server:null,data:null};return de({url:n,params:a,branch:[s,l],status:e,error:t,route:null})}catch(s){if(s instanceof Ce)return Ge(new URL(s.location,location.href),{},0);throw s}}async function Ln(e){const t=e.href;if(ae.has(t))return ae.get(t);let n;try{const r=(async()=>{let a=await S.hooks.reroute({url:new URL(e),fetch:async(o,c)=>Ut(o,c,e).promise})??e;if(typeof a=="string"){const o=new URL(e);S.hash?o.hash=a:o.pathname=a,a=o}return a})();ae.set(t,r),n=await r}catch{ae.delete(t);return}return n}async function ne(e,t){if(e&&!me(e,U,S.hash)){const n=await Ln(e);if(!n)return;const r=$n(n);for(const a of qe){const o=a.exec(r);if(o)return{id:he(e),invalidating:t,route:a,params:Ft(o),url:e}}}}function $n(e){return qt(S.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(U.length))||"/"}function he(e){return(S.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function It({url:e,type:t,intent:n,delta:r,event:a}){let o=!1;const c=Ke(_,n,e,t);r!==void 0&&(c.navigation.delta=r),a!==void 0&&(c.navigation.event=a);const s={...c.navigation,cancel:()=>{o=!0,c.reject(new Error("navigation cancelled"))}};return Q||kt.forEach(l=>l(s)),o?null:c}async function V({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:o,state:c={},redirect_count:s=0,nav_token:l={},accept:i=Oe,block:h=Oe,event:u}){const d=x;x=l;const f=await ne(t,!1),p=e==="enter"?Ke(_,f,t,e):It({url:t,type:e,delta:n?.delta,intent:f,event:u});if(!p){h(),x===l&&(x=d);return}const v=E,g=T;i(),Q=!0,fe&&p.navigation.type!=="enter"&&N.navigating.set(X.current=p.navigation);let m=f&&await Je(f);if(!m){if(me(t,U,S.hash))return await Y(t,o);m=await Pt(t,{id:null},await G(new je(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,o)}if(t=f?.url||t,x!==l)return p.reject(new Error("navigation aborted")),!1;if(m.type==="redirect"){if(s<20){await V({type:e,url:new URL(m.location,t),popped:n,keepfocus:r,noscroll:a,replace_state:o,state:c,redirect_count:s+1,nav_token:l}),p.fulfil(void 0);return}m=await ye({status:500,error:await G(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else m.props.page.status>=400&&await N.updated.check()&&(await St(),await Y(t,o));if(Pe(),Me(v),Rt(g),m.props.page.url.pathname!==t.pathname&&(t.pathname=m.props.page.url.pathname),c=n?n.state:c,!n){const y=o?0:1,b={[F]:E+=y,[W]:T+=y,[ut]:c};(o?history.replaceState:history.pushState).call(history,b,"",t),o||Rn(E,T)}if($=null,m.props.page.state=c,fe){const y=(await Promise.all(Array.from(Tn,b=>b(p.navigation)))).filter(b=>typeof b=="function");if(y.length>0){let b=function(){y.forEach(A=>{K.delete(A)})};y.push(b),y.forEach(A=>{K.add(A)})}_=m.state,m.props.page&&(m.props.page.url=t),Ve.$set(m.props),At(m.props.page),Et=!0}else Ot(m,Ie,!1);const{activeElement:O}=document;await kn();let k=n?n.scroll:a?ge():null;if(at){const y=t.hash&&document.getElementById(Ct(t));if(k)scrollTo(k.x,k.y);else if(y){y.scrollIntoView();const{top:b,left:A}=y.getBoundingClientRect();k={x:pageXOffset+A,y:pageYOffset+b}}else scrollTo(0,0)}const w=document.activeElement!==O&&document.activeElement!==document.body;!r&&!w&&Dn(t,k),at=!0,m.props.page&&Object.assign(R,m.props.page),Q=!1,e==="popstate"&&Tt(T),p.fulfil(void 0),K.forEach(y=>y(p.navigation)),N.navigating.set(X.current=null)}async function Pt(e,t,n,r,a){return e.origin===ee&&e.pathname===location.pathname&&!Fe?await ye({status:r,error:n,url:e,route:t}):await Y(e,a)}function Cn(){let e,t,n;j.addEventListener("mousemove",s=>{const l=s.target;clearTimeout(e),e=setTimeout(()=>{o(l,D.hover)},20)});function r(s){s.defaultPrevented||o(s.composedPath()[0],D.tap)}j.addEventListener("mousedown",r),j.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(s=>{for(const l of s)l.isIntersecting&&(Re(new URL(l.target.href)),a.unobserve(l.target))},{threshold:0});async function o(s,l){const i=ht(s,j),h=i===t&&l>=n;if(!i||h)return;const{url:u,external:d,download:f}=Te(i,U,S.hash);if(d||f)return;const p=oe(i),v=u&&he(_.url)===he(u);if(!(p.reload||v))if(l<=p.preload_data){t=i,n=D.tap;const g=await ne(u,!1);if(!g)return;Un(g)}else l<=p.preload_code&&(t=i,n=l,Re(u))}function c(){a.disconnect();for(const s of j.querySelectorAll("a")){const{url:l,external:i,download:h}=Te(s,U,S.hash);if(i||h)continue;const u=oe(s);u.reload||(u.preload_code===D.viewport&&a.observe(s),u.preload_code===D.eager&&Re(l))}}K.add(c),c()}function G(e,t){if(e instanceof pe)return e.body;const n=se(e),r=_n(e);return S.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Wn(e,t={}){return e=new URL(Ne(e)),e.origin!==ee?Promise.reject(new Error("goto: invalid URL")):Ge(e,t,0)}function jn(e){if(typeof e=="function")ce.push(e);else{const{href:t}=new URL(e,location.href);ce.push(n=>n.href===t)}}function Xn(){return te=!0,On()}function xn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(ot(),!Q){const r=Ke(_,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};kt.forEach(o=>o(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ot()}),navigator.connection?.saveData||Cn(),j.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=ht(t.composedPath()[0],j);if(!n)return;const{url:r,external:a,target:o,download:c}=Te(n,U,S.hash);if(!r)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const s=oe(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||c)return;const[i,h]=(S.hash?r.hash.replace(/^#/,""):r.href).split("#"),u=i===be(location);if(a||s.reload&&(!u||!h)){It({url:r,type:"link",event:t})?Q=!0:t.preventDefault();return}if(h!==void 0&&u){const[,d]=_.url.href.split("#");if(d===h){if(t.preventDefault(),h===""||h==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const f=n.ownerDocument.getElementById(decodeURIComponent(h));f&&(f.scrollIntoView(),f.focus())}return}if(H=!0,Me(E),e(r),!s.replace_state)return;H=!1}t.preventDefault(),await new Promise(d=>{requestAnimationFrame(()=>{setTimeout(d,0)}),setTimeout(d,100)}),await V({type:"link",url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}),j.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const c=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(me(c,U,!1))return;const s=t.target,l=oe(s);if(l.reload)return;t.preventDefault(),t.stopPropagation();const i=new FormData(s,r);c.search=new URLSearchParams(i).toString(),V({type:"form",url:c,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??c.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Le){if(t.state?.[F]){const n=t.state[F];if(x={},n===E)return;const r=B[n],a=t.state[ut]??{},o=new URL(t.state[Qt]??location.href),c=t.state[W],s=_.url?be(location)===be(_.url):!1;if(c===T&&(Et||s)){a!==R.state&&(R.state=a),e(o),B[E]=ge(),r&&scrollTo(r.x,r.y),E=n;return}const i=n-E;await V({type:"popstate",url:o,popped:{state:a,scroll:r,delta:i},accept:()=>{E=n,T=c},block:()=>{history.go(-i)},nav_token:x,event:t})}else if(!H){const n=new URL(location.href);e(n),S.hash&&location.reload()}}}),addEventListener("hashchange",()=>{H&&(H=!1,history.replaceState({...history.state,[F]:++E,[W]:T},"",location.href))});for(const t of document.querySelectorAll("link"))En.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&N.navigating.set(X.current=null)});function e(t){_.url=R.url=t,N.page.set(ze(R)),N.page.notify()}}async function Nn(e,{status:t=200,error:n,node_ids:r,params:a,route:o,server_route:c,data:s,form:l}){Fe=!0;const i=new URL(location.href);let h;({params:a={},route:o={id:null}}=await ne(i,!1)||{}),h=qe.find(({id:f})=>f===o.id);let u,d=!0;try{const f=r.map(async(v,g)=>{const m=s[g];return m?.uses&&(m.uses=$t(m.uses)),Ye({loader:S.nodes[v],url:i,params:a,route:o,parent:async()=>{const O={};for(let k=0;k<g;k+=1)Object.assign(O,(await f[k]).data);return O},server_data_node:He(m)})}),p=await Promise.all(f);if(h){const v=h.layouts;for(let g=0;g<v.length;g++)v[g]||p.splice(g,0,void 0)}u=de({url:i,params:a,branch:p,status:t,error:n,form:l,route:h??null})}catch(f){if(f instanceof Ce){await Y(new URL(f.location,location.href));return}u=await ye({status:se(f),error:await G(f,{url:i,params:a,route:o}),url:i,route:o}),e.textContent="",d=!1}u.props.page&&(u.props.page.state={}),Ot(u,e,d)}async function Lt(e,t){const n=new URL(e);n.pathname=An(e.pathname),e.pathname.endsWith("/")&&n.searchParams.append(mn,"1"),n.searchParams.append(gn,t.map(o=>o?"1":"0").join(""));const r=window.fetch,a=await r(n.href,{});if(!a.ok){let o;throw a.headers.get("content-type")?.includes("application/json")?o=await a.json():a.status===404?o="Not Found":a.status===500&&(o="Internal Error"),new pe(a.status,o)}return new Promise(async o=>{const c=new Map,s=a.body.getReader();function l(h){return vt(h,{...S.decoders,Promise:u=>new Promise((d,f)=>{c.set(u,{fulfil:d,reject:f})})})}let i="";for(;;){const{done:h,value:u}=await s.read();if(h&&!i)break;for(i+=!u&&i?`
3
+ `:Yt.decode(u,{stream:!0});;){const d=i.indexOf(`
4
+ `);if(d===-1)break;const f=JSON.parse(i.slice(0,d));if(i=i.slice(d+1),f.type==="redirect")return o(f);if(f.type==="data")f.nodes?.forEach(p=>{p?.type==="data"&&(p.uses=$t(p.uses),p.data=l(p.data))}),o(f);else if(f.type==="chunk"){const{id:p,data:v,error:g}=f,m=c.get(p);c.delete(p),g?m.reject(l(g)):m.fulfil(l(v))}}}})}function $t(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Le=!1;function Dn(e,t=null){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=Ct(e);if(r&&document.getElementById(r)){const{x:o,y:c}=t??ge();setTimeout(()=>{const s=history.state;Le=!0,location.replace(`#${r}`),S.hash&&location.replace(e.hash),history.replaceState(s,"",e.hash),scrollTo(o,c),Le=!1})}else{const o=document.body,c=o.getAttribute("tabindex");o.tabIndex=-1,o.focus({preventScroll:!0,focusVisible:!1}),c!==null?o.setAttribute("tabindex",c):o.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const o=[];for(let c=0;c<a.rangeCount;c+=1)o.push(a.getRangeAt(c));setTimeout(()=>{if(a.rangeCount===o.length){for(let c=0;c<a.rangeCount;c+=1){const s=o[c],l=a.getRangeAt(c);if(s.commonAncestorContainer!==l.commonAncestorContainer||s.startContainer!==l.startContainer||s.endContainer!==l.endContainer||s.startOffset!==l.startOffset||s.endOffset!==l.endOffset)return}a.removeAllRanges()}})}}}function Ke(e,t,n,r){let a,o;const c=new Promise((l,i)=>{a=l,o=i});return c.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:r,complete:c},fulfil:a,reject:o}}function ze(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Bn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function Ct(e){let t;if(S.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{pe as H,Gn as a,S as b,Yn as c,zn as d,Wn as g,Xn as i,Vn as l,R as p,ue as q,N as s,Zt as v};
@@ -1,2 +1,2 @@
1
- import{W as j,k as ur,v as U,l as T,as as lr,m as vr,i as K,af as or,T as dr,H as cr,q as P,w as V,C as O,at as _r,au as hr,A as F,V as pr,X as Ar,x as X,z as Er,y as W,av as y,aw as Nr,ax as x,I as rr,J as Tr,ay as B,az as mr,aA as Y,aB as er,aC as Ir,aD as gr,aE as Sr,aF as Mr,ac as Cr,B as ar,aG as fr,aH as wr,aI as Lr,aJ as br,aK as Hr,aL as Or,aM as Rr}from"./BaB-cr9N.js";import{b as Dr,r as xr}from"./CGIdus8b.js";function Jr(e,a){return a}function Br(e,a,r){for(var f=e.items,i=[],t=a.length,n=0;n<t;n++)gr(a[n].e,i,!0);var o=t>0&&i.length===0&&r!==null;if(o){var E=r.parentNode;Sr(E),E.append(r),f.clear(),S(e,a[0].prev,a[t-1].next)}Mr(i,()=>{for(var _=0;_<t;_++){var h=a[_];o||(f.delete(h.k),S(e,h.prev,h.next)),er(h.e,!o)}})}function Kr(e,a,r,f,i,t=null){var n=e,o={flags:a,items:new Map,first:null},E=(a&fr)!==0;if(E){var _=e;n=T?U(lr(_)):_.appendChild(j())}T&&vr();var h=null,C=!1,m=new Map,w=or(()=>{var c=r();return Nr(c)?c:c==null?[]:y(c)}),u,d;function v(){qr(d,u,o,m,n,i,a,f,r),t!==null&&(u.length===0?h?rr(h):h=F(()=>t(n)):h!==null&&Tr(h,()=>{h=null}))}ur(()=>{d??=Cr,u=K(w);var c=u.length;if(C&&c===0)return;C=c===0;let N=!1;if(T){var I=dr(n)===cr;I!==(c===0)&&(n=P(),U(n),V(!1),N=!0)}if(T){for(var M=null,p,s=0;s<c;s++){if(O.nodeType===_r&&O.data===hr){n=O,N=!0,V(!1);break}var l=u[s],A=f(l,s);p=J(O,o,M,null,l,A,s,i,a,r),o.items.set(A,p),M=p}c>0&&U(P())}if(T)c===0&&t&&(h=F(()=>t(n)));else if(pr()){var b=new Set,R=Ar;for(s=0;s<c;s+=1){l=u[s],A=f(l,s);var L=o.items.get(A)??m.get(A);L?(a&(B|x))!==0&&ir(L,l,s,a):(p=J(null,o,null,null,l,A,s,i,a,r,!0),m.set(A,p)),b.add(A)}for(const[g,D]of o.items)b.has(g)||R.skipped_effects.add(D.e);R.add_callback(v)}else v();N&&V(!0),K(w)}),T&&(n=O)}function qr(e,a,r,f,i,t,n,o,E){var _=(n&wr)!==0,h=(n&(B|x))!==0,C=a.length,m=r.items,w=r.first,u=w,d,v=null,c,N=[],I=[],M,p,s,l;if(_)for(l=0;l<C;l+=1)M=a[l],p=o(M,l),s=m.get(p),s!==void 0&&(s.a?.measure(),(c??=new Set).add(s));for(l=0;l<C;l+=1){if(M=a[l],p=o(M,l),s=m.get(p),s===void 0){var A=f.get(p);if(A!==void 0){f.delete(p),m.set(p,A);var b=v?v.next:u;S(r,v,A),S(r,A,b),z(A,b,i),v=A}else{var R=u?u.e.nodes_start:i;v=J(R,r,v,v===null?r.first:v.next,M,p,l,t,n,E)}m.set(p,v),N=[],I=[],u=v.next;continue}if(h&&ir(s,M,l,n),(s.e.f&Y)!==0&&(rr(s.e),_&&(s.a?.unfix(),(c??=new Set).delete(s))),s!==u){if(d!==void 0&&d.has(s)){if(N.length<I.length){var L=I[0],g;v=L.prev;var D=N[0],q=N[N.length-1];for(g=0;g<N.length;g+=1)z(N[g],L,i);for(g=0;g<I.length;g+=1)d.delete(I[g]);S(r,D.prev,q.next),S(r,v,D),S(r,q,L),u=L,v=q,l-=1,N=[],I=[]}else d.delete(s),z(s,u,i),S(r,s.prev,s.next),S(r,s,v===null?r.first:v.next),S(r,v,s),v=s;continue}for(N=[],I=[];u!==null&&u.k!==p;)(u.e.f&Y)===0&&(d??=new Set).add(u),I.push(u),u=u.next;if(u===null)continue;s=u}N.push(s),v=s,u=s.next}if(u!==null||d!==void 0){for(var H=d===void 0?[]:y(d);u!==null;)(u.e.f&Y)===0&&H.push(u),u=u.next;var G=H.length;if(G>0){var sr=(n&fr)!==0&&C===0?i:null;if(_){for(l=0;l<G;l+=1)H[l].a?.measure();for(l=0;l<G;l+=1)H[l].a?.fix()}Br(r,H,sr)}}_&&ar(()=>{if(c!==void 0)for(s of c)s.a?.apply()}),e.first=r.first&&r.first.e,e.last=v&&v.e;for(var tr of f.values())er(tr.e);f.clear()}function ir(e,a,r,f){(f&B)!==0&&X(e.v,a),(f&x)!==0?X(e.i,r):e.i=r}function J(e,a,r,f,i,t,n,o,E,_,h){var C=(E&B)!==0,m=(E&mr)===0,w=C?m?Er(i,!1,!1):W(i):i,u=(E&x)===0?n:W(n),d={i:u,v:w,k:t,a:null,e:null,prev:r,next:f};try{if(e===null){var v=document.createDocumentFragment();v.append(e=j())}return d.e=F(()=>o(e,w,u,_),T),d.e.prev=r&&r.e,d.e.next=f&&f.e,r===null?h||(a.first=d):(r.next=d,r.e.next=d.e),f!==null&&(f.prev=d,f.e.prev=d.e),d}finally{}}function z(e,a,r){for(var f=e.next?e.next.e.nodes_start:r,i=a?a.e.nodes_start:r,t=e.e.nodes_start;t!==null&&t!==f;){var n=Ir(t);i.before(t),t=n}}function S(e,a,r){a===null?e.first=r:(a.next=r,a.e.next=r&&r.e),r!==null&&(r.prev=a,r.e.prev=a&&a.e)}const Q=[...`
1
+ import{W as j,k as ur,v as U,l as T,as as lr,m as vr,i as K,af as or,T as dr,H as cr,q as P,w as V,C as O,at as _r,au as hr,A as F,V as pr,X as Ar,x as X,z as Er,y as W,av as y,aw as Nr,ax as x,I as rr,J as Tr,ay as B,az as mr,aA as Y,aB as er,aC as Ir,aD as gr,aE as Sr,aF as Mr,ac as Cr,B as ar,aG as fr,aH as wr,aI as Lr,aJ as br,aK as Hr,aL as Or,aM as Rr}from"./BaB-cr9N.js";import{b as Dr,r as xr}from"./uMNMODvc.js";function Jr(e,a){return a}function Br(e,a,r){for(var f=e.items,i=[],t=a.length,n=0;n<t;n++)gr(a[n].e,i,!0);var o=t>0&&i.length===0&&r!==null;if(o){var E=r.parentNode;Sr(E),E.append(r),f.clear(),S(e,a[0].prev,a[t-1].next)}Mr(i,()=>{for(var _=0;_<t;_++){var h=a[_];o||(f.delete(h.k),S(e,h.prev,h.next)),er(h.e,!o)}})}function Kr(e,a,r,f,i,t=null){var n=e,o={flags:a,items:new Map,first:null},E=(a&fr)!==0;if(E){var _=e;n=T?U(lr(_)):_.appendChild(j())}T&&vr();var h=null,C=!1,m=new Map,w=or(()=>{var c=r();return Nr(c)?c:c==null?[]:y(c)}),u,d;function v(){qr(d,u,o,m,n,i,a,f,r),t!==null&&(u.length===0?h?rr(h):h=F(()=>t(n)):h!==null&&Tr(h,()=>{h=null}))}ur(()=>{d??=Cr,u=K(w);var c=u.length;if(C&&c===0)return;C=c===0;let N=!1;if(T){var I=dr(n)===cr;I!==(c===0)&&(n=P(),U(n),V(!1),N=!0)}if(T){for(var M=null,p,s=0;s<c;s++){if(O.nodeType===_r&&O.data===hr){n=O,N=!0,V(!1);break}var l=u[s],A=f(l,s);p=J(O,o,M,null,l,A,s,i,a,r),o.items.set(A,p),M=p}c>0&&U(P())}if(T)c===0&&t&&(h=F(()=>t(n)));else if(pr()){var b=new Set,R=Ar;for(s=0;s<c;s+=1){l=u[s],A=f(l,s);var L=o.items.get(A)??m.get(A);L?(a&(B|x))!==0&&ir(L,l,s,a):(p=J(null,o,null,null,l,A,s,i,a,r,!0),m.set(A,p)),b.add(A)}for(const[g,D]of o.items)b.has(g)||R.skipped_effects.add(D.e);R.add_callback(v)}else v();N&&V(!0),K(w)}),T&&(n=O)}function qr(e,a,r,f,i,t,n,o,E){var _=(n&wr)!==0,h=(n&(B|x))!==0,C=a.length,m=r.items,w=r.first,u=w,d,v=null,c,N=[],I=[],M,p,s,l;if(_)for(l=0;l<C;l+=1)M=a[l],p=o(M,l),s=m.get(p),s!==void 0&&(s.a?.measure(),(c??=new Set).add(s));for(l=0;l<C;l+=1){if(M=a[l],p=o(M,l),s=m.get(p),s===void 0){var A=f.get(p);if(A!==void 0){f.delete(p),m.set(p,A);var b=v?v.next:u;S(r,v,A),S(r,A,b),z(A,b,i),v=A}else{var R=u?u.e.nodes_start:i;v=J(R,r,v,v===null?r.first:v.next,M,p,l,t,n,E)}m.set(p,v),N=[],I=[],u=v.next;continue}if(h&&ir(s,M,l,n),(s.e.f&Y)!==0&&(rr(s.e),_&&(s.a?.unfix(),(c??=new Set).delete(s))),s!==u){if(d!==void 0&&d.has(s)){if(N.length<I.length){var L=I[0],g;v=L.prev;var D=N[0],q=N[N.length-1];for(g=0;g<N.length;g+=1)z(N[g],L,i);for(g=0;g<I.length;g+=1)d.delete(I[g]);S(r,D.prev,q.next),S(r,v,D),S(r,q,L),u=L,v=q,l-=1,N=[],I=[]}else d.delete(s),z(s,u,i),S(r,s.prev,s.next),S(r,s,v===null?r.first:v.next),S(r,v,s),v=s;continue}for(N=[],I=[];u!==null&&u.k!==p;)(u.e.f&Y)===0&&(d??=new Set).add(u),I.push(u),u=u.next;if(u===null)continue;s=u}N.push(s),v=s,u=s.next}if(u!==null||d!==void 0){for(var H=d===void 0?[]:y(d);u!==null;)(u.e.f&Y)===0&&H.push(u),u=u.next;var G=H.length;if(G>0){var sr=(n&fr)!==0&&C===0?i:null;if(_){for(l=0;l<G;l+=1)H[l].a?.measure();for(l=0;l<G;l+=1)H[l].a?.fix()}Br(r,H,sr)}}_&&ar(()=>{if(c!==void 0)for(s of c)s.a?.apply()}),e.first=r.first&&r.first.e,e.last=v&&v.e;for(var tr of f.values())er(tr.e);f.clear()}function ir(e,a,r,f){(f&B)!==0&&X(e.v,a),(f&x)!==0?X(e.i,r):e.i=r}function J(e,a,r,f,i,t,n,o,E,_,h){var C=(E&B)!==0,m=(E&mr)===0,w=C?m?Er(i,!1,!1):W(i):i,u=(E&x)===0?n:W(n),d={i:u,v:w,k:t,a:null,e:null,prev:r,next:f};try{if(e===null){var v=document.createDocumentFragment();v.append(e=j())}return d.e=F(()=>o(e,w,u,_),T),d.e.prev=r&&r.e,d.e.next=f&&f.e,r===null?h||(a.first=d):(r.next=d,r.e.next=d.e),f!==null&&(f.prev=d,f.e.prev=d.e),d}finally{}}function z(e,a,r){for(var f=e.next?e.next.e.nodes_start:r,i=a?a.e.nodes_start:r,t=e.e.nodes_start;t!==null&&t!==f;){var n=Ir(t);i.before(t),t=n}}function S(e,a,r){a===null?e.first=r:(a.next=r,a.e.next=r&&r.e),r!==null&&(r.prev=a,r.e.prev=a&&a.e)}const Q=[...`
2
2
  \r\f \v\uFEFF`];function Gr(e,a,r){var f=e==null?"":""+e;if(a&&(f=f?f+" "+a:a),r){for(var i in r)if(r[i])f=f?f+" "+i:i;else if(f.length)for(var t=i.length,n=0;(n=f.indexOf(i,n))>=0;){var o=n+t;(n===0||Q.includes(f[n-1]))&&(o===f.length||Q.includes(f[o]))?f=(n===0?"":f.substring(0,n))+f.substring(o+1):n=o}}return f===""?null:f}function Z(e,a=!1){var r=a?" !important;":";",f="";for(var i in e){var t=e[i];t!=null&&t!==""&&(f+=" "+i+": "+t+r)}return f}function Pr(e,a){if(a){var r="",f,i;return Array.isArray(a)?(f=a[0],i=a[1]):f=a,f&&(r+=Z(f)),i&&(r+=Z(i,!0)),r=r.trim(),r===""?null:r}return String(e)}function Xr(e,a,r,f,i,t){var n=e.__className;if(T||n!==r||n===void 0){var o=Gr(r,f,t);(!T||o!==e.getAttribute("class"))&&(o==null?e.removeAttribute("class"):e.className=o),e.__className=r}else if(t&&i!==t)for(var E in t){var _=!!t[E];(i==null||_!==!!i[E])&&e.classList.toggle(E,_)}return t}const Ur=Symbol("is custom element"),Vr=Symbol("is html");function Wr(e){if(T){var a=!1,r=()=>{if(!a){if(a=!0,e.hasAttribute("value")){var f=e.value;$(e,"value",null),e.value=f}if(e.hasAttribute("checked")){var i=e.checked;$(e,"checked",null),e.checked=i}}};e.__on_r=r,ar(r),br()}}function Qr(e,a){var r=nr(e);r.value===(r.value=a??void 0)||e.value===a&&(a!==0||e.nodeName!=="PROGRESS")||(e.value=a??"")}function $(e,a,r,f){var i=nr(e);T&&(i[a]=e.getAttribute(a),a==="src"||a==="srcset"||a==="href"&&e.nodeName==="LINK")||i[a]!==(i[a]=r)&&(a==="loading"&&(e[Hr]=r),r==null?e.removeAttribute(a):typeof r!="string"&&Yr(e).includes(a)?e[a]=r:e.setAttribute(a,r))}function nr(e){return e.__attributes??={[Ur]:e.nodeName.includes("-"),[Vr]:e.namespaceURI===Lr}}var k=new Map;function Yr(e){var a=e.getAttribute("is")||e.nodeName,r=k.get(a);if(r)return r;k.set(a,r=[]);for(var f,i=e,t=Element.prototype;t!==i;){f=Rr(i);for(var n in f)f[n].set&&r.push(n);i=Or(i)}return r}function Zr(...e){return Dr+xr(e[0],e[1])}export{Wr as a,Xr as b,Qr as c,Kr as e,Jr as i,Zr as r,$ as s,Pr as t};
@@ -1 +1 @@
1
- import{aq as p,X as l,a7 as b,Q as w,P as k,l as x,ar as S,ao as m,M as g,i as q}from"./BaB-cr9N.js";import{b as E,a as j}from"./CGIdus8b.js";import{a as y,b as v,q as D,c as O,H as P,v as $}from"./DB3PPjLu.js";function N(e,a,o=a){var n=new WeakSet;p(e,"input",async r=>{var t=r?e.defaultValue:e.value;if(t=d(e)?u(t):t,o(t),l!==null&&n.add(l),await b(),t!==(t=a())){var c=e.selectionStart,s=e.selectionEnd;e.value=t??"",s!==null&&(e.selectionStart=c,e.selectionEnd=Math.min(s,e.value.length))}}),(x&&e.defaultValue!==e.value||w(a)==null&&e.value)&&(o(d(e)?u(e.value):e.value),l!==null&&n.add(l)),k(()=>{var r=a();if(e===document.activeElement){var t=S??l;if(n.has(t))return}d(e)&&r===u(e.value)||e.type==="date"&&!r&&!e.value||r!==e.value&&(e.value=r??"")})}function d(e){var a=e.type;return a==="number"||a==="range"}function u(e){return e===""?null:+e}function f(e){for(const a of e)"release"in a&&a.release()}function C(e,a=[]){const o=Object.entries(y(e,v.decoders));for(const[n,r]of o){const t=a.find(s=>s._key===n);t&&"release"in t&&t.release(),D.get(n)?.resource.set(r)}}function i(e){let a=g(0);const o=n=>{let r=[];m(a);const t=(async()=>{try{await Promise.resolve();const c=await fetch(`${E}/${j}/remote/${e}`,{method:"POST",body:JSON.stringify({payload:O(n,v.hooks.transport),refreshes:r.map(_=>_._key)}),headers:{"Content-Type":"application/json","x-sveltekit-pathname":location.pathname,"x-sveltekit-search":location.search}});if(!c.ok)throw f(r),new Error("Failed to execute remote function");const s=await c.json();if(s.type==="redirect")throw f(r),new Error("Redirects are not allowed in commands. Return a result instead and use goto on the client");if(s.type==="error")throw f(r),new P(s.status??500,s.error);return s.refreshes&&C(s.refreshes,r),y(s.result,v.decoders)}finally{m(a,-1)}})();return t.updates=(...c)=>(r=c,delete t.updates,t),t};return Object.defineProperty(o,"pending",{get:()=>q(a)}),o}const h=`sveltekit:${$}`;let H;(async()=>{if(typeof caches<"u")try{H=await caches.open(h);const e=await caches.keys();for(const a of e)a.startsWith("sveltekit:")&&a!==h&&await caches.delete(a)}catch(e){console.warn("Failed to initialize SvelteKit cache:",e)}})();const R=i("xxtqbu/addServer"),T=i("xxtqbu/deleteDocument"),V=i("xxtqbu/removeServer"),W=i("xxtqbu/updateDocument");export{R as a,N as b,T as d,V as r,W as u};
1
+ import{aq as p,X as l,a7 as b,Q as w,P as k,l as x,ar as S,ao as m,M as g,i as q}from"./BaB-cr9N.js";import{b as E,a as j}from"./uMNMODvc.js";import{a as y,b as v,q as D,c as O,H as P,v as $}from"./BzAcxkRZ.js";function N(e,a,o=a){var n=new WeakSet;p(e,"input",async r=>{var t=r?e.defaultValue:e.value;if(t=d(e)?u(t):t,o(t),l!==null&&n.add(l),await b(),t!==(t=a())){var c=e.selectionStart,s=e.selectionEnd;e.value=t??"",s!==null&&(e.selectionStart=c,e.selectionEnd=Math.min(s,e.value.length))}}),(x&&e.defaultValue!==e.value||w(a)==null&&e.value)&&(o(d(e)?u(e.value):e.value),l!==null&&n.add(l)),k(()=>{var r=a();if(e===document.activeElement){var t=S??l;if(n.has(t))return}d(e)&&r===u(e.value)||e.type==="date"&&!r&&!e.value||r!==e.value&&(e.value=r??"")})}function d(e){var a=e.type;return a==="number"||a==="range"}function u(e){return e===""?null:+e}function f(e){for(const a of e)"release"in a&&a.release()}function C(e,a=[]){const o=Object.entries(y(e,v.decoders));for(const[n,r]of o){const t=a.find(s=>s._key===n);t&&"release"in t&&t.release(),D.get(n)?.resource.set(r)}}function i(e){let a=g(0);const o=n=>{let r=[];m(a);const t=(async()=>{try{await Promise.resolve();const c=await fetch(`${E}/${j}/remote/${e}`,{method:"POST",body:JSON.stringify({payload:O(n,v.hooks.transport),refreshes:r.map(_=>_._key)}),headers:{"Content-Type":"application/json","x-sveltekit-pathname":location.pathname,"x-sveltekit-search":location.search}});if(!c.ok)throw f(r),new Error("Failed to execute remote function");const s=await c.json();if(s.type==="redirect")throw f(r),new Error("Redirects are not allowed in commands. Return a result instead and use goto on the client");if(s.type==="error")throw f(r),new P(s.status??500,s.error);return s.refreshes&&C(s.refreshes,r),y(s.result,v.decoders)}finally{m(a,-1)}})();return t.updates=(...c)=>(r=c,delete t.updates,t),t};return Object.defineProperty(o,"pending",{get:()=>q(a)}),o}const h=`sveltekit:${$}`;let H;(async()=>{if(typeof caches<"u")try{H=await caches.open(h);const e=await caches.keys();for(const a of e)a.startsWith("sveltekit:")&&a!==h&&await caches.delete(a)}catch(e){console.warn("Failed to initialize SvelteKit cache:",e)}})();const R=i("xxtqbu/addServer"),T=i("xxtqbu/deleteDocument"),V=i("xxtqbu/removeServer"),W=i("xxtqbu/updateDocument");export{R as a,N as b,T as d,V as r,W as u};