@airalogy/aimd-recorder 1.26.0 → 1.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/README.zh-CN.md +4 -0
- package/dist/{AimdDnaSequenceField-CKfd3-_9.js → AimdDnaSequenceField-CcH4iNkt.js} +1 -1
- package/dist/{AimdEditor.vue_vue_type_style_index_0_lang-C1XlvrNT.js → AimdEditor.vue_vue_type_style_index_0_lang-CdfAwAUt.js} +2284 -2309
- package/dist/{AimdEntityRefField-CX67car3.js → AimdEntityRefField-D_oWNpqr.js} +1 -1
- package/dist/{AimdEntityRefField.vue_vue_type_script_setup_true_lang-JISqbfKY.js → AimdEntityRefField.vue_vue_type_script_setup_true_lang-Db_LDoBh.js} +1 -1
- package/dist/{AimdMarkdownField-BuRsjOB5.js → AimdMarkdownField-BKFxcFlr.js} +3 -3
- package/dist/{AimdMarkdownNoteField-NRA9ut3_.js → AimdMarkdownNoteField-BT9p-czP.js} +2 -2
- package/dist/{AimdResourceRefField-B71MVFFK.js → AimdResourceRefField-DTJrzEk0.js} +2 -2
- package/dist/{arc-2NNDEUZL.js → arc-C4wUYsPP.js} +1 -1
- package/dist/{architectureDiagram-3BPJPVTR-BGU_a_9z.js → architectureDiagram-3BPJPVTR-CsDNdq7Q.js} +2 -2
- package/dist/{blockDiagram-GPEHLZMM-ChLqLSJn.js → blockDiagram-GPEHLZMM-fKeT2D5b.js} +4 -4
- package/dist/{c4Diagram-AAUBKEIU-BXt823OA.js → c4Diagram-AAUBKEIU-DVwh7NRj.js} +2 -2
- package/dist/{channel-D1EuKFn5.js → channel-CH-usREe.js} +1 -1
- package/dist/{chunk-2J33WTMH-XJPmqQtr.js → chunk-2J33WTMH-wsLH41rI.js} +1 -1
- package/dist/{chunk-4BX2VUAB-CbV5jCeG.js → chunk-4BX2VUAB-DAJr3925.js} +1 -1
- package/dist/{chunk-55IACEB6-C8gv1Mc0.js → chunk-55IACEB6-Da4Ne6oY.js} +1 -1
- package/dist/{chunk-727SXJPM-Bs2EpCWN.js → chunk-727SXJPM-CP1g1Jx1.js} +5 -5
- package/dist/{chunk-AQP2D5EJ-CngahRo6.js → chunk-AQP2D5EJ-CrUHvBMG.js} +3 -3
- package/dist/{chunk-FMBD7UC4-DPBfEP1E.js → chunk-FMBD7UC4-2BS6vQ14.js} +1 -1
- package/dist/{chunk-ND2GUHAM-BlEzeiST.js → chunk-ND2GUHAM-DbptczhZ.js} +1 -1
- package/dist/{chunk-QZHKN3VN-DGOFj8Bc.js → chunk-QZHKN3VN-CmzoHGkh.js} +1 -1
- package/dist/{classDiagram-v2-Q7XG4LA2-BUQqoFF9.js → classDiagram-4FO5ZUOK-BhWOa0pe.js} +2 -2
- package/dist/{classDiagram-4FO5ZUOK-BUQqoFF9.js → classDiagram-v2-Q7XG4LA2-BhWOa0pe.js} +2 -2
- package/dist/components.js +7 -7
- package/dist/composables.js +2 -2
- package/dist/{cose-bilkent-S5V4N54A-Qxs9suxa.js → cose-bilkent-S5V4N54A-CVq2L78n.js} +1 -1
- package/dist/{dagre-BM42HDAG-CqV8IXIy.js → dagre-BM42HDAG-DgdlE5dv.js} +3 -3
- package/dist/{diagram-2AECGRRQ-D0mYOaE1.js → diagram-2AECGRRQ-Bp_4Kx4E.js} +2 -2
- package/dist/{diagram-5GNKFQAL-Dvjcs9SL.js → diagram-5GNKFQAL-CvhaI19W.js} +3 -3
- package/dist/{diagram-KO2AKTUF-rSovr72L.js → diagram-KO2AKTUF-zzkdurRu.js} +2 -2
- package/dist/{diagram-LMA3HP47-CirCeq88.js → diagram-LMA3HP47-LTnq6yjw.js} +2 -2
- package/dist/{diagram-OG6HWLK6-rk46c1hT.js → diagram-OG6HWLK6-Cuz0JAg_.js} +3 -3
- package/dist/{erDiagram-TEJ5UH35--_m5yDSV.js → erDiagram-TEJ5UH35-CIPjTfTT.js} +4 -4
- package/dist/example-record-BJC4OLXj.js +92 -0
- package/dist/{flowDiagram-I6XJVG4X-DU-TlDfY.js → flowDiagram-I6XJVG4X-CPaK4Xbu.js} +6 -6
- package/dist/{ganttDiagram-6RSMTGT7-CrMwQSQi.js → ganttDiagram-6RSMTGT7-DgW97z1_.js} +2 -2
- package/dist/{gitGraphDiagram-PVQCEYII-Q-bwtX2H.js → gitGraphDiagram-PVQCEYII-B5nDBDDz.js} +3 -3
- package/dist/{graph-CvyYQarK.js → graph-BPBu5cW4.js} +1 -1
- package/dist/index.js +117 -115
- package/dist/{infoDiagram-5YYISTIA-BejjAcMI.js → infoDiagram-5YYISTIA-BRL6QS3D.js} +1 -1
- package/dist/{ishikawaDiagram-YF4QCWOH-CbRBA5Ak.js → ishikawaDiagram-YF4QCWOH-Clx8yAcX.js} +1 -1
- package/dist/{journeyDiagram-JHISSGLW-D_6-qOB8.js → journeyDiagram-JHISSGLW-BgDIGN-f.js} +4 -4
- package/dist/{kanban-definition-UN3LZRKU-DyGjEqu5.js → kanban-definition-UN3LZRKU-CzITmCY8.js} +2 -2
- package/dist/{layout-Z5g42JDg.js → layout-CN9EF1w3.js} +2 -2
- package/dist/{linear-DSunMwcT.js → linear-8L3HEUrZ.js} +1 -1
- package/dist/{mermaid.core-B-O2uDZ3.js → mermaid.core-BKkg18RI.js} +34 -34
- package/dist/{mindmap-definition-RKZ34NQL-CC_NhwV9.js → mindmap-definition-RKZ34NQL-CmOIakhY.js} +3 -3
- package/dist/{pieDiagram-4H26LBE5-CHlBAazu.js → pieDiagram-4H26LBE5-Db3KkXWV.js} +3 -3
- package/dist/{quadrantDiagram-W4KKPZXB-BM6pMzVZ.js → quadrantDiagram-W4KKPZXB-B3vtZnG7.js} +2 -2
- package/dist/record.js +99 -97
- package/dist/{requirementDiagram-4Y6WPE33-CNkZDYpb.js → requirementDiagram-4Y6WPE33-Ck8oKzEP.js} +3 -3
- package/dist/{sankeyDiagram-5OEKKPKP-Cq6DjItn.js → sankeyDiagram-5OEKKPKP-CSeh32Zo.js} +1 -1
- package/dist/{sequenceDiagram-3UESZ5HK-BIzn9dmF.js → sequenceDiagram-3UESZ5HK-NbBPwpmy.js} +3 -3
- package/dist/{stateDiagram-AJRCARHV-DbSpH-v9.js → stateDiagram-AJRCARHV-4_Vpe-Zo.js} +4 -4
- package/dist/{stateDiagram-v2-BHNVJYJU-Cnv8BTgy.js → stateDiagram-v2-BHNVJYJU-7SjLjguc.js} +2 -2
- package/dist/{timeline-definition-PNZ67QCA-Bhs5_-8Z.js → timeline-definition-PNZ67QCA-BNHrT4au.js} +2 -2
- package/dist/{useFieldRendering-r1bAnHjk.js → useFieldRendering-DR71Yx2E.js} +28 -28
- package/dist/{useVarHelpers-xrbf4f60.js → useVarHelpers-DCu81vu6.js} +609 -609
- package/dist/{validation-ZmPcMCY0.js → validation-7k-val2c.js} +1 -1
- package/dist/validation-messages-DSKIAWbr.js +33 -0
- package/dist/{vennDiagram-CIIHVFJN-DJSLUotN.js → vennDiagram-CIIHVFJN-Dg6RsGJi.js} +1 -1
- package/dist/{wardleyDiagram-YWT4CUSO-Bk66hVLg.js → wardleyDiagram-YWT4CUSO-BKzJyt8_.js} +2 -2
- package/dist/{xychartDiagram-2RQKCTM6-Bss5MLVp.js → xychartDiagram-2RQKCTM6-DwYEckjZ.js} +2 -2
- package/package.json +7 -7
- package/src/__tests__/example-record.test.ts +56 -0
- package/src/index.ts +1 -0
- package/src/locales.ts +3 -28
- package/src/record/example-record.ts +66 -0
- package/src/record/index.ts +1 -0
- package/src/record/validation-messages.ts +32 -0
- package/src/styles/index.css +4 -0
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
const Pn = /* @__PURE__ */ new Set(["none", "nonetype", "null", "undefined"]);
|
|
1
|
+
import { defineAsyncComponent as rr, h as Ni } from "vue";
|
|
2
|
+
const On = /* @__PURE__ */ JSON.parse('{"UserName":{"type_name":"UserName","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"current-user","type":"string","description":"The user name of the current Airalogy user","preview":{"kind":"skip"}},"CurrentTime":{"type_name":"CurrentTime","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"current-time","type":"string","description":"The current time. The timezone is based on the user\'s browser.","preview":{"kind":"skip"}},"CurrentProtocolId":{"type_name":"CurrentProtocolId","import_from":"airalogy.types","storage_kind":"scalar","type":"string","description":"The ID of the current Airalogy Protocol.","preview":{"kind":"skip"}},"CurrentRecordId":{"type_name":"CurrentRecordId","import_from":"airalogy.types","storage_kind":"scalar","type":"string","description":"The ID of the current Airalogy Record.","preview":{"kind":"skip"}},"EntityRef":{"type_name":"EntityRef","import_from":"airalogy.types","storage_kind":"reference","ui_kind":"entity-ref","type":"object","title":"EntityRef","description":"Reference to a named entity in a connector-backed source.\\n\\n`entity` is the entity namespace, such as plasmid or strain. `id` is the\\nstable identifier inside that namespace/source. Extra fields are allowed so\\nhosts can retain display snapshots or source-specific reference metadata.","preview":{"kind":"skip"}},"ResourceRef":{"type_name":"ResourceRef","import_from":"airalogy.types","storage_kind":"reference","ui_kind":"resource-ref","type":"object","title":"ResourceRef","description":"Stable reference to a Platform-managed resource.\\n\\nQuantities are represented by :class:`~decimal.Decimal` in Python and are\\nserialized as strings so a Record never loses precision while crossing a\\nJSON or JavaScript boundary.","preview":{"kind":"skip"}},"Observation":{"type_name":"Observation","import_from":"airalogy.types","storage_kind":"structured","ui_kind":"observation","type":"object","title":"Observation","description":"A typed value with observation time, receipt time, and provenance.","preview":{"kind":"skip"}},"ObservationSeriesRef":{"type_name":"ObservationSeriesRef","import_from":"airalogy.types","storage_kind":"reference","ui_kind":"observation-series","type":"object","title":"ObservationSeriesRef","description":"Reference to a file-backed high-volume observation series.","preview":{"kind":"skip"}},"BloodType":{"type_name":"BloodType","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"Blood type","description":"Common ABO blood group values. Values such as A+ or A- combine an ABO group with Rh positive or Rh negative status. Rh+ and Rh- are allowed when only Rh factor is recorded.","enum":["A","B","AB","O","A+","A-","B+","B-","AB+","AB-","O+","O-","Rh+","Rh-"],"preview":{"kind":"enum"}},"ChineseEducationLevel":{"type_name":"ChineseEducationLevel","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"文化程度","description":"中国居民信息登记中常用的文化程度分类。","enum":["无学历","小学","初中","高中","中专","大专","本科","硕士","博士"],"preview":{"kind":"enum"}},"ChineseEthnicGroup":{"type_name":"ChineseEthnicGroup","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"民族","description":"中国国务院公布的 56 个法定民族之一。","enum":["汉族","蒙古族","回族","藏族","维吾尔族","苗族","彝族","壮族","布依族","朝鲜族","满族","侗族","瑶族","白族","土家族","哈尼族","哈萨克族","傣族","黎族","傈僳族","佤族","畲族","高山族","拉祜族","水族","东乡族","纳西族","景颇族","柯尔克孜族","土族","达斡尔族","仫佬族","羌族","布朗族","撒拉族","毛南族","仡佬族","锡伯族","阿昌族","普米族","塔吉克族","怒族","乌孜别克族","俄罗斯族","鄂温克族","德昂族","保安族","裕固族","京族","塔塔尔族","独龙族","鄂伦春族","赫哲族","门巴族","珞巴族","基诺族"],"preview":{"kind":"enum"}},"ChineseGender":{"type_name":"ChineseGender","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"性别","description":"中国居民信息登记中常用的性别分类。","enum":["男","女"],"preview":{"kind":"enum"}},"ChineseMaritalStatus":{"type_name":"ChineseMaritalStatus","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"婚姻状况","description":"中国居民信息登记中常用的婚姻状况分类。","enum":["未婚","已婚","丧偶","离婚","再婚"],"preview":{"kind":"enum"}},"ChineseProvinceLevelRegion":{"type_name":"ChineseProvinceLevelRegion","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"省级行政区","description":"中国现行省级行政区(省、自治区、直辖市、特别行政区)。","enum":["北京","天津","上海","重庆","河北","山西","辽宁","吉林","黑龙江","江苏","浙江","安徽","福建","江西","山东","河南","湖北","湖南","广东","海南","四川","贵州","云南","陕西","甘肃","青海","台湾","西藏","内蒙古","广西","宁夏","新疆","香港","澳门"],"preview":{"kind":"enum"}},"AiralogyMarkdown":{"type_name":"AiralogyMarkdown","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"markdown","type":"string","description":"An Airalogy Markdown string","preview":{"kind":"examples","values":[]}},"RecordId":{"type_name":"RecordId","import_from":"airalogy.types","storage_kind":"scalar","type":"string","preview":{"kind":"skip"}},"FileIdPNG":{"type_name":"FileIdPNG","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdPNG. This type allows users to upload a .png file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdJPG":{"type_name":"FileIdJPG","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdJPG. This type allows users to upload a .jpg file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdSVG":{"type_name":"FileIdSVG","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdSVG. This type allows users to upload a .svg file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdWEBP":{"type_name":"FileIdWEBP","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdWEBP. This type allows users to upload a .webp file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdTIFF":{"type_name":"FileIdTIFF","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdTIFF. This type allows users to upload a .tiff file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdMP4":{"type_name":"FileIdMP4","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdMP4. This type allows users to upload a .mp4 file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdMP3":{"type_name":"FileIdMP3","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdMP3. This type allows users to upload a .mp3 file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdAIMD":{"type_name":"FileIdAIMD","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdAIMD. This type allows users to upload a .aimd file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdMD":{"type_name":"FileIdMD","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdMD. This type allows users to upload a .md file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdTXT":{"type_name":"FileIdTXT","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdTXT. This type allows users to upload a .txt file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdCSV":{"type_name":"FileIdCSV","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdCSV. This type allows users to upload a .csv file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdJSON":{"type_name":"FileIdJSON","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdJSON. This type allows users to upload a .json file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdDOCX":{"type_name":"FileIdDOCX","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdDOCX. This type allows users to upload a .docx file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdXLSX":{"type_name":"FileIdXLSX","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdXLSX. This type allows users to upload a .xlsx file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdPPTX":{"type_name":"FileIdPPTX","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdPPTX. This type allows users to upload a .pptx file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdPDF":{"type_name":"FileIdPDF","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdPDF. This type allows users to upload a .pdf file and inject it into the related data field.","preview":{"kind":"skip"}},"FileIdDNA":{"type_name":"FileIdDNA","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdDNA. This type allows users to upload a .dna file and inject it into the related data field.","preview":{"kind":"skip"}},"Recommended":{"type_name":"Recommended","import_from":"airalogy.types","storage_kind":"scalar","type":"object","preview":{"kind":"skip"}},"IgnoreStr":{"type_name":"IgnoreStr","import_from":"airalogy.types","storage_kind":"scalar","type":"string","description":"In an Airalogy Field of this type, a user may provide a string; however, when the Airalogy Record is submitted, the string is not persisted. This is intended for sensitive input (such as an API key) that the Airalogy Protocol Assigner can consume during processing but that should never be stored in the final Record.","preview":{"kind":"skip"}},"CodeStr":{"type_name":"CodeStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (plaintext). Strings of this type contain language-agnostic code or structured text and are rendered in a plain code editor.","preview":{"kind":"examples","values":[]}},"PyStr":{"type_name":"PyStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (python). Strings of this type contain python source code and are rendered in an editor with python syntax highlighting.","preview":{"kind":"examples","values":[]}},"JsStr":{"type_name":"JsStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (javascript). Strings of this type contain javascript source code and are rendered in an editor with javascript syntax highlighting.","preview":{"kind":"examples","values":[]}},"TsStr":{"type_name":"TsStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (typescript). Strings of this type contain typescript source code and are rendered in an editor with typescript syntax highlighting.","preview":{"kind":"examples","values":[]}},"JsonStr":{"type_name":"JsonStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (json). Strings of this type contain json source code and are rendered in an editor with json syntax highlighting.","preview":{"kind":"examples","values":[]}},"TomlStr":{"type_name":"TomlStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (toml). Strings of this type contain toml source code and are rendered in an editor with toml syntax highlighting.","preview":{"kind":"examples","values":[]}},"YamlStr":{"type_name":"YamlStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (yaml). Strings of this type contain yaml source code and are rendered in an editor with yaml syntax highlighting.","preview":{"kind":"examples","values":[]}},"ATCG":{"type_name":"ATCG","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"dna-text","type":"string","preview":{"kind":"examples","values":["ATCG"]},"pattern":"^[ATCG]*$"},"DNASequence":{"type_name":"DNASequence","import_from":"airalogy.types","storage_kind":"structured","ui_kind":"dna-sequence","type":"object","title":"DNASequence","description":"Structured DNA sequence value used by Airalogy\'s dedicated sequence editor.\\n\\nThis model intentionally stays simpler than full GenBank flatfiles while\\npreserving the core pieces needed for practical import/export alignment:\\nmulti-segment feature locations, partial flags, and qualifier rows.","preview":{"kind":"skip"}},"SnakeStr":{"type_name":"SnakeStr","import_from":"airalogy.types","storage_kind":"scalar","type":"string","preview":{"kind":"examples","values":["example_sample"]},"pattern":"^(?!.*__)[a-z](?:[a-z\\\\d_]*[a-z\\\\d])?$"},"VersionStr":{"type_name":"VersionStr","import_from":"airalogy.types","storage_kind":"scalar","type":"string","preview":{"kind":"examples","values":["0.1.0"]},"pattern":"^\\\\d+\\\\.\\\\d+\\\\.\\\\d+$"},"ProtocolId":{"type_name":"ProtocolId","import_from":"airalogy.types","storage_kind":"scalar","type":"string","preview":{"kind":"skip"}}}'), Ln = {
|
|
3
|
+
types: On
|
|
4
|
+
}, Vn = /* @__PURE__ */ new Set(["none", "nonetype", "null", "undefined"]);
|
|
3
5
|
function Ti(e, t) {
|
|
4
6
|
const i = [];
|
|
5
7
|
let r = 0, n = 0, s = "", a = !1;
|
|
@@ -9,24 +11,24 @@ function Ti(e, t) {
|
|
|
9
11
|
}
|
|
10
12
|
return i.push(e.slice(r).trim()), i;
|
|
11
13
|
}
|
|
12
|
-
function
|
|
14
|
+
function nr(e) {
|
|
13
15
|
const t = Ti(e, "|");
|
|
14
16
|
if (t.length > 1) return { union: t };
|
|
15
17
|
const i = e.match(/^(?:(?:typing|typing_extensions)\.)?(Optional|Union)\s*\[([\s\S]*)\]$/i);
|
|
16
18
|
return i?.[1].toLowerCase() === "optional" ? { optional: i[2].trim(), union: [] } : { union: i ? Ti(i[2], ",") : t };
|
|
17
19
|
}
|
|
18
|
-
function
|
|
19
|
-
return
|
|
20
|
+
function sr(e) {
|
|
21
|
+
return Vn.has(e.toLowerCase());
|
|
20
22
|
}
|
|
21
23
|
function Fe(e) {
|
|
22
24
|
let t = typeof e == "string" ? e.trim() : "";
|
|
23
25
|
for (let i = 0; i < 32; i += 1) {
|
|
24
|
-
const { optional: r, union: n } =
|
|
26
|
+
const { optional: r, union: n } = nr(t);
|
|
25
27
|
if (r !== void 0 && r !== t) {
|
|
26
28
|
t = r;
|
|
27
29
|
continue;
|
|
28
30
|
}
|
|
29
|
-
const s = n.filter((a) => !
|
|
31
|
+
const s = n.filter((a) => !sr(a));
|
|
30
32
|
if (n.length > 1 && s.length === 1 && s[0]) {
|
|
31
33
|
t = s[0];
|
|
32
34
|
continue;
|
|
@@ -35,23 +37,21 @@ function Fe(e) {
|
|
|
35
37
|
}
|
|
36
38
|
return t;
|
|
37
39
|
}
|
|
38
|
-
function
|
|
40
|
+
function Dn(e) {
|
|
39
41
|
if (typeof e != "string") return !1;
|
|
40
|
-
const { optional: t, union: i } =
|
|
41
|
-
return t !== void 0 || i.length > 1 && i.some(
|
|
42
|
+
const { optional: t, union: i } = nr(e.trim());
|
|
43
|
+
return t !== void 0 || i.length > 1 && i.some(sr);
|
|
42
44
|
}
|
|
43
|
-
const Ln = /* @__PURE__ */ JSON.parse('{"UserName":{"type_name":"UserName","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"current-user","type":"string","description":"The user name of the current Airalogy user"},"CurrentTime":{"type_name":"CurrentTime","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"current-time","type":"string","description":"The current time. The timezone is based on the user\'s browser."},"CurrentProtocolId":{"type_name":"CurrentProtocolId","import_from":"airalogy.types","storage_kind":"scalar","type":"string","description":"The ID of the current Airalogy Protocol."},"CurrentRecordId":{"type_name":"CurrentRecordId","import_from":"airalogy.types","storage_kind":"scalar","type":"string","description":"The ID of the current Airalogy Record."},"EntityRef":{"type_name":"EntityRef","import_from":"airalogy.types","storage_kind":"reference","ui_kind":"entity-ref","type":"object","title":"EntityRef","description":"Reference to a named entity in a connector-backed source.\\n\\n`entity` is the entity namespace, such as plasmid or strain. `id` is the\\nstable identifier inside that namespace/source. Extra fields are allowed so\\nhosts can retain display snapshots or source-specific reference metadata."},"ResourceRef":{"type_name":"ResourceRef","import_from":"airalogy.types","storage_kind":"reference","ui_kind":"resource-ref","type":"object","title":"ResourceRef","description":"Stable reference to a Platform-managed resource.\\n\\nQuantities are represented by :class:`~decimal.Decimal` in Python and are\\nserialized as strings so a Record never loses precision while crossing a\\nJSON or JavaScript boundary."},"Observation":{"type_name":"Observation","import_from":"airalogy.types","storage_kind":"structured","ui_kind":"observation","type":"object","title":"Observation","description":"A typed value with observation time, receipt time, and provenance."},"ObservationSeriesRef":{"type_name":"ObservationSeriesRef","import_from":"airalogy.types","storage_kind":"reference","ui_kind":"observation-series","type":"object","title":"ObservationSeriesRef","description":"Reference to a file-backed high-volume observation series."},"BloodType":{"type_name":"BloodType","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"Blood type","description":"Common ABO blood group values. Values such as A+ or A- combine an ABO group with Rh positive or Rh negative status. Rh+ and Rh- are allowed when only Rh factor is recorded.","enum":["A","B","AB","O","A+","A-","B+","B-","AB+","AB-","O+","O-","Rh+","Rh-"]},"ChineseEducationLevel":{"type_name":"ChineseEducationLevel","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"文化程度","description":"中国居民信息登记中常用的文化程度分类。","enum":["无学历","小学","初中","高中","中专","大专","本科","硕士","博士"]},"ChineseEthnicGroup":{"type_name":"ChineseEthnicGroup","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"民族","description":"中国国务院公布的 56 个法定民族之一。","enum":["汉族","蒙古族","回族","藏族","维吾尔族","苗族","彝族","壮族","布依族","朝鲜族","满族","侗族","瑶族","白族","土家族","哈尼族","哈萨克族","傣族","黎族","傈僳族","佤族","畲族","高山族","拉祜族","水族","东乡族","纳西族","景颇族","柯尔克孜族","土族","达斡尔族","仫佬族","羌族","布朗族","撒拉族","毛南族","仡佬族","锡伯族","阿昌族","普米族","塔吉克族","怒族","乌孜别克族","俄罗斯族","鄂温克族","德昂族","保安族","裕固族","京族","塔塔尔族","独龙族","鄂伦春族","赫哲族","门巴族","珞巴族","基诺族"]},"ChineseGender":{"type_name":"ChineseGender","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"性别","description":"中国居民信息登记中常用的性别分类。","enum":["男","女"]},"ChineseMaritalStatus":{"type_name":"ChineseMaritalStatus","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"婚姻状况","description":"中国居民信息登记中常用的婚姻状况分类。","enum":["未婚","已婚","丧偶","离婚","再婚"]},"ChineseProvinceLevelRegion":{"type_name":"ChineseProvinceLevelRegion","import_from":"airalogy.types","storage_kind":"scalar","type":"string","title":"省级行政区","description":"中国现行省级行政区(省、自治区、直辖市、特别行政区)。","enum":["北京","天津","上海","重庆","河北","山西","辽宁","吉林","黑龙江","江苏","浙江","安徽","福建","江西","山东","河南","湖北","湖南","广东","海南","四川","贵州","云南","陕西","甘肃","青海","台湾","西藏","内蒙古","广西","宁夏","新疆","香港","澳门"]},"AiralogyMarkdown":{"type_name":"AiralogyMarkdown","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"markdown","type":"string","description":"An Airalogy Markdown string"},"RecordId":{"type_name":"RecordId","import_from":"airalogy.types","storage_kind":"scalar","type":"string"},"FileIdPNG":{"type_name":"FileIdPNG","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdPNG. This type allows users to upload a .png file and inject it into the related data field."},"FileIdJPG":{"type_name":"FileIdJPG","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdJPG. This type allows users to upload a .jpg file and inject it into the related data field."},"FileIdSVG":{"type_name":"FileIdSVG","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdSVG. This type allows users to upload a .svg file and inject it into the related data field."},"FileIdWEBP":{"type_name":"FileIdWEBP","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdWEBP. This type allows users to upload a .webp file and inject it into the related data field."},"FileIdTIFF":{"type_name":"FileIdTIFF","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdTIFF. This type allows users to upload a .tiff file and inject it into the related data field."},"FileIdMP4":{"type_name":"FileIdMP4","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdMP4. This type allows users to upload a .mp4 file and inject it into the related data field."},"FileIdMP3":{"type_name":"FileIdMP3","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdMP3. This type allows users to upload a .mp3 file and inject it into the related data field."},"FileIdAIMD":{"type_name":"FileIdAIMD","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdAIMD. This type allows users to upload a .aimd file and inject it into the related data field."},"FileIdMD":{"type_name":"FileIdMD","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdMD. This type allows users to upload a .md file and inject it into the related data field."},"FileIdTXT":{"type_name":"FileIdTXT","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdTXT. This type allows users to upload a .txt file and inject it into the related data field."},"FileIdCSV":{"type_name":"FileIdCSV","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdCSV. This type allows users to upload a .csv file and inject it into the related data field."},"FileIdJSON":{"type_name":"FileIdJSON","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdJSON. This type allows users to upload a .json file and inject it into the related data field."},"FileIdDOCX":{"type_name":"FileIdDOCX","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdDOCX. This type allows users to upload a .docx file and inject it into the related data field."},"FileIdXLSX":{"type_name":"FileIdXLSX","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdXLSX. This type allows users to upload a .xlsx file and inject it into the related data field."},"FileIdPPTX":{"type_name":"FileIdPPTX","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdPPTX. This type allows users to upload a .pptx file and inject it into the related data field."},"FileIdPDF":{"type_name":"FileIdPDF","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdPDF. This type allows users to upload a .pdf file and inject it into the related data field."},"FileIdDNA":{"type_name":"FileIdDNA","import_from":"airalogy.types","storage_kind":"file-id","ui_kind":"file","type":"string","description":"Airalogy built-in type: FileIdDNA. This type allows users to upload a .dna file and inject it into the related data field."},"Recommended":{"type_name":"Recommended","import_from":"airalogy.types","storage_kind":"scalar","type":"object"},"IgnoreStr":{"type_name":"IgnoreStr","import_from":"airalogy.types","storage_kind":"scalar","type":"string","description":"In an Airalogy Field of this type, a user may provide a string; however, when the Airalogy Record is submitted, the string is not persisted. This is intended for sensitive input (such as an API key) that the Airalogy Protocol Assigner can consume during processing but that should never be stored in the final Record."},"CodeStr":{"type_name":"CodeStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (plaintext). Strings of this type contain language-agnostic code or structured text and are rendered in a plain code editor."},"PyStr":{"type_name":"PyStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (python). Strings of this type contain python source code and are rendered in an editor with python syntax highlighting."},"JsStr":{"type_name":"JsStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (javascript). Strings of this type contain javascript source code and are rendered in an editor with javascript syntax highlighting."},"TsStr":{"type_name":"TsStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (typescript). Strings of this type contain typescript source code and are rendered in an editor with typescript syntax highlighting."},"JsonStr":{"type_name":"JsonStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (json). Strings of this type contain json source code and are rendered in an editor with json syntax highlighting."},"TomlStr":{"type_name":"TomlStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (toml). Strings of this type contain toml source code and are rendered in an editor with toml syntax highlighting."},"YamlStr":{"type_name":"YamlStr","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"code","type":"string","description":"Airalogy built-in type: CodeStr (yaml). Strings of this type contain yaml source code and are rendered in an editor with yaml syntax highlighting."},"ATCG":{"type_name":"ATCG","import_from":"airalogy.types","storage_kind":"scalar","ui_kind":"dna-text","type":"string"},"DNASequence":{"type_name":"DNASequence","import_from":"airalogy.types","storage_kind":"structured","ui_kind":"dna-sequence","type":"object","title":"DNASequence","description":"Structured DNA sequence value used by Airalogy\'s dedicated sequence editor.\\n\\nThis model intentionally stays simpler than full GenBank flatfiles while\\npreserving the core pieces needed for practical import/export alignment:\\nmulti-segment feature locations, partial flags, and qualifier rows."},"SnakeStr":{"type_name":"SnakeStr","import_from":"airalogy.types","storage_kind":"scalar","type":"string"},"VersionStr":{"type_name":"VersionStr","import_from":"airalogy.types","storage_kind":"scalar","type":"string"},"ProtocolId":{"type_name":"ProtocolId","import_from":"airalogy.types","storage_kind":"scalar","type":"string"}}'), Vn = {
|
|
44
|
-
types
|
|
45
|
-
}, sr = Vn, Dn = Object.fromEntries(
|
|
46
|
-
Object.values(sr.types).flatMap((e) => [
|
|
45
|
+
const ar = Ln, Pi = Object.fromEntries(
|
|
46
|
+
Object.values(ar.types).flatMap((e) => [
|
|
47
47
|
[e.type_name, e],
|
|
48
48
|
...(e.aliases ?? []).map((t) => [t, e])
|
|
49
49
|
])
|
|
50
50
|
);
|
|
51
|
-
function
|
|
51
|
+
function or(e) {
|
|
52
52
|
return typeof e == "string" && e.trim() ? e.trim() : void 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Oi(e) {
|
|
55
55
|
return Array.isArray(e) ? e.filter((t) => t != null) : e == null || e === "" ? [] : [e];
|
|
56
56
|
}
|
|
57
57
|
function Rn(e) {
|
|
@@ -73,33 +73,33 @@ function Mn(e) {
|
|
|
73
73
|
}
|
|
74
74
|
function Bn(e) {
|
|
75
75
|
const t = Mn(e);
|
|
76
|
-
return t ?
|
|
76
|
+
return t && Object.prototype.hasOwnProperty.call(Pi, t) ? Pi[t] : void 0;
|
|
77
77
|
}
|
|
78
78
|
function Oo() {
|
|
79
|
-
return Object.keys(
|
|
79
|
+
return Object.keys(ar.types);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function ur(e) {
|
|
82
82
|
return Qt(Bn(e)?.enum);
|
|
83
83
|
}
|
|
84
84
|
function jn(e) {
|
|
85
|
-
return
|
|
85
|
+
return or(e?.kwargs?.title);
|
|
86
86
|
}
|
|
87
87
|
function Lo(e) {
|
|
88
|
-
return
|
|
88
|
+
return or(e?.kwargs?.description);
|
|
89
89
|
}
|
|
90
90
|
function Vo(e) {
|
|
91
91
|
const t = e?.kwargs;
|
|
92
92
|
if (!t)
|
|
93
93
|
return [];
|
|
94
|
-
const i =
|
|
95
|
-
return i.length > 0 ? i :
|
|
94
|
+
const i = Oi(t.examples);
|
|
95
|
+
return i.length > 0 ? i : Oi(t.example);
|
|
96
96
|
}
|
|
97
97
|
function Do(e) {
|
|
98
98
|
const t = Qt(e?.enum);
|
|
99
99
|
if (t.length > 0)
|
|
100
100
|
return t;
|
|
101
101
|
const i = Qt(e?.kwargs?.enum);
|
|
102
|
-
return i.length > 0 ? i :
|
|
102
|
+
return i.length > 0 ? i : ur(e?.type);
|
|
103
103
|
}
|
|
104
104
|
function Ro(e, t) {
|
|
105
105
|
return jn(t) ?? e;
|
|
@@ -125,7 +125,7 @@ const $n = ["var", "var_table", "step", "check", "quiz"], Vt = {
|
|
|
125
125
|
csv: "CSV",
|
|
126
126
|
text: "TXT",
|
|
127
127
|
document: "DOC"
|
|
128
|
-
},
|
|
128
|
+
}, lr = {
|
|
129
129
|
csv: "csv",
|
|
130
130
|
png: "image",
|
|
131
131
|
jpg: "image",
|
|
@@ -148,7 +148,7 @@ const $n = ["var", "var_table", "step", "check", "quiz"], Vt = {
|
|
|
148
148
|
docx: "document",
|
|
149
149
|
xlsx: "document",
|
|
150
150
|
pptx: "document"
|
|
151
|
-
},
|
|
151
|
+
}, cr = {
|
|
152
152
|
csv: "text/csv",
|
|
153
153
|
png: "image/png",
|
|
154
154
|
jpg: "image/jpeg",
|
|
@@ -171,7 +171,7 @@ const $n = ["var", "var_table", "step", "check", "quiz"], Vt = {
|
|
|
171
171
|
docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
172
172
|
xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
173
173
|
pptx: "application/vnd.openxmlformats-officedocument.presentationml.presentation"
|
|
174
|
-
},
|
|
174
|
+
}, fr = {
|
|
175
175
|
file: { kind: "file", badge: "FILE" },
|
|
176
176
|
upload: { kind: "file", badge: "FILE" },
|
|
177
177
|
csv: { kind: "csv", accept: ".csv,text/csv", badge: "CSV" },
|
|
@@ -232,7 +232,7 @@ function Mo(e) {
|
|
|
232
232
|
}
|
|
233
233
|
return i;
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function pr(e) {
|
|
236
236
|
return xt(e);
|
|
237
237
|
}
|
|
238
238
|
function Gn(e) {
|
|
@@ -249,7 +249,7 @@ function Gn(e) {
|
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
function Kn(e) {
|
|
252
|
-
const t =
|
|
252
|
+
const t = pr(e);
|
|
253
253
|
if (t == null)
|
|
254
254
|
return "";
|
|
255
255
|
if (typeof t == "string")
|
|
@@ -268,7 +268,7 @@ function Kn(e) {
|
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
270
|
function Jn(e) {
|
|
271
|
-
const t =
|
|
271
|
+
const t = pr(e);
|
|
272
272
|
if (typeof t == "boolean") return t;
|
|
273
273
|
if (typeof t == "number") return t !== 0;
|
|
274
274
|
if (typeof t == "string") {
|
|
@@ -291,20 +291,20 @@ function ui(e, t) {
|
|
|
291
291
|
const i = xe(t?.fileExtension);
|
|
292
292
|
return i || (xe(e?.file_extension) ?? xe(e?.fileExtension) ?? xe(e?.extension));
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function Li(e) {
|
|
295
295
|
const t = Ye(e);
|
|
296
296
|
if (!t)
|
|
297
297
|
return;
|
|
298
298
|
const r = (t.split(/[?#]/, 1)[0] ?? t).match(/\.([A-Za-z0-9]+)$/);
|
|
299
299
|
return xe(r?.[1]);
|
|
300
300
|
}
|
|
301
|
-
function
|
|
302
|
-
const t = e.replace(/^\./, "").toLowerCase(), i =
|
|
301
|
+
function Vi(e) {
|
|
302
|
+
const t = e.replace(/^\./, "").toLowerCase(), i = cr[t];
|
|
303
303
|
return i ? `.${t},${i}` : `.${t}`;
|
|
304
304
|
}
|
|
305
305
|
function Re(e) {
|
|
306
306
|
const t = xe(e);
|
|
307
|
-
return t ?
|
|
307
|
+
return t ? lr[t] : void 0;
|
|
308
308
|
}
|
|
309
309
|
function hr(e) {
|
|
310
310
|
const t = W(e);
|
|
@@ -312,7 +312,7 @@ function hr(e) {
|
|
|
312
312
|
return;
|
|
313
313
|
const i = xe(t.slice(6));
|
|
314
314
|
if (i)
|
|
315
|
-
return
|
|
315
|
+
return lr[i] || cr[i] ? i : void 0;
|
|
316
316
|
}
|
|
317
317
|
function Qn(e) {
|
|
318
318
|
if (!e)
|
|
@@ -345,15 +345,15 @@ function Hn(e, t, i) {
|
|
|
345
345
|
return u || (s === "file" || s === "upload" || s.startsWith("fileid") ? "file" : Re(ui(t, i)));
|
|
346
346
|
}
|
|
347
347
|
function ct(e) {
|
|
348
|
-
return e ? !!
|
|
348
|
+
return e ? !!fr[e] || e.startsWith("fileid") : !1;
|
|
349
349
|
}
|
|
350
350
|
function Yn(e, t, i) {
|
|
351
|
-
const r = W(i?.inputType), n = ct(r) ? r : Ae(e), s = ui(t, i), a = Ye(i?.accept) ?? oi(t, ["accept", "file_accept", "fileAccept"]), u =
|
|
351
|
+
const r = W(i?.inputType), n = ct(r) ? r : Ae(e), s = ui(t, i), a = Ye(i?.accept) ?? oi(t, ["accept", "file_accept", "fileAccept"]), u = fr[n], l = hr(n);
|
|
352
352
|
if (s) {
|
|
353
353
|
const c = Re(s) ?? "file";
|
|
354
354
|
return {
|
|
355
355
|
kind: c,
|
|
356
|
-
accept: a ??
|
|
356
|
+
accept: a ?? Vi(s),
|
|
357
357
|
badge: u?.badge ?? Vt[c]
|
|
358
358
|
};
|
|
359
359
|
}
|
|
@@ -366,7 +366,7 @@ function Yn(e, t, i) {
|
|
|
366
366
|
const c = Re(l) ?? "file";
|
|
367
367
|
return {
|
|
368
368
|
kind: c,
|
|
369
|
-
accept: a ??
|
|
369
|
+
accept: a ?? Vi(l),
|
|
370
370
|
badge: Vt[c]
|
|
371
371
|
};
|
|
372
372
|
}
|
|
@@ -380,14 +380,14 @@ function Xn(e, t, i) {
|
|
|
380
380
|
const r = Ae(e), n = W(i?.inputType);
|
|
381
381
|
return ct(r) || ct(n) || !!ui(t, i) || !!Ye(i?.accept);
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function dr(e, t = zn) {
|
|
384
384
|
const i = xt(e);
|
|
385
385
|
if (typeof i == "string")
|
|
386
386
|
return i.trim() || void 0;
|
|
387
387
|
if (fe(i))
|
|
388
388
|
return oi(i, t);
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function mr(e) {
|
|
391
391
|
return typeof e == "string" && Wn.test(e);
|
|
392
392
|
}
|
|
393
393
|
function Zn(e, t, i = {}) {
|
|
@@ -395,7 +395,7 @@ function Zn(e, t, i = {}) {
|
|
|
395
395
|
if (r)
|
|
396
396
|
return r;
|
|
397
397
|
const n = xt(e);
|
|
398
|
-
return typeof n == "string" ? i.hideAiralogyFileIds &&
|
|
398
|
+
return typeof n == "string" ? i.hideAiralogyFileIds && mr(n) ? "" : n : fe(n) ? oi(n, i.keys ?? [
|
|
399
399
|
"name",
|
|
400
400
|
"fileName",
|
|
401
401
|
"file_name",
|
|
@@ -410,7 +410,7 @@ function Zn(e, t, i = {}) {
|
|
|
410
410
|
]) ?? "" : "";
|
|
411
411
|
}
|
|
412
412
|
function Bo(e, t, i, r, n) {
|
|
413
|
-
return e?.kind ?? Qn(e?.mimeType) ?? Hn(i, r, n) ?? Re(
|
|
413
|
+
return e?.kind ?? Qn(e?.mimeType) ?? Hn(i, r, n) ?? Re(Li(e?.filename ?? e?.name ?? e?.downloadName)) ?? Re(Li(dr(t, Un))) ?? "file";
|
|
414
414
|
}
|
|
415
415
|
function es(e) {
|
|
416
416
|
return !!(e && /^(blob:|data:|https?:|file:|\/|\.\/|\.\.\/)/i.test(e));
|
|
@@ -434,7 +434,7 @@ function Uo(e, t, i) {
|
|
|
434
434
|
const r = W(i?.inputType ?? t?.input_type ?? t?.inputType) || W(e);
|
|
435
435
|
return r === "bool" || r === "boolean" || r === "checkbox";
|
|
436
436
|
}
|
|
437
|
-
const li = /* @__PURE__ */ Symbol.for("yaml.alias"), ts = /* @__PURE__ */ Symbol.for("yaml.document"), Se = /* @__PURE__ */ Symbol.for("yaml.map"),
|
|
437
|
+
const li = /* @__PURE__ */ Symbol.for("yaml.alias"), ts = /* @__PURE__ */ Symbol.for("yaml.document"), Se = /* @__PURE__ */ Symbol.for("yaml.map"), gr = /* @__PURE__ */ Symbol.for("yaml.pair"), ci = /* @__PURE__ */ Symbol.for("yaml.scalar"), Xe = /* @__PURE__ */ Symbol.for("yaml.seq"), ee = /* @__PURE__ */ Symbol.for("yaml.node.type"), Ce = (e) => !!e && typeof e == "object" && e[ee] === li, vt = (e) => !!e && typeof e == "object" && e[ee] === ts, yr = (e) => !!e && typeof e == "object" && e[ee] === Se, D = (e) => !!e && typeof e == "object" && e[ee] === gr, L = (e) => !!e && typeof e == "object" && e[ee] === ci, fi = (e) => !!e && typeof e == "object" && e[ee] === Xe;
|
|
438
438
|
function $(e) {
|
|
439
439
|
if (e && typeof e == "object")
|
|
440
440
|
switch (e[ee]) {
|
|
@@ -455,7 +455,7 @@ function F(e) {
|
|
|
455
455
|
}
|
|
456
456
|
return !1;
|
|
457
457
|
}
|
|
458
|
-
const
|
|
458
|
+
const br = (e) => (L(e) || $(e)) && !!e.anchor, be = /* @__PURE__ */ Symbol("break visit"), is = /* @__PURE__ */ Symbol("skip children"), Ue = /* @__PURE__ */ Symbol("remove node");
|
|
459
459
|
function _t(e, t) {
|
|
460
460
|
const i = rs(t);
|
|
461
461
|
vt(e) ? Oe(null, e.contents, i, Object.freeze([e])) === Ue && (e.contents = null) : Oe(null, e, i, Object.freeze([]));
|
|
@@ -512,7 +512,7 @@ function rs(e) {
|
|
|
512
512
|
function ns(e, t, i, r) {
|
|
513
513
|
if (typeof i == "function")
|
|
514
514
|
return i(e, t, r);
|
|
515
|
-
if (
|
|
515
|
+
if (yr(t))
|
|
516
516
|
return i.Map?.(e, t, r);
|
|
517
517
|
if (fi(t))
|
|
518
518
|
return i.Seq?.(e, t, r);
|
|
@@ -536,7 +536,7 @@ function ss(e, t, i) {
|
|
|
536
536
|
throw new Error(`Cannot replace node with ${n} parent`);
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
|
-
function
|
|
539
|
+
function xr(e) {
|
|
540
540
|
if (/[\x00-\x19\s,[\]{}]/.test(e)) {
|
|
541
541
|
const i = `Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;
|
|
542
542
|
throw new Error(i);
|
|
@@ -571,7 +571,7 @@ function H(e, t, i) {
|
|
|
571
571
|
if (Array.isArray(e))
|
|
572
572
|
return e.map((r, n) => H(r, String(n), i));
|
|
573
573
|
if (e && typeof e.toJSON == "function") {
|
|
574
|
-
if (!i || !
|
|
574
|
+
if (!i || !br(e))
|
|
575
575
|
return e.toJSON(t, i);
|
|
576
576
|
const r = { aliasCount: 0, count: 1, res: void 0 };
|
|
577
577
|
i.anchors.set(e, r), i.onCreate = (s) => {
|
|
@@ -582,7 +582,7 @@ function H(e, t, i) {
|
|
|
582
582
|
}
|
|
583
583
|
return typeof e == "bigint" && !i?.keep ? Number(e) : e;
|
|
584
584
|
}
|
|
585
|
-
class
|
|
585
|
+
class pi {
|
|
586
586
|
constructor(t) {
|
|
587
587
|
Object.defineProperty(this, ee, { value: t });
|
|
588
588
|
}
|
|
@@ -609,7 +609,7 @@ class hi {
|
|
|
609
609
|
return typeof s == "function" ? ze(s, { "": u }, "", u) : u;
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
class as extends
|
|
612
|
+
class as extends pi {
|
|
613
613
|
constructor(t) {
|
|
614
614
|
super(li), this.source = t, Object.defineProperty(this, "tag", {
|
|
615
615
|
set() {
|
|
@@ -625,7 +625,7 @@ class as extends hi {
|
|
|
625
625
|
let r;
|
|
626
626
|
i?.aliasResolveCache ? r = i.aliasResolveCache : (r = [], _t(t, {
|
|
627
627
|
Node: (s, a) => {
|
|
628
|
-
(Ce(a) ||
|
|
628
|
+
(Ce(a) || br(a)) && r.push(a);
|
|
629
629
|
}
|
|
630
630
|
}), i && (i.aliasResolveCache = r));
|
|
631
631
|
let n;
|
|
@@ -658,7 +658,7 @@ class as extends hi {
|
|
|
658
658
|
toString(t, i, r) {
|
|
659
659
|
const n = `*${this.source}`;
|
|
660
660
|
if (t) {
|
|
661
|
-
if (
|
|
661
|
+
if (xr(this.source), t.options.verifyAliasOrder && !t.anchors.has(this.source)) {
|
|
662
662
|
const s = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
|
|
663
663
|
throw new Error(s);
|
|
664
664
|
}
|
|
@@ -685,8 +685,8 @@ function at(e, t, i) {
|
|
|
685
685
|
}
|
|
686
686
|
return 1;
|
|
687
687
|
}
|
|
688
|
-
const
|
|
689
|
-
class T extends
|
|
688
|
+
const vr = (e) => !e || typeof e != "function" && typeof e != "object";
|
|
689
|
+
class T extends pi {
|
|
690
690
|
constructor(t) {
|
|
691
691
|
super(ci), this.value = t;
|
|
692
692
|
}
|
|
@@ -729,10 +729,10 @@ function ft(e, t, i) {
|
|
|
729
729
|
c = e instanceof Map ? a[Se] : Symbol.iterator in Object(e) ? a[Xe] : a[Se];
|
|
730
730
|
}
|
|
731
731
|
s && (s(c), delete i.onTagObj);
|
|
732
|
-
const
|
|
733
|
-
return c.default || (
|
|
732
|
+
const p = c?.createNode ? c.createNode(i.schema, e, i) : typeof c?.nodeClass?.from == "function" ? c.nodeClass.from(i.schema, e, i) : new T(e);
|
|
733
|
+
return c.default || (p.tag = c.tag), l && (l.node = p), p;
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function Di(e, t, i) {
|
|
736
736
|
let r = i;
|
|
737
737
|
for (let n = t.length - 1; n >= 0; --n) {
|
|
738
738
|
const s = t[n];
|
|
@@ -753,7 +753,7 @@ function Vi(e, t, i) {
|
|
|
753
753
|
});
|
|
754
754
|
}
|
|
755
755
|
const us = (e) => e == null || typeof e == "object" && !!e[Symbol.iterator]().next().done;
|
|
756
|
-
class
|
|
756
|
+
class _r extends pi {
|
|
757
757
|
constructor(t, i) {
|
|
758
758
|
super(t), Object.defineProperty(this, "schema", {
|
|
759
759
|
value: i,
|
|
@@ -784,7 +784,7 @@ class vr extends hi {
|
|
|
784
784
|
if ($(s))
|
|
785
785
|
s.addIn(n, i);
|
|
786
786
|
else if (s === void 0 && this.schema)
|
|
787
|
-
this.set(r,
|
|
787
|
+
this.set(r, Di(this.schema, n, i));
|
|
788
788
|
else
|
|
789
789
|
throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`);
|
|
790
790
|
}
|
|
@@ -842,7 +842,7 @@ class vr extends hi {
|
|
|
842
842
|
if ($(s))
|
|
843
843
|
s.setIn(n, i);
|
|
844
844
|
else if (s === void 0 && this.schema)
|
|
845
|
-
this.set(r,
|
|
845
|
+
this.set(r, Di(this.schema, n, i));
|
|
846
846
|
else
|
|
847
847
|
throw new Error(`Expected YAML collection at ${r}. Remaining path: ${n}`);
|
|
848
848
|
}
|
|
@@ -855,7 +855,7 @@ function Je(e, t) {
|
|
|
855
855
|
const Le = (e, t, i) => e.endsWith(`
|
|
856
856
|
`) ? Je(i, t) : i.includes(`
|
|
857
857
|
`) ? `
|
|
858
|
-
` + Je(i, t) : (e.endsWith(" ") ? "" : " ") + i,
|
|
858
|
+
` + Je(i, t) : (e.endsWith(" ") ? "" : " ") + i, Sr = "flow", Ht = "block", ot = "quoted";
|
|
859
859
|
function St(e, t, i = "flow", { indentAtStart: r, lineWidth: n = 80, minContentWidth: s = 20, onFold: a, onOverflow: u } = {}) {
|
|
860
860
|
if (!n || n < 0)
|
|
861
861
|
return e;
|
|
@@ -863,48 +863,48 @@ function St(e, t, i = "flow", { indentAtStart: r, lineWidth: n = 80, minContentW
|
|
|
863
863
|
const l = Math.max(1 + s, 1 + n - t.length);
|
|
864
864
|
if (e.length <= l)
|
|
865
865
|
return e;
|
|
866
|
-
const c = [],
|
|
866
|
+
const c = [], p = {};
|
|
867
867
|
let f = n - t.length;
|
|
868
868
|
typeof r == "number" && (r > n - Math.max(2, s) ? c.push(0) : f = n - r);
|
|
869
|
-
let d, g, y = !1,
|
|
870
|
-
i === Ht && (
|
|
871
|
-
for (let C; C = e[
|
|
869
|
+
let d, g, y = !1, h = -1, m = -1, _ = -1;
|
|
870
|
+
i === Ht && (h = Ri(e, h, t.length), h !== -1 && (f = h + l));
|
|
871
|
+
for (let C; C = e[h += 1]; ) {
|
|
872
872
|
if (i === ot && C === "\\") {
|
|
873
|
-
switch (m =
|
|
873
|
+
switch (m = h, e[h + 1]) {
|
|
874
874
|
case "x":
|
|
875
|
-
|
|
875
|
+
h += 3;
|
|
876
876
|
break;
|
|
877
877
|
case "u":
|
|
878
|
-
|
|
878
|
+
h += 5;
|
|
879
879
|
break;
|
|
880
880
|
case "U":
|
|
881
|
-
|
|
881
|
+
h += 9;
|
|
882
882
|
break;
|
|
883
883
|
default:
|
|
884
|
-
|
|
884
|
+
h += 1;
|
|
885
885
|
}
|
|
886
|
-
_ =
|
|
886
|
+
_ = h;
|
|
887
887
|
}
|
|
888
888
|
if (C === `
|
|
889
889
|
`)
|
|
890
|
-
i === Ht && (
|
|
890
|
+
i === Ht && (h = Ri(e, h, t.length)), f = h + t.length + l, d = void 0;
|
|
891
891
|
else {
|
|
892
892
|
if (C === " " && g && g !== " " && g !== `
|
|
893
893
|
` && g !== " ") {
|
|
894
|
-
const E = e[
|
|
894
|
+
const E = e[h + 1];
|
|
895
895
|
E && E !== " " && E !== `
|
|
896
|
-
` && E !== " " && (d =
|
|
896
|
+
` && E !== " " && (d = h);
|
|
897
897
|
}
|
|
898
|
-
if (
|
|
898
|
+
if (h >= f)
|
|
899
899
|
if (d)
|
|
900
900
|
c.push(d), f = d + l, d = void 0;
|
|
901
901
|
else if (i === ot) {
|
|
902
902
|
for (; g === " " || g === " "; )
|
|
903
|
-
g = C, C = e[
|
|
904
|
-
const E =
|
|
905
|
-
if (
|
|
903
|
+
g = C, C = e[h += 1], y = !0;
|
|
904
|
+
const E = h > _ + 1 ? h - 2 : m - 1;
|
|
905
|
+
if (p[E])
|
|
906
906
|
return e;
|
|
907
|
-
c.push(E),
|
|
907
|
+
c.push(E), p[E] = !0, f = E + l, d = void 0;
|
|
908
908
|
} else
|
|
909
909
|
y = !0;
|
|
910
910
|
}
|
|
@@ -917,12 +917,12 @@ function St(e, t, i = "flow", { indentAtStart: r, lineWidth: n = 80, minContentW
|
|
|
917
917
|
for (let C = 0; C < c.length; ++C) {
|
|
918
918
|
const E = c[C], P = c[C + 1] || e.length;
|
|
919
919
|
E === 0 ? A = `
|
|
920
|
-
${t}${e.slice(0, P)}` : (i === ot &&
|
|
920
|
+
${t}${e.slice(0, P)}` : (i === ot && p[E] && (A += `${e[E]}\\`), A += `
|
|
921
921
|
${t}${e.slice(E + 1, P)}`);
|
|
922
922
|
}
|
|
923
923
|
return A;
|
|
924
924
|
}
|
|
925
|
-
function
|
|
925
|
+
function Ri(e, t, i) {
|
|
926
926
|
let r = t, n = t + 1, s = e[n];
|
|
927
927
|
for (; s === " " || s === " "; )
|
|
928
928
|
if (t < n + i)
|
|
@@ -936,11 +936,11 @@ function Di(e, t, i) {
|
|
|
936
936
|
}
|
|
937
937
|
return r;
|
|
938
938
|
}
|
|
939
|
-
const
|
|
939
|
+
const kt = (e, t) => ({
|
|
940
940
|
indentAtStart: t ? e.indent.length : e.indentAtStart,
|
|
941
941
|
lineWidth: e.options.lineWidth,
|
|
942
942
|
minContentWidth: e.options.minContentWidth
|
|
943
|
-
}),
|
|
943
|
+
}), wt = (e) => /^(%|---|\.\.\.)/m.test(e);
|
|
944
944
|
function cs(e, t, i) {
|
|
945
945
|
if (!t || t < 0)
|
|
946
946
|
return !1;
|
|
@@ -961,7 +961,7 @@ function qe(e, t) {
|
|
|
961
961
|
const i = JSON.stringify(e);
|
|
962
962
|
if (t.options.doubleQuotedAsJSON)
|
|
963
963
|
return i;
|
|
964
|
-
const { implicitKey: r } = t, n = t.options.doubleQuotedMinMultiLineLength, s = t.indent || (
|
|
964
|
+
const { implicitKey: r } = t, n = t.options.doubleQuotedMinMultiLineLength, s = t.indent || (wt(e) ? " " : "");
|
|
965
965
|
let a = "", u = 0;
|
|
966
966
|
for (let l = 0, c = i[l]; c; c = i[++l])
|
|
967
967
|
if (c === " " && i[l + 1] === "\\" && i[l + 2] === "n" && (a += i.slice(u, l) + "\\ ", l += 1, u = l, c = "\\"), c === "\\")
|
|
@@ -969,8 +969,8 @@ function qe(e, t) {
|
|
|
969
969
|
case "u":
|
|
970
970
|
{
|
|
971
971
|
a += i.slice(u, l);
|
|
972
|
-
const
|
|
973
|
-
switch (
|
|
972
|
+
const p = i.substr(l + 2, 4);
|
|
973
|
+
switch (p) {
|
|
974
974
|
case "0000":
|
|
975
975
|
a += "\\0";
|
|
976
976
|
break;
|
|
@@ -996,7 +996,7 @@ function qe(e, t) {
|
|
|
996
996
|
a += "\\P";
|
|
997
997
|
break;
|
|
998
998
|
default:
|
|
999
|
-
|
|
999
|
+
p.substr(0, 2) === "00" ? a += "\\x" + p.substr(2) : a += i.substr(l, 6);
|
|
1000
1000
|
}
|
|
1001
1001
|
l += 5, u = l + 1;
|
|
1002
1002
|
}
|
|
@@ -1016,15 +1016,15 @@ function qe(e, t) {
|
|
|
1016
1016
|
default:
|
|
1017
1017
|
l += 1;
|
|
1018
1018
|
}
|
|
1019
|
-
return a = u ? a + i.slice(u) : i, r ? a : St(a, s, ot,
|
|
1019
|
+
return a = u ? a + i.slice(u) : i, r ? a : St(a, s, ot, kt(t, !1));
|
|
1020
1020
|
}
|
|
1021
1021
|
function Yt(e, t) {
|
|
1022
1022
|
if (t.options.singleQuote === !1 || t.implicitKey && e.includes(`
|
|
1023
1023
|
`) || /[ \t]\n|\n[ \t]/.test(e))
|
|
1024
1024
|
return qe(e, t);
|
|
1025
|
-
const i = t.indent || (
|
|
1025
|
+
const i = t.indent || (wt(e) ? " " : ""), r = "'" + e.replace(/'/g, "''").replace(/\n+/g, `$&
|
|
1026
1026
|
${i}`) + "'";
|
|
1027
|
-
return t.implicitKey ? r : St(r, i,
|
|
1027
|
+
return t.implicitKey ? r : St(r, i, Sr, kt(t, !1));
|
|
1028
1028
|
}
|
|
1029
1029
|
function Ve(e, t) {
|
|
1030
1030
|
const { singleQuote: i } = t.options;
|
|
@@ -1050,9 +1050,9 @@ function ut({ comment: e, type: t, value: i }, r, n, s) {
|
|
|
1050
1050
|
const { blockQuote: a, commentString: u, lineWidth: l } = r.options;
|
|
1051
1051
|
if (!a || /\n[\t ]+$/.test(i))
|
|
1052
1052
|
return Ve(i, r);
|
|
1053
|
-
const c = r.indent || (r.forceBlockIndent ||
|
|
1053
|
+
const c = r.indent || (r.forceBlockIndent || wt(i) ? " " : ""), p = a === "literal" ? !0 : a === "folded" || t === T.BLOCK_FOLDED ? !1 : t === T.BLOCK_LITERAL ? !0 : !cs(i, l, c.length);
|
|
1054
1054
|
if (!i)
|
|
1055
|
-
return
|
|
1055
|
+
return p ? `|
|
|
1056
1056
|
` : `>
|
|
1057
1057
|
`;
|
|
1058
1058
|
let f, d;
|
|
@@ -1067,11 +1067,11 @@ function ut({ comment: e, type: t, value: i }, r, n, s) {
|
|
|
1067
1067
|
`);
|
|
1068
1068
|
y === -1 ? f = "-" : i === g || y !== g.length - 1 ? (f = "+", s && s()) : f = "", g && (i = i.slice(0, -g.length), g[g.length - 1] === `
|
|
1069
1069
|
` && (g = g.slice(0, -1)), g = g.replace(Xt, `$&${c}`));
|
|
1070
|
-
let
|
|
1070
|
+
let h = !1, m, _ = -1;
|
|
1071
1071
|
for (m = 0; m < i.length; ++m) {
|
|
1072
1072
|
const P = i[m];
|
|
1073
1073
|
if (P === " ")
|
|
1074
|
-
|
|
1074
|
+
h = !0;
|
|
1075
1075
|
else if (P === `
|
|
1076
1076
|
`)
|
|
1077
1077
|
_ = m;
|
|
@@ -1080,12 +1080,12 @@ function ut({ comment: e, type: t, value: i }, r, n, s) {
|
|
|
1080
1080
|
}
|
|
1081
1081
|
let A = i.substring(0, _ < m ? _ + 1 : m);
|
|
1082
1082
|
A && (i = i.substring(A.length), A = A.replace(/\n+/g, `$&${c}`));
|
|
1083
|
-
let E = (
|
|
1084
|
-
if (e && (E += " " + u(e.replace(/ ?[\r\n]+/g, " ")), n && n()), !
|
|
1083
|
+
let E = (h ? c ? "2" : "1" : "") + f;
|
|
1084
|
+
if (e && (E += " " + u(e.replace(/ ?[\r\n]+/g, " ")), n && n()), !p) {
|
|
1085
1085
|
const P = i.replace(/\n+/g, `
|
|
1086
1086
|
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${c}`);
|
|
1087
1087
|
let K = !1;
|
|
1088
|
-
const Y =
|
|
1088
|
+
const Y = kt(r, !0);
|
|
1089
1089
|
a !== "folded" && t !== T.BLOCK_FOLDED && (Y.onOverflow = () => {
|
|
1090
1090
|
K = !0;
|
|
1091
1091
|
});
|
|
@@ -1098,17 +1098,17 @@ ${c}${We}`;
|
|
|
1098
1098
|
${c}${A}${i}${g}`;
|
|
1099
1099
|
}
|
|
1100
1100
|
function fs(e, t, i, r) {
|
|
1101
|
-
const { type: n, value: s } = e, { actualString: a, implicitKey: u, indent: l, indentStep: c, inFlow:
|
|
1101
|
+
const { type: n, value: s } = e, { actualString: a, implicitKey: u, indent: l, indentStep: c, inFlow: p } = t;
|
|
1102
1102
|
if (u && s.includes(`
|
|
1103
|
-
`) ||
|
|
1103
|
+
`) || p && /[[\]{},]/.test(s))
|
|
1104
1104
|
return Ve(s, t);
|
|
1105
1105
|
if (/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))
|
|
1106
|
-
return u ||
|
|
1106
|
+
return u || p || !s.includes(`
|
|
1107
1107
|
`) ? Ve(s, t) : ut(e, t, i, r);
|
|
1108
|
-
if (!u && !
|
|
1108
|
+
if (!u && !p && n !== T.PLAIN && s.includes(`
|
|
1109
1109
|
`))
|
|
1110
1110
|
return ut(e, t, i, r);
|
|
1111
|
-
if (
|
|
1111
|
+
if (wt(s)) {
|
|
1112
1112
|
if (l === "")
|
|
1113
1113
|
return t.forceBlockIndent = !0, ut(e, t, i, r);
|
|
1114
1114
|
if (u && l === c)
|
|
@@ -1117,18 +1117,18 @@ function fs(e, t, i, r) {
|
|
|
1117
1117
|
const f = s.replace(/\n+/g, `$&
|
|
1118
1118
|
${l}`);
|
|
1119
1119
|
if (a) {
|
|
1120
|
-
const d = (
|
|
1120
|
+
const d = (h) => h.default && h.tag !== "tag:yaml.org,2002:str" && h.test?.test(f), { compat: g, tags: y } = t.doc.schema;
|
|
1121
1121
|
if (y.some(d) || g?.some(d))
|
|
1122
1122
|
return Ve(s, t);
|
|
1123
1123
|
}
|
|
1124
|
-
return u ? f : St(f, l,
|
|
1124
|
+
return u ? f : St(f, l, Sr, kt(t, !1));
|
|
1125
1125
|
}
|
|
1126
|
-
function
|
|
1126
|
+
function ps(e, t, i, r) {
|
|
1127
1127
|
const { implicitKey: n, inFlow: s } = t, a = typeof e.value == "string" ? e : Object.assign({}, e, { value: String(e.value) });
|
|
1128
1128
|
let { type: u } = e;
|
|
1129
1129
|
u !== T.QUOTE_DOUBLE && /[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value) && (u = T.QUOTE_DOUBLE);
|
|
1130
|
-
const l = (
|
|
1131
|
-
switch (
|
|
1130
|
+
const l = (p) => {
|
|
1131
|
+
switch (p) {
|
|
1132
1132
|
case T.BLOCK_FOLDED:
|
|
1133
1133
|
case T.BLOCK_LITERAL:
|
|
1134
1134
|
return n || s ? Ve(a.value, t) : ut(a, t, i, r);
|
|
@@ -1144,13 +1144,13 @@ function hs(e, t, i, r) {
|
|
|
1144
1144
|
};
|
|
1145
1145
|
let c = l(u);
|
|
1146
1146
|
if (c === null) {
|
|
1147
|
-
const { defaultKeyType:
|
|
1147
|
+
const { defaultKeyType: p, defaultStringType: f } = t.options, d = n && p || f;
|
|
1148
1148
|
if (c = l(d), c === null)
|
|
1149
1149
|
throw new Error(`Unsupported default string type ${d}`);
|
|
1150
1150
|
}
|
|
1151
1151
|
return c;
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1153
|
+
function hs(e, t) {
|
|
1154
1154
|
const i = Object.assign({
|
|
1155
1155
|
blockQuote: !0,
|
|
1156
1156
|
commentString: ls,
|
|
@@ -1218,11 +1218,11 @@ function ms(e, t, { anchors: i, doc: r }) {
|
|
|
1218
1218
|
if (!r.directives)
|
|
1219
1219
|
return "";
|
|
1220
1220
|
const n = [], s = (L(e) || $(e)) && e.anchor;
|
|
1221
|
-
s &&
|
|
1221
|
+
s && xr(s) && (i.add(s), n.push(`&${s}`));
|
|
1222
1222
|
const a = e.tag ?? (t.default ? null : t.tag);
|
|
1223
1223
|
return a && n.push(r.directives.tagString(a)), n.join(" ");
|
|
1224
1224
|
}
|
|
1225
|
-
function
|
|
1225
|
+
function pt(e, t, i, r) {
|
|
1226
1226
|
if (D(e))
|
|
1227
1227
|
return e.toString(t, i, r);
|
|
1228
1228
|
if (Ce(e)) {
|
|
@@ -1237,12 +1237,12 @@ function ht(e, t, i, r) {
|
|
|
1237
1237
|
n ?? (n = ds(t.doc.schema.tags, s));
|
|
1238
1238
|
const a = ms(s, n, t);
|
|
1239
1239
|
a.length > 0 && (t.indentAtStart = (t.indentAtStart ?? 0) + a.length + 1);
|
|
1240
|
-
const u = typeof n.stringify == "function" ? n.stringify(s, t, i, r) : L(s) ?
|
|
1240
|
+
const u = typeof n.stringify == "function" ? n.stringify(s, t, i, r) : L(s) ? ps(s, t, i, r) : s.toString(t, i, r);
|
|
1241
1241
|
return a ? L(s) || u[0] === "{" || u[0] === "[" ? `${a} ${u}` : `${a}
|
|
1242
1242
|
${t.indent}${u}` : u;
|
|
1243
1243
|
}
|
|
1244
1244
|
function gs({ key: e, value: t }, i, r, n) {
|
|
1245
|
-
const { allNullValues: s, doc: a, indent: u, indentStep: l, options: { commentString: c, indentSeq:
|
|
1245
|
+
const { allNullValues: s, doc: a, indent: u, indentStep: l, options: { commentString: c, indentSeq: p, simpleKeys: f } } = i;
|
|
1246
1246
|
let d = F(e) && e.comment || null;
|
|
1247
1247
|
if (f) {
|
|
1248
1248
|
if (d)
|
|
@@ -1258,7 +1258,7 @@ function gs({ key: e, value: t }, i, r, n) {
|
|
|
1258
1258
|
implicitKey: !g && (f || !s),
|
|
1259
1259
|
indent: u + l
|
|
1260
1260
|
});
|
|
1261
|
-
let y = !1,
|
|
1261
|
+
let y = !1, h = !1, m = pt(e, i, () => y = !0, () => h = !0);
|
|
1262
1262
|
if (!g && !i.inFlow && m.length > 1024) {
|
|
1263
1263
|
if (f)
|
|
1264
1264
|
throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
|
|
@@ -1268,13 +1268,13 @@ function gs({ key: e, value: t }, i, r, n) {
|
|
|
1268
1268
|
if (s || t == null)
|
|
1269
1269
|
return y && r && r(), m === "" ? "?" : g ? `? ${m}` : m;
|
|
1270
1270
|
} else if (s && !f || t == null && g)
|
|
1271
|
-
return m = `? ${m}`, d && !y ? m += Le(m, i.indent, c(d)) :
|
|
1271
|
+
return m = `? ${m}`, d && !y ? m += Le(m, i.indent, c(d)) : h && n && n(), m;
|
|
1272
1272
|
y && (d = null), g ? (d && (m += Le(m, i.indent, c(d))), m = `? ${m}
|
|
1273
1273
|
${u}:`) : (m = `${m}:`, d && (m += Le(m, i.indent, c(d))));
|
|
1274
1274
|
let _, A, C;
|
|
1275
|
-
F(t) ? (_ = !!t.spaceBefore, A = t.commentBefore, C = t.comment) : (_ = !1, A = null, C = null, t && typeof t == "object" && (t = a.createNode(t))), i.implicitKey = !1, !g && !d && L(t) && (i.indentAtStart = m.length + 1),
|
|
1275
|
+
F(t) ? (_ = !!t.spaceBefore, A = t.commentBefore, C = t.comment) : (_ = !1, A = null, C = null, t && typeof t == "object" && (t = a.createNode(t))), i.implicitKey = !1, !g && !d && L(t) && (i.indentAtStart = m.length + 1), h = !1, !p && l.length >= 2 && !i.inFlow && !g && fi(t) && !t.flow && !t.tag && !t.anchor && (i.indent = i.indent.substring(2));
|
|
1276
1276
|
let E = !1;
|
|
1277
|
-
const P =
|
|
1277
|
+
const P = pt(t, i, () => E = !0, () => h = !0);
|
|
1278
1278
|
let K = " ";
|
|
1279
1279
|
if (d || _ || A) {
|
|
1280
1280
|
if (K = _ ? `
|
|
@@ -1290,8 +1290,8 @@ ${Je(Y, i.indent)}`;
|
|
|
1290
1290
|
${i.indent}`;
|
|
1291
1291
|
} else if (!g && $(t)) {
|
|
1292
1292
|
const Y = P[0], We = P.indexOf(`
|
|
1293
|
-
`), Ei = We !== -1,
|
|
1294
|
-
if (Ei || !
|
|
1293
|
+
`), Ei = We !== -1, Pn = i.inFlow ?? t.flow ?? t.items.length === 0;
|
|
1294
|
+
if (Ei || !Pn) {
|
|
1295
1295
|
let Ii = !1;
|
|
1296
1296
|
if (Ei && (Y === "&" || Y === "!")) {
|
|
1297
1297
|
let ye = P.indexOf(" ");
|
|
@@ -1302,7 +1302,7 @@ ${i.indent}`);
|
|
|
1302
1302
|
}
|
|
1303
1303
|
} else (P === "" || P[0] === `
|
|
1304
1304
|
`) && (K = "");
|
|
1305
|
-
return m += K + P, i.inFlow ? E && r && r() : C && !E ? m += Le(m, i.indent, c(C)) :
|
|
1305
|
+
return m += K + P, i.inFlow ? E && r && r() : C && !E ? m += Le(m, i.indent, c(C)) : h && n && n(), m;
|
|
1306
1306
|
}
|
|
1307
1307
|
function ys(e, t) {
|
|
1308
1308
|
(e === "debug" || e === "warn") && console.warn(t);
|
|
@@ -1313,11 +1313,11 @@ const rt = "<<", Dt = {
|
|
|
1313
1313
|
tag: "tag:yaml.org,2002:merge",
|
|
1314
1314
|
test: /^<<$/,
|
|
1315
1315
|
resolve: () => Object.assign(new T(Symbol(rt)), {
|
|
1316
|
-
addToJSMap:
|
|
1316
|
+
addToJSMap: kr
|
|
1317
1317
|
}),
|
|
1318
1318
|
stringify: () => rt
|
|
1319
1319
|
}, bs = (e, t) => (Dt.identify(t) || L(t) && (!t.type || t.type === T.PLAIN) && Dt.identify(t.value)) && e?.doc.schema.tags.some((i) => i.tag === Dt.tag && i.default);
|
|
1320
|
-
function
|
|
1320
|
+
function kr(e, t, i) {
|
|
1321
1321
|
if (i = e && Ce(i) ? i.resolve(e.doc) : i, fi(i))
|
|
1322
1322
|
for (const r of i.items)
|
|
1323
1323
|
Rt(e, t, r);
|
|
@@ -1329,7 +1329,7 @@ function Sr(e, t, i) {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
function Rt(e, t, i) {
|
|
1331
1331
|
const r = e && Ce(i) ? i.resolve(e.doc) : i;
|
|
1332
|
-
if (!
|
|
1332
|
+
if (!yr(r))
|
|
1333
1333
|
throw new Error("Merge sources must be maps or map aliases");
|
|
1334
1334
|
const n = r.toJSON(null, e, Map);
|
|
1335
1335
|
for (const [s, a] of n)
|
|
@@ -1345,7 +1345,7 @@ function wr(e, t, { key: i, value: r }) {
|
|
|
1345
1345
|
if (F(i) && i.addToJSMap)
|
|
1346
1346
|
i.addToJSMap(e, t, r);
|
|
1347
1347
|
else if (bs(e, i))
|
|
1348
|
-
|
|
1348
|
+
kr(e, t, r);
|
|
1349
1349
|
else {
|
|
1350
1350
|
const n = H(i, "", e);
|
|
1351
1351
|
if (t instanceof Map)
|
|
@@ -1370,7 +1370,7 @@ function xs(e, t, i) {
|
|
|
1370
1370
|
if (typeof t != "object")
|
|
1371
1371
|
return String(t);
|
|
1372
1372
|
if (F(e) && i?.doc) {
|
|
1373
|
-
const r =
|
|
1373
|
+
const r = hs(i.doc, {});
|
|
1374
1374
|
r.anchors = /* @__PURE__ */ new Set();
|
|
1375
1375
|
for (const s of i.anchors.keys())
|
|
1376
1376
|
r.anchors.add(s.anchor);
|
|
@@ -1384,13 +1384,13 @@ function xs(e, t, i) {
|
|
|
1384
1384
|
}
|
|
1385
1385
|
return JSON.stringify(t);
|
|
1386
1386
|
}
|
|
1387
|
-
function
|
|
1387
|
+
function hi(e, t, i) {
|
|
1388
1388
|
const r = ft(e, void 0, i), n = ft(t, void 0, i);
|
|
1389
1389
|
return new ne(r, n);
|
|
1390
1390
|
}
|
|
1391
1391
|
class ne {
|
|
1392
1392
|
constructor(t, i = null) {
|
|
1393
|
-
Object.defineProperty(this, ee, { value:
|
|
1393
|
+
Object.defineProperty(this, ee, { value: gr }), this.key = t, this.value = i;
|
|
1394
1394
|
}
|
|
1395
1395
|
clone(t) {
|
|
1396
1396
|
let { key: i, value: r } = this;
|
|
@@ -1404,24 +1404,24 @@ class ne {
|
|
|
1404
1404
|
return t?.doc ? gs(this, t, i, r) : JSON.stringify(this);
|
|
1405
1405
|
}
|
|
1406
1406
|
}
|
|
1407
|
-
function
|
|
1407
|
+
function Ar(e, t, i) {
|
|
1408
1408
|
return (t.inFlow ?? e.flow ? _s : vs)(e, t, i);
|
|
1409
1409
|
}
|
|
1410
1410
|
function vs({ comment: e, items: t }, i, { blockItemPrefix: r, flowChars: n, itemIndent: s, onChompKeep: a, onComment: u }) {
|
|
1411
|
-
const { indent: l, options: { commentString: c } } = i,
|
|
1411
|
+
const { indent: l, options: { commentString: c } } = i, p = Object.assign({}, i, { indent: s, type: null });
|
|
1412
1412
|
let f = !1;
|
|
1413
1413
|
const d = [];
|
|
1414
1414
|
for (let y = 0; y < t.length; ++y) {
|
|
1415
|
-
const
|
|
1415
|
+
const h = t[y];
|
|
1416
1416
|
let m = null;
|
|
1417
|
-
if (F(
|
|
1418
|
-
!f &&
|
|
1419
|
-
else if (D(
|
|
1420
|
-
const A = F(
|
|
1421
|
-
A && (!f && A.spaceBefore && d.push(""),
|
|
1417
|
+
if (F(h))
|
|
1418
|
+
!f && h.spaceBefore && d.push(""), ht(i, d, h.commentBefore, f), h.comment && (m = h.comment);
|
|
1419
|
+
else if (D(h)) {
|
|
1420
|
+
const A = F(h.key) ? h.key : null;
|
|
1421
|
+
A && (!f && A.spaceBefore && d.push(""), ht(i, d, A.commentBefore, f));
|
|
1422
1422
|
}
|
|
1423
1423
|
f = !1;
|
|
1424
|
-
let _ =
|
|
1424
|
+
let _ = pt(h, p, () => m = null, () => f = !0);
|
|
1425
1425
|
m && (_ += Le(_, s, c(m))), f && m && (f = !1), d.push(r + _);
|
|
1426
1426
|
}
|
|
1427
1427
|
let g;
|
|
@@ -1430,9 +1430,9 @@ function vs({ comment: e, items: t }, i, { blockItemPrefix: r, flowChars: n, ite
|
|
|
1430
1430
|
else {
|
|
1431
1431
|
g = d[0];
|
|
1432
1432
|
for (let y = 1; y < d.length; ++y) {
|
|
1433
|
-
const
|
|
1434
|
-
g +=
|
|
1435
|
-
${l}${
|
|
1433
|
+
const h = d[y];
|
|
1434
|
+
g += h ? `
|
|
1435
|
+
${l}${h}` : `
|
|
1436
1436
|
`;
|
|
1437
1437
|
}
|
|
1438
1438
|
}
|
|
@@ -1447,43 +1447,43 @@ function _s({ items: e }, t, { flowChars: i, itemIndent: r }) {
|
|
|
1447
1447
|
inFlow: !0,
|
|
1448
1448
|
type: null
|
|
1449
1449
|
});
|
|
1450
|
-
let c = !1,
|
|
1450
|
+
let c = !1, p = 0;
|
|
1451
1451
|
const f = [];
|
|
1452
1452
|
for (let y = 0; y < e.length; ++y) {
|
|
1453
|
-
const
|
|
1453
|
+
const h = e[y];
|
|
1454
1454
|
let m = null;
|
|
1455
|
-
if (F(
|
|
1456
|
-
|
|
1457
|
-
else if (D(
|
|
1458
|
-
const A = F(
|
|
1459
|
-
A && (A.spaceBefore && f.push(""),
|
|
1460
|
-
const C = F(
|
|
1461
|
-
C ? (C.comment && (m = C.comment), C.commentBefore && (c = !0)) :
|
|
1455
|
+
if (F(h))
|
|
1456
|
+
h.spaceBefore && f.push(""), ht(t, f, h.commentBefore, !1), h.comment && (m = h.comment);
|
|
1457
|
+
else if (D(h)) {
|
|
1458
|
+
const A = F(h.key) ? h.key : null;
|
|
1459
|
+
A && (A.spaceBefore && f.push(""), ht(t, f, A.commentBefore, !1), A.comment && (c = !0));
|
|
1460
|
+
const C = F(h.value) ? h.value : null;
|
|
1461
|
+
C ? (C.comment && (m = C.comment), C.commentBefore && (c = !0)) : h.value == null && A?.comment && (m = A.comment);
|
|
1462
1462
|
}
|
|
1463
1463
|
m && (c = !0);
|
|
1464
|
-
let _ =
|
|
1465
|
-
y < e.length - 1 && (_ += ","), m && (_ += Le(_, r, u(m))), !c && (f.length >
|
|
1466
|
-
`)) && (c = !0), f.push(_),
|
|
1464
|
+
let _ = pt(h, l, () => m = null);
|
|
1465
|
+
y < e.length - 1 && (_ += ","), m && (_ += Le(_, r, u(m))), !c && (f.length > p || _.includes(`
|
|
1466
|
+
`)) && (c = !0), f.push(_), p = f.length;
|
|
1467
1467
|
}
|
|
1468
1468
|
const { start: d, end: g } = i;
|
|
1469
1469
|
if (f.length === 0)
|
|
1470
1470
|
return d + g;
|
|
1471
1471
|
if (!c) {
|
|
1472
|
-
const y = f.reduce((
|
|
1472
|
+
const y = f.reduce((h, m) => h + m.length + 2, 2);
|
|
1473
1473
|
c = t.options.lineWidth > 0 && y > t.options.lineWidth;
|
|
1474
1474
|
}
|
|
1475
1475
|
if (c) {
|
|
1476
1476
|
let y = d;
|
|
1477
|
-
for (const
|
|
1478
|
-
y +=
|
|
1479
|
-
${s}${n}${
|
|
1477
|
+
for (const h of f)
|
|
1478
|
+
y += h ? `
|
|
1479
|
+
${s}${n}${h}` : `
|
|
1480
1480
|
`;
|
|
1481
1481
|
return `${y}
|
|
1482
1482
|
${n}${g}`;
|
|
1483
1483
|
} else
|
|
1484
1484
|
return `${d}${a}${f.join(" ")}${a}${g}`;
|
|
1485
1485
|
}
|
|
1486
|
-
function
|
|
1486
|
+
function ht({ indent: e, options: { commentString: t } }, i, r, n) {
|
|
1487
1487
|
if (r && n && (r = r.replace(/^\n+/, "")), r) {
|
|
1488
1488
|
const s = Je(t(r), e);
|
|
1489
1489
|
i.push(s.trimStart());
|
|
@@ -1495,7 +1495,7 @@ function ve(e, t) {
|
|
|
1495
1495
|
if (D(r) && (r.key === t || r.key === i || L(r.key) && r.key.value === i))
|
|
1496
1496
|
return r;
|
|
1497
1497
|
}
|
|
1498
|
-
class Te extends
|
|
1498
|
+
class Te extends _r {
|
|
1499
1499
|
static get tagName() {
|
|
1500
1500
|
return "tag:yaml.org,2002:map";
|
|
1501
1501
|
}
|
|
@@ -1512,7 +1512,7 @@ class Te extends vr {
|
|
|
1512
1512
|
c = s.call(i, l, c);
|
|
1513
1513
|
else if (Array.isArray(s) && !s.includes(l))
|
|
1514
1514
|
return;
|
|
1515
|
-
(c !== void 0 || n) && a.items.push(
|
|
1515
|
+
(c !== void 0 || n) && a.items.push(hi(l, c, r));
|
|
1516
1516
|
};
|
|
1517
1517
|
if (i instanceof Map)
|
|
1518
1518
|
for (const [l, c] of i)
|
|
@@ -1535,7 +1535,7 @@ class Te extends vr {
|
|
|
1535
1535
|
if (n) {
|
|
1536
1536
|
if (!i)
|
|
1537
1537
|
throw new Error(`Key ${r.key} already set`);
|
|
1538
|
-
L(n.value) &&
|
|
1538
|
+
L(n.value) && vr(r.value) ? n.value.value = r.value : n.value = r.value;
|
|
1539
1539
|
} else if (s) {
|
|
1540
1540
|
const a = this.items.findIndex((u) => s(r, u) < 0);
|
|
1541
1541
|
a === -1 ? this.items.push(r) : this.items.splice(a, 0, r);
|
|
@@ -1574,7 +1574,7 @@ class Te extends vr {
|
|
|
1574
1574
|
for (const n of this.items)
|
|
1575
1575
|
if (!D(n))
|
|
1576
1576
|
throw new Error(`Map items must all be pairs; found ${JSON.stringify(n)} instead`);
|
|
1577
|
-
return !t.allNullValues && this.hasAllNullValues(!1) && (t = Object.assign({}, t, { allNullValues: !0 })),
|
|
1577
|
+
return !t.allNullValues && this.hasAllNullValues(!1) && (t = Object.assign({}, t, { allNullValues: !0 })), Ar(this, t, {
|
|
1578
1578
|
blockItemPrefix: "",
|
|
1579
1579
|
flowChars: { start: "{", end: "}" },
|
|
1580
1580
|
itemIndent: t.indent || "",
|
|
@@ -1583,7 +1583,7 @@ class Te extends vr {
|
|
|
1583
1583
|
});
|
|
1584
1584
|
}
|
|
1585
1585
|
}
|
|
1586
|
-
class
|
|
1586
|
+
class Cr extends _r {
|
|
1587
1587
|
static get tagName() {
|
|
1588
1588
|
return "tag:yaml.org,2002:seq";
|
|
1589
1589
|
}
|
|
@@ -1634,7 +1634,7 @@ class Ar extends vr {
|
|
|
1634
1634
|
if (typeof r != "number")
|
|
1635
1635
|
throw new Error(`Expected a valid index, not ${t}.`);
|
|
1636
1636
|
const n = this.items[r];
|
|
1637
|
-
L(n) &&
|
|
1637
|
+
L(n) && vr(i) ? n.value = i : this.items[r] = i;
|
|
1638
1638
|
}
|
|
1639
1639
|
toJSON(t, i) {
|
|
1640
1640
|
const r = [];
|
|
@@ -1645,7 +1645,7 @@ class Ar extends vr {
|
|
|
1645
1645
|
return r;
|
|
1646
1646
|
}
|
|
1647
1647
|
toString(t, i, r) {
|
|
1648
|
-
return t ?
|
|
1648
|
+
return t ? Ar(this, t, {
|
|
1649
1649
|
blockItemPrefix: "- ",
|
|
1650
1650
|
flowChars: { start: "[", end: "]" },
|
|
1651
1651
|
itemIndent: (t.indent || "") + " ",
|
|
@@ -1673,7 +1673,7 @@ function nt(e) {
|
|
|
1673
1673
|
return t && typeof t == "string" && (t = Number(t)), typeof t == "number" && Number.isInteger(t) && t >= 0 ? t : null;
|
|
1674
1674
|
}
|
|
1675
1675
|
function Ss(e, t, i) {
|
|
1676
|
-
const { replacer: r } = i, n = new
|
|
1676
|
+
const { replacer: r } = i, n = new Cr(e);
|
|
1677
1677
|
n.tag = "tag:yaml.org,2002:pairs";
|
|
1678
1678
|
let s = 0;
|
|
1679
1679
|
if (t && Symbol.iterator in Object(t))
|
|
@@ -1693,11 +1693,11 @@ function Ss(e, t, i) {
|
|
|
1693
1693
|
throw new TypeError(`Expected tuple with one key, not ${c.length} keys`);
|
|
1694
1694
|
} else
|
|
1695
1695
|
u = a;
|
|
1696
|
-
n.items.push(
|
|
1696
|
+
n.items.push(hi(u, l, i));
|
|
1697
1697
|
}
|
|
1698
1698
|
return n;
|
|
1699
1699
|
}
|
|
1700
|
-
class di extends
|
|
1700
|
+
class di extends Cr {
|
|
1701
1701
|
constructor() {
|
|
1702
1702
|
super(), this.add = Te.prototype.add.bind(this), this.delete = Te.prototype.delete.bind(this), this.get = Te.prototype.get.bind(this), this.has = Te.prototype.has.bind(this), this.set = Te.prototype.set.bind(this), this.tag = di.tag;
|
|
1703
1703
|
}
|
|
@@ -1760,7 +1760,7 @@ class mi extends Te {
|
|
|
1760
1760
|
const { replacer: n } = r, s = new this(t);
|
|
1761
1761
|
if (i && Symbol.iterator in Object(i))
|
|
1762
1762
|
for (let a of i)
|
|
1763
|
-
typeof n == "function" && (a = n.call(i, a, a)), s.items.push(
|
|
1763
|
+
typeof n == "function" && (a = n.call(i, a, a)), s.items.push(hi(a, null, r));
|
|
1764
1764
|
return s;
|
|
1765
1765
|
}
|
|
1766
1766
|
}
|
|
@@ -1770,11 +1770,11 @@ new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=
|
|
|
1770
1770
|
new Set(",[]{}");
|
|
1771
1771
|
new Set(` ,[]{}
|
|
1772
1772
|
\r `);
|
|
1773
|
-
var
|
|
1773
|
+
var ke = 1e6, Fi = 1e6, Ze = "[big.js] ", et = Ze + "Invalid ", At = et + "decimal places", ks = et + "rounding mode", Er = Ze + "Division by zero", I = {}, se = void 0;
|
|
1774
1774
|
function Ee(e, t, i, r) {
|
|
1775
1775
|
var n = e.c;
|
|
1776
1776
|
if (i === se && (i = e.constructor.RM), i !== 0 && i !== 1 && i !== 2 && i !== 3)
|
|
1777
|
-
throw Error(
|
|
1777
|
+
throw Error(ks);
|
|
1778
1778
|
if (t < 1)
|
|
1779
1779
|
r = i === 3 && (r || !!n[0]) || t === 0 && (i === 1 && n[0] >= 5 || i === 2 && (n[0] > 5 || n[0] === 5 && (r || n[1] !== se))), n.length = 1, r ? (e.e = e.e - t + 1, n[0] = 1) : n[0] = e.e = 0;
|
|
1780
1780
|
else if (t < n.length) {
|
|
@@ -1818,39 +1818,39 @@ I.cmp = function(e) {
|
|
|
1818
1818
|
};
|
|
1819
1819
|
I.div = function(e) {
|
|
1820
1820
|
var t = this, i = t.constructor, r = t.c, n = (e = new i(e)).c, s = t.s == e.s ? 1 : -1, a = i.DP;
|
|
1821
|
-
if (a !== ~~a || a < 0 || a >
|
|
1821
|
+
if (a !== ~~a || a < 0 || a > ke)
|
|
1822
1822
|
throw Error(At);
|
|
1823
1823
|
if (!n[0])
|
|
1824
|
-
throw Error(
|
|
1824
|
+
throw Error(Er);
|
|
1825
1825
|
if (!r[0])
|
|
1826
1826
|
return e.s = s, e.c = [e.e = 0], e;
|
|
1827
|
-
var u, l, c,
|
|
1828
|
-
for (_.s = s, s = E < 0 ? 0 : E, d.unshift(0); m++ < u; )
|
|
1827
|
+
var u, l, c, p, f, d = n.slice(), g = u = n.length, y = r.length, h = r.slice(0, u), m = h.length, _ = e, A = _.c = [], C = 0, E = a + (_.e = t.e - e.e) + 1;
|
|
1828
|
+
for (_.s = s, s = E < 0 ? 0 : E, d.unshift(0); m++ < u; ) h.push(0);
|
|
1829
1829
|
do {
|
|
1830
1830
|
for (c = 0; c < 10; c++) {
|
|
1831
|
-
if (u != (m =
|
|
1832
|
-
|
|
1831
|
+
if (u != (m = h.length))
|
|
1832
|
+
p = u > m ? 1 : -1;
|
|
1833
1833
|
else
|
|
1834
|
-
for (f = -1,
|
|
1835
|
-
if (n[f] !=
|
|
1836
|
-
|
|
1834
|
+
for (f = -1, p = 0; ++f < u; )
|
|
1835
|
+
if (n[f] != h[f]) {
|
|
1836
|
+
p = n[f] > h[f] ? 1 : -1;
|
|
1837
1837
|
break;
|
|
1838
1838
|
}
|
|
1839
|
-
if (
|
|
1839
|
+
if (p < 0) {
|
|
1840
1840
|
for (l = m == u ? n : d; m; ) {
|
|
1841
|
-
if (
|
|
1842
|
-
for (f = m; f && !
|
|
1843
|
-
--
|
|
1841
|
+
if (h[--m] < l[m]) {
|
|
1842
|
+
for (f = m; f && !h[--f]; ) h[f] = 9;
|
|
1843
|
+
--h[f], h[m] += 10;
|
|
1844
1844
|
}
|
|
1845
|
-
|
|
1845
|
+
h[m] -= l[m];
|
|
1846
1846
|
}
|
|
1847
|
-
for (; !
|
|
1847
|
+
for (; !h[0]; ) h.shift();
|
|
1848
1848
|
} else
|
|
1849
1849
|
break;
|
|
1850
1850
|
}
|
|
1851
|
-
A[C++] =
|
|
1852
|
-
} while ((g++ < y ||
|
|
1853
|
-
return !A[0] && C != 1 && (A.shift(), _.e--, E--), C > E && Ee(_, E, i.RM,
|
|
1851
|
+
A[C++] = p ? c : ++c, h[0] && p ? h[m] = r[g] || 0 : h = [r[g]];
|
|
1852
|
+
} while ((g++ < y || h[0] !== se) && s--);
|
|
1853
|
+
return !A[0] && C != 1 && (A.shift(), _.e--, E--), C > E && Ee(_, E, i.RM, h[0] !== se), _;
|
|
1854
1854
|
};
|
|
1855
1855
|
I.eq = function(e) {
|
|
1856
1856
|
return this.cmp(e) === 0;
|
|
@@ -1871,11 +1871,11 @@ I.minus = I.sub = function(e) {
|
|
|
1871
1871
|
var t, i, r, n, s = this, a = s.constructor, u = s.s, l = (e = new a(e)).s;
|
|
1872
1872
|
if (u != l)
|
|
1873
1873
|
return e.s = -l, s.plus(e);
|
|
1874
|
-
var c = s.c.slice(),
|
|
1874
|
+
var c = s.c.slice(), p = s.e, f = e.c, d = e.e;
|
|
1875
1875
|
if (!c[0] || !f[0])
|
|
1876
1876
|
return f[0] ? e.s = -l : c[0] ? e = new a(s) : e.s = 1, e;
|
|
1877
|
-
if (u =
|
|
1878
|
-
for ((n = u < 0) ? (u = -u, r = c) : (d =
|
|
1877
|
+
if (u = p - d) {
|
|
1878
|
+
for ((n = u < 0) ? (u = -u, r = c) : (d = p, r = f), r.reverse(), l = u; l--; ) r.push(0);
|
|
1879
1879
|
r.reverse();
|
|
1880
1880
|
} else
|
|
1881
1881
|
for (i = ((n = c.length < f.length) ? c : f).length, u = l = 0; l < i; l++)
|
|
@@ -1899,7 +1899,7 @@ I.minus = I.sub = function(e) {
|
|
|
1899
1899
|
I.mod = function(e) {
|
|
1900
1900
|
var t, i = this, r = i.constructor, n = i.s, s = (e = new r(e)).s;
|
|
1901
1901
|
if (!e.c[0])
|
|
1902
|
-
throw Error(
|
|
1902
|
+
throw Error(Er);
|
|
1903
1903
|
return i.s = e.s = 1, t = e.cmp(i) == 1, i.s = n, e.s = s, t ? new r(i) : (n = r.DP, s = r.RM, r.DP = r.RM = 0, i = i.div(e), r.DP = n, r.RM = s, this.minus(i.times(e)));
|
|
1904
1904
|
};
|
|
1905
1905
|
I.neg = function() {
|
|
@@ -1923,20 +1923,20 @@ I.plus = I.add = function(e) {
|
|
|
1923
1923
|
};
|
|
1924
1924
|
I.pow = function(e) {
|
|
1925
1925
|
var t = this, i = new t.constructor("1"), r = i, n = e < 0;
|
|
1926
|
-
if (e !== ~~e || e < -
|
|
1926
|
+
if (e !== ~~e || e < -Fi || e > Fi)
|
|
1927
1927
|
throw Error(et + "exponent");
|
|
1928
1928
|
for (n && (e = -e); e & 1 && (r = r.times(t)), e >>= 1, !!e; )
|
|
1929
1929
|
t = t.times(t);
|
|
1930
1930
|
return n ? i.div(r) : r;
|
|
1931
1931
|
};
|
|
1932
1932
|
I.prec = function(e, t) {
|
|
1933
|
-
if (e !== ~~e || e < 1 || e >
|
|
1933
|
+
if (e !== ~~e || e < 1 || e > ke)
|
|
1934
1934
|
throw Error(et + "precision");
|
|
1935
1935
|
return Ee(new this.constructor(this), e, t);
|
|
1936
1936
|
};
|
|
1937
1937
|
I.round = function(e, t) {
|
|
1938
1938
|
if (e === se) e = 0;
|
|
1939
|
-
else if (e !== ~~e || e < -
|
|
1939
|
+
else if (e !== ~~e || e < -ke || e > ke)
|
|
1940
1940
|
throw Error(At);
|
|
1941
1941
|
return Ee(new this.constructor(this), e + this.e + 1, t);
|
|
1942
1942
|
};
|
|
@@ -1967,7 +1967,7 @@ I.times = I.mul = function(e) {
|
|
|
1967
1967
|
I.toExponential = function(e, t) {
|
|
1968
1968
|
var i = this, r = i.c[0];
|
|
1969
1969
|
if (e !== se) {
|
|
1970
|
-
if (e !== ~~e || e < 0 || e >
|
|
1970
|
+
if (e !== ~~e || e < 0 || e > ke)
|
|
1971
1971
|
throw Error(At);
|
|
1972
1972
|
for (i = Ee(new i.constructor(i), ++e, t); i.c.length < e; ) i.c.push(0);
|
|
1973
1973
|
}
|
|
@@ -1976,7 +1976,7 @@ I.toExponential = function(e, t) {
|
|
|
1976
1976
|
I.toFixed = function(e, t) {
|
|
1977
1977
|
var i = this, r = i.c[0];
|
|
1978
1978
|
if (e !== se) {
|
|
1979
|
-
if (e !== ~~e || e < 0 || e >
|
|
1979
|
+
if (e !== ~~e || e < 0 || e > ke)
|
|
1980
1980
|
throw Error(At);
|
|
1981
1981
|
for (i = Ee(new i.constructor(i), e + i.e + 1, t), e = e + i.e + 1; i.c.length < e; ) i.c.push(0);
|
|
1982
1982
|
}
|
|
@@ -1995,7 +1995,7 @@ I.toNumber = function() {
|
|
|
1995
1995
|
I.toPrecision = function(e, t) {
|
|
1996
1996
|
var i = this, r = i.constructor, n = i.c[0];
|
|
1997
1997
|
if (e !== se) {
|
|
1998
|
-
if (e !== ~~e || e < 1 || e >
|
|
1998
|
+
if (e !== ~~e || e < 1 || e > ke)
|
|
1999
1999
|
throw Error(et + "precision");
|
|
2000
2000
|
for (i = Ee(new r(i), e, t); i.c.length < e; ) i.c.push(0);
|
|
2001
2001
|
}
|
|
@@ -2007,7 +2007,7 @@ I.valueOf = function() {
|
|
|
2007
2007
|
throw Error(Ze + "valueOf disallowed");
|
|
2008
2008
|
return Ie(e, e.e <= t.NE || e.e >= t.PE, !0);
|
|
2009
2009
|
};
|
|
2010
|
-
function
|
|
2010
|
+
function ws() {
|
|
2011
2011
|
return {
|
|
2012
2012
|
var: {},
|
|
2013
2013
|
step: {},
|
|
@@ -2021,7 +2021,7 @@ function gi() {
|
|
|
2021
2021
|
annotation: ""
|
|
2022
2022
|
};
|
|
2023
2023
|
}
|
|
2024
|
-
function
|
|
2024
|
+
function Ir() {
|
|
2025
2025
|
return {
|
|
2026
2026
|
...gi(),
|
|
2027
2027
|
elapsed_ms: 0,
|
|
@@ -2130,7 +2130,7 @@ function Zt(e) {
|
|
|
2130
2130
|
return e == null || typeof e != "object" ? JSON.stringify(e) : Array.isArray(e) ? `[${e.map((i) => Zt(i)).join(",")}]` : `{${Object.entries(e).sort(([i], [r]) => i.localeCompare(r)).map(([i, r]) => `${JSON.stringify(i)}:${Zt(r)}`).join(",")}}`;
|
|
2131
2131
|
}
|
|
2132
2132
|
function iu(e) {
|
|
2133
|
-
return Zt(
|
|
2133
|
+
return Zt(Nr(e));
|
|
2134
2134
|
}
|
|
2135
2135
|
function Es(e) {
|
|
2136
2136
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
@@ -2143,7 +2143,7 @@ function Es(e) {
|
|
|
2143
2143
|
}
|
|
2144
2144
|
function Is(e) {
|
|
2145
2145
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
2146
|
-
return
|
|
2146
|
+
return Ir();
|
|
2147
2147
|
const t = e;
|
|
2148
2148
|
return {
|
|
2149
2149
|
checked: !!t.checked,
|
|
@@ -2151,8 +2151,8 @@ function Is(e) {
|
|
|
2151
2151
|
...Cs(t)
|
|
2152
2152
|
};
|
|
2153
2153
|
}
|
|
2154
|
-
function
|
|
2155
|
-
const t =
|
|
2154
|
+
function Nr(e) {
|
|
2155
|
+
const t = ws();
|
|
2156
2156
|
if (!e || typeof e != "object")
|
|
2157
2157
|
return t;
|
|
2158
2158
|
if (e.var && typeof e.var == "object" && (t.var = { ...e.var }), e.quiz && typeof e.quiz == "object" && (t.quiz = { ...e.quiz }), e.step && typeof e.step == "object")
|
|
@@ -2172,7 +2172,7 @@ function Ns(e, t) {
|
|
|
2172
2172
|
st(e.var, t.var), st(e.step, t.step), st(e.check, t.check), st(e.quiz, t.quiz);
|
|
2173
2173
|
}
|
|
2174
2174
|
function ru(e, t) {
|
|
2175
|
-
Ns(e,
|
|
2175
|
+
Ns(e, Nr(t));
|
|
2176
2176
|
}
|
|
2177
2177
|
function Ts(e) {
|
|
2178
2178
|
return Array.isArray(e) ? e.map((t) => typeof t == "string" && t.trim() ? { name: t.trim() } : t && typeof t == "object" && typeof t.name == "string" ? { name: t.name } : null).filter((t) => t !== null) : [];
|
|
@@ -2203,7 +2203,7 @@ function Os(e) {
|
|
|
2203
2203
|
function Ls(e) {
|
|
2204
2204
|
return Array.isArray(e) ? e.filter((t) => !!t && typeof t == "object" && typeof t.id == "string" && Array.isArray(t.subvars)) : [];
|
|
2205
2205
|
}
|
|
2206
|
-
function
|
|
2206
|
+
function Mi(e) {
|
|
2207
2207
|
return (e.type === "choice" || e.type === "true_false") && Array.isArray(e.options) && e.options.some((t) => Array.isArray(t.followups) && t.followups.length > 0);
|
|
2208
2208
|
}
|
|
2209
2209
|
function Ft(e, t) {
|
|
@@ -2220,7 +2220,7 @@ function Ft(e, t) {
|
|
|
2220
2220
|
}
|
|
2221
2221
|
function Vs(e) {
|
|
2222
2222
|
if (e.type === "choice") {
|
|
2223
|
-
const t = new Set((e.options || []).map((n) => n.key)), i =
|
|
2223
|
+
const t = new Set((e.options || []).map((n) => n.key)), i = Mi(e);
|
|
2224
2224
|
if (e.mode === "multiple") {
|
|
2225
2225
|
let n = [];
|
|
2226
2226
|
return Array.isArray(e.default) && (n = e.default.filter((s) => typeof s == "string" && t.has(s))), i ? {
|
|
@@ -2236,7 +2236,7 @@ function Vs(e) {
|
|
|
2236
2236
|
}
|
|
2237
2237
|
if (e.type === "true_false") {
|
|
2238
2238
|
const t = typeof e.default == "boolean" ? e.default : null;
|
|
2239
|
-
return t !== null &&
|
|
2239
|
+
return t !== null && Mi(e) ? {
|
|
2240
2240
|
selected: t,
|
|
2241
2241
|
followups: Ft(e, [String(t)])
|
|
2242
2242
|
} : t;
|
|
@@ -2274,7 +2274,7 @@ function lt(e) {
|
|
|
2274
2274
|
t[i] = "";
|
|
2275
2275
|
return t;
|
|
2276
2276
|
}
|
|
2277
|
-
function
|
|
2277
|
+
function Bi(e, t) {
|
|
2278
2278
|
if (!Array.isArray(e))
|
|
2279
2279
|
return [lt(t)];
|
|
2280
2280
|
const i = e.map((r) => {
|
|
@@ -2289,7 +2289,7 @@ function Mi(e, t) {
|
|
|
2289
2289
|
});
|
|
2290
2290
|
return i.length === 0 && i.push(lt(t)), i;
|
|
2291
2291
|
}
|
|
2292
|
-
function
|
|
2292
|
+
function ji(e, t) {
|
|
2293
2293
|
return e.length !== 1 ? !1 : t.every((i) => e[0]?.[i] === "");
|
|
2294
2294
|
}
|
|
2295
2295
|
function nu(e) {
|
|
@@ -2308,39 +2308,39 @@ function su(e, t, i, r, n, s) {
|
|
|
2308
2308
|
return { rowsAdded: 0, changedCells: a };
|
|
2309
2309
|
const u = new Set(s?.disabledColumns ?? []);
|
|
2310
2310
|
let l = 0;
|
|
2311
|
-
for (const [c,
|
|
2312
|
-
const f = i + c, d =
|
|
2311
|
+
for (const [c, p] of n.entries()) {
|
|
2312
|
+
const f = i + c, d = p.map((y, h) => ({
|
|
2313
2313
|
value: y,
|
|
2314
|
-
columnIndex: r +
|
|
2315
|
-
})).filter(({ columnIndex: y }) => y >= 0 && y < t.length).map(({ value: y, columnIndex:
|
|
2314
|
+
columnIndex: r + h
|
|
2315
|
+
})).filter(({ columnIndex: y }) => y >= 0 && y < t.length).map(({ value: y, columnIndex: h }) => ({
|
|
2316
2316
|
value: y,
|
|
2317
|
-
column: t[
|
|
2317
|
+
column: t[h]
|
|
2318
2318
|
})).filter(({ column: y }) => !u.has(y));
|
|
2319
2319
|
if (d.length === 0)
|
|
2320
2320
|
continue;
|
|
2321
2321
|
for (; f >= e.length; )
|
|
2322
2322
|
e.push(lt(t)), l += 1;
|
|
2323
2323
|
const g = e[f];
|
|
2324
|
-
for (const { column: y, value:
|
|
2325
|
-
g[y] !==
|
|
2324
|
+
for (const { column: y, value: h } of d)
|
|
2325
|
+
g[y] !== h && (g[y] = h, a.push({ rowIndex: f, column: y, value: h }));
|
|
2326
2326
|
}
|
|
2327
2327
|
return { rowsAdded: l, changedCells: a };
|
|
2328
2328
|
}
|
|
2329
2329
|
function au(e, t) {
|
|
2330
2330
|
let i = !1;
|
|
2331
2331
|
for (const r of Ls(t.var_table)) {
|
|
2332
|
-
const n = r.subvars.map((f) => f.id), s = r.id in e.var, a = Array.isArray(r.default) && r.default.length > 0 ?
|
|
2333
|
-
(!s || JSON.stringify(
|
|
2332
|
+
const n = r.subvars.map((f) => f.id), s = r.id in e.var, a = Array.isArray(r.default) && r.default.length > 0 ? Bi(r.default, n) : void 0, u = s ? e.var[r.id] : a ?? r.default, l = Bi(u, n), p = !!(s && a && ji(l, n) && !ji(a, n)) && a ? a : l;
|
|
2333
|
+
(!s || JSON.stringify(p) !== JSON.stringify(u)) && (e.var[r.id] = p, i = !0);
|
|
2334
2334
|
}
|
|
2335
2335
|
for (const r of Ts(t.step))
|
|
2336
|
-
r.name in e.step || (e.step[r.name] =
|
|
2336
|
+
r.name in e.step || (e.step[r.name] = Ir(), i = !0);
|
|
2337
2337
|
for (const r of Ps(t.check))
|
|
2338
2338
|
r.name in e.check || (e.check[r.name] = gi(), i = !0);
|
|
2339
2339
|
for (const r of Os(t.quiz))
|
|
2340
2340
|
r.id in e.quiz || (e.quiz[r.id] = Vs(r), i = !0);
|
|
2341
2341
|
return i;
|
|
2342
2342
|
}
|
|
2343
|
-
var Ds = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239],
|
|
2343
|
+
var Ds = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], Tr = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], Rs = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", Pr = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", Mt = {
|
|
2344
2344
|
3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",
|
|
2345
2345
|
5: "class enum extends super const export import",
|
|
2346
2346
|
6: "enum",
|
|
@@ -2350,7 +2350,7 @@ var Ds = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166,
|
|
|
2350
2350
|
5: Bt,
|
|
2351
2351
|
"5module": Bt + " export import",
|
|
2352
2352
|
6: Bt + " const class extends export import super"
|
|
2353
|
-
}, Ms = /^in(stanceof)?$/, Bs = new RegExp("[" +
|
|
2353
|
+
}, Ms = /^in(stanceof)?$/, Bs = new RegExp("[" + Pr + "]"), js = new RegExp("[" + Pr + Rs + "]");
|
|
2354
2354
|
function ei(e, t) {
|
|
2355
2355
|
for (var i = 65536, r = 0; r < t.length; r += 2) {
|
|
2356
2356
|
if (i += t[r], i > e)
|
|
@@ -2361,47 +2361,47 @@ function ei(e, t) {
|
|
|
2361
2361
|
return !1;
|
|
2362
2362
|
}
|
|
2363
2363
|
function Z(e, t) {
|
|
2364
|
-
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Bs.test(String.fromCharCode(e)) : t === !1 ? !1 : ei(e,
|
|
2364
|
+
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Bs.test(String.fromCharCode(e)) : t === !1 ? !1 : ei(e, Tr);
|
|
2365
2365
|
}
|
|
2366
|
-
function
|
|
2367
|
-
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && js.test(String.fromCharCode(e)) : t === !1 ? !1 : ei(e,
|
|
2366
|
+
function pe(e, t) {
|
|
2367
|
+
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && js.test(String.fromCharCode(e)) : t === !1 ? !1 : ei(e, Tr) || ei(e, Ds);
|
|
2368
2368
|
}
|
|
2369
|
-
var
|
|
2369
|
+
var w = function(t, i) {
|
|
2370
2370
|
i === void 0 && (i = {}), this.label = t, this.keyword = i.keyword, this.beforeExpr = !!i.beforeExpr, this.startsExpr = !!i.startsExpr, this.isLoop = !!i.isLoop, this.isAssign = !!i.isAssign, this.prefix = !!i.prefix, this.postfix = !!i.postfix, this.binop = i.binop || null, this.updateContext = null;
|
|
2371
2371
|
};
|
|
2372
2372
|
function z(e, t) {
|
|
2373
|
-
return new
|
|
2373
|
+
return new w(e, { beforeExpr: !0, binop: t });
|
|
2374
2374
|
}
|
|
2375
2375
|
var U = { beforeExpr: !0 }, B = { startsExpr: !0 }, yi = {};
|
|
2376
|
-
function
|
|
2377
|
-
return t === void 0 && (t = {}), t.keyword = e, yi[e] = new
|
|
2376
|
+
function k(e, t) {
|
|
2377
|
+
return t === void 0 && (t = {}), t.keyword = e, yi[e] = new w(e, t);
|
|
2378
2378
|
}
|
|
2379
2379
|
var o = {
|
|
2380
|
-
num: new
|
|
2381
|
-
regexp: new
|
|
2382
|
-
string: new
|
|
2383
|
-
name: new
|
|
2384
|
-
privateId: new
|
|
2385
|
-
eof: new
|
|
2380
|
+
num: new w("num", B),
|
|
2381
|
+
regexp: new w("regexp", B),
|
|
2382
|
+
string: new w("string", B),
|
|
2383
|
+
name: new w("name", B),
|
|
2384
|
+
privateId: new w("privateId", B),
|
|
2385
|
+
eof: new w("eof"),
|
|
2386
2386
|
// Punctuation token types.
|
|
2387
|
-
bracketL: new
|
|
2388
|
-
bracketR: new
|
|
2389
|
-
braceL: new
|
|
2390
|
-
braceR: new
|
|
2391
|
-
parenL: new
|
|
2392
|
-
parenR: new
|
|
2393
|
-
comma: new
|
|
2394
|
-
semi: new
|
|
2395
|
-
colon: new
|
|
2396
|
-
dot: new
|
|
2397
|
-
question: new
|
|
2398
|
-
questionDot: new
|
|
2399
|
-
arrow: new
|
|
2400
|
-
template: new
|
|
2401
|
-
invalidTemplate: new
|
|
2402
|
-
ellipsis: new
|
|
2403
|
-
backQuote: new
|
|
2404
|
-
dollarBraceL: new
|
|
2387
|
+
bracketL: new w("[", { beforeExpr: !0, startsExpr: !0 }),
|
|
2388
|
+
bracketR: new w("]"),
|
|
2389
|
+
braceL: new w("{", { beforeExpr: !0, startsExpr: !0 }),
|
|
2390
|
+
braceR: new w("}"),
|
|
2391
|
+
parenL: new w("(", { beforeExpr: !0, startsExpr: !0 }),
|
|
2392
|
+
parenR: new w(")"),
|
|
2393
|
+
comma: new w(",", U),
|
|
2394
|
+
semi: new w(";", U),
|
|
2395
|
+
colon: new w(":", U),
|
|
2396
|
+
dot: new w("."),
|
|
2397
|
+
question: new w("?", U),
|
|
2398
|
+
questionDot: new w("?."),
|
|
2399
|
+
arrow: new w("=>", U),
|
|
2400
|
+
template: new w("template"),
|
|
2401
|
+
invalidTemplate: new w("invalidTemplate"),
|
|
2402
|
+
ellipsis: new w("...", U),
|
|
2403
|
+
backQuote: new w("`", B),
|
|
2404
|
+
dollarBraceL: new w("${", { beforeExpr: !0, startsExpr: !0 }),
|
|
2405
2405
|
// Operators. These carry several kinds of properties to help the
|
|
2406
2406
|
// parser use them properly (the presence of these properties is
|
|
2407
2407
|
// what categorizes them as operators).
|
|
@@ -2415,10 +2415,10 @@ var o = {
|
|
|
2415
2415
|
// `isAssign` marks all of `=`, `+=`, `-=` etcetera, which act as
|
|
2416
2416
|
// binary operators with a very low precedence, that should result
|
|
2417
2417
|
// in AssignmentExpression nodes.
|
|
2418
|
-
eq: new
|
|
2419
|
-
assign: new
|
|
2420
|
-
incDec: new
|
|
2421
|
-
prefix: new
|
|
2418
|
+
eq: new w("=", { beforeExpr: !0, isAssign: !0 }),
|
|
2419
|
+
assign: new w("_=", { beforeExpr: !0, isAssign: !0 }),
|
|
2420
|
+
incDec: new w("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }),
|
|
2421
|
+
prefix: new w("!/~", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
2422
2422
|
logicalOR: z("||", 1),
|
|
2423
2423
|
logicalAND: z("&&", 2),
|
|
2424
2424
|
bitwiseOR: z("|", 3),
|
|
@@ -2427,53 +2427,53 @@ var o = {
|
|
|
2427
2427
|
equality: z("==/!=/===/!==", 6),
|
|
2428
2428
|
relational: z("</>/<=/>=", 7),
|
|
2429
2429
|
bitShift: z("<</>>/>>>", 8),
|
|
2430
|
-
plusMin: new
|
|
2430
|
+
plusMin: new w("+/-", { beforeExpr: !0, binop: 9, prefix: !0, startsExpr: !0 }),
|
|
2431
2431
|
modulo: z("%", 10),
|
|
2432
2432
|
star: z("*", 10),
|
|
2433
2433
|
slash: z("/", 10),
|
|
2434
|
-
starstar: new
|
|
2434
|
+
starstar: new w("**", { beforeExpr: !0 }),
|
|
2435
2435
|
coalesce: z("??", 1),
|
|
2436
2436
|
// Keyword token types.
|
|
2437
|
-
_break:
|
|
2438
|
-
_case:
|
|
2439
|
-
_catch:
|
|
2440
|
-
_continue:
|
|
2441
|
-
_debugger:
|
|
2442
|
-
_default:
|
|
2443
|
-
_do:
|
|
2444
|
-
_else:
|
|
2445
|
-
_finally:
|
|
2446
|
-
_for:
|
|
2447
|
-
_function:
|
|
2448
|
-
_if:
|
|
2449
|
-
_return:
|
|
2450
|
-
_switch:
|
|
2451
|
-
_throw:
|
|
2452
|
-
_try:
|
|
2453
|
-
_var:
|
|
2454
|
-
_const:
|
|
2455
|
-
_while:
|
|
2456
|
-
_with:
|
|
2457
|
-
_new:
|
|
2458
|
-
_this:
|
|
2459
|
-
_super:
|
|
2460
|
-
_class:
|
|
2461
|
-
_extends:
|
|
2462
|
-
_export:
|
|
2463
|
-
_import:
|
|
2464
|
-
_null:
|
|
2465
|
-
_true:
|
|
2466
|
-
_false:
|
|
2467
|
-
_in:
|
|
2468
|
-
_instanceof:
|
|
2469
|
-
_typeof:
|
|
2470
|
-
_void:
|
|
2471
|
-
_delete:
|
|
2437
|
+
_break: k("break"),
|
|
2438
|
+
_case: k("case", U),
|
|
2439
|
+
_catch: k("catch"),
|
|
2440
|
+
_continue: k("continue"),
|
|
2441
|
+
_debugger: k("debugger"),
|
|
2442
|
+
_default: k("default", U),
|
|
2443
|
+
_do: k("do", { isLoop: !0, beforeExpr: !0 }),
|
|
2444
|
+
_else: k("else", U),
|
|
2445
|
+
_finally: k("finally"),
|
|
2446
|
+
_for: k("for", { isLoop: !0 }),
|
|
2447
|
+
_function: k("function", B),
|
|
2448
|
+
_if: k("if"),
|
|
2449
|
+
_return: k("return", U),
|
|
2450
|
+
_switch: k("switch"),
|
|
2451
|
+
_throw: k("throw", U),
|
|
2452
|
+
_try: k("try"),
|
|
2453
|
+
_var: k("var"),
|
|
2454
|
+
_const: k("const"),
|
|
2455
|
+
_while: k("while", { isLoop: !0 }),
|
|
2456
|
+
_with: k("with"),
|
|
2457
|
+
_new: k("new", { beforeExpr: !0, startsExpr: !0 }),
|
|
2458
|
+
_this: k("this", B),
|
|
2459
|
+
_super: k("super", B),
|
|
2460
|
+
_class: k("class", B),
|
|
2461
|
+
_extends: k("extends", U),
|
|
2462
|
+
_export: k("export"),
|
|
2463
|
+
_import: k("import", B),
|
|
2464
|
+
_null: k("null", B),
|
|
2465
|
+
_true: k("true", B),
|
|
2466
|
+
_false: k("false", B),
|
|
2467
|
+
_in: k("in", { beforeExpr: !0, binop: 7 }),
|
|
2468
|
+
_instanceof: k("instanceof", { beforeExpr: !0, binop: 7 }),
|
|
2469
|
+
_typeof: k("typeof", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
2470
|
+
_void: k("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
|
|
2471
|
+
_delete: k("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 })
|
|
2472
2472
|
}, j = /\r\n?|\n|\u2028|\u2029/, $s = new RegExp(j.source, "g");
|
|
2473
2473
|
function Me(e) {
|
|
2474
2474
|
return e === 10 || e === 13 || e === 8232 || e === 8233;
|
|
2475
2475
|
}
|
|
2476
|
-
function
|
|
2476
|
+
function Or(e, t, i) {
|
|
2477
2477
|
i === void 0 && (i = e.length);
|
|
2478
2478
|
for (var r = t; r < i; r++) {
|
|
2479
2479
|
var n = e.charCodeAt(r);
|
|
@@ -2482,13 +2482,13 @@ function Pr(e, t, i) {
|
|
|
2482
2482
|
}
|
|
2483
2483
|
return -1;
|
|
2484
2484
|
}
|
|
2485
|
-
var
|
|
2485
|
+
var Lr = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, R = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, Vr = Object.prototype, Ws = Vr.hasOwnProperty, zs = Vr.toString, Be = Object.hasOwn || (function(e, t) {
|
|
2486
2486
|
return Ws.call(e, t);
|
|
2487
|
-
}),
|
|
2487
|
+
}), $i = Array.isArray || (function(e) {
|
|
2488
2488
|
return zs.call(e) === "[object Array]";
|
|
2489
|
-
}),
|
|
2489
|
+
}), Wi = /* @__PURE__ */ Object.create(null);
|
|
2490
2490
|
function ce(e) {
|
|
2491
|
-
return
|
|
2491
|
+
return Wi[e] || (Wi[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
|
|
2492
2492
|
}
|
|
2493
2493
|
function ae(e) {
|
|
2494
2494
|
return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
|
|
@@ -2502,9 +2502,9 @@ Qe.prototype.offset = function(t) {
|
|
|
2502
2502
|
var It = function(t, i, r) {
|
|
2503
2503
|
this.start = i, this.end = r, t.sourceFile !== null && (this.source = t.sourceFile);
|
|
2504
2504
|
};
|
|
2505
|
-
function
|
|
2505
|
+
function Dr(e, t) {
|
|
2506
2506
|
for (var i = 1, r = 0; ; ) {
|
|
2507
|
-
var n =
|
|
2507
|
+
var n = Or(e, r, t);
|
|
2508
2508
|
if (n < 0)
|
|
2509
2509
|
return new Qe(i, t - r);
|
|
2510
2510
|
++i, r = n;
|
|
@@ -2606,19 +2606,19 @@ var ti = {
|
|
|
2606
2606
|
// When enabled, parenthesized expressions are represented by
|
|
2607
2607
|
// (non-standard) ParenthesizedExpression nodes
|
|
2608
2608
|
preserveParens: !1
|
|
2609
|
-
},
|
|
2609
|
+
}, zi = !1;
|
|
2610
2610
|
function qs(e) {
|
|
2611
2611
|
var t = {};
|
|
2612
2612
|
for (var i in ti)
|
|
2613
2613
|
t[i] = e && Be(e, i) ? e[i] : ti[i];
|
|
2614
|
-
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!
|
|
2615
|
-
Defaulting to 2020, but this will stop working in the future.`)), t.ecmaVersion = 11) : t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved == null && (t.allowReserved = t.ecmaVersion < 5), (!e || e.allowHashBang == null) && (t.allowHashBang = t.ecmaVersion >= 14),
|
|
2614
|
+
if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!zi && typeof console == "object" && console.warn && (zi = !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
2615
|
+
Defaulting to 2020, but this will stop working in the future.`)), t.ecmaVersion = 11) : t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved == null && (t.allowReserved = t.ecmaVersion < 5), (!e || e.allowHashBang == null) && (t.allowHashBang = t.ecmaVersion >= 14), $i(t.onToken)) {
|
|
2616
2616
|
var r = t.onToken;
|
|
2617
2617
|
t.onToken = function(n) {
|
|
2618
2618
|
return r.push(n);
|
|
2619
2619
|
};
|
|
2620
2620
|
}
|
|
2621
|
-
return
|
|
2621
|
+
return $i(t.onComment) && (t.onComment = Gs(t, t.onComment)), t;
|
|
2622
2622
|
}
|
|
2623
2623
|
function Gs(e, t) {
|
|
2624
2624
|
return function(i, r, n, s, a, u) {
|
|
@@ -2631,11 +2631,11 @@ function Gs(e, t) {
|
|
|
2631
2631
|
e.locations && (l.loc = new It(this, a, u)), e.ranges && (l.range = [n, s]), t.push(l);
|
|
2632
2632
|
};
|
|
2633
2633
|
}
|
|
2634
|
-
var He = 1, je = 2, bi = 4,
|
|
2634
|
+
var He = 1, je = 2, bi = 4, Rr = 8, xi = 16, Fr = 32, Nt = 64, Mr = 128, Ne = 256, tt = 512, Tt = He | je | Ne;
|
|
2635
2635
|
function vi(e, t) {
|
|
2636
|
-
return je | (e ? bi : 0) | (t ?
|
|
2636
|
+
return je | (e ? bi : 0) | (t ? Rr : 0);
|
|
2637
2637
|
}
|
|
2638
|
-
var dt = 0, _i = 1, ue = 2,
|
|
2638
|
+
var dt = 0, _i = 1, ue = 2, Br = 3, jr = 4, $r = 5, V = function(t, i, r) {
|
|
2639
2639
|
this.options = t = qs(t), this.sourceFile = t.sourceFile, this.keywords = ce(Fs[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
|
|
2640
2640
|
var n = "";
|
|
2641
2641
|
t.allowReserved !== !0 && (n = Mt[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (n += " await")), this.reservedWords = ce(n);
|
|
@@ -2651,7 +2651,7 @@ te.inFunction.get = function() {
|
|
|
2651
2651
|
return (this.currentVarScope().flags & je) > 0;
|
|
2652
2652
|
};
|
|
2653
2653
|
te.inGenerator.get = function() {
|
|
2654
|
-
return (this.currentVarScope().flags &
|
|
2654
|
+
return (this.currentVarScope().flags & Rr) > 0;
|
|
2655
2655
|
};
|
|
2656
2656
|
te.inAsync.get = function() {
|
|
2657
2657
|
return (this.currentVarScope().flags & bi) > 0;
|
|
@@ -2671,7 +2671,7 @@ te.allowSuper.get = function() {
|
|
|
2671
2671
|
return (t & Nt) > 0 || this.options.allowSuperOutsideMethod;
|
|
2672
2672
|
};
|
|
2673
2673
|
te.allowDirectSuper.get = function() {
|
|
2674
|
-
return (this.currentThisScope().flags &
|
|
2674
|
+
return (this.currentThisScope().flags & Mr) > 0;
|
|
2675
2675
|
};
|
|
2676
2676
|
te.treatFunctionsAsVar.get = function() {
|
|
2677
2677
|
return this.treatFunctionsAsVarInScope(this.currentScope());
|
|
@@ -2804,7 +2804,7 @@ x.isLet = function(e) {
|
|
|
2804
2804
|
if (r === 123 || r > 55295 && r < 56320)
|
|
2805
2805
|
return !0;
|
|
2806
2806
|
if (Z(r, !0)) {
|
|
2807
|
-
for (var n = i + 1;
|
|
2807
|
+
for (var n = i + 1; pe(r = this.input.charCodeAt(n), !0); )
|
|
2808
2808
|
++n;
|
|
2809
2809
|
if (r === 92 || r > 55295 && r < 56320)
|
|
2810
2810
|
return !0;
|
|
@@ -2819,7 +2819,7 @@ x.isAsyncFunction = function() {
|
|
|
2819
2819
|
return !1;
|
|
2820
2820
|
R.lastIndex = this.pos;
|
|
2821
2821
|
var e = R.exec(this.input), t = this.pos + e[0].length, i;
|
|
2822
|
-
return !j.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(
|
|
2822
|
+
return !j.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(pe(i = this.input.charCodeAt(t + 8)) || i > 55295 && i < 56320));
|
|
2823
2823
|
};
|
|
2824
2824
|
x.isUsingKeyword = function(e, t) {
|
|
2825
2825
|
if (this.options.ecmaVersion < 17 || !this.isContextual(e ? "await" : "using"))
|
|
@@ -2830,7 +2830,7 @@ x.isUsingKeyword = function(e, t) {
|
|
|
2830
2830
|
return !1;
|
|
2831
2831
|
if (e) {
|
|
2832
2832
|
var n = r + 5, s;
|
|
2833
|
-
if (this.input.slice(r, n) !== "using" || n === this.input.length ||
|
|
2833
|
+
if (this.input.slice(r, n) !== "using" || n === this.input.length || pe(s = this.input.charCodeAt(n)) || s > 55295 && s < 56320)
|
|
2834
2834
|
return !1;
|
|
2835
2835
|
R.lastIndex = n;
|
|
2836
2836
|
var a = R.exec(this.input);
|
|
@@ -2839,7 +2839,7 @@ x.isUsingKeyword = function(e, t) {
|
|
|
2839
2839
|
}
|
|
2840
2840
|
if (t) {
|
|
2841
2841
|
var u = r + 2, l;
|
|
2842
|
-
if (this.input.slice(r, u) === "of" && (u === this.input.length || !
|
|
2842
|
+
if (this.input.slice(r, u) === "of" && (u === this.input.length || !pe(l = this.input.charCodeAt(u)) && !(l > 55295 && l < 56320)))
|
|
2843
2843
|
return !1;
|
|
2844
2844
|
}
|
|
2845
2845
|
var c = this.input.charCodeAt(r);
|
|
@@ -2908,8 +2908,8 @@ x.parseStatement = function(e, t, i) {
|
|
|
2908
2908
|
var c = this.isAwaitUsing(!1) ? "await using" : this.isUsing(!1) ? "using" : null;
|
|
2909
2909
|
if (c)
|
|
2910
2910
|
return t && this.options.sourceType === "script" && this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script`"), c === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.next(), this.parseVar(n, !1, c), this.semicolon(), this.finishNode(n, "VariableDeclaration");
|
|
2911
|
-
var
|
|
2912
|
-
return r === o.name && f.type === "Identifier" && this.eat(o.colon) ? this.parseLabeledStatement(n,
|
|
2911
|
+
var p = this.value, f = this.parseExpression();
|
|
2912
|
+
return r === o.name && f.type === "Identifier" && this.eat(o.colon) ? this.parseLabeledStatement(n, p, f, e) : this.parseExpressionStatement(n, f);
|
|
2913
2913
|
}
|
|
2914
2914
|
};
|
|
2915
2915
|
x.parseBreakContinueStatement = function(e, t) {
|
|
@@ -2943,8 +2943,8 @@ x.parseForStatement = function(e) {
|
|
|
2943
2943
|
var l = this.startNode();
|
|
2944
2944
|
return this.next(), u === "await using" && this.next(), this.parseVar(l, !0, u), this.finishNode(l, "VariableDeclaration"), this.parseForAfterInit(e, l, t);
|
|
2945
2945
|
}
|
|
2946
|
-
var c = this.containsEsc,
|
|
2947
|
-
return this.type === o._in || (a = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === o._in && this.unexpected(t), e.await = !0) : a && this.options.ecmaVersion >= 8 && (d.start === f && !c && d.type === "Identifier" && d.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (e.await = !1)), s && a && this.raise(d.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(d, !1,
|
|
2946
|
+
var c = this.containsEsc, p = new Pt(), f = this.start, d = t > -1 ? this.parseExprSubscripts(p, "await") : this.parseExpression(!0, p);
|
|
2947
|
+
return this.type === o._in || (a = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === o._in && this.unexpected(t), e.await = !0) : a && this.options.ecmaVersion >= 8 && (d.start === f && !c && d.type === "Identifier" && d.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (e.await = !1)), s && a && this.raise(d.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(d, !1, p), this.checkLValPattern(d), this.parseForIn(e, d)) : (this.checkExpressionErrors(p, !0), t > -1 && this.unexpected(t), this.parseFor(e, d));
|
|
2948
2948
|
};
|
|
2949
2949
|
x.parseForAfterInit = function(e, t, i) {
|
|
2950
2950
|
return (this.type === o._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && t.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === o._in ? i > -1 && this.unexpected(i) : e.await = i > -1), this.parseForIn(e, t)) : (i > -1 && this.unexpected(i), this.parseFor(e, t));
|
|
@@ -2974,7 +2974,7 @@ x.parseThrowStatement = function(e) {
|
|
|
2974
2974
|
var Qs = [];
|
|
2975
2975
|
x.parseCatchClauseParam = function() {
|
|
2976
2976
|
var e = this.parseBindingAtom(), t = e.type === "Identifier";
|
|
2977
|
-
return this.enterScope(t ?
|
|
2977
|
+
return this.enterScope(t ? Fr : 0), this.checkLValPattern(e, t ? jr : ue), this.expect(o.parenR), e;
|
|
2978
2978
|
};
|
|
2979
2979
|
x.parseTryStatement = function(e) {
|
|
2980
2980
|
if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === o._catch) {
|
|
@@ -3040,9 +3040,9 @@ x.parseVar = function(e, t, i, r) {
|
|
|
3040
3040
|
x.parseVarId = function(e, t) {
|
|
3041
3041
|
e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? _i : ue, !1);
|
|
3042
3042
|
};
|
|
3043
|
-
var Ge = 1, ii = 2,
|
|
3043
|
+
var Ge = 1, ii = 2, Wr = 4;
|
|
3044
3044
|
x.parseFunction = function(e, t, i, r, n) {
|
|
3045
|
-
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === o.star && t & ii && this.unexpected(), e.generator = this.eat(o.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), t & Ge && (e.id = t &
|
|
3045
|
+
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === o.star && t & ii && this.unexpected(), e.generator = this.eat(o.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), t & Ge && (e.id = t & Wr && this.type !== o.name ? null : this.parseIdent(), e.id && !(t & ii) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? _i : ue : Br));
|
|
3046
3046
|
var s = this.yieldPos, a = this.awaitPos, u = this.awaitIdentPos;
|
|
3047
3047
|
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(vi(e.async, e.generator)), t & Ge || (e.id = this.type === o.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, i, !1, n), this.yieldPos = s, this.awaitPos = a, this.awaitIdentPos = u, this.finishNode(e, t & Ge ? "FunctionDeclaration" : "FunctionExpression");
|
|
3048
3048
|
};
|
|
@@ -3074,8 +3074,8 @@ x.parseClassElement = function(e) {
|
|
|
3074
3074
|
(this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? a = l : r = l);
|
|
3075
3075
|
}
|
|
3076
3076
|
if (r ? (i.computed = !1, i.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), i.key.name = r, this.finishNode(i.key, "Identifier")) : this.parseClassElementName(i), t < 13 || this.type === o.parenL || a !== "method" || n || s) {
|
|
3077
|
-
var c = !i.static && mt(i, "constructor"),
|
|
3078
|
-
c && a !== "method" && this.raise(i.key.start, "Constructor can't have get/set modifier"), i.kind = c ? "constructor" : a, this.parseClassMethod(i, n, s,
|
|
3077
|
+
var c = !i.static && mt(i, "constructor"), p = c && e;
|
|
3078
|
+
c && a !== "method" && this.raise(i.key.start, "Constructor can't have get/set modifier"), i.kind = c ? "constructor" : a, this.parseClassMethod(i, n, s, p);
|
|
3079
3079
|
} else
|
|
3080
3080
|
this.parseClassField(i);
|
|
3081
3081
|
return i;
|
|
@@ -3161,7 +3161,7 @@ x.parseExportDefaultDeclaration = function() {
|
|
|
3161
3161
|
var e;
|
|
3162
3162
|
if (this.type === o._function || (e = this.isAsyncFunction())) {
|
|
3163
3163
|
var t = this.startNode();
|
|
3164
|
-
return this.next(), e && this.next(), this.parseFunction(t, Ge |
|
|
3164
|
+
return this.next(), e && this.next(), this.parseFunction(t, Ge | Wr, !1, e);
|
|
3165
3165
|
} else if (this.type === o._class) {
|
|
3166
3166
|
var i = this.startNode();
|
|
3167
3167
|
return this.parseClass(i, "nullableID");
|
|
@@ -3392,7 +3392,7 @@ G.checkLValSimple = function(e, t, i) {
|
|
|
3392
3392
|
var r = t !== dt;
|
|
3393
3393
|
switch (e.type) {
|
|
3394
3394
|
case "Identifier":
|
|
3395
|
-
this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (r ? "Binding " : "Assigning to ") + e.name + " in strict mode"), r && (t === ue && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), i && (Be(i, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), i[e.name] = !0), t !==
|
|
3395
|
+
this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (r ? "Binding " : "Assigning to ") + e.name + " in strict mode"), r && (t === ue && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), i && (Be(i, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), i[e.name] = !0), t !== $r && this.declareName(e.name, t, e.start));
|
|
3396
3396
|
break;
|
|
3397
3397
|
case "ChainExpression":
|
|
3398
3398
|
this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
|
|
@@ -3575,8 +3575,8 @@ v.parseMaybeAssign = function(e, t, i) {
|
|
|
3575
3575
|
(this.type === o.parenL || this.type === o.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
|
|
3576
3576
|
var c = this.parseMaybeConditional(e, t);
|
|
3577
3577
|
if (i && (c = i.call(this, c, u, l)), this.type.isAssign) {
|
|
3578
|
-
var
|
|
3579
|
-
return
|
|
3578
|
+
var p = this.startNodeAt(u, l);
|
|
3579
|
+
return p.operator = this.value, this.type === o.eq && (c = this.toAssignable(c, !1, t)), r || (t.parenthesizedAssign = t.trailingComma = t.doubleProto = -1), t.shorthandAssign >= c.start && (t.shorthandAssign = -1), this.type === o.eq ? this.checkLValPattern(c) : this.checkLValSimple(c), p.left = c, this.next(), p.right = this.parseMaybeAssign(e), a > -1 && (t.doubleProto = a), this.finishNode(p, "AssignmentExpression");
|
|
3580
3580
|
} else
|
|
3581
3581
|
r && this.checkExpressionErrors(t, !0);
|
|
3582
3582
|
return n > -1 && (t.parenthesizedAssign = n), s > -1 && (t.trailingComma = s), c;
|
|
@@ -3602,7 +3602,7 @@ v.parseExprOp = function(e, t, i, r, n) {
|
|
|
3602
3602
|
u && (s = o.logicalAND.binop);
|
|
3603
3603
|
var l = this.value;
|
|
3604
3604
|
this.next();
|
|
3605
|
-
var c = this.start,
|
|
3605
|
+
var c = this.start, p = this.startLoc, f = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, n), c, p, s, n), d = this.buildBinary(t, i, e, f, l, a || u);
|
|
3606
3606
|
return (a && this.type === o.coalesce || u && (this.type === o.logicalOR || this.type === o.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(d, t, i, r, n);
|
|
3607
3607
|
}
|
|
3608
3608
|
return e;
|
|
@@ -3618,7 +3618,7 @@ v.parseMaybeUnary = function(e, t, i, r) {
|
|
|
3618
3618
|
a = this.parseAwait(r), t = !0;
|
|
3619
3619
|
else if (this.type.prefix) {
|
|
3620
3620
|
var u = this.startNode(), l = this.type === o.incDec;
|
|
3621
|
-
u.operator = this.value, u.prefix = !0, this.next(), u.argument = this.parseMaybeUnary(null, !0, l, r), this.checkExpressionErrors(e, !0), l ? this.checkLValSimple(u.argument) : this.strict && u.operator === "delete" &&
|
|
3621
|
+
u.operator = this.value, u.prefix = !0, this.next(), u.argument = this.parseMaybeUnary(null, !0, l, r), this.checkExpressionErrors(e, !0), l ? this.checkLValSimple(u.argument) : this.strict && u.operator === "delete" && zr(u.argument) ? this.raiseRecoverable(u.start, "Deleting local variable in strict mode") : u.operator === "delete" && ri(u.argument) ? this.raiseRecoverable(u.start, "Private fields can not be deleted") : t = !0, a = this.finishNode(u, l ? "UpdateExpression" : "UnaryExpression");
|
|
3622
3622
|
} else if (!t && this.type === o.privateId)
|
|
3623
3623
|
(r || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), a = this.parsePrivateIdent(), this.type !== o._in && this.unexpected();
|
|
3624
3624
|
else {
|
|
@@ -3637,8 +3637,8 @@ v.parseMaybeUnary = function(e, t, i, r) {
|
|
|
3637
3637
|
else
|
|
3638
3638
|
return a;
|
|
3639
3639
|
};
|
|
3640
|
-
function
|
|
3641
|
-
return e.type === "Identifier" || e.type === "ParenthesizedExpression" &&
|
|
3640
|
+
function zr(e) {
|
|
3641
|
+
return e.type === "Identifier" || e.type === "ParenthesizedExpression" && zr(e.expression);
|
|
3642
3642
|
}
|
|
3643
3643
|
function ri(e) {
|
|
3644
3644
|
return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && ri(e.expression) || e.type === "ParenthesizedExpression" && ri(e.expression);
|
|
@@ -3674,17 +3674,17 @@ v.parseSubscript = function(e, t, i, r, n, s, a) {
|
|
|
3674
3674
|
r && l && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
|
|
3675
3675
|
var c = this.eat(o.bracketL);
|
|
3676
3676
|
if (c || l && this.type !== o.parenL && this.type !== o.backQuote || this.eat(o.dot)) {
|
|
3677
|
-
var
|
|
3678
|
-
|
|
3677
|
+
var p = this.startNodeAt(t, i);
|
|
3678
|
+
p.object = e, c ? (p.property = this.parseExpression(), this.expect(o.bracketR)) : this.type === o.privateId && e.type !== "Super" ? p.property = this.parsePrivateIdent() : p.property = this.parseIdent(this.options.allowReserved !== "never"), p.computed = !!c, u && (p.optional = l), e = this.finishNode(p, "MemberExpression");
|
|
3679
3679
|
} else if (!r && this.eat(o.parenL)) {
|
|
3680
3680
|
var f = new Pt(), d = this.yieldPos, g = this.awaitPos, y = this.awaitIdentPos;
|
|
3681
3681
|
this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
|
|
3682
|
-
var
|
|
3682
|
+
var h = this.parseExprList(o.parenR, this.options.ecmaVersion >= 8, !1, f);
|
|
3683
3683
|
if (n && !l && this.shouldParseAsyncArrow())
|
|
3684
|
-
return this.checkPatternErrors(f, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = d, this.awaitPos = g, this.awaitIdentPos = y, this.parseSubscriptAsyncArrow(t, i,
|
|
3684
|
+
return this.checkPatternErrors(f, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = d, this.awaitPos = g, this.awaitIdentPos = y, this.parseSubscriptAsyncArrow(t, i, h, a);
|
|
3685
3685
|
this.checkExpressionErrors(f, !0), this.yieldPos = d || this.yieldPos, this.awaitPos = g || this.awaitPos, this.awaitIdentPos = y || this.awaitIdentPos;
|
|
3686
3686
|
var m = this.startNodeAt(t, i);
|
|
3687
|
-
m.callee = e, m.arguments =
|
|
3687
|
+
m.callee = e, m.arguments = h, u && (m.optional = l), e = this.finishNode(m, "CallExpression");
|
|
3688
3688
|
} else if (this.type === o.backQuote) {
|
|
3689
3689
|
(l || s) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
|
|
3690
3690
|
var _ = this.startNodeAt(t, i);
|
|
@@ -3722,8 +3722,8 @@ v.parseExprAtom = function(e, t, i) {
|
|
|
3722
3722
|
case o._false:
|
|
3723
3723
|
return r = this.startNode(), r.value = this.type === o._null ? null : this.type === o._true, r.raw = this.type.keyword, this.next(), this.finishNode(r, "Literal");
|
|
3724
3724
|
case o.parenL:
|
|
3725
|
-
var
|
|
3726
|
-
return e && (e.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(f) && (e.parenthesizedAssign =
|
|
3725
|
+
var p = this.start, f = this.parseParenAndDistinguishExpression(n, t);
|
|
3726
|
+
return e && (e.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(f) && (e.parenthesizedAssign = p), e.parenthesizedBind < 0 && (e.parenthesizedBind = p)), f;
|
|
3727
3727
|
case o.bracketL:
|
|
3728
3728
|
return r = this.startNode(), this.next(), r.elements = this.parseExprList(o.bracketR, !0, !0, e), this.finishNode(r, "ArrayExpression");
|
|
3729
3729
|
case o.braceL:
|
|
@@ -3785,10 +3785,10 @@ v.parseParenAndDistinguishExpression = function(e, t) {
|
|
|
3785
3785
|
var i = this.start, r = this.startLoc, n, s = this.options.ecmaVersion >= 8;
|
|
3786
3786
|
if (this.options.ecmaVersion >= 6) {
|
|
3787
3787
|
this.next();
|
|
3788
|
-
var a = this.start, u = this.startLoc, l = [], c = !0,
|
|
3788
|
+
var a = this.start, u = this.startLoc, l = [], c = !0, p = !1, f = new Pt(), d = this.yieldPos, g = this.awaitPos, y;
|
|
3789
3789
|
for (this.yieldPos = 0, this.awaitPos = 0; this.type !== o.parenR; )
|
|
3790
3790
|
if (c ? c = !1 : this.expect(o.comma), s && this.afterTrailingComma(o.parenR, !0)) {
|
|
3791
|
-
|
|
3791
|
+
p = !0;
|
|
3792
3792
|
break;
|
|
3793
3793
|
} else if (this.type === o.ellipsis) {
|
|
3794
3794
|
y = this.start, l.push(this.parseParenItem(this.parseRestBinding())), this.type === o.comma && this.raiseRecoverable(
|
|
@@ -3798,10 +3798,10 @@ v.parseParenAndDistinguishExpression = function(e, t) {
|
|
|
3798
3798
|
break;
|
|
3799
3799
|
} else
|
|
3800
3800
|
l.push(this.parseMaybeAssign(!1, f, this.parseParenItem));
|
|
3801
|
-
var
|
|
3801
|
+
var h = this.lastTokEnd, m = this.lastTokEndLoc;
|
|
3802
3802
|
if (this.expect(o.parenR), e && this.shouldParseArrow(l) && this.eat(o.arrow))
|
|
3803
3803
|
return this.checkPatternErrors(f, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = d, this.awaitPos = g, this.parseParenArrowList(i, r, l, t);
|
|
3804
|
-
(!l.length ||
|
|
3804
|
+
(!l.length || p) && this.unexpected(this.lastTokStart), y && this.unexpected(y), this.checkExpressionErrors(f, !0), this.yieldPos = d || this.yieldPos, this.awaitPos = g || this.awaitPos, l.length > 1 ? (n = this.startNodeAt(a, u), n.expressions = l, this.finishNodeAt(n, "SequenceExpression", h, m)) : n = l[0];
|
|
3805
3805
|
} else
|
|
3806
3806
|
n = this.parseParenExpression();
|
|
3807
3807
|
if (this.options.preserveParens) {
|
|
@@ -3901,7 +3901,7 @@ v.initFunction = function(e) {
|
|
|
3901
3901
|
};
|
|
3902
3902
|
v.parseMethod = function(e, t, i) {
|
|
3903
3903
|
var r = this.startNode(), n = this.yieldPos, s = this.awaitPos, a = this.awaitIdentPos;
|
|
3904
|
-
return this.initFunction(r), this.options.ecmaVersion >= 6 && (r.generator = e), this.options.ecmaVersion >= 8 && (r.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(vi(t, r.generator) | Nt | (i ?
|
|
3904
|
+
return this.initFunction(r), this.options.ecmaVersion >= 6 && (r.generator = e), this.options.ecmaVersion >= 8 && (r.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(vi(t, r.generator) | Nt | (i ? Mr : 0)), this.expect(o.parenL), r.params = this.parseBindingList(o.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(r, !1, !0, !1), this.yieldPos = n, this.awaitPos = s, this.awaitIdentPos = a, this.finishNode(r, "FunctionExpression");
|
|
3905
3905
|
};
|
|
3906
3906
|
v.parseArrowExpression = function(e, t, i, r) {
|
|
3907
3907
|
var n = this.yieldPos, s = this.awaitPos, a = this.awaitIdentPos;
|
|
@@ -3915,7 +3915,7 @@ v.parseFunctionBody = function(e, t, i, r) {
|
|
|
3915
3915
|
var u = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e.params);
|
|
3916
3916
|
(!s || u) && (a = this.strictDirective(this.end), a && u && this.raiseRecoverable(e.start, "Illegal 'use strict' directive in function with non-simple parameter list"));
|
|
3917
3917
|
var l = this.labels;
|
|
3918
|
-
this.labels = [], a && (this.strict = !0), this.checkParams(e, !s && !a && !t && !i && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id,
|
|
3918
|
+
this.labels = [], a && (this.strict = !0), this.checkParams(e, !s && !a && !t && !i && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id, $r), e.body = this.parseBlock(!1, void 0, a && !s), e.expression = !1, this.adaptDirectivePrologue(e.body.body), this.labels = l;
|
|
3919
3919
|
}
|
|
3920
3920
|
this.exitScope();
|
|
3921
3921
|
};
|
|
@@ -3975,7 +3975,7 @@ v.parseAwait = function(e) {
|
|
|
3975
3975
|
};
|
|
3976
3976
|
var gt = V.prototype;
|
|
3977
3977
|
gt.raise = function(e, t) {
|
|
3978
|
-
var i =
|
|
3978
|
+
var i = Dr(this.input, e);
|
|
3979
3979
|
t += " (" + i.line + ":" + i.column + ")", this.sourceFile && (t += " in " + this.sourceFile);
|
|
3980
3980
|
var r = new SyntaxError(t);
|
|
3981
3981
|
throw r.pos = e, r.loc = i, r.raisedAt = this.pos, r;
|
|
@@ -4002,16 +4002,16 @@ de.declareName = function(e, t, i) {
|
|
|
4002
4002
|
if (t === ue) {
|
|
4003
4003
|
var n = this.currentScope();
|
|
4004
4004
|
r = n.lexical.indexOf(e) > -1 || n.functions.indexOf(e) > -1 || n.var.indexOf(e) > -1, n.lexical.push(e), this.inModule && n.flags & He && delete this.undefinedExports[e];
|
|
4005
|
-
} else if (t ===
|
|
4005
|
+
} else if (t === jr) {
|
|
4006
4006
|
var s = this.currentScope();
|
|
4007
4007
|
s.lexical.push(e);
|
|
4008
|
-
} else if (t ===
|
|
4008
|
+
} else if (t === Br) {
|
|
4009
4009
|
var a = this.currentScope();
|
|
4010
4010
|
this.treatFunctionsAsVar ? r = a.lexical.indexOf(e) > -1 : r = a.lexical.indexOf(e) > -1 || a.var.indexOf(e) > -1, a.functions.push(e);
|
|
4011
4011
|
} else
|
|
4012
4012
|
for (var u = this.scopeStack.length - 1; u >= 0; --u) {
|
|
4013
4013
|
var l = this.scopeStack[u];
|
|
4014
|
-
if (l.lexical.indexOf(e) > -1 && !(l.flags &
|
|
4014
|
+
if (l.lexical.indexOf(e) > -1 && !(l.flags & Fr && l.lexical[0] === e) || !this.treatFunctionsAsVarInScope(l) && l.functions.indexOf(e) > -1) {
|
|
4015
4015
|
r = !0;
|
|
4016
4016
|
break;
|
|
4017
4017
|
}
|
|
@@ -4049,14 +4049,14 @@ it.startNode = function() {
|
|
|
4049
4049
|
it.startNodeAt = function(e, t) {
|
|
4050
4050
|
return new Ot(this, e, t);
|
|
4051
4051
|
};
|
|
4052
|
-
function
|
|
4052
|
+
function Ur(e, t, i, r) {
|
|
4053
4053
|
return e.type = t, e.end = i, this.options.locations && (e.loc.end = r), this.options.ranges && (e.range[1] = i), e;
|
|
4054
4054
|
}
|
|
4055
4055
|
it.finishNode = function(e, t) {
|
|
4056
|
-
return
|
|
4056
|
+
return Ur.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
|
|
4057
4057
|
};
|
|
4058
4058
|
it.finishNodeAt = function(e, t, i, r) {
|
|
4059
|
-
return
|
|
4059
|
+
return Ur.call(this, e, t, i, r);
|
|
4060
4060
|
};
|
|
4061
4061
|
it.copyNode = function(e) {
|
|
4062
4062
|
var t = new Ot(this, e.start, this.startLoc);
|
|
@@ -4064,12 +4064,12 @@ it.copyNode = function(e) {
|
|
|
4064
4064
|
t[i] = e[i];
|
|
4065
4065
|
return t;
|
|
4066
4066
|
};
|
|
4067
|
-
var Zs = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz",
|
|
4068
|
-
9:
|
|
4069
|
-
10:
|
|
4070
|
-
11:
|
|
4071
|
-
12:
|
|
4072
|
-
13:
|
|
4067
|
+
var Zs = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz", qr = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", Gr = qr + " Extended_Pictographic", Kr = Gr, Jr = Kr + " EBase EComp EMod EPres ExtPict", Qr = Jr, ea = Qr, ta = {
|
|
4068
|
+
9: qr,
|
|
4069
|
+
10: Gr,
|
|
4070
|
+
11: Kr,
|
|
4071
|
+
12: Jr,
|
|
4072
|
+
13: Qr,
|
|
4073
4073
|
14: ea
|
|
4074
4074
|
}, ia = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji", ra = {
|
|
4075
4075
|
9: "",
|
|
@@ -4078,27 +4078,27 @@ var Zs = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai
|
|
|
4078
4078
|
12: "",
|
|
4079
4079
|
13: "",
|
|
4080
4080
|
14: ia
|
|
4081
|
-
},
|
|
4082
|
-
9:
|
|
4083
|
-
10:
|
|
4084
|
-
11:
|
|
4085
|
-
12:
|
|
4086
|
-
13:
|
|
4081
|
+
}, Ui = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", Hr = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", Yr = Hr + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", Xr = Yr + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", Zr = Xr + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", en = Zr + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", na = en + " " + Zs, sa = {
|
|
4082
|
+
9: Hr,
|
|
4083
|
+
10: Yr,
|
|
4084
|
+
11: Xr,
|
|
4085
|
+
12: Zr,
|
|
4086
|
+
13: en,
|
|
4087
4087
|
14: na
|
|
4088
|
-
},
|
|
4088
|
+
}, tn = {};
|
|
4089
4089
|
function aa(e) {
|
|
4090
|
-
var t =
|
|
4091
|
-
binary: ce(ta[e] + " " +
|
|
4090
|
+
var t = tn[e] = {
|
|
4091
|
+
binary: ce(ta[e] + " " + Ui),
|
|
4092
4092
|
binaryOfStrings: ce(ra[e]),
|
|
4093
4093
|
nonBinary: {
|
|
4094
|
-
General_Category: ce(
|
|
4094
|
+
General_Category: ce(Ui),
|
|
4095
4095
|
Script: ce(sa[e])
|
|
4096
4096
|
}
|
|
4097
4097
|
};
|
|
4098
4098
|
t.nonBinary.Script_Extensions = t.nonBinary.Script, t.nonBinary.gc = t.nonBinary.General_Category, t.nonBinary.sc = t.nonBinary.Script, t.nonBinary.scx = t.nonBinary.Script_Extensions;
|
|
4099
4099
|
}
|
|
4100
|
-
for (var jt = 0,
|
|
4101
|
-
var oa =
|
|
4100
|
+
for (var jt = 0, qi = [9, 10, 11, 12, 13, 14]; jt < qi.length; jt += 1) {
|
|
4101
|
+
var oa = qi[jt];
|
|
4102
4102
|
aa(oa);
|
|
4103
4103
|
}
|
|
4104
4104
|
var b = V.prototype, yt = function(t, i) {
|
|
@@ -4115,7 +4115,7 @@ yt.prototype.sibling = function() {
|
|
|
4115
4115
|
return new yt(this.parent, this.base);
|
|
4116
4116
|
};
|
|
4117
4117
|
var ie = function(t) {
|
|
4118
|
-
this.parser = t, this.validFlags = "gim" + (t.options.ecmaVersion >= 6 ? "uy" : "") + (t.options.ecmaVersion >= 9 ? "s" : "") + (t.options.ecmaVersion >= 13 ? "d" : "") + (t.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties =
|
|
4118
|
+
this.parser = t, this.validFlags = "gim" + (t.options.ecmaVersion >= 6 ? "uy" : "") + (t.options.ecmaVersion >= 9 ? "s" : "") + (t.options.ecmaVersion >= 13 ? "d" : "") + (t.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = tn[t.options.ecmaVersion >= 14 ? 14 : t.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchV = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = /* @__PURE__ */ Object.create(null), this.backReferenceNames = [], this.branchID = null;
|
|
4119
4119
|
};
|
|
4120
4120
|
ie.prototype.reset = function(t, i, r) {
|
|
4121
4121
|
var n = r.indexOf("v") !== -1, s = r.indexOf("u") !== -1;
|
|
@@ -4398,13 +4398,13 @@ b.regexp_eatInvalidBracedQuantifier = function(e) {
|
|
|
4398
4398
|
};
|
|
4399
4399
|
b.regexp_eatSyntaxCharacter = function(e) {
|
|
4400
4400
|
var t = e.current();
|
|
4401
|
-
return
|
|
4401
|
+
return rn(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
|
|
4402
4402
|
};
|
|
4403
|
-
function
|
|
4403
|
+
function rn(e) {
|
|
4404
4404
|
return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
|
|
4405
4405
|
}
|
|
4406
4406
|
b.regexp_eatPatternCharacters = function(e) {
|
|
4407
|
-
for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !
|
|
4407
|
+
for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !rn(i); )
|
|
4408
4408
|
e.advance();
|
|
4409
4409
|
return e.pos !== t;
|
|
4410
4410
|
};
|
|
@@ -4464,7 +4464,7 @@ b.regexp_eatRegExpIdentifierPart = function(e) {
|
|
|
4464
4464
|
return e.advance(i), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (r = e.lastIntValue), fa(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
|
|
4465
4465
|
};
|
|
4466
4466
|
function fa(e) {
|
|
4467
|
-
return
|
|
4467
|
+
return pe(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
|
|
4468
4468
|
}
|
|
4469
4469
|
b.regexp_eatAtomEscape = function(e) {
|
|
4470
4470
|
return this.regexp_eatBackReference(e) || this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e) || e.switchN && this.regexp_eatKGroupName(e) ? !0 : (e.switchU && (e.current() === 99 && e.raise("Invalid unicode escape"), e.raise("Invalid escape")), !1);
|
|
@@ -4516,9 +4516,9 @@ b.regexp_eatControlEscape = function(e) {
|
|
|
4516
4516
|
};
|
|
4517
4517
|
b.regexp_eatControlLetter = function(e) {
|
|
4518
4518
|
var t = e.current();
|
|
4519
|
-
return
|
|
4519
|
+
return nn(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
|
|
4520
4520
|
};
|
|
4521
|
-
function
|
|
4521
|
+
function nn(e) {
|
|
4522
4522
|
return e >= 65 && e <= 90 || e >= 97 && e <= 122;
|
|
4523
4523
|
}
|
|
4524
4524
|
b.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
|
|
@@ -4553,13 +4553,13 @@ b.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
|
|
|
4553
4553
|
) && this.regexp_eatHexDigits(e) && e.eat(
|
|
4554
4554
|
125
|
|
4555
4555
|
/* } */
|
|
4556
|
-
) &&
|
|
4556
|
+
) && pa(e.lastIntValue))
|
|
4557
4557
|
return !0;
|
|
4558
4558
|
r && e.raise("Invalid unicode escape"), e.pos = i;
|
|
4559
4559
|
}
|
|
4560
4560
|
return !1;
|
|
4561
4561
|
};
|
|
4562
|
-
function
|
|
4562
|
+
function pa(e) {
|
|
4563
4563
|
return e >= 0 && e <= 1114111;
|
|
4564
4564
|
}
|
|
4565
4565
|
b.regexp_eatIdentityEscape = function(e) {
|
|
@@ -4582,10 +4582,10 @@ b.regexp_eatDecimalEscape = function(e) {
|
|
|
4582
4582
|
}
|
|
4583
4583
|
return !1;
|
|
4584
4584
|
};
|
|
4585
|
-
var
|
|
4585
|
+
var sn = 0, oe = 1, q = 2;
|
|
4586
4586
|
b.regexp_eatCharacterClassEscape = function(e) {
|
|
4587
4587
|
var t = e.current();
|
|
4588
|
-
if (
|
|
4588
|
+
if (ha(t))
|
|
4589
4589
|
return e.lastIntValue = -1, e.advance(), oe;
|
|
4590
4590
|
var i = !1;
|
|
4591
4591
|
if (e.switchU && this.options.ecmaVersion >= 9 && ((i = t === 80) || t === 112)) {
|
|
@@ -4601,9 +4601,9 @@ b.regexp_eatCharacterClassEscape = function(e) {
|
|
|
4601
4601
|
return i && r === q && e.raise("Invalid property name"), r;
|
|
4602
4602
|
e.raise("Invalid property name");
|
|
4603
4603
|
}
|
|
4604
|
-
return
|
|
4604
|
+
return sn;
|
|
4605
4605
|
};
|
|
4606
|
-
function
|
|
4606
|
+
function ha(e) {
|
|
4607
4607
|
return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
|
|
4608
4608
|
}
|
|
4609
4609
|
b.regexp_eatUnicodePropertyValueExpression = function(e) {
|
|
@@ -4622,7 +4622,7 @@ b.regexp_eatUnicodePropertyValueExpression = function(e) {
|
|
|
4622
4622
|
var n = e.lastStringValue;
|
|
4623
4623
|
return this.regexp_validateUnicodePropertyNameOrValue(e, n);
|
|
4624
4624
|
}
|
|
4625
|
-
return
|
|
4625
|
+
return sn;
|
|
4626
4626
|
};
|
|
4627
4627
|
b.regexp_validateUnicodePropertyNameAndValue = function(e, t, i) {
|
|
4628
4628
|
Be(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(i) || e.raise("Invalid property value");
|
|
@@ -4636,12 +4636,12 @@ b.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
|
|
|
4636
4636
|
};
|
|
4637
4637
|
b.regexp_eatUnicodePropertyName = function(e) {
|
|
4638
4638
|
var t = 0;
|
|
4639
|
-
for (e.lastStringValue = "";
|
|
4639
|
+
for (e.lastStringValue = ""; an(t = e.current()); )
|
|
4640
4640
|
e.lastStringValue += ae(t), e.advance();
|
|
4641
4641
|
return e.lastStringValue !== "";
|
|
4642
4642
|
};
|
|
4643
|
-
function
|
|
4644
|
-
return
|
|
4643
|
+
function an(e) {
|
|
4644
|
+
return nn(e) || e === 95;
|
|
4645
4645
|
}
|
|
4646
4646
|
b.regexp_eatUnicodePropertyValue = function(e) {
|
|
4647
4647
|
var t = 0;
|
|
@@ -4650,7 +4650,7 @@ b.regexp_eatUnicodePropertyValue = function(e) {
|
|
|
4650
4650
|
return e.lastStringValue !== "";
|
|
4651
4651
|
};
|
|
4652
4652
|
function da(e) {
|
|
4653
|
-
return
|
|
4653
|
+
return an(e) || Lt(e);
|
|
4654
4654
|
}
|
|
4655
4655
|
b.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
|
|
4656
4656
|
return this.regexp_eatUnicodePropertyValue(e);
|
|
@@ -4696,7 +4696,7 @@ b.regexp_eatClassAtom = function(e) {
|
|
|
4696
4696
|
return !0;
|
|
4697
4697
|
if (e.switchU) {
|
|
4698
4698
|
var i = e.current();
|
|
4699
|
-
(i === 99 ||
|
|
4699
|
+
(i === 99 || ln(i)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
|
|
4700
4700
|
}
|
|
4701
4701
|
e.pos = t;
|
|
4702
4702
|
}
|
|
@@ -4891,14 +4891,14 @@ function Lt(e) {
|
|
|
4891
4891
|
}
|
|
4892
4892
|
b.regexp_eatHexDigits = function(e) {
|
|
4893
4893
|
var t = e.pos, i = 0;
|
|
4894
|
-
for (e.lastIntValue = 0;
|
|
4895
|
-
e.lastIntValue = 16 * e.lastIntValue +
|
|
4894
|
+
for (e.lastIntValue = 0; on(i = e.current()); )
|
|
4895
|
+
e.lastIntValue = 16 * e.lastIntValue + un(i), e.advance();
|
|
4896
4896
|
return e.pos !== t;
|
|
4897
4897
|
};
|
|
4898
|
-
function
|
|
4898
|
+
function on(e) {
|
|
4899
4899
|
return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
|
|
4900
4900
|
}
|
|
4901
|
-
function
|
|
4901
|
+
function un(e) {
|
|
4902
4902
|
return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
|
|
4903
4903
|
}
|
|
4904
4904
|
b.regexp_eatLegacyOctalEscapeSequence = function(e) {
|
|
@@ -4915,9 +4915,9 @@ b.regexp_eatLegacyOctalEscapeSequence = function(e) {
|
|
|
4915
4915
|
};
|
|
4916
4916
|
b.regexp_eatOctalDigit = function(e) {
|
|
4917
4917
|
var t = e.current();
|
|
4918
|
-
return
|
|
4918
|
+
return ln(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
|
|
4919
4919
|
};
|
|
4920
|
-
function
|
|
4920
|
+
function ln(e) {
|
|
4921
4921
|
return e >= 48 && e <= 55;
|
|
4922
4922
|
}
|
|
4923
4923
|
b.regexp_eatFixedHexDigits = function(e, t) {
|
|
@@ -4925,20 +4925,20 @@ b.regexp_eatFixedHexDigits = function(e, t) {
|
|
|
4925
4925
|
e.lastIntValue = 0;
|
|
4926
4926
|
for (var r = 0; r < t; ++r) {
|
|
4927
4927
|
var n = e.current();
|
|
4928
|
-
if (!
|
|
4928
|
+
if (!on(n))
|
|
4929
4929
|
return e.pos = i, !1;
|
|
4930
|
-
e.lastIntValue = 16 * e.lastIntValue +
|
|
4930
|
+
e.lastIntValue = 16 * e.lastIntValue + un(n), e.advance();
|
|
4931
4931
|
}
|
|
4932
4932
|
return !0;
|
|
4933
4933
|
};
|
|
4934
|
-
var
|
|
4934
|
+
var ki = function(t) {
|
|
4935
4935
|
this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, t.options.locations && (this.loc = new It(t, t.startLoc, t.endLoc)), t.options.ranges && (this.range = [t.start, t.end]);
|
|
4936
4936
|
}, S = V.prototype;
|
|
4937
4937
|
S.next = function(e) {
|
|
4938
|
-
!e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new
|
|
4938
|
+
!e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new ki(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
|
|
4939
4939
|
};
|
|
4940
4940
|
S.getToken = function() {
|
|
4941
|
-
return this.next(), new
|
|
4941
|
+
return this.next(), new ki(this);
|
|
4942
4942
|
};
|
|
4943
4943
|
typeof Symbol < "u" && (S[Symbol.iterator] = function() {
|
|
4944
4944
|
var e = this;
|
|
@@ -4973,7 +4973,7 @@ S.fullCharCodeAtPos = function() {
|
|
|
4973
4973
|
S.skipBlockComment = function() {
|
|
4974
4974
|
var e = this.options.onComment && this.curPosition(), t = this.pos, i = this.input.indexOf("*/", this.pos += 2);
|
|
4975
4975
|
if (i === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = i + 2, this.options.locations)
|
|
4976
|
-
for (var r = void 0, n = t; (r =
|
|
4976
|
+
for (var r = void 0, n = t; (r = Or(this.input, n, this.pos)) > -1; )
|
|
4977
4977
|
++this.curLine, n = this.lineStart = r;
|
|
4978
4978
|
this.options.onComment && this.options.onComment(
|
|
4979
4979
|
!0,
|
|
@@ -5024,7 +5024,7 @@ S.skipSpace = function() {
|
|
|
5024
5024
|
}
|
|
5025
5025
|
break;
|
|
5026
5026
|
default:
|
|
5027
|
-
if (e > 8 && e < 14 || e >= 5760 &&
|
|
5027
|
+
if (e > 8 && e < 14 || e >= 5760 && Lr.test(String.fromCharCode(e)))
|
|
5028
5028
|
++this.pos;
|
|
5029
5029
|
else
|
|
5030
5030
|
break e;
|
|
@@ -5228,28 +5228,28 @@ S.readRegexp = function() {
|
|
|
5228
5228
|
};
|
|
5229
5229
|
S.readInt = function(e, t, i) {
|
|
5230
5230
|
for (var r = this.options.ecmaVersion >= 12 && t === void 0, n = i && this.input.charCodeAt(this.pos) === 48, s = this.pos, a = 0, u = 0, l = 0, c = t ?? 1 / 0; l < c; ++l, ++this.pos) {
|
|
5231
|
-
var
|
|
5232
|
-
if (r &&
|
|
5233
|
-
n && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), u === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), l === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), u =
|
|
5231
|
+
var p = this.input.charCodeAt(this.pos), f = void 0;
|
|
5232
|
+
if (r && p === 95) {
|
|
5233
|
+
n && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), u === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), l === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), u = p;
|
|
5234
5234
|
continue;
|
|
5235
5235
|
}
|
|
5236
|
-
if (
|
|
5236
|
+
if (p >= 97 ? f = p - 97 + 10 : p >= 65 ? f = p - 65 + 10 : p >= 48 && p <= 57 ? f = p - 48 : f = 1 / 0, f >= e)
|
|
5237
5237
|
break;
|
|
5238
|
-
u =
|
|
5238
|
+
u = p, a = a * e + f;
|
|
5239
5239
|
}
|
|
5240
5240
|
return r && u === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === s || t != null && this.pos - s !== t ? null : a;
|
|
5241
5241
|
};
|
|
5242
5242
|
function ba(e, t) {
|
|
5243
5243
|
return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
|
|
5244
5244
|
}
|
|
5245
|
-
function
|
|
5245
|
+
function cn(e) {
|
|
5246
5246
|
return typeof BigInt != "function" ? null : BigInt(e.replace(/_/g, ""));
|
|
5247
5247
|
}
|
|
5248
5248
|
S.readRadixNumber = function(e) {
|
|
5249
5249
|
var t = this.pos;
|
|
5250
5250
|
this.pos += 2;
|
|
5251
5251
|
var i = this.readInt(e);
|
|
5252
|
-
return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i =
|
|
5252
|
+
return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i = cn(this.input.slice(t, this.pos)), ++this.pos) : Z(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(o.num, i);
|
|
5253
5253
|
};
|
|
5254
5254
|
S.readNumber = function(e) {
|
|
5255
5255
|
var t = this.pos;
|
|
@@ -5258,7 +5258,7 @@ S.readNumber = function(e) {
|
|
|
5258
5258
|
i && this.strict && this.raise(t, "Invalid number");
|
|
5259
5259
|
var r = this.input.charCodeAt(this.pos);
|
|
5260
5260
|
if (!i && !e && this.options.ecmaVersion >= 11 && r === 110) {
|
|
5261
|
-
var n =
|
|
5261
|
+
var n = cn(this.input.slice(t, this.pos));
|
|
5262
5262
|
return ++this.pos, Z(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(o.num, n);
|
|
5263
5263
|
}
|
|
5264
5264
|
i && /[89]/.test(this.input.slice(t, this.pos)) && (i = !1), r === 46 && !i && (++this.pos, this.readInt(10), r = this.input.charCodeAt(this.pos)), (r === 69 || r === 101) && !i && (r = this.input.charCodeAt(++this.pos), (r === 43 || r === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), Z(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
|
|
@@ -5285,13 +5285,13 @@ S.readString = function(e) {
|
|
|
5285
5285
|
}
|
|
5286
5286
|
return t += this.input.slice(i, this.pos++), this.finishToken(o.string, t);
|
|
5287
5287
|
};
|
|
5288
|
-
var
|
|
5288
|
+
var fn = {};
|
|
5289
5289
|
S.tryReadTemplateToken = function() {
|
|
5290
5290
|
this.inTemplateElement = !0;
|
|
5291
5291
|
try {
|
|
5292
5292
|
this.readTmplToken();
|
|
5293
5293
|
} catch (e) {
|
|
5294
|
-
if (e ===
|
|
5294
|
+
if (e === fn)
|
|
5295
5295
|
this.readInvalidTemplateToken();
|
|
5296
5296
|
else
|
|
5297
5297
|
throw e;
|
|
@@ -5300,7 +5300,7 @@ S.tryReadTemplateToken = function() {
|
|
|
5300
5300
|
};
|
|
5301
5301
|
S.invalidStringToken = function(e, t) {
|
|
5302
5302
|
if (this.inTemplateElement && this.options.ecmaVersion >= 9)
|
|
5303
|
-
throw
|
|
5303
|
+
throw fn;
|
|
5304
5304
|
this.raise(e, t);
|
|
5305
5305
|
};
|
|
5306
5306
|
S.readTmplToken = function() {
|
|
@@ -5417,14 +5417,14 @@ S.readWord1 = function() {
|
|
|
5417
5417
|
this.containsEsc = !1;
|
|
5418
5418
|
for (var e = "", t = !0, i = this.pos, r = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
|
|
5419
5419
|
var n = this.fullCharCodeAtPos();
|
|
5420
|
-
if (
|
|
5420
|
+
if (pe(n, r))
|
|
5421
5421
|
this.pos += n <= 65535 ? 1 : 2;
|
|
5422
5422
|
else if (n === 92) {
|
|
5423
5423
|
this.containsEsc = !0, e += this.input.slice(i, this.pos);
|
|
5424
5424
|
var s = this.pos;
|
|
5425
5425
|
this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
|
|
5426
5426
|
var a = this.readCodePoint();
|
|
5427
|
-
(t ? Z :
|
|
5427
|
+
(t ? Z : pe)(a, r) || this.invalidStringToken(s, "Invalid Unicode escape"), e += ae(a), i = this.pos;
|
|
5428
5428
|
} else
|
|
5429
5429
|
break;
|
|
5430
5430
|
t = !1;
|
|
@@ -5442,25 +5442,25 @@ V.acorn = {
|
|
|
5442
5442
|
defaultOptions: ti,
|
|
5443
5443
|
Position: Qe,
|
|
5444
5444
|
SourceLocation: It,
|
|
5445
|
-
getLineInfo:
|
|
5445
|
+
getLineInfo: Dr,
|
|
5446
5446
|
Node: Ot,
|
|
5447
|
-
TokenType:
|
|
5447
|
+
TokenType: w,
|
|
5448
5448
|
tokTypes: o,
|
|
5449
5449
|
keywordTypes: yi,
|
|
5450
5450
|
TokContext: J,
|
|
5451
5451
|
tokContexts: N,
|
|
5452
|
-
isIdentifierChar:
|
|
5452
|
+
isIdentifierChar: pe,
|
|
5453
5453
|
isIdentifierStart: Z,
|
|
5454
|
-
Token:
|
|
5454
|
+
Token: ki,
|
|
5455
5455
|
isNewLine: Me,
|
|
5456
5456
|
lineBreak: j,
|
|
5457
5457
|
lineBreakG: $s,
|
|
5458
|
-
nonASCIIwhitespace:
|
|
5458
|
+
nonASCIIwhitespace: Lr
|
|
5459
5459
|
};
|
|
5460
5460
|
function ou(e, t) {
|
|
5461
5461
|
return V.parse(e, t);
|
|
5462
5462
|
}
|
|
5463
|
-
function
|
|
5463
|
+
function he(e) {
|
|
5464
5464
|
const t = [];
|
|
5465
5465
|
let i = "", r = null, n = !1, s = 0, a = 0, u = 0;
|
|
5466
5466
|
for (const c of e) {
|
|
@@ -5501,8 +5501,8 @@ function pe(e) {
|
|
|
5501
5501
|
continue;
|
|
5502
5502
|
}
|
|
5503
5503
|
if (c === "," && s === 0 && a === 0 && u === 0) {
|
|
5504
|
-
const
|
|
5505
|
-
|
|
5504
|
+
const p = i.trim();
|
|
5505
|
+
p && t.push(p), i = "";
|
|
5506
5506
|
continue;
|
|
5507
5507
|
}
|
|
5508
5508
|
i += c;
|
|
@@ -5513,7 +5513,7 @@ function pe(e) {
|
|
|
5513
5513
|
function va(e, t) {
|
|
5514
5514
|
return e.replace(/\\\\/g, "\\").replace(t === '"' ? /\\"/g : /\\'/g, t);
|
|
5515
5515
|
}
|
|
5516
|
-
function
|
|
5516
|
+
function wi(e) {
|
|
5517
5517
|
const t = e.trim();
|
|
5518
5518
|
if (!t)
|
|
5519
5519
|
return "";
|
|
@@ -5526,48 +5526,48 @@ function ki(e) {
|
|
|
5526
5526
|
}
|
|
5527
5527
|
if (t.startsWith("[") && t.endsWith("]")) {
|
|
5528
5528
|
const r = t.slice(1, -1).trim();
|
|
5529
|
-
return r ?
|
|
5529
|
+
return r ? he(r).map(wi) : [];
|
|
5530
5530
|
}
|
|
5531
5531
|
return t === "True" || t === "true" ? !0 : t === "False" || t === "false" ? !1 : t === "None" || t === "null" ? null : /^-?\d+$/.test(t) ? Number.parseInt(t, 10) : /^-?(?:\d+\.\d*|\.\d+)(?:[eE][+-]?\d+)?$/.test(t) || /^-?\d+[eE][+-]?\d+$/.test(t) ? Number.parseFloat(t) : t;
|
|
5532
5532
|
}
|
|
5533
5533
|
function bt(e) {
|
|
5534
5534
|
const t = {};
|
|
5535
|
-
for (const i of
|
|
5535
|
+
for (const i of he(e)) {
|
|
5536
5536
|
const r = i.match(/^(\w+)\s*=\s*([\s\S]+)$/);
|
|
5537
|
-
r && (t[r[1]] =
|
|
5537
|
+
r && (t[r[1]] = wi(r[2]));
|
|
5538
5538
|
}
|
|
5539
5539
|
return t;
|
|
5540
5540
|
}
|
|
5541
5541
|
function _a(e) {
|
|
5542
5542
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null;
|
|
5543
5543
|
}
|
|
5544
|
-
function
|
|
5544
|
+
function pn(e) {
|
|
5545
5545
|
return Array.isArray(e) ? e.filter(_a) : [];
|
|
5546
5546
|
}
|
|
5547
5547
|
function Sa(e) {
|
|
5548
5548
|
const t = Fe(e).match(/^(?:(?:typing|typing_extensions)\.)?Literal\s*\[([\s\S]*)\]$/);
|
|
5549
|
-
return t ?
|
|
5550
|
-
|
|
5549
|
+
return t ? pn(
|
|
5550
|
+
he(t[1]).map(wi)
|
|
5551
5551
|
) : [];
|
|
5552
5552
|
}
|
|
5553
5553
|
function hn(e, t) {
|
|
5554
|
-
const i =
|
|
5554
|
+
const i = pn(t?.enum);
|
|
5555
5555
|
if (i.length > 0)
|
|
5556
5556
|
return i;
|
|
5557
5557
|
const r = Sa(e);
|
|
5558
|
-
return r.length > 0 ? r :
|
|
5558
|
+
return r.length > 0 ? r : ur(e);
|
|
5559
5559
|
}
|
|
5560
|
-
function
|
|
5560
|
+
function ka(e) {
|
|
5561
5561
|
const t = Fe(e), i = t.match(/^(?:(?:typing|typing_extensions)\.)?(?:list|List)\s*\[/);
|
|
5562
5562
|
if (!i) return [];
|
|
5563
5563
|
const r = i[0].length - 1;
|
|
5564
|
-
return
|
|
5564
|
+
return dn(t, r) !== t.length - 1 ? [] : hn(t.slice(r + 1, -1));
|
|
5565
5565
|
}
|
|
5566
5566
|
function $t(e) {
|
|
5567
5567
|
const t = hn(e.type, e.kwargs);
|
|
5568
5568
|
return t.length > 0 && (e.enum = t), e;
|
|
5569
5569
|
}
|
|
5570
|
-
function
|
|
5570
|
+
function dn(e, t) {
|
|
5571
5571
|
let i = null, r = !1, n = 0;
|
|
5572
5572
|
for (let s = t; s < e.length; s += 1) {
|
|
5573
5573
|
const a = e[s];
|
|
@@ -5592,7 +5592,7 @@ function pn(e, t) {
|
|
|
5592
5592
|
}
|
|
5593
5593
|
return -1;
|
|
5594
5594
|
}
|
|
5595
|
-
const Wt = /(\d+(?:\.\d+)?)\s*(ms|s|m|h|d)/gi,
|
|
5595
|
+
const Wt = /(\d+(?:\.\d+)?)\s*(ms|s|m|h|d)/gi, wa = /* @__PURE__ */ new Set(["elapsed", "countdown", "both"]), Aa = /* @__PURE__ */ new Set(["int", "integer", "float", "number"]), Ca = ["gt", "ge", "lt", "le", "multiple_of"];
|
|
5596
5596
|
function Ea(e) {
|
|
5597
5597
|
return e !== void 0 && Aa.has(e.toLowerCase());
|
|
5598
5598
|
}
|
|
@@ -5625,11 +5625,11 @@ function Ta(e) {
|
|
|
5625
5625
|
if (typeof e != "string")
|
|
5626
5626
|
return;
|
|
5627
5627
|
const t = e.trim().toLowerCase();
|
|
5628
|
-
if (
|
|
5628
|
+
if (wa.has(t))
|
|
5629
5629
|
return t;
|
|
5630
5630
|
}
|
|
5631
5631
|
function uu(e) {
|
|
5632
|
-
const t = e.trim(), i =
|
|
5632
|
+
const t = e.trim(), i = he(t), r = i[0].trim();
|
|
5633
5633
|
let n = 1, s = !1, a, u, l, c = !1;
|
|
5634
5634
|
for (let g = 1; g < i.length; g++) {
|
|
5635
5635
|
const y = i[g].trim();
|
|
@@ -5637,14 +5637,14 @@ function uu(e) {
|
|
|
5637
5637
|
n = Number.parseInt(y, 10);
|
|
5638
5638
|
continue;
|
|
5639
5639
|
}
|
|
5640
|
-
const
|
|
5641
|
-
"check" in
|
|
5640
|
+
const h = bt(y);
|
|
5641
|
+
"check" in h && (s = !!h.check), /^title\s*=/.test(y) && (a = mn(y, "Step")), "subtitle" in h && (u = String(h.subtitle)), "checked_message" in h && (l = String(h.checked_message)), "result" in h && (c = !!h.result), "level" in h && (n = Number(h.level));
|
|
5642
5642
|
}
|
|
5643
5643
|
n = Math.max(1, Math.min(3, n));
|
|
5644
|
-
const
|
|
5645
|
-
return { id: r, level: n, check: s, title: a, subtitle: u, checked_message: l, estimated_duration_ms: f, timer_mode: d, result: c, props:
|
|
5644
|
+
const p = bt(t), f = Na(p), d = Ta(p.timer);
|
|
5645
|
+
return { id: r, level: n, check: s, title: a, subtitle: u, checked_message: l, estimated_duration_ms: f, timer_mode: d, result: c, props: p };
|
|
5646
5646
|
}
|
|
5647
|
-
function
|
|
5647
|
+
function mn(e, t) {
|
|
5648
5648
|
const i = e.slice(e.indexOf("=") + 1).trim();
|
|
5649
5649
|
if (!/^(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1$/.test(i))
|
|
5650
5650
|
throw new Error(`${t} title must be a quoted string`);
|
|
@@ -5652,10 +5652,10 @@ function dn(e, t) {
|
|
|
5652
5652
|
`, r: "\r", t: " " })[n] ?? n)).trim() || void 0;
|
|
5653
5653
|
}
|
|
5654
5654
|
function lu(e) {
|
|
5655
|
-
const t = e.trim(), i =
|
|
5655
|
+
const t = e.trim(), i = he(t), r = i[0].trim();
|
|
5656
5656
|
let n, s;
|
|
5657
5657
|
for (let a = 1; a < i.length; a++) {
|
|
5658
|
-
/^title\s*=/.test(i[a].trim()) && (s =
|
|
5658
|
+
/^title\s*=/.test(i[a].trim()) && (s = mn(i[a], "Checkpoint"));
|
|
5659
5659
|
const u = bt(i[a]);
|
|
5660
5660
|
"checked_message" in u && (n = String(u.checked_message));
|
|
5661
5661
|
}
|
|
@@ -5667,50 +5667,50 @@ function cu(e) {
|
|
|
5667
5667
|
if (i !== -1) {
|
|
5668
5668
|
const u = t.indexOf("[", i);
|
|
5669
5669
|
if (u !== -1) {
|
|
5670
|
-
const l =
|
|
5670
|
+
const l = dn(t, u);
|
|
5671
5671
|
l !== -1 && (r = t.slice(u + 1, l));
|
|
5672
5672
|
}
|
|
5673
5673
|
}
|
|
5674
5674
|
if (r) {
|
|
5675
|
-
const u =
|
|
5675
|
+
const u = he(r);
|
|
5676
5676
|
n = {};
|
|
5677
5677
|
for (const l of u)
|
|
5678
5678
|
if (/^var\s*\(/.test(l) || /^[A-Za-z_]\w*\s*[:=]/.test(l)) {
|
|
5679
|
-
const c =
|
|
5679
|
+
const c = Gi(l);
|
|
5680
5680
|
n[c.id] = c;
|
|
5681
5681
|
} else
|
|
5682
5682
|
n[l] = { id: l };
|
|
5683
5683
|
}
|
|
5684
|
-
const s =
|
|
5684
|
+
const s = he(t).filter((u) => !/^subvars\s*=/.test(u)).join(", "), a = Gi(s);
|
|
5685
5685
|
return n ? {
|
|
5686
5686
|
...a,
|
|
5687
5687
|
subvars: n
|
|
5688
5688
|
} : a;
|
|
5689
5689
|
}
|
|
5690
|
-
function
|
|
5690
|
+
function Gi(e) {
|
|
5691
5691
|
let t = e.trim();
|
|
5692
5692
|
t.startsWith("var(") && t.endsWith(")") ? t = t.slice(4, -1).trim() : t.startsWith("var (") && t.endsWith(")") && (t = t.slice(5, -1).trim());
|
|
5693
|
-
const i =
|
|
5693
|
+
const i = he(t), r = (i[0] || "").trim(), n = i.slice(1).filter((y) => /^\w+\s*=/.test(y)), s = bt(n.join(", "));
|
|
5694
5694
|
if (!r.includes(":")) {
|
|
5695
5695
|
const y = r.indexOf("=");
|
|
5696
5696
|
if (y > 0) {
|
|
5697
5697
|
const m = r.slice(y + 1).trim(), _ = {
|
|
5698
5698
|
id: r.slice(0, y).trim(),
|
|
5699
|
-
default:
|
|
5699
|
+
default: Ki(m),
|
|
5700
5700
|
defaultRaw: m
|
|
5701
5701
|
};
|
|
5702
5702
|
return Object.keys(s).length > 0 && (_.kwargs = s), $t(_);
|
|
5703
5703
|
}
|
|
5704
|
-
const
|
|
5705
|
-
return Object.keys(s).length > 0 && (
|
|
5704
|
+
const h = { id: r.split(/\s/)[0].trim() };
|
|
5705
|
+
return Object.keys(s).length > 0 && (h.kwargs = s), $t(h);
|
|
5706
5706
|
}
|
|
5707
5707
|
const a = r.indexOf(":"), u = r.slice(0, a).trim(), l = r.slice(a + 1).trim(), c = l.indexOf("=");
|
|
5708
|
-
let
|
|
5709
|
-
c > 0 ? (
|
|
5710
|
-
const g = { id: u, type:
|
|
5708
|
+
let p, f, d;
|
|
5709
|
+
c > 0 ? (p = l.slice(0, c).trim(), d = l.slice(c + 1).trim(), f = Ki(d)) : p = l.trim();
|
|
5710
|
+
const g = { id: u, type: p };
|
|
5711
5711
|
return f !== void 0 && (g.default = f, g.defaultRaw = d), Object.keys(s).length > 0 && (g.kwargs = s), $t(g);
|
|
5712
5712
|
}
|
|
5713
|
-
function
|
|
5713
|
+
function Ki(e) {
|
|
5714
5714
|
const t = e.trim();
|
|
5715
5715
|
if (t === "true" || t === "True")
|
|
5716
5716
|
return !0;
|
|
@@ -5759,7 +5759,7 @@ function Pa(e) {
|
|
|
5759
5759
|
}
|
|
5760
5760
|
return t;
|
|
5761
5761
|
}
|
|
5762
|
-
function
|
|
5762
|
+
function gn(e) {
|
|
5763
5763
|
const t = [], i = e.kwargs, r = e.type?.toLowerCase();
|
|
5764
5764
|
if (i) {
|
|
5765
5765
|
const n = Ca.filter(
|
|
@@ -5778,23 +5778,23 @@ function mn(e) {
|
|
|
5778
5778
|
}
|
|
5779
5779
|
if (e.subvars)
|
|
5780
5780
|
for (const n of Object.values(e.subvars))
|
|
5781
|
-
t.push(...
|
|
5781
|
+
t.push(...gn(n));
|
|
5782
5782
|
return t;
|
|
5783
5783
|
}
|
|
5784
|
-
function
|
|
5784
|
+
function yn(e) {
|
|
5785
5785
|
const t = Pa(e);
|
|
5786
5786
|
if (e.subvars)
|
|
5787
5787
|
for (const i of Object.values(e.subvars))
|
|
5788
|
-
t.push(...
|
|
5788
|
+
t.push(...yn(i));
|
|
5789
5789
|
return t;
|
|
5790
5790
|
}
|
|
5791
5791
|
function fu(e) {
|
|
5792
5792
|
return [
|
|
5793
|
-
...
|
|
5794
|
-
...
|
|
5793
|
+
...yn(e),
|
|
5794
|
+
...gn(e)
|
|
5795
5795
|
];
|
|
5796
5796
|
}
|
|
5797
|
-
function
|
|
5797
|
+
function Ji(e) {
|
|
5798
5798
|
const t = e.trim();
|
|
5799
5799
|
if (t.length >= 2) {
|
|
5800
5800
|
const i = t[0];
|
|
@@ -5817,28 +5817,28 @@ function Oa(e) {
|
|
|
5817
5817
|
continue;
|
|
5818
5818
|
const l = u.match(/^(\w+):\s*(.*)$/);
|
|
5819
5819
|
if (l) {
|
|
5820
|
-
r && (i[r] =
|
|
5820
|
+
r && (i[r] = Ji(n)), r = l[1];
|
|
5821
5821
|
const c = l[2];
|
|
5822
5822
|
c === "|" ? (s = !0, n = "") : (s = !1, n = c);
|
|
5823
5823
|
} else r && (s || u) && (n ? n += `
|
|
5824
5824
|
${a}` : n = a);
|
|
5825
5825
|
}
|
|
5826
|
-
return r && (i[r] =
|
|
5826
|
+
return r && (i[r] = Ji(n)), i;
|
|
5827
5827
|
}
|
|
5828
5828
|
const La = ["video", "audio", "file"];
|
|
5829
|
-
function
|
|
5829
|
+
function bn(e) {
|
|
5830
5830
|
return (e || "file").trim().toLowerCase() || "file";
|
|
5831
5831
|
}
|
|
5832
5832
|
function Va(e) {
|
|
5833
|
-
return La.includes(
|
|
5833
|
+
return La.includes(bn(e));
|
|
5834
5834
|
}
|
|
5835
|
-
function
|
|
5836
|
-
const t =
|
|
5835
|
+
function pu(e) {
|
|
5836
|
+
const t = bn(e.kind);
|
|
5837
5837
|
return Va(t) ? [] : [
|
|
5838
5838
|
`media "${e.id}": unsupported kind "${e.kind}". Supported media kinds are video, audio, and file; static images must use a fig block.`
|
|
5839
5839
|
];
|
|
5840
5840
|
}
|
|
5841
|
-
function
|
|
5841
|
+
function hu(e) {
|
|
5842
5842
|
const t = Oa(e);
|
|
5843
5843
|
if (!t.id || !t.src)
|
|
5844
5844
|
throw new Error('media block must have "id" and "src" fields');
|
|
@@ -5911,15 +5911,15 @@ function Ba(e, t) {
|
|
|
5911
5911
|
const r = ni(t?.inputType);
|
|
5912
5912
|
return r || ni(e);
|
|
5913
5913
|
}
|
|
5914
|
-
function
|
|
5914
|
+
function xn(e, t) {
|
|
5915
5915
|
return Ba(e, t) !== null;
|
|
5916
5916
|
}
|
|
5917
5917
|
const zt = "airalogy_dna_v1", ja = new Set("ACGTRYSWKMBDHVN".split("")), $a = ["JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC"];
|
|
5918
|
-
function
|
|
5918
|
+
function Qi(e, t) {
|
|
5919
5919
|
const i = typeof e == "string" ? e.trim() : String(e ?? ""), r = Number.parseInt(i, 10);
|
|
5920
5920
|
return Number.isFinite(r) && r > 0 ? r : t;
|
|
5921
5921
|
}
|
|
5922
|
-
function
|
|
5922
|
+
function Hi(e) {
|
|
5923
5923
|
return e === !0 || e === "true" || e === 1 || e === "1";
|
|
5924
5924
|
}
|
|
5925
5925
|
function Wa(e) {
|
|
@@ -5937,7 +5937,7 @@ function du(e) {
|
|
|
5937
5937
|
ja.has(i) || t.add(i);
|
|
5938
5938
|
return [...t];
|
|
5939
5939
|
}
|
|
5940
|
-
function
|
|
5940
|
+
function vn() {
|
|
5941
5941
|
return {
|
|
5942
5942
|
start: 1,
|
|
5943
5943
|
end: 1,
|
|
@@ -5958,7 +5958,7 @@ function Ua(e = "ann_1") {
|
|
|
5958
5958
|
type: "misc_feature",
|
|
5959
5959
|
strand: 1,
|
|
5960
5960
|
color: "#2563eb",
|
|
5961
|
-
segments: [
|
|
5961
|
+
segments: [vn()],
|
|
5962
5962
|
qualifiers: []
|
|
5963
5963
|
};
|
|
5964
5964
|
}
|
|
@@ -5969,16 +5969,16 @@ function mu(e) {
|
|
|
5969
5969
|
i += 1;
|
|
5970
5970
|
return `ann_${i}`;
|
|
5971
5971
|
}
|
|
5972
|
-
function
|
|
5973
|
-
const t =
|
|
5972
|
+
function Yi(e) {
|
|
5973
|
+
const t = vn();
|
|
5974
5974
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
5975
5975
|
return t;
|
|
5976
|
-
const i = e, r =
|
|
5976
|
+
const i = e, r = Qi(i.start, t.start), n = Qi(i.end, Math.max(r, t.end));
|
|
5977
5977
|
return {
|
|
5978
5978
|
start: r,
|
|
5979
5979
|
end: n,
|
|
5980
|
-
partial_start:
|
|
5981
|
-
partial_end:
|
|
5980
|
+
partial_start: Hi(i.partial_start),
|
|
5981
|
+
partial_end: Hi(i.partial_end)
|
|
5982
5982
|
};
|
|
5983
5983
|
}
|
|
5984
5984
|
function qa(e, t = 0) {
|
|
@@ -6018,7 +6018,7 @@ function Ja(e, t = 0) {
|
|
|
6018
6018
|
const i = Ua(`ann_${t + 1}`);
|
|
6019
6019
|
if (!e || typeof e != "object" || Array.isArray(e))
|
|
6020
6020
|
return i;
|
|
6021
|
-
const r = e, n = Array.isArray(r.segments) && r.segments.length > 0 ? r.segments.map((s) =>
|
|
6021
|
+
const r = e, n = Array.isArray(r.segments) && r.segments.length > 0 ? r.segments.map((s) => Yi(s)) : "start" in r || "end" in r ? [Yi({
|
|
6022
6022
|
start: r.start,
|
|
6023
6023
|
end: r.end,
|
|
6024
6024
|
partial_start: r.partial_start,
|
|
@@ -6034,7 +6034,7 @@ function Ja(e, t = 0) {
|
|
|
6034
6034
|
qualifiers: Ka(r.qualifiers, r.note)
|
|
6035
6035
|
};
|
|
6036
6036
|
}
|
|
6037
|
-
function
|
|
6037
|
+
function Xi(e) {
|
|
6038
6038
|
if (typeof e == "string")
|
|
6039
6039
|
return {
|
|
6040
6040
|
format: zt,
|
|
@@ -6076,7 +6076,7 @@ function Ha(e = /* @__PURE__ */ new Date()) {
|
|
|
6076
6076
|
const t = String(e.getDate()).padStart(2, "0"), i = $a[e.getMonth()] ?? "JAN", r = String(e.getFullYear());
|
|
6077
6077
|
return `${t}-${i}-${r}`;
|
|
6078
6078
|
}
|
|
6079
|
-
function
|
|
6079
|
+
function _n(e, t, i = e, r = 79) {
|
|
6080
6080
|
const n = t.replace(/\s+/g, " ").trim();
|
|
6081
6081
|
if (!n)
|
|
6082
6082
|
return [e.trimEnd()];
|
|
@@ -6103,7 +6103,7 @@ function Xa(e) {
|
|
|
6103
6103
|
}
|
|
6104
6104
|
function Za(e, t) {
|
|
6105
6105
|
const i = e.trim() || "note", r = t.replace(/"/g, "'").trim();
|
|
6106
|
-
return r ?
|
|
6106
|
+
return r ? _n(
|
|
6107
6107
|
" ",
|
|
6108
6108
|
`/${i}="${r}"`,
|
|
6109
6109
|
" "
|
|
@@ -6127,7 +6127,7 @@ function bu(e, t) {
|
|
|
6127
6127
|
a.padEnd(9, " "),
|
|
6128
6128
|
Ha(t?.date)
|
|
6129
6129
|
].join(""),
|
|
6130
|
-
...
|
|
6130
|
+
..._n("DEFINITION ", u, " "),
|
|
6131
6131
|
`ACCESSION ${s}`,
|
|
6132
6132
|
`VERSION ${s}.1`,
|
|
6133
6133
|
"KEYWORDS .",
|
|
@@ -6136,21 +6136,21 @@ function bu(e, t) {
|
|
|
6136
6136
|
" other sequences; artificial sequences.",
|
|
6137
6137
|
"FEATURES Location/Qualifiers"
|
|
6138
6138
|
];
|
|
6139
|
-
for (const
|
|
6140
|
-
c.push(` ${(
|
|
6141
|
-
for (const f of eo(
|
|
6139
|
+
for (const p of e.annotations) {
|
|
6140
|
+
c.push(` ${(p.type.trim() || "misc_feature").slice(0, 16).padEnd(16, " ")}${Xa(p)}`);
|
|
6141
|
+
for (const f of eo(p))
|
|
6142
6142
|
c.push(...Za(f.key, f.value));
|
|
6143
6143
|
}
|
|
6144
6144
|
c.push("ORIGIN");
|
|
6145
|
-
for (let
|
|
6146
|
-
const f = i.slice(
|
|
6147
|
-
c.push(`${String(
|
|
6145
|
+
for (let p = 0; p < i.length; p += 60) {
|
|
6146
|
+
const f = i.slice(p, p + 60).toLowerCase(), d = f.match(/.{1,10}/g)?.join(" ") ?? f;
|
|
6147
|
+
c.push(`${String(p + 1).padStart(9, " ")} ${d}`);
|
|
6148
6148
|
}
|
|
6149
6149
|
return c.push("//"), `${c.join(`
|
|
6150
6150
|
`)}
|
|
6151
6151
|
`;
|
|
6152
6152
|
}
|
|
6153
|
-
const to =
|
|
6153
|
+
const to = rr(() => import("./AimdDnaSequenceField-CcH4iNkt.js")), io = rr(() => import("./AimdMarkdownField-BKFxcFlr.js")), ro = Fa.map((e) => ({
|
|
6154
6154
|
type: e,
|
|
6155
6155
|
inputKind: "code"
|
|
6156
6156
|
}));
|
|
@@ -6201,7 +6201,7 @@ const oo = [
|
|
|
6201
6201
|
assignerControl: u,
|
|
6202
6202
|
assignerStatus: l,
|
|
6203
6203
|
assignerError: c,
|
|
6204
|
-
emitChange:
|
|
6204
|
+
emitChange: p,
|
|
6205
6205
|
emitBlur: f
|
|
6206
6206
|
}) => Ni(io, {
|
|
6207
6207
|
class: a,
|
|
@@ -6214,15 +6214,15 @@ const oo = [
|
|
|
6214
6214
|
assignerControl: u,
|
|
6215
6215
|
assignerStatus: l,
|
|
6216
6216
|
assignerError: c,
|
|
6217
|
-
"onUpdate:modelValue": (d) =>
|
|
6217
|
+
"onUpdate:modelValue": (d) => p(d),
|
|
6218
6218
|
onBlur: f
|
|
6219
6219
|
})
|
|
6220
6220
|
},
|
|
6221
6221
|
{
|
|
6222
6222
|
type: "DNASequence",
|
|
6223
6223
|
inputKind: "dna",
|
|
6224
|
-
getInitialValue: () =>
|
|
6225
|
-
normalizeValue: ({ value: e }) =>
|
|
6224
|
+
getInitialValue: () => Xi(void 0),
|
|
6225
|
+
normalizeValue: ({ value: e }) => Xi(e),
|
|
6226
6226
|
renderField: ({
|
|
6227
6227
|
node: e,
|
|
6228
6228
|
value: t,
|
|
@@ -6246,7 +6246,7 @@ const oo = [
|
|
|
6246
6246
|
})
|
|
6247
6247
|
}
|
|
6248
6248
|
];
|
|
6249
|
-
function
|
|
6249
|
+
function Sn(e, t) {
|
|
6250
6250
|
if (!t?.length)
|
|
6251
6251
|
return;
|
|
6252
6252
|
const i = Ke(e);
|
|
@@ -6272,10 +6272,10 @@ function _u(e) {
|
|
|
6272
6272
|
};
|
|
6273
6273
|
}
|
|
6274
6274
|
function Su(e) {
|
|
6275
|
-
return
|
|
6275
|
+
return mr(e);
|
|
6276
6276
|
}
|
|
6277
|
-
function
|
|
6278
|
-
return
|
|
6277
|
+
function ku(e) {
|
|
6278
|
+
return dr(e);
|
|
6279
6279
|
}
|
|
6280
6280
|
function lo(e) {
|
|
6281
6281
|
return Zn(e, void 0, {
|
|
@@ -6294,7 +6294,7 @@ function lo(e) {
|
|
|
6294
6294
|
]
|
|
6295
6295
|
});
|
|
6296
6296
|
}
|
|
6297
|
-
function
|
|
6297
|
+
function wu(e, t) {
|
|
6298
6298
|
const i = ge(t), r = e.findIndex((n) => Object.is(n.value, i));
|
|
6299
6299
|
if (r >= 0)
|
|
6300
6300
|
return String(r);
|
|
@@ -6310,7 +6310,7 @@ function Au(e, t, i = "") {
|
|
|
6310
6310
|
return Number.isInteger(r) && r >= 0 && r < e.length ? e[r].value : i;
|
|
6311
6311
|
}
|
|
6312
6312
|
function co(e, t) {
|
|
6313
|
-
if (
|
|
6313
|
+
if (xn(void 0, { inputType: e, codeLanguage: t }))
|
|
6314
6314
|
return "code";
|
|
6315
6315
|
const i = Ae(e);
|
|
6316
6316
|
if (i) {
|
|
@@ -6340,22 +6340,22 @@ function co(e, t) {
|
|
|
6340
6340
|
return "text";
|
|
6341
6341
|
}
|
|
6342
6342
|
}
|
|
6343
|
-
function
|
|
6343
|
+
function we(e) {
|
|
6344
6344
|
return Ae(e);
|
|
6345
6345
|
}
|
|
6346
6346
|
function le(e) {
|
|
6347
6347
|
return typeof e == "string" ? e.trim().replace(/\s+/g, "").toLowerCase() : "";
|
|
6348
6348
|
}
|
|
6349
|
-
const me = Fe,
|
|
6349
|
+
const me = Fe, kn = Dn;
|
|
6350
6350
|
function fo(e) {
|
|
6351
|
-
const t =
|
|
6351
|
+
const t = we(me(e));
|
|
6352
6352
|
return t === "float" || t === "int" || t === "integer" || t === "number";
|
|
6353
6353
|
}
|
|
6354
6354
|
function Cu(e) {
|
|
6355
|
-
const t =
|
|
6355
|
+
const t = we(me(e));
|
|
6356
6356
|
return t === "int" || t === "integer";
|
|
6357
6357
|
}
|
|
6358
|
-
function
|
|
6358
|
+
function Zi(e) {
|
|
6359
6359
|
const t = le(e).replace(/^typing\./, "");
|
|
6360
6360
|
if (t === "str" || t === "string" || t === "builtins.str")
|
|
6361
6361
|
return "string";
|
|
@@ -6389,7 +6389,7 @@ function Kt(e) {
|
|
|
6389
6389
|
const t = le(e).replace(/^typing\./, "");
|
|
6390
6390
|
return /^(?:airalogy\.types\.)?resourceref(?:\[.*\])?$/.test(t);
|
|
6391
6391
|
}
|
|
6392
|
-
function
|
|
6392
|
+
function po(e, t, i) {
|
|
6393
6393
|
const r = me(e), n = le(r).replace(/^typing\./, "");
|
|
6394
6394
|
let s = !1, a = qt(r), u = Kt(r);
|
|
6395
6395
|
const l = n.match(/^(?:list|array)\[(.*)\]$/);
|
|
@@ -6401,19 +6401,19 @@ function ho(e, t, i) {
|
|
|
6401
6401
|
a = qt(f), u = Kt(f);
|
|
6402
6402
|
}
|
|
6403
6403
|
if (!u) return;
|
|
6404
|
-
const c = i?.resource_role ?? t?.resource_role,
|
|
6404
|
+
const c = i?.resource_role ?? t?.resource_role, p = ["input", "output", "reference", "equipment"].includes(String(c)) ? c : "reference";
|
|
6405
6405
|
return {
|
|
6406
6406
|
multiple: s,
|
|
6407
6407
|
entity: X(i?.entity) ?? X(t?.entity) ?? a,
|
|
6408
6408
|
source: X(i?.source) ?? X(t?.source),
|
|
6409
|
-
role:
|
|
6409
|
+
role: p,
|
|
6410
6410
|
quantityField: X(i?.quantity_field) ?? X(t?.quantity_field),
|
|
6411
6411
|
containerRequired: i?.container_required === !0 || t?.container_required === !0,
|
|
6412
6412
|
bookingRequired: i?.booking_required === !0 || t?.booking_required === !0
|
|
6413
6413
|
};
|
|
6414
6414
|
}
|
|
6415
|
-
function
|
|
6416
|
-
return
|
|
6415
|
+
function ho(e, t, i) {
|
|
6416
|
+
return po(e, t, i) !== void 0;
|
|
6417
6417
|
}
|
|
6418
6418
|
function mo(e, t, i) {
|
|
6419
6419
|
const r = me(e), n = le(r).replace(/^typing\./, ""), s = Ut(r);
|
|
@@ -6423,8 +6423,8 @@ function mo(e, t, i) {
|
|
|
6423
6423
|
a = !0, u = Ut(c[1]), l = Gt(c[1]);
|
|
6424
6424
|
else if (n.endsWith("[]")) {
|
|
6425
6425
|
a = !0;
|
|
6426
|
-
const
|
|
6427
|
-
u = Ut(
|
|
6426
|
+
const p = n.slice(0, -2);
|
|
6427
|
+
u = Ut(p), l = Gt(p);
|
|
6428
6428
|
}
|
|
6429
6429
|
if (l)
|
|
6430
6430
|
return {
|
|
@@ -6439,33 +6439,33 @@ function go(e, t, i) {
|
|
|
6439
6439
|
function Ai(e) {
|
|
6440
6440
|
const t = le(me(e)).replace(/^typing\./, "");
|
|
6441
6441
|
if (t.endsWith("[]"))
|
|
6442
|
-
return
|
|
6442
|
+
return Zi(t.slice(0, -2));
|
|
6443
6443
|
const i = t.match(/^(?:list|array)\[(.*)\]$/);
|
|
6444
|
-
return i ?
|
|
6444
|
+
return i ? Zi(i[1]) : void 0;
|
|
6445
6445
|
}
|
|
6446
6446
|
function yo(e) {
|
|
6447
6447
|
return Ai(e) !== void 0;
|
|
6448
6448
|
}
|
|
6449
6449
|
function Ci(e) {
|
|
6450
|
-
const t = me(e), i = le(t).replace(/^typing\./, ""), r =
|
|
6450
|
+
const t = me(e), i = le(t).replace(/^typing\./, ""), r = we(t);
|
|
6451
6451
|
return r === "json" || r === "list" || i.startsWith("list[") || r === "array" || i.startsWith("array[") || r === "dict" || i.startsWith("dict[") || r === "map" || i.startsWith("map[") || r === "object" || r === "record";
|
|
6452
6452
|
}
|
|
6453
6453
|
function Eu(e, t = {}) {
|
|
6454
6454
|
const i = co(t.inputType, t.codeLanguage);
|
|
6455
6455
|
if (i)
|
|
6456
6456
|
return i;
|
|
6457
|
-
const r = t.typePlugin ??
|
|
6457
|
+
const r = t.typePlugin ?? Sn(e, t.typePlugins);
|
|
6458
6458
|
if (r?.inputKind)
|
|
6459
6459
|
return r.inputKind;
|
|
6460
|
-
if (
|
|
6460
|
+
if (ho(e, t.kwargs, t.fieldMeta))
|
|
6461
6461
|
return "resource-ref";
|
|
6462
6462
|
if (go(e, t.kwargs, t.fieldMeta))
|
|
6463
6463
|
return "entity-ref";
|
|
6464
6464
|
if (yo(e))
|
|
6465
6465
|
return "scalar-list";
|
|
6466
|
-
if (
|
|
6467
|
-
const n = me(e), s =
|
|
6468
|
-
return s === "float" || s === "int" || s === "integer" || s === "number" ? "number" : s === "bool" || s === "boolean" || s === "checkbox" ?
|
|
6466
|
+
if (ka(e).length) return "multi-select";
|
|
6467
|
+
const n = me(e), s = we(n);
|
|
6468
|
+
return s === "float" || s === "int" || s === "integer" || s === "number" ? "number" : s === "bool" || s === "boolean" || s === "checkbox" ? kn(e) ? "boolean-select" : "checkbox" : s === "date" ? "date" : s === "datetime" || s === "currenttime" ? "datetime" : s === "time" || s === "duration" ? "time" : s === "dnasequence" ? "dna" : s === "md" || s === "markdown" || s === "airalogymarkdown" || Ci(e) ? "textarea" : uo(n, t.kwargs, t.fieldMeta) ? "file" : xn(n, { codeLanguage: t.codeLanguage }) ? "code" : "text";
|
|
6469
6469
|
}
|
|
6470
6470
|
function bo(e) {
|
|
6471
6471
|
if (typeof e == "string")
|
|
@@ -6482,10 +6482,10 @@ function xo(e, t) {
|
|
|
6482
6482
|
const i = Number(e);
|
|
6483
6483
|
return !Number.isFinite(i) || t === "int" && !Number.isInteger(i) ? e : i;
|
|
6484
6484
|
}
|
|
6485
|
-
function
|
|
6485
|
+
function An(e, t = "string") {
|
|
6486
6486
|
return e.map((i) => i === null || typeof i > "u" ? "" : String(i).trim()).filter((i) => i.length > 0).map((i) => t === "string" ? i : xo(i, t));
|
|
6487
6487
|
}
|
|
6488
|
-
function
|
|
6488
|
+
function Cn(e) {
|
|
6489
6489
|
const t = ge(e);
|
|
6490
6490
|
if (Array.isArray(t))
|
|
6491
6491
|
return t.map((i) => i === null || typeof i > "u" ? "" : String(i));
|
|
@@ -6505,7 +6505,7 @@ function An(e) {
|
|
|
6505
6505
|
}
|
|
6506
6506
|
return t === null || typeof t > "u" ? [] : [String(t)];
|
|
6507
6507
|
}
|
|
6508
|
-
function
|
|
6508
|
+
function er(e) {
|
|
6509
6509
|
const t = ge(e);
|
|
6510
6510
|
if (typeof t == "string")
|
|
6511
6511
|
return t.trim();
|
|
@@ -6516,7 +6516,7 @@ function Zi(e) {
|
|
|
6516
6516
|
}
|
|
6517
6517
|
function vo(e) {
|
|
6518
6518
|
const t = ge(e);
|
|
6519
|
-
return Array.isArray(t) ? t.map((i) =>
|
|
6519
|
+
return Array.isArray(t) ? t.map((i) => er(i)).filter(Boolean).join(", ") : er(t);
|
|
6520
6520
|
}
|
|
6521
6521
|
function Pe(e) {
|
|
6522
6522
|
if (typeof e == "number")
|
|
@@ -6526,14 +6526,14 @@ function Pe(e) {
|
|
|
6526
6526
|
return Number.isFinite(t) ? t : void 0;
|
|
6527
6527
|
}
|
|
6528
6528
|
}
|
|
6529
|
-
function
|
|
6529
|
+
function En(e, t) {
|
|
6530
6530
|
if (!fo(e) || !t)
|
|
6531
6531
|
return {};
|
|
6532
6532
|
const i = {}, r = Pe(t.gt), n = Pe(t.ge), s = Pe(t.lt), a = Pe(t.le), u = Pe(t.multiple_of);
|
|
6533
6533
|
return r !== void 0 && (i.gt = r), n !== void 0 && (i.ge = n), s !== void 0 && (i.lt = s), a !== void 0 && (i.le = a), u !== void 0 && u > 0 && (i.multiple_of = u), i;
|
|
6534
6534
|
}
|
|
6535
6535
|
function Iu(e, t) {
|
|
6536
|
-
const i =
|
|
6536
|
+
const i = En(e, t), r = [i.gt, i.ge].filter((s) => s !== void 0), n = [i.lt, i.le].filter((s) => s !== void 0);
|
|
6537
6537
|
return {
|
|
6538
6538
|
min: r.length ? Math.max(...r) : void 0,
|
|
6539
6539
|
max: n.length ? Math.min(...n) : void 0,
|
|
@@ -6541,7 +6541,7 @@ function Iu(e, t) {
|
|
|
6541
6541
|
};
|
|
6542
6542
|
}
|
|
6543
6543
|
function Nu(e, t, i) {
|
|
6544
|
-
const r =
|
|
6544
|
+
const r = En(t, i);
|
|
6545
6545
|
if (Object.keys(r).length === 0 || e === null || typeof e > "u" || typeof e == "string" && e.trim() === "")
|
|
6546
6546
|
return null;
|
|
6547
6547
|
const n = Pe(e);
|
|
@@ -6568,7 +6568,7 @@ function ge(e) {
|
|
|
6568
6568
|
function Tu(e) {
|
|
6569
6569
|
return Jn(e);
|
|
6570
6570
|
}
|
|
6571
|
-
function
|
|
6571
|
+
function In(e) {
|
|
6572
6572
|
const t = ge(e);
|
|
6573
6573
|
if (t instanceof Date)
|
|
6574
6574
|
return Number.isNaN(t.getTime()) ? null : t;
|
|
@@ -6589,7 +6589,7 @@ function _o(e) {
|
|
|
6589
6589
|
const t = -e.getTimezoneOffset(), i = t >= 0 ? "+" : "-", r = Math.abs(t), n = Math.floor(r / 60), s = r % 60;
|
|
6590
6590
|
return `${i}${Q(n)}:${Q(s)}`;
|
|
6591
6591
|
}
|
|
6592
|
-
function
|
|
6592
|
+
function tr(e) {
|
|
6593
6593
|
const t = e.getFullYear(), i = Q(e.getMonth() + 1), r = Q(e.getDate()), n = Q(e.getHours()), s = Q(e.getMinutes());
|
|
6594
6594
|
return `${t}-${i}-${r}T${n}:${s}${_o(e)}`;
|
|
6595
6595
|
}
|
|
@@ -6603,28 +6603,28 @@ function So(e) {
|
|
|
6603
6603
|
if (/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/.test(n))
|
|
6604
6604
|
return n;
|
|
6605
6605
|
const s = new Date(n);
|
|
6606
|
-
return Number.isNaN(s.getTime()) ? e :
|
|
6606
|
+
return Number.isNaN(s.getTime()) ? e : tr(s);
|
|
6607
6607
|
}
|
|
6608
6608
|
if (t === null || typeof t > "u")
|
|
6609
6609
|
return "";
|
|
6610
|
-
const i =
|
|
6611
|
-
return i ?
|
|
6610
|
+
const i = In(t);
|
|
6611
|
+
return i ? tr(i) : e;
|
|
6612
6612
|
}
|
|
6613
|
-
function
|
|
6613
|
+
function ko(e, t) {
|
|
6614
6614
|
const i = ge(e);
|
|
6615
6615
|
if (typeof i == "string" && i.trim()) {
|
|
6616
|
-
const
|
|
6617
|
-
if (t === "date" && /^\d{4}-\d{2}-\d{2}/.test(
|
|
6618
|
-
return
|
|
6616
|
+
const p = i.trim();
|
|
6617
|
+
if (t === "date" && /^\d{4}-\d{2}-\d{2}/.test(p))
|
|
6618
|
+
return p.slice(0, 10);
|
|
6619
6619
|
if (t === "datetime") {
|
|
6620
|
-
const f =
|
|
6620
|
+
const f = p.replace(" ", "T");
|
|
6621
6621
|
if (/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}/.test(f))
|
|
6622
6622
|
return f.slice(0, 16);
|
|
6623
6623
|
}
|
|
6624
|
-
if (t === "time" && /^\d{2}:\d{2}/.test(
|
|
6625
|
-
return
|
|
6624
|
+
if (t === "time" && /^\d{2}:\d{2}/.test(p))
|
|
6625
|
+
return p.slice(0, 8);
|
|
6626
6626
|
}
|
|
6627
|
-
const r =
|
|
6627
|
+
const r = In(i);
|
|
6628
6628
|
if (!r)
|
|
6629
6629
|
return "";
|
|
6630
6630
|
const n = r.getFullYear(), s = Q(r.getMonth() + 1), a = Q(r.getDate()), u = Q(r.getHours()), l = Q(r.getMinutes()), c = Q(r.getSeconds());
|
|
@@ -6635,7 +6635,7 @@ function Pu(e, t, i = {}) {
|
|
|
6635
6635
|
if (r?.getDisplayValue) {
|
|
6636
6636
|
const s = {
|
|
6637
6637
|
type: i.type || "str",
|
|
6638
|
-
normalizedType:
|
|
6638
|
+
normalizedType: we(i.type),
|
|
6639
6639
|
fieldKey: i.nodeFieldKey ?? "",
|
|
6640
6640
|
node: {},
|
|
6641
6641
|
value: e,
|
|
@@ -6646,7 +6646,7 @@ function Pu(e, t, i = {}) {
|
|
|
6646
6646
|
}
|
|
6647
6647
|
const n = ge(e);
|
|
6648
6648
|
if (t === "date" || t === "datetime" || t === "time")
|
|
6649
|
-
return
|
|
6649
|
+
return ko(n, t);
|
|
6650
6650
|
if (t === "number")
|
|
6651
6651
|
return typeof n == "number" || typeof n == "string" ? n : "";
|
|
6652
6652
|
if (t === "boolean-select") {
|
|
@@ -6661,17 +6661,17 @@ function Pu(e, t, i = {}) {
|
|
|
6661
6661
|
}
|
|
6662
6662
|
return "";
|
|
6663
6663
|
}
|
|
6664
|
-
return t === "dna" ? typeof n == "string" ? n : JSON.stringify(n) : t === "file" ? lo(n) : t === "scalar-list" ? JSON.stringify(
|
|
6665
|
-
|
|
6664
|
+
return t === "dna" ? typeof n == "string" ? n : JSON.stringify(n) : t === "file" ? lo(n) : t === "scalar-list" ? JSON.stringify(An(
|
|
6665
|
+
Cn(n),
|
|
6666
6666
|
Ai(i.type) ?? "string"
|
|
6667
6667
|
)) : t === "entity-ref" || t === "resource-ref" ? vo(n) : Ci(i.type) ? bo(n) : typeof n == "string" ? n : n === null || typeof n > "u" ? "" : String(n);
|
|
6668
6668
|
}
|
|
6669
6669
|
function Ou(e, t, i, r = {}) {
|
|
6670
|
-
const n = r.typePlugin ??
|
|
6670
|
+
const n = r.typePlugin ?? Sn(t, r.typePlugins);
|
|
6671
6671
|
if (n?.parseInputValue) {
|
|
6672
6672
|
const u = {
|
|
6673
6673
|
type: t || "str",
|
|
6674
|
-
normalizedType:
|
|
6674
|
+
normalizedType: we(t),
|
|
6675
6675
|
fieldKey: r.nodeFieldKey ?? "",
|
|
6676
6676
|
node: {},
|
|
6677
6677
|
rawValue: e,
|
|
@@ -6680,7 +6680,7 @@ function Ou(e, t, i, r = {}) {
|
|
|
6680
6680
|
};
|
|
6681
6681
|
return n.parseInputValue(u);
|
|
6682
6682
|
}
|
|
6683
|
-
const s =
|
|
6683
|
+
const s = kn(t), a = we(me(t));
|
|
6684
6684
|
if ((i === "date" || i === "datetime" || i === "time") && s && e.trim() === "")
|
|
6685
6685
|
return null;
|
|
6686
6686
|
if (i === "datetime")
|
|
@@ -6693,8 +6693,8 @@ function Ou(e, t, i, r = {}) {
|
|
|
6693
6693
|
return Number.isNaN(l) ? e : l;
|
|
6694
6694
|
}
|
|
6695
6695
|
if (i === "scalar-list")
|
|
6696
|
-
return
|
|
6697
|
-
|
|
6696
|
+
return An(
|
|
6697
|
+
Cn(e),
|
|
6698
6698
|
Ai(t) ?? "string"
|
|
6699
6699
|
);
|
|
6700
6700
|
if (i === "boolean-select") {
|
|
@@ -6713,7 +6713,7 @@ function Ou(e, t, i, r = {}) {
|
|
|
6713
6713
|
}
|
|
6714
6714
|
return s && e.trim() === "" ? null : e;
|
|
6715
6715
|
}
|
|
6716
|
-
function
|
|
6716
|
+
function Nn(e) {
|
|
6717
6717
|
switch (e) {
|
|
6718
6718
|
case "checkbox":
|
|
6719
6719
|
return 64;
|
|
@@ -6731,7 +6731,7 @@ function In(e) {
|
|
|
6731
6731
|
return 0;
|
|
6732
6732
|
}
|
|
6733
6733
|
}
|
|
6734
|
-
function
|
|
6734
|
+
function wo(e) {
|
|
6735
6735
|
switch (e) {
|
|
6736
6736
|
case "datetime":
|
|
6737
6737
|
return 36;
|
|
@@ -6762,7 +6762,7 @@ function Ao(e) {
|
|
|
6762
6762
|
}
|
|
6763
6763
|
}
|
|
6764
6764
|
function Lu(e, t) {
|
|
6765
|
-
const i = Math.max(e.length + 7, 10), s = Math.round(i * 8 + 16), a =
|
|
6765
|
+
const i = Math.max(e.length + 7, 10), s = Math.round(i * 8 + 16), a = Nn(t);
|
|
6766
6766
|
return `${Math.max(a, s)}px`;
|
|
6767
6767
|
}
|
|
6768
6768
|
function O(e) {
|
|
@@ -6770,11 +6770,11 @@ function O(e) {
|
|
|
6770
6770
|
return Number.isFinite(t) ? t : 0;
|
|
6771
6771
|
}
|
|
6772
6772
|
let Jt = null;
|
|
6773
|
-
function
|
|
6773
|
+
function Tn() {
|
|
6774
6774
|
return typeof window > "u" ? null : (Jt || (Jt = document.createElement("canvas")), Jt.getContext("2d"));
|
|
6775
6775
|
}
|
|
6776
6776
|
function Co(e, t) {
|
|
6777
|
-
const i =
|
|
6777
|
+
const i = Tn();
|
|
6778
6778
|
if (!i)
|
|
6779
6779
|
return 0;
|
|
6780
6780
|
const r = t.fontSize || "16px", n = t.fontFamily || "sans-serif", s = t.fontWeight || "400", a = t.fontStyle || "normal";
|
|
@@ -6812,15 +6812,15 @@ function No(e) {
|
|
|
6812
6812
|
function To(e) {
|
|
6813
6813
|
if (typeof window > "u")
|
|
6814
6814
|
return e.scrollWidth;
|
|
6815
|
-
const t =
|
|
6815
|
+
const t = Tn();
|
|
6816
6816
|
if (!t)
|
|
6817
6817
|
return e.scrollWidth;
|
|
6818
6818
|
const i = window.getComputedStyle(e), r = i.fontSize || "16px", n = i.fontFamily || "sans-serif", s = i.fontWeight || "400", a = i.fontStyle || "normal";
|
|
6819
6819
|
t.font = `${a} ${s} ${r} ${n}`;
|
|
6820
|
-
const u = e instanceof HTMLSelectElement ? Array.from(e.options).map((
|
|
6820
|
+
const u = e instanceof HTMLSelectElement ? Array.from(e.options).map((p) => p.text).reduce((p, f) => t.measureText(f).width > t.measureText(p).width ? f : p, "") : "value" in e ? e.value || e.placeholder || "" : (e.textContent || "").trim(), l = t.measureText(u).width, c = O(i.paddingLeft) + O(i.paddingRight);
|
|
6821
6821
|
return l + c + (e instanceof HTMLSelectElement ? 26 : 2);
|
|
6822
6822
|
}
|
|
6823
|
-
function
|
|
6823
|
+
function ir(e, t, i) {
|
|
6824
6824
|
const r = e.querySelector(t);
|
|
6825
6825
|
return r ? r.offsetWidth || i : 0;
|
|
6826
6826
|
}
|
|
@@ -6851,25 +6851,25 @@ function Du(e, t) {
|
|
|
6851
6851
|
}
|
|
6852
6852
|
const r = No(i);
|
|
6853
6853
|
let n = 0;
|
|
6854
|
-
const s = i.querySelector(".aimd-rec-inline__input--stacked, .aimd-rec-inline__textarea--stacked-text, .aimd-rec-inline__file-control, .aimd-rec-inline__scalar-list"), a = Math.max(
|
|
6855
|
-
s && (n = To(s) +
|
|
6854
|
+
const s = i.querySelector(".aimd-rec-inline__input--stacked, .aimd-rec-inline__textarea--stacked-text, .aimd-rec-inline__file-control, .aimd-rec-inline__scalar-list"), a = Math.max(Nn(t), Ao(s));
|
|
6855
|
+
s && (n = To(s) + wo(t)), i.querySelector(".aimd-rec-inline__control-row") && (n += ir(i, ".aimd-rec-inline__assigner-prefix", 36) + ir(i, ".aimd-rec-inline__assigner-status", 30));
|
|
6856
6856
|
const u = Math.max(a, r, n);
|
|
6857
6857
|
i.style.width = `${Math.ceil(u)}px`, i.style.maxWidth = "100%";
|
|
6858
6858
|
}
|
|
6859
6859
|
export {
|
|
6860
6860
|
Os as $,
|
|
6861
6861
|
zt as A,
|
|
6862
|
-
|
|
6862
|
+
Cn as B,
|
|
6863
6863
|
Ai as C,
|
|
6864
6864
|
Et as D,
|
|
6865
6865
|
Ho as E,
|
|
6866
|
-
|
|
6866
|
+
wu as F,
|
|
6867
6867
|
Au as G,
|
|
6868
6868
|
Pu as H,
|
|
6869
6869
|
Eu as I,
|
|
6870
6870
|
eu as J,
|
|
6871
6871
|
uo as K,
|
|
6872
|
-
|
|
6872
|
+
ho as L,
|
|
6873
6873
|
yo as M,
|
|
6874
6874
|
Ct as N,
|
|
6875
6875
|
Yo as O,
|
|
@@ -6881,19 +6881,19 @@ export {
|
|
|
6881
6881
|
So as U,
|
|
6882
6882
|
Ja as V,
|
|
6883
6883
|
qa as W,
|
|
6884
|
-
|
|
6884
|
+
Yi as X,
|
|
6885
6885
|
si as Y,
|
|
6886
|
-
|
|
6887
|
-
|
|
6886
|
+
Xi as Z,
|
|
6887
|
+
Nr as _,
|
|
6888
6888
|
ru as a,
|
|
6889
6889
|
xt as a$,
|
|
6890
|
-
|
|
6890
|
+
An as a0,
|
|
6891
6891
|
Ts as a1,
|
|
6892
6892
|
Is as a2,
|
|
6893
6893
|
Cs as a3,
|
|
6894
6894
|
Ls as a4,
|
|
6895
|
-
|
|
6896
|
-
|
|
6895
|
+
Bi as a5,
|
|
6896
|
+
we as a6,
|
|
6897
6897
|
Ou as a7,
|
|
6898
6898
|
As as a8,
|
|
6899
6899
|
st as a9,
|
|
@@ -6901,11 +6901,11 @@ export {
|
|
|
6901
6901
|
Re as aB,
|
|
6902
6902
|
Qn as aC,
|
|
6903
6903
|
Hn as aD,
|
|
6904
|
-
|
|
6904
|
+
dr as aE,
|
|
6905
6905
|
oi as aF,
|
|
6906
6906
|
iu as aG,
|
|
6907
6907
|
Bo as aH,
|
|
6908
|
-
|
|
6908
|
+
mr as aI,
|
|
6909
6909
|
Uo as aJ,
|
|
6910
6910
|
Wo as aK,
|
|
6911
6911
|
zo as aL,
|
|
@@ -6931,56 +6931,56 @@ export {
|
|
|
6931
6931
|
qo as ae,
|
|
6932
6932
|
Vu as af,
|
|
6933
6933
|
Tu as ag,
|
|
6934
|
-
|
|
6934
|
+
In as ah,
|
|
6935
6935
|
ge as ai,
|
|
6936
6936
|
Wn as aj,
|
|
6937
6937
|
Vt as ak,
|
|
6938
6938
|
zn as al,
|
|
6939
|
-
|
|
6940
|
-
|
|
6939
|
+
fr as am,
|
|
6940
|
+
lr as an,
|
|
6941
6941
|
Un as ao,
|
|
6942
|
-
|
|
6942
|
+
cr as ap,
|
|
6943
6943
|
$n as aq,
|
|
6944
6944
|
su as ar,
|
|
6945
|
-
|
|
6946
|
-
|
|
6945
|
+
ws as as,
|
|
6946
|
+
Vi as at,
|
|
6947
6947
|
jo as au,
|
|
6948
6948
|
ui as av,
|
|
6949
|
-
|
|
6949
|
+
pr as aw,
|
|
6950
6950
|
Zn as ax,
|
|
6951
|
-
|
|
6951
|
+
Li as ay,
|
|
6952
6952
|
hr as az,
|
|
6953
6953
|
Ns as b,
|
|
6954
6954
|
oo as b0,
|
|
6955
6955
|
xu as b1,
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
6973
|
-
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
|
|
6956
|
+
Sn as b2,
|
|
6957
|
+
Bn as b3,
|
|
6958
|
+
Fe as b4,
|
|
6959
|
+
Do as b5,
|
|
6960
|
+
ou as b6,
|
|
6961
|
+
ku as b7,
|
|
6962
|
+
Su as b8,
|
|
6963
|
+
fo as b9,
|
|
6964
|
+
Nu as ba,
|
|
6965
|
+
Vo as bb,
|
|
6966
|
+
Fo as bc,
|
|
6967
|
+
kn as bd,
|
|
6968
|
+
Ro as be,
|
|
6969
|
+
Cu as bf,
|
|
6970
|
+
Ba as bg,
|
|
6971
|
+
Iu as bh,
|
|
6972
|
+
ka as bi,
|
|
6973
|
+
mo as bj,
|
|
6974
|
+
jn as bk,
|
|
6975
|
+
Lo as bl,
|
|
6976
|
+
cu as bm,
|
|
6977
6977
|
Oo as bn,
|
|
6978
|
-
|
|
6978
|
+
Dn as bo,
|
|
6979
6979
|
lu as bp,
|
|
6980
6980
|
uu as bq,
|
|
6981
6981
|
fu as br,
|
|
6982
|
-
|
|
6983
|
-
|
|
6982
|
+
pu as bs,
|
|
6983
|
+
hu as bt,
|
|
6984
6984
|
Du as c,
|
|
6985
6985
|
gu as d,
|
|
6986
6986
|
Lu as e,
|
|
@@ -6989,13 +6989,13 @@ export {
|
|
|
6989
6989
|
gi as h,
|
|
6990
6990
|
Ua as i,
|
|
6991
6991
|
za as j,
|
|
6992
|
-
|
|
6993
|
-
|
|
6992
|
+
vn as k,
|
|
6993
|
+
Ir as l,
|
|
6994
6994
|
lt as m,
|
|
6995
6995
|
_u as n,
|
|
6996
6996
|
au as o,
|
|
6997
|
-
|
|
6998
|
-
|
|
6997
|
+
ko as p,
|
|
6998
|
+
tr as q,
|
|
6999
6999
|
Jo as r,
|
|
7000
7000
|
yu as s,
|
|
7001
7001
|
lo as t,
|
|
@@ -7004,5 +7004,5 @@ export {
|
|
|
7004
7004
|
Xo as w,
|
|
7005
7005
|
Zo as x,
|
|
7006
7006
|
Vs as y,
|
|
7007
|
-
|
|
7007
|
+
po as z
|
|
7008
7008
|
};
|