mastra 0.10.11-alpha.3 → 0.10.12-alpha.0
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/LICENSE.md +11 -42
- package/dist/{chunk-XOZCPWFM.js → chunk-SLWIYYJN.js} +1 -1
- package/dist/commands/create/create.js +1 -1
- package/dist/index.js +10 -3
- package/package.json +8 -8
- package/src/playground/dist/assets/{index-DsIHrJ8h.js → index-BfLjjKvL.js} +1 -1
- package/src/playground/dist/assets/{index-B_Io1yuR.js → index-D23GwWJx.js} +218 -218
- package/src/playground/dist/assets/{index-DKNU_lpj.js → index-DnOJ6cef.js} +1 -1
- package/src/playground/dist/index.html +1 -1
package/LICENSE.md
CHANGED
|
@@ -1,46 +1,15 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Apache License 2.0
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2025
|
|
3
|
+
Copyright (c) 2025 Kepler Software, Inc.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
you may not use this file except in compliance with the License.
|
|
7
|
+
You may obtain a copy of the License at
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor’s trademarks is subject to applicable law.
|
|
17
|
-
|
|
18
|
-
**Patents**
|
|
19
|
-
The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
20
|
-
|
|
21
|
-
**Notices**
|
|
22
|
-
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms.
|
|
23
|
-
|
|
24
|
-
If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software.
|
|
25
|
-
|
|
26
|
-
**No Other Rights**
|
|
27
|
-
These terms do not imply any licenses other than those expressly granted in these terms.
|
|
28
|
-
|
|
29
|
-
**Termination**
|
|
30
|
-
If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently.
|
|
31
|
-
|
|
32
|
-
**No Liability**
|
|
33
|
-
As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.
|
|
34
|
-
|
|
35
|
-
**Definitions**
|
|
36
|
-
The _licensor_ is the entity offering these terms, and the _software_ is the software the licensor makes available under these terms, including any portion of it.
|
|
37
|
-
|
|
38
|
-
_you_ refers to the individual or entity agreeing to these terms.
|
|
39
|
-
|
|
40
|
-
_your company_ is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. _control_ means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
41
|
-
|
|
42
|
-
_your licenses_ are all the licenses granted to you for the software under these terms.
|
|
43
|
-
|
|
44
|
-
_use_ means anything you do with the software requiring one of your licenses.
|
|
45
|
-
|
|
46
|
-
_trademark_ means trademarks, service marks, and similar rights.
|
|
11
|
+
Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
See the License for the specific language governing permissions and
|
|
15
|
+
limitations under the License.
|
|
@@ -1121,7 +1121,7 @@ var createMastraProject = async ({
|
|
|
1121
1121
|
s2.stop("Project structure created");
|
|
1122
1122
|
s2.start(`Installing ${pm} dependencies`);
|
|
1123
1123
|
try {
|
|
1124
|
-
await exec3(`${pm} ${installCommand} zod`);
|
|
1124
|
+
await exec3(`${pm} ${installCommand} zod@^3`);
|
|
1125
1125
|
await exec3(`${pm} ${installCommand} typescript @types/node --save-dev`);
|
|
1126
1126
|
await exec3(`echo '{
|
|
1127
1127
|
"compilerOptions": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { create } from '../../chunk-
|
|
1
|
+
export { create } from '../../chunk-SLWIYYJN.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-SLWIYYJN.js';
|
|
5
|
+
export { create } from './chunk-SLWIYYJN.js';
|
|
6
6
|
import { Command } from 'commander';
|
|
7
7
|
import { config } from 'dotenv';
|
|
8
8
|
import { join, dirname } from 'path';
|
|
@@ -212,7 +212,14 @@ var DevBundler = class extends Bundler {
|
|
|
212
212
|
const toolsInputOptions = await this.getToolsInputOptions(toolsPaths);
|
|
213
213
|
const outputDir = join(outputDirectory, this.outputDir);
|
|
214
214
|
await writeTelemetryConfig(entryFile, outputDir);
|
|
215
|
-
|
|
215
|
+
const mastraFolder = dirname(entryFile);
|
|
216
|
+
const fileService = new FileService$1();
|
|
217
|
+
const customInstrumentation = fileService.getFirstExistingFileOrUndefined([
|
|
218
|
+
join(mastraFolder, "instrumentation.js"),
|
|
219
|
+
join(mastraFolder, "instrumentation.ts"),
|
|
220
|
+
join(mastraFolder, "instrumentation.mjs")
|
|
221
|
+
]);
|
|
222
|
+
await this.writeInstrumentationFile(outputDir, customInstrumentation);
|
|
216
223
|
await this.writePackageJson(outputDir, /* @__PURE__ */ new Map(), {});
|
|
217
224
|
const copyPublic = this.copyPublic.bind(this);
|
|
218
225
|
const watcher = await createWatcher(
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mastra",
|
|
3
|
-
"version": "0.10.
|
|
4
|
-
"license": "
|
|
3
|
+
"version": "0.10.12-alpha.0",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
5
|
"description": "cli for mastra",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
"yocto-spinner": "^0.2.3",
|
|
76
76
|
"zod": "^3.25.67",
|
|
77
77
|
"zod-to-json-schema": "^3.24.5",
|
|
78
|
+
"@mastra/deployer": "^0.10.12-alpha.0",
|
|
78
79
|
"@mastra/loggers": "^0.10.3",
|
|
79
|
-
"@mastra/
|
|
80
|
-
"@mastra/mcp": "^0.10.6-alpha.1"
|
|
80
|
+
"@mastra/mcp": "^0.10.6"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@microsoft/api-extractor": "^7.52.8",
|
|
@@ -95,10 +95,10 @@
|
|
|
95
95
|
"type-fest": "^4.41.0",
|
|
96
96
|
"typescript": "^5.8.3",
|
|
97
97
|
"vitest": "^3.2.4",
|
|
98
|
-
"@internal/lint": "0.0.
|
|
99
|
-
"@mastra/
|
|
100
|
-
"@mastra/
|
|
101
|
-
"@mastra/
|
|
98
|
+
"@internal/lint": "0.0.18",
|
|
99
|
+
"@mastra/core": "0.10.12-alpha.0",
|
|
100
|
+
"@mastra/client-js": "0.10.11-alpha.0",
|
|
101
|
+
"@mastra/playground-ui": "5.1.12-alpha.0"
|
|
102
102
|
},
|
|
103
103
|
"peerDependencies": {
|
|
104
104
|
"@mastra/core": "^0.10.2-alpha.0"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as ve,g as Lp}from"./index-B_Io1yuR.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-D23GwWJx.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>
|