@cas-smartdesign/popover 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +8 -0
- package/dist/docs/3_created_from_source.js +1 -0
- package/dist/docs/doc.css +1 -0
- package/dist/docs/doc.mjs +211 -0
- package/dist/docs/index.html +25 -0
- package/dist/popover-with-externals.js +8 -0
- package/dist/popover-with-externals.js.map +7 -0
- package/dist/popover.d.ts +76 -0
- package/dist/popover.mjs +281 -0
- package/dist/popover.mjs.map +1 -0
- package/npm-third-party-licenses.json +192 -0
- package/package.json +33 -0
- package/readme.md +69 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
Copyright 2019 CAS Software AG
|
|
2
|
+
|
|
3
|
+
This software is confidential and proprietary information of CAS Software AG. You shall not
|
|
4
|
+
disclose such Confidential Information and shall use it only in accordance with the terms of
|
|
5
|
+
the license agreement you entered into with CAS Software AG or SmartWe World AG.
|
|
6
|
+
|
|
7
|
+
To obtain a license (e.g. by joining the partner programs of CAS Software AG or SmartWe World AG)
|
|
8
|
+
please contact partnerinfo@cas.de or partnerinfo@smartwe.world.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{P as r}from"./doc.mjs";const c=document.querySelector("#popover-from-source-container"),t=document.createElement("a"),n=document.createElement("button"),o=document.createElement("div"),e=new r;n.innerText="Open popover";n.addEventListener("click",()=>e.show());t.innerText="Click here to close";t.href="javascript:void(0)";t.style.display="block";t.addEventListener("click",()=>e.hide());o.innerText="This is a popover which was created from code.";o.style.padding="8px";o.appendChild(t);e.targetElement=n;e.triggerType="manual";e.placement="bottom";e.offset=5;e.appendChild(o);c.appendChild(n);c.appendChild(e);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.markdown-body{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;margin:0;color:#1f2328;background-color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px;line-height:1.5;word-wrap:break-word}.markdown-body .octicon{display:inline-block;fill:currentColor;vertical-align:text-bottom}.markdown-body h1:hover .anchor .octicon-link:before,.markdown-body h2:hover .anchor .octicon-link:before,.markdown-body h3:hover .anchor .octicon-link:before,.markdown-body h4:hover .anchor .octicon-link:before,.markdown-body h5:hover .anchor .octicon-link:before,.markdown-body h6:hover .anchor .octicon-link:before{width:16px;height:16px;content:" ";display:inline-block;background-color:currentColor;-webkit-mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg>");mask-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' aria-hidden='true'><path fill-rule='evenodd' d='M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z'></path></svg>")}.markdown-body details,.markdown-body figcaption,.markdown-body figure{display:block}.markdown-body summary{display:list-item}.markdown-body [hidden]{display:none!important}.markdown-body a{background-color:transparent;color:#0969da;text-decoration:none}.markdown-body abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.markdown-body b,.markdown-body strong{font-weight:600}.markdown-body dfn{font-style:italic}.markdown-body h1{margin:.67em 0;font-weight:600;padding-bottom:.3em;font-size:2em;border-bottom:1px solid hsla(210,18%,87%,1)}.markdown-body mark{background-color:#fff8c5;color:#1f2328}.markdown-body small{font-size:90%}.markdown-body sub,.markdown-body sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.markdown-body sub{bottom:-.25em}.markdown-body sup{top:-.5em}.markdown-body img{border-style:none;max-width:100%;box-sizing:content-box;background-color:#fff}.markdown-body code,.markdown-body kbd,.markdown-body pre,.markdown-body samp{font-family:monospace;font-size:1em}.markdown-body figure{margin:1em 40px}.markdown-body hr{box-sizing:content-box;overflow:hidden;background:transparent;border-bottom:1px solid hsla(210,18%,87%,1);height:.25em;padding:0;margin:24px 0;background-color:#d0d7de;border:0}.markdown-body input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}.markdown-body [type=button],.markdown-body [type=reset],.markdown-body [type=submit]{-webkit-appearance:button;-moz-appearance:button;appearance:button}.markdown-body [type=checkbox],.markdown-body [type=radio]{box-sizing:border-box;padding:0}.markdown-body [type=number]::-webkit-inner-spin-button,.markdown-body [type=number]::-webkit-outer-spin-button{height:auto}.markdown-body [type=search]::-webkit-search-cancel-button,.markdown-body [type=search]::-webkit-search-decoration{-webkit-appearance:none;-moz-appearance:none;appearance:none}.markdown-body ::-webkit-input-placeholder{color:inherit;opacity:.54}.markdown-body ::-webkit-file-upload-button{-webkit-appearance:button;-moz-appearance:button;appearance:button;font:inherit}.markdown-body a:hover{text-decoration:underline}.markdown-body ::placeholder{color:#6e7781;opacity:1}.markdown-body hr:before{display:table;content:""}.markdown-body hr:after{display:table;clear:both;content:""}.markdown-body table{border-spacing:0;border-collapse:collapse;display:block;width:max-content;max-width:100%;overflow:auto}.markdown-body td,.markdown-body th{padding:0}.markdown-body details summary{cursor:pointer}.markdown-body details:not([open])>*:not(summary){display:none!important}.markdown-body a:focus,.markdown-body [role=button]:focus,.markdown-body input[type=radio]:focus,.markdown-body input[type=checkbox]:focus{outline:2px solid #0969da;outline-offset:-2px;box-shadow:none}.markdown-body a:focus:not(:focus-visible),.markdown-body [role=button]:focus:not(:focus-visible),.markdown-body input[type=radio]:focus:not(:focus-visible),.markdown-body input[type=checkbox]:focus:not(:focus-visible){outline:solid 1px transparent}.markdown-body a:focus-visible,.markdown-body [role=button]:focus-visible,.markdown-body input[type=radio]:focus-visible,.markdown-body input[type=checkbox]:focus-visible{outline:2px solid #0969da;outline-offset:-2px;box-shadow:none}.markdown-body a:not([class]):focus,.markdown-body a:not([class]):focus-visible,.markdown-body input[type=radio]:focus,.markdown-body input[type=radio]:focus-visible,.markdown-body input[type=checkbox]:focus,.markdown-body input[type=checkbox]:focus-visible{outline-offset:0}.markdown-body kbd{display:inline-block;padding:3px 5px;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;color:#1f2328;vertical-align:middle;background-color:#f6f8fa;border:solid 1px rgba(175,184,193,.2);border-bottom-color:#afb8c133;border-radius:6px;box-shadow:inset 0 -1px #afb8c133}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4,.markdown-body h5,.markdown-body h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.markdown-body h2{font-weight:600;padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid hsla(210,18%,87%,1)}.markdown-body h3{font-weight:600;font-size:1.25em}.markdown-body h4{font-weight:600;font-size:1em}.markdown-body h5{font-weight:600;font-size:.875em}.markdown-body h6{font-weight:600;font-size:.85em;color:#656d76}.markdown-body p{margin-top:0;margin-bottom:10px}.markdown-body blockquote{margin:0;padding:0 1em;color:#656d76;border-left:.25em solid #d0d7de}.markdown-body ul,.markdown-body ol{margin-top:0;margin-bottom:0;padding-left:2em}.markdown-body ol ol,.markdown-body ul ol{list-style-type:lower-roman}.markdown-body ul ul ol,.markdown-body ul ol ol,.markdown-body ol ul ol,.markdown-body ol ol ol{list-style-type:lower-alpha}.markdown-body dd{margin-left:0}.markdown-body tt,.markdown-body code,.markdown-body samp{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}.markdown-body pre{margin-top:0;margin-bottom:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;word-wrap:normal}.markdown-body .octicon{display:inline-block;overflow:visible!important;vertical-align:text-bottom;fill:currentColor}.markdown-body input::-webkit-outer-spin-button,.markdown-body input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.markdown-body .mr-2{margin-right:8px!important}.markdown-body:before{display:table;content:""}.markdown-body:after{display:table;clear:both;content:""}.markdown-body>*:first-child{margin-top:0!important}.markdown-body>*:last-child{margin-bottom:0!important}.markdown-body a:not([href]){color:inherit;text-decoration:none}.markdown-body .absent{color:#d1242f}.markdown-body .anchor{float:left;padding-right:4px;margin-left:-20px;line-height:1}.markdown-body .anchor:focus{outline:none}.markdown-body p,.markdown-body blockquote,.markdown-body ul,.markdown-body ol,.markdown-body dl,.markdown-body table,.markdown-body pre,.markdown-body details{margin-top:0;margin-bottom:16px}.markdown-body blockquote>:first-child{margin-top:0}.markdown-body blockquote>:last-child{margin-bottom:0}.markdown-body h1 .octicon-link,.markdown-body h2 .octicon-link,.markdown-body h3 .octicon-link,.markdown-body h4 .octicon-link,.markdown-body h5 .octicon-link,.markdown-body h6 .octicon-link{color:#1f2328;vertical-align:middle;visibility:hidden}.markdown-body h1:hover .anchor,.markdown-body h2:hover .anchor,.markdown-body h3:hover .anchor,.markdown-body h4:hover .anchor,.markdown-body h5:hover .anchor,.markdown-body h6:hover .anchor{text-decoration:none}.markdown-body h1:hover .anchor .octicon-link,.markdown-body h2:hover .anchor .octicon-link,.markdown-body h3:hover .anchor .octicon-link,.markdown-body h4:hover .anchor .octicon-link,.markdown-body h5:hover .anchor .octicon-link,.markdown-body h6:hover .anchor .octicon-link{visibility:visible}.markdown-body h1 tt,.markdown-body h1 code,.markdown-body h2 tt,.markdown-body h2 code,.markdown-body h3 tt,.markdown-body h3 code,.markdown-body h4 tt,.markdown-body h4 code,.markdown-body h5 tt,.markdown-body h5 code,.markdown-body h6 tt,.markdown-body h6 code{padding:0 .2em;font-size:inherit}.markdown-body summary h1,.markdown-body summary h2,.markdown-body summary h3,.markdown-body summary h4,.markdown-body summary h5,.markdown-body summary h6{display:inline-block}.markdown-body summary h1 .anchor,.markdown-body summary h2 .anchor,.markdown-body summary h3 .anchor,.markdown-body summary h4 .anchor,.markdown-body summary h5 .anchor,.markdown-body summary h6 .anchor{margin-left:-40px}.markdown-body summary h1,.markdown-body summary h2{padding-bottom:0;border-bottom:0}.markdown-body ul.no-list,.markdown-body ol.no-list{padding:0;list-style-type:none}.markdown-body ol[type="a s"]{list-style-type:lower-alpha}.markdown-body ol[type="A s"]{list-style-type:upper-alpha}.markdown-body ol[type="i s"]{list-style-type:lower-roman}.markdown-body ol[type="I s"]{list-style-type:upper-roman}.markdown-body ol[type="1"]{list-style-type:decimal}.markdown-body div>ol:not([type]){list-style-type:decimal}.markdown-body ul ul,.markdown-body ul ol,.markdown-body ol ol,.markdown-body ol ul{margin-top:0;margin-bottom:0}.markdown-body li>p{margin-top:16px}.markdown-body li+li{margin-top:.25em}.markdown-body dl{padding:0}.markdown-body dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:600}.markdown-body dl dd{padding:0 16px;margin-bottom:16px}.markdown-body table th{font-weight:600}.markdown-body table th,.markdown-body table td{padding:6px 13px;border:1px solid #d0d7de}.markdown-body table td>:last-child{margin-bottom:0}.markdown-body table tr{background-color:#fff;border-top:1px solid hsla(210,18%,87%,1)}.markdown-body table tr:nth-child(2n){background-color:#f6f8fa}.markdown-body table img{background-color:transparent}.markdown-body img[align=right]{padding-left:20px}.markdown-body img[align=left]{padding-right:20px}.markdown-body .emoji{max-width:none;vertical-align:text-top;background-color:transparent}.markdown-body span.frame{display:block;overflow:hidden}.markdown-body span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid #d0d7de}.markdown-body span.frame span img{display:block;float:left}.markdown-body span.frame span span{display:block;padding:5px 0 0;clear:both;color:#1f2328}.markdown-body span.align-center{display:block;overflow:hidden;clear:both}.markdown-body span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.markdown-body span.align-center span img{margin:0 auto;text-align:center}.markdown-body span.align-right{display:block;overflow:hidden;clear:both}.markdown-body span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.markdown-body span.align-right span img{margin:0;text-align:right}.markdown-body span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.markdown-body span.float-left span{margin:13px 0 0}.markdown-body span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.markdown-body span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.markdown-body code,.markdown-body tt{padding:.2em .4em;margin:0;font-size:85%;white-space:break-spaces;background-color:#afb8c133;border-radius:6px}.markdown-body code br,.markdown-body tt br{display:none}.markdown-body del code{text-decoration:inherit}.markdown-body samp{font-size:85%}.markdown-body pre code{font-size:100%}.markdown-body pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:transparent;border:0}.markdown-body .highlight{margin-bottom:16px}.markdown-body .highlight pre{margin-bottom:0;word-break:normal}.markdown-body .highlight pre,.markdown-body pre{padding:16px;overflow:auto;font-size:85%;line-height:1.45;color:#1f2328;background-color:#f6f8fa;border-radius:6px}.markdown-body pre code,.markdown-body pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.markdown-body .csv-data td,.markdown-body .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.markdown-body .csv-data .blob-num{padding:10px 8px 9px;text-align:right;background:#fff;border:0}.markdown-body .csv-data tr{border-top:0}.markdown-body .csv-data th{font-weight:600;background:#f6f8fa;border-top:0}.markdown-body [data-footnote-ref]:before{content:"["}.markdown-body [data-footnote-ref]:after{content:"]"}.markdown-body .footnotes{font-size:12px;color:#656d76;border-top:1px solid #d0d7de}.markdown-body .footnotes ol{padding-left:16px}.markdown-body .footnotes ol ul{display:inline-block;padding-left:16px;margin-top:16px}.markdown-body .footnotes li{position:relative}.markdown-body .footnotes li:target:before{position:absolute;top:-8px;right:-8px;bottom:-8px;left:-24px;pointer-events:none;content:"";border:2px solid #0969da;border-radius:6px}.markdown-body .footnotes li:target{color:#1f2328}.markdown-body .footnotes .data-footnote-backref g-emoji{font-family:monospace}.markdown-body .pl-c{color:#57606a}.markdown-body .pl-c1,.markdown-body .pl-s .pl-v{color:#0550ae}.markdown-body .pl-e,.markdown-body .pl-en{color:#6639ba}.markdown-body .pl-smi,.markdown-body .pl-s .pl-s1{color:#24292f}.markdown-body .pl-ent{color:#116329}.markdown-body .pl-k{color:#cf222e}.markdown-body .pl-s,.markdown-body .pl-pds,.markdown-body .pl-s .pl-pse .pl-s1,.markdown-body .pl-sr,.markdown-body .pl-sr .pl-cce,.markdown-body .pl-sr .pl-sre,.markdown-body .pl-sr .pl-sra{color:#0a3069}.markdown-body .pl-v,.markdown-body .pl-smw{color:#953800}.markdown-body .pl-bu{color:#82071e}.markdown-body .pl-ii{color:#f6f8fa;background-color:#82071e}.markdown-body .pl-c2{color:#f6f8fa;background-color:#cf222e}.markdown-body .pl-sr .pl-cce{font-weight:700;color:#116329}.markdown-body .pl-ml{color:#3b2300}.markdown-body .pl-mh,.markdown-body .pl-mh .pl-en,.markdown-body .pl-ms{font-weight:700;color:#0550ae}.markdown-body .pl-mi{font-style:italic;color:#24292f}.markdown-body .pl-mb{font-weight:700;color:#24292f}.markdown-body .pl-md{color:#82071e;background-color:#ffebe9}.markdown-body .pl-mi1{color:#116329;background-color:#dafbe1}.markdown-body .pl-mc{color:#953800;background-color:#ffd8b5}.markdown-body .pl-mi2{color:#eaeef2;background-color:#0550ae}.markdown-body .pl-mdr{font-weight:700;color:#8250df}.markdown-body .pl-ba{color:#57606a}.markdown-body .pl-sg{color:#8c959f}.markdown-body .pl-corl{text-decoration:underline;color:#0a3069}.markdown-body g-emoji{display:inline-block;min-width:1ch;font-family:"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;font-size:1em;font-style:normal!important;font-weight:400;line-height:1;vertical-align:-.075em}.markdown-body g-emoji img{width:1em;height:1em}.markdown-body .task-list-item{list-style-type:none}.markdown-body .task-list-item label{font-weight:400}.markdown-body .task-list-item.enabled label{cursor:pointer}.markdown-body .task-list-item+.task-list-item{margin-top:4px}.markdown-body .task-list-item .handle{display:none}.markdown-body .task-list-item-checkbox{margin:0 .2em .25em -1.4em;vertical-align:middle}.markdown-body .contains-task-list:dir(rtl) .task-list-item-checkbox{margin:0 -1.6em .25em .2em}.markdown-body .contains-task-list{position:relative}.markdown-body .contains-task-list:hover .task-list-item-convert-container,.markdown-body .contains-task-list:focus-within .task-list-item-convert-container{display:block;width:auto;height:24px;overflow:visible;clip:auto}.markdown-body ::-webkit-calendar-picker-indicator{filter:invert(50%)}.markdown-body .markdown-alert{padding:8px 16px;margin-bottom:16px;color:inherit;border-left:.25em solid #d0d7de}.markdown-body .markdown-alert>:first-child{margin-top:0}.markdown-body .markdown-alert>:last-child{margin-bottom:0}.markdown-body .markdown-alert .markdown-alert-title{display:flex;font-weight:500;align-items:center;line-height:1}.markdown-body .markdown-alert.markdown-alert-note{border-left-color:#0969da}.markdown-body .markdown-alert.markdown-alert-note .markdown-alert-title{color:#0969da}.markdown-body .markdown-alert.markdown-alert-important{border-left-color:#8250df}.markdown-body .markdown-alert.markdown-alert-important .markdown-alert-title{color:#8250df}.markdown-body .markdown-alert.markdown-alert-warning{border-left-color:#9a6700}.markdown-body .markdown-alert.markdown-alert-warning .markdown-alert-title{color:#9a6700}.markdown-body .markdown-alert.markdown-alert-tip{border-left-color:#1f883d}.markdown-body .markdown-alert.markdown-alert-tip .markdown-alert-title{color:#1a7f37}.markdown-body .markdown-alert.markdown-alert-caution{border-left-color:#cf222e}.markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title{color:#d1242f}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function t(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=t(i);fetch(i.href,o)}})();const Pi=`<!-- Load element with all dependencies directly -->
|
|
2
|
+
<script src="./popover-with-externals.js"><\/script>
|
|
3
|
+
|
|
4
|
+
<div>
|
|
5
|
+
<sd-popover modal target-selector="#popover-trigger-button" placement="right-start">
|
|
6
|
+
<div class="popover-content" style="padding: 8px">
|
|
7
|
+
This is a popover which was opened by a button
|
|
8
|
+
<hr />
|
|
9
|
+
<button onclick="alert('Clicked!')">Action</button>
|
|
10
|
+
</div>
|
|
11
|
+
</sd-popover>
|
|
12
|
+
<button id="popover-trigger-button">Open modal popover</button>
|
|
13
|
+
</div>
|
|
14
|
+
`,Mi=`<h3 id="modal-popover-opened-by-button-click">Modal popover opened by button click</h3>
|
|
15
|
+
`,Ni={mainContent:Pi,description:Mi},Ti=Object.freeze(Object.defineProperty({__proto__:null,default:Ni},Symbol.toStringTag,{value:"Module"})),Li=`<!-- Load element with all dependencies directly -->
|
|
16
|
+
<script src="./popover-with-externals.js"><\/script>
|
|
17
|
+
|
|
18
|
+
<div>
|
|
19
|
+
<sd-popover no-arrow target-selector="#popover-trigger-area" placement="right-start" trigger-type="hover">
|
|
20
|
+
<div class="popover-content" style="padding: 8px">
|
|
21
|
+
<b>Look!</b>
|
|
22
|
+
<p>This is a tooltip-like popover which was opened by the hover event.</p>
|
|
23
|
+
</div>
|
|
24
|
+
</sd-popover>
|
|
25
|
+
<span id="popover-trigger-area" style="background: #0d98ff; color: white; padding: 16px; font-size: 20px"
|
|
26
|
+
>Hover to open the popover</span
|
|
27
|
+
>
|
|
28
|
+
</div>
|
|
29
|
+
`,ji=`<h3 id="tooltip-like-popover">Tooltip-like popover</h3>
|
|
30
|
+
`,$i={mainContent:Li,description:ji},Ii=Object.freeze(Object.defineProperty({__proto__:null,default:$i},Symbol.toStringTag,{value:"Module"})),Di="modulepreload",Bi=function(n,e){return new URL(n,e).href},Nr={},zi=function(e,t,r){let i=Promise.resolve();if(t&&t.length>0){const o=document.getElementsByTagName("link");i=Promise.all(t.map(s=>{if(s=Bi(s,r),s in Nr)return;Nr[s]=!0;const a=s.endsWith(".css"),l=a?'[rel="stylesheet"]':"";if(!!r)for(let p=o.length-1;p>=0;p--){const d=o[p];if(d.href===s&&(!a||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${l}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":Di,a||(u.as="script",u.crossOrigin=""),u.href=s,document.head.appendChild(u),a)return new Promise((p,d)=>{u.addEventListener("load",p),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${s}`)))})}))}return i.then(()=>e()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})},Ui=`<div id="popover-from-source-container" style="height: 150px"></div>
|
|
31
|
+
`,Fi=`<h3 id="create-and-access-popover-from-code">Create and access popover from code</h3>
|
|
32
|
+
`,Hi=`import "@cas-smartdesign/popover";
|
|
33
|
+
import Popover from "@cas-smartdesign/popover";
|
|
34
|
+
|
|
35
|
+
const container = document.querySelector("#popover-from-source-container");
|
|
36
|
+
const closeElement = document.createElement("a");
|
|
37
|
+
const button = document.createElement("button");
|
|
38
|
+
const content = document.createElement("div");
|
|
39
|
+
const popover = new Popover();
|
|
40
|
+
|
|
41
|
+
button.innerText = "Open popover";
|
|
42
|
+
button.addEventListener("click", () => popover.show());
|
|
43
|
+
|
|
44
|
+
closeElement.innerText = "Click here to close";
|
|
45
|
+
closeElement.href = "javascript:void(0)";
|
|
46
|
+
closeElement.style.display = "block";
|
|
47
|
+
closeElement.addEventListener("click", () => popover.hide());
|
|
48
|
+
|
|
49
|
+
content.innerText = "This is a popover which was created from code.";
|
|
50
|
+
content.style.padding = "8px";
|
|
51
|
+
content.appendChild(closeElement);
|
|
52
|
+
|
|
53
|
+
popover.targetElement = button;
|
|
54
|
+
popover.triggerType = "manual";
|
|
55
|
+
// Make the popover appear some pixels below the trigger element
|
|
56
|
+
popover.placement = "bottom";
|
|
57
|
+
popover.offset = 5;
|
|
58
|
+
popover.appendChild(content);
|
|
59
|
+
|
|
60
|
+
container.appendChild(button);
|
|
61
|
+
container.appendChild(popover);
|
|
62
|
+
`,Wi={mainContent:Ui,description:Fi,initializer:{content:Hi,type:"typescript",initialize:()=>zi(()=>import("./3_created_from_source.js"),__vite__mapDeps([]),import.meta.url)}},qi=Object.freeze(Object.defineProperty({__proto__:null,default:Wi},Symbol.toStringTag,{value:"Module"}));var J="top",ne="bottom",ie="right",Y="left",ur="auto",nt=[J,ne,ie,Y],Me="start",Xe="end",Gi="clippingParents",mn="viewport",Ue="popper",Vi="reference",Tr=nt.reduce(function(n,e){return n.concat([e+"-"+Me,e+"-"+Xe])},[]),bn=[].concat(nt,[ur]).reduce(function(n,e){return n.concat([e,e+"-"+Me,e+"-"+Xe])},[]),Zi="beforeRead",Xi="read",Ki="afterRead",Ji="beforeMain",Yi="main",Qi="afterMain",es="beforeWrite",ts="write",rs="afterWrite",ns=[Zi,Xi,Ki,Ji,Yi,Qi,es,ts,rs];function pe(n){return n?(n.nodeName||"").toLowerCase():null}function te(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function Oe(n){var e=te(n).Element;return n instanceof e||n instanceof Element}function re(n){var e=te(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function fr(n){if(typeof ShadowRoot>"u")return!1;var e=te(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function is(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];!re(o)||!pe(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function ss(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],o=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!re(i)||!pe(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const os={name:"applyStyles",enabled:!0,phase:"write",fn:is,effect:ss,requires:["computeStyles"]};function he(n){return n.split("-")[0]}var xe=Math.max,St=Math.min,Ne=Math.round;function Vt(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function vn(){return!/^((?!chrome|android).)*safari/i.test(Vt())}function Te(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=n.getBoundingClientRect(),i=1,o=1;e&&re(n)&&(i=n.offsetWidth>0&&Ne(r.width)/n.offsetWidth||1,o=n.offsetHeight>0&&Ne(r.height)/n.offsetHeight||1);var s=Oe(n)?te(n):window,a=s.visualViewport,l=!vn()&&t,c=(r.left+(l&&a?a.offsetLeft:0))/i,u=(r.top+(l&&a?a.offsetTop:0))/o,p=r.width/i,d=r.height/o;return{width:p,height:d,top:u,right:c+p,bottom:u+d,left:c,x:c,y:u}}function hr(n){var e=Te(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function yn(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&fr(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ge(n){return te(n).getComputedStyle(n)}function as(n){return["table","td","th"].indexOf(pe(n))>=0}function ve(n){return((Oe(n)?n.ownerDocument:n.document)||window.document).documentElement}function Nt(n){return pe(n)==="html"?n:n.assignedSlot||n.parentNode||(fr(n)?n.host:null)||ve(n)}function Lr(n){return!re(n)||ge(n).position==="fixed"?null:n.offsetParent}function ls(n){var e=/firefox/i.test(Vt()),t=/Trident/i.test(Vt());if(t&&re(n)){var r=ge(n);if(r.position==="fixed")return null}var i=Nt(n);for(fr(i)&&(i=i.host);re(i)&&["html","body"].indexOf(pe(i))<0;){var o=ge(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function it(n){for(var e=te(n),t=Lr(n);t&&as(t)&&ge(t).position==="static";)t=Lr(t);return t&&(pe(t)==="html"||pe(t)==="body"&&ge(t).position==="static")?e:t||ls(n)||e}function pr(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function qe(n,e,t){return xe(n,St(e,t))}function cs(n,e,t){var r=qe(n,e,t);return r>t?t:r}function wn(){return{top:0,right:0,bottom:0,left:0}}function xn(n){return Object.assign({},wn(),n)}function En(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}var us=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,xn(typeof e!="number"?e:En(e,nt))};function fs(n){var e,t=n.state,r=n.name,i=n.options,o=t.elements.arrow,s=t.modifiersData.popperOffsets,a=he(t.placement),l=pr(a),c=[Y,ie].indexOf(a)>=0,u=c?"height":"width";if(!(!o||!s)){var p=us(i.padding,t),d=hr(o),b=l==="y"?J:Y,x=l==="y"?ne:ie,O=t.rects.reference[u]+t.rects.reference[l]-s[l]-t.rects.popper[u],h=s[l]-t.rects.reference[l],_=it(o),P=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,M=O/2-h/2,y=p[b],S=P-d[u]-p[x],C=P/2-d[u]/2+M,N=qe(y,C,S),L=l;t.modifiersData[r]=(e={},e[L]=N,e.centerOffset=N-C,e)}}function hs(n){var e=n.state,t=n.options,r=t.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||yn(e.elements.popper,i)&&(e.elements.arrow=i))}const ps={name:"arrow",enabled:!0,phase:"main",fn:fs,effect:hs,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Le(n){return n.split("-")[1]}var ds={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gs(n,e){var t=n.x,r=n.y,i=e.devicePixelRatio||1;return{x:Ne(t*i)/i||0,y:Ne(r*i)/i||0}}function jr(n){var e,t=n.popper,r=n.popperRect,i=n.placement,o=n.variation,s=n.offsets,a=n.position,l=n.gpuAcceleration,c=n.adaptive,u=n.roundOffsets,p=n.isFixed,d=s.x,b=d===void 0?0:d,x=s.y,O=x===void 0?0:x,h=typeof u=="function"?u({x:b,y:O}):{x:b,y:O};b=h.x,O=h.y;var _=s.hasOwnProperty("x"),P=s.hasOwnProperty("y"),M=Y,y=J,S=window;if(c){var C=it(t),N="clientHeight",L="clientWidth";if(C===te(t)&&(C=ve(t),ge(C).position!=="static"&&a==="absolute"&&(N="scrollHeight",L="scrollWidth")),C=C,i===J||(i===Y||i===ie)&&o===Xe){y=ne;var R=p&&C===S&&S.visualViewport?S.visualViewport.height:C[N];O-=R-r.height,O*=l?1:-1}if(i===Y||(i===J||i===ne)&&o===Xe){M=ie;var I=p&&C===S&&S.visualViewport?S.visualViewport.width:C[L];b-=I-r.width,b*=l?1:-1}}var H=Object.assign({position:a},c&&ds),X=u===!0?gs({x:b,y:O},te(t)):{x:b,y:O};if(b=X.x,O=X.y,l){var W;return Object.assign({},H,(W={},W[y]=P?"0":"",W[M]=_?"0":"",W.transform=(S.devicePixelRatio||1)<=1?"translate("+b+"px, "+O+"px)":"translate3d("+b+"px, "+O+"px, 0)",W))}return Object.assign({},H,(e={},e[y]=P?O+"px":"",e[M]=_?b+"px":"",e.transform="",e))}function ms(n){var e=n.state,t=n.options,r=t.gpuAcceleration,i=r===void 0?!0:r,o=t.adaptive,s=o===void 0?!0:o,a=t.roundOffsets,l=a===void 0?!0:a,c={placement:he(e.placement),variation:Le(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,jr(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,jr(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const bs={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ms,data:{}};var ut={passive:!0};function vs(n){var e=n.state,t=n.instance,r=n.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,l=te(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",t.update,ut)}),a&&l.addEventListener("resize",t.update,ut),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",t.update,ut)}),a&&l.removeEventListener("resize",t.update,ut)}}const ys={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:vs,data:{}};var ws={left:"right",right:"left",bottom:"top",top:"bottom"};function Et(n){return n.replace(/left|right|bottom|top/g,function(e){return ws[e]})}var xs={start:"end",end:"start"};function $r(n){return n.replace(/start|end/g,function(e){return xs[e]})}function dr(n){var e=te(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function gr(n){return Te(ve(n)).left+dr(n).scrollLeft}function Es(n,e){var t=te(n),r=ve(n),i=t.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=vn();(c||!c&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+gr(n),y:l}}function Os(n){var e,t=ve(n),r=dr(n),i=(e=n.ownerDocument)==null?void 0:e.body,o=xe(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=xe(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+gr(n),l=-r.scrollTop;return ge(i||t).direction==="rtl"&&(a+=xe(t.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function mr(n){var e=ge(n),t=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+i+r)}function On(n){return["html","body","#document"].indexOf(pe(n))>=0?n.ownerDocument.body:re(n)&&mr(n)?n:On(Nt(n))}function Ge(n,e){var t;e===void 0&&(e=[]);var r=On(n),i=r===((t=n.ownerDocument)==null?void 0:t.body),o=te(r),s=i?[o].concat(o.visualViewport||[],mr(r)?r:[]):r,a=e.concat(s);return i?a:a.concat(Ge(Nt(s)))}function Zt(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function As(n,e){var t=Te(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function Ir(n,e,t){return e===mn?Zt(Es(n,t)):Oe(e)?As(e,t):Zt(Os(ve(n)))}function Ss(n){var e=Ge(Nt(n)),t=["absolute","fixed"].indexOf(ge(n).position)>=0,r=t&&re(n)?it(n):n;return Oe(r)?e.filter(function(i){return Oe(i)&&yn(i,r)&&pe(i)!=="body"}):[]}function _s(n,e,t,r){var i=e==="clippingParents"?Ss(n):[].concat(e),o=[].concat(i,[t]),s=o[0],a=o.reduce(function(l,c){var u=Ir(n,c,r);return l.top=xe(u.top,l.top),l.right=St(u.right,l.right),l.bottom=St(u.bottom,l.bottom),l.left=xe(u.left,l.left),l},Ir(n,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function An(n){var e=n.reference,t=n.element,r=n.placement,i=r?he(r):null,o=r?Le(r):null,s=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,l;switch(i){case J:l={x:s,y:e.y-t.height};break;case ne:l={x:s,y:e.y+e.height};break;case ie:l={x:e.x+e.width,y:a};break;case Y:l={x:e.x-t.width,y:a};break;default:l={x:e.x,y:e.y}}var c=i?pr(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case Me:l[c]=l[c]-(e[u]/2-t[u]/2);break;case Xe:l[c]=l[c]+(e[u]/2-t[u]/2);break}}return l}function Ke(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=r===void 0?n.placement:r,o=t.strategy,s=o===void 0?n.strategy:o,a=t.boundary,l=a===void 0?Gi:a,c=t.rootBoundary,u=c===void 0?mn:c,p=t.elementContext,d=p===void 0?Ue:p,b=t.altBoundary,x=b===void 0?!1:b,O=t.padding,h=O===void 0?0:O,_=xn(typeof h!="number"?h:En(h,nt)),P=d===Ue?Vi:Ue,M=n.rects.popper,y=n.elements[x?P:d],S=_s(Oe(y)?y:y.contextElement||ve(n.elements.popper),l,u,s),C=Te(n.elements.reference),N=An({reference:C,element:M,strategy:"absolute",placement:i}),L=Zt(Object.assign({},M,N)),R=d===Ue?L:C,I={top:S.top-R.top+_.top,bottom:R.bottom-S.bottom+_.bottom,left:S.left-R.left+_.left,right:R.right-S.right+_.right},H=n.modifiersData.offset;if(d===Ue&&H){var X=H[i];Object.keys(I).forEach(function(W){var se=[ie,ne].indexOf(W)>=0?1:-1,K=[J,ne].indexOf(W)>=0?"y":"x";I[W]+=X[K]*se})}return I}function ks(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=t.boundary,o=t.rootBoundary,s=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,c=l===void 0?bn:l,u=Le(r),p=u?a?Tr:Tr.filter(function(x){return Le(x)===u}):nt,d=p.filter(function(x){return c.indexOf(x)>=0});d.length===0&&(d=p);var b=d.reduce(function(x,O){return x[O]=Ke(n,{placement:O,boundary:i,rootBoundary:o,padding:s})[he(O)],x},{});return Object.keys(b).sort(function(x,O){return b[x]-b[O]})}function Cs(n){if(he(n)===ur)return[];var e=Et(n);return[$r(n),e,$r(e)]}function Rs(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var i=t.mainAxis,o=i===void 0?!0:i,s=t.altAxis,a=s===void 0?!0:s,l=t.fallbackPlacements,c=t.padding,u=t.boundary,p=t.rootBoundary,d=t.altBoundary,b=t.flipVariations,x=b===void 0?!0:b,O=t.allowedAutoPlacements,h=e.options.placement,_=he(h),P=_===h,M=l||(P||!x?[Et(h)]:Cs(h)),y=[h].concat(M).reduce(function(oe,U){return oe.concat(he(U)===ur?ks(e,{placement:U,boundary:u,rootBoundary:p,padding:c,flipVariations:x,allowedAutoPlacements:O}):U)},[]),S=e.rects.reference,C=e.rects.popper,N=new Map,L=!0,R=y[0],I=0;I<y.length;I++){var H=y[I],X=he(H),W=Le(H)===Me,se=[J,ne].indexOf(X)>=0,K=se?"width":"height",G=Ke(e,{placement:H,boundary:u,rootBoundary:p,altBoundary:d,padding:c}),f=se?W?ie:Y:W?ne:J;S[K]>C[K]&&(f=Et(f));var m=Et(f),w=[];if(o&&w.push(G[X]<=0),a&&w.push(G[f]<=0,G[m]<=0),w.every(function(oe){return oe})){R=H,L=!1;break}N.set(H,w)}if(L)for(var k=x?3:1,D=function(U){var V=y.find(function(ye){var ce=N.get(ye);if(ce)return ce.slice(0,U).every(function(_e){return _e})});if(V)return R=V,"break"},q=k;q>0;q--){var Q=D(q);if(Q==="break")break}e.placement!==R&&(e.modifiersData[r]._skip=!0,e.placement=R,e.reset=!0)}}const Ps={name:"flip",enabled:!0,phase:"main",fn:Rs,requiresIfExists:["offset"],data:{_skip:!1}};function Dr(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function Br(n){return[J,ie,ne,Y].some(function(e){return n[e]>=0})}function Ms(n){var e=n.state,t=n.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,s=Ke(e,{elementContext:"reference"}),a=Ke(e,{altBoundary:!0}),l=Dr(s,r),c=Dr(a,i,o),u=Br(l),p=Br(c);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}const Ns={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ms};function Ts(n,e,t){var r=he(n),i=[Y,J].indexOf(r)>=0?-1:1,o=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[Y,ie].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function Ls(n){var e=n.state,t=n.options,r=n.name,i=t.offset,o=i===void 0?[0,0]:i,s=bn.reduce(function(u,p){return u[p]=Ts(p,e.rects,o),u},{}),a=s[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=s}const js={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ls};function $s(n){var e=n.state,t=n.name;e.modifiersData[t]=An({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Is={name:"popperOffsets",enabled:!0,phase:"read",fn:$s,data:{}};function Ds(n){return n==="x"?"y":"x"}function Bs(n){var e=n.state,t=n.options,r=n.name,i=t.mainAxis,o=i===void 0?!0:i,s=t.altAxis,a=s===void 0?!1:s,l=t.boundary,c=t.rootBoundary,u=t.altBoundary,p=t.padding,d=t.tether,b=d===void 0?!0:d,x=t.tetherOffset,O=x===void 0?0:x,h=Ke(e,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),_=he(e.placement),P=Le(e.placement),M=!P,y=pr(_),S=Ds(y),C=e.modifiersData.popperOffsets,N=e.rects.reference,L=e.rects.popper,R=typeof O=="function"?O(Object.assign({},e.rects,{placement:e.placement})):O,I=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,X={x:0,y:0};if(C){if(o){var W,se=y==="y"?J:Y,K=y==="y"?ne:ie,G=y==="y"?"height":"width",f=C[y],m=f+h[se],w=f-h[K],k=b?-L[G]/2:0,D=P===Me?N[G]:L[G],q=P===Me?-L[G]:-N[G],Q=e.elements.arrow,oe=b&&Q?hr(Q):{width:0,height:0},U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:wn(),V=U[se],ye=U[K],ce=qe(0,N[G],oe[G]),_e=M?N[G]/2-k-ce-V-I.mainAxis:D-ce-V-I.mainAxis,zt=M?-N[G]/2+k+ce+ye+I.mainAxis:q+ce+ye+I.mainAxis,Be=e.elements.arrow&&it(e.elements.arrow),Ut=Be?y==="y"?Be.clientTop||0:Be.clientLeft||0:0,at=(W=H==null?void 0:H[y])!=null?W:0,ke=f+_e-at-Ut,lt=f+zt-at,ee=qe(b?St(m,ke):m,f,b?xe(w,lt):w);C[y]=ee,X[y]=ee-f}if(a){var ct,ze=y==="x"?J:Y,E=y==="x"?ne:ie,ue=C[S],F=S==="y"?"height":"width",j=ue+h[ze],we=ue-h[E],ae=[J,Y].indexOf(_)!==-1,Ce=(ct=H==null?void 0:H[S])!=null?ct:0,Re=ae?j:ue-N[F]-L[F]-Ce+I.altAxis,g=ae?ue+N[F]+L[F]-Ce-I.altAxis:we,v=b&&ae?cs(Re,ue,g):qe(b?Re:j,ue,b?g:we);C[S]=v,X[S]=v-ue}e.modifiersData[r]=X}}const zs={name:"preventOverflow",enabled:!0,phase:"main",fn:Bs,requiresIfExists:["offset"]};function Us(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function Fs(n){return n===te(n)||!re(n)?dr(n):Us(n)}function Hs(n){var e=n.getBoundingClientRect(),t=Ne(e.width)/n.offsetWidth||1,r=Ne(e.height)/n.offsetHeight||1;return t!==1||r!==1}function Ws(n,e,t){t===void 0&&(t=!1);var r=re(e),i=re(e)&&Hs(e),o=ve(e),s=Te(n,i,t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!t)&&((pe(e)!=="body"||mr(o))&&(a=Fs(e)),re(e)?(l=Te(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=gr(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function qs(n){var e=new Map,t=new Set,r=[];n.forEach(function(o){e.set(o.name,o)});function i(o){t.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!t.has(a)){var l=e.get(a);l&&i(l)}}),r.push(o)}return n.forEach(function(o){t.has(o.name)||i(o)}),r}function Gs(n){var e=qs(n);return ns.reduce(function(t,r){return t.concat(e.filter(function(i){return i.phase===r}))},[])}function Vs(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function Zs(n){var e=n.reduce(function(t,r){var i=t[r.name];return t[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var zr={placement:"bottom",modifiers:[],strategy:"absolute"};function Ur(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Xs(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,r=t===void 0?[]:t,i=e.defaultOptions,o=i===void 0?zr:i;return function(a,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},zr,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},p=[],d=!1,b={state:u,setOptions:function(_){var P=typeof _=="function"?_(u.options):_;O(),u.options=Object.assign({},o,u.options,P),u.scrollParents={reference:Oe(a)?Ge(a):a.contextElement?Ge(a.contextElement):[],popper:Ge(l)};var M=Gs(Zs([].concat(r,u.options.modifiers)));return u.orderedModifiers=M.filter(function(y){return y.enabled}),x(),b.update()},forceUpdate:function(){if(!d){var _=u.elements,P=_.reference,M=_.popper;if(Ur(P,M)){u.rects={reference:Ws(P,it(M),u.options.strategy==="fixed"),popper:hr(M)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(I){return u.modifiersData[I.name]=Object.assign({},I.data)});for(var y=0;y<u.orderedModifiers.length;y++){if(u.reset===!0){u.reset=!1,y=-1;continue}var S=u.orderedModifiers[y],C=S.fn,N=S.options,L=N===void 0?{}:N,R=S.name;typeof C=="function"&&(u=C({state:u,options:L,name:R,instance:b})||u)}}}},update:Vs(function(){return new Promise(function(h){b.forceUpdate(),h(u)})}),destroy:function(){O(),d=!0}};if(!Ur(a,l))return b;b.setOptions(c).then(function(h){!d&&c.onFirstUpdate&&c.onFirstUpdate(h)});function x(){u.orderedModifiers.forEach(function(h){var _=h.name,P=h.options,M=P===void 0?{}:P,y=h.effect;if(typeof y=="function"){var S=y({state:u,name:_,instance:b,options:M}),C=function(){};p.push(S||C)}})}function O(){p.forEach(function(h){return h()}),p=[]}return b}}var Ks=[ys,Is,bs,os,js,Ps,zs,ps,Ns],Js=Xs({defaultModifiers:Ks});const Ys=`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="12" viewBox="0 0 24 12">\r
|
|
63
|
+
<path d="M0 0l11.96 12L24 0z" fill="#999" class="arrow-border"/>\r
|
|
64
|
+
<path d="M12 11L1 0h22z" fill="#f2f2f2" class="arrow-background"/>\r
|
|
65
|
+
</svg>\r
|
|
66
|
+
`,Qs=navigator.userAgent.indexOf("Trident")!==-1,Fr=1,Hr="sd-popover-open",Mr=class Mr extends HTMLElement{constructor(){super(...arguments),this._open=!1,this._firstUpdated=!1,this.toggle=()=>{this.open=!this.open},this.show=()=>{this.open=!0},this.hide=()=>{this.open=!1},this.hideIfExternalTarget=e=>{const t=e.target;(!(t instanceof HTMLElement)||!this._container.contains(t)&&!this.targetElement.contains(t))&&this.hide()}}get triggerType(){return this.getAttribute("trigger-type")}set triggerType(e){e?this.setAttribute("trigger-type",e):this.removeAttribute("trigger-type")}get placement(){return this.getAttribute("placement")}set placement(e){e?this.setAttribute("placement",e):this.removeAttribute("placement")}get targetElement(){return this._targetElement}set targetElement(e){this.removeTargetEventListener(this.targetElement),this._targetElement&&this._targetElement.getAttribute("aria-expanded")=="true"&&this._targetElement.setAttribute("aria-expanded","false"),this._targetElement=e,e.setAttribute("aria-expanded","false"),this.addTargetEventListener(this.targetElement),this.updatePopper()}get targetSelector(){return this.getAttribute("target-selector")}set targetSelector(e){e?this.setAttribute("target-selector",e):this.removeAttribute("target-selector")}get modal(){return this.hasAttribute("modal")}set modal(e){e?this.setAttribute("modal",""):this.removeAttribute("modal")}get popoverFor(){return this.getAttribute("popover-for")}set popoverFor(e){e?this.setAttribute("popover-for",e):this.removeAttribute("popover-for")}get flipPriority(){return this._flipPriority}set flipPriority(e){e&&e.length>0?this._flipPriority=e:this._flipPriority=null,this.reConfigurePopper()}get offset(){return this.getAttribute("offset")?parseInt(this.getAttribute("offset")):0}set offset(e){e?this.setAttribute("offset",e.toString()):this.removeAttribute("offset"),this.reConfigurePopper()}reConfigurePopper(){this._popper&&this.configurePopper()}get noArrow(){return this.hasAttribute("no-arrow")}set noArrow(e){e?this.setAttribute("no-arrow",""):this.removeAttribute("no-arrow")}static get observedAttributes(){return["placement","target-selector","trigger-type"]}attributeChangedCallback(e,t){switch(e){case"placement":{this.updatePopper();break}case"trigger-type":{this.removeTargetEventListener(this.targetElement),this.addTargetEventListener(this.targetElement);break}case"target-selector":{this.handleTargetSelectorChange(t);break}}}connectedCallback(){this._firstUpdated||(this.firstUpdated(),this._firstUpdated=!0),this.targetElement?this.addTargetEventListener(this.targetElement):this.targetSelector&&requestAnimationFrame(()=>{this.isConnected&&this.handleTargetSelectorChange(null)}),this._arrow=document.createElement("div"),this._arrow.classList.add("popover-arrow"),this._arrow.setAttribute("data-popper-arrow",""),this._arrow.style.display="flex",this._arrow.innerHTML=Ys}disconnectedCallback(){this.targetElement&&(this.removeTargetEventListener(this.targetElement),this.removeTargetClassForOpen(this.targetElement)),this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)}firstUpdated(){this.style.display="none",this.triggerType=this.triggerType||"click",this.placement=this.placement||"auto"}get open(){return this._open}set open(e){e!==this._open&&(this._open=e,this.handleOpenChange())}handleOpenChange(){this.open?(this._popper||this.configurePopper(),this._container.innerHTML="",this.popoverFor&&this._container.setAttribute("popover-for",this.popoverFor),this.content&&(this._container.prepend(this.content),Object.assign(this.content.style,{position:"relative",display:"block",zIndex:1}),window.requestAnimationFrame(()=>{let e=getComputedStyle(this.content).backgroundColor;e=="rgba(0, 0, 0, 0)"&&(this.content.style.background=e="#f2f2f2"),this._arrow.querySelector(".arrow-background").style.fill=e})),this.ensureArrowIsAdded(),this.ownerDocument.body.appendChild(this._container),this.updatePopper(),this.setAttribute("open",""),this.modal&&(window.addEventListener("click",this.hideIfExternalTarget,{capture:!0}),window.addEventListener("focus",this.hideIfExternalTarget,{capture:!0})),this.targetElement&&(this.addTargetClassForOpen(this.targetElement),this.targetElement.setAttribute("aria-expanded","true")),this.dispatchEvent(new CustomEvent("open"))):(this.ownerDocument.body.removeChild(this._container),this.removeAttribute("open"),window.removeEventListener("click",this.hideIfExternalTarget,{capture:!0}),window.removeEventListener("focus",this.hideIfExternalTarget,{capture:!0}),this.targetElement&&(this.removeTargetClassForOpen(this.targetElement),this.targetElement.setAttribute("aria-expanded","false")),this.dispatchEvent(new CustomEvent("close")))}handleTargetSelectorChange(e){const t=document.querySelector(e);t&&(this.removeTargetEventListener(t),this.removeTargetClassForOpen(t)),this.targetSelector&&(this.targetElement=document.querySelector(this.targetSelector),this.addTargetEventListener(this.targetElement))}addTargetEventListener(e){if(e)switch(this.triggerType){case"hover":{e.addEventListener("mouseenter",this.show),e.addEventListener("mouseleave",this.hide);break}case"click":{e.addEventListener("click",this.toggle);break}}}removeTargetEventListener(e){if(e)switch(this.triggerType){case"hover":{e.removeEventListener("mouseenter",this.show),e.removeEventListener("mouseleave",this.hide);break}case"click":{e.removeEventListener("click",this.toggle);break}}}configurePopper(){this.createContentContainer(),this.ensureArrowIsAdded();const e=this,t={placement:e.placement,strategy:"absolute",modifiers:[{name:"computeStyles",options:{gpuAcceleration:!Qs}},{name:"flip",options:{fallbackPlacements:e._flipPriority}},{name:"offset",options:{offset:()=>[0,e.noArrow?0+e.offset:this._arrow.clientHeight+e.offset]}},{name:"arrow",options:{padding:6}},{name:"resetArrowStyles",enabled:!0,phase:"beforeWrite",fn({state:r}){Object.assign(e._arrow.style,{top:r.styles.arrow.top||"",left:r.styles.arrow.left||"",bottom:r.styles.arrow.bottom||"",right:r.styles.arrow.right||""})}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn({state:r}){e.updateArrow(r.placement)}}]};this._popper=Js(this.targetElement,this._container,t)}createContentContainer(){this._container=document.createElement("div"),this._container.classList.add("popover-container"),this._container.tabIndex=0,this._resizeObserver&&this._resizeObserver.disconnect(),this._resizeObserver=new ResizeObserver(()=>{this._popper&&this._popper.update()}),this._resizeObserver.observe(this._container),Object.assign(this._container.style,{boxShadow:`0 4px 5px 0 rgba(0, 0, 0, 0.14),
|
|
67
|
+
0 1px 10px 0 rgba(0, 0, 0, 0.12),
|
|
68
|
+
0 2px 4px -1px rgba(0, 0, 0, 0.4)`,border:"1px solid #999",boxSizing:"border-box",zIndex:2e4})}ensureArrowIsAdded(){!this.noArrow&&!this._container.contains(this._arrow)&&this._container.appendChild(this._arrow)}updatePopper(){this._popper&&(this._popper.state.elements.reference=this.targetElement,this._popper.state.options.placement=this.placement,this.open&&this._popper.update())}updateArrow(e){if(this._arrow){const t=this.getArrowVariant(e);if(this._arrow.setAttribute("variant",t),this._content){const r=this._arrow.querySelector("svg"),i=this._arrow.clientWidth,o=this._arrow.clientHeight,s=`-${o-Fr}px`,a=(i-o)/2,l=`-${o+a-Fr}px`;switch(t){case"bottom":{this._arrow.style.top=s,r.style.transform="rotate(180deg)";break}case"top":{this._arrow.style.bottom=s,r.style.transform="rotate(0deg)";break}case"left":{this._arrow.style.right=l,r.style.transform="rotate(270deg)";break}case"right":{this._arrow.style.left=l,r.style.transform="rotate(90deg)";break}}}}}getArrowVariant(e){if(e.indexOf("bottom")!==-1)return"bottom";if(e.indexOf("top")!==-1)return"top";if(e.indexOf("left")!==-1)return"left";if(e.indexOf("right")!==-1)return"right"}get content(){return this._content||(this._content=this.firstElementChild,this._content.setAttribute("data-popper-content","")),this._content}addTargetClassForOpen(e){e&&e.classList.add(Hr)}removeTargetClassForOpen(e){e&&e.classList.remove(Hr)}};Mr.ID="sd-popover";let Ve=Mr;customElements.get(Ve.ID)||customElements.define(Ve.ID,Ve);function Sn(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function eo(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}),t}var br={exports:{}},B=String,_n=function(){return{isColorSupported:!1,reset:B,bold:B,dim:B,italic:B,underline:B,inverse:B,hidden:B,strikethrough:B,black:B,red:B,green:B,yellow:B,blue:B,magenta:B,cyan:B,white:B,gray:B,bgBlack:B,bgRed:B,bgGreen:B,bgYellow:B,bgBlue:B,bgMagenta:B,bgCyan:B,bgWhite:B}};br.exports=_n();br.exports.createColors=_n;var to=br.exports;const ro={},no=Object.freeze(Object.defineProperty({__proto__:null,default:ro},Symbol.toStringTag,{value:"Module"})),le=eo(no);let Wr=to,qr=le,Xt=class kn extends Error{constructor(e,t,r,i,o,s){super(e),this.name="CssSyntaxError",this.reason=e,o&&(this.file=o),i&&(this.source=i),s&&(this.plugin=s),typeof t<"u"&&typeof r<"u"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,kn)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Wr.isColorSupported),qr&&e&&(t=qr(t));let r=t.split(/\r?\n/),i=Math.max(this.line-3,0),o=Math.min(this.line+2,r.length),s=String(o).length,a,l;if(e){let{bold:c,gray:u,red:p}=Wr.createColors(!0);a=d=>c(p(d)),l=d=>u(d)}else a=l=c=>c;return r.slice(i,o).map((c,u)=>{let p=i+1+u,d=" "+(" "+p).slice(-s)+" | ";if(p===this.line){let b=l(d.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+l(d)+c+`
|
|
69
|
+
`+b+a("^")}return" "+l(d)+c}).join(`
|
|
70
|
+
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
71
|
+
|
|
72
|
+
`+e+`
|
|
73
|
+
`),this.name+": "+this.message+e}};var vr=Xt;Xt.default=Xt;var st={};st.isClean=Symbol("isClean");st.my=Symbol("my");const Gr={after:`
|
|
74
|
+
`,beforeClose:`
|
|
75
|
+
`,beforeComment:`
|
|
76
|
+
`,beforeDecl:`
|
|
77
|
+
`,beforeOpen:" ",beforeRule:`
|
|
78
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function io(n){return n[0].toUpperCase()+n.slice(1)}let Kt=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:i&&(r+=" "),e.nodes)this.block(e,r+i);else{let o=(e.raws.between||"")+(t?";":"");this.builder(r+i+o,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let i=e.parent,o=0;for(;i&&i.type!=="root";)o+=1,i=i.parent;if(r.includes(`
|
|
79
|
+
`)){let s=this.raw(e,null,"indent");if(s.length)for(let a=0;a<o;a++)r+=s}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let o=e.nodes[i],s=this.raw(o,"before");s&&this.builder(s),this.stringify(o,t!==i||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),i=e.prop+r+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,t,r){let i;if(r||(r=t),t&&(i=e.raws[t],typeof i<"u"))return i;let o=e.parent;if(r==="before"&&(!o||o.type==="root"&&o.first===e||o&&o.type==="document"))return"";if(!o)return Gr[r];let s=e.root();if(s.rawCache||(s.rawCache={}),typeof s.rawCache[r]<"u")return s.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let a="raw"+io(r);this[a]?i=this[a](s,e):s.walk(l=>{if(i=l.raws[t],typeof i<"u")return!1})}return typeof i>"u"&&(i=Gr[r]),s.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return t=r.raws.after,t.includes(`
|
|
80
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(i=>{if(typeof i.raws.before<"u")return r=i.raws.before,r.includes(`
|
|
81
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(i=>{if(typeof i.raws.before<"u")return r=i.raws.before,r.includes(`
|
|
82
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return t=r.raws.before,t.includes(`
|
|
83
|
+
`)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let i=r.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof r.raws.before<"u"){let o=r.raws.before.split(`
|
|
84
|
+
`);return t=o[o.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let r=e[t],i=e.raws[t];return i&&i.value===r?i.raw:r}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,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Cn=Kt;Kt.default=Kt;let so=Cn;function Jt(n,e){new so(e).stringify(n)}var Tt=Jt;Jt.default=Jt;let{isClean:ft,my:oo}=st,ao=vr,lo=Cn,co=Tt;function Yt(n,e){let t=new n.constructor;for(let r in n){if(!Object.prototype.hasOwnProperty.call(n,r)||r==="proxyCache")continue;let i=n[r],o=typeof i;r==="parent"&&o==="object"?e&&(t[r]=e):r==="source"?t[r]=i:Array.isArray(i)?t[r]=i.map(s=>Yt(s,t)):(o==="object"&&i!==null&&(i=Yt(i)),t[r]=i)}return t}let Qt=class{constructor(e={}){this.raws={},this[ft]=!1,this[oo]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Yt(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new ao(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[ft]){this[ft]=!1;let e=this;for(;e=e.parent;)e[ft]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index)r=this.positionInside(e.index,t);else if(e.word){t=this.toString();let i=t.indexOf(e.word);i!==-1&&(r=this.positionInside(i,t))}return r}positionInside(e,t){let r=t||this.toString(),i=this.source.start.column,o=this.source.start.line;for(let s=0;s<e;s++)r[s]===`
|
|
85
|
+
`?(i=1,o+=1):i+=1;return{column:i,line:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let i=this.toString(),o=i.indexOf(e.word);o!==-1&&(t=this.positionInside(o,i),r=this.positionInside(o+e.word.length,i))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:e.endIndex?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<t.line||r.line===t.line&&r.column<=t.column)&&(r={column:t.column+1,line:t.line}),{end:r,start:t}}raw(e,t){return new lo().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},i=t==null;t=t||new Map;let o=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let a=this[s];if(Array.isArray(a))r[s]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof a=="object"&&a.toJSON)r[s]=a.toJSON(null,t);else if(s==="source"){let l=t.get(a.input);l==null&&(l=o,t.set(a.input,o),o++),r[s]={end:a.end,inputId:l,start:a.start}}else r[s]=a}return i&&(r.inputs=[...t.keys()].map(s=>s.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=co){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r){let i={node:this};for(let o in r)i[o]=r[o];return e.warn(t,i)}get proxyOf(){return this}};var Lt=Qt;Qt.default=Qt;let uo=Lt,er=class extends uo{constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}};var jt=er;er.default=er;let fo="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",ho=(n,e=21)=>(t=e)=>{let r="",i=t;for(;i--;)r+=n[Math.random()*n.length|0];return r},po=(n=21)=>{let e="",t=n;for(;t--;)e+=fo[Math.random()*64|0];return e};var go={nanoid:po,customAlphabet:ho};let{SourceMapConsumer:Vr,SourceMapGenerator:Zr}=le,{existsSync:mo,readFileSync:bo}=le,{dirname:Ft,join:vo}=le;function yo(n){return Buffer?Buffer.from(n,"base64").toString():window.atob(n)}let tr=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Ft(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new Vr(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/;if(i.test(e)||o.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||r.test(e))return yo(e.substr(RegExp.lastMatch.length));let s=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+s)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e){if(this.root=Ft(e),mo(e))return this.mapFile=e,bo(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(t instanceof Vr)return Zr.fromSourceMap(t).toString();if(t instanceof Zr)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=vo(Ft(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Rn=tr;tr.default=tr;let{SourceMapConsumer:wo,SourceMapGenerator:xo}=le,{fileURLToPath:Xr,pathToFileURL:ht}=le,{isAbsolute:rr,resolve:nr}=le,{nanoid:Eo}=go,Ht=le,Kr=vr,Oo=Rn,Wt=Symbol("fromOffsetCache"),Ao=!!(wo&&xo),Jr=!!(nr&&rr),_t=class{constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(!Jr||/^\w+:\/\//.test(t.from)||rr(t.from)?this.file=t.from:this.file=nr(t.from)),Jr&&Ao){let r=new Oo(this.css,t);if(r.text){this.map=r;let i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+Eo(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,i={}){let o,s,a;if(t&&typeof t=="object"){let c=t,u=r;if(typeof c.offset=="number"){let p=this.fromOffset(c.offset);t=p.line,r=p.col}else t=c.line,r=c.column;if(typeof u.offset=="number"){let p=this.fromOffset(u.offset);s=p.line,a=p.col}else s=u.line,a=u.column}else if(!r){let c=this.fromOffset(t);t=c.line,r=c.col}let l=this.origin(t,r,s,a);return l?o=new Kr(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,i.plugin):o=new Kr(e,s===void 0?t:{column:r,line:t},s===void 0?r:{column:a,line:s},this.css,this.file,i.plugin),o.input={column:r,endColumn:a,endLine:s,line:t,source:this.css},this.file&&(ht&&(o.input.url=ht(this.file).toString()),o.input.file=this.file),o}fromOffset(e){let t,r;if(this[Wt])r=this[Wt];else{let o=this.css.split(`
|
|
86
|
+
`);r=new Array(o.length);let s=0;for(let a=0,l=o.length;a<l;a++)r[a]=s,s+=o[a].length+1;this[Wt]=r}t=r[r.length-1];let i=0;if(e>=t)i=r.length-1;else{let o=r.length-2,s;for(;i<o;)if(s=i+(o-i>>1),e<r[s])o=s-1;else if(e>=r[s+1])i=s+1;else{i=s;break}}return{col:e-r[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:nr(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){if(!this.map)return!1;let o=this.map.consumer(),s=o.originalPositionFor({column:t,line:e});if(!s.source)return!1;let a;typeof r=="number"&&(a=o.originalPositionFor({column:i,line:r}));let l;rr(s.source)?l=ht(s.source):l=new URL(s.source,this.map.consumer().sourceRoot||ht(this.map.mapFile));let c={column:s.column,endColumn:a&&a.column,endLine:a&&a.line,line:s.line,url:l.toString()};if(l.protocol==="file:")if(Xr)c.file=Xr(l);else throw new Error("file: protocol is not available in this PostCSS build");let u=o.sourceContentFor(s.source);return u&&(c.source=u),c}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}};var $t=_t;_t.default=_t;Ht&&Ht.registerInput&&Ht.registerInput(_t);let{SourceMapConsumer:Pn,SourceMapGenerator:Ot}=le,{dirname:At,relative:Mn,resolve:Nn,sep:Tn}=le,{pathToFileURL:Yr}=le,So=$t,_o=!!(Pn&&Ot),ko=!!(At&&Nn&&Mn&&Tn),Co=class{constructor(e,t,r,i){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
|
|
87
|
+
`;this.css.includes(`\r
|
|
88
|
+
`)&&(t=`\r
|
|
89
|
+
`),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||At(e.file),i;this.mapOpts.sourcesContent===!1?(i=new Pn(e.text),i.sourcesContent&&(i.sourcesContent=i.sourcesContent.map(()=>null))):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),ko&&_o&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Ot.fromSourceMap(e)}else this.map=new Ot({file:this.outputFile()}),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 Ot({file:this.outputFile()});let e=1,t=1,r="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},o,s;this.stringify(this.root,(a,l,c)=>{if(this.css+=a,l&&c!=="end"&&(i.generated.line=e,i.generated.column=t-1,l.source&&l.source.start?(i.source=this.sourcePath(l),i.original.line=l.source.start.line,i.original.column=l.source.start.column-1,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,this.map.addMapping(i))),o=a.match(/\n/g),o?(e+=o.length,s=a.lastIndexOf(`
|
|
90
|
+
`),t=a.length-s):t+=a.length,l&&c!=="start"){let u=l.parent||{raws:{}};(!(l.type==="decl"||l.type==="atrule"&&!l.nodes)||l!==u.last||u.raws.semicolon)&&(l.source&&l.source.end?(i.source=this.sourcePath(l),i.original.line=l.source.end.line,i.original.column=l.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?At(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=At(Nn(r,this.mapOpts.annotation)));let i=Mn(r,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new So(this.css,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.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(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Yr){let r=Yr(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Tn==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var Ln=Co;let Ro=Lt,ir=class extends Ro{constructor(e){super(e),this.type="comment"}};var It=ir;ir.default=ir;let{isClean:jn,my:$n}=st,In=jt,Dn=It,Po=Lt,Bn,yr,wr,zn;function Un(n){return n.map(e=>(e.nodes&&(e.nodes=Un(e.nodes)),delete e.source,e))}function Fn(n){if(n[jn]=!1,n.proxyOf.nodes)for(let e of n.proxyOf.nodes)Fn(e)}let me=class Hn extends Po{append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let i of r)this.proxyOf.nodes.push(i)}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=this.getIterator(),r,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],i=e(this.proxyOf.nodes[r],r),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}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){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(i=>typeof i=="function"?(o,s)=>i(o.toProxy(),s):i)):t==="every"||t==="some"?r=>e[t]((i,...o)=>r(i.toProxy(),...o)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let s of i)this.proxyOf.nodes.splice(r+1,0,s);let o;for(let s in this.indexes)o=this.indexes[s],r<o&&(this.indexes[s]=o+i.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),i=r===0?"prepend":!1,o=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let a of o)this.proxyOf.nodes.splice(r,0,a);let s;for(let a in this.indexes)s=this.indexes[a],r<=s&&(this.indexes[a]=s+o.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Un(Bn(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new In(e)]}else if(e.selector)e=[new yr(e)];else if(e.name)e=[new wr(e)];else if(e.text)e=[new Dn(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[$n]||Hn.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[jn]&&Fn(i),typeof i.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let i of r)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+r.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){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;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(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(o){throw t.addToError(o)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if(r.type==="atrule"&&r.name===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="atrule")return t(r,i)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if(r.type==="decl"&&r.prop===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="decl")return t(r,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if(r.type==="rule"&&r.selector===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="rule")return t(r,i)}))}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]}};me.registerParse=n=>{Bn=n};me.registerRule=n=>{yr=n};me.registerAtRule=n=>{wr=n};me.registerRoot=n=>{zn=n};var Ae=me;me.default=me;me.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,wr.prototype):n.type==="rule"?Object.setPrototypeOf(n,yr.prototype):n.type==="decl"?Object.setPrototypeOf(n,In.prototype):n.type==="comment"?Object.setPrototypeOf(n,Dn.prototype):n.type==="root"&&Object.setPrototypeOf(n,zn.prototype),n[$n]=!0,n.nodes&&n.nodes.forEach(e=>{me.rebuild(e)})};let Mo=Ae,Wn,qn,Je=class extends Mo{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Wn(new qn,this,e).stringify()}};Je.registerLazyResult=n=>{Wn=n};Je.registerProcessor=n=>{qn=n};var xr=Je;Je.default=Je;let sr=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}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}};var Gn=sr;sr.default=sr;let No=Gn,or=class{constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new No(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var Er=or;or.default=or;const qt=39,Qr=34,pt=92,en=47,dt=10,Fe=32,gt=12,mt=9,bt=13,To=91,Lo=93,jo=40,$o=41,Io=123,Do=125,Bo=59,zo=42,Uo=58,Fo=64,vt=/[\t\n\f\r "#'()/;[\\\]{}]/g,yt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ho=/.[\r\n"'(/\\]/,tn=/[\da-f]/i;var Wo=function(e,t={}){let r=e.css.valueOf(),i=t.ignoreErrors,o,s,a,l,c,u,p,d,b,x,O=r.length,h=0,_=[],P=[];function M(){return h}function y(L){throw e.error("Unclosed "+L,h)}function S(){return P.length===0&&h>=O}function C(L){if(P.length)return P.pop();if(h>=O)return;let R=L?L.ignoreUnclosed:!1;switch(o=r.charCodeAt(h),o){case dt:case Fe:case mt:case bt:case gt:{s=h;do s+=1,o=r.charCodeAt(s);while(o===Fe||o===dt||o===mt||o===bt||o===gt);x=["space",r.slice(h,s)],h=s-1;break}case To:case Lo:case Io:case Do:case Uo:case Bo:case $o:{let I=String.fromCharCode(o);x=[I,I,h];break}case jo:{if(d=_.length?_.pop()[1]:"",b=r.charCodeAt(h+1),d==="url"&&b!==qt&&b!==Qr&&b!==Fe&&b!==dt&&b!==mt&&b!==gt&&b!==bt){s=h;do{if(u=!1,s=r.indexOf(")",s+1),s===-1)if(i||R){s=h;break}else y("bracket");for(p=s;r.charCodeAt(p-1)===pt;)p-=1,u=!u}while(u);x=["brackets",r.slice(h,s+1),h,s],h=s}else s=r.indexOf(")",h+1),l=r.slice(h,s+1),s===-1||Ho.test(l)?x=["(","(",h]:(x=["brackets",l,h,s],h=s);break}case qt:case Qr:{a=o===qt?"'":'"',s=h;do{if(u=!1,s=r.indexOf(a,s+1),s===-1)if(i||R){s=h+1;break}else y("string");for(p=s;r.charCodeAt(p-1)===pt;)p-=1,u=!u}while(u);x=["string",r.slice(h,s+1),h,s],h=s;break}case Fo:{vt.lastIndex=h+1,vt.test(r),vt.lastIndex===0?s=r.length-1:s=vt.lastIndex-2,x=["at-word",r.slice(h,s+1),h,s],h=s;break}case pt:{for(s=h,c=!0;r.charCodeAt(s+1)===pt;)s+=1,c=!c;if(o=r.charCodeAt(s+1),c&&o!==en&&o!==Fe&&o!==dt&&o!==mt&&o!==bt&&o!==gt&&(s+=1,tn.test(r.charAt(s)))){for(;tn.test(r.charAt(s+1));)s+=1;r.charCodeAt(s+1)===Fe&&(s+=1)}x=["word",r.slice(h,s+1),h,s],h=s;break}default:{o===en&&r.charCodeAt(h+1)===zo?(s=r.indexOf("*/",h+2)+1,s===0&&(i||R?s=r.length:y("comment")),x=["comment",r.slice(h,s+1),h,s],h=s):(yt.lastIndex=h+1,yt.test(r),yt.lastIndex===0?s=r.length-1:s=yt.lastIndex-2,x=["word",r.slice(h,s+1),h,s],_.push(x),h=s);break}}return h++,x}function N(L){P.push(L)}return{back:N,endOfFile:S,nextToken:C,position:M}};let Vn=Ae,kt=class extends Vn{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)}};var Or=kt;kt.default=kt;Vn.registerAtRule(kt);let Zn=Ae,Xn,Kn,je=class extends Zn{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let o of i)o.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Xn(new Kn,this,e).stringify()}};je.registerLazyResult=n=>{Xn=n};je.registerProcessor=n=>{Kn=n};var ot=je;je.default=je;Zn.registerRoot(je);let Ye={comma(n){return Ye.split(n,[","],!0)},space(n){let e=[" ",`
|
|
91
|
+
`," "];return Ye.split(n,e)},split(n,e,t){let r=[],i="",o=!1,s=0,a=!1,l="",c=!1;for(let u of n)c?c=!1:u==="\\"?c=!0:a?u===l&&(a=!1):u==='"'||u==="'"?(a=!0,l=u):u==="("?s+=1:u===")"?s>0&&(s-=1):s===0&&e.includes(u)&&(o=!0),o?(i!==""&&r.push(i.trim()),i="",o=!1):i+=u;return(t||i!=="")&&r.push(i.trim()),r}};var Jn=Ye;Ye.default=Ye;let Yn=Ae,qo=Jn,Ct=class extends Yn{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return qo.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)}};var Ar=Ct;Ct.default=Ct;Yn.registerRule(Ct);let Go=jt,Vo=Wo,Zo=It,Xo=Or,Ko=ot,rn=Ar;const nn={empty:!0,space:!0};function Jo(n){for(let e=n.length-1;e>=0;e--){let t=n[e],r=t[3]||t[2];if(r)return r}}let Yo=class{constructor(e){this.input=e,this.root=new Ko,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Xo;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,o,s=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){a=!0;break}else if(r==="}"){if(l.length>0){for(o=l.length-1,i=l[o];i&&i[0]==="space";)i=l[--o];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else l.push(e);else l.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),s&&(e=l[l.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),a&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,i;for(let o=t-1;o>=0&&(i=e[o],!(i[0]!=="space"&&(r+=1,r===2)));o--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,r,i,o;for(let[s,a]of e.entries()){if(r=a,i=r[0],i==="("&&(t+=1),i===")"&&(t-=1),t===0&&i===":")if(!o)this.doubleColon(r);else{if(o[0]==="word"&&o[1]==="progid")continue;return s}o=r}return!1}comment(e){let t=new Zo;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let i=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=Vo(this.input)}decl(e,t){let r=new Go;this.init(r,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||Jo(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let o;for(;e.length;)if(o=e.shift(),o[0]===":"){r.raws.between+=o[1];break}else o[0]==="word"&&/\w/.test(o[1])&&this.unknownWord([o]),r.raws.between+=o[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let s=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)s.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(o=e[c],o[1].toLowerCase()==="!important"){r.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(r.raws.important=u);break}else if(o[1].toLowerCase()==="important"){let u=e.slice(0),p="";for(let d=c;d>0;d--){let b=u[d][0];if(p.trim().indexOf("!")===0&&b!=="space")break;p=u.pop()[1]+p}p.trim().indexOf("!")===0&&(r.important=!0,r.raws.important=p,e=u)}if(o[0]!=="space"&&o[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(r.raws.between+=s.map(c=>c[1]).join(""),s=[]),this.raw(r,"value",s.concat(e),t),r.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 rn;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&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}}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="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,i=!1,o=null,s=[],a=e[1].startsWith("--"),l=[],c=e;for(;c;){if(r=c[0],l.push(c),r==="("||r==="[")o||(o=c),s.push(r==="("?")":"]");else if(a&&i&&r==="{")o||(o=c),s.push("}");else if(s.length===0)if(r===";")if(i){this.decl(l,a);return}else break;else if(r==="{"){this.rule(l);return}else if(r==="}"){this.tokenizer.back(l.pop()),t=!0;break}else r===":"&&(i=!0);else r===s[s.length-1]&&(s.pop(),s.length===0&&(o=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(o),t&&i){if(!a)for(;l.length&&(c=l[l.length-1][0],!(c!=="space"&&c!=="comment"));)this.tokenizer.back(l.pop());this.decl(l,a)}else this.unknownWord(l)}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);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let o,s,a=r.length,l="",c=!0,u,p;for(let d=0;d<a;d+=1)o=r[d],s=o[0],s==="space"&&d===a-1&&!i?c=!1:s==="comment"?(p=r[d-1]?r[d-1][0]:"empty",u=r[d+1]?r[d+1][0]:"empty",!nn[p]&&!nn[u]?l.slice(-1)===","?c=!1:l+=o[1]:c=!1):l+=o[1];if(!c){let d=r.reduce((b,x)=>b+x[1],"");e.raws[t]={raw:d,value:l}}e[t]=l}rule(e){e.pop();let t=new rn;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}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",{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})}};var Qo=Yo;let ea=Ae,ta=Qo,ra=$t;function Rt(n,e){let t=new ra(n,e),r=new ta(t);try{r.parse()}catch(i){throw i}return r.root}var Sr=Rt;Rt.default=Rt;ea.registerParse(Rt);let{isClean:fe,my:na}=st,ia=Ln,sa=Tt,oa=Ae,aa=xr,sn=Er,la=Sr,ca=ot;const ua={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},fa={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},ha={Once:!0,postcssPlugin:!0,prepare:!0},$e=0;function He(n){return typeof n=="object"&&typeof n.then=="function"}function Qn(n){let e=!1,t=ua[n.type];return n.type==="decl"?e=n.prop.toLowerCase():n.type==="atrule"&&(e=n.name.toLowerCase()),e&&n.append?[t,t+"-"+e,$e,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:n.append?[t,$e,t+"Exit"]:[t,t+"Exit"]}function on(n){let e;return n.type==="document"?e=["Document",$e,"DocumentExit"]:n.type==="root"?e=["Root",$e,"RootExit"]:e=Qn(n),{eventIndex:0,events:e,iterator:0,node:n,visitorIndex:0,visitors:[]}}function ar(n){return n[fe]=!1,n.nodes&&n.nodes.forEach(e=>ar(e)),n}let lr={},Ie=class ei{constructor(e,t,r){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=ar(t);else if(t instanceof ei||t instanceof sn)i=ar(t.root),t.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let o=la;r.syntax&&(o=r.syntax.parse),r.parser&&(o=r.parser),o.parse&&(o=o.parse);try{i=o(t,r)}catch(s){this.processed=!0,this.error=s}i&&!i[na]&&oa.rebuild(i)}this.result=new sn(e,i,r),this.helpers={...lr,postcss:lr,result:this.result},this.plugins=this.processor.plugins.map(o=>typeof o=="object"&&o.prepare?{...o,...o.prepare(this.result)}:o)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=r.postcssPlugin,e.setMessage()):r.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,r,i)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!fa[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!ha[r])if(typeof t[r]=="object")for(let i in t[r])i==="*"?e(t,r,t[r][i]):e(t,r+"-"+i.toLowerCase(),t[r][i]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(He(r))try{await r}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[fe];){e[fe]=!0;let t=[on(e)];for(;t.length>0;){let r=this.visitTick(t);if(He(r))try{await r}catch(i){let o=t[t.length-1].node;throw this.handleError(i,o)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(o=>r(o,this.helpers));await Promise.all(i)}else await r(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return He(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(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 e=this.result.opts,t=sa;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new ia(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[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 e of this.plugins){let t=this.runOnRoot(e);if(He(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[fe];)e[fe]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,i]of e){this.result.lastPlugin=r;let o;try{o=i(t,this.helpers)}catch(s){throw this.handleError(s,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(He(o))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[s,a]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=s;try{return a(r.toProxy(),this.helpers)}catch(l){throw this.handleError(l,r)}}if(t.iterator!==0){let s=t.iterator,a;for(;a=r.nodes[r.indexes[s]];)if(r.indexes[s]+=1,!a[fe]){a[fe]=!0,e.push(on(a));return}t.iterator=0,delete r.indexes[s]}let o=t.events;for(;t.eventIndex<o.length;){let s=o[t.eventIndex];if(t.eventIndex+=1,s===$e){r.nodes&&r.nodes.length&&(r[fe]=!0,t.iterator=r.getIterator());return}else if(this.listeners[s]){t.visitors=this.listeners[s];return}}e.pop()}walkSync(e){e[fe]=!0;let t=Qn(e);for(let r of t)if(r===$e)e.nodes&&e.each(i=>{i[fe]||this.walkSync(i)});else{let i=this.listeners[r];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}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"}};Ie.registerPostcss=n=>{lr=n};var ti=Ie;Ie.default=Ie;ca.registerLazyResult(Ie);aa.registerLazyResult(Ie);let pa=Ln,da=Tt,ga=Sr;const ma=Er;let cr=class{constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let i,o=da;this.result=new ma(this._processor,i,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let a=new pa(o,i,this._opts,t);if(a.isMap()){let[l,c]=a.generate();l&&(this.result.css=l),c&&(this.result.map=c)}}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}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 e,t=ga;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var ba=cr;cr.default=cr;let va=ba,ya=ti,wa=xr,xa=ot,Qe=class{constructor(e=[]){this.version="8.4.32",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(!(typeof r=="object"&&(r.parse||r.stringify)))throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length===0&&typeof t.parser>"u"&&typeof t.stringifier>"u"&&typeof t.syntax>"u"?new va(this,e,t):new ya(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var Ea=Qe;Qe.default=Qe;xa.registerProcessor(Qe);wa.registerProcessor(Qe);let Oa=jt,Aa=Rn,Sa=It,_a=Or,ka=$t,Ca=ot,Ra=Ar;function et(n,e){if(Array.isArray(n))return n.map(i=>et(i));let{inputs:t,...r}=n;if(t){e=[];for(let i of t){let o={...i,__proto__:ka.prototype};o.map&&(o.map={...o.map,__proto__:Aa.prototype}),e.push(o)}}if(r.nodes&&(r.nodes=n.nodes.map(i=>et(i,e))),r.source){let{inputId:i,...o}=r.source;r.source=o,i!=null&&(r.source.input=e[i])}if(r.type==="root")return new Ca(r);if(r.type==="decl")return new Oa(r);if(r.type==="rule")return new Ra(r);if(r.type==="comment")return new Sa(r);if(r.type==="atrule")return new _a(r);throw new Error("Unknown node type: "+n.type)}var Pa=et;et.default=et;var an={};let Ma=vr,ri=jt,Na=ti,Ta=Ae,_r=Ea,La=Tt,ja=Pa,ni=xr,$a=Gn,ii=It,si=Or,Ia=Er,Da=$t,Ba=Sr,za=Jn,oi=Ar,ai=ot,Ua=Lt;function T(...n){return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new _r(n)}T.plugin=function(e,t){let r=!1;function i(...s){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
92
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),an.LANG&&an.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
93
|
+
https://www.w3ctech.com/topic/2226`));let a=t(...s);return a.postcssPlugin=e,a.postcssVersion=new _r().version,a}let o;return Object.defineProperty(i,"postcss",{get(){return o||(o=i()),o}}),i.process=function(s,a,l){return T([i(l)]).process(s,a)},i};T.stringify=La;T.parse=Ba;T.fromJSON=ja;T.list=za;T.comment=n=>new ii(n);T.atRule=n=>new si(n);T.decl=n=>new ri(n);T.rule=n=>new oi(n);T.root=n=>new ai(n);T.document=n=>new ni(n);T.CssSyntaxError=Ma;T.Declaration=ri;T.Container=Ta;T.Processor=_r;T.Document=ni;T.Comment=ii;T.Warning=$a;T.AtRule=si;T.Result=Ia;T.Input=Da;T.Rule=oi;T.Root=ai;T.Node=Ua;Na.registerPostcss(T);var Fa=T;T.default=T;const z=Sn(Fa);z.stringify;z.fromJSON;z.plugin;z.parse;z.list;z.document;z.comment;z.atRule;z.rule;z.decl;z.root;z.CssSyntaxError;z.Declaration;z.Container;z.Processor;z.Document;z.Comment;z.Warning;z.AtRule;z.Result;z.Input;z.Rule;z.Root;z.Node;var Ha=function(e){const t=e.prefix,r=/\s+$/.test(t)?t:`${t} `,i=e.ignoreFiles?[].concat(e.ignoreFiles):[],o=e.includeFiles?[].concat(e.includeFiles):[];return function(s){i.length&&s.source.input.file&&ln(s.source.input.file,i)||o.length&&s.source.input.file&&!ln(s.source.input.file,o)||s.walkRules(a=>{const l=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes"];a.parent&&l.includes(a.parent.name)||(a.selectors=a.selectors.map(c=>e.exclude&&Wa(c,e.exclude)?c:e.transform?e.transform(t,c,r+c,s.source.input.file,a):r+c))})}};function ln(n,e){return e.some(t=>t instanceof RegExp?t.test(n):n.includes(t))}function Wa(n,e){return e.some(t=>t instanceof RegExp?t.test(n):n===t)}const qa=Sn(Ha),Ga="code{white-space:pre}.example{display:flex;flex-wrap:wrap;flex-direction:row;align-items:center;gap:16px}.example>*{flex:1 1 500px}.example .tab-control{overflow:hidden}.example div[role=tab]{cursor:pointer;padding:8px 16px;display:inline-block;font-size:16px;border-bottom:2px solid transparent;background-clip:padding-box;-webkit-user-select:none;user-select:none}.example div[role=tab]:hover{background-color:#1467ba14}.example div[role=tab][selected]{background-color:#1467ba21;border-bottom:2px solid #1467ba}.tab-content{margin:16px 0}.tab-content>pre{padding-top:0}.tab-content.code{max-height:500px;overflow:auto}.tab-content.code pre{margin:0}",Va="pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#005cc5}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-comment,.hljs-code,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}";function Za(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function li(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(e=>{const t=n[e],r=typeof t;(r==="object"||r==="function")&&!Object.isFrozen(t)&&li(t)}),n}class cn{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function ci(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function be(n,...e){const t=Object.create(null);for(const r in n)t[r]=n[r];return e.forEach(function(r){for(const i in r)t[i]=r[i]}),t}const Xa="</span>",un=n=>!!n.scope,Ka=(n,{prefix:e})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const t=n.split(".");return[`${e}${t.shift()}`,...t.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${e}${n}`};class Ja{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=ci(e)}openNode(e){if(!un(e))return;const t=Ka(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){un(e)&&(this.buffer+=Xa)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const fn=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class kr{constructor(){this.rootNode=fn(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=fn({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(r=>this._walk(e,r)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{kr._collapse(t)}))}}class Ya extends kr{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const r=e.root;t&&(r.scope=`language:${t}`),this.add(r)}toHTML(){return new Ja(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function tt(n){return n?typeof n=="string"?n:n.source:null}function ui(n){return Se("(?=",n,")")}function Qa(n){return Se("(?:",n,")*")}function el(n){return Se("(?:",n,")?")}function Se(...n){return n.map(e=>tt(e)).join("")}function tl(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function Cr(...n){return"("+(tl(n).capture?"":"?:")+n.map(e=>tt(e)).join("|")+")"}function fi(n){return new RegExp(n.toString()+"|").exec("").length-1}function rl(n,e){const t=n&&n.exec(e);return t&&t.index===0}const nl=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Rr(n,{joinWith:e}){let t=0;return n.map(r=>{t+=1;const i=t;let o=tt(r),s="";for(;o.length>0;){const a=nl.exec(o);if(!a){s+=o;break}s+=o.substring(0,a.index),o=o.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?s+="\\"+String(Number(a[1])+i):(s+=a[0],a[0]==="("&&t++)}return s}).map(r=>`(${r})`).join(e)}const il=/\b\B/,hi="[a-zA-Z]\\w*",Pr="[a-zA-Z_]\\w*",pi="\\b\\d+(\\.\\d+)?",di="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",gi="\\b(0b[01]+)",sl="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ol=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=Se(e,/.*\b/,n.binary,/\b.*/)),be({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,r)=>{t.index!==0&&r.ignoreMatch()}},n)},rt={begin:"\\\\[\\s\\S]",relevance:0},al={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[rt]},ll={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[rt]},cl={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Dt=function(n,e,t={}){const r=be({scope:"comment",begin:n,end:e,contains:[]},t);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=Cr("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Se(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},ul=Dt("//","$"),fl=Dt("/\\*","\\*/"),hl=Dt("#","$"),pl={scope:"number",begin:pi,relevance:0},dl={scope:"number",begin:di,relevance:0},gl={scope:"number",begin:gi,relevance:0},ml={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[rt,{begin:/\[/,end:/\]/,relevance:0,contains:[rt]}]},bl={scope:"title",begin:hi,relevance:0},vl={scope:"title",begin:Pr,relevance:0},yl={begin:"\\.\\s*"+Pr,relevance:0},wl=function(n){return Object.assign(n,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var wt=Object.freeze({__proto__:null,APOS_STRING_MODE:al,BACKSLASH_ESCAPE:rt,BINARY_NUMBER_MODE:gl,BINARY_NUMBER_RE:gi,COMMENT:Dt,C_BLOCK_COMMENT_MODE:fl,C_LINE_COMMENT_MODE:ul,C_NUMBER_MODE:dl,C_NUMBER_RE:di,END_SAME_AS_BEGIN:wl,HASH_COMMENT_MODE:hl,IDENT_RE:hi,MATCH_NOTHING_RE:il,METHOD_GUARD:yl,NUMBER_MODE:pl,NUMBER_RE:pi,PHRASAL_WORDS_MODE:cl,QUOTE_STRING_MODE:ll,REGEXP_MODE:ml,RE_STARTERS_RE:sl,SHEBANG:ol,TITLE_MODE:bl,UNDERSCORE_IDENT_RE:Pr,UNDERSCORE_TITLE_MODE:vl});function xl(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function El(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function Ol(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=xl,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function Al(n,e){Array.isArray(n.illegal)&&(n.illegal=Cr(...n.illegal))}function Sl(n,e){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function _l(n,e){n.relevance===void 0&&(n.relevance=1)}const kl=(n,e)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},n);Object.keys(n).forEach(r=>{delete n[r]}),n.keywords=t.keywords,n.begin=Se(t.beforeMatch,ui(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},Cl=["of","and","for","in","not","or","if","then","parent","list","value"],Rl="keyword";function mi(n,e,t=Rl){const r=Object.create(null);return typeof n=="string"?i(t,n.split(" ")):Array.isArray(n)?i(t,n):Object.keys(n).forEach(function(o){Object.assign(r,mi(n[o],e,o))}),r;function i(o,s){e&&(s=s.map(a=>a.toLowerCase())),s.forEach(function(a){const l=a.split("|");r[l[0]]=[o,Pl(l[0],l[1])]})}}function Pl(n,e){return e?Number(e):Ml(n)?0:1}function Ml(n){return Cl.includes(n.toLowerCase())}const hn={},Ee=n=>{console.error(n)},pn=(n,...e)=>{console.log(`WARN: ${n}`,...e)},Pe=(n,e)=>{hn[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),hn[`${n}/${e}`]=!0)},Pt=new Error;function bi(n,e,{key:t}){let r=0;const i=n[t],o={},s={};for(let a=1;a<=e.length;a++)s[a+r]=i[a],o[a+r]=!0,r+=fi(e[a-1]);n[t]=s,n[t]._emit=o,n[t]._multi=!0}function Nl(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw Ee("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Pt;if(typeof n.beginScope!="object"||n.beginScope===null)throw Ee("beginScope must be object"),Pt;bi(n,n.begin,{key:"beginScope"}),n.begin=Rr(n.begin,{joinWith:""})}}function Tl(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw Ee("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Pt;if(typeof n.endScope!="object"||n.endScope===null)throw Ee("endScope must be object"),Pt;bi(n,n.end,{key:"endScope"}),n.end=Rr(n.end,{joinWith:""})}}function Ll(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function jl(n){Ll(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),Nl(n),Tl(n)}function $l(n){function e(s,a){return new RegExp(tt(s),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(a?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,a]),this.matchAt+=fi(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(l=>l[1]);this.matcherRe=e(Rr(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(a);if(!l)return null;const c=l.findIndex((p,d)=>d>0&&p!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const l=new t;return this.rules.slice(a).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[a]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,l){this.rules.push([a,l]),l.type==="begin"&&this.count++}exec(a){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(a);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(a)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(s){const a=new r;return s.contains.forEach(l=>a.addRule(l.begin,{rule:l,type:"begin"})),s.terminatorEnd&&a.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&a.addRule(s.illegal,{type:"illegal"}),a}function o(s,a){const l=s;if(s.isCompiled)return l;[El,Sl,jl,kl].forEach(u=>u(s,a)),n.compilerExtensions.forEach(u=>u(s,a)),s.__beforeBegin=null,[Ol,Al,_l].forEach(u=>u(s,a)),s.isCompiled=!0;let c=null;return typeof s.keywords=="object"&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),c=s.keywords.$pattern,delete s.keywords.$pattern),c=c||/\w+/,s.keywords&&(s.keywords=mi(s.keywords,n.case_insensitive)),l.keywordPatternRe=e(c,!0),a&&(s.begin||(s.begin=/\B|\b/),l.beginRe=e(l.begin),!s.end&&!s.endsWithParent&&(s.end=/\B|\b/),s.end&&(l.endRe=e(l.end)),l.terminatorEnd=tt(l.end)||"",s.endsWithParent&&a.terminatorEnd&&(l.terminatorEnd+=(s.end?"|":"")+a.terminatorEnd)),s.illegal&&(l.illegalRe=e(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(u){return Il(u==="self"?s:u)})),s.contains.forEach(function(u){o(u,l)}),s.starts&&o(s.starts,a),l.matcher=i(l),l}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return n.classNameAliases=be(n.classNameAliases||{}),o(n)}function vi(n){return n?n.endsWithParent||vi(n.starts):!1}function Il(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return be(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:vi(n)?be(n,{starts:n.starts?be(n.starts):null}):Object.isFrozen(n)?be(n):n}var Dl="11.9.0";class Bl extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Gt=ci,dn=be,gn=Symbol("nomatch"),zl=7,yi=function(n){const e=Object.create(null),t=Object.create(null),r=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Ya};function l(f){return a.noHighlightRe.test(f)}function c(f){let m=f.className+" ";m+=f.parentNode?f.parentNode.className:"";const w=a.languageDetectRe.exec(m);if(w){const k=R(w[1]);return k||(pn(o.replace("{}",w[1])),pn("Falling back to no-highlight mode for this block.",f)),k?w[1]:"no-highlight"}return m.split(/\s+/).find(k=>l(k)||R(k))}function u(f,m,w){let k="",D="";typeof m=="object"?(k=f,w=m.ignoreIllegals,D=m.language):(Pe("10.7.0","highlight(lang, code, ...args) has been deprecated."),Pe("10.7.0",`Please use highlight(code, options) instead.
|
|
94
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),D=f,k=m),w===void 0&&(w=!0);const q={code:k,language:D};K("before:highlight",q);const Q=q.result?q.result:p(q.language,q.code,w);return Q.code=q.code,K("after:highlight",Q),Q}function p(f,m,w,k){const D=Object.create(null);function q(g,v){return g.keywords[v]}function Q(){if(!E.keywords){F.addText(j);return}let g=0;E.keywordPatternRe.lastIndex=0;let v=E.keywordPatternRe.exec(j),A="";for(;v;){A+=j.substring(g,v.index);const $=ee.case_insensitive?v[0].toLowerCase():v[0],Z=q(E,$);if(Z){const[de,Ci]=Z;if(F.addText(A),A="",D[$]=(D[$]||0)+1,D[$]<=zl&&(we+=Ci),de.startsWith("_"))A+=v[0];else{const Ri=ee.classNameAliases[de]||de;V(v[0],Ri)}}else A+=v[0];g=E.keywordPatternRe.lastIndex,v=E.keywordPatternRe.exec(j)}A+=j.substring(g),F.addText(A)}function oe(){if(j==="")return;let g=null;if(typeof E.subLanguage=="string"){if(!e[E.subLanguage]){F.addText(j);return}g=p(E.subLanguage,j,!0,ue[E.subLanguage]),ue[E.subLanguage]=g._top}else g=b(j,E.subLanguage.length?E.subLanguage:null);E.relevance>0&&(we+=g.relevance),F.__addSublanguage(g._emitter,g.language)}function U(){E.subLanguage!=null?oe():Q(),j=""}function V(g,v){g!==""&&(F.startScope(v),F.addText(g),F.endScope())}function ye(g,v){let A=1;const $=v.length-1;for(;A<=$;){if(!g._emit[A]){A++;continue}const Z=ee.classNameAliases[g[A]]||g[A],de=v[A];Z?V(de,Z):(j=de,Q(),j=""),A++}}function ce(g,v){return g.scope&&typeof g.scope=="string"&&F.openNode(ee.classNameAliases[g.scope]||g.scope),g.beginScope&&(g.beginScope._wrap?(V(j,ee.classNameAliases[g.beginScope._wrap]||g.beginScope._wrap),j=""):g.beginScope._multi&&(ye(g.beginScope,v),j="")),E=Object.create(g,{parent:{value:E}}),E}function _e(g,v,A){let $=rl(g.endRe,A);if($){if(g["on:end"]){const Z=new cn(g);g["on:end"](v,Z),Z.isMatchIgnored&&($=!1)}if($){for(;g.endsParent&&g.parent;)g=g.parent;return g}}if(g.endsWithParent)return _e(g.parent,v,A)}function zt(g){return E.matcher.regexIndex===0?(j+=g[0],1):(Re=!0,0)}function Be(g){const v=g[0],A=g.rule,$=new cn(A),Z=[A.__beforeBegin,A["on:begin"]];for(const de of Z)if(de&&(de(g,$),$.isMatchIgnored))return zt(v);return A.skip?j+=v:(A.excludeBegin&&(j+=v),U(),!A.returnBegin&&!A.excludeBegin&&(j=v)),ce(A,g),A.returnBegin?0:v.length}function Ut(g){const v=g[0],A=m.substring(g.index),$=_e(E,g,A);if(!$)return gn;const Z=E;E.endScope&&E.endScope._wrap?(U(),V(v,E.endScope._wrap)):E.endScope&&E.endScope._multi?(U(),ye(E.endScope,g)):Z.skip?j+=v:(Z.returnEnd||Z.excludeEnd||(j+=v),U(),Z.excludeEnd&&(j=v));do E.scope&&F.closeNode(),!E.skip&&!E.subLanguage&&(we+=E.relevance),E=E.parent;while(E!==$.parent);return $.starts&&ce($.starts,g),Z.returnEnd?0:v.length}function at(){const g=[];for(let v=E;v!==ee;v=v.parent)v.scope&&g.unshift(v.scope);g.forEach(v=>F.openNode(v))}let ke={};function lt(g,v){const A=v&&v[0];if(j+=g,A==null)return U(),0;if(ke.type==="begin"&&v.type==="end"&&ke.index===v.index&&A===""){if(j+=m.slice(v.index,v.index+1),!i){const $=new Error(`0 width match regex (${f})`);throw $.languageName=f,$.badRule=ke.rule,$}return 1}if(ke=v,v.type==="begin")return Be(v);if(v.type==="illegal"&&!w){const $=new Error('Illegal lexeme "'+A+'" for mode "'+(E.scope||"<unnamed>")+'"');throw $.mode=E,$}else if(v.type==="end"){const $=Ut(v);if($!==gn)return $}if(v.type==="illegal"&&A==="")return 1;if(Ce>1e5&&Ce>v.index*3)throw new Error("potential infinite loop, way more iterations than matches");return j+=A,A.length}const ee=R(f);if(!ee)throw Ee(o.replace("{}",f)),new Error('Unknown language: "'+f+'"');const ct=$l(ee);let ze="",E=k||ct;const ue={},F=new a.__emitter(a);at();let j="",we=0,ae=0,Ce=0,Re=!1;try{if(ee.__emitTokens)ee.__emitTokens(m,F);else{for(E.matcher.considerAll();;){Ce++,Re?Re=!1:E.matcher.considerAll(),E.matcher.lastIndex=ae;const g=E.matcher.exec(m);if(!g)break;const v=m.substring(ae,g.index),A=lt(v,g);ae=g.index+A}lt(m.substring(ae))}return F.finalize(),ze=F.toHTML(),{language:f,value:ze,relevance:we,illegal:!1,_emitter:F,_top:E}}catch(g){if(g.message&&g.message.includes("Illegal"))return{language:f,value:Gt(m),illegal:!0,relevance:0,_illegalBy:{message:g.message,index:ae,context:m.slice(ae-100,ae+100),mode:g.mode,resultSoFar:ze},_emitter:F};if(i)return{language:f,value:Gt(m),illegal:!1,relevance:0,errorRaised:g,_emitter:F,_top:E};throw g}}function d(f){const m={value:Gt(f),illegal:!1,relevance:0,_top:s,_emitter:new a.__emitter(a)};return m._emitter.addText(f),m}function b(f,m){m=m||a.languages||Object.keys(e);const w=d(f),k=m.filter(R).filter(H).map(U=>p(U,f,!1));k.unshift(w);const D=k.sort((U,V)=>{if(U.relevance!==V.relevance)return V.relevance-U.relevance;if(U.language&&V.language){if(R(U.language).supersetOf===V.language)return 1;if(R(V.language).supersetOf===U.language)return-1}return 0}),[q,Q]=D,oe=q;return oe.secondBest=Q,oe}function x(f,m,w){const k=m&&t[m]||w;f.classList.add("hljs"),f.classList.add(`language-${k}`)}function O(f){let m=null;const w=c(f);if(l(w))return;if(K("before:highlightElement",{el:f,language:w}),f.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",f);return}if(f.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(f)),a.throwUnescapedHTML))throw new Bl("One of your code blocks includes unescaped HTML.",f.innerHTML);m=f;const k=m.textContent,D=w?u(k,{language:w,ignoreIllegals:!0}):b(k);f.innerHTML=D.value,f.dataset.highlighted="yes",x(f,w,D.language),f.result={language:D.language,re:D.relevance,relevance:D.relevance},D.secondBest&&(f.secondBest={language:D.secondBest.language,relevance:D.secondBest.relevance}),K("after:highlightElement",{el:f,result:D,text:k})}function h(f){a=dn(a,f)}const _=()=>{y(),Pe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function P(){y(),Pe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let M=!1;function y(){if(document.readyState==="loading"){M=!0;return}document.querySelectorAll(a.cssSelector).forEach(O)}function S(){M&&y()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",S,!1);function C(f,m){let w=null;try{w=m(n)}catch(k){if(Ee("Language definition for '{}' could not be registered.".replace("{}",f)),i)Ee(k);else throw k;w=s}w.name||(w.name=f),e[f]=w,w.rawDefinition=m.bind(null,n),w.aliases&&I(w.aliases,{languageName:f})}function N(f){delete e[f];for(const m of Object.keys(t))t[m]===f&&delete t[m]}function L(){return Object.keys(e)}function R(f){return f=(f||"").toLowerCase(),e[f]||e[t[f]]}function I(f,{languageName:m}){typeof f=="string"&&(f=[f]),f.forEach(w=>{t[w.toLowerCase()]=m})}function H(f){const m=R(f);return m&&!m.disableAutodetect}function X(f){f["before:highlightBlock"]&&!f["before:highlightElement"]&&(f["before:highlightElement"]=m=>{f["before:highlightBlock"](Object.assign({block:m.el},m))}),f["after:highlightBlock"]&&!f["after:highlightElement"]&&(f["after:highlightElement"]=m=>{f["after:highlightBlock"](Object.assign({block:m.el},m))})}function W(f){X(f),r.push(f)}function se(f){const m=r.indexOf(f);m!==-1&&r.splice(m,1)}function K(f,m){const w=f;r.forEach(function(k){k[w]&&k[w](m)})}function G(f){return Pe("10.7.0","highlightBlock will be removed entirely in v12.0"),Pe("10.7.0","Please use highlightElement now."),O(f)}Object.assign(n,{highlight:u,highlightAuto:b,highlightAll:y,highlightElement:O,highlightBlock:G,configure:h,initHighlighting:_,initHighlightingOnLoad:P,registerLanguage:C,unregisterLanguage:N,listLanguages:L,getLanguage:R,registerAliases:I,autoDetection:H,inherit:dn,addPlugin:W,removePlugin:se}),n.debugMode=function(){i=!1},n.safeMode=function(){i=!0},n.versionString=Dl,n.regex={concat:Se,lookahead:ui,either:Cr,optional:el,anyNumberOfTimes:Qa};for(const f in wt)typeof wt[f]=="object"&&li(wt[f]);return Object.assign(n,wt),n},De=yi({});De.newInstance=()=>yi({});var Ul=De;De.HighlightJS=De;De.default=De;const Bt=Za(Ul),Mt="[A-Za-z$_][0-9A-Za-z$_]*",wi=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],xi=["true","false","null","undefined","NaN","Infinity"],Ei=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Oi=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Ai=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Si=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],_i=[].concat(Ai,Ei,Oi);function Fl(n){const e=n.regex,t=(f,{after:m})=>{const w="</"+f[0].slice(1);return f.input.indexOf(w,m)!==-1},r=Mt,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(f,m)=>{const w=f[0].length+f.index,k=f.input[w];if(k==="<"||k===","){m.ignoreMatch();return}k===">"&&(t(f,{after:w})||m.ignoreMatch());let D;const q=f.input.substring(w);if(D=q.match(/^\s*=/)){m.ignoreMatch();return}if((D=q.match(/^\s+extends\s+/))&&D.index===0){m.ignoreMatch();return}}},a={$pattern:Mt,keyword:wi,literal:xi,built_in:_i,"variable.language":Si},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},d={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},b={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,d],subLanguage:"xml"}},x={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,d],subLanguage:"css"}},O={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,d],subLanguage:"graphql"}},h={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,d]},_={className:"comment",variants:[n.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]},P=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,b,x,O,h,{match:/\$\d+/},p];d.contains=P.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(P)});const M=[].concat(_,d.contains),y=M.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(M)}]),S={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:y},C={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},N={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Ei,...Oi]}},L={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},R={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[S],illegal:/%/},I={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function H(f){return e.concat("(?!",f.join("|"),")")}const X={match:e.concat(/\b/,H([...Ai,"super","import"]),r,e.lookahead(/\(/)),className:"title.function",relevance:0},W={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},se={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},S]},K="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",G={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(K)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[S]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:N},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),L,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,b,x,O,h,_,{match:/\$\d+/},p,N,{className:"attr",begin:r+e.lookahead(":"),relevance:0},G,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[_,n.REGEXP_MODE,{className:"function",begin:K,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},R,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[S,n.inherit(n.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},W,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[S]},X,I,C,se,{match:/\$[(.]/}]}}function Hl(n){const e=Fl(n),t=Mt,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[e.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},a=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:Mt,keyword:wi.concat(a),literal:xi,built_in:_i.concat(r),"variable.language":Si},c={className:"meta",begin:"@"+t},u=(d,b,x)=>{const O=d.contains.findIndex(h=>h.label===b);if(O===-1)throw new Error("can not find mode to replace");d.contains.splice(O,1,x)};Object.assign(e.keywords,l),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,i,o]),u(e,"shebang",n.SHEBANG()),u(e,"use_strict",s);const p=e.contains.find(d=>d.label==="func.def");return p.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function Wl(n){const e=n.regex,t=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=n.inherit(o,{begin:/\(/,end:/\)/}),a=n.inherit(n.APOS_STRING_MODE,{className:"string"}),l=n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,l,a,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,s,l,a]}]}]},n.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(t,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:c}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const ql=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Gl=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Vl=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],Zl=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],Xl=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],Kl=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function Jl(n){const e=n.regex,t=ql(n),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",o=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",a=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,r,t.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+s,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Zl.join("|")+")"},{begin:":(:)?("+Xl.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Kl.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...a,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...a,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},t.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:Vl.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...a,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Gl.join("|")+")\\b"}]}}const ki=document.createElement("style");ki.innerText=[Ga,Va].join(`
|
|
95
|
+
`);document.head.appendChild(ki);Bt.registerLanguage("typescript",Hl);Bt.registerLanguage("html",Wl);Bt.registerLanguage("css",Jl);function Yl(...n){const e=document.createElement("div"),t=document.createElement("div");t.classList.add("tab-control");const r=document.createElement("div");return n.forEach(i=>{e.appendChild(i),i.addEventListener("click",()=>{n.forEach(o=>o.removeAttribute("selected")),i.setAttribute("selected",""),r.innerHTML="",r.appendChild(i.content),r.className=i.className,r.classList.add("tab-content")})}),t.appendChild(e),t.appendChild(r),r.classList.add("tab-content"),n[0].setAttribute("selected",""),r.appendChild(n[0].content),t}function We(n,e){const t=document.createElement("div");return t.role="tab",t.tabIndex=0,t.innerText=n,t.content=e,e.tagName=="PRE"&&t.classList.add("code"),t}function Ze(n,e){const t=document.createElement(n);return typeof e=="string"?t.innerHTML=e:e.forEach(r=>{t.appendChild(r)}),t}async function Ql(n,e,t){var r,i,o;const s=e.mainContent,a=Ze("div",s);a.id=`example-preview-${t}`;const l=typeof e.css=="string"||(r=e.css)==null?void 0:r.label,c=typeof e.css=="string"?e.css:(i=e.css)==null?void 0:i.content,u=Yl(We("Preview",a),We("HTML",xt("html",s)),...c?[We(l??"CSS",xt("css",c))]:[],...e.initializer&&e.initializer.content?[We(e.initializer.label??"TS",xt("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(d=>We(d.label,xt(d.language,d.content))));e.description&&n.appendChild(Ze("div",e.description));const p=Ze("div",[u]);p.classList.add("example"),n.appendChild(p),c&&ec(`#${a.id}`,c),(o=e.initializer)!=null&&o.initialize&&await e.initializer.initialize(a)}function xt(n,e){let t=e.split(/\r?\n/).map(r=>{const i=r.indexOf("///");if(i>-1){const o=r.substring(i+3).trimStart();return o?r.replace(/^(\s*)([^\s].*)$/,`$1${o}`):void 0}return r}).filter(r=>typeof r<"u").join(`
|
|
96
|
+
`).trim();return n&&n!="raw"&&(t=Bt.highlight(t,{language:n}).value),Ze("pre",[Ze("code",t)])}function ec(n,e){const t=document.createElement("style");t.innerHTML=z().use(qa({prefix:n})).process(e).css,document.head.appendChild(t)}async function tc(n,e=document.body){const t=nc(e);let r=0;Object.keys(n).forEach(async i=>{const o=document.createElement("div");o.className="example-container",t.appendChild(o);const s=n[i].default;Ql(o,s,r++)})}function rc(n){const e=document.createElement("div");e.id="examples-container";const t=n.querySelector("#examples");return t?t.after(e):n.appendChild(e),e}function nc(n){return n.children?rc(n):n}const ic=`<h1 id="@cas-smartdesign/popover">@cas-smartdesign/popover</h1>
|
|
97
|
+
<p>A popover element with SmartDesign look & feel.</p>
|
|
98
|
+
<h2 id="attributes">Attributes</h2>
|
|
99
|
+
<ul>
|
|
100
|
+
<li><code>placement</code>: <strong><em>string (default: "auto")</em></strong><ul>
|
|
101
|
+
<li>Defines the placement of the popper relative to the reference element</li>
|
|
102
|
+
<li>Valid placements are: <code>auto</code>, <code>top</code>, <code>right</code>, <code>bottom</code>, <code>left</code></li>
|
|
103
|
+
<li>Each placement can have a variation from this list: <code>-start</code>, <code>-end</code></li>
|
|
104
|
+
<li>The <code>auto</code> placement will place the window on the side with more space available.</li>
|
|
105
|
+
</ul>
|
|
106
|
+
</li>
|
|
107
|
+
<li><code>target-selector</code>: <strong><em>string (default: "")</em></strong><ul>
|
|
108
|
+
<li>Defines the selector to use to find the target element</li>
|
|
109
|
+
</ul>
|
|
110
|
+
</li>
|
|
111
|
+
<li><code>trigger-type</code> <strong><em>string (default: "click")</em></strong><ul>
|
|
112
|
+
<li>Defines the type of event for which the popover should open</li>
|
|
113
|
+
<li>Valid values are:<ul>
|
|
114
|
+
<li><code>click</code> - clicking on the target element</li>
|
|
115
|
+
<li><code>hover</code> - moving the cursor on the target element</li>
|
|
116
|
+
<li><code>manual</code> - no event handler will be set up, the popover can be opened programatically by calling the <code>show</code> method and hid by calling the <code>hide</code> method</li>
|
|
117
|
+
</ul>
|
|
118
|
+
</li>
|
|
119
|
+
</ul>
|
|
120
|
+
</li>
|
|
121
|
+
<li><code>modal</code> <strong><em>boolean (default: false)</em></strong><ul>
|
|
122
|
+
<li>Defines whether the popover is modal and closed on clicks or focusing outside of the content or target element.</li>
|
|
123
|
+
</ul>
|
|
124
|
+
</li>
|
|
125
|
+
<li><code>no-arrow</code> <strong><em>boolean (default: false)</em></strong><ul>
|
|
126
|
+
<li>Defines whether the popover contains an arrow pointing to the reference element.</li>
|
|
127
|
+
</ul>
|
|
128
|
+
</li>
|
|
129
|
+
<li><code>popover-for</code> <strong><em>string (default: "")</em></strong><ul>
|
|
130
|
+
<li>This value is mirrored to the opened popover-container.</li>
|
|
131
|
+
<li>By that the popover can be identified for example for styling purposes.</li>
|
|
132
|
+
</ul>
|
|
133
|
+
</li>
|
|
134
|
+
<li><code>offset</code> <strong><em>string (default: "0")</em></strong><ul>
|
|
135
|
+
<li>The offset attribute lets you displace a popper element from its reference element.</li>
|
|
136
|
+
</ul>
|
|
137
|
+
</li>
|
|
138
|
+
</ul>
|
|
139
|
+
<h2 id="properties">Properties</h2>
|
|
140
|
+
<ul>
|
|
141
|
+
<li><code>placement</code>: Placement<ul>
|
|
142
|
+
<li>Reflects the corresponding attribute</li>
|
|
143
|
+
</ul>
|
|
144
|
+
</li>
|
|
145
|
+
<li><code>targetSelector</code>: string<ul>
|
|
146
|
+
<li>Reflects the corresponding attribute</li>
|
|
147
|
+
</ul>
|
|
148
|
+
</li>
|
|
149
|
+
<li><code>triggerType</code>: TriggerType<ul>
|
|
150
|
+
<li>Reflects the corresponding attribute</li>
|
|
151
|
+
</ul>
|
|
152
|
+
</li>
|
|
153
|
+
<li><code>modal</code>: boolean<ul>
|
|
154
|
+
<li>Reflects the corresponding attribute</li>
|
|
155
|
+
</ul>
|
|
156
|
+
</li>
|
|
157
|
+
<li><code>noArrow</code>: boolean<ul>
|
|
158
|
+
<li>Reflects the corresponding attribute</li>
|
|
159
|
+
</ul>
|
|
160
|
+
</li>
|
|
161
|
+
<li><code>popoverFor</code>: string<ul>
|
|
162
|
+
<li>Reflects the corresponding attribute</li>
|
|
163
|
+
</ul>
|
|
164
|
+
</li>
|
|
165
|
+
<li><code>flipPriority</code>: Position[]<ul>
|
|
166
|
+
<li>Defines the preferred order of positions to place the window in order to prevent overflow</li>
|
|
167
|
+
</ul>
|
|
168
|
+
</li>
|
|
169
|
+
<li><code>offset</code>: number<ul>
|
|
170
|
+
<li>Reflects the correspondig attribute</li>
|
|
171
|
+
</ul>
|
|
172
|
+
</li>
|
|
173
|
+
</ul>
|
|
174
|
+
<h2 id="public-methods">Public methods</h2>
|
|
175
|
+
<ul>
|
|
176
|
+
<li><code>show</code><ul>
|
|
177
|
+
<li>Sets the <code>open</code> attribute to true, thus showing the popover</li>
|
|
178
|
+
</ul>
|
|
179
|
+
</li>
|
|
180
|
+
<li><code>hide</code><ul>
|
|
181
|
+
<li>Sets the <code>open</code> attribute to false, thus hiding the popover</li>
|
|
182
|
+
</ul>
|
|
183
|
+
</li>
|
|
184
|
+
<li><code>toggle</code><ul>
|
|
185
|
+
<li>Negates the value of the <code>open</code> attribute</li>
|
|
186
|
+
</ul>
|
|
187
|
+
</li>
|
|
188
|
+
</ul>
|
|
189
|
+
<h2 id="custom-events">Custom events</h2>
|
|
190
|
+
<ul>
|
|
191
|
+
<li><code>open</code><ul>
|
|
192
|
+
<li>Dispatched when the popover has opened.</li>
|
|
193
|
+
</ul>
|
|
194
|
+
</li>
|
|
195
|
+
<li><code>close</code><ul>
|
|
196
|
+
<li>Dispatched when the popover has closed.</li>
|
|
197
|
+
</ul>
|
|
198
|
+
</li>
|
|
199
|
+
</ul>
|
|
200
|
+
<h2 id="adding-a-child-element">Adding a child element</h2>
|
|
201
|
+
<ul>
|
|
202
|
+
<li>The first child element represents the content of the popover window.</li>
|
|
203
|
+
</ul>
|
|
204
|
+
<h2 id="examples">Examples</h2>
|
|
205
|
+
`;document.querySelector("#markdown-container").innerHTML=ic;tc(Object.assign({"./examples/1_declarative_button_trigger/index.ts":Ti,"./examples/2_declarative_hover_trigger/index.ts":Ii,"./examples/3_created_from_source/index.ts":qi}));export{Ve as P};
|
|
206
|
+
function __vite__mapDeps(indexes) {
|
|
207
|
+
if (!__vite__mapDeps.viteFileDeps) {
|
|
208
|
+
__vite__mapDeps.viteFileDeps = []
|
|
209
|
+
}
|
|
210
|
+
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
|
|
211
|
+
}
|