@cas-smartdesign/qrcode 3.0.2 → 3.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/dist/docs/doc.mjs CHANGED
@@ -1,4 +1,4 @@
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"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function t(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=t(i);fetch(i.href,s)}})();const ki=`<!-- Load element with all dependencies directly -->
1
+ (function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver(e=>{for(const t of e)if(t.type==="childList")for(const s of t.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function u(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin==="use-credentials"?t.credentials="include":e.crossOrigin==="anonymous"?t.credentials="omit":t.credentials="same-origin",t}function r(e){if(e.ep)return;e.ep=!0;const t=u(e);fetch(e.href,t)}})();const Hi=`<!-- Load element with all dependencies directly -->
2
2
  <script src="./qrcode-with-externals.js"><\/script>
3
3
 
4
4
  <div class="example-root">
@@ -11,8 +11,8 @@
11
11
  <sd-qrcode data="https://cas.de/" margin="5"></sd-qrcode>
12
12
  </div>
13
13
  </div>
14
- `,Ni=`<h3 id="declarative-example">Declarative example</h3>
15
- `,Oi=`.example-root {
14
+ `,Wi=`<h3 id="declarative-example">Declarative example</h3>
15
+ `,Gi=`.example-root {
16
16
  background-color: #f3f3f3;
17
17
  padding: 32px;
18
18
  display: flex;
@@ -34,12 +34,12 @@ label {
34
34
  sd-qrcode {
35
35
  width: 200px;
36
36
  }
37
- `,Mi={mainContent:ki,description:Ni,css:Oi},Pi=Object.freeze(Object.defineProperty({__proto__:null,default:Mi},Symbol.toStringTag,{value:"Module"})),Ti="modulepreload",Ii=function(r,e){return new URL(r,e).href},_n={},Bi=function(e,t,n){let i=Promise.resolve();if(t&&t.length>0){const s=document.getElementsByTagName("link");i=Promise.all(t.map(o=>{if(o=Ii(o,n),o in _n)return;_n[o]=!0;const a=o.endsWith(".css"),l=a?'[rel="stylesheet"]':"";if(!!n)for(let g=s.length-1;g>=0;g--){const h=s[g];if(h.href===o&&(!a||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":Ti,a||(u.as="script",u.crossOrigin=""),u.href=o,document.head.appendChild(u),a)return new Promise((g,h)=>{u.addEventListener("load",g),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${o}`)))})}))}return i.then(()=>e()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})},Li=`<div class="example-root">
37
+ `,Vi={mainContent:Hi,description:Wi,css:Gi},Ki=Object.freeze(Object.defineProperty({__proto__:null,default:Vi},Symbol.toStringTag,{value:"Module"})),Ji="modulepreload",Zi=function(n,l){return new URL(n,l).href},zn={},Qi=function(l,u,r){let e=Promise.resolve();if(u&&u.length>0){let h=function(i){return Promise.all(i.map(c=>Promise.resolve(c).then(a=>({status:"fulfilled",value:a}),a=>({status:"rejected",reason:a}))))};const s=document.getElementsByTagName("link"),f=document.querySelector("meta[property=csp-nonce]"),p=f?.nonce||f?.getAttribute("nonce");e=h(u.map(i=>{if(i=Zi(i,r),i in zn)return;zn[i]=!0;const c=i.endsWith(".css"),a=c?'[rel="stylesheet"]':"";if(!!r)for(let g=s.length-1;g>=0;g--){const b=s[g];if(b.href===i&&(!c||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const d=document.createElement("link");if(d.rel=c?"stylesheet":Ji,c||(d.as="script"),d.crossOrigin="",d.href=i,p&&d.setAttribute("nonce",p),document.head.appendChild(d),c)return new Promise((g,b)=>{d.addEventListener("load",g),d.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${i}`)))})}))}function t(s){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=s,window.dispatchEvent(f),!f.defaultPrevented)throw s}return e.then(s=>{for(const f of s||[])f.status==="rejected"&&t(f.reason);return l().catch(t)})},Yi=`<div class="example-root">
38
38
  <input id="qr-data" value="String to be encoded in the QrCode" />
39
39
  <div id="qrcode-from-code-container"></div>
40
40
  </div>
41
- `,$i=`<h3 id="create-and-access-qrcode-from-code">Create and access QrCode from code</h3>
42
- `,ji=`.example-root {
41
+ `,Xi=`<h3 id="create-and-access-qrcode-from-code">Create and access QrCode from code</h3>
42
+ `,es=`.example-root {
43
43
  max-width: 400px;
44
44
  }
45
45
 
@@ -47,7 +47,7 @@ input {
47
47
  width: 100%;
48
48
  box-sizing: border-box;
49
49
  }
50
- `,Di=`import { QRcode } from "@cas-smartdesign/qrcode";
50
+ `,ts=`import { QRcode } from "@cas-smartdesign/qrcode";
51
51
 
52
52
  const qrcode = new QRcode();
53
53
  const container = document.querySelector("#qrcode-from-code-container");
@@ -59,14 +59,14 @@ input.addEventListener("keyup", updateValue);
59
59
  updateValue();
60
60
 
61
61
  container.append(qrcode);
62
- `,Ui={mainContent:Li,description:$i,css:ji,initializer:{content:Di,type:"typescript",initialize:()=>Bi(()=>import("./2_created_from_source.js"),__vite__mapDeps([]),import.meta.url)}},zi=Object.freeze(Object.defineProperty({__proto__:null,default:Ui},Symbol.toStringTag,{value:"Module"})),tr=class Ye extends HTMLElement{memoizedTemplate(){const e=this.is();if(Ye.TEMPLATE_CACHE[e])return Ye.TEMPLATE_CACHE[e];const t=this.template();return window.ShadyCSS&&window.ShadyCSS.prepareTemplate(t,this.is()),Ye.TEMPLATE_CACHE[e]=t,t}connectedCallback(){const e=this.memoizedTemplate();window.ShadyCSS&&window.ShadyCSS.styleElement(this),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.importNode(e.content,!0)),requestAnimationFrame(()=>this.dispatchEvent(new CustomEvent("ready"))))}whenReady(e){this.shadowRoot?e():this.addEventListener("ready",()=>e())}};tr.TEMPLATE_CACHE={};let Fi=tr;function nr(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Hi(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?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(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}),t}var qi=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},rr={},G={};let tn;const Wi=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];G.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};G.getSymbolTotalCodewords=function(e){return Wi[e]};G.getBCHDigit=function(r){let e=0;for(;r!==0;)e++,r>>>=1;return e};G.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');tn=e};G.isKanjiModeEnabled=function(){return typeof tn<"u"};G.toSJIS=function(e){return tn(e)};var ut={};(function(r){r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2};function e(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+t)}}r.isValid=function(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},r.from=function(n,i){if(r.isValid(n))return n;try{return e(n)}catch{return i}}})(ut);function ir(){this.buffer=[],this.length=0}ir.prototype={get:function(r){const e=Math.floor(r/8);return(this.buffer[e]>>>7-r%8&1)===1},put:function(r,e){for(let t=0;t<e;t++)this.putBit((r>>>e-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),r&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var Gi=ir;function Te(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}Te.prototype.set=function(r,e,t,n){const i=r*this.size+e;this.data[i]=t,n&&(this.reservedBit[i]=!0)};Te.prototype.get=function(r,e){return this.data[r*this.size+e]};Te.prototype.xor=function(r,e,t){this.data[r*this.size+e]^=t};Te.prototype.isReserved=function(r,e){return this.reservedBit[r*this.size+e]};var Vi=Te,sr={};(function(r){const e=G.getSymbolSize;r.getRowColCoords=function(n){if(n===1)return[];const i=Math.floor(n/7)+2,s=e(n),o=s===145?26:Math.ceil((s-13)/(2*i-2))*2,a=[s-7];for(let l=1;l<i-1;l++)a[l]=a[l-1]-o;return a.push(6),a.reverse()},r.getPositions=function(n){const i=[],s=r.getRowColCoords(n),o=s.length;for(let a=0;a<o;a++)for(let l=0;l<o;l++)a===0&&l===0||a===0&&l===o-1||a===o-1&&l===0||i.push([s[a],s[l]]);return i}})(sr);var or={};const Ki=G.getSymbolSize,Rn=7;or.getPositions=function(e){const t=Ki(e);return[[0,0],[t-Rn,0],[0,t-Rn]]};var ar={};(function(r){r.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};r.isValid=function(i){return i!=null&&i!==""&&!isNaN(i)&&i>=0&&i<=7},r.from=function(i){return r.isValid(i)?parseInt(i,10):void 0},r.getPenaltyN1=function(i){const s=i.size;let o=0,a=0,l=0,c=null,u=null;for(let g=0;g<s;g++){a=l=0,c=u=null;for(let h=0;h<s;h++){let p=i.get(g,h);p===c?a++:(a>=5&&(o+=e.N1+(a-5)),c=p,a=1),p=i.get(h,g),p===u?l++:(l>=5&&(o+=e.N1+(l-5)),u=p,l=1)}a>=5&&(o+=e.N1+(a-5)),l>=5&&(o+=e.N1+(l-5))}return o},r.getPenaltyN2=function(i){const s=i.size;let o=0;for(let a=0;a<s-1;a++)for(let l=0;l<s-1;l++){const c=i.get(a,l)+i.get(a,l+1)+i.get(a+1,l)+i.get(a+1,l+1);(c===4||c===0)&&o++}return o*e.N2},r.getPenaltyN3=function(i){const s=i.size;let o=0,a=0,l=0;for(let c=0;c<s;c++){a=l=0;for(let u=0;u<s;u++)a=a<<1&2047|i.get(c,u),u>=10&&(a===1488||a===93)&&o++,l=l<<1&2047|i.get(u,c),u>=10&&(l===1488||l===93)&&o++}return o*e.N3},r.getPenaltyN4=function(i){let s=0;const o=i.data.length;for(let l=0;l<o;l++)s+=i.data[l];return Math.abs(Math.ceil(s*100/o/5)-10)*e.N4};function t(n,i,s){switch(n){case r.Patterns.PATTERN000:return(i+s)%2===0;case r.Patterns.PATTERN001:return i%2===0;case r.Patterns.PATTERN010:return s%3===0;case r.Patterns.PATTERN011:return(i+s)%3===0;case r.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(s/3))%2===0;case r.Patterns.PATTERN101:return i*s%2+i*s%3===0;case r.Patterns.PATTERN110:return(i*s%2+i*s%3)%2===0;case r.Patterns.PATTERN111:return(i*s%3+(i+s)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}r.applyMask=function(i,s){const o=s.size;for(let a=0;a<o;a++)for(let l=0;l<o;l++)s.isReserved(l,a)||s.xor(l,a,t(i,l,a))},r.getBestMask=function(i,s){const o=Object.keys(r.Patterns).length;let a=0,l=1/0;for(let c=0;c<o;c++){s(c),r.applyMask(c,i);const u=r.getPenaltyN1(i)+r.getPenaltyN2(i)+r.getPenaltyN3(i)+r.getPenaltyN4(i);r.applyMask(c,i),u<l&&(l=u,a=c)}return a}})(ar);var ft={};const ne=ut,De=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Ue=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ft.getBlocksCount=function(e,t){switch(t){case ne.L:return De[(e-1)*4+0];case ne.M:return De[(e-1)*4+1];case ne.Q:return De[(e-1)*4+2];case ne.H:return De[(e-1)*4+3];default:return}};ft.getTotalCodewordsCount=function(e,t){switch(t){case ne.L:return Ue[(e-1)*4+0];case ne.M:return Ue[(e-1)*4+1];case ne.Q:return Ue[(e-1)*4+2];case ne.H:return Ue[(e-1)*4+3];default:return}};var lr={},ht={};const Ce=new Uint8Array(512),tt=new Uint8Array(256);(function(){let e=1;for(let t=0;t<255;t++)Ce[t]=e,tt[e]=t,e<<=1,e&256&&(e^=285);for(let t=255;t<512;t++)Ce[t]=Ce[t-255]})();ht.log=function(e){if(e<1)throw new Error("log("+e+")");return tt[e]};ht.exp=function(e){return Ce[e]};ht.mul=function(e,t){return e===0||t===0?0:Ce[tt[e]+tt[t]]};(function(r){const e=ht;r.mul=function(n,i){const s=new Uint8Array(n.length+i.length-1);for(let o=0;o<n.length;o++)for(let a=0;a<i.length;a++)s[o+a]^=e.mul(n[o],i[a]);return s},r.mod=function(n,i){let s=new Uint8Array(n);for(;s.length-i.length>=0;){const o=s[0];for(let l=0;l<i.length;l++)s[l]^=e.mul(i[l],o);let a=0;for(;a<s.length&&s[a]===0;)a++;s=s.slice(a)}return s},r.generateECPolynomial=function(n){let i=new Uint8Array([1]);for(let s=0;s<n;s++)i=r.mul(i,new Uint8Array([1,e.exp(s)]));return i}})(lr);const cr=lr;function nn(r){this.genPoly=void 0,this.degree=r,this.degree&&this.initialize(this.degree)}nn.prototype.initialize=function(e){this.degree=e,this.genPoly=cr.generateECPolynomial(this.degree)};nn.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=cr.mod(t,this.genPoly),i=this.degree-n.length;if(i>0){const s=new Uint8Array(this.degree);return s.set(n,i),s}return n};var Ji=nn,ur={},ie={},rn={};rn.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var Y={};const fr="[0-9]+",Zi="[A-Z $%*+\\-./:]+";let _e="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";_e=_e.replace(/u/g,"\\u");const Qi="(?:(?![A-Z0-9 $%*+\\-./:]|"+_e+`)(?:.|[\r
63
- ]))+`;Y.KANJI=new RegExp(_e,"g");Y.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Y.BYTE=new RegExp(Qi,"g");Y.NUMERIC=new RegExp(fr,"g");Y.ALPHANUMERIC=new RegExp(Zi,"g");const Yi=new RegExp("^"+_e+"$"),Xi=new RegExp("^"+fr+"$"),es=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Y.testKanji=function(e){return Yi.test(e)};Y.testNumeric=function(e){return Xi.test(e)};Y.testAlphanumeric=function(e){return es.test(e)};(function(r){const e=rn,t=Y;r.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},r.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},r.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},r.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},r.MIXED={bit:-1},r.getCharCountIndicator=function(s,o){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!e.isValid(o))throw new Error("Invalid version: "+o);return o>=1&&o<10?s.ccBits[0]:o<27?s.ccBits[1]:s.ccBits[2]},r.getBestModeForData=function(s){return t.testNumeric(s)?r.NUMERIC:t.testAlphanumeric(s)?r.ALPHANUMERIC:t.testKanji(s)?r.KANJI:r.BYTE},r.toString=function(s){if(s&&s.id)return s.id;throw new Error("Invalid mode")},r.isValid=function(s){return s&&s.bit&&s.ccBits};function n(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"numeric":return r.NUMERIC;case"alphanumeric":return r.ALPHANUMERIC;case"kanji":return r.KANJI;case"byte":return r.BYTE;default:throw new Error("Unknown mode: "+i)}}r.from=function(s,o){if(r.isValid(s))return s;try{return n(s)}catch{return o}}})(ie);(function(r){const e=G,t=ft,n=ut,i=ie,s=rn,o=7973,a=e.getBCHDigit(o);function l(h,p,y){for(let C=1;C<=40;C++)if(p<=r.getCapacity(C,y,h))return C}function c(h,p){return i.getCharCountIndicator(h,p)+4}function u(h,p){let y=0;return h.forEach(function(C){const m=c(C.mode,p);y+=m+C.getBitsLength()}),y}function g(h,p){for(let y=1;y<=40;y++)if(u(h,y)<=r.getCapacity(y,p,i.MIXED))return y}r.from=function(p,y){return s.isValid(p)?parseInt(p,10):y},r.getCapacity=function(p,y,C){if(!s.isValid(p))throw new Error("Invalid QR Code version");typeof C>"u"&&(C=i.BYTE);const m=e.getSymbolTotalCodewords(p),x=t.getTotalCodewordsCount(p,y),S=(m-x)*8;if(C===i.MIXED)return S;const v=S-c(C,p);switch(C){case i.NUMERIC:return Math.floor(v/10*3);case i.ALPHANUMERIC:return Math.floor(v/11*2);case i.KANJI:return Math.floor(v/13);case i.BYTE:default:return Math.floor(v/8)}},r.getBestVersionForData=function(p,y){let C;const m=n.from(y,n.M);if(Array.isArray(p)){if(p.length>1)return g(p,m);if(p.length===0)return 1;C=p[0]}else C=p;return l(C.mode,C.getLength(),m)},r.getEncodedBits=function(p){if(!s.isValid(p)||p<7)throw new Error("Invalid QR Code version");let y=p<<12;for(;e.getBCHDigit(y)-a>=0;)y^=o<<e.getBCHDigit(y)-a;return p<<12|y}})(ur);var hr={};const Lt=G,dr=1335,ts=21522,kn=Lt.getBCHDigit(dr);hr.getEncodedBits=function(e,t){const n=e.bit<<3|t;let i=n<<10;for(;Lt.getBCHDigit(i)-kn>=0;)i^=dr<<Lt.getBCHDigit(i)-kn;return(n<<10|i)^ts};var gr={};const ns=ie;function he(r){this.mode=ns.NUMERIC,this.data=r.toString()}he.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};he.prototype.getLength=function(){return this.data.length};he.prototype.getBitsLength=function(){return he.getBitsLength(this.data.length)};he.prototype.write=function(e){let t,n,i;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),i=parseInt(n,10),e.put(i,10);const s=this.data.length-t;s>0&&(n=this.data.substr(t),i=parseInt(n,10),e.put(i,s*3+1))};var rs=he;const is=ie,_t=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function de(r){this.mode=is.ALPHANUMERIC,this.data=r}de.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};de.prototype.getLength=function(){return this.data.length};de.prototype.getBitsLength=function(){return de.getBitsLength(this.data.length)};de.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=_t.indexOf(this.data[t])*45;n+=_t.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(_t.indexOf(this.data[t]),6)};var ss=de,os=function(e){for(var t=[],n=e.length,i=0;i<n;i++){var s=e.charCodeAt(i);if(s>=55296&&s<=56319&&n>i+1){var o=e.charCodeAt(i+1);o>=56320&&o<=57343&&(s=(s-55296)*1024+o-56320+65536,i+=1)}if(s<128){t.push(s);continue}if(s<2048){t.push(s>>6|192),t.push(s&63|128);continue}if(s<55296||s>=57344&&s<65536){t.push(s>>12|224),t.push(s>>6&63|128),t.push(s&63|128);continue}if(s>=65536&&s<=1114111){t.push(s>>18|240),t.push(s>>12&63|128),t.push(s>>6&63|128),t.push(s&63|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer};const as=os,ls=ie;function ge(r){this.mode=ls.BYTE,typeof r=="string"&&(r=as(r)),this.data=new Uint8Array(r)}ge.getBitsLength=function(e){return e*8};ge.prototype.getLength=function(){return this.data.length};ge.prototype.getBitsLength=function(){return ge.getBitsLength(this.data.length)};ge.prototype.write=function(r){for(let e=0,t=this.data.length;e<t;e++)r.put(this.data[e],8)};var cs=ge;const us=ie,fs=G;function pe(r){this.mode=us.KANJI,this.data=r}pe.getBitsLength=function(e){return e*13};pe.prototype.getLength=function(){return this.data.length};pe.prototype.getBitsLength=function(){return pe.getBitsLength(this.data.length)};pe.prototype.write=function(r){let e;for(e=0;e<this.data.length;e++){let t=fs.toSJIS(this.data[e]);if(t>=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
64
- Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),r.put(t,13)}};var hs=pe,pr={exports:{}};(function(r){var e={single_source_shortest_paths:function(t,n,i){var s={},o={};o[n]=0;var a=e.PriorityQueue.make();a.push(n,0);for(var l,c,u,g,h,p,y,C,m;!a.empty();){l=a.pop(),c=l.value,g=l.cost,h=t[c]||{};for(u in h)h.hasOwnProperty(u)&&(p=h[u],y=g+p,C=o[u],m=typeof o[u]>"u",(m||C>y)&&(o[u]=y,a.push(u,y),s[u]=c))}if(typeof i<"u"&&typeof o[i]>"u"){var x=["Could not find a path from ",n," to ",i,"."].join("");throw new Error(x)}return s},extract_shortest_path_from_predecessor_list:function(t,n){for(var i=[],s=n;s;)i.push(s),t[s],s=t[s];return i.reverse(),i},find_path:function(t,n,i){var s=e.single_source_shortest_paths(t,n,i);return e.extract_shortest_path_from_predecessor_list(s,i)},PriorityQueue:{make:function(t){var n=e.PriorityQueue,i={},s;t=t||{};for(s in n)n.hasOwnProperty(s)&&(i[s]=n[s]);return i.queue=[],i.sorter=t.sorter||n.default_sorter,i},default_sorter:function(t,n){return t.cost-n.cost},push:function(t,n){var i={value:t,cost:n};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};r.exports=e})(pr);var ds=pr.exports;(function(r){const e=ie,t=rs,n=ss,i=cs,s=hs,o=Y,a=G,l=ds;function c(x){return unescape(encodeURIComponent(x)).length}function u(x,S,v){const w=[];let k;for(;(k=x.exec(v))!==null;)w.push({data:k[0],index:k.index,mode:S,length:k[0].length});return w}function g(x){const S=u(o.NUMERIC,e.NUMERIC,x),v=u(o.ALPHANUMERIC,e.ALPHANUMERIC,x);let w,k;return a.isKanjiModeEnabled()?(w=u(o.BYTE,e.BYTE,x),k=u(o.KANJI,e.KANJI,x)):(w=u(o.BYTE_KANJI,e.BYTE,x),k=[]),S.concat(v,w,k).sort(function(T,D){return T.index-D.index}).map(function(T){return{data:T.data,mode:T.mode,length:T.length}})}function h(x,S){switch(S){case e.NUMERIC:return t.getBitsLength(x);case e.ALPHANUMERIC:return n.getBitsLength(x);case e.KANJI:return s.getBitsLength(x);case e.BYTE:return i.getBitsLength(x)}}function p(x){return x.reduce(function(S,v){const w=S.length-1>=0?S[S.length-1]:null;return w&&w.mode===v.mode?(S[S.length-1].data+=v.data,S):(S.push(v),S)},[])}function y(x){const S=[];for(let v=0;v<x.length;v++){const w=x[v];switch(w.mode){case e.NUMERIC:S.push([w,{data:w.data,mode:e.ALPHANUMERIC,length:w.length},{data:w.data,mode:e.BYTE,length:w.length}]);break;case e.ALPHANUMERIC:S.push([w,{data:w.data,mode:e.BYTE,length:w.length}]);break;case e.KANJI:S.push([w,{data:w.data,mode:e.BYTE,length:c(w.data)}]);break;case e.BYTE:S.push([{data:w.data,mode:e.BYTE,length:c(w.data)}])}}return S}function C(x,S){const v={},w={start:{}};let k=["start"];for(let M=0;M<x.length;M++){const T=x[M],D=[];for(let $=0;$<T.length;$++){const U=T[$],K=""+M+$;D.push(K),v[K]={node:U,lastCount:0},w[K]={};for(let se=0;se<k.length;se++){const H=k[se];v[H]&&v[H].node.mode===U.mode?(w[H][K]=h(v[H].lastCount+U.length,U.mode)-h(v[H].lastCount,U.mode),v[H].lastCount+=U.length):(v[H]&&(v[H].lastCount=U.length),w[H][K]=h(U.length,U.mode)+4+e.getCharCountIndicator(U.mode,S))}}k=D}for(let M=0;M<k.length;M++)w[k[M]].end=0;return{map:w,table:v}}function m(x,S){let v;const w=e.getBestModeForData(x);if(v=e.from(S,w),v!==e.BYTE&&v.bit<w.bit)throw new Error('"'+x+'" cannot be encoded with mode '+e.toString(v)+`.
65
- Suggested mode is: `+e.toString(w));switch(v===e.KANJI&&!a.isKanjiModeEnabled()&&(v=e.BYTE),v){case e.NUMERIC:return new t(x);case e.ALPHANUMERIC:return new n(x);case e.KANJI:return new s(x);case e.BYTE:return new i(x)}}r.fromArray=function(S){return S.reduce(function(v,w){return typeof w=="string"?v.push(m(w,null)):w.data&&v.push(m(w.data,w.mode)),v},[])},r.fromString=function(S,v){const w=g(S,a.isKanjiModeEnabled()),k=y(w),M=C(k,v),T=l.find_path(M.map,"start","end"),D=[];for(let $=1;$<T.length-1;$++)D.push(M.table[T[$]].node);return r.fromArray(p(D))},r.rawSplit=function(S){return r.fromArray(g(S,a.isKanjiModeEnabled()))}})(gr);const dt=G,Rt=ut,gs=Gi,ps=Vi,ms=sr,bs=or,$t=ar,jt=ft,ys=Ji,nt=ur,ws=hr,Es=ie,kt=gr;function xs(r,e){const t=r.size,n=bs.getPositions(e);for(let i=0;i<n.length;i++){const s=n[i][0],o=n[i][1];for(let a=-1;a<=7;a++)if(!(s+a<=-1||t<=s+a))for(let l=-1;l<=7;l++)o+l<=-1||t<=o+l||(a>=0&&a<=6&&(l===0||l===6)||l>=0&&l<=6&&(a===0||a===6)||a>=2&&a<=4&&l>=2&&l<=4?r.set(s+a,o+l,!0,!0):r.set(s+a,o+l,!1,!0))}}function vs(r){const e=r.size;for(let t=8;t<e-8;t++){const n=t%2===0;r.set(t,6,n,!0),r.set(6,t,n,!0)}}function Cs(r,e){const t=ms.getPositions(e);for(let n=0;n<t.length;n++){const i=t[n][0],s=t[n][1];for(let o=-2;o<=2;o++)for(let a=-2;a<=2;a++)o===-2||o===2||a===-2||a===2||o===0&&a===0?r.set(i+o,s+a,!0,!0):r.set(i+o,s+a,!1,!0)}}function Ss(r,e){const t=r.size,n=nt.getEncodedBits(e);let i,s,o;for(let a=0;a<18;a++)i=Math.floor(a/3),s=a%3+t-8-3,o=(n>>a&1)===1,r.set(i,s,o,!0),r.set(s,i,o,!0)}function Nt(r,e,t){const n=r.size,i=ws.getEncodedBits(e,t);let s,o;for(s=0;s<15;s++)o=(i>>s&1)===1,s<6?r.set(s,8,o,!0):s<8?r.set(s+1,8,o,!0):r.set(n-15+s,8,o,!0),s<8?r.set(8,n-s-1,o,!0):s<9?r.set(8,15-s-1+1,o,!0):r.set(8,15-s-1,o,!0);r.set(n-8,8,1,!0)}function As(r,e){const t=r.size;let n=-1,i=t-1,s=7,o=0;for(let a=t-1;a>0;a-=2)for(a===6&&a--;;){for(let l=0;l<2;l++)if(!r.isReserved(i,a-l)){let c=!1;o<e.length&&(c=(e[o]>>>s&1)===1),r.set(i,a-l,c),s--,s===-1&&(o++,s=7)}if(i+=n,i<0||t<=i){i-=n,n=-n;break}}}function _s(r,e,t){const n=new gs;t.forEach(function(l){n.put(l.mode.bit,4),n.put(l.getLength(),Es.getCharCountIndicator(l.mode,r)),l.write(n)});const i=dt.getSymbolTotalCodewords(r),s=jt.getTotalCodewordsCount(r,e),o=(i-s)*8;for(n.getLengthInBits()+4<=o&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);const a=(o-n.getLengthInBits())/8;for(let l=0;l<a;l++)n.put(l%2?17:236,8);return Rs(n,r,e)}function Rs(r,e,t){const n=dt.getSymbolTotalCodewords(e),i=jt.getTotalCodewordsCount(e,t),s=n-i,o=jt.getBlocksCount(e,t),a=n%o,l=o-a,c=Math.floor(n/o),u=Math.floor(s/o),g=u+1,h=c-u,p=new ys(h);let y=0;const C=new Array(o),m=new Array(o);let x=0;const S=new Uint8Array(r.buffer);for(let T=0;T<o;T++){const D=T<l?u:g;C[T]=S.slice(y,y+D),m[T]=p.encode(C[T]),y+=D,x=Math.max(x,D)}const v=new Uint8Array(n);let w=0,k,M;for(k=0;k<x;k++)for(M=0;M<o;M++)k<C[M].length&&(v[w++]=C[M][k]);for(k=0;k<h;k++)for(M=0;M<o;M++)v[w++]=m[M][k];return v}function ks(r,e,t,n){let i;if(Array.isArray(r))i=kt.fromArray(r);else if(typeof r=="string"){let c=e;if(!c){const u=kt.rawSplit(r);c=nt.getBestVersionForData(u,t)}i=kt.fromString(r,c||40)}else throw new Error("Invalid data");const s=nt.getBestVersionForData(i,t);if(!s)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=s;else if(e<s)throw new Error(`
62
+ `,ns={mainContent:Yi,description:Xi,css:es,initializer:{content:ts,type:"typescript",initialize:()=>Qi(()=>import("./2_created_from_source.js"),[],import.meta.url)}},rs=Object.freeze(Object.defineProperty({__proto__:null,default:ns},Symbol.toStringTag,{value:"Module"})),Hr=class tt extends HTMLElement{memoizedTemplate(){const l=this.is();if(tt.TEMPLATE_CACHE[l])return tt.TEMPLATE_CACHE[l];const u=this.template();return window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,this.is()),tt.TEMPLATE_CACHE[l]=u,u}connectedCallback(){const l=this.memoizedTemplate();window.ShadyCSS&&window.ShadyCSS.styleElement(this),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(document.importNode(l.content,!0)),requestAnimationFrame(()=>this.dispatchEvent(new CustomEvent("ready"))))}whenReady(l){this.shadowRoot?l():this.addEventListener("ready",()=>l())}};Hr.TEMPLATE_CACHE={};let is=Hr;function Wr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function ss(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var l=n.default;if(typeof l=="function"){var u=function r(){var e=!1;try{e=this instanceof r}catch{}return e?Reflect.construct(l,arguments,this.constructor):l.apply(this,arguments)};u.prototype=l.prototype}else u={};return Object.defineProperty(u,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var e=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(u,r,e.get?e:{enumerable:!0,get:function(){return n[r]}})}),u}var Le={},bt,qn;function os(){return qn||(qn=1,bt=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),bt}var yt={},Re={},Un;function Oe(){if(Un)return Re;Un=1;let n;const l=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return Re.getSymbolSize=function(r){if(!r)throw new Error('"version" cannot be null or undefined');if(r<1||r>40)throw new Error('"version" should be in range from 1 to 40');return r*4+17},Re.getSymbolTotalCodewords=function(r){return l[r]},Re.getBCHDigit=function(u){let r=0;for(;u!==0;)r++,u>>>=1;return r},Re.setToSJISFunction=function(r){if(typeof r!="function")throw new Error('"toSJISFunc" is not a valid function.');n=r},Re.isKanjiModeEnabled=function(){return typeof n<"u"},Re.toSJIS=function(r){return n(r)},Re}var wt={},Fn;function pn(){return Fn||(Fn=1,(function(n){n.L={bit:1},n.M={bit:0},n.Q={bit:3},n.H={bit:2};function l(u){if(typeof u!="string")throw new Error("Param is not a string");switch(u.toLowerCase()){case"l":case"low":return n.L;case"m":case"medium":return n.M;case"q":case"quartile":return n.Q;case"h":case"high":return n.H;default:throw new Error("Unknown EC Level: "+u)}}n.isValid=function(r){return r&&typeof r.bit<"u"&&r.bit>=0&&r.bit<4},n.from=function(r,e){if(n.isValid(r))return r;try{return l(r)}catch{return e}}})(wt)),wt}var Et,$n;function as(){if($n)return Et;$n=1;function n(){this.buffer=[],this.length=0}return n.prototype={get:function(l){const u=Math.floor(l/8);return(this.buffer[u]>>>7-l%8&1)===1},put:function(l,u){for(let r=0;r<u;r++)this.putBit((l>>>u-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(l){const u=Math.floor(this.length/8);this.buffer.length<=u&&this.buffer.push(0),l&&(this.buffer[u]|=128>>>this.length%8),this.length++}},Et=n,Et}var vt,Hn;function ls(){if(Hn)return vt;Hn=1;function n(l){if(!l||l<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=l,this.data=new Uint8Array(l*l),this.reservedBit=new Uint8Array(l*l)}return n.prototype.set=function(l,u,r,e){const t=l*this.size+u;this.data[t]=r,e&&(this.reservedBit[t]=!0)},n.prototype.get=function(l,u){return this.data[l*this.size+u]},n.prototype.xor=function(l,u,r){this.data[l*this.size+u]^=r},n.prototype.isReserved=function(l,u){return this.reservedBit[l*this.size+u]},vt=n,vt}var xt={},Wn;function cs(){return Wn||(Wn=1,(function(n){const l=Oe().getSymbolSize;n.getRowColCoords=function(r){if(r===1)return[];const e=Math.floor(r/7)+2,t=l(r),s=t===145?26:Math.ceil((t-13)/(2*e-2))*2,f=[t-7];for(let p=1;p<e-1;p++)f[p]=f[p-1]-s;return f.push(6),f.reverse()},n.getPositions=function(r){const e=[],t=n.getRowColCoords(r),s=t.length;for(let f=0;f<s;f++)for(let p=0;p<s;p++)f===0&&p===0||f===0&&p===s-1||f===s-1&&p===0||e.push([t[f],t[p]]);return e}})(xt)),xt}var St={},Gn;function us(){if(Gn)return St;Gn=1;const n=Oe().getSymbolSize,l=7;return St.getPositions=function(r){const e=n(r);return[[0,0],[e-l,0],[0,e-l]]},St}var Ct={},Vn;function fs(){return Vn||(Vn=1,(function(n){n.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const l={N1:3,N2:3,N3:40,N4:10};n.isValid=function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7},n.from=function(e){return n.isValid(e)?parseInt(e,10):void 0},n.getPenaltyN1=function(e){const t=e.size;let s=0,f=0,p=0,h=null,i=null;for(let c=0;c<t;c++){f=p=0,h=i=null;for(let a=0;a<t;a++){let o=e.get(c,a);o===h?f++:(f>=5&&(s+=l.N1+(f-5)),h=o,f=1),o=e.get(a,c),o===i?p++:(p>=5&&(s+=l.N1+(p-5)),i=o,p=1)}f>=5&&(s+=l.N1+(f-5)),p>=5&&(s+=l.N1+(p-5))}return s},n.getPenaltyN2=function(e){const t=e.size;let s=0;for(let f=0;f<t-1;f++)for(let p=0;p<t-1;p++){const h=e.get(f,p)+e.get(f,p+1)+e.get(f+1,p)+e.get(f+1,p+1);(h===4||h===0)&&s++}return s*l.N2},n.getPenaltyN3=function(e){const t=e.size;let s=0,f=0,p=0;for(let h=0;h<t;h++){f=p=0;for(let i=0;i<t;i++)f=f<<1&2047|e.get(h,i),i>=10&&(f===1488||f===93)&&s++,p=p<<1&2047|e.get(i,h),i>=10&&(p===1488||p===93)&&s++}return s*l.N3},n.getPenaltyN4=function(e){let t=0;const s=e.data.length;for(let p=0;p<s;p++)t+=e.data[p];return Math.abs(Math.ceil(t*100/s/5)-10)*l.N4};function u(r,e,t){switch(r){case n.Patterns.PATTERN000:return(e+t)%2===0;case n.Patterns.PATTERN001:return e%2===0;case n.Patterns.PATTERN010:return t%3===0;case n.Patterns.PATTERN011:return(e+t)%3===0;case n.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(t/3))%2===0;case n.Patterns.PATTERN101:return e*t%2+e*t%3===0;case n.Patterns.PATTERN110:return(e*t%2+e*t%3)%2===0;case n.Patterns.PATTERN111:return(e*t%3+(e+t)%2)%2===0;default:throw new Error("bad maskPattern:"+r)}}n.applyMask=function(e,t){const s=t.size;for(let f=0;f<s;f++)for(let p=0;p<s;p++)t.isReserved(p,f)||t.xor(p,f,u(e,p,f))},n.getBestMask=function(e,t){const s=Object.keys(n.Patterns).length;let f=0,p=1/0;for(let h=0;h<s;h++){t(h),n.applyMask(h,e);const i=n.getPenaltyN1(e)+n.getPenaltyN2(e)+n.getPenaltyN3(e)+n.getPenaltyN4(e);n.applyMask(h,e),i<p&&(p=i,f=h)}return f}})(Ct)),Ct}var Qe={},Kn;function Gr(){if(Kn)return Qe;Kn=1;const n=pn(),l=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],u=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Qe.getBlocksCount=function(e,t){switch(t){case n.L:return l[(e-1)*4+0];case n.M:return l[(e-1)*4+1];case n.Q:return l[(e-1)*4+2];case n.H:return l[(e-1)*4+3];default:return}},Qe.getTotalCodewordsCount=function(e,t){switch(t){case n.L:return u[(e-1)*4+0];case n.M:return u[(e-1)*4+1];case n.Q:return u[(e-1)*4+2];case n.H:return u[(e-1)*4+3];default:return}},Qe}var Rt={},ze={},Jn;function hs(){if(Jn)return ze;Jn=1;const n=new Uint8Array(512),l=new Uint8Array(256);return(function(){let r=1;for(let e=0;e<255;e++)n[e]=r,l[r]=e,r<<=1,r&256&&(r^=285);for(let e=255;e<512;e++)n[e]=n[e-255]})(),ze.log=function(r){if(r<1)throw new Error("log("+r+")");return l[r]},ze.exp=function(r){return n[r]},ze.mul=function(r,e){return r===0||e===0?0:n[l[r]+l[e]]},ze}var Zn;function ds(){return Zn||(Zn=1,(function(n){const l=hs();n.mul=function(r,e){const t=new Uint8Array(r.length+e.length-1);for(let s=0;s<r.length;s++)for(let f=0;f<e.length;f++)t[s+f]^=l.mul(r[s],e[f]);return t},n.mod=function(r,e){let t=new Uint8Array(r);for(;t.length-e.length>=0;){const s=t[0];for(let p=0;p<e.length;p++)t[p]^=l.mul(e[p],s);let f=0;for(;f<t.length&&t[f]===0;)f++;t=t.slice(f)}return t},n.generateECPolynomial=function(r){let e=new Uint8Array([1]);for(let t=0;t<r;t++)e=n.mul(e,new Uint8Array([1,l.exp(t)]));return e}})(Rt)),Rt}var At,Qn;function gs(){if(Qn)return At;Qn=1;const n=ds();function l(u){this.genPoly=void 0,this.degree=u,this.degree&&this.initialize(this.degree)}return l.prototype.initialize=function(r){this.degree=r,this.genPoly=n.generateECPolynomial(this.degree)},l.prototype.encode=function(r){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(r.length+this.degree);e.set(r);const t=n.mod(e,this.genPoly),s=this.degree-t.length;if(s>0){const f=new Uint8Array(this.degree);return f.set(t,s),f}return t},At=l,At}var kt={},_t={},Nt={},Yn;function Vr(){return Yn||(Yn=1,Nt.isValid=function(l){return!isNaN(l)&&l>=1&&l<=40}),Nt}var Ee={},Xn;function Kr(){if(Xn)return Ee;Xn=1;const n="[0-9]+",l="[A-Z $%*+\\-./:]+";let u="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";u=u.replace(/u/g,"\\u");const r="(?:(?![A-Z0-9 $%*+\\-./:]|"+u+`)(?:.|[\r
63
+ ]))+`;Ee.KANJI=new RegExp(u,"g"),Ee.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Ee.BYTE=new RegExp(r,"g"),Ee.NUMERIC=new RegExp(n,"g"),Ee.ALPHANUMERIC=new RegExp(l,"g");const e=new RegExp("^"+u+"$"),t=new RegExp("^"+n+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Ee.testKanji=function(p){return e.test(p)},Ee.testNumeric=function(p){return t.test(p)},Ee.testAlphanumeric=function(p){return s.test(p)},Ee}var er;function Me(){return er||(er=1,(function(n){const l=Vr(),u=Kr();n.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},n.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},n.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},n.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},n.MIXED={bit:-1},n.getCharCountIndicator=function(t,s){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!l.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?t.ccBits[0]:s<27?t.ccBits[1]:t.ccBits[2]},n.getBestModeForData=function(t){return u.testNumeric(t)?n.NUMERIC:u.testAlphanumeric(t)?n.ALPHANUMERIC:u.testKanji(t)?n.KANJI:n.BYTE},n.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},n.isValid=function(t){return t&&t.bit&&t.ccBits};function r(e){if(typeof e!="string")throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return n.NUMERIC;case"alphanumeric":return n.ALPHANUMERIC;case"kanji":return n.KANJI;case"byte":return n.BYTE;default:throw new Error("Unknown mode: "+e)}}n.from=function(t,s){if(n.isValid(t))return t;try{return r(t)}catch{return s}}})(_t)),_t}var tr;function ps(){return tr||(tr=1,(function(n){const l=Oe(),u=Gr(),r=pn(),e=Me(),t=Vr(),s=7973,f=l.getBCHDigit(s);function p(a,o,d){for(let g=1;g<=40;g++)if(o<=n.getCapacity(g,d,a))return g}function h(a,o){return e.getCharCountIndicator(a,o)+4}function i(a,o){let d=0;return a.forEach(function(g){const b=h(g.mode,o);d+=b+g.getBitsLength()}),d}function c(a,o){for(let d=1;d<=40;d++)if(i(a,d)<=n.getCapacity(d,o,e.MIXED))return d}n.from=function(o,d){return t.isValid(o)?parseInt(o,10):d},n.getCapacity=function(o,d,g){if(!t.isValid(o))throw new Error("Invalid QR Code version");typeof g>"u"&&(g=e.BYTE);const b=l.getSymbolTotalCodewords(o),v=u.getTotalCodewordsCount(o,d),S=(b-v)*8;if(g===e.MIXED)return S;const E=S-h(g,o);switch(g){case e.NUMERIC:return Math.floor(E/10*3);case e.ALPHANUMERIC:return Math.floor(E/11*2);case e.KANJI:return Math.floor(E/13);case e.BYTE:default:return Math.floor(E/8)}},n.getBestVersionForData=function(o,d){let g;const b=r.from(d,r.M);if(Array.isArray(o)){if(o.length>1)return c(o,b);if(o.length===0)return 1;g=o[0]}else g=o;return p(g.mode,g.getLength(),b)},n.getEncodedBits=function(o){if(!t.isValid(o)||o<7)throw new Error("Invalid QR Code version");let d=o<<12;for(;l.getBCHDigit(d)-f>=0;)d^=s<<l.getBCHDigit(d)-f;return o<<12|d}})(kt)),kt}var Ot={},nr;function ms(){if(nr)return Ot;nr=1;const n=Oe(),l=1335,u=21522,r=n.getBCHDigit(l);return Ot.getEncodedBits=function(t,s){const f=t.bit<<3|s;let p=f<<10;for(;n.getBCHDigit(p)-r>=0;)p^=l<<n.getBCHDigit(p)-r;return(f<<10|p)^u},Ot}var Mt={},Pt,rr;function bs(){if(rr)return Pt;rr=1;const n=Me();function l(u){this.mode=n.NUMERIC,this.data=u.toString()}return l.getBitsLength=function(r){return 10*Math.floor(r/3)+(r%3?r%3*3+1:0)},l.prototype.getLength=function(){return this.data.length},l.prototype.getBitsLength=function(){return l.getBitsLength(this.data.length)},l.prototype.write=function(r){let e,t,s;for(e=0;e+3<=this.data.length;e+=3)t=this.data.substr(e,3),s=parseInt(t,10),r.put(s,10);const f=this.data.length-e;f>0&&(t=this.data.substr(e),s=parseInt(t,10),r.put(s,f*3+1))},Pt=l,Pt}var Tt,ir;function ys(){if(ir)return Tt;ir=1;const n=Me(),l=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function u(r){this.mode=n.ALPHANUMERIC,this.data=r}return u.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)},u.prototype.getLength=function(){return this.data.length},u.prototype.getBitsLength=function(){return u.getBitsLength(this.data.length)},u.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let s=l.indexOf(this.data[t])*45;s+=l.indexOf(this.data[t+1]),e.put(s,11)}this.data.length%2&&e.put(l.indexOf(this.data[t]),6)},Tt=u,Tt}var It,sr;function ws(){if(sr)return It;sr=1;const n=Me();function l(u){this.mode=n.BYTE,typeof u=="string"?this.data=new TextEncoder().encode(u):this.data=new Uint8Array(u)}return l.getBitsLength=function(r){return r*8},l.prototype.getLength=function(){return this.data.length},l.prototype.getBitsLength=function(){return l.getBitsLength(this.data.length)},l.prototype.write=function(u){for(let r=0,e=this.data.length;r<e;r++)u.put(this.data[r],8)},It=l,It}var Bt,or;function Es(){if(or)return Bt;or=1;const n=Me(),l=Oe();function u(r){this.mode=n.KANJI,this.data=r}return u.getBitsLength=function(e){return e*13},u.prototype.getLength=function(){return this.data.length},u.prototype.getBitsLength=function(){return u.getBitsLength(this.data.length)},u.prototype.write=function(r){let e;for(e=0;e<this.data.length;e++){let t=l.toSJIS(this.data[e]);if(t>=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
64
+ Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),r.put(t,13)}},Bt=u,Bt}var Lt={exports:{}},ar;function vs(){return ar||(ar=1,(function(n){var l={single_source_shortest_paths:function(u,r,e){var t={},s={};s[r]=0;var f=l.PriorityQueue.make();f.push(r,0);for(var p,h,i,c,a,o,d,g,b;!f.empty();){p=f.pop(),h=p.value,c=p.cost,a=u[h]||{};for(i in a)a.hasOwnProperty(i)&&(o=a[i],d=c+o,g=s[i],b=typeof s[i]>"u",(b||g>d)&&(s[i]=d,f.push(i,d),t[i]=h))}if(typeof e<"u"&&typeof s[e]>"u"){var v=["Could not find a path from ",r," to ",e,"."].join("");throw new Error(v)}return t},extract_shortest_path_from_predecessor_list:function(u,r){for(var e=[],t=r;t;)e.push(t),u[t],t=u[t];return e.reverse(),e},find_path:function(u,r,e){var t=l.single_source_shortest_paths(u,r,e);return l.extract_shortest_path_from_predecessor_list(t,e)},PriorityQueue:{make:function(u){var r=l.PriorityQueue,e={},t;u=u||{};for(t in r)r.hasOwnProperty(t)&&(e[t]=r[t]);return e.queue=[],e.sorter=u.sorter||r.default_sorter,e},default_sorter:function(u,r){return u.cost-r.cost},push:function(u,r){var e={value:u,cost:r};this.queue.push(e),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};n.exports=l})(Lt)),Lt.exports}var lr;function xs(){return lr||(lr=1,(function(n){const l=Me(),u=bs(),r=ys(),e=ws(),t=Es(),s=Kr(),f=Oe(),p=vs();function h(v){return unescape(encodeURIComponent(v)).length}function i(v,S,E){const y=[];let w;for(;(w=v.exec(E))!==null;)y.push({data:w[0],index:w.index,mode:S,length:w[0].length});return y}function c(v){const S=i(s.NUMERIC,l.NUMERIC,v),E=i(s.ALPHANUMERIC,l.ALPHANUMERIC,v);let y,w;return f.isKanjiModeEnabled()?(y=i(s.BYTE,l.BYTE,v),w=i(s.KANJI,l.KANJI,v)):(y=i(s.BYTE_KANJI,l.BYTE,v),w=[]),S.concat(E,y,w).sort(function(R,k){return R.index-k.index}).map(function(R){return{data:R.data,mode:R.mode,length:R.length}})}function a(v,S){switch(S){case l.NUMERIC:return u.getBitsLength(v);case l.ALPHANUMERIC:return r.getBitsLength(v);case l.KANJI:return t.getBitsLength(v);case l.BYTE:return e.getBitsLength(v)}}function o(v){return v.reduce(function(S,E){const y=S.length-1>=0?S[S.length-1]:null;return y&&y.mode===E.mode?(S[S.length-1].data+=E.data,S):(S.push(E),S)},[])}function d(v){const S=[];for(let E=0;E<v.length;E++){const y=v[E];switch(y.mode){case l.NUMERIC:S.push([y,{data:y.data,mode:l.ALPHANUMERIC,length:y.length},{data:y.data,mode:l.BYTE,length:y.length}]);break;case l.ALPHANUMERIC:S.push([y,{data:y.data,mode:l.BYTE,length:y.length}]);break;case l.KANJI:S.push([y,{data:y.data,mode:l.BYTE,length:h(y.data)}]);break;case l.BYTE:S.push([{data:y.data,mode:l.BYTE,length:h(y.data)}])}}return S}function g(v,S){const E={},y={start:{}};let w=["start"];for(let x=0;x<v.length;x++){const R=v[x],k=[];for(let _=0;_<R.length;_++){const A=R[_],M=""+x+_;k.push(M),E[M]={node:A,lastCount:0},y[M]={};for(let O=0;O<w.length;O++){const j=w[O];E[j]&&E[j].node.mode===A.mode?(y[j][M]=a(E[j].lastCount+A.length,A.mode)-a(E[j].lastCount,A.mode),E[j].lastCount+=A.length):(E[j]&&(E[j].lastCount=A.length),y[j][M]=a(A.length,A.mode)+4+l.getCharCountIndicator(A.mode,S))}}w=k}for(let x=0;x<w.length;x++)y[w[x]].end=0;return{map:y,table:E}}function b(v,S){let E;const y=l.getBestModeForData(v);if(E=l.from(S,y),E!==l.BYTE&&E.bit<y.bit)throw new Error('"'+v+'" cannot be encoded with mode '+l.toString(E)+`.
65
+ Suggested mode is: `+l.toString(y));switch(E===l.KANJI&&!f.isKanjiModeEnabled()&&(E=l.BYTE),E){case l.NUMERIC:return new u(v);case l.ALPHANUMERIC:return new r(v);case l.KANJI:return new t(v);case l.BYTE:return new e(v)}}n.fromArray=function(S){return S.reduce(function(E,y){return typeof y=="string"?E.push(b(y,null)):y.data&&E.push(b(y.data,y.mode)),E},[])},n.fromString=function(S,E){const y=c(S,f.isKanjiModeEnabled()),w=d(y),x=g(w,E),R=p.find_path(x.map,"start","end"),k=[];for(let _=1;_<R.length-1;_++)k.push(x.table[R[_]].node);return n.fromArray(o(k))},n.rawSplit=function(S){return n.fromArray(c(S,f.isKanjiModeEnabled()))}})(Mt)),Mt}var cr;function Ss(){if(cr)return yt;cr=1;const n=Oe(),l=pn(),u=as(),r=ls(),e=cs(),t=us(),s=fs(),f=Gr(),p=gs(),h=ps(),i=ms(),c=Me(),a=xs();function o(x,R){const k=x.size,_=t.getPositions(R);for(let A=0;A<_.length;A++){const M=_[A][0],O=_[A][1];for(let j=-1;j<=7;j++)if(!(M+j<=-1||k<=M+j))for(let z=-1;z<=7;z++)O+z<=-1||k<=O+z||(j>=0&&j<=6&&(z===0||z===6)||z>=0&&z<=6&&(j===0||j===6)||j>=2&&j<=4&&z>=2&&z<=4?x.set(M+j,O+z,!0,!0):x.set(M+j,O+z,!1,!0))}}function d(x){const R=x.size;for(let k=8;k<R-8;k++){const _=k%2===0;x.set(k,6,_,!0),x.set(6,k,_,!0)}}function g(x,R){const k=e.getPositions(R);for(let _=0;_<k.length;_++){const A=k[_][0],M=k[_][1];for(let O=-2;O<=2;O++)for(let j=-2;j<=2;j++)O===-2||O===2||j===-2||j===2||O===0&&j===0?x.set(A+O,M+j,!0,!0):x.set(A+O,M+j,!1,!0)}}function b(x,R){const k=x.size,_=h.getEncodedBits(R);let A,M,O;for(let j=0;j<18;j++)A=Math.floor(j/3),M=j%3+k-8-3,O=(_>>j&1)===1,x.set(A,M,O,!0),x.set(M,A,O,!0)}function v(x,R,k){const _=x.size,A=i.getEncodedBits(R,k);let M,O;for(M=0;M<15;M++)O=(A>>M&1)===1,M<6?x.set(M,8,O,!0):M<8?x.set(M+1,8,O,!0):x.set(_-15+M,8,O,!0),M<8?x.set(8,_-M-1,O,!0):M<9?x.set(8,15-M-1+1,O,!0):x.set(8,15-M-1,O,!0);x.set(_-8,8,1,!0)}function S(x,R){const k=x.size;let _=-1,A=k-1,M=7,O=0;for(let j=k-1;j>0;j-=2)for(j===6&&j--;;){for(let z=0;z<2;z++)if(!x.isReserved(A,j-z)){let I=!1;O<R.length&&(I=(R[O]>>>M&1)===1),x.set(A,j-z,I),M--,M===-1&&(O++,M=7)}if(A+=_,A<0||k<=A){A-=_,_=-_;break}}}function E(x,R,k){const _=new u;k.forEach(function(z){_.put(z.mode.bit,4),_.put(z.getLength(),c.getCharCountIndicator(z.mode,x)),z.write(_)});const A=n.getSymbolTotalCodewords(x),M=f.getTotalCodewordsCount(x,R),O=(A-M)*8;for(_.getLengthInBits()+4<=O&&_.put(0,4);_.getLengthInBits()%8!==0;)_.putBit(0);const j=(O-_.getLengthInBits())/8;for(let z=0;z<j;z++)_.put(z%2?17:236,8);return y(_,x,R)}function y(x,R,k){const _=n.getSymbolTotalCodewords(R),A=f.getTotalCodewordsCount(R,k),M=_-A,O=f.getBlocksCount(R,k),j=_%O,z=O-j,I=Math.floor(_/O),de=Math.floor(M/O),V=de+1,Y=I-de,oe=new p(Y);let re=0;const ce=new Array(O),pe=new Array(O);let U=0;const Ae=new Uint8Array(x.buffer);for(let fe=0;fe<O;fe++){const ke=fe<z?de:V;ce[fe]=Ae.slice(re,re+ke),pe[fe]=oe.encode(ce[fe]),re+=ke,U=Math.max(U,ke)}const me=new Uint8Array(_);let Te=0,le,ue;for(le=0;le<U;le++)for(ue=0;ue<O;ue++)le<ce[ue].length&&(me[Te++]=ce[ue][le]);for(le=0;le<Y;le++)for(ue=0;ue<O;ue++)me[Te++]=pe[ue][le];return me}function w(x,R,k,_){let A;if(Array.isArray(x))A=a.fromArray(x);else if(typeof x=="string"){let I=R;if(!I){const de=a.rawSplit(x);I=h.getBestVersionForData(de,k)}A=a.fromString(x,I||40)}else throw new Error("Invalid data");const M=h.getBestVersionForData(A,k);if(!M)throw new Error("The amount of data is too big to be stored in a QR Code");if(!R)R=M;else if(R<M)throw new Error(`
66
66
  The chosen QR Code version cannot contain this amount of data.
67
- Minimum version required to store current data is: `+s+`.
68
- `);const o=_s(e,t,i),a=dt.getSymbolSize(e),l=new ps(a);return xs(l,e),vs(l),Cs(l,e),Nt(l,t,0),e>=7&&Ss(l,e),As(l,o),isNaN(n)&&(n=$t.getBestMask(l,Nt.bind(null,l,t))),$t.applyMask(n,l),Nt(l,t,n),{modules:l,version:e,errorCorrectionLevel:t,maskPattern:n,segments:i}}rr.create=function(e,t){if(typeof e>"u"||e==="")throw new Error("No input text");let n=Rt.M,i,s;return typeof t<"u"&&(n=Rt.from(t.errorCorrectionLevel,Rt.M),i=nt.from(t.version),s=$t.from(t.maskPattern),t.toSJISFunc&&dt.setToSJISFunction(t.toSJISFunc)),ks(e,i,n,s)};var mr={},sn={};(function(r){function e(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let n=t.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+t);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(s){return[s,s]}))),n.length===6&&n.push("F","F");const i=parseInt(n.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:i&255,hex:"#"+n.slice(0,6).join("")}}r.getOptions=function(n){n||(n={}),n.color||(n.color={});const i=typeof n.margin>"u"||n.margin===null||n.margin<0?4:n.margin,s=n.width&&n.width>=21?n.width:void 0,o=n.scale||4;return{width:s,scale:s?4:o,margin:i,color:{dark:e(n.color.dark||"#000000ff"),light:e(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},r.getScale=function(n,i){return i.width&&i.width>=n+i.margin*2?i.width/(n+i.margin*2):i.scale},r.getImageWidth=function(n,i){const s=r.getScale(n,i);return Math.floor((n+i.margin*2)*s)},r.qrToImageData=function(n,i,s){const o=i.modules.size,a=i.modules.data,l=r.getScale(o,s),c=Math.floor((o+s.margin*2)*l),u=s.margin*l,g=[s.color.light,s.color.dark];for(let h=0;h<c;h++)for(let p=0;p<c;p++){let y=(h*c+p)*4,C=s.color.light;if(h>=u&&p>=u&&h<c-u&&p<c-u){const m=Math.floor((h-u)/l),x=Math.floor((p-u)/l);C=g[a[m*o+x]?1:0]}n[y++]=C.r,n[y++]=C.g,n[y++]=C.b,n[y]=C.a}}})(sn);(function(r){const e=sn;function t(i,s,o){i.clearRect(0,0,s.width,s.height),s.style||(s.style={}),s.height=o,s.width=o,s.style.height=o+"px",s.style.width=o+"px"}function n(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}r.render=function(s,o,a){let l=a,c=o;typeof l>"u"&&(!o||!o.getContext)&&(l=o,o=void 0),o||(c=n()),l=e.getOptions(l);const u=e.getImageWidth(s.modules.size,l),g=c.getContext("2d"),h=g.createImageData(u,u);return e.qrToImageData(h.data,s,l),t(g,c,u),g.putImageData(h,0,0),c},r.renderToDataURL=function(s,o,a){let l=a;typeof l>"u"&&(!o||!o.getContext)&&(l=o,o=void 0),l||(l={});const c=r.render(s,o,l),u=l.type||"image/png",g=l.rendererOpts||{};return c.toDataURL(u,g.quality)}})(mr);var br={};const Ns=sn;function Nn(r,e){const t=r.a/255,n=e+'="'+r.hex+'"';return t<1?n+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':n}function Ot(r,e,t){let n=r+e;return typeof t<"u"&&(n+=" "+t),n}function Os(r,e,t){let n="",i=0,s=!1,o=0;for(let a=0;a<r.length;a++){const l=Math.floor(a%e),c=Math.floor(a/e);!l&&!s&&(s=!0),r[a]?(o++,a>0&&l>0&&r[a-1]||(n+=s?Ot("M",l+t,.5+c+t):Ot("m",i,0),i=0,s=!1),l+1<e&&r[a+1]||(n+=Ot("h",o),o=0)):i++}return n}br.render=function(e,t,n){const i=Ns.getOptions(t),s=e.modules.size,o=e.modules.data,a=s+i.margin*2,l=i.color.light.a?"<path "+Nn(i.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",c="<path "+Nn(i.color.dark,"stroke")+' d="'+Os(o,s,i.margin)+'"/>',u='viewBox="0 0 '+a+" "+a+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+u+' shape-rendering="crispEdges">'+l+c+`</svg>
69
- `;return typeof n=="function"&&n(null,h),h};const Ms=qi,Dt=rr,yr=mr,Ps=br;function on(r,e,t,n,i){const s=[].slice.call(arguments,1),o=s.length,a=typeof s[o-1]=="function";if(!a&&!Ms())throw new Error("Callback required as last argument");if(a){if(o<2)throw new Error("Too few arguments provided");o===2?(i=t,t=e,e=n=void 0):o===3&&(e.getContext&&typeof i>"u"?(i=n,n=void 0):(i=n,n=t,t=e,e=void 0))}else{if(o<1)throw new Error("Too few arguments provided");return o===1?(t=e,e=n=void 0):o===2&&!e.getContext&&(n=t,t=e,e=void 0),new Promise(function(l,c){try{const u=Dt.create(t,n);l(r(u,e,n))}catch(u){c(u)}})}try{const l=Dt.create(t,n);i(null,r(l,e,n))}catch(l){i(l)}}Dt.create;on.bind(null,yr.render);on.bind(null,yr.renderToDataURL);var Ts=on.bind(null,function(r,e,t){return Ps.render(r,t)});const Is=`<style>
67
+ Minimum version required to store current data is: `+M+`.
68
+ `);const O=E(R,k,A),j=n.getSymbolSize(R),z=new r(j);return o(z,R),d(z),g(z,R),v(z,k,0),R>=7&&b(z,R),S(z,O),isNaN(_)&&(_=s.getBestMask(z,v.bind(null,z,k))),s.applyMask(_,z),v(z,k,_),{modules:z,version:R,errorCorrectionLevel:k,maskPattern:_,segments:A}}return yt.create=function(R,k){if(typeof R>"u"||R==="")throw new Error("No input text");let _=l.M,A,M;return typeof k<"u"&&(_=l.from(k.errorCorrectionLevel,l.M),A=h.from(k.version),M=s.from(k.maskPattern),k.toSJISFunc&&n.setToSJISFunction(k.toSJISFunc)),w(R,A,_,M)},yt}var jt={},Dt={},ur;function Jr(){return ur||(ur=1,(function(n){function l(u){if(typeof u=="number"&&(u=u.toString()),typeof u!="string")throw new Error("Color should be defined as hex string");let r=u.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+u);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(t){return[t,t]}))),r.length===6&&r.push("F","F");const e=parseInt(r.join(""),16);return{r:e>>24&255,g:e>>16&255,b:e>>8&255,a:e&255,hex:"#"+r.slice(0,6).join("")}}n.getOptions=function(r){r||(r={}),r.color||(r.color={});const e=typeof r.margin>"u"||r.margin===null||r.margin<0?4:r.margin,t=r.width&&r.width>=21?r.width:void 0,s=r.scale||4;return{width:t,scale:t?4:s,margin:e,color:{dark:l(r.color.dark||"#000000ff"),light:l(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},n.getScale=function(r,e){return e.width&&e.width>=r+e.margin*2?e.width/(r+e.margin*2):e.scale},n.getImageWidth=function(r,e){const t=n.getScale(r,e);return Math.floor((r+e.margin*2)*t)},n.qrToImageData=function(r,e,t){const s=e.modules.size,f=e.modules.data,p=n.getScale(s,t),h=Math.floor((s+t.margin*2)*p),i=t.margin*p,c=[t.color.light,t.color.dark];for(let a=0;a<h;a++)for(let o=0;o<h;o++){let d=(a*h+o)*4,g=t.color.light;if(a>=i&&o>=i&&a<h-i&&o<h-i){const b=Math.floor((a-i)/p),v=Math.floor((o-i)/p);g=c[f[b*s+v]?1:0]}r[d++]=g.r,r[d++]=g.g,r[d++]=g.b,r[d]=g.a}}})(Dt)),Dt}var fr;function Cs(){return fr||(fr=1,(function(n){const l=Jr();function u(e,t,s){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=s,t.width=s,t.style.height=s+"px",t.style.width=s+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}n.render=function(t,s,f){let p=f,h=s;typeof p>"u"&&(!s||!s.getContext)&&(p=s,s=void 0),s||(h=r()),p=l.getOptions(p);const i=l.getImageWidth(t.modules.size,p),c=h.getContext("2d"),a=c.createImageData(i,i);return l.qrToImageData(a.data,t,p),u(c,h,i),c.putImageData(a,0,0),h},n.renderToDataURL=function(t,s,f){let p=f;typeof p>"u"&&(!s||!s.getContext)&&(p=s,s=void 0),p||(p={});const h=n.render(t,s,p),i=p.type||"image/png",c=p.rendererOpts||{};return h.toDataURL(i,c.quality)}})(jt)),jt}var zt={},hr;function Rs(){if(hr)return zt;hr=1;const n=Jr();function l(e,t){const s=e.a/255,f=t+'="'+e.hex+'"';return s<1?f+" "+t+'-opacity="'+s.toFixed(2).slice(1)+'"':f}function u(e,t,s){let f=e+t;return typeof s<"u"&&(f+=" "+s),f}function r(e,t,s){let f="",p=0,h=!1,i=0;for(let c=0;c<e.length;c++){const a=Math.floor(c%t),o=Math.floor(c/t);!a&&!h&&(h=!0),e[c]?(i++,c>0&&a>0&&e[c-1]||(f+=h?u("M",a+s,.5+o+s):u("m",p,0),p=0,h=!1),a+1<t&&e[c+1]||(f+=u("h",i),i=0)):p++}return f}return zt.render=function(t,s,f){const p=n.getOptions(s),h=t.modules.size,i=t.modules.data,c=h+p.margin*2,a=p.color.light.a?"<path "+l(p.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",o="<path "+l(p.color.dark,"stroke")+' d="'+r(i,h,p.margin)+'"/>',d='viewBox="0 0 '+c+" "+c+'"',b='<svg xmlns="http://www.w3.org/2000/svg" '+(p.width?'width="'+p.width+'" height="'+p.width+'" ':"")+d+' shape-rendering="crispEdges">'+a+o+`</svg>
69
+ `;return typeof f=="function"&&f(null,b),b},zt}var dr;function As(){if(dr)return Le;dr=1;const n=os(),l=Ss(),u=Cs(),r=Rs();function e(t,s,f,p,h){const i=[].slice.call(arguments,1),c=i.length,a=typeof i[c-1]=="function";if(!a&&!n())throw new Error("Callback required as last argument");if(a){if(c<2)throw new Error("Too few arguments provided");c===2?(h=f,f=s,s=p=void 0):c===3&&(s.getContext&&typeof h>"u"?(h=p,p=void 0):(h=p,p=f,f=s,s=void 0))}else{if(c<1)throw new Error("Too few arguments provided");return c===1?(f=s,s=p=void 0):c===2&&!s.getContext&&(p=f,f=s,s=void 0),new Promise(function(o,d){try{const g=l.create(f,p);o(t(g,s,p))}catch(g){d(g)}})}try{const o=l.create(f,p);h(null,t(o,s,p))}catch(o){h(o)}}return Le.create=l.create,Le.toCanvas=e.bind(null,u.render),Le.toDataURL=e.bind(null,u.renderToDataURL),Le.toString=e.bind(null,function(t,s,f){return r.render(t,f)}),Le}var ks=As();const _s=`<style>
70
70
  :host {
71
71
  display: flex;
72
72
  }
@@ -80,35 +80,38 @@ Minimum version required to store current data is: `+s+`.
80
80
  }
81
81
  </style>
82
82
  <div id="qr-code-container"></div>
83
- `,ct=class ct extends Fi{is(){return ct.ID}get data(){return this.getAttribute("data")}set data(e){this.setAttribute("data",e)}get margin(){return this.hasAttribute("margin")?parseInt(this.getAttribute("margin")):1}set margin(e){this.setAttribute("margin",e.toString())}static get observedAttributes(){return["data","margin"]}generate(){if(!this.data||!this.shadowRoot)return;const e=this.shadowRoot.getElementById("qr-code-container");Ts(this.data,{margin:this.margin}).then(t=>e.innerHTML=t)}template(){const e=document.createElement("template");return e.innerHTML=Is,e}constructor(){super()}connectedCallback(){super.connectedCallback(),this.generate()}attributeChangedCallback(){this.generate()}};ct.ID="sd-qrcode";let Se=ct;customElements.get(Se.ID)||customElements.define(Se.ID,Se);var an={exports:{}},B=String,wr=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}};an.exports=wr();an.exports.createColors=wr;var Bs=an.exports;const Ls={},$s=Object.freeze(Object.defineProperty({__proto__:null,default:Ls},Symbol.toStringTag,{value:"Module"})),V=Hi($s);let On=Bs,Mn=V,Ut=class Er extends Error{constructor(e,t,n,i,s,o){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),i&&(this.source=i),o&&(this.plugin=o),typeof t<"u"&&typeof n<"u"&&(typeof t=="number"?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Er)}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=On.isColorSupported),Mn&&e&&(t=Mn(t));let n=t.split(/\r?\n/),i=Math.max(this.line-3,0),s=Math.min(this.line+2,n.length),o=String(s).length,a,l;if(e){let{bold:c,gray:u,red:g}=On.createColors(!0);a=h=>c(g(h)),l=h=>u(h)}else a=l=c=>c;return n.slice(i,s).map((c,u)=>{let g=i+1+u,h=" "+(" "+g).slice(-o)+" | ";if(g===this.line){let p=l(h.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return a(">")+l(h)+c+`
84
- `+p+a("^")}return" "+l(h)+c}).join(`
83
+ `,rt=class rt extends is{is(){return rt.ID}get data(){return this.getAttribute("data")}set data(l){this.setAttribute("data",l)}get margin(){return this.hasAttribute("margin")?parseInt(this.getAttribute("margin")):1}set margin(l){this.setAttribute("margin",l.toString())}static get observedAttributes(){return["data","margin"]}generate(){if(!this.data||!this.shadowRoot)return;const l=this.shadowRoot.getElementById("qr-code-container");ks.toString(this.data,{margin:this.margin}).then(u=>l.innerHTML=u)}template(){const l=document.createElement("template");return l.innerHTML=_s,l}constructor(){super()}connectedCallback(){super.connectedCallback(),this.generate()}attributeChangedCallback(){this.generate()}};rt.ID="sd-qrcode";let Ue=rt;customElements.get(Ue.ID)||customElements.define(Ue.ID,Ue);var Ye={exports:{}},gr;function Ns(){if(gr)return Ye.exports;gr=1;var n=String,l=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n,blackBright:n,redBright:n,greenBright:n,yellowBright:n,blueBright:n,magentaBright:n,cyanBright:n,whiteBright:n,bgBlackBright:n,bgRedBright:n,bgGreenBright:n,bgYellowBright:n,bgBlueBright:n,bgMagentaBright:n,bgCyanBright:n,bgWhiteBright:n}};return Ye.exports=l(),Ye.exports.createColors=l,Ye.exports}const Os={},Ms=Object.freeze(Object.defineProperty({__proto__:null,default:Os},Symbol.toStringTag,{value:"Module"})),ge=ss(Ms);var qt,pr;function mn(){if(pr)return qt;pr=1;let n=Ns(),l=ge;class u extends Error{constructor(e,t,s,f,p,h){super(e),this.name="CssSyntaxError",this.reason=e,p&&(this.file=p),f&&(this.source=f),h&&(this.plugin=h),typeof t<"u"&&typeof s<"u"&&(typeof t=="number"?(this.line=t,this.column=s):(this.line=t.line,this.column=t.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,u)}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=n.isColorSupported);let s=o=>o,f=o=>o,p=o=>o;if(e){let{bold:o,gray:d,red:g}=n.createColors(!0);f=b=>o(g(b)),s=b=>d(b),l&&(p=b=>l(b))}let h=t.split(/\r?\n/),i=Math.max(this.line-3,0),c=Math.min(this.line+2,h.length),a=String(c).length;return h.slice(i,c).map((o,d)=>{let g=i+1+d,b=" "+(" "+g).slice(-a)+" | ";if(g===this.line){if(o.length>160){let S=20,E=Math.max(0,this.column-S),y=Math.max(this.column+S,this.endColumn+S),w=o.slice(E,y),x=s(b.replace(/\d/g," "))+o.slice(0,Math.min(this.column-1,S-1)).replace(/[^\t]/g," ");return f(">")+s(b)+p(w)+`
84
+ `+x+f("^")}let v=s(b.replace(/\d/g," "))+o.slice(0,this.column-1).replace(/[^\t]/g," ");return f(">")+s(b)+p(o)+`
85
+ `+v+f("^")}return" "+s(b)+p(o)}).join(`
85
86
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
86
87
 
87
88
  `+e+`
88
- `),this.name+": "+this.message+e}};var ln=Ut;Ut.default=Ut;var Ie={};Ie.isClean=Symbol("isClean");Ie.my=Symbol("my");const Pn={after:`
89
+ `),this.name+": "+this.message+e}}return qt=u,u.default=u,qt}var Ut,mr;function Zr(){if(mr)return Ut;mr=1;const n={after:`
89
90
  `,beforeClose:`
90
91
  `,beforeComment:`
91
92
  `,beforeDecl:`
92
93
  `,beforeOpen:" ",beforeRule:`
93
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function js(r){return r[0].toUpperCase()+r.slice(1)}let zt=class{constructor(e){this.builder=e}atrule(e,t){let n="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i);else{let s=(e.raws.between||"")+(t?";":"");this.builder(n+i+s,e)}}beforeAfter(e,t){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):t==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let i=e.parent,s=0;for(;i&&i.type!=="root";)s+=1,i=i.parent;if(n.includes(`
94
- `)){let o=this.raw(e,null,"indent");if(o.length)for(let a=0;a<s;a++)n+=o}return n}block(e,t){let n=this.raw(e,"between","beforeOpen");this.builder(t+n+"{",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 n=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let s=e.nodes[i],o=this.raw(s,"before");o&&this.builder(o),this.stringify(s,t!==i||n)}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),i=e.prop+n+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,n){let i;if(n||(n=t),t&&(i=e.raws[t],typeof i<"u"))return i;let s=e.parent;if(n==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return"";if(!s)return Pn[n];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[n]<"u")return o.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let a="raw"+js(n);this[a]?i=this[a](o,e):o.walk(l=>{if(i=l.raws[t],typeof i<"u")return!1})}return typeof i>"u"&&(i=Pn[n]),o.rawCache[n]=i,i}rawBeforeClose(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return t=n.raws.after,t.includes(`
95
- `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let n;return e.walkComments(i=>{if(typeof i.raws.before<"u")return n=i.raws.before,n.includes(`
96
- `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls(i=>{if(typeof i.raws.before<"u")return n=i.raws.before,n.includes(`
97
- `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let t;return e.walk(n=>{if(n.type!=="decl"&&(t=n.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<"u")return t=n.raws.before,t.includes(`
98
- `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(n=>{if(typeof n.raws.between<"u")return t=n.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(t=n.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let i=n.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof n.raws.before<"u"){let s=n.raws.before.split(`
99
- `);return t=s[s.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(t=n.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let n=e[t],i=e.raws[t];return i&&i.value===n?i.raw:n}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 xr=zt;zt.default=zt;let Ds=xr;function Ft(r,e){new Ds(e).stringify(r)}var gt=Ft;Ft.default=Ft;let{isClean:ze,my:Us}=Ie,zs=ln,Fs=xr,Hs=gt;function Ht(r,e){let t=new r.constructor;for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n)||n==="proxyCache")continue;let i=r[n],s=typeof i;n==="parent"&&s==="object"?e&&(t[n]=e):n==="source"?t[n]=i:Array.isArray(i)?t[n]=i.map(o=>Ht(o,t)):(s==="object"&&i!==null&&(i=Ht(i)),t[n]=i)}return t}let qt=class{constructor(e={}){this.raws={},this[ze]=!1,this[Us]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let n of e[t])typeof n.clone=="function"?this.append(n.clone()):this.append(n)}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=Ht(this);for(let n in e)t[n]=e[n];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:n,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:n.column,line:n.line},t)}return new zs(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markDirty(){if(this[ze]){this[ze]=!1;let e=this;for(;e=e.parent;)e[ze]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();let i=t.indexOf(e.word);i!==-1&&(n=this.positionInside(i,t))}return n}positionInside(e,t){let n=t||this.toString(),i=this.source.start.column,s=this.source.start.line;for(let o=0;o<e;o++)n[o]===`
100
- `?(i=1,s+=1):i+=1;return{column:i,line:s}}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},n=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(),s=i.indexOf(e.word);s!==-1&&(t=this.positionInside(s,i),n=this.positionInside(s+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?n={column:e.end.column,line:e.end.line}:e.endIndex?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return new Fs().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,n=!1;for(let i of e)i===this?n=!0:n?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let n={},i=t==null;t=t||new Map;let s=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let a=this[o];if(Array.isArray(a))n[o]=a.map(l=>typeof l=="object"&&l.toJSON?l.toJSON(null,t):l);else if(typeof a=="object"&&a.toJSON)n[o]=a.toJSON(null,t);else if(o==="source"){let l=t.get(a.input);l==null&&(l=s,t.set(a.input,s),s++),n[o]={end:a.end,inputId:l,start:a.start}}else n[o]=a}return i&&(n.inputs=[...t.keys()].map(o=>o.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=Hs){e.stringify&&(e=e.stringify);let t="";return e(this,n=>{t+=n}),t}warn(e,t,n){let i={node:this};for(let s in n)i[s]=n[s];return e.warn(t,i)}get proxyOf(){return this}};var pt=qt;qt.default=qt;let qs=pt,Wt=class extends qs{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 mt=Wt;Wt.default=Wt;let Ws="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Gs=(r,e=21)=>(t=e)=>{let n="",i=t;for(;i--;)n+=r[Math.random()*r.length|0];return n},Vs=(r=21)=>{let e="",t=r;for(;t--;)e+=Ws[Math.random()*64|0];return e};var Ks={nanoid:Vs,customAlphabet:Gs};let{SourceMapConsumer:Tn,SourceMapGenerator:In}=V,{existsSync:Js,readFileSync:Zs}=V,{dirname:Mt,join:Qs}=V;function Ys(r){return Buffer?Buffer.from(r,"base64").toString():window.atob(r)}let Gt=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,i=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=Mt(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new Tn(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/;if(i.test(e)||s.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return Ys(e.substr(RegExp.lastMatch.length));let o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)}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 n=e.lastIndexOf(t.pop()),i=e.indexOf("*/",n);n>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,i)))}loadFile(e){if(this.root=Mt(e),Js(e))return this.mapFile=e,Zs(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 n=t(e);if(n){let i=this.loadFile(n);if(!i)throw new Error("Unable to load previous source map: "+n.toString());return i}}else{if(t instanceof Tn)return In.fromSourceMap(t).toString();if(t instanceof In)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 n=this.annotation;return e&&(n=Qs(Mt(e),n)),this.loadFile(n)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var vr=Gt;Gt.default=Gt;let{SourceMapConsumer:Xs,SourceMapGenerator:eo}=V,{fileURLToPath:Bn,pathToFileURL:Fe}=V,{isAbsolute:Vt,resolve:Kt}=V,{nanoid:to}=Ks,Pt=V,Ln=ln,no=vr,Tt=Symbol("fromOffsetCache"),ro=!!(Xs&&eo),$n=!!(Kt&&Vt),rt=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&&(!$n||/^\w+:\/\//.test(t.from)||Vt(t.from)?this.file=t.from:this.file=Kt(t.from)),$n&&ro){let n=new no(this.css,t);if(n.text){this.map=n;let i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+to(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,i={}){let s,o,a;if(t&&typeof t=="object"){let c=t,u=n;if(typeof c.offset=="number"){let g=this.fromOffset(c.offset);t=g.line,n=g.col}else t=c.line,n=c.column;if(typeof u.offset=="number"){let g=this.fromOffset(u.offset);o=g.line,a=g.col}else o=u.line,a=u.column}else if(!n){let c=this.fromOffset(t);t=c.line,n=c.col}let l=this.origin(t,n,o,a);return l?s=new Ln(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):s=new Ln(e,o===void 0?t:{column:n,line:t},o===void 0?n:{column:a,line:o},this.css,this.file,i.plugin),s.input={column:n,endColumn:a,endLine:o,line:t,source:this.css},this.file&&(Fe&&(s.input.url=Fe(this.file).toString()),s.input.file=this.file),s}fromOffset(e){let t,n;if(this[Tt])n=this[Tt];else{let s=this.css.split(`
101
- `);n=new Array(s.length);let o=0;for(let a=0,l=s.length;a<l;a++)n[a]=o,o+=s[a].length+1;this[Tt]=n}t=n[n.length-1];let i=0;if(e>=t)i=n.length-1;else{let s=n.length-2,o;for(;i<s;)if(o=i+(s-i>>1),e<n[o])s=o-1;else if(e>=n[o+1])i=o+1;else{i=o;break}}return{col:e-n[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Kt(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,i){if(!this.map)return!1;let s=this.map.consumer(),o=s.originalPositionFor({column:t,line:e});if(!o.source)return!1;let a;typeof n=="number"&&(a=s.originalPositionFor({column:i,line:n}));let l;Vt(o.source)?l=Fe(o.source):l=new URL(o.source,this.map.consumer().sourceRoot||Fe(this.map.mapFile));let c={column:o.column,endColumn:a&&a.column,endLine:a&&a.line,line:o.line,url:l.toString()};if(l.protocol==="file:")if(Bn)c.file=Bn(l);else throw new Error("file: protocol is not available in this PostCSS build");let u=s.sourceContentFor(o.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 bt=rt;rt.default=rt;Pt&&Pt.registerInput&&Pt.registerInput(rt);let{SourceMapConsumer:Cr,SourceMapGenerator:Xe}=V,{dirname:et,relative:Sr,resolve:Ar,sep:_r}=V,{pathToFileURL:jn}=V,io=bt,so=!!(Cr&&Xe),oo=!!(et&&Ar&&Sr&&_r),ao=class{constructor(e,t,n,i){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,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=`
94
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function l(r){return r[0].toUpperCase()+r.slice(1)}class u{constructor(e){this.builder=e}atrule(e,t){let s="@"+e.name,f=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?s+=e.raws.afterName:f&&(s+=" "),e.nodes)this.block(e,s+f);else{let p=(e.raws.between||"")+(t?";":"");this.builder(s+f+p,e)}}beforeAfter(e,t){let s;e.type==="decl"?s=this.raw(e,null,"beforeDecl"):e.type==="comment"?s=this.raw(e,null,"beforeComment"):t==="before"?s=this.raw(e,null,"beforeRule"):s=this.raw(e,null,"beforeClose");let f=e.parent,p=0;for(;f&&f.type!=="root";)p+=1,f=f.parent;if(s.includes(`
95
+ `)){let h=this.raw(e,null,"indent");if(h.length)for(let i=0;i<p;i++)s+=h}return s}block(e,t){let s=this.raw(e,"between","beforeOpen");this.builder(t+s+"{",e,"start");let f;e.nodes&&e.nodes.length?(this.body(e),f=this.raw(e,"after")):f=this.raw(e,"after","emptyBody"),f&&this.builder(f),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let s=this.raw(e,"semicolon");for(let f=0;f<e.nodes.length;f++){let p=e.nodes[f],h=this.raw(p,"before");h&&this.builder(h),this.stringify(p,t!==f||s)}}comment(e){let t=this.raw(e,"left","commentLeft"),s=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+s+"*/",e)}decl(e,t){let s=this.raw(e,"between","colon"),f=e.prop+s+this.rawValue(e,"value");e.important&&(f+=e.raws.important||" !important"),t&&(f+=";"),this.builder(f,e)}document(e){this.body(e)}raw(e,t,s){let f;if(s||(s=t),t&&(f=e.raws[t],typeof f<"u"))return f;let p=e.parent;if(s==="before"&&(!p||p.type==="root"&&p.first===e||p&&p.type==="document"))return"";if(!p)return n[s];let h=e.root();if(h.rawCache||(h.rawCache={}),typeof h.rawCache[s]<"u")return h.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(e,s);{let i="raw"+l(s);this[i]?f=this[i](h,e):h.walk(c=>{if(f=c.raws[t],typeof f<"u")return!1})}return typeof f>"u"&&(f=n[s]),h.rawCache[s]=f,f}rawBeforeClose(e){let t;return e.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return t=s.raws.after,t.includes(`
96
+ `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let s;return e.walkComments(f=>{if(typeof f.raws.before<"u")return s=f.raws.before,s.includes(`
97
+ `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(t,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(e,t){let s;return e.walkDecls(f=>{if(typeof f.raws.before<"u")return s=f.raws.before,s.includes(`
98
+ `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(t,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(e){let t;return e.walk(s=>{if(s.type!=="decl"&&(t=s.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(s=>{if(s.nodes&&(s.parent!==e||e.first!==s)&&typeof s.raws.before<"u")return t=s.raws.before,t.includes(`
99
+ `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(s=>{if(typeof s.raws.between<"u")return t=s.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(s=>{if(s.nodes&&s.nodes.length===0&&(t=s.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(s=>{let f=s.parent;if(f&&f!==e&&f.parent&&f.parent===e&&typeof s.raws.before<"u"){let p=s.raws.before.split(`
100
+ `);return t=p[p.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(t=s.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let s=e[t],f=e.raws[t];return f&&f.value===s?f.raw:s}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)}}return Ut=u,u.default=u,Ut}var Ft,br;function it(){if(br)return Ft;br=1;let n=Zr();function l(u,r){new n(r).stringify(u)}return Ft=l,l.default=l,Ft}var Xe={},yr;function bn(){return yr||(yr=1,Xe.isClean=Symbol("isClean"),Xe.my=Symbol("my")),Xe}var $t,wr;function st(){if(wr)return $t;wr=1;let n=mn(),l=Zr(),u=it(),{isClean:r,my:e}=bn();function t(p,h){let i=new p.constructor;for(let c in p){if(!Object.prototype.hasOwnProperty.call(p,c)||c==="proxyCache")continue;let a=p[c],o=typeof a;c==="parent"&&o==="object"?h&&(i[c]=h):c==="source"?i[c]=a:Array.isArray(a)?i[c]=a.map(d=>t(d,i)):(o==="object"&&a!==null&&(a=t(a)),i[c]=a)}return i}function s(p,h){if(h&&typeof h.offset<"u")return h.offset;let i=1,c=1,a=0;for(let o=0;o<p.length;o++){if(c===h.line&&i===h.column){a=o;break}p[o]===`
101
+ `?(i=1,c+=1):i+=1}return a}class f{get proxyOf(){return this}constructor(h={}){this.raws={},this[r]=!1,this[e]=!0;for(let i in h)if(i==="nodes"){this.nodes=[];for(let c of h[i])typeof c.clone=="function"?this.append(c.clone()):this.append(c)}else this[i]=h[i]}addToError(h){if(h.postcssNode=this,h.stack&&this.source&&/\n\s{4}at /.test(h.stack)){let i=this.source;h.stack=h.stack.replace(/\n\s{4}at /,`$&${i.input.from}:${i.start.line}:${i.start.column}$&`)}return h}after(h){return this.parent.insertAfter(this,h),this}assign(h={}){for(let i in h)this[i]=h[i];return this}before(h){return this.parent.insertBefore(this,h),this}cleanRaws(h){delete this.raws.before,delete this.raws.after,h||delete this.raws.between}clone(h={}){let i=t(this);for(let c in h)i[c]=h[c];return i}cloneAfter(h={}){let i=this.clone(h);return this.parent.insertAfter(this,i),i}cloneBefore(h={}){let i=this.clone(h);return this.parent.insertBefore(this,i),i}error(h,i={}){if(this.source){let{end:c,start:a}=this.rangeBy(i);return this.source.input.error(h,{column:a.column,line:a.line},{column:c.column,line:c.line},i)}return new n(h)}getProxyProcessor(){return{get(h,i){return i==="proxyOf"?h:i==="root"?()=>h.root().toProxy():h[i]},set(h,i,c){return h[i]===c||(h[i]=c,(i==="prop"||i==="value"||i==="name"||i==="params"||i==="important"||i==="text")&&h.markDirty()),!0}}}markClean(){this[r]=!0}markDirty(){if(this[r]){this[r]=!1;let h=this;for(;h=h.parent;)h[r]=!1}}next(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h+1]}positionBy(h={}){let i=this.source.start;if(h.index)i=this.positionInside(h.index);else if(h.word){let c="document"in this.source.input?this.source.input.document:this.source.input.css,o=c.slice(s(c,this.source.start),s(c,this.source.end)).indexOf(h.word);o!==-1&&(i=this.positionInside(o))}return i}positionInside(h){let i=this.source.start.column,c=this.source.start.line,a="document"in this.source.input?this.source.input.document:this.source.input.css,o=s(a,this.source.start),d=o+h;for(let g=o;g<d;g++)a[g]===`
102
+ `?(i=1,c+=1):i+=1;return{column:i,line:c,offset:d}}prev(){if(!this.parent)return;let h=this.parent.index(this);return this.parent.nodes[h-1]}rangeBy(h={}){let i="document"in this.source.input?this.source.input.document:this.source.input.css,c={column:this.source.start.column,line:this.source.start.line,offset:s(i,this.source.start)},a=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:s(i,this.source.end)+1}:{column:c.column+1,line:c.line,offset:c.offset+1};if(h.word){let d=i.slice(s(i,this.source.start),s(i,this.source.end)).indexOf(h.word);d!==-1&&(c=this.positionInside(d),a=this.positionInside(d+h.word.length))}else h.start?c={column:h.start.column,line:h.start.line,offset:s(i,h.start)}:h.index&&(c=this.positionInside(h.index)),h.end?a={column:h.end.column,line:h.end.line,offset:s(i,h.end)}:typeof h.endIndex=="number"?a=this.positionInside(h.endIndex):h.index&&(a=this.positionInside(h.index+1));return(a.line<c.line||a.line===c.line&&a.column<=c.column)&&(a={column:c.column+1,line:c.line,offset:c.offset+1}),{end:a,start:c}}raw(h,i){return new l().raw(this,h,i)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...h){if(this.parent){let i=this,c=!1;for(let a of h)a===this?c=!0:c?(this.parent.insertAfter(i,a),i=a):this.parent.insertBefore(i,a);c||this.remove()}return this}root(){let h=this;for(;h.parent&&h.parent.type!=="document";)h=h.parent;return h}toJSON(h,i){let c={},a=i==null;i=i||new Map;let o=0;for(let d in this){if(!Object.prototype.hasOwnProperty.call(this,d)||d==="parent"||d==="proxyCache")continue;let g=this[d];if(Array.isArray(g))c[d]=g.map(b=>typeof b=="object"&&b.toJSON?b.toJSON(null,i):b);else if(typeof g=="object"&&g.toJSON)c[d]=g.toJSON(null,i);else if(d==="source"){if(g==null)continue;let b=i.get(g.input);b==null&&(b=o,i.set(g.input,o),o++),c[d]={end:g.end,inputId:b,start:g.start}}else c[d]=g}return a&&(c.inputs=[...i.keys()].map(d=>d.toJSON())),c}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(h=u){h.stringify&&(h=h.stringify);let i="";return h(this,c=>{i+=c}),i}warn(h,i,c={}){let a={node:this};for(let o in c)a[o]=c[o];return h.warn(i,a)}}return $t=f,f.default=f,$t}var Ht,Er;function ot(){if(Er)return Ht;Er=1;let n=st();class l extends n{constructor(r){super(r),this.type="comment"}}return Ht=l,l.default=l,Ht}var Wt,vr;function at(){if(vr)return Wt;vr=1;let n=st();class l extends n{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(r){r&&typeof r.value<"u"&&typeof r.value!="string"&&(r={...r,value:String(r.value)}),super(r),this.type="decl"}}return Wt=l,l.default=l,Wt}var Gt,xr;function Pe(){if(xr)return Gt;xr=1;let n=ot(),l=at(),u=st(),{isClean:r,my:e}=bn(),t,s,f,p;function h(a){return a.map(o=>(o.nodes&&(o.nodes=h(o.nodes)),delete o.source,o))}function i(a){if(a[r]=!1,a.proxyOf.nodes)for(let o of a.proxyOf.nodes)i(o)}class c extends u{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...o){for(let d of o){let g=this.normalize(d,this.last);for(let b of g)this.proxyOf.nodes.push(b)}return this.markDirty(),this}cleanRaws(o){if(super.cleanRaws(o),this.nodes)for(let d of this.nodes)d.cleanRaws(o)}each(o){if(!this.proxyOf.nodes)return;let d=this.getIterator(),g,b;for(;this.indexes[d]<this.proxyOf.nodes.length&&(g=this.indexes[d],b=o(this.proxyOf.nodes[g],g),b!==!1);)this.indexes[d]+=1;return delete this.indexes[d],b}every(o){return this.nodes.every(o)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let o=this.lastEach;return this.indexes[o]=0,o}getProxyProcessor(){return{get(o,d){return d==="proxyOf"?o:o[d]?d==="each"||typeof d=="string"&&d.startsWith("walk")?(...g)=>o[d](...g.map(b=>typeof b=="function"?(v,S)=>b(v.toProxy(),S):b)):d==="every"||d==="some"?g=>o[d]((b,...v)=>g(b.toProxy(),...v)):d==="root"?()=>o.root().toProxy():d==="nodes"?o.nodes.map(g=>g.toProxy()):d==="first"||d==="last"?o[d].toProxy():o[d]:o[d]},set(o,d,g){return o[d]===g||(o[d]=g,(d==="name"||d==="params"||d==="selector")&&o.markDirty()),!0}}}index(o){return typeof o=="number"?o:(o.proxyOf&&(o=o.proxyOf),this.proxyOf.nodes.indexOf(o))}insertAfter(o,d){let g=this.index(o),b=this.normalize(d,this.proxyOf.nodes[g]).reverse();g=this.index(o);for(let S of b)this.proxyOf.nodes.splice(g+1,0,S);let v;for(let S in this.indexes)v=this.indexes[S],g<v&&(this.indexes[S]=v+b.length);return this.markDirty(),this}insertBefore(o,d){let g=this.index(o),b=g===0?"prepend":!1,v=this.normalize(d,this.proxyOf.nodes[g],b).reverse();g=this.index(o);for(let E of v)this.proxyOf.nodes.splice(g,0,E);let S;for(let E in this.indexes)S=this.indexes[E],g<=S&&(this.indexes[E]=S+v.length);return this.markDirty(),this}normalize(o,d){if(typeof o=="string")o=h(s(o).nodes);else if(typeof o>"u")o=[];else if(Array.isArray(o)){o=o.slice(0);for(let b of o)b.parent&&b.parent.removeChild(b,"ignore")}else if(o.type==="root"&&this.type!=="document"){o=o.nodes.slice(0);for(let b of o)b.parent&&b.parent.removeChild(b,"ignore")}else if(o.type)o=[o];else if(o.prop){if(typeof o.value>"u")throw new Error("Value field is missed in node creation");typeof o.value!="string"&&(o.value=String(o.value)),o=[new l(o)]}else if(o.selector||o.selectors)o=[new p(o)];else if(o.name)o=[new t(o)];else if(o.text)o=[new n(o)];else throw new Error("Unknown node type in node creation");return o.map(b=>(b[e]||c.rebuild(b),b=b.proxyOf,b.parent&&b.parent.removeChild(b),b[r]&&i(b),b.raws||(b.raws={}),typeof b.raws.before>"u"&&d&&typeof d.raws.before<"u"&&(b.raws.before=d.raws.before.replace(/\S/g,"")),b.parent=this.proxyOf,b))}prepend(...o){o=o.reverse();for(let d of o){let g=this.normalize(d,this.first,"prepend").reverse();for(let b of g)this.proxyOf.nodes.unshift(b);for(let b in this.indexes)this.indexes[b]=this.indexes[b]+g.length}return this.markDirty(),this}push(o){return o.parent=this,this.proxyOf.nodes.push(o),this}removeAll(){for(let o of this.proxyOf.nodes)o.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(o){o=this.index(o),this.proxyOf.nodes[o].parent=void 0,this.proxyOf.nodes.splice(o,1);let d;for(let g in this.indexes)d=this.indexes[g],d>=o&&(this.indexes[g]=d-1);return this.markDirty(),this}replaceValues(o,d,g){return g||(g=d,d={}),this.walkDecls(b=>{d.props&&!d.props.includes(b.prop)||d.fast&&!b.value.includes(d.fast)||(b.value=b.value.replace(o,g))}),this.markDirty(),this}some(o){return this.nodes.some(o)}walk(o){return this.each((d,g)=>{let b;try{b=o(d,g)}catch(v){throw d.addToError(v)}return b!==!1&&d.walk&&(b=d.walk(o)),b})}walkAtRules(o,d){return d?o instanceof RegExp?this.walk((g,b)=>{if(g.type==="atrule"&&o.test(g.name))return d(g,b)}):this.walk((g,b)=>{if(g.type==="atrule"&&g.name===o)return d(g,b)}):(d=o,this.walk((g,b)=>{if(g.type==="atrule")return d(g,b)}))}walkComments(o){return this.walk((d,g)=>{if(d.type==="comment")return o(d,g)})}walkDecls(o,d){return d?o instanceof RegExp?this.walk((g,b)=>{if(g.type==="decl"&&o.test(g.prop))return d(g,b)}):this.walk((g,b)=>{if(g.type==="decl"&&g.prop===o)return d(g,b)}):(d=o,this.walk((g,b)=>{if(g.type==="decl")return d(g,b)}))}walkRules(o,d){return d?o instanceof RegExp?this.walk((g,b)=>{if(g.type==="rule"&&o.test(g.selector))return d(g,b)}):this.walk((g,b)=>{if(g.type==="rule"&&g.selector===o)return d(g,b)}):(d=o,this.walk((g,b)=>{if(g.type==="rule")return d(g,b)}))}}return c.registerParse=a=>{s=a},c.registerRule=a=>{p=a},c.registerAtRule=a=>{t=a},c.registerRoot=a=>{f=a},Gt=c,c.default=c,c.rebuild=a=>{a.type==="atrule"?Object.setPrototypeOf(a,t.prototype):a.type==="rule"?Object.setPrototypeOf(a,p.prototype):a.type==="decl"?Object.setPrototypeOf(a,l.prototype):a.type==="comment"?Object.setPrototypeOf(a,n.prototype):a.type==="root"&&Object.setPrototypeOf(a,f.prototype),a[e]=!0,a.nodes&&a.nodes.forEach(o=>{c.rebuild(o)})},Gt}var Vt,Sr;function yn(){if(Sr)return Vt;Sr=1;let n=Pe();class l extends n{constructor(r){super(r),this.type="atrule"}append(...r){return this.proxyOf.nodes||(this.nodes=[]),super.append(...r)}prepend(...r){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...r)}}return Vt=l,l.default=l,n.registerAtRule(l),Vt}var Kt,Cr;function wn(){if(Cr)return Kt;Cr=1;let n=Pe(),l,u;class r extends n{constructor(t){super({type:"document",...t}),this.nodes||(this.nodes=[])}toResult(t={}){return new l(new u,this,t).stringify()}}return r.registerLazyResult=e=>{l=e},r.registerProcessor=e=>{u=e},Kt=r,r.default=r,Kt}var Jt,Rr;function Ps(){if(Rr)return Jt;Rr=1;let n="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Jt={nanoid:(r=21)=>{let e="",t=r|0;for(;t--;)e+=n[Math.random()*64|0];return e},customAlphabet:(r,e=21)=>(t=e)=>{let s="",f=t|0;for(;f--;)s+=r[Math.random()*r.length|0];return s}},Jt}var Zt,Ar;function Qr(){if(Ar)return Zt;Ar=1;let{existsSync:n,readFileSync:l}=ge,{dirname:u,join:r}=ge,{SourceMapConsumer:e,SourceMapGenerator:t}=ge;function s(p){return Buffer?Buffer.from(p,"base64").toString():window.atob(p)}class f{constructor(h,i){if(i.map===!1)return;this.loadAnnotation(h),this.inline=this.startWith(this.annotation,"data:");let c=i.map?i.map.prev:void 0,a=this.loadMap(i.from,c);!this.mapFile&&i.from&&(this.mapFile=i.from),this.mapFile&&(this.root=u(this.mapFile)),a&&(this.text=a)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(h){let i=/^data:application\/json;charset=utf-?8;base64,/,c=/^data:application\/json;base64,/,a=/^data:application\/json;charset=utf-?8,/,o=/^data:application\/json,/,d=h.match(a)||h.match(o);if(d)return decodeURIComponent(h.substr(d[0].length));let g=h.match(i)||h.match(c);if(g)return s(h.substr(g[0].length));let b=h.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+b)}getAnnotationURL(h){return h.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(h){return typeof h!="object"?!1:typeof h.mappings=="string"||typeof h._mappings=="string"||Array.isArray(h.sections)}loadAnnotation(h){let i=h.match(/\/\*\s*# sourceMappingURL=/g);if(!i)return;let c=h.lastIndexOf(i.pop()),a=h.indexOf("*/",c);c>-1&&a>-1&&(this.annotation=this.getAnnotationURL(h.substring(c,a)))}loadFile(h){if(this.root=u(h),n(h))return this.mapFile=h,l(h,"utf-8").toString().trim()}loadMap(h,i){if(i===!1)return!1;if(i){if(typeof i=="string")return i;if(typeof i=="function"){let c=i(h);if(c){let a=this.loadFile(c);if(!a)throw new Error("Unable to load previous source map: "+c.toString());return a}}else{if(i instanceof e)return t.fromSourceMap(i).toString();if(i instanceof t)return i.toString();if(this.isMap(i))return JSON.stringify(i);throw new Error("Unsupported previous source map format: "+i.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let c=this.annotation;return h&&(c=r(u(h),c)),this.loadFile(c)}}}startWith(h,i){return h?h.substr(0,i.length)===i:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Zt=f,f.default=f,Zt}var Qt,kr;function lt(){if(kr)return Qt;kr=1;let{nanoid:n}=Ps(),{isAbsolute:l,resolve:u}=ge,{SourceMapConsumer:r,SourceMapGenerator:e}=ge,{fileURLToPath:t,pathToFileURL:s}=ge,f=mn(),p=Qr(),h=ge,i=Symbol("lineToIndexCache"),c=!!(r&&e),a=!!(u&&l);function o(g){if(g[i])return g[i];let b=g.css.split(`
103
+ `),v=new Array(b.length),S=0;for(let E=0,y=b.length;E<y;E++)v[E]=S,S+=b[E].length+1;return g[i]=v,v}class d{get from(){return this.file||this.id}constructor(b,v={}){if(b===null||typeof b>"u"||typeof b=="object"&&!b.toString)throw new Error(`PostCSS received ${b} instead of CSS string`);if(this.css=b.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,v.document&&(this.document=v.document.toString()),v.from&&(!a||/^\w+:\/\//.test(v.from)||l(v.from)?this.file=v.from:this.file=u(v.from)),a&&c){let S=new p(this.css,v);if(S.text){this.map=S;let E=S.consumer().file;!this.file&&E&&(this.file=this.mapResolve(E))}}this.file||(this.id="<input css "+n(6)+">"),this.map&&(this.map.file=this.from)}error(b,v,S,E={}){let y,w,x,R,k;if(v&&typeof v=="object"){let A=v,M=S;if(typeof A.offset=="number"){R=A.offset;let O=this.fromOffset(R);v=O.line,S=O.col}else v=A.line,S=A.column,R=this.fromLineAndColumn(v,S);if(typeof M.offset=="number"){x=M.offset;let O=this.fromOffset(x);w=O.line,y=O.col}else w=M.line,y=M.column,x=this.fromLineAndColumn(M.line,M.column)}else if(S)R=this.fromLineAndColumn(v,S);else{R=v;let A=this.fromOffset(R);v=A.line,S=A.col}let _=this.origin(v,S,w,y);return _?k=new f(b,_.endLine===void 0?_.line:{column:_.column,line:_.line},_.endLine===void 0?_.column:{column:_.endColumn,line:_.endLine},_.source,_.file,E.plugin):k=new f(b,w===void 0?v:{column:S,line:v},w===void 0?S:{column:y,line:w},this.css,this.file,E.plugin),k.input={column:S,endColumn:y,endLine:w,endOffset:x,line:v,offset:R,source:this.css},this.file&&(s&&(k.input.url=s(this.file).toString()),k.input.file=this.file),k}fromLineAndColumn(b,v){return o(this)[b-1]+v-1}fromOffset(b){let v=o(this),S=v[v.length-1],E=0;if(b>=S)E=v.length-1;else{let y=v.length-2,w;for(;E<y;)if(w=E+(y-E>>1),b<v[w])y=w-1;else if(b>=v[w+1])E=w+1;else{E=w;break}}return{col:b-v[E]+1,line:E+1}}mapResolve(b){return/^\w+:\/\//.test(b)?b:u(this.map.consumer().sourceRoot||this.map.root||".",b)}origin(b,v,S,E){if(!this.map)return!1;let y=this.map.consumer(),w=y.originalPositionFor({column:v,line:b});if(!w.source)return!1;let x;typeof S=="number"&&(x=y.originalPositionFor({column:E,line:S}));let R;l(w.source)?R=s(w.source):R=new URL(w.source,this.map.consumer().sourceRoot||s(this.map.mapFile));let k={column:w.column,endColumn:x&&x.column,endLine:x&&x.line,line:w.line,url:R.toString()};if(R.protocol==="file:")if(t)k.file=t(R);else throw new Error("file: protocol is not available in this PostCSS build");let _=y.sourceContentFor(w.source);return _&&(k.source=_),k}toJSON(){let b={};for(let v of["hasBOM","css","file","id"])this[v]!=null&&(b[v]=this[v]);return this.map&&(b.map={...this.map},b.map.consumerCache&&(b.map.consumerCache=void 0)),b}}return Qt=d,d.default=d,h&&h.registerInput&&h.registerInput(d),Qt}var Yt,_r;function $e(){if(_r)return Yt;_r=1;let n=Pe(),l,u;class r extends n{constructor(t){super(t),this.type="root",this.nodes||(this.nodes=[])}normalize(t,s,f){let p=super.normalize(t);if(s){if(f==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let h of p)h.raws.before=s.raws.before}return p}removeChild(t,s){let f=this.index(t);return!s&&f===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[f].raws.before),super.removeChild(t)}toResult(t={}){return new l(new u,this,t).stringify()}}return r.registerLazyResult=e=>{l=e},r.registerProcessor=e=>{u=e},Yt=r,r.default=r,n.registerRoot(r),Yt}var Xt,Nr;function Yr(){if(Nr)return Xt;Nr=1;let n={comma(l){return n.split(l,[","],!0)},space(l){let u=[" ",`
104
+ `," "];return n.split(l,u)},split(l,u,r){let e=[],t="",s=!1,f=0,p=!1,h="",i=!1;for(let c of l)i?i=!1:c==="\\"?i=!0:p?c===h&&(p=!1):c==='"'||c==="'"?(p=!0,h=c):c==="("?f+=1:c===")"?f>0&&(f-=1):f===0&&u.includes(c)&&(s=!0),s?(t!==""&&e.push(t.trim()),t="",s=!1):t+=c;return(r||t!=="")&&e.push(t.trim()),e}};return Xt=n,n.default=n,Xt}var en,Or;function En(){if(Or)return en;Or=1;let n=Pe(),l=Yr();class u extends n{get selectors(){return l.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,s=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(s)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}}return en=u,u.default=u,n.registerRule(u),en}var tn,Mr;function Ts(){if(Mr)return tn;Mr=1;let n=yn(),l=ot(),u=at(),r=lt(),e=Qr(),t=$e(),s=En();function f(p,h){if(Array.isArray(p))return p.map(a=>f(a));let{inputs:i,...c}=p;if(i){h=[];for(let a of i){let o={...a,__proto__:r.prototype};o.map&&(o.map={...o.map,__proto__:e.prototype}),h.push(o)}}if(c.nodes&&(c.nodes=p.nodes.map(a=>f(a,h))),c.source){let{inputId:a,...o}=c.source;c.source=o,a!=null&&(c.source.input=h[a])}if(c.type==="root")return new t(c);if(c.type==="decl")return new u(c);if(c.type==="rule")return new s(c);if(c.type==="comment")return new l(c);if(c.type==="atrule")return new n(c);throw new Error("Unknown node type: "+p.type)}return tn=f,f.default=f,tn}var nn,Pr;function Xr(){if(Pr)return nn;Pr=1;let{dirname:n,relative:l,resolve:u,sep:r}=ge,{SourceMapConsumer:e,SourceMapGenerator:t}=ge,{pathToFileURL:s}=ge,f=lt(),p=!!(e&&t),h=!!(n&&u&&l&&r);class i{constructor(a,o,d,g){this.stringify=a,this.mapOpts=d.map||{},this.root=o,this.opts=d,this.css=g,this.originalCSS=g,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let a;this.isInline()?a="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?a=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?a=this.mapOpts.annotation(this.opts.to,this.root):a=this.outputFile()+".map";let o=`
102
105
  `;this.css.includes(`\r
103
- `)&&(t=`\r
104
- `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),n=e.root||et(e.file),i;this.mapOpts.sourcesContent===!1?(i=new Cr(e.text),i.sourcesContent&&(i.sourcesContent=i.sourcesContent.map(()=>null))):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(n)))}}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(),oo&&so&&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=Xe.fromSourceMap(e)}else this.map=new Xe({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 Xe({file:this.outputFile()});let e=1,t=1,n="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,o;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=n,i.original.line=1,i.original.column=0,this.map.addMapping(i))),s=a.match(/\n/g),s?(e+=s.length,o=a.lastIndexOf(`
105
- `),t=a.length-o):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=n,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 n=this.opts.to?et(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=et(Ar(n,this.mapOpts.annotation)));let i=Sr(n,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 io(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 n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let i=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));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(jn){let n=jn(e).toString();return this.memoizedFileURLs.set(e,n),n}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;_r==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var Rr=ao;let lo=pt,Jt=class extends lo{constructor(e){super(e),this.type="comment"}};var yt=Jt;Jt.default=Jt;let{isClean:kr,my:Nr}=Ie,Or=mt,Mr=yt,co=pt,Pr,cn,un,Tr;function Ir(r){return r.map(e=>(e.nodes&&(e.nodes=Ir(e.nodes)),delete e.source,e))}function Br(r){if(r[kr]=!1,r.proxyOf.nodes)for(let e of r.proxyOf.nodes)Br(e)}let ee=class Lr extends co{append(...e){for(let t of e){let n=this.normalize(t,this.last);for(let i of n)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(),n,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],i=e(this.proxyOf.nodes[n],n),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")?(...n)=>e[t](...n.map(i=>typeof i=="function"?(s,o)=>i(s.toProxy(),o):i)):t==="every"||t==="some"?n=>e[t]((i,...s)=>n(i.toProxy(),...s)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(n=>n.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(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 n=this.index(e),i=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let o of i)this.proxyOf.nodes.splice(n+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],n<s&&(this.indexes[o]=s+i.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),i=n===0?"prepend":!1,s=this.normalize(t,this.proxyOf.nodes[n],i).reverse();n=this.index(e);for(let a of s)this.proxyOf.nodes.splice(n,0,a);let o;for(let a in this.indexes)o=this.indexes[a],n<=o&&(this.indexes[a]=o+s.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Ir(Pr(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 Or(e)]}else if(e.selector)e=[new cn(e)];else if(e.name)e=[new un(e)];else if(e.text)e=[new Mr(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[Nr]||Lr.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[kr]&&Br(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 n=this.normalize(t,this.first,"prepend").reverse();for(let i of n)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+n.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 n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=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,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let i;try{i=e(t,n)}catch(s){throw t.addToError(s)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="atrule"&&e.test(n.name))return t(n,i)}):this.walk((n,i)=>{if(n.type==="atrule"&&n.name===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="atrule")return t(n,i)}))}walkComments(e){return this.walk((t,n)=>{if(t.type==="comment")return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="decl"&&e.test(n.prop))return t(n,i)}):this.walk((n,i)=>{if(n.type==="decl"&&n.prop===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="decl")return t(n,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,i)=>{if(n.type==="rule"&&e.test(n.selector))return t(n,i)}):this.walk((n,i)=>{if(n.type==="rule"&&n.selector===e)return t(n,i)}):(t=e,this.walk((n,i)=>{if(n.type==="rule")return t(n,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]}};ee.registerParse=r=>{Pr=r};ee.registerRule=r=>{cn=r};ee.registerAtRule=r=>{un=r};ee.registerRoot=r=>{Tr=r};var ce=ee;ee.default=ee;ee.rebuild=r=>{r.type==="atrule"?Object.setPrototypeOf(r,un.prototype):r.type==="rule"?Object.setPrototypeOf(r,cn.prototype):r.type==="decl"?Object.setPrototypeOf(r,Or.prototype):r.type==="comment"?Object.setPrototypeOf(r,Mr.prototype):r.type==="root"&&Object.setPrototypeOf(r,Tr.prototype),r[Nr]=!0,r.nodes&&r.nodes.forEach(e=>{ee.rebuild(e)})};let uo=ce,$r,jr,Re=class extends uo{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new $r(new jr,this,e).stringify()}};Re.registerLazyResult=r=>{$r=r};Re.registerProcessor=r=>{jr=r};var fn=Re;Re.default=Re;let Zt=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let n=t.node.rangeBy(t);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in t)this[n]=t[n]}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 Dr=Zt;Zt.default=Zt;let fo=Dr,Qt=class{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,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 n=new fo(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}get content(){return this.css}};var hn=Qt;Qt.default=Qt;const It=39,Dn=34,He=92,Un=47,qe=10,Ee=32,We=12,Ge=9,Ve=13,ho=91,go=93,po=40,mo=41,bo=123,yo=125,wo=59,Eo=42,xo=58,vo=64,Ke=/[\t\n\f\r "#'()/;[\\\]{}]/g,Je=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Co=/.[\r\n"'(/\\]/,zn=/[\da-f]/i;var So=function(e,t={}){let n=e.css.valueOf(),i=t.ignoreErrors,s,o,a,l,c,u,g,h,p,y,C=n.length,m=0,x=[],S=[];function v(){return m}function w(D){throw e.error("Unclosed "+D,m)}function k(){return S.length===0&&m>=C}function M(D){if(S.length)return S.pop();if(m>=C)return;let $=D?D.ignoreUnclosed:!1;switch(s=n.charCodeAt(m),s){case qe:case Ee:case Ge:case Ve:case We:{o=m;do o+=1,s=n.charCodeAt(o);while(s===Ee||s===qe||s===Ge||s===Ve||s===We);y=["space",n.slice(m,o)],m=o-1;break}case ho:case go:case bo:case yo:case xo:case wo:case mo:{let U=String.fromCharCode(s);y=[U,U,m];break}case po:{if(h=x.length?x.pop()[1]:"",p=n.charCodeAt(m+1),h==="url"&&p!==It&&p!==Dn&&p!==Ee&&p!==qe&&p!==Ge&&p!==We&&p!==Ve){o=m;do{if(u=!1,o=n.indexOf(")",o+1),o===-1)if(i||$){o=m;break}else w("bracket");for(g=o;n.charCodeAt(g-1)===He;)g-=1,u=!u}while(u);y=["brackets",n.slice(m,o+1),m,o],m=o}else o=n.indexOf(")",m+1),l=n.slice(m,o+1),o===-1||Co.test(l)?y=["(","(",m]:(y=["brackets",l,m,o],m=o);break}case It:case Dn:{a=s===It?"'":'"',o=m;do{if(u=!1,o=n.indexOf(a,o+1),o===-1)if(i||$){o=m+1;break}else w("string");for(g=o;n.charCodeAt(g-1)===He;)g-=1,u=!u}while(u);y=["string",n.slice(m,o+1),m,o],m=o;break}case vo:{Ke.lastIndex=m+1,Ke.test(n),Ke.lastIndex===0?o=n.length-1:o=Ke.lastIndex-2,y=["at-word",n.slice(m,o+1),m,o],m=o;break}case He:{for(o=m,c=!0;n.charCodeAt(o+1)===He;)o+=1,c=!c;if(s=n.charCodeAt(o+1),c&&s!==Un&&s!==Ee&&s!==qe&&s!==Ge&&s!==Ve&&s!==We&&(o+=1,zn.test(n.charAt(o)))){for(;zn.test(n.charAt(o+1));)o+=1;n.charCodeAt(o+1)===Ee&&(o+=1)}y=["word",n.slice(m,o+1),m,o],m=o;break}default:{s===Un&&n.charCodeAt(m+1)===Eo?(o=n.indexOf("*/",m+2)+1,o===0&&(i||$?o=n.length:w("comment")),y=["comment",n.slice(m,o+1),m,o],m=o):(Je.lastIndex=m+1,Je.test(n),Je.lastIndex===0?o=n.length-1:o=Je.lastIndex-2,y=["word",n.slice(m,o+1),m,o],x.push(y),m=o);break}}return m++,y}function T(D){S.push(D)}return{back:T,endOfFile:k,nextToken:M,position:v}};let Ur=ce,it=class extends Ur{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 dn=it;it.default=it;Ur.registerAtRule(it);let zr=ce,Fr,Hr,me=class extends zr{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let i=super.normalize(e);if(t){if(n==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let s of i)s.raws.before=t.raws.before}return i}removeChild(e,t){let n=this.index(e);return!t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new Fr(new Hr,this,e).stringify()}};me.registerLazyResult=r=>{Fr=r};me.registerProcessor=r=>{Hr=r};var Be=me;me.default=me;zr.registerRoot(me);let ke={comma(r){return ke.split(r,[","],!0)},space(r){let e=[" ",`
106
- `," "];return ke.split(r,e)},split(r,e,t){let n=[],i="",s=!1,o=0,a=!1,l="",c=!1;for(let u of r)c?c=!1:u==="\\"?c=!0:a?u===l&&(a=!1):u==='"'||u==="'"?(a=!0,l=u):u==="("?o+=1:u===")"?o>0&&(o-=1):o===0&&e.includes(u)&&(s=!0),s?(i!==""&&n.push(i.trim()),i="",s=!1):i+=u;return(t||i!=="")&&n.push(i.trim()),n}};var qr=ke;ke.default=ke;let Wr=ce,Ao=qr,st=class extends Wr{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return Ao.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}};var gn=st;st.default=st;Wr.registerRule(st);let _o=mt,Ro=So,ko=yt,No=dn,Oo=Be,Fn=gn;const Hn={empty:!0,space:!0};function Mo(r){for(let e=r.length-1;e>=0;e--){let t=r[e],n=t[3]||t[2];if(n)return n}}let Po=class{constructor(e){this.input=e,this.root=new Oo,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 No;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,i,s,o=!1,a=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?c.push(n==="("?")":"]"):n==="{"&&c.length>0?c.push("}"):n===c[c.length-1]&&c.pop(),c.length===0)if(n===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){a=!0;break}else if(n==="}"){if(l.length>0){for(s=l.length-1,i=l[s];i&&i[0]==="space";)i=l[--s];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()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(t.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(t,"params",l),o&&(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 n=0,i;for(let s=t-1;s>=0&&(i=e[s],!(i[0]!=="space"&&(n+=1,n===2)));s--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,n,i,s;for(let[o,a]of e.entries()){if(n=a,i=n[0],i==="("&&(t+=1),i===")"&&(t-=1),t===0&&i===":")if(!s)this.doubleColon(n);else{if(s[0]==="word"&&s[1]==="progid")continue;return o}s=n}return!1}comment(e){let t=new ko;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=Ro(this.input)}decl(e,t){let n=new _o;this.init(n,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]||Mo(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let c=e[0][0];if(c===":"||c==="space"||c==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){n.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),n.raws.between+=s[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let o=[],a;for(;e.length&&(a=e[0][0],!(a!=="space"&&a!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let c=e.length-1;c>=0;c--){if(s=e[c],s[1].toLowerCase()==="!important"){n.important=!0;let u=this.stringFrom(e,c);u=this.spacesFromEnd(e)+u,u!==" !important"&&(n.raws.important=u);break}else if(s[1].toLowerCase()==="important"){let u=e.slice(0),g="";for(let h=c;h>0;h--){let p=u[h][0];if(g.trim().indexOf("!")===0&&p!=="space")break;g=u.pop()[1]+g}g.trim().indexOf("!")===0&&(n.important=!0,n.raws.important=g,e=u)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(c=>c[0]!=="space"&&c[0]!=="comment")&&(n.raws.between+=o.map(c=>c[1]).join(""),o=[]),this.raw(n,"value",o.concat(e),t),n.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 Fn;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,n=null,i=!1,s=null,o=[],a=e[1].startsWith("--"),l=[],c=e;for(;c;){if(n=c[0],l.push(c),n==="("||n==="[")s||(s=c),o.push(n==="("?")":"]");else if(a&&i&&n==="{")s||(s=c),o.push("}");else if(o.length===0)if(n===";")if(i){this.decl(l,a);return}else break;else if(n==="{"){this.rule(l);return}else if(n==="}"){this.tokenizer.back(l.pop()),t=!0;break}else n===":"&&(i=!0);else n===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(s),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,n,i){let s,o,a=n.length,l="",c=!0,u,g;for(let h=0;h<a;h+=1)s=n[h],o=s[0],o==="space"&&h===a-1&&!i?c=!1:o==="comment"?(g=n[h-1]?n[h-1][0]:"empty",u=n[h+1]?n[h+1][0]:"empty",!Hn[g]&&!Hn[u]?l.slice(-1)===","?c=!1:l+=s[1]:c=!1):l+=s[1];if(!c){let h=n.reduce((p,y)=>p+y[1],"");e.raws[t]={raw:h,value:l}}e[t]=l}rule(e){e.pop();let t=new Fn;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],t==="space");)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let i=t;i<e.length;i++)n+=e[i][1];return e.splice(t,e.length-t),n}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 To=Po;let Io=ce,Bo=To,Lo=bt;function ot(r,e){let t=new Lo(r,e),n=new Bo(t);try{n.parse()}catch(i){throw i}return n.root}var pn=ot;ot.default=ot;Io.registerParse(ot);let{isClean:Q,my:$o}=Ie,jo=Rr,Do=gt,Uo=ce,zo=fn,qn=hn,Fo=pn,Ho=Be;const qo={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Wo={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},Go={Once:!0,postcssPlugin:!0,prepare:!0},be=0;function xe(r){return typeof r=="object"&&typeof r.then=="function"}function Gr(r){let e=!1,t=qo[r.type];return r.type==="decl"?e=r.prop.toLowerCase():r.type==="atrule"&&(e=r.name.toLowerCase()),e&&r.append?[t,t+"-"+e,be,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:r.append?[t,be,t+"Exit"]:[t,t+"Exit"]}function Wn(r){let e;return r.type==="document"?e=["Document",be,"DocumentExit"]:r.type==="root"?e=["Root",be,"RootExit"]:e=Gr(r),{eventIndex:0,events:e,iterator:0,node:r,visitorIndex:0,visitors:[]}}function Yt(r){return r[Q]=!1,r.nodes&&r.nodes.forEach(e=>Yt(e)),r}let Xt={},ye=class Vr{constructor(e,t,n){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=Yt(t);else if(t instanceof Vr||t instanceof qn)i=Yt(t.root),t.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let s=Fo;n.syntax&&(s=n.syntax.parse),n.parser&&(s=n.parser),s.parse&&(s=s.parse);try{i=s(t,n)}catch(o){this.processed=!0,this.error=o}i&&!i[$o]&&Uo.rebuild(i)}this.result=new qn(e,i,n),this.helpers={...Xt,postcss:Xt,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}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 n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,n,i)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let n in t){if(!Wo[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!Go[n])if(typeof t[n]=="object")for(let i in t[n])i==="*"?e(t,n,t[n][i]):e(t,n+"-"+i.toLowerCase(),t[n][i]);else typeof t[n]=="function"&&e(t,n,t[n])}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],n=this.runOnRoot(t);if(xe(n))try{await n}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Q];){e[Q]=!0;let t=[Wn(e)];for(;t.length>0;){let n=this.visitTick(t);if(xe(n))try{await n}catch(i){let s=t[t.length-1].node;throw this.handleError(i,s)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(s=>n(s,this.helpers));await Promise.all(i)}else await n(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(n=>e.Once(n,this.helpers));return xe(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=Do;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new jo(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(xe(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Q];)e[Q]=!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[n,i]of e){this.result.lastPlugin=n;let s;try{s=i(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(xe(s))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:i}=t;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[o,a]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return a(n.toProxy(),this.helpers)}catch(l){throw this.handleError(l,n)}}if(t.iterator!==0){let o=t.iterator,a;for(;a=n.nodes[n.indexes[o]];)if(n.indexes[o]+=1,!a[Q]){a[Q]=!0,e.push(Wn(a));return}t.iterator=0,delete n.indexes[o]}let s=t.events;for(;t.eventIndex<s.length;){let o=s[t.eventIndex];if(t.eventIndex+=1,o===be){n.nodes&&n.nodes.length&&(n[Q]=!0,t.iterator=n.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[Q]=!0;let t=Gr(e);for(let n of t)if(n===be)e.nodes&&e.each(i=>{i[Q]||this.walkSync(i)});else{let i=this.listeners[n];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"}};ye.registerPostcss=r=>{Xt=r};var Kr=ye;ye.default=ye;Ho.registerLazyResult(ye);zo.registerLazyResult(ye);let Vo=Rr,Ko=gt,Jo=pn;const Zo=hn;let en=class{constructor(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let i,s=Ko;this.result=new Zo(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let a=new Vo(s,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=Jo;try{e=t(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}};var Qo=en;en.default=en;let Yo=Qo,Xo=Kr,ea=fn,ta=Be,Ne=class{constructor(e=[]){this.version="8.4.32",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)t.push(n);else if(typeof n=="function")t.push(n);else if(!(typeof n=="object"&&(n.parse||n.stringify)))throw new Error(n+" 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 Yo(this,e,t):new Xo(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var na=Ne;Ne.default=Ne;ta.registerProcessor(Ne);ea.registerProcessor(Ne);let ra=mt,ia=vr,sa=yt,oa=dn,aa=bt,la=Be,ca=gn;function Oe(r,e){if(Array.isArray(r))return r.map(i=>Oe(i));let{inputs:t,...n}=r;if(t){e=[];for(let i of t){let s={...i,__proto__:aa.prototype};s.map&&(s.map={...s.map,__proto__:ia.prototype}),e.push(s)}}if(n.nodes&&(n.nodes=r.nodes.map(i=>Oe(i,e))),n.source){let{inputId:i,...s}=n.source;n.source=s,i!=null&&(n.source.input=e[i])}if(n.type==="root")return new la(n);if(n.type==="decl")return new ra(n);if(n.type==="rule")return new ca(n);if(n.type==="comment")return new sa(n);if(n.type==="atrule")return new oa(n);throw new Error("Unknown node type: "+r.type)}var ua=Oe;Oe.default=Oe;var Gn={};let fa=ln,Jr=mt,ha=Kr,da=ce,mn=na,ga=gt,pa=ua,Zr=fn,ma=Dr,Qr=yt,Yr=dn,ba=hn,ya=bt,wa=pn,Ea=qr,Xr=gn,ei=Be,xa=pt;function O(...r){return r.length===1&&Array.isArray(r[0])&&(r=r[0]),new mn(r)}O.plugin=function(e,t){let n=!1;function i(...o){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
107
- https://evilmartians.com/chronicles/postcss-8-plugin-migration`),Gn.LANG&&Gn.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
108
- https://www.w3ctech.com/topic/2226`));let a=t(...o);return a.postcssPlugin=e,a.postcssVersion=new mn().version,a}let s;return Object.defineProperty(i,"postcss",{get(){return s||(s=i()),s}}),i.process=function(o,a,l){return O([i(l)]).process(o,a)},i};O.stringify=ga;O.parse=wa;O.fromJSON=pa;O.list=Ea;O.comment=r=>new Qr(r);O.atRule=r=>new Yr(r);O.decl=r=>new Jr(r);O.rule=r=>new Xr(r);O.root=r=>new ei(r);O.document=r=>new Zr(r);O.CssSyntaxError=fa;O.Declaration=Jr;O.Container=da;O.Processor=mn;O.Document=Zr;O.Comment=Qr;O.Warning=ma;O.AtRule=Yr;O.Result=ba;O.Input=ya;O.Rule=Xr;O.Root=ei;O.Node=xa;ha.registerPostcss(O);var va=O;O.default=O;const L=nr(va);L.stringify;L.fromJSON;L.plugin;L.parse;L.list;L.document;L.comment;L.atRule;L.rule;L.decl;L.root;L.CssSyntaxError;L.Declaration;L.Container;L.Processor;L.Document;L.Comment;L.Warning;L.AtRule;L.Result;L.Input;L.Rule;L.Root;L.Node;var Ca=function(e){const t=e.prefix,n=/\s+$/.test(t)?t:`${t} `,i=e.ignoreFiles?[].concat(e.ignoreFiles):[],s=e.includeFiles?[].concat(e.includeFiles):[];return function(o){i.length&&o.source.input.file&&Vn(o.source.input.file,i)||s.length&&o.source.input.file&&!Vn(o.source.input.file,s)||o.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&&Sa(c,e.exclude)?c:e.transform?e.transform(t,c,n+c,o.source.input.file,a):n+c))})}};function Vn(r,e){return e.some(t=>t instanceof RegExp?t.test(r):r.includes(t))}function Sa(r,e){return e.some(t=>t instanceof RegExp?t.test(r):r===t)}const Aa=nr(Ca),_a="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}",Ra="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 ka(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function ti(r){return r instanceof Map?r.clear=r.delete=r.set=function(){throw new Error("map is read-only")}:r instanceof Set&&(r.add=r.clear=r.delete=function(){throw new Error("set is read-only")}),Object.freeze(r),Object.getOwnPropertyNames(r).forEach(e=>{const t=r[e],n=typeof t;(n==="object"||n==="function")&&!Object.isFrozen(t)&&ti(t)}),r}class Kn{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function ni(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function re(r,...e){const t=Object.create(null);for(const n in r)t[n]=r[n];return e.forEach(function(n){for(const i in n)t[i]=n[i]}),t}const Na="</span>",Jn=r=>!!r.scope,Oa=(r,{prefix:e})=>{if(r.startsWith("language:"))return r.replace("language:","language-");if(r.includes(".")){const t=r.split(".");return[`${e}${t.shift()}`,...t.map((n,i)=>`${n}${"_".repeat(i+1)}`)].join(" ")}return`${e}${r}`};class Ma{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=ni(e)}openNode(e){if(!Jn(e))return;const t=Oa(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){Jn(e)&&(this.buffer+=Na)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const Zn=(r={})=>{const e={children:[]};return Object.assign(e,r),e};class bn{constructor(){this.rootNode=Zn(),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=Zn({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(n=>this._walk(e,n)),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=>{bn._collapse(t)}))}}class Pa extends bn{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,t){const n=e.root;t&&(n.scope=`language:${t}`),this.add(n)}toHTML(){return new Ma(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Me(r){return r?typeof r=="string"?r:r.source:null}function ri(r){return ue("(?=",r,")")}function Ta(r){return ue("(?:",r,")*")}function Ia(r){return ue("(?:",r,")?")}function ue(...r){return r.map(e=>Me(e)).join("")}function Ba(r){const e=r[r.length-1];return typeof e=="object"&&e.constructor===Object?(r.splice(r.length-1,1),e):{}}function yn(...r){return"("+(Ba(r).capture?"":"?:")+r.map(e=>Me(e)).join("|")+")"}function ii(r){return new RegExp(r.toString()+"|").exec("").length-1}function La(r,e){const t=r&&r.exec(e);return t&&t.index===0}const $a=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function wn(r,{joinWith:e}){let t=0;return r.map(n=>{t+=1;const i=t;let s=Me(n),o="";for(;s.length>0;){const a=$a.exec(s);if(!a){o+=s;break}o+=s.substring(0,a.index),s=s.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?o+="\\"+String(Number(a[1])+i):(o+=a[0],a[0]==="("&&t++)}return o}).map(n=>`(${n})`).join(e)}const ja=/\b\B/,si="[a-zA-Z]\\w*",En="[a-zA-Z_]\\w*",oi="\\b\\d+(\\.\\d+)?",ai="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",li="\\b(0b[01]+)",Da="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Ua=(r={})=>{const e=/^#![ ]*\//;return r.binary&&(r.begin=ue(e,/.*\b/,r.binary,/\b.*/)),re({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,n)=>{t.index!==0&&n.ignoreMatch()}},r)},Pe={begin:"\\\\[\\s\\S]",relevance:0},za={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Pe]},Fa={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Pe]},Ha={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/},wt=function(r,e,t={}){const n=re({scope:"comment",begin:r,end:e,contains:[]},t);n.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=yn("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 n.contains.push({begin:ue(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),n},qa=wt("//","$"),Wa=wt("/\\*","\\*/"),Ga=wt("#","$"),Va={scope:"number",begin:oi,relevance:0},Ka={scope:"number",begin:ai,relevance:0},Ja={scope:"number",begin:li,relevance:0},Za={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Pe,{begin:/\[/,end:/\]/,relevance:0,contains:[Pe]}]},Qa={scope:"title",begin:si,relevance:0},Ya={scope:"title",begin:En,relevance:0},Xa={begin:"\\.\\s*"+En,relevance:0},el=function(r){return Object.assign(r,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})};var Ze=Object.freeze({__proto__:null,APOS_STRING_MODE:za,BACKSLASH_ESCAPE:Pe,BINARY_NUMBER_MODE:Ja,BINARY_NUMBER_RE:li,COMMENT:wt,C_BLOCK_COMMENT_MODE:Wa,C_LINE_COMMENT_MODE:qa,C_NUMBER_MODE:Ka,C_NUMBER_RE:ai,END_SAME_AS_BEGIN:el,HASH_COMMENT_MODE:Ga,IDENT_RE:si,MATCH_NOTHING_RE:ja,METHOD_GUARD:Xa,NUMBER_MODE:Va,NUMBER_RE:oi,PHRASAL_WORDS_MODE:Ha,QUOTE_STRING_MODE:Fa,REGEXP_MODE:Za,RE_STARTERS_RE:Da,SHEBANG:Ua,TITLE_MODE:Qa,UNDERSCORE_IDENT_RE:En,UNDERSCORE_TITLE_MODE:Ya});function tl(r,e){r.input[r.index-1]==="."&&e.ignoreMatch()}function nl(r,e){r.className!==void 0&&(r.scope=r.className,delete r.className)}function rl(r,e){e&&r.beginKeywords&&(r.begin="\\b("+r.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",r.__beforeBegin=tl,r.keywords=r.keywords||r.beginKeywords,delete r.beginKeywords,r.relevance===void 0&&(r.relevance=0))}function il(r,e){Array.isArray(r.illegal)&&(r.illegal=yn(...r.illegal))}function sl(r,e){if(r.match){if(r.begin||r.end)throw new Error("begin & end are not supported with match");r.begin=r.match,delete r.match}}function ol(r,e){r.relevance===void 0&&(r.relevance=1)}const al=(r,e)=>{if(!r.beforeMatch)return;if(r.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},r);Object.keys(r).forEach(n=>{delete r[n]}),r.keywords=t.keywords,r.begin=ue(t.beforeMatch,ri(t.begin)),r.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},r.relevance=0,delete t.beforeMatch},ll=["of","and","for","in","not","or","if","then","parent","list","value"],cl="keyword";function ci(r,e,t=cl){const n=Object.create(null);return typeof r=="string"?i(t,r.split(" ")):Array.isArray(r)?i(t,r):Object.keys(r).forEach(function(s){Object.assign(n,ci(r[s],e,s))}),n;function i(s,o){e&&(o=o.map(a=>a.toLowerCase())),o.forEach(function(a){const l=a.split("|");n[l[0]]=[s,ul(l[0],l[1])]})}}function ul(r,e){return e?Number(e):fl(r)?0:1}function fl(r){return ll.includes(r.toLowerCase())}const Qn={},le=r=>{console.error(r)},Yn=(r,...e)=>{console.log(`WARN: ${r}`,...e)},fe=(r,e)=>{Qn[`${r}/${e}`]||(console.log(`Deprecated as of ${r}. ${e}`),Qn[`${r}/${e}`]=!0)},at=new Error;function ui(r,e,{key:t}){let n=0;const i=r[t],s={},o={};for(let a=1;a<=e.length;a++)o[a+n]=i[a],s[a+n]=!0,n+=ii(e[a-1]);r[t]=o,r[t]._emit=s,r[t]._multi=!0}function hl(r){if(Array.isArray(r.begin)){if(r.skip||r.excludeBegin||r.returnBegin)throw le("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),at;if(typeof r.beginScope!="object"||r.beginScope===null)throw le("beginScope must be object"),at;ui(r,r.begin,{key:"beginScope"}),r.begin=wn(r.begin,{joinWith:""})}}function dl(r){if(Array.isArray(r.end)){if(r.skip||r.excludeEnd||r.returnEnd)throw le("skip, excludeEnd, returnEnd not compatible with endScope: {}"),at;if(typeof r.endScope!="object"||r.endScope===null)throw le("endScope must be object"),at;ui(r,r.end,{key:"endScope"}),r.end=wn(r.end,{joinWith:""})}}function gl(r){r.scope&&typeof r.scope=="object"&&r.scope!==null&&(r.beginScope=r.scope,delete r.scope)}function pl(r){gl(r),typeof r.beginScope=="string"&&(r.beginScope={_wrap:r.beginScope}),typeof r.endScope=="string"&&(r.endScope={_wrap:r.endScope}),hl(r),dl(r)}function ml(r){function e(o,a){return new RegExp(Me(o),"m"+(r.case_insensitive?"i":"")+(r.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+=ii(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(l=>l[1]);this.matcherRe=e(wn(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((g,h)=>h>0&&g!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class n{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(o){const a=new n;return o.contains.forEach(l=>a.addRule(l.begin,{rule:l,type:"begin"})),o.terminatorEnd&&a.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&a.addRule(o.illegal,{type:"illegal"}),a}function s(o,a){const l=o;if(o.isCompiled)return l;[nl,sl,pl,al].forEach(u=>u(o,a)),r.compilerExtensions.forEach(u=>u(o,a)),o.__beforeBegin=null,[rl,il,ol].forEach(u=>u(o,a)),o.isCompiled=!0;let c=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),c=o.keywords.$pattern,delete o.keywords.$pattern),c=c||/\w+/,o.keywords&&(o.keywords=ci(o.keywords,r.case_insensitive)),l.keywordPatternRe=e(c,!0),a&&(o.begin||(o.begin=/\B|\b/),l.beginRe=e(l.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(l.endRe=e(l.end)),l.terminatorEnd=Me(l.end)||"",o.endsWithParent&&a.terminatorEnd&&(l.terminatorEnd+=(o.end?"|":"")+a.terminatorEnd)),o.illegal&&(l.illegalRe=e(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(u){return bl(u==="self"?o:u)})),o.contains.forEach(function(u){s(u,l)}),o.starts&&s(o.starts,a),l.matcher=i(l),l}if(r.compilerExtensions||(r.compilerExtensions=[]),r.contains&&r.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return r.classNameAliases=re(r.classNameAliases||{}),s(r)}function fi(r){return r?r.endsWithParent||fi(r.starts):!1}function bl(r){return r.variants&&!r.cachedVariants&&(r.cachedVariants=r.variants.map(function(e){return re(r,{variants:null},e)})),r.cachedVariants?r.cachedVariants:fi(r)?re(r,{starts:r.starts?re(r.starts):null}):Object.isFrozen(r)?re(r):r}var yl="11.9.0";class wl extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Bt=ni,Xn=re,er=Symbol("nomatch"),El=7,hi=function(r){const e=Object.create(null),t=Object.create(null),n=[];let i=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",o={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:Pa};function l(f){return a.noHighlightRe.test(f)}function c(f){let b=f.className+" ";b+=f.parentNode?f.parentNode.className:"";const _=a.languageDetectRe.exec(b);if(_){const N=$(_[1]);return N||(Yn(s.replace("{}",_[1])),Yn("Falling back to no-highlight mode for this block.",f)),N?_[1]:"no-highlight"}return b.split(/\s+/).find(N=>l(N)||$(N))}function u(f,b,_){let N="",j="";typeof b=="object"?(N=f,_=b.ignoreIllegals,j=b.language):(fe("10.7.0","highlight(lang, code, ...args) has been deprecated."),fe("10.7.0",`Please use highlight(code, options) instead.
109
- https://github.com/highlightjs/highlight.js/issues/2277`),j=f,N=b),_===void 0&&(_=!0);const q={code:N,language:j};oe("before:highlight",q);const te=q.result?q.result:g(q.language,q.code,_);return te.code=q.code,oe("after:highlight",te),te}function g(f,b,_,N){const j=Object.create(null);function q(d,E){return d.keywords[E]}function te(){if(!A.keywords){z.addText(I);return}let d=0;A.keywordPatternRe.lastIndex=0;let E=A.keywordPatternRe.exec(I),R="";for(;E;){R+=I.substring(d,E.index);const P=Z.case_insensitive?E[0].toLowerCase():E[0],F=q(A,P);if(F){const[X,_i]=F;if(z.addText(R),R="",j[P]=(j[P]||0)+1,j[P]<=El&&(je+=_i),X.startsWith("_"))R+=E[0];else{const Ri=Z.classNameAliases[X]||X;J(E[0],Ri)}}else R+=E[0];d=A.keywordPatternRe.lastIndex,E=A.keywordPatternRe.exec(I)}R+=I.substring(d),z.addText(R)}function Le(){if(I==="")return;let d=null;if(typeof A.subLanguage=="string"){if(!e[A.subLanguage]){z.addText(I);return}d=g(A.subLanguage,I,!0,An[A.subLanguage]),An[A.subLanguage]=d._top}else d=p(I,A.subLanguage.length?A.subLanguage:null);A.relevance>0&&(je+=d.relevance),z.__addSublanguage(d._emitter,d.language)}function W(){A.subLanguage!=null?Le():te(),I=""}function J(d,E){d!==""&&(z.startScope(E),z.addText(d),z.endScope())}function xn(d,E){let R=1;const P=E.length-1;for(;R<=P;){if(!d._emit[R]){R++;continue}const F=Z.classNameAliases[d[R]]||d[R],X=E[R];F?J(X,F):(I=X,te(),I=""),R++}}function vn(d,E){return d.scope&&typeof d.scope=="string"&&z.openNode(Z.classNameAliases[d.scope]||d.scope),d.beginScope&&(d.beginScope._wrap?(J(I,Z.classNameAliases[d.beginScope._wrap]||d.beginScope._wrap),I=""):d.beginScope._multi&&(xn(d.beginScope,E),I="")),A=Object.create(d,{parent:{value:A}}),A}function Cn(d,E,R){let P=La(d.endRe,R);if(P){if(d["on:end"]){const F=new Kn(d);d["on:end"](E,F),F.isMatchIgnored&&(P=!1)}if(P){for(;d.endsParent&&d.parent;)d=d.parent;return d}}if(d.endsWithParent)return Cn(d.parent,E,R)}function xi(d){return A.matcher.regexIndex===0?(I+=d[0],1):(At=!0,0)}function vi(d){const E=d[0],R=d.rule,P=new Kn(R),F=[R.__beforeBegin,R["on:begin"]];for(const X of F)if(X&&(X(d,P),P.isMatchIgnored))return xi(E);return R.skip?I+=E:(R.excludeBegin&&(I+=E),W(),!R.returnBegin&&!R.excludeBegin&&(I=E)),vn(R,d),R.returnBegin?0:E.length}function Ci(d){const E=d[0],R=b.substring(d.index),P=Cn(A,d,R);if(!P)return er;const F=A;A.endScope&&A.endScope._wrap?(W(),J(E,A.endScope._wrap)):A.endScope&&A.endScope._multi?(W(),xn(A.endScope,d)):F.skip?I+=E:(F.returnEnd||F.excludeEnd||(I+=E),W(),F.excludeEnd&&(I=E));do A.scope&&z.closeNode(),!A.skip&&!A.subLanguage&&(je+=A.relevance),A=A.parent;while(A!==P.parent);return P.starts&&vn(P.starts,d),F.returnEnd?0:E.length}function Si(){const d=[];for(let E=A;E!==Z;E=E.parent)E.scope&&d.unshift(E.scope);d.forEach(E=>z.openNode(E))}let $e={};function Sn(d,E){const R=E&&E[0];if(I+=d,R==null)return W(),0;if($e.type==="begin"&&E.type==="end"&&$e.index===E.index&&R===""){if(I+=b.slice(E.index,E.index+1),!i){const P=new Error(`0 width match regex (${f})`);throw P.languageName=f,P.badRule=$e.rule,P}return 1}if($e=E,E.type==="begin")return vi(E);if(E.type==="illegal"&&!_){const P=new Error('Illegal lexeme "'+R+'" for mode "'+(A.scope||"<unnamed>")+'"');throw P.mode=A,P}else if(E.type==="end"){const P=Ci(E);if(P!==er)return P}if(E.type==="illegal"&&R==="")return 1;if(St>1e5&&St>E.index*3)throw new Error("potential infinite loop, way more iterations than matches");return I+=R,R.length}const Z=$(f);if(!Z)throw le(s.replace("{}",f)),new Error('Unknown language: "'+f+'"');const Ai=ml(Z);let Ct="",A=N||Ai;const An={},z=new a.__emitter(a);Si();let I="",je=0,ae=0,St=0,At=!1;try{if(Z.__emitTokens)Z.__emitTokens(b,z);else{for(A.matcher.considerAll();;){St++,At?At=!1:A.matcher.considerAll(),A.matcher.lastIndex=ae;const d=A.matcher.exec(b);if(!d)break;const E=b.substring(ae,d.index),R=Sn(E,d);ae=d.index+R}Sn(b.substring(ae))}return z.finalize(),Ct=z.toHTML(),{language:f,value:Ct,relevance:je,illegal:!1,_emitter:z,_top:A}}catch(d){if(d.message&&d.message.includes("Illegal"))return{language:f,value:Bt(b),illegal:!0,relevance:0,_illegalBy:{message:d.message,index:ae,context:b.slice(ae-100,ae+100),mode:d.mode,resultSoFar:Ct},_emitter:z};if(i)return{language:f,value:Bt(b),illegal:!1,relevance:0,errorRaised:d,_emitter:z,_top:A};throw d}}function h(f){const b={value:Bt(f),illegal:!1,relevance:0,_top:o,_emitter:new a.__emitter(a)};return b._emitter.addText(f),b}function p(f,b){b=b||a.languages||Object.keys(e);const _=h(f),N=b.filter($).filter(K).map(W=>g(W,f,!1));N.unshift(_);const j=N.sort((W,J)=>{if(W.relevance!==J.relevance)return J.relevance-W.relevance;if(W.language&&J.language){if($(W.language).supersetOf===J.language)return 1;if($(J.language).supersetOf===W.language)return-1}return 0}),[q,te]=j,Le=q;return Le.secondBest=te,Le}function y(f,b,_){const N=b&&t[b]||_;f.classList.add("hljs"),f.classList.add(`language-${N}`)}function C(f){let b=null;const _=c(f);if(l(_))return;if(oe("before:highlightElement",{el:f,language:_}),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 wl("One of your code blocks includes unescaped HTML.",f.innerHTML);b=f;const N=b.textContent,j=_?u(N,{language:_,ignoreIllegals:!0}):p(N);f.innerHTML=j.value,f.dataset.highlighted="yes",y(f,_,j.language),f.result={language:j.language,re:j.relevance,relevance:j.relevance},j.secondBest&&(f.secondBest={language:j.secondBest.language,relevance:j.secondBest.relevance}),oe("after:highlightElement",{el:f,result:j,text:N})}function m(f){a=Xn(a,f)}const x=()=>{w(),fe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function S(){w(),fe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let v=!1;function w(){if(document.readyState==="loading"){v=!0;return}document.querySelectorAll(a.cssSelector).forEach(C)}function k(){v&&w()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",k,!1);function M(f,b){let _=null;try{_=b(r)}catch(N){if(le("Language definition for '{}' could not be registered.".replace("{}",f)),i)le(N);else throw N;_=o}_.name||(_.name=f),e[f]=_,_.rawDefinition=b.bind(null,r),_.aliases&&U(_.aliases,{languageName:f})}function T(f){delete e[f];for(const b of Object.keys(t))t[b]===f&&delete t[b]}function D(){return Object.keys(e)}function $(f){return f=(f||"").toLowerCase(),e[f]||e[t[f]]}function U(f,{languageName:b}){typeof f=="string"&&(f=[f]),f.forEach(_=>{t[_.toLowerCase()]=b})}function K(f){const b=$(f);return b&&!b.disableAutodetect}function se(f){f["before:highlightBlock"]&&!f["before:highlightElement"]&&(f["before:highlightElement"]=b=>{f["before:highlightBlock"](Object.assign({block:b.el},b))}),f["after:highlightBlock"]&&!f["after:highlightElement"]&&(f["after:highlightElement"]=b=>{f["after:highlightBlock"](Object.assign({block:b.el},b))})}function H(f){se(f),n.push(f)}function xt(f){const b=n.indexOf(f);b!==-1&&n.splice(b,1)}function oe(f,b){const _=f;n.forEach(function(N){N[_]&&N[_](b)})}function vt(f){return fe("10.7.0","highlightBlock will be removed entirely in v12.0"),fe("10.7.0","Please use highlightElement now."),C(f)}Object.assign(r,{highlight:u,highlightAuto:p,highlightAll:w,highlightElement:C,highlightBlock:vt,configure:m,initHighlighting:x,initHighlightingOnLoad:S,registerLanguage:M,unregisterLanguage:T,listLanguages:D,getLanguage:$,registerAliases:U,autoDetection:K,inherit:Xn,addPlugin:H,removePlugin:xt}),r.debugMode=function(){i=!1},r.safeMode=function(){i=!0},r.versionString=yl,r.regex={concat:ue,lookahead:ri,either:yn,optional:Ia,anyNumberOfTimes:Ta};for(const f in Ze)typeof Ze[f]=="object"&&ti(Ze[f]);return Object.assign(r,Ze),r},we=hi({});we.newInstance=()=>hi({});var xl=we;we.HighlightJS=we;we.default=we;const Et=ka(xl),lt="[A-Za-z$_][0-9A-Za-z$_]*",di=["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"],gi=["true","false","null","undefined","NaN","Infinity"],pi=["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"],mi=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],bi=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],yi=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],wi=[].concat(bi,pi,mi);function vl(r){const e=r.regex,t=(f,{after:b})=>{const _="</"+f[0].slice(1);return f.input.indexOf(_,b)!==-1},n=lt,i={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(f,b)=>{const _=f[0].length+f.index,N=f.input[_];if(N==="<"||N===","){b.ignoreMatch();return}N===">"&&(t(f,{after:_})||b.ignoreMatch());let j;const q=f.input.substring(_);if(j=q.match(/^\s*=/)){b.ignoreMatch();return}if((j=q.match(/^\s+extends\s+/))&&j.index===0){b.ignoreMatch();return}}},a={$pattern:lt,keyword:di,literal:gi,built_in:wi,"variable.language":yi},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={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},h={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},p={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,h],subLanguage:"xml"}},y={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,h],subLanguage:"css"}},C={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,h],subLanguage:"graphql"}},m={className:"string",begin:"`",end:"`",contains:[r.BACKSLASH_ESCAPE,h]},x={className:"comment",variants:[r.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:n+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),r.C_BLOCK_COMMENT_MODE,r.C_LINE_COMMENT_MODE]},S=[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,p,y,C,m,{match:/\$\d+/},g];h.contains=S.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(S)});const v=[].concat(x,h.contains),w=v.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(v)}]),k={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:w},M={variants:[{match:[/class/,/\s+/,n,/\s+/,/extends/,/\s+/,e.concat(n,"(",e.concat(/\./,n),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,n],scope:{1:"keyword",3:"title.class"}}]},T={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:{_:[...pi,...mi]}},D={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},$={variants:[{match:[/function/,/\s+/,n,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[k],illegal:/%/},U={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function K(f){return e.concat("(?!",f.join("|"),")")}const se={match:e.concat(/\b/,K([...bi,"super","import"]),n,e.lookahead(/\(/)),className:"title.function",relevance:0},H={begin:e.concat(/\./,e.lookahead(e.concat(n,/(?![0-9A-Za-z$_(])/))),end:n,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},xt={match:[/get|set/,/\s+/,n,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},k]},oe="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+r.UNDERSCORE_IDENT_RE+")\\s*=>",vt={match:[/const|var|let/,/\s+/,n,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(oe)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[k]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:w,CLASS_REFERENCE:T},illegal:/#(?![$_A-z])/,contains:[r.SHEBANG({label:"shebang",binary:"node",relevance:5}),D,r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,p,y,C,m,x,{match:/\$\d+/},g,T,{className:"attr",begin:n+e.lookahead(":"),relevance:0},vt,{begin:"("+r.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[x,r.REGEXP_MODE,{className:"function",begin:oe,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:r.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:w}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:s},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},$,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+r.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[k,r.inherit(r.TITLE_MODE,{begin:n,className:"title.function"})]},{match:/\.\.\./,relevance:0},H,{match:"\\$"+n,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[k]},se,U,M,xt,{match:/\$[(.]/}]}}function Cl(r){const e=vl(r),t=lt,n=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:n},contains:[e.exports.CLASS_REFERENCE]},o={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},a=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:lt,keyword:di.concat(a),literal:gi,built_in:wi.concat(n),"variable.language":yi},c={className:"meta",begin:"@"+t},u=(h,p,y)=>{const C=h.contains.findIndex(m=>m.label===p);if(C===-1)throw new Error("can not find mode to replace");h.contains.splice(C,1,y)};Object.assign(e.keywords,l),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,i,s]),u(e,"shebang",r.SHEBANG()),u(e,"use_strict",o);const g=e.contains.find(h=>h.label==="func.def");return g.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),e}function Sl(r){const e=r.regex,t=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),n=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},o=r.inherit(s,{begin:/\(/,end:/\)/}),a=r.inherit(r.APOS_STRING_MODE,{className:"string"}),l=r.inherit(r.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:n,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:[s,l,a,o,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,o,l,a]}]}]},r.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 Al=r=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:r.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:[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:r.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_-]*/}}),_l=["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"],Rl=["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"],kl=["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"],Nl=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],Ol=["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 Ml(r){const e=r.regex,t=Al(r),n={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",s=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",a=[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,n,t.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+kl.join("|")+")"},{begin:":(:)?("+Nl.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Ol.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:s},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:Rl.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...a,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+_l.join("|")+")\\b"}]}}const Ei=document.createElement("style");Ei.innerText=[_a,Ra].join(`
110
- `);document.head.appendChild(Ei);Et.registerLanguage("typescript",Cl);Et.registerLanguage("html",Sl);Et.registerLanguage("css",Ml);function Pl(...r){const e=document.createElement("div"),t=document.createElement("div");t.classList.add("tab-control");const n=document.createElement("div");return r.forEach(i=>{e.appendChild(i),i.addEventListener("click",()=>{r.forEach(s=>s.removeAttribute("selected")),i.setAttribute("selected",""),n.innerHTML="",n.appendChild(i.content),n.className=i.className,n.classList.add("tab-content")})}),t.appendChild(e),t.appendChild(n),n.classList.add("tab-content"),r[0].setAttribute("selected",""),n.appendChild(r[0].content),t}function ve(r,e){const t=document.createElement("div");return t.role="tab",t.tabIndex=0,t.innerText=r,t.content=e,e.tagName=="PRE"&&t.classList.add("code"),t}function Ae(r,e){const t=document.createElement(r);return typeof e=="string"?t.innerHTML=e:e.forEach(n=>{t.appendChild(n)}),t}async function Tl(r,e,t){var n,i,s;const o=e.mainContent,a=Ae("div",o);a.id=`example-preview-${t}`;const l=typeof e.css=="string"||(n=e.css)==null?void 0:n.label,c=typeof e.css=="string"?e.css:(i=e.css)==null?void 0:i.content,u=Pl(ve("Preview",a),ve("HTML",Qe("html",o)),...c?[ve(l??"CSS",Qe("css",c))]:[],...e.initializer&&e.initializer.content?[ve(e.initializer.label??"TS",Qe("typescript",e.initializer.content))]:[],...(e.additionalSources||[]).map(h=>ve(h.label,Qe(h.language,h.content))));e.description&&r.appendChild(Ae("div",e.description));const g=Ae("div",[u]);g.classList.add("example"),r.appendChild(g),c&&Il(`#${a.id}`,c),(s=e.initializer)!=null&&s.initialize&&await e.initializer.initialize(a)}function Qe(r,e){let t=e.split(/\r?\n/).map(n=>{const i=n.indexOf("///");if(i>-1){const s=n.substring(i+3).trimStart();return s?n.replace(/^(\s*)([^\s].*)$/,`$1${s}`):void 0}return n}).filter(n=>typeof n<"u").join(`
111
- `).trim();return r&&r!="raw"&&(t=Et.highlight(t,{language:r}).value),Ae("pre",[Ae("code",t)])}function Il(r,e){const t=document.createElement("style");t.innerHTML=L().use(Aa({prefix:r})).process(e).css,document.head.appendChild(t)}async function Bl(r,e=document.body){const t=$l(e);let n=0;Object.keys(r).forEach(async i=>{const s=document.createElement("div");s.className="example-container",t.appendChild(s);const o=r[i].default;Tl(s,o,n++)})}function Ll(r){const e=document.createElement("div");e.id="examples-container";const t=r.querySelector("#examples");return t?t.after(e):r.appendChild(e),e}function $l(r){return r.children?Ll(r):r}const jl=`<h1 id="@cas-smartdesign/qrcode">@cas-smartdesign/qrcode</h1>
106
+ `)&&(o=`\r
107
+ `),this.css+=o+"/*# sourceMappingURL="+a+" */"}applyPrevMaps(){for(let a of this.previous()){let o=this.toUrl(this.path(a.file)),d=a.root||n(a.file),g;this.mapOpts.sourcesContent===!1?(g=new e(a.text),g.sourcesContent&&(g.sourcesContent=null)):g=a.consumer(),this.map.applySourceMap(g,o,this.toUrl(this.path(d)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let a;for(let o=this.root.nodes.length-1;o>=0;o--)a=this.root.nodes[o],a.type==="comment"&&a.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(o)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),h&&p&&this.isMap())return this.generateMap();{let a="";return this.stringify(this.root,o=>{a+=o}),[a]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let a=this.previous()[0].consumer();a.file=this.outputFile(),this.map=t.fromSourceMap(a,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let a=1,o=1,d="<no source>",g={generated:{column:0,line:0},original:{column:0,line:0},source:""},b,v;this.stringify(this.root,(S,E,y)=>{if(this.css+=S,E&&y!=="end"&&(g.generated.line=a,g.generated.column=o-1,E.source&&E.source.start?(g.source=this.sourcePath(E),g.original.line=E.source.start.line,g.original.column=E.source.start.column-1,this.map.addMapping(g)):(g.source=d,g.original.line=1,g.original.column=0,this.map.addMapping(g))),v=S.match(/\n/g),v?(a+=v.length,b=S.lastIndexOf(`
108
+ `),o=S.length-b):o+=S.length,E&&y!=="start"){let w=E.parent||{raws:{}};(!(E.type==="decl"||E.type==="atrule"&&!E.nodes)||E!==w.last||w.raws.semicolon)&&(E.source&&E.source.end?(g.source=this.sourcePath(E),g.original.line=E.source.end.line,g.original.column=E.source.end.column-1,g.generated.line=a,g.generated.column=o-2,this.map.addMapping(g)):(g.source=d,g.original.line=1,g.original.column=0,g.generated.line=a,g.generated.column=o-1,this.map.addMapping(g)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(a=>a.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let a=this.mapOpts.annotation;return typeof a<"u"&&a!==!0?!1:this.previous().length?this.previous().some(o=>o.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(a=>a.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(a){if(this.mapOpts.absolute||a.charCodeAt(0)===60||/^\w+:\/\//.test(a))return a;let o=this.memoizedPaths.get(a);if(o)return o;let d=this.opts.to?n(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(d=n(u(d,this.mapOpts.annotation)));let g=l(d,a);return this.memoizedPaths.set(a,g),g}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(a=>{if(a.source&&a.source.input.map){let o=a.source.input.map;this.previousMaps.includes(o)||this.previousMaps.push(o)}});else{let a=new f(this.originalCSS,this.opts);a.map&&this.previousMaps.push(a.map)}return this.previousMaps}setSourcesContent(){let a={};if(this.root)this.root.walk(o=>{if(o.source){let d=o.source.input.from;if(d&&!a[d]){a[d]=!0;let g=this.usesFileUrls?this.toFileUrl(d):this.toUrl(this.path(d));this.map.setSourceContent(g,o.source.input.css)}}});else if(this.css){let o=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(o,this.css)}}sourcePath(a){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(a.source.input.from):this.toUrl(this.path(a.source.input.from))}toBase64(a){return Buffer?Buffer.from(a).toString("base64"):window.btoa(unescape(encodeURIComponent(a)))}toFileUrl(a){let o=this.memoizedFileURLs.get(a);if(o)return o;if(s){let d=s(a).toString();return this.memoizedFileURLs.set(a,d),d}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(a){let o=this.memoizedURLs.get(a);if(o)return o;r==="\\"&&(a=a.replace(/\\/g,"/"));let d=encodeURI(a).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(a,d),d}}return nn=i,nn}var rn,Tr;function Is(){if(Tr)return rn;Tr=1;const n=39,l=34,u=92,r=47,e=10,t=32,s=12,f=9,p=13,h=91,i=93,c=40,a=41,o=123,d=125,g=59,b=42,v=58,S=64,E=/[\t\n\f\r "#'()/;[\\\]{}]/g,y=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,x=/[\da-f]/i;return rn=function(k,_={}){let A=k.css.valueOf(),M=_.ignoreErrors,O,j,z,I,de,V,Y,oe,re,ce,pe=A.length,U=0,Ae=[],me=[];function Te(){return U}function le(xe){throw k.error("Unclosed "+xe,U)}function ue(){return me.length===0&&U>=pe}function fe(xe){if(me.length)return me.pop();if(U>=pe)return;let je=xe?xe.ignoreUnclosed:!1;switch(O=A.charCodeAt(U),O){case e:case t:case f:case p:case s:{I=U;do I+=1,O=A.charCodeAt(I);while(O===t||O===e||O===f||O===p||O===s);V=["space",A.slice(U,I)],U=I-1;break}case h:case i:case o:case d:case v:case g:case a:{let He=String.fromCharCode(O);V=[He,He,U];break}case c:{if(ce=Ae.length?Ae.pop()[1]:"",re=A.charCodeAt(U+1),ce==="url"&&re!==n&&re!==l&&re!==t&&re!==e&&re!==f&&re!==s&&re!==p){I=U;do{if(Y=!1,I=A.indexOf(")",I+1),I===-1)if(M||je){I=U;break}else le("bracket");for(oe=I;A.charCodeAt(oe-1)===u;)oe-=1,Y=!Y}while(Y);V=["brackets",A.slice(U,I+1),U,I],U=I}else I=A.indexOf(")",U+1),j=A.slice(U,I+1),I===-1||w.test(j)?V=["(","(",U]:(V=["brackets",j,U,I],U=I);break}case n:case l:{de=O===n?"'":'"',I=U;do{if(Y=!1,I=A.indexOf(de,I+1),I===-1)if(M||je){I=U+1;break}else le("string");for(oe=I;A.charCodeAt(oe-1)===u;)oe-=1,Y=!Y}while(Y);V=["string",A.slice(U,I+1),U,I],U=I;break}case S:{E.lastIndex=U+1,E.test(A),E.lastIndex===0?I=A.length-1:I=E.lastIndex-2,V=["at-word",A.slice(U,I+1),U,I],U=I;break}case u:{for(I=U,z=!0;A.charCodeAt(I+1)===u;)I+=1,z=!z;if(O=A.charCodeAt(I+1),z&&O!==r&&O!==t&&O!==e&&O!==f&&O!==p&&O!==s&&(I+=1,x.test(A.charAt(I)))){for(;x.test(A.charAt(I+1));)I+=1;A.charCodeAt(I+1)===t&&(I+=1)}V=["word",A.slice(U,I+1),U,I],U=I;break}default:{O===r&&A.charCodeAt(U+1)===b?(I=A.indexOf("*/",U+2)+1,I===0&&(M||je?I=A.length:le("comment")),V=["comment",A.slice(U,I+1),U,I],U=I):(y.lastIndex=U+1,y.test(A),y.lastIndex===0?I=A.length-1:I=y.lastIndex-2,V=["word",A.slice(U,I+1),U,I],Ae.push(V),U=I);break}}return U++,V}function ke(xe){me.push(xe)}return{back:ke,endOfFile:ue,nextToken:fe,position:Te}},rn}var sn,Ir;function Bs(){if(Ir)return sn;Ir=1;let n=yn(),l=ot(),u=at(),r=$e(),e=En(),t=Is();const s={empty:!0,space:!0};function f(h){for(let i=h.length-1;i>=0;i--){let c=h[i],a=c[3]||c[2];if(a)return a}}class p{constructor(i){this.input=i,this.root=new r,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:i,start:{column:1,line:1,offset:0}}}atrule(i){let c=new n;c.name=i[1].slice(1),c.name===""&&this.unnamedAtrule(c,i),this.init(c,i[2]);let a,o,d,g=!1,b=!1,v=[],S=[];for(;!this.tokenizer.endOfFile();){if(i=this.tokenizer.nextToken(),a=i[0],a==="("||a==="["?S.push(a==="("?")":"]"):a==="{"&&S.length>0?S.push("}"):a===S[S.length-1]&&S.pop(),S.length===0)if(a===";"){c.source.end=this.getPosition(i[2]),c.source.end.offset++,this.semicolon=!0;break}else if(a==="{"){b=!0;break}else if(a==="}"){if(v.length>0){for(d=v.length-1,o=v[d];o&&o[0]==="space";)o=v[--d];o&&(c.source.end=this.getPosition(o[3]||o[2]),c.source.end.offset++)}this.end(i);break}else v.push(i);else v.push(i);if(this.tokenizer.endOfFile()){g=!0;break}}c.raws.between=this.spacesAndCommentsFromEnd(v),v.length?(c.raws.afterName=this.spacesAndCommentsFromStart(v),this.raw(c,"params",v),g&&(i=v[v.length-1],c.source.end=this.getPosition(i[3]||i[2]),c.source.end.offset++,this.spaces=c.raws.between,c.raws.between="")):(c.raws.afterName="",c.params=""),b&&(c.nodes=[],this.current=c)}checkMissedSemicolon(i){let c=this.colon(i);if(c===!1)return;let a=0,o;for(let d=c-1;d>=0&&(o=i[d],!(o[0]!=="space"&&(a+=1,a===2)));d--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}colon(i){let c=0,a,o,d;for(let[g,b]of i.entries()){if(o=b,d=o[0],d==="("&&(c+=1),d===")"&&(c-=1),c===0&&d===":")if(!a)this.doubleColon(o);else{if(a[0]==="word"&&a[1]==="progid")continue;return g}a=o}return!1}comment(i){let c=new l;this.init(c,i[2]),c.source.end=this.getPosition(i[3]||i[2]),c.source.end.offset++;let a=i[1].slice(2,-2);if(/^\s*$/.test(a))c.text="",c.raws.left=a,c.raws.right="";else{let o=a.match(/^(\s*)([^]*\S)(\s*)$/);c.text=o[2],c.raws.left=o[1],c.raws.right=o[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(i,c){let a=new u;this.init(a,i[0][2]);let o=i[i.length-1];for(o[0]===";"&&(this.semicolon=!0,i.pop()),a.source.end=this.getPosition(o[3]||o[2]||f(i)),a.source.end.offset++;i[0][0]!=="word";)i.length===1&&this.unknownWord(i),a.raws.before+=i.shift()[1];for(a.source.start=this.getPosition(i[0][2]),a.prop="";i.length;){let S=i[0][0];if(S===":"||S==="space"||S==="comment")break;a.prop+=i.shift()[1]}a.raws.between="";let d;for(;i.length;)if(d=i.shift(),d[0]===":"){a.raws.between+=d[1];break}else d[0]==="word"&&/\w/.test(d[1])&&this.unknownWord([d]),a.raws.between+=d[1];(a.prop[0]==="_"||a.prop[0]==="*")&&(a.raws.before+=a.prop[0],a.prop=a.prop.slice(1));let g=[],b;for(;i.length&&(b=i[0][0],!(b!=="space"&&b!=="comment"));)g.push(i.shift());this.precheckMissedSemicolon(i);for(let S=i.length-1;S>=0;S--){if(d=i[S],d[1].toLowerCase()==="!important"){a.important=!0;let E=this.stringFrom(i,S);E=this.spacesFromEnd(i)+E,E!==" !important"&&(a.raws.important=E);break}else if(d[1].toLowerCase()==="important"){let E=i.slice(0),y="";for(let w=S;w>0;w--){let x=E[w][0];if(y.trim().startsWith("!")&&x!=="space")break;y=E.pop()[1]+y}y.trim().startsWith("!")&&(a.important=!0,a.raws.important=y,i=E)}if(d[0]!=="space"&&d[0]!=="comment")break}i.some(S=>S[0]!=="space"&&S[0]!=="comment")&&(a.raws.between+=g.map(S=>S[1]).join(""),g=[]),this.raw(a,"value",g.concat(i),c),a.value.includes(":")&&!c&&this.checkMissedSemicolon(i)}doubleColon(i){throw this.input.error("Double colon",{offset:i[2]},{offset:i[2]+i[1].length})}emptyRule(i){let c=new e;this.init(c,i[2]),c.selector="",c.raws.between="",this.current=c}end(i){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(i[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(i)}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(i){if(this.spaces+=i[1],this.current.nodes){let c=this.current.nodes[this.current.nodes.length-1];c&&c.type==="rule"&&!c.raws.ownSemicolon&&(c.raws.ownSemicolon=this.spaces,this.spaces="",c.source.end=this.getPosition(i[2]),c.source.end.offset+=c.raws.ownSemicolon.length)}}getPosition(i){let c=this.input.fromOffset(i);return{column:c.col,line:c.line,offset:i}}init(i,c){this.current.push(i),i.source={input:this.input,start:this.getPosition(c)},i.raws.before=this.spaces,this.spaces="",i.type!=="comment"&&(this.semicolon=!1)}other(i){let c=!1,a=null,o=!1,d=null,g=[],b=i[1].startsWith("--"),v=[],S=i;for(;S;){if(a=S[0],v.push(S),a==="("||a==="[")d||(d=S),g.push(a==="("?")":"]");else if(b&&o&&a==="{")d||(d=S),g.push("}");else if(g.length===0)if(a===";")if(o){this.decl(v,b);return}else break;else if(a==="{"){this.rule(v);return}else if(a==="}"){this.tokenizer.back(v.pop()),c=!0;break}else a===":"&&(o=!0);else a===g[g.length-1]&&(g.pop(),g.length===0&&(d=null));S=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(c=!0),g.length>0&&this.unclosedBracket(d),c&&o){if(!b)for(;v.length&&(S=v[v.length-1][0],!(S!=="space"&&S!=="comment"));)this.tokenizer.back(v.pop());this.decl(v,b)}else this.unknownWord(v)}parse(){let i;for(;!this.tokenizer.endOfFile();)switch(i=this.tokenizer.nextToken(),i[0]){case"space":this.spaces+=i[1];break;case";":this.freeSemicolon(i);break;case"}":this.end(i);break;case"comment":this.comment(i);break;case"at-word":this.atrule(i);break;case"{":this.emptyRule(i);break;default:this.other(i);break}this.endFile()}precheckMissedSemicolon(){}raw(i,c,a,o){let d,g,b=a.length,v="",S=!0,E,y;for(let w=0;w<b;w+=1)d=a[w],g=d[0],g==="space"&&w===b-1&&!o?S=!1:g==="comment"?(y=a[w-1]?a[w-1][0]:"empty",E=a[w+1]?a[w+1][0]:"empty",!s[y]&&!s[E]?v.slice(-1)===","?S=!1:v+=d[1]:S=!1):v+=d[1];if(!S){let w=a.reduce((x,R)=>x+R[1],"");i.raws[c]={raw:w,value:v}}i[c]=v}rule(i){i.pop();let c=new e;this.init(c,i[0][2]),c.raws.between=this.spacesAndCommentsFromEnd(i),this.raw(c,"selector",i),this.current=c}spacesAndCommentsFromEnd(i){let c,a="";for(;i.length&&(c=i[i.length-1][0],!(c!=="space"&&c!=="comment"));)a=i.pop()[1]+a;return a}spacesAndCommentsFromStart(i){let c,a="";for(;i.length&&(c=i[0][0],!(c!=="space"&&c!=="comment"));)a+=i.shift()[1];return a}spacesFromEnd(i){let c,a="";for(;i.length&&(c=i[i.length-1][0],c==="space");)a=i.pop()[1]+a;return a}stringFrom(i,c){let a="";for(let o=c;o<i.length;o++)a+=i[o][1];return i.splice(c,i.length-c),a}unclosedBlock(){let i=this.current.source.start;throw this.input.error("Unclosed block",i.line,i.column)}unclosedBracket(i){throw this.input.error("Unclosed bracket",{offset:i[2]},{offset:i[2]+1})}unexpectedClose(i){throw this.input.error("Unexpected }",{offset:i[2]},{offset:i[2]+1})}unknownWord(i){throw this.input.error("Unknown word "+i[0][1],{offset:i[0][2]},{offset:i[0][2]+i[0][1].length})}unnamedAtrule(i,c){throw this.input.error("At-rule without name",{offset:c[2]},{offset:c[2]+c[1].length})}}return sn=p,sn}var on,Br;function vn(){if(Br)return on;Br=1;let n=Pe(),l=lt(),u=Bs();function r(e,t){let s=new l(e,t),f=new u(s);try{f.parse()}catch(p){throw p}return f.root}return on=r,r.default=r,n.registerParse(r),on}var an,Lr;function ei(){if(Lr)return an;Lr=1;class n{constructor(u,r={}){if(this.type="warning",this.text=u,r.node&&r.node.source){let e=r.node.rangeBy(r);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in r)this[e]=r[e]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return an=n,n.default=n,an}var ln,jr;function xn(){if(jr)return ln;jr=1;let n=ei();class l{get content(){return this.css}constructor(r,e,t){this.processor=r,this.messages=[],this.root=e,this.opts=t,this.css="",this.map=void 0}toString(){return this.css}warn(r,e={}){e.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(e.plugin=this.lastPlugin.postcssPlugin);let t=new n(r,e);return this.messages.push(t),t}warnings(){return this.messages.filter(r=>r.type==="warning")}}return ln=l,l.default=l,ln}var cn,Dr;function ti(){if(Dr)return cn;Dr=1;let n=Pe(),l=wn(),u=Xr(),r=vn(),e=xn(),t=$e(),s=it(),{isClean:f,my:p}=bn();const h={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},i={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},c={Once:!0,postcssPlugin:!0,prepare:!0},a=0;function o(E){return typeof E=="object"&&typeof E.then=="function"}function d(E){let y=!1,w=h[E.type];return E.type==="decl"?y=E.prop.toLowerCase():E.type==="atrule"&&(y=E.name.toLowerCase()),y&&E.append?[w,w+"-"+y,a,w+"Exit",w+"Exit-"+y]:y?[w,w+"-"+y,w+"Exit",w+"Exit-"+y]:E.append?[w,a,w+"Exit"]:[w,w+"Exit"]}function g(E){let y;return E.type==="document"?y=["Document",a,"DocumentExit"]:E.type==="root"?y=["Root",a,"RootExit"]:y=d(E),{eventIndex:0,events:y,iterator:0,node:E,visitorIndex:0,visitors:[]}}function b(E){return E[f]=!1,E.nodes&&E.nodes.forEach(y=>b(y)),E}let v={};class S{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(y,w,x){this.stringified=!1,this.processed=!1;let R;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))R=b(w);else if(w instanceof S||w instanceof e)R=b(w.root),w.map&&(typeof x.map>"u"&&(x.map={}),x.map.inline||(x.map.inline=!1),x.map.prev=w.map);else{let k=r;x.syntax&&(k=x.syntax.parse),x.parser&&(k=x.parser),k.parse&&(k=k.parse);try{R=k(w,x)}catch(_){this.processed=!0,this.error=_}R&&!R[p]&&n.rebuild(R)}this.result=new e(y,R,x),this.helpers={...v,postcss:v,result:this.result},this.plugins=this.processor.plugins.map(k=>typeof k=="object"&&k.prepare?{...k,...k.prepare(this.result)}:k)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,w){let x=this.result.lastPlugin;try{w&&w.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=x.postcssPlugin,y.setMessage()):x.postcssVersion}catch(R){console&&console.error&&console.error(R)}return y}prepareVisitors(){this.listeners={};let y=(w,x,R)=>{this.listeners[x]||(this.listeners[x]=[]),this.listeners[x].push([w,R])};for(let w of this.plugins)if(typeof w=="object")for(let x in w){if(!i[x]&&/^[A-Z]/.test(x))throw new Error(`Unknown event ${x} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[x])if(typeof w[x]=="object")for(let R in w[x])R==="*"?y(w,x,w[x][R]):y(w,x+"-"+R.toLowerCase(),w[x][R]);else typeof w[x]=="function"&&y(w,x,w[x])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let w=this.plugins[y],x=this.runOnRoot(w);if(o(x))try{await x}catch(R){throw this.handleError(R)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[f];){y[f]=!0;let w=[g(y)];for(;w.length>0;){let x=this.visitTick(w);if(o(x))try{await x}catch(R){let k=w[w.length-1].node;throw this.handleError(R,k)}}}if(this.listeners.OnceExit)for(let[w,x]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(y.type==="document"){let R=y.nodes.map(k=>x(k,this.helpers));await Promise.all(R)}else await x(y,this.helpers)}catch(R){throw this.handleError(R)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(x=>y.Once(x,this.helpers));return o(w[0])?Promise.all(w):w}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,w=s;y.syntax&&(w=y.syntax.stringify),y.stringifier&&(w=y.stringifier),w.stringify&&(w=w.stringify);let R=new u(w,this.result.root,this.result.opts).generate();return this.result.css=R[0],this.result.map=R[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let w=this.runOnRoot(y);if(o(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[f];)y[f]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let w of y.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,w){return this.async().then(y,w)}toString(){return this.css}visitSync(y,w){for(let[x,R]of y){this.result.lastPlugin=x;let k;try{k=R(w,this.helpers)}catch(_){throw this.handleError(_,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(o(k))throw this.getAsyncError()}}visitTick(y){let w=y[y.length-1],{node:x,visitors:R}=w;if(x.type!=="root"&&x.type!=="document"&&!x.parent){y.pop();return}if(R.length>0&&w.visitorIndex<R.length){let[_,A]=R[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===R.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=_;try{return A(x.toProxy(),this.helpers)}catch(M){throw this.handleError(M,x)}}if(w.iterator!==0){let _=w.iterator,A;for(;A=x.nodes[x.indexes[_]];)if(x.indexes[_]+=1,!A[f]){A[f]=!0,y.push(g(A));return}w.iterator=0,delete x.indexes[_]}let k=w.events;for(;w.eventIndex<k.length;){let _=k[w.eventIndex];if(w.eventIndex+=1,_===a){x.nodes&&x.nodes.length&&(x[f]=!0,w.iterator=x.getIterator());return}else if(this.listeners[_]){w.visitors=this.listeners[_];return}}y.pop()}walkSync(y){y[f]=!0;let w=d(y);for(let x of w)if(x===a)y.nodes&&y.each(R=>{R[f]||this.walkSync(R)});else{let R=this.listeners[x];if(R&&this.visitSync(R,y.toProxy()))return}}warnings(){return this.sync().warnings()}}return S.registerPostcss=E=>{v=E},cn=S,S.default=S,t.registerLazyResult(S),l.registerLazyResult(S),cn}var un,zr;function Ls(){if(zr)return un;zr=1;let n=Xr(),l=vn();const u=xn();let r=it();class e{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 s,f=l;try{s=f(this._css,this._opts)}catch(p){this.error=p}if(this.error)throw this.error;return this._root=s,s}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(s,f,p){f=f.toString(),this.stringified=!1,this._processor=s,this._css=f,this._opts=p,this._map=void 0;let h,i=r;this.result=new u(this._processor,h,this._opts),this.result.css=f;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let a=new n(i,h,this._opts,f);if(a.isMap()){let[o,d]=a.generate();o&&(this.result.css=o),d&&(this.result.map=d)}else a.clearAnnotation(),this.result.css=a.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(s){return this.async().catch(s)}finally(s){return this.async().then(s,s)}sync(){if(this.error)throw this.error;return this.result}then(s,f){return this.async().then(s,f)}toString(){return this._css}warnings(){return[]}}return un=e,e.default=e,un}var fn,qr;function js(){if(qr)return fn;qr=1;let n=wn(),l=ti(),u=Ls(),r=$e();class e{constructor(s=[]){this.version="8.5.6",this.plugins=this.normalize(s)}normalize(s){let f=[];for(let p of s)if(p.postcss===!0?p=p():p.postcss&&(p=p.postcss),typeof p=="object"&&Array.isArray(p.plugins))f=f.concat(p.plugins);else if(typeof p=="object"&&p.postcssPlugin)f.push(p);else if(typeof p=="function")f.push(p);else if(!(typeof p=="object"&&(p.parse||p.stringify)))throw new Error(p+" is not a PostCSS plugin");return f}process(s,f={}){return!this.plugins.length&&!f.parser&&!f.stringifier&&!f.syntax?new u(this,s,f):new l(this,s,f)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return fn=e,e.default=e,r.registerProcessor(e),n.registerProcessor(e),fn}var hn,Ur;function Ds(){if(Ur)return hn;Ur=1;var n={};let l=yn(),u=ot(),r=Pe(),e=mn(),t=at(),s=wn(),f=Ts(),p=lt(),h=ti(),i=Yr(),c=st(),a=vn(),o=js(),d=xn(),g=$e(),b=En(),v=it(),S=ei();function E(...y){return y.length===1&&Array.isArray(y[0])&&(y=y[0]),new o(y)}return E.plugin=function(w,x){let R=!1;function k(...A){console&&console.warn&&!R&&(R=!0,console.warn(w+`: postcss.plugin was deprecated. Migration guide:
109
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),n.LANG&&n.LANG.startsWith("cn")&&console.warn(w+`: 里面 postcss.plugin 被弃用. 迁移指南:
110
+ https://www.w3ctech.com/topic/2226`));let M=x(...A);return M.postcssPlugin=w,M.postcssVersion=new o().version,M}let _;return Object.defineProperty(k,"postcss",{get(){return _||(_=k()),_}}),k.process=function(A,M,O){return E([k(O)]).process(A,M)},k},E.stringify=v,E.parse=a,E.fromJSON=f,E.list=i,E.comment=y=>new u(y),E.atRule=y=>new l(y),E.decl=y=>new t(y),E.rule=y=>new b(y),E.root=y=>new g(y),E.document=y=>new s(y),E.CssSyntaxError=e,E.Declaration=t,E.Container=r,E.Processor=o,E.Document=s,E.Comment=u,E.Warning=S,E.AtRule=l,E.Result=d,E.Input=p,E.Rule=b,E.Root=g,E.Node=c,h.registerPostcss(E),hn=E,E.default=E,hn}var zs=Ds();const Q=Wr(zs);Q.stringify;Q.fromJSON;Q.plugin;Q.parse;Q.list;Q.document;Q.comment;Q.atRule;Q.rule;Q.decl;Q.root;Q.CssSyntaxError;Q.Declaration;Q.Container;Q.Processor;Q.Document;Q.Comment;Q.Warning;Q.AtRule;Q.Result;Q.Input;Q.Rule;Q.Root;Q.Node;var dn,Fr;function qs(){if(Fr)return dn;Fr=1;const n=(r={})=>{const e=r.prefix,t=/\s+$/.test(e)?e:`${e} `,s=r.ignoreFiles?[].concat(r.ignoreFiles):[],f=r.includeFiles?[].concat(r.includeFiles):[];return{postcssPlugin:"postcss-prefix-selector",prepare(p){const h=p.root,i=h.source.input.file;if(!(s.length&&i&&l(i,s))&&!(f.length&&i&&!l(i,f)))return{Rule(c,{result:a}){const o=["keyframes","-webkit-keyframes","-moz-keyframes","-o-keyframes","-ms-keyframes"];c.parent&&o.includes(c.parent.name)||(c.selectors=c.selectors.map(d=>r.exclude&&u(d,r.exclude)?d:r.transform?r.transform(e,d,t+d,h.source.input.file,c):[":root","body","html"].some(g=>d.startsWith(g))?r.skipGlobalSelectors?d:d.replace(/(html\s+body|:root\s+body|html|:root|body)/gm,e):t+d))}}}}};function l(r,e){return e.some(t=>t instanceof RegExp?t.test(r):r.includes(t))}function u(r,e){return e.some(t=>t instanceof RegExp?t.test(r):r===t)}return n.postcss=!0,dn=n,dn}var Us=qs();const Fs=Wr(Us),$s="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}",Hs="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 Ws(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var gn,$r;function Gs(){if($r)return gn;$r=1;function n(m){return m instanceof Map?m.clear=m.delete=m.set=function(){throw new Error("map is read-only")}:m instanceof Set&&(m.add=m.clear=m.delete=function(){throw new Error("set is read-only")}),Object.freeze(m),Object.getOwnPropertyNames(m).forEach(C=>{const T=m[C],H=typeof T;(H==="object"||H==="function")&&!Object.isFrozen(T)&&n(T)}),m}class l{constructor(C){C.data===void 0&&(C.data={}),this.data=C.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function u(m){return m.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function r(m,...C){const T=Object.create(null);for(const H in m)T[H]=m[H];return C.forEach(function(H){for(const X in H)T[X]=H[X]}),T}const e="</span>",t=m=>!!m.scope,s=(m,{prefix:C})=>{if(m.startsWith("language:"))return m.replace("language:","language-");if(m.includes(".")){const T=m.split(".");return[`${C}${T.shift()}`,...T.map((H,X)=>`${H}${"_".repeat(X+1)}`)].join(" ")}return`${C}${m}`};class f{constructor(C,T){this.buffer="",this.classPrefix=T.classPrefix,C.walk(this)}addText(C){this.buffer+=u(C)}openNode(C){if(!t(C))return;const T=s(C.scope,{prefix:this.classPrefix});this.span(T)}closeNode(C){t(C)&&(this.buffer+=e)}value(){return this.buffer}span(C){this.buffer+=`<span class="${C}">`}}const p=(m={})=>{const C={children:[]};return Object.assign(C,m),C};class h{constructor(){this.rootNode=p(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(C){this.top.children.push(C)}openNode(C){const T=p({scope:C});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(C){return this.constructor._walk(C,this.rootNode)}static _walk(C,T){return typeof T=="string"?C.addText(T):T.children&&(C.openNode(T),T.children.forEach(H=>this._walk(C,H)),C.closeNode(T)),C}static _collapse(C){typeof C!="string"&&C.children&&(C.children.every(T=>typeof T=="string")?C.children=[C.children.join("")]:C.children.forEach(T=>{h._collapse(T)}))}}class i extends h{constructor(C){super(),this.options=C}addText(C){C!==""&&this.add(C)}startScope(C){this.openNode(C)}endScope(){this.closeNode()}__addSublanguage(C,T){const H=C.root;T&&(H.scope=`language:${T}`),this.add(H)}toHTML(){return new f(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function c(m){return m?typeof m=="string"?m:m.source:null}function a(m){return g("(?=",m,")")}function o(m){return g("(?:",m,")*")}function d(m){return g("(?:",m,")?")}function g(...m){return m.map(C=>c(C)).join("")}function b(m){const C=m[m.length-1];return typeof C=="object"&&C.constructor===Object?(m.splice(m.length-1,1),C):{}}function v(...m){return"("+(b(m).capture?"":"?:")+m.map(C=>c(C)).join("|")+")"}function S(m){return new RegExp(m.toString()+"|").exec("").length-1}function E(m,C){const T=m&&m.exec(C);return T&&T.index===0}const y=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function w(m,{joinWith:C}){let T=0;return m.map(H=>{T+=1;const X=T;let ee=c(H),L="";for(;ee.length>0;){const B=y.exec(ee);if(!B){L+=ee;break}L+=ee.substring(0,B.index),ee=ee.substring(B.index+B[0].length),B[0][0]==="\\"&&B[1]?L+="\\"+String(Number(B[1])+X):(L+=B[0],B[0]==="("&&T++)}return L}).map(H=>`(${H})`).join(C)}const x=/\b\B/,R="[a-zA-Z]\\w*",k="[a-zA-Z_]\\w*",_="\\b\\d+(\\.\\d+)?",A="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",M="\\b(0b[01]+)",O="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",j=(m={})=>{const C=/^#![ ]*\//;return m.binary&&(m.begin=g(C,/.*\b/,m.binary,/\b.*/)),r({scope:"meta",begin:C,end:/$/,relevance:0,"on:begin":(T,H)=>{T.index!==0&&H.ignoreMatch()}},m)},z={begin:"\\\\[\\s\\S]",relevance:0},I={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[z]},de={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[z]},V={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/},Y=function(m,C,T={}){const H=r({scope:"comment",begin:m,end:C,contains:[]},T);H.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 X=v("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 H.contains.push({begin:g(/[ ]+/,"(",X,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),H},oe=Y("//","$"),re=Y("/\\*","\\*/"),ce=Y("#","$"),pe={scope:"number",begin:_,relevance:0},U={scope:"number",begin:A,relevance:0},Ae={scope:"number",begin:M,relevance:0},me={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[z,{begin:/\[/,end:/\]/,relevance:0,contains:[z]}]},Te={scope:"title",begin:R,relevance:0},le={scope:"title",begin:k,relevance:0},ue={begin:"\\.\\s*"+k,relevance:0};var fe=Object.freeze({__proto__:null,APOS_STRING_MODE:I,BACKSLASH_ESCAPE:z,BINARY_NUMBER_MODE:Ae,BINARY_NUMBER_RE:M,COMMENT:Y,C_BLOCK_COMMENT_MODE:re,C_LINE_COMMENT_MODE:oe,C_NUMBER_MODE:U,C_NUMBER_RE:A,END_SAME_AS_BEGIN:function(m){return Object.assign(m,{"on:begin":(C,T)=>{T.data._beginMatch=C[1]},"on:end":(C,T)=>{T.data._beginMatch!==C[1]&&T.ignoreMatch()}})},HASH_COMMENT_MODE:ce,IDENT_RE:R,MATCH_NOTHING_RE:x,METHOD_GUARD:ue,NUMBER_MODE:pe,NUMBER_RE:_,PHRASAL_WORDS_MODE:V,QUOTE_STRING_MODE:de,REGEXP_MODE:me,RE_STARTERS_RE:O,SHEBANG:j,TITLE_MODE:Te,UNDERSCORE_IDENT_RE:k,UNDERSCORE_TITLE_MODE:le});function ke(m,C){m.input[m.index-1]==="."&&C.ignoreMatch()}function xe(m,C){m.className!==void 0&&(m.scope=m.className,delete m.className)}function je(m,C){C&&m.beginKeywords&&(m.begin="\\b("+m.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",m.__beforeBegin=ke,m.keywords=m.keywords||m.beginKeywords,delete m.beginKeywords,m.relevance===void 0&&(m.relevance=0))}function He(m,C){Array.isArray(m.illegal)&&(m.illegal=v(...m.illegal))}function ui(m,C){if(m.match){if(m.begin||m.end)throw new Error("begin & end are not supported with match");m.begin=m.match,delete m.match}}function fi(m,C){m.relevance===void 0&&(m.relevance=1)}const hi=(m,C)=>{if(!m.beforeMatch)return;if(m.starts)throw new Error("beforeMatch cannot be used with starts");const T=Object.assign({},m);Object.keys(m).forEach(H=>{delete m[H]}),m.keywords=T.keywords,m.begin=g(T.beforeMatch,a(T.begin)),m.starts={relevance:0,contains:[Object.assign(T,{endsParent:!0})]},m.relevance=0,delete T.beforeMatch},di=["of","and","for","in","not","or","if","then","parent","list","value"],gi="keyword";function Sn(m,C,T=gi){const H=Object.create(null);return typeof m=="string"?X(T,m.split(" ")):Array.isArray(m)?X(T,m):Object.keys(m).forEach(function(ee){Object.assign(H,Sn(m[ee],C,ee))}),H;function X(ee,L){C&&(L=L.map(B=>B.toLowerCase())),L.forEach(function(B){const F=B.split("|");H[F[0]]=[ee,pi(F[0],F[1])]})}}function pi(m,C){return C?Number(C):mi(m)?0:1}function mi(m){return di.includes(m.toLowerCase())}const Cn={},_e=m=>{console.error(m)},Rn=(m,...C)=>{console.log(`WARN: ${m}`,...C)},Ie=(m,C)=>{Cn[`${m}/${C}`]||(console.log(`Deprecated as of ${m}. ${C}`),Cn[`${m}/${C}`]=!0)},We=new Error;function An(m,C,{key:T}){let H=0;const X=m[T],ee={},L={};for(let B=1;B<=C.length;B++)L[B+H]=X[B],ee[B+H]=!0,H+=S(C[B-1]);m[T]=L,m[T]._emit=ee,m[T]._multi=!0}function bi(m){if(Array.isArray(m.begin)){if(m.skip||m.excludeBegin||m.returnBegin)throw _e("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),We;if(typeof m.beginScope!="object"||m.beginScope===null)throw _e("beginScope must be object"),We;An(m,m.begin,{key:"beginScope"}),m.begin=w(m.begin,{joinWith:""})}}function yi(m){if(Array.isArray(m.end)){if(m.skip||m.excludeEnd||m.returnEnd)throw _e("skip, excludeEnd, returnEnd not compatible with endScope: {}"),We;if(typeof m.endScope!="object"||m.endScope===null)throw _e("endScope must be object"),We;An(m,m.end,{key:"endScope"}),m.end=w(m.end,{joinWith:""})}}function wi(m){m.scope&&typeof m.scope=="object"&&m.scope!==null&&(m.beginScope=m.scope,delete m.scope)}function Ei(m){wi(m),typeof m.beginScope=="string"&&(m.beginScope={_wrap:m.beginScope}),typeof m.endScope=="string"&&(m.endScope={_wrap:m.endScope}),bi(m),yi(m)}function vi(m){function C(L,B){return new RegExp(c(L),"m"+(m.case_insensitive?"i":"")+(m.unicodeRegex?"u":"")+(B?"g":""))}class T{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(B,F){F.position=this.position++,this.matchIndexes[this.matchAt]=F,this.regexes.push([F,B]),this.matchAt+=S(B)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const B=this.regexes.map(F=>F[1]);this.matcherRe=C(w(B,{joinWith:"|"}),!0),this.lastIndex=0}exec(B){this.matcherRe.lastIndex=this.lastIndex;const F=this.matcherRe.exec(B);if(!F)return null;const ie=F.findIndex((De,ft)=>ft>0&&De!==void 0),te=this.matchIndexes[ie];return F.splice(0,ie),Object.assign(F,te)}}class H{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(B){if(this.multiRegexes[B])return this.multiRegexes[B];const F=new T;return this.rules.slice(B).forEach(([ie,te])=>F.addRule(ie,te)),F.compile(),this.multiRegexes[B]=F,F}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(B,F){this.rules.push([B,F]),F.type==="begin"&&this.count++}exec(B){const F=this.getMatcher(this.regexIndex);F.lastIndex=this.lastIndex;let ie=F.exec(B);if(this.resumingScanAtSamePosition()&&!(ie&&ie.index===this.lastIndex)){const te=this.getMatcher(0);te.lastIndex=this.lastIndex+1,ie=te.exec(B)}return ie&&(this.regexIndex+=ie.position+1,this.regexIndex===this.count&&this.considerAll()),ie}}function X(L){const B=new H;return L.contains.forEach(F=>B.addRule(F.begin,{rule:F,type:"begin"})),L.terminatorEnd&&B.addRule(L.terminatorEnd,{type:"end"}),L.illegal&&B.addRule(L.illegal,{type:"illegal"}),B}function ee(L,B){const F=L;if(L.isCompiled)return F;[xe,ui,Ei,hi].forEach(te=>te(L,B)),m.compilerExtensions.forEach(te=>te(L,B)),L.__beforeBegin=null,[je,He,fi].forEach(te=>te(L,B)),L.isCompiled=!0;let ie=null;return typeof L.keywords=="object"&&L.keywords.$pattern&&(L.keywords=Object.assign({},L.keywords),ie=L.keywords.$pattern,delete L.keywords.$pattern),ie=ie||/\w+/,L.keywords&&(L.keywords=Sn(L.keywords,m.case_insensitive)),F.keywordPatternRe=C(ie,!0),B&&(L.begin||(L.begin=/\B|\b/),F.beginRe=C(F.begin),!L.end&&!L.endsWithParent&&(L.end=/\B|\b/),L.end&&(F.endRe=C(F.end)),F.terminatorEnd=c(F.end)||"",L.endsWithParent&&B.terminatorEnd&&(F.terminatorEnd+=(L.end?"|":"")+B.terminatorEnd)),L.illegal&&(F.illegalRe=C(L.illegal)),L.contains||(L.contains=[]),L.contains=[].concat(...L.contains.map(function(te){return xi(te==="self"?L:te)})),L.contains.forEach(function(te){ee(te,F)}),L.starts&&ee(L.starts,B),F.matcher=X(F),F}if(m.compilerExtensions||(m.compilerExtensions=[]),m.contains&&m.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return m.classNameAliases=r(m.classNameAliases||{}),ee(m)}function kn(m){return m?m.endsWithParent||kn(m.starts):!1}function xi(m){return m.variants&&!m.cachedVariants&&(m.cachedVariants=m.variants.map(function(C){return r(m,{variants:null},C)})),m.cachedVariants?m.cachedVariants:kn(m)?r(m,{starts:m.starts?r(m.starts):null}):Object.isFrozen(m)?r(m):m}var Si="11.11.1";class Ci extends Error{constructor(C,T){super(C),this.name="HTMLInjectionError",this.html=T}}const ut=u,_n=r,Nn=Symbol("nomatch"),Ri=7,On=function(m){const C=Object.create(null),T=Object.create(null),H=[];let X=!0;const ee="Could not find the language '{}', did you forget to load/include a language module?",L={disableAutodetect:!0,name:"Plain text",contains:[]};let B={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:i};function F(N){return B.noHighlightRe.test(N)}function ie(N){let q=N.className+" ";q+=N.parentNode?N.parentNode.className:"";const G=B.languageDetectRe.exec(q);if(G){const J=Se(G[1]);return J||(Rn(ee.replace("{}",G[1])),Rn("Falling back to no-highlight mode for this block.",N)),J?G[1]:"no-highlight"}return q.split(/\s+/).find(J=>F(J)||Se(J))}function te(N,q,G){let J="",ne="";typeof q=="object"?(J=N,G=q.ignoreIllegals,ne=q.language):(Ie("10.7.0","highlight(lang, code, ...args) has been deprecated."),Ie("10.7.0",`Please use highlight(code, options) instead.
111
+ https://github.com/highlightjs/highlight.js/issues/2277`),ne=N,J=q),G===void 0&&(G=!0);const be={code:J,language:ne};Ve("before:highlight",be);const Ce=be.result?be.result:De(be.language,be.code,G);return Ce.code=be.code,Ve("after:highlight",Ce),Ce}function De(N,q,G,J){const ne=Object.create(null);function be(P,D){return P.keywords[D]}function Ce(){if(!$.keywords){se.addText(Z);return}let P=0;$.keywordPatternRe.lastIndex=0;let D=$.keywordPatternRe.exec(Z),W="";for(;D;){W+=Z.substring(P,D.index);const K=we.case_insensitive?D[0].toLowerCase():D[0],ae=be($,K);if(ae){const[ve,Fi]=ae;if(se.addText(W),W="",ne[K]=(ne[K]||0)+1,ne[K]<=Ri&&(Ze+=Fi),ve.startsWith("_"))W+=D[0];else{const $i=we.classNameAliases[ve]||ve;ye(D[0],$i)}}else W+=D[0];P=$.keywordPatternRe.lastIndex,D=$.keywordPatternRe.exec(Z)}W+=Z.substring(P),se.addText(W)}function Ke(){if(Z==="")return;let P=null;if(typeof $.subLanguage=="string"){if(!C[$.subLanguage]){se.addText(Z);return}P=De($.subLanguage,Z,!0,Dn[$.subLanguage]),Dn[$.subLanguage]=P._top}else P=ht(Z,$.subLanguage.length?$.subLanguage:null);$.relevance>0&&(Ze+=P.relevance),se.__addSublanguage(P._emitter,P.language)}function he(){$.subLanguage!=null?Ke():Ce(),Z=""}function ye(P,D){P!==""&&(se.startScope(D),se.addText(P),se.endScope())}function In(P,D){let W=1;const K=D.length-1;for(;W<=K;){if(!P._emit[W]){W++;continue}const ae=we.classNameAliases[P[W]]||P[W],ve=D[W];ae?ye(ve,ae):(Z=ve,Ce(),Z=""),W++}}function Bn(P,D){return P.scope&&typeof P.scope=="string"&&se.openNode(we.classNameAliases[P.scope]||P.scope),P.beginScope&&(P.beginScope._wrap?(ye(Z,we.classNameAliases[P.beginScope._wrap]||P.beginScope._wrap),Z=""):P.beginScope._multi&&(In(P.beginScope,D),Z="")),$=Object.create(P,{parent:{value:$}}),$}function Ln(P,D,W){let K=E(P.endRe,W);if(K){if(P["on:end"]){const ae=new l(P);P["on:end"](D,ae),ae.isMatchIgnored&&(K=!1)}if(K){for(;P.endsParent&&P.parent;)P=P.parent;return P}}if(P.endsWithParent)return Ln(P.parent,D,W)}function ji(P){return $.matcher.regexIndex===0?(Z+=P[0],1):(mt=!0,0)}function Di(P){const D=P[0],W=P.rule,K=new l(W),ae=[W.__beforeBegin,W["on:begin"]];for(const ve of ae)if(ve&&(ve(P,K),K.isMatchIgnored))return ji(D);return W.skip?Z+=D:(W.excludeBegin&&(Z+=D),he(),!W.returnBegin&&!W.excludeBegin&&(Z=D)),Bn(W,P),W.returnBegin?0:D.length}function zi(P){const D=P[0],W=q.substring(P.index),K=Ln($,P,W);if(!K)return Nn;const ae=$;$.endScope&&$.endScope._wrap?(he(),ye(D,$.endScope._wrap)):$.endScope&&$.endScope._multi?(he(),In($.endScope,P)):ae.skip?Z+=D:(ae.returnEnd||ae.excludeEnd||(Z+=D),he(),ae.excludeEnd&&(Z=D));do $.scope&&se.closeNode(),!$.skip&&!$.subLanguage&&(Ze+=$.relevance),$=$.parent;while($!==K.parent);return K.starts&&Bn(K.starts,P),ae.returnEnd?0:D.length}function qi(){const P=[];for(let D=$;D!==we;D=D.parent)D.scope&&P.unshift(D.scope);P.forEach(D=>se.openNode(D))}let Je={};function jn(P,D){const W=D&&D[0];if(Z+=P,W==null)return he(),0;if(Je.type==="begin"&&D.type==="end"&&Je.index===D.index&&W===""){if(Z+=q.slice(D.index,D.index+1),!X){const K=new Error(`0 width match regex (${N})`);throw K.languageName=N,K.badRule=Je.rule,K}return 1}if(Je=D,D.type==="begin")return Di(D);if(D.type==="illegal"&&!G){const K=new Error('Illegal lexeme "'+W+'" for mode "'+($.scope||"<unnamed>")+'"');throw K.mode=$,K}else if(D.type==="end"){const K=zi(D);if(K!==Nn)return K}if(D.type==="illegal"&&W==="")return Z+=`
112
+ `,1;if(pt>1e5&&pt>D.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Z+=W,W.length}const we=Se(N);if(!we)throw _e(ee.replace("{}",N)),new Error('Unknown language: "'+N+'"');const Ui=vi(we);let gt="",$=J||Ui;const Dn={},se=new B.__emitter(B);qi();let Z="",Ze=0,Ne=0,pt=0,mt=!1;try{if(we.__emitTokens)we.__emitTokens(q,se);else{for($.matcher.considerAll();;){pt++,mt?mt=!1:$.matcher.considerAll(),$.matcher.lastIndex=Ne;const P=$.matcher.exec(q);if(!P)break;const D=q.substring(Ne,P.index),W=jn(D,P);Ne=P.index+W}jn(q.substring(Ne))}return se.finalize(),gt=se.toHTML(),{language:N,value:gt,relevance:Ze,illegal:!1,_emitter:se,_top:$}}catch(P){if(P.message&&P.message.includes("Illegal"))return{language:N,value:ut(q),illegal:!0,relevance:0,_illegalBy:{message:P.message,index:Ne,context:q.slice(Ne-100,Ne+100),mode:P.mode,resultSoFar:gt},_emitter:se};if(X)return{language:N,value:ut(q),illegal:!1,relevance:0,errorRaised:P,_emitter:se,_top:$};throw P}}function ft(N){const q={value:ut(N),illegal:!1,relevance:0,_top:L,_emitter:new B.__emitter(B)};return q._emitter.addText(N),q}function ht(N,q){q=q||B.languages||Object.keys(C);const G=ft(N),J=q.filter(Se).filter(Tn).map(he=>De(he,N,!1));J.unshift(G);const ne=J.sort((he,ye)=>{if(he.relevance!==ye.relevance)return ye.relevance-he.relevance;if(he.language&&ye.language){if(Se(he.language).supersetOf===ye.language)return 1;if(Se(ye.language).supersetOf===he.language)return-1}return 0}),[be,Ce]=ne,Ke=be;return Ke.secondBest=Ce,Ke}function Ai(N,q,G){const J=q&&T[q]||G;N.classList.add("hljs"),N.classList.add(`language-${J}`)}function dt(N){let q=null;const G=ie(N);if(F(G))return;if(Ve("before:highlightElement",{el:N,language:G}),N.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",N);return}if(N.children.length>0&&(B.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(N)),B.throwUnescapedHTML))throw new Ci("One of your code blocks includes unescaped HTML.",N.innerHTML);q=N;const J=q.textContent,ne=G?te(J,{language:G,ignoreIllegals:!0}):ht(J);N.innerHTML=ne.value,N.dataset.highlighted="yes",Ai(N,G,ne.language),N.result={language:ne.language,re:ne.relevance,relevance:ne.relevance},ne.secondBest&&(N.secondBest={language:ne.secondBest.language,relevance:ne.secondBest.relevance}),Ve("after:highlightElement",{el:N,result:ne,text:J})}function ki(N){B=_n(B,N)}const _i=()=>{Ge(),Ie("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Ni(){Ge(),Ie("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Mn=!1;function Ge(){function N(){Ge()}if(document.readyState==="loading"){Mn||window.addEventListener("DOMContentLoaded",N,!1),Mn=!0;return}document.querySelectorAll(B.cssSelector).forEach(dt)}function Oi(N,q){let G=null;try{G=q(m)}catch(J){if(_e("Language definition for '{}' could not be registered.".replace("{}",N)),X)_e(J);else throw J;G=L}G.name||(G.name=N),C[N]=G,G.rawDefinition=q.bind(null,m),G.aliases&&Pn(G.aliases,{languageName:N})}function Mi(N){delete C[N];for(const q of Object.keys(T))T[q]===N&&delete T[q]}function Pi(){return Object.keys(C)}function Se(N){return N=(N||"").toLowerCase(),C[N]||C[T[N]]}function Pn(N,{languageName:q}){typeof N=="string"&&(N=[N]),N.forEach(G=>{T[G.toLowerCase()]=q})}function Tn(N){const q=Se(N);return q&&!q.disableAutodetect}function Ti(N){N["before:highlightBlock"]&&!N["before:highlightElement"]&&(N["before:highlightElement"]=q=>{N["before:highlightBlock"](Object.assign({block:q.el},q))}),N["after:highlightBlock"]&&!N["after:highlightElement"]&&(N["after:highlightElement"]=q=>{N["after:highlightBlock"](Object.assign({block:q.el},q))})}function Ii(N){Ti(N),H.push(N)}function Bi(N){const q=H.indexOf(N);q!==-1&&H.splice(q,1)}function Ve(N,q){const G=N;H.forEach(function(J){J[G]&&J[G](q)})}function Li(N){return Ie("10.7.0","highlightBlock will be removed entirely in v12.0"),Ie("10.7.0","Please use highlightElement now."),dt(N)}Object.assign(m,{highlight:te,highlightAuto:ht,highlightAll:Ge,highlightElement:dt,highlightBlock:Li,configure:ki,initHighlighting:_i,initHighlightingOnLoad:Ni,registerLanguage:Oi,unregisterLanguage:Mi,listLanguages:Pi,getLanguage:Se,registerAliases:Pn,autoDetection:Tn,inherit:_n,addPlugin:Ii,removePlugin:Bi}),m.debugMode=function(){X=!1},m.safeMode=function(){X=!0},m.versionString=Si,m.regex={concat:g,lookahead:a,either:v,optional:d,anyNumberOfTimes:o};for(const N in fe)typeof fe[N]=="object"&&n(fe[N]);return Object.assign(m,fe),m},Be=On({});return Be.newInstance=()=>On({}),gn=Be,Be.HighlightJS=Be,Be.default=Be,gn}var Vs=Gs();const ct=Ws(Vs),nt="[A-Za-z$_][0-9A-Za-z$_]*",ni=["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","using"],ri=["true","false","null","undefined","NaN","Infinity"],ii=["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"],si=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],oi=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],ai=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],li=[].concat(oi,ii,si);function Ks(n){const l=n.regex,u=(V,{after:Y})=>{const oe="</"+V[0].slice(1);return V.input.indexOf(oe,Y)!==-1},r=nt,e={begin:"<>",end:"</>"},t=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(V,Y)=>{const oe=V[0].length+V.index,re=V.input[oe];if(re==="<"||re===","){Y.ignoreMatch();return}re===">"&&(u(V,{after:oe})||Y.ignoreMatch());let ce;const pe=V.input.substring(oe);if(ce=pe.match(/^\s*=/)){Y.ignoreMatch();return}if((ce=pe.match(/^\s+extends\s+/))&&ce.index===0){Y.ignoreMatch();return}}},f={$pattern:nt,keyword:ni,literal:ri,built_in:li,"variable.language":ai},p="[0-9](_?[0-9])*",h=`\\.(${p})`,i="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",c={className:"number",variants:[{begin:`(\\b(${i})((${h})|\\.)?|(${h}))[eE][+-]?(${p})\\b`},{begin:`\\b(${i})\\b((${h})\\b|\\.)?|(${h})\\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},a={className:"subst",begin:"\\$\\{",end:"\\}",keywords:f,contains:[]},o={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,a],subLanguage:"xml"}},d={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,a],subLanguage:"css"}},g={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,a],subLanguage:"graphql"}},b={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,a]},v={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]},S=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,o,d,g,b,{match:/\$\d+/},c];a.contains=S.concat({begin:/\{/,end:/\}/,keywords:f,contains:["self"].concat(S)});const E=[].concat(v,a.contains),y=E.concat([{begin:/(\s*)\(/,end:/\)/,keywords:f,contains:["self"].concat(E)}]),w={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:f,contains:y},x={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,l.concat(r,"(",l.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},R={relevance:0,match:l.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:{_:[...ii,...si]}},k={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},_={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[w],illegal:/%/},A={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function M(V){return l.concat("(?!",V.join("|"),")")}const O={match:l.concat(/\b/,M([...oi,"super","import"].map(V=>`${V}\\s*\\(`)),r,l.lookahead(/\s*\(/)),className:"title.function",relevance:0},j={begin:l.concat(/\./,l.lookahead(l.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},z={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},w]},I="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",de={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,l.lookahead(I)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[w]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:f,exports:{PARAMS_CONTAINS:y,CLASS_REFERENCE:R},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),k,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,o,d,g,b,v,{match:/\$\d+/},c,R,{scope:"attr",match:r+l.lookahead(":"),relevance:0},de,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[v,n.REGEXP_MODE,{className:"function",begin:I,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:f,contains:y}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:e.begin,end:e.end},{match:t},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},_,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[w,n.inherit(n.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},j,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[w]},O,A,x,z,{match:/\$[(.]/}]}}function Js(n){const l=n.regex,u=Ks(n),r=nt,e=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],t={begin:[/namespace/,/\s+/,n.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:e},contains:[u.exports.CLASS_REFERENCE]},f={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},p=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],h={$pattern:nt,keyword:ni.concat(p),literal:ri,built_in:li.concat(e),"variable.language":ai},i={className:"meta",begin:"@"+r},c=(g,b,v)=>{const S=g.contains.findIndex(E=>E.label===b);if(S===-1)throw new Error("can not find mode to replace");g.contains.splice(S,1,v)};Object.assign(u.keywords,h),u.exports.PARAMS_CONTAINS.push(i);const a=u.contains.find(g=>g.scope==="attr"),o=Object.assign({},a,{match:l.concat(r,l.lookahead(/\s*\?:/))});u.exports.PARAMS_CONTAINS.push([u.exports.CLASS_REFERENCE,a,o]),u.contains=u.contains.concat([i,t,s,o]),c(u,"shebang",n.SHEBANG()),c(u,"use_strict",f);const d=u.contains.find(g=>g.label==="func.def");return d.relevance=0,Object.assign(u,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),u}function Zs(n){const l=n.regex,u=l.concat(/[\p{L}_]/u,l.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,e={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},t={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=n.inherit(t,{begin:/\(/,end:/\)/}),f=n.inherit(n.APOS_STRING_MODE,{className:"string"}),p=n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),h={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:[e]},{begin:/'/,end:/'/,contains:[e]},{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:[t,p,f,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[t,s,p,f]}]}]},n.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},e,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[p]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[h],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[h],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:l.concat(/</,l.lookahead(l.concat(u,l.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:u,relevance:0,starts:h}]},{className:"tag",begin:l.concat(/<\//,l.lookahead(l.concat(u,/>/))),contains:[{className:"name",begin:u,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const Qs=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_-]*/}}),Ys=["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","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],Xs=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],eo=[...Ys,...Xs],to=["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"].sort().reverse(),no=["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"].sort().reverse(),ro=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),io=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","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-end-end-radius","border-end-start-radius","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-start-end-radius","border-start-start-radius","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-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","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","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","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","margin-trim","marker","marker-end","marker-mid","marker-start","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","masonry-auto-flow","math-depth","math-shift","math-style","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","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-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","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","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","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function so(n){const l=n.regex,u=Qs(n),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},e="and or not only",t=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",f=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[u.BLOCK_COMMENT,r,u.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+s,relevance:0},u.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+no.join("|")+")"},{begin:":(:)?("+ro.join("|")+")"}]},u.CSS_VARIABLE,{className:"attribute",begin:"\\b("+io.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[u.BLOCK_COMMENT,u.HEXCOLOR,u.IMPORTANT,u.CSS_NUMBER_MODE,...f,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...f,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},u.FUNCTION_DISPATCH]},{begin:l.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:t},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:e,attribute:to.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...f,u.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+eo.join("|")+")\\b"}]}}const ci=document.createElement("style");ci.innerText=[$s,Hs].join(`
113
+ `);document.head.appendChild(ci);ct.registerLanguage("typescript",Js);ct.registerLanguage("html",Zs);ct.registerLanguage("css",so);function oo(...n){const l=document.createElement("div"),u=document.createElement("div");u.classList.add("tab-control");const r=document.createElement("div");return n.forEach(e=>{l.appendChild(e),e.addEventListener("click",()=>{n.forEach(t=>t.removeAttribute("selected")),e.setAttribute("selected",""),r.innerHTML="",r.appendChild(e.content),r.className=e.className,r.classList.add("tab-content")})}),u.appendChild(l),u.appendChild(r),r.classList.add("tab-content"),n[0].setAttribute("selected",""),r.appendChild(n[0].content),u}function qe(n,l){const u=document.createElement("div");return u.role="tab",u.tabIndex=0,u.innerText=n,u.content=l,l.tagName=="PRE"&&u.classList.add("code"),u}function Fe(n,l){const u=document.createElement(n);return typeof l=="string"?u.innerHTML=l:l.forEach(r=>{u.appendChild(r)}),u}async function ao(n,l,u){const r=l.mainContent,e=Fe("div",r);e.id=`example-preview-${u}`;const t=typeof l.css=="string"?void 0:l.css?.label,s=typeof l.css=="string"?l.css:l.css?.content,f=oo(qe("Preview",e),qe("HTML",et("html",r)),...s?[qe(t??"CSS",et("css",s))]:[],...l.initializer&&l.initializer.content?[qe(l.initializer.label??"TS",et("typescript",l.initializer.content))]:[],...(l.additionalSources||[]).map(h=>qe(h.label,et(h.language,h.content))));l.description&&n.appendChild(Fe("div",l.description));const p=Fe("div",[f]);p.classList.add("example"),n.appendChild(p),s&&lo(`#${e.id}`,s),l.initializer?.initialize&&await l.initializer.initialize(e)}function et(n,l){let u=l.split(/\r?\n/).map(r=>{const e=r.indexOf("///");if(e>-1){const t=r.substring(e+3).trimStart();return t?r.replace(/^(\s*)([^\s].*)$/,`$1${t}`):void 0}return r}).filter(r=>typeof r<"u").join(`
114
+ `).trim();return n&&n!="raw"&&(u=ct.highlight(u,{language:n}).value),Fe("pre",[Fe("code",u)])}function lo(n,l){const u=document.createElement("style");u.innerHTML=Q().use(Fs({prefix:n})).process(l).css,document.head.appendChild(u)}async function co(n,l=document.body){const u=fo(l);let r=0;Object.keys(n).sort().forEach(async e=>{const t=document.createElement("div");t.className="example-container",u.appendChild(t);const s=n[e].default;ao(t,s,r++)})}function uo(n){const l=document.createElement("div");l.id="examples-container";const u=n.querySelector("#examples");return u?u.after(l):n.appendChild(l),l}function fo(n){return n.children?uo(n):n}const ho=`<h1 id="@cas-smartdesign/qrcode">@cas-smartdesign/qrcode</h1>
112
115
  <p>A custom element which can be used to show a qrcode based on a string input.</p>
113
116
  <h2 id="attributes">Attributes</h2>
114
117
  <ul>
@@ -122,10 +125,4 @@ https://github.com/highlightjs/highlight.js/issues/2277`),j=f,N=b),_===void 0&&(
122
125
  </ul>
123
126
  </li>
124
127
  </ul>
125
- `,Dl=document.querySelector("#markdown-container");Dl.innerHTML=jl;Bl(Object.assign({"./examples/1_declarative/index.ts":Pi,"./examples/2_created_from_source/index.ts":zi}),document.querySelector(".markdown-body"));export{Se as Q};
126
- function __vite__mapDeps(indexes) {
127
- if (!__vite__mapDeps.viteFileDeps) {
128
- __vite__mapDeps.viteFileDeps = []
129
- }
130
- return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
131
- }
128
+ `,go=document.querySelector("#markdown-container");go.innerHTML=ho;co(Object.assign({"./examples/1_declarative/index.ts":Ki,"./examples/2_created_from_source/index.ts":rs}),document.querySelector(".markdown-body"));export{Ue as Q};