@cimom/ci-web-plugins-commom 1.0.22 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/HeaderDropdown/index.vue/index2.js +1 -1
- package/dist/components/VxeTablePro/index.vue/index2.js +1 -1
- package/package.json +1 -1
- package/dist/_virtual/_commonjsHelpers/index.js +0 -1
- package/dist/_virtual/array-set/index.js +0 -1
- package/dist/_virtual/base64/index.js +0 -1
- package/dist/_virtual/base64-vlq/index.js +0 -1
- package/dist/_virtual/binary-search/index.js +0 -1
- package/dist/_virtual/mapping-list/index.js +0 -1
- package/dist/_virtual/picocolors/index.js +0 -1
- package/dist/_virtual/postcss/index.js +0 -1
- package/dist/_virtual/quick-sort/index.js +0 -1
- package/dist/_virtual/source-map/index.js +0 -1
- package/dist/_virtual/source-map-consumer/index.js +0 -1
- package/dist/_virtual/source-map-generator/index.js +0 -1
- package/dist/_virtual/source-node/index.js +0 -1
- package/dist/_virtual/symbols/index.js +0 -1
- package/dist/_virtual/util/index.js +0 -1
- package/dist/components/HeaderDropdown.vue/index.js +0 -1
- package/dist/components/HeaderDropdown.vue/index2.js +0 -1
- package/dist/node_modules/nanoid/non-secure/index/index.js +0 -1
- package/dist/node_modules/picocolors/picocolors/index.js +0 -1
- package/dist/node_modules/postcss/lib/at-rule/index.js +0 -1
- package/dist/node_modules/postcss/lib/comment/index.js +0 -1
- package/dist/node_modules/postcss/lib/container/index.js +0 -1
- package/dist/node_modules/postcss/lib/css-syntax-error/index.js +0 -1
- package/dist/node_modules/postcss/lib/declaration/index.js +0 -1
- package/dist/node_modules/postcss/lib/document/index.js +0 -1
- package/dist/node_modules/postcss/lib/fromJSON/index.js +0 -1
- package/dist/node_modules/postcss/lib/input/index.js +0 -1
- package/dist/node_modules/postcss/lib/lazy-result/index.js +0 -1
- package/dist/node_modules/postcss/lib/list/index.js +0 -1
- package/dist/node_modules/postcss/lib/map-generator/index.js +0 -1
- package/dist/node_modules/postcss/lib/no-work-result/index.js +0 -1
- package/dist/node_modules/postcss/lib/node/index.js +0 -1
- package/dist/node_modules/postcss/lib/parse/index.js +0 -1
- package/dist/node_modules/postcss/lib/parser/index.js +0 -1
- package/dist/node_modules/postcss/lib/postcss/index.js +0 -1
- package/dist/node_modules/postcss/lib/postcss/index2.js +0 -1
- package/dist/node_modules/postcss/lib/previous-map/index.js +0 -1
- package/dist/node_modules/postcss/lib/processor/index.js +0 -1
- package/dist/node_modules/postcss/lib/result/index.js +0 -1
- package/dist/node_modules/postcss/lib/root/index.js +0 -1
- package/dist/node_modules/postcss/lib/rule/index.js +0 -1
- package/dist/node_modules/postcss/lib/stringifier/index.js +0 -1
- package/dist/node_modules/postcss/lib/stringify/index.js +0 -1
- package/dist/node_modules/postcss/lib/symbols/index.js +0 -1
- package/dist/node_modules/postcss/lib/terminal-highlight/index.js +0 -1
- package/dist/node_modules/postcss/lib/tokenize/index.js +0 -1
- package/dist/node_modules/postcss/lib/warn-once/index.js +0 -1
- package/dist/node_modules/postcss/lib/warning/index.js +0 -1
- package/dist/node_modules/source-map-js/lib/array-set/index.js +0 -1
- package/dist/node_modules/source-map-js/lib/base64/index.js +0 -1
- package/dist/node_modules/source-map-js/lib/base64-vlq/index.js +0 -1
- package/dist/node_modules/source-map-js/lib/binary-search/index.js +0 -1
- package/dist/node_modules/source-map-js/lib/mapping-list/index.js +0 -1
- package/dist/node_modules/source-map-js/lib/quick-sort/index.js +0 -1
- package/dist/node_modules/source-map-js/lib/source-map-consumer/index.js +0 -1
- package/dist/node_modules/source-map-js/lib/source-map-generator/index.js +0 -1
- package/dist/node_modules/source-map-js/lib/source-node/index.js +0 -1
- package/dist/node_modules/source-map-js/lib/util/index.js +0 -1
- package/dist/node_modules/source-map-js/source-map/index.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ref as e,computed as a,onMounted as t,resolveComponent as l,createElementBlock as o,openBlock as n,createElementVNode as r,toDisplayString as i,createVNode as s,withCtx as d,createCommentVNode as m,createBlock as f,createTextVNode as c,withModifiers as u}from"vue";const p={class:"header-dropdown"},b={style:{display:"inline-block"}},y={style:{display:"flex"}},v={style:{display:"flex"}},g={style:{display:"flex"}},x={style:{display:"flex"}},R={style:{display:"flex"}},h={style:{display:"flex"}},k={style:{display:"flex"}},C={style:{display:"flex"}},_={class:"menu-trigger-wrapper"},w={style:{display:"flex"}},S={class:"menu-trigger-wrapper"},B={style:{display:"flex"}},z={class:"menu-trigger-wrapper"},D={style:{display:"flex"}},P={style:{display:"flex"}},T={style:{display:"flex"}},F={style:{display:"flex"}},I={style:{display:"flex"}},E={style:{display:"flex"}};var N={__name:"index",props:{onImport:Function,onExport:Function,onAsc:Function,onDesc:Function,onFullscreen:Function,onPrint:Function,onCustom:Function,onAll:Function,onIndividual:Function,refreshCustom:Function,searchCustom:Function,tableRef:{type:Object,default:null},title:{type:String,default:null},column:{type:Object,default:null},headerConfig:{type:Object,import:{type:Boolean,default:!1},export:{type:Boolean,default:!1},lineHeight:{type:Boolean,default:!1},custom:{type:Boolean,default:!1},resetCustom:{type:Boolean,default:!1},save:{type:Boolean,default:!1},feedback:{type:Boolean,default:!1},chart:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},print:{type:Boolean,default:!1},lock:{type:Boolean,default:!1},unlock:{type:Boolean,default:!1}}},setup(N){const O=N,V=e(!1),H=e(36),A=e(!1),J=e(!0),L=e("mini");e(null),a((()=>!!O.onExport||!!O.tableRef));const j=e=>{O.tableRef?.toolbarRef?(O.tableRef.vxeTableProRef.resetCustom(e),localStorage.setItem(O.tableRef.vxeTableProRef.id,JSON.stringify({border:!0,lineHeight:36,stripe:!1,cellStyle:"mini"})),le()):console.warn("无法导出:缺少 tableRef 或 exportData 方法")},M=()=>{const e=document.getElementsByClassName("dropdown-trigger-icon"),a=document.getElementsByClassName("dropdownRight");e[0].style.opacity=1,a[0].style.borderLeft="1px solid #ddd"},U=()=>{if(0==V.value){const e=document.getElementsByClassName("dropdown-trigger-icon"),a=document.getElementsByClassName("dropdownRight");e[0].style.opacity=0,a[0].style.borderLeft="0px solid #ddd"}},q=e=>{V.value=e;const a=document.getElementsByClassName("dropdown-trigger-icon"),t=document.getElementsByClassName("dropdownRight");1==e?(a[0].style.opacity=1,t[0].style.borderLeft="1px solid #ddd"):(a[0].style.opacity=0,t[0].style.borderLeft="0px solid #ddd")},G=e(null),K=(e,a)=>{switch(e){case"import":O.onImport?O.onImport():O.tableRef?.openImport?O.tableRef.openImport():console.warn("无法导出:缺少 tableRef 或 exportData 方法");break;case"export":O.onExport?O.onExport():O.tableRef?.exportData?O.tableRef.exportData({filename:"表格数据",sheetName:"Sheet1",type:"csv"}):(console.warn("无法导出:缺少 tableRef 或 exportData 方法"),ElMessage?.warning?.("导出失败:表格实例不可用"));break;case"asc":O.onAsc?.();break;case"desc":O.onDesc?.();break;case"fullscreen":O.tableRef?O.tableRef.toggleFullscreen():console.warn("无法导出:缺少 tableRef 或 exportData 方法");break;case"print":O.onPrint?O.onPrint():(alert("触发了打印方法"),O.tableRef?.toolbarRef?(console.log(O.tableRef,"输出"),O.tableRef.vxeTableProRef.openPrint()):console.warn("无法导出:缺少 tableRef 或 exportData 方法"));break;case"custom":O.onCustom?O.onCustom():(e=>{O.tableRef?.toolbarRef?O.tableRef.vxeTableProRef.customOpenEvent(e):console.warn("无法导出:缺少 tableRef 或 exportData 方法")})(a);break;case"resetCustom":j(!0);break;case"save":break;case"lineHeight":G.value?.handleOpen();break;case"refreshCustom":O.refreshCustom?O.refreshCustom(O.tableRef.vxeTableProRef.id):j(!0);break;case"searchCustom":O.searchCustom&&O.searchCustom();break;case"lock":O.tableRef.vxeTableProRef.setColumnFixed(O.column.field,"left");break;case"unlock":O.tableRef.vxeTableProRef.clearColumnFixed(O.column.field)}},Q=(e,a)=>{switch(e){case"cellStyle":ee();break;case"stripeStyle":te();break;case"smallStyle":W();break;case"mediumStyle":X();break;case"miniStyle":Y();break;case"largeStyle":Z();break;case"local":defaultlocal();break;case"individual":let e=O.tableRef.vxeTableProRef.getCustomStoreData();var t=JSON.parse(localStorage.getItem(O.tableRef.vxeTableProRef.id));e.basicConfig=t,O.onIndividual?.(O.tableRef.vxeTableProRef.id,e);break;case"all":let a=O.tableRef.vxeTableProRef.getCustomStoreData();var l=JSON.parse(localStorage.getItem(O.tableRef.vxeTableProRef.id));a.basicConfig=l,O.onAll?.(O.tableRef.vxeTableProRef.id,a)}},W=e=>{O.tableRef?(L.value="small",ae(),O.tableRef.sizeBool("small")):console.warn("无法导出:缺少 tableRef 或 exportData 方法")},X=e=>{O.tableRef?(L.value="medium",ae(),O.tableRef.sizeBool("medium")):console.warn("无法导出:缺少 tableRef 或 exportData 方法")},Y=e=>{O.tableRef?(L.value="mini",ae(),O.tableRef.sizeBool("mini")):console.warn("无法导出:缺少 tableRef 或 exportData 方法")},Z=e=>{O.tableRef?(O.tableRef.sizeBool("default"),L.value="default",ae()):console.warn("无法导出:缺少 tableRef 或 exportData 方法")},$=e=>{O.tableRef?(O.tableRef.changelineHeight(e),ae()):console.warn("无法导出:缺少 tableRef 或 exportData 方法")},ee=e=>{O.tableRef?setTimeout((()=>{O.tableRef.borderBool(J.value),ae()}),500):console.warn("无法导出:缺少 tableRef 或 exportData 方法")},ae=()=>{localStorage.setItem(O.tableRef.vxeTableProRef.id,JSON.stringify({border:J.value,lineHeight:H.value,stripe:A.value,cellStyle:L.value}))},te=e=>{O.tableRef?setTimeout((()=>{O.tableRef.scriptBool(A.value),ae()}),500):console.warn("无法导出:缺少 tableRef 或 exportData 方法")},le=()=>{try{if(localStorage.getItem(O.tableRef.vxeTableProRef.id)){var e=JSON.parse(localStorage.getItem(O.tableRef.vxeTableProRef.id));setTimeout((()=>{J.value=e?.border,A.value=e.stripe,L.value=e.cellStyle||"default",H.value=e.lineHeight||36,O.tableRef.scriptBool(A.value),O.tableRef.borderBool(J.value),O.tableRef.changelineHeight(H.value),O.tableRef.sizeBool(L.value)}),100)}}catch(e){}};return t((()=>{le()})),(e,a)=>{const t=l("vxe-icon"),V=l("el-dropdown-item"),L=l("el-input-number"),j=l("el-dropdown-menu"),W=l("el-dropdown"),X=l("el-checkbox");return n(),o("div",p,[r("span",b,i(N.title),1),r("div",{class:"dropdownRight",onMouseleave:U,onMouseenter:M},[s(W,{ref_key:"dropdown",ref:G,trigger:"click",onCommand:K,onVisibleChange:q},{dropdown:d((()=>[s(j,null,{default:d((()=>[m(" 导入 "),O.headerConfig.import?(n(),f(V,{key:0,command:"import"},{default:d((()=>[r("div",y,[s(t,{name:"upload",size:"16"}),a[12]||(a[12]=r("div",{style:{"margin-top":"-3px"}},"导入",-1))])])),_:1})):m("v-if",!0),m(" 导出 "),O.headerConfig.export?(n(),f(V,{key:1,command:"export"},{default:d((()=>[r("div",v,[s(t,{name:"download",size:"16"}),a[13]||(a[13]=r("div",{style:{"margin-top":"-3px"}},"导出",-1))])])),_:1})):m("v-if",!0),m(" 正序 "),O.onAsc?(n(),f(V,{key:2,command:"asc"},{default:d((()=>[r("div",g,[s(t,{name:"sort-alpha-asc",size:"16"}),a[14]||(a[14]=r("div",{style:{"margin-top":"-3px"}},"正序(接口)",-1))])])),_:1})):m("v-if",!0),m(" 倒序 "),O.onDesc?(n(),f(V,{key:3,command:"desc"},{default:d((()=>[r("div",x,[s(t,{name:"sort-alpha-desc",size:"16"}),a[15]||(a[15]=r("div",{style:{"margin-top":"-3px"}},"倒序(接口)",-1))])])),_:1})):m("v-if",!0),O.headerConfig.lineHeight?(n(),f(V,{key:4,command:"lineHeight"},{default:d((()=>[r("div",R,[s(t,{name:"number",size:"16",style:{"margin-top":"7px"}}),r("div",null,[a[16]||(a[16]=c("行高: ")),s(L,{modelValue:H.value,"onUpdate:modelValue":a[0]||(a[0]=e=>H.value=e),min:1,max:200,style:{width:"100px"},"controls-position":"right",onChange:$},null,8,["modelValue"])])])])),_:1})):m("v-if",!0),O.headerConfig.custom?(n(),f(V,{key:5,command:"custom",onClick:a[1]||(a[1]=e=>K("custom",e))},{default:d((()=>[r("div",h,[s(t,{name:"setting",size:"16"}),a[17]||(a[17]=r("div",{style:{"margin-top":"-3px"}},"列设置",-1))])])),_:1})):m("v-if",!0),O.headerConfig.resetCustom?(n(),f(V,{key:6,command:"resetCustom",onClick:a[2]||(a[2]=e=>K("resetCustom",e))},{default:d((()=>[r("div",k,[s(t,{name:"repeat",size:"16"}),a[18]||(a[18]=r("div",{style:{"margin-top":"-3px"}},"重置列",-1))])])),_:1})):m("v-if",!0),O.headerConfig.save?(n(),f(V,{key:7,command:"save",onClick:a[4]||(a[4]=e=>K("save",e))},{default:d((()=>[r("div",C,[s(t,{name:"save",size:"16"}),a[19]||(a[19]=r("div",{style:{"margin-top":"-3px",width:"100px","margin-right":"35px"}},"保存布局",-1))]),s(W,{placement:"right-start","fallback-placements":["bottom-start"],onCommand:Q,trigger:"hover",onClick:a[3]||(a[3]=u((()=>{}),["stop"]))},{dropdown:d((()=>[s(j,{class:"style-sub-menu"},{default:d((()=>[O.onIndividual?(n(),f(V,{key:0,command:"individual"},{default:d((()=>a[20]||(a[20]=[c("保存个人")]))),_:1,__:[20]})):m("v-if",!0),O.onAll?(n(),f(V,{key:1,command:"all"},{default:d((()=>a[21]||(a[21]=[c("保存所有")]))),_:1,__:[21]})):m("v-if",!0)])),_:1})])),default:d((()=>[r("div",_,[s(t,{name:"caret-right"})])])),_:1})])),_:1})):m("v-if",!0),O.headerConfig.feedback?(n(),f(V,{key:8,command:"feedback"},{default:d((()=>[r("div",w,[s(t,{name:"feedback",size:"16"}),a[22]||(a[22]=r("div",{style:{"margin-top":"-3px",width:"100px","margin-right":"35px"}},"样式",-1))]),s(W,{placement:"right-start","fallback-placements":["bottom-start"],onCommand:Q,trigger:"hover",onClick:a[7]||(a[7]=u((()=>{}),["stop"]))},{dropdown:d((()=>[s(j,{class:"style-sub-menu"},{default:d((()=>[s(V,{command:"stripeStyle"},{default:d((()=>[s(X,{modelValue:A.value,"onUpdate:modelValue":a[5]||(a[5]=e=>A.value=e)},{default:d((()=>a[23]||(a[23]=[c("启用斑马纹")]))),_:1,__:[23]},8,["modelValue"])])),_:1}),s(V,{command:"cellStyle"},{default:d((()=>[s(X,{modelValue:J.value,"onUpdate:modelValue":a[6]||(a[6]=e=>J.value=e)},{default:d((()=>a[24]||(a[24]=[c("启用边框")]))),_:1,__:[24]},8,["modelValue"])])),_:1})])),_:1})])),default:d((()=>[r("div",S,[s(t,{name:"caret-right"})])])),_:1})])),_:1})):m("v-if",!0),O.headerConfig.chart?(n(),f(V,{key:9,command:"chart"},{default:d((()=>[r("div",B,[s(t,{name:"chart-bar-x",size:"16"}),a[25]||(a[25]=r("div",{style:{"margin-top":"-3px",width:"100px","margin-right":"35px"}},"排版",-1))]),s(W,{placement:"right-start","fallback-placements":["bottom-start"],onCommand:Q,trigger:"hover",onClick:a[8]||(a[8]=u((()=>{}),["stop"]))},{dropdown:d((()=>[s(j,{class:"style-sub-menu"},{default:d((()=>[s(V,{command:"largeStyle"},{default:d((()=>a[26]||(a[26]=[c("默认")]))),_:1,__:[26]}),s(V,{command:"mediumStyle"},{default:d((()=>a[27]||(a[27]=[c("中")]))),_:1,__:[27]}),s(V,{command:"smallStyle"},{default:d((()=>a[28]||(a[28]=[c("小")]))),_:1,__:[28]}),s(V,{command:"miniStyle"},{default:d((()=>a[29]||(a[29]=[c("迷你")]))),_:1,__:[29]})])),_:1})])),default:d((()=>[r("div",z,[s(t,{name:"caret-right"})])])),_:1})])),_:1})):m("v-if",!0),O.refreshCustom?(n(),f(V,{key:10,command:"refreshCustom",onClick:a[9]||(a[9]=e=>K("refreshCustom",e))},{default:d((()=>[r("div",D,[s(t,{name:"refresh",size:"16"}),a[30]||(a[30]=r("div",{style:{"margin-top":"-3px"}},"更新布局",-1))])])),_:1})):m("v-if",!0),O.searchCustom?(n(),f(V,{key:11,command:"searchCustom"},{default:d((()=>[r("div",P,[s(t,{name:"repeat",size:"16"}),a[31]||(a[31]=r("div",{style:{"margin-top":"-3px"}},"刷新",-1))])])),_:1})):m("v-if",!0),m(" 全屏 "),O.headerConfig.fullscreen?(n(),f(V,{key:12,command:"fullscreen"},{default:d((()=>[r("div",T,[s(t,{name:"zoom-out",size:"16"}),a[32]||(a[32]=r("div",{style:{"margin-top":"-3px"}},"全屏",-1))])])),_:1})):m("v-if",!0),m(" 打印 "),O.headerConfig.print?(n(),f(V,{key:13,command:"print"},{default:d((()=>[r("div",F,[s(t,{name:"print",size:"16"}),a[33]||(a[33]=r("div",{style:{"margin-top":"-3px"}},"打印",-1))])])),_:1})):m("v-if",!0),O.headerConfig.lock?(n(),f(V,{key:14,command:"lock",onClick:a[10]||(a[10]=e=>K("lock",e))},{default:d((()=>[r("div",I,[s(t,{name:"lock",size:"16"}),a[34]||(a[34]=r("div",{style:{"margin-top":"-3px"}},"锁定",-1))])])),_:1})):m("v-if",!0),O.headerConfig.unlock?(n(),f(V,{key:15,command:"unlock",onClick:a[11]||(a[11]=e=>K("unlock",e))},{default:d((()=>[r("div",E,[s(t,{name:"unlock",size:"16"}),a[35]||(a[35]=r("div",{style:{"margin-top":"-3px"}},"解锁",-1))])])),_:1})):m("v-if",!0)])),_:1})])),default:d((()=>[s(t,{class:"dropdown-trigger-icon",tabindex:"-1",style:{"margin-top":"4px"},name:"caret-down"})])),_:1},512)],32)])}}};export{N as default};
|
|
1
|
+
import{ref as e,computed as a,onMounted as l,resolveComponent as t,createElementBlock as o,openBlock as n,createElementVNode as i,toDisplayString as s,normalizeClass as r,createVNode as d,withCtx as m,createCommentVNode as f,createBlock as c,createTextVNode as u,withModifiers as p}from"vue";const b={class:"header-dropdown"},y={style:{display:"inline-block"}},v={style:{display:"flex"}},g={style:{display:"flex"}},x={style:{display:"flex"}},R={style:{display:"flex"}},h={style:{display:"flex"}},k={style:{display:"flex"}},C={style:{display:"flex"}},_={style:{display:"flex"}},w={class:"menu-trigger-wrapper"},S={style:{display:"flex"}},B={class:"menu-trigger-wrapper"},z={style:{display:"flex"}},D={class:"menu-trigger-wrapper"},P={style:{display:"flex"}},T={style:{display:"flex"}},F={style:{display:"flex"}},I={style:{display:"flex"}},E={style:{display:"flex"}},N={style:{display:"flex"}};var O={__name:"index",props:{onImport:Function,onExport:Function,onAsc:Function,onDesc:Function,onFullscreen:Function,onPrint:Function,onCustom:Function,onAll:Function,onIndividual:Function,refreshCustom:Function,searchCustom:Function,tableRef:{type:Object,default:null},title:{type:String,default:null},column:{type:Object,default:null},headerConfig:{type:Object,import:{type:Boolean,default:!1},export:{type:Boolean,default:!1},lineHeight:{type:Boolean,default:!1},custom:{type:Boolean,default:!1},resetCustom:{type:Boolean,default:!1},save:{type:Boolean,default:!1},feedback:{type:Boolean,default:!1},chart:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},print:{type:Boolean,default:!1},lock:{type:Boolean,default:!1},unlock:{type:Boolean,default:!1}}},setup(O){const V=O,H=e(!1),A=e(36),J=e(!1),L=e(!0),j=e("mini");e(null),a((()=>!!V.onExport||!!V.tableRef));const M=e=>{V.tableRef?.toolbarRef?(V.tableRef.vxeTableProRef.resetCustom(e),localStorage.setItem(V.tableRef.vxeTableProRef.id,JSON.stringify({border:!0,lineHeight:36,stripe:!1,cellStyle:"mini"})),oe()):console.warn("无法导出:缺少 tableRef 或 exportData 方法")},U=()=>{const e=document.getElementsByClassName(V.column.field);console.log(e);const a=document.getElementsByClassName(""+("dropdownRight"+V.column.field));e[0].style.opacity=1,a[0].style.borderLeft="1px solid #ddd"},$=()=>{if(0==H.value){const e=document.getElementsByClassName(V.column.field),a=document.getElementsByClassName(""+("dropdownRight"+V.column.field));e[0].style.opacity=0,a[0].style.borderLeft="0px solid #ddd"}},q=e=>{H.value=e;const a=document.getElementsByClassName("dropdown-trigger-icon"),l=document.getElementsByClassName(""+("dropdownRight"+V.column.field));1==e?(a[0].style.opacity=1,l[0].style.borderLeft="1px solid #ddd"):(a[0].style.opacity=0,l[0].style.borderLeft="0px solid #ddd")},G=e(null),K=(e,a)=>{switch(e){case"import":V.onImport?V.onImport():V.tableRef?.openImport?V.tableRef.openImport():console.warn("无法导出:缺少 tableRef 或 exportData 方法");break;case"export":V.onExport?V.onExport():V.tableRef?.exportData?V.tableRef.exportData({filename:"表格数据",sheetName:"Sheet1",type:"csv"}):(console.warn("无法导出:缺少 tableRef 或 exportData 方法"),ElMessage?.warning?.("导出失败:表格实例不可用"));break;case"asc":V.onAsc?.();break;case"desc":V.onDesc?.();break;case"fullscreen":V.tableRef?V.tableRef.toggleFullscreen():console.warn("无法导出:缺少 tableRef 或 exportData 方法");break;case"print":V.onPrint?V.onPrint():(alert("触发了打印方法"),V.tableRef?.toolbarRef?(console.log(V.tableRef,"输出"),V.tableRef.vxeTableProRef.openPrint()):console.warn("无法导出:缺少 tableRef 或 exportData 方法"));break;case"custom":V.onCustom?V.onCustom():(e=>{V.tableRef?.toolbarRef?V.tableRef.vxeTableProRef.customOpenEvent(e):console.warn("无法导出:缺少 tableRef 或 exportData 方法")})(a);break;case"resetCustom":M(!0);break;case"save":break;case"lineHeight":G.value?.handleOpen();break;case"refreshCustom":V.refreshCustom?V.refreshCustom(V.tableRef.vxeTableProRef.id):M(!0);break;case"searchCustom":V.searchCustom&&V.searchCustom();break;case"lock":V.tableRef.vxeTableProRef.setColumnFixed(V.column.field,"left");break;case"unlock":V.tableRef.vxeTableProRef.clearColumnFixed(V.column.field)}},Q=(e,a)=>{switch(e){case"cellStyle":ae();break;case"stripeStyle":te();break;case"smallStyle":W();break;case"mediumStyle":X();break;case"miniStyle":Y();break;case"largeStyle":Z();break;case"local":defaultlocal();break;case"individual":let e=V.tableRef.vxeTableProRef.getCustomStoreData();var l=JSON.parse(localStorage.getItem(V.tableRef.vxeTableProRef.id));e.basicConfig=l,V.onIndividual?.(V.tableRef.vxeTableProRef.id,e);break;case"all":let a=V.tableRef.vxeTableProRef.getCustomStoreData();var t=JSON.parse(localStorage.getItem(V.tableRef.vxeTableProRef.id));a.basicConfig=t,V.onAll?.(V.tableRef.vxeTableProRef.id,a)}},W=e=>{V.tableRef?(j.value="small",le(),V.tableRef.sizeBool("small")):console.warn("无法导出:缺少 tableRef 或 exportData 方法")},X=e=>{V.tableRef?(j.value="medium",le(),V.tableRef.sizeBool("medium")):console.warn("无法导出:缺少 tableRef 或 exportData 方法")},Y=e=>{V.tableRef?(j.value="mini",le(),V.tableRef.sizeBool("mini")):console.warn("无法导出:缺少 tableRef 或 exportData 方法")},Z=e=>{V.tableRef?(V.tableRef.sizeBool("default"),j.value="default",le()):console.warn("无法导出:缺少 tableRef 或 exportData 方法")},ee=e=>{V.tableRef?(V.tableRef.changelineHeight(e),le()):console.warn("无法导出:缺少 tableRef 或 exportData 方法")},ae=e=>{V.tableRef?setTimeout((()=>{V.tableRef.borderBool(L.value),le()}),500):console.warn("无法导出:缺少 tableRef 或 exportData 方法")},le=()=>{localStorage.setItem(V.tableRef.vxeTableProRef.id,JSON.stringify({border:L.value,lineHeight:A.value,stripe:J.value,cellStyle:j.value}))},te=e=>{V.tableRef?setTimeout((()=>{V.tableRef.scriptBool(J.value),le()}),500):console.warn("无法导出:缺少 tableRef 或 exportData 方法")},oe=()=>{try{if(localStorage.getItem(V.tableRef.vxeTableProRef.id)){var e=JSON.parse(localStorage.getItem(V.tableRef.vxeTableProRef.id));setTimeout((()=>{L.value=e?.border,J.value=e.stripe,j.value=e.cellStyle||"default",A.value=e.lineHeight||36,V.tableRef.scriptBool(J.value),V.tableRef.borderBool(L.value),V.tableRef.changelineHeight(A.value),V.tableRef.sizeBool(j.value)}),100)}}catch(e){}};return l((()=>{oe()})),(e,a)=>{const l=t("vxe-icon"),H=t("el-dropdown-item"),j=t("el-input-number"),M=t("el-dropdown-menu"),W=t("el-dropdown"),X=t("el-checkbox");return n(),o("div",b,[i("span",y,s(O.title),1),i("div",{class:r("dropdownRight "+("dropdownRight"+V.column.field)),onMouseleave:$,onMouseenter:U},[d(W,{ref_key:"dropdown",ref:G,trigger:"click",onCommand:K,onVisibleChange:q},{dropdown:m((()=>[d(M,null,{default:m((()=>[f(" 导入 "),V.headerConfig.import?(n(),c(H,{key:0,command:"import"},{default:m((()=>[i("div",v,[d(l,{name:"upload",size:"16"}),a[12]||(a[12]=i("div",{style:{"margin-top":"-3px"}},"导入",-1))])])),_:1})):f("v-if",!0),f(" 导出 "),V.headerConfig.export?(n(),c(H,{key:1,command:"export"},{default:m((()=>[i("div",g,[d(l,{name:"download",size:"16"}),a[13]||(a[13]=i("div",{style:{"margin-top":"-3px"}},"导出",-1))])])),_:1})):f("v-if",!0),f(" 正序 "),V.onAsc?(n(),c(H,{key:2,command:"asc"},{default:m((()=>[i("div",x,[d(l,{name:"sort-alpha-asc",size:"16"}),a[14]||(a[14]=i("div",{style:{"margin-top":"-3px"}},"正序(接口)",-1))])])),_:1})):f("v-if",!0),f(" 倒序 "),V.onDesc?(n(),c(H,{key:3,command:"desc"},{default:m((()=>[i("div",R,[d(l,{name:"sort-alpha-desc",size:"16"}),a[15]||(a[15]=i("div",{style:{"margin-top":"-3px"}},"倒序(接口)",-1))])])),_:1})):f("v-if",!0),V.headerConfig.lineHeight?(n(),c(H,{key:4,command:"lineHeight"},{default:m((()=>[i("div",h,[d(l,{name:"number",size:"16",style:{"margin-top":"7px"}}),i("div",null,[a[16]||(a[16]=u("行高: ")),d(j,{modelValue:A.value,"onUpdate:modelValue":a[0]||(a[0]=e=>A.value=e),min:1,max:200,style:{width:"100px"},"controls-position":"right",onChange:ee},null,8,["modelValue"])])])])),_:1})):f("v-if",!0),V.headerConfig.custom?(n(),c(H,{key:5,command:"custom",onClick:a[1]||(a[1]=e=>K("custom",e))},{default:m((()=>[i("div",k,[d(l,{name:"setting",size:"16"}),a[17]||(a[17]=i("div",{style:{"margin-top":"-3px"}},"列设置",-1))])])),_:1})):f("v-if",!0),V.headerConfig.resetCustom?(n(),c(H,{key:6,command:"resetCustom",onClick:a[2]||(a[2]=e=>K("resetCustom",e))},{default:m((()=>[i("div",C,[d(l,{name:"repeat",size:"16"}),a[18]||(a[18]=i("div",{style:{"margin-top":"-3px"}},"重置列",-1))])])),_:1})):f("v-if",!0),V.headerConfig.save?(n(),c(H,{key:7,command:"save",onClick:a[4]||(a[4]=e=>K("save",e))},{default:m((()=>[i("div",_,[d(l,{name:"save",size:"16"}),a[19]||(a[19]=i("div",{style:{"margin-top":"-3px",width:"100px","margin-right":"35px"}},"保存布局",-1))]),d(W,{placement:"right-start","fallback-placements":["bottom-start"],onCommand:Q,trigger:"hover",onClick:a[3]||(a[3]=p((()=>{}),["stop"]))},{dropdown:m((()=>[d(M,{class:"style-sub-menu"},{default:m((()=>[V.onIndividual?(n(),c(H,{key:0,command:"individual"},{default:m((()=>a[20]||(a[20]=[u("保存个人")]))),_:1,__:[20]})):f("v-if",!0),V.onAll?(n(),c(H,{key:1,command:"all"},{default:m((()=>a[21]||(a[21]=[u("保存所有")]))),_:1,__:[21]})):f("v-if",!0)])),_:1})])),default:m((()=>[i("div",w,[d(l,{name:"caret-right"})])])),_:1})])),_:1})):f("v-if",!0),V.headerConfig.feedback?(n(),c(H,{key:8,command:"feedback"},{default:m((()=>[i("div",S,[d(l,{name:"feedback",size:"16"}),a[22]||(a[22]=i("div",{style:{"margin-top":"-3px",width:"100px","margin-right":"35px"}},"样式",-1))]),d(W,{placement:"right-start","fallback-placements":["bottom-start"],onCommand:Q,trigger:"hover",onClick:a[7]||(a[7]=p((()=>{}),["stop"]))},{dropdown:m((()=>[d(M,{class:"style-sub-menu"},{default:m((()=>[d(H,{command:"stripeStyle"},{default:m((()=>[d(X,{modelValue:J.value,"onUpdate:modelValue":a[5]||(a[5]=e=>J.value=e)},{default:m((()=>a[23]||(a[23]=[u("启用斑马纹")]))),_:1,__:[23]},8,["modelValue"])])),_:1}),d(H,{command:"cellStyle"},{default:m((()=>[d(X,{modelValue:L.value,"onUpdate:modelValue":a[6]||(a[6]=e=>L.value=e)},{default:m((()=>a[24]||(a[24]=[u("启用边框")]))),_:1,__:[24]},8,["modelValue"])])),_:1})])),_:1})])),default:m((()=>[i("div",B,[d(l,{name:"caret-right"})])])),_:1})])),_:1})):f("v-if",!0),V.headerConfig.chart?(n(),c(H,{key:9,command:"chart"},{default:m((()=>[i("div",z,[d(l,{name:"chart-bar-x",size:"16"}),a[25]||(a[25]=i("div",{style:{"margin-top":"-3px",width:"100px","margin-right":"35px"}},"排版",-1))]),d(W,{placement:"right-start","fallback-placements":["bottom-start"],onCommand:Q,trigger:"hover",onClick:a[8]||(a[8]=p((()=>{}),["stop"]))},{dropdown:m((()=>[d(M,{class:"style-sub-menu"},{default:m((()=>[d(H,{command:"largeStyle"},{default:m((()=>a[26]||(a[26]=[u("默认")]))),_:1,__:[26]}),d(H,{command:"mediumStyle"},{default:m((()=>a[27]||(a[27]=[u("中")]))),_:1,__:[27]}),d(H,{command:"smallStyle"},{default:m((()=>a[28]||(a[28]=[u("小")]))),_:1,__:[28]}),d(H,{command:"miniStyle"},{default:m((()=>a[29]||(a[29]=[u("迷你")]))),_:1,__:[29]})])),_:1})])),default:m((()=>[i("div",D,[d(l,{name:"caret-right"})])])),_:1})])),_:1})):f("v-if",!0),V.refreshCustom?(n(),c(H,{key:10,command:"refreshCustom",onClick:a[9]||(a[9]=e=>K("refreshCustom",e))},{default:m((()=>[i("div",P,[d(l,{name:"refresh",size:"16"}),a[30]||(a[30]=i("div",{style:{"margin-top":"-3px"}},"更新布局",-1))])])),_:1})):f("v-if",!0),V.searchCustom?(n(),c(H,{key:11,command:"searchCustom"},{default:m((()=>[i("div",T,[d(l,{name:"repeat",size:"16"}),a[31]||(a[31]=i("div",{style:{"margin-top":"-3px"}},"刷新",-1))])])),_:1})):f("v-if",!0),f(" 全屏 "),V.headerConfig.fullscreen?(n(),c(H,{key:12,command:"fullscreen"},{default:m((()=>[i("div",F,[d(l,{name:"zoom-out",size:"16"}),a[32]||(a[32]=i("div",{style:{"margin-top":"-3px"}},"全屏",-1))])])),_:1})):f("v-if",!0),f(" 打印 "),V.headerConfig.print?(n(),c(H,{key:13,command:"print"},{default:m((()=>[i("div",I,[d(l,{name:"print",size:"16"}),a[33]||(a[33]=i("div",{style:{"margin-top":"-3px"}},"打印",-1))])])),_:1})):f("v-if",!0),V.headerConfig.lock?(n(),c(H,{key:14,command:"lock",onClick:a[10]||(a[10]=e=>K("lock",e))},{default:m((()=>[i("div",E,[d(l,{name:"lock",size:"16"}),a[34]||(a[34]=i("div",{style:{"margin-top":"-3px"}},"锁定",-1))])])),_:1})):f("v-if",!0),V.headerConfig.unlock?(n(),c(H,{key:15,command:"unlock",onClick:a[11]||(a[11]=e=>K("unlock",e))},{default:m((()=>[i("div",N,[d(l,{name:"unlock",size:"16"}),a[35]||(a[35]=i("div",{style:{"margin-top":"-3px"}},"解锁",-1))])])),_:1})):f("v-if",!0)])),_:1})])),default:m((()=>[d(l,{class:r(`dropdown-trigger-icon ${V.column.field}`),tabindex:"-1",style:{"margin-top":"4px"},name:"caret-down"},null,8,["class"])])),_:1},512)],34)])}}};export{O as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ref as e,reactive as t,useAttrs as o,computed as l,onMounted as n,nextTick as r,resolveComponent as s,createElementBlock as u,openBlock as c,
|
|
1
|
+
import{ref as e,reactive as t,useAttrs as o,computed as l,onMounted as n,nextTick as r,resolveComponent as s,createElementBlock as u,openBlock as c,createTextVNode as a,createCommentVNode as i,createBlock as m,createVNode as v,mergeProps as f,toHandlers as d,createSlots as g,renderList as p,withCtx as b,renderSlot as x,normalizeProps as h,guardReactiveProps as E}from"vue";const F={id:"VxeTablePro"};var k={__name:"index",props:{},setup(k,{expose:y}){const _={};e("");const w=e(!0),R=e(null),S=t({storage:w.value,mode:"default"}),I=o(),T=e(!1),q=e(!0),z=e("mini"),O=l((()=>{const e={..._};return Object.keys(I).forEach((t=>{t.startsWith("on")||(e[t]=I[t])})),e})),P=l((()=>{const e={};return Object.keys(I).forEach((t=>{t.startsWith("on")&&(e[t]=I[t])})),e})),B=l((()=>!1!==I.toolbar)),L=l((()=>({custom:!1,print:!1,export:!1,import:!1,zoom:!1,refresh:!1,...I["toolbar-config"]}))),V=l((()=>!1!==B.value)),C=l((()=>I["refresh-options"]||null)),J=e(null),N=e(null);n((async()=>{await r();const e=J.value,t=N.value?.getInstance?.()||N.value;e&&t&&(e.connect?.(t),console.log("[VxeTablePro] 已连接工具栏"))}));const j=()=>{const e=!!(document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement);console.log("全屏状态:",e?"是":"否")};return document.addEventListener("fullscreenchange",j),document.addEventListener("webkitfullscreenchange",j),document.addEventListener("msfullscreenchange",j),y({Instance:function(){return J.value},vxeTableProRef:J,toolbarRef:N,toggleFullscreen:()=>{const e=document.getElementById(J.value.id);if(console.log(e),!e)return void console.warn("未找到 id 为 VxeTablePro 的元素");document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen():e.requestFullscreen?e.requestFullscreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()},scriptBool:e=>{T.value=e},sizeBool:e=>{z.value=e},borderBool:e=>{q.value=e},changelineHeight:e=>{R.value=e},saveToLocalStorage:(e,t)=>{try{const o="VXE_CUSTOM_STORE",l=localStorage.getItem(o);let n={};if(l)try{n=JSON.parse(l);n._v}catch(e){n={_v:1}}else n={_v:1};n[e]=t,localStorage.setItem(o,JSON.stringify(n)),t.basicConfig&&localStorage.setItem(e,JSON.stringify(t.basicConfig)),location.reload()}catch(e){console.error("保存失败:",e)}},exportData(e){J.value?.exportData?.(e)},openImport(e){J.value?.openImport?.(e)}}),(e,t)=>{const o=s("vxe-toolbar"),l=s("vxe-table");return c(),u("div",F,[t[0]||(t[0]=a(" ceshi ")),i(" 内置工具栏:原样透传所有配置 "),V.value?(c(),m(o,{key:0,ref_key:"toolbarRef",ref:N,custom:!!L.value.custom,print:!!L.value.print,export:!!L.value.export,import:!!L.value.import,zoom:!!L.value.zoom,refresh:!!L.value.refresh&&{query:C.value}},null,8,["custom","print","export","import","zoom","refresh"])):i("v-if",!0),i(" 主表格 "),v(l,f({stripe:T.value,size:z.value,border:q.value,storage:w.value},O.value,d(P.value),{ref_key:"vxeTableProRef",ref:J,"cell-config":{height:R.value},"custom-config":S}),g({_:2},[p(e.$slots,((t,o)=>({name:o,fn:b((t=>[x(e.$slots,o,h(E(t)))]))})))]),1040,["stripe","size","border","storage","cell-config","custom-config"])])}}};export{k as default};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}export{e as getDefaultExportFromCjs};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r={};export{r as __exports};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r={};export{r as __exports};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r={};export{r as __exports};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r={};export{r as __exports};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r={};export{r as __exports};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e={exports:{}};export{e as __module};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{getDefaultExportFromCjs as s}from"../_commonjsHelpers/index.js";import{__require as o}from"../../node_modules/postcss/lib/postcss/index2.js";var e=s(o());export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r={};export{r as __exports};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r={};export{r as __exports};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r={};export{r as __exports};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r={};export{r as __exports};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r={};export{r as __exports};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r={};export{r as __exports};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r={};export{r as __exports};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"./index2.js";e.__scopeId="data-v-75fa2cee",e.__file="src/components/HeaderDropdown.vue";export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{computed as e,resolveComponent as o,createElementBlock as t,openBlock as n,createTextVNode as a,createVNode as l,toDisplayString as r,withCtx as c,withModifiers as s,createCommentVNode as u,createBlock as d}from"vue";import"../../node_modules/postcss/lib/postcss/index.js";const p={class:"header-dropdown"};var m={__name:"HeaderDropdown",props:{onImport:Function,onExport:Function,onAsc:Function,onDesc:Function,onFullscreen:Function,onPrint:Function,onCustom:Function,tableRef:{type:Object,default:null},title:{type:String,default:null}},setup(m){const f=m,i=e((()=>!!f.onExport||!!f.tableRef)),b=(e,o)=>{switch(e){case"import":f.onImport?.();break;case"export":f.onExport?f.onExport():f.tableRef?.exportData?f.tableRef.exportData({filename:"表格数据",sheetName:"Sheet1",type:"csv"}):(console.warn("无法导出:缺少 tableRef 或 exportData 方法"),ElMessage?.warning?.("导出失败:表格实例不可用"));break;case"asc":f.onAsc?.();break;case"desc":f.onDesc?.();break;case"fullscreen":f.onFullscreen?f.onFullscreen():f.tableRef?f.tableRef.toggleFullscreen():console.warn("无法导出:缺少 tableRef 或 exportData 方法");break;case"print":f.onPrint?f.onPrint():f.tableRef?.toolbarRef?f.tableRef.vxeTableProRef.openPrint():console.warn("无法导出:缺少 tableRef 或 exportData 方法");break;case"custom":f.onCustom?f.onCustom():(e=>{f.tableRef?.toolbarRef?f.tableRef.vxeTableProRef.customOpenEvent(e):console.warn("无法导出:缺少 tableRef 或 exportData 方法")})(o)}};return(e,_)=>{const x=o("vxe-icon"),R=o("el-dropdown-item"),v=o("el-dropdown-menu"),w=o("el-dropdown");return n(),t("div",p,[a(r(m.title)+" ",1),l(w,{onCommand:b},{dropdown:c((()=>[l(v,null,{default:c((()=>[u(" 导入 "),f.onImport?(n(),d(R,{key:0,command:"import"},{default:c((()=>_[2]||(_[2]=[a(" 导入 ")]))),_:1,__:[2]})):u("v-if",!0),u(" 导出 "),i.value?(n(),d(R,{key:1,command:"export"},{default:c((()=>_[3]||(_[3]=[a(" 导出 ")]))),_:1,__:[3]})):u("v-if",!0),u(" 正序 "),f.onAsc?(n(),d(R,{key:2,command:"asc"},{default:c((()=>_[4]||(_[4]=[a(" 正序 ")]))),_:1,__:[4]})):u("v-if",!0),u(" 倒序 "),f.onDesc?(n(),d(R,{key:3,command:"desc"},{default:c((()=>_[5]||(_[5]=[a(" 倒序 ")]))),_:1,__:[5]})):u("v-if",!0),l(R,{command:"custom",onClick:_[1]||(_[1]=e=>b("custom",e))},{default:c((()=>_[6]||(_[6]=[a(" 列设置 ")]))),_:1,__:[6]}),u(" 全屏 "),l(R,{command:"fullscreen"},{default:c((()=>_[7]||(_[7]=[a(" 全屏 ")]))),_:1,__:[7]}),u(" 打印 "),l(R,{command:"print"},{default:c((()=>_[8]||(_[8]=[a(" 打印 ")]))),_:1,__:[8]})])),_:1})])),default:c((()=>[l(x,{onMousedown:_[0]||(_[0]=s((()=>{}),["prevent"])),style:{"margin-top":"4px"},name:"caret-down"})])),_:1})])}}};export{m as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var r,t;function e(){if(t)return r;t=1;return r={nanoid:(r=21)=>{let t="",e=0|r;for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(r,t=21)=>(e=t)=>{let n="",a=0|e;for(;a--;)n+=r[Math.random()*r.length|0];return n}}}export{e as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__module as m}from"../../../_virtual/picocolors/index.js";var e;function r(){if(e)return m.exports;e=1;let r=process||{},t=r.argv||[],g=r.env||{},i=!(g.NO_COLOR||t.includes("--no-color"))&&(!!g.FORCE_COLOR||t.includes("--color")||"win32"===r.platform||(r.stdout||{}).isTTY&&"dumb"!==g.TERM||!!g.CI),l=(m,e,r=m)=>t=>{let g=""+t,i=g.indexOf(e,m.length);return~i?m+n(g,e,r,i)+e:m+g+e},n=(m,e,r,t)=>{let g="",i=0;do{g+=m.substring(i,t)+r,i=t+e.length,t=m.indexOf(e,i)}while(~t);return g+m.substring(i)},o=(m=i)=>{let e=m?l:()=>String;return{isColorSupported:m,reset:e("[0m","[0m"),bold:e("[1m","[22m","[22m[1m"),dim:e("[2m","[22m","[22m[2m"),italic:e("[3m","[23m"),underline:e("[4m","[24m"),inverse:e("[7m","[27m"),hidden:e("[8m","[28m"),strikethrough:e("[9m","[29m"),black:e("[30m","[39m"),red:e("[31m","[39m"),green:e("[32m","[39m"),yellow:e("[33m","[39m"),blue:e("[34m","[39m"),magenta:e("[35m","[39m"),cyan:e("[36m","[39m"),white:e("[37m","[39m"),gray:e("[90m","[39m"),bgBlack:e("[40m","[49m"),bgRed:e("[41m","[49m"),bgGreen:e("[42m","[49m"),bgYellow:e("[43m","[49m"),bgBlue:e("[44m","[49m"),bgMagenta:e("[45m","[49m"),bgCyan:e("[46m","[49m"),bgWhite:e("[47m","[49m"),blackBright:e("[90m","[39m"),redBright:e("[91m","[39m"),greenBright:e("[92m","[39m"),yellowBright:e("[93m","[39m"),blueBright:e("[94m","[39m"),magentaBright:e("[95m","[39m"),cyanBright:e("[96m","[39m"),whiteBright:e("[97m","[39m"),bgBlackBright:e("[100m","[49m"),bgRedBright:e("[101m","[49m"),bgGreenBright:e("[102m","[49m"),bgYellowBright:e("[103m","[49m"),bgBlueBright:e("[104m","[49m"),bgMagentaBright:e("[105m","[49m"),bgCyanBright:e("[106m","[49m"),bgWhiteBright:e("[107m","[49m")}};return m.exports=o(),m.exports.createColors=o,m.exports}export{r as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__require as e}from"../container/index.js";var r,t;function s(){if(t)return r;t=1;let s=e();class n extends s{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}return r=n,n.default=n,s.registerAtRule(n),r}export{s as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__require as e}from"../node/index.js";var r,t;function n(){if(t)return r;t=1;let n=e();class s extends n{constructor(e){super(e),this.type="comment"}}return r=s,s.default=s,r}export{n as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__require as e}from"../comment/index.js";import{__require as t}from"../declaration/index.js";import{__require as r}from"../node/index.js";import{__require as s}from"../symbols/index.js";var i,o;function n(){if(o)return i;o=1;let n,l,a,p,f=e(),h=t(),d=r(),{isClean:y,my:u}=s();function x(e){return e.map((e=>(e.nodes&&(e.nodes=x(e.nodes)),delete e.source,e)))}function c(e){if(e[y]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)c(t)}class m extends d{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,r,s=this.getIterator();for(;this.indexes[s]<this.proxyOf.nodes.length&&(t=this.indexes[s],r=e(this.proxyOf.nodes[t],t),!1!==r);)this.indexes[s]+=1;return delete this.indexes[s],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...r)=>e[t](...r.map((e=>"function"==typeof e?(t,r)=>e(t.toProxy(),r):e))):"every"===t||"some"===t?r=>e[t](((e,...t)=>r(e.toProxy(),...t))):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map((e=>e.toProxy())):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,r)=>(e[t]===r||(e[t]=r,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r,s=this.index(e),i=this.normalize(t,this.proxyOf.nodes[s]).reverse();s=this.index(e);for(let e of i)this.proxyOf.nodes.splice(s+1,0,e);for(let e in this.indexes)r=this.indexes[e],s<r&&(this.indexes[e]=r+i.length);return this.markDirty(),this}insertBefore(e,t){let r,s=this.index(e),i=0===s&&"prepend",o=this.normalize(t,this.proxyOf.nodes[s],i).reverse();s=this.index(e);for(let e of o)this.proxyOf.nodes.splice(s,0,e);for(let e in this.indexes)r=this.indexes[e],s<=r&&(this.indexes[e]=r+o.length);return this.markDirty(),this}normalize(e,t){if("string"==typeof e)e=x(l(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new h(e)]}else if(e.selector||e.selectors)e=[new p(e)];else if(e.name)e=[new n(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new f(e)]}return e.map((e=>(e[u]||m.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[y]&&c(e),e.raws||(e.raws={}),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls((s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,r))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,r)=>{let s;try{s=e(t,r)}catch(e){throw t.addToError(e)}return!1!==s&&t.walk&&(s=t.walk(e)),s}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((r,s)=>{if("atrule"===r.type&&e.test(r.name))return t(r,s)})):this.walk(((r,s)=>{if("atrule"===r.type&&r.name===e)return t(r,s)})):(t=e,this.walk(((e,r)=>{if("atrule"===e.type)return t(e,r)})))}walkComments(e){return this.walk(((t,r)=>{if("comment"===t.type)return e(t,r)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((r,s)=>{if("decl"===r.type&&e.test(r.prop))return t(r,s)})):this.walk(((r,s)=>{if("decl"===r.type&&r.prop===e)return t(r,s)})):(t=e,this.walk(((e,r)=>{if("decl"===e.type)return t(e,r)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((r,s)=>{if("rule"===r.type&&e.test(r.selector))return t(r,s)})):this.walk(((r,s)=>{if("rule"===r.type&&r.selector===e)return t(r,s)})):(t=e,this.walk(((e,r)=>{if("rule"===e.type)return t(e,r)})))}}return m.registerParse=e=>{l=e},m.registerRule=e=>{p=e},m.registerAtRule=e=>{n=e},m.registerRoot=e=>{a=e},i=m,m.default=m,m.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,n.prototype):"rule"===e.type?Object.setPrototypeOf(e,p.prototype):"decl"===e.type?Object.setPrototypeOf(e,h.prototype):"comment"===e.type?Object.setPrototypeOf(e,f.prototype):"root"===e.type&&Object.setPrototypeOf(e,a.prototype),e[u]=!0,e.nodes&&e.nodes.forEach((e=>{m.rebuild(e)}))},i}export{n as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__require as e}from"../../../picocolors/picocolors/index.js";import{__require as t}from"../terminal-highlight/index.js";var i,s;function r(){if(s)return i;s=1;let r=e(),n=t();class l extends Error{constructor(e,t,i,s,r,n){super(e),this.name="CssSyntaxError",this.reason=e,r&&(this.file=r),s&&(this.source=s),n&&(this.plugin=n),void 0!==t&&void 0!==i&&("number"==typeof t?(this.line=t,this.column=i):(this.line=t.line,this.column=t.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,l)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=r.isColorSupported);let i=e=>e,s=e=>e,l=e=>e;if(e){let{bold:e,gray:t,red:o}=r.createColors(!0);s=t=>e(o(t)),i=e=>t(e),n&&(l=e=>n(e))}let o=t.split(/\r?\n/),h=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),u=String(a).length;return o.slice(h,a).map(((e,t)=>{let r=h+1+t,n=" "+(" "+r).slice(-u)+" | ";if(r===this.line){if(e.length>160){let t=20,r=Math.max(0,this.column-t),o=Math.max(this.column+t,this.endColumn+t),h=e.slice(r,o),a=i(n.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,t-1)).replace(/[^\t]/g," ");return s(">")+i(n)+l(h)+"\n "+a+s("^")}let t=i(n.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return s(">")+i(n)+l(e)+"\n "+t+s("^")}return" "+i(n)+l(e)})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}return i=l,l.default=l,i}export{r as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__require as e}from"../node/index.js";var r,t;function i(){if(t)return r;t=1;let i=e();class s extends i{get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}}return r=s,s.default=s,r}export{i as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__require as e}from"../container/index.js";var r,t;function s(){if(t)return r;t=1;let s,n,i=e();class o extends i{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new s(new n,this,e).stringify()}}return o.registerLazyResult=e=>{s=e},o.registerProcessor=e=>{n=e},r=o,o.default=o,r}export{s as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__require as r}from"../at-rule/index.js";import{__require as e}from"../comment/index.js";import{__require as t}from"../declaration/index.js";import{__require as o}from"../input/index.js";import{__require as i}from"../previous-map/index.js";import{__require as n}from"../root/index.js";import{__require as u}from"../rule/index.js";var p,s;function m(){if(s)return p;s=1;let m=r(),_=e(),a=t(),f=o(),d=i(),l=n(),y=u();function c(r,e){if(Array.isArray(r))return r.map((r=>c(r)));let{inputs:t,...o}=r;if(t){e=[];for(let r of t){let t={...r,__proto__:f.prototype};t.map&&(t.map={...t.map,__proto__:d.prototype}),e.push(t)}}if(o.nodes&&(o.nodes=r.nodes.map((r=>c(r,e)))),o.source){let{inputId:r,...t}=o.source;o.source=t,null!=r&&(o.source.input=e[r])}if("root"===o.type)return new l(o);if("decl"===o.type)return new a(o);if("rule"===o.type)return new y(o);if("comment"===o.type)return new _(o);if("atrule"===o.type)return new m(o);throw new Error("Unknown node type: "+r.type)}return p=c,c.default=c,p}export{m as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__require as e}from"../../../nanoid/non-secure/index/index.js";import i from"path";import{__require as t}from"../../../source-map-js/source-map/index.js";import o from"url";import{__require as n}from"../css-syntax-error/index.js";import{__require as s}from"../previous-map/index.js";import{__require as r}from"../terminal-highlight/index.js";var l,f;function u(){if(f)return l;f=1;let{nanoid:u}=e(),{isAbsolute:m,resolve:c}=i,{SourceMapConsumer:h,SourceMapGenerator:a}=t(),{fileURLToPath:p,pathToFileURL:d}=o,g=n(),C=s(),S=r(),v=Symbol("lineToIndexCache"),L=Boolean(h&&a),_=Boolean(c&&m);function w(e){if(e[v])return e[v];let i=e.css.split("\n"),t=new Array(i.length),o=0;for(let e=0,n=i.length;e<n;e++)t[e]=o,o+=i[e].length+1;return e[v]=t,t}class b{get from(){return this.file||this.id}constructor(e,i={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,i.document&&(this.document=i.document.toString()),i.from&&(!_||/^\w+:\/\//.test(i.from)||m(i.from)?this.file=i.from:this.file=c(i.from)),_&&L){let e=new C(this.css,i);if(e.text){this.map=e;let i=e.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+u(6)+">"),this.map&&(this.map.file=this.from)}error(e,i,t,o={}){let n,s,r,l,f;if(i&&"object"==typeof i){let e=i,o=t;if("number"==typeof e.offset){l=e.offset;let o=this.fromOffset(l);i=o.line,t=o.col}else i=e.line,t=e.column,l=this.fromLineAndColumn(i,t);if("number"==typeof o.offset){r=o.offset;let e=this.fromOffset(r);s=e.line,n=e.col}else s=o.line,n=o.column,r=this.fromLineAndColumn(o.line,o.column)}else if(t)l=this.fromLineAndColumn(i,t);else{l=i;let e=this.fromOffset(l);i=e.line,t=e.col}let u=this.origin(i,t,s,n);return f=u?new g(e,void 0===u.endLine?u.line:{column:u.column,line:u.line},void 0===u.endLine?u.column:{column:u.endColumn,line:u.endLine},u.source,u.file,o.plugin):new g(e,void 0===s?i:{column:t,line:i},void 0===s?t:{column:n,line:s},this.css,this.file,o.plugin),f.input={column:t,endColumn:n,endLine:s,endOffset:r,line:i,offset:l,source:this.css},this.file&&(d&&(f.input.url=d(this.file).toString()),f.input.file=this.file),f}fromLineAndColumn(e,i){return w(this)[e-1]+i-1}fromOffset(e){let i=w(this),t=0;if(e>=i[i.length-1])t=i.length-1;else{let o,n=i.length-2;for(;t<n;)if(o=t+(n-t>>1),e<i[o])n=o-1;else{if(!(e>=i[o+1])){t=o;break}t=o+1}}return{col:e-i[t]+1,line:t+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:c(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,i,t,o){if(!this.map)return!1;let n,s,r=this.map.consumer(),l=r.originalPositionFor({column:i,line:e});if(!l.source)return!1;"number"==typeof t&&(n=r.originalPositionFor({column:o,line:t})),s=m(l.source)?d(l.source):new URL(l.source,this.map.consumer().sourceRoot||d(this.map.mapFile));let f={column:l.column,endColumn:n&&n.column,endLine:n&&n.line,line:l.line,url:s.toString()};if("file:"===s.protocol){if(!p)throw new Error("file: protocol is not available in this PostCSS build");f.file=p(s)}let u=r.sourceContentFor(l.source);return u&&(f.source=u),f}toJSON(){let e={};for(let i of["hasBOM","css","file","id"])null!=this[i]&&(e[i]=this[i]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}return l=b,b.default=b,S&&S.registerInput&&S.registerInput(b),l}export{u as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__require as t}from"../container/index.js";import{__require as e}from"../document/index.js";import{__require as r}from"../map-generator/index.js";import{__require as s}from"../parse/index.js";import{__require as i}from"../result/index.js";import{__require as o}from"../root/index.js";import{__require as n}from"../stringify/index.js";import{__require as l}from"../symbols/index.js";import{__require as h}from"../warn-once/index.js";var u,c;function p(){if(c)return u;c=1;let p=t(),a=e(),f=r(),d=s(),y=i(),g=o(),m=n(),{isClean:x,my:w}=l(),E=h();const v={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},P={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},S={Once:!0,postcssPlugin:!0,prepare:!0};function _(t){return"object"==typeof t&&"function"==typeof t.then}function O(t){let e=!1,r=v[t.type];return"decl"===t.type?e=t.prop.toLowerCase():"atrule"===t.type&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,0,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,0,r+"Exit"]:[r,r+"Exit"]}function j(t){let e;return e="document"===t.type?["Document",0,"DocumentExit"]:"root"===t.type?["Root",0,"RootExit"]:O(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function R(t){return t[x]=!1,t.nodes&&t.nodes.forEach((t=>R(t))),t}let b={};class C{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(t,e,r){let s;if(this.stringified=!1,this.processed=!1,"object"!=typeof e||null===e||"root"!==e.type&&"document"!==e.type)if(e instanceof C||e instanceof y)s=R(e.root),e.map&&(void 0===r.map&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=e.map);else{let t=d;r.syntax&&(t=r.syntax.parse),r.parser&&(t=r.parser),t.parse&&(t=t.parse);try{s=t(e,r)}catch(t){this.processed=!0,this.error=t}s&&!s[w]&&p.rebuild(s)}else s=R(e);this.result=new y(t,s,r),this.helpers={...b,postcss:b,result:this.result},this.plugins=this.processor.plugins.map((t=>"object"==typeof t&&t.prepare?{...t,...t.prepare(this.result)}:t))}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(t,e){let r=this.result.lastPlugin;try{if(e&&e.addToError(t),this.error=t,"CssSyntaxError"!==t.name||t.plugin){if(r.postcssVersion&&"production"!==process.env.NODE_ENV){let t=r.postcssPlugin,e=r.postcssVersion,s=this.result.processor.version,i=e.split("."),o=s.split(".");(i[0]!==o[0]||parseInt(i[1])>parseInt(o[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+s+", but "+t+" uses "+e+". Perhaps this is the source of the error below.")}}else t.plugin=r.postcssPlugin,t.setMessage()}catch(t){console&&console.error&&console.error(t)}return t}prepareVisitors(){this.listeners={};let t=(t,e,r)=>{this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push([t,r])};for(let e of this.plugins)if("object"==typeof e)for(let r in e){if(!P[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${e.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!S[r])if("object"==typeof e[r])for(let s in e[r])t(e,"*"===s?r:r+"-"+s.toLowerCase(),e[r][s]);else"function"==typeof e[r]&&t(e,r,e[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let e=this.plugins[t],r=this.runOnRoot(e);if(_(r))try{await r}catch(t){throw this.handleError(t)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[x];){t[x]=!0;let e=[j(t)];for(;e.length>0;){let t=this.visitTick(e);if(_(t))try{await t}catch(t){let r=e[e.length-1].node;throw this.handleError(t,r)}}}if(this.listeners.OnceExit)for(let[e,r]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if("document"===t.type){let e=t.nodes.map((t=>r(t,this.helpers)));await Promise.all(e)}else await r(t,this.helpers)}catch(t){throw this.handleError(t)}}}return this.processed=!0,this.stringify()}runOnRoot(t){this.result.lastPlugin=t;try{if("object"==typeof t&&t.Once){if("document"===this.result.root.type){let e=this.result.root.nodes.map((e=>t.Once(e,this.helpers)));return _(e[0])?Promise.all(e):e}return t.Once(this.result.root,this.helpers)}if("function"==typeof t)return t(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let t=this.result.opts,e=m;t.syntax&&(e=t.syntax.stringify),t.stringifier&&(e=t.stringifier),e.stringify&&(e=e.stringify);let r=new f(e,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let t of this.plugins){if(_(this.runOnRoot(t)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[x];)t[x]=!0,this.walkSync(t);if(this.listeners.OnceExit)if("document"===t.type)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}return this.result}then(t,e){return"production"!==process.env.NODE_ENV&&("from"in this.opts||E("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,e)}toString(){return this.css}visitSync(t,e){for(let[r,s]of t){let t;this.result.lastPlugin=r;try{t=s(e,this.helpers)}catch(t){throw this.handleError(t,e.proxyOf)}if("root"!==e.type&&"document"!==e.type&&!e.parent)return!0;if(_(t))throw this.getAsyncError()}}visitTick(t){let e=t[t.length-1],{node:r,visitors:s}=e;if("root"!==r.type&&"document"!==r.type&&!r.parent)return void t.pop();if(s.length>0&&e.visitorIndex<s.length){let[t,i]=s[e.visitorIndex];e.visitorIndex+=1,e.visitorIndex===s.length&&(e.visitors=[],e.visitorIndex=0),this.result.lastPlugin=t;try{return i(r.toProxy(),this.helpers)}catch(t){throw this.handleError(t,r)}}if(0!==e.iterator){let s,i=e.iterator;for(;s=r.nodes[r.indexes[i]];)if(r.indexes[i]+=1,!s[x])return s[x]=!0,void t.push(j(s));e.iterator=0,delete r.indexes[i]}let i=e.events;for(;e.eventIndex<i.length;){let t=i[e.eventIndex];if(e.eventIndex+=1,0===t)return void(r.nodes&&r.nodes.length&&(r[x]=!0,e.iterator=r.getIterator()));if(this.listeners[t])return void(e.visitors=this.listeners[t])}t.pop()}walkSync(t){t[x]=!0;let e=O(t);for(let r of e)if(0===r)t.nodes&&t.each((t=>{t[x]||this.walkSync(t)}));else{let e=this.listeners[r];if(e&&this.visitSync(e,t.toProxy()))return}}warnings(){return this.sync().warnings()}}return C.registerPostcss=t=>{b=t},u=C,C.default=C,g.registerLazyResult(C),a.registerLazyResult(C),u}export{p as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t,r;function e(){if(r)return t;r=1;let e={comma:t=>e.split(t,[","],!0),space:t=>e.split(t,[" ","\n","\t"]),split(t,r,e){let i=[],u="",l=!1,s=0,n=!1,p="",a=!1;for(let e of t)a?a=!1:"\\"===e?a=!0:n?e===p&&(n=!1):'"'===e||"'"===e?(n=!0,p=e):"("===e?s+=1:")"===e?s>0&&(s-=1):0===s&&r.includes(e)&&(l=!0),l?(""!==u&&i.push(u.trim()),u="",l=!1):u+=e;return(e||""!==u)&&i.push(u.trim()),i}};return t=e,e.default=e,t}export{e as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import t from"path";import{__require as s}from"../../../source-map-js/source-map/index.js";import i from"url";import{__require as e}from"../input/index.js";var o,n;function r(){if(n)return o;n=1;let{dirname:r,relative:a,resolve:p,sep:h}=t,{SourceMapConsumer:l,SourceMapGenerator:u}=s(),{pathToFileURL:m}=i,c=e(),g=Boolean(l&&u),d=Boolean(r&&p&&a&&h);return o=class{constructor(t,s,i,e){this.stringify=t,this.mapOpts=i.map||{},this.root=s,this.opts=i,this.css=e,this.originalCSS=e,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let t;t=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let s="\n";this.css.includes("\r\n")&&(s="\r\n"),this.css+=s+"/*# sourceMappingURL="+t+" */"}applyPrevMaps(){for(let t of this.previous()){let s,i=this.toUrl(this.path(t.file)),e=t.root||r(t.file);!1===this.mapOpts.sourcesContent?(s=new l(t.text),s.sourcesContent&&(s.sourcesContent=null)):s=t.consumer(),this.map.applySourceMap(s,i,this.toUrl(this.path(e)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let t;for(let s=this.root.nodes.length-1;s>=0;s--)t=this.root.nodes[s],"comment"===t.type&&t.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(s)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),d&&g&&this.isMap())return this.generateMap();{let t="";return this.stringify(this.root,(s=>{t+=s})),[t]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let t=this.previous()[0].consumer();t.file=this.outputFile(),this.map=u.fromSourceMap(t,{ignoreInvalidMapping:!0})}else this.map=new u({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new u({file:this.outputFile(),ignoreInvalidMapping:!0});let t,s,i=1,e=1,o="<no source>",n={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((r,a,p)=>{if(this.css+=r,a&&"end"!==p&&(n.generated.line=i,n.generated.column=e-1,a.source&&a.source.start?(n.source=this.sourcePath(a),n.original.line=a.source.start.line,n.original.column=a.source.start.column-1,this.map.addMapping(n)):(n.source=o,n.original.line=1,n.original.column=0,this.map.addMapping(n))),s=r.match(/\n/g),s?(i+=s.length,t=r.lastIndexOf("\n"),e=r.length-t):e+=r.length,a&&"start"!==p){let t=a.parent||{raws:{}};("decl"===a.type||"atrule"===a.type&&!a.nodes)&&a===t.last&&!t.raws.semicolon||(a.source&&a.source.end?(n.source=this.sourcePath(a),n.original.line=a.source.end.line,n.original.column=a.source.end.column-1,n.generated.line=i,n.generated.column=e-2,this.map.addMapping(n)):(n.source=o,n.original.line=1,n.original.column=0,n.generated.line=i,n.generated.column=e-1,this.map.addMapping(n)))}}))}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some((t=>t.annotation)))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let t=this.mapOpts.annotation;return(void 0===t||!0===t)&&(!this.previous().length||this.previous().some((t=>t.inline)))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some((t=>t.withContent()))}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(t){if(this.mapOpts.absolute)return t;if(60===t.charCodeAt(0))return t;if(/^\w+:\/\//.test(t))return t;let s=this.memoizedPaths.get(t);if(s)return s;let i=this.opts.to?r(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(i=r(p(i,this.mapOpts.annotation)));let e=a(i,t);return this.memoizedPaths.set(t,e),e}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk((t=>{if(t.source&&t.source.input.map){let s=t.source.input.map;this.previousMaps.includes(s)||this.previousMaps.push(s)}}));else{let t=new c(this.originalCSS,this.opts);t.map&&this.previousMaps.push(t.map)}return this.previousMaps}setSourcesContent(){let t={};if(this.root)this.root.walk((s=>{if(s.source){let i=s.source.input.from;if(i&&!t[i]){t[i]=!0;let e=this.usesFileUrls?this.toFileUrl(i):this.toUrl(this.path(i));this.map.setSourceContent(e,s.source.input.css)}}}));else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(t){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(t.source.input.from):this.toUrl(this.path(t.source.input.from))}toBase64(t){return Buffer?Buffer.from(t).toString("base64"):window.btoa(unescape(encodeURIComponent(t)))}toFileUrl(t){let s=this.memoizedFileURLs.get(t);if(s)return s;if(m){let s=m(t).toString();return this.memoizedFileURLs.set(t,s),s}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(t){let s=this.memoizedURLs.get(t);if(s)return s;"\\"===h&&(t=t.replace(/\\/g,"/"));let i=encodeURI(t).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(t,i),i}}}export{r as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__require as t}from"../map-generator/index.js";import{__require as r}from"../parse/index.js";import{__require as s}from"../result/index.js";import{__require as e}from"../stringify/index.js";import{__require as i}from"../warn-once/index.js";var o,n;function h(){if(n)return o;n=1;let h=t(),u=r();const c=s();let a=e(),l=i();class p{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let t,r=u;try{t=r(this._css,this._opts)}catch(t){this.error=t}if(this.error)throw this.error;return this._root=t,t}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(t,r,s){let e;r=r.toString(),this.stringified=!1,this._processor=t,this._css=r,this._opts=s,this._map=void 0;let i=a;this.result=new c(this._processor,e,this._opts),this.result.css=r;let o=this;Object.defineProperty(this.result,"root",{get:()=>o.root});let n=new h(i,e,this._opts,r);if(n.isMap()){let[t,r]=n.generate();t&&(this.result.css=t),r&&(this.result.map=r)}else n.clearAnnotation(),this.result.css=n.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(t){return this.async().catch(t)}finally(t){return this.async().then(t,t)}sync(){if(this.error)throw this.error;return this.result}then(t,r){return"production"!==process.env.NODE_ENV&&("from"in this._opts||l("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(t,r)}toString(){return this._css}warnings(){return[]}}return o=p,p.default=p,o}export{h as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__require as t}from"../css-syntax-error/index.js";import{__require as e}from"../stringifier/index.js";import{__require as r}from"../stringify/index.js";import{__require as n}from"../symbols/index.js";var s,i;function o(){if(i)return s;i=1;let o=t(),u=e(),l=r(),{isClean:h,my:c}=n();function a(t,e){let r=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;if("proxyCache"===n)continue;let s=t[n],i=typeof s;"parent"===n&&"object"===i?e&&(r[n]=e):"source"===n?r[n]=s:Array.isArray(s)?r[n]=s.map((t=>a(t,r))):("object"===i&&null!==s&&(s=a(s)),r[n]=s)}return r}function f(t,e){if(e&&void 0!==e.offset)return e.offset;let r=1,n=1,s=0;for(let i=0;i<t.length;i++){if(n===e.line&&r===e.column){s=i;break}"\n"===t[i]?(r=1,n+=1):r+=1}return s}class p{get proxyOf(){return this}constructor(t={}){this.raws={},this[h]=!1,this[c]=!0;for(let e in t)if("nodes"===e){this.nodes=[];for(let r of t[e])"function"==typeof r.clone?this.append(r.clone()):this.append(r)}else this[e]=t[e]}addToError(t){if(t.postcssNode=this,t.stack&&this.source&&/\n\s{4}at /.test(t.stack)){let e=this.source;t.stack=t.stack.replace(/\n\s{4}at /,`$&${e.input.from}:${e.start.line}:${e.start.column}$&`)}return t}after(t){return this.parent.insertAfter(this,t),this}assign(t={}){for(let e in t)this[e]=t[e];return this}before(t){return this.parent.insertBefore(this,t),this}cleanRaws(t){delete this.raws.before,delete this.raws.after,t||delete this.raws.between}clone(t={}){let e=a(this);for(let r in t)e[r]=t[r];return e}cloneAfter(t={}){let e=this.clone(t);return this.parent.insertAfter(this,e),e}cloneBefore(t={}){let e=this.clone(t);return this.parent.insertBefore(this,e),e}error(t,e={}){if(this.source){let{end:r,start:n}=this.rangeBy(e);return this.source.input.error(t,{column:n.column,line:n.line},{column:r.column,line:r.line},e)}return new o(t)}getProxyProcessor(){return{get:(t,e)=>"proxyOf"===e?t:"root"===e?()=>t.root().toProxy():t[e],set:(t,e,r)=>(t[e]===r||(t[e]=r,"prop"!==e&&"value"!==e&&"name"!==e&&"params"!==e&&"important"!==e&&"text"!==e||t.markDirty()),!0)}}markClean(){this[h]=!0}markDirty(){if(this[h]){this[h]=!1;let t=this;for(;t=t.parent;)t[h]=!1}}next(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t+1]}positionBy(t={}){let e=this.source.start;if(t.index)e=this.positionInside(t.index);else if(t.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n=r.slice(f(r,this.source.start),f(r,this.source.end)).indexOf(t.word);-1!==n&&(e=this.positionInside(n))}return e}positionInside(t){let e=this.source.start.column,r=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,s=f(n,this.source.start),i=s+t;for(let t=s;t<i;t++)"\n"===n[t]?(e=1,r+=1):e+=1;return{column:e,line:r,offset:i}}prev(){if(!this.parent)return;let t=this.parent.index(this);return this.parent.nodes[t-1]}rangeBy(t={}){let e="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:f(e,this.source.start)},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:"number"==typeof this.source.end.offset?this.source.end.offset:f(e,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(t.word){let s=e.slice(f(e,this.source.start),f(e,this.source.end)).indexOf(t.word);-1!==s&&(r=this.positionInside(s),n=this.positionInside(s+t.word.length))}else t.start?r={column:t.start.column,line:t.start.line,offset:f(e,t.start)}:t.index&&(r=this.positionInside(t.index)),t.end?n={column:t.end.column,line:t.end.line,offset:f(e,t.end)}:"number"==typeof t.endIndex?n=this.positionInside(t.endIndex):t.index&&(n=this.positionInside(t.index+1));return(n.line<r.line||n.line===r.line&&n.column<=r.column)&&(n={column:r.column+1,line:r.line,offset:r.offset+1}),{end:n,start:r}}raw(t,e){return(new u).raw(this,t,e)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...t){if(this.parent){let e=this,r=!1;for(let n of t)n===this?r=!0:r?(this.parent.insertAfter(e,n),e=n):this.parent.insertBefore(e,n);r||this.remove()}return this}root(){let t=this;for(;t.parent&&"document"!==t.parent.type;)t=t.parent;return t}toJSON(t,e){let r={},n=null==e;e=e||new Map;let s=0;for(let t in this){if(!Object.prototype.hasOwnProperty.call(this,t))continue;if("parent"===t||"proxyCache"===t)continue;let n=this[t];if(Array.isArray(n))r[t]=n.map((t=>"object"==typeof t&&t.toJSON?t.toJSON(null,e):t));else if("object"==typeof n&&n.toJSON)r[t]=n.toJSON(null,e);else if("source"===t){if(null==n)continue;let i=e.get(n.input);null==i&&(i=s,e.set(n.input,s),s++),r[t]={end:n.end,inputId:i,start:n.start}}else r[t]=n}return n&&(r.inputs=[...e.keys()].map((t=>t.toJSON()))),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(t=l){t.stringify&&(t=t.stringify);let e="";return t(this,(t=>{e+=t})),e}warn(t,e,r={}){let n={node:this};for(let t in r)n[t]=r[t];return t.warn(e,n)}}return s=p,p.default=p,s}export{o as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__require as r}from"../container/index.js";import{__require as s}from"../input/index.js";import{__require as e}from"../parser/index.js";var t,a;function i(){if(a)return t;a=1;let i=r(),o=s(),n=e();function p(r,s){let e=new o(r,s),t=new n(e);try{t.parse()}catch(r){throw"production"!==process.env.NODE_ENV&&"CssSyntaxError"===r.name&&s&&s.from&&(/\.scss$/i.test(s.from)?r.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(s.from)?r.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(s.from)&&(r.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")),r}return t.root}return t=p,p.default=p,i.registerParse(p),t}export{i as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__require as e}from"../at-rule/index.js";import{__require as t}from"../comment/index.js";import{__require as s}from"../declaration/index.js";import{__require as r}from"../root/index.js";import{__require as o}from"../rule/index.js";import{__require as i}from"../tokenize/index.js";var n,h;function c(){if(h)return n;h=1;let c=e(),l=t(),a=s(),u=r(),f=o(),p=i();const m={empty:!0,space:!0};return n=class{constructor(e){this.input=e,this.root=new u,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,s,r,o=new c;o.name=e[1].slice(1),""===o.name&&this.unnamedAtrule(o,e),this.init(o,e[2]);let i=!1,n=!1,h=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){o.source.end=this.getPosition(e[2]),o.source.end.offset++,this.semicolon=!0;break}if("{"===t){n=!0;break}if("}"===t){if(h.length>0){for(r=h.length-1,s=h[r];s&&"space"===s[0];)s=h[--r];s&&(o.source.end=this.getPosition(s[3]||s[2]),o.source.end.offset++)}this.end(e);break}h.push(e)}else h.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}o.raws.between=this.spacesAndCommentsFromEnd(h),h.length?(o.raws.afterName=this.spacesAndCommentsFromStart(h),this.raw(o,"params",h),i&&(e=h[h.length-1],o.source.end=this.getPosition(e[3]||e[2]),o.source.end.offset++,this.spaces=o.raws.between,o.raws.between="")):(o.raws.afterName="",o.params=""),n&&(o.nodes=[],this.current=o)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let s,r=0;for(let o=t-1;o>=0&&(s=e[o],"space"===s[0]||(r+=1,2!==r));o--);throw this.input.error("Missed semicolon","word"===s[0]?s[3]+1:s[2])}colon(e){let t,s,r,o=0;for(let[i,n]of e.entries()){if(s=n,r=s[0],"("===r&&(o+=1),")"===r&&(o-=1),0===o&&":"===r){if(t){if("word"===t[0]&&"progid"===t[1])continue;return i}this.doubleColon(s)}t=s}return!1}comment(e){let t=new l;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let s=e[1].slice(2,-2);if(/^\s*$/.test(s))t.text="",t.raws.left=s,t.raws.right="";else{let e=s.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=p(this.input)}decl(e,t){let s=new a;this.init(s,e[0][2]);let r,o=e[e.length-1];for(";"===o[0]&&(this.semicolon=!0,e.pop()),s.source.end=this.getPosition(o[3]||o[2]||function(e){for(let t=e.length-1;t>=0;t--){let s=e[t],r=s[3]||s[2];if(r)return r}}(e)),s.source.end.offset++;"word"!==e[0][0];)1===e.length&&this.unknownWord(e),s.raws.before+=e.shift()[1];for(s.source.start=this.getPosition(e[0][2]),s.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;s.prop+=e.shift()[1]}for(s.raws.between="";e.length;){if(r=e.shift(),":"===r[0]){s.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),s.raws.between+=r[1]}"_"!==s.prop[0]&&"*"!==s.prop[0]||(s.raws.before+=s.prop[0],s.prop=s.prop.slice(1));let i,n=[];for(;e.length&&(i=e[0][0],"space"===i||"comment"===i);)n.push(e.shift());this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(r=e[t],"!important"===r[1].toLowerCase()){s.important=!0;let r=this.stringFrom(e,t);r=this.spacesFromEnd(e)+r," !important"!==r&&(s.raws.important=r);break}if("important"===r[1].toLowerCase()){let r=e.slice(0),o="";for(let e=t;e>0;e--){let t=r[e][0];if(o.trim().startsWith("!")&&"space"!==t)break;o=r.pop()[1]+o}o.trim().startsWith("!")&&(s.important=!0,s.raws.important=o,e=r)}if("space"!==r[0]&&"comment"!==r[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(s.raws.between+=n.map((e=>e[1])).join(""),n=[]),this.raw(s,"value",n.concat(e),t),s.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new f;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,s=null,r=!1,o=null,i=[],n=e[1].startsWith("--"),h=[],c=e;for(;c;){if(s=c[0],h.push(c),"("===s||"["===s)o||(o=c),i.push("("===s?")":"]");else if(n&&r&&"{"===s)o||(o=c),i.push("}");else if(0===i.length){if(";"===s){if(r)return void this.decl(h,n);break}if("{"===s)return void this.rule(h);if("}"===s){this.tokenizer.back(h.pop()),t=!0;break}":"===s&&(r=!0)}else s===i[i.length-1]&&(i.pop(),0===i.length&&(o=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(o),t&&r){if(!n)for(;h.length&&(c=h[h.length-1][0],"space"===c||"comment"===c);)this.tokenizer.back(h.pop());this.decl(h,n)}else this.unknownWord(h)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,s,r){let o,i,n,h,c=s.length,l="",a=!0;for(let e=0;e<c;e+=1)o=s[e],i=o[0],"space"!==i||e!==c-1||r?"comment"===i?(h=s[e-1]?s[e-1][0]:"empty",n=s[e+1]?s[e+1][0]:"empty",m[h]||m[n]||","===l.slice(-1)?a=!1:l+=o[1]):l+=o[1]:a=!1;if(!a){let r=s.reduce(((e,t)=>e+t[1]),"");e.raws[t]={raw:r,value:l}}e[t]=l}rule(e){e.pop();let t=new f;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)s=e.pop()[1]+s;return s}spacesAndCommentsFromStart(e){let t,s="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)s+=e.shift()[1];return s}spacesFromEnd(e){let t,s="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)s=e.pop()[1]+s;return s}stringFrom(e,t){let s="";for(let r=t;r<e.length;r++)s+=e[r][1];return e.splice(t,e.length-t),s}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}}export{c as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import t from"../../../../_virtual/postcss/index.js";t.stringify,t.fromJSON,t.plugin,t.parse,t.list,t.document,t.comment,t.atRule,t.rule,t.decl,t.root,t.CssSyntaxError,t.Declaration,t.Container,t.Processor,t.Document,t.Comment,t.Warning,t.AtRule,t.Result,t.Input,t.Rule,t.Root,t.Node;export{t as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__require as r}from"../at-rule/index.js";import{__require as e}from"../comment/index.js";import{__require as s}from"../container/index.js";import{__require as o}from"../css-syntax-error/index.js";import{__require as i}from"../declaration/index.js";import{__require as n}from"../document/index.js";import{__require as t}from"../fromJSON/index.js";import{__require as m}from"../input/index.js";import{__require as u}from"../lazy-result/index.js";import{__require as a}from"../list/index.js";import{__require as p}from"../node/index.js";import{__require as c}from"../parse/index.js";import{__require as _}from"../processor/index.js";import{__require as l}from"../result/index.js";import{__require as f}from"../root/index.js";import{__require as d}from"../rule/index.js";import{__require as x}from"../stringify/index.js";import{__require as j}from"../warning/index.js";var q,w;function g(){if(w)return q;w=1;let g=r(),y=e(),h=s(),v=o(),A=i(),N=n(),R=t(),P=m(),C=u(),O=a(),S=p(),D=c(),G=_(),J=l(),L=f(),W=d(),b=x(),z=j();function E(...r){return 1===r.length&&Array.isArray(r[0])&&(r=r[0]),new G(r)}return E.plugin=function(r,e){let s,o=!1;function i(...s){console&&console.warn&&!o&&(o=!0,console.warn(r+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(r+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let i=e(...s);return i.postcssPlugin=r,i.postcssVersion=(new G).version,i}return Object.defineProperty(i,"postcss",{get:()=>(s||(s=i()),s)}),i.process=function(r,e,s){return E([i(s)]).process(r,e)},i},E.stringify=b,E.parse=D,E.fromJSON=R,E.list=O,E.comment=r=>new y(r),E.atRule=r=>new g(r),E.decl=r=>new A(r),E.rule=r=>new W(r),E.root=r=>new L(r),E.document=r=>new N(r),E.CssSyntaxError=v,E.Declaration=A,E.Container=h,E.Processor=G,E.Document=N,E.Comment=y,E.Warning=z,E.AtRule=g,E.Result=J,E.Input=P,E.Rule=W,E.Root=L,E.Node=S,C.registerPostcss(E),q=E,E.default=E,q}export{g as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import t from"fs";import r from"path";import{__require as e}from"../../../source-map-js/source-map/index.js";var n,i;function o(){if(i)return n;i=1;let{existsSync:o,readFileSync:a}=t,{dirname:s,join:p}=r,{SourceMapConsumer:u,SourceMapGenerator:h}=e();class c{constructor(t,r){if(!1===r.map)return;this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");let e=r.map?r.map.prev:void 0,n=this.loadMap(r.from,e);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=s(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new u(this.text)),this.consumerCache}decodeInline(t){let r=t.match(/^data:application\/json;charset=utf-?8,/)||t.match(/^data:application\/json,/);if(r)return decodeURIComponent(t.substr(r[0].length));let e=t.match(/^data:application\/json;charset=utf-?8;base64,/)||t.match(/^data:application\/json;base64,/);if(e)return n=t.substr(e[0].length),Buffer?Buffer.from(n,"base64").toString():window.atob(n);var n;let i=t.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)}getAnnotationURL(t){return t.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(t){return"object"==typeof t&&("string"==typeof t.mappings||"string"==typeof t._mappings||Array.isArray(t.sections))}loadAnnotation(t){let r=t.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let e=t.lastIndexOf(r.pop()),n=t.indexOf("*/",e);e>-1&&n>-1&&(this.annotation=this.getAnnotationURL(t.substring(e,n)))}loadFile(t){if(this.root=s(t),o(t))return this.mapFile=t,a(t,"utf-8").toString().trim()}loadMap(t,r){if(!1===r)return!1;if(r){if("string"==typeof r)return r;if("function"!=typeof r){if(r instanceof u)return h.fromSourceMap(r).toString();if(r instanceof h)return r.toString();if(this.isMap(r))return JSON.stringify(r);throw new Error("Unsupported previous source map format: "+r.toString())}{let e=r(t);if(e){let t=this.loadFile(e);if(!t)throw new Error("Unable to load previous source map: "+e.toString());return t}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return t&&(r=p(s(t),r)),this.loadFile(r)}}}startWith(t,r){return!!t&&t.substr(0,r.length)===r}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return n=c,c.default=c,n}export{o as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__require as s}from"../document/index.js";import{__require as r}from"../lazy-result/index.js";import{__require as e}from"../no-work-result/index.js";import{__require as t}from"../root/index.js";var o,i;function n(){if(i)return o;i=1;let n=s(),u=r(),p=e(),a=t();class l{constructor(s=[]){this.version="8.5.5",this.plugins=this.normalize(s)}normalize(s){let r=[];for(let e of s)if(!0===e.postcss?e=e():e.postcss&&(e=e.postcss),"object"==typeof e&&Array.isArray(e.plugins))r=r.concat(e.plugins);else if("object"==typeof e&&e.postcssPlugin)r.push(e);else if("function"==typeof e)r.push(e);else{if("object"!=typeof e||!e.parse&&!e.stringify)throw new Error(e+" is not a PostCSS plugin");if("production"!==process.env.NODE_ENV)throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}return r}process(s,r={}){return this.plugins.length||r.parser||r.stringifier||r.syntax?new u(this,s,r):new p(this,s,r)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return o=l,l.default=l,a.registerProcessor(l),n.registerProcessor(l),o}export{n as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__require as s}from"../warning/index.js";var t,i;function r(){if(i)return t;i=1;let r=s();class n{get content(){return this.css}constructor(s,t,i){this.processor=s,this.messages=[],this.root=t,this.opts=i,this.css="",this.map=void 0}toString(){return this.css}warn(s,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let i=new r(s,t);return this.messages.push(i),i}warnings(){return this.messages.filter((s=>"warning"===s.type))}}return t=n,n.default=n,t}export{r as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__require as e}from"../container/index.js";var r,s;function t(){if(s)return r;s=1;let t,o,i=e();class n extends i{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,r,s){let t=super.normalize(e);if(r)if("prepend"===s)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let e of t)e.raws.before=r.raws.before;return t}removeChild(e,r){let s=this.index(e);return!r&&0===s&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),super.removeChild(e)}toResult(e={}){return new t(new o,this,e).stringify()}}return n.registerLazyResult=e=>{t=e},n.registerProcessor=e=>{o=e},r=n,n.default=n,i.registerRoot(n),r}export{t as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__require as e}from"../container/index.js";import{__require as t}from"../list/index.js";var r,s;function i(){if(s)return r;s=1;let i=e(),o=t();class n extends i{get selectors(){return o.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}}return r=n,n.default=n,i.registerRule(n),r}export{i as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e,r;function t(){if(r)return e;r=1;const t={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class n{constructor(e){this.builder=e}atrule(e,r){let t="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?t+=e.raws.afterName:n&&(t+=" "),e.nodes)this.block(e,t+n);else{let o=(e.raws.between||"")+(r?";":"");this.builder(t+n+o,e)}}beforeAfter(e,r){let t;t="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===r?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let n=e.parent,o=0;for(;n&&"root"!==n.type;)o+=1,n=n.parent;if(t.includes("\n")){let r=this.raw(e,null,"indent");if(r.length)for(let e=0;e<o;e++)t+=r}return t}block(e,r){let t,n=this.raw(e,"between","beforeOpen");this.builder(r+n+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),t=this.raw(e,"after")):t=this.raw(e,"after","emptyBody"),t&&this.builder(t),this.builder("}",e,"end")}body(e){let r=e.nodes.length-1;for(;r>0&&"comment"===e.nodes[r].type;)r-=1;let t=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let o=e.nodes[n],a=this.raw(o,"before");a&&this.builder(a),this.stringify(o,r!==n||t)}}comment(e){let r=this.raw(e,"left","commentLeft"),t=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+t+"*/",e)}decl(e,r){let t=this.raw(e,"between","colon"),n=e.prop+t+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),r&&(n+=";"),this.builder(n,e)}document(e){this.body(e)}raw(e,r,n){let o;if(n||(n=r),r&&(o=e.raws[r],void 0!==o))return o;let a=e.parent;if("before"===n){if(!a||"root"===a.type&&a.first===e)return"";if(a&&"document"===a.type)return""}if(!a)return t[n];let l=e.root();if(l.rawCache||(l.rawCache={}),void 0!==l.rawCache[n])return l.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);{let t="raw"+((i=n)[0].toUpperCase()+i.slice(1));this[t]?o=this[t](l,e):l.walk((e=>{if(o=e.raws[r],void 0!==o)return!1}))}var i;return void 0===o&&(o=t[n]),l.rawCache[n]=o,o}rawBeforeClose(e){let r;return e.walk((e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return r=e.raws.after,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),r&&(r=r.replace(/\S/g,"")),r}rawBeforeComment(e,r){let t;return e.walkComments((e=>{if(void 0!==e.raws.before)return t=e.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),void 0===t?t=this.raw(r,null,"beforeDecl"):t&&(t=t.replace(/\S/g,"")),t}rawBeforeDecl(e,r){let t;return e.walkDecls((e=>{if(void 0!==e.raws.before)return t=e.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1})),void 0===t?t=this.raw(r,null,"beforeRule"):t&&(t=t.replace(/\S/g,"")),t}rawBeforeOpen(e){let r;return e.walk((e=>{if("decl"!==e.type&&(r=e.raws.between,void 0!==r))return!1})),r}rawBeforeRule(e){let r;return e.walk((t=>{if(t.nodes&&(t.parent!==e||e.first!==t)&&void 0!==t.raws.before)return r=t.raws.before,r.includes("\n")&&(r=r.replace(/[^\n]+$/,"")),!1})),r&&(r=r.replace(/\S/g,"")),r}rawColon(e){let r;return e.walkDecls((e=>{if(void 0!==e.raws.between)return r=e.raws.between.replace(/[^\s:]/g,""),!1})),r}rawEmptyBody(e){let r;return e.walk((e=>{if(e.nodes&&0===e.nodes.length&&(r=e.raws.after,void 0!==r))return!1})),r}rawIndent(e){if(e.raws.indent)return e.raws.indent;let r;return e.walk((t=>{let n=t.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==t.raws.before){let e=t.raws.before.split("\n");return r=e[e.length-1],r=r.replace(/\S/g,""),!1}})),r}rawSemicolon(e){let r;return e.walk((e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(r=e.raws.semicolon,void 0!==r))return!1})),r}rawValue(e,r){let t=e[r],n=e.raws[r];return n&&n.value===t?n.raw:t}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)}}return e=n,n.default=n,e}export{t as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__require as r}from"../stringifier/index.js";var e,i;function n(){if(i)return e;i=1;let n=r();function t(r,e){new n(e).stringify(r)}return e=t,t.default=t,e}export{n as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__exports as r}from"../../../../_virtual/symbols/index.js";var e;function o(){return e||(e=1,r.isClean=Symbol("isClean"),r.my=Symbol("my")),r}export{o as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__require as e}from"../../../picocolors/picocolors/index.js";import{__require as r}from"../tokenize/index.js";var n,o;function t(){if(o)return n;o=1;let t,l=e(),i=r();const a={";":l.yellow,":":l.yellow,"(":l.cyan,")":l.cyan,"[":l.yellow,"]":l.yellow,"{":l.yellow,"}":l.yellow,"at-word":l.cyan,brackets:l.cyan,call:l.cyan,class:l.yellow,comment:l.gray,hash:l.magenta,string:l.green};function c([e,r],n){if("word"===e){if("."===r[0])return"class";if("#"===r[0])return"hash"}if(!n.endOfFile()){let e=n.nextToken();if(n.back(e),"brackets"===e[0]||"("===e[0])return"call"}return e}function s(e){let r=i(new t(e),{ignoreErrors:!0}),n="";for(;!r.endOfFile();){let e=r.nextToken(),o=a[c(e,r)];n+=o?e[1].split(/\r?\n/).map((e=>o(e))).join("\n"):e[1]}return n}return s.registerInput=function(e){t=e},n=s}export{t as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e,t;function r(){if(t)return e;t=1;const r="'".charCodeAt(0),c='"'.charCodeAt(0),a="\\".charCodeAt(0),o="/".charCodeAt(0),n="\n".charCodeAt(0),s=" ".charCodeAt(0),d="\f".charCodeAt(0),h="\t".charCodeAt(0),i="\r".charCodeAt(0),l="[".charCodeAt(0),f="]".charCodeAt(0),A="(".charCodeAt(0),C=")".charCodeAt(0),u="{".charCodeAt(0),g="}".charCodeAt(0),k=";".charCodeAt(0),b="*".charCodeAt(0),x=":".charCodeAt(0),p="@".charCodeAt(0),w=/[\t\n\f\r "#'()/;[\\\]{}]/g,I=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,O=/.[\r\n"'(/\\]/,m=/[\da-f]/i;return e=function(e,t={}){let v,U,_,q,E,F,S,T,j,y,z=e.css.valueOf(),B=t.ignoreErrors,D=z.length,G=0,H=[],J=[];function K(t){throw e.error("Unclosed "+t,G)}return{back:function(e){J.push(e)},endOfFile:function(){return 0===J.length&&G>=D},nextToken:function(e){if(J.length)return J.pop();if(G>=D)return;let t=!!e&&e.ignoreUnclosed;switch(v=z.charCodeAt(G),v){case n:case s:case h:case i:case d:q=G;do{q+=1,v=z.charCodeAt(q)}while(v===s||v===n||v===h||v===i||v===d);F=["space",z.slice(G,q)],G=q-1;break;case l:case f:case u:case g:case x:case k:case C:{let e=String.fromCharCode(v);F=[e,e,G];break}case A:if(y=H.length?H.pop()[1]:"",j=z.charCodeAt(G+1),"url"===y&&j!==r&&j!==c&&j!==s&&j!==n&&j!==h&&j!==d&&j!==i){q=G;do{if(S=!1,q=z.indexOf(")",q+1),-1===q){if(B||t){q=G;break}K("bracket")}for(T=q;z.charCodeAt(T-1)===a;)T-=1,S=!S}while(S);F=["brackets",z.slice(G,q+1),G,q],G=q}else q=z.indexOf(")",G+1),U=z.slice(G,q+1),-1===q||O.test(U)?F=["(","(",G]:(F=["brackets",U,G,q],G=q);break;case r:case c:E=v===r?"'":'"',q=G;do{if(S=!1,q=z.indexOf(E,q+1),-1===q){if(B||t){q=G+1;break}K("string")}for(T=q;z.charCodeAt(T-1)===a;)T-=1,S=!S}while(S);F=["string",z.slice(G,q+1),G,q],G=q;break;case p:w.lastIndex=G+1,w.test(z),q=0===w.lastIndex?z.length-1:w.lastIndex-2,F=["at-word",z.slice(G,q+1),G,q],G=q;break;case a:for(q=G,_=!0;z.charCodeAt(q+1)===a;)q+=1,_=!_;if(v=z.charCodeAt(q+1),_&&v!==o&&v!==s&&v!==n&&v!==h&&v!==i&&v!==d&&(q+=1,m.test(z.charAt(q)))){for(;m.test(z.charAt(q+1));)q+=1;z.charCodeAt(q+1)===s&&(q+=1)}F=["word",z.slice(G,q+1),G,q],G=q;break;default:v===o&&z.charCodeAt(G+1)===b?(q=z.indexOf("*/",G+2)+1,0===q&&(B||t?q=z.length:K("comment")),F=["comment",z.slice(G,q+1),G,q],G=q):(I.lastIndex=G+1,I.test(z),q=0===I.lastIndex?z.length-1:I.lastIndex-2,F=["word",z.slice(G,q+1),G,q],H.push(F),G=q)}return G++,F},position:function(){return G}}}}export{r as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var n,e;function o(){if(e)return n;e=1;let o={};return n=function(n){o[n]||(o[n]=!0,"undefined"!=typeof console&&console.warn&&console.warn(n))}}export{o as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var t,e;function i(){if(e)return t;e=1;class i{constructor(t,e={}){if(this.type="warning",this.text=t,e.node&&e.node.source){let t=e.node.rangeBy(e);this.line=t.start.line,this.column=t.start.column,this.endLine=t.end.line,this.endColumn=t.end.column}for(let t in e)this[t]=e[t]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return t=i,i.default=i,t}export{i as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__exports as t}from"../../../../_virtual/array-set/index.js";import{__require as r}from"../util/index.js";var e;function i(){if(e)return t;e=1;var i=r(),n=Object.prototype.hasOwnProperty,s="undefined"!=typeof Map;function o(){this._array=[],this._set=s?new Map:Object.create(null)}return o.fromArray=function(t,r){for(var e=new o,i=0,n=t.length;i<n;i++)e.add(t[i],r);return e},o.prototype.size=function(){return s?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(t,r){var e=s?t:i.toSetString(t),o=s?this.has(t):n.call(this._set,e),a=this._array.length;o&&!r||this._array.push(t),o||(s?this._set.set(t,a):this._set[e]=a)},o.prototype.has=function(t){if(s)return this._set.has(t);var r=i.toSetString(t);return n.call(this._set,r)},o.prototype.indexOf=function(t){if(s){var r=this._set.get(t);if(r>=0)return r}else{var e=i.toSetString(t);if(n.call(this._set,e))return this._set[e]}throw new Error('"'+t+'" is not in the set.')},o.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)},o.prototype.toArray=function(){return this._array.slice()},t.ArraySet=o,t}export{i as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__exports as e}from"../../../../_virtual/base64/index.js";var r;function n(){if(r)return e;r=1;var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return e.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError("Must be between 0 and 63: "+e)},e.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1},e}export{n as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__exports as e}from"../../../../_virtual/base64-vlq/index.js";import{__require as r}from"../base64/index.js";var i;function o(){if(i)return e;i=1;var o=r();return e.encode=function(e){var r,i="",t=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{r=31&t,(t>>>=5)>0&&(r|=32),i+=o.encode(r)}while(t>0);return i},e.decode=function(e,r,i){var t,n,a,d,u=e.length,s=0,c=0;do{if(r>=u)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(n=o.decode(e.charCodeAt(r++))))throw new Error("Invalid base64 digit: "+e.charAt(r-1));t=!!(32&n),s+=(n&=31)<<c,c+=5}while(t);i.value=(d=(a=s)>>1,1&~a?d:-d),i.rest=r},e}export{o as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__exports as r}from"../../../../_virtual/binary-search/index.js";var n;function t(){return n||(n=1,function(r){function n(t,e,_,E,i,o){var u=Math.floor((e-t)/2)+t,a=i(_,E[u],!0);return 0===a?u:a>0?e-u>1?n(u,e,_,E,i,o):o==r.LEAST_UPPER_BOUND?e<E.length?e:-1:u:u-t>1?n(t,u,_,E,i,o):o==r.LEAST_UPPER_BOUND?u:t<0?-1:t}r.GREATEST_LOWER_BOUND=1,r.LEAST_UPPER_BOUND=2,r.search=function(t,e,_,E){if(0===e.length)return-1;var i=n(-1,e.length,t,e,_,E||r.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&0===_(e[i],e[i-1],!0);)--i;return i}}(r)),r}export{t as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__exports as t}from"../../../../_virtual/mapping-list/index.js";import{__require as r}from"../util/index.js";var e;function a(){if(e)return t;e=1;var a=r();function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}return i.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)},i.prototype.add=function(t){var r,e,i,n,s,o;r=this._last,e=t,i=r.generatedLine,n=e.generatedLine,s=r.generatedColumn,o=e.generatedColumn,n>i||n==i&&o>=s||a.compareByGeneratedPositionsInflated(r,e)<=0?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(a.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=i,t}export{a as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__exports as r}from"../../../../_virtual/quick-sort/index.js";var t;function n(){if(t)return r;function n(r){function t(r,t,n){var e=r[t];r[t]=r[n],r[n]=e}return function r(n,e,o,i){if(o<i){var u=o-1;t(n,(v=o,s=i,Math.round(v+Math.random()*(s-v))),i);for(var a=n[i],f=o;f<i;f++)e(n[f],a,!1)<=0&&t(n,u+=1,f);t(n,u+1,f);var c=u+1;r(n,e,o,c-1),r(n,e,c+1,i)}var v,s}}t=1;let e=new WeakMap;return r.quickSort=function(r,t,o=0){let i=e.get(t);void 0===i&&(i=function(r){let t=n.toString();return new Function(`return ${t}`)()(r)}(t),e.set(t,i)),i(r,t,o,r.length-1)},r}export{n as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__exports as e}from"../../../../_virtual/source-map-consumer/index.js";import{__require as n}from"../util/index.js";import{__require as r}from"../binary-search/index.js";import{__require as t}from"../array-set/index.js";import{__require as o}from"../base64-vlq/index.js";import{__require as i}from"../quick-sort/index.js";var s;function a(){if(s)return e;s=1;var a=n(),u=r(),l=t().ArraySet,g=o(),p=i().quickSort;function c(e,n){var r=e;return"string"==typeof e&&(r=a.parseSourceMapInput(e)),null!=r.sections?new d(r,n):new m(r,n)}function m(e,n){var r=e;"string"==typeof e&&(r=a.parseSourceMapInput(e));var t=a.getArg(r,"version"),o=a.getArg(r,"sources"),i=a.getArg(r,"names",[]),s=a.getArg(r,"sourceRoot",null),u=a.getArg(r,"sourcesContent",null),g=a.getArg(r,"mappings"),p=a.getArg(r,"file",null);if(t!=this._version)throw new Error("Unsupported version: "+t);s&&(s=a.normalize(s)),o=o.map(String).map(a.normalize).map((function(e){return s&&a.isAbsolute(s)&&a.isAbsolute(e)?a.relative(s,e):e})),this._names=l.fromArray(i.map(String),!0),this._sources=l.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map((function(e){return a.computeSourceURL(s,e,n)})),this.sourceRoot=s,this.sourcesContent=u,this._mappings=g,this._sourceMapURL=n,this.file=p}function f(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}c.fromSourceMap=function(e,n){return m.fromSourceMap(e,n)},c.prototype._version=3,c.prototype.__generatedMappings=null,Object.defineProperty(c.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),c.prototype.__originalMappings=null,Object.defineProperty(c.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),c.prototype._charIsMappingSeparator=function(e,n){var r=e.charAt(n);return";"===r||","===r},c.prototype._parseMappings=function(e,n){throw new Error("Subclasses must implement _parseMappings")},c.GENERATED_ORDER=1,c.ORIGINAL_ORDER=2,c.GREATEST_LOWER_BOUND=1,c.LEAST_UPPER_BOUND=2,c.prototype.eachMapping=function(e,n,r){var t,o=n||null;switch(r||c.GENERATED_ORDER){case c.GENERATED_ORDER:t=this._generatedMappings;break;case c.ORIGINAL_ORDER:t=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var i=this.sourceRoot,s=e.bind(o),u=this._names,l=this._sources,g=this._sourceMapURL,p=0,m=t.length;p<m;p++){var f=t[p],h=null===f.source?null:l.at(f.source);null!==h&&(h=a.computeSourceURL(i,h,g)),s({source:h,generatedLine:f.generatedLine,generatedColumn:f.generatedColumn,originalLine:f.originalLine,originalColumn:f.originalColumn,name:null===f.name?null:u.at(f.name)})}},c.prototype.allGeneratedPositionsFor=function(e){var n=a.getArg(e,"line"),r={source:a.getArg(e,"source"),originalLine:n,originalColumn:a.getArg(e,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var t=[],o=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",a.compareByOriginalPositions,u.LEAST_UPPER_BOUND);if(o>=0){var i=this._originalMappings[o];if(void 0===e.column)for(var s=i.originalLine;i&&i.originalLine===s;)t.push({line:a.getArg(i,"generatedLine",null),column:a.getArg(i,"generatedColumn",null),lastColumn:a.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++o];else for(var l=i.originalColumn;i&&i.originalLine===n&&i.originalColumn==l;)t.push({line:a.getArg(i,"generatedLine",null),column:a.getArg(i,"generatedColumn",null),lastColumn:a.getArg(i,"lastGeneratedColumn",null)}),i=this._originalMappings[++o]}return t},e.SourceMapConsumer=c,m.prototype=Object.create(c.prototype),m.prototype.consumer=c,m.prototype._findSourceIndex=function(e){var n,r=e;if(null!=this.sourceRoot&&(r=a.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(n=0;n<this._absoluteSources.length;++n)if(this._absoluteSources[n]==e)return n;return-1},m.fromSourceMap=function(e,n){var r=Object.create(m.prototype),t=r._names=l.fromArray(e._names.toArray(),!0),o=r._sources=l.fromArray(e._sources.toArray(),!0);r.sourceRoot=e._sourceRoot,r.sourcesContent=e._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=e._file,r._sourceMapURL=n,r._absoluteSources=r._sources.toArray().map((function(e){return a.computeSourceURL(r.sourceRoot,e,n)}));for(var i=e._mappings.toArray().slice(),s=r.__generatedMappings=[],u=r.__originalMappings=[],g=0,c=i.length;g<c;g++){var h=i[g],_=new f;_.generatedLine=h.generatedLine,_.generatedColumn=h.generatedColumn,h.source&&(_.source=o.indexOf(h.source),_.originalLine=h.originalLine,_.originalColumn=h.originalColumn,h.name&&(_.name=t.indexOf(h.name)),u.push(_)),s.push(_)}return p(r.__originalMappings,a.compareByOriginalPositions),r},m.prototype._version=3,Object.defineProperty(m.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});const h=a.compareByGeneratedPositionsDeflatedNoLine;function _(e,n){let r=e.length,t=e.length-n;if(!(t<=1))if(2==t){let r=e[n],t=e[n+1];h(r,t)>0&&(e[n]=t,e[n+1]=r)}else if(t<20)for(let t=n;t<r;t++)for(let r=t;r>n;r--){let n=e[r-1],t=e[r];if(h(n,t)<=0)break;e[r-1]=t,e[r]=n}else p(e,h,n)}function d(e,n){var r=e;"string"==typeof e&&(r=a.parseSourceMapInput(e));var t=a.getArg(r,"version"),o=a.getArg(r,"sections");if(t!=this._version)throw new Error("Unsupported version: "+t);this._sources=new l,this._names=new l;var i={line:-1,column:0};this._sections=o.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var r=a.getArg(e,"offset"),t=a.getArg(r,"line"),o=a.getArg(r,"column");if(t<i.line||t===i.line&&o<i.column)throw new Error("Section offsets must be ordered and non-overlapping.");return i=r,{generatedOffset:{generatedLine:t+1,generatedColumn:o+1},consumer:new c(a.getArg(e,"map"),n)}}))}return m.prototype._parseMappings=function(e,n){var r,t,o,i,s=1,u=0,l=0,c=0,m=0,h=0,d=e.length,C=0,v={},L=[],A=[];let y=0;for(;C<d;)if(";"===e.charAt(C))s++,C++,u=0,_(A,y),y=A.length;else if(","===e.charAt(C))C++;else{for((r=new f).generatedLine=s,o=C;o<d&&!this._charIsMappingSeparator(e,o);o++);for(e.slice(C,o),t=[];C<o;)g.decode(e,C,v),i=v.value,C=v.rest,t.push(i);if(2===t.length)throw new Error("Found a source, but no line and column");if(3===t.length)throw new Error("Found a source and line, but no column");if(r.generatedColumn=u+t[0],u=r.generatedColumn,t.length>1&&(r.source=m+t[1],m+=t[1],r.originalLine=l+t[2],l=r.originalLine,r.originalLine+=1,r.originalColumn=c+t[3],c=r.originalColumn,t.length>4&&(r.name=h+t[4],h+=t[4])),A.push(r),"number"==typeof r.originalLine){let e=r.source;for(;L.length<=e;)L.push(null);null===L[e]&&(L[e]=[]),L[e].push(r)}}_(A,y),this.__generatedMappings=A;for(var M=0;M<L.length;M++)null!=L[M]&&p(L[M],a.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...L)},m.prototype._findMapping=function(e,n,r,t,o,i){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[t]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[t]);return u.search(e,n,o,i)},m.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var n=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(n.generatedLine===r.generatedLine){n.lastGeneratedColumn=r.generatedColumn-1;continue}}n.lastGeneratedColumn=1/0}},m.prototype.originalPositionFor=function(e){var n={generatedLine:a.getArg(e,"line"),generatedColumn:a.getArg(e,"column")},r=this._findMapping(n,this._generatedMappings,"generatedLine","generatedColumn",a.compareByGeneratedPositionsDeflated,a.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(r>=0){var t=this._generatedMappings[r];if(t.generatedLine===n.generatedLine){var o=a.getArg(t,"source",null);null!==o&&(o=this._sources.at(o),o=a.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var i=a.getArg(t,"name",null);return null!==i&&(i=this._names.at(i)),{source:o,line:a.getArg(t,"originalLine",null),column:a.getArg(t,"originalColumn",null),name:i}}}return{source:null,line:null,column:null,name:null}},m.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))},m.prototype.sourceContentFor=function(e,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var t,o=e;if(null!=this.sourceRoot&&(o=a.relative(this.sourceRoot,o)),null!=this.sourceRoot&&(t=a.urlParse(this.sourceRoot))){var i=o.replace(/^file:\/\//,"");if("file"==t.scheme&&this._sources.has(i))return this.sourcesContent[this._sources.indexOf(i)];if((!t.path||"/"==t.path)&&this._sources.has("/"+o))return this.sourcesContent[this._sources.indexOf("/"+o)]}if(n)return null;throw new Error('"'+o+'" is not in the SourceMap.')},m.prototype.generatedPositionFor=function(e){var n=a.getArg(e,"source");if((n=this._findSourceIndex(n))<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:a.getArg(e,"line"),originalColumn:a.getArg(e,"column")},t=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",a.compareByOriginalPositions,a.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(t>=0){var o=this._originalMappings[t];if(o.source===r.source)return{line:a.getArg(o,"generatedLine",null),column:a.getArg(o,"generatedColumn",null),lastColumn:a.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},e.BasicSourceMapConsumer=m,d.prototype=Object.create(c.prototype),d.prototype.constructor=c,d.prototype._version=3,Object.defineProperty(d.prototype,"sources",{get:function(){for(var e=[],n=0;n<this._sections.length;n++)for(var r=0;r<this._sections[n].consumer.sources.length;r++)e.push(this._sections[n].consumer.sources[r]);return e}}),d.prototype.originalPositionFor=function(e){var n={generatedLine:a.getArg(e,"line"),generatedColumn:a.getArg(e,"column")},r=u.search(n,this._sections,(function(e,n){var r=e.generatedLine-n.generatedOffset.generatedLine;return r||e.generatedColumn-n.generatedOffset.generatedColumn})),t=this._sections[r];return t?t.consumer.originalPositionFor({line:n.generatedLine-(t.generatedOffset.generatedLine-1),column:n.generatedColumn-(t.generatedOffset.generatedLine===n.generatedLine?t.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},d.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},d.prototype.sourceContentFor=function(e,n){for(var r=0;r<this._sections.length;r++){var t=this._sections[r].consumer.sourceContentFor(e,!0);if(t||""===t)return t}if(n)return null;throw new Error('"'+e+'" is not in the SourceMap.')},d.prototype.generatedPositionFor=function(e){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(-1!==r.consumer._findSourceIndex(a.getArg(e,"source"))){var t=r.consumer.generatedPositionFor(e);if(t)return{line:t.line+(r.generatedOffset.generatedLine-1),column:t.column+(r.generatedOffset.generatedLine===t.line?r.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},d.prototype._parseMappings=function(e,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var t=this._sections[r],o=t.consumer._generatedMappings,i=0;i<o.length;i++){var s=o[i],u=t.consumer._sources.at(s.source);null!==u&&(u=a.computeSourceURL(t.consumer.sourceRoot,u,this._sourceMapURL)),this._sources.add(u),u=this._sources.indexOf(u);var l=null;s.name&&(l=t.consumer._names.at(s.name),this._names.add(l),l=this._names.indexOf(l));var g={source:u,generatedLine:s.generatedLine+(t.generatedOffset.generatedLine-1),generatedColumn:s.generatedColumn+(t.generatedOffset.generatedLine===s.generatedLine?t.generatedOffset.generatedColumn-1:0),originalLine:s.originalLine,originalColumn:s.originalColumn,name:l};this.__generatedMappings.push(g),"number"==typeof g.originalLine&&this.__originalMappings.push(g)}p(this.__generatedMappings,a.compareByGeneratedPositionsDeflated),p(this.__originalMappings,a.compareByOriginalPositions)},e.IndexedSourceMapConsumer=d,e}export{a as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__exports as e}from"../../../../_virtual/source-map-generator/index.js";import{__require as n}from"../base64-vlq/index.js";import{__require as o}from"../util/index.js";import{__require as r}from"../array-set/index.js";import{__require as i}from"../mapping-list/index.js";var t;function s(){if(t)return e;t=1;var s=n(),l=o(),a=r().ArraySet,u=i().MappingList;function c(e){e||(e={}),this._file=l.getArg(e,"file",null),this._sourceRoot=l.getArg(e,"sourceRoot",null),this._skipValidation=l.getArg(e,"skipValidation",!1),this._ignoreInvalidMapping=l.getArg(e,"ignoreInvalidMapping",!1),this._sources=new a,this._names=new a,this._mappings=new u,this._sourcesContents=null}return c.prototype._version=3,c.fromSourceMap=function(e,n){var o=e.sourceRoot,r=new c(Object.assign(n||{},{file:e.file,sourceRoot:o}));return e.eachMapping((function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=o&&(n.source=l.relative(o,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)})),e.sources.forEach((function(n){var i=n;null!==o&&(i=l.relative(o,n)),r._sources.has(i)||r._sources.add(i);var t=e.sourceContentFor(n);null!=t&&r.setSourceContent(n,t)})),r},c.prototype.addMapping=function(e){var n=l.getArg(e,"generated"),o=l.getArg(e,"original",null),r=l.getArg(e,"source",null),i=l.getArg(e,"name",null);(this._skipValidation||!1!==this._validateMapping(n,o,r,i))&&(null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:null!=o&&o.line,originalColumn:null!=o&&o.column,source:r,name:i}))},c.prototype.setSourceContent=function(e,n){var o=e;null!=this._sourceRoot&&(o=l.relative(this._sourceRoot,o)),null!=n?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[l.toSetString(o)]=n):this._sourcesContents&&(delete this._sourcesContents[l.toSetString(o)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},c.prototype.applySourceMap=function(e,n,o){var r=n;if(null==n){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}var i=this._sourceRoot;null!=i&&(r=l.relative(i,r));var t=new a,s=new a;this._mappings.unsortedForEach((function(n){if(n.source===r&&null!=n.originalLine){var a=e.originalPositionFor({line:n.originalLine,column:n.originalColumn});null!=a.source&&(n.source=a.source,null!=o&&(n.source=l.join(o,n.source)),null!=i&&(n.source=l.relative(i,n.source)),n.originalLine=a.line,n.originalColumn=a.column,null!=a.name&&(n.name=a.name))}var u=n.source;null==u||t.has(u)||t.add(u);var c=n.name;null==c||s.has(c)||s.add(c)}),this),this._sources=t,this._names=s,e.sources.forEach((function(n){var r=e.sourceContentFor(n);null!=r&&(null!=o&&(n=l.join(o,n)),null!=i&&(n=l.relative(i,n)),this.setSourceContent(n,r))}),this)},c.prototype._validateMapping=function(e,n,o,r){if(n&&"number"!=typeof n.line&&"number"!=typeof n.column){var i="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return"undefined"!=typeof console&&console.warn&&console.warn(i),!1;throw new Error(i)}if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||n||o||r)&&!(e&&"line"in e&&"column"in e&&n&&"line"in n&&"column"in n&&e.line>0&&e.column>=0&&n.line>0&&n.column>=0&&o)){i="Invalid mapping: "+JSON.stringify({generated:e,source:o,original:n,name:r});if(this._ignoreInvalidMapping)return"undefined"!=typeof console&&console.warn&&console.warn(i),!1;throw new Error(i)}},c.prototype._serializeMappings=function(){for(var e,n,o,r,i=0,t=1,a=0,u=0,c=0,p=0,g="",m=this._mappings.toArray(),h=0,_=m.length;h<_;h++){if(e="",(n=m[h]).generatedLine!==t)for(i=0;n.generatedLine!==t;)e+=";",t++;else if(h>0){if(!l.compareByGeneratedPositionsInflated(n,m[h-1]))continue;e+=","}e+=s.encode(n.generatedColumn-i),i=n.generatedColumn,null!=n.source&&(r=this._sources.indexOf(n.source),e+=s.encode(r-p),p=r,e+=s.encode(n.originalLine-1-u),u=n.originalLine-1,e+=s.encode(n.originalColumn-a),a=n.originalColumn,null!=n.name&&(o=this._names.indexOf(n.name),e+=s.encode(o-c),c=o)),g+=e}return g},c.prototype._generateSourcesContent=function(e,n){return e.map((function(e){if(!this._sourcesContents)return null;null!=n&&(e=l.relative(n,e));var o=l.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,o)?this._sourcesContents[o]:null}),this)},c.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},c.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=c,e}export{s as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__exports as n}from"../../../../_virtual/source-node/index.js";import{__require as e}from"../source-map-generator/index.js";import{__require as r}from"../util/index.js";var t;function o(){if(t)return n;t=1;var o=e().SourceMapGenerator,i=r(),l=/(\r?\n)/,u="$$$isSourceNode$$$";function s(n,e,r,t,o){this.children=[],this.sourceContents={},this.line=null==n?null:n,this.column=null==e?null:e,this.source=null==r?null:r,this.name=null==o?null:o,this[u]=!0,null!=t&&this.add(t)}return s.fromStringWithSourceMap=function(n,e,r){var t=new s,o=n.split(l),u=0,c=function(){return n()+(n()||"");function n(){return u<o.length?o[u++]:void 0}},a=1,h=0,d=null;return e.eachMapping((function(n){if(null!==d){if(!(a<n.generatedLine)){var e=(r=o[u]||"").substr(0,n.generatedColumn-h);return o[u]=r.substr(n.generatedColumn-h),h=n.generatedColumn,p(d,e),void(d=n)}p(d,c()),a++,h=0}for(;a<n.generatedLine;)t.add(c()),a++;if(h<n.generatedColumn){var r=o[u]||"";t.add(r.substr(0,n.generatedColumn)),o[u]=r.substr(n.generatedColumn),h=n.generatedColumn}d=n}),this),u<o.length&&(d&&p(d,c()),t.add(o.splice(u).join(""))),e.sources.forEach((function(n){var o=e.sourceContentFor(n);null!=o&&(null!=r&&(n=i.join(r,n)),t.setSourceContent(n,o))})),t;function p(n,e){if(null===n||void 0===n.source)t.add(e);else{var o=r?i.join(r,n.source):n.source;t.add(new s(n.originalLine,n.originalColumn,o,e,n.name))}}},s.prototype.add=function(n){if(Array.isArray(n))n.forEach((function(n){this.add(n)}),this);else{if(!n[u]&&"string"!=typeof n)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+n);n&&this.children.push(n)}return this},s.prototype.prepend=function(n){if(Array.isArray(n))for(var e=n.length-1;e>=0;e--)this.prepend(n[e]);else{if(!n[u]&&"string"!=typeof n)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+n);this.children.unshift(n)}return this},s.prototype.walk=function(n){for(var e,r=0,t=this.children.length;r<t;r++)(e=this.children[r])[u]?e.walk(n):""!==e&&n(e,{source:this.source,line:this.line,column:this.column,name:this.name})},s.prototype.join=function(n){var e,r,t=this.children.length;if(t>0){for(e=[],r=0;r<t-1;r++)e.push(this.children[r]),e.push(n);e.push(this.children[r]),this.children=e}return this},s.prototype.replaceRight=function(n,e){var r=this.children[this.children.length-1];return r[u]?r.replaceRight(n,e):"string"==typeof r?this.children[this.children.length-1]=r.replace(n,e):this.children.push("".replace(n,e)),this},s.prototype.setSourceContent=function(n,e){this.sourceContents[i.toSetString(n)]=e},s.prototype.walkSourceContents=function(n){for(var e=0,r=this.children.length;e<r;e++)this.children[e][u]&&this.children[e].walkSourceContents(n);var t=Object.keys(this.sourceContents);for(e=0,r=t.length;e<r;e++)n(i.fromSetString(t[e]),this.sourceContents[t[e]])},s.prototype.toString=function(){var n="";return this.walk((function(e){n+=e})),n},s.prototype.toStringWithSourceMap=function(n){var e={code:"",line:1,column:0},r=new o(n),t=!1,i=null,l=null,u=null,s=null;return this.walk((function(n,o){e.code+=n,null!==o.source&&null!==o.line&&null!==o.column?(i===o.source&&l===o.line&&u===o.column&&s===o.name||r.addMapping({source:o.source,original:{line:o.line,column:o.column},generated:{line:e.line,column:e.column},name:o.name}),i=o.source,l=o.line,u=o.column,s=o.name,t=!0):t&&(r.addMapping({generated:{line:e.line,column:e.column}}),i=null,t=!1);for(var c=0,a=n.length;c<a;c++)10===n.charCodeAt(c)?(e.line++,e.column=0,c+1===a?(i=null,t=!1):t&&r.addMapping({source:o.source,original:{line:o.line,column:o.column},generated:{line:e.line,column:e.column},name:o.name})):e.column++})),this.walkSourceContents((function(n,e){r.setSourceContent(n,e)})),{code:e.code,map:r}},n.SourceNode=s,n}export{o as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__exports as e}from"../../../../_virtual/util/index.js";var r;function n(){return r||(r=1,function(e){e.getArg=function(e,r,n){if(r in e)return e[r];if(3===arguments.length)return n;throw new Error('"'+r+'" is a required argument.')};var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function t(e){var n=e.match(r);return n?{scheme:n[1],auth:n[2],host:n[3],port:n[4],path:n[5]}:null}function i(e){var r="";return e.scheme&&(r+=e.scheme+":"),r+="//",e.auth&&(r+=e.auth+"@"),e.host&&(r+=e.host),e.port&&(r+=":"+e.port),e.path&&(r+=e.path),r}e.urlParse=t,e.urlGenerate=i;var a,o,u=(a=function(r){var n=r,a=t(r);if(a){if(!a.path)return r;n=a.path}for(var o=e.isAbsolute(n),u=[],l=0,c=0;;){if(l=c,-1===(c=n.indexOf("/",l))){u.push(n.slice(l));break}for(u.push(n.slice(l,c));c<n.length&&"/"===n[c];)c++}var s,f=0;for(c=u.length-1;c>=0;c--)"."===(s=u[c])?u.splice(c,1):".."===s?f++:f>0&&(""===s?(u.splice(c+1,f),f=0):(u.splice(c,2),f--));return""===(n=u.join("/"))&&(n=o?"/":"."),a?(a.path=n,i(a)):n},o=[],function(e){for(var r=0;r<o.length;r++)if(o[r].input===e){var n=o[0];return o[0]=o[r],o[r]=n,o[0].result}var t=a(e);return o.unshift({input:e,result:t}),o.length>32&&o.pop(),t});function l(e,r){""===e&&(e="."),""===r&&(r=".");var a=t(r),o=t(e);if(o&&(e=o.path||"/"),a&&!a.scheme)return o&&(a.scheme=o.scheme),i(a);if(a||r.match(n))return r;if(o&&!o.host&&!o.path)return o.host=r,i(o);var l="/"===r.charAt(0)?r:u(e.replace(/\/+$/,"")+"/"+r);return o?(o.path=l,i(o)):l}e.normalize=u,e.join=l,e.isAbsolute=function(e){return"/"===e.charAt(0)||r.test(e)},e.relative=function(e,r){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==r.indexOf(e+"/");){var t=e.lastIndexOf("/");if(t<0)return r;if((e=e.slice(0,t)).match(/^([^\/]+:\/)?\/*$/))return r;++n}return Array(n+1).join("../")+r.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function s(e){return e}function f(e){if(!e)return!1;var r=e.length;if(r<9)return!1;if(95!==e.charCodeAt(r-1)||95!==e.charCodeAt(r-2)||111!==e.charCodeAt(r-3)||116!==e.charCodeAt(r-4)||111!==e.charCodeAt(r-5)||114!==e.charCodeAt(r-6)||112!==e.charCodeAt(r-7)||95!==e.charCodeAt(r-8)||95!==e.charCodeAt(r-9))return!1;for(var n=r-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function h(e,r){return e===r?0:null===e?1:null===r?-1:e>r?1:-1}e.toSetString=c?s:function(e){return f(e)?"$"+e:e},e.fromSetString=c?s:function(e){return f(e)?e.slice(1):e},e.compareByOriginalPositions=function(e,r,n){var t=h(e.source,r.source);return 0!==t||0!==(t=e.originalLine-r.originalLine)||0!==(t=e.originalColumn-r.originalColumn)||n||0!==(t=e.generatedColumn-r.generatedColumn)||0!==(t=e.generatedLine-r.generatedLine)?t:h(e.name,r.name)},e.compareByOriginalPositionsNoSource=function(e,r,n){var t;return 0!==(t=e.originalLine-r.originalLine)||0!==(t=e.originalColumn-r.originalColumn)||n||0!==(t=e.generatedColumn-r.generatedColumn)||0!==(t=e.generatedLine-r.generatedLine)?t:h(e.name,r.name)},e.compareByGeneratedPositionsDeflated=function(e,r,n){var t=e.generatedLine-r.generatedLine;return 0!==t||0!==(t=e.generatedColumn-r.generatedColumn)||n||0!==(t=h(e.source,r.source))||0!==(t=e.originalLine-r.originalLine)||0!==(t=e.originalColumn-r.originalColumn)?t:h(e.name,r.name)},e.compareByGeneratedPositionsDeflatedNoLine=function(e,r,n){var t=e.generatedColumn-r.generatedColumn;return 0!==t||n||0!==(t=h(e.source,r.source))||0!==(t=e.originalLine-r.originalLine)||0!==(t=e.originalColumn-r.originalColumn)?t:h(e.name,r.name)},e.compareByGeneratedPositionsInflated=function(e,r){var n=e.generatedLine-r.generatedLine;return 0!==n||0!==(n=e.generatedColumn-r.generatedColumn)||0!==(n=h(e.source,r.source))||0!==(n=e.originalLine-r.originalLine)||0!==(n=e.originalColumn-r.originalColumn)?n:h(e.name,r.name)},e.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(e,r,n){if(r=r||"",e&&("/"!==e[e.length-1]&&"/"!==r[0]&&(e+="/"),r=e+r),n){var a=t(n);if(!a)throw new Error("sourceMapURL could not be parsed");if(a.path){var o=a.path.lastIndexOf("/");o>=0&&(a.path=a.path.substring(0,o+1))}r=l(i(a),r)}return u(r)}}(e)),e}export{n as __require};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{__exports as r}from"../../../_virtual/source-map/index.js";import{__require as e}from"../lib/source-map-generator/index.js";import{__require as o}from"../lib/source-map-consumer/index.js";import{__require as u}from"../lib/source-node/index.js";var a;function i(){return a||(a=1,r.SourceMapGenerator=e().SourceMapGenerator,r.SourceMapConsumer=o().SourceMapConsumer,r.SourceNode=u().SourceNode),r}export{i as __require};
|