mastra 0.10.4-alpha.5 → 0.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-MKPHGZFU.js → chunk-DJA4WBIU.js} +8 -26
- package/dist/commands/create/create.js +1 -1
- package/dist/index.js +5 -3
- package/package.json +8 -8
- package/src/playground/dist/assets/{index-BMvNR-a6.js → index-BBWWH1sB.js} +1 -1
- package/src/playground/dist/assets/{index-AC5idYXx.js → index-BGyyA9lb.js} +1 -1
- package/src/playground/dist/assets/{index-BjEuuPvn.js → index-CExF9bT1.js} +4 -4
- package/src/playground/dist/index.html +1 -1
|
@@ -241,8 +241,9 @@ async function globalMCPIsAlreadyInstalled(editor) {
|
|
|
241
241
|
}
|
|
242
242
|
try {
|
|
243
243
|
const configContents = await readJSON(configPath);
|
|
244
|
+
if (!configContents) return false;
|
|
244
245
|
if (editor === "vscode") {
|
|
245
|
-
if (!configContents
|
|
246
|
+
if (!configContents.servers) return false;
|
|
246
247
|
const hasMastraMCP2 = Object.values(configContents.servers).some(
|
|
247
248
|
(server) => server?.args?.find((arg) => arg?.includes(`@mastra/mcp-docs-server`))
|
|
248
249
|
);
|
|
@@ -253,8 +254,7 @@ async function globalMCPIsAlreadyInstalled(editor) {
|
|
|
253
254
|
(server) => server?.args?.find((arg) => arg?.includes(`@mastra/mcp-docs-server`))
|
|
254
255
|
);
|
|
255
256
|
return hasMastraMCP;
|
|
256
|
-
} catch
|
|
257
|
-
console.error(e);
|
|
257
|
+
} catch {
|
|
258
258
|
return false;
|
|
259
259
|
}
|
|
260
260
|
}
|
|
@@ -812,7 +812,7 @@ var writeCodeSample = async (dirPath, component, llmProvider, importComponents)
|
|
|
812
812
|
}
|
|
813
813
|
};
|
|
814
814
|
var interactivePrompt = async () => {
|
|
815
|
-
p.intro(color2.inverse("Mastra Init"));
|
|
815
|
+
p.intro(color2.inverse(" Mastra Init "));
|
|
816
816
|
const mastraProject = await p.group(
|
|
817
817
|
{
|
|
818
818
|
directory: () => p.text({
|
|
@@ -820,20 +820,6 @@ var interactivePrompt = async () => {
|
|
|
820
820
|
placeholder: "src/",
|
|
821
821
|
defaultValue: "src/"
|
|
822
822
|
}),
|
|
823
|
-
components: () => p.multiselect({
|
|
824
|
-
message: "Choose components to install:",
|
|
825
|
-
options: [
|
|
826
|
-
{ value: "agents", label: "Agents", hint: "recommended" },
|
|
827
|
-
{
|
|
828
|
-
value: "workflows",
|
|
829
|
-
label: "Workflows"
|
|
830
|
-
}
|
|
831
|
-
]
|
|
832
|
-
}),
|
|
833
|
-
shouldAddTools: () => p.confirm({
|
|
834
|
-
message: "Add tools?",
|
|
835
|
-
initialValue: false
|
|
836
|
-
}),
|
|
837
823
|
llmProvider: () => p.select({
|
|
838
824
|
message: "Select default provider:",
|
|
839
825
|
options: [
|
|
@@ -861,10 +847,6 @@ var interactivePrompt = async () => {
|
|
|
861
847
|
}
|
|
862
848
|
return void 0;
|
|
863
849
|
},
|
|
864
|
-
addExample: () => p.confirm({
|
|
865
|
-
message: "Add example",
|
|
866
|
-
initialValue: false
|
|
867
|
-
}),
|
|
868
850
|
configureEditorWithDocsMCP: async () => {
|
|
869
851
|
const windsurfIsAlreadyInstalled = await globalMCPIsAlreadyInstalled(`windsurf`);
|
|
870
852
|
const cursorIsAlreadyInstalled = await globalMCPIsAlreadyInstalled(`cursor`);
|
|
@@ -948,9 +930,7 @@ This means the Mastra docs MCP server will be available in all your Windsurf pro
|
|
|
948
930
|
}
|
|
949
931
|
}
|
|
950
932
|
);
|
|
951
|
-
|
|
952
|
-
const mastraComponents = shouldAddTools ? [...components, "tools"] : components;
|
|
953
|
-
return { ...rest, components: mastraComponents };
|
|
933
|
+
return mastraProject;
|
|
954
934
|
};
|
|
955
935
|
var checkPkgJson = async () => {
|
|
956
936
|
const cwd = process.cwd();
|
|
@@ -1190,7 +1170,9 @@ var create = async (args2) => {
|
|
|
1190
1170
|
const result = await interactivePrompt();
|
|
1191
1171
|
await init({
|
|
1192
1172
|
...result,
|
|
1193
|
-
llmApiKey: result?.llmApiKey
|
|
1173
|
+
llmApiKey: result?.llmApiKey,
|
|
1174
|
+
components: ["agents", "tools", "workflows"],
|
|
1175
|
+
addExample: true
|
|
1194
1176
|
});
|
|
1195
1177
|
postCreate({ projectName });
|
|
1196
1178
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { create } from '../../chunk-
|
|
1
|
+
export { create } from '../../chunk-DJA4WBIU.js';
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#! /usr/bin/env node
|
|
2
2
|
import { PosthogAnalytics } from './chunk-7OXWUU2Q.js';
|
|
3
3
|
export { PosthogAnalytics } from './chunk-7OXWUU2Q.js';
|
|
4
|
-
import { DepsService, create, checkPkgJson, checkAndInstallCoreDeps, interactivePrompt, init, logger, FileService } from './chunk-
|
|
5
|
-
export { create } from './chunk-
|
|
4
|
+
import { DepsService, create, checkPkgJson, checkAndInstallCoreDeps, interactivePrompt, init, logger, FileService } from './chunk-DJA4WBIU.js';
|
|
5
|
+
export { create } from './chunk-DJA4WBIU.js';
|
|
6
6
|
import { Command } from 'commander';
|
|
7
7
|
import { config } from 'dotenv';
|
|
8
8
|
import { join, dirname } from 'path';
|
|
@@ -699,7 +699,9 @@ program.command("init").description("Initialize Mastra in your project").option(
|
|
|
699
699
|
const result = await interactivePrompt();
|
|
700
700
|
await init({
|
|
701
701
|
...result,
|
|
702
|
-
llmApiKey: result?.llmApiKey
|
|
702
|
+
llmApiKey: result?.llmApiKey,
|
|
703
|
+
components: ["agents", "tools", "workflows"],
|
|
704
|
+
addExample: true
|
|
703
705
|
});
|
|
704
706
|
return;
|
|
705
707
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mastra",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.5",
|
|
4
4
|
"license": "Elastic-2.0",
|
|
5
5
|
"description": "cli for mastra",
|
|
6
6
|
"type": "module",
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
"yocto-spinner": "^0.1.2",
|
|
58
58
|
"zod": "^3.25.56",
|
|
59
59
|
"zod-to-json-schema": "^3.24.5",
|
|
60
|
-
"@mastra/deployer": "^0.10.
|
|
61
|
-
"@mastra/mcp": "^0.10.3
|
|
62
|
-
"@mastra/loggers": "^0.10.2
|
|
60
|
+
"@mastra/deployer": "^0.10.5",
|
|
61
|
+
"@mastra/mcp": "^0.10.3",
|
|
62
|
+
"@mastra/loggers": "^0.10.2"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@microsoft/api-extractor": "^7.52.8",
|
|
@@ -77,10 +77,10 @@
|
|
|
77
77
|
"type-fest": "^4.37.0",
|
|
78
78
|
"typescript": "^5.8.2",
|
|
79
79
|
"vitest": "^3.2.2",
|
|
80
|
-
"@internal/lint": "0.0.
|
|
81
|
-
"@mastra/
|
|
82
|
-
"@mastra/
|
|
83
|
-
"@mastra/playground-ui": "5.1.
|
|
80
|
+
"@internal/lint": "0.0.12",
|
|
81
|
+
"@mastra/client-js": "0.10.4",
|
|
82
|
+
"@mastra/core": "0.10.5",
|
|
83
|
+
"@mastra/playground-ui": "5.1.5"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
86
|
"@mastra/core": "^0.10.2-alpha.0"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as ve,g as Lp}from"./index-BjEuuPvn.js";function Dp(e,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const n in a)if(n!=="default"&&!(n in e)){const i=Object.getOwnPropertyDescriptor(a,n);i&&Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>a[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Le,Lo;function xp(){if(Lo)return Le;Lo=1,Le=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},a=0;a<arguments.length;a++){var n=arguments[a];for(var i in n)e.call(n,i)&&(r[i]=n[i])}return r}return Le}var De,Do;function Ep(){if(Do)return De;Do=1,De=t;var e=t.prototype;e.space=null,e.normal={},e.property={};function t(r,a,n){this.property=r,this.normal=a,n&&(this.space=n)}return De}var xe,xo;function Mp(){if(xo)return xe;xo=1;var e=xp(),t=Ep();xe=r;function r(a){for(var n=a.length,i=[],o=[],s=-1,l,d;++s<n;)l=a[s],i.push(l.property),o.push(l.normal),d=l.space;return new t(e.apply(null,i),e.apply(null,o),d)}return xe}var Me,Mo;function fo(){if(Mo)return Me;Mo=1,Me=e;function e(t){return t.toLowerCase()}return Me}var Fe,Fo;function hp(){if(Fo)return Fe;Fo=1,Fe=t;var e=t.prototype;e.space=null,e.attribute=null,e.property=null,e.boolean=!1,e.booleanish=!1,e.overloadedBoolean=!1,e.number=!1,e.commaSeparated=!1,e.spaceSeparated=!1,e.commaOrSpaceSeparated=!1,e.mustUseProperty=!1,e.defined=!1;function t(r,a){this.property=r,this.attribute=a}return Fe}var Q={},Uo;function Eo(){if(Uo)return Q;Uo=1;var e=0;Q.boolean=t(),Q.booleanish=t(),Q.overloadedBoolean=t(),Q.number=t(),Q.spaceSeparated=t(),Q.commaSeparated=t(),Q.commaOrSpaceSeparated=t();function t(){return Math.pow(2,++e)}return Q}var Ue,Bo;function Sp(){if(Bo)return Ue;Bo=1;var e=hp(),t=Eo();Ue=n,n.prototype=new e,n.prototype.defined=!0;var r=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=r.length;function n(o,s,l,d){var u=-1,p;for(i(this,"space",d),e.call(this,o,s);++u<a;)p=r[u],i(this,p,(l&t[p])===t[p])}function i(o,s,l){l&&(o[s]=l)}return Ue}var Be,Po;function fe(){if(Po)return Be;Po=1;var e=fo(),t=Ep(),r=Sp();Be=a;function a(n){var i=n.space,o=n.mustUseProperty||[],s=n.attributes||{},l=n.properties,d=n.transform,u={},p={},m,h;for(m in l)h=new r(m,d(s,m),l[m],i),o.indexOf(m)!==-1&&(h.mustUseProperty=!0),u[m]=h,p[e(m)]=m,p[e(h.attribute)]=m;return new t(u,p,i)}return Be}var Pe,qo;function Fp(){if(qo)return Pe;qo=1;var e=fe();Pe=e({space:"xlink",transform:t,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function t(r,a){return"xlink:"+a.slice(5).toLowerCase()}return Pe}var qe,Go;function Up(){if(Go)return qe;Go=1;var e=fe();qe=e({space:"xml",transform:t,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function t(r,a){return"xml:"+a.slice(3).toLowerCase()}return qe}var Ge,$o;function Bp(){if($o)return Ge;$o=1,Ge=e;function e(t,r){return r in t?t[r]:r}return Ge}var $e,Ho;function yp(){if(Ho)return $e;Ho=1;var e=Bp();$e=t;function t(r,a){return e(r,a.toLowerCase())}return $e}var He,zo;function Pp(){if(zo)return He;zo=1;var e=fe(),t=yp();return He=e({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:t,properties:{xmlns:null,xmlnsXLink:null}}),He}var ze,Vo;function qp(){if(Vo)return ze;Vo=1;var e=Eo(),t=fe(),r=e.booleanish,a=e.number,n=e.spaceSeparated;ze=t({transform:i,properties:{ariaActiveDescendant:null,ariaAtomic:r,ariaAutoComplete:null,ariaBusy:r,ariaChecked:r,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:n,ariaCurrent:null,ariaDescribedBy:n,ariaDetails:null,ariaDisabled:r,ariaDropEffect:n,ariaErrorMessage:null,ariaExpanded:r,ariaFlowTo:n,ariaGrabbed:r,ariaHasPopup:null,ariaHidden:r,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:n,ariaLevel:a,ariaLive:null,ariaModal:r,ariaMultiLine:r,ariaMultiSelectable:r,ariaOrientation:null,ariaOwns:n,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:r,ariaReadOnly:r,ariaRelevant:null,ariaRequired:r,ariaRoleDescription:n,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:r,ariaSetSize:a,ariaSort:null,ariaValueMax:a,ariaValueMin:a,ariaValueNow:a,ariaValueText:null,role:null}});function i(o,s){return s==="role"?s:"aria-"+s.slice(4).toLowerCase()}return ze}var Ve,jo;function Gp(){if(jo)return Ve;jo=1;var e=Eo(),t=fe(),r=yp(),a=e.boolean,n=e.overloadedBoolean,i=e.booleanish,o=e.number,s=e.spaceSeparated,l=e.commaSeparated;return Ve=t({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:r,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:l,acceptCharset:s,accessKey:s,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:s,autoFocus:a,autoPlay:a,capture:a,charSet:null,checked:a,cite:null,className:s,cols:o,colSpan:null,content:null,contentEditable:i,controls:a,controlsList:s,coords:o|l,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:n,draggable:i,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:s,height:o,hidden:a,high:o,href:null,hrefLang:null,htmlFor:s,httpEquiv:s,id:null,imageSizes:null,imageSrcSet:l,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:s,itemRef:s,itemScope:a,itemType:s,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:o,manifest:null,max:null,maxLength:o,media:null,method:null,min:null,minLength:o,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:o,pattern:null,ping:s,placeholder:null,playsInline:a,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:s,required:a,reversed:a,rows:o,rowSpan:o,sandbox:s,scope:null,scoped:a,seamless:a,selected:a,shape:null,size:o,sizes:null,slot:null,span:o,spellCheck:i,src:null,srcDoc:null,srcLang:null,srcSet:l,start:o,step:null,style:null,tabIndex:o,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:i,width:o,wrap:null,align:null,aLink:null,archive:s,axis:null,background:null,bgColor:null,border:o,borderColor:null,bottomMargin:o,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:o,leftMargin:o,link:null,longDesc:null,lowSrc:null,marginHeight:o,marginWidth:o,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:o,rules:null,scheme:null,scrolling:i,standby:null,summary:null,text:null,topMargin:o,valueType:null,version:null,vAlign:null,vLink:null,vSpace:o,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:o,security:null,unselectable:null}}),Ve}var je,Wo;function $p(){if(Wo)return je;Wo=1;var e=Mp(),t=Fp(),r=Up(),a=Pp(),n=qp(),i=Gp();return je=e([r,t,a,n,i]),je}var We,Yo;function Hp(){if(Yo)return We;Yo=1;var e=fo(),t=Sp(),r=hp(),a="data";We=s;var n=/^data[-\w.:]+$/i,i=/-[a-z]/g,o=/[A-Z]/g;function s(m,h){var A=e(h),E=h,v=r;return A in m.normal?m.property[m.normal[A]]:(A.length>4&&A.slice(0,4)===a&&n.test(h)&&(h.charAt(4)==="-"?E=l(h):h=d(h),v=t),new v(E,h))}function l(m){var h=m.slice(5).replace(i,p);return a+h.charAt(0).toUpperCase()+h.slice(1)}function d(m){var h=m.slice(4);return i.test(h)?m:(h=h.replace(o,u),h.charAt(0)!=="-"&&(h="-"+h),a+h)}function u(m){return"-"+m.toLowerCase()}function p(m){return m.charAt(1).toUpperCase()}return We}var Ye,Ko;function zp(){if(Ko)return Ye;Ko=1,Ye=t;var e=/[#.]/g;function t(r,a){for(var n=r||"",i=a||"div",o={},s=0,l,d,u;s<n.length;)e.lastIndex=s,u=e.exec(n),l=n.slice(s,u?u.index:n.length),l&&(d?d==="#"?o.id=l:o.className?o.className.push(l):o.className=[l]:i=l,s+=l.length),u&&(d=u[0],s++);return{type:"element",tagName:i,properties:o,children:[]}}return Ye}var Se={},Xo;function Vp(){if(Xo)return Se;Xo=1,Se.parse=a,Se.stringify=n;var e="",t=" ",r=/[ \t\n\r\f]+/g;function a(i){var o=String(i||e).trim();return o===e?[]:o.split(r)}function n(i){return i.join(t).trim()}return Se}var ye={},Zo;function jp(){if(Zo)return ye;Zo=1,ye.parse=a,ye.stringify=n;var e=",",t=" ",r="";function a(i){for(var o=[],s=String(i||r),l=s.indexOf(e),d=0,u=!1,p;!u;)l===-1&&(l=s.length,u=!0),p=s.slice(d,l).trim(),(p||!u)&&o.push(p),d=l+1,l=s.indexOf(e,d);return o}function n(i,o){var s=o||{},l=s.padLeft===!1?r:t,d=s.padRight?t:r;return i[i.length-1]===r&&(i=i.concat(r)),i.join(d+e+l).trim()}return ye}var Ke,Qo;function Wp(){if(Qo)return Ke;Qo=1;var e=Hp(),t=fo(),r=zp(),a=Vp().parse,n=jp().parse;Ke=o;var i={}.hasOwnProperty;function o(A,E,v){var R=v?h(v):null;return b;function b(f,S){var c=r(f,E),T=Array.prototype.slice.call(arguments,2),_=c.tagName.toLowerCase(),y;if(c.tagName=R&&i.call(R,_)?R[_]:_,S&&s(S,c)&&(T.unshift(S),S=null),S)for(y in S)g(c.properties,y,S[y]);return d(c.children,T),c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}function g(f,S,c){var T,_,y;c==null||c!==c||(T=e(A,S),_=T.property,y=c,typeof y=="string"&&(T.spaceSeparated?y=a(y):T.commaSeparated?y=n(y):T.commaOrSpaceSeparated&&(y=a(n(y).join(" ")))),_==="style"&&typeof c!="string"&&(y=m(y)),_==="className"&&f.className&&(y=f.className.concat(y)),f[_]=u(T,_,y))}}function s(A,E){return typeof A=="string"||"length"in A||l(E.tagName,A)}function l(A,E){var v=E.type;return A==="input"||!v||typeof v!="string"?!1:typeof E.children=="object"&&"length"in E.children?!0:(v=v.toLowerCase(),A==="button"?v!=="menu"&&v!=="submit"&&v!=="reset"&&v!=="button":"value"in E)}function d(A,E){var v,R;if(typeof E=="string"||typeof E=="number"){A.push({type:"text",value:String(E)});return}if(typeof E=="object"&&"length"in E){for(v=-1,R=E.length;++v<R;)d(A,E[v]);return}if(typeof E!="object"||!("type"in E))throw new Error("Expected node, nodes, or string, got `"+E+"`");A.push(E)}function u(A,E,v){var R,b,g;if(typeof v!="object"||!("length"in v))return p(A,E,v);for(b=v.length,R=-1,g=[];++R<b;)g[R]=p(A,E,v[R]);return g}function p(A,E,v){var R=v;return A.number||A.positiveNumber?!isNaN(R)&&R!==""&&(R=Number(R)):(A.boolean||A.overloadedBoolean)&&typeof R=="string"&&(R===""||t(v)===t(E))&&(R=!0),R}function m(A){var E=[],v;for(v in A)E.push([v,A[v]].join(": "));return E.join("; ")}function h(A){for(var E=A.length,v=-1,R={},b;++v<E;)b=A[v],R[b.toLowerCase()]=b;return R}return Ke}var Xe,Jo;function Yp(){if(Jo)return Xe;Jo=1;var e=$p(),t=Wp(),r=t(e,"div");return r.displayName="html",Xe=r,Xe}var Ze,es;function Kp(){return es||(es=1,Ze=Yp()),Ze}const Xp="Æ",Zp="&",Qp="Á",Jp="Â",eg="À",tg="Å",rg="Ã",ag="Ä",ng="©",ig="Ç",og="Ð",sg="É",lg="Ê",ug="È",dg="Ë",cg=">",pg="Í",gg="Î",bg="Ì",mg="Ï",fg="<",Eg="Ñ",hg="Ó",Sg="Ô",yg="Ò",vg="Ø",Tg="Õ",Ag="Ö",Rg='"',_g="®",Ig="Þ",Ng="Ú",wg="Û",Cg="Ù",kg="Ü",Og="Ý",Lg="á",Dg="â",xg="´",Mg="æ",Fg="à",Ug="&",Bg="å",Pg="ã",qg="ä",Gg="¦",$g="ç",Hg="¸",zg="¢",Vg="©",jg="¤",Wg="°",Yg="÷",Kg="é",Xg="ê",Zg="è",Qg="ð",Jg="ë",eb="½",tb="¼",rb="¾",ab=">",nb="í",ib="î",ob="¡",sb="ì",lb="¿",ub="ï",db="«",cb="<",pb="¯",gb="µ",bb="·",mb=" ",fb="¬",Eb="ñ",hb="ó",Sb="ô",yb="ò",vb="ª",Tb="º",Ab="ø",Rb="õ",_b="ö",Ib="¶",Nb="±",wb="£",Cb='"',kb="»",Ob="®",Lb="§",Db="",xb="¹",Mb="²",Fb="³",Ub="ß",Bb="þ",Pb="×",qb="ú",Gb="û",$b="ù",Hb="¨",zb="ü",Vb="ý",jb="¥",Wb="ÿ",Yb={AElig:Xp,AMP:Zp,Aacute:Qp,Acirc:Jp,Agrave:eg,Aring:tg,Atilde:rg,Auml:ag,COPY:ng,Ccedil:ig,ETH:og,Eacute:sg,Ecirc:lg,Egrave:ug,Euml:dg,GT:cg,Iacute:pg,Icirc:gg,Igrave:bg,Iuml:mg,LT:fg,Ntilde:Eg,Oacute:hg,Ocirc:Sg,Ograve:yg,Oslash:vg,Otilde:Tg,Ouml:Ag,QUOT:Rg,REG:_g,THORN:Ig,Uacute:Ng,Ucirc:wg,Ugrave:Cg,Uuml:kg,Yacute:Og,aacute:Lg,acirc:Dg,acute:xg,aelig:Mg,agrave:Fg,amp:Ug,aring:Bg,atilde:Pg,auml:qg,brvbar:Gg,ccedil:$g,cedil:Hg,cent:zg,copy:Vg,curren:jg,deg:Wg,divide:Yg,eacute:Kg,ecirc:Xg,egrave:Zg,eth:Qg,euml:Jg,frac12:eb,frac14:tb,frac34:rb,gt:ab,iacute:nb,icirc:ib,iexcl:ob,igrave:sb,iquest:lb,iuml:ub,laquo:db,lt:cb,macr:pb,micro:gb,middot:bb,nbsp:mb,not:fb,ntilde:Eb,oacute:hb,ocirc:Sb,ograve:yb,ordf:vb,ordm:Tb,oslash:Ab,otilde:Rb,ouml:_b,para:Ib,plusmn:Nb,pound:wb,quot:Cb,raquo:kb,reg:Ob,sect:Lb,shy:Db,sup1:xb,sup2:Mb,sup3:Fb,szlig:Ub,thorn:Bb,times:Pb,uacute:qb,ucirc:Gb,ugrave:$b,uml:Hb,uuml:zb,yacute:Vb,yen:jb,yuml:Wb},Kb={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var Qe,ts;function vp(){if(ts)return Qe;ts=1,Qe=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=48&&r<=57}return Qe}var Je,rs;function Xb(){if(rs)return Je;rs=1,Je=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}return Je}var et,as;function Zb(){if(as)return et;as=1,et=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=97&&r<=122||r>=65&&r<=90}return et}var tt,ns;function Qb(){if(ns)return tt;ns=1;var e=Zb(),t=vp();tt=r;function r(a){return e(a)||t(a)}return tt}var rt,is;function Jb(){if(is)return rt;is=1;var e,t=59;rt=r;function r(a){var n="&"+a+";",i;return e=e||document.createElement("i"),e.innerHTML=n,i=e.textContent,i.charCodeAt(i.length-1)===t&&a!=="semi"||i===n?!1:i}return rt}var at,os;function em(){if(os)return at;os=1;var e=Yb,t=Kb,r=vp(),a=Xb(),n=Qb(),i=Jb();at=F;var o={}.hasOwnProperty,s=String.fromCharCode,l=Function.prototype,d={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},u=9,p=10,m=12,h=32,A=38,E=59,v=60,R=61,b=35,g=88,f=120,S=65533,c="named",T="hexadecimal",_="decimal",y={};y[T]=16,y[_]=10;var N={};N[c]=n,N[_]=r,N[T]=a;var I=1,O=2,P=3,z=4,V=5,Y=6,j=7,w={};w[I]="Named character references must be terminated by a semicolon",w[O]="Numeric character references must be terminated by a semicolon",w[P]="Named character references cannot be empty",w[z]="Numeric character references cannot be empty",w[V]="Named character references must be known",w[Y]="Numeric character references cannot be disallowed",w[j]="Numeric character references cannot be outside the permissible Unicode range";function F(C,k){var D={},W,H;k||(k={});for(H in d)W=k[H],D[H]=W??d[H];return(D.position.indent||D.position.start)&&(D.indent=D.position.indent||[],D.position=D.position.start),q(C,D)}function q(C,k){var D=k.additional,W=k.nonTerminated,H=k.text,le=k.reference,ce=k.warning,pe=k.textContext,ue=k.referenceContext,Ie=k.warningContext,te=k.position,kp=k.indent||[],Ne=C.length,J=0,Io=-1,re=te.column||1,No=te.line||1,ae="",we=[],de,Ce,ne,$,ee,U,x,K,Ee,ke,ie,ge,oe,Z,wo,be,he,X,B;for(typeof D=="string"&&(D=D.charCodeAt(0)),be=me(),K=ce?Op:l,J--,Ne++;++J<Ne;)if(ee===p&&(re=kp[Io]||1),ee=C.charCodeAt(J),ee===A){if(x=C.charCodeAt(J+1),x===u||x===p||x===m||x===h||x===A||x===v||x!==x||D&&x===D){ae+=s(ee),re++;continue}for(oe=J+1,ge=oe,B=oe,x===b?(B=++ge,x=C.charCodeAt(B),x===g||x===f?(Z=T,B=++ge):Z=_):Z=c,de="",ie="",$="",wo=N[Z],B--;++B<Ne&&(x=C.charCodeAt(B),!!wo(x));)$+=s(x),Z===c&&o.call(e,$)&&(de=$,ie=e[$]);ne=C.charCodeAt(B)===E,ne&&(B++,Ce=Z===c?i($):!1,Ce&&(de=$,ie=Ce)),X=1+B-oe,!ne&&!W||($?Z===c?(ne&&!ie?K(V,1):(de!==$&&(B=ge+de.length,X=1+B-ge,ne=!1),ne||(Ee=de?I:P,k.attribute?(x=C.charCodeAt(B),x===R?(K(Ee,X),ie=null):n(x)?ie=null:K(Ee,X)):K(Ee,X))),U=ie):(ne||K(O,X),U=parseInt($,y[Z]),M(U)?(K(j,X),U=s(S)):U in t?(K(Y,X),U=t[U]):(ke="",L(U)&&K(Y,X),U>65535&&(U-=65536,ke+=s(U>>>10|55296),U=56320|U&1023),U=ke+s(U))):Z!==c&&K(z,X)),U?(Co(),be=me(),J=B-1,re+=B-oe+1,we.push(U),he=me(),he.offset++,le&&le.call(ue,U,{start:be,end:he},C.slice(oe-1,B)),be=he):($=C.slice(oe-1,B),ae+=$,re+=$.length,J=B-1)}else ee===10&&(No++,Io++,re=0),ee===ee?(ae+=s(ee),re++):Co();return we.join("");function me(){return{line:No,column:re,offset:J+(te.offset||0)}}function Op(ko,Oo){var Oe=me();Oe.column+=Oo,Oe.offset+=Oo,ce.call(Ie,w[ko],Oe,ko)}function Co(){ae&&(we.push(ae),H&&H.call(pe,ae,{start:be,end:me()}),ae="")}}function M(C){return C>=55296&&C<=57343||C>1114111}function L(C){return C>=1&&C<=8||C===11||C>=13&&C<=31||C>=127&&C<=159||C>=64976&&C<=65007||(C&65535)===65535||(C&65535)===65534}return at}var nt={exports:{}},ss;function tm(){return ss||(ss=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
1
|
+
import{d as ve,g as Lp}from"./index-CExF9bT1.js";function Dp(e,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const n in a)if(n!=="default"&&!(n in e)){const i=Object.getOwnPropertyDescriptor(a,n);i&&Object.defineProperty(e,n,i.get?i:{enumerable:!0,get:()=>a[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Le,Lo;function xp(){if(Lo)return Le;Lo=1,Le=t;var e=Object.prototype.hasOwnProperty;function t(){for(var r={},a=0;a<arguments.length;a++){var n=arguments[a];for(var i in n)e.call(n,i)&&(r[i]=n[i])}return r}return Le}var De,Do;function Ep(){if(Do)return De;Do=1,De=t;var e=t.prototype;e.space=null,e.normal={},e.property={};function t(r,a,n){this.property=r,this.normal=a,n&&(this.space=n)}return De}var xe,xo;function Mp(){if(xo)return xe;xo=1;var e=xp(),t=Ep();xe=r;function r(a){for(var n=a.length,i=[],o=[],s=-1,l,d;++s<n;)l=a[s],i.push(l.property),o.push(l.normal),d=l.space;return new t(e.apply(null,i),e.apply(null,o),d)}return xe}var Me,Mo;function fo(){if(Mo)return Me;Mo=1,Me=e;function e(t){return t.toLowerCase()}return Me}var Fe,Fo;function hp(){if(Fo)return Fe;Fo=1,Fe=t;var e=t.prototype;e.space=null,e.attribute=null,e.property=null,e.boolean=!1,e.booleanish=!1,e.overloadedBoolean=!1,e.number=!1,e.commaSeparated=!1,e.spaceSeparated=!1,e.commaOrSpaceSeparated=!1,e.mustUseProperty=!1,e.defined=!1;function t(r,a){this.property=r,this.attribute=a}return Fe}var Q={},Uo;function Eo(){if(Uo)return Q;Uo=1;var e=0;Q.boolean=t(),Q.booleanish=t(),Q.overloadedBoolean=t(),Q.number=t(),Q.spaceSeparated=t(),Q.commaSeparated=t(),Q.commaOrSpaceSeparated=t();function t(){return Math.pow(2,++e)}return Q}var Ue,Bo;function Sp(){if(Bo)return Ue;Bo=1;var e=hp(),t=Eo();Ue=n,n.prototype=new e,n.prototype.defined=!0;var r=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],a=r.length;function n(o,s,l,d){var u=-1,p;for(i(this,"space",d),e.call(this,o,s);++u<a;)p=r[u],i(this,p,(l&t[p])===t[p])}function i(o,s,l){l&&(o[s]=l)}return Ue}var Be,Po;function fe(){if(Po)return Be;Po=1;var e=fo(),t=Ep(),r=Sp();Be=a;function a(n){var i=n.space,o=n.mustUseProperty||[],s=n.attributes||{},l=n.properties,d=n.transform,u={},p={},m,h;for(m in l)h=new r(m,d(s,m),l[m],i),o.indexOf(m)!==-1&&(h.mustUseProperty=!0),u[m]=h,p[e(m)]=m,p[e(h.attribute)]=m;return new t(u,p,i)}return Be}var Pe,qo;function Fp(){if(qo)return Pe;qo=1;var e=fe();Pe=e({space:"xlink",transform:t,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function t(r,a){return"xlink:"+a.slice(5).toLowerCase()}return Pe}var qe,Go;function Up(){if(Go)return qe;Go=1;var e=fe();qe=e({space:"xml",transform:t,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function t(r,a){return"xml:"+a.slice(3).toLowerCase()}return qe}var Ge,$o;function Bp(){if($o)return Ge;$o=1,Ge=e;function e(t,r){return r in t?t[r]:r}return Ge}var $e,Ho;function yp(){if(Ho)return $e;Ho=1;var e=Bp();$e=t;function t(r,a){return e(r,a.toLowerCase())}return $e}var He,zo;function Pp(){if(zo)return He;zo=1;var e=fe(),t=yp();return He=e({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:t,properties:{xmlns:null,xmlnsXLink:null}}),He}var ze,Vo;function qp(){if(Vo)return ze;Vo=1;var e=Eo(),t=fe(),r=e.booleanish,a=e.number,n=e.spaceSeparated;ze=t({transform:i,properties:{ariaActiveDescendant:null,ariaAtomic:r,ariaAutoComplete:null,ariaBusy:r,ariaChecked:r,ariaColCount:a,ariaColIndex:a,ariaColSpan:a,ariaControls:n,ariaCurrent:null,ariaDescribedBy:n,ariaDetails:null,ariaDisabled:r,ariaDropEffect:n,ariaErrorMessage:null,ariaExpanded:r,ariaFlowTo:n,ariaGrabbed:r,ariaHasPopup:null,ariaHidden:r,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:n,ariaLevel:a,ariaLive:null,ariaModal:r,ariaMultiLine:r,ariaMultiSelectable:r,ariaOrientation:null,ariaOwns:n,ariaPlaceholder:null,ariaPosInSet:a,ariaPressed:r,ariaReadOnly:r,ariaRelevant:null,ariaRequired:r,ariaRoleDescription:n,ariaRowCount:a,ariaRowIndex:a,ariaRowSpan:a,ariaSelected:r,ariaSetSize:a,ariaSort:null,ariaValueMax:a,ariaValueMin:a,ariaValueNow:a,ariaValueText:null,role:null}});function i(o,s){return s==="role"?s:"aria-"+s.slice(4).toLowerCase()}return ze}var Ve,jo;function Gp(){if(jo)return Ve;jo=1;var e=Eo(),t=fe(),r=yp(),a=e.boolean,n=e.overloadedBoolean,i=e.booleanish,o=e.number,s=e.spaceSeparated,l=e.commaSeparated;return Ve=t({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:r,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:l,acceptCharset:s,accessKey:s,action:null,allow:null,allowFullScreen:a,allowPaymentRequest:a,allowUserMedia:a,alt:null,as:null,async:a,autoCapitalize:null,autoComplete:s,autoFocus:a,autoPlay:a,capture:a,charSet:null,checked:a,cite:null,className:s,cols:o,colSpan:null,content:null,contentEditable:i,controls:a,controlsList:s,coords:o|l,crossOrigin:null,data:null,dateTime:null,decoding:null,default:a,defer:a,dir:null,dirName:null,disabled:a,download:n,draggable:i,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:a,formTarget:null,headers:s,height:o,hidden:a,high:o,href:null,hrefLang:null,htmlFor:s,httpEquiv:s,id:null,imageSizes:null,imageSrcSet:l,inputMode:null,integrity:null,is:null,isMap:a,itemId:null,itemProp:s,itemRef:s,itemScope:a,itemType:s,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:a,low:o,manifest:null,max:null,maxLength:o,media:null,method:null,min:null,minLength:o,multiple:a,muted:a,name:null,nonce:null,noModule:a,noValidate:a,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:a,optimum:o,pattern:null,ping:s,placeholder:null,playsInline:a,poster:null,preload:null,readOnly:a,referrerPolicy:null,rel:s,required:a,reversed:a,rows:o,rowSpan:o,sandbox:s,scope:null,scoped:a,seamless:a,selected:a,shape:null,size:o,sizes:null,slot:null,span:o,spellCheck:i,src:null,srcDoc:null,srcLang:null,srcSet:l,start:o,step:null,style:null,tabIndex:o,target:null,title:null,translate:null,type:null,typeMustMatch:a,useMap:null,value:i,width:o,wrap:null,align:null,aLink:null,archive:s,axis:null,background:null,bgColor:null,border:o,borderColor:null,bottomMargin:o,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:a,declare:a,event:null,face:null,frame:null,frameBorder:null,hSpace:o,leftMargin:o,link:null,longDesc:null,lowSrc:null,marginHeight:o,marginWidth:o,noResize:a,noHref:a,noShade:a,noWrap:a,object:null,profile:null,prompt:null,rev:null,rightMargin:o,rules:null,scheme:null,scrolling:i,standby:null,summary:null,text:null,topMargin:o,valueType:null,version:null,vAlign:null,vLink:null,vSpace:o,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:a,disableRemotePlayback:a,prefix:null,property:null,results:o,security:null,unselectable:null}}),Ve}var je,Wo;function $p(){if(Wo)return je;Wo=1;var e=Mp(),t=Fp(),r=Up(),a=Pp(),n=qp(),i=Gp();return je=e([r,t,a,n,i]),je}var We,Yo;function Hp(){if(Yo)return We;Yo=1;var e=fo(),t=Sp(),r=hp(),a="data";We=s;var n=/^data[-\w.:]+$/i,i=/-[a-z]/g,o=/[A-Z]/g;function s(m,h){var A=e(h),E=h,v=r;return A in m.normal?m.property[m.normal[A]]:(A.length>4&&A.slice(0,4)===a&&n.test(h)&&(h.charAt(4)==="-"?E=l(h):h=d(h),v=t),new v(E,h))}function l(m){var h=m.slice(5).replace(i,p);return a+h.charAt(0).toUpperCase()+h.slice(1)}function d(m){var h=m.slice(4);return i.test(h)?m:(h=h.replace(o,u),h.charAt(0)!=="-"&&(h="-"+h),a+h)}function u(m){return"-"+m.toLowerCase()}function p(m){return m.charAt(1).toUpperCase()}return We}var Ye,Ko;function zp(){if(Ko)return Ye;Ko=1,Ye=t;var e=/[#.]/g;function t(r,a){for(var n=r||"",i=a||"div",o={},s=0,l,d,u;s<n.length;)e.lastIndex=s,u=e.exec(n),l=n.slice(s,u?u.index:n.length),l&&(d?d==="#"?o.id=l:o.className?o.className.push(l):o.className=[l]:i=l,s+=l.length),u&&(d=u[0],s++);return{type:"element",tagName:i,properties:o,children:[]}}return Ye}var Se={},Xo;function Vp(){if(Xo)return Se;Xo=1,Se.parse=a,Se.stringify=n;var e="",t=" ",r=/[ \t\n\r\f]+/g;function a(i){var o=String(i||e).trim();return o===e?[]:o.split(r)}function n(i){return i.join(t).trim()}return Se}var ye={},Zo;function jp(){if(Zo)return ye;Zo=1,ye.parse=a,ye.stringify=n;var e=",",t=" ",r="";function a(i){for(var o=[],s=String(i||r),l=s.indexOf(e),d=0,u=!1,p;!u;)l===-1&&(l=s.length,u=!0),p=s.slice(d,l).trim(),(p||!u)&&o.push(p),d=l+1,l=s.indexOf(e,d);return o}function n(i,o){var s=o||{},l=s.padLeft===!1?r:t,d=s.padRight?t:r;return i[i.length-1]===r&&(i=i.concat(r)),i.join(d+e+l).trim()}return ye}var Ke,Qo;function Wp(){if(Qo)return Ke;Qo=1;var e=Hp(),t=fo(),r=zp(),a=Vp().parse,n=jp().parse;Ke=o;var i={}.hasOwnProperty;function o(A,E,v){var R=v?h(v):null;return b;function b(f,S){var c=r(f,E),T=Array.prototype.slice.call(arguments,2),_=c.tagName.toLowerCase(),y;if(c.tagName=R&&i.call(R,_)?R[_]:_,S&&s(S,c)&&(T.unshift(S),S=null),S)for(y in S)g(c.properties,y,S[y]);return d(c.children,T),c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}function g(f,S,c){var T,_,y;c==null||c!==c||(T=e(A,S),_=T.property,y=c,typeof y=="string"&&(T.spaceSeparated?y=a(y):T.commaSeparated?y=n(y):T.commaOrSpaceSeparated&&(y=a(n(y).join(" ")))),_==="style"&&typeof c!="string"&&(y=m(y)),_==="className"&&f.className&&(y=f.className.concat(y)),f[_]=u(T,_,y))}}function s(A,E){return typeof A=="string"||"length"in A||l(E.tagName,A)}function l(A,E){var v=E.type;return A==="input"||!v||typeof v!="string"?!1:typeof E.children=="object"&&"length"in E.children?!0:(v=v.toLowerCase(),A==="button"?v!=="menu"&&v!=="submit"&&v!=="reset"&&v!=="button":"value"in E)}function d(A,E){var v,R;if(typeof E=="string"||typeof E=="number"){A.push({type:"text",value:String(E)});return}if(typeof E=="object"&&"length"in E){for(v=-1,R=E.length;++v<R;)d(A,E[v]);return}if(typeof E!="object"||!("type"in E))throw new Error("Expected node, nodes, or string, got `"+E+"`");A.push(E)}function u(A,E,v){var R,b,g;if(typeof v!="object"||!("length"in v))return p(A,E,v);for(b=v.length,R=-1,g=[];++R<b;)g[R]=p(A,E,v[R]);return g}function p(A,E,v){var R=v;return A.number||A.positiveNumber?!isNaN(R)&&R!==""&&(R=Number(R)):(A.boolean||A.overloadedBoolean)&&typeof R=="string"&&(R===""||t(v)===t(E))&&(R=!0),R}function m(A){var E=[],v;for(v in A)E.push([v,A[v]].join(": "));return E.join("; ")}function h(A){for(var E=A.length,v=-1,R={},b;++v<E;)b=A[v],R[b.toLowerCase()]=b;return R}return Ke}var Xe,Jo;function Yp(){if(Jo)return Xe;Jo=1;var e=$p(),t=Wp(),r=t(e,"div");return r.displayName="html",Xe=r,Xe}var Ze,es;function Kp(){return es||(es=1,Ze=Yp()),Ze}const Xp="Æ",Zp="&",Qp="Á",Jp="Â",eg="À",tg="Å",rg="Ã",ag="Ä",ng="©",ig="Ç",og="Ð",sg="É",lg="Ê",ug="È",dg="Ë",cg=">",pg="Í",gg="Î",bg="Ì",mg="Ï",fg="<",Eg="Ñ",hg="Ó",Sg="Ô",yg="Ò",vg="Ø",Tg="Õ",Ag="Ö",Rg='"',_g="®",Ig="Þ",Ng="Ú",wg="Û",Cg="Ù",kg="Ü",Og="Ý",Lg="á",Dg="â",xg="´",Mg="æ",Fg="à",Ug="&",Bg="å",Pg="ã",qg="ä",Gg="¦",$g="ç",Hg="¸",zg="¢",Vg="©",jg="¤",Wg="°",Yg="÷",Kg="é",Xg="ê",Zg="è",Qg="ð",Jg="ë",eb="½",tb="¼",rb="¾",ab=">",nb="í",ib="î",ob="¡",sb="ì",lb="¿",ub="ï",db="«",cb="<",pb="¯",gb="µ",bb="·",mb=" ",fb="¬",Eb="ñ",hb="ó",Sb="ô",yb="ò",vb="ª",Tb="º",Ab="ø",Rb="õ",_b="ö",Ib="¶",Nb="±",wb="£",Cb='"',kb="»",Ob="®",Lb="§",Db="",xb="¹",Mb="²",Fb="³",Ub="ß",Bb="þ",Pb="×",qb="ú",Gb="û",$b="ù",Hb="¨",zb="ü",Vb="ý",jb="¥",Wb="ÿ",Yb={AElig:Xp,AMP:Zp,Aacute:Qp,Acirc:Jp,Agrave:eg,Aring:tg,Atilde:rg,Auml:ag,COPY:ng,Ccedil:ig,ETH:og,Eacute:sg,Ecirc:lg,Egrave:ug,Euml:dg,GT:cg,Iacute:pg,Icirc:gg,Igrave:bg,Iuml:mg,LT:fg,Ntilde:Eg,Oacute:hg,Ocirc:Sg,Ograve:yg,Oslash:vg,Otilde:Tg,Ouml:Ag,QUOT:Rg,REG:_g,THORN:Ig,Uacute:Ng,Ucirc:wg,Ugrave:Cg,Uuml:kg,Yacute:Og,aacute:Lg,acirc:Dg,acute:xg,aelig:Mg,agrave:Fg,amp:Ug,aring:Bg,atilde:Pg,auml:qg,brvbar:Gg,ccedil:$g,cedil:Hg,cent:zg,copy:Vg,curren:jg,deg:Wg,divide:Yg,eacute:Kg,ecirc:Xg,egrave:Zg,eth:Qg,euml:Jg,frac12:eb,frac14:tb,frac34:rb,gt:ab,iacute:nb,icirc:ib,iexcl:ob,igrave:sb,iquest:lb,iuml:ub,laquo:db,lt:cb,macr:pb,micro:gb,middot:bb,nbsp:mb,not:fb,ntilde:Eb,oacute:hb,ocirc:Sb,ograve:yb,ordf:vb,ordm:Tb,oslash:Ab,otilde:Rb,ouml:_b,para:Ib,plusmn:Nb,pound:wb,quot:Cb,raquo:kb,reg:Ob,sect:Lb,shy:Db,sup1:xb,sup2:Mb,sup3:Fb,szlig:Ub,thorn:Bb,times:Pb,uacute:qb,ucirc:Gb,ugrave:$b,uml:Hb,uuml:zb,yacute:Vb,yen:jb,yuml:Wb},Kb={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};var Qe,ts;function vp(){if(ts)return Qe;ts=1,Qe=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=48&&r<=57}return Qe}var Je,rs;function Xb(){if(rs)return Je;rs=1,Je=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}return Je}var et,as;function Zb(){if(as)return et;as=1,et=e;function e(t){var r=typeof t=="string"?t.charCodeAt(0):t;return r>=97&&r<=122||r>=65&&r<=90}return et}var tt,ns;function Qb(){if(ns)return tt;ns=1;var e=Zb(),t=vp();tt=r;function r(a){return e(a)||t(a)}return tt}var rt,is;function Jb(){if(is)return rt;is=1;var e,t=59;rt=r;function r(a){var n="&"+a+";",i;return e=e||document.createElement("i"),e.innerHTML=n,i=e.textContent,i.charCodeAt(i.length-1)===t&&a!=="semi"||i===n?!1:i}return rt}var at,os;function em(){if(os)return at;os=1;var e=Yb,t=Kb,r=vp(),a=Xb(),n=Qb(),i=Jb();at=F;var o={}.hasOwnProperty,s=String.fromCharCode,l=Function.prototype,d={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},u=9,p=10,m=12,h=32,A=38,E=59,v=60,R=61,b=35,g=88,f=120,S=65533,c="named",T="hexadecimal",_="decimal",y={};y[T]=16,y[_]=10;var N={};N[c]=n,N[_]=r,N[T]=a;var I=1,O=2,P=3,z=4,V=5,Y=6,j=7,w={};w[I]="Named character references must be terminated by a semicolon",w[O]="Numeric character references must be terminated by a semicolon",w[P]="Named character references cannot be empty",w[z]="Numeric character references cannot be empty",w[V]="Named character references must be known",w[Y]="Numeric character references cannot be disallowed",w[j]="Numeric character references cannot be outside the permissible Unicode range";function F(C,k){var D={},W,H;k||(k={});for(H in d)W=k[H],D[H]=W??d[H];return(D.position.indent||D.position.start)&&(D.indent=D.position.indent||[],D.position=D.position.start),q(C,D)}function q(C,k){var D=k.additional,W=k.nonTerminated,H=k.text,le=k.reference,ce=k.warning,pe=k.textContext,ue=k.referenceContext,Ie=k.warningContext,te=k.position,kp=k.indent||[],Ne=C.length,J=0,Io=-1,re=te.column||1,No=te.line||1,ae="",we=[],de,Ce,ne,$,ee,U,x,K,Ee,ke,ie,ge,oe,Z,wo,be,he,X,B;for(typeof D=="string"&&(D=D.charCodeAt(0)),be=me(),K=ce?Op:l,J--,Ne++;++J<Ne;)if(ee===p&&(re=kp[Io]||1),ee=C.charCodeAt(J),ee===A){if(x=C.charCodeAt(J+1),x===u||x===p||x===m||x===h||x===A||x===v||x!==x||D&&x===D){ae+=s(ee),re++;continue}for(oe=J+1,ge=oe,B=oe,x===b?(B=++ge,x=C.charCodeAt(B),x===g||x===f?(Z=T,B=++ge):Z=_):Z=c,de="",ie="",$="",wo=N[Z],B--;++B<Ne&&(x=C.charCodeAt(B),!!wo(x));)$+=s(x),Z===c&&o.call(e,$)&&(de=$,ie=e[$]);ne=C.charCodeAt(B)===E,ne&&(B++,Ce=Z===c?i($):!1,Ce&&(de=$,ie=Ce)),X=1+B-oe,!ne&&!W||($?Z===c?(ne&&!ie?K(V,1):(de!==$&&(B=ge+de.length,X=1+B-ge,ne=!1),ne||(Ee=de?I:P,k.attribute?(x=C.charCodeAt(B),x===R?(K(Ee,X),ie=null):n(x)?ie=null:K(Ee,X)):K(Ee,X))),U=ie):(ne||K(O,X),U=parseInt($,y[Z]),M(U)?(K(j,X),U=s(S)):U in t?(K(Y,X),U=t[U]):(ke="",L(U)&&K(Y,X),U>65535&&(U-=65536,ke+=s(U>>>10|55296),U=56320|U&1023),U=ke+s(U))):Z!==c&&K(z,X)),U?(Co(),be=me(),J=B-1,re+=B-oe+1,we.push(U),he=me(),he.offset++,le&&le.call(ue,U,{start:be,end:he},C.slice(oe-1,B)),be=he):($=C.slice(oe-1,B),ae+=$,re+=$.length,J=B-1)}else ee===10&&(No++,Io++,re=0),ee===ee?(ae+=s(ee),re++):Co();return we.join("");function me(){return{line:No,column:re,offset:J+(te.offset||0)}}function Op(ko,Oo){var Oe=me();Oe.column+=Oo,Oe.offset+=Oo,ce.call(Ie,w[ko],Oe,ko)}function Co(){ae&&(we.push(ae),H&&H.call(pe,ae,{start:be,end:me()}),ae="")}}function M(C){return C>=55296&&C<=57343||C>1114111}function L(C){return C>=1&&C<=8||C===11||C>=13&&C<=31||C>=127&&C<=159||C>=64976&&C<=65007||(C&65535)===65535||(C&65535)===65534}return at}var nt={exports:{}},ss;function tm(){return ss||(ss=1,function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
2
2
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
3
3
|
*
|
|
4
4
|
* @license MIT <https://opensource.org/licenses/MIT>
|